File size: 201,376 Bytes
ce592f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
var ji=Object.defineProperty;var Ni=(i,e,t)=>e in i?ji(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var gn=(i,e,t)=>(Ni(i,typeof e!="symbol"?e+"":e,t),t);import{S as ce,i as de,s as he,e as x,b as O,a1 as ue,h as m,D as Ie,E as me,F as qe,Q as ge,k as U,l as q,m as M,I as Je,H as v,K as oe,O as ze,P as dt,a3 as $e,p as _n,g as p,v as X,d as g,f as ee,C as Vt,o as sn,G as _e,y as W,a as ae,z as ie,c as fe,J as B,A as $,L as be,M as Ee,N as ke,B as K,q as ye,r as we,u as Pe,_ as xe,$ as Fe,n as C,a0 as it,ad as $r,w as Ze,ae as bn,ac as Kr,W as ht,x as Se,aq as En,a9 as Li,ab as Di,T as Ci,U as We,V as et}from"./index.c7ccf096.js";import{N as zi,a as Mi,i as kn,h as Vi,c as Ui,q as Ye,w as qi,B as Bi,T as xi}from"./taskMonitoringStore.a15b9cd5.js";import{j as Fi}from"./singletons.0a299d47.js";import{Q as Zi,p as Hi,e as Ji,r as Le,O as De,c as He,b as vt,f as Wi,T as $i}from"./taskQueries.d9517cd8.js";import{K as on,M as Qr}from"./Page.c565e4f4.js";import{W as Gr,b as Yr,S as Ki,a as Xr}from"./SelectItem.854db37b.js";function vn(i,e,t){const r=i.slice();return r[2]=e[t].width,r}function Qi(i){let e,t,r,n,l=[i[4],{style:t="width: "+i[2]+";"+i[4].style}],s={};for(let o=0;o<l.length;o+=1)s=me(s,l[o]);return{c(){e=U("p"),this.h()},l(o){e=q(o,"P",{style:!0}),M(e).forEach(m),this.h()},h(){Je(e,s),v(e,"bx--skeleton__text",!0),v(e,"bx--skeleton__heading",i[0])},m(o,a){O(o,e,a),r||(n=[oe(e,"click",i[12]),oe(e,"mouseover",i[13]),oe(e,"mouseenter",i[14]),oe(e,"mouseleave",i[15])],r=!0)},p(o,a){Je(e,s=ze(l,[a&16&&o[4],a&20&&t!==(t="width: "+o[2]+";"+o[4].style)&&{style:t}])),v(e,"bx--skeleton__text",!0),v(e,"bx--skeleton__heading",o[0])},d(o){o&&m(e),r=!1,dt(n)}}}function Gi(i){let e,t,r,n=i[3],l=[];for(let a=0;a<n.length;a+=1)l[a]=yn(vn(i,n,a));let s=[i[4]],o={};for(let a=0;a<s.length;a+=1)o=me(o,s[a]);return{c(){e=U("div");for(let a=0;a<l.length;a+=1)l[a].c();this.h()},l(a){e=q(a,"DIV",{});var f=M(e);for(let u=0;u<l.length;u+=1)l[u].l(f);f.forEach(m),this.h()},h(){Je(e,o)},m(a,f){O(a,e,f);for(let u=0;u<l.length;u+=1)l[u]&&l[u].m(e,null);t||(r=[oe(e,"click",i[8]),oe(e,"mouseover",i[9]),oe(e,"mouseenter",i[10]),oe(e,"mouseleave",i[11])],t=!0)},p(a,f){if(f&9){n=a[3];let u;for(u=0;u<n.length;u+=1){const c=vn(a,n,u);l[u]?l[u].p(c,f):(l[u]=yn(c),l[u].c(),l[u].m(e,null))}for(;u<l.length;u+=1)l[u].d(1);l.length=n.length}Je(e,o=ze(s,[f&16&&a[4]]))},d(a){a&&m(e),$e(l,a),t=!1,dt(r)}}}function yn(i){let e;return{c(){e=U("p"),this.h()},l(t){e=q(t,"P",{style:!0}),M(e).forEach(m),this.h()},h(){_n(e,"width",i[2]),v(e,"bx--skeleton__text",!0),v(e,"bx--skeleton__heading",i[0])},m(t,r){O(t,e,r)},p(t,r){r&8&&_n(e,"width",t[2]),r&1&&v(e,"bx--skeleton__heading",t[0])},d(t){t&&m(e)}}}function Yi(i){let e;function t(l,s){return l[1]?Gi:Qi}let r=t(i),n=r(i);return{c(){n.c(),e=x()},l(l){n.l(l),e=x()},m(l,s){n.m(l,s),O(l,e,s)},p(l,[s]){r===(r=t(l))&&n?n.p(l,s):(n.d(1),n=r(l),n&&(n.c(),n.m(e.parentNode,e)))},i:ue,o:ue,d(l){n.d(l),l&&m(e)}}}function Xi(i,e,t){let r,n,l;const s=["lines","heading","paragraph","width"];let o=Ie(e,s),{lines:a=3}=e,{heading:f=!1}=e,{paragraph:u=!1}=e,{width:c="100%"}=e;const d=[.973,.153,.567];function h(T){ge.call(this,i,T)}function k(T){ge.call(this,i,T)}function _(T){ge.call(this,i,T)}function A(T){ge.call(this,i,T)}function y(T){ge.call(this,i,T)}function b(T){ge.call(this,i,T)}function S(T){ge.call(this,i,T)}function P(T){ge.call(this,i,T)}return i.$$set=T=>{e=me(me({},e),qe(T)),t(4,o=Ie(e,s)),"lines"in T&&t(5,a=T.lines),"heading"in T&&t(0,f=T.heading),"paragraph"in T&&t(1,u=T.paragraph),"width"in T&&t(2,c=T.width)},i.$$.update=()=>{if(i.$$.dirty&4&&t(7,n=parseInt(c,10)),i.$$.dirty&4&&t(6,l=c.includes("px")),i.$$.dirty&238&&u)for(let T=0;T<a;T++){const R=l?n-75:0,L=l?n:75,z=Math.floor(d[T%3]*(L-R+1))+R+"px";t(3,r=[...r,{width:l?z:`calc(${c} - ${z})`}])}},t(3,r=[]),[f,u,c,r,o,a,l,n,h,k,_,A,y,b,S,P]}class el extends ce{constructor(e){super(),de(this,e,Xi,Yi,he,{lines:5,heading:0,paragraph:1,width:2})}}const wu=el,tl=i=>({}),wn=i=>({}),nl=i=>({}),On=i=>({}),rl=i=>({}),Sn=i=>({});function Pn(i){let e,t,r,n,l,s,o,a,f,u,c,d,h,k;r=new zi({props:{notificationType:"inline",kind:i[0],iconDescription:i[6]}});const _=i[13].title,A=_e(_,i,i[12],Sn),y=A||il(i),b=i[13].subtitle,S=_e(b,i,i[12],On),P=S||ll(i),T=i[13].default,R=_e(T,i,i[12],null),L=i[13].actions,z=_e(L,i,i[12],wn);let Z=!i[5]&&Tn(i),ne=[{role:i[2]},{kind:i[0]},i[10]],re={};for(let I=0;I<ne.length;I+=1)re=me(re,ne[I]);return{c(){e=U("div"),t=U("div"),W(r.$$.fragment),n=ae(),l=U("div"),s=U("p"),y&&y.c(),o=ae(),a=U("div"),P&&P.c(),f=ae(),R&&R.c(),u=ae(),z&&z.c(),c=ae(),Z&&Z.c(),this.h()},l(I){e=q(I,"DIV",{role:!0,kind:!0});var E=M(e);t=q(E,"DIV",{});var D=M(t);ie(r.$$.fragment,D),n=fe(D),l=q(D,"DIV",{});var w=M(l);s=q(w,"P",{});var j=M(s);y&&y.l(j),j.forEach(m),o=fe(w),a=q(w,"DIV",{});var J=M(a);P&&P.l(J),J.forEach(m),f=fe(w),R&&R.l(w),w.forEach(m),D.forEach(m),u=fe(E),z&&z.l(E),c=fe(E),Z&&Z.l(E),E.forEach(m),this.h()},h(){v(s,"bx--inline-notification__title",!0),v(a,"bx--inline-notification__subtitle",!0),v(l,"bx--inline-notification__text-wrapper",!0),v(t,"bx--inline-notification__details",!0),Je(e,re),v(e,"bx--inline-notification",!0),v(e,"bx--inline-notification--low-contrast",i[1]),v(e,"bx--inline-notification--hide-close-button",i[5]),v(e,"bx--inline-notification--error",i[0]==="error"),v(e,"bx--inline-notification--info",i[0]==="info"),v(e,"bx--inline-notification--info-square",i[0]==="info-square"),v(e,"bx--inline-notification--success",i[0]==="success"),v(e,"bx--inline-notification--warning",i[0]==="warning"),v(e,"bx--inline-notification--warning-alt",i[0]==="warning-alt")},m(I,E){O(I,e,E),B(e,t),$(r,t,null),B(t,n),B(t,l),B(l,s),y&&y.m(s,null),B(l,o),B(l,a),P&&P.m(a,null),B(l,f),R&&R.m(l,null),B(e,u),z&&z.m(e,null),B(e,c),Z&&Z.m(e,null),d=!0,h||(k=[oe(e,"click",i[14]),oe(e,"mouseover",i[15]),oe(e,"mouseenter",i[16]),oe(e,"mouseleave",i[17])],h=!0)},p(I,E){const D={};E&1&&(D.kind=I[0]),E&64&&(D.iconDescription=I[6]),r.$set(D),A?A.p&&(!d||E&4096)&&be(A,_,I,I[12],d?ke(_,I[12],E,rl):Ee(I[12]),Sn):y&&y.p&&(!d||E&8)&&y.p(I,d?E:-1),S?S.p&&(!d||E&4096)&&be(S,b,I,I[12],d?ke(b,I[12],E,nl):Ee(I[12]),On):P&&P.p&&(!d||E&16)&&P.p(I,d?E:-1),R&&R.p&&(!d||E&4096)&&be(R,T,I,I[12],d?ke(T,I[12],E,null):Ee(I[12]),null),z&&z.p&&(!d||E&4096)&&be(z,L,I,I[12],d?ke(L,I[12],E,tl):Ee(I[12]),wn),I[5]?Z&&(X(),g(Z,1,1,()=>{Z=null}),ee()):Z?(Z.p(I,E),E&32&&p(Z,1)):(Z=Tn(I),Z.c(),p(Z,1),Z.m(e,null)),Je(e,re=ze(ne,[(!d||E&4)&&{role:I[2]},(!d||E&1)&&{kind:I[0]},E&1024&&I[10]])),v(e,"bx--inline-notification",!0),v(e,"bx--inline-notification--low-contrast",I[1]),v(e,"bx--inline-notification--hide-close-button",I[5]),v(e,"bx--inline-notification--error",I[0]==="error"),v(e,"bx--inline-notification--info",I[0]==="info"),v(e,"bx--inline-notification--info-square",I[0]==="info-square"),v(e,"bx--inline-notification--success",I[0]==="success"),v(e,"bx--inline-notification--warning",I[0]==="warning"),v(e,"bx--inline-notification--warning-alt",I[0]==="warning-alt")},i(I){d||(p(r.$$.fragment,I),p(y,I),p(P,I),p(R,I),p(z,I),p(Z),d=!0)},o(I){g(r.$$.fragment,I),g(y,I),g(P,I),g(R,I),g(z,I),g(Z),d=!1},d(I){I&&m(e),K(r),y&&y.d(I),P&&P.d(I),R&&R.d(I),z&&z.d(I),Z&&Z.d(),h=!1,dt(k)}}}function il(i){let e;return{c(){e=ye(i[3])},l(t){e=we(t,i[3])},m(t,r){O(t,e,r)},p(t,r){r&8&&Pe(e,t[3])},d(t){t&&m(e)}}}function ll(i){let e;return{c(){e=ye(i[4])},l(t){e=we(t,i[4])},m(t,r){O(t,e,r)},p(t,r){r&16&&Pe(e,t[4])},d(t){t&&m(e)}}}function Tn(i){let e,t;return e=new Mi({props:{iconDescription:i[7],notificationType:"inline"}}),e.$on("click",i[9]),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){$(e,r,n),t=!0},p(r,n){const l={};n&128&&(l.iconDescription=r[7]),e.$set(l)},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function sl(i){let e,t,r=i[8]&&Pn(i);return{c(){r&&r.c(),e=x()},l(n){r&&r.l(n),e=x()},m(n,l){r&&r.m(n,l),O(n,e,l),t=!0},p(n,[l]){n[8]?r?(r.p(n,l),l&256&&p(r,1)):(r=Pn(n),r.c(),p(r,1),r.m(e.parentNode,e)):r&&(X(),g(r,1,1,()=>{r=null}),ee())},i(n){t||(p(r),t=!0)},o(n){g(r),t=!1},d(n){r&&r.d(n),n&&m(e)}}}function ol(i,e,t){const r=["kind","lowContrast","timeout","role","title","subtitle","hideCloseButton","statusIconDescription","closeButtonDescription"];let n=Ie(e,r),{$$slots:l={},$$scope:s}=e,{kind:o="error"}=e,{lowContrast:a=!1}=e,{timeout:f=0}=e,{role:u="alert"}=e,{title:c=""}=e,{subtitle:d=""}=e,{hideCloseButton:h=!1}=e,{statusIconDescription:k=o+" icon"}=e,{closeButtonDescription:_="Close notification"}=e;const A=Vt();let y=!0,b;function S(z){A("close",{timeout:z===!0},{cancelable:!0})&&t(8,y=!1)}sn(()=>(f&&(b=setTimeout(()=>S(!0),f)),()=>{clearTimeout(b)}));function P(z){ge.call(this,i,z)}function T(z){ge.call(this,i,z)}function R(z){ge.call(this,i,z)}function L(z){ge.call(this,i,z)}return i.$$set=z=>{e=me(me({},e),qe(z)),t(10,n=Ie(e,r)),"kind"in z&&t(0,o=z.kind),"lowContrast"in z&&t(1,a=z.lowContrast),"timeout"in z&&t(11,f=z.timeout),"role"in z&&t(2,u=z.role),"title"in z&&t(3,c=z.title),"subtitle"in z&&t(4,d=z.subtitle),"hideCloseButton"in z&&t(5,h=z.hideCloseButton),"statusIconDescription"in z&&t(6,k=z.statusIconDescription),"closeButtonDescription"in z&&t(7,_=z.closeButtonDescription),"$$scope"in z&&t(12,s=z.$$scope)},[o,a,u,c,d,h,k,_,y,S,n,f,s,l,P,T,R,L]}class al extends ce{constructor(e){super(),de(this,e,ol,sl,he,{kind:0,lowContrast:1,timeout:11,role:2,title:3,subtitle:4,hideCloseButton:5,statusIconDescription:6,closeButtonDescription:7})}}const Ou=al;function Rn(i){let e,t;return{c(){e=xe("title"),t=ye(i[1])},l(r){e=Fe(r,"title",{});var n=M(e);t=we(n,i[1]),n.forEach(m)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n&2&&Pe(t,r[1])},d(r){r&&m(e)}}}function fl(i){let e,t,r=i[1]&&Rn(i),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],l={};for(let s=0;s<n.length;s+=1)l=me(l,n[s]);return{c(){e=xe("svg"),r&&r.c(),t=xe("path"),this.h()},l(s){e=Fe(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=M(e);r&&r.l(o),t=Fe(o,"path",{d:!0}),M(t).forEach(m),o.forEach(m),this.h()},h(){C(t,"d","M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"),it(e,l)},m(s,o){O(s,e,o),r&&r.m(e,null),B(e,t)},p(s,[o]){s[1]?r?r.p(s,o):(r=Rn(s),r.c(),r.m(e,t)):r&&(r.d(1),r=null),it(e,l=ze(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:s[0]},o&1&&{height:s[0]},o&4&&s[2],o&8&&s[3]]))},i:ue,o:ue,d(s){s&&m(e),r&&r.d()}}}function ul(i,e,t){let r,n;const l=["size","title"];let s=Ie(e,l),{size:o=16}=e,{title:a=void 0}=e;return i.$$set=f=>{t(5,e=me(me({},e),qe(f))),t(3,s=Ie(e,l)),"size"in f&&t(0,o=f.size),"title"in f&&t(1,a=f.title)},i.$$.update=()=>{t(4,r=e["aria-label"]||e["aria-labelledby"]||a),t(2,n={"aria-hidden":r?void 0:!0,role:r?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=qe(e),[o,a,n,s,r]}class cl extends ce{constructor(e){super(),de(this,e,ul,fl,he,{size:0,title:1})}}const dl=cl;function An(i){let e,t;return{c(){e=xe("title"),t=ye(i[1])},l(r){e=Fe(r,"title",{});var n=M(e);t=we(n,i[1]),n.forEach(m)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n&2&&Pe(t,r[1])},d(r){r&&m(e)}}}function hl(i){let e,t,r=i[1]&&An(i),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],l={};for(let s=0;s<n.length;s+=1)l=me(l,n[s]);return{c(){e=xe("svg"),r&&r.c(),t=xe("path"),this.h()},l(s){e=Fe(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=M(e);r&&r.l(o),t=Fe(o,"path",{d:!0}),M(t).forEach(m),o.forEach(m),this.h()},h(){C(t,"d","M8 15H24V17H8z"),it(e,l)},m(s,o){O(s,e,o),r&&r.m(e,null),B(e,t)},p(s,[o]){s[1]?r?r.p(s,o):(r=An(s),r.c(),r.m(e,t)):r&&(r.d(1),r=null),it(e,l=ze(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:s[0]},o&1&&{height:s[0]},o&4&&s[2],o&8&&s[3]]))},i:ue,o:ue,d(s){s&&m(e),r&&r.d()}}}function ml(i,e,t){let r,n;const l=["size","title"];let s=Ie(e,l),{size:o=16}=e,{title:a=void 0}=e;return i.$$set=f=>{t(5,e=me(me({},e),qe(f))),t(3,s=Ie(e,l)),"size"in f&&t(0,o=f.size),"title"in f&&t(1,a=f.title)},i.$$.update=()=>{t(4,r=e["aria-label"]||e["aria-labelledby"]||a),t(2,n={"aria-hidden":r?void 0:!0,role:r?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=qe(e),[o,a,n,s,r]}class pl extends ce{constructor(e){super(),de(this,e,ml,hl,he,{size:0,title:1})}}const gl=pl;function In(i){let e,t;return{c(){e=xe("title"),t=ye(i[1])},l(r){e=Fe(r,"title",{});var n=M(e);t=we(n,i[1]),n.forEach(m)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n&2&&Pe(t,r[1])},d(r){r&&m(e)}}}function _l(i){let e,t,r=i[1]&&In(i),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],l={};for(let s=0;s<n.length;s+=1)l=me(l,n[s]);return{c(){e=xe("svg"),r&&r.c(),t=xe("path"),this.h()},l(s){e=Fe(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=M(e);r&&r.l(o),t=Fe(o,"path",{d:!0}),M(t).forEach(m),o.forEach(m),this.h()},h(){C(t,"d","M30 28.6L3.4 2 2 3.4l10.1 10.1L4 21.6V28h6.4l8.1-8.1L28.6 30 30 28.6zM9.6 26H6v-3.6l7.5-7.5 3.6 3.6L9.6 26zM29.4 6.2L29.4 6.2l-3.6-3.6c-.8-.8-2-.8-2.8 0l0 0 0 0-8 8 1.4 1.4L20 8.4l3.6 3.6L20 15.6l1.4 1.4 8-8C30.2 8.2 30.2 7 29.4 6.2L29.4 6.2zM25 10.6L21.4 7l3-3L28 7.6 25 10.6z"),it(e,l)},m(s,o){O(s,e,o),r&&r.m(e,null),B(e,t)},p(s,[o]){s[1]?r?r.p(s,o):(r=In(s),r.c(),r.m(e,t)):r&&(r.d(1),r=null),it(e,l=ze(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:s[0]},o&1&&{height:s[0]},o&4&&s[2],o&8&&s[3]]))},i:ue,o:ue,d(s){s&&m(e),r&&r.d()}}}function bl(i,e,t){let r,n;const l=["size","title"];let s=Ie(e,l),{size:o=16}=e,{title:a=void 0}=e;return i.$$set=f=>{t(5,e=me(me({},e),qe(f))),t(3,s=Ie(e,l)),"size"in f&&t(0,o=f.size),"title"in f&&t(1,a=f.title)},i.$$.update=()=>{t(4,r=e["aria-label"]||e["aria-labelledby"]||a),t(2,n={"aria-hidden":r?void 0:!0,role:r?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=qe(e),[o,a,n,s,r]}class El extends ce{constructor(e){super(),de(this,e,bl,_l,he,{size:0,title:1})}}const ei=El,kl=i=>({}),jn=i=>({});function Nn(i){let e,t;const r=i[34].label,n=_e(r,i,i[33],jn),l=n||vl(i);return{c(){e=U("label"),l&&l.c(),this.h()},l(s){e=q(s,"LABEL",{for:!0});var o=M(e);l&&l.l(o),o.forEach(m),this.h()},h(){C(e,"for",i[18]),v(e,"bx--label",!0),v(e,"bx--label--disabled",i[8]),v(e,"bx--visually-hidden",i[17])},m(s,o){O(s,e,o),l&&l.m(e,null),t=!0},p(s,o){n?n.p&&(!t||o[1]&4)&&be(n,r,s,s[33],t?ke(r,s[33],o,kl):Ee(s[33]),jn):l&&l.p&&(!t||o[0]&65536)&&l.p(s,t?o:[-1,-1]),(!t||o[0]&262144)&&C(e,"for",s[18]),(!t||o[0]&256)&&v(e,"bx--label--disabled",s[8]),(!t||o[0]&131072)&&v(e,"bx--visually-hidden",s[17])},i(s){t||(p(l,s),t=!0)},o(s){g(l,s),t=!1},d(s){s&&m(e),l&&l.d(s)}}}function vl(i){let e;return{c(){e=ye(i[16])},l(t){e=we(t,i[16])},m(t,r){O(t,e,r)},p(t,r){r[0]&65536&&Pe(e,t[16])},d(t){t&&m(e)}}}function yl(i){let e,t,r,n=i[11]&&Ln(),l=!i[11]&&i[13]&&Dn();return{c(){n&&n.c(),e=ae(),l&&l.c(),t=x()},l(s){n&&n.l(s),e=fe(s),l&&l.l(s),t=x()},m(s,o){n&&n.m(s,o),O(s,e,o),l&&l.m(s,o),O(s,t,o),r=!0},p(s,o){s[11]?n?o[0]&2048&&p(n,1):(n=Ln(),n.c(),p(n,1),n.m(e.parentNode,e)):n&&(X(),g(n,1,1,()=>{n=null}),ee()),!s[11]&&s[13]?l?o[0]&10240&&p(l,1):(l=Dn(),l.c(),p(l,1),l.m(t.parentNode,t)):l&&(X(),g(l,1,1,()=>{l=null}),ee())},i(s){r||(p(n),p(l),r=!0)},o(s){g(n),g(l),r=!1},d(s){n&&n.d(s),s&&m(e),l&&l.d(s),s&&m(t)}}}function wl(i){let e,t;return e=new ei({props:{class:"bx--text-input__readonly-icon"}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){$(e,r,n),t=!0},p:ue,i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function Ln(i){let e,t;return e=new Gr({props:{class:"bx--number__invalid"}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){$(e,r,n),t=!0},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function Dn(i){let e,t;return e=new Yr({props:{class:"bx--number__invalid bx--number__invalid--warning"}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){$(e,r,n),t=!0},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function Cn(i){let e,t,r,n,l,s,o,a,f,u,c,d,h,k,_,A,y;return r=new gl({props:{class:"down-icon"}}),u=new dl({props:{class:"up-icon"}}),{c(){e=U("div"),t=U("button"),W(r.$$.fragment),s=ae(),o=U("div"),a=ae(),f=U("button"),W(u.$$.fragment),h=ae(),k=U("div"),this.h()},l(b){e=q(b,"DIV",{});var S=M(e);t=q(S,"BUTTON",{type:!0,tabindex:!0,title:!0,"aria-label":!0});var P=M(t);ie(r.$$.fragment,P),P.forEach(m),s=fe(S),o=q(S,"DIV",{}),M(o).forEach(m),a=fe(S),f=q(S,"BUTTON",{type:!0,tabindex:!0,title:!0,"aria-label":!0});var T=M(f);ie(u.$$.fragment,T),T.forEach(m),h=fe(S),k=q(S,"DIV",{}),M(k).forEach(m),S.forEach(m),this.h()},h(){C(t,"type","button"),C(t,"tabindex","-1"),C(t,"title",n=i[23]||i[10]),C(t,"aria-label",l=i[23]||i[10]),t.disabled=i[8],v(t,"bx--number__control-btn",!0),v(t,"down-icon",!0),v(o,"bx--number__rule-divider",!0),C(f,"type","button"),C(f,"tabindex","-1"),C(f,"title",c=i[24]||i[10]),C(f,"aria-label",d=i[24]||i[10]),f.disabled=i[8],v(f,"bx--number__control-btn",!0),v(f,"up-icon",!0),v(k,"bx--number__rule-divider",!0),v(e,"bx--number__controls",!0)},m(b,S){O(b,e,S),B(e,t),$(r,t,null),B(e,s),B(e,o),B(e,a),B(e,f),$(u,f,null),B(e,h),B(e,k),_=!0,A||(y=[oe(t,"click",i[45]),oe(f,"click",i[46])],A=!0)},p(b,S){(!_||S[0]&8389632&&n!==(n=b[23]||b[10]))&&C(t,"title",n),(!_||S[0]&8389632&&l!==(l=b[23]||b[10]))&&C(t,"aria-label",l),(!_||S[0]&256)&&(t.disabled=b[8]),(!_||S[0]&16778240&&c!==(c=b[24]||b[10]))&&C(f,"title",c),(!_||S[0]&16778240&&d!==(d=b[24]||b[10]))&&C(f,"aria-label",d),(!_||S[0]&256)&&(f.disabled=b[8])},i(b){_||(p(r.$$.fragment,b),p(u.$$.fragment,b),_=!0)},o(b){g(r.$$.fragment,b),g(u.$$.fragment,b),_=!1},d(b){b&&m(e),K(r),K(u),A=!1,dt(y)}}}function zn(i){let e,t;return{c(){e=U("div"),t=ye(i[15]),this.h()},l(r){e=q(r,"DIV",{});var n=M(e);t=we(n,i[15]),n.forEach(m),this.h()},h(){v(e,"bx--form__helper-text",!0),v(e,"bx--form__helper-text--disabled",i[8])},m(r,n){O(r,e,n),B(e,t)},p(r,n){n[0]&32768&&Pe(t,r[15]),n[0]&256&&v(e,"bx--form__helper-text--disabled",r[8])},d(r){r&&m(e)}}}function Mn(i){let e,t;return{c(){e=U("div"),t=ye(i[12]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=M(e);t=we(n,i[12]),n.forEach(m),this.h()},h(){C(e,"id",i[21]),v(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n[0]&4096&&Pe(t,r[12]),n[0]&2097152&&C(e,"id",r[21])},d(r){r&&m(e)}}}function Vn(i){let e,t;return{c(){e=U("div"),t=ye(i[14]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=M(e);t=we(n,i[14]),n.forEach(m),this.h()},h(){C(e,"id",i[21]),v(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n[0]&16384&&Pe(t,r[14]),n[0]&2097152&&C(e,"id",r[21])},d(r){r&&m(e)}}}function Ol(i){let e,t,r,n,l,s,o,a,f,u,c,d,h,k,_,A,y,b,S,P,T=(i[28].label||i[16])&&Nn(i),R=[{type:"number"},{pattern:"[0-9]*"},{"aria-describedby":i[21]},{"data-invalid":s=i[22]||void 0},{"aria-invalid":o=i[22]||void 0},{"aria-label":a=i[16]?void 0:i[20]},{disabled:i[8]},{id:i[18]},{name:i[19]},{max:i[4]},{min:i[5]},{step:i[3]},{value:f=i[0]??""},{readOnly:i[7]},i[29]],L={};for(let w=0;w<R.length;w+=1)L=me(L,R[w]);const z=[wl,yl],Z=[];function ne(w,j){return w[7]?0:1}c=ne(i),d=Z[c]=z[c](i);let re=!i[9]&&Cn(i),I=!i[22]&&!i[13]&&i[15]&&zn(i),E=i[22]&&Mn(i),D=!i[22]&&i[13]&&Vn(i);return{c(){e=U("div"),t=U("div"),T&&T.c(),r=ae(),n=U("div"),l=U("input"),u=ae(),d.c(),h=ae(),re&&re.c(),k=ae(),I&&I.c(),_=ae(),E&&E.c(),A=ae(),D&&D.c(),this.h()},l(w){e=q(w,"DIV",{});var j=M(e);t=q(j,"DIV",{"data-invalid":!0});var J=M(t);T&&T.l(J),r=fe(J),n=q(J,"DIV",{});var le=M(n);l=q(le,"INPUT",{type:!0,pattern:!0,"aria-describedby":!0,"data-invalid":!0,"aria-invalid":!0,"aria-label":!0,id:!0,name:!0,max:!0,min:!0,step:!0}),u=fe(le),d.l(le),h=fe(le),re&&re.l(le),le.forEach(m),k=fe(J),I&&I.l(J),_=fe(J),E&&E.l(J),A=fe(J),D&&D.l(J),J.forEach(m),j.forEach(m),this.h()},h(){Je(l,L),v(n,"bx--number__input-wrapper",!0),v(n,"bx--number__input-wrapper--warning",!i[11]&&i[13]),C(t,"data-invalid",y=i[22]||void 0),v(t,"bx--number",!0),v(t,"bx--number--helpertext",!0),v(t,"bx--number--readonly",i[7]),v(t,"bx--number--light",i[6]),v(t,"bx--number--nolabel",i[17]),v(t,"bx--number--nosteppers",i[9]),v(t,"bx--number--sm",i[2]==="sm"),v(t,"bx--number--xl",i[2]==="xl"),v(e,"bx--form-item",!0)},m(w,j){O(w,e,j),B(e,t),T&&T.m(t,null),B(t,r),B(t,n),B(n,l),l.autofocus&&l.focus(),i[44](l),B(n,u),Z[c].m(n,null),B(n,h),re&&re.m(n,null),B(t,k),I&&I.m(t,null),B(t,_),E&&E.m(t,null),B(t,A),D&&D.m(t,null),b=!0,S||(P=[oe(l,"change",i[27]),oe(l,"input",i[26]),oe(l,"keydown",i[39]),oe(l,"keyup",i[40]),oe(l,"focus",i[41]),oe(l,"blur",i[42]),oe(l,"paste",i[43]),oe(e,"click",i[35]),oe(e,"mouseover",i[36]),oe(e,"mouseenter",i[37]),oe(e,"mouseleave",i[38])],S=!0)},p(w,j){w[28].label||w[16]?T?(T.p(w,j),j[0]&268500992&&p(T,1)):(T=Nn(w),T.c(),p(T,1),T.m(t,r)):T&&(X(),g(T,1,1,()=>{T=null}),ee()),Je(l,L=ze(R,[{type:"number"},{pattern:"[0-9]*"},(!b||j[0]&2097152)&&{"aria-describedby":w[21]},(!b||j[0]&4194304&&s!==(s=w[22]||void 0))&&{"data-invalid":s},(!b||j[0]&4194304&&o!==(o=w[22]||void 0))&&{"aria-invalid":o},(!b||j[0]&1114112&&a!==(a=w[16]?void 0:w[20]))&&{"aria-label":a},(!b||j[0]&256)&&{disabled:w[8]},(!b||j[0]&262144)&&{id:w[18]},(!b||j[0]&524288)&&{name:w[19]},(!b||j[0]&16)&&{max:w[4]},(!b||j[0]&32)&&{min:w[5]},(!b||j[0]&8)&&{step:w[3]},(!b||j[0]&1&&f!==(f=w[0]??"")&&l.value!==f)&&{value:f},(!b||j[0]&128)&&{readOnly:w[7]},j[0]&536870912&&w[29]]));let J=c;c=ne(w),c===J?Z[c].p(w,j):(X(),g(Z[J],1,1,()=>{Z[J]=null}),ee(),d=Z[c],d?d.p(w,j):(d=Z[c]=z[c](w),d.c()),p(d,1),d.m(n,h)),w[9]?re&&(X(),g(re,1,1,()=>{re=null}),ee()):re?(re.p(w,j),j[0]&512&&p(re,1)):(re=Cn(w),re.c(),p(re,1),re.m(n,null)),(!b||j[0]&10240)&&v(n,"bx--number__input-wrapper--warning",!w[11]&&w[13]),!w[22]&&!w[13]&&w[15]?I?I.p(w,j):(I=zn(w),I.c(),I.m(t,_)):I&&(I.d(1),I=null),w[22]?E?E.p(w,j):(E=Mn(w),E.c(),E.m(t,A)):E&&(E.d(1),E=null),!w[22]&&w[13]?D?D.p(w,j):(D=Vn(w),D.c(),D.m(t,null)):D&&(D.d(1),D=null),(!b||j[0]&4194304&&y!==(y=w[22]||void 0))&&C(t,"data-invalid",y),(!b||j[0]&128)&&v(t,"bx--number--readonly",w[7]),(!b||j[0]&64)&&v(t,"bx--number--light",w[6]),(!b||j[0]&131072)&&v(t,"bx--number--nolabel",w[17]),(!b||j[0]&512)&&v(t,"bx--number--nosteppers",w[9]),(!b||j[0]&4)&&v(t,"bx--number--sm",w[2]==="sm"),(!b||j[0]&4)&&v(t,"bx--number--xl",w[2]==="xl")},i(w){b||(p(T),p(d),p(re),b=!0)},o(w){g(T),g(d),g(re),b=!1},d(w){w&&m(e),T&&T.d(),i[44](null),Z[c].d(),re&&re.d(),I&&I.d(),E&&E.d(),D&&D.d(),S=!1,dt(P)}}}function Un(i){return i!=""?Number(i):null}function Sl(i,e,t){let r,n,l,s,o;const a=["size","value","step","max","min","light","readonly","allowEmpty","disabled","hideSteppers","iconDescription","invalid","invalidText","warn","warnText","helperText","label","hideLabel","translateWithId","translationIds","id","name","ref"];let f=Ie(e,a),{$$slots:u={},$$scope:c}=e;const d=$r(u);let{size:h=void 0}=e,{value:k=null}=e,{step:_=1}=e,{max:A=void 0}=e,{min:y=void 0}=e,{light:b=!1}=e,{readonly:S=!1}=e,{allowEmpty:P=!1}=e,{disabled:T=!1}=e,{hideSteppers:R=!1}=e,{iconDescription:L=""}=e,{invalid:z=!1}=e,{invalidText:Z=""}=e,{warn:ne=!1}=e,{warnText:re=""}=e,{helperText:I=""}=e,{label:E=""}=e,{hideLabel:D=!1}=e,{translateWithId:w=V=>Te[V]}=e;const j={increment:"increment",decrement:"decrement"};let{id:J="ccs-"+Math.random().toString(36)}=e,{name:le=void 0}=e,{ref:se=null}=e;const Te={[j.increment]:"Increment number",[j.decrement]:"Decrement number"},Re=Vt();function N(V){V?se.stepUp():se.stepDown(),t(0,k=+se.value),Re("input",k),Re("change",k)}function te({target:V}){t(0,k=Un(V.value)),Re("input",k)}function Ne({target:V}){Re("change",Un(V.value))}function Ve(V){ge.call(this,i,V)}function Bt(V){ge.call(this,i,V)}function xt(V){ge.call(this,i,V)}function Ft(V){ge.call(this,i,V)}function Zt(V){ge.call(this,i,V)}function Ht(V){ge.call(this,i,V)}function F(V){ge.call(this,i,V)}function Pi(V){ge.call(this,i,V)}function Ti(V){ge.call(this,i,V)}function Ri(V){Ze[V?"unshift":"push"](()=>{se=V,t(1,se)})}const Ai=()=>{N(!1)},Ii=()=>{N(!0)};return i.$$set=V=>{t(49,e=me(me({},e),qe(V))),t(29,f=Ie(e,a)),"size"in V&&t(2,h=V.size),"value"in V&&t(0,k=V.value),"step"in V&&t(3,_=V.step),"max"in V&&t(4,A=V.max),"min"in V&&t(5,y=V.min),"light"in V&&t(6,b=V.light),"readonly"in V&&t(7,S=V.readonly),"allowEmpty"in V&&t(30,P=V.allowEmpty),"disabled"in V&&t(8,T=V.disabled),"hideSteppers"in V&&t(9,R=V.hideSteppers),"iconDescription"in V&&t(10,L=V.iconDescription),"invalid"in V&&t(11,z=V.invalid),"invalidText"in V&&t(12,Z=V.invalidText),"warn"in V&&t(13,ne=V.warn),"warnText"in V&&t(14,re=V.warnText),"helperText"in V&&t(15,I=V.helperText),"label"in V&&t(16,E=V.label),"hideLabel"in V&&t(17,D=V.hideLabel),"translateWithId"in V&&t(31,w=V.translateWithId),"id"in V&&t(18,J=V.id),"name"in V&&t(19,le=V.name),"ref"in V&&t(1,se=V.ref),"$$scope"in V&&t(33,c=V.$$scope)},i.$$.update=()=>{i.$$.dirty[1]&1&&t(24,r=w("increment")),i.$$.dirty[1]&1&&t(23,n=w("decrement")),i.$$.dirty[0]&1073744049&&t(22,l=z&&!S||!P&&k==null||k>A||typeof k=="number"&&k<y),i.$$.dirty[0]&262144&&t(21,s=`error-${J}`),t(20,o=e["aria-label"]||"Numeric input field with increment and decrement buttons")},e=qe(e),[k,se,h,_,A,y,b,S,T,R,L,z,Z,ne,re,I,E,D,J,le,o,s,l,n,r,N,te,Ne,d,f,P,w,j,c,u,Ve,Bt,xt,Ft,Zt,Ht,F,Pi,Ti,Ri,Ai,Ii]}class Pl extends ce{constructor(e){super(),de(this,e,Sl,Ol,he,{size:2,value:0,step:3,max:4,min:5,light:6,readonly:7,allowEmpty:30,disabled:8,hideSteppers:9,iconDescription:10,invalid:11,invalidText:12,warn:13,warnText:14,helperText:15,label:16,hideLabel:17,translateWithId:31,translationIds:32,id:18,name:19,ref:1},null,[-1,-1])}get translationIds(){return this.$$.ctx[32]}}const Tl=Pl,Rl=i=>({}),qn=i=>({}),Al=i=>({}),Bn=i=>({});function xn(i){let e,t,r,n=i[9]&&Fn(i),l=!i[22]&&i[6]&&Zn(i);return{c(){e=U("div"),n&&n.c(),t=ae(),l&&l.c(),this.h()},l(s){e=q(s,"DIV",{});var o=M(e);n&&n.l(o),t=fe(o),l&&l.l(o),o.forEach(m),this.h()},h(){v(e,"bx--text-input__label-helper-wrapper",!0)},m(s,o){O(s,e,o),n&&n.m(e,null),B(e,t),l&&l.m(e,null),r=!0},p(s,o){s[9]?n?(n.p(s,o),o[0]&512&&p(n,1)):(n=Fn(s),n.c(),p(n,1),n.m(e,t)):n&&(X(),g(n,1,1,()=>{n=null}),ee()),!s[22]&&s[6]?l?l.p(s,o):(l=Zn(s),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i(s){r||(p(n),r=!0)},o(s){g(n),r=!1},d(s){s&&m(e),n&&n.d(),l&&l.d()}}}function Fn(i){let e,t;const r=i[28].labelText,n=_e(r,i,i[27],Bn),l=n||Il(i);return{c(){e=U("label"),l&&l.c(),this.h()},l(s){e=q(s,"LABEL",{for:!0});var o=M(e);l&&l.l(o),o.forEach(m),this.h()},h(){C(e,"for",i[7]),v(e,"bx--label",!0),v(e,"bx--visually-hidden",i[10]),v(e,"bx--label--disabled",i[5]),v(e,"bx--label--inline",i[16]),v(e,"bx--label--inline--sm",i[2]==="sm"),v(e,"bx--label--inline--xl",i[2]==="xl")},m(s,o){O(s,e,o),l&&l.m(e,null),t=!0},p(s,o){n?n.p&&(!t||o[0]&134217728)&&be(n,r,s,s[27],t?ke(r,s[27],o,Al):Ee(s[27]),Bn):l&&l.p&&(!t||o[0]&512)&&l.p(s,t?o:[-1,-1]),(!t||o[0]&128)&&C(e,"for",s[7]),(!t||o[0]&1024)&&v(e,"bx--visually-hidden",s[10]),(!t||o[0]&32)&&v(e,"bx--label--disabled",s[5]),(!t||o[0]&65536)&&v(e,"bx--label--inline",s[16]),(!t||o[0]&4)&&v(e,"bx--label--inline--sm",s[2]==="sm"),(!t||o[0]&4)&&v(e,"bx--label--inline--xl",s[2]==="xl")},i(s){t||(p(l,s),t=!0)},o(s){g(l,s),t=!1},d(s){s&&m(e),l&&l.d(s)}}}function Il(i){let e;return{c(){e=ye(i[9])},l(t){e=we(t,i[9])},m(t,r){O(t,e,r)},p(t,r){r[0]&512&&Pe(e,t[9])},d(t){t&&m(e)}}}function Zn(i){let e,t;return{c(){e=U("div"),t=ye(i[6]),this.h()},l(r){e=q(r,"DIV",{});var n=M(e);t=we(n,i[6]),n.forEach(m),this.h()},h(){v(e,"bx--form__helper-text",!0),v(e,"bx--form__helper-text--disabled",i[5]),v(e,"bx--form__helper-text--inline",i[16])},m(r,n){O(r,e,n),B(e,t)},p(r,n){n[0]&64&&Pe(t,r[6]),n[0]&32&&v(e,"bx--form__helper-text--disabled",r[5]),n[0]&65536&&v(e,"bx--form__helper-text--inline",r[16])},d(r){r&&m(e)}}}function Hn(i){let e,t;const r=i[28].labelText,n=_e(r,i,i[27],qn),l=n||jl(i);return{c(){e=U("label"),l&&l.c(),this.h()},l(s){e=q(s,"LABEL",{for:!0});var o=M(e);l&&l.l(o),o.forEach(m),this.h()},h(){C(e,"for",i[7]),v(e,"bx--label",!0),v(e,"bx--visually-hidden",i[10]),v(e,"bx--label--disabled",i[5]),v(e,"bx--label--inline",i[16]),v(e,"bx--label--inline-sm",i[16]&&i[2]==="sm"),v(e,"bx--label--inline-xl",i[16]&&i[2]==="xl")},m(s,o){O(s,e,o),l&&l.m(e,null),t=!0},p(s,o){n?n.p&&(!t||o[0]&134217728)&&be(n,r,s,s[27],t?ke(r,s[27],o,Rl):Ee(s[27]),qn):l&&l.p&&(!t||o[0]&512)&&l.p(s,t?o:[-1,-1]),(!t||o[0]&128)&&C(e,"for",s[7]),(!t||o[0]&1024)&&v(e,"bx--visually-hidden",s[10]),(!t||o[0]&32)&&v(e,"bx--label--disabled",s[5]),(!t||o[0]&65536)&&v(e,"bx--label--inline",s[16]),(!t||o[0]&65540)&&v(e,"bx--label--inline-sm",s[16]&&s[2]==="sm"),(!t||o[0]&65540)&&v(e,"bx--label--inline-xl",s[16]&&s[2]==="xl")},i(s){t||(p(l,s),t=!0)},o(s){g(l,s),t=!1},d(s){s&&m(e),l&&l.d(s)}}}function jl(i){let e;return{c(){e=ye(i[9])},l(t){e=we(t,i[9])},m(t,r){O(t,e,r)},p(t,r){r[0]&512&&Pe(e,t[9])},d(t){t&&m(e)}}}function Nl(i){let e,t,r,n=i[11]&&Jn(),l=!i[11]&&i[13]&&Wn();return{c(){n&&n.c(),e=ae(),l&&l.c(),t=x()},l(s){n&&n.l(s),e=fe(s),l&&l.l(s),t=x()},m(s,o){n&&n.m(s,o),O(s,e,o),l&&l.m(s,o),O(s,t,o),r=!0},p(s,o){s[11]?n?o[0]&2048&&p(n,1):(n=Jn(),n.c(),p(n,1),n.m(e.parentNode,e)):n&&(X(),g(n,1,1,()=>{n=null}),ee()),!s[11]&&s[13]?l?o[0]&10240&&p(l,1):(l=Wn(),l.c(),p(l,1),l.m(t.parentNode,t)):l&&(X(),g(l,1,1,()=>{l=null}),ee())},i(s){r||(p(n),p(l),r=!0)},o(s){g(n),g(l),r=!1},d(s){n&&n.d(s),s&&m(e),l&&l.d(s),s&&m(t)}}}function Ll(i){let e,t;return e=new ei({props:{class:"bx--text-input__readonly-icon"}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){$(e,r,n),t=!0},p:ue,i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function Jn(i){let e,t;return e=new Gr({props:{class:"bx--text-input__invalid-icon"}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){$(e,r,n),t=!0},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function Wn(i){let e,t;return e=new Yr({props:{class:`bx--text-input__invalid-icon
            bx--text-input__invalid-icon--warning`}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){$(e,r,n),t=!0},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function $n(i){let e;return{c(){e=U("hr"),this.h()},l(t){e=q(t,"HR",{}),this.h()},h(){v(e,"bx--text-input__divider",!0)},m(t,r){O(t,e,r)},d(t){t&&m(e)}}}function Kn(i){let e,t;return{c(){e=U("div"),t=ye(i[12]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=M(e);t=we(n,i[12]),n.forEach(m),this.h()},h(){C(e,"id",i[19]),v(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n[0]&4096&&Pe(t,r[12]),n[0]&524288&&C(e,"id",r[19])},d(r){r&&m(e)}}}function Qn(i){let e,t;return{c(){e=U("div"),t=ye(i[14]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=M(e);t=we(n,i[14]),n.forEach(m),this.h()},h(){C(e,"id",i[18]),v(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n[0]&16384&&Pe(t,r[14]),n[0]&262144&&C(e,"id",r[18])},d(r){r&&m(e)}}}function Gn(i){let e,t;return{c(){e=U("div"),t=ye(i[6]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=M(e);t=we(n,i[6]),n.forEach(m),this.h()},h(){C(e,"id",i[20]),v(e,"bx--form__helper-text",!0),v(e,"bx--form__helper-text--disabled",i[5]),v(e,"bx--form__helper-text--inline",i[16])},m(r,n){O(r,e,n),B(e,t)},p(r,n){n[0]&64&&Pe(t,r[6]),n[0]&1048576&&C(e,"id",r[20]),n[0]&32&&v(e,"bx--form__helper-text--disabled",r[5]),n[0]&65536&&v(e,"bx--form__helper-text--inline",r[16])},d(r){r&&m(e)}}}function Yn(i){let e,t;return{c(){e=U("div"),t=ye(i[12]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=M(e);t=we(n,i[12]),n.forEach(m),this.h()},h(){C(e,"id",i[19]),v(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n[0]&4096&&Pe(t,r[12]),n[0]&524288&&C(e,"id",r[19])},d(r){r&&m(e)}}}function Xn(i){let e,t;return{c(){e=U("div"),t=ye(i[14]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=M(e);t=we(n,i[14]),n.forEach(m),this.h()},h(){C(e,"id",i[18]),v(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n[0]&16384&&Pe(t,r[14]),n[0]&262144&&C(e,"id",r[18])},d(r){r&&m(e)}}}function Dl(i){let e,t,r,n,l,s,o,a,f,u,c,d,h,k,_,A,y,b,S,P,T,R,L,z,Z=i[16]&&xn(i),ne=!i[16]&&(i[9]||i[26].labelText)&&Hn(i);const re=[Ll,Nl],I=[];function E(N,te){return N[17]?0:1}s=E(i),o=I[s]=re[s](i);let D=[{"data-invalid":u=i[21]||void 0},{"aria-invalid":c=i[21]||void 0},{"data-warn":d=i[13]||void 0},{"aria-describedby":h=i[21]?i[19]:i[13]?i[18]:i[6]?i[20]:void 0},{disabled:i[5]},{id:i[7]},{name:i[8]},{placeholder:i[3]},{required:i[15]},{readOnly:i[17]},i[25]],w={};for(let N=0;N<D.length;N+=1)w=me(w,D[N]);let j=i[22]&&$n(),J=i[22]&&!i[16]&&i[11]&&Kn(i),le=i[22]&&!i[16]&&i[13]&&Qn(i),se=!i[11]&&!i[13]&&!i[22]&&!i[16]&&i[6]&&Gn(i),Te=!i[22]&&i[11]&&Yn(i),Re=!i[22]&&!i[11]&&i[13]&&Xn(i);return{c(){e=U("div"),Z&&Z.c(),t=ae(),ne&&ne.c(),r=ae(),n=U("div"),l=U("div"),o.c(),a=ae(),f=U("input"),k=ae(),j&&j.c(),_=ae(),J&&J.c(),A=ae(),le&&le.c(),S=ae(),se&&se.c(),P=ae(),Te&&Te.c(),T=ae(),Re&&Re.c(),this.h()},l(N){e=q(N,"DIV",{});var te=M(e);Z&&Z.l(te),t=fe(te),ne&&ne.l(te),r=fe(te),n=q(te,"DIV",{});var Ne=M(n);l=q(Ne,"DIV",{"data-invalid":!0,"data-warn":!0});var Ve=M(l);o.l(Ve),a=fe(Ve),f=q(Ve,"INPUT",{"data-invalid":!0,"aria-invalid":!0,"data-warn":!0,"aria-describedby":!0,id:!0,name:!0,placeholder:!0}),k=fe(Ve),j&&j.l(Ve),_=fe(Ve),J&&J.l(Ve),A=fe(Ve),le&&le.l(Ve),Ve.forEach(m),S=fe(Ne),se&&se.l(Ne),P=fe(Ne),Te&&Te.l(Ne),T=fe(Ne),Re&&Re.l(Ne),Ne.forEach(m),te.forEach(m),this.h()},h(){Je(f,w),v(f,"bx--text-input",!0),v(f,"bx--text-input--light",i[4]),v(f,"bx--text-input--invalid",i[21]),v(f,"bx--text-input--warning",i[13]),v(f,"bx--text-input--sm",i[2]==="sm"),v(f,"bx--text-input--xl",i[2]==="xl"),C(l,"data-invalid",y=i[21]||void 0),C(l,"data-warn",b=i[13]||void 0),v(l,"bx--text-input__field-wrapper",!0),v(l,"bx--text-input__field-wrapper--warning",!i[11]&&i[13]),v(n,"bx--text-input__field-outer-wrapper",!0),v(n,"bx--text-input__field-outer-wrapper--inline",i[16]),v(e,"bx--form-item",!0),v(e,"bx--text-input-wrapper",!0),v(e,"bx--text-input-wrapper--inline",i[16]),v(e,"bx--text-input-wrapper--light",i[4]),v(e,"bx--text-input-wrapper--readonly",i[17])},m(N,te){O(N,e,te),Z&&Z.m(e,null),B(e,t),ne&&ne.m(e,null),B(e,r),B(e,n),B(n,l),I[s].m(l,null),B(l,a),B(l,f),f.autofocus&&f.focus(),i[38](f),bn(f,i[0]),B(l,k),j&&j.m(l,null),B(l,_),J&&J.m(l,null),B(l,A),le&&le.m(l,null),B(n,S),se&&se.m(n,null),B(n,P),Te&&Te.m(n,null),B(n,T),Re&&Re.m(n,null),R=!0,L||(z=[oe(f,"input",i[39]),oe(f,"change",i[24]),oe(f,"input",i[23]),oe(f,"keydown",i[33]),oe(f,"keyup",i[34]),oe(f,"focus",i[35]),oe(f,"blur",i[36]),oe(f,"paste",i[37]),oe(e,"click",i[29]),oe(e,"mouseover",i[30]),oe(e,"mouseenter",i[31]),oe(e,"mouseleave",i[32])],L=!0)},p(N,te){N[16]?Z?(Z.p(N,te),te[0]&65536&&p(Z,1)):(Z=xn(N),Z.c(),p(Z,1),Z.m(e,t)):Z&&(X(),g(Z,1,1,()=>{Z=null}),ee()),!N[16]&&(N[9]||N[26].labelText)?ne?(ne.p(N,te),te[0]&67174912&&p(ne,1)):(ne=Hn(N),ne.c(),p(ne,1),ne.m(e,r)):ne&&(X(),g(ne,1,1,()=>{ne=null}),ee());let Ne=s;s=E(N),s===Ne?I[s].p(N,te):(X(),g(I[Ne],1,1,()=>{I[Ne]=null}),ee(),o=I[s],o?o.p(N,te):(o=I[s]=re[s](N),o.c()),p(o,1),o.m(l,a)),Je(f,w=ze(D,[(!R||te[0]&2097152&&u!==(u=N[21]||void 0))&&{"data-invalid":u},(!R||te[0]&2097152&&c!==(c=N[21]||void 0))&&{"aria-invalid":c},(!R||te[0]&8192&&d!==(d=N[13]||void 0))&&{"data-warn":d},(!R||te[0]&3940416&&h!==(h=N[21]?N[19]:N[13]?N[18]:N[6]?N[20]:void 0))&&{"aria-describedby":h},(!R||te[0]&32)&&{disabled:N[5]},(!R||te[0]&128)&&{id:N[7]},(!R||te[0]&256)&&{name:N[8]},(!R||te[0]&8)&&{placeholder:N[3]},(!R||te[0]&32768)&&{required:N[15]},(!R||te[0]&131072)&&{readOnly:N[17]},te[0]&33554432&&N[25]])),te[0]&1&&f.value!==N[0]&&bn(f,N[0]),v(f,"bx--text-input",!0),v(f,"bx--text-input--light",N[4]),v(f,"bx--text-input--invalid",N[21]),v(f,"bx--text-input--warning",N[13]),v(f,"bx--text-input--sm",N[2]==="sm"),v(f,"bx--text-input--xl",N[2]==="xl"),N[22]?j||(j=$n(),j.c(),j.m(l,_)):j&&(j.d(1),j=null),N[22]&&!N[16]&&N[11]?J?J.p(N,te):(J=Kn(N),J.c(),J.m(l,A)):J&&(J.d(1),J=null),N[22]&&!N[16]&&N[13]?le?le.p(N,te):(le=Qn(N),le.c(),le.m(l,null)):le&&(le.d(1),le=null),(!R||te[0]&2097152&&y!==(y=N[21]||void 0))&&C(l,"data-invalid",y),(!R||te[0]&8192&&b!==(b=N[13]||void 0))&&C(l,"data-warn",b),(!R||te[0]&10240)&&v(l,"bx--text-input__field-wrapper--warning",!N[11]&&N[13]),!N[11]&&!N[13]&&!N[22]&&!N[16]&&N[6]?se?se.p(N,te):(se=Gn(N),se.c(),se.m(n,P)):se&&(se.d(1),se=null),!N[22]&&N[11]?Te?Te.p(N,te):(Te=Yn(N),Te.c(),Te.m(n,T)):Te&&(Te.d(1),Te=null),!N[22]&&!N[11]&&N[13]?Re?Re.p(N,te):(Re=Xn(N),Re.c(),Re.m(n,null)):Re&&(Re.d(1),Re=null),(!R||te[0]&65536)&&v(n,"bx--text-input__field-outer-wrapper--inline",N[16]),(!R||te[0]&65536)&&v(e,"bx--text-input-wrapper--inline",N[16]),(!R||te[0]&16)&&v(e,"bx--text-input-wrapper--light",N[4]),(!R||te[0]&131072)&&v(e,"bx--text-input-wrapper--readonly",N[17])},i(N){R||(p(Z),p(ne),p(o),R=!0)},o(N){g(Z),g(ne),g(o),R=!1},d(N){N&&m(e),Z&&Z.d(),ne&&ne.d(),I[s].d(),i[38](null),j&&j.d(),J&&J.d(),le&&le.d(),se&&se.d(),Te&&Te.d(),Re&&Re.d(),L=!1,dt(z)}}}function Cl(i,e,t){let r,n,l,s,o;const a=["size","value","placeholder","light","disabled","helperText","id","name","labelText","hideLabel","invalid","invalidText","warn","warnText","ref","required","inline","readonly"];let f=Ie(e,a),{$$slots:u={},$$scope:c}=e;const d=$r(u);let{size:h=void 0}=e,{value:k=""}=e,{placeholder:_=""}=e,{light:A=!1}=e,{disabled:y=!1}=e,{helperText:b=""}=e,{id:S="ccs-"+Math.random().toString(36)}=e,{name:P=void 0}=e,{labelText:T=""}=e,{hideLabel:R=!1}=e,{invalid:L=!1}=e,{invalidText:z=""}=e,{warn:Z=!1}=e,{warnText:ne=""}=e,{ref:re=null}=e,{required:I=!1}=e,{inline:E=!1}=e,{readonly:D=!1}=e;const w=Kr("Form"),j=Vt();function J(F){return f.type!=="number"?F:F!=""?Number(F):null}const le=F=>{t(0,k=J(F.target.value)),j("input",k)},se=F=>{j("change",J(F.target.value))};function Te(F){ge.call(this,i,F)}function Re(F){ge.call(this,i,F)}function N(F){ge.call(this,i,F)}function te(F){ge.call(this,i,F)}function Ne(F){ge.call(this,i,F)}function Ve(F){ge.call(this,i,F)}function Bt(F){ge.call(this,i,F)}function xt(F){ge.call(this,i,F)}function Ft(F){ge.call(this,i,F)}function Zt(F){Ze[F?"unshift":"push"](()=>{re=F,t(1,re)})}function Ht(){k=this.value,t(0,k)}return i.$$set=F=>{e=me(me({},e),qe(F)),t(25,f=Ie(e,a)),"size"in F&&t(2,h=F.size),"value"in F&&t(0,k=F.value),"placeholder"in F&&t(3,_=F.placeholder),"light"in F&&t(4,A=F.light),"disabled"in F&&t(5,y=F.disabled),"helperText"in F&&t(6,b=F.helperText),"id"in F&&t(7,S=F.id),"name"in F&&t(8,P=F.name),"labelText"in F&&t(9,T=F.labelText),"hideLabel"in F&&t(10,R=F.hideLabel),"invalid"in F&&t(11,L=F.invalid),"invalidText"in F&&t(12,z=F.invalidText),"warn"in F&&t(13,Z=F.warn),"warnText"in F&&t(14,ne=F.warnText),"ref"in F&&t(1,re=F.ref),"required"in F&&t(15,I=F.required),"inline"in F&&t(16,E=F.inline),"readonly"in F&&t(17,D=F.readonly),"$$scope"in F&&t(27,c=F.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&133120&&t(21,n=L&&!D),i.$$.dirty[0]&128&&t(20,l=`helper-${S}`),i.$$.dirty[0]&128&&t(19,s=`error-${S}`),i.$$.dirty[0]&128&&t(18,o=`warn-${S}`)},t(22,r=!!w&&w.isFluid),[k,re,h,_,A,y,b,S,P,T,R,L,z,Z,ne,I,E,D,o,s,l,n,r,le,se,f,d,c,u,Te,Re,N,te,Ne,Ve,Bt,xt,Ft,Zt,Ht]}class zl extends ce{constructor(e){super(),de(this,e,Cl,Dl,he,{size:2,value:0,placeholder:3,light:4,disabled:5,helperText:6,id:7,name:8,labelText:9,hideLabel:10,invalid:11,invalidText:12,warn:13,warnText:14,ref:1,required:15,inline:16,readonly:17},null,[-1,-1])}}const Ml=zl;class Vl extends Zi{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:kn()},t)}getOptimisticResult(e){return e.behavior=kn(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var r,n,l,s,o,a;const{state:f}=e,u=super.createResult(e,t),{isFetching:c,isRefetching:d}=u,h=c&&((r=f.fetchMeta)==null||(n=r.fetchMore)==null?void 0:n.direction)==="forward",k=c&&((l=f.fetchMeta)==null||(s=l.fetchMore)==null?void 0:s.direction)==="backward";return{...u,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Vi(t,(o=f.data)==null?void 0:o.pages),hasPreviousPage:Ui(t,(a=f.data)==null?void 0:a.pages),isFetchingNextPage:h,isFetchingPreviousPage:k,isRefetching:d&&!h&&!k}}}function Ul(i,e,t){const r=Hi(i,e,t);return Ji(r,Vl)}class an{static getSources(){return Le(De,{method:"GET",url:"/api/v1/data_loaders/"})}static getSourceSchema(e){return Le(De,{method:"GET",url:"/api/v1/data_loaders/{source_name}",path:{source_name:e},errors:{422:"Validation Error"}})}static load(e,t){return Le(De,{method:"POST",url:"/api/v1/data_loaders/{source_name}/load",path:{source_name:e},body:t,mediaType:"application/json",errors:{422:"Validation Error"}})}}class Me{static getDatasets(){return Le(De,{method:"GET",url:"/api/v1/datasets/"})}static getManifest(e,t){return Le(De,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}",path:{namespace:e,dataset_name:t},errors:{422:"Validation Error"}})}static deleteDataset(e,t){return Le(De,{method:"DELETE",url:"/api/v1/datasets/{namespace}/{dataset_name}",path:{namespace:e,dataset_name:t},errors:{422:"Validation Error"}})}static computeSignal(e,t,r){return Le(De,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/compute_signal",path:{namespace:e,dataset_name:t},body:r,mediaType:"application/json",errors:{422:"Validation Error"}})}static deleteSignal(e,t,r){return Le(De,{method:"DELETE",url:"/api/v1/datasets/{namespace}/{dataset_name}/delete_signal",path:{namespace:e,dataset_name:t},body:r,mediaType:"application/json",errors:{422:"Validation Error"}})}static getStats(e,t,r){return Le(De,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/stats",path:{namespace:e,dataset_name:t},body:r,mediaType:"application/json",errors:{422:"Validation Error"}})}static selectRowsDownload(e,t,r){return Le(De,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_rows_download",path:{namespace:e,dataset_name:t},query:{url_safe_options:r},errors:{422:"Validation Error"}})}static selectRows(e,t,r){return Le(De,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_rows",path:{namespace:e,dataset_name:t},body:r,mediaType:"application/json",errors:{422:"Validation Error"}})}static selectRowsSchema(e,t,r){return Le(De,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_rows_schema",path:{namespace:e,dataset_name:t},body:r,mediaType:"application/json",errors:{422:"Validation Error"}})}static selectGroups(e,t,r){return Le(De,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_groups",path:{namespace:e,dataset_name:t},body:r,mediaType:"application/json",errors:{422:"Validation Error"}})}static getMedia(e,t,r,n){return Le(De,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}/media",path:{namespace:e,dataset_name:t},query:{item_id:r,leaf_path:n},errors:{422:"Validation Error"}})}static getSettings(e,t){return Le(De,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}/settings",path:{namespace:e,dataset_name:t},errors:{422:"Validation Error"}})}static updateSettings(e,t,r){return Le(De,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/settings",path:{namespace:e,dataset_name:t},body:r,mediaType:"application/json",errors:{422:"Validation Error"}})}}function er(i){let e,t;return{c(){e=xe("title"),t=ye(i[1])},l(r){e=Fe(r,"title",{});var n=M(e);t=we(n,i[1]),n.forEach(m)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n&2&&Pe(t,r[1])},d(r){r&&m(e)}}}function ql(i){let e,t,r=i[1]&&er(i),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],l={};for(let s=0;s<n.length;s+=1)l=me(l,n[s]);return{c(){e=xe("svg"),r&&r.c(),t=xe("path"),this.h()},l(s){e=Fe(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=M(e);r&&r.l(o),t=Fe(o,"path",{d:!0}),M(t).forEach(m),o.forEach(m),this.h()},h(){C(t,"d","M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"),it(e,l)},m(s,o){O(s,e,o),r&&r.m(e,null),B(e,t)},p(s,[o]){s[1]?r?r.p(s,o):(r=er(s),r.c(),r.m(e,t)):r&&(r.d(1),r=null),it(e,l=ze(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:s[0]},o&1&&{height:s[0]},o&4&&s[2],o&8&&s[3]]))},i:ue,o:ue,d(s){s&&m(e),r&&r.d()}}}function Bl(i,e,t){let r,n;const l=["size","title"];let s=Ie(e,l),{size:o=16}=e,{title:a=void 0}=e;return i.$$set=f=>{t(5,e=me(me({},e),qe(f))),t(3,s=Ie(e,l)),"size"in f&&t(0,o=f.size),"title"in f&&t(1,a=f.title)},i.$$.update=()=>{t(4,r=e["aria-label"]||e["aria-labelledby"]||a),t(2,n={"aria-hidden":r?void 0:!0,role:r?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=qe(e),[o,a,n,s,r]}class xl extends ce{constructor(e){super(),de(this,e,Bl,ql,he,{size:0,title:1})}}const Su=Fi("goto"),Ae="datasets",ti="settings",tr=20,Pu=He(Me.getDatasets,Ae),Tu=He(Me.getManifest,Ae,{}),Ru=He(Me.getManifest,Ae,{select:i=>on(i.dataset_manifest.data_schema)}),Au=He(function(e,t){return e&&t?Me.getManifest(e,t):Promise.resolve(null)},Ae,{select:i=>i?on(i.dataset_manifest.data_schema):null}),Iu=He(an.getSources,Ae),ju=He(an.getSourceSchema,Ae,{select:i=>i}),Nu=vt(an.load),Lu=vt(Me.computeSignal,{onSuccess:i=>{Ye.invalidateQueries([$i]),qi(i.task_id,()=>{Ye.invalidateQueries([Ae,"getManifest"]),Ye.invalidateQueries([Ae,"selectRowsSchema"]),Ye.invalidateQueries([Ae,"selectRows"])})}}),Du=vt(Me.deleteDataset,{onSuccess:()=>{Ye.invalidateQueries([Ae])}}),Cu=vt(Me.deleteSignal,{onSuccess:()=>{Ye.invalidateQueries([Ae,"getManifest"]),Ye.invalidateQueries([Ae,"selectRowsSchema"]),Ye.invalidateQueries([Ae,"selectRows"])}}),zu=He(Me.getStats,Ae),Mu=Wi(Me.getStats,Ae),Vu=He(async function(e,t,r,n){const l=await Me.selectRows(e,t,r);return{rows:l.rows.map(s=>Qr(s,n)),total_num_rows:l.total_num_rows}},Ae),Uu=He(Me.selectRowsSchema,Ae,{select:i=>({schema:on(i.data_schema),...i})}),qu=He(Me.selectGroups,Ae),Bu=(i,e,t,r)=>Ul({queryKey:[Ae,"selectRows",i,e,t],queryFn:({pageParam:n=0})=>Me.selectRows(i,e,{...t,limit:t.limit||tr,offset:n*(t.limit||tr)}),select:n=>({...n,pages:n.pages.map(l=>({rows:l.rows.map(s=>Qr(s,r)),total_num_rows:l.total_num_rows}))}),getNextPageParam:(n,l)=>l.length,enabled:!!r}),xu=He(Me.getSettings,ti),Fu=vt(Me.updateSettings,{onSuccess:()=>{Ye.invalidateQueries([ti])}});var Fl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ut(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Zu(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function r(){if(this instanceof r){var n=[null];n.push.apply(n,arguments);var l=Function.bind.apply(e,n);return new l}return e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(r){var n=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return i[r]}})}),t}function Zl(){const i=console.warn;console.warn=e=>{e.includes("unknown prop")||e.includes("unexpected slot")||i(e)},sn(()=>{console.warn=i})}function nr(i,e,t){const r=i.slice();return r[18]=e[t],r}function rr(i,e,t){const r=i.slice();return r[18]=e[t],r}function ir(i,e,t){const r=i.slice();return r[10]=e[t],r}function lr(i,e,t){const r=i.slice();return r[13]=e[t],r[15]=t,r}function sr(i,e,t){const r=i.slice();return r[16]=e[t],r[15]=t,r}function or(i,e,t){const r=i.slice();return r[7]=e[t],r}function Hl(i){let e,t,r,n;const l=[Kl,$l,Wl],s=[];function o(a,f){return a[0]==="table"?0:a[0]==="list"?1:2}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=x()},l(a){t.l(a),r=x()},m(a,f){s[e].m(a,f),O(a,r,f),n=!0},p(a,f){let u=e;e=o(a),e===u?s[e].p(a,f):(X(),g(s[u],1,1,()=>{s[u]=null}),ee(),t=s[e],t?t.p(a,f):(t=s[e]=l[e](a),t.c()),p(t,1),t.m(r.parentNode,r))},i(a){n||(p(t),n=!0)},o(a){g(t),n=!1},d(a){s[e].d(a),a&&m(r)}}}function Jl(i){let e,t,r=i[1],n=[];for(let s=0;s<r.length;s+=1)n[s]=hr(or(i,r,s));const l=s=>g(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=x()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=x()},m(s,o){for(let a=0;a<n.length;a+=1)n[a]&&n[a].m(s,o);O(s,e,o),t=!0},p(s,o){if(o&34){r=s[1];let a;for(a=0;a<r.length;a+=1){const f=or(s,r,a);n[a]?(n[a].p(f,o),p(n[a],1)):(n[a]=hr(f),n[a].c(),p(n[a],1),n[a].m(e.parentNode,e))}for(X(),a=r.length;a<n.length;a+=1)l(a);ee()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)p(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)g(n[o]);t=!1},d(s){$e(n,s),s&&m(e)}}}function Wl(i){let e,t,r;const n=[i[6]];var l=i[5][i[0]];function s(o){let a={$$slots:{default:[Yl]},$$scope:{ctx:o}};for(let f=0;f<n.length;f+=1)a=me(a,n[f]);return{props:a}}return l&&(e=Se(l,s(i))),{c(){e&&W(e.$$.fragment),t=x()},l(o){e&&ie(e.$$.fragment,o),t=x()},m(o,a){e&&$(e,o,a),O(o,t,a),r=!0},p(o,a){const f=a&64?ze(n,[ht(o[6])]):{};if(a&8388706&&(f.$$scope={dirty:a,ctx:o}),a&33&&l!==(l=o[5][o[0]])){if(e){X();const u=e;g(u.$$.fragment,1,0,()=>{K(u,1)}),ee()}l?(e=Se(l,s(o)),W(e.$$.fragment),p(e.$$.fragment,1),$(e,t.parentNode,t)):e=null}else l&&e.$set(f)},i(o){r||(e&&p(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&m(t),e&&K(e,o)}}}function $l(i){let e,t,r,n;const l=[es,Xl],s=[];function o(a,f){return a[4]?0:1}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=x()},l(a){t.l(a),r=x()},m(a,f){s[e].m(a,f),O(a,r,f),n=!0},p(a,f){let u=e;e=o(a),e===u?s[e].p(a,f):(X(),g(s[u],1,1,()=>{s[u]=null}),ee(),t=s[e],t?t.p(a,f):(t=s[e]=l[e](a),t.c()),p(t,1),t.m(r.parentNode,r))},i(a){n||(p(t),n=!0)},o(a){g(t),n=!1},d(a){s[e].d(a),a&&m(r)}}}function Kl(i){let e,t,r;var n=i[5].table;function l(s){return{props:{$$slots:{default:[cs]},$$scope:{ctx:s}}}}return n&&(e=Se(n,l(i))),{c(){e&&W(e.$$.fragment),t=x()},l(s){e&&ie(e.$$.fragment,s),t=x()},m(s,o){e&&$(e,s,o),O(s,t,o),r=!0},p(s,o){const a={};if(o&8388716&&(a.$$scope={dirty:o,ctx:s}),o&32&&n!==(n=s[5].table)){if(e){X();const f=e;g(f.$$.fragment,1,0,()=>{K(f,1)}),ee()}n?(e=Se(n,l(s)),W(e.$$.fragment),p(e.$$.fragment,1),$(e,t.parentNode,t)):e=null}else n&&e.$set(a)},i(s){r||(e&&p(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&m(t),e&&K(e,s)}}}function Ql(i){let e=i[6].raw+"",t;return{c(){t=ye(e)},l(r){t=we(r,e)},m(r,n){O(r,t,n)},p(r,n){n&64&&e!==(e=r[6].raw+"")&&Pe(t,e)},i:ue,o:ue,d(r){r&&m(t)}}}function Gl(i){let e,t;return e=new ot({props:{tokens:i[1],renderers:i[5]}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){$(e,r,n),t=!0},p(r,n){const l={};n&2&&(l.tokens=r[1]),n&32&&(l.renderers=r[5]),e.$set(l)},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function Yl(i){let e,t,r,n;const l=[Gl,Ql],s=[];function o(a,f){return a[1]?0:1}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=x()},l(a){t.l(a),r=x()},m(a,f){s[e].m(a,f),O(a,r,f),n=!0},p(a,f){let u=e;e=o(a),e===u?s[e].p(a,f):(X(),g(s[u],1,1,()=>{s[u]=null}),ee(),t=s[e],t?t.p(a,f):(t=s[e]=l[e](a),t.c()),p(t,1),t.m(r.parentNode,r))},i(a){n||(p(t),n=!0)},o(a){g(t),n=!1},d(a){s[e].d(a),a&&m(r)}}}function Xl(i){let e,t,r;const n=[{ordered:i[4]},i[6]];var l=i[5].list;function s(o){let a={$$slots:{default:[ns]},$$scope:{ctx:o}};for(let f=0;f<n.length;f+=1)a=me(a,n[f]);return{props:a}}return l&&(e=Se(l,s(i))),{c(){e&&W(e.$$.fragment),t=x()},l(o){e&&ie(e.$$.fragment,o),t=x()},m(o,a){e&&$(e,o,a),O(o,t,a),r=!0},p(o,a){const f=a&80?ze(n,[a&16&&{ordered:o[4]},a&64&&ht(o[6])]):{};if(a&8388704&&(f.$$scope={dirty:a,ctx:o}),a&32&&l!==(l=o[5].list)){if(e){X();const u=e;g(u.$$.fragment,1,0,()=>{K(u,1)}),ee()}l?(e=Se(l,s(o)),W(e.$$.fragment),p(e.$$.fragment,1),$(e,t.parentNode,t)):e=null}else l&&e.$set(f)},i(o){r||(e&&p(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&m(t),e&&K(e,o)}}}function es(i){let e,t,r;const n=[{ordered:i[4]},i[6]];var l=i[5].list;function s(o){let a={$$slots:{default:[is]},$$scope:{ctx:o}};for(let f=0;f<n.length;f+=1)a=me(a,n[f]);return{props:a}}return l&&(e=Se(l,s(i))),{c(){e&&W(e.$$.fragment),t=x()},l(o){e&&ie(e.$$.fragment,o),t=x()},m(o,a){e&&$(e,o,a),O(o,t,a),r=!0},p(o,a){const f=a&80?ze(n,[a&16&&{ordered:o[4]},a&64&&ht(o[6])]):{};if(a&8388704&&(f.$$scope={dirty:a,ctx:o}),a&32&&l!==(l=o[5].list)){if(e){X();const u=e;g(u.$$.fragment,1,0,()=>{K(u,1)}),ee()}l?(e=Se(l,s(o)),W(e.$$.fragment),p(e.$$.fragment,1),$(e,t.parentNode,t)):e=null}else l&&e.$set(f)},i(o){r||(e&&p(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&m(t),e&&K(e,o)}}}function ts(i){let e,t,r;return e=new ot({props:{tokens:i[18].tokens,renderers:i[5]}}),{c(){W(e.$$.fragment),t=ae()},l(n){ie(e.$$.fragment,n),t=fe(n)},m(n,l){$(e,n,l),O(n,t,l),r=!0},p(n,l){const s={};l&64&&(s.tokens=n[18].tokens),l&32&&(s.renderers=n[5]),e.$set(s)},i(n){r||(p(e.$$.fragment,n),r=!0)},o(n){g(e.$$.fragment,n),r=!1},d(n){K(e,n),n&&m(t)}}}function ar(i){let e,t,r;const n=[i[18]];var l=i[5].unorderedlistitem||i[5].listitem;function s(o){let a={$$slots:{default:[ts]},$$scope:{ctx:o}};for(let f=0;f<n.length;f+=1)a=me(a,n[f]);return{props:a}}return l&&(e=Se(l,s(i))),{c(){e&&W(e.$$.fragment),t=x()},l(o){e&&ie(e.$$.fragment,o),t=x()},m(o,a){e&&$(e,o,a),O(o,t,a),r=!0},p(o,a){const f=a&64?ze(n,[ht(o[18])]):{};if(a&8388704&&(f.$$scope={dirty:a,ctx:o}),a&32&&l!==(l=o[5].unorderedlistitem||o[5].listitem)){if(e){X();const u=e;g(u.$$.fragment,1,0,()=>{K(u,1)}),ee()}l?(e=Se(l,s(o)),W(e.$$.fragment),p(e.$$.fragment,1),$(e,t.parentNode,t)):e=null}else l&&e.$set(f)},i(o){r||(e&&p(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&m(t),e&&K(e,o)}}}function ns(i){let e,t,r=i[6].items,n=[];for(let s=0;s<r.length;s+=1)n[s]=ar(nr(i,r,s));const l=s=>g(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=x()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=x()},m(s,o){for(let a=0;a<n.length;a+=1)n[a]&&n[a].m(s,o);O(s,e,o),t=!0},p(s,o){if(o&96){r=s[6].items;let a;for(a=0;a<r.length;a+=1){const f=nr(s,r,a);n[a]?(n[a].p(f,o),p(n[a],1)):(n[a]=ar(f),n[a].c(),p(n[a],1),n[a].m(e.parentNode,e))}for(X(),a=r.length;a<n.length;a+=1)l(a);ee()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)p(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)g(n[o]);t=!1},d(s){$e(n,s),s&&m(e)}}}function rs(i){let e,t,r;return e=new ot({props:{tokens:i[18].tokens,renderers:i[5]}}),{c(){W(e.$$.fragment),t=ae()},l(n){ie(e.$$.fragment,n),t=fe(n)},m(n,l){$(e,n,l),O(n,t,l),r=!0},p(n,l){const s={};l&64&&(s.tokens=n[18].tokens),l&32&&(s.renderers=n[5]),e.$set(s)},i(n){r||(p(e.$$.fragment,n),r=!0)},o(n){g(e.$$.fragment,n),r=!1},d(n){K(e,n),n&&m(t)}}}function fr(i){let e,t,r;const n=[i[18]];var l=i[5].orderedlistitem||i[5].listitem;function s(o){let a={$$slots:{default:[rs]},$$scope:{ctx:o}};for(let f=0;f<n.length;f+=1)a=me(a,n[f]);return{props:a}}return l&&(e=Se(l,s(i))),{c(){e&&W(e.$$.fragment),t=x()},l(o){e&&ie(e.$$.fragment,o),t=x()},m(o,a){e&&$(e,o,a),O(o,t,a),r=!0},p(o,a){const f=a&64?ze(n,[ht(o[18])]):{};if(a&8388704&&(f.$$scope={dirty:a,ctx:o}),a&32&&l!==(l=o[5].orderedlistitem||o[5].listitem)){if(e){X();const u=e;g(u.$$.fragment,1,0,()=>{K(u,1)}),ee()}l?(e=Se(l,s(o)),W(e.$$.fragment),p(e.$$.fragment,1),$(e,t.parentNode,t)):e=null}else l&&e.$set(f)},i(o){r||(e&&p(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&m(t),e&&K(e,o)}}}function is(i){let e,t,r=i[6].items,n=[];for(let s=0;s<r.length;s+=1)n[s]=fr(rr(i,r,s));const l=s=>g(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=x()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=x()},m(s,o){for(let a=0;a<n.length;a+=1)n[a]&&n[a].m(s,o);O(s,e,o),t=!0},p(s,o){if(o&96){r=s[6].items;let a;for(a=0;a<r.length;a+=1){const f=rr(s,r,a);n[a]?(n[a].p(f,o),p(n[a],1)):(n[a]=fr(f),n[a].c(),p(n[a],1),n[a].m(e.parentNode,e))}for(X(),a=r.length;a<n.length;a+=1)l(a);ee()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)p(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)g(n[o]);t=!1},d(s){$e(n,s),s&&m(e)}}}function ls(i){let e,t,r;return e=new ot({props:{tokens:i[16].tokens,renderers:i[5]}}),{c(){W(e.$$.fragment),t=ae()},l(n){ie(e.$$.fragment,n),t=fe(n)},m(n,l){$(e,n,l),O(n,t,l),r=!0},p(n,l){const s={};l&4&&(s.tokens=n[16].tokens),l&32&&(s.renderers=n[5]),e.$set(s)},i(n){r||(p(e.$$.fragment,n),r=!0)},o(n){g(e.$$.fragment,n),r=!1},d(n){K(e,n),n&&m(t)}}}function ur(i){let e,t,r;var n=i[5].tablecell;function l(s){return{props:{header:!0,align:s[6].align[s[15]]||"center",$$slots:{default:[ls]},$$scope:{ctx:s}}}}return n&&(e=Se(n,l(i))),{c(){e&&W(e.$$.fragment),t=x()},l(s){e&&ie(e.$$.fragment,s),t=x()},m(s,o){e&&$(e,s,o),O(s,t,o),r=!0},p(s,o){const a={};if(o&64&&(a.align=s[6].align[s[15]]||"center"),o&8388644&&(a.$$scope={dirty:o,ctx:s}),o&32&&n!==(n=s[5].tablecell)){if(e){X();const f=e;g(f.$$.fragment,1,0,()=>{K(f,1)}),ee()}n?(e=Se(n,l(s)),W(e.$$.fragment),p(e.$$.fragment,1),$(e,t.parentNode,t)):e=null}else n&&e.$set(a)},i(s){r||(e&&p(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&m(t),e&&K(e,s)}}}function ss(i){let e,t,r=i[2],n=[];for(let s=0;s<r.length;s+=1)n[s]=ur(sr(i,r,s));const l=s=>g(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=x()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=x()},m(s,o){for(let a=0;a<n.length;a+=1)n[a]&&n[a].m(s,o);O(s,e,o),t=!0},p(s,o){if(o&100){r=s[2];let a;for(a=0;a<r.length;a+=1){const f=sr(s,r,a);n[a]?(n[a].p(f,o),p(n[a],1)):(n[a]=ur(f),n[a].c(),p(n[a],1),n[a].m(e.parentNode,e))}for(X(),a=r.length;a<n.length;a+=1)l(a);ee()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)p(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)g(n[o]);t=!1},d(s){$e(n,s),s&&m(e)}}}function os(i){let e,t,r;var n=i[5].tablerow;function l(s){return{props:{$$slots:{default:[ss]},$$scope:{ctx:s}}}}return n&&(e=Se(n,l(i))),{c(){e&&W(e.$$.fragment),t=x()},l(s){e&&ie(e.$$.fragment,s),t=x()},m(s,o){e&&$(e,s,o),O(s,t,o),r=!0},p(s,o){const a={};if(o&8388708&&(a.$$scope={dirty:o,ctx:s}),o&32&&n!==(n=s[5].tablerow)){if(e){X();const f=e;g(f.$$.fragment,1,0,()=>{K(f,1)}),ee()}n?(e=Se(n,l(s)),W(e.$$.fragment),p(e.$$.fragment,1),$(e,t.parentNode,t)):e=null}else n&&e.$set(a)},i(s){r||(e&&p(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&m(t),e&&K(e,s)}}}function as(i){let e,t;return e=new ot({props:{tokens:i[13].tokens,renderers:i[5]}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){$(e,r,n),t=!0},p(r,n){const l={};n&8&&(l.tokens=r[13].tokens),n&32&&(l.renderers=r[5]),e.$set(l)},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function cr(i){let e,t,r;var n=i[5].tablecell;function l(s){return{props:{header:!1,align:s[6].align[s[15]]||"center",$$slots:{default:[as]},$$scope:{ctx:s}}}}return n&&(e=Se(n,l(i))),{c(){e&&W(e.$$.fragment),t=x()},l(s){e&&ie(e.$$.fragment,s),t=x()},m(s,o){e&&$(e,s,o),O(s,t,o),r=!0},p(s,o){const a={};if(o&64&&(a.align=s[6].align[s[15]]||"center"),o&8388648&&(a.$$scope={dirty:o,ctx:s}),o&32&&n!==(n=s[5].tablecell)){if(e){X();const f=e;g(f.$$.fragment,1,0,()=>{K(f,1)}),ee()}n?(e=Se(n,l(s)),W(e.$$.fragment),p(e.$$.fragment,1),$(e,t.parentNode,t)):e=null}else n&&e.$set(a)},i(s){r||(e&&p(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&m(t),e&&K(e,s)}}}function fs(i){let e,t,r=i[10],n=[];for(let s=0;s<r.length;s+=1)n[s]=cr(lr(i,r,s));const l=s=>g(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=ae()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=fe(s)},m(s,o){for(let a=0;a<n.length;a+=1)n[a]&&n[a].m(s,o);O(s,e,o),t=!0},p(s,o){if(o&104){r=s[10];let a;for(a=0;a<r.length;a+=1){const f=lr(s,r,a);n[a]?(n[a].p(f,o),p(n[a],1)):(n[a]=cr(f),n[a].c(),p(n[a],1),n[a].m(e.parentNode,e))}for(X(),a=r.length;a<n.length;a+=1)l(a);ee()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)p(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)g(n[o]);t=!1},d(s){$e(n,s),s&&m(e)}}}function dr(i){let e,t,r;var n=i[5].tablerow;function l(s){return{props:{$$slots:{default:[fs]},$$scope:{ctx:s}}}}return n&&(e=Se(n,l(i))),{c(){e&&W(e.$$.fragment),t=x()},l(s){e&&ie(e.$$.fragment,s),t=x()},m(s,o){e&&$(e,s,o),O(s,t,o),r=!0},p(s,o){const a={};if(o&8388712&&(a.$$scope={dirty:o,ctx:s}),o&32&&n!==(n=s[5].tablerow)){if(e){X();const f=e;g(f.$$.fragment,1,0,()=>{K(f,1)}),ee()}n?(e=Se(n,l(s)),W(e.$$.fragment),p(e.$$.fragment,1),$(e,t.parentNode,t)):e=null}else n&&e.$set(a)},i(s){r||(e&&p(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&m(t),e&&K(e,s)}}}function us(i){let e,t,r=i[3],n=[];for(let s=0;s<r.length;s+=1)n[s]=dr(ir(i,r,s));const l=s=>g(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=x()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=x()},m(s,o){for(let a=0;a<n.length;a+=1)n[a]&&n[a].m(s,o);O(s,e,o),t=!0},p(s,o){if(o&104){r=s[3];let a;for(a=0;a<r.length;a+=1){const f=ir(s,r,a);n[a]?(n[a].p(f,o),p(n[a],1)):(n[a]=dr(f),n[a].c(),p(n[a],1),n[a].m(e.parentNode,e))}for(X(),a=r.length;a<n.length;a+=1)l(a);ee()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)p(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)g(n[o]);t=!1},d(s){$e(n,s),s&&m(e)}}}function cs(i){let e,t,r,n,l;var s=i[5].tablehead;function o(u){return{props:{$$slots:{default:[os]},$$scope:{ctx:u}}}}s&&(e=Se(s,o(i)));var a=i[5].tablebody;function f(u){return{props:{$$slots:{default:[us]},$$scope:{ctx:u}}}}return a&&(r=Se(a,f(i))),{c(){e&&W(e.$$.fragment),t=ae(),r&&W(r.$$.fragment),n=x()},l(u){e&&ie(e.$$.fragment,u),t=fe(u),r&&ie(r.$$.fragment,u),n=x()},m(u,c){e&&$(e,u,c),O(u,t,c),r&&$(r,u,c),O(u,n,c),l=!0},p(u,c){const d={};if(c&8388708&&(d.$$scope={dirty:c,ctx:u}),c&32&&s!==(s=u[5].tablehead)){if(e){X();const k=e;g(k.$$.fragment,1,0,()=>{K(k,1)}),ee()}s?(e=Se(s,o(u)),W(e.$$.fragment),p(e.$$.fragment,1),$(e,t.parentNode,t)):e=null}else s&&e.$set(d);const h={};if(c&8388712&&(h.$$scope={dirty:c,ctx:u}),c&32&&a!==(a=u[5].tablebody)){if(r){X();const k=r;g(k.$$.fragment,1,0,()=>{K(k,1)}),ee()}a?(r=Se(a,f(u)),W(r.$$.fragment),p(r.$$.fragment,1),$(r,n.parentNode,n)):r=null}else a&&r.$set(h)},i(u){l||(e&&p(e.$$.fragment,u),r&&p(r.$$.fragment,u),l=!0)},o(u){e&&g(e.$$.fragment,u),r&&g(r.$$.fragment,u),l=!1},d(u){e&&K(e,u),u&&m(t),u&&m(n),r&&K(r,u)}}}function hr(i){let e,t;const r=[i[7],{renderers:i[5]}];let n={};for(let l=0;l<r.length;l+=1)n=me(n,r[l]);return e=new ot({props:n}),{c(){W(e.$$.fragment)},l(l){ie(e.$$.fragment,l)},m(l,s){$(e,l,s),t=!0},p(l,s){const o=s&34?ze(r,[s&2&&ht(l[7]),s&32&&{renderers:l[5]}]):{};e.$set(o)},i(l){t||(p(e.$$.fragment,l),t=!0)},o(l){g(e.$$.fragment,l),t=!1},d(l){K(e,l)}}}function ds(i){let e,t,r,n;const l=[Jl,Hl],s=[];function o(a,f){return a[0]?a[5][a[0]]?1:-1:0}return~(e=o(i))&&(t=s[e]=l[e](i)),{c(){t&&t.c(),r=x()},l(a){t&&t.l(a),r=x()},m(a,f){~e&&s[e].m(a,f),O(a,r,f),n=!0},p(a,[f]){let u=e;e=o(a),e===u?~e&&s[e].p(a,f):(t&&(X(),g(s[u],1,1,()=>{s[u]=null}),ee()),~e?(t=s[e],t?t.p(a,f):(t=s[e]=l[e](a),t.c()),p(t,1),t.m(r.parentNode,r)):t=null)},i(a){n||(p(t),n=!0)},o(a){g(t),n=!1},d(a){~e&&s[e].d(a),a&&m(r)}}}function hs(i,e,t){const r=["type","tokens","header","rows","ordered","renderers"];let n=Ie(e,r),{type:l=void 0}=e,{tokens:s=void 0}=e,{header:o=void 0}=e,{rows:a=void 0}=e,{ordered:f=!1}=e,{renderers:u}=e;return Zl(),i.$$set=c=>{e=me(me({},e),qe(c)),t(6,n=Ie(e,r)),"type"in c&&t(0,l=c.type),"tokens"in c&&t(1,s=c.tokens),"header"in c&&t(2,o=c.header),"rows"in c&&t(3,a=c.rows),"ordered"in c&&t(4,f=c.ordered),"renderers"in c&&t(5,u=c.renderers)},[l,s,o,a,f,u,n]}let ot=class extends ce{constructor(e){super(),de(this,e,hs,ds,he,{type:0,tokens:1,header:2,rows:3,ordered:4,renderers:5})}};function ni(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let at=ni();function ms(i){at=i}const ri=/[&<>"']/,ps=new RegExp(ri.source,"g"),ii=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,gs=new RegExp(ii.source,"g"),_s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},mr=i=>_s[i];function Ce(i,e){if(e){if(ri.test(i))return i.replace(ps,mr)}else if(ii.test(i))return i.replace(gs,mr);return i}const bs=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function li(i){return i.replace(bs,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const Es=/(^|[^\[])\^/g;function Oe(i,e){i=typeof i=="string"?i:i.source,e=e||"";const t={replace:(r,n)=>(n=n.source||n,n=n.replace(Es,"$1"),i=i.replace(r,n),t),getRegex:()=>new RegExp(i,e)};return t}const ks=/[^\w:]/g,vs=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function pr(i,e,t){if(i){let r;try{r=decodeURIComponent(li(t)).replace(ks,"").toLowerCase()}catch{return null}if(r.indexOf("javascript:")===0||r.indexOf("vbscript:")===0||r.indexOf("data:")===0)return null}e&&!vs.test(t)&&(t=Ss(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const St={},ys=/^[^:]+:\/*[^/]*$/,ws=/^([^:]+:)[\s\S]*$/,Os=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Ss(i,e){St[" "+i]||(ys.test(i)?St[" "+i]=i+"/":St[" "+i]=It(i,"/",!0)),i=St[" "+i];const t=i.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:i.replace(ws,"$1")+e:e.charAt(0)==="/"?t?e:i.replace(Os,"$1")+e:i+e}const Nt={exec:function(){}};function gr(i,e){const t=i.replace(/\|/g,(l,s,o)=>{let a=!1,f=s;for(;--f>=0&&o[f]==="\\";)a=!a;return a?"|":" |"}),r=t.split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function It(i,e,t){const r=i.length;if(r===0)return"";let n=0;for(;n<r;){const l=i.charAt(r-n-1);if(l===e&&!t)n++;else if(l!==e&&t)n++;else break}return i.slice(0,r-n)}function Ps(i,e){if(i.indexOf(e[1])===-1)return-1;const t=i.length;let r=0,n=0;for(;n<t;n++)if(i[n]==="\\")n++;else if(i[n]===e[0])r++;else if(i[n]===e[1]&&(r--,r<0))return n;return-1}function Ts(i){i&&i.sanitize&&!i.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function _r(i,e){if(e<1)return"";let t="";for(;e>1;)e&1&&(t+=i),e>>=1,i+=i;return t+i}function br(i,e,t,r){const n=e.href,l=e.title?Ce(e.title):null,s=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){r.state.inLink=!0;const o={type:"link",raw:t,href:n,title:l,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,o}return{type:"image",raw:t,href:n,title:l,text:Ce(s)}}function Rs(i,e){const t=i.match(/^(\s+)(?:```)/);if(t===null)return e;const r=t[1];return e.split(`
`).map(n=>{const l=n.match(/^\s+/);if(l===null)return n;const[s]=l;return s.length>=r.length?n.slice(r.length):n}).join(`
`)}class fn{constructor(e){this.options=e||at}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:It(r,`
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],n=Rs(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(/#$/.test(r)){const n=It(r,"#");(this.options.pedantic||!n||/ $/.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const r=t[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const l=this.lexer.blockTokens(r);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:l,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r,n,l,s,o,a,f,u,c,d,h,k,_=t[1].trim();const A=_.length>1,y={type:"list",raw:"",ordered:A,start:A?+_.slice(0,-1):"",loose:!1,items:[]};_=A?`\\d{1,9}\\${_.slice(-1)}`:`\\${_}`,this.options.pedantic&&(_=A?_:"[*+-]");const b=new RegExp(`^( {0,3}${_})((?:[	 ][^\\n]*)?(?:\\n|$))`);for(;e&&(k=!1,!(!(t=b.exec(e))||this.rules.block.hr.test(e)));){if(r=t[0],e=e.substring(r.length),u=t[2].split(`
`,1)[0].replace(/^\t+/,P=>" ".repeat(3*P.length)),c=e.split(`
`,1)[0],this.options.pedantic?(s=2,h=u.trimLeft()):(s=t[2].search(/[^ ]/),s=s>4?1:s,h=u.slice(s),s+=t[1].length),a=!1,!u&&/^ *$/.test(c)&&(r+=c+`
`,e=e.substring(c.length+1),k=!0),!k){const P=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),T=new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),R=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:\`\`\`|~~~)`),L=new RegExp(`^ {0,${Math.min(3,s-1)}}#`);for(;e&&(d=e.split(`
`,1)[0],c=d,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),!(R.test(c)||L.test(c)||P.test(c)||T.test(e)));){if(c.search(/[^ ]/)>=s||!c.trim())h+=`
`+c.slice(s);else{if(a||u.search(/[^ ]/)>=4||R.test(u)||L.test(u)||T.test(u))break;h+=`
`+c}!a&&!c.trim()&&(a=!0),r+=d+`
`,e=e.substring(d.length+1),u=c.slice(s)}}y.loose||(f?y.loose=!0:/\n *\n *$/.test(r)&&(f=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(h),n&&(l=n[0]!=="[ ] ",h=h.replace(/^\[[ xX]\] +/,""))),y.items.push({type:"list_item",raw:r,task:!!n,checked:l,loose:!1,text:h}),y.raw+=r}y.items[y.items.length-1].raw=r.trimRight(),y.items[y.items.length-1].text=h.trimRight(),y.raw=y.raw.trimRight();const S=y.items.length;for(o=0;o<S;o++)if(this.lexer.state.top=!1,y.items[o].tokens=this.lexer.blockTokens(y.items[o].text,[]),!y.loose){const P=y.items[o].tokens.filter(R=>R.type==="space"),T=P.length>0&&P.some(R=>/\n.*\n/.test(R.raw));y.loose=T}if(y.loose)for(o=0;o<S;o++)y.items[o].loose=!0;return y}}html(e){const t=this.rules.block.html.exec(e);if(t){const r={type:"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};if(this.options.sanitize){const n=this.options.sanitizer?this.options.sanitizer(t[0]):Ce(t[0]);r.type="paragraph",r.text=n,r.tokens=this.lexer.inline(n)}return r}}def(e){const t=this.rules.block.def.exec(e);if(t){const r=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",l=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:l}}}table(e){const t=this.rules.block.table.exec(e);if(t){const r={type:"table",header:gr(t[1]).map(n=>({text:n})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
`):[]};if(r.header.length===r.align.length){r.raw=t[0];let n=r.align.length,l,s,o,a;for(l=0;l<n;l++)/^ *-+: *$/.test(r.align[l])?r.align[l]="right":/^ *:-+: *$/.test(r.align[l])?r.align[l]="center":/^ *:-+ *$/.test(r.align[l])?r.align[l]="left":r.align[l]=null;for(n=r.rows.length,l=0;l<n;l++)r.rows[l]=gr(r.rows[l],r.header.length).map(f=>({text:f}));for(n=r.header.length,s=0;s<n;s++)r.header[s].tokens=this.lexer.inline(r.header[s].text);for(n=r.rows.length,s=0;s<n;s++)for(a=r.rows[s],o=0;o<a.length;o++)a[o].tokens=this.lexer.inline(a[o].text);return r}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const r=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Ce(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Ce(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const s=It(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{const s=Ps(t[2],"()");if(s>-1){const a=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let n=t[2],l="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);s&&(n=s[1],l=s[3])}else l=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(this.options.pedantic&&!/>$/.test(r)?n=n.slice(1):n=n.slice(1,-1)),br(t,{href:n&&n.replace(this.rules.inline._escapes,"$1"),title:l&&l.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let n=(r[2]||r[1]).replace(/\s+/g," ");if(n=t[n.toLowerCase()],!n){const l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return br(r,n,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrong.lDelim.exec(e);if(!n||n[3]&&r.match(/[\p{L}\p{N}]/u))return;const l=n[1]||n[2]||"";if(!l||l&&(r===""||this.rules.inline.punctuation.exec(r))){const s=n[0].length-1;let o,a,f=s,u=0;const c=n[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+s);(n=c.exec(t))!=null;){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(a=o.length,n[3]||n[4]){f+=a;continue}else if((n[5]||n[6])&&s%3&&!((s+a)%3)){u+=a;continue}if(f-=a,f>0)continue;a=Math.min(a,a+f+u);const d=e.slice(0,s+n.index+(n[0].length-o.length)+a);if(Math.min(s,a)%2){const k=d.slice(1,-1);return{type:"em",raw:d,text:k,tokens:this.lexer.inlineTokens(k)}}const h=d.slice(2,-2);return{type:"strong",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(/\n/g," ");const n=/[^ ]/.test(r),l=/^ /.test(r)&&/ $/.test(r);return n&&l&&(r=r.substring(1,r.length-1)),r=Ce(r,!0),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const r=this.rules.inline.autolink.exec(e);if(r){let n,l;return r[2]==="@"?(n=Ce(this.options.mangle?t(r[1]):r[1]),l="mailto:"+n):(n=Ce(r[1]),l=n),{type:"link",raw:r[0],text:n,href:l,tokens:[{type:"text",raw:n,text:n}]}}}url(e,t){let r;if(r=this.rules.inline.url.exec(e)){let n,l;if(r[2]==="@")n=Ce(this.options.mangle?t(r[0]):r[0]),l="mailto:"+n;else{let s;do s=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0];while(s!==r[0]);n=Ce(r[0]),r[1]==="www."?l="http://"+r[0]:l=r[0]}return{type:"link",raw:r[0],text:n,href:l,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e,t){const r=this.rules.inline.text.exec(e);if(r){let n;return this.lexer.state.inRawBlock?n=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Ce(r[0]):r[0]:n=Ce(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:n}}}}const G={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Nt,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};G._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;G._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;G.def=Oe(G.def).replace("label",G._label).replace("title",G._title).getRegex();G.bullet=/(?:[*+-]|\d{1,9}[.)])/;G.listItemStart=Oe(/^( *)(bull) */).replace("bull",G.bullet).getRegex();G.list=Oe(G.list).replace(/bull/g,G.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+G.def.source+")").getRegex();G._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";G._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;G.html=Oe(G.html,"i").replace("comment",G._comment).replace("tag",G._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();G.paragraph=Oe(G._paragraph).replace("hr",G.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",G._tag).getRegex();G.blockquote=Oe(G.blockquote).replace("paragraph",G.paragraph).getRegex();G.normal={...G};G.gfm={...G.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};G.gfm.table=Oe(G.gfm.table).replace("hr",G.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",G._tag).getRegex();G.gfm.paragraph=Oe(G._paragraph).replace("hr",G.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",G.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",G._tag).getRegex();G.pedantic={...G.normal,html:Oe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",G._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Nt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Oe(G.normal._paragraph).replace("hr",G.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",G.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const H={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Nt,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Nt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};H._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";H.punctuation=Oe(H.punctuation).replace(/punctuation/g,H._punctuation).getRegex();H.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;H.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;H._comment=Oe(G._comment).replace("(?:-->|$)","-->").getRegex();H.emStrong.lDelim=Oe(H.emStrong.lDelim).replace(/punct/g,H._punctuation).getRegex();H.emStrong.rDelimAst=Oe(H.emStrong.rDelimAst,"g").replace(/punct/g,H._punctuation).getRegex();H.emStrong.rDelimUnd=Oe(H.emStrong.rDelimUnd,"g").replace(/punct/g,H._punctuation).getRegex();H._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;H._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;H._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;H.autolink=Oe(H.autolink).replace("scheme",H._scheme).replace("email",H._email).getRegex();H._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;H.tag=Oe(H.tag).replace("comment",H._comment).replace("attribute",H._attribute).getRegex();H._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;H._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;H._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;H.link=Oe(H.link).replace("label",H._label).replace("href",H._href).replace("title",H._title).getRegex();H.reflink=Oe(H.reflink).replace("label",H._label).replace("ref",G._label).getRegex();H.nolink=Oe(H.nolink).replace("ref",G._label).getRegex();H.reflinkSearch=Oe(H.reflinkSearch,"g").replace("reflink",H.reflink).replace("nolink",H.nolink).getRegex();H.normal={...H};H.pedantic={...H.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Oe(/^!?\[(label)\]\((.*?)\)/).replace("label",H._label).getRegex(),reflink:Oe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",H._label).getRegex()};H.gfm={...H.normal,escape:Oe(H.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};H.gfm.url=Oe(H.gfm.url,"i").replace("email",H.gfm._extended_email).getRegex();H.breaks={...H.gfm,br:Oe(H.br).replace("{2,}","*").getRegex(),text:Oe(H.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function As(i){return i.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Er(i){let e="",t,r;const n=i.length;for(t=0;t<n;t++)r=i.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),e+="&#"+r+";";return e}class Xe{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||at,this.options.tokenizer=this.options.tokenizer||new fn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:G.normal,inline:H.normal};this.options.pedantic?(t.block=G.pedantic,t.inline=H.pedantic):this.options.gfm&&(t.block=G.gfm,this.options.breaks?t.inline=H.breaks:t.inline=H.gfm),this.tokenizer.rules=t}static get rules(){return{block:G,inline:H}}static lex(e,t){return new Xe(t).lex(e)}static lexInline(e,t){return new Xe(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
`),this.blockTokens(e,this.tokens);let t;for(;t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){this.options.pedantic?e=e.replace(/\t/g,"    ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(o,a,f)=>a+"    ".repeat(f.length));let r,n,l,s;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(r=o.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),r.raw.length===1&&t.length>0?t[t.length-1].raw+=`
`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+=`
`+r.raw,n.text+=`
`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+=`
`+r.raw,n.text+=`
`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(l=e,this.options.extensions&&this.options.extensions.startBlock){let o=1/0;const a=e.slice(1);let f;this.options.extensions.startBlock.forEach(function(u){f=u.call({lexer:this},a),typeof f=="number"&&f>=0&&(o=Math.min(o,f))}),o<1/0&&o>=0&&(l=e.substring(0,o+1))}if(this.state.top&&(r=this.tokenizer.paragraph(l))){n=t[t.length-1],s&&n.type==="paragraph"?(n.raw+=`
`+r.raw,n.text+=`
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),s=l.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&n.type==="text"?(n.raw+=`
`+r.raw,n.text+=`
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);continue}if(e){const o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n,l,s=e,o,a,f;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)u.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+_r("a",o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,o.index)+"["+_r("a",o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.escapedEmSt.exec(s))!=null;)s=s.slice(0,o.index+o[0].length-2)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(a||(f=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(r=u.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&r.type==="text"&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length),n=t[t.length-1],n&&r.type==="text"&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,s,f)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e,Er)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e,Er))){e=e.substring(r.raw.length),t.push(r);continue}if(l=e,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const c=e.slice(1);let d;this.options.extensions.startInline.forEach(function(h){d=h.call({lexer:this},c),typeof d=="number"&&d>=0&&(u=Math.min(u,d))}),u<1/0&&u>=0&&(l=e.substring(0,u+1))}if(r=this.tokenizer.inlineText(l,As)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(f=r.raw.slice(-1)),a=!0,n=t[t.length-1],n&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){const u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return t}}class un{constructor(e){this.options=e||at}code(e,t,r){const n=(t||"").match(/\S*/)[0];if(this.options.highlight){const l=this.options.highlight(e,n);l!=null&&l!==e&&(r=!0,e=l)}return e=e.replace(/\n$/,"")+`
`,n?'<pre><code class="'+this.options.langPrefix+Ce(n)+'">'+(r?e:Ce(e,!0))+`</code></pre>
`:"<pre><code>"+(r?e:Ce(e,!0))+`</code></pre>
`}blockquote(e){return`<blockquote>
${e}</blockquote>
`}html(e){return e}heading(e,t,r,n){if(this.options.headerIds){const l=this.options.headerPrefix+n.slug(r);return`<h${t} id="${l}">${e}</h${t}>
`}return`<h${t}>${e}</h${t}>
`}hr(){return this.options.xhtml?`<hr/>
`:`<hr>
`}list(e,t,r){const n=t?"ol":"ul",l=t&&r!==1?' start="'+r+'"':"";return"<"+n+l+`>
`+e+"</"+n+`>
`}listitem(e){return`<li>${e}</li>
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>
`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),`<table>
<thead>
`+e+`</thead>
`+t+`</table>
`}tablerow(e){return`<tr>
${e}</tr>
`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,r){if(e=pr(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let n='<a href="'+e+'"';return t&&(n+=' title="'+t+'"'),n+=">"+r+"</a>",n}image(e,t,r){if(e=pr(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let n=`<img src="${e}" alt="${r}"`;return t&&(n+=` title="${t}"`),n+=this.options.xhtml?"/>":">",n}text(e){return e}}class si{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}}class cn{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do n++,r=e+"-"+n;while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r}slug(e,t={}){const r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)}}let yt=class Gt{constructor(e){this.options=e||at,this.options.renderer=this.options.renderer||new un,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new si,this.slugger=new cn}static parse(e,t){return new Gt(t).parse(e)}static parseInline(e,t){return new Gt(t).parseInline(e)}parse(e,t=!0){let r="",n,l,s,o,a,f,u,c,d,h,k,_,A,y,b,S,P,T,R;const L=e.length;for(n=0;n<L;n++){if(h=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[h.type]&&(R=this.options.extensions.renderers[h.type].call({parser:this},h),R!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type))){r+=R||"";continue}switch(h.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{r+=this.renderer.heading(this.parseInline(h.tokens),h.depth,li(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue}case"code":{r+=this.renderer.code(h.text,h.lang,h.escaped);continue}case"table":{for(c="",u="",o=h.header.length,l=0;l<o;l++)u+=this.renderer.tablecell(this.parseInline(h.header[l].tokens),{header:!0,align:h.align[l]});for(c+=this.renderer.tablerow(u),d="",o=h.rows.length,l=0;l<o;l++){for(f=h.rows[l],u="",a=f.length,s=0;s<a;s++)u+=this.renderer.tablecell(this.parseInline(f[s].tokens),{header:!1,align:h.align[s]});d+=this.renderer.tablerow(u)}r+=this.renderer.table(c,d);continue}case"blockquote":{d=this.parse(h.tokens),r+=this.renderer.blockquote(d);continue}case"list":{for(k=h.ordered,_=h.start,A=h.loose,o=h.items.length,d="",l=0;l<o;l++)b=h.items[l],S=b.checked,P=b.task,y="",b.task&&(T=this.renderer.checkbox(S),A?b.tokens.length>0&&b.tokens[0].type==="paragraph"?(b.tokens[0].text=T+" "+b.tokens[0].text,b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&b.tokens[0].tokens[0].type==="text"&&(b.tokens[0].tokens[0].text=T+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:T}):y+=T),y+=this.parse(b.tokens,A),d+=this.renderer.listitem(y,P,S);r+=this.renderer.list(d,k,_);continue}case"html":{r+=this.renderer.html(h.text);continue}case"paragraph":{r+=this.renderer.paragraph(this.parseInline(h.tokens));continue}case"text":{for(d=h.tokens?this.parseInline(h.tokens):h.text;n+1<L&&e[n+1].type==="text";)h=e[++n],d+=`
`+(h.tokens?this.parseInline(h.tokens):h.text);r+=t?this.renderer.paragraph(d):d;continue}default:{const z='Token with "'+h.type+'" type was not found.';if(this.options.silent){console.error(z);return}else throw new Error(z)}}}return r}parseInline(e,t){t=t||this.renderer;let r="",n,l,s;const o=e.length;for(n=0;n<o;n++){if(l=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[l.type]&&(s=this.options.extensions.renderers[l.type].call({parser:this},l),s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type))){r+=s||"";continue}switch(l.type){case"escape":{r+=t.text(l.text);break}case"html":{r+=t.html(l.text);break}case"link":{r+=t.link(l.href,l.title,this.parseInline(l.tokens,t));break}case"image":{r+=t.image(l.href,l.title,l.text);break}case"strong":{r+=t.strong(this.parseInline(l.tokens,t));break}case"em":{r+=t.em(this.parseInline(l.tokens,t));break}case"codespan":{r+=t.codespan(l.text);break}case"br":{r+=t.br();break}case"del":{r+=t.del(this.parseInline(l.tokens,t));break}case"text":{r+=t.text(l.text);break}default:{const a='Token with "'+l.type+'" type was not found.';if(this.options.silent){console.error(a);return}else throw new Error(a)}}}return r}};class Lt{constructor(e){this.options=e||at}preprocess(e){return e}postprocess(e){return e}}gn(Lt,"passThroughHooks",new Set(["preprocess","postprocess"]));function Is(i,e,t){return r=>{if(r.message+=`
Please report this to https://github.com/markedjs/marked.`,i){const n="<p>An error occurred:</p><pre>"+Ce(r.message+"",!0)+"</pre>";if(e)return Promise.resolve(n);if(t){t(null,n);return}return n}if(e)return Promise.reject(r);if(t){t(r);return}throw r}}function oi(i,e){return(t,r,n)=>{typeof r=="function"&&(n=r,r=null);const l={...r};r={...Y.defaults,...l};const s=Is(r.silent,r.async,n);if(typeof t>"u"||t===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(Ts(r),r.hooks&&(r.hooks.options=r),n){const o=r.highlight;let a;try{r.hooks&&(t=r.hooks.preprocess(t)),a=i(t,r)}catch(c){return s(c)}const f=function(c){let d;if(!c)try{r.walkTokens&&Y.walkTokens(a,r.walkTokens),d=e(a,r),r.hooks&&(d=r.hooks.postprocess(d))}catch(h){c=h}return r.highlight=o,c?s(c):n(null,d)};if(!o||o.length<3||(delete r.highlight,!a.length))return f();let u=0;Y.walkTokens(a,function(c){c.type==="code"&&(u++,setTimeout(()=>{o(c.text,c.lang,function(d,h){if(d)return f(d);h!=null&&h!==c.text&&(c.text=h,c.escaped=!0),u--,u===0&&f()})},0))}),u===0&&f();return}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(t):t).then(o=>i(o,r)).then(o=>r.walkTokens?Promise.all(Y.walkTokens(o,r.walkTokens)).then(()=>o):o).then(o=>e(o,r)).then(o=>r.hooks?r.hooks.postprocess(o):o).catch(s);try{r.hooks&&(t=r.hooks.preprocess(t));const o=i(t,r);r.walkTokens&&Y.walkTokens(o,r.walkTokens);let a=e(o,r);return r.hooks&&(a=r.hooks.postprocess(a)),a}catch(o){return s(o)}}}function Y(i,e,t){return oi(Xe.lex,yt.parse)(i,e,t)}Y.options=Y.setOptions=function(i){return Y.defaults={...Y.defaults,...i},ms(Y.defaults),Y};Y.getDefaults=ni;Y.defaults=at;Y.use=function(...i){const e=Y.defaults.extensions||{renderers:{},childTokens:{}};i.forEach(t=>{const r={...t};if(r.async=Y.defaults.async||r.async||!1,t.extensions&&(t.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if(n.renderer){const l=e.renderers[n.name];l?e.renderers[n.name]=function(...s){let o=n.renderer.apply(this,s);return o===!1&&(o=l.apply(this,s)),o}:e.renderers[n.name]=n.renderer}if(n.tokenizer){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[n.level]?e[n.level].unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),r.extensions=e),t.renderer){const n=Y.defaults.renderer||new un;for(const l in t.renderer){const s=n[l];n[l]=(...o)=>{let a=t.renderer[l].apply(n,o);return a===!1&&(a=s.apply(n,o)),a}}r.renderer=n}if(t.tokenizer){const n=Y.defaults.tokenizer||new fn;for(const l in t.tokenizer){const s=n[l];n[l]=(...o)=>{let a=t.tokenizer[l].apply(n,o);return a===!1&&(a=s.apply(n,o)),a}}r.tokenizer=n}if(t.hooks){const n=Y.defaults.hooks||new Lt;for(const l in t.hooks){const s=n[l];Lt.passThroughHooks.has(l)?n[l]=o=>{if(Y.defaults.async)return Promise.resolve(t.hooks[l].call(n,o)).then(f=>s.call(n,f));const a=t.hooks[l].call(n,o);return s.call(n,a)}:n[l]=(...o)=>{let a=t.hooks[l].apply(n,o);return a===!1&&(a=s.apply(n,o)),a}}r.hooks=n}if(t.walkTokens){const n=Y.defaults.walkTokens;r.walkTokens=function(l){let s=[];return s.push(t.walkTokens.call(this,l)),n&&(s=s.concat(n.call(this,l))),s}}Y.setOptions(r)})};Y.walkTokens=function(i,e){let t=[];for(const r of i)switch(t=t.concat(e.call(Y,r)),r.type){case"table":{for(const n of r.header)t=t.concat(Y.walkTokens(n.tokens,e));for(const n of r.rows)for(const l of n)t=t.concat(Y.walkTokens(l.tokens,e));break}case"list":{t=t.concat(Y.walkTokens(r.items,e));break}default:Y.defaults.extensions&&Y.defaults.extensions.childTokens&&Y.defaults.extensions.childTokens[r.type]?Y.defaults.extensions.childTokens[r.type].forEach(function(n){t=t.concat(Y.walkTokens(r[n],e))}):r.tokens&&(t=t.concat(Y.walkTokens(r.tokens,e)))}return t};Y.parseInline=oi(Xe.lexInline,yt.parseInline);Y.Parser=yt;Y.parser=yt.parse;Y.Renderer=un;Y.TextRenderer=si;Y.Lexer=Xe;Y.lexer=Xe.lex;Y.Tokenizer=fn;Y.Slugger=cn;Y.Hooks=Lt;Y.parse=Y;Y.options;Y.setOptions;Y.use;Y.walkTokens;Y.parseInline;yt.parse;Xe.lex;const ai={};function js(i){let e;return{c(){e=ye(i[1])},l(t){e=we(t,i[1])},m(t,r){O(t,e,r)},p(t,r){r&2&&Pe(e,t[1])},i:ue,o:ue,d(t){t&&m(e)}}}function Ns(i){let e,t;const r=i[5].default,n=_e(r,i,i[4],null);return{c(){e=U("h6"),n&&n.c(),this.h()},l(l){e=q(l,"H6",{id:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"id",i[2])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&be(n,r,l,l[4],t?ke(r,l[4],s,null):Ee(l[4]),null),(!t||s&4)&&C(e,"id",l[2])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Ls(i){let e,t;const r=i[5].default,n=_e(r,i,i[4],null);return{c(){e=U("h5"),n&&n.c(),this.h()},l(l){e=q(l,"H5",{id:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"id",i[2])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&be(n,r,l,l[4],t?ke(r,l[4],s,null):Ee(l[4]),null),(!t||s&4)&&C(e,"id",l[2])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Ds(i){let e,t;const r=i[5].default,n=_e(r,i,i[4],null);return{c(){e=U("h4"),n&&n.c(),this.h()},l(l){e=q(l,"H4",{id:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"id",i[2])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&be(n,r,l,l[4],t?ke(r,l[4],s,null):Ee(l[4]),null),(!t||s&4)&&C(e,"id",l[2])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Cs(i){let e,t;const r=i[5].default,n=_e(r,i,i[4],null);return{c(){e=U("h3"),n&&n.c(),this.h()},l(l){e=q(l,"H3",{id:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"id",i[2])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&be(n,r,l,l[4],t?ke(r,l[4],s,null):Ee(l[4]),null),(!t||s&4)&&C(e,"id",l[2])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function zs(i){let e,t;const r=i[5].default,n=_e(r,i,i[4],null);return{c(){e=U("h2"),n&&n.c(),this.h()},l(l){e=q(l,"H2",{id:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"id",i[2])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&be(n,r,l,l[4],t?ke(r,l[4],s,null):Ee(l[4]),null),(!t||s&4)&&C(e,"id",l[2])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Ms(i){let e,t;const r=i[5].default,n=_e(r,i,i[4],null);return{c(){e=U("h1"),n&&n.c(),this.h()},l(l){e=q(l,"H1",{id:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"id",i[2])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&be(n,r,l,l[4],t?ke(r,l[4],s,null):Ee(l[4]),null),(!t||s&4)&&C(e,"id",l[2])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Vs(i){let e,t,r,n;const l=[Ms,zs,Cs,Ds,Ls,Ns,js],s=[];function o(a,f){return a[0]===1?0:a[0]===2?1:a[0]===3?2:a[0]===4?3:a[0]===5?4:a[0]===6?5:6}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=x()},l(a){t.l(a),r=x()},m(a,f){s[e].m(a,f),O(a,r,f),n=!0},p(a,[f]){let u=e;e=o(a),e===u?s[e].p(a,f):(X(),g(s[u],1,1,()=>{s[u]=null}),ee(),t=s[e],t?t.p(a,f):(t=s[e]=l[e](a),t.c()),p(t,1),t.m(r.parentNode,r))},i(a){n||(p(t),n=!0)},o(a){g(t),n=!1},d(a){s[e].d(a),a&&m(r)}}}function Us(i,e,t){let r,{$$slots:n={},$$scope:l}=e,{depth:s}=e,{raw:o}=e,{text:a}=e;const{slug:f,getOptions:u}=Kr(ai),c=u();return i.$$set=d=>{"depth"in d&&t(0,s=d.depth),"raw"in d&&t(1,o=d.raw),"text"in d&&t(3,a=d.text),"$$scope"in d&&t(4,l=d.$$scope)},i.$$.update=()=>{i.$$.dirty&8&&t(2,r=c.headerIds?c.headerPrefix+f(a):void 0)},[s,o,r,a,l,n]}class qs extends ce{constructor(e){super(),de(this,e,Us,Vs,he,{depth:0,raw:1,text:3})}}function Bs(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("p"),n&&n.c()},l(l){e=q(l,"P",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ke(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function xs(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Fs extends ce{constructor(e){super(),de(this,e,xs,Bs,he,{})}}function Zs(i){let e;const t=i[3].default,r=_e(t,i,i[2],null);return{c(){r&&r.c()},l(n){r&&r.l(n)},m(n,l){r&&r.m(n,l),e=!0},p(n,[l]){r&&r.p&&(!e||l&4)&&be(r,t,n,n[2],e?ke(t,n[2],l,null):Ee(n[2]),null)},i(n){e||(p(r,n),e=!0)},o(n){g(r,n),e=!1},d(n){r&&r.d(n)}}}function Hs(i,e,t){let{$$slots:r={},$$scope:n}=e,{text:l}=e,{raw:s}=e;return i.$$set=o=>{"text"in o&&t(0,l=o.text),"raw"in o&&t(1,s=o.raw),"$$scope"in o&&t(2,n=o.$$scope)},[l,s,n,r]}class Js extends ce{constructor(e){super(),de(this,e,Hs,Zs,he,{text:0,raw:1})}}function Ws(i){let e,t;return{c(){e=U("img"),this.h()},l(r){e=q(r,"IMG",{src:!0,title:!0,alt:!0}),this.h()},h(){En(e.src,t=i[0])||C(e,"src",t),C(e,"title",i[1]),C(e,"alt",i[2])},m(r,n){O(r,e,n)},p(r,[n]){n&1&&!En(e.src,t=r[0])&&C(e,"src",t),n&2&&C(e,"title",r[1]),n&4&&C(e,"alt",r[2])},i:ue,o:ue,d(r){r&&m(e)}}}function $s(i,e,t){let{href:r=""}=e,{title:n=void 0}=e,{text:l=""}=e;return i.$$set=s=>{"href"in s&&t(0,r=s.href),"title"in s&&t(1,n=s.title),"text"in s&&t(2,l=s.text)},[r,n,l]}class Ks extends ce{constructor(e){super(),de(this,e,$s,Ws,he,{href:0,title:1,text:2})}}function Qs(i){let e,t;const r=i[3].default,n=_e(r,i,i[2],null);return{c(){e=U("a"),n&&n.c(),this.h()},l(l){e=q(l,"A",{href:!0,title:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"href",i[0]),C(e,"title",i[1])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&4)&&be(n,r,l,l[2],t?ke(r,l[2],s,null):Ee(l[2]),null),(!t||s&1)&&C(e,"href",l[0]),(!t||s&2)&&C(e,"title",l[1])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Gs(i,e,t){let{$$slots:r={},$$scope:n}=e,{href:l=""}=e,{title:s=void 0}=e;return i.$$set=o=>{"href"in o&&t(0,l=o.href),"title"in o&&t(1,s=o.title),"$$scope"in o&&t(2,n=o.$$scope)},[l,s,n,r]}class Ys extends ce{constructor(e){super(),de(this,e,Gs,Qs,he,{href:0,title:1})}}function Xs(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("em"),n&&n.c()},l(l){e=q(l,"EM",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ke(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function eo(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class to extends ce{constructor(e){super(),de(this,e,eo,Xs,he,{})}}function no(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("del"),n&&n.c()},l(l){e=q(l,"DEL",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ke(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function ro(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class io extends ce{constructor(e){super(),de(this,e,ro,no,he,{})}}function lo(i){let e,t=i[0].replace(/`/g,"")+"",r;return{c(){e=U("code"),r=ye(t)},l(n){e=q(n,"CODE",{});var l=M(e);r=we(l,t),l.forEach(m)},m(n,l){O(n,e,l),B(e,r)},p(n,[l]){l&1&&t!==(t=n[0].replace(/`/g,"")+"")&&Pe(r,t)},i:ue,o:ue,d(n){n&&m(e)}}}function so(i,e,t){let{raw:r}=e;return i.$$set=n=>{"raw"in n&&t(0,r=n.raw)},[r]}class oo extends ce{constructor(e){super(),de(this,e,so,lo,he,{raw:0})}}function ao(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("strong"),n&&n.c()},l(l){e=q(l,"STRONG",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ke(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function fo(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class uo extends ce{constructor(e){super(),de(this,e,fo,ao,he,{})}}function co(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("table"),n&&n.c()},l(l){e=q(l,"TABLE",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ke(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function ho(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class mo extends ce{constructor(e){super(),de(this,e,ho,co,he,{})}}function po(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("thead"),n&&n.c()},l(l){e=q(l,"THEAD",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ke(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function go(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class _o extends ce{constructor(e){super(),de(this,e,go,po,he,{})}}function bo(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("tbody"),n&&n.c()},l(l){e=q(l,"TBODY",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ke(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Eo(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class ko extends ce{constructor(e){super(),de(this,e,Eo,bo,he,{})}}function vo(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("tr"),n&&n.c()},l(l){e=q(l,"TR",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ke(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function yo(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class wo extends ce{constructor(e){super(),de(this,e,yo,vo,he,{})}}function Oo(i){let e,t;const r=i[3].default,n=_e(r,i,i[2],null);return{c(){e=U("td"),n&&n.c(),this.h()},l(l){e=q(l,"TD",{align:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"align",i[1])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&4)&&be(n,r,l,l[2],t?ke(r,l[2],s,null):Ee(l[2]),null),(!t||s&2)&&C(e,"align",l[1])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function So(i){let e,t;const r=i[3].default,n=_e(r,i,i[2],null);return{c(){e=U("th"),n&&n.c(),this.h()},l(l){e=q(l,"TH",{align:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"align",i[1])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&4)&&be(n,r,l,l[2],t?ke(r,l[2],s,null):Ee(l[2]),null),(!t||s&2)&&C(e,"align",l[1])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Po(i){let e,t,r,n;const l=[So,Oo],s=[];function o(a,f){return a[0]?0:1}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=x()},l(a){t.l(a),r=x()},m(a,f){s[e].m(a,f),O(a,r,f),n=!0},p(a,[f]){let u=e;e=o(a),e===u?s[e].p(a,f):(X(),g(s[u],1,1,()=>{s[u]=null}),ee(),t=s[e],t?t.p(a,f):(t=s[e]=l[e](a),t.c()),p(t,1),t.m(r.parentNode,r))},i(a){n||(p(t),n=!0)},o(a){g(t),n=!1},d(a){s[e].d(a),a&&m(r)}}}function To(i,e,t){let{$$slots:r={},$$scope:n}=e,{header:l}=e,{align:s}=e;return i.$$set=o=>{"header"in o&&t(0,l=o.header),"align"in o&&t(1,s=o.align),"$$scope"in o&&t(2,n=o.$$scope)},[l,s,n,r]}class Ro extends ce{constructor(e){super(),de(this,e,To,Po,he,{header:0,align:1})}}function Ao(i){let e,t;const r=i[3].default,n=_e(r,i,i[2],null);return{c(){e=U("ul"),n&&n.c()},l(l){e=q(l,"UL",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&4)&&be(n,r,l,l[2],t?ke(r,l[2],s,null):Ee(l[2]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Io(i){let e,t;const r=i[3].default,n=_e(r,i,i[2],null);return{c(){e=U("ol"),n&&n.c(),this.h()},l(l){e=q(l,"OL",{start:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"start",i[1])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&4)&&be(n,r,l,l[2],t?ke(r,l[2],s,null):Ee(l[2]),null),(!t||s&2)&&C(e,"start",l[1])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function jo(i){let e,t,r,n;const l=[Io,Ao],s=[];function o(a,f){return a[0]?0:1}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=x()},l(a){t.l(a),r=x()},m(a,f){s[e].m(a,f),O(a,r,f),n=!0},p(a,[f]){let u=e;e=o(a),e===u?s[e].p(a,f):(X(),g(s[u],1,1,()=>{s[u]=null}),ee(),t=s[e],t?t.p(a,f):(t=s[e]=l[e](a),t.c()),p(t,1),t.m(r.parentNode,r))},i(a){n||(p(t),n=!0)},o(a){g(t),n=!1},d(a){s[e].d(a),a&&m(r)}}}function No(i,e,t){let{$$slots:r={},$$scope:n}=e,{ordered:l}=e,{start:s}=e;return i.$$set=o=>{"ordered"in o&&t(0,l=o.ordered),"start"in o&&t(1,s=o.start),"$$scope"in o&&t(2,n=o.$$scope)},[l,s,n,r]}class Lo extends ce{constructor(e){super(),de(this,e,No,jo,he,{ordered:0,start:1})}}function Do(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("li"),n&&n.c()},l(l){e=q(l,"LI",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ke(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Co(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class zo extends ce{constructor(e){super(),de(this,e,Co,Do,he,{})}}function Mo(i){let e;return{c(){e=U("hr")},l(t){e=q(t,"HR",{})},m(t,r){O(t,e,r)},p:ue,i:ue,o:ue,d(t){t&&m(e)}}}class Vo extends ce{constructor(e){super(),de(this,e,null,Mo,he,{})}}function Uo(i){let e,t;return{c(){e=new Li(!1),t=x(),this.h()},l(r){e=Di(r,!1),t=x(),this.h()},h(){e.a=t},m(r,n){e.m(i[0],r,n),O(r,t,n)},p(r,[n]){n&1&&e.p(r[0])},i:ue,o:ue,d(r){r&&m(t),r&&e.d()}}}function qo(i,e,t){let{text:r}=e;return i.$$set=n=>{"text"in n&&t(0,r=n.text)},[r]}class Bo extends ce{constructor(e){super(),de(this,e,qo,Uo,he,{text:0})}}function xo(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("blockquote"),n&&n.c()},l(l){e=q(l,"BLOCKQUOTE",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ke(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Fo(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Zo extends ce{constructor(e){super(),de(this,e,Fo,xo,he,{})}}function Ho(i){let e,t,r;return{c(){e=U("pre"),t=U("code"),r=ye(i[1]),this.h()},l(n){e=q(n,"PRE",{class:!0});var l=M(e);t=q(l,"CODE",{});var s=M(t);r=we(s,i[1]),s.forEach(m),l.forEach(m),this.h()},h(){C(e,"class",i[0])},m(n,l){O(n,e,l),B(e,t),B(t,r)},p(n,[l]){l&2&&Pe(r,n[1]),l&1&&C(e,"class",n[0])},i:ue,o:ue,d(n){n&&m(e)}}}function Jo(i,e,t){let{lang:r}=e,{text:n}=e;return i.$$set=l=>{"lang"in l&&t(0,r=l.lang),"text"in l&&t(1,n=l.text)},[r,n]}class Wo extends ce{constructor(e){super(),de(this,e,Jo,Ho,he,{lang:0,text:1})}}function $o(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("br"),n&&n.c()},l(l){e=q(l,"BR",{}),n&&n.l(l)},m(l,s){O(l,e,s),n&&n.m(l,s),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ke(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Ko(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Qo extends ce{constructor(e){super(),de(this,e,Ko,$o,he,{})}}const Go={heading:qs,paragraph:Fs,text:Js,image:Ks,link:Ys,em:to,strong:uo,codespan:oo,del:io,table:mo,tablehead:_o,tablebody:ko,tablerow:wo,tablecell:Ro,list:Lo,orderedlistitem:null,unorderedlistitem:null,listitem:zo,hr:Vo,html:Bo,blockquote:Zo,code:Wo,br:Qo},Yo={baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,xhtml:!1};function Xo(i){let e,t;return e=new ot({props:{tokens:i[0],renderers:i[1]}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){$(e,r,n),t=!0},p(r,[n]){const l={};n&1&&(l.tokens=r[0]),n&2&&(l.renderers=r[1]),e.$set(l)},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function ea(i,e,t){let r,n,l,s,{source:o=[]}=e,{renderers:a={}}=e,{options:f={}}=e,{isInline:u=!1}=e;const c=Vt();let d,h,k;return Ci(ai,{slug:_=>n?n.slug(_):"",getOptions:()=>l}),sn(()=>{t(7,k=!0)}),i.$$set=_=>{"source"in _&&t(2,o=_.source),"renderers"in _&&t(3,a=_.renderers),"options"in _&&t(4,f=_.options),"isInline"in _&&t(5,u=_.isInline)},i.$$.update=()=>{i.$$.dirty&4&&t(8,r=Array.isArray(o)),i.$$.dirty&4&&(n=o?new cn:void 0),i.$$.dirty&16&&t(9,l={...Yo,...f}),i.$$.dirty&869&&(r?t(0,d=o):(t(6,h=new Xe(l)),t(0,d=u?h.inlineTokens(o):h.lex(o)),c("parsed",{tokens:d}))),i.$$.dirty&8&&t(1,s={...Go,...a}),i.$$.dirty&385&&k&&!r&&c("parsed",{tokens:d})},[d,s,o,a,f,u,h,k,r,l]}class ta extends ce{constructor(e){super(),de(this,e,ea,Xo,he,{source:2,renderers:3,options:4,isInline:5})}}const na={AdditionalItemsError:"Array at `{{pointer}}` may not have an additional item `{{key}}`",AdditionalPropertiesError:"Additional property `{{property}}` on `{{pointer}}` does not match schema `{{schema}}`",AllOfError:"Value `{{value}}` at `{{pointer}}` does not match schema of `{{allOf}}`",AnyOfError:"Value `{{value}}` at `{{pointer}}` does not match any schema of `{{anyOf}}`",ConstError:"Expected value at `{{pointer}}` to be `{{expected}}`, but value given is `{{value}}`",containsAnyError:"The array at `{{pointer}}` must contain at least one item",ContainsArrayError:"The property at `{{pointer}}` must not be an array",ContainsError:"The array at `{{pointer}}` must contain an element that matches `{{schema}}`",EnumError:"Expected given value `{{value}}` in `{{pointer}}` to be one of `{{values}}`",FormatDateError:"Value `{{value}}` at `{{pointer}}` is not a valid date",FormatDateTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid date-time",FormatEmailError:"Value `{{value}}` at `{{pointer}}` is not a valid email",FormatHostnameError:"Value `{{value}}` at `{{pointer}}` is not a valid hostname",FormatIPV4Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv4 address",FormatIPV4LeadingZeroError:"IPv4 addresses starting with zero are invalid, since they are interpreted as octals",FormatIPV6Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv6 address",FormatIPV6LeadingZeroError:"IPv6 addresses starting with zero are invalid, since they are interpreted as octals",FormatJSONPointerError:"Value `{{value}}` at `{{pointer}}` is not a valid json-pointer",FormatRegExError:"Value `{{value}}` at `{{pointer}}` is not a valid regular expression",FormatTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid time",FormatURIError:"Value `{{value}}` at `{{pointer}}` is not a valid uri",FormatURIReferenceError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-reference",FormatURITemplateError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-template",FormatURLError:"Value `{{value}}` at `{{pointer}}` is not a valid url",InvalidDataError:"No value may be specified in `{{pointer}}`",InvalidPropertyNameError:"Invalid property name `{{property}}` at `{{pointer}}`",MaximumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{maximum}}` at maximum",MaxItemsError:"Too many items in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MaxLengthError:"Value `{{pointer}}` should have a maximum length of `{{maxLength}}`, but got `{{length}}`.",MaxPropertiesError:"Too many properties in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MinimumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{minimum}}` at minimum",MinItemsError:"Too few items in `{{pointer}}`, should be at least `{{minimum}}`, but got `{{length}}`",MinItemsOneError:"At least one item is required in `{{pointer}}`",MinLengthError:"Value `{{pointer}}` should have a minimum length of `{{minLength}}`, but got `{{length}}`.",MinLengthOneError:"A value is required in `{{pointer}}`",MinPropertiesError:"Too few properties in `{{pointer}}`, should be at least `{{minimum}}`, but got `{{length}}`",MissingDependencyError:"The required propery '{{missingProperty}}' in `{{pointer}}` is missing",MissingOneOfPropertyError:"Value at `{{pointer}}` property: `{{property}}`",MultipleOfError:"Expected `{{value}}` in `{{pointer}}` to be multiple of `{{multipleOf}}`",MultipleOneOfError:"Value `{{value}}` should not match multiple schemas in oneOf `{{matches}}`",NoAdditionalPropertiesError:"Additional property `{{property}}` in `{{pointer}}` is not allowed",NotError:"Value `{{value}}` at pointer should not match schema `{{not}}`",OneOfError:"Value `{{value}}` in `{{pointer}}` does not match any given oneof schema",OneOfPropertyError:"Failed finding a matching oneOfProperty schema in `{{pointer}}` where `{{property}}` matches `{{value}}`",PatternError:"Value in `{{pointer}}` should match `{{description}}`, but received `{{received}}`",PatternPropertiesError:"Property `{{key}}` does not match any patterns in `{{pointer}}`. Valid patterns are: {{patterns}}",RequiredPropertyError:"The required property `{{key}}` is missing at `{{pointer}}`",TypeError:"Expected `{{value}}` ({{received}}) in `{{pointer}}` to be of type `{{expected}}`",UndefinedValueError:"Value must not be undefined in `{{pointer}}`",UniqueItemsError:"Expected unique items in {{pointer}}: duplicate value `{{value}}` found at {{itemPointer}} and {{duplicatePointer}}",UnknownPropertyError:"Could not find a valid schema for property `{{pointer}}` within object",ValueNotEmptyError:"A value for `{{property}}` is required at `{{pointer}}`"};function ra(i,e={}){return i.replace(/\{\{\w+\}\}/g,t=>e[t.replace(/[{}]/g,"")])}function ia(i,e,t=i){const r=na[i]||t;return ra(r,e)}function la(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function sa(i,e){return{type:"error",name:i,code:la(i),message:ia(i,e),data:e}}function Q(i){return sa.bind(null,i)}const oa=Object.prototype.toString;function pe(i){const e=oa.call(i).match(/\s([^\]]+)\]/).pop().toLowerCase();return e==="file"?"object":e}function je(i){return(i==null?void 0:i.type)==="error"}function aa(i){return i instanceof Promise}function Dt(i){return je(i)||aa(i)}function _t(i,e=[]){for(let t=0;t<i.length;t+=1){const r=i[t];Array.isArray(r)?_t(r,e):e.push(r)}return e}const wt={DECLARATOR_ONEOF:"oneOfProperty",GET_TEMPLATE_RECURSION_LIMIT:1,floatingPointPrecision:1e4,propertyBlacklist:["_id"]},{DECLARATOR_ONEOF:Jt}=wt;function fa(i,e,t=i.rootSchema,r="#"){if(e!=null&&t[Jt]){const s=[],o=t[Jt],a=e[t[Jt]];if(a===void 0)return i.errors.missingOneOfPropertyError({property:o,pointer:r});for(let f=0;f<t.oneOf.length;f+=1){const u=i.resolveRef(t.oneOf[f]),c=i.step(o,u,e,r);if(je(c))return c;let d=_t(i.validate(a,c,r));if(d=d.filter(Dt),d.length>0)s.push(...d);else return u}return i.errors.oneOfPropertyError({property:o,value:a,pointer:r,errors:s})}const n=[],l=[];for(let s=0;s<t.oneOf.length;s+=1){const o=i.resolveRef(t.oneOf[s]);let a=_t(i.validate(e,o,r));a=a.filter(Dt),a.length>0?l.push(...a):n.push(o)}return n.length===1?n[0]:n.length>1?i.errors.multipleOneOfError({value:e,pointer:r,matches:n}):i.errors.oneOfError({value:JSON.stringify(e),pointer:r,oneOf:t.oneOf,errors:l})}const dn=i=>JSON.parse(JSON.stringify(i));var ua=function(e){return ca(e)&&!da(e)};function ca(i){return!!i&&typeof i=="object"}function da(i){var e=Object.prototype.toString.call(i);return e==="[object RegExp]"||e==="[object Date]"||pa(i)}var ha=typeof Symbol=="function"&&Symbol.for,ma=ha?Symbol.for("react.element"):60103;function pa(i){return i.$$typeof===ma}function ga(i){return Array.isArray(i)?[]:{}}function bt(i,e){return e.clone!==!1&&e.isMergeableObject(i)?ut(ga(i),i,e):i}function _a(i,e,t){return i.concat(e).map(function(r){return bt(r,t)})}function ba(i,e){if(!e.customMerge)return ut;var t=e.customMerge(i);return typeof t=="function"?t:ut}function Ea(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(e){return Object.propertyIsEnumerable.call(i,e)}):[]}function kr(i){return Object.keys(i).concat(Ea(i))}function fi(i,e){try{return e in i}catch{return!1}}function ka(i,e){return fi(i,e)&&!(Object.hasOwnProperty.call(i,e)&&Object.propertyIsEnumerable.call(i,e))}function va(i,e,t){var r={};return t.isMergeableObject(i)&&kr(i).forEach(function(n){r[n]=bt(i[n],t)}),kr(e).forEach(function(n){ka(i,n)||(fi(i,n)&&t.isMergeableObject(e[n])?r[n]=ba(n,t)(i[n],e[n],t):r[n]=bt(e[n],t))}),r}function ut(i,e,t){t=t||{},t.arrayMerge=t.arrayMerge||_a,t.isMergeableObject=t.isMergeableObject||ua,t.cloneUnlessOtherwiseSpecified=bt;var r=Array.isArray(e),n=Array.isArray(i),l=r===n;return l?r?t.arrayMerge(i,e,t):va(i,e,t):bt(e,t)}ut.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,n){return ut(r,n,t)},{})};var ya=ut,wa=ya;const ui=Ut(wa),Oa=(i,e)=>e,Et=(i,e)=>ui(i,e,{arrayMerge:Oa}),Sa=(i,e)=>{const t=i.concat(e);return t.filter((r,n)=>t.indexOf(r)===n)},Pa=(i,e)=>ui(i,e,{arrayMerge:Sa});function Yt(i,e,t){var r;const n={...(r=i.resolveRef(e))!==null&&r!==void 0?r:{}};if(n.if&&(n.then||n.else)){const l=i.isValid(t,n.if);if(l&&n.then)return Yt(i,n.then,t);if(!l&&n.else)return Yt(i,n.else,t);delete n.if,delete n.then,delete n.else}return n}function Ta(i,e,t=i.rootSchema,r="#"){let n=dn(t);for(let l=0;l<t.allOf.length;l+=1){const s=Yt(i,t.allOf[l],e);n=Pa(n,s),e=i.getTemplate(e,n)}return delete n.allOf,n}const{DECLARATOR_ONEOF:Wt}=wt;function Ra(i,e,t,r){if(t==null||e.properties==null)return-1;let n=0;const l=Object.keys(e.properties);for(let s=0;s<l.length;s+=1){const o=l[s];t[o]!=null&&i.isValid(t[o],e.properties[o],r)&&(n+=1)}return n}function hn(i,e,t=i.rootSchema,r="#"){if(e!=null&&t[Wt]){const l=[],s=t[Wt],o=e[t[Wt]];if(o===void 0)return i.errors.missingOneOfPropertyError({property:s,pointer:r});for(let a=0;a<t.oneOf.length;a+=1){const f=i.resolveRef(t.oneOf[a]),u=i.step(s,f,e,r);if(je(u))return u;let c=_t(i.validate(o,u,r));if(c=c.filter(Dt),c.length>0)l.push(...c);else return f}return i.errors.oneOfPropertyError({property:s,value:o,pointer:r,errors:l})}const n=[];for(let l=0;l<t.oneOf.length;l+=1){const s=i.resolveRef(t.oneOf[l]);i.isValid(e,s,r)&&n.push(s)}if(n.length===1)return n[0];if(pe(e)==="object"){let l,s=0;for(let o=0;o<t.oneOf.length;o+=1){const a=i.resolveRef(t.oneOf[o]),f=Ra(i,a,e);s<f&&(s=f,l=t.oneOf[o])}return l===void 0?i.errors.oneOfError({value:JSON.stringify(e),pointer:r,oneOf:t.oneOf}):l}return n.length>1?i.errors.multipleOneOfError({matches:n,data:e,pointer:r}):i.errors.oneOfError({value:JSON.stringify(e),pointer:r,oneOf:t.oneOf})}function Aa(i,e){return i==null||i.$ref==null?i:i.getRoot?i.getRoot().getRef(i):e.getRef(i)}function Ia(i,e){if(i==null||i.$ref==null)return i;const t=e.getRef(i),r=Object.assign({},t,i);return delete r.$ref,Object.defineProperty(r,"__ref",{enumerable:!1,value:i.__ref}),Object.defineProperty(r,"getRoot",{enumerable:!1,value:i.getRoot}),r}var ci={exports:{}};(function(i,e){(function(t,r){i.exports=r()})(typeof self<"u"?self:Fl,()=>(()=>{var t={d:(E,D)=>{for(var w in D)t.o(D,w)&&!t.o(E,w)&&Object.defineProperty(E,w,{enumerable:!0,get:D[w]})},o:(E,D)=>Object.prototype.hasOwnProperty.call(E,D),r:E=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})}},r={};function n(E){return E==="#"||E===""||Array.isArray(E)&&E.length===0||!1}t.r(r),t.d(r,{default:()=>I,get:()=>d,isRoot:()=>n,join:()=>ne,remove:()=>T,removeUndefinedItems:()=>P,set:()=>y,split:()=>c,splitLast:()=>re});const l=/~1/g,s=/~0/g,o=/\/+/g,a=/(^[#/]*|\/+$)/g;function f(E){return E.replace(l,"/").replace(s,"~")}function u(E){return f(decodeURIComponent(E))}function c(E){if(E==null||typeof E!="string"||n(E))return Array.isArray(E)?E:[];const D=E.indexOf("#")>=0?u:f,w=(E=(E=E.replace(o,"/")).replace(a,"")).split("/");for(let j=0,J=w.length;j<J;j+=1)w[j]=D(w[j]);return w}function d(E,D,w){if(D==null||E==null)return w;if(n(D))return E;const j=h(E,c(D));return j===void 0?w:j}function h(E,D){const w=D.shift();if(E!==void 0)return w!==void 0?h(E[w],D):E}const k=/^\[.*\]$/,_=/^\[(.+)\]$/;function A(E,D){return E==="__proto__"||E=="constructor"&&D.length>0&&D[0]=="prototype"}function y(E,D,w){if(D==null)return E;const j=c(D);if(j.length===0)return E;E==null&&(E=k.test(j[0])?[]:{});let J,le,se=E;for(;j.length>1;)J=j.shift(),le=k.test(j[0]),A(J,j)||(se=S(se,J,le));return J=j.pop(),b(se,J,w),E}function b(E,D,w){let j;const J=D.match(_);D==="[]"&&Array.isArray(E)?E.push(w):J?(j=J.pop(),E[j]=w):E[D]=w}function S(E,D,w){if(E[D]!=null)return E[D];const j=w?[]:{};return b(E,D,j),j}function P(E){let D=0,w=0;for(;D+w<E.length;)E[D+w]===void 0&&(w+=1),E[D]=E[D+w],D+=1;return E.length=E.length-w,E}function T(E,D,w){const j=c(D),J=j.pop(),le=d(E,j);return le&&delete le[J],Array.isArray(le)&&w!==!0&&P(le),E}const R=/\/+/g,L=/~/g,z=/\//g;function Z(E,D){if(E.length===0)return D?"#":"";for(let w=0,j=E.length;w<j;w+=1)E[w]=E[w].replace(L,"~0").replace(z,"~1"),D&&(E[w]=encodeURIComponent(E[w]));return((D?"#/":"/")+E.join("/")).replace(R,"/")}function ne(E,...D){const w=[];if(Array.isArray(E))return Z(E,arguments[1]===!0);const j=arguments[arguments.length-1],J=typeof j=="boolean"?j:E&&E[0]==="#";for(let se=0,Te=arguments.length;se<Te;se+=1)w.push.apply(w,c(arguments[se]));const le=[];for(let se=0,Te=w.length;se<Te;se+=1)if(w[se]===".."){if(le.length===0)return J?"#":"";le.pop()}else le.push(w[se]);return Z(le,J)}function re(E){const D=c(E);if(D.length===0)return typeof E=="string"&&E[0]==="#"?["#",D[0]]:["",void 0];if(D.length===1)return E[0]==="#"?["#",D[0]]:["",D[0]];const w=D.pop();return[ne(D,E[0]==="#"),w]}const I={get:d,set:y,remove:T,join:ne,split:c,splitLast:re,isRoot:n,removeUndefinedItems:P};return r})())})(ci);var ft=ci.exports;const kt=Ut(ft),ja={};function Na(i,e,t,r=i.rootSchema){const n=kt.split(e);return r=i.resolveRef(r),di(i,r,n,e,t)}function di(i,e,t,r,n=ja){if(t.length===0)return i.resolveRef(e);const l=t.shift();return e=i.step(l,e,n,r),je(e)?e:(n=n[l],di(i,e,t,`${r}/${l}`,n))}class La{constructor(e,t){this.remotes={},this.errors={},this.typeKeywords={},this.validateKeyword={},this.validateType={},this.validateFormat={},this.config=e,this.typeKeywords=JSON.parse(JSON.stringify(e.typeKeywords)),this.validateKeyword=Object.assign({},e.validateKeyword),this.validateType=Object.assign({},e.validateType),this.validateFormat=Object.assign({},e.validateFormat),this.errors=Object.assign({},e.errors),this.setSchema(t)}get rootSchema(){return this.__rootSchema}set rootSchema(e){e!=null&&(this.__rootSchema=this.config.compileSchema(this,e))}addRemoteSchema(e,t){this.config.addRemoteSchema(this,e,t)}compileSchema(e){var t;return this.config.compileSchema(this,e,(t=this.rootSchema)!==null&&t!==void 0?t:e)}createSchemaOf(e){return this.config.createSchemaOf(e)}each(e,t,r,n){return this.config.each(this,e,t,r,n)}eachSchema(e,t=this.rootSchema){return this.config.eachSchema(t,e)}getChildSchemaSelection(e,t){return this.config.getChildSchemaSelection(this,e,t)}getSchema(e="#",t,r){return this.config.getSchema(this,e,t,r)}getTemplate(e,t,r){return this.config.getTemplate(this,e,t,r)}isValid(e,t,r){return this.config.isValid(this,e,t,r)}resolveAnyOf(e,t,r){return this.config.resolveAnyOf(this,e,t,r)}resolveAllOf(e,t,r){return this.config.resolveAllOf(this,e,t,r)}resolveRef(e){return this.config.resolveRef(e,this.rootSchema)}resolveOneOf(e,t,r){return this.config.resolveOneOf(this,e,t,r)}setSchema(e){this.rootSchema=e}step(e,t,r,n){return this.config.step(this,e,t,r,n)}validate(e,t,r){return this.config.validate(this,e,t,r)}}function Da(i,e,t){t.id=t.id||e,i.remotes[e]=i.compileSchema(t)}var hi={},Be={},qt={};Object.defineProperty(qt,"__esModule",{value:!0});qt.TokenError=void 0;class Ca extends Error{constructor(e,t){if(super(e),this.message=e,this.token=t,t&&t.errors)t.errors.push(this);else throw this}inspect(){return"SyntaxError: "+this.message}}qt.TokenError=Ca;Object.defineProperty(Be,"__esModule",{value:!0});Be.Parser=Be.findRuleByName=Be.parseRuleName=Be.escapeRegExp=Be.readToken=void 0;const vr=/^[A-Z0-9_]+$/,yr=/(\?|\+|\*)$/,wr=/^(@|&|!)/,Pt="WS",Tt=qt;function Xt(i,e){let t=e.exec(i);return t&&t.index==0?t[0].length==0&&e.source.length>0?null:{type:null,text:t[0],rest:i.substr(t[0].length),start:0,end:t[0].length-1,fullText:t[0],errors:[],children:[],parent:null}:null}Be.readToken=Xt;function mi(i){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}Be.escapeRegExp=mi;function pi(i){i.rest="",i.children&&i.children.forEach(e=>pi(e))}function gi(i,e){i.start+=e,i.end+=e,i.children&&i.children.forEach(t=>gi(t,i.start))}function _i(i,e){e.errors&&e.errors.length&&e.errors.forEach(t=>i.push(t)),e.children&&e.children.forEach(t=>_i(i,t))}function lt(i){let e=yr.exec(i),t=wr.exec(i),r=e&&e[0]||"",n=t&&t[0]||"",l={raw:i,name:i.replace(yr,"").replace(wr,""),isOptional:r=="?"||r=="*",allowRepetition:r=="+"||r=="*",atLeastOne:r=="+",lookupPositive:n=="&",lookupNegative:n=="!",pinned:n=="@",lookup:!1,isLiteral:!1};return l.isLiteral=l.name[0]=="'"||l.name[0]=='"',l.lookup=l.lookupNegative||l.lookupPositive,l}Be.parseRuleName=lt;function bi(i,e){let t=lt(i);return e.cachedRules[t.name]||null}Be.findRuleByName=bi;function en(i,e){if(i.children){let t=i.children.filter(r=>r.type&&e.test(r.type));for(let r=0;r<t.length;r++){let n=i.children.indexOf(t[r]);n!=-1&&i.children.splice(n,1)}i.children.forEach(r=>en(r,e))}}const za=["EOF"];class Ei{constructor(e,t){this.grammarRules=e,this.options=t,this.cachedRules={},this.debug=t?t.debug===!0:!1;let r=[],n=[];if(e.forEach(l=>{let s=lt(l.name);if(s.name in this.cachedRules){r.push("Duplicated rule "+s.name);return}else this.cachedRules[s.name]=l;if(!l.bnf||!l.bnf.length){let o="Missing rule content, rule: "+l.name;r.indexOf(o)==-1&&r.push(o)}else l.bnf.forEach(o=>{if(typeof o[0]=="string"&&lt(o[0]).name==l.name){let f="Left recursion is not allowed, rule: "+l.name;r.indexOf(f)==-1&&r.push(f)}o.forEach(a=>{if(typeof a=="string"){let f=lt(a);!f.isLiteral&&n.indexOf(f.name)==-1&&za.indexOf(f.name)==-1&&n.push(f.name)}})});Pt==l.name&&(l.implicitWs=!1),l.implicitWs&&n.indexOf(Pt)==-1&&n.push(Pt),l.recover&&n.indexOf(l.recover)==-1&&n.push(l.recover)}),n.forEach(l=>{l in this.cachedRules||r.push("Missing rule "+l)}),r.length)throw new Error(r.join(`
`))}getAST(e,t){t||(t=this.grammarRules.filter(n=>!n.fragment&&n.name.indexOf("%")!=0)[0].name);let r=this.parse(e,t);if(r){_i(r.errors,r),gi(r,0),en(r,/^%/),(!this.options||!this.options.keepUpperRules)&&en(r,vr);let n=r.rest;n&&new Tt.TokenError(`Unexpected end of input: 
`+n,r),pi(r),r.rest=n}return r}emitSource(){return"CANNOT EMIT SOURCE FROM BASE Parser"}parse(e,t,r=0){let n=null,l=lt(t),s,o=this.debug&&!vr.test(l.name);o&&console.log(new Array(r).join("│  ")+"Trying to get "+t+" from "+JSON.stringify(e.split(`
`)[0]));let a=l.name,f=bi(l.name,this);if(l.name=="EOF"){if(e.length)return null;if(e.length==0)return{type:"EOF",text:"",rest:"",start:0,end:0,fullText:"",errors:[],children:[],parent:null}}try{if(!f&&l.isLiteral){let u=l.name.trim();if(u.startsWith('"')?u=JSON.parse(u):u.startsWith("'")&&(u=u.replace(/^'(.+)'$/,"$1").replace(/\\'/g,"'")),u==="")return{type:"%%EMPTY%%",text:"",rest:e,start:0,end:0,fullText:"",errors:[],children:[],parent:null};s=new RegExp(mi(u)),a=null}}catch(u){return u instanceof ReferenceError&&console.error(u),null}if(s){let u=Xt(e,s);if(u)return u.type=a,u}else{let u=f.bnf;u instanceof Array&&u.forEach(c=>{if(n)return;let d=null,h={type:l.name,text:"",children:[],end:0,errors:[],fullText:"",parent:null,start:0,rest:e};f.fragment&&(h.fragment=!0);let k=e,_=0,A=c.length>0,y=!1;for(let b=0;b<c.length;b++)if(typeof c[b]=="string"){let S=lt(c[b]);A=A&&S.isOptional;let P,T=!1;do{if(P=null,f.implicitWs&&(P=this.parse(k,S.name,r+1),!P)){let R;do if(R=this.parse(k,Pt,r+1),R)h.text=h.text+R.text,h.end=h.text.length,R.parent=h,h.children.push(R),k=k.substr(R.text.length),_+=R.text.length;else break;while(R&&R.text.length)}if(P=P||this.parse(k,S.name,r+1),S.lookupNegative){if(P)return;break}if(S.lookupPositive&&!P)return;if(!P&&(S.isOptional||S.atLeastOne&&T))break;if(P&&f.pinned==b+1&&(d=P,o&&console.log(new Array(r+1).join("│  ")+"└─ "+P.type+" PINNED")),P||(P=this.parseRecovery(f,k,r+1)),!P)if(d)n=h,P={type:"SyntaxError",text:k,children:[],end:k.length,errors:[],fullText:"",parent:null,start:0,rest:""},k.length?new Tt.TokenError(`Unexpected end of input. Expecting ${S.name} Got: ${k}`,P):new Tt.TokenError(`Unexpected end of input. Missing ${S.name}`,P),o&&console.log(new Array(r+1).join("│  ")+"└─ "+P.type+" "+JSON.stringify(P.text));else return;if(T=!0,y=!0,P.type=="%%EMPTY%%")break;P.start+=_,P.end+=_,!S.lookupPositive&&P.type&&(P.fragment?P.children&&P.children.forEach(R=>{R.start+=_,R.end+=_,R.parent=h,h.children.push(R)}):(P.parent=h,h.children.push(P))),S.lookup&&(P.lookup=!0),o&&console.log(new Array(r+1).join("│  ")+"└─ "+P.type+" "+JSON.stringify(P.text)),!S.lookup&&!P.lookup&&(h.text=h.text+P.text,h.end=h.text.length,k=k.substr(P.text.length),_+=P.text.length),h.rest=k}while(P&&S.allowRepetition&&k.length&&!P.lookup)}else{let S=Xt(k,c[b]);if(!S)return;o&&console.log(new Array(r+1).join("│  ")+"└> "+JSON.stringify(S.text)+c[b].source),y=!0,S.start+=_,S.end+=_,h.text=h.text+S.text,h.end=h.text.length,k=k.substr(S.text.length),_+=S.text.length,h.rest=k}y&&(n=h,o&&console.log(new Array(r).join("│  ")+"├<─┴< PUSHING "+n.type+" "+JSON.stringify(n.text)))}),n&&f.simplifyWhenOneChildren&&n.children.length==1&&(n=n.children[0])}return n||o&&console.log(t+" NOT RESOLVED FROM "+e),n}parseRecovery(e,t,r){if(e.recover&&t.length){let n=this.debug;n&&console.log(new Array(r+1).join("│  ")+"Trying to recover until token "+e.recover+" from "+JSON.stringify(t.split(`
`)[0]+t.split(`
`)[1]));let l={type:"SyntaxError",text:"",children:[],end:0,errors:[],fullText:"",parent:null,start:0,rest:""},s;do if(s=this.parse(t,e.recover,r+1),s){new Tt.TokenError('Unexpected input: "'+l.text+`" Expecting: ${e.name}`,l);break}else l.text=l.text+t[0],l.end=l.text.length,t=t.substr(1);while(!s&&t.length>0);if(l.text.length>0&&s)return n&&console.log(new Array(r+1).join("│  ")+"Recovered text: "+JSON.stringify(l.text)),l}return null}}Be.Parser=Ei;Be.default=Ei;Object.defineProperty(hi,"__esModule",{value:!0});const mt=Be;var tn;(function(i){i.RULES=[{name:"Grammar",bnf:[["RULE_S*","%Atomic*","EOF"]]},{name:"%Atomic",bnf:[["Production","RULE_S*"]],fragment:!0},{name:"Production",bnf:[["NCName","RULE_S*",'"::="',"RULE_WHITESPACE*","Choice","RULE_WHITESPACE*","RULE_EOL+","RULE_S*"]]},{name:"NCName",bnf:[[/[a-zA-Z][a-zA-Z_0-9]*/]]},{name:"Choice",bnf:[["SequenceOrDifference","%_Choice_1*"]],fragment:!0},{name:"%_Choice_1",bnf:[["RULE_WHITESPACE*",'"|"',"RULE_WHITESPACE*","SequenceOrDifference"]],fragment:!0},{name:"SequenceOrDifference",bnf:[["Item","RULE_WHITESPACE*","%_Item_1?"]]},{name:"%_Item_1",bnf:[["Minus","Item"],["Item*"]],fragment:!0},{name:"Minus",bnf:[['"-"']]},{name:"Item",bnf:[["RULE_WHITESPACE*","%Primary","PrimaryDecoration?"]],fragment:!0},{name:"PrimaryDecoration",bnf:[['"?"'],['"*"'],['"+"']]},{name:"DecorationName",bnf:[['"ebnf://"',/[^\x5D#]+/]]},{name:"%Primary",bnf:[["NCName"],["StringLiteral"],["CharCode"],["CharClass"],["SubItem"]],fragment:!0},{name:"SubItem",bnf:[['"("',"RULE_WHITESPACE*","Choice","RULE_WHITESPACE*",'")"']]},{name:"StringLiteral",bnf:[[`'"'`,/[^"]*/,`'"'`],[`"'"`,/[^']*/,`"'"`]],pinned:1},{name:"CharCode",bnf:[['"#x"',/[0-9a-zA-Z]+/]]},{name:"CharClass",bnf:[["'['","'^'?","%RULE_CharClass_1+",'"]"']]},{name:"%RULE_CharClass_1",bnf:[["CharCodeRange"],["CharRange"],["CharCode"],["RULE_Char"]],fragment:!0},{name:"RULE_Char",bnf:[[/\x09/],[/\x0A/],[/\x0D/],[/[\x20-\x5c]/],[/[\x5e-\uD7FF]/],[/[\uE000-\uFFFD]/]]},{name:"CharRange",bnf:[["RULE_Char",'"-"',"RULE_Char"]]},{name:"CharCodeRange",bnf:[["CharCode",'"-"',"CharCode"]]},{name:"RULE_WHITESPACE",bnf:[["%RULE_WHITESPACE_CHAR*"],["Comment","RULE_WHITESPACE*"]]},{name:"RULE_S",bnf:[["RULE_WHITESPACE","RULE_S*"],["RULE_EOL","RULE_S*"]]},{name:"%RULE_WHITESPACE_CHAR",bnf:[[/\x09/],[/\x20/]],fragment:!0},{name:"Comment",bnf:[['"/*"',"%RULE_Comment_Body*",'"*/"']]},{name:"%RULE_Comment_Body",bnf:[['!"*/"',/[^*]/]],fragment:!0},{name:"RULE_EOL",bnf:[[/\x0D/,/\x0A/],[/\x0A/],[/\x0D/]]},{name:"Link",bnf:[["'['","Url","']'"]]},{name:"Url",bnf:[[/[^\x5D:/?#]/,'"://"',/[^\x5D#]+/,"%Url1?"]]},{name:"%Url1",bnf:[['"#"',"NCName"]],fragment:!0}],i.defaultParser=new mt.Parser(i.RULES,{debug:!1});const e=/^(!|&)/,t=/(\?|\+|\*)$/,r=/^%/;function n(y,b){if(typeof y=="string"){if(e.test(y))return"";if(r.test(y)){let P=t.exec(y),T=P?P[0]+" ":"";return l(y,b)?o(y,b)+T:"("+o(y,b)+")"+T}return y}else return y.source.replace(/\\(?:x|u)([a-zA-Z0-9]+)/g,"#x$1").replace(/\[\\(?:x|u)([a-zA-Z0-9]+)-\\(?:x|u)([a-zA-Z0-9]+)\]/g,"[#x$1-#x$2]")}function l(y,b){let S=mt.findRuleByName(y,b);return S&&S.bnf.length==1&&S.bnf[0].length==1&&(S.bnf[0][0]instanceof RegExp||S.bnf[0][0][0]=='"'||S.bnf[0][0][0]=="'")}function s(y,b){return y.map(S=>n(S,b)).join(" ")}function o(y,b){let S=mt.findRuleByName(y,b);return S?S.bnf.map(P=>s(P,b)).join(" | "):"RULE_NOT_FOUND {"+y+"}"}function a(y){let b=[];return y.grammarRules.forEach(S=>{if(!/^%/.test(S.name)){let P=S.recover?" /* { recoverUntil="+S.recover+" } */":"";b.push(S.name+" ::= "+o(S.name,y)+P)}}),b.join(`
`)}i.emit=a;let f=0;function u(y,b){throw console.log("reberia restar "+b+" a "+y),new Error("Difference not supported yet")}function c(y){return new RegExp(y.replace(/#x([a-zA-Z0-9]{4})/g,"\\u$1").replace(/#x([a-zA-Z0-9]{3})/g,"\\u0$1").replace(/#x([a-zA-Z0-9]{2})/g,"\\x$1").replace(/#x([a-zA-Z0-9]{1})/g,"\\x0$1"))}function d(y,b,S){let P=null,T=[];return b.children.forEach((R,L)=>{R.type=="Minus"&&u(P,R);let z=b.children[L+1];z=z&&z.type=="PrimaryDecoration"&&z.text||"";let Z="";switch(R.type){case"SubItem":let ne="%"+(S+f++);h(y,R,ne),T.push(Z+ne+z);break;case"NCName":case"StringLiteral":T.push(Z+R.text+z);break;case"CharCode":case"CharClass":if(z||Z){let re={name:"%"+(S+f++),bnf:[[c(R.text)]]};y.push(re),T.push(Z+re.name+z)}else T.push(c(R.text));break;case"PrimaryDecoration":break;default:throw new Error(" HOW SHOULD I PARSE THIS? "+R.type+" -> "+JSON.stringify(R.text))}P=R}),T}function h(y,b,S){let P=b.children.filter(L=>L.type=="SequenceOrDifference").map(L=>d(y,L,S)),T={name:S,bnf:P},R=null;P.forEach(L=>{R=R||L.recover,delete L.recover}),S.indexOf("%")==0&&(T.fragment=!0),R&&(T.recover=R),y.push(T)}function k(y,b=i.defaultParser){let S=b.getAST(y);if(!S)throw new Error("Could not parse "+y);if(S.errors&&S.errors.length)throw S.errors[0];let P=[];return S.children.filter(T=>T.type=="Production").map(T=>{let R=T.children.filter(L=>L.type=="NCName")[0].text;h(P,T,R)}),P}i.getRules=k;function _(y,b=i.defaultParser){return k(y.join(""),b)}i.Transform=_;class A extends mt.Parser{constructor(b,S){const P=S&&S.debugRulesParser===!0?new mt.Parser(i.RULES,{debug:!0}):i.defaultParser;super(k(b,P),S)}emitSource(){return a(this)}}i.Parser=A})(tn||(tn={}));var Ma=hi.default=tn;const Va="[^?/{}*,()#]+",Ua=`
root ::= ("#" recursion | recursion | (query | pattern) recursion* | "#" SEP? | SEP)
recursion ::= (SEP query | pattern)*

query ::= (ESC escaped ESC | property | all | any | regex) typecheck? lookahead?
property ::= ${Va}
regex ::= "{" [^}]+ "}"
SEP ::= "/"
all ::= "**"
any ::= "*"

typecheck ::= "?:" ("value" | "boolean" | "string" | "number" | "object" | "array")
lookahead ::= "?" expression ((andExpr | orExpr) expression)*
andExpr ::= S? "&&" S?
orExpr ::= S? "||" S?

expression ::= (exprProperty | ESC escaped ESC) ((isnot | is) (exprProperty | regex | ESC escaped ESC))*
exprProperty ::= [a-zA-Z0-9-_ $]+
escaped ::= [^"]+
is ::= ":"
isnot ::= ":!"
ESC ::= '"'

pattern ::= S? "(" (SEP query | pattern (orPattern? pattern)*)* ")" quantifier? S? lookahead?
quantifier ::= "+" | "*" | [0-9]+
orPattern ::= S? "," S?

S ::= [ ]*
`,qa=new Ma.Parser(Ua),Ba=i=>qa.getAST(i),Ue=0,ct=3,Ct=(i,e)=>`${i}/${e}`,ki=Object.prototype.toString,xa=/Object|Array/,nn=i=>xa.test(ki.call(i)),Fa=i=>ki.call(i).match(/\s([^\]]+)\]/).pop().toLowerCase();function vi(i){return new RegExp(i.text.replace(/(^{|}$)/g,""))}function Za(i,e){Array.isArray(i)?i.forEach(e):Object.prototype.toString.call(i)==="[object Object]"&&Object.keys(i).forEach(function(t){e(i[t],t,i)})}function Or(i){return Array.isArray(i)?i.map(function(e,t){return`${t}`}):Object.prototype.toString.call(i)==="[object Object]"?Object.keys(i):[]}const rt={mem:[],get(i,e){const t=i[Ue][e];if(!rt.mem.includes(t))return nn(t)&&rt.mem.push(t),[t,e,i[Ue],Ct(i[ct],e)]},reset(){rt.mem.length=0}},rn={any(i,e){const t=e[Ue];return Or(t).map(r=>[t[r],r,t,Ct(e[ct],r)])},all(i,e){const t=[e];return Za(e[Ue],(r,n)=>{const l=rt.get(e,n);l&&t.push(...rn.all(i,l))}),t},regex(i,e){const t=vi(i),r=e[Ue];return Or(r).filter(n=>t.test(n)).map(n=>[r[n],n,r,Ct(e[ct],n)])}},zt={escaped:(i,e)=>zt.property(i,e),property:(i,e)=>{const t=i.text;if(e[Ue]&&e[Ue][t]!==void 0)return[e[Ue][t],t,e[Ue],Ct(e[ct],t)]},typecheck:(i,e)=>{const t=i.text.replace(/^\?:/,"");if(t==="value")return nn(e[Ue])?void 0:e;if(Fa(e[Ue])===t)return e},lookahead:(i,e)=>{let t=!0,r=!1;return i.children.forEach(n=>{if(n.type==="expression"){const l=zt.expression(n,e)!==void 0;t=r===!0?t||l:t&&l}else r=n.type==="orExpr"}),t?e:void 0},expression:(i,e)=>{const t=i.children[0].text,r=i.children[1],n=i.children[2],l=e[Ue];if(nn(l)!==!1)return Ha(l[t],r,n)?e:void 0}};function Ha(i,e,t){if(e===void 0)return i!==void 0;let r;const n=`${i}`;return t.type==="regex"?r=vi(t).test(n):r=n===t.text,e.type==="isnot"&&(r=r===!1&&i!==void 0),r}function Ja(i,e,t,r){const n=[];for(let l=0,s=e.length;l<s;l+=1)n.push(...i(t,e[l],t,r));return n}function Wa(i,e,t,r){const n=[];for(let l=0,s=e.length;l<s;l+=1){const o=i(t,e[l],r);o&&n.push(o)}return n}function $a(i,e,t){let r=i;return e.children.forEach(n=>{if(rn[n.type])r=Ja(rn[n.type],r,n,t);else if(zt[n.type])r=Wa(zt[n.type],r,n,t);else throw new Error(`Unknown filter ${n.type}`)}),r}function Ka(i,e,t){const r=[];let n=i;return e.children.forEach(l=>{if(l.type==="orPattern"){r.push(...n),n=i;return}n=mn(n,l,t)}),r.push(...n),r}function Qa(i){if(i==null)return 1;if(i==="*"||i==="+")return 1/0;const e=parseInt(i);return isNaN(e)?1:e}function Ga(i,e,t){const r=[],n=e.children.find(a=>a.type==="quantifier"),l=Qa(n&&n.text);let s=i;n&&n.text==="*"&&r.push(...s);let o=0;for(;s.length>0&&o<l;)s=Ka(s,e,t),r.push(...s),o+=1;return r}function Ya(i,e,t){let r=i;return e.children.forEach(n=>r=mn(r,n,t)),r}function mn(i,e,t){let r;return e.type==="query"?r=$a(i,e,t):e.type==="pattern"?r=Ga(i,e,t):r=Ya(i,e,t),rt.reset(),rt.mem.push(i),r}function Xa(i,e){return rt.reset(),rt.mem.push(i),mn([[i,null,null,"#"]],e)}const Sr={value:i=>i.map(e=>e[Ue]),pointer:i=>i.map(e=>e[ct]),all:i=>i,map:i=>{const e={};return i.forEach(t=>e[t[ct]]=t[Ue]),e}};var st;(function(i){i.POINTER="pointer",i.VALUE="value",i.ALL="all",i.MAP="map"})(st||(st={}));Ot.POINTER=st.POINTER;Ot.VALUE=st.VALUE;Ot.ALL=st.ALL;Ot.MAP=st.MAP;function Ot(i,e,t=st.VALUE){if(e==null)return[];e=e.replace(/(\/$)/g,""),e===""&&(e="#");const r=Ba(e);if(r==null)throw new Error(`empty ast for '${e}'`);if(r.rest!=="")throw new Error(`Failed parsing queryString from: '${r.rest}'`);const n=Xa(i,r);return typeof t=="function"?n.map(l=>t(...l)):Sr[t]?Sr[t](n):n}var Mt;(function(i){i.REPLACE_ITEMS="replace",i.INSERT_ITEMS="insert"})(Mt||(Mt={}));Mt.REPLACE_ITEMS;Mt.INSERT_ITEMS;const Qe={$ref:{type:!1},allOf:{type:!1,definitions:["allOf/*"]},anyOf:{type:!1,definitions:["anyOf/*"]},array:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","items","items/*","additionalItems"],validationKeywords:["minItems","maxItems","uniqueItems"],keywords:["items","additionalItems","minItems","maxItems","uniqueItems"]},boolean:{type:!0},enum:{type:!1},integer:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},not:{type:!1,definitions:["not"]},number:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},null:{type:!0},object:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","properties/*","additionalProperties","patternProperties/*","dependencies/*"],validationKeywords:["minProperties","maxProperties","required"],keywords:["properties","additionalProperties","patternProperties","dependencies","minProperties","maxProperties","required"]},oneOf:{type:!1,definitions:["oneOf/*"]},string:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minLength","maxLength","pattern"]}},ef=i=>Object.prototype.toString.call(i)==="[object Object]",tf=Object.keys(Qe).filter(i=>Qe[i].type===!1),Pr=Object.prototype.hasOwnProperty;function Tr(i){if(ef(i)===!1)return;if(i.enum)return"enum";if(Qe[i.type]||Array.isArray(i.type))return i.type;const e=tf.filter(t=>i[t]);if(e.length===1)return e[0];if(e.length===0){for(let t=0,r=Qe.object.keywords.length;t<r;t+=1){const n=Qe.object.keywords[t];if(Pr.call(i,n))return"object"}for(let t=0,r=Qe.array.keywords.length;t<r;t+=1){const n=Qe.array.keywords[t];if(Pr.call(i,n))return"array"}return}throw new Error(`Mutiple typeIds [${e.join(", ")}] matched in ${JSON.stringify(i)}`)}const nf=i=>Object.prototype.toString.call(i)==="[object Object]";function rf(i){const e=[],t=Tr(i);if(t==null)return e;let r;if(Array.isArray(t)){r={};for(let n=0,l=t.length;n<l;n+=1)Object.assign(r,Qe[t[n]])}else r=Qe[t];return r.definitions==null||r.definitions.forEach(n=>{Ot(i,n,(l,s,o,a)=>{nf(l)&&Tr(l)&&e.push({pointer:kt.join(kt.split(a),!1),def:l})})}),e}const lf=i=>Object.prototype.toString.call(i)==="[object Object]";function sf(i,e){if(this.callback(i,e)===!0)return;rf(i).forEach(r=>this.nextTypeDefs(r.def,kt.join(e,r.pointer,!1)))}function Rt(i,e,t,r="definitions"){const n=e[r];Object.keys(n).forEach(l=>{if(n[l]===!1||lf(n[l])){i.nextTypeDefs(n[l],kt.join(t,r,l,!1));return}})}function yi(i,e,t="#"){const r={callback:e,nextTypeDefs:sf};r.nextTypeDefs(i,t),i.definitions!=null&&(r.callback=(n,l)=>{e(n,l),n.definitions!=null&&Rt(r,n,l)},Rt(r,i,t)),i.$defs!=null&&(r.callback=(n,l)=>{e(n,l),n.definitions!=null&&Rt(r,n,l)},Rt(r,i,t,"$defs"))}const of=/(#|\/)+$/,At=/#$/,af=/^[^:]+:\/\/[^/]+\//,ff=/\/[^/]*$/,uf=/#.*$/;function Rr(i,e){return i==null&&e==null?"#":e==null?i.replace(At,""):i==null?e.replace(At,""):e[0]==="#"?`${i.replace(uf,"")}${e.replace(of,"")}`:af.test(e)?e.replace(At,""):`${i.replace(ff,"")}/${e.replace(At,"")}`}const pt=/(#|\/)+$/g,cf=["",null,"#"];function df(i){if(cf.includes(i))return[];if(i=i.replace(pt,""),i.indexOf("#")===-1)return[i.replace(pt,"")];if(i.indexOf("#")===0)return[i.replace(pt,"")];const e=i.split("#");return e[0]=e[0].replace(pt,""),e[1]=`#${e[1].replace(pt,"")}`,e}const hf=/(#|\/)+$/g,mf=i=>pe(i)==="object";function tt(i,e,t){if(mf(t)&&(t=t.__ref||t.$ref),t==null)return e;let r;const n=t.replace(hf,"");if(i.remotes[n])return r=i.remotes[n],r&&r.$ref?tt(i,e,r.$ref):r;if(i.ids[t])return r=ft.get(e,i.ids[t]),r&&r.$ref?tt(i,e,r.$ref):r;const l=df(t);if(l.length===0)return e;if(l.length===1){if(t=l[0],i.remotes[t])return r=i.remotes[t],tt(i,e,r.$ref);if(i.ids[t])return r=ft.get(e,i.ids[t]),r&&r.$ref?tt(i,e,r.$ref):r}if(l.length===2){const s=l[0];if(t=l[1],i.remotes[s])return i.remotes[s].getRef?i.remotes[s].getRef(t):tt(i,i.remotes[s],t);if(i.ids[s])return tt(i,ft.get(e,i.ids[s]),t)}return r=ft.get(e,i.ids[t]||t),r&&r.$ref?tt(i,e,r.$ref):r}const Ar="__compiled",Ir="__ref",pf="getRef",gf="getRoot",_f=/(#|\/)+$/g;function bf(i,e,t=e,r=!1){if(e===!0||e===!1||e===void 0||e[Ar]!==void 0)return e;const n={ids:{},remotes:i.remotes},l=JSON.stringify(e),s=JSON.parse(l);if(Object.defineProperty(s,Ar,{enumerable:!1,value:!0}),Object.defineProperty(s,pf,{enumerable:!1,value:tt.bind(null,n,s)}),r===!1&&l.includes("$ref")===!1)return s;s!==t&&Object.defineProperty(s,"$defs",{enumerable:!0,value:Object.assign({},t.definitions,t.$defs,s.definitions,s.$defs)});const o={},a=()=>s;return yi(s,(f,u)=>{var c;if(f.$id){if(f.$id.startsWith("http")&&/(allOf|anyOf|oneOf)\/\d+$/.test(u)){const A=u.replace(/\/(allOf|anyOf|oneOf)\/\d+$/,""),y=ft.get(s,A);f.$id=(c=y.$id)!==null&&c!==void 0?c:f.$id}n.ids[f.$id.replace(_f,"")]=u}u=`#${u}`.replace(/##+/,"#");const d=u.replace(/\/[^/]+$/,""),h=u.replace(/\/[^/]+\/[^/]+$/,""),k=o[d]||o[h],_=Rr(k,f.$id);o[u]=_,n.ids[_]==null&&(n.ids[_]=u),f.$ref&&!f[Ir]&&(Object.defineProperty(f,Ir,{enumerable:!1,value:Rr(_,f.$ref)}),Object.defineProperty(f,gf,{enumerable:!1,value:a}))}),s}function Ef(i,e,t,r=i.rootSchema,n="#"){r=i.resolveRef(r),t(r,e,n);const l=pe(e);l==="object"?Object.keys(e).forEach(s=>{const o=i.step(s,r,e,n),a=e[s];i.each(a,t,o,`${n}/${s}`)}):l==="array"&&e.forEach((s,o)=>{const a=i.step(o,r,e,n);i.each(s,t,a,`${n}/${o}`)})}const ve={additionalItemsError:Q("AdditionalItemsError"),additionalPropertiesError:Q("AdditionalPropertiesError"),anyOfError:Q("AnyOfError"),allOfError:Q("AllOfError"),constError:Q("ConstError"),containsError:Q("ContainsError"),containsArrayError:Q("ContainsArrayError"),containsAnyError:Q("ContainsAnyError"),enumError:Q("EnumError"),formatURLError:Q("FormatURLError"),formatURIError:Q("FormatURIError"),formatURIReferenceError:Q("FormatURIReferenceError"),formatURITemplateError:Q("FormatURITemplateError"),formatDateError:Q("FormatDateaError"),formatDateTimeError:Q("FormatDateTimeError"),formatEmailError:Q("FormatEmailError"),formatHostnameError:Q("FormatHostnameError"),formatIPV4Error:Q("FormatIPV4Error"),formatIPV4LeadingZeroError:Q("FormatIPV4LeadingZeroError"),formatIPV6Error:Q("FormatIPV6Error"),formatIPV6LeadingZeroError:Q("FormatIPV6LeadingZeroError"),formatJSONPointerError:Q("FormatJSONPointerError"),formatRegExError:Q("FormatRegExError"),formatTimeError:Q("FormatTimeError"),invalidSchemaError:Q("InvalidSchemaError"),invalidDataError:Q("InvalidDataError"),invalidTypeError:Q("InvalidTypeError"),invalidPropertyNameError:Q("InvalidPropertyNameError"),maximumError:Q("MaximumError"),maxItemsError:Q("MaxItemsError"),maxLengthError:Q("MaxLengthError"),maxPropertiesError:Q("MaxPropertiesError"),minimumError:Q("MinimumError"),minItemsError:Q("MinItemsError"),minItemsOneError:Q("MinItemsOneError"),minLengthError:Q("MinLengthError"),minLengthOneError:Q("MinLengthOneError"),minPropertiesError:Q("MinPropertiesError"),missingDependencyError:Q("MissingDependencyError"),missingOneOfPropertyError:Q("MissingOneOfPropertyError"),multipleOfError:Q("MultipleOfError"),multipleOneOfError:Q("MultipleOneOfError"),noAdditionalPropertiesError:Q("NoAdditionalPropertiesError"),notError:Q("NotError"),oneOfError:Q("OneOfError"),oneOfPropertyError:Q("OneOfPropertyError"),patternError:Q("PatternError"),patternPropertiesError:Q("PatternPropertiesError"),requiredPropertyError:Q("RequiredPropertyError"),typeError:Q("TypeError"),undefinedValueError:Q("UndefinedValueError"),uniqueItemsError:Q("UniqueItemsError"),unknownPropertyError:Q("UnknownPropertyError"),valueNotEmptyError:Q("ValueNotEmptyError")};var wi={exports:{}};(function(i){(function(e){e.exports.is_uri=r,e.exports.is_http_uri=n,e.exports.is_https_uri=l,e.exports.is_web_uri=s,e.exports.isUri=r,e.exports.isHttpUri=n,e.exports.isHttpsUri=l,e.exports.isWebUri=s;var t=function(o){var a=o.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/);return a};function r(o){if(o&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(o)&&!/%[^0-9a-f]/i.test(o)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(o)){var a=[],f="",u="",c="",d="",h="",k="";if(a=t(o),f=a[1],u=a[2],c=a[3],d=a[4],h=a[5],!!(f&&f.length&&c.length>=0)){if(u&&u.length){if(!(c.length===0||/^\//.test(c)))return}else if(/^\/\//.test(c))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(f.toLowerCase()))return k+=f+":",u&&u.length&&(k+="//"+u),k+=c,d&&d.length&&(k+="?"+d),h&&h.length&&(k+="#"+h),k}}}function n(o,a){if(r(o)){var f=[],u="",c="",d="",h="",k="",_="",A="";if(f=t(o),u=f[1],c=f[2],d=f[3],k=f[4],_=f[5],!!u){if(a){if(u.toLowerCase()!="https")return}else if(u.toLowerCase()!="http")return;if(c)return/:(\d+)$/.test(c)&&(h=c.match(/:(\d+)$/)[0],c=c.replace(/:\d+$/,"")),A+=u+":",A+="//"+c,h&&(A+=h),A+=d,k&&k.length&&(A+="?"+k),_&&_.length&&(A+="#"+_),A}}}function l(o){return n(o,!0)}function s(o){return n(o)||l(o)}})(i)})(wi);var kf=wi.exports;const jr=Ut(kf),vf=new RegExp("^([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\\.[0-9]+)?(([Zz])|([\\+|\\-]([01][0-9]|2[0-3]):[0-5][0-9]))$"),yf=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,wf=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,Of=/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,Sf=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Pf=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Tf=[0,31,28,31,30,31,30,31,31,30,31,30,31],Rf=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Af=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,If=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,jf=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,Nf={date:(i,e,t,r)=>{if(typeof t!="string")return;const n=t.match(Sf);if(!n)return ve.formatDateTimeError({value:t,pointer:r});const l=+n[1],s=+n[2],o=+n[3],a=l%4===0&&(l%100!==0||l%400===0);if(!(s>=1&&s<=12&&o>=1&&o<=(s==2&&a?29:Tf[s])))return ve.formatDateError({value:t,pointer:r})},"date-time":(i,e,t,r)=>{if(typeof t=="string")return t===""||vf.test(t)?new Date(t).toString()==="Invalid Date"?ve.formatDateTimeError({value:t,pointer:r}):void 0:ve.formatDateTimeError({value:t,pointer:r})},email:(i,e,t,r)=>{if(typeof t!="string")return;if(t[0]==='"')return ve.formatEmailError({value:t,pointer:r});const[n,l,...s]=t.split("@");if(!n||!l||s.length!==0||n.length>64||l.length>253)return ve.formatEmailError({value:t,pointer:r});if(n[0]==="."||n.endsWith(".")||n.includes(".."))return ve.formatEmailError({value:t,pointer:r});if(!/^[a-z0-9.-]+$/i.test(l)||!/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(n))return ve.formatEmailError({value:t,pointer:r});if(!l.split(".").every(o=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(o)))return ve.formatEmailError({value:t,pointer:r})},hostname:(i,e,t,r)=>{if(typeof t=="string"&&!(t===""||Of.test(t)))return ve.formatHostnameError({value:t,pointer:r})},ipv4:(i,e,t,r)=>{if(!(typeof t!="string"||t==="")){if(t&&t[0]==="0")return ve.formatIPV4LeadingZeroError({value:t,pointer:r});if(!(t.length<=15&&yf.test(t)))return ve.formatIPV4Error({value:t,pointer:r})}},ipv6:(i,e,t,r)=>{if(!(typeof t!="string"||t==="")){if(t&&t[0]==="0")return ve.formatIPV6LeadingZeroError({value:t,pointer:r});if(!(t.length<=45&&wf.test(t)))return ve.formatIPV6Error({value:t,pointer:r})}},"json-pointer":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!Rf.test(t))return ve.formatJSONPointerError({value:t,pointer:r})},"relative-json-pointer":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!Af.test(t))return ve.formatJSONPointerError({value:t,pointer:r})},regex:(i,e,t,r)=>{if(typeof t=="string"&&/\\Z$/.test(t)===!1){try{new RegExp(t);return}catch{}return ve.formatRegExError({value:t,pointer:r})}if(!(typeof t=="object"||typeof t=="number"||Array.isArray(t)))return ve.formatRegExError({value:t,pointer:r})},time:(i,e,t,r)=>{if(typeof t!="string")return;const n=t.match(Pf);if(!n)return ve.formatDateTimeError({value:t,pointer:r});const l=+n[1],s=+n[2],o=+n[3],a=!!n[5];if(!((l<=23&&s<=59&&o<=59||l==23&&s==59&&o==60)&&a))return ve.formatTimeError({value:t,pointer:r})},uri:(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!jr.isUri(t))return ve.formatURIError({value:t,pointer:r})},"uri-reference":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!If.test(t))return ve.formatURIReferenceError({value:t,pointer:r})},"uri-template":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!jf.test(t))return ve.formatURITemplateError({value:t,pointer:r})},url:(i,e,t,r)=>{if(!(t===""||jr.isWebUri(t)))return ve.formatURLError({value:t,pointer:r})}};function Lf(i){switch(pe(i)){case"string":case"array":return i.length===0;case"null":case"undefined":return!0;case"object":return Object.keys(i).length===0;default:return!1}}const Df={addOptionalProps:!0,removeInvalidData:!1};let Ge;function $t(i,e){const{$ref:t}=i;return t==null?!0:(Ge[e]==null||Ge[e][t]==null?0:Ge[e][t])<wt.GET_TEMPLATE_RECURSION_LIMIT}function Kt(i,e,t){if(t==null)throw new Error(`missing pointer ${t}`);const{$ref:r}=e;return r==null?e:(Ge[t]=Ge[t]||{},Ge[t][r]=Ge[t][r]||0,Ge[t][r]+=1,i.resolveRef(e))}function Cf(i,e){if(i==="string")return JSON.stringify(e);if(typeof e!="string")return null;try{if(e=JSON.parse(e),typeof e===i)return e}catch{}return null}function Oi(i,e,t,r){if(pe(e)!=="object")return Object.assign({pointer:r},e);if($t(e,r)===!1&&t==null)return!1;let n=dn(Kt(i,e,r));if(Array.isArray(e.anyOf)&&e.anyOf.length>0){if($t(e.anyOf[0],`${r}/anyOf/0`)){const l=Kt(i,e.anyOf[0],`${r}/anyOf/0`);n=Et(n,l),n.pointer=e.anyOf[0].$ref||n.pointer}delete n.anyOf}if(Array.isArray(e.allOf)){for(let l=0,s=e.allOf.length;l<s;l+=1)$t(e.allOf[l],`${r}/allOf/${l}`)&&(n=Et(n,Kt(i,e.allOf[l],`${r}/allOf/${l}`)),n.pointer=e.allOf[l].$ref||n.pointer);delete n.allOf}return n.pointer=n.pointer||e.$ref||r,n}const Nr=i=>i&&typeof i=="object";function Ke(i,e,t,r,n){if(t==null)throw new Error(`getTemplate: missing schema for data: ${JSON.stringify(e)}`);if(r==null)throw new Error("Missing pointer");let l=Oi(i,t,e,r);if(!Nr(l))return;if(r=l.pointer,l!=null&&l.const)return l.const;if(Array.isArray(l.oneOf))if(Lf(e)){const f=l.oneOf[0].type||l.type||l.const&&typeof l.const||pe(e);l={...l.oneOf[0],type:f}}else{const f=hn(i,e,l);if(je(f)){if(e!=null&&n.removeInvalidData!==!0)return e;l=l.oneOf[0],e=void 0}else l=f}if(!Nr(l)||l.type==null)return;const s=Array.isArray(l.type)?zf(l.type,e,l.default):l.type,o=pe(e);return e!=null&&o!==s&&!(o==="number"&&s==="integer")&&(e=Cf(s,e)),Lr[s]==null?n.removeInvalidData?void 0:e:Lr[s](i,l,e,r,n)}function zf(i,e,t){if(e==null){if(t!=null){const n=pe(t);if(i.includes(n))return n}return i[0]}const r=pe(e);return i.includes(r)?r:i[0]}const Lr={null:(i,e,t)=>gt(e,t,null),string:(i,e,t)=>gt(e,t,""),number:(i,e,t)=>gt(e,t,0),integer:(i,e,t)=>gt(e,t,0),boolean:(i,e,t)=>gt(e,t,!1),object:(i,e,t,r,n)=>{var l;const s=e.default===void 0?{}:e.default,o={},a=(l=e.required)!==null&&l!==void 0?l:[];if(e.properties&&Object.keys(e.properties).forEach(f=>{const u=t==null||t[f]==null?s[f]:t[f],c=a.includes(f);(u!=null||c||n.addOptionalProps)&&(o[f]=Ke(i,u,e.properties[f],`${r}/properties/${f}`,n))}),e.dependencies&&Object.keys(e.dependencies).forEach(f=>{if(o[f]===void 0)return;const u=e.dependencies[f];if(Array.isArray(u)){u.forEach(d=>{o[d]=Ke(i,o[d],e.properties[d],`${r}/properties/${d}`,n)});return}if(pe(u)!=="object")return;const c=Ke(i,t,{...u,type:"object"},`${r}/dependencies/${f}`,n);c&&!je(c)&&Object.assign(o,c)}),t&&Object.keys(t).forEach(f=>o[f]==null&&(o[f]=t[f])),e.if&&(e.then||e.else)){const f=i.isValid(o,e.if);if(f&&e.then){const u=i.getTemplate(o,{type:"object",...e.then},n);Object.assign(o,u)}else if(!f&&e.else){const u=i.getTemplate(o,{type:"object",...e.else},n);Object.assign(o,u)}}return o},array:(i,e,t,r,n)=>{var l,s,o;const a=e.default===void 0?[]:e.default;e.minItems=e.minItems||0;const f=t||[];if(e.items==null)return f;if(Array.isArray(e.items)){for(let c=0,d=Math.max((l=e.minItems)!==null&&l!==void 0?l:0,(o=(s=e.items)===null||s===void 0?void 0:s.length)!==null&&o!==void 0?o:0);c<d;c+=1)f[c]=Ke(i,f[c]==null?a[c]:f[c],e.items[c],`${r}/items/${c}`,n);return f}if(pe(e.items)!=="object")return f;const u=Oi(i,e.items,t,r);if(u===!1)return f;if(r=u.pointer||r,u.oneOf&&f.length===0){const c=u.oneOf[0];for(let d=0;d<e.minItems;d+=1)f[d]=Ke(i,f[d]==null?a[d]:f[d],c,`${r}/oneOf/0`,n);return f}if(u.oneOf&&f.length>0){const c=Math.max(e.minItems,f.length);for(let d=0;d<c;d+=1){let h=f[d]==null?a[d]:f[d],k=hn(i,h,u);k==null||je(k)?h!=null&&n.removeInvalidData!==!0?f[d]=h:(h=void 0,k=u.oneOf[0],f[d]=Ke(i,h,k,`${r}/oneOf/${d}`,n)):f[d]=Ke(i,h,k,`${r}/oneOf/${d}`,n)}return f}if(u.type){for(let c=0,d=Math.max(e.minItems,f.length);c<d;c+=1)f[c]=Ke(i,f[c]==null?a[c]:f[c],u,`${r}/items`,n);return f}return f}};function gt(i,e,t){return e??(i.const?i.const:i.default===void 0&&Array.isArray(i.enum)?i.enum[0]:i.default===void 0?t:i.default)}const Mf=(i,e,t=i.rootSchema,r=Df)=>(Ge={mi:{}},Ke(i,e,t,"#",r));function Vf(i,e,t=i.rootSchema,r="#"){return i.validate(e,t,r).length===0}function ln(i,e){const t=typeof i;if(t!==typeof e)return!1;if(Array.isArray(i)){if(!Array.isArray(e))return!1;const r=i.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(!ln(i[n],e[n]))return!1;return!0}if(t==="object"){if(!i||!e)return i===e;const r=Object.keys(i),n=Object.keys(e);if(r.length!==n.length)return!1;for(const s of r)if(!ln(i[s],e[s]))return!1;return!0}return i===e}function Dr(i){const e=[];let t=0;const r=i.length;for(;t<r;){const n=i.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){const l=i.charCodeAt(t++);(l&64512)==56320?e.push(((n&1023)<<10)+(l&1023)+65536):(e.push(n),t--)}else e.push(n)}return e}const Qt=wt.floatingPointPrecision,Uf=Object.prototype.hasOwnProperty,Cr=(i,e)=>!(i[e]===void 0||!Uf.call(i,e)),qf={additionalProperties:(i,e,t,r)=>{if(e.additionalProperties===!0||e.additionalProperties==null||pe(e.patternProperties)==="object"&&e.additionalProperties===!1)return;const n=[];let l=Object.keys(t).filter(o=>wt.propertyBlacklist.includes(o)===!1);const s=Object.keys(e.properties||{});if(pe(e.patternProperties)==="object"){const o=Object.keys(e.patternProperties).map(a=>new RegExp(a));l=l.filter(a=>{for(let f=0;f<o.length;f+=1)if(o[f].test(a))return!1;return!0})}for(let o=0,a=l.length;o<a;o+=1){const f=l[o];if(s.indexOf(f)===-1){const u=typeof e.additionalProperties=="object";if(u&&Array.isArray(e.additionalProperties.oneOf)){const c=i.resolveOneOf(t[f],e.additionalProperties,`${r}/${f}`);je(c)?n.push(i.errors.additionalPropertiesError({schema:e.additionalProperties,property:l[o],properties:s,pointer:r,errors:c.data.errors})):n.push(...i.validate(t[f],c,r))}else u?n.push(...i.validate(t[f],e.additionalProperties,`${r}/${f}`)):n.push(i.errors.noAdditionalPropertiesError({property:l[o],properties:s,pointer:r}))}}return n},allOf:(i,e,t,r)=>{if(Array.isArray(e.allOf)===!1)return;const n=[];return e.allOf.forEach(l=>{n.push(...i.validate(t,l,r))}),n},anyOf:(i,e,t,r)=>{if(Array.isArray(e.anyOf)!==!1){for(let n=0;n<e.anyOf.length;n+=1)if(i.isValid(t,e.anyOf[n]))return;return i.errors.anyOfError({anyOf:e.anyOf,value:t,pointer:r})}},dependencies:(i,e,t,r)=>{if(pe(e.dependencies)!=="object")return;const n=[];return Object.keys(t).forEach(l=>{if(e.dependencies[l]===void 0||e.dependencies[l]===!0)return;if(e.dependencies[l]===!1){n.push(i.errors.missingDependencyError({pointer:r}));return}let s;const o=pe(e.dependencies[l]);if(o==="array")s=e.dependencies[l].filter(a=>t[a]===void 0).map(a=>i.errors.missingDependencyError({missingProperty:a,pointer:r}));else if(o==="object")s=i.validate(t,e.dependencies[l],r);else throw new Error(`Invalid dependency definition for ${r}/${l}. Must be list or schema`);n.push(...s)}),n.length>0?n:void 0},enum:(i,e,t,r)=>{const n=pe(t);if(n==="object"||n==="array"){const l=JSON.stringify(t);for(let s=0;s<e.enum.length;s+=1)if(JSON.stringify(e.enum[s])===l)return}else if(e.enum.includes(t))return;return i.errors.enumError({values:e.enum,value:t,pointer:r})},format:(i,e,t,r)=>{if(i.validateFormat[e.format])return i.validateFormat[e.format](i,e,t,r)},items:(i,e,t,r)=>{if(e.items===!1)return Array.isArray(t)&&t.length===0?void 0:i.errors.invalidDataError({pointer:r,value:t});const n=[];for(let l=0;l<t.length;l+=1){const s=t[l],o=i.step(l,e,t,r);if(je(o))return[o];const a=i.validate(s,o,`${r}/${l}`);n.push(...a)}return n},maximum:(i,e,t,r)=>{if(!isNaN(e.maximum)){if(e.maximum&&e.maximum<t)return i.errors.maximumError({maximum:e.maximum,length:t,pointer:r});if(e.maximum&&e.exclusiveMaximum===!0&&e.maximum===t)return i.errors.maximumError({maximum:e.maximum,length:t,pointer:r})}},maxItems:(i,e,t,r)=>{if(!isNaN(e.maxItems)&&e.maxItems<t.length)return i.errors.maxItemsError({maximum:e.maxItems,length:t.length,pointer:r})},maxLength:(i,e,t,r)=>{if(isNaN(e.maxLength))return;const n=Dr(t).length;if(e.maxLength<n)return i.errors.maxLengthError({maxLength:e.maxLength,length:n,pointer:r})},maxProperties:(i,e,t,r)=>{const n=Object.keys(t).length;if(isNaN(e.maxProperties)===!1&&e.maxProperties<n)return i.errors.maxPropertiesError({maxProperties:e.maxProperties,length:n,pointer:r})},minLength:(i,e,t,r)=>{if(isNaN(e.minLength))return;const n=Dr(t).length;if(e.minLength>n)return e.minLength===1?i.errors.minLengthOneError({minLength:e.minLength,length:n,pointer:r}):i.errors.minLengthError({minLength:e.minLength,length:n,pointer:r})},minimum:(i,e,t,r)=>{if(!isNaN(e.minimum)){if(e.minimum>t)return i.errors.minimumError({minimum:e.minimum,length:t,pointer:r});if(e.exclusiveMinimum===!0&&e.minimum===t)return i.errors.minimumError({minimum:e.minimum,length:t,pointer:r})}},minItems:(i,e,t,r)=>{if(!isNaN(e.minItems)&&e.minItems>t.length)return e.minItems===1?i.errors.minItemsOneError({minItems:e.minItems,length:t.length,pointer:r}):i.errors.minItemsError({minItems:e.minItems,length:t.length,pointer:r})},minProperties:(i,e,t,r)=>{if(isNaN(e.minProperties))return;const n=Object.keys(t).length;if(e.minProperties>n)return i.errors.minPropertiesError({minProperties:e.minProperties,length:n,pointer:r})},multipleOf:(i,e,t,r)=>{if(!isNaN(e.multipleOf)&&t*Qt%(e.multipleOf*Qt)/Qt!==0)return i.errors.multipleOfError({multipleOf:e.multipleOf,value:t,pointer:r})},not:(i,e,t,r)=>{const n=[];return i.validate(t,e.not,r).length===0&&n.push(i.errors.notError({value:t,not:e.not,pointer:r})),n},oneOf:(i,e,t,r)=>{if(Array.isArray(e.oneOf)!==!1&&(e=i.resolveOneOf(t,e,r),je(e)))return e},pattern:(i,e,t,r)=>{if(new RegExp(e.pattern,"u").test(t)===!1)return i.errors.patternError({pattern:e.pattern,description:e.patternExample||e.pattern,received:t,pointer:r})},patternProperties:(i,e,t,r)=>{const n=e.properties||{},l=e.patternProperties;if(pe(l)!=="object")return;const s=[],o=Object.keys(t),a=Object.keys(l).map(f=>({regex:new RegExp(f),patternSchema:l[f]}));return o.forEach(f=>{let u=!1;for(let c=0,d=a.length;c<d;c+=1)if(a[c].regex.test(f)){u=!0;const h=i.validate(t[f],a[c].patternSchema,`${r}/${f}`);h&&h.length>0&&s.push(...h)}n[f]||u===!1&&e.additionalProperties===!1&&s.push(i.errors.patternPropertiesError({key:f,pointer:r,patterns:Object.keys(l).join(",")}))}),s},properties:(i,e,t,r)=>{const n=[],l=Object.keys(e.properties||{});for(let s=0;s<l.length;s+=1){const o=l[s];if(Cr(t,o)){const a=i.step(o,e,t,r),f=i.validate(t[o],a,`${r}/${o}`);n.push(...f)}}return n},propertiesRequired:(i,e,t,r)=>{const n=[],l=Object.keys(e.properties||{});for(let s=0;s<l.length;s+=1){const o=l[s];if(t[o]===void 0)n.push(i.errors.requiredPropertyError({key:o,pointer:r}));else{const a=i.step(o,e,t,r),f=i.validate(t[o],a,`${r}/${o}`);n.push(...f)}}return n},required:(i,e,t,r)=>{if(Array.isArray(e.required)!==!1)return e.required.map(n=>{if(!Cr(t,n))return i.errors.requiredPropertyError({key:n,pointer:r})})},requiredNotEmpty:(i,e,t,r)=>{if(Array.isArray(e.required)!==!1)return e.required.map(n=>{if(t[n]==null||t[n]==="")return i.errors.valueNotEmptyError({property:n,pointer:`${r}/${n}`})})},uniqueItems:(i,e,t,r)=>{if((Array.isArray(t)&&e.uniqueItems)===!1)return;const n=[];return t.forEach((l,s)=>{for(let o=s+1;o<t.length;o+=1)ln(l,t[o])&&n.push(i.errors.uniqueItemsError({pointer:r,itemPointer:`${r}/${s}`,duplicatePointer:`${r}/${o}`,value:JSON.stringify(l)}))}),n}},Bf={...qf,contains:(i,e,t,r)=>{if(e.contains===!1)return i.errors.containsArrayError({pointer:r,value:t});if(e.contains===!0)return Array.isArray(t)&&t.length===0?i.errors.containsAnyError({pointer:r}):void 0;if(pe(e.contains)==="object"){for(let n=0;n<t.length;n+=1)if(i.isValid(t[n],e.contains))return;return i.errors.containsError({pointer:r,schema:JSON.stringify(e.contains)})}},exclusiveMaximum:(i,e,t,r)=>{if(!isNaN(e.exclusiveMaximum)&&e.exclusiveMaximum<=t)return i.errors.maximumError({maximum:e.exclusiveMaximum,length:t,pointer:r})},exclusiveMinimum:(i,e,t,r)=>{if(!isNaN(e.exclusiveMinimum)&&e.exclusiveMinimum>=t)return i.errors.minimumError({minimum:e.exclusiveMinimum,length:t,pointer:r})},if:(i,e,t,r)=>{if(e.if==null)return;const n=i.validate(t,e.if,r);if(n.length===0&&e.then)return i.validate(t,e.then,r);if(n.length!==0&&e.else)return i.validate(t,e.else,r)},maximum:(i,e,t,r)=>{if(!isNaN(e.maximum)&&e.maximum&&e.maximum<t)return i.errors.maximumError({maximum:e.maximum,length:t,pointer:r})},minimum:(i,e,t,r)=>{if(!isNaN(e.minimum)&&e.minimum>t)return i.errors.minimumError({minimum:e.minimum,length:t,pointer:r})},patternProperties:(i,e,t,r)=>{const n=e.properties||{},l=e.patternProperties;if(pe(l)!=="object")return;const s=[],o=Object.keys(t),a=Object.keys(l).map(f=>({regex:new RegExp(f),patternSchema:l[f]}));return o.forEach(f=>{let u=!1;for(let c=0,d=a.length;c<d;c+=1)if(a[c].regex.test(f)){if(u=!0,a[c].patternSchema===!1){s.push(i.errors.patternPropertiesError({key:f,pointer:r,patterns:Object.keys(l).join(",")}));return}const h=i.validate(t[f],a[c].patternSchema,`${r}/${f}`);h&&h.length>0&&s.push(...h)}n[f]||u===!1&&e.additionalProperties===!1&&s.push(i.errors.patternPropertiesError({key:f,pointer:r,patterns:Object.keys(l).join(",")}))}),s},propertyNames:(i,e,t,r)=>{if(e.propertyNames===!1)return Object.keys(t).length===0?void 0:i.errors.invalidPropertyNameError({property:Object.keys(t),pointer:r,value:t});if(e.propertyNames===!0||pe(e.propertyNames)!=="object")return;const n=[],l=Object.keys(t),s={...e.propertyNames,type:"string"};return l.forEach(o=>{const a=i.validate(o,s,`${r}/${o}`);a.length>0&&n.push(i.errors.invalidPropertyNameError({property:o,pointer:r,validationError:a[0],value:t[o]}))}),n}};function xf(i,e,t=i.rootSchema,r="#"){let n=!1,l=dn(t);for(let s=0;s<t.anyOf.length;s+=1){const o=i.resolveRef(t.anyOf[s]);i.isValid(e,t.anyOf[s],r)&&(n=!0,l=Et(l,o))}return n===!1?ve.anyOfError({value:e,pointer:r,anyOf:JSON.stringify(t.anyOf)}):(delete l.anyOf,l)}function nt(i){const e={type:pe(i)};return e.type==="object"&&(e.properties={},Object.keys(i).forEach(t=>e.properties[t]=nt(i[t]))),e.type==="array"&&i.length===1?e.items=nt(i[0]):e.type==="array"&&(e.items=i.map(nt)),e}function Ff(i,e,t=i.rootSchema){const r=i.step(e,t,{},"#");return je(r)?r.code==="one-of-error"?r.data.oneOf.map(n=>i.resolveRef(n)):r:[r]}const zr={array:(i,e,t,r,n)=>{const l=pe(t.items);if(l==="object")return Array.isArray(t.items.oneOf)?i.resolveOneOf(r[e],t.items,n):Array.isArray(t.items.anyOf)?i.resolveAnyOf(r[e],t.items,n):Array.isArray(t.items.allOf)?i.resolveAllOf(r[e],t.items,n):i.resolveRef(t.items);if(l==="array"){if(t.items[e]===!0)return nt(r[e]);if(t.items[e]===!1)return ve.invalidDataError({key:e,value:r[e],pointer:n});if(t.items[e])return i.resolveRef(t.items[e]);if(t.additionalItems===!1)return ve.additionalItemsError({key:e,value:r[e],pointer:n});if(t.additionalItems===!0||t.additionalItems===void 0)return nt(r[e]);if(pe(t.additionalItems)==="object")return t.additionalItems;throw new Error(`Invalid schema ${JSON.stringify(t,null,4)} for ${JSON.stringify(r,null,4)}`)}return t.additionalItems!==!1&&r[e]?nt(r[e]):new Error(`Invalid array schema for ${e} at ${n}`)},object:(i,e,t,r,n)=>{if(Array.isArray(t.oneOf)){const o=i.resolveOneOf(r,t,n);if(t=Et(t,o),je(t))return t}if(Array.isArray(t.anyOf)&&(t=i.resolveAnyOf(r,t,n),je(t))||Array.isArray(t.allOf)&&(t=i.resolveAllOf(r,t,n),je(t)))return t;let l;if(t.properties&&t.properties[e]!==void 0){if(l=i.resolveRef(t.properties[e]),je(l))return l;if(l&&Array.isArray(l.oneOf)){let o=i.resolveOneOf(r[e],l,`${n}/${e}`);const a=l.oneOf.findIndex(f=>f===o);return o.variableSchema=!0,o.oneOfIndex=a,o.oneOfSchema=l,o}if(l)return l}const{dependencies:s}=t;if(pe(s)==="object"){const o=Object.keys(s).filter(a=>pe(s[a])==="object");for(let a=0,f=o.length;a<f;a+=1){const u=o[a],c=jt(i,e,s[u],r,`${n}/${u}`);if(!je(c))return c}}if(t.if&&(t.then||t.else)){const o=i.isValid(r,t.if);if(o&&t.then){const a=jt(i,e,t.then,r,n);if(typeof a.type=="string"&&a.type!=="error")return a}if(!o&&t.else){const a=jt(i,e,t.else,r,n);if(typeof a.type=="string"&&a.type!=="error")return a}}if(pe(t.patternProperties)==="object"){let o;const a=Object.keys(t.patternProperties);for(let f=0,u=a.length;f<u;f+=1)if(o=new RegExp(a[f]),o.test(e))return t.patternProperties[a[f]]}return pe(t.additionalProperties)==="object"?t.additionalProperties:t.additionalProperties===!0?nt(r[e]):ve.unknownPropertyError({property:e,value:r,pointer:`${n}`})}};function jt(i,e,t,r,n="#"){if(Array.isArray(t.type)){const o=pe(r);return t.type.includes(o)?zr[o](i,`${e}`,t,r,n):i.errors.typeError({value:r,pointer:n,expected:t.type,received:o})}const l=t.type||pe(r),s=zr[l];return s?s(i,`${e}`,t,r,n):new Error(`Unsupported schema type ${t.type} for key ${e}`)}const Zf={array:(i,e,t,r)=>i.typeKeywords.array.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),object:(i,e,t,r)=>i.typeKeywords.object.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),string:(i,e,t,r)=>i.typeKeywords.string.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),integer:(i,e,t,r)=>i.typeKeywords.number.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),number:(i,e,t,r)=>i.typeKeywords.number.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),boolean:(i,e,t,r)=>i.typeKeywords.boolean.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),null:(i,e,t,r)=>i.typeKeywords.null.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r))};var Hf=function i(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,l;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!i(e[n],t[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(l=Object.keys(e),r=l.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,l[n]))return!1;for(n=r;n--!==0;){var s=l[n];if(!i(e[s],t[s]))return!1}return!0}return e!==e&&t!==t};const Jf=Ut(Hf);function Wf(i,e){const t=pe(i);return t==="number"&&(e==="integer"||Array.isArray(e)&&e.includes("integer"))?Number.isInteger(i)||isNaN(i)?"integer":"number":t}function $f(i,e,t=i.rootSchema,r="#"){if(t=i.resolveRef(t),pe(t)==="boolean")return t?[]:[i.errors.invalidDataError({value:e,pointer:r})];if(je(t))return[t];if(t.const!==void 0)return Jf(t.const,e)?[]:[i.errors.constError({value:e,expected:t.const,pointer:r})];const n=Wf(e,t.type),l=t.type||n;return n!==l&&(!Array.isArray(l)||!l.includes(n))?[i.errors.typeError({received:n,expected:l,value:e,pointer:r})]:i.validateType[n]==null?[i.errors.invalidTypeError({receivedType:n,pointer:r})]:_t(i.validateType[n](i,t,e,r)).filter(Dt)}const Si={typeKeywords:{array:["allOf","anyOf","contains","enum","if","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["allOf","anyOf","enum","not","oneOf"],object:["additionalProperties","allOf","anyOf","dependencies","enum","format","if","maxProperties","minProperties","not","oneOf","patternProperties","properties","propertyNames","required"],string:["allOf","anyOf","enum","format","if","maxLength","minLength","not","oneOf","pattern"],number:["allOf","anyOf","enum","exclusiveMaximum","exclusiveMinimum","format","if","maximum","minimum","multipleOf","not","oneOf"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:Bf,validateType:Zf,validateFormat:Nf,errors:ve,addRemoteSchema:Da,compileSchema:bf,createSchemaOf:nt,each:Ef,eachSchema:yi,getChildSchemaSelection:Ff,getSchema:Na,getTemplate:Mf,isValid:Vf,resolveAllOf:Ta,resolveAnyOf:xf,resolveOneOf:fa,resolveRef:Aa,step:jt,validate:$f};class Kf extends La{constructor(e,t={}){super(Et(Si,t),e)}}({...Si});function Mr(i,e,t){const r=i.slice();return r[10]=e[t],r[11]=e,r[12]=t,r}function Vr(i){let e,t,r=i[12]+1+"",n,l,s,o,a,f,u,c,d;function h(A){i[7](A,i[12])}let k={path:i[1]+"/"+i[12],schema:i[3],rootValue:i[2],validationErrors:i[4],customComponents:i[5],required:!0};i[0][i[12]]!==void 0&&(k.value=i[0][i[12]]),o=new pn({props:k}),Ze.push(()=>We(o,"value",h));function _(){return i[8](i[12])}return c=new Bi({props:{size:"small",kind:"ghost",icon:xl,expressive:!1,iconDescription:"Remove",tooltipPosition:"top",tooltipAlignment:"end"}}),c.$on("click",_),{c(){e=U("div"),t=U("div"),n=ye(r),l=ae(),s=U("div"),W(o.$$.fragment),f=ae(),u=U("div"),W(c.$$.fragment),this.h()},l(A){e=q(A,"DIV",{class:!0});var y=M(e);t=q(y,"DIV",{class:!0});var b=M(t);n=we(b,r),b.forEach(m),l=fe(y),s=q(y,"DIV",{class:!0});var S=M(s);ie(o.$$.fragment,S),S.forEach(m),f=fe(y),u=q(y,"DIV",{class:!0});var P=M(u);ie(c.$$.fragment,P),P.forEach(m),y.forEach(m),this.h()},h(){C(t,"class","mt-3 w-8 shrink-0 text-lg"),C(s,"class","flex w-full grow flex-col"),C(u,"class","mt-3"),C(e,"class","flex w-full flex-row")},m(A,y){O(A,e,y),B(e,t),B(t,n),B(e,l),B(e,s),$(o,s,null),B(e,f),B(e,u),$(c,u,null),d=!0},p(A,y){i=A;const b={};y&2&&(b.path=i[1]+"/"+i[12]),y&8&&(b.schema=i[3]),y&4&&(b.rootValue=i[2]),y&16&&(b.validationErrors=i[4]),y&32&&(b.customComponents=i[5]),!a&&y&1&&(a=!0,b.value=i[0][i[12]],et(()=>a=!1)),o.$set(b)},i(A){d||(p(o.$$.fragment,A),p(c.$$.fragment,A),d=!0)},o(A){g(o.$$.fragment,A),g(c.$$.fragment,A),d=!1},d(A){A&&m(e),K(o),K(c)}}}function Qf(i){let e,t,r,n,l,s,o,a,f=i[0]||[],u=[];for(let d=0;d<f.length;d+=1)u[d]=Vr(Mr(i,f,d));const c=d=>g(u[d],1,1,()=>{u[d]=null});return{c(){e=U("div");for(let d=0;d<u.length;d+=1)u[d].c();t=ae(),r=U("div"),n=U("button"),l=ye("+ add"),this.h()},l(d){e=q(d,"DIV",{class:!0});var h=M(e);for(let A=0;A<u.length;A+=1)u[A].l(h);t=fe(h),r=q(h,"DIV",{});var k=M(r);n=q(k,"BUTTON",{class:!0});var _=M(n);l=we(_,"+ add"),_.forEach(m),k.forEach(m),h.forEach(m),this.h()},h(){var d;C(n,"class","bg-slate-600 p-2 text-white hover:bg-slate-400"),v(n,"ml-8",((d=i[0])==null?void 0:d.length)>0),C(e,"class","bx--form-item flex flex-col")},m(d,h){O(d,e,h);for(let k=0;k<u.length;k+=1)u[k]&&u[k].m(e,null);B(e,t),B(e,r),B(r,n),B(n,l),s=!0,o||(a=oe(n,"click",i[9]),o=!0)},p(d,[h]){var k;if(h&63){f=d[0]||[];let _;for(_=0;_<f.length;_+=1){const A=Mr(d,f,_);u[_]?(u[_].p(A,h),p(u[_],1)):(u[_]=Vr(A),u[_].c(),p(u[_],1),u[_].m(e,t))}for(X(),_=f.length;_<u.length;_+=1)c(_);ee()}(!s||h&1)&&v(n,"ml-8",((k=d[0])==null?void 0:k.length)>0)},i(d){if(!s){for(let h=0;h<f.length;h+=1)p(u[h]);s=!0}},o(d){u=u.filter(Boolean);for(let h=0;h<u.length;h+=1)g(u[h]);s=!1},d(d){d&&m(e),$e(u,d),o=!1,a()}}}function Gf(i,e,t){let r,{path:n}=e,{value:l=[]}=e,{rootValue:s}=e,{schema:o}=e,{validationErrors:a=[]}=e,{customComponents:f}=e;function u(h,k){i.$$.not_equal(l[k],h)&&(l[k]=h,t(0,l))}const c=h=>{l.splice(h,1),t(0,l)},d=()=>{t(0,l=[...l||[],r])};return i.$$set=h=>{"path"in h&&t(1,n=h.path),"value"in h&&t(0,l=h.value),"rootValue"in h&&t(2,s=h.rootValue),"schema"in h&&t(3,o=h.schema),"validationErrors"in h&&t(4,a=h.validationErrors),"customComponents"in h&&t(5,f=h.customComponents)},i.$$.update=()=>{i.$$.dirty&11&&t(6,r=o.getTemplate(void 0,o.getSchema(n+"/0",l)))},[l,n,s,o,a,f,r,u,c,d]}class Yf extends ce{constructor(e){super(),de(this,e,Gf,Qf,he,{path:1,value:0,rootValue:2,schema:3,validationErrors:4,customComponents:5})}}function Ur(i,e,t){const r=i.slice();return r[24]=e[t],r[25]=e,r[26]=t,r}function qr(i,e,t){const r=i.slice();return r[20]=e[t],r}function Xf(i){const e=i.slice(),t=Object.keys(e[10].properties??{});return e[23]=t,e}function Br(i){let e,t,r,n,l,s,o;const a=[tu,eu],f=[];function u(_,A){return _[10].type==="object"?0:1}e=u(i),t=f[e]=a[e](i);const c=[uu,fu,au,ou,su,lu,iu,ru,nu],d=[];function h(_,A){return _[8][_[2]]?0:_[10].type=="error"?1:_[10].enum?2:_[10].type=="string"?3:_[10].type=="number"?4:_[10].type=="boolean"?5:_[10].type=="array"?6:_[10].type=="object"?7:8}function k(_,A){return A===7?Xf(_):_}return n=h(i),l=d[n]=c[n](k(i,n)),{c(){t.c(),r=ae(),l.c(),s=x()},l(_){t.l(_),r=fe(_),l.l(_),s=x()},m(_,A){f[e].m(_,A),O(_,r,A),d[n].m(_,A),O(_,s,A),o=!0},p(_,A){let y=e;e=u(_),e===y?f[e].p(_,A):(X(),g(f[y],1,1,()=>{f[y]=null}),ee(),t=f[e],t?t.p(_,A):(t=f[e]=a[e](_),t.c()),p(t,1),t.m(r.parentNode,r));let b=n;n=h(_),n===b?d[n].p(k(_,n),A):(X(),g(d[b],1,1,()=>{d[b]=null}),ee(),l=d[n],l?l.p(k(_,n),A):(l=d[n]=c[n](k(_,n)),l.c()),p(l,1),l.m(s.parentNode,s))},i(_){o||(p(t),p(l),o=!0)},o(_){g(t),g(l),o=!1},d(_){f[e].d(_),_&&m(r),d[n].d(_),_&&m(s)}}}function eu(i){let e,t,r,n,l=i[10].description&&i[6]&&xr(i);return{c(){e=U("div"),t=ye(i[12]),r=ae(),l&&l.c(),n=x(),this.h()},l(s){e=q(s,"DIV",{class:!0});var o=M(e);t=we(o,i[12]),o.forEach(m),r=fe(s),l&&l.l(s),n=x(),this.h()},h(){C(e,"class","label text-s mb-2 font-medium text-gray-700")},m(s,o){O(s,e,o),B(e,t),O(s,r,o),l&&l.m(s,o),O(s,n,o)},p(s,o){o&4096&&Pe(t,s[12]),s[10].description&&s[6]?l?l.p(s,o):(l=xr(s),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i:ue,o:ue,d(s){s&&m(e),s&&m(r),l&&l.d(s),s&&m(n)}}}function tu(i){let e,t,r=i[10].description&&i[6]&&Fr(i);return{c(){r&&r.c(),e=x()},l(n){r&&r.l(n),e=x()},m(n,l){r&&r.m(n,l),O(n,e,l),t=!0},p(n,l){n[10].description&&n[6]?r?(r.p(n,l),l&1088&&p(r,1)):(r=Fr(n),r.c(),p(r,1),r.m(e.parentNode,e)):r&&(X(),g(r,1,1,()=>{r=null}),ee())},i(n){t||(p(r),t=!0)},o(n){g(r),t=!1},d(n){r&&r.d(n),n&&m(e)}}}function xr(i){let e,t=i[10].description+"",r;return{c(){e=U("div"),r=ye(t),this.h()},l(n){e=q(n,"DIV",{class:!0});var l=M(e);r=we(l,t),l.forEach(m),this.h()},h(){C(e,"class","bx--label pb-2 text-xs text-gray-500")},m(n,l){O(n,e,l),B(e,r)},p(n,l){l&1024&&t!==(t=n[10].description+"")&&Pe(r,t)},d(n){n&&m(e)}}}function Fr(i){let e,t,r;return t=new ta({props:{source:i[10].description}}),{c(){e=U("div"),W(t.$$.fragment),this.h()},l(n){e=q(n,"DIV",{class:!0});var l=M(e);ie(t.$$.fragment,l),l.forEach(m),this.h()},h(){C(e,"class","description mb-4")},m(n,l){O(n,e,l),$(t,e,null),r=!0},p(n,l){const s={};l&1024&&(s.source=n[10].description),t.$set(s)},i(n){r||(p(t.$$.fragment,n),r=!0)},o(n){g(t.$$.fragment,n),r=!1},d(n){n&&m(e),K(t)}}}function nu(i){let e,t=JSON.stringify(i[10])+"",r;return{c(){e=ye("Unknown property: "),r=ye(t)},l(n){e=we(n,"Unknown property: "),r=we(n,t)},m(n,l){O(n,e,l),O(n,r,l)},p(n,l){l&1024&&t!==(t=JSON.stringify(n[10])+"")&&Pe(r,t)},i:ue,o:ue,d(n){n&&m(e),n&&m(r)}}}function ru(i){let e,t,r=i[23],n=[];for(let s=0;s<r.length;s+=1)n[s]=Zr(Ur(i,r,s));const l=s=>g(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=x()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=x()},m(s,o){for(let a=0;a<n.length;a+=1)n[a]&&n[a].m(s,o);O(s,e,o),t=!0},p(s,o){if(o&1463){r=s[23];let a;for(a=0;a<r.length;a+=1){const f=Ur(s,r,a);n[a]?(n[a].p(f,o),p(n[a],1)):(n[a]=Zr(f),n[a].c(),p(n[a],1),n[a].m(e.parentNode,e))}for(X(),a=r.length;a<n.length;a+=1)l(a);ee()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)p(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)g(n[o]);t=!1},d(s){$e(n,s),s&&m(e)}}}function iu(i){let e,t,r;function n(s){i[18](s)}let l={path:i[2],schema:i[1],validationErrors:i[7],customComponents:i[8],rootValue:i[4]};return i[0]!==void 0&&(l.value=i[0]),e=new Yf({props:l}),Ze.push(()=>We(e,"value",n)),{c(){W(e.$$.fragment)},l(s){ie(e.$$.fragment,s)},m(s,o){$(e,s,o),r=!0},p(s,o){const a={};o&4&&(a.path=s[2]),o&2&&(a.schema=s[1]),o&128&&(a.validationErrors=s[7]),o&256&&(a.customComponents=s[8]),o&16&&(a.rootValue=s[4]),!t&&o&1&&(t=!0,a.value=s[0],et(()=>t=!1)),e.$set(a)},i(s){r||(p(e.$$.fragment,s),r=!0)},o(s){g(e.$$.fragment,s),r=!1},d(s){K(e,s)}}}function lu(i){let e,t,r,n;function l(o){i[17](o)}let s={labelA:"False",labelB:"True",labelText:i[12],hideLabel:!0};return i[0]!==void 0&&(s.toggled=i[0]),t=new xi({props:s}),Ze.push(()=>We(t,"toggled",l)),{c(){e=U("div"),W(t.$$.fragment)},l(o){e=q(o,"DIV",{});var a=M(e);ie(t.$$.fragment,a),a.forEach(m)},m(o,a){O(o,e,a),$(t,e,null),n=!0},p(o,a){const f={};a&4096&&(f.labelText=o[12]),!r&&a&1&&(r=!0,f.toggled=o[0],et(()=>r=!1)),t.$set(f)},i(o){n||(p(t.$$.fragment,o),n=!0)},o(o){g(t.$$.fragment,o),n=!1},d(o){o&&m(e),K(t)}}}function su(i){let e,t,r;function n(s){i[16](s)}let l={name:i[2],label:i[12],hideLabel:!0,invalid:!i[0]&&i[3]};return i[0]!==void 0&&(l.value=i[0]),e=new Tl({props:l}),Ze.push(()=>We(e,"value",n)),{c(){W(e.$$.fragment)},l(s){ie(e.$$.fragment,s)},m(s,o){$(e,s,o),r=!0},p(s,o){const a={};o&4&&(a.name=s[2]),o&4096&&(a.label=s[12]),o&9&&(a.invalid=!s[0]&&s[3]),!t&&o&1&&(t=!0,a.value=s[0],et(()=>t=!1)),e.$set(a)},i(s){r||(p(e.$$.fragment,s),r=!0)},o(s){g(e.$$.fragment,s),r=!1},d(s){K(e,s)}}}function ou(i){let e,t,r;function n(s){i[15](s)}let l={name:i[2],invalid:!!i[9].length,invalidText:i[11],labelText:i[12],hideLabel:!0,placeholder:i[3]?"":"(optional)"};return i[0]!==void 0&&(l.value=i[0]),e=new Ml({props:l}),Ze.push(()=>We(e,"value",n)),{c(){W(e.$$.fragment)},l(s){ie(e.$$.fragment,s)},m(s,o){$(e,s,o),r=!0},p(s,o){const a={};o&4&&(a.name=s[2]),o&512&&(a.invalid=!!s[9].length),o&2048&&(a.invalidText=s[11]),o&4096&&(a.labelText=s[12]),o&8&&(a.placeholder=s[3]?"":"(optional)"),!t&&o&1&&(t=!0,a.value=s[0],et(()=>t=!1)),e.$set(a)},i(s){r||(p(e.$$.fragment,s),r=!0)},o(s){g(e.$$.fragment,s),r=!1},d(s){K(e,s)}}}function au(i){let e,t,r;function n(s){i[14](s)}let l={name:i[2],labelText:i[12],hideLabel:!0,$$slots:{default:[cu]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.selected=i[0]),e=new Ki({props:l}),Ze.push(()=>We(e,"selected",n)),{c(){W(e.$$.fragment)},l(s){ie(e.$$.fragment,s)},m(s,o){$(e,s,o),r=!0},p(s,o){const a={};o&4&&(a.name=s[2]),o&4096&&(a.labelText=s[12]),o&134218760&&(a.$$scope={dirty:o,ctx:s}),!t&&o&1&&(t=!0,a.selected=s[0],et(()=>t=!1)),e.$set(a)},i(s){r||(p(e.$$.fragment,s),r=!0)},o(s){g(e.$$.fragment,s),r=!1},d(s){K(e,s)}}}function fu(i){let e,t=i[10].message+"",r;return{c(){e=U("div"),r=ye(t),this.h()},l(n){e=q(n,"DIV",{class:!0});var l=M(e);r=we(l,t),l.forEach(m),this.h()},h(){C(e,"class","text-red-600")},m(n,l){O(n,e,l),B(e,r)},p(n,l){l&1024&&t!==(t=n[10].message+"")&&Pe(r,t)},i:ue,o:ue,d(n){n&&m(e)}}}function uu(i){let e,t,r,n;function l(a){i[13](a)}var s=i[8][i[2]];function o(a){let f={rootValue:a[4],invalid:!!a[9].length,invalidText:a[11]};return a[0]!==void 0&&(f.value=a[0]),{props:f}}return s&&(e=Se(s,o(i)),Ze.push(()=>We(e,"value",l))),{c(){e&&W(e.$$.fragment),r=x()},l(a){e&&ie(e.$$.fragment,a),r=x()},m(a,f){e&&$(e,a,f),O(a,r,f),n=!0},p(a,f){const u={};if(f&16&&(u.rootValue=a[4]),f&512&&(u.invalid=!!a[9].length),f&2048&&(u.invalidText=a[11]),!t&&f&1&&(t=!0,u.value=a[0],et(()=>t=!1)),f&260&&s!==(s=a[8][a[2]])){if(e){X();const c=e;g(c.$$.fragment,1,0,()=>{K(c,1)}),ee()}s?(e=Se(s,o(a)),Ze.push(()=>We(e,"value",l)),W(e.$$.fragment),p(e.$$.fragment,1),$(e,r.parentNode,r)):e=null}else s&&e.$set(u)},i(a){n||(e&&p(e.$$.fragment,a),n=!0)},o(a){e&&g(e.$$.fragment,a),n=!1},d(a){a&&m(r),e&&K(e,a)}}}function Zr(i){var a;let e,t,r,n,l;function s(f){i[19](f,i[24])}let o={path:i[2]+"/"+i[24],schema:i[1],hiddenProperties:i[5],validationErrors:i[7],customComponents:i[8],rootValue:i[4],required:(a=i[10].required)==null?void 0:a.includes(i[24])};return i[0][i[24]]!==void 0&&(o.value=i[0][i[24]]),t=new pn({props:o}),Ze.push(()=>We(t,"value",s)),{c(){e=U("div"),W(t.$$.fragment),n=ae(),this.h()},l(f){e=q(f,"DIV",{class:!0});var u=M(e);ie(t.$$.fragment,u),n=fe(u),u.forEach(m),this.h()},h(){C(e,"class","mt-4 border-gray-300"),v(e,"border-b",i[26]<i[23].length-1)},m(f,u){O(f,e,u),$(t,e,null),B(e,n),l=!0},p(f,u){var d;i=f;const c={};u&1028&&(c.path=i[2]+"/"+i[24]),u&2&&(c.schema=i[1]),u&32&&(c.hiddenProperties=i[5]),u&128&&(c.validationErrors=i[7]),u&256&&(c.customComponents=i[8]),u&16&&(c.rootValue=i[4]),u&1024&&(c.required=(d=i[10].required)==null?void 0:d.includes(i[24])),!r&&u&1025&&(r=!0,c.value=i[0][i[24]],et(()=>r=!1)),t.$set(c),(!l||u&1024)&&v(e,"border-b",i[26]<i[23].length-1)},i(f){l||(p(t.$$.fragment,f),l=!0)},o(f){g(t.$$.fragment,f),l=!1},d(f){f&&m(e),K(t)}}}function Hr(i){let e,t;return e=new Xr({props:{value:void 0,text:"None"}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){$(e,r,n),t=!0},p:ue,i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function Jr(i){let e,t;return e=new Xr({props:{value:i[20]}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){$(e,r,n),t=!0},p(r,n){const l={};n&1024&&(l.value=r[20]),e.$set(l)},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function cu(i){let e,t,r,n=!i[3]&&Hr(),l=i[10].enum,s=[];for(let a=0;a<l.length;a+=1)s[a]=Jr(qr(i,l,a));const o=a=>g(s[a],1,1,()=>{s[a]=null});return{c(){n&&n.c(),e=ae();for(let a=0;a<s.length;a+=1)s[a].c();t=x()},l(a){n&&n.l(a),e=fe(a);for(let f=0;f<s.length;f+=1)s[f].l(a);t=x()},m(a,f){n&&n.m(a,f),O(a,e,f);for(let u=0;u<s.length;u+=1)s[u]&&s[u].m(a,f);O(a,t,f),r=!0},p(a,f){if(a[3]?n&&(X(),g(n,1,1,()=>{n=null}),ee()):n?(n.p(a,f),f&8&&p(n,1)):(n=Hr(),n.c(),p(n,1),n.m(e.parentNode,e)),f&1024){l=a[10].enum;let u;for(u=0;u<l.length;u+=1){const c=qr(a,l,u);s[u]?(s[u].p(c,f),p(s[u],1)):(s[u]=Jr(c),s[u].c(),p(s[u],1),s[u].m(t.parentNode,t))}for(X(),u=l.length;u<s.length;u+=1)o(u);ee()}},i(a){if(!r){p(n);for(let f=0;f<l.length;f+=1)p(s[f]);r=!0}},o(a){g(n),s=s.filter(Boolean);for(let f=0;f<s.length;f+=1)g(s[f]);r=!1},d(a){n&&n.d(a),a&&m(e),$e(s,a),a&&m(t)}}}function du(i){var l;let e=!((l=i[5])!=null&&l.includes(i[2])),t,r,n=e&&Br(i);return{c(){n&&n.c(),t=x()},l(s){n&&n.l(s),t=x()},m(s,o){n&&n.m(s,o),O(s,t,o),r=!0},p(s,[o]){var a;o&36&&(e=!((a=s[5])!=null&&a.includes(s[2]))),e?n?(n.p(s,o),o&36&&p(n,1)):(n=Br(s),n.c(),p(n,1),n.m(t.parentNode,t)):n&&(X(),g(n,1,1,()=>{n=null}),ee())},i(s){r||(p(n),r=!0)},o(s){g(n),r=!1},d(s){n&&n.d(s),s&&m(t)}}}function hu(i,e,t){let r,n,l,{schema:s}=e,{path:o=""}=e,{required:a=!1}=e,{value:f}=e,{rootValue:u}=e,{hiddenProperties:c=[]}=e,{showDescription:d=!0}=e,{validationErrors:h=[]}=e,{customComponents:k}=e,_="";function A(L){f=L,t(0,f)}function y(L){f=L,t(0,f)}function b(L){f=L,t(0,f)}function S(L){f=L,t(0,f)}function P(L){f=L,t(0,f)}function T(L){f=L,t(0,f)}function R(L,z){i.$$.not_equal(f[z],L)&&(f[z]=L,t(0,f))}return i.$$set=L=>{"schema"in L&&t(1,s=L.schema),"path"in L&&t(2,o=L.path),"required"in L&&t(3,a=L.required),"value"in L&&t(0,f=L.value),"rootValue"in L&&t(4,u=L.rootValue),"hiddenProperties"in L&&t(5,c=L.hiddenProperties),"showDescription"in L&&t(6,d=L.showDescription),"validationErrors"in L&&t(7,h=L.validationErrors),"customComponents"in L&&t(8,k=L.customComponents)},i.$$.update=()=>{i.$$.dirty&1&&f===""&&t(0,f=void 0),i.$$.dirty&7&&t(10,r=s.getSchema(o,f)),i.$$.dirty&1032&&t(12,n=r.title?`${r.title} ${a?"*":""}`:""),i.$$.dirty&132&&t(9,l=h.filter(L=>{var z,Z,ne;return`${(z=L==null?void 0:L.data)==null?void 0:z.pointer}${(Z=L==null?void 0:L.data)!=null&&Z.key?"/"+((ne=L==null?void 0:L.data)==null?void 0:ne.key):""}`.replaceAll("#","")==o})),i.$$.dirty&512&&(l.length==0?t(11,_=""):l[0].code==="min-length-one-error"||l[0].code==="required-property-error"?t(11,_="Value is required"):t(11,_=l[0].message))},[f,s,o,a,u,c,d,h,k,l,r,_,n,A,y,b,S,P,T,R]}class pn extends ce{constructor(e){super(),de(this,e,hu,du,he,{schema:1,path:2,required:3,value:0,rootValue:4,hiddenProperties:5,showDescription:6,validationErrors:7,customComponents:8})}}function Wr(i){let e,t,r;function n(s){i[7](s)}let l={schema:i[5],hiddenProperties:i[2],showDescription:i[3],validationErrors:i[1],customComponents:i[4],rootValue:i[0]};return i[0]!==void 0&&(l.value=i[0]),e=new pn({props:l}),Ze.push(()=>We(e,"value",n)),{c(){W(e.$$.fragment)},l(s){ie(e.$$.fragment,s)},m(s,o){$(e,s,o),r=!0},p(s,o){const a={};o&32&&(a.schema=s[5]),o&4&&(a.hiddenProperties=s[2]),o&8&&(a.showDescription=s[3]),o&2&&(a.validationErrors=s[1]),o&16&&(a.customComponents=s[4]),o&1&&(a.rootValue=s[0]),!t&&o&1&&(t=!0,a.value=s[0],et(()=>t=!1)),e.$set(a)},i(s){r||(p(e.$$.fragment,s),r=!0)},o(s){g(e.$$.fragment,s),r=!1},d(s){K(e,s)}}}function mu(i){let e,t,r=i[5]&&Wr(i);return{c(){r&&r.c(),e=x()},l(n){r&&r.l(n),e=x()},m(n,l){r&&r.m(n,l),O(n,e,l),t=!0},p(n,[l]){n[5]?r?(r.p(n,l),l&32&&p(r,1)):(r=Wr(n),r.c(),p(r,1),r.m(e.parentNode,e)):r&&(X(),g(r,1,1,()=>{r=null}),ee())},i(n){t||(p(r),t=!0)},o(n){g(r),t=!1},d(n){r&&r.d(n),n&&m(e)}}}function pu(i,e,t){let r,{schema:n}=e,{value:l={}}=e,{hiddenProperties:s=[]}=e,{validationErrors:o=[]}=e,{showDescription:a=!0}=e,{customComponents:f={}}=e;function u(d){t(0,l=d.getTemplate(l,void 0,{addOptionalProps:!1}));for(const[h,k]of Object.entries(n.properties||{})){const _=k.default;_&&l[h]!=_&&t(0,l[h]=_,l)}}function c(d){l=d,t(0,l)}return i.$$set=d=>{"schema"in d&&t(6,n=d.schema),"value"in d&&t(0,l=d.value),"hiddenProperties"in d&&t(2,s=d.hiddenProperties),"validationErrors"in d&&t(1,o=d.validationErrors),"showDescription"in d&&t(3,a=d.showDescription),"customComponents"in d&&t(4,f=d.customComponents)},i.$$.update=()=>{i.$$.dirty&64&&t(5,r=typeof n=="object"?new Kf(n):null),i.$$.dirty&32&&r&&u(r),i.$$.dirty&33&&t(1,o=r?r.validate(l):[])},[l,o,s,a,f,r,n,c]}class Ju extends ce{constructor(e){super(),de(this,e,pu,mu,he,{schema:6,value:0,hiddenProperties:2,validationErrors:1,showDescription:3,customComponents:4})}}function Wu(i){return i!=null}function $u(i,e){return`/concepts#!/${i}/${e}`}function Ku(i,e){return`/datasets#!/${i}/${e}`}export{xl as C,Ae as D,Ou as I,Ju as J,wu as S,Ml as T,Ru as a,Lu as b,$u as c,Cu as d,zu as e,qu as f,Su as g,xu as h,Bu as i,Mu as j,Uu as k,Pu as l,Du as m,Wu as n,Ku as o,Zu as p,Tu as q,Fl as r,Ut as s,ta as t,Fu as u,Vu as v,Au as w,Iu as x,Nu as y,ju as z};