diff --git a/docs/cards.md b/docs/cards.md index 5bddab2b729..900384861cc 100644 --- a/docs/cards.md +++ b/docs/cards.md @@ -121,7 +121,7 @@ PATH_TO_CUSTOM_HTML = 'myhtml.html' class CustomCard(MetaflowCard): type = "custom_card" - def __init__(self, options={"no_header": True}, graph=None,components=[]): + def __init__(self, options={"no_header": True}, graph=None, components=[], flow=None, **kwargs): super().__init__() self._no_header = True self._graph = graph @@ -177,7 +177,7 @@ class CustomCard(MetaflowCard): HTML = "
{data}" - def __init__(self, options={"no_header": True}, graph=None,components=[]): + def __init__(self, options={"no_header": True}, graph=None, components=[], flow=None, **kwargs): super().__init__() self._no_header = True self._graph = graph @@ -276,7 +276,7 @@ class YCard(MetaflowCard): ALLOW_USER_COMPONENTS = True - def __init__(self, options={}, components=[], graph=None): + def __init__(self, options={}, components=[], graph=None, flow=None, **kwargs): self._components = components def render(self, task): diff --git a/metaflow/cards.py b/metaflow/cards.py index 8a8556fb83a..2497d4dd89c 100644 --- a/metaflow/cards.py +++ b/metaflow/cards.py @@ -8,6 +8,7 @@ Markdown, VegaChart, ProgressBar, + PythonCode, ) from metaflow.plugins.cards.card_modules.basic import ( DefaultCard, diff --git a/metaflow/plugins/cards/card_cli.py b/metaflow/plugins/cards/card_cli.py index 15f15f430fc..42a82fc478e 100644 --- a/metaflow/plugins/cards/card_cli.py +++ b/metaflow/plugins/cards/card_cli.py @@ -691,10 +691,15 @@ def create( try: if options is not None: mf_card = filtered_card( - options=options, components=component_arr, graph=graph_dict + options=options, + components=component_arr, + graph=graph_dict, + flow=ctx.obj.flow, ) else: - mf_card = filtered_card(components=component_arr, graph=graph_dict) + mf_card = filtered_card( + components=component_arr, graph=graph_dict, flow=ctx.obj.flow + ) except TypeError as e: if render_error_card: mf_card = None diff --git a/metaflow/plugins/cards/card_modules/basic.py b/metaflow/plugins/cards/card_modules/basic.py index f3cd4b688de..256375509f7 100644 --- a/metaflow/plugins/cards/card_modules/basic.py +++ b/metaflow/plugins/cards/card_modules/basic.py @@ -1,9 +1,10 @@ import base64 import json import os -from .card import MetaflowCard, MetaflowCardComponent +from .card import MetaflowCard, MetaflowCardComponent, with_default_component_id from .convert_to_native_type import TaskToDict import uuid +import inspect ABS_DIR_PATH = os.path.dirname(os.path.abspath(__file__)) RENDER_TEMPLATE_PATH = os.path.join(ABS_DIR_PATH, "base.html") @@ -236,9 +237,28 @@ def __init__(self, data=None): super().__init__(title=None, subtitle=None) self._data = data + @with_default_component_id def render(self): datadict = super().render() datadict["data"] = self._data + if self.component_id is not None: + datadict["id"] = self.component_id + return datadict + + +class PythonCodeComponent(DefaultComponent): + + type = "pythonCode" + + def __init__(self, data=None): + super().__init__(title=None, subtitle=None) + self._data = data + + def render(self): + datadict = super().render() + datadict["data"] = self._data + if self.component_id is not None: + datadict["id"] = self.component_id return datadict @@ -343,6 +363,7 @@ def __init__( graph=None, components=[], runtime=False, + flow=None, ): self._task = task self._only_repr = only_repr @@ -352,6 +373,7 @@ def __init__( self.final_component = None self.page_component = None self.runtime = runtime + self.flow = flow def render(self): """ @@ -475,6 +497,16 @@ def render(self): contents=[param_component], ).render() + step_func = getattr(self.flow, self._task.parent.id) + code_table = SectionComponent( + title="Task Code", + contents=[ + TableComponent( + data=[[PythonCodeComponent(inspect.getsource(step_func)).render()]] + ) + ], + ).render() + # Don't include parameter ids + "name" in the task artifacts artifactlist = [ task_data_dict["data"][k] @@ -500,6 +532,7 @@ def render(self): page_contents.extend( [ metadata_table, + code_table, parameter_table, artifact_section, ] @@ -546,7 +579,7 @@ class ErrorCard(MetaflowCard): RELOAD_POLICY = MetaflowCard.RELOAD_POLICY_ONCHANGE - def __init__(self, options={}, components=[], graph=None): + def __init__(self, options={}, components=[], graph=None, **kwargs): self._only_repr = True self._graph = None if graph is None else transform_flow_graph(graph) self._components = components @@ -602,9 +635,17 @@ class DefaultCardJSON(MetaflowCard): type = "default_json" - def __init__(self, options=dict(only_repr=True), components=[], graph=None): + def __init__( + self, + options=dict(only_repr=True), + components=[], + graph=None, + flow=None, + **kwargs + ): self._only_repr = True self._graph = None if graph is None else transform_flow_graph(graph) + self._flow = flow if "only_repr" in options: self._only_repr = options["only_repr"] self._components = components @@ -615,6 +656,7 @@ def render(self, task): only_repr=self._only_repr, graph=self._graph, components=self._components, + flow=self._flow, ).render() return json.dumps(final_component_dict) @@ -629,9 +671,17 @@ class DefaultCard(MetaflowCard): type = "default" - def __init__(self, options=dict(only_repr=True), components=[], graph=None): + def __init__( + self, + options=dict(only_repr=True), + components=[], + graph=None, + flow=None, + **kwargs + ): self._only_repr = True self._graph = None if graph is None else transform_flow_graph(graph) + self._flow = flow if "only_repr" in options: self._only_repr = options["only_repr"] self._components = components @@ -646,6 +696,7 @@ def render(self, task, runtime=False): graph=self._graph, components=self._components, runtime=runtime, + flow=self._flow, ).render() pt = self._get_mustache() data_dict = dict( @@ -688,7 +739,7 @@ class BlankCard(MetaflowCard): type = "blank" - def __init__(self, options=dict(title=""), components=[], graph=None): + def __init__(self, options=dict(title=""), components=[], graph=None, **kwargs): self._graph = None if graph is None else transform_flow_graph(graph) self._title = "" if "title" in options: diff --git a/metaflow/plugins/cards/card_modules/card.py b/metaflow/plugins/cards/card_modules/card.py index e42e6f47adc..2f9d257e0c1 100644 --- a/metaflow/plugins/cards/card_modules/card.py +++ b/metaflow/plugins/cards/card_modules/card.py @@ -1,4 +1,5 @@ from typing import TYPE_CHECKING +import uuid if TYPE_CHECKING: import metaflow @@ -66,7 +67,7 @@ class MetaflowCard(object): # FIXME document runtime_data runtime_data = None - def __init__(self, options={}, components=[], graph=None): + def __init__(self, options={}, components=[], graph=None, flow=None): pass def _get_mustache(self): @@ -140,3 +141,17 @@ def render(self): `render` returns a string or dictionary. This class can be called on the client side to dynamically add components to the `MetaflowCard` """ raise NotImplementedError() + + +def create_component_id(component): + uuid_bit = "".join(uuid.uuid4().hex.split("-"))[:6] + return type(component).__name__.lower() + "_" + uuid_bit + + +def with_default_component_id(func): + def ret_func(self, *args, **kwargs): + if self.component_id is None: + self.component_id = create_component_id(self) + return func(self, *args, **kwargs) + + return ret_func diff --git a/metaflow/plugins/cards/card_modules/components.py b/metaflow/plugins/cards/card_modules/components.py index 9a0b5b37994..65685cc889a 100644 --- a/metaflow/plugins/cards/card_modules/components.py +++ b/metaflow/plugins/cards/card_modules/components.py @@ -1,4 +1,4 @@ -from typing import Any, List, Optional, Union +from typing import Any, List, Optional, Union, Callable from .basic import ( LogComponent, ErrorComponent, @@ -7,25 +7,13 @@ ImageComponent, SectionComponent, MarkdownComponent, + PythonCodeComponent, ) -from .card import MetaflowCardComponent +from .card import MetaflowCardComponent, with_default_component_id from .convert_to_native_type import TaskToDict, _full_classname from .renderer_tools import render_safely import uuid - - -def create_component_id(component): - uuid_bit = "".join(uuid.uuid4().hex.split("-"))[:6] - return type(component).__name__.lower() + "_" + uuid_bit - - -def with_default_component_id(func): - def ret_func(self, *args, **kwargs): - if self.component_id is None: - self.component_id = create_component_id(self) - return func(self, *args, **kwargs) - - return ret_func +import inspect def _warning_with_component(component, msg): @@ -823,3 +811,63 @@ def render(self): if self._chart_inside_table and "autosize" not in self._spec: data["spec"]["autosize"] = "fit-x" return data + + +class PythonCode(UserComponent): + """ + A component to display Python code with syntax highlighting. + + Example: + ```python + @card + @step + def my_step(self): + # Using code_func + def my_function(): + x = 1 + y = 2 + return x + y + current.card.append( + PythonCode(my_function) + ) + + # Using code_string + code = ''' + def another_function(): + return "Hello World" + ''' + current.card.append( + PythonCode(code_string=code) + ) + ``` + + Parameters + ---------- + code_func : Callable[..., Any], optional, default None + The function whose source code should be displayed. + code_string : str, optional, default None + A string containing Python code to display. + Either code_func or code_string must be provided. + """ + + def __init__( + self, + code_func: Optional[Callable[..., Any]] = None, + code_string: Optional[str] = None, + ): + if code_func is not None: + self._code_string = inspect.getsource(code_func) + else: + self._code_string = code_string + + @with_default_component_id + @render_safely + def render(self): + if self._code_string is None: + return ErrorComponent( + "`PythonCode` component requires a `code_func` or `code_string` argument. ", + "None provided for both", + ).render() + _code_component = PythonCodeComponent(self._code_string) + _code_component.component_id = self.component_id + return _code_component.render() diff --git a/metaflow/plugins/cards/card_modules/main.js b/metaflow/plugins/cards/card_modules/main.js index f06c7c53ff5..8d938d0ac32 100644 --- a/metaflow/plugins/cards/card_modules/main.js +++ b/metaflow/plugins/cards/card_modules/main.js @@ -1,11 +1,11 @@ -(function(re,Ge){typeof exports=="object"&&typeof module<"u"?module.exports=Ge():typeof define=="function"&&define.amd?define(Ge):(re=typeof globalThis<"u"?globalThis:re||self,re["Outerbounds Cards"]=Ge())})(this,function(){"use strict";var Z3e=Object.defineProperty;var K3e=(re,Ge,Gn)=>Ge in re?Z3e(re,Ge,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):re[Ge]=Gn;var Tt=(re,Ge,Gn)=>(K3e(re,typeof Ge!="symbol"?Ge+"":Ge,Gn),Gn),J3e=(re,Ge,Gn)=>{if(!Ge.has(re))throw TypeError("Cannot "+Gn)};var w5=(re,Ge,Gn)=>{if(Ge.has(re))throw TypeError("Cannot add the same private member more than once");Ge instanceof WeakSet?Ge.add(re):Ge.set(re,Gn)};var zm=(re,Ge,Gn)=>(J3e(re,Ge,"access private method"),Gn);var bh,k5,Im,lz,sz,oz;function re(){}function Ge(e,t){for(const n in t)e[n]=t[n];return e}function Gn(e){return e()}function $5(){return Object.create(null)}function Ll(e){e.forEach(Gn)}function E5(e){return typeof e=="function"}function he(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let vh;function xh(e,t){return e===t?!0:(vh||(vh=document.createElement("a")),vh.href=t,e===vh.href)}function uz(e){return Object.keys(e).length===0}function cz(e,...t){if(e==null){for(const i of t)i(void 0);return re}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function _h(e,t,n){e.$$.on_destroy.push(cz(t,n))}function ct(e,t,n,i){if(e){const r=C5(e,t,n,i);return e[0](r)}}function C5(e,t,n,i){return e[1]&&i?Ge(n.ctx.slice(),e[1](i(t))):n.ctx}function ft(e,t,n,i){if(e[2]&&i){const r=e[2](i(n));if(t.dirty===void 0)return r;if(typeof r=="object"){const s=[],o=Math.max(t.dirty.length,r.length);for(let a=0;a'+(i?t:cn(t,!0))+`
`:""+(i?t:cn(t,!0))+`
`}blockquote(t){return`@@ -46,31 +46,31 @@ ${t}${t} `}tablecell(t,n){const i=n.header?"th":"td";return(n.align?`<${i} align="${n.align}">`:`<${i}>`)+t+`${i}> `}strong(t){return`${t}`}em(t){return`${t}`}codespan(t){return`
${t}
`}br(){return this.options.xhtml?"An error occurred:
"+cn(r.message+"",!0)+"";if(n)return Promise.resolve(s);if(i){i(null,s);return}return s}if(n)return Promise.reject(r);if(i){i(r);return}throw r}};const da=new rB(to);function rt(e,t,n){return da.parse(e,t,n)}rt.options=rt.setOptions=function(e){return da.setOptions(e),rt.defaults=da.defaults,x6(rt.defaults),rt},rt.getDefaults=Xm,rt.defaults=to,rt.use=function(...e){return da.use(...e),rt.defaults=da.defaults,x6(rt.defaults),rt},rt.walkTokens=function(e,t){return da.walkTokens(e,t)},rt.parseInline=da.parseInline,rt.Parser=Dr,rt.parser=Dr.parse,rt.Renderer=Sh,rt.TextRenderer=Ym,rt.Lexer=Zi,rt.lexer=Zi.lex,rt.Tokenizer=Ch,rt.Slugger=Ah,rt.Hooks=Dc,rt.parse=rt,rt.options,rt.setOptions,rt.use,rt.walkTokens,rt.parseInline,Dr.parse,Zi.lex;const T6={};function sB(e){let t;return{c(){t=Be(e[1])},m(n,i){z(n,t,i)},p(n,i){i&2&&pt(t,n[1])},i:re,o:re,d(n){n&&L(t)}}}function oB(e){let t,n;const i=e[5].default,r=ct(i,e,e[4],null);return{c(){t=H("h6"),r&&r.c(),D(t,"id",e[2])},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&16)&&dt(r,i,s,s[4],n?ft(i,s[4],o,null):ht(s[4]),null),(!n||o&4)&&D(t,"id",s[2])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function aB(e){let t,n;const i=e[5].default,r=ct(i,e,e[4],null);return{c(){t=H("h5"),r&&r.c(),D(t,"id",e[2])},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&16)&&dt(r,i,s,s[4],n?ft(i,s[4],o,null):ht(s[4]),null),(!n||o&4)&&D(t,"id",s[2])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function lB(e){let t,n;const i=e[5].default,r=ct(i,e,e[4],null);return{c(){t=H("h4"),r&&r.c(),D(t,"id",e[2])},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&16)&&dt(r,i,s,s[4],n?ft(i,s[4],o,null):ht(s[4]),null),(!n||o&4)&&D(t,"id",s[2])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function uB(e){let t,n;const i=e[5].default,r=ct(i,e,e[4],null);return{c(){t=H("h3"),r&&r.c(),D(t,"id",e[2])},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&16)&&dt(r,i,s,s[4],n?ft(i,s[4],o,null):ht(s[4]),null),(!n||o&4)&&D(t,"id",s[2])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function cB(e){let t,n;const i=e[5].default,r=ct(i,e,e[4],null);return{c(){t=H("h2"),r&&r.c(),D(t,"id",e[2])},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&16)&&dt(r,i,s,s[4],n?ft(i,s[4],o,null):ht(s[4]),null),(!n||o&4)&&D(t,"id",s[2])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function fB(e){let t,n;const i=e[5].default,r=ct(i,e,e[4],null);return{c(){t=H("h1"),r&&r.c(),D(t,"id",e[2])},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&16)&&dt(r,i,s,s[4],n?ft(i,s[4],o,null):ht(s[4]),null),(!n||o&4)&&D(t,"id",s[2])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function dB(e){let t,n,i,r;const s=[fB,cB,uB,lB,aB,oB,sB],o=[];function a(l,u){return l[0]===1?0:l[0]===2?1:l[0]===3?2:l[0]===4?3:l[0]===5?4:l[0]===6?5:6}return t=a(e),n=o[t]=s[t](e),{c(){n.c(),i=Ae()},m(l,u){o[t].m(l,u),z(l,i,u),r=!0},p(l,[u]){let c=t;t=a(l),t===c?o[t].p(l,u):($e(),N(o[c],1,1,()=>{o[c]=null}),Ee(),n=o[t],n?n.p(l,u):(n=o[t]=s[t](l),n.c()),F(n,1),n.m(i.parentNode,i))},i(l){r||(F(n),r=!0)},o(l){N(n),r=!1},d(l){l&&L(i),o[t].d(l)}}}function hB(e,t,n){let i,{$$slots:r={},$$scope:s}=t,{depth:o}=t,{raw:a}=t,{text:l}=t;const{slug:u,getOptions:c}=D5(T6),f=c();return e.$$set=d=>{"depth"in d&&n(0,o=d.depth),"raw"in d&&n(1,a=d.raw),"text"in d&&n(3,l=d.text),"$$scope"in d&&n(4,s=d.$$scope)},e.$$.update=()=>{e.$$.dirty&8&&n(2,i=f.headerIds?f.headerPrefix+u(l):void 0)},[o,a,i,l,s,r]}class pB extends ve{constructor(t){super(),be(this,t,hB,dB,he,{depth:0,raw:1,text:3})}}function gB(e){let t,n;const i=e[1].default,r=ct(i,e,e[0],null);return{c(){t=H("p"),r&&r.c()},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&dt(r,i,s,s[0],n?ft(i,s[0],o,null):ht(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function mB(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class yB extends ve{constructor(t){super(),be(this,t,mB,gB,he,{})}}function bB(e){let t;const n=e[3].default,i=ct(n,e,e[2],null);return{c(){i&&i.c()},m(r,s){i&&i.m(r,s),t=!0},p(r,[s]){i&&i.p&&(!t||s&4)&&dt(i,n,r,r[2],t?ft(n,r[2],s,null):ht(r[2]),null)},i(r){t||(F(i,r),t=!0)},o(r){N(i,r),t=!1},d(r){i&&i.d(r)}}}function vB(e,t,n){let{$$slots:i={},$$scope:r}=t,{text:s}=t,{raw:o}=t;return e.$$set=a=>{"text"in a&&n(0,s=a.text),"raw"in a&&n(1,o=a.raw),"$$scope"in a&&n(2,r=a.$$scope)},[s,o,r,i]}let xB=class extends ve{constructor(t){super(),be(this,t,vB,bB,he,{text:0,raw:1})}};function _B(e){let t,n;return{c(){t=H("img"),xh(t.src,n=e[0])||D(t,"src",n),D(t,"title",e[1]),D(t,"alt",e[2])},m(i,r){z(i,t,r)},p(i,[r]){r&1&&!xh(t.src,n=i[0])&&D(t,"src",n),r&2&&D(t,"title",i[1]),r&4&&D(t,"alt",i[2])},i:re,o:re,d(i){i&&L(t)}}}function wB(e,t,n){let{href:i=""}=t,{title:r=void 0}=t,{text:s=""}=t;return e.$$set=o=>{"href"in o&&n(0,i=o.href),"title"in o&&n(1,r=o.title),"text"in o&&n(2,s=o.text)},[i,r,s]}let kB=class extends ve{constructor(t){super(),be(this,t,wB,_B,he,{href:0,title:1,text:2})}};function $B(e){let t,n;const i=e[3].default,r=ct(i,e,e[2],null);return{c(){t=H("a"),r&&r.c(),D(t,"href",e[0]),D(t,"title",e[1])},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&4)&&dt(r,i,s,s[2],n?ft(i,s[2],o,null):ht(s[2]),null),(!n||o&1)&&D(t,"href",s[0]),(!n||o&2)&&D(t,"title",s[1])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function EB(e,t,n){let{$$slots:i={},$$scope:r}=t,{href:s=""}=t,{title:o=void 0}=t;return e.$$set=a=>{"href"in a&&n(0,s=a.href),"title"in a&&n(1,o=a.title),"$$scope"in a&&n(2,r=a.$$scope)},[s,o,r,i]}class CB extends ve{constructor(t){super(),be(this,t,EB,$B,he,{href:0,title:1})}}function SB(e){let t,n;const i=e[1].default,r=ct(i,e,e[0],null);return{c(){t=H("em"),r&&r.c()},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&dt(r,i,s,s[0],n?ft(i,s[0],o,null):ht(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function AB(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class TB extends ve{constructor(t){super(),be(this,t,AB,SB,he,{})}}function MB(e){let t,n;const i=e[1].default,r=ct(i,e,e[0],null);return{c(){t=H("del"),r&&r.c()},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&dt(r,i,s,s[0],n?ft(i,s[0],o,null):ht(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function FB(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class DB extends ve{constructor(t){super(),be(this,t,FB,MB,he,{})}}function NB(e){let t,n=e[0].replace(/`/g,"")+"",i;return{c(){t=H("code"),i=Be(n)},m(r,s){z(r,t,s),X(t,i)},p(r,[s]){s&1&&n!==(n=r[0].replace(/`/g,"")+"")&&pt(i,n)},i:re,o:re,d(r){r&&L(t)}}}function OB(e,t,n){let{raw:i}=t;return e.$$set=r=>{"raw"in r&&n(0,i=r.raw)},[i]}class RB extends ve{constructor(t){super(),be(this,t,OB,NB,he,{raw:0})}}function LB(e){let t,n;const i=e[1].default,r=ct(i,e,e[0],null);return{c(){t=H("strong"),r&&r.c()},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&dt(r,i,s,s[0],n?ft(i,s[0],o,null):ht(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function IB(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class zB extends ve{constructor(t){super(),be(this,t,IB,LB,he,{})}}function PB(e){let t,n;const i=e[1].default,r=ct(i,e,e[0],null);return{c(){t=H("table"),r&&r.c()},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&dt(r,i,s,s[0],n?ft(i,s[0],o,null):ht(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function BB(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}let jB=class extends ve{constructor(t){super(),be(this,t,BB,PB,he,{})}};function UB(e){let t,n;const i=e[1].default,r=ct(i,e,e[0],null);return{c(){t=H("thead"),r&&r.c()},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&dt(r,i,s,s[0],n?ft(i,s[0],o,null):ht(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function qB(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class WB extends ve{constructor(t){super(),be(this,t,qB,UB,he,{})}}function HB(e){let t,n;const i=e[1].default,r=ct(i,e,e[0],null);return{c(){t=H("tbody"),r&&r.c()},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&dt(r,i,s,s[0],n?ft(i,s[0],o,null):ht(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function GB(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class VB extends ve{constructor(t){super(),be(this,t,GB,HB,he,{})}}function XB(e){let t,n;const i=e[1].default,r=ct(i,e,e[0],null);return{c(){t=H("tr"),r&&r.c()},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&dt(r,i,s,s[0],n?ft(i,s[0],o,null):ht(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function YB(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class ZB extends ve{constructor(t){super(),be(this,t,YB,XB,he,{})}}function KB(e){let t,n;const i=e[3].default,r=ct(i,e,e[2],null);return{c(){t=H("td"),r&&r.c(),D(t,"align",e[1])},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&4)&&dt(r,i,s,s[2],n?ft(i,s[2],o,null):ht(s[2]),null),(!n||o&2)&&D(t,"align",s[1])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function JB(e){let t,n;const i=e[3].default,r=ct(i,e,e[2],null);return{c(){t=H("th"),r&&r.c(),D(t,"align",e[1])},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&4)&&dt(r,i,s,s[2],n?ft(i,s[2],o,null):ht(s[2]),null),(!n||o&2)&&D(t,"align",s[1])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function QB(e){let t,n,i,r;const s=[JB,KB],o=[];function a(l,u){return l[0]?0:1}return t=a(e),n=o[t]=s[t](e),{c(){n.c(),i=Ae()},m(l,u){o[t].m(l,u),z(l,i,u),r=!0},p(l,[u]){let c=t;t=a(l),t===c?o[t].p(l,u):($e(),N(o[c],1,1,()=>{o[c]=null}),Ee(),n=o[t],n?n.p(l,u):(n=o[t]=s[t](l),n.c()),F(n,1),n.m(i.parentNode,i))},i(l){r||(F(n),r=!0)},o(l){N(n),r=!1},d(l){l&&L(i),o[t].d(l)}}}function ej(e,t,n){let{$$slots:i={},$$scope:r}=t,{header:s}=t,{align:o}=t;return e.$$set=a=>{"header"in a&&n(0,s=a.header),"align"in a&&n(1,o=a.align),"$$scope"in a&&n(2,r=a.$$scope)},[s,o,r,i]}class tj extends ve{constructor(t){super(),be(this,t,ej,QB,he,{header:0,align:1})}}function nj(e){let t,n;const i=e[3].default,r=ct(i,e,e[2],null);return{c(){t=H("ul"),r&&r.c()},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&4)&&dt(r,i,s,s[2],n?ft(i,s[2],o,null):ht(s[2]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function ij(e){let t,n;const i=e[3].default,r=ct(i,e,e[2],null);return{c(){t=H("ol"),r&&r.c(),D(t,"start",e[1])},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&4)&&dt(r,i,s,s[2],n?ft(i,s[2],o,null):ht(s[2]),null),(!n||o&2)&&D(t,"start",s[1])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function rj(e){let t,n,i,r;const s=[ij,nj],o=[];function a(l,u){return l[0]?0:1}return t=a(e),n=o[t]=s[t](e),{c(){n.c(),i=Ae()},m(l,u){o[t].m(l,u),z(l,i,u),r=!0},p(l,[u]){let c=t;t=a(l),t===c?o[t].p(l,u):($e(),N(o[c],1,1,()=>{o[c]=null}),Ee(),n=o[t],n?n.p(l,u):(n=o[t]=s[t](l),n.c()),F(n,1),n.m(i.parentNode,i))},i(l){r||(F(n),r=!0)},o(l){N(n),r=!1},d(l){l&&L(i),o[t].d(l)}}}function sj(e,t,n){let{$$slots:i={},$$scope:r}=t,{ordered:s}=t,{start:o}=t;return e.$$set=a=>{"ordered"in a&&n(0,s=a.ordered),"start"in a&&n(1,o=a.start),"$$scope"in a&&n(2,r=a.$$scope)},[s,o,r,i]}class oj extends ve{constructor(t){super(),be(this,t,sj,rj,he,{ordered:0,start:1})}}function aj(e){let t,n;const i=e[1].default,r=ct(i,e,e[0],null);return{c(){t=H("li"),r&&r.c()},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&dt(r,i,s,s[0],n?ft(i,s[0],o,null):ht(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function lj(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class uj extends ve{constructor(t){super(),be(this,t,lj,aj,he,{})}}function cj(e){let t;return{c(){t=H("hr")},m(n,i){z(n,t,i)},p:re,i:re,o:re,d(n){n&&L(t)}}}class fj extends ve{constructor(t){super(),be(this,t,null,cj,he,{})}}function dj(e){let t,n;return{c(){t=new gz(!1),n=Ae(),t.a=n},m(i,r){t.m(e[0],i,r),z(i,n,r)},p(i,[r]){r&1&&t.p(i[0])},i:re,o:re,d(i){i&&(L(n),t.d())}}}function hj(e,t,n){let{text:i}=t;return e.$$set=r=>{"text"in r&&n(0,i=r.text)},[i]}class pj extends ve{constructor(t){super(),be(this,t,hj,dj,he,{text:0})}}function gj(e){let t,n;const i=e[1].default,r=ct(i,e,e[0],null);return{c(){t=H("blockquote"),r&&r.c()},m(s,o){z(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&dt(r,i,s,s[0],n?ft(i,s[0],o,null):ht(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function mj(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class yj extends ve{constructor(t){super(),be(this,t,mj,gj,he,{})}}function bj(e){let t,n,i;return{c(){t=H("pre"),n=H("code"),i=Be(e[1]),D(t,"class",e[0])},m(r,s){z(r,t,s),X(t,n),X(n,i)},p(r,[s]){s&2&&pt(i,r[1]),s&1&&D(t,"class",r[0])},i:re,o:re,d(r){r&&L(t)}}}function vj(e,t,n){let{lang:i}=t,{text:r}=t;return e.$$set=s=>{"lang"in s&&n(0,i=s.lang),"text"in s&&n(1,r=s.text)},[i,r]}class xj extends ve{constructor(t){super(),be(this,t,vj,bj,he,{lang:0,text:1})}}function _j(e){let t,n;const i=e[1].default,r=ct(i,e,e[0],null);return{c(){t=H("br"),r&&r.c()},m(s,o){z(s,t,o),r&&r.m(s,o),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&dt(r,i,s,s[0],n?ft(i,s[0],o,null):ht(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function wj(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class kj extends ve{constructor(t){super(),be(this,t,wj,_j,he,{})}}const $j={heading:pB,paragraph:yB,text:xB,image:kB,link:CB,em:TB,strong:zB,codespan:RB,del:DB,table:jB,tablehead:WB,tablebody:VB,tablerow:ZB,tablecell:tj,list:oj,orderedlistitem:null,unorderedlistitem:null,listitem:uj,hr:fj,html:pj,blockquote:yj,code:xj,br:kj},Ej={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 Cj(e){let t,n;return t=new fa({props:{tokens:e[0],renderers:e[1]}}),{c(){ce(t.$$.fragment)},m(i,r){le(t,i,r),n=!0},p(i,[r]){const s={};r&1&&(s.tokens=i[0]),r&2&&(s.renderers=i[1]),t.$set(s)},i(i){n||(F(t.$$.fragment,i),n=!0)},o(i){N(t.$$.fragment,i),n=!1},d(i){ue(t,i)}}}function Sj(e,t,n){let i,r,s,o,{source:a=[]}=t,{renderers:l={}}=t,{options:u={}}=t,{isInline:c=!1}=t;const f=Bm();let d,h,p;return F5(T6,{slug:g=>r?r.slug(g):"",getOptions:()=>s}),Mc(()=>{n(7,p=!0)}),e.$$set=g=>{"source"in g&&n(2,a=g.source),"renderers"in g&&n(3,l=g.renderers),"options"in g&&n(4,u=g.options),"isInline"in g&&n(5,c=g.isInline)},e.$$.update=()=>{e.$$.dirty&4&&n(8,i=Array.isArray(a)),e.$$.dirty&4&&(r=a?new Ah:void 0),e.$$.dirty&16&&n(9,s={...Ej,...u}),e.$$.dirty&869&&(i?n(0,d=a):(n(6,h=new Zi(s)),n(0,d=c?h.inlineTokens(a):h.lex(a)),f("parsed",{tokens:d}))),e.$$.dirty&8&&n(1,o={...$j,...l}),e.$$.dirty&385&&p&&!i&&f("parsed",{tokens:d})},[d,o,a,l,u,c,h,p,i,s]}class Aj extends ve{constructor(t){super(),be(this,t,Sj,Cj,he,{source:2,renderers:3,options:4,isInline:5})}}function Tj(e){let t,n;return t=new Aj({props:{source:e[0].source}}),{c(){ce(t.$$.fragment)},m(i,r){le(t,i,r),n=!0},p(i,[r]){const s={};r&1&&(s.source=i[0].source),t.$set(s)},i(i){n||(F(t.$$.fragment,i),n=!0)},o(i){N(t.$$.fragment,i),n=!1},d(i){ue(t,i)}}}function Mj(e,t,n){let{componentData:i}=t;return e.$$set=r=>{"componentData"in r&&n(0,i=r.componentData)},[i]}class M6 extends ve{constructor(t){super(),be(this,t,Mj,Tj,he,{componentData:0})}}function Fj(e){let t,n,i;const r=e[2].default,s=ct(r,e,e[1],null);return{c(){var o;t=H("div"),s&&s.c(),D(t,"id",n=`page-${((o=e[0])==null?void 0:o.title)||"No Title"}`),D(t,"class","page svelte-v7ihqd"),D(t,"data-component","page")},m(o,a){z(o,t,a),s&&s.m(t,null),i=!0},p(o,[a]){var l;s&&s.p&&(!i||a&2)&&dt(s,r,o,o[1],i?ft(r,o[1],a,null):ht(o[1]),null),(!i||a&1&&n!==(n=`page-${((l=o[0])==null?void 0:l.title)||"No Title"}`))&&D(t,"id",n)},i(o){i||(F(s,o),i=!0)},o(o){N(s,o),i=!1},d(o){o&&L(t),s&&s.d(o)}}}function Dj(e,t,n){let{$$slots:i={},$$scope:r}=t,{componentData:s}=t;return e.$$set=o=>{"componentData"in o&&n(0,s=o.componentData),"$$scope"in o&&n(1,r=o.$$scope)},[s,r,i]}class Nj extends ve{constructor(t){super(),be(this,t,Dj,Fj,he,{componentData:0})}}function F6(e){let t,n,i=e[5]&&D6(e),r=e[4]&&N6(e);return{c(){t=H("div"),i&&i.c(),n=je(),r&&r.c(),D(t,"class","info svelte-ljrmzp")},m(s,o){z(s,t,o),i&&i.m(t,null),X(t,n),r&&r.m(t,null)},p(s,o){s[5]?i?i.p(s,o):(i=D6(s),i.c(),i.m(t,n)):i&&(i.d(1),i=null),s[4]?r?r.p(s,o):(r=N6(s),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(s){s&&L(t),i&&i.d(),r&&r.d()}}}function D6(e){let t,n,i,r,s;return{c(){t=H("label"),n=Be(e[5]),i=je(),r=H("span"),s=Be(e[3]),D(r,"class","labelValue svelte-ljrmzp"),D(t,"for",e[6]),D(t,"class","svelte-ljrmzp")},m(o,a){z(o,t,a),X(t,n),X(t,i),X(t,r),X(r,s)},p(o,a){a&32&&pt(n,o[5]),a&8&&pt(s,o[3]),a&64&&D(t,"for",o[6])},d(o){o&&L(t)}}}function N6(e){let t,n;return{c(){t=H("span"),n=Be(e[4]),D(t,"title",e[4]),D(t,"class","details svelte-ljrmzp")},m(i,r){z(i,t,r),X(t,n)},p(i,r){r&16&&pt(n,i[4]),r&16&&D(t,"title",i[4])},d(i){i&&L(t)}}}function Oj(e){let t,n,i,r,s,o=(e[0]||"")+"",a,l=(e[5]||e[4])&&F6(e);return{c(){t=H("div"),n=H("div"),l&&l.c(),i=je(),r=H("progress"),s=Be(e[1]),a=Be(o),D(r,"id",e[6]),D(r,"max",e[2]),r.value=e[1],D(r,"style","color: red !important"),D(r,"class","svelte-ljrmzp"),D(n,"class","inner svelte-ljrmzp"),D(t,"class","container svelte-ljrmzp")},m(u,c){z(u,t,c),X(t,n),l&&l.m(n,null),X(n,i),X(n,r),X(r,s),X(r,a)},p(u,[c]){u[5]||u[4]?l?l.p(u,c):(l=F6(u),l.c(),l.m(n,i)):l&&(l.d(1),l=null),c&2&&pt(s,u[1]),c&1&&o!==(o=(u[0]||"")+"")&&pt(a,o),c&64&&D(r,"id",u[6]),c&4&&D(r,"max",u[2]),c&2&&(r.value=u[1])},i:re,o:re,d(u){u&&L(t),l&&l.d()}}}function Rj(e,t,n){let i,r,s,o,a,l,{componentData:u}=t;s==null&&(s=0);let c=s.toString();return e.$$set=f=>{"componentData"in f&&n(7,u=f.componentData)},e.$$.update=()=>{e.$$.dirty&128&&n(2,{max:i,id:r,value:s,label:o,unit:a,details:l}=u,i,(n(6,r),n(7,u)),(n(1,s),n(7,u)),(n(5,o),n(7,u)),(n(0,a),n(7,u)),(n(4,l),n(7,u))),e.$$.dirty&7&&(i?n(3,c=`${s}/${i}`):a&&n(3,c=`${s} ${a}`))},[a,s,i,c,l,o,r,u]}class O6 extends ve{constructor(t){super(),be(this,t,Rj,Oj,he,{componentData:7})}}function R6(e){let t,n;return{c(){t=H("h3"),n=Be(e[3])},m(i,r){z(i,t,r),X(t,n)},p(i,r){r&8&&pt(n,i[3])},d(i){i&&L(t)}}}function L6(e){let t,n;return{c(){t=H("p"),n=Be(e[2]),D(t,"class","description")},m(i,r){z(i,t,r),X(t,n)},p(i,r){r&4&&pt(n,i[2])},d(i){i&&L(t)}}}function Lj(e){let t,n,i,r,s,o,a,l,u=e[3]&&R6(e),c=e[2]&&L6(e);const f=e[6].default,d=ct(f,e,e[5],null);return{c(){t=H("section"),n=H("div"),u&&u.c(),i=je(),c&&c.c(),r=je(),s=H("div"),d&&d.c(),o=je(),a=H("hr"),D(n,"class","heading svelte-17n0qr8"),D(s,"class","sectionItems svelte-17n0qr8"),D(s,"style",e[0]),D(a,"class","svelte-17n0qr8"),D(t,"class","container svelte-17n0qr8"),D(t,"data-component","section"),D(t,"data-section-id",e[3]),Vn(t,"columns",e[1])},m(h,p){z(h,t,p),X(t,n),u&&u.m(n,null),X(n,i),c&&c.m(n,null),X(t,r),X(t,s),d&&d.m(s,null),X(t,o),X(t,a),l=!0},p(h,[p]){h[3]?u?u.p(h,p):(u=R6(h),u.c(),u.m(n,i)):u&&(u.d(1),u=null),h[2]?c?c.p(h,p):(c=L6(h),c.c(),c.m(n,null)):c&&(c.d(1),c=null),d&&d.p&&(!l||p&32)&&dt(d,f,h,h[5],l?ft(f,h[5],p,null):ht(h[5]),null),(!l||p&1)&&D(s,"style",h[0]),(!l||p&8)&&D(t,"data-section-id",h[3]),(!l||p&2)&&Vn(t,"columns",h[1])},i(h){l||(F(d,h),l=!0)},o(h){N(d,h),l=!1},d(h){h&&L(t),u&&u.d(),c&&c.d(),d&&d.d(h)}}}function Ij(e,t,n){let i,r,s,{$$slots:o={},$$scope:a}=t,{componentData:l}=t,u;return s&&(u=`grid-template-columns: repeat(${s||1}, 1fr);`),e.$$set=c=>{"componentData"in c&&n(4,l=c.componentData),"$$scope"in c&&n(5,a=c.$$scope)},e.$$.update=()=>{e.$$.dirty&16&&n(3,{title:i,subtitle:r,columns:s}=l,i,(n(2,r),n(4,l)),(n(1,s),n(4,l)))},[u,s,r,i,l,a,o]}class zj extends ve{constructor(t){super(),be(this,t,Ij,Lj,he,{componentData:4})}}/*! +`+(h.tokens?this.parseInline(h.tokens):h.text);i+=n?this.renderer.paragraph(d):d;continue}default:{const $='Token with "'+h.type+'" type was not found.';if(this.options.silent){console.error($);return}else throw new Error($)}}}return i}parseInline(t,n){n=n||this.renderer;let i="",r,s,o;const a=t.length;for(r=0;r{i=i.concat(this.walkTokens(r[s],n))}):r.tokens&&(i=i.concat(this.walkTokens(r.tokens,n)))}return i}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{const r={...i};if(r.async=this.defaults.async||r.async||!1,i.extensions&&(i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if(s.renderer){const o=n.renderers[s.name];o?n.renderers[s.name]=function(...a){let l=s.renderer.apply(this,a);return l===!1&&(l=o.apply(this,a)),l}:n.renderers[s.name]=s.renderer}if(s.tokenizer){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");n[s.level]?n[s.level].unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),r.extensions=n),i.renderer){const s=this.defaults.renderer||new Sh(this.defaults);for(const o in i.renderer){const a=s[o];s[o]=(...l)=>{let u=i.renderer[o].apply(s,l);return u===!1&&(u=a.apply(s,l)),u}}r.renderer=s}if(i.tokenizer){const s=this.defaults.tokenizer||new Ch(this.defaults);for(const o in i.tokenizer){const a=s[o];s[o]=(...l)=>{let u=i.tokenizer[o].apply(s,l);return u===!1&&(u=a.apply(s,l)),u}}r.tokenizer=s}if(i.hooks){const s=this.defaults.hooks||new Dc;for(const o in i.hooks){const a=s[o];Dc.passThroughHooks.has(o)?s[o]=l=>{if(this.defaults.async)return Promise.resolve(i.hooks[o].call(s,l)).then(c=>a.call(s,c));const u=i.hooks[o].call(s,l);return a.call(s,u)}:s[o]=(...l)=>{let u=i.hooks[o].apply(s,l);return u===!1&&(u=a.apply(s,l)),u}}r.hooks=s}if(i.walkTokens){const s=this.defaults.walkTokens;r.walkTokens=function(o){let a=[];return a.push(i.walkTokens.call(this,o)),s&&(a=a.concat(s.call(this,o))),a}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}}bh=new WeakSet,k5=function(t,n){return(i,r,s)=>{typeof r=="function"&&(s=r,r=null);const o={...r};r={...this.defaults,...o};const a=zm(this,Im,uz).call(this,r.silent,r.async,s);if(typeof i>"u"||i===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(nB(r,s),r.hooks&&(r.hooks.options=r),s){const l=r.highlight;let u;try{r.hooks&&(i=r.hooks.preprocess(i)),u=t(i,r)}catch(d){return a(d)}const c=d=>{let h;if(!d)try{r.walkTokens&&this.walkTokens(u,r.walkTokens),h=n(u,r),r.hooks&&(h=r.hooks.postprocess(h))}catch(p){d=p}return r.highlight=l,d?a(d):s(null,h)};if(!l||l.length<3||(delete r.highlight,!u.length))return c();let f=0;this.walkTokens(u,d=>{d.type==="code"&&(f++,setTimeout(()=>{l(d.text,d.lang,(h,p)=>{if(h)return c(h);p!=null&&p!==d.text&&(d.text=p,d.escaped=!0),f--,f===0&&c()})},0))}),f===0&&c();return}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(i):i).then(l=>t(l,r)).then(l=>r.walkTokens?Promise.all(this.walkTokens(l,r.walkTokens)).then(()=>l):l).then(l=>n(l,r)).then(l=>r.hooks?r.hooks.postprocess(l):l).catch(a);try{r.hooks&&(i=r.hooks.preprocess(i));const l=t(i,r);r.walkTokens&&this.walkTokens(l,r.walkTokens);let u=n(l,r);return r.hooks&&(u=r.hooks.postprocess(u)),u}catch(l){return a(l)}}},Im=new WeakSet,uz=function(t,n,i){return r=>{if(r.message+=` +Please report this to https://github.com/markedjs/marked.`,t){const s="
An error occurred:
"+cn(r.message+"",!0)+"";if(n)return Promise.resolve(s);if(i){i(null,s);return}return s}if(n)return Promise.reject(r);if(i){i(r);return}throw r}};const da=new sB(to);function rt(e,t,n){return da.parse(e,t,n)}rt.options=rt.setOptions=function(e){return da.setOptions(e),rt.defaults=da.defaults,x6(rt.defaults),rt},rt.getDefaults=Xm,rt.defaults=to,rt.use=function(...e){return da.use(...e),rt.defaults=da.defaults,x6(rt.defaults),rt},rt.walkTokens=function(e,t){return da.walkTokens(e,t)},rt.parseInline=da.parseInline,rt.Parser=Dr,rt.parser=Dr.parse,rt.Renderer=Sh,rt.TextRenderer=Ym,rt.Lexer=Zi,rt.lexer=Zi.lex,rt.Tokenizer=Ch,rt.Slugger=Ah,rt.Hooks=Dc,rt.parse=rt,rt.options,rt.setOptions,rt.use,rt.walkTokens,rt.parseInline,Dr.parse,Zi.lex;const T6={};function oB(e){let t;return{c(){t=Oe(e[1])},m(n,i){I(n,t,i)},p(n,i){i&2&&at(t,n[1])},i:ie,o:ie,d(n){n&&L(t)}}}function aB(e){let t,n;const i=e[5].default,r=ft(i,e,e[4],null);return{c(){t=H("h6"),r&&r.c(),D(t,"id",e[2])},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&16)&&ht(r,i,s,s[4],n?dt(i,s[4],o,null):pt(s[4]),null),(!n||o&4)&&D(t,"id",s[2])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function lB(e){let t,n;const i=e[5].default,r=ft(i,e,e[4],null);return{c(){t=H("h5"),r&&r.c(),D(t,"id",e[2])},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&16)&&ht(r,i,s,s[4],n?dt(i,s[4],o,null):pt(s[4]),null),(!n||o&4)&&D(t,"id",s[2])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function uB(e){let t,n;const i=e[5].default,r=ft(i,e,e[4],null);return{c(){t=H("h4"),r&&r.c(),D(t,"id",e[2])},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&16)&&ht(r,i,s,s[4],n?dt(i,s[4],o,null):pt(s[4]),null),(!n||o&4)&&D(t,"id",s[2])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function cB(e){let t,n;const i=e[5].default,r=ft(i,e,e[4],null);return{c(){t=H("h3"),r&&r.c(),D(t,"id",e[2])},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&16)&&ht(r,i,s,s[4],n?dt(i,s[4],o,null):pt(s[4]),null),(!n||o&4)&&D(t,"id",s[2])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function fB(e){let t,n;const i=e[5].default,r=ft(i,e,e[4],null);return{c(){t=H("h2"),r&&r.c(),D(t,"id",e[2])},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&16)&&ht(r,i,s,s[4],n?dt(i,s[4],o,null):pt(s[4]),null),(!n||o&4)&&D(t,"id",s[2])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function dB(e){let t,n;const i=e[5].default,r=ft(i,e,e[4],null);return{c(){t=H("h1"),r&&r.c(),D(t,"id",e[2])},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&16)&&ht(r,i,s,s[4],n?dt(i,s[4],o,null):pt(s[4]),null),(!n||o&4)&&D(t,"id",s[2])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function hB(e){let t,n,i,r;const s=[dB,fB,cB,uB,lB,aB,oB],o=[];function a(l,u){return l[0]===1?0:l[0]===2?1:l[0]===3?2:l[0]===4?3:l[0]===5?4:l[0]===6?5:6}return t=a(e),n=o[t]=s[t](e),{c(){n.c(),i=Ae()},m(l,u){o[t].m(l,u),I(l,i,u),r=!0},p(l,[u]){let c=t;t=a(l),t===c?o[t].p(l,u):($e(),N(o[c],1,1,()=>{o[c]=null}),Ee(),n=o[t],n?n.p(l,u):(n=o[t]=s[t](l),n.c()),F(n,1),n.m(i.parentNode,i))},i(l){r||(F(n),r=!0)},o(l){N(n),r=!1},d(l){l&&L(i),o[t].d(l)}}}function pB(e,t,n){let i,{$$slots:r={},$$scope:s}=t,{depth:o}=t,{raw:a}=t,{text:l}=t;const{slug:u,getOptions:c}=D5(T6),f=c();return e.$$set=d=>{"depth"in d&&n(0,o=d.depth),"raw"in d&&n(1,a=d.raw),"text"in d&&n(3,l=d.text),"$$scope"in d&&n(4,s=d.$$scope)},e.$$.update=()=>{e.$$.dirty&8&&n(2,i=f.headerIds?f.headerPrefix+u(l):void 0)},[o,a,i,l,s,r]}class gB extends ge{constructor(t){super(),pe(this,t,pB,hB,he,{depth:0,raw:1,text:3})}}function mB(e){let t,n;const i=e[1].default,r=ft(i,e,e[0],null);return{c(){t=H("p"),r&&r.c()},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&ht(r,i,s,s[0],n?dt(i,s[0],o,null):pt(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function yB(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class bB extends ge{constructor(t){super(),pe(this,t,yB,mB,he,{})}}function vB(e){let t;const n=e[3].default,i=ft(n,e,e[2],null);return{c(){i&&i.c()},m(r,s){i&&i.m(r,s),t=!0},p(r,[s]){i&&i.p&&(!t||s&4)&&ht(i,n,r,r[2],t?dt(n,r[2],s,null):pt(r[2]),null)},i(r){t||(F(i,r),t=!0)},o(r){N(i,r),t=!1},d(r){i&&i.d(r)}}}function xB(e,t,n){let{$$slots:i={},$$scope:r}=t,{text:s}=t,{raw:o}=t;return e.$$set=a=>{"text"in a&&n(0,s=a.text),"raw"in a&&n(1,o=a.raw),"$$scope"in a&&n(2,r=a.$$scope)},[s,o,r,i]}let _B=class extends ge{constructor(t){super(),pe(this,t,xB,vB,he,{text:0,raw:1})}};function wB(e){let t,n;return{c(){t=H("img"),xh(t.src,n=e[0])||D(t,"src",n),D(t,"title",e[1]),D(t,"alt",e[2])},m(i,r){I(i,t,r)},p(i,[r]){r&1&&!xh(t.src,n=i[0])&&D(t,"src",n),r&2&&D(t,"title",i[1]),r&4&&D(t,"alt",i[2])},i:ie,o:ie,d(i){i&&L(t)}}}function kB(e,t,n){let{href:i=""}=t,{title:r=void 0}=t,{text:s=""}=t;return e.$$set=o=>{"href"in o&&n(0,i=o.href),"title"in o&&n(1,r=o.title),"text"in o&&n(2,s=o.text)},[i,r,s]}let $B=class extends ge{constructor(t){super(),pe(this,t,kB,wB,he,{href:0,title:1,text:2})}};function EB(e){let t,n;const i=e[3].default,r=ft(i,e,e[2],null);return{c(){t=H("a"),r&&r.c(),D(t,"href",e[0]),D(t,"title",e[1])},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&4)&&ht(r,i,s,s[2],n?dt(i,s[2],o,null):pt(s[2]),null),(!n||o&1)&&D(t,"href",s[0]),(!n||o&2)&&D(t,"title",s[1])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function CB(e,t,n){let{$$slots:i={},$$scope:r}=t,{href:s=""}=t,{title:o=void 0}=t;return e.$$set=a=>{"href"in a&&n(0,s=a.href),"title"in a&&n(1,o=a.title),"$$scope"in a&&n(2,r=a.$$scope)},[s,o,r,i]}class SB extends ge{constructor(t){super(),pe(this,t,CB,EB,he,{href:0,title:1})}}function AB(e){let t,n;const i=e[1].default,r=ft(i,e,e[0],null);return{c(){t=H("em"),r&&r.c()},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&ht(r,i,s,s[0],n?dt(i,s[0],o,null):pt(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function TB(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class MB extends ge{constructor(t){super(),pe(this,t,TB,AB,he,{})}}function FB(e){let t,n;const i=e[1].default,r=ft(i,e,e[0],null);return{c(){t=H("del"),r&&r.c()},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&ht(r,i,s,s[0],n?dt(i,s[0],o,null):pt(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function DB(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class NB extends ge{constructor(t){super(),pe(this,t,DB,FB,he,{})}}function OB(e){let t,n=e[0].replace(/`/g,"")+"",i;return{c(){t=H("code"),i=Oe(n)},m(r,s){I(r,t,s),V(t,i)},p(r,[s]){s&1&&n!==(n=r[0].replace(/`/g,"")+"")&&at(i,n)},i:ie,o:ie,d(r){r&&L(t)}}}function RB(e,t,n){let{raw:i}=t;return e.$$set=r=>{"raw"in r&&n(0,i=r.raw)},[i]}class LB extends ge{constructor(t){super(),pe(this,t,RB,OB,he,{raw:0})}}function IB(e){let t,n;const i=e[1].default,r=ft(i,e,e[0],null);return{c(){t=H("strong"),r&&r.c()},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&ht(r,i,s,s[0],n?dt(i,s[0],o,null):pt(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function zB(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class PB extends ge{constructor(t){super(),pe(this,t,zB,IB,he,{})}}function BB(e){let t,n;const i=e[1].default,r=ft(i,e,e[0],null);return{c(){t=H("table"),r&&r.c()},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&ht(r,i,s,s[0],n?dt(i,s[0],o,null):pt(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function jB(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}let UB=class extends ge{constructor(t){super(),pe(this,t,jB,BB,he,{})}};function qB(e){let t,n;const i=e[1].default,r=ft(i,e,e[0],null);return{c(){t=H("thead"),r&&r.c()},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&ht(r,i,s,s[0],n?dt(i,s[0],o,null):pt(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function WB(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class HB extends ge{constructor(t){super(),pe(this,t,WB,qB,he,{})}}function GB(e){let t,n;const i=e[1].default,r=ft(i,e,e[0],null);return{c(){t=H("tbody"),r&&r.c()},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&ht(r,i,s,s[0],n?dt(i,s[0],o,null):pt(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function VB(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class XB extends ge{constructor(t){super(),pe(this,t,VB,GB,he,{})}}function YB(e){let t,n;const i=e[1].default,r=ft(i,e,e[0],null);return{c(){t=H("tr"),r&&r.c()},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&ht(r,i,s,s[0],n?dt(i,s[0],o,null):pt(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function ZB(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class KB extends ge{constructor(t){super(),pe(this,t,ZB,YB,he,{})}}function JB(e){let t,n;const i=e[3].default,r=ft(i,e,e[2],null);return{c(){t=H("td"),r&&r.c(),D(t,"align",e[1])},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&4)&&ht(r,i,s,s[2],n?dt(i,s[2],o,null):pt(s[2]),null),(!n||o&2)&&D(t,"align",s[1])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function QB(e){let t,n;const i=e[3].default,r=ft(i,e,e[2],null);return{c(){t=H("th"),r&&r.c(),D(t,"align",e[1])},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&4)&&ht(r,i,s,s[2],n?dt(i,s[2],o,null):pt(s[2]),null),(!n||o&2)&&D(t,"align",s[1])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function ej(e){let t,n,i,r;const s=[QB,JB],o=[];function a(l,u){return l[0]?0:1}return t=a(e),n=o[t]=s[t](e),{c(){n.c(),i=Ae()},m(l,u){o[t].m(l,u),I(l,i,u),r=!0},p(l,[u]){let c=t;t=a(l),t===c?o[t].p(l,u):($e(),N(o[c],1,1,()=>{o[c]=null}),Ee(),n=o[t],n?n.p(l,u):(n=o[t]=s[t](l),n.c()),F(n,1),n.m(i.parentNode,i))},i(l){r||(F(n),r=!0)},o(l){N(n),r=!1},d(l){l&&L(i),o[t].d(l)}}}function tj(e,t,n){let{$$slots:i={},$$scope:r}=t,{header:s}=t,{align:o}=t;return e.$$set=a=>{"header"in a&&n(0,s=a.header),"align"in a&&n(1,o=a.align),"$$scope"in a&&n(2,r=a.$$scope)},[s,o,r,i]}class nj extends ge{constructor(t){super(),pe(this,t,tj,ej,he,{header:0,align:1})}}function ij(e){let t,n;const i=e[3].default,r=ft(i,e,e[2],null);return{c(){t=H("ul"),r&&r.c()},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&4)&&ht(r,i,s,s[2],n?dt(i,s[2],o,null):pt(s[2]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function rj(e){let t,n;const i=e[3].default,r=ft(i,e,e[2],null);return{c(){t=H("ol"),r&&r.c(),D(t,"start",e[1])},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,o){r&&r.p&&(!n||o&4)&&ht(r,i,s,s[2],n?dt(i,s[2],o,null):pt(s[2]),null),(!n||o&2)&&D(t,"start",s[1])},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function sj(e){let t,n,i,r;const s=[rj,ij],o=[];function a(l,u){return l[0]?0:1}return t=a(e),n=o[t]=s[t](e),{c(){n.c(),i=Ae()},m(l,u){o[t].m(l,u),I(l,i,u),r=!0},p(l,[u]){let c=t;t=a(l),t===c?o[t].p(l,u):($e(),N(o[c],1,1,()=>{o[c]=null}),Ee(),n=o[t],n?n.p(l,u):(n=o[t]=s[t](l),n.c()),F(n,1),n.m(i.parentNode,i))},i(l){r||(F(n),r=!0)},o(l){N(n),r=!1},d(l){l&&L(i),o[t].d(l)}}}function oj(e,t,n){let{$$slots:i={},$$scope:r}=t,{ordered:s}=t,{start:o}=t;return e.$$set=a=>{"ordered"in a&&n(0,s=a.ordered),"start"in a&&n(1,o=a.start),"$$scope"in a&&n(2,r=a.$$scope)},[s,o,r,i]}class aj extends ge{constructor(t){super(),pe(this,t,oj,sj,he,{ordered:0,start:1})}}function lj(e){let t,n;const i=e[1].default,r=ft(i,e,e[0],null);return{c(){t=H("li"),r&&r.c()},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&ht(r,i,s,s[0],n?dt(i,s[0],o,null):pt(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function uj(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class cj extends ge{constructor(t){super(),pe(this,t,uj,lj,he,{})}}function fj(e){let t;return{c(){t=H("hr")},m(n,i){I(n,t,i)},p:ie,i:ie,o:ie,d(n){n&&L(t)}}}class dj extends ge{constructor(t){super(),pe(this,t,null,fj,he,{})}}function hj(e){let t,n;return{c(){t=new mz(!1),n=Ae(),t.a=n},m(i,r){t.m(e[0],i,r),I(i,n,r)},p(i,[r]){r&1&&t.p(i[0])},i:ie,o:ie,d(i){i&&(L(n),t.d())}}}function pj(e,t,n){let{text:i}=t;return e.$$set=r=>{"text"in r&&n(0,i=r.text)},[i]}class gj extends ge{constructor(t){super(),pe(this,t,pj,hj,he,{text:0})}}function mj(e){let t,n;const i=e[1].default,r=ft(i,e,e[0],null);return{c(){t=H("blockquote"),r&&r.c()},m(s,o){I(s,t,o),r&&r.m(t,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&ht(r,i,s,s[0],n?dt(i,s[0],o,null):pt(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function yj(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class bj extends ge{constructor(t){super(),pe(this,t,yj,mj,he,{})}}function vj(e){let t,n,i;return{c(){t=H("pre"),n=H("code"),i=Oe(e[1]),D(t,"class",e[0])},m(r,s){I(r,t,s),V(t,n),V(n,i)},p(r,[s]){s&2&&at(i,r[1]),s&1&&D(t,"class",r[0])},i:ie,o:ie,d(r){r&&L(t)}}}function xj(e,t,n){let{lang:i}=t,{text:r}=t;return e.$$set=s=>{"lang"in s&&n(0,i=s.lang),"text"in s&&n(1,r=s.text)},[i,r]}class _j extends ge{constructor(t){super(),pe(this,t,xj,vj,he,{lang:0,text:1})}}function wj(e){let t,n;const i=e[1].default,r=ft(i,e,e[0],null);return{c(){t=H("br"),r&&r.c()},m(s,o){I(s,t,o),r&&r.m(s,o),n=!0},p(s,[o]){r&&r.p&&(!n||o&1)&&ht(r,i,s,s[0],n?dt(i,s[0],o,null):pt(s[0]),null)},i(s){n||(F(r,s),n=!0)},o(s){N(r,s),n=!1},d(s){s&&L(t),r&&r.d(s)}}}function kj(e,t,n){let{$$slots:i={},$$scope:r}=t;return e.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class $j extends ge{constructor(t){super(),pe(this,t,kj,wj,he,{})}}const Ej={heading:gB,paragraph:bB,text:_B,image:$B,link:SB,em:MB,strong:PB,codespan:LB,del:NB,table:UB,tablehead:HB,tablebody:XB,tablerow:KB,tablecell:nj,list:aj,orderedlistitem:null,unorderedlistitem:null,listitem:cj,hr:dj,html:gj,blockquote:bj,code:_j,br:$j},Cj={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 Sj(e){let t,n;return t=new fa({props:{tokens:e[0],renderers:e[1]}}),{c(){ce(t.$$.fragment)},m(i,r){le(t,i,r),n=!0},p(i,[r]){const s={};r&1&&(s.tokens=i[0]),r&2&&(s.renderers=i[1]),t.$set(s)},i(i){n||(F(t.$$.fragment,i),n=!0)},o(i){N(t.$$.fragment,i),n=!1},d(i){ue(t,i)}}}function Aj(e,t,n){let i,r,s,o,{source:a=[]}=t,{renderers:l={}}=t,{options:u={}}=t,{isInline:c=!1}=t;const f=Bm();let d,h,p;return F5(T6,{slug:g=>r?r.slug(g):"",getOptions:()=>s}),Mc(()=>{n(7,p=!0)}),e.$$set=g=>{"source"in g&&n(2,a=g.source),"renderers"in g&&n(3,l=g.renderers),"options"in g&&n(4,u=g.options),"isInline"in g&&n(5,c=g.isInline)},e.$$.update=()=>{e.$$.dirty&4&&n(8,i=Array.isArray(a)),e.$$.dirty&4&&(r=a?new Ah:void 0),e.$$.dirty&16&&n(9,s={...Cj,...u}),e.$$.dirty&869&&(i?n(0,d=a):(n(6,h=new Zi(s)),n(0,d=c?h.inlineTokens(a):h.lex(a)),f("parsed",{tokens:d}))),e.$$.dirty&8&&n(1,o={...Ej,...l}),e.$$.dirty&385&&p&&!i&&f("parsed",{tokens:d})},[d,o,a,l,u,c,h,p,i,s]}class Tj extends ge{constructor(t){super(),pe(this,t,Aj,Sj,he,{source:2,renderers:3,options:4,isInline:5})}}function Mj(e){let t,n;return t=new Tj({props:{source:e[0].source}}),{c(){ce(t.$$.fragment)},m(i,r){le(t,i,r),n=!0},p(i,[r]){const s={};r&1&&(s.source=i[0].source),t.$set(s)},i(i){n||(F(t.$$.fragment,i),n=!0)},o(i){N(t.$$.fragment,i),n=!1},d(i){ue(t,i)}}}function Fj(e,t,n){let{componentData:i}=t;return e.$$set=r=>{"componentData"in r&&n(0,i=r.componentData)},[i]}class M6 extends ge{constructor(t){super(),pe(this,t,Fj,Mj,he,{componentData:0})}}function Dj(e){let t,n,i;const r=e[2].default,s=ft(r,e,e[1],null);return{c(){var o;t=H("div"),s&&s.c(),D(t,"id",n=`page-${((o=e[0])==null?void 0:o.title)||"No Title"}`),D(t,"class","page svelte-v7ihqd"),D(t,"data-component","page")},m(o,a){I(o,t,a),s&&s.m(t,null),i=!0},p(o,[a]){var l;s&&s.p&&(!i||a&2)&&ht(s,r,o,o[1],i?dt(r,o[1],a,null):pt(o[1]),null),(!i||a&1&&n!==(n=`page-${((l=o[0])==null?void 0:l.title)||"No Title"}`))&&D(t,"id",n)},i(o){i||(F(s,o),i=!0)},o(o){N(s,o),i=!1},d(o){o&&L(t),s&&s.d(o)}}}function Nj(e,t,n){let{$$slots:i={},$$scope:r}=t,{componentData:s}=t;return e.$$set=o=>{"componentData"in o&&n(0,s=o.componentData),"$$scope"in o&&n(1,r=o.$$scope)},[s,r,i]}class Oj extends ge{constructor(t){super(),pe(this,t,Nj,Dj,he,{componentData:0})}}function F6(e){let t,n,i=e[5]&&D6(e),r=e[4]&&N6(e);return{c(){t=H("div"),i&&i.c(),n=je(),r&&r.c(),D(t,"class","info svelte-ljrmzp")},m(s,o){I(s,t,o),i&&i.m(t,null),V(t,n),r&&r.m(t,null)},p(s,o){s[5]?i?i.p(s,o):(i=D6(s),i.c(),i.m(t,n)):i&&(i.d(1),i=null),s[4]?r?r.p(s,o):(r=N6(s),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(s){s&&L(t),i&&i.d(),r&&r.d()}}}function D6(e){let t,n,i,r,s;return{c(){t=H("label"),n=Oe(e[5]),i=je(),r=H("span"),s=Oe(e[3]),D(r,"class","labelValue svelte-ljrmzp"),D(t,"for",e[6]),D(t,"class","svelte-ljrmzp")},m(o,a){I(o,t,a),V(t,n),V(t,i),V(t,r),V(r,s)},p(o,a){a&32&&at(n,o[5]),a&8&&at(s,o[3]),a&64&&D(t,"for",o[6])},d(o){o&&L(t)}}}function N6(e){let t,n;return{c(){t=H("span"),n=Oe(e[4]),D(t,"title",e[4]),D(t,"class","details svelte-ljrmzp")},m(i,r){I(i,t,r),V(t,n)},p(i,r){r&16&&at(n,i[4]),r&16&&D(t,"title",i[4])},d(i){i&&L(t)}}}function Rj(e){let t,n,i,r,s,o=(e[0]||"")+"",a,l=(e[5]||e[4])&&F6(e);return{c(){t=H("div"),n=H("div"),l&&l.c(),i=je(),r=H("progress"),s=Oe(e[1]),a=Oe(o),D(r,"id",e[6]),D(r,"max",e[2]),r.value=e[1],D(r,"style","color: red !important"),D(r,"class","svelte-ljrmzp"),D(n,"class","inner svelte-ljrmzp"),D(t,"class","container svelte-ljrmzp")},m(u,c){I(u,t,c),V(t,n),l&&l.m(n,null),V(n,i),V(n,r),V(r,s),V(r,a)},p(u,[c]){u[5]||u[4]?l?l.p(u,c):(l=F6(u),l.c(),l.m(n,i)):l&&(l.d(1),l=null),c&2&&at(s,u[1]),c&1&&o!==(o=(u[0]||"")+"")&&at(a,o),c&64&&D(r,"id",u[6]),c&4&&D(r,"max",u[2]),c&2&&(r.value=u[1])},i:ie,o:ie,d(u){u&&L(t),l&&l.d()}}}function Lj(e,t,n){let i,r,s,o,a,l,{componentData:u}=t;s==null&&(s=0);let c=s.toString();return e.$$set=f=>{"componentData"in f&&n(7,u=f.componentData)},e.$$.update=()=>{e.$$.dirty&128&&n(2,{max:i,id:r,value:s,label:o,unit:a,details:l}=u,i,(n(6,r),n(7,u)),(n(1,s),n(7,u)),(n(5,o),n(7,u)),(n(0,a),n(7,u)),(n(4,l),n(7,u))),e.$$.dirty&7&&(i?n(3,c=`${s}/${i}`):a&&n(3,c=`${s} ${a}`))},[a,s,i,c,l,o,r,u]}class O6 extends ge{constructor(t){super(),pe(this,t,Lj,Rj,he,{componentData:7})}}function R6(e){let t,n;return{c(){t=H("h3"),n=Oe(e[3])},m(i,r){I(i,t,r),V(t,n)},p(i,r){r&8&&at(n,i[3])},d(i){i&&L(t)}}}function L6(e){let t,n;return{c(){t=H("p"),n=Oe(e[2]),D(t,"class","description")},m(i,r){I(i,t,r),V(t,n)},p(i,r){r&4&&at(n,i[2])},d(i){i&&L(t)}}}function Ij(e){let t,n,i,r,s,o,a,l,u=e[3]&&R6(e),c=e[2]&&L6(e);const f=e[6].default,d=ft(f,e,e[5],null);return{c(){t=H("section"),n=H("div"),u&&u.c(),i=je(),c&&c.c(),r=je(),s=H("div"),d&&d.c(),o=je(),a=H("hr"),D(n,"class","heading svelte-17n0qr8"),D(s,"class","sectionItems svelte-17n0qr8"),D(s,"style",e[0]),D(a,"class","svelte-17n0qr8"),D(t,"class","container svelte-17n0qr8"),D(t,"data-component","section"),D(t,"data-section-id",e[3]),Vn(t,"columns",e[1])},m(h,p){I(h,t,p),V(t,n),u&&u.m(n,null),V(n,i),c&&c.m(n,null),V(t,r),V(t,s),d&&d.m(s,null),V(t,o),V(t,a),l=!0},p(h,[p]){h[3]?u?u.p(h,p):(u=R6(h),u.c(),u.m(n,i)):u&&(u.d(1),u=null),h[2]?c?c.p(h,p):(c=L6(h),c.c(),c.m(n,null)):c&&(c.d(1),c=null),d&&d.p&&(!l||p&32)&&ht(d,f,h,h[5],l?dt(f,h[5],p,null):pt(h[5]),null),(!l||p&1)&&D(s,"style",h[0]),(!l||p&8)&&D(t,"data-section-id",h[3]),(!l||p&2)&&Vn(t,"columns",h[1])},i(h){l||(F(d,h),l=!0)},o(h){N(d,h),l=!1},d(h){h&&L(t),u&&u.d(),c&&c.d(),d&&d.d(h)}}}function zj(e,t,n){let i,r,s,{$$slots:o={},$$scope:a}=t,{componentData:l}=t,u;return s&&(u=`grid-template-columns: repeat(${s||1}, 1fr);`),e.$$set=c=>{"componentData"in c&&n(4,l=c.componentData),"$$scope"in c&&n(5,a=c.$$scope)},e.$$.update=()=>{e.$$.dirty&16&&n(3,{title:i,subtitle:r,columns:s}=l,i,(n(2,r),n(4,l)),(n(1,s),n(4,l)))},[u,s,r,i,l,a,o]}class Pj extends ge{constructor(t){super(),pe(this,t,zj,Ij,he,{componentData:4})}}/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed - */var Pj=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var s in r)r.hasOwnProperty(s)&&(i[s]=r[s])},e(t,n)};return function(t,n){e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Bj=Object.prototype.hasOwnProperty;function Zm(e,t){return Bj.call(e,t)}function Km(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n
=p?b=!0:($=f.charCodeAt(g++))===Ic?v=!0:$===b2&&(v=!0,f.charCodeAt(g)===Ic&&++g),f.slice(w+1,k-1).replace(/""/g,'"')}for(;g
function(t){return t[e]},iU=e=>{const t=e.length;return function(n){for(let i=0;i =p?b=!0:($=f.charCodeAt(g++))===Ic?v=!0:$===b2&&(v=!0,f.charCodeAt(g)===Ic&&++g),f.slice(w+1,k-1).replace(/""/g,'"')}for(;g 1)i=kU(e,t,n);else for(r=0,i=new Array(s=e.arcs.length);r i&&(Le-ke)*(i-Ie)>(We-Ie)*(e-ke)&&++T:We<=i&&(Le-ke)*(i-Ie)<(We-Ie)*(e-ke)&&--T;return T}function E(){c=f,d=[],h=[],k=!0}function A(){var T=S(),O=k&&T,P=(d=A4(d)).length;(O||P)&&(u.polygonStart(),O&&(u.lineStart(),s(null,null,1,u),u.lineEnd()),P&&OS(d,a,T,s,u),u.polygonEnd()),c=u,d=h=p=null}function R(){w.point=M,h&&h.push(p=[]),_=!0,x=!1,b=v=NaN}function C(){d&&(M(g,m),y&&x&&f.rejoin(),d.push(f.result())),w.point=$,x&&c.lineEnd()}function M(T,O){var P=r(T,O);if(h&&p.push([T,O]),_)g=T,m=O,y=P,_=!1,P&&(c.lineStart(),c.point(T,O));else if(P&&x)c.point(T,O);else{var j=[b=Math.max(Yg,Math.min(jf,b)),v=Math.max(Yg,Math.min(jf,v))],W=[T=Math.max(Yg,Math.min(jf,T)),O=Math.max(Yg,Math.min(jf,O))];IJ(j,W,e,t,n,i)?(x||(c.lineStart(),c.point(j[0],j[1])),c.point(W[0],W[1]),P||c.lineEnd(),k=!1):P&&(c.lineStart(),c.point(T,O),k=!1)}b=T,v=O,x=P}return w}}function PS(e,t,n){var i=hi(e,t-_e,n).concat(t);return function(r){return i.map(function(s){return[r,s]})}}function BS(e,t,n){var i=hi(e,t-_e,n).concat(t);return function(r){return i.map(function(s){return[s,r]})}}function zJ(){var e,t,n,i,r,s,o,a,l=10,u=l,c=90,f=360,d,h,p,g,m=2.5;function y(){return{type:"MultiLineString",coordinates:b()}}function b(){return hi(Fg(i/c)*c,n,c).map(p).concat(hi(Fg(a/f)*f,o,f).map(g)).concat(hi(Fg(t/l)*l,e,l).filter(function(v){return qe(v%c)>_e}).map(d)).concat(hi(Fg(s/u)*u,r,u).filter(function(v){return qe(v%f)>_e}).map(h))}return y.lines=function(){return b().map(function(v){return{type:"LineString",coordinates:v}})},y.outline=function(){return{type:"Polygon",coordinates:[p(i).concat(g(o).slice(1),p(n).reverse().slice(1),g(a).reverse().slice(1))]}},y.extent=function(v){return arguments.length?y.extentMajor(v).extentMinor(v):y.extentMinor()},y.extentMajor=function(v){return arguments.length?(i=+v[0][0],n=+v[1][0],a=+v[0][1],o=+v[1][1],i>n&&(v=i,i=n,n=v),a>o&&(v=a,a=o,o=v),y.precision(m)):[[i,a],[n,o]]},y.extentMinor=function(v){return arguments.length?(t=+v[0][0],e=+v[1][0],s=+v[0][1],r=+v[1][1],t>e&&(v=t,t=e,e=v),s>r&&(v=s,s=r,r=v),y.precision(m)):[[t,s],[e,r]]},y.step=function(v){return arguments.length?y.stepMajor(v).stepMinor(v):y.stepMinor()},y.stepMajor=function(v){return arguments.length?(c=+v[0],f=+v[1],y):[c,f]},y.stepMinor=function(v){return arguments.length?(l=+v[0],u=+v[1],y):[l,u]},y.precision=function(v){return arguments.length?(m=+v,d=PS(s,r,90),h=BS(t,e,m),p=PS(a,o,90),g=BS(i,n,m),y):m},y.extentMajor([[-180,-90+_e],[180,90-_e]]).extentMinor([[-180,-80-_e],[180,80+_e]])}const Uf=e=>e;var dv=new Sn,hv=new Sn,jS,US,pv,gv,Lo={point:sn,lineStart:sn,lineEnd:sn,polygonStart:function(){Lo.lineStart=PJ,Lo.lineEnd=jJ},polygonEnd:function(){Lo.lineStart=Lo.lineEnd=Lo.point=sn,dv.add(qe(hv)),hv=new Sn},result:function(){var e=dv/2;return dv=new Sn,e}};function PJ(){Lo.point=BJ}function BJ(e,t){Lo.point=qS,jS=pv=e,US=gv=t}function qS(e,t){hv.add(gv*e-pv*t),pv=e,gv=t}function jJ(){qS(jS,US)}const WS=Lo;var Mu=1/0,Zg=Mu,qf=-Mu,Kg=qf,UJ={point:qJ,lineStart:sn,lineEnd:sn,polygonStart:sn,polygonEnd:sn,result:function(){var e=[[Mu,Zg],[qf,Kg]];return qf=Kg=-(Zg=Mu=1/0),e}};function qJ(e,t){e =u,Ds[m<<1].forEach(v);++h=s){r=o=s;break}if(i===n)return[-1,-1];for(a=l=i;++i{r.set(s,e[s])}),r}function s4(e,t,n,i,r,s){if(!n&&n!==0)return s;const o=+n;let a=e[0],l=Ue(e),u;ls&&(o=r,r=s,s=o),n=n===void 0||n,i=i===void 0||i,(n?r<=e:rt?1:e>=t?0:NaN}function $U(e,t){return e==null||t==null?NaN:tLt(o=>{if(o>=o)for(;e(o),!s(o);)o.setTime(o-1)},(o,a)=>{if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!s(o););else for(;--a>=0;)for(;t(o,1),!s(o););}),n&&(r.count=(s,o)=>(C2.setTime(+s),S2.setTime(+o),e(C2),e(S2),Math.floor(n(C2,S2))),r.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?r.filter(i?o=>i(o)%s===0:o=>r.count(0,o)%s===0):r)),r}const Zl=Lt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Zl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Lt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Zl),Zl.range;const bs=1e3,Mi=bs*60,vs=Mi*60,xs=vs*24,A2=xs*7,B4=xs*30,T2=xs*365,_s=Lt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*bs)},(e,t)=>(t-e)/bs,e=>e.getUTCSeconds());_s.range;const Wh=Lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bs)},(e,t)=>{e.setTime(+e+t*Mi)},(e,t)=>(t-e)/Mi,e=>e.getMinutes());Wh.range;const Hh=Lt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Mi)},(e,t)=>(t-e)/Mi,e=>e.getUTCMinutes());Hh.range;const Gh=Lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bs-e.getMinutes()*Mi)},(e,t)=>{e.setTime(+e+t*vs)},(e,t)=>(t-e)/vs,e=>e.getHours());Gh.range;const Vh=Lt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*vs)},(e,t)=>(t-e)/vs,e=>e.getUTCHours());Vh.range;const ws=Lt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Mi)/xs,e=>e.getDate()-1);ws.range;const lo=Lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/xs,e=>e.getUTCDate()-1);lo.range;const j4=Lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/xs,e=>Math.floor(e/xs));j4.range;function ya(e){return Lt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Mi)/A2)}const Kl=ya(0),Xh=ya(1),VU=ya(2),XU=ya(3),Jl=ya(4),YU=ya(5),ZU=ya(6);Kl.range,Xh.range,VU.range,XU.range,Jl.range,YU.range,ZU.range;function ba(e){return Lt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/A2)}const Ql=ba(0),Yh=ba(1),KU=ba(2),JU=ba(3),eu=ba(4),QU=ba(5),eq=ba(6);Ql.range,Yh.range,KU.range,JU.range,eu.range,QU.range,eq.range;const Bc=Lt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Bc.range;const jc=Lt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());jc.range;const Rr=Lt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Rr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Lt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),Rr.range;const Lr=Lt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Lr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Lt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),Lr.range;function U4(e,t,n,i,r,s){const o=[[_s,1,bs],[_s,5,5*bs],[_s,15,15*bs],[_s,30,30*bs],[s,1,Mi],[s,5,5*Mi],[s,15,15*Mi],[s,30,30*Mi],[r,1,vs],[r,3,3*vs],[r,6,6*vs],[r,12,12*vs],[i,1,xs],[i,2,2*xs],[n,1,A2],[t,1,B4],[t,3,3*B4],[e,1,T2]];function a(u,c,f){const d=cm).right(o,d);if(h===o.length)return e.every(ao(u/T2,c/T2,f));if(h===0)return Zl.every(Math.max(ao(u,c,f),1));const[p,g]=o[d/o[h-1][2]o&&(o=l))}),!Number.isFinite(s)||!Number.isFinite(o)){let a=Et(i);a&&(a=` for field "${a}"`),t.dataflow.warn(`Infinite extent${a}: [${s}, ${o}]`),s=o=void 0}this.value=[s,o]}});function Ty(e,t){gt.call(this,e),this.parent=t,this.count=0}K(Ty,gt,{connect(e){return this.detachSubflow=e.detachSubflow,this.targets().add(e),e.source=this},add(e){this.count+=1,this.value.add.push(e)},rem(e){this.count-=1,this.value.rem.push(e)},mod(e){this.value.mod.push(e)},init(e){this.value.init(e,e.NO_SOURCE)},evaluate(){return this.value}});function gp(e){I.call(this,{},e),this._keys=Gl();const t=this._targets=[];t.active=0,t.forEach=n=>{for(let i=0,r=t.active;i{const d=ty(f,u);for(let h=0;h$a)if(!(Math.abs(f*l-u*c)>$a)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let h=i-o,p=r-a,g=l*l+u*u,m=h*h+p*p,y=Math.sqrt(g),b=Math.sqrt(d),v=s*Math.tan((Vy-Math.acos((g+d-m)/(2*y*b)))/2),x=v/b,_=v/y;Math.abs(x-1)>$a&&this._append`L${t+x*c},${n+x*f}`,this._append`A${s},${s},0,0,${+(f*h>c*p)},${this._x1=t+_*l},${this._y1=n+_*u}`}}arc(t,n,i,r,s,o){if(t=+t,n=+n,i=+i,o=!!o,i<0)throw new Error(`negative radius: ${i}`);let a=i*Math.cos(r),l=i*Math.sin(r),u=t+a,c=n+l,f=1^o,d=o?r-s:s-r;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>$a||Math.abs(this._y1-c)>$a)&&this._append`L${u},${c}`,i&&(d<0&&(d=d%Xy+Xy),d>kG?this._append`A${i},${i},0,1,${f},${t-a},${n-l}A${i},${i},0,1,${f},${this._x1=u},${this._y1=c}`:d>$a&&this._append`A${i},${i},0,${+(d>=Vy)},${f},${this._x1=t+i*Math.cos(s)},${this._y1=n+i*Math.sin(s)}`)}rect(t,n,i,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${i=+i}v${+r}h${-i}Z`}toString(){return this._}};function bp(){return new Yy}bp.prototype=Yy.prototype;function vp(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);t=i}return e},()=>new Yy(t)}function EG(e){return e.innerRadius}function CG(e){return e.outerRadius}function SG(e){return e.startAngle}function AG(e){return e.endAngle}function TG(e){return e&&e.padAngle}function MG(e,t,n,i,r,s,o,a){var l=n-e,u=i-t,c=o-r,f=a-s,d=f*l-c*u;if(!(d*d=0;)if(i=t(n[r]))return i;if(n===s){for(n=e.items,r=n.length;--r>=0;)if(!n[r].zindex&&(i=t(n[r])))return i}return null}function s3(e){return function(t,n,i){nr(n,r=>{(!i||i.intersects(r.bounds))&&yE(e,t,r,r)})}}function SY(e){return function(t,n,i){n.items.length&&(!i||i.intersects(n.bounds))&&yE(e,t,n.items[0],n.items)}}function yE(e,t,n,i){var r=n.opacity==null?1:n.opacity;r!==0&&(e(t,i)||(wu(t,n),n.fill&&ng(t,n,r)&&t.fill(),n.stroke&&ku(t,n,r)&&t.stroke()))}function rg(e){return e=e||Ti,function(t,n,i,r,s,o){return i*=t.pixelRatio,r*=t.pixelRatio,ig(n,a=>{const l=a.bounds;if(!(l&&!l.contains(s,o)||!l)&&e(t,a,i,r,s,o))return a})}}function Ef(e,t){return function(n,i,r,s){var o=Array.isArray(i)?i[0]:i,a=t??o.fill,l=o.stroke&&n.isPointInStroke,u,c;return l&&(u=o.strokeWidth,c=o.strokeCap,n.lineWidth=u??1,n.lineCap=c??"butt"),e(n,i)?!1:a&&n.isPointInPath(r,s)||l&&n.isPointInStroke(r,s)}}function o3(e){return rg(Ef(e))}function Ia(e,t){return"translate("+e+","+t+")"}function a3(e){return"rotate("+e+")"}function AY(e,t){return"scale("+e+","+t+")"}function bE(e){return Ia(e.x||0,e.y||0)}function TY(e){return Ia(e.x||0,e.y||0)+(e.angle?" "+a3(e.angle):"")}function MY(e){return Ia(e.x||0,e.y||0)+(e.angle?" "+a3(e.angle):"")+(e.scaleX||e.scaleY?" "+AY(e.scaleX||1,e.scaleY||1):"")}function l3(e,t,n){function i(o,a){o("transform",TY(a)),o("d",t(null,a))}function r(o,a){return t($f(o,a.angle),a),Ss(o,a).translate(a.x||0,a.y||0)}function s(o,a){var l=a.x||0,u=a.y||0,c=a.angle||0;o.translate(l,u),c&&o.rotate(c*=_o),o.beginPath(),t(o,a),c&&o.rotate(-c),o.translate(-l,-u)}return{type:e,tag:"path",nested:!1,attr:i,bound:r,draw:s3(s),pick:o3(s),isect:n||n3(s)}}var FY=l3("arc",gY);function DY(e,t){for(var n=e[0].orient==="horizontal"?t[1]:t[0],i=e[0].orient==="horizontal"?"y":"x",r=e.length,s=1/0,o,a;--r>=0;)e[r].defined!==!1&&(a=Math.abs(e[r][i]-n),a=0;)if(e[i].defined!==!1&&(r=e[i].x-t[0],s=e[i].y-t[1],o=r*r+s*s,oo&&(u=a*Math.floor(o/a)),i=hi(l,u+a/2,a)}return i?e.bins=i:e.bins&&delete e.bins,e.type===Db&&(i?!t.domain&&!t.domainRaw&&(e.domain(i),n=i.length):e.bins=e.domain()),n}function oJ(e,t,n){var i=e.type,r=t.round||!1,s=t.range;if(t.rangeStep!=null)s=aJ(i,t,n);else if(t.scheme&&(s=lJ(i,t,n),Me(s))){if(e.interpolator)return e.interpolator(s);U(`Scale type ${i} does not support interpolating color schemes.`)}if(s&&F$(i))return e.interpolator(Wp(X3(s,t.reverse),t.interpolate,t.interpolateGamma));s&&t.interpolate&&e.interpolate?e.interpolate(Ib(t.interpolate,t.interpolateGamma)):Me(e.round)?e.round(r):Me(e.rangeRound)&&e.interpolate(r?hf:vo),s&&e.range(X3(s,t.reverse))}function aJ(e,t,n){e!==$$&&e!==Fb&&U("Only band and point scales support rangeStep.");var i=(t.paddingOuter!=null?t.paddingOuter:t.padding)||0,r=e===Fb?1:(t.paddingInner!=null?t.paddingInner:t.padding)||0;return[0,t.rangeStep*Tb(n,r,i)]}function lJ(e,t,n){var i=t.schemeExtent,r,s;return q(t.scheme)?s=Wp(t.scheme,t.interpolate,t.interpolateGamma):(r=t.scheme.toLowerCase(),s=zb(r),s||U(`Unrecognized scheme name: ${t.scheme}`)),n=e===Up?n+1:e===Db?n-1:e===mu||e===jp?+t.schemeCount||KK:n,F$(e)?nS(s,i,t.reverse):Me(s)?O$(nS(s,i),n):e===Mb?s:s.slice(0,n)}function nS(e,t,n){return Me(e)&&(t||n)?N$(e,X3(t||[0,1],n)):e}function X3(e,t){return t?e.slice().reverse():e}function iS(e){I.call(this,null,e)}K(iS,I,{transform(e,t){const n=e.modified("sort")||t.changed(t.ADD)||t.modified(e.sort.fields)||t.modified("datum");return n&&t.source.sort(xa(e.sort)),this.modified(n),t}});const rS="zero",sS="center",oS="normalize",aS=["y0","y1"];function Y3(e){I.call(this,null,e)}Y3.Definition={type:"Stack",metadata:{modifies:!0},params:[{name:"field",type:"field"},{name:"groupby",type:"field",array:!0},{name:"sort",type:"compare"},{name:"offset",type:"enum",default:rS,values:[rS,sS,oS]},{name:"as",type:"string",array:!0,length:2,default:aS}]},K(Y3,I,{transform(e,t){var n=e.as||aS,i=n[0],r=n[1],s=xa(e.sort),o=e.field||ql,a=e.offset===sS?uJ:e.offset===oS?cJ:fJ,l,u,c,f;for(l=dJ(t.source,e.groupby,s,o),u=0,c=l.length,f=l.max;u1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Vg(e,t){return qe(e[0]-t[0])<_e&&qe(e[1]-t[1])<_e}function Xg(e,t,n,i){this.x=e,this.z=t,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}function OS(e,t,n,i,r){var s=[],o=[],a,l;if(e.forEach(function(p){if(!((g=p.length-1)<=0)){var g,m=p[0],y=p[g],b;if(Vg(m,y)){if(!m[2]&&!y[2]){for(r.lineStart(),a=0;a