diff --git a/CNAME b/CNAME new file mode 100644 index 00000000000..763ced3b3ad --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +shiro.innei.in diff --git a/assets/AutoResizeHeight-pHZ_oyCK.js b/assets/AutoResizeHeight-pHZ_oyCK.js new file mode 100644 index 00000000000..4fc3d1076f0 --- /dev/null +++ b/assets/AutoResizeHeight-pHZ_oyCK.js @@ -0,0 +1 @@ +import{r as _,j as k}from"./index-qegmBwH1.js";import{c as B}from"./helper-0r91fNX5.js";import{m as L}from"./motion-minimal-gJqnz197.js";var G=Symbol.for("immer-nothing"),T=Symbol.for("immer-draftable"),u=Symbol.for("immer-state");function l(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var h=Object.getPrototypeOf;function m(e){return!!e&&!!e[u]}function y(e){return e?X(e)||Array.isArray(e)||!!e[T]||!!e.constructor?.[T]||C(e)||O(e):!1}var V=Object.prototype.constructor.toString();function X(e){if(!e||typeof e!="object")return!1;const t=h(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===V}function P(e,t){S(e)===0?Object.entries(e).forEach(([r,n])=>{t(r,n,e)}):e.forEach((r,n)=>t(n,r,e))}function S(e){const t=e[u];return t?t.type_:Array.isArray(e)?1:C(e)?2:O(e)?3:0}function x(e,t){return S(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $(e,t,r){const n=S(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function ee(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function C(e){return e instanceof Map}function O(e){return e instanceof Set}function d(e){return e.copy_||e.base_}function v(e,t){if(C(e))return new Map(e);if(O(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&X(e))return h(e)?{...e}:Object.assign(Object.create(null),e);const r=Object.getOwnPropertyDescriptors(e);delete r[u];let n=Reflect.ownKeys(r);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=te),Object.freeze(e),t&&P(e,(r,n)=>M(n,!0))),e}function te(){l(2)}function A(e){return Object.isFrozen(e)}var re={};function p(e){const t=re[e];return t||l(0,e),t}var g;function q(){return g}function ne(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function K(e,t){t&&(p("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function R(e){E(e),e.drafts_.forEach(ie),e.drafts_=null}function E(e){e===g&&(g=e.parent_)}function H(e){return g=ne(g,e)}function ie(e){const t=e[u];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function W(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[u].modified_&&(R(t),l(4)),y(e)&&(e=w(t,e),t.parent_||b(t,e)),t.patches_&&p("Patches").generateReplacementPatches_(r[u].base_,e,t.patches_,t.inversePatches_)):e=w(t,r,[]),R(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==G?e:void 0}function w(e,t,r){if(A(t))return t;const n=t[u];if(!n)return P(t,(i,o)=>U(e,n,t,i,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return b(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let o=i,c=!1;n.type_===3&&(o=new Set(i),i.clear(),c=!0),P(o,(s,f)=>U(e,n,i,s,f,r,c)),b(e,i,!1),r&&e.patches_&&p("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function U(e,t,r,n,i,o,c){if(m(i)){const s=o&&t&&t.type_!==3&&!x(t.assigned_,n)?o.concat(n):void 0,f=w(e,i,s);if($(r,n,f),m(f))e.canAutoFreeze_=!1;else return}else c&&r.add(i);if(y(i)&&!A(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;w(e,i),(!t||!t.scope_.parent_)&&b(e,i)}}function b(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&M(t,r)}function oe(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:q(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=j;r&&(i=[n],o=z);const{revoke:c,proxy:s}=Proxy.revocable(i,o);return n.draft_=s,n.revoke_=c,s}var j={get(e,t){if(t===u)return e;const r=d(e);if(!x(r,t))return ce(e,r,t);const n=r[t];return e.finalized_||!y(n)?n:n===F(e.base_,t)?(D(e),e.copy_[t]=I(n,e)):n},has(e,t){return t in d(e)},ownKeys(e){return Reflect.ownKeys(d(e))},set(e,t,r){const n=J(d(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=F(d(e),t),o=i?.[u];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(ee(r,i)&&(r!==void 0||x(e.base_,t)))return!0;D(e),N(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return F(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,D(e),N(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=d(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){l(11)},getPrototypeOf(e){return h(e.base_)},setPrototypeOf(){l(12)}},z={};P(j,(e,t)=>{z[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});z.deleteProperty=function(e,t){return z.set.call(this,e,t,void 0)};z.set=function(e,t,r){return j.set.call(this,e[0],t,r,e[0])};function F(e,t){const r=e[u];return(r?d(r):e)[t]}function ce(e,t,r){const n=J(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function J(e,t){if(!(t in e))return;let r=h(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=h(r)}}function N(e){e.modified_||(e.modified_=!0,e.parent_&&N(e.parent_))}function D(e){e.copy_||(e.copy_=v(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var se=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const c=this;return function(f=o,...Y){return c.produce(f,Z=>r.call(this,Z,...Y))}}typeof r!="function"&&l(6),n!==void 0&&typeof n!="function"&&l(7);let i;if(y(t)){const o=H(this),c=I(t,void 0);let s=!0;try{i=r(c),s=!1}finally{s?R(o):E(o)}return K(o,n),W(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===G&&(i=void 0),this.autoFreeze_&&M(i,!0),n){const o=[],c=[];p("Patches").generateReplacementPatches_(t,i,o,c),n(o,c)}return i}else l(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(c,...s)=>this.produceWithPatches(c,f=>t(f,...s));let n,i;return[this.produce(t,r,(c,s)=>{n=c,i=s}),n,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){y(e)||l(8),m(e)&&(e=fe(e));const t=H(this),r=I(e,void 0);return r[u].isManual_=!0,E(t),r}finishDraft(e,t){const r=e&&e[u];(!r||!r.isManual_)&&l(9);const{scope_:n}=r;return K(n,t),W(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=p("Patches").applyPatches_;return m(e)?n(e,t):this.produce(e,i=>n(i,t))}};function I(e,t){const r=C(e)?p("MapSet").proxyMap_(e,t):O(e)?p("MapSet").proxySet_(e,t):oe(e,t);return(t?t.scope_:q()).drafts_.push(r),r}function fe(e){return m(e)||l(10,e),Q(e)}function Q(e){if(!y(e)||A(e))return e;const t=e[u];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=v(e,t.scope_.immer_.useStrictShallowCopy_)}else r=v(e,!0);return P(r,(n,i)=>{$(r,n,Q(i))}),t&&(t.finalized_=!1),r}var a=new se,ye=a.produce;a.produceWithPatches.bind(a);a.setAutoFreeze.bind(a);a.setUseStrictShallowCopy.bind(a);a.applyPatches.bind(a);a.createDraft.bind(a);a.finishDraft.bind(a);const ue=e=>{const{onKeyDown:t,onCompositionStart:r,onCompositionEnd:n}=e,i=_.useRef(!1),o=_.useCallback(f=>{i.current=!0,r?.(f)},[r]),c=_.useCallback(f=>{i.current=!1,n?.(f)},[n]),s=_.useCallback(f=>{if(t?.(f),i.current){f.stopPropagation();return}},[t]);return{onCompositionEnd:c,onCompositionStart:o,onKeyDown:s}},ae=_.forwardRef(({className:e,...t},r)=>{const n=ue(t);return k.jsx("input",{ref:r,className:B("min-w-0 flex-auto appearance-none rounded-lg border ring-accent/20 duration-200 sm:text-sm","bg-base-100 px-3 py-[calc(theme(spacing.2)-1px)] placeholder:text-zinc-400 focus:outline-none focus:ring-2","border-zinc-900/10 dark:border-zinc-700","focus:border-accent/80 dark:bg-zinc-700/[0.15] dark:text-zinc-200 dark:placeholder:text-zinc-500",t.type==="password"?"font-mono":"font-[system-ui]",e),...t,...n})});ae.displayName="Input";const pe=({children:e,className:t,duration:r=.6})=>{const n=_.useRef(null),[i,o]=_.useState("auto");return _.useEffect(()=>{if(n.current){const c=new ResizeObserver(s=>{const f=s[0].contentRect.height;o(f)});return c.observe(n.current),()=>{c.disconnect()}}},[]),k.jsx(L.div,{className:B("overflow-hidden",t),style:{height:i},initial:!1,animate:{height:i},transition:{duration:r},children:k.jsx("div",{ref:n,children:e})})};export{pe as A,ae as I,ye as p,ue as u}; diff --git a/assets/BlockLoading-PMBA_Cs1.js b/assets/BlockLoading-PMBA_Cs1.js new file mode 100644 index 00000000000..422c65ca3a1 --- /dev/null +++ b/assets/BlockLoading-PMBA_Cs1.js @@ -0,0 +1 @@ +import{j as t}from"./index-qegmBwH1.js";const s=e=>t.jsx("div",{className:"flex h-[500px] items-center justify-center rounded-lg bg-slate-100 text-sm dark:bg-neutral-800",children:e.children});export{s as B}; diff --git a/assets/CodeBlock-SLrWmN1-.js b/assets/CodeBlock-SLrWmN1-.js new file mode 100644 index 00000000000..d61deadff3b --- /dev/null +++ b/assets/CodeBlock-SLrWmN1-.js @@ -0,0 +1,7 @@ +import{j as r,r as m,_ as a}from"./index-qegmBwH1.js";import{e as c}from"./WrappedElementProvider-5243oAX6.js";import{d as p}from"./Markdown-hVdCypI9.js";import{B as l}from"./BlockLoading-PMBA_Cs1.js";import"./helper-0r91fNX5.js";import"./index-5Y6ZmVAf.js";import"./image-sZM8elMx.js";import"./use-is-unmounted-6i0OwE-p.js";import"./env-y9k74Ds6.js";import"./store-gmK8mRDy.js";import"./init-a0893ef4-4662SO8Z.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./FloatPopover-1BpKQIdq.js";import"./spring--xEiX8r3.js";import"./motion-minimal-gJqnz197.js";import"./use-event-callback-nMlqCkS7.js";import"./use-is-client-IECHC2ux.js";import"./visual-element-YIiczwVf.js";import"./Gallery-MHeEsxti.js";import"./LinkCard-r30gHz-0.js";import"./StyledButton-Mj8l6PeD.js";import"./owner-4YVbz2PN.js";import"./toast-qMk_Ov--.js";import"./usePeek-N6a5Jy_H.js";import"./provider-jumr72cx.js";import"./dom-NuJWIaAq.js";import"./SocialSourceLink-c8HgVvxv.js";import"./CodeHighlighter-Sy1nPjje.js";import"./use-is-dark-13kBJDHw.js";import"./Collapse-Q-wSwlx_.js";import"./useQuery-44y7CkOR.js";const s=()=>r.jsx(l,{children:"Excalidraw Loading..."}),d=({data:t})=>{const[e,o]=m.useState(null);return c(()=>{const i=m.lazy(()=>a(()=>import("./index-mx_ZhLz2.js").then(n=>n.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url).then(n=>({default:n.Excalidraw})));o(r.jsx(i,{data:t},t))},[t]),r.jsx(m.Suspense,{fallback:r.jsx(s,{}),children:e??r.jsx(s,{})})},K=t=>{const e=m.useMemo(()=>{if(t.lang==="mermaid"){const o=p(()=>a(()=>import("./Mermaid-5Gw5JBOp.js"),__vite__mapDeps([23,1,2,15,24,7,9,25,19,12,11,6,17,26,27]),import.meta.url).then(i=>i.Mermaid));return r.jsx(o,{...t})}else{if(t.lang==="excalidraw")return r.jsx(d,{data:t.content});{const o=p(()=>a(()=>import("./CodeHighlighter-Sy1nPjje.js").then(i=>i.C),__vite__mapDeps([28,1,2,5,6,7,8,9,10,15,29]),import.meta.url).then(i=>i.HighLighter));return r.jsx(o,{...t})}}},[t]);return r.jsx(m.Suspense,{fallback:r.jsx(l,{children:"CodeBlock Loading..."}),children:e})};export{K as CodeBlock}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["./index-mx_ZhLz2.js","./index-qegmBwH1.js","./index-SRCubG37.css","./useQuery-44y7CkOR.js","./owner-4YVbz2PN.js","./toast-qMk_Ov--.js","./init-a0893ef4-4662SO8Z.js","./helper-0r91fNX5.js","./StyledButton-Mj8l6PeD.js","./index-5Y6ZmVAf.js","./motion-minimal-gJqnz197.js","./store-gmK8mRDy.js","./env-y9k74Ds6.js","./index-D4F-WjWJ.js","./main-1J4Kkp7S.js","./use-is-dark-13kBJDHw.js","./dom-NuJWIaAq.js","./lodash-Y39_oLIE.js","./provider-jumr72cx.js","./use-is-unmounted-6i0OwE-p.js","./spring--xEiX8r3.js","./use-event-callback-nMlqCkS7.js","./visual-element-YIiczwVf.js","./Mermaid-5Gw5JBOp.js","./WrappedElementProvider-5243oAX6.js","./image-sZM8elMx.js","./WrappedElementProvider-v7JdpuAw.css","./BlockLoading-PMBA_Cs1.js","./CodeHighlighter-Sy1nPjje.js","./CodeHighlighter-hcFZa2QO.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/assets/CodeEditor-pXHtjbJq.js b/assets/CodeEditor-pXHtjbJq.js new file mode 100644 index 00000000000..c3d7a69707e --- /dev/null +++ b/assets/CodeEditor-pXHtjbJq.js @@ -0,0 +1 @@ +import{r as t,j as a}from"./index-qegmBwH1.js";import{s}from"./dom-NuJWIaAq.js";import{c as x}from"./helper-0r91fNX5.js";import{B as f}from"./CodeHighlighter-Sy1nPjje.js";const h=t.forwardRef(({content:e,language:p,onChange:d,minHeight:c,className:m,padding:r=0},g)=>{const[o,n]=t.useState(e);t.useEffect(()=>{n(e)},[e]);const l={minHeight:c};return a.jsxs("div",{className:x("relative [&_*]:!font-mono [&_*]:!text-base [&_*]:!leading-[1.5]",m),style:{padding:`${r}px`,"--padding":`${r*2}px`},contentEditable:!1,children:[a.jsx("textarea",{onKeyDown:s,onKeyUp:s,onPaste:s,contentEditable:!1,ref:g,className:"absolute size-[calc(100%-var(--padding))] resize-none overflow-hidden bg-transparent p-0 text-transparent caret-accent",style:l,value:o,onChange:i=>{n(i.target.value),d?.(i.target.value)}}),a.jsx(f,{className:"code-wrap pointer-events-none relative z-[1] !m-0 !p-0",style:l,lang:p,content:o})]})});h.displayName="CodeEditor";export{h as C}; diff --git a/assets/CodeHighlighter-Sy1nPjje.js b/assets/CodeHighlighter-Sy1nPjje.js new file mode 100644 index 00000000000..047e39bb99b --- /dev/null +++ b/assets/CodeHighlighter-Sy1nPjje.js @@ -0,0 +1 @@ +import{r as a,j as o}from"./index-qegmBwH1.js";import{t as f,u as y}from"./toast-qMk_Ov--.js";import{u as b}from"./use-is-dark-13kBJDHw.js";import{c as x}from"./helper-0r91fNX5.js";const d={},i={};function p(e){return new Promise((t,n)=>{const r=d[e];if(r==="loaded")return t(null);if(r==="loading"){i[e]=i[e]?[...i[e],[t,n]]:[[t,n]];return}const s=document.createElement("script");s.src=e,s.crossOrigin="anonymous",d[e]="loading",s.onload=function(){d[e]="loaded",t(null),i[e]&&(i[e].forEach(([c])=>{c(null)}),delete i[e])},s.onerror=function(c){this.onerror=this.onload=null,delete d[e],i[e].forEach(([,g])=>{g(c)}),delete i[e],n(c)},document.head.appendChild(s)})}const l=new Map;function u(e){if(l.has(e)){const n=l.get(e);return{$link:n,remove:()=>{n.parentNode&&n.parentNode.removeChild(n),l.delete(e)}}}const t=document.createElement("link");return t.href=e,t.rel="stylesheet",t.type="text/css",t.crossOrigin="anonymous",l.set(e,t),t.onerror=()=>{t.onerror=null,l.delete(e)},document.head.appendChild(t),{remove:()=>{t.parentNode&&t.parentNode.removeChild(t),l.delete(e)},$link:t}}const m={"code-wrap":"_code-wrap_1uhyk_1","copy-tip":"_copy-tip_1uhyk_11","language-tip":"_language-tip_1uhyk_49"},w=e=>{const{lang:t,content:n}=e,r=a.useCallback(()=>{navigator.clipboard.writeText(n),f.success("COPIED!")},[n]),s=a.useRef(null);return h(s),o.jsxs("div",{className:m["code-wrap"],children:[o.jsx("span",{className:m["language-tip"],"aria-hidden":!0,children:t?.toUpperCase()}),o.jsx("pre",{className:"line-numbers !bg-transparent","data-start":"1",children:o.jsx("code",{className:`language-${t??"markup"} !bg-transparent`,ref:s,children:n})}),o.jsx("div",{className:m["copy-tip"],onClick:r,"aria-hidden":!0,children:"Copy"})]})},k=({content:e,lang:t,className:n,style:r})=>{const s=a.useRef(null);return h(s),a.useEffect(()=>{window.Prism?.highlightElement(s.current)},[e,t]),o.jsx("pre",{className:x("!bg-transparent",n),style:r,"data-start":"1",children:o.jsx("code",{className:`language-${t??"markup"} !bg-transparent`,ref:s,children:e})})},h=e=>{const t=a.useRef(),n=y(),r=b();a.useInsertionEffect(()=>{const s=u(`https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/prism-themes/1.9.0/prism-one-${n?"light":r?"dark":"light"}.css`);if(t.current){const c=t.current;s.$link.onload=()=>{c.remove()}}t.current=s},[r,n]),a.useInsertionEffect(()=>{u("https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/prism/1.23.0/plugins/line-numbers/prism-line-numbers.min.css"),Promise.all([p("https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/prism/1.23.0/components/prism-core.min.js")]).then(()=>Promise.all([p("https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/prism/1.23.0/plugins/autoloader/prism-autoloader.min.js"),p("https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/prism/1.23.0/plugins/line-numbers/prism-line-numbers.min.js")])).then(()=>{e.current?requestAnimationFrame(()=>{window.Prism?.highlightElement(e.current),requestAnimationFrame(()=>{window.Prism?.highlightElement(e.current)})}):requestAnimationFrame(()=>{window.Prism?.highlightAll(),requestAnimationFrame(()=>{window.Prism?.highlightAll()})})})},[])},M=Object.freeze(Object.defineProperty({__proto__:null,BaseCodeHighlighter:k,HighLighter:w},Symbol.toStringTag,{value:"Module"}));export{k as B,M as C,w as H,p as a,u as l}; diff --git a/assets/CodeHighlighter-hcFZa2QO.css b/assets/CodeHighlighter-hcFZa2QO.css new file mode 100644 index 00000000000..4ae6c9479e0 --- /dev/null +++ b/assets/CodeHighlighter-hcFZa2QO.css @@ -0,0 +1 @@ +._code-wrap_1uhyk_1{position:relative;display:flex;width:100%;flex-direction:column;overflow:auto}._code-wrap_1uhyk_1 pre>code{display:block;font-family:OperatorMonoSSmLig Nerd Font,Cascadia Code PL,FantasqueSansMono Nerd Font,operator mono,JetBrainsMono,Fira code Retina,Fira code,Consolas,Monaco,Hannotate SC,monospace,-apple-system;font-size:14px;font-weight:500;background:transparent!important}._code-wrap_1uhyk_1:hover ._copy-tip_1uhyk_11{opacity:.4;visibility:visible}._code-wrap_1uhyk_1 ._copy-tip_1uhyk_11{position:absolute;right:2em;top:3em;font-size:.6em;font-weight:600;text-transform:uppercase;cursor:pointer;transition:opacity .5s;will-change:opacity;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0;visibility:hidden;transition:opacity .3s ease-in-out,visibility .3s ease-in-out}._code-wrap_1uhyk_1 ._copy-tip_1uhyk_11:hover{opacity:1}._code-wrap_1uhyk_1 ._copy-tip_1uhyk_11:after{content:"";bottom:-3px;position:absolute;left:3px;right:3px;height:1px;background-color:currentColor}._code-wrap_1uhyk_1 ._language-tip_1uhyk_49{position:absolute;right:1em;transform:translate(-.5em,.5em);font-size:.8em;opacity:.7;z-index:1} diff --git a/assets/Collapse-Q-wSwlx_.js b/assets/Collapse-Q-wSwlx_.js new file mode 100644 index 00000000000..f5cd234726f --- /dev/null +++ b/assets/Collapse-Q-wSwlx_.js @@ -0,0 +1 @@ +import{r as i,j as e}from"./index-qegmBwH1.js";import{A as l,m as c}from"./spring--xEiX8r3.js";import{c as m}from"./helper-0r91fNX5.js";import{m as p}from"./motion-minimal-gJqnz197.js";const h=({isOpened:t,className:r,children:s,withBackground:o=!1})=>{const n=i.useMemo(()=>{const a={open:{opacity:1,height:"auto",transition:c},collapsed:{opacity:0,height:0,overflow:"hidden"}};return o&&(a.open.background="oklch(var(--a) / 10%)",a.collapsed.background="oklch(var(--a) / 0%)"),a},[o]);return e.jsx(e.Fragment,{children:e.jsx(l,{initial:!1,children:t&&e.jsx(p.div,{initial:"collapsed",animate:"open",exit:"collapsed",variants:n,className:m(o&&"rounded-lg",r),children:o?e.jsx("div",{className:"p-4",children:s}):s},"content")})})};export{h as C}; diff --git a/assets/CommentRoot-gt5vN1ZY.js b/assets/CommentRoot-gt5vN1ZY.js new file mode 100644 index 00000000000..45b09c93eaa --- /dev/null +++ b/assets/CommentRoot-gt5vN1ZY.js @@ -0,0 +1 @@ +import{j as t}from"./index-qegmBwH1.js";import{CommentBoxRoot as i}from"./index-_iJ2szeX.js";import{C as p}from"./Comments-P8C4VA5P.js";import"./index-wpIVlVRc.js";import"./owner-4YVbz2PN.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./motion-minimal-gJqnz197.js";import"./store-gmK8mRDy.js";import"./env-y9k74Ds6.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./WrappedElementProvider-5243oAX6.js";import"./image-sZM8elMx.js";import"./use-is-unmounted-6i0OwE-p.js";import"./lodash-Y39_oLIE.js";import"./useQuery-44y7CkOR.js";import"./Markdown-hVdCypI9.js";import"./script-SYgWefdU.js";import"./FloatPopover-1BpKQIdq.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./use-is-client-IECHC2ux.js";import"./visual-element-YIiczwVf.js";import"./Gallery-MHeEsxti.js";import"./LinkCard-r30gHz-0.js";import"./usePeek-N6a5Jy_H.js";import"./provider-jumr72cx.js";import"./dom-NuJWIaAq.js";import"./SocialSourceLink-c8HgVvxv.js";import"./CodeHighlighter-Sy1nPjje.js";import"./use-is-dark-13kBJDHw.js";import"./Collapse-Q-wSwlx_.js";import"./FormInput-cQs6MTpb.js";import"./utils-t32ZRaBl.js";import"./CurrentPostDataProvider-sxwUfZTo.js";import"./customParseFormat-3OBJgCTU.js";import"./FlexText-sued5-2E.js";import"./PinIconToggle-aUENNNd6.js";const V=r=>{const{allowComment:m,refId:o}=r;return!m&&typeof m<"u"?t.jsx("p",{className:"mt-[7.1rem] text-center text-xl font-medium",children:"评论已关闭"}):t.jsxs("div",{className:"relative mt-12",children:[t.jsx(i,{refId:o}),t.jsx("div",{className:"h-12"}),t.jsx(p,{refId:o})]})};export{V as CommentAreaRoot}; diff --git a/assets/Comments-P8C4VA5P.js b/assets/Comments-P8C4VA5P.js new file mode 100644 index 00000000000..83d83611d40 --- /dev/null +++ b/assets/Comments-P8C4VA5P.js @@ -0,0 +1 @@ +import{r as n,j as e,a as K}from"./index-qegmBwH1.js";import{Q as Z,a as W}from"./useQuery-44y7CkOR.js";import{q as L,v as X,w as J,g as Y,k as V}from"./owner-4YVbz2PN.js";import{S as ee}from"./StyledButton-Mj8l6PeD.js";import{s as F}from"./spring--xEiX8r3.js";import{c as te,C as se,R as re}from"./utils-t32ZRaBl.js";import{u as ne}from"./image-sZM8elMx.js";import{g as ae,b as oe,L as le,M as ie}from"./Markdown-hVdCypI9.js";import{c as B,a as w}from"./helper-0r91fNX5.js";import{u as ce}from"./use-is-dark-13kBJDHw.js";import{F as me,u as ue}from"./FlexText-sued5-2E.js";import{T as de,G as xe}from"./SocialSourceLink-c8HgVvxv.js";import{j as g,a as p,s as _}from"./store-gmK8mRDy.js";import{p as he,A as fe}from"./AutoResizeHeight-pHZ_oyCK.js";import{P as pe}from"./PinIconToggle-aUENNNd6.js";import{s as ge}from"./lodash-Y39_oLIE.js";import{a as d,b as x}from"./init-a0893ef4-4662SO8Z.js";import{m as Ce}from"./motion-minimal-gJqnz197.js";var ve=class extends Z{constructor(t,s){super(t,s)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,s){super.setOptions({...t,behavior:L()},s)}getOptimisticResult(t){return t.behavior=L(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,s){const{state:r}=t,a=super.createResult(t,s),{isFetching:o,isRefetching:i}=a,l=o&&r.fetchMeta?.fetchMore?.direction==="forward",c=o&&r.fetchMeta?.fetchMore?.direction==="backward";return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:X(s,r.data),hasPreviousPage:J(s,r.data),isFetchingNextPage:l,isFetchingPreviousPage:c,isRefetching:i&&!l&&!c}}};function je(t,s){return W(t,ve,s)}const we=n.createContext(null),M={didCatch:!1,error:null};let ye=class extends n.Component{constructor(s){super(s),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=M}static getDerivedStateFromError(s){return{didCatch:!0,error:s}}resetErrorBoundary(){const{error:s}=this.state;if(s!==null){for(var r,a,o=arguments.length,i=new Array(o),l=0;l0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t.length!==s.length||t.some((r,a)=>!Object.is(r,s[a]))}const Ne=()=>e.jsxs("div",{className:"flex w-full flex-col py-6 center",children:["Something went wrong. Please contract to"," ",e.jsx("a",{href:"mailto:i@innei.ren",className:"shiro-link--underline",children:"i@innei.ren"}),".",e.jsx(ee,{onClick:()=>{window.location.reload()},children:"Reload Page"})]}),ke=({children:t})=>e.jsx(ye,{FallbackComponent:Ne,onError:s=>{console.error(s)},children:t}),Pe=t=>{const{shadow:s=!0,lazy:r=!0,wrapperProps:a={},size:o,imageUrl:i,text:l,url:c,randomColor:m,radius:u,...f}=t,N=n.useRef(null),[y,C]=n.useState(!r),[k,P]=n.useState(!1),{className:v,...U}=a,S=n.useMemo(()=>(l||i)&&m&&ae(oe(l||i)),[l,i,m]),I=ce()?S?.dark.background:S?.light.background;return e.jsx("div",{className:B("box-border backface-hidden",s&&"shadow-sm",v),ref:N,style:{...o?{height:`${o||80}px`,width:`${o||80}px`}:void 0,...I?{backgroundColor:I}:void 0,...u?{borderRadius:u==="full"?"100%":`${u}px`}:void 0},...U,children:n.createElement(c?"a":"div",{className:"relative inline-block h-full w-full",...c?{href:c,target:"_blank",rel:"noreferrer"}:{}},i&&!k?e.jsx("div",{className:B("h-full w-full bg-cover bg-center bg-no-repeat transition-opacity duration-300",v),children:e.jsx("img",{src:i,style:{opacity:y?1:0,...u?{borderRadius:u==="full"?"100%":`${u}px`}:void 0},height:o,width:o,onLoad:()=>C(!0),onError:()=>P(!0),loading:r?"lazy":"eager",...f,className:B("aspect-square duration-200",f.className)})}):l?e.jsx("div",{className:"relative flex h-full w-full flex-grow select-none items-center justify-center",children:e.jsx(me,{scale:.5,text:l})}):null)})},Be=({text:t})=>e.jsx("div",{className:"flex h-[100px] items-center justify-center text-lg font-medium",children:t||"您当前所在地区暂不支持此功能"}),Me=te({from:{opacity:1e-5,scale:.96,y:10},to:{y:0,scale:1,opacity:1},preset:F}),Ee=({onLoading:t,children:s,className:r})=>{const{ref:a}=ne({rootMargin:"1px",onChange(o){o&&t()}});return e.jsx("div",{className:r,ref:a,children:s??e.jsx(le,{})})};function Re(t){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{className:"fill-black dark:fill-white",d:"M17.05 20.28c-.98.95-2.05.8-3.08.35c-1.09-.46-2.09-.48-3.24 0c-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8c1.18-.24 2.31-.93 3.57-.84c1.51.12 2.65.72 3.4 1.8c-3.12 1.87-2.38 5.98.48 7.13c-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25c.29 2.58-2.34 4.5-3.74 4.25z"})})}function Se(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256",...t,children:[e.jsx("path",{fill:"#1877F2",d:"M256 128C256 57.308 198.692 0 128 0C57.308 0 0 57.308 0 128c0 63.888 46.808 116.843 108 126.445V165H75.5v-37H108V99.8c0-32.08 19.11-49.8 48.348-49.8C170.352 50 185 52.5 185 52.5V84h-16.14C152.959 84 148 93.867 148 103.99V128h35.5l-5.675 37H148v89.445c61.192-9.602 108-62.556 108-126.445"}),e.jsx("path",{fill:"#FFF",d:"m177.825 165l5.675-37H148v-24.01C148 93.866 152.959 84 168.86 84H185V52.5S170.352 50 156.347 50C127.11 50 108 67.72 108 99.8V128H75.5v37H108v89.445A128.959 128.959 0 0 0 128 256a128.9 128.9 0 0 0 20-1.555V165h29.825"})]})}function Ie(t){return e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsx("path",{d:"M14.3392 7.95965C14.3392 7.49715 14.3017 7.03215 14.2217 6.57715H7.8042V9.19715H11.4792C11.3267 10.0421 10.8367 10.7896 10.1192 11.2646V12.9646H12.3117C13.5992 11.7796 14.3392 10.0296 14.3392 7.95965Z",fill:"#4285F4"}),e.jsx("path",{d:"M7.80412 14.6074C9.63912 14.6074 11.1866 14.0049 12.3141 12.9649L10.1216 11.2649C9.51162 11.6799 8.72412 11.9149 7.80662 11.9149C6.03162 11.9149 4.52662 10.7174 3.98662 9.10742H1.72412V10.8599C2.87912 13.1574 5.23162 14.6074 7.80412 14.6074Z",fill:"#34A853"}),e.jsx("path",{d:"M3.98375 9.1075C3.69875 8.2625 3.69875 7.3475 3.98375 6.5025V4.75H1.72375C0.75875 6.6725 0.75875 8.9375 1.72375 10.86L3.98375 9.1075Z",fill:"#FBBC04"}),e.jsx("path",{d:"M7.80412 3.69296C8.77412 3.67796 9.71162 4.04296 10.4141 4.71296L12.3566 2.77046C11.1266 1.61546 9.49412 0.980458 7.80412 1.00046C5.23162 1.00046 2.87912 2.45046 1.72412 4.75046L3.98412 6.50296C4.52162 4.89046 6.02912 3.69296 7.80412 3.69296Z",fill:"#EA4335"})]})}function Le(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256",...t,children:[e.jsx("path",{fill:"#F1511B",d:"M121.666 121.666H0V0h121.666z"}),e.jsx("path",{fill:"#80CC28",d:"M256 121.666H134.335V0H256z"}),e.jsx("path",{fill:"#00ADEF",d:"M121.663 256.002H0V134.336h121.663z"}),e.jsx("path",{fill:"#FBBC09",d:"M256 256.002H134.335V134.336H256z"})]})}const ze=({strategy:t,className:s})=>{const r=A(t);return!t||!r?null:e.jsx(r,{className:s})},A=t=>{switch(t){case"from_oauth_github":return xe;case"from_oauth_google":return Ie;case"from_oauth_apple":return Re;case"from_oauth_microsoft":return Le;case"from_oauth_facebook":return Se;case"from_oauth_twitter":return de;default:return null}},He="_comment__message_1lfmp_1",Ve={comment__message:He},Fe=["footnote","footnoteReference","image","htmlComment","htmlSelfClosing","htmlBlock"],_e=({children:t})=>e.jsx(ie,{disabledTypes:Fe,disableParsingRawHTML:!0,forceBlock:!0,value:t}),Ae=["在这里说点什么呢。","小可爱,你想说点什么呢?","或许此地可以留下足迹","你的留言是我前进的动力!","说点什么吧,我会好好听的。","来一发评论,送你一个小星星!","你的评论会让我更加努力哦!","留下你的足迹,让我知道你来过。","我在这里等你的留言呢!","你的评论是我最大的动力!","来一发评论,让我知道你的想法吧!"],yt=()=>ge(Ae),Te=500,j="comment-",Oe=()=>({refId:d(""),text:d(""),author:p(`${j}author`,""),mail:p(`${j}mail`,""),url:p(`${j}url`,""),avatar:d(""),source:d(""),isWhisper:p(`${j}is-whisper`,!1),syncToRecently:p(`${j}sync-to-recently`,!0)}),h=n.createContext(null),T=n.createContext(null),De=t=>{const{refId:s,children:r,afterSubmit:a,initialValue:o}=t,i=n.useMemo(()=>({...Oe(),refId:d(s)}),[s]);return ue(()=>{o&&g.set(i.text,o)}),e.jsx(h.Provider,{value:i,children:e.jsx(T.Provider,{value:n.useMemo(()=>({afterSubmit:a}),[a]),children:r})},s)},O=n.createContext(!1),D=n.createContext(""),Q=n.createContext(null),Qe=t=>{const{isReply:s,originalRefId:r,onCompleted:a,children:o}=t;return e.jsx(D.Provider,{value:r,children:e.jsx(O.Provider,{value:s,children:e.jsx(Q.Provider,{value:a||null,children:o})})})},$e=n.memo(t=>{const{children:s}=t;return n.useEffect(()=>(z(s),()=>{z(null)}),[s]),null}),qe=n.memo(()=>Ge());qe.displayName="CommentBoxSlotProvider";$e.displayName="CommentBoxSlotPortal";const bt=()=>n.useContext(O),Nt=()=>{const t=x(n.useContext(h).refId);return n.useContext(D)||t},kt=()=>n.useContext(Q),Pt=()=>x(n.useContext(h).text),$=()=>x(n.useContext(h).refId),Bt=()=>n.useContext(h),Mt=()=>n.useContext(T),q=d(null),Ge=()=>x(q),z=t=>g.set(q,t),Et=()=>x(_(n.useContext(h).text,n.useCallback(t=>t.length>0,[]))),Rt=()=>x(_(n.useContext(h).text,n.useCallback(t=>t.length>Te,[]))),St=()=>{const t=n.useContext(h);return n.useCallback((s,r)=>{const a=t[s];if(!a)throw new Error(`atom ${s} not found`);g.set(a,r)},[t])};var Ue=(t=>(t[t.legacy=0]="legacy",t[t["with-auth"]=1]="with-auth",t))(Ue||{});const G=p("comment-mode",1),It=()=>x(G),Lt=t=>g.set(G,t),Ke=({comment:t})=>{const s=Y(),r=$();return e.jsx(pe,{pin:!!t.pin,onPinChange:async a=>{s.setQueryData(R(r),o=>he(o,i=>{if(!i)return i;let l=null;return i.pages.forEach(c=>c.data.forEach(m=>{t.id===m.id&&(l=m)})),l&&(l.pin=a),i})),await V.comment.proxy(t.id).patch({data:{pin:a}})}})};function Ze(t){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"0.88em",height:"1em",viewBox:"0 0 14 16",...t,children:e.jsx("path",{fillRule:"evenodd",d:"M8 10.5L9 14H5l1-3.5L5.25 9h3.5L8 10.5zM10 6H4L2 7h10l-2-1zM9 2L7 3L5 2L4 5h6L9 2zm4.03 7.75L10 9l1 2l-2 3h3.22c.45 0 .86-.31.97-.75l.56-2.28c.14-.53-.19-1.08-.72-1.22zM4 9l-3.03.75c-.53.14-.86.69-.72 1.22l.56 2.28c.11.44.52.75.97.75H5l-2-3l1-2z",fill:"currentColor"})})}const We=({commentId:t})=>{const[s,r]=n.useState(!1),a=$(),o=n.useCallback(()=>{r(!1)},[]);return e.jsxs(e.Fragment,{children:[e.jsx("button",{"aria-label":"回复",className:w("absolute bottom-0 right-0 translate-x-2/3 translate-y-1/4 text-xs opacity-90","aspect-square rounded-full","box-content flex h-6 w-6 p-[2px] center","border border-slate-200 bg-zinc-100 dark:border-neutral-700 dark:bg-gray-800","invisible cursor-pointer opacity-0","group-[:hover]:visible group-[:hover]:opacity-70"),onClick:()=>{r(i=>!i)},children:e.jsx("i",{className:"icon-[mingcute--comment-line]"})}),e.jsx(Ye,{children:e.jsx(Qe,{isReply:!0,originalRefId:a,onCompleted:o,children:e.jsx(fe,{duration:.2,children:s&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"h-6"}),e.jsx(se,{refId:t}),e.jsx("div",{className:"h-6"})]})})})})]})},Xe=n.memo(function t(s){const{comment:r,className:a}=s,o=n.useMemo(()=>d(null),[]);if(typeof r=="string")return null;const{id:i,avatar:l,author:c,text:m,key:u,location:f,isWhispers:N,url:y,source:C}=r,k=typeof r.parent=="string"?r.parent:r.parent?.id,P=y?e.jsx("a",{href:y,className:"ml-2 max-w-full flex-shrink-0 break-all",target:"_blank",rel:"noreferrer",children:c}):e.jsx("span",{className:"ml-2 max-w-full flex-shrink-0 break-all",children:c});return e.jsxs(e.Fragment,{children:[e.jsxs(E.Provider,{value:o,children:[e.jsx(Ce.li,{initial:r.new?{opacity:0,scale:.93,y:20}:!0,transition:F,animate:r.new?{opacity:1,y:0,scale:1}:void 0,"data-comment-id":i,"data-parent-id":k,className:w("relative my-2",a),children:e.jsxs("div",{className:"group flex w-full items-stretch gap-4",children:[e.jsxs("div",{className:"relative flex w-9 shrink-0 self-end",children:[e.jsx(Pe,{shadow:!1,imageUrl:l,alt:`${c}'s avatar`,className:"h-9 w-9 select-none rounded-full bg-zinc-200 ring-2 ring-zinc-200 dark:bg-zinc-800 dark:ring-zinc-800",width:24,height:24}),C&&!!A(C)&&e.jsx("div",{className:"absolute -right-1.5 bottom-1 flex h-3.5 w-3.5 rounded-full bg-white ring-[1.5px] ring-zinc-200 center dark:bg-zinc-800 dark:ring-black",children:e.jsx(ze,{strategy:C,className:"h-3 w-3"})})]}),e.jsxs("div",{className:w("flex flex-1 flex-col","w-full min-w-0 items-start"),children:[e.jsxs("span",{className:w("flex items-center gap-2 font-semibold text-zinc-800 dark:text-zinc-200","relative mb-2 w-full min-w-0 justify-center"),children:[e.jsxs("span",{className:"flex flex-grow flex-wrap items-center gap-2",children:[P,e.jsxs("span",{className:"flex min-w-0 flex-shrink select-none flex-wrap items-center space-x-2 self-end",children:[e.jsx("span",{className:"inline-flex flex-shrink-0 text-[0.71rem] font-medium opacity-40",children:e.jsx(re,{date:r.created})}),e.jsx("span",{className:"break-all text-[0.71rem] opacity-30",children:u}),!!f&&e.jsxs("span",{className:"min-w-0 max-w-full truncate break-all text-[0.71rem] opacity-[0.35]",children:["来自:",f]}),!!N&&e.jsx(Ze,{})]})]}),e.jsx("span",{className:"flex-shrink-0",children:e.jsx(Ke,{comment:r})})]}),e.jsxs("div",{className:w(Ve.comment__message,"relative inline-block rounded-xl px-2 py-1 text-zinc-800 dark:text-zinc-200","rounded-bl-sm bg-zinc-600/5 dark:bg-zinc-500/20","max-w-[calc(100%-3rem)]"),children:[e.jsx(_e,{children:m}),e.jsx(We,{commentId:r.id})]})]})]})}),e.jsx(Je,{})]}),r.children&&r.children.length>0&&e.jsx("ul",{className:"my-2 space-y-2",children:r.children.map(v=>e.jsx(t,{comment:v,className:"ml-9"},v.id))})]})}),E=n.createContext(d(null)),Je=()=>{const t=n.useRef(null),s=n.useContext(E);return n.useLayoutEffect(()=>(g.set(s,t.current),()=>{g.set(s,null)}),[s]),e.jsx("div",{ref:t})},Ye=t=>{const s=x(n.useContext(E));return s?K.createPortal(t.children,s):null},b=()=>e.jsxs("li",{className:"relative animate-pulse list-none",children:[e.jsxs("div",{className:"group flex w-full items-stretch gap-2",children:[e.jsx("div",{className:"flex w-9 shrink-0 items-end",children:e.jsx("div",{className:"h-9 w-9 rounded-full bg-gray-300 dark:bg-neutral-600"})}),e.jsxs("div",{className:"flex w-full min-w-0 flex-1 flex-col items-start",children:[e.jsx("span",{className:"relative mb-2 flex w-full min-w-0 items-center justify-center gap-2",children:e.jsxs("span",{className:"flex flex-grow items-center gap-2",children:[e.jsx("span",{className:"ml-2 h-4 w-20 bg-gray-300 dark:bg-neutral-600"}),e.jsxs("span",{className:"flex select-none items-center space-x-2",children:[e.jsx("span",{className:"inline-flex h-4 w-20 bg-gray-300 text-[0.71rem] font-medium opacity-40 dark:bg-neutral-600"}),e.jsx("span",{className:"h-4 w-20 bg-gray-300 text-[0.71rem] opacity-30 dark:bg-neutral-600"})]})]})}),e.jsxs("div",{className:"relative flex w-full flex-col gap-2",children:[e.jsx("div",{className:"relative ml-2 inline-block h-4 w-[calc(100%-3rem)] rounded-xl bg-gray-300 px-2 py-1 dark:bg-neutral-600"}),e.jsx("div",{className:"relative ml-2 inline-block h-4 w-[120px] rounded-xl bg-gray-300 px-2 py-1 dark:bg-neutral-600"})]})]})]}),e.jsx("span",{className:"sr-only",children:"Loading..."})]}),H=()=>e.jsxs("div",{className:"flex min-h-[400px] flex-col space-y-4",children:[e.jsx(b,{}),e.jsx(b,{}),e.jsx(b,{}),e.jsx(b,{})]}),R=t=>["comments",t],et=({refId:t})=>{const s=n.useMemo(()=>R(t),[t]),{data:r,isLoading:a,fetchNextPage:o,hasNextPage:i}=je({queryKey:s,queryFn:async({queryKey:l,pageParam:c})=>{const m=c,[,u]=l;return(await V.comment.getByRefId(u,{page:m})).$serialized},meta:{persist:!1},getNextPageParam:l=>l.pagination.hasNextPage?l.pagination.currentPage+1:void 0,getPreviousPageParam:l=>l.pagination.currentPage-1,initialPageParam:1});return a?e.jsx(H,{}):!r||!r.pages.length||!r.pages[0].data.length?e.jsx("div",{className:"flex min-h-[400px] center",children:e.jsx(Be,{text:"这里还没有评论呢"})}):e.jsxs(ke,{children:[e.jsx("ul",{className:"min-h-[400px] list-none space-y-4",children:r?.pages.map((l,c)=>e.jsx(Me,{children:l.data.map(m=>e.jsx(tt,{comment:m,refId:t},m.id))},c))}),i&&e.jsx(Ee,{onLoading:o,children:e.jsx(H,{})})]})},tt=n.memo(function({comment:s,refId:r}){return e.jsx(De,{refId:r,children:e.jsx(Xe,{comment:s})})}),zt=Object.freeze(Object.defineProperty({__proto__:null,Comments:et,buildQueryKey:R},Symbol.toStringTag,{value:"Module"}));export{et as C,ke as E,Te as M,qe as a,$ as b,Bt as c,Mt as d,bt as e,Nt as f,kt as g,Rt as h,Pt as i,St as j,R as k,yt as l,$e as m,Ue as n,It as o,De as p,zt as q,Lt as s,Et as u}; diff --git a/assets/Comments-rnEXEs_g.css b/assets/Comments-rnEXEs_g.css new file mode 100644 index 00000000000..c8c59480675 --- /dev/null +++ b/assets/Comments-rnEXEs_g.css @@ -0,0 +1 @@ +._comment__message_1lfmp_1 *{word-break:break-all;line-height:1.5rem}._comment__message_1lfmp_1 h1,._comment__message_1lfmp_1 h2,._comment__message_1lfmp_1 h3,._comment__message_1lfmp_1 h4,._comment__message_1lfmp_1 h5,._comment__message_1lfmp_1 h6{font-weight:600;letter-spacing:-.025em}._comment__message_1lfmp_1 h1{font-size:1.125rem;line-height:1.75rem;font-weight:700}._comment__message_1lfmp_1 h2{font-size:1.065rem;line-height:1.75rem;font-weight:700}._comment__message_1lfmp_1 hr{margin-top:.375rem;margin-bottom:.375rem;--tw-border-opacity: 1;border-color:rgb(161 161 170 / var(--tw-border-opacity));opacity:.2}._comment__message_1lfmp_1 ul{list-style-type:disc;padding-left:1rem}._comment__message_1lfmp_1 ol{list-style-type:decimal;padding-left:1rem}._comment__message_1lfmp_1 blockquote{margin-top:.25rem;margin-bottom:.25rem;border-left-width:4px;--tw-border-opacity: 1;border-color:rgb(161 161 170 / var(--tw-border-opacity));padding-left:.5rem}._comment__message_1lfmp_1 img,._comment__message_1lfmp_1 video{border-radius:.375rem;max-height:350px}._comment__message_1lfmp_1 pre{margin-top:.375rem;margin-bottom:.375rem;white-space:break-spaces}._comment__message_1lfmp_1 pre,._comment__message_1lfmp_1 code:not([class^=language-]){border-radius:.25rem;background-color:#3f3f461a;padding:.125rem .25rem;--tw-text-opacity: 1;color:rgb(24 24 27 / var(--tw-text-opacity))}._comment__message_1lfmp_1 pre>code{background-color:transparent!important;padding:0!important}[data-theme=dark] ._comment__message_1lfmp_1 hr{--tw-border-opacity: 1;border-color:rgb(244 244 245 / var(--tw-border-opacity));opacity:.2}[data-theme=dark] ._comment__message_1lfmp_1 blockquote{border-color:#fafafa80}[data-theme=dark] ._comment__message_1lfmp_1 pre,[data-theme=dark] ._comment__message_1lfmp_1 code:not([class^=language-]){background-color:#e4e4e733;--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity))}[data-theme=dark] ._comment__message_1lfmp_1 pre>code{background-color:transparent!important} diff --git a/assets/CurrentPostDataProvider-sxwUfZTo.js b/assets/CurrentPostDataProvider-sxwUfZTo.js new file mode 100644 index 00000000000..205551f6023 --- /dev/null +++ b/assets/CurrentPostDataProvider-sxwUfZTo.js @@ -0,0 +1 @@ +import{r as l,j as D}from"./index-qegmBwH1.js";import"./owner-4YVbz2PN.js";import"./toast-qMk_Ov--.js";import"./StyledButton-Mj8l6PeD.js";import"./provider-jumr72cx.js";import{s as v}from"./store-gmK8mRDy.js";import{p as P}from"./AutoResizeHeight-pHZ_oyCK.js";import{a as b,u as p,b as m,c as f,r as u}from"./init-a0893ef4-4662SO8Z.js";let x=Object.freeze([]),S=e=>{let t=l.useRef(!1);!t.current&&(t.current=!0,e?.())},g=()=>{var e;let t=l.createContext(null),o=b(null),n=l.memo(a=>{var s;let{data:r,children:d}=a,c=(s=l.useContext(t))!==null&&s!==void 0?s:o,i=p(c);return S(()=>{i(r)}),l.useEffect(()=>{i(r)},[r]),l.useEffect(()=>(i(r),()=>{i(null)}),[]),d});return n.displayName="ModelDataProvider",{ModelDataAtomProvider:a=>{let{children:s,overrideAtom:r}=a;return D.jsx(t.Provider,{value:r??o,children:s})},ModelDataProvider:n,useModelDataSelector:(a,s)=>{var r;let d=(r=l.useContext(t))!==null&&r!==void 0?r:o,c=l.useCallback(i=>i?a(i):null,s||x);return m(v(d,c))},useSetModelData:()=>p((e=l.useContext(t))!==null&&e!==void 0?e:o),useGetModelData:()=>{var a;let s=(a=l.useContext(t))!==null&&a!==void 0?a:o,r=f();return()=>r.get(s)},useModelData:()=>{var a;return m((a=l.useContext(t))!==null&&a!==void 0?a:o)},setGlobalModelData:a=>{let s=u();s.set(o,P(s.get(o),a))},getGlobalModelData:()=>u().get(o),ModelDataAtomContext:t}},M=u();M.get,M.set;l.createContext(null);l.createContext({reset(e,t){}});var C=(e=>(e.Home="",e.Posts="/posts",e.Post="/posts/",e.Notes="/notes",e.Note="/notes/",e.NoteTopics="/notes/topics",e.NoteTopic="/notes/topics/",e.Timelime="/timeline",e.Login="/login",e.Page="/",e.Categories="/categories",e.Category="/categories/",e.Projects="/projects",e.Project="/projects/",e.Says="/says",e.Friends="/friends",e.Thinking="/thinking",e.PageDeletd="/common/deleted",e))(C||{});function N(e,t){let o=e;switch(e){case"/notes/":{o+=t.id,t.password&&(o+=`?password=${t.password}`);break}case"/posts/":{const n=t;o+=`${n.category}/${n.slug}`;break}case"/posts":{const n=t;o+=`?${new URLSearchParams(n).toString()}`;break}case"/timeline":{const n=t;o+=`?${new URLSearchParams(n).toString()}`;break}case"/notes/topics/":case"/categories/":case"/":{o+=t.slug;break}case"":{o="/";break}case"/projects/":{o+=t.id;break}}return o}const{ModelDataProvider:E,ModelDataAtomProvider:T,getGlobalModelData:L,setGlobalModelData:U,useModelDataSelector:z,useSetModelData:B}=g(),{ModelDataProvider:F,ModelDataAtomProvider:H,getGlobalModelData:O,setGlobalModelData:V,useModelDataSelector:q}=g();export{H as M,C as R,F as a,z as b,T as c,E as d,O as e,V as f,L as g,g as p,N as r,U as s,q as u}; diff --git a/assets/EmojiPicker-5MSXy1Rt.js b/assets/EmojiPicker-5MSXy1Rt.js new file mode 100644 index 00000000000..37fe7ce48e6 --- /dev/null +++ b/assets/EmojiPicker-5MSXy1Rt.js @@ -0,0 +1,16 @@ +import{r as t,R as Nf,j as e0}from"./index-qegmBwH1.js";import{u as a0}from"./use-is-dark-13kBJDHw.js";function Xf(f){return[].concat(f)}function ae(f){return f.startsWith(":")}function Be(f){return Ef(f)&&(f==="*"||f.length>1&&":>~.+*".includes(f.slice(0,1))||Ve(f))}function He(f,e){return(Ef(e)||typeof e=="number")&&!Fe(f)&&!ae(f)&&!We(f)}function We(f){return f.startsWith("@media")}function n0(f){return f==="."}function Fe(f){return f==="--"}function Ef(f){return f+""===f}function Ve(f){return Ef(f)&&(f.startsWith("&")||ae(f))}function kf(f,e=""){return f.filter(Boolean).join(e)}function Ke(f,e){let a=0;if(e.length===0)return a.toString();for(let n=0;nae(u)?i+u:Ve(u)?i+u.slice(1):kf([i,u]," "),e);return kf([n,t0(a)]," ")}var o0=class If{constructor(e,a=null,{preconditions:n,postconditions:i}={}){this.sheet=e,this.preconditions=[],this.scopeClassName=null,this.scopeName=null,this.postconditions=[],this.preconditions=n?Xf(n):[],this.postconditions=i?Xf(i):[],this.setScope(a)}setScope(e){return e?(this.scopeClassName||(this.scopeName=e,this.scopeClassName=Ke(this.sheet.name,e+this.sheet.count)),this):this}get hasConditions(){return this.preconditions.length>0||this.postconditions.length>0}addScope(e){return new If(this.sheet,e,{preconditions:this.preconditions,postconditions:this.postconditions})}addPrecondition(e){return new If(this.sheet,this.scopeClassName,{postconditions:this.postconditions,preconditions:this.preconditions.concat(e)})}addPostcondition(e){return new If(this.sheet,this.scopeClassName,{preconditions:this.preconditions,postconditions:this.postconditions.concat(e)})}createRule(e,a){return new Xe(this.sheet,e,a,this)}},d0=class{constructor(f,e){this.name=f,this.rootNode=e,this.storedStyles={},this.storedClasses={},this.style="",this.count=0,this.id=`flairup-${f}`,this.styleTag=this.createStyleTag()}getStyle(){return this.style}append(f){this.style=r0(this.style,f)}apply(){this.count++,this.styleTag&&(this.styleTag.innerHTML=this.style)}isApplied(){return!!this.styleTag}createStyleTag(){if(typeof document>"u"||this.isApplied()||this.rootNode===null)return this.styleTag;const f=document.createElement("style");return f.type="text/css",f.id=this.id,(this.rootNode??document.head).appendChild(f),f}addRule(f){const e=this.storedClasses[f.key];return Ef(e)?e:(this.storedClasses[f.key]=f.hash,this.storedStyles[f.hash]=[f.property,f.value],this.append(f.toString()),f.hash)}};function ne(f,e){for(const a in f)e(a.trim(),f[a])}function w(...f){const e=f.reduce((a,n)=>(n instanceof Set?a.push(...n):typeof n=="string"?a.push(n):Array.isArray(n)?a.push(w(...n)):typeof n=="object"&&Object.entries(n).forEach(([i,u])=>{u&&a.push(i)}),a),[]);return kf(e," ").trim()}function c0(f,e){const a=new d0(f,e);return{create:n,getStyle:a.getStyle.bind(a),isApplied:a.isApplied.bind(a)};function n(i){const u={};return qe(a,i,new o0(a)).forEach(([o,d,s])=>{xf(a,d,s).forEach(c=>{r(o,c)})}),a.apply(),u;function r(o,d){u[o]=u[o]??new Set,u[o].add(d)}}}function qe(f,e,a){const n=[];return ne(e,(i,u)=>{if(Be(i))return qe(f,u,a.addPrecondition(i)).forEach(r=>n.push(r));n.push([i,e[i],a.addScope(i)])}),n}function xf(f,e,a){const n=new Set;return ne(e,(i,u)=>{let r=[];if(Be(i))r=xf(f,u,a.addPostcondition(i));else if(n0(i))r=Xf(u);else if(We(i))r=l0(f,u,i,a);else if(Fe(i))r=s0(f,u,a);else if(He(i,u)){const o=a.createRule(i,u);f.addRule(o),n.add(o.hash)}return $e(r,n)}),n}function $e(f,e){return f.forEach(a=>e.add(a)),e}function s0(f,e,a){const n=new Set,i=[];if(ne(e,(u,r)=>{if(He(u,r)){i.push(Xe.genRule(u,r));return}const o=xf(f,r??{},a);$e(o,n)}),!a.scopeClassName)return n;if(i.length){const u=i.join(" ");f.append(`${_f(a.preconditions,{right:a.scopeClassName})} {${u}}`)}return n.add(a.scopeClassName),n}function l0(f,e,a,n){f.append(a+" {");const i=xf(f,e,n);return f.append("}"),i}function C(){return C=Object.assign?Object.assign.bind():function(f){for(var e=1;e=0)&&(a[i]=f[i]);return a}function L0(f,e){if(f){if(typeof f=="string")return ve(f,e);var a=Object.prototype.toString.call(f).slice(8,-1);if(a==="Object"&&f.constructor&&(a=f.constructor.name),a==="Map"||a==="Set")return Array.from(f);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return ve(f,e)}}function ve(f,e){(e==null||e>f.length)&&(e=f.length);for(var a=0,n=new Array(e);a=f.length?{done:!0}:{done:!1,value:f[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g;(function(f){f.hiddenOnSearch="epr-hidden-on-search",f.searchActive="epr-search-active",f.hidden="epr-hidden",f.visible="epr-visible",f.active="epr-active",f.emoji="epr-emoji",f.category="epr-emoji-category",f.label="epr-emoji-category-label",f.categoryContent="epr-emoji-category-content",f.emojiHasVariations="epr-emoji-has-variations",f.scrollBody="epr-body",f.emojiList="epr-emoji-list",f.external="__EmojiPicker__",f.emojiPicker="EmojiPickerReact",f.open="epr-open",f.vertical="epr-vertical",f.horizontal="epr-horizontal",f.variationPicker="epr-emoji-variation-picker",f.darkTheme="epr-dark-theme",f.autoTheme="epr-auto-theme"})(g||(g={}));function k(){for(var f=arguments.length,e=new Array(f),a=0;a0}function R0(f,e){return e?wf(f).find(function(a){return a.includes(e)}):N(f)}function $(f){if(f){if(X[f])return X[f];var e=te(f);return X[e]}}var Af=Object.values(cf).flat();function O0(f){cf[L.CUSTOM].length=0,f.forEach(function(e){var a=U0(e);cf[L.CUSTOM].push(a),!X[a[E.unified]]&&(Af.push(a),X[a[E.unified]]=a,ia(a))})}function U0(f){var e;return e={},e[E.name]=f.names.map(function(a){return a.toLowerCase()}),e[E.unified]=f.id.toLowerCase(),e[E.added_in]="0",e[E.imgUrl]=f.imgUrl,e}var X={};setTimeout(function(){Af.reduce(function(f,e){return f[N(e)]=e,ef(e)&&wf(e).forEach(function(a){f[a]=e}),f},X)});function G0(f){var e=f.split("-"),a=e[1];return Df.includes(a)?a:null}var Z0=["2640-fe0f","2642-fe0f","2695-fe0f"],Sf="Search",B0="No results found",ta=" found. Use up and down arrow keys to navigate.",H0="1 result"+ta,W0="%n results"+ta;function Ne(f){var e,a;f===void 0&&(f={});var n=ra(),i=Object.assign(n.previewConfig,(e=f.previewConfig)!=null?e:{}),u=Object.assign(n,f),r=C0(f.categories,{suggestionMode:u.suggestedEmojisMode});O0((a=u.customEmojis)!=null?a:[]);var o=u.searchDisabled?q.PREVIEW:u.skinTonePickerLocation;return C({},u,{categories:r,previewConfig:i,skinTonePickerLocation:o})}function ra(){return{autoFocusSearch:!0,categories:aa(),className:"",customEmojis:[],defaultSkinTone:Q.NEUTRAL,emojiStyle:D.APPLE,emojiVersion:null,getEmojiUrl:ua,height:450,lazyLoadEmojis:!1,previewConfig:C({},F0),searchDisabled:!1,searchPlaceHolder:Sf,searchPlaceholder:Sf,skinTonePickerLocation:q.SEARCH,skinTonesDisabled:!1,style:{},suggestedEmojisMode:df.FREQUENT,theme:H.LIGHT,unicodeToHide:new Set(Z0),width:350,reactionsDefaultOpen:!1,reactions:b0,open:!0}}var F0={defaultEmoji:"1f60a",defaultCaption:"What's your mood?",showPreview:!0},V0=["children"],oa=t.createContext(ra());function K0(f){var e=f.children,a=fa(f,V0),n=X0(a);return t.createElement(oa.Provider,{value:n},e)}function X0(f){var e,a=t.useState(function(){return Ne(f)}),n=a[0],i=a[1];return t.useEffect(function(){_0(f,n)||i(Ne(f))},[(e=f.customEmojis)==null?void 0:e.length,f.open]),n}function p(){return t.useContext(oa)}function _0(f,e){var a,n;return((a=f.customEmojis)==null?void 0:a.length)===((n=e.customEmojis)==null?void 0:n.length)&&f.open===e.open}var da=Nf.createContext({});function q0(){var f=Nf.useContext(da);return f}function $0(f){var e=Nf.useRef({onEmojiClick:f.onEmojiClick||ke,onReactionClick:f.onReactionClick||f.onEmojiClick});return Nf.useEffect(function(){e.current.onEmojiClick=f.onEmojiClick||ke,e.current.onReactionClick=f.onReactionClick||f.onEmojiClick},[f.onEmojiClick,f.onReactionClick]),e}function ke(){}var sf;(function(f){f.REACTIONS="reactions",f.PICKER="picker"})(sf||(sf={}));function f1(){var f,e=p(),a=e.searchPlaceHolder,n=e.searchPlaceholder;return(f=[a,n].find(function(i){return i!==Sf}))!=null?f:Sf}function e1(){var f=p(),e=f.defaultSkinTone;return e}function ca(){var f=p(),e=f.skinTonesDisabled;return e}function F(){var f=p(),e=f.emojiStyle;return e}function a1(){var f=p(),e=f.autoFocusSearch;return e}function sa(){var f=p(),e=f.categories;return e}function n1(){var f=p(),e=f.customEmojis;return e}function i1(){var f=p(),e=f.open;return e}function u1(f){var e,a=q0(),n=a.current,i=(e=f===sf.REACTIONS?n.onReactionClick:n.onEmojiClick)!=null?e:n.onEmojiClick;return i||function(){}}function la(){var f=p(),e=f.previewConfig;return e}function t1(){var f=p(),e=f.theme;return e}function r1(){var f=p(),e=f.suggestedEmojisMode;return e}function o1(){var f=p(),e=f.lazyLoadEmojis;return e}function d1(){var f=p(),e=f.className;return e}function c1(){var f=p(),e=f.height,a=f.width,n=f.style;return C({height:De(e),width:De(a)},n)}function s1(){var f=p(),e=f.reactionsDefaultOpen;return e}function l1(){var f=p(),e=f.emojiVersion;return e}function Ma(){var f=p(),e=f.searchDisabled;return e}function La(){var f=p(),e=f.skinTonePickerLocation;return e}function M1(){var f=p(),e=f.unicodeToHide;return e}function L1(){var f=p(),e=f.reactions;return e}function af(){var f=p(),e=f.getEmojiUrl;return e}function De(f){return typeof f=="number"?f+"px":f}function g1(f){var e=f>0,a=f>1;return e?a?W0.replace("%n",f.toString()):H0:B0}function ga(f,e){if(!f||!e)return 0;var a=f.getBoundingClientRect().width,n=e.getBoundingClientRect().width;return Math.floor(a/n)}function wa(f,e){if(!f||!e)return 0;var a=e.getBoundingClientRect().width,n=e.getBoundingClientRect().left,i=f.getBoundingClientRect().left;return Math.floor((n-i)/a)}function ba(f,e){if(!f||!e)return 0;var a=e.getBoundingClientRect().height,n=e.getBoundingClientRect().top,i=f.getBoundingClientRect().top;return Math.round((n-i)/a)}function w1(f,e){if(!f||!e)return!1;var a=e.getBoundingClientRect().height,n=e.getBoundingClientRect().top,i=f.getBoundingClientRect().top,u=f.getBoundingClientRect().height;return Math.round(n-i+a)f.length?[]:re(f,n,a)}function ja(f,e,a,n){var i=re(f,e,a);return i[n]||i[i.length-1]||null}function j1(f,e,a,n){var i=b1(f,e,a);return i[n]||i[i.length-1]||null}function m1(f,e,a,n){var i=re(f,e-1,a);return i[n]||i[i.length-1]||null}function C1(f,e){if(!f||!e.length)return null;var a=f.getBoundingClientRect().top,n=f.getBoundingClientRect().bottom,i=e.find(function(u){var r=u.getBoundingClientRect().top,o=u.getBoundingClientRect().bottom;return r>=a&&r<=n||o>=a&&o<=n});return i||null}function y1(f){return!!f.nextElementSibling}var Tf="button"+k(g.emoji),I1=[Tf,k(g.visible),":not("+k(g.hidden)+")"].join("");function Y(f){var e;return(e=f?.closest(Tf))!=null?e:null}function oe(f){var e=pa(f),a=ce(f);if(!e)return[];var n=$(a??e);return n?[n,a]:[]}function p1(f){var e;return!!(f?.matches(Tf)||!(f==null||(e=f.parentElement)==null)&&e.matches(Tf))}function Se(f){var e;return(e=f?.clientHeight)!=null?e:0}function ma(f){if(!f)return 0;var e=Y(f),a=O(e),n=de(a);return Te(e)+Te(a)+n}function de(f){var e,a;if(!f)return 0;var n=f.querySelector(k(g.categoryContent));return((e=f?.clientHeight)!=null?e:0)-((a=n?.clientHeight)!=null?a:0)}function v1(f){return f?ya(f)e}function z1(f){t.useEffect(function(){f(!0)},[f])}function E1(f){var e=f.children,a=Da(),n=e1(),i=s1(),u=t.useRef(of),r=t.useRef(!1),o=t.useRef(!1),d=t.useRef(a),s=Ee(Date.now(),200),c=Ee("",100),l=t.useState(!1),M=t.useState(n),b=t.useState(null),j=t.useState(new Set),y=t.useState(null),v=t.useState(i),T=t.useState(!1),I=T[0],P=T[1];return z1(P),t.createElement(x.Provider,{value:{activeCategoryState:b,activeSkinTone:M,disallowClickRef:r,disallowMouseRef:o,disallowedEmojisRef:d,emojiVariationPickerState:y,emojisThatFailedToLoadState:j,filterRef:u,isPastInitialLoad:I,searchTerm:c,skinToneFanOpenState:l,suggestedUpdateState:s,reactionsModeState:v}},e)}var x=t.createContext({activeCategoryState:[null,function(){}],activeSkinTone:[Q.NEUTRAL,function(){}],disallowClickRef:{current:!1},disallowMouseRef:{current:!1},disallowedEmojisRef:{current:{}},emojiVariationPickerState:[null,function(){}],emojisThatFailedToLoadState:[new Set,function(){}],filterRef:{current:{}},isPastInitialLoad:!0,searchTerm:["",function(){return new Promise(function(){})}],skinToneFanOpenState:[!1,function(){}],suggestedUpdateState:[Date.now(),function(){}],reactionsModeState:[!1,function(){}]});function Le(){var f=t.useContext(x),e=f.filterRef;return e}function x1(){var f=t.useContext(x),e=f.disallowClickRef;return e}function ge(){var f=t.useContext(x),e=f.disallowMouseRef;return e}function Pf(){var f=t.useContext(x),e=f.reactionsModeState;return e}function Jf(){var f=t.useContext(x),e=f.searchTerm;return e}function we(){var f=t.useContext(x),e=f.activeSkinTone;return e}function Sa(){var f=t.useContext(x),e=f.emojisThatFailedToLoadState;return e}function A1(){var f=t.useContext(x),e=f.isPastInitialLoad;return e}function nf(){var f=t.useContext(x),e=f.emojiVariationPickerState;return e}function bf(){var f=t.useContext(x),e=f.skinToneFanOpenState;return e}function Ta(){var f=t.useContext(x),e=f.suggestedUpdateState,a=e[0],n=e[1];return[a,function(){n(Date.now())}]}function za(f){return f.split("-").map(function(e){return String.fromCodePoint(parseInt(e,16))}).join("")}var Ea="epr_suggested";function xa(f){try{var e,a,n;if(!((e=window)!=null&&e.localStorage))return[];var i=JSON.parse((a=(n=window)==null?void 0:n.localStorage.getItem(Ea))!=null?a:"[]");return f===df.FREQUENT?i.sort(function(u,r){return r.count-u.count}):i}catch{return[]}}function Q1(f,e){var a=xa(),n=N(f,e),i=N(f),u=a.find(function(d){var s=d.unified;return s===n}),r;u?r=[u].concat(a.filter(function(d){return d!==u})):(u={unified:n,original:i,count:0},r=[u].concat(a)),u.count++,r.length=Math.min(r.length,14);try{var o;(o=window)==null||o.localStorage.setItem(Ea,JSON.stringify(r))}catch{}}function Y1(f){return f.category===L.CUSTOM}function Aa(f){return f.imgUrl!==void 0}function V(){var f=nf(),e=f[0],a=f[1],n=bf(),i=n[0],u=n[1],r=t.useCallback(function(){e&&a(null),i&&u(!1)},[e,i,a,u]);return r}function Qa(){var f=nf(),e=f[0],a=bf(),n=a[0];return function(){return!!e||n}}function S(f){f&&requestAnimationFrame(function(){f.focus()})}function Ya(f){if(f){var e=f.previousElementSibling;S(e)}}function Pa(f){if(f){var e=f.nextElementSibling;S(e)}}function Ja(f){if(f){var e=f.firstElementChild;S(e)}}function P1(f){var e=f.children,a=t.useRef(null),n=t.useRef(null),i=t.useRef(null),u=t.useRef(null),r=t.useRef(null),o=t.useRef(null),d=t.useRef(null),s=t.useRef(null);return t.createElement(Ra.Provider,{value:{AnchoredEmojiRef:n,BodyRef:i,CategoryNavigationRef:o,PickerMainRef:a,SearchInputRef:u,SkinTonePickerRef:r,VariationPickerRef:d,ReactionsRef:s}},e)}var Ra=t.createContext({AnchoredEmojiRef:t.createRef(),BodyRef:t.createRef(),CategoryNavigationRef:t.createRef(),PickerMainRef:t.createRef(),SearchInputRef:t.createRef(),SkinTonePickerRef:t.createRef(),VariationPickerRef:t.createRef(),ReactionsRef:t.createRef()});function U(){return t.useContext(Ra)}function jf(){return U().PickerMainRef}function Rf(){return U().AnchoredEmojiRef}function Oa(){var f=Rf();return function(e){e===null&&f.current!==null&&S(f.current),f.current=e}}function A(){return U().BodyRef}function J1(){return U().ReactionsRef}function G(){return U().SearchInputRef}function be(){return U().SkinTonePickerRef}function je(){return U().CategoryNavigationRef}function R1(){return U().VariationPickerRef}function Ua(){var f=Oa(),e=nf(),a=e[1];return function(i){var u=oe(i),r=u[0];r&&(f(i),a(r))}}function Ga(f,e){var a=t.useRef(),n=Ua(),i=x1(),u=nf(),r=u[1],o=V(),d=we(),s=d[0],c=u1(e),l=Ta(),M=l[1],b=af(),j=F(),y=t.useCallback(function(P){if(!i.current){o();var Z=xe(P),B=Z[0],J=Z[1];if(!(!B||!J)){var Ie=G0(J)||s;M(),Q1(B,Ie),c(O1(B,Ie,j,b),P)}}},[s,o,i,c,M,b,j]),v=t.useCallback(function(P){var Z;a.current&&clearTimeout(a.current);var B=xe(P),J=B[0];!J||!ef(J)||(a.current=(Z=window)==null?void 0:Z.setTimeout(function(){i.current=!0,a.current=void 0,o(),n(P.target),r(J)},500))},[i,o,n,r]),T=t.useCallback(function(){a.current?(clearTimeout(a.current),a.current=void 0):i.current&&requestAnimationFrame(function(){i.current=!1})},[i]);t.useEffect(function(){if(f.current){var I=f.current;return I.addEventListener("click",y,{passive:!0}),I.addEventListener("mousedown",v,{passive:!0}),I.addEventListener("mouseup",T,{passive:!0}),function(){I?.removeEventListener("click",y),I?.removeEventListener("mousedown",v),I?.removeEventListener("mouseup",T)}}},[f,y,v,T])}function xe(f){var e=f?.target;return p1(e)?oe(e):[]}function O1(f,e,a,n){var i=gf(f);if(Aa(f)){var u=N(f);return{activeSkinTone:e,emoji:u,getImageUrl:function(){return f.imgUrl},imageUrl:f.imgUrl,isCustom:!0,names:i,unified:u,unifiedWithoutSkinTone:u}}var r=N(f,e);return{activeSkinTone:e,emoji:za(r),getImageUrl:function(d){return d===void 0&&(d=a??D.APPLE),n(r,d)},imageUrl:n(r,a??D.APPLE),isCustom:!1,names:i,unified:r,unifiedWithoutSkinTone:N(f)}}function mf(f){return t.createElement("button",Object.assign({type:"button"},f,{className:w(U1.button,f.className)}),f.children)}var U1=m.create({button:{".":"epr-btn",cursor:"pointer",border:"0",background:"none",outline:"none"}});function G1(f){var e,a=f.emojiNames,n=f.unified,i=f.hidden,u=f.hiddenOnSearch,r=f.showVariations,o=r===void 0?!0:r,d=f.hasVariations,s=f.children,c=f.className,l=f.noBackground,M=l===void 0?!1:l;return t.createElement(mf,{className:w(Hf.emoji,i&&ie.hidden,u&&W.hiddenOnSearch,(e={},e[g.visible]=!i&&!u,e),!!(d&&o)&&Hf.hasVariations,M&&Hf.noBackground,c),"data-unified":n,"aria-label":a[0],"data-full-name":a},s)}var Hf=m.create({emoji:{".":g.emoji,position:"relative",width:"var(--epr-emoji-fullsize)",height:"var(--epr-emoji-fullsize)",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",maxWidth:"var(--epr-emoji-fullsize)",maxHeight:"var(--epr-emoji-fullsize)",borderRadius:"8px",overflow:"hidden",transition:"background-color 0.2s",":hover":{backgroundColor:"var(--epr-emoji-hover-color)"},":focus":{backgroundColor:"var(--epr-focus-bg-color)"}},noBackground:{background:"none",":hover":{backgroundColor:"transparent",background:"none"},":focus":{backgroundColor:"transparent",background:"none"}},hasVariations:{".":g.emojiHasVariations,":after":{content:"",display:"block",width:"0",height:"0",right:"0px",bottom:"1px",position:"absolute",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",transform:"rotate(135deg)",borderBottom:"4px solid var(--epr-emoji-variation-indicator-color)",zIndex:"var(--epr-emoji-variations-indictator-z-index)"},":hover:after":{borderBottom:"4px solid var(--epr-emoji-variation-indicator-color-hover)"}}}),zf=m.create({external:{".":g.external,fontSize:"0"},common:{alignSelf:"center",justifySelf:"center",display:"block"}});function Ae(f){var e=f.emojiName,a=f.style,n=f.lazyLoad,i=n===void 0?!1:n,u=f.imgUrl,r=f.onError,o=f.className;return t.createElement("img",{src:u,alt:e,className:w(Z1.emojiImag,zf.external,zf.common,o),loading:i?"lazy":"eager",onError:r,style:a})}var Z1=m.create({emojiImag:{".":"epr-emoji-img",maxWidth:"var(--epr-emoji-fullsize)",maxHeight:"var(--epr-emoji-fullsize)",minWidth:"var(--epr-emoji-fullsize)",minHeight:"var(--epr-emoji-fullsize)",padding:"var(--epr-emoji-padding)"}});function B1(f){var e=f.unified,a=f.style,n=f.className;return t.createElement("span",{className:w(H1.nativeEmoji,zf.common,zf.external,n),"data-unified":e,style:a},za(e))}var H1=m.create({nativeEmoji:{".":"epr-emoji-native",fontFamily:'"Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "EmojiOne Color", "Android Emoji"!important',position:"relative",lineHeight:"100%",fontSize:"var(--epr-emoji-size)",textAlign:"center",alignSelf:"center",justifySelf:"center",letterSpacing:"0",padding:"var(--epr-emoji-padding)"}});function fe(f){var e=f.emoji,a=f.unified,n=f.emojiStyle,i=f.size,u=f.lazyLoad,r=f.getEmojiUrl,o=r===void 0?ua:r,d=f.className,s=Sa(),c=s[1],l={};i&&(l.width=l.height=l.fontSize=i+"px");var M=e||$(a);if(!M)return null;if(Aa(M))return t.createElement(Ae,{style:l,emojiName:a,emojiStyle:D.NATIVE,lazyLoad:u,imgUrl:M.imgUrl,onError:b,className:d});return t.createElement(t.Fragment,null,n===D.NATIVE?t.createElement(B1,{unified:a,style:l,className:d}):t.createElement(Ae,{style:l,emojiName:$f(M),emojiStyle:n,lazyLoad:u,imgUrl:o(a,n),onError:b,className:d}));function b(){c(function(j){return new Set(j).add(a)})}}function Of(f){var e=f.emoji,a=f.unified,n=f.hidden,i=f.hiddenOnSearch,u=f.emojiStyle,r=f.showVariations,o=r===void 0?!0:r,d=f.size,s=f.lazyLoad,c=f.getEmojiUrl,l=f.className,M=f.noBackground,b=M===void 0?!1:M,j=ef(e);return t.createElement(G1,{hasVariations:j,showVariations:o,hidden:n,hiddenOnSearch:i,emojiNames:gf(e),unified:a,noBackground:b},t.createElement(fe,{unified:a,emoji:e,size:d,emojiStyle:u,lazyLoad:s,getEmojiUrl:c,className:l}))}var W1="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjgwcHgiIHZpZXdCb3g9IjAgMCAyMCA4MCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjAgODAiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBmaWxsPSIjODY4Njg2IiBkPSJNNS43LDEwLjRjMCwwLjEsMC4xLDAuMywwLjIsMC40QzYsMTAuOSw2LjEsMTEsNi4zLDExaDMuNHYzLjRjMCwwLjEsMC4xLDAuMywwLjIsMC40CgljMC4xLDAuMSwwLjIsMC4yLDAuNCwwLjJjMC4zLDAsMC41LTAuMiwwLjUtMC41di0zLjRoMy40YzAuMywwLDAuNS0wLjIsMC41LTAuNXMtMC4yLTAuNS0wLjUtMC41aC0zLjRWNi43YzAtMC4zLTAuMi0wLjUtMC41LTAuNQoJQzkuOCw2LDkuNiw2LjIsOS42LDYuNXYzLjRINi4yQzUuOSw5LjksNS43LDEwLjEsNS43LDEwLjRMNS43LDEwLjR6Ii8+CjxwYXRoIGZpbGw9IiMzMzcxQjciIGQ9Ik01LjcsMzAuNGMwLDAuMSwwLjEsMC4zLDAuMiwwLjRTNi4xLDMxLDYuMywzMWgzLjR2My40YzAsMC4xLDAuMSwwLjMsMC4yLDAuNGMwLjEsMC4xLDAuMiwwLjIsMC40LDAuMgoJYzAuMywwLDAuNS0wLjIsMC41LTAuNXYtMy40aDMuNGMwLjMsMCwwLjUtMC4yLDAuNS0wLjVzLTAuMi0wLjUtMC41LTAuNWgtMy40di0zLjRjMC0wLjMtMC4yLTAuNS0wLjUtMC41cy0wLjUsMC4yLTAuNSwwLjV2My40SDYuMgoJQzUuOSwyOS45LDUuNywzMC4xLDUuNywzMC40TDUuNywzMC40eiIvPgo8cGF0aCBmaWxsPSIjQzBDMEJGIiBkPSJNNS43LDUwLjRjMCwwLjEsMC4xLDAuMywwLjIsMC40QzYsNTAuOSw2LjEsNTEsNi4zLDUxaDMuNHYzLjRjMCwwLjEsMC4xLDAuMywwLjIsMC40CgljMC4xLDAuMSwwLjIsMC4yLDAuNCwwLjJjMC4zLDAsMC41LTAuMiwwLjUtMC41di0zLjRoMy40YzAuMywwLDAuNS0wLjIsMC41LTAuNXMtMC4yLTAuNS0wLjUtMC41aC0zLjR2LTMuNGMwLTAuMy0wLjItMC41LTAuNS0wLjUKCXMtMC41LDAuMi0wLjUsMC41djMuNEg2LjJDNS45LDQ5LjksNS43LDUwLjEsNS43LDUwLjRMNS43LDUwLjR6Ii8+CjxwYXRoIGZpbGw9IiM2QUE5REQiIGQ9Ik01LjcsNzAuNGMwLDAuMSwwLjEsMC4zLDAuMiwwLjRTNi4xLDcxLDYuMyw3MWgzLjR2My40YzAsMC4xLDAuMSwwLjMsMC4yLDAuNGMwLjEsMC4xLDAuMiwwLjIsMC40LDAuMgoJYzAuMywwLDAuNS0wLjIsMC41LTAuNXYtMy40aDMuNGMwLjMsMCwwLjUtMC4yLDAuNS0wLjVzLTAuMi0wLjUtMC41LTAuNWgtMy40di0zLjRjMC0wLjMtMC4yLTAuNS0wLjUtMC41cy0wLjUsMC4yLTAuNSwwLjV2My40SDYuNAoJQzUuOSw2OS45LDUuNyw3MC4xLDUuNyw3MC40TDUuNyw3MC40eiIvPgo8L3N2Zz4=";function F1(){var f=Pf(),e=f[1];return t.createElement(mf,{"aria-label":"Show all Emojis",title:"Show all Emojis",tabIndex:0,className:w(V1.plusSign),onClick:function(){return e(!1)}})}var V1=m.create(C({plusSign:{fontSize:"20px",padding:"17px",color:"var(--epr-text-color)",borderRadius:"50%",textAlign:"center",lineHeight:"100%",width:"20px",height:"20px",display:"flex",justifyContent:"center",alignItems:"center",transition:"background-color 0.2s ease-in-out",":after":{content:"",minWidth:"20px",minHeight:"20px",backgroundImage:"url("+W1+")",backgroundColor:"transparent",backgroundRepeat:"no-repeat",backgroundSize:"20px",backgroundPositionY:"0"},":hover":{color:"var(--epr-highlight-color)",backgroundColor:"var(--epr-hover-bg-color-reduced-opacity)",":after":{backgroundPositionY:"-20px"}},":focus":{color:"var(--epr-highlight-color)",backgroundColor:"var(--epr-hover-bg-color-reduced-opacity)",":after":{backgroundPositionY:"-40px"}}}},R("plusSign",{":after":{backgroundPositionY:"-40px"},":hover:after":{backgroundPositionY:"-60px"}})));function K1(){var f=Pf(),e=f[0],a=J1(),n=L1();Ga(a,sf.REACTIONS);var i=F();return e?t.createElement("ul",{className:w(Qe.list,!e&&ie.hidden),ref:a},n.map(function(u){return t.createElement("li",{key:u},t.createElement(Of,{emoji:$(u),emojiStyle:i,unified:u,showVariations:!1,className:w(Qe.emojiButton),noBackground:!0}))}),t.createElement("li",null,t.createElement(F1,null))):null}var Qe=m.create({list:{listStyle:"none",margin:"0",padding:"0 5px",display:"flex",justifyContent:"space-between",alignItems:"center",height:"100%"},emojiButton:{":hover":{transform:"scale(1.2)"},":focus":{transform:"scale(1.2)"},":active":{transform:"scale(1.1)"},transition:"transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.5)"}});function X1(){var f=ge();return function(){f.current=!0}}function Za(){var f=ge();return function(){f.current=!1}}function Ba(){var f=ge();return function(){return f.current}}function _1(){var f=A(),e=Za(),a=Ba();t.useEffect(function(){var n=f.current;n?.addEventListener("mousemove",i,{passive:!0});function i(){a()&&e()}return function(){n?.removeEventListener("mousemove",i)}},[f,e,a])}function q1(f){var e=V();t.useEffect(function(){var a=f.current;if(!a)return;a.addEventListener("scroll",n,{passive:!0});function n(){e()}return function(){a?.removeEventListener("scroll",n)}},[f,e])}function Ha(f,e){e===void 0&&(e=0);var a=Ca(f);a&&requestAnimationFrame(function(){a.scrollTop=e+1})}function $1(f,e){var a=Ca(f);a&&requestAnimationFrame(function(){a.scrollTop=a.scrollTop+e})}function fn(){var f=A();return t.useCallback(function(e){requestAnimationFrame(function(){f.current&&(f.current.scrollTop=e)})},[f])}function Uf(f){if(!(!f||!v1(f))&&!f.closest(k(g.variationPicker))){var e=Ia(f),a=ya(f);$1(e,-(de(O(f))-a))}}function K(){var f=G();return t.useCallback(function(){S(f.current)},[f])}function en(){var f=be();return t.useCallback(function(){f.current&&Ja(f.current)},[f])}function Wa(){var f=je();return t.useCallback(function(){f.current&&Ja(f.current)},[f])}function an(){var f=Le();return function e(a){if(typeof a=="function")return e(a(f.current));f.current=a}}function Fa(){var f=me(),e=G(),a=K();return function(){e.current&&(e.current.value=""),f(""),a()}}function nn(){var f=G(),e=me();return function(n){f.current?(f.current.value=""+f.current.value+n,e(ee(f.current.value))):e(ee(n))}}function un(){var f=G(),e=Le(),a=an(),n=me(),i=Jf(),u=i[0],r=sn(e.current,u);return{onChange:o,searchTerm:u,SearchInputRef:f,statusSearchResults:r};function o(d){var s=e.current,c=d.toLowerCase();if(s!=null&&s[c]||c.length<=1)return n(c);var l=cn(c,s);if(!l)return n(c);a(function(M){var b;return Object.assign(M,(b={},b[c]=tn(l,c),b))}),n(c)}}function me(){var f=Jf(),e=f[1],a=jf();return function(i){requestAnimationFrame(function(){e(i&&i?.toLowerCase()).then(function(){Ha(a.current,0)})})}}function tn(f,e){var a={};for(var n in f){var i=f[n];rn(i,e)&&(a[n]=i)}return a}function rn(f,e){return gf(f).some(function(a){return a.includes(e)})}function on(){var f=Le(),e=f.current,a=Jf(),n=a[0];return function(i){return dn(i,e,n)}}function dn(f,e,a){var n;return!e||!a?!1:!((n=e[a])!=null&&n[f])}function cn(f,e){if(!e)return null;if(e[f])return e[f];var a=Object.keys(e).sort(function(n,i){return i.length-n.length}).find(function(n){return f.includes(n)});return a?e[a]:null}function ee(f){return!f||typeof f!="string"?"":f.trim().toLowerCase()}function sn(f,e){var a;if(!(f!=null&&f[e]))return"";var n=((a=Object.entries(f?.[e]))==null?void 0:a.length)||0;return g1(n)}function ln(){var f=Sa(),e=f[0],a=on();return function(n){var i=N(n),u=e.has(i),r=a(i);return{failedToLoad:u,filteredOut:r,hidden:u||r}}}function Va(f){var e=f.categoryConfig,a=f.children,n=f.hidden,i=f.hiddenOnSearch,u=ue(e),r=na(e);return t.createElement("li",{className:w(Wf.category,n&&ie.hidden,i&&W.hiddenOnSearch),"data-name":u,"aria-label":r},t.createElement("h2",{className:w(Wf.label)},r),t.createElement("div",{className:w(Wf.categoryContent)},a))}var Wf=m.create({category:{".":g.category,":not(:has(.epr-visible))":{display:"none"}},categoryContent:{".":g.categoryContent,display:"grid",gridGap:"0",gridTemplateColumns:"repeat(auto-fill, var(--epr-emoji-fullsize))",justifyContent:"space-between",margin:"var(--epr-category-padding)",position:"relative"},label:{".":g.label,alignItems:"center",backdropFilter:"blur(3px)",backgroundColor:"var(--epr-category-label-bg-color)",color:"var(--epr-category-label-text-color)",display:"flex",fontSize:"16px",fontWeight:"bold",height:"var(--epr-category-label-height)",margin:"0",padding:"var(--epr-category-label-padding)",position:"sticky",textTransform:"capitalize",top:"0",width:"100%",zIndex:"var(--epr-category-label-z-index)"}}),Ff=!1;function Mn(){var f=t.useState(Ff),e=f[0],a=f[1];return t.useEffect(function(){a(!0),Ff=!0},[]),e||Ff}function Ln(f){var e=f.categoryConfig,a=Ta(),n=a[0],i=Mn(),u=r1(),r=af(),o=t.useMemo(function(){var s;return(s=xa(u))!=null?s:[]},[n,u]),d=F();return i?t.createElement(Va,{categoryConfig:e,hiddenOnSearch:!0,hidden:o.length===0},o.map(function(s){var c=$(s.original);return c?t.createElement(Of,{showVariations:!1,unified:s.unified,emojiStyle:d,emoji:c,key:s.unified,getEmojiUrl:r}):null})):null}function gn(){var f=sa(),e=t.useRef(0);return t.createElement("ul",{className:w(bn.emojiList)},f.map(function(a){var n=ue(a);return n===L.SUGGESTED?t.createElement(Ln,{key:n,categoryConfig:a}):t.createElement(wn,{key:n,category:n,categoryConfig:a,renderdCategoriesCountRef:e})}))}function wn(f){var e=f.category,a=f.categoryConfig,n=f.renderdCategoriesCountRef,i=ln(),u=o1(),r=F(),o=A1(),d=we(),s=d[0],c=S1(),l=af(),M=!ca(),b=!o&&n.current>0?[]:J0(e);b.length>0&&n.current++;var j=0,y=b.map(function(v){var T=N(v,s),I=i(v),P=I.failedToLoad,Z=I.filteredOut,B=I.hidden,J=c(v);return(B||J)&&j++,J?null:t.createElement(Of,{showVariations:M,key:T,emoji:v,unified:T,hidden:P,hiddenOnSearch:Z,emojiStyle:r,lazyLoad:u,getEmojiUrl:l})});return t.createElement(Va,{categoryConfig:a,hidden:j===y.length},y)}var bn=m.create({emojiList:{".":g.emojiList,listStyle:"none",margin:"0",padding:"0"}});function Gf(f){var e=Me(f);S(e),Uf(e)}function jn(f){var e=Me(f);S(e),e?.click()}function mn(f){S(ha(f))}function Cn(f){if(f){var e=Na(f);if(!e)return Gf(Yf(f));S(e),Uf(e)}}function yn(f){if(f){var e=le(f);if(!e)return mn(Qf(f));S(e),Uf(e)}}function In(f,e){if(f){var a=vn(f);if(!a)return e();S(a),Uf(a)}}function pn(f){if(f){var e=hn(f);return S(e)}}function vn(f){if(!f)return null;var e=ka(f),a=O(e),n=wa(e,f),i=ba(e,f),u=ga(e,f);if(i===0){var r=Qf(a);return r?ja(ff(r),-1,u,n):null}return m1(ff(e),i,u,n)}function hn(f){if(!f)return null;var e=ka(f),a=O(e),n=wa(e,f),i=ba(e,f),u=ga(e,f);if(!w1(e,f)){var r=Yf(a);return r?ja(ff(r),0,u,n):null}var o=j1(ff(e),i,u,n);return o}var Nn="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI1MHB4IgoJIGhlaWdodD0iMTVweCIgdmlld0JveD0iMCAwIDUwIDE1IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MCAxNSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnIGlkPSJMYXllcl8xIj4KPC9nPgo8ZyBpZD0iTGF5ZXJfMiI+Cgk8cGF0aCBmaWxsPSIjRkZGRkZGIiBzdHJva2U9IiNFOEU3RTciIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTEuODYtMC40M2w5LjgzLDExLjUzYzAuNTksMC42OSwxLjU2LDAuNjksMi4xNCwwbDkuODMtMTEuNTMiLz4KCTxwYXRoIGZpbGw9IiMwMTAyMDIiIHN0cm9rZT0iIzE1MTYxNyIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMjYuODYtMC40M2w5LjgzLDExLjUzYzAuNTksMC42OSwxLjU2LDAuNjksMi4xNCwwbDkuODMtMTEuNTMiLz4KPC9nPgo8L3N2Zz4=",_;(function(f){f[f.Up=0]="Up",f[f.Down=1]="Down"})(_||(_={}));function kn(){var f=Rf(),e=R1(),a=nf(),n=a[0],i=F(),u=Sn(e),r=u.getTop,o=u.getMenuDirection,d=Oa(),s=Dn(e),c=af(),l=Y(f.current),M=!!(n&&l&&ef(n)&&l.classList.contains(g.emojiHasVariations));t.useEffect(function(){M&&Gf(e.current)},[e,M,f]);var b,j;return!M&&f.current?d(null):(b=r(),j=s()),t.createElement("div",{ref:e,className:w(Cf.variationPicker,o()===_.Down&&Cf.pointingUp,M&&Cf.visible),style:{top:b}},M&&n?[N(n)].concat(wf(n)).slice(0,6).map(function(y){return t.createElement(Of,{key:y,emoji:n,unified:y,emojiStyle:i,showVariations:!1,getEmojiUrl:c})}):null,t.createElement("div",{className:w(Cf.pointer),style:j}))}function Dn(f){var e=Rf();return function(){var n={};if(!f.current)return n;if(e.current){var i=Y(e.current),u=h1(i);if(!i)return n;n.left=u+i?.clientWidth/2}return n}}function Sn(f){var e=Rf(),a=A(),n=_.Up;return{getMenuDirection:i,getTop:u};function i(){return n}function u(){n=_.Up;var r=0;if(!f.current)return 0;var o=Se(f.current);if(e.current){var d,s=a.current,c=Y(e.current),l=Se(c);r=ma(c);var M=(d=s?.scrollTop)!=null?d:0;M>r-o&&(n=_.Down,r+=l+o)}return r-o}}var Cf=m.create(C({variationPicker:{".":g.variationPicker,position:"absolute",right:"15px",left:"15px",padding:"5px",boxShadow:"0px 2px 5px rgba(0, 0, 0, 0.2)",borderRadius:"3px",display:"flex",alignItems:"center",justifyContent:"space-around",opacity:"0",visibility:"hidden",pointerEvents:"none",top:"-100%",border:"1px solid var(--epr-picker-border-color)",height:"var(--epr-emoji-variation-picker-height)",zIndex:"var(--epr-skin-variation-picker-z-index)",background:"var(--epr-emoji-variation-picker-bg-color)",transform:"scale(0.9)",transition:"transform 0.1s ease-out, opacity 0.2s ease-out"},visible:{opacity:"1",visibility:"visible",pointerEvents:"all",transform:"scale(1)"},pointingUp:{".":"pointing-up",transformOrigin:"center 0%",transform:"scale(0.9)"},".pointing-up":{pointer:{top:"0",transform:"rotate(180deg) translateY(100%) translateX(18px)"}},pointer:{".":"epr-emoji-pointer",content:"",position:"absolute",width:"25px",height:"15px",backgroundRepeat:"no-repeat",backgroundPosition:"0 0",backgroundSize:"50px 15px",top:"100%",transform:"translateX(-18px)",backgroundImage:"url("+Nn+")"}},R("pointer",{backgroundPosition:"-25px 0"})));function Tn(){var f=A();return q1(f),Ga(f,sf.PICKER),_1(),t.createElement("div",{className:w(zn.body,W.hiddenOnReactions),ref:f},t.createElement(kn,null),t.createElement(gn,null))}var zn=m.create({body:{".":g.scrollBody,flex:"1",overflowY:"scroll",overflowX:"hidden",position:"relative"}});function En(f,e){var a=A(),n=Ba(),i=Za();t.useEffect(function(){if(!f)return;var u=a.current;u?.addEventListener("keydown",d,{passive:!0}),u?.addEventListener("mouseover",s,!0),u?.addEventListener("focus",r,!0),u?.addEventListener("mouseout",o,{passive:!0}),u?.addEventListener("blur",o,!0);function r(c){var l=Y(c.target);if(!l)return o();var M=ce(l),b=pa(l);if(!M||!b)return o();e({unified:M,originalUnified:b})}function o(c){if(c){var l=c.relatedTarget;if(!Y(l))return e(null)}e(null)}function d(c){c.key==="Escape"&&e(null)}function s(c){if(!n()){var l=Y(c.target);l&&S(l)}}return function(){u?.removeEventListener("mouseover",s),u?.removeEventListener("mouseout",o),u?.removeEventListener("focus",r,!0),u?.removeEventListener("blur",o,!0),u?.removeEventListener("keydown",d)}},[a,f,e,n,i])}function Ce(){var f=La();return f===q.SEARCH}function Ka(){var f=La();return f===q.PREVIEW}var yf,lf;(function(f){f.ROW="FlexRow",f.COLUMN="FlexColumn"})(lf||(lf={}));function Xa(f){var e=f.children,a=f.className,n=f.style,i=n===void 0?{}:n,u=f.direction,r=u===void 0?lf.ROW:u;return t.createElement("div",{style:C({},i),className:w(Ye.flex,a,Ye[r])},e)}var Ye=m.create((yf={flex:{display:"flex"}},yf[lf.ROW]={flexDirection:"row"},yf[lf.COLUMN]={flexDirection:"column"},yf));function xn(f){var e=f.className,a=f.style,n=a===void 0?{}:a;return t.createElement("div",{style:C({flex:1},n),className:w(e)})}function An(f){var e=f.children,a=f.className,n=f.style;return t.createElement("div",{style:C({},n,{position:"absolute"}),className:a},e)}function Zf(f){var e=f.children,a=f.className,n=f.style;return t.createElement("div",{style:C({},n,{position:"relative"}),className:a},e)}function Qn(f){var e=f.isOpen,a=f.onClick,n=f.isActive,i=f.skinToneVariation,u=f.style;return t.createElement(mf,{style:u,onClick:a,className:w("epr-tone-"+i,Vf.tone,!e&&Vf.closedTone,n&&Vf.active),tabIndex:e?0:-1,"aria-pressed":n,"aria-label":"Skin tone "+Q0[i]})}var Vf=m.create({closedTone:{opacity:"0",zIndex:"0"},active:{".":"epr-active",zIndex:"1",opacity:"1"},tone:{".":"epr-tone",":hover":{boxShadow:"0 0 0 3px var(--epr-active-skin-hover-color)"},":focus":{boxShadow:"0 0 0 3px var(--epr-focus-bg-color)"},"&.epr-tone-neutral":{backgroundColor:"#ffd225"},"&.epr-tone-1f3fb":{backgroundColor:"#ffdfbd"},"&.epr-tone-1f3fc":{backgroundColor:"#e9c197"},"&.epr-tone-1f3fd":{backgroundColor:"#c88e62"},"&.epr-tone-1f3fe":{backgroundColor:"#a86637"},"&.epr-tone-1f3ff":{backgroundColor:"#60463a"}}}),rf=28;function Yn(){return t.createElement(Zf,{style:{height:rf}},t.createElement(An,{style:{bottom:0,right:0}},t.createElement(_a,{direction:Mf.VERTICAL})))}function _a(f){var e=f.direction,a=e===void 0?Mf.HORIZONTAL:e,n=be(),i=ca(),u=bf(),r=u[0],o=u[1],d=we(),s=d[0],c=d[1],l=V(),M=K();if(i)return null;var b=rf*Df.length+"px",j=r?b:rf+"px",y=a===Mf.VERTICAL;return t.createElement(Zf,{className:w(uf.skinTones,y&&uf.vertical,r&&uf.open,y&&r&&uf.verticalShadow),style:y?{flexBasis:j,height:j}:{flexBasis:j}},t.createElement("div",{className:w(uf.select),ref:n},Df.map(function(v,T){var I=v===s;return t.createElement(Qn,{key:v,skinToneVariation:v,isOpen:r,style:{transform:w(y?"translateY(-"+T*(r?rf:0)+"px)":"translateX(-"+T*(r?rf:0)+"px)",r&&I&&"scale(1.3)")},isActive:I,onClick:function(){r?(c(v),M()):o(!0),l()}})})))}var Mf;(function(f){f.VERTICAL="epr-vertical",f.HORIZONTAL="epr-horizontal"})(Mf||(Mf={}));var uf=m.create({skinTones:{".":"epr-skin-tones","--":{"--epr-skin-tone-size":"15px"},display:"flex",alignItems:"center",justifyContent:"flex-end",transition:"all 0.3s ease-in-out",padding:"10px 0"},vertical:{padding:"9px",alignItems:"flex-end",flexDirection:"column",borderRadius:"6px",border:"1px solid var(--epr-bg-color)"},verticalShadow:{boxShadow:"0px 0 7px var(--epr-picker-border-color)"},open:{backdropFilter:"blur(5px)",background:"var(--epr-skin-tone-picker-menu-color)",".epr-active:after":{content:"",position:"absolute",top:"-2px",left:"-2px",right:"-2px",bottom:"-2px",borderRadius:"5px",border:"1px solid var(--epr-active-skin-tone-indicator-border-color)"}},select:{".":"epr-skin-tone-select",position:"relative",width:"var(--epr-skin-tone-size)",height:"var(--epr-skin-tone-size)","> button":{width:"var(--epr-skin-tone-size)",display:"block",cursor:"pointer",borderRadius:"4px",height:"var(--epr-skin-tone-size)",position:"absolute",right:"0",transition:"transform 0.3s ease-in-out, opacity 0.35s ease-in-out",zIndex:"0",boxShadow:"0 0 0 0px var(--epr-active-skin-hover-color)"}}});function Pn(){var f=la(),e=Ka();return f.showPreview?t.createElement(Xa,{className:w(vf.preview,W.hiddenOnReactions)},t.createElement(Jn,null),t.createElement(xn,null),e?t.createElement(Yn,null):null):null}function Jn(){var f,e=la(),a=t.useState(null),n=a[0],i=a[1],u=F(),r=nf(),o=r[0],d=af();En(e.showPreview,i);var s=$((f=n?.unified)!=null?f:n?.originalUnified),c=s!=null&&n!=null;return t.createElement(l,null);function l(){var M=o??$(e.defaultEmoji);if(!M)return null;var b=o?$f(o):e.defaultCaption;return t.createElement(t.Fragment,null,t.createElement("div",null,c?t.createElement(fe,{unified:n?.unified,emoji:s,emojiStyle:u,size:45,getEmojiUrl:d,className:w(vf.emoji)}):M?t.createElement(fe,{unified:N(M),emoji:M,emojiStyle:u,size:45,getEmojiUrl:d,className:w(vf.emoji)}):null),t.createElement("div",{className:w(vf.label)},c?$f(s):b))}}var vf=m.create({preview:{alignItems:"center",borderTop:"1px solid var(--epr-preview-border-color)",height:"var(--epr-preview-height)",padding:"0 var(--epr-horizontal-padding)",position:"relative",zIndex:"var(--epr-preview-z-index)"},label:{color:"var(--epr-preview-text-color)",fontSize:"var(--epr-preview-text-size)",padding:"var(--epr-preview-text-padding)",textTransform:"capitalize"},emoji:{padding:"0"}});function Rn(f){var e;return(e=f?.getAttribute("data-name"))!=null?e:null}function On(f){var e=A();t.useEffect(function(){var a=new Map,n=e.current,i=new IntersectionObserver(function(u){if(n){for(var r=g0(u),o;!(o=r()).done;){var d=o.value,s=Rn(d.target);a.set(s,d.intersectionRatio)}var c=Array.from(a),l=c[c.length-1];if(l[1]==1)return f(l[0]);for(var M=0,b=c;M .epr-icn-clear-search":{backgroundPositionY:"-60px"}}},Re=m.create(C({btnClearSearch:{".":"epr-btn-clear-search",position:"absolute",right:"var(--epr-search-bar-inner-padding)",height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center",top:"50%",transform:"translateY(-50%)",padding:"0",borderRadius:"50%",":hover":{background:"var(--epr-hover-bg-color)"},":focus":{background:"var(--epr-hover-bg-color)"}},icnClearnSearch:{".":"epr-icn-clear-search",backgroundColor:"transparent",backgroundRepeat:"no-repeat",backgroundSize:"20px",height:"20px",width:"20px",backgroundImage:"url("+qa+")",":hover":{backgroundPositionY:"-20px"},":focus":{backgroundPositionY:"-20px"}}},R("icnClearnSearch",{backgroundPositionY:"-40px"}),R("btnClearSearch",Xn))),Kf=k(g.emojiPicker)+" "+k(g.emojiList),$a=["button",k(g.emoji)].join(""),_n=k(g.category);function qn(f){var e=f.value;if(!e)return null;var a=$n(e);return t.createElement("style",null,` + `+Kf+" "+$a+` { + display: none; + } + + + `+Kf+" "+a+` { + display: flex; + } + + `+Kf+" "+_n+":not(:has("+a+`)) { + display: none; + } + `)}function $n(f){return[$a,'[data-full-name*="',ee(f),'"]'].join("")}var fi="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjQwcHgiIHZpZXdCb3g9IjAgMCAyMCA0MCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjAgNDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iIzg2ODY4NiIgZD0iTTEyLDguODFjMCwyLjA4LTEuNjgsMy43Ni0zLjc2LDMuNzZjLTIuMDgsMC0zLjc2LTEuNjgtMy43Ni0zLjc2CgljMC0yLjA4LDEuNjgtMy43NiwzLjc2LTMuNzZDMTAuMzIsNS4wNSwxMiw2LjczLDEyLDguODF6IE0xMS4yMywxMi43MmMtMC44MywwLjY0LTEuODcsMS4wMS0yLjk5LDEuMDFjLTIuNzIsMC00LjkyLTIuMi00LjkyLTQuOTIKCWMwLTIuNzIsMi4yLTQuOTIsNC45Mi00LjkyYzIuNzIsMCw0LjkyLDIuMiw0LjkyLDQuOTJjMCwxLjEzLTAuMzgsMi4xNi0xLjAxLDIuOTlsMy45NCwzLjkzYzAuMjUsMC4yNSwwLjI1LDAuNjYsMCwwLjkyCgljLTAuMjUsMC4yNS0wLjY2LDAuMjUtMC45MiwwTDExLjIzLDEyLjcyeiIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iI0MwQzBCRiIgZD0iTTEyLDI4LjgxYzAsMi4wOC0xLjY4LDMuNzYtMy43NiwzLjc2Yy0yLjA4LDAtMy43Ni0xLjY4LTMuNzYtMy43NgoJYzAtMi4wOCwxLjY4LTMuNzYsMy43Ni0zLjc2QzEwLjMyLDI1LjA1LDEyLDI2LjczLDEyLDI4LjgxeiBNMTEuMjMsMzIuNzJjLTAuODMsMC42NC0xLjg3LDEuMDEtMi45OSwxLjAxCgljLTIuNzIsMC00LjkyLTIuMi00LjkyLTQuOTJjMC0yLjcyLDIuMi00LjkyLDQuOTItNC45MmMyLjcyLDAsNC45MiwyLjIsNC45Miw0LjkyYzAsMS4xMy0wLjM4LDIuMTYtMS4wMSwyLjk5bDMuOTQsMy45MwoJYzAuMjUsMC4yNSwwLjI1LDAuNjYsMCwwLjkyYy0wLjI1LDAuMjUtMC42NiwwLjI1LTAuOTIsMEwxMS4yMywzMi43MnoiLz4KPC9zdmc+";function ei(){return t.createElement("div",{className:w(ai.icnSearch)})}var ai=m.create(C({icnSearch:{".":"epr-icn-search",content:"",position:"absolute",top:"50%",left:"var(--epr-search-bar-inner-padding)",transform:"translateY(-50%)",width:"20px",height:"20px",backgroundRepeat:"no-repeat",backgroundPosition:"0 0",backgroundSize:"20px",backgroundImage:"url("+fi+")"}},R("icnSearch",{backgroundPositionY:"-20px"})));function ni(){var f=Ma(),e=Ce();return f?null:t.createElement(Xa,{className:w(hf.overlay)},t.createElement(ii,null),e?t.createElement(_a,null):null)}function ii(){var f=t.useState(0),e=f[0],a=f[1],n=V(),i=G(),u=f1(),r=a1(),o=un(),d=o.statusSearchResults,s=o.searchTerm,c=o.onChange,l=i?.current,M=l?.value;return t.createElement(Zf,{className:w(hf.searchContainer)},t.createElement(qn,{value:M}),t.createElement("input",{autoFocus:r,"aria-label":"Type to search for an emoji",onFocus:n,className:w(hf.search),type:"text","aria-controls":"epr-search-id",placeholder:u,onChange:function(j){a(e+1),setTimeout(function(){var y,v;c((y=j==null||(v=j.target)==null?void 0:v.value)!=null?y:M)})},ref:i}),s?t.createElement("div",{role:"status",className:w("epr-status-search-results",hf.visuallyHidden),"aria-live":"polite",id:"epr-search-id","aria-atomic":"true"},d):null,t.createElement(ei,null),t.createElement(Kn,null))}var hf=m.create(C({overlay:{padding:"var(--epr-header-padding)",zIndex:"var(--epr-header-overlay-z-index)"},searchContainer:{".":"epr-search-container",flex:"1",display:"block",minWidth:"0"},visuallyHidden:{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"},search:{outline:"none",transition:"all 0.2s ease-in-out",color:"var(--epr-search-input-text-color)",borderRadius:"var(--epr-search-input-border-radius)",padding:"var(--epr-search-input-padding)",height:"var(--epr-search-input-height)",backgroundColor:"var(--epr-search-input-bg-color)",border:"1px solid var(--epr-search-input-bg-color)",width:"100%",":focus":{backgroundColor:"var(--epr-search-input-bg-color-active)",border:"1px solid var(--epr-search-border-color)"},"::placeholder":{color:"var(--epr-search-input-placeholder-color)"}},btnClearSearch:{".":"epr-btn-clear-search",position:"absolute",right:"var(--epr-search-bar-inner-padding)",height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center",top:"50%",transform:"translateY(-50%)",padding:"0",borderRadius:"50%",":hover":{background:"var(--epr-hover-bg-color)"},":focus":{background:"var(--epr-hover-bg-color)"}},icnClearnSearch:{".":"epr-icn-clear-search",backgroundColor:"transparent",backgroundRepeat:"no-repeat",backgroundSize:"20px",height:"20px",width:"20px",backgroundImage:"url("+qa+")",":hover":{backgroundPositionY:"-20px"},":focus":{backgroundPositionY:"-20px"}}},R("icnClearnSearch",{backgroundPositionY:"-40px"}),R("btnClearSearch",{":hover > .epr-icn-clear-search":{backgroundPositionY:"-60px"}})));function ui(){return t.createElement(Zf,{className:w("epr-header",W.hiddenOnReactions)},t.createElement(ni,null),t.createElement(Fn,null))}function Lf(){return document.activeElement}var h;(function(f){f.ArrowDown="ArrowDown",f.ArrowUp="ArrowUp",f.ArrowLeft="ArrowLeft",f.ArrowRight="ArrowRight",f.Escape="Escape",f.Enter="Enter",f.Space=" "})(h||(h={}));function ti(){ri(),oi(),di(),ci(),si()}function ri(){var f=jf(),e=Fa(),a=fn(),n=G(),i=K(),u=Qa(),r=X1(),o=V(),d=t.useMemo(function(){return function(c){var l=c.key;switch(r(),l){case h.Escape:if(c.preventDefault(),u()){o();return}e(),a(0),i();break}}},[a,e,o,i,u,r]);t.useEffect(function(){var s=f.current;if(s)return s.addEventListener("keydown",d),function(){s.removeEventListener("keydown",d)}},[f,n,a,d])}function oi(){var f=en(),e=jf(),a=A(),n=G(),i=bf(),u=i[1],r=f0(),o=Ce(),d=t.useMemo(function(){return function(c){var l=c.key;switch(l){case h.ArrowRight:if(!o)return;c.preventDefault(),u(!0),f();break;case h.ArrowDown:c.preventDefault(),r();break;case h.Enter:c.preventDefault(),jn(a.current);break}}},[f,r,u,a,o]);t.useEffect(function(){var s=n.current;if(s)return s.addEventListener("keydown",d),function(){s.removeEventListener("keydown",d)}},[e,n,d])}function di(){var f=be(),e=K(),a=G(),n=f0(),i=bf(),u=i[0],r=i[1],o=Ka(),d=Ce(),s=ye(),c=t.useMemo(function(){return function(M){var b=M.key;if(d)switch(b){case h.ArrowLeft:if(M.preventDefault(),!u)return e();Oe(e);break;case h.ArrowRight:if(M.preventDefault(),!u)return e();Ue();break;case h.ArrowDown:M.preventDefault(),u&&r(!1),n();break;default:s(M);break}if(o)switch(b){case h.ArrowUp:if(M.preventDefault(),!u)return e();Oe(e);break;case h.ArrowDown:if(M.preventDefault(),!u)return e();Ue();break;default:s(M);break}}},[u,e,r,n,s,o,d]);t.useEffect(function(){var l=f.current;if(l)return l.addEventListener("keydown",c),function(){l.removeEventListener("keydown",c)}},[f,a,u,c])}function ci(){var f=K(),e=je(),a=A(),n=ye(),i=t.useMemo(function(){return function(r){var o=r.key;switch(o){case h.ArrowUp:r.preventDefault(),f();break;case h.ArrowRight:r.preventDefault(),Pa(Lf());break;case h.ArrowLeft:r.preventDefault(),Ya(Lf());break;case h.ArrowDown:r.preventDefault(),Gf(a.current);break;default:n(r);break}}},[a,f,n]);t.useEffect(function(){var u=e.current;if(u)return u.addEventListener("keydown",i),function(){u.removeEventListener("keydown",i)}},[e,a,i])}function si(){var f=A(),e=li(),a=Ua(),n=Qa(),i=V(),u=ye(),r=t.useMemo(function(){return function(d){var s=d.key,c=Y(Lf());switch(s){case h.ArrowRight:d.preventDefault(),Cn(c);break;case h.ArrowLeft:d.preventDefault(),yn(c);break;case h.ArrowDown:if(d.preventDefault(),n()){i();break}pn(c);break;case h.ArrowUp:if(d.preventDefault(),n()){i();break}In(c,e);break;case h.Space:d.preventDefault(),a(d.target);break;default:u(d);break}}},[e,u,a,n,i]);t.useEffect(function(){var o=f.current;if(o)return o.addEventListener("keydown",r),function(){o.removeEventListener("keydown",r)}},[f,r])}function f0(){var f=Wa(),e=Bf(),a=A();return t.useCallback(function(){return e?Gf(a.current):f()},[a,f,e])}function li(){var f=K(),e=Wa(),a=Bf();return t.useCallback(function(){return a?f():e()},[f,a,e])}function Oe(f){var e=Lf();e&&(y1(e)||f(),Pa(e))}function Ue(){var f=Lf();f&&Ya(f)}function ye(){var f=nn(),e=K(),a=Ma(),n=V();return function(u){var r=u.key;Mi(u)||a||r.match(/(^[a-zA-Z0-9]$){1}/)&&(u.preventDefault(),n(),e(),f(r))}}function Mi(f){var e=f.metaKey,a=f.ctrlKey,n=f.altKey;return e||a||n}function Li(f,e,a){if(e&&a!==D.NATIVE){var n=N(e);Ge.has(n)||(wf(e).forEach(function(i){var u=f(i,a);gi(u)}),Ge.add(n))}}var Ge=new Set;function gi(f){var e=new Image;e.src=f}function wi(){var f=A(),e=F(),a=af();t.useEffect(function(){if(e===D.NATIVE)return;var n=f.current;return n?.addEventListener("focusin",i),function(){n?.removeEventListener("focusin",i)};function i(u){var r=Y(u.target);if(r){var o=oe(r),d=o[0];d&&ef(d)&&Li(a,d,e)}}},[f,e,a])}var bi=["width","height"];function ji(f){var e=f.children;return t.createElement(E1,null,t.createElement(mi,null,e))}function mi(f){var e,a=f.children,n=Pf(),i=n[0],u=t1(),r=Bf(),o=jf(),d=d1(),s=c1();ti(),wi();var c=s||{},l=c.width,M=c.height,b=fa(c,bi);return t.createElement("aside",{className:w(tf.main,tf.baseVariables,u===H.DARK&&tf.darkTheme,u===H.AUTO&&tf.autoThemeDark,(e={},e[g.searchActive]=r,e),i&&tf.reactionsMenu,d),ref:o,style:C({},b,!i&&{height:M,width:l})},a)}var Ze={"--epr-emoji-variation-picker-bg-color":"var(--epr-dark-emoji-variation-picker-bg-color)","--epr-hover-bg-color-reduced-opacity":"var(--epr-dark-hover-bg-color-reduced-opacity)","--epr-highlight-color":"var(--epr-dark-highlight-color)","--epr-text-color":"var(--epr-dark-text-color)","--epr-hover-bg-color":"var(--epr-dark-hover-bg-color)","--epr-focus-bg-color":"var(--epr-dark-focus-bg-color)","--epr-search-input-bg-color":"var(--epr-dark-search-input-bg-color)","--epr-category-label-bg-color":"var(--epr-dark-category-label-bg-color)","--epr-picker-border-color":"var(--epr-dark-picker-border-color)","--epr-bg-color":"var(--epr-dark-bg-color)","--epr-reactions-bg-color":"var(--epr-dark-reactions-bg-color)","--epr-search-input-bg-color-active":"var(--epr-dark-search-input-bg-color-active)","--epr-emoji-variation-indicator-color":"var(--epr-dark-emoji-variation-indicator-color)","--epr-category-icon-active-color":"var(--epr-dark-category-icon-active-color)","--epr-skin-tone-picker-menu-color":"var(--epr-dark-skin-tone-picker-menu-color)"},tf=m.create({main:{".":["epr-main",g.emojiPicker],position:"relative",display:"flex",flexDirection:"column",borderWidth:"1px",borderStyle:"solid",borderRadius:"var(--epr-picker-border-radius)",borderColor:"var(--epr-picker-border-color)",backgroundColor:"var(--epr-bg-color)",overflow:"hidden",transition:"all 0.3s ease-in-out, background-color 0.1s ease-in-out","*":{boxSizing:"border-box",fontFamily:"sans-serif"}},baseVariables:{"--":{"--epr-highlight-color":"#007aeb","--epr-hover-bg-color":"#f1f8ff","--epr-hover-bg-color-reduced-opacity":"#f1f8ff80","--epr-focus-bg-color":"#e0f0ff","--epr-text-color":"#858585","--epr-search-input-bg-color":"#f6f6f6","--epr-picker-border-color":"#e7e7e7","--epr-bg-color":"#fff","--epr-reactions-bg-color":"#ffffff90","--epr-category-icon-active-color":"#6aa8de","--epr-skin-tone-picker-menu-color":"#ffffff95","--epr-horizontal-padding":"10px","--epr-picker-border-radius":"8px","--epr-search-border-color":"var(--epr-highlight-color)","--epr-header-padding":"15px var(--epr-horizontal-padding)","--epr-active-skin-tone-indicator-border-color":"var(--epr-highlight-color)","--epr-active-skin-hover-color":"var(--epr-hover-bg-color)","--epr-search-input-bg-color-active":"var(--epr-search-input-bg-color)","--epr-search-input-padding":"0 30px","--epr-search-input-border-radius":"8px","--epr-search-input-height":"40px","--epr-search-input-text-color":"var(--epr-text-color)","--epr-search-input-placeholder-color":"var(--epr-text-color)","--epr-search-bar-inner-padding":"var(--epr-horizontal-padding)","--epr-category-navigation-button-size":"30px","--epr-emoji-variation-picker-height":"45px","--epr-emoji-variation-picker-bg-color":"var(--epr-bg-color)","--epr-preview-height":"70px","--epr-preview-text-size":"14px","--epr-preview-text-padding":"0 var(--epr-horizontal-padding)","--epr-preview-border-color":"var(--epr-picker-border-color)","--epr-preview-text-color":"var(--epr-text-color)","--epr-category-padding":"0 var(--epr-horizontal-padding)","--epr-category-label-bg-color":"#ffffffe6","--epr-category-label-text-color":"var(--epr-text-color)","--epr-category-label-padding":"0 var(--epr-horizontal-padding)","--epr-category-label-height":"40px","--epr-emoji-size":"30px","--epr-emoji-padding":"5px","--epr-emoji-fullsize":"calc(var(--epr-emoji-size) + var(--epr-emoji-padding) * 2)","--epr-emoji-hover-color":"var(--epr-hover-bg-color)","--epr-emoji-variation-indicator-color":"var(--epr-picker-border-color)","--epr-emoji-variation-indicator-color-hover":"var(--epr-text-color)","--epr-header-overlay-z-index":"3","--epr-emoji-variations-indictator-z-index":"1","--epr-category-label-z-index":"2","--epr-skin-variation-picker-z-index":"5","--epr-preview-z-index":"6","--epr-dark":"#000","--epr-dark-emoji-variation-picker-bg-color":"var(--epr-dark)","--epr-dark-highlight-color":"#c0c0c0","--epr-dark-text-color":"var(--epr-highlight-color)","--epr-dark-hover-bg-color":"#363636f6","--epr-dark-hover-bg-color-reduced-opacity":"#36363680","--epr-dark-focus-bg-color":"#474747","--epr-dark-search-input-bg-color":"#333333","--epr-dark-category-label-bg-color":"#222222e6","--epr-dark-picker-border-color":"#151617","--epr-dark-bg-color":"#222222","--epr-dark-reactions-bg-color":"#22222290","--epr-dark-search-input-bg-color-active":"var(--epr-dark)","--epr-dark-emoji-variation-indicator-color":"#444","--epr-dark-category-icon-active-color":"#3271b7","--epr-dark-skin-tone-picker-menu-color":"#22222295"}},autoThemeDark:{".":g.autoTheme,"@media (prefers-color-scheme: dark)":{"--":Ze}},darkTheme:{".":g.darkTheme,"--":Ze},reactionsMenu:{".":"epr-reactions",height:"50px",display:"inline-flex",backgroundColor:"var(--epr-reactions-bg-color)",backdropFilter:"blur(8px)","--":{"--epr-picker-border-radius":"50px"}}});function Ci(f){return t.createElement(P1,null,t.createElement(w0,null),t.createElement(K0,Object.assign({},f),t.createElement(yi,null)))}function yi(){var f=Pf(),e=f[0],a=t.useState(!e),n=a[0],i=a[1],u=i1();return t.useEffect(function(){n||i(!0)},[n]),u?t.createElement(ji,null,t.createElement(K1,null),n?t.createElement(t.Fragment,null,t.createElement(ui,null),t.createElement(Tn,null),t.createElement(Pn,null)):null):null}var Ii=t.memo(Ci,function(f,e){var a,n,i=(a=f.customEmojis)!=null?a:[],u=(n=e.customEmojis)!=null?n:[];return f.open===e.open&&f.emojiVersion===e.emojiVersion&&f.reactionsDefaultOpen===e.reactionsDefaultOpen&&f.searchPlaceHolder===e.searchPlaceHolder&&f.searchPlaceholder===e.searchPlaceholder&&f.defaultSkinTone===e.defaultSkinTone&&f.skinTonesDisabled===e.skinTonesDisabled&&f.autoFocusSearch===e.autoFocusSearch&&f.emojiStyle===e.emojiStyle&&f.theme===e.theme&&f.suggestedEmojisMode===e.suggestedEmojisMode&&f.lazyLoadEmojis===e.lazyLoadEmojis&&f.className===e.className&&f.height===e.height&&f.width===e.width&&f.style===e.style&&f.searchDisabled===e.searchDisabled&&f.skinTonePickerLocation===e.skinTonePickerLocation&&i.length===u.length}),pi=function(f){M0(e,f);function e(n){var i;return i=f.call(this,n)||this,i.state={hasError:!1},i}e.getDerivedStateFromError=function(){return{hasError:!0}};var a=e.prototype;return a.componentDidCatch=function(i,u){console.error("Emoji Picker React failed to render:",i,u)},a.render=function(){return this.state.hasError?null:this.props.children},e}(t.Component);function vi(f){var e=$0({onEmojiClick:f.onEmojiClick,onReactionClick:f.onReactionClick});return t.createElement(pi,null,t.createElement(da.Provider,{value:e},t.createElement(Ii,Object.assign({},f))))}const hi=t.memo(({onEmojiSelect:f})=>{const e=a0();return e0.jsx(vi,{theme:e?H.DARK:H.LIGHT,onEmojiClick:a=>{f(a.emoji)},emojiStyle:D.NATIVE})});hi.displayName="EmojiPicker";export{hi as EmojiPicker}; diff --git a/assets/FlexText-sued5-2E.js b/assets/FlexText-sued5-2E.js new file mode 100644 index 00000000000..8dbeb102fcb --- /dev/null +++ b/assets/FlexText-sued5-2E.js @@ -0,0 +1 @@ +import{r as n,j as a}from"./index-qegmBwH1.js";const x=e=>{const t=n.useRef(!1);t.current||(t.current=!0,e?.())},i=n.memo(e=>{const t=n.useRef(null),[o,u]=n.useState(!1);return n.useEffect(()=>{if(!t.current)return;const c=t.current,r=c.parentElement;let s;return r&&(s=new ResizeObserver(()=>{const{width:l}=r.getBoundingClientRect();c.style.fontSize=`${l/e.text.length*e.scale}px`,u(!0)}),s.observe(r)),()=>{s&&s.disconnect()}},[e.scale]),a.jsx("span",{ref:t,className:o?"":"invisible",children:e.text})});i.displayName="FlexText";export{i as F,x as u}; diff --git a/assets/FloatPopover-1BpKQIdq.js b/assets/FloatPopover-1BpKQIdq.js new file mode 100644 index 00000000000..b19f7170348 --- /dev/null +++ b/assets/FloatPopover-1BpKQIdq.js @@ -0,0 +1 @@ +import{r as p,a as bt,j as H,R as Wt}from"./index-qegmBwH1.js";import{A as _t,m as jt}from"./spring--xEiX8r3.js";import{u as Ht}from"./use-event-callback-nMlqCkS7.js";import{c as ct}from"./helper-0r91fNX5.js";import{u as $t}from"./use-is-client-IECHC2ux.js";import{i as Yt}from"./env-y9k74Ds6.js";import{m as mt}from"./motion-minimal-gJqnz197.js";const lt=Math.min,z=Math.max,U=Math.round,$=t=>({x:t,y:t}),It={left:"right",right:"left",bottom:"top",top:"bottom"},Xt={start:"end",end:"start"};function pt(t,e,o){return z(t,lt(e,o))}function nt(t,e){return typeof t=="function"?t(e):t}function X(t){return t.split("-")[0]}function ot(t){return t.split("-")[1]}function Ct(t){return t==="x"?"y":"x"}function Rt(t){return t==="y"?"height":"width"}function it(t){return["top","bottom"].includes(X(t))?"y":"x"}function Et(t){return Ct(it(t))}function zt(t,e,o){o===void 0&&(o=!1);const n=ot(t),i=Et(t),r=Rt(i);let s=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=Z(s)),[s,Z(s)]}function qt(t){const e=Z(t);return[at(t),e,at(e)]}function at(t){return t.replace(/start|end/g,e=>Xt[e])}function Kt(t,e,o){const n=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return o?e?i:n:e?n:i;case"left":case"right":return e?r:s;default:return[]}}function Gt(t,e,o,n){const i=ot(t);let r=Kt(X(t),o==="start",n);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(at)))),r}function Z(t){return t.replace(/left|right|bottom|top/g,e=>It[e])}function Jt(t){return{top:0,right:0,bottom:0,left:0,...t}}function Qt(t){return typeof t!="number"?Jt(t):{top:t,right:t,bottom:t,left:t}}function tt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function gt(t,e,o){let{reference:n,floating:i}=t;const r=it(e),s=Et(e),c=Rt(s),l=X(e),a=r==="y",u=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,g=n[c]/2-i[c]/2;let m;switch(l){case"top":m={x:u,y:n.y-i.height};break;case"bottom":m={x:u,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:f};break;case"left":m={x:n.x-i.width,y:f};break;default:m={x:n.x,y:n.y}}switch(ot(e)){case"start":m[s]-=g*(o&&a?-1:1);break;case"end":m[s]+=g*(o&&a?-1:1);break}return m}const Ut=async(t,e,o)=>{const{placement:n="bottom",strategy:i="absolute",middleware:r=[],platform:s}=o,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:f}=gt(a,n,l),g=n,m={},d=0;for(let x=0;xA<=0)){var V,W;const A=(((V=r.flip)==null?void 0:V.index)||0)+1,k=h[A];if(k)return{data:{index:A,overflows:S},reset:{placement:k}};let O=(W=S.filter(E=>E.overflows[0]<=0).sort((E,M)=>E.overflows[1]-M.overflows[1])[0])==null?void 0:W.placement;if(!O)switch(m){case"bestFit":{var _;const E=(_=S.map(M=>[M.placement,M.overflows.filter(y=>y>0).reduce((y,j)=>y+j,0)]).sort((M,y)=>M[1]-y[1])[0])==null?void 0:_[0];E&&(O=E);break}case"initialPlacement":O=c;break}if(i!==O)return{reset:{placement:O}}}return{}}}};async function te(t,e){const{placement:o,platform:n,elements:i}=t,r=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=X(o),c=ot(o),l=it(o)==="y",a=["left","top"].includes(s)?-1:1,u=r&&l?-1:1,f=nt(e,t);let{mainAxis:g,crossAxis:m,alignmentAxis:d}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return c&&typeof d=="number"&&(m=c==="end"?d*-1:d),l?{x:m*u,y:g*a}:{x:g*a,y:m*u}}const ee=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var o,n;const{x:i,y:r,placement:s,middlewareData:c}=e,l=await te(e,t);return s===((o=c.offset)==null?void 0:o.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},ne=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:n,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:v=>{let{x:b,y:C}=v;return{x:b,y:C}}},...l}=nt(t,e),a={x:o,y:n},u=await At(e,l),f=it(X(i)),g=Ct(f);let m=a[g],d=a[f];if(r){const v=g==="y"?"top":"left",b=g==="y"?"bottom":"right",C=m+u[v],R=m-u[b];m=pt(C,m,R)}if(s){const v=f==="y"?"top":"left",b=f==="y"?"bottom":"right",C=d+u[v],R=d-u[b];d=pt(C,d,R)}const x=c.fn({...e,[g]:m,[f]:d});return{...x,data:{x:x.x-o,y:x.y-n}}}}};function Y(t){return Lt(t)?(t.nodeName||"").toLowerCase():"#document"}function T(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function I(t){var e;return(e=(Lt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Lt(t){return t instanceof Node||t instanceof T(t).Node}function B(t){return t instanceof Element||t instanceof T(t).Element}function F(t){return t instanceof HTMLElement||t instanceof T(t).HTMLElement}function ht(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof T(t).ShadowRoot}function J(t){const{overflow:e,overflowX:o,overflowY:n,display:i}=D(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(i)}function oe(t){return["table","td","th"].includes(Y(t))}function ut(t){const e=dt(),o=D(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function kt(t){let e=K(t);for(;F(e)&&!rt(e);){if(ut(e))return e;e=K(e)}return null}function dt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function rt(t){return["html","body","#document"].includes(Y(t))}function D(t){return T(t).getComputedStyle(t)}function st(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function K(t){if(Y(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ht(t)&&t.host||I(t);return ht(e)?e.host:e}function Ot(t){const e=K(t);return rt(e)?t.ownerDocument?t.ownerDocument.body:t.body:F(e)&&J(e)?e:Ot(e)}function ft(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);const i=Ot(t),r=i===((n=t.ownerDocument)==null?void 0:n.body),s=T(i);return r?e.concat(s,s.visualViewport||[],J(i)?i:[],s.frameElement&&o?ft(s.frameElement):[]):e.concat(i,ft(i,[],o))}function Pt(t){const e=D(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=F(t),r=i?t.offsetWidth:o,s=i?t.offsetHeight:n,c=U(o)!==r||U(n)!==s;return c&&(o=r,n=s),{width:o,height:n,$:c}}function Tt(t){return B(t)?t:t.contextElement}function q(t){const e=Tt(t);if(!F(e))return $(1);const o=e.getBoundingClientRect(),{width:n,height:i,$:r}=Pt(e);let s=(r?U(o.width):o.width)/n,c=(r?U(o.height):o.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const ie=$(0);function St(t){const e=T(t);return!dt()||!e.visualViewport?ie:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function re(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==T(t)?!1:e}function G(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);const i=t.getBoundingClientRect(),r=Tt(t);let s=$(1);e&&(n?B(n)&&(s=q(n)):s=q(t));const c=re(r,o,n)?St(r):$(0);let l=(i.left+c.x)/s.x,a=(i.top+c.y)/s.y,u=i.width/s.x,f=i.height/s.y;if(r){const g=T(r),m=n&&B(n)?T(n):n;let d=g.frameElement;for(;d&&n&&m!==g;){const x=q(d),v=d.getBoundingClientRect(),b=D(d),C=v.left+(d.clientLeft+parseFloat(b.paddingLeft))*x.x,R=v.top+(d.clientTop+parseFloat(b.paddingTop))*x.y;l*=x.x,a*=x.y,u*=x.x,f*=x.y,l+=C,a+=R,d=T(d).frameElement}}return tt({width:u,height:f,x:l,y:a})}const se=[":popover-open",":modal"];function Mt(t){let e=!1,o=0,n=0;function i(r){try{e=e||t.matches(r)}catch{}}if(se.forEach(r=>{i(r)}),e){const r=kt(t);if(r){const s=r.getBoundingClientRect();o=s.x,n=s.y}}return[e,o,n]}function ce(t){let{elements:e,rect:o,offsetParent:n,strategy:i}=t;const r=I(n),[s]=e?Mt(e.floating):[!1];if(n===r||s)return o;let c={scrollLeft:0,scrollTop:0},l=$(1);const a=$(0),u=F(n);if((u||!u&&i!=="fixed")&&((Y(n)!=="body"||J(r))&&(c=st(n)),F(n))){const f=G(n);l=q(n),a.x=f.x+n.clientLeft,a.y=f.y+n.clientTop}return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-c.scrollLeft*l.x+a.x,y:o.y*l.y-c.scrollTop*l.y+a.y}}function le(t){return Array.from(t.getClientRects())}function Dt(t){return G(I(t)).left+st(t).scrollLeft}function ae(t){const e=I(t),o=st(t),n=t.ownerDocument.body,i=z(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=z(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-o.scrollLeft+Dt(t);const c=-o.scrollTop;return D(n).direction==="rtl"&&(s+=z(e.clientWidth,n.clientWidth)-i),{width:i,height:r,x:s,y:c}}function fe(t,e){const o=T(t),n=I(t),i=o.visualViewport;let r=n.clientWidth,s=n.clientHeight,c=0,l=0;if(i){r=i.width,s=i.height;const a=dt();(!a||a&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:c,y:l}}function ue(t,e){const o=G(t,!0,e==="fixed"),n=o.top+t.clientTop,i=o.left+t.clientLeft,r=F(t)?q(t):$(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=i*r.x,a=n*r.y;return{width:s,height:c,x:l,y:a}}function xt(t,e,o){let n;if(e==="viewport")n=fe(t,o);else if(e==="document")n=ae(I(t));else if(B(e))n=ue(e,o);else{const i=St(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return tt(n)}function Nt(t,e){const o=K(t);return o===e||!B(o)||rt(o)?!1:D(o).position==="fixed"||Nt(o,e)}function de(t,e){const o=e.get(t);if(o)return o;let n=ft(t,[],!1).filter(c=>B(c)&&Y(c)!=="body"),i=null;const r=D(t).position==="fixed";let s=r?K(t):t;for(;B(s)&&!rt(s);){const c=D(s),l=ut(s);!l&&c.position==="fixed"&&(i=null),(r?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||J(s)&&!l&&Nt(t,s))?n=n.filter(u=>u!==s):i=c,s=K(s)}return e.set(t,n),n}function me(t){let{element:e,boundary:o,rootBoundary:n,strategy:i}=t;const s=[...o==="clippingAncestors"?de(e,this._c):[].concat(o),n],c=s[0],l=s.reduce((a,u)=>{const f=xt(e,u,i);return a.top=z(f.top,a.top),a.right=lt(f.right,a.right),a.bottom=lt(f.bottom,a.bottom),a.left=z(f.left,a.left),a},xt(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function pe(t){const{width:e,height:o}=Pt(t);return{width:e,height:o}}function ge(t,e,o,n){const i=F(e),r=I(e),s=o==="fixed",c=G(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const a=$(0);if(i||!i&&!s)if((Y(e)!=="body"||J(r))&&(l=st(e)),i){const x=G(e,!0,s,e);a.x=x.x+e.clientLeft,a.y=x.y+e.clientTop}else r&&(a.x=Dt(r));let u=c.left+l.scrollLeft-a.x,f=c.top+l.scrollTop-a.y;const[g,m,d]=Mt(n);return g&&(u+=m,f+=d,i&&(u+=e.clientLeft,f+=e.clientTop)),{x:u,y:f,width:c.width,height:c.height}}function yt(t,e){return!F(t)||D(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ft(t,e){const o=T(t);if(!F(t))return o;let n=yt(t,e);for(;n&&oe(n)&&D(n).position==="static";)n=yt(n,e);return n&&(Y(n)==="html"||Y(n)==="body"&&D(n).position==="static"&&!ut(n))?o:n||kt(t)||o}const he=async function(t){const e=this.getOffsetParent||Ft,o=this.getDimensions;return{reference:ge(t.reference,await e(t.floating),t.strategy,t.floating),floating:{x:0,y:0,...await o(t.floating)}}};function xe(t){return D(t).direction==="rtl"}const ye={convertOffsetParentRelativeRectToViewportRelativeRect:ce,getDocumentElement:I,getClippingRect:me,getOffsetParent:Ft,getElementRects:he,getClientRects:le,getDimensions:pe,getScale:q,isElement:B,isRTL:xe},we=ne,ve=Zt,be=(t,e,o)=>{const n=new Map,i={platform:ye,...o},r={...i.platform,_c:n};return Ut(t,e,{...i,platform:r})};var Q=typeof document<"u"?p.useLayoutEffect:p.useEffect;function et(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let o,n,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(o=t.length,o!==e.length)return!1;for(n=o;n--!==0;)if(!et(t[n],e[n]))return!1;return!0}if(i=Object.keys(t),o=i.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!{}.hasOwnProperty.call(e,i[n]))return!1;for(n=o;n--!==0;){const r=i[n];if(!(r==="_owner"&&t.$$typeof)&&!et(t[r],e[r]))return!1}return!0}return t!==t&&e!==e}function Vt(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function wt(t,e){const o=Vt(t);return Math.round(e*o)/o}function vt(t){const e=p.useRef(t);return Q(()=>{e.current=t}),e}function Ce(t){t===void 0&&(t={});const{placement:e="bottom",strategy:o="absolute",middleware:n=[],platform:i,elements:{reference:r,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[u,f]=p.useState({x:0,y:0,strategy:o,placement:e,middlewareData:{},isPositioned:!1}),[g,m]=p.useState(n);et(g,n)||m(n);const[d,x]=p.useState(null),[v,b]=p.useState(null),C=p.useCallback(y=>{y!==P.current&&(P.current=y,x(y))},[]),R=p.useCallback(y=>{y!==L.current&&(L.current=y,b(y))},[]),w=r||d,h=s||v,P=p.useRef(null),L=p.useRef(null),S=p.useRef(u),V=l!=null,W=vt(l),_=vt(i),A=p.useCallback(()=>{if(!P.current||!L.current)return;const y={placement:e,strategy:o,middleware:g};_.current&&(y.platform=_.current),be(P.current,L.current,y).then(j=>{const N={...j,isPositioned:!0};k.current&&!et(S.current,N)&&(S.current=N,bt.flushSync(()=>{f(N)}))})},[g,e,o,_]);Q(()=>{a===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(y=>({...y,isPositioned:!1})))},[a]);const k=p.useRef(!1);Q(()=>(k.current=!0,()=>{k.current=!1}),[]),Q(()=>{if(w&&(P.current=w),h&&(L.current=h),w&&h){if(W.current)return W.current(w,h,A);A()}},[w,h,A,W,V]);const O=p.useMemo(()=>({reference:P,floating:L,setReference:C,setFloating:R}),[C,R]),E=p.useMemo(()=>({reference:w,floating:h}),[w,h]),M=p.useMemo(()=>{const y={position:o,left:0,top:0};if(!E.floating)return y;const j=wt(E.floating,u.x),N=wt(E.floating,u.y);return c?{...y,transform:"translate("+j+"px, "+N+"px)",...Vt(E.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:j,top:N}},[o,c,E.floating,u.x,u.y]);return p.useMemo(()=>({...u,update:A,refs:O,elements:E,floatingStyles:M}),[u,A,O,E,M])}function Re(t,...e){t&&t.addEventListener&&t.addEventListener(...e)}function Ee(t,...e){t&&t.removeEventListener&&t.removeEventListener(...e)}const Ae=["mousedown","touchstart"],Le=(t,e,o=Ae)=>{const n=p.useRef(e);p.useEffect(()=>{n.current=e},[e]),p.useEffect(()=>{const i=r=>{const{current:s}=t;s&&!s.contains(r.target)&&n.current(r)};for(const r of o)Re(document,r,i);return()=>{for(const r of o)Ee(document,r,i)}},[o,t])},ke=()=>{const t=p.useContext(Bt);return Yt?t.to||document.body:null},Bt=p.createContext({to:void 0});Bt.Provider;const Oe=t=>{const e=$t(),o=ke();return e?bt.createPortal(t.children,t.to||o||document.body):null},Pe=p.createContext(null),Be=function(e){const{headless:o=!1,wrapperClassName:n,TriggerComponent:i,triggerElement:r,trigger:s="hover",padding:c,offset:l,popoverWrapperClassNames:a,popoverClassNames:u,debug:f,animate:g=!0,as:m="div",type:d="popover",triggerComponentProps:x,isDisabled:v,onOpen:b,onClose:C,to:R,...w}=e,[h,P]=p.useState(!1),{x:L,y:S,refs:V,strategy:W,isPositioned:_}=Ce({middleware:w.middleware??[ve({padding:c??20}),ee(l??10),we()],strategy:w.strategy,placement:w.placement??"bottom-start",whileElementsMounted:w.whileElementsMounted}),A=p.useRef(null);Le(A,()=>{(s=="click"||s=="both")&&k()});const k=p.useCallback(()=>{f||P(!1)},[f]),O=Ht(()=>{v||P(!0)}),E=p.useCallback(()=>{k()},[k]),M=p.useMemo(()=>{const N={};switch(s){case"click":return{...N,onClick:O};case"hover":return{...N,onMouseOver:O,onMouseOut:k};case"both":return{...N,onClick:O,onMouseOver:O,onMouseOut:E}}},[k,O,E,s]),y=H.jsxs(m,{role:s==="both"||s==="click"?"button":"note",className:ct("inline-block",n),ref:V.setReference,...M,children:[r,!!i&&Wt.cloneElement(p.createElement(i,x),{tabIndex:0})]});p.useEffect(()=>{V.floating.current&&h&&d==="popover"&&V.floating.current.focus()},[h]),p.useEffect(()=>{h?b?.():C?.()},[h]);const j=p.useMemo(()=>({close:k}),[k]);return e.children?H.jsxs(H.Fragment,{children:[y,H.jsx(_t,{children:h&&H.jsx(Oe,{to:R,children:H.jsx(mt.div,{className:ct("float-popover","relative z-[99]",a),...s==="hover"||s==="both"?M:{},ref:A,children:H.jsx(mt.div,{tabIndex:-1,role:d==="tooltip"?"tooltip":"dialog",className:ct(!o&&["!shadow-out-sm focus:!shadow-out-sm focus-visible:!shadow-out-sm","rounded-xl border border-zinc-400/20 p-4 shadow-lg outline-none backdrop-blur-lg dark:border-zinc-500/30","bg-slate-50/80 dark:bg-neutral-900/80"],"relative z-[2]",d==="tooltip"?"max-w-[25rem] break-all rounded-xl px-4 py-2":"",u),ref:V.setFloating,initial:{translateY:"10px",opacity:0},animate:{translateY:"0px",opacity:1},exit:{translateY:"10px",opacity:0},transition:jt,style:{position:W,top:S??"",left:L??"",visibility:_&&L!==null?"visible":"hidden"},children:H.jsx(Pe.Provider,{value:j,children:e.children})})})})})]}):y};export{Be as F,Oe as R}; diff --git a/assets/FormInput-cQs6MTpb.js b/assets/FormInput-cQs6MTpb.js new file mode 100644 index 00000000000..23ff8771e8d --- /dev/null +++ b/assets/FormInput-cQs6MTpb.js @@ -0,0 +1 @@ +import{r as o,j as t,R as N}from"./index-qegmBwH1.js";import{u as J,p as E,I as K,A as Q}from"./AutoResizeHeight-pHZ_oyCK.js";import{c as P}from"./WrappedElementProvider-5243oAX6.js";import{j as w,s as W}from"./store-gmK8mRDy.js";import{a as _,b as Z}from"./init-a0893ef4-4662SO8Z.js";import{c as h,a as R}from"./helper-0r91fNX5.js";import{b as ee}from"./owner-4YVbz2PN.js";import"./toast-qMk_Ov--.js";import{u as A,a as te}from"./usePeek-N6a5Jy_H.js";import{m as se}from"./motion-minimal-gJqnz197.js";import{i as oe}from"./index-5Y6ZmVAf.js";import{m as re,i as ae}from"./lodash-Y39_oLIE.js";import{M as ne}from"./StyledButton-Mj8l6PeD.js";import{$ as le,_ as ie}from"./provider-jumr72cx.js";const ce=o.forwardRef((s,r)=>{const{className:n,children:e,...i}=s,l=A(0),c=A(0),f=o.useCallback(({clientX:x,clientY:a,currentTarget:u})=>{const m=u.getBoundingClientRect();l.set(x-m.left),c.set(a-m.top)},[l,c]),d=te`radial-gradient(320px circle at ${l}px ${c}px, var(--spotlight-color) 0%, transparent 85%)`,p=ee(),g=J(s);return t.jsxs("div",{className:"group relative h-full overflow-hidden [--spotlight-color:oklch(var(--a)_/_0.12)]",onMouseMove:f,children:[!p&&t.jsx(se.div,{className:"pointer-events-none absolute bottom-[-150px] left-0 right-0 top-0 z-0 rounded-xl opacity-0 transition-opacity duration-500 group-hover:opacity-100",style:{background:d},"aria-hidden":"true"}),t.jsx("textarea",{ref:r,className:h("h-full w-full resize-none bg-transparent","overflow-auto px-3 py-4","text-neutral-900/80 dark:text-slate-100/80",n),...i,...g}),e]})});ce.displayName="TextArea";const ue=o.forwardRef((s,r)=>o.createElement(le.label,ie({},s,{ref:r,onMouseDown:n=>{var e;(e=s.onMouseDown)===null||e===void 0||e.call(s,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),V=ue,de=o.createContext({}),me=()=>o.useContext(de),M=o.forwardRef(({className:s,...r},n)=>{const e=me();return t.jsx(V,{ref:n,className:h("text-foreground-600 text-[1em] font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",s,e.className),...r})});M.displayName=V.displayName;const fe=({errorMessage:s,id:r})=>t.jsx("div",{className:"mt-2",children:t.jsx(M,{className:"text-xs font-medium text-error",htmlFor:r,children:s})}),pe=o.createContext({}),xe=()=>o.useContext(pe),be=N.forwardRef((s,r)=>{const{className:n,type:e,label:i,isLoading:l,errorMessage:c,isInvalid:f,endContent:d,labelPlacement:p,inputClassName:g,bindValue:x,...a}=s,u=o.useId(),m=xe(),{value:v,onChange:F,onBlur:L,onFocus:D,labelClassName:Ce,...T}=a,[$,k]=N.useState(!1),O=N.useCallback(()=>{k(!0)},[]),H=N.useCallback(()=>{k(!1)},[]),[U,I]=N.useState(a.value);o.useEffect(()=>{I(a.value)},[a.value]);const[j,X]=N.useState(!1),Y=re({},m,s),{labelPlacement:b="top"}=Y,q=h(m.inputClassName,s.labelClassName),G=h(m.inputClassName,s.inputClassName);return t.jsxs("div",{className:"flex w-full flex-col",children:[t.jsxs("div",{className:h({"flex flex-col":b==="top","flex flex-grow flex-row items-center":b==="left"},"peer relative",n),children:[i&&t.jsx(M,{className:R({"mr-4":b==="left","mb-2 flex":b==="top"},b==="inside"&&{"absolute left-3 top-2 z-[1] select-none duration-200":!0,"text-primary":$,"bottom-2 top-2 flex items-center text-lg":!v&&!$},q),htmlFor:u,children:i}),t.jsxs("div",{className:"relative flex-grow",children:[t.jsx("input",{id:u,value:ae(x)?U:x,onChange:C=>{I(C.target.value),F?.(C)},onBlur:C=>{H(),L?.(C)},onFocus:C=>{O(),D?.(C)},type:e==="password"&&!j?"password":"text",className:h("flex h-10 w-full rounded-md border px-3 py-2 text-sm","focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-50","border-zinc-200 bg-white placeholder:text-slate-500 focus-visible:border-primary dark:border-neutral-800 dark:bg-zinc-900",b==="inside"&&"h-auto pb-2 pt-8",e==="password"&&["pr-6",!j&&"font-mono"],l&&"pr-6",f&&"!border-red-400 !bg-red-600/50",G),ref:r,...T}),e==="password"&&!l&&t.jsx(ne,{className:y({placement:b}),onClick:()=>{X(!j)},children:t.jsx("i",{className:R("text-lg text-gray-500",j?"icon-[mingcute--eye-line]":"icon-[mingcute--eye-close-line]")})}),!l&&d&&t.jsx("div",{className:y({placement:b}),children:d}),l&&t.jsx("div",{className:y({placement:b}),children:t.jsx("i",{className:"loading loading-spinner h-5 w-5 text-primary/80"})})]})]}),f&&c&&t.jsx(fe,{id:u,errorMessage:c})]})}),y=oe({base:"absolute right-2",variants:{placement:{inside:"bottom-2",left:"bottom-0 top-0 flex items-center",top:"bottom-0 top-0 flex items-center"}}});be.displayName="Input";_({});const S=o.createContext(null),z=o.createContext(null),B=()=>o.useContext(S),ge=()=>o.useContext(z),Ve=s=>{const{showErrorMessage:r=!0,...n}=s,e=P(()=>_({}));return t.jsx(S.Provider,{value:P(()=>({showErrorMessage:r,fields:e,getField:i=>w.get(e)[i],addField:(i,l)=>{w.set(e,c=>({...c,[i]:l}))},removeField:i=>{w.set(e,l=>{const c={...l};return delete c[i],c})}})),children:t.jsx(z.Provider,{value:o.useMemo(()=>({showErrorMessage:r}),[r]),children:t.jsx(he,{...n})})})},he=s=>{const{onSubmit:r,...n}=s,e=B().fields,i=o.useCallback(async l=>{l.preventDefault();const c=w.get(e);for await(const[f,d]of Object.entries(c)){const p=d.$ref;if(!p)continue;const g=p.value,x=d.rules;for(let a=0;aE(v,F=>{F[f].rules[a].status="error"}));return}}catch(m){console.error("validate function throw error",m);return}}}r?.(l)},[r]);return t.jsx("form",{onSubmit:i,...n,children:s.children})},ve=o.memo(({className:s,rules:r,onKeyDown:n,...e})=>{const i=B();if(!i)throw new Error("FormInput must be used inside ");const{showErrorMessage:l}=ge(),{addField:c,removeField:f,fields:d}=i,p=o.useRef(null),g=Z(W(d,o.useCallback(a=>{if(e.name)return a[e.name]?.rules.find(u=>u.status==="error")?.message},[e.name])));o.useEffect(()=>{const a=e.name;if(r&&a)return c(a,{rules:r,$ref:p.current}),()=>{f(a)}},[e.name,r]);const x=o.useCallback(a=>{n&&n(a),w.set(d,u=>E(u,m=>{e.name&&m[e.name].rules.forEach(v=>{v.status==="error"&&(v.status="success")})}))},[d,n,e.name]);return t.jsxs(t.Fragment,{children:[t.jsx(K,{ref:p,className:h(!!g&&"ring-2 ring-red-400 dark:ring-orange-700","w-full",s),type:"text",onKeyDown:x,...e}),l&&t.jsx(Q,{duration:.2,children:t.jsx("p",{className:"text-left text-sm text-red-400 dark:text-orange-700",children:g})})]})});ve.displayName="FormInput";export{Ve as F,ce as T,ve as a}; diff --git a/assets/Gallery-MHeEsxti.js b/assets/Gallery-MHeEsxti.js new file mode 100644 index 00000000000..efa8a929268 --- /dev/null +++ b/assets/Gallery-MHeEsxti.js @@ -0,0 +1 @@ +import{r as e,j as c}from"./index-qegmBwH1.js";import{u as T}from"./image-sZM8elMx.js";import{a as d}from"./helper-0r91fNX5.js";import{a as j,u as A,F as E,b as C}from"./WrappedElementProvider-5243oAX6.js";import{t as G}from"./lodash-Y39_oLIE.js";const k="_root_1ug9l_1",M="_indicator_1ug9l_2",O="_container_1ug9l_7",W="_child_1ug9l_17",h={root:k,indicator:M,container:O,child:W},R=60,$=15,L=5e3,H=o=>{const{images:s}=o,[r,_]=e.useState(null),[,m]=e.useState({}),l=e.useRef(0);e.useEffect(()=>{if(!r)return;const t=new ResizeObserver(()=>{m({}),n(r)});function n(I){const y=I.children.item(0);y&&(l.current=y.clientWidth)}return n(r),t.observe(r),()=>{t.disconnect()}},[r]);const[f,b]=e.useState(0),N=e.useCallback(G(t=>{const n=t.target,I=Math.floor((n.scrollLeft+R+15)/l.current);b(I)},60),[]),v=e.useCallback(t=>{r&&r.scrollTo({left:l.current*t,behavior:"smooth"})},[r]),a=e.useRef(null),p=C(f),g=C(s.length),i=e.useRef(!0),x=e.useRef(!0),u=e.useCallback(()=>{x.current&&(x.current=!1,clearInterval(a.current))},[]),{ref:S}=T({initialInView:!1,triggerOnce:s.length<2,onChange(t){g.current<2||!x.current||(t?a.current=setInterval(()=>{p.current+1>g.current-1&&i.current&&(i.current=!1),p.current-1<0&&!i.current&&(i.current=!0);const n=p.current+(i.current?1:-1);v(n)},L):a.current=clearInterval(a.current))}});return e.useEffect(()=>()=>{clearInterval(a.current)},[]),c.jsxs("div",{className:d("w-full","relative",h.root),ref:S,onTouchMove:u,onWheel:u,children:[c.jsx("div",{className:d("w-full overflow-auto whitespace-nowrap",h.container),onTouchStart:u,onScroll:N,ref:_,onTouchMove:u,onWheel:u,children:s.map(t=>c.jsx(w,{image:t},t.url))}),c.jsx("div",{className:d(h.indicator,"space-x-2"),children:Array.from({length:s.length}).map((t,n)=>c.jsx("div",{className:d("h-[6px] w-[6px] cursor-pointer rounded-full bg-stone-600 opacity-50 transition-opacity duration-200 ease-in-out",f==n&&"!opacity-100"),onClick:v.bind(null,n)},n))})]})},F={width:`calc(100% - ${R}px)`,marginRight:`${$}px`},w=e.memo(({image:o})=>{const s=j(o.url),r=o.name,m=o.footnote||(["!","¡"].some(f=>f==r?.[0])?r?.slice(1):"")||"",{w:l}=A();return c.jsx("div",{style:F,className:d(h.child,"inline-block self-center"),children:c.jsx(E,{accent:s?.accent,src:o.url,alt:m,containerWidth:l-R})},`${o.url}-${o.name||""}`)});w.displayName="GalleryItem";export{H as G}; diff --git a/assets/Gallery-ktaGTCNz.css b/assets/Gallery-ktaGTCNz.css new file mode 100644 index 00000000000..20cf4306c2f --- /dev/null +++ b/assets/Gallery-ktaGTCNz.css @@ -0,0 +1 @@ +._root_1ug9l_1:hover ._indicator_1ug9l_2{opacity:1}._container_1ug9l_7{scroll-snap-type:x mandatory;display:flex;align-items:flex-start}._container_1ug9l_7::-webkit-scrollbar{display:none}._child_1ug9l_17{scroll-snap-align:center;flex-shrink:0;scroll-snap-stop:always;text-align:center}._child_1ug9l_17:last-child{margin-right:0!important}._indicator_1ug9l_2{position:absolute;bottom:24px;left:50%;z-index:1;display:flex;border-radius:24px;background-color:var(--bg-opacity);padding:1rem 1.5rem;opacity:0;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s;transform:translate(-50%);-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%)} diff --git a/assets/LinkCard-P0Jx4JBj.css b/assets/LinkCard-P0Jx4JBj.css new file mode 100644 index 00000000000..313f8def73c --- /dev/null +++ b/assets/LinkCard-P0Jx4JBj.css @@ -0,0 +1 @@ +._card-grid_1l4wo_1{position:relative;display:flex;box-sizing:border-box;flex-direction:row;align-items:center;width:27.857rem;min-height:6rem;border-radius:.571rem;max-width:100%;overflow:hidden;margin:1.143rem auto;padding:.857rem 1.286rem;-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);transition:background-color .2s ease-in-out;gap:1.286rem;cursor:pointer;border-width:1px;font-family:var(--font-sans),system-ui,-apple-system,PingFang SC,"Microsoft YaHei",Segoe UI,Roboto,Helvetica,noto sans sc,hiragino sans gb,"sans-serif",Apple Color Emoji,Segoe UI Emoji,Not Color Emoji;text-decoration-line:none}._card-grid_1l4wo_1 *{font-style:normal!important}._card-grid_1l4wo_1{border-width:1px;border-color:#e2e8f0cc;background-color:#f3f4f6cc}:is([data-theme=dark] ._card-grid_1l4wo_1){--tw-border-opacity: 1;border-color:rgb(64 64 64 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(39 39 42 / var(--tw-bg-opacity))}._card-grid_1l4wo_1{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}._contents_1l4wo_25{flex:1 1 auto;position:relative;display:block;min-width:0;z-index:1}._title_1l4wo_34{line-height:1.429rem;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:1.071rem;font-weight:500;margin-bottom:.143rem}._desc_1l4wo_46{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}:is([data-theme=dark] ._desc_1l4wo_46){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}._desc_1l4wo_46{display:block;margin-top:.429rem;min-width:0;font-size:.9rem;line-height:1.4}._image_1l4wo_56{aspect-ratio:1 / 1;flex-shrink:0;background-size:cover;background-position:center;background-repeat:no-repeat;z-index:1;--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}:is([data-theme=dark] ._image_1l4wo_56){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity))}._image_1l4wo_56{height:3rem;width:3rem;margin-left:.1rem;border-radius:.41rem}._skeleton_1l4wo_66 ._title_1l4wo_34,._skeleton_1l4wo_66 ._desc_1l4wo_46{border-radius:7.071rem}._skeleton_1l4wo_66 ._title_1l4wo_34{width:3.571rem;height:1.429rem;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}:is([data-theme=dark] ._skeleton_1l4wo_66 ._title_1l4wo_34){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity))}._skeleton_1l4wo_66 ._desc_1l4wo_46{width:100%;margin-top:.857rem;height:1rem;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}:is([data-theme=dark] ._skeleton_1l4wo_66 ._desc_1l4wo_46){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity))}._skeleton_1l4wo_66 ._image_1l4wo_56{height:3.571rem;width:3.571rem;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}:is([data-theme=dark] ._skeleton_1l4wo_66 ._image_1l4wo_56){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity))}._skeleton_1l4wo_66._error_1l4wo_94{background-color:#e1534a20!important}._skeleton_1l4wo_66._error_1l4wo_94 ._title_1l4wo_34,._skeleton_1l4wo_66._error_1l4wo_94 ._desc_1l4wo_46,._skeleton_1l4wo_66._error_1l4wo_94 ._image_1l4wo_56{background-color:#e1534a79;color:transparent}._skeleton_1l4wo_66._error_1l4wo_94 ._image_1l4wo_56{background-image:none!important} diff --git a/assets/LinkCard-r30gHz-0.js b/assets/LinkCard-r30gHz-0.js new file mode 100644 index 00000000000..3c903fb5ff6 --- /dev/null +++ b/assets/LinkCard-r30gHz-0.js @@ -0,0 +1,10 @@ +import{g as oe,c as ue,j as c,r as x,s as X,a as fe}from"./index-qegmBwH1.js";import{L as he,u as de,g as me}from"./image-sZM8elMx.js";import{c as re,a as pe}from"./helper-0r91fNX5.js";import{L as ge}from"./StyledButton-Mj8l6PeD.js";import{j as J,k as se}from"./owner-4YVbz2PN.js";import{b as ve,u as Y,a as be}from"./usePeek-N6a5Jy_H.js";import{a as xe}from"./use-is-client-IECHC2ux.js";import{p as ye}from"./dom-NuJWIaAq.js";import{m as we}from"./motion-minimal-gJqnz197.js";var S=(o=>(o.GHRepo="gh-repo",o.Self="self",o.MixSpace="mx-space",o.GHCommit="gh-commit",o.GHPr="gh-pr",o.TMDB="tmdb",o))(S||{}),je=function(o,e){e=e||{},e.listUnicodeChar=e.hasOwnProperty("listUnicodeChar")?e.listUnicodeChar:!1,e.stripListLeaders=e.hasOwnProperty("stripListLeaders")?e.stripListLeaders:!0,e.gfm=e.hasOwnProperty("gfm")?e.gfm:!0,e.useImgAltText=e.hasOwnProperty("useImgAltText")?e.useImgAltText:!0,e.abbr=e.hasOwnProperty("abbr")?e.abbr:!1,e.replaceLinksWithURL=e.hasOwnProperty("replaceLinksWithURL")?e.replaceLinksWithURL:!1,e.htmlTagsToSkip=e.hasOwnProperty("htmlTagsToSkip")?e.htmlTagsToSkip:[];var n=o||"";n=n.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*/gm,"");try{e.stripListLeaders&&(e.listUnicodeChar?n=n.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,e.listUnicodeChar+" $1"):n=n.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),e.gfm&&(n=n.replace(/\n={2,}/g,` +`).replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),e.abbr&&(n=n.replace(/\*\[.*\]:.*\n/,"")),n=n.replace(/<[^>]*>/g,"");var u=new RegExp("<[^>]*>","g");if(e.htmlTagsToSkip.length>0){var h="(?!"+e.htmlTagsToSkip.join("|")+")";u=new RegExp("<"+h+"[^>]*>","ig")}n=n.replace(u,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,e.useImgAltText?"$1":"").replace(/\[([^\]]*?)\][\[\(].*?[\]\)]/g,e.replaceLinksWithURL?"$2":"$1").replace(/^\s{0,3}>\s?/gm,"").replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} #{0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\*]+)(\S)(.*?\S)??\1/g,"$2$3").replace(/(^|\W)([_]+)(\S)(.*?\S)??\2($|\W)/g,"$1$3$4$5").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/~(.*?)~/g,"$1")}catch(l){return console.error(l),o}return n};const _e=oe(je);var le={exports:{}};/** +* Generate unique and beautiful colors from any texts or numbers + * @version v1.1.1 + * @link https://github.com/dastoori/uniqolor#README + * @author Rasool Dastoori + * @license MIT License, http://www.opensource.org/licenses/MIT + */(function(o,e){(function(n,u){o.exports=u()})(ue,function(){function n(s,t){var r=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(r!=null){var a,f,b,g,w=[],_=!0,k=!1;try{if(b=(r=r.call(s)).next,t===0){if(Object(r)!==r)return;_=!1}else for(;!(_=(a=b.call(r)).done)&&(w.push(a.value),w.length!==t);_=!0);}catch(A){k=!0,f=A}finally{try{if(!_&&r.return!=null&&(g=r.return(),Object(g)!==g))return}finally{if(k)throw f}}return w}}function u(s,t){return i(s)||n(s,t)||p(s,t)||v()}function h(s){return l(s)||d(s)||p(s)||y()}function l(s){if(Array.isArray(s))return m(s)}function i(s){if(Array.isArray(s))return s}function d(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}function p(s,t){if(s){if(typeof s=="string")return m(s,t);var r=Object.prototype.toString.call(s).slice(8,-1);if(r==="Object"&&s.constructor&&(r=s.constructor.name),r==="Map"||r==="Set")return Array.from(s);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(s,t)}}function m(s,t){(t==null||t>s.length)&&(t=s.length);for(var r=0,a=new Array(t);r=g[0]&&f<=g[1])return s(t,r,a)}return f},O=function(t){for(var r=t.length,a=0,f=0;f1&&(a-=1),a<1/6?t+(r-t)*6*a:a<1/2?r:a<2/3?t+(r-t)*(2/3-a)*6:t},P=function(t,r,a){var f,b,g;if(t/=360,r/=100,a/=100,r===0)f=b=g=a;else{var w=a<.5?a*(1+r):a+r-a*r,_=2*a-w;f=M(_,w,t+1/3),b=M(_,w,t),g=M(_,w,t-1/3)}return[Math.round(f*255),Math.round(b*255),Math.round(g*255)]},E=function(t,r,a,f){return(t*299+r*587+a*114)/1e3>=f},V=function(t,r,a){return"hsl(".concat(t,", ").concat(r,"%, ").concat(a,"%)")},B=function(t,r,a,f){switch(f){case"rgb":return"rgb(".concat(t,", ").concat(r,", ").concat(a,")");case"hex":default:return"#".concat($(t.toString(16))).concat($(r.toString(16))).concat($(a.toString(16)))}},W=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.format,f=a===void 0?"hex":a,b=r.saturation,g=b===void 0?[50,55]:b,w=r.lightness,_=w===void 0?[50,60]:w,k=r.differencePoint,A=k===void 0?130:k,I=Math.abs(O(String(t))),D=F(I,[0,360]),z=F(I,R(g,L)),H=F(I,R(_,C)),Z=P(D,z,H),U=u(Z,3),G=U[0],ee=U[1],te=U[2];return{color:f==="hsl"?V(D,z,H):B(G,ee,te,f),isLight:E(G,ee,te,A)}};return W.random=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=s.format,r=t===void 0?"hex":t,a=s.saturation,f=a===void 0?[50,55]:a,b=s.lightness,g=b===void 0?[50,60]:b,w=s.differencePoint,_=w===void 0?130:w,k=s.excludeHue;f=R(f,L),g=R(g,C);var A=k?K(0,359,k):T(0,359),I=typeof f=="number"?f:T.apply(void 0,h(f)),D=typeof g=="number"?g:T.apply(void 0,h(g)),z=P(A,I,D),H=u(z,3),Z=H[0],U=H[1],G=H[2];return{color:r==="hsl"?V(A,I,D):B(Z,U,G,r),isLight:E(Z,U,G,_)}},W})})(le);var $e=le.exports;const ce=oe($e);function Ne(o){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...o,children:c.jsxs("g",{fill:"none",fillRule:"evenodd",children:[c.jsx("path",{d:"M24 0v24H0V0h24ZM12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036c-.01-.003-.019 0-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.016-.018Zm.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022Zm-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01l-.184-.092Z"}),c.jsx("path",{fill:"currentColor",d:"M13.08 2.868a1.25 1.25 0 0 0-2.16 0L8.126 7.665L2.697 8.842a1.25 1.25 0 0 0-.667 2.054l3.7 4.141l-.56 5.525a1.25 1.25 0 0 0 1.748 1.27L12 19.592l5.082 2.24a1.25 1.25 0 0 0 1.748-1.27l-.56-5.525l3.7-4.14a1.25 1.25 0 0 0-.667-2.055l-5.428-1.176l-2.795-4.798ZM12 17.523c.172 0 .344.035.504.106l4.206 1.854l-.463-4.573a1.25 1.25 0 0 1 .312-.959l3.062-3.427l-4.492-.973a1.25 1.25 0 0 1-.816-.592L12 4.987v12.536Z"})]})})}const Te={typescript:"#2b7489",javascript:"#f1e05a",html:"#e34c26",java:"#b07219",go:"#00add8",vue:"#2c3e50",css:"#563d7c",yaml:"#cb171e",json:"#292929",markdown:"#083fa1",csharp:"#178600","c#":"#178600",c:"#555555",cpp:"#f34b7d","c++":"#f34b7d",python:"#3572a5",lua:"#000080",vimscript:"#199f4b",shell:"#89e051",dockerfile:"#384d54",ruby:"#701516",php:"#4f5d95",lisp:"#3fb68b",kotlin:"#F18E33",rust:"#dea584",dart:"#00B4AB",swift:"#ffac45","objective-c":"#438eff","objective-c++":"#6866fb",r:"#198ce7",matlab:"#e16737",scala:"#c22d40",sql:"#e38c00",perl:"#0298c3"},ae="https://api.github.com",ke="/api/gh",Q=o=>{const e=o.replace(ae,"");return Promise.any([fetch(ae+e).then(n=>{if(n.status===403)throw new Error("GitHub API rate limit exceeded");return n.json()}),fetch(ke+e).then(n=>n.json())])},q=Symbol(),Se=Symbol(),ie=typeof window>"u"||/ServerSideRendering/.test(window.navigator&&window.navigator.userAgent)?x.useEffect:x.useLayoutEffect,Ce=X.unstable_runWithPriority?o=>X.unstable_runWithPriority(X.unstable_NormalPriority,o):o=>o();function Me(o){const e=x.createContext({[q]:{v:{current:o},n:{current:-1},l:new Set,u:u=>u()}});var n;return e[Se]=e.Provider,e.Provider=(n=e.Provider,({value:u,children:h})=>{const l=x.useRef(u),i=x.useRef(0),[d,p]=x.useState(null);d&&(d(u),p(null));const m=x.useRef();if(!m.current){const y=new Set,v=(L,C)=>{fe.unstable_batchedUpdates(()=>{i.current+=1;const $={n:i.current};C!=null&&C.suspense&&($.n*=-1,$.p=new Promise(N=>{p(()=>T=>{$.v=T,delete $.p,N(T)})})),y.forEach(N=>N($)),L()})};m.current={[q]:{v:l,n:i,l:y,u:v}}}return ie(()=>{l.current=u,i.current+=1,Ce(()=>{m.current[q].l.forEach(y=>{y({n:i.current,v:u})})})},[u]),x.createElement(n,{value:m.current},h)}),delete e.Consumer,e}function Le(o,e){const n=x.useContext(o)[q],{v:{current:u},n:{current:h},l}=n,i=e(u),[d,p]=x.useReducer((m,y)=>{if(!y)return[u,i];if("p"in y)throw y.p;if(y.n===h)return Object.is(m[1],i)?m:[u,i];try{if("v"in y){if(Object.is(m[0],y.v))return m;const v=e(y.v);return Object.is(m[1],v)?m:[y.v,v]}}catch{}return[...m]},[u,i]);return Object.is(d[1],i)||p(),ie(()=>(l.add(p),()=>{l.delete(p)}),[l]),d[1]}const Re={tmdb:!1},Pe=Me(Re),Ee=o=>Le(Pe,e=>e[o]),Ae="_contents_1l4wo_25",Ie="_title_1l4wo_34",He="_desc_1l4wo_46",Ue="_image_1l4wo_56",Oe="_skeleton_1l4wo_66",Fe="_error_1l4wo_94",j={"card-grid":"_card-grid_1l4wo_1",contents:Ae,title:Ie,desc:He,image:Ue,skeleton:Oe,error:Fe},rt=o=>xe()?c.jsx(he,{placeholder:c.jsx(Ge,{}),children:c.jsx(De,{...o})}):null,De=o=>{const{id:e,source:n=S.Self,className:u,fallbackUrl:h}=o,[l,i]=x.useState(!0),[d,p]=x.useState(!1),[m,y]=x.useState(h||"javascript:;"),[v,L]=x.useState(),C=ve(),$=x.useCallback(async t=>{C(m)&&ye(t)},[m]),N=Ee("tmdb"),T=x.useCallback((t,r)=>{const a={[S.MixSpace]:ne,[S.GHRepo]:Ve,[S.GHCommit]:Be,[S.GHPr]:We,[S.Self]:ne};N&&(a[S.TMDB]=ze);const f=a[t];if(!f)return{isValid:!1,fetchFn:null};const b=f.isValid(r);return{isValid:b,fetchFn:b?f.fetch:null}},[N]),{isValid:K,fetchFn:O}=x.useMemo(()=>T(n,e),[n,e]),F=x.useCallback(async()=>{O&&(i(!0),await O(e,L,y).catch(t=>{console.log("fetch card info error: ",t),p(!0)}),i(!1))},[O,e]),{ref:R}=de({triggerOnce:!0,onChange(t){t&&F()}}),M=Y(0),P=Y(0),E=Y(0),V=x.useCallback(({clientX:t,clientY:r,currentTarget:a})=>{const f=a.getBoundingClientRect();M.set(t-f.left),P.set(r-f.top),E.set(Math.sqrt(f.width**2+f.height**2)*1.3)},[M,P,E]),B=be`radial-gradient(${E}px circle at ${M}px ${P}px, var(--spotlight-color) 0%, transparent 65%)`;if(!K)return null;const W=n==="self"?ge:"a",s=v?.classNames||{};return c.jsxs(W,{href:m,target:n!=="self"?"_blank":"_self",ref:R,className:re(j["card-grid"],(l||d)&&j.skeleton,d&&j.error,"group",u,s.cardRoot),style:{borderColor:v?.color?`${v.color}30`:""},onClick:$,onMouseMove:V,children:[v?.color&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"absolute inset-0 z-0",style:{backgroundColor:v?.color,opacity:.06}}),c.jsx(we.div,{layout:!0,className:"absolute inset-0 z-0 opacity-0 duration-500 group-hover:opacity-100",style:{"--spotlight-color":`${v?.color}50`,background:B}})]}),c.jsxs("span",{className:j.contents,children:[c.jsx("span",{className:j.title,children:v?.title}),c.jsx("span",{className:j.desc,children:v?.desc})]}),(l||v?.image)&&c.jsx("span",{className:re(j.image,s.image),"data-image":v?.image||"",style:{backgroundImage:v?.image?`url(${v.image})`:void 0}})]})},Ge=()=>c.jsxs("span",{className:pe(j["card-grid"],j.skeleton),children:[c.jsxs("span",{className:j.contents,children:[c.jsx("span",{className:j.title}),c.jsx("span",{className:j.desc})]}),c.jsx("span",{className:j.image})]}),Ve={isValid:o=>{const e=o.split("/");return e.length===2&&e[0].length>0&&e[1].length>0},fetch:async(o,e,n)=>{const[u,h]=o.split("/");try{const l=await Q(`https://api.github.com/repos/${u}/${h}`),i=J(l);e({title:c.jsxs("span",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"flex-1",children:i.name}),c.jsx("span",{className:"flex-shrink-0 self-end justify-self-end",children:i.stargazersCount>0&&c.jsxs("span",{className:"inline-flex flex-shrink-0 items-center gap-1 self-center text-sm text-orange-400 dark:text-yellow-500",children:[c.jsx("i",{className:"icon-[mingcute--star-line]"}),c.jsx("span",{className:"font-sans font-medium",children:i.stargazersCount})]})})]}),desc:i.description,image:i.owner.avatarUrl,color:Te[i.language?.toLowerCase()]}),n(i.htmlUrl)}catch(l){throw console.error("Error fetching GitHub data:",l),l}}},Be={isValid:o=>{const e=o.split("/");return e.length===4&&e.every(n=>n.length>0)&&e[2]==="commit"},fetch:async(o,e,n)=>{const[u,h,,l]=o.split("/");try{const i=await Q(`https://api.github.com/repos/${u}/${h}/commits/${l}`),d=J(i);e({title:c.jsx("span",{className:"font-normal",children:d.commit.message.replace(/Signed-off-by:.+/,"")}),desc:c.jsxs("span",{className:"flex items-center space-x-5 font-mono",children:[c.jsxs("span",{className:"text-uk-green-light",children:["+",d.stats.additions]}),c.jsxs("span",{className:"text-uk-red-light",children:["-",d.stats.deletions]}),c.jsx("span",{className:"text-sm",children:d.sha.slice(0,7)}),c.jsxs("span",{className:"text-sm opacity-80",children:[u,"/",h]})]}),image:d.author?.avatarUrl}),n(`https://github.com/${u}/${h}/commit/${l}`)}catch(i){throw console.error("Error fetching GitHub commit data:",i),i}}},We={isValid:o=>{const e=o.split("/");return e.length===3&&e.every(n=>n.length>0)},fetch:async(o,e,n)=>{const[u,h,,l]=o.split("/");try{const i=await Q(`https://api.github.com/repos/${u}/${h}/pulls/${l}`),d=J(i);e({title:`PR: ${d.title}`,desc:c.jsxs("span",{className:"flex items-center space-x-5 font-mono",children:[c.jsxs("span",{className:"text-uk-green-light",children:["+",d.additions]}),c.jsxs("span",{className:"text-uk-red-light",children:["-",d.deletions]}),c.jsxs("span",{className:"text-sm opacity-80",children:[u,"/",h]})]}),image:d.user.avatarUrl}),n(d.htmlUrl)}catch(i){throw console.error("Error fetching GitHub PR data:",i),i}}},ne={isValid:o=>{const[e,...n]=o.split("/");return e!=="posts"&&e!=="notes"?!1:e==="posts"?n.length===2:n.length===1},fetch:async(o,e,n)=>{const[u,...h]=o.split("/");try{let l={title:"",text:""};if(u==="posts"){const[p,m]=h;l=await se.post.getPost(p,m),n(`/posts/${p}/${m}`)}else if(u==="notes"){const[p]=h;l=(await se.note.getNoteById(+p)).data,n(`/notes/${p}`)}const i=l.cover||l.meta?.cover;let d="";if(i){const p=new Image;p.src=i,p.crossOrigin="Anonymous",p.onload=()=>{e(m=>m?.title!==l.title?m:{...m,color:me(p)})}}else d=ce(l.title,{saturation:[30,35],lightness:[60,70]}).color;e({title:l.title,desc:l.summary||`${_e(l.text).slice(0,50)}...`,image:i||l.images?.[0]?.src,color:d})}catch(l){throw console.error("Error fetching self data:",l),l}}},ze={isValid(o){const[e,n]=o.split("/");return["tv","movie"].includes(e)&&n.length>0},async fetch(o,e,n){const[u,h]=o.split("/");e({classNames:{cardRoot:"!w-full"}});const l=await fetch(`/api/tmdb/${u}/${h}?language=zh-CN`).then(p=>p.json()).catch(p=>{throw console.error("Error fetching TMDB data:",p),p}),i=u==="tv"?l.name:l.title,d=u==="tv"?l.original_name:l.original_title;e({title:c.jsxs("span",{className:"flex flex-wrap items-end gap-2",children:[c.jsx("span",{children:i}),i!==d&&c.jsxs("span",{className:"text-sm opacity-70",children:["(",d,")"]}),c.jsxs("span",{className:"inline-flex flex-shrink-0 items-center gap-1 self-center text-xs text-orange-400 dark:text-yellow-500",children:[c.jsx(Ne,{}),c.jsx("span",{className:"font-sans font-medium",children:l.vote_average>0&&l.vote_average.toFixed(1)})]})]}),desc:c.jsx("span",{className:"line-clamp-none overflow-visible whitespace-pre-wrap",children:l.overview}),image:`https://image.tmdb.org/t/p/w500${l.poster_path}`,color:ce(l.name,{saturation:[30,35],lightness:[60,70]}).color,classNames:{image:"self-start !h-[75px] !w-[50px]",cardRoot:"!w-full !flex-row-reverse"}}),l.homepage&&n(l.homepage)}};export{rt as L,_e as R,S as a,Ee as u}; diff --git a/assets/Markdown-B8lEAZHM.css b/assets/Markdown-B8lEAZHM.css new file mode 100644 index 00000000000..cec7875cc71 --- /dev/null +++ b/assets/Markdown-B8lEAZHM.css @@ -0,0 +1 @@ +._md_ty0ol_1{position:relative}._md_ty0ol_1 kbd{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));border-bottom-width:2px;padding-left:.25rem;padding-right:.25rem;font-size:.875rem;line-height:1.25rem;min-height:1.6em;min-width:1.6em;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}._md_ty0ol_1 .spoiler{position:relative;transition:background .5s;text-decoration:none;border-radius:3px;background-color:currentColor;--tw-text-opacity: 1;color:rgb(68 64 60 / var(--tw-text-opacity))}:is([data-theme=dark] ._md_ty0ol_1 .spoiler){--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}@media print{._md_ty0ol_1 .spoiler{background-color:transparent!important;text-decoration-line:line-through}}._md_ty0ol_1 .spoiler:hover{background:transparent}._md_ty0ol_1 .spoiler:not(:hover) *{color:inherit!important}._md_ty0ol_1._code-fully_ty0ol_27 pre>code{max-height:unset!important}._md_ty0ol_1 summary{list-style:none}._md_ty0ol_1 summary:hover{opacity:.8}._md_ty0ol_1 summary::marker{display:none}._md_ty0ol_1 details summary:before{content:"+ "}._md_ty0ol_1 details[open] summary:before{content:"- "}._md_ty0ol_1 details[open] summary:before,._md_ty0ol_1 details summary:before{font-weight:800;font-family:var(--mono-font)}._md_ty0ol_1 sub span,._md_ty0ol_1 sup span{border:0!important}._md_ty0ol_1 sub>a,._md_ty0ol_1 sup>a{display:inline-block}._md_ty0ol_1 sub>a:first-letter,._md_ty0ol_1 sup>a:first-letter{display:none}._md_ty0ol_1 li>p{display:inline}._md_ty0ol_1 li{margin:.5em 0}._md_ty0ol_1 a.is-link{word-break:break-all;border-bottom-width:.5px;border-color:currentColor;color:inherit;text-decoration-line:none;transition-duration:.2s}._md_ty0ol_1 a.is-link:hover{--tw-text-opacity: 1;color:var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity)))}._md_ty0ol_1 hr{margin-left:auto;margin-right:auto;width:60px}._md_ty0ol_1 input[type=checkbox]{flex-shrink:0;--chkbg: var(--fallback-bc,oklch(var(--bc)/1));--chkfg: var(--fallback-b1,oklch(var(--b1)/1));height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2}._md_ty0ol_1 input[type=checkbox]:focus{box-shadow:none}._md_ty0ol_1 input[type=checkbox]:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}._md_ty0ol_1 input[type=checkbox]:checked,._md_ty0ol_1 input[type=checkbox][checked=true],._md_ty0ol_1 input[type=checkbox][aria-checked=true]{background-repeat:no-repeat;animation:_checkmark_ty0ol_1 var(--animation-input, .2s) ease-out;background-color:var(--chkbg);background-image:linear-gradient(-45deg,transparent 65%,var(--chkbg) 65.99%),linear-gradient(45deg,transparent 75%,var(--chkbg) 75.99%),linear-gradient(-45deg,var(--chkbg) 40%,transparent 40.99%),linear-gradient(45deg,var(--chkbg) 30%,var(--chkfg) 30.99%,var(--chkfg) 40%,transparent 40.99%),linear-gradient(-45deg,var(--chkfg) 50%,var(--chkbg) 50.99%)}._md_ty0ol_1 input[type=checkbox]:indeterminate{--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));background-repeat:no-repeat;animation:_checkmark_ty0ol_1 var(--animation-input, .2s) ease-out;background-image:linear-gradient(90deg,transparent 80%,var(--chkbg) 80%),linear-gradient(-90deg,transparent 80%,var(--chkbg) 80%),linear-gradient(0deg,var(--chkbg) 43%,var(--chkfg) 43%,var(--chkfg) 57%,var(--chkbg) 57%)}._md_ty0ol_1 input[type=checkbox]:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.2}[type=checkbox]._md_ty0ol_1 input[type=checkbox]{height:1rem;width:1rem}._md_ty0ol_1 input[type=checkbox]{margin-top:0;margin-bottom:0;margin-right:.5rem;vertical-align:text-bottom;vertical-align:inherit}._md_ty0ol_1 input[type=checkbox]:-moz-read-only{cursor:not-allowed}._md_ty0ol_1 input[type=checkbox]:disabled,._md_ty0ol_1 input[type=checkbox]:read-only{cursor:not-allowed}._md_ty0ol_1 :not(pre) code{border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(228 228 231 / var(--tw-bg-opacity));padding-left:.5rem;padding-right:.5rem;font-family:OperatorMonoSSmLig Nerd Font,Cascadia Code PL,FantasqueSansMono Nerd Font,operator mono,JetBrainsMono,Fira code Retina,Fira code,Consolas,Monaco,Hannotate SC,monospace,-apple-system}:is([data-theme=dark] ._md_ty0ol_1 :not(pre) code){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity))}._md_ty0ol_1 pre{min-width:0px;max-width:100%;flex-shrink:1;flex-grow:1;overflow-x:auto}._md_ty0ol_1 p{overflow-wrap:break-word}._md_ty0ol_1 mark{--lightness: .3;--highlighted: 1;--highlight: oklch(var(--a) / var(--lightness));background:var(--fallback-a,oklch(var(--a)/1));color:var(--tw-prose-body)}@supports (animation-timeline: view()){._md_ty0ol_1 mark{--highlighted: 0;background:transparent;animation:_highlight_ty0ol_1 steps(1) both;animation-timeline:view();animation-range:entry 100% cover 10%}}._md_ty0ol_1 [data-theme=dark] mark{--lightness: .35}._md_ty0ol_1 mark span{background:linear-gradient(120deg,var(--highlight, lightblue) 50%,transparent 50%) 110% 0 / 200% 100% no-repeat;background-position:calc((1 - var(--highlighted)) * 110%) 0;transition:background-position 1s}@keyframes _highlight_ty0ol_1{to{--highlighted: 1}} diff --git a/assets/Markdown-hVdCypI9.js b/assets/Markdown-hVdCypI9.js new file mode 100644 index 00000000000..c87e43f1e45 --- /dev/null +++ b/assets/Markdown-hVdCypI9.js @@ -0,0 +1,25 @@ +import{j as s,R as T,r as w,E as ot,_ as Te}from"./index-qegmBwH1.js";import{a as H,c as Q}from"./helper-0r91fNX5.js";import{S as ct}from"./script-SYgWefdU.js";import{F as Ie}from"./FloatPopover-1BpKQIdq.js";import{b as lt}from"./env-y9k74Ds6.js";import{a as it}from"./spring--xEiX8r3.js";import{a as dt}from"./visual-element-YIiczwVf.js";import{G as Ee}from"./Gallery-MHeEsxti.js";import{u as ut,L as U,a as F}from"./LinkCard-r30gHz-0.js";import{b as mt}from"./provider-jumr72cx.js";import{F as pt,S as ht,i as ft,a as gt,b as xt,c as yt,d as kt,g as bt,e as wt,f as jt,p as Y,h as vt,j as Nt,k as Mt,l as Tt,m as It,G as Et,n as Ct}from"./SocialSourceLink-c8HgVvxv.js";import{a as $t,m as Lt,u as Rt,F as St,W as Ht,I as At}from"./WrappedElementProvider-5243oAX6.js";import{a as Gt,L as Ot}from"./image-sZM8elMx.js";import{D as Ce}from"./use-is-unmounted-6i0OwE-p.js";import{l as _t,a as Pt,H as Bt}from"./CodeHighlighter-Sy1nPjje.js";import"./owner-4YVbz2PN.js";import{u as Ut}from"./toast-qMk_Ov--.js";import{C as Ft}from"./Collapse-Q-wSwlx_.js";import{u as Wt}from"./useQuery-44y7CkOR.js";import{u as Dt}from"./use-is-dark-13kBJDHw.js";import{M as zt}from"./StyledButton-Mj8l6PeD.js";function Zt(e){return s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[s.jsx("path",{fill:"currentColor",d:"M5.7 6.71a.996.996 0 0 0 0 1.41L9.58 12L5.7 15.88a.996.996 0 1 0 1.41 1.41l4.59-4.59a.996.996 0 0 0 0-1.41L7.12 6.71c-.39-.39-1.03-.39-1.42 0z"}),s.jsx("path",{fill:"currentColor",d:"M12.29 6.71a.996.996 0 0 0 0 1.41L16.17 12l-3.88 3.88a.996.996 0 1 0 1.41 1.41l4.59-4.59a.996.996 0 0 0 0-1.41L13.7 6.7c-.38-.38-1.02-.38-1.41.01z"})]})}function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t",lt:"<",nbsp:" ",quot:"“"},Xt=["style","script"],Kt=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Vt=/mailto:/i,Qt=/\n{2,}$/,$e=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,Yt=/^ *> ?/gm,Jt=/^ {2,}\n/,er=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Le=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Re=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,tr=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,rr=/^(?:\n *)*\n/,nr=/\r\n?/g,sr=/^\[\^([^\]]+)](:.*)\n/,ar=/^\[\^([^\]]+)]/,or=/\f/g,cr=/^\s*?\[(x|\s)\]/,Se=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,He=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,re=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,lr=/&([a-zA-Z]+);/g,Ae=/^)/,ir=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,ne=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,dr=/^\{.*\}$/,ur=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,mr=/^<([^ >]+@[^ >]+)>/,pr=/^<([^ >]+:\/[^ >]+)>/,hr=/-([a-z])?/gi,Ge=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,fr=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,gr=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,xr=/^\[([^\]]*)\] ?\[([^\]]*)\]/,yr=/(\[|\])/g,kr=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,br=/\t/g,wr=/^ *\| */,jr=/(^ *\||\| *$)/g,vr=/ *$/,Nr=/^ *:-+: *$/,Mr=/^ *:-+ *$/,Tr=/^ *-+: *$/,Ir=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,Er=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,Cr=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,$r=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,Lr=/^\\([^0-9A-Za-z\s])/,Rr=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Sr=/(^\n+|\n+$|\s+$)/g,Hr=/^([ \t]*)/,Ar=/\\([^\\])/g,L=1,me=/ *\n+$/,Gr=/(?:^|\n)( *)$/,ae="(?:\\d+\\.)",oe="(?:[*+-])";function Oe(e){return"( *)("+(e===L?ae:oe)+") +"}const _e=Oe(L),Pe=Oe(2);function Be(e){return new RegExp("^"+(e===L?_e:Pe))}const Or=Be(L),_r=Be(2);function Ue(e){return new RegExp("^"+(e===L?_e:Pe)+"[^\\n]*(?:\\n(?!\\1"+(e===L?ae:oe)+" )[^\\n]*)*(\\n|$)","gm")}const Fe=Ue(L),We=Ue(2);function De(e){const t=e===L?ae:oe;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const ze=De(L),Ze=De(2);function pe(e,t){const r=t===L,c=r?ze:Ze,i=r?Fe:We,l=r?Or:_r;return{match(d,p,m){if(!m)return null;const b=Gr.exec(m);return b&&(p.list||!p.inline&&!p.simple)?c.exec(d=b[1]+d):null},order:f.HIGH,parse(d,p,m){const b=r?+d[2]:void 0,v=d[0].replace(Qt,` +`).match(i);let j=!1;return{items:v?.map(function(C,O){var _;const P=(_=l.exec(C))==null?void 0:_[0].length,R=new RegExp("^ {1,"+P+"}","gm"),n=C.replace(R,"").replace(l,""),a=O===v.length-1,o=n.indexOf(` + +`)!==-1||a&&j;j=o;const u=m?.inline,h=m?.list;let g;m&&(m.list=!0),o?(m.inline=!1,g=n.replace(me,` + +`)):(m.inline=!0,g=n.replace(me,""));const x=p(g,m);return m.inline=u,m.list=h,x}),ordered:r,start:b}},react:(d,p,m)=>e(d.ordered?"ol":"ul",{key:m.key,start:d.start},d.items.map(function(b,v){return e("li",{key:v},p(b,m))}))}}const Pr=/^\[([^\]]*)]\( *([^) ]*) *"?([^)"]*)?"?\)/,Br=/^!\[([^\]]*)]\( *([^) ]*) *"?([^)"]*)?"?\)/,qe=[$e,Le,Re,Se,He,Ae,Ge,Fe,ze,We,Ze],Ur=[...qe,/^[^\n]+(?: \n|\n{2,})/,re,ne];function Fr(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/ /gi,"-").toLowerCase()}function Wr(e){return Tr.test(e)?"right":Nr.test(e)?"center":Mr.test(e)?"left":null}function he(e,t,r){const c=r.inTable;r.inTable=!0;const i=t(e.trim(),r);r.inTable=c;const l=[[]];return i.forEach(function(d,p){d.type==="tableSeparator"?p!==0&&p!==i.length-1&&l.push([]):(d.type!=="text"||i[p+1]!=null&&i[p+1].type!=="tableSeparator"||(d.content=d.content.replace(vr,"")),l[l.length-1].push(d))}),l}function Dr(e,t,r){r.inline=!0;const c=he(e[1],t,r),i=e[2].replace(jr,"").split("|").map(Wr),l=function(d,p,m){return d.trim().split(` +`).map(function(b){return he(b,p,m)})}(e[3],t,r);return r.inline=!1,{align:i,cells:l,header:c,type:"table"}}function fe(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function G(e){return function(t,r){return r.inline?e.exec(t):null}}function E(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function $(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Z(e){return function(t){return e.exec(t)}}function zr(e,t,r){if(t.inline||t.simple||r&&!r.endsWith(` +`))return null;let c="";e.split(` +`).every(l=>!qe.some(d=>d.test(l))&&(c+=l+` +`,l.trim()));const i=c.trimEnd();return i==""?null:[c,i]}function B(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return""}catch{return""}return e}function ge(e){return e.replace(Ar,"$1")}function K(e,t,r){const c=r.inline||!1,i=r.simple||!1;r.inline=!0,r.simple=!0;const l=e(t,r);return r.inline=c,r.simple=i,l}function Zr(e,t,r){const c=r.inline||!1,i=r.simple||!1;r.inline=!1,r.simple=!0;const l=e(t,r);return r.inline=c,r.simple=i,l}function qr(e,t,r){return r.inline=!1,e(t+` + +`,r)}const W=(e,t,r)=>({content:K(t,e[1],r)});function J(){return{}}function ee(){return null}function Xr(...e){return e.filter(Boolean).join(" ")}function te(e,t,r){let c=e;const i=t.split(".");for(;i.length&&(c=c[i[0]],c!==void 0);)i.shift();return c||r}var f;function Xe(e,t={}){var r,c;t.overrides=t.overrides||{},t.slugify=t.slugify||Fr,t.namedCodesToUnicode=t.namedCodesToUnicode?A({},ue,t.namedCodesToUnicode):ue,t.additionalParserRules=t.additionalParserRules||{};const i=t.createElement||T.createElement;function l(n,a,...o){const{overrides:u={}}=t||{},h=te(u,`${n}.props`,{});return i(function(g,x){const k=te(x,g);return k?typeof k=="function"||typeof k=="object"&&"render"in k?k:te(x,`${g}.component`,g):g}(n,u),A({},a,h,{className:Xr(a?.className,h?.className)||void 0}),...o)}function d(n){let a=!1;t.forceInline?a=!0:t.forceBlock||(a=kr.test(n)===!1);const o=_(O(a?n:`${n.replace(Sr,"")} + +`,{inline:a}));if(t.wrapper===null)return o;const u=t.wrapper||(a?"span":"div");let h;if(o.length>1||t.forceWrapper)h=o;else{if(o.length===1)return h=o[0],typeof h=="string"?l("span",{key:"outer"},h):h;h=null}return T.createElement(u,{key:"outer"},h)}function p(n){const a=n.match(Kt);return a?a.reduce(function(o,u,h){const g=u.indexOf("=");if(g!==-1){const x=function(y){return y.indexOf("-")!==-1&&y.match(ir)===null&&(y=y.replace(hr,function(N,S){return S.toUpperCase()})),y}(u.slice(0,g)).trim(),k=function(y){return y?(ie.test(y.charAt(0))&&(y=y.substr(1)),ie.test(y.charAt(y.length-1))&&(y=y.substr(0,y.length-1)),y):""}(u.slice(g+1).trim()),M=de[x]||x,I=o[M]=function(y,N){return y==="style"?N.split(/;\s?/).reduce(function(S,z){const le=z.slice(0,z.indexOf(":"));return S[le.replace(/(-[a-z])/g,at=>at[1].toUpperCase())]=z.slice(le.length+1).trim(),S},{}):y==="href"?B(N):(N.match(dr)&&(N=N.slice(1,N.length-1)),N==="true"||N!=="false"&&N)}(x,k);typeof I=="string"&&(re.test(I)||ne.test(I))&&(o[M]=T.cloneElement(d(I.trim()),{key:h}))}else u!=="style"&&(o[de[u]||u]=!0);return o},{}):void 0}const m=[],b=new Map,v={},j=A({blockQuote:{match:$($e),order:f.HIGH,parse:(n,a,o)=>({content:a(n[0].replace(Yt,""),o)}),react:(n,a,o)=>l("blockquote",{key:o.key},a(n.content,o))},breakLine:{match:Z(Jt),order:f.HIGH,parse:J,react:(n,a,o)=>l("br",{key:o.key})},breakThematic:{match:$(er),order:f.HIGH,parse:J,react:(n,a,o)=>l("hr",{key:o.key})},codeBlock:{match:$(Re),order:f.MAX,parse:n=>({content:n[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}),react:(n,a,o)=>l("pre",{key:o.key},l("code",A({},n.attrs,{className:n.lang?`lang-${n.lang}`:""}),n.content))},codeFenced:{match:$(Le),order:f.MAX,parse:n=>({attrs:p(n[3]||""),content:n[4],lang:n[2]||void 0,type:"codeBlock"})},codeInline:{match:E(tr),order:f.LOW,parse:n=>({content:n[2]}),react:(n,a,o)=>l("code",{key:o.key},n.content)},footnote:{match:$(sr),order:f.MAX,parse(n){const a={footnote:n[2],identifier:n[1]};return m.push(a),b.set(a.identifier,a),{}},react:ee},footnoteReference:{match:G(ar),order:f.HIGH,parse:n=>({content:n[1],target:`#${t.slugify(n[1])}`,footnoteMap:b}),react:(n,a,o)=>l("a",{key:o.key,href:B(n.target)},l("sup",{key:o.key},n.content))},gfmTask:{match:G(cr),order:f.HIGH,parse:n=>({completed:n[1].toLowerCase()==="x"}),react:(n,a,o)=>l("input",{checked:n.completed,key:o.key,readOnly:!0,type:"checkbox"})},heading:{match:$(Se),order:f.HIGH,parse:(n,a,o)=>({content:K(a,n[2],o),id:t.slugify(n[2]),level:n[1].length}),react:(n,a,o)=>(n.tag=`h${n.level}`,l(n.tag,{id:n.id,key:o.key},a(n.content,o)))},headingSetext:{match:$(He),order:f.MAX,parse:(n,a,o)=>({content:K(a,n[1],o),level:n[2]==="="?1:2,type:"heading"})},htmlComment:{match:Z(Ae),order:f.HIGH,parse:()=>({}),react:ee},image:{match:E(Br),order:f.HIGH,parse:n=>({alt:n[1],target:ge(n[2]),title:n[3]}),react:(n,a,o)=>l("img",{key:o.key,alt:n.alt||void 0,title:n.title||void 0,src:B(n.target)})},link:{match:G(Pr),order:f.LOW,parse:(n,a,o)=>({content:Zr(a,n[1],o),target:ge(n[2]),title:n[3]}),react:(n,a,o)=>l("a",{key:o.key,href:B(n.target),title:n.title},a(n.content,o))},linkAngleBraceStyleDetector:{match:G(pr),order:f.MAX,parse:n=>({content:[{content:n[1],type:"text"}],target:n[1],type:"link"})},linkBareUrlDetector:{match:(n,a)=>a.inAnchor?null:G(ur)(n,a),order:f.MAX,parse:n=>({content:[{content:n[1],type:"text"}],target:n[1],title:void 0,type:"link"})},linkMailtoDetector:{match:G(mr),order:f.MAX,parse(n){let a=n[1],o=n[1];return Vt.test(o)||(o="mailto:"+o),{content:[{content:a.replace("mailto:",""),type:"text"}],target:o,type:"link"}}},orderedList:pe(l,L),unorderedList:pe(l,2),newlineCoalescer:{match:$(rr),order:f.LOW,parse:J,react:()=>` +`},paragraph:{match:zr,order:f.LOW,parse:W,react:(n,a,o)=>l("p",{key:o.key},a(n.content,o))},ref:{match:G(fr),order:f.MAX,parse:n=>(v[n[1]]={target:n[2],title:n[4]},{}),react:ee},refImage:{match:E(gr),order:f.MAX,parse:n=>({alt:n[1]||void 0,ref:n[2]}),react:(n,a,o)=>l("img",{key:o.key,alt:n.alt,src:B(v[n.ref].target),title:v[n.ref].title})},refLink:{match:G(xr),order:f.MAX,parse:(n,a,o)=>({content:a(n[1],o),fallbackContent:a(n[0].replace(yr,"\\$1"),o),ref:n[2]}),react:(n,a,o)=>v[n.ref]?l("a",{key:o.key,href:B(v[n.ref].target),title:v[n.ref].title},a(n.content,o)):l("span",{key:o.key},a(n.fallbackContent,o))},table:{match:$(Ge),order:f.HIGH,parse:Dr,react:(n,a,o)=>l("table",{key:o.key},l("thead",null,l("tr",null,n.header.map(function(u,h){return l("th",{key:h,style:fe(n,h)},a(u,o))}))),l("tbody",null,n.cells.map(function(u,h){return l("tr",{key:h},u.map(function(g,x){return l("td",{key:x,style:fe(n,x)},a(g,o))}))})))},tableSeparator:{match:function(n,a){return a.inTable?wr.exec(n):null},order:f.HIGH,parse:function(){return{type:"tableSeparator"}},react:()=>" | "},text:{match:Z(Rr),order:f.MIN,parse:n=>({content:n[0].replace(lr,(a,o)=>{var u;return((u=t.namedCodesToUnicode)==null?void 0:u[o])||a})}),react:n=>n.content},textBolded:{match:E(Ir),order:f.MED,parse:(n,a,o)=>({content:a(n[2],o)}),react:(n,a,o)=>l("strong",{key:o.key},a(n.content,o))},textEmphasized:{match:E(Er),order:f.LOW,parse:(n,a,o)=>({content:a(n[2],o)}),react:(n,a,o)=>l("em",{key:o.key},a(n.content,o))},textEscaped:{match:E(Lr),order:f.HIGH,parse:n=>({content:n[1],type:"text"})},textMarked:{match:E(Cr),order:f.LOW,parse:W,react:(n,a,o)=>l("mark",{key:o.key},a(n.t,o))},textStrikethroughed:{match:E($r),order:f.LOW,parse:W,react:(n,a,o)=>l("del",{key:o.key},a(n.content,o))}},t.additionalParserRules);(r=t.allowedTypes)!=null&&r.length?Object.keys(j).forEach(n=>{var a;(a=t.allowedTypes)!=null&&a.includes(n)||delete j[n]}):(c=t.disabledTypes)!=null&&c.length&&t.disabledTypes.forEach(n=>{delete j[n]}),t.disableParsingRawHTML!==!0&&(j.htmlBlock={match:Z(re),order:f.HIGH,parse(n,a,o){var u;const h=n[3].match(Hr);if(!h)return console.error("markdown-to-jsx: HTML_BLOCK_ELEMENT_R regex matched but no result"),null;const[,g]=h,x=new RegExp(`^${g}`,"gm"),k=n[3].replace(x,""),M=(I=k,Ur.some(z=>z.test(I))?qr:K);var I;const y=n[1].toLowerCase(),N=((u=t.doNotProcessHtmlElements)!=null?u:Xt).indexOf(y)!==-1;o.inAnchor=o.inAnchor||y==="a";const S=N?n[3]:M(a,k,o);return o.inAnchor=!1,{attrs:p(n[2]),content:S,noInnerParse:N,tag:N?y:n[1]}},react:(n,a,o)=>l(n.tag,A({key:o.key},n.attrs),n.noInnerParse?n.content:a(n.content,o))},j.htmlSelfClosing={match:Z(ne),order:f.HIGH,parse:n=>({attrs:p(n[2]||""),tag:n[1]}),react:(n,a,o)=>l(n.tag,A({},n.attrs,{key:o.key}))});const C=t.extendsRules;if(C)for(const n in C)j[n]&&Object.assign(j[n],A({},C[n]));const O=function(n){let a=Object.keys(n);function o(u,h){const g=[];let x="";for(;u;){let k=0;for(;k{let{children:t,options:r}=e,c=function(i,l){if(i==null)return{};var d,p,m={},b=Object.keys(i);for(p=0;p=0||(m[d]=i[d]);return m}(e,qt);return T.cloneElement(Xe(t,r),c)};function Ke(e,t){let r;return typeof e=="function"?r=w.lazy(()=>e().then(c=>c.default?c:{default:Object.values(c)[0]})):r=e,function(c){T.createElement(ot,null,T.createElement(w.Suspense,{fallback:T.createElement("div",null,"Loading...")},T.createElement(r,c)))}}const Kr="main-markdown-render",ps=[],Vr={},Ve=e=>{const t=document.documentElement.scrollTop||document.body.scrollTop,r=()=>{c.stop()},c=dt({keyframes:[t+1,e],autoplay:!0,...it,onPlay(){window.addEventListener("wheel",r),window.addEventListener("touchmove",r)},onUpdate(i){i<=0&&c.stop(),window.scrollTo(0,i)}});return c.then(()=>{window.removeEventListener("wheel",r),window.removeEventListener("touchmove",r)}),c},hs=()=>Ve(0),ce=(e,t=40)=>{const c=Qr(e)+t;return Ve(c)},Qr=e=>{let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t},q=w.memo(({href:e,children:t,title:r,text:c})=>{const i=mt(),l=w.useCallback(d=>{const p=new URL(location.href),m=new URL(e);if(m.host===p.host)switch(d.preventDefault(),m.pathname.split("/").filter(Boolean)[0]){case"posts":case"notes":case"category":{i.push(m.pathname);break}default:window.open(m.pathname)}},[e,i]);return s.jsx(Ie,{as:"span",wrapperClassName:"!inline",type:"tooltip",TriggerComponent:w.useCallback(()=>s.jsxs("span",{className:"inline items-center",children:[s.jsx(pt,{href:e}),s.jsx("a",{className:"shiro-link--underline",href:e,target:"_blank",onClick:l,title:r,rel:"noreferrer",children:t}),s.jsx("i",{className:"icon-[mingcute--external-link-line] translate-y-[2px]"})]}),[l,t,e,r]),children:s.jsx("span",{children:e})})});q.displayName="MLink";const Yr="_md_ty0ol_1",Jr="_checkmark_ty0ol_1",en="_highlight_ty0ol_1",xe={md:Yr,"code-fully":"_code-fully_ty0ol_27",checkmark:Jr,highlight:en};function Qe(e){return s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 28 28",...e,children:s.jsx("path",{fill:"currentColor",d:"M14 10.55a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75Zm0 10a1 1 0 1 0 0-2a1 1 0 0 0 0 2ZM12.039 5.207c.86-1.53 3.062-1.53 3.922 0l8.685 15.44c.844 1.5-.24 3.353-1.96 3.353H5.314c-1.721 0-2.805-1.853-1.961-3.353l8.685-15.44Zm2.615.735a.75.75 0 0 0-1.308 0l-8.685 15.44a.75.75 0 0 0 .654 1.118h17.37a.75.75 0 0 0 .654-1.118l-8.685-15.44Z"})})}function Ye(e){return s.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",...e,children:s.jsx("path",{fill:"currentColor",d:"M10 6a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-1 0v-5A.5.5 0 0 1 10 6Zm0 8.5a.75.75 0 1 0 0-1.5a.75.75 0 0 0 0 1.5ZM9.723 2.084a.5.5 0 0 1 .554 0a15.05 15.05 0 0 0 6.294 2.421A.5.5 0 0 1 17 5v4.5c0 3.891-2.307 6.73-6.82 8.467a.5.5 0 0 1-.36 0C5.308 16.23 3 13.39 3 9.5V5a.5.5 0 0 1 .43-.495a15.05 15.05 0 0 0 6.293-2.421Zm-.124 1.262A15.969 15.969 0 0 1 4 5.428V9.5c0 3.392 1.968 5.863 6 7.463c4.032-1.6 6-4.071 6-7.463V5.428a15.969 15.969 0 0 1-5.6-2.082l-.4-.249l-.4.249Z"})})}function tn(e){return s.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 36 36",...e,children:[s.jsx("path",{fill:"currentColor",d:"M13.72 27.69L3.29 17.27a1 1 0 0 1 1.41-1.41l9 9L31.29 7.29A1 1 0 0 1 32.7 8.7Z",className:"clr-i-outline clr-i-outline-path-1"}),s.jsx("path",{fill:"none",d:"M0 0h36v36H0z"})]})}function Je(e){return s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256",...e,children:s.jsx("path",{fill:"currentColor",d:"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88a88.1 88.1 0 0 1-88 88Zm16-40a8 8 0 0 1-8 8a16 16 0 0 1-16-16v-40a8 8 0 0 1 0-16a16 16 0 0 1 16 16v40a8 8 0 0 1 8 8Zm-32-92a12 12 0 1 1 12 12a12 12 0 0 1-12-12Z"})})}const rn={NOTE:"text-blue-500 dark:text-blue-400",IMPORTANT:"text-accent",WARNING:"text-amber-500 dark:text-amber-400"},nn={NOTE:"border-blue-500 dark:border-blue-400",IMPORTANT:"border-accent",WARNING:"border-amber-500 dark:border-amber-400"},X={NOTE:Je,IMPORTANT:Qe,WARNING:Ye},sn=/^(> \[!(?NOTE|IMPORTANT|WARNING)\].*?)(?(?:\n *>.*?)*)(?=\n{2,}|$)/,an={match:$(sn),order:f.HIGH,parse(e){return{raw:e[0],parsed:{...e.groups}}},react(e,t,r){const{type:c,body:i}=e.parsed,l=i.replace(/^> */gm,""),d=c[0]+c.toLowerCase().slice(1),p=X[c]||X.info;return s.jsxs("blockquote",{className:H(nn[c],"not-italic"),children:[s.jsxs("span",{className:H("text-semibold mb-1 inline-flex items-center",rn[c]),children:[s.jsx(p,{className:H("flex-shrink-0 text-3xl md:mr-2 md:self-start md:text-left",X[c]||X.info)}),d]}),s.jsx("br",{}),s.jsx(D,{allowsScript:!0,className:"not-prose w-full [&>p:first-child]:mt-0",children:l})]},r.key)}},ye={warning:Qe,info:Je,error:Ye,success:tn},ke={warning:"bg-amber-50 dark:bg-amber-300",info:"bg-blue-50 dark:bg-blue-300",success:"bg-green-50 dark:bg-green-300",error:"bg-red-50 dark:bg-red-300"},be={warning:"border-amber-300",info:"border-blue-300",success:"border-green-300",error:"border-red-300"},we={warning:"text-amber-500",info:"text-blue-500",success:"text-green-500",error:"text-red-500"},je=e=>{const t=e.type=="warn"?"warning":e.type,r=ye[t]||ye.info,{placement:c="center",showIcon:i=!0}=e;return s.jsxs("div",{className:H("flex flex-col items-center gap-4 rounded-md border p-6 text-neutral-900 dark:bg-opacity-10 dark:text-[#c4c4c4] md:flex md:flex-row",ke[t]||ke.info,be[t]||be.info,c=="center"?"justify-center":"justify-start",e.className),children:[i&&s.jsx(r,{className:H("flex-shrink-0 text-3xl md:mr-2 md:self-start md:text-left",we[t]||we.info)}),e.message?s.jsx("span",{className:"leading-[1.8]",children:e.message}):e.children]})},on=["mp4","webm","ogg","avi","mov","flv","wmv","mkv"],cn=e=>on.includes(e),et=e=>{const{src:t,alt:r}=e,c={...e};c.alt=r?.replace(/^[¡!]/,"");const{w:i}=Rt(),l=t.split(".").pop();if(cn(l)){const d=r?.replace(/^[¡!]/,"");return s.jsxs("div",{className:"flex flex-col items-center",children:[s.jsx("video",{src:t,controls:!0,playsInline:!0,autoPlay:!1}),d&&s.jsxs("p",{className:"mt-1 flex flex-col items-center justify-center text-sm",children:[s.jsx(Ce,{className:"w-[80px] opacity-80"}),s.jsx("span",{className:"opacity-90",children:d})]})]})}return s.jsx(St,{...c,containerWidth:i})},ln=e=>s.jsx(Ht,{children:s.jsx("div",{className:"relative flex min-w-0 flex-grow",children:s.jsx(et,{...e})})}),dn=({imagesSrc:e,Wrapper:t,height:r=1})=>s.jsx("div",{className:"relative",style:{paddingBottom:`${r*100}%`},children:s.jsx(t,{className:"absolute inset-0",children:e.map(c=>s.jsx(tt,{src:c},c))})}),tt=w.memo(({src:e})=>{const{accent:t,height:r,width:c}=$t(e)||{},i=Gt(e,600),l=w.useRef(null),d=c&&r?c>r:!0,p=r&&c?At:"img";return s.jsx("div",{className:"relative flex h-full w-full overflow-hidden rounded-md bg-cover bg-center center",style:{backgroundColor:t},children:s.jsx(Ot,{offset:30,children:s.jsx(p,{loading:"lazy",alt:"",height:r,width:c,src:i,ref:l,className:H("!mx-0 !my-0 max-w-max object-cover",d?"h-full":"w-full"),"data-zoom-src":e,onClick:()=>{l.current&&Lt(l.current).open()}})})})});tt.displayName="GridZoomImage";const ve=e=>{const t=/^!\[((?:\[[^\]]*\]|[^[\]]|\](?=[^[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,r=e.split(` +`),c=[];for(const i of r){if(!i.startsWith("!")&&un(i)){c.push({url:i,name:i});continue}const l=t.exec(i);if(!l)continue;const[,d,p,m]=l;c.push({name:d,url:p,footnote:m})}return c},un=e=>{try{new URL(e)}catch{return!1}return!0},mn=["gallery","banner","carousel","warn","error","danger","info","success","warning","note","grid"].join("|"),pn={match:e=>{const t=/^\s*::: *(?.*?) *(?:{(?.*?)})? *\n(?[\s\S]+?)\s*::: *(?:\n *)+\n?/.exec(e);if(!t)return null;const r=t.groups.type;return!r||!r.match(mn)?null:t},order:f.MED,parse(e){const{groups:t}=e;return{node:{...t}}},react(e,t,r){const{type:c,params:i,content:l}=e.node;switch(c){case"carousel":case"gallery":return s.jsx(Ee,{images:ve(l)},r?.key);case"warn":case"error":case"danger":case"info":case"note":case"success":case"warning":{const d={warning:"warn",danger:"error",note:"info"};return s.jsx(je,{type:d[c]||c,className:"my-4",children:s.jsx(D,{value:l,allowsScript:!0,className:"w-full [&>p:first-child]:mt-0"})},r?.key)}case"banner":{if(!i)break;return s.jsx(je,{type:i,className:"my-4",children:s.jsx(D,{value:l,allowsScript:!0,className:"w-full [&>p:first-child]:mt-0"})},r?.key)}case"grid":{const{cols:d,gap:p=8,rows:m,type:b="normal"}=hn(i),v=({children:j,className:C})=>s.jsx("div",{className:Q("relative grid w-full",C),style:{gridTemplateColumns:d?`repeat(${d}, minmax(0, 1fr))`:void 0,gap:`${p}px`,gridTemplateRows:m?`repeat(${m}, minmax(0, 1fr))`:void 0},children:j});switch(b){case"normal":return s.jsx(v,{children:s.jsx(D,{overrides:{img:ln},value:l,allowsScript:!0,removeWrapper:!0,className:"w-full [&>p:first-child]:mt-0"})},r?.key);case"images":{const j=ve(l).map(C=>C.url);return s.jsx(dn,{height:m&&d?+m/+d:1,imagesSrc:j,Wrapper:v},r.key)}default:return null}}}return s.jsx("div",{children:s.jsx("p",{children:l})},r?.key)}};function hn(e){const t=/(\w+)=(\w+)/g;let r;const c={};for(;(r=t.exec(e))!==null;){const i=r[1],l=r[2];c[i]=l}return c}const fn={match:E(/^\+\+((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)\+\+/),order:f.LOW,parse:W,react(e,t,r){return s.jsx("ins",{children:t(e.content,r)},r?.key)}},gn=T.useInsertionEffect||T.useEffect,xn={match:E(/^\$\s{0,}((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)\s{0,}\$/),order:f.MED,parse(e){return{type:"kateX",katex:e[1]}},react(e,t,r){return s.jsx(rt,{children:e.katex},r?.key)}},rt=e=>{const{children:t,mode:r}=e,[c,i]=w.useState(""),l=r==="display",d=!1;return gn(()=>{_t("https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css"),Pt("https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js").then(()=>{const p=window.katex.renderToString(t,{displayMode:l,throwOnError:d});i(p)})},[]),s.jsx("span",{dangerouslySetInnerHTML:{__html:c}})},yn={match:$(new RegExp(`^\\s*\\$\\$ *(?[\\s\\S]+?)\\s*\\$\\$ *(?: + *)+ +?`)),order:f.LOW,parse(e){return{type:"kateXBlock",groups:e.groups}},react(e,t,r){return s.jsx("div",{children:s.jsx(rt,{mode:"display",children:e.groups.content})},r?.key)}},kn={match:E(/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/),order:f.LOW,parse:W,react(e,t,r){return s.jsx("mark",{className:"rounded-md",children:s.jsx("span",{className:"px-1",children:t(e.content,r)})},r?.key)}},bn={match:E(/^(\[(?.*?)\])?\{((?(GH)|(TW)|(TG))@(?\w+\b))\}\s?(?!\[.*?\])/),order:f.MIN,parse(e){const{groups:t}=e;return t?{content:{...t},type:"mention"}:{}},react(e,t,r){const{content:c}=e;if(!c)return null;const{prefix:i,name:l,displayName:d}=c;return l?s.jsx(ht,{name:d||l,source:i},r?.key):null}},wn={match:E(/^\|\|((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)\|\|/),order:f.LOW,parse:W,react(e,t,r){return s.jsx("del",{className:"spoiler",title:"你知道的太多了",children:t(e.content,r)},r?.key)}},jn=e=>{const[t,r]=w.useState(!1),c=e.children[0],i=Ut();w.useLayoutEffect(()=>{i&&r(!0)},[i]);const l=w.useCallback(()=>{r(d=>!d)},[]);return s.jsxs("div",{className:"my-2",children:[s.jsxs("button",{className:"mb-2 flex cursor-pointer items-center pl-2",onClick:l,children:[s.jsx("i",{className:H("icon-[mingcute--align-arrow-down-line] mr-2 transform transition-transform duration-500",!t&&"-rotate-90"),children:s.jsx(Zt,{})}),c]}),s.jsx(Ft,{withBackground:!0,isOpened:t,className:"my-2",children:s.jsx("div",{className:H(t?"opacity-100":"opacity-0","transition-opacity duration-500"),children:e.children.slice(1)})})]})};function vn(e){return s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"m6.8 13l2.9 2.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275l-4.6-4.6q-.15-.15-.213-.325T3.426 12q0-.2.063-.375T3.7 11.3l4.6-4.6q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7L6.8 11H19V8q0-.425.288-.713T20 7q.425 0 .713.288T21 8v3q0 .825-.588 1.413T19 13H6.8Z"})})}const V=e=>`footnote-ref-${e}`,se=e=>`footnote-${e}`;function nt(e){const t=document.getElementById(e);t?(t.style.color="#ef4444",setTimeout(()=>{t.style.color=""},5e3)):console.log(`Element with id fnref:${e} not found.`)}const Nn=e=>s.jsxs("div",{className:"children:my-2 children:leading-6 children:text-base mt-4",children:[s.jsx(Ce,{}),T.Children.map(e.children,t=>{if(T.isValidElement(t)){const r=t.props.id;return s.jsx("div",{id:`${se(r)}`,children:s.jsxs("div",{className:"inline",children:[T.cloneElement(t,{className:"inline"}),s.jsxs("a",{href:`#${V(r)}`,onClick:c=>{c.preventDefault(),ce(document.getElementById(`${V(r)}`),-window.innerHeight/2),nt(`${V(r)}`)},className:"ml-2 inline-flex items-center",children:[s.jsx(vn,{}),s.jsxs("span",{className:"sr-only",children:["返回",r]})]})]})})}else return null})]}),Mn="别着急,坐和放宽",Tn=({loadingText:e,className:t,useDefaultLoadingText:r=!1})=>{const c=r?Mn:e;return s.jsxs("div",{"data-hide-print":!0,className:Q("my-20 flex flex-col center",t),children:[s.jsx("span",{className:"loading loading-ball loading-lg"}),!!c&&s.jsx("span",{className:"mt-6 block",children:c})]})},In={".js":"javascript",".ts":"typescript",".jsx":"javascript",".tsx":"typescript",".md":"markdown",".css":"css",".scss":"scss",".html":"html",".json":"json",".yml":"yaml",".yaml":"yaml",".toml":"toml",".xml":"xml",".sh":"bash",".bash":"bash",".zsh":"bash",".fish":"bash",".ps1":"powershell",".bat":"batch",".cmd":"batch",".go":"go",".py":"python",".rb":"ruby",".java":"java",".c":"c",".cpp":"cpp",".cs":"csharp",".rs":"rust",".swift":"swift",".kt":"kotlin",".clj":"clojure",".lua":"lua",".sql":"sql",".graphql":"graphql",".groovy":"groovy",".scala":"scala",".pl":"perl",".r":"r",".dart":"dart",".elm":"elm",".erl":"erlang",".ex":"elixir",".h":"c",".hpp":"cpp",".hxx":"cpp",".hh":"cpp",".h++":"cpp",".m":"objectivec",".mm":"objectivec",".vue":"vue"},st=w.memo(({owner:e,path:t,repo:r,refType:c})=>{const i=t.slice(t.lastIndexOf(".")),l=In[i]||"text",{data:d,isLoading:p,isError:m}=Wt({queryKey:["github-preview",e,r,t,c],queryFn:async()=>fetch(`https://cdn.jsdelivr.net/gh/${e}/${r}${c?`@${c}`:""}/${t}`).then(async b=>b.text())});return p?s.jsx(Tn,{className:"h-[50vh]",loadingText:"Loading GitHub File Preview..."}):m?s.jsxs("pre",{className:"flex h-[50vh] flex-wrap rounded-md border border-uk-orange-light center",children:[s.jsx("code",{children:"Loading GitHub File Preview Failed:"}),s.jsx("br",{}),s.jsxs("code",{children:[e,"/",r,"/",t]})]}):d?s.jsx("div",{className:"h-[50vh] w-full overflow-auto",children:s.jsx(Bt,{content:d,lang:l})}):null});st.displayName="EmbedGithubFile";const En=Ke(()=>Te(()=>import("./Tweet-1JBoHQe6.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url)),Cn=({href:e,children:t})=>{const r=w.useMemo(()=>{try{return new URL(e)}catch{return null}},[e]),c=w.useMemo(()=>s.jsx("p",{children:s.jsx(q,{href:e,children:t??s.jsx("span",{children:e})})}),[t,e]),i=ut("tmdb");if(!r)return c;switch(!0){case wt(r):return s.jsx($n,{url:r,href:e,fallbackElement:c});case kt(r):{const l=bt(r);return s.jsx(En,{id:l})}case yt(r):{const l=r.searchParams.get("v");return s.jsx(Ne,{children:s.jsx("iframe",{src:`https://www.youtube.com/embed/${l}`,className:"absolute inset-0 h-full w-full border-0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"YouTube video player"})})}case xt(r):return s.jsx(Ne,{children:s.jsx("iframe",{className:"absolute inset-0 h-full w-full rounded-md border-0",src:`https://codesandbox.io/embed/${r.pathname.slice(2)}?fontsize=14&hidenavigation=1&theme=dark${r.search}`})});case gt(r):return s.jsx(U,{fallbackUrl:r.toString(),source:F.Self,id:r.pathname.slice(1)});case ft(r):if(i)return s.jsx(U,{fallbackUrl:r.toString(),source:F.TMDB,id:r.pathname.slice(1)})}return c},Ne=({children:e,ratio:t=58})=>s.jsx("div",{className:"mockup-window my-16 bg-base-300",children:s.jsx("div",{className:"flex justify-center px-4",children:s.jsx("div",{className:"relative my-8 h-0 w-full",style:{paddingBottom:`${t}%`},children:e})})}),$n=e=>{const{url:t,href:r=t.href,fallbackElement:c}=e;switch(!0){case Ct(t):{const{owner:i,repo:l}=Y(t);return s.jsx(U,{id:`${i}/${l}`,source:F.GHRepo})}case Tt(t):{const{owner:i,id:l}=It(t);return s.jsxs(s.Fragment,{children:[s.jsx("iframe",{src:`https://gist.github.com/${i}/${l}.pibb`,className:"h-[300px] w-full overflow-auto border-0"}),s.jsxs("a",{className:"mt-2 flex space-x-2 center",href:r,target:"_blank",rel:"noreferrer",children:[s.jsx(Et,{}),s.jsx("span",{children:r})]})]})}case Nt(t):{const{owner:i,repo:l,pr:d}=Mt(t);return s.jsx(U,{fallbackUrl:t.toString(),id:`${i}/${l}/${d}`,source:F.GHPr})}case vt(t):{const{owner:i,repo:l,id:d}=Y(t);return s.jsxs(s.Fragment,{children:[s.jsx("p",{children:s.jsx(q,{href:r,children:r})}),s.jsx(U,{fallbackUrl:t.toString(),id:`${i}/${l}/commit/${d}`,source:F.GHCommit})]})}case jt(t):{const{owner:i,repo:l,afterTypeString:d}=Y(t),p=d.split("/"),m=p[0],b=m?p.slice(1).join("/"):d;return s.jsxs("div",{className:"flex w-full flex-col items-center",children:[s.jsx(st,{owner:i,repo:l,path:b,refType:m}),s.jsx("div",{className:"mt-4",children:s.jsx(q,{href:r,children:r})})]})}}return c},Ln=e=>{const{children:t,...r}=e,{className:c,...i}=r;if(T.Children.count(t)===1){const l=T.Children.toArray(t)[0];if(Rn(l))return t;if(Sn(l)){const d=l?.props?.children;return s.jsx(Cn,{href:l?.props?.href,children:d})}}return s.jsx("p",{className:H("paragraph",c),...i,children:t})},Rn=e=>!!(typeof e=="object"&&e?.props?.src),Sn=e=>!!(typeof e=="object"&&e?.props?.href&&e?.props?.children?.length===1),Hn=e=>{const{className:t,...r}=e;return s.jsx("table",{...r,className:Q("table table-zebra table-pin-rows",t)})},An=e=>{const{children:t,className:r,...c}=e;return s.jsx("thead",{className:r,...c,children:t})},Gn=e=>{const{children:t,...r}=e;return s.jsx("tr",{...r,children:t})},On=e=>{const{children:t,...r}=e;return s.jsx("tbody",{...r,children:t})},_n=e=>{const{children:t,id:r,level:c}=e,l=`${w.useId()}${r}`;return w.createElement(`h${c}`,{id:l,className:"group flex items-center","data-markdown-heading":!0},null,s.jsxs(s.Fragment,{children:[s.jsx("span",{children:t}),s.jsx("span",{className:"ml-2 inline-flex cursor-pointer select-none text-accent opacity-0 transition-opacity duration-200 center group-hover:opacity-100",role:"button",tabIndex:0,"aria-hidden":!0,onClick:()=>{const d=history.state;history.replaceState(d,"",`#${l}`),ce(document.getElementById(l),-100)},children:s.jsx("i",{className:"icon-[mingcute--hashtag-line]"})})]}))},Me=(e,t,r)=>{const c=Math.floor(Math.random()*(t[1]-t[0]+1)+t[0]),i=Math.floor(Math.random()*(e[1]-e[0]+1)+e[0]),l=c>30?c-30:0,d=i<80?i+20:100;return{accent:`hsl(${r}, ${c}%, ${i}%)`,background:`hsl(${r}, ${l}%, ${d}%)`}};function Pn(e){let t=0;for(let c=0;c{const t=e??Math.floor(Math.random()*361),r=(t+180)%360,c=Me([40,70],[70,90],t),i=Me([20,50],[70,90],r);return{light:{accent:c.accent,background:c.background},dark:{accent:i.accent,background:i.background}}};function Un(e,t){if(!/^hsl\((\d{1,3}),\s*([\d.]+)%,\s*([\d.]+)%\)$/.test(e))throw new Error("Invalid HSL color value");return`${e.slice(0,-1)}, ${t})`.replace("hsl","hsla")}const Fn=w.memo(function(t){const{text:r,count:c,passProps:i,onClick:l,className:d}=t,{dark:p,light:m}=w.useMemo(()=>Bn(Pn(r)),[r]),v=Dt()?p.background:m.background,j=l?zt:"span";return s.jsxs(j,{onClick:()=>{l?.(i)},className:Q("inline-block space-x-1 rounded-md px-3 py-2",d),style:{backgroundColor:Un(v,.7)},children:[s.jsx("span",{children:r}),!!c&&s.jsxs("span",{className:"self-end text-xs",children:["(",c,")"]})]},r)}),Wn=({children:e})=>typeof e?.[0]!="string"?null:s.jsx(Fn,{text:e[0]}),Dn=Ke(()=>Te(()=>import("./CodeBlock-SLrWmN1-.js"),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11,12,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37]),import.meta.url).then(e=>e.CodeBlock)),D=w.memo(e=>{const{value:t,renderers:r,style:c,wrapperProps:i={},codeBlockFully:l=!1,className:d,overrides:p,extendsRules:m,additionalParserRules:b,as:v="div",allowsScript:j=!1,removeWrapper:C=!1,...O}=e,_=w.useRef(null),P=w.useMemo(()=>{const R=t||e.children;return!R||typeof R!="string"?null:Xe(R,{wrapper:null,overrides:{p:Ln,thead:An,tr:Gn,tbody:On,table:Hn,footer:Nn,details:jn,img:et,tag:Wn,LinkCard:U,Gallery:Ee,script:j?ct:void 0,...p},extendsRules:{heading:{react(a,o,u){return s.jsx(_n,{id:a.id,level:a.level,children:o(a.content,u)},u?.key)}},gfmTask:{react(a,o,u){return s.jsx("input",{type:"checkbox",checked:a.completed,readOnly:!0},u?.key)}},link:{react(a,o,u){const{target:h,title:g}=a;let x="";for(const k of a.content)k.type==="text"&&(x+=k.content);return s.jsx(q,{href:B(h),title:g,text:x,children:o(a.content,u)},u?.key)}},footnoteReference:{react(a,o,u){const{footnoteMap:h,content:g}=a,x=h.get(g),k=(()=>{try{const M=new URL(x?.footnote?.replace(": ",""));return!(M.hostname===window.location.hostname)&&!lt?void 0:M.pathname.slice(1)}catch{return}})();return s.jsxs(w.Fragment,{children:[s.jsx(Ie,{wrapperClassName:"inline",as:"span",TriggerComponent:()=>s.jsx("a",{href:`${se(g)}`,onClick:M=>{M.preventDefault();const I=se(g);ce(document.getElementById(I),-window.innerHeight/2),nt(I)},children:s.jsx("sup",{id:`${V(g)}`,children:`[^${g}]`})}),type:"tooltip",children:x?.footnote?.substring(1)}),k&&s.jsx(U,{id:k,source:F.MixSpace})]},u?.key)}},codeBlock:{react(a,o,u){return s.jsx(Dn,{content:a.content,lang:a.lang},u?.key)}},list:{react(a,o,u){const h=a.ordered?"ol":"ul";return s.jsx(h,{start:a.start,children:a.items.map((g,x)=>{let k="";return g[0]?.type=="gfmTask"&&(k="list-none flex items-center"),s.jsx("li",{className:k,children:o(g,u)},x)})},u?.key)}},...m,...r},additionalParserRules:{spoilder:wn,mention:bn,mark:kn,ins:fn,kateX:xn,kateXBlock:yn,container:pn,alerts:an,...b},...O})},[t,e.children,j,p,m,r,b,O]);return C?s.jsx(w.Suspense,{children:P}):s.jsx(w.Suspense,{children:s.jsx(v,{style:c,...i,ref:_,className:H(xe.md,l?xe["code-fully"]:void 0,d),children:P})})});D.displayName="Markdown";const fs=e=>{const{wrapperProps:t=Vr}=e;return s.jsx(D,{as:"main",...e,wrapperProps:w.useMemo(()=>({...t,id:Kr}),[t])})};export{je as B,Tn as L,D as M,Fn as T,ms as U,fs as a,Pn as b,q as c,Ke as d,Bn as g,ps as n,hs as s}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["./Tweet-1JBoHQe6.js","./index-qegmBwH1.js","./index-SRCubG37.css","./WrappedElementProvider-5243oAX6.js","./helper-0r91fNX5.js","./index-5Y6ZmVAf.js","./image-sZM8elMx.js","./use-is-unmounted-6i0OwE-p.js","./env-y9k74Ds6.js","./store-gmK8mRDy.js","./init-a0893ef4-4662SO8Z.js","./lodash-Y39_oLIE.js","./WrappedElementProvider-v7JdpuAw.css","./CodeBlock-SLrWmN1-.js","./BlockLoading-PMBA_Cs1.js","./script-SYgWefdU.js","./FloatPopover-1BpKQIdq.js","./spring--xEiX8r3.js","./motion-minimal-gJqnz197.js","./use-event-callback-nMlqCkS7.js","./use-is-client-IECHC2ux.js","./visual-element-YIiczwVf.js","./Gallery-MHeEsxti.js","./Gallery-ktaGTCNz.css","./LinkCard-r30gHz-0.js","./StyledButton-Mj8l6PeD.js","./owner-4YVbz2PN.js","./toast-qMk_Ov--.js","./usePeek-N6a5Jy_H.js","./provider-jumr72cx.js","./dom-NuJWIaAq.js","./LinkCard-P0Jx4JBj.css","./SocialSourceLink-c8HgVvxv.js","./CodeHighlighter-Sy1nPjje.js","./use-is-dark-13kBJDHw.js","./CodeHighlighter-hcFZa2QO.css","./Collapse-Q-wSwlx_.js","./useQuery-44y7CkOR.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/assets/Mermaid-5Gw5JBOp.js b/assets/Mermaid-5Gw5JBOp.js new file mode 100644 index 00000000000..84b39e03ce1 --- /dev/null +++ b/assets/Mermaid-5Gw5JBOp.js @@ -0,0 +1,7 @@ +import{r as e,_ as p,j as s}from"./index-qegmBwH1.js";import{u as b}from"./use-is-dark-13kBJDHw.js";import{u as w,F as y}from"./WrappedElementProvider-5243oAX6.js";import{B as L}from"./BlockLoading-PMBA_Cs1.js";import"./helper-0r91fNX5.js";import"./index-5Y6ZmVAf.js";import"./image-sZM8elMx.js";import"./use-is-unmounted-6i0OwE-p.js";import"./env-y9k74Ds6.js";import"./store-gmK8mRDy.js";import"./init-a0893ef4-4662SO8Z.js";import"./lodash-Y39_oLIE.js";const V=n=>{const[h,m]=e.useState(!0),[E,a]=e.useState(""),[c,u]=e.useState(""),[x,l]=e.useState(),[v,f]=e.useState(),g=b();e.useEffect(()=>{p(()=>import("./index.demo-_07sssxB.js").then(r=>r.b4),__vite__mapDeps([0,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]),import.meta.url).then(async r=>{r.default.initialize({theme:g?"dark":"default"})})},[g]);const d=e.useId().split(":").join("");e.useEffect(()=>{if(!n.content)return;a(""),m(!0);let r=!1;p(()=>import("./index.demo-_07sssxB.js").then(o=>o.b4),__vite__mapDeps([0,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]),import.meta.url).then(async o=>{const I=o.default;let i;try{i=await I.render(`mermaid-${d}`,n.content)}catch(t){document.getElementById(`dmermaid-${d}`)?.remove(),t instanceof Error&&a(t.message),u(""),l(void 0),f(void 0)}if(!r){if(i){u(i.svg);const t=i.svg.match(/viewBox="[^"]*\s([\d.]+)\s([\d.]+)"/);t?.[1]&&t?.[2]&&(l(parseInt(t?.[1])),f(parseInt(t?.[2]))),a("")}return m(!1),()=>{r=!0}}})},[d,n.content]);const{w:_}=w(),S=new TextEncoder().encode(c),j=`data:image/svg+xml;base64,${btoa(String.fromCharCode(...new Uint8Array(S)))}`;return h?s.jsx(L,{children:"Mermaid Loading..."}):c?s.jsx("div",{children:s.jsx(y,{containerWidth:_,src:j,width:x,height:v})}):s.jsx("div",{className:"flex min-h-[50px] items-center justify-center rounded-lg bg-red-100 text-sm",children:E||"Error"})};export{V as Mermaid}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["./index.demo-_07sssxB.js","./owner-4YVbz2PN.js","./index-qegmBwH1.js","./index-SRCubG37.css","./toast-qMk_Ov--.js","./init-a0893ef4-4662SO8Z.js","./helper-0r91fNX5.js","./StyledButton-Mj8l6PeD.js","./index-5Y6ZmVAf.js","./motion-minimal-gJqnz197.js","./store-gmK8mRDy.js","./env-y9k74Ds6.js","./index-I7weg1Js.js","./use-is-dark-13kBJDHw.js","./usePeek-N6a5Jy_H.js","./visual-element-YIiczwVf.js","./provider-jumr72cx.js","./use-is-unmounted-6i0OwE-p.js","./spring--xEiX8r3.js","./use-event-callback-nMlqCkS7.js","./dom-NuJWIaAq.js","./image-sZM8elMx.js","./WrappedElementProvider-5243oAX6.js","./lodash-Y39_oLIE.js","./WrappedElementProvider-v7JdpuAw.css","./script-SYgWefdU.js","./index-QSj7qAqP.js","./CodeEditor-pXHtjbJq.js","./CodeHighlighter-Sy1nPjje.js","./CodeHighlighter-hcFZa2QO.css","./AutoResizeHeight-pHZ_oyCK.js","./FormInput-cQs6MTpb.js","./index-D4F-WjWJ.js","./BlockLoading-PMBA_Cs1.js","./FloatPopover-1BpKQIdq.js","./use-is-client-IECHC2ux.js","./index-fcBMwXcr.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/assets/NotePreview-EmJiu6Nz.js b/assets/NotePreview-EmJiu6Nz.js new file mode 100644 index 00000000000..521299ae3ae --- /dev/null +++ b/assets/NotePreview-EmJiu6Nz.js @@ -0,0 +1 @@ +import{j as e,r as o,R as E}from"./index-qegmBwH1.js";import{u as j}from"./useQuery-44y7CkOR.js";import{c as v,a as g}from"./helper-0r91fNX5.js";import{u as H,o as G,m as P,k as C,p as K}from"./owner-4YVbz2PN.js";import{p as b,M as _,c as Q,R as J,N as e1,q as t1,A as a1,P as n1,X as r1,g as s1,B as c1}from"./utils-t32ZRaBl.js";import{t as i1}from"./toast-qMk_Ov--.js";import{L as p}from"./StyledButton-Mj8l6PeD.js";import"./provider-jumr72cx.js";import{j as l1}from"./store-gmK8mRDy.js";import{F as Y}from"./FloatPopover-1BpKQIdq.js";import{a as o1,n as d1,s as m1,U as h1,L as $}from"./Markdown-hVdCypI9.js";import{M as u1,W as x1}from"./WrappedElementProvider-5243oAX6.js";import{b as l,r as N,R as M,c as p1,d as j1}from"./CurrentPostDataProvider-sxwUfZTo.js";import{u as O}from"./use-is-client-IECHC2ux.js";import{u as f1}from"./FlexText-sued5-2E.js";import{a as Z,u as g1,b as w1}from"./init-a0893ef4-4662SO8Z.js";import{A as v1}from"./AutoResizeHeight-pHZ_oyCK.js";import{i as C1}from"./index-5Y6ZmVAf.js";import{m as U}from"./motion-minimal-gJqnz197.js";import{A as N1}from"./spring--xEiX8r3.js";import{D as h,a as x}from"./use-is-unmounted-6i0OwE-p.js";import"./env-y9k74Ds6.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./image-sZM8elMx.js";import"./customParseFormat-3OBJgCTU.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./script-SYgWefdU.js";import"./Gallery-MHeEsxti.js";import"./lodash-Y39_oLIE.js";import"./LinkCard-r30gHz-0.js";import"./SocialSourceLink-c8HgVvxv.js";import"./CodeHighlighter-Sy1nPjje.js";import"./use-is-dark-13kBJDHw.js";import"./Collapse-Q-wSwlx_.js";const M1=t=>{const a=H(),n=G(),{id:r,type:s,className:i}=t;if(!a)return null;const c=n(`#/${s}/edit?id=${r}`);return c?e.jsxs("a",{href:c,"data-hide-print":!0,target:"_blank",className:v("flex h-8 w-8 rounded-full text-accent no-underline opacity-80 ring-1 ring-slate-200 duration-200 center hover:opacity-100 dark:ring-neutral-800",i),rel:"noreferrer",children:[e.jsx("i",{className:"icon-[mingcute--quill-pen-line]"}),e.jsx("span",{className:"sr-only",children:"编辑"})]}):null},B={"with-indent":"_with-indent_1n4mw_1","with-serif":"_with-serif_1n4mw_91"},Z1=()=>{const t=l(n=>n?.data.title),a=l(n=>n?.data.id);return t?e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"mt-8 text-left font-bold text-base-content/95",children:t}),e.jsx(M1,{type:"notes",id:a,className:"absolute right-0 top-0"})]}):null},y1=()=>{const t=l(n=>n?.data.created);if(!t)return null;const a=P(t).locale("zh-cn").format("YYYY 年 M 月 D 日 dddd");return e.jsxs("span",{className:"inline-flex items-center space-x-1",children:[e.jsx(_,{}),e.jsx("time",{className:"font-medium",suppressHydrationWarning:!0,children:a})]})},k1=()=>{const t=l(n=>({created:n?.data.created,modified:n?.data.modified}));if(!t?.created)return null;const a=`创建于 ${b(t.created,"YYYY 年 M 月 D 日 dddd")}${t.modified?`,修改于 ${b(t.modified,"YYYY 年 M 月 D 日 dddd")}`:""}`;return e.jsx(Y,{as:"span",TriggerComponent:y1,children:a})},b1=()=>{const t=l(a=>a?.data.text);return e.jsx(o1,{className:"mt-10",allowsScript:!0,renderers:L1,value:t})},B1=t=>{const a=l(n=>n?.data.images||d1);return e.jsx(u1,{images:a,children:t.children})},L1={text:{react(t,a,n){return e.jsx("span",{className:"indent",children:t.content},n?.key)}}},T1=t=>e.jsx("article",{className:g("prose relative",B["with-indent"],B["with-serif"]),children:t.children}),A1=t=>O()?e.jsx(e.Fragment,{children:t.children}):null,w=Z(null),I1=o.memo(({nid:t,children:a})=>{const n=g1(w);return f1(()=>{l1.set(w,t)}),o.useEffect(()=>{n(t)},[t]),a});I1.displayName="CurrentNoteIdProvider";const V=()=>w1(w),L={info:"bg-sky-50 dark:bg-sky-800 dark:text-white",warning:"bg-orange-100 dark:bg-orange-800 dark:text-white",error:"bg-rose-100 dark:bg-rose-800 dark:text-white",success:"bg-emerald-100 dark:bg-emerald-800 dark:text-white",secondary:"bg-sky-100 dark:bg-sky-800 dark:text-white"},F1=()=>{let a=l(n=>n?.data.meta)?.banner;if(a)return typeof a=="string"?{type:"info",message:a,className:L.info}:(a={...a},a.type??="info",a.className??=L[a.type],a)},D1=()=>{const t=F1();return t?e.jsx("div",{className:"mx-[var(--padding-h)] mb-4 mt-8 text-sm",children:e.jsx(R1,{...t})}):null},R1=t=>e.jsx("div",{className:v("flex justify-center p-4 leading-8",t.className),style:t.style,children:t.message}),S1=({children:t})=>{const a=l(c=>c?.data.secret),n=l(c=>c?.data.nid),r=o.useMemo(()=>new Date(a),[a]),s=a?P(a).isAfter(new Date):!1,i=H();if(o.useEffect(()=>{if(!n)return;let c;const d=+r-+new Date;return s&&d&&d<28&&(c=setTimeout(()=>{i1("刷新以查看解锁的文章","info",{autoClose:!1})},d)),()=>{clearTimeout(c)}},[s,r,n]),!n)return null;if(s){const c=a?Intl.DateTimeFormat("zh-cn",{hour12:!1,hour:"numeric",minute:"numeric",year:"numeric",day:"numeric",month:"long"}).format(new Date(a)):"";return i?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"my-6 text-center",children:[e.jsxs("p",{children:["这是一篇非公开的文章。(将在 ",c," 解锁)"]}),e.jsx("p",{children:"现在处于登录状态,预览模式:"})]}),t]}):e.jsxs("div",{className:"my-6 text-center",children:["这篇文章暂时没有公开呢,将会在 ",c," 解锁,再等等哦"]})}return t};Z(0);const z1=Q({from:{translateX:-70,opacity:.001},to:{translateX:0,opacity:1}}),T=C1({base:"text-neutral-content min-w-0 truncate text-left opacity-50 transition-all tabular-nums hover:opacity-80",variants:{status:{active:"ml-2 opacity-100"}}}),A={opacity:1e-4},E1={opacity:1},y=o.memo(t=>{const{active:a,nid:n,title:r,layout:s}=t;return e.jsxs(U.li,{layout:s,className:"flex items-center",layoutId:s?`note-${n}`:void 0,initial:A,animate:E1,exit:A,children:[a&&e.jsx(z1,{as:"span",className:"inline-flex items-center",children:e.jsx("i",{className:"icon-[material-symbols--arrow-circle-right-outline-rounded] duration-200"})}),e.jsx(p,{onClick:m1,prefetch:!1,className:v(a?T({status:"active"}):T()),href:N(M.Note,{id:n}),scroll:!1,children:r})]})});y.displayName="MemoedItem";const H1=o.memo(()=>V()?e.jsx(_1,{}):null);H1.displayName="NoteTimeline";const P1={transition:{staggerChildren:.5}},_1=()=>{const t=l(i=>{const c=i?.data;return c?{id:c.id,nid:c.nid,title:c.title,created:c.created}:null}),a=V(),n=t?.id,{data:r}=j({queryKey:["note_timeline",n],queryFn:async({queryKey:i})=>{const[,c]=i;if(!c)throw"";return(await C.note.getMiddleList(c,10)).$serialized.data},enabled:n!==void 0,placeholderData:K}),s=t?[{title:t.title,nid:t.nid,id:t.id,created:t.created}]:[];return e.jsx(N1,{children:e.jsx(U.ul,{className:"space-y-1 [&_i]:hover:text-accent",animate:P1,children:(r||s)?.map(i=>{const c=i.nid===parseInt(a||"0");return e.jsx(y,{layout:!0,active:c,title:i.title,nid:i.nid},i.id)})})})};function Y1(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"m15.54 3.5l4.96 4.97l-1.43 1.41l-4.95-4.95l1.42-1.43M3.5 19.78l6.5-6.47c-.1-.31-.03-.7.23-.96c.39-.39 1.03-.39 1.42 0c.39.4.39 1.03 0 1.42c-.26.26-.65.33-.96.23l-6.47 6.5l10.61-3.55l3.53-6.36l-4.94-4.95l-6.37 3.53L3.5 19.78Z"})})}const $1={allowedTypes:["text","paragraph","codeInline","link","linkMailtoDetector","linkBareUrlDetector","linkAngleBraceStyleDetector","textStrikethroughed","textEmphasized","textBolded","textEscaped"],forceBlock:!0,wrapper:({children:t})=>e.jsx("div",{className:"leading-7",children:t})},I=t=>e.jsx(h1,{options:$1,children:t.children}),O1=t=>{const{topic:a}=t,{id:n}=a,{data:r,isLoading:s}=j({queryKey:[`topic-${n}`],queryFn:()=>C.note.getNoteByTopicId(n,1,1,{sortBy:"created",sortOrder:-1})});return O()?e.jsxs("div",{className:"flex w-[400px] flex-col",children:[e.jsx(p,{href:N(M.NoteTopic,{slug:a.slug}),children:e.jsx("h1",{className:"!m-0 inline-block pb-2 text-lg font-medium",children:a.name})}),e.jsx("div",{className:"line-clamp-2 break-all text-neutral-content",children:e.jsx(I,{children:a.introduce})}),a.description&&e.jsxs(e.Fragment,{children:[e.jsx(h,{}),e.jsx("div",{className:"text-gray-1 leading-8",children:e.jsx(I,{children:a.description})})]}),e.jsx(h,{}),s?e.jsx($,{className:"my-4"}):r?.data[0]&&e.jsxs("p",{className:"flex items-center",children:[e.jsx(_,{}),e.jsx(x,{}),e.jsx("span",{className:"flex-shrink-0",children:"最近更新"}),e.jsx(x,{}),e.jsxs("span",{className:"inline-flex min-w-0 flex-shrink",children:[e.jsx(p,{href:`/data?.data/${r?.data[0].nid}`,className:"truncate",children:r?.data[0]?.title}),e.jsxs("span",{className:"flex-shrink-0",children:["(",e.jsx(J,{date:r?.data[0].modified||r?.data[0].created,displayAbsoluteTimeAfterDay:1/0}),")"]})]})]}),!s&&e.jsxs(e.Fragment,{children:[e.jsx(h,{}),e.jsxs("p",{className:"flex items-center",children:[e.jsx(Y1,{}),e.jsx(x,{}),"共有文章:",r?.pagination?.total," 篇"]})]})]}):null},U1=()=>{const t=l(a=>a?.data.topic);return t?e.jsx(p,{href:N(M.NoteTopic,{slug:t.slug}),children:e.jsx("span",{className:"flex-grow truncate opacity-80 hover:opacity-100",children:t.name})}):null},V1=o.memo(()=>{const t=l(a=>a?.data.topic);return t?e.jsxs(e.Fragment,{children:[e.jsx(h,{className:"!w-3/4"}),e.jsx("p",{className:"mb-1 flex min-w-0 flex-col overflow-hidden text-neutral-content/50",children:"此文章收录于专栏:"}),e.jsx(Y,{placement:"right",strategy:"fixed",wrapperClassName:"flex flex-grow flex-shrink min-w-0",TriggerComponent:U1,children:e.jsx(O1,{topic:t})}),t.id&&e.jsx(q1,{topicId:t.id})]}):null});V1.displayName="NoteTopicInfo";const q1=({topicId:t})=>{const a=l(s=>s?.data.id),{data:n}=j({queryKey:[`topic-${t}`],refetchOnMount:!0,queryFn:()=>C.note.getNoteByTopicId(t,1,6,{sortBy:"created",sortOrder:-1})}),r=o.useMemo(()=>{if(!n)return null;const{data:s}=n;return s.filter(i=>i.id!==a).slice(0,5)},[a,n]);return e.jsx(e.Fragment,{children:r?.length&&e.jsxs(e.Fragment,{children:[e.jsx(h,{}),e.jsx("p",{className:"mb-1 flex min-w-0 flex-col overflow-hidden text-neutral-content/50",children:"此专栏的其他文章:"}),e.jsx("ul",{className:"space-y-1 opacity-80",children:r.map(s=>e.jsx(y,{active:!1,title:s.title,nid:s.nid},s.id))})]})})};function W1(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",...t,children:e.jsx("path",{fill:"currentColor",d:"M7.651 11.628c-.406 0-.713-.149-.92-.445c-.209-.295-.312-.69-.312-1.182c0-1.084.41-1.627 1.232-1.627c.164 0 .342.055.534.164s.353.3.484.574l1.232-.64c-.492-.887-1.308-1.33-2.447-1.33c-.778 0-1.422.257-1.93.771c-.51.516-.765 1.211-.765 2.088c0 .898.253 1.6.756 2.103c.504.504 1.168.754 1.988.754a2.697 2.697 0 0 0 2.416-1.445l-1.135-.574c-.219.525-.597.789-1.133.789zm5.307 0c-.406 0-.713-.149-.92-.445c-.209-.295-.312-.69-.312-1.182c0-1.084.41-1.627 1.232-1.627c.174 0 .357.055.549.164c.192.11.353.3.486.574l1.215-.64c-.482-.887-1.293-1.33-2.432-1.33c-.777 0-1.42.257-1.93.771c-.509.516-.763 1.211-.763 2.088c0 .898.248 1.6.747 2.103c.498.504 1.163.754 1.996.754c.503 0 .97-.129 1.396-.384a2.831 2.831 0 0 0 1.02-1.06l-1.151-.575c-.219.525-.598.789-1.133.789zm3.855-8.444C14.954 1.328 12.679.4 9.987.4c-2.659 0-4.91.928-6.752 2.784C1.345 5.104.4 7.375.4 10c0 2.624.945 4.88 2.835 6.768c1.89 1.888 4.142 2.832 6.752 2.832c2.644 0 4.935-.952 6.874-2.856C18.687 14.936 19.6 12.688 19.6 10c0-2.688-.93-4.96-2.787-6.816zM15.61 15.496c-1.586 1.568-3.452 2.352-5.6 2.352c-2.146 0-3.996-.776-5.55-2.329c-1.554-1.551-2.33-3.391-2.33-5.52c0-2.127.784-3.983 2.354-5.567C5.99 2.896 7.832 2.127 10.01 2.127c2.18 0 4.03.769 5.552 2.305C17.101 5.952 17.87 7.807 17.87 10c0 2.208-.753 4.04-2.259 5.496z"})})}function F(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 256 256",...t,children:e.jsx("path",{fill:"currentColor",d:"M128 56a72 72 0 1 0 72 72a72.1 72.1 0 0 0-72-72Zm0 120a48 48 0 1 1 48-48a48 48 0 0 1-48 48ZM116 28V12a12 12 0 0 1 24 0v16a12 12 0 0 1-24 0Zm74.2 37.8a12 12 0 0 1 0-17l11.3-11.3a12 12 0 0 1 17 17l-11.3 11.3a12 12 0 0 1-8.5 3.5a12.2 12.2 0 0 1-8.5-3.5ZM256 128a12 12 0 0 1-12 12h-16a12 12 0 0 1 0-24h16a12 12 0 0 1 12 12Zm-37.5 73.5a12 12 0 0 1 0 17a11.6 11.6 0 0 1-8.5 3.5a12 12 0 0 1-8.5-3.5l-11.3-11.3a12 12 0 0 1 17-17ZM140 228v16a12 12 0 0 1-24 0v-16a12 12 0 0 1 24 0Zm-74.2-37.8a12 12 0 0 1 0 17l-11.3 11.3A12 12 0 0 1 46 222a11.6 11.6 0 0 1-8.5-3.5a12 12 0 0 1 0-17l11.3-11.3a12 12 0 0 1 17 0ZM28 140H12a12 12 0 0 1 0-24h16a12 12 0 0 1 0 24Zm9.5-85.5a12 12 0 0 1 17-17l11.3 11.3a12 12 0 0 1 0 17a12.2 12.2 0 0 1-8.5 3.5a12 12 0 0 1-8.5-3.5Z"})})}function D(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M11 15a3 3 0 1 0 0-6a3 3 0 0 0 0 6Zm10 0a3 3 0 1 0 0-6a3 3 0 0 0 0 6Zm-9.2 3.4a1 1 0 1 0-1.6 1.2c.69.92 2.688 2.4 5.8 2.4c3.112 0 5.11-1.48 5.8-2.4a1 1 0 0 0-1.6-1.2c-.31.413-1.712 1.6-4.2 1.6c-2.488 0-3.89-1.188-4.2-1.6Z"}),e.jsx("path",{d:"M4.763 5.423C7.313 2.654 11.095 1 16 1c4.904 0 8.686 1.654 11.235 4.423c2.537 2.755 3.764 6.515 3.764 10.576c0 4.061-1.227 7.82-3.764 10.576c-2.55 2.769-6.331 4.423-11.235 4.423c-4.904 0-8.686-1.654-11.236-4.423C2.226 23.82 1 20.06 1 15.999c0-4.061 1.226-7.821 3.763-10.576Zm1.472 1.355C4.105 9.089 3 12.328 3 15.998c0 3.671 1.106 6.91 3.235 9.222c2.116 2.298 5.333 3.778 9.764 3.778c4.43 0 7.648-1.48 9.764-3.778c2.129-2.311 3.235-5.55 3.235-9.221c0-3.67-1.106-6.91-3.235-9.221C23.647 4.48 20.43 3 16 3S8.352 4.48 6.236 6.778Z"})]})})}function X1(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M9.07 9.988c-.594.563-.952 1.24-1.096 1.67a.5.5 0 1 1-.948-.316c.19-.57.631-1.392 1.355-2.08C9.113 8.567 10.148 8 11.5 8a.5.5 0 1 1 0 1c-1.048 0-1.846.433-2.43.988ZM14 15a3 3 0 1 1-6 0a3 3 0 0 1 6 0Zm-4 10a1.99 1.99 0 0 1-.619 1.446A2 2 0 0 1 6 25v-3a2 2 0 1 1 4 0v3Zm11-7a3 3 0 1 0 0-6a3 3 0 0 0 0 6Zm-8.707 4.293a1 1 0 0 0 1.404 1.424l.008-.007a2.7 2.7 0 0 1 .492-.315c.378-.19.976-.395 1.803-.395s1.425.206 1.803.394a2.7 2.7 0 0 1 .492.316l.008.007a1 1 0 0 0 1.404-1.424l-.001-.002l-.002-.001l-.003-.003l-.008-.008l-.02-.02a3.347 3.347 0 0 0-.26-.215a4.69 4.69 0 0 0-.716-.438C18.075 21.294 17.173 21 16 21s-2.075.294-2.697.606a4.69 4.69 0 0 0-.716.438a3.347 3.347 0 0 0-.26.215l-.02.02l-.008.008l-.003.003l-.002.002h-.001ZM22.93 9.988c.594.563.952 1.24 1.096 1.67a.5.5 0 1 0 .948-.316c-.19-.57-.631-1.392-1.355-2.08C22.887 8.567 21.852 8 20.5 8a.5.5 0 1 0 0 1c1.048 0 1.846.433 2.43.988Z"}),e.jsx("path",{d:"M4.763 5.423C7.313 2.654 11.095 1 16 1c4.904 0 8.686 1.654 11.235 4.423c2.537 2.755 3.764 6.515 3.764 10.576c0 4.061-1.227 7.82-3.764 10.576c-2.55 2.769-6.331 4.423-11.235 4.423c-4.904 0-8.686-1.654-11.236-4.423C2.226 23.82 1 20.06 1 15.999c0-4.061 1.226-7.821 3.763-10.576Zm1.472 1.355C4.105 9.089 3 12.328 3 15.998c0 2.879.68 5.492 2 7.6V25a3 3 0 0 0 4.463 2.62c1.78.875 3.952 1.378 6.536 1.378c4.43 0 7.648-1.48 9.764-3.778c2.129-2.311 3.235-5.55 3.235-9.221c0-3.67-1.106-6.91-3.235-9.221C23.647 4.48 20.43 3 16 3S8.352 4.48 6.236 6.778Z"})]})})}function G1(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M14.211 19a4.442 4.442 0 0 1-3.68 1.95c-.452 0-.889-.067-1.301-.192a.147.147 0 0 0-.19.138a1.104 1.104 0 0 1-2.209 0V20a1 1 0 0 1 1-1h6.38Zm3.539 0a4.442 4.442 0 0 0 3.68 1.95c.452 0 .89-.067 1.302-.192c.093-.029.19.04.19.138a1.104 1.104 0 0 0 2.208 0V20a1 1 0 0 0-1-1h-6.38ZM10.016 7.404l.003-.016a.5.5 0 0 1 .986.165l-.493-.082l.493.083v.002l-.001.004l-.002.01a1.753 1.753 0 0 1-.033.151a4.498 4.498 0 0 1-.745 1.552c-.65.866-1.795 1.702-3.718 1.702a.5.5 0 0 1 0-1c1.583 0 2.44-.667 2.917-1.302a3.496 3.496 0 0 0 .575-1.194l.018-.075Zm12.007 0l-.003-.016v-.001a.5.5 0 0 0-.986.166l.493-.082l-.493.083v.002l.001.004l.002.01a1.753 1.753 0 0 0 .034.151a4.494 4.494 0 0 0 .745 1.552c.65.866 1.794 1.702 3.717 1.702a.5.5 0 1 0 0-1c-1.583 0-2.44-.667-2.917-1.302a3.497 3.497 0 0 1-.575-1.194a1.791 1.791 0 0 1-.018-.075Zm-8.506 15.031a.75.75 0 0 0-1.003 1.115c.926.834 2.25 1.206 3.506 1.206c1.254 0 2.58-.372 3.506-1.206a.75.75 0 1 0-1.004-1.115c-.576.518-1.504.822-2.502.822c-.999 0-1.927-.304-2.503-.822Zm1.3-6.15c0 .619-.152 1.202-.42 1.715H7.834a3.701 3.701 0 1 1 6.982-1.715Zm-1.288.054c.546-.378.614-1.226.151-1.894c-.462-.669-1.28-.904-1.826-.527c-.546.378-.614 1.227-.151 1.895c.462.668 1.28.904 1.826.526ZM17.565 18h6.561a3.701 3.701 0 1 0-6.561 0Zm5.446-1.66c-.546.377-1.364.141-1.826-.527c-.463-.668-.395-1.517.151-1.895c.547-.377 1.364-.142 1.827.527c.462.668.394 1.516-.152 1.894Z"}),e.jsx("path",{d:"M4.768 5.391C7.321 2.62 11.108.963 16.018.963s8.698 1.656 11.25 4.428c2.541 2.759 3.769 6.524 3.769 10.59c0 4.067-1.228 7.832-3.768 10.59C24.716 29.343 20.929 31 16.019 31S7.32 29.343 4.768 26.57C2.227 23.813 1 20.048 1 15.981c0-4.066 1.228-7.831 3.768-10.59ZM6.24 6.746C4.108 9.061 3 12.306 3 15.981c0 3.676 1.108 6.92 3.24 9.236C8.359 27.517 11.58 29 16.018 29c4.438 0 7.66-1.482 9.78-3.784c2.131-2.315 3.239-5.559 3.239-9.235c0-3.675-1.108-6.92-3.24-9.235c-2.12-2.301-5.341-3.783-9.779-3.783c-4.437 0-7.659 1.482-9.778 3.783Z"})]})})}function R(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M14.999 13.29a.75.75 0 0 0-.71-.789c-.828-.044-1.504-.241-2.039-.613c-.527-.367-.979-.948-1.289-1.876a.75.75 0 1 0-1.422.476c.394 1.18 1.019 2.049 1.854 2.63c.828.577 1.8.827 2.817.88a.75.75 0 0 0 .789-.708Zm2.002 0a.75.75 0 0 1 .709-.789c.83-.044 1.505-.241 2.04-.613c.526-.367.978-.948 1.289-1.876a.75.75 0 1 1 1.422.476c-.394 1.18-1.019 2.049-1.854 2.63c-.828.577-1.8.827-2.817.88a.75.75 0 0 1-.79-.708Zm-4.107 12.157C13.066 25.104 13.995 24 16 24s2.934 1.104 3.105 1.447a1 1 0 0 0 1.79-.894C20.398 23.563 18.794 22 16 22c-2.795 0-4.4 1.562-4.895 2.553a1 1 0 0 0 1.79.894ZM12 19a2 2 0 1 0 0-4a2 2 0 0 0 0 4Zm8 0a2 2 0 1 0 0-4a2 2 0 0 0 0 4Z"}),e.jsx("path",{d:"M15.999 29.998c9.334 0 13.999-6.268 13.999-14c0-7.73-4.665-13.998-14-13.998C6.665 2 2 8.268 2 15.999c0 7.731 4.664 13.999 13.999 13.999Zm11.999-14c0 3.476-1.046 6.455-2.97 8.545c-1.9 2.063-4.835 3.455-9.03 3.455c-4.193 0-7.128-1.393-9.028-3.455C5.046 22.453 4 19.473 4 15.999c0-3.475 1.046-6.454 2.97-8.544C8.87 5.392 11.805 4 16 4s7.129 1.392 9.028 3.455c1.925 2.09 2.97 5.07 2.97 8.544Z"})]})})}function K1(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M13 5.5a.5.5 0 0 0-1 0c0 .864-.32 1.476-.77 1.876c-.46.409-1.087.624-1.73.624a.5.5 0 0 0 0 1c.857 0 1.73-.285 2.395-.876C12.569 7.524 13 6.636 13 5.5Zm6.5-.5a.5.5 0 0 0-.5.5c0 1.136.43 2.024 1.105 2.624c.666.591 1.538.876 2.395.876a.5.5 0 0 0 0-1c-.643 0-1.27-.215-1.73-.624c-.45-.4-.77-1.012-.77-1.876a.5.5 0 0 0-.5-.5Zm4 19c.829 0 1.513-.677 1.377-1.494a9.002 9.002 0 0 0-17.754 0C6.987 23.323 7.671 24 8.5 24h15ZM8.106 10.553a1 1 0 0 1 1.341-.448l4 2a1 1 0 0 1 0 1.79l-4 2a1 1 0 1 1-.894-1.79L10.763 13l-2.21-1.106a1 1 0 0 1-.447-1.341Zm14.447-.448a1 1 0 0 1 .894 1.79L21.237 13l2.21 1.105a1 1 0 0 1-.894 1.79l-4-2a1 1 0 0 1 0-1.79l4-2Z"}),e.jsx("path",{d:"M15.999 1C11.095 1 7.313 2.654 4.763 5.423C2.226 8.178 1 11.938 1 15.999c0 4.061 1.226 7.82 3.763 10.576c2.55 2.769 6.332 4.423 11.236 4.423c4.904 0 8.686-1.654 11.235-4.423c2.537-2.755 3.764-6.515 3.764-10.576c0-4.061-1.227-7.821-3.764-10.576C24.684 2.654 20.903 1 16 1ZM3 15.999c0-3.67 1.106-6.91 3.235-9.221C8.35 4.48 11.568 3 15.999 3c4.43 0 7.648 1.48 9.764 3.778c2.129 2.311 3.235 5.55 3.235 9.22c0 3.671-1.106 6.91-3.235 9.222c-2.116 2.298-5.333 3.778-9.764 3.778c-4.43 0-7.648-1.48-9.764-3.778C4.105 22.91 3 19.67 3 16Z"})]})})}function S(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:[e.jsx("path",{fill:"currentColor",d:"M8 22v-3h16v3H8Zm3-7a3 3 0 1 0 0-6a3 3 0 0 0 0 6Zm10 0a3 3 0 1 0 0-6a3 3 0 0 0 0 6Z"}),e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.765 5.423C7.315 2.654 11.096 1 16 1c4.904 0 8.686 1.654 11.235 4.423C29.773 8.178 31 11.938 31 15.999c0 4.061-1.226 7.82-3.764 10.576c-2.55 2.769-6.331 4.423-11.235 4.423c-4.904 0-8.686-1.654-11.235-4.423C2.227 23.82 1 20.06 1 15.999c0-4.061 1.226-7.821 3.764-10.576Zm-1.726 9.41a17.66 17.66 0 0 0-.038 1.166c0 2.189.393 4.224 1.162 6.001H8v2h16v-2h3.837c.769-1.777 1.162-3.812 1.162-6.001c0-.394-.013-.783-.038-1.166L24 17.589V17H8v.589l-4.96-2.756Zm.283-2.131l5.593 3.107c.152-.092.318-.164.496-.212C11.073 15.153 13.876 14.5 16 14.5c2.124 0 4.927.653 6.589 1.097c.178.048.344.12.495.212l5.594-3.107c-.47-2.306-1.45-4.335-2.914-5.924C23.648 4.48 20.431 3 16 3c-4.43 0-7.648 1.48-9.764 3.778c-1.464 1.59-2.444 3.618-2.914 5.924ZM26.736 24h-2.759a1.868 1.868 0 0 1-1.181 1.484C21.22 26.076 18.379 27 16 27c-2.379 0-5.22-.924-6.796-1.516A1.868 1.868 0 0 1 8.023 24H5.264c.296.43.62.838.972 1.22c2.116 2.298 5.333 3.778 9.764 3.778c4.43 0 7.648-1.48 9.764-3.778c.352-.382.676-.79.972-1.22Z",clipRule:"evenodd"})]})}function Q1(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M6.235 6.778c-1.84 1.996-2.915 4.685-3.174 7.746l-2.053 2.053A19.92 19.92 0 0 1 1 16c0-4.061 1.226-7.821 3.763-10.576C7.313 2.654 11.095 1 16 1c4.904 0 8.686 1.654 11.235 4.423c2.537 2.755 3.764 6.515 3.764 10.576l-.003.332l-2.084-2.085c-.3-2.945-1.365-5.532-3.148-7.468C23.647 4.48 20.43 3 16 3S8.352 4.48 6.236 6.778ZM27.937 21.76a11.491 11.491 0 0 1-2.174 3.46c-2.116 2.298-5.333 3.778-9.764 3.778c-4.43 0-7.648-1.48-9.764-3.778a11.47 11.47 0 0 1-2.14-3.38a3.138 3.138 0 0 1-2.175-.092c.624 1.803 1.568 3.442 2.843 4.827c2.55 2.769 6.332 4.423 11.236 4.423c4.904 0 8.686-1.654 11.235-4.423c1.25-1.358 2.183-2.96 2.807-4.722a3.135 3.135 0 0 1-2.104-.094Z"}),e.jsx("path",{d:"M22.669 16H9.58a3.107 3.107 0 0 1-.874 1.707l-1.21 1.211C8.302 21.547 10.424 25 16 25c5.712 0 7.8-3.626 8.561-6.274l-1.018-1.019A3.107 3.107 0 0 1 22.669 16ZM4.63 20.37L8 17a2.121 2.121 0 1 0-3-3l-3.37 3.37a2.121 2.121 0 0 0 3 3ZM24.25 17l3.37 3.37a2.121 2.121 0 1 0 3-3L27.25 14a2.121 2.121 0 0 0-3 3ZM9.349 10.412c-.21.228-.32.532-.367.779a1 1 0 0 1-1.964-.382c.089-.456.31-1.153.858-1.749C8.453 8.431 9.316 8 10.5 8c1.195 0 2.062.452 2.636 1.082c.544.597.77 1.292.85 1.747a1 1 0 0 1-1.971.342a1.546 1.546 0 0 0-.358-.742C11.47 10.222 11.142 10 10.5 10c-.653 0-.972.217-1.151.412Zm11.001 0c-.21.228-.32.532-.368.779a1 1 0 0 1-1.963-.382c.088-.456.31-1.153.857-1.749C19.453 8.431 20.316 8 21.5 8c1.196 0 2.062.452 2.636 1.082c.544.597.77 1.292.85 1.747a1 1 0 0 1-1.971.342a1.545 1.545 0 0 0-.358-.742C22.47 10.222 22.142 10 21.5 10c-.653 0-.971.217-1.15.412Z"})]})})}function z(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M12 16a2 2 0 1 0 0-4a2 2 0 0 0 0 4Zm8 0a2 2 0 1 0 0-4a2 2 0 0 0 0 4Zm.901 8.006c.11.542-.35.994-.902.994H12c-.552 0-1.01-.452-.901-.994a5.002 5.002 0 0 1 9.802 0Z"}),e.jsx("path",{d:"M15.999 1C11.095 1 7.313 2.654 4.763 5.423C2.226 8.178 1 11.938 1 15.999c0 4.061 1.226 7.82 3.763 10.576c2.55 2.769 6.332 4.423 11.236 4.423c4.904 0 8.686-1.654 11.235-4.423c2.537-2.755 3.764-6.515 3.764-10.576c0-4.061-1.227-7.821-3.764-10.576C24.684 2.654 20.903 1 16 1ZM3 15.999c0-3.67 1.106-6.91 3.235-9.221C8.35 4.48 11.568 3 15.999 3c4.43 0 7.648 1.48 9.764 3.778c2.129 2.311 3.235 5.55 3.235 9.22c0 3.671-1.106 6.91-3.235 9.222c-2.116 2.298-5.333 3.778-9.764 3.778c-4.43 0-7.648-1.48-9.764-3.778C4.105 22.91 3 19.67 3 16Z"})]})})}function J1(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M12 14a2 2 0 1 0 0-4a2 2 0 0 0 0 4Zm10-2a2 2 0 1 1-4 0a2 2 0 0 1 4 0ZM8.512 23.677A2.988 2.988 0 0 0 11 25h10a2.989 2.989 0 0 0 2.437-1.25A2.984 2.984 0 0 0 24 22c0-.699-.24-1.342-.64-1.852A2.995 2.995 0 0 0 21 19H11c-.906 0-1.718.401-2.268 1.036A2.988 2.988 0 0 0 8 22c0 .621.189 1.198.512 1.677ZM11 20h10a2 2 0 0 1 1.792 1.11a.998.998 0 0 1-.792.39H10a.998.998 0 0 1-.792-.39A2 2 0 0 1 11 20Zm11.792 2.89A2 2 0 0 1 21 24H11a2 2 0 0 1-1.792-1.11a.998.998 0 0 1 .792-.39h12c.322 0 .609.152.792.39Z"}),e.jsx("path",{d:"M15.999 1C11.095 1 7.313 2.654 4.763 5.423C2.226 8.178 1 11.938 1 15.999c0 4.061 1.226 7.82 3.763 10.576c2.55 2.769 6.332 4.423 11.236 4.423c4.904 0 8.686-1.654 11.235-4.423c2.537-2.755 3.764-6.515 3.764-10.576c0-4.061-1.227-7.821-3.764-10.576C24.684 2.654 20.903 1 16 1ZM3 15.999c0-3.67 1.106-6.91 3.235-9.221C8.35 4.48 11.568 3 15.999 3c4.43 0 7.648 1.48 9.764 3.778c2.129 2.311 3.235 5.55 3.235 9.22c0 3.671-1.106 6.91-3.235 9.222c-2.116 2.298-5.333 3.778-9.764 3.778c-4.43 0-7.648-1.48-9.764-3.778C4.105 22.91 3 19.67 3 16Z"})]})})}function e2(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M9.07 8.988c-.594.562-.952 1.24-1.096 1.67a.5.5 0 1 1-.948-.316c.19-.57.631-1.392 1.355-2.08C9.113 7.567 10.148 7 11.5 7a.5.5 0 1 1 0 1c-1.048 0-1.846.433-2.43.988ZM14 14a2 2 0 1 1-4 0a2 2 0 0 1 4 0Zm-5 7c1.657 0 3-.895 3-2s-1.343-2-3-2s-3 .895-3 2s1.343 2 3 2Zm17-2c0 1.105-1.343 2-3 2s-3-.895-3-2s1.343-2 3-2s3 .895 3 2Zm-6-3a2 2 0 1 0 0-4a2 2 0 0 0 0 4Zm2.93-7.012c.594.562.952 1.24 1.096 1.67a.5.5 0 1 0 .948-.316c-.19-.57-.631-1.392-1.355-2.08C22.887 7.567 21.852 7 20.5 7a.5.5 0 1 0 0 1c1.048 0 1.846.433 2.43.988ZM13 23a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2h-4a1 1 0 0 1-1-1Z"}),e.jsx("path",{d:"M15.999 1C11.095 1 7.313 2.654 4.763 5.423C2.226 8.178 1 11.938 1 15.999c0 4.061 1.226 7.82 3.763 10.576c2.55 2.769 6.332 4.423 11.236 4.423c4.904 0 8.686-1.654 11.235-4.423c2.537-2.755 3.764-6.515 3.764-10.576c0-4.061-1.227-7.821-3.764-10.576C24.684 2.654 20.903 1 16 1ZM3 15.999c0-3.67 1.106-6.91 3.235-9.221C8.35 4.48 11.568 3 15.999 3c4.43 0 7.648 1.48 9.764 3.778c2.129 2.311 3.235 5.55 3.235 9.22c0 3.671-1.106 6.91-3.235 9.222c-2.116 2.298-5.333 3.778-9.764 3.778c-4.43 0-7.648-1.48-9.764-3.778C4.105 22.91 3 19.67 3 16Z"})]})})}function t2(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"M9.984 5.06a6.5 6.5 0 1 1 11.286 6.436A5.5 5.5 0 0 1 17.5 21L9 20.999a8 8 0 1 1 .984-15.94zm2.071.544a8.026 8.026 0 0 1 4.403 4.495a5.529 5.529 0 0 1 3.12.307a4.5 4.5 0 0 0-7.522-4.802z"})})}function a2(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"M19.35 10.03A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.03A6.004 6.004 0 0 0 0 14a6 6 0 0 0 6 6h13a5 5 0 0 0 5-5c0-2.64-2.05-4.78-4.65-4.97Z"})})}function n2(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"m20.79 13.95l-2.33.62l-2-1.13v-2.88l2-1.13l2.33.62l.52-1.93l-1.77-.47l.46-1.77l-1.93-.52l-.62 2.33l-2 1.13L13 7.38V5.12l1.71-1.71L13.29 2L12 3.29L10.71 2L9.29 3.41L11 5.12v2.26L8.5 8.82l-2-1.13l-.58-2.33L4 5.88l.47 1.77l-1.77.47l.52 1.93l2.33-.62l2 1.13v2.89l-2 1.13l-2.33-.62l-.52 1.93l1.77.47L4 18.12l1.93.52l.62-2.33l2-1.13L11 16.62v2.26l-1.71 1.71L10.71 22L12 20.71L13.29 22l1.41-1.41l-1.7-1.71v-2.26l2.5-1.45l2 1.13l.62 2.33l1.88-.51l-.47-1.77l1.77-.47l-.51-1.93M9.5 10.56L12 9.11l2.5 1.45v2.88L12 14.89l-2.5-1.45v-2.88Z"})})}function r2(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",...t,children:e.jsx("path",{fill:"currentColor",d:"M4.158 12.025a.5.5 0 0 1 .316.633l-.5 1.5a.5.5 0 1 1-.948-.316l.5-1.5a.5.5 0 0 1 .632-.317zm3 0a.5.5 0 0 1 .316.633l-1 3a.5.5 0 1 1-.948-.316l1-3a.5.5 0 0 1 .632-.317zm3 0a.5.5 0 0 1 .316.633l-.5 1.5a.5.5 0 1 1-.948-.316l.5-1.5a.5.5 0 0 1 .632-.317zm3 0a.5.5 0 0 1 .316.633l-1 3a.5.5 0 1 1-.948-.316l1-3a.5.5 0 0 1 .632-.317zm.247-6.998a5.001 5.001 0 0 0-9.499-1.004A3.5 3.5 0 1 0 3.5 11H13a3 3 0 0 0 .405-5.973z"})})}function s2(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",...t,children:e.jsx("path",{fill:"currentColor",d:"M2.658 11.026a.5.5 0 0 1 .316.632l-.5 1.5a.5.5 0 1 1-.948-.316l.5-1.5a.5.5 0 0 1 .632-.316zm9.5 0a.5.5 0 0 1 .316.632l-.5 1.5a.5.5 0 0 1-.948-.316l.5-1.5a.5.5 0 0 1 .632-.316zm-7.5 1.5a.5.5 0 0 1 .316.632l-.5 1.5a.5.5 0 1 1-.948-.316l.5-1.5a.5.5 0 0 1 .632-.316zm9.5 0a.5.5 0 0 1 .316.632l-.5 1.5a.5.5 0 0 1-.948-.316l.5-1.5a.5.5 0 0 1 .632-.316zm-7.105-1.25A.5.5 0 0 1 7.5 11h1a.5.5 0 0 1 .474.658l-.28.842H9.5a.5.5 0 0 1 .39.812l-2 2.5a.5.5 0 0 1-.875-.433L7.36 14H6.5a.5.5 0 0 1-.447-.724l1-2zm6.352-7.249a5.001 5.001 0 0 0-9.499-1.004A3.5 3.5 0 1 0 3.5 10H13a3 3 0 0 0 .405-5.973z"})})}const c2=t=>{const a={晴:F,多云:t2,阴:a2,雪:n2,雨:r2,雷雨:s2};return E.createElement(a[t]||F)},i2=t=>{const a={开心:D,伤心:G1,大哭:X1,生气:R,痛苦:K1,悲哀:S,不快:S,激动:Q1,担心:z,可怕:J1,可恶:R,绝望:z,焦虑:e2};return E.createElement(a[t]||D)},u=e.jsx(x,{className:"!mx-2 scale-y-50"}),f="flex items-center space-x-1 flex-shrink-0",l2=()=>e.jsxs(e.Fragment,{children:[e.jsx(o2,{}),e.jsx(d2,{}),e.jsx(m2,{}),e.jsx(h2,{}),e.jsx(u2,{})]}),o2=()=>{const t=l(a=>a?.data.weather);return t?e.jsxs(e.Fragment,{children:[u,e.jsxs("span",{className:f,children:[c2(t),e.jsx("span",{className:"font-medium",children:t})]},"weather")]}):null},d2=()=>{const t=l(a=>a?.data.mood);return t?e.jsxs(e.Fragment,{children:[u,e.jsxs("span",{className:f,children:[i2(t),e.jsx("span",{className:"font-medium",children:t})]},"mood")]}):null},m2=()=>{const t=l(a=>a?.data.count.read);return t?e.jsxs(e.Fragment,{children:[u,e.jsxs("span",{className:f,children:[e.jsx("i",{className:"icon-[mingcute--book-6-line]"}),e.jsx("span",{className:"font-medium",children:t})]},"readcount")]}):null},h2=()=>{const t=l(a=>a?.data.count.like);return t?e.jsxs(e.Fragment,{children:[u,e.jsxs("span",{className:f,children:[e.jsx("i",{className:"icon-[mingcute--heart-line]"}),e.jsx("span",{className:"font-medium",children:e.jsx(e1,{children:t})})]},"linkcount")]}):null},u2=()=>e.jsxs(e.Fragment,{children:[u,e.jsx("span",{className:"inline-flex items-center",children:e.jsx("a",{href:"https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh",target:"_blank",className:"inline-flex cursor-pointer items-center text-current",rel:"noreferrer",children:e.jsx("span",{title:"知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议",className:"inline-flex items-center",children:e.jsx(W1,{})})})},"cc")]});function x2(t){return new Promise((a,n)=>{const r=new Image;r.crossOrigin="anonymous",r.onload=()=>{const s=document.createElement("canvas"),i=s.getContext("2d"),c=838/224;let d=r.width,m=d/c;m>r.height&&(m=r.height,d=m*c);const q=(r.width-d)/2,W=(r.height-m)/2;s.width=d,s.height=m,i.drawImage(r,q,W,d,m,0,0,d,m),s.toBlob(k=>{if(k){const X=URL.createObjectURL(k);a(X)}else n("Blob conversion failed")},"image/jpeg")},r.onerror=n,r.src=t})}const p2=({image:t})=>t?e.jsx(j2,{image:t}):null,j2=({image:t})=>{const[a,n]=o.useState(null);return o.useLayoutEffect(()=>{let r=!0;return x2(t).then(s=>{r&&n(s)}),()=>{r=!1}},[t]),e.jsxs(e.Fragment,{children:[!!a&&e.jsx("div",{"data-hide-print":!0,className:g("z-1 absolute left-0 right-0 top-0",a?"h-[224px]":"0","top-[-6.5rem] md:top-0"),children:e.jsx("div",{style:{backgroundImage:`url(${a})`},className:"cover-mask-b h-full w-full bg-cover bg-center bg-no-repeat"})}),e.jsx(v1,{children:e.jsx("div",{"data-hide-print":!0,className:g(a?"h-[120px]":"h-0","hidden md:block")})})]})},J2=t=>{const{data:a,isLoading:n}=j({...t1.note.byNid(t.noteId.toString())}),r=o.useMemo(()=>Z(null),[]);if(n)return e.jsx($,{className:"w-full",useDefaultLoadingText:!0});if(!a)return null;const s=a.data;return e.jsxs(p1,{overrideAtom:r,children:[e.jsx(j1,{data:a}),!!s.id&&e.jsx(a1,{id:s.id,type:"note"}),e.jsxs(n1,{children:[e.jsx(p2,{image:s.meta?.cover}),e.jsxs(T1,{children:[e.jsxs("header",{children:[e.jsx(Z1,{}),e.jsxs("span",{className:"flex flex-wrap items-center text-sm text-neutral-content/60",children:[e.jsx(k1,{}),e.jsx(A1,{children:e.jsx(l2,{})})]}),e.jsx(D1,{})]}),e.jsxs(S1,{children:[e.jsx(r1,{cid:s1(a)}),e.jsx(x1,{children:e.jsx(c1,{children:e.jsx(B1,{children:e.jsx(b1,{})})})})]})]})]})]})};export{J2 as NotePreview}; diff --git a/assets/NotePreview-aX_R-inV.css b/assets/NotePreview-aX_R-inV.css new file mode 100644 index 00000000000..4b1fb738e11 --- /dev/null +++ b/assets/NotePreview-aX_R-inV.css @@ -0,0 +1 @@ +._with-indent_1n4mw_1{--padding-h: -1rem}@media (min-width: 1024px){._with-indent_1n4mw_1{--padding-h: -45px }}._with-indent_1n4mw_1 .paragraph:first-child{margin-bottom:4rem}._with-indent_1n4mw_1 ul .indent,._with-indent_1n4mw_1 .paragraph .indent{border-bottom:1px solid;border-color:var(--fallback-a,oklch(var(--a)/.1))}@media print{._with-indent_1n4mw_1 ul .indent,._with-indent_1n4mw_1 .paragraph .indent{border-style:none}}._with-indent_1n4mw_1 blockquote .paragraph>span.indent{margin-left:0!important}._with-indent_1n4mw_1 blockquote .paragraph:first-child:first-letter{float:none!important;font-size:inherit!important;margin:0}._with-indent_1n4mw_1 blockquote .paragraph,._with-indent_1n4mw_1 blockquote blockquote>ph{padding:10px 0;margin:0}._with-indent_1n4mw_1 blockquote .paragraph:first-child{margin-bottom:0}._with-indent_1n4mw_1 blockquote{margin-left:var(--padding-h);margin-right:var(--padding-h);line-height:1.8;padding:1em 1em 1em 2em;background-color:var(--fallback-a,oklch(var(--a)/.2));font-weight:400}:is([data-theme=dark] ._with-indent_1n4mw_1 blockquote){background-color:var(--fallback-a,oklch(var(--a)/.05))}._with-indent_1n4mw_1 blockquote{border-style:none;padding-left:3rem;padding-right:3rem;outline:2px solid transparent!important;outline-offset:2px!important}._with-indent_1n4mw_1 blockquote span:first-letter{float:none!important;font-size:1em!important}@media screen and (max-width: 599px){._with-indent_1n4mw_1 blockquote{max-width:100vw;margin-left:-1.25em;margin-right:-1.25em;padding:1em 3em}}._with-indent_1n4mw_1 .paragraph:not(:nth-child(1))>span.indent:nth-child(1){margin-left:2rem}._with-indent_1n4mw_1 main>p:first-child{margin-bottom:2rem}._with-indent_1n4mw_1 main .paragraph:first-child:first-letter{float:left;font-size:2.4em;margin:0 .2em 0 0}._with-serif_1n4mw_91 main{font-family:"Noto Serif CJK SC","Noto Serif SC",var(--font-serif),"Source Han Serif SC","Source Han Serif",source-han-serif-sc,SongTi SC,SimSum,"Hiragino Sans GB",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,"Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;font-size:1.125rem;line-height:1.75rem;line-height:1.8}._with-serif_1n4mw_91 strong,._with-serif_1n4mw_91 b{font-family:var(--font-sans),system-ui,-apple-system,PingFang SC,"Microsoft YaHei",Segoe UI,Roboto,Helvetica,noto sans sc,hiragino sans gb,"sans-serif",Apple Color Emoji,Segoe UI Emoji,Not Color Emoji} diff --git a/assets/PinIconToggle-aUENNNd6.js b/assets/PinIconToggle-aUENNNd6.js new file mode 100644 index 00000000000..66f5ee9ddb3 --- /dev/null +++ b/assets/PinIconToggle-aUENNNd6.js @@ -0,0 +1 @@ +import{r as c,j as o}from"./index-qegmBwH1.js";import{u}from"./owner-4YVbz2PN.js";import"./toast-qMk_Ov--.js";import{M as m}from"./StyledButton-Mj8l6PeD.js";import{c as p}from"./utils-t32ZRaBl.js";import{u as h}from"./provider-jumr72cx.js";import{c as x}from"./helper-0r91fNX5.js";const g=p({from:{opacity:.001},to:{opacity:1}}),d=n=>{const{currentState:t,regularIcon:a,solidIcon:r}=n,e={solid:r,regular:a},[i,l]=c.useState(e[t]),s=h();return c.useEffect(()=>{s.start({opacity:.001}).then(()=>{l(e[t]),requestAnimationFrame(()=>{s.start({opacity:1})})})},[t]),o.jsx(g,{initial:!0,animate:s,transition:{duration:.2},children:i},t)},b=({className:n,pin:t,onPinChange:a})=>{const r=u(),e=async i=>{i.preventDefault(),i.stopPropagation(),a(!t)};return o.jsx(m,{"aria-label":"Pin this post",className:x("absolute bottom-0 right-0 top-[4px] z-[10] -m-5 box-content hidden h-5 w-5 items-center p-5",r&&"inline-flex cursor-pointer opacity-50 transition-opacity hover:opacity-100",!r&&t&&"pointer-events-none",t&&"!inline-flex text-uk-red-light opacity-100",n),onClick:e,children:o.jsx(d,{currentState:t?"solid":"regular",regularIcon:o.jsx(w,{}),solidIcon:o.jsx(f,{})})})};function f(n){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256",...n,children:o.jsx("path",{fill:"currentColor",d:"m232 107.3l-58.5 58.5c4.5 12.7 6.4 33.9-13.2 60a16.3 16.3 0 0 1-11.7 6.4h-1.1a16.1 16.1 0 0 1-11.3-4.7L88 179.3l-34.3 34.4a8.2 8.2 0 0 1-11.4 0a8.1 8.1 0 0 1 0-11.4L76.7 168l-48.4-48.4a15.9 15.9 0 0 1 1.3-23.8C55 75.3 79.3 79.4 90 82.7L148.7 24a16.1 16.1 0 0 1 22.6 0L232 84.7a15.9 15.9 0 0 1 0 22.6Z"})})}function w(n){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256",...n,children:o.jsx("path",{fill:"currentColor",d:"M236.7 96a15.9 15.9 0 0 0-4.7-11.3L171.3 24a16.1 16.1 0 0 0-22.6 0L90 82.7c-10.7-3.3-35-7.4-60.4 13.1a15.9 15.9 0 0 0-1.3 23.8L76.7 168l-34.4 34.3a8.1 8.1 0 0 0 0 11.4a8.2 8.2 0 0 0 11.4 0L88 179.3l48.2 48.2a16.1 16.1 0 0 0 11.3 4.7h1.1a16.3 16.3 0 0 0 11.7-6.4c19.6-26.1 17.7-47.3 13.2-60l58.5-58.5a15.9 15.9 0 0 0 4.7-11.3Zm-78.4 62.3a8.2 8.2 0 0 0-1.5 9.3c9.5 18.9-1.8 38.6-9.3 48.6L39.6 108.3C51.7 98.5 63.3 96 72.1 96s15.9 2.9 16.3 3.2a8.2 8.2 0 0 0 9.3-1.5L160 35.3L220.7 96Z"})})}export{b as P}; diff --git a/assets/PostPreview-eQezOeHD.js b/assets/PostPreview-eQezOeHD.js new file mode 100644 index 00000000000..8aa7484e0fc --- /dev/null +++ b/assets/PostPreview-eQezOeHD.js @@ -0,0 +1,13 @@ +import{j as e,r as o}from"./index-qegmBwH1.js";import{u as p}from"./useQuery-44y7CkOR.js";import{w as P,L}from"./index-I7weg1Js.js";import{M as I,R as m,N as R,q as T,A as C,P as B,X as S,g as z}from"./utils-t32ZRaBl.js";import{a as h,b as F}from"./provider-jumr72cx.js";import{L as g,M as A}from"./StyledButton-Mj8l6PeD.js";import{R as E,F as V}from"./FloatPopover-1BpKQIdq.js";import{c as f,a as d}from"./helper-0r91fNX5.js";import{r as j,R as y,u as c,M as D,a as $}from"./CurrentPostDataProvider-sxwUfZTo.js";import{b as q,k as v,m as u}from"./owner-4YVbz2PN.js";import"./toast-qMk_Ov--.js";import{M as H,W as O}from"./WrappedElementProvider-5243oAX6.js";import"./store-gmK8mRDy.js";import{A as w}from"./spring--xEiX8r3.js";import{m as b}from"./motion-minimal-gJqnz197.js";import{a as N,b as W}from"./init-a0893ef4-4662SO8Z.js";import{T as X,a as Z,n as x,B as K,L as Q}from"./Markdown-hVdCypI9.js";import"./AutoResizeHeight-pHZ_oyCK.js";import{R as G}from"./LinkCard-r30gHz-0.js";import{P as J}from"./PinIconToggle-aUENNNd6.js";import"./usePeek-N6a5Jy_H.js";import"./customParseFormat-3OBJgCTU.js";import"./use-is-unmounted-6i0OwE-p.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./visual-element-YIiczwVf.js";import"./index-5Y6ZmVAf.js";import"./use-is-client-IECHC2ux.js";import"./env-y9k74Ds6.js";import"./image-sZM8elMx.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./Gallery-MHeEsxti.js";import"./SocialSourceLink-c8HgVvxv.js";import"./CodeHighlighter-Sy1nPjje.js";import"./use-is-dark-13kBJDHw.js";import"./Collapse-Q-wSwlx_.js";function U(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 15h4V9h-4v6Zm0 2v3a1 1 0 0 1-2 0v-3H5a1 1 0 0 1 0-2h3V9H5a1 1 0 1 1 0-2h3V4a1 1 0 1 1 2 0v3h4V4a1 1 0 0 1 2 0v3h3a1 1 0 0 1 0 2h-3v6h3a1 1 0 0 1 0 2h-3v3a1 1 0 0 1-2 0v-3h-4Z"})})}function Y(){return e.jsx("i",{className:"icon-[mingcute--thumb-up-line]"})}const _=()=>e.jsx("svg",{version:"1.1",x:"0px",y:"0px",width:"59.227px",height:"59.227px",viewBox:"0 0 59.227 59.227",className:"fill-current",children:e.jsx("g",{children:e.jsx("g",{children:e.jsx("path",{d:`M51.586,10.029c-0.333-0.475-0.897-0.689-1.449-0.607c-0.021-0.005-0.042-0.014-0.063-0.017L27.469,6.087 + c-0.247-0.037-0.499-0.01-0.734,0.076L8.63,12.799c-0.008,0.003-0.015,0.008-0.023,0.011c-0.019,0.008-0.037,0.02-0.057,0.027 + c-0.099,0.044-0.191,0.096-0.276,0.157c-0.026,0.019-0.051,0.038-0.077,0.059c-0.093,0.076-0.178,0.159-0.249,0.254 + c-0.004,0.006-0.01,0.009-0.014,0.015L0.289,23.78c-0.293,0.401-0.369,0.923-0.202,1.391c0.167,0.469,0.556,0.823,1.038,0.947 + l6.634,1.713v16.401c0,0.659,0.431,1.242,1.062,1.435l24.29,7.422c0.008,0.004,0.017,0.001,0.025,0.005 + c0.13,0.036,0.266,0.059,0.402,0.06c0.003,0,0.007,0.002,0.011,0.002l0,0h0.001c0.143,0,0.283-0.026,0.423-0.067 + c0.044-0.014,0.085-0.033,0.13-0.052c0.059-0.022,0.117-0.038,0.175-0.068l17.43-9.673c0.477-0.265,0.772-0.767,0.772-1.312 + V25.586l5.896-2.83c0.397-0.19,0.69-0.547,0.802-0.973c0.111-0.427,0.03-0.88-0.223-1.241L51.586,10.029z M27.41,9.111 + l17.644,2.59L33.35,17.143l-18.534-3.415L27.41,9.111z M9.801,15.854l21.237,3.914l-6.242,9.364l-20.78-5.365L9.801,15.854z + M10.759,43.122V28.605l14.318,3.697c0.125,0.031,0.25,0.048,0.375,0.048c0.493,0,0.965-0.244,1.248-0.668l5.349-8.023v25.968 + L10.759,43.122z M49.479,41.1l-14.431,8.007V25.414l2.635,5.599c0.171,0.361,0.479,0.641,0.854,0.773 + c0.163,0.06,0.333,0.087,0.502,0.087c0.223,0,0.444-0.05,0.649-0.146l9.789-4.698L49.479,41.1L49.479,41.1z M39.755,28.368 + l-4.207-8.938L49.85,12.78l5.634,8.037L39.755,28.368z`})})})}),k=o.forwardRef,ee=N(null),se=k((t,s)=>{const{children:r,show:n=!0,...a}=t,{className:i,...l}=a;return e.jsx(w,{mode:"wait",children:n&&e.jsx(b.button,{ref:s,"aria-label":"Floating action button",initial:{opacity:.3,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:.3,scale:.8},className:f("mt-2 flex items-center justify-center","h-12 w-12 text-lg md:h-10 md:w-10 md:text-base","border border-accent outline-accent hover:opacity-100 focus:opacity-100 focus:outline-none","rounded-xl border border-zinc-400/20 shadow-lg backdrop-blur-lg dark:border-zinc-500/30 dark:bg-zinc-800/80 dark:text-zinc-200","bg-slate-50/80 shadow-lg dark:bg-neutral-900/80","transition-all duration-500 ease-in-out",i),...l,children:r})})});k((t,s)=>{const{onClick:r,children:n}=t,a=o.useId(),i=W(ee),l=q();return t.onlyShowInMobile&&!l||!i?null:e.jsx(E,{to:i,children:e.jsx(se,{ref:s,id:a,onClick:r,children:n})})});const te=({children:t,className:s})=>e.jsx("ul",{className:d("shiro-timeline",s),children:t});o.memo(function(s){const{count:r,name:n}=s;return e.jsx(X,{count:r,text:n,onClick:s.onClick,passProps:s})});const re=t=>{const{name:s}=t,{data:r,isLoading:n}=p({queryKey:[s,"tag"],queryFn:async({queryKey:i})=>{const[l]=i;return(await v.category.getTagByName(l)).data},staleTime:1e3*60*60*24}),{dismissAll:a}=h();return n?e.jsx("div",{className:"h-30 loading-dots flex w-full center"}):r?e.jsx(te,{children:r.map(i=>e.jsx("li",{className:"flex items-center justify-between","data-id":i.id,children:e.jsxs("span",{className:"flex min-w-0 flex-shrink items-center",children:[e.jsx("span",{className:"mr-2 inline-block w-12 tabular-nums",children:Intl.DateTimeFormat("en-us",{month:"2-digit",day:"2-digit"}).format(new Date(i.created))}),e.jsx(g,{onClick:()=>{a()},prefetch:!1,href:j(y.Post,{category:i.category.slug,slug:i.slug}),className:"min-w-0 truncate leading-6",children:e.jsx("span",{className:"min-w-0 truncate",children:i.title})})]})},i.id))}):e.jsx(_,{})},M=({className:t,meta:s})=>{const{present:r}=h(),n=F();return e.jsxs("div",{className:f("flex min-w-0 flex-shrink flex-grow flex-wrap gap-2 text-sm",t),children:[e.jsxs("div",{className:"flex min-w-0 items-center space-x-1",children:[!!s.created&&e.jsxs(e.Fragment,{children:[e.jsx(I,{}),e.jsx("span",{children:e.jsx(m,{date:s.created})})]}),!!s.modified&&e.jsxs(V,{wrapperClassName:"text-xs",as:"span",type:"tooltip",TriggerComponent:()=>"(已编辑)",children:["编辑于 ",e.jsx(m,{date:s.modified})]})]}),!!s.category&&e.jsxs("div",{className:"flex min-w-0 items-center space-x-1",children:[e.jsx(U,{className:"translate-y-[0.5px]"}),e.jsxs("span",{className:"min-w-0 truncate",children:[e.jsx(A,{onClick:()=>!!s.category&&n.push(j(y.Category,{slug:s.category.slug})),className:"shiro-link--underline font-normal",children:e.jsx("span",{children:s.category?.name})}),s.tags?.length?e.jsxs(e.Fragment,{children:[" ","/"," ",s.tags.map((a,i)=>{const l=i===s.tags.length-1;return e.jsxs(o.Fragment,{children:[e.jsx("button",{className:"shiro-link--underline",onClick:()=>r({content:()=>e.jsx(re,{name:a}),title:`Tag: ${a}`}),children:a},a),!l&&e.jsx("span",{children:", "})]},a)})]}):""]})]}),!!s.count?.read&&e.jsxs("div",{className:"flex min-w-0 items-center space-x-1",children:[e.jsx("i",{className:"icon-[mingcute--eye-2-line]"}),e.jsx("span",{className:"min-w-0 truncate",children:s.count.read})]}),!!s.count?.like&&e.jsxs("div",{className:"flex min-w-0 items-center space-x-1",children:[e.jsx(Y,{}),e.jsx("span",{className:"min-w-0 truncate",children:e.jsx(R,{children:s.count.like})})]})]})},ne=()=>{const t=c(s=>s?.text);return t?e.jsx(Z,{allowsScript:!0,value:t,className:"min-w-0 overflow-hidden"}):null},ae=t=>{const s=c(r=>r?.images||x);return e.jsx(H,{images:s||x,children:t.children})},ie=({className:t})=>{const s=c(r=>{if(r)return{created:r.created,category:r.category,tags:r.tags,count:r.count,modified:r.modified}});return s?e.jsx(M,{meta:s,className:t}):null},oe=({pin:t,id:s})=>{const[r,n]=o.useState(t);return e.jsx(J,{onPinChange:async a=>{await v.post.proxy(s).patch({data:{pin:a}}),n(a)},pin:r})},le=()=>{const[t,s]=o.useState(!1),r=o.useRef(null);return o.useEffect(()=>{const n=r.current;if(!n)return;const a=n.parentElement;if(a)return a.onfocus=()=>{s(!0)},a.onblur=()=>{s(!1)},()=>{a.onfocus=null,a.onblur=null}},[]),e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:r,className:"absolute inset-0 z-10",onMouseEnter:()=>{s(!0)},onMouseLeave:()=>{s(!1)}}),e.jsx(w,{children:t&&e.jsx(b.div,{layout:!0,initial:{opacity:.2,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},layoutId:"post-item-hover-overlay",className:d("absolute z-[-1] rounded-xl","bg-slate-300/50 dark:bg-neutral-800","bottom-[1rem] left-[-1rem] right-[-1.5rem] top-[1rem]")})})]})};o.memo(function({data:s}){const r=s.text.length>300?`${G(s.text.slice(0,300))}...`:s.text,n=s.images?.length>0&&s.images[0].src,i=`/posts/${s.category?.slug}/${s.slug}`;return e.jsxs(g,{href:i,className:"relative flex flex-col py-8 focus-visible:!shadow-none",children:[e.jsx(le,{}),e.jsxs("h2",{className:"relative break-words text-2xl font-medium",children:[e.jsx(P,{children:s.title}),e.jsx(oe,{pin:!!s.pin,id:s.id})]}),e.jsxs("main",{className:"relative mt-8 space-y-2",children:[!!s.summary&&e.jsxs("p",{className:"break-all leading-relaxed text-gray-900 dark:text-slate-50",children:["摘要: ",s.summary]}),e.jsxs("div",{className:"relative overflow-hidden text-justify",children:[n&&e.jsx("div",{className:d("float-right mb-2 ml-3 h-[5.5rem] w-[5.5rem] overflow-hidden rounded-md","bg-cover bg-center bg-no-repeat"),style:{backgroundImage:`url(${n})`}}),e.jsx("p",{className:"break-all leading-loose text-gray-800/90 dark:text-gray-200/90",children:r})]})]}),e.jsxs("div",{className:"post-meta-bar mt-2 flex select-none flex-wrap items-center justify-end gap-4 text-base-content/60",children:[e.jsx(M,{meta:s}),e.jsxs("span",{className:"flex flex-shrink-0 select-none items-center space-x-1 text-right text-accent hover:text-accent [&>svg]:hover:ml-2",children:[e.jsx("span",{children:"阅读全文"}),e.jsx("i",{className:"icon-[mingcute--arrow-right-line] text-lg transition-[margin]"})]})]})]})});const ce=()=>{const t=c(s=>s?.modified);return t&&u().diff(u(t),"day")>60?e.jsx(K,{type:"warning",className:"my-10",children:e.jsxs("span",{className:"leading-[1.8]",children:["这篇文章上次修改于 ",e.jsx(m,{date:t}),",可能部分内容已经不适用,如有疑问可询问作者。"]})}):null},Ke=t=>{const{category:s,slug:r}=t,{data:n,isLoading:a}=p({...T.post.bySlug(s,r)}),i=o.useMemo(()=>N(null),[]);return a?e.jsx(Q,{className:"w-full",useDefaultLoadingText:!0}):n?e.jsxs(D,{overrideAtom:i,children:[e.jsx($,{data:n}),!!n.id&&e.jsx(C,{id:n.id,type:"post"}),e.jsx(B,{children:e.jsxs("article",{className:"prose relative w-full min-w-0",children:[e.jsxs("header",{className:"mb-8",children:[e.jsx("h1",{className:"text-center",children:e.jsx(L,{children:n.title})}),e.jsx(ie,{className:"mb-8 justify-center"}),e.jsx(S,{cid:z(n)}),e.jsx(ce,{})]}),e.jsx(O,{children:e.jsx(ae,{children:e.jsx(ne,{})})})]})})]}):null};export{Ke as PostPreview}; diff --git a/assets/SocialSourceLink-c8HgVvxv.js b/assets/SocialSourceLink-c8HgVvxv.js new file mode 100644 index 00000000000..e2aa2e67087 --- /dev/null +++ b/assets/SocialSourceLink-c8HgVvxv.js @@ -0,0 +1 @@ +import{j as l}from"./index-qegmBwH1.js";import{c as v}from"./helper-0r91fNX5.js";import{l as u}from"./owner-4YVbz2PN.js";import"./toast-qMk_Ov--.js";import{i as w}from"./env-y9k74Ds6.js";const x=t=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:l.jsx("path",{fill:"currentColor",d:"M7.172 2.757L10.414 6h3.171l3.243-3.242a1 1 0 1 1 1.415 1.414L16.414 6H18.5A3.5 3.5 0 0 1 22 9.5v8a3.5 3.5 0 0 1-3.5 3.5h-13A3.5 3.5 0 0 1 2 17.5v-8A3.5 3.5 0 0 1 5.5 6h2.085L5.757 4.171a1 1 0 0 1 1.415-1.414ZM18.5 8h-13a1.5 1.5 0 0 0-1.493 1.355L4 9.5v8a1.5 1.5 0 0 0 1.356 1.493L5.5 19h13a1.5 1.5 0 0 0 1.493-1.356L20 17.5v-8A1.5 1.5 0 0 0 18.5 8ZM8 11a1 1 0 0 1 1 1v2a1 1 0 1 1-2 0v-2a1 1 0 0 1 1-1Zm8 0a1 1 0 0 1 1 1v2a1 1 0 1 1-2 0v-2a1 1 0 0 1 1-1Z"})});function d(t){return l.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",...t,children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 0C3.35625 0 0 3.35625 0 7.5C0 10.8187 2.14687 13.6219 5.12812 14.6156C5.50312 14.6813 5.64375 14.4563 5.64375 14.2594C5.64375 14.0813 5.63438 13.4906 5.63438 12.8625C3.75 13.2094 3.2625 12.4031 3.1125 11.9812C3.02812 11.7656 2.6625 11.1 2.34375 10.9219C2.08125 10.7812 1.70625 10.4344 2.33438 10.425C2.925 10.4156 3.34688 10.9687 3.4875 11.1937C4.1625 12.3281 5.24063 12.0094 5.67188 11.8125C5.7375 11.325 5.93437 10.9969 6.15 10.8094C4.48125 10.6219 2.7375 9.975 2.7375 7.10625C2.7375 6.29062 3.02813 5.61562 3.50625 5.09062C3.43125 4.90312 3.16875 4.13437 3.58125 3.10312C3.58125 3.10312 4.20938 2.90625 5.64375 3.87188C6.24375 3.70313 6.88125 3.61875 7.51875 3.61875C8.15625 3.61875 8.79375 3.70313 9.39375 3.87188C10.8281 2.89688 11.4563 3.10312 11.4563 3.10312C11.8688 4.13437 11.6063 4.90312 11.5313 5.09062C12.0094 5.61562 12.3 6.28125 12.3 7.10625C12.3 9.98437 10.5469 10.6219 8.87813 10.8094C9.15 11.0437 9.38438 11.4938 9.38438 12.1969C9.38438 13.2 9.375 14.0063 9.375 14.2594C9.375 14.4563 9.51563 14.6906 9.89063 14.6156C12.8531 13.6219 15 10.8094 15 7.5C15 3.35625 11.6438 0 7.5 0Z",fill:"currentColor"})})}function g(t){return l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",...t,children:l.jsx("path",{fill:"currentColor",d:"M0 32V0h32v32zM21.855 9.016l-.308.036l-.292.052l-.281.084l-.265.093l-.271.093l-.249.12l-.24.131l-.229.145l-.224.161l-.213.172l-.203.188l-.183.203l-.177.213l-.172.224l-.145.229l-.147.251l-.135.255l-.12.281l-.104-.297l-.136-.276l-.135-.271l-.156-.249l-.177-.229l-.188-.213l-.197-.199l-.199-.187l-.229-.172l-.224-.147l-.255-.145l-.24-.125l-.265-.104l-.265-.093l-.271-.079l-.276-.068l-.297-.052l-.292-.025l-.291-.032h-.573l-.281.032l-.265.025l-.271.037l-.251.067l-.24.068l-.239.079l-.245.093l-.208.109l-.229.104l-.197.136l-.204.129l-.187.152l-.183.156l-.177.177l-.156.172l-.161.187l-.147.199l-.135.213l-.12.213V9.264H3.532v2.964h1.829v7.812H3.532v3.011h8.443V20.04h-2.64v-5.083l.016-.276l.036-.271l.041-.251l.052-.24l.068-.239l.079-.213l.093-.215l.109-.187l.12-.188l.145-.161l.147-.145l.161-.136l.187-.12l.199-.104l.197-.077l.229-.068l.256-.052l.249-.032l.281-.011h.229l.208.027l.213.041l.188.052l.188.068l.171.079l.163.093l.145.12l.135.135l.131.147l.109.161l.104.183l.084.213l.077.213l.068.255l.052.256l.041.276l.043.307l.011.333v8.12h5.733v-3.011h-1.828v-4.801l.016-.281l.011-.276l.025-.271l.057-.251l.052-.24l.068-.239l.079-.213l.093-.215l.104-.187l.125-.188l.131-.161l.161-.145l.161-.136l.181-.12l.188-.104l.213-.077l.229-.068l.251-.052l.255-.032l.281-.011h.224l.213.027l.213.041l.188.052l.187.068l.172.079l.161.093l.147.12l.135.135l.12.147l.12.161l.104.183l.084.213l.077.213l.068.255l.052.256l.041.276l.037.307l.015.333v8.12h5.735v-3.011h-1.828v-6.296l-.016-.48l-.052-.437l-.077-.427l-.109-.401l-.131-.375l-.161-.344l-.188-.323l-.213-.308l-.239-.265l-.24-.249l-.281-.215l-.276-.203l-.308-.172l-.323-.161l-.333-.12l-.333-.104l-.359-.083l-.344-.052l-.375-.043h-.693z"})})}function C(t){return l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",...t,children:l.jsx("path",{fill:"#cb3837",d:"M2 10.555h28v9.335H16v1.556H9.778v-1.557H2Zm1.556 7.779h3.111v-4.668h1.555v4.667h1.556v-6.222H3.556Zm7.778-6.223v7.779h3.111v-1.556h3.111v-6.223Zm3.111 1.556H16v3.112h-1.556Zm4.667-1.556v6.223h3.111v-4.668h1.556v4.667h1.556v-4.667h1.556v4.667h1.556v-6.222Z"})})}function f(t){return l.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:l.jsx("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19c-.14.75-.42 1-.68 1.03c-.58.05-1.02-.38-1.58-.75c-.88-.58-1.38-.94-2.23-1.5c-.99-.65-.35-1.01.22-1.59c.15-.15 2.71-2.48 2.76-2.69a.2.2 0 0 0-.05-.18c-.06-.05-.14-.03-.21-.02c-.09.02-1.49.95-4.22 2.79c-.4.27-.76.41-1.08.4c-.36-.01-1.04-.2-1.55-.37c-.63-.2-1.12-.31-1.08-.66c.02-.18.27-.36.74-.55c2.92-1.27 4.86-2.11 5.83-2.51c2.78-1.16 3.35-1.36 3.73-1.36c.08 0 .27.02.39.12c.1.08.13.19.14.27c-.01.06.01.24 0 .38z"})})}function j(t){return l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:l.jsx("path",{fill:"currentColor",d:"M6.62 12a2.291 2.291 0 0 1 2.292-2.295h-.013A2.291 2.291 0 0 1 11.189 12a2.291 2.291 0 0 1-2.29 2.291h.013A2.291 2.291 0 0 1 6.62 12m10.72-4.062h4.266a2.291 2.291 0 0 0 2.29-2.291a2.291 2.291 0 0 0-2.29-2.296H17.34a2.291 2.291 0 0 0-2.291 2.296a2.291 2.291 0 0 0 2.29 2.29zM2.688 20.645h8.285a2.291 2.291 0 0 0 2.291-2.292a2.291 2.291 0 0 0-2.29-2.295H2.687a2.291 2.291 0 0 0-2.291 2.295a2.291 2.291 0 0 0 2.29 2.292zm10.881-6.354h.81l1.894-4.586H15.19l-1.154 3.008h-.013l-1.135-3.008h-1.154zm4.208 0h1.011V9.705h-1.011zm2.878 0h3.235v-.93h-2.223v-.933h1.99v-.934h-1.99v-.855h2.107v-.934h-3.112zM1.31 7.941h1.01V4.247h1.31v-.895H0v.895h1.31zm3.747 0h1.011V5.959h1.958v1.984h1.011v-4.59h-1.01v1.711H6.061V3.351H5.057zm5.348 0h3.242v-.933H11.41v-.934h1.99v-.933h-1.99v-.856h2.107v-.934h-3.112zM.162 14.296h1.005v-3.52h.013l1.167 3.52h.765l1.206-3.52h.013v3.52h1.011v-4.59H3.82L2.755 12.7h-.013L1.686 9.705H.156zm14.534 6.353h1.641a3.188 3.188 0 0 0 .98-.149a2.531 2.531 0 0 0 .824-.437a2.123 2.123 0 0 0 .567-.713a2.193 2.193 0 0 0 .223-.983a2.399 2.399 0 0 0-.218-1.07a1.958 1.958 0 0 0-.586-.716a2.405 2.405 0 0 0-.873-.392a4.349 4.349 0 0 0-1.046-.13h-1.519zm1.013-3.656h.596a2.26 2.26 0 0 1 .606.08a1.514 1.514 0 0 1 .503.244a1.167 1.167 0 0 1 .34.412a1.28 1.28 0 0 1 .13.587a1.546 1.546 0 0 1-.13.658a1.127 1.127 0 0 1-.347.433a1.41 1.41 0 0 1-.518.238a2.797 2.797 0 0 1-.649.07h-.538zm4.686 3.656h1.88a2.997 2.997 0 0 0 .613-.064a1.735 1.735 0 0 0 .554-.214a1.221 1.221 0 0 0 .402-.39a1.105 1.105 0 0 0 .155-.606a1.188 1.188 0 0 0-.071-.415a1.01 1.01 0 0 0-.204-.34a1.087 1.087 0 0 0-.317-.24a1.297 1.297 0 0 0-.413-.13v-.012a1.203 1.203 0 0 0 .575-.366a.962.962 0 0 0 .216-.648a1.081 1.081 0 0 0-.149-.603a1.022 1.022 0 0 0-.389-.354a1.673 1.673 0 0 0-.54-.169a4.463 4.463 0 0 0-.6-.041h-1.712zm1.011-3.734h.687a1.4 1.4 0 0 1 .24.022a.748.748 0 0 1 .22.075a.432.432 0 0 1 .16.147a.418.418 0 0 1 .061.236a.47.47 0 0 1-.055.233a.433.433 0 0 1-.146.156a.62.62 0 0 1-.204.084a1.058 1.058 0 0 1-.23.026h-.745zm0 1.835h.765a1.96 1.96 0 0 1 .266.02a1.015 1.015 0 0 1 .26.07a.519.519 0 0 1 .204.152a.406.406 0 0 1 .08.26a.481.481 0 0 1-.06.253a.519.519 0 0 1-.16.168a.62.62 0 0 1-.217.09a1.155 1.155 0 0 1-.237.027H21.4z"})})}function b(t){return l.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:l.jsx("path",{fill:"#1DA1F2",d:"M22.46 6c-.77.35-1.6.58-2.46.69c.88-.53 1.56-1.37 1.88-2.38c-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29c0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15c0 1.49.75 2.81 1.91 3.56c-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07a4.28 4.28 0 0 0 4 2.98a8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21C16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56c.84-.6 1.56-1.36 2.14-2.23Z"})})}function H(t){return l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:l.jsx("path",{fill:"currentColor",d:"m14.97 18.95l-2.56-6.03c-1.02 1.99-2.14 4.08-3.1 6.03c-.01.01-.47 0-.47 0C7.37 15.5 5.85 12.1 4.37 8.68C4.03 7.84 2.83 6.5 2 6.5v-.45h5.06v.45c-.6 0-1.62.4-1.36 1.05c.72 1.54 3.24 7.51 3.93 9.03c.47-.94 1.8-3.42 2.37-4.47c-.45-.88-1.87-4.18-2.29-5c-.32-.54-1.13-.61-1.75-.61c0-.15.01-.25 0-.44l4.46.01v.4c-.61.03-1.18.24-.92.82c.6 1.24.95 2.13 1.5 3.28c.17-.34 1.07-2.19 1.5-3.16c.26-.65-.13-.91-1.21-.91c.01-.12.01-.33.01-.43c1.39-.01 3.48-.01 3.85-.02v.42c-.71.03-1.44.41-1.82.99L13.5 11.3c.18.51 1.96 4.46 2.15 4.9l3.85-8.83c-.3-.72-1.16-.87-1.5-.87v-.45l4 .03v.42c-.88 0-1.43.5-1.75 1.25c-.8 1.79-3.25 7.49-4.85 11.2h-.43Z"})})}function z(t){return l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:l.jsx("path",{fill:"currentColor",d:"M5.721 0C2.251 0 0 2.25 0 5.719V18.28C0 21.751 2.252 24 5.721 24h12.56C21.751 24 24 21.75 24 18.281V5.72C24 2.249 21.75 0 18.281 0zm1.964 4.078c-.271.73-.5 1.434-.68 2.11h4.587c.545-.006.445 1.168.445 1.171H9.384a58.104 58.104 0 0 1-.112 3.797h2.712c.388.023.393 1.251.393 1.266H9.183a9.223 9.223 0 0 1-.408 2.102l.757-.604c.452.456 1.512 1.712 1.906 2.177c.473.681.063 2.081.063 2.081l-2.794-3.382c-.653 2.518-1.845 3.607-1.845 3.607c-.523.468-1.58.82-2.64.516c2.218-1.73 3.44-3.917 3.667-6.497H4.491c0-.015.197-1.243.806-1.266h2.71c.024-.32.086-3.254.086-3.797H6.598c-.136.406-.158.447-.268.753c-.594 1.095-1.603 1.122-1.907 1.155c.906-1.821 1.416-3.6 1.591-4.064c.425-1.124 1.671-1.125 1.671-1.125zM13.078 6h6.377v11.33h-2.573l-2.184 1.373l-.401-1.373h-1.219zm1.313 1.219v8.86h.623l.263.937l1.455-.938h1.456v-8.86z"})})}const _=t=>t.pathname.split("/").pop(),i="github.com",D=t=>t.hostname===i&&t.pathname.startsWith("/")&&t.pathname.split("/").length===3,R=t=>t.hostname===i&&t.pathname.includes("/pull/"),E=t=>t.hostname==="www.youtube.com"&&t.pathname.startsWith("/watch"),P=t=>t.hostname==="gist.github.com",$=t=>{const[e,,,s]=t.pathname.split("/");return t.hostname===i&&s==="commit"},O=t=>{const[e,,,s]=t.pathname.split("/");return t.hostname===i&&s==="blob"},Y=t=>o(t)&&t.pathname.startsWith("/"),U=t=>t.hostname===i,o=t=>t.hostname==="twitter.com"||t.hostname==="x.com",M=t=>t.hostname==="t.me",q=t=>t.hostname==="codesandbox.io"&&t.pathname.split("/").length===3,y=t=>t.hostname.includes("bilibili.com"),J=t=>{if(!w)return!1;const e=u(),s=e?new URL(e).hostname:"";return(t.hostname===location.hostname||s===t.hostname)&&["/posts/","/notes/"].some(n=>t.pathname.startsWith(n))},T=t=>t.hostname==="www.zhihu.com",B=t=>t.hostname.includes("wikipedia.org"),G=t=>t.hostname.includes("themoviedb.org"),Z=t=>t.hostname.includes("npmjs.com"),F=t=>t.hostname.includes("mozilla.org"),K=t=>{const[e,s,n]=t.pathname.split("/");return{owner:s,id:n}},Q=t=>{const e=t.pathname.split("/"),[s,n,a,h,m]=e,p=e.slice(4).join("/");return{owner:n,repo:a,type:h,id:m,afterTypeString:p}},X=t=>{const[e,s,n,a,h]=t.pathname.split("/");return{owner:s,repo:n,type:a,pr:h}},r=[{type:"GH",icon:l.jsx(d,{className:"text-[#1D2127] dark:text-[#FFFFFF]"}),test:U},{type:"TW",icon:l.jsx(b,{}),test:o},{type:"TG",icon:l.jsx(f,{className:"text-[#2AABEE]"}),test:M},{type:"BL",icon:l.jsx(x,{className:"text-[#469ECF]"}),test:y},{type:"ZH",icon:l.jsx(z,{className:"text-[#0084FF]"}),test:T},{type:"WI",icon:l.jsx(H,{className:"text-current"}),test:B},{type:"TMDB",icon:l.jsx(j,{className:"text-[#0D243F] dark:text-[#5CB7D2]"}),test:G},{type:"Moz",icon:l.jsx(g,{className:"text-[#8cb4ff]"}),test:F},{type:"Npm",icon:l.jsx(C,{}),test:Z}],c=r.reduce((t,e)=>(t[e.type]=e.icon,t),{}),N=t=>r.find(e=>e.test(t))?.type,L=t=>{const{source:e,href:s,className:n}=t;let a=e;try{if(s){const h=new URL(s);a=N(h)??e}}catch{}return c[a]?l.jsx("span",{className:v("mr-1 align-text-bottom [&_svg]:inline",n),children:c[a]}):null},I={GH:"https://github.com/",TW:"https://twitter.com/",TG:"https://t.me/",ZH:"https://www.zhihu.com/people/"},t1=({name:t,source:e,href:s})=>{const n=I[e];return n?l.jsxs("span",{className:"mx-1 inline-flex items-center space-x-1 align-text-bottom",children:[l.jsx(L,{source:e}),l.jsx("a",{target:"_blank",rel:"noreferrer nofollow",href:s??`${n}${t}`,className:"underline-offset-2",children:t})]}):null};export{L as F,d as G,t1 as S,b as T,J as a,q as b,E as c,Y as d,U as e,O as f,_ as g,$ as h,G as i,R as j,X as k,P as l,K as m,D as n,Q as p}; diff --git a/assets/StyledButton-Mj8l6PeD.js b/assets/StyledButton-Mj8l6PeD.js new file mode 100644 index 00000000000..ef635154cdf --- /dev/null +++ b/assets/StyledButton-Mj8l6PeD.js @@ -0,0 +1 @@ +import{r as s,j as t,R as u}from"./index-qegmBwH1.js";import{c as m,a as d}from"./helper-0r91fNX5.js";import{i as g}from"./index-5Y6ZmVAf.js";import{m as x}from"./motion-minimal-gJqnz197.js";const i=s.forwardRef(({children:e,...a},r)=>t.jsx(x.button,{initial:!0,whileFocus:{scale:1.02},whileHover:{scale:1.02},whileTap:{scale:.95},...a,ref:r,children:e}));i.displayName="MotionButtonBase";const b=s.forwardRef(({className:e,children:a,...r},n)=>t.jsx(i,{ref:n,className:m("inline-flex rounded-full bg-accent p-2 text-center leading-none center hover:opacity-90",e),...r,children:a}));b.displayName="RoundedIconButton";const p=e=>u.createElement("a",e,e.children),l=g({base:"inline-flex select-none cursor-default items-center gap-2 justify-center rounded-lg py-2 px-3 text-sm outline-offset-2 transition active:transition-none",variants:{variant:{primary:d("bg-accent text-zinc-100","active:contrast-125 hover:contrast-[1.10]","font-semibold","disabled:bg-gray-400 disabled:opacity-30 disabled:dark:bg-gray-800 disabled:dark:text-slate-50 disabled:cursor-not-allowed","dark:text-neutral-800"),secondary:d("group rounded-full bg-gradient-to-b from-zinc-50/50 to-white/90 px-3 py-2 shadow-lg shadow-zinc-800/5 ring-1 ring-zinc-900/5 backdrop-blur transition dark:from-zinc-900/50 dark:to-zinc-800/90 dark:ring-white/10 dark:hover:ring-white/20","disabled:bg-gray-400 disabled:opacity-30 disabled:dark:bg-gray-800 disabled:dark:text-slate-50 disabled:cursor-not-allowed")}}}),v=({variant:e="primary",className:a,isLoading:r,href:n,...o})=>{const c=r?f:s.Fragment;return t.jsx(c,{children:n?t.jsx(p,{href:n,className:l({variant:e,className:a}),...o}):t.jsx(i,{className:l({variant:e,className:a}),...o})})},f=({children:e})=>t.jsxs("div",{className:"relative",children:[e,t.jsx("div",{className:"absolute inset-0 z-[1] flex items-center justify-center",children:t.jsx("div",{className:"loading loading-spinner h-5 w-5"})})]});export{p as L,i as M,v as S}; diff --git a/assets/Tableau10-Fgclqpgn.js b/assets/Tableau10-Fgclqpgn.js new file mode 100644 index 00000000000..4223ec34a3b --- /dev/null +++ b/assets/Tableau10-Fgclqpgn.js @@ -0,0 +1 @@ +function o(e){for(var c=e.length/6|0,n=new Array(c),a=0;ae.jsx(a,{...t,alt:"avatar",className:"!m-0"}),MediaImg:t=>e.jsx(a,{...t,fill:!0,unoptimized:!0,alt:"tweet-media",className:"!m-0 object-cover"})};async function d({id:t}){const{Tweet:r}=await m(()=>import("./index.client-pKCGNBTs.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return e.jsx("span",{className:"flex justify-center",children:e.jsx(r,{id:t,components:o})})}export{d as default}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["./index.client-pKCGNBTs.js","./index-qegmBwH1.js","./index-SRCubG37.css","./index-wpIVlVRc.js","./helper-0r91fNX5.js","./index-75n5Qq-a.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/assets/WrappedElementProvider-5243oAX6.js b/assets/WrappedElementProvider-5243oAX6.js new file mode 100644 index 00000000000..1dedd89b4be --- /dev/null +++ b/assets/WrappedElementProvider-5243oAX6.js @@ -0,0 +1,3 @@ +import{R as oe,r as g,j as s,i as U}from"./index-qegmBwH1.js";import{c as re,a as je}from"./helper-0r91fNX5.js";import{i as Ie}from"./index-5Y6ZmVAf.js";import{c as Ce,L as He}from"./image-sZM8elMx.js";import{u as Oe,D as J}from"./use-is-unmounted-6i0OwE-p.js";import{a as Pe}from"./env-y9k74Ds6.js";import{j as ie,s as Ae}from"./store-gmK8mRDy.js";import{a as _,b as ae,u as Q}from"./init-a0893ef4-4662SO8Z.js";import{t as Ne}from"./lodash-Y39_oLIE.js";const Re=({contexts:n,children:e})=>n.reduceRight((o,i)=>oe.cloneElement(i,{children:o}),e),$=typeof window<"u"?g.useLayoutEffect:g.useEffect,Te=_(!1),_e=n=>ie.set(Te,n),ke=_(0),se=_(null),wt=({children:n})=>s.jsxs(s.Fragment,{children:[s.jsx(Me,{}),n]}),Me=()=>{const n=Q(ke),e=Q(se),o=g.useRef(0),i=g.useRef(!1);return $(()=>{const c=Ne(()=>{i.current||(_e(!0),i.current=!0);const m=document.documentElement.scrollTop;e(o.current-m>0?"up":"down"),o.current=m,g.startTransition(()=>{n(o.current)})},16,{leading:!1});return window.addEventListener("scroll",c),c(),()=>{window.removeEventListener("scroll",c)}},[]),null},We=()=>ae(se),De=n=>{const e=g.useRef();return e.current||(e.current=n()),e.current};/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var O=Object.assign||function(n){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},i=window.Promise||function(r){function a(){}r(a,a)},c=function(r){var a=r.target;if(a===M){x();return}w.indexOf(a)!==-1&&b({target:a})},m=function(){if(!(A||!t.original)){var r=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(V-r)>l.scrollOffset&&setTimeout(x,150)}},S=function(r){var a=r.key||r.keyCode;(a==="Escape"||a==="Esc"||a===27)&&x()},u=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=r;if(r.background&&(M.style.background=r.background),r.container&&r.container instanceof Object&&(a.container=O({},l.container,r.container)),r.template){var f=F(r.template)?r.template:document.querySelector(r.template);a.template=f}return l=O({},l,a),w.forEach(function(p){p.dispatchEvent(R("medium-zoom:update",{detail:{zoom:h}}))}),h},y=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n(O({},l,r))},E=function(){for(var r=arguments.length,a=Array(r),f=0;f0?a.reduce(function(d,z){return[].concat(d,te(z))},[]):w;return p.forEach(function(d){d.classList.remove("medium-zoom-image"),d.dispatchEvent(R("medium-zoom:detach",{detail:{zoom:h}}))}),w=w.filter(function(d){return p.indexOf(d)===-1}),h},C=function(r,a){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return w.forEach(function(p){p.addEventListener("medium-zoom:"+r,a,f)}),k.push({type:"medium-zoom:"+r,listener:a,options:f}),h},P=function(r,a){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return w.forEach(function(p){p.removeEventListener("medium-zoom:"+r,a,f)}),k=k.filter(function(p){return!(p.type==="medium-zoom:"+r&&p.listener.toString()===a.toString())}),h},H=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=r.target,f=function(){var d={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},z=void 0,j=void 0;if(l.container)if(l.container instanceof Object)d=O({},d,l.container),z=d.width-d.left-d.right-l.margin*2,j=d.height-d.top-d.bottom-l.margin*2;else{var N=F(l.container)?l.container:document.querySelector(l.container),I=N.getBoundingClientRect(),Y=I.width,pe=I.height,he=I.left,ve=I.top;d=O({},d,{width:Y,height:pe,left:he,top:ve})}z=z||d.width-l.margin*2,j=j||d.height-l.margin*2;var T=t.zoomedHd||t.original,ze=ee(T)?z:T.naturalWidth||z,ye=ee(T)?j:T.naturalHeight||j,W=T.getBoundingClientRect(),Ee=W.top,xe=W.left,q=W.width,B=W.height,be=Math.min(Math.max(q,ze),z)/q,we=Math.min(Math.max(B,ye),j)/B,Z=Math.min(be,we),Se=(-xe+(z-q)/2+l.margin+d.left)/Z,Le=(-Ee+(j-B)/2+l.margin+d.top)/Z,G="scale("+Z+") translate3d("+Se+"px, "+Le+"px, 0)";t.zoomed.style.transform=G,t.zoomedHd&&(t.zoomedHd.style.transform=G)};return new i(function(p){if(a&&w.indexOf(a)===-1){p(h);return}var d=function Y(){A=!1,t.zoomed.removeEventListener("transitionend",Y),t.original.dispatchEvent(R("medium-zoom:opened",{detail:{zoom:h}})),p(h)};if(t.zoomed){p(h);return}if(a)t.original=a;else if(w.length>0){var z=w;t.original=z[0]}else{p(h);return}if(t.original.dispatchEvent(R("medium-zoom:open",{detail:{zoom:h}})),V=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,A=!0,t.zoomed=Ye(t.original),document.body.appendChild(M),l.template){var j=F(l.template)?l.template:document.querySelector(l.template);t.template=document.createElement("div"),t.template.appendChild(j.content.cloneNode(!0)),document.body.appendChild(t.template)}if(t.original.parentElement&&t.original.parentElement.tagName==="PICTURE"&&t.original.currentSrc&&(t.zoomed.src=t.original.currentSrc),document.body.appendChild(t.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),t.original.classList.add("medium-zoom-image--hidden"),t.zoomed.classList.add("medium-zoom-image--opened"),t.zoomed.addEventListener("click",x),t.zoomed.addEventListener("transitionend",d),t.original.getAttribute("data-zoom-src")){t.zoomedHd=t.zoomed.cloneNode(),t.zoomedHd.removeAttribute("srcset"),t.zoomedHd.removeAttribute("sizes"),t.zoomedHd.removeAttribute("loading"),t.zoomedHd.src=t.zoomed.getAttribute("data-zoom-src"),t.zoomedHd.onerror=function(){clearInterval(N),console.warn("Unable to reach the zoom image target "+t.zoomedHd.src),t.zoomedHd=null,f()};var N=setInterval(function(){t.zoomedHd.complete&&(clearInterval(N),t.zoomedHd.classList.add("medium-zoom-image--opened"),t.zoomedHd.addEventListener("click",x),document.body.appendChild(t.zoomedHd),f())},10)}else if(t.original.hasAttribute("srcset")){t.zoomedHd=t.zoomed.cloneNode(),t.zoomedHd.removeAttribute("sizes"),t.zoomedHd.removeAttribute("loading");var I=t.zoomedHd.addEventListener("load",function(){t.zoomedHd.removeEventListener("load",I),t.zoomedHd.classList.add("medium-zoom-image--opened"),t.zoomedHd.addEventListener("click",x),document.body.appendChild(t.zoomedHd),f()})}else f()})},x=function(){return new i(function(r){if(A||!t.original){r(h);return}var a=function f(){t.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(t.zoomed),t.zoomedHd&&document.body.removeChild(t.zoomedHd),document.body.removeChild(M),t.zoomed.classList.remove("medium-zoom-image--opened"),t.template&&document.body.removeChild(t.template),A=!1,t.zoomed.removeEventListener("transitionend",f),t.original.dispatchEvent(R("medium-zoom:closed",{detail:{zoom:h}})),t.original=null,t.zoomed=null,t.zoomedHd=null,t.template=null,r(h)};A=!0,document.body.classList.remove("medium-zoom--opened"),t.zoomed.style.transform="",t.zoomedHd&&(t.zoomedHd.style.transform=""),t.template&&(t.template.style.transition="opacity 150ms",t.template.style.opacity=0),t.original.dispatchEvent(R("medium-zoom:close",{detail:{zoom:h}})),t.zoomed.addEventListener("transitionend",a)})},b=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=r.target;return t.original?x():H({target:a})},ue=function(){return l},fe=function(){return w},ge=function(){return t.original},w=[],k=[],A=!1,V=0,l=o,t={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(e)==="[object Object]"?l=e:(e||typeof e=="string")&&E(e),l=O({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},l);var M=Ue(l.background);document.addEventListener("click",c),document.addEventListener("keyup",S),document.addEventListener("scroll",m),window.addEventListener("resize",x);var h={open:H,close:x,toggle:b,update:u,clone:y,attach:E,detach:L,on:C,off:P,getOptions:ue,getImages:fe,getZoomedImage:ge};return h};function Be(n,e){e===void 0&&(e={});var o=e.insertAt;if(!(!n||typeof document>"u")){var i=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.type="text/css",o==="top"&&i.firstChild?i.insertBefore(c,i.firstChild):i.appendChild(c),c.styleSheet?c.styleSheet.cssText=n:c.appendChild(document.createTextNode(n))}}var Ze=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";Be(Ze);const Xe=n=>oe.createElement("img",n,n.children),de=g.createContext(_([])),St=({children:n,images:e})=>{const o=De(()=>_(e));return g.useEffect(()=>{ie.set(o,e)},[e]),s.jsx(de.Provider,{value:o,children:n})},ce=n=>ae(Ae(g.useContext(de),g.useCallback(e=>e.find(o=>o.src===n),[n]))),$e="_error_hef56_1",Ke="_loading_hef56_2",Ve="_loaded_hef56_6",Ge="_imageLoad_hef56_1",ne={error:$e,loading:Ke,loaded:Ve,imageLoad:Ge},K=Ie({base:"rounded-xl overflow-hidden text-center inline-flex items-center justify-center duration-200",variants:{status:{loading:"hidden opacity-0",loaded:"opacity-100 block",error:"hidden opacity-0"}}});let X;const Je=({alt:n,src:e,title:o,zoom:i,placeholder:c,height:m,width:S,className:u})=>{const[y]=g.useState(()=>{if(Pe)return null;if(X)return X;const b=qe(void 0);return X=b,b}),E=o||n,[L,C]=g.useState("loading"),P=Oe(),H=g.useCallback(b=>{P.current||C(b)},[P]),x=g.useRef(null);return $(()=>{if(L!=="loaded"||!i)return;const b=x.current;if(b)return y.attach(b),()=>{y.detach(b)}},[i,y,L]),s.jsxs("figure",{children:[s.jsx("span",{className:"relative flex justify-center","data-hide-print":!0,children:s.jsxs(He,{placeholder:c,offset:30,children:[s.jsx("span",{children:L!=="loaded"&&c}),L==="error"&&s.jsxs("div",{className:"absolute inset-0 z-[1] flex flex-col gap-8 center",children:[s.jsx("i",{className:"icon-[mingcute--close-line] text-4xl text-red-500"}),s.jsx("span",{children:"图片加载失败"}),s.jsx(J,{className:"w-[80px] opacity-80"}),s.jsx("a",{href:e,target:"_blank",rel:"noreferrer",children:s.jsx("span",{children:"查看原图"})})]}),s.jsx(le,{height:m,width:S,src:e,title:o,alt:n||o||"",ref:x,onLoad:()=>{H("loaded")},onError:()=>H("error"),className:K({status:L,className:je(ne.loaded,u)}),onAnimationEnd:b=>{b.target.classList.remove(ne.loaded)}})]})}),s.jsx("img",{className:"max-w-1/3 !hidden print:!block",src:e,alt:n||o}),!!E&&s.jsxs("figcaption",{className:"mt-1 flex flex-col items-center justify-center",children:[s.jsx(J,{className:"w-[80px] opacity-80"}),s.jsx("span",{children:E})]})]})},Lt=n=>{const e=g.useMemo(()=>s.jsx(Qe,{...n}),[n]);return s.jsx(Je,{zoom:!0,placeholder:e,...n})},Qe=({src:n,containerWidth:e,height:o,width:i,accent:c})=>{const m=ce(n),S=c||m?.accent,u=g.useMemo(()=>{let y=o,E=i;if(!y||!E){if(!m)return;y=m.height,E=m.width}if(e<=0)return;const{height:L,width:C}=Ce({width:E,height:y,max:{width:e,height:1/0}});return{scaleHeight:L,scaleWidth:C}},[o,i,e,m]);return u?s.jsx("span",{className:`image-placeholder ${K.base}`,"data-width":u.scaleWidth,"data-height":u.scaleHeight,"data-from-record-height":m?.height,"data-from-record-width":m?.width,"data-src":n,style:{height:u.scaleHeight,width:u.scaleWidth,backgroundColor:S}}):s.jsx(et,{accent:S})},et=({accent:n})=>s.jsx("span",{className:re("image-placeholder",K.base,"h-[300px] w-full bg-slate-300 dark:bg-slate-700"),style:{backgroundColor:n,outline:void 0}}),le=g.forwardRef(({src:n,alt:e,...o},i)=>{const{height:c,width:m}=ce(n)||o;return!c||!m?s.jsx("img",{alt:e,src:n,ref:i,...o}):s.jsx(Xe,{alt:e||"",fetchPriority:"high",priority:!0,src:n,...o,height:+c,width:+m,ref:i})});le.displayName="OptimizedImage";const tt=n=>{const e=g.useRef(n);return g.useEffect(()=>{e.current=n},[n]),e},[nt,ot,rt]=U(void 0),[it,jt,at]=U({h:0,w:0}),[st,It,dt]=U({x:0,y:0}),[ct,Ct,lt]=U(!1),mt=[s.jsx(nt,{},"ArticleElementProviderInternal"),s.jsx(it,{},"ElementSizeProviderInternal"),s.jsx(st,{},"ElementPositionProviderInternal"),s.jsx(ct,{},"IsEOArticleElementProviderInternal")],Ht=({children:n,className:e})=>s.jsxs(Re,{contexts:mt,children:[s.jsx(ut,{}),s.jsx(me,{className:e,children:n})]}),ut=()=>{const n=at(),e=dt(),o=ot();return $(()=>{if(!o)return;const{height:i,width:c,x:m,y:S}=o.getBoundingClientRect();n({h:i,w:c}),e({x:m,y:S});const u=new ResizeObserver(y=>{const E=y[0],{height:L,width:C,x:P,y:H}=E.contentRect;n({h:L,w:C}),e({x:P,y:H})});return u.observe(o),()=>{u.unobserve(o),u.disconnect()}},[o]),null},me=g.memo(({children:n,className:e})=>{const o=rt();return s.jsxs("div",{className:re("relative",e),ref:o,children:[n,s.jsx(ft,{})]})});me.displayName="ArticleElementProviderContent";const ft=()=>{const n=We(),e=tt(n),o=lt(),i=g.useRef(null);return g.useEffect(()=>{if(!i.current)return;const c=i.current,m=new IntersectionObserver(S=>{const u=S[0];!u.isIntersecting&&e.current==="down"||o(u.isIntersecting)},{rootMargin:"0px 0px 0px 0px"});return m.observe(c),()=>{m.unobserve(c),m.disconnect()}},[]),s.jsx("div",{ref:i})};export{Lt as F,Xe as I,St as M,Re as P,Ht as W,ce as a,tt as b,De as c,wt as d,$ as e,qe as m,jt as u}; diff --git a/assets/WrappedElementProvider-v7JdpuAw.css b/assets/WrappedElementProvider-v7JdpuAw.css new file mode 100644 index 00000000000..f22aca35af2 --- /dev/null +++ b/assets/WrappedElementProvider-v7JdpuAw.css @@ -0,0 +1 @@ +._error_hef56_1,._loading_hef56_2{opacity:0}._loaded_hef56_6{animation:_imageLoad_hef56_1 .5s ease-in-out forwards}@keyframes _imageLoad_hef56_1{0%{-webkit-mask:linear-gradient(90deg,#000 25%,#000000e6 50%,#00000000) 150% 0 / 400% no-repeat;mask:linear-gradient(90deg,#000 25%,#000000e6 50%,#00000000) 150% 0 / 400% no-repeat;opacity:.2}to{-webkit-mask:linear-gradient(90deg,#000 25%,#000000e6 50%,#00000000) 0 / 400% no-repeat;mask:linear-gradient(90deg,#000 25%,#000000e6 50%,#00000000) 0 / 400% no-repeat;opacity:1}} diff --git a/assets/arc-9wcg-j4M.js b/assets/arc-9wcg-j4M.js new file mode 100644 index 00000000000..a3ff4067a3e --- /dev/null +++ b/assets/arc-9wcg-j4M.js @@ -0,0 +1 @@ +import{w as ln,c as Q}from"./path-aUcfwwLI.js";import{M as rn,N as Y,O,P as an,Q as y,R as on,S as B,T as _,V as un,W as t,X as sn,Y as tn,_ as fn}from"./index.demo-_07sssxB.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function mn(l){return l.endAngle}function pn(l){return l&&l.padAngle}function dn(l,h,D,S,v,R,V,r){var E=D-l,i=S-h,n=V-v,m=r-R,a=m*E-n*i;if(!(a*au*u+X*X&&(M=w,N=d),{cx:M,cy:N,x01:-n,y01:-m,x11:M*(v/T-1),y11:N*(v/T-1)}}function vn(){var l=cn,h=yn,D=Q(0),S=null,v=gn,R=mn,V=pn,r=null,E=ln(i);function i(){var n,m,a=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=R.apply(this,arguments)-an,W=un(c-f),o=c>f;if(r||(r=n=E()),sy))r.moveTo(0,0);else if(W>on-y)r.moveTo(s*Y(f),s*O(f)),r.arc(0,0,s,f,c,!o),a>y&&(r.moveTo(a*Y(c),a*O(c)),r.arc(0,0,a,c,f,o));else{var p=f,g=c,A=f,T=c,P=W,I=W,M=V.apply(this,arguments)/2,N=M>y&&(S?+S.apply(this,arguments):B(a*a+s*s)),w=_(un(s-a)/2,+D.apply(this,arguments)),d=w,x=w,e,u;if(N>y){var X=sn(N/a*O(M)),C=sn(N/s*O(M));(P-=X*2)>y?(X*=o?1:-1,A+=X,T-=X):(P=0,A=T=(f+c)/2),(I-=C*2)>y?(C*=o?1:-1,p+=C,g-=C):(I=0,p=g=(f+c)/2)}var j=s*Y(p),z=s*O(p),F=a*Y(T),G=a*O(T);if(w>y){var H=s*Y(g),J=s*O(g),L=a*Y(A),U=a*O(A),q;if(Wy?x>y?(e=K(L,U,j,z,s,x,o),u=K(H,J,F,G,s,x,o),r.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?r.lineTo(F,G):d>y?(e=K(F,G,H,J,a,-d,o),u=K(j,z,L,U,a,-d,o),r.lineTo(e.cx+e.x01,e.cy+e.y01),d"u"&&(w.yylloc={});var J=w.yylloc;t.push(J);var Le=w.options&&w.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var P;return P=u.pop()||w.lex()||C,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}for(var I,M,z,Q,W={},X,B,ae,G;;){if(M=i[i.length-1],this.defaultActions[M]?z=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=me()),z=m[M]&&m[M][I]),typeof z>"u"||!z.length||!z[0]){var $="";G=[];for(X in m[M])this.terminals_[X]&&X>F&&G.push("'"+this.terminals_[X]+"'");w.showPosition?$="Parse error on line "+(R+1)+`: +`+w.showPosition()+` +Expecting `+G.join(", ")+", got '"+(this.terminals_[I]||I)+"'":$="Parse error on line "+(R+1)+": Unexpected "+(I==C?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError($,{text:w.match,token:this.terminals_[I]||I,line:w.yylineno,loc:J,expected:G})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+I);switch(z[0]){case 1:i.push(I),h.push(w.yytext),t.push(w.yylloc),i.push(z[1]),I=null,Y=w.yyleng,r=w.yytext,R=w.yylineno,J=w.yylloc;break;case 2:if(B=this.productions_[z[1]][1],W.$=h[h.length-B],W._$={first_line:t[t.length-(B||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(B||1)].first_column,last_column:t[t.length-1].last_column},Le&&(W._$.range=[t[t.length-(B||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(W,[r,Y,R,K.yy,z[1],h,t].concat(Se)),typeof Q<"u")return Q;B&&(i=i.slice(0,-1*B*2),h=h.slice(0,-1*B),t=t.slice(0,-1*B)),i.push(this.productions_[z[1]][0]),h.push(W.$),t.push(W._$),ae=m[i[i.length-2]][i[i.length-1]],i.push(ae);break;case 3:return!0}}return!0}},A=function(){var D={EOF:1,parseError:function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},setInput:function(l,s){return this.yy=s||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var s=l.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},unput:function(l){var s=l.length,i=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var h=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===u.length?this.yylloc.first_column:0)+u[u.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(l){this.unput(this.match.slice(l))},pastInput:function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var l=this.pastInput(),s=new Array(l.length+1).join("-");return l+this.upcomingInput()+` +`+s+"^"},test_match:function(l,s){var i,u,h;if(this.options.backtrack_lexer&&(h={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(h.yylloc.range=this.yylloc.range.slice(0))),u=l[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],i=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var t in h)this[t]=h[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,s,i,u;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),t=0;ts[0].length)){if(s=i,u=t,this.options.backtrack_lexer){if(l=this.test_match(i,h[t]),l!==!1)return l;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(l=this.test_match(s,h[u]),l!==!1?l:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return s||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(s,i,u,h){switch(u){case 0:return 10;case 1:return s.getLogger().debug("Found space-block"),31;case 2:return s.getLogger().debug("Found nl-block"),31;case 3:return s.getLogger().debug("Found space-block"),29;case 4:s.getLogger().debug(".",i.yytext);break;case 5:s.getLogger().debug("_",i.yytext);break;case 6:return 5;case 7:return i.yytext=-1,28;case 8:return i.yytext=i.yytext.replace(/columns\s+/,""),s.getLogger().debug("COLUMNS (LEX)",i.yytext),28;case 9:this.pushState("md_string");break;case 10:return"MD_STR";case 11:this.popState();break;case 12:this.pushState("string");break;case 13:s.getLogger().debug("LEX: POPPING STR:",i.yytext),this.popState();break;case 14:return s.getLogger().debug("LEX: STR end:",i.yytext),"STR";case 15:return i.yytext=i.yytext.replace(/space\:/,""),s.getLogger().debug("SPACE NUM (LEX)",i.yytext),21;case 16:return i.yytext="1",s.getLogger().debug("COLUMNS (LEX)",i.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),s.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),s.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),s.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),s.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),s.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),s.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),s.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),s.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),s.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),s.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return s.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return s.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return s.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return s.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 60:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 61:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 62:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 63:return s.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return s.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 65:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 66:return this.pushState("NODE"),36;case 67:return this.pushState("NODE"),36;case 68:return this.pushState("NODE"),36;case 69:return this.pushState("NODE"),36;case 70:return this.pushState("NODE"),36;case 71:return this.pushState("NODE"),36;case 72:return this.pushState("NODE"),36;case 73:return s.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),s.getLogger().debug("LEX ARR START"),38;case 75:return s.getLogger().debug("Lex: NODE_ID",i.yytext),32;case 76:return s.getLogger().debug("Lex: EOF",i.yytext),8;case 77:this.pushState("md_string");break;case 78:this.pushState("md_string");break;case 79:return"NODE_DESCR";case 80:this.popState();break;case 81:s.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:s.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return s.getLogger().debug("LEX: NODE_DESCR:",i.yytext),"NODE_DESCR";case 84:s.getLogger().debug("LEX POPPING"),this.popState();break;case 85:s.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (right): dir:",i.yytext),"DIR";case 87:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (left):",i.yytext),"DIR";case 88:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (x):",i.yytext),"DIR";case 89:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (y):",i.yytext),"DIR";case 90:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (up):",i.yytext),"DIR";case 91:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (down):",i.yytext),"DIR";case 92:return i.yytext="]>",s.getLogger().debug("Lex (ARROW_DIR end):",i.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return s.getLogger().debug("Lex: LINK","#"+i.yytext+"#"),15;case 94:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 95:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 96:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 97:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 98:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 99:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 100:this.pushState("md_string");break;case 101:return s.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),s.getLogger().debug("Lex: LINK","#"+i.yytext+"#"),15;case 103:return this.popState(),s.getLogger().debug("Lex: LINK",i.yytext),15;case 104:return this.popState(),s.getLogger().debug("Lex: LINK",i.yytext),15;case 105:return s.getLogger().debug("Lex: COLON",i.yytext),i.yytext=i.yytext.slice(1),27}},rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}};return D}();L.lexer=A;function k(){this.yy={}}return k.prototype=L,L.Parser=k,new k}();ee.parser=ee;const Be=ee;let O={},ie=[],V={};const ce="color",ue="fill",Pe="bgFill",ge=",";let j={};const Fe=function(e,a=""){j[e]===void 0&&(j[e]={id:e,styles:[],textStyles:[]});const d=j[e];a?.split(ge).forEach(c=>{const n=c.replace(/([^;]*);/,"$1").trim();if(c.match(ce)){const o=n.replace(ue,Pe).replace(ce,ue);d.textStyles.push(o)}d.styles.push(n)})},Ke=function(e,a=""){const d=O[e];a!=null&&(d.styles=a.split(ge))},Me=function(e,a){e.split(",").forEach(function(d){let c=O[d];if(c===void 0){const n=d.trim();O[n]={id:n,type:"na",children:[]},c=O[n]}c.classes||(c.classes=[]),c.classes.push(a)})},pe=(e,a)=>{const d=e.flat(),c=[];for(const n of d){if(n.type==="classDef"){Fe(n.id,n.css);continue}if(n.type==="applyClass"){Me(n.id,n?.styleClass||"");continue}if(n.type==="applyStyles"){n?.stylesStr&&Ke(n.id,n?.stylesStr);continue}if(n.type==="column-setting")a.columns=n.columns||-1;else if(n.type==="edge")V[n.id]?V[n.id]++:V[n.id]=1,n.id=V[n.id]+"-"+n.id,ie.push(n);else{n.label||(n.type==="composite"?n.label="":n.label=n.id);const g=!O[n.id];if(g?O[n.id]=n:(n.type!=="na"&&(O[n.id].type=n.type),n.label!==n.id&&(O[n.id].label=n.label)),n.children&&pe(n.children,n),n.type==="space"){const o=n.width||1;for(let f=0;f{S.debug("Clear called"),Ee(),U={id:"root",type:"composite",children:[],columns:-1},O={root:U},re=[],j={},ie=[],V={}};function We(e){switch(S.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return S.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function Ve(e){switch(S.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}function je(e){switch(e.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}let de=0;const Ue=()=>(de++,"id-"+Math.random().toString(36).substr(2,12)+"-"+de),Xe=e=>{U.children=e,pe(e,U),re=U.children},Ge=e=>{const a=O[e];return a?a.columns?a.columns:a.children?a.children.length:-1:-1},He=()=>[...Object.values(O)],qe=()=>re||[],Ze=()=>ie,Je=e=>O[e],Qe=e=>{O[e.id]=e},$e=()=>console,et=function(){return j},tt={getConfig:()=>se().block,typeStr2Type:We,edgeTypeStr2Type:Ve,edgeStrToEdgeData:je,getLogger:$e,getBlocksFlat:He,getBlocks:qe,getEdges:Ze,setHierarchy:Xe,getBlock:Je,setBlock:Qe,getColumns:Ge,getClasses:et,clear:Ye,generateId:Ue},st=tt,q=(e,a)=>{const d=Ae,c=d(e,"r"),n=d(e,"g"),g=d(e,"b");return we(c,n,g,a)},it=e=>`.label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + .cluster-label text { + fill: ${e.titleColor}; + } + .cluster-label span,p { + color: ${e.titleColor}; + } + + + + .label text,span,p { + fill: ${e.nodeTextColor||e.textColor}; + color: ${e.nodeTextColor||e.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: 1px; + } + .flowchart-label text { + text-anchor: middle; + } + // .flowchart-label .text-outer-tspan { + // text-anchor: middle; + // } + // .flowchart-label .text-inner-tspan { + // text-anchor: start; + // } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${e.arrowheadColor}; + } + + .edgePath .path { + stroke: ${e.lineColor}; + stroke-width: 2.0px; + } + + .flowchart-link { + stroke: ${e.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${e.edgeLabelBackground}; + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } + + /* For html labels only */ + .labelBkg { + background-color: ${q(e.edgeLabelBackground,.5)}; + // background-color: + } + + .node .cluster { + // fill: ${q(e.mainBkg,.5)}; + fill: ${q(e.clusterBkg,.5)}; + stroke: ${q(e.clusterBorder,.2)}; + box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; + stroke-width: 1px; + } + + .cluster text { + fill: ${e.titleColor}; + } + + .cluster span,p { + color: ${e.titleColor}; + } + /* .cluster div { + color: ${e.titleColor}; + } */ + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${e.fontFamily}; + font-size: 12px; + background: ${e.tertiaryColor}; + border: 1px solid ${e.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; + } +`,rt=it;function fe(e,a,d=!1){var c,n,g;const o=e;let f="default";(((c=o?.classes)==null?void 0:c.length)||0)>0&&(f=(o?.classes||[]).join(" ")),f=f+" flowchart-label";let b=0,p="",x;switch(o.type){case"round":b=5,p="rect";break;case"composite":b=0,p="composite",x=0;break;case"square":p="rect";break;case"diamond":p="question";break;case"hexagon":p="hexagon";break;case"block_arrow":p="block_arrow";break;case"odd":p="rect_left_inv_arrow";break;case"lean_right":p="lean_right";break;case"lean_left":p="lean_left";break;case"trapezoid":p="trapezoid";break;case"inv_trapezoid":p="inv_trapezoid";break;case"rect_left_inv_arrow":p="rect_left_inv_arrow";break;case"circle":p="circle";break;case"ellipse":p="ellipse";break;case"stadium":p="stadium";break;case"subroutine":p="subroutine";break;case"cylinder":p="cylinder";break;case"group":p="rect";break;case"doublecircle":p="doublecircle";break;default:p="rect"}const y=De(o?.styles||[]),T=o.label,v=o.size||{width:0,height:0,x:0,y:0};return{labelStyle:y.labelStyle,shape:p,labelText:T,rx:b,ry:b,class:f,style:y.style,id:o.id,directions:o.directions,width:v.width,height:v.height,x:v.x,y:v.y,positioned:d,intersect:void 0,type:o.type,padding:x??(((g=(n=se())==null?void 0:n.block)==null?void 0:g.padding)||0)}}async function nt(e,a,d){const c=fe(a,d,!1);if(c.type==="group")return;const n=await he(e,c),g=n.node().getBBox(),o=d.getBlock(c.id);o.size={width:g.width,height:g.height,x:0,y:0,node:n},d.setBlock(o),n.remove()}async function at(e,a,d){const c=fe(a,d,!0);d.getBlock(c.id).type!=="space"&&(await he(e,c),a.intersect=c?.intersect,Te(c))}async function ne(e,a,d,c){for(const n of a)await c(e,n,d),n.children&&await ne(e,n.children,d,c)}async function ot(e,a,d){await ne(e,a,d,nt)}async function lt(e,a,d){await ne(e,a,d,at)}async function ct(e,a,d,c,n){const g=new ze({multigraph:!0,compound:!0});g.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const o of d)o.size&&g.setNode(o.id,{width:o.size.width,height:o.size.height,intersect:o.intersect});for(const o of a)if(o.start&&o.end){const f=c.getBlock(o.start),b=c.getBlock(o.end);if(f?.size&&b?.size){const p=f.size,x=b.size,y=[{x:p.x,y:p.y},{x:p.x+(x.x-p.x)/2,y:p.y+(x.y-p.y)/2},{x:x.x,y:x.y}];await ke(e,{v:o.start,w:o.end,name:o.id},{...o,arrowTypeEnd:o.arrowTypeEnd,arrowTypeStart:o.arrowTypeStart,points:y,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",g,n),o.label&&(await Ie(e,{...o,label:o.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:o.arrowTypeEnd,arrowTypeStart:o.arrowTypeStart,points:y,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),await Oe({...o,x:y[1].x,y:y[1].y},{originalPath:y}))}}}const _=((le=(oe=_e())==null?void 0:oe.block)==null?void 0:le.padding)||8;function ut(e,a){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(a<0||!Number.isInteger(a))throw new Error("Position must be a non-negative integer."+a);if(e<0)return{px:a,py:0};if(e===1)return{px:0,py:a};const d=a%e,c=Math.floor(a/e);return{px:d,py:c}}const dt=e=>{let a=0,d=0;for(const c of e.children){const{width:n,height:g,x:o,y:f}=c.size||{width:0,height:0,x:0,y:0};S.debug("getMaxChildSize abc95 child:",c.id,"width:",n,"height:",g,"x:",o,"y:",f,c.type),c.type!=="space"&&(n>a&&(a=n/(e.widthInColumns||1)),g>d&&(d=g))}return{width:a,height:d}};function te(e,a,d=0,c=0){var n,g,o,f,b,p,x,y,T,v,N;S.debug("setBlockSizes abc95 (start)",e.id,(n=e?.size)==null?void 0:n.x,"block width =",e?.size,"sieblingWidth",d),(g=e?.size)!=null&&g.width||(e.size={width:d,height:c,x:0,y:0});let E=0,L=0;if(((o=e.children)==null?void 0:o.length)>0){for(const h of e.children)te(h,a);const A=dt(e);E=A.width,L=A.height,S.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",E,L);for(const h of e.children)h.size&&(S.debug(`abc95 Setting size of children of ${e.id} id=${h.id} ${E} ${L} ${h.size}`),h.size.width=E*(h.widthInColumns||1)+_*((h.widthInColumns||1)-1),h.size.height=L,h.size.x=0,h.size.y=0,S.debug(`abc95 updating size of ${e.id} children child:${h.id} maxWidth:${E} maxHeight:${L}`));for(const h of e.children)te(h,a,E,L);const k=e.columns||-1;let D=0;for(const h of e.children)D+=h.widthInColumns||1;let l=e.children.length;k>0&&k0?Math.min(e.children.length,k):e.children.length;if(h>0){const t=(i-h*_-_)/h;S.debug("abc95 (growing to fit) width",e.id,i,(x=e.size)==null?void 0:x.width,t);for(const m of e.children)m.size&&(m.size.width=t)}}e.size={width:i,height:u,x:0,y:0}}S.debug("setBlockSizes abc94 (done)",e.id,(y=e?.size)==null?void 0:y.x,(T=e?.size)==null?void 0:T.width,(v=e?.size)==null?void 0:v.y,(N=e?.size)==null?void 0:N.height)}function be(e,a){var d,c,n,g,o,f,b,p,x,y,T,v,N,E,L,A,k;S.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(d=e?.size)==null?void 0:d.x} y: ${(c=e?.size)==null?void 0:c.y} width: ${(n=e?.size)==null?void 0:n.width}`);const D=e.columns||-1;if(S.debug("layoutBlocks columns abc95",e.id,"=>",D,e),e.children&&e.children.length>0){const l=((o=(g=e?.children[0])==null?void 0:g.size)==null?void 0:o.width)||0,s=e.children.length*l+(e.children.length-1)*_;S.debug("widthOfChildren 88",s,"posX");let i=0;S.debug("abc91 block?.size?.x",e.id,(f=e?.size)==null?void 0:f.x);let u=(b=e?.size)!=null&&b.x?((p=e?.size)==null?void 0:p.x)+(-((x=e?.size)==null?void 0:x.width)/2||0):-_,h=0;for(const t of e.children){const m=e;if(!t.size)continue;const{width:r,height:R}=t.size,{px:Y,py:F}=ut(D,i);if(F!=h&&(h=F,u=(y=e?.size)!=null&&y.x?((T=e?.size)==null?void 0:T.x)+(-((v=e?.size)==null?void 0:v.width)/2||0):-_,S.debug("New row in layout for block",e.id," and child ",t.id,h)),S.debug(`abc89 layout blocks (child) id: ${t.id} Pos: ${i} (px, py) ${Y},${F} (${(N=m?.size)==null?void 0:N.x},${(E=m?.size)==null?void 0:E.y}) parent: ${m.id} width: ${r}${_}`),m.size){const C=r/2;t.size.x=u+_+C,S.debug(`abc91 layout blocks (calc) px, pyid:${t.id} startingPos=X${u} new startingPosX${t.size.x} ${C} padding=${_} width=${r} halfWidth=${C} => x:${t.size.x} y:${t.size.y} ${t.widthInColumns} (width * (child?.w || 1)) / 2 ${r*(t?.widthInColumns||1)/2}`),u=t.size.x+C,t.size.y=m.size.y-m.size.height/2+F*(R+_)+R/2+_,S.debug(`abc88 layout blocks (calc) px, pyid:${t.id}startingPosX${u}${_}${C}=>x:${t.size.x}y:${t.size.y}${t.widthInColumns}(width * (child?.w || 1)) / 2${r*(t?.widthInColumns||1)/2}`)}t.children&&be(t),i+=t?.widthInColumns||1,S.debug("abc88 columnsPos",t,i)}}S.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${(L=e?.size)==null?void 0:L.x} y: ${(A=e?.size)==null?void 0:A.y} width: ${(k=e?.size)==null?void 0:k.width}`)}function xe(e,{minX:a,minY:d,maxX:c,maxY:n}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:g,y:o,width:f,height:b}=e.size;g-f/2c&&(c=g+f/2),o+b/2>n&&(n=o+b/2)}if(e.children)for(const g of e.children)({minX:a,minY:d,maxX:c,maxY:n}=xe(g,{minX:a,minY:d,maxX:c,maxY:n}));return{minX:a,minY:d,maxX:c,maxY:n}}function ht(e){const a=e.getBlock("root");if(!a)return;te(a,e,0,0),be(a),S.debug("getBlocks",JSON.stringify(a,null,2));const{minX:d,minY:c,maxX:n,maxY:g}=xe(a),o=g-c,f=n-d;return{x:d,y:c,width:f,height:o}}const gt=function(e,a){return a.db.getClasses()},pt=async function(e,a,d,c){const{securityLevel:n,block:g}=se(),o=c.db;let f;n==="sandbox"&&(f=H("#i"+a));const b=n==="sandbox"?H(f.nodes()[0].contentDocument.body):H("body"),p=n==="sandbox"?b.select(`[id="${a}"]`):H(`[id="${a}"]`);Ne(p,["point","circle","cross"],c.type,a);const y=o.getBlocks(),T=o.getBlocksFlat(),v=o.getEdges(),N=p.insert("g").attr("class","block");await ot(N,y,o);const E=ht(o);if(await lt(N,y,o),await ct(N,v,T,o,a),E){const L=E,A=Math.max(1,Math.round(.125*(L.width/L.height))),k=L.height+A+10,D=L.width+10,{useMaxWidth:l}=g;ye(p,k,D,!!l),S.debug("Here Bounds",E,L),p.attr("viewBox",`${L.x-5} ${L.y-5} ${L.width+10} ${L.height+10}`)}Ce(Re)},ft={draw:pt,getClasses:gt},os={parser:Be,db:st,renderer:ft,styles:rt};export{os as diagram}; diff --git a/assets/c4Diagram-b947cdbb-rlOF_y7a.js b/assets/c4Diagram-b947cdbb-rlOF_y7a.js new file mode 100644 index 00000000000..012e48fc8bc --- /dev/null +++ b/assets/c4Diagram-b947cdbb-rlOF_y7a.js @@ -0,0 +1,10 @@ +import{s as Ce,g as we,a as Oe,b as Te,c as Dt,d as ue,e as Re,f as wt,h as Nt,l as le,i as De,w as Se,j as Kt,k as oe,m as Pe}from"./index.demo-_07sssxB.js";import{d as Me,g as Le}from"./svgDrawCommon-0ee1b4e9--nQsBbhr.js";import"./owner-4YVbz2PN.js";import"./index-qegmBwH1.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";var Yt=function(){var e=function(bt,_,x,m){for(x=x||{},m=bt.length;m--;x[bt[m]]=_);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],O=[1,30],R=[1,31],S=[1,32],L=[1,33],Y=[1,34],Q=[1,35],H=[1,36],q=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],it=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],lt=[1,51],ot=[1,52],ct=[1,53],ht=[1,54],ut=[1,55],dt=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],At=[14,42],Vt=[14,34,36,37,38,39,40,41,42,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],Ot=[12,14,34,36,37,38,39,40,41,42,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],v=[1,82],k=[1,83],A=[1,84],C=[1,85],w=[12,14,42],ne=[12,14,33,42],Pt=[12,14,33,42,76,77,79,80],mt=[12,33],zt=[34,36,37,38,39,40,41,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],Xt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(_,x,m,g,T,u,Tt){var y=u.length-1;switch(T){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let Et={};Et[u[y-1].trim()]=u[y].trim(),this.$=Et;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(At,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(At,[2,14]),e(Vt,[2,16],{12:[1,76]}),e(At,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:v,77:k,79:A,80:C},{35:86,75:81,76:v,77:k,79:A,80:C},{35:87,75:81,76:v,77:k,79:A,80:C},{35:88,75:81,76:v,77:k,79:A,80:C},{35:89,75:81,76:v,77:k,79:A,80:C},{35:90,75:81,76:v,77:k,79:A,80:C},{35:91,75:81,76:v,77:k,79:A,80:C},{35:92,75:81,76:v,77:k,79:A,80:C},{35:93,75:81,76:v,77:k,79:A,80:C},{35:94,75:81,76:v,77:k,79:A,80:C},{35:95,75:81,76:v,77:k,79:A,80:C},{35:96,75:81,76:v,77:k,79:A,80:C},{35:97,75:81,76:v,77:k,79:A,80:C},{35:98,75:81,76:v,77:k,79:A,80:C},{35:99,75:81,76:v,77:k,79:A,80:C},{35:100,75:81,76:v,77:k,79:A,80:C},{35:101,75:81,76:v,77:k,79:A,80:C},{35:102,75:81,76:v,77:k,79:A,80:C},{35:103,75:81,76:v,77:k,79:A,80:C},{35:104,75:81,76:v,77:k,79:A,80:C},e(w,[2,59]),{35:105,75:81,76:v,77:k,79:A,80:C},{35:106,75:81,76:v,77:k,79:A,80:C},{35:107,75:81,76:v,77:k,79:A,80:C},{35:108,75:81,76:v,77:k,79:A,80:C},{35:109,75:81,76:v,77:k,79:A,80:C},{35:110,75:81,76:v,77:k,79:A,80:C},{35:111,75:81,76:v,77:k,79:A,80:C},{35:112,75:81,76:v,77:k,79:A,80:C},{35:113,75:81,76:v,77:k,79:A,80:C},{35:114,75:81,76:v,77:k,79:A,80:C},{35:115,75:81,76:v,77:k,79:A,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:k,79:A,80:C},{35:120,75:81,76:v,77:k,79:A,80:C},{35:121,75:81,76:v,77:k,79:A,80:C},{35:122,75:81,76:v,77:k,79:A,80:C},{35:123,75:81,76:v,77:k,79:A,80:C},{35:124,75:81,76:v,77:k,79:A,80:C},{35:125,75:81,76:v,77:k,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(At,[2,15]),e(Vt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(At,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(Ot,[2,21]),e(Ot,[2,22]),e(w,[2,39]),e(ne,[2,71],{75:81,35:132,76:v,77:k,79:A,80:C}),e(Pt,[2,73]),{78:[1,133]},e(Pt,[2,75]),e(Pt,[2,76]),e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),e(w,[2,47]),e(w,[2,48]),e(w,[2,49]),e(w,[2,50]),e(w,[2,51]),e(w,[2,52]),e(w,[2,53]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(w,[2,60]),e(w,[2,61]),e(w,[2,62]),e(w,[2,63]),e(w,[2,64]),e(w,[2,65]),e(w,[2,66]),e(w,[2,67]),e(w,[2,68]),e(w,[2,69]),e(w,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(mt,[2,28]),e(mt,[2,29]),e(mt,[2,30]),e(mt,[2,31]),e(mt,[2,32]),e(mt,[2,33]),e(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Vt,[2,18]),e(At,[2,38]),e(ne,[2,72]),e(Pt,[2,74]),e(w,[2,24]),e(w,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(_,x){if(x.recoverable)this.trace(_);else{var m=new Error(_);throw m.hash=x,m}},parse:function(_){var x=this,m=[0],g=[],T=[null],u=[],Tt=this.table,y="",Et=0,se=0,Ee=2,ae=1,ve=u.slice.call(arguments,1),D=Object.create(this.lexer),vt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(vt.yy[Qt]=this.yy[Qt]);D.setInput(_,vt.yy),vt.yy.lexer=D,vt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;u.push(Ht);var ke=D.options&&D.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(){var X;return X=g.pop()||D.lex()||ae,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,kt,N,qt,Ct={},Mt,z,re,Lt;;){if(kt=m[m.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((M===null||typeof M>"u")&&(M=Ae()),N=Tt[kt]&&Tt[kt][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in Tt[kt])this.terminals_[Mt]&&Mt>Ee&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`: +`+D.showPosition()+` +Expecting `+Lt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Gt="Parse error on line "+(Et+1)+": Unexpected "+(M==ae?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Gt,{text:D.match,token:this.terminals_[M]||M,line:D.yylineno,loc:Ht,expected:Lt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+M);switch(N[0]){case 1:m.push(M),T.push(D.yytext),u.push(D.yylloc),m.push(N[1]),M=null,se=D.yyleng,y=D.yytext,Et=D.yylineno,Ht=D.yylloc;break;case 2:if(z=this.productions_[N[1]][1],Ct.$=T[T.length-z],Ct._$={first_line:u[u.length-(z||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(z||1)].first_column,last_column:u[u.length-1].last_column},ke&&(Ct._$.range=[u[u.length-(z||1)].range[0],u[u.length-1].range[1]]),qt=this.performAction.apply(Ct,[y,se,Et,vt.yy,N[1],T,u].concat(ve)),typeof qt<"u")return qt;z&&(m=m.slice(0,-1*z*2),T=T.slice(0,-1*z),u=u.slice(0,-1*z)),m.push(this.productions_[N[1]][0]),T.push(Ct.$),u.push(Ct._$),re=Tt[m[m.length-2]][m[m.length-1]],m.push(re);break;case 3:return!0}}return!0}},me=function(){var bt={EOF:1,parseError:function(x,m){if(this.yy.parser)this.yy.parser.parseError(x,m);else throw new Error(x)},setInput:function(_,x){return this.yy=x||this.yy||{},this._input=_,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var x=_.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},unput:function(_){var x=_.length,m=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===g.length?this.yylloc.first_column:0)+g[g.length-m.length].length-m[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(_){this.unput(this.match.slice(_))},pastInput:function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _=this.pastInput(),x=new Array(_.length+1).join("-");return _+this.upcomingInput()+` +`+x+"^"},test_match:function(_,x){var m,g,T;if(this.options.backtrack_lexer&&(T={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(T.yylloc.range=this.yylloc.range.slice(0))),g=_[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_[0].length),this.matched+=_[0],m=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var u in T)this[u]=T[u];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,x,m,g;this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),u=0;ux[0].length)){if(x=m,g=u,this.options.backtrack_lexer){if(_=this.test_match(m,T[u]),_!==!1)return _;if(this._backtrack){x=!1;continue}else return!1}else if(!this.options.flex)break}return x?(_=this.test_match(x,T[g]),_!==!1?_:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var x=this.next();return x||this.lex()},begin:function(x){this.conditionStack.push(x)},popState:function(){var x=this.conditionStack.length-1;return x>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(x){return x=this.conditionStack.length-1-Math.abs(x||0),x>=0?this.conditionStack[x]:"INITIAL"},pushState:function(x){this.begin(x)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(x,m,g,T){switch(g){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,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,81,82,83,84,85],inclusive:!0}}};return bt}();Xt.lexer=me;function Wt(){this.yy={}}return Wt.prototype=Xt,Xt.Parser=Wt,new Wt}();Yt.parser=Yt;const Ne=Yt;let U=[],_t=[""],P="global",j="",V=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],St=[],te="",ee=!1,It=4,jt=2;var de;const Be=function(){return de},Ye=function(e){de=ue(e,Dt())},Ie=function(e,t,a,o,l,i,s,r,n){if(e==null||t===void 0||t===null||a===void 0||a===null||o===void 0||o===null)return;let h={};const f=St.find(d=>d.from===t&&d.to===a);if(f?h=f:St.push(h),h.type=e,h.from=t,h.to=a,h.label={text:o},l==null)h.techn={text:""};else if(typeof l=="object"){let[d,p]=Object.entries(l)[0];h[d]={text:p}}else h.techn={text:l};if(i==null)h.descr={text:""};else if(typeof i=="object"){let[d,p]=Object.entries(i)[0];h[d]={text:p}}else h.descr={text:i};if(typeof s=="object"){let[d,p]=Object.entries(s)[0];h[d]=p}else h.sprite=s;if(typeof r=="object"){let[d,p]=Object.entries(r)[0];h[d]=p}else h.tags=r;if(typeof n=="object"){let[d,p]=Object.entries(n)[0];h[d]=p}else h.link=n;h.wrap=xt()},je=function(e,t,a,o,l,i,s){if(t===null||a===null)return;let r={};const n=U.find(h=>h.alias===t);if(n&&t===n.alias?r=n:(r.alias=t,U.push(r)),a==null?r.label={text:""}:r.label={text:a},o==null)r.descr={text:""};else if(typeof o=="object"){let[h,f]=Object.entries(o)[0];r[h]={text:f}}else r.descr={text:o};if(typeof l=="object"){let[h,f]=Object.entries(l)[0];r[h]=f}else r.sprite=l;if(typeof i=="object"){let[h,f]=Object.entries(i)[0];r[h]=f}else r.tags=i;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];r[h]=f}else r.link=s;r.typeC4Shape={text:e},r.parentBoundary=P,r.wrap=xt()},Ue=function(e,t,a,o,l,i,s,r){if(t===null||a===null)return;let n={};const h=U.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,U.push(n)),a==null?n.label={text:""}:n.label={text:a},o==null)n.techn={text:""};else if(typeof o=="object"){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.techn={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if(typeof i=="object"){let[f,d]=Object.entries(i)[0];n[f]=d}else n.sprite=i;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if(typeof r=="object"){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.wrap=xt(),n.typeC4Shape={text:e},n.parentBoundary=P},Fe=function(e,t,a,o,l,i,s,r){if(t===null||a===null)return;let n={};const h=U.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,U.push(n)),a==null?n.label={text:""}:n.label={text:a},o==null)n.techn={text:""};else if(typeof o=="object"){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.techn={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if(typeof i=="object"){let[f,d]=Object.entries(i)[0];n[f]=d}else n.sprite=i;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if(typeof r=="object"){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.wrap=xt(),n.typeC4Shape={text:e},n.parentBoundary=P},Ve=function(e,t,a,o,l){if(e===null||t===null)return;let i={};const s=V.find(r=>r.alias===e);if(s&&e===s.alias?i=s:(i.alias=e,V.push(i)),t==null?i.label={text:""}:i.label={text:t},a==null)i.type={text:"system"};else if(typeof a=="object"){let[r,n]=Object.entries(a)[0];i[r]={text:n}}else i.type={text:a};if(typeof o=="object"){let[r,n]=Object.entries(o)[0];i[r]=n}else i.tags=o;if(typeof l=="object"){let[r,n]=Object.entries(l)[0];i[r]=n}else i.link=l;i.parentBoundary=P,i.wrap=xt(),j=P,P=e,_t.push(j)},ze=function(e,t,a,o,l){if(e===null||t===null)return;let i={};const s=V.find(r=>r.alias===e);if(s&&e===s.alias?i=s:(i.alias=e,V.push(i)),t==null?i.label={text:""}:i.label={text:t},a==null)i.type={text:"container"};else if(typeof a=="object"){let[r,n]=Object.entries(a)[0];i[r]={text:n}}else i.type={text:a};if(typeof o=="object"){let[r,n]=Object.entries(o)[0];i[r]=n}else i.tags=o;if(typeof l=="object"){let[r,n]=Object.entries(l)[0];i[r]=n}else i.link=l;i.parentBoundary=P,i.wrap=xt(),j=P,P=e,_t.push(j)},Xe=function(e,t,a,o,l,i,s,r){if(t===null||a===null)return;let n={};const h=V.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,V.push(n)),a==null?n.label={text:""}:n.label={text:a},o==null)n.type={text:"node"};else if(typeof o=="object"){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.type={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if(typeof s=="object"){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if(typeof r=="object"){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.nodeType=e,n.parentBoundary=P,n.wrap=xt(),j=P,P=t,_t.push(j)},We=function(){P=j,_t.pop(),j=_t.pop(),_t.push(j)},Qe=function(e,t,a,o,l,i,s,r,n,h,f){let d=U.find(p=>p.alias===t);if(!(d===void 0&&(d=V.find(p=>p.alias===t),d===void 0))){if(a!=null)if(typeof a=="object"){let[p,E]=Object.entries(a)[0];d[p]=E}else d.bgColor=a;if(o!=null)if(typeof o=="object"){let[p,E]=Object.entries(o)[0];d[p]=E}else d.fontColor=o;if(l!=null)if(typeof l=="object"){let[p,E]=Object.entries(l)[0];d[p]=E}else d.borderColor=l;if(i!=null)if(typeof i=="object"){let[p,E]=Object.entries(i)[0];d[p]=E}else d.shadowing=i;if(s!=null)if(typeof s=="object"){let[p,E]=Object.entries(s)[0];d[p]=E}else d.shape=s;if(r!=null)if(typeof r=="object"){let[p,E]=Object.entries(r)[0];d[p]=E}else d.sprite=r;if(n!=null)if(typeof n=="object"){let[p,E]=Object.entries(n)[0];d[p]=E}else d.techn=n;if(h!=null)if(typeof h=="object"){let[p,E]=Object.entries(h)[0];d[p]=E}else d.legendText=h;if(f!=null)if(typeof f=="object"){let[p,E]=Object.entries(f)[0];d[p]=E}else d.legendSprite=f}},He=function(e,t,a,o,l,i,s){const r=St.find(n=>n.from===t&&n.to===a);if(r!==void 0){if(o!=null)if(typeof o=="object"){let[n,h]=Object.entries(o)[0];r[n]=h}else r.textColor=o;if(l!=null)if(typeof l=="object"){let[n,h]=Object.entries(l)[0];r[n]=h}else r.lineColor=l;if(i!=null)if(typeof i=="object"){let[n,h]=Object.entries(i)[0];r[n]=parseInt(h)}else r.offsetX=parseInt(i);if(s!=null)if(typeof s=="object"){let[n,h]=Object.entries(s)[0];r[n]=parseInt(h)}else r.offsetY=parseInt(s)}},qe=function(e,t,a){let o=It,l=jt;if(typeof t=="object"){const i=Object.values(t)[0];o=parseInt(i)}else o=parseInt(t);if(typeof a=="object"){const i=Object.values(a)[0];l=parseInt(i)}else l=parseInt(a);o>=1&&(It=o),l>=1&&(jt=l)},Ge=function(){return It},Ke=function(){return jt},Je=function(){return P},Ze=function(){return j},fe=function(e){return e==null?U:U.filter(t=>t.parentBoundary===e)},$e=function(e){return U.find(t=>t.alias===e)},t0=function(e){return Object.keys(fe(e))},e0=function(e){return e==null?V:V.filter(t=>t.parentBoundary===e)},i0=function(){return St},n0=function(){return te},s0=function(e){ee=e},xt=function(){return ee},a0=function(){U=[],V=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],j="",P="global",_t=[""],St=[],_t=[""],te="",ee=!1,It=4,jt=2},r0={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},l0={FILLED:0,OPEN:1},o0={LEFTOF:0,RIGHTOF:1,OVER:2},c0=function(e){te=ue(e,Dt())},Jt={addPersonOrSystem:je,addPersonOrSystemBoundary:Ve,addContainer:Ue,addContainerBoundary:ze,addComponent:Fe,addDeploymentNode:Xe,popBoundaryParseStack:We,addRel:Ie,updateElStyle:Qe,updateRelStyle:He,updateLayoutConfig:qe,autoWrap:xt,setWrap:s0,getC4ShapeArray:fe,getC4Shape:$e,getC4ShapeKeys:t0,getBoundarys:e0,getCurrentBoundaryParse:Je,getParentBoundaryParse:Ze,getRels:i0,getTitle:n0,getC4Type:Be,getC4ShapeInRow:Ge,getC4BoundaryInRow:Ke,setAccTitle:Ce,getAccTitle:we,getAccDescription:Oe,setAccDescription:Te,getConfig:()=>Dt().c4,clear:a0,LINETYPE:r0,ARROWTYPE:l0,PLACEMENT:o0,setTitle:c0,setC4Type:Ye},ie=function(e,t){return Me(e,t)},pe=function(e,t,a,o,l,i){const s=e.append("image");s.attr("width",t),s.attr("height",a),s.attr("x",o),s.attr("y",l);let r=i.startsWith("data:image/png;base64")?i:Pe.sanitizeUrl(i);s.attr("xlink:href",r)},h0=(e,t,a)=>{const o=e.append("g");let l=0;for(let i of t){let s=i.textColor?i.textColor:"#444444",r=i.lineColor?i.lineColor:"#444444",n=i.offsetX?parseInt(i.offsetX):0,h=i.offsetY?parseInt(i.offsetY):0,f="";if(l===0){let p=o.append("line");p.attr("x1",i.startPoint.x),p.attr("y1",i.startPoint.y),p.attr("x2",i.endPoint.x),p.attr("y2",i.endPoint.y),p.attr("stroke-width","1"),p.attr("stroke",r),p.style("fill","none"),i.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(i.type==="birel"||i.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)"),l=-1}else{let p=o.append("path");p.attr("fill","none").attr("stroke-width","1").attr("stroke",r).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",i.startPoint.x).replaceAll("starty",i.startPoint.y).replaceAll("controlx",i.startPoint.x+(i.endPoint.x-i.startPoint.x)/2-(i.endPoint.x-i.startPoint.x)/4).replaceAll("controly",i.startPoint.y+(i.endPoint.y-i.startPoint.y)/2).replaceAll("stopx",i.endPoint.x).replaceAll("stopy",i.endPoint.y)),i.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(i.type==="birel"||i.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)")}let d=a.messageFont();W(a)(i.label.text,o,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+n,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+h,i.label.width,i.label.height,{fill:s},d),i.techn&&i.techn.text!==""&&(d=a.messageFont(),W(a)("["+i.techn.text+"]",o,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+n,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+a.messageFontSize+5+h,Math.max(i.label.width,i.techn.width),i.techn.height,{fill:s,"font-style":"italic"},d))}},u0=function(e,t,a){const o=e.append("g");let l=t.bgColor?t.bgColor:"none",i=t.borderColor?t.borderColor:"#444444",s=t.fontColor?t.fontColor:"black",r={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(r={"stroke-width":1});let n={x:t.x,y:t.y,fill:l,stroke:i,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:r};ie(o,n);let h=a.boundaryFont();h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=s,W(a)(t.label.text,o,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},h),t.type&&t.type.text!==""&&(h=a.boundaryFont(),h.fontColor=s,W(a)(t.type.text,o,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},h)),t.descr&&t.descr.text!==""&&(h=a.boundaryFont(),h.fontSize=h.fontSize-2,h.fontColor=s,W(a)(t.descr.text,o,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},h))},d0=function(e,t,a){var o;let l=t.bgColor?t.bgColor:a[t.typeC4Shape.text+"_bg_color"],i=t.borderColor?t.borderColor:a[t.typeC4Shape.text+"_border_color"],s=t.fontColor?t.fontColor:"#FFFFFF",r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const n=e.append("g");n.attr("class","person-man");const h=Le();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":h.x=t.x,h.y=t.y,h.fill=l,h.width=t.width,h.height=t.height,h.stroke=i,h.rx=2.5,h.ry=2.5,h.attrs={"stroke-width":.5},ie(n,h);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":n.append("path").attr("fill",l).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),n.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":n.append("path").attr("fill",l).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),n.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let f=E0(a,t.typeC4Shape.text);switch(n.append("text").attr("fill",s).attr("font-family",f.fontFamily).attr("font-size",f.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":pe(n,48,48,t.x+t.width/2-24,t.y+t.image.Y,r);break}let d=a[t.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=s,W(a)(t.label.text,n,t.x,t.y+t.label.Y,t.width,t.height,{fill:s},d),d=a[t.typeC4Shape.text+"Font"](),d.fontColor=s,t.techn&&((o=t.techn)==null?void 0:o.text)!==""?W(a)(t.techn.text,n,t.x,t.y+t.techn.Y,t.width,t.height,{fill:s,"font-style":"italic"},d):t.type&&t.type.text!==""&&W(a)(t.type.text,n,t.x,t.y+t.type.Y,t.width,t.height,{fill:s,"font-style":"italic"},d),t.descr&&t.descr.text!==""&&(d=a.personFont(),d.fontColor=s,W(a)(t.descr.text,n,t.x,t.y+t.descr.Y,t.width,t.height,{fill:s},d)),t.height},f0=function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},p0=function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},y0=function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},g0=function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},b0=function(e){e.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},_0=function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},x0=function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},m0=function(e){const a=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);a.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),a.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},E0=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),W=function(){function e(l,i,s,r,n,h,f){const d=i.append("text").attr("x",s+n/2).attr("y",r+h/2+5).style("text-anchor","middle").text(l);o(d,f)}function t(l,i,s,r,n,h,f,d){const{fontSize:p,fontFamily:E,fontWeight:O}=d,R=l.split(Kt.lineBreakRegex);for(let S=0;S=this.data.widthLimit||o>=this.data.widthLimit||this.nextData.cnt>ye)&&(a=this.nextData.startx+t.margin+b.nextLinePaddingX,l=this.nextData.stopy+t.margin*2,this.nextData.stopx=o=a+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=l+t.height,this.nextData.cnt=1),t.x=a,t.y=l,this.updateVal(this.data,"startx",a,Math.min),this.updateVal(this.data,"starty",l,Math.min),this.updateVal(this.data,"stopx",o,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",a,Math.min),this.updateVal(this.nextData,"starty",l,Math.min),this.updateVal(this.nextData,"stopx",o,Math.max),this.updateVal(this.nextData,"stopy",i,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},$t(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}}const $t=function(e){Re(b,e),e.fontFamily&&(b.personFontFamily=b.systemFontFamily=b.messageFontFamily=e.fontFamily),e.fontSize&&(b.personFontSize=b.systemFontSize=b.messageFontSize=e.fontSize),e.fontWeight&&(b.personFontWeight=b.systemFontWeight=b.messageFontWeight=e.fontWeight)},Rt=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),Bt=e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),v0=e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight});function I(e,t,a,o,l){if(!t[e].width)if(a)t[e].text=Se(t[e].text,l,o),t[e].textLines=t[e].text.split(Kt.lineBreakRegex).length,t[e].width=l,t[e].height=oe(t[e].text,o);else{let i=t[e].text.split(Kt.lineBreakRegex);t[e].textLines=i.length;let s=0;t[e].height=0,t[e].width=0;for(const r of i)t[e].width=Math.max(wt(r,o),t[e].width),s=oe(r,o),t[e].height=t[e].height+s}}const be=function(e,t,a){t.x=a.data.startx,t.y=a.data.starty,t.width=a.data.stopx-a.data.startx,t.height=a.data.stopy-a.data.starty,t.label.y=b.c4ShapeMargin-35;let o=t.wrap&&b.wrap,l=Bt(b);l.fontSize=l.fontSize+2,l.fontWeight="bold";let i=wt(t.label.text,l);I("label",t,o,l,i),F.drawBoundary(e,t,b)},_e=function(e,t,a,o){let l=0;for(const i of o){l=0;const s=a[i];let r=Rt(b,s.typeC4Shape.text);switch(r.fontSize=r.fontSize-2,s.typeC4Shape.width=wt("«"+s.typeC4Shape.text+"»",r),s.typeC4Shape.height=r.fontSize+2,s.typeC4Shape.Y=b.c4ShapePadding,l=s.typeC4Shape.Y+s.typeC4Shape.height-4,s.image={width:0,height:0,Y:0},s.typeC4Shape.text){case"person":case"external_person":s.image.width=48,s.image.height=48,s.image.Y=l,l=s.image.Y+s.image.height;break}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=l,l=s.image.Y+s.image.height);let n=s.wrap&&b.wrap,h=b.width-b.c4ShapePadding*2,f=Rt(b,s.typeC4Shape.text);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",I("label",s,n,f,h),s.label.Y=l+8,l=s.label.Y+s.label.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let E=Rt(b,s.typeC4Shape.text);I("type",s,n,E,h),s.type.Y=l+5,l=s.type.Y+s.type.height}else if(s.techn&&s.techn.text!==""){s.techn.text="["+s.techn.text+"]";let E=Rt(b,s.techn.text);I("techn",s,n,E,h),s.techn.Y=l+5,l=s.techn.Y+s.techn.height}let d=l,p=s.label.width;if(s.descr&&s.descr.text!==""){let E=Rt(b,s.typeC4Shape.text);I("descr",s,n,E,h),s.descr.Y=l+20,l=s.descr.Y+s.descr.height,p=Math.max(s.label.width,s.descr.width),d=l-s.descr.textLines*5}p=p+b.c4ShapePadding,s.width=Math.max(s.width||b.width,p,b.width),s.height=Math.max(s.height||b.height,d,b.height),s.margin=s.margin||b.c4ShapeMargin,e.insert(s),F.drawC4Shape(t,s,b)}e.bumpLastMargin(b.c4ShapeMargin)};class B{constructor(t,a){this.x=t,this.y=a}}let ce=function(e,t){let a=e.x,o=e.y,l=t.x,i=t.y,s=a+e.width/2,r=o+e.height/2,n=Math.abs(a-l),h=Math.abs(o-i),f=h/n,d=e.height/e.width,p=null;return o==i&&al?p=new B(a,r):a==l&&oi&&(p=new B(s,o)),a>l&&o=f?p=new B(a,r+f*e.width/2):p=new B(s-n/h*e.height/2,o+e.height):a=f?p=new B(a+e.width,r+f*e.width/2):p=new B(s+n/h*e.height/2,o+e.height):ai?d>=f?p=new B(a+e.width,r-f*e.width/2):p=new B(s+e.height/2*n/h,o):a>l&&o>i&&(d>=f?p=new B(a,r-e.width/2*f):p=new B(s-e.height/2*n/h,o)),p},k0=function(e,t){let a={x:0,y:0};a.x=t.x+t.width/2,a.y=t.y+t.height/2;let o=ce(e,a);a.x=e.x+e.width/2,a.y=e.y+e.height/2;let l=ce(t,a);return{startPoint:o,endPoint:l}};const A0=function(e,t,a,o){let l=0;for(let i of t){l=l+1;let s=i.wrap&&b.wrap,r=v0(b);o.db.getC4Type()==="C4Dynamic"&&(i.label.text=l+": "+i.label.text);let h=wt(i.label.text,r);I("label",i,s,r,h),i.techn&&i.techn.text!==""&&(h=wt(i.techn.text,r),I("techn",i,s,r,h)),i.descr&&i.descr.text!==""&&(h=wt(i.descr.text,r),I("descr",i,s,r,h));let f=a(i.from),d=a(i.to),p=k0(f,d);i.startPoint=p.startPoint,i.endPoint=p.endPoint}F.drawRels(e,t,b)};function xe(e,t,a,o,l){let i=new ge(l);i.data.widthLimit=a.data.widthLimit/Math.min(Zt,o.length);for(let[s,r]of o.entries()){let n=0;r.image={width:0,height:0,Y:0},r.sprite&&(r.image.width=48,r.image.height=48,r.image.Y=n,n=r.image.Y+r.image.height);let h=r.wrap&&b.wrap,f=Bt(b);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",I("label",r,h,f,i.data.widthLimit),r.label.Y=n+8,n=r.label.Y+r.label.height,r.type&&r.type.text!==""){r.type.text="["+r.type.text+"]";let O=Bt(b);I("type",r,h,O,i.data.widthLimit),r.type.Y=n+5,n=r.type.Y+r.type.height}if(r.descr&&r.descr.text!==""){let O=Bt(b);O.fontSize=O.fontSize-2,I("descr",r,h,O,i.data.widthLimit),r.descr.Y=n+20,n=r.descr.Y+r.descr.height}if(s==0||s%Zt===0){let O=a.data.startx+b.diagramMarginX,R=a.data.stopy+b.diagramMarginY+n;i.setData(O,O,R,R)}else{let O=i.data.stopx!==i.data.startx?i.data.stopx+b.diagramMarginX:i.data.startx,R=i.data.starty;i.setData(O,O,R,R)}i.name=r.alias;let d=l.db.getC4ShapeArray(r.alias),p=l.db.getC4ShapeKeys(r.alias);p.length>0&&_e(i,e,d,p),t=r.alias;let E=l.db.getBoundarys(t);E.length>0&&xe(e,t,i,E,l),r.alias!=="global"&&be(e,r,i),a.data.stopy=Math.max(i.data.stopy+b.c4ShapeMargin,a.data.stopy),a.data.stopx=Math.max(i.data.stopx+b.c4ShapeMargin,a.data.stopx),Ut=Math.max(Ut,a.data.stopx),Ft=Math.max(Ft,a.data.stopy)}}const C0=function(e,t,a,o){b=Dt().c4;const l=Dt().securityLevel;let i;l==="sandbox"&&(i=Nt("#i"+t));const s=l==="sandbox"?Nt(i.nodes()[0].contentDocument.body):Nt("body");let r=o.db;o.db.setWrap(b.wrap),ye=r.getC4ShapeInRow(),Zt=r.getC4BoundaryInRow(),le.debug(`C:${JSON.stringify(b,null,2)}`);const n=l==="sandbox"?s.select(`[id="${t}"]`):Nt(`[id="${t}"]`);F.insertComputerIcon(n),F.insertDatabaseIcon(n),F.insertClockIcon(n);let h=new ge(o);h.setData(b.diagramMarginX,b.diagramMarginX,b.diagramMarginY,b.diagramMarginY),h.data.widthLimit=screen.availWidth,Ut=b.diagramMarginX,Ft=b.diagramMarginY;const f=o.db.getTitle();let d=o.db.getBoundarys("");xe(n,"",h,d,o),F.insertArrowHead(n),F.insertArrowEnd(n),F.insertArrowCrossHead(n),F.insertArrowFilledHead(n),A0(n,o.db.getRels(),o.db.getC4Shape,o),h.data.stopx=Ut,h.data.stopy=Ft;const p=h.data;let O=p.stopy-p.starty+2*b.diagramMarginY;const S=p.stopx-p.startx+2*b.diagramMarginX;f&&n.append("text").text(f).attr("x",(p.stopx-p.startx)/2-4*b.diagramMarginX).attr("y",p.starty+b.diagramMarginY),De(n,O,S,b.useMaxWidth);const L=f?60:0;n.attr("viewBox",p.startx-b.diagramMarginX+" -"+(b.diagramMarginY+L)+" "+S+" "+(O+L)),le.debug("models:",p)},he={drawPersonOrSystemArray:_e,drawBoundary:be,setConf:$t,draw:C0},w0=e=>`.person { + stroke: ${e.personBorder}; + fill: ${e.personBkg}; + } +`,O0=w0,c1={parser:Ne,db:Jt,renderer:he,styles:O0,init:({c4:e,wrap:t})=>{he.setConf(e),Jt.setWrap(t)}};export{c1 as diagram}; diff --git a/assets/channel-d4IHw_DV.js b/assets/channel-d4IHw_DV.js new file mode 100644 index 00000000000..98c1a8c2c9c --- /dev/null +++ b/assets/channel-d4IHw_DV.js @@ -0,0 +1 @@ +import{U as a,J as n}from"./index.demo-_07sssxB.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c}; diff --git a/assets/classDiagram-35230388-puu_M8n9.js b/assets/classDiagram-35230388-puu_M8n9.js new file mode 100644 index 00000000000..eed2c55a393 --- /dev/null +++ b/assets/classDiagram-35230388-puu_M8n9.js @@ -0,0 +1,2 @@ +import{p as A,d as S,s as G}from"./styles-6860f46c-1cDOle_6.js";import{c as v,l as m,h as B,i as W,A as $,u as M,B as I}from"./index.demo-_07sssxB.js";import{G as O}from"./graph-4EnB4jqL.js";import{l as P}from"./layout-KoXfeBJF.js";import"./owner-4YVbz2PN.js";import{l as X}from"./line-abqtiQB-.js";import"./index-qegmBwH1.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";let H=0;const Y=function(a,r,t,s,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};r.points=r.points.filter(e=>!Number.isNaN(e.y));const o=r.points,c=X().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=a.append("path").attr("d",c(o)).attr("id","edge"+H).attr("class","relation");let i="";s.arrowMarkerAbsolute&&(i=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,i=i.replace(/\(/g,"\\("),i=i.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+i+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+i+"#"+g(t.relation.type2)+"End)");let u,h;const x=r.points.length;let b=M.calcLabelPosition(r.points);u=b.x,h=b.y;let y,f,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",r.points,r.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",r.points,r.points[x-1]);m.debug("cardinality_1_point "+JSON.stringify(e)),m.debug("cardinality_2_point "+JSON.stringify(d)),y=e.x,f=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=a.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",u).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-s.padding/2).attr("y",l.y-s.padding/2).attr("width",l.width+s.padding).attr("height",l.height+s.padding)}m.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&a.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",y).attr("y",f).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&a.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},J=function(a,r,t,s){m.debug("Rendering class ",r,t);const p=r.id,g={id:p,label:r.id,width:0,height:0},o=a.append("g").attr("id",s.db.lookUpDomId(p)).attr("class","classGroup");let c;r.link?c=o.append("svg:a").attr("xlink:href",r.link).attr("target",r.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;r.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let i=C(r);const u=c.append("tspan").text(i).attr("class","title");n||u.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,y;if(r.members.length>0){x=o.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=o.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(r.methods.length>0){y=o.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=o.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.methods.forEach(function(l){_(d,l,n,t),n=!1})}const f=o.node().getBBox();var w=" ";r.cssClasses.length>0&&(w=w+r.cssClasses.join(" "));const e=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",f.width+2*t.padding).attr("height",f.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),r.tooltip&&c.insert("title").text(r.tooltip),x&&x.attr("x2",e),y&&y.attr("x2",e),g.width=e,g.height=f.height+t.padding+.5*t.dividerMargin,g},C=function(a){let r=a.id;return a.type&&(r+="<"+I(a.type)+">"),r},Z=function(a,r,t,s){m.debug("Rendering note ",r,t);const p=r.id,g={id:p,text:r.text,width:0,height:0},o=a.append("g").attr("id",p).attr("class","classGroup");let c=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${r.text}"`).split(` +`);n.forEach(function(x){m.debug(`Adding line: ${x}`),c.append("tspan").text(x).attr("class","title").attr("dy",t.textHeight)});const i=o.node().getBBox(),h=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",i.width+2*t.padding).attr("height",i.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return c.node().childNodes.forEach(function(x){x.setAttribute("x",(h-x.getBBox().width)/2)}),g.width=h,g.height=i.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,g},_=function(a,r,t,s){const{displayText:p,cssStyle:g}=r.getDisplayDetails(),o=a.append("tspan").attr("x",s.padding).text(p);g!==""&&o.attr("style",r.cssStyle),t||o.attr("dy",s.textHeight)},N={getClassTitleString:C,drawClass:J,drawEdge:Y,drawNote:Z};let T={};const E=20,L=function(a){const r=Object.entries(T).find(t=>t[1].label===a);if(r)return r[0]},R=function(a){a.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),a.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),a.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},F=function(a,r,t,s){const p=v().class;T={},m.info("Rendering diagram "+a);const g=v().securityLevel;let o;g==="sandbox"&&(o=B("#i"+r));const c=g==="sandbox"?B(o.nodes()[0].contentDocument.body):B("body"),n=c.select(`[id='${r}']`);R(n);const i=new O({multigraph:!0});i.setGraph({isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}});const u=s.db.getClasses(),h=Object.keys(u);for(const e of h){const d=u[e],l=N.drawClass(n,d,p,s);T[l.id]=l,i.setNode(l.id,l),m.info("Org height: "+l.height)}s.db.getRelations().forEach(function(e){m.info("tjoho"+L(e.id1)+L(e.id2)+JSON.stringify(e)),i.setEdge(L(e.id1),L(e.id2),{relation:e},e.title||"DEFAULT")}),s.db.getNotes().forEach(function(e){m.debug(`Adding note: ${JSON.stringify(e)}`);const d=N.drawNote(n,e,p,s);T[d.id]=d,i.setNode(d.id,d),e.class&&e.class in u&&i.setEdge(e.id,L(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),P(i),i.nodes().forEach(function(e){e!==void 0&&i.node(e)!==void 0&&(m.debug("Node "+e+": "+JSON.stringify(i.node(e))),c.select("#"+(s.db.lookUpDomId(e)||e)).attr("transform","translate("+(i.node(e).x-i.node(e).width/2)+","+(i.node(e).y-i.node(e).height/2)+" )"))}),i.edges().forEach(function(e){e!==void 0&&i.edge(e)!==void 0&&(m.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(i.edge(e))),N.drawEdge(n,i.edge(e),i.edge(e).relation,p,s))});const y=n.node().getBBox(),f=y.width+E*2,w=y.height+E*2;W(n,w,f,p.useMaxWidth);const k=`${y.x-E} ${y.y-E} ${f} ${w}`;m.debug(`viewBox ${k}`),n.attr("viewBox",k)},U={draw:F},At={parser:A,db:S,renderer:U,styles:G,init:a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute,S.clear()}};export{At as diagram}; diff --git a/assets/classDiagram-v2-412acd34-LCQBBOMj.js b/assets/classDiagram-v2-412acd34-LCQBBOMj.js new file mode 100644 index 00000000000..4df8352d9a7 --- /dev/null +++ b/assets/classDiagram-v2-412acd34-LCQBBOMj.js @@ -0,0 +1,2 @@ +import{p as M,d as _,s as R}from"./styles-6860f46c-1cDOle_6.js";import{l as d,c,h as w,u as B,C as G,D,E,F as C,j as A}from"./index.demo-_07sssxB.js";import{G as z}from"./graph-4EnB4jqL.js";import{r as F}from"./index-8fae9850-Po9R6XSU.js";import"./owner-4YVbz2PN.js";import"./layout-KoXfeBJF.js";import"./index-qegmBwH1.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";import"./clone-LNmcdPHq.js";import"./edges-d417c7a0-uR8Ha2yN.js";import"./createText-423428c9-gj--wZwo.js";import"./line-abqtiQB-.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";const S=s=>A.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const P=function(s,e,m,i){const t=Object.keys(s);d.info("keys:",t),d.info(s),t.forEach(function(a){var o,r;const l=s[a],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};e.setNode(l.id,p),$(l.classes,e,m,i,l.id),d.info("setNode",p)})},$=function(s,e,m,i,t){const a=Object.keys(s);d.info("keys:",a),d.info(s),a.filter(o=>s[o].parent==t).forEach(function(o){var r,l;const n=s[o],p=n.cssClasses.join(" "),y=D(n.styles),u=n.label??n.id,b=0,f={labelStyle:y.labelStyle,shape:"class_box",labelText:S(u),classData:n,rx:b,ry:b,class:p,style:y.style,id:n.id,domId:n.domId,tooltip:i.db.getTooltip(n.id,t)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};e.setNode(n.id,f),t&&e.setParent(n.id,t),d.info("setNode",f)})},q=function(s,e,m,i){d.info(s),s.forEach(function(t,a){var o,r;const l=t,n="",p={labelStyle:"",style:""},y=l.text,u=0,h={labelStyle:p.labelStyle,shape:"note",labelText:S(y),noteData:l,rx:u,ry:u,class:n,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(e.setNode(l.id,h),d.info("setNode",h),!l.class||!(l.class in i))return;const f=m+a,x={id:`edgeNote${f}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,C)};e.setEdge(l.id,l.class,x,f)})},H=function(s,e){const m=c().flowchart;let i=0;s.forEach(function(t){var a;i++;const o={classes:"relation",pattern:t.relation.lineType==1?"dashed":"solid",id:`id_${t.id1}_${t.id2}_${i}`,arrowhead:t.type==="arrow_open"?"none":"normal",startLabelRight:t.relationTitle1==="none"?"":t.relationTitle1,endLabelLeft:t.relationTitle2==="none"?"":t.relationTitle2,arrowTypeStart:N(t.relation.type1),arrowTypeEnd:N(t.relation.type2),style:"fill:none",labelStyle:"",curve:E(m?.curve,C)};if(d.info(o,t),t.style!==void 0){const r=D(t.style);o.style=r.style,o.labelStyle=r.labelStyle}t.text=t.title,t.text===void 0?t.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((a=c().flowchart)==null?void 0:a.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label=''+t.text+""):(o.labelType="text",o.label=t.text.replace(A.lineBreakRegex,` +`),t.style===void 0&&(o.style=o.style||"stroke: #333; stroke-width: 1.5px;fill:none"),o.labelStyle=o.labelStyle.replace("color:","fill:"))),e.setEdge(t.id1,t.id2,o,i)})},V=function(s){k={...k,...s}},W=async function(s,e,m,i){d.info("Drawing class - ",e);const t=c().flowchart??c().class,a=c().securityLevel;d.info("config:",t);const o=t?.nodeSpacing??50,r=t?.rankSpacing??50,l=new z({multigraph:!0,compound:!0}).setGraph({rankdir:i.db.getDirection(),nodesep:o,ranksep:r,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=i.db.getNamespaces(),p=i.db.getClasses(),y=i.db.getRelations(),u=i.db.getNotes();d.info(y),P(n,l,e,i),$(p,l,e,i),H(y,l),q(u,l,y.length+1,p);let b;a==="sandbox"&&(b=w("#i"+e));const h=a==="sandbox"?w(b.nodes()[0].contentDocument.body):w("body"),f=h.select(`[id="${e}"]`),x=h.select("#"+e+" g");if(await F(x,l,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",e),B.insertTitle(f,"classTitleText",t?.titleTopMargin??5,i.db.getDiagramTitle()),G(l,f,t?.diagramPadding,t?.useMaxWidth),!t?.htmlLabels){const T=a==="sandbox"?b.nodes()[0].contentDocument:document,I=T.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const g of I){const L=g.getBBox(),v=T.createElementNS("http://www.w3.org/2000/svg","rect");v.setAttribute("rx",0),v.setAttribute("ry",0),v.setAttribute("width",L.width),v.setAttribute("height",L.height),g.insertBefore(v,g.firstChild)}}};function N(s){let e;switch(s){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}const J={setConf:V,draw:W},Bt={parser:M,db:_,renderer:J,styles:R,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,_.clear()}};export{Bt as diagram}; diff --git a/assets/clone-LNmcdPHq.js b/assets/clone-LNmcdPHq.js new file mode 100644 index 00000000000..24f918e26c4 --- /dev/null +++ b/assets/clone-LNmcdPHq.js @@ -0,0 +1 @@ +import{b as r}from"./graph-4EnB4jqL.js";var e=4;function a(o){return r(o,e)}export{a as c}; diff --git a/assets/createText-423428c9-gj--wZwo.js b/assets/createText-423428c9-gj--wZwo.js new file mode 100644 index 00000000000..ab50fc28f63 --- /dev/null +++ b/assets/createText-423428c9-gj--wZwo.js @@ -0,0 +1,7 @@ +import{an as Ln,l as Ct,L as At,ao as zt}from"./index.demo-_07sssxB.js";const It={};function Tt(n,r){const t=r||It,e=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,u=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return tt(n,e,u)}function tt(n,r,t){if(Bt(n)){if("value"in n)return n.type==="html"&&!t?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Vn(n.children,r,t)}return Array.isArray(n)?Vn(n,r,t):""}function Vn(n,r,t){const e=[];let u=-1;for(;++uu?0:u+r:r=r>u?u:r,t=t>0?t:0,e.length<1e4)l=Array.from(e),l.unshift(r,t),n.splice(...l);else for(t&&n.splice(r,t);i0?(tn(n,n.length,0,r),n):r}const Wn={}.hasOwnProperty;function Lt(n){const r={};let t=-1;for(;++tl))return;const T=r.events.length;let H=T,N,V;for(;H--;)if(r.events[H][0]==="exit"&&r.events[H][1].type==="chunkFlow"){if(N){V=r.events[H][1].end;break}N=!0}for(b(e),k=T;kF;){const _=t[D];r.containerState=_[1],_[0].exit.call(r,n)}t.length=F}function j(){u.write([null]),i=void 0,u=void 0,r.containerState._closeFlow=void 0}}function Qt(n,r,t){return O(n,n.attempt(this.parser.constructs.document,r,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Un(n){if(n===null||Z(n)||qt(n))return 1;if(Rt(n))return 2}function On(n,r,t){const e=[];let u=-1;for(;++u1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const f=Object.assign({},n[e][1].end),x=Object.assign({},n[t][1].start);$n(f,-m),$n(x,m),l={type:m>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},n[e][1].end)},a={type:m>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:x},i={type:m>1?"strongText":"emphasisText",start:Object.assign({},n[e][1].end),end:Object.assign({},n[t][1].start)},u={type:m>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},a.end)},n[e][1].end=Object.assign({},l.start),n[t][1].start=Object.assign({},a.end),c=[],n[e][1].end.offset-n[e][1].start.offset&&(c=Y(c,[["enter",n[e][1],r],["exit",n[e][1],r]])),c=Y(c,[["enter",u,r],["enter",l,r],["exit",l,r],["enter",i,r]]),c=Y(c,On(r.parser.constructs.insideSpan.null,n.slice(e+1,t),r)),c=Y(c,[["exit",i,r],["enter",a,r],["exit",a,r],["exit",u,r]]),n[t][1].end.offset-n[t][1].start.offset?(p=2,c=Y(c,[["enter",n[t][1],r],["exit",n[t][1],r]])):p=0,tn(n,e-1,t-e+3,c),t=e+c.length-p-2;break}}for(t=-1;++t0&&z(k)?O(n,j,"linePrefix",i+1)(k):j(k)}function j(k){return k===null||w(k)?n.check(Zn,I,D)(k):(n.enter("codeFlowValue"),F(k))}function F(k){return k===null||w(k)?(n.exit("codeFlowValue"),j(k)):(n.consume(k),F)}function D(k){return n.exit("codeFenced"),r(k)}function _(k,T,H){let N=0;return V;function V(C){return k.enter("lineEnding"),k.consume(C),k.exit("lineEnding"),y}function y(C){return k.enter("codeFencedFence"),z(C)?O(k,S,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):S(C)}function S(C){return C===a?(k.enter("codeFencedFenceSequence"),P(C)):H(C)}function P(C){return C===a?(N++,k.consume(C),P):N>=l?(k.exit("codeFencedFenceSequence"),z(C)?O(k,R,"whitespace")(C):R(C)):H(C)}function R(C){return C===null||w(C)?(k.exit("codeFencedFence"),T(C)):H(C)}}}function ee(n,r,t){const e=this;return u;function u(l){return l===null?t(l):(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}const wn={name:"codeIndented",tokenize:ie},re={tokenize:ue,partial:!0};function ie(n,r,t){const e=this;return u;function u(c){return n.enter("codeIndented"),O(n,i,"linePrefix",5)(c)}function i(c){const p=e.events[e.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(c):t(c)}function l(c){return c===null?m(c):w(c)?n.attempt(re,l,m)(c):(n.enter("codeFlowValue"),a(c))}function a(c){return c===null||w(c)?(n.exit("codeFlowValue"),l(c)):(n.consume(c),a)}function m(c){return n.exit("codeIndented"),r(c)}}function ue(n,r,t){const e=this;return u;function u(l){return e.parser.lazy[e.now().line]?t(l):w(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),u):O(n,i,"linePrefix",5)(l)}function i(l){const a=e.events[e.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):w(l)?u(l):t(l)}}const le={name:"codeText",tokenize:se,resolve:ae,previous:oe};function ae(n){let r=n.length-4,t=3,e,u;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(e=t;++e=4?r(l):n.interrupt(e.parser.constructs.flow,t,r)(l)}}function lt(n,r,t,e,u,i,l,a,m){const c=m||Number.POSITIVE_INFINITY;let p=0;return f;function f(b){return b===60?(n.enter(e),n.enter(u),n.enter(i),n.consume(b),n.exit(i),x):b===null||b===32||b===41||An(b)?t(b):(n.enter(e),n.enter(l),n.enter(a),n.enter("chunkString",{contentType:"string"}),I(b))}function x(b){return b===62?(n.enter(i),n.consume(b),n.exit(i),n.exit(u),n.exit(e),r):(n.enter(a),n.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(n.exit("chunkString"),n.exit(a),x(b)):b===null||b===60||w(b)?t(b):(n.consume(b),b===92?A:h)}function A(b){return b===60||b===62||b===92?(n.consume(b),h):h(b)}function I(b){return!p&&(b===null||b===41||Z(b))?(n.exit("chunkString"),n.exit(a),n.exit(l),n.exit(e),r(b)):p999||h===null||h===91||h===93&&!m||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(n.exit(i),n.enter(u),n.consume(h),n.exit(u),n.exit(e),r):w(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),p):(n.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||w(h)||a++>999?(n.exit("chunkString"),p(h)):(n.consume(h),m||(m=!z(h)),h===92?x:f)}function x(h){return h===91||h===92||h===93?(n.consume(h),a++,f):f(h)}}function ot(n,r,t,e,u,i){let l;return a;function a(x){return x===34||x===39||x===40?(n.enter(e),n.enter(u),n.consume(x),n.exit(u),l=x===40?41:x,m):t(x)}function m(x){return x===l?(n.enter(u),n.consume(x),n.exit(u),n.exit(e),r):(n.enter(i),c(x))}function c(x){return x===l?(n.exit(i),m(l)):x===null?t(x):w(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),O(n,c,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===l||x===null||w(x)?(n.exit("chunkString"),c(x)):(n.consume(x),x===92?f:p)}function f(x){return x===l||x===92?(n.consume(x),p):p(x)}}function dn(n,r){let t;return e;function e(u){return w(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),t=!0,e):z(u)?O(n,e,t?"linePrefix":"lineSuffix")(u):r(u)}}function xn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ge={name:"definition",tokenize:de},ke={tokenize:be,partial:!0};function de(n,r,t){const e=this;let u;return i;function i(h){return n.enter("definition"),l(h)}function l(h){return at.call(e,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return u=xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)),h===58?(n.enter("definitionMarker"),n.consume(h),n.exit("definitionMarker"),m):t(h)}function m(h){return Z(h)?dn(n,c)(h):c(h)}function c(h){return lt(n,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return n.attempt(ke,f,f)(h)}function f(h){return z(h)?O(n,x,"whitespace")(h):x(h)}function x(h){return h===null||w(h)?(n.exit("definition"),e.parser.defined.push(u),r(h)):t(h)}}function be(n,r,t){return e;function e(a){return Z(a)?dn(n,u)(a):t(a)}function u(a){return ot(n,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return z(a)?O(n,l,"whitespace")(a):l(a)}function l(a){return a===null||w(a)?r(a):t(a)}}const ye={name:"hardBreakEscape",tokenize:Se};function Se(n,r,t){return e;function e(i){return n.enter("hardBreakEscape"),n.consume(i),u}function u(i){return w(i)?(n.exit("hardBreakEscape"),r(i)):t(i)}}const Fe={name:"headingAtx",tokenize:we,resolve:Ee};function Ee(n,r){let t=n.length-2,e=3,u,i;return n[e][1].type==="whitespace"&&(e+=2),t-2>e&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(e===t-1||t-4>e&&n[t-2][1].type==="whitespace")&&(t-=e+1===t?2:4),t>e&&(u={type:"atxHeadingText",start:n[e][1].start,end:n[t][1].end},i={type:"chunkText",start:n[e][1].start,end:n[t][1].end,contentType:"text"},tn(n,e,t-e+1,[["enter",u,r],["enter",i,r],["exit",i,r],["exit",u,r]])),n}function we(n,r,t){let e=0;return u;function u(p){return n.enter("atxHeading"),i(p)}function i(p){return n.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&e++<6?(n.consume(p),l):p===null||Z(p)?(n.exit("atxHeadingSequence"),a(p)):t(p)}function a(p){return p===35?(n.enter("atxHeadingSequence"),m(p)):p===null||w(p)?(n.exit("atxHeading"),r(p)):z(p)?O(n,a,"whitespace")(p):(n.enter("atxHeadingText"),c(p))}function m(p){return p===35?(n.consume(p),m):(n.exit("atxHeadingSequence"),a(p))}function c(p){return p===null||p===35||Z(p)?(n.exit("atxHeadingText"),a(p)):(n.consume(p),c)}}const Ce=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gn=["pre","script","style","textarea"],Ae={name:"htmlFlow",tokenize:Be,resolveTo:Te,concrete:!0},ze={tokenize:Oe,partial:!0},Ie={tokenize:Le,partial:!0};function Te(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function Be(n,r,t){const e=this;let u,i,l,a,m;return c;function c(s){return p(s)}function p(s){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(s),f}function f(s){return s===33?(n.consume(s),x):s===47?(n.consume(s),i=!0,I):s===63?(n.consume(s),u=3,e.interrupt?r:o):nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function x(s){return s===45?(n.consume(s),u=2,h):s===91?(n.consume(s),u=5,a=0,A):nn(s)?(n.consume(s),u=4,e.interrupt?r:o):t(s)}function h(s){return s===45?(n.consume(s),e.interrupt?r:o):t(s)}function A(s){const K="CDATA[";return s===K.charCodeAt(a++)?(n.consume(s),a===K.length?e.interrupt?r:S:A):t(s)}function I(s){return nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function M(s){if(s===null||s===47||s===62||Z(s)){const K=s===47,hn=l.toLowerCase();return!K&&!i&&Gn.includes(hn)?(u=1,e.interrupt?r(s):S(s)):Ce.includes(l.toLowerCase())?(u=6,K?(n.consume(s),b):e.interrupt?r(s):S(s)):(u=7,e.interrupt&&!e.parser.lazy[e.now().line]?t(s):i?j(s):F(s))}return s===45||v(s)?(n.consume(s),l+=String.fromCharCode(s),M):t(s)}function b(s){return s===62?(n.consume(s),e.interrupt?r:S):t(s)}function j(s){return z(s)?(n.consume(s),j):V(s)}function F(s){return s===47?(n.consume(s),V):s===58||s===95||nn(s)?(n.consume(s),D):z(s)?(n.consume(s),F):V(s)}function D(s){return s===45||s===46||s===58||s===95||v(s)?(n.consume(s),D):_(s)}function _(s){return s===61?(n.consume(s),k):z(s)?(n.consume(s),_):F(s)}function k(s){return s===null||s===60||s===61||s===62||s===96?t(s):s===34||s===39?(n.consume(s),m=s,T):z(s)?(n.consume(s),k):H(s)}function T(s){return s===m?(n.consume(s),m=null,N):s===null||w(s)?t(s):(n.consume(s),T)}function H(s){return s===null||s===34||s===39||s===47||s===60||s===61||s===62||s===96||Z(s)?_(s):(n.consume(s),H)}function N(s){return s===47||s===62||z(s)?F(s):t(s)}function V(s){return s===62?(n.consume(s),y):t(s)}function y(s){return s===null||w(s)?S(s):z(s)?(n.consume(s),y):t(s)}function S(s){return s===45&&u===2?(n.consume(s),U):s===60&&u===1?(n.consume(s),W):s===62&&u===4?(n.consume(s),J):s===63&&u===3?(n.consume(s),o):s===93&&u===5?(n.consume(s),en):w(s)&&(u===6||u===7)?(n.exit("htmlFlowData"),n.check(ze,rn,P)(s)):s===null||w(s)?(n.exit("htmlFlowData"),P(s)):(n.consume(s),S)}function P(s){return n.check(Ie,R,rn)(s)}function R(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),C}function C(s){return s===null||w(s)?P(s):(n.enter("htmlFlowData"),S(s))}function U(s){return s===45?(n.consume(s),o):S(s)}function W(s){return s===47?(n.consume(s),l="",G):S(s)}function G(s){if(s===62){const K=l.toLowerCase();return Gn.includes(K)?(n.consume(s),J):S(s)}return nn(s)&&l.length<8?(n.consume(s),l+=String.fromCharCode(s),G):S(s)}function en(s){return s===93?(n.consume(s),o):S(s)}function o(s){return s===62?(n.consume(s),J):s===45&&u===2?(n.consume(s),o):S(s)}function J(s){return s===null||w(s)?(n.exit("htmlFlowData"),rn(s)):(n.consume(s),J)}function rn(s){return n.exit("htmlFlow"),r(s)}}function Le(n,r,t){const e=this;return u;function u(l){return w(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i):t(l)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}function Oe(n,r,t){return e;function e(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),n.attempt(Sn,r,t)}}const De={name:"htmlText",tokenize:Pe};function Pe(n,r,t){const e=this;let u,i,l;return a;function a(o){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(o),m}function m(o){return o===33?(n.consume(o),c):o===47?(n.consume(o),_):o===63?(n.consume(o),F):nn(o)?(n.consume(o),H):t(o)}function c(o){return o===45?(n.consume(o),p):o===91?(n.consume(o),i=0,A):nn(o)?(n.consume(o),j):t(o)}function p(o){return o===45?(n.consume(o),h):t(o)}function f(o){return o===null?t(o):o===45?(n.consume(o),x):w(o)?(l=f,W(o)):(n.consume(o),f)}function x(o){return o===45?(n.consume(o),h):f(o)}function h(o){return o===62?U(o):o===45?x(o):f(o)}function A(o){const J="CDATA[";return o===J.charCodeAt(i++)?(n.consume(o),i===J.length?I:A):t(o)}function I(o){return o===null?t(o):o===93?(n.consume(o),M):w(o)?(l=I,W(o)):(n.consume(o),I)}function M(o){return o===93?(n.consume(o),b):I(o)}function b(o){return o===62?U(o):o===93?(n.consume(o),b):I(o)}function j(o){return o===null||o===62?U(o):w(o)?(l=j,W(o)):(n.consume(o),j)}function F(o){return o===null?t(o):o===63?(n.consume(o),D):w(o)?(l=F,W(o)):(n.consume(o),F)}function D(o){return o===62?U(o):F(o)}function _(o){return nn(o)?(n.consume(o),k):t(o)}function k(o){return o===45||v(o)?(n.consume(o),k):T(o)}function T(o){return w(o)?(l=T,W(o)):z(o)?(n.consume(o),T):U(o)}function H(o){return o===45||v(o)?(n.consume(o),H):o===47||o===62||Z(o)?N(o):t(o)}function N(o){return o===47?(n.consume(o),U):o===58||o===95||nn(o)?(n.consume(o),V):w(o)?(l=N,W(o)):z(o)?(n.consume(o),N):U(o)}function V(o){return o===45||o===46||o===58||o===95||v(o)?(n.consume(o),V):y(o)}function y(o){return o===61?(n.consume(o),S):w(o)?(l=y,W(o)):z(o)?(n.consume(o),y):N(o)}function S(o){return o===null||o===60||o===61||o===62||o===96?t(o):o===34||o===39?(n.consume(o),u=o,P):w(o)?(l=S,W(o)):z(o)?(n.consume(o),S):(n.consume(o),R)}function P(o){return o===u?(n.consume(o),u=void 0,C):o===null?t(o):w(o)?(l=P,W(o)):(n.consume(o),P)}function R(o){return o===null||o===34||o===39||o===60||o===61||o===96?t(o):o===47||o===62||Z(o)?N(o):(n.consume(o),R)}function C(o){return o===47||o===62||Z(o)?N(o):t(o)}function U(o){return o===62?(n.consume(o),n.exit("htmlTextData"),n.exit("htmlText"),r):t(o)}function W(o){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),G}function G(o){return z(o)?O(n,en,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):en(o)}function en(o){return n.enter("htmlTextData"),l(o)}}const Dn={name:"labelEnd",tokenize:He,resolveTo:qe,resolveAll:Re},_e={tokenize:Ne},Me={tokenize:Ve},je={tokenize:We};function Re(n){let r=-1;for(;++r=3&&(c===null||w(c))?(n.exit("thematicBreak"),r(c)):t(c)}function m(c){return c===u?(n.consume(c),e++,m):(n.exit("thematicBreakSequence"),z(c)?O(n,a,"whitespace")(c):a(c))}}const $={name:"list",tokenize:Xe,continuation:{tokenize:ve},exit:tr},Je={tokenize:er,partial:!0},Ke={tokenize:nr,partial:!0};function Xe(n,r,t){const e=this,u=e.events[e.events.length-1];let i=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,l=0;return a;function a(h){const A=e.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!e.containerState.marker||h===e.containerState.marker:zn(h)){if(e.containerState.type||(e.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),h===42||h===45?n.check(bn,t,c)(h):c(h);if(!e.interrupt||h===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),m(h)}return t(h)}function m(h){return zn(h)&&++l<10?(n.consume(h),m):(!e.interrupt||l<2)&&(e.containerState.marker?h===e.containerState.marker:h===41||h===46)?(n.exit("listItemValue"),c(h)):t(h)}function c(h){return n.enter("listItemMarker"),n.consume(h),n.exit("listItemMarker"),e.containerState.marker=e.containerState.marker||h,n.check(Sn,e.interrupt?t:p,n.attempt(Je,x,f))}function p(h){return e.containerState.initialBlankLine=!0,i++,x(h)}function f(h){return z(h)?(n.enter("listItemPrefixWhitespace"),n.consume(h),n.exit("listItemPrefixWhitespace"),x):t(h)}function x(h){return e.containerState.size=i+e.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(h)}}function ve(n,r,t){const e=this;return e.containerState._closeFlow=void 0,n.check(Sn,u,i);function u(a){return e.containerState.furtherBlankLines=e.containerState.furtherBlankLines||e.containerState.initialBlankLine,O(n,r,"listItemIndent",e.containerState.size+1)(a)}function i(a){return e.containerState.furtherBlankLines||!z(a)?(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,l(a)):(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,n.attempt(Ke,r,l)(a))}function l(a){return e.containerState._closeFlow=!0,e.interrupt=void 0,O(n,n.attempt($,r,t),"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function nr(n,r,t){const e=this;return O(n,u,"listItemIndent",e.containerState.size+1);function u(i){const l=e.events[e.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===e.containerState.size?r(i):t(i)}}function tr(n){n.exit(this.containerState.type)}function er(n,r,t){const e=this;return O(n,u,"listItemPrefixWhitespace",e.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(i){const l=e.events[e.events.length-1];return!z(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):t(i)}}const Jn={name:"setextUnderline",tokenize:ir,resolveTo:rr};function rr(n,r){let t=n.length,e,u,i;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){e=t;break}n[t][1].type==="paragraph"&&(u=t)}else n[t][1].type==="content"&&n.splice(t,1),!i&&n[t][1].type==="definition"&&(i=t);const l={type:"setextHeading",start:Object.assign({},n[u][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[u][1].type="setextHeadingText",i?(n.splice(u,0,["enter",l,r]),n.splice(i+1,0,["exit",n[e][1],r]),n[e][1].end=Object.assign({},n[i][1].end)):n[e][1]=l,n.push(["exit",l,r]),n}function ir(n,r,t){const e=this;let u;return i;function i(c){let p=e.events.length,f;for(;p--;)if(e.events[p][1].type!=="lineEnding"&&e.events[p][1].type!=="linePrefix"&&e.events[p][1].type!=="content"){f=e.events[p][1].type==="paragraph";break}return!e.parser.lazy[e.now().line]&&(e.interrupt||f)?(n.enter("setextHeadingLine"),u=c,l(c)):t(c)}function l(c){return n.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===u?(n.consume(c),a):(n.exit("setextHeadingLineSequence"),z(c)?O(n,m,"lineSuffix")(c):m(c))}function m(c){return c===null||w(c)?(n.exit("setextHeadingLine"),r(c)):t(c)}}const ur={tokenize:lr};function lr(n){const r=this,t=n.attempt(Sn,e,n.attempt(this.parser.constructs.flowInitial,u,O(n,n.attempt(this.parser.constructs.flow,u,n.attempt(he,u)),"linePrefix")));return t;function e(i){if(i===null){n.consume(i);return}return n.enter("lineEndingBlank"),n.consume(i),n.exit("lineEndingBlank"),r.currentConstruct=void 0,t}function u(i){if(i===null){n.consume(i);return}return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),r.currentConstruct=void 0,t}}const ar={resolveAll:ct()},or=st("string"),sr=st("text");function st(n){return{tokenize:r,resolveAll:ct(n==="text"?cr:void 0)};function r(t){const e=this,u=this.parser.constructs[n],i=t.attempt(u,l,a);return l;function l(p){return c(p)?i(p):a(p)}function a(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),m}function m(p){return c(p)?(t.exit("data"),i(p)):(t.consume(p),m)}function c(p){if(p===null)return!0;const f=u[p];let x=-1;if(f)for(;++x-1){const a=l[0];typeof a=="string"?l[0]=a.slice(e):l.shift()}i>0&&l.push(n[u].slice(0,i))}return l}function fr(n,r){let t=-1;const e=[];let u;for(;++t13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCharCode(t)}const zr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ir(n){return n.replace(zr,Tr)}function Tr(n,r,t){if(r)return r;if(t.charCodeAt(0)===35){const u=t.charCodeAt(1),i=u===120||u===88;return ht(t.slice(i?2:1),i?16:10)}return Ln(t)||n}function yn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Xn(n.position):"start"in n||"end"in n?Xn(n):"line"in n||"column"in n?Tn(n):""}function Tn(n){return vn(n&&n.line)+":"+vn(n&&n.column)}function Xn(n){return Tn(n&&n.start)+"-"+Tn(n&&n.end)}function vn(n){return n&&typeof n=="number"?n:1}const pt={}.hasOwnProperty,ft=function(n,r,t){return typeof r!="string"&&(t=r,r=void 0),Br(t)(Ar(wr(t).document().write(Cr()(n,r,!0))))};function Br(n){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Hn),autolinkProtocol:y,autolinkEmail:y,atxHeading:a(jn),blockQuote:a(Fn),characterEscape:y,characterReference:y,codeFenced:a(Mn),codeFencedFenceInfo:m,codeFencedFenceMeta:m,codeIndented:a(Mn,m),codeText:a(gt,m),codeTextData:y,data:y,codeFlowValue:y,definition:a(kt),definitionDestinationString:m,definitionLabelString:m,definitionTitleString:m,emphasis:a(dt),hardBreakEscape:a(Rn),hardBreakTrailing:a(Rn),htmlFlow:a(qn,m),htmlFlowData:y,htmlText:a(qn,m),htmlTextData:y,image:a(bt),label:m,link:a(Hn),listItem:a(yt),listItemValue:A,listOrdered:a(Nn,h),listUnordered:a(Nn),paragraph:a(St),reference:hn,referenceString:m,resourceDestinationString:m,resourceTitleString:m,setextHeading:a(jn),strong:a(Ft),thematicBreak:a(wt)},exit:{atxHeading:p(),atxHeadingSequence:T,autolink:p(),autolinkEmail:mn,autolinkProtocol:fn,blockQuote:p(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:pn,characterReferenceMarkerNumeric:pn,characterReferenceValue:an,codeFenced:p(j),codeFencedFence:b,codeFencedFenceInfo:I,codeFencedFenceMeta:M,codeFlowValue:S,codeIndented:p(F),codeText:p(W),codeTextData:S,data:S,definition:p(),definitionDestinationString:k,definitionLabelString:D,definitionTitleString:_,emphasis:p(),hardBreakEscape:p(R),hardBreakTrailing:p(R),htmlFlow:p(C),htmlFlowData:S,htmlText:p(U),htmlTextData:S,image:p(en),label:J,labelText:o,lineEnding:P,link:p(G),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Q,resourceDestinationString:rn,resourceTitleString:s,resource:K,setextHeading:p(V),setextHeadingLineSequence:N,setextHeadingText:H,strong:p(),thematicBreak:p()}};mt(r,(n||{}).mdastExtensions||[]);const t={};return e;function e(g){let d={type:"root",children:[]};const E={stack:[d],tokenStack:[],config:r,enter:c,exit:f,buffer:m,resume:x,setData:i,getData:l},B=[];let L=-1;for(;++L0){const X=E.tokenStack[E.tokenStack.length-1];(X[1]||nt).call(E,void 0,X[0])}for(d.position={start:sn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:sn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},L=-1;++L{p!==0&&(u++,e.push([])),c.split(" ").forEach(f=>{f&&e[u].push({content:f,type:a})})}):(l.type==="strong"||l.type==="emphasis")&&l.children.forEach(m=>{i(m,l.type)})}return t.forEach(l=>{l.type==="paragraph"&&l.children.forEach(a=>{i(a)})}),e}function Pr(n){const{children:r}=ft(n);function t(e){return e.type==="text"?e.value.replace(/\n/g,"
"):e.type==="strong"?`${e.children.map(t).join("")}`:e.type==="emphasis"?`${e.children.map(t).join("")}`:e.type==="paragraph"?`

${e.children.map(t).join("")}

`:`Unsupported markdown: ${e.type}`}return r.map(t).join("")}function _r(n){return Intl.Segmenter?[...new Intl.Segmenter().segment(n)].map(r=>r.segment):[...n]}function Mr(n,r){const t=_r(r.content);return xt(n,[],t,r.type)}function xt(n,r,t,e){if(t.length===0)return[{content:r.join(""),type:e},{content:"",type:e}];const[u,...i]=t,l=[...r,u];return n([{content:l.join(""),type:e}])?xt(n,l,i,e):(r.length===0&&u&&(r.push(u),t.shift()),[{content:r.join(""),type:e},{content:t.join(""),type:e}])}function jr(n,r){if(n.some(({content:t})=>t.includes(` +`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Bn(n,r)}function Bn(n,r,t=[],e=[]){if(n.length===0)return e.length>0&&t.push(e),t.length>0?t:[];let u="";n[0].content===" "&&(u=" ",n.shift());const i=n.shift()??{content:" ",type:"normal"},l=[...e];if(u!==""&&l.push({content:u,type:"normal"}),l.push(i),r(l))return Bn(n,r,t,l);if(e.length>0)t.push(e),n.unshift(i);else if(i.content){const[a,m]=Mr(r,i);t.push([a]),m.content&&n.unshift(m)}return Bn(n,r,t)}function Rr(n,r){r&&n.attr("style",r)}function qr(n,r,t,e,u=!1){const i=n.append("foreignObject"),l=i.append("xhtml:div"),a=r.label,m=r.isNode?"nodeLabel":"edgeLabel";l.html(` + "+a+""),Rr(l,r.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("max-width",t+"px"),l.attr("xmlns","http://www.w3.org/1999/xhtml"),u&&l.attr("class","labelBkg");let c=l.node().getBoundingClientRect();return c.width===t&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",t+"px"),c=l.node().getBoundingClientRect()),i.style("width",c.width),i.style("height",c.height),i.node()}function Pn(n,r,t){return n.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",r*t-.1+"em").attr("dy",t+"em")}function Hr(n,r,t){const e=n.append("text"),u=Pn(e,1,r);_n(u,t);const i=u.node().getComputedTextLength();return e.remove(),i}function Wr(n,r,t){var e;const u=n.append("text"),i=Pn(u,1,r);_n(i,[{content:t,type:"normal"}]);const l=(e=i.node())==null?void 0:e.getBoundingClientRect();return l&&u.remove(),l}function Nr(n,r,t,e=!1){const i=r.append("g"),l=i.insert("rect").attr("class","background"),a=i.append("text").attr("y","-10.1");let m=0;for(const c of t){const p=x=>Hr(i,1.1,x)<=n,f=p(c)?[c]:jr(c,p);for(const x of f){const h=Pn(a,m,1.1);_n(h,x),m++}}if(e){const c=a.node().getBBox(),p=2;return l.attr("x",-p).attr("y",-p).attr("width",c.width+2*p).attr("height",c.height+2*p),i.node()}else return a.node()}function _n(n,r){n.text(""),r.forEach((t,e)=>{const u=n.append("tspan").attr("font-style",t.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",t.type==="strong"?"bold":"normal");e===0?u.text(t.content):u.text(" "+t.content)})}const Qr=(n,r="",{style:t="",isTitle:e=!1,classes:u="",useHtmlLabels:i=!0,isNode:l=!0,width:a=200,addSvgBackground:m=!1}={})=>{if(Ct.info("createText",r,t,e,u,i,l,m),i){const c=Pr(r),p={isNode:l,label:At(c).replace(/fa[blrs]?:fa-[\w-]+/g,x=>``),labelStyle:t.replace("fill:","color:")};return qr(n,p,a,u,m)}else{const c=Dr(r);return Nr(a,n,c,m)}};export{Wr as a,Qr as c}; diff --git a/assets/customParseFormat-3OBJgCTU.js b/assets/customParseFormat-3OBJgCTU.js new file mode 100644 index 00000000000..2af894c315b --- /dev/null +++ b/assets/customParseFormat-3OBJgCTU.js @@ -0,0 +1 @@ +import{c as R,g as W}from"./index-qegmBwH1.js";var G={exports:{}};(function(V,rt){(function(j,Z){V.exports=Z()})(R,function(){var j={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Z=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,$=/\d\d/,i=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,m={},U=function(t){return(t=+t)+(t>68?1900:2e3)},o=function(t){return function(r){this[t]=+r}},k=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(r){if(!r||r==="Z")return 0;var n=r.match(/([+-]|\d\d)/g),e=60*n[1]+(+n[2]||0);return e===0?0:n[0]==="+"?-e:e}(t)}],F=function(t){var r=m[t];return r&&(r.indexOf?r:r.s.concat(r.f))},X=function(t,r){var n,e=m.meridiem;if(e){for(var f=1;f<=24;f+=1)if(t.indexOf(e(f,0,r))>-1){n=f>12;break}}else n=t===(r?"pm":"PM");return n},q={A:[y,function(t){this.afternoon=X(t,!1)}],a:[y,function(t){this.afternoon=X(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[$,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,o("seconds")],ss:[i,o("seconds")],m:[i,o("minutes")],mm:[i,o("minutes")],H:[i,o("hours")],h:[i,o("hours")],HH:[i,o("hours")],hh:[i,o("hours")],D:[i,o("day")],DD:[$,o("day")],Do:[y,function(t){var r=m.ordinal,n=t.match(/\d+/);if(this.day=n[0],r)for(var e=1;e<=31;e+=1)r(e).replace(/\[|\]/g,"")===t&&(this.day=e)}],M:[i,o("month")],MM:[$,o("month")],MMM:[y,function(t){var r=F("months"),n=(F("monthsShort")||r.map(function(e){return e.slice(0,3)})).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[y,function(t){var r=F("months").indexOf(t)+1;if(r<1)throw new Error;this.month=r%12||r}],Y:[/[+-]?\d+/,o("year")],YY:[$,function(t){this.year=U(t)}],YYYY:[/\d{4}/,o("year")],Z:k,ZZ:k};function B(t){var r,n;r=t,n=m&&m.formats;for(var e=(t=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(v,l,c){var s=c&&c.toUpperCase();return l||n[c]||j[c]||n[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(M,Y,D){return Y||D.slice(1)})})).match(Z),f=e.length,h=0;h-1)return new Date((L==="X"?1e3:1)*S);var a=B(L)(S),x=a.year,A=a.month,I=a.day,J=a.hours,K=a.minutes,N=a.seconds,Q=a.milliseconds,_=a.zone,C=new Date,H=I||(x||A?1:C.getDate()),O=x||C.getFullYear(),T=0;x&&!A||(T=A>0?A-1:C.getMonth());var P=J||0,z=K||0,E=N||0,b=Q||0;return _?new Date(Date.UTC(O,T,H,P,z,E,b+60*_.offset*1e3)):g?new Date(Date.UTC(O,T,H,P,z,E,b)):new Date(O,T,H,P,z,E,b)}catch{return new Date("")}}(w,d,p),this.init(),s&&s!==!0&&(this.$L=this.locale(s).$L),c&&w!=this.format(d)&&(this.$d=new Date("")),m={}}else if(d instanceof Array)for(var M=d.length,Y=1;Y<=M;Y+=1){u[1]=d[Y-1];var D=n.apply(this,u);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}Y===M&&(this.$d=new Date(""))}else f.call(this,h)}}})})(G);var tt=G.exports;const ot=W(tt);export{ot as d}; diff --git a/assets/dom-NuJWIaAq.js b/assets/dom-NuJWIaAq.js new file mode 100644 index 00000000000..0208d6e1d0a --- /dev/null +++ b/assets/dom-NuJWIaAq.js @@ -0,0 +1 @@ +const o=t=>t.stopPropagation(),a=t=>t.preventDefault();export{a as p,o as s}; diff --git a/assets/edges-d417c7a0-uR8Ha2yN.js b/assets/edges-d417c7a0-uR8Ha2yN.js new file mode 100644 index 00000000000..5757ffeda37 --- /dev/null +++ b/assets/edges-d417c7a0-uR8Ha2yN.js @@ -0,0 +1,4 @@ +import{K as H,c as b,d as V,L as K,h as E,l as g,u as j,A as lt}from"./index.demo-_07sssxB.js";import{c as st}from"./createText-423428c9-gj--wZwo.js";import{l as ct}from"./line-abqtiQB-.js";const ht=(e,t,a,i)=>{t.forEach(l=>{wt[l](e,a,i)})},ot=(e,t,a)=>{g.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},yt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},pt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ft=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},xt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},dt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},gt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ut=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},bt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},wt={extension:ot,composition:yt,aggregation:pt,dependency:ft,lollipop:xt,point:dt,circle:gt,cross:ut,barb:bt},hr=ht;function mt(e,t){t&&e.attr("style",t)}function kt(e){const t=E(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=t.append("xhtml:div"),i=e.label,l=e.isNode?"nodeLabel":"edgeLabel";return a.html('"+i+""),mt(a,e.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const vt=(e,t,a,i)=>{let l=e||"";if(typeof l=="object"&&(l=l[0]),H(b().flowchart.htmlLabels)){l=l.replace(/\\n|\n/g,"
"),g.debug("vertexText"+l);const r={isNode:i,label:K(l).replace(/fa[blrs]?:fa-[\w-]+/g,n=>``),labelStyle:t.replace("fill:","color:")};return kt(r)}else{const r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof l=="string"?s=l.split(/\\n|\n|/gi):Array.isArray(l)?s=l:s=[];for(const n of s){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),a?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}return r}},R=vt,M=async(e,t,a,i)=>{let l;const r=t.useHtmlLabels||H(b().flowchart.htmlLabels);a?l=a:l="node default";const s=e.insert("g").attr("class",l).attr("id",t.domId||t.id),n=s.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=n.node();let h;t.labelType==="markdown"?h=st(n,V(K(c),b()),{useHtmlLabels:r,width:t.width||b().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(R(V(K(c),b()),t.labelStyle,!1,i));let y=h.getBBox();const f=t.padding/2;if(H(b().flowchart.htmlLabels)){const p=h.children[0],d=E(h),k=p.getElementsByTagName("img");if(k){const x=c.replace(/]*>/g,"").trim()==="";await Promise.all([...k].map(u=>new Promise(S=>{function B(){if(u.style.display="flex",u.style.flexDirection="column",x){const C=b().fontSize?b().fontSize:window.getComputedStyle(document.body).fontSize,A=parseInt(C,10)*5+"px";u.style.minWidth=A,u.style.maxWidth=A}else u.style.width="100%";S(u)}setTimeout(()=>{u.complete&&B()}),u.addEventListener("error",B),u.addEventListener("load",B)})))}y=p.getBoundingClientRect(),d.attr("width",y.width),d.attr("height",y.height)}return r?n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"):n.attr("transform","translate(0, "+-y.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:s,bbox:y,halfPadding:f,label:n}},m=(e,t)=>{const a=t.node().getBBox();e.width=a.width,e.height=a.height};function I(e,t,a,i){return e.insert("polygon",":first-child").attr("points",i.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}function Lt(e,t){return e.intersect(t)}function it(e,t,a,i){var l=e.x,r=e.y,s=l-i.x,n=r-i.y,c=Math.sqrt(t*t*n*n+a*a*s*s),o=Math.abs(t*a*s/c);i.x0}function Tt(e,t,a){var i=e.x,l=e.y,r=[],s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){s=Math.min(s,d.x),n=Math.min(n,d.y)}):(s=Math.min(s,t.x),n=Math.min(n,t.y));for(var c=i-e.width/2-s,o=l-e.height/2-n,h=0;h1&&r.sort(function(d,k){var x=d.x-a.x,u=d.y-a.y,S=Math.sqrt(x*x+u*u),B=k.x-a.x,C=k.y-a.y,X=Math.sqrt(B*B+C*C);return S{var a=e.x,i=e.y,l=t.x-a,r=t.y-i,s=e.width/2,n=e.height/2,c,o;return Math.abs(r)*s>Math.abs(l)*n?(r<0&&(n=-n),c=r===0?0:n*l/r,o=n):(l<0&&(s=-s),c=s,o=l===0?0:s*r/l),{x:a+c,y:i+o}},Et=Bt,w={node:Lt,circle:St,ellipse:it,polygon:Tt,rect:Et},Ct=async(e,t)=>{t.useHtmlLabels||b().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:i,bbox:l,halfPadding:r}=await M(e,t,"node "+t.classes,!0);g.info("Classes = ",t.classes);const s=i.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-l.width/2-r).attr("y",-l.height/2-r).attr("width",l.width+t.padding).attr("height",l.height+t.padding),m(t,s),t.intersect=function(n){return w.rect(t,n)},i},$t=Ct,_t=e=>{const t=new Set;for(const a of e)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},Rt=(e,t,a)=>{const i=_t(e),l=2,r=t.height+2*a.padding,s=r/l,n=t.width+2*s+a.padding,c=a.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:s,y:0},{x:n/2,y:2*c},{x:n-s,y:0},{x:n,y:0},{x:n,y:-r/3},{x:n+2*c,y:-r/2},{x:n,y:-2*r/3},{x:n,y:-r},{x:n-s,y:-r},{x:n/2,y:-r-2*c},{x:s,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*c,y:-r/2},{x:0,y:-r/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:s,y:-r},{x:n-s,y:-r},{x:n,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:n,y:-s},{x:n,y:-r+s},{x:0,y:-r}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:n,y:0},{x:0,y:-s},{x:0,y:-r+s},{x:n,y:-r}]:i.has("right")&&i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")&&i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:n,y:-s},{x:0,y:-r}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:n,y:0},{x:0,y:-r}]:i.has("left")&&i.has("up")?[{x:n,y:0},{x:0,y:-s},{x:n,y:-r}]:i.has("left")&&i.has("down")?[{x:n,y:0},{x:0,y:0},{x:n,y:-r}]:i.has("right")?[{x:s,y:-c},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r+c}]:i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")?[{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c}]:i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:[{x:0,y:0}]},J=e=>e?" "+e:"",_=(e,t)=>`${t||"node default"}${J(e.classes)} ${J(e.class)}`,P=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=l+r,n=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];g.info("Question main (Circle)");const c=I(a,s,s,n);return c.attr("style",t.style),m(t,c),t.intersect=function(o){return g.warn("Intersect called"),w.polygon(t,n,o)},a},Ht=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=28,l=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}];return a.insert("polygon",":first-child").attr("points",l.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(s){return w.circle(t,14,s)},a},It=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=4,r=i.height+t.padding,s=r/l,n=i.width+2*s+t.padding,c=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}],o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Nt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,void 0,!0),l=2,r=i.height+2*t.padding,s=r/l,n=i.width+2*s+t.padding,c=Rt(t.directions,i,t),o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Ot=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-r/2,y:0},{x:l,y:0},{x:l,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return I(a,l,r,s).attr("style",t.style),t.width=l+r,t.height=r,t.intersect=function(c){return w.polygon(t,s,c)},a},Wt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Xt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:2*r/6,y:0},{x:l+r/6,y:0},{x:l-2*r/6,y:-r},{x:-r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Yt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l+2*r/6,y:0},{x:l-r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},At=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:-2*r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Dt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l+r/2,y:0},{x:l,y:-r/2},{x:l+r/2,y:-r},{x:0,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},jt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=l/2,s=r/(2.5+l/50),n=i.height+s+t.padding,c="M 0,"+s+" a "+r+","+s+" 0,0,0 "+l+" 0 a "+r+","+s+" 0,0,0 "+-l+" 0 l 0,"+n+" a "+r+","+s+" 0,0,0 "+l+" 0 l 0,"+-n,o=a.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-l/2+","+-(n/2+s)+")");return m(t,o),t.intersect=function(h){const y=w.rect(t,h),f=y.x-t.x;if(r!=0&&(Math.abs(f)t.height/2-s)){let p=s*s*(1-f*f/(r*r));p!=0&&(p=Math.sqrt(p)),p=s-p,h.y-t.y>0&&(p=-p),y.y+=p}return y},a},Ut=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes+" "+t.class,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(Q(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},zt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(Q(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},Zt=async(e,t)=>{const{shapeSvg:a}=await M(e,t,"label",!0);g.trace("Classes = ",t.class);const i=a.insert("rect",":first-child"),l=0,r=0;if(i.attr("width",l).attr("height",r),a.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(Q(i,t.props.borders,l,r),s.delete("borders")),s.forEach(n=>{g.warn(`Unknown node property ${n}`)})}return m(t,i),t.intersect=function(s){return w.rect(t,s)},a};function Q(e,t,a,i){const l=[],r=n=>{l.push(n,0)},s=n=>{l.push(0,n)};t.includes("t")?(g.debug("add top border"),r(a)):s(a),t.includes("r")?(g.debug("add right border"),r(i)):s(i),t.includes("b")?(g.debug("add bottom border"),r(a)):s(a),t.includes("l")?(g.debug("add left border"),r(i)):s(i),e.attr("stroke-dasharray",l.join(" "))}const Gt=(e,t)=>{let a;t.classes?a="node "+t.classes:a="node default";const i=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=i.insert("rect",":first-child"),r=i.insert("line"),s=i.insert("g").attr("class","label"),n=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof n=="object"?c=n[0]:c=n,g.info("Label text abc79",c,n,typeof n=="object");const o=s.node().appendChild(R(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(H(b().flowchart.htmlLabels)){const k=o.children[0],x=E(o);h=k.getBoundingClientRect(),x.attr("width",h.width),x.attr("height",h.height)}g.info("Text 2",n);const y=n.slice(1,n.length);let f=o.getBBox();const p=s.node().appendChild(R(y.join?y.join("
"):y,t.labelStyle,!0,!0));if(H(b().flowchart.htmlLabels)){const k=p.children[0],x=E(p);h=k.getBoundingClientRect(),x.attr("width",h.width),x.attr("height",h.height)}const d=t.padding/2;return E(p).attr("transform","translate( "+(h.width>f.width?0:(f.width-h.width)/2)+", "+(f.height+d+5)+")"),E(o).attr("transform","translate( "+(h.width{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.height+t.padding,r=i.width+l/4+t.padding,s=a.insert("rect",":first-child").attr("style",t.style).attr("rx",l/2).attr("ry",l/2).attr("x",-r/2).attr("y",-l/2).attr("width",r).attr("height",l);return m(t,s),t.intersect=function(n){return w.rect(t,n)},a},Kt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t,void 0),!0),r=a.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("Circle main"),m(t,r),t.intersect=function(s){return g.info("Circle intersect",t,i.width/2+l,s),w.circle(t,i.width/2+l,s)},a},Qt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t,void 0),!0),r=5,s=a.insert("g",":first-child"),n=s.insert("circle"),c=s.insert("circle");return s.attr("class",t.class),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l+r).attr("width",i.width+t.padding+r*2).attr("height",i.height+t.padding+r*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("DoubleCircle main"),m(t,n),t.intersect=function(o){return g.info("DoubleCircle intersect",t,i.width/2+l+r,o),w.circle(t,i.width/2+l+r,o)},a},Vt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l,y:0},{x:l,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},qt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),m(t,i),t.intersect=function(l){return w.circle(t,7,l)},a},tt=(e,t,a)=>{const i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l=70,r=10;a==="LR"&&(l=10,r=70);const s=i.append("rect").attr("x",-1*l/2).attr("y",-1*r/2).attr("width",l).attr("height",r).attr("class","fork-join");return m(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(n){return w.rect(t,n)},i},Jt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child"),l=a.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),m(t,l),t.intersect=function(r){return w.circle(t,7,r)},a},Pt=(e,t)=>{const a=t.padding/2,i=4,l=8;let r;t.classes?r="node "+t.classes:r="node default";const s=e.insert("g").attr("class",r).attr("id",t.domId||t.id),n=s.insert("rect",":first-child"),c=s.insert("line"),o=s.insert("line");let h=0,y=i;const f=s.insert("g").attr("class","label");let p=0;const d=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",x=f.node().appendChild(R(k,t.labelStyle,!0,!0));let u=x.getBBox();if(H(b().flowchart.htmlLabels)){const v=x.children[0],L=E(x);u=v.getBoundingClientRect(),L.attr("width",u.width),L.attr("height",u.height)}t.classData.annotations[0]&&(y+=u.height+i,h+=u.width);let S=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(b().flowchart.htmlLabels?S+="<"+t.classData.type+">":S+="<"+t.classData.type+">");const B=f.node().appendChild(R(S,t.labelStyle,!0,!0));E(B).attr("class","classTitle");let C=B.getBBox();if(H(b().flowchart.htmlLabels)){const v=B.children[0],L=E(B);C=v.getBoundingClientRect(),L.attr("width",C.width),L.attr("height",C.height)}y+=C.height+i,C.width>h&&(h=C.width);const X=[];t.classData.members.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(//g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const F=N.children[0],D=E(N);$=F.getBoundingClientRect(),D.attr("width",$.width),D.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,X.push(N)}),y+=l;const A=[];if(t.classData.methods.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(//g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const F=N.children[0],D=E(N);$=F.getBoundingClientRect(),D.attr("width",$.width),D.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,A.push(N)}),y+=l,d){let v=(h-u.width)/2;E(x).attr("transform","translate( "+(-1*h/2+v)+", "+-1*y/2+")"),p=u.height+i}let nt=(h-C.width)/2;return E(B).attr("transform","translate( "+(-1*h/2+nt)+", "+(-1*y/2+p)+")"),p+=C.height+i,c.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,X.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p+l/2)+")");const L=v?.getBBox();p+=(L?.height??0)+i}),p+=l,o.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,A.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p)+")");const L=v?.getBBox();p+=(L?.height??0)+i}),n.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-a).attr("y",-(y/2)-a).attr("width",h+t.padding).attr("height",y+t.padding),m(t,n),t.intersect=function(v){return w.rect(t,v)},s},rt={rhombus:P,composite:zt,question:P,rect:Ut,labelRect:Zt,rectWithTitle:Gt,choice:Ht,circle:Kt,doublecircle:Qt,stadium:Ft,hexagon:It,block_arrow:Nt,rect_left_inv_arrow:Ot,lean_right:Wt,lean_left:Xt,trapezoid:Yt,inv_trapezoid:At,rect_right_inv_arrow:Dt,cylinder:jt,start:qt,end:Jt,note:$t,subroutine:Vt,fork:tt,join:tt,class_box:Pt};let Y={};const or=async(e,t,a)=>{let i,l;if(t.link){let r;b().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",r),l=await rt[t.shape](i,t,a)}else l=await rt[t.shape](e,t,a),i=l;return t.tooltip&&l.attr("title",t.tooltip),t.class&&l.attr("class","node default "+t.class),i.attr("data-node","true"),i.attr("data-id",t.id),Y[t.id]=i,t.haveCallback&&Y[t.id].attr("class",Y[t.id].attr("class")+" clickable"),i},yr=(e,t)=>{Y[t.id]=e},pr=()=>{Y={}},fr=e=>{const t=Y[e.id];g.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const a=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-a)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},tr=({flowchart:e})=>{var t,a;const i=((t=e?.subGraphTitleMargin)==null?void 0:t.top)??0,l=((a=e?.subGraphTitleMargin)==null?void 0:a.bottom)??0,r=i+l;return{subGraphTitleTopMargin:i,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:r}},O={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function U(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Z(e),t=Z(t);const[a,i]=[e.x,e.y],[l,r]=[t.x,t.y],s=l-a,n=r-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}const Z=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,rr=e=>({x:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaX:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.cos(r)*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaX:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.cos(r)*(s>=0?1:-1)}return Z(t).x+l},y:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaY:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.abs(Math.sin(r))*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaY:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.abs(Math.sin(r))*(s>=0?1:-1)}return Z(t).y+l}}),ar=(e,t,a,i,l)=>{t.arrowTypeStart&&at(e,"start",t.arrowTypeStart,a,i,l),t.arrowTypeEnd&&at(e,"end",t.arrowTypeEnd,a,i,l)},er={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},at=(e,t,a,i,l,r)=>{const s=er[a];if(!s){g.warn(`Unknown arrow type: ${a}`);return}const n=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${l}_${r}-${s}${n})`)};let G={},T={};const xr=()=>{G={},T={}},dr=(e,t)=>{const a=H(b().flowchart.htmlLabels),i=t.labelType==="markdown"?st(e,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0}):R(t.label,t.labelStyle),l=e.insert("g").attr("class","edgeLabel"),r=l.insert("g").attr("class","label");r.node().appendChild(i);let s=i.getBBox();if(a){const c=i.children[0],o=E(i);s=c.getBoundingClientRect(),o.attr("width",s.width),o.attr("height",s.height)}r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),G[t.id]=l,t.width=s.width,t.height=s.height;let n;if(t.startLabelLeft){const c=R(t.startLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startLeft=o,z(n,t.startLabelLeft)}if(t.startLabelRight){const c=R(t.startLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=o.node().appendChild(c),h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startRight=o,z(n,t.startLabelRight)}if(t.endLabelLeft){const c=R(t.endLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endLeft=o,z(n,t.endLabelLeft)}if(t.endLabelRight){const c=R(t.endLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endRight=o,z(n,t.endLabelRight)}return i};function z(e,t){b().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}const gr=(e,t)=>{g.debug("Moving label abc88 ",e.id,e.label,G[e.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const i=b(),{subGraphTitleTotalMargin:l}=tr(i);if(e.label){const r=G[e.id];let s=e.x,n=e.y;if(a){const c=j.calcLabelPosition(a);g.debug("Moving label "+e.label+" from (",s,",",n,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(s=c.x,n=c.y)}r.attr("transform",`translate(${s}, ${n+l/2})`)}if(e.startLabelLeft){const r=T[e.id].startLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.startLabelRight){const r=T[e.id].startRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelLeft){const r=T[e.id].endLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelRight){const r=T[e.id].endRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}},sr=(e,t)=>{const a=e.x,i=e.y,l=Math.abs(t.x-a),r=Math.abs(t.y-i),s=e.width/2,n=e.height/2;return l>=s||r>=n},ir=(e,t,a)=>{g.debug(`intersection calc abc89: + outsidePoint: ${JSON.stringify(t)} + insidePoint : ${JSON.stringify(a)} + node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,l=e.y,r=Math.abs(i-a.x),s=e.width/2;let n=a.xMath.abs(i-t.x)*c){let y=a.y{g.debug("abc88 cutPathAtIntersect",e,t);let a=[],i=e[0],l=!1;return e.forEach(r=>{if(!sr(t,r)&&!l){const s=ir(t,i,r);let n=!1;a.forEach(c=>{n=n||c.x===s.x&&c.y===s.y}),a.some(c=>c.x===s.x&&c.y===s.y)||a.push(s),l=!0}else i=r,l||a.push(r)}),a},ur=function(e,t,a,i,l,r,s){let n=a.points;g.debug("abc88 InsertEdge: edge=",a,"e=",t);let c=!1;const o=r.node(t.v);var h=r.node(t.w);h?.intersect&&o?.intersect&&(n=n.slice(1,a.points.length-1),n.unshift(o.intersect(n[0])),n.push(h.intersect(n[n.length-1]))),a.toCluster&&(g.debug("to cluster abc88",i[a.toCluster]),n=et(a.points,i[a.toCluster].node),c=!0),a.fromCluster&&(g.debug("from cluster abc88",i[a.fromCluster]),n=et(n.reverse(),i[a.fromCluster].node).reverse(),c=!0);const y=n.filter(C=>!Number.isNaN(C.y));let f=lt;a.curve&&(l==="graph"||l==="flowchart")&&(f=a.curve);const{x:p,y:d}=rr(a),k=ct().x(p).y(d).curve(f);let x;switch(a.thickness){case"normal":x="edge-thickness-normal";break;case"thick":x="edge-thickness-thick";break;case"invisible":x="edge-thickness-thick";break;default:x=""}switch(a.pattern){case"solid":x+=" edge-pattern-solid";break;case"dotted":x+=" edge-pattern-dotted";break;case"dashed":x+=" edge-pattern-dashed";break}const u=e.append("path").attr("d",k(y)).attr("id",a.id).attr("class"," "+x+(a.classes?" "+a.classes:"")).attr("style",a.style);let S="";(b().flowchart.arrowMarkerAbsolute||b().state.arrowMarkerAbsolute)&&(S=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,S=S.replace(/\(/g,"\\("),S=S.replace(/\)/g,"\\)")),ar(u,a,S,s,l);let B={};return c&&(B.updatedPath=n),B.originalPath=a.points,B};export{ur as a,dr as b,or as c,fr as d,pr as e,xr as f,tr as g,R as h,hr as i,Et as j,rr as k,M as l,ar as m,gr as p,yr as s,m as u}; diff --git a/assets/env-y9k74Ds6.js b/assets/env-y9k74Ds6.js new file mode 100644 index 00000000000..b61c533fa04 --- /dev/null +++ b/assets/env-y9k74Ds6.js @@ -0,0 +1 @@ +const e=typeof window<"u",s=!e,i=!1;export{s as a,i as b,e as i}; diff --git a/assets/erDiagram-0ea73325-FqUzboSr.js b/assets/erDiagram-0ea73325-FqUzboSr.js new file mode 100644 index 00000000000..3e1684f85f8 --- /dev/null +++ b/assets/erDiagram-0ea73325-FqUzboSr.js @@ -0,0 +1,51 @@ +import{c as Z,s as mt,g as Et,b as gt,a as kt,o as xt,p as Rt,l as V,q as Ot,h as rt,u as bt,i as Nt,A as Tt,B as At}from"./index.demo-_07sssxB.js";import{G as Mt}from"./graph-4EnB4jqL.js";import{l as St}from"./layout-KoXfeBJF.js";import"./owner-4YVbz2PN.js";import{l as wt}from"./line-abqtiQB-.js";import"./index-qegmBwH1.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";const It=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Dt(t){return typeof t=="string"&&It.test(t)}const A=[];for(let t=0;t<256;++t)A.push((t+256).toString(16).slice(1));function vt(t,e=0){return A[t[e+0]]+A[t[e+1]]+A[t[e+2]]+A[t[e+3]]+"-"+A[t[e+4]]+A[t[e+5]]+"-"+A[t[e+6]]+A[t[e+7]]+"-"+A[t[e+8]]+A[t[e+9]]+"-"+A[t[e+10]]+A[t[e+11]]+A[t[e+12]]+A[t[e+13]]+A[t[e+14]]+A[t[e+15]]}function Lt(t){if(!Dt(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function Bt(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r>>32-e}function Ft(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const f=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;x=g,g=E,E=it(_,30)>>>0,_=h,h=I}r[0]=r[0]+h>>>0,r[1]=r[1]+_>>>0,r[2]=r[2]+E>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+x>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const Wt=Yt("v5",80,Ft);var at=function(){var t=function(S,a,n,c){for(n=n||{},c=S.length;c--;n[S[c]]=a);return n},e=[6,8,10,20,22,24,26,27,28],r=[1,10],u=[1,11],l=[1,12],y=[1,13],f=[1,14],o=[1,15],h=[1,21],_=[1,22],E=[1,23],g=[1,24],x=[1,25],p=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],N=[1,34],I=[27,28,46,47],F=[41,42,43,44,45],W=[17,34],C=[1,54],T=[1,53],M=[17,34,36,38],R={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(a,n,c,d,m,i,K){var s=i.length-1;switch(m){case 1:break;case 2:this.$=[];break;case 3:i[s-1].push(i[s]),this.$=i[s-1];break;case 4:case 5:this.$=i[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(i[s-4]),d.addEntity(i[s-2]),d.addRelationship(i[s-4],i[s],i[s-2],i[s-3]);break;case 9:d.addEntity(i[s-3]),d.addAttributes(i[s-3],i[s-1]);break;case 10:d.addEntity(i[s-2]);break;case 11:d.addEntity(i[s]);break;case 12:d.addEntity(i[s-6],i[s-4]),d.addAttributes(i[s-6],i[s-1]);break;case 13:d.addEntity(i[s-5],i[s-3]);break;case 14:d.addEntity(i[s-3],i[s-1]);break;case 15:case 16:this.$=i[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=i[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=i[s];break;case 20:case 41:case 42:this.$=i[s].replace(/"/g,"");break;case 21:case 29:this.$=[i[s]];break;case 22:i[s].push(i[s-1]),this.$=i[s];break;case 23:this.$={attributeType:i[s-1],attributeName:i[s]};break;case 24:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeKeyTypeList:i[s]};break;case 25:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeComment:i[s]};break;case 26:this.$={attributeType:i[s-3],attributeName:i[s-2],attributeKeyTypeList:i[s-1],attributeComment:i[s]};break;case 27:case 28:case 31:this.$=i[s];break;case 30:i[s-2].push(i[s]),this.$=i[s-2];break;case 32:this.$=i[s].replace(/"/g,"");break;case 33:this.$={cardA:i[s],relType:i[s-1],cardB:i[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:u,24:l,26:y,27:f,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:l,26:y,27:f,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:E,44:g,45:x}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(p,[2,19]),t(p,[2,20]),t(e,[2,4]),{11:29,27:f,28:o},{16:30,17:[1,31],29:32,30:33,34:N},{11:35,27:f,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:N},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:E,44:g,45:x},t(F,[2,39]),t(F,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(W,[2,23],{32:50,33:51,35:52,37:C,38:T}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(W,[2,24],{33:56,36:[1,57],38:T}),t(W,[2,25]),t(M,[2,29]),t(W,[2,32]),t(M,[2,31]),{16:58,17:[1,59],29:32,30:33,34:N},t(W,[2,26]),{35:60,37:C},{17:[1,61]},t(e,[2,13]),t(M,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(a,n){if(n.recoverable)this.trace(a);else{var c=new Error(a);throw c.hash=n,c}},parse:function(a){var n=this,c=[0],d=[],m=[null],i=[],K=this.table,s="",Q=0,st=0,ft=2,ot=1,pt=i.slice.call(arguments,1),b=Object.create(this.lexer),H={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(H.yy[J]=this.yy[J]);b.setInput(a,H.yy),H.yy.lexer=b,H.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var $=b.yylloc;i.push($);var yt=b.options&&b.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var Y;return Y=d.pop()||b.lex()||ot,typeof Y!="number"&&(Y instanceof Array&&(d=Y,Y=d.pop()),Y=n.symbols_[Y]||Y),Y}for(var w,z,D,tt,G={},q,P,lt,j;;){if(z=c[c.length-1],this.defaultActions[z]?D=this.defaultActions[z]:((w===null||typeof w>"u")&&(w=_t()),D=K[z]&&K[z][w]),typeof D>"u"||!D.length||!D[0]){var et="";j=[];for(q in K[z])this.terminals_[q]&&q>ft&&j.push("'"+this.terminals_[q]+"'");b.showPosition?et="Parse error on line "+(Q+1)+`: +`+b.showPosition()+` +Expecting `+j.join(", ")+", got '"+(this.terminals_[w]||w)+"'":et="Parse error on line "+(Q+1)+": Unexpected "+(w==ot?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(et,{text:b.match,token:this.terminals_[w]||w,line:b.yylineno,loc:$,expected:j})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+w);switch(D[0]){case 1:c.push(w),m.push(b.yytext),i.push(b.yylloc),c.push(D[1]),w=null,st=b.yyleng,s=b.yytext,Q=b.yylineno,$=b.yylloc;break;case 2:if(P=this.productions_[D[1]][1],G.$=m[m.length-P],G._$={first_line:i[i.length-(P||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(P||1)].first_column,last_column:i[i.length-1].last_column},yt&&(G._$.range=[i[i.length-(P||1)].range[0],i[i.length-1].range[1]]),tt=this.performAction.apply(G,[s,st,Q,H.yy,D[1],m,i].concat(pt)),typeof tt<"u")return tt;P&&(c=c.slice(0,-1*P*2),m=m.slice(0,-1*P),i=i.slice(0,-1*P)),c.push(this.productions_[D[1]][0]),m.push(G.$),i.push(G._$),lt=K[c[c.length-2]][c[c.length-1]],c.push(lt);break;case 3:return!0}}return!0}},O=function(){var S={EOF:1,parseError:function(n,c){if(this.yy.parser)this.yy.parser.parseError(n,c);else throw new Error(n)},setInput:function(a,n){return this.yy=n||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var n=a.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var n=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var m=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),n=new Array(a.length+1).join("-");return a+this.upcomingInput()+` +`+n+"^"},test_match:function(a,n){var c,d,m;if(this.options.backtrack_lexer&&(m={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(m.yylloc.range=this.yylloc.range.slice(0))),d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var i in m)this[i]=m[i];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,n,c,d;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),i=0;in[0].length)){if(n=c,d=i,this.options.backtrack_lexer){if(a=this.test_match(c,m[i]),a!==!1)return a;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(a=this.test_match(n,m[d]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,c,d,m){switch(d){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;case 22:return c.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return c.yytext[0];case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,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],inclusive:!0}}};return S}();R.lexer=O;function v(){this.yy={}}return v.prototype=R,R.Parser=v,new v}();at.parser=at;const Ut=at;let U={},nt=[];const Ht={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},zt={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},dt=function(t,e=void 0){return U[t]===void 0?(U[t]={attributes:[],alias:e},V.info("Added new entity :",t)):U[t]&&!U[t].alias&&e&&(U[t].alias=e,V.info(`Add alias '${e}' to entity '${t}'`)),U[t]},Gt=()=>U,Kt=function(t,e){let r=dt(t),u;for(u=e.length-1;u>=0;u--)r.attributes.push(e[u]),V.debug("Added attribute ",e[u].attributeName)},Vt=function(t,e,r,u){let l={entityA:t,roleA:e,entityB:r,relSpec:u};nt.push(l),V.debug("Added new relationship :",l)},Xt=()=>nt,Qt=function(){U={},nt=[],Ot()},qt={Cardinality:Ht,Identification:zt,getConfig:()=>Z().er,addEntity:dt,addAttributes:Kt,getEntities:Gt,addRelationship:Vt,getRelationships:Xt,clear:Qt,setAccTitle:mt,getAccTitle:Et,setAccDescription:gt,getAccDescription:kt,setDiagramTitle:xt,getDiagramTitle:Rt},L={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},jt=function(t,e){let r;t.append("defs").append("marker").attr("id",L.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",L.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",L.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",L.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",L.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",L.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},B={ERMarkers:L,insertMarkers:jt},Jt=/[^\dA-Za-z](\W)*/g;let k={},X=new Map;const $t=function(t){const e=Object.keys(t);for(const r of e)k[r]=t[r]},te=(t,e,r)=>{const u=k.entityPadding/3,l=k.entityPadding/3,y=k.fontSize*.85,f=e.node().getBBox(),o=[];let h=!1,_=!1,E=0,g=0,x=0,p=0,N=f.height+u*2,I=1;r.forEach(T=>{T.attributeKeyTypeList!==void 0&&T.attributeKeyTypeList.length>0&&(h=!0),T.attributeComment!==void 0&&(_=!0)}),r.forEach(T=>{const M=`${e.node().id}-attr-${I}`;let R=0;const O=At(T.attributeType),v=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",y+"px").text(O),S=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",y+"px").text(T.attributeName),a={};a.tn=v,a.nn=S;const n=v.node().getBBox(),c=S.node().getBBox();if(E=Math.max(E,n.width),g=Math.max(g,c.width),R=Math.max(n.height,c.height),h){const d=T.attributeKeyTypeList!==void 0?T.attributeKeyTypeList.join(","):"",m=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",y+"px").text(d);a.kn=m;const i=m.node().getBBox();x=Math.max(x,i.width),R=Math.max(R,i.height)}if(_){const d=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",y+"px").text(T.attributeComment||"");a.cn=d;const m=d.node().getBBox();p=Math.max(p,m.width),R=Math.max(R,m.height)}a.height=R,o.push(a),N+=R+u*2,I+=1});let F=4;h&&(F+=2),_&&(F+=2);const W=E+g+x+p,C={width:Math.max(k.minEntityWidth,Math.max(f.width+k.entityPadding*2,W+l*F)),height:r.length>0?N:Math.max(k.minEntityHeight,f.height+k.entityPadding*2)};if(r.length>0){const T=Math.max(0,(C.width-W-l*F)/(F/2));e.attr("transform","translate("+C.width/2+","+(u+f.height/2)+")");let M=f.height+u*2,R="attributeBoxOdd";o.forEach(O=>{const v=M+u+O.height/2;O.tn.attr("transform","translate("+l+","+v+")");const S=t.insert("rect","#"+O.tn.node().id).classed(`er ${R}`,!0).attr("x",0).attr("y",M).attr("width",E+l*2+T).attr("height",O.height+u*2),a=parseFloat(S.attr("x"))+parseFloat(S.attr("width"));O.nn.attr("transform","translate("+(a+l)+","+v+")");const n=t.insert("rect","#"+O.nn.node().id).classed(`er ${R}`,!0).attr("x",a).attr("y",M).attr("width",g+l*2+T).attr("height",O.height+u*2);let c=parseFloat(n.attr("x"))+parseFloat(n.attr("width"));if(h){O.kn.attr("transform","translate("+(c+l)+","+v+")");const d=t.insert("rect","#"+O.kn.node().id).classed(`er ${R}`,!0).attr("x",c).attr("y",M).attr("width",x+l*2+T).attr("height",O.height+u*2);c=parseFloat(d.attr("x"))+parseFloat(d.attr("width"))}_&&(O.cn.attr("transform","translate("+(c+l)+","+v+")"),t.insert("rect","#"+O.cn.node().id).classed(`er ${R}`,"true").attr("x",c).attr("y",M).attr("width",p+l*2+T).attr("height",O.height+u*2)),M+=O.height+u*2,R=R==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else C.height=Math.max(k.minEntityHeight,N),e.attr("transform","translate("+C.width/2+","+C.height/2+")");return C},ee=function(t,e,r){const u=Object.keys(e);let l;return u.forEach(function(y){const f=oe(y,"entity");X.set(y,f);const o=t.append("g").attr("id",f);l=l===void 0?f:l;const h="text-"+f,_=o.append("text").classed("er entityLabel",!0).attr("id",h).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",Z().fontFamily).style("font-size",k.fontSize+"px").text(e[y].alias??y),{width:E,height:g}=te(o,_,e[y].attributes),p=o.insert("rect","#"+h).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",E).attr("height",g).node().getBBox();r.setNode(f,{width:p.width,height:p.height,shape:"rect",id:f})}),l},re=function(t,e){e.nodes().forEach(function(r){r!==void 0&&e.node(r)!==void 0&&t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )")})},ut=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},ie=function(t,e){return t.forEach(function(r){e.setEdge(X.get(r.entityA),X.get(r.entityB),{relationship:r},ut(r))}),t};let ct=0;const ae=function(t,e,r,u,l){ct++;const y=r.edge(X.get(e.entityA),X.get(e.entityB),ut(e)),f=wt().x(function(N){return N.x}).y(function(N){return N.y}).curve(Tt),o=t.insert("path","#"+u).classed("er relationshipLine",!0).attr("d",f(y.points)).style("stroke",k.stroke).style("fill","none");e.relSpec.relType===l.db.Identification.NON_IDENTIFYING&&o.attr("stroke-dasharray","8,8");let h="";switch(k.arrowMarkerAbsolute&&(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,h=h.replace(/\(/g,"\\("),h=h.replace(/\)/g,"\\)")),e.relSpec.cardA){case l.db.Cardinality.ZERO_OR_ONE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ZERO_OR_ONE_END+")");break;case l.db.Cardinality.ZERO_OR_MORE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ZERO_OR_MORE_END+")");break;case l.db.Cardinality.ONE_OR_MORE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ONE_OR_MORE_END+")");break;case l.db.Cardinality.ONLY_ONE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ONLY_ONE_END+")");break;case l.db.Cardinality.MD_PARENT:o.attr("marker-end","url("+h+"#"+B.ERMarkers.MD_PARENT_END+")");break}switch(e.relSpec.cardB){case l.db.Cardinality.ZERO_OR_ONE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ZERO_OR_ONE_START+")");break;case l.db.Cardinality.ZERO_OR_MORE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ZERO_OR_MORE_START+")");break;case l.db.Cardinality.ONE_OR_MORE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ONE_OR_MORE_START+")");break;case l.db.Cardinality.ONLY_ONE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ONLY_ONE_START+")");break;case l.db.Cardinality.MD_PARENT:o.attr("marker-start","url("+h+"#"+B.ERMarkers.MD_PARENT_START+")");break}const _=o.node().getTotalLength(),E=o.node().getPointAtLength(_*.5),g="rel"+ct,p=t.append("text").classed("er relationshipLabel",!0).attr("id",g).attr("x",E.x).attr("y",E.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",Z().fontFamily).style("font-size",k.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+g).classed("er relationshipLabelBox",!0).attr("x",E.x-p.width/2).attr("y",E.y-p.height/2).attr("width",p.width).attr("height",p.height)},ne=function(t,e,r,u){k=Z().er,V.info("Drawing ER diagram");const l=Z().securityLevel;let y;l==="sandbox"&&(y=rt("#i"+e));const o=(l==="sandbox"?rt(y.nodes()[0].contentDocument.body):rt("body")).select(`[id='${e}']`);B.insertMarkers(o,k);let h;h=new Mt({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:k.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const _=ee(o,u.db.getEntities(),h),E=ie(u.db.getRelationships(),h);St(h),re(o,h),E.forEach(function(I){ae(o,I,h,_,u)});const g=k.diagramPadding;bt.insertTitle(o,"entityTitleText",k.titleTopMargin,u.db.getDiagramTitle());const x=o.node().getBBox(),p=x.width+g*2,N=x.height+g*2;Nt(o,N,p,k.useMaxWidth),o.attr("viewBox",`${x.x-g} ${x.y-g} ${p} ${N}`)},se="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function oe(t="",e=""){const r=t.replace(Jt,"");return`${ht(e)}${ht(r)}${Wt(t,se)}`}function ht(t=""){return t.length>0?`${t}-`:""}const le={setConf:$t,draw:ne},ce=t=>` + .entityBox { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; + } + + .attributeBoxOdd { + fill: ${t.attributeBackgroundColorOdd}; + stroke: ${t.nodeBorder}; + } + + .attributeBoxEven { + fill: ${t.attributeBackgroundColorEven}; + stroke: ${t.nodeBorder}; + } + + .relationshipLabelBox { + fill: ${t.tertiaryColor}; + opacity: 0.7; + background-color: ${t.tertiaryColor}; + rect { + opacity: 0.5; + } + } + + .relationshipLine { + stroke: ${t.lineColor}; + } + + .entityTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.textColor}; + } + #MD_PARENT_START { + fill: #f5f5f5 !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; + } + #MD_PARENT_END { + fill: #f5f5f5 !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; + } + +`,he=ce,qe={parser:Ut,db:qt,renderer:le,styles:he};export{qe as diagram}; diff --git a/assets/features-max-O5aQqdqN.js b/assets/features-max-O5aQqdqN.js new file mode 100644 index 00000000000..a1f29378ddb --- /dev/null +++ b/assets/features-max-O5aQqdqN.js @@ -0,0 +1 @@ +import{f as S,n as E,d as Ce,e as vt,v as be,g as Le,c as O,h as A,j as we,k as Y,p as et,P as fs,o as nt,q as ps,r as Re,b as ms,S as gs,i as H,s as ct,t as ht,w as jt,x as xt,y as ys,z as Ee,A as vs,B as xs,C as Ps,D as wt,E as Ts,F as Me,G as Be,H as Vs,I as Ss,J as Ds,K as As,N as Cs,O as bs,Q as Ls,R as ws,T as Rs,U as Es,V as Ms}from"./motion-minimal-gJqnz197.js";import{p as G,r as Bs,b as js,c as Fs,d as ks,e as V,f as Pt,g as je,h as Ft,i as Is,j as Fe,k as ke,t as Ie,m as st,S as Oe,l as Os,n as Us,o as $,q as Ns,u as Tt,v as Gs,w as Hs,x as Ue}from"./visual-element-YIiczwVf.js";import{r as X,R as Ne}from"./index-qegmBwH1.js";function R(e,t,s,i={passive:!0}){return e.addEventListener(t,s,i),()=>e.removeEventListener(t,s)}const Ge=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ot(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Ws=e=>t=>Ge(t)&&e(t,ot(t));function M(e,t,s,i){return R(e,t,Ws(s),i)}function He(e){let t=null;return()=>{const s=()=>{t=null};return t===null?(t=e,s):!1}}const kt=He("dragHorizontal"),It=He("dragVertical");function We(e){let t=!1;if(e==="y")t=It();else if(e==="x")t=kt();else{const s=kt(),i=It();s&&i?t=()=>{s(),i()}:(s&&s(),i&&i())}return t}function _e(){const e=We(!0);return e?(e(),!1):!0}class j{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Ot(e,t){const s="pointer"+(t?"enter":"leave"),i="onHover"+(t?"Start":"End"),o=(u,n)=>{if(u.pointerType==="touch"||_e())return;const r=e.getProps();e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",t),r[i]&&S.update(()=>r[i](u,n))};return M(e.current,s,o,{passive:!e.getProps()[i]})}class _s extends j{mount(){this.unmount=G(Ot(this.node,!0),Ot(this.node,!1))}unmount(){}}class Ks extends j{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=G(R(this.node.current,"focus",()=>this.onFocus()),R(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Ke=(e,t)=>t?e===t?!0:Ke(e,t.parentElement):!1;function dt(e,t){if(!t)return;const s=new PointerEvent("pointer"+e);t(s,ot(s))}class $s extends j{constructor(){super(...arguments),this.removeStartListeners=E,this.removeEndListeners=E,this.removeAccessibleListeners=E,this.startPointerPress=(t,s)=>{if(this.isPressing)return;this.removeEndListeners();const i=this.node.getProps(),u=M(window,"pointerup",(r,a)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c,globalTapTarget:h}=this.node.getProps();S.update(()=>{!h&&!Ke(this.node.current,r.target)?c&&c(r,a):l&&l(r,a)})},{passive:!(i.onTap||i.onPointerUp)}),n=M(window,"pointercancel",(r,a)=>this.cancelPress(r,a),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=G(u,n),this.startPress(t,s)},this.startAccessiblePress=()=>{const t=u=>{if(u.key!=="Enter"||this.isPressing)return;const n=r=>{r.key!=="Enter"||!this.checkPressEnd()||dt("up",(a,l)=>{const{onTap:c}=this.node.getProps();c&&S.update(()=>c(a,l))})};this.removeEndListeners(),this.removeEndListeners=R(this.node.current,"keyup",n),dt("down",(r,a)=>{this.startPress(r,a)})},s=R(this.node.current,"keydown",t),i=()=>{this.isPressing&&dt("cancel",(u,n)=>this.cancelPress(u,n))},o=R(this.node.current,"blur",i);this.removeAccessibleListeners=G(s,o)}}startPress(t,s){this.isPressing=!0;const{onTapStart:i,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&S.update(()=>i(t,s))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!_e()}cancelPress(t,s){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&S.update(()=>i(t,s))}mount(){const t=this.node.getProps(),s=M(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=R(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=G(s,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Vt=new WeakMap,ft=new WeakMap,zs=e=>{const t=Vt.get(e.target);t&&t(e)},Ys=e=>{e.forEach(zs)};function Xs({root:e,...t}){const s=e||document;ft.has(s)||ft.set(s,{});const i=ft.get(s),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(Ys,{root:e,...t})),i[o]}function qs(e,t,s){const i=Xs(t);return Vt.set(e,s),i.observe(e),()=>{Vt.delete(e),i.unobserve(e)}}const Zs={some:0,all:1};class Js extends j{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:s,margin:i,amount:o="some",once:u}=t,n={root:s?s.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:Zs[o]},r=a=>{const{isIntersecting:l}=a;if(this.isInView===l||(this.isInView=l,u&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),d=l?c:h;d&&d(a)};return qs(this.node.current,n,r)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:s}=this.node;["amount","margin","root"].some(Qs(t,s))&&this.startObserver()}unmount(){}}function Qs({viewport:e={}},{viewport:t={}}={}){return s=>e[s]!==t[s]}const ti={inView:{Feature:Js},tap:{Feature:$s},focus:{Feature:Ks},hover:{Feature:_s}};function $e(e,t){if(!Array.isArray(t))return!1;const s=t.length;if(s!==e.length)return!1;for(let i=0;iPromise.all(t.map(({animation:s,options:i})=>js(e,s,i)))}function ni(e){let t=ii(e);const s=ri();let i=!0;const o=(a,l)=>{const c=Bs(e,l);if(c){const{transition:h,transitionEnd:d,...f}=c;a={...a,...f,...d}}return a};function u(a){t=a(e)}function n(a,l){const c=e.getProps(),h=e.getVariantContext(!0)||{},d=[],f=new Set;let p={},m=1/0;for(let v=0;vm&&w,Rt=!1;const Et=Array.isArray(P)?P:[P];let _=Et.reduce(o,{});rt===!1&&(_={});const{prevResolvedValues:Mt={}}=y,ds={...Mt,..._},Bt=D=>{at=!0,f.has(D)&&(Rt=!0,f.delete(D)),y.needsAnimating[D]=!0};for(const D in ds){const K=_[D],lt=Mt[D];if(p.hasOwnProperty(D))continue;let ut=!1;vt(K)&&vt(lt)?ut=!$e(K,lt):ut=K!==lt,ut?K!==void 0?Bt(D):f.add(D):K!==void 0&&f.has(D)?Bt(D):y.protectedKeys[D]=!0}y.prevProp=P,y.prevResolvedValues=_,y.isActive&&(p={...p,..._}),i&&e.blockInitialAnimation&&(at=!1),at&&(!J||Rt)&&d.push(...Et.map(D=>({animation:D,options:{type:x,...a}})))}if(f.size){const v={};f.forEach(x=>{const y=e.getBaseTarget(x);y!==void 0&&(v[x]=y)}),d.push({animation:v})}let g=!!d.length;return i&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),i=!1,g?t(d):Promise.resolve()}function r(a,l,c){var h;if(s[a].isActive===l)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(a,l)}),s[a].isActive=l;const d=n(c,a);for(const f in s)s[f].protectedKeys={};return d}return{animateChanges:n,setActive:r,setAnimateFunction:u,getState:()=>s}}function oi(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$e(t,e):!1}function F(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ri(){return{animate:F(!0),whileInView:F(),whileHover:F(),whileTap:F(),whileDrag:F(),whileFocus:F(),exit:F()}}class ai extends j{constructor(t){super(t),t.animationState||(t.animationState=ni(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Ce(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:s}=this.node.prevProps||{};t!==s&&this.updateAnimationControlsSubscription()}unmount(){}}let li=0;class ui extends j{constructor(){super(...arguments),this.id=li++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:s,custom:i}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const u=this.node.animationState.setActive("exit",!t,{custom:i??this.node.getProps().custom});s&&!t&&u.then(()=>s(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const ci={animation:{Feature:ai},exit:{Feature:ui}},Ut=(e,t)=>Math.abs(e-t);function hi(e,t){const s=Ut(e.x,t.x),i=Ut(e.y,t.y);return Math.sqrt(s**2+i**2)}class ze{constructor(t,s,{transformPagePoint:i,contextWindow:o,dragSnapToOrigin:u=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=mt(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=hi(h.offset,{x:0,y:0})>=3;if(!d&&!f)return;const{point:p}=h,{timestamp:m}=A;this.history.push({...p,timestamp:m});const{onStart:g,onMove:v}=this.handlers;d||(g&&g(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,h)},this.handlePointerMove=(h,d)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=pt(d,this.transformPagePoint),S.update(this.updatePoint,!0)},this.handlePointerUp=(h,d)=>{this.end();const{onEnd:f,onSessionEnd:p,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=mt(h.type==="pointercancel"?this.lastMoveEventInfo:pt(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(h,g),p&&p(h,g)},!Ge(t))return;this.dragSnapToOrigin=u,this.handlers=s,this.transformPagePoint=i,this.contextWindow=o||window;const n=ot(t),r=pt(n,this.transformPagePoint),{point:a}=r,{timestamp:l}=A;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=s;c&&c(t,mt(r,this.history)),this.removeListeners=G(M(this.contextWindow,"pointermove",this.handlePointerMove),M(this.contextWindow,"pointerup",this.handlePointerUp),M(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),O(this.updatePoint)}}function pt(e,t){return t?{point:t(e.point)}:e}function Nt(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mt({point:e},t){return{point:e,delta:Nt(e,Ye(t)),offset:Nt(e,di(t)),velocity:fi(t,.1)}}function di(e){return e[0]}function Ye(e){return e[e.length-1]}function fi(e,t){if(e.length<2)return{x:0,y:0};let s=e.length-1,i=null;const o=Ye(e);for(;s>=0&&(i=e[s],!(o.timestamp-i.timestamp>Fs(t)));)s--;if(!i)return{x:0,y:0};const u=ks(o.timestamp-i.timestamp);if(u===0)return{x:0,y:0};const n={x:(o.x-i.x)/u,y:(o.y-i.y)/u};return n.x===1/0&&(n.x=0),n.y===1/0&&(n.y=0),n}function C(e){return e.max-e.min}function St(e,t=0,s=.01){return Math.abs(e-t)<=s}function Gt(e,t,s,i=.5){e.origin=i,e.originPoint=V(t.min,t.max,e.origin),e.scale=C(s)/C(t),(St(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=V(s.min,s.max,e.origin)-e.originPoint,(St(e.translate)||isNaN(e.translate))&&(e.translate=0)}function q(e,t,s,i){Gt(e.x,t.x,s.x,i?i.originX:void 0),Gt(e.y,t.y,s.y,i?i.originY:void 0)}function Ht(e,t,s){e.min=s.min+t.min,e.max=e.min+C(t)}function pi(e,t,s){Ht(e.x,t.x,s.x),Ht(e.y,t.y,s.y)}function Wt(e,t,s){e.min=t.min-s.min,e.max=e.min+C(t)}function Z(e,t,s){Wt(e.x,t.x,s.x),Wt(e.y,t.y,s.y)}function mi(e,{min:t,max:s},i){return t!==void 0&&es&&(e=i?V(s,e,i.max):Math.min(e,s)),e}function _t(e,t,s){return{min:t!==void 0?e.min+t:void 0,max:s!==void 0?e.max+s-(e.max-e.min):void 0}}function gi(e,{top:t,left:s,bottom:i,right:o}){return{x:_t(e.x,s,o),y:_t(e.y,t,i)}}function Kt(e,t){let s=t.min-e.min,i=t.max-e.max;return t.max-t.mini?s=Pt(t.min,t.max-i,e.min):i>o&&(s=Pt(e.min,e.max-o,t.min)),we(0,1,s)}function xi(e,t){const s={};return t.min!==void 0&&(s.min=t.min-e.min),t.max!==void 0&&(s.max=t.max-e.min),s}const Dt=.35;function Pi(e=Dt){return e===!1?e=0:e===!0&&(e=Dt),{x:$t(e,"left","right"),y:$t(e,"top","bottom")}}function $t(e,t,s){return{min:zt(e,t),max:zt(e,s)}}function zt(e,t){return typeof e=="number"?e:e[t]||0}const Yt=()=>({translate:0,scale:1,origin:0,originPoint:0}),U=()=>({x:Yt(),y:Yt()}),Xt=()=>({min:0,max:0}),T=()=>({x:Xt(),y:Xt()});function L(e){return[e("x"),e("y")]}function Xe({top:e,left:t,right:s,bottom:i}){return{x:{min:t,max:s},y:{min:e,max:i}}}function Ti({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Vi(e,t){if(!t)return e;const s=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:s.y,left:s.x,bottom:i.y,right:i.x}}function gt(e){return e===void 0||e===1}function At({scale:e,scaleX:t,scaleY:s}){return!gt(e)||!gt(t)||!gt(s)}function k(e){return At(e)||qe(e)||e.z||e.rotate||e.rotateX||e.rotateY}function qe(e){return qt(e.x)||qt(e.y)}function qt(e){return e&&e!=="0%"}function it(e,t,s){const i=e-s,o=t*i;return s+o}function Zt(e,t,s,i,o){return o!==void 0&&(e=it(e,o,i)),it(e,s,i)+t}function Ct(e,t=0,s=1,i,o){e.min=Zt(e.min,t,s,i,o),e.max=Zt(e.max,t,s,i,o)}function Ze(e,{x:t,y:s}){Ct(e.x,t.translate,t.scale,t.originPoint),Ct(e.y,s.translate,s.scale,s.originPoint)}function Si(e,t,s,i=!1){const o=s.length;if(!o)return;t.x=t.y=1;let u,n;for(let r=0;r1.0000000000001||e<.999999999999?e:1}function B(e,t){e.min=e.min+t,e.max=e.max+t}function Qt(e,t,[s,i,o]){const u=t[o]!==void 0?t[o]:.5,n=V(e.min,e.max,u);Ct(e,t[s],t[i],n,t.scale)}const Di=["x","scaleX","originX"],Ai=["y","scaleY","originY"];function N(e,t){Qt(e.x,t,Di),Qt(e.y,t,Ai)}function Je(e,t){return Xe(Vi(e.getBoundingClientRect(),t))}function Ci(e,t,s){const i=Je(e,s),{scroll:o}=t;return o&&(B(i.x,o.offset.x),B(i.y,o.offset.y)),i}const Qe=({current:e})=>e?e.ownerDocument.defaultView:null,bi=new WeakMap;class Li{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=T(),this.visualElement=t}start(t,{snapToCursor:s=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(ot(c,"page").point)},u=(c,h)=>{const{drag:d,dragPropagation:f,onDragStart:p}=this.getProps();if(d&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=We(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),L(g=>{let v=this.getAxisMotionValue(g).get()||0;if(et.test(v)){const{projection:x}=this.visualElement;if(x&&x.layout){const y=x.layout.layoutBox[g];y&&(v=C(y)*(parseFloat(v)/100))}}this.originPoint[g]=v}),p&&S.update(()=>p(c,h),!1,!0);const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},n=(c,h)=>{const{dragPropagation:d,dragDirectionLock:f,onDirectionLock:p,onDrag:m}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:g}=h;if(f&&this.currentDirection===null){this.currentDirection=wi(g),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,g),this.updateAxis("y",h.point,g),this.visualElement.render(),m&&m(c,h)},r=(c,h)=>this.stop(c,h),a=()=>L(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new ze(t,{onSessionStart:o,onStart:u,onMove:n,onSessionEnd:r,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Qe(this.visualElement)})}stop(t,s){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:u}=this.getProps();u&&S.update(()=>u(t,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:s}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(t,s,i){const{drag:o}=this.getProps();if(!i||!Q(t,o,this.currentDirection))return;const u=this.getAxisMotionValue(t);let n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=mi(n,this.constraints[t],this.elastic[t])),u.set(n)}resolveConstraints(){var t;const{dragConstraints:s,dragElastic:i}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,u=this.constraints;s&&Y(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&o?this.constraints=gi(o.layoutBox,s):this.constraints=!1,this.elastic=Pi(i),u!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&L(n=>{this.getAxisMotionValue(n)&&(this.constraints[n]=xi(o.layoutBox[n],this.constraints[n]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:s}=this.getProps();if(!t||!Y(t))return!1;const i=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const u=Ci(i,o.root,this.visualElement.getTransformPagePoint());let n=yi(o.layout.layoutBox,u);if(s){const r=s(Ti(n));this.hasMutatedConstraints=!!r,r&&(n=Xe(r))}return n}startAnimation(t){const{drag:s,dragMomentum:i,dragElastic:o,dragTransition:u,dragSnapToOrigin:n,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=L(c=>{if(!Q(c,s,this.currentDirection))return;let h=a&&a[c]||{};n&&(h={min:0,max:0});const d=o?200:1e6,f=o?40:1e7,p={type:"inertia",velocity:i?t[c]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...u,...h};return this.startAxisValueAnimation(c,p)});return Promise.all(l).then(r)}startAxisValueAnimation(t,s){const i=this.getAxisMotionValue(t);return i.start(je(t,i,0,s))}stopAnimation(){L(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){L(t=>{var s;return(s=this.getAxisMotionValue(t).animation)===null||s===void 0?void 0:s.pause()})}getAnimationState(t){var s;return(s=this.getAxisMotionValue(t).animation)===null||s===void 0?void 0:s.state}getAxisMotionValue(t){const s="_drag"+t.toUpperCase(),i=this.visualElement.getProps(),o=i[s];return o||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){L(s=>{const{drag:i}=this.getProps();if(!Q(s,i,this.currentDirection))return;const{projection:o}=this.visualElement,u=this.getAxisMotionValue(s);if(o&&o.layout){const{min:n,max:r}=o.layout.layoutBox[s];u.set(t[s]-V(n,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:s}=this.getProps(),{projection:i}=this.visualElement;if(!Y(s)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};L(n=>{const r=this.getAxisMotionValue(n);if(r){const a=r.get();o[n]=vi({min:a,max:a},this.constraints[n])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),L(n=>{if(!Q(n,t,null))return;const r=this.getAxisMotionValue(n),{min:a,max:l}=this.constraints[n];r.set(V(a,l,o[n]))})}addListeners(){if(!this.visualElement.current)return;bi.set(this.visualElement,this);const t=this.visualElement.current,s=M(t,"pointerdown",a=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(a)}),i=()=>{const{dragConstraints:a}=this.getProps();Y(a)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,u=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),i();const n=R(window,"resize",()=>this.scalePositionWithinConstraints()),r=o.addEventListener("didUpdate",({delta:a,hasLayoutChanged:l})=>{this.isDragging&&l&&(L(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=a[c].translate,h.set(h.get()+a[c].translate))}),this.visualElement.render())});return()=>{n(),s(),u(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:u=!1,dragElastic:n=Dt,dragMomentum:r=!0}=t;return{...t,drag:s,dragDirectionLock:i,dragPropagation:o,dragConstraints:u,dragElastic:n,dragMomentum:r}}}function Q(e,t,s){return(t===!0||t===e)&&(s===null||s===e)}function wi(e,t=10){let s=null;return Math.abs(e.y)>t?s="y":Math.abs(e.x)>t&&(s="x"),s}class Ri extends j{constructor(t){super(t),this.removeGroupControls=E,this.removeListeners=E,this.controls=new Li(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||E}unmount(){this.removeGroupControls(),this.removeListeners()}}const te=e=>(t,s)=>{e&&S.update(()=>e(t,s))};class Ei extends j{constructor(){super(...arguments),this.removePointerDownListener=E}onPointerDown(t){this.session=new ze(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Qe(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:s,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:te(t),onStart:te(s),onMove:i,onEnd:(u,n)=>{delete this.session,o&&S.update(()=>o(u,n))}}}mount(){this.removePointerDownListener=M(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Mi(){const e=X.useContext(fs);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:s,register:i}=e,o=X.useId();return X.useEffect(()=>i(o),[]),!t&&s?[!1,()=>s&&s(o)]:[!0]}const tt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ee(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const z={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(nt.test(e))e=parseFloat(e);else return e;const s=ee(e,t.target.x),i=ee(e,t.target.y);return`${s}% ${i}%`}},Bi={correct:(e,{treeScale:t,projectionDelta:s})=>{const i=e,o=Ft.parse(e);if(o.length>5)return i;const u=Ft.createTransformer(e),n=typeof o[0]!="number"?1:0,r=s.x.scale*t.x,a=s.y.scale*t.y;o[0+n]/=r,o[1+n]/=a;const l=V(r,a,.5);return typeof o[2+n]=="number"&&(o[2+n]/=l),typeof o[3+n]=="number"&&(o[3+n]/=l),u(o)}};class ji extends Ne.Component{componentDidMount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:i,layoutId:o}=this.props,{projection:u}=t;ps(Fi),u&&(s.group&&s.group.add(u),i&&i.register&&o&&i.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),tt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:s,visualElement:i,drag:o,isPresent:u}=this.props,n=i.projection;return n&&(n.isPresent=u,o||t.layoutDependency!==s||s===void 0?n.willUpdate():this.safeToRemove(),t.isPresent!==u&&(u?n.promote():n.relegate()||S.postRender(()=>{const r=n.getStack();(!r||!r.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Re.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:i}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ts(e){const[t,s]=Mi(),i=X.useContext(ms);return Ne.createElement(ji,{...e,layoutGroup:i,switchLayoutGroup:X.useContext(gs),isPresent:t,safeToRemove:s})}const Fi={borderRadius:{...z,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomLeftRadius:z,borderBottomRightRadius:z,boxShadow:Bi},es=["TopLeft","TopRight","BottomLeft","BottomRight"],ki=es.length,se=e=>typeof e=="string"?parseFloat(e):e,ie=e=>typeof e=="number"||nt.test(e);function Ii(e,t,s,i,o,u){o?(e.opacity=V(0,s.opacity!==void 0?s.opacity:1,Oi(i)),e.opacityExit=V(t.opacity!==void 0?t.opacity:1,0,Ui(i))):u&&(e.opacity=V(t.opacity!==void 0?t.opacity:1,s.opacity!==void 0?s.opacity:1,i));for(let n=0;nit?1:s(Pt(e,t,i))}function oe(e,t){e.min=t.min,e.max=t.max}function b(e,t){oe(e.x,t.x),oe(e.y,t.y)}function re(e,t,s,i,o){return e-=t,e=it(e,1/s,i),o!==void 0&&(e=it(e,1/o,i)),e}function Ni(e,t=0,s=1,i=.5,o,u=e,n=e){if(et.test(t)&&(t=parseFloat(t),t=V(n.min,n.max,t/100)-n.min),typeof t!="number")return;let r=V(u.min,u.max,i);e===u&&(r-=t),e.min=re(e.min,t,s,r,o),e.max=re(e.max,t,s,r,o)}function ae(e,t,[s,i,o],u,n){Ni(e,t[s],t[i],t[o],t.scale,u,n)}const Gi=["x","scaleX","originX"],Hi=["y","scaleY","originY"];function le(e,t,s,i){ae(e.x,t,Gi,s?s.x:void 0,i?i.x:void 0),ae(e.y,t,Hi,s?s.y:void 0,i?i.y:void 0)}function ue(e){return e.translate===0&&e.scale===1}function is(e){return ue(e.x)&&ue(e.y)}function Wi(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function ns(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function ce(e){return C(e.x)/C(e.y)}class _i{constructor(){this.members=[]}add(t){Fe(this.members,t),t.scheduleRender()}remove(t){if(ke(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(t){const s=this.members.findIndex(o=>t===o);if(s===0)return!1;let i;for(let o=s;o>=0;o--){const u=this.members[o];if(u.isPresent!==!1){i=u;break}}return i?(this.promote(i),!0):!1}promote(t,s){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,s&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:s,resumingFrom:i}=t;s.onExitComplete&&s.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function he(e,t,s){let i="";const o=e.x.translate/t.x,u=e.y.translate/t.y;if((o||u)&&(i=`translate3d(${o}px, ${u}px, 0) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),s){const{rotate:a,rotateX:l,rotateY:c}=s;a&&(i+=`rotate(${a}deg) `),l&&(i+=`rotateX(${l}deg) `),c&&(i+=`rotateY(${c}deg) `)}const n=e.x.scale*t.x,r=e.y.scale*t.y;return(n!==1||r!==1)&&(i+=`scale(${n}, ${r})`),i||"none"}const Ki=(e,t)=>e.depth-t.depth;class $i{constructor(){this.children=[],this.isDirty=!1}add(t){Fe(this.children,t),this.isDirty=!0}remove(t){ke(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ki),this.isDirty=!1,this.children.forEach(t)}}function zi(e,t){const s=Ie.now(),i=({timestamp:o})=>{const u=o-s;u>=t&&(O(i),e(u-t))};return S.read(i,!0),()=>O(i)}function Yi(e){window.MotionDebug&&window.MotionDebug.record(e)}function Xi(e){return e instanceof SVGElement&&e.tagName!=="svg"}function qi(e,t,s){const i=H(e)?e:st(e);return i.start(je("",i,t,s)),i.animation}const de=["","X","Y","Z"],Zi={visibility:"hidden"},fe=1e3;let Ji=0;const I={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function os({attachResizeListener:e,defaultParent:t,measureScroll:s,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(n={},r=t?.()){this.id=Ji++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,I.totalNodes=I.resolvedTargetDeltas=I.recalculatedProjection=0,this.nodes.forEach(en),this.nodes.forEach(an),this.nodes.forEach(ln),this.nodes.forEach(sn),Yi(I)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let a=0;athis.root.updateBlockedByResize=!1;e(n,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=zi(d,250),tt.hasAnimatedSinceResize&&(tt.hasAnimatedSinceResize=!1,this.nodes.forEach(me))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:d,hasRelativeTargetChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||fn,{onLayoutAnimationStart:g,onLayoutAnimationComplete:v}=c.getProps(),x=!this.targetLayout||!ns(this.targetLayout,p)||f,y=!d&&f;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||d&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,y);const P={...Os(m,"layout"),onPlay:g,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else d||me(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const n=this.getStack();n&&n.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,O(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(un),this.animationId++)}getTransformTemplate(){const{visualElement:n}=this.options;return n&&n.getProps().transformTemplate}willUpdate(n=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(nn),this.sharedNodes.forEach(cn)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,S.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){S.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a{const w=P/1e3;ge(h.x,n.x,w),ge(h.y,n.y,w),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Z(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),hn(this.relativeTarget,this.relativeTargetOrigin,d,w),y&&Wi(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=T()),b(y,this.relativeTarget)),m&&(this.animationValues=c,Ii(c,l,this.latestValues,w,x,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(n){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(O(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=S.update(()=>{tt.hasAnimatedSinceResize=!0,this.currentAnimation=qi(0,fe,{...n,onUpdate:r=>{this.mixTargetDelta(r),n.onUpdate&&n.onUpdate(r)},onComplete:()=>{n.onComplete&&n.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const n=this.getStack();n&&n.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const n=this.getLead();let{targetWithTransforms:r,target:a,layout:l,latestValues:c}=n;if(!(!r||!a||!l)){if(this!==n&&this.layout&&l&&rs(this.options.animationType,this.layout.layoutBox,l.layoutBox)){a=this.target||T();const h=C(this.layout.layoutBox.x);a.x.min=n.target.x.min,a.x.max=a.x.min+h;const d=C(this.layout.layoutBox.y);a.y.min=n.target.y.min,a.y.max=a.y.min+d}b(r,a),N(r,c),q(this.projectionDeltaWithTransform,this.layoutCorrected,r,c)}}registerSharedNode(n,r){this.sharedNodes.has(n)||this.sharedNodes.set(n,new _i),this.sharedNodes.get(n).add(r);const l=r.options.initialPromotionConfig;r.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(r):void 0})}isLead(){const n=this.getStack();return n?n.lead===this:!0}getLead(){var n;const{layoutId:r}=this.options;return r?((n=this.getStack())===null||n===void 0?void 0:n.lead)||this:this}getPrevLead(){var n;const{layoutId:r}=this.options;return r?(n=this.getStack())===null||n===void 0?void 0:n.prevLead:void 0}getStack(){const{layoutId:n}=this.options;if(n)return this.root.sharedNodes.get(n)}promote({needsReset:n,transition:r,preserveFollowOpacity:a}={}){const l=this.getStack();l&&l.promote(this,a),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})}relegate(){const n=this.getStack();return n?n.relegate(this):!1}resetRotation(){const{visualElement:n}=this.options;if(!n)return;let r=!1;const{latestValues:a}=n;if((a.rotate||a.rotateX||a.rotateY||a.rotateZ)&&(r=!0),!r)return;const l={};for(let c=0;c{var r;return(r=n.currentAnimation)===null||r===void 0?void 0:r.stop()}),this.root.nodes.forEach(pe),this.root.sharedNodes.clear()}}}function Qi(e){e.updateLayout()}function tn(e){var t;const s=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&s&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:o}=e.layout,{animationType:u}=e.options,n=s.source!==e.layout.source;u==="size"?L(h=>{const d=n?s.measuredBox[h]:s.layoutBox[h],f=C(d);d.min=i[h].min,d.max=d.min+f}):rs(u,s.layoutBox,i)&&L(h=>{const d=n?s.measuredBox[h]:s.layoutBox[h],f=C(i[h]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+f)});const r=U();q(r,i,s.layoutBox);const a=U();n?q(a,e.applyTransform(o,!0),s.measuredBox):q(a,i,s.layoutBox);const l=!is(r);let c=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:f}=h;if(d&&f){const p=T();Z(p,s.layoutBox,d.layoutBox);const m=T();Z(m,i,f.layoutBox),ns(p,m)||(c=!0),h.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=p,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:s,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function en(e){I.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function sn(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nn(e){e.clearSnapshot()}function pe(e){e.clearMeasurements()}function on(e){e.isLayoutDirty=!1}function rn(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function me(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function an(e){e.resolveTargetDelta()}function ln(e){e.calcProjection()}function un(e){e.resetRotation()}function cn(e){e.removeLeadSnapshot()}function ge(e,t,s){e.translate=V(t.translate,0,s),e.scale=V(t.scale,1,s),e.origin=t.origin,e.originPoint=t.originPoint}function ye(e,t,s,i){e.min=V(t.min,s.min,i),e.max=V(t.max,s.max,i)}function hn(e,t,s,i){ye(e.x,t.x,s.x,i),ye(e.y,t.y,s.y,i)}function dn(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const fn={duration:.45,ease:[.4,0,.1,1]},ve=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),xe=ve("applewebkit/")&&!ve("chrome/")?Math.round:E;function Pe(e){e.min=xe(e.min),e.max=xe(e.max)}function pn(e){Pe(e.x),Pe(e.y)}function rs(e,t,s){return e==="position"||e==="preserve-aspect"&&!St(ce(t),ce(s),.2)}const mn=os({attachResizeListener:(e,t)=>R(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),yt={current:void 0},as=os({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!yt.current){const e=new mn({});e.mount(window),e.setOptions({layoutScroll:!0}),yt.current=e}return yt.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),gn={pan:{Feature:Ei},drag:{Feature:Ri,ProjectionNode:as,MeasureLayout:ts}},yn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function vn(e){const t=yn.exec(e);if(!t)return[,];const[,s,i]=t;return[s,i]}function bt(e,t,s=1){const[i,o]=vn(e);if(!i)return;const u=window.getComputedStyle(t).getPropertyValue(i);if(u){const n=u.trim();return Us(n)?parseFloat(n):n}else return xt(o)?bt(o,t,s+1):o}function xn(e,{...t},s){const i=e.current;if(!(i instanceof Element))return{target:t,transitionEnd:s};s&&(s={...s}),e.values.forEach(o=>{const u=o.get();if(!xt(u))return;const n=bt(u,i);n&&o.set(n)});for(const o in t){const u=t[o];if(!xt(u))continue;const n=bt(u,i);n&&(t[o]=n,s||(s={}),s[o]===void 0&&(s[o]=u))}return{target:t,transitionEnd:s}}const Pn=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ls=e=>Pn.has(e),Tn=e=>Object.keys(e).some(ls),Te=e=>e===vs||e===nt,Ve=(e,t)=>parseFloat(e.split(", ")[t]),Se=(e,t)=>(s,{transform:i})=>{if(i==="none"||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return Ve(o[1],t);{const u=i.match(/^matrix\((.+)\)$/);return u?Ve(u[1],e):0}},Vn=new Set(["x","y","z"]),Sn=ys.filter(e=>!Vn.has(e));function Dn(e){const t=[];return Sn.forEach(s=>{const i=e.getValue(s);i!==void 0&&(t.push([s,i.get()]),i.set(s.startsWith("scale")?1:0))}),t.length&&e.render(),t}const W={width:({x:e},{paddingLeft:t="0",paddingRight:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),height:({y:e},{paddingTop:t="0",paddingBottom:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Se(4,13),y:Se(5,14)};W.translateX=W.x;W.translateY=W.y;const An=(e,t,s)=>{const i=t.measureViewportBox(),o=t.current,u=getComputedStyle(o),{display:n}=u,r={};n==="none"&&t.setStaticValue("display",e.display||"block"),s.forEach(l=>{r[l]=W[l](i,u)}),t.render();const a=t.measureViewportBox();return s.forEach(l=>{const c=t.getValue(l);c&&c.jump(r[l]),e[l]=W[l](a,u)}),e},Cn=(e,t,s={},i={})=>{t={...t},i={...i};const o=Object.keys(t).filter(ls);let u=[],n=!1;const r=[];if(o.forEach(a=>{const l=e.getValue(a);if(!e.hasValue(a))return;let c=s[a],h=$(c);const d=t[a];let f;if(vt(d)){const p=d.length,m=d[0]===null?1:0;c=d[m],h=$(c);for(let g=m;g=0?window.pageYOffset:null,l=An(t,e,r);return u.length&&u.forEach(([c,h])=>{e.getValue(c).set(h)}),e.render(),Ee&&a!==null&&window.scrollTo({top:a}),{target:l,transitionEnd:i}}else return{target:t,transitionEnd:i}};function bn(e,t,s,i){return Tn(t)?Cn(e,t,s,i):{target:t,transitionEnd:i}}const Ln=(e,t,s,i)=>{const o=xn(e,t,i);return t=o.target,i=o.transitionEnd,bn(e,t,s,i)},Lt={current:null},us={current:!1};function wn(){if(us.current=!0,!!Ee)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Lt.current=e.matches;e.addListener(t),t()}else Lt.current=!1}function Rn(e,t,s){const{willChange:i}=t;for(const o in t){const u=t[o],n=s[o];if(H(u))e.addValue(o,u),Tt(i)&&i.add(o);else if(H(n))e.addValue(o,st(u,{owner:e})),Tt(i)&&i.remove(o);else if(n!==u)if(e.hasValue(o)){const r=e.getValue(o);!r.hasAnimated&&r.set(u)}else{const r=e.getStaticValue(o);e.addValue(o,st(r!==void 0?r:u,{owner:e}))}}for(const o in s)t[o]===void 0&&e.removeValue(o);return t}const De=new WeakMap,cs=Object.keys(Me),En=cs.length,Ae=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Mn=Be.length;class Bn{constructor({parent:t,props:s,presenceContext:i,reducedMotionConfig:o,visualState:u},n={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>S.render(this.render,!1,!0);const{latestValues:r,renderState:a}=u;this.latestValues=r,this.baseTarget={...r},this.initialValues=s.initial?{...r}:{},this.renderState=a,this.parent=t,this.props=s,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=n,this.isControllingVariants=xs(s),this.isVariantNode=Ps(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(s,{});for(const h in c){const d=c[h];r[h]!==void 0&&H(d)&&(d.set(r[h],!1),Tt(l)&&l.add(h))}}scrapeMotionValuesFromProps(t,s){return{}}mount(t){this.current=t,De.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),us.current||wn(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Lt.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){De.delete(this.current),this.projection&&this.projection.unmount(),O(this.notifyUpdate),O(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,s){const i=wt.has(t),o=s.on("change",n=>{this.latestValues[t]=n,this.props.onUpdate&&S.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),u=s.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),u()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...s},i,o,u){let n,r;for(let a=0;athis.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:u,layoutScroll:d,layoutRoot:f})}return r}updateFeatures(){for(const t in this.features){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):T()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,s){this.latestValues[t]=s}makeTargetAnimatable(t,s=!0){return this.makeTargetAnimatableFromInstance(t,s)}update(t,s){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let i=0;is.variantChildren.delete(t)}addValue(t,s){s!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,s)),this.values.set(t,s),this.latestValues[t]=s.get()}removeValue(t){this.values.delete(t);const s=this.valueSubscriptions.get(t);s&&(s(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,s){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&s!==void 0&&(i=st(s,{owner:this}),this.addValue(t,i)),i}readValue(t){var s;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,s){this.baseTarget[t]=s}getBaseTarget(t){var s;const{initial:i}=this.props,o=typeof i=="string"||typeof i=="object"?(s=Ts(this.props,i))===null||s===void 0?void 0:s[t]:void 0;if(i&&o!==void 0)return o;const u=this.getBaseTargetFromProps(this.props,t);return u!==void 0&&!H(u)?u:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,s){return this.events[t]||(this.events[t]=new Oe),this.events[t].add(s)}notify(t,...s){this.events[t]&&this.events[t].notify(...s)}}class hs extends Bn{sortInstanceNodePosition(t,s){return t.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(t,s){return t.style?t.style[s]:void 0}removeValueFromRenderState(t,{vars:s,style:i}){delete s[t],delete i[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:s,...i},o){const u=Gs(i,t||{},this);if(o){Hs(this,i,u);const n=Ln(this,i,u,s);s=n.transitionEnd,i=n.target}return{transition:t,transitionEnd:s,...i}}}function jn(e){return window.getComputedStyle(e)}class Fn extends hs{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,s){if(wt.has(s)){const i=Ue(s);return i&&i.default||0}else{const i=jn(t),o=(Vs(s)?i.getPropertyValue(s):i[s])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:s}){return Je(t,s)}build(t,s,i,o){Ss(t,s,i,o.transformTemplate)}scrapeMotionValuesFromProps(t,s){return Ds(t,s)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;H(t)&&(this.childSubscription=t.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}renderInstance(t,s,i,o){As(t,s,i,o)}}class kn extends hs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,s){return t[s]}readValueFromInstance(t,s){if(wt.has(s)){const i=Ue(s);return i&&i.default||0}return s=Cs.has(s)?s:bs(s),t.getAttribute(s)}measureInstanceViewportBox(){return T()}scrapeMotionValuesFromProps(t,s){return Ls(t,s)}build(t,s,i,o){ws(t,s,i,this.isSVGTag,o.transformTemplate)}renderInstance(t,s,i,o){Rs(t,s,i,o)}mount(t){this.isSVGTag=Es(t.tagName),super.mount(t)}}const In=(e,t)=>Ms(e)?new kn(t,{enableHardwareAcceleration:!1}):new Fn(t,{enableHardwareAcceleration:!0}),On={layout:{ProjectionNode:as,MeasureLayout:ts}},Un={renderer:In,...ci,...ti},Kn={...Un,...gn,...On};export{Kn as d}; diff --git a/assets/flowDb-d35e309a-cVXpOrT2.js b/assets/flowDb-d35e309a-cVXpOrT2.js new file mode 100644 index 00000000000..5870d20a77f --- /dev/null +++ b/assets/flowDb-d35e309a-cVXpOrT2.js @@ -0,0 +1,10 @@ +import{c as et,I as me,s as ye,g as ve,a as Ve,b as Le,o as Ie,p as Re,l as J1,u as dt,q as Ne,j as we,h as w1}from"./index.demo-_07sssxB.js";var pt=function(){var e=function(f1,a,o,f){for(o=o||{},f=f1.length;f--;o[f1[f]]=a);return o},u=[1,4],i=[1,3],n=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],U=[1,14],F=[1,15],w=[1,16],X=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],C=[1,49],k=[1,48],l1=[1,29],U1=[1,30],G1=[1,31],M1=[1,32],K1=[1,33],B=[1,44],x=[1,46],m=[1,42],y=[1,47],v=[1,43],V=[1,50],L=[1,45],I=[1,51],R=[1,52],Y1=[1,34],j1=[1,35],z1=[1,36],X1=[1,37],I1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],W=[1,61],Q=[1,60],Z=[1,62],H1=[8,9,11,73,75],k1=[1,88],b1=[1,93],g1=[1,92],D1=[1,89],F1=[1,85],T1=[1,91],S1=[1,87],C1=[1,94],_1=[1,90],B1=[1,95],x1=[1,86],q1=[8,9,10,11,73,75],N=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Et=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],R1=[42,58,86,99,102,103,106,108,111,112,113],kt=[1,121],bt=[1,120],gt=[1,128],Dt=[1,142],Ft=[1,143],Tt=[1,144],St=[1,145],Ct=[1,130],_t=[1,132],Bt=[1,136],xt=[1,137],mt=[1,138],yt=[1,139],vt=[1,140],Vt=[1,141],Lt=[1,146],It=[1,147],Rt=[1,126],Nt=[1,127],wt=[1,134],Ot=[1,129],Pt=[1,133],Ut=[1,131],nt=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Gt=[1,149],T=[8,9,11],K=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],p=[1,169],O=[1,165],P=[1,166],A=[1,170],d=[1,167],E=[1,168],m1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mt=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],J=[1,235],$=[1,233],t1=[1,237],e1=[1,231],s1=[1,232],u1=[1,234],i1=[1,236],r1=[1,238],y1=[1,255],Kt=[8,9,11,103],q=[8,9,10,11,58,81,102,103,106,107,108,109],at={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeperator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,verticeStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,f,r,S,t,N1){var s=t.length-1;switch(S){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:this.$=t[s];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 43:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 49:this.$=t[s];break;case 50:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],r.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 71:this.$=t[s];break;case 72:var Y=r.destructLink(t[s],t[s-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,text:t[s-1]};break;case 73:this.$={text:t[s],type:"text"};break;case 74:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:this.$={text:t[s],type:"string"};break;case 76:this.$={text:t[s],type:"markdown"};break;case 77:var Y=r.destructLink(t[s]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length};break;case 78:this.$=t[s-1];break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 94:this.$={text:t[s],type:"text"};break;case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 96:this.$={text:t[s],type:"text"};break;case 98:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 121:case 123:this.$=[t[s]];break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 174:this.$=t[s];break;case 175:this.$=t[s-1]+""+t[s];break;case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:u,10:i,12:n},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:n},{4:8,9:u,10:i,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:C,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:I1,15:53,18:56},e(b,[2,3]),e(b,[2,4]),e(b,[2,5]),e(b,[2,6]),e(b,[2,7]),e(b,[2,8]),{8:W,9:Q,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:W,9:Q,11:Z,21:66},{8:W,9:Q,11:Z,21:67},{8:W,9:Q,11:Z,21:68},{8:W,9:Q,11:Z,21:69},{8:W,9:Q,11:Z,21:70},{8:W,9:Q,10:[1,71],11:Z,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(H1,[2,46],{18:75,10:I1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:k1,42:b1,58:g1,77:[1,83],86:D1,92:[1,80],94:[1,81],98:82,102:F1,103:T1,106:S1,108:C1,111:_1,112:B1,113:x1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(q1,[2,47]),e(q1,[2,49],{44:[1,96]}),e(N,[2,67],{110:109,29:[1,97],42:C,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:B,99:x,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(M,[2,174]),e(M,[2,135]),e(M,[2,136]),e(M,[2,137]),e(M,[2,138]),e(M,[2,139]),e(M,[2,140]),e(M,[2,141]),e(M,[2,142]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Et,[2,26],{18:111,10:I1}),e(b,[2,27]),{40:112,41:38,42:C,43:39,45:40,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(R1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:kt,116:bt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:gt,12:Dt,14:Ft,27:Tt,28:122,32:St,42:Ct,58:_t,73:Bt,77:[1,124],78:[1,125],80:135,81:xt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:123,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(nt,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(H1,[2,45],{42:Gt}),{42:C,45:150,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{99:[1,151],100:152,102:[1,153]},{42:C,45:154,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{42:C,45:155,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:S1,108:C1,111:_1,112:B1,113:x1}),e(T,[2,110],{10:[1,161]}),e(K,[2,176]),e(K,[2,163]),e(K,[2,164]),e(K,[2,165]),e(K,[2,166]),e(K,[2,167]),e(K,[2,168]),e(K,[2,169]),e(K,[2,170]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),{42:C,45:162,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{30:163,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:171,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:174,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:175,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:176,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:181,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:182,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:183,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(M,[2,175]),e(c,[2,20]),e(Et,[2,25]),e(H1,[2,43],{18:184,10:I1}),e(R1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:kt,116:bt},e(m1,[2,73]),e(m1,[2,75]),e(m1,[2,76]),e(m1,[2,161]),e(m1,[2,162]),{8:W,9:Q,10:gt,11:Z,12:Dt,14:Ft,21:191,27:Tt,29:[1,190],32:St,42:Ct,58:_t,73:Bt,80:135,81:xt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:192,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:C,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:I1,18:194},{10:[1,195],42:C,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,196]},{10:[1,197],103:[1,198]},e(Mt,[2,121]),{10:[1,199],42:C,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,200],42:C,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(K,[2,177]),{77:[1,205],95:[1,206]},e(q1,[2,50],{110:109,42:C,58:k,86:B,99:x,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),{31:[1,207],65:p,79:208,113:A,114:d,115:E},e(h1,[2,79]),e(h1,[2,81]),e(h1,[2,82]),e(h1,[2,146]),e(h1,[2,147]),e(h1,[2,148]),e(h1,[2,149]),{47:[1,209],65:p,79:208,113:A,114:d,115:E},{30:210,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{49:[1,211],65:p,79:208,113:A,114:d,115:E},{51:[1,212],65:p,79:208,113:A,114:d,115:E},{53:[1,213],65:p,79:208,113:A,114:d,115:E},{55:[1,214],65:p,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:p,79:208,113:A,114:d,115:E},{64:[1,217],65:p,79:208,113:A,114:d,115:E},{30:218,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{31:[1,219],65:p,79:208,113:A,114:d,115:E},{65:p,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:p,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(H1,[2,44],{42:Gt}),e(R1,[2,70]),e(R1,[2,69]),{60:[1,224],65:p,79:208,113:A,114:d,115:E},e(R1,[2,72]),e(m1,[2,74]),{30:225,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(nt,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:C,43:39,45:40,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{10:J,58:$,81:t1,89:228,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:239,101:[1,240],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:241,101:[1,242],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{102:[1,243]},{10:J,58:$,81:t1,89:244,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{42:C,45:245,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(N,[2,51]),e(h1,[2,80]),e(N,[2,52]),{49:[1,250],65:p,79:208,113:A,114:d,115:E},e(N,[2,59]),e(N,[2,54]),e(N,[2,55]),e(N,[2,56]),{106:[1,251]},e(N,[2,58]),e(N,[2,60]),{64:[1,252],65:p,79:208,113:A,114:d,115:E},e(N,[2,62]),e(N,[2,63]),e(N,[2,65]),e(N,[2,64]),e(N,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:C,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(q1,[2,48]),e(T,[2,114],{103:y1}),e(Kt,[2,123],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(q,[2,125]),e(q,[2,127]),e(q,[2,128]),e(q,[2,129]),e(q,[2,130]),e(q,[2,131]),e(q,[2,132]),e(q,[2,133]),e(q,[2,134]),e(T,[2,115],{103:y1}),{10:[1,257]},e(T,[2,116],{103:y1}),{10:[1,258]},e(Mt,[2,122]),e(T,[2,98],{103:y1}),e(T,[2,99],{110:109,42:C,58:k,86:B,99:x,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:W,9:Q,11:Z,21:264},e(b,[2,34]),{10:J,58:$,81:t1,102:e1,104:265,105:230,106:s1,107:u1,108:i1,109:r1},e(q,[2,126]),{14:k1,42:b1,58:g1,86:D1,98:266,102:F1,103:T1,106:S1,108:C1,111:_1,112:B1,113:x1,117:84},{14:k1,42:b1,58:g1,86:D1,98:267,102:F1,103:T1,106:S1,108:C1,111:_1,112:B1,113:x1,117:84},{95:[1,268]},e(T,[2,113]),e(N,[2,53]),{30:269,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(N,[2,61]),e(nt,l,{5:270}),e(Kt,[2,124],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(T,[2,119],{117:160,10:[1,271],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:S1,108:C1,111:_1,112:B1,113:x1}),e(T,[2,120],{117:160,10:[1,272],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:S1,108:C1,111:_1,112:B1,113:x1}),e(T,[2,107]),{31:[1,273],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:C,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:J,58:$,81:t1,89:275,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:276,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},e(N,[2,57]),e(b,[2,33]),e(T,[2,117],{103:y1}),e(T,[2,118],{103:y1})],defaultActions:{},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var f=new Error(a);throw f.hash=o,f}},parse:function(a){var o=this,f=[0],r=[],S=[null],t=[],N1=this.table,s="",Y=0,Yt=0,Ce=2,jt=1,_e=t.slice.call(arguments,1),_=Object.create(this.lexer),d1={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(d1.yy[ot]=this.yy[ot]);_.setInput(a,d1.yy),d1.yy.lexer=_,d1.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var lt=_.yylloc;t.push(lt);var Be=_.options&&_.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function xe(){var a1;return a1=r.pop()||_.lex()||jt,typeof a1!="number"&&(a1 instanceof Array&&(r=a1,a1=r.pop()),a1=o.symbols_[a1]||a1),a1}for(var G,E1,j,ht,v1={},W1,n1,zt,Q1;;){if(E1=f[f.length-1],this.defaultActions[E1]?j=this.defaultActions[E1]:((G===null||typeof G>"u")&&(G=xe()),j=N1[E1]&&N1[E1][G]),typeof j>"u"||!j.length||!j[0]){var ft="";Q1=[];for(W1 in N1[E1])this.terminals_[W1]&&W1>Ce&&Q1.push("'"+this.terminals_[W1]+"'");_.showPosition?ft="Parse error on line "+(Y+1)+`: +`+_.showPosition()+` +Expecting `+Q1.join(", ")+", got '"+(this.terminals_[G]||G)+"'":ft="Parse error on line "+(Y+1)+": Unexpected "+(G==jt?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(ft,{text:_.match,token:this.terminals_[G]||G,line:_.yylineno,loc:lt,expected:Q1})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E1+", token: "+G);switch(j[0]){case 1:f.push(G),S.push(_.yytext),t.push(_.yylloc),f.push(j[1]),G=null,Yt=_.yyleng,s=_.yytext,Y=_.yylineno,lt=_.yylloc;break;case 2:if(n1=this.productions_[j[1]][1],v1.$=S[S.length-n1],v1._$={first_line:t[t.length-(n1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(n1||1)].first_column,last_column:t[t.length-1].last_column},Be&&(v1._$.range=[t[t.length-(n1||1)].range[0],t[t.length-1].range[1]]),ht=this.performAction.apply(v1,[s,Yt,Y,d1.yy,j[1],S,t].concat(_e)),typeof ht<"u")return ht;n1&&(f=f.slice(0,-1*n1*2),S=S.slice(0,-1*n1),t=t.slice(0,-1*n1)),f.push(this.productions_[j[1]][0]),S.push(v1.$),t.push(v1._$),zt=N1[f[f.length-2]][f[f.length-1]],f.push(zt);break;case 3:return!0}}return!0}},Se=function(){var f1={EOF:1,parseError:function(o,f){if(this.yy.parser)this.yy.parser.parseError(o,f);else throw new Error(o)},setInput:function(a,o){return this.yy=o||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var o=a.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var o=a.length,f=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===r.length?this.yylloc.first_column:0)+r[r.length-f.length].length-f[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),o=new Array(a.length+1).join("-");return a+this.upcomingInput()+` +`+o+"^"},test_match:function(a,o){var f,r,S;if(this.options.backtrack_lexer&&(S={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(S.yylloc.range=this.yylloc.range.slice(0))),r=a[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],f=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var t in S)this[t]=S[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,o,f,r;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),t=0;to[0].length)){if(o=f,r=t,this.options.backtrack_lexer){if(a=this.test_match(f,S[t]),a!==!1)return a;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(a=this.test_match(o,S[r]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return o||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(o,f,r,S){switch(r){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return o.lex.firstGraph()&&this.begin("dir"),12;case 30:return o.lex.firstGraph()&&this.begin("dir"),12;case 31:return o.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;case 39:return this.popState(),14;case 40:return this.popState(),14;case 41:return this.popState(),14;case 42:return this.popState(),14;case 43:return this.popState(),14;case 44:return this.popState(),14;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:return 116;case 64:return this.popState(),75;case 65:return this.pushState("thickEdgeText"),73;case 66:return 116;case 67:return this.popState(),75;case 68:return this.pushState("dottedEdgeText"),73;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112:return 11}},rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}};return f1}();at.lexer=Se;function ct(){this.yy={}}return ct.prototype=at,at.Parser=ct,new ct}();pt.parser=pt;const Xe=pt,Oe="flowchart-";let Xt=0,L1=et(),D={},H=[],V1={},c1=[],$1={},tt={},Z1=0,At=!0,z,st,ut=[];const it=e=>we.sanitizeText(e,L1),P1=function(e){const u=Object.keys(D);for(const i of u)if(D[i].id===e)return D[i].domId;return e},Ht=function(e,u,i,n,c,l,h={}){let U,F=e;F!==void 0&&F.trim().length!==0&&(D[F]===void 0&&(D[F]={id:F,labelType:"text",domId:Oe+F+"-"+Xt,styles:[],classes:[]}),Xt++,u!==void 0?(L1=et(),U=it(u.text.trim()),D[F].labelType=u.type,U[0]==='"'&&U[U.length-1]==='"'&&(U=U.substring(1,U.length-1)),D[F].text=U):D[F].text===void 0&&(D[F].text=e),i!==void 0&&(D[F].type=i),n?.forEach(function(w){D[F].styles.push(w)}),c?.forEach(function(w){D[F].classes.push(w)}),l!==void 0&&(D[F].dir=l),D[F].props===void 0?D[F].props=h:h!==void 0&&Object.assign(D[F].props,h))},qt=function(e,u,i){const l={start:e,end:u,type:void 0,text:"",labelType:"text"};J1.info("abc78 Got edge...",l);const h=i.text;if(h!==void 0&&(l.text=it(h.text.trim()),l.text[0]==='"'&&l.text[l.text.length-1]==='"'&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=h.type),i!==void 0&&(l.type=i.type,l.stroke=i.stroke,l.length=i.length),l?.length>10&&(l.length=10),H.length<(L1.maxEdges??500))J1.info("abc78 pushing edge..."),H.push(l);else throw new Error(`Edge limit exceeded. ${H.length} edges found, but the limit is ${L1.maxEdges}. + +Initialize mermaid with maxEdges set to a higher number to allow more edges. +You cannot set this config via configuration inside the diagram as it is a secure config. +You have to call mermaid.initialize.`)},Wt=function(e,u,i){J1.info("addLink (abc78)",e,u,i);let n,c;for(n=0;n=H.length)throw new Error(`The index ${i} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${H.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);i==="default"?H.defaultStyle=u:(dt.isSubstringInArray("fill",u)===-1&&u.push("fill:none"),H[i].style=u)})},Jt=function(e,u){e.split(",").forEach(function(i){V1[i]===void 0&&(V1[i]={id:i,styles:[],textStyles:[]}),u?.forEach(function(n){if(n.match("color")){const c=n.replace("fill","bgFill").replace("color","fill");V1[i].textStyles.push(c)}V1[i].styles.push(n)})})},$t=function(e){z=e,z.match(/.*/)&&(z="LR"),z.match(/.*v/)&&(z="TB"),z==="TD"&&(z="TB")},rt=function(e,u){e.split(",").forEach(function(i){let n=i;D[n]!==void 0&&D[n].classes.push(u),$1[n]!==void 0&&$1[n].classes.push(u)})},Pe=function(e,u){e.split(",").forEach(function(i){u!==void 0&&(tt[st==="gen-1"?P1(i):i]=it(u))})},Ue=function(e,u,i){let n=P1(e);if(et().securityLevel!=="loose"||u===void 0)return;let c=[];if(typeof i=="string"){c=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l")),c.classed("hover",!0)}).on("mouseout",function(){u.transition().duration(500).style("opacity",0),w1(this).classed("hover",!1)})};ut.push(ce);const oe=function(e="gen-1"){D={},V1={},H=[],ut=[ce],c1=[],$1={},Z1=0,tt={},At=!0,st=e,L1=et(),Ne()},le=e=>{st=e||"gen-2"},he=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},fe=function(e,u,i){let n=e.text.trim(),c=i.text;e===i&&i.text.match(/\s/)&&(n=void 0);function l(X){const o1={boolean:{},number:{},string:{}},p1=[];let A1;return{nodeList:X.filter(function(k){const l1=typeof k;return k.stmt&&k.stmt==="dir"?(A1=k.value,!1):k.trim()===""?!1:l1 in o1?o1[l1].hasOwnProperty(k)?!1:o1[l1][k]=!0:p1.includes(k)?!1:p1.push(k)}),dir:A1}}let h=[];const{nodeList:U,dir:F}=l(h.concat.apply(h,u));if(h=U,st==="gen-1")for(let X=0;X2e3)return;if(pe[O1]=u,c1[u].id===e)return{result:!0,count:0};let n=0,c=1;for(;n=0){const h=Ae(e,l);if(h.result)return{result:!0,count:c+h.count};c=c+h.count}n=n+1}return{result:!1,count:c}},de=function(e){return pe[e]},Ee=function(){O1=-1,c1.length>0&&Ae("none",c1.length-1)},ke=function(){return c1},be=()=>At?(At=!1,!0):!1,Me=e=>{let u=e.trim(),i="arrow_open";switch(u[0]){case"<":i="arrow_point",u=u.slice(1);break;case"x":i="arrow_cross",u=u.slice(1);break;case"o":i="arrow_circle",u=u.slice(1);break}let n="normal";return u.includes("=")&&(n="thick"),u.includes(".")&&(n="dotted"),{type:i,stroke:n}},Ke=(e,u)=>{const i=u.length;let n=0;for(let c=0;c{const u=e.trim();let i=u.slice(0,-1),n="arrow_open";switch(u.slice(-1)){case"x":n="arrow_cross",u[0]==="x"&&(n="double_"+n,i=i.slice(1));break;case">":n="arrow_point",u[0]==="<"&&(n="double_"+n,i=i.slice(1));break;case"o":n="arrow_circle",u[0]==="o"&&(n="double_"+n,i=i.slice(1));break}let c="normal",l=i.length-1;i[0]==="="&&(c="thick"),i[0]==="~"&&(c="invisible");let h=Ke(".",i);return h&&(c="dotted",l=h),{type:n,stroke:c,length:l}},ge=(e,u)=>{const i=Ye(e);let n;if(u){if(n=Me(u),n.stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if(n.type==="arrow_open")n.type=i.type;else{if(n.type!==i.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return n.type==="double_arrow"&&(n.type="double_arrow_point"),n.length=i.length,n}return i},De=(e,u)=>{let i=!1;return e.forEach(n=>{n.nodes.indexOf(u)>=0&&(i=!0)}),i},Fe=(e,u)=>{const i=[];return e.nodes.forEach((n,c)=>{De(u,n)||i.push(e.nodes[c])}),{nodes:i}},Te={firstGraph:be},je={defaultConfig:()=>me.flowchart,setAccTitle:ye,getAccTitle:ve,getAccDescription:Ve,setAccDescription:Le,addVertex:Ht,lookUpDomId:P1,addLink:Wt,updateLinkInterpolate:Qt,updateLink:Zt,addClass:Jt,setDirection:$t,setClass:rt,setTooltip:Pe,getTooltip:ee,setClickEvent:se,setLink:te,bindFunctions:ue,getDirection:ie,getVertices:re,getEdges:ne,getClasses:ae,clear:oe,setGen:le,defaultStyle:he,addSubGraph:fe,getDepthFirstPos:de,indexNodes:Ee,getSubGraphs:ke,destructLink:ge,lex:Te,exists:De,makeUniq:Fe,setDiagramTitle:Ie,getDiagramTitle:Re},He=Object.freeze(Object.defineProperty({__proto__:null,addClass:Jt,addLink:Wt,addSingleLink:qt,addSubGraph:fe,addVertex:Ht,bindFunctions:ue,clear:oe,default:je,defaultStyle:he,destructLink:ge,firstGraph:be,getClasses:ae,getDepthFirstPos:de,getDirection:ie,getEdges:ne,getSubGraphs:ke,getTooltip:ee,getVertices:re,indexNodes:Ee,lex:Te,lookUpDomId:P1,setClass:rt,setClickEvent:se,setDirection:$t,setGen:le,setLink:te,updateLink:Zt,updateLinkInterpolate:Qt},Symbol.toStringTag,{value:"Module"}));export{He as d,je as f,Xe as p}; diff --git a/assets/flowDiagram-d949d7c1-ErNISY_0.js b/assets/flowDiagram-d949d7c1-ErNISY_0.js new file mode 100644 index 00000000000..77fcfd60cf1 --- /dev/null +++ b/assets/flowDiagram-d949d7c1-ErNISY_0.js @@ -0,0 +1,4 @@ +import{p as St,f as W}from"./flowDb-d35e309a-cVXpOrT2.js";import{h as S,f as tt,G as Lt}from"./graph-4EnB4jqL.js";import{h as x,F as P,D as z,K as et,c as K,j as rt,l as R,E as V,C as Et}from"./index.demo-_07sssxB.js";import{u as _t,r as Tt,p as Nt,l as At,d as M}from"./layout-KoXfeBJF.js";import{b as N,c as at,i as nt,d as _,e as st,g as it,f as Ct,a as It,s as Bt}from"./styles-7383a064-chn41QdL.js";import{l as Mt}from"./line-abqtiQB-.js";import"./owner-4YVbz2PN.js";import"./index-qegmBwH1.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";import"./index-8fae9850-Po9R6XSU.js";import"./clone-LNmcdPHq.js";import"./edges-d417c7a0-uR8Ha2yN.js";import"./createText-423428c9-gj--wZwo.js";import"./channel-d4IHw_DV.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";function Dt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Rt(r,e){return fetch(r,e).then(Dt)}function Gt(r){return(e,t)=>Rt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Pt=Gt("image/svg+xml"),Y={normal:$t,vee:Wt,undirected:Vt};function Ut(r){Y=r}function $t(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Yt(r,e){for(var t=r.append("text"),n=Ht(e.label).split(` +`),a=0;a0}function T(r,e,t){var n=r.x,a=r.y,s=[],i=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;e.forEach(function(f){i=Math.min(i,f.x),o=Math.min(o,f.y)});for(var c=n-r.width/2-i,d=a-r.height/2-o,l=0;l1&&s.sort(function(f,g){var p=f.x-t.x,y=f.y-t.y,k=Math.sqrt(p*p+y*y),I=g.x-t.x,E=g.y-t.y,U=Math.sqrt(I*I+E*E);return kMath.abs(a)*o?(s<0&&(o=-o),c=s===0?0:o*a/s,d=o):(a<0&&(i=-i),c=i,d=a===0?0:i*s/a),{x:t+c,y:n+d}}var Q={rect:ie,ellipse:oe,circle:le,diamond:ce};function se(r){Q=r}function ie(r,e,t){var n=r.insert("rect",":first-child").attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return t.intersect=function(a){return Z(t,a)},n}function oe(r,e,t){var n=e.width/2,a=e.height/2,s=r.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",n).attr("ry",a);return t.intersect=function(i){return lt(t,n,a,i)},s}function le(r,e,t){var n=Math.max(e.width,e.height)/2,a=r.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",n);return t.intersect=function(s){return ae(t,n,s)},a}function ce(r,e,t){var n=e.width*Math.SQRT2/2,a=e.height*Math.SQRT2/2,s=[{x:0,y:-a},{x:-n,y:0},{x:0,y:a},{x:n,y:0}],i=r.insert("polygon",":first-child").attr("points",s.map(function(o){return o.x+","+o.y}).join(" "));return t.intersect=function(o){return T(t,s,o)},i}function de(){var r=function(e,t){pe(t);var n=D(e,"output"),a=D(n,"clusters"),s=D(n,"edgePaths"),i=X(D(n,"edgeLabels"),t),o=q(D(n,"nodes"),t,Q);At(t),re(o,t),ee(i,t),F(s,t,Y);var c=H(a,t);te(c,t),fe(t)};return r.createNodes=function(e){return arguments.length?(jt(e),r):q},r.createClusters=function(e){return arguments.length?(Xt(e),r):H},r.createEdgeLabels=function(e){return arguments.length?(Ft(e),r):X},r.createEdgePaths=function(e){return arguments.length?(qt(e),r):F},r.shapes=function(e){return arguments.length?(se(e),r):Q},r.arrows=function(e){return arguments.length?(Ut(e),r):Y},r}var he={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},ue={arrowhead:"normal",curve:P};function pe(r){r.nodes().forEach(function(e){var t=r.node(e);!S(t,"label")&&!r.children(e).length&&(t.label=e),S(t,"paddingX")&&M(t,{paddingLeft:t.paddingX,paddingRight:t.paddingX}),S(t,"paddingY")&&M(t,{paddingTop:t.paddingY,paddingBottom:t.paddingY}),S(t,"padding")&&M(t,{paddingLeft:t.padding,paddingRight:t.padding,paddingTop:t.padding,paddingBottom:t.padding}),M(t,he),tt(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(n){t[n]=Number(t[n])}),S(t,"width")&&(t._prevWidth=t.width),S(t,"height")&&(t._prevHeight=t.height)}),r.edges().forEach(function(e){var t=r.edge(e);S(t,"label")||(t.label=""),M(t,ue)})}function fe(r){tt(r.nodes(),function(e){var t=r.node(e);S(t,"_prevWidth")?t.width=t._prevWidth:delete t.width,S(t,"_prevHeight")?t.height=t._prevHeight:delete t.height,delete t._prevWidth,delete t._prevHeight})}function D(r,e){var t=r.select("g."+e);return t.empty()&&(t=r.append("g").attr("class",e)),t}function ct(r,e,t){const n=e.width,a=e.height,s=(n+a)*.9,i=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}],o=A(r,s,s,i);return t.intersect=function(c){return T(t,i,c)},o}function dt(r,e,t){const a=e.height,s=a/4,i=e.width+2*s,o=[{x:s,y:0},{x:i-s,y:0},{x:i,y:-a/2},{x:i-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],c=A(r,i,a,o);return t.intersect=function(d){return T(t,o,d)},c}function ht(r,e,t){const n=e.width,a=e.height,s=[{x:-a/2,y:0},{x:n,y:0},{x:n,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function ut(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function pt(r,e,t){const n=e.width,a=e.height,s=[{x:2*a/6,y:0},{x:n+a/6,y:0},{x:n-2*a/6,y:-a},{x:-a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function ft(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n+2*a/6,y:0},{x:n-a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function vt(r,e,t){const n=e.width,a=e.height,s=[{x:a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:-2*a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function yt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n+a/2,y:0},{x:n,y:-a/2},{x:n+a/2,y:-a},{x:0,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function gt(r,e,t){const n=e.height,a=e.width+n/4,s=r.insert("rect",":first-child").attr("rx",n/2).attr("ry",n/2).attr("x",-a/2).attr("y",-n/2).attr("width",a).attr("height",n);return t.intersect=function(i){return Z(t,i)},s}function mt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n,y:0},{x:n,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:n+8,y:0},{x:n+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function wt(r,e,t){const n=e.width,a=n/2,s=a/(2.5+n/50),i=e.height+s,o="M 0,"+s+" a "+a+","+s+" 0,0,0 "+n+" 0 a "+a+","+s+" 0,0,0 "+-n+" 0 l 0,"+i+" a "+a+","+s+" 0,0,0 "+n+" 0 l 0,"+-i,c=r.attr("label-offset-y",s).insert("path",":first-child").attr("d",o).attr("transform","translate("+-n/2+","+-(i/2+s)+")");return t.intersect=function(d){const l=Z(t,d),v=l.x-t.x;if(a!=0&&(Math.abs(v)t.height/2-s)){let h=s*s*(1-v*v/(a*a));h!=0&&(h=Math.sqrt(h)),h=s-h,d.y-t.y>0&&(h=-h),l.y+=h}return l},c}function ve(r){r.shapes().question=ct,r.shapes().hexagon=dt,r.shapes().stadium=gt,r.shapes().subroutine=mt,r.shapes().cylinder=wt,r.shapes().rect_left_inv_arrow=ht,r.shapes().lean_right=ut,r.shapes().lean_left=pt,r.shapes().trapezoid=ft,r.shapes().inv_trapezoid=vt,r.shapes().rect_right_inv_arrow=yt}function ye(r){r({question:ct}),r({hexagon:dt}),r({stadium:gt}),r({subroutine:mt}),r({cylinder:wt}),r({rect_left_inv_arrow:ht}),r({lean_right:ut}),r({lean_left:pt}),r({trapezoid:ft}),r({inv_trapezoid:vt}),r({rect_right_inv_arrow:yt})}function A(r,e,t,n){return r.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("transform","translate("+-e/2+","+t/2+")")}const ge={addToRender:ve,addToRenderV2:ye},xt={},me=function(r){const e=Object.keys(r);for(const t of e)xt[t]=r[t]},bt=function(r,e,t,n,a,s){const i=n?n.select(`[id="${t}"]`):x(`[id="${t}"]`),o=a||document;Object.keys(r).forEach(function(d){const l=r[d];let v="default";l.classes.length>0&&(v=l.classes.join(" "));const h=z(l.styles);let u=l.text!==void 0?l.text:l.id,f;if(et(K().flowchart.htmlLabels)){const y={label:u.replace(/fa[blrs]?:fa-[\w-]+/g,k=>``)};f=at(i,y).node(),f.parentNode.removeChild(f)}else{const y=o.createElementNS("http://www.w3.org/2000/svg","text");y.setAttribute("style",h.labelStyle.replace("color:","fill:"));const k=u.split(rt.lineBreakRegex);for(const I of k){const E=o.createElementNS("http://www.w3.org/2000/svg","tspan");E.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),E.setAttribute("dy","1em"),E.setAttribute("x","1"),E.textContent=I,y.appendChild(E)}f=y}let g=0,p="";switch(l.type){case"round":g=5,p="rect";break;case"square":p="rect";break;case"diamond":p="question";break;case"hexagon":p="hexagon";break;case"odd":p="rect_left_inv_arrow";break;case"lean_right":p="lean_right";break;case"lean_left":p="lean_left";break;case"trapezoid":p="trapezoid";break;case"inv_trapezoid":p="inv_trapezoid";break;case"odd_right":p="rect_left_inv_arrow";break;case"circle":p="circle";break;case"ellipse":p="ellipse";break;case"stadium":p="stadium";break;case"subroutine":p="subroutine";break;case"cylinder":p="cylinder";break;case"group":p="rect";break;default:p="rect"}R.warn("Adding node",l.id,l.domId),e.setNode(s.db.lookUpDomId(l.id),{labelType:"svg",labelStyle:h.labelStyle,shape:p,label:f,rx:g,ry:g,class:v,style:h.style,id:s.db.lookUpDomId(l.id)})})},kt=function(r,e,t){let n=0,a,s;if(r.defaultStyle!==void 0){const i=z(r.defaultStyle);a=i.style,s=i.labelStyle}r.forEach(function(i){n++;const o="L-"+i.start+"-"+i.end,c="LS-"+i.start,d="LE-"+i.end,l={};i.type==="arrow_open"?l.arrowhead="none":l.arrowhead="normal";let v="",h="";if(i.style!==void 0){const u=z(i.style);v=u.style,h=u.labelStyle}else switch(i.stroke){case"normal":v="fill:none",a!==void 0&&(v=a),s!==void 0&&(h=s);break;case"dotted":v="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":v=" stroke-width: 3.5px;fill:none";break}l.style=v,l.labelStyle=h,i.interpolate!==void 0?l.curve=V(i.interpolate,P):r.defaultInterpolate!==void 0?l.curve=V(r.defaultInterpolate,P):l.curve=V(xt.curve,P),i.text===void 0?i.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",et(K().flowchart.htmlLabels)?(l.labelType="html",l.label=`${i.text.replace(/fa[blrs]?:fa-[\w-]+/g,u=>``)}`):(l.labelType="text",l.label=i.text.replace(rt.lineBreakRegex,` +`),i.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=o,l.class=c+" "+d,l.minlen=i.length||1,e.setEdge(t.db.lookUpDomId(i.start),t.db.lookUpDomId(i.end),l,n)})},we=function(r,e){return R.info("Extracting classes"),e.db.getClasses()},xe=function(r,e,t,n){R.info("Drawing flowchart");const{securityLevel:a,flowchart:s}=K();let i;a==="sandbox"&&(i=x("#i"+e));const o=a==="sandbox"?x(i.nodes()[0].contentDocument.body):x("body"),c=a==="sandbox"?i.nodes()[0].contentDocument:document;let d=n.db.getDirection();d===void 0&&(d="TD");const l=s.nodeSpacing||50,v=s.rankSpacing||50,h=new Lt({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:l,ranksep:v,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let u;const f=n.db.getSubGraphs();for(let m=f.length-1;m>=0;m--)u=f[m],n.db.addVertex(u.id,u.title,"group",void 0,u.classes);const g=n.db.getVertices();R.warn("Get vertices",g);const p=n.db.getEdges();let y=0;for(y=f.length-1;y>=0;y--){u=f[y],Bt("cluster").append("text");for(let m=0;m{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,be.setConf(r.flowchart),W.clear(),W.setGen("gen-1")}};export{fr as diagram}; diff --git a/assets/flowDiagram-v2-49332944-xSAzzGOz.js b/assets/flowDiagram-v2-49332944-xSAzzGOz.js new file mode 100644 index 00000000000..6cb3d2f42c5 --- /dev/null +++ b/assets/flowDiagram-v2-49332944-xSAzzGOz.js @@ -0,0 +1 @@ +import{p as i,f as o}from"./flowDb-d35e309a-cVXpOrT2.js";import{f as t,a as m}from"./styles-7383a064-chn41QdL.js";import{n as p}from"./index.demo-_07sssxB.js";import"./graph-4EnB4jqL.js";import"./layout-KoXfeBJF.js";import"./owner-4YVbz2PN.js";import"./index-8fae9850-Po9R6XSU.js";import"./clone-LNmcdPHq.js";import"./edges-d417c7a0-uR8Ha2yN.js";import"./createText-423428c9-gj--wZwo.js";import"./line-abqtiQB-.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";import"./channel-d4IHw_DV.js";import"./index-qegmBwH1.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";const Z={parser:i,db:o,renderer:t,styles:m,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,p({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{Z as diagram}; diff --git a/assets/flowchart-elk-definition-27cc417a-m0tn04K1.js b/assets/flowchart-elk-definition-27cc417a-m0tn04K1.js new file mode 100644 index 00000000000..268cf7226ed --- /dev/null +++ b/assets/flowchart-elk-definition-27cc417a-m0tn04K1.js @@ -0,0 +1,139 @@ +import{d as xNe,p as FNe}from"./flowDb-d35e309a-cVXpOrT2.js";import{l as Ra,h as IO,a3 as $U,C as BNe,D as j0n,E as y0n,F as NU,j as RNe}from"./index.demo-_07sssxB.js";import{i as KNe,c as _Ne,l as HNe,b as qNe,k as UNe,m as GNe}from"./edges-d417c7a0-uR8Ha2yN.js";import{c as Nse,g as zNe}from"./index-qegmBwH1.js";import"./owner-4YVbz2PN.js";import{l as XNe}from"./line-abqtiQB-.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";import"./createText-423428c9-gj--wZwo.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";function LU(ct){throw new Error('Could not dynamically require "'+ct+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Bse={exports:{}};(function(ct,_t){(function(Xt){ct.exports=Xt()})(function(){return function(){function Xt(gt,Sr,Di){function y(Ht,Jt){if(!Sr[Ht]){if(!gt[Ht]){var Xe=typeof LU=="function"&&LU;if(!Jt&&Xe)return Xe(Ht,!0);if(Wt)return Wt(Ht,!0);var Yi=new Error("Cannot find module '"+Ht+"'");throw Yi.code="MODULE_NOT_FOUND",Yi}var Ri=Sr[Ht]={exports:{}};gt[Ht][0].call(Ri.exports,function(En){var hu=gt[Ht][1][En];return y(hu||En)},Ri,Ri.exports,Xt,gt,Sr,Di)}return Sr[Ht].exports}for(var Wt=typeof LU=="function"&&LU,Bu=0;Bu0&&arguments[0]!==void 0?arguments[0]:{},Yi=Xe.defaultLayoutOptions,Ri=Yi===void 0?{}:Yi,En=Xe.algorithms,hu=En===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:En,Qc=Xe.workerFactory,Ru=Xe.workerUrl;if(y(this,Ht),this.defaultLayoutOptions=Ri,this.initialized=!1,typeof Ru>"u"&&typeof Qc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Pr=Qc;typeof Ru<"u"&&typeof Qc>"u"&&(Pr=function(N1){return new Worker(N1)});var Mf=Pr(Ru);if(typeof Mf.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Bu(Mf),this.worker.postMessage({cmd:"register",algorithms:hu}).then(function(L1){return Jt.initialized=!0}).catch(console.err)}return Di(Ht,[{key:"layout",value:function(Xe){var Yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ri=Yi.layoutOptions,En=Ri===void 0?this.defaultLayoutOptions:Ri,hu=Yi.logging,Qc=hu===void 0?!1:hu,Ru=Yi.measureExecutionTime,Pr=Ru===void 0?!1:Ru;return Xe?this.worker.postMessage({cmd:"layout",graph:Xe,layoutOptions:En,options:{logging:Qc,measureExecutionTime:Pr}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),Ht}();Sr.default=Wt;var Bu=function(){function Ht(Jt){var Xe=this;if(y(this,Ht),Jt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=Jt,this.worker.onmessage=function(Yi){setTimeout(function(){Xe.receive(Xe,Yi)},0)}}return Di(Ht,[{key:"postMessage",value:function(Xe){var Yi=this.id||0;this.id=Yi+1,Xe.id=Yi;var Ri=this;return new Promise(function(En,hu){Ri.resolvers[Yi]=function(Qc,Ru){Qc?(Ri.convertGwtStyleError(Qc),hu(Qc)):En(Ru)},Ri.worker.postMessage(Xe)})}},{key:"receive",value:function(Xe,Yi){var Ri=Yi.data,En=Xe.resolvers[Ri.id];En&&(delete Xe.resolvers[Ri.id],Ri.error?En(Ri.error):En(null,Ri.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Xe){if(Xe){var Yi=Xe.__java$exception;Yi&&(Yi.cause&&Yi.cause.backingJsObject&&(Xe.cause=Yi.cause.backingJsObject,this.convertGwtStyleError(Xe.cause)),delete Xe.__java$exception)}}}]),Ht}()},{}],2:[function(Xt,gt,Sr){(function(Di){(function(){var y;typeof window<"u"?y=window:typeof Di<"u"?y=Di:typeof self<"u"&&(y=self);var Wt;function Bu(){}function Ht(){}function Jt(){}function Xe(){}function Yi(){}function Ri(){}function En(){}function hu(){}function Qc(){}function Ru(){}function Pr(){}function Mf(){}function L1(){}function N1(){}function og(){}function X3(){}function $1(){}function ul(){}function E0n(){}function C0n(){}function Q2(){}function F(){}function M0n(){}function pE(){}function T0n(){}function A0n(){}function S0n(){}function P0n(){}function I0n(){}function xU(){}function O0n(){}function D0n(){}function L0n(){}function OO(){}function N0n(){}function $0n(){}function x0n(){}function DO(){}function F0n(){}function B0n(){}function FU(){}function R0n(){}function K0n(){}function yu(){}function ju(){}function Y2(){}function Z2(){}function _0n(){}function H0n(){}function q0n(){}function U0n(){}function BU(){}function Eu(){}function np(){}function ep(){}function G0n(){}function z0n(){}function LO(){}function X0n(){}function V0n(){}function W0n(){}function J0n(){}function Q0n(){}function Y0n(){}function Z0n(){}function nbn(){}function ebn(){}function tbn(){}function ibn(){}function rbn(){}function cbn(){}function ubn(){}function obn(){}function sbn(){}function fbn(){}function hbn(){}function lbn(){}function abn(){}function dbn(){}function bbn(){}function wbn(){}function gbn(){}function pbn(){}function mbn(){}function vbn(){}function kbn(){}function ybn(){}function jbn(){}function Ebn(){}function Cbn(){}function Mbn(){}function RU(){}function Tbn(){}function Abn(){}function Sbn(){}function Pbn(){}function NO(){}function $O(){}function mE(){}function Ibn(){}function Obn(){}function xO(){}function Dbn(){}function Lbn(){}function Nbn(){}function vE(){}function $bn(){}function xbn(){}function Fbn(){}function Bbn(){}function Rbn(){}function Kbn(){}function _bn(){}function Hbn(){}function qbn(){}function KU(){}function Ubn(){}function Gbn(){}function _U(){}function zbn(){}function Xbn(){}function Vbn(){}function Wbn(){}function Jbn(){}function Qbn(){}function Ybn(){}function Zbn(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function FO(){}function cwn(){}function uwn(){}function own(){}function swn(){}function fwn(){}function hwn(){}function lwn(){}function awn(){}function dwn(){}function HU(){}function qU(){}function bwn(){}function wwn(){}function gwn(){}function pwn(){}function mwn(){}function vwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Cwn(){}function Mwn(){}function Twn(){}function Awn(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Dwn(){}function Lwn(){}function Nwn(){}function $wn(){}function xwn(){}function Fwn(){}function Bwn(){}function Rwn(){}function Kwn(){}function _wn(){}function Hwn(){}function qwn(){}function Uwn(){}function Gwn(){}function zwn(){}function Xwn(){}function Vwn(){}function Wwn(){}function Jwn(){}function Qwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function ogn(){}function sgn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function mgn(){}function vgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Cgn(){}function Mgn(){}function Tgn(){}function Agn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Dgn(){}function Lgn(){}function Ngn(){}function $gn(){}function xgn(){}function Fgn(){}function Bgn(){}function Rgn(){}function Kgn(){}function _gn(){}function Hgn(){}function qgn(){}function Ugn(){}function Ggn(){}function zgn(){}function Xgn(){}function Vgn(){}function Wgn(){}function Jgn(){}function Qgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function UU(){}function u2n(){}function o2n(){}function s2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function m2n(){}function v2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function C2n(){}function M2n(){}function T2n(){}function A2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function D2n(){}function L2n(){}function N2n(){}function $2n(){}function x2n(){}function F2n(){}function B2n(){}function R2n(){}function K2n(){}function _2n(){}function H2n(){}function q2n(){}function U2n(){}function G2n(){}function z2n(){}function X2n(){}function V2n(){}function W2n(){}function J2n(){}function Q2n(){}function Y2n(){}function Z2n(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function opn(){}function spn(){}function fpn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function mpn(){}function vpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Cpn(){}function GU(){}function Mpn(){}function Tpn(){}function Apn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Dpn(){}function Lpn(){}function Npn(){}function zU(){}function $pn(){}function xpn(){}function Fpn(){}function Bpn(){}function Rpn(){}function Kpn(){}function XU(){}function VU(){}function _pn(){}function WU(){}function JU(){}function Hpn(){}function qpn(){}function Upn(){}function Gpn(){}function zpn(){}function Xpn(){}function Vpn(){}function Wpn(){}function Jpn(){}function Qpn(){}function Ypn(){}function QU(){}function Zpn(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function o3n(){}function s3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function m3n(){}function v3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function C3n(){}function M3n(){}function T3n(){}function A3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function D3n(){}function L3n(){}function N3n(){}function $3n(){}function x3n(){}function F3n(){}function B3n(){}function R3n(){}function K3n(){}function _3n(){}function H3n(){}function q3n(){}function U3n(){}function G3n(){}function z3n(){}function X3n(){}function V3n(){}function W3n(){}function J3n(){}function Q3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function r4n(){}function c4n(){}function u4n(){}function o4n(){}function s4n(){}function f4n(){}function h4n(){}function l4n(){}function a4n(){}function d4n(){}function b4n(){}function w4n(){}function g4n(){}function p4n(){}function m4n(){}function v4n(){}function k4n(){}function y4n(){}function j4n(){}function E4n(){}function C4n(){}function M4n(){}function T4n(){}function A4n(){}function S4n(){}function P4n(){}function I4n(){}function _se(){}function O4n(){}function D4n(){}function L4n(){}function N4n(){}function $4n(){}function x4n(){}function F4n(){}function B4n(){}function R4n(){}function K4n(){}function _4n(){}function H4n(){}function q4n(){}function U4n(){}function G4n(){}function z4n(){}function X4n(){}function V4n(){}function W4n(){}function J4n(){}function Q4n(){}function Y4n(){}function Z4n(){}function nmn(){}function emn(){}function tmn(){}function imn(){}function BO(){}function RO(){}function rmn(){}function KO(){}function cmn(){}function umn(){}function omn(){}function smn(){}function fmn(){}function hmn(){}function lmn(){}function amn(){}function dmn(){}function bmn(){}function YU(){}function wmn(){}function gmn(){}function pmn(){}function Hse(){}function mmn(){}function vmn(){}function kmn(){}function ymn(){}function jmn(){}function Emn(){}function Cmn(){}function Ka(){}function Mmn(){}function tp(){}function ZU(){}function Tmn(){}function Amn(){}function Smn(){}function Pmn(){}function Imn(){}function Omn(){}function Dmn(){}function Lmn(){}function Nmn(){}function $mn(){}function xmn(){}function Fmn(){}function Bmn(){}function Rmn(){}function Kmn(){}function _mn(){}function Hmn(){}function qmn(){}function Umn(){}function hn(){}function Gmn(){}function zmn(){}function Xmn(){}function Vmn(){}function Wmn(){}function Jmn(){}function Qmn(){}function Ymn(){}function Zmn(){}function nvn(){}function evn(){}function tvn(){}function ivn(){}function _O(){}function rvn(){}function cvn(){}function uvn(){}function kE(){}function ovn(){}function HO(){}function yE(){}function svn(){}function nG(){}function fvn(){}function hvn(){}function lvn(){}function avn(){}function dvn(){}function bvn(){}function jE(){}function wvn(){}function gvn(){}function EE(){}function pvn(){}function CE(){}function mvn(){}function eG(){}function vvn(){}function qO(){}function tG(){}function kvn(){}function yvn(){}function jvn(){}function Evn(){}function qse(){}function Cvn(){}function Mvn(){}function Tvn(){}function Avn(){}function Svn(){}function Pvn(){}function Ivn(){}function Ovn(){}function Dvn(){}function Lvn(){}function V3(){}function UO(){}function Nvn(){}function $vn(){}function xvn(){}function Fvn(){}function Bvn(){}function Rvn(){}function Kvn(){}function _vn(){}function Hvn(){}function qvn(){}function Uvn(){}function Gvn(){}function zvn(){}function Xvn(){}function Vvn(){}function Wvn(){}function Jvn(){}function Qvn(){}function Yvn(){}function Zvn(){}function n6n(){}function e6n(){}function t6n(){}function i6n(){}function r6n(){}function c6n(){}function u6n(){}function o6n(){}function s6n(){}function f6n(){}function h6n(){}function l6n(){}function a6n(){}function d6n(){}function b6n(){}function w6n(){}function g6n(){}function p6n(){}function m6n(){}function v6n(){}function k6n(){}function y6n(){}function j6n(){}function E6n(){}function C6n(){}function M6n(){}function T6n(){}function A6n(){}function S6n(){}function P6n(){}function I6n(){}function O6n(){}function D6n(){}function L6n(){}function N6n(){}function $6n(){}function x6n(){}function F6n(){}function B6n(){}function R6n(){}function K6n(){}function _6n(){}function H6n(){}function q6n(){}function U6n(){}function G6n(){}function z6n(){}function X6n(){}function V6n(){}function W6n(){}function J6n(){}function Q6n(){}function Y6n(){}function Z6n(){}function n5n(){}function e5n(){}function t5n(){}function i5n(){}function r5n(){}function c5n(){}function u5n(){}function o5n(){}function s5n(){}function f5n(){}function h5n(){}function l5n(){}function a5n(){}function d5n(){}function b5n(){}function w5n(){}function g5n(){}function p5n(){}function m5n(){}function v5n(){}function k5n(){}function y5n(){}function j5n(){}function E5n(){}function C5n(){}function M5n(){}function T5n(){}function iG(){}function A5n(){}function S5n(){}function GO(){Qv()}function P5n(){r7()}function I5n(){aA()}function O5n(){Q$()}function D5n(){j5()}function L5n(){lnn()}function N5n(){Us()}function $5n(){yZ()}function x5n(){qk()}function F5n(){c7()}function B5n(){L7()}function R5n(){lCn()}function K5n(){Hp()}function _5n(){RLn()}function H5n(){kQ()}function q5n(){AOn()}function U5n(){yQ()}function G5n(){gNn()}function z5n(){TOn()}function X5n(){rm()}function V5n(){Z$n()}function W5n(){Y$n()}function J5n(){jDn()}function Q5n(){nxn()}function Y5n(){ua()}function Z5n(){YE()}function n8n(){ftn()}function e8n(){cn()}function t8n(){exn()}function i8n(){Sxn()}function r8n(){SOn()}function c8n(){ZRn()}function u8n(){POn()}function o8n(){bUn()}function s8n(){_nn()}function f8n(){kl()}function h8n(){bBn()}function l8n(){lc()}function a8n(){BOn()}function d8n(){_p()}function b8n(){Een()}function w8n(){oa()}function g8n(){Cen()}function p8n(){Rf()}function m8n(){Vk()}function v8n(){EF()}function k8n(){Dx()}function uf(){bSn()}function y8n(){YM()}function j8n(){mA()}function rG(){He()}function E8n(){NT()}function C8n(){QY()}function cG(){D$()}function uG(){KA()}function M8n(){$en()}function oG(n){Jn(n)}function T8n(n){this.a=n}function ME(n){this.a=n}function A8n(n){this.a=n}function S8n(n){this.a=n}function P8n(n){this.a=n}function I8n(n){this.a=n}function O8n(n){this.a=n}function D8n(n){this.a=n}function sG(n){this.a=n}function fG(n){this.a=n}function L8n(n){this.a=n}function N8n(n){this.a=n}function zO(n){this.a=n}function $8n(n){this.a=n}function x8n(n){this.a=n}function XO(n){this.a=n}function VO(n){this.a=n}function F8n(n){this.a=n}function WO(n){this.a=n}function B8n(n){this.a=n}function R8n(n){this.a=n}function K8n(n){this.a=n}function hG(n){this.b=n}function _8n(n){this.c=n}function H8n(n){this.a=n}function q8n(n){this.a=n}function U8n(n){this.a=n}function G8n(n){this.a=n}function z8n(n){this.a=n}function X8n(n){this.a=n}function V8n(n){this.a=n}function W8n(n){this.a=n}function J8n(n){this.a=n}function Q8n(n){this.a=n}function Y8n(n){this.a=n}function Z8n(n){this.a=n}function n9n(n){this.a=n}function lG(n){this.a=n}function aG(n){this.a=n}function TE(n){this.a=n}function q9(n){this.a=n}function _a(){this.a=[]}function e9n(n,e){n.a=e}function Use(n,e){n.a=e}function Gse(n,e){n.b=e}function zse(n,e){n.b=e}function Xse(n,e){n.b=e}function dG(n,e){n.j=e}function Vse(n,e){n.g=e}function Wse(n,e){n.i=e}function Jse(n,e){n.c=e}function Qse(n,e){n.c=e}function Yse(n,e){n.d=e}function Zse(n,e){n.d=e}function Ha(n,e){n.k=e}function nfe(n,e){n.c=e}function bG(n,e){n.c=e}function wG(n,e){n.a=e}function efe(n,e){n.a=e}function tfe(n,e){n.f=e}function ife(n,e){n.a=e}function rfe(n,e){n.b=e}function JO(n,e){n.d=e}function AE(n,e){n.i=e}function gG(n,e){n.o=e}function cfe(n,e){n.r=e}function ufe(n,e){n.a=e}function ofe(n,e){n.b=e}function t9n(n,e){n.e=e}function sfe(n,e){n.f=e}function pG(n,e){n.g=e}function ffe(n,e){n.e=e}function hfe(n,e){n.f=e}function lfe(n,e){n.f=e}function QO(n,e){n.a=e}function YO(n,e){n.b=e}function afe(n,e){n.n=e}function dfe(n,e){n.a=e}function bfe(n,e){n.c=e}function wfe(n,e){n.c=e}function gfe(n,e){n.c=e}function pfe(n,e){n.a=e}function mfe(n,e){n.a=e}function vfe(n,e){n.d=e}function kfe(n,e){n.d=e}function yfe(n,e){n.e=e}function jfe(n,e){n.e=e}function Efe(n,e){n.g=e}function Cfe(n,e){n.f=e}function Mfe(n,e){n.j=e}function Tfe(n,e){n.a=e}function Afe(n,e){n.a=e}function Sfe(n,e){n.b=e}function i9n(n){n.b=n.a}function r9n(n){n.c=n.d.d}function mG(n){this.a=n}function vG(n){this.a=n}function kG(n){this.a=n}function qa(n){this.a=n}function Ua(n){this.a=n}function U9(n){this.a=n}function c9n(n){this.a=n}function yG(n){this.a=n}function G9(n){this.a=n}function SE(n){this.a=n}function ol(n){this.a=n}function Tb(n){this.a=n}function u9n(n){this.a=n}function o9n(n){this.a=n}function ZO(n){this.b=n}function W3(n){this.b=n}function J3(n){this.b=n}function nD(n){this.a=n}function s9n(n){this.a=n}function eD(n){this.c=n}function C(n){this.c=n}function f9n(n){this.c=n}function Gv(n){this.d=n}function jG(n){this.a=n}function Te(n){this.a=n}function h9n(n){this.a=n}function EG(n){this.a=n}function CG(n){this.a=n}function MG(n){this.a=n}function TG(n){this.a=n}function AG(n){this.a=n}function SG(n){this.a=n}function Q3(n){this.a=n}function l9n(n){this.a=n}function a9n(n){this.a=n}function Y3(n){this.a=n}function d9n(n){this.a=n}function b9n(n){this.a=n}function w9n(n){this.a=n}function g9n(n){this.a=n}function p9n(n){this.a=n}function m9n(n){this.a=n}function v9n(n){this.a=n}function k9n(n){this.a=n}function y9n(n){this.a=n}function j9n(n){this.a=n}function E9n(n){this.a=n}function C9n(n){this.a=n}function M9n(n){this.a=n}function T9n(n){this.a=n}function A9n(n){this.a=n}function z9(n){this.a=n}function S9n(n){this.a=n}function P9n(n){this.a=n}function I9n(n){this.a=n}function O9n(n){this.a=n}function PE(n){this.a=n}function D9n(n){this.a=n}function L9n(n){this.a=n}function Z3(n){this.a=n}function PG(n){this.a=n}function N9n(n){this.a=n}function $9n(n){this.a=n}function x9n(n){this.a=n}function F9n(n){this.a=n}function B9n(n){this.a=n}function R9n(n){this.a=n}function IG(n){this.a=n}function OG(n){this.a=n}function DG(n){this.a=n}function zv(n){this.a=n}function IE(n){this.e=n}function n4(n){this.a=n}function K9n(n){this.a=n}function ip(n){this.a=n}function LG(n){this.a=n}function _9n(n){this.a=n}function H9n(n){this.a=n}function q9n(n){this.a=n}function U9n(n){this.a=n}function G9n(n){this.a=n}function z9n(n){this.a=n}function X9n(n){this.a=n}function V9n(n){this.a=n}function W9n(n){this.a=n}function J9n(n){this.a=n}function Q9n(n){this.a=n}function NG(n){this.a=n}function Y9n(n){this.a=n}function Z9n(n){this.a=n}function n7n(n){this.a=n}function e7n(n){this.a=n}function t7n(n){this.a=n}function i7n(n){this.a=n}function r7n(n){this.a=n}function c7n(n){this.a=n}function u7n(n){this.a=n}function o7n(n){this.a=n}function s7n(n){this.a=n}function f7n(n){this.a=n}function h7n(n){this.a=n}function l7n(n){this.a=n}function a7n(n){this.a=n}function d7n(n){this.a=n}function b7n(n){this.a=n}function w7n(n){this.a=n}function g7n(n){this.a=n}function p7n(n){this.a=n}function m7n(n){this.a=n}function v7n(n){this.a=n}function k7n(n){this.a=n}function y7n(n){this.a=n}function j7n(n){this.a=n}function E7n(n){this.a=n}function C7n(n){this.a=n}function M7n(n){this.a=n}function T7n(n){this.a=n}function A7n(n){this.a=n}function S7n(n){this.a=n}function P7n(n){this.a=n}function I7n(n){this.a=n}function O7n(n){this.a=n}function D7n(n){this.a=n}function L7n(n){this.a=n}function N7n(n){this.a=n}function $7n(n){this.a=n}function x7n(n){this.c=n}function F7n(n){this.b=n}function B7n(n){this.a=n}function R7n(n){this.a=n}function K7n(n){this.a=n}function _7n(n){this.a=n}function H7n(n){this.a=n}function q7n(n){this.a=n}function U7n(n){this.a=n}function G7n(n){this.a=n}function z7n(n){this.a=n}function X7n(n){this.a=n}function V7n(n){this.a=n}function W7n(n){this.a=n}function J7n(n){this.a=n}function Q7n(n){this.a=n}function Y7n(n){this.a=n}function Z7n(n){this.a=n}function nkn(n){this.a=n}function ekn(n){this.a=n}function tkn(n){this.a=n}function ikn(n){this.a=n}function rkn(n){this.a=n}function ckn(n){this.a=n}function ukn(n){this.a=n}function okn(n){this.a=n}function skn(n){this.a=n}function fkn(n){this.a=n}function hkn(n){this.a=n}function sl(n){this.a=n}function sg(n){this.a=n}function lkn(n){this.a=n}function akn(n){this.a=n}function dkn(n){this.a=n}function bkn(n){this.a=n}function wkn(n){this.a=n}function gkn(n){this.a=n}function pkn(n){this.a=n}function mkn(n){this.a=n}function vkn(n){this.a=n}function kkn(n){this.a=n}function ykn(n){this.a=n}function jkn(n){this.a=n}function Ekn(n){this.a=n}function Ckn(n){this.a=n}function Mkn(n){this.a=n}function Tkn(n){this.a=n}function Akn(n){this.a=n}function Skn(n){this.a=n}function Pkn(n){this.a=n}function Ikn(n){this.a=n}function Okn(n){this.a=n}function Dkn(n){this.a=n}function Lkn(n){this.a=n}function Nkn(n){this.a=n}function $kn(n){this.a=n}function xkn(n){this.a=n}function OE(n){this.a=n}function Fkn(n){this.f=n}function Bkn(n){this.a=n}function Rkn(n){this.a=n}function Kkn(n){this.a=n}function _kn(n){this.a=n}function Hkn(n){this.a=n}function qkn(n){this.a=n}function Ukn(n){this.a=n}function Gkn(n){this.a=n}function zkn(n){this.a=n}function Xkn(n){this.a=n}function Vkn(n){this.a=n}function Wkn(n){this.a=n}function Jkn(n){this.a=n}function Qkn(n){this.a=n}function Ykn(n){this.a=n}function Zkn(n){this.a=n}function nyn(n){this.a=n}function eyn(n){this.a=n}function tyn(n){this.a=n}function iyn(n){this.a=n}function ryn(n){this.a=n}function cyn(n){this.a=n}function uyn(n){this.a=n}function oyn(n){this.a=n}function syn(n){this.a=n}function fyn(n){this.a=n}function hyn(n){this.a=n}function lyn(n){this.a=n}function tD(n){this.a=n}function $G(n){this.a=n}function lt(n){this.b=n}function ayn(n){this.a=n}function dyn(n){this.a=n}function byn(n){this.a=n}function wyn(n){this.a=n}function gyn(n){this.a=n}function pyn(n){this.a=n}function myn(n){this.a=n}function vyn(n){this.b=n}function kyn(n){this.a=n}function X9(n){this.a=n}function yyn(n){this.a=n}function jyn(n){this.a=n}function xG(n){this.c=n}function DE(n){this.e=n}function LE(n){this.a=n}function NE(n){this.a=n}function iD(n){this.a=n}function Eyn(n){this.d=n}function Cyn(n){this.a=n}function FG(n){this.a=n}function BG(n){this.a=n}function Wd(n){this.e=n}function Pfe(){this.a=0}function de(){Hu(this)}function Z(){pL(this)}function rD(){oIn(this)}function Myn(){}function Jd(){this.c=Udn}function Tyn(n,e){n.b+=e}function Ife(n,e){e.Wb(n)}function Ofe(n){return n.a}function Dfe(n){return n.a}function Lfe(n){return n.a}function Nfe(n){return n.a}function $fe(n){return n.a}function M(n){return n.e}function xfe(){return null}function Ffe(){return null}function Bfe(){Ez(),pLe()}function Rfe(n){n.b.Of(n.e)}function Ayn(n){n.b=new CD}function Xv(n,e){n.b=e-n.b}function Vv(n,e){n.a=e-n.a}function Rn(n,e){n.push(e)}function Syn(n,e){n.sort(e)}function Pyn(n,e){e.jd(n.a)}function Kfe(n,e){gi(e,n)}function _fe(n,e,t){n.Yd(t,e)}function V9(n,e){n.e=e,e.b=n}function RG(n){oh(),this.a=n}function Iyn(n){oh(),this.a=n}function Oyn(n){oh(),this.a=n}function cD(n){g0(),this.a=n}function Dyn(n){I4(),VK.le(n)}function KG(){KG=F,new de}function Ga(){QTn.call(this)}function _G(){QTn.call(this)}function HG(){Ga.call(this)}function uD(){Ga.call(this)}function Lyn(){Ga.call(this)}function W9(){Ga.call(this)}function Cu(){Ga.call(this)}function rp(){Ga.call(this)}function Pe(){Ga.call(this)}function Bo(){Ga.call(this)}function Nyn(){Ga.call(this)}function nc(){Ga.call(this)}function $yn(){Ga.call(this)}function xyn(){this.a=this}function $E(){this.Bb|=256}function Fyn(){this.b=new UMn}function Ab(n,e){n.length=e}function xE(n,e){nn(n.a,e)}function Hfe(n,e){dnn(n.c,e)}function qfe(n,e){fi(n.b,e)}function Ufe(n,e){uA(n.a,e)}function Gfe(n,e){cx(n.a,e)}function e4(n,e){it(n.e,e)}function cp(n){jA(n.c,n.b)}function zfe(n,e){n.kc().Nb(e)}function qG(n){this.a=B5e(n)}function ni(){this.a=new de}function Byn(){this.a=new de}function UG(){this.a=new iCn}function FE(){this.a=new Z}function oD(){this.a=new Z}function GG(){this.a=new Z}function hs(){this.a=new rbn}function za(){this.a=new LLn}function zG(){this.a=new KU}function XG(){this.a=new MOn}function VG(){this.a=new FAn}function Ryn(){this.a=new Z}function Kyn(){this.a=new Z}function _yn(){this.a=new Z}function WG(){this.a=new Z}function Hyn(){this.d=new Z}function qyn(){this.a=new GOn}function Uyn(){this.a=new ni}function Gyn(){this.a=new de}function zyn(){this.b=new de}function Xyn(){this.b=new Z}function JG(){this.e=new Z}function Vyn(){this.a=new Y5n}function Wyn(){this.d=new Z}function Jyn(){JIn.call(this)}function Qyn(){JIn.call(this)}function Yyn(){Z.call(this)}function QG(){HG.call(this)}function YG(){FE.call(this)}function Zyn(){HC.call(this)}function njn(){WG.call(this)}function Wv(){Myn.call(this)}function sD(){Wv.call(this)}function up(){Myn.call(this)}function ZG(){up.call(this)}function ejn(){iz.call(this)}function tjn(){iz.call(this)}function ijn(){iz.call(this)}function rjn(){rz.call(this)}function Jv(){ovn.call(this)}function nz(){ovn.call(this)}function Mu(){Ct.call(this)}function cjn(){kjn.call(this)}function ujn(){kjn.call(this)}function ojn(){de.call(this)}function sjn(){de.call(this)}function fjn(){de.call(this)}function fD(){rxn.call(this)}function hjn(){ni.call(this)}function ljn(){$E.call(this)}function hD(){FX.call(this)}function ez(){de.call(this)}function lD(){FX.call(this)}function aD(){de.call(this)}function ajn(){de.call(this)}function tz(){CE.call(this)}function djn(){tz.call(this)}function bjn(){CE.call(this)}function wjn(){iG.call(this)}function iz(){this.a=new ni}function gjn(){this.a=new de}function pjn(){this.a=new Z}function rz(){this.a=new de}function op(){this.a=new Ct}function mjn(){this.j=new Z}function vjn(){this.a=new pEn}function kjn(){this.a=new pvn}function cz(){this.a=new Y4n}function Qv(){Qv=F,KK=new Ht}function dD(){dD=F,_K=new jjn}function bD(){bD=F,HK=new yjn}function yjn(){XO.call(this,"")}function jjn(){XO.call(this,"")}function Ejn(n){A$n.call(this,n)}function Cjn(n){A$n.call(this,n)}function uz(n){sG.call(this,n)}function oz(n){zEn.call(this,n)}function Xfe(n){zEn.call(this,n)}function Vfe(n){oz.call(this,n)}function Wfe(n){oz.call(this,n)}function Jfe(n){oz.call(this,n)}function Mjn(n){zN.call(this,n)}function Tjn(n){zN.call(this,n)}function Ajn(n){cSn.call(this,n)}function Sjn(n){Iz.call(this,n)}function Yv(n){VE.call(this,n)}function sz(n){VE.call(this,n)}function Pjn(n){VE.call(this,n)}function fz(n){mje.call(this,n)}function hz(n){fz.call(this,n)}function ec(n){TPn.call(this,n)}function Ijn(n){ec.call(this,n)}function sp(){q9.call(this,{})}function Ojn(){Ojn=F,dQn=new C0n}function BE(){BE=F,GK=new ATn}function Djn(){Djn=F,cun=new Bu}function lz(){lz=F,uun=new N1}function RE(){RE=F,C8=new $1}function wD(n){d4(),this.a=n}function gD(n){BQ(),this.a=n}function Sb(n){nN(),this.f=n}function pD(n){nN(),this.f=n}function Ljn(n){dSn(),this.a=n}function Njn(n){n.b=null,n.c=0}function Qfe(n,e){n.e=e,bqn(n,e)}function Yfe(n,e){n.a=e,cEe(n)}function mD(n,e,t){n.a[e.g]=t}function Zfe(n,e,t){kke(t,n,e)}function nhe(n,e){Wae(e.i,n.n)}function $jn(n,e){v6e(n).Cd(e)}function ehe(n,e){n.a.ec().Mc(e)}function xjn(n,e){return n.g-e.g}function the(n,e){return n*n/e}function on(n){return Jn(n),n}function $(n){return Jn(n),n}function J9(n){return Jn(n),n}function ihe(n){return new TE(n)}function rhe(n){return new qb(n)}function az(n){return Jn(n),n}function che(n){return Jn(n),n}function KE(n){ec.call(this,n)}function Ir(n){ec.call(this,n)}function Fjn(n){ec.call(this,n)}function vD(n){TPn.call(this,n)}function t4(n){ec.call(this,n)}function Gn(n){ec.call(this,n)}function Or(n){ec.call(this,n)}function Bjn(n){ec.call(this,n)}function fp(n){ec.call(this,n)}function Kl(n){ec.call(this,n)}function _l(n){ec.call(this,n)}function hp(n){ec.call(this,n)}function eh(n){ec.call(this,n)}function kD(n){ec.call(this,n)}function Le(n){ec.call(this,n)}function Ku(n){Jn(n),this.a=n}function dz(n){return ld(n),n}function Zv(n){MW(n,n.length)}function n6(n){return n.b==n.c}function Pb(n){return!!n&&n.b}function uhe(n){return!!n&&n.k}function ohe(n){return!!n&&n.j}function she(n,e,t){n.c.Ef(e,t)}function Rjn(n,e){n.be(e),e.ae(n)}function lp(n){oh(),this.a=Se(n)}function yD(){this.a=Oe(Se(ur))}function Kjn(){throw M(new Pe)}function fhe(){throw M(new Pe)}function bz(){throw M(new Pe)}function _jn(){throw M(new Pe)}function hhe(){throw M(new Pe)}function lhe(){throw M(new Pe)}function _E(){_E=F,I4()}function Hl(){U9.call(this,"")}function e6(){U9.call(this,"")}function x1(){U9.call(this,"")}function fg(){U9.call(this,"")}function wz(n){Ir.call(this,n)}function gz(n){Ir.call(this,n)}function th(n){Gn.call(this,n)}function i4(n){J3.call(this,n)}function Hjn(n){i4.call(this,n)}function jD(n){FC.call(this,n)}function ED(n){WX.call(this,n,0)}function CD(){oJ.call(this,12,3)}function T(n,e){return vOn(n,e)}function HE(n,e){return o$(n,e)}function ahe(n,e){return n.a-e.a}function dhe(n,e){return n.a-e.a}function bhe(n,e){return n.a-e.a}function whe(n,e){return e in n.a}function qjn(n){return n.a?n.b:0}function ghe(n){return n.a?n.b:0}function phe(n,e,t){e.Cd(n.a[t])}function mhe(n,e,t){e.Pe(n.a[t])}function vhe(n,e){n.b=new rr(e)}function khe(n,e){return n.b=e,n}function Ujn(n,e){return n.c=e,n}function Gjn(n,e){return n.f=e,n}function yhe(n,e){return n.g=e,n}function pz(n,e){return n.a=e,n}function mz(n,e){return n.f=e,n}function jhe(n,e){return n.k=e,n}function vz(n,e){return n.a=e,n}function Ehe(n,e){return n.e=e,n}function kz(n,e){return n.e=e,n}function Che(n,e){return n.f=e,n}function Mhe(n,e){n.b=!0,n.d=e}function The(n,e){return n.b-e.b}function Ahe(n,e){return n.g-e.g}function She(n,e){return n?0:e-1}function zjn(n,e){return n?0:e-1}function Phe(n,e){return n?e-1:0}function Ihe(n,e){return n.s-e.s}function Ohe(n,e){return e.rg(n)}function Qd(n,e){return n.b=e,n}function qE(n,e){return n.a=e,n}function Yd(n,e){return n.c=e,n}function Zd(n,e){return n.d=e,n}function n0(n,e){return n.e=e,n}function yz(n,e){return n.f=e,n}function t6(n,e){return n.a=e,n}function r4(n,e){return n.b=e,n}function c4(n,e){return n.c=e,n}function an(n,e){return n.c=e,n}function Sn(n,e){return n.b=e,n}function dn(n,e){return n.d=e,n}function bn(n,e){return n.e=e,n}function Dhe(n,e){return n.f=e,n}function wn(n,e){return n.g=e,n}function gn(n,e){return n.a=e,n}function pn(n,e){return n.i=e,n}function mn(n,e){return n.j=e,n}function Lhe(n,e){ua(),ic(e,n)}function Nhe(n,e,t){Jbe(n.a,e,t)}function UE(n){$L.call(this,n)}function Xjn(n){Z5e.call(this,n)}function Vjn(n){AIn.call(this,n)}function jz(n){AIn.call(this,n)}function F1(n){T0.call(this,n)}function Wjn(n){CN.call(this,n)}function Jjn(n){CN.call(this,n)}function Qjn(){OX.call(this,"")}function Li(){this.a=0,this.b=0}function Yjn(){this.b=0,this.a=0}function Zjn(n,e){n.b=0,Zb(n,e)}function nEn(n,e){return n.k=e,n}function $he(n,e){return n.j=e,n}function xhe(n,e){n.c=e,n.b=!0}function eEn(){eEn=F,TQn=Xke()}function B1(){B1=F,voe=rke()}function tEn(){tEn=F,Ti=gye()}function Ez(){Ez=F,Da=G4()}function u4(){u4=F,qdn=cke()}function iEn(){iEn=F,ise=uke()}function Cz(){Cz=F,yc=tEe()}function of(n){return n.e&&n.e()}function rEn(n){return n.l|n.m<<22}function cEn(n,e){return n.c._b(e)}function uEn(n,e){return iBn(n.b,e)}function MD(n){return n?n.d:null}function Fhe(n){return n?n.g:null}function Bhe(n){return n?n.i:null}function Xa(n){return ll(n),n.o}function hg(n,e){return n.a+=e,n}function TD(n,e){return n.a+=e,n}function ql(n,e){return n.a+=e,n}function e0(n,e){return n.a+=e,n}function Mz(n,e){for(;n.Bd(e););}function GE(n){this.a=new ap(n)}function oEn(){throw M(new Pe)}function sEn(){throw M(new Pe)}function fEn(){throw M(new Pe)}function hEn(){throw M(new Pe)}function lEn(){throw M(new Pe)}function aEn(){throw M(new Pe)}function Ul(n){this.a=new iN(n)}function dEn(){this.a=new $5(Fln)}function bEn(){this.b=new $5(tln)}function wEn(){this.a=new $5(o1n)}function gEn(){this.b=new $5(xq)}function pEn(){this.b=new $5(xq)}function zE(n){this.a=0,this.b=n}function Tz(n){zGn(),ILe(this,n)}function o4(n){return X1(n),n.a}function Q9(n){return n.b!=n.d.c}function Az(n,e){return n.d[e.p]}function mEn(n,e){return XTe(n,e)}function Sz(n,e,t){n.splice(e,t)}function lg(n,e){for(;n.Re(e););}function vEn(n){n.c?Dqn(n):Lqn(n)}function kEn(){throw M(new Pe)}function yEn(){throw M(new Pe)}function jEn(){throw M(new Pe)}function EEn(){throw M(new Pe)}function CEn(){throw M(new Pe)}function MEn(){throw M(new Pe)}function TEn(){throw M(new Pe)}function AEn(){throw M(new Pe)}function SEn(){throw M(new Pe)}function PEn(){throw M(new Pe)}function Rhe(){throw M(new nc)}function Khe(){throw M(new nc)}function Y9(n){this.a=new IEn(n)}function IEn(n){Ume(this,n,jje())}function Z9(n){return!n||uIn(n)}function n7(n){return nh[n]!=-1}function _he(){cP!=0&&(cP=0),uP=-1}function OEn(){RK==null&&(RK=[])}function e7(n,e){Mg.call(this,n,e)}function s4(n,e){e7.call(this,n,e)}function DEn(n,e){this.a=n,this.b=e}function LEn(n,e){this.a=n,this.b=e}function NEn(n,e){this.a=n,this.b=e}function $En(n,e){this.a=n,this.b=e}function xEn(n,e){this.a=n,this.b=e}function FEn(n,e){this.a=n,this.b=e}function BEn(n,e){this.a=n,this.b=e}function f4(n,e){this.e=n,this.d=e}function Pz(n,e){this.b=n,this.c=e}function REn(n,e){this.b=n,this.a=e}function KEn(n,e){this.b=n,this.a=e}function _En(n,e){this.b=n,this.a=e}function HEn(n,e){this.b=n,this.a=e}function qEn(n,e){this.a=n,this.b=e}function AD(n,e){this.a=n,this.b=e}function UEn(n,e){this.a=n,this.f=e}function t0(n,e){this.g=n,this.i=e}function je(n,e){this.f=n,this.g=e}function GEn(n,e){this.b=n,this.c=e}function zEn(n){RX(n.dc()),this.c=n}function Hhe(n,e){this.a=n,this.b=e}function XEn(n,e){this.a=n,this.b=e}function VEn(n){this.a=u(Se(n),15)}function Iz(n){this.a=u(Se(n),15)}function WEn(n){this.a=u(Se(n),85)}function XE(n){this.b=u(Se(n),85)}function VE(n){this.b=u(Se(n),51)}function WE(){this.q=new y.Date}function SD(n,e){this.a=n,this.b=e}function JEn(n,e){return Zc(n.b,e)}function t7(n,e){return n.b.Hc(e)}function QEn(n,e){return n.b.Ic(e)}function YEn(n,e){return n.b.Qc(e)}function ZEn(n,e){return n.b.Hc(e)}function nCn(n,e){return n.c.uc(e)}function eCn(n,e){return rt(n.c,e)}function sf(n,e){return n.a._b(e)}function tCn(n,e){return n>e&&e0}function ND(n,e){return Ec(n,e)<0}function mCn(n,e){return JL(n.a,e)}function ole(n,e){kOn.call(this,n,e)}function Fz(n){wN(),cSn.call(this,n)}function Bz(n,e){dPn(n,n.length,e)}function u7(n,e){_Pn(n,n.length,e)}function h6(n,e){return n.a.get(e)}function vCn(n,e){return Zc(n.e,e)}function Rz(n){return Jn(n),!1}function Kz(n){this.a=u(Se(n),229)}function rC(n){In.call(this,n,21)}function cC(n,e){je.call(this,n,e)}function $D(n,e){je.call(this,n,e)}function kCn(n,e){this.b=n,this.a=e}function uC(n,e){this.d=n,this.e=e}function yCn(n,e){this.a=n,this.b=e}function jCn(n,e){this.a=n,this.b=e}function ECn(n,e){this.a=n,this.b=e}function CCn(n,e){this.a=n,this.b=e}function bp(n,e){this.a=n,this.b=e}function MCn(n,e){this.b=n,this.a=e}function _z(n,e){this.b=n,this.a=e}function Hz(n,e){je.call(this,n,e)}function qz(n,e){je.call(this,n,e)}function ag(n,e){je.call(this,n,e)}function xD(n,e){je.call(this,n,e)}function FD(n,e){je.call(this,n,e)}function BD(n,e){je.call(this,n,e)}function oC(n,e){je.call(this,n,e)}function Uz(n,e){this.b=n,this.a=e}function sC(n,e){je.call(this,n,e)}function Gz(n,e){this.b=n,this.a=e}function fC(n,e){je.call(this,n,e)}function TCn(n,e){this.b=n,this.a=e}function zz(n,e){je.call(this,n,e)}function RD(n,e){je.call(this,n,e)}function o7(n,e){je.call(this,n,e)}function l6(n,e,t){n.splice(e,0,t)}function sle(n,e,t){n.Mb(t)&&e.Cd(t)}function fle(n,e,t){e.Pe(n.a.Ye(t))}function hle(n,e,t){e.Dd(n.a.Ze(t))}function lle(n,e,t){e.Cd(n.a.Kb(t))}function ale(n,e){return Au(n.c,e)}function dle(n,e){return Au(n.e,e)}function hC(n,e){je.call(this,n,e)}function lC(n,e){je.call(this,n,e)}function a6(n,e){je.call(this,n,e)}function Xz(n,e){je.call(this,n,e)}function ei(n,e){je.call(this,n,e)}function aC(n,e){je.call(this,n,e)}function ACn(n,e){this.a=n,this.b=e}function SCn(n,e){this.a=n,this.b=e}function PCn(n,e){this.a=n,this.b=e}function ICn(n,e){this.a=n,this.b=e}function OCn(n,e){this.a=n,this.b=e}function DCn(n,e){this.a=n,this.b=e}function LCn(n,e){this.b=n,this.a=e}function NCn(n,e){this.b=n,this.a=e}function Vz(n,e){this.b=n,this.a=e}function a4(n,e){this.c=n,this.d=e}function $Cn(n,e){this.e=n,this.d=e}function xCn(n,e){this.a=n,this.b=e}function FCn(n,e){this.a=n,this.b=e}function BCn(n,e){this.a=n,this.b=e}function RCn(n,e){this.b=n,this.a=e}function KCn(n,e){this.b=e,this.c=n}function dC(n,e){je.call(this,n,e)}function s7(n,e){je.call(this,n,e)}function KD(n,e){je.call(this,n,e)}function Wz(n,e){je.call(this,n,e)}function d6(n,e){je.call(this,n,e)}function _D(n,e){je.call(this,n,e)}function HD(n,e){je.call(this,n,e)}function f7(n,e){je.call(this,n,e)}function Jz(n,e){je.call(this,n,e)}function qD(n,e){je.call(this,n,e)}function b6(n,e){je.call(this,n,e)}function Qz(n,e){je.call(this,n,e)}function w6(n,e){je.call(this,n,e)}function g6(n,e){je.call(this,n,e)}function Db(n,e){je.call(this,n,e)}function UD(n,e){je.call(this,n,e)}function GD(n,e){je.call(this,n,e)}function Yz(n,e){je.call(this,n,e)}function h7(n,e){je.call(this,n,e)}function dg(n,e){je.call(this,n,e)}function zD(n,e){je.call(this,n,e)}function bC(n,e){je.call(this,n,e)}function l7(n,e){je.call(this,n,e)}function Lb(n,e){je.call(this,n,e)}function wC(n,e){je.call(this,n,e)}function Zz(n,e){je.call(this,n,e)}function XD(n,e){je.call(this,n,e)}function VD(n,e){je.call(this,n,e)}function WD(n,e){je.call(this,n,e)}function JD(n,e){je.call(this,n,e)}function QD(n,e){je.call(this,n,e)}function YD(n,e){je.call(this,n,e)}function ZD(n,e){je.call(this,n,e)}function _Cn(n,e){this.b=n,this.a=e}function nX(n,e){je.call(this,n,e)}function HCn(n,e){this.a=n,this.b=e}function qCn(n,e){this.a=n,this.b=e}function UCn(n,e){this.a=n,this.b=e}function eX(n,e){je.call(this,n,e)}function tX(n,e){je.call(this,n,e)}function GCn(n,e){this.a=n,this.b=e}function ble(n,e){return v4(),e!=n}function a7(n){return oe(n.a),n.b}function nL(n){return yCe(n,n.c),n}function zCn(){return eEn(),new TQn}function XCn(){XC(),this.a=new vV}function VCn(){OA(),this.a=new ni}function WCn(){NN(),this.b=new ni}function JCn(n,e){this.b=n,this.d=e}function QCn(n,e){this.a=n,this.b=e}function YCn(n,e){this.a=n,this.b=e}function ZCn(n,e){this.a=n,this.b=e}function nMn(n,e){this.b=n,this.a=e}function iX(n,e){je.call(this,n,e)}function rX(n,e){je.call(this,n,e)}function gC(n,e){je.call(this,n,e)}function r0(n,e){je.call(this,n,e)}function eL(n,e){je.call(this,n,e)}function pC(n,e){je.call(this,n,e)}function cX(n,e){je.call(this,n,e)}function uX(n,e){je.call(this,n,e)}function d7(n,e){je.call(this,n,e)}function oX(n,e){je.call(this,n,e)}function tL(n,e){je.call(this,n,e)}function mC(n,e){je.call(this,n,e)}function iL(n,e){je.call(this,n,e)}function rL(n,e){je.call(this,n,e)}function cL(n,e){je.call(this,n,e)}function uL(n,e){je.call(this,n,e)}function sX(n,e){je.call(this,n,e)}function oL(n,e){je.call(this,n,e)}function fX(n,e){je.call(this,n,e)}function b7(n,e){je.call(this,n,e)}function sL(n,e){je.call(this,n,e)}function hX(n,e){je.call(this,n,e)}function w7(n,e){je.call(this,n,e)}function lX(n,e){je.call(this,n,e)}function eMn(n,e){this.b=n,this.a=e}function tMn(n,e){this.b=n,this.a=e}function iMn(n,e){this.b=n,this.a=e}function rMn(n,e){this.b=n,this.a=e}function aX(n,e){this.a=n,this.b=e}function cMn(n,e){this.a=n,this.b=e}function uMn(n,e){this.a=n,this.b=e}function V(n,e){this.a=n,this.b=e}function p6(n,e){je.call(this,n,e)}function g7(n,e){je.call(this,n,e)}function wp(n,e){je.call(this,n,e)}function m6(n,e){je.call(this,n,e)}function p7(n,e){je.call(this,n,e)}function fL(n,e){je.call(this,n,e)}function vC(n,e){je.call(this,n,e)}function v6(n,e){je.call(this,n,e)}function hL(n,e){je.call(this,n,e)}function kC(n,e){je.call(this,n,e)}function bg(n,e){je.call(this,n,e)}function m7(n,e){je.call(this,n,e)}function k6(n,e){je.call(this,n,e)}function y6(n,e){je.call(this,n,e)}function v7(n,e){je.call(this,n,e)}function yC(n,e){je.call(this,n,e)}function wg(n,e){je.call(this,n,e)}function lL(n,e){je.call(this,n,e)}function oMn(n,e){je.call(this,n,e)}function jC(n,e){je.call(this,n,e)}function sMn(n,e){this.a=n,this.b=e}function fMn(n,e){this.a=n,this.b=e}function hMn(n,e){this.a=n,this.b=e}function lMn(n,e){this.a=n,this.b=e}function aMn(n,e){this.a=n,this.b=e}function dMn(n,e){this.a=n,this.b=e}function bi(n,e){this.a=n,this.b=e}function bMn(n,e){this.a=n,this.b=e}function wMn(n,e){this.a=n,this.b=e}function gMn(n,e){this.a=n,this.b=e}function pMn(n,e){this.a=n,this.b=e}function mMn(n,e){this.a=n,this.b=e}function vMn(n,e){this.a=n,this.b=e}function kMn(n,e){this.b=n,this.a=e}function yMn(n,e){this.b=n,this.a=e}function jMn(n,e){this.b=n,this.a=e}function EMn(n,e){this.b=n,this.a=e}function CMn(n,e){this.a=n,this.b=e}function MMn(n,e){this.a=n,this.b=e}function EC(n,e){je.call(this,n,e)}function TMn(n,e){this.a=n,this.b=e}function AMn(n,e){this.a=n,this.b=e}function gp(n,e){je.call(this,n,e)}function SMn(n,e){this.f=n,this.c=e}function dX(n,e){return Au(n.g,e)}function wle(n,e){return Au(e.b,n)}function PMn(n,e){return wx(n.a,e)}function gle(n,e){return-n.b.af(e)}function ple(n,e){n&&Ve(fE,n,e)}function bX(n,e){n.i=null,kT(n,e)}function mle(n,e,t){kKn(e,oF(n,t))}function vle(n,e,t){kKn(e,oF(n,t))}function kle(n,e){VMe(n.a,u(e,58))}function IMn(n,e){U4e(n.a,u(e,12))}function CC(n,e){this.a=n,this.b=e}function OMn(n,e){this.a=n,this.b=e}function DMn(n,e){this.a=n,this.b=e}function LMn(n,e){this.a=n,this.b=e}function NMn(n,e){this.a=n,this.b=e}function $Mn(n,e){this.d=n,this.b=e}function xMn(n,e){this.e=n,this.a=e}function k7(n,e){this.b=n,this.c=e}function wX(n,e){this.i=n,this.g=e}function gX(n,e){this.d=n,this.e=e}function yle(n,e){cme(new ne(n),e)}function MC(n){return xk(n.c,n.b)}function Kr(n){return n?n.md():null}function x(n){return n??null}function Ai(n){return typeof n===nB}function Nb(n){return typeof n===i3}function $b(n){return typeof n===ltn}function c0(n,e){return Ec(n,e)==0}function TC(n,e){return Ec(n,e)>=0}function j6(n,e){return Ec(n,e)!=0}function AC(n,e){return jve(n.Kc(),e)}function _1(n,e){return n.Rd().Xb(e)}function FMn(n){return eo(n),n.d.gc()}function SC(n){return N6(n==null),n}function E6(n,e){return n.a+=""+e,n}function Er(n,e){return n.a+=""+e,n}function C6(n,e){return n.a+=""+e,n}function Dc(n,e){return n.a+=""+e,n}function Re(n,e){return n.a+=""+e,n}function pX(n,e){return n.a+=""+e,n}function jle(n){return""+(Jn(n),n)}function BMn(n){Hu(this),u5(this,n)}function RMn(){uJ(),aW.call(this)}function KMn(n,e){pW.call(this,n,e)}function _Mn(n,e){pW.call(this,n,e)}function PC(n,e){pW.call(this,n,e)}function ir(n,e){xt(n,e,n.c.b,n.c)}function gg(n,e){xt(n,e,n.a,n.a.a)}function mX(n){return Ln(n,0),null}function HMn(){this.b=0,this.a=!1}function qMn(){this.b=0,this.a=!1}function UMn(){this.b=new ap(Qb(12))}function GMn(){GMn=F,kYn=Ce(jx())}function zMn(){zMn=F,HZn=Ce(iqn())}function XMn(){XMn=F,lre=Ce($xn())}function vX(){vX=F,KG(),oun=new de}function ff(n){return n.a=0,n.b=0,n}function VMn(n,e){return n.a=e.g+1,n}function aL(n,e){Kb.call(this,n,e)}function Mn(n,e){Dt.call(this,n,e)}function pg(n,e){wX.call(this,n,e)}function WMn(n,e){C7.call(this,n,e)}function dL(n,e){Q4.call(this,n,e)}function Ge(n,e){tC(),Ve(yO,n,e)}function JMn(n,e){n.q.setTime(id(e))}function Ele(n){y.clearTimeout(n)}function Cle(n){return Se(n),new M6(n)}function QMn(n,e){return x(n)===x(e)}function YMn(n,e){return n.a.a.a.cc(e)}function bL(n,e){return qo(n.a,0,e)}function kX(n){return Awe(u(n,74))}function pp(n){return wi((Jn(n),n))}function Mle(n){return wi((Jn(n),n))}function ZMn(n){return Yc(n.l,n.m,n.h)}function yX(n,e){return jc(n.a,e.a)}function Tle(n,e){return RPn(n.a,e.a)}function Ale(n,e){return bt(n.a,e.a)}function ih(n,e){return n.indexOf(e)}function Sle(n,e){return n.j[e.p]==2}function u0(n,e){return n==e?0:n?1:-1}function IC(n){return n<10?"0"+n:""+n}function Vr(n){return typeof n===ltn}function Ple(n){return n==tb||n==Iw}function Ile(n){return n==tb||n==Pw}function nTn(n,e){return jc(n.g,e.g)}function jX(n){return qr(n.b.b,n,0)}function eTn(){iM.call(this,0,0,0,0)}function rh(){EG.call(this,new Ql)}function EX(n,e){x4(n,0,n.length,e)}function Ole(n,e){return nn(n.a,e),e}function Dle(n,e){return Fs(),e.a+=n}function Lle(n,e){return Fs(),e.a+=n}function Nle(n,e){return Fs(),e.c+=n}function $le(n,e){return nn(n.c,e),n}function CX(n,e){return Mo(n.a,e),n}function tTn(n){this.a=zCn(),this.b=n}function iTn(n){this.a=zCn(),this.b=n}function rr(n){this.a=n.a,this.b=n.b}function M6(n){this.a=n,GO.call(this)}function rTn(n){this.a=n,GO.call(this)}function mp(){Ho.call(this,0,0,0,0)}function OC(n){return Mo(new ii,n)}function cTn(n){return yM(u(n,123))}function fo(n){return n.vh()&&n.wh()}function mg(n){return n!=Qf&&n!=Pa}function hl(n){return n==Br||n==Xr}function vg(n){return n==us||n==Wf}function uTn(n){return n==P2||n==S2}function xle(n,e){return jc(n.g,e.g)}function oTn(n,e){return new Q4(e,n)}function Fle(n,e){return new Q4(e,n)}function MX(n){return rbe(n.b.Kc(),n.a)}function wL(n,e){cm(n,e),U4(n,n.D)}function gL(n,e,t){aT(n,e),lT(n,t)}function kg(n,e,t){S0(n,e),A0(n,t)}function Ro(n,e,t){eu(n,e),tu(n,t)}function y7(n,e,t){K4(n,e),H4(n,t)}function j7(n,e,t){_4(n,e),q4(n,t)}function sTn(n,e,t){oV.call(this,n,e,t)}function TX(n){SMn.call(this,n,!0)}function fTn(){cC.call(this,"Tail",3)}function hTn(){cC.call(this,"Head",1)}function H1(n){dh(),mve.call(this,n)}function o0(n){iM.call(this,n,n,n,n)}function pL(n){n.c=K(ki,Fn,1,0,5,1)}function AX(n){return n.b&&xF(n),n.a}function SX(n){return n.b&&xF(n),n.c}function Ble(n,e){Uf||(n.b=e)}function Rle(n,e){return n[n.length]=e}function Kle(n,e){return n[n.length]=e}function _le(n,e){return Yb(e,Sf(n))}function Hle(n,e){return Yb(e,Sf(n))}function qle(n,e){return pT(dN(n.d),e)}function Ule(n,e){return pT(dN(n.g),e)}function Gle(n,e){return pT(dN(n.j),e)}function Ni(n,e){Dt.call(this,n.b,e)}function zle(n,e){ve(Sc(n.a),OOn(e))}function Xle(n,e){ve(no(n.a),DOn(e))}function Vle(n,e,t){Ro(t,t.i+n,t.j+e)}function lTn(n,e,t){$t(n.c[e.g],e.g,t)}function Wle(n,e,t){u(n.c,71).Gi(e,t)}function mL(n,e,t){return $t(n,e,t),t}function aTn(n){nu(n.Sf(),new O9n(n))}function yg(n){return n!=null?mt(n):0}function Jle(n){return n==null?0:mt(n)}function T6(n){nt(),Wd.call(this,n)}function dTn(n){this.a=n,HV.call(this,n)}function Tf(){Tf=F,y.Math.log(2)}function Ko(){Ko=F,rl=(gCn(),Moe)}function bTn(){bTn=F,YH=new v5(lU)}function Ie(){Ie=F,new wTn,new Z}function wTn(){new de,new de,new de}function Qle(){throw M(new Kl(QJn))}function Yle(){throw M(new Kl(QJn))}function Zle(){throw M(new Kl(YJn))}function n1e(){throw M(new Kl(YJn))}function vL(n){this.a=n,XE.call(this,n)}function kL(n){this.a=n,XE.call(this,n)}function gTn(n,e){g0(),this.a=n,this.b=e}function e1e(n,e){Se(e),Ag(n).Jc(new Ru)}function Yt(n,e){QL(n.c,n.c.length,e)}function tc(n){return n.ae?1:0}function IX(n,e){return Ec(n,e)>0?n:e}function Yc(n,e,t){return{l:n,m:e,h:t}}function t1e(n,e){n.a!=null&&IMn(e,n.a)}function i1e(n){Zi(n,null),Ii(n,null)}function r1e(n,e,t){return Ve(n.g,t,e)}function jg(n,e,t){return ZY(e,t,n.c)}function c1e(n,e,t){return Ve(n.k,t,e)}function u1e(n,e,t){return GOe(n,e,t),t}function o1e(n,e){return ko(),e.n.b+=n}function mTn(n){ZW.call(this),this.b=n}function OX(n){mV.call(this),this.a=n}function vTn(){cC.call(this,"Range",2)}function DC(n){this.b=n,this.a=new Z}function kTn(n){this.b=new Nbn,this.a=n}function yTn(n){n.a=new OO,n.c=new OO}function jTn(n){n.a=new de,n.d=new de}function ETn(n){$N(n,null),xN(n,null)}function CTn(n,e){return XOe(n.a,e,null)}function s1e(n,e){return Ve(n.a,e.a,e)}function Ki(n){return new V(n.a,n.b)}function DX(n){return new V(n.c,n.d)}function f1e(n){return new V(n.c,n.d)}function A6(n,e){return cOe(n.c,n.b,e)}function D(n,e){return n!=null&&Tx(n,e)}function yL(n,e){return Yve(n.Kc(),e)!=-1}function LC(n){return n.Ob()?n.Pb():null}function h1e(n){this.b=(Dn(),new eD(n))}function LX(n){this.a=n,de.call(this)}function MTn(){C7.call(this,null,null)}function TTn(){KC.call(this,null,null)}function ATn(){je.call(this,"INSTANCE",0)}function STn(){DZ(),this.a=new $5(Son)}function PTn(n){return ws(n,0,n.length)}function l1e(n,e){return new XTn(n.Kc(),e)}function NX(n,e){return n.a.Bc(e)!=null}function ITn(n,e){me(n),n.Gc(u(e,15))}function a1e(n,e,t){n.c.bd(e,u(t,136))}function d1e(n,e,t){n.c.Ui(e,u(t,136))}function OTn(n,e){n.c&&(eW(e),iOn(e))}function b1e(n,e){n.q.setHours(e),K5(n,e)}function w1e(n,e){h0(e,n.a.a.a,n.a.a.b)}function g1e(n,e,t,i){$t(n.a[e.g],t.g,i)}function jL(n,e,t){return n.a[e.g][t.g]}function p1e(n,e){return n.e[e.c.p][e.p]}function m1e(n,e){return n.c[e.c.p][e.p]}function Af(n,e){return n.a[e.c.p][e.p]}function v1e(n,e){return n.j[e.p]=IMe(e)}function EL(n,e){return n.a.Bc(e)!=null}function k1e(n,e){return $(R(e.a))<=n}function y1e(n,e){return $(R(e.a))>=n}function j1e(n,e){return BJ(n.f,e.Pg())}function vp(n,e){return n.a*e.a+n.b*e.b}function E1e(n,e){return n.a0?e/(n*n):e*100}function V1e(n,e){return n>0?e*e/n:e*e*100}function xb(n,e){return u(Nf(n.a,e),34)}function W1e(n,e){return ua(),Pn(n,e.e,e)}function J1e(n,e,t){return ZE(),t.Mg(n,e)}function Q1e(n){return kl(),n.e.a+n.f.a/2}function Y1e(n,e,t){return kl(),t.e.a-n*e}function Z1e(n){return kl(),n.e.b+n.f.b/2}function nae(n,e,t){return kl(),t.e.b-n*e}function oAn(n){n.d=new rAn(n),n.e=new de}function sAn(){this.a=new j0,this.b=new j0}function fAn(n){this.c=n,this.a=1,this.b=1}function hAn(n){YF(),Ayn(this),this.Ff(n)}function eae(n,e,t){YM(),n.pf(e)&&t.Cd(n)}function tae(n,e,t){return nn(e,yBn(n,t))}function h0(n,e,t){return n.a+=e,n.b+=t,n}function iae(n,e,t){return n.a*=e,n.b*=t,n}function YX(n,e){return n.a=e.a,n.b=e.b,n}function _C(n){return n.a=-n.a,n.b=-n.b,n}function O6(n,e,t){return n.a-=e,n.b-=t,n}function lAn(n){Ct.call(this),t5(this,n)}function aAn(){je.call(this,"GROW_TREE",0)}function dAn(){je.call(this,"POLYOMINO",0)}function lo(n,e,t){Iu.call(this,n,e,t,2)}function rae(n,e,t){p5(Sc(n.a),e,OOn(t))}function bAn(n,e){f6(),C7.call(this,n,e)}function ZX(n,e){Gl(),KC.call(this,n,e)}function wAn(n,e){Gl(),ZX.call(this,n,e)}function gAn(n,e){Gl(),KC.call(this,n,e)}function cae(n,e){return n.c.Fc(u(e,136))}function uae(n,e,t){p5(no(n.a),e,DOn(t))}function pAn(n){this.c=n,eu(n,0),tu(n,0)}function PL(n,e){Ko(),uM.call(this,n,e)}function mAn(n,e){Ko(),PL.call(this,n,e)}function nV(n,e){Ko(),PL.call(this,n,e)}function eV(n,e){Ko(),uM.call(this,n,e)}function vAn(n,e){Ko(),nV.call(this,n,e)}function kAn(n,e){Ko(),eV.call(this,n,e)}function yAn(n,e){Ko(),uM.call(this,n,e)}function oae(n,e,t){return e.zl(n.e,n.c,t)}function sae(n,e,t){return e.Al(n.e,n.c,t)}function tV(n,e,t){return qA(fk(n,e),t)}function IL(n,e){return ea(n.e,u(e,54))}function fae(n){return n==null?null:NDe(n)}function hae(n){return n==null?null:Aje(n)}function lae(n){return n==null?null:Jr(n)}function aae(n){return n==null?null:Jr(n)}function un(n){return N6(n==null||Nb(n)),n}function R(n){return N6(n==null||$b(n)),n}function Oe(n){return N6(n==null||Ai(n)),n}function ll(n){n.o==null&&cMe(n)}function iV(n){if(!n)throw M(new W9)}function dae(n){if(!n)throw M(new uD)}function oe(n){if(!n)throw M(new nc)}function Fb(n){if(!n)throw M(new Cu)}function jAn(n){if(!n)throw M(new Bo)}function p4(){p4=F,lE=new cjn,new ujn}function Tg(){Tg=F,D2=new lt("root")}function rV(){rxn.call(this),this.Bb|=hr}function bae(n,e){this.d=n,r9n(this),this.b=e}function cV(n,e){i$.call(this,n),this.a=e}function uV(n,e){i$.call(this,n),this.a=e}function oV(n,e,t){VM.call(this,n,e,t,null)}function EAn(n,e,t){VM.call(this,n,e,t,null)}function A7(n,e){this.c=n,f4.call(this,n,e)}function D6(n,e){this.a=n,A7.call(this,n,e)}function sV(n){this.q=new y.Date(id(n))}function CAn(n){return n>8?0:n+1}function MAn(n,e){Uf||nn(n.a,e)}function wae(n,e){return c7(),J4(e.d.i,n)}function gae(n,e){return Hp(),new tUn(e,n)}function pae(n,e,t){return n.Ne(e,t)<=0?t:e}function mae(n,e,t){return n.Ne(e,t)<=0?e:t}function vae(n,e){return u(Nf(n.b,e),143)}function kae(n,e){return u(Nf(n.c,e),233)}function OL(n){return u(sn(n.a,n.b),293)}function TAn(n){return new V(n.c,n.d+n.a)}function AAn(n){return Jn(n),n?1231:1237}function SAn(n){return ko(),uTn(u(n,203))}function Bb(){Bb=F,ton=yn((go(),Gd))}function yae(n,e){e.a?MCe(n,e):EL(n.a,e.b)}function S7(n,e,t){++n.j,n.tj(),t$(n,e,t)}function PAn(n,e,t){++n.j,n.qj(e,n.Zi(e,t))}function IAn(n,e,t){var i;i=n.fd(e),i.Rb(t)}function fV(n,e,t){return t=So(n,e,6,t),t}function hV(n,e,t){return t=So(n,e,3,t),t}function lV(n,e,t){return t=So(n,e,9,t),t}function uh(n,e){return G7(e,Ntn),n.f=e,n}function aV(n,e){return(e&et)%n.d.length}function OAn(n,e,t){return Uen(n.c,n.b,e,t)}function DAn(n,e){this.c=n,T0.call(this,e)}function LAn(n,e){this.a=n,vyn.call(this,e)}function P7(n,e){this.a=n,vyn.call(this,e)}function Dt(n,e){lt.call(this,n),this.a=e}function dV(n,e){xG.call(this,n),this.a=e}function DL(n,e){xG.call(this,n),this.a=e}function jae(n){XY.call(this,0,0),this.f=n}function NAn(n,e,t){return n.a+=ws(e,0,t),n}function I7(n){return!n.a&&(n.a=new E0n),n.a}function bV(n,e){var t;return t=n.e,n.e=e,t}function wV(n,e){var t;return t=e,!!n.Fe(t)}function Eae(n,e){return _n(),n==e?0:n?1:-1}function Rb(n,e){n.a.bd(n.b,e),++n.b,n.c=-1}function O7(n){n.b?O7(n.b):n.f.c.zc(n.e,n.d)}function $An(n){Hu(n.e),n.d.b=n.d,n.d.a=n.d}function Cae(n,e,t){Va(),e9n(n,e.Ve(n.a,t))}function gV(n,e,t){return Pp(n,u(e,22),t)}function xs(n,e){return HE(new Array(e),n)}function Mae(n){return Ae(U1(n,32))^Ae(n)}function LL(n){return String.fromCharCode(n)}function Tae(n){return n==null?null:n.message}function Aae(n,e,t){return n.apply(e,t)}function Sae(n,e){var t;t=n[DB],t.call(n,e)}function Pae(n,e){var t;t=n[DB],t.call(n,e)}function Iae(n,e){return c7(),!J4(e.d.i,n)}function pV(n,e,t,i){iM.call(this,n,e,t,i)}function xAn(){HC.call(this),this.a=new Li}function mV(){this.n=new Li,this.o=new Li}function FAn(){this.b=new Li,this.c=new Z}function BAn(){this.a=new Z,this.b=new Z}function RAn(){this.a=new KU,this.b=new Fyn}function vV(){this.b=new Ql,this.a=new Ql}function KAn(){this.b=new ni,this.a=new ni}function _An(){this.b=new de,this.a=new de}function HAn(){this.b=new bEn,this.a=new _3n}function qAn(){this.a=new Z5n,this.b=new Dpn}function UAn(){this.a=new Z,this.d=new Z}function HC(){this.n=new up,this.i=new mp}function GAn(n){this.a=(Co(n,mw),new Gc(n))}function zAn(n){this.a=(Co(n,mw),new Gc(n))}function Oae(n){return n<100?null:new F1(n)}function Dae(n,e){return n.n.a=(Jn(e),e+10)}function Lae(n,e){return n.n.a=(Jn(e),e+10)}function Nae(n,e){return e==n||vm(TA(e),n)}function XAn(n,e){return Ve(n.a,e,"")==null}function $ae(n,e){var t;return t=e.qi(n.a),t}function tt(n,e){return n.a+=e.a,n.b+=e.b,n}function mi(n,e){return n.a-=e.a,n.b-=e.b,n}function xae(n){return Ab(n.j.c,0),n.a=-1,n}function kV(n,e,t){return t=So(n,e,11,t),t}function Fae(n,e,t){t!=null&&mT(e,Fx(n,t))}function Bae(n,e,t){t!=null&&vT(e,Fx(n,t))}function jp(n,e,t,i){q.call(this,n,e,t,i)}function yV(n,e,t,i){q.call(this,n,e,t,i)}function VAn(n,e,t,i){yV.call(this,n,e,t,i)}function WAn(n,e,t,i){dM.call(this,n,e,t,i)}function NL(n,e,t,i){dM.call(this,n,e,t,i)}function jV(n,e,t,i){dM.call(this,n,e,t,i)}function JAn(n,e,t,i){NL.call(this,n,e,t,i)}function EV(n,e,t,i){NL.call(this,n,e,t,i)}function Nn(n,e,t,i){jV.call(this,n,e,t,i)}function QAn(n,e,t,i){EV.call(this,n,e,t,i)}function YAn(n,e,t,i){yW.call(this,n,e,t,i)}function Kb(n,e){Ir.call(this,w8+n+Td+e)}function CV(n,e){return n.jk().wi().ri(n,e)}function MV(n,e){return n.jk().wi().ti(n,e)}function ZAn(n,e){return Jn(n),x(n)===x(e)}function An(n,e){return Jn(n),x(n)===x(e)}function Rae(n,e){return n.b.Bd(new jCn(n,e))}function Kae(n,e){return n.b.Bd(new ECn(n,e))}function nSn(n,e){return n.b.Bd(new CCn(n,e))}function _ae(n,e){return n.e=u(n.d.Kb(e),159)}function TV(n,e,t){return n.lastIndexOf(e,t)}function Hae(n,e,t){return bt(n[e.a],n[t.a])}function qae(n,e){return U(e,(cn(),Ej),n)}function Uae(n,e){return jc(e.a.d.p,n.a.d.p)}function Gae(n,e){return jc(n.a.d.p,e.a.d.p)}function zae(n,e){return bt(n.c-n.s,e.c-e.s)}function Xae(n,e){return bt(n.b.e.a,e.b.e.a)}function Vae(n,e){return bt(n.c.e.a,e.c.e.a)}function eSn(n){return n.c?qr(n.c.a,n,0):-1}function Ep(n){return n==Ud||n==tl||n==qc}function AV(n,e){this.c=n,oN.call(this,n,e)}function tSn(n,e,t){this.a=n,WX.call(this,e,t)}function iSn(n){this.c=n,PC.call(this,jy,0)}function rSn(n,e,t){this.c=e,this.b=t,this.a=n}function D7(n){v4(),this.d=n,this.a=new Cg}function cSn(n){oh(),this.a=(Dn(),new i4(n))}function Wae(n,e){hl(n.f)?QCe(n,e):Sye(n,e)}function uSn(n,e){sbe.call(this,n,n.length,e)}function Jae(n,e){Uf||e&&(n.d=e)}function oSn(n,e){return D(e,15)&&xqn(n.c,e)}function Qae(n,e,t){return u(n.c,71).Wk(e,t)}function qC(n,e,t){return u(n.c,71).Xk(e,t)}function Yae(n,e,t){return oae(n,u(e,343),t)}function SV(n,e,t){return sae(n,u(e,343),t)}function Zae(n,e,t){return SKn(n,u(e,343),t)}function sSn(n,e,t){return _ye(n,u(e,343),t)}function L6(n,e){return e==null?null:tw(n.b,e)}function PV(n){return $b(n)?(Jn(n),n):n.ue()}function UC(n){return!isNaN(n)&&!isFinite(n)}function $L(n){yTn(this),vo(this),Bi(this,n)}function _u(n){pL(this),GV(this.c,0,n.Pc())}function _o(n,e,t){this.a=n,this.b=e,this.c=t}function fSn(n,e,t){this.a=n,this.b=e,this.c=t}function hSn(n,e,t){this.d=n,this.b=t,this.a=e}function lSn(n){this.a=n,fl(),vc(Date.now())}function aSn(n){bo(n.a),UJ(n.c,n.b),n.b=null}function xL(){xL=F,Pun=new N0n,AQn=new $0n}function dSn(){dSn=F,Ioe=K(ki,Fn,1,0,5,1)}function bSn(){bSn=F,Voe=K(ki,Fn,1,0,5,1)}function IV(){IV=F,Woe=K(ki,Fn,1,0,5,1)}function oh(){oh=F,new RG((Dn(),Dn(),sr))}function nde(n){return F4(),Ee((kNn(),IQn),n)}function ede(n){return Gu(),Ee((hNn(),xQn),n)}function tde(n){return YT(),Ee((WDn(),HQn),n)}function ide(n){return cT(),Ee((JDn(),qQn),n)}function rde(n){return NA(),Ee((Wxn(),UQn),n)}function cde(n){return wf(),Ee((sNn(),XQn),n)}function ude(n){return Uu(),Ee((oNn(),WQn),n)}function ode(n){return bu(),Ee((fNn(),QQn),n)}function sde(n){return VA(),Ee((GMn(),kYn),n)}function fde(n){return D0(),Ee((jNn(),jYn),n)}function hde(n){return Vp(),Ee((CNn(),CYn),n)}function lde(n){return C5(),Ee((ENn(),AYn),n)}function ade(n){return QE(),Ee((yDn(),SYn),n)}function dde(n){return uT(),Ee((QDn(),GYn),n)}function bde(n){return n5(),Ee((lNn(),pZn),n)}function wde(n){return Vi(),Ee((c$n(),yZn),n)}function gde(n){return Z4(),Ee((TNn(),TZn),n)}function pde(n){return dd(),Ee((MNn(),DZn),n)}function OV(n,e){if(!n)throw M(new Gn(e))}function m4(n){if(!n)throw M(new Or(atn))}function FL(n,e){if(n!=e)throw M(new Bo)}function wSn(n,e,t){this.a=n,this.b=e,this.c=t}function DV(n,e,t){this.a=n,this.b=e,this.c=t}function gSn(n,e,t){this.a=n,this.b=e,this.c=t}function GC(n,e,t){this.b=n,this.a=e,this.c=t}function LV(n,e,t){this.b=n,this.c=e,this.a=t}function NV(n,e,t){this.a=n,this.b=e,this.c=t}function zC(n,e,t){this.e=e,this.b=n,this.d=t}function pSn(n,e,t){this.b=n,this.a=e,this.c=t}function mde(n,e,t){return Va(),n.a.Yd(e,t),e}function BL(n){var e;return e=new cbn,e.e=n,e}function $V(n){var e;return e=new Hyn,e.b=n,e}function L7(){L7=F,CP=new ogn,MP=new sgn}function XC(){XC=F,XZn=new $gn,zZn=new xgn}function Fs(){Fs=F,YZn=new U2n,ZZn=new G2n}function vde(n){return I0(),Ee((qLn(),fne),n)}function kde(n){return tr(),Ee((zMn(),HZn),n)}function yde(n){return OT(),Ee((SNn(),GZn),n)}function jde(n){return xf(),Ee((ANn(),tne),n)}function Ede(n){return ow(),Ee((u$n(),rne),n)}function Cde(n){return DA(),Ee((Nxn(),hne),n)}function Mde(n){return Yp(),Ee((O$n(),lne),n)}function Tde(n){return QM(),Ee((eLn(),ane),n)}function Ade(n){return i5(),Ee((KLn(),dne),n)}function Sde(n){return bT(),Ee((_Ln(),bne),n)}function Pde(n){return o1(),Ee((o$n(),wne),n)}function Ide(n){return bk(),Ee((nLn(),gne),n)}function Ode(n){return ym(),Ee((N$n(),jne),n)}function Dde(n){return pr(),Ee((lFn(),Ene),n)}function Lde(n){return Y4(),Ee((GLn(),Cne),n)}function Nde(n){return vl(),Ee((ULn(),Tne),n)}function $de(n){return KM(),Ee((oLn(),Ane),n)}function xde(n){return Xk(),Ee((L$n(),yne),n)}function Fde(n){return hd(),Ee((HLn(),mne),n)}function Bde(n){return vA(),Ee((D$n(),vne),n)}function Rde(n){return ok(),Ee((ZDn(),kne),n)}function Kde(n){return Yo(),Ee((f$n(),Sne),n)}function _de(n){return a1(),Ee((zxn(),Yte),n)}function Hde(n){return d5(),Ee((zLn(),Zte),n)}function qde(n){return cw(),Ee((PNn(),nie),n)}function Ude(n){return E5(),Ee((s$n(),eie),n)}function Gde(n){return ps(),Ee((aFn(),tie),n)}function zde(n){return lh(),Ee((INn(),iie),n)}function Xde(n){return ak(),Ee((tLn(),rie),n)}function Vde(n){return gr(),Ee((WLn(),uie),n)}function Wde(n){return ST(),Ee((XLn(),oie),n)}function Jde(n){return h5(),Ee((VLn(),sie),n)}function Qde(n){return um(),Ee((QLn(),fie),n)}function Yde(n){return dT(),Ee((JLn(),hie),n)}function Zde(n){return DT(),Ee((YLn(),lie),n)}function n0e(n){return P0(),Ee((uNn(),Aie),n)}function e0e(n){return Q6(),Ee((iLn(),Die),n)}function t0e(n){return fh(),Ee((rLn(),Rie),n)}function i0e(n){return Pf(),Ee((cLn(),_ie),n)}function r0e(n){return af(),Ee((uLn(),tre),n)}function c0e(n){return E0(),Ee((sLn(),fre),n)}function u0e(n){return Qp(),Ee((FNn(),hre),n)}function o0e(n){return B5(),Ee((XMn(),lre),n)}function s0e(n){return l5(),Ee((ZLn(),are),n)}function f0e(n){return a5(),Ee((xNn(),$re),n)}function h0e(n){return FM(),Ee((hLn(),xre),n)}function l0e(n){return yT(),Ee((lLn(),_re),n)}function a0e(n){return wA(),Ee((h$n(),qre),n)}function d0e(n){return Sk(),Ee((nNn(),Gre),n)}function b0e(n){return ZM(),Ee((fLn(),Ure),n)}function w0e(n){return sA(),Ee(($Nn(),lce),n)}function g0e(n){return AT(),Ee((eNn(),ace),n)}function p0e(n){return XT(),Ee((tNn(),dce),n)}function m0e(n){return rA(),Ee((iNn(),wce),n)}function v0e(n){return _T(),Ee((rNn(),mce),n)}function k0e(n){return GM(),Ee((aLn(),Rce),n)}function y0e(n){return X4(),Ee((YDn(),_Zn),n)}function j0e(n){return Vn(),Ee(($$n(),xZn),n)}function E0e(n){return nT(),Ee((cNn(),Kce),n)}function C0e(n){return N$(),Ee((dLn(),_ce),n)}function M0e(n){return N5(),Ee((l$n(),qce),n)}function T0e(n){return nC(),Ee((PDn(),Gce),n)}function A0e(n){return Nk(),Ee((dNn(),Uce),n)}function S0e(n){return eC(),Ee((IDn(),Xce),n)}function P0e(n){return tk(),Ee((bLn(),Vce),n)}function I0e(n){return Wk(),Ee((a$n(),Wce),n)}function O0e(n){return u6(),Ee((ODn(),lue),n)}function D0e(n){return Ck(),Ee((wLn(),aue),n)}function L0e(n){return pf(),Ee((b$n(),mue),n)}function N0e(n){return l1(),Ee((Dxn(),kue),n)}function $0e(n){return Rh(),Ee((x$n(),yue),n)}function x0e(n){return wd(),Ee((F$n(),Aue),n)}function F0e(n){return ci(),Ee((d$n(),zue),n)}function B0e(n){return $f(),Ee((bNn(),Xue),n)}function R0e(n){return El(),Ee((BNn(),Vue),n)}function K0e(n){return pA(),Ee((B$n(),Wue),n)}function _0e(n){return jl(),Ee((aNn(),Que),n)}function H0e(n){return To(),Ee((RNn(),Zue),n)}function q0e(n){return lw(),Ee((Vxn(),noe),n)}function U0e(n){return Bg(),Ee((w$n(),eoe),n)}function G0e(n){return Oi(),Ee((R$n(),toe),n)}function z0e(n){return zu(),Ee((K$n(),ioe),n)}function X0e(n){return en(),Ee((g$n(),roe),n)}function V0e(n){return go(),Ee((KNn(),foe),n)}function W0e(n){return io(),Ee((Xxn(),hoe),n)}function J0e(n){return Gp(),Ee((wNn(),loe),n)}function Q0e(n,e){return Jn(n),n+(Jn(e),e)}function Y0e(n){return RL(),Ee((gLn(),aoe),n)}function Z0e(n){return qT(),Ee((_Nn(),doe),n)}function nbe(n){return LT(),Ee((HNn(),goe),n)}function v4(){v4=F,nln=(en(),Wn),II=Zn}function RL(){RL=F,mdn=new XSn,vdn=new DPn}function ebe(n){return!n.e&&(n.e=new Z),n.e}function KL(n,e){this.c=n,this.a=e,this.b=e-n}function mSn(n,e,t){this.a=n,this.b=e,this.c=t}function _L(n,e,t){this.a=n,this.b=e,this.c=t}function xV(n,e,t){this.a=n,this.b=e,this.c=t}function FV(n,e,t){this.a=n,this.b=e,this.c=t}function vSn(n,e,t){this.a=n,this.b=e,this.c=t}function kSn(n,e,t){this.a=n,this.b=e,this.c=t}function Xl(n,e,t){this.e=n,this.a=e,this.c=t}function ySn(n,e,t){Ko(),eJ.call(this,n,e,t)}function HL(n,e,t){Ko(),BW.call(this,n,e,t)}function BV(n,e,t){Ko(),BW.call(this,n,e,t)}function RV(n,e,t){Ko(),BW.call(this,n,e,t)}function jSn(n,e,t){Ko(),HL.call(this,n,e,t)}function KV(n,e,t){Ko(),HL.call(this,n,e,t)}function ESn(n,e,t){Ko(),KV.call(this,n,e,t)}function CSn(n,e,t){Ko(),BV.call(this,n,e,t)}function MSn(n,e,t){Ko(),RV.call(this,n,e,t)}function qL(n){iM.call(this,n.d,n.c,n.a,n.b)}function _V(n){iM.call(this,n.d,n.c,n.a,n.b)}function HV(n){this.d=n,r9n(this),this.b=nwe(n.d)}function tbe(n){return Em(),Ee((Lxn(),Poe),n)}function N7(n,e){return Se(n),Se(e),new LEn(n,e)}function Cp(n,e){return Se(n),Se(e),new BSn(n,e)}function ibe(n,e){return Se(n),Se(e),new RSn(n,e)}function rbe(n,e){return Se(n),Se(e),new HEn(n,e)}function UL(n){return oe(n.b!=0),Xo(n,n.a.a)}function cbe(n){return oe(n.b!=0),Xo(n,n.c.b)}function ube(n){return!n.c&&(n.c=new V3),n.c}function k4(n){var e;return e=new Z,b$(e,n),e}function obe(n){var e;return e=new ni,b$(e,n),e}function TSn(n){var e;return e=new UG,A$(e,n),e}function $7(n){var e;return e=new Ct,A$(e,n),e}function u(n,e){return N6(n==null||Tx(n,e)),n}function sbe(n,e,t){MPn.call(this,e,t),this.a=n}function ASn(n,e){this.c=n,this.b=e,this.a=!1}function SSn(){this.a=";,;",this.b="",this.c=""}function PSn(n,e,t){this.b=n,KMn.call(this,e,t)}function qV(n,e,t){this.c=n,uC.call(this,e,t)}function UV(n,e,t){a4.call(this,n,e),this.b=t}function GV(n,e,t){xnn(t,0,n,e,t.length,!1)}function Lh(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function zV(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function fbe(n,e){e&&(n.b=e,n.a=(X1(e),e.a))}function x7(n,e){if(!n)throw M(new Gn(e))}function Mp(n,e){if(!n)throw M(new Or(e))}function XV(n,e){if(!n)throw M(new Fjn(e))}function hbe(n,e){return YE(),jc(n.d.p,e.d.p)}function lbe(n,e){return kl(),bt(n.e.b,e.e.b)}function abe(n,e){return kl(),bt(n.e.a,e.e.a)}function dbe(n,e){return jc(USn(n.d),USn(e.d))}function VC(n,e){return e&&mM(n,e.d)?e:null}function bbe(n,e){return e==(en(),Wn)?n.c:n.d}function VV(n){return Y1(dwe(Vr(n)?ds(n):n))}function wbe(n){return new V(n.c+n.b,n.d+n.a)}function ISn(n){return n!=null&&!lx(n,O9,D9)}function gbe(n,e){return(sBn(n)<<4|sBn(e))&ui}function OSn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function WV(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function JV(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function pbe(n,e){var t;return t=n.c,SQ(n,e),t}function QV(n,e){return e<0?n.g=-1:n.g=e,n}function WC(n,e){return Mme(n),n.a*=e,n.b*=e,n}function DSn(n,e,t){T$n.call(this,e,t),this.d=n}function F7(n,e,t){gX.call(this,n,e),this.c=t}function JC(n,e,t){gX.call(this,n,e),this.c=t}function YV(n){IV(),CE.call(this),this.ci(n)}function LSn(){N4(),Bwe.call(this,(R1(),Ps))}function NSn(n){return nt(),new Nh(0,n)}function $Sn(){$Sn=F,TU=(Dn(),new nD(IK))}function QC(){QC=F,new fZ((bD(),HK),(dD(),_K))}function xSn(){xSn=F,wun=K(Gi,J,17,256,0,1)}function FSn(){this.b=$(R(rn((Us(),y_))))}function GL(n){this.b=n,this.a=Ja(this.b.a).Od()}function BSn(n,e){this.b=n,this.a=e,GO.call(this)}function RSn(n,e){this.a=n,this.b=e,GO.call(this)}function KSn(n,e,t){this.a=n,pg.call(this,e,t)}function _Sn(n,e,t){this.a=n,pg.call(this,e,t)}function y4(n,e,t){var i;i=new qb(t),bf(n,e,i)}function ZV(n,e,t){var i;return i=n[e],n[e]=t,i}function YC(n){var e;return e=n.slice(),o$(e,n)}function ZC(n){var e;return e=n.n,n.a.b+e.d+e.a}function HSn(n){var e;return e=n.n,n.e.b+e.d+e.a}function nW(n){var e;return e=n.n,n.e.a+e.b+e.c}function eW(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function Fe(n,e){return xt(n,e,n.c.b,n.c),!0}function mbe(n){return n.a?n.a:vN(n)}function vbe(n){return Lp(),Kh(n)==At(ra(n))}function kbe(n){return Lp(),ra(n)==At(Kh(n))}function l0(n,e){return S5(n,new a4(e.a,e.b))}function ybe(n,e){return kM(),Nx(n,e),new hIn(n,e)}function jbe(n,e){return n.c=e)throw M(new QG)}function _b(n,e){return Dk(n,(Jn(e),new l9n(e)))}function Ap(n,e){return Dk(n,(Jn(e),new a9n(e)))}function APn(n,e,t){return VLe(n,u(e,12),u(t,12))}function SPn(n){return Ou(),u(n,12).g.c.length!=0}function PPn(n){return Ou(),u(n,12).e.c.length!=0}function uwe(n,e){return Hp(),bt(e.a.o.a,n.a.o.a)}function owe(n,e){e.Bb&kc&&!n.a.o&&(n.a.o=e)}function swe(n,e){e.Ug("General 'Rotator",1),jDe(n)}function fwe(n,e,t){e.qf(t,$(R(ee(n.b,t)))*n.a)}function IPn(n,e,t){return Vg(),V4(n,e)&&V4(n,t)}function B6(n){return zu(),!n.Hc(Fl)&&!n.Hc(Ia)}function hwe(n){return n.e?HJ(n.e):null}function R6(n){return Vr(n)?""+n:$qn(n)}function kW(n){var e;for(e=n;e.f;)e=e.f;return e}function lwe(n,e,t){return $t(e,0,uW(e[0],t[0])),e}function Vl(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function q(n,e,t,i){ti.call(this,n,e,t),this.b=i}function Ci(n,e,t,i,r){c$.call(this,n,e,t,i,r,-1)}function K6(n,e,t,i,r){rk.call(this,n,e,t,i,r,-1)}function dM(n,e,t,i){F7.call(this,n,e,t),this.b=i}function OPn(n){SMn.call(this,n,!1),this.a=!1}function DPn(){oMn.call(this,"LOOKAHEAD_LAYOUT",1)}function LPn(n){this.b=n,kp.call(this,n),BTn(this)}function NPn(n){this.b=n,M7.call(this,n),RTn(this)}function Hb(n,e,t){this.a=n,jp.call(this,e,t,5,6)}function yW(n,e,t,i){this.b=n,ti.call(this,e,t,i)}function $Pn(n,e){this.b=n,_8n.call(this,n.b),this.a=e}function xPn(n){this.a=vRn(n.a),this.b=new _u(n.b)}function jW(n,e){g0(),Hhe.call(this,n,FT(new Ku(e)))}function bM(n,e){return nt(),new FW(n,e,0)}function rN(n,e){return nt(),new FW(6,n,e)}function _i(n,e){for(Jn(e);n.Ob();)e.Cd(n.Pb())}function Zc(n,e){return Ai(e)?AN(n,e):!!wr(n.f,e)}function cN(n,e){return e.Vh()?ea(n.b,u(e,54)):e}function awe(n,e){return An(n.substr(0,e.length),e)}function $h(n){return new ie(new qX(n.a.length,n.a))}function wM(n){return new V(n.c+n.b/2,n.d+n.a/2)}function dwe(n){return Yc(~n.l&ro,~n.m&ro,~n.h&Il)}function uN(n){return typeof n===my||typeof n===eB}function Hu(n){n.f=new tTn(n),n.i=new iTn(n),++n.g}function FPn(n){if(!n)throw M(new nc);return n.d}function Sp(n){var e;return e=f5(n),oe(e!=null),e}function bwe(n){var e;return e=I5e(n),oe(e!=null),e}function E4(n,e){var t;return t=n.a.gc(),FJ(e,t),t-e}function fi(n,e){var t;return t=n.a.zc(e,n),t==null}function R7(n,e){return n.a.zc(e,(_n(),ga))==null}function EW(n){return new Tn(null,vwe(n,n.length))}function CW(n,e,t){return cGn(n,u(e,42),u(t,176))}function Pp(n,e,t){return _s(n.a,e),ZV(n.b,e.g,t)}function wwe(n,e,t){j4(t,n.a.c.length),Go(n.a,t,e)}function B(n,e,t,i){$Fn(e,t,n.length),gwe(n,e,t,i)}function gwe(n,e,t,i){var r;for(r=e;r0?y.Math.log(n/e):-100}function RPn(n,e){return Ec(n,e)<0?-1:Ec(n,e)>0?1:0}function K7(n,e){ITn(n,D(e,160)?e:u(e,2036).Rl())}function SW(n,e){if(n==null)throw M(new fp(e))}function vwe(n,e){return yme(e,n.length),new zSn(n,e)}function PW(n,e){return e?Bi(n,e):!1}function kwe(){return BE(),A(T(uQn,1),G,549,0,[GK])}function H6(n){return n.e==0?n:new Ya(-n.e,n.d,n.a)}function ywe(n,e){return bt(n.c.c+n.c.b,e.c.c+e.c.b)}function _7(n,e){xt(n.d,e,n.b.b,n.b),++n.a,n.c=null}function KPn(n,e){return n.c?KPn(n.c,e):nn(n.b,e),n}function jwe(n,e,t){var i;return i=Jb(n,e),qN(n,e,t),i}function _Pn(n,e,t){var i;for(i=0;i=n.g}function $t(n,e,t){return dae(t==null||sPe(n,t)),n[e]=t}function NW(n,e){return zn(e,n.length+1),n.substr(e)}function gN(n,e){for(Jn(e);n.c=n?new Oz:Gme(n-1)}function Hi(n){return!n.a&&n.c?n.c.b:n.a}function RW(n){return D(n,616)?n:new uOn(n)}function X1(n){n.c?X1(n.c):(ta(n),n.d=!0)}function G6(n){n.c?n.c.$e():(n.d=!0,fTe(n))}function oIn(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function sIn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function _we(n,e){var t;t=n.Ih(e),t>=0?n.ki(t):Ann(n,e)}function fIn(n,e){n.c<0||n.b.b0;)n=n<<1|(n<0?1:0);return n}function pIn(n,e){var t;return t=new Lc(n),Rn(e.c,t),t}function mIn(n,e){n.u.Hc((zu(),Fl))&&zEe(n,e),h4e(n,e)}function mc(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function Cr(n,e){return JL(n.a,e)?n.b[u(e,22).g]:null}function nge(){return QE(),A(T(con,1),G,488,0,[b_])}function ege(){return nC(),A(T(N1n,1),G,489,0,[Fq])}function tge(){return eC(),A(T(zce,1),G,558,0,[Bq])}function ige(){return u6(),A(T(ean,1),G,539,0,[_j])}function yM(n){return!n.n&&(n.n=new q(Ar,n,1,7)),n.n}function mN(n){return!n.c&&(n.c=new q(Qu,n,9,9)),n.c}function qW(n){return!n.c&&(n.c=new Nn(he,n,5,8)),n.c}function rge(n){return!n.b&&(n.b=new Nn(he,n,4,7)),n.b}function H7(n){return n.j.c.length=0,GW(n.c),xae(n.a),n}function S4(n){return n.e==iv&&jfe(n,Y8e(n.g,n.b)),n.e}function q7(n){return n.f==iv&&Cfe(n,q7e(n.g,n.b)),n.f}function We(n,e,t,i){return _xn(n,e,t,!1),BT(n,i),n}function vIn(n,e){this.b=n,oN.call(this,n,e),BTn(this)}function kIn(n,e){this.b=n,AV.call(this,n,e),RTn(this)}function z6(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function UW(n,e){this.b=n,this.c=e,this.a=new dp(this.b)}function Xi(n,e){return zn(e,n.length),n.charCodeAt(e)}function cge(n,e){OY(n,$(yl(e,"x")),$(yl(e,"y")))}function uge(n,e){OY(n,$(yl(e,"x")),$(yl(e,"y")))}function ut(n,e){return ta(n),new Tn(n,new eQ(e,n.a))}function _r(n,e){return ta(n),new Tn(n,new KJ(e,n.a))}function Ub(n,e){return ta(n),new cV(n,new PLn(e,n.a))}function jM(n,e){return ta(n),new uV(n,new ILn(e,n.a))}function oge(n,e){return new UIn(u(Se(n),50),u(Se(e),50))}function sge(n,e){return bt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function yIn(n,e,t){t.a?tu(n,e.b-n.f/2):eu(n,e.a-n.g/2)}function fge(n,e){return bt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function hge(n,e){return Nz(),bt((Jn(n),n),(Jn(e),e))}function lge(n){return n!=null&&t7(jO,n.toLowerCase())}function GW(n){var e;for(e=n.Kc();e.Ob();)e.Pb(),e.Qb()}function Ag(n){var e;return e=n.b,!e&&(n.b=e=new L8n(n)),e}function vN(n){var e;return e=Wme(n),e||null}function jIn(n,e){var t,i;return t=n/e,i=wi(t),t>i&&++i,i}function age(n,e,t){var i;i=u(n.d.Kb(t),159),i&&i.Nb(e)}function dge(n,e,t){wIe(n.a,t),zve(t),xCe(n.b,t),xIe(e,t)}function EM(n,e,t,i){this.a=n,this.c=e,this.b=t,this.d=i}function zW(n,e,t,i){this.c=n,this.b=e,this.a=t,this.d=i}function EIn(n,e,t,i){this.c=n,this.b=e,this.d=t,this.a=i}function Ho(n,e,t,i){this.c=n,this.d=e,this.b=t,this.a=i}function CIn(n,e,t,i){this.a=n,this.d=e,this.c=t,this.b=i}function kN(n,e,t,i){this.a=n,this.e=e,this.d=t,this.c=i}function MIn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function yN(n,e,t){this.a=mtn,this.d=n,this.b=e,this.c=t}function Op(n,e,t,i){je.call(this,n,e),this.a=t,this.b=i}function TIn(n,e){this.d=(Jn(n),n),this.a=16449,this.c=e}function AIn(n){this.a=new Z,this.e=K(ye,J,53,n,0,2)}function bge(n){n.Ug("No crossing minimization",1),n.Vg()}function SIn(){ec.call(this,"There is no more element.")}function PIn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function IIn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function Za(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function OIn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function DIn(n,e,t,i){Ko(),OLn.call(this,e,t,i),this.a=n}function LIn(n,e,t,i){Ko(),OLn.call(this,e,t,i),this.a=n}function jN(n,e,t){var i,r;return i=rtn(n),r=e.ti(t,i),r}function al(n){var e,t;return t=(e=new Jd,e),R4(t,n),t}function EN(n){var e,t;return t=(e=new Jd,e),snn(t,n),t}function wge(n,e){var t;return t=ee(n.f,e),_Q(e,t),null}function NIn(n){return!n.b&&(n.b=new q(Vt,n,12,3)),n.b}function $In(n){return N6(n==null||uN(n)&&n.Tm!==Q2),n}function CM(n){return n.n&&(n.e!==Fzn&&n.je(),n.j=null),n}function P4(n){if(eo(n.d),n.d.d!=n.c)throw M(new Bo)}function XW(n){return oe(n.b0&&dKn(this)}function xIn(n,e){this.a=n,bae.call(this,n,u(n.d,15).fd(e))}function gge(n,e){return bt(Su(n)*ao(n),Su(e)*ao(e))}function pge(n,e){return bt(Su(n)*ao(n),Su(e)*ao(e))}function mge(n){return R0(n)&&on(un(z(n,(cn(),Nd))))}function vge(n,e){return Pn(n,u(v(e,(cn(),Ev)),17),e)}function kge(n,e){return u(v(n,(W(),T3)),15).Fc(e),e}function VW(n,e){return n.b=e.b,n.c=e.c,n.d=e.d,n.a=e.a,n}function FIn(n,e,t,i){this.b=n,this.c=i,PC.call(this,e,t)}function yge(n,e,t){n.i=0,n.e=0,e!=t&&kFn(n,e,t)}function jge(n,e,t){n.i=0,n.e=0,e!=t&&yFn(n,e,t)}function Ege(n,e,t){return c6(),J5e(u(ee(n.e,e),529),t)}function Dp(n){var e;return e=n.f,e||(n.f=new f4(n,n.c))}function BIn(n,e){return Fg(n.j,e.s,e.c)+Fg(e.e,n.s,n.c)}function RIn(n,e){n.e&&!n.e.a&&(Tyn(n.e,e),RIn(n.e,e))}function KIn(n,e){n.d&&!n.d.a&&(Tyn(n.d,e),KIn(n.d,e))}function Cge(n,e){return-bt(Su(n)*ao(n),Su(e)*ao(e))}function Mge(n){return u(n.ld(),149).Pg()+":"+Jr(n.md())}function _In(){tF(this,new uG),this.wb=(G1(),Hn),u4()}function HIn(n){this.b=new Z,hi(this.b,this.b),this.a=n}function WW(n,e){new Ct,this.a=new Mu,this.b=n,this.c=e}function k0(){k0=F,Aun=new xU,ZK=new xU,Sun=new O0n}function Dn(){Dn=F,sr=new T0n,Wh=new S0n,hP=new P0n}function JW(){JW=F,RQn=new Z0n,_Qn=new lW,KQn=new nbn}function Lp(){Lp=F,mP=new Z,m_=new de,p_=new Z}function MM(n,e){if(n==null)throw M(new fp(e));return n}function TM(n){return!n.a&&(n.a=new q(Ye,n,10,11)),n.a}function ft(n){return!n.q&&(n.q=new q(Ss,n,11,10)),n.q}function H(n){return!n.s&&(n.s=new q(ku,n,21,17)),n.s}function Tge(n){return Se(n),PRn(new ie(ce(n.a.Kc(),new En)))}function Age(n,e){return wo(n),wo(e),xjn(u(n,22),u(e,22))}function nd(n,e,t){var i,r;i=PV(t),r=new TE(i),bf(n,e,r)}function MN(n,e,t,i,r,c){rk.call(this,n,e,t,i,r,c?-2:-1)}function qIn(n,e,t,i){gX.call(this,e,t),this.b=n,this.a=i}function UIn(n,e){Vfe.call(this,new iN(n)),this.a=n,this.b=e}function QW(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function Sge(n){Fs();var e;e=u(n.g,10),e.n.a=n.d.c+e.d.b}function I4(){I4=F;var n,e;e=!$8e(),n=new X3,VK=e?new og:n}function TN(n){return Dn(),D(n,59)?new jD(n):new FC(n)}function AM(n){return D(n,16)?new $6(u(n,16)):obe(n.Kc())}function Pge(n){return new _Tn(n,n.e.Rd().gc()*n.c.Rd().gc())}function Ige(n){return new HTn(n,n.e.Rd().gc()*n.c.Rd().gc())}function YW(n){return n&&n.hashCode?n.hashCode():f0(n)}function AN(n,e){return e==null?!!wr(n.f,null):zbe(n.i,e)}function Oge(n,e){var t;return t=NX(n.a,e),t&&(e.d=null),t}function GIn(n,e,t){return n.f?n.f.ef(e,t):!1}function U7(n,e,t,i){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i)}function SN(n,e,t,i){$t(n.c[e.g],e.g,t),$t(n.b[e.g],e.g,i)}function Dge(n,e,t){return $(R(t.a))<=n&&$(R(t.b))>=e}function zIn(n,e){this.g=n,this.d=A(T(Qh,1),b1,10,0,[e])}function XIn(n){this.c=n,this.b=new Ul(u(Se(new ebn),50))}function VIn(n){this.c=n,this.b=new Ul(u(Se(new nwn),50))}function WIn(n){this.b=n,this.a=new Ul(u(Se(new Lbn),50))}function JIn(){this.b=new ni,this.d=new Ct,this.e=new YG}function ZW(){this.c=new Li,this.d=new Li,this.e=new Li}function y0(){this.a=new Mu,this.b=(Co(3,mw),new Gc(3))}function Wl(n,e){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e}function SM(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function QIn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function YIn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function V1(n,e,t,i,r,c,s){return new GN(n.e,e,t,i,r,c,s)}function Lge(n,e,t){return t>=0&&An(n.substr(t,e.length),e)}function ZIn(n,e){return D(e,149)&&An(n.b,u(e,149).Pg())}function Nge(n,e){return n.a?e.Gh().Kc():u(e.Gh(),71).Ii()}function nOn(n,e){var t;return t=n.b.Qc(e),VDn(t,n.b.gc()),t}function G7(n,e){if(n==null)throw M(new fp(e));return n}function Hr(n){return n.u||(Zu(n),n.u=new LAn(n,n)),n.u}function PN(n){this.a=(Dn(),D(n,59)?new jD(n):new FC(n))}function au(n){var e;return e=u(Un(n,16),29),e||n.ii()}function PM(n,e){var t;return t=Xa(n.Rm),e==null?t:t+": "+e}function qo(n,e,t){return Fi(e,t,n.length),n.substr(e,t-e)}function eOn(n,e){HC.call(this),hQ(this),this.a=n,this.c=e}function $ge(n){n&&PM(n,n.ie())}function xge(n){_E(),y.setTimeout(function(){throw n},0)}function Fge(){return YT(),A(T(xun,1),G,436,0,[o_,$un])}function Bge(){return cT(),A(T(Bun,1),G,435,0,[Fun,s_])}function Rge(){return uT(),A(T(aon,1),G,432,0,[v_,vP])}function Kge(){return X4(),A(T(KZn,1),G,517,0,[aj,L_])}function _ge(){return ok(),A(T(xsn,1),G,487,0,[$sn,QP])}function Hge(){return bk(),A(T(Lsn,1),G,428,0,[WP,Dsn])}function qge(){return QM(),A(T(Msn,1),G,431,0,[Csn,V_])}function Uge(){return ak(),A(T(_hn,1),G,430,0,[UH,GH])}function Gge(){return Q6(),A(T(Oie,1),G,531,0,[Z8,Y8])}function zge(){return fh(),A(T(Bie,1),G,523,0,[gb,y1])}function Xge(){return Pf(),A(T(Kie,1),G,522,0,[Rd,Xf])}function Vge(){return af(),A(T(ere,1),G,528,0,[zw,Ea])}function Wge(){return KM(),A(T(Wsn,1),G,429,0,[fH,Vsn])}function Jge(){return GM(),A(T(A1n,1),G,490,0,[Nq,T1n])}function Qge(){return N$(),A(T(L1n,1),G,491,0,[O1n,D1n])}function Yge(){return FM(),A(T(xln,1),G,433,0,[dq,$ln])}function Zge(){return ZM(),A(T(Rln,1),G,434,0,[Bln,vq])}function n2e(){return E0(),A(T(sre,1),G,464,0,[Ca,I2])}function e2e(){return yT(),A(T(Fln,1),G,500,0,[RI,L2])}function t2e(){return tk(),A(T($1n,1),G,438,0,[Rq,JI])}function i2e(){return Ck(),A(T(ian,1),G,437,0,[YI,tan])}function r2e(){return RL(),A(T(dO,1),G,347,0,[mdn,vdn])}function IM(n,e,t,i){return t>=0?n.Uh(e,t,i):n.Ch(null,t,i)}function z7(n){return n.b.b==0?n.a.sf():UL(n.b)}function c2e(n){if(n.p!=5)throw M(new Cu);return Ae(n.f)}function u2e(n){if(n.p!=5)throw M(new Cu);return Ae(n.k)}function nJ(n){return x(n.a)===x((D$(),EU))&&rOe(n),n.a}function o2e(n,e){n.b=e,n.c>0&&n.b>0&&(n.g=rM(n.c,n.b,n.a))}function s2e(n,e){n.c=e,n.c>0&&n.b>0&&(n.g=rM(n.c,n.b,n.a))}function tOn(n,e){ufe(this,new V(n.a,n.b)),ofe(this,$7(e))}function j0(){Wfe.call(this,new ap(Qb(12))),RX(!0),this.a=2}function IN(n,e,t){nt(),Wd.call(this,n),this.b=e,this.a=t}function eJ(n,e,t){Ko(),DE.call(this,e),this.a=n,this.b=t}function iOn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function f2e(n){return n.b==0?null:(oe(n.b!=0),Xo(n,n.a.a))}function Nc(n,e){return e==null?Kr(wr(n.f,null)):h6(n.i,e)}function rOn(n,e,t,i,r){return new rF(n,(F4(),i_),e,t,i,r)}function OM(n,e){return GDn(e),Lme(n,K(ye,_e,28,e,15,1),e)}function DM(n,e){return MM(n,"set1"),MM(e,"set2"),new XEn(n,e)}function h2e(n,e){var t=XK[n.charCodeAt(0)];return t??n}function cOn(n,e){var t,i;return t=e,i=new DO,LGn(n,t,i),i.d}function ON(n,e,t,i){var r;r=new xAn,e.a[t.g]=r,Pp(n.b,i,r)}function l2e(n,e){var t;return t=Ime(n.f,e),tt(_C(t),n.f.d)}function LM(n){var e;_me(n.a),aTn(n.a),e=new PE(n.a),_Y(e)}function a2e(n,e){_qn(n,!0),nu(n.e.Rf(),new LV(n,!0,e))}function d2e(n,e){return Lp(),n==At(Kh(e))||n==At(ra(e))}function b2e(n,e){return kl(),u(v(e,(lc(),Sh)),17).a==n}function wi(n){return Math.max(Math.min(n,et),-2147483648)|0}function uOn(n){this.a=u(Se(n),277),this.b=(Dn(),new zX(n))}function oOn(n,e,t){this.i=new Z,this.b=n,this.g=e,this.a=t}function tJ(n,e,t){this.a=new Z,this.e=n,this.f=e,this.c=t}function NM(n,e,t){this.c=new Z,this.e=n,this.f=e,this.b=t}function sOn(n){HC.call(this),hQ(this),this.a=n,this.c=!0}function w2e(n){function e(){}return e.prototype=n||{},new e}function g2e(n){if(n.Ae())return null;var e=n.n;return rP[e]}function X7(n){return n.Db>>16!=3?null:u(n.Cb,27)}function Sf(n){return n.Db>>16!=9?null:u(n.Cb,27)}function fOn(n){return n.Db>>16!=6?null:u(n.Cb,74)}function E0(){E0=F,Ca=new rX(s3,0),I2=new rX(f3,1)}function fh(){fh=F,gb=new eX(f3,0),y1=new eX(s3,1)}function Pf(){Pf=F,Rd=new tX(_B,0),Xf=new tX("UP",1)}function hOn(){hOn=F,oQn=Ce((BE(),A(T(uQn,1),G,549,0,[GK])))}function lOn(n){var e;return e=new GE(Qb(n.length)),nY(e,n),e}function aOn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function p2e(n,e){return Yxn(n,e)?(V$n(n),!0):!1}function dl(n,e){if(e==null)throw M(new rp);return F8e(n,e)}function V7(n,e){var t;t=n.q.getHours(),n.q.setDate(e),K5(n,t)}function iJ(n,e,t){var i;i=n.Ih(e),i>=0?n.bi(i,t):nen(n,e,t)}function dOn(n,e){var t;return t=n.Ih(e),t>=0?n.Wh(t):hF(n,e)}function bOn(n,e){var t;for(Se(e),t=n.a;t;t=t.c)e.Yd(t.g,t.i)}function DN(n,e,t){var i;i=mFn(n,e,t),n.b=new ET(i.c.length)}function Sg(n,e,t){$M(),n&&Ve(kU,n,e),n&&Ve(fE,n,t)}function m2e(n,e){return XC(),_n(),u(e.a,17).a0}function rJ(n){var e;return e=n.d,e=n.bj(n.f),ve(n,e),e.Ob()}function wOn(n,e){var t;return t=new sW(e),KKn(t,n),new _u(t)}function y2e(n){if(n.p!=0)throw M(new Cu);return j6(n.f,0)}function j2e(n){if(n.p!=0)throw M(new Cu);return j6(n.k,0)}function gOn(n){return n.Db>>16!=7?null:u(n.Cb,241)}function O4(n){return n.Db>>16!=6?null:u(n.Cb,241)}function pOn(n){return n.Db>>16!=7?null:u(n.Cb,167)}function At(n){return n.Db>>16!=11?null:u(n.Cb,27)}function Gb(n){return n.Db>>16!=17?null:u(n.Cb,29)}function mOn(n){return n.Db>>16!=3?null:u(n.Cb,155)}function cJ(n){var e;return ta(n),e=new ni,ut(n,new C9n(e))}function vOn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function E2e(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),K5(n,t)}function kOn(n,e){$C(this),this.f=e,this.g=n,CM(this),this.je()}function yOn(n,e){this.a=n,this.c=Ki(this.a),this.b=new SM(e)}function jOn(n,e,t){this.a=e,this.c=n,this.b=(Se(t),new _u(t))}function EOn(n,e,t){this.a=e,this.c=n,this.b=(Se(t),new _u(t))}function COn(n){this.a=n,this.b=K(Sie,J,2043,n.e.length,0,2)}function MOn(){this.a=new rh,this.e=new ni,this.g=0,this.i=0}function $M(){$M=F,kU=new de,fE=new de,ple(MQn,new bvn)}function TOn(){TOn=F,aie=Pu(new ii,(Vi(),zr),(tr(),dj))}function uJ(){uJ=F,die=Pu(new ii,(Vi(),zr),(tr(),dj))}function AOn(){AOn=F,wie=Pu(new ii,(Vi(),zr),(tr(),dj))}function SOn(){SOn=F,Lie=Ke(new ii,(Vi(),zr),(tr(),O8))}function ko(){ko=F,xie=Ke(new ii,(Vi(),zr),(tr(),O8))}function POn(){POn=F,Fie=Ke(new ii,(Vi(),zr),(tr(),O8))}function NN(){NN=F,Hie=Ke(new ii,(Vi(),zr),(tr(),O8))}function X6(n,e,t,i,r,c){return new ml(n.e,e,n.Lj(),t,i,r,c)}function Dr(n,e,t){return e==null?Vc(n.f,null,t):L0(n.i,e,t)}function Zi(n,e){n.c&&du(n.c.g,n),n.c=e,n.c&&nn(n.c.g,n)}function $i(n,e){n.c&&du(n.c.a,n),n.c=e,n.c&&nn(n.c.a,n)}function ic(n,e){n.i&&du(n.i.j,n),n.i=e,n.i&&nn(n.i.j,n)}function Ii(n,e){n.d&&du(n.d.e,n),n.d=e,n.d&&nn(n.d.e,n)}function $N(n,e){n.a&&du(n.a.k,n),n.a=e,n.a&&nn(n.a.k,n)}function xN(n,e){n.b&&du(n.b.f,n),n.b=e,n.b&&nn(n.b.f,n)}function IOn(n,e){$we(n,n.b,n.c),u(n.b.b,68),e&&u(e.b,68).b}function C2e(n,e){return bt(u(n.c,65).c.e.b,u(e.c,65).c.e.b)}function M2e(n,e){return bt(u(n.c,65).c.e.a,u(e.c,65).c.e.a)}function T2e(n){return Y$(),_n(),u(n.a,86).d.e!=0}function xM(n,e){D(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,e)}function FN(n,e){D(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,e)}function A2e(n,e){DY(n,e),D(n.Cb,90)&&hw(Zu(u(n.Cb,90)),2)}function S2e(n,e){var t,i;t=e.c,i=t!=null,i&&Ip(n,new qb(e.c))}function OOn(n){var e,t;return t=(u4(),e=new Jd,e),R4(t,n),t}function DOn(n){var e,t;return t=(u4(),e=new Jd,e),R4(t,n),t}function LOn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function P2e(n,e,t){return nn(n.a,(kM(),Nx(e,t),new t0(e,t))),n}function $c(n,e){return dr(),a$(e)?new nM(e,n):new k7(e,n)}function W7(n){return dh(),Ec(n,0)>=0?ia(n):H6(ia(n1(n)))}function I2e(n){var e;return e=u(YC(n.b),9),new _o(n.a,e,n.c)}function NOn(n,e){var t;return t=u(tw(Dp(n.a),e),16),t?t.gc():0}function $On(n,e,t){var i;uBn(e,t,n.c.length),i=t-e,Sz(n.c,e,i)}function Jl(n,e,t){uBn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function Np(n){this.c=new Ct,this.b=n.b,this.d=n.c,this.a=n.a}function BN(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function ed(n,e,t,i){this.c=n,this.d=i,$N(this,e),xN(this,t)}function oJ(n,e){Xfe.call(this,new ap(Qb(n))),Co(e,Ozn),this.a=e}function xOn(n,e,t){return new rF(n,(F4(),t_),null,!1,e,t)}function FOn(n,e,t){return new rF(n,(F4(),r_),e,t,null,!1)}function O2e(){return Gu(),A(T(xr,1),G,108,0,[Nun,Yr,Aw])}function D2e(){return bu(),A(T(JQn,1),G,471,0,[kf,ma,Xs])}function L2e(){return Uu(),A(T(VQn,1),G,470,0,[Mh,pa,zs])}function N2e(){return wf(),A(T(Sw,1),G,237,0,[bc,Wc,wc])}function $2e(){return n5(),A(T(Aon,1),G,391,0,[E_,j_,C_])}function x2e(){return I0(),A(T(R_,1),G,372,0,[rb,va,ib])}function F2e(){return i5(),A(T(Asn,1),G,322,0,[L8,gj,Tsn])}function B2e(){return bT(),A(T(Psn,1),G,351,0,[Ssn,VP,W_])}function R2e(){return hd(),A(T(pne,1),G,459,0,[Y_,pv,m2])}function K2e(){return Y4(),A(T(sH,1),G,298,0,[uH,oH,pj])}function _2e(){return vl(),A(T(Mne,1),G,311,0,[mj,k2,E3])}function H2e(){return d5(),A(T(Ohn,1),G,390,0,[FH,Ihn,MI])}function q2e(){return gr(),A(T(cie,1),G,462,0,[W8,Vu,Jc])}function U2e(){return ST(),A(T(Uhn,1),G,387,0,[Hhn,zH,qhn])}function G2e(){return h5(),A(T(Ghn,1),G,349,0,[VH,XH,Pj])}function z2e(){return um(),A(T(Xhn,1),G,350,0,[WH,zhn,J8])}function X2e(){return dT(),A(T(Jhn,1),G,352,0,[Whn,JH,Vhn])}function V2e(){return DT(),A(T(Qhn,1),G,388,0,[QH,Iv,Gw])}function W2e(){return P0(),A(T(Tie,1),G,463,0,[Ij,Q8,PI])}function If(n){return cc(A(T(Ei,1),J,8,0,[n.i.n,n.n,n.a]))}function J2e(){return l5(),A(T(bln,1),G,392,0,[dln,nq,Dj])}function BOn(){BOn=F,Fre=Pu(new ii,(Qp(),e9),(B5(),rln))}function FM(){FM=F,dq=new cX("DFS",0),$ln=new cX("BFS",1)}function ROn(n,e,t){var i;i=new j3n,i.b=e,i.a=t,++e.b,nn(n.d,i)}function Q2e(n,e,t){var i;i=new rr(t.d),tt(i,n),OY(e,i.a,i.b)}function Y2e(n,e){DTn(n,Ae(vi(d0(e,24),YA)),Ae(vi(e,YA)))}function zb(n,e){if(n<0||n>e)throw M(new Ir(Atn+n+Stn+e))}function Ln(n,e){if(n<0||n>=e)throw M(new Ir(Atn+n+Stn+e))}function zn(n,e){if(n<0||n>=e)throw M(new wz(Atn+n+Stn+e))}function In(n,e){this.b=(Jn(n),n),this.a=e&vw?e:e|64|wh}function sJ(n){var e;return ta(n),e=(k0(),k0(),ZK),fT(n,e)}function Z2e(n,e,t){var i;return i=q5(n,e,!1),i.b<=e&&i.a<=t}function npe(){return nT(),A(T(I1n,1),G,439,0,[$q,P1n,S1n])}function epe(){return _T(),A(T(h1n,1),G,394,0,[f1n,Oq,s1n])}function tpe(){return XT(),A(T(o1n,1),G,445,0,[Fj,qI,Mq])}function ipe(){return rA(),A(T(bce,1),G,455,0,[Tq,Sq,Aq])}function rpe(){return Sk(),A(T(Hln,1),G,393,0,[KI,Kln,_ln])}function cpe(){return AT(),A(T(u1n,1),G,299,0,[Cq,c1n,r1n])}function upe(){return $f(),A(T(Yan,1),G,278,0,[xv,Jw,Fv])}function ope(){return Gp(),A(T(pdn,1),G,280,0,[gdn,Yw,aO])}function spe(){return jl(),A(T(hdn,1),G,346,0,[uO,M1,j9])}function fpe(){return Nk(),A(T(xq,1),G,444,0,[XI,VI,WI])}function C0(n){return Se(n),D(n,16)?new _u(u(n,16)):k4(n.Kc())}function fJ(n,e){return n&&n.equals?n.equals(e):x(n)===x(e)}function vi(n,e){return Y1(ewe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function lf(n,e){return Y1(twe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function RN(n,e){return Y1(iwe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hpe(n,e){var t;return t=(Jn(n),n).g,iV(!!t),Jn(e),t(e)}function KOn(n,e){var t,i;return i=E4(n,e),t=n.a.fd(i),new GEn(n,t)}function lpe(n){return n.Db>>16!=6?null:u(dF(n),241)}function ape(n){if(n.p!=2)throw M(new Cu);return Ae(n.f)&ui}function dpe(n){if(n.p!=2)throw M(new Cu);return Ae(n.k)&ui}function E(n){return oe(n.ai?1:0}function UOn(n,e){var t,i;return t=s$(e),i=t,u(ee(n.c,i),17).a}function KN(n,e,t){var i;i=n.d[e.p],n.d[e.p]=n.d[t.p],n.d[t.p]=i}function Cpe(n,e,t){var i;n.n&&e&&t&&(i=new cvn,nn(n.e,i))}function _N(n,e){if(fi(n.a,e),e.d)throw M(new ec(nXn));e.d=n}function aJ(n,e){this.a=new Z,this.d=new Z,this.f=n,this.c=e}function GOn(){this.c=new STn,this.a=new NLn,this.b=new zyn,hCn()}function zOn(){qp(),this.b=new de,this.a=new de,this.c=new Z}function XOn(n,e,t){this.d=n,this.j=e,this.e=t,this.o=-1,this.p=3}function VOn(n,e,t){this.d=n,this.k=e,this.f=t,this.o=-1,this.p=5}function WOn(n,e,t,i,r,c){aQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function JOn(n,e,t,i,r,c){dQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function QOn(n,e,t,i,r,c){IJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function YOn(n,e,t,i,r,c){gQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function ZOn(n,e,t,i,r,c){OJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function nDn(n,e,t,i,r,c){bQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function eDn(n,e,t,i,r,c){wQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function tDn(n,e,t,i,r,c){DJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function iDn(n,e,t,i){DE.call(this,t),this.b=n,this.c=e,this.d=i}function rDn(n,e){this.f=n,this.a=(N4(),MO),this.c=MO,this.b=e}function cDn(n,e){this.g=n,this.d=(N4(),TO),this.a=TO,this.b=e}function dJ(n,e){!n.c&&(n.c=new Rt(n,0)),HA(n.c,(at(),N9),e)}function Mpe(n,e){return oMe(n,e,D(e,102)&&(u(e,19).Bb&hr)!=0)}function Tpe(n,e){return RPn(vc(n.q.getTime()),vc(e.q.getTime()))}function uDn(n){return XL(n.e.Rd().gc()*n.c.Rd().gc(),16,new I8n(n))}function Ape(n){return!!n.u&&Sc(n.u.a).i!=0&&!(n.n&&Ix(n.n))}function Spe(n){return!!n.a&&no(n.a.a).i!=0&&!(n.b&&Ox(n.b))}function bJ(n,e){return e==0?!!n.o&&n.o.f!=0:Cx(n,e)}function Ppe(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Hc(t)}function oDn(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Mc(t)}function sDn(n,e){var t;return t=1-e,n.a[t]=jT(n.a[t],t),jT(n,e)}function fDn(n,e){var t,i;return i=vi(n,mr),t=Bs(e,32),lf(t,i)}function hDn(n,e,t){var i;i=(Se(n),new _u(n)),O7e(new jOn(i,e,t))}function J7(n,e,t){var i;i=(Se(n),new _u(n)),D7e(new EOn(i,e,t))}function fc(n,e,t,i,r,c){return _xn(n,e,t,c),EY(n,i),CY(n,r),n}function lDn(n,e,t,i){return n.a+=""+qo(e==null?gu:Jr(e),t,i),n}function xi(n,e){this.a=n,Gv.call(this,n),zb(e,n.gc()),this.b=e}function aDn(n){this.a=K(ki,Fn,1,JQ(y.Math.max(8,n))<<1,5,1)}function Q7(n){return u(Ff(n,K(Qh,b1,10,n.c.length,0,1)),199)}function hh(n){return u(Ff(n,K(O_,rR,18,n.c.length,0,1)),482)}function dDn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function V6(n){for(;n.d>0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function bDn(n){return oe(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function Ipe(n,e,t){n.a=e,n.c=t,n.b.a.$b(),vo(n.d),Ab(n.e.a.c,0)}function wDn(n,e){var t;n.e=new cz,t=aw(e),Yt(t,n.c),Iqn(n,t,0)}function ri(n,e,t,i){var r;r=new ZU,r.a=e,r.b=t,r.c=i,Fe(n.a,r)}function Q(n,e,t,i){var r;r=new ZU,r.a=e,r.b=t,r.c=i,Fe(n.b,r)}function gDn(n,e,t){if(n<0||et)throw M(new Ir(qje(n,e,t)))}function Y7(n,e){if(n<0||n>=e)throw M(new Ir(kEe(n,e)));return n}function Ope(n){if(!("stack"in n))try{throw n}catch{}return n}function Pg(n){return c6(),D(n.g,10)?u(n.g,10):null}function Dpe(n){return Ag(n).dc()?!1:(e1e(n,new Pr),!0)}function id(n){var e;return Vr(n)?(e=n,e==-0?0:e):X4e(n)}function pDn(n,e){return D(e,44)?xx(n.a,u(e,44)):!1}function mDn(n,e){return D(e,44)?xx(n.a,u(e,44)):!1}function vDn(n,e){return D(e,44)?xx(n.a,u(e,44)):!1}function wJ(n){var e;return X1(n),e=new D0n,lg(n.a,new y9n(e)),e}function gJ(){var n,e,t;return e=(t=(n=new Jd,n),t),nn(Zdn,e),e}function BM(n){var e;return X1(n),e=new L0n,lg(n.a,new j9n(e)),e}function Lpe(n,e){return n.a<=n.b?(e.Dd(n.a++),!0):!1}function kDn(n){P$.call(this,n,(F4(),e_),null,!1,null,!1)}function yDn(){yDn=F,SYn=Ce((QE(),A(T(con,1),G,488,0,[b_])))}function jDn(){jDn=F,Zhn=bIn(Y(1),Y(4)),Yhn=bIn(Y(1),Y(2))}function Npe(n,e){return new _L(e,O6(Ki(e.e),n,n),(_n(),!0))}function RM(n){return new Gc((Co(n,cB),oT(nr(nr(5,n),n/10|0))))}function $pe(n){return XL(n.e.Rd().gc()*n.c.Rd().gc(),273,new P8n(n))}function EDn(n){return u(Ff(n,K(FZn,DXn,12,n.c.length,0,1)),2042)}function xpe(n){return ko(),!fr(n)&&!(!fr(n)&&n.c.i.c==n.d.i.c)}function Fpe(n,e){return _p(),u(v(e,(lc(),O2)),17).a>=n.gc()}function W6(n,e){vLe(e,n),WV(n.d),WV(u(v(n,(cn(),mI)),214))}function HN(n,e){kLe(e,n),JV(n.d),JV(u(v(n,(cn(),mI)),214))}function Bpe(n,e,t){n.d&&du(n.d.e,n),n.d=e,n.d&&a0(n.d.e,t,n)}function Rpe(n,e,t){return t.f.c.length>0?CW(n.a,e,t):CW(n.b,e,t)}function Kpe(n,e,t){var i;i=i9e();try{return Aae(n,e,t)}finally{D3e(i)}}function M0(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.pe()),i}function J6(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.se()),i}function D4(n,e){var t,i;return t=Jb(n,e),i=null,t&&(i=t.se()),i}function bl(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=wnn(t)),i}function _pe(n,e,t){var i;return i=bm(t),FA(n.g,i,e),FA(n.i,e,t),e}function pJ(n,e,t){this.d=new N7n(this),this.e=n,this.i=e,this.f=t}function CDn(n,e,t,i){this.e=null,this.c=n,this.d=e,this.a=t,this.b=i}function MDn(n,e,t,i){jTn(this),this.c=n,this.e=e,this.f=t,this.b=i}function mJ(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function TDn(n,e,t,i){return D(t,59)?new tAn(n,e,t,i):new mW(n,e,t,i)}function L4(n){return D(n,16)?u(n,16).dc():!n.Kc().Ob()}function ADn(n){if(n.e.g!=n.b)throw M(new Bo);return!!n.c&&n.d>0}function be(n){return oe(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function vJ(n,e){Jn(e),$t(n.a,n.c,e),n.c=n.c+1&n.a.length-1,WRn(n)}function W1(n,e){Jn(e),n.b=n.b-1&n.a.length-1,$t(n.a,n.b,e),WRn(n)}function SDn(n){var e;e=n.Gh(),this.a=D(e,71)?u(e,71).Ii():e.Kc()}function Hpe(n){return new In(Ame(u(n.a.md(),16).gc(),n.a.ld()),16)}function PDn(){PDn=F,Gce=Ce((nC(),A(T(N1n,1),G,489,0,[Fq])))}function IDn(){IDn=F,Xce=Ce((eC(),A(T(zce,1),G,558,0,[Bq])))}function ODn(){ODn=F,lue=Ce((u6(),A(T(ean,1),G,539,0,[_j])))}function qpe(){return dd(),A(T(Oon,1),G,389,0,[Ow,Ion,P_,I_])}function Upe(){return F4(),A(T(lP,1),G,303,0,[e_,t_,i_,r_])}function Gpe(){return Vp(),A(T(EYn,1),G,332,0,[cj,rj,uj,oj])}function zpe(){return C5(),A(T(TYn,1),G,406,0,[sj,wP,gP,fj])}function Xpe(){return D0(),A(T(yYn,1),G,417,0,[ij,tj,a_,d_])}function Vpe(){return Z4(),A(T(MZn,1),G,416,0,[tb,Iw,Pw,d2])}function Wpe(){return xf(),A(T(ene,1),G,421,0,[j3,hv,lv,B_])}function Jpe(){return OT(),A(T(UZn,1),G,371,0,[F_,HP,qP,bj])}function Qpe(){return cw(),A(T(RH,1),G,203,0,[TI,BH,P2,S2])}function Ype(){return lh(),A(T(Khn,1),G,284,0,[k1,Rhn,HH,qH])}function Zpe(n){var e;return n.j==(en(),ae)&&(e=mHn(n),Au(e,Zn))}function n3e(n,e){var t;t=e.a,Zi(t,e.c.d),Ii(t,e.d.d),nw(t.a,n.n)}function kJ(n,e){var t;return t=u(Nf(n.b,e),67),!t&&(t=new Ct),t}function xp(n){return c6(),D(n.g,154)?u(n.g,154):null}function e3e(n){n.a=null,n.e=null,Ab(n.b.c,0),Ab(n.f.c,0),n.c=null}function KM(){KM=F,fH=new Yz(Hm,0),Vsn=new Yz("TOP_LEFT",1)}function Q6(){Q6=F,Z8=new nX("UPPER",0),Y8=new nX("LOWER",1)}function t3e(n,e){return vp(new V(e.e.a+e.f.a/2,e.e.b+e.f.b/2),n)}function DDn(n,e){return u(ho(_b(u(ot(n.k,e),15).Oc(),w2)),113)}function LDn(n,e){return u(ho(Ap(u(ot(n.k,e),15).Oc(),w2)),113)}function i3e(){return Qp(),A(T(tln,1),G,405,0,[LI,n9,e9,t9])}function r3e(){return a5(),A(T(Nln,1),G,353,0,[aq,BI,lq,hq])}function c3e(){return sA(),A(T(i1n,1),G,354,0,[Eq,e1n,t1n,n1n])}function u3e(){return go(),A(T(A9,1),G,386,0,[iE,Gd,tE,Qw])}function o3e(){return To(),A(T(Yue,1),G,290,0,[Zj,nl,Aa,Yj])}function s3e(){return El(),A(T(lU,1),G,223,0,[hU,Qj,Bv,x3])}function f3e(){return qT(),A(T(Edn,1),G,320,0,[bU,kdn,jdn,ydn])}function h3e(){return LT(),A(T(woe,1),G,415,0,[wU,Mdn,Cdn,Tdn])}function l3e(n){return $M(),Zc(kU,n)?u(ee(kU,n),341).Qg():null}function Uo(n,e,t){return e<0?hF(n,t):u(t,69).wk().Bk(n,n.hi(),e)}function a3e(n,e,t){var i;return i=bm(t),FA(n.j,i,e),Ve(n.k,e,t),e}function d3e(n,e,t){var i;return i=bm(t),FA(n.d,i,e),Ve(n.e,e,t),e}function NDn(n){var e,t;return e=(B1(),t=new HO,t),n&&AA(e,n),e}function yJ(n){var e;return e=n.aj(n.i),n.i>0&&Ic(n.g,0,e,0,n.i),e}function $Dn(n,e){var t;for(t=n.j.c.length;t>24}function w3e(n){if(n.p!=1)throw M(new Cu);return Ae(n.k)<<24>>24}function g3e(n){if(n.p!=7)throw M(new Cu);return Ae(n.k)<<16>>16}function p3e(n){if(n.p!=7)throw M(new Cu);return Ae(n.f)<<16>>16}function Ig(n,e){return e.e==0||n.e==0?T8:(Tm(),vF(n,e))}function BDn(n,e){return x(e)===x(n)?"(this Map)":e==null?gu:Jr(e)}function m3e(n,e,t){return tN(R(Kr(wr(n.f,e))),R(Kr(wr(n.f,t))))}function v3e(n,e,t){var i;i=u(ee(n.g,t),60),nn(n.a.c,new bi(e,i))}function RDn(n,e,t){n.i=0,n.e=0,e!=t&&(yFn(n,e,t),kFn(n,e,t))}function k3e(n,e,t,i,r){var c;c=yMe(r,t,i),nn(e,dEe(r,c)),rje(n,r,e)}function jJ(n,e,t,i,r){this.i=n,this.a=e,this.e=t,this.j=i,this.f=r}function KDn(n,e){ZW.call(this),this.a=n,this.b=e,nn(this.a.b,this)}function _Dn(n){this.b=new de,this.c=new de,this.d=new de,this.a=n}function HDn(n,e){var t;return t=new fg,n.Gd(t),t.a+="..",e.Hd(t),t.a}function qDn(n,e){var t;for(t=e;t;)h0(n,t.i,t.j),t=At(t);return n}function UDn(n,e,t){var i;return i=bm(t),Ve(n.b,i,e),Ve(n.c,e,t),e}function wl(n){var e;for(e=0;n.Ob();)n.Pb(),e=nr(e,1);return oT(e)}function Fh(n,e){dr();var t;return t=u(n,69).vk(),kje(t,e),t.xl(e)}function y3e(n,e,t){if(t){var i=t.oe();n.a[e]=i(t)}else delete n.a[e]}function EJ(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+ha),K5(n,t)}function j3e(n,e){return u(e==null?Kr(wr(n.f,null)):h6(n.i,e),288)}function CJ(n,e){return n==(Vn(),zt)&&e==zt?4:n==zt||e==zt?8:32}function _M(n,e,t){return RA(n,e,t,D(e,102)&&(u(e,19).Bb&hr)!=0)}function E3e(n,e,t){return Im(n,e,t,D(e,102)&&(u(e,19).Bb&hr)!=0)}function C3e(n,e,t){return bMe(n,e,t,D(e,102)&&(u(e,19).Bb&hr)!=0)}function MJ(n){n.b!=n.c&&(n.a=K(ki,Fn,1,8,5,1),n.b=0,n.c=0)}function Y6(n){return oe(n.a=0&&n.a[t]===e[t];t--);return t<0}function HM(n){var e;return n?new sW(n):(e=new rh,A$(e,n),e)}function O3e(n,e){var t,i;i=!1;do t=hFn(n,e),i=i|t;while(t);return i}function D3e(n){n&&rme((lz(),uun)),--cP,n&&uP!=-1&&(Ele(uP),uP=-1)}function qM(n){ZZ(),DTn(this,Ae(vi(d0(n,24),YA)),Ae(vi(n,YA)))}function WDn(){WDn=F,HQn=Ce((YT(),A(T(xun,1),G,436,0,[o_,$un])))}function JDn(){JDn=F,qQn=Ce((cT(),A(T(Bun,1),G,435,0,[Fun,s_])))}function QDn(){QDn=F,GYn=Ce((uT(),A(T(aon,1),G,432,0,[v_,vP])))}function YDn(){YDn=F,_Zn=Ce((X4(),A(T(KZn,1),G,517,0,[aj,L_])))}function ZDn(){ZDn=F,kne=Ce((ok(),A(T(xsn,1),G,487,0,[$sn,QP])))}function nLn(){nLn=F,gne=Ce((bk(),A(T(Lsn,1),G,428,0,[WP,Dsn])))}function eLn(){eLn=F,ane=Ce((QM(),A(T(Msn,1),G,431,0,[Csn,V_])))}function tLn(){tLn=F,rie=Ce((ak(),A(T(_hn,1),G,430,0,[UH,GH])))}function iLn(){iLn=F,Die=Ce((Q6(),A(T(Oie,1),G,531,0,[Z8,Y8])))}function rLn(){rLn=F,Rie=Ce((fh(),A(T(Bie,1),G,523,0,[gb,y1])))}function cLn(){cLn=F,_ie=Ce((Pf(),A(T(Kie,1),G,522,0,[Rd,Xf])))}function uLn(){uLn=F,tre=Ce((af(),A(T(ere,1),G,528,0,[zw,Ea])))}function oLn(){oLn=F,Ane=Ce((KM(),A(T(Wsn,1),G,429,0,[fH,Vsn])))}function sLn(){sLn=F,fre=Ce((E0(),A(T(sre,1),G,464,0,[Ca,I2])))}function fLn(){fLn=F,Ure=Ce((ZM(),A(T(Rln,1),G,434,0,[Bln,vq])))}function hLn(){hLn=F,xre=Ce((FM(),A(T(xln,1),G,433,0,[dq,$ln])))}function lLn(){lLn=F,_re=Ce((yT(),A(T(Fln,1),G,500,0,[RI,L2])))}function aLn(){aLn=F,Rce=Ce((GM(),A(T(A1n,1),G,490,0,[Nq,T1n])))}function dLn(){dLn=F,_ce=Ce((N$(),A(T(L1n,1),G,491,0,[O1n,D1n])))}function bLn(){bLn=F,Vce=Ce((tk(),A(T($1n,1),G,438,0,[Rq,JI])))}function wLn(){wLn=F,aue=Ce((Ck(),A(T(ian,1),G,437,0,[YI,tan])))}function gLn(){gLn=F,aoe=Ce((RL(),A(T(dO,1),G,347,0,[mdn,vdn])))}function L3e(){return ci(),A(T(k9,1),G,88,0,[Jf,Xr,Br,Wf,us])}function N3e(){return en(),A(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn])}function $3e(n,e,t){return u(e==null?Vc(n.f,null,t):L0(n.i,e,t),288)}function x3e(n){return(n.k==(Vn(),zt)||n.k==Zt)&&kt(n,(W(),F8))}function XN(n){return n.c&&n.d?lJ(n.c)+"->"+lJ(n.d):"e_"+f0(n)}function qi(n,e){var t,i;for(Jn(e),i=n.Kc();i.Ob();)t=i.Pb(),e.Cd(t)}function F3e(n,e){var t;t=new sp,nd(t,"x",e.a),nd(t,"y",e.b),Ip(n,t)}function B3e(n,e){var t;t=new sp,nd(t,"x",e.a),nd(t,"y",e.b),Ip(n,t)}function pLn(n,e){var t;for(t=e;t;)h0(n,-t.i,-t.j),t=At(t);return n}function AJ(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function Go(n,e,t){var i;return i=(Ln(e,n.c.length),n.c[e]),n.c[e]=t,i}function SJ(n,e,t){n.a.c.length=0,fOe(n,e,t),n.a.c.length==0||FSe(n,e)}function Z7(n){n.i=0,u7(n.b,null),u7(n.c,null),n.a=null,n.e=null,++n.g}function UM(){UM=F,Uf=!0,DQn=!1,LQn=!1,$Qn=!1,NQn=!1}function VN(n){UM(),!Uf&&(this.c=n,this.e=!0,this.a=new Z)}function mLn(n,e){this.c=0,this.b=e,_Mn.call(this,n,17493),this.a=this.c}function vLn(n){jzn(),Ayn(this),this.a=new Ct,oY(this,n),Fe(this.a,n)}function kLn(){pL(this),this.b=new V(St,St),this.a=new V(li,li)}function GM(){GM=F,Nq=new sX(iin,0),T1n=new sX("TARGET_WIDTH",1)}function Og(n,e){return(ta(n),o4(new Tn(n,new eQ(e,n.a)))).Bd(v3)}function R3e(){return Vi(),A(T(Son,1),G,367,0,[Vs,Jh,Oc,Kc,zr])}function K3e(){return ow(),A(T(ine,1),G,375,0,[wj,zP,XP,GP,UP])}function _3e(){return o1(),A(T(Osn,1),G,348,0,[J_,Isn,Q_,gv,wv])}function H3e(){return E5(),A(T(Lhn,1),G,323,0,[Dhn,KH,_H,X8,V8])}function q3e(){return Yo(),A(T(sfn,1),G,171,0,[jj,R8,ya,K8,xw])}function U3e(){return wA(),A(T(Hre,1),G,368,0,[pq,bq,mq,wq,gq])}function G3e(){return N5(),A(T(Hce,1),G,373,0,[N2,O3,a9,l9,Kj])}function z3e(){return Wk(),A(T(R1n,1),G,324,0,[x1n,Kq,B1n,_q,F1n])}function X3e(){return pf(),A(T(Zh,1),G,170,0,[xn,pi,Ph,Kd,E1])}function V3e(){return Bg(),A(T(C9,1),G,256,0,[Sa,nE,ldn,E9,adn])}function W3e(n){return _E(),function(){return Kpe(n,this,arguments)}}function fr(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function PJ(n,e){return D(e,143)?An(n.c,u(e,143).c):!1}function Zu(n){return n.t||(n.t=new pyn(n),p5(new Ljn(n),0,n.t)),n.t}function yLn(n){this.b=n,ne.call(this,n),this.a=u(Un(this.b.a,4),129)}function jLn(n){this.b=n,yp.call(this,n),this.a=u(Un(this.b.a,4),129)}function Rs(n,e,t,i,r){DLn.call(this,e,i,r),this.c=n,this.b=t}function IJ(n,e,t,i,r){XOn.call(this,e,i,r),this.c=n,this.a=t}function OJ(n,e,t,i,r){VOn.call(this,e,i,r),this.c=n,this.a=t}function DJ(n,e,t,i,r){DLn.call(this,e,i,r),this.c=n,this.a=t}function WN(n,e){var t;return t=u(Nf(n.d,e),23),t||u(Nf(n.e,e),23)}function ELn(n,e){var t,i;return t=e.ld(),i=n.Fe(t),!!i&&mc(i.e,e.md())}function CLn(n,e){var t;return t=e.ld(),new t0(t,n.e.pc(t,u(e.md(),16)))}function J3e(n,e){var t;return t=n.a.get(e),t??K(ki,Fn,1,0,5,1)}function MLn(n){var e;return e=n.length,An(Yn.substr(Yn.length-e,e),n)}function fe(n){if(pe(n))return n.c=n.a,n.a.Pb();throw M(new nc)}function LJ(n,e){return e==0||n.e==0?n:e>0?wqn(n,e):BBn(n,-e)}function Fp(n,e){return e==0||n.e==0?n:e>0?BBn(n,e):wqn(n,-e)}function NJ(n){ole.call(this,n==null?gu:Jr(n),D(n,82)?u(n,82):null)}function TLn(n){var e;return n.c||(e=n.r,D(e,90)&&(n.c=u(e,29))),n.c}function JN(n){var e;return e=new y0,Ur(e,n),U(e,(cn(),Fr),null),e}function ALn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Vn(),Zt)&&t.k==Zt}function QN(n){var e,t,i;return e=n&ro,t=n>>22&ro,i=n<0?Il:0,Yc(e,t,i)}function Q3e(n){var e,t,i,r;for(t=n,i=0,r=t.length;i=0?n.Lh(i,t,!0):K0(n,e,t)}function Z3e(n,e,t){return bt(vp(gm(n),Ki(e.b)),vp(gm(n),Ki(t.b)))}function n4e(n,e,t){return bt(vp(gm(n),Ki(e.e)),vp(gm(n),Ki(t.e)))}function e4e(n,e){return y.Math.min(J1(e.a,n.d.d.c),J1(e.b,n.d.d.c))}function nk(n,e){n._i(n.i+1),S6(n,n.i,n.Zi(n.i,e)),n.Mi(n.i++,e),n.Ni()}function Z6(n){var e,t;++n.j,e=n.g,t=n.i,n.g=null,n.i=0,n.Oi(t,e),n.Ni()}function SLn(n,e,t){var i;i=new LX(n.a),u5(i,n.a.a),Vc(i.f,e,t),n.a.a=i}function $J(n,e,t,i){var r;for(r=0;re)throw M(new Ir(Enn(n,e,"index")));return n}function Yl(n,e){var t;return t=(Ln(e,n.c.length),n.c[e]),Sz(n.c,e,1),t}function BJ(n,e){var t,i;return t=(Jn(n),n),i=(Jn(e),e),t==i?0:te.p?-1:0}function xLn(n){var e;return n.a||(e=n.r,D(e,156)&&(n.a=u(e,156))),n.a}function o4e(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].gd(t),136),i.md()}function s4e(n){var e,t;return e=n.ld(),t=u(n.md(),16),N7(t.Nc(),new D8n(e))}function FLn(n,e){return Zc(n.a,e)?(Bp(n.a,e),!0):!1}function Rp(n,e,t){return Y7(e,n.e.Rd().gc()),Y7(t,n.c.Rd().gc()),n.a[e][t]}function XM(n,e,t){this.a=n,this.b=e,this.c=t,nn(n.t,this),nn(e.i,this)}function VM(n,e,t,i){this.f=n,this.e=e,this.d=t,this.b=i,this.c=i?i.d:null}function ek(){this.b=new Ct,this.a=new Ct,this.b=new Ct,this.a=new Ct}function N4(){N4=F;var n,e;MO=(u4(),e=new $E,e),TO=(n=new fD,n)}function f4e(n){var e;return ta(n),e=new PSn(n,n.a.e,n.a.d|4),new cV(n,e)}function BLn(n){var e;for(X1(n),e=0;n.a.Bd(new V0n);)e=nr(e,1);return e}function WM(n,e){return Jn(e),n.c=0,"Initial capacity must not be negative")}function JM(){JM=F,d9=new lt("org.eclipse.elk.labels.labelManager")}function RLn(){RLn=F,vsn=new Dt("separateLayerConnections",(OT(),F_))}function af(){af=F,zw=new iX("REGULAR",0),Ea=new iX("CRITICAL",1)}function tk(){tk=F,Rq=new hX("FIXED",0),JI=new hX("CENTER_NODE",1)}function QM(){QM=F,Csn=new Wz("QUADRATIC",0),V_=new Wz("SCANLINE",1)}function KLn(){KLn=F,dne=Ce((i5(),A(T(Asn,1),G,322,0,[L8,gj,Tsn])))}function _Ln(){_Ln=F,bne=Ce((bT(),A(T(Psn,1),G,351,0,[Ssn,VP,W_])))}function HLn(){HLn=F,mne=Ce((hd(),A(T(pne,1),G,459,0,[Y_,pv,m2])))}function qLn(){qLn=F,fne=Ce((I0(),A(T(R_,1),G,372,0,[rb,va,ib])))}function ULn(){ULn=F,Tne=Ce((vl(),A(T(Mne,1),G,311,0,[mj,k2,E3])))}function GLn(){GLn=F,Cne=Ce((Y4(),A(T(sH,1),G,298,0,[uH,oH,pj])))}function zLn(){zLn=F,Zte=Ce((d5(),A(T(Ohn,1),G,390,0,[FH,Ihn,MI])))}function XLn(){XLn=F,oie=Ce((ST(),A(T(Uhn,1),G,387,0,[Hhn,zH,qhn])))}function VLn(){VLn=F,sie=Ce((h5(),A(T(Ghn,1),G,349,0,[VH,XH,Pj])))}function WLn(){WLn=F,uie=Ce((gr(),A(T(cie,1),G,462,0,[W8,Vu,Jc])))}function JLn(){JLn=F,hie=Ce((dT(),A(T(Jhn,1),G,352,0,[Whn,JH,Vhn])))}function QLn(){QLn=F,fie=Ce((um(),A(T(Xhn,1),G,350,0,[WH,zhn,J8])))}function YLn(){YLn=F,lie=Ce((DT(),A(T(Qhn,1),G,388,0,[QH,Iv,Gw])))}function ZLn(){ZLn=F,are=Ce((l5(),A(T(bln,1),G,392,0,[dln,nq,Dj])))}function nNn(){nNn=F,Gre=Ce((Sk(),A(T(Hln,1),G,393,0,[KI,Kln,_ln])))}function eNn(){eNn=F,ace=Ce((AT(),A(T(u1n,1),G,299,0,[Cq,c1n,r1n])))}function tNn(){tNn=F,dce=Ce((XT(),A(T(o1n,1),G,445,0,[Fj,qI,Mq])))}function iNn(){iNn=F,wce=Ce((rA(),A(T(bce,1),G,455,0,[Tq,Sq,Aq])))}function rNn(){rNn=F,mce=Ce((_T(),A(T(h1n,1),G,394,0,[f1n,Oq,s1n])))}function cNn(){cNn=F,Kce=Ce((nT(),A(T(I1n,1),G,439,0,[$q,P1n,S1n])))}function uNn(){uNn=F,Aie=Ce((P0(),A(T(Tie,1),G,463,0,[Ij,Q8,PI])))}function oNn(){oNn=F,WQn=Ce((Uu(),A(T(VQn,1),G,470,0,[Mh,pa,zs])))}function sNn(){sNn=F,XQn=Ce((wf(),A(T(Sw,1),G,237,0,[bc,Wc,wc])))}function fNn(){fNn=F,QQn=Ce((bu(),A(T(JQn,1),G,471,0,[kf,ma,Xs])))}function hNn(){hNn=F,xQn=Ce((Gu(),A(T(xr,1),G,108,0,[Nun,Yr,Aw])))}function lNn(){lNn=F,pZn=Ce((n5(),A(T(Aon,1),G,391,0,[E_,j_,C_])))}function aNn(){aNn=F,Que=Ce((jl(),A(T(hdn,1),G,346,0,[uO,M1,j9])))}function dNn(){dNn=F,Uce=Ce((Nk(),A(T(xq,1),G,444,0,[XI,VI,WI])))}function bNn(){bNn=F,Xue=Ce(($f(),A(T(Yan,1),G,278,0,[xv,Jw,Fv])))}function wNn(){wNn=F,loe=Ce((Gp(),A(T(pdn,1),G,280,0,[gdn,Yw,aO])))}function Lf(n,e){return!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),wx(n.o,e)}function h4e(n,e){var t;n.C&&(t=u(Cr(n.b,e),127).n,t.d=n.C.d,t.a=n.C.a)}function qJ(n){var e,t,i,r;r=n.d,e=n.a,t=n.b,i=n.c,n.d=t,n.a=i,n.b=r,n.c=e}function l4e(n){return!n.g&&(n.g=new EE),!n.g.b&&(n.g.b=new dyn(n)),n.g.b}function ik(n){return!n.g&&(n.g=new EE),!n.g.c&&(n.g.c=new gyn(n)),n.g.c}function a4e(n){return!n.g&&(n.g=new EE),!n.g.d&&(n.g.d=new byn(n)),n.g.d}function d4e(n){return!n.g&&(n.g=new EE),!n.g.a&&(n.g.a=new wyn(n)),n.g.a}function b4e(n,e,t,i){return t&&(i=t.Rh(e,Ot(t.Dh(),n.c.uk()),null,i)),i}function w4e(n,e,t,i){return t&&(i=t.Th(e,Ot(t.Dh(),n.c.uk()),null,i)),i}function e$(n,e,t,i){var r;return r=K(ye,_e,28,e+1,15,1),vPe(r,n,e,t,i),r}function K(n,e,t,i,r,c){var s;return s=KRn(r,i),r!=10&&A(T(n,c),e,t,r,s),s}function g4e(n,e,t){var i,r;for(r=new Q4(e,n),i=0;it||e=0?n.Lh(t,!0,!0):K0(n,e,!0)}function L4e(n,e,t){var i;return i=mFn(n,e,t),n.b=new ET(i.c.length),len(n,i)}function N4e(n){if(n.b<=0)throw M(new nc);return--n.b,n.a-=n.c.c,Y(n.a)}function $4e(n){var e;if(!n.a)throw M(new SIn);return e=n.a,n.a=At(n.a),e}function x4e(n){for(;!n.a;)if(!nSn(n.c,new E9n(n)))return!1;return!0}function Kp(n){var e;return Se(n),D(n,204)?(e=u(n,204),e):new K8n(n)}function F4e(n){YM(),u(n.of((He(),Ww)),181).Fc((zu(),eE)),n.qf(oU,null)}function YM(){YM=F,wue=new jmn,pue=new Emn,gue=M6e((He(),oU),wue,Ta,pue)}function ZM(){ZM=F,Bln=new oX("LEAF_NUMBER",0),vq=new oX("NODE_SIZE",1)}function u$(n){n.a=K(ye,_e,28,n.b+1,15,1),n.c=K(ye,_e,28,n.b,15,1),n.d=0}function B4e(n,e){n.a.Ne(e.d,n.b)>0&&(nn(n.c,new UV(e.c,e.d,n.d)),n.b=e.d)}function ZJ(n,e){if(n.g==null||e>=n.i)throw M(new aL(e,n.i));return n.g[e]}function vNn(n,e,t){if(im(n,t),t!=null&&!n.fk(t))throw M(new uD);return t}function o$(n,e){return dk(e)!=10&&A(wo(e),e.Sm,e.__elementTypeId$,dk(e),n),n}function x4(n,e,t,i){var r;i=(k0(),i||Aun),r=n.slice(e,t),Cnn(r,n,e,t,-e,i)}function zo(n,e,t,i,r){return e<0?K0(n,t,i):u(t,69).wk().yk(n,n.hi(),e,i,r)}function R4e(n,e){return bt($(R(v(n,(W(),ob)))),$(R(v(e,ob))))}function kNn(){kNn=F,IQn=Ce((F4(),A(T(lP,1),G,303,0,[e_,t_,i_,r_])))}function F4(){F4=F,e_=new cC("All",0),t_=new hTn,i_=new vTn,r_=new fTn}function Uu(){Uu=F,Mh=new FD(s3,0),pa=new FD(Hm,1),zs=new FD(f3,2)}function yNn(){yNn=F,KA(),o0n=St,mse=li,s0n=new G9(St),vse=new G9(li)}function jNn(){jNn=F,jYn=Ce((D0(),A(T(yYn,1),G,417,0,[ij,tj,a_,d_])))}function ENn(){ENn=F,AYn=Ce((C5(),A(T(TYn,1),G,406,0,[sj,wP,gP,fj])))}function CNn(){CNn=F,CYn=Ce((Vp(),A(T(EYn,1),G,332,0,[cj,rj,uj,oj])))}function MNn(){MNn=F,DZn=Ce((dd(),A(T(Oon,1),G,389,0,[Ow,Ion,P_,I_])))}function TNn(){TNn=F,TZn=Ce((Z4(),A(T(MZn,1),G,416,0,[tb,Iw,Pw,d2])))}function ANn(){ANn=F,tne=Ce((xf(),A(T(ene,1),G,421,0,[j3,hv,lv,B_])))}function SNn(){SNn=F,GZn=Ce((OT(),A(T(UZn,1),G,371,0,[F_,HP,qP,bj])))}function PNn(){PNn=F,nie=Ce((cw(),A(T(RH,1),G,203,0,[TI,BH,P2,S2])))}function INn(){INn=F,iie=Ce((lh(),A(T(Khn,1),G,284,0,[k1,Rhn,HH,qH])))}function ok(){ok=F,$sn=new Qz(kh,0),QP=new Qz("IMPROVE_STRAIGHTNESS",1)}function ONn(n,e){var t,i;return i=e/n.c.Rd().gc()|0,t=e%n.c.Rd().gc(),Rp(n,i,t)}function DNn(n){var e;if(n.nl())for(e=n.i-1;e>=0;--e)L(n,e);return yJ(n)}function nQ(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function LNn(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[1];)t=e;return t}function K4e(n){return D(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function _4e(n){return D(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function NNn(n,e){if(e.a)throw M(new ec(nXn));fi(n.a,e),e.a=n,!n.j&&(n.j=e)}function eQ(n,e){PC.call(this,e.zd(),e.yd()&-16449),Jn(n),this.a=n,this.c=e}function H4e(n,e){return new _L(e,h0(Ki(e.e),e.f.a+n,e.f.b+n),(_n(),!1))}function q4e(n,e){return v4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function U4e(n,e){return v4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function $Nn(){$Nn=F,lce=Ce((sA(),A(T(i1n,1),G,354,0,[Eq,e1n,t1n,n1n])))}function xNn(){xNn=F,$re=Ce((a5(),A(T(Nln,1),G,353,0,[aq,BI,lq,hq])))}function FNn(){FNn=F,hre=Ce((Qp(),A(T(tln,1),G,405,0,[LI,n9,e9,t9])))}function BNn(){BNn=F,Vue=Ce((El(),A(T(lU,1),G,223,0,[hU,Qj,Bv,x3])))}function RNn(){RNn=F,Zue=Ce((To(),A(T(Yue,1),G,290,0,[Zj,nl,Aa,Yj])))}function KNn(){KNn=F,foe=Ce((go(),A(T(A9,1),G,386,0,[iE,Gd,tE,Qw])))}function _Nn(){_Nn=F,doe=Ce((qT(),A(T(Edn,1),G,320,0,[bU,kdn,jdn,ydn])))}function HNn(){HNn=F,goe=Ce((LT(),A(T(woe,1),G,415,0,[wU,Mdn,Cdn,Tdn])))}function nT(){nT=F,$q=new oL(mVn,0),P1n=new oL(jrn,1),S1n=new oL(kh,2)}function Wb(n,e,t,i,r){return Jn(n),Jn(e),Jn(t),Jn(i),Jn(r),new TW(n,e,i)}function qNn(n,e){var t;return t=u(Bp(n.e,e),400),t?(eW(t),t.e):null}function du(n,e){var t;return t=qr(n,e,0),t==-1?!1:(Yl(n,t),!0)}function UNn(n,e,t){var i;return X1(n),i=new LO,i.a=e,n.a.Nb(new MCn(i,t)),i.a}function G4e(n){var e;return X1(n),e=K(Pi,Tr,28,0,15,1),lg(n.a,new k9n(e)),e}function tQ(n){var e;if(!E$(n))throw M(new nc);return n.e=1,e=n.d,n.d=null,e}function n1(n){var e;return Vr(n)&&(e=0-n,!isNaN(e))?e:Y1(em(n))}function qr(n,e,t){for(;t=0?tA(n,t,!0,!0):K0(n,e,!0)}function rQ(n){var e;return e=cd(Un(n,32)),e==null&&(iu(n),e=cd(Un(n,32))),e}function cQ(n){var e;return n.Oh()||(e=se(n.Dh())-n.ji(),n.$h().Mk(e)),n.zh()}function JNn(n,e){ion=new vE,MYn=e,S8=n,u(S8.b,68),zJ(S8,ion,null),aGn(S8)}function n5(){n5=F,E_=new RD("XY",0),j_=new RD("X",1),C_=new RD("Y",2)}function bu(){bu=F,kf=new BD("TOP",0),ma=new BD(Hm,1),Xs=new BD($tn,2)}function vl(){vl=F,mj=new GD(kh,0),k2=new GD("TOP",1),E3=new GD($tn,2)}function ak(){ak=F,UH=new Zz("INPUT_ORDER",0),GH=new Zz("PORT_DEGREE",1)}function B4(){B4=F,sun=Yc(ro,ro,524287),bQn=Yc(0,0,My),fun=QN(1),QN(2),hun=QN(0)}function a$(n){var e;return n.d!=n.r&&(e=gs(n),n.e=!!e&&e.lk()==bJn,n.d=e),n.e}function d$(n,e,t){var i;return i=n.g[e],S6(n,e,n.Zi(e,t)),n.Ri(e,t,i),n.Ni(),i}function rT(n,e){var t;return t=n.dd(e),t>=0?(n.gd(t),!0):!1}function b$(n,e){var t;for(Se(n),Se(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function Nf(n,e){var t;return t=u(ee(n.e,e),400),t?(OTn(n,t),t.e):null}function QNn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function Jb(n,e){var t=n.a[e],i=(K$(),WK)[typeof t];return i?i(t):bY(typeof t)}function rc(n,e){var t,i;return ta(n),i=new KJ(e,n.a),t=new iSn(i),new Tn(n,t)}function w$(n){var e;return e=n.b.c.length==0?null:sn(n.b,0),e!=null&&M$(n,0),e}function W4e(n,e){var t,i,r;r=e.c.i,t=u(ee(n.f,r),60),i=t.d.c-t.e.c,FQ(e.a,i,0)}function uQ(n,e){var t;for(++n.d,++n.c[e],t=e+1;t=0;)++e[0]}function J4e(n,e){eu(n,e==null||UC((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Q4e(n,e){tu(n,e==null||UC((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Y4e(n,e){S0(n,e==null||UC((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Z4e(n,e){A0(n,e==null||UC((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function nme(n,e,t){return vp(new V(t.e.a+t.f.a/2,t.e.b+t.f.b/2),n)==(Jn(e),e)}function eme(n,e){return D(e,102)&&u(e,19).Bb&hr?new dL(e,n):new Q4(e,n)}function tme(n,e){return D(e,102)&&u(e,19).Bb&hr?new dL(e,n):new Q4(e,n)}function dk(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function n$n(n,e){return e==(xL(),xL(),AQn)?n.toLocaleLowerCase():n.toLowerCase()}function e$n(n){if(!n.e)throw M(new nc);return n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function oQ(n){if(!n.c)throw M(new nc);return n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function t$n(n){var e;for(++n.a,e=n.c.a.length;n.an.a[i]&&(i=t);return i}function i$n(n){var e;return e=u(v(n,(W(),cb)),313),e?e.a==n:!1}function r$n(n){var e;return e=u(v(n,(W(),cb)),313),e?e.i==n:!1}function c$n(){c$n=F,yZn=Ce((Vi(),A(T(Son,1),G,367,0,[Vs,Jh,Oc,Kc,zr])))}function u$n(){u$n=F,rne=Ce((ow(),A(T(ine,1),G,375,0,[wj,zP,XP,GP,UP])))}function o$n(){o$n=F,wne=Ce((o1(),A(T(Osn,1),G,348,0,[J_,Isn,Q_,gv,wv])))}function s$n(){s$n=F,eie=Ce((E5(),A(T(Lhn,1),G,323,0,[Dhn,KH,_H,X8,V8])))}function f$n(){f$n=F,Sne=Ce((Yo(),A(T(sfn,1),G,171,0,[jj,R8,ya,K8,xw])))}function h$n(){h$n=F,qre=Ce((wA(),A(T(Hre,1),G,368,0,[pq,bq,mq,wq,gq])))}function l$n(){l$n=F,qce=Ce((N5(),A(T(Hce,1),G,373,0,[N2,O3,a9,l9,Kj])))}function a$n(){a$n=F,Wce=Ce((Wk(),A(T(R1n,1),G,324,0,[x1n,Kq,B1n,_q,F1n])))}function d$n(){d$n=F,zue=Ce((ci(),A(T(k9,1),G,88,0,[Jf,Xr,Br,Wf,us])))}function b$n(){b$n=F,mue=Ce((pf(),A(T(Zh,1),G,170,0,[xn,pi,Ph,Kd,E1])))}function w$n(){w$n=F,eoe=Ce((Bg(),A(T(C9,1),G,256,0,[Sa,nE,ldn,E9,adn])))}function g$n(){g$n=F,roe=Ce((en(),A(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn])))}function cT(){cT=F,Fun=new qz("BY_SIZE",0),s_=new qz("BY_SIZE_AND_SHAPE",1)}function uT(){uT=F,v_=new zz("EADES",0),vP=new zz("FRUCHTERMAN_REINGOLD",1)}function bk(){bk=F,WP=new Jz("READING_DIRECTION",0),Dsn=new Jz("ROTATION",1)}function e5(){e5=F,PZn=new iwn,IZn=new uwn,AZn=new own,SZn=new cwn,OZn=new swn}function p$n(n){this.b=new Z,this.a=new Z,this.c=new Z,this.d=new Z,this.e=n}function m$n(n){this.g=n,this.f=new Z,this.a=y.Math.min(this.g.c.c,this.g.d.c)}function v$n(n,e,t){HC.call(this),hQ(this),this.a=n,this.c=t,this.b=e.d,this.f=e.e}function sme(n,e,t){var i,r;for(r=new C(t);r.a=0&&e0?e-1:e,nEn($he(q$n(QV(new op,t),n.n),n.j),n.k)}function Nr(n){var e,t;t=(e=new hD,e),ve((!n.q&&(n.q=new q(Ss,n,11,10)),n.q),t)}function sQ(n){return(n.i&2?"interface ":n.i&1?"":"class ")+(ll(n),n.o)}function oT(n){return Ec(n,et)>0?et:Ec(n,Wi)<0?Wi:Ae(n)}function Qb(n){return n<3?(Co(n,$zn),n+1):n=-.01&&n.a<=_f&&(n.a=0),n.b>=-.01&&n.b<=_f&&(n.b=0),n}function Dg(n){Vg();var e,t;for(t=Mrn,e=0;et&&(t=n[e]);return t}function E$n(n,e){var t;if(t=uy(n.Dh(),e),!t)throw M(new Gn(ba+e+sK));return t}function Yb(n,e){var t;for(t=n;At(t);)if(t=At(t),t==e)return!0;return!1}function vme(n,e){var t,i,r;for(i=e.a.ld(),t=u(e.a.md(),16).gc(),r=0;rn||n>e)throw M(new gz("fromIndex: 0, toIndex: "+n+Etn+e))}function T0(n){if(n<0)throw M(new Gn("Illegal Capacity: "+n));this.g=this.aj(n)}function fQ(n,e){return Tf(),Ks(fa),y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)}function m$(n,e){var t,i,r,c;for(i=n.d,r=0,c=i.length;r0&&(n.a/=e,n.b/=e),n}function jo(n){var e;return n.w?n.w:(e=lpe(n),e&&!e.Vh()&&(n.w=e),e)}function R4(n,e){var t,i;i=n.a,t=w5e(n,e,null),i!=e&&!n.e&&(t=Lm(n,e,t)),t&&t.oj()}function S$n(n,e,t){var i,r;i=e;do r=$(n.p[i.p])+t,n.p[i.p]=r,i=n.a[i.p];while(i!=e)}function P$n(n,e,t){var i=function(){return n.apply(i,arguments)};return e.apply(i,t),i}function Tme(n){var e;return n==null?null:(e=u(n,195),Bye(e,e.length))}function L(n,e){if(n.g==null||e>=n.i)throw M(new aL(e,n.i));return n.Wi(e,n.g[e])}function Ame(n,e){Dn();var t,i;for(i=new Z,t=0;t=14&&e<=16))),n}function Ee(n,e){var t;return Jn(e),t=n[":"+e],x7(!!t,"Enum constant undefined: "+e),t}function we(n,e,t,i,r,c){var s;return s=bN(n,e),U$n(t,s),s.i=r?8:0,s.f=i,s.e=r,s.g=c,s}function aQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=n,this.a=t}function dQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=n,this.a=t}function bQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=n,this.a=t}function wQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=n,this.a=t}function gQ(n,e,t,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=n,this.a=t}function G$n(n,e){var t,i,r,c;for(i=e,r=0,c=i.length;r=0))throw M(new Gn("tolerance ("+n+") must be >= 0"));return n}function X$n(n,e){var t;return D(e,44)?n.c.Mc(e):(t=wx(n,e),VT(n,e),t)}function Mr(n,e,t){return ad(n,e),zc(n,t),e1(n,0),Zb(n,1),u1(n,!0),c1(n,!0),n}function gk(n,e){var t;if(t=n.gc(),e<0||e>t)throw M(new Kb(e,t));return new AV(n,e)}function wT(n,e){n.b=y.Math.max(n.b,e.d),n.e+=e.r+(n.a.c.length==0?0:n.c),nn(n.a,e)}function V$n(n){Fb(n.c>=0),_8e(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function gT(n){var e,t;for(t=n.c.Cc().Kc();t.Ob();)e=u(t.Pb(),16),e.$b();n.c.$b(),n.d=0}function Fme(n){var e,t,i,r;for(t=n.a,i=0,r=t.length;i=0}function EQ(n,e){n.r>0&&n.c0&&n.g!=0&&EQ(n.i,e/n.r*n.i.d))}function CQ(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,1,t,n.c))}function y$(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,4,t,n.c))}function z4(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,2,t,n.k))}function j$(n,e){var t;t=n.D,n.D=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,2,t,n.D))}function mT(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,8,t,n.f))}function vT(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,7,t,n.i))}function MQ(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,8,t,n.a))}function TQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,0,t,n.b))}function AQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,0,t,n.b))}function SQ(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,1,t,n.c))}function PQ(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,1,t,n.d))}function Ume(n,e,t){var i;n.b=e,n.a=t,i=(n.a&512)==512?new wjn:new iG,n.c=rAe(i,n.b,n.a)}function uxn(n,e){return Sl(n.e,e)?(dr(),a$(e)?new nM(e,n):new k7(e,n)):new NMn(e,n)}function Gme(n){var e,t;return 0>n?new Oz:(e=n+1,t=new mLn(e,n),new uV(null,t))}function zme(n,e){Dn();var t;return t=new ap(1),Ai(n)?Dr(t,n,e):Vc(t.f,n,e),new eD(t)}function Xme(n,e){var t,i;return t=n.c,i=e.e[n.p],i>0?u(sn(t.a,i-1),10):null}function Vme(n,e){var t,i;return t=n.o+n.p,i=e.o+e.p,te?(e<<=1,e>0?e:X5):e}function E$(n){switch(KX(n.e!=3),n.e){case 2:return!1;case 0:return!0}return i4e(n)}function sxn(n,e){var t;return D(e,8)?(t=u(e,8),n.a==t.a&&n.b==t.b):!1}function Jme(n,e){var t;t=new vE,u(e.b,68),u(e.b,68),u(e.b,68),nu(e.a,new FV(n,t,e))}function fxn(n,e){var t,i;for(i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),Gk(n,t.ld(),t.md())}function IQ(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,11,t,n.d))}function kT(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,13,t,n.j))}function OQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,21,t,n.b))}function Qme(n,e){(UM(),Uf?null:e.c).length==0&&MAn(e,new FU),Dr(n.a,Uf?null:e.c,e)}function Yme(n,e){e.Ug("Hierarchical port constraint processing",1),g9e(n),xLe(n),e.Vg()}function I0(){I0=F,rb=new KD("START",0),va=new KD("MIDDLE",1),ib=new KD("END",2)}function yT(){yT=F,RI=new uX("P1_NODE_PLACEMENT",0),L2=new uX("P2_EDGE_ROUTING",1)}function Q1(){Q1=F,y3=new lt(Vtn),jP=new lt(MXn),I8=new lt(TXn),hj=new lt(AXn)}function O0(n){var e;return FL(n.f.g,n.d),oe(n.b),n.c=n.a,e=u(n.a.Pb(),44),n.b=UQ(n),e}function DQ(n){var e;return n.b==null?(Gl(),Gl(),aE):(e=n.ul()?n.tl():n.sl(),e)}function hxn(n,e){var t;return t=e==null?-1:qr(n.b,e,0),t<0?!1:(M$(n,t),!0)}function _s(n,e){var t;return Jn(e),t=e.g,n.b[t]?!1:($t(n.b,t,e),++n.c,!0)}function jT(n,e){var t,i;return t=1-e,i=n.a[t],n.a[t]=i.a[e],i.a[e]=n,n.b=!0,i.b=!1,i}function Zme(n,e){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),272),n.b=!0,fi(n.e,t),t.b=n}function nve(n,e){var t,i;return t=u(v(n,(cn(),Hw)),8),i=u(v(e,Hw),8),bt(t.b,i.b)}function C$(n,e,t){var i,r,c;return c=e>>5,r=e&31,i=vi(U1(n.n[t][c],Ae(Bs(r,1))),3),i}function lxn(n,e,t){var i,r,c;for(c=n.a.length-1,r=n.b,i=0;i0?1:0:(!n.c&&(n.c=W7(vc(n.f))),n.c).e}function kxn(n,e){e?n.B==null&&(n.B=n.D,n.D=null):n.B!=null&&(n.D=n.B,n.B=null)}function rve(n,e){return Z4(),n==tb&&e==Iw||n==Iw&&e==tb||n==d2&&e==Pw||n==Pw&&e==d2}function cve(n,e){return Z4(),n==tb&&e==Pw||n==tb&&e==d2||n==Iw&&e==d2||n==Iw&&e==Pw}function yxn(n,e){return Tf(),Ks(_f),y.Math.abs(0-e)<=_f||e==0||isNaN(0)&&isNaN(e)?0:n/e}function jxn(n,e){return $(R(ho(Dk(_r(new Tn(null,new In(n.c.b,16)),new P7n(n)),e))))}function xQ(n,e){return $(R(ho(Dk(_r(new Tn(null,new In(n.c.b,16)),new S7n(n)),e))))}function uve(){return pr(),A(T(cH,1),G,259,0,[ZP,cs,$8,nI,kv,v2,x8,mv,vv,eI])}function ove(){return ps(),A(T(Bhn,1),G,243,0,[AI,Aj,Sj,$hn,xhn,Nhn,Fhn,SI,wb,Uw])}function sve(n,e){var t;e.Ug("General Compactor",1),t=d8e(u(z(n,(oa(),yq)),393)),t.Cg(n)}function fve(n,e){var t,i;return t=u(z(n,(oa(),_I)),17),i=u(z(e,_I),17),jc(t.a,i.a)}function FQ(n,e,t){var i,r;for(r=ge(n,0);r.b!=r.d.c;)i=u(be(r),8),i.a+=e,i.b+=t;return n}function r5(n,e,t){var i;for(i=n.b[t&n.f];i;i=i.b)if(t==i.a&&sh(e,i.g))return i;return null}function c5(n,e,t){var i;for(i=n.c[t&n.f];i;i=i.d)if(t==i.f&&sh(e,i.i))return i;return null}function hve(n,e,t){var i,r,c;for(i=0,r=0;r>>31;i!=0&&(n[t]=i)}function P$(n,e,t,i,r,c){var s;this.c=n,s=new Z,gZ(n,s,e,n.b,t,i,r,c),this.a=new xi(s,0)}function Exn(){this.c=new zE(0),this.b=new zE(Crn),this.d=new zE(lVn),this.a=new zE(QB)}function Vo(n,e,t,i,r,c,s){je.call(this,n,e),this.d=t,this.e=i,this.c=r,this.b=c,this.a=Of(s)}function Ut(n,e,t,i,r,c,s,f,h,l,a,d,g){return P_n(n,e,t,i,r,c,s,f,h,l,a,d,g),sx(n,!1),n}function lve(n){return n.b.c.i.k==(Vn(),Zt)?u(v(n.b.c.i,(W(),st)),12):n.b.c}function Cxn(n){return n.b.d.i.k==(Vn(),Zt)?u(v(n.b.d.i,(W(),st)),12):n.b.d}function ave(n){var e;return e=BM(n),c0(e.a,0)?(JE(),JE(),SQn):(JE(),new cAn(e.b))}function I$(n){var e;return e=wJ(n),c0(e.a,0)?(Ib(),Ib(),n_):(Ib(),new AL(e.b))}function O$(n){var e;return e=wJ(n),c0(e.a,0)?(Ib(),Ib(),n_):(Ib(),new AL(e.c))}function Mxn(n){switch(n.g){case 2:return en(),Wn;case 4:return en(),Zn;default:return n}}function Txn(n){switch(n.g){case 1:return en(),ae;case 3:return en(),Xn;default:return n}}function Axn(n){switch(n.g){case 0:return new fmn;case 1:return new hmn;default:return null}}function Hp(){Hp=F,x_=new Dt("edgelabelcenterednessanalysis.includelabel",(_n(),ga))}function BQ(){BQ=F,Mie=ah(VMn(Ke(Ke(new ii,(Vi(),Oc),(tr(),NP)),Kc,PP),zr),LP)}function Sxn(){Sxn=F,Pie=ah(VMn(Ke(Ke(new ii,(Vi(),Oc),(tr(),NP)),Kc,PP),zr),LP)}function D$(){D$=F,L9=new hjn,EU=A(T(ku,1),f2,179,0,[]),Joe=A(T(Ss,1),qcn,62,0,[])}function X4(){X4=F,aj=new Xz("TO_INTERNAL_LTR",0),L_=new Xz("TO_INPUT_DIRECTION",1)}function Ou(){Ou=F,Fon=new bwn,$on=new wwn,xon=new gwn,Non=new pwn,Bon=new mwn,Ron=new vwn}function dve(n,e){e.Ug(HXn,1),_Y(Qhe(new PE((r6(),new kN(n,!1,!1,new HU))))),e.Vg()}function bve(n,e,t){t.Ug("DFS Treeifying phase",1),O8e(n,e),PTe(n,e),n.a=null,n.b=null,t.Vg()}function pk(n,e){return _n(),Ai(n)?BJ(n,Oe(e)):$b(n)?tN(n,R(e)):Nb(n)?rwe(n,un(e)):n.Fd(e)}function u5(n,e){var t,i;for(Jn(e),i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),n.zc(t.ld(),t.md())}function wve(n,e,t){var i;for(i=t.Kc();i.Ob();)if(!_M(n,e,i.Pb()))return!1;return!0}function gve(n,e,t,i,r){var c;return t&&(c=Ot(e.Dh(),n.c),r=t.Rh(e,-1-(c==-1?i:c),null,r)),r}function pve(n,e,t,i,r){var c;return t&&(c=Ot(e.Dh(),n.c),r=t.Th(e,-1-(c==-1?i:c),null,r)),r}function Pxn(n){var e;if(n.b==-2){if(n.e==0)e=-1;else for(e=0;n.a[e]==0;e++);n.b=e}return n.b}function mve(n){if(Jn(n),n.length==0)throw M(new th("Zero length BigInteger"));CSe(this,n)}function RQ(n){this.i=n.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),n.Qc(this.g))}function Ixn(n,e,t){this.g=n,this.d=e,this.e=t,this.a=new Z,IEe(this),Dn(),Yt(this.a,null)}function KQ(n,e){e.q=n,n.d=y.Math.max(n.d,e.r),n.b+=e.d+(n.a.c.length==0?0:n.c),nn(n.a,e)}function V4(n,e){var t,i,r,c;return r=n.c,t=n.c+n.b,c=n.d,i=n.d+n.a,e.a>r&&e.ac&&e.br?t=r:zn(e,t+1),n.a=qo(n.a,0,e)+(""+i)+NW(n.a,t)}function Rxn(n,e){n.a=nr(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d=nr(n.d,e)}function Mve(n,e){return e1||n.Ob())return++n.a,n.g=0,e=n.i,n.Ob(),e;throw M(new nc)}function qxn(n){switch(n.a.g){case 1:return new VCn;case 3:return new VRn;default:return new o8n}}function HQ(n,e){switch(e){case 1:return!!n.n&&n.n.i!=0;case 2:return n.k!=null}return bJ(n,e)}function vc(n){return Ty>22),r=n.h+e.h+(i>>22),Yc(t&ro,i&ro,r&Il)}function Qxn(n,e){var t,i,r;return t=n.l-e.l,i=n.m-e.m+(t>>22),r=n.h-e.h+(i>>22),Yc(t&ro,i&ro,r&Il)}function zve(n){var e,t;for(RDe(n),t=new C(n.d);t.ai)throw M(new Kb(e,i));return n.Si()&&(t=wOn(n,t)),n.Ei(e,t)}function nm(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)Kg(n,c,s)||xA(n,c,s,!0,!1)}function u6e(n){Vg();var e,t,i;for(t=K(Ei,J,8,2,0,1),i=0,e=0;e<2;e++)i+=.5,t[e]=Z9e(i,n);return t}function em(n){var e,t,i;return e=~n.l+1&ro,t=~n.m+(e==0?1:0)&ro,i=~n.h+(e==0&&t==0?1:0)&Il,Yc(e,t,i)}function JQ(n){var e;if(n<0)return Wi;if(n==0)return 0;for(e=X5;!(e&n);e>>=1);return e}function R$(n,e,t){return n>=128?!1:n<64?j6(vi(Bs(1,n),t),0):j6(vi(Bs(1,n-64),e),0)}function Tk(n,e,t){return t==null?(!n.q&&(n.q=new de),Bp(n.q,e)):(!n.q&&(n.q=new de),Ve(n.q,e,t)),n}function U(n,e,t){return t==null?(!n.q&&(n.q=new de),Bp(n.q,e)):(!n.q&&(n.q=new de),Ve(n.q,e,t)),n}function sFn(n){var e,t;return t=new zM,Ur(t,n),U(t,(Q1(),y3),n),e=new de,$Pe(n,t,e),fDe(n,t,e),t}function fFn(n){var e,t;return e=n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f,t=n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d,e||t}function hFn(n,e){var t,i,r,c;for(t=!1,i=n.a[e].length,c=0;c=0,"Negative initial capacity"),x7(e>=0,"Non-positive load factor"),Hu(this)}function s6e(n,e,t,i,r){var c,s;if(s=n.length,c=t.length,e<0||i<0||r<0||e+r>s||i+r>c)throw M(new HG)}function nY(n,e){Dn();var t,i,r,c,s;for(s=!1,i=e,r=0,c=i.length;r1||e>=0&&n.b<3)}function H$(n){var e,t,i;e=~n.l+1&ro,t=~n.m+(e==0?1:0)&ro,i=~n.h+(e==0&&t==0?1:0)&Il,n.l=e,n.m=t,n.h=i}function iY(n){Dn();var e,t,i;for(i=1,t=n.Kc();t.Ob();)e=t.Pb(),i=31*i+(e!=null?mt(e):0),i=i|0;return i}function d6e(n,e,t,i,r){var c;return c=Gnn(n,e),t&&H$(c),r&&(n=u7e(n,e),i?wa=em(n):wa=Yc(n.l,n.m,n.h)),c}function kFn(n,e,t){n.g=uF(n,e,(en(),Zn),n.b),n.d=uF(n,t,Zn,n.b),!(n.g.c==0||n.d.c==0)&&QKn(n)}function yFn(n,e,t){n.g=uF(n,e,(en(),Wn),n.j),n.d=uF(n,t,Wn,n.j),!(n.g.c==0||n.d.c==0)&&QKn(n)}function rY(n,e){switch(e){case 7:return!!n.e&&n.e.i!=0;case 8:return!!n.d&&n.d.i!=0}return HY(n,e)}function b6e(n,e){switch(e.g){case 0:D(n.b,641)||(n.b=new Bxn);break;case 1:D(n.b,642)||(n.b=new FSn)}}function jFn(n){switch(n.g){case 0:return new wmn;default:throw M(new Gn(xS+(n.f!=null?n.f:""+n.g)))}}function EFn(n){switch(n.g){case 0:return new bmn;default:throw M(new Gn(xS+(n.f!=null?n.f:""+n.g)))}}function w6e(n,e,t){return!o4(ut(new Tn(null,new In(n.c,16)),new Y3(new fMn(e,t)))).Bd((Va(),v3))}function CFn(n,e){return vp(gm(u(v(e,(lc(),pb)),88)),new V(n.c.e.a-n.b.e.a,n.c.e.b-n.b.e.b))<=0}function g6e(n,e){for(;n.g==null&&!n.c?rJ(n):n.g==null||n.i!=0&&u(n.g[n.i-1],51).Ob();)kle(e,CA(n))}function ld(n){var e,t;for(t=new C(n.a.b);t.ai?1:0}function v6e(n){return nn(n.c,(qp(),bue)),fQ(n.a,$(R(rn((bx(),EI)))))?new evn:new Nkn(n)}function k6e(n){for(;!n.d||!n.d.Ob();)if(n.b&&!n6(n.b))n.d=u(Sp(n.b),51);else return null;return n.d}function uY(n){switch(n.g){case 1:return lVn;default:case 2:return 0;case 3:return QB;case 4:return Crn}}function y6e(){nt();var n;return PU||(n=_1e(sa("M",!0)),n=cM(sa("M",!1),n),PU=n,PU)}function LT(){LT=F,wU=new EC("ELK",0),Mdn=new EC("JSON",1),Cdn=new EC("DOT",2),Tdn=new EC("SVG",3)}function h5(){h5=F,VH=new WD("STACKED",0),XH=new WD("REVERSE_STACKED",1),Pj=new WD("SEQUENCED",2)}function l5(){l5=F,dln=new eL(kh,0),nq=new eL("MIDDLE_TO_MIDDLE",1),Dj=new eL("AVOID_OVERLAP",2)}function rm(){rm=F,ysn=new Qgn,jsn=new Ygn,JZn=new Wgn,WZn=new Zgn,VZn=new Jgn,ksn=(Jn(VZn),new I0n)}function NT(){NT=F,fdn=new o0(15),Jue=new Ni((He(),C1),fdn),y9=L3,cdn=Pue,udn=Hd,sdn=_2,odn=Vw}function Ng(n,e){var t,i,r,c,s;for(i=e,r=0,c=i.length;r=n.b.c.length||(sY(n,2*e+1),t=2*e+2,t0&&(e.Cd(t),t.i&&E5e(t))}function fY(n,e,t){var i;for(i=t-1;i>=0&&n[i]===e[i];i--);return i<0?0:ND(vi(n[i],mr),vi(e[i],mr))?-1:1}function AFn(n,e,t){var i,r;this.g=n,this.c=e,this.a=this,this.d=this,r=oxn(t),i=K(sQn,Ey,227,r,0,1),this.b=i}function X$(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)if(Kg(n,c,s))return!0;return!1}function A6e(n,e){var t,i;for(i=n.Zb().Cc().Kc();i.Ob();)if(t=u(i.Pb(),16),t.Hc(e))return!0;return!1}function SFn(n,e,t){var i,r,c,s;for(Jn(t),s=!1,c=n.fd(e),r=t.Kc();r.Ob();)i=r.Pb(),c.Rb(i),s=!0;return s}function V$(n,e){var t,i;return i=u(Un(n.a,4),129),t=K(yU,MK,424,e,0,1),i!=null&&Ic(i,0,t,0,i.length),t}function PFn(n,e){var t;return t=new jF((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,e),n.e!=null||(t.c=n),t}function S6e(n,e){var t;return n===e?!0:D(e,85)?(t=u(e,85),ann(Ja(n),t.vc())):!1}function IFn(n,e,t){var i,r;for(r=t.Kc();r.Ob();)if(i=u(r.Pb(),44),n.Be(e,i.md()))return!0;return!1}function OFn(n,e,t){return n.d[e.p][t.p]||(O9e(n,e,t),n.d[e.p][t.p]=!0,n.d[t.p][e.p]=!0),n.a[e.p][t.p]}function P6e(n,e){var t;return!n||n==e||!kt(e,(W(),ub))?!1:(t=u(v(e,(W(),ub)),10),t!=n)}function W$(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.$l()}}function DFn(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n._l()}}function LFn(n){kOn.call(this,"The given string does not match the expected format for individual spacings.",n)}function I6e(n,e){var t;e.Ug("Min Size Preprocessing",1),t=ynn(n),ht(n,(_h(),s9),t.a),ht(n,UI,t.b),e.Vg()}function O6e(n){var e,t,i;for(e=0,i=K(Ei,J,8,n.b,0,1),t=ge(n,0);t.b!=t.d.c;)i[e++]=u(be(t),8);return i}function J$(n,e,t){var i,r,c;for(i=new Ct,c=ge(t,0);c.b!=c.d.c;)r=u(be(c),8),Fe(i,new rr(r));SFn(n,e,i)}function D6e(n,e){var t;return t=nr(n,e),ND(RN(n,e),0)|TC(RN(n,t),0)?t:nr(jy,RN(U1(t,63),1))}function L6e(n,e){var t,i;return t=u(n.d.Bc(e),16),t?(i=n.e.hc(),i.Gc(t),n.e.d-=t.gc(),t.$b(),i):null}function NFn(n){var e;if(e=n.a.c.length,e>0)return j4(e-1,n.a.c.length),Yl(n.a,e-1);throw M(new Nyn)}function $Fn(n,e,t){if(n>e)throw M(new Gn(ZA+n+Qzn+e));if(n<0||e>t)throw M(new gz(ZA+n+Ttn+e+Etn+t))}function cm(n,e){n.D==null&&n.B!=null&&(n.D=n.B,n.B=null),j$(n,e==null?null:(Jn(e),e)),n.C&&n.hl(null)}function N6e(n,e){var t;t=rn((bx(),EI))!=null&&e.Sg()!=null?$(R(e.Sg()))/$(R(rn(EI))):1,Ve(n.b,e,t)}function hY(n,e){var t,i;if(i=n.c[e],i!=0)for(n.c[e]=0,n.d-=i,t=e+1;tPS?n-t>PS:t-n>PS}function zFn(n,e){var t;for(t=0;tr&&(jKn(e.q,r),i=t!=e.q.d)),i}function XFn(n,e){var t,i,r,c,s,f,h,l;return h=e.i,l=e.j,i=n.f,r=i.i,c=i.j,s=h-r,f=l-c,t=y.Math.sqrt(s*s+f*f),t}function gY(n,e){var t,i;return i=WT(n),i||(t=(UF(),$Hn(e)),i=new Eyn(t),ve(i.El(),n)),i}function Ik(n,e){var t,i;return t=u(n.c.Bc(e),16),t?(i=n.hc(),i.Gc(t),n.d-=t.gc(),t.$b(),n.mc(i)):n.jc()}function G6e(n,e){var t,i;for(i=to(n.d,1)!=0,t=!0;t;)t=!1,t=e.c.mg(e.e,i),t=t|oy(n,e,i,!1),i=!i;NQ(n)}function VFn(n,e,t,i){var r,c;n.a=e,c=i?0:1,n.f=(r=new o_n(n.c,n.a,t,c),new Kqn(t,n.a,r,n.e,n.b,n.c==(P0(),Q8)))}function xT(n){var e;return oe(n.a!=n.b),e=n.d.a[n.a],jAn(n.b==n.d.c&&e!=null),n.c=n.a,n.a=n.a+1&n.d.a.length-1,e}function WFn(n){var e;if(n.c!=0)return n.c;for(e=0;e=n.c.b:n.a<=n.c.b))throw M(new nc);return e=n.a,n.a+=n.c.c,++n.b,Y(e)}function ex(n){var e;return e=new OX(n.a),Ur(e,n),U(e,(W(),st),n),e.o.a=n.g,e.o.b=n.f,e.n.a=n.i,e.n.b=n.j,e}function tx(n){return(en(),mu).Hc(n.j)?$(R(v(n,(W(),yv)))):cc(A(T(Ei,1),J,8,0,[n.i.n,n.n,n.a])).b}function X6e(n){var e;return e=OC(Cie),u(v(n,(W(),Hc)),21).Hc((pr(),kv))&&Ke(e,(Vi(),Oc),(tr(),FP)),e}function V6e(n){var e,t,i,r;for(r=new ni,i=new C(n);i.a=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function Z6e(n,e){var t,i,r;for(r=1,t=n,i=e>=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function ea(n,e){var t,i,r,c;return c=(r=n?WT(n):null,O_n((i=e,r&&r.Gl(),i))),c==e&&(t=WT(n),t&&t.Gl()),c}function JFn(n,e,t){var i,r;return r=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,0,r,e),t?t.nj(i):t=i),t}function QFn(n,e,t){var i,r;return r=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,3,r,e),t?t.nj(i):t=i),t}function mY(n,e,t){var i,r;return r=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,1,r,e),t?t.nj(i):t=i),t}function YFn(n){var e,t;if(n!=null)for(t=0;t=i||e-129&&n<128?(xSn(),e=n+128,t=wun[e],!t&&(t=wun[e]=new mG(n)),t):new mG(n)}function om(n){var e,t;return n>-129&&n<128?(ZSn(),e=n+128,t=vun[e],!t&&(t=vun[e]=new kG(n)),t):new kG(n)}function eBn(n,e){var t;n.a.c.length>0&&(t=u(sn(n.a,n.a.c.length-1),579),oY(t,e))||nn(n.a,new vLn(e))}function c5e(n){Fs();var e,t;e=n.d.c-n.e.c,t=u(n.g,154),nu(t.b,new g7n(e)),nu(t.c,new p7n(e)),qi(t.i,new m7n(e))}function tBn(n){var e;return e=new x1,e.a+="VerticalSegment ",Dc(e,n.e),e.a+=" ",Re(e,BX(new yD,new C(n.k))),e.a}function ix(n,e){var t,i,r;for(t=0,r=uc(n,e).Kc();r.Ob();)i=u(r.Pb(),12),t+=v(i,(W(),Xu))!=null?1:0;return t}function Fg(n,e,t){var i,r,c;for(i=0,c=ge(n,0);c.b!=c.d.c&&(r=$(R(be(c))),!(r>t));)r>=e&&++i;return i}function iBn(n,e){Se(n);try{return n._b(e)}catch(t){if(t=It(t),D(t,212)||D(t,169))return!1;throw M(t)}}function kY(n,e){Se(n);try{return n.Hc(e)}catch(t){if(t=It(t),D(t,212)||D(t,169))return!1;throw M(t)}}function u5e(n,e){Se(n);try{return n.Mc(e)}catch(t){if(t=It(t),D(t,212)||D(t,169))return!1;throw M(t)}}function tw(n,e){Se(n);try{return n.xc(e)}catch(t){if(t=It(t),D(t,212)||D(t,169))return null;throw M(t)}}function o5e(n,e){Se(n);try{return n.Bc(e)}catch(t){if(t=It(t),D(t,212)||D(t,169))return null;throw M(t)}}function b5(n,e){switch(e.g){case 2:case 1:return uc(n,e);case 3:case 4:return Qo(uc(n,e))}return Dn(),Dn(),sr}function w5(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (name: ",Er(e,n.zb),e.a+=")",e.a)}function s5e(n){var e;return e=u(Nf(n.c.c,""),233),e||(e=new Np(c4(r4(new tp,""),"Other")),s1(n.c.c,"",e)),e}function yY(n,e,t){var i,r;return r=n.sb,n.sb=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,4,r,e),t?t.nj(i):t=i),t}function jY(n,e,t){var i,r;return r=n.r,n.r=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,8,r,n.r),t?t.nj(i):t=i),t}function f5e(n,e,t){var i,r;return i=new ml(n.e,4,13,(r=e.c,r||(On(),Zf)),null,f1(n,e),!1),t?t.nj(i):t=i,t}function h5e(n,e,t){var i,r;return i=new ml(n.e,3,13,null,(r=e.c,r||(On(),Zf)),f1(n,e),!1),t?t.nj(i):t=i,t}function r1(n,e){var t,i;return t=u(e,691),i=t.el(),!i&&t.fl(i=D(e,90)?new $Mn(n,u(e,29)):new rDn(n,u(e,156))),i}function Ok(n,e,t){var i;n._i(n.i+1),i=n.Zi(e,t),e!=n.i&&Ic(n.g,e,n.g,e+1,n.i-e),$t(n.g,e,i),++n.i,n.Mi(e,t),n.Ni()}function l5e(n,e){var t;return e.a&&(t=e.a.a.length,n.a?Re(n.a,n.b):n.a=new mo(n.d),lDn(n.a,e.a,e.d.length,t)),n}function a5e(n,e){var t;n.c=e,n.a=p8e(e),n.a<54&&(n.f=(t=e.d>1?fDn(e.a[0],e.a[1]):fDn(e.a[0],0),id(e.e>0?t:n1(t))))}function Dk(n,e){var t;return t=new LO,n.a.Bd(t)?(d4(),new wD(Jn(UNn(n,t.a,e)))):(X1(n),d4(),d4(),Iun)}function rBn(n,e){var t;n.c.length!=0&&(t=u(Ff(n,K(Qh,b1,10,n.c.length,0,1)),199),EX(t,new ign),Y_n(t,e))}function cBn(n,e){var t;n.c.length!=0&&(t=u(Ff(n,K(Qh,b1,10,n.c.length,0,1)),199),EX(t,new rgn),Y_n(t,e))}function rt(n,e){return Ai(n)?An(n,e):$b(n)?ZAn(n,e):Nb(n)?(Jn(n),x(n)===x(e)):gW(n)?n.Fb(e):fW(n)?QMn(n,e):fJ(n,e)}function Wo(n,e,t){if(e<0)Ann(n,t);else{if(!t.rk())throw M(new Gn(ba+t.xe()+a8));u(t,69).wk().Ek(n,n.hi(),e)}}function uBn(n,e,t){if(n<0||e>t)throw M(new Ir(ZA+n+Ttn+e+", size: "+t));if(n>e)throw M(new Gn(ZA+n+Qzn+e))}function oBn(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (source: ",Er(e,n.d),e.a+=")",e.a)}function sBn(n){return n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function d5e(n){VA();var e,t,i,r;for(t=jx(),i=0,r=t.length;i=0?ia(n):H6(ia(n1(n))))}function lBn(n,e,t,i,r,c){this.e=new Z,this.f=(gr(),W8),nn(this.e,n),this.d=e,this.a=t,this.b=i,this.f=r,this.c=c}function g5e(n,e,t){n.n=Wa(Fa,[J,SB],[376,28],14,[t,wi(y.Math.ceil(e/32))],2),n.o=e,n.p=t,n.j=e-1>>1,n.k=t-1>>1}function aBn(n){return n-=n>>1&1431655765,n=(n>>2&858993459)+(n&858993459),n=(n>>4)+n&252645135,n+=n>>8,n+=n>>16,n&63}function dBn(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)if(t=u(ue(i),142),x(e)===x(t))return!0;return!1}function p5e(n,e,t){var i,r,c;return c=(r=Cm(n.b,e),r),c&&(i=u(qA(fk(n,c),""),29),i)?Wnn(n,i,e,t):null}function rx(n,e,t){var i,r,c;return c=(r=Cm(n.b,e),r),c&&(i=u(qA(fk(n,c),""),29),i)?Jnn(n,i,e,t):null}function m5e(n,e){var t;if(t=Lg(n.i,e),t==null)throw M(new eh("Node did not exist in input."));return _Q(e,t),null}function v5e(n,e){var t;if(t=uy(n,e),D(t,331))return u(t,35);throw M(new Gn(ba+e+"' is not a valid attribute"))}function p5(n,e,t){var i;if(i=n.gc(),e>i)throw M(new Kb(e,i));if(n.Si()&&n.Hc(t))throw M(new Gn(Xy));n.Gi(e,t)}function k5e(n,e){e.Ug("Sort end labels",1),qt(ut(rc(new Tn(null,new In(n.b,16)),new _wn),new Hwn),new qwn),e.Vg()}function ci(){ci=F,Jf=new p7(Y5,0),Xr=new p7(f3,1),Br=new p7(s3,2),Wf=new p7(_B,3),us=new p7("UP",4)}function Nk(){Nk=F,XI=new sL("P1_STRUCTURE",0),VI=new sL("P2_PROCESSING_ORDER",1),WI=new sL("P3_EXECUTION",2)}function bBn(){bBn=F,Rre=ah(ah(s6(ah(ah(s6(Ke(new ii,(Qp(),n9),(B5(),ZH)),e9),fln),lln),t9),cln),aln)}function y5e(n){switch(u(v(n,(W(),Od)),311).g){case 1:U(n,Od,(vl(),E3));break;case 2:U(n,Od,(vl(),k2))}}function j5e(n){switch(n){case 0:return new ijn;case 1:return new ejn;case 2:return new tjn;default:throw M(new W9)}}function wBn(n){switch(n.g){case 2:return Xr;case 1:return Br;case 4:return Wf;case 3:return us;default:return Jf}}function TY(n,e){switch(n.b.g){case 0:case 1:return e;case 2:case 3:return new Ho(e.d,0,e.a,e.b);default:return null}}function AY(n){switch(n.g){case 1:return Wn;case 2:return Xn;case 3:return Zn;case 4:return ae;default:return sc}}function $k(n){switch(n.g){case 1:return ae;case 2:return Wn;case 3:return Xn;case 4:return Zn;default:return sc}}function RT(n){switch(n.g){case 1:return Zn;case 2:return ae;case 3:return Wn;case 4:return Xn;default:return sc}}function SY(n,e,t,i){switch(e){case 1:return!n.n&&(n.n=new q(Ar,n,1,7)),n.n;case 2:return n.k}return kZ(n,e,t,i)}function m5(n,e,t){var i,r;return n.Pj()?(r=n.Qj(),i=lF(n,e,t),n.Jj(n.Ij(7,Y(t),i,e,r)),i):lF(n,e,t)}function cx(n,e){var t,i,r;n.d==null?(++n.e,--n.f):(r=e.ld(),t=e.Bi(),i=(t&et)%n.d.length,o4e(n,i,RHn(n,i,t,r)))}function sm(n,e){var t;t=(n.Bb&Gs)!=0,e?n.Bb|=Gs:n.Bb&=-1025,n.Db&4&&!(n.Db&1)&&it(n,new Rs(n,1,10,t,e))}function fm(n,e){var t;t=(n.Bb&vw)!=0,e?n.Bb|=vw:n.Bb&=-4097,n.Db&4&&!(n.Db&1)&&it(n,new Rs(n,1,12,t,e))}function hm(n,e){var t;t=(n.Bb&$u)!=0,e?n.Bb|=$u:n.Bb&=-8193,n.Db&4&&!(n.Db&1)&&it(n,new Rs(n,1,15,t,e))}function lm(n,e){var t;t=(n.Bb&Tw)!=0,e?n.Bb|=Tw:n.Bb&=-2049,n.Db&4&&!(n.Db&1)&&it(n,new Rs(n,1,11,t,e))}function E5e(n){var e;n.g&&(e=n.c.kg()?n.f:n.a,fen(e.a,n.o,!0),fen(e.a,n.o,!1),U(n.o,(cn(),Kt),(Oi(),Ud)))}function C5e(n){var e;if(!n.a)throw M(new Or("Cannot offset an unassigned cut."));e=n.c-n.b,n.b+=e,KIn(n,e),RIn(n,e)}function M5e(n,e){var t;if(t=ee(n.k,e),t==null)throw M(new eh("Port did not exist in input."));return _Q(e,t),null}function T5e(n){var e,t;for(t=xHn(jo(n)).Kc();t.Ob();)if(e=Oe(t.Pb()),R5(n,e))return A3e((pCn(),Boe),e);return null}function gBn(n){var e,t;for(t=n.p.a.ec().Kc();t.Ob();)if(e=u(t.Pb(),218),e.f&&n.b[e.c]<-1e-10)return e;return null}function A5e(n){var e,t;for(t=z1(new x1,91),e=!0;n.Ob();)e||(t.a+=ur),e=!1,Dc(t,n.Pb());return(t.a+="]",t).a}function S5e(n){var e,t,i;for(e=new Z,i=new C(n.b);i.ae?1:n==e?n==0?bt(1/n,1/e):0:isNaN(n)?isNaN(e)?0:1:-1}function I5e(n){var e;return e=n.a[n.c-1&n.a.length-1],e==null?null:(n.c=n.c-1&n.a.length-1,$t(n.a,n.c,null),e)}function O5e(n){var e,t,i;for(i=0,t=n.length,e=0;e=1?Xr:Wf):t}function $5e(n){switch(u(v(n,(cn(),$l)),223).g){case 1:return new Spn;case 3:return new Lpn;default:return new Apn}}function ta(n){if(n.c)ta(n.c);else if(n.d)throw M(new Or("Stream already terminated, can't be modified or used"))}function L0(n,e,t){var i;return i=n.a.get(e),n.a.set(e,t===void 0?null:t),i===void 0?(++n.c,++n.b.g):++n.d,i}function x5e(n,e,t){var i,r;for(r=n.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),10),jk(t,u(sn(e,i.p),16)))return i;return null}function IY(n,e,t){var i;return i=0,e&&(vg(n.a)?i+=e.f.a/2:i+=e.f.b/2),t&&(vg(n.a)?i+=t.f.a/2:i+=t.f.b/2),i}function F5e(n,e,t){var i;i=t,!i&&(i=QV(new op,0)),i.Ug(PXn,2),yRn(n.b,e,i.eh(1)),YIe(n,e,i.eh(1)),eLe(e,i.eh(1)),i.Vg()}function OY(n,e,t){var i,r;return i=(B1(),r=new kE,r),aT(i,e),lT(i,t),n&&ve((!n.a&&(n.a=new ti(xo,n,5)),n.a),i),i}function ox(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (identifier: ",Er(e,n.k),e.a+=")",e.a)}function sx(n,e){var t;t=(n.Bb&kc)!=0,e?n.Bb|=kc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&it(n,new Rs(n,1,18,t,e))}function DY(n,e){var t;t=(n.Bb&kc)!=0,e?n.Bb|=kc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&it(n,new Rs(n,1,18,t,e))}function am(n,e){var t;t=(n.Bb&wh)!=0,e?n.Bb|=wh:n.Bb&=-16385,n.Db&4&&!(n.Db&1)&&it(n,new Rs(n,1,16,t,e))}function LY(n,e){var t;t=(n.Bb&hr)!=0,e?n.Bb|=hr:n.Bb&=-65537,n.Db&4&&!(n.Db&1)&&it(n,new Rs(n,1,20,t,e))}function NY(n){var e;return e=K(fs,gh,28,2,15,1),n-=hr,e[0]=(n>>10)+Ay&ui,e[1]=(n&1023)+56320&ui,ws(e,0,e.length)}function B5e(n){var e;return e=sw(n),e>34028234663852886e22?St:e<-34028234663852886e22?li:e}function nr(n,e){var t;return Vr(n)&&Vr(e)&&(t=n+e,Ty"+td(e.c):"e_"+mt(e),n.b&&n.c?td(n.b)+"->"+td(n.c):"e_"+mt(n))}function _5e(n,e){return An(e.b&&e.c?td(e.b)+"->"+td(e.c):"e_"+mt(e),n.b&&n.c?td(n.b)+"->"+td(n.c):"e_"+mt(n))}function N0(n,e){return Tf(),Ks(fa),y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:u0(isNaN(n),isNaN(e))}function El(){El=F,hU=new vC(Y5,0),Qj=new vC("POLYLINE",1),Bv=new vC("ORTHOGONAL",2),x3=new vC("SPLINES",3)}function _T(){_T=F,f1n=new uL("ASPECT_RATIO_DRIVEN",0),Oq=new uL("MAX_SCALE_DRIVEN",1),s1n=new uL("AREA_DRIVEN",2)}function H5e(n,e,t){var i;try{l6e(n,e,t)}catch(r){throw r=It(r),D(r,606)?(i=r,M(new NJ(i))):M(r)}return e}function q5e(n){var e,t,i;for(t=0,i=n.length;te&&i.Ne(n[c-1],n[c])>0;--c)s=n[c],$t(n,c,n[c-1]),$t(n,c-1,s)}function vn(n,e){var t,i,r,c,s;if(t=e.f,s1(n.c.d,t,e),e.g!=null)for(r=e.g,c=0,s=r.length;ce){bDn(t);break}}_7(t,e)}function X5e(n,e){var t,i,r;i=Pg(e),r=$(R(rw(i,(cn(),Ws)))),t=y.Math.max(0,r/2-.5),A5(e,t,1),nn(n,new LCn(e,t))}function V5e(n,e,t){var i;t.Ug("Straight Line Edge Routing",1),t.dh(e,Nrn),i=u(z(e,(Tg(),D2)),27),iGn(n,i),t.dh(e,DS)}function $Y(n,e){n.n.c.length==0&&nn(n.n,new NM(n.s,n.t,n.i)),nn(n.b,e),wZ(u(sn(n.n,n.n.c.length-1),209),e),RUn(n,e)}function v5(n){var e;this.a=(e=u(n.e&&n.e(),9),new _o(e,u(xs(e,e.length),9),0)),this.b=K(ki,Fn,1,this.a.a.length,5,1)}function Jr(n){var e;return Array.isArray(n)&&n.Tm===Q2?Xa(wo(n))+"@"+(e=mt(n)>>>0,e.toString(16)):n.toString()}function W5e(n,e){return n.h==My&&n.m==0&&n.l==0?(e&&(wa=Yc(0,0,0)),ZMn((B4(),fun))):(e&&(wa=Yc(n.l,n.m,n.h)),Yc(0,0,0))}function J5e(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function kBn(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function xY(n,e,t,i){switch(e){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return SY(n,e,t,i)}function HT(n,e){if(e==n.d)return n.e;if(e==n.e)return n.d;throw M(new Gn("Node "+e+" not part of edge "+n))}function Q5e(n,e){var t;if(t=uy(n.Dh(),e),D(t,102))return u(t,19);throw M(new Gn(ba+e+"' is not a valid reference"))}function Jo(n,e,t,i){if(e<0)nen(n,t,i);else{if(!t.rk())throw M(new Gn(ba+t.xe()+a8));u(t,69).wk().Ck(n,n.hi(),e,i)}}function eo(n){var e;if(n.b){if(eo(n.b),n.b.d!=n.c)throw M(new Bo)}else n.d.dc()&&(e=u(n.f.c.xc(n.e),16),e&&(n.d=e))}function Y5e(n){Bb();var e,t,i,r;for(e=n.o.b,i=u(u(ot(n.r,(en(),ae)),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r=t.e,r.b+=e}function Z5e(n){var e,t,i;for(this.a=new rh,i=new C(n);i.a=r)return e.c+t;return e.c+e.b.gc()}function e8e(n,e){p4();var t,i,r,c;for(i=DNn(n),r=e,x4(i,0,i.length,r),t=0;t0&&(i+=r,++t);return t>1&&(i+=n.d*(t-1)),i}function i8e(n){var e,t,i,r,c;return c=nnn(n),t=Z9(n.c),i=!t,i&&(r=new _a,bf(c,"knownLayouters",r),e=new hyn(r),qi(n.c,e)),c}function RY(n){var e,t,i;for(i=new Hl,i.a+="[",e=0,t=n.gc();e0&&(zn(e-1,n.length),n.charCodeAt(e-1)==58)&&!lx(n,O9,D9))}function KY(n,e){var t;return x(n)===x(e)?!0:D(e,92)?(t=u(e,92),n.e==t.e&&n.d==t.d&&I3e(n,t.a)):!1}function zp(n){switch(en(),n.g){case 4:return Xn;case 1:return Zn;case 3:return ae;case 2:return Wn;default:return sc}}function o8e(n){var e,t;if(n.b)return n.b;for(t=Uf?null:n.d;t;){if(e=Uf?null:t.b,e)return e;t=Uf?null:t.d}return l4(),Lun}function _Y(n){var e,t,i;for(i=$(R(n.a.of((He(),iO)))),t=new C(n.a.Sf());t.a>5,e=n&31,i=K(ye,_e,28,t+1,15,1),i[t]=1<3;)r*=10,--c;n=(n+(r>>1))/r|0}return i.i=n,!0}function Ot(n,e){var t,i,r;if(t=(n.i==null&&bh(n),n.i),i=e.Lj(),i!=-1){for(r=t.length;i=0;--i)for(e=t[i],r=0;r>1,this.k=e-1>>1}function j8e(n){YM(),u(n.of((He(),Ta)),181).Hc((io(),hO))&&(u(n.of(Ww),181).Fc((zu(),F3)),u(n.of(Ta),181).Mc(hO))}function ABn(n){var e,t;e=n.d==(Yp(),av),t=UZ(n),e&&!t||!e&&t?U(n.a,(cn(),Th),(Rh(),qj)):U(n.a,(cn(),Th),(Rh(),Hj))}function bx(){bx=F,ZE(),EI=(cn(),bb),Qte=Of(A(T(zq,1),yrn,149,0,[Mj,Ws,T2,db,qw,IH,Tv,Av,OH,G8,M2,Bd,A2]))}function E8e(n,e){var t;return t=u(Wr(n,qu(new ju,new yu,new Eu,A(T(xr,1),G,108,0,[(Gu(),Yr)]))),15),t.Qc(VSn(t.gc()))}function SBn(n,e){var t,i;if(i=new Q3(n.a.ad(e,!0)),i.a.gc()<=1)throw M(new rp);return t=i.a.ec().Kc(),t.Pb(),u(t.Pb(),39)}function C8e(n,e,t){var i,r;return i=$(n.p[e.i.p])+$(n.d[e.i.p])+e.n.b+e.a.b,r=$(n.p[t.i.p])+$(n.d[t.i.p])+t.n.b+t.a.b,r-i}function VY(n,e){var t;return n.i>0&&(e.lengthn.i&&$t(e,n.i,null),e}function UT(n){var e;return n.Db&64?w5(n):(e=new ls(w5(n)),e.a+=" (instanceClassName: ",Er(e,n.D),e.a+=")",e.a)}function GT(n){var e,t,i,r;for(r=0,t=0,i=n.length;t0?(n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=RHn(n,r,i,e),t!=-1):!1}function PBn(n,e){var t,i;n.a=nr(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d+=e,t=e-n.f,i=n.e+t,n.f=i-n.e-t,n.e=i}function WY(n,e){switch(e){case 3:A0(n,0);return;case 4:S0(n,0);return;case 5:eu(n,0);return;case 6:tu(n,0);return}vY(n,e)}function $0(n,e){switch(e.g){case 1:return Cp(n.j,(Ou(),$on));case 2:return Cp(n.j,(Ou(),Fon));default:return Dn(),Dn(),sr}}function JY(n){g0();var e;switch(e=n.Pc(),e.length){case 0:return qK;case 1:return new VL(Se(e[0]));default:return new PN(q5e(e))}}function IBn(n,e){n.Xj();try{n.d.bd(n.e++,e),n.f=n.d.j,n.g=-1}catch(t){throw t=It(t),D(t,77)?M(new Bo):M(t)}}function gx(){gx=F,MU=new Mvn,Gdn=new Tvn,zdn=new Avn,Xdn=new Svn,Vdn=new Pvn,Wdn=new Ivn,Jdn=new Ovn,Qdn=new Dvn,Ydn=new Lvn}function zT(n,e){vX();var t,i;return t=I7((RE(),RE(),C8)),i=null,e==t&&(i=u(Nc(oun,n),624)),i||(i=new WPn(n),e==t&&Dr(oun,n,i)),i}function OBn(n){cw();var e;return(n.q?n.q:(Dn(),Dn(),Wh))._b((cn(),lb))?e=u(v(n,lb),203):e=u(v(Hi(n),U8),203),e}function rw(n,e){var t,i;return i=null,kt(n,(cn(),yI))&&(t=u(v(n,yI),96),t.pf(e)&&(i=t.of(e))),i==null&&(i=v(Hi(n),e)),i}function DBn(n,e){var t,i,r;return D(e,44)?(t=u(e,44),i=t.ld(),r=tw(n.Rc(),i),sh(r,t.md())&&(r!=null||n.Rc()._b(i))):!1}function gf(n,e){var t,i,r;return n.f>0&&(n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=Nnn(n,r,i,e),t)?t.md():null}function Xc(n,e,t){var i,r,c;return n.Pj()?(i=n.i,c=n.Qj(),Ok(n,i,e),r=n.Ij(3,null,e,i,c),t?t.nj(r):t=r):Ok(n,n.i,e),t}function T8e(n,e,t){var i,r;return i=new ml(n.e,4,10,(r=e.c,D(r,90)?u(r,29):(On(),Is)),null,f1(n,e),!1),t?t.nj(i):t=i,t}function A8e(n,e,t){var i,r;return i=new ml(n.e,3,10,null,(r=e.c,D(r,90)?u(r,29):(On(),Is)),f1(n,e),!1),t?t.nj(i):t=i,t}function LBn(n){Bb();var e;return e=new rr(u(n.e.of((He(),_2)),8)),n.B.Hc((io(),Kv))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function ia(n){dh();var e,t;return t=Ae(n),e=Ae(U1(n,32)),e!=0?new _On(t,e):t>10||t<0?new gl(1,t):kQn[t]}function Fk(n,e){var t;return Vr(n)&&Vr(e)&&(t=n%e,Ty=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function Rk(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.Ne(e,c.d),t&&i==0)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function L8e(n,e,t,i){var r,c,s;return r=!1,xOe(n.f,t,i)&&(e9e(n.f,n.a[e][t],n.a[e][i]),c=n.a[e],s=c[i],c[i]=c[t],c[t]=s,r=!0),r}function FBn(n,e,t){var i,r,c,s;for(r=u(ee(n.b,t),183),i=0,s=new C(e.j);s.a>5,e&=31,r=n.d+t+(e==0?0:1),i=K(ye,_e,28,r,15,1),Oye(i,n.a,t,e),c=new Ya(n.e,r,i),V6(c),c}function N8e(n,e){var t,i,r;for(i=new ie(ce(Qt(n).a.Kc(),new En));pe(i);)if(t=u(fe(i),18),r=t.d.i,r.c==e)return!1;return!0}function ZY(n,e,t){var i,r,c,s,f;return s=n.k,f=e.k,i=t[s.g][f.g],r=R(rw(n,i)),c=R(rw(e,i)),y.Math.max((Jn(r),r),(Jn(c),c))}function $8e(){return Error.stackTraceLimit>0?(y.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function x8e(n,e){return Tf(),Tf(),Ks(fa),(y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:u0(isNaN(n),isNaN(e)))>0}function nZ(n,e){return Tf(),Tf(),Ks(fa),(y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:u0(isNaN(n),isNaN(e)))<0}function RBn(n,e){return Tf(),Tf(),Ks(fa),(y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:u0(isNaN(n),isNaN(e)))<=0}function mx(n,e){for(var t=0;!e[t]||e[t]=="";)t++;for(var i=e[t++];t0&&this.b>0&&(this.g=rM(this.c,this.b,this.a))}function F8e(n,e){var t=n.a,i;e=String(e),t.hasOwnProperty(e)&&(i=t[e]);var r=(K$(),WK)[typeof i],c=r?r(i):bY(typeof i);return c}function bm(n){var e,t,i;if(i=null,e=Eh in n.a,t=!e,t)throw M(new eh("Every element must have an id."));return i=Zp(dl(n,Eh)),i}function x0(n){var e,t;for(t=l_n(n),e=null;n.c==2;)Ze(n),e||(e=(nt(),nt(),new T6(2)),pd(e,t),t=e),t.Jm(l_n(n));return t}function VT(n,e){var t,i,r;return n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=Nnn(n,r,i,e),t?(X$n(n,t),t.md()):null}function zBn(n,e){return n.e>e.e?1:n.ee.d?n.e:n.d=48&&n<48+y.Math.min(10,10)?n-48:n>=97&&n<97?n-97+10:n>=65&&n<65?n-65+10:-1}function B8e(n,e){if(e.c==n)return e.d;if(e.d==n)return e.c;throw M(new Gn("Input edge is not connected to the input port."))}function R8e(n){if(JT(Zm,n))return _n(),uv;if(JT(cK,n))return _n(),ga;throw M(new Gn("Expecting true or false"))}function iZ(n){switch(typeof n){case nB:return t1(n);case ltn:return pp(n);case i3:return AAn(n);default:return n==null?0:f0(n)}}function ah(n,e){if(n.a<0)throw M(new Or("Did not call before(...) or after(...) before calling add(...)."));return QX(n,n.a,e),n}function rZ(n){return $M(),D(n,162)?u(ee(fE,MQn),294).Rg(n):Zc(fE,wo(n))?u(ee(fE,wo(n)),294).Rg(n):null}function iu(n){var e,t;return n.Db&32||(t=(e=u(Un(n,16),29),se(e||n.ii())-se(n.ii())),t!=0&&Xp(n,32,K(ki,Fn,1,t,5,1))),n}function Xp(n,e,t){var i;n.Db&e?t==null?jCe(n,e):(i=Rx(n,e),i==-1?n.Eb=t:$t(cd(n.Eb),i,t)):t!=null&>e(n,e,t)}function K8e(n,e,t,i){var r,c;e.c.length!=0&&(r=$Me(t,i),c=xEe(e),qt(fT(new Tn(null,new In(c,1)),new D3n),new CIn(n,t,r,i)))}function _8e(n,e){var t,i,r,c;return i=n.a.length-1,t=e-n.b&i,c=n.c-e&i,r=n.c-n.b&i,jAn(t=c?(R6e(n,e),-1):(B6e(n,e),1)}function WT(n){var e,t,i;if(i=n.Jh(),!i)for(e=0,t=n.Ph();t;t=t.Ph()){if(++e>PB)return t.Qh();if(i=t.Jh(),i||t==n)break}return i}function VBn(n,e){var t;return x(e)===x(n)?!0:!D(e,21)||(t=u(e,21),t.gc()!=n.gc())?!1:n.Ic(t)}function H8e(n,e){return n.ee.e?1:n.fe.f?1:mt(n)-mt(e)}function JT(n,e){return Jn(n),e==null?!1:An(n,e)?!0:n.length==e.length&&An(n.toLowerCase(),e.toLowerCase())}function Ml(n){var e,t;return Ec(n,-129)>0&&Ec(n,128)<0?(YSn(),e=Ae(n)+128,t=gun[e],!t&&(t=gun[e]=new vG(n)),t):new vG(n)}function dd(){dd=F,Ow=new lC(kh,0),Ion=new lC("INSIDE_PORT_SIDE_GROUPS",1),P_=new lC("GROUP_MODEL_ORDER",2),I_=new lC(nin,3)}function q8e(n){var e;return n.b||xhe(n,(e=$ae(n.e,n.a),!e||!An(cK,gf((!e.b&&(e.b=new lo((On(),ar),pc,e)),e.b),"qualified")))),n.c}function U8e(n,e){var t,i;for(t=(zn(e,n.length),n.charCodeAt(e)),i=e+1;i2e3&&(hQn=n,uP=y.setTimeout(_he,10))),cP++==0?(ime((lz(),uun)),!0):!1}function r9e(n,e,t){var i;(DQn?(o8e(n),!0):LQn||$Qn?(l4(),!0):NQn&&(l4(),!1))&&(i=new lSn(e),i.b=t,aje(n,i))}function kx(n,e){var t;t=!n.A.Hc((go(),Gd))||n.q==(Oi(),qc),n.u.Hc((zu(),Fl))?t?XDe(n,e):UGn(n,e):n.u.Hc(Ia)&&(t?dDe(n,e):czn(n,e))}function nRn(n){var e;x(z(n,(He(),R2)))===x((jl(),uO))&&(At(n)?(e=u(z(At(n),R2),346),ht(n,R2,e)):ht(n,R2,j9))}function c9e(n){var e,t;return kt(n.d.i,(cn(),Ev))?(e=u(v(n.c.i,Ev),17),t=u(v(n.d.i,Ev),17),jc(e.a,t.a)>0):!1}function eRn(n,e,t){return new Ho(y.Math.min(n.a,e.a)-t/2,y.Math.min(n.b,e.b)-t/2,y.Math.abs(n.a-e.a)+t,y.Math.abs(n.b-e.b)+t)}function tRn(n){var e;this.d=new Z,this.j=new Li,this.g=new Li,e=n.g.b,this.f=u(v(Hi(e),(cn(),Do)),88),this.e=$(R(nA(e,qw)))}function iRn(n){this.d=new Z,this.e=new Ql,this.c=K(ye,_e,28,(en(),A(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn])).length,15,1),this.b=n}function oZ(n,e,t){var i;switch(i=t[n.g][e],n.g){case 1:case 3:return new V(0,i);case 2:case 4:return new V(i,0);default:return null}}function rRn(n,e,t){var i,r;r=u(z7(e.f),205);try{r.rf(n,t),fIn(e.f,r)}catch(c){throw c=It(c),D(c,103)?(i=c,M(i)):M(c)}}function cRn(n,e,t){var i,r,c,s,f,h;return i=null,f=Qen(G4(),e),c=null,f&&(r=null,h=Wen(f,t),s=null,h!=null&&(s=n.qf(f,h)),r=s,c=r),i=c,i}function yx(n,e,t,i){var r;if(r=n.length,e>=r)return r;for(e=e>0?e:0;ei&&$t(e,i,null),e}function uRn(n,e){var t,i;for(i=n.a.length,e.lengthi&&$t(e,i,null),e}function wm(n,e){var t,i;if(++n.j,e!=null&&(t=(i=n.a.Cb,D(i,99)?u(i,99).th():null),hCe(e,t))){Xp(n.a,4,t);return}Xp(n.a,4,u(e,129))}function u9e(n){var e;if(n==null)return null;if(e=lMe(Fc(n,!0)),e==null)throw M(new kD("Invalid hexBinary value: '"+n+"'"));return e}function QT(n,e,t){var i;e.a.length>0&&(nn(n.b,new ASn(e.a,t)),i=e.a.length,0i&&(e.a+=PTn(K(fs,gh,28,-i,15,1))))}function oRn(n,e,t){var i,r,c;if(!t[e.d])for(t[e.d]=!0,r=new C(xg(e));r.a=n.b>>1)for(i=n.c,t=n.b;t>e;--t)i=i.b;else for(i=n.a.a,t=0;t=0?n.Wh(r):hF(n,i)):t<0?hF(n,i):u(i,69).wk().Bk(n,n.hi(),t)}function lRn(n){var e,t,i;for(i=(!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),n.o),t=i.c.Kc();t.e!=t.i.gc();)e=u(t.Yj(),44),e.md();return ik(i)}function rn(n){var e;if(D(n.a,4)){if(e=rZ(n.a),e==null)throw M(new Or(NVn+n.b+"'. "+LVn+(ll(hE),hE.k)+acn));return e}else return n.a}function b9e(n,e){var t,i;if(n.j.length!=e.j.length)return!1;for(t=0,i=n.j.length;t=64&&e<128&&(r=lf(r,Bs(1,e-64)));return r}function nA(n,e){var t,i;return i=null,kt(n,(He(),N3))&&(t=u(v(n,N3),96),t.pf(e)&&(i=t.of(e))),i==null&&Hi(n)&&(i=v(Hi(n),e)),i}function w9e(n,e){var t;return t=u(v(n,(cn(),Fr)),75),yL(e,LZn)?t?vo(t):(t=new Mu,U(n,Fr,t)):t&&U(n,Fr,null),t}function j5(){j5=F,hon=(He(),Han),g_=jan,DYn=x2,fon=C1,xYn=(aA(),Hun),$Yn=Kun,FYn=Uun,NYn=Run,LYn=(Q$(),uon),w_=PYn,son=IYn,pP=OYn}function eA(n){switch(Nz(),this.c=new Z,this.d=n,n.g){case 0:case 2:this.a=HW(Pon),this.b=St;break;case 3:case 1:this.a=Pon,this.b=li}}function g9e(n){var e;Ep(u(v(n,(cn(),Kt)),101))&&(e=n.b,nHn((Ln(0,e.c.length),u(e.c[0],30))),nHn(u(sn(e,e.c.length-1),30)))}function p9e(n,e){e.Ug("Self-Loop post-processing",1),qt(ut(ut(rc(new Tn(null,new In(n.b,16)),new o2n),new s2n),new f2n),new h2n),e.Vg()}function aRn(n,e,t){var i,r;if(n.c)eu(n.c,n.c.i+e),tu(n.c,n.c.j+t);else for(r=new C(n.b);r.a=0&&(t.d=n.t);break;case 3:n.t>=0&&(t.a=n.t)}n.C&&(t.b=n.C.b,t.c=n.C.c)}function E5(){E5=F,Dhn=new l7(jrn,0),KH=new l7(sR,1),_H=new l7("LINEAR_SEGMENTS",2),X8=new l7("BRANDES_KOEPF",3),V8=new l7(sVn,4)}function C5(){C5=F,sj=new fC(eS,0),wP=new fC(HB,1),gP=new fC(qB,2),fj=new fC(UB,3),sj.a=!1,wP.a=!0,gP.a=!1,fj.a=!0}function Vp(){Vp=F,cj=new sC(eS,0),rj=new sC(HB,1),uj=new sC(qB,2),oj=new sC(UB,3),cj.a=!1,rj.a=!0,uj.a=!1,oj.a=!0}function Wp(n,e,t,i){var r;return t>=0?n.Sh(e,t,i):(n.Ph()&&(i=(r=n.Fh(),r>=0?n.Ah(i):n.Ph().Th(n,-1-r,null,i))),n.Ch(e,t,i))}function sZ(n,e){switch(e){case 7:!n.e&&(n.e=new Nn(Vt,n,7,4)),me(n.e);return;case 8:!n.d&&(n.d=new Nn(Vt,n,8,5)),me(n.d);return}WY(n,e)}function ht(n,e,t){return t==null?(!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),VT(n.o,e)):(!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),Gk(n.o,e,t)),n}function gRn(n,e){Dn();var t,i,r,c;for(t=n,c=e,D(n,21)&&!D(e,21)&&(t=e,c=n),r=t.Kc();r.Ob();)if(i=r.Pb(),c.Hc(i))return!1;return!0}function j9e(n,e,t,i){if(e.at.b)return!0}return!1}function Tx(n,e){return Ai(n)?!!iQn[e]:n.Sm?!!n.Sm[e]:$b(n)?!!tQn[e]:Nb(n)?!!eQn[e]:!1}function E9e(n){var e;e=n.a;do e=u(fe(new ie(ce(ji(e).a.Kc(),new En))),18).c.i,e.k==(Vn(),Mi)&&n.b.Fc(e);while(e.k==(Vn(),Mi));n.b=Qo(n.b)}function pRn(n,e){var t,i,r;for(r=n,i=new ie(ce(ji(e).a.Kc(),new En));pe(i);)t=u(fe(i),18),t.c.i.c&&(r=y.Math.max(r,t.c.i.c.p));return r}function C9e(n,e){var t,i,r;for(r=0,i=u(u(ot(n.r,e),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r+=t.d.d+t.b.Mf().b+t.d.a,i.Ob()&&(r+=n.w);return r}function M9e(n,e){var t,i,r;for(r=0,i=u(u(ot(n.r,e),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r+=t.d.b+t.b.Mf().a+t.d.c,i.Ob()&&(r+=n.w);return r}function mRn(n){var e,t,i,r;if(i=0,r=aw(n),r.c.length==0)return 1;for(t=new C(r);t.a=0?n.Lh(s,t,!0):K0(n,c,t)):u(c,69).wk().yk(n,n.hi(),r,t,i)}function P9e(n,e,t,i){var r,c;c=e.pf((He(),K2))?u(e.of(K2),21):n.j,r=d5e(c),r!=(VA(),l_)&&(t&&!eZ(r)||dnn(aMe(n,r,i),e))}function I9e(n){switch(n.g){case 1:return D0(),ij;case 3:return D0(),tj;case 2:return D0(),d_;case 4:return D0(),a_;default:return null}}function O9e(n,e,t){if(n.e)switch(n.b){case 1:yge(n.c,e,t);break;case 0:jge(n.c,e,t)}else RDn(n.c,e,t);n.a[e.p][t.p]=n.c.i,n.a[t.p][e.p]=n.c.e}function vRn(n){var e,t;if(n==null)return null;for(t=K(Qh,J,199,n.length,0,2),e=0;e=0)return r;if(n.ol()){for(i=0;i=r)throw M(new Kb(e,r));if(n.Si()&&(i=n.dd(t),i>=0&&i!=e))throw M(new Gn(Xy));return n.Xi(e,t)}function fZ(n,e){if(this.a=u(Se(n),253),this.b=u(Se(e),253),n.Ed(e)>0||n==(dD(),_K)||e==(bD(),HK))throw M(new Gn("Invalid range: "+HDn(n,e)))}function kRn(n){var e,t;for(this.b=new Z,this.c=n,this.a=!1,t=new C(n.a);t.a0),(e&-e)==e)return wi(e*to(n,31)*4656612873077393e-25);do t=to(n,31),i=t%e;while(t-i+(e-1)<0);return wi(i)}function F9e(n,e,t){switch(t.g){case 1:n.a=e.a/2,n.b=0;break;case 2:n.a=e.a,n.b=e.b/2;break;case 3:n.a=e.a/2,n.b=e.b;break;case 4:n.a=0,n.b=e.b/2}}function Kk(n,e,t,i){var r,c;for(r=e;r1&&(c=L9e(n,e)),c}function ERn(n){var e;return e=$(R(z(n,(He(),Jj))))*y.Math.sqrt((!n.a&&(n.a=new q(Ye,n,10,11)),n.a).i),new V(e,e/$(R(z(n,rO))))}function Sx(n){var e;return n.f&&n.f.Vh()&&(e=u(n.f,54),n.f=u(ea(n,e),84),n.f!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,9,8,e,n.f))),n.f}function Px(n){var e;return n.i&&n.i.Vh()&&(e=u(n.i,54),n.i=u(ea(n,e),84),n.i!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,9,7,e,n.i))),n.i}function br(n){var e;return n.b&&n.b.Db&64&&(e=n.b,n.b=u(ea(n,e),19),n.b!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,9,21,e,n.b))),n.b}function uA(n,e){var t,i,r;n.d==null?(++n.e,++n.f):(i=e.Bi(),uTe(n,n.f+1),r=(i&et)%n.d.length,t=n.d[r],!t&&(t=n.d[r]=n.dk()),t.Fc(e),++n.f)}function aZ(n,e,t){var i;return e.tk()?!1:e.Ik()!=-2?(i=e.ik(),i==null?t==null:rt(i,t)):e.qk()==n.e.Dh()&&t==null}function oA(){var n;Co(16,$zn),n=oxn(16),this.b=K(UK,Ey,302,n,0,1),this.c=K(UK,Ey,302,n,0,1),this.a=null,this.e=null,this.i=0,this.f=n-1,this.g=0}function Tl(n){mV.call(this),this.k=(Vn(),zt),this.j=(Co(6,mw),new Gc(6)),this.b=(Co(2,mw),new Gc(2)),this.d=new sD,this.f=new ZG,this.a=n}function R9e(n){var e,t;n.c.length<=1||(e=Sqn(n,(en(),ae)),b_n(n,u(e.a,17).a,u(e.b,17).a),t=Sqn(n,Wn),b_n(n,u(t.a,17).a,u(t.b,17).a))}function K9e(n,e,t){var i,r;for(r=n.a.b,i=r.c.length;i102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function Nx(n,e){if(n==null)throw M(new fp("null key in entry: null="+e));if(e==null)throw M(new fp("null value in entry: "+n+"=null"))}function q9e(n,e){for(var t,i;n.Ob();)if(!e.Ob()||(t=n.Pb(),i=e.Pb(),!(x(t)===x(i)||t!=null&&rt(t,i))))return!1;return!e.Ob()}function TRn(n,e){var t;return t=A(T(Pi,1),Tr,28,15,[Z$(n.a[0],e),Z$(n.a[1],e),Z$(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function ARn(n,e){var t;return t=A(T(Pi,1),Tr,28,15,[$T(n.a[0],e),$T(n.a[1],e),$T(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function bZ(n,e,t){Ep(u(v(e,(cn(),Kt)),101))||(SJ(n,e,h1(e,t)),SJ(n,e,h1(e,(en(),ae))),SJ(n,e,h1(e,Xn)),Dn(),Yt(e.j,new L7n(n)))}function SRn(n){var e,t;for(n.c||sOe(n),t=new Mu,e=new C(n.a),E(e);e.a0&&(zn(0,e.length),e.charCodeAt(0)==43)?(zn(1,e.length+1),e.substr(1)):e))}function i7e(n){var e;return n==null?null:new H1((e=Fc(n,!0),e.length>0&&(zn(0,e.length),e.charCodeAt(0)==43)?(zn(1,e.length+1),e.substr(1)):e))}function gZ(n,e,t,i,r,c,s,f){var h,l;i&&(h=i.a[0],h&&gZ(n,e,t,h,r,c,s,f),qx(n,t,i.d,r,c,s,f)&&e.Fc(i),l=i.a[1],l&&gZ(n,e,t,l,r,c,s,f))}function Kg(n,e,t){try{return c0(C$(n,e,t),1)}catch(i){throw i=It(i),D(i,333)?M(new Ir(GB+n.o+"*"+n.p+zB+e+ur+t+XB)):M(i)}}function LRn(n,e,t){try{return c0(C$(n,e,t),0)}catch(i){throw i=It(i),D(i,333)?M(new Ir(GB+n.o+"*"+n.p+zB+e+ur+t+XB)):M(i)}}function NRn(n,e,t){try{return c0(C$(n,e,t),2)}catch(i){throw i=It(i),D(i,333)?M(new Ir(GB+n.o+"*"+n.p+zB+e+ur+t+XB)):M(i)}}function $Rn(n,e){if(n.g==-1)throw M(new Cu);n.Xj();try{n.d.hd(n.g,e),n.f=n.d.j}catch(t){throw t=It(t),D(t,77)?M(new Bo):M(t)}}function r7e(n){var e,t,i,r,c;for(i=new C(n.b);i.ac&&$t(e,c,null),e}function c7e(n,e){var t,i;if(i=n.gc(),e==null){for(t=0;t0&&(h+=r),l[a]=s,s+=f*(h+i)}function FRn(n){var e,t,i;for(i=n.f,n.n=K(Pi,Tr,28,i,15,1),n.d=K(Pi,Tr,28,i,15,1),e=0;e0?n.c:0),++r;n.b=i,n.d=c}function HRn(n,e){var t;return t=A(T(Pi,1),Tr,28,15,[lZ(n,(wf(),bc),e),lZ(n,Wc,e),lZ(n,wc,e)]),n.f&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function d7e(n,e,t){var i;try{xA(n,e+n.j,t+n.k,!1,!0)}catch(r){throw r=It(r),D(r,77)?(i=r,M(new Ir(i.g+iS+e+ur+t+")."))):M(r)}}function b7e(n,e,t){var i;try{xA(n,e+n.j,t+n.k,!0,!1)}catch(r){throw r=It(r),D(r,77)?(i=r,M(new Ir(i.g+iS+e+ur+t+")."))):M(r)}}function qRn(n){var e;kt(n,(cn(),hb))&&(e=u(v(n,hb),21),e.Hc((lw(),Qs))?(e.Mc(Qs),e.Fc(Ys)):e.Hc(Ys)&&(e.Mc(Ys),e.Fc(Qs)))}function URn(n){var e;kt(n,(cn(),hb))&&(e=u(v(n,hb),21),e.Hc((lw(),nf))?(e.Mc(nf),e.Fc(Ms)):e.Hc(Ms)&&(e.Mc(Ms),e.Fc(nf)))}function Kx(n,e,t,i){var r,c,s,f;return n.a==null&&gje(n,e),s=e.b.j.c.length,c=t.d.p,f=i.d.p,r=f-1,r<0&&(r=s-1),c<=r?n.a[r]-n.a[c]:n.a[s-1]-n.a[c]+n.a[r]}function w7e(n){var e,t;if(!n.b)for(n.b=RM(u(n.f,27).kh().i),t=new ne(u(n.f,27).kh());t.e!=t.i.gc();)e=u(ue(t),135),nn(n.b,new pD(e));return n.b}function g7e(n){var e,t;if(!n.e)for(n.e=RM(mN(u(n.f,27)).i),t=new ne(mN(u(n.f,27)));t.e!=t.i.gc();)e=u(ue(t),123),nn(n.e,new Fkn(e));return n.e}function GRn(n){var e,t;if(!n.a)for(n.a=RM(TM(u(n.f,27)).i),t=new ne(TM(u(n.f,27)));t.e!=t.i.gc();)e=u(ue(t),27),nn(n.a,new ML(n,e));return n.a}function B0(n){var e;if(!n.C&&(n.D!=null||n.B!=null))if(e=iDe(n),e)n.hl(e);else try{n.hl(null)}catch(t){if(t=It(t),!D(t,63))throw M(t)}return n.C}function p7e(n){switch(n.q.g){case 5:wKn(n,(en(),Xn)),wKn(n,ae);break;case 4:mGn(n,(en(),Xn)),mGn(n,ae);break;default:k_n(n,(en(),Xn)),k_n(n,ae)}}function m7e(n){switch(n.q.g){case 5:gKn(n,(en(),Zn)),gKn(n,Wn);break;case 4:vGn(n,(en(),Zn)),vGn(n,Wn);break;default:y_n(n,(en(),Zn)),y_n(n,Wn)}}function _g(n,e){var t,i,r;for(r=new Li,i=n.Kc();i.Ob();)t=u(i.Pb(),36),Am(t,r.a,0),r.a+=t.f.a+e,r.b=y.Math.max(r.b,t.f.b);return r.b>0&&(r.b+=e),r}function hA(n,e){var t,i,r;for(r=new Li,i=n.Kc();i.Ob();)t=u(i.Pb(),36),Am(t,0,r.b),r.b+=t.f.b+e,r.a=y.Math.max(r.a,t.f.a);return r.a>0&&(r.a+=e),r}function zRn(n){var e,t,i;for(i=et,t=new C(n.a);t.a>16==6?n.Cb.Th(n,5,Ef,e):(i=br(u($n((t=u(Un(n,16),29),t||n.ii()),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function v7e(n){I4();var e=n.e;if(e&&e.stack){var t=e.stack,i=e+` +`;return t.substring(0,i.length)==i&&(t=t.substring(i.length)),t.split(` +`)}return[]}function k7e(n){var e;return e=(J$n(),wQn),e[n>>>28]|e[n>>24&15]<<4|e[n>>20&15]<<8|e[n>>16&15]<<12|e[n>>12&15]<<16|e[n>>8&15]<<20|e[n>>4&15]<<24|e[n&15]<<28}function WRn(n){var e,t,i;n.b==n.c&&(i=n.a.length,t=JQ(y.Math.max(8,i))<<1,n.b!=0?(e=xs(n.a,t),lxn(n,e,i),n.a=e,n.b=0):Ab(n.a,t),n.c=i)}function y7e(n,e){var t;return t=n.b,t.pf((He(),oo))?t.ag()==(en(),Wn)?-t.Mf().a-$(R(t.of(oo))):e+$(R(t.of(oo))):t.ag()==(en(),Wn)?-t.Mf().a:e}function Hk(n){var e;return n.b.c.length!=0&&u(sn(n.b,0),72).a?u(sn(n.b,0),72).a:(e=vN(n),e??""+(n.c?qr(n.c.a,n,0):-1))}function lA(n){var e;return n.f.c.length!=0&&u(sn(n.f,0),72).a?u(sn(n.f,0),72).a:(e=vN(n),e??""+(n.i?qr(n.i.j,n,0):-1))}function j7e(n,e){var t,i;if(e<0||e>=n.gc())return null;for(t=e;t0?n.c:0),r=y.Math.max(r,e.d),++i;n.e=c,n.b=r}function C7e(n){var e,t;if(!n.b)for(n.b=RM(u(n.f,123).kh().i),t=new ne(u(n.f,123).kh());t.e!=t.i.gc();)e=u(ue(t),135),nn(n.b,new pD(e));return n.b}function M7e(n,e){var t,i,r;if(e.dc())return p4(),p4(),lE;for(t=new DAn(n,e.gc()),r=new ne(n);r.e!=r.i.gc();)i=ue(r),e.Hc(i)&&ve(t,i);return t}function kZ(n,e,t,i){return e==0?i?(!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),n.o):(!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),ik(n.o)):tA(n,e,t,i)}function Hx(n){var e,t;if(n.rb)for(e=0,t=n.rb.i;e>22),r+=i>>22,r<0)?!1:(n.l=t&ro,n.m=i&ro,n.h=r&Il,!0)}function qx(n,e,t,i,r,c,s){var f,h;return!(e.Te()&&(h=n.a.Ne(t,i),h<0||!r&&h==0)||e.Ue()&&(f=n.a.Ne(t,c),f>0||!s&&f==0))}function P7e(n,e){rm();var t;if(t=n.j.g-e.j.g,t!=0)return 0;switch(n.j.g){case 2:return fx(e,jsn)-fx(n,jsn);case 4:return fx(n,ysn)-fx(e,ysn)}return 0}function I7e(n){switch(n.g){case 0:return Z_;case 1:return nH;case 2:return eH;case 3:return tH;case 4:return JP;case 5:return iH;default:return null}}function $r(n,e,t){var i,r;return i=(r=new lD,ad(r,e),zc(r,t),ve((!n.c&&(n.c=new q(vb,n,12,10)),n.c),r),r),e1(i,0),Zb(i,1),u1(i,!0),c1(i,!0),i}function Jp(n,e){var t,i;if(e>=n.i)throw M(new aL(e,n.i));return++n.j,t=n.g[e],i=n.i-e-1,i>0&&Ic(n.g,e+1,n.g,e,i),$t(n.g,--n.i,null),n.Qi(e,t),n.Ni(),t}function JRn(n,e){var t,i;return n.Db>>16==17?n.Cb.Th(n,21,As,e):(i=br(u($n((t=u(Un(n,16),29),t||n.ii()),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function O7e(n){var e,t,i,r;for(Dn(),Yt(n.c,n.a),r=new C(n.c);r.at.a.c.length))throw M(new Gn("index must be >= 0 and <= layer node count"));n.c&&du(n.c.a,n),n.c=t,t&&a0(t.a,e,n)}function eKn(n,e){var t,i,r;for(i=new ie(ce(Cl(n).a.Kc(),new En));pe(i);)return t=u(fe(i),18),r=u(e.Kb(t),10),new ME(Se(r.n.b+r.o.b/2));return Qv(),Qv(),KK}function tKn(n,e){this.c=new de,this.a=n,this.b=e,this.d=u(v(n,(W(),E2)),312),x(v(n,(cn(),uhn)))===x((ok(),QP))?this.e=new Qyn:this.e=new Jyn}function T5(n,e){var t,i;return i=null,n.pf((He(),N3))&&(t=u(n.of(N3),96),t.pf(e)&&(i=t.of(e))),i==null&&n.Tf()&&(i=n.Tf().of(e)),i==null&&(i=rn(e)),i}function Ux(n,e){var t,i;t=n.fd(e);try{return i=t.Pb(),t.Qb(),i}catch(r){throw r=It(r),D(r,112)?M(new Ir("Can't remove element "+e)):M(r)}}function R7e(n,e){var t,i,r;if(i=new WE,r=new ZQ(i.q.getFullYear()-ha,i.q.getMonth(),i.q.getDate()),t=JPe(n,e,r),t==0||t0?e:0),++t;return new V(i,r)}function MZ(n,e){var t,i;return n.Db>>16==6?n.Cb.Th(n,6,Vt,e):(i=br(u($n((t=u(Un(n,16),29),t||(Cc(),bO)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function TZ(n,e){var t,i;return n.Db>>16==7?n.Cb.Th(n,1,uE,e):(i=br(u($n((t=u(Un(n,16),29),t||(Cc(),Sdn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function AZ(n,e){var t,i;return n.Db>>16==9?n.Cb.Th(n,9,Ye,e):(i=br(u($n((t=u(Un(n,16),29),t||(Cc(),Idn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function cKn(n,e){var t,i;return n.Db>>16==5?n.Cb.Th(n,9,EO,e):(i=br(u($n((t=u(Un(n,16),29),t||(On(),S1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function uKn(n,e){var t,i;return n.Db>>16==7?n.Cb.Th(n,6,Ef,e):(i=br(u($n((t=u(Un(n,16),29),t||(On(),I1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function SZ(n,e){var t,i;return n.Db>>16==3?n.Cb.Th(n,0,sE,e):(i=br(u($n((t=u(Un(n,16),29),t||(On(),A1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function oKn(){this.a=new avn,this.g=new oA,this.j=new oA,this.b=new de,this.d=new oA,this.i=new oA,this.k=new de,this.c=new de,this.e=new de,this.f=new de}function H7e(n,e,t){var i,r,c;for(t<0&&(t=0),c=n.i,r=t;rPB)return pm(n,i);if(i==n)return!0}}return!1}function U7e(n){switch(RC(),n.q.g){case 5:U_n(n,(en(),Xn)),U_n(n,ae);break;case 4:GHn(n,(en(),Xn)),GHn(n,ae);break;default:VGn(n,(en(),Xn)),VGn(n,ae)}}function G7e(n){switch(RC(),n.q.g){case 5:fHn(n,(en(),Zn)),fHn(n,Wn);break;case 4:dRn(n,(en(),Zn)),dRn(n,Wn);break;default:WGn(n,(en(),Zn)),WGn(n,Wn)}}function z7e(n){var e,t;e=u(v(n,(Us(),nZn)),17),e?(t=e.a,t==0?U(n,(Q1(),jP),new dx):U(n,(Q1(),jP),new qM(t))):U(n,(Q1(),jP),new qM(1))}function X7e(n,e){var t;switch(t=n.i,e.g){case 1:return-(n.n.b+n.o.b);case 2:return n.n.a-t.o.a;case 3:return n.n.b-t.o.b;case 4:return-(n.n.a+n.o.a)}return 0}function V7e(n,e){switch(n.g){case 0:return e==(Yo(),ya)?HP:qP;case 1:return e==(Yo(),ya)?HP:bj;case 2:return e==(Yo(),ya)?bj:qP;default:return bj}}function Uk(n,e){var t,i,r;for(du(n.a,e),n.e-=e.r+(n.a.c.length==0?0:n.c),r=$rn,i=new C(n.a);i.a>16==3?n.Cb.Th(n,12,Ye,e):(i=br(u($n((t=u(Un(n,16),29),t||(Cc(),Adn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function IZ(n,e){var t,i;return n.Db>>16==11?n.Cb.Th(n,10,Ye,e):(i=br(u($n((t=u(Un(n,16),29),t||(Cc(),Pdn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function sKn(n,e){var t,i;return n.Db>>16==10?n.Cb.Th(n,11,As,e):(i=br(u($n((t=u(Un(n,16),29),t||(On(),P1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function fKn(n,e){var t,i;return n.Db>>16==10?n.Cb.Th(n,12,Ss,e):(i=br(u($n((t=u(Un(n,16),29),t||(On(),ig)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function gs(n){var e;return!(n.Bb&1)&&n.r&&n.r.Vh()&&(e=u(n.r,54),n.r=u(ea(n,e),142),n.r!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,9,8,e,n.r))),n.r}function Gx(n,e,t){var i;return i=A(T(Pi,1),Tr,28,15,[tnn(n,(wf(),bc),e,t),tnn(n,Wc,e,t),tnn(n,wc,e,t)]),n.f&&(i[0]=y.Math.max(i[0],i[2]),i[2]=i[0]),i}function W7e(n,e){var t,i,r;if(r=v9e(n,e),r.c.length!=0)for(Yt(r,new Sgn),t=r.c.length,i=0;i>19,l=e.h>>19,h!=l?l-h:(r=n.h,f=e.h,r!=f?r-f:(i=n.m,s=e.m,i!=s?i-s:(t=n.l,c=e.l,t-c)))}function aA(){aA=F,Gun=(NA(),f_),Uun=new Mn(Ptn,Gun),qun=(cT(),s_),Hun=new Mn(Itn,qun),_un=(YT(),o_),Kun=new Mn(Otn,_un),Run=new Mn(Dtn,(_n(),!0))}function A5(n,e,t){var i,r;i=e*t,D(n.g,154)?(r=xp(n),r.f.d?r.f.a||(n.d.a+=i+_f):(n.d.d-=i+_f,n.d.a+=i+_f)):D(n.g,10)&&(n.d.d-=i,n.d.a+=2*i)}function hKn(n,e,t){var i,r,c,s,f;for(r=n[t.g],f=new C(e.d);f.a0?n.b:0),++t;e.b=i,e.e=r}function lKn(n){var e,t,i;if(i=n.b,tCn(n.i,i.length)){for(t=i.length*2,n.b=K(UK,Ey,302,t,0,1),n.c=K(UK,Ey,302,t,0,1),n.f=t-1,n.i=0,e=n.a;e;e=e.c)Zk(n,e,e);++n.g}}function tke(n,e,t,i){var r,c,s,f;for(r=0;rs&&(f=s/i),r>c&&(h=c/r),ch(n,y.Math.min(f,h)),n}function rke(){KA();var n,e;try{if(e=u(_Z((R1(),Ps),ev),2113),e)return e}catch(t){if(t=It(t),D(t,103))n=t,IW((Ie(),n));else throw M(t)}return new svn}function cke(){KA();var n,e;try{if(e=u(_Z((R1(),Ps),ks),2040),e)return e}catch(t){if(t=It(t),D(t,103))n=t,IW((Ie(),n));else throw M(t)}return new Nvn}function uke(){yNn();var n,e;try{if(e=u(_Z((R1(),Ps),Sd),2122),e)return e}catch(t){if(t=It(t),D(t,103))n=t,IW((Ie(),n));else throw M(t)}return new A6n}function oke(n,e,t){var i,r;return r=n.e,n.e=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,4,r,e),t?t.nj(i):t=i),r!=e&&(e?t=Lm(n,MA(n,e),t):t=Lm(n,n.a,t)),t}function aKn(){WE.call(this),this.e=-1,this.a=!1,this.p=Wi,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Wi}function ske(n,e){var t,i,r;if(i=n.b.d.d,n.a||(i+=n.b.d.a),r=e.b.d.d,e.a||(r+=e.b.d.a),t=bt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function fke(n,e){var t,i,r;if(i=n.b.b.d,n.a||(i+=n.b.b.a),r=e.b.b.d,e.a||(r+=e.b.b.a),t=bt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function hke(n,e){var t,i,r;if(i=n.b.g.d,n.a||(i+=n.b.g.a),r=e.b.g.d,e.a||(r+=e.b.g.a),t=bt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function DZ(){DZ=F,mZn=Pu(Ke(Ke(Ke(new ii,(Vi(),Kc),(tr(),osn)),Kc,ssn),zr,fsn),zr,Jon),kZn=Ke(Ke(new ii,Kc,qon),Kc,Qon),vZn=Pu(new ii,zr,Zon)}function lke(n){var e,t,i,r,c;for(e=u(v(n,(W(),F8)),85),c=n.n,i=e.Cc().Kc();i.Ob();)t=u(i.Pb(),314),r=t.i,r.c+=c.a,r.d+=c.b,t.c?Dqn(t):Lqn(t);U(n,F8,null)}function ake(n,e,t){var i,r;switch(r=n.b,i=r.d,e.g){case 1:return-i.d-t;case 2:return r.o.a+i.c+t;case 3:return r.o.b+i.a+t;case 4:return-i.b-t;default:return-1}}function dke(n,e,t){var i,r;for(t.Ug("Interactive node placement",1),n.a=u(v(e,(W(),E2)),312),r=new C(e.b);r.a0&&(s=(c&et)%n.d.length,r=Nnn(n,s,c,e),r)?(f=r.nd(t),f):(i=n.ck(c,e,t),n.c.Fc(i),null)}function $Z(n,e){var t,i,r,c;switch(r1(n,e).Kl()){case 3:case 2:{for(t=Jg(e),r=0,c=t.i;r=0;i--)if(An(n[i].d,e)||An(n[i].d,t)){n.length>=i+1&&n.splice(0,i+1);break}return n}function zk(n,e){var t;return Vr(n)&&Vr(e)&&(t=n/e,Ty0&&(n.b+=2,n.a+=i):(n.b+=1,n.a+=y.Math.min(i,r))}function vKn(n){var e;e=u(v(u(Zo(n.b,0),39),(lc(),Sln)),107),U(n,(pt(),Ov),new V(0,0)),lUn(new ek,n,e.b+e.c-$(R(v(n,rq))),e.d+e.a-$(R(v(n,cq))))}function kKn(n,e){var t,i;if(i=!1,Ai(e)&&(i=!0,Ip(n,new qb(Oe(e)))),i||D(e,242)&&(i=!0,Ip(n,(t=PV(u(e,242)),new TE(t)))),!i)throw M(new vD(Ocn))}function Ike(n,e,t,i){var r,c,s;return r=new ml(n.e,1,10,(s=e.c,D(s,90)?u(s,29):(On(),Is)),(c=t.c,D(c,90)?u(c,29):(On(),Is)),f1(n,e),!1),i?i.nj(r):i=r,i}function BZ(n){var e,t;switch(u(v(Hi(n),(cn(),Zfn)),429).g){case 0:return e=n.n,t=n.o,new V(e.a+t.a/2,e.b+t.b/2);case 1:return new rr(n.n);default:return null}}function Xk(){Xk=F,YP=new w6(kh,0),Bsn=new w6("LEFTUP",1),Ksn=new w6("RIGHTUP",2),Fsn=new w6("LEFTDOWN",3),Rsn=new w6("RIGHTDOWN",4),rH=new w6("BALANCED",5)}function Oke(n,e,t){var i,r,c;if(i=bt(n.a[e.p],n.a[t.p]),i==0){if(r=u(v(e,(W(),T3)),15),c=u(v(t,T3),15),r.Hc(t))return-1;if(c.Hc(e))return 1}return i}function Dke(n){switch(n.g){case 1:return new q4n;case 2:return new U4n;case 3:return new H4n;case 0:return null;default:throw M(new Gn(GR+(n.f!=null?n.f:""+n.g)))}}function RZ(n,e,t){switch(e){case 1:!n.n&&(n.n=new q(Ar,n,1,7)),me(n.n),!n.n&&(n.n=new q(Ar,n,1,7)),Bt(n.n,u(t,16));return;case 2:z4(n,Oe(t));return}cY(n,e,t)}function KZ(n,e,t){switch(e){case 3:A0(n,$(R(t)));return;case 4:S0(n,$(R(t)));return;case 5:eu(n,$(R(t)));return;case 6:tu(n,$(R(t)));return}RZ(n,e,t)}function dA(n,e,t){var i,r,c;c=(i=new lD,i),r=Bf(c,e,null),r&&r.oj(),zc(c,t),ve((!n.c&&(n.c=new q(vb,n,12,10)),n.c),c),e1(c,0),Zb(c,1),u1(c,!0),c1(c,!0)}function _Z(n,e){var t,i,r;return t=h6(n.i,e),D(t,241)?(r=u(t,241),r.zi()==null,r.wi()):D(t,507)?(i=u(t,2037),r=i.b,r):null}function Lke(n,e,t,i){var r,c;return Se(e),Se(t),c=u(L6(n.d,e),17),XNn(!!c,"Row %s not in %s",e,n.e),r=u(L6(n.b,t),17),XNn(!!r,"Column %s not in %s",t,n.c),rFn(n,c.a,r.a,i)}function yKn(n,e,t,i,r,c,s){var f,h,l,a,d;if(a=r[c],l=c==s-1,f=l?i:0,d=KRn(f,a),i!=10&&A(T(n,s-c),e[c],t[c],f,d),!l)for(++c,h=0;h1||f==-1?(c=u(h,15),r.Wb(g8e(n,c))):r.Wb(IF(n,u(h,58)))))}function Kke(n,e,t,i){OEn();var r=RK;function c(){for(var s=0;s0)return!1;return!0}function qke(n){var e,t,i,r,c;for(i=new sd(new Ua(n.b).a);i.b;)t=O0(i),e=u(t.ld(),10),c=u(u(t.md(),42).a,10),r=u(u(t.md(),42).b,8),tt(ff(e.n),tt(Ki(c.n),r))}function Uke(n){switch(u(v(n.b,(cn(),zfn)),387).g){case 1:qt(_r(rc(new Tn(null,new In(n.d,16)),new kpn),new ypn),new jpn);break;case 2:RAe(n);break;case 0:pEe(n)}}function Gke(n,e,t){var i,r,c;for(i=t,!i&&(i=new op),i.Ug("Layout",n.a.c.length),c=new C(n.a);c.a_R)return t;r>-1e-6&&++t}return t}function qZ(n,e){var t;e!=n.b?(t=null,n.b&&(t=IM(n.b,n,-4,t)),e&&(t=Wp(e,n,-4,t)),t=QFn(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,3,e,e))}function CKn(n,e){var t;e!=n.f?(t=null,n.f&&(t=IM(n.f,n,-1,t)),e&&(t=Wp(e,n,-1,t)),t=JFn(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,0,e,e))}function Wke(n,e,t,i){var r,c,s,f;return fo(n.e)&&(r=e.Lk(),f=e.md(),c=t.md(),s=V1(n,1,r,f,c,r.Jk()?Im(n,r,c,D(r,102)&&(u(r,19).Bb&hr)!=0):-1,!0),i?i.nj(s):i=s),i}function MKn(n){var e,t,i;if(n==null)return null;if(t=u(n,15),t.dc())return"";for(i=new Hl,e=t.Kc();e.Ob();)Er(i,(at(),Oe(e.Pb()))),i.a+=" ";return bL(i,i.a.length-1)}function TKn(n){var e,t,i;if(n==null)return null;if(t=u(n,15),t.dc())return"";for(i=new Hl,e=t.Kc();e.Ob();)Er(i,(at(),Oe(e.Pb()))),i.a+=" ";return bL(i,i.a.length-1)}function Jke(n,e,t){var i,r;return i=n.c[e.c.p][e.p],r=n.c[t.c.p][t.p],i.a!=null&&r.a!=null?tN(i.a,r.a):i.a!=null?-1:r.a!=null?1:0}function Qke(n,e,t){return t.Ug("Tree layout",1),H7(n.b),hf(n.b,(Qp(),LI),LI),hf(n.b,n9,n9),hf(n.b,e9,e9),hf(n.b,t9,t9),n.a=wy(n.b,e),Gke(n,e,t.eh(1)),t.Vg(),e}function Yke(n,e){var t,i,r,c,s,f;if(e)for(c=e.a.length,t=new Qa(c),f=(t.b-t.a)*t.c<0?(K1(),xa):new q1(t);f.Ob();)s=u(f.Pb(),17),r=D4(e,s.a),i=new Xkn(n),uge(i.a,r)}function Zke(n,e){var t,i,r,c,s,f;if(e)for(c=e.a.length,t=new Qa(c),f=(t.b-t.a)*t.c<0?(K1(),xa):new q1(t);f.Ob();)s=u(f.Pb(),17),r=D4(e,s.a),i=new Bkn(n),cge(i.a,r)}function nye(n){var e;if(n!=null&&n.length>0&&Xi(n,n.length-1)==33)try{return e=$Hn(qo(n,0,n.length-1)),e.e==null}catch(t){if(t=It(t),!D(t,33))throw M(t)}return!1}function eye(n,e,t){var i,r,c;switch(i=Hi(e),r=KT(i),c=new Pc,ic(c,e),t.g){case 1:gi(c,$k(zp(r)));break;case 2:gi(c,zp(r))}return U(c,(cn(),Kw),R(v(n,Kw))),c}function UZ(n){var e,t;return e=u(fe(new ie(ce(ji(n.a).a.Kc(),new En))),18),t=u(fe(new ie(ce(Qt(n.a).a.Kc(),new En))),18),on(un(v(e,(W(),zf))))||on(un(v(t,zf)))}function ow(){ow=F,wj=new s7("ONE_SIDE",0),zP=new s7("TWO_SIDES_CORNER",1),XP=new s7("TWO_SIDES_OPPOSING",2),GP=new s7("THREE_SIDES",3),UP=new s7("FOUR_SIDES",4)}function AKn(n,e){var t,i,r,c;for(c=new Z,r=0,i=e.Kc();i.Ob();){for(t=Y(u(i.Pb(),17).a+r);t.a=n.f)break;Rn(c.c,t)}return c}function tye(n,e){var t,i,r,c,s;for(c=new C(e.a);c.a0&&QRn(this,this.c-1,(en(),Zn)),this.c0&&n[0].length>0&&(this.c=on(un(v(Hi(n[0][0]),(W(),efn))))),this.a=K(jie,J,2117,n.length,0,2),this.b=K(Eie,J,2118,n.length,0,2),this.d=new GFn}function oye(n){return n.c.length==0?!1:(Ln(0,n.c.length),u(n.c[0],18)).c.i.k==(Vn(),Mi)?!0:Og(_r(new Tn(null,new In(n,16)),new e3n),new t3n)}function IKn(n,e){var t,i,r,c,s,f,h;for(f=aw(e),c=e.f,h=e.g,s=y.Math.sqrt(c*c+h*h),r=0,i=new C(f);i.a=0?(t=zk(n,QA),i=Fk(n,QA)):(e=U1(n,1),t=zk(e,5e8),i=Fk(e,5e8),i=nr(Bs(i,1),vi(n,1))),lf(Bs(i,32),vi(t,mr))}function LKn(n,e,t){var i,r;switch(i=(oe(e.b!=0),u(Xo(e,e.a.a),8)),t.g){case 0:i.b=0;break;case 2:i.b=n.f;break;case 3:i.a=0;break;default:i.a=n.g}return r=ge(e,0),_7(r,i),e}function NKn(n,e,t,i){var r,c,s,f,h;switch(h=n.b,c=e.d,s=c.j,f=oZ(s,h.d[s.g],t),r=tt(Ki(c.n),c.a),c.j.g){case 1:case 3:f.a+=r.a;break;case 2:case 4:f.b+=r.b}xt(i,f,i.c.b,i.c)}function vye(n,e,t){var i,r,c,s;for(s=qr(n.e,e,0),c=new JG,c.b=t,i=new xi(n.e,s);i.b1;e>>=1)e&1&&(i=Ig(i,t)),t.d==1?t=Ig(t,t):t=new JBn(pUn(t.a,t.d,K(ye,_e,28,t.d<<1,15,1)));return i=Ig(i,t),i}function ZZ(){ZZ=F;var n,e,t,i;for(Oun=K(Pi,Tr,28,25,15,1),Dun=K(Pi,Tr,28,33,15,1),i=152587890625e-16,e=32;e>=0;e--)Dun[e]=i,i*=.5;for(t=1,n=24;n>=0;n--)Oun[n]=t,t*=.5}function Mye(n){var e,t;if(on(un(z(n,(cn(),Rw))))){for(t=new ie(ce(Al(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),74),R0(e)&&on(un(z(e,Nd))))return!0}return!1}function $Kn(n,e){var t,i,r;fi(n.f,e)&&(e.b=n,i=e.c,qr(n.j,i,0)!=-1||nn(n.j,i),r=e.d,qr(n.j,r,0)!=-1||nn(n.j,r),t=e.a.b,t.c.length!=0&&(!n.i&&(n.i=new tRn(n)),Ive(n.i,t)))}function Tye(n){var e,t,i,r,c;return t=n.c.d,i=t.j,r=n.d.d,c=r.j,i==c?t.p=0&&An(n.substr(e,3),"GMT")||e>=0&&An(n.substr(e,3),"UTC"))&&(t[0]=e+3),Oen(n,t,i)}function Sye(n,e){var t,i,r,c,s;for(c=n.g.a,s=n.g.b,i=new C(n.d);i.at;c--)n[c]|=e[c-t-1]>>>s,n[c-1]=e[c-t-1]<0&&Ic(n.g,e,n.g,e+i,f),s=t.Kc(),n.i+=i,r=0;r>4&15,c=n[i]&15,s[r++]=Odn[t],s[r++]=Odn[c];return ws(s,0,s.length)}function wu(n){var e,t;return n>=hr?(e=Ay+(n-hr>>10&1023)&ui,t=56320+(n-hr&1023)&ui,String.fromCharCode(e)+(""+String.fromCharCode(t))):String.fromCharCode(n&ui)}function Rye(n,e){Bb();var t,i,r,c;return r=u(u(ot(n.r,e),21),87),r.gc()>=2?(i=u(r.Kc().Pb(),117),t=n.u.Hc((zu(),T9)),c=n.u.Hc(F3),!i.a&&!t&&(r.gc()==2||c)):!1}function BKn(n,e,t,i,r){var c,s,f;for(c=Cqn(n,e,t,i,r),f=!1;!c;)EA(n,r,!0),f=!0,c=Cqn(n,e,t,i,r);f&&EA(n,r,!1),s=B$(r),s.c.length!=0&&(n.d&&n.d.Gg(s),BKn(n,r,t,i,s))}function pA(){pA=F,aU=new v6(kh,0),edn=new v6("DIRECTED",1),idn=new v6("UNDIRECTED",2),Zan=new v6("ASSOCIATION",3),tdn=new v6("GENERALIZATION",4),ndn=new v6("DEPENDENCY",5)}function Kye(n,e){var t;if(!Sf(n))throw M(new Or(eWn));switch(t=Sf(n),e.g){case 1:return-(n.j+n.f);case 2:return n.i-t.g;case 3:return n.j-t.f;case 4:return-(n.i+n.g)}return 0}function _ye(n,e,t){var i,r,c;return i=e.Lk(),c=e.md(),r=i.Jk()?V1(n,4,i,c,null,Im(n,i,c,D(i,102)&&(u(i,19).Bb&hr)!=0),!0):V1(n,i.tk()?2:1,i,c,i.ik(),-1,!0),t?t.nj(r):t=r,t}function km(n,e){var t,i;for(Jn(e),i=n.b.c.length,nn(n.b,e);i>0;){if(t=i,i=(i-1)/2|0,n.a.Ne(sn(n.b,i),e)<=0)return Go(n.b,t,e),!0;Go(n.b,t,sn(n.b,i))}return Go(n.b,i,e),!0}function tnn(n,e,t,i){var r,c;if(r=0,t)r=$T(n.a[t.g][e.g],i);else for(c=0;c=f)}function RKn(n){switch(n.g){case 0:return new rmn;case 1:return new cmn;default:throw M(new Gn("No implementation is available for the width approximator "+(n.f!=null?n.f:""+n.g)))}}function inn(n,e,t,i){var r;if(r=!1,Ai(i)&&(r=!0,y4(e,t,Oe(i))),r||Nb(i)&&(r=!0,inn(n,e,t,i)),r||D(i,242)&&(r=!0,nd(e,t,u(i,242))),!r)throw M(new vD(Ocn))}function qye(n,e){var t,i,r;if(t=e.qi(n.a),t&&(r=gf((!t.b&&(t.b=new lo((On(),ar),pc,t)),t.b),vs),r!=null)){for(i=1;i<(Du(),e0n).length;++i)if(An(e0n[i],r))return i}return 0}function Uye(n,e){var t,i,r;if(t=e.qi(n.a),t&&(r=gf((!t.b&&(t.b=new lo((On(),ar),pc,t)),t.b),vs),r!=null)){for(i=1;i<(Du(),t0n).length;++i)if(An(t0n[i],r))return i}return 0}function KKn(n,e){var t,i,r,c;if(Jn(e),c=n.a.gc(),c0?1:0;c.a[r]!=t;)c=c.a[r],r=n.a.Ne(t.d,c.d)>0?1:0;c.a[r]=i,i.b=t.b,i.a[0]=t.a[0],i.a[1]=t.a[1],t.a[0]=null,t.a[1]=null}function Xye(n){var e,t,i,r;for(e=new Z,t=K(so,Xh,28,n.a.c.length,16,1),MW(t,t.length),r=new C(n.a);r.a0&&dUn((Ln(0,t.c.length),u(t.c[0],30)),n),t.c.length>1&&dUn(u(sn(t,t.c.length-1),30),n),e.Vg()}function Wye(n){zu();var e,t;return e=yt(Fl,A(T(oO,1),G,279,0,[Ia])),!(vk(DM(e,n))>1||(t=yt(T9,A(T(oO,1),G,279,0,[M9,F3])),vk(DM(t,n))>1))}function cnn(n,e){var t;t=Nc((R1(),Ps),n),D(t,507)?Dr(Ps,n,new DMn(this,e)):Dr(Ps,n,this),tF(this,e),e==(u4(),qdn)?(this.wb=u(this,2038),u(e,2040)):this.wb=(G1(),Hn)}function Jye(n){var e,t,i;if(n==null)return null;for(e=null,t=0;t=d1?"error":i>=900?"warn":i>=800?"info":"log"),ZPn(t,n.a),n.b&&uen(e,t,n.b,"Exception: ",!0))}function v(n,e){var t,i;return i=(!n.q&&(n.q=new de),ee(n.q,e)),i??(t=e.Sg(),D(t,4)&&(t==null?(!n.q&&(n.q=new de),Bp(n.q,e)):(!n.q&&(n.q=new de),Ve(n.q,e,t))),t)}function Vi(){Vi=F,Vs=new o7("P1_CYCLE_BREAKING",0),Jh=new o7("P2_LAYERING",1),Oc=new o7("P3_NODE_ORDERING",2),Kc=new o7("P4_NODE_PLACEMENT",3),zr=new o7("P5_EDGE_ROUTING",4)}function Qye(n,e){e5();var t;if(n.c==e.c){if(n.b==e.b||rve(n.b,e.b)){if(t=Ple(n.b)?1:-1,n.a&&!e.a)return t;if(!n.a&&e.a)return-t}return jc(n.b.g,e.b.g)}else return bt(n.c,e.c)}function GKn(n,e){var t,i,r;if(onn(n,e))return!0;for(i=new C(e);i.a=r||e<0)throw M(new Ir(vK+e+Td+r));if(t>=r||t<0)throw M(new Ir(kK+t+Td+r));return e!=t?i=(c=n.Cj(t),n.qj(e,c),c):i=n.xj(t),i}function VKn(n){var e,t,i;if(i=n,n)for(e=0,t=n.Eh();t;t=t.Eh()){if(++e>PB)return VKn(t);if(i=t,t==n)throw M(new Or("There is a cycle in the containment hierarchy of "+n))}return i}function ca(n){var e,t,i;for(i=new fd(ur,"[","]"),t=n.Kc();t.Ob();)e=t.Pb(),pl(i,x(e)===x(n)?"(this Collection)":e==null?gu:Jr(e));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function onn(n,e){var t,i;if(i=!1,e.gc()<2)return!1;for(t=0;t1&&(n.j.b+=n.e)):(n.j.a+=t.a,n.j.b=y.Math.max(n.j.b,t.b),n.d.c.length>1&&(n.j.a+=n.e))}function ua(){ua=F,une=A(T(lr,1),Mc,64,0,[(en(),Xn),Zn,ae]),cne=A(T(lr,1),Mc,64,0,[Zn,ae,Wn]),one=A(T(lr,1),Mc,64,0,[ae,Wn,Xn]),sne=A(T(lr,1),Mc,64,0,[Wn,Xn,Zn])}function Zye(n,e,t,i){var r,c,s,f,h,l,a;if(s=n.c.d,f=n.d.d,s.j!=f.j)for(a=n.b,r=s.j,h=null;r!=f.j;)h=e==0?RT(r):AY(r),c=oZ(r,a.d[r.g],t),l=oZ(h,a.d[h.g],t),Fe(i,tt(c,l)),r=h}function nje(n,e,t,i){var r,c,s,f,h;return s=YRn(n.a,e,t),f=u(s.a,17).a,c=u(s.b,17).a,i&&(h=u(v(e,(W(),Xu)),10),r=u(v(t,Xu),10),h&&r&&(RDn(n.b,h,r),f+=n.b.i,c+=n.b.e)),f>c}function JKn(n){var e,t,i,r,c,s,f,h,l;for(this.a=vRn(n),this.b=new Z,t=n,i=0,r=t.length;iOL(n.d).c?(n.i+=n.g.c,px(n.d)):OL(n.d).c>OL(n.g).c?(n.e+=n.d.c,px(n.g)):(n.i+=oPn(n.g),n.e+=oPn(n.d),px(n.g),px(n.d))}function rje(n,e,t){var i,r,c,s;for(c=e.q,s=e.r,new ed((af(),Ea),e,c,1),new ed(Ea,c,s,1),r=new C(t);r.af&&(h=f/i),r>c&&(l=c/r),s=y.Math.min(h,l),n.a+=s*(e.a-n.a),n.b+=s*(e.b-n.b)}function sje(n,e,t,i,r){var c,s;for(s=!1,c=u(sn(t.b,0),27);FPe(n,e,c,i,r)&&(s=!0,Bke(t,c),t.b.c.length!=0);)c=u(sn(t.b,0),27);return t.b.c.length==0&&Uk(t.j,t),s&&fA(e.q),s}function fje(n,e){Vg();var t,i,r,c;if(e.b<2)return!1;for(c=ge(e,0),t=u(be(c),8),i=t;c.b!=c.d.c;){if(r=u(be(c),8),mF(n,i,r))return!0;i=r}return!!mF(n,i,t)}function fnn(n,e,t,i){var r,c;return t==0?(!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),qC(n.o,e,i)):(c=u($n((r=u(Un(n,16),29),r||n.ii()),t),69),c.wk().Ak(n,iu(n),t-se(n.ii()),e,i))}function tF(n,e){var t;e!=n.sb?(t=null,n.sb&&(t=u(n.sb,54).Th(n,1,P9,t)),e&&(t=u(e,54).Rh(n,1,P9,t)),t=yY(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,4,e,e))}function hje(n,e){var t,i,r,c;if(e)r=yl(e,"x"),t=new Ukn(n),K4(t.a,(Jn(r),r)),c=yl(e,"y"),i=new Gkn(n),H4(i.a,(Jn(c),c));else throw M(new eh("All edge sections need an end point."))}function lje(n,e){var t,i,r,c;if(e)r=yl(e,"x"),t=new _kn(n),_4(t.a,(Jn(r),r)),c=yl(e,"y"),i=new Hkn(n),q4(i.a,(Jn(c),c));else throw M(new eh("All edge sections need a start point."))}function aje(n,e){var t,i,r,c,s,f,h;for(i=TFn(n),c=0,f=i.length;c>22-e,r=n.h<>22-e):e<44?(t=0,i=n.l<>44-e):(t=0,i=0,r=n.l<n)throw M(new Gn("k must be smaller than n"));return e==0||e==n?1:n==0?0:xZ(n)/(xZ(e)*xZ(n-e))}function hnn(n,e){var t,i,r,c;for(t=new TX(n);t.g==null&&!t.c?rJ(t):t.g==null||t.i!=0&&u(t.g[t.i-1],51).Ob();)if(c=u(CA(t),58),D(c,167))for(i=u(c,167),r=0;r>4],e[t*2+1]=SO[c&15];return ws(e,0,e.length)}function Sje(n){kM();var e,t,i;switch(i=n.c.length,i){case 0:return rQn;case 1:return e=u(B_n(new C(n)),44),ybe(e.ld(),e.md());default:return t=u(Ff(n,K(Pd,WA,44,n.c.length,0,1)),173),new fz(t)}}function Pje(n){var e,t,i,r,c,s;for(e=new Cg,t=new Cg,W1(e,n),W1(t,n);t.b!=t.c;)for(r=u(Sp(t),36),s=new C(r.a);s.a0&&fy(n,t,e),r):pCe(n,e,t)}function oa(){oa=F,fce=(He(),L3),hce=qd,cce=Hd,uce=_2,oce=Ta,rce=K2,Vln=Vj,sce=Ww,kq=(Een(),Xre),yq=Vre,Jln=Yre,jq=ece,Qln=Zre,Yln=nce,Wln=Wre,_I=Jre,HI=Qre,xj=tce,Zln=ice,Xln=zre}function r_n(n,e){var t,i,r,c,s;if(n.e<=e||Z2e(n,n.g,e))return n.g;for(c=n.r,i=n.g,s=n.r,r=(c-i)/2+i;i+11&&(n.e.b+=n.a)):(n.e.a+=t.a,n.e.b=y.Math.max(n.e.b,t.b),n.d.c.length>1&&(n.e.a+=n.a))}function Nje(n){var e,t,i,r;switch(r=n.i,e=r.b,i=r.j,t=r.g,r.a.g){case 0:t.a=(n.g.b.o.a-i.a)/2;break;case 1:t.a=e.d.n.a+e.d.a.a;break;case 2:t.a=e.d.n.a+e.d.a.a-i.a;break;case 3:t.b=e.d.n.b+e.d.a.b}}function $je(n,e,t){var i,r,c;for(r=new ie(ce(Cl(t).a.Kc(),new En));pe(r);)i=u(fe(r),18),!fr(i)&&!(!fr(i)&&i.c.i.c==i.d.i.c)&&(c=WHn(n,i,t,new Yyn),c.c.length>1&&Rn(e.c,c))}function u_n(n,e,t,i,r){if(ii&&(n.a=i),n.br&&(n.b=r),n}function xje(n){if(D(n,143))return dTe(u(n,143));if(D(n,233))return i8e(u(n,233));if(D(n,23))return bje(u(n,23));throw M(new Gn(Dcn+ca(new Ku(A(T(ki,1),Fn,1,5,[n])))))}function Fje(n,e,t,i,r){var c,s,f;for(c=!0,s=0;s>>r|t[s+i+1]<>>r,++s}return c}function bnn(n,e,t,i){var r,c,s;if(e.k==(Vn(),Mi)){for(c=new ie(ce(ji(e).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),s=r.c.i.k,s==Mi&&n.c.a[r.c.i.c.p]==i&&n.c.a[e.c.p]==t)return!0}return!1}function Bje(n,e){var t,i,r,c;return e&=63,t=n.h&Il,e<22?(c=t>>>e,r=n.m>>e|t<<22-e,i=n.l>>e|n.m<<22-e):e<44?(c=0,r=t>>>e-22,i=n.m>>e-22|n.h<<44-e):(c=0,r=0,i=t>>>e-44),Yc(i&ro,r&ro,c&Il)}function o_n(n,e,t,i){var r;this.b=i,this.e=n==(P0(),Q8),r=e[t],this.d=Wa(so,[J,Xh],[183,28],16,[r.length,r.length],2),this.a=Wa(ye,[J,_e],[53,28],15,[r.length,r.length],2),this.c=new WZ(e,t)}function Rje(n){var e,t,i;for(n.k=new oJ((en(),A(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn])).length,n.j.c.length),i=new C(n.j);i.a=t)return jm(n,e,i.p),!0;return!1}function Ug(n,e,t,i){var r,c,s,f,h,l;for(s=t.length,c=0,r=-1,l=n$n((zn(e,n.length+1),n.substr(e)),(xL(),Pun)),f=0;fc&&awe(l,n$n(t[f],Pun))&&(r=f,c=h);return r>=0&&(i[0]=e+c),r}function f_n(n){var e;return n.Db&64?iF(n):(e=new mo(ycn),!n.a||Re(Re((e.a+=' "',e),n.a),'"'),Re(e0(Re(e0(Re(e0(Re(e0((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function h_n(n,e,t){var i,r,c,s,f;for(f=ru(n.e.Dh(),e),r=u(n.g,124),i=0,s=0;st?Enn(n,t,"start index"):e<0||e>t?Enn(e,t,"end index"):F5("end index (%s) must not be less than start index (%s)",A(T(ki,1),Fn,1,5,[Y(e),Y(n)]))}function a_n(n,e){var t,i,r,c;for(i=0,r=n.length;i0&&d_n(n,c,t));e.p=0}function ln(n){var e;this.c=new Ct,this.f=n.e,this.e=n.d,this.i=n.g,this.d=n.c,this.b=n.b,this.k=n.j,this.a=n.a,n.i?this.j=n.i:this.j=(e=u(of(Zh),9),new _o(e,u(xs(e,e.length),9),0)),this.g=n.f}function Gje(n){var e,t,i,r;for(e=z1(Re(new mo("Predicates."),"and"),40),t=!0,r=new Gv(n);r.b0?f[s-1]:K(Qh,b1,10,0,0,1),r=f[s],l=s=0?n.ki(r):Ann(n,i);else throw M(new Gn(ba+i.xe()+a8));else throw M(new Gn(aWn+e+dWn));else Wo(n,t,i)}function wnn(n){var e,t;if(t=null,e=!1,D(n,211)&&(e=!0,t=u(n,211).a),e||D(n,263)&&(e=!0,t=""+u(n,263).a),e||D(n,492)&&(e=!0,t=""+u(n,492).a),!e)throw M(new vD(Ocn));return t}function gnn(n,e,t){var i,r,c,s,f,h;for(h=ru(n.e.Dh(),e),i=0,f=n.i,r=u(n.g,124),s=0;s=n.d.b.c.length&&(e=new Lc(n.d),e.p=i.p-1,nn(n.d.b,e),t=new Lc(n.d),t.p=i.p,nn(n.d.b,t)),$i(i,u(sn(n.d.b,i.p),30))}function vnn(n,e,t){var i,r,c;if(!n.b[e.g]){for(n.b[e.g]=!0,i=t,!i&&(i=new ek),Fe(i.b,e),c=n.a[e.g].Kc();c.Ob();)r=u(c.Pb(),65),r.b!=e&&vnn(n,r.b,i),r.c!=e&&vnn(n,r.c,i),Fe(i.a,r);return i}return null}function Wje(n){switch(n.g){case 0:case 1:case 2:return en(),Xn;case 3:case 4:case 5:return en(),ae;case 6:case 7:case 8:return en(),Wn;case 9:case 10:case 11:return en(),Zn;default:return en(),sc}}function Jje(n,e){var t;return n.c.length==0?!1:(t=OBn((Ln(0,n.c.length),u(n.c[0],18)).c.i),ko(),t==(cw(),P2)||t==S2?!0:Og(_r(new Tn(null,new In(n,16)),new i3n),new Q7n(e)))}function oF(n,e){if(D(e,207))return Ule(n,u(e,27));if(D(e,193))return Gle(n,u(e,123));if(D(e,451))return qle(n,u(e,166));throw M(new Gn(Dcn+ca(new Ku(A(T(ki,1),Fn,1,5,[e])))))}function v_n(n,e,t){var i,r;if(this.f=n,i=u(ee(n.b,e),260),r=i?i.a:0,FJ(t,r),t>=(r/2|0))for(this.e=i?i.c:null,this.d=r;t++0;)oQ(this);this.b=e,this.a=null}function Qje(n,e){var t,i;e.a?OTe(n,e):(t=u(ID(n.b,e.b),60),t&&t==n.a[e.b.f]&&t.a&&t.a!=e.b.a&&t.c.Fc(e.b),i=u(PD(n.b,e.b),60),i&&n.a[i.f]==e.b&&i.a&&i.a!=e.b.a&&e.b.c.Fc(i),EL(n.b,e.b))}function k_n(n,e){var t,i;if(t=u(Cr(n.b,e),127),u(u(ot(n.r,e),21),87).dc()){t.n.b=0,t.n.c=0;return}t.n.b=n.C.b,t.n.c=n.C.c,n.A.Hc((go(),Gd))&&Xqn(n,e),i=M9e(n,e),kF(n,e)==(Bg(),Sa)&&(i+=2*n.w),t.a.a=i}function y_n(n,e){var t,i;if(t=u(Cr(n.b,e),127),u(u(ot(n.r,e),21),87).dc()){t.n.d=0,t.n.a=0;return}t.n.d=n.C.d,t.n.a=n.C.a,n.A.Hc((go(),Gd))&&Vqn(n,e),i=C9e(n,e),kF(n,e)==(Bg(),Sa)&&(i+=2*n.w),t.a.b=i}function Yje(n,e){var t,i,r,c;for(c=new Z,i=new C(e);i.ai&&(zn(e-1,n.length),n.charCodeAt(e-1)<=32);)--e;return i>0||et.a&&(i.Hc((wd(),b9))?r=(e.a-t.a)/2:i.Hc(w9)&&(r=e.a-t.a)),e.b>t.b&&(i.Hc((wd(),p9))?c=(e.b-t.b)/2:i.Hc(g9)&&(c=e.b-t.b)),rnn(n,r,c)}function P_n(n,e,t,i,r,c,s,f,h,l,a,d,g){D(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,t),n.f=s,fm(n,f),lm(n,h),sm(n,l),hm(n,a),u1(n,d),am(n,g),c1(n,!0),e1(n,r),n.Zk(c),ad(n,e),i!=null&&(n.i=null,kT(n,i))}function Enn(n,e,t){if(n<0)return F5(Tzn,A(T(ki,1),Fn,1,5,[t,Y(n)]));if(e<0)throw M(new Gn(Azn+e));return F5("%s (%s) must not be greater than size (%s)",A(T(ki,1),Fn,1,5,[t,Y(n),Y(e)]))}function Cnn(n,e,t,i,r,c){var s,f,h,l;if(s=i-t,s<7){z5e(e,t,i,c);return}if(h=t+r,f=i+r,l=h+(f-h>>1),Cnn(e,n,h,l,-r,c),Cnn(e,n,l,f,-r,c),c.Ne(n[l-1],n[l])<=0){for(;t=0?n.bi(c,t):nen(n,r,t);else throw M(new Gn(ba+r.xe()+a8));else throw M(new Gn(aWn+e+dWn));else Jo(n,i,r,t)}function I_n(n){var e,t;if(n.f){for(;n.n>0;){if(e=u(n.k.Xb(n.n-1),76),t=e.Lk(),D(t,102)&&u(t,19).Bb&kc&&(!n.e||t.pk()!=_v||t.Lj()!=0)&&e.md()!=null)return!0;--n.n}return!1}else return n.n>0}function O_n(n){var e,t,i,r;if(t=u(n,54)._h(),t)try{if(i=null,e=Cm((R1(),Ps),gUn(r8e(t))),e&&(r=e.ai(),r&&(i=r.Fl(che(t.e)))),i&&i!=n)return O_n(i)}catch(c){if(c=It(c),!D(c,63))throw M(c)}return n}function bEe(n,e,t){var i,r,c;t.Ug("Remove overlaps",1),t.dh(e,Nrn),i=u(z(e,(Tg(),D2)),27),n.f=i,n.a=Ax(u(z(e,(oa(),xj)),299)),r=R(z(e,(He(),qd))),pG(n,(Jn(r),r)),c=aw(i),BGn(n,e,c,t),t.dh(e,DS)}function wEe(n){var e,t,i;if(on(un(z(n,(He(),zj))))){for(i=new Z,t=new ie(ce(Al(n).a.Kc(),new En));pe(t);)e=u(fe(t),74),R0(e)&&on(un(z(e,nU)))&&Rn(i.c,e);return i}else return Dn(),Dn(),sr}function D_n(n){if(!n)return Ojn(),dQn;var e=n.valueOf?n.valueOf():n;if(e!==n){var t=WK[typeof e];return t?t(e):bY(typeof e)}else return n instanceof Array||n instanceof y.Array?new lG(n):new q9(n)}function L_n(n,e,t){var i,r,c;switch(c=n.o,i=u(Cr(n.p,t),252),r=i.i,r.b=ey(i),r.a=ny(i),r.b=y.Math.max(r.b,c.a),r.b>c.a&&!e&&(r.b=c.a),r.c=-(r.b-c.a)/2,t.g){case 1:r.d=-r.a;break;case 3:r.d=c.b}LF(i),NF(i)}function N_n(n,e,t){var i,r,c;switch(c=n.o,i=u(Cr(n.p,t),252),r=i.i,r.b=ey(i),r.a=ny(i),r.a=y.Math.max(r.a,c.b),r.a>c.b&&!e&&(r.a=c.b),r.d=-(r.a-c.b)/2,t.g){case 4:r.c=-r.b;break;case 2:r.c=c.a}LF(i),NF(i)}function gEe(n,e){var t,i,r,c,s;if(!e.dc()){if(r=u(e.Xb(0),131),e.gc()==1){lqn(n,r,r,1,0,e);return}for(t=1;t0)try{r=Ao(e,Wi,et)}catch(c){throw c=It(c),D(c,130)?(i=c,M(new eT(i))):M(c)}return t=(!n.a&&(n.a=new iD(n)),n.a),r=0?u(L(t,r),58):null}function kEe(n,e){if(n<0)return F5(Tzn,A(T(ki,1),Fn,1,5,["index",Y(n)]));if(e<0)throw M(new Gn(Azn+e));return F5("%s (%s) must be less than size (%s)",A(T(ki,1),Fn,1,5,["index",Y(n),Y(e)]))}function yEe(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i=0?n.Lh(t,!0,!0):K0(n,r,!0),160)),u(i,220).Zl(e);else throw M(new Gn(ba+e.xe()+a8))}function Snn(n){var e,t;return n>-0x800000000000&&n<0x800000000000?n==0?0:(e=n<0,e&&(n=-n),t=wi(y.Math.floor(y.Math.log(n)/.6931471805599453)),(!e||n!=y.Math.pow(2,t))&&++t,t):Jxn(vc(n))}function xEe(n){var e,t,i,r,c,s,f;for(c=new rh,t=new C(n);t.a2&&f.e.b+f.j.b<=2&&(r=f,i=s),c.a.zc(r,c),r.q=i);return c}function FEe(n,e,t){t.Ug("Eades radial",1),t.dh(e,DS),n.d=u(z(e,(Tg(),D2)),27),n.c=$(R(z(e,(oa(),HI)))),n.e=Ax(u(z(e,xj),299)),n.a=a8e(u(z(e,Zln),434)),n.b=Dke(u(z(e,Wln),354)),bke(n),t.dh(e,DS)}function BEe(n,e){if(e.Ug("Target Width Setter",1),Lf(n,(Rf(),Lq)))ht(n,(_h(),Xw),R(z(n,Lq)));else throw M(new _l("A target width has to be set if the TargetWidthWidthApproximator should be used."));e.Vg()}function R_n(n,e){var t,i,r;return i=new Tl(n),Ur(i,e),U(i,(W(),cI),e),U(i,(cn(),Kt),(Oi(),qc)),U(i,Th,(Rh(),nO)),Ha(i,(Vn(),Zt)),t=new Pc,ic(t,i),gi(t,(en(),Wn)),r=new Pc,ic(r,i),gi(r,Zn),i}function K_n(n){switch(n.g){case 0:return new gD((P0(),Ij));case 1:return new t8n;case 2:return new i8n;default:throw M(new Gn("No implementation is available for the crossing minimizer "+(n.f!=null?n.f:""+n.g)))}}function __n(n,e){var t,i,r,c,s;for(n.c[e.p]=!0,nn(n.a,e),s=new C(e.j);s.a=c)s.$b();else for(r=s.Kc(),i=0;i0?bz():s<0&&G_n(n,e,-s),!0):!1}function ny(n){var e,t,i,r,c,s,f;if(f=0,n.b==0){for(s=TRn(n,!0),e=0,i=s,r=0,c=i.length;r0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}else f=qjn(I$(Ub(ut(EW(n.a),new sbn),new fbn)));return f>0?f+n.n.d+n.n.a:0}function ey(n){var e,t,i,r,c,s,f;if(f=0,n.b==0)f=qjn(I$(Ub(ut(EW(n.a),new ubn),new obn)));else{for(s=ARn(n,!0),e=0,i=s,r=0,c=i.length;r0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}return f>0?f+n.n.b+n.n.c:0}function GEe(n){var e,t;if(n.c.length!=2)throw M(new Or("Order only allowed for two paths."));e=(Ln(0,n.c.length),u(n.c[0],18)),t=(Ln(1,n.c.length),u(n.c[1],18)),e.d.i!=t.c.i&&(n.c.length=0,Rn(n.c,t),Rn(n.c,e))}function z_n(n,e,t){var i;for(kg(t,e.g,e.f),Ro(t,e.i,e.j),i=0;i<(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i;i++)z_n(n,u(L((!e.a&&(e.a=new q(Ye,e,10,11)),e.a),i),27),u(L((!t.a&&(t.a=new q(Ye,t,10,11)),t.a),i),27))}function zEe(n,e){var t,i,r,c;for(c=u(Cr(n.b,e),127),t=c.a,r=u(u(ot(n.r,e),21),87).Kc();r.Ob();)i=u(r.Pb(),117),i.c&&(t.a=y.Math.max(t.a,nW(i.c)));if(t.a>0)switch(e.g){case 2:c.n.c=n.s;break;case 4:c.n.b=n.s}}function XEe(n,e){var t,i,r;return t=u(v(e,(Us(),k3)),17).a-u(v(n,k3),17).a,t==0?(i=mi(Ki(u(v(n,(Q1(),hj)),8)),u(v(n,I8),8)),r=mi(Ki(u(v(e,hj),8)),u(v(e,I8),8)),bt(i.a*i.b,r.a*r.b)):t}function VEe(n,e){var t,i,r;return t=u(v(e,(lc(),FI)),17).a-u(v(n,FI),17).a,t==0?(i=mi(Ki(u(v(n,(pt(),Lj)),8)),u(v(n,Ov),8)),r=mi(Ki(u(v(e,Lj),8)),u(v(e,Ov),8)),bt(i.a*i.b,r.a*r.b)):t}function X_n(n){var e,t;return t=new x1,t.a+="e_",e=_ve(n),e!=null&&(t.a+=""+e),n.c&&n.d&&(Re((t.a+=" ",t),lA(n.c)),Re(Dc((t.a+="[",t),n.c.i),"]"),Re((t.a+=iR,t),lA(n.d)),Re(Dc((t.a+="[",t),n.d.i),"]")),t.a}function V_n(n){switch(n.g){case 0:return new a8n;case 1:return new d8n;case 2:return new h8n;case 3:return new f8n;default:throw M(new Gn("No implementation is available for the layout phase "+(n.f!=null?n.f:""+n.g)))}}function Onn(n,e,t,i,r){var c;switch(c=0,r.g){case 1:c=y.Math.max(0,e.b+n.b-(t.b+i));break;case 3:c=y.Math.max(0,-n.b-i);break;case 2:c=y.Math.max(0,-n.a-i);break;case 4:c=y.Math.max(0,e.a+n.a-(t.a+i))}return c}function WEe(n,e,t){var i,r,c,s,f;if(t)for(r=t.a.length,i=new Qa(r),f=(i.b-i.a)*i.c<0?(K1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),c=D4(t,s.a),Mcn in c.a||pK in c.a?fSe(n,c,e):SLe(n,c,e),A1e(u(ee(n.b,bm(c)),74))}function Dnn(n){var e,t;switch(n.b){case-1:return!0;case 0:return t=n.t,t>1||t==-1?(n.b=-1,!0):(e=gs(n),e&&(dr(),e.lk()==bJn)?(n.b=-1,!0):(n.b=1,!1));default:case 1:return!1}}function Lnn(n,e){var t,i,r,c;if(Ze(n),n.c!=0||n.a!=123)throw M(new Le($e((Ie(),xWn))));if(c=e==112,i=n.d,t=b4(n.i,125,i),t<0)throw M(new Le($e((Ie(),FWn))));return r=qo(n.i,i,t),n.d=t+1,pNn(r,c,(n.e&512)==512)}function W_n(n){var e,t,i,r,c,s,f;if(i=n.a.c.length,i>0)for(s=n.c.d,f=n.d.d,r=ch(mi(new V(f.a,f.b),s),1/(i+1)),c=new V(s.a,s.b),t=new C(n.a);t.a=0&&i=0?n.Lh(t,!0,!0):K0(n,r,!0),160)),u(i,220).Wl(e);throw M(new Gn(ba+e.xe()+sK))}function ZEe(){xz();var n;return Yoe?u(Cm((R1(),Ps),ks),2038):(Ge(Pd,new v6n),VOe(),n=u(D(Nc((R1(),Ps),ks),560)?Nc(Ps,ks):new lIn,560),Yoe=!0,WLe(n),tNe(n),Ve(($z(),Hdn),n,new $vn),Dr(Ps,ks,n),n)}function nCe(n,e){var t,i,r,c;n.j=-1,fo(n.e)?(t=n.i,c=n.i!=0,nk(n,e),i=new ml(n.e,3,n.c,null,e,t,c),r=e.zl(n.e,n.c,null),r=SKn(n,e,r),r?(r.nj(i),r.oj()):it(n.e,i)):(nk(n,e),r=e.zl(n.e,n.c,null),r&&r.oj())}function yA(n,e){var t,i,r;if(r=0,i=e[0],i>=n.length)return-1;for(t=(zn(i,n.length),n.charCodeAt(i));t>=48&&t<=57&&(r=r*10+(t-48),++i,!(i>=n.length));)t=(zn(i,n.length),n.charCodeAt(i));return i>e[0]?e[0]=i:r=-1,r}function eCe(n){var e,t,i,r,c;return r=u(n.a,17).a,c=u(n.b,17).a,t=r,i=c,e=y.Math.max(y.Math.abs(r),y.Math.abs(c)),r<=0&&r==c?(t=0,i=c-1):r==-e&&c!=e?(t=c,i=r,c>=0&&++t):(t=-c,i=r),new bi(Y(t),Y(i))}function tCe(n,e,t,i){var r,c,s,f,h,l;for(r=0;r=0&&l>=0&&h=n.i)throw M(new Ir(vK+e+Td+n.i));if(t>=n.i)throw M(new Ir(kK+t+Td+n.i));return i=n.g[t],e!=t&&(e>16),e=i>>16&16,t=16-e,n=n>>e,i=n-256,e=i>>16&8,t+=e,n<<=e,i=n-vw,e=i>>16&4,t+=e,n<<=e,i=n-wh,e=i>>16&2,t+=e,n<<=e,i=n>>14,e=i&~(i>>1),t+2-e)}function rCe(n){Lp();var e,t,i,r;for(mP=new Z,m_=new de,p_=new Z,e=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),VDe(e),r=new ne(e);r.e!=r.i.gc();)i=u(ue(r),27),qr(mP,i,0)==-1&&(t=new Z,nn(p_,t),YBn(i,t));return p_}function cCe(n,e,t){var i,r,c,s;n.a=t.b.d,D(e,326)?(r=Xg(u(e,74),!1,!1),c=Jk(r),i=new x9n(n),qi(c,i),ay(c,r),e.of((He(),mb))!=null&&qi(u(e.of(mb),75),i)):(s=u(e,422),s.rh(s.nh()+n.a.a),s.sh(s.oh()+n.a.b))}function uCe(n,e){var t,i,r;for(r=new Z,i=ge(e.a,0);i.b!=i.d.c;)t=u(be(i),65),t.c.g==n.g&&x(v(t.b,(lc(),Sh)))!==x(v(t.c,Sh))&&!Og(new Tn(null,new In(r,16)),new fkn(t))&&Rn(r.c,t);return Yt(r,new q3n),r}function Q_n(n,e,t){var i,r,c,s;return D(e,153)&&D(t,153)?(c=u(e,153),s=u(t,153),n.a[c.a][s.a]+n.a[s.a][c.a]):D(e,250)&&D(t,250)&&(i=u(e,250),r=u(t,250),i.a==r.a)?u(v(r.a,(Us(),k3)),17).a:0}function Y_n(n,e){var t,i,r,c,s,f,h,l;for(l=$(R(v(e,(cn(),G8)))),h=n[0].n.a+n[0].o.a+n[0].d.c+l,f=1;f=0?t:(f=U6(mi(new V(s.c+s.b/2,s.d+s.a/2),new V(c.c+c.b/2,c.d+c.a/2))),-(CUn(c,s)-1)*f)}function sCe(n,e,t){var i;qt(new Tn(null,(!t.a&&(t.a=new q(Mt,t,6,6)),new In(t.a,16))),new aMn(n,e)),qt(new Tn(null,(!t.n&&(t.n=new q(Ar,t,1,7)),new In(t.n,16))),new dMn(n,e)),i=u(z(t,(He(),mb)),75),i&&FQ(i,n,e)}function K0(n,e,t){var i,r,c;if(c=Qg((Du(),zi),n.Dh(),e),c)return dr(),u(c,69).xk()||(c=$p(Lr(zi,c))),r=(i=n.Ih(c),u(i>=0?n.Lh(i,!0,!0):K0(n,c,!0),160)),u(r,220).Sl(e,t);throw M(new Gn(ba+e.xe()+sK))}function Nnn(n,e,t,i){var r,c,s,f,h;if(r=n.d[e],r){if(c=r.g,h=r.i,i!=null){for(f=0;f=t&&(i=e,l=(h.c+h.a)/2,s=l-t,h.c<=l-t&&(r=new KL(h.c,s),a0(n,i++,r)),f=l+t,f<=h.a&&(c=new KL(f,h.a),zb(i,n.c.length),l6(n.c,i,c)))}function eHn(n,e,t){var i,r,c,s,f,h;if(!e.dc()){for(r=new Ct,h=e.Kc();h.Ob();)for(f=u(h.Pb(),39),Ve(n.a,Y(f.g),Y(t)),s=(i=ge(new sl(f).a.d,0),new sg(i));Q9(s.a);)c=u(be(s.a),65).c,xt(r,c,r.c.b,r.c);eHn(n,r,t+1)}}function $nn(n){var e;if(!n.c&&n.g==null)n.d=n.bj(n.f),ve(n,n.d),e=n.d;else{if(n.g==null)return!0;if(n.i==0)return!1;e=u(n.g[n.i-1],51)}return e==n.b&&null.Vm>=null.Um()?(CA(n),$nn(n)):e.Ob()}function tHn(n){if(this.a=n,n.c.i.k==(Vn(),Zt))this.c=n.c,this.d=u(v(n.c.i,(W(),gc)),64);else if(n.d.i.k==Zt)this.c=n.d,this.d=u(v(n.d.i,(W(),gc)),64);else throw M(new Gn("Edge "+n+" is not an external edge."))}function iHn(n,e){var t,i,r;r=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,3,r,n.b)),e?e!=n&&(zc(n,e.zb),v$(n,e.d),t=(i=e.c,i??e.zb),y$(n,t==null||An(t,e.zb)?null:t)):(zc(n,null),v$(n,0),y$(n,null))}function rHn(n,e){var t;this.e=(g0(),Se(n),g0(),JY(n)),this.c=(Se(e),JY(e)),RX(this.e.Rd().dc()==this.c.Rd().dc()),this.d=mBn(this.e),this.b=mBn(this.c),t=Wa(ki,[J,Fn],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=t,Fme(this)}function cHn(n){!XK&&(XK=uLe());var e=n.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(t){return h2e(t)});return'"'+e+'"'}function xnn(n,e,t,i,r,c){var s,f,h,l,a;if(r!=0)for(x(n)===x(t)&&(n=n.slice(e,e+r),e=0),h=t,f=e,l=e+r;f=s)throw M(new Kb(e,s));return r=t[e],s==1?i=null:(i=K(yU,MK,424,s-1,0,1),Ic(t,0,i,0,e),c=s-e-1,c>0&&Ic(t,e+1,i,e,c)),wm(n,i),A_n(n,e,r),r}function oHn(n){var e,t;if(n.f){for(;n.n0?c=zp(t):c=$k(zp(t))),ht(e,Cv,c)}function wCe(n,e){var t;e.Ug("Partition preprocessing",1),t=u(Wr(ut(rc(ut(new Tn(null,new In(n.a,16)),new Ggn),new zgn),new Xgn),qu(new ju,new yu,new Eu,A(T(xr,1),G,108,0,[(Gu(),Yr)]))),15),qt(t.Oc(),new Vgn),e.Vg()}function gCe(n,e){var t,i,r,c,s;for(s=n.j,e.a!=e.b&&Yt(s,new Cpn),r=s.c.length/2|0,i=0;i0&&fy(n,t,e),c):i.a!=null?(fy(n,e,t),-1):r.a!=null?(fy(n,t,e),1):0}function mCe(n,e){var t,i,r,c,s;for(r=e.b.b,n.a=K(rs,kw,15,r,0,1),n.b=K(so,Xh,28,r,16,1),s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),39),n.a[c.g]=new Ct;for(i=ge(e.a,0);i.b!=i.d.c;)t=u(be(i),65),n.a[t.b.g].Fc(t),n.a[t.c.g].Fc(t)}function lHn(n,e){var t,i,r,c;n.Pj()?(t=n.Ej(),c=n.Qj(),++n.j,n.qj(t,n.Zi(t,e)),i=n.Ij(3,null,e,t,c),n.Mj()?(r=n.Nj(e,null),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(nIn(n,e),n.Mj()&&(r=n.Nj(e,null),r&&r.oj()))}function Fnn(n,e,t){var i,r,c;n.Pj()?(c=n.Qj(),Ok(n,e,t),i=n.Ij(3,null,t,e,c),n.Mj()?(r=n.Nj(t,null),n.Tj()&&(r=n.Uj(t,r)),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(Ok(n,e,t),n.Mj()&&(r=n.Nj(t,null),r&&r.oj()))}function jA(n,e){var t,i,r,c,s;for(s=ru(n.e.Dh(),e),r=new jE,t=u(n.g,124),c=n.i;--c>=0;)i=t[c],s.am(i.Lk())&&ve(r,i);!uzn(n,r)&&fo(n.e)&&e4(n,e.Jk()?V1(n,6,e,(Dn(),sr),null,-1,!1):V1(n,e.tk()?2:1,e,null,null,-1,!1))}function vCe(n,e){var t,i,r,c,s;return n.a==(ym(),N8)?!0:(c=e.a.c,t=e.a.c+e.a.b,!(e.j&&(i=e.A,s=i.c.c.a-i.o.a/2,r=c-(i.n.a+i.o.a),r>s)||e.q&&(i=e.C,s=i.c.c.a-i.o.a/2,r=i.n.a-t,r>s)))}function aHn(n){NN();var e,t,i,r,c,s,f;for(t=new Ql,r=new C(n.e.b);r.a1?n.e*=$(n.a):n.f/=$(n.a),_6e(n),X8e(n),UAe(n),U(n.b,(j5(),pP),n.g)}function gHn(n,e,t){var i,r,c,s,f,h;for(i=0,h=t,e||(i=t*(n.c.length-1),h*=-1),c=new C(n);c.a=0?n.Ah(null):n.Ph().Th(n,-1-e,null,null)),n.Bh(u(r,54),t),i&&i.oj(),n.vh()&&n.wh()&&t>-1&&it(n,new Ci(n,9,t,c,r)),r):c}function Knn(n,e){var t,i,r,c,s;for(c=n.b.Ce(e),i=(t=n.a.get(c),t??K(ki,Fn,1,0,5,1)),s=0;s>5,r>=n.d)return n.e<0;if(t=n.a[r],e=1<<(e&31),n.e<0){if(i=Pxn(n),r>16)),15).dd(c),f0&&(!(hl(n.a.c)&&e.n.d)&&!(vg(n.a.c)&&e.n.b)&&(e.g.d+=y.Math.max(0,i/2-.5)),!(hl(n.a.c)&&e.n.a)&&!(vg(n.a.c)&&e.n.c)&&(e.g.a-=i-1))}function MHn(n){var e,t,i,r,c;if(r=new Z,c=kUn(n,r),e=u(v(n,(W(),Xu)),10),e)for(i=new C(e.j);i.a>e,c=n.m>>e|t<<22-e,r=n.l>>e|n.m<<22-e):e<44?(s=i?Il:0,c=t>>e-22,r=n.m>>e-22|t<<44-e):(s=i?Il:0,c=i?ro:0,r=t>>e-44),Yc(r&ro,c&ro,s&Il)}function bF(n){var e,t,i,r,c,s;for(this.c=new Z,this.d=n,i=St,r=St,e=li,t=li,s=ge(n,0);s.b!=s.d.c;)c=u(be(s),8),i=y.Math.min(i,c.a),r=y.Math.min(r,c.b),e=y.Math.max(e,c.a),t=y.Math.max(t,c.b);this.a=new Ho(i,r,e-i,t-r)}function AHn(n,e){var t,i,r,c,s,f;for(c=new C(n.b);c.a0&&D(e,44)&&(n.a._j(),l=u(e,44),h=l.ld(),c=h==null?0:mt(h),s=aV(n.a,c),t=n.a.d[s],t)){for(i=u(t.g,379),a=t.i,f=0;f=2)for(t=r.Kc(),e=R(t.Pb());t.Ob();)c=e,e=R(t.Pb()),i=y.Math.min(i,(Jn(e),e-(Jn(c),c)));return i}function _Ce(n,e){var t,i,r;for(r=new Z,i=ge(e.a,0);i.b!=i.d.c;)t=u(be(i),65),t.b.g==n.g&&!An(t.b.c,IS)&&x(v(t.b,(lc(),Sh)))!==x(v(t.c,Sh))&&!Og(new Tn(null,new In(r,16)),new hkn(t))&&Rn(r.c,t);return Yt(r,new X3n),r}function HCe(n,e){var t,i,r;if(x(e)===x(Se(n)))return!0;if(!D(e,15)||(i=u(e,15),r=n.gc(),r!=i.gc()))return!1;if(D(i,59)){for(t=0;t0&&(r=t),s=new C(n.f.e);s.a0?(e-=1,t-=1):i>=0&&r<0?(e+=1,t+=1):i>0&&r>=0?(e-=1,t+=1):(e+=1,t-=1),new bi(Y(e),Y(t))}function tMe(n,e){return n.ce.c?1:n.be.b?1:n.a!=e.a?mt(n.a)-mt(e.a):n.d==(Q6(),Z8)&&e.d==Y8?-1:n.d==Y8&&e.d==Z8?1:0}function NHn(n,e){var t,i,r,c,s;return c=e.a,c.c.i==e.b?s=c.d:s=c.c,c.c.i==e.b?i=c.c:i=c.d,r=C8e(n.a,s,i),r>0&&r0):r<0&&-r0):!1}function iMe(n,e,t,i){var r,c,s,f,h,l,a,d;for(r=(e-n.d)/n.c.c.length,c=0,n.a+=t,n.d=e,d=new C(n.c);d.a>24;return s}function cMe(n){if(n.ze()){var e=n.c;e.Ae()?n.o="["+e.n:e.ze()?n.o="["+e.xe():n.o="[L"+e.xe()+";",n.b=e.we()+"[]",n.k=e.ye()+"[]";return}var t=n.j,i=n.d;i=i.split("/"),n.o=mx(".",[t,mx("$",i)]),n.b=mx(".",[t,mx(".",i)]),n.k=i[i.length-1]}function uMe(n,e){var t,i,r,c,s;for(s=null,c=new C(n.e.a);c.a=0;e-=2)for(t=0;t<=e;t+=2)(n.b[t]>n.b[t+2]||n.b[t]===n.b[t+2]&&n.b[t+1]>n.b[t+3])&&(i=n.b[t+2],n.b[t+2]=n.b[t],n.b[t]=i,i=n.b[t+3],n.b[t+3]=n.b[t+1],n.b[t+1]=i);n.c=!0}}function fMe(n,e){var t,i,r,c,s,f,h,l,a;for(l=-1,a=0,s=n,f=0,h=s.length;f0&&++a;++l}return a}function Hs(n){var e,t;return t=new mo(Xa(n.Rm)),t.a+="@",Re(t,(e=mt(n)>>>0,e.toString(16))),n.Vh()?(t.a+=" (eProxyURI: ",Dc(t,n._h()),n.Kh()&&(t.a+=" eClass: ",Dc(t,n.Kh())),t.a+=")"):n.Kh()&&(t.a+=" (eClass: ",Dc(t,n.Kh()),t.a+=")"),t.a}function L5(n){var e,t,i,r;if(n.e)throw M(new Or((ll(u_),FB+u_.k+BB)));for(n.d==(ci(),Jf)&&UA(n,Br),t=new C(n.a.a);t.a>24}return t}function aMe(n,e,t){var i,r,c;if(r=u(Cr(n.i,e),314),!r)if(r=new v$n(n.d,e,t),Pp(n.i,e,r),eZ(e))g1e(n.a,e.c,e.b,r);else switch(c=Wje(e),i=u(Cr(n.p,c),252),c.g){case 1:case 3:r.j=!0,mD(i,e.b,r);break;case 4:case 2:r.k=!0,mD(i,e.c,r)}return r}function dMe(n,e){var t,i,r,c,s,f,h,l,a;for(h=Dh(n.c-n.b&n.a.length-1),l=null,a=null,c=new z6(n);c.a!=c.b;)r=u(xT(c),10),t=(f=u(v(r,(W(),yf)),12),f?f.i:null),i=(s=u(v(r,Es),12),s?s.i:null),(l!=t||a!=i)&&(pHn(h,e),l=t,a=i),Rn(h.c,r);pHn(h,e)}function bMe(n,e,t,i){var r,c,s,f,h,l;if(f=new jE,h=ru(n.e.Dh(),e),r=u(n.g,124),dr(),u(e,69).xk())for(s=0;s=0)return r;for(c=1,f=new C(e.j);f.a=0)return r;for(c=1,f=new C(e.j);f.a0&&e.Ne((Ln(r-1,n.c.length),u(n.c[r-1],10)),c)>0;)Go(n,r,(Ln(r-1,n.c.length),u(n.c[r-1],10))),--r;Ln(r,n.c.length),n.c[r]=c}t.a=new de,t.b=new de}function wMe(n,e,t){var i,r,c,s,f,h,l,a;for(a=(i=u(e.e&&e.e(),9),new _o(i,u(xs(i,i.length),9),0)),h=ww(t,"[\\[\\]\\s,]+"),c=h,s=0,f=c.length;s=0?(e||(e=new e6,i>0&&Er(e,(Fi(0,i,n.length),n.substr(0,i)))),e.a+="\\",M4(e,t&ui)):e&&M4(e,t&ui);return e?e.a:n}function pMe(n){var e,t,i;for(t=new C(n.a.a.b);t.a0&&(!(hl(n.a.c)&&e.n.d)&&!(vg(n.a.c)&&e.n.b)&&(e.g.d-=y.Math.max(0,i/2-.5)),!(hl(n.a.c)&&e.n.a)&&!(vg(n.a.c)&&e.n.c)&&(e.g.a+=y.Math.max(0,i-1)))}function qHn(n,e,t){var i,r;if((n.c-n.b&n.a.length-1)==2)e==(en(),Xn)||e==Zn?(sT(u(f5(n),15),(To(),nl)),sT(u(f5(n),15),Aa)):(sT(u(f5(n),15),(To(),Aa)),sT(u(f5(n),15),nl));else for(r=new z6(n);r.a!=r.b;)i=u(xT(r),15),sT(i,t)}function mMe(n,e){var t,i,r,c,s,f,h;for(r=k4(new $G(n)),f=new xi(r,r.c.length),c=k4(new $G(e)),h=new xi(c,c.c.length),s=null;f.b>0&&h.b>0&&(t=(oe(f.b>0),u(f.a.Xb(f.c=--f.b),27)),i=(oe(h.b>0),u(h.a.Xb(h.c=--h.b),27)),t==i);)s=t;return s}function UHn(n,e,t){var i,r,c,s;UOn(n,e)>UOn(n,t)?(i=uc(t,(en(),Zn)),n.d=i.dc()?0:zL(u(i.Xb(0),12)),s=uc(e,Wn),n.b=s.dc()?0:zL(u(s.Xb(0),12))):(r=uc(t,(en(),Wn)),n.d=r.dc()?0:zL(u(r.Xb(0),12)),c=uc(e,Zn),n.b=c.dc()?0:zL(u(c.Xb(0),12)))}function GHn(n,e){var t,i,r,c;for(t=n.o.a,c=u(u(ot(n.r,e),21),87).Kc();c.Ob();)r=u(c.Pb(),117),r.e.a=t*$(R(r.b.of(bP))),r.e.b=(i=r.b,i.pf((He(),oo))?i.ag()==(en(),Xn)?-i.Mf().b-$(R(i.of(oo))):$(R(i.of(oo))):i.ag()==(en(),Xn)?-i.Mf().b:0)}function vMe(n,e){var t,i,r,c;for(e.Ug("Self-Loop pre-processing",1),i=new C(n.a);i.an.c));s++)r.a>=n.s&&(c<0&&(c=s),f=s);return h=(n.s+n.c)/2,c>=0&&(i=oSe(n,e,c,f),h=cle((Ln(i,e.c.length),u(e.c[i],339))),aCe(e,i,t)),h}function Me(n,e,t){var i,r,c,s,f,h,l;for(s=(c=new eG,c),PQ(s,(Jn(e),e)),l=(!s.b&&(s.b=new lo((On(),ar),pc,s)),s.b),h=1;h0&&iOe(this,r)}function Qnn(n,e,t,i,r,c){var s,f,h;if(!r[e.a]){for(r[e.a]=!0,s=i,!s&&(s=new zM),nn(s.e,e),h=c[e.a].Kc();h.Ob();)f=u(h.Pb(),289),!(f.d==t||f.c==t)&&(f.c!=e&&Qnn(n,f.c,e,s,r,c),f.d!=e&&Qnn(n,f.d,e,s,r,c),nn(s.c,f),hi(s.d,f.b));return s}return null}function jMe(n){var e,t,i,r,c,s,f;for(e=0,r=new C(n.e);r.a=2}function EMe(n,e,t,i,r){var c,s,f,h,l,a;for(c=n.c.d.j,s=u(Zo(t,0),8),a=1;a1||(e=yt(Qs,A(T(yr,1),G,95,0,[xl,Ys])),vk(DM(e,n))>1)||(i=yt(nf,A(T(yr,1),G,95,0,[el,Ms])),vk(DM(i,n))>1))}function Ynn(n,e,t){var i,r,c;for(c=new C(n.t);c.a0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&Fe(e,i.b));for(r=new C(n.i);r.a0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&Fe(t,i.a))}function CA(n){var e,t,i,r,c;if(n.g==null&&(n.d=n.bj(n.f),ve(n,n.d),n.c))return c=n.f,c;if(e=u(n.g[n.i-1],51),r=e.Pb(),n.e=e,t=n.bj(r),t.Ob())n.d=t,ve(n,t);else for(n.d=null;!e.Ob()&&($t(n.g,--n.i,null),n.i!=0);)i=u(n.g[n.i-1],51),e=i;return r}function MMe(n,e){var t,i,r,c,s,f;if(i=e,r=i.Lk(),Sl(n.e,r)){if(r.Si()&&_M(n,r,i.md()))return!1}else for(f=ru(n.e.Dh(),r),t=u(n.g,124),c=0;c1||t>1)return 2;return e+t==1?2:0}function to(n,e){var t,i,r,c,s,f;return c=n.a*LB+n.b*1502,f=n.b*LB+11,t=y.Math.floor(f*Py),c+=t,f-=t*jtn,c%=jtn,n.a=c,n.b=f,e<=24?y.Math.floor(n.a*Oun[e]):(r=n.a*(1<=2147483648&&(i-=4294967296),i)}function JHn(n,e,t){var i,r,c,s,f,h,l;for(c=new Z,l=new Ct,s=new Ct,XPe(n,l,s,e),MOe(n,l,s,e,t),h=new C(n);h.ai.b.g&&Rn(c.c,i);return c}function OMe(n,e,t){var i,r,c,s,f,h;for(f=n.c,s=(t.q?t.q:(Dn(),Dn(),Wh)).vc().Kc();s.Ob();)c=u(s.Pb(),44),i=!o4(ut(new Tn(null,new In(f,16)),new Y3(new cMn(e,c)))).Bd((Va(),v3)),i&&(h=c.md(),D(h,4)&&(r=rZ(h),r!=null&&(h=r)),e.qf(u(c.ld(),149),h))}function DMe(n,e,t){var i,r;if(H7(n.b),hf(n.b,(Nk(),XI),(u6(),_j)),hf(n.b,VI,e.g),hf(n.b,WI,e.a),n.a=wy(n.b,e),t.Ug("Compaction by shrinking a tree",n.a.c.length),e.i.c.length>1)for(r=new C(n.a);r.a=0?n.Lh(i,!0,!0):K0(n,c,!0),160)),u(r,220).Xl(e,t)}else throw M(new Gn(ba+e.xe()+a8))}function MA(n,e){var t,i,r,c,s;if(e){for(c=D(n.Cb,90)||D(n.Cb,102),s=!c&&D(n.Cb,331),i=new ne((!e.a&&(e.a=new x6(e,jr,e)),e.a));i.e!=i.i.gc();)if(t=u(ue(i),89),r=BA(t),c?D(r,90):s?D(r,156):r)return r;return c?(On(),Is):(On(),Zf)}else return null}function LMe(n,e){var t,i,r,c;for(e.Ug("Resize child graph to fit parent.",1),i=new C(n.b);i.a=2*e&&nn(t,new KL(s[i-1]+e,s[i]-e));return t}function xMe(n,e,t){var i,r,c,s,f,h,l,a;if(t)for(c=t.a.length,i=new Qa(c),f=(i.b-i.a)*i.c<0?(K1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),r=D4(t,s.a),r&&(h=a3e(n,(l=(B1(),a=new nz,a),e&&een(l,e),l),r),z4(h,bl(r,Eh)),gA(r,h),Mnn(r,h),_$(n,r,h))}function TA(n){var e,t,i,r,c,s;if(!n.j){if(s=new Evn,e=L9,c=e.a.zc(n,e),c==null){for(i=new ne(Hr(n));i.e!=i.i.gc();)t=u(ue(i),29),r=TA(t),Bt(s,r),ve(s,t);e.a.Bc(n)!=null}ew(s),n.j=new pg((u(L(H((G1(),Hn).o),11),19),s.i),s.g),Zu(n).b&=-33}return n.j}function FMe(n){var e,t,i,r;if(n==null)return null;if(i=Fc(n,!0),r=Zy.length,An(i.substr(i.length-r,r),Zy)){if(t=i.length,t==4){if(e=(zn(0,i.length),i.charCodeAt(0)),e==43)return s0n;if(e==45)return vse}else if(t==3)return s0n}return new qG(i)}function BMe(n){var e,t,i;return t=n.l,t&t-1||(i=n.m,i&i-1)||(e=n.h,e&e-1)||e==0&&i==0&&t==0?-1:e==0&&i==0&&t!=0?vQ(t):e==0&&i!=0&&t==0?vQ(i)+22:e!=0&&i==0&&t==0?vQ(e)+44:-1}function zg(n,e){var t,i,r,c,s;for(r=e.a&n.f,c=null,i=n.b[r];;i=i.b){if(i==e){c?c.b=e.b:n.b[r]=e.b;break}c=i}for(s=e.f&n.f,c=null,t=n.c[s];;t=t.d){if(t==e){c?c.d=e.d:n.c[s]=e.d;break}c=t}e.e?e.e.c=e.c:n.a=e.c,e.c?e.c.e=e.e:n.e=e.e,--n.i,++n.g}function RMe(n,e){var t;e.d?e.d.b=e.b:n.a=e.b,e.b?e.b.d=e.d:n.e=e.d,!e.e&&!e.c?(t=u(as(u(Bp(n.b,e.a),260)),260),t.a=0,++n.c):(t=u(as(u(ee(n.b,e.a),260)),260),--t.a,e.e?e.e.c=e.c:t.b=u(as(e.c),511),e.c?e.c.e=e.e:t.c=u(as(e.e),511)),--n.d}function KMe(n){var e,t,i,r,c,s,f,h,l,a;for(t=n.o,e=n.p,s=et,r=Wi,f=et,c=Wi,l=0;l0),c.a.Xb(c.c=--c.b),Rb(c,r),oe(c.b3&&Bh(n,0,e-3))}function HMe(n){var e,t,i,r;return x(v(n,(cn(),Bw)))===x((jl(),M1))?!n.e&&x(v(n,Ej))!==x((Y4(),pj)):(i=u(v(n,yH),298),r=on(un(v(n,jH)))||x(v(n,H8))===x((i5(),gj)),e=u(v(n,Kfn),17).a,t=n.a.c.length,!r&&i!=(Y4(),pj)&&(e==0||e>t))}function qMe(n){var e,t;for(t=0;t0);t++);if(t>0&&t0);e++);return e>0&&t>16!=6&&e){if(pm(n,e))throw M(new Gn(d8+dHn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?MZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,6,i)),i=fV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,6,e,e))}function AA(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(pm(n,e))throw M(new Gn(d8+nGn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?PZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,12,i)),i=hV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,3,e,e))}function een(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=9&&e){if(pm(n,e))throw M(new Gn(d8+Yqn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?AZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,9,i)),i=lV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,9,e,e))}function Mm(n){var e,t,i,r,c;if(i=gs(n),c=n.j,c==null&&i)return n.Jk()?null:i.ik();if(D(i,156)){if(t=i.jk(),t&&(r=t.wi(),r!=n.i)){if(e=u(i,156),e.nk())try{n.g=r.ti(e,c)}catch(s){if(s=It(s),D(s,82))n.g=null;else throw M(s)}n.i=r}return n.g}return null}function nqn(n){var e;return e=new Z,nn(e,new bp(new V(n.c,n.d),new V(n.c+n.b,n.d))),nn(e,new bp(new V(n.c,n.d),new V(n.c,n.d+n.a))),nn(e,new bp(new V(n.c+n.b,n.d+n.a),new V(n.c+n.b,n.d))),nn(e,new bp(new V(n.c+n.b,n.d+n.a),new V(n.c,n.d+n.a))),e}function UMe(n){var e,t,i;if(n==null)return gu;try{return Jr(n)}catch(r){if(r=It(r),D(r,103))return e=r,i=Xa(wo(n))+"@"+(t=(fl(),iZ(n)>>>0),t.toString(16)),r9e(qve(),(l4(),"Exception during lenientFormat for "+i),e),"<"+i+" threw "+Xa(e.Rm)+">";throw M(r)}}function GMe(n,e,t){var i,r,c;for(c=e.a.ec().Kc();c.Ob();)r=u(c.Pb(),74),i=u(ee(n.b,r),272),!i&&(At(Kh(r))==At(ra(r))?DTe(n,r,t):Kh(r)==At(ra(r))?ee(n.c,r)==null&&ee(n.b,ra(r))!=null&&DGn(n,r,t,!1):ee(n.d,r)==null&&ee(n.b,Kh(r))!=null&&DGn(n,r,t,!0))}function zMe(n,e){var t,i,r,c,s,f,h;for(r=n.Kc();r.Ob();)for(i=u(r.Pb(),10),f=new Pc,ic(f,i),gi(f,(en(),Zn)),U(f,(W(),uI),(_n(),!0)),s=e.Kc();s.Ob();)c=u(s.Pb(),10),h=new Pc,ic(h,c),gi(h,Wn),U(h,uI,!0),t=new y0,U(t,uI,!0),Zi(t,f),Ii(t,h)}function XMe(n,e,t,i){var r,c,s,f;r=FBn(n,e,t),c=FBn(n,t,e),s=u(ee(n.c,e),118),f=u(ee(n.c,t),118),r1)for(e=s0((t=new za,++n.b,t),n.d),f=ge(c,0);f.b!=f.d.c;)s=u(be(f),125),qs(Ls(Ds(Ns(Os(new hs,1),0),e),s))}function JMe(n,e,t){var i,r,c,s,f;for(t.Ug("Breaking Point Removing",1),n.a=u(v(e,(cn(),$l)),223),c=new C(e.b);c.a>16!=11&&e){if(pm(n,e))throw M(new Gn(d8+yen(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?IZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,10,i)),i=kV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,11,e,e))}function QMe(n){var e,t,i,r;for(i=new sd(new Ua(n.b).a);i.b;)t=O0(i),r=u(t.ld(),12),e=u(t.md(),10),U(e,(W(),st),r),U(r,Xu,e),U(r,kj,(_n(),!0)),gi(r,u(v(e,gc),64)),v(e,gc),U(r.i,(cn(),Kt),(Oi(),Rv)),u(v(Hi(r.i),Hc),21).Fc((pr(),kv))}function YMe(n,e,t){var i,r,c,s,f,h;if(c=0,s=0,n.c)for(h=new C(n.d.i.j);h.ac.a?-1:r.ah){for(a=n.d,n.d=K(Ldn,_cn,66,2*h+4,0,1),c=0;c=9223372036854776e3?(B4(),sun):(r=!1,n<0&&(r=!0,n=-n),i=0,n>=vd&&(i=wi(n/vd),n-=i*vd),t=0,n>=o3&&(t=wi(n/o3),n-=t*o3),e=wi(n),c=Yc(e,t,i),r&&H$(c),c)}function fTe(n){var e,t,i,r,c;if(c=new Z,nu(n.b,new A9n(c)),n.b.c.length=0,c.c.length!=0){for(e=(Ln(0,c.c.length),u(c.c[0],82)),t=1,i=c.c.length;t=-e&&i==e?new bi(Y(t-1),Y(i)):new bi(Y(t),Y(i-1))}function iqn(){return tr(),A(T(yNe,1),G,81,0,[Won,zon,b2,N_,bsn,IP,KP,Lw,asn,isn,hsn,Dw,dsn,nsn,wsn,Kon,NP,$_,SP,FP,psn,xP,_on,lsn,msn,BP,gsn,PP,Qon,ssn,osn,_P,Uon,AP,DP,qon,fv,csn,esn,fsn,O8,Xon,Gon,usn,tsn,LP,RP,Hon,$P,rsn,OP,Yon,Jon,dj,TP,Zon,Von])}function aTe(n,e,t){n.d=0,n.b=0,e.k==(Vn(),_c)&&t.k==_c&&u(v(e,(W(),st)),10)==u(v(t,st),10)&&(s$(e).j==(en(),Xn)?UHn(n,e,t):UHn(n,t,e)),e.k==_c&&t.k==Mi?s$(e).j==(en(),Xn)?n.d=1:n.b=1:t.k==_c&&e.k==Mi&&(s$(t).j==(en(),Xn)?n.b=1:n.d=1),J9e(n,e,t)}function dTe(n){var e,t,i,r,c,s,f,h,l,a,d;return d=nnn(n),e=n.a,h=e!=null,h&&y4(d,"category",n.a),r=Z9(new qa(n.d)),s=!r,s&&(l=new _a,bf(d,"knownOptions",l),t=new syn(l),qi(new qa(n.d),t)),c=Z9(n.g),f=!c,f&&(a=new _a,bf(d,"supportedFeatures",a),i=new fyn(a),qi(n.g,i)),d}function bTe(n){var e,t,i,r,c,s,f,h,l;for(i=!1,e=336,t=0,c=new GAn(n.length),f=n,h=0,l=f.length;h>16!=7&&e){if(pm(n,e))throw M(new Gn(d8+f_n(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?TZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=u(e,54).Rh(n,1,uE,i)),i=dW(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,7,e,e))}function rqn(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(pm(n,e))throw M(new Gn(d8+oBn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?SZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=u(e,54).Rh(n,0,sE,i)),i=bW(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,3,e,e))}function vF(n,e){Tm();var t,i,r,c,s,f,h,l,a;return e.d>n.d&&(f=n,n=e,e=f),e.d<63?tAe(n,e):(s=(n.d&-2)<<4,l=LJ(n,s),a=LJ(e,s),i=RF(n,Fp(l,s)),r=RF(e,Fp(a,s)),h=vF(l,a),t=vF(i,r),c=vF(RF(l,i),RF(r,a)),c=zF(zF(c,h),t),c=Fp(c,s),h=Fp(h,s<<1),zF(zF(h,c),t))}function a1(){a1=F,xH=new dg(sVn,0),Thn=new dg("LONGEST_PATH",1),Ahn=new dg("LONGEST_PATH_SOURCE",2),$H=new dg("COFFMAN_GRAHAM",3),Mhn=new dg(sR,4),Shn=new dg("STRETCH_WIDTH",5),CI=new dg("MIN_WIDTH",6),Sv=new dg("BF_MODEL_ORDER",7),Pv=new dg("DF_MODEL_ORDER",8)}function gTe(n,e,t){var i,r,c,s,f;for(s=b5(n,t),f=K(Qh,b1,10,e.length,0,1),i=0,c=s.Kc();c.Ob();)r=u(c.Pb(),12),on(un(v(r,(W(),kj))))&&(f[i++]=u(v(r,Xu),10));if(i=0;c+=t?1:-1)s=s|e.c.lg(h,c,t,i&&!on(un(v(e.j,(W(),ka))))&&!on(un(v(e.j,(W(),j2))))),s=s|e.q.ug(h,c,t),s=s|Gqn(n,h[c],t,i);return fi(n.c,e),s}function IA(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(a=EDn(n.j),d=0,g=a.length;d1&&(n.a=!0),Wbe(u(t.b,68),tt(Ki(u(e.b,68).c),ch(mi(Ki(u(t.b,68).a),u(e.b,68).a),r))),IOn(n,e),cqn(n,t)}function uqn(n){var e,t,i,r,c,s,f;for(c=new C(n.a.a);c.a0&&c>0?s.p=e++:i>0?s.p=t++:c>0?s.p=r++:s.p=t++}Dn(),Yt(n.j,new Kgn)}function yTe(n){var e,t;t=null,e=u(sn(n.g,0),18);do{if(t=e.d.i,kt(t,(W(),Es)))return u(v(t,Es),12).i;if(t.k!=(Vn(),zt)&&pe(new ie(ce(Qt(t).a.Kc(),new En))))e=u(fe(new ie(ce(Qt(t).a.Kc(),new En))),18);else if(t.k!=zt)return null}while(t&&t.k!=(Vn(),zt));return t}function jTe(n,e){var t,i,r,c,s,f,h,l,a;for(f=e.j,s=e.g,h=u(sn(f,f.c.length-1),113),a=(Ln(0,f.c.length),u(f.c[0],113)),l=Kx(n,s,h,a),c=1;cl&&(h=t,a=r,l=i);e.a=a,e.c=h}function ETe(n,e,t){var i,r,c,s,f,h,l;for(l=new Ul(new z7n(n)),s=A(T(FZn,1),DXn,12,0,[e,t]),f=0,h=s.length;fh-n.b&&fh-n.a&&f0?c.a?(f=c.b.Mf().a,t>f&&(r=(t-f)/2,c.d.b=r,c.d.c=r)):c.d.c=n.s+t:B6(n.u)&&(i=enn(c.b),i.c<0&&(c.d.b=-i.c),i.c+i.b>c.b.Mf().a&&(c.d.c=i.c+i.b-c.b.Mf().a))}function KTe(n,e){var t,i,r,c,s;s=new Z,t=e;do c=u(ee(n.b,t),131),c.B=t.c,c.D=t.d,Rn(s.c,c),t=u(ee(n.k,t),18);while(t);return i=(Ln(0,s.c.length),u(s.c[0],131)),i.j=!0,i.A=u(i.d.a.ec().Kc().Pb(),18).c.i,r=u(sn(s,s.c.length-1),131),r.q=!0,r.C=u(r.d.a.ec().Kc().Pb(),18).d.i,s}function _Te(n){var e,t;if(e=u(n.a,17).a,t=u(n.b,17).a,e>=0){if(e==t)return new bi(Y(-e-1),Y(-e-1));if(e==-t)return new bi(Y(-e),Y(t+1))}return y.Math.abs(e)>y.Math.abs(t)?e<0?new bi(Y(-e),Y(t)):new bi(Y(-e),Y(t+1)):new bi(Y(e+1),Y(t))}function HTe(n){var e,t;t=u(v(n,(cn(),ou)),171),e=u(v(n,(W(),Od)),311),t==(Yo(),ya)?(U(n,ou,jj),U(n,Od,(vl(),k2))):t==xw?(U(n,ou,jj),U(n,Od,(vl(),E3))):e==(vl(),k2)?(U(n,ou,ya),U(n,Od,mj)):e==E3&&(U(n,ou,xw),U(n,Od,mj))}function OA(){OA=F,Oj=new T3n,Jie=Ke(new ii,(Vi(),Oc),(tr(),SP)),Zie=Pu(Ke(new ii,Oc,xP),zr,$P),nre=ah(ah(s6(Pu(Ke(new ii,Vs,KP),zr,RP),Kc),BP),_P),Qie=Pu(Ke(Ke(Ke(new ii,Jh,IP),Kc,DP),Kc,fv),zr,OP),Yie=Pu(Ke(Ke(new ii,Kc,fv),Kc,AP),zr,TP)}function x5(){x5=F,ire=Ke(Pu(new ii,(Vi(),zr),(tr(),Yon)),Oc,SP),ore=ah(ah(s6(Pu(Ke(new ii,Vs,KP),zr,RP),Kc),BP),_P),rre=Pu(Ke(Ke(Ke(new ii,Jh,IP),Kc,DP),Kc,fv),zr,OP),ure=Ke(Ke(new ii,Oc,xP),zr,$P),cre=Pu(Ke(Ke(new ii,Kc,fv),Kc,AP),zr,TP)}function qTe(n,e,t,i,r){var c,s;(!fr(e)&&e.c.i.c==e.d.i.c||!sxn(cc(A(T(Ei,1),J,8,0,[r.i.n,r.n,r.a])),t))&&!fr(e)&&(e.c==r?w4(e.a,0,new rr(t)):Fe(e.a,new rr(t)),i&&!sf(n.a,t)&&(s=u(v(e,(cn(),Fr)),75),s||(s=new Mu,U(e,Fr,s)),c=new rr(t),xt(s,c,s.c.b,s.c),fi(n.a,c)))}function fqn(n,e){var t,i,r,c;for(c=Ae(er(Uh,xh(Ae(er(e==null?0:mt(e),Gh)),15))),t=c&n.b.length-1,r=null,i=n.b[t];i;r=i,i=i.a)if(i.d==c&&sh(i.i,e))return r?r.a=i.a:n.b[t]=i.a,Rjn(u(as(i.c),604),u(as(i.f),604)),V9(u(as(i.b),227),u(as(i.e),227)),--n.f,++n.e,!0;return!1}function UTe(n){var e,t;for(t=new ie(ce(ji(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),e.c.i.k!=(Vn(),Ac))throw M(new _l(oR+Hk(n)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function GTe(n,e,t){var i,r,c,s,f,h,l;if(r=aBn(n.Db&254),r==0)n.Eb=t;else{if(r==1)f=K(ki,Fn,1,2,5,1),c=Rx(n,e),c==0?(f[0]=t,f[1]=n.Eb):(f[0]=n.Eb,f[1]=t);else for(f=K(ki,Fn,1,r+1,5,1),s=cd(n.Eb),i=2,h=0,l=0;i<=128;i<<=1)i==e?f[l++]=t:n.Db&i&&(f[l++]=s[h++]);n.Eb=f}n.Db|=e}function hqn(n,e,t){var i,r,c,s;for(this.b=new Z,r=0,i=0,s=new C(n);s.a0&&(c=u(sn(this.b,0),176),r+=c.o,i+=c.p),r*=2,i*=2,e>1?r=wi(y.Math.ceil(r*e)):i=wi(y.Math.ceil(i/e)),this.a=new XY(r,i)}function lqn(n,e,t,i,r,c){var s,f,h,l,a,d,g,p,m,k,j,S;for(a=i,e.j&&e.o?(p=u(ee(n.f,e.A),60),k=p.d.c+p.d.b,--a):k=e.a.c+e.a.b,d=r,t.q&&t.o?(p=u(ee(n.f,t.C),60),l=p.d.c,++d):l=t.a.c,j=l-k,h=y.Math.max(2,d-a),f=j/h,m=k+f,g=a;g=0;s+=r?1:-1){for(f=e[s],h=i==(en(),Zn)?r?uc(f,i):Qo(uc(f,i)):r?Qo(uc(f,i)):uc(f,i),c&&(n.c[f.p]=h.gc()),d=h.Kc();d.Ob();)a=u(d.Pb(),12),n.d[a.p]=l++;hi(t,h)}}function dqn(n,e,t){var i,r,c,s,f,h,l,a;for(c=$(R(n.b.Kc().Pb())),l=$(R(Hve(e.b))),i=ch(Ki(n.a),l-t),r=ch(Ki(e.a),t-c),a=tt(i,r),ch(a,1/(l-c)),this.a=a,this.b=new Z,f=!0,s=n.b.Kc(),s.Pb();s.Ob();)h=$(R(s.Pb())),f&&h-t>_R&&(this.b.Fc(t),f=!1),this.b.Fc(h);f&&this.b.Fc(t)}function zTe(n){var e,t,i,r;if(hSe(n,n.n),n.d.c.length>0){for(Zv(n.c);qnn(n,u(E(new C(n.e.a)),125))>5,e&=31,i>=n.d)return n.e<0?(dh(),vQn):(dh(),T8);if(c=n.d-i,r=K(ye,_e,28,c+1,15,1),Fje(r,c,n.a,i,e),n.e<0){for(t=0;t0&&n.a[t]<<32-e){for(t=0;t=0?!1:(t=Qg((Du(),zi),r,e),t?(i=t.Ik(),(i>1||i==-1)&&v0(Lr(zi,t))!=3):!0)):!1}function JTe(n,e,t,i){var r,c,s,f,h;return f=Gr(u(L((!e.b&&(e.b=new Nn(he,e,4,7)),e.b),0),84)),h=Gr(u(L((!e.c&&(e.c=new Nn(he,e,5,8)),e.c),0),84)),At(f)==At(h)||Yb(h,f)?null:(s=X7(e),s==t?i:(c=u(ee(n.a,s),10),c&&(r=c.e,r)?r:null))}function QTe(n,e,t){var i,r,c,s,f;for(t.Ug("Longest path to source layering",1),n.a=e,f=n.a.a,n.b=K(ye,_e,28,f.c.length,15,1),i=0,s=new C(f);s.a0&&(t[0]+=n.d,s-=t[0]),t[2]>0&&(t[2]+=n.d,s-=t[2]),c=y.Math.max(0,s),t[1]=y.Math.max(t[1],s),$J(n,Wc,r.c+i.b+t[0]-(t[1]-s)/2,t),e==Wc&&(n.c.b=c,n.c.c=r.c+i.b+(c-s)/2)}function Eqn(){this.c=K(Pi,Tr,28,(en(),A(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn])).length,15,1),this.b=K(Pi,Tr,28,A(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn]).length,15,1),this.a=K(Pi,Tr,28,A(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn]).length,15,1),Bz(this.c,St),Bz(this.b,li),Bz(this.a,li)}function xc(n,e,t){var i,r,c,s;if(e<=t?(r=e,c=t):(r=t,c=e),i=0,n.b==null)n.b=K(ye,_e,28,2,15,1),n.b[0]=r,n.b[1]=c,n.c=!0;else{if(i=n.b.length,n.b[i-1]+1==r){n.b[i-1]=c;return}s=K(ye,_e,28,i+2,15,1),Ic(n.b,0,s,0,i),n.b=s,n.b[i-1]>=r&&(n.c=!1,n.a=!1),n.b[i++]=r,n.b[i]=c,n.c||Gg(n)}}function iAe(n,e,t){var i,r,c,s,f,h,l;for(l=e.d,n.a=new Gc(l.c.length),n.c=new de,f=new C(l);f.a=0?n.Lh(l,!1,!0):K0(n,t,!1),61));n:for(c=d.Kc();c.Ob();){for(r=u(c.Pb(),58),a=0;a1;)dw(r,r.i-1);return i}function Mqn(n,e){var t,i,r,c,s,f,h;for(t=new Cg,c=new C(n.b);c.an.d[s.p]&&(t+=AJ(n.b,c),W1(n.a,Y(c)));for(;!n6(n.a);)uQ(n.b,u(Sp(n.a),17).a)}return t}function fAe(n){var e,t,i,r,c,s,f,h,l;for(n.a=new vV,l=0,r=0,i=new C(n.i.b);i.af.d&&(a=f.d+f.a+l));t.c.d=a,e.a.zc(t,e),h=y.Math.max(h,t.c.d+t.c.a)}return h}function pr(){pr=F,ZP=new Db("COMMENTS",0),cs=new Db("EXTERNAL_PORTS",1),$8=new Db("HYPEREDGES",2),nI=new Db("HYPERNODES",3),kv=new Db("NON_FREE_PORTS",4),v2=new Db("NORTH_SOUTH_PORTS",5),x8=new Db(JXn,6),mv=new Db("CENTER_LABELS",7),vv=new Db("END_LABELS",8),eI=new Db("PARTITIONS",9)}function lAe(n,e,t,i,r){return i<0?(i=Ug(n,r,A(T(fn,1),J,2,6,[sB,fB,hB,lB,c3,aB,dB,bB,wB,gB,pB,mB]),e),i<0&&(i=Ug(n,r,A(T(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function aAe(n,e,t,i,r){return i<0?(i=Ug(n,r,A(T(fn,1),J,2,6,[sB,fB,hB,lB,c3,aB,dB,bB,wB,gB,pB,mB]),e),i<0&&(i=Ug(n,r,A(T(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function dAe(n,e,t,i,r,c){var s,f,h,l;if(f=32,i<0){if(e[0]>=n.length||(f=Xi(n,e[0]),f!=43&&f!=45)||(++e[0],i=yA(n,e),i<0))return!1;f==45&&(i=-i)}return f==32&&e[0]-t==2&&r.b==2&&(h=new WE,l=h.q.getFullYear()-ha+ha-80,s=l%100,c.a=i==s,i+=(l/100|0)*100+(i=0?ia(n):H6(ia(n1(n)))),A8[e]=TC(Bs(n,e),0)?ia(Bs(n,e)):H6(ia(n1(Bs(n,e)))),n=er(n,5);for(;e=l&&(h=i);h&&(a=y.Math.max(a,h.a.o.a)),a>g&&(d=l,g=a)}return d}function vAe(n){var e,t,i,r,c,s,f;for(c=new Ul(u(Se(new vbn),50)),f=li,t=new C(n.d);t.ajVn?Yt(h,n.b):i<=jVn&&i>EVn?Yt(h,n.d):i<=EVn&&i>CVn?Yt(h,n.c):i<=CVn&&Yt(h,n.a),c=Iqn(n,h,c);return r}function Oqn(n,e,t,i){var r,c,s,f,h,l;for(r=(i.c+i.a)/2,vo(e.j),Fe(e.j,r),vo(t.e),Fe(t.e,r),l=new Yjn,f=new C(n.f);f.a1,f&&(i=new V(r,t.b),Fe(e.a,i)),t5(e.a,A(T(Ei,1),J,8,0,[g,d]))}function aen(n,e,t){var i,r;for(e=48;t--)F9[t]=t-48<<24>>24;for(i=70;i>=65;i--)F9[i]=i-65+10<<24>>24;for(r=102;r>=97;r--)F9[r]=r-97+10<<24>>24;for(c=0;c<10;c++)SO[c]=48+c&ui;for(n=10;n<=15;n++)SO[n]=65+n-10&ui}function EAe(n,e){e.Ug("Process graph bounds",1),U(n,(pt(),rq),a7(O$(Ub(new Tn(null,new In(n.b,16)),new i4n)))),U(n,cq,a7(O$(Ub(new Tn(null,new In(n.b,16)),new r4n)))),U(n,pln,a7(I$(Ub(new Tn(null,new In(n.b,16)),new c4n)))),U(n,mln,a7(I$(Ub(new Tn(null,new In(n.b,16)),new u4n)))),e.Vg()}function CAe(n){var e,t,i,r,c;r=u(v(n,(cn(),xd)),21),c=u(v(n,kI),21),t=new V(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),e=new rr(t),r.Hc((go(),Qw))&&(i=u(v(n,jv),8),c.Hc((io(),Kv))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),e.a=y.Math.max(t.a,i.a),e.b=y.Math.max(t.b,i.b)),on(un(v(n,SH)))||nIe(n,t,e)}function MAe(n,e){var t,i,r,c;for(c=uc(e,(en(),ae)).Kc();c.Ob();)i=u(c.Pb(),12),t=u(v(i,(W(),Xu)),10),t&&qs(Ls(Ds(Ns(Os(new hs,0),.1),n.i[e.p].d),n.i[t.p].a));for(r=uc(e,Xn).Kc();r.Ob();)i=u(r.Pb(),12),t=u(v(i,(W(),Xu)),10),t&&qs(Ls(Ds(Ns(Os(new hs,0),.1),n.i[t.p].d),n.i[e.p].a))}function yF(n){var e,t,i,r,c,s;if(!n.c){if(s=new vvn,e=L9,c=e.a.zc(n,e),c==null){for(i=new ne(Sc(n));i.e!=i.i.gc();)t=u(ue(i),89),r=BA(t),D(r,90)&&Bt(s,yF(u(r,29))),ve(s,t);e.a.Bc(n)!=null,e.a.gc()==0}k8e(s),ew(s),n.c=new pg((u(L(H((G1(),Hn).o),15),19),s.i),s.g),Zu(n).b&=-33}return n.c}function ben(n){var e;if(n.c!=10)throw M(new Le($e((Ie(),qS))));switch(e=n.a,e){case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw M(new Le($e((Ie(),is))))}return e}function $qn(n){var e,t,i,r,c;if(n.l==0&&n.m==0&&n.h==0)return"0";if(n.h==My&&n.m==0&&n.l==0)return"-9223372036854775808";if(n.h>>19)return"-"+$qn(em(n));for(t=n,i="";!(t.l==0&&t.m==0&&t.h==0);){if(r=QN(QA),t=Ven(t,r,!0),e=""+rEn(wa),!(t.l==0&&t.m==0&&t.h==0))for(c=9-e.length;c>0;c--)e="0"+e;i=e+i}return i}function TAe(n){var e,t,i,r,c,s,f;for(e=!1,t=0,r=new C(n.d.b);r.a=n.a||!QZ(e,t))return-1;if(L4(u(i.Kb(e),20)))return 1;for(r=0,s=u(i.Kb(e),20).Kc();s.Ob();)if(c=u(s.Pb(),18),h=c.c.i==e?c.d.i:c.c.i,f=wen(n,h,t,i),f==-1||(r=y.Math.max(r,f),r>n.c-1))return-1;return r+1}function xqn(n,e){var t,i,r,c,s,f;if(x(e)===x(n))return!0;if(!D(e,15)||(i=u(e,15),f=n.gc(),i.gc()!=f))return!1;if(s=i.Kc(),n.Yi()){for(t=0;t0){if(n._j(),e!=null){for(c=0;c>24;case 97:case 98:case 99:case 100:case 101:case 102:return n-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return n-65+10<<24>>24;default:throw M(new th("Invalid hexadecimal"))}}function NA(){NA=F,Zun=new ag("SPIRAL",0),Wun=new ag("LINE_BY_LINE",1),Jun=new ag("MANHATTAN",2),Vun=new ag("JITTER",3),f_=new ag("QUADRANTS_LINE_BY_LINE",4),Yun=new ag("QUADRANTS_MANHATTAN",5),Qun=new ag("QUADRANTS_JITTER",6),Xun=new ag("COMBINE_LINE_BY_LINE_MANHATTAN",7),zun=new ag("COMBINE_JITTER_MANHATTAN",8)}function Bqn(n,e,t,i){var r,c,s,f,h,l;for(h=zx(n,t),l=zx(e,t),r=!1;h&&l&&(i||E7e(h,l,t));)s=zx(h,t),f=zx(l,t),sk(e),sk(n),c=h.c,XF(h,!1),XF(l,!1),t?(uw(e,l.p,c),e.p=l.p,uw(n,h.p+1,c),n.p=h.p):(uw(n,h.p,c),n.p=h.p,uw(e,l.p+1,c),e.p=l.p),$i(h,null),$i(l,null),h=s,l=f,r=!0;return r}function Rqn(n){switch(n.g){case 0:return new Q5n;case 1:return new W5n;case 3:return new aCn;case 4:return new zpn;case 5:return new KAn;case 6:return new J5n;case 2:return new V5n;case 7:return new H5n;case 8:return new U5n;default:throw M(new Gn("No implementation is available for the layerer "+(n.f!=null?n.f:""+n.g)))}}function DAe(n,e,t,i){var r,c,s,f,h;for(r=!1,c=!1,f=new C(i.j);f.a=e.length)throw M(new Ir("Greedy SwitchDecider: Free layer not in graph."));this.c=e[n],this.e=new D7(i),T$(this.e,this.c,(en(),Wn)),this.i=new D7(i),T$(this.i,this.c,Zn),this.f=new iPn(this.c),this.a=!c&&r.i&&!r.s&&this.c[0].k==(Vn(),Zt),this.a&&zje(this,n,e.length)}function _qn(n,e){var t,i,r,c,s,f;c=!n.B.Hc((io(),rE)),s=n.B.Hc(dU),n.a=new TBn(s,c,n.c),n.n&&VW(n.a.n,n.n),mD(n.g,(wf(),Wc),n.a),e||(i=new y5(1,c,n.c),i.n.a=n.k,Pp(n.p,(en(),Xn),i),r=new y5(1,c,n.c),r.n.d=n.k,Pp(n.p,ae,r),f=new y5(0,c,n.c),f.n.c=n.k,Pp(n.p,Wn,f),t=new y5(0,c,n.c),t.n.b=n.k,Pp(n.p,Zn,t))}function NAe(n){var e,t,i;switch(e=u(v(n.d,(cn(),$l)),223),e.g){case 2:t=jLe(n);break;case 3:t=(i=new Z,qt(ut(_r(rc(rc(new Tn(null,new In(n.d.b,16)),new tpn),new ipn),new rpn),new q2n),new j7n(i)),i);break;default:throw M(new Or("Compaction not supported for "+e+" edges."))}UIe(n,t),qi(new qa(n.g),new k7n(n))}function $Ae(n,e){var t,i,r,c,s,f,h;if(e.Ug("Process directions",1),t=u(v(n,(lc(),pb)),88),t!=(ci(),Wf))for(r=ge(n.b,0);r.b!=r.d.c;){switch(i=u(be(r),39),f=u(v(i,(pt(),Nj)),17).a,h=u(v(i,$j),17).a,t.g){case 4:h*=-1;break;case 1:c=f,f=h,h=c;break;case 2:s=f,f=-h,h=s}U(i,Nj,Y(f)),U(i,$j,Y(h))}e.Vg()}function xAe(n,e){var t;return t=new xO,e&&Ur(t,u(ee(n.a,uE),96)),D(e,422)&&Ur(t,u(ee(n.a,oE),96)),D(e,366)?(Ur(t,u(ee(n.a,Ar),96)),t):(D(e,84)&&Ur(t,u(ee(n.a,he),96)),D(e,207)?(Ur(t,u(ee(n.a,Ye),96)),t):D(e,193)?(Ur(t,u(ee(n.a,Qu),96)),t):(D(e,326)&&Ur(t,u(ee(n.a,Vt),96)),t))}function FAe(n){var e,t,i,r,c,s,f,h;for(h=new kLn,f=new C(n.a);f.a0&&e=0)return!1;if(e.p=t.b,nn(t.e,e),r==(Vn(),Mi)||r==_c){for(s=new C(e.j);s.an.d[f.p]&&(t+=AJ(n.b,c),W1(n.a,Y(c)))):++s;for(t+=n.b.d*s;!n6(n.a);)uQ(n.b,u(Sp(n.a),17).a)}return t}function Qqn(n){var e,t,i,r,c,s;return c=0,e=gs(n),e.kk()&&(c|=4),n.Bb&$u&&(c|=2),D(n,102)?(t=u(n,19),r=br(t),t.Bb&kc&&(c|=32),r&&(se(Gb(r)),c|=8,s=r.t,(s>1||s==-1)&&(c|=16),r.Bb&kc&&(c|=64)),t.Bb&hr&&(c|=Tw),c|=Gs):D(e,468)?c|=512:(i=e.kk(),i&&i.i&1&&(c|=256)),n.Bb&512&&(c|=128),c}function WAe(n,e){var t;return n.f==TU?(t=v0(Lr((Du(),zi),e)),n.e?t==4&&e!=(n3(),K3)&&e!=(n3(),R3)&&e!=(n3(),AU)&&e!=(n3(),SU):t==2):n.d&&(n.d.Hc(e)||n.d.Hc($p(Lr((Du(),zi),e)))||n.d.Hc(Qg((Du(),zi),n.b,e)))?!0:n.f&&ten((Du(),n.f),q7(Lr(zi,e)))?(t=v0(Lr(zi,e)),n.e?t==4:t==2):!1}function JAe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(g=-1,p=0,l=n,a=0,d=l.length;a0&&++p;++g}return p}function QAe(n,e,t,i){var r,c,s,f,h,l,a,d;return s=u(z(t,(He(),L3)),8),h=s.a,a=s.b+n,r=y.Math.atan2(a,h),r<0&&(r+=Cd),r+=e,r>Cd&&(r-=Cd),f=u(z(i,L3),8),l=f.a,d=f.b+n,c=y.Math.atan2(d,l),c<0&&(c+=Cd),c+=e,c>Cd&&(c-=Cd),Tf(),Ks(1e-10),y.Math.abs(r-c)<=1e-10||r==c||isNaN(r)&&isNaN(c)?0:rc?1:u0(isNaN(r),isNaN(c))}function CF(n){var e,t,i,r,c,s,f;for(f=new de,i=new C(n.a.b);i.a=n.o)throw M(new QG);f=e>>5,s=e&31,c=Bs(1,Ae(Bs(s,1))),r?n.n[t][f]=lf(n.n[t][f],c):n.n[t][f]=vi(n.n[t][f],VV(c)),c=Bs(c,1),i?n.n[t][f]=lf(n.n[t][f],c):n.n[t][f]=vi(n.n[t][f],VV(c))}catch(h){throw h=It(h),D(h,333)?M(new Ir(GB+n.o+"*"+n.p+zB+e+ur+t+XB)):M(h)}}function nSe(n,e,t,i){var r,c,s,f,h,l,a,d,g;for(g=new Ul(new G7n(n)),f=A(T(Qh,1),b1,10,0,[e,t]),h=0,l=f.length;h0&&(i=(!n.n&&(n.n=new q(Ar,n,1,7)),u(L(n.n,0),135)).a,!i||Re(Re((e.a+=' "',e),i),'"'))),Re(e0(Re(e0(Re(e0(Re(e0((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function Yqn(n){var e,t,i;return n.Db&64?iF(n):(e=new mo(Ecn),t=n.k,t?Re(Re((e.a+=' "',e),t),'"'):(!n.n&&(n.n=new q(Ar,n,1,7)),n.n.i>0&&(i=(!n.n&&(n.n=new q(Ar,n,1,7)),u(L(n.n,0),135)).a,!i||Re(Re((e.a+=' "',e),i),'"'))),Re(e0(Re(e0(Re(e0(Re(e0((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function iSe(n,e){var t,i,r,c,s;for(e==(h5(),XH)&&Qk(u(ot(n.a,(ow(),wj)),15)),r=u(ot(n.a,(ow(),wj)),15).Kc();r.Ob();)switch(i=u(r.Pb(),105),t=u(sn(i.j,0),113).d.j,c=new _u(i.j),Yt(c,new lpn),e.g){case 2:Qx(n,c,t,(I0(),va),1);break;case 1:case 0:s=qMe(c),Qx(n,new Jl(c,0,s),t,(I0(),va),0),Qx(n,new Jl(c,s,c.c.length),t,va,1)}}function TF(n,e){var t,i,r,c,s,f,h;if(e==null||e.length==0)return null;if(r=u(Nc(n.a,e),143),!r){for(i=(f=new ol(n.b).a.vc().Kc(),new Tb(f));i.a.Ob();)if(t=(c=u(i.a.Pb(),44),u(c.md(),143)),s=t.c,h=e.length,An(s.substr(s.length-h,h),e)&&(e.length==s.length||Xi(s,s.length-e.length-1)==46)){if(r)return null;r=t}r&&Dr(n.a,e,r)}return r}function rSe(n,e){var t,i,r,c;return t=new Mbn,i=u(Wr(_r(new Tn(null,new In(n.f,16)),t),Wb(new Y2,new Z2,new np,new ep,A(T(xr,1),G,108,0,[(Gu(),Aw),Yr]))),21),r=i.gc(),i=u(Wr(_r(new Tn(null,new In(e.f,16)),t),Wb(new Y2,new Z2,new np,new ep,A(T(xr,1),G,108,0,[Aw,Yr]))),21),c=i.gc(),rr.p?(gi(c,ae),c.d&&(f=c.o.b,e=c.a.b,c.a.b=f-e)):c.j==ae&&r.p>n.p&&(gi(c,Xn),c.d&&(f=c.o.b,e=c.a.b,c.a.b=-(f-e)));break}return r}function sy(n,e,t,i,r){var c,s,f,h,l,a,d;if(!(D(e,207)||D(e,366)||D(e,193)))throw M(new Gn("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return s=n.a/2,h=e.i+i-s,a=e.j+r-s,l=h+e.g+n.a,d=a+e.f+n.a,c=new Mu,Fe(c,new V(h,a)),Fe(c,new V(h,d)),Fe(c,new V(l,d)),Fe(c,new V(l,a)),f=new bF(c),Ur(f,e),t&&Ve(n.b,e,f),f}function Am(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=new V(e,t),a=new C(n.a);a.a1,f&&(i=new V(r,t.b),Fe(e.a,i)),t5(e.a,A(T(Ei,1),J,8,0,[g,d]))}function ps(){ps=F,AI=new Lb(kh,0),Aj=new Lb("NIKOLOV",1),Sj=new Lb("NIKOLOV_PIXEL",2),$hn=new Lb("NIKOLOV_IMPROVED",3),xhn=new Lb("NIKOLOV_IMPROVED_PIXEL",4),Nhn=new Lb("DUMMYNODE_PERCENTAGE",5),Fhn=new Lb("NODECOUNT_PERCENTAGE",6),SI=new Lb("NO_BOUNDARY",7),wb=new Lb("MODEL_ORDER_LEFT_TO_RIGHT",8),Uw=new Lb("MODEL_ORDER_RIGHT_TO_LEFT",9)}function bSe(n){var e,t,i,r,c;for(i=n.length,e=new e6,c=0;c=40,s&&wPe(n),CIe(n),zTe(n),t=gBn(n),i=0;t&&i0&&Fe(n.f,c)):(n.c[s]-=l+1,n.c[s]<=0&&n.a[s]>0&&Fe(n.e,c))))}function lUn(n,e,t,i){var r,c,s,f,h,l,a;for(h=new V(t,i),mi(h,u(v(e,(pt(),Ov)),8)),a=ge(e.b,0);a.b!=a.d.c;)l=u(be(a),39),tt(l.e,h),Fe(n.b,l);for(f=u(Wr(cJ(new Tn(null,new In(e.a,16))),qu(new ju,new yu,new Eu,A(T(xr,1),G,108,0,[(Gu(),Yr)]))),15).Kc();f.Ob();){for(s=u(f.Pb(),65),c=ge(s.a,0);c.b!=c.d.c;)r=u(be(c),8),r.a+=h.a,r.b+=h.b;Fe(n.a,s)}}function Ien(n,e){var t,i,r,c;if(0<(D(n,16)?u(n,16).gc():wl(n.Kc()))){if(r=e,1=0&&hc*2?(a=new hT(d),l=Su(s)/ao(s),h=QF(a,e,new up,t,i,r,l),tt(ff(a.e),h),d.c.length=0,c=0,Rn(d.c,a),Rn(d.c,s),c=Su(a)*ao(a)+Su(s)*ao(s)):(Rn(d.c,s),c+=Su(s)*ao(s));return d}function dUn(n,e){var t,i,r,c,s,f;if(f=u(v(e,(cn(),Kt)),101),f==(Oi(),tl)||f==qc)for(r=new V(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a).b,s=new C(n.a);s.at?e:t;l<=d;++l)l==t?f=i++:(c=r[l],a=m.am(c.Lk()),l==e&&(h=l==d&&!a?i-1:i),a&&++i);return g=u(m5(n,e,t),76),f!=h&&e4(n,new rk(n.e,7,s,Y(f),p.md(),h)),g}}else return u(lF(n,e,t),76);return u(m5(n,e,t),76)}function NSe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Port order processing",1),h=u(v(n,(cn(),dhn)),430),i=new C(n.b);i.a=0&&(f=S7e(n,s),!(f&&(l<22?h.l|=1<>>1,s.m=a>>>1|(d&1)<<21,s.l=g>>>1|(a&1)<<21,--l;return t&&H$(h),c&&(i?(wa=em(n),r&&(wa=Qxn(wa,(B4(),fun)))):wa=Yc(n.l,n.m,n.h)),h}function FSe(n,e){var t,i,r,c,s,f,h,l,a,d;for(l=n.e[e.c.p][e.p]+1,h=e.c.a.c.length+1,f=new C(n.a);f.a0&&(zn(0,n.length),n.charCodeAt(0)==45||(zn(0,n.length),n.charCodeAt(0)==43))?1:0,i=s;it)throw M(new th(z0+n+'"'));return f}function BSe(n){var e,t,i,r,c,s,f;for(s=new Ct,c=new C(n.a);c.a1)&&e==1&&u(n.a[n.b],10).k==(Vn(),Ac)?t3(u(n.a[n.b],10),(To(),nl)):i&&(!t||(n.c-n.b&n.a.length-1)>1)&&e==1&&u(n.a[n.c-1&n.a.length-1],10).k==(Vn(),Ac)?t3(u(n.a[n.c-1&n.a.length-1],10),(To(),Aa)):(n.c-n.b&n.a.length-1)==2?(t3(u(f5(n),10),(To(),nl)),t3(u(f5(n),10),Aa)):dMe(n,r),MJ(n)}function _Se(n,e,t){var i,r,c,s,f;for(c=0,r=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));r.e!=r.i.gc();)i=u(ue(r),27),s="",(!i.n&&(i.n=new q(Ar,i,1,7)),i.n).i==0||(s=u(L((!i.n&&(i.n=new q(Ar,i,1,7)),i.n),0),135).a),f=new q$(c++,e,s),Ur(f,i),U(f,(pt(),r9),i),f.e.b=i.j+i.f/2,f.f.a=y.Math.max(i.g,1),f.e.a=i.i+i.g/2,f.f.b=y.Math.max(i.f,1),Fe(e.b,f),Vc(t.f,i,f)}function HSe(n){var e,t,i,r,c;i=u(v(n,(W(),st)),27),c=u(z(i,(cn(),xd)),181).Hc((go(),Gd)),n.e||(r=u(v(n,Hc),21),e=new V(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),r.Hc((pr(),cs))?(ht(i,Kt,(Oi(),qc)),q0(i,e.a,e.b,!1,!0)):on(un(z(i,SH)))||q0(i,e.a,e.b,!0,!0)),c?ht(i,xd,yn(Gd)):ht(i,xd,(t=u(of(A9),9),new _o(t,u(xs(t,t.length),9),0)))}function Oen(n,e,t){var i,r,c,s;if(e[0]>=n.length)return t.o=0,!0;switch(Xi(n,e[0])){case 43:r=1;break;case 45:r=-1;break;default:return t.o=0,!0}if(++e[0],c=e[0],s=yA(n,e),s==0&&e[0]==c)return!1;if(e[0]f&&(f=r,a.c.length=0),r==f&&nn(a,new bi(t.c.i,t)));Dn(),Yt(a,n.c),a0(n.b,h.p,a)}}function zSe(n,e){var t,i,r,c,s,f,h,l,a;for(s=new C(e.b);s.af&&(f=r,a.c.length=0),r==f&&nn(a,new bi(t.d.i,t)));Dn(),Yt(a,n.c),a0(n.f,h.p,a)}}function XSe(n,e){var t,i,r,c,s,f,h,l;if(l=un(v(e,(lc(),Ire))),l==null||(Jn(l),l)){for(mCe(n,e),r=new Z,h=ge(e.b,0);h.b!=h.d.c;)s=u(be(h),39),t=vnn(n,s,null),t&&(Ur(t,e),Rn(r.c,t));if(n.a=null,n.b=null,r.c.length>1)for(i=new C(r);i.a=0&&f!=t&&(c=new Ci(n,1,f,s,null),i?i.nj(c):i=c),t>=0&&(c=new Ci(n,1,t,f==t?s:null,e),i?i.nj(c):i=c)),i}function gUn(n){var e,t,i;if(n.b==null){if(i=new Hl,n.i!=null&&(Er(i,n.i),i.a+=":"),n.f&256){for(n.f&256&&n.a!=null&&(lge(n.i)||(i.a+="//"),Er(i,n.a)),n.d!=null&&(i.a+="/",Er(i,n.d)),n.f&16&&(i.a+="/"),e=0,t=n.j.length;eg?!1:(d=(h=q5(i,g,!1),h.a),a+f+d<=e.b&&(ck(t,c-t.s),t.c=!0,ck(i,c-t.s),_k(i,t.s,t.t+t.d+f),i.k=!0,KQ(t.q,i),p=!0,r&&(wT(e,i),i.j=e,n.c.length>s&&(Uk((Ln(s,n.c.length),u(n.c[s],186)),i),(Ln(s,n.c.length),u(n.c[s],186)).a.c.length==0&&Yl(n,s)))),p)}function nPe(n,e){var t,i,r,c,s,f;if(e.Ug("Partition midprocessing",1),r=new j0,qt(ut(new Tn(null,new In(n.a,16)),new Hgn),new f7n(r)),r.d!=0){for(f=u(Wr(sJ((c=r.i,new Tn(null,(c||(r.i=new Mg(r,r.c))).Nc()))),qu(new ju,new yu,new Eu,A(T(xr,1),G,108,0,[(Gu(),Yr)]))),15),i=f.Kc(),t=u(i.Pb(),17);i.Ob();)s=u(i.Pb(),17),zMe(u(ot(r,t),21),u(ot(r,s),21)),t=s;e.Vg()}}function vUn(n,e,t){var i,r,c,s,f,h,l,a;if(e.p==0){for(e.p=1,s=t,s||(r=new Z,c=(i=u(of(lr),9),new _o(i,u(xs(i,i.length),9),0)),s=new bi(r,c)),u(s.a,15).Fc(e),e.k==(Vn(),Zt)&&u(s.b,21).Fc(u(v(e,(W(),gc)),64)),h=new C(e.j);h.a0){if(r=u(n.Ab.g,2033),e==null){for(c=0;ct.s&&fs)return en(),Zn;break;case 4:case 3:if(a<0)return en(),Xn;if(a+t>c)return en(),ae}return h=(l+f/2)/s,i=(a+t/2)/c,h+i<=1&&h-i<=0?(en(),Wn):h+i>=1&&h-i>=0?(en(),Zn):i<.5?(en(),Xn):(en(),ae)}function cPe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(t=!1,a=$(R(v(e,(cn(),bb)))),m=fa*a,r=new C(e.b);r.ah+m&&(k=d.g+g.g,g.a=(g.g*g.a+d.g*d.a)/k,g.g=k,d.f=g,t=!0)),c=f,d=g;return t}function EUn(n,e,t,i,r,c,s){var f,h,l,a,d,g;for(g=new mp,l=e.Kc();l.Ob();)for(f=u(l.Pb(),853),d=new C(f.Rf());d.a0?f.a?(l=f.b.Mf().b,r>l&&(n.v||f.c.d.c.length==1?(s=(r-l)/2,f.d.d=s,f.d.a=s):(t=u(sn(f.c.d,0),187).Mf().b,i=(t-l)/2,f.d.d=y.Math.max(0,i),f.d.a=r-i-l))):f.d.a=n.t+r:B6(n.u)&&(c=enn(f.b),c.d<0&&(f.d.d=-c.d),c.d+c.a>f.b.Mf().b&&(f.d.a=c.d+c.a-f.b.Mf().b))}function Us(){Us=F,k3=new Ni((He(),Wj),Y(1)),yP=new Ni(qd,80),tZn=new Ni(qan,5),zYn=new Ni(x2,Um),nZn=new Ni(sU,Y(1)),eZn=new Ni(fU,(_n(),!0)),gon=new o0(50),YYn=new Ni(C1,gon),don=Xj,pon=m9,XYn=new Ni(Yq,!1),won=Vj,JYn=Vw,QYn=Ta,WYn=Hd,VYn=K2,ZYn=Ww,bon=(lnn(),RYn),y_=qYn,kP=BYn,k_=KYn,mon=HYn,cZn=v9,uZn=cO,rZn=Jj,iZn=rO,von=(Gp(),Yw),new Ni($3,von)}function sPe(n,e){var t;switch(dk(n)){case 6:return Ai(e);case 7:return $b(e);case 8:return Nb(e);case 3:return Array.isArray(e)&&(t=dk(e),!(t>=14&&t<=16));case 11:return e!=null&&typeof e===eB;case 12:return e!=null&&(typeof e===my||typeof e==eB);case 0:return Tx(e,n.__elementTypeId$);case 2:return uN(e)&&e.Tm!==Q2;case 1:return uN(e)&&e.Tm!==Q2||Tx(e,n.__elementTypeId$);default:return!0}}function CUn(n,e){var t,i,r,c;return i=y.Math.min(y.Math.abs(n.c-(e.c+e.b)),y.Math.abs(n.c+n.b-e.c)),c=y.Math.min(y.Math.abs(n.d-(e.d+e.a)),y.Math.abs(n.d+n.a-e.d)),t=y.Math.abs(n.c+n.b/2-(e.c+e.b/2)),t>n.b/2+e.b/2||(r=y.Math.abs(n.d+n.a/2-(e.d+e.a/2)),r>n.a/2+e.a/2)?1:t==0&&r==0?0:t==0?c/r+1:r==0?i/t+1:y.Math.min(i/t,c/r)+1}function fPe(n,e){var t,i,r,c,s,f,h;for(c=0,f=0,h=0,r=new C(n.f.e);r.a0&&n.d!=(n5(),C_)&&(f+=s*(i.d.a+n.a[e.a][i.a]*(e.d.a-i.d.a)/t)),t>0&&n.d!=(n5(),j_)&&(h+=s*(i.d.b+n.a[e.a][i.a]*(e.d.b-i.d.b)/t)));switch(n.d.g){case 1:return new V(f/c,e.d.b);case 2:return new V(e.d.a,h/c);default:return new V(f/c,h/c)}}function MUn(n){var e,t,i,r,c,s;for(t=(!n.a&&(n.a=new ti(xo,n,5)),n.a).i+2,s=new Gc(t),nn(s,new V(n.j,n.k)),qt(new Tn(null,(!n.a&&(n.a=new ti(xo,n,5)),new In(n.a,16))),new $kn(s)),nn(s,new V(n.b,n.c)),e=1;e0&&(Mk(h,!1,(ci(),Br)),Mk(h,!0,Xr)),nu(e.g,new BCn(n,t)),Ve(n.g,e,t)}function SUn(){SUn=F;var n;for(pun=A(T(ye,1),_e,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),JK=K(ye,_e,28,37,15,1),gQn=A(T(ye,1),_e,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),mun=K(Fa,SB,28,37,14,1),n=2;n<=36;n++)JK[n]=wi(y.Math.pow(n,pun[n])),mun[n]=zk(jy,JK[n])}function hPe(n){var e;if((!n.a&&(n.a=new q(Mt,n,6,6)),n.a).i!=1)throw M(new Gn(tWn+(!n.a&&(n.a=new q(Mt,n,6,6)),n.a).i));return e=new Mu,Ek(u(L((!n.b&&(n.b=new Nn(he,n,4,7)),n.b),0),84))&&Bi(e,gzn(n,Ek(u(L((!n.b&&(n.b=new Nn(he,n,4,7)),n.b),0),84)),!1)),Ek(u(L((!n.c&&(n.c=new Nn(he,n,5,8)),n.c),0),84))&&Bi(e,gzn(n,Ek(u(L((!n.c&&(n.c=new Nn(he,n,5,8)),n.c),0),84)),!0)),e}function PUn(n,e){var t,i,r,c,s;for(e.d?r=n.a.c==(fh(),gb)?ji(e.b):Qt(e.b):r=n.a.c==(fh(),y1)?ji(e.b):Qt(e.b),c=!1,i=new ie(ce(r.a.Kc(),new En));pe(i);)if(t=u(fe(i),18),s=on(n.a.f[n.a.g[e.b.p].p]),!(!s&&!fr(t)&&t.c.i.c==t.d.i.c)&&!(on(n.a.n[n.a.g[e.b.p].p])||on(n.a.n[n.a.g[e.b.p].p]))&&(c=!0,sf(n.b,n.a.g[h7e(t,e.b).p])))return e.c=!0,e.a=t,e;return e.c=c,e.a=null,e}function Len(n,e,t){var i,r,c,s,f,h,l;if(i=t.gc(),i==0)return!1;if(n.Pj())if(h=n.Qj(),qY(n,e,t),s=i==1?n.Ij(3,null,t.Kc().Pb(),e,h):n.Ij(5,null,t,e,h),n.Mj()){for(f=i<100?null:new F1(i),c=e+i,r=e;r0){for(s=0;s>16==-15&&n.Cb.Yh()&&h$(new c$(n.Cb,9,13,t,n.c,f1(no(u(n.Cb,62)),n))):D(n.Cb,90)&&n.Db>>16==-23&&n.Cb.Yh()&&(e=n.c,D(e,90)||(e=(On(),Is)),D(t,90)||(t=(On(),Is)),h$(new c$(n.Cb,9,10,t,e,f1(Sc(u(n.Cb,29)),n)))))),n.c}function dPe(n,e,t){var i,r,c,s,f,h,l,a,d;for(t.Ug("Hyperedge merging",1),FCe(n,e),h=new xi(e.b,0);h.b0,f=HT(e,c),XX(t?f.b:f.g,e),xg(f).c.length==1&&xt(i,f,i.c.b,i.c),r=new bi(c,e),W1(n.o,r),du(n.e.a,c))}function xUn(n,e){var t,i,r,c,s,f,h;return i=y.Math.abs(wM(n.b).a-wM(e.b).a),f=y.Math.abs(wM(n.b).b-wM(e.b).b),r=0,h=0,t=1,s=1,i>n.b.b/2+e.b.b/2&&(r=y.Math.min(y.Math.abs(n.b.c-(e.b.c+e.b.b)),y.Math.abs(n.b.c+n.b.b-e.b.c)),t=1-r/i),f>n.b.a/2+e.b.a/2&&(h=y.Math.min(y.Math.abs(n.b.d-(e.b.d+e.b.a)),y.Math.abs(n.b.d+n.b.a-e.b.d)),s=1-h/f),c=y.Math.min(t,s),(1-c)*y.Math.sqrt(i*i+f*f)}function gPe(n){var e,t,i,r;for(JF(n,n.e,n.f,(E0(),Ca),!0,n.c,n.i),JF(n,n.e,n.f,Ca,!1,n.c,n.i),JF(n,n.e,n.f,I2,!0,n.c,n.i),JF(n,n.e,n.f,I2,!1,n.c,n.i),aPe(n,n.c,n.e,n.f,n.i),i=new xi(n.i,0);i.b=65;t--)nh[t]=t-65<<24>>24;for(i=122;i>=97;i--)nh[i]=i-97+26<<24>>24;for(r=57;r>=48;r--)nh[r]=r-48+52<<24>>24;for(nh[43]=62,nh[47]=63,c=0;c<=25;c++)O1[c]=65+c&ui;for(s=26,h=0;s<=51;++s,h++)O1[s]=97+h&ui;for(n=52,f=0;n<=61;++n,f++)O1[n]=48+f&ui;O1[62]=43,O1[63]=47}function FUn(n,e){var t,i,r,c,s,f;return r=$Q(n),f=$Q(e),r==f?n.e==e.e&&n.a<54&&e.a<54?n.fe.f?1:0:(i=n.e-e.e,t=(n.d>0?n.d:y.Math.floor((n.a-1)*Uzn)+1)-(e.d>0?e.d:y.Math.floor((e.a-1)*Uzn)+1),t>i+1?r:t0&&(s=Ig(s,VUn(i))),zBn(c,s))):rl&&(g=0,p+=h+e,h=0),Am(s,g,p),t=y.Math.max(t,g+a.a),h=y.Math.max(h,a.b),g+=a.a+e;return new V(t+e,p+h+e)}function Fen(n,e){var t,i,r,c,s,f,h;if(!Sf(n))throw M(new Or(eWn));if(i=Sf(n),c=i.g,r=i.f,c<=0&&r<=0)return en(),sc;switch(f=n.i,h=n.j,e.g){case 2:case 1:if(f<0)return en(),Wn;if(f+n.g>c)return en(),Zn;break;case 4:case 3:if(h<0)return en(),Xn;if(h+n.f>r)return en(),ae}return s=(f+n.g/2)/c,t=(h+n.f/2)/r,s+t<=1&&s-t<=0?(en(),Wn):s+t>=1&&s-t>=0?(en(),Zn):t<.5?(en(),Xn):(en(),ae)}function vPe(n,e,t,i,r){var c,s;if(c=nr(vi(e[0],mr),vi(i[0],mr)),n[0]=Ae(c),c=d0(c,32),t>=r){for(s=1;s0&&(r.b[s++]=0,r.b[s++]=c.b[0]-1),e=1;e0&&(JO(h,h.d-r.d),r.c==(af(),Ea)&&ife(h,h.a-r.d),h.d<=0&&h.i>0&&xt(e,h,e.c.b,e.c)));for(c=new C(n.f);c.a0&&(AE(f,f.i-r.d),r.c==(af(),Ea)&&rfe(f,f.b-r.d),f.i<=0&&f.d>0&&xt(t,f,t.c.b,t.c)))}function jPe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p;for(Dn(),Yt(n,new Wmn),s=$7(n),p=new Z,g=new Z,f=null,h=0;s.b!=0;)c=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),163),!f||Su(f)*ao(f)/21&&(h>Su(f)*ao(f)/2||s.b==0)&&(d=new hT(g),a=Su(f)/ao(f),l=QF(d,e,new up,t,i,r,a),tt(ff(d.e),l),f=d,Rn(p.c,d),h=0,g.c.length=0));return hi(p,g),p}function Ic(n,e,t,i,r){fl();var c,s,f,h,l,a,d;if(SW(n,"src"),SW(t,"dest"),d=wo(n),h=wo(t),XV((d.i&4)!=0,"srcType is not an array"),XV((h.i&4)!=0,"destType is not an array"),a=d.c,s=h.c,XV(a.i&1?a==s:(s.i&1)==0,"Array types don't match"),s6e(n,e,t,i,r),!(a.i&1)&&d!=h)if(l=cd(n),c=cd(t),x(n)===x(t)&&ei;)$t(c,f,l[--e]);else for(f=i+r;i0),i.a.Xb(i.c=--i.b),d>g+h&&bo(i);for(s=new C(p);s.a0),i.a.Xb(i.c=--i.b)}}function CPe(){nt();var n,e,t,i,r,c;if(IU)return IU;for(n=new yo(4),gw(n,sa(FK,!0)),z5(n,sa("M",!0)),z5(n,sa("C",!0)),c=new yo(4),i=0;i<11;i++)xc(c,i,i);return e=new yo(4),gw(e,sa("M",!0)),xc(e,4448,4607),xc(e,65438,65439),r=new T6(2),pd(r,n),pd(r,R9),t=new T6(2),t.Jm(cM(c,sa("L",!0))),t.Jm(e),t=new Xb(3,t),t=new AW(r,t),IU=t,IU}function ww(n,e){var t,i,r,c,s,f,h,l;for(t=new RegExp(e,"g"),h=K(fn,J,2,0,6,1),i=0,l=n,c=null;;)if(f=t.exec(l),f==null||l==""){h[i]=l;break}else s=f.index,h[i]=(Fi(0,s,l.length),l.substr(0,s)),l=qo(l,s+f[0].length,l.length),t.lastIndex=0,c==l&&(h[i]=(Fi(0,1,l.length),l.substr(0,1)),l=(zn(1,l.length+1),l.substr(1))),c=l,++i;if(n.length>0){for(r=h.length;r>0&&h[r-1]=="";)--r;r0&&(d-=i[0]+n.c,i[0]+=n.c),i[2]>0&&(d-=i[2]+n.c),i[1]=y.Math.max(i[1],d),fM(n.a[1],t.c+e.b+i[0]-(i[1]-d)/2,i[1]);for(c=n.a,f=0,l=c.length;f0?(n.n.c.length-1)*n.i:0,i=new C(n.n);i.a1)for(i=ge(r,0);i.b!=i.d.c;)for(t=u(be(i),235),c=0,h=new C(t.e);h.a0&&(e[0]+=n.c,d-=e[0]),e[2]>0&&(d-=e[2]+n.c),e[1]=y.Math.max(e[1],d),hM(n.a[1],i.d+t.d+e[0]-(e[1]-d)/2,e[1]);else for(m=i.d+t.d,p=i.a-t.d-t.a,s=n.a,h=0,a=s.length;h0||N0(r.b.d,n.b.d+n.b.a)==0&&i.b<0||N0(r.b.d+r.b.a,n.b.d)==0&&i.b>0){f=0;break}}else f=y.Math.min(f,x_n(n,r,i));f=y.Math.min(f,_Un(n,c,f,i))}return f}function ay(n,e){var t,i,r,c,s,f,h;if(n.b<2)throw M(new Gn("The vector chain must contain at least a source and a target point."));for(r=(oe(n.b!=0),u(n.a.a.c,8)),j7(e,r.a,r.b),h=new kp((!e.a&&(e.a=new ti(xo,e,5)),e.a)),s=ge(n,1);s.a=0&&c!=t))throw M(new Gn(Xy));for(r=0,h=0;h$(Af(s.g,s.d[0]).a)?(oe(h.b>0),h.a.Xb(h.c=--h.b),Rb(h,s),r=!0):f.e&&f.e.gc()>0&&(c=(!f.e&&(f.e=new Z),f.e).Mc(e),l=(!f.e&&(f.e=new Z),f.e).Mc(t),(c||l)&&((!f.e&&(f.e=new Z),f.e).Fc(s),++s.c));r||Rn(i.c,s)}function OPe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,S;return d=n.a.i+n.a.g/2,g=n.a.i+n.a.g/2,m=e.i+e.g/2,j=e.j+e.f/2,f=new V(m,j),l=u(z(e,(He(),L3)),8),l.a=l.a+d,l.b=l.b+g,c=(f.b-l.b)/(f.a-l.a),i=f.b-c*f.a,k=t.i+t.g/2,S=t.j+t.f/2,h=new V(k,S),a=u(z(t,L3),8),a.a=a.a+d,a.b=a.b+g,s=(h.b-a.b)/(h.a-a.a),r=h.b-s*h.a,p=(i-r)/(s-c),l.a>>0,"0"+e.toString(16)),i="\\x"+qo(t,t.length-2,t.length)):n>=hr?(t=(e=n>>>0,"0"+e.toString(16)),i="\\v"+qo(t,t.length-6,t.length)):i=""+String.fromCharCode(n&ui)}return i}function GUn(n){var e,t,i;if(mg(u(v(n,(cn(),Kt)),101)))for(t=new C(n.j);t.a=e.o&&t.f<=e.f||e.a*.5<=t.f&&e.a*1.5>=t.f){if(s=u(sn(e.n,e.n.c.length-1),209),s.e+s.d+t.g+r<=i&&(c=u(sn(e.n,e.n.c.length-1),209),c.f-n.f+t.f<=n.b||n.a.c.length==1))return $Y(e,t),!0;if(e.s+t.g<=i&&(e.t+e.d+t.f+r<=n.b||n.a.c.length==1))return nn(e.b,t),f=u(sn(e.n,e.n.c.length-1),209),nn(e.n,new NM(e.s,f.f+f.a+e.i,e.i)),wZ(u(sn(e.n,e.n.c.length-1),209),t),RUn(e,t),!0}return!1}function XUn(n,e,t){var i,r,c,s;return n.Pj()?(r=null,c=n.Qj(),i=n.Ij(1,s=d$(n,e,t),t,e,c),n.Mj()&&!(n.Yi()&&s!=null?rt(s,t):x(s)===x(t))?(s!=null&&(r=n.Oj(s,r)),r=n.Nj(t,r),n.Tj()&&(r=n.Wj(s,t,r)),r?(r.nj(i),r.oj()):n.Jj(i)):(n.Tj()&&(r=n.Wj(s,t,r)),r?(r.nj(i),r.oj()):n.Jj(i)),s):(s=d$(n,e,t),n.Mj()&&!(n.Yi()&&s!=null?rt(s,t):x(s)===x(t))&&(r=null,s!=null&&(r=n.Oj(s,null)),r=n.Nj(t,r),r&&r.oj()),s)}function BPe(n,e){var t,i,r,c,s;if(e.Ug("Path-Like Graph Wrapping",1),n.b.c.length==0){e.Vg();return}if(r=new Unn(n),s=(r.i==null&&(r.i=xQ(r,new XU)),$(r.i)*r.f),t=s/(r.i==null&&(r.i=xQ(r,new XU)),$(r.i)),r.b>t){e.Vg();return}switch(u(v(n,(cn(),LH)),351).g){case 2:c=new WU;break;case 0:c=new zU;break;default:c=new JU}if(i=c.og(n,r),!c.pg())switch(u(v(n,jI),352).g){case 2:i=F_n(r,i);break;case 1:i=AKn(r,i)}NIe(n,r,i),e.Vg()}function K5(n,e){var t,i,r,c,s,f,h,l;e%=24,n.q.getHours()!=e&&(i=new y.Date(n.q.getTime()),i.setDate(i.getDate()+1),f=n.q.getTimezoneOffset()-i.getTimezoneOffset(),f>0&&(h=f/60|0,l=f%60,r=n.q.getDate(),t=n.q.getHours(),t+h>=24&&++r,c=new y.Date(n.q.getFullYear(),n.q.getMonth(),r,e+h,n.q.getMinutes()+l,n.q.getSeconds(),n.q.getMilliseconds()),n.q.setTime(c.getTime()))),s=n.q.getTime(),n.q.setTime(s+36e5),n.q.getHours()!=e&&n.q.setTime(s)}function RPe(n,e){var t,i,r,c;if(Y2e(n.d,n.e),n.c.a.$b(),$(R(v(e.j,(cn(),hI))))!=0||$(R(v(e.j,hI)))!=0)for(t=i2,x(v(e.j,Yh))!==x((lh(),k1))&&U(e.j,(W(),ka),(_n(),!0)),c=u(v(e.j,z8),17).a,r=0;rr&&++l,nn(s,(Ln(f+l,e.c.length),u(e.c[f+l],17))),h+=(Ln(f+l,e.c.length),u(e.c[f+l],17)).a-i,++t;t=j&&n.e[h.p]>m*n.b||O>=t*j)&&(Rn(g.c,f),f=new Z,Bi(s,c),c.a.$b(),l-=a,p=y.Math.max(p,l*n.b+k),l+=O,I=O,O=0,a=0,k=0);return new bi(p,g)}function $F(n){var e,t,i,r,c,s,f;if(!n.d){if(f=new yvn,e=L9,c=e.a.zc(n,e),c==null){for(i=new ne(Hr(n));i.e!=i.i.gc();)t=u(ue(i),29),Bt(f,$F(t));e.a.Bc(n)!=null,e.a.gc()==0}for(s=f.i,r=(!n.q&&(n.q=new q(Ss,n,11,10)),new ne(n.q));r.e!=r.i.gc();++s)u(ue(r),411);Bt(f,(!n.q&&(n.q=new q(Ss,n,11,10)),n.q)),ew(f),n.d=new pg((u(L(H((G1(),Hn).o),9),19),f.i),f.g),n.e=u(f.g,688),n.e==null&&(n.e=Joe),Zu(n).b&=-17}return n.d}function Im(n,e,t,i){var r,c,s,f,h,l;if(l=ru(n.e.Dh(),e),h=0,r=u(n.g,124),dr(),u(e,69).xk()){for(s=0;s1||m==-1)if(d=u(k,71),g=u(a,71),d.dc())g.$b();else for(s=!!br(e),c=0,f=n.a?d.Kc():d.Ii();f.Ob();)l=u(f.Pb(),58),r=u(Nf(n,l),58),r?(s?(h=g.dd(r),h==-1?g.Gi(c,r):c!=h&&g.Ui(c,r)):g.Gi(c,r),++c):n.b&&!s&&(g.Gi(c,l),++c);else k==null?a.Wb(null):(r=Nf(n,k),r==null?n.b&&!br(e)&&a.Wb(k):a.Wb(r))}function UPe(n,e){var t,i,r,c,s,f,h,l;for(t=new ugn,r=new ie(ce(ji(e).a.Kc(),new En));pe(r);)if(i=u(fe(r),18),!fr(i)&&(f=i.c.i,QZ(f,MP))){if(l=wen(n,f,MP,CP),l==-1)continue;t.b=y.Math.max(t.b,l),!t.a&&(t.a=new Z),nn(t.a,f)}for(s=new ie(ce(Qt(e).a.Kc(),new En));pe(s);)if(c=u(fe(s),18),!fr(c)&&(h=c.d.i,QZ(h,CP))){if(l=wen(n,h,CP,MP),l==-1)continue;t.d=y.Math.max(t.d,l),!t.c&&(t.c=new Z),nn(t.c,h)}return t}function GPe(n,e,t,i){var r,c,s,f,h,l,a;if(t.d.i!=e.i){for(r=new Tl(n),Ha(r,(Vn(),Mi)),U(r,(W(),st),t),U(r,(cn(),Kt),(Oi(),qc)),Rn(i.c,r),s=new Pc,ic(s,r),gi(s,(en(),Wn)),f=new Pc,ic(f,r),gi(f,Zn),a=t.d,Ii(t,s),c=new y0,Ur(c,t),U(c,Fr,null),Zi(c,f),Ii(c,a),l=new xi(t.b,0);l.b1e6)throw M(new KE("power of ten too big"));if(n<=et)return Fp(iy(m3[1],e),e);for(i=iy(m3[1],et),r=i,t=vc(n-et),e=wi(n%et);Ec(t,et)>0;)r=Ig(r,i),t=bs(t,et);for(r=Ig(r,iy(m3[1],e)),r=Fp(r,et),t=vc(n-et);Ec(t,et)>0;)r=Fp(r,et),t=bs(t,et);return r=Fp(r,e),r}function WUn(n){var e,t,i,r,c,s,f,h,l,a;for(h=new C(n.a);h.al&&i>l)a=f,l=$(e.p[f.p])+$(e.d[f.p])+f.o.b+f.d.a;else{r=!1,t._g()&&t.bh("bk node placement breaks on "+f+" which should have been after "+a);break}if(!r)break}return t._g()&&t.bh(e+" is feasible: "+r),r}function _en(n,e,t,i){var r,c,s,f,h,l,a,d,g;if(c=new Tl(n),Ha(c,(Vn(),_c)),U(c,(cn(),Kt),(Oi(),qc)),r=0,e){for(s=new Pc,U(s,(W(),st),e),U(c,st,e.i),gi(s,(en(),Wn)),ic(s,c),g=hh(e.e),l=g,a=0,d=l.length;a0){if(r<0&&a.a&&(r=h,c=l[0],i=0),r>=0){if(f=a.b,h==r&&(f-=i++,f==0))return 0;if(!ZGn(e,l,a,f,s)){h=r-1,l[0]=c;continue}}else if(r=-1,!ZGn(e,l,a,0,s))return 0}else{if(r=-1,Xi(a.c,0)==32){if(d=l[0],ZNn(e,l),l[0]>d)continue}else if(Lge(e,a.c,l[0])){l[0]+=a.c.length;continue}return 0}return $De(s,t)?l[0]:0}function QPe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(a=new aM(new F9n(t)),f=K(so,Xh,28,n.f.e.c.length,16,1),MW(f,f.length),t[e.a]=0,l=new C(n.f.e);l.a=0&&!Kg(n,a,d);)--d;r[a]=d}for(p=0;p=0&&!Kg(n,f,m);)--f;c[m]=f}for(h=0;he[g]&&gi[h]&&xA(n,h,g,!1,!0)}function Hen(n){var e,t,i,r,c,s,f,h;t=on(un(v(n,(Us(),XYn)))),c=n.a.c.d,f=n.a.d.d,t?(s=ch(mi(new V(f.a,f.b),c),.5),h=ch(Ki(n.e),.5),e=mi(tt(new V(c.a,c.b),s),h),YX(n.d,e)):(r=$(R(v(n.a,tZn))),i=n.d,c.a>=f.a?c.b>=f.b?(i.a=f.a+(c.a-f.a)/2+r,i.b=f.b+(c.b-f.b)/2-r-n.e.b):(i.a=f.a+(c.a-f.a)/2+r,i.b=c.b+(f.b-c.b)/2+r):c.b>=f.b?(i.a=c.a+(f.a-c.a)/2+r,i.b=f.b+(c.b-f.b)/2+r):(i.a=c.a+(f.a-c.a)/2+r,i.b=c.b+(f.b-c.b)/2-r-n.e.b))}function H5(n){var e,t,i,r,c,s,f,h;if(!n.f){if(h=new tG,f=new tG,e=L9,s=e.a.zc(n,e),s==null){for(c=new ne(Hr(n));c.e!=c.i.gc();)r=u(ue(c),29),Bt(h,H5(r));e.a.Bc(n)!=null,e.a.gc()==0}for(i=(!n.s&&(n.s=new q(ku,n,21,17)),new ne(n.s));i.e!=i.i.gc();)t=u(ue(i),179),D(t,102)&&ve(f,u(t,19));ew(f),n.r=new KSn(n,(u(L(H((G1(),Hn).o),6),19),f.i),f.g),Bt(h,n.r),ew(h),n.f=new pg((u(L(H(Hn.o),5),19),h.i),h.g),Zu(n).b&=-3}return n.f}function QUn(n){i0(n,new gd(n0(Qd(Zd(Yd(new Ka,jd),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new Fbn))),Q(n,jd,WB,rn(hon)),Q(n,jd,JB,rn(g_)),Q(n,jd,l3,rn(DYn)),Q(n,jd,X0,rn(fon)),Q(n,jd,Itn,rn(xYn)),Q(n,jd,Otn,rn($Yn)),Q(n,jd,Ptn,rn(FYn)),Q(n,jd,Dtn,rn(NYn)),Q(n,jd,Rtn,rn(LYn)),Q(n,jd,Ktn,rn(w_)),Q(n,jd,_tn,rn(son)),Q(n,jd,Htn,rn(pP))}function KA(){KA=F,Odn=A(T(fs,1),gh,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),Toe=new RegExp(`[ +\r\f]+`);try{I9=A(T(LNe,1),Fn,2114,0,[new X9((vX(),zT("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",I7((RE(),RE(),C8))))),new X9(zT("yyyy-MM-dd'T'HH:mm:ss'.'SSS",I7(C8))),new X9(zT("yyyy-MM-dd'T'HH:mm:ss",I7(C8))),new X9(zT("yyyy-MM-dd'T'HH:mm",I7(C8))),new X9(zT("yyyy-MM-dd",I7(C8)))])}catch(n){if(n=It(n),!D(n,82))throw M(n)}}function ZPe(n,e){var t,i,r,c;if(r=to(n.d,1)!=0,i=jen(n,e),i==0&&on(un(v(e.j,(W(),ka)))))return 0;!on(un(v(e.j,(W(),ka))))&&!on(un(v(e.j,j2)))||x(v(e.j,(cn(),Yh)))===x((lh(),k1))?e.c.mg(e.e,r):r=on(un(v(e.j,ka))),oy(n,e,r,!0),on(un(v(e.j,j2)))&&U(e.j,j2,(_n(),!1)),on(un(v(e.j,ka)))&&(U(e.j,ka,(_n(),!1)),U(e.j,j2,!0)),t=jen(n,e);do{if(NQ(n),t==0)return 0;r=!r,c=t,oy(n,e,r,!1),t=jen(n,e)}while(c>t);return c}function YUn(n,e){var t,i,r,c;if(r=to(n.d,1)!=0,i=kA(n,e),i==0&&on(un(v(e.j,(W(),ka)))))return 0;!on(un(v(e.j,(W(),ka))))&&!on(un(v(e.j,j2)))||x(v(e.j,(cn(),Yh)))===x((lh(),k1))?e.c.mg(e.e,r):r=on(un(v(e.j,ka))),oy(n,e,r,!0),on(un(v(e.j,j2)))&&U(e.j,j2,(_n(),!1)),on(un(v(e.j,ka)))&&(U(e.j,ka,(_n(),!1)),U(e.j,j2,!0)),t=kA(n,e);do{if(NQ(n),t==0)return 0;r=!r,c=t,oy(n,e,r,!1),t=kA(n,e)}while(c>t);return c}function qen(n,e,t,i){var r,c,s,f,h,l,a,d,g;return h=mi(new V(t.a,t.b),n),l=h.a*e.b-h.b*e.a,a=e.a*i.b-e.b*i.a,d=(h.a*i.b-h.b*i.a)/a,g=l/a,a==0?l==0?(r=tt(new V(t.a,t.b),ch(new V(i.a,i.b),.5)),c=J1(n,r),s=J1(tt(new V(n.a,n.b),e),r),f=y.Math.sqrt(i.a*i.a+i.b*i.b)*.5,c=0&&d<=1&&g>=0&&g<=1?tt(new V(n.a,n.b),ch(new V(e.a,e.b),d)):null}function nIe(n,e,t){var i,r,c,s,f;if(i=u(v(n,(cn(),kH)),21),t.a>e.a&&(i.Hc((wd(),b9))?n.c.a+=(t.a-e.a)/2:i.Hc(w9)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((wd(),p9))?n.c.b+=(t.b-e.b)/2:i.Hc(g9)&&(n.c.b+=t.b-e.b)),u(v(n,(W(),Hc)),21).Hc((pr(),cs))&&(t.a>e.a||t.b>e.b))for(f=new C(n.a);f.ae.a&&(i.Hc((wd(),b9))?n.c.a+=(t.a-e.a)/2:i.Hc(w9)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((wd(),p9))?n.c.b+=(t.b-e.b)/2:i.Hc(g9)&&(n.c.b+=t.b-e.b)),u(v(n,(W(),Hc)),21).Hc((pr(),cs))&&(t.a>e.a||t.b>e.b))for(s=new C(n.a);s.a0?n.i:0)>e&&h>0&&(c=0,s+=h+n.i,r=y.Math.max(r,g),i+=h+n.i,h=0,g=0,t&&(++d,nn(n.n,new NM(n.s,s,n.i))),f=0),g+=l.g+(f>0?n.i:0),h=y.Math.max(h,l.f),t&&wZ(u(sn(n.n,d),209),l),c+=l.g+(f>0?n.i:0),++f;return r=y.Math.max(r,g),i+=h,t&&(n.r=r,n.d=i,vZ(n.j)),new Ho(n.s,n.t,r,i)}function xF(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(n.b=!1,d=St,h=li,g=St,l=li,i=n.e.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),272),r=t.a,d=y.Math.min(d,r.c),h=y.Math.max(h,r.c+r.b),g=y.Math.min(g,r.d),l=y.Math.max(l,r.d+r.a),s=new C(t.c);s.an.o.a&&(a=(h-n.o.a)/2,f.b=y.Math.max(f.b,a),f.c=y.Math.max(f.c,a))}}function rIe(n){var e,t,i,r,c,s,f,h;for(c=new zOn,$le(c,(qp(),due)),i=(r=S$(n,K(fn,J,2,0,6,1)),new Gv(new Ku(new SD(n,r).b)));i.bf?1:-1:fY(n.a,e.a,c),r==-1)d=-h,a=s==h?ZN(e.a,f,n.a,c):e$(e.a,f,n.a,c);else if(d=s,s==h){if(r==0)return dh(),T8;a=ZN(n.a,c,e.a,f)}else a=e$(n.a,c,e.a,f);return l=new Ya(d,a.length,a),V6(l),l}function cIe(n,e){var t,i,r,c;if(c=$Un(e),!e.c&&(e.c=new q(Qu,e,9,9)),qt(new Tn(null,(!e.c&&(e.c=new q(Qu,e,9,9)),new In(e.c,16))),new _9n(c)),r=u(v(c,(W(),Hc)),21),QOe(e,r),r.Hc((pr(),cs)))for(i=new ne((!e.c&&(e.c=new q(Qu,e,9,9)),e.c));i.e!=i.i.gc();)t=u(ue(i),123),TDe(n,e,c,t);return u(z(e,(cn(),xd)),181).gc()!=0&&Aqn(e,c),on(un(v(c,hhn)))&&r.Fc(eI),kt(c,Cj)&&$jn(new zY($(R(v(c,Cj)))),c),x(z(e,Bw))===x((jl(),M1))?JLe(n,e,c):NLe(n,e,c),c}function uIe(n){var e,t,i,r,c,s,f,h;for(r=new C(n.b);r.a0?qo(t.a,0,c-1):""):(Fi(0,c-1,n.length),n.substr(0,c-1)):t?t.a:n}function oIe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Sort By Input Model "+v(n,(cn(),Yh)),1),r=0,i=new C(n.b);i.a=n.b.length?(c[r++]=s.b[i++],c[r++]=s.b[i++]):i>=s.b.length?(c[r++]=n.b[t++],c[r++]=n.b[t++]):s.b[i]0?n.i:0)),++e;for(PY(n.n,h),n.d=t,n.r=i,n.g=0,n.f=0,n.e=0,n.o=St,n.p=St,c=new C(n.b);c.a0&&(r=(!n.n&&(n.n=new q(Ar,n,1,7)),u(L(n.n,0),135)).a,!r||Re(Re((e.a+=' "',e),r),'"'))),t=(!n.b&&(n.b=new Nn(he,n,4,7)),!(n.b.i<=1&&(!n.c&&(n.c=new Nn(he,n,5,8)),n.c.i<=1))),t?e.a+=" [":e.a+=" ",Re(e,BX(new yD,new ne(n.b))),t&&(e.a+="]"),e.a+=iR,t&&(e.a+="["),Re(e,BX(new yD,new ne(n.c))),t&&(e.a+="]"),e.a)}function fIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X,tn,jn,kn,Kn;for(_=n.c,X=e.c,t=qr(_.a,n,0),i=qr(X.a,e,0),O=u($0(n,(gr(),Vu)).Kc().Pb(),12),kn=u($0(n,Jc).Kc().Pb(),12),N=u($0(e,Vu).Kc().Pb(),12),Kn=u($0(e,Jc).Kc().Pb(),12),S=hh(O.e),tn=hh(kn.g),I=hh(N.e),jn=hh(Kn.g),uw(n,i,X),s=I,a=0,m=s.length;aa?new ed((af(),zw),t,e,l-a):l>0&&a>0&&(new ed((af(),zw),e,t,0),new ed(zw,t,e,0))),s)}function aIe(n,e,t){var i,r,c;for(n.a=new Z,c=ge(e.b,0);c.b!=c.d.c;){for(r=u(be(c),39);u(v(r,(lc(),Sh)),17).a>n.a.c.length-1;)nn(n.a,new bi(i2,Mrn));i=u(v(r,Sh),17).a,t==(ci(),Br)||t==Xr?(r.e.a<$(R(u(sn(n.a,i),42).a))&&QO(u(sn(n.a,i),42),r.e.a),r.e.a+r.f.a>$(R(u(sn(n.a,i),42).b))&&YO(u(sn(n.a,i),42),r.e.a+r.f.a)):(r.e.b<$(R(u(sn(n.a,i),42).a))&&QO(u(sn(n.a,i),42),r.e.b),r.e.b+r.f.b>$(R(u(sn(n.a,i),42).b))&&YO(u(sn(n.a,i),42),r.e.b+r.f.b))}}function eGn(n,e,t,i){var r,c,s,f,h,l,a;if(c=KT(i),f=on(un(v(i,(cn(),rhn)))),(f||on(un(v(n,wI))))&&!mg(u(v(n,Kt),101)))r=zp(c),h=Den(n,t,t==(gr(),Jc)?r:$k(r));else switch(h=new Pc,ic(h,n),e?(a=h.n,a.a=e.a-n.n.a,a.b=e.b-n.n.b,u_n(a,0,0,n.o.a,n.o.b),gi(h,jUn(h,c))):(r=zp(c),gi(h,t==(gr(),Jc)?r:$k(r))),s=u(v(i,(W(),Hc)),21),l=h.j,c.g){case 2:case 1:(l==(en(),Xn)||l==ae)&&s.Fc((pr(),v2));break;case 4:case 3:(l==(en(),Zn)||l==Wn)&&s.Fc((pr(),v2))}return h}function tGn(n,e){var t,i,r,c,s,f;for(s=new sd(new Ua(n.f.b).a);s.b;){if(c=O0(s),r=u(c.ld(),602),e==1){if(r.Af()!=(ci(),us)&&r.Af()!=Wf)continue}else if(r.Af()!=(ci(),Br)&&r.Af()!=Xr)continue;switch(i=u(u(c.md(),42).b,86),f=u(u(c.md(),42).a,194),t=f.c,r.Af().g){case 2:i.g.c=n.e.a,i.g.b=y.Math.max(1,i.g.b+t);break;case 1:i.g.c=i.g.c+t,i.g.b=y.Math.max(1,i.g.b-t);break;case 4:i.g.d=n.e.b,i.g.a=y.Math.max(1,i.g.a+t);break;case 3:i.g.d=i.g.d+t,i.g.a=y.Math.max(1,i.g.a-t)}}}function dIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(f=K(ye,_e,28,e.b.c.length,15,1),l=K(D_,G,273,e.b.c.length,0,1),h=K(Qh,b1,10,e.b.c.length,0,1),d=n.a,g=0,p=d.length;g0&&h[i]&&(m=jg(n.b,h[i],r)),k=y.Math.max(k,r.c.c.b+m);for(c=new C(a.e);c.a1)throw M(new Gn(Yy));h||(c=Fh(e,i.Kc().Pb()),s.Fc(c))}return WQ(n,gnn(n,e,t),s)}function HA(n,e,t){var i,r,c,s,f,h,l,a;if(Sl(n.e,e))h=(dr(),u(e,69).xk()?new nM(e,n):new k7(e,n)),jA(h.c,h.b),A6(h,u(t,16));else{for(a=ru(n.e.Dh(),e),i=u(n.g,124),s=0;s"}h!=null&&(e.a+=""+h)}else n.e?(f=n.e.zb,f!=null&&(e.a+=""+f)):(e.a+="?",n.b?(e.a+=" super ",_F(n.b,e)):n.f&&(e.a+=" extends ",_F(n.f,e)))}function vIe(n){n.b=null,n.a=null,n.o=null,n.q=null,n.v=null,n.w=null,n.B=null,n.p=null,n.Q=null,n.R=null,n.S=null,n.T=null,n.U=null,n.V=null,n.W=null,n.bb=null,n.eb=null,n.ab=null,n.H=null,n.db=null,n.c=null,n.d=null,n.f=null,n.n=null,n.r=null,n.s=null,n.u=null,n.G=null,n.J=null,n.e=null,n.j=null,n.i=null,n.g=null,n.k=null,n.t=null,n.F=null,n.I=null,n.L=null,n.M=null,n.O=null,n.P=null,n.$=null,n.N=null,n.Z=null,n.cb=null,n.K=null,n.D=null,n.A=null,n.C=null,n._=null,n.fb=null,n.X=null,n.Y=null,n.gb=!1,n.hb=!1}function kIe(n){var e,t,i,r;if(i=ZF((!n.c&&(n.c=W7(vc(n.f))),n.c),0),n.e==0||n.a==0&&n.f!=-1&&n.e<0)return i;if(e=$Q(n)<0?1:0,t=n.e,r=(i.length+1+y.Math.abs(wi(n.e)),new fg),e==1&&(r.a+="-"),n.e>0)if(t-=i.length-e,t>=0){for(r.a+="0.";t>Id.length;t-=Id.length)JSn(r,Id);NAn(r,Id,wi(t)),Re(r,(zn(e,i.length+1),i.substr(e)))}else t=e-t,Re(r,qo(i,e,wi(t))),r.a+=".",Re(r,NW(i,wi(t)));else{for(Re(r,(zn(e,i.length+1),i.substr(e)));t<-Id.length;t+=Id.length)JSn(r,Id);NAn(r,Id,wi(-t))}return r.a}function HF(n){var e,t,i,r,c,s,f,h,l;return!(n.k!=(Vn(),zt)||n.j.c.length<=1||(c=u(v(n,(cn(),Kt)),101),c==(Oi(),qc))||(r=(cw(),(n.q?n.q:(Dn(),Dn(),Wh))._b(lb)?i=u(v(n,lb),203):i=u(v(Hi(n),U8),203),i),r==TI)||!(r==P2||r==S2)&&(s=$(R(rw(n,G8))),e=u(v(n,Tj),140),!e&&(e=new pV(s,s,s,s)),l=uc(n,(en(),Wn)),h=e.d+e.a+(l.gc()-1)*s,h>n.o.b||(t=uc(n,Zn),f=e.d+e.a+(t.gc()-1)*s,f>n.o.b)))}function yIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;e.Ug("Orthogonal edge routing",1),l=$(R(v(n,(cn(),A2)))),t=$(R(v(n,M2))),i=$(R(v(n,Bd))),g=new lN(0,t),j=0,s=new xi(n.b,0),f=null,a=null,h=null,d=null;do a=s.b0?(p=(m-1)*t,f&&(p+=i),a&&(p+=i),pe||on(un(z(h,(Rf(),Rj)))))&&(r=0,c+=a.b+t,Rn(d.c,a),a=new aJ(c,t),i=new U$(0,a.f,a,t),wT(a,i),r=0),i.b.c.length==0||!on(un(z(At(h),(Rf(),Dq))))&&(h.f>=i.o&&h.f<=i.f||i.a*.5<=h.f&&i.a*1.5>=h.f)?$Y(i,h):(s=new U$(i.s+i.r+t,a.f,a,t),wT(a,s),$Y(s,h)),r=h.i+h.g;return Rn(d.c,a),d}function U5(n){var e,t,i,r;if(!(n.b==null||n.b.length<=2)&&!n.a){for(e=0,r=0;r=n.b[r+1])r+=2;else if(t0)for(i=new _u(u(ot(n.a,c),21)),Dn(),Yt(i,new DG(e)),r=new xi(c.b,0);r.b0&&i>=-6?i>=0?E7(c,t-wi(n.e),"."):(L$(c,e-1,e-1,"0."),E7(c,e+1,ws(Id,0,-wi(i)-1))):(t-e>=1&&(E7(c,e,"."),++t),E7(c,t,"E"),i>0&&E7(c,++t,"+"),E7(c,++t,""+R6(vc(i)))),n.g=c.a,n.g))}function OIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X,tn;i=$(R(v(e,(cn(),ohn)))),_=u(v(e,z8),17).a,g=4,r=3,X=20/_,p=!1,h=0,s=et;do{for(c=h!=1,d=h!=0,tn=0,j=n.a,I=0,N=j.length;I_)?(h=2,s=et):h==0?(h=1,s=tn):(h=0,s=tn)):(p=tn>=s||s-tn0?1:u0(isNaN(i),isNaN(0)))>=0^(Ks(jh),(y.Math.abs(f)<=jh||f==0||isNaN(f)&&isNaN(0)?0:f<0?-1:f>0?1:u0(isNaN(f),isNaN(0)))>=0)?y.Math.max(f,i):(Ks(jh),(y.Math.abs(i)<=jh||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:u0(isNaN(i),isNaN(0)))>0?y.Math.sqrt(f*f+i*i):-y.Math.sqrt(f*f+i*i))}function pd(n,e){var t,i,r,c,s,f;if(e){if(!n.a&&(n.a=new FE),n.e==2){xE(n.a,e);return}if(e.e==1){for(r=0;r=hr?Er(t,NY(i)):M4(t,i&ui),s=new IN(10,null,0),wwe(n.a,s,f-1)):(t=(s.Mm().length+c,new e6),Er(t,s.Mm())),e.e==0?(i=e.Km(),i>=hr?Er(t,NY(i)):M4(t,i&ui)):Er(t,e.Mm()),u(s,530).b=t.a}}function NIe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(!t.dc()){for(f=0,g=0,i=t.Kc(),m=u(i.Pb(),17).a;f1&&(h=l.Hg(h,n.a,f));return h.c.length==1?u(sn(h,h.c.length-1),238):h.c.length==2?EIe((Ln(0,h.c.length),u(h.c[0],238)),(Ln(1,h.c.length),u(h.c[1],238)),s,c):null}function BIe(n,e,t){var i,r,c,s,f,h,l;for(t.Ug("Find roots",1),n.a.c.length=0,r=ge(e.b,0);r.b!=r.d.c;)i=u(be(r),39),i.b.b==0&&(U(i,(pt(),Ma),(_n(),!0)),nn(n.a,i));switch(n.a.c.length){case 0:c=new q$(0,e,"DUMMY_ROOT"),U(c,(pt(),Ma),(_n(),!0)),U(c,tq,!0),Fe(e.b,c);break;case 1:break;default:for(s=new q$(0,e,IS),h=new C(n.a);h.a=y.Math.abs(i.b)?(i.b=0,c.d+c.a>s.d&&c.ds.c&&c.c0){if(e=new wX(n.i,n.g),t=n.i,c=t<100?null:new F1(t),n.Tj())for(i=0;i0){for(f=n.g,l=n.i,Z6(n),c=l<100?null:new F1(l),i=0;i>13|(n.m&15)<<9,r=n.m>>4&8191,c=n.m>>17|(n.h&255)<<5,s=(n.h&1048320)>>8,f=e.l&8191,h=e.l>>13|(e.m&15)<<9,l=e.m>>4&8191,a=e.m>>17|(e.h&255)<<5,d=(e.h&1048320)>>8,jn=t*f,kn=i*f,Kn=r*f,Bn=c*f,te=s*f,h!=0&&(kn+=t*h,Kn+=i*h,Bn+=r*h,te+=c*h),l!=0&&(Kn+=t*l,Bn+=i*l,te+=r*l),a!=0&&(Bn+=t*a,te+=i*a),d!=0&&(te+=t*d),p=jn&ro,m=(kn&511)<<13,g=p+m,j=jn>>22,S=kn>>9,I=(Kn&262143)<<4,O=(Bn&31)<<17,k=j+S+I+O,_=Kn>>18,X=Bn>>5,tn=(te&4095)<<8,N=_+X+tn,k+=g>>22,g&=ro,N+=k>>22,k&=ro,N&=Il,Yc(g,k,N)}function dGn(n){var e,t,i,r,c,s,f;if(f=u(sn(n.j,0),12),f.g.c.length!=0&&f.e.c.length!=0)throw M(new Or("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(f.g.c.length!=0){for(c=St,t=new C(f.g);t.a4)if(n.fk(e)){if(n.al()){if(r=u(e,54),i=r.Eh(),h=i==n.e&&(n.ml()?r.yh(r.Fh(),n.il())==n.jl():-1-r.Fh()==n.Lj()),n.nl()&&!h&&!i&&r.Jh()){for(c=0;c0&&d_n(n,f,d);for(r=new C(d);r.an.d[s.p]&&(t+=AJ(n.b,c)*u(h.b,17).a,W1(n.a,Y(c)));for(;!n6(n.a);)uQ(n.b,u(Sp(n.a),17).a)}return t}function qIe(n,e){var t,i,r,c,s,f,h,l,a,d;if(a=u(v(n,(W(),gc)),64),i=u(sn(n.j,0),12),a==(en(),Xn)?gi(i,ae):a==ae&&gi(i,Xn),u(v(e,(cn(),xd)),181).Hc((go(),Gd))){if(h=$(R(v(n,Tv))),l=$(R(v(n,Av))),s=$(R(v(n,qw))),f=u(v(e,_w),21),f.Hc((zu(),Fl)))for(t=l,d=n.o.a/2-i.n.a,c=new C(i.f);c.a0&&(l=n.n.a/c);break;case 2:case 4:r=n.i.o.b,r>0&&(l=n.n.b/r)}U(n,(W(),ob),l)}if(h=n.o,s=n.a,i)s.a=i.a,s.b=i.b,n.d=!0;else if(e!=Qf&&e!=Pa&&f!=sc)switch(f.g){case 1:s.a=h.a/2;break;case 2:s.a=h.a,s.b=h.b/2;break;case 3:s.a=h.a/2,s.b=h.b;break;case 4:s.b=h.b/2}else s.a=h.a/2,s.b=h.b/2}function G5(n){var e,t,i,r,c,s,f,h,l,a;if(n.Pj())if(a=n.Ej(),h=n.Qj(),a>0)if(e=new RQ(n.pj()),t=a,c=t<100?null:new F1(t),S7(n,t,e.g),r=t==1?n.Ij(4,L(e,0),null,0,h):n.Ij(6,e,null,-1,h),n.Mj()){for(i=new ne(e);i.e!=i.i.gc();)c=n.Oj(ue(i),c);c?(c.nj(r),c.oj()):n.Jj(r)}else c?(c.nj(r),c.oj()):n.Jj(r);else S7(n,n.Ej(),n.Fj()),n.Jj(n.Ij(6,(Dn(),sr),null,-1,h));else if(n.Mj())if(a=n.Ej(),a>0){for(f=n.Fj(),l=a,S7(n,a,f),c=l<100?null:new F1(l),i=0;i1&&Su(s)*ao(s)/2>f[0]){for(c=0;cf[c];)++c;m=new Jl(k,0,c+1),d=new hT(m),a=Su(s)/ao(s),h=QF(d,e,new up,t,i,r,a),tt(ff(d.e),h),Mp(km(g,d),Km),p=new Jl(k,c+1,k.c.length),EZ(g,p),k.c.length=0,l=0,dPn(f,f.length,0)}else j=g.b.c.length==0?null:sn(g.b,0),j!=null&&M$(g,0),l>0&&(f[l]=f[l-1]),f[l]+=Su(s)*ao(s),++l,Rn(k.c,s);return k}function WIe(n,e){var t,i,r,c;t=e.b,c=new _u(t.j),r=0,i=t.j,i.c.length=0,b0(u(od(n.b,(en(),Xn),(I0(),rb)),15),t),r=Kk(c,r,new dpn,i),b0(u(od(n.b,Xn,va),15),t),r=Kk(c,r,new upn,i),b0(u(od(n.b,Xn,ib),15),t),b0(u(od(n.b,Zn,rb),15),t),b0(u(od(n.b,Zn,va),15),t),r=Kk(c,r,new bpn,i),b0(u(od(n.b,Zn,ib),15),t),b0(u(od(n.b,ae,rb),15),t),r=Kk(c,r,new wpn,i),b0(u(od(n.b,ae,va),15),t),r=Kk(c,r,new gpn,i),b0(u(od(n.b,ae,ib),15),t),b0(u(od(n.b,Wn,rb),15),t),r=Kk(c,r,new fpn,i),b0(u(od(n.b,Wn,va),15),t),b0(u(od(n.b,Wn,ib),15),t)}function JIe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;for(f=new C(e);f.a.5?S-=s*2*(m-.5):m<.5&&(S+=c*2*(.5-m)),r=f.d.b,Sj.a-k-a&&(S=j.a-k-a),f.n.a=e+S}}function nOe(n){var e,t,i,r,c;if(i=u(v(n,(cn(),ou)),171),i==(Yo(),ya)){for(t=new ie(ce(ji(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),!ALn(e))throw M(new _l(oR+Hk(n)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(i==xw){for(c=new ie(ce(Qt(n).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),!ALn(r))throw M(new _l(oR+Hk(n)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function wy(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(n.e&&n.c.c>19&&(e=em(e),h=!h),s=BMe(e),c=!1,r=!1,i=!1,n.h==My&&n.m==0&&n.l==0)if(r=!0,c=!0,s==-1)n=ZMn((B4(),sun)),i=!0,h=!h;else return f=Gnn(n,s),h&&H$(f),t&&(wa=Yc(0,0,0)),f;else n.h>>19&&(c=!0,n=em(n),i=!0,h=!h);return s!=-1?d6e(n,s,h,c,t):OZ(n,e)<0?(t&&(c?wa=em(n):wa=Yc(n.l,n.m,n.h)),Yc(0,0,0)):xSe(i?n:Yc(n.l,n.m,n.h),e,h,c,r,t)}function zF(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(s=n.e,h=e.e,s==0)return e;if(h==0)return n;if(c=n.d,f=e.d,c+f==2)return t=vi(n.a[0],mr),i=vi(e.a[0],mr),s==h?(a=nr(t,i),m=Ae(a),p=Ae(U1(a,32)),p==0?new gl(s,m):new Ya(s,2,A(T(ye,1),_e,28,15,[m,p]))):(dh(),TC(s<0?bs(i,t):bs(t,i),0)?ia(s<0?bs(i,t):bs(t,i)):H6(ia(n1(s<0?bs(i,t):bs(t,i)))));if(s==h)g=s,d=c>=f?e$(n.a,c,e.a,f):e$(e.a,f,n.a,c);else{if(r=c!=f?c>f?1:-1:fY(n.a,e.a,c),r==0)return dh(),T8;r==1?(g=s,d=ZN(n.a,c,e.a,f)):(g=h,d=ZN(e.a,f,n.a,c))}return l=new Ya(g,d.length,d),V6(l),l}function tOe(n,e){var t,i,r,c,s,f,h;if(!(n.g>e.f||e.g>n.f)){for(t=0,i=0,s=n.w.a.ec().Kc();s.Ob();)r=u(s.Pb(),12),nx(cc(A(T(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&++t;for(f=n.r.a.ec().Kc();f.Ob();)r=u(f.Pb(),12),nx(cc(A(T(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&--t;for(h=e.w.a.ec().Kc();h.Ob();)r=u(h.Pb(),12),nx(cc(A(T(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&++i;for(c=e.r.a.ec().Kc();c.Ob();)r=u(c.Pb(),12),nx(cc(A(T(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&--i;t=0)return t;switch(v0(Lr(n,t))){case 2:{if(An("",r1(n,t.qk()).xe())){if(h=q7(Lr(n,t)),f=S4(Lr(n,t)),a=Wnn(n,e,h,f),a)return a;for(r=Men(n,e),s=0,d=r.gc();s1)throw M(new Gn(Yy));for(a=ru(n.e.Dh(),e),i=u(n.g,124),s=0;s1,l=new Df(g.b);tc(l.a)||tc(l.b);)h=u(tc(l.a)?E(l.a):E(l.b),18),d=h.c==g?h.d:h.c,y.Math.abs(cc(A(T(Ei,1),J,8,0,[d.i.n,d.n,d.a])).b-s.b)>1&&qTe(n,h,s,c,g)}}function sOe(n){var e,t,i,r,c,s;if(r=new xi(n.e,0),i=new xi(n.a,0),n.d)for(t=0;t_R;){for(c=e,s=0;y.Math.abs(e-c)<_R;)++s,e=$((oe(r.b0),r.a.Xb(r.c=--r.b),EPe(n,n.b-s,c,i,r),oe(r.b0),i.a.Xb(i.c=--i.b)}if(!n.d)for(t=0;t0?(n.f[a.p]=p/(a.e.c.length+a.g.c.length),n.c=y.Math.min(n.c,n.f[a.p]),n.b=y.Math.max(n.b,n.f[a.p])):f&&(n.f[a.p]=p)}}function hOe(n){n.b=null,n.bb=null,n.fb=null,n.qb=null,n.a=null,n.c=null,n.d=null,n.e=null,n.f=null,n.n=null,n.M=null,n.L=null,n.Q=null,n.R=null,n.K=null,n.db=null,n.eb=null,n.g=null,n.i=null,n.j=null,n.k=null,n.gb=null,n.o=null,n.p=null,n.q=null,n.r=null,n.$=null,n.ib=null,n.S=null,n.T=null,n.t=null,n.s=null,n.u=null,n.v=null,n.w=null,n.B=null,n.A=null,n.C=null,n.D=null,n.F=null,n.G=null,n.H=null,n.I=null,n.J=null,n.P=null,n.Z=null,n.U=null,n.V=null,n.W=null,n.X=null,n.Y=null,n._=null,n.ab=null,n.cb=null,n.hb=null,n.nb=null,n.lb=null,n.mb=null,n.ob=null,n.pb=null,n.jb=null,n.kb=null,n.N=!1,n.O=!1}function lOe(n,e,t){var i,r,c,s;for(t.Ug("Graph transformation ("+n.a+")",1),s=C0(e.a),c=new C(e.b);c.a=f.b.c)&&(f.b=e),(!f.c||e.c<=f.c.c)&&(f.d=f.c,f.c=e),(!f.e||e.d>=f.e.d)&&(f.e=e),(!f.f||e.d<=f.f.d)&&(f.f=e);return i=new eA((Z4(),tb)),J7(n,IZn,new Ku(A(T(lj,1),Fn,382,0,[i]))),s=new eA(Iw),J7(n,PZn,new Ku(A(T(lj,1),Fn,382,0,[s]))),r=new eA(Pw),J7(n,SZn,new Ku(A(T(lj,1),Fn,382,0,[r]))),c=new eA(d2),J7(n,AZn,new Ku(A(T(lj,1),Fn,382,0,[c]))),pF(i.c,tb),pF(r.c,Pw),pF(c.c,d2),pF(s.c,Iw),f.a.c.length=0,hi(f.a,i.c),hi(f.a,Qo(r.c)),hi(f.a,c.c),hi(f.a,Qo(s.c)),f}function bOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;for(e.Ug(SVn,1),p=$(R(z(n,(_h(),Xw)))),s=$(R(z(n,(Rf(),h9)))),f=u(z(n,f9),107),LQ((!n.a&&(n.a=new q(Ye,n,10,11)),n.a)),a=fGn((!n.a&&(n.a=new q(Ye,n,10,11)),n.a),p,s),!n.a&&(n.a=new q(Ye,n,10,11)),l=new C(a);l.a0&&(n.a=h+(p-1)*c,e.c.b+=n.a,e.f.b+=n.a)),m.a.gc()!=0&&(g=new lN(1,c),p=Yen(g,e,m,k,e.f.b+h-e.c.b),p>0&&(e.f.b+=h+(p-1)*c))}function gGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N;for(a=$(R(v(n,(cn(),db)))),i=$(R(v(n,phn))),g=new _O,U(g,db,a+i),l=e,S=l.d,k=l.c.i,I=l.d.i,j=jX(k.c),O=jX(I.c),r=new Z,d=j;d<=O;d++)f=new Tl(n),Ha(f,(Vn(),Mi)),U(f,(W(),st),l),U(f,Kt,(Oi(),qc)),U(f,yI,g),p=u(sn(n.b,d),30),d==j?uw(f,p.a.c.length-t,p):$i(f,p),N=$(R(v(l,m1))),N<0&&(N=0,U(l,m1,N)),f.o.b=N,m=y.Math.floor(N/2),s=new Pc,gi(s,(en(),Wn)),ic(s,f),s.n.b=m,h=new Pc,gi(h,Zn),ic(h,f),h.n.b=m,Ii(l,s),c=new y0,Ur(c,l),U(c,Fr,null),Zi(c,h),Ii(c,S),ike(f,l,c),Rn(r.c,c),l=c;return r}function XF(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O;for(h=u(h1(n,(en(),Wn)).Kc().Pb(),12).e,p=u(h1(n,Zn).Kc().Pb(),12).g,f=h.c.length,O=If(u(sn(n.j,0),12));f-- >0;){for(k=(Ln(0,h.c.length),u(h.c[0],18)),r=(Ln(0,p.c.length),u(p.c[0],18)),I=r.d.e,c=qr(I,r,0),Bpe(k,r.d,c),Zi(r,null),Ii(r,null),m=k.a,e&&Fe(m,new rr(O)),i=ge(r.a,0);i.b!=i.d.c;)t=u(be(i),8),Fe(m,new rr(t));for(S=k.b,g=new C(r.b);g.as)&&fi(n.b,u(j.b,18));++f}c=s}}}function Wen(n,e){var t;if(e==null||An(e,gu)||e.length==0&&n.k!=(l1(),D3))return null;switch(n.k.g){case 1:return JT(e,Zm)?(_n(),uv):JT(e,cK)?(_n(),ga):null;case 2:try{return Y(Ao(e,Wi,et))}catch(i){if(i=It(i),D(i,130))return null;throw M(i)}case 4:try{return sw(e)}catch(i){if(i=It(i),D(i,130))return null;throw M(i)}case 3:return e;case 5:return xFn(n),J_n(n,e);case 6:return xFn(n),wMe(n,n.a,e);case 7:try{return t=TCe(n),t.cg(e),t}catch(i){if(i=It(i),D(i,33))return null;throw M(i)}default:throw M(new Or("Invalid type set for this layout option."))}}function Jen(n){var e;switch(n.d){case 1:{if(n.Sj())return n.o!=-2;break}case 2:{if(n.Sj())return n.o==-2;break}case 3:case 5:case 4:case 6:case 7:return n.o>-2;default:return!1}switch(e=n.Rj(),n.p){case 0:return e!=null&&on(un(e))!=j6(n.k,0);case 1:return e!=null&&u(e,222).a!=Ae(n.k)<<24>>24;case 2:return e!=null&&u(e,180).a!=(Ae(n.k)&ui);case 6:return e!=null&&j6(u(e,168).a,n.k);case 5:return e!=null&&u(e,17).a!=Ae(n.k);case 7:return e!=null&&u(e,191).a!=Ae(n.k)<<16>>16;case 3:return e!=null&&$(R(e))!=n.j;case 4:return e!=null&&u(e,161).a!=n.j;default:return e==null?n.n!=null:!rt(e,n.n)}}function gy(n,e,t){var i,r,c,s;return n.ol()&&n.nl()&&(s=cN(n,u(t,58)),x(s)!==x(t))?(n.xj(e),n.Dj(e,vNn(n,e,s)),n.al()&&(c=(r=u(t,54),n.ml()?n.kl()?r.Th(n.b,br(u($n(au(n.b),n.Lj()),19)).n,u($n(au(n.b),n.Lj()).Hk(),29).kk(),null):r.Th(n.b,Ot(r.Dh(),br(u($n(au(n.b),n.Lj()),19))),null,null):r.Th(n.b,-1-n.Lj(),null,null)),!u(s,54).Ph()&&(c=(i=u(s,54),n.ml()?n.kl()?i.Rh(n.b,br(u($n(au(n.b),n.Lj()),19)).n,u($n(au(n.b),n.Lj()).Hk(),29).kk(),c):i.Rh(n.b,Ot(i.Dh(),br(u($n(au(n.b),n.Lj()),19))),null,c):i.Rh(n.b,-1-n.Lj(),null,c))),c&&c.oj()),fo(n.b)&&n.Jj(n.Ij(9,t,s,e,!1)),s):t}function pGn(n){var e,t,i,r,c,s,f,h,l,a;for(i=new Z,s=new C(n.e.a);s.a0&&(s=y.Math.max(s,yxn(n.C.b+i.d.b,r))),a=i,d=r,g=c;n.C&&n.C.c>0&&(p=g+n.C.c,l&&(p+=a.d.c),s=y.Math.max(s,(Tf(),Ks(_f),y.Math.abs(d-1)<=_f||d==1||isNaN(d)&&isNaN(1)?0:p/(1-d)))),t.n.b=0,t.a.a=s}function vGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(t=u(Cr(n.b,e),127),h=u(u(ot(n.r,e),21),87),h.dc()){t.n.d=0,t.n.a=0;return}for(l=n.u.Hc((zu(),Fl)),s=0,n.A.Hc((go(),Gd))&&Vqn(n,e),f=h.Kc(),a=null,g=0,d=0;f.Ob();)i=u(f.Pb(),117),c=$(R(i.b.of((RC(),bP)))),r=i.b.Mf().b,a?(p=d+a.d.a+n.w+i.d.d,s=y.Math.max(s,(Tf(),Ks(_f),y.Math.abs(g-c)<=_f||g==c||isNaN(g)&&isNaN(c)?0:p/(c-g)))):n.C&&n.C.d>0&&(s=y.Math.max(s,yxn(n.C.d+i.d.d,c))),a=i,g=c,d=r;n.C&&n.C.a>0&&(p=d+n.C.a,l&&(p+=a.d.a),s=y.Math.max(s,(Tf(),Ks(_f),y.Math.abs(g-1)<=_f||g==1||isNaN(g)&&isNaN(1)?0:p/(1-g)))),t.n.d=0,t.a.b=s}function pOe(n,e,t,i,r,c,s,f){var h,l,a,d,g,p,m,k,j,S;if(m=!1,l=ien(t.q,e.f+e.b-t.q.f),p=i.f>e.b&&f,S=r-(t.q.e+l-s),d=(h=q5(i,S,!1),h.a),p&&d>i.f)return!1;if(p){for(g=0,j=new C(e.d);j.a=(Ln(c,n.c.length),u(n.c[c],186)).e,!p&&d>e.b&&!a)?!1:((a||p||d<=e.b)&&(a&&d>e.b?(t.d=d,ck(t,r_n(t,d))):(jKn(t.q,l),t.c=!0),ck(i,r-(t.s+t.r)),_k(i,t.q.e+t.q.d,e.f),wT(e,i),n.c.length>c&&(Uk((Ln(c,n.c.length),u(n.c[c],186)),i),(Ln(c,n.c.length),u(n.c[c],186)).a.c.length==0&&Yl(n,c)),m=!0),m)}function kGn(n,e,t){var i,r,c,s,f,h;for(this.g=n,f=e.d.length,h=t.d.length,this.d=K(Qh,b1,10,f+h,0,1),s=0;s0?m$(this,this.f/this.a):Af(e.g,e.d[0]).a!=null&&Af(t.g,t.d[0]).a!=null?m$(this,($(Af(e.g,e.d[0]).a)+$(Af(t.g,t.d[0]).a))/2):Af(e.g,e.d[0]).a!=null?m$(this,Af(e.g,e.d[0]).a):Af(t.g,t.d[0]).a!=null&&m$(this,Af(t.g,t.d[0]).a)}function mOe(n,e){var t,i,r,c,s,f,h,l,a,d;for(n.a=new YPn(n6e(k9)),i=new C(e.a);i.a=1&&(j-s>0&&d>=0?(h.n.a+=k,h.n.b+=c*s):j-s<0&&a>=0&&(h.n.a+=k*j,h.n.b+=c));n.o.a=e.a,n.o.b=e.b,U(n,(cn(),xd),(go(),i=u(of(A9),9),new _o(i,u(xs(i,i.length),9),0)))}function yOe(n,e,t,i,r,c){var s;if(!(e==null||!lx(e,Rdn,Kdn)))throw M(new Gn("invalid scheme: "+e));if(!n&&!(t!=null&&ih(t,wu(35))==-1&&t.length>0&&(zn(0,t.length),t.charCodeAt(0)!=47)))throw M(new Gn("invalid opaquePart: "+t));if(n&&!(e!=null&&t7(jO,e.toLowerCase()))&&!(t==null||!lx(t,O9,D9)))throw M(new Gn(tJn+t));if(n&&e!=null&&t7(jO,e.toLowerCase())&&!nye(t))throw M(new Gn(tJn+t));if(!u8e(i))throw M(new Gn("invalid device: "+i));if(!U6e(r))throw s=r==null?"invalid segments: null":"invalid segment: "+K6e(r),M(new Gn(s));if(!(c==null||ih(c,wu(35))==-1))throw M(new Gn("invalid query: "+c))}function jOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,S;if(t.Ug("Network simplex layering",1),n.b=e,S=u(v(e,(cn(),z8)),17).a*4,j=n.b.a,j.c.length<1){t.Vg();return}for(c=kSe(n,j),k=null,r=ge(c,0);r.b!=r.d.c;){for(i=u(be(r),15),f=S*wi(y.Math.sqrt(i.gc())),s=$Se(i),PF(pz(jhe(mz(BL(s),f),k),!0),t.eh(1)),g=n.b.b,m=new C(s.a);m.a1)for(k=K(ye,_e,28,n.b.b.c.length,15,1),d=0,l=new C(n.b.b);l.a0){QT(n,t,0),t.a+=String.fromCharCode(i),r=U8e(e,c),QT(n,t,r),c+=r-1;continue}i==39?c+10&&m.a<=0){h.c.length=0,Rn(h.c,m);break}p=m.i-m.d,p>=f&&(p>f&&(h.c.length=0,f=p),Rn(h.c,m))}h.c.length!=0&&(s=u(sn(h,cA(r,h.c.length)),118),O.a.Bc(s)!=null,s.g=a++,Ben(s,e,t,i),h.c.length=0)}for(j=n.c.length+1,g=new C(n);g.ali||e.o==Rd&&a=f&&r<=h)f<=r&&c<=h?(t[a++]=r,t[a++]=c,i+=2):f<=r?(t[a++]=r,t[a++]=h,n.b[i]=h+1,s+=2):c<=h?(t[a++]=f,t[a++]=c,i+=2):(t[a++]=f,t[a++]=h,n.b[i]=h+1);else if(hfa)&&f<10);kz(n.c,new Qbn),CGn(n),pwe(n.c),aOe(n.f)}function OOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(t=u(v(n,(cn(),Kt)),101),s=n.f,c=n.d,f=s.a+c.b+c.c,h=0-c.d-n.c.b,a=s.b+c.d+c.a-n.c.b,l=new Z,d=new Z,r=new C(e);r.a=2){for(h=ge(t,0),s=u(be(h),8),f=u(be(h),8);f.a0&&Mk(l,!0,(ci(),Xr)),f.k==(Vn(),Zt)&&oIn(l),Ve(n.f,f,e)}}function NOe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N;for(r=u(v(n,(pt(),r9)),27),l=et,a=et,f=Wi,h=Wi,O=ge(n.b,0);O.b!=O.d.c;)S=u(be(O),39),p=S.e,m=S.f,l=y.Math.min(l,p.a-m.a/2),a=y.Math.min(a,p.b-m.b/2),f=y.Math.max(f,p.a+m.a/2),h=y.Math.max(h,p.b+m.b/2);for(g=u(z(r,(lc(),Sln)),107),I=ge(n.b,0);I.b!=I.d.c;)S=u(be(I),39),d=v(S,r9),D(d,207)&&(c=u(d,27),Ro(c,S.e.a,S.e.b),cy(c,S));for(j=ge(n.a,0);j.b!=j.d.c;)k=u(be(j),65),i=u(v(k,r9),74),i&&(e=k.a,t=Xg(i,!0,!0),ay(e,t));N=f-l+(g.b+g.c),s=h-a+(g.d+g.a),on(un(z(r,(He(),Vw))))||q0(r,N,s,!1,!1),ht(r,B2,N-(g.b+g.c)),ht(r,F2,s-(g.d+g.a))}function TGn(n,e){var t,i,r,c,s,f,h,l,a,d;for(h=!0,r=0,l=n.g[e.p],a=e.o.b+n.o,t=n.d[e.p][2],Go(n.b,l,Y(u(sn(n.b,l),17).a-1+t)),Go(n.c,l,$(R(sn(n.c,l)))-a+t*n.f),++l,l>=n.j?(++n.j,nn(n.b,Y(1)),nn(n.c,a)):(i=n.d[e.p][1],Go(n.b,l,Y(u(sn(n.b,l),17).a+1-i)),Go(n.c,l,$(R(sn(n.c,l)))+a-i*n.f)),(n.r==(ps(),Aj)&&(u(sn(n.b,l),17).a>n.k||u(sn(n.b,l-1),17).a>n.k)||n.r==Sj&&($(R(sn(n.c,l)))>n.n||$(R(sn(n.c,l-1)))>n.n))&&(h=!1),s=new ie(ce(ji(e).a.Kc(),new En));pe(s);)c=u(fe(s),18),f=c.c.i,n.g[f.p]==l&&(d=TGn(n,f),r=r+u(d.a,17).a,h=h&&on(un(d.b)));return n.g[e.p]=l,r=r+n.d[e.p][0],new bi(Y(r),(_n(),!!h))}function AGn(n,e){var t,i,r,c,s;t=$(R(v(e,(cn(),Ws)))),t<2&&U(e,Ws,2),i=u(v(e,Do),88),i==(ci(),Jf)&&U(e,Do,KT(e)),r=u(v(e,Ute),17),r.a==0?U(e,(W(),S3),new dx):U(e,(W(),S3),new qM(r.a)),c=un(v(e,q8)),c==null&&U(e,q8,(_n(),x(v(e,$l))===x((El(),Bv)))),qt(new Tn(null,new In(e.a,16)),new IG(n)),qt(rc(new Tn(null,new In(e.b,16)),new _U),new OG(n)),s=new yGn(e),U(e,(W(),E2),s),H7(n.a),hf(n.a,(Vi(),Vs),u(v(e,Ld),188)),hf(n.a,Jh,u(v(e,$d),188)),hf(n.a,Oc,u(v(e,H8),188)),hf(n.a,Kc,u(v(e,vI),188)),hf(n.a,zr,Nve(u(v(e,$l),223))),CX(n.a,PLe(e)),U(e,wH,wy(n.a,e))}function Yen(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,S;for(d=new de,s=new Z,M_n(n,t,n.d.Ag(),s,d),M_n(n,i,n.d.Bg(),s,d),n.b=.2*(k=OHn(rc(new Tn(null,new In(s,16)),new x3n)),j=OHn(rc(new Tn(null,new In(s,16)),new F3n)),y.Math.min(k,j)),c=0,f=0;f=2&&(S=JHn(s,!0,g),!n.e&&(n.e=new ukn(n)),K8e(n.e,S,s,n.b)),DKn(s,g),KOe(s),p=-1,a=new C(s);a.af)}function SGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I;for(l=St,a=St,f=li,h=li,g=new C(e.i);g.a-1){for(r=ge(f,0);r.b!=r.d.c;)i=u(be(r),131),i.v=s;for(;f.b!=0;)for(i=u(Ux(f,0),131),t=new C(i.i);t.a-1){for(c=new C(f);c.a0)&&(gG(h,y.Math.min(h.o,r.o-1)),AE(h,h.i-1),h.i==0&&Rn(f.c,h))}}function IGn(n,e,t,i,r){var c,s,f,h;return h=St,s=!1,f=qen(n,mi(new V(e.a,e.b),n),tt(new V(t.a,t.b),r),mi(new V(i.a,i.b),t)),c=!!f&&!(y.Math.abs(f.a-n.a)<=J0&&y.Math.abs(f.b-n.b)<=J0||y.Math.abs(f.a-e.a)<=J0&&y.Math.abs(f.b-e.b)<=J0),f=qen(n,mi(new V(e.a,e.b),n),t,r),f&&((y.Math.abs(f.a-n.a)<=J0&&y.Math.abs(f.b-n.b)<=J0)==(y.Math.abs(f.a-e.a)<=J0&&y.Math.abs(f.b-e.b)<=J0)||c?h=y.Math.min(h,U6(mi(f,t))):s=!0),f=qen(n,mi(new V(e.a,e.b),n),i,r),f&&(s||(y.Math.abs(f.a-n.a)<=J0&&y.Math.abs(f.b-n.b)<=J0)==(y.Math.abs(f.a-e.a)<=J0&&y.Math.abs(f.b-e.b)<=J0)||c)&&(h=y.Math.min(h,U6(mi(f,i)))),h}function OGn(n){i0(n,new gd(qE(n0(Qd(Zd(Yd(new Ka,la),SXn),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new zbn),cu))),Q(n,la,e8,rn(Con)),Q(n,la,oS,(_n(),!0)),Q(n,la,r2,rn(dZn)),Q(n,la,d3,rn(bZn)),Q(n,la,a3,rn(wZn)),Q(n,la,zm,rn(aZn)),Q(n,la,t8,rn(Ton)),Q(n,la,Xm,rn(gZn)),Q(n,la,Wtn,rn(Eon)),Q(n,la,Qtn,rn(yon)),Q(n,la,Ytn,rn(jon)),Q(n,la,Ztn,rn(Mon)),Q(n,la,Jtn,rn(EP))}function _Oe(n){var e,t,i,r,c,s,f,h;for(e=null,i=new C(n);i.a0&&t.c==0&&(!e&&(e=new Z),Rn(e.c,t));if(e)for(;e.c.length!=0;){if(t=u(Yl(e,0),239),t.b&&t.b.c.length>0){for(c=(!t.b&&(t.b=new Z),new C(t.b));c.aqr(n,t,0))return new bi(r,t)}else if($(Af(r.g,r.d[0]).a)>$(Af(t.g,t.d[0]).a))return new bi(r,t)}for(f=(!t.e&&(t.e=new Z),t.e).Kc();f.Ob();)s=u(f.Pb(),239),h=(!s.b&&(s.b=new Z),s.b),zb(0,h.c.length),l6(h.c,0,t),s.c==h.c.length&&Rn(e.c,s)}return null}function HOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S;for(e.Ug("Interactive crossing minimization",1),s=0,c=new C(n.b);c.a0&&(t+=h.n.a+h.o.a/2,++d),m=new C(h.j);m.a0&&(t/=d),S=K(Pi,Tr,28,i.a.c.length,15,1),f=0,l=new C(i.a);l.a=f&&r<=h)f<=r&&c<=h?i+=2:f<=r?(n.b[i]=h+1,s+=2):c<=h?(t[a++]=r,t[a++]=f-1,i+=2):(t[a++]=r,t[a++]=f-1,n.b[i]=h+1,s+=2);else if(h2?(a=new Z,hi(a,new Jl(S,1,S.b)),c=mzn(a,O+n.a),I=new bF(c),Ur(I,e),Rn(t.c,I)):i?I=u(ee(n.b,Kh(e)),272):I=u(ee(n.b,ra(e)),272),h=Kh(e),i&&(h=ra(e)),s=_je(j,h),l=O+n.a,s.a?(l+=y.Math.abs(j.b-d.b),k=new V(d.a,(d.b+j.b)/2)):(l+=y.Math.abs(j.a-d.a),k=new V((d.a+j.a)/2,d.b)),i?Ve(n.d,e,new pZ(I,s,k,l)):Ve(n.c,e,new pZ(I,s,k,l)),Ve(n.b,e,I),m=(!e.n&&(e.n=new q(Ar,e,1,7)),e.n),p=new ne(m);p.e!=p.i.gc();)g=u(ue(p),135),r=sy(n,g,!0,0,0),Rn(t.c,r)}function qOe(n){var e,t,i,r,c,s,f;if(!n.A.dc()){if(n.A.Hc((go(),iE))&&(u(Cr(n.b,(en(),Xn)),127).k=!0,u(Cr(n.b,ae),127).k=!0,e=n.q!=(Oi(),tl)&&n.q!=qc,dG(u(Cr(n.b,Zn),127),e),dG(u(Cr(n.b,Wn),127),e),dG(n.g,e),n.A.Hc(Gd)&&(u(Cr(n.b,Xn),127).j=!0,u(Cr(n.b,ae),127).j=!0,u(Cr(n.b,Zn),127).k=!0,u(Cr(n.b,Wn),127).k=!0,n.g.k=!0)),n.A.Hc(tE))for(n.a.j=!0,n.a.k=!0,n.g.j=!0,n.g.k=!0,f=n.B.Hc((io(),S9)),r=jx(),c=0,s=r.length;c0),u(a.a.Xb(a.c=--a.b),18));c!=i&&a.b>0;)n.a[c.p]=!0,n.a[i.p]=!0,c=(oe(a.b>0),u(a.a.Xb(a.c=--a.b),18));a.b>0&&bo(a)}}function LGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;if(!n.b)return!1;for(s=null,g=null,h=new r$(null,null),r=1,h.a[1]=n.b,d=h;d.a[r];)l=r,f=g,g=d,d=d.a[r],i=n.a.Ne(e,d.d),r=i<0?0:1,i==0&&(!t.c||mc(d.e,t.d))&&(s=d),!(d&&d.b)&&!Pb(d.a[r])&&(Pb(d.a[1-r])?g=g.a[l]=jT(d,r):Pb(d.a[1-r])||(p=g.a[1-l],p&&(!Pb(p.a[1-l])&&!Pb(p.a[l])?(g.b=!1,p.b=!0,d.b=!0):(c=f.a[1]==g?1:0,Pb(p.a[l])?f.a[c]=sDn(g,l):Pb(p.a[1-l])&&(f.a[c]=jT(g,l)),d.b=f.a[c].b=!0,f.a[c].a[0].b=!1,f.a[c].a[1].b=!1))));return s&&(t.b=!0,t.d=s.e,d!=s&&(a=new r$(d.d,d.e),zye(n,h,s,a),g==s&&(g=a)),g.a[g.a[1]==d?1:0]=d.a[d.a[0]?0:1],--n.c),n.b=h.a[1],n.b&&(n.b.b=!1),t.b}function zOe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(r=new C(n.a.a.b);r.a0?r-=864e5:r+=864e5,h=new sV(nr(vc(e.q.getTime()),r))),a=new fg,l=n.a.length,c=0;c=97&&i<=122||i>=65&&i<=90){for(s=c+1;s=l)throw M(new Gn("Missing trailing '"));s+1=14&&a<=16))?e.a._b(i)?(t.a?Re(t.a,t.b):t.a=new mo(t.d),C6(t.a,"[...]")):(f=cd(i),l=new $6(e),pl(t,$Gn(f,l))):D(i,183)?pl(t,CEe(u(i,183))):D(i,195)?pl(t,fye(u(i,195))):D(i,201)?pl(t,vje(u(i,201))):D(i,2111)?pl(t,hye(u(i,2111))):D(i,53)?pl(t,EEe(u(i,53))):D(i,376)?pl(t,_Ee(u(i,376))):D(i,846)?pl(t,jEe(u(i,846))):D(i,109)&&pl(t,yEe(u(i,109))):pl(t,i==null?gu:Jr(i));return t.a?t.e.length==0?t.a.a:t.a.a+(""+t.e):t.c}function Dm(n,e){var t,i,r,c;c=n.F,e==null?(n.F=null,cm(n,null)):(n.F=(Jn(e),e),i=ih(e,wu(60)),i!=-1?(r=(Fi(0,i,e.length),e.substr(0,i)),ih(e,wu(46))==-1&&!An(r,i3)&&!An(r,g8)&&!An(r,GS)&&!An(r,p8)&&!An(r,m8)&&!An(r,v8)&&!An(r,k8)&&!An(r,y8)&&(r=wJn),t=xC(e,wu(62)),t!=-1&&(r+=""+(zn(t+1,e.length+1),e.substr(t+1))),cm(n,r)):(r=e,ih(e,wu(46))==-1&&(i=ih(e,wu(91)),i!=-1&&(r=(Fi(0,i,e.length),e.substr(0,i))),!An(r,i3)&&!An(r,g8)&&!An(r,GS)&&!An(r,p8)&&!An(r,m8)&&!An(r,v8)&&!An(r,k8)&&!An(r,y8)?(r=wJn,i!=-1&&(r+=""+(zn(i,e.length+1),e.substr(i)))):r=e),cm(n,r),r==e&&(n.F=n.D))),n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,5,c,e))}function xGn(n,e){var t,i,r,c,s,f,h,l,a,d;if(h=e.length-1,f=(zn(h,e.length),e.charCodeAt(h)),f==93){if(s=ih(e,wu(91)),s>=0)return r=Q5e(n,(Fi(1,s,e.length),e.substr(1,s-1))),a=(Fi(s+1,h,e.length),e.substr(s+1,h-(s+1))),ELe(n,a,r)}else{if(t=-1,dun==null&&(dun=new RegExp("\\d")),dun.test(String.fromCharCode(f))&&(t=TV(e,wu(46),h-1),t>=0)){i=u(YN(n,E$n(n,(Fi(1,t,e.length),e.substr(1,t-1))),!1),61),l=0;try{l=Ao((zn(t+1,e.length+1),e.substr(t+1)),Wi,et)}catch(g){throw g=It(g),D(g,130)?(c=g,M(new eT(c))):M(g)}if(l>16==-10?t=u(n.Cb,291).Yk(e,t):n.Db>>16==-15&&(!e&&(e=(On(),Zf)),!l&&(l=(On(),Zf)),n.Cb.Yh()&&(h=new ml(n.Cb,1,13,l,e,f1(no(u(n.Cb,62)),n),!1),t?t.nj(h):t=h));else if(D(n.Cb,90))n.Db>>16==-23&&(D(e,90)||(e=(On(),Is)),D(l,90)||(l=(On(),Is)),n.Cb.Yh()&&(h=new ml(n.Cb,1,10,l,e,f1(Sc(u(n.Cb,29)),n),!1),t?t.nj(h):t=h));else if(D(n.Cb,456))for(f=u(n.Cb,850),s=(!f.b&&(f.b=new LE(new aD)),f.b),c=(i=new sd(new Ua(s.a).a),new NE(i));c.a.b;)r=u(O0(c.a).ld(),89),t=Lm(r,MA(r,f),t)}return t}function QOe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(s=on(un(z(n,(cn(),Rw)))),g=u(z(n,_w),21),h=!1,l=!1,d=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));d.e!=d.i.gc()&&(!h||!l);){for(c=u(ue(d),123),f=0,r=$h(Eo(A(T(Oo,1),Fn,20,0,[(!c.d&&(c.d=new Nn(Vt,c,8,5)),c.d),(!c.e&&(c.e=new Nn(Vt,c,7,4)),c.e)])));pe(r)&&(i=u(fe(r),74),a=s&&R0(i)&&on(un(z(i,Nd))),t=bGn((!i.b&&(i.b=new Nn(he,i,4,7)),i.b),c)?n==At(Gr(u(L((!i.c&&(i.c=new Nn(he,i,5,8)),i.c),0),84))):n==At(Gr(u(L((!i.b&&(i.b=new Nn(he,i,4,7)),i.b),0),84))),!((a||t)&&(++f,f>1))););(f>0||g.Hc((zu(),Fl))&&(!c.n&&(c.n=new q(Ar,c,1,7)),c.n).i>0)&&(h=!0),f>1&&(l=!0)}h&&e.Fc((pr(),cs)),l&&e.Fc((pr(),$8))}function FGn(n){var e,t,i,r,c,s,f,h,l,a,d,g;if(g=u(z(n,(He(),Hd)),21),g.dc())return null;if(f=0,s=0,g.Hc((go(),iE))){for(a=u(z(n,m9),101),i=2,t=2,r=2,c=2,e=At(n)?u(z(At(n),_d),88):u(z(n,_d),88),l=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));l.e!=l.i.gc();)if(h=u(ue(l),123),d=u(z(h,H2),64),d==(en(),sc)&&(d=Fen(h,e),ht(h,H2,d)),a==(Oi(),qc))switch(d.g){case 1:i=y.Math.max(i,h.i+h.g);break;case 2:t=y.Math.max(t,h.j+h.f);break;case 3:r=y.Math.max(r,h.i+h.g);break;case 4:c=y.Math.max(c,h.j+h.f)}else switch(d.g){case 1:i+=h.g+2;break;case 2:t+=h.f+2;break;case 3:r+=h.g+2;break;case 4:c+=h.f+2}f=y.Math.max(i,r),s=y.Math.max(t,c)}return q0(n,f,s,!0,!0)}function VF(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N;for(I=u(Wr(fT(ut(new Tn(null,new In(e.d,16)),new T7n(t)),new A7n(t)),qu(new ju,new yu,new Eu,A(T(xr,1),G,108,0,[(Gu(),Yr)]))),15),d=et,a=Wi,h=new C(e.b.j);h.a0,l?l&&(g=S.p,s?++g:--g,d=u(sn(S.c.a,g),10),i=uFn(d),p=!(mF(i,X,t[0])||IPn(i,X,t[0]))):p=!0),m=!1,_=e.D.i,_&&_.c&&f.e&&(a=s&&_.p>0||!s&&_.p<_.c.a.c.length-1,a?(g=_.p,s?--g:++g,d=u(sn(_.c.a,g),10),i=uFn(d),m=!(mF(i,t[0],jn)||IPn(i,t[0],jn))):m=!0),p&&m&&Fe(n.a,tn),p||t5(n.a,A(T(Ei,1),J,8,0,[k,j])),m||t5(n.a,A(T(Ei,1),J,8,0,[N,O]))}function eDe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,S,I;for(p=e.c.length,g=0,d=new C(n.b);d.a=0){for(h=null,f=new xi(a.a,l+1);f.bs?1:u0(isNaN(0),isNaN(s)))<0&&(Ks(jh),(y.Math.abs(s-1)<=jh||s==1||isNaN(s)&&isNaN(1)?0:s<1?-1:s>1?1:u0(isNaN(s),isNaN(1)))<0)&&(Ks(jh),(y.Math.abs(0-f)<=jh||f==0||isNaN(0)&&isNaN(f)?0:0f?1:u0(isNaN(0),isNaN(f)))<0)&&(Ks(jh),(y.Math.abs(f-1)<=jh||f==1||isNaN(f)&&isNaN(1)?0:f<1?-1:f>1?1:u0(isNaN(f),isNaN(1)))<0)),c)}function iDe(n){var e,t,i,r;if(t=n.D!=null?n.D:n.B,e=ih(t,wu(91)),e!=-1){i=(Fi(0,e,t.length),t.substr(0,e)),r=new Hl;do r.a+="[";while((e=b4(t,91,++e))!=-1);An(i,i3)?r.a+="Z":An(i,g8)?r.a+="B":An(i,GS)?r.a+="C":An(i,p8)?r.a+="D":An(i,m8)?r.a+="F":An(i,v8)?r.a+="I":An(i,k8)?r.a+="J":An(i,y8)?r.a+="S":(r.a+="L",r.a+=""+i,r.a+=";");try{return null}catch(c){if(c=It(c),!D(c,63))throw M(c)}}else if(ih(t,wu(46))==-1){if(An(t,i3))return so;if(An(t,g8))return Fu;if(An(t,GS))return fs;if(An(t,p8))return Pi;if(An(t,m8))return cg;if(An(t,v8))return ye;if(An(t,k8))return Fa;if(An(t,y8))return V2}return null}function rDe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X,tn;for(n.e=e,f=rCe(e),X=new Z,i=new C(f);i.a=0&&k=l.c.c.length?a=CJ((Vn(),zt),Mi):a=CJ((Vn(),Mi),Mi),a*=2,c=t.a.g,t.a.g=y.Math.max(c,c+(a-c)),s=t.b.g,t.b.g=y.Math.max(s,s+(a-s)),r=e}}function sDe(n){var e,t,i,r;for(qt(ut(new Tn(null,new In(n.a.b,16)),new z2n),new X2n),qke(n),qt(ut(new Tn(null,new In(n.a.b,16)),new V2n),new W2n),n.c==(El(),x3)&&(qt(ut(rc(new Tn(null,new In(new qa(n.f),1)),new J2n),new Q2n),new v7n(n)),qt(ut(_r(rc(rc(new Tn(null,new In(n.d.b,16)),new Y2n),new Z2n),new npn),new epn),new y7n(n))),r=new V(St,St),e=new V(li,li),i=new C(n.a.b);i.a0&&(e.a+=ur),GA(u(ue(f),167),e);for(e.a+=iR,h=new kp((!i.c&&(i.c=new Nn(he,i,5,8)),i.c));h.e!=h.i.gc();)h.e>0&&(e.a+=ur),GA(u(ue(h),167),e);e.a+=")"}}function fDe(n,e,t){var i,r,c,s,f,h,l,a;for(h=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));h.e!=h.i.gc();)for(f=u(ue(h),27),r=new ie(ce(Al(f).a.Kc(),new En));pe(r);){if(i=u(fe(r),74),!i.b&&(i.b=new Nn(he,i,4,7)),!(i.b.i<=1&&(!i.c&&(i.c=new Nn(he,i,5,8)),i.c.i<=1)))throw M(new hp("Graph must not contain hyperedges."));if(!D5(i)&&f!=Gr(u(L((!i.c&&(i.c=new Nn(he,i,5,8)),i.c),0),84)))for(l=new BAn,Ur(l,i),U(l,(Q1(),y3),i),Jse(l,u(Kr(wr(t.f,f)),153)),Zse(l,u(ee(t,Gr(u(L((!i.c&&(i.c=new Nn(he,i,5,8)),i.c),0),84))),153)),nn(e.c,l),s=new ne((!i.n&&(i.n=new q(Ar,i,1,7)),i.n));s.e!=s.i.gc();)c=u(ue(s),135),a=new KDn(l,c.a),Ur(a,c),U(a,y3,c),a.e.a=y.Math.max(c.g,1),a.e.b=y.Math.max(c.f,1),Hen(a),nn(e.d,a)}}function hDe(n,e,t){var i,r,c,s,f,h,l,a,d,g;switch(t.Ug("Node promotion heuristic",1),n.i=e,n.r=u(v(e,(cn(),ja)),243),n.r!=(ps(),wb)&&n.r!=Uw?FDe(n):fAe(n),a=u(v(n.i,ihn),17).a,c=new Fgn,n.r.g){case 2:case 1:Om(n,c);break;case 3:for(n.r=SI,Om(n,c),h=0,f=new C(n.b);f.an.k&&(n.r=Aj,Om(n,c));break;case 4:for(n.r=SI,Om(n,c),l=0,r=new C(n.c);r.an.n&&(n.r=Sj,Om(n,c));break;case 6:g=wi(y.Math.ceil(n.g.length*a/100)),Om(n,new o7n(g));break;case 5:d=wi(y.Math.ceil(n.e*a/100)),Om(n,new s7n(d));break;case 8:yzn(n,!0);break;case 9:yzn(n,!1);break;default:Om(n,c)}n.r!=wb&&n.r!=Uw?LTe(n,e):ZAe(n,e),t.Vg()}function lDe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O;for(d=n.b,a=new xi(d,0),Rb(a,new Lc(n)),I=!1,s=1;a.b0&&(g.d+=a.n.d,g.d+=a.d),g.a>0&&(g.a+=a.n.a,g.a+=a.d),g.b>0&&(g.b+=a.n.b,g.b+=a.d),g.c>0&&(g.c+=a.n.c,g.c+=a.d),g}function RGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;for(g=t.d,d=t.c,c=new V(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),s=c.b,l=new C(n.a);l.a0&&(n.c[e.c.p][e.p].d+=to(n.i,24)*Py*.07000000029802322-.03500000014901161,n.c[e.c.p][e.p].a=n.c[e.c.p][e.p].d/n.c[e.c.p][e.p].b)}}function bDe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(m=new C(n);m.ai.d,i.d=y.Math.max(i.d,e),f&&t&&(i.d=y.Math.max(i.d,i.a),i.a=i.d+r);break;case 3:t=e>i.a,i.a=y.Math.max(i.a,e),f&&t&&(i.a=y.Math.max(i.a,i.d),i.d=i.a+r);break;case 2:t=e>i.c,i.c=y.Math.max(i.c,e),f&&t&&(i.c=y.Math.max(i.b,i.c),i.b=i.c+r);break;case 4:t=e>i.b,i.b=y.Math.max(i.b,e),f&&t&&(i.b=y.Math.max(i.b,i.c),i.c=i.b+r)}}}function _Gn(n,e){var t,i,r,c,s,f,h,l,a;return l="",e.length==0?n.ne(mtn,uB,-1,-1):(a=fw(e),An(a.substr(0,3),"at ")&&(a=(zn(3,a.length+1),a.substr(3))),a=a.replace(/\[.*?\]/g,""),s=a.indexOf("("),s==-1?(s=a.indexOf("@"),s==-1?(l=a,a=""):(l=fw((zn(s+1,a.length+1),a.substr(s+1))),a=fw((Fi(0,s,a.length),a.substr(0,s))))):(t=a.indexOf(")",s),l=(Fi(s+1,t,a.length),a.substr(s+1,t-(s+1))),a=fw((Fi(0,s,a.length),a.substr(0,s)))),s=ih(a,wu(46)),s!=-1&&(a=(zn(s+1,a.length+1),a.substr(s+1))),(a.length==0||An(a,"Anonymous function"))&&(a=uB),f=xC(l,wu(58)),r=TV(l,wu(58),f-1),h=-1,i=-1,c=mtn,f!=-1&&r!=-1&&(c=(Fi(0,r,l.length),l.substr(0,r)),h=iAn((Fi(r+1,f,l.length),l.substr(r+1,f-(r+1)))),i=iAn((zn(f+1,l.length+1),l.substr(f+1)))),n.ne(c,a,h,i))}function pDe(n){var e,t,i,r,c,s,f,h,l,a,d;for(l=new C(n);l.a0||a.j==Wn&&a.e.c.length-a.g.c.length<0)){e=!1;break}for(r=new C(a.g);r.a=l&&_>=j&&(g+=m.n.b+k.n.b+k.a.b-N,++f));if(t)for(s=new C(I.e);s.a=l&&_>=j&&(g+=m.n.b+k.n.b+k.a.b-N,++f))}f>0&&(X+=g/f,++p)}p>0?(e.a=r*X/p,e.g=p):(e.a=0,e.g=0)}function vDe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X,tn;for(c=n.f.b,g=c.a,a=c.b,m=n.e.g,p=n.e.f,kg(n.e,c.a,c.b),X=g/m,tn=a/p,l=new ne(yM(n.e));l.e!=l.i.gc();)h=u(ue(l),135),eu(h,h.i*X),tu(h,h.j*tn);for(I=new ne(mN(n.e));I.e!=I.i.gc();)S=u(ue(I),123),N=S.i,_=S.j,N>0&&eu(S,N*X),_>0&&tu(S,_*tn);for(o5(n.b,new qbn),e=new Z,f=new sd(new Ua(n.c).a);f.b;)s=O0(f),i=u(s.ld(),74),t=u(s.md(),407).a,r=Xg(i,!1,!1),d=LKn(Kh(i),Jk(r),t),ay(d,r),O=zKn(i),O&&qr(e,O,0)==-1&&(Rn(e.c,O),yIn(O,(oe(d.b!=0),u(d.a.a.c,8)),t));for(j=new sd(new Ua(n.d).a);j.b;)k=O0(j),i=u(k.ld(),74),t=u(k.md(),407).a,r=Xg(i,!1,!1),d=LKn(ra(i),Ak(Jk(r)),t),d=Ak(d),ay(d,r),O=XKn(i),O&&qr(e,O,0)==-1&&(Rn(e.c,O),yIn(O,(oe(d.b!=0),u(d.c.b.c,8)),t))}function HGn(n,e,t,i){var r,c,s,f,h;return f=new etn(e),hTe(f,i),r=!0,n&&n.pf((He(),_d))&&(c=u(n.of((He(),_d)),88),r=c==(ci(),Jf)||c==Br||c==Xr),_qn(f,!1),nu(f.e.Rf(),new LV(f,!1,r)),ON(f,f.f,(wf(),bc),(en(),Xn)),ON(f,f.f,wc,ae),ON(f,f.g,bc,Wn),ON(f,f.g,wc,Zn),wRn(f,Xn),wRn(f,ae),mIn(f,Zn),mIn(f,Wn),Bb(),s=f.A.Hc((go(),Qw))&&f.B.Hc((io(),cE))?LBn(f):null,s&&vhe(f.a,s),gDe(f),p7e(f),m7e(f),qOe(f),pSe(f),U7e(f),kx(f,Xn),kx(f,ae),VAe(f),pIe(f),t&&(Y5e(f),G7e(f),kx(f,Zn),kx(f,Wn),h=f.B.Hc((io(),S9)),L_n(f,h,Xn),L_n(f,h,ae),N_n(f,h,Zn),N_n(f,h,Wn),qt(new Tn(null,new In(new ol(f.i),0)),new abn),qt(ut(new Tn(null,OW(f.r).a.oc()),new dbn),new bbn),cye(f),f.e.Pf(f.o),qt(new Tn(null,OW(f.r).a.oc()),new wbn)),f.o}function kDe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(l=St,i=new C(n.a.b);i.a1)for(p=new zen(m,O,i),qi(O,new QCn(n,p)),Rn(s.c,p),d=O.a.ec().Kc();d.Ob();)a=u(d.Pb(),42),du(c,a.b);if(f.a.gc()>1)for(p=new zen(m,f,i),qi(f,new YCn(n,p)),Rn(s.c,p),d=f.a.ec().Kc();d.Ob();)a=u(d.Pb(),42),du(c,a.b)}}function CDe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,S;if(k=n.n,j=n.o,g=n.d,d=$(R(rw(n,(cn(),PH)))),e){for(a=d*(e.gc()-1),p=0,h=e.Kc();h.Ob();)s=u(h.Pb(),10),a+=s.o.a,p=y.Math.max(p,s.o.b);for(S=k.a-(a-j.a)/2,c=k.b-g.d+p,i=j.a/(e.gc()+1),r=i,f=e.Kc();f.Ob();)s=u(f.Pb(),10),s.n.a=S,s.n.b=c-s.o.b,S+=s.o.a+d,l=QHn(s),l.n.a=s.o.a/2-l.a.a,l.n.b=s.o.b,m=u(v(s,(W(),tI)),12),m.e.c.length+m.g.c.length==1&&(m.n.a=r-m.a.a,m.n.b=0,ic(m,n)),r+=i}if(t){for(a=d*(t.gc()-1),p=0,h=t.Kc();h.Ob();)s=u(h.Pb(),10),a+=s.o.a,p=y.Math.max(p,s.o.b);for(S=k.a-(a-j.a)/2,c=k.b+j.b+g.a-p,i=j.a/(t.gc()+1),r=i,f=t.Kc();f.Ob();)s=u(f.Pb(),10),s.n.a=S,s.n.b=c,S+=s.o.a+d,l=QHn(s),l.n.a=s.o.a/2-l.a.a,l.n.b=0,m=u(v(s,(W(),tI)),12),m.e.c.length+m.g.c.length==1&&(m.n.a=r-m.a.a,m.n.b=j.b,ic(m,n)),r+=i}}function MDe(n,e){var t,i,r,c,s,f;if(u(v(e,(W(),Hc)),21).Hc((pr(),cs))){for(f=new C(e.a);f.a=0&&s0&&(u(Cr(n.b,e),127).a.b=t)}function IDe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k;if(g=$(R(v(n,(cn(),Tv)))),p=$(R(v(n,Av))),d=$(R(v(n,qw))),f=n.o,c=u(sn(n.j,0),12),s=c.n,k=Xje(c,d),!!k){if(e.Hc((zu(),Fl)))switch(u(v(n,(W(),gc)),64).g){case 1:k.c=(f.a-k.b)/2-s.a,k.d=p;break;case 3:k.c=(f.a-k.b)/2-s.a,k.d=-p-k.a;break;case 2:t&&c.e.c.length==0&&c.g.c.length==0?(a=i?k.a:u(sn(c.f,0),72).o.b,k.d=(f.b-a)/2-s.b):k.d=f.b+p-s.b,k.c=-g-k.b;break;case 4:t&&c.e.c.length==0&&c.g.c.length==0?(a=i?k.a:u(sn(c.f,0),72).o.b,k.d=(f.b-a)/2-s.b):k.d=f.b+p-s.b,k.c=g}else if(e.Hc(Ia))switch(u(v(n,(W(),gc)),64).g){case 1:case 3:k.c=s.a+g;break;case 2:case 4:t&&!c.c?(a=i?k.a:u(sn(c.f,0),72).o.b,k.d=(f.b-a)/2-s.b):k.d=s.b+p}for(r=k.d,l=new C(c.f);l.a=e.length)return{done:!0};var r=e[i++];return{value:[r,t.get(r)],done:!1}}}},AAe()||(n.prototype.createObject=function(){return{}},n.prototype.get=function(e){return this.obj[":"+e]},n.prototype.set=function(e,t){this.obj[":"+e]=t},n.prototype[DB]=function(e){delete this.obj[":"+e]},n.prototype.keys=function(){var e=[];for(var t in this.obj)t.charCodeAt(0)==58&&e.push(t.substring(1));return e}),n}function pt(){pt=F,r9=new lt(Vtn),new Dt("DEPTH",Y(0)),iq=new Dt("FAN",Y(0)),gln=new Dt(bVn,Y(0)),Ma=new Dt("ROOT",(_n(),!1)),uq=new Dt("LEFTNEIGHBOR",null),dre=new Dt("RIGHTNEIGHBOR",null),$I=new Dt("LEFTSIBLING",null),oq=new Dt("RIGHTSIBLING",null),tq=new Dt("DUMMY",!1),new Dt("LEVEL",Y(0)),vln=new Dt("REMOVABLE_EDGES",new Ct),Nj=new Dt("XCOOR",Y(0)),$j=new Dt("YCOOR",Y(0)),xI=new Dt("LEVELHEIGHT",0),jf=new Dt("LEVELMIN",0),Js=new Dt("LEVELMAX",0),rq=new Dt("GRAPH_XMIN",0),cq=new Dt("GRAPH_YMIN",0),pln=new Dt("GRAPH_XMAX",0),mln=new Dt("GRAPH_YMAX",0),wln=new Dt("COMPACT_LEVEL_ASCENSION",!1),eq=new Dt("COMPACT_CONSTRAINTS",new Z),i9=new Dt("ID",""),c9=new Dt("POSITION",Y(0)),j1=new Dt("PRELIM",0),Dv=new Dt("MODIFIER",0),Ov=new lt(TXn),Lj=new lt(AXn)}function NDe(n){xen();var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(n==null)return null;if(d=n.length*8,d==0)return"";for(f=d%24,p=d/24|0,g=f!=0?p+1:p,c=null,c=K(fs,gh,28,g*4,15,1),l=0,a=0,e=0,t=0,i=0,s=0,r=0,h=0;h>24,l=(e&3)<<24>>24,m=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,k=t&-128?(t>>4^240)<<24>>24:t>>4<<24>>24,j=i&-128?(i>>6^252)<<24>>24:i>>6<<24>>24,c[s++]=O1[m],c[s++]=O1[k|l<<4],c[s++]=O1[a<<2|j],c[s++]=O1[i&63];return f==8?(e=n[r],l=(e&3)<<24>>24,m=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,c[s++]=O1[m],c[s++]=O1[l<<4],c[s++]=61,c[s++]=61):f==16&&(e=n[r],t=n[r+1],a=(t&15)<<24>>24,l=(e&3)<<24>>24,m=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,k=t&-128?(t>>4^240)<<24>>24:t>>4<<24>>24,c[s++]=O1[m],c[s++]=O1[k|l<<4],c[s++]=O1[a<<2],c[s++]=61),ws(c,0,c.length)}function $De(n,e){var t,i,r,c,s,f,h;if(n.e==0&&n.p>0&&(n.p=-(n.p-1)),n.p>Wi&&EJ(e,n.p-ha),s=e.q.getDate(),V7(e,1),n.k>=0&&E2e(e,n.k),n.c>=0?V7(e,n.c):n.k>=0?(h=new ZQ(e.q.getFullYear()-ha,e.q.getMonth(),35),i=35-h.q.getDate(),V7(e,y.Math.min(i,s))):V7(e,s),n.f<0&&(n.f=e.q.getHours()),n.b>0&&n.f<12&&(n.f+=12),b1e(e,n.f==24&&n.g?0:n.f),n.j>=0&&c4e(e,n.j),n.n>=0&&p4e(e,n.n),n.i>=0&&JMn(e,nr(er(zk(vc(e.q.getTime()),d1),d1),n.i)),n.a&&(r=new WE,EJ(r,r.q.getFullYear()-ha-80),ND(vc(e.q.getTime()),vc(r.q.getTime()))&&EJ(e,r.q.getFullYear()-ha+100)),n.d>=0){if(n.c==-1)t=(7+n.d-e.q.getDay())%7,t>3&&(t-=7),f=e.q.getMonth(),V7(e,e.q.getDate()+t),e.q.getMonth()!=f&&V7(e,e.q.getDate()+(t>0?-7:7));else if(e.q.getDay()!=n.d)return!1}return n.o>Wi&&(c=e.q.getTimezoneOffset(),JMn(e,nr(vc(e.q.getTime()),(n.o-c)*60*d1))),!0}function XGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N;if(r=v(e,(W(),st)),!!D(r,207)){for(m=u(r,27),k=e.e,g=new rr(e.c),c=e.d,g.a+=c.b,g.b+=c.d,N=u(z(m,(cn(),kI)),181),Au(N,(io(),sO))&&(p=u(z(m,shn),107),Use(p,c.a),Yse(p,c.d),Gse(p,c.b),Qse(p,c.c)),t=new Z,a=new C(e.a);a.ai.c.length-1;)nn(i,new bi(i2,Mrn));t=u(v(r,Sh),17).a,hl(u(v(n,pb),88))?(r.e.a<$(R((Ln(t,i.c.length),u(i.c[t],42)).a))&&QO((Ln(t,i.c.length),u(i.c[t],42)),r.e.a),r.e.a+r.f.a>$(R((Ln(t,i.c.length),u(i.c[t],42)).b))&&YO((Ln(t,i.c.length),u(i.c[t],42)),r.e.a+r.f.a)):(r.e.b<$(R((Ln(t,i.c.length),u(i.c[t],42)).a))&&QO((Ln(t,i.c.length),u(i.c[t],42)),r.e.b),r.e.b+r.f.b>$(R((Ln(t,i.c.length),u(i.c[t],42)).b))&&YO((Ln(t,i.c.length),u(i.c[t],42)),r.e.b+r.f.b))}for(c=ge(n.b,0);c.b!=c.d.c;)r=u(be(c),39),t=u(v(r,(lc(),Sh)),17).a,U(r,(pt(),jf),R((Ln(t,i.c.length),u(i.c[t],42)).a)),U(r,Js,R((Ln(t,i.c.length),u(i.c[t],42)).b));e.Vg()}function FDe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(n.o=$(R(v(n.i,(cn(),bb)))),n.f=$(R(v(n.i,Bd))),n.j=n.i.b.c.length,f=n.j-1,g=0,n.k=0,n.n=0,n.b=Of(K(Gi,J,17,n.j,0,1)),n.c=Of(K(si,J,345,n.j,7,1)),s=new C(n.i.b);s.a0&&nn(n.q,a),nn(n.p,a);e-=i,p=h+e,l+=e*n.f,Go(n.b,f,Y(p)),Go(n.c,f,l),n.k=y.Math.max(n.k,p),n.n=y.Math.max(n.n,l),n.e+=e,e+=k}}function en(){en=F;var n;sc=new v7(Y5,0),Xn=new v7(eS,1),Zn=new v7(HB,2),ae=new v7(qB,3),Wn=new v7(UB,4),Yf=(Dn(),new i4((n=u(of(lr),9),new _o(n,u(xs(n,n.length),9),0)))),ef=i1(yt(Xn,A(T(lr,1),Mc,64,0,[]))),os=i1(yt(Zn,A(T(lr,1),Mc,64,0,[]))),No=i1(yt(ae,A(T(lr,1),Mc,64,0,[]))),Ts=i1(yt(Wn,A(T(lr,1),Mc,64,0,[]))),mu=i1(yt(Xn,A(T(lr,1),Mc,64,0,[ae]))),su=i1(yt(Zn,A(T(lr,1),Mc,64,0,[Wn]))),tf=i1(yt(Xn,A(T(lr,1),Mc,64,0,[Wn]))),Wu=i1(yt(Xn,A(T(lr,1),Mc,64,0,[Zn]))),$o=i1(yt(ae,A(T(lr,1),Mc,64,0,[Wn]))),ss=i1(yt(Zn,A(T(lr,1),Mc,64,0,[ae]))),Ju=i1(yt(Xn,A(T(lr,1),Mc,64,0,[Zn,Wn]))),pu=i1(yt(Zn,A(T(lr,1),Mc,64,0,[ae,Wn]))),vu=i1(yt(Xn,A(T(lr,1),Mc,64,0,[ae,Wn]))),xu=i1(yt(Xn,A(T(lr,1),Mc,64,0,[Zn,ae]))),Uc=i1(yt(Xn,A(T(lr,1),Mc,64,0,[Zn,ae,Wn])))}function BDe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X,tn;for(e.Ug(XXn,1),k=new Z,X=new Z,l=new C(n.b);l.a0&&(O-=p),Xen(s,O),a=0,g=new C(s.a);g.a0),f.a.Xb(f.c=--f.b)),h=.4*i*a,!c&&f.b0&&(h=(zn(0,e.length),e.charCodeAt(0)),h!=64)){if(h==37&&(d=e.lastIndexOf("%"),l=!1,d!=0&&(d==g-1||(l=(zn(d+1,e.length),e.charCodeAt(d+1)==46))))){if(s=(Fi(1,d,e.length),e.substr(1,d-1)),O=An("%",s)?null:rtn(s),i=0,l)try{i=Ao((zn(d+2,e.length+1),e.substr(d+2)),Wi,et)}catch(N){throw N=It(N),D(N,130)?(f=N,M(new eT(f))):M(N)}for(j=DQ(n.Gh());j.Ob();)if(m=PT(j),D(m,519)&&(r=u(m,598),I=r.d,(O==null?I==null:An(O,I))&&i--==0))return r;return null}if(a=e.lastIndexOf("."),p=a==-1?e:(Fi(0,a,e.length),e.substr(0,a)),t=0,a!=-1)try{t=Ao((zn(a+1,e.length+1),e.substr(a+1)),Wi,et)}catch(N){if(N=It(N),D(N,130))p=e;else throw M(N)}for(p=An("%",p)?null:rtn(p),k=DQ(n.Gh());k.Ob();)if(m=PT(k),D(m,197)&&(c=u(m,197),S=c.xe(),(p==null?S==null:An(p,S))&&t--==0))return c;return null}return xGn(n,e)}function zDe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I;for(a=new de,h=new j0,i=new C(n.a.a.b);i.ae.d.c){if(p=n.c[e.a.d],j=n.c[d.a.d],p==j)continue;qs(Ls(Ds(Ns(Os(new hs,1),100),p),j))}}}}}function XDe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X;if(g=u(u(ot(n.r,e),21),87),e==(en(),Zn)||e==Wn){UGn(n,e);return}for(c=e==Xn?(D0(),tj):(D0(),ij),N=e==Xn?(bu(),kf):(bu(),Xs),t=u(Cr(n.b,e),127),i=t.i,r=i.c+Dg(A(T(Pi,1),Tr,28,15,[t.n.b,n.C.b,n.k])),S=i.c+i.b-Dg(A(T(Pi,1),Tr,28,15,[t.n.c,n.C.c,n.k])),s=vz($V(c),n.t),I=e==Xn?li:St,d=g.Kc();d.Ob();)l=u(d.Pb(),117),!(!l.c||l.c.d.c.length<=0)&&(j=l.b.Mf(),k=l.e,p=l.c,m=p.i,m.b=(h=p.n,p.e.a+h.b+h.c),m.a=(f=p.n,p.e.b+f.d+f.a),G7(N,Ntn),p.f=N,df(p,(Uu(),zs)),m.c=k.a-(m.b-j.a)/2,_=y.Math.min(r,k.a),X=y.Math.max(S,k.a+j.a),m.c<_?m.c=_:m.c+m.b>X&&(m.c=X-m.b),nn(s.d,new ZL(m,TY(s,m))),I=e==Xn?y.Math.max(I,k.b+l.b.Mf().b):y.Math.min(I,k.b));for(I+=e==Xn?n.t:-n.t,O=GY((s.e=I,s)),O>0&&(u(Cr(n.b,e),127).a.b=O),a=g.Kc();a.Ob();)l=u(a.Pb(),117),!(!l.c||l.c.d.c.length<=0)&&(m=l.c.i,m.c-=l.e.a,m.d-=l.e.b)}function VDe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(e=new de,h=new ne(n);h.e!=h.i.gc();){for(f=u(ue(h),27),t=new ni,Ve(m_,f,t),p=new Bbn,r=u(Wr(new Tn(null,new w0(new ie(ce(ry(f).a.Kc(),new En)))),aPn(p,qu(new ju,new yu,new Eu,A(T(xr,1),G,108,0,[(Gu(),Yr)])))),85),z$n(t,u(r.xc((_n(),!0)),16),new Rbn),i=u(Wr(ut(u(r.xc(!1),15).Lc(),new Kbn),qu(new ju,new yu,new Eu,A(T(xr,1),G,108,0,[Yr]))),15),s=i.Kc();s.Ob();)c=u(s.Pb(),74),g=zKn(c),g&&(l=u(Kr(wr(e.f,g)),21),l||(l=gqn(g),Vc(e.f,g,l)),Bi(t,l));for(r=u(Wr(new Tn(null,new w0(new ie(ce(Al(f).a.Kc(),new En)))),aPn(p,qu(new ju,new yu,new Eu,A(T(xr,1),G,108,0,[Yr])))),85),z$n(t,u(r.xc(!0),16),new _bn),i=u(Wr(ut(u(r.xc(!1),15).Lc(),new Hbn),qu(new ju,new yu,new Eu,A(T(xr,1),G,108,0,[Yr]))),15),d=i.Kc();d.Ob();)a=u(d.Pb(),74),g=XKn(a),g&&(l=u(Kr(wr(e.f,g)),21),l||(l=gqn(g),Vc(e.f,g,l)),Bi(t,l))}}function WDe(n,e){BF();var t,i,r,c,s,f,h,l,a,d,g,p,m,k;if(h=Ec(n,0)<0,h&&(n=n1(n)),Ec(n,0)==0)switch(e){case 0:return"0";case 1:return Rm;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return p=new x1,e<0?p.a+="0E+":p.a+="0E",p.a+=e==Wi?"2147483648":""+-e,p.a}a=18,d=K(fs,gh,28,a+1,15,1),t=a,k=n;do l=k,k=zk(k,10),d[--t]=Ae(nr(48,bs(l,er(k,10))))&ui;while(Ec(k,0)!=0);if(r=bs(bs(bs(a,t),e),1),e==0)return h&&(d[--t]=45),ws(d,t,a-t);if(e>0&&Ec(r,-6)>=0){if(Ec(r,0)>=0){for(c=t+Ae(r),f=a-1;f>=c;f--)d[f+1]=d[f];return d[++c]=46,h&&(d[--t]=45),ws(d,t,a-t+1)}for(s=2;ND(s,nr(n1(r),1));s++)d[--t]=48;return d[--t]=46,d[--t]=48,h&&(d[--t]=45),ws(d,t,a-t)}return m=t+1,i=a,g=new fg,h&&(g.a+="-"),i-m>=1?(z1(g,d[t]),g.a+=".",g.a+=ws(d,t+1,a-t-1)):g.a+=ws(d,t,a-t),g.a+="E",Ec(r,0)>0&&(g.a+="+"),g.a+=""+R6(r),g.a}function q0(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X;if(j=new V(n.g,n.f),k=ynn(n),k.a=y.Math.max(k.a,e),k.b=y.Math.max(k.b,t),X=k.a/j.a,a=k.b/j.b,N=k.a-j.a,h=k.b-j.b,i)for(s=At(n)?u(z(At(n),(He(),_d)),88):u(z(n,(He(),_d)),88),f=x(z(n,(He(),m9)))===x((Oi(),qc)),I=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));I.e!=I.i.gc();)switch(S=u(ue(I),123),O=u(z(S,H2),64),O==(en(),sc)&&(O=Fen(S,s),ht(S,H2,O)),O.g){case 1:f||eu(S,S.i*X);break;case 2:eu(S,S.i+N),f||tu(S,S.j*a);break;case 3:f||eu(S,S.i*X),tu(S,S.j+h);break;case 4:f||tu(S,S.j*a)}if(kg(n,k.a,k.b),r)for(g=new ne((!n.n&&(n.n=new q(Ar,n,1,7)),n.n));g.e!=g.i.gc();)d=u(ue(g),135),p=d.i+d.g/2,m=d.j+d.f/2,_=p/j.a,l=m/j.b,_+l>=1&&(_-l>0&&m>=0?(eu(d,d.i+N),tu(d,d.j+h*l)):_-l<0&&p>=0&&(eu(d,d.i+N*_),tu(d,d.j+h)));return ht(n,(He(),Hd),(go(),c=u(of(A9),9),new _o(c,u(xs(c,c.length),9),0))),new V(X,a)}function QGn(n){i0(n,new gd(qE(n0(Qd(Zd(Yd(new Ka,es),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new X4n),es))),Q(n,es,TS,rn(fce)),Q(n,es,yw,rn(hce)),Q(n,es,r2,rn(cce)),Q(n,es,d3,rn(uce)),Q(n,es,a3,rn(oce)),Q(n,es,zm,rn(rce)),Q(n,es,t8,rn(Vln)),Q(n,es,Xm,rn(sce)),Q(n,es,XR,rn(kq)),Q(n,es,zR,rn(yq)),Q(n,es,LS,rn(Jln)),Q(n,es,VR,rn(jq)),Q(n,es,WR,rn(Qln)),Q(n,es,Urn,rn(Yln)),Q(n,es,qrn,rn(Wln)),Q(n,es,Rrn,rn(_I)),Q(n,es,Krn,rn(HI)),Q(n,es,_rn,rn(xj)),Q(n,es,Hrn,rn(Zln)),Q(n,es,Brn,rn(Xln))}function zA(n){var e,t,i,r,c,s,f,h,l,a,d;if(n==null)throw M(new th(gu));if(l=n,c=n.length,h=!1,c>0&&(e=(zn(0,n.length),n.charCodeAt(0)),(e==45||e==43)&&(n=(zn(1,n.length+1),n.substr(1)),--c,h=e==45)),c==0)throw M(new th(z0+l+'"'));for(;n.length>0&&(zn(0,n.length),n.charCodeAt(0)==48);)n=(zn(1,n.length+1),n.substr(1)),--c;if(c>(SUn(),gQn)[10])throw M(new th(z0+l+'"'));for(r=0;r0&&(d=-parseInt((Fi(0,i,n.length),n.substr(0,i)),10),n=(zn(i,n.length+1),n.substr(i)),c-=i,t=!1);c>=s;){if(i=parseInt((Fi(0,s,n.length),n.substr(0,s)),10),n=(zn(s,n.length+1),n.substr(s)),c-=s,t)t=!1;else{if(Ec(d,f)<0)throw M(new th(z0+l+'"'));d=er(d,a)}d=bs(d,i)}if(Ec(d,0)>0)throw M(new th(z0+l+'"'));if(!h&&(d=n1(d),Ec(d,0)<0))throw M(new th(z0+l+'"'));return d}function rtn(n){UF();var e,t,i,r,c,s,f,h;if(n==null)return null;if(r=ih(n,wu(37)),r<0)return n;for(h=new mo((Fi(0,r,n.length),n.substr(0,r))),e=K(Fu,s2,28,4,15,1),f=0,i=0,s=n.length;rr+2&&R$((zn(r+1,n.length),n.charCodeAt(r+1)),Fdn,Bdn)&&R$((zn(r+2,n.length),n.charCodeAt(r+2)),Fdn,Bdn))if(t=gbe((zn(r+1,n.length),n.charCodeAt(r+1)),(zn(r+2,n.length),n.charCodeAt(r+2))),r+=2,i>0?(t&192)==128?e[f++]=t<<24>>24:i=0:t>=128&&((t&224)==192?(e[f++]=t<<24>>24,i=2):(t&240)==224?(e[f++]=t<<24>>24,i=3):(t&248)==240&&(e[f++]=t<<24>>24,i=4)),i>0){if(f==i){switch(f){case 2:{z1(h,((e[0]&31)<<6|e[1]&63)&ui);break}case 3:{z1(h,((e[0]&15)<<12|(e[1]&63)<<6|e[2]&63)&ui);break}}f=0,i=0}}else{for(c=0;c=2){if((!n.a&&(n.a=new q(Mt,n,6,6)),n.a).i==0)t=(B1(),r=new yE,r),ve((!n.a&&(n.a=new q(Mt,n,6,6)),n.a),t);else if((!n.a&&(n.a=new q(Mt,n,6,6)),n.a).i>1)for(g=new kp((!n.a&&(n.a=new q(Mt,n,6,6)),n.a));g.e!=g.i.gc();)P5(g);ay(e,u(L((!n.a&&(n.a=new q(Mt,n,6,6)),n.a),0),166))}if(d)for(i=new ne((!n.a&&(n.a=new q(Mt,n,6,6)),n.a));i.e!=i.i.gc();)for(t=u(ue(i),166),l=new ne((!t.a&&(t.a=new ti(xo,t,5)),t.a));l.e!=l.i.gc();)h=u(ue(l),377),f.a=y.Math.max(f.a,h.a),f.b=y.Math.max(f.b,h.b);for(s=new ne((!n.n&&(n.n=new q(Ar,n,1,7)),n.n));s.e!=s.i.gc();)c=u(ue(s),135),a=u(z(c,y9),8),a&&Ro(c,a.a,a.b),d&&(f.a=y.Math.max(f.a,c.i+c.g),f.b=y.Math.max(f.b,c.j+c.f));return f}function ZGn(n,e,t,i,r){var c,s,f;if(ZNn(n,e),s=e[0],c=Xi(t.c,0),f=-1,tY(t))if(i>0){if(s+i>n.length)return!1;f=yA((Fi(0,s+i,n.length),n.substr(0,s+i)),e)}else f=yA(n,e);switch(c){case 71:return f=Ug(n,s,A(T(fn,1),J,2,6,[Bzn,Rzn]),e),r.e=f,!0;case 77:return lAe(n,e,r,f,s);case 76:return aAe(n,e,r,f,s);case 69:return iEe(n,e,s,r);case 99:return rEe(n,e,s,r);case 97:return f=Ug(n,s,A(T(fn,1),J,2,6,["AM","PM"]),e),r.b=f,!0;case 121:return dAe(n,e,s,f,t,r);case 100:return f<=0?!1:(r.c=f,!0);case 83:return f<0?!1:v8e(f,s,e[0],r);case 104:f==12&&(f=0);case 75:case 72:return f<0?!1:(r.f=f,r.g=!1,!0);case 107:return f<0?!1:(r.f=f,r.g=!0,!0);case 109:return f<0?!1:(r.j=f,!0);case 115:return f<0?!1:(r.n=f,!0);case 90:if(sjn[h]&&(j=h),d=new C(n.a.b);d.a1;){if(r=rTe(e),d=c.g,m=u(z(e,f9),107),k=$(R(z(e,zI))),(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i>1&&$(R(z(e,(_h(),Iq))))!=St&&(c.c+(m.b+m.c))/(c.b+(m.d+m.a))1&&$(R(z(e,(_h(),Pq))))!=St&&(c.c+(m.b+m.c))/(c.b+(m.d+m.a))>k&&ht(r,(_h(),Xw),y.Math.max($(R(z(e,s9))),$(R(z(r,Xw)))-$(R(z(e,Pq))))),p=new aX(i,a),h=vzn(p,r,g),l=h.g,l>=d&&l==l){for(s=0;s<(!r.a&&(r.a=new q(Ye,r,10,11)),r.a).i;s++)z_n(n,u(L((!r.a&&(r.a=new q(Ye,r,10,11)),r.a),s),27),u(L((!e.a&&(e.a=new q(Ye,e,10,11)),e.a),s),27));M$n(e,p),s2e(c,h.c),o2e(c,h.b)}--f}ht(e,(_h(),o9),c.b),ht(e,Lv,c.c),t.Vg()}function ZDe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I;for(e.Ug("Interactive node layering",1),t=new Z,g=new C(n.a);g.a=f){oe(I.b>0),I.a.Xb(I.c=--I.b);break}else j.a>h&&(i?(hi(i.b,j.b),i.a=y.Math.max(i.a,j.a),bo(I)):(nn(j.b,a),j.c=y.Math.min(j.c,h),j.a=y.Math.max(j.a,f),i=j));i||(i=new Xyn,i.c=h,i.a=f,Rb(I,i),nn(i.b,a))}for(s=n.b,l=0,S=new C(t);S.ap&&(c&&(ir(X,g),ir(jn,Y(l.b-1))),xe=t.b,Lt+=g+e,g=0,a=y.Math.max(a,t.b+t.c+te)),eu(f,xe),tu(f,Lt),a=y.Math.max(a,xe+te+t.c),g=y.Math.max(g,d),xe+=te+e;if(a=y.Math.max(a,i),Bn=Lt+g+t.a,Bnvh,kn=y.Math.abs(g.b-m.b)>vh,(!t&&jn&&kn||t&&(jn||kn))&&Fe(j.a,N)),Bi(j.a,i),i.b==0?g=N:g=(oe(i.b!=0),u(i.c.b.c,8)),Rve(p,d,k),Cxn(r)==tn&&(Hi(tn.i)!=r.a&&(k=new Li,pnn(k,Hi(tn.i),I)),U(j,pH,k)),yje(p,j,I),a.a.zc(p,a);Zi(j,_),Ii(j,tn)}for(l=a.a.ec().Kc();l.Ob();)h=u(l.Pb(),18),Zi(h,null),Ii(h,null);e.Vg()}function tLe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(r=u(v(n,(lc(),pb)),88),a=r==(ci(),Br)||r==Xr?Wf:Xr,t=u(Wr(ut(new Tn(null,new In(n.b,16)),new Z3n),qu(new ju,new yu,new Eu,A(T(xr,1),G,108,0,[(Gu(),Yr)]))),15),h=u(Wr(_r(t.Oc(),new bkn(e)),qu(new ju,new yu,new Eu,A(T(xr,1),G,108,0,[Yr]))),15),h.Gc(u(Wr(_r(t.Oc(),new wkn(e)),qu(new ju,new yu,new Eu,A(T(xr,1),G,108,0,[Yr]))),16)),h.jd(new gkn(a)),g=new Ul(new pkn(r)),i=new de,f=h.Kc();f.Ob();)s=u(f.Pb(),240),l=u(s.a,39),on(un(s.c))?(g.a.zc(l,(_n(),ga))==null,new Q3(g.a.Zc(l,!1)).a.gc()>0&&Ve(i,l,u(new Q3(g.a.Zc(l,!1)).a.Vc(),39)),new Q3(g.a.ad(l,!0)).a.gc()>1&&Ve(i,SBn(g,l),l)):(new Q3(g.a.Zc(l,!1)).a.gc()>0&&(c=u(new Q3(g.a.Zc(l,!1)).a.Vc(),39),x(c)===x(Kr(wr(i.f,l)))&&u(v(l,(pt(),eq)),15).Fc(c)),new Q3(g.a.ad(l,!0)).a.gc()>1&&(d=SBn(g,l),x(Kr(wr(i.f,d)))===x(l)&&u(v(d,(pt(),eq)),15).Fc(l)),g.a.Bc(l)!=null)}function nzn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N;if(n.gc()==1)return u(n.Xb(0),235);if(n.gc()<=0)return new zM;for(r=n.Kc();r.Ob();){for(t=u(r.Pb(),235),m=0,a=et,d=et,h=Wi,l=Wi,p=new C(t.e);p.af&&(O=0,N+=s+S,s=0),PSe(k,t,O,N),e=y.Math.max(e,O+j.a),s=y.Math.max(s,j.b),O+=j.a+S;return k}function iLe(n){xen();var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(n==null||(c=iT(n),m=O5e(c),m%4!=0))return null;if(k=m/4|0,k==0)return K(Fu,s2,28,0,15,1);for(d=null,e=0,t=0,i=0,r=0,s=0,f=0,h=0,l=0,p=0,g=0,a=0,d=K(Fu,s2,28,k*3,15,1);p>4)<<24>>24,d[g++]=((t&15)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24}return!n7(s=c[a++])||!n7(f=c[a++])?null:(e=nh[s],t=nh[f],h=c[a++],l=c[a++],nh[h]==-1||nh[l]==-1?h==61&&l==61?t&15?null:(j=K(Fu,s2,28,p*3+1,15,1),Ic(d,0,j,0,p*3),j[g]=(e<<2|t>>4)<<24>>24,j):h!=61&&l==61?(i=nh[h],i&3?null:(j=K(Fu,s2,28,p*3+2,15,1),Ic(d,0,j,0,p*3),j[g++]=(e<<2|t>>4)<<24>>24,j[g]=((t&15)<<4|i>>2&15)<<24>>24,j)):null:(i=nh[h],r=nh[l],d[g++]=(e<<2|t>>4)<<24>>24,d[g++]=((t&15)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24,d))}function rLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_;for(e.Ug(XXn,1),m=u(v(n,(cn(),$l)),223),r=new C(n.b);r.a=2){for(k=!0,g=new C(c.j),t=u(E(g),12),p=null;g.a0)if(i=d.gc(),l=wi(y.Math.floor((i+1)/2))-1,r=wi(y.Math.ceil((i+1)/2))-1,e.o==Xf)for(a=r;a>=l;a--)e.a[N.p]==N&&(k=u(d.Xb(a),42),m=u(k.a,10),!sf(t,k.b)&&p>n.b.e[m.p]&&(e.a[m.p]=N,e.g[N.p]=e.g[m.p],e.a[N.p]=e.g[N.p],e.f[e.g[N.p].p]=(_n(),!!(on(e.f[e.g[N.p].p])&N.k==(Vn(),Mi))),p=n.b.e[m.p]));else for(a=l;a<=r;a++)e.a[N.p]==N&&(S=u(d.Xb(a),42),j=u(S.a,10),!sf(t,S.b)&&p0&&(r=u(sn(j.c.a,X-1),10),s=n.i[r.p],jn=y.Math.ceil(jg(n.n,r,j)),c=_.a.e-j.d.d-(s.a.e+r.o.b+r.d.a)-jn),l=St,X0&&tn.a.e.e-tn.a.a-(tn.b.e.e-tn.b.a)<0,m=O.a.e.e-O.a.a-(O.b.e.e-O.b.a)<0&&tn.a.e.e-tn.a.a-(tn.b.e.e-tn.b.a)>0,p=O.a.e.e+O.b.atn.b.e.e+tn.a.a,N=0,!k&&!m&&(g?c+d>0?N=d:l-i>0&&(N=i):p&&(c+f>0?N=f:l-I>0&&(N=I))),_.a.e+=N,_.b&&(_.d.e+=N),!1))}function tzn(n,e,t){var i,r,c,s,f,h,l,a,d,g;if(i=new Ho(e.Lf().a,e.Lf().b,e.Mf().a,e.Mf().b),r=new mp,n.c)for(s=new C(e.Rf());s.al&&(i.a+=PTn(K(fs,gh,28,-l,15,1))),i.a+="Is",ih(h,wu(32))>=0)for(r=0;r=i.o.b/2}else I=!d;I?(S=u(v(i,(W(),P3)),15),S?g?c=S:(r=u(v(i,C3),15),r?S.gc()<=r.gc()?c=S:c=r:(c=new Z,U(i,C3,c))):(c=new Z,U(i,P3,c))):(r=u(v(i,(W(),C3)),15),r?d?c=r:(S=u(v(i,P3),15),S?r.gc()<=S.gc()?c=r:c=S:(c=new Z,U(i,P3,c))):(c=new Z,U(i,C3,c))),c.Fc(n),U(n,(W(),tI),t),e.d==t?(Ii(e,null),t.e.c.length+t.g.c.length==0&&ic(t,null),j6e(t)):(Zi(e,null),t.e.c.length+t.g.c.length==0&&ic(t,null)),vo(e.a)}function sLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X,tn,jn,kn,Kn,Bn,te,xe,Lt;for(t.Ug("MinWidth layering",1),p=e.b,tn=e.a,Lt=u(v(e,(cn(),ehn)),17).a,f=u(v(e,thn),17).a,n.b=$(R(v(e,Ws))),n.d=St,N=new C(tn);N.a0?(l=0,j&&(l+=f),l+=(kn-1)*s,O&&(l+=f),jn&&O&&(l=y.Math.max(l,STe(O,s,I,tn))),l=n.a&&(i=UPe(n,I),a=y.Math.max(a,i.b),N=y.Math.max(N,i.d),nn(f,new bi(I,i)));for(jn=new Z,l=0;l0),j.a.Xb(j.c=--j.b),kn=new Lc(n.b),Rb(j,kn),oe(j.b0){for(g=a<100?null:new F1(a),l=new RQ(e),m=l.g,S=K(ye,_e,28,a,15,1),i=0,N=new T0(a),r=0;r=0;)if(p!=null?rt(p,m[h]):x(p)===x(m[h])){S.length<=i&&(j=S,S=K(ye,_e,28,2*S.length,15,1),Ic(j,0,S,0,i)),S[i++]=r,ve(N,m[h]);break n}if(p=p,x(p)===x(f))break}}if(l=N,m=N.g,a=i,i>S.length&&(j=S,S=K(ye,_e,28,i,15,1),Ic(j,0,S,0,i)),i>0){for(O=!0,c=0;c=0;)Jp(n,S[s]);if(i!=a){for(r=a;--r>=i;)Jp(l,r);j=S,S=K(ye,_e,28,i,15,1),Ic(j,0,S,0,i)}e=l}}}else for(e=M7e(n,e),r=n.i;--r>=0;)e.Hc(n.g[r])&&(Jp(n,r),O=!0);if(O){if(S!=null){for(t=e.gc(),d=t==1?X6(n,4,e.Kc().Pb(),null,S[0],k):X6(n,6,e,S,S[0],k),g=t<100?null:new F1(t),r=e.Kc();r.Ob();)p=r.Pb(),g=SV(n,u(p,76),g);g?(g.nj(d),g.oj()):it(n.e,d)}else{for(g=Oae(e.gc()),r=e.Kc();r.Ob();)p=r.Pb(),g=SV(n,u(p,76),g);g&&g.oj()}return!0}else return!1}function lLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O;for(t=new kRn(e),t.a||KSe(e),l=FAe(e),h=new j0,j=new Eqn,k=new C(e.a);k.a0||t.o==Xf&&r=t}function dLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X,tn,jn,kn,Kn,Bn,te;for(O=e,I=new j0,N=new j0,a=M0(O,Tcn),i=new PIn(n,t,I,N),Lje(i.a,i.b,i.c,i.d,a),h=(tn=I.i,tn||(I.i=new Mg(I,I.c))),kn=h.Kc();kn.Ob();)for(jn=u(kn.Pb(),166),r=u(ot(I,jn),21),k=r.Kc();k.Ob();)if(m=k.Pb(),_=u(Lg(n.d,m),166),_)f=(!jn.e&&(jn.e=new Nn(Mt,jn,10,9)),jn.e),ve(f,_);else throw s=bl(O,Eh),g=kWn+m+yWn+s,p=g+tv,M(new eh(p));for(l=(X=N.i,X||(N.i=new Mg(N,N.c))),Bn=l.Kc();Bn.Ob();)for(Kn=u(Bn.Pb(),166),c=u(ot(N,Kn),21),S=c.Kc();S.Ob();)if(j=S.Pb(),_=u(Lg(n.d,j),166),_)d=(!Kn.g&&(Kn.g=new Nn(Mt,Kn,9,10)),Kn.g),ve(d,_);else throw s=bl(O,Eh),g=kWn+j+yWn+s,p=g+tv,M(new eh(p));!t.b&&(t.b=new Nn(he,t,4,7)),t.b.i!=0&&(!t.c&&(t.c=new Nn(he,t,5,8)),t.c.i!=0)&&(!t.b&&(t.b=new Nn(he,t,4,7)),t.b.i<=1&&(!t.c&&(t.c=new Nn(he,t,5,8)),t.c.i<=1))&&(!t.a&&(t.a=new q(Mt,t,6,6)),t.a).i==1&&(te=u(L((!t.a&&(t.a=new q(Mt,t,6,6)),t.a),0),166),!Sx(te)&&!Px(te)&&(mT(te,u(L((!t.b&&(t.b=new Nn(he,t,4,7)),t.b),0),84)),vT(te,u(L((!t.c&&(t.c=new Nn(he,t,5,8)),t.c),0),84))))}function bLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X,tn,jn,kn,Kn;for(O=n.a,N=0,_=O.length;N<_;++N){for(I=O[N],l=et,a=et,m=new C(I.e);m.a0?(d=u(sn(g.c.a,s-1),10),jn=jg(n.b,g,d),j=g.n.b-g.d.d-(d.n.b+d.o.b+d.d.a+jn)):j=g.n.b-g.d.d,l=y.Math.min(j,l),s1&&(s=y.Math.min(s,y.Math.abs(u(Zo(f.a,1),8).b-a.b)))));else for(k=new C(e.j);k.ar&&(c=g.a-r,s=et,i.c.length=0,r=g.a),g.a>=r&&(Rn(i.c,f),f.a.b>1&&(s=y.Math.min(s,y.Math.abs(u(Zo(f.a,f.a.b-2),8).b-g.b)))));if(i.c.length!=0&&c>e.o.a/2&&s>e.o.b/2){for(p=new Pc,ic(p,e),gi(p,(en(),Xn)),p.n.a=e.o.a/2,S=new Pc,ic(S,e),gi(S,ae),S.n.a=e.o.a/2,S.n.b=e.o.b,h=new C(i);h.a=l.b?Zi(f,S):Zi(f,p)):(l=u(cbe(f.a),8),j=f.a.b==0?If(f.c):u($s(f.a),8),j.b>=l.b?Ii(f,S):Ii(f,p)),d=u(v(f,(cn(),Fr)),75),d&&iw(d,l,!0);e.n.a=r-e.o.a/2}}function gLe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(f=ge(n.b,0);f.b!=f.d.c;)if(s=u(be(f),39),!An(s.c,IS))for(l=_Ce(s,n),e==(ci(),Br)||e==Xr?Yt(l,new C4n):Yt(l,new M4n),h=l.c.length,i=0;i=0?p=zp(f):p=$k(zp(f)),n.qf(Cv,p)),l=new Li,g=!1,n.pf(ab)?(YX(l,u(n.of(ab),8)),g=!0):T1e(l,s.a/2,s.b/2),p.g){case 4:U(a,ou,(Yo(),ya)),U(a,rI,(hd(),m2)),a.o.b=s.b,k<0&&(a.o.a=-k),gi(d,(en(),Zn)),g||(l.a=s.a),l.a-=s.a;break;case 2:U(a,ou,(Yo(),xw)),U(a,rI,(hd(),pv)),a.o.b=s.b,k<0&&(a.o.a=-k),gi(d,(en(),Wn)),g||(l.a=0);break;case 1:U(a,Od,(vl(),k2)),a.o.a=s.a,k<0&&(a.o.b=-k),gi(d,(en(),ae)),g||(l.b=s.b),l.b-=s.b;break;case 3:U(a,Od,(vl(),E3)),a.o.a=s.a,k<0&&(a.o.b=-k),gi(d,(en(),Xn)),g||(l.b=0)}if(YX(d.n,l),U(a,ab,l),e==Ud||e==tl||e==qc){if(m=0,e==Ud&&n.pf(v1))switch(p.g){case 1:case 2:m=u(n.of(v1),17).a;break;case 3:case 4:m=-u(n.of(v1),17).a}else switch(p.g){case 4:case 2:m=c.b,e==tl&&(m/=r.b);break;case 1:case 3:m=c.a,e==tl&&(m/=r.a)}U(a,ob,m)}return U(a,gc,p),a}function pLe(){Ez();function n(i){var r=this;this.dispatch=function(c){var s=c.data;switch(s.cmd){case"algorithms":var f=UY((Dn(),new J3(new ol(Da.b))));i.postMessage({id:s.id,data:f});break;case"categories":var h=UY((Dn(),new J3(new ol(Da.c))));i.postMessage({id:s.id,data:h});break;case"options":var l=UY((Dn(),new J3(new ol(Da.d))));i.postMessage({id:s.id,data:l});break;case"register":kOe(s.algorithms),i.postMessage({id:s.id});break;case"layout":WPe(s.graph,s.layoutOptions||{},s.options||{}),i.postMessage({id:s.id,data:s.graph});break}},this.saveDispatch=function(c){try{r.dispatch(c)}catch(s){i.postMessage({id:c.data.id,error:s})}}}function e(i){var r=this;this.dispatcher=new n({postMessage:function(c){r.onmessage({data:c})}}),this.postMessage=function(c){setTimeout(function(){r.dispatcher.saveDispatch({data:c})},0)}}if(typeof document===xB&&typeof self!==xB){var t=new n(self);self.onmessage=t.saveDispatch}else typeof gt!==xB&>.exports&&(Object.defineProperty(Sr,"__esModule",{value:!0}),gt.exports={default:e,Worker:e})}function szn(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(a=new Tl(t),Ur(a,e),U(a,(W(),st),e),a.o.a=e.g,a.o.b=e.f,a.n.a=e.i,a.n.b=e.j,nn(t.a,a),Ve(n.a,e,a),((!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i!=0||on(un(z(e,(cn(),Rw)))))&&U(a,Qsn,(_n(),!0)),l=u(v(t,Hc),21),d=u(v(a,(cn(),Kt)),101),d==(Oi(),Pa)?U(a,Kt,Qf):d!=Qf&&l.Fc((pr(),kv)),g=0,i=u(v(t,Do),88),h=new ne((!e.c&&(e.c=new q(Qu,e,9,9)),e.c));h.e!=h.i.gc();)f=u(ue(h),123),r=At(e),(x(z(r,Yh))!==x((lh(),k1))||x(z(r,Ld))===x((o1(),gv))||x(z(r,Ld))===x((o1(),wv))||on(un(z(r,fb)))||x(z(r,Fw))!==x((dd(),Ow))||x(z(r,ja))===x((ps(),wb))||x(z(r,ja))===x((ps(),Uw))||x(z(r,$d))===x((a1(),Sv))||x(z(r,$d))===x((a1(),Pv)))&&!on(un(z(e,lI)))&&ht(f,dt,Y(g++)),on(un(z(f,Fd)))||ADe(n,f,a,l,i,d);for(s=new ne((!e.n&&(e.n=new q(Ar,e,1,7)),e.n));s.e!=s.i.gc();)c=u(ue(s),135),!on(un(z(c,Fd)))&&c.a&&nn(a.b,ex(c));return on(un(v(a,_8)))&&l.Fc((pr(),ZP)),on(un(v(a,wI)))&&(l.Fc((pr(),nI)),l.Fc($8),U(a,Kt,Qf)),a}function QF(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X,tn,jn,kn,Kn,Bn,te,xe,Lt;for(k=0,Kn=0,l=new C(n.b);l.ak&&(c&&(ir(X,p),ir(jn,Y(a.b-1)),nn(n.d,m),f.c.length=0),xe=t.b,Lt+=p+e,p=0,d=y.Math.max(d,t.b+t.c+te)),Rn(f.c,h),aRn(h,xe,Lt),d=y.Math.max(d,xe+te+t.c),p=y.Math.max(p,g),xe+=te+e,m=h;if(hi(n.a,f),nn(n.d,u(sn(f,f.c.length-1),163)),d=y.Math.max(d,i),Bn=Lt+p+t.a,Bnr.d.d+r.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))),i.b!=i.d.c&&(e=t);a&&(c=u(ee(n.f,s.d.i),60),e.bc.d.d+c.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))}for(f=new ie(ce(ji(p).a.Kc(),new En));pe(f);)s=u(fe(f),18),s.a.b!=0&&(e=u($s(s.a),8),s.d.j==(en(),Xn)&&(j=new _5(e,new V(e.a,r.d.d),r,s),j.f.a=!0,j.a=s.d,Rn(k.c,j)),s.d.j==ae&&(j=new _5(e,new V(e.a,r.d.d+r.d.a),r,s),j.f.d=!0,j.a=s.d,Rn(k.c,j)))}return k}function ELe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(h=new Z,d=e.length,s=eY(t),l=0;l=m&&(I>m&&(p.c.length=0,m=I),Rn(p.c,s));p.c.length!=0&&(g=u(sn(p,cA(e,p.c.length)),131),Bn.a.Bc(g)!=null,g.s=k++,Ynn(g,kn,X),p.c.length=0)}for(N=n.c.length+1,f=new C(n);f.aKn.s&&(bo(t),du(Kn.i,i),i.c>0&&(i.a=Kn,nn(Kn.t,i),i.b=tn,nn(tn.i,i)))}function fzn(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X,tn,jn,kn,Kn,Bn;for(k=new Gc(e.b),N=new Gc(e.b),g=new Gc(e.b),jn=new Gc(e.b),j=new Gc(e.b),tn=ge(e,0);tn.b!=tn.d.c;)for(_=u(be(tn),12),f=new C(_.g);f.a0,S=_.g.c.length>0,l&&S?Rn(g.c,_):l?Rn(k.c,_):S&&Rn(N.c,_);for(m=new C(k);m.aI.nh()-l.b&&(g=I.nh()-l.b),p>I.oh()-l.d&&(p=I.oh()-l.d),a0){for(O=ge(n.f,0);O.b!=O.d.c;)I=u(be(O),10),I.p+=g-n.e;mnn(n),vo(n.f),aen(n,i,p)}else{for(Fe(n.f,p),p.p=i,n.e=y.Math.max(n.e,i),c=new ie(ce(ji(p).a.Kc(),new En));pe(c);)r=u(fe(c),18),!r.c.i.c&&r.c.i.k==(Vn(),Ac)&&(Fe(n.f,r.c.i),r.c.i.p=i-1);n.c=i}else mnn(n),vo(n.f),i=0,pe(new ie(ce(ji(p).a.Kc(),new En)))?(g=0,g=pRn(g,p),i=g+2,aen(n,i,p)):(Fe(n.f,p),p.p=0,n.e=y.Math.max(n.e,0),n.b=u(sn(n.d.b,0),30),n.c=0);for(n.f.b==0||mnn(n),n.d.a.c.length=0,S=new Z,l=new C(n.d.b);l.a=48&&e<=57){for(i=e-48;r=48&&e<=57;)if(i=i*10+e-48,i<0)throw M(new Le($e((Ie(),Rcn))))}else throw M(new Le($e((Ie(),XWn))));if(t=i,e==44){if(r>=n.j)throw M(new Le($e((Ie(),WWn))));if((e=Xi(n.i,r++))>=48&&e<=57){for(t=e-48;r=48&&e<=57;)if(t=t*10+e-48,t<0)throw M(new Le($e((Ie(),Rcn))));if(i>t)throw M(new Le($e((Ie(),JWn))))}else t=-1}if(e!=125)throw M(new Le($e((Ie(),VWn))));n.bm(r)?(c=(nt(),nt(),new Xb(9,c)),n.d=r+1):(c=(nt(),nt(),new Xb(3,c)),n.d=r),c.Om(i),c.Nm(t),Ze(n)}}return c}function PLe(n){var e,t,i,r,c;switch(t=u(v(n,(W(),Hc)),21),e=OC(mZn),r=u(v(n,(cn(),Bw)),346),r==(jl(),M1)&&Mo(e,vZn),on(un(v(n,TH)))?Ke(e,(Vi(),Vs),(tr(),$_)):Ke(e,(Vi(),Oc),(tr(),$_)),v(n,(JM(),d9))!=null&&Mo(e,kZn),(on(un(v(n,Yfn)))||on(un(v(n,Vfn))))&&Pu(e,(Vi(),zr),(tr(),Xon)),u(v(n,Do),88).g){case 2:case 3:case 4:Pu(Ke(e,(Vi(),Vs),(tr(),Won)),zr,Von)}switch(t.Hc((pr(),ZP))&&Pu(Ke(Ke(e,(Vi(),Vs),(tr(),zon)),Kc,Uon),zr,Gon),x(v(n,ja))!==x((ps(),AI))&&Ke(e,(Vi(),Oc),(tr(),hsn)),t.Hc(eI)&&(Ke(e,(Vi(),Vs),(tr(),bsn)),Ke(e,Jh,asn),Ke(e,Oc,dsn)),x(v(n,fI))!==x((ym(),N8))&&x(v(n,$l))!==x((El(),Qj))&&Pu(e,(Vi(),zr),(tr(),rsn)),on(un(v(n,Jfn)))&&Ke(e,(Vi(),Oc),(tr(),isn)),on(un(v(n,jH)))&&Ke(e,(Vi(),Oc),(tr(),wsn)),HMe(n)&&(x(v(n,Bw))===x(M1)?i=u(v(n,Ej),298):i=u(v(n,yH),298),c=i==(Y4(),uH)?(tr(),lsn):(tr(),msn),Ke(e,(Vi(),Kc),c)),u(v(n,Chn),388).g){case 1:Ke(e,(Vi(),Kc),(tr(),gsn));break;case 2:Pu(Ke(Ke(e,(Vi(),Oc),(tr(),Kon)),Kc,_on),zr,Hon)}return x(v(n,Yh))!==x((lh(),k1))&&Ke(e,(Vi(),Oc),(tr(),psn)),e}function dzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O;if(Zc(n.a,e)){if(sf(u(ee(n.a,e),49),t))return 1}else Ve(n.a,e,new ni);if(Zc(n.a,t)){if(sf(u(ee(n.a,t),49),e))return-1}else Ve(n.a,t,new ni);if(Zc(n.e,e)){if(sf(u(ee(n.e,e),49),t))return-1}else Ve(n.e,e,new ni);if(Zc(n.e,t)){if(sf(u(ee(n.a,t),49),e))return 1}else Ve(n.e,t,new ni);if(n.c==(lh(),HH)||!kt(e,(W(),dt))||!kt(t,(W(),dt))){for(d=null,l=new C(e.j);l.as?Sm(n,e,t):Sm(n,t,e),rs?1:0}return i=u(v(e,(W(),dt)),17).a,c=u(v(t,dt),17).a,i>c?Sm(n,e,t):Sm(n,t,e),ic?1:0}function U0(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(t==null)return null;if(n.a!=e.jk())throw M(new Gn(nv+e.xe()+Y0));if(D(e,468)){if(j=kAe(u(e,685),t),!j)throw M(new Gn(fK+t+"' is not a valid enumerator of '"+e.xe()+"'"));return j}switch(r1((Du(),zi),e).Nl()){case 2:{t=Fc(t,!1);break}case 3:{t=Fc(t,!0);break}}if(i=r1(zi,e).Jl(),i)return i.jk().wi().ti(i,t);if(g=r1(zi,e).Ll(),g){for(j=new Z,l=z$(t),a=0,d=l.length;a1)for(m=new kp((!n.a&&(n.a=new q(Mt,n,6,6)),n.a));m.e!=m.i.gc();)P5(m);for(s=u(L((!n.a&&(n.a=new q(Mt,n,6,6)),n.a),0),166),j=xe,xe>_+N?j=_+N:xe<_-N&&(j=_-N),S=Lt,Lt>X+k?S=X+k:Lt_-N&&j<_+N&&S>X-k&&Sxe+te?jn=xe+te:_Lt+tn?kn=Lt+tn:Xxe-te&&jnLt-tn&&knt&&(g=t-1),p=D1+to(e,24)*Py*d-d/2,p<0?p=1:p>i&&(p=i-1),r=(B1(),h=new kE,h),aT(r,g),lT(r,p),ve((!s.a&&(s.a=new ti(xo,s,5)),s.a),r)}function bzn(n){i0(n,new gd(n0(Qd(Zd(Yd(new Ka,co),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new imn))),Q(n,co,l3,1.3),Q(n,co,Gm,(_n(),!1)),Q(n,co,X0,v1n),Q(n,co,yw,15),Q(n,co,MS,rn(Oce)),Q(n,co,r2,rn(Nce)),Q(n,co,d3,rn(xce)),Q(n,co,a3,rn(Fce)),Q(n,co,zm,rn(Lce)),Q(n,co,t8,rn(g1n)),Q(n,co,Xm,rn(Bce)),Q(n,co,Zrn,rn(E1n)),Q(n,co,ncn,rn(j1n)),Q(n,co,Yrn,rn(Lq)),Q(n,co,Qrn,rn(C1n)),Q(n,co,ecn,rn(m1n)),Q(n,co,tcn,rn(Dq)),Q(n,co,icn,rn(p1n)),Q(n,co,rcn,rn(y1n)),Q(n,co,e8,rn(w1n)),Q(n,co,AS,rn(Dce)),Q(n,co,Wrn,rn(Bj)),Q(n,co,Vrn,rn(b1n)),Q(n,co,Jrn,rn(Rj)),Q(n,co,Xrn,rn(k1n))}function ZF(n,e){BF();var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X,tn,jn,kn,Kn,Bn,te,xe;if(jn=n.e,m=n.d,r=n.a,jn==0)switch(e){case 0:return"0";case 1:return Rm;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return X=new x1,e<0?X.a+="0E+":X.a+="0E",X.a+=-e,X.a}if(O=m*10+1+7,N=K(fs,gh,28,O+1,15,1),t=O,m==1)if(f=r[0],f<0){xe=vi(f,mr);do k=xe,xe=zk(xe,10),N[--t]=48+Ae(bs(k,er(xe,10)))&ui;while(Ec(xe,0)!=0)}else{xe=f;do k=xe,xe=xe/10|0,N[--t]=48+(k-xe*10)&ui;while(xe!=0)}else{Kn=K(ye,_e,28,m,15,1),te=m,Ic(r,0,Kn,0,te);n:for(;;){for(tn=0,l=te-1;l>=0;l--)Bn=nr(Bs(tn,32),vi(Kn[l],mr)),S=mye(Bn),Kn[l]=Ae(S),tn=Ae(d0(S,32));I=Ae(tn),j=t;do N[--t]=48+I%10&ui;while((I=I/10|0)!=0&&t!=0);for(i=9-j+t,h=0;h0;h++)N[--t]=48;for(d=te-1;Kn[d]==0;d--)if(d==0)break n;te=d+1}for(;N[t]==48;)++t}if(p=jn<0,s=O-t-e-1,e==0)return p&&(N[--t]=45),ws(N,t,O-t);if(e>0&&s>=-6){if(s>=0){for(a=t+s,g=O-1;g>=a;g--)N[g+1]=N[g];return N[++a]=46,p&&(N[--t]=45),ws(N,t,O-t+1)}for(d=2;d<-s+1;d++)N[--t]=48;return N[--t]=46,N[--t]=48,p&&(N[--t]=45),ws(N,t,O-t)}return kn=t+1,c=O,_=new fg,p&&(_.a+="-"),c-kn>=1?(z1(_,N[t]),_.a+=".",_.a+=ws(N,t+1,O-t-1)):_.a+=ws(N,t,O-t),_.a+="E",s>0&&(_.a+="+"),_.a+=""+s,_.a}function wzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X;switch(n.c=e,n.g=new de,t=(Ob(),new Sb(n.c)),i=new PE(t),_Y(i),O=Oe(z(n.c,(Vk(),q1n))),h=u(z(n.c,qq),324),_=u(z(n.c,Uq),437),s=u(z(n.c,K1n),489),N=u(z(n.c,Hq),438),n.j=$(R(z(n.c,Yce))),f=n.a,h.g){case 0:f=n.a;break;case 1:f=n.b;break;case 2:f=n.i;break;case 3:f=n.e;break;case 4:f=n.f;break;default:throw M(new Gn(xS+(h.f!=null?h.f:""+h.g)))}if(n.d=new oOn(f,_,s),U(n.d,(W4(),P8),un(z(n.c,Jce))),n.d.c=on(un(z(n.c,_1n))),TM(n.c).i==0)return n.d;for(d=new ne(TM(n.c));d.e!=d.i.gc();){for(a=u(ue(d),27),p=a.g/2,g=a.f/2,X=new V(a.i+p,a.j+g);Zc(n.g,X);)h0(X,(y.Math.random()-.5)*vh,(y.Math.random()-.5)*vh);k=u(z(a,(He(),$v)),140),j=new yOn(X,new Ho(X.a-p-n.j/2-k.b,X.b-g-n.j/2-k.d,a.g+n.j+(k.b+k.c),a.f+n.j+(k.d+k.a))),nn(n.d.i,j),Ve(n.g,X,new bi(j,a))}switch(N.g){case 0:if(O==null)n.d.d=u(sn(n.d.i,0),68);else for(I=new C(n.d.i);I.a0?te+1:1);for(s=new C(X.g);s.a0?te+1:1)}n.c[l]==0?Fe(n.e,k):n.a[l]==0&&Fe(n.f,k),++l}for(m=-1,p=1,d=new Z,n.d=u(v(e,(W(),S3)),234);Fo>0;){for(;n.e.b!=0;)Lt=u(UL(n.e),10),n.b[Lt.p]=m--,Pen(n,Lt),--Fo;for(;n.f.b!=0;)Yu=u(UL(n.f),10),n.b[Yu.p]=p++,Pen(n,Yu),--Fo;if(Fo>0){for(g=Wi,I=new C(O);I.a=g&&(N>g&&(d.c.length=0,g=N),Rn(d.c,k)));a=n.sg(d),n.b[a.p]=p++,Pen(n,a),--Fo}}for(xe=O.c.length+1,l=0;ln.b[Rr]&&(H0(i,!0),U(e,vj,(_n(),!0)));n.a=null,n.c=null,n.b=null,vo(n.f),vo(n.e),t.Vg()}function gzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X;for(_=u(L((!n.a&&(n.a=new q(Mt,n,6,6)),n.a),0),166),a=new Mu,N=new de,X=MUn(_),Vc(N.f,_,X),g=new de,i=new Ct,m=$h(Eo(A(T(Oo,1),Fn,20,0,[(!e.d&&(e.d=new Nn(Vt,e,8,5)),e.d),(!e.e&&(e.e=new Nn(Vt,e,7,4)),e.e)])));pe(m);){if(p=u(fe(m),74),(!n.a&&(n.a=new q(Mt,n,6,6)),n.a).i!=1)throw M(new Gn(tWn+(!n.a&&(n.a=new q(Mt,n,6,6)),n.a).i));p!=n&&(j=u(L((!p.a&&(p.a=new q(Mt,p,6,6)),p.a),0),166),xt(i,j,i.c.b,i.c),k=u(Kr(wr(N.f,j)),13),k||(k=MUn(j),Vc(N.f,j,k)),d=t?mi(new rr(u(sn(X,X.c.length-1),8)),u(sn(k,k.c.length-1),8)):mi(new rr((Ln(0,X.c.length),u(X.c[0],8))),(Ln(0,k.c.length),u(k.c[0],8))),Vc(g.f,j,d))}if(i.b!=0)for(S=u(sn(X,t?X.c.length-1:0),8),l=1;l1&&xt(a,S,a.c.b,a.c),p$(r)));S=I}return a}function pzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X,tn,jn,kn,Kn;for(t.Ug(pVn,1),Kn=u(Wr(ut(new Tn(null,new In(e,16)),new D4n),qu(new ju,new yu,new Eu,A(T(xr,1),G,108,0,[(Gu(),Yr)]))),15),a=u(Wr(ut(new Tn(null,new In(e,16)),new vkn(e)),qu(new ju,new yu,new Eu,A(T(xr,1),G,108,0,[Yr]))),15),m=u(Wr(ut(new Tn(null,new In(e,16)),new mkn(e)),qu(new ju,new yu,new Eu,A(T(xr,1),G,108,0,[Yr]))),15),k=K(NI,OS,39,e.gc(),0,1),s=0;s=0&&kn=0&&!k[p]){k[p]=r,a.gd(f),--f;break}if(p=kn-g,p=0&&!k[p]){k[p]=r,a.gd(f),--f;break}}for(m.jd(new L4n),h=k.length-1;h>=0;h--)!k[h]&&!m.dc()&&(k[h]=u(m.Xb(0),39),m.gd(0));for(l=0;l=0;h--)Fe(t,(Ln(h,s.c.length),u(s.c[h],8)));return t}function vzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N;for(O=$(R(z(e,(_h(),Xw)))),p=$(R(z(e,s9))),g=$(R(z(e,UI))),LQ((!e.a&&(e.a=new q(Ye,e,10,11)),e.a)),S=fGn((!e.a&&(e.a=new q(Ye,e,10,11)),e.a),O,n.b),j=0;jg&&Uk((Ln(g,e.c.length),u(e.c[g],186)),a),a=null;e.c.length>g&&(Ln(g,e.c.length),u(e.c[g],186)).a.c.length==0;)du(e,(Ln(g,e.c.length),e.c[g]));if(!a){--s;continue}if(!on(un(u(sn(a.b,0),27).of((Rf(),Rj))))&&ZSe(e,m,c,a,j,t,g,i)){k=!0;continue}if(j){if(p=m.b,d=a.f,!on(un(u(sn(a.b,0),27).of(Rj)))&&pOe(e,m,c,a,t,g,i,r)){if(k=!0,p=n.j){n.a=-1,n.c=1;return}if(e=Xi(n.i,n.d++),n.a=e,n.b==1){switch(e){case 92:if(i=10,n.d>=n.j)throw M(new Le($e((Ie(),qS))));n.a=Xi(n.i,n.d++);break;case 45:(n.e&512)==512&&n.d=n.j||Xi(n.i,n.d)!=63)break;if(++n.d>=n.j)throw M(new Le($e((Ie(),jK))));switch(e=Xi(n.i,n.d++),e){case 58:i=13;break;case 61:i=14;break;case 33:i=15;break;case 91:i=19;break;case 62:i=18;break;case 60:if(n.d>=n.j)throw M(new Le($e((Ie(),jK))));if(e=Xi(n.i,n.d++),e==61)i=16;else if(e==33)i=17;else throw M(new Le($e((Ie(),PWn))));break;case 35:for(;n.d=n.j)throw M(new Le($e((Ie(),qS))));n.a=Xi(n.i,n.d++);break;default:i=0}n.c=i}function RLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(t.Ug("Process compaction",1),!!on(un(v(e,(lc(),Eln))))){for(r=u(v(e,pb),88),p=$(R(v(e,fq))),aIe(n,e,r),tLe(e,p/2/2),m=e.b,ud(m,new lkn(r)),l=ge(m,0);l.b!=l.d.c;)if(h=u(be(l),39),!on(un(v(h,(pt(),Ma))))){if(i=BAe(h,r),k=LPe(h,e),d=0,g=0,i)switch(j=i.e,r.g){case 2:d=j.a-p-h.f.a,k.e.a-p-h.f.ad&&(d=k.e.a+k.f.a+p),g=d+h.f.a;break;case 4:d=j.b-p-h.f.b,k.e.b-p-h.f.bd&&(d=k.e.b+k.f.b+p),g=d+h.f.b}else if(k)switch(r.g){case 2:d=k.e.a-p-h.f.a,g=d+h.f.a;break;case 1:d=k.e.a+k.f.a+p,g=d+h.f.a;break;case 4:d=k.e.b-p-h.f.b,g=d+h.f.b;break;case 3:d=k.e.b+k.f.b+p,g=d+h.f.b}x(v(e,sq))===x((l5(),Dj))?(c=d,s=g,f=tm(ut(new Tn(null,new In(n.a,16)),new nMn(c,s))),f.a!=null?r==(ci(),Br)||r==Xr?h.e.a=d:h.e.b=d:(r==(ci(),Br)||r==us?f=tm(ut(I$n(new Tn(null,new In(n.a,16))),new akn(c))):f=tm(ut(I$n(new Tn(null,new In(n.a,16))),new dkn(c))),f.a!=null&&(r==Br||r==Xr?h.e.a=$(R((oe(f.a!=null),u(f.a,42)).a)):h.e.b=$(R((oe(f.a!=null),u(f.a,42)).a)))),f.a!=null&&(a=qr(n.a,(oe(f.a!=null),f.a),0),a>0&&a!=u(v(h,Sh),17).a&&(U(h,wln,(_n(),!0)),U(h,Sh,Y(a))))):r==(ci(),Br)||r==Xr?h.e.a=d:h.e.b=d}t.Vg()}}function kzn(n){var e,t,i,r,c,s,f,h,l;for(n.b=1,Ze(n),e=null,n.c==0&&n.a==94?(Ze(n),e=(nt(),nt(),new yo(4)),xc(e,0,rv),f=new yo(4)):f=(nt(),nt(),new yo(4)),r=!0;(l=n.c)!=1;){if(l==0&&n.a==93&&!r){e&&(z5(e,f),f=e);break}if(t=n.a,i=!1,l==10)switch(t){case 100:case 68:case 119:case 87:case 115:case 83:gw(f,Pm(t)),i=!0;break;case 105:case 73:case 99:case 67:t=(gw(f,Pm(t)),-1),t<0&&(i=!0);break;case 112:case 80:if(h=Lnn(n,t),!h)throw M(new Le($e((Ie(),EK))));gw(f,h),i=!0;break;default:t=ben(n)}else if(l==24&&!r){if(e&&(z5(e,f),f=e),c=kzn(n),z5(f,c),n.c!=0||n.a!=93)throw M(new Le($e((Ie(),RWn))));break}if(Ze(n),!i){if(l==0){if(t==91)throw M(new Le($e((Ie(),Fcn))));if(t==93)throw M(new Le($e((Ie(),Bcn))));if(t==45&&!r&&n.a!=93)throw M(new Le($e((Ie(),CK))))}if(n.c!=0||n.a!=45||t==45&&r)xc(f,t,t);else{if(Ze(n),(l=n.c)==1)throw M(new Le($e((Ie(),US))));if(l==0&&n.a==93)xc(f,t,t),xc(f,45,45);else{if(l==0&&n.a==93||l==24)throw M(new Le($e((Ie(),CK))));if(s=n.a,l==0){if(s==91)throw M(new Le($e((Ie(),Fcn))));if(s==93)throw M(new Le($e((Ie(),Bcn))));if(s==45)throw M(new Le($e((Ie(),CK))))}else l==10&&(s=ben(n));if(Ze(n),t>s)throw M(new Le($e((Ie(),HWn))));xc(f,t,s)}}}r=!1}if(n.c==1)throw M(new Le($e((Ie(),US))));return Gg(f),U5(f),n.b=0,Ze(n),f}function KLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_;if(t.Ug("Coffman-Graham Layering",1),e.a.c.length==0){t.Vg();return}for(_=u(v(e,(cn(),nhn)),17).a,h=0,s=0,g=new C(e.a);g.a=_||!N8e(S,i))&&(i=pIn(e,a)),$i(S,i),c=new ie(ce(ji(S).a.Kc(),new En));pe(c);)r=u(fe(c),18),!n.a[r.p]&&(k=r.c.i,--n.e[k.p],n.e[k.p]==0&&Mp(km(p,k),Km));for(l=a.c.length-1;l>=0;--l)nn(e.b,(Ln(l,a.c.length),u(a.c[l],30)));e.a.c.length=0,t.Vg()}function yzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N;N=!1;do for(N=!1,c=e?new qa(n.a.b).a.gc()-2:1;e?c>=0:cu(v(j,dt),17).a)&&(O=!1);if(O){for(h=e?c+1:c-1,f=kJ(n.a,Y(h)),s=!1,I=!0,i=!1,a=ge(f,0);a.b!=a.d.c;)l=u(be(a),10),kt(l,dt)?l.p!=d.p&&(s=s|(e?u(v(l,dt),17).au(v(d,dt),17).a),I=!1):!s&&I&&l.k==(Vn(),Ac)&&(i=!0,e?g=u(fe(new ie(ce(ji(l).a.Kc(),new En))),18).c.i:g=u(fe(new ie(ce(Qt(l).a.Kc(),new En))),18).d.i,g==d&&(e?t=u(fe(new ie(ce(Qt(l).a.Kc(),new En))),18).d.i:t=u(fe(new ie(ce(ji(l).a.Kc(),new En))),18).c.i,(e?u(xb(n.a,t),17).a-u(xb(n.a,g),17).a:u(xb(n.a,g),17).a-u(xb(n.a,t),17).a)<=2&&(I=!1)));if(i&&I&&(e?t=u(fe(new ie(ce(Qt(d).a.Kc(),new En))),18).d.i:t=u(fe(new ie(ce(ji(d).a.Kc(),new En))),18).c.i,(e?u(xb(n.a,t),17).a-u(xb(n.a,d),17).a:u(xb(n.a,d),17).a-u(xb(n.a,t),17).a)<=2&&t.k==(Vn(),zt)&&(I=!1)),s||I){for(k=YHn(n,d,e);k.a.gc()!=0;)m=u(k.a.ec().Kc().Pb(),10),k.a.Bc(m)!=null,Bi(k,YHn(n,m,e));--p,N=!0}}}while(N)}function _Le(n){Me(n.c,Be,A(T(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#decimal"])),Me(n.d,Be,A(T(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#integer"])),Me(n.e,Be,A(T(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#boolean"])),Me(n.f,Be,A(T(fn,1),J,2,6,[Ji,"EBoolean",Qe,"EBoolean:Object"])),Me(n.i,Be,A(T(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#byte"])),Me(n.g,Be,A(T(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#hexBinary"])),Me(n.j,Be,A(T(fn,1),J,2,6,[Ji,"EByte",Qe,"EByte:Object"])),Me(n.n,Be,A(T(fn,1),J,2,6,[Ji,"EChar",Qe,"EChar:Object"])),Me(n.t,Be,A(T(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#double"])),Me(n.u,Be,A(T(fn,1),J,2,6,[Ji,"EDouble",Qe,"EDouble:Object"])),Me(n.F,Be,A(T(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#float"])),Me(n.G,Be,A(T(fn,1),J,2,6,[Ji,"EFloat",Qe,"EFloat:Object"])),Me(n.I,Be,A(T(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#int"])),Me(n.J,Be,A(T(fn,1),J,2,6,[Ji,"EInt",Qe,"EInt:Object"])),Me(n.N,Be,A(T(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#long"])),Me(n.O,Be,A(T(fn,1),J,2,6,[Ji,"ELong",Qe,"ELong:Object"])),Me(n.Z,Be,A(T(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#short"])),Me(n.$,Be,A(T(fn,1),J,2,6,[Ji,"EShort",Qe,"EShort:Object"])),Me(n._,Be,A(T(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#string"]))}function HLe(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m;return g=u(i.a,17).a,p=u(i.b,17).a,d=n.b,m=n.c,f=0,a=0,e==(ci(),Br)||e==Xr?(a=a7(hBn(Ub(_r(new Tn(null,new In(t.b,16)),new $4n),new p4n))),d.e.b+d.f.b/2>a?(l=++p,f=$(R(ho(_b(_r(new Tn(null,new In(t.b,16)),new iMn(r,l)),new m4n))))):(h=++g,f=$(R(ho(Ap(_r(new Tn(null,new In(t.b,16)),new rMn(r,h)),new v4n)))))):(a=a7(hBn(Ub(_r(new Tn(null,new In(t.b,16)),new E4n),new g4n))),d.e.a+d.f.a/2>a?(l=++p,f=$(R(ho(_b(_r(new Tn(null,new In(t.b,16)),new eMn(r,l)),new k4n))))):(h=++g,f=$(R(ho(Ap(_r(new Tn(null,new In(t.b,16)),new tMn(r,h)),new y4n)))))),e==Br?(ir(n.a,new V($(R(v(d,(pt(),jf))))-r,f)),ir(n.a,new V(m.e.a+m.f.a+r+c,f)),ir(n.a,new V(m.e.a+m.f.a+r+c,m.e.b+m.f.b/2)),ir(n.a,new V(m.e.a+m.f.a,m.e.b+m.f.b/2))):e==Xr?(ir(n.a,new V($(R(v(d,(pt(),Js))))+r,d.e.b+d.f.b/2)),ir(n.a,new V(d.e.a+d.f.a+r,f)),ir(n.a,new V(m.e.a-r-c,f)),ir(n.a,new V(m.e.a-r-c,m.e.b+m.f.b/2)),ir(n.a,new V(m.e.a,m.e.b+m.f.b/2))):e==us?(ir(n.a,new V(f,$(R(v(d,(pt(),jf))))-r)),ir(n.a,new V(f,m.e.b+m.f.b+r+c)),ir(n.a,new V(m.e.a+m.f.a/2,m.e.b+m.f.b+r+c)),ir(n.a,new V(m.e.a+m.f.a/2,m.e.b+m.f.b+r))):(n.a.b==0||(u($s(n.a),8).b=$(R(v(d,(pt(),Js))))+r*u(s.b,17).a),ir(n.a,new V(f,$(R(v(d,(pt(),Js))))+r*u(s.b,17).a)),ir(n.a,new V(f,m.e.b-r*u(s.a,17).a-c))),new bi(Y(g),Y(p))}function qLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;if(s=!0,d=null,i=null,r=null,e=!1,p=$oe,l=null,c=null,f=0,h=yx(n,f,Rdn,Kdn),h=0&&An(n.substr(f,2),"//")?(f+=2,h=yx(n,f,O9,D9),i=(Fi(f,h,n.length),n.substr(f,h-f)),f=h):d!=null&&(f==n.length||(zn(f,n.length),n.charCodeAt(f)!=47))&&(s=!1,h=UX(n,wu(35),f),h==-1&&(h=n.length),i=(Fi(f,h,n.length),n.substr(f,h-f)),f=h);if(!t&&f0&&Xi(a,a.length-1)==58&&(r=a,f=h)),fgF(c))&&(d=c);for(!d&&(d=(Ln(0,j.c.length),u(j.c[0],185))),k=new C(e.b);k.ad&&(Bn=0,te+=a+tn,a=0),lUn(_,s,Bn,te),e=y.Math.max(e,Bn+X.a),a=y.Math.max(a,X.b),Bn+=X.a+tn;for(N=new de,t=new de,kn=new C(n);kn.a=-1900?1:0,t>=4?Re(n,A(T(fn,1),J,2,6,[Bzn,Rzn])[f]):Re(n,A(T(fn,1),J,2,6,["BC","AD"])[f]);break;case 121:f9e(n,t,i);break;case 77:SSe(n,t,i);break;case 107:h=r.q.getHours(),h==0?Bh(n,24,t):Bh(n,h,t);break;case 83:_Me(n,t,r);break;case 69:a=i.q.getDay(),t==5?Re(n,A(T(fn,1),J,2,6,["S","M","T","W","T","F","S"])[a]):t==4?Re(n,A(T(fn,1),J,2,6,[vB,kB,yB,jB,EB,CB,MB])[a]):Re(n,A(T(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[a]);break;case 97:r.q.getHours()>=12&&r.q.getHours()<24?Re(n,A(T(fn,1),J,2,6,["AM","PM"])[1]):Re(n,A(T(fn,1),J,2,6,["AM","PM"])[0]);break;case 104:d=r.q.getHours()%12,d==0?Bh(n,12,t):Bh(n,d,t);break;case 75:g=r.q.getHours()%12,Bh(n,g,t);break;case 72:p=r.q.getHours(),Bh(n,p,t);break;case 99:m=i.q.getDay(),t==5?Re(n,A(T(fn,1),J,2,6,["S","M","T","W","T","F","S"])[m]):t==4?Re(n,A(T(fn,1),J,2,6,[vB,kB,yB,jB,EB,CB,MB])[m]):t==3?Re(n,A(T(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[m]):Bh(n,m,1);break;case 76:k=i.q.getMonth(),t==5?Re(n,A(T(fn,1),J,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[k]):t==4?Re(n,A(T(fn,1),J,2,6,[sB,fB,hB,lB,c3,aB,dB,bB,wB,gB,pB,mB])[k]):t==3?Re(n,A(T(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[k]):Bh(n,k+1,t);break;case 81:j=i.q.getMonth()/3|0,t<4?Re(n,A(T(fn,1),J,2,6,["Q1","Q2","Q3","Q4"])[j]):Re(n,A(T(fn,1),J,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[j]);break;case 100:S=i.q.getDate(),Bh(n,S,t);break;case 109:l=r.q.getMinutes(),Bh(n,l,t);break;case 115:s=r.q.getSeconds(),Bh(n,s,t);break;case 122:t<4?Re(n,c.c[0]):Re(n,c.c[1]);break;case 118:Re(n,c.b);break;case 90:t<3?Re(n,NEe(c)):t==3?Re(n,REe(c)):Re(n,KEe(c.a));break;default:return!1}return!0}function stn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X,tn,jn,kn,Kn,Bn,te,xe;if(nUn(e),h=u(L((!e.b&&(e.b=new Nn(he,e,4,7)),e.b),0),84),a=u(L((!e.c&&(e.c=new Nn(he,e,5,8)),e.c),0),84),f=Gr(h),l=Gr(a),s=(!e.a&&(e.a=new q(Mt,e,6,6)),e.a).i==0?null:u(L((!e.a&&(e.a=new q(Mt,e,6,6)),e.a),0),166),tn=u(ee(n.a,f),10),Bn=u(ee(n.a,l),10),jn=null,te=null,D(h,193)&&(X=u(ee(n.a,h),304),D(X,12)?jn=u(X,12):D(X,10)&&(tn=u(X,10),jn=u(sn(tn.j,0),12))),D(a,193)&&(Kn=u(ee(n.a,a),304),D(Kn,12)?te=u(Kn,12):D(Kn,10)&&(Bn=u(Kn,10),te=u(sn(Bn.j,0),12))),!tn||!Bn)throw M(new hp("The source or the target of edge "+e+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(k=new y0,Ur(k,e),U(k,(W(),st),e),U(k,(cn(),Fr),null),p=u(v(i,Hc),21),tn==Bn&&p.Fc((pr(),x8)),jn||(_=(gr(),Jc),kn=null,s&&mg(u(v(tn,Kt),101))&&(kn=new V(s.j,s.k),qDn(kn,X7(e)),pLn(kn,t),Yb(l,f)&&(_=Vu,tt(kn,tn.n))),jn=eGn(tn,kn,_,i)),te||(_=(gr(),Vu),xe=null,s&&mg(u(v(Bn,Kt),101))&&(xe=new V(s.b,s.c),qDn(xe,X7(e)),pLn(xe,t)),te=eGn(Bn,xe,_,Hi(Bn))),Zi(k,jn),Ii(k,te),(jn.e.c.length>1||jn.g.c.length>1||te.e.c.length>1||te.g.c.length>1)&&p.Fc((pr(),$8)),g=new ne((!e.n&&(e.n=new q(Ar,e,1,7)),e.n));g.e!=g.i.gc();)if(d=u(ue(g),135),!on(un(z(d,Fd)))&&d.a)switch(j=ex(d),nn(k.b,j),u(v(j,Ah),278).g){case 1:case 2:p.Fc((pr(),vv));break;case 0:p.Fc((pr(),mv)),U(j,Ah,($f(),xv))}if(c=u(v(i,H8),322),S=u(v(i,vI),323),r=c==(i5(),gj)||S==(E5(),KH),s&&(!s.a&&(s.a=new ti(xo,s,5)),s.a).i!=0&&r){for(I=Jk(s),m=new Mu,N=ge(I,0);N.b!=N.d.c;)O=u(be(N),8),Fe(m,new rr(O));U(k,tfn,m)}return k}function XLe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X,tn,jn,kn,Kn,Bn,te,xe,Lt;for(kn=0,Kn=0,tn=new de,_=u(ho(_b(_r(new Tn(null,new In(n.b,16)),new j4n),new I4n)),17).a+1,jn=K(ye,_e,28,_,15,1),j=K(ye,_e,28,_,15,1),k=0;k<_;k++)jn[k]=0,j[k]=0;for(h=u(Wr(cJ(new Tn(null,new In(n.a,16))),qu(new ju,new yu,new Eu,A(T(xr,1),G,108,0,[(Gu(),Yr)]))),15),a=h.Kc();a.Ob();)if(l=u(a.Pb(),65),te=u(v(l.b,(lc(),Sh)),17).a,Lt=u(v(l.c,Sh),17).a,N=Lt-te,N>1)for(f=te+1;fl.b.e.b*(1-S)+l.c.e.b*S));m++);if(X.gc()>0&&(xe=l.a.b==0?Ki(l.b.e):u($s(l.a),8),O=tt(Ki(u(X.Xb(X.gc()-1),39).e),u(X.Xb(X.gc()-1),39).f),g=tt(Ki(u(X.Xb(0),39).e),u(X.Xb(0),39).f),m>=X.gc()-1&&xe.b>O.b&&l.c.e.b>O.b||m<=0&&xe.bl.b.e.a*(1-S)+l.c.e.a*S));m++);if(X.gc()>0&&(xe=l.a.b==0?Ki(l.b.e):u($s(l.a),8),O=tt(Ki(u(X.Xb(X.gc()-1),39).e),u(X.Xb(X.gc()-1),39).f),g=tt(Ki(u(X.Xb(0),39).e),u(X.Xb(0),39).f),m>=X.gc()-1&&xe.a>O.a&&l.c.e.a>O.a||m<=0&&xe.a=$(R(v(n,(pt(),mln))))&&++Kn):(p.f&&p.d.e.a<=$(R(v(n,(pt(),rq))))&&++kn,p.g&&p.c.e.a+p.c.f.a>=$(R(v(n,(pt(),pln))))&&++Kn)}else N==0?Inn(l):N<0&&(++jn[te],++j[Lt],Bn=HLe(l,e,n,new bi(Y(kn),Y(Kn)),t,i,new bi(Y(j[Lt]),Y(jn[te]))),kn=u(Bn.a,17).a,Kn=u(Bn.b,17).a)}function VLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I;if(i=e,h=t,n.b&&i.j==(en(),Wn)&&h.j==(en(),Wn)&&(I=i,i=h,h=I),Zc(n.a,i)){if(sf(u(ee(n.a,i),49),h))return 1}else Ve(n.a,i,new ni);if(Zc(n.a,h)){if(sf(u(ee(n.a,h),49),i))return-1}else Ve(n.a,h,new ni);if(Zc(n.d,i)){if(sf(u(ee(n.d,i),49),h))return-1}else Ve(n.d,i,new ni);if(Zc(n.d,h)){if(sf(u(ee(n.a,h),49),i))return 1}else Ve(n.d,h,new ni);if(i.j!=h.j)return S=xle(i.j,h.j),S==-1?ns(n,h,i):ns(n,i,h),S;if(i.e.c.length!=0&&h.e.c.length!=0){if(n.b&&(S=BFn(i,h),S!=0))return S==-1?ns(n,h,i):S==1&&ns(n,i,h),S;if(c=u(sn(i.e,0),18).c.i,a=u(sn(h.e,0),18).c.i,c==a)return r=u(v(u(sn(i.e,0),18),(W(),dt)),17).a,l=u(v(u(sn(h.e,0),18),dt),17).a,r>l?ns(n,i,h):ns(n,h,i),rl?1:0;for(m=n.c,k=0,j=m.length;kl?ns(n,i,h):ns(n,h,i),rl?1:0):n.b&&(S=BFn(i,h),S!=0)?(S==-1?ns(n,h,i):S==1&&ns(n,i,h),S):(s=0,d=0,kt(u(sn(i.g,0),18),dt)&&(s=u(v(u(sn(i.g,0),18),dt),17).a),kt(u(sn(h.g,0),18),dt)&&(d=u(v(u(sn(i.g,0),18),dt),17).a),f&&f==g?on(un(v(u(sn(i.g,0),18),zf)))&&!on(un(v(u(sn(h.g,0),18),zf)))?(ns(n,i,h),1):!on(un(v(u(sn(i.g,0),18),zf)))&&on(un(v(u(sn(h.g,0),18),zf)))?(ns(n,h,i),-1):(s>d?ns(n,i,h):ns(n,h,i),sd?1:0):(n.f&&(n.f._b(f)&&(s=u(n.f.xc(f),17).a),n.f._b(g)&&(d=u(n.f.xc(g),17).a)),s>d?ns(n,i,h):ns(n,h,i),sd?1:0))):i.e.c.length!=0&&h.g.c.length!=0?(ns(n,i,h),1):i.g.c.length!=0&&h.e.c.length!=0?(ns(n,h,i),-1):kt(i,(W(),dt))&&kt(h,dt)?(r=u(v(i,dt),17).a,l=u(v(h,dt),17).a,r>l?ns(n,i,h):ns(n,h,i),rl?1:0):(ns(n,h,i),-1)}function WLe(n){n.gb||(n.gb=!0,n.b=hc(n,0),Ft(n.b,18),jt(n.b,19),n.a=hc(n,1),Ft(n.a,1),jt(n.a,2),jt(n.a,3),jt(n.a,4),jt(n.a,5),n.o=hc(n,2),Ft(n.o,8),Ft(n.o,9),jt(n.o,10),jt(n.o,11),jt(n.o,12),jt(n.o,13),jt(n.o,14),jt(n.o,15),jt(n.o,16),jt(n.o,17),jt(n.o,18),jt(n.o,19),jt(n.o,20),jt(n.o,21),jt(n.o,22),jt(n.o,23),Nr(n.o),Nr(n.o),Nr(n.o),Nr(n.o),Nr(n.o),Nr(n.o),Nr(n.o),Nr(n.o),Nr(n.o),Nr(n.o),n.p=hc(n,3),Ft(n.p,2),Ft(n.p,3),Ft(n.p,4),Ft(n.p,5),jt(n.p,6),jt(n.p,7),Nr(n.p),Nr(n.p),n.q=hc(n,4),Ft(n.q,8),n.v=hc(n,5),jt(n.v,9),Nr(n.v),Nr(n.v),Nr(n.v),n.w=hc(n,6),Ft(n.w,2),Ft(n.w,3),Ft(n.w,4),jt(n.w,5),n.B=hc(n,7),jt(n.B,1),Nr(n.B),Nr(n.B),Nr(n.B),n.Q=hc(n,8),jt(n.Q,0),Nr(n.Q),n.R=hc(n,9),Ft(n.R,1),n.S=hc(n,10),Nr(n.S),Nr(n.S),Nr(n.S),Nr(n.S),Nr(n.S),Nr(n.S),Nr(n.S),Nr(n.S),Nr(n.S),Nr(n.S),Nr(n.S),Nr(n.S),Nr(n.S),Nr(n.S),Nr(n.S),n.T=hc(n,11),jt(n.T,10),jt(n.T,11),jt(n.T,12),jt(n.T,13),jt(n.T,14),Nr(n.T),Nr(n.T),n.U=hc(n,12),Ft(n.U,2),Ft(n.U,3),jt(n.U,4),jt(n.U,5),jt(n.U,6),jt(n.U,7),Nr(n.U),n.V=hc(n,13),jt(n.V,10),n.W=hc(n,14),Ft(n.W,18),Ft(n.W,19),Ft(n.W,20),jt(n.W,21),jt(n.W,22),jt(n.W,23),n.bb=hc(n,15),Ft(n.bb,10),Ft(n.bb,11),Ft(n.bb,12),Ft(n.bb,13),Ft(n.bb,14),Ft(n.bb,15),Ft(n.bb,16),jt(n.bb,17),Nr(n.bb),Nr(n.bb),n.eb=hc(n,16),Ft(n.eb,2),Ft(n.eb,3),Ft(n.eb,4),Ft(n.eb,5),Ft(n.eb,6),Ft(n.eb,7),jt(n.eb,8),jt(n.eb,9),n.ab=hc(n,17),Ft(n.ab,0),Ft(n.ab,1),n.H=hc(n,18),jt(n.H,0),jt(n.H,1),jt(n.H,2),jt(n.H,3),jt(n.H,4),jt(n.H,5),Nr(n.H),n.db=hc(n,19),jt(n.db,2),n.c=Je(n,20),n.d=Je(n,21),n.e=Je(n,22),n.f=Je(n,23),n.i=Je(n,24),n.g=Je(n,25),n.j=Je(n,26),n.k=Je(n,27),n.n=Je(n,28),n.r=Je(n,29),n.s=Je(n,30),n.t=Je(n,31),n.u=Je(n,32),n.fb=Je(n,33),n.A=Je(n,34),n.C=Je(n,35),n.D=Je(n,36),n.F=Je(n,37),n.G=Je(n,38),n.I=Je(n,39),n.J=Je(n,40),n.L=Je(n,41),n.M=Je(n,42),n.N=Je(n,43),n.O=Je(n,44),n.P=Je(n,45),n.X=Je(n,46),n.Y=Je(n,47),n.Z=Je(n,48),n.$=Je(n,49),n._=Je(n,50),n.cb=Je(n,51),n.K=Je(n,52))}function JLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X,tn,jn,kn,Kn,Bn,te;for(s=new Ct,X=u(v(t,(cn(),Do)),88),k=0,Bi(s,(!e.a&&(e.a=new q(Ye,e,10,11)),e.a));s.b!=0;)a=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),27),l=At(a),(x(z(l,Yh))!==x((lh(),k1))||x(z(l,Ld))===x((o1(),gv))||x(z(l,Ld))===x((o1(),wv))||on(un(z(l,fb)))||x(z(l,Fw))!==x((dd(),Ow))||x(z(l,ja))===x((ps(),wb))||x(z(l,ja))===x((ps(),Uw))||x(z(l,$d))===x((a1(),Sv))||x(z(l,$d))===x((a1(),Pv)))&&!on(un(z(a,lI)))&&ht(a,(W(),dt),Y(k++)),S=!on(un(z(a,Fd))),S&&(g=(!a.a&&(a.a=new q(Ye,a,10,11)),a.a).i!=0,m=Mye(a),p=x(z(a,Bw))===x((jl(),M1)),te=!Lf(a,(He(),Nv))||MLn(Oe(z(a,Nv))),N=null,te&&p&&(g||m)&&(N=$Un(a),U(N,Do,X),kt(N,Cj)&&$jn(new zY($(R(v(N,Cj)))),N),u(z(a,xd),181).gc()!=0&&(d=N,qt(new Tn(null,(!a.c&&(a.c=new q(Qu,a,9,9)),new In(a.c,16))),new H9n(d)),Aqn(a,N))),tn=t,jn=u(ee(n.a,At(a)),10),jn&&(tn=jn.e),O=szn(n,a,tn),N&&(O.e=N,N.e=O,Bi(s,(!a.a&&(a.a=new q(Ye,a,10,11)),a.a))));for(k=0,xt(s,e,s.c.b,s.c);s.b!=0;){for(c=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),27),h=new ne((!c.b&&(c.b=new q(Vt,c,12,3)),c.b));h.e!=h.i.gc();)f=u(ue(h),74),nUn(f),(x(z(e,Yh))!==x((lh(),k1))||x(z(e,Ld))===x((o1(),gv))||x(z(e,Ld))===x((o1(),wv))||on(un(z(e,fb)))||x(z(e,Fw))!==x((dd(),Ow))||x(z(e,ja))===x((ps(),wb))||x(z(e,ja))===x((ps(),Uw))||x(z(e,$d))===x((a1(),Sv))||x(z(e,$d))===x((a1(),Pv)))&&ht(f,(W(),dt),Y(k++)),Kn=Gr(u(L((!f.b&&(f.b=new Nn(he,f,4,7)),f.b),0),84)),Bn=Gr(u(L((!f.c&&(f.c=new Nn(he,f,5,8)),f.c),0),84)),!(on(un(z(f,Fd)))||on(un(z(Kn,Fd)))||on(un(z(Bn,Fd))))&&(j=R0(f)&&on(un(z(Kn,Rw)))&&on(un(z(f,Nd))),_=c,j||Yb(Bn,Kn)?_=Kn:Yb(Kn,Bn)&&(_=Bn),tn=t,jn=u(ee(n.a,_),10),jn&&(tn=jn.e),I=stn(n,f,_,tn),U(I,(W(),Ysn),JTe(n,f,e,t)));if(p=x(z(c,Bw))===x((jl(),M1)),p)for(r=new ne((!c.a&&(c.a=new q(Ye,c,10,11)),c.a));r.e!=r.i.gc();)i=u(ue(r),27),te=!Lf(i,(He(),Nv))||MLn(Oe(z(i,Nv))),kn=x(z(i,Bw))===x(M1),te&&kn&&xt(s,i,s.c.b,s.c)}}function W(){W=F;var n,e;st=new lt(Vtn),Ysn=new lt("coordinateOrigin"),wH=new lt("processors"),Qsn=new Dt("compoundNode",(_n(),!1)),kj=new Dt("insideConnections",!1),tfn=new lt("originalBendpoints"),ifn=new lt("originalDummyNodePosition"),rfn=new lt("originalLabelEdge"),B8=new lt("representedLabels"),F8=new lt("endLabels"),M3=new lt("endLabel.origin"),A3=new Dt("labelSide",(To(),Zj)),y2=new Dt("maxEdgeThickness",0),zf=new Dt("reversed",!1),S3=new lt(MXn),yf=new Dt("longEdgeSource",null),Es=new Dt("longEdgeTarget",null),$w=new Dt("longEdgeHasLabelDummies",!1),yj=new Dt("longEdgeBeforeLabelDummy",!1),rI=new Dt("edgeConstraint",(hd(),Y_)),ub=new lt("inLayerLayoutUnit"),Od=new Dt("inLayerConstraint",(vl(),mj)),T3=new Dt("inLayerSuccessorConstraint",new Z),efn=new Dt("inLayerSuccessorConstraintBetweenNonDummies",!1),Xu=new lt("portDummy"),iI=new Dt("crossingHint",Y(0)),Hc=new Dt("graphProperties",(e=u(of(cH),9),new _o(e,u(xs(e,e.length),9),0))),gc=new Dt("externalPortSide",(en(),sc)),nfn=new Dt("externalPortSize",new Li),hH=new lt("externalPortReplacedDummies"),cI=new lt("externalPortReplacedDummy"),Nl=new Dt("externalPortConnections",(n=u(of(lr),9),new _o(n,u(xs(n,n.length),9),0))),ob=new Dt(gXn,0),Jsn=new lt("barycenterAssociates"),P3=new lt("TopSideComments"),C3=new lt("BottomSideComments"),tI=new lt("CommentConnectionPort"),aH=new Dt("inputCollect",!1),bH=new Dt("outputCollect",!1),vj=new Dt("cyclic",!1),Zsn=new lt("crossHierarchyMap"),pH=new lt("targetOffset"),new Dt("splineLabelSize",new Li),E2=new lt("spacings"),uI=new Dt("partitionConstraint",!1),cb=new lt("breakingPoint.info"),ofn=new lt("splines.survivingEdge"),Dd=new lt("splines.route.start"),C2=new lt("splines.edgeChain"),ufn=new lt("originalPortConstraints"),sb=new lt("selfLoopHolder"),yv=new lt("splines.nsPortY"),dt=new lt("modelOrder"),dH=new lt("longEdgeTargetNode"),ka=new Dt(QXn,!1),j2=new Dt(QXn,!1),lH=new lt("layerConstraints.hiddenNodes"),cfn=new lt("layerConstraints.opposidePort"),gH=new lt("targetNode.modelOrder")}function QLe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;for(d=ge(n.b,0);d.b!=d.d.c;)if(a=u(be(d),39),!An(a.c,IS))for(c=u(Wr(new Tn(null,new In(uCe(a,n),16)),qu(new ju,new yu,new Eu,A(T(xr,1),G,108,0,[(Gu(),Yr)]))),15),e==(ci(),Br)||e==Xr?c.jd(new T4n):c.jd(new A4n),m=c.gc(),r=0;r0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(h-p)/(y.Math.abs(f-g)/40)>50&&(p>h?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a+i/5.3,a.e.b+a.f.b*s-i/2)):ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a+i/5.3,a.e.b+a.f.b*s+i/2)))),ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a,a.e.b+a.f.b*s))):e==Xr?(l=$(R(v(a,(pt(),jf)))),a.e.a-i>l?ir(u(c.Xb(r),65).a,new V(l-t,a.e.b+a.f.b*s)):u(c.Xb(r),65).a.b>0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(h-p)/(y.Math.abs(f-g)/40)>50&&(p>h?ir(u(c.Xb(r),65).a,new V(a.e.a-i/5.3,a.e.b+a.f.b*s-i/2)):ir(u(c.Xb(r),65).a,new V(a.e.a-i/5.3,a.e.b+a.f.b*s+i/2)))),ir(u(c.Xb(r),65).a,new V(a.e.a,a.e.b+a.f.b*s))):e==us?(l=$(R(v(a,(pt(),Js)))),a.e.b+a.f.b+i0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(f-g)/(y.Math.abs(h-p)/40)>50&&(g>f?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s-i/2,a.e.b+i/5.3+a.f.b)):ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s+i/2,a.e.b+i/5.3+a.f.b)))),ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,a.e.b+a.f.b))):(l=$(R(v(a,(pt(),jf)))),CFn(u(c.Xb(r),65),n)?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,u($s(u(c.Xb(r),65).a),8).b)):a.e.b-i>l?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,l-t)):u(c.Xb(r),65).a.b>0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(f-g)/(y.Math.abs(h-p)/40)>50&&(g>f?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s-i/2,a.e.b-i/5.3)):ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s+i/2,a.e.b-i/5.3)))),ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,a.e.b)))}function He(){He=F;var n,e;Nv=new lt(xVn),q2=new lt(FVn),wan=(Rh(),Xq),Sue=new Mn(trn,wan),x2=new Mn(l3,null),Pue=new lt(wcn),pan=(wd(),yt(Jq,A(T(Qq,1),G,297,0,[Wq]))),Uj=new Mn(MS,pan),Gj=new Mn(qy,(_n(),!1)),man=(ci(),Jf),_d=new Mn(xR,man),yan=(El(),hU),kan=new Mn(Hy,yan),Due=new Mn(dcn,!1),Can=(jl(),uO),R2=new Mn(CS,Can),Lan=new o0(12),C1=new Mn(X0,Lan),Xj=new Mn(e8,!1),eU=new Mn(AS,!1),Vj=new Mn(t8,!1),Ban=(Oi(),Pa),m9=new Mn(tR,Ban),L3=new lt(TS),Wj=new lt(Ly),sU=new lt(uS),fU=new lt(n8),Man=new Mu,mb=new Mn(drn,Man),Oue=new Mn(grn,!1),Lue=new Mn(prn,!1),Tan=new Wv,$v=new Mn(vrn,Tan),tO=new Mn(nrn,!1),Fue=new Mn(BVn,1),B2=new lt(RVn),F2=new lt(KVn),v9=new Mn(Ny,!1),new Mn(_Vn,!0),Y(0),new Mn(HVn,Y(100)),new Mn(qVn,!1),Y(0),new Mn(UVn,Y(4e3)),Y(0),new Mn(GVn,Y(400)),new Mn(zVn,!1),new Mn(XVn,!1),new Mn(VVn,!0),new Mn(WVn,!1),gan=(qT(),bU),Iue=new Mn(bcn,gan),Bue=new Mn(qin,10),Rue=new Mn(Uin,10),Han=new Mn(WB,20),Kue=new Mn(Gin,10),qan=new Mn(eR,2),Uan=new Mn($R,10),Gan=new Mn(zin,0),iO=new Mn(Win,5),zan=new Mn(Xin,1),Xan=new Mn(Vin,1),qd=new Mn(yw,20),_ue=new Mn(Jin,10),Jan=new Mn(Qin,10),N3=new lt(Yin),Wan=new eTn,Van=new Mn(krn,Wan),$ue=new lt(BR),Nan=!1,Nue=new Mn(FR,Nan),San=new o0(5),Aan=new Mn(crn,San),Pan=(lw(),e=u(of(yr),9),new _o(e,u(xs(e,e.length),9),0)),K2=new Mn(zm,Pan),xan=(Bg(),Sa),$an=new Mn(srn,xan),iU=new lt(frn),rU=new lt(hrn),cU=new lt(lrn),tU=new lt(arn),Ian=(n=u(of(A9),9),new _o(n,u(xs(n,n.length),9),0)),Hd=new Mn(r2,Ian),Dan=yn((io(),Kv)),Ta=new Mn(a3,Dan),Oan=new V(0,0),_2=new Mn(d3,Oan),Vw=new Mn(Gm,!1),van=($f(),xv),Zq=new Mn(brn,van),Yq=new Mn(oS,!1),Y(1),new Mn(JVn,null),Fan=new lt(mrn),uU=new lt(wrn),_an=(en(),sc),H2=new Mn(ern,_an),oo=new lt(Zin),Ran=(zu(),yn(Ia)),Ww=new Mn(Xm,Ran),oU=new Mn(urn,!1),Kan=new Mn(orn,!0),cO=new Mn($y,1),Qan=new Mn(gcn,null),Jj=new Mn(xy,150),rO=new Mn(Fy,1.414),$3=new Mn(V0,null),Hue=new Mn(pcn,1),zj=new Mn(irn,!1),nU=new Mn(rrn,!1),jan=new Mn(JB,1),Ean=(pA(),aU),new Mn(QVn,Ean),xue=!0,Uue=(Gp(),Yw),Gue=Yw,que=Yw}function tr(){tr=F,Won=new ei("DIRECTION_PREPROCESSOR",0),zon=new ei("COMMENT_PREPROCESSOR",1),b2=new ei("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),N_=new ei("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),bsn=new ei("PARTITION_PREPROCESSOR",4),IP=new ei("LABEL_DUMMY_INSERTER",5),KP=new ei("SELF_LOOP_PREPROCESSOR",6),Lw=new ei("LAYER_CONSTRAINT_PREPROCESSOR",7),asn=new ei("PARTITION_MIDPROCESSOR",8),isn=new ei("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),hsn=new ei("NODE_PROMOTION",10),Dw=new ei("LAYER_CONSTRAINT_POSTPROCESSOR",11),dsn=new ei("PARTITION_POSTPROCESSOR",12),nsn=new ei("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),wsn=new ei("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),Kon=new ei("BREAKING_POINT_INSERTER",15),NP=new ei("LONG_EDGE_SPLITTER",16),$_=new ei("PORT_SIDE_PROCESSOR",17),SP=new ei("INVERTED_PORT_PROCESSOR",18),FP=new ei("PORT_LIST_SORTER",19),psn=new ei("SORT_BY_INPUT_ORDER_OF_MODEL",20),xP=new ei("NORTH_SOUTH_PORT_PREPROCESSOR",21),_on=new ei("BREAKING_POINT_PROCESSOR",22),lsn=new ei(qXn,23),msn=new ei(UXn,24),BP=new ei("SELF_LOOP_PORT_RESTORER",25),gsn=new ei("SINGLE_EDGE_GRAPH_WRAPPER",26),PP=new ei("IN_LAYER_CONSTRAINT_PROCESSOR",27),Qon=new ei("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),ssn=new ei("LABEL_AND_NODE_SIZE_PROCESSOR",29),osn=new ei("INNERMOST_NODE_MARGIN_CALCULATOR",30),_P=new ei("SELF_LOOP_ROUTER",31),Uon=new ei("COMMENT_NODE_MARGIN_CALCULATOR",32),AP=new ei("END_LABEL_PREPROCESSOR",33),DP=new ei("LABEL_DUMMY_SWITCHER",34),qon=new ei("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),fv=new ei("LABEL_SIDE_SELECTOR",36),csn=new ei("HYPEREDGE_DUMMY_MERGER",37),esn=new ei("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),fsn=new ei("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),O8=new ei("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),Xon=new ei("CONSTRAINTS_POSTPROCESSOR",41),Gon=new ei("COMMENT_POSTPROCESSOR",42),usn=new ei("HYPERNODE_PROCESSOR",43),tsn=new ei("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),LP=new ei("LONG_EDGE_JOINER",45),RP=new ei("SELF_LOOP_POSTPROCESSOR",46),Hon=new ei("BREAKING_POINT_REMOVER",47),$P=new ei("NORTH_SOUTH_PORT_POSTPROCESSOR",48),rsn=new ei("HORIZONTAL_COMPACTOR",49),OP=new ei("LABEL_DUMMY_REMOVER",50),Yon=new ei("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),Jon=new ei("END_LABEL_SORTER",52),dj=new ei("REVERSED_EDGE_RESTORER",53),TP=new ei("END_LABEL_POSTPROCESSOR",54),Zon=new ei("HIERARCHICAL_NODE_RESIZER",55),Von=new ei("DIRECTION_POSTPROCESSOR",56)}function ftn(){ftn=F,mfn=(bk(),WP),iee=new Mn(rin,mfn),wee=new Mn(cin,(_n(),!1)),Cfn=(KM(),fH),kee=new Mn(lS,Cfn),$ee=new Mn(uin,!1),xee=new Mn(oin,!0),Pne=new Mn(sin,!1),Dfn=(ak(),UH),Qee=new Mn(fin,Dfn),Y(1),cte=new Mn(hin,Y(7)),ute=new Mn(lin,!1),gee=new Mn(ain,!1),pfn=(o1(),J_),tee=new Mn(fR,pfn),Afn=(a1(),xH),Nee=new Mn(_y,Afn),Mfn=(Yo(),jj),Tee=new Mn(din,Mfn),Y(-1),Mee=new Mn(bin,null),Y(-1),Aee=new Mn(win,Y(-1)),Y(-1),See=new Mn(hR,Y(4)),Y(-1),Iee=new Mn(lR,Y(2)),Tfn=(ps(),AI),Lee=new Mn(aR,Tfn),Y(0),Dee=new Mn(dR,Y(0)),Eee=new Mn(bR,Y(et)),gfn=(i5(),L8),eee=new Mn(c8,gfn),Kne=new Mn(gin,!1),Xne=new Mn(wR,.1),Zne=new Mn(gR,!1),Wne=new Mn(pin,null),Jne=new Mn(min,null),Y(-1),Qne=new Mn(vin,null),Y(-1),Yne=new Mn(kin,Y(-1)),Y(0),_ne=new Mn(yin,Y(40)),wfn=(Y4(),oH),Gne=new Mn(pR,wfn),bfn=pj,Hne=new Mn(aS,bfn),Ofn=(E5(),X8),Jee=new Mn(c2,Ofn),_ee=new lt(dS),Sfn=(ok(),QP),Fee=new Mn(mR,Sfn),Pfn=(Xk(),YP),Ree=new Mn(vR,Pfn),Uee=new Mn(kR,.3),zee=new lt(yR),Ifn=(cw(),TI),Xee=new Mn(jR,Ifn),yfn=(ST(),zH),see=new Mn(jin,yfn),jfn=(h5(),VH),fee=new Mn(Ein,jfn),Efn=(um(),J8),hee=new Mn(bS,Efn),aee=new Mn(wS,.2),uee=new Mn(ER,2),ete=new Mn(Cin,null),ite=new Mn(Min,10),tte=new Mn(Tin,10),rte=new Mn(Ain,20),Y(0),Yee=new Mn(Sin,Y(0)),Y(0),Zee=new Mn(Pin,Y(0)),Y(0),nte=new Mn(Iin,Y(0)),Ine=new Mn(CR,!1),hfn=(ym(),N8),Dne=new Mn(Oin,hfn),ffn=(QM(),V_),One=new Mn(Din,ffn),mee=new Mn(gS,!1),Y(0),pee=new Mn(MR,Y(16)),Y(0),vee=new Mn(TR,Y(5)),$fn=(DT(),QH),Tte=new Mn(Ol,$fn),ote=new Mn(pS,10),hte=new Mn(mS,1),Nfn=(bT(),VP),pte=new Mn(u8,Nfn),dte=new lt(AR),Lfn=Y(1),Y(0),wte=new Mn(SR,Lfn),xfn=(dT(),JH),Ite=new Mn(vS,xfn),Ate=new lt(kS),jte=new Mn(yS,!0),kte=new Mn(jS,2),Cte=new Mn(PR,!0),kfn=(vA(),JP),cee=new Mn(Lin,kfn),vfn=(Yp(),dv),ree=new Mn(Nin,vfn),dfn=(lh(),k1),Rne=new Mn(ES,dfn),Bne=new Mn($in,!1),Fne=new Mn(xin,!1),lfn=(dd(),Ow),Lne=new Mn(IR,lfn),afn=(d5(),FH),xne=new Mn(Fin,afn),Nne=new Mn(OR,0),$ne=new Mn(DR,0),jee=Q_,yee=gj,Pee=CI,Oee=CI,Cee=$H,Vne=(jl(),M1),nee=L8,zne=L8,qne=L8,Une=M1,Hee=V8,qee=X8,Bee=X8,Kee=X8,Gee=_H,Wee=V8,Vee=V8,lee=(El(),x3),dee=x3,bee=J8,oee=Qj,ste=Iv,fte=Gw,lte=Iv,ate=Gw,mte=Iv,vte=Gw,bte=W_,gte=VP,Ote=Iv,Dte=Gw,Ste=Iv,Pte=Gw,Ete=Gw,yte=Gw,Mte=Gw}function YLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X,tn,jn,kn,Kn,Bn,te,xe,Lt,Yu,Rr,Fo,W2,D1,rf,cf,Xd,H3,Ba,q3,Ih,cl,Eb,U3,J2,Oh,Vd,Rl,Dse,k0n,Cb,K9,OU,G3,_9,ug,H9,DU,Lse;for(k0n=0,xe=e,Rr=0,D1=xe.length;Rr0&&(n.a[Ih.p]=k0n++)}for(_9=0,Lt=t,Fo=0,rf=Lt.length;Fo0;){for(Ih=(oe(J2.b>0),u(J2.a.Xb(J2.c=--J2.b),12)),U3=0,f=new C(Ih.e);f.a0&&(Ih.j==(en(),Xn)?(n.a[Ih.p]=_9,++_9):(n.a[Ih.p]=_9+cf+H3,++H3))}_9+=H3}for(Eb=new de,m=new rh,te=e,Yu=0,W2=te.length;Yul.b&&(l.b=Oh)):Ih.i.c==Dse&&(Ohl.c&&(l.c=Oh));for(x4(k,0,k.length,null),G3=K(ye,_e,28,k.length,15,1),i=K(ye,_e,28,_9+1,15,1),S=0;S0;)tn%2>0&&(r+=DU[tn+1]),tn=(tn-1)/2|0,++DU[tn];for(kn=K(Iie,Fn,374,k.length*2,0,1),N=0;N0&&z7(Yu.f),z(S,Qan)!=null&&(f=u(z(S,Qan),347),Eb=f.Tg(S),kg(S,y.Math.max(S.g,Eb.a),y.Math.max(S.f,Eb.b)));if(rf=u(z(e,C1),107),p=e.g-(rf.b+rf.c),g=e.f-(rf.d+rf.a),Oh.bh("Available Child Area: ("+p+"|"+g+")"),ht(e,x2,p/g),rRn(e,r,i.eh(W2)),u(z(e,$3),280)==aO&&(ctn(e),kg(e,rf.b+$(R(z(e,B2)))+rf.c,rf.d+$(R(z(e,F2)))+rf.a)),Oh.bh("Executed layout algorithm: "+Oe(z(e,Nv))+" on node "+e.k),u(z(e,$3),280)==Yw){if(p<0||g<0)throw M(new _l("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+e.k));for(Lf(e,B2)||Lf(e,F2)||ctn(e),k=$(R(z(e,B2))),m=$(R(z(e,F2))),Oh.bh("Desired Child Area: ("+k+"|"+m+")"),Xd=p/k,H3=g/m,cf=y.Math.min(Xd,y.Math.min(H3,$(R(z(e,Hue))))),ht(e,cO,cf),Oh.bh(e.k+" -- Local Scale Factor (X|Y): ("+Xd+"|"+H3+")"),N=u(z(e,Uj),21),c=0,s=0,cf'?":An(PWn,n)?"'(?<' or '(? toIndex: ",Ttn=", toIndex: ",Atn="Index: ",Stn=", Size: ",_m="org.eclipse.elk.alg.common",Ne={50:1},Yzn="org.eclipse.elk.alg.common.compaction",Zzn="Scanline/EventHandler",zh="org.eclipse.elk.alg.common.compaction.oned",nXn="CNode belongs to another CGroup.",eXn="ISpacingsHandler/1",FB="The ",BB=" instance has been finished already.",tXn="The direction ",iXn=" is not supported by the CGraph instance.",rXn="OneDimensionalCompactor",cXn="OneDimensionalCompactor/lambda$0$Type",uXn="Quadruplet",oXn="ScanlineConstraintCalculator",sXn="ScanlineConstraintCalculator/ConstraintsScanlineHandler",fXn="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",hXn="ScanlineConstraintCalculator/Timestamp",lXn="ScanlineConstraintCalculator/lambda$0$Type",ph={178:1,46:1},RB="org.eclipse.elk.alg.common.compaction.options",oc="org.eclipse.elk.core.data",Ptn="org.eclipse.elk.polyomino.traversalStrategy",Itn="org.eclipse.elk.polyomino.lowLevelSort",Otn="org.eclipse.elk.polyomino.highLevelSort",Dtn="org.eclipse.elk.polyomino.fill",ms={134:1},KB="polyomino",Q5="org.eclipse.elk.alg.common.networksimplex",Xh={183:1,3:1,4:1},aXn="org.eclipse.elk.alg.common.nodespacing",kd="org.eclipse.elk.alg.common.nodespacing.cellsystem",Hm="CENTER",dXn={217:1,336:1},Ltn={3:1,4:1,5:1,603:1},s3="LEFT",f3="RIGHT",Ntn="Vertical alignment cannot be null",$tn="BOTTOM",nS="org.eclipse.elk.alg.common.nodespacing.internal",Y5="UNDEFINED",_f=.01,Iy="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",bXn="LabelPlacer/lambda$0$Type",wXn="LabelPlacer/lambda$1$Type",gXn="portRatioOrPosition",qm="org.eclipse.elk.alg.common.overlaps",_B="DOWN",mh="org.eclipse.elk.alg.common.polyomino",eS="NORTH",HB="EAST",qB="SOUTH",UB="WEST",tS="org.eclipse.elk.alg.common.polyomino.structures",xtn="Direction",GB="Grid is only of size ",zB=". Requested point (",XB=") is out of bounds.",iS=" Given center based coordinates were (",Oy="org.eclipse.elk.graph.properties",pXn="IPropertyHolder",Ftn={3:1,96:1,137:1},h3="org.eclipse.elk.alg.common.spore",mXn="org.eclipse.elk.alg.common.utils",yd={205:1},e2="org.eclipse.elk.core",vXn="Connected Components Compaction",kXn="org.eclipse.elk.alg.disco",rS="org.eclipse.elk.alg.disco.graph",VB="org.eclipse.elk.alg.disco.options",Btn="CompactionStrategy",Rtn="org.eclipse.elk.disco.componentCompaction.strategy",Ktn="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",_tn="org.eclipse.elk.disco.debug.discoGraph",Htn="org.eclipse.elk.disco.debug.discoPolys",yXn="componentCompaction",jd="org.eclipse.elk.disco",WB="org.eclipse.elk.spacing.componentComponent",JB="org.eclipse.elk.edge.thickness",l3="org.eclipse.elk.aspectRatio",X0="org.eclipse.elk.padding",t2="org.eclipse.elk.alg.disco.transform",QB=1.5707963267948966,i2=17976931348623157e292,kw={3:1,4:1,5:1,198:1},jXn={3:1,6:1,4:1,5:1,100:1,115:1},YB="org.eclipse.elk.alg.force",qtn="ComponentsProcessor",EXn="ComponentsProcessor/1",Utn="ElkGraphImporter/lambda$0$Type",Dy="org.eclipse.elk.alg.force.graph",CXn="Component Layout",Gtn="org.eclipse.elk.alg.force.model",cS="org.eclipse.elk.force.model",ztn="org.eclipse.elk.force.iterations",Xtn="org.eclipse.elk.force.repulsivePower",ZB="org.eclipse.elk.force.temperature",vh=.001,nR="org.eclipse.elk.force.repulsion",Z5="org.eclipse.elk.alg.force.options",Um=1.600000023841858,cu="org.eclipse.elk.force",Ly="org.eclipse.elk.priority",yw="org.eclipse.elk.spacing.nodeNode",eR="org.eclipse.elk.spacing.edgeLabel",uS="org.eclipse.elk.randomSeed",n8="org.eclipse.elk.separateConnectedComponents",e8="org.eclipse.elk.interactive",tR="org.eclipse.elk.portConstraints",oS="org.eclipse.elk.edgeLabels.inline",t8="org.eclipse.elk.omitNodeMicroLayout",Gm="org.eclipse.elk.nodeSize.fixedGraphSize",a3="org.eclipse.elk.nodeSize.options",r2="org.eclipse.elk.nodeSize.constraints",zm="org.eclipse.elk.nodeLabels.placement",Xm="org.eclipse.elk.portLabels.placement",Ny="org.eclipse.elk.topdownLayout",$y="org.eclipse.elk.topdown.scaleFactor",xy="org.eclipse.elk.topdown.hierarchicalNodeWidth",Fy="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",V0="org.eclipse.elk.topdown.nodeType",Vtn="origin",MXn="random",TXn="boundingBox.upLeft",AXn="boundingBox.lowRight",Wtn="org.eclipse.elk.stress.fixed",Jtn="org.eclipse.elk.stress.desiredEdgeLength",Qtn="org.eclipse.elk.stress.dimension",Ytn="org.eclipse.elk.stress.epsilon",Ztn="org.eclipse.elk.stress.iterationLimit",la="org.eclipse.elk.stress",SXn="ELK Stress",d3="org.eclipse.elk.nodeSize.minimum",sS="org.eclipse.elk.alg.force.stress",PXn="Layered layout",b3="org.eclipse.elk.alg.layered",By="org.eclipse.elk.alg.layered.compaction.components",i8="org.eclipse.elk.alg.layered.compaction.oned",fS="org.eclipse.elk.alg.layered.compaction.oned.algs",Ed="org.eclipse.elk.alg.layered.compaction.recthull",Hf="org.eclipse.elk.alg.layered.components",kh="NONE",nin="MODEL_ORDER",Mc={3:1,6:1,4:1,9:1,5:1,126:1},IXn={3:1,6:1,4:1,5:1,150:1,100:1,115:1},hS="org.eclipse.elk.alg.layered.compound",vt={47:1},Bc="org.eclipse.elk.alg.layered.graph",iR=" -> ",OXn="Not supported by LGraph",ein="Port side is undefined",rR={3:1,6:1,4:1,5:1,482:1,150:1,100:1,115:1},b1={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},DXn={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},LXn=`([{"' \r +`,NXn=`)]}"' \r +`,$Xn="The given string contains parts that cannot be parsed as numbers.",Ry="org.eclipse.elk.core.math",xXn={3:1,4:1,140:1,214:1,423:1},FXn={3:1,4:1,107:1,214:1,423:1},w1="org.eclipse.elk.alg.layered.graph.transform",BXn="ElkGraphImporter",RXn="ElkGraphImporter/lambda$1$Type",KXn="ElkGraphImporter/lambda$2$Type",_Xn="ElkGraphImporter/lambda$4$Type",Qn="org.eclipse.elk.alg.layered.intermediate",HXn="Node margin calculation",qXn="ONE_SIDED_GREEDY_SWITCH",UXn="TWO_SIDED_GREEDY_SWITCH",cR="No implementation is available for the layout processor ",uR="IntermediateProcessorStrategy",oR="Node '",GXn="FIRST_SEPARATE",zXn="LAST_SEPARATE",XXn="Odd port side processing",di="org.eclipse.elk.alg.layered.intermediate.compaction",r8="org.eclipse.elk.alg.layered.intermediate.greedyswitch",Vh="org.eclipse.elk.alg.layered.p3order.counting",Ky={230:1},w3="org.eclipse.elk.alg.layered.intermediate.loops",Io="org.eclipse.elk.alg.layered.intermediate.loops.ordering",aa="org.eclipse.elk.alg.layered.intermediate.loops.routing",tin="org.eclipse.elk.alg.layered.intermediate.preserveorder",yh="org.eclipse.elk.alg.layered.intermediate.wrapping",Tc="org.eclipse.elk.alg.layered.options",sR="INTERACTIVE",iin="GREEDY",VXn="DEPTH_FIRST",WXn="EDGE_LENGTH",JXn="SELF_LOOPS",QXn="firstTryWithInitialOrder",rin="org.eclipse.elk.layered.directionCongruency",cin="org.eclipse.elk.layered.feedbackEdges",lS="org.eclipse.elk.layered.interactiveReferencePoint",uin="org.eclipse.elk.layered.mergeEdges",oin="org.eclipse.elk.layered.mergeHierarchyEdges",sin="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",fin="org.eclipse.elk.layered.portSortingStrategy",hin="org.eclipse.elk.layered.thoroughness",lin="org.eclipse.elk.layered.unnecessaryBendpoints",ain="org.eclipse.elk.layered.generatePositionAndLayerIds",fR="org.eclipse.elk.layered.cycleBreaking.strategy",_y="org.eclipse.elk.layered.layering.strategy",din="org.eclipse.elk.layered.layering.layerConstraint",bin="org.eclipse.elk.layered.layering.layerChoiceConstraint",win="org.eclipse.elk.layered.layering.layerId",hR="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",lR="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",aR="org.eclipse.elk.layered.layering.nodePromotion.strategy",dR="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",bR="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",c8="org.eclipse.elk.layered.crossingMinimization.strategy",gin="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",wR="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",gR="org.eclipse.elk.layered.crossingMinimization.semiInteractive",pin="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",min="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",vin="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",kin="org.eclipse.elk.layered.crossingMinimization.positionId",yin="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",pR="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",aS="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",c2="org.eclipse.elk.layered.nodePlacement.strategy",dS="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",mR="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",vR="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",kR="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",yR="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",jR="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",jin="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Ein="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",bS="org.eclipse.elk.layered.edgeRouting.splines.mode",wS="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",ER="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",Cin="org.eclipse.elk.layered.spacing.baseValue",Min="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",Tin="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",Ain="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",Sin="org.eclipse.elk.layered.priority.direction",Pin="org.eclipse.elk.layered.priority.shortness",Iin="org.eclipse.elk.layered.priority.straightness",CR="org.eclipse.elk.layered.compaction.connectedComponents",Oin="org.eclipse.elk.layered.compaction.postCompaction.strategy",Din="org.eclipse.elk.layered.compaction.postCompaction.constraints",gS="org.eclipse.elk.layered.highDegreeNodes.treatment",MR="org.eclipse.elk.layered.highDegreeNodes.threshold",TR="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Ol="org.eclipse.elk.layered.wrapping.strategy",pS="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",mS="org.eclipse.elk.layered.wrapping.correctionFactor",u8="org.eclipse.elk.layered.wrapping.cutting.strategy",AR="org.eclipse.elk.layered.wrapping.cutting.cuts",SR="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",vS="org.eclipse.elk.layered.wrapping.validify.strategy",kS="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",yS="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",jS="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",PR="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",Lin="org.eclipse.elk.layered.edgeLabels.sideSelection",Nin="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",ES="org.eclipse.elk.layered.considerModelOrder.strategy",$in="org.eclipse.elk.layered.considerModelOrder.portModelOrder",xin="org.eclipse.elk.layered.considerModelOrder.noModelOrder",IR="org.eclipse.elk.layered.considerModelOrder.components",Fin="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",OR="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",DR="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",LR="layering",YXn="layering.minWidth",ZXn="layering.nodePromotion",Vm="crossingMinimization",CS="org.eclipse.elk.hierarchyHandling",nVn="crossingMinimization.greedySwitch",eVn="nodePlacement",tVn="nodePlacement.bk",iVn="edgeRouting",Hy="org.eclipse.elk.edgeRouting",qf="spacing",Bin="priority",Rin="compaction",rVn="compaction.postCompaction",cVn="Specifies whether and how post-process compaction is applied.",Kin="highDegreeNodes",_in="wrapping",uVn="wrapping.cutting",oVn="wrapping.validify",Hin="wrapping.multiEdge",NR="edgeLabels",o8="considerModelOrder",qin="org.eclipse.elk.spacing.commentComment",Uin="org.eclipse.elk.spacing.commentNode",Gin="org.eclipse.elk.spacing.edgeEdge",$R="org.eclipse.elk.spacing.edgeNode",zin="org.eclipse.elk.spacing.labelLabel",Xin="org.eclipse.elk.spacing.labelPortHorizontal",Vin="org.eclipse.elk.spacing.labelPortVertical",Win="org.eclipse.elk.spacing.labelNode",Jin="org.eclipse.elk.spacing.nodeSelfLoop",Qin="org.eclipse.elk.spacing.portPort",Yin="org.eclipse.elk.spacing.individual",Zin="org.eclipse.elk.port.borderOffset",nrn="org.eclipse.elk.noLayout",ern="org.eclipse.elk.port.side",qy="org.eclipse.elk.debugMode",trn="org.eclipse.elk.alignment",irn="org.eclipse.elk.insideSelfLoops.activate",rrn="org.eclipse.elk.insideSelfLoops.yo",xR="org.eclipse.elk.direction",crn="org.eclipse.elk.nodeLabels.padding",urn="org.eclipse.elk.portLabels.nextToPortIfPossible",orn="org.eclipse.elk.portLabels.treatAsGroup",srn="org.eclipse.elk.portAlignment.default",frn="org.eclipse.elk.portAlignment.north",hrn="org.eclipse.elk.portAlignment.south",lrn="org.eclipse.elk.portAlignment.west",arn="org.eclipse.elk.portAlignment.east",MS="org.eclipse.elk.contentAlignment",drn="org.eclipse.elk.junctionPoints",brn="org.eclipse.elk.edgeLabels.placement",wrn="org.eclipse.elk.port.index",grn="org.eclipse.elk.commentBox",prn="org.eclipse.elk.hypernode",mrn="org.eclipse.elk.port.anchor",FR="org.eclipse.elk.partitioning.activate",BR="org.eclipse.elk.partitioning.partition",TS="org.eclipse.elk.position",vrn="org.eclipse.elk.margins",krn="org.eclipse.elk.spacing.portsSurrounding",AS="org.eclipse.elk.interactiveLayout",dc="org.eclipse.elk.core.util",yrn={3:1,4:1,5:1,601:1},sVn="NETWORK_SIMPLEX",jrn="SIMPLE",vr={106:1,47:1},SS="org.eclipse.elk.alg.layered.p1cycles",Dl="org.eclipse.elk.alg.layered.p2layers",Ern={413:1,230:1},fVn={846:1,3:1,4:1},Nu="org.eclipse.elk.alg.layered.p3order",kr="org.eclipse.elk.alg.layered.p4nodes",hVn={3:1,4:1,5:1,854:1},jh=1e-5,da="org.eclipse.elk.alg.layered.p4nodes.bk",RR="org.eclipse.elk.alg.layered.p5edges",mf="org.eclipse.elk.alg.layered.p5edges.orthogonal",KR="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",_R=1e-6,jw="org.eclipse.elk.alg.layered.p5edges.splines",HR=.09999999999999998,PS=1e-8,lVn=4.71238898038469,Crn=3.141592653589793,Ll="org.eclipse.elk.alg.mrtree",qR=.10000000149011612,IS="SUPER_ROOT",s8="org.eclipse.elk.alg.mrtree.graph",Mrn=-17976931348623157e292,Rc="org.eclipse.elk.alg.mrtree.intermediate",aVn="Processor compute fanout",OS={3:1,6:1,4:1,5:1,534:1,100:1,115:1},dVn="Set neighbors in level",Uy="org.eclipse.elk.alg.mrtree.options",bVn="DESCENDANTS",Trn="org.eclipse.elk.mrtree.compaction",Arn="org.eclipse.elk.mrtree.edgeEndTextureLength",Srn="org.eclipse.elk.mrtree.treeLevel",Prn="org.eclipse.elk.mrtree.positionConstraint",Irn="org.eclipse.elk.mrtree.weighting",Orn="org.eclipse.elk.mrtree.edgeRoutingMode",Drn="org.eclipse.elk.mrtree.searchOrder",wVn="Position Constraint",uu="org.eclipse.elk.mrtree",gVn="org.eclipse.elk.tree",pVn="Processor arrange level",Wm="org.eclipse.elk.alg.mrtree.p2order",po="org.eclipse.elk.alg.mrtree.p4route",Lrn="org.eclipse.elk.alg.radial",Cd=6.283185307179586,Nrn="Before",$rn=5e-324,DS="After",xrn="org.eclipse.elk.alg.radial.intermediate",mVn="COMPACTION",UR="org.eclipse.elk.alg.radial.intermediate.compaction",vVn={3:1,4:1,5:1,100:1},Frn="org.eclipse.elk.alg.radial.intermediate.optimization",GR="No implementation is available for the layout option ",f8="org.eclipse.elk.alg.radial.options",Brn="org.eclipse.elk.radial.centerOnRoot",Rrn="org.eclipse.elk.radial.orderId",Krn="org.eclipse.elk.radial.radius",LS="org.eclipse.elk.radial.rotate",zR="org.eclipse.elk.radial.compactor",XR="org.eclipse.elk.radial.compactionStepSize",_rn="org.eclipse.elk.radial.sorter",Hrn="org.eclipse.elk.radial.wedgeCriteria",qrn="org.eclipse.elk.radial.optimizationCriteria",VR="org.eclipse.elk.radial.rotation.targetAngle",WR="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",Urn="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",kVn="Compaction",Grn="rotation",es="org.eclipse.elk.radial",yVn="org.eclipse.elk.alg.radial.p1position.wedge",zrn="org.eclipse.elk.alg.radial.sorting",jVn=5.497787143782138,EVn=3.9269908169872414,CVn=2.356194490192345,MVn="org.eclipse.elk.alg.rectpacking",NS="org.eclipse.elk.alg.rectpacking.intermediate",JR="org.eclipse.elk.alg.rectpacking.options",Xrn="org.eclipse.elk.rectpacking.trybox",Vrn="org.eclipse.elk.rectpacking.currentPosition",Wrn="org.eclipse.elk.rectpacking.desiredPosition",Jrn="org.eclipse.elk.rectpacking.inNewRow",Qrn="org.eclipse.elk.rectpacking.widthApproximation.strategy",Yrn="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",Zrn="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",ncn="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",ecn="org.eclipse.elk.rectpacking.packing.strategy",tcn="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",icn="org.eclipse.elk.rectpacking.packing.compaction.iterations",rcn="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",QR="widthApproximation",TVn="Compaction Strategy",AVn="packing.compaction",co="org.eclipse.elk.rectpacking",Jm="org.eclipse.elk.alg.rectpacking.p1widthapproximation",$S="org.eclipse.elk.alg.rectpacking.p2packing",SVn="No Compaction",ccn="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",Gy="org.eclipse.elk.alg.rectpacking.util",xS="No implementation available for ",Ew="org.eclipse.elk.alg.spore",Cw="org.eclipse.elk.alg.spore.options",W0="org.eclipse.elk.sporeCompaction",YR="org.eclipse.elk.underlyingLayoutAlgorithm",ucn="org.eclipse.elk.processingOrder.treeConstruction",ocn="org.eclipse.elk.processingOrder.spanningTreeCostFunction",ZR="org.eclipse.elk.processingOrder.preferredRoot",nK="org.eclipse.elk.processingOrder.rootSelection",eK="org.eclipse.elk.structure.structureExtractionStrategy",scn="org.eclipse.elk.compaction.compactionStrategy",fcn="org.eclipse.elk.compaction.orthogonal",hcn="org.eclipse.elk.overlapRemoval.maxIterations",lcn="org.eclipse.elk.overlapRemoval.runScanline",tK="processingOrder",PVn="overlapRemoval",Qm="org.eclipse.elk.sporeOverlap",IVn="org.eclipse.elk.alg.spore.p1structure",iK="org.eclipse.elk.alg.spore.p2processingorder",rK="org.eclipse.elk.alg.spore.p3execution",OVn="Topdown Layout",DVn="Invalid index: ",Ym="org.eclipse.elk.core.alg",u2={341:1},Mw={294:1},LVn="Make sure its type is registered with the ",acn=" utility class.",Zm="true",cK="false",NVn="Couldn't clone property '",J0=.05,uo="org.eclipse.elk.core.options",$Vn=1.2999999523162842,Q0="org.eclipse.elk.box",dcn="org.eclipse.elk.expandNodes",bcn="org.eclipse.elk.box.packingMode",xVn="org.eclipse.elk.algorithm",FVn="org.eclipse.elk.resolvedAlgorithm",wcn="org.eclipse.elk.bendPoints",iNe="org.eclipse.elk.labelManager",BVn="org.eclipse.elk.scaleFactor",RVn="org.eclipse.elk.childAreaWidth",KVn="org.eclipse.elk.childAreaHeight",_Vn="org.eclipse.elk.animate",HVn="org.eclipse.elk.animTimeFactor",qVn="org.eclipse.elk.layoutAncestors",UVn="org.eclipse.elk.maxAnimTime",GVn="org.eclipse.elk.minAnimTime",zVn="org.eclipse.elk.progressBar",XVn="org.eclipse.elk.validateGraph",VVn="org.eclipse.elk.validateOptions",WVn="org.eclipse.elk.zoomToFit",rNe="org.eclipse.elk.font.name",JVn="org.eclipse.elk.font.size",gcn="org.eclipse.elk.topdown.sizeApproximator",pcn="org.eclipse.elk.topdown.scaleCap",QVn="org.eclipse.elk.edge.type",YVn="partitioning",ZVn="nodeLabels",FS="portAlignment",uK="nodeSize",oK="port",mcn="portLabels",zy="topdown",nWn="insideSelfLoops",h8="org.eclipse.elk.fixed",BS="org.eclipse.elk.random",vcn={3:1,34:1,22:1,347:1},eWn="port must have a parent node to calculate the port side",tWn="The edge needs to have exactly one edge section. Found: ",l8="org.eclipse.elk.core.util.adapters",ts="org.eclipse.emf.ecore",o2="org.eclipse.elk.graph",iWn="EMapPropertyHolder",rWn="ElkBendPoint",cWn="ElkGraphElement",uWn="ElkConnectableShape",kcn="ElkEdge",oWn="ElkEdgeSection",sWn="EModelElement",fWn="ENamedElement",ycn="ElkLabel",jcn="ElkNode",Ecn="ElkPort",hWn={94:1,93:1},g3="org.eclipse.emf.common.notify.impl",ba="The feature '",a8="' is not a valid changeable feature",lWn="Expecting null",sK="' is not a valid feature",aWn="The feature ID",dWn=" is not a valid feature ID",kc=32768,bWn={110:1,94:1,93:1,58:1,54:1,99:1},qn="org.eclipse.emf.ecore.impl",Md="org.eclipse.elk.graph.impl",d8="Recursive containment not allowed for ",nv="The datatype '",Y0="' is not a valid classifier",fK="The value '",s2={195:1,3:1,4:1},hK="The class '",ev="http://www.eclipse.org/elk/ElkGraph",Ccn="property",b8="value",lK="source",wWn="properties",gWn="identifier",aK="height",dK="width",bK="parent",wK="text",gK="children",pWn="hierarchical",Mcn="sources",pK="targets",Tcn="sections",RS="bendPoints",Acn="outgoingShape",Scn="incomingShape",Pcn="outgoingSections",Icn="incomingSections",or="org.eclipse.emf.common.util",Ocn="Severe implementation error in the Json to ElkGraph importer.",Eh="id",Ui="org.eclipse.elk.graph.json",Dcn="Unhandled parameter types: ",mWn="startPoint",vWn="An edge must have at least one source and one target (edge id: '",tv="').",kWn="Referenced edge section does not exist: ",yWn=" (edge id: '",Lcn="target",jWn="sourcePoint",EWn="targetPoint",KS="group",Qe="name",CWn="connectableShape cannot be null",MWn="edge cannot be null",mK="Passed edge is not 'simple'.",_S="org.eclipse.elk.graph.util",Xy="The 'no duplicates' constraint is violated",vK="targetIndex=",Td=", size=",kK="sourceIndex=",Ch={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},yK={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},HS="logging",TWn="measureExecutionTime",AWn="parser.parse.1",SWn="parser.parse.2",qS="parser.next.1",jK="parser.next.2",PWn="parser.next.3",IWn="parser.next.4",Ad="parser.factor.1",Ncn="parser.factor.2",OWn="parser.factor.3",DWn="parser.factor.4",LWn="parser.factor.5",NWn="parser.factor.6",$Wn="parser.atom.1",xWn="parser.atom.2",FWn="parser.atom.3",$cn="parser.atom.4",EK="parser.atom.5",xcn="parser.cc.1",US="parser.cc.2",BWn="parser.cc.3",RWn="parser.cc.5",Fcn="parser.cc.6",Bcn="parser.cc.7",CK="parser.cc.8",KWn="parser.ope.1",_Wn="parser.ope.2",HWn="parser.ope.3",g1="parser.descape.1",qWn="parser.descape.2",UWn="parser.descape.3",GWn="parser.descape.4",zWn="parser.descape.5",is="parser.process.1",XWn="parser.quantifier.1",VWn="parser.quantifier.2",WWn="parser.quantifier.3",JWn="parser.quantifier.4",Rcn="parser.quantifier.5",QWn="org.eclipse.emf.common.notify",Kcn={424:1,686:1},YWn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},Vy={378:1,152:1},w8="index=",MK={3:1,4:1,5:1,129:1},ZWn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},_cn={3:1,6:1,4:1,5:1,198:1},nJn={3:1,4:1,5:1,173:1,379:1},eJn=";/?:@&=+$,",tJn="invalid authority: ",iJn="EAnnotation",rJn="ETypedElement",cJn="EStructuralFeature",uJn="EAttribute",oJn="EClassifier",sJn="EEnumLiteral",fJn="EGenericType",hJn="EOperation",lJn="EParameter",aJn="EReference",dJn="ETypeParameter",Tt="org.eclipse.emf.ecore.util",TK={79:1},Hcn={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},bJn="org.eclipse.emf.ecore.util.FeatureMap$Entry",$u=8192,Tw=2048,g8="byte",GS="char",p8="double",m8="float",v8="int",k8="long",y8="short",wJn="java.lang.Object",f2={3:1,4:1,5:1,254:1},qcn={3:1,4:1,5:1,688:1},gJn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},Qr={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},Wy="mixed",Be="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",vs="kind",pJn={3:1,4:1,5:1,689:1},Ucn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},zS={20:1,31:1,56:1,16:1,15:1,61:1,71:1},XS={51:1,128:1,287:1},VS={76:1,343:1},WS="The value of type '",JS="' must be of type '",h2=1352,ks="http://www.eclipse.org/emf/2002/Ecore",QS=-32768,Z0="constraints",Ji="baseType",mJn="getEStructuralFeature",vJn="getFeatureID",j8="feature",kJn="getOperationID",Gcn="operation",yJn="defaultValue",jJn="eTypeParameters",EJn="isInstance",CJn="getEEnumLiteral",MJn="eContainingClass",ze={57:1},TJn={3:1,4:1,5:1,124:1},AJn="org.eclipse.emf.ecore.resource",SJn={94:1,93:1,599:1,2034:1},AK="org.eclipse.emf.ecore.resource.impl",zcn="unspecified",Jy="simple",YS="attribute",PJn="attributeWildcard",ZS="element",SK="elementWildcard",vf="collapse",PK="itemType",nP="namespace",Qy="##targetNamespace",ys="whiteSpace",Xcn="wildcards",Sd="http://www.eclipse.org/emf/2003/XMLType",IK="##any",iv="uninitialized",Yy="The multiplicity constraint is violated",eP="org.eclipse.emf.ecore.xml.type",IJn="ProcessingInstruction",OJn="SimpleAnyType",DJn="XMLTypeDocumentRoot",oi="org.eclipse.emf.ecore.xml.type.impl",Zy="INF",LJn="processing",NJn="ENTITIES_._base",Vcn="minLength",Wcn="ENTITY",tP="NCName",$Jn="IDREFS_._base",Jcn="integer",OK="token",DK="pattern",xJn="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",Qcn="\\i\\c*",FJn="[\\i-[:]][\\c-[:]]*",BJn="nonPositiveInteger",nj="maxInclusive",Ycn="NMTOKEN",RJn="NMTOKENS_._base",Zcn="nonNegativeInteger",ej="minInclusive",KJn="normalizedString",_Jn="unsignedByte",HJn="unsignedInt",qJn="18446744073709551615",UJn="unsignedShort",GJn="processingInstruction",p1="org.eclipse.emf.ecore.xml.type.internal",rv=1114111,zJn="Internal Error: shorthands: \\u",E8="xml:isDigit",LK="xml:isWord",NK="xml:isSpace",$K="xml:isNameChar",xK="xml:isInitialNameChar",XJn="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",VJn="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",WJn="Private Use",FK="ASSIGNED",BK="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",nun="UNASSIGNED",cv={3:1,122:1},JJn="org.eclipse.emf.ecore.xml.type.util",iP={3:1,4:1,5:1,381:1},eun="org.eclipse.xtext.xbase.lib",QJn="Cannot add elements to a Range",YJn="Cannot set elements in a Range",ZJn="Cannot remove elements from a Range",nQn="user.agent",o,rP,RK;y.goog=y.goog||{},y.goog.global=y.goog.global||y,rP={},b(1,null,{},Bu),o.Fb=function(e){return QMn(this,e)},o.Gb=function(){return this.Rm},o.Hb=function(){return f0(this)},o.Ib=function(){var e;return Xa(wo(this))+"@"+(e=mt(this)>>>0,e.toString(16))},o.equals=function(n){return this.Fb(n)},o.hashCode=function(){return this.Hb()},o.toString=function(){return this.Ib()};var eQn,tQn,iQn;b(296,1,{296:1,2124:1},QQ),o.ve=function(e){var t;return t=new QQ,t.i=4,e>1?t.c=vOn(this,e-1):t.c=this,t},o.we=function(){return ll(this),this.b},o.xe=function(){return Xa(this)},o.ye=function(){return ll(this),this.k},o.ze=function(){return(this.i&4)!=0},o.Ae=function(){return(this.i&1)!=0},o.Ib=function(){return sQ(this)},o.i=0;var ki=w(ac,"Object",1),tun=w(ac,"Class",296);b(2096,1,vy),w(ky,"Optional",2096),b(1191,2096,vy,Ht),o.Fb=function(e){return e===this},o.Hb=function(){return 2040732332},o.Ib=function(){return"Optional.absent()"},o.Jb=function(e){return Se(e),Qv(),KK};var KK;w(ky,"Absent",1191),b(636,1,{},yD),w(ky,"Joiner",636);var cNe=Nt(ky,"Predicate");b(589,1,{178:1,589:1,3:1,46:1},T8n),o.Mb=function(e){return vFn(this,e)},o.Lb=function(e){return vFn(this,e)},o.Fb=function(e){var t;return D(e,589)?(t=u(e,589),Xnn(this.a,t.a)):!1},o.Hb=function(){return iY(this.a)+306654252},o.Ib=function(){return Gje(this.a)},w(ky,"Predicates/AndPredicate",589),b(419,2096,{419:1,3:1},ME),o.Fb=function(e){var t;return D(e,419)?(t=u(e,419),rt(this.a,t.a)):!1},o.Hb=function(){return 1502476572+mt(this.a)},o.Ib=function(){return Szn+this.a+")"},o.Jb=function(e){return new ME(MM(e.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},w(ky,"Present",419),b(204,1,Nm),o.Nb=function(e){_i(this,e)},o.Qb=function(){Kjn()},w(Cn,"UnmodifiableIterator",204),b(2076,204,$m),o.Qb=function(){Kjn()},o.Rb=function(e){throw M(new Pe)},o.Wb=function(e){throw M(new Pe)},w(Cn,"UnmodifiableListIterator",2076),b(399,2076,$m),o.Ob=function(){return this.c0},o.Pb=function(){if(this.c>=this.d)throw M(new nc);return this.Xb(this.c++)},o.Tb=function(){return this.c},o.Ub=function(){if(this.c<=0)throw M(new nc);return this.Xb(--this.c)},o.Vb=function(){return this.c-1},o.c=0,o.d=0,w(Cn,"AbstractIndexedListIterator",399),b(713,204,Nm),o.Ob=function(){return E$(this)},o.Pb=function(){return tQ(this)},o.e=1,w(Cn,"AbstractIterator",713),b(2084,1,{229:1}),o.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},o.Fb=function(e){return G$(this,e)},o.Hb=function(){return mt(this.Zb())},o.dc=function(){return this.gc()==0},o.ec=function(){return Tp(this)},o.Ib=function(){return Jr(this.Zb())},w(Cn,"AbstractMultimap",2084),b(742,2084,md),o.$b=function(){gT(this)},o._b=function(e){return cEn(this,e)},o.ac=function(){return new f4(this,this.c)},o.ic=function(e){return this.hc()},o.bc=function(){return new Mg(this,this.c)},o.jc=function(){return this.mc(this.hc())},o.kc=function(){return new Cjn(this)},o.lc=function(){return nF(this.c.vc().Nc(),new Xe,64,this.d)},o.cc=function(e){return ot(this,e)},o.fc=function(e){return Ik(this,e)},o.gc=function(){return this.d},o.mc=function(e){return Dn(),new J3(e)},o.nc=function(){return new Ejn(this)},o.oc=function(){return nF(this.c.Cc().Nc(),new Jt,64,this.d)},o.pc=function(e,t){return new VM(this,e,t,null)},o.d=0,w(Cn,"AbstractMapBasedMultimap",742),b(1696,742,md),o.hc=function(){return new Gc(this.a)},o.jc=function(){return Dn(),Dn(),sr},o.cc=function(e){return u(ot(this,e),15)},o.fc=function(e){return u(Ik(this,e),15)},o.Zb=function(){return Dp(this)},o.Fb=function(e){return G$(this,e)},o.qc=function(e){return u(ot(this,e),15)},o.rc=function(e){return u(Ik(this,e),15)},o.mc=function(e){return TN(u(e,15))},o.pc=function(e,t){return TDn(this,e,u(t,15),null)},w(Cn,"AbstractListMultimap",1696),b(748,1,Si),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.c.Ob()||this.e.Ob()},o.Pb=function(){var e;return this.e.Ob()||(e=u(this.c.Pb(),44),this.b=e.ld(),this.a=u(e.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},o.Qb=function(){this.e.Qb(),u(as(this.a),16).dc()&&this.c.Qb(),--this.d.d},w(Cn,"AbstractMapBasedMultimap/Itr",748),b(1129,748,Si,Ejn),o.sc=function(e,t){return t},w(Cn,"AbstractMapBasedMultimap/1",1129),b(1130,1,{},Jt),o.Kb=function(e){return u(e,16).Nc()},w(Cn,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130),b(1131,748,Si,Cjn),o.sc=function(e,t){return new t0(e,t)},w(Cn,"AbstractMapBasedMultimap/2",1131);var iun=Nt(le,"Map");b(2065,1,G0),o.wc=function(e){o5(this,e)},o.yc=function(e,t,i){return hx(this,e,t,i)},o.$b=function(){this.vc().$b()},o.tc=function(e){return xx(this,e)},o._b=function(e){return!!zZ(this,e,!1)},o.uc=function(e){var t,i,r;for(i=this.vc().Kc();i.Ob();)if(t=u(i.Pb(),44),r=t.md(),x(e)===x(r)||e!=null&&rt(e,r))return!0;return!1},o.Fb=function(e){var t,i,r;if(e===this)return!0;if(!D(e,85)||(r=u(e,85),this.gc()!=r.gc()))return!1;for(i=r.vc().Kc();i.Ob();)if(t=u(i.Pb(),44),!this.tc(t))return!1;return!0},o.xc=function(e){return Kr(zZ(this,e,!1))},o.Hb=function(){return XQ(this.vc())},o.dc=function(){return this.gc()==0},o.ec=function(){return new qa(this)},o.zc=function(e,t){throw M(new Kl("Put not supported on this map"))},o.Ac=function(e){u5(this,e)},o.Bc=function(e){return Kr(zZ(this,e,!0))},o.gc=function(){return this.vc().gc()},o.Ib=function(){return OKn(this)},o.Cc=function(){return new ol(this)},w(le,"AbstractMap",2065),b(2085,2065,G0),o.bc=function(){return new XE(this)},o.vc=function(){return jPn(this)},o.ec=function(){var e;return e=this.g,e||(this.g=this.bc())},o.Cc=function(){var e;return e=this.i,e||(this.i=new WEn(this))},w(Cn,"Maps/ViewCachingAbstractMap",2085),b(402,2085,G0,f4),o.xc=function(e){return hme(this,e)},o.Bc=function(e){return L6e(this,e)},o.$b=function(){this.d==this.e.c?this.e.$b():tM(new cW(this))},o._b=function(e){return iBn(this.d,e)},o.Ec=function(){return new A8n(this)},o.Dc=function(){return this.Ec()},o.Fb=function(e){return this===e||rt(this.d,e)},o.Hb=function(){return mt(this.d)},o.ec=function(){return this.e.ec()},o.gc=function(){return this.d.gc()},o.Ib=function(){return Jr(this.d)},w(Cn,"AbstractMapBasedMultimap/AsMap",402);var Oo=Nt(ac,"Iterable");b(31,1,pw),o.Jc=function(e){qi(this,e)},o.Lc=function(){return this.Oc()},o.Nc=function(){return new In(this,0)},o.Oc=function(){return new Tn(null,this.Nc())},o.Fc=function(e){throw M(new Kl("Add not supported on this collection"))},o.Gc=function(e){return Bi(this,e)},o.$b=function(){GW(this)},o.Hc=function(e){return iw(this,e,!1)},o.Ic=function(e){return jk(this,e)},o.dc=function(){return this.gc()==0},o.Mc=function(e){return iw(this,e,!0)},o.Pc=function(){return wW(this)},o.Qc=function(e){return M5(this,e)},o.Ib=function(){return ca(this)},w(le,"AbstractCollection",31);var js=Nt(le,"Set");b(Kf,31,Lu),o.Nc=function(){return new In(this,1)},o.Fb=function(e){return VBn(this,e)},o.Hb=function(){return XQ(this)},w(le,"AbstractSet",Kf),b(2068,Kf,Lu),w(Cn,"Sets/ImprovedAbstractSet",2068),b(2069,2068,Lu),o.$b=function(){this.Rc().$b()},o.Hc=function(e){return DBn(this,e)},o.dc=function(){return this.Rc().dc()},o.Mc=function(e){var t;return this.Hc(e)&&D(e,44)?(t=u(e,44),this.Rc().ec().Mc(t.ld())):!1},o.gc=function(){return this.Rc().gc()},w(Cn,"Maps/EntrySet",2069),b(1127,2069,Lu,A8n),o.Hc=function(e){return kY(this.a.d.vc(),e)},o.Kc=function(){return new cW(this.a)},o.Rc=function(){return this.a},o.Mc=function(e){var t;return kY(this.a.d.vc(),e)?(t=u(as(u(e,44)),44),Y3e(this.a.e,t.ld()),!0):!1},o.Nc=function(){return N7(this.a.d.vc().Nc(),new S8n(this.a))},w(Cn,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127),b(1128,1,{},S8n),o.Kb=function(e){return CLn(this.a,u(e,44))},w(Cn,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128),b(746,1,Si,cW),o.Nb=function(e){_i(this,e)},o.Pb=function(){var e;return e=u(this.b.Pb(),44),this.a=u(e.md(),16),CLn(this.c,e)},o.Ob=function(){return this.b.Ob()},o.Qb=function(){m4(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},w(Cn,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746),b(542,2068,Lu,XE),o.$b=function(){this.b.$b()},o.Hc=function(e){return this.b._b(e)},o.Jc=function(e){Se(e),this.b.wc(new G8n(e))},o.dc=function(){return this.b.dc()},o.Kc=function(){return new Yv(this.b.vc().Kc())},o.Mc=function(e){return this.b._b(e)?(this.b.Bc(e),!0):!1},o.gc=function(){return this.b.gc()},w(Cn,"Maps/KeySet",542),b(327,542,Lu,Mg),o.$b=function(){var e;tM((e=this.b.vc().Kc(),new Pz(this,e)))},o.Ic=function(e){return this.b.ec().Ic(e)},o.Fb=function(e){return this===e||rt(this.b.ec(),e)},o.Hb=function(){return mt(this.b.ec())},o.Kc=function(){var e;return e=this.b.vc().Kc(),new Pz(this,e)},o.Mc=function(e){var t,i;return i=0,t=u(this.b.Bc(e),16),t&&(i=t.gc(),t.$b(),this.a.d-=i),i>0},o.Nc=function(){return this.b.ec().Nc()},w(Cn,"AbstractMapBasedMultimap/KeySet",327),b(747,1,Si,Pz),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.c.Ob()},o.Pb=function(){return this.a=u(this.c.Pb(),44),this.a.ld()},o.Qb=function(){var e;m4(!!this.a),e=u(this.a.md(),16),this.c.Qb(),this.b.a.d-=e.gc(),e.$b(),this.a=null},w(Cn,"AbstractMapBasedMultimap/KeySet/1",747),b(502,402,{85:1,133:1},A7),o.bc=function(){return this.Sc()},o.ec=function(){return this.Uc()},o.Sc=function(){return new e7(this.c,this.Wc())},o.Tc=function(){return this.Wc().Tc()},o.Uc=function(){var e;return e=this.b,e||(this.b=this.Sc())},o.Vc=function(){return this.Wc().Vc()},o.Wc=function(){return u(this.d,133)},w(Cn,"AbstractMapBasedMultimap/SortedAsMap",502),b(446,502,dtn,D6),o.bc=function(){return new s4(this.a,u(u(this.d,133),139))},o.Sc=function(){return new s4(this.a,u(u(this.d,133),139))},o.ec=function(){var e;return e=this.b,u(e||(this.b=new s4(this.a,u(u(this.d,133),139))),277)},o.Uc=function(){var e;return e=this.b,u(e||(this.b=new s4(this.a,u(u(this.d,133),139))),277)},o.Wc=function(){return u(u(this.d,133),139)},o.Xc=function(e){return u(u(this.d,133),139).Xc(e)},o.Yc=function(e){return u(u(this.d,133),139).Yc(e)},o.Zc=function(e,t){return new D6(this.a,u(u(this.d,133),139).Zc(e,t))},o.$c=function(e){return u(u(this.d,133),139).$c(e)},o._c=function(e){return u(u(this.d,133),139)._c(e)},o.ad=function(e,t){return new D6(this.a,u(u(this.d,133),139).ad(e,t))},w(Cn,"AbstractMapBasedMultimap/NavigableAsMap",446),b(501,327,Pzn,e7),o.Nc=function(){return this.b.ec().Nc()},w(Cn,"AbstractMapBasedMultimap/SortedKeySet",501),b(401,501,btn,s4),w(Cn,"AbstractMapBasedMultimap/NavigableKeySet",401),b(551,31,pw,VM),o.Fc=function(e){var t,i;return eo(this),i=this.d.dc(),t=this.d.Fc(e),t&&(++this.f.d,i&&O7(this)),t},o.Gc=function(e){var t,i,r;return e.dc()?!1:(r=(eo(this),this.d.gc()),t=this.d.Gc(e),t&&(i=this.d.gc(),this.f.d+=i-r,r==0&&O7(this)),t)},o.$b=function(){var e;e=(eo(this),this.d.gc()),e!=0&&(this.d.$b(),this.f.d-=e,sM(this))},o.Hc=function(e){return eo(this),this.d.Hc(e)},o.Ic=function(e){return eo(this),this.d.Ic(e)},o.Fb=function(e){return e===this?!0:(eo(this),rt(this.d,e))},o.Hb=function(){return eo(this),mt(this.d)},o.Kc=function(){return eo(this),new HV(this)},o.Mc=function(e){var t;return eo(this),t=this.d.Mc(e),t&&(--this.f.d,sM(this)),t},o.gc=function(){return FMn(this)},o.Nc=function(){return eo(this),this.d.Nc()},o.Ib=function(){return eo(this),Jr(this.d)},w(Cn,"AbstractMapBasedMultimap/WrappedCollection",551);var rs=Nt(le,"List");b(744,551,{20:1,31:1,16:1,15:1},mW),o.jd=function(e){ud(this,e)},o.Nc=function(){return eo(this),this.d.Nc()},o.bd=function(e,t){var i;eo(this),i=this.d.dc(),u(this.d,15).bd(e,t),++this.a.d,i&&O7(this)},o.cd=function(e,t){var i,r,c;return t.dc()?!1:(c=(eo(this),this.d.gc()),i=u(this.d,15).cd(e,t),i&&(r=this.d.gc(),this.a.d+=r-c,c==0&&O7(this)),i)},o.Xb=function(e){return eo(this),u(this.d,15).Xb(e)},o.dd=function(e){return eo(this),u(this.d,15).dd(e)},o.ed=function(){return eo(this),new dTn(this)},o.fd=function(e){return eo(this),new xIn(this,e)},o.gd=function(e){var t;return eo(this),t=u(this.d,15).gd(e),--this.a.d,sM(this),t},o.hd=function(e,t){return eo(this),u(this.d,15).hd(e,t)},o.kd=function(e,t){return eo(this),TDn(this.a,this.e,u(this.d,15).kd(e,t),this.b?this.b:this)},w(Cn,"AbstractMapBasedMultimap/WrappedList",744),b(1126,744,{20:1,31:1,16:1,15:1,59:1},tAn),w(Cn,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126),b(628,1,Si,HV),o.Nb=function(e){_i(this,e)},o.Ob=function(){return P4(this),this.b.Ob()},o.Pb=function(){return P4(this),this.b.Pb()},o.Qb=function(){KTn(this)},w(Cn,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628),b(745,628,Hh,dTn,xIn),o.Qb=function(){KTn(this)},o.Rb=function(e){var t;t=FMn(this.a)==0,(P4(this),u(this.b,128)).Rb(e),++this.a.a.d,t&&O7(this.a)},o.Sb=function(){return(P4(this),u(this.b,128)).Sb()},o.Tb=function(){return(P4(this),u(this.b,128)).Tb()},o.Ub=function(){return(P4(this),u(this.b,128)).Ub()},o.Vb=function(){return(P4(this),u(this.b,128)).Vb()},o.Wb=function(e){(P4(this),u(this.b,128)).Wb(e)},w(Cn,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745),b(743,551,Pzn,oV),o.Nc=function(){return eo(this),this.d.Nc()},w(Cn,"AbstractMapBasedMultimap/WrappedSortedSet",743),b(1125,743,btn,sTn),w(Cn,"AbstractMapBasedMultimap/WrappedNavigableSet",1125),b(1124,551,Lu,EAn),o.Nc=function(){return eo(this),this.d.Nc()},w(Cn,"AbstractMapBasedMultimap/WrappedSet",1124),b(1133,1,{},Xe),o.Kb=function(e){return s4e(u(e,44))},w(Cn,"AbstractMapBasedMultimap/lambda$1$Type",1133),b(1132,1,{},D8n),o.Kb=function(e){return new t0(this.a,e)},w(Cn,"AbstractMapBasedMultimap/lambda$2$Type",1132);var Pd=Nt(le,"Map/Entry");b(358,1,tB),o.Fb=function(e){var t;return D(e,44)?(t=u(e,44),sh(this.ld(),t.ld())&&sh(this.md(),t.md())):!1},o.Hb=function(){var e,t;return e=this.ld(),t=this.md(),(e==null?0:mt(e))^(t==null?0:mt(t))},o.nd=function(e){throw M(new Pe)},o.Ib=function(){return this.ld()+"="+this.md()},w(Cn,Izn,358),b(2086,31,pw),o.$b=function(){this.od().$b()},o.Hc=function(e){var t;return D(e,44)?(t=u(e,44),Ppe(this.od(),t.ld(),t.md())):!1},o.Mc=function(e){var t;return D(e,44)?(t=u(e,44),oDn(this.od(),t.ld(),t.md())):!1},o.gc=function(){return this.od().d},w(Cn,"Multimaps/Entries",2086),b(749,2086,pw,sG),o.Kc=function(){return this.a.kc()},o.od=function(){return this.a},o.Nc=function(){return this.a.lc()},w(Cn,"AbstractMultimap/Entries",749),b(750,749,Lu,uz),o.Nc=function(){return this.a.lc()},o.Fb=function(e){return ann(this,e)},o.Hb=function(){return mxn(this)},w(Cn,"AbstractMultimap/EntrySet",750),b(751,31,pw,fG),o.$b=function(){this.a.$b()},o.Hc=function(e){return A6e(this.a,e)},o.Kc=function(){return this.a.nc()},o.gc=function(){return this.a.d},o.Nc=function(){return this.a.oc()},w(Cn,"AbstractMultimap/Values",751),b(2087,31,{849:1,20:1,31:1,16:1}),o.Jc=function(e){Se(e),Ag(this).Jc(new Q8n(e))},o.Nc=function(){var e;return e=Ag(this).Nc(),nF(e,new Mf,64|e.yd()&1296,this.a.d)},o.Fc=function(e){return bz(),!0},o.Gc=function(e){return Se(this),Se(e),D(e,552)?Dpe(u(e,849)):!e.dc()&&b$(this,e.Kc())},o.Hc=function(e){var t;return t=u(tw(Dp(this.a),e),16),(t?t.gc():0)>0},o.Fb=function(e){return nMe(this,e)},o.Hb=function(){return mt(Ag(this))},o.dc=function(){return Ag(this).dc()},o.Mc=function(e){return G_n(this,e,1)>0},o.Ib=function(){return Jr(Ag(this))},w(Cn,"AbstractMultiset",2087),b(2089,2068,Lu),o.$b=function(){gT(this.a.a)},o.Hc=function(e){var t,i;return D(e,503)?(i=u(e,425),u(i.a.md(),16).gc()<=0?!1:(t=NOn(this.a,i.a.ld()),t==u(i.a.md(),16).gc())):!1},o.Mc=function(e){var t,i,r,c;return D(e,503)&&(i=u(e,425),t=i.a.ld(),r=u(i.a.md(),16).gc(),r!=0)?(c=this.a,UEe(c,t,r)):!1},w(Cn,"Multisets/EntrySet",2089),b(1139,2089,Lu,L8n),o.Kc=function(){return new Pjn(jPn(Dp(this.a.a)).Kc())},o.gc=function(){return Dp(this.a.a).gc()},w(Cn,"AbstractMultiset/EntrySet",1139),b(627,742,md),o.hc=function(){return this.pd()},o.jc=function(){return this.qd()},o.cc=function(e){return this.rd(e)},o.fc=function(e){return this.sd(e)},o.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},o.qd=function(){return Dn(),Dn(),hP},o.Fb=function(e){return G$(this,e)},o.rd=function(e){return u(ot(this,e),21)},o.sd=function(e){return u(Ik(this,e),21)},o.mc=function(e){return Dn(),new i4(u(e,21))},o.pc=function(e,t){return new EAn(this,e,u(t,21))},w(Cn,"AbstractSetMultimap",627),b(1723,627,md),o.hc=function(){return new Ul(this.b)},o.pd=function(){return new Ul(this.b)},o.jc=function(){return RW(new Ul(this.b))},o.qd=function(){return RW(new Ul(this.b))},o.cc=function(e){return u(u(ot(this,e),21),87)},o.rd=function(e){return u(u(ot(this,e),21),87)},o.fc=function(e){return u(u(Ik(this,e),21),87)},o.sd=function(e){return u(u(Ik(this,e),21),87)},o.mc=function(e){return D(e,277)?RW(u(e,277)):(Dn(),new zX(u(e,87)))},o.Zb=function(){var e;return e=this.f,e||(this.f=D(this.c,139)?new D6(this,u(this.c,139)):D(this.c,133)?new A7(this,u(this.c,133)):new f4(this,this.c))},o.pc=function(e,t){return D(t,277)?new sTn(this,e,u(t,277)):new oV(this,e,u(t,87))},w(Cn,"AbstractSortedSetMultimap",1723),b(1724,1723,md),o.Zb=function(){var e;return e=this.f,u(u(e||(this.f=D(this.c,139)?new D6(this,u(this.c,139)):D(this.c,133)?new A7(this,u(this.c,133)):new f4(this,this.c)),133),139)},o.ec=function(){var e;return e=this.i,u(u(e||(this.i=D(this.c,139)?new s4(this,u(this.c,139)):D(this.c,133)?new e7(this,u(this.c,133)):new Mg(this,this.c)),87),277)},o.bc=function(){return D(this.c,139)?new s4(this,u(this.c,139)):D(this.c,133)?new e7(this,u(this.c,133)):new Mg(this,this.c)},w(Cn,"AbstractSortedKeySortedSetMultimap",1724),b(2109,1,{2046:1}),o.Fb=function(e){return Mke(this,e)},o.Hb=function(){var e;return XQ((e=this.g,e||(this.g=new zO(this))))},o.Ib=function(){var e;return OKn((e=this.f,e||(this.f=new HX(this))))},w(Cn,"AbstractTable",2109),b(679,Kf,Lu,zO),o.$b=function(){_jn()},o.Hc=function(e){var t,i;return D(e,478)?(t=u(e,697),i=u(tw(zPn(this.a),_1(t.c.e,t.b)),85),!!i&&kY(i.vc(),new t0(_1(t.c.c,t.a),Rp(t.c,t.b,t.a)))):!1},o.Kc=function(){return Pge(this.a)},o.Mc=function(e){var t,i;return D(e,478)?(t=u(e,697),i=u(tw(zPn(this.a),_1(t.c.e,t.b)),85),!!i&&u5e(i.vc(),new t0(_1(t.c.c,t.a),Rp(t.c,t.b,t.a)))):!1},o.gc=function(){return WSn(this.a)},o.Nc=function(){return $pe(this.a)},w(Cn,"AbstractTable/CellSet",679),b(2025,31,pw,$8n),o.$b=function(){_jn()},o.Hc=function(e){return pye(this.a,e)},o.Kc=function(){return Ige(this.a)},o.gc=function(){return WSn(this.a)},o.Nc=function(){return uDn(this.a)},w(Cn,"AbstractTable/Values",2025),b(1697,1696,md),w(Cn,"ArrayListMultimapGwtSerializationDependencies",1697),b(520,1697,md,CD,oJ),o.hc=function(){return new Gc(this.a)},o.a=0,w(Cn,"ArrayListMultimap",520),b(678,2109,{678:1,2046:1,3:1},rHn),w(Cn,"ArrayTable",678),b(2021,399,$m,_Tn),o.Xb=function(e){return new YQ(this.a,e)},w(Cn,"ArrayTable/1",2021),b(2022,1,{},P8n),o.td=function(e){return new YQ(this.a,e)},w(Cn,"ArrayTable/1methodref$getCell$Type",2022),b(2110,1,{697:1}),o.Fb=function(e){var t;return e===this?!0:D(e,478)?(t=u(e,697),sh(_1(this.c.e,this.b),_1(t.c.e,t.b))&&sh(_1(this.c.c,this.a),_1(t.c.c,t.a))&&sh(Rp(this.c,this.b,this.a),Rp(t.c,t.b,t.a))):!1},o.Hb=function(){return Pk(A(T(ki,1),Fn,1,5,[_1(this.c.e,this.b),_1(this.c.c,this.a),Rp(this.c,this.b,this.a)]))},o.Ib=function(){return"("+_1(this.c.e,this.b)+","+_1(this.c.c,this.a)+")="+Rp(this.c,this.b,this.a)},w(Cn,"Tables/AbstractCell",2110),b(478,2110,{478:1,697:1},YQ),o.a=0,o.b=0,o.d=0,w(Cn,"ArrayTable/2",478),b(2024,1,{},I8n),o.td=function(e){return ONn(this.a,e)},w(Cn,"ArrayTable/2methodref$getValue$Type",2024),b(2023,399,$m,HTn),o.Xb=function(e){return ONn(this.a,e)},w(Cn,"ArrayTable/3",2023),b(2077,2065,G0),o.$b=function(){tM(this.kc())},o.vc=function(){return new U8n(this)},o.lc=function(){return new TIn(this.kc(),this.gc())},w(Cn,"Maps/IteratorBasedAbstractMap",2077),b(842,2077,G0),o.$b=function(){throw M(new Pe)},o._b=function(e){return uEn(this.c,e)},o.kc=function(){return new qTn(this,this.c.b.c.gc())},o.lc=function(){return XL(this.c.b.c.gc(),16,new O8n(this))},o.xc=function(e){var t;return t=u(L6(this.c,e),17),t?this.vd(t.a):null},o.dc=function(){return this.c.b.c.dc()},o.ec=function(){return eN(this.c)},o.zc=function(e,t){var i;if(i=u(L6(this.c,e),17),!i)throw M(new Gn(this.ud()+" "+e+" not in "+eN(this.c)));return this.wd(i.a,t)},o.Bc=function(e){throw M(new Pe)},o.gc=function(){return this.c.b.c.gc()},w(Cn,"ArrayTable/ArrayMap",842),b(2020,1,{},O8n),o.td=function(e){return VPn(this.a,e)},w(Cn,"ArrayTable/ArrayMap/0methodref$getEntry$Type",2020),b(2018,358,tB,DEn),o.ld=function(){return q1e(this.a,this.b)},o.md=function(){return this.a.vd(this.b)},o.nd=function(e){return this.a.wd(this.b,e)},o.b=0,w(Cn,"ArrayTable/ArrayMap/1",2018),b(2019,399,$m,qTn),o.Xb=function(e){return VPn(this.a,e)},w(Cn,"ArrayTable/ArrayMap/2",2019),b(2017,842,G0,$Pn),o.ud=function(){return"Column"},o.vd=function(e){return Rp(this.b,this.a,e)},o.wd=function(e,t){return rFn(this.b,this.a,e,t)},o.a=0,w(Cn,"ArrayTable/Row",2017),b(843,842,G0,HX),o.vd=function(e){return new $Pn(this.a,e)},o.zc=function(e,t){return u(t,85),hhe()},o.wd=function(e,t){return u(t,85),lhe()},o.ud=function(){return"Row"},w(Cn,"ArrayTable/RowMap",843),b(1157,1,Po,LEn),o.Ad=function(e){return(this.a.yd()&-262&e)!=0},o.yd=function(){return this.a.yd()&-262},o.zd=function(){return this.a.zd()},o.Nb=function(e){this.a.Nb(new $En(e,this.b))},o.Bd=function(e){return this.a.Bd(new NEn(e,this.b))},w(Cn,"CollectSpliterators/1",1157),b(1158,1,re,NEn),o.Cd=function(e){this.a.Cd(this.b.Kb(e))},w(Cn,"CollectSpliterators/1/lambda$0$Type",1158),b(1159,1,re,$En),o.Cd=function(e){this.a.Cd(this.b.Kb(e))},w(Cn,"CollectSpliterators/1/lambda$1$Type",1159),b(1154,1,Po,rSn),o.Ad=function(e){return((16464|this.b)&e)!=0},o.yd=function(){return 16464|this.b},o.zd=function(){return this.a.zd()},o.Nb=function(e){this.a.Qe(new FEn(e,this.c))},o.Bd=function(e){return this.a.Re(new xEn(e,this.c))},o.b=0,w(Cn,"CollectSpliterators/1WithCharacteristics",1154),b(1155,1,yy,xEn),o.Dd=function(e){this.a.Cd(this.b.td(e))},w(Cn,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1155),b(1156,1,yy,FEn),o.Dd=function(e){this.a.Cd(this.b.td(e))},w(Cn,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1156),b(1150,1,Po),o.Ad=function(e){return(this.a&e)!=0},o.yd=function(){return this.a},o.zd=function(){return this.e&&(this.b=IX(this.b,this.e.zd())),IX(this.b,0)},o.Nb=function(e){this.e&&(this.e.Nb(e),this.e=null),this.c.Nb(new BEn(this,e)),this.b=0},o.Bd=function(e){for(;;){if(this.e&&this.e.Bd(e))return j6(this.b,jy)&&(this.b=bs(this.b,1)),!0;if(this.e=null,!this.c.Bd(new x8n(this)))return!1}},o.a=0,o.b=0,w(Cn,"CollectSpliterators/FlatMapSpliterator",1150),b(1152,1,re,x8n),o.Cd=function(e){_ae(this.a,e)},w(Cn,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1152),b(1153,1,re,BEn),o.Cd=function(e){age(this.a,this.b,e)},w(Cn,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1153),b(1151,1150,Po,CDn),w(Cn,"CollectSpliterators/FlatMapSpliteratorOfObject",1151),b(253,1,iB),o.Fd=function(e){return this.Ed(u(e,253))},o.Ed=function(e){var t;return e==(bD(),HK)?1:e==(dD(),_K)?-1:(t=(QC(),pk(this.a,e.a)),t!=0?t:D(this,526)==D(e,526)?0:D(this,526)?1:-1)},o.Id=function(){return this.a},o.Fb=function(e){return mZ(this,e)},w(Cn,"Cut",253),b(1823,253,iB,jjn),o.Ed=function(e){return e==this?0:1},o.Gd=function(e){throw M(new _G)},o.Hd=function(e){e.a+="+∞)"},o.Id=function(){throw M(new Or(Dzn))},o.Hb=function(){return fl(),iZ(this)},o.Jd=function(e){return!1},o.Ib=function(){return"+∞"};var _K;w(Cn,"Cut/AboveAll",1823),b(526,253,{253:1,526:1,3:1,34:1},WTn),o.Gd=function(e){Dc((e.a+="(",e),this.a)},o.Hd=function(e){z1(Dc(e,this.a),93)},o.Hb=function(){return~mt(this.a)},o.Jd=function(e){return QC(),pk(this.a,e)<0},o.Ib=function(){return"/"+this.a+"\\"},w(Cn,"Cut/AboveValue",526),b(1822,253,iB,yjn),o.Ed=function(e){return e==this?0:-1},o.Gd=function(e){e.a+="(-∞"},o.Hd=function(e){throw M(new _G)},o.Id=function(){throw M(new Or(Dzn))},o.Hb=function(){return fl(),iZ(this)},o.Jd=function(e){return!0},o.Ib=function(){return"-∞"};var HK;w(Cn,"Cut/BelowAll",1822),b(1824,253,iB,JTn),o.Gd=function(e){Dc((e.a+="[",e),this.a)},o.Hd=function(e){z1(Dc(e,this.a),41)},o.Hb=function(){return mt(this.a)},o.Jd=function(e){return QC(),pk(this.a,e)<=0},o.Ib=function(){return"\\"+this.a+"/"},w(Cn,"Cut/BelowValue",1824),b(547,1,qh),o.Jc=function(e){qi(this,e)},o.Ib=function(){return A5e(u(MM(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},w(Cn,"FluentIterable",547),b(442,547,qh,M6),o.Kc=function(){return new ie(ce(this.a.Kc(),new En))},w(Cn,"FluentIterable/2",442),b(1059,547,qh,rTn),o.Kc=function(){return $h(this)},w(Cn,"FluentIterable/3",1059),b(724,399,$m,qX),o.Xb=function(e){return this.a[e].Kc()},w(Cn,"FluentIterable/3/1",724),b(2070,1,{}),o.Ib=function(){return Jr(this.Kd().b)},w(Cn,"ForwardingObject",2070),b(2071,2070,Lzn),o.Kd=function(){return this.Ld()},o.Jc=function(e){qi(this,e)},o.Lc=function(){return this.Oc()},o.Nc=function(){return new In(this,0)},o.Oc=function(){return new Tn(null,this.Nc())},o.Fc=function(e){return this.Ld(),sEn()},o.Gc=function(e){return this.Ld(),fEn()},o.$b=function(){this.Ld(),hEn()},o.Hc=function(e){return this.Ld().Hc(e)},o.Ic=function(e){return this.Ld().Ic(e)},o.dc=function(){return this.Ld().b.dc()},o.Kc=function(){return this.Ld().Kc()},o.Mc=function(e){return this.Ld(),lEn()},o.gc=function(){return this.Ld().b.gc()},o.Pc=function(){return this.Ld().Pc()},o.Qc=function(e){return this.Ld().Qc(e)},w(Cn,"ForwardingCollection",2071),b(2078,31,wtn),o.Kc=function(){return this.Od()},o.Fc=function(e){throw M(new Pe)},o.Gc=function(e){throw M(new Pe)},o.Md=function(){var e;return e=this.c,e||(this.c=this.Nd())},o.$b=function(){throw M(new Pe)},o.Hc=function(e){return e!=null&&iw(this,e,!1)},o.Nd=function(){switch(this.gc()){case 0:return g0(),g0(),qK;case 1:return g0(),new VL(Se(this.Od().Pb()));default:return new jW(this,this.Pc())}},o.Mc=function(e){throw M(new Pe)},w(Cn,"ImmutableCollection",2078),b(727,2078,wtn,RG),o.Kc=function(){return Kp(this.a.Kc())},o.Hc=function(e){return e!=null&&this.a.Hc(e)},o.Ic=function(e){return this.a.Ic(e)},o.dc=function(){return this.a.dc()},o.Od=function(){return Kp(this.a.Kc())},o.gc=function(){return this.a.gc()},o.Pc=function(){return this.a.Pc()},o.Qc=function(e){return this.a.Qc(e)},o.Ib=function(){return Jr(this.a)},w(Cn,"ForwardingImmutableCollection",727),b(306,2078,xm),o.Kc=function(){return this.Od()},o.ed=function(){return this.Pd(0)},o.fd=function(e){return this.Pd(e)},o.jd=function(e){ud(this,e)},o.Nc=function(){return new In(this,16)},o.kd=function(e,t){return this.Qd(e,t)},o.bd=function(e,t){throw M(new Pe)},o.cd=function(e,t){throw M(new Pe)},o.Md=function(){return this},o.Fb=function(e){return HCe(this,e)},o.Hb=function(){return xve(this)},o.dd=function(e){return e==null?-1:c7e(this,e)},o.Od=function(){return this.Pd(0)},o.Pd=function(e){return TL(this,e)},o.gd=function(e){throw M(new Pe)},o.hd=function(e,t){throw M(new Pe)},o.Qd=function(e,t){var i;return FT((i=new VEn(this),new Jl(i,e,t)))};var qK;w(Cn,"ImmutableList",306),b(2105,306,xm),o.Kc=function(){return Kp(this.Rd().Kc())},o.kd=function(e,t){return FT(this.Rd().kd(e,t))},o.Hc=function(e){return e!=null&&this.Rd().Hc(e)},o.Ic=function(e){return this.Rd().Ic(e)},o.Fb=function(e){return rt(this.Rd(),e)},o.Xb=function(e){return _1(this,e)},o.Hb=function(){return mt(this.Rd())},o.dd=function(e){return this.Rd().dd(e)},o.dc=function(){return this.Rd().dc()},o.Od=function(){return Kp(this.Rd().Kc())},o.gc=function(){return this.Rd().gc()},o.Qd=function(e,t){return FT(this.Rd().kd(e,t))},o.Pc=function(){return this.Rd().Qc(K(ki,Fn,1,this.Rd().gc(),5,1))},o.Qc=function(e){return this.Rd().Qc(e)},o.Ib=function(){return Jr(this.Rd())},w(Cn,"ForwardingImmutableList",2105),b(729,1,Fm),o.vc=function(){return Ja(this)},o.wc=function(e){o5(this,e)},o.ec=function(){return eN(this)},o.yc=function(e,t,i){return hx(this,e,t,i)},o.Cc=function(){return this.Vd()},o.$b=function(){throw M(new Pe)},o._b=function(e){return this.xc(e)!=null},o.uc=function(e){return this.Vd().Hc(e)},o.Td=function(){return new Iyn(this)},o.Ud=function(){return new Oyn(this)},o.Fb=function(e){return S6e(this,e)},o.Hb=function(){return Ja(this).Hb()},o.dc=function(){return this.gc()==0},o.zc=function(e,t){return fhe()},o.Bc=function(e){throw M(new Pe)},o.Ib=function(){return wje(this)},o.Vd=function(){return this.e?this.e:this.e=this.Ud()},o.c=null,o.d=null,o.e=null;var rQn;w(Cn,"ImmutableMap",729),b(730,729,Fm),o._b=function(e){return uEn(this,e)},o.uc=function(e){return nCn(this.b,e)},o.Sd=function(){return nBn(new N8n(this))},o.Td=function(){return nBn(gIn(this.b))},o.Ud=function(){return oh(),new RG(wIn(this.b))},o.Fb=function(e){return eCn(this.b,e)},o.xc=function(e){return L6(this,e)},o.Hb=function(){return mt(this.b.c)},o.dc=function(){return this.b.c.dc()},o.gc=function(){return this.b.c.gc()},o.Ib=function(){return Jr(this.b.c)},w(Cn,"ForwardingImmutableMap",730),b(2072,2071,rB),o.Kd=function(){return this.Wd()},o.Ld=function(){return this.Wd()},o.Nc=function(){return new In(this,1)},o.Fb=function(e){return e===this||this.Wd().Fb(e)},o.Hb=function(){return this.Wd().Hb()},w(Cn,"ForwardingSet",2072),b(1085,2072,rB,N8n),o.Kd=function(){return A4(this.a.b)},o.Ld=function(){return A4(this.a.b)},o.Hc=function(e){if(D(e,44)&&u(e,44).ld()==null)return!1;try{return ZEn(A4(this.a.b),e)}catch(t){if(t=It(t),D(t,212))return!1;throw M(t)}},o.Wd=function(){return A4(this.a.b)},o.Qc=function(e){var t;return t=nOn(A4(this.a.b),e),A4(this.a.b).b.gc()=0?"+":"")+(i/60|0),t=IC(y.Math.abs(i)%60),(qKn(),EQn)[this.q.getDay()]+" "+CQn[this.q.getMonth()]+" "+IC(this.q.getDate())+" "+IC(this.q.getHours())+":"+IC(this.q.getMinutes())+":"+IC(this.q.getSeconds())+" GMT"+e+t+" "+this.q.getFullYear()};var oP=w(le,"Date",206);b(2015,206,Hzn,aKn),o.a=!1,o.b=0,o.c=0,o.d=0,o.e=0,o.f=0,o.g=!1,o.i=0,o.j=0,o.k=0,o.n=0,o.o=0,o.p=0,w("com.google.gwt.i18n.shared.impl","DateRecord",2015),b(2064,1,{}),o.pe=function(){return null},o.qe=function(){return null},o.re=function(){return null},o.se=function(){return null},o.te=function(){return null},w(u3,"JSONValue",2064),b(221,2064,{221:1},_a,lG),o.Fb=function(e){return D(e,221)?fJ(this.a,u(e,221).a):!1},o.oe=function(){return Nfe},o.Hb=function(){return YW(this.a)},o.pe=function(){return this},o.Ib=function(){var e,t,i;for(i=new mo("["),t=0,e=this.a.length;t0&&(i.a+=","),Dc(i,Jb(this,t));return i.a+="]",i.a},w(u3,"JSONArray",221),b(492,2064,{492:1},aG),o.oe=function(){return $fe},o.qe=function(){return this},o.Ib=function(){return _n(),""+this.a},o.a=!1;var lQn,aQn;w(u3,"JSONBoolean",492),b(997,63,Pl,Ijn),w(u3,"JSONException",997),b(1036,2064,{},C0n),o.oe=function(){return xfe},o.Ib=function(){return gu};var dQn;w(u3,"JSONNull",1036),b(263,2064,{263:1},TE),o.Fb=function(e){return D(e,263)?this.a==u(e,263).a:!1},o.oe=function(){return Dfe},o.Hb=function(){return pp(this.a)},o.re=function(){return this},o.Ib=function(){return this.a+""},o.a=0,w(u3,"JSONNumber",263),b(190,2064,{190:1},sp,q9),o.Fb=function(e){return D(e,190)?fJ(this.a,u(e,190).a):!1},o.oe=function(){return Lfe},o.Hb=function(){return YW(this.a)},o.se=function(){return this},o.Ib=function(){var e,t,i,r,c,s,f;for(f=new mo("{"),e=!0,s=S$(this,K(fn,J,2,0,6,1)),i=s,r=0,c=i.length;r=0?":"+this.c:"")+")"},o.c=0;var kun=w(ac,"StackTraceElement",319);iQn={3:1,483:1,34:1,2:1};var fn=w(ac,gtn,2);b(111,427,{483:1},Hl,e6,ls),w(ac,"StringBuffer",111),b(104,427,{483:1},x1,fg,mo),w(ac,"StringBuilder",104),b(702,77,AB,wz),w(ac,"StringIndexOutOfBoundsException",702),b(2145,1,{});var pQn;b(48,63,{3:1,103:1,63:1,82:1,48:1},Pe,Kl),w(ac,"UnsupportedOperationException",48),b(247,242,{3:1,34:1,242:1,247:1},Lk,Tz),o.Fd=function(e){return FUn(this,u(e,247))},o.ue=function(){return sw(lGn(this))},o.Fb=function(e){var t;return this===e?!0:D(e,247)?(t=u(e,247),this.e==t.e&&FUn(this,t)==0):!1},o.Hb=function(){var e;return this.b!=0?this.b:this.a<54?(e=vc(this.f),this.b=Ae(vi(e,-1)),this.b=33*this.b+Ae(vi(d0(e,32),-1)),this.b=17*this.b+wi(this.e),this.b):(this.b=17*WFn(this.c)+wi(this.e),this.b)},o.Ib=function(){return lGn(this)},o.a=0,o.b=0,o.d=0,o.e=0,o.f=0;var mQn,Id,yun,jun,Eun,Cun,Mun,Tun,QK=w("java.math","BigDecimal",247);b(92,242,{3:1,34:1,242:1,92:1},gl,_On,Ya,JBn,H1),o.Fd=function(e){return zBn(this,u(e,92))},o.ue=function(){return sw(ZF(this,0))},o.Fb=function(e){return KY(this,e)},o.Hb=function(){return WFn(this)},o.Ib=function(){return ZF(this,0)},o.b=-2,o.c=0,o.d=0,o.e=0;var vQn,sP,kQn,YK,fP,T8,l2=w("java.math","BigInteger",92),yQn,jQn,m3,A8;b(497,2065,G0),o.$b=function(){Hu(this)},o._b=function(e){return Zc(this,e)},o.uc=function(e){return IFn(this,e,this.i)||IFn(this,e,this.f)},o.vc=function(){return new Ua(this)},o.xc=function(e){return ee(this,e)},o.zc=function(e,t){return Ve(this,e,t)},o.Bc=function(e){return Bp(this,e)},o.gc=function(){return i6(this)},o.g=0,w(le,"AbstractHashMap",497),b(267,Kf,Lu,Ua),o.$b=function(){this.a.$b()},o.Hc=function(e){return pDn(this,e)},o.Kc=function(){return new sd(this.a)},o.Mc=function(e){var t;return pDn(this,e)?(t=u(e,44).ld(),this.a.Bc(t),!0):!1},o.gc=function(){return this.a.gc()},w(le,"AbstractHashMap/EntrySet",267),b(268,1,Si,sd),o.Nb=function(e){_i(this,e)},o.Pb=function(){return O0(this)},o.Ob=function(){return this.b},o.Qb=function(){zNn(this)},o.b=!1,o.d=0,w(le,"AbstractHashMap/EntrySetIterator",268),b(426,1,Si,Gv),o.Nb=function(e){_i(this,e)},o.Ob=function(){return DD(this)},o.Pb=function(){return XW(this)},o.Qb=function(){bo(this)},o.b=0,o.c=-1,w(le,"AbstractList/IteratorImpl",426),b(98,426,Hh,xi),o.Qb=function(){bo(this)},o.Rb=function(e){Rb(this,e)},o.Sb=function(){return this.b>0},o.Tb=function(){return this.b},o.Ub=function(){return oe(this.b>0),this.a.Xb(this.c=--this.b)},o.Vb=function(){return this.b-1},o.Wb=function(e){Fb(this.c!=-1),this.a.hd(this.c,e)},w(le,"AbstractList/ListIteratorImpl",98),b(244,56,Bm,Jl),o.bd=function(e,t){zb(e,this.b),this.c.bd(this.a+e,t),++this.b},o.Xb=function(e){return Ln(e,this.b),this.c.Xb(this.a+e)},o.gd=function(e){var t;return Ln(e,this.b),t=this.c.gd(this.a+e),--this.b,t},o.hd=function(e,t){return Ln(e,this.b),this.c.hd(this.a+e,t)},o.gc=function(){return this.b},o.a=0,o.b=0,w(le,"AbstractList/SubList",244),b(266,Kf,Lu,qa),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a._b(e)},o.Kc=function(){var e;return e=this.a.vc().Kc(),new SE(e)},o.Mc=function(e){return this.a._b(e)?(this.a.Bc(e),!0):!1},o.gc=function(){return this.a.gc()},w(le,"AbstractMap/1",266),b(541,1,Si,SE),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a.Ob()},o.Pb=function(){var e;return e=u(this.a.Pb(),44),e.ld()},o.Qb=function(){this.a.Qb()},w(le,"AbstractMap/1/1",541),b(231,31,pw,ol),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a.uc(e)},o.Kc=function(){var e;return e=this.a.vc().Kc(),new Tb(e)},o.gc=function(){return this.a.gc()},w(le,"AbstractMap/2",231),b(300,1,Si,Tb),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a.Ob()},o.Pb=function(){var e;return e=u(this.a.Pb(),44),e.md()},o.Qb=function(){this.a.Qb()},w(le,"AbstractMap/2/1",300),b(493,1,{493:1,44:1}),o.Fb=function(e){var t;return D(e,44)?(t=u(e,44),mc(this.d,t.ld())&&mc(this.e,t.md())):!1},o.ld=function(){return this.d},o.md=function(){return this.e},o.Hb=function(){return yg(this.d)^yg(this.e)},o.nd=function(e){return bV(this,e)},o.Ib=function(){return this.d+"="+this.e},w(le,"AbstractMap/AbstractEntry",493),b(397,493,{493:1,397:1,44:1},uC),w(le,"AbstractMap/SimpleEntry",397),b(2082,1,IB),o.Fb=function(e){var t;return D(e,44)?(t=u(e,44),mc(this.ld(),t.ld())&&mc(this.md(),t.md())):!1},o.Hb=function(){return yg(this.ld())^yg(this.md())},o.Ib=function(){return this.ld()+"="+this.md()},w(le,Izn,2082),b(2090,2065,dtn),o.Xc=function(e){return MD(this.Ee(e))},o.tc=function(e){return ELn(this,e)},o._b=function(e){return wV(this,e)},o.vc=function(){return new ZO(this)},o.Tc=function(){return FPn(this.Ge())},o.Yc=function(e){return MD(this.He(e))},o.xc=function(e){var t;return t=e,Kr(this.Fe(t))},o.$c=function(e){return MD(this.Ie(e))},o.ec=function(){return new u9n(this)},o.Vc=function(){return FPn(this.Je())},o._c=function(e){return MD(this.Ke(e))},w(le,"AbstractNavigableMap",2090),b(629,Kf,Lu,ZO),o.Hc=function(e){return D(e,44)&&ELn(this.b,u(e,44))},o.Kc=function(){return this.b.De()},o.Mc=function(e){var t;return D(e,44)?(t=u(e,44),this.b.Le(t)):!1},o.gc=function(){return this.b.gc()},w(le,"AbstractNavigableMap/EntrySet",629),b(1146,Kf,btn,u9n),o.Nc=function(){return new rC(this)},o.$b=function(){this.a.$b()},o.Hc=function(e){return wV(this.a,e)},o.Kc=function(){var e;return e=this.a.vc().b.De(),new o9n(e)},o.Mc=function(e){return wV(this.a,e)?(this.a.Bc(e),!0):!1},o.gc=function(){return this.a.gc()},w(le,"AbstractNavigableMap/NavigableKeySet",1146),b(1147,1,Si,o9n),o.Nb=function(e){_i(this,e)},o.Ob=function(){return DD(this.a.a)},o.Pb=function(){var e;return e=uAn(this.a),e.ld()},o.Qb=function(){aSn(this.a)},w(le,"AbstractNavigableMap/NavigableKeySet/1",1147),b(2103,31,pw),o.Fc=function(e){return Mp(km(this,e),Km),!0},o.Gc=function(e){return Jn(e),x7(e!=this,"Can't add a queue to itself"),Bi(this,e)},o.$b=function(){for(;w$(this)!=null;);},w(le,"AbstractQueue",2103),b(310,31,{4:1,20:1,31:1,16:1},Cg,aDn),o.Fc=function(e){return vJ(this,e),!0},o.$b=function(){MJ(this)},o.Hc=function(e){return Yxn(new z6(this),e)},o.dc=function(){return n6(this)},o.Kc=function(){return new z6(this)},o.Mc=function(e){return p2e(new z6(this),e)},o.gc=function(){return this.c-this.b&this.a.length-1},o.Nc=function(){return new In(this,272)},o.Qc=function(e){var t;return t=this.c-this.b&this.a.length-1,e.lengtht&&$t(e,t,null),e},o.b=0,o.c=0,w(le,"ArrayDeque",310),b(458,1,Si,z6),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a!=this.b},o.Pb=function(){return xT(this)},o.Qb=function(){V$n(this)},o.a=0,o.b=0,o.c=-1,w(le,"ArrayDeque/IteratorImpl",458),b(13,56,Gzn,Z,Gc,_u),o.bd=function(e,t){a0(this,e,t)},o.Fc=function(e){return nn(this,e)},o.cd=function(e,t){return aY(this,e,t)},o.Gc=function(e){return hi(this,e)},o.$b=function(){Ab(this.c,0)},o.Hc=function(e){return qr(this,e,0)!=-1},o.Jc=function(e){nu(this,e)},o.Xb=function(e){return sn(this,e)},o.dd=function(e){return qr(this,e,0)},o.dc=function(){return this.c.length==0},o.Kc=function(){return new C(this)},o.gd=function(e){return Yl(this,e)},o.Mc=function(e){return du(this,e)},o.ce=function(e,t){$On(this,e,t)},o.hd=function(e,t){return Go(this,e,t)},o.gc=function(){return this.c.length},o.jd=function(e){Yt(this,e)},o.Pc=function(){return YC(this.c)},o.Qc=function(e){return Ff(this,e)};var uNe=w(le,"ArrayList",13);b(7,1,Si,C),o.Nb=function(e){_i(this,e)},o.Ob=function(){return tc(this)},o.Pb=function(){return E(this)},o.Qb=function(){_6(this)},o.a=0,o.b=-1,w(le,"ArrayList/1",7),b(2112,y.Function,{},pE),o.Me=function(e,t){return bt(e,t)},b(151,56,zzn,Ku),o.Hc=function(e){return W$n(this,e)!=-1},o.Jc=function(e){var t,i,r,c;for(Jn(e),i=this.a,r=0,c=i.length;r0)throw M(new Gn(Ctn+e+" greater than "+this.e));return this.f.Te()?rOn(this.c,this.b,this.a,e,t):xOn(this.c,e,t)},o.zc=function(e,t){if(!qx(this.c,this.f,e,this.b,this.a,this.e,this.d))throw M(new Gn(e+" outside the range "+this.b+" to "+this.e));return wFn(this.c,e,t)},o.Bc=function(e){var t;return t=e,qx(this.c,this.f,t,this.b,this.a,this.e,this.d)?cOn(this.c,t):null},o.Le=function(e){return mM(this,e.ld())&&UJ(this.c,e)},o.gc=function(){var e,t,i;if(this.f.Te()?this.a?t=dm(this.c,this.b,!0):t=dm(this.c,this.b,!1):t=nQ(this.c),!(t&&mM(this,t.d)&&t))return 0;for(e=0,i=new P$(this.c,this.f,this.b,this.a,this.e,this.d);DD(i.a);i.b=u(XW(i.a),44))++e;return e},o.ad=function(e,t){if(this.f.Te()&&this.c.a.Ne(e,this.b)<0)throw M(new Gn(Ctn+e+Wzn+this.b));return this.f.Ue()?rOn(this.c,e,t,this.e,this.d):FOn(this.c,e,t)},o.a=!1,o.d=!1,w(le,"TreeMap/SubMap",631),b(303,22,NB,cC),o.Te=function(){return!1},o.Ue=function(){return!1};var e_,t_,i_,r_,lP=we(le,"TreeMap/SubMapType",303,ke,Upe,nde);b(1143,303,NB,hTn),o.Ue=function(){return!0},we(le,"TreeMap/SubMapType/1",1143,lP,null,null),b(1144,303,NB,vTn),o.Te=function(){return!0},o.Ue=function(){return!0},we(le,"TreeMap/SubMapType/2",1144,lP,null,null),b(1145,303,NB,fTn),o.Te=function(){return!0},we(le,"TreeMap/SubMapType/3",1145,lP,null,null);var IQn;b(157,Kf,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},UG,Ul,Q3),o.Nc=function(){return new rC(this)},o.Fc=function(e){return R7(this,e)},o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a._b(e)},o.Kc=function(){return this.a.ec().Kc()},o.Mc=function(e){return EL(this,e)},o.gc=function(){return this.a.gc()};var aNe=w(le,"TreeSet",157);b(1082,1,{},l9n),o.Ve=function(e,t){return pae(this.a,e,t)},w($B,"BinaryOperator/lambda$0$Type",1082),b(1083,1,{},a9n),o.Ve=function(e,t){return mae(this.a,e,t)},w($B,"BinaryOperator/lambda$1$Type",1083),b(952,1,{},F0n),o.Kb=function(e){return e},w($B,"Function/lambda$0$Type",952),b(395,1,De,Y3),o.Mb=function(e){return!this.a.Mb(e)},w($B,"Predicate/lambda$2$Type",395),b(581,1,{581:1});var OQn=w(J5,"Handler",581);b(2107,1,vy),o.xe=function(){return"DUMMY"},o.Ib=function(){return this.xe()};var Lun;w(J5,"Level",2107),b(1706,2107,vy,B0n),o.xe=function(){return"INFO"},w(J5,"Level/LevelInfo",1706),b(1843,1,{},Byn);var c_;w(J5,"LogManager",1843),b(1896,1,vy,lSn),o.b=null,w(J5,"LogRecord",1896),b(525,1,{525:1},VN),o.e=!1;var DQn=!1,LQn=!1,Uf=!1,NQn=!1,$Qn=!1;w(J5,"Logger",525),b(835,581,{581:1},FU),w(J5,"SimpleConsoleLogHandler",835),b(108,22,{3:1,34:1,22:1,108:1},$D);var Nun,Yr,Aw,xr=we(ai,"Collector/Characteristics",108,ke,O2e,ede),xQn;b(758,1,{},TW),w(ai,"CollectorImpl",758),b(1074,1,{},R0n),o.Ve=function(e,t){return l5e(u(e,213),u(t,213))},w(ai,"Collectors/10methodref$merge$Type",1074),b(1075,1,{},K0n),o.Kb=function(e){return dDn(u(e,213))},w(ai,"Collectors/11methodref$toString$Type",1075),b(1076,1,{},d9n),o.Kb=function(e){return _n(),!!kX(e)},w(ai,"Collectors/12methodref$test$Type",1076),b(144,1,{},yu),o.Yd=function(e,t){u(e,16).Fc(t)},w(ai,"Collectors/20methodref$add$Type",144),b(146,1,{},ju),o.Xe=function(){return new Z},w(ai,"Collectors/21methodref$ctor$Type",146),b(359,1,{},Y2),o.Xe=function(){return new ni},w(ai,"Collectors/23methodref$ctor$Type",359),b(360,1,{},Z2),o.Yd=function(e,t){fi(u(e,49),t)},w(ai,"Collectors/24methodref$add$Type",360),b(1069,1,{},_0n),o.Ve=function(e,t){return rCn(u(e,15),u(t,16))},w(ai,"Collectors/4methodref$addAll$Type",1069),b(1073,1,{},H0n),o.Yd=function(e,t){pl(u(e,213),u(t,483))},w(ai,"Collectors/9methodref$add$Type",1073),b(1072,1,{},SSn),o.Xe=function(){return new fd(this.a,this.b,this.c)},w(ai,"Collectors/lambda$15$Type",1072),b(1077,1,{},q0n),o.Xe=function(){var e;return e=new Ql,s1(e,(_n(),!1),new Z),s1(e,!0,new Z),e},w(ai,"Collectors/lambda$22$Type",1077),b(1078,1,{},b9n),o.Xe=function(){return A(T(ki,1),Fn,1,5,[this.a])},w(ai,"Collectors/lambda$25$Type",1078),b(1079,1,{},w9n),o.Yd=function(e,t){Fbe(this.a,cd(e))},w(ai,"Collectors/lambda$26$Type",1079),b(1080,1,{},g9n),o.Ve=function(e,t){return lwe(this.a,cd(e),cd(t))},w(ai,"Collectors/lambda$27$Type",1080),b(1081,1,{},U0n),o.Kb=function(e){return cd(e)[0]},w(ai,"Collectors/lambda$28$Type",1081),b(728,1,{},BU),o.Ve=function(e,t){return uW(e,t)},w(ai,"Collectors/lambda$4$Type",728),b(145,1,{},Eu),o.Ve=function(e,t){return zhe(u(e,16),u(t,16))},w(ai,"Collectors/lambda$42$Type",145),b(361,1,{},np),o.Ve=function(e,t){return Xhe(u(e,49),u(t,49))},w(ai,"Collectors/lambda$50$Type",361),b(362,1,{},ep),o.Kb=function(e){return u(e,49)},w(ai,"Collectors/lambda$51$Type",362),b(1068,1,{},p9n),o.Yd=function(e,t){p6e(this.a,u(e,85),t)},w(ai,"Collectors/lambda$7$Type",1068),b(1070,1,{},G0n),o.Ve=function(e,t){return Xve(u(e,85),u(t,85),new _0n)},w(ai,"Collectors/lambda$8$Type",1070),b(1071,1,{},m9n),o.Kb=function(e){return U5e(this.a,u(e,85))},w(ai,"Collectors/lambda$9$Type",1071),b(550,1,{}),o.$e=function(){G6(this)},o.d=!1,w(ai,"TerminatableStream",550),b(827,550,Mtn,cV),o.$e=function(){G6(this)},w(ai,"DoubleStreamImpl",827),b(1847,736,Po,PSn),o.Re=function(e){return X9e(this,u(e,189))},o.a=null,w(ai,"DoubleStreamImpl/2",1847),b(1848,1,Sy,v9n),o.Pe=function(e){Kle(this.a,e)},w(ai,"DoubleStreamImpl/2/lambda$0$Type",1848),b(1845,1,Sy,k9n),o.Pe=function(e){Rle(this.a,e)},w(ai,"DoubleStreamImpl/lambda$0$Type",1845),b(1846,1,Sy,y9n),o.Pe=function(e){PBn(this.a,e)},w(ai,"DoubleStreamImpl/lambda$2$Type",1846),b(1397,735,Po,mLn),o.Re=function(e){return Lpe(this,u(e,202))},o.a=0,o.b=0,o.c=0,w(ai,"IntStream/5",1397),b(806,550,Mtn,uV),o.$e=function(){G6(this)},o._e=function(){return X1(this),this.a},w(ai,"IntStreamImpl",806),b(807,550,Mtn,Oz),o.$e=function(){G6(this)},o._e=function(){return X1(this),_X(),PQn},w(ai,"IntStreamImpl/Empty",807),b(1687,1,yy,j9n),o.Dd=function(e){Rxn(this.a,e)},w(ai,"IntStreamImpl/lambda$4$Type",1687);var dNe=Nt(ai,"Stream");b(26,550,{533:1,687:1,848:1},Tn),o.$e=function(){G6(this)};var v3;w(ai,"StreamImpl",26),b(1102,499,Po,iSn),o.Bd=function(e){for(;x4e(this);){if(this.a.Bd(e))return!0;G6(this.b),this.b=null,this.a=null}return!1},w(ai,"StreamImpl/1",1102),b(1103,1,re,E9n),o.Cd=function(e){fbe(this.a,u(e,848))},w(ai,"StreamImpl/1/lambda$0$Type",1103),b(1104,1,De,C9n),o.Mb=function(e){return fi(this.a,e)},w(ai,"StreamImpl/1methodref$add$Type",1104),b(1105,499,Po,FIn),o.Bd=function(e){var t;return this.a||(t=new Z,this.b.a.Nb(new M9n(t)),Dn(),Yt(t,this.c),this.a=new In(t,16)),k$n(this.a,e)},o.a=null,w(ai,"StreamImpl/5",1105),b(1106,1,re,M9n),o.Cd=function(e){nn(this.a,e)},w(ai,"StreamImpl/5/2methodref$add$Type",1106),b(737,499,Po,eQ),o.Bd=function(e){for(this.b=!1;!this.b&&this.c.Bd(new yCn(this,e)););return this.b},o.b=!1,w(ai,"StreamImpl/FilterSpliterator",737),b(1096,1,re,yCn),o.Cd=function(e){cwe(this.a,this.b,e)},w(ai,"StreamImpl/FilterSpliterator/lambda$0$Type",1096),b(1091,736,Po,PLn),o.Re=function(e){return Rae(this,u(e,189))},w(ai,"StreamImpl/MapToDoubleSpliterator",1091),b(1095,1,re,jCn),o.Cd=function(e){fle(this.a,this.b,e)},w(ai,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095),b(1090,735,Po,ILn),o.Re=function(e){return Kae(this,u(e,202))},w(ai,"StreamImpl/MapToIntSpliterator",1090),b(1094,1,re,ECn),o.Cd=function(e){hle(this.a,this.b,e)},w(ai,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094),b(734,499,Po,KJ),o.Bd=function(e){return nSn(this,e)},w(ai,"StreamImpl/MapToObjSpliterator",734),b(1093,1,re,CCn),o.Cd=function(e){lle(this.a,this.b,e)},w(ai,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093),b(1092,499,Po,cxn),o.Bd=function(e){for(;LD(this.b,0);){if(!this.a.Bd(new z0n))return!1;this.b=bs(this.b,1)}return this.a.Bd(e)},o.b=0,w(ai,"StreamImpl/SkipSpliterator",1092),b(1097,1,re,z0n),o.Cd=function(e){},w(ai,"StreamImpl/SkipSpliterator/lambda$0$Type",1097),b(626,1,re,LO),o.Cd=function(e){e9n(this,e)},w(ai,"StreamImpl/ValueConsumer",626),b(1098,1,re,X0n),o.Cd=function(e){Va()},w(ai,"StreamImpl/lambda$0$Type",1098),b(1099,1,re,V0n),o.Cd=function(e){Va()},w(ai,"StreamImpl/lambda$1$Type",1099),b(1100,1,{},T9n),o.Ve=function(e,t){return mde(this.a,e,t)},w(ai,"StreamImpl/lambda$4$Type",1100),b(1101,1,re,MCn),o.Cd=function(e){Cae(this.b,this.a,e)},w(ai,"StreamImpl/lambda$5$Type",1101),b(1107,1,re,A9n),o.Cd=function(e){$ve(this.a,u(e,380))},w(ai,"TerminatableStream/lambda$0$Type",1107),b(2142,1,{}),b(2014,1,{},W0n),w("javaemul.internal","ConsoleLogger",2014);var bNe=0;b(2134,1,{}),b(1830,1,re,J0n),o.Cd=function(e){u(e,317)},w(_m,"BowyerWatsonTriangulation/lambda$0$Type",1830),b(1831,1,re,S9n),o.Cd=function(e){Bi(this.a,u(e,317).e)},w(_m,"BowyerWatsonTriangulation/lambda$1$Type",1831),b(1832,1,re,Q0n),o.Cd=function(e){u(e,177)},w(_m,"BowyerWatsonTriangulation/lambda$2$Type",1832),b(1827,1,Ne,P9n),o.Ne=function(e,t){return m3e(this.a,u(e,177),u(t,177))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(_m,"NaiveMinST/lambda$0$Type",1827),b(506,1,{},z9),w(_m,"NodeMicroLayout",506),b(177,1,{177:1},bp),o.Fb=function(e){var t;return D(e,177)?(t=u(e,177),mc(this.a,t.a)&&mc(this.b,t.b)||mc(this.a,t.b)&&mc(this.b,t.a)):!1},o.Hb=function(){return yg(this.a)+yg(this.b)};var wNe=w(_m,"TEdge",177);b(317,1,{317:1},Ren),o.Fb=function(e){var t;return D(e,317)?(t=u(e,317),tT(this,t.a)&&tT(this,t.b)&&tT(this,t.c)):!1},o.Hb=function(){return yg(this.a)+yg(this.b)+yg(this.c)},w(_m,"TTriangle",317),b(225,1,{225:1},DC),w(_m,"Tree",225),b(1218,1,{},jOn),w(Yzn,"Scanline",1218);var FQn=Nt(Yzn,Zzn);b(1758,1,{},p$n),w(zh,"CGraph",1758),b(316,1,{316:1},MOn),o.b=0,o.c=0,o.d=0,o.g=0,o.i=0,o.k=li,w(zh,"CGroup",316),b(830,1,{},XG),w(zh,"CGroup/CGroupBuilder",830),b(60,1,{60:1},FAn),o.Ib=function(){var e;return this.j?Oe(this.j.Kb(this)):(ll(aP),aP.o+"@"+(e=f0(this)>>>0,e.toString(16)))},o.f=0,o.i=li;var aP=w(zh,"CNode",60);b(829,1,{},VG),w(zh,"CNode/CNodeBuilder",829);var BQn;b(1590,1,{},Y0n),o.ff=function(e,t){return 0},o.gf=function(e,t){return 0},w(zh,eXn,1590),b(1853,1,{},Z0n),o.cf=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(a=St,r=new C(e.a.b);r.ar.d.c||r.d.c==s.d.c&&r.d.b0?e+this.n.d+this.n.a:0},o.kf=function(){var e,t,i,r,c;if(c=0,this.e)this.b?c=this.b.a:this.a[1][1]&&(c=this.a[1][1].kf());else if(this.g)c=BY(this,Gx(this,null,!0));else for(t=(wf(),A(T(Sw,1),G,237,0,[bc,Wc,wc])),i=0,r=t.length;i0?c+this.n.b+this.n.c:0},o.lf=function(){var e,t,i,r,c;if(this.g)for(e=Gx(this,null,!1),i=(wf(),A(T(Sw,1),G,237,0,[bc,Wc,wc])),r=0,c=i.length;r0&&(r[0]+=this.d,i-=r[0]),r[2]>0&&(r[2]+=this.d,i-=r[2]),this.c.a=y.Math.max(0,i),this.c.d=t.d+e.d+(this.c.a-i)/2,r[1]=y.Math.max(r[1],i),xJ(this,Wc,t.d+e.d+r[0]-(r[1]-i)/2,r)},o.b=null,o.d=0,o.e=!1,o.f=!1,o.g=!1;var h_=0,dP=0;w(kd,"GridContainerCell",1538),b(470,22,{3:1,34:1,22:1,470:1},FD);var pa,Mh,zs,VQn=we(kd,"HorizontalLabelAlignment",470,ke,L2e,ude),WQn;b(314,217,{217:1,314:1},sOn,v$n,eOn),o.jf=function(){return HSn(this)},o.kf=function(){return nW(this)},o.a=0,o.c=!1;var gNe=w(kd,"LabelCell",314);b(252,336,{217:1,336:1,252:1},y5),o.jf=function(){return ny(this)},o.kf=function(){return ey(this)},o.lf=function(){LF(this)},o.mf=function(){NF(this)},o.b=0,o.c=0,o.d=!1,w(kd,"StripContainerCell",252),b(1691,1,De,ubn),o.Mb=function(e){return uhe(u(e,217))},w(kd,"StripContainerCell/lambda$0$Type",1691),b(1692,1,{},obn),o.Ye=function(e){return u(e,217).kf()},w(kd,"StripContainerCell/lambda$1$Type",1692),b(1693,1,De,sbn),o.Mb=function(e){return ohe(u(e,217))},w(kd,"StripContainerCell/lambda$2$Type",1693),b(1694,1,{},fbn),o.Ye=function(e){return u(e,217).jf()},w(kd,"StripContainerCell/lambda$3$Type",1694),b(471,22,{3:1,34:1,22:1,471:1},BD);var Xs,ma,kf,JQn=we(kd,"VerticalLabelAlignment",471,ke,D2e,ode),QQn;b(800,1,{},etn),o.c=0,o.d=0,o.k=0,o.s=0,o.t=0,o.v=!1,o.w=0,o.D=!1,w(nS,"NodeContext",800),b(1536,1,Ne,hbn),o.Ne=function(e,t){return nTn(u(e,64),u(t,64))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(nS,"NodeContext/0methodref$comparePortSides$Type",1536),b(1537,1,Ne,lbn),o.Ne=function(e,t){return xye(u(e,117),u(t,117))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(nS,"NodeContext/1methodref$comparePortContexts$Type",1537),b(164,22,{3:1,34:1,22:1,164:1},Vo);var YQn,ZQn,nYn,eYn,tYn,iYn,rYn,cYn,uYn,oYn,sYn,fYn,hYn,lYn,aYn,dYn,bYn,wYn,gYn,pYn,mYn,l_,vYn=we(nS,"NodeLabelLocation",164,ke,jx,sde),kYn;b(117,1,{117:1},sHn),o.a=!1,w(nS,"PortContext",117),b(1541,1,re,abn),o.Cd=function(e){vEn(u(e,314))},w(Iy,bXn,1541),b(1542,1,De,dbn),o.Mb=function(e){return!!u(e,117).c},w(Iy,wXn,1542),b(1543,1,re,bbn),o.Cd=function(e){vEn(u(e,117).c)},w(Iy,"LabelPlacer/lambda$2$Type",1543);var ton;b(1540,1,re,wbn),o.Cd=function(e){Bb(),Rfe(u(e,117))},w(Iy,"NodeLabelAndSizeUtilities/lambda$0$Type",1540),b(801,1,re,LV),o.Cd=function(e){Zhe(this.b,this.c,this.a,u(e,187))},o.a=!1,o.c=!1,w(Iy,"NodeLabelCellCreator/lambda$0$Type",801),b(1539,1,re,D9n),o.Cd=function(e){Hfe(this.a,u(e,187))},w(Iy,"PortContextCreator/lambda$0$Type",1539);var bP;b(1902,1,{},gbn),w(qm,"GreedyRectangleStripOverlapRemover",1902),b(1903,1,Ne,pbn),o.Ne=function(e,t){return O1e(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(qm,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903),b(1849,1,{},Hyn),o.a=5,o.e=0,w(qm,"RectangleStripOverlapRemover",1849),b(1850,1,Ne,mbn),o.Ne=function(e,t){return D1e(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(qm,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850),b(1852,1,Ne,vbn),o.Ne=function(e,t){return ywe(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(qm,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852),b(417,22,{3:1,34:1,22:1,417:1},oC);var tj,a_,d_,ij,yYn=we(qm,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,ke,Xpe,fde),jYn;b(226,1,{226:1},ZL),w(qm,"RectangleStripOverlapRemover/RectangleNode",226),b(1851,1,re,L9n),o.Cd=function(e){s7e(this.a,u(e,226))},w(qm,"RectangleStripOverlapRemover/lambda$1$Type",1851),b(1323,1,Ne,kbn),o.Ne=function(e,t){return SIe(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1323),b(1326,1,{},ybn),o.Kb=function(e){return u(e,334).a},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1326),b(1327,1,De,jbn),o.Mb=function(e){return u(e,332).a},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1327),b(1328,1,De,Ebn),o.Mb=function(e){return u(e,332).a},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1328),b(1321,1,Ne,Cbn),o.Ne=function(e,t){return rSe(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(mh,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1321),b(1324,1,{},Mbn),o.Kb=function(e){return u(e,334).a},w(mh,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1324),b(781,1,Ne,RU),o.Ne=function(e,t){return Kve(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(mh,"PolyominoCompactor/MinNumOfExtensionsComparator",781),b(1319,1,Ne,Tbn),o.Ne=function(e,t){return Vme(u(e,330),u(t,330))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(mh,"PolyominoCompactor/MinPerimeterComparator",1319),b(1320,1,Ne,Abn),o.Ne=function(e,t){return D9e(u(e,330),u(t,330))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(mh,"PolyominoCompactor/MinPerimeterComparatorWithShape",1320),b(1322,1,Ne,Sbn),o.Ne=function(e,t){return MSe(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(mh,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1322),b(1325,1,{},Pbn),o.Kb=function(e){return u(e,334).a},w(mh,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1325),b(782,1,{},Uz),o.Ve=function(e,t){return Rpe(this,u(e,42),u(t,176))},w(mh,"SuccessorCombination",782),b(649,1,{},NO),o.Ve=function(e,t){var i;return eCe((i=u(e,42),u(t,176),i))},w(mh,"SuccessorJitter",649),b(648,1,{},$O),o.Ve=function(e,t){var i;return _Te((i=u(e,42),u(t,176),i))},w(mh,"SuccessorLineByLine",648),b(573,1,{},mE),o.Ve=function(e,t){var i;return eMe((i=u(e,42),u(t,176),i))},w(mh,"SuccessorManhattan",573),b(1344,1,{},Ibn),o.Ve=function(e,t){var i;return lTe((i=u(e,42),u(t,176),i))},w(mh,"SuccessorMaxNormWindingInMathPosSense",1344),b(409,1,{},Z3),o.Ve=function(e,t){return CW(this,e,t)},o.c=!1,o.d=!1,o.e=!1,o.f=!1,w(mh,"SuccessorQuadrantsGeneric",409),b(1345,1,{},Obn),o.Kb=function(e){return u(e,334).a},w(mh,"SuccessorQuadrantsGeneric/lambda$0$Type",1345),b(332,22,{3:1,34:1,22:1,332:1},sC),o.a=!1;var rj,cj,uj,oj,EYn=we(tS,xtn,332,ke,Gpe,hde),CYn;b(1317,1,{}),o.Ib=function(){var e,t,i,r,c,s;for(i=" ",e=Y(0),c=0;c=0?"b"+e+"["+XN(this.a)+"]":"b["+XN(this.a)+"]"):"b_"+f0(this)},w(Dy,"FBendpoint",250),b(289,137,{3:1,289:1,96:1,137:1},BAn),o.Ib=function(){return XN(this)},w(Dy,"FEdge",289),b(235,137,{3:1,235:1,96:1,137:1},zM);var mNe=w(Dy,"FGraph",235);b(453,309,{3:1,453:1,309:1,96:1,137:1},KDn),o.Ib=function(){return this.b==null||this.b.length==0?"l["+XN(this.a)+"]":"l_"+this.b},w(Dy,"FLabel",453),b(153,309,{3:1,153:1,309:1,96:1,137:1},mTn),o.Ib=function(){return lJ(this)},o.a=0,w(Dy,"FNode",153),b(2100,1,{}),o.vf=function(e){Nen(this,e)},o.wf=function(){_Rn(this)},o.d=0,w(Gtn,"AbstractForceModel",2100),b(641,2100,{641:1},Bxn),o.uf=function(e,t){var i,r,c,s,f;return wGn(this.f,e,t),c=mi(Ki(t.d),e.d),f=y.Math.sqrt(c.a*c.a+c.b*c.b),r=y.Math.max(0,f-U6(e.e)/2-U6(t.e)/2),i=Q_n(this.e,e,t),i>0?s=-mwe(r,this.c)*i:s=X1e(r,this.b)*u(v(e,(Us(),k3)),17).a,ch(c,s/f),c},o.vf=function(e){Nen(this,e),this.a=u(v(e,(Us(),kP)),17).a,this.c=$(R(v(e,yP))),this.b=$(R(v(e,k_)))},o.xf=function(e){return e0&&(s-=the(r,this.a)*i),ch(c,s*this.b/f),c},o.vf=function(e){var t,i,r,c,s,f,h;for(Nen(this,e),this.b=$(R(v(e,(Us(),y_)))),this.c=this.b/u(v(e,kP),17).a,r=e.e.c.length,s=0,c=0,h=new C(e.e);h.a0},o.a=0,o.b=0,o.c=0,w(Gtn,"FruchtermanReingoldModel",642),b(860,1,ms,L5n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,cS),""),"Force Model"),"Determines the model for force calculation."),lon),(l1(),Pt)),aon),yn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,ztn),""),"Iterations"),"The number of iterations on the force model."),Y(300)),Zr),Gi),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Xtn),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Y(0)),Zr),Gi),yn(Ph)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,ZB),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),vh),Qi),si),yn(xn)))),ri(e,ZB,cS,UYn),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,nR),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Qi),si),yn(xn)))),ri(e,nR,cS,_Yn),izn((new N5n,e))};var BYn,RYn,lon,KYn,_Yn,HYn,qYn,UYn;w(Z5,"ForceMetaDataProvider",860),b(432,22,{3:1,34:1,22:1,432:1},zz);var v_,vP,aon=we(Z5,"ForceModelStrategy",432,ke,Rge,dde),GYn;b(d1,1,ms,N5n),o.hf=function(e){izn(e)};var zYn,XYn,don,kP,bon,VYn,WYn,JYn,QYn,won,YYn,gon,pon,ZYn,k3,nZn,k_,mon,eZn,tZn,yP,y_,iZn,rZn,cZn,von,uZn;w(Z5,"ForceOptions",d1),b(1001,1,{},Vbn),o.sf=function(){var e;return e=new zG,e},o.tf=function(e){},w(Z5,"ForceOptions/ForceFactory",1001);var hj,I8,y3,jP;b(861,1,ms,$5n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Wtn),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(_n(),!1)),(l1(),yi)),Gt),yn((pf(),pi))))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Jtn),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),Qi),si),yt(xn,A(T(Zh,1),G,170,0,[Ph]))))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Qtn),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),kon),Pt),Aon),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Ytn),""),"Stress Epsilon"),"Termination criterion for the iterative process."),vh),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Ztn),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Y(et)),Zr),Gi),yn(xn)))),OGn((new x5n,e))};var oZn,sZn,kon,fZn,hZn,lZn;w(Z5,"StressMetaDataProvider",861),b(1004,1,ms,x5n),o.hf=function(e){OGn(e)};var EP,yon,jon,Eon,Con,Mon,aZn,dZn,bZn,wZn,Ton,gZn;w(Z5,"StressOptions",1004),b(1005,1,{},zbn),o.sf=function(){var e;return e=new RAn,e},o.tf=function(e){},w(Z5,"StressOptions/StressFactory",1005),b(1110,205,yd,RAn),o.rf=function(e,t){var i,r,c,s,f;for(t.Ug(SXn,1),on(un(z(e,(qk(),Con))))?on(un(z(e,Ton)))||LM((i=new z9((Ob(),new Sb(e))),i)):VHn(new zG,e,t.eh(1)),c=sFn(e),r=KUn(this.a,c),f=r.Kc();f.Ob();)s=u(f.Pb(),235),!(s.e.c.length<=1)&&(MIe(this.b,s),JCe(this.b),nu(s.d,new Xbn));c=nzn(r),hzn(c),t.Vg()},w(sS,"StressLayoutProvider",1110),b(1111,1,re,Xbn),o.Cd=function(e){Hen(u(e,453))},w(sS,"StressLayoutProvider/lambda$0$Type",1111),b(1002,1,{},Fyn),o.c=0,o.e=0,o.g=0,w(sS,"StressMajorization",1002),b(391,22,{3:1,34:1,22:1,391:1},RD);var j_,E_,C_,Aon=we(sS,"StressMajorization/Dimension",391,ke,$2e,bde),pZn;b(1003,1,Ne,F9n),o.Ne=function(e,t){return Hae(this.a,u(e,153),u(t,153))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(sS,"StressMajorization/lambda$0$Type",1003),b(1192,1,{},GOn),w(b3,"ElkLayered",1192),b(1193,1,re,B9n),o.Cd=function(e){MEe(this.a,u(e,36))},w(b3,"ElkLayered/lambda$0$Type",1193),b(1194,1,re,R9n),o.Cd=function(e){qae(this.a,u(e,36))},w(b3,"ElkLayered/lambda$1$Type",1194),b(1281,1,{},STn);var mZn,vZn,kZn;w(b3,"GraphConfigurator",1281),b(770,1,re,IG),o.Cd=function(e){n_n(this.a,u(e,10))},w(b3,"GraphConfigurator/lambda$0$Type",770),b(771,1,{},_U),o.Kb=function(e){return DZ(),new Tn(null,new In(u(e,30).a,16))},w(b3,"GraphConfigurator/lambda$1$Type",771),b(772,1,re,OG),o.Cd=function(e){n_n(this.a,u(e,10))},w(b3,"GraphConfigurator/lambda$2$Type",772),b(1109,205,yd,qyn),o.rf=function(e,t){var i;i=cIe(new Gyn,e),x(z(e,(cn(),Bw)))===x((jl(),M1))?F5e(this.a,i,t):zCe(this.a,i,t),t.$g()||XGn(new F5n,i)},w(b3,"LayeredLayoutProvider",1109),b(367,22,{3:1,34:1,22:1,367:1},o7);var Vs,Jh,Oc,Kc,zr,Son=we(b3,"LayeredPhases",367,ke,R3e,wde),yZn;b(1717,1,{},txn),o.i=0;var jZn;w(By,"ComponentsToCGraphTransformer",1717);var EZn;b(1718,1,{},Gbn),o.yf=function(e,t){return y.Math.min(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},o.zf=function(e,t){return y.Math.min(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},w(By,"ComponentsToCGraphTransformer/1",1718),b(86,1,{86:1}),o.i=0,o.k=!0,o.o=li;var M_=w(i8,"CNode",86);b(469,86,{469:1,86:1},JX,uZ),o.Ib=function(){return""},w(By,"ComponentsToCGraphTransformer/CRectNode",469),b(1688,1,{},Wbn);var T_,A_;w(By,"OneDimensionalComponentsCompaction",1688),b(1689,1,{},Jbn),o.Kb=function(e){return T2e(u(e,42))},o.Fb=function(e){return this===e},w(By,"OneDimensionalComponentsCompaction/lambda$0$Type",1689),b(1690,1,{},Qbn),o.Kb=function(e){return R5e(u(e,42))},o.Fb=function(e){return this===e},w(By,"OneDimensionalComponentsCompaction/lambda$1$Type",1690),b(1720,1,{},YPn),w(i8,"CGraph",1720),b(194,1,{194:1},vx),o.b=0,o.c=0,o.e=0,o.g=!0,o.i=li,w(i8,"CGroup",194),b(1719,1,{},Ybn),o.yf=function(e,t){return y.Math.max(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},o.zf=function(e,t){return y.Math.max(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},w(i8,eXn,1719),b(1721,1,{},Z_n),o.d=!1;var CZn,S_=w(i8,rXn,1721);b(1722,1,{},Zbn),o.Kb=function(e){return Lz(),_n(),u(u(e,42).a,86).d.e!=0},o.Fb=function(e){return this===e},w(i8,cXn,1722),b(833,1,{},oW),o.a=!1,o.b=!1,o.c=!1,o.d=!1,w(i8,uXn,833),b(1898,1,{},bPn),w(fS,oXn,1898);var lj=Nt(Ed,Zzn);b(1899,1,{382:1},VIn),o.bf=function(e){nAe(this,u(e,475))},w(fS,sXn,1899),b(ha,1,Ne,nwn),o.Ne=function(e,t){return fge(u(e,86),u(t,86))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(fS,fXn,ha),b(475,1,{475:1},Vz),o.a=!1,w(fS,hXn,475),b(1901,1,Ne,ewn),o.Ne=function(e,t){return hke(u(e,475),u(t,475))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(fS,lXn,1901),b(148,1,{148:1},a4,UV),o.Fb=function(e){var t;return e==null||vNe!=wo(e)?!1:(t=u(e,148),mc(this.c,t.c)&&mc(this.d,t.d))},o.Hb=function(){return Pk(A(T(ki,1),Fn,1,5,[this.c,this.d]))},o.Ib=function(){return"("+this.c+ur+this.d+(this.a?"cx":"")+this.b+")"},o.a=!0,o.c=0,o.d=0;var vNe=w(Ed,"Point",148);b(416,22,{3:1,34:1,22:1,416:1},hC);var tb,Pw,d2,Iw,MZn=we(Ed,"Point/Quadrant",416,ke,Vpe,gde),TZn;b(1708,1,{},_yn),o.b=null,o.c=null,o.d=null,o.e=null,o.f=null;var AZn,SZn,PZn,IZn,OZn;w(Ed,"RectilinearConvexHull",1708),b(583,1,{382:1},eA),o.bf=function(e){B4e(this,u(e,148))},o.b=0;var Pon;w(Ed,"RectilinearConvexHull/MaximalElementsEventHandler",583),b(1710,1,Ne,twn),o.Ne=function(e,t){return hge(R(e),R(t))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Ed,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710),b(1709,1,{382:1},m$n),o.bf=function(e){wTe(this,u(e,148))},o.a=0,o.b=null,o.c=null,o.d=null,o.e=null,w(Ed,"RectilinearConvexHull/RectangleEventHandler",1709),b(1711,1,Ne,iwn),o.Ne=function(e,t){return mpe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Ed,"RectilinearConvexHull/lambda$0$Type",1711),b(1712,1,Ne,uwn),o.Ne=function(e,t){return vpe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Ed,"RectilinearConvexHull/lambda$1$Type",1712),b(1713,1,Ne,own),o.Ne=function(e,t){return ppe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Ed,"RectilinearConvexHull/lambda$2$Type",1713),b(1714,1,Ne,cwn),o.Ne=function(e,t){return kpe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Ed,"RectilinearConvexHull/lambda$3$Type",1714),b(1715,1,Ne,swn),o.Ne=function(e,t){return Qye(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Ed,"RectilinearConvexHull/lambda$4$Type",1715),b(1716,1,{},EOn),w(Ed,"Scanline",1716),b(2104,1,{}),w(Hf,"AbstractGraphPlacer",2104),b(335,1,{335:1},hAn),o.Ff=function(e){return this.Gf(e)?(Pn(this.b,u(v(e,(W(),Nl)),21),e),!0):!1},o.Gf=function(e){var t,i,r,c;for(t=u(v(e,(W(),Nl)),21),c=u(ot(wt,t),21),r=c.Kc();r.Ob();)if(i=u(r.Pb(),21),!u(ot(this.b,i),15).dc())return!1;return!0};var wt;w(Hf,"ComponentGroup",335),b(779,2104,{},WG),o.Hf=function(e){var t,i;for(i=new C(this.a);i.ai&&(d=0,g+=h+r,h=0),l=s.c,Am(s,d+l.a,g+l.b),ff(l),c=y.Math.max(c,d+a.a),h=y.Math.max(h,a.b),d+=a.a+r;t.f.a=c,t.f.b=g+h},o.Jf=function(e,t){var i,r,c,s,f;if(x(v(t,(cn(),Fw)))===x((dd(),Ow))){for(r=e.Kc();r.Ob();){for(i=u(r.Pb(),36),f=0,s=new C(i.a);s.ai&&!u(v(s,(W(),Nl)),21).Hc((en(),Xn))||l&&u(v(l,(W(),Nl)),21).Hc((en(),Zn))||u(v(s,(W(),Nl)),21).Hc((en(),Wn)))&&(p=g,m+=h+r,h=0),a=s.c,u(v(s,(W(),Nl)),21).Hc((en(),Xn))&&(p=c+r),Am(s,p+a.a,m+a.b),c=y.Math.max(c,p+d.a),u(v(s,Nl),21).Hc(ae)&&(g=y.Math.max(g,p+d.a+r)),ff(a),h=y.Math.max(h,d.b),p+=d.a+r,l=s;t.f.a=c,t.f.b=m+h},o.Jf=function(e,t){},w(Hf,"ModelOrderRowGraphPlacer",1313),b(1311,1,Ne,lwn),o.Ne=function(e,t){return Fve(u(e,36),u(t,36))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Hf,"SimpleRowGraphPlacer/1",1311);var LZn;b(1280,1,ph,awn),o.Lb=function(e){var t;return t=u(v(u(e,249).b,(cn(),Fr)),75),!!t&&t.b!=0},o.Fb=function(e){return this===e},o.Mb=function(e){var t;return t=u(v(u(e,249).b,(cn(),Fr)),75),!!t&&t.b!=0},w(hS,"CompoundGraphPostprocessor/1",1280),b(1279,1,vt,zyn),o.Kf=function(e,t){yRn(this,u(e,36),t)},w(hS,"CompoundGraphPreprocessor",1279),b(452,1,{452:1},lBn),o.c=!1,w(hS,"CompoundGraphPreprocessor/ExternalPort",452),b(249,1,{249:1},GC),o.Ib=function(){return SL(this.c)+":"+X_n(this.b)},w(hS,"CrossHierarchyEdge",249),b(777,1,Ne,DG),o.Ne=function(e,t){return B7e(this,u(e,249),u(t,249))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(hS,"CrossHierarchyEdgeComparator",777),b(304,137,{3:1,304:1,96:1,137:1}),o.p=0,w(Bc,"LGraphElement",304),b(18,304,{3:1,18:1,304:1,96:1,137:1},y0),o.Ib=function(){return X_n(this)};var O_=w(Bc,"LEdge",18);b(36,304,{3:1,20:1,36:1,304:1,96:1,137:1},jQ),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new C(this.b)},o.Ib=function(){return this.b.c.length==0?"G-unlayered"+ca(this.a):this.a.c.length==0?"G-layered"+ca(this.b):"G[layerless"+ca(this.a)+", layers"+ca(this.b)+"]"};var NZn=w(Bc,"LGraph",36),$Zn;b(666,1,{}),o.Lf=function(){return this.e.n},o.of=function(e){return v(this.e,e)},o.Mf=function(){return this.e.o},o.Nf=function(){return this.e.p},o.pf=function(e){return kt(this.e,e)},o.Of=function(e){this.e.n.a=e.a,this.e.n.b=e.b},o.Pf=function(e){this.e.o.a=e.a,this.e.o.b=e.b},o.Qf=function(e){this.e.p=e},w(Bc,"LGraphAdapters/AbstractLShapeAdapter",666),b(473,1,{853:1},zv),o.Rf=function(){var e,t;if(!this.b)for(this.b=Dh(this.a.b.c.length),t=new C(this.a.b);t.a0&&HFn((zn(t-1,e.length),e.charCodeAt(t-1)),NXn);)--t;if(s> ",e),lA(i)),Re(Dc((e.a+="[",e),i.i),"]")),e.a},o.c=!0,o.d=!1;var Non,$on,xon,Fon,Bon,Ron,FZn=w(Bc,"LPort",12);b(408,1,qh,n4),o.Jc=function(e){qi(this,e)},o.Kc=function(){var e;return e=new C(this.a.e),new K9n(e)},w(Bc,"LPort/1",408),b(1309,1,Si,K9n),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(E(this.a),18).c},o.Ob=function(){return tc(this.a)},o.Qb=function(){_6(this.a)},w(Bc,"LPort/1/1",1309),b(369,1,qh,ip),o.Jc=function(e){qi(this,e)},o.Kc=function(){var e;return e=new C(this.a.g),new LG(e)},w(Bc,"LPort/2",369),b(776,1,Si,LG),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(E(this.a),18).d},o.Ob=function(){return tc(this.a)},o.Qb=function(){_6(this.a)},w(Bc,"LPort/2/1",776),b(1302,1,qh,PCn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new Df(this)},w(Bc,"LPort/CombineIter",1302),b(208,1,Si,Df),o.Nb=function(e){_i(this,e)},o.Qb=function(){oEn()},o.Ob=function(){return I6(this)},o.Pb=function(){return tc(this.a)?E(this.a):E(this.b)},w(Bc,"LPort/CombineIter/1",208),b(1303,1,ph,bwn),o.Lb=function(e){return SPn(e)},o.Fb=function(e){return this===e},o.Mb=function(e){return Ou(),u(e,12).g.c.length!=0},w(Bc,"LPort/lambda$0$Type",1303),b(1304,1,ph,wwn),o.Lb=function(e){return PPn(e)},o.Fb=function(e){return this===e},o.Mb=function(e){return Ou(),u(e,12).e.c.length!=0},w(Bc,"LPort/lambda$1$Type",1304),b(1305,1,ph,gwn),o.Lb=function(e){return Ou(),u(e,12).j==(en(),Xn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Ou(),u(e,12).j==(en(),Xn)},w(Bc,"LPort/lambda$2$Type",1305),b(1306,1,ph,pwn),o.Lb=function(e){return Ou(),u(e,12).j==(en(),Zn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Ou(),u(e,12).j==(en(),Zn)},w(Bc,"LPort/lambda$3$Type",1306),b(1307,1,ph,mwn),o.Lb=function(e){return Ou(),u(e,12).j==(en(),ae)},o.Fb=function(e){return this===e},o.Mb=function(e){return Ou(),u(e,12).j==(en(),ae)},w(Bc,"LPort/lambda$4$Type",1307),b(1308,1,ph,vwn),o.Lb=function(e){return Ou(),u(e,12).j==(en(),Wn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Ou(),u(e,12).j==(en(),Wn)},w(Bc,"LPort/lambda$5$Type",1308),b(30,304,{3:1,20:1,304:1,30:1,96:1,137:1},Lc),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new C(this.a)},o.Ib=function(){return"L_"+qr(this.b.b,this,0)+ca(this.a)},w(Bc,"Layer",30),b(1330,1,{},Gyn),w(w1,BXn,1330),b(1334,1,{},kwn),o.Kb=function(e){return Gr(u(e,84))},w(w1,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334),b(1337,1,{},ywn),o.Kb=function(e){return Gr(u(e,84))},w(w1,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337),b(1331,1,re,_9n),o.Cd=function(e){hHn(this.a,u(e,123))},w(w1,Utn,1331),b(1332,1,re,H9n),o.Cd=function(e){hHn(this.a,u(e,123))},w(w1,RXn,1332),b(1333,1,{},jwn),o.Kb=function(e){return new Tn(null,new In(qW(u(e,74)),16))},w(w1,KXn,1333),b(1335,1,De,q9n),o.Mb=function(e){return _le(this.a,u(e,27))},w(w1,_Xn,1335),b(1336,1,{},Ewn),o.Kb=function(e){return new Tn(null,new In(rge(u(e,74)),16))},w(w1,"ElkGraphImporter/lambda$5$Type",1336),b(1338,1,De,U9n),o.Mb=function(e){return Hle(this.a,u(e,27))},w(w1,"ElkGraphImporter/lambda$7$Type",1338),b(1339,1,De,Cwn),o.Mb=function(e){return mge(u(e,74))},w(w1,"ElkGraphImporter/lambda$8$Type",1339),b(1297,1,{},F5n);var BZn;w(w1,"ElkGraphLayoutTransferrer",1297),b(1298,1,De,G9n),o.Mb=function(e){return Iae(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$0$Type",1298),b(1299,1,re,z9n),o.Cd=function(e){c7(),nn(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$1$Type",1299),b(1300,1,De,X9n),o.Mb=function(e){return wae(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$2$Type",1300),b(1301,1,re,V9n),o.Cd=function(e){c7(),nn(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$3$Type",1301),b(819,1,{},vV),w(Qn,"BiLinkedHashMultiMap",819),b(1550,1,vt,Mwn),o.Kf=function(e,t){ive(u(e,36),t)},w(Qn,"CommentNodeMarginCalculator",1550),b(1551,1,{},Twn),o.Kb=function(e){return new Tn(null,new In(u(e,30).a,16))},w(Qn,"CommentNodeMarginCalculator/lambda$0$Type",1551),b(1552,1,re,Awn),o.Cd=function(e){iIe(u(e,10))},w(Qn,"CommentNodeMarginCalculator/lambda$1$Type",1552),b(1553,1,vt,Swn),o.Kf=function(e,t){oAe(u(e,36),t)},w(Qn,"CommentPostprocessor",1553),b(1554,1,vt,Pwn),o.Kf=function(e,t){PDe(u(e,36),t)},w(Qn,"CommentPreprocessor",1554),b(1555,1,vt,Iwn),o.Kf=function(e,t){CTe(u(e,36),t)},w(Qn,"ConstraintsPostprocessor",1555),b(1556,1,vt,Own),o.Kf=function(e,t){Ove(u(e,36),t)},w(Qn,"EdgeAndLayerConstraintEdgeReverser",1556),b(1557,1,vt,Dwn),o.Kf=function(e,t){y8e(u(e,36),t)},w(Qn,"EndLabelPostprocessor",1557),b(1558,1,{},Lwn),o.Kb=function(e){return new Tn(null,new In(u(e,30).a,16))},w(Qn,"EndLabelPostprocessor/lambda$0$Type",1558),b(1559,1,De,Nwn),o.Mb=function(e){return x3e(u(e,10))},w(Qn,"EndLabelPostprocessor/lambda$1$Type",1559),b(1560,1,re,$wn),o.Cd=function(e){lke(u(e,10))},w(Qn,"EndLabelPostprocessor/lambda$2$Type",1560),b(1561,1,vt,xwn),o.Kf=function(e,t){Zje(u(e,36),t)},w(Qn,"EndLabelPreprocessor",1561),b(1562,1,{},Fwn),o.Kb=function(e){return new Tn(null,new In(u(e,30).a,16))},w(Qn,"EndLabelPreprocessor/lambda$0$Type",1562),b(1563,1,re,gSn),o.Cd=function(e){nle(this.a,this.b,this.c,u(e,10))},o.a=0,o.b=0,o.c=!1,w(Qn,"EndLabelPreprocessor/lambda$1$Type",1563),b(1564,1,De,Bwn),o.Mb=function(e){return x(v(u(e,72),(cn(),Ah)))===x(($f(),Fv))},w(Qn,"EndLabelPreprocessor/lambda$2$Type",1564),b(1565,1,re,W9n),o.Cd=function(e){Fe(this.a,u(e,72))},w(Qn,"EndLabelPreprocessor/lambda$3$Type",1565),b(1566,1,De,Rwn),o.Mb=function(e){return x(v(u(e,72),(cn(),Ah)))===x(($f(),Jw))},w(Qn,"EndLabelPreprocessor/lambda$4$Type",1566),b(1567,1,re,J9n),o.Cd=function(e){Fe(this.a,u(e,72))},w(Qn,"EndLabelPreprocessor/lambda$5$Type",1567),b(1615,1,vt,P5n),o.Kf=function(e,t){k5e(u(e,36),t)};var RZn;w(Qn,"EndLabelSorter",1615),b(1616,1,Ne,Kwn),o.Ne=function(e,t){return Z8e(u(e,465),u(t,465))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Qn,"EndLabelSorter/1",1616),b(465,1,{465:1},HIn),w(Qn,"EndLabelSorter/LabelGroup",465),b(1617,1,{},_wn),o.Kb=function(e){return r7(),new Tn(null,new In(u(e,30).a,16))},w(Qn,"EndLabelSorter/lambda$0$Type",1617),b(1618,1,De,Hwn),o.Mb=function(e){return r7(),u(e,10).k==(Vn(),zt)},w(Qn,"EndLabelSorter/lambda$1$Type",1618),b(1619,1,re,qwn),o.Cd=function(e){dje(u(e,10))},w(Qn,"EndLabelSorter/lambda$2$Type",1619),b(1620,1,De,Uwn),o.Mb=function(e){return r7(),x(v(u(e,72),(cn(),Ah)))===x(($f(),Jw))},w(Qn,"EndLabelSorter/lambda$3$Type",1620),b(1621,1,De,Gwn),o.Mb=function(e){return r7(),x(v(u(e,72),(cn(),Ah)))===x(($f(),Fv))},w(Qn,"EndLabelSorter/lambda$4$Type",1621),b(1568,1,vt,zwn),o.Kf=function(e,t){mIe(this,u(e,36))},o.b=0,o.c=0,w(Qn,"FinalSplineBendpointsCalculator",1568),b(1569,1,{},Xwn),o.Kb=function(e){return new Tn(null,new In(u(e,30).a,16))},w(Qn,"FinalSplineBendpointsCalculator/lambda$0$Type",1569),b(1570,1,{},Vwn),o.Kb=function(e){return new Tn(null,new w0(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(Qn,"FinalSplineBendpointsCalculator/lambda$1$Type",1570),b(1571,1,De,Wwn),o.Mb=function(e){return!fr(u(e,18))},w(Qn,"FinalSplineBendpointsCalculator/lambda$2$Type",1571),b(1572,1,De,Jwn),o.Mb=function(e){return kt(u(e,18),(W(),Dd))},w(Qn,"FinalSplineBendpointsCalculator/lambda$3$Type",1572),b(1573,1,re,Q9n),o.Cd=function(e){ASe(this.a,u(e,131))},w(Qn,"FinalSplineBendpointsCalculator/lambda$4$Type",1573),b(1574,1,re,Qwn),o.Cd=function(e){Qk(u(e,18).a)},w(Qn,"FinalSplineBendpointsCalculator/lambda$5$Type",1574),b(803,1,vt,NG),o.Kf=function(e,t){lOe(this,u(e,36),t)},w(Qn,"GraphTransformer",803),b(517,22,{3:1,34:1,22:1,517:1},Xz);var L_,aj,KZn=we(Qn,"GraphTransformer/Mode",517,ke,Kge,y0e),_Zn;b(1575,1,vt,Ywn),o.Kf=function(e,t){LMe(u(e,36),t)},w(Qn,"HierarchicalNodeResizingProcessor",1575),b(1576,1,vt,Zwn),o.Kf=function(e,t){Yme(u(e,36),t)},w(Qn,"HierarchicalPortConstraintProcessor",1576),b(1577,1,Ne,ngn),o.Ne=function(e,t){return k9e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Qn,"HierarchicalPortConstraintProcessor/NodeComparator",1577),b(1578,1,vt,egn),o.Kf=function(e,t){yPe(u(e,36),t)},w(Qn,"HierarchicalPortDummySizeProcessor",1578),b(1579,1,vt,tgn),o.Kf=function(e,t){OAe(this,u(e,36),t)},o.a=0,w(Qn,"HierarchicalPortOrthogonalEdgeRouter",1579),b(1580,1,Ne,ign),o.Ne=function(e,t){return L1e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Qn,"HierarchicalPortOrthogonalEdgeRouter/1",1580),b(1581,1,Ne,rgn),o.Ne=function(e,t){return R4e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Qn,"HierarchicalPortOrthogonalEdgeRouter/2",1581),b(1582,1,vt,cgn),o.Kf=function(e,t){Vye(u(e,36),t)},w(Qn,"HierarchicalPortPositionProcessor",1582),b(1583,1,vt,B5n),o.Kf=function(e,t){hLe(this,u(e,36))},o.a=0,o.c=0;var CP,MP;w(Qn,"HighDegreeNodeLayeringProcessor",1583),b(580,1,{580:1},ugn),o.b=-1,o.d=-1,w(Qn,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",580),b(1584,1,{},ogn),o.Kb=function(e){return L7(),ji(u(e,10))},o.Fb=function(e){return this===e},w(Qn,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1584),b(1585,1,{},sgn),o.Kb=function(e){return L7(),Qt(u(e,10))},o.Fb=function(e){return this===e},w(Qn,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1585),b(1591,1,vt,fgn),o.Kf=function(e,t){dPe(this,u(e,36),t)},w(Qn,"HyperedgeDummyMerger",1591),b(804,1,{},NV),o.a=!1,o.b=!1,o.c=!1,w(Qn,"HyperedgeDummyMerger/MergeState",804),b(1592,1,{},hgn),o.Kb=function(e){return new Tn(null,new In(u(e,30).a,16))},w(Qn,"HyperedgeDummyMerger/lambda$0$Type",1592),b(1593,1,{},lgn),o.Kb=function(e){return new Tn(null,new In(u(e,10).j,16))},w(Qn,"HyperedgeDummyMerger/lambda$1$Type",1593),b(1594,1,re,agn),o.Cd=function(e){u(e,12).p=-1},w(Qn,"HyperedgeDummyMerger/lambda$2$Type",1594),b(1595,1,vt,dgn),o.Kf=function(e,t){lPe(u(e,36),t)},w(Qn,"HypernodesProcessor",1595),b(1596,1,vt,bgn),o.Kf=function(e,t){kPe(u(e,36),t)},w(Qn,"InLayerConstraintProcessor",1596),b(1597,1,vt,wgn),o.Kf=function(e,t){dve(u(e,36),t)},w(Qn,"InnermostNodeMarginCalculator",1597),b(1598,1,vt,ggn),o.Kf=function(e,t){MDe(this,u(e,36))},o.a=li,o.b=li,o.c=St,o.d=St;var kNe=w(Qn,"InteractiveExternalPortPositioner",1598);b(1599,1,{},pgn),o.Kb=function(e){return u(e,18).d.i},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$0$Type",1599),b(1600,1,{},Y9n),o.Kb=function(e){return N1e(this.a,R(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$1$Type",1600),b(1601,1,{},mgn),o.Kb=function(e){return u(e,18).c.i},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$2$Type",1601),b(1602,1,{},Z9n),o.Kb=function(e){return $1e(this.a,R(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$3$Type",1602),b(1603,1,{},n7n),o.Kb=function(e){return Dae(this.a,R(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$4$Type",1603),b(1604,1,{},e7n),o.Kb=function(e){return Lae(this.a,R(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$5$Type",1604),b(81,22,{3:1,34:1,22:1,81:1,196:1},ei),o.dg=function(){switch(this.g){case 15:return new $pn;case 22:return new xpn;case 47:return new Rpn;case 28:case 35:return new Pgn;case 32:return new Mwn;case 42:return new Swn;case 1:return new Pwn;case 41:return new Iwn;case 56:return new NG((X4(),aj));case 0:return new NG((X4(),L_));case 2:return new Own;case 54:return new Dwn;case 33:return new xwn;case 51:return new zwn;case 55:return new Ywn;case 13:return new Zwn;case 38:return new egn;case 44:return new tgn;case 40:return new cgn;case 9:return new B5n;case 49:return new eAn;case 37:return new fgn;case 43:return new dgn;case 27:return new bgn;case 30:return new wgn;case 3:return new ggn;case 18:return new kgn;case 29:return new ygn;case 5:return new R5n;case 50:return new vgn;case 34:return new K5n;case 36:return new Ign;case 52:return new P5n;case 11:return new Ogn;case 7:return new _5n;case 39:return new Dgn;case 45:return new Lgn;case 16:return new Ngn;case 10:return new XCn;case 48:return new Bgn;case 21:return new Rgn;case 23:return new gD((P0(),Q8));case 8:return new _gn;case 12:return new qgn;case 4:return new Ugn;case 19:return new X5n;case 17:return new n2n;case 53:return new e2n;case 6:return new d2n;case 25:return new Vyn;case 46:return new u2n;case 31:return new qAn;case 14:return new y2n;case 26:return new Hpn;case 20:return new T2n;case 24:return new gD((P0(),PI));default:throw M(new Gn(cR+(this.f!=null?this.f:""+this.g)))}};var Kon,_on,Hon,qon,Uon,Gon,zon,Xon,Von,Won,b2,TP,AP,Jon,Qon,Yon,Zon,nsn,esn,tsn,O8,isn,rsn,csn,usn,osn,N_,SP,PP,ssn,IP,OP,DP,fv,Dw,Lw,fsn,LP,NP,hsn,$P,xP,lsn,asn,dsn,bsn,FP,$_,dj,BP,RP,KP,_P,wsn,gsn,psn,msn,yNe=we(Qn,uR,81,ke,iqn,kde),HZn;b(1605,1,vt,kgn),o.Kf=function(e,t){EDe(u(e,36),t)},w(Qn,"InvertedPortProcessor",1605),b(1606,1,vt,ygn),o.Kf=function(e,t){vSe(u(e,36),t)},w(Qn,"LabelAndNodeSizeProcessor",1606),b(1607,1,De,jgn),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"LabelAndNodeSizeProcessor/lambda$0$Type",1607),b(1608,1,De,Egn),o.Mb=function(e){return u(e,10).k==(Vn(),Zt)},w(Qn,"LabelAndNodeSizeProcessor/lambda$1$Type",1608),b(1609,1,re,pSn),o.Cd=function(e){ele(this.b,this.a,this.c,u(e,10))},o.a=!1,o.c=!1,w(Qn,"LabelAndNodeSizeProcessor/lambda$2$Type",1609),b(1610,1,vt,R5n),o.Kf=function(e,t){WOe(u(e,36),t)};var qZn;w(Qn,"LabelDummyInserter",1610),b(1611,1,ph,Cgn),o.Lb=function(e){return x(v(u(e,72),(cn(),Ah)))===x(($f(),xv))},o.Fb=function(e){return this===e},o.Mb=function(e){return x(v(u(e,72),(cn(),Ah)))===x(($f(),xv))},w(Qn,"LabelDummyInserter/1",1611),b(1612,1,vt,vgn),o.Kf=function(e,t){FOe(u(e,36),t)},w(Qn,"LabelDummyRemover",1612),b(1613,1,De,Mgn),o.Mb=function(e){return on(un(v(u(e,72),(cn(),EH))))},w(Qn,"LabelDummyRemover/lambda$0$Type",1613),b(1378,1,vt,K5n),o.Kf=function(e,t){POe(this,u(e,36),t)},o.a=null;var x_;w(Qn,"LabelDummySwitcher",1378),b(292,1,{292:1},tUn),o.c=0,o.d=null,o.f=0,w(Qn,"LabelDummySwitcher/LabelDummyInfo",292),b(1379,1,{},Tgn),o.Kb=function(e){return Hp(),new Tn(null,new In(u(e,30).a,16))},w(Qn,"LabelDummySwitcher/lambda$0$Type",1379),b(1380,1,De,Agn),o.Mb=function(e){return Hp(),u(e,10).k==(Vn(),Ac)},w(Qn,"LabelDummySwitcher/lambda$1$Type",1380),b(1381,1,{},t7n),o.Kb=function(e){return gae(this.a,u(e,10))},w(Qn,"LabelDummySwitcher/lambda$2$Type",1381),b(1382,1,re,i7n),o.Cd=function(e){xwe(this.a,u(e,292))},w(Qn,"LabelDummySwitcher/lambda$3$Type",1382),b(1383,1,Ne,Sgn),o.Ne=function(e,t){return uwe(u(e,292),u(t,292))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Qn,"LabelDummySwitcher/lambda$4$Type",1383),b(802,1,vt,Pgn),o.Kf=function(e,t){m4e(u(e,36),t)},w(Qn,"LabelManagementProcessor",802),b(1614,1,vt,Ign),o.Kf=function(e,t){WTe(u(e,36),t)},w(Qn,"LabelSideSelector",1614),b(1622,1,vt,Ogn),o.Kf=function(e,t){xPe(u(e,36),t)},w(Qn,"LayerConstraintPostprocessor",1622),b(1623,1,vt,_5n),o.Kf=function(e,t){OCe(u(e,36),t)};var vsn;w(Qn,"LayerConstraintPreprocessor",1623),b(371,22,{3:1,34:1,22:1,371:1},aC);var bj,HP,qP,F_,UZn=we(Qn,"LayerConstraintPreprocessor/HiddenNodeConnections",371,ke,Jpe,yde),GZn;b(1624,1,vt,Dgn),o.Kf=function(e,t){ZIe(u(e,36),t)},w(Qn,"LayerSizeAndGraphHeightCalculator",1624),b(1625,1,vt,Lgn),o.Kf=function(e,t){NMe(u(e,36),t)},w(Qn,"LongEdgeJoiner",1625),b(1626,1,vt,Ngn),o.Kf=function(e,t){PIe(u(e,36),t)},w(Qn,"LongEdgeSplitter",1626),b(1627,1,vt,XCn),o.Kf=function(e,t){hDe(this,u(e,36),t)},o.e=0,o.f=0,o.j=0,o.k=0,o.n=0,o.o=0;var zZn,XZn;w(Qn,"NodePromotion",1627),b(1628,1,Ne,$gn),o.Ne=function(e,t){return E6e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Qn,"NodePromotion/1",1628),b(1629,1,Ne,xgn),o.Ne=function(e,t){return C6e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Qn,"NodePromotion/2",1629),b(1630,1,{},Fgn),o.Kb=function(e){return u(e,42),XC(),_n(),!0},o.Fb=function(e){return this===e},w(Qn,"NodePromotion/lambda$0$Type",1630),b(1631,1,{},o7n),o.Kb=function(e){return v2e(this.a,u(e,42))},o.Fb=function(e){return this===e},o.a=0,w(Qn,"NodePromotion/lambda$1$Type",1631),b(1632,1,{},s7n),o.Kb=function(e){return m2e(this.a,u(e,42))},o.Fb=function(e){return this===e},o.a=0,w(Qn,"NodePromotion/lambda$2$Type",1632),b(1633,1,vt,Bgn),o.Kf=function(e,t){rLe(u(e,36),t)},w(Qn,"NorthSouthPortPostprocessor",1633),b(1634,1,vt,Rgn),o.Kf=function(e,t){BDe(u(e,36),t)},w(Qn,"NorthSouthPortPreprocessor",1634),b(1635,1,Ne,Kgn),o.Ne=function(e,t){return Bve(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Qn,"NorthSouthPortPreprocessor/lambda$0$Type",1635),b(1636,1,vt,_gn),o.Kf=function(e,t){nPe(u(e,36),t)},w(Qn,"PartitionMidprocessor",1636),b(1637,1,De,Hgn),o.Mb=function(e){return kt(u(e,10),(cn(),Ev))},w(Qn,"PartitionMidprocessor/lambda$0$Type",1637),b(1638,1,re,f7n),o.Cd=function(e){vge(this.a,u(e,10))},w(Qn,"PartitionMidprocessor/lambda$1$Type",1638),b(1639,1,vt,qgn),o.Kf=function(e,t){eTe(u(e,36),t)},w(Qn,"PartitionPostprocessor",1639),b(1640,1,vt,Ugn),o.Kf=function(e,t){wCe(u(e,36),t)},w(Qn,"PartitionPreprocessor",1640),b(1641,1,De,Ggn),o.Mb=function(e){return kt(u(e,10),(cn(),Ev))},w(Qn,"PartitionPreprocessor/lambda$0$Type",1641),b(1642,1,{},zgn),o.Kb=function(e){return new Tn(null,new w0(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(Qn,"PartitionPreprocessor/lambda$1$Type",1642),b(1643,1,De,Xgn),o.Mb=function(e){return c9e(u(e,18))},w(Qn,"PartitionPreprocessor/lambda$2$Type",1643),b(1644,1,re,Vgn),o.Cd=function(e){e6e(u(e,18))},w(Qn,"PartitionPreprocessor/lambda$3$Type",1644),b(1645,1,vt,X5n),o.Kf=function(e,t){NSe(u(e,36),t)};var ksn,VZn,WZn,JZn,ysn,jsn;w(Qn,"PortListSorter",1645),b(1648,1,Ne,Wgn),o.Ne=function(e,t){return zDn(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Qn,"PortListSorter/lambda$0$Type",1648),b(1650,1,Ne,Jgn),o.Ne=function(e,t){return TUn(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Qn,"PortListSorter/lambda$1$Type",1650),b(1646,1,{},Qgn),o.Kb=function(e){return rm(),u(e,12).e},w(Qn,"PortListSorter/lambda$2$Type",1646),b(1647,1,{},Ygn),o.Kb=function(e){return rm(),u(e,12).g},w(Qn,"PortListSorter/lambda$3$Type",1647),b(1649,1,Ne,Zgn),o.Ne=function(e,t){return P7e(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Qn,"PortListSorter/lambda$4$Type",1649),b(1651,1,vt,n2n),o.Kf=function(e,t){UCe(u(e,36),t)},w(Qn,"PortSideProcessor",1651),b(1652,1,vt,e2n),o.Kf=function(e,t){GAe(u(e,36),t)},w(Qn,"ReversedEdgeRestorer",1652),b(1657,1,vt,Vyn),o.Kf=function(e,t){l7e(this,u(e,36),t)},w(Qn,"SelfLoopPortRestorer",1657),b(1658,1,{},t2n),o.Kb=function(e){return new Tn(null,new In(u(e,30).a,16))},w(Qn,"SelfLoopPortRestorer/lambda$0$Type",1658),b(1659,1,De,i2n),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"SelfLoopPortRestorer/lambda$1$Type",1659),b(1660,1,De,r2n),o.Mb=function(e){return kt(u(e,10),(W(),sb))},w(Qn,"SelfLoopPortRestorer/lambda$2$Type",1660),b(1661,1,{},c2n),o.Kb=function(e){return u(v(u(e,10),(W(),sb)),337)},w(Qn,"SelfLoopPortRestorer/lambda$3$Type",1661),b(1662,1,re,c7n),o.Cd=function(e){Tje(this.a,u(e,337))},w(Qn,"SelfLoopPortRestorer/lambda$4$Type",1662),b(805,1,re,UU),o.Cd=function(e){Rje(u(e,105))},w(Qn,"SelfLoopPortRestorer/lambda$5$Type",805),b(1663,1,vt,u2n),o.Kf=function(e,t){p9e(u(e,36),t)},w(Qn,"SelfLoopPostProcessor",1663),b(1664,1,{},o2n),o.Kb=function(e){return new Tn(null,new In(u(e,30).a,16))},w(Qn,"SelfLoopPostProcessor/lambda$0$Type",1664),b(1665,1,De,s2n),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"SelfLoopPostProcessor/lambda$1$Type",1665),b(1666,1,De,f2n),o.Mb=function(e){return kt(u(e,10),(W(),sb))},w(Qn,"SelfLoopPostProcessor/lambda$2$Type",1666),b(1667,1,re,h2n),o.Cd=function(e){Ske(u(e,10))},w(Qn,"SelfLoopPostProcessor/lambda$3$Type",1667),b(1668,1,{},l2n),o.Kb=function(e){return new Tn(null,new In(u(e,105).f,1))},w(Qn,"SelfLoopPostProcessor/lambda$4$Type",1668),b(1669,1,re,r7n),o.Cd=function(e){n3e(this.a,u(e,340))},w(Qn,"SelfLoopPostProcessor/lambda$5$Type",1669),b(1670,1,De,a2n),o.Mb=function(e){return!!u(e,105).i},w(Qn,"SelfLoopPostProcessor/lambda$6$Type",1670),b(1671,1,re,u7n),o.Cd=function(e){nhe(this.a,u(e,105))},w(Qn,"SelfLoopPostProcessor/lambda$7$Type",1671),b(1653,1,vt,d2n),o.Kf=function(e,t){vMe(u(e,36),t)},w(Qn,"SelfLoopPreProcessor",1653),b(1654,1,{},b2n),o.Kb=function(e){return new Tn(null,new In(u(e,105).f,1))},w(Qn,"SelfLoopPreProcessor/lambda$0$Type",1654),b(1655,1,{},w2n),o.Kb=function(e){return u(e,340).a},w(Qn,"SelfLoopPreProcessor/lambda$1$Type",1655),b(1656,1,re,g2n),o.Cd=function(e){i1e(u(e,18))},w(Qn,"SelfLoopPreProcessor/lambda$2$Type",1656),b(1672,1,vt,qAn),o.Kf=function(e,t){oje(this,u(e,36),t)},w(Qn,"SelfLoopRouter",1672),b(1673,1,{},p2n),o.Kb=function(e){return new Tn(null,new In(u(e,30).a,16))},w(Qn,"SelfLoopRouter/lambda$0$Type",1673),b(1674,1,De,m2n),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"SelfLoopRouter/lambda$1$Type",1674),b(1675,1,De,v2n),o.Mb=function(e){return kt(u(e,10),(W(),sb))},w(Qn,"SelfLoopRouter/lambda$2$Type",1675),b(1676,1,{},k2n),o.Kb=function(e){return u(v(u(e,10),(W(),sb)),337)},w(Qn,"SelfLoopRouter/lambda$3$Type",1676),b(1677,1,re,ACn),o.Cd=function(e){dge(this.a,this.b,u(e,337))},w(Qn,"SelfLoopRouter/lambda$4$Type",1677),b(1678,1,vt,y2n),o.Kf=function(e,t){FTe(u(e,36),t)},w(Qn,"SemiInteractiveCrossMinProcessor",1678),b(1679,1,De,j2n),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1679),b(1680,1,De,E2n),o.Mb=function(e){return uPn(u(e,10))._b((cn(),Hw))},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1680),b(1681,1,Ne,C2n),o.Ne=function(e,t){return nve(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1681),b(1682,1,{},M2n),o.Ve=function(e,t){return kge(u(e,10),u(t,10))},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1682),b(1684,1,vt,T2n),o.Kf=function(e,t){oIe(u(e,36),t)},w(Qn,"SortByInputModelProcessor",1684),b(1685,1,De,A2n),o.Mb=function(e){return u(e,12).g.c.length!=0},w(Qn,"SortByInputModelProcessor/lambda$0$Type",1685),b(1686,1,re,h7n),o.Cd=function(e){Uje(this.a,u(e,12))},w(Qn,"SortByInputModelProcessor/lambda$1$Type",1686),b(1759,817,{},gxn),o.df=function(e){var t,i,r,c;switch(this.c=e,this.a.g){case 2:t=new Z,qt(ut(new Tn(null,new In(this.c.a.b,16)),new _2n),new xCn(this,t)),Yk(this,new P2n),nu(t,new I2n),t.c.length=0,qt(ut(new Tn(null,new In(this.c.a.b,16)),new O2n),new a7n(t)),Yk(this,new D2n),nu(t,new L2n),t.c.length=0,i=pTn(O$(Ub(new Tn(null,new In(this.c.a.b,16)),new d7n(this))),new N2n),qt(new Tn(null,new In(this.c.a.a,16)),new ICn(i,t)),Yk(this,new x2n),nu(t,new F2n),t.c.length=0;break;case 3:r=new Z,Yk(this,new S2n),c=pTn(O$(Ub(new Tn(null,new In(this.c.a.b,16)),new l7n(this))),new $2n),qt(ut(new Tn(null,new In(this.c.a.b,16)),new B2n),new DCn(c,r)),Yk(this,new R2n),nu(r,new K2n),r.c.length=0;break;default:throw M(new $yn)}},o.b=0,w(di,"EdgeAwareScanlineConstraintCalculation",1759),b(1760,1,ph,S2n),o.Lb=function(e){return D(u(e,60).g,154)},o.Fb=function(e){return this===e},o.Mb=function(e){return D(u(e,60).g,154)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1760),b(1761,1,{},l7n),o.Ye=function(e){return AEe(this.a,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1761),b(1769,1,JA,SCn),o.de=function(){A5(this.a,this.b,-1)},o.b=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1769),b(1771,1,ph,P2n),o.Lb=function(e){return D(u(e,60).g,154)},o.Fb=function(e){return this===e},o.Mb=function(e){return D(u(e,60).g,154)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1771),b(1772,1,re,I2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1772),b(1773,1,De,O2n),o.Mb=function(e){return D(u(e,60).g,10)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1773),b(1775,1,re,a7n),o.Cd=function(e){X5e(this.a,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1775),b(1774,1,JA,LCn),o.de=function(){A5(this.b,this.a,-1)},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1774),b(1776,1,ph,D2n),o.Lb=function(e){return D(u(e,60).g,10)},o.Fb=function(e){return this===e},o.Mb=function(e){return D(u(e,60).g,10)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1776),b(1777,1,re,L2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1777),b(1778,1,{},d7n),o.Ye=function(e){return SEe(this.a,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1778),b(1779,1,{},N2n),o.We=function(){return 0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1779),b(1762,1,{},$2n),o.We=function(){return 0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1762),b(1781,1,re,ICn),o.Cd=function(e){Ybe(this.a,this.b,u(e,316))},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1781),b(1780,1,JA,OCn),o.de=function(){DHn(this.a,this.b,-1)},o.b=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1780),b(1782,1,ph,x2n),o.Lb=function(e){return u(e,60),!0},o.Fb=function(e){return this===e},o.Mb=function(e){return u(e,60),!0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1782),b(1783,1,re,F2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1783),b(1763,1,De,B2n),o.Mb=function(e){return D(u(e,60).g,10)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1763),b(1765,1,re,DCn),o.Cd=function(e){Zbe(this.a,this.b,u(e,60))},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1765),b(1764,1,JA,NCn),o.de=function(){A5(this.b,this.a,-1)},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1764),b(1766,1,ph,R2n),o.Lb=function(e){return u(e,60),!0},o.Fb=function(e){return this===e},o.Mb=function(e){return u(e,60),!0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1766),b(1767,1,re,K2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1767),b(1768,1,De,_2n),o.Mb=function(e){return D(u(e,60).g,154)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1768),b(1770,1,re,xCn),o.Cd=function(e){pme(this.a,this.b,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1770),b(1586,1,vt,eAn),o.Kf=function(e,t){$Ie(this,u(e,36),t)};var QZn;w(di,"HorizontalGraphCompactor",1586),b(1587,1,{},b7n),o.ff=function(e,t){var i,r,c;return iQ(e,t)||(i=Pg(e),r=Pg(t),i&&i.k==(Vn(),Zt)||r&&r.k==(Vn(),Zt))?0:(c=u(v(this.a.a,(W(),E2)),312),R1e(c,i?i.k:(Vn(),Mi),r?r.k:(Vn(),Mi)))},o.gf=function(e,t){var i,r,c;return iQ(e,t)?1:(i=Pg(e),r=Pg(t),c=u(v(this.a.a,(W(),E2)),312),VX(c,i?i.k:(Vn(),Mi),r?r.k:(Vn(),Mi)))},w(di,"HorizontalGraphCompactor/1",1587),b(1588,1,{},H2n),o.ef=function(e,t){return c6(),e.a.i==0},w(di,"HorizontalGraphCompactor/lambda$0$Type",1588),b(1589,1,{},w7n),o.ef=function(e,t){return Ege(this.a,e,t)},w(di,"HorizontalGraphCompactor/lambda$1$Type",1589),b(1730,1,{},GNn);var YZn,ZZn;w(di,"LGraphToCGraphTransformer",1730),b(1738,1,De,q2n),o.Mb=function(e){return e!=null},w(di,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1738),b(1731,1,{},U2n),o.Kb=function(e){return Fs(),Jr(v(u(u(e,60).g,10),(W(),st)))},w(di,"LGraphToCGraphTransformer/lambda$0$Type",1731),b(1732,1,{},G2n),o.Kb=function(e){return Fs(),tBn(u(u(e,60).g,154))},w(di,"LGraphToCGraphTransformer/lambda$1$Type",1732),b(1741,1,De,z2n),o.Mb=function(e){return Fs(),D(u(e,60).g,10)},w(di,"LGraphToCGraphTransformer/lambda$10$Type",1741),b(1742,1,re,X2n),o.Cd=function(e){Sge(u(e,60))},w(di,"LGraphToCGraphTransformer/lambda$11$Type",1742),b(1743,1,De,V2n),o.Mb=function(e){return Fs(),D(u(e,60).g,154)},w(di,"LGraphToCGraphTransformer/lambda$12$Type",1743),b(1747,1,re,W2n),o.Cd=function(e){c5e(u(e,60))},w(di,"LGraphToCGraphTransformer/lambda$13$Type",1747),b(1744,1,re,g7n),o.Cd=function(e){Dle(this.a,u(e,8))},o.a=0,w(di,"LGraphToCGraphTransformer/lambda$14$Type",1744),b(1745,1,re,p7n),o.Cd=function(e){Nle(this.a,u(e,116))},o.a=0,w(di,"LGraphToCGraphTransformer/lambda$15$Type",1745),b(1746,1,re,m7n),o.Cd=function(e){Lle(this.a,u(e,8))},o.a=0,w(di,"LGraphToCGraphTransformer/lambda$16$Type",1746),b(1748,1,{},J2n),o.Kb=function(e){return Fs(),new Tn(null,new w0(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(di,"LGraphToCGraphTransformer/lambda$17$Type",1748),b(1749,1,De,Q2n),o.Mb=function(e){return Fs(),fr(u(e,18))},w(di,"LGraphToCGraphTransformer/lambda$18$Type",1749),b(1750,1,re,v7n),o.Cd=function(e){W4e(this.a,u(e,18))},w(di,"LGraphToCGraphTransformer/lambda$19$Type",1750),b(1734,1,re,k7n),o.Cd=function(e){jpe(this.a,u(e,154))},w(di,"LGraphToCGraphTransformer/lambda$2$Type",1734),b(1751,1,{},Y2n),o.Kb=function(e){return Fs(),new Tn(null,new In(u(e,30).a,16))},w(di,"LGraphToCGraphTransformer/lambda$20$Type",1751),b(1752,1,{},Z2n),o.Kb=function(e){return Fs(),new Tn(null,new w0(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(di,"LGraphToCGraphTransformer/lambda$21$Type",1752),b(1753,1,{},npn),o.Kb=function(e){return Fs(),u(v(u(e,18),(W(),Dd)),15)},w(di,"LGraphToCGraphTransformer/lambda$22$Type",1753),b(1754,1,De,epn),o.Mb=function(e){return K1e(u(e,15))},w(di,"LGraphToCGraphTransformer/lambda$23$Type",1754),b(1755,1,re,y7n),o.Cd=function(e){gEe(this.a,u(e,15))},w(di,"LGraphToCGraphTransformer/lambda$24$Type",1755),b(1733,1,re,FCn),o.Cd=function(e){v3e(this.a,this.b,u(e,154))},w(di,"LGraphToCGraphTransformer/lambda$3$Type",1733),b(1735,1,{},tpn),o.Kb=function(e){return Fs(),new Tn(null,new In(u(e,30).a,16))},w(di,"LGraphToCGraphTransformer/lambda$4$Type",1735),b(1736,1,{},ipn),o.Kb=function(e){return Fs(),new Tn(null,new w0(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(di,"LGraphToCGraphTransformer/lambda$5$Type",1736),b(1737,1,{},rpn),o.Kb=function(e){return Fs(),u(v(u(e,18),(W(),Dd)),15)},w(di,"LGraphToCGraphTransformer/lambda$6$Type",1737),b(1739,1,re,j7n),o.Cd=function(e){PEe(this.a,u(e,15))},w(di,"LGraphToCGraphTransformer/lambda$8$Type",1739),b(1740,1,re,BCn),o.Cd=function(e){r1e(this.a,this.b,u(e,154))},w(di,"LGraphToCGraphTransformer/lambda$9$Type",1740),b(1729,1,{},cpn),o.cf=function(e){var t,i,r,c,s;for(this.a=e,this.d=new oD,this.c=K(eon,Fn,125,this.a.a.a.c.length,0,1),this.b=0,i=new C(this.a.a.a);i.a=j&&(nn(s,Y(d)),O=y.Math.max(O,N[d-1]-g),h+=k,S+=N[d-1]-S,g=N[d-1],k=l[d]),k=y.Math.max(k,l[d]),++d;h+=k}m=y.Math.min(1/O,1/t.b/h),m>r&&(r=m,i=s)}return i},o.pg=function(){return!1},w(yh,"MSDCutIndexHeuristic",816),b(1683,1,vt,Hpn),o.Kf=function(e,t){BPe(u(e,36),t)},w(yh,"SingleEdgeGraphWrapper",1683),b(232,22,{3:1,34:1,22:1,232:1},d6);var g2,av,dv,Nw,D8,p2,bv=we(Tc,"CenterEdgeLabelPlacementStrategy",232,ke,E4e,Mde),lne;b(431,22,{3:1,34:1,22:1,431:1},Wz);var Csn,V_,Msn=we(Tc,"ConstraintCalculationStrategy",431,ke,qge,Tde),ane;b(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},_D),o.dg=function(){return K_n(this)},o.qg=function(){return K_n(this)};var gj,L8,Tsn,Asn=we(Tc,"CrossingMinimizationStrategy",322,ke,F2e,Ade),dne;b(351,22,{3:1,34:1,22:1,351:1},HD);var Ssn,W_,VP,Psn=we(Tc,"CuttingStrategy",351,ke,B2e,Sde),bne;b(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},f7),o.dg=function(){return IHn(this)},o.qg=function(){return IHn(this)};var Isn,J_,wv,Q_,gv,Osn=we(Tc,"CycleBreakingStrategy",348,ke,_3e,Pde),wne;b(428,22,{3:1,34:1,22:1,428:1},Jz);var WP,Dsn,Lsn=we(Tc,"DirectionCongruency",428,ke,Hge,Ide),gne;b(459,22,{3:1,34:1,22:1,459:1},qD);var pv,Y_,m2,pne=we(Tc,"EdgeConstraint",459,ke,R2e,Fde),mne;b(283,22,{3:1,34:1,22:1,283:1},b6);var Z_,nH,eH,tH,JP,iH,Nsn=we(Tc,"EdgeLabelSideSelection",283,ke,k4e,Bde),vne;b(487,22,{3:1,34:1,22:1,487:1},Qz);var QP,$sn,xsn=we(Tc,"EdgeStraighteningStrategy",487,ke,_ge,Rde),kne;b(281,22,{3:1,34:1,22:1,281:1},w6);var rH,Fsn,Bsn,YP,Rsn,Ksn,_sn=we(Tc,"FixedAlignment",281,ke,y4e,xde),yne;b(282,22,{3:1,34:1,22:1,282:1},g6);var Hsn,qsn,Usn,Gsn,N8,zsn,Xsn=we(Tc,"GraphCompactionStrategy",282,ke,j4e,Ode),jne;b(259,22,{3:1,34:1,22:1,259:1},Db);var mv,ZP,vv,cs,$8,nI,kv,v2,eI,x8,cH=we(Tc,"GraphProperties",259,ke,uve,Dde),Ene;b(298,22,{3:1,34:1,22:1,298:1},UD);var pj,uH,oH,sH=we(Tc,"GreedySwitchType",298,ke,K2e,Lde),Cne;b(311,22,{3:1,34:1,22:1,311:1},GD);var E3,mj,k2,Mne=we(Tc,"InLayerConstraint",311,ke,_2e,Nde),Tne;b(429,22,{3:1,34:1,22:1,429:1},Yz);var fH,Vsn,Wsn=we(Tc,"InteractiveReferencePoint",429,ke,Wge,$de),Ane,Jsn,C3,cb,tI,Qsn,Ysn,iI,Zsn,vj,rI,F8,M3,Nl,hH,cI,gc,nfn,ka,Hc,lH,aH,kj,Od,ub,T3,efn,A3,yj,$w,yf,Es,dH,y2,dt,st,tfn,ifn,rfn,cfn,ufn,bH,uI,Xu,ob,wH,S3,B8,zf,j2,sb,E2,C2,yv,Dd,ofn,gH,pH,P3;b(171,22,{3:1,34:1,22:1,171:1},h7);var R8,ya,K8,xw,jj,sfn=we(Tc,"LayerConstraint",171,ke,q3e,Kde),Sne;b(859,1,ms,n8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,rin),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),mfn),(l1(),Pt)),Lsn),yn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,cin),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(_n(),!1)),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,lS),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),Cfn),Pt),Wsn),yn(xn)))),ri(e,lS,fR,jee),ri(e,lS,c8,yee),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,uin),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,oin),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),yi),Gt),yn(xn)))),vn(e,new ln(Dhe(pn(gn(mn(Sn(an(wn(dn(bn(new hn,sin),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),yi),Gt),yn(Kd)),A(T(fn,1),J,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,fin),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),Dfn),Pt),_hn),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,hin),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Y(7)),Zr),Gi),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,lin),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,ain),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,fR),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),pfn),Pt),Osn),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,_y),LR),"Node Layering Strategy"),"Strategy for node layering."),Afn),Pt),Phn),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,din),LR),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),Mfn),Pt),sfn),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,bin),LR),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),Zr),Gi),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,win),LR),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Y(-1)),Zr),Gi),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,hR),YXn),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Y(4)),Zr),Gi),yn(xn)))),ri(e,hR,_y,Pee),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,lR),YXn),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Y(2)),Zr),Gi),yn(xn)))),ri(e,lR,_y,Oee),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,aR),ZXn),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),Tfn),Pt),Bhn),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,dR),ZXn),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Y(0)),Zr),Gi),yn(xn)))),ri(e,dR,aR,null),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,bR),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Y(et)),Zr),Gi),yn(xn)))),ri(e,bR,_y,Cee),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,c8),Vm),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),gfn),Pt),Asn),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,gin),Vm),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,wR),Vm),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Qi),si),yn(xn)))),ri(e,wR,CS,Vne),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,gR),Vm),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),yi),Gt),yn(xn)))),ri(e,gR,c8,nee),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,pin),Vm),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),$2),fn),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,min),Vm),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),$2),fn),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,vin),Vm),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),Zr),Gi),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,kin),Vm),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Y(-1)),Zr),Gi),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,yin),nVn),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Y(40)),Zr),Gi),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,pR),nVn),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),wfn),Pt),sH),yn(xn)))),ri(e,pR,c8,zne),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,aS),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),bfn),Pt),sH),yn(xn)))),ri(e,aS,c8,qne),ri(e,aS,CS,Une),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,c2),eVn),"Node Placement Strategy"),"Strategy for node placement."),Ofn),Pt),Lhn),yn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,dS),eVn),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),yi),Gt),yn(xn)))),ri(e,dS,c2,Hee),ri(e,dS,c2,qee),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,mR),tVn),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),Sfn),Pt),xsn),yn(xn)))),ri(e,mR,c2,Bee),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,vR),tVn),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),Pfn),Pt),_sn),yn(xn)))),ri(e,vR,c2,Kee),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,kR),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Qi),si),yn(xn)))),ri(e,kR,c2,Gee),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,yR),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),Pt),RH),yn(pi)))),ri(e,yR,c2,Wee),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,jR),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),Ifn),Pt),RH),yn(xn)))),ri(e,jR,c2,Vee),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,jin),iVn),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),yfn),Pt),Uhn),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Ein),iVn),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),jfn),Pt),Ghn),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,bS),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),Efn),Pt),Xhn),yn(xn)))),ri(e,bS,Hy,lee),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,wS),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Qi),si),yn(xn)))),ri(e,wS,Hy,dee),ri(e,wS,bS,bee),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,ER),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),Qi),si),yn(xn)))),ri(e,ER,Hy,oee),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Cin),qf),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Min),qf),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Tin),qf),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Ain),qf),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Sin),Bin),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Y(0)),Zr),Gi),yn(Ph)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Pin),Bin),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Y(0)),Zr),Gi),yn(Ph)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Iin),Bin),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Y(0)),Zr),Gi),yn(Ph)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,CR),Rin),vXn),"Tries to further compact components (disconnected sub-graphs)."),!1),yi),Gt),yn(xn)))),ri(e,CR,n8,!0),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Oin),rVn),"Post Compaction Strategy"),cVn),hfn),Pt),Xsn),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Din),rVn),"Post Compaction Constraint Calculation"),cVn),ffn),Pt),Msn),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,gS),Kin),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,MR),Kin),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Y(16)),Zr),Gi),yn(xn)))),ri(e,MR,gS,!0),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,TR),Kin),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Y(5)),Zr),Gi),yn(xn)))),ri(e,TR,gS,!0),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Ol),_in),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),$fn),Pt),Qhn),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,pS),_in),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),Qi),si),yn(xn)))),ri(e,pS,Ol,ste),ri(e,pS,Ol,fte),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,mS),_in),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),Qi),si),yn(xn)))),ri(e,mS,Ol,lte),ri(e,mS,Ol,ate),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,u8),uVn),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),Nfn),Pt),Psn),yn(xn)))),ri(e,u8,Ol,mte),ri(e,u8,Ol,vte),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,AR),uVn),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),Vf),rs),yn(xn)))),ri(e,AR,u8,bte),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,SR),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),Lfn),Zr),Gi),yn(xn)))),ri(e,SR,u8,gte),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,vS),oVn),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),xfn),Pt),Jhn),yn(xn)))),ri(e,vS,Ol,Ote),ri(e,vS,Ol,Dte),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,kS),oVn),"Valid Indices for Wrapping"),null),Vf),rs),yn(xn)))),ri(e,kS,Ol,Ste),ri(e,kS,Ol,Pte),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,yS),Hin),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),yi),Gt),yn(xn)))),ri(e,yS,Ol,Ete),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,jS),Hin),"Distance Penalty When Improving Cuts"),null),2),Qi),si),yn(xn)))),ri(e,jS,Ol,yte),ri(e,jS,yS,!0),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,PR),Hin),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),yi),Gt),yn(xn)))),ri(e,PR,Ol,Mte),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Lin),NR),"Edge Label Side Selection"),"Method to decide on edge label sides."),kfn),Pt),Nsn),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Nin),NR),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),vfn),Pt),bv),yt(xn,A(T(Zh,1),G,170,0,[E1]))))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,ES),o8),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),dfn),Pt),Khn),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,$in),o8),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,xin),o8),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),yi),Gt),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,IR),o8),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),lfn),Pt),Oon),yn(xn)))),ri(e,IR,n8,null),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Fin),o8),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),afn),Pt),Ohn),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,OR),o8),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),Qi),si),yn(xn)))),ri(e,OR,ES,null),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,DR),o8),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),Qi),si),yn(xn)))),ri(e,DR,ES,null),Czn((new e8n,e))};var Pne,Ine,One,ffn,Dne,hfn,Lne,lfn,Nne,$ne,xne,afn,Fne,Bne,Rne,dfn,Kne,_ne,Hne,bfn,qne,Une,Gne,wfn,zne,Xne,Vne,Wne,Jne,Qne,Yne,Zne,nee,eee,gfn,tee,pfn,iee,mfn,ree,vfn,cee,kfn,uee,oee,see,yfn,fee,jfn,hee,Efn,lee,aee,dee,bee,wee,gee,pee,mee,vee,kee,Cfn,yee,jee,Eee,Cee,Mee,Tee,Mfn,Aee,See,Pee,Iee,Oee,Dee,Lee,Tfn,Nee,Afn,$ee,xee,Fee,Sfn,Bee,Ree,Pfn,Kee,_ee,Hee,qee,Uee,Gee,zee,Xee,Ifn,Vee,Wee,Jee,Ofn,Qee,Dfn,Yee,Zee,nte,ete,tte,ite,rte,cte,ute,ote,ste,fte,hte,lte,ate,dte,bte,wte,Lfn,gte,pte,Nfn,mte,vte,kte,yte,jte,Ete,Cte,Mte,Tte,$fn,Ate,Ste,Pte,Ite,xfn,Ote,Dte;w(Tc,"LayeredMetaDataProvider",859),b(998,1,ms,e8n),o.hf=function(e){Czn(e)};var Th,mH,oI,_8,sI,Ffn,fI,Fw,hI,Bfn,Rfn,lI,vH,Yh,kH,fb,Kfn,Ej,yH,_fn,Lte,Nte,$te,aI,jH,H8,Ld,xte,Do,Hfn,qfn,dI,EH,Ah,bI,$l,Ufn,Gfn,zfn,CH,MH,Xfn,m1,TH,Vfn,Bw,Wfn,Jfn,Qfn,wI,Rw,Nd,Yfn,Zfn,Fr,nhn,Fte,ou,gI,ehn,thn,ihn,ja,$d,pI,rhn,chn,mI,hb,uhn,AH,q8,ohn,lb,U8,vI,xd,SH,jv,kI,Fd,shn,fhn,hhn,Ev,lhn,Bte,Rte,Kte,_te,ab,Kw,Kt,v1,Hte,_w,ahn,Cv,dhn,Hw,qte,Mv,bhn,I3,Ute,Gte,Cj,PH,whn,Mj,Ws,M2,T2,db,Bd,yI,qw,IH,Tv,Av,bb,A2,OH,Tj,G8,z8,zte,Xte,Vte,ghn,Wte,DH,phn,mhn,vhn,khn,LH,yhn,jhn,Ehn,Chn,NH,jI;w(Tc,"LayeredOptions",998),b(999,1,{},qpn),o.sf=function(){var e;return e=new qyn,e},o.tf=function(e){},w(Tc,"LayeredOptions/LayeredFactory",999),b(1391,1,{}),o.a=0;var Jte;w(dc,"ElkSpacings/AbstractSpacingsBuilder",1391),b(792,1391,{},zY);var EI,Qte;w(Tc,"LayeredSpacings/LayeredSpacingsBuilder",792),b(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},dg),o.dg=function(){return Rqn(this)},o.qg=function(){return Rqn(this)};var Sv,$H,Pv,Mhn,Thn,Ahn,CI,xH,Shn,Phn=we(Tc,"LayeringStrategy",265,ke,xme,_de),Yte;b(390,22,{3:1,34:1,22:1,390:1},zD);var FH,Ihn,MI,Ohn=we(Tc,"LongEdgeOrderingStrategy",390,ke,H2e,Hde),Zte;b(203,22,{3:1,34:1,22:1,203:1},bC);var S2,P2,TI,BH,RH=we(Tc,"NodeFlexibility",203,ke,Qpe,qde),nie;b(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},l7),o.dg=function(){return PHn(this)},o.qg=function(){return PHn(this)};var X8,KH,_H,V8,Dhn,Lhn=we(Tc,"NodePlacementStrategy",323,ke,H3e,Ude),eie;b(243,22,{3:1,34:1,22:1,243:1},Lb);var Nhn,wb,Uw,Aj,$hn,xhn,Sj,Fhn,AI,SI,Bhn=we(Tc,"NodePromotionStrategy",243,ke,ove,Gde),tie;b(284,22,{3:1,34:1,22:1,284:1},wC);var Rhn,k1,HH,qH,Khn=we(Tc,"OrderingStrategy",284,ke,Ype,zde),iie;b(430,22,{3:1,34:1,22:1,430:1},Zz);var UH,GH,_hn=we(Tc,"PortSortingStrategy",430,ke,Uge,Xde),rie;b(462,22,{3:1,34:1,22:1,462:1},XD);var Vu,Jc,W8,cie=we(Tc,"PortType",462,ke,q2e,Vde),uie;b(387,22,{3:1,34:1,22:1,387:1},VD);var Hhn,zH,qhn,Uhn=we(Tc,"SelfLoopDistributionStrategy",387,ke,U2e,Wde),oie;b(349,22,{3:1,34:1,22:1,349:1},WD);var XH,Pj,VH,Ghn=we(Tc,"SelfLoopOrderingStrategy",349,ke,G2e,Jde),sie;b(312,1,{312:1},yGn),w(Tc,"Spacings",312),b(350,22,{3:1,34:1,22:1,350:1},JD);var WH,zhn,J8,Xhn=we(Tc,"SplineRoutingMode",350,ke,z2e,Qde),fie;b(352,22,{3:1,34:1,22:1,352:1},QD);var JH,Vhn,Whn,Jhn=we(Tc,"ValidifyStrategy",352,ke,X2e,Yde),hie;b(388,22,{3:1,34:1,22:1,388:1},YD);var Gw,QH,Iv,Qhn=we(Tc,"WrappingStrategy",388,ke,V2e,Zde),lie;b(1398,1,vr,z5n),o.rg=function(e){return u(e,36),aie},o.Kf=function(e,t){DIe(this,u(e,36),t)};var aie;w(SS,"DepthFirstCycleBreaker",1398),b(793,1,vr,aW),o.rg=function(e){return u(e,36),die},o.Kf=function(e,t){$Le(this,u(e,36),t)},o.sg=function(e){return u(sn(e,cA(this.d,e.c.length)),10)};var die;w(SS,"GreedyCycleBreaker",793),b(1401,793,vr,RMn),o.sg=function(e){var t,i,r,c;for(c=null,t=et,r=new C(e);r.a1&&(on(un(v(Hi((Ln(0,e.c.length),u(e.c[0],10))),(cn(),fb))))?HHn(e,this.d,u(this,669)):(Dn(),Yt(e,this.d)),Hxn(this.e,e))},o.lg=function(e,t,i,r){var c,s,f,h,l,a,d;for(t!=cPn(i,e.length)&&(s=e[t-(i?1:-1)],_J(this.f,s,i?(gr(),Jc):(gr(),Vu))),c=e[t][0],d=!r||c.k==(Vn(),Zt),a=Of(e[t]),this.vg(a,d,!1,i),f=0,l=new C(a);l.a"),e0?DN(this.a,e[t-1],e[t]):!i&&t1&&(on(un(v(Hi((Ln(0,e.c.length),u(e.c[0],10))),(cn(),fb))))?HHn(e,this.d,this):(Dn(),Yt(e,this.d)),on(un(v(Hi((Ln(0,e.c.length),u(e.c[0],10))),fb)))||Hxn(this.e,e))},w(Nu,"ModelOrderBarycenterHeuristic",669),b(1866,1,Ne,H7n),o.Ne=function(e,t){return Oje(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Nu,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866),b(1423,1,vr,i8n),o.rg=function(e){var t;return u(e,36),t=OC(Pie),Ke(t,(Vi(),Oc),(tr(),FP)),t},o.Kf=function(e,t){bge((u(e,36),t))};var Pie;w(Nu,"NoCrossingMinimizer",1423),b(809,413,Ern,jz),o.tg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m;switch(g=this.g,i.g){case 1:{for(c=0,s=0,d=new C(e.j);d.a1&&(c.j==(en(),Zn)?this.b[e]=!0:c.j==Wn&&e>0&&(this.b[e-1]=!0))},o.f=0,w(Vh,"AllCrossingsCounter",1861),b(595,1,{},ET),o.b=0,o.d=0,w(Vh,"BinaryIndexedTree",595),b(532,1,{},D7);var nln,II;w(Vh,"CrossingsCounter",532),b(1950,1,Ne,q7n),o.Ne=function(e,t){return Kbe(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Vh,"CrossingsCounter/lambda$0$Type",1950),b(1951,1,Ne,U7n),o.Ne=function(e,t){return _be(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Vh,"CrossingsCounter/lambda$1$Type",1951),b(1952,1,Ne,G7n),o.Ne=function(e,t){return Hbe(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Vh,"CrossingsCounter/lambda$2$Type",1952),b(1953,1,Ne,z7n),o.Ne=function(e,t){return qbe(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Vh,"CrossingsCounter/lambda$3$Type",1953),b(1954,1,re,X7n),o.Cd=function(e){q4e(this.a,u(e,12))},w(Vh,"CrossingsCounter/lambda$4$Type",1954),b(1955,1,De,V7n),o.Mb=function(e){return ble(this.a,u(e,12))},w(Vh,"CrossingsCounter/lambda$5$Type",1955),b(1956,1,re,W7n),o.Cd=function(e){IMn(this,e)},w(Vh,"CrossingsCounter/lambda$6$Type",1956),b(1957,1,re,_Cn),o.Cd=function(e){var t;v4(),W1(this.b,(t=this.a,u(e,12),t))},w(Vh,"CrossingsCounter/lambda$7$Type",1957),b(839,1,ph,QU),o.Lb=function(e){return v4(),kt(u(e,12),(W(),Xu))},o.Fb=function(e){return this===e},o.Mb=function(e){return v4(),kt(u(e,12),(W(),Xu))},w(Vh,"CrossingsCounter/lambda$8$Type",839),b(1949,1,{},J7n),w(Vh,"HyperedgeCrossingsCounter",1949),b(477,1,{34:1,477:1},UAn),o.Fd=function(e){return H8e(this,u(e,477))},o.b=0,o.c=0,o.e=0,o.f=0;var jNe=w(Vh,"HyperedgeCrossingsCounter/Hyperedge",477);b(374,1,{34:1,374:1},EM),o.Fd=function(e){return tMe(this,u(e,374))},o.b=0,o.c=0;var Iie=w(Vh,"HyperedgeCrossingsCounter/HyperedgeCorner",374);b(531,22,{3:1,34:1,22:1,531:1},nX);var Y8,Z8,Oie=we(Vh,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,ke,Gge,e0e),Die;b(1425,1,vr,r8n),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Lie:null},o.Kf=function(e,t){dke(this,u(e,36),t)};var Lie;w(kr,"InteractiveNodePlacer",1425),b(1426,1,vr,c8n),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Nie:null},o.Kf=function(e,t){Q9e(this,u(e,36),t)};var Nie,OI,DI;w(kr,"LinearSegmentsNodePlacer",1426),b(261,1,{34:1,261:1},JG),o.Fd=function(e){return The(this,u(e,261))},o.Fb=function(e){var t;return D(e,261)?(t=u(e,261),this.b==t.b):!1},o.Hb=function(){return this.b},o.Ib=function(){return"ls"+ca(this.e)},o.a=0,o.b=0,o.c=-1,o.d=-1,o.g=0;var $ie=w(kr,"LinearSegmentsNodePlacer/LinearSegment",261);b(1428,1,vr,wPn),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?xie:null},o.Kf=function(e,t){TLe(this,u(e,36),t)},o.b=0,o.g=0;var xie;w(kr,"NetworkSimplexPlacer",1428),b(1447,1,Ne,Zpn),o.Ne=function(e,t){return jc(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(kr,"NetworkSimplexPlacer/0methodref$compare$Type",1447),b(1449,1,Ne,n3n),o.Ne=function(e,t){return jc(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(kr,"NetworkSimplexPlacer/1methodref$compare$Type",1449),b(655,1,{655:1},HCn);var ENe=w(kr,"NetworkSimplexPlacer/EdgeRep",655);b(412,1,{412:1},zW),o.b=!1;var CNe=w(kr,"NetworkSimplexPlacer/NodeRep",412);b(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},Yyn),w(kr,"NetworkSimplexPlacer/Path",515),b(1429,1,{},e3n),o.Kb=function(e){return u(e,18).d.i.k},w(kr,"NetworkSimplexPlacer/Path/lambda$0$Type",1429),b(1430,1,De,t3n),o.Mb=function(e){return u(e,273)==(Vn(),Mi)},w(kr,"NetworkSimplexPlacer/Path/lambda$1$Type",1430),b(1431,1,{},i3n),o.Kb=function(e){return u(e,18).d.i},w(kr,"NetworkSimplexPlacer/Path/lambda$2$Type",1431),b(1432,1,De,Q7n),o.Mb=function(e){return SAn(OBn(u(e,10)))},w(kr,"NetworkSimplexPlacer/Path/lambda$3$Type",1432),b(1433,1,De,r3n),o.Mb=function(e){return Cbe(u(e,12))},w(kr,"NetworkSimplexPlacer/lambda$0$Type",1433),b(1434,1,re,qCn),o.Cd=function(e){c1e(this.a,this.b,u(e,12))},w(kr,"NetworkSimplexPlacer/lambda$1$Type",1434),b(1443,1,re,Y7n),o.Cd=function(e){OEe(this.a,u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$10$Type",1443),b(1444,1,{},c3n),o.Kb=function(e){return ko(),new Tn(null,new In(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$11$Type",1444),b(1445,1,re,Z7n),o.Cd=function(e){MAe(this.a,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$12$Type",1445),b(1446,1,{},u3n),o.Kb=function(e){return ko(),Y(u(e,125).e)},w(kr,"NetworkSimplexPlacer/lambda$13$Type",1446),b(1448,1,{},o3n),o.Kb=function(e){return ko(),Y(u(e,125).e)},w(kr,"NetworkSimplexPlacer/lambda$15$Type",1448),b(1450,1,De,s3n),o.Mb=function(e){return ko(),u(e,412).c.k==(Vn(),zt)},w(kr,"NetworkSimplexPlacer/lambda$17$Type",1450),b(1451,1,De,f3n),o.Mb=function(e){return ko(),u(e,412).c.j.c.length>1},w(kr,"NetworkSimplexPlacer/lambda$18$Type",1451),b(1452,1,re,EIn),o.Cd=function(e){h8e(this.c,this.b,this.d,this.a,u(e,412))},o.c=0,o.d=0,w(kr,"NetworkSimplexPlacer/lambda$19$Type",1452),b(1435,1,{},h3n),o.Kb=function(e){return ko(),new Tn(null,new In(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$2$Type",1435),b(1453,1,re,nkn),o.Cd=function(e){o1e(this.a,u(e,12))},o.a=0,w(kr,"NetworkSimplexPlacer/lambda$20$Type",1453),b(1454,1,{},l3n),o.Kb=function(e){return ko(),new Tn(null,new In(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$21$Type",1454),b(1455,1,re,ekn),o.Cd=function(e){v1e(this.a,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$22$Type",1455),b(1456,1,De,a3n),o.Mb=function(e){return SAn(e)},w(kr,"NetworkSimplexPlacer/lambda$23$Type",1456),b(1457,1,{},d3n),o.Kb=function(e){return ko(),new Tn(null,new In(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$24$Type",1457),b(1458,1,De,tkn),o.Mb=function(e){return Sle(this.a,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$25$Type",1458),b(1459,1,re,UCn),o.Cd=function(e){$je(this.a,this.b,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$26$Type",1459),b(1460,1,De,b3n),o.Mb=function(e){return ko(),!fr(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$27$Type",1460),b(1461,1,De,w3n),o.Mb=function(e){return ko(),!fr(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$28$Type",1461),b(1462,1,{},ikn),o.Ve=function(e,t){return u1e(this.a,u(e,30),u(t,30))},w(kr,"NetworkSimplexPlacer/lambda$29$Type",1462),b(1436,1,{},g3n),o.Kb=function(e){return ko(),new Tn(null,new w0(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(kr,"NetworkSimplexPlacer/lambda$3$Type",1436),b(1437,1,De,p3n),o.Mb=function(e){return ko(),xpe(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$4$Type",1437),b(1438,1,re,rkn),o.Cd=function(e){NPe(this.a,u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$5$Type",1438),b(1439,1,{},m3n),o.Kb=function(e){return ko(),new Tn(null,new In(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$6$Type",1439),b(1440,1,De,v3n),o.Mb=function(e){return ko(),u(e,10).k==(Vn(),zt)},w(kr,"NetworkSimplexPlacer/lambda$7$Type",1440),b(1441,1,{},k3n),o.Kb=function(e){return ko(),new Tn(null,new w0(new ie(ce(Cl(u(e,10)).a.Kc(),new En))))},w(kr,"NetworkSimplexPlacer/lambda$8$Type",1441),b(1442,1,De,y3n),o.Mb=function(e){return ko(),Ebe(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$9$Type",1442),b(1424,1,vr,u8n),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Fie:null},o.Kf=function(e,t){bIe(u(e,36),t)};var Fie;w(kr,"SimpleNodePlacer",1424),b(185,1,{185:1},Wg),o.Ib=function(){var e;return e="",this.c==(fh(),gb)?e+=f3:this.c==y1&&(e+=s3),this.o==(Pf(),Rd)?e+=_B:this.o==Xf?e+="UP":e+="BALANCED",e},w(da,"BKAlignedLayout",185),b(523,22,{3:1,34:1,22:1,523:1},eX);var y1,gb,Bie=we(da,"BKAlignedLayout/HDirection",523,ke,zge,t0e),Rie;b(522,22,{3:1,34:1,22:1,522:1},tX);var Rd,Xf,Kie=we(da,"BKAlignedLayout/VDirection",522,ke,Xge,i0e),_ie;b(1699,1,{},GCn),w(da,"BKAligner",1699),b(1702,1,{},tKn),w(da,"BKCompactor",1702),b(663,1,{663:1},j3n),o.a=0,w(da,"BKCompactor/ClassEdge",663),b(466,1,{466:1},Wyn),o.a=null,o.b=0,w(da,"BKCompactor/ClassNode",466),b(1427,1,vr,WCn),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Hie:null},o.Kf=function(e,t){ULe(this,u(e,36),t)},o.d=!1;var Hie;w(da,"BKNodePlacer",1427),b(1700,1,{},E3n),o.d=0,w(da,"NeighborhoodInformation",1700),b(1701,1,Ne,ckn),o.Ne=function(e,t){return mme(this,u(e,42),u(t,42))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(da,"NeighborhoodInformation/NeighborComparator",1701),b(823,1,{}),w(da,"ThresholdStrategy",823),b(1825,823,{},Jyn),o.wg=function(e,t,i){return this.a.o==(Pf(),Xf)?St:li},o.xg=function(){},w(da,"ThresholdStrategy/NullThresholdStrategy",1825),b(587,1,{587:1},JCn),o.c=!1,o.d=!1,w(da,"ThresholdStrategy/Postprocessable",587),b(1826,823,{},Qyn),o.wg=function(e,t,i){var r,c,s;return c=t==i,r=this.a.a[i.p]==t,c||r?(s=e,this.a.c==(fh(),gb)?(c&&(s=KF(this,t,!0)),!isNaN(s)&&!isFinite(s)&&r&&(s=KF(this,i,!1))):(c&&(s=KF(this,t,!0)),!isNaN(s)&&!isFinite(s)&&r&&(s=KF(this,i,!1))),s):e},o.xg=function(){for(var e,t,i,r,c;this.d.b!=0;)c=u(f2e(this.d),587),r=PUn(this,c),r.a&&(e=r.a,i=on(this.a.f[this.a.g[c.b.p].p]),!(!i&&!fr(e)&&e.c.i.c==e.d.i.c)&&(t=NHn(this,c),t||Ole(this.e,c)));for(;this.e.a.c.length!=0;)NHn(this,u(NFn(this.e),587))},w(da,"ThresholdStrategy/SimpleThresholdStrategy",1826),b(645,1,{645:1,188:1,196:1},C3n),o.dg=function(){return qxn(this)},o.qg=function(){return qxn(this)};var YH;w(RR,"EdgeRouterFactory",645),b(1485,1,vr,o8n),o.rg=function(e){return eAe(u(e,36))},o.Kf=function(e,t){yIe(u(e,36),t)};var qie,Uie,Gie,zie,Xie,eln,Vie,Wie;w(RR,"OrthogonalEdgeRouter",1485),b(1478,1,vr,VCn),o.rg=function(e){return Eke(u(e,36))},o.Kf=function(e,t){UDe(this,u(e,36),t)};var Jie,Qie,Yie,Zie,Oj,nre;w(RR,"PolylineEdgeRouter",1478),b(1479,1,ph,T3n),o.Lb=function(e){return qQ(u(e,10))},o.Fb=function(e){return this===e},o.Mb=function(e){return qQ(u(e,10))},w(RR,"PolylineEdgeRouter/1",1479),b(1872,1,De,A3n),o.Mb=function(e){return u(e,132).c==(af(),Ea)},w(mf,"HyperEdgeCycleDetector/lambda$0$Type",1872),b(1873,1,{},S3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$1$Type",1873),b(1874,1,De,P3n),o.Mb=function(e){return u(e,132).c==(af(),Ea)},w(mf,"HyperEdgeCycleDetector/lambda$2$Type",1874),b(1875,1,{},I3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$3$Type",1875),b(1876,1,{},O3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$4$Type",1876),b(1877,1,{},M3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$5$Type",1877),b(118,1,{34:1,118:1},kk),o.Fd=function(e){return Ahe(this,u(e,118))},o.Fb=function(e){var t;return D(e,118)?(t=u(e,118),this.g==t.g):!1},o.Hb=function(){return this.g},o.Ib=function(){var e,t,i,r;for(e=new mo("{"),r=new C(this.n);r.a"+this.b+" ("+z1e(this.c)+")"},o.d=0,w(mf,"HyperEdgeSegmentDependency",132),b(528,22,{3:1,34:1,22:1,528:1},iX);var Ea,zw,ere=we(mf,"HyperEdgeSegmentDependency/DependencyType",528,ke,Vge,r0e),tre;b(1878,1,{},ukn),w(mf,"HyperEdgeSegmentSplitter",1878),b(1879,1,{},Yjn),o.a=0,o.b=0,w(mf,"HyperEdgeSegmentSplitter/AreaRating",1879),b(339,1,{339:1},KL),o.a=0,o.b=0,o.c=0,w(mf,"HyperEdgeSegmentSplitter/FreeArea",339),b(1880,1,Ne,D3n),o.Ne=function(e,t){return zae(u(e,118),u(t,118))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(mf,"HyperEdgeSegmentSplitter/lambda$0$Type",1880),b(1881,1,re,CIn),o.Cd=function(e){k3e(this.a,this.d,this.c,this.b,u(e,118))},o.b=0,w(mf,"HyperEdgeSegmentSplitter/lambda$1$Type",1881),b(1882,1,{},L3n),o.Kb=function(e){return new Tn(null,new In(u(e,118).e,16))},w(mf,"HyperEdgeSegmentSplitter/lambda$2$Type",1882),b(1883,1,{},N3n),o.Kb=function(e){return new Tn(null,new In(u(e,118).j,16))},w(mf,"HyperEdgeSegmentSplitter/lambda$3$Type",1883),b(1884,1,{},$3n),o.Ye=function(e){return $(R(e))},w(mf,"HyperEdgeSegmentSplitter/lambda$4$Type",1884),b(664,1,{},lN),o.a=0,o.b=0,o.c=0,w(mf,"OrthogonalRoutingGenerator",664),b(1703,1,{},x3n),o.Kb=function(e){return new Tn(null,new In(u(e,118).e,16))},w(mf,"OrthogonalRoutingGenerator/lambda$0$Type",1703),b(1704,1,{},F3n),o.Kb=function(e){return new Tn(null,new In(u(e,118).j,16))},w(mf,"OrthogonalRoutingGenerator/lambda$1$Type",1704),b(670,1,{}),w(KR,"BaseRoutingDirectionStrategy",670),b(1870,670,{},ejn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;if(!(e.r&&!e.q))for(d=t+e.o*i,a=new C(e.n);a.avh&&(s=d,c=e,r=new V(g,s),Fe(f.a,r),_0(this,f,c,r,!1),p=e.r,p&&(m=$(R(Zo(p.e,0))),r=new V(m,s),Fe(f.a,r),_0(this,f,c,r,!1),s=t+p.o*i,c=p,r=new V(m,s),Fe(f.a,r),_0(this,f,c,r,!1)),r=new V(j,s),Fe(f.a,r),_0(this,f,c,r,!1)))},o.zg=function(e){return e.i.n.a+e.n.a+e.a.a},o.Ag=function(){return en(),ae},o.Bg=function(){return en(),Xn},w(KR,"NorthToSouthRoutingStrategy",1870),b(1871,670,{},tjn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;if(!(e.r&&!e.q))for(d=t-e.o*i,a=new C(e.n);a.avh&&(s=d,c=e,r=new V(g,s),Fe(f.a,r),_0(this,f,c,r,!1),p=e.r,p&&(m=$(R(Zo(p.e,0))),r=new V(m,s),Fe(f.a,r),_0(this,f,c,r,!1),s=t-p.o*i,c=p,r=new V(m,s),Fe(f.a,r),_0(this,f,c,r,!1)),r=new V(j,s),Fe(f.a,r),_0(this,f,c,r,!1)))},o.zg=function(e){return e.i.n.a+e.n.a+e.a.a},o.Ag=function(){return en(),Xn},o.Bg=function(){return en(),ae},w(KR,"SouthToNorthRoutingStrategy",1871),b(1869,670,{},ijn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;if(!(e.r&&!e.q))for(d=t+e.o*i,a=new C(e.n);a.avh&&(s=d,c=e,r=new V(s,g),Fe(f.a,r),_0(this,f,c,r,!0),p=e.r,p&&(m=$(R(Zo(p.e,0))),r=new V(s,m),Fe(f.a,r),_0(this,f,c,r,!0),s=t+p.o*i,c=p,r=new V(s,m),Fe(f.a,r),_0(this,f,c,r,!0)),r=new V(s,j),Fe(f.a,r),_0(this,f,c,r,!0)))},o.zg=function(e){return e.i.n.b+e.n.b+e.a.b},o.Ag=function(){return en(),Zn},o.Bg=function(){return en(),Wn},w(KR,"WestToEastRoutingStrategy",1869),b(828,1,{},Ken),o.Ib=function(){return ca(this.a)},o.b=0,o.c=!1,o.d=!1,o.f=0,w(jw,"NubSpline",828),b(418,1,{418:1},dqn,tOn),w(jw,"NubSpline/PolarCP",418),b(1480,1,vr,VRn),o.rg=function(e){return aye(u(e,36))},o.Kf=function(e,t){fLe(this,u(e,36),t)};var ire,rre,cre,ure,ore;w(jw,"SplineEdgeRouter",1480),b(274,1,{274:1},XM),o.Ib=function(){return this.a+" ->("+this.c+") "+this.b},o.c=0,w(jw,"SplineEdgeRouter/Dependency",274),b(464,22,{3:1,34:1,22:1,464:1},rX);var Ca,I2,sre=we(jw,"SplineEdgeRouter/SideToProcess",464,ke,n2e,c0e),fre;b(1481,1,De,B3n),o.Mb=function(e){return x5(),!u(e,131).o},w(jw,"SplineEdgeRouter/lambda$0$Type",1481),b(1482,1,{},R3n),o.Ze=function(e){return x5(),u(e,131).v+1},w(jw,"SplineEdgeRouter/lambda$1$Type",1482),b(1483,1,re,QCn),o.Cd=function(e){Abe(this.a,this.b,u(e,42))},w(jw,"SplineEdgeRouter/lambda$2$Type",1483),b(1484,1,re,YCn),o.Cd=function(e){Sbe(this.a,this.b,u(e,42))},w(jw,"SplineEdgeRouter/lambda$3$Type",1484),b(131,1,{34:1,131:1},T_n,zen),o.Fd=function(e){return Ihe(this,u(e,131))},o.b=0,o.e=!1,o.f=0,o.g=0,o.j=!1,o.k=!1,o.n=0,o.o=!1,o.p=!1,o.q=!1,o.s=0,o.u=0,o.v=0,o.F=0,w(jw,"SplineSegment",131),b(467,1,{467:1},K3n),o.a=0,o.b=!1,o.c=!1,o.d=!1,o.e=!1,o.f=0,w(jw,"SplineSegment/EdgeInformation",467),b(1198,1,{},_3n),w(Ll,qtn,1198),b(1199,1,Ne,H3n),o.Ne=function(e,t){return VEe(u(e,121),u(t,121))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Ll,EXn,1199),b(1197,1,{},bEn),w(Ll,"MrTree",1197),b(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},gC),o.dg=function(){return V_n(this)},o.qg=function(){return V_n(this)};var LI,n9,e9,t9,tln=we(Ll,"TreeLayoutPhases",405,ke,i3e,u0e),hre;b(1112,205,yd,HAn),o.rf=function(e,t){var i,r,c,s,f,h,l,a;for(on(un(z(e,(lc(),Aln))))||LM((i=new z9((Ob(),new Sb(e))),i)),f=t.eh(qR),f.Ug("build tGraph",1),h=(l=new ek,Ur(l,e),U(l,(pt(),r9),e),a=new de,_Se(e,l,a),uPe(e,l,a),l),f.Vg(),f=t.eh(qR),f.Ug("Split graph",1),s=XSe(this.a,h),f.Vg(),c=new C(s);c.a"+td(this.c):"e_"+mt(this)},w(s8,"TEdge",65),b(121,137,{3:1,121:1,96:1,137:1},ek),o.Ib=function(){var e,t,i,r,c;for(c=null,r=ge(this.b,0);r.b!=r.d.c;)i=u(be(r),39),c+=(i.c==null||i.c.length==0?"n_"+i.g:"n_"+i.c)+` +`;for(t=ge(this.a,0);t.b!=t.d.c;)e=u(be(t),65),c+=(e.b&&e.c?td(e.b)+"->"+td(e.c):"e_"+mt(e))+` +`;return c};var MNe=w(s8,"TGraph",121);b(643,508,{3:1,508:1,643:1,96:1,137:1}),w(s8,"TShape",643),b(39,643,{3:1,508:1,39:1,643:1,96:1,137:1},q$),o.Ib=function(){return td(this)};var NI=w(s8,"TNode",39);b(236,1,qh,sl),o.Jc=function(e){qi(this,e)},o.Kc=function(){var e;return e=ge(this.a.d,0),new sg(e)},w(s8,"TNode/2",236),b(329,1,Si,sg),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(be(this.a),65).c},o.Ob=function(){return Q9(this.a)},o.Qb=function(){p$(this.a)},w(s8,"TNode/2/1",329),b(1923,1,vt,W3n),o.Kf=function(e,t){RLe(this,u(e,121),t)},w(Rc,"CompactionProcessor",1923),b(1924,1,Ne,lkn),o.Ne=function(e,t){return Tve(this.a,u(e,39),u(t,39))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Rc,"CompactionProcessor/lambda$0$Type",1924),b(1925,1,De,nMn),o.Mb=function(e){return Dge(this.b,this.a,u(e,42))},o.a=0,o.b=0,w(Rc,"CompactionProcessor/lambda$1$Type",1925),b(1934,1,Ne,J3n),o.Ne=function(e,t){return Ewe(u(e,39),u(t,39))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Rc,"CompactionProcessor/lambda$10$Type",1934),b(1935,1,Ne,Q3n),o.Ne=function(e,t){return F1e(u(e,39),u(t,39))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Rc,"CompactionProcessor/lambda$11$Type",1935),b(1936,1,Ne,Y3n),o.Ne=function(e,t){return Cwe(u(e,39),u(t,39))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Rc,"CompactionProcessor/lambda$12$Type",1936),b(1926,1,De,akn),o.Mb=function(e){return k1e(this.a,u(e,42))},o.a=0,w(Rc,"CompactionProcessor/lambda$2$Type",1926),b(1927,1,De,dkn),o.Mb=function(e){return y1e(this.a,u(e,42))},o.a=0,w(Rc,"CompactionProcessor/lambda$3$Type",1927),b(1928,1,De,Z3n),o.Mb=function(e){return u(e,39).c.indexOf(IS)==-1},w(Rc,"CompactionProcessor/lambda$4$Type",1928),b(1929,1,{},bkn),o.Kb=function(e){return Npe(this.a,u(e,39))},o.a=0,w(Rc,"CompactionProcessor/lambda$5$Type",1929),b(1930,1,{},wkn),o.Kb=function(e){return H4e(this.a,u(e,39))},o.a=0,w(Rc,"CompactionProcessor/lambda$6$Type",1930),b(1931,1,Ne,gkn),o.Ne=function(e,t){return Z3e(this.a,u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Rc,"CompactionProcessor/lambda$7$Type",1931),b(1932,1,Ne,pkn),o.Ne=function(e,t){return n4e(this.a,u(e,39),u(t,39))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Rc,"CompactionProcessor/lambda$8$Type",1932),b(1933,1,Ne,n4n),o.Ne=function(e,t){return B1e(u(e,39),u(t,39))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Rc,"CompactionProcessor/lambda$9$Type",1933),b(1921,1,vt,e4n),o.Kf=function(e,t){$Ae(u(e,121),t)},w(Rc,"DirectionProcessor",1921),b(1913,1,vt,_An),o.Kf=function(e,t){rPe(this,u(e,121),t)},w(Rc,"FanProcessor",1913),b(1937,1,vt,t4n),o.Kf=function(e,t){EAe(u(e,121),t)},w(Rc,"GraphBoundsProcessor",1937),b(1938,1,{},i4n),o.Ye=function(e){return u(e,39).e.a},w(Rc,"GraphBoundsProcessor/lambda$0$Type",1938),b(1939,1,{},r4n),o.Ye=function(e){return u(e,39).e.b},w(Rc,"GraphBoundsProcessor/lambda$1$Type",1939),b(1940,1,{},c4n),o.Ye=function(e){return ile(u(e,39))},w(Rc,"GraphBoundsProcessor/lambda$2$Type",1940),b(1941,1,{},u4n),o.Ye=function(e){return tle(u(e,39))},w(Rc,"GraphBoundsProcessor/lambda$3$Type",1941),b(262,22,{3:1,34:1,22:1,262:1,196:1},r0),o.dg=function(){switch(this.g){case 0:return new pjn;case 1:return new _An;case 2:return new gjn;case 3:return new l4n;case 4:return new s4n;case 8:return new o4n;case 5:return new e4n;case 6:return new d4n;case 7:return new W3n;case 9:return new t4n;case 10:return new b4n;default:throw M(new Gn(cR+(this.f!=null?this.f:""+this.g)))}};var iln,rln,cln,uln,oln,sln,fln,hln,lln,aln,ZH,TNe=we(Rc,uR,262,ke,$xn,o0e),lre;b(1920,1,vt,o4n),o.Kf=function(e,t){xDe(u(e,121),t)},w(Rc,"LevelCoordinatesProcessor",1920),b(1918,1,vt,s4n),o.Kf=function(e,t){iTe(this,u(e,121),t)},o.a=0,w(Rc,"LevelHeightProcessor",1918),b(1919,1,qh,f4n),o.Jc=function(e){qi(this,e)},o.Kc=function(){return Dn(),h4(),sv},w(Rc,"LevelHeightProcessor/1",1919),b(1914,1,vt,gjn),o.Kf=function(e,t){pAe(this,u(e,121),t)},w(Rc,"LevelProcessor",1914),b(1915,1,De,h4n),o.Mb=function(e){return on(un(v(u(e,39),(pt(),Ma))))},w(Rc,"LevelProcessor/lambda$0$Type",1915),b(1916,1,vt,l4n),o.Kf=function(e,t){nEe(this,u(e,121),t)},o.a=0,w(Rc,"NeighborsProcessor",1916),b(1917,1,qh,a4n),o.Jc=function(e){qi(this,e)},o.Kc=function(){return Dn(),h4(),sv},w(Rc,"NeighborsProcessor/1",1917),b(1922,1,vt,d4n),o.Kf=function(e,t){iPe(this,u(e,121),t)},o.a=0,w(Rc,"NodePositionProcessor",1922),b(1912,1,vt,pjn),o.Kf=function(e,t){BIe(this,u(e,121),t)},w(Rc,"RootProcessor",1912),b(1942,1,vt,b4n),o.Kf=function(e,t){N9e(u(e,121),t)},w(Rc,"Untreeifyer",1942),b(392,22,{3:1,34:1,22:1,392:1},eL);var Dj,nq,dln,bln=we(Uy,"EdgeRoutingMode",392,ke,J2e,s0e),are,Lj,Ov,eq,wln,gln,tq,iq,pln,rq,mln,cq,i9,uq,$I,xI,Js,jf,Dv,r9,c9,j1,vln,dre,oq,Ma,Nj,$j;b(862,1,ms,s8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Trn),""),wVn),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(_n(),!1)),(l1(),yi)),Gt),yn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Arn),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Srn),""),"Tree Level"),"The index for the tree level the node is in"),Y(0)),Zr),Gi),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Prn),""),wVn),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),Y(-1)),Zr),Gi),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Irn),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),jln),Pt),Nln),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Orn),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),kln),Pt),bln),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Drn),""),"Search Order"),"Which search order to use when computing a spanning tree."),yln),Pt),xln),yn(xn)))),rzn((new l8n,e))};var bre,wre,gre,kln,pre,mre,yln,vre,kre,jln;w(Uy,"MrTreeMetaDataProvider",862),b(1006,1,ms,l8n),o.hf=function(e){rzn(e)};var yre,Eln,Cln,pb,Mln,Tln,sq,jre,Ere,Cre,Mre,Tre,Are,Sre,Aln,Sln,Pln,Pre,O2,FI,Iln,Ire,Oln,fq,Ore,Dre,Lre,Dln,Nre,Sh,Lln;w(Uy,"MrTreeOptions",1006),b(1007,1,{},w4n),o.sf=function(){var e;return e=new HAn,e},o.tf=function(e){},w(Uy,"MrTreeOptions/MrtreeFactory",1007),b(353,22,{3:1,34:1,22:1,353:1},pC);var hq,BI,lq,aq,Nln=we(Uy,"OrderWeighting",353,ke,r3e,f0e),$re;b(433,22,{3:1,34:1,22:1,433:1},cX);var $ln,dq,xln=we(Uy,"TreeifyingOrder",433,ke,Yge,h0e),xre;b(1486,1,vr,a8n),o.rg=function(e){return u(e,121),Fre},o.Kf=function(e,t){bve(this,u(e,121),t)};var Fre;w("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1486),b(1487,1,vr,d8n),o.rg=function(e){return u(e,121),Bre},o.Kf=function(e,t){yAe(this,u(e,121),t)};var Bre;w(Wm,"NodeOrderer",1487),b(1494,1,{},_se),o.td=function(e){return VSn(e)},w(Wm,"NodeOrderer/0methodref$lambda$6$Type",1494),b(1488,1,De,O4n),o.Mb=function(e){return _p(),on(un(v(u(e,39),(pt(),Ma))))},w(Wm,"NodeOrderer/lambda$0$Type",1488),b(1489,1,De,D4n),o.Mb=function(e){return _p(),u(v(u(e,39),(lc(),O2)),17).a<0},w(Wm,"NodeOrderer/lambda$1$Type",1489),b(1490,1,De,vkn),o.Mb=function(e){return qme(this.a,u(e,39))},w(Wm,"NodeOrderer/lambda$2$Type",1490),b(1491,1,De,mkn),o.Mb=function(e){return Fpe(this.a,u(e,39))},w(Wm,"NodeOrderer/lambda$3$Type",1491),b(1492,1,Ne,L4n),o.Ne=function(e,t){return ame(u(e,39),u(t,39))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Wm,"NodeOrderer/lambda$4$Type",1492),b(1493,1,De,N4n),o.Mb=function(e){return _p(),u(v(u(e,39),(pt(),iq)),17).a!=0},w(Wm,"NodeOrderer/lambda$5$Type",1493),b(1495,1,vr,h8n),o.rg=function(e){return u(e,121),Rre},o.Kf=function(e,t){ISe(this,u(e,121),t)},o.b=0;var Rre;w("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495),b(1496,1,vr,f8n),o.rg=function(e){return u(e,121),Kre},o.Kf=function(e,t){lSe(u(e,121),t)};var Kre,ANe=w(po,"EdgeRouter",1496);b(1498,1,Ne,I4n),o.Ne=function(e,t){return jc(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(po,"EdgeRouter/0methodref$compare$Type",1498),b(1503,1,{},p4n),o.Ye=function(e){return $(R(e))},w(po,"EdgeRouter/1methodref$doubleValue$Type",1503),b(1505,1,Ne,m4n),o.Ne=function(e,t){return bt($(R(e)),$(R(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(po,"EdgeRouter/2methodref$compare$Type",1505),b(1507,1,Ne,v4n),o.Ne=function(e,t){return bt($(R(e)),$(R(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(po,"EdgeRouter/3methodref$compare$Type",1507),b(1509,1,{},g4n),o.Ye=function(e){return $(R(e))},w(po,"EdgeRouter/4methodref$doubleValue$Type",1509),b(1511,1,Ne,k4n),o.Ne=function(e,t){return bt($(R(e)),$(R(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(po,"EdgeRouter/5methodref$compare$Type",1511),b(1513,1,Ne,y4n),o.Ne=function(e,t){return bt($(R(e)),$(R(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(po,"EdgeRouter/6methodref$compare$Type",1513),b(1497,1,{},j4n),o.Kb=function(e){return kl(),u(v(u(e,39),(lc(),Sh)),17)},w(po,"EdgeRouter/lambda$0$Type",1497),b(1508,1,{},E4n),o.Kb=function(e){return Q1e(u(e,39))},w(po,"EdgeRouter/lambda$11$Type",1508),b(1510,1,{},eMn),o.Kb=function(e){return Mbe(this.b,this.a,u(e,39))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$13$Type",1510),b(1512,1,{},tMn),o.Kb=function(e){return Y1e(this.b,this.a,u(e,39))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$15$Type",1512),b(1514,1,Ne,C4n),o.Ne=function(e,t){return h9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(po,"EdgeRouter/lambda$17$Type",1514),b(1515,1,Ne,M4n),o.Ne=function(e,t){return l9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(po,"EdgeRouter/lambda$18$Type",1515),b(1516,1,Ne,T4n),o.Ne=function(e,t){return d9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(po,"EdgeRouter/lambda$19$Type",1516),b(1499,1,De,kkn),o.Mb=function(e){return b2e(this.a,u(e,39))},o.a=0,w(po,"EdgeRouter/lambda$2$Type",1499),b(1517,1,Ne,A4n),o.Ne=function(e,t){return a9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(po,"EdgeRouter/lambda$20$Type",1517),b(1500,1,Ne,S4n),o.Ne=function(e,t){return lbe(u(e,39),u(t,39))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(po,"EdgeRouter/lambda$3$Type",1500),b(1501,1,Ne,P4n),o.Ne=function(e,t){return abe(u(e,39),u(t,39))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(po,"EdgeRouter/lambda$4$Type",1501),b(1502,1,{},$4n),o.Kb=function(e){return Z1e(u(e,39))},w(po,"EdgeRouter/lambda$5$Type",1502),b(1504,1,{},iMn),o.Kb=function(e){return Tbe(this.b,this.a,u(e,39))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$7$Type",1504),b(1506,1,{},rMn),o.Kb=function(e){return nae(this.b,this.a,u(e,39))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$9$Type",1506),b(675,1,{675:1},xRn),o.e=0,o.f=!1,o.g=!1,w(po,"MultiLevelEdgeNodeNodeGap",675),b(1943,1,Ne,x4n),o.Ne=function(e,t){return C2e(u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(po,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943),b(1944,1,Ne,F4n),o.Ne=function(e,t){return M2e(u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(po,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944);var D2;b(500,22,{3:1,34:1,22:1,500:1,188:1,196:1},uX),o.dg=function(){return jBn(this)},o.qg=function(){return jBn(this)};var RI,L2,Fln=we(Lrn,"RadialLayoutPhases",500,ke,e2e,l0e),_re;b(1113,205,yd,dEn),o.rf=function(e,t){var i,r,c,s,f,h;if(i=sqn(this,e),t.Ug("Radial layout",i.c.length),on(un(z(e,(oa(),Vln))))||LM((r=new z9((Ob(),new Sb(e))),r)),h=wye(e),ht(e,(Tg(),D2),h),!h)throw M(new Gn("The given graph is not a tree!"));for(c=$(R(z(e,HI))),c==0&&(c=H_n(e)),ht(e,HI,c),f=new C(sqn(this,e));f.a=3)for(S=u(L(k,0),27),I=u(L(k,1),27),c=0;c+2=S.f+I.f+a||I.f>=j.f+S.f+a){O=!0;break}else++c;else O=!0;if(!O){for(g=k.i,f=new ne(k);f.e!=f.i.gc();)s=u(ue(f),27),ht(s,(He(),Wj),Y(g)),--g;BUn(e,new op),t.Vg();return}for(i=(H7(this.a),hf(this.a,(XT(),Fj),u(z(e,C1n),188)),hf(this.a,qI,u(z(e,m1n),188)),hf(this.a,Mq,u(z(e,y1n),188)),CX(this.a,(_=new ii,Ke(_,Fj,(rA(),Sq)),Ke(_,qI,Aq),on(un(z(e,w1n)))&&Ke(_,Fj,Tq),_)),wy(this.a,e)),l=1/i.c.length,m=new C(i);m.a0&&zFn((zn(t-1,e.length),e.charCodeAt(t-1)),NXn);)--t;if(r>=t)throw M(new Gn("The given string does not contain any numbers."));if(c=ww((Fi(r,t,e.length),e.substr(r,t-r)),`,|;|\r| +`),c.length!=2)throw M(new Gn("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=sw(fw(c[0])),this.b=sw(fw(c[1]))}catch(s){throw s=It(s),D(s,130)?(i=s,M(new Gn($Xn+i))):M(s)}},o.Ib=function(){return"("+this.a+","+this.b+")"},o.a=0,o.b=0;var Ei=w(Ry,"KVector",8);b(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},Mu,UE,lAn),o.Pc=function(){return O6e(this)},o.cg=function(e){var t,i,r,c,s,f;r=ww(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | +`),vo(this);try{for(i=0,s=0,c=0,f=0;i0&&(s%2==0?c=sw(r[i]):f=sw(r[i]),s>0&&s%2!=0&&Fe(this,new V(c,f)),++s),++i}catch(h){throw h=It(h),D(h,130)?(t=h,M(new Gn("The given string does not match the expected format for vectors."+t))):M(h)}},o.Ib=function(){var e,t,i;for(e=new mo("("),t=ge(this,0);t.b!=t.d.c;)i=u(be(t),8),Re(e,i.a+","+i.b),t.b!=t.d.c&&(e.a+="; ");return(e.a+=")",e).a};var oan=w(Ry,"KVectorChain",75);b(255,22,{3:1,34:1,22:1,255:1},p6);var Xq,ZI,nO,Hj,qj,eO,san=we(uo,"Alignment",255,ke,S4e,$0e),yue;b(991,1,ms,j8n),o.hf=function(e){yUn(e)};var fan,Vq,jue,han,lan,Eue,aan,Cue,Mue,dan,ban,Tue;w(uo,"BoxLayouterOptions",991),b(992,1,{},Gmn),o.sf=function(){var e;return e=new Vmn,e},o.tf=function(e){},w(uo,"BoxLayouterOptions/BoxFactory",992),b(297,22,{3:1,34:1,22:1,297:1},m6);var b9,Wq,w9,g9,p9,Jq,Qq=we(uo,"ContentAlignment",297,ke,P4e,x0e),Aue;b(699,1,ms,rG),o.hf=function(e){vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,xVn),""),"Layout Algorithm"),"Select a specific layout algorithm."),(l1(),$2)),fn),yn((pf(),xn))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,FVn),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),Vf),INe),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,trn),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),wan),Pt),san),yn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,l3),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,wcn),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),Vf),oan),yn(Ph)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,MS),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),pan),D3),Qq),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,qy),""),"Debug Mode"),"Whether additional debug information shall be generated."),(_n(),!1)),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,xR),""),xtn),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),man),Pt),k9),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Hy),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),yan),Pt),lU),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,dcn),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,CS),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),Can),Pt),hdn),yt(xn,A(T(Zh,1),G,170,0,[pi]))))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,X0),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),Lan),Vf),Lon),yt(xn,A(T(Zh,1),G,170,0,[pi]))))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,e8),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,AS),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,t8),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,tR),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),Ban),Pt),ddn),yn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,TS),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),Vf),Ei),yt(pi,A(T(Zh,1),G,170,0,[Kd,E1]))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Ly),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Zr),Gi),yt(pi,A(T(Zh,1),G,170,0,[Ph]))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,uS),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),Zr),Gi),yn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,n8),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,drn),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),Man),Vf),oan),yn(Ph)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,grn),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),yi),Gt),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,prn),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),yi),Gt),yn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,iNe),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),Vf),$Ne),yt(xn,A(T(Zh,1),G,170,0,[E1]))))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,vrn),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),Tan),Vf),Don),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,nrn),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),yi),Gt),yt(pi,A(T(Zh,1),G,170,0,[Ph,Kd,E1]))))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,BVn),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),Qi),si),yn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,RVn),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,KVn),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Ny),""),OVn),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),yi),Gt),yn(xn)))),ri(e,Ny,V0,null),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,_Vn),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,HVn),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Y(100)),Zr),Gi),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,qVn),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,UVn),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Y(4e3)),Zr),Gi),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,GVn),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Y(400)),Zr),Gi),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,zVn),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,XVn),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,VVn),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,WVn),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,bcn),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),gan),Pt),Edn),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,qin),qf),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Uin),qf),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,WB),qf),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Gin),qf),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,eR),qf),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,$R),qf),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,zin),qf),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Win),qf),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Xin),qf),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Vin),qf),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,yw),qf),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Jin),qf),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Qin),qf),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Qi),si),yt(xn,A(T(Zh,1),G,170,0,[pi]))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Yin),qf),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),Vf),boe),yt(pi,A(T(Zh,1),G,170,0,[Ph,Kd,E1]))))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,krn),qf),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),Wan),Vf),Don),yn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,BR),YVn),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),Zr),Gi),yt(xn,A(T(Zh,1),G,170,0,[pi]))))),ri(e,BR,FR,xue),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,FR),YVn),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),Nan),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,crn),ZVn),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),San),Vf),Lon),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,zm),ZVn),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),Pan),D3),yr),yt(pi,A(T(Zh,1),G,170,0,[E1]))))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,srn),FS),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),xan),Pt),C9),yn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,frn),FS),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),Pt),C9),yn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,hrn),FS),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),Pt),C9),yn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,lrn),FS),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),Pt),C9),yn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,arn),FS),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),Pt),C9),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,r2),uK),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),Ian),D3),A9),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,a3),uK),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),Dan),D3),wdn),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,d3),uK),"Node Size Minimum"),"The minimal size to which a node can be reduced."),Oan),Vf),Ei),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Gm),uK),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),yi),Gt),yn(xn)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,brn),NR),"Edge Label Placement"),"Gives a hint on where to put edge labels."),van),Pt),Yan),yn(E1)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,oS),NR),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),yi),Gt),yn(E1)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,rNe),"font"),"Font Name"),"Font name used for a label."),$2),fn),yn(E1)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,JVn),"font"),"Font Size"),"Font size used for a label."),Zr),Gi),yn(E1)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,mrn),oK),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),Vf),Ei),yn(Kd)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,wrn),oK),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),Zr),Gi),yn(Kd)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,ern),oK),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),_an),Pt),lr),yn(Kd)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Zin),oK),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),Qi),si),yn(Kd)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Xm),mcn),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),Ran),D3),oO),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,urn),mcn),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),yi),Gt),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,orn),mcn),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),yi),Gt),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,$y),zy),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),Qi),si),yn(xn)))),ri(e,$y,V0,Uue),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,gcn),zy),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),Pt),dO),yn(pi)))),ri(e,gcn,V0,Gue),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,xy),zy),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),Qi),si),yt(xn,A(T(Zh,1),G,170,0,[pi]))))),ri(e,xy,V0,null),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,Fy),zy),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),Qi),si),yt(xn,A(T(Zh,1),G,170,0,[pi]))))),ri(e,Fy,V0,null),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,V0),zy),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),Pt),pdn),yn(pi)))),ri(e,V0,Gm,null),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,pcn),zy),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),Qi),si),yn(xn)))),ri(e,pcn,V0,que),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,irn),nWn),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),yi),Gt),yn(pi)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,rrn),nWn),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),yi),Gt),yn(Ph)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,JB),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),Qi),si),yn(Ph)))),vn(e,new ln(pn(gn(mn(Sn(an(wn(dn(bn(new hn,QVn),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),Ean),Pt),rdn),yn(Ph)))),o6(e,new Np(t6(c4(r4(new tp,Yn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),o6(e,new Np(t6(c4(r4(new tp,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),o6(e,new Np(t6(c4(r4(new tp,cu),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),o6(e,new Np(t6(c4(r4(new tp,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),o6(e,new Np(t6(c4(r4(new tp,gVn),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),o6(e,new Np(t6(c4(r4(new tp,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),o6(e,new Np(t6(c4(r4(new tp,es),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),uUn((new E8n,e)),yUn((new j8n,e)),Nqn((new C8n,e))};var Nv,Sue,wan,x2,Pue,Iue,gan,F2,B2,Oue,Uj,pan,Gj,_d,man,Yq,Zq,van,kan,yan,jan,Ean,Due,R2,Can,Lue,zj,nU,Xj,eU,mb,Man,$v,Tan,Aan,San,K2,Pan,Hd,Ian,Vw,_2,Oan,Ta,Dan,tO,Vj,C1,Lan,Nue,Nan,$ue,xue,$an,xan,tU,iU,rU,cU,Fan,oo,m9,Ban,uU,oU,Ww,Ran,Kan,H2,_an,L3,Wj,sU,q2,Fue,fU,Bue,Rue,Han,Kue,qan,Uan,N3,Gan,iO,zan,Xan,qd,_ue,Van,Wan,Jan,rO,Jj,v9,$3,Hue,que,cO,Uue,Qan,Gue;w(uo,"CoreOptions",699),b(88,22,{3:1,34:1,22:1,88:1},p7);var Wf,Br,Xr,Jf,us,k9=we(uo,xtn,88,ke,L3e,F0e),zue;b(278,22,{3:1,34:1,22:1,278:1},fL);var xv,Jw,Fv,Yan=we(uo,"EdgeLabelPlacement",278,ke,upe,B0e),Xue;b(223,22,{3:1,34:1,22:1,223:1},vC);var Bv,Qj,x3,hU,lU=we(uo,"EdgeRouting",223,ke,s3e,R0e),Vue;b(321,22,{3:1,34:1,22:1,321:1},v6);var Zan,ndn,edn,tdn,aU,idn,rdn=we(uo,"EdgeType",321,ke,A4e,K0e),Wue;b(989,1,ms,E8n),o.hf=function(e){uUn(e)};var cdn,udn,odn,sdn,Jue,fdn,y9;w(uo,"FixedLayouterOptions",989),b(990,1,{},zmn),o.sf=function(){var e;return e=new ivn,e},o.tf=function(e){},w(uo,"FixedLayouterOptions/FixedFactory",990),b(346,22,{3:1,34:1,22:1,346:1},hL);var M1,uO,j9,hdn=we(uo,"HierarchyHandling",346,ke,spe,_0e),Que;b(290,22,{3:1,34:1,22:1,290:1},kC);var nl,Aa,Yj,Zj,Yue=we(uo,"LabelSide",290,ke,o3e,H0e),Zue;b(95,22,{3:1,34:1,22:1,95:1},bg);var xl,Qs,Cs,Ys,Lo,Zs,Ms,el,nf,yr=we(uo,"NodeLabelPlacement",95,ke,Sme,q0e),noe;b(256,22,{3:1,34:1,22:1,256:1},m7);var ldn,E9,Sa,adn,nE,C9=we(uo,"PortAlignment",256,ke,V3e,U0e),eoe;b(101,22,{3:1,34:1,22:1,101:1},k6);var Ud,qc,tl,Rv,Qf,Pa,ddn=we(uo,"PortConstraints",101,ke,T4e,G0e),toe;b(279,22,{3:1,34:1,22:1,279:1},y6);var M9,T9,Fl,eE,Ia,F3,oO=we(uo,"PortLabelPlacement",279,ke,M4e,z0e),ioe;b(64,22,{3:1,34:1,22:1,64:1},v7);var Zn,Xn,os,ss,pu,su,Yf,ef,Wu,xu,Uc,Ju,mu,vu,tf,No,$o,Ts,ae,sc,Wn,lr=we(uo,"PortSide",64,ke,N3e,X0e),roe;b(993,1,ms,C8n),o.hf=function(e){Nqn(e)};var coe,uoe,bdn,ooe,soe;w(uo,"RandomLayouterOptions",993),b(994,1,{},Xmn),o.sf=function(){var e;return e=new nvn,e},o.tf=function(e){},w(uo,"RandomLayouterOptions/RandomFactory",994),b(386,22,{3:1,34:1,22:1,386:1},yC);var Qw,tE,iE,Gd,A9=we(uo,"SizeConstraint",386,ke,u3e,V0e),foe;b(264,22,{3:1,34:1,22:1,264:1},wg);var rE,sO,Kv,dU,cE,S9,fO,hO,lO,wdn=we(uo,"SizeOptions",264,ke,Kme,W0e),hoe;b(280,22,{3:1,34:1,22:1,280:1},lL);var Yw,gdn,aO,pdn=we(uo,"TopdownNodeTypes",280,ke,ope,J0e),loe;b(347,22,vcn);var mdn,vdn,dO=we(uo,"TopdownSizeApproximator",347,ke,r2e,Y0e);b(987,347,vcn,XSn),o.Tg=function(e){return ERn(e)},we(uo,"TopdownSizeApproximator/1",987,dO,null,null),b(988,347,vcn,DPn),o.Tg=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X,tn,jn,kn,Kn;for(t=u(z(e,(He(),q2)),143),tn=(B1(),m=new Jv,m),cy(tn,e),jn=new de,s=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));s.e!=s.i.gc();)r=u(ue(s),27),O=(p=new Jv,p),SA(O,tn),cy(O,r),Kn=ERn(r),kg(O,y.Math.max(r.g,Kn.a),y.Math.max(r.f,Kn.b)),Vc(jn.f,r,O);for(c=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));c.e!=c.i.gc();)for(r=u(ue(c),27),d=new ne((!r.e&&(r.e=new Nn(Vt,r,7,4)),r.e));d.e!=d.i.gc();)a=u(ue(d),74),_=u(Kr(wr(jn.f,r)),27),X=u(ee(jn,L((!a.c&&(a.c=new Nn(he,a,5,8)),a.c),0)),27),N=(g=new HO,g),ve((!N.b&&(N.b=new Nn(he,N,4,7)),N.b),_),ve((!N.c&&(N.c=new Nn(he,N,5,8)),N.c),X),AA(N,At(_)),cy(N,a);j=u(z7(t.f),205);try{j.rf(tn,new uvn),fIn(t.f,j)}catch(Bn){throw Bn=It(Bn),D(Bn,103)?(k=Bn,M(k)):M(Bn)}return Lf(tn,B2)||Lf(tn,F2)||ctn(tn),l=$(R(z(tn,B2))),h=$(R(z(tn,F2))),f=l/h,i=$(R(z(tn,Jj)))*y.Math.sqrt((!tn.a&&(tn.a=new q(Ye,tn,10,11)),tn.a).i),kn=u(z(tn,C1),107),I=kn.b+kn.c+1,S=kn.d+kn.a+1,new V(y.Math.max(I,i),y.Math.max(S,i/f))},we(uo,"TopdownSizeApproximator/2",988,dO,null,null);var aoe;b(344,1,{871:1},op),o.Ug=function(e,t){return xKn(this,e,t)},o.Vg=function(){c_n(this)},o.Wg=function(){return this.q},o.Xg=function(){return this.f?TN(this.f):null},o.Yg=function(){return TN(this.a)},o.Zg=function(){return this.p},o.$g=function(){return!1},o._g=function(){return this.n},o.ah=function(){return this.p!=null&&!this.b},o.bh=function(e){var t;this.n&&(t=e,nn(this.f,t))},o.dh=function(e,t){var i,r;this.n&&e&&Cpe(this,(i=new UPn,r=IF(i,e),cDe(i),r),(LT(),wU))},o.eh=function(e){var t;return this.b?null:(t=fme(this,this.g),Fe(this.a,t),t.i=this,this.d=e,t)},o.fh=function(e){e>0&&!this.b&&EQ(this,e)},o.b=!1,o.c=0,o.d=-1,o.e=null,o.f=null,o.g=-1,o.j=!1,o.k=!1,o.n=!1,o.o=0,o.q=0,o.r=0,w(dc,"BasicProgressMonitor",344),b(717,205,yd,Vmn),o.rf=function(e,t){BUn(e,t)},w(dc,"BoxLayoutProvider",717),b(983,1,Ne,Dkn),o.Ne=function(e,t){return cTe(this,u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},o.a=!1,w(dc,"BoxLayoutProvider/1",983),b(163,1,{163:1},hT,pAn),o.Ib=function(){return this.c?yen(this.c):ca(this.b)},w(dc,"BoxLayoutProvider/Group",163),b(320,22,{3:1,34:1,22:1,320:1},jC);var kdn,ydn,jdn,bU,Edn=we(dc,"BoxLayoutProvider/PackingMode",320,ke,f3e,Z0e),doe;b(984,1,Ne,Wmn),o.Ne=function(e,t){return Cge(u(e,163),u(t,163))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(dc,"BoxLayoutProvider/lambda$0$Type",984),b(985,1,Ne,Jmn),o.Ne=function(e,t){return gge(u(e,163),u(t,163))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(dc,"BoxLayoutProvider/lambda$1$Type",985),b(986,1,Ne,Qmn),o.Ne=function(e,t){return pge(u(e,163),u(t,163))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(dc,"BoxLayoutProvider/lambda$2$Type",986),b(1384,1,{845:1},Ymn),o.Mg=function(e,t){return ZE(),!D(t,167)||mEn((qp(),u(e,167)),t)},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384),b(1385,1,re,Lkn),o.Cd=function(e){N6e(this.a,u(e,149))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385),b(1386,1,re,evn),o.Cd=function(e){u(e,96),ZE()},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386),b(1390,1,re,Nkn),o.Cd=function(e){tve(this.a,u(e,96))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390),b(1388,1,De,sMn),o.Mb=function(e){return w6e(this.a,this.b,u(e,149))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388),b(1387,1,De,fMn),o.Mb=function(e){return J1e(this.a,this.b,u(e,845))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387),b(1389,1,re,hMn),o.Cd=function(e){fwe(this.a,this.b,u(e,149))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389),b(947,1,{},tvn),o.Kb=function(e){return cTn(e)},o.Fb=function(e){return this===e},w(dc,"ElkUtil/lambda$0$Type",947),b(948,1,re,lMn),o.Cd=function(e){sCe(this.a,this.b,u(e,74))},o.a=0,o.b=0,w(dc,"ElkUtil/lambda$1$Type",948),b(949,1,re,aMn),o.Cd=function(e){Zfe(this.a,this.b,u(e,166))},o.a=0,o.b=0,w(dc,"ElkUtil/lambda$2$Type",949),b(950,1,re,dMn),o.Cd=function(e){Vle(this.a,this.b,u(e,135))},o.a=0,o.b=0,w(dc,"ElkUtil/lambda$3$Type",950),b(951,1,re,$kn),o.Cd=function(e){Ibe(this.a,u(e,377))},w(dc,"ElkUtil/lambda$4$Type",951),b(325,1,{34:1,325:1},Pfe),o.Fd=function(e){return E1e(this,u(e,242))},o.Fb=function(e){var t;return D(e,325)?(t=u(e,325),this.a==t.a):!1},o.Hb=function(){return wi(this.a)},o.Ib=function(){return this.a+" (exclusive)"},o.a=0,w(dc,"ExclusiveBounds/ExclusiveLowerBound",325),b(1119,205,yd,ivn),o.rf=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I,O,N,_,X,tn,jn,kn;for(t.Ug("Fixed Layout",1),s=u(z(e,(He(),kan)),223),g=0,p=0,O=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));O.e!=O.i.gc();){for(S=u(ue(O),27),kn=u(z(S,(NT(),y9)),8),kn&&(Ro(S,kn.a,kn.b),u(z(S,udn),181).Hc((go(),Qw))&&(m=u(z(S,sdn),8),m.a>0&&m.b>0&&q0(S,m.a,m.b,!0,!0))),g=y.Math.max(g,S.i+S.g),p=y.Math.max(p,S.j+S.f),a=new ne((!S.n&&(S.n=new q(Ar,S,1,7)),S.n));a.e!=a.i.gc();)h=u(ue(a),135),kn=u(z(h,y9),8),kn&&Ro(h,kn.a,kn.b),g=y.Math.max(g,S.i+h.i+h.g),p=y.Math.max(p,S.j+h.j+h.f);for(X=new ne((!S.c&&(S.c=new q(Qu,S,9,9)),S.c));X.e!=X.i.gc();)for(_=u(ue(X),123),kn=u(z(_,y9),8),kn&&Ro(_,kn.a,kn.b),tn=S.i+_.i,jn=S.j+_.j,g=y.Math.max(g,tn+_.g),p=y.Math.max(p,jn+_.f),l=new ne((!_.n&&(_.n=new q(Ar,_,1,7)),_.n));l.e!=l.i.gc();)h=u(ue(l),135),kn=u(z(h,y9),8),kn&&Ro(h,kn.a,kn.b),g=y.Math.max(g,tn+h.i+h.g),p=y.Math.max(p,jn+h.j+h.f);for(c=new ie(ce(Al(S).a.Kc(),new En));pe(c);)i=u(fe(c),74),d=YGn(i),g=y.Math.max(g,d.a),p=y.Math.max(p,d.b);for(r=new ie(ce(ry(S).a.Kc(),new En));pe(r);)i=u(fe(r),74),At(Kh(i))!=e&&(d=YGn(i),g=y.Math.max(g,d.a),p=y.Math.max(p,d.b))}if(s==(El(),Bv))for(I=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));I.e!=I.i.gc();)for(S=u(ue(I),27),r=new ie(ce(Al(S).a.Kc(),new En));pe(r);)i=u(fe(r),74),f=hPe(i),f.b==0?ht(i,mb,null):ht(i,mb,f);on(un(z(e,(NT(),odn))))||(N=u(z(e,Jue),107),j=g+N.b+N.c,k=p+N.d+N.a,q0(e,j,k,!0,!0)),t.Vg()},w(dc,"FixedLayoutProvider",1119),b(385,137,{3:1,423:1,385:1,96:1,137:1},_O,WNn),o.cg=function(e){var t,i,r,c,s,f,h,l,a;if(e)try{for(l=ww(e,";,;"),s=l,f=0,h=s.length;f>16&ui|t^r<<16},o.Kc=function(){return new xkn(this)},o.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+Jr(this.b)+")":this.b==null?"pair("+Jr(this.a)+",null)":"pair("+Jr(this.a)+","+Jr(this.b)+")"},w(dc,"Pair",42),b(995,1,Si,xkn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},o.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw M(new nc)},o.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),M(new Cu)},o.b=!1,o.c=!1,w(dc,"Pair/1",995),b(454,1,{454:1},MIn),o.Fb=function(e){return mc(this.a,u(e,454).a)&&mc(this.c,u(e,454).c)&&mc(this.d,u(e,454).d)&&mc(this.b,u(e,454).b)},o.Hb=function(){return Pk(A(T(ki,1),Fn,1,5,[this.a,this.c,this.d,this.b]))},o.Ib=function(){return"("+this.a+ur+this.c+ur+this.d+ur+this.b+")"},w(dc,"Quadruple",454),b(1108,205,yd,nvn),o.rf=function(e,t){var i,r,c,s,f;if(t.Ug("Random Layout",1),(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i==0){t.Vg();return}s=u(z(e,(QY(),ooe)),17),s&&s.a!=0?c=new qM(s.a):c=new dx,i=J9(R(z(e,coe))),f=J9(R(z(e,soe))),r=u(z(e,uoe),107),SDe(e,c,i,f,r),t.Vg()},w(dc,"RandomLayoutProvider",1108),b(240,1,{240:1},_L),o.Fb=function(e){return mc(this.a,u(e,240).a)&&mc(this.b,u(e,240).b)&&mc(this.c,u(e,240).c)},o.Hb=function(){return Pk(A(T(ki,1),Fn,1,5,[this.a,this.b,this.c]))},o.Ib=function(){return"("+this.a+ur+this.b+ur+this.c+")"},w(dc,"Triple",240);var poe;b(562,1,{}),o.Lf=function(){return new V(this.f.i,this.f.j)},o.of=function(e){return ZIn(e,(He(),oo))?z(this.f,moe):z(this.f,e)},o.Mf=function(){return new V(this.f.g,this.f.f)},o.Nf=function(){return this.g},o.pf=function(e){return Lf(this.f,e)},o.Of=function(e){eu(this.f,e.a),tu(this.f,e.b)},o.Pf=function(e){S0(this.f,e.a),A0(this.f,e.b)},o.Qf=function(e){this.g=e},o.g=0;var moe;w(l8,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562),b(563,1,{853:1},OE),o.Rf=function(){var e,t;if(!this.b)for(this.b=RM(yM(this.a).i),t=new ne(yM(this.a));t.e!=t.i.gc();)e=u(ue(t),135),nn(this.b,new pD(e));return this.b},o.b=null,w(l8,"ElkGraphAdapters/ElkEdgeAdapter",563),b(308,562,{},Sb),o.Sf=function(){return GRn(this)},o.a=null,w(l8,"ElkGraphAdapters/ElkGraphAdapter",308),b(640,562,{187:1},pD),w(l8,"ElkGraphAdapters/ElkLabelAdapter",640),b(639,562,{695:1},ML),o.Rf=function(){return w7e(this)},o.Vf=function(){var e;return e=u(z(this.f,(He(),$v)),140),!e&&(e=new Wv),e},o.Xf=function(){return g7e(this)},o.Zf=function(e){var t;t=new qL(e),ht(this.f,(He(),$v),t)},o.$f=function(e){ht(this.f,(He(),C1),new _V(e))},o.Tf=function(){return this.d},o.Uf=function(){var e,t;if(!this.a)for(this.a=new Z,t=new ie(ce(ry(u(this.f,27)).a.Kc(),new En));pe(t);)e=u(fe(t),74),nn(this.a,new OE(e));return this.a},o.Wf=function(){var e,t;if(!this.c)for(this.c=new Z,t=new ie(ce(Al(u(this.f,27)).a.Kc(),new En));pe(t);)e=u(fe(t),74),nn(this.c,new OE(e));return this.c},o.Yf=function(){return TM(u(this.f,27)).i!=0||on(un(u(this.f,27).of((He(),zj))))},o._f=function(){V4e(this,(Ob(),poe))},o.a=null,o.b=null,o.c=null,o.d=null,o.e=null,w(l8,"ElkGraphAdapters/ElkNodeAdapter",639),b(1284,562,{852:1},Fkn),o.Rf=function(){return C7e(this)},o.Uf=function(){var e,t;if(!this.a)for(this.a=Dh(u(this.f,123).hh().i),t=new ne(u(this.f,123).hh());t.e!=t.i.gc();)e=u(ue(t),74),nn(this.a,new OE(e));return this.a},o.Wf=function(){var e,t;if(!this.c)for(this.c=Dh(u(this.f,123).ih().i),t=new ne(u(this.f,123).ih());t.e!=t.i.gc();)e=u(ue(t),74),nn(this.c,new OE(e));return this.c},o.ag=function(){return u(u(this.f,123).of((He(),H2)),64)},o.bg=function(){var e,t,i,r,c,s,f,h;for(r=Sf(u(this.f,123)),i=new ne(u(this.f,123).ih());i.e!=i.i.gc();)for(e=u(ue(i),74),h=new ne((!e.c&&(e.c=new Nn(he,e,5,8)),e.c));h.e!=h.i.gc();){if(f=u(ue(h),84),Yb(Gr(f),r))return!0;if(Gr(f)==r&&on(un(z(e,(He(),nU)))))return!0}for(t=new ne(u(this.f,123).hh());t.e!=t.i.gc();)for(e=u(ue(t),74),s=new ne((!e.b&&(e.b=new Nn(he,e,4,7)),e.b));s.e!=s.i.gc();)if(c=u(ue(s),84),Yb(Gr(c),r))return!0;return!1},o.a=null,o.b=null,o.c=null,w(l8,"ElkGraphAdapters/ElkPortAdapter",1284),b(1285,1,Ne,Zmn),o.Ne=function(e,t){return tSe(u(e,123),u(t,123))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(l8,"ElkGraphAdapters/PortComparator",1285);var Oa=Nt(ts,"EObject"),_v=Nt(o2,iWn),xo=Nt(o2,rWn),uE=Nt(o2,cWn),oE=Nt(o2,"ElkShape"),he=Nt(o2,uWn),Vt=Nt(o2,kcn),Mt=Nt(o2,oWn),sE=Nt(ts,sWn),P9=Nt(ts,"EFactory"),voe,gU=Nt(ts,fWn),Ef=Nt(ts,"EPackage"),Ti,koe,yoe,Adn,bO,joe,Sdn,Pdn,Idn,il,Eoe,Coe,Ar=Nt(o2,ycn),Ye=Nt(o2,jcn),Qu=Nt(o2,Ecn);b(93,1,hWn),o.th=function(){return this.uh(),null},o.uh=function(){return null},o.vh=function(){return this.uh(),!1},o.wh=function(){return!1},o.xh=function(e){it(this,e)},w(g3,"BasicNotifierImpl",93),b(99,93,bWn),o.Yh=function(){return fo(this)},o.yh=function(e,t){return e},o.zh=function(){throw M(new Pe)},o.Ah=function(e){var t;return t=br(u($n(this.Dh(),this.Fh()),19)),this.Ph().Th(this,t.n,t.f,e)},o.Bh=function(e,t){throw M(new Pe)},o.Ch=function(e,t,i){return So(this,e,t,i)},o.Dh=function(){var e;return this.zh()&&(e=this.zh().Nk(),e)?e:this.ii()},o.Eh=function(){return dF(this)},o.Fh=function(){throw M(new Pe)},o.Gh=function(){var e,t;return t=this.$h().Ok(),!t&&this.zh().Tk(t=(f6(),e=nJ(bh(this.Dh())),e==null?CU:new C7(this,e))),t},o.Hh=function(e,t){return e},o.Ih=function(e){var t;return t=e.pk(),t?e.Lj():Ot(this.Dh(),e)},o.Jh=function(){var e;return e=this.zh(),e?e.Qk():null},o.Kh=function(){return this.zh()?this.zh().Nk():null},o.Lh=function(e,t,i){return tA(this,e,t,i)},o.Mh=function(e){return $4(this,e)},o.Nh=function(e,t){return YN(this,e,t)},o.Oh=function(){var e;return e=this.zh(),!!e&&e.Rk()},o.Ph=function(){throw M(new Pe)},o.Qh=function(){return WT(this)},o.Rh=function(e,t,i,r){return Wp(this,e,t,r)},o.Sh=function(e,t,i){var r;return r=u($n(this.Dh(),t),69),r.wk().zk(this,this.hi(),t-this.ji(),e,i)},o.Th=function(e,t,i,r){return IM(this,e,t,r)},o.Uh=function(e,t,i){var r;return r=u($n(this.Dh(),t),69),r.wk().Ak(this,this.hi(),t-this.ji(),e,i)},o.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},o.Wh=function(e){return Cx(this,e)},o.Xh=function(e){return dOn(this,e)},o.Zh=function(e){return xGn(this,e)},o.$h=function(){throw M(new Pe)},o._h=function(){return this.zh()?this.zh().Pk():null},o.ai=function(){return WT(this)},o.bi=function(e,t){sF(this,e,t)},o.ci=function(e){this.$h().Sk(e)},o.di=function(e){this.$h().Vk(e)},o.ei=function(e){this.$h().Uk(e)},o.fi=function(e,t){var i,r,c,s;return s=this.Jh(),s&&e&&(t=cr(s.El(),this,t),s.Il(this)),r=this.Ph(),r&&(AF(this,this.Ph(),this.Fh()).Bb&hr?(c=r.Qh(),c&&(e?!s&&c.Il(this):c.Hl(this))):(t=(i=this.Fh(),i>=0?this.Ah(t):this.Ph().Th(this,-1-i,null,t)),t=this.Ch(null,-1,t))),this.di(e),t},o.gi=function(e){var t,i,r,c,s,f,h,l;if(i=this.Dh(),s=Ot(i,e),t=this.ji(),s>=t)return u(e,69).wk().Dk(this,this.hi(),s-t);if(s<=-1)if(f=Qg((Du(),zi),i,e),f){if(dr(),u(f,69).xk()||(f=$p(Lr(zi,f))),c=(r=this.Ih(f),u(r>=0?this.Lh(r,!0,!0):K0(this,f,!0),160)),l=f.Ik(),l>1||l==-1)return u(u(c,220).Sl(e,!1),79)}else throw M(new Gn(ba+e.xe()+sK));else if(e.Jk())return r=this.Ih(e),u(r>=0?this.Lh(r,!1,!0):K0(this,e,!1),79);return h=new OMn(this,e),h},o.hi=function(){return cQ(this)},o.ii=function(){return(G1(),Hn).S},o.ji=function(){return se(this.ii())},o.ki=function(e){cF(this,e)},o.Ib=function(){return Hs(this)},w(qn,"BasicEObjectImpl",99);var Moe;b(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),o.li=function(e){var t;return t=rQ(this),t[e]},o.mi=function(e,t){var i;i=rQ(this),$t(i,e,t)},o.ni=function(e){var t;t=rQ(this),$t(t,e,null)},o.th=function(){return u(Un(this,4),129)},o.uh=function(){throw M(new Pe)},o.vh=function(){return(this.Db&4)!=0},o.zh=function(){throw M(new Pe)},o.oi=function(e){Xp(this,2,e)},o.Bh=function(e,t){this.Db=t<<16|this.Db&255,this.oi(e)},o.Dh=function(){return au(this)},o.Fh=function(){return this.Db>>16},o.Gh=function(){var e,t;return f6(),t=nJ(bh((e=u(Un(this,16),29),e||this.ii()))),t==null?CU:new C7(this,t)},o.wh=function(){return(this.Db&1)==0},o.Jh=function(){return u(Un(this,128),2034)},o.Kh=function(){return u(Un(this,16),29)},o.Oh=function(){return(this.Db&32)!=0},o.Ph=function(){return u(Un(this,2),54)},o.Vh=function(){return(this.Db&64)!=0},o.$h=function(){throw M(new Pe)},o._h=function(){return u(Un(this,64),288)},o.ci=function(e){Xp(this,16,e)},o.di=function(e){Xp(this,128,e)},o.ei=function(e){Xp(this,64,e)},o.hi=function(){return iu(this)},o.Db=0,w(qn,"MinimalEObjectImpl",119),b(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.oi=function(e){this.Cb=e},o.Ph=function(){return this.Cb},w(qn,"MinimalEObjectImpl/Container",120),b(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return kZ(this,e,t,i)},o.Uh=function(e,t,i){return fnn(this,e,t,i)},o.Wh=function(e){return bJ(this,e)},o.bi=function(e,t){cY(this,e,t)},o.ii=function(){return Cc(),Coe},o.ki=function(e){VQ(this,e)},o.nf=function(){return lRn(this)},o.gh=function(){return!this.o&&(this.o=new Iu((Cc(),il),T1,this,0)),this.o},o.of=function(e){return z(this,e)},o.pf=function(e){return Lf(this,e)},o.qf=function(e,t){return ht(this,e,t)},w(Md,"EMapPropertyHolderImpl",2083),b(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},kE),o.Lh=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return tA(this,e,t,i)},o.Wh=function(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return Cx(this,e)},o.bi=function(e,t){switch(e){case 0:aT(this,$(R(t)));return;case 1:lT(this,$(R(t)));return}sF(this,e,t)},o.ii=function(){return Cc(),koe},o.ki=function(e){switch(e){case 0:aT(this,0);return;case 1:lT(this,0);return}cF(this,e)},o.Ib=function(){var e;return this.Db&64?Hs(this):(e=new ls(Hs(this)),e.a+=" (x: ",hg(e,this.a),e.a+=", y: ",hg(e,this.b),e.a+=")",e.a)},o.a=0,o.b=0,w(Md,"ElkBendPointImpl",572),b(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return SY(this,e,t,i)},o.Sh=function(e,t,i){return Yx(this,e,t,i)},o.Uh=function(e,t,i){return $$(this,e,t,i)},o.Wh=function(e){return HQ(this,e)},o.bi=function(e,t){RZ(this,e,t)},o.ii=function(){return Cc(),joe},o.ki=function(e){vY(this,e)},o.jh=function(){return this.k},o.kh=function(){return yM(this)},o.Ib=function(){return ox(this)},o.k=null,w(Md,"ElkGraphElementImpl",739),b(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return xY(this,e,t,i)},o.Wh=function(e){return HY(this,e)},o.bi=function(e,t){KZ(this,e,t)},o.ii=function(){return Cc(),Eoe},o.ki=function(e){WY(this,e)},o.lh=function(){return this.f},o.mh=function(){return this.g},o.nh=function(){return this.i},o.oh=function(){return this.j},o.ph=function(e,t){kg(this,e,t)},o.qh=function(e,t){Ro(this,e,t)},o.rh=function(e){eu(this,e)},o.sh=function(e){tu(this,e)},o.Ib=function(){return iF(this)},o.f=0,o.g=0,o.i=0,o.j=0,w(Md,"ElkShapeImpl",740),b(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return dZ(this,e,t,i)},o.Sh=function(e,t,i){return LZ(this,e,t,i)},o.Uh=function(e,t,i){return NZ(this,e,t,i)},o.Wh=function(e){return rY(this,e)},o.bi=function(e,t){znn(this,e,t)},o.ii=function(){return Cc(),yoe},o.ki=function(e){sZ(this,e)},o.hh=function(){return!this.d&&(this.d=new Nn(Vt,this,8,5)),this.d},o.ih=function(){return!this.e&&(this.e=new Nn(Vt,this,7,4)),this.e},w(Md,"ElkConnectableShapeImpl",741),b(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},HO),o.Ah=function(e){return PZ(this,e)},o.Lh=function(e,t,i){switch(e){case 3:return X7(this);case 4:return!this.b&&(this.b=new Nn(he,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Nn(he,this,5,8)),this.c;case 6:return!this.a&&(this.a=new q(Mt,this,6,6)),this.a;case 7:return _n(),!this.b&&(this.b=new Nn(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Nn(he,this,5,8)),this.c.i<=1));case 8:return _n(),!!D5(this);case 9:return _n(),!!R0(this);case 10:return _n(),!this.b&&(this.b=new Nn(he,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Nn(he,this,5,8)),this.c.i!=0)}return SY(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 3:return this.Cb&&(i=(r=this.Db>>16,r>=0?PZ(this,i):this.Cb.Th(this,-1-r,null,i))),hV(this,u(e,27),i);case 4:return!this.b&&(this.b=new Nn(he,this,4,7)),Xc(this.b,e,i);case 5:return!this.c&&(this.c=new Nn(he,this,5,8)),Xc(this.c,e,i);case 6:return!this.a&&(this.a=new q(Mt,this,6,6)),Xc(this.a,e,i)}return Yx(this,e,t,i)},o.Uh=function(e,t,i){switch(t){case 3:return hV(this,null,i);case 4:return!this.b&&(this.b=new Nn(he,this,4,7)),cr(this.b,e,i);case 5:return!this.c&&(this.c=new Nn(he,this,5,8)),cr(this.c,e,i);case 6:return!this.a&&(this.a=new q(Mt,this,6,6)),cr(this.a,e,i)}return $$(this,e,t,i)},o.Wh=function(e){switch(e){case 3:return!!X7(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Nn(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Nn(he,this,5,8)),this.c.i<=1));case 8:return D5(this);case 9:return R0(this);case 10:return!this.b&&(this.b=new Nn(he,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Nn(he,this,5,8)),this.c.i!=0)}return HQ(this,e)},o.bi=function(e,t){switch(e){case 3:AA(this,u(t,27));return;case 4:!this.b&&(this.b=new Nn(he,this,4,7)),me(this.b),!this.b&&(this.b=new Nn(he,this,4,7)),Bt(this.b,u(t,16));return;case 5:!this.c&&(this.c=new Nn(he,this,5,8)),me(this.c),!this.c&&(this.c=new Nn(he,this,5,8)),Bt(this.c,u(t,16));return;case 6:!this.a&&(this.a=new q(Mt,this,6,6)),me(this.a),!this.a&&(this.a=new q(Mt,this,6,6)),Bt(this.a,u(t,16));return}RZ(this,e,t)},o.ii=function(){return Cc(),Adn},o.ki=function(e){switch(e){case 3:AA(this,null);return;case 4:!this.b&&(this.b=new Nn(he,this,4,7)),me(this.b);return;case 5:!this.c&&(this.c=new Nn(he,this,5,8)),me(this.c);return;case 6:!this.a&&(this.a=new q(Mt,this,6,6)),me(this.a);return}vY(this,e)},o.Ib=function(){return nGn(this)},w(Md,"ElkEdgeImpl",326),b(451,2083,{110:1,342:1,166:1,451:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},yE),o.Ah=function(e){return MZ(this,e)},o.Lh=function(e,t,i){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new ti(xo,this,5)),this.a;case 6:return fOn(this);case 7:return t?Px(this):this.i;case 8:return t?Sx(this):this.f;case 9:return!this.g&&(this.g=new Nn(Mt,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Nn(Mt,this,10,9)),this.e;case 11:return this.d}return kZ(this,e,t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?MZ(this,i):this.Cb.Th(this,-1-c,null,i))),fV(this,u(e,74),i);case 9:return!this.g&&(this.g=new Nn(Mt,this,9,10)),Xc(this.g,e,i);case 10:return!this.e&&(this.e=new Nn(Mt,this,10,9)),Xc(this.e,e,i)}return s=u($n((r=u(Un(this,16),29),r||(Cc(),bO)),t),69),s.wk().zk(this,iu(this),t-se((Cc(),bO)),e,i)},o.Uh=function(e,t,i){switch(t){case 5:return!this.a&&(this.a=new ti(xo,this,5)),cr(this.a,e,i);case 6:return fV(this,null,i);case 9:return!this.g&&(this.g=new Nn(Mt,this,9,10)),cr(this.g,e,i);case 10:return!this.e&&(this.e=new Nn(Mt,this,10,9)),cr(this.e,e,i)}return fnn(this,e,t,i)},o.Wh=function(e){switch(e){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!fOn(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return bJ(this,e)},o.bi=function(e,t){switch(e){case 1:_4(this,$(R(t)));return;case 2:q4(this,$(R(t)));return;case 3:K4(this,$(R(t)));return;case 4:H4(this,$(R(t)));return;case 5:!this.a&&(this.a=new ti(xo,this,5)),me(this.a),!this.a&&(this.a=new ti(xo,this,5)),Bt(this.a,u(t,16));return;case 6:ZHn(this,u(t,74));return;case 7:vT(this,u(t,84));return;case 8:mT(this,u(t,84));return;case 9:!this.g&&(this.g=new Nn(Mt,this,9,10)),me(this.g),!this.g&&(this.g=new Nn(Mt,this,9,10)),Bt(this.g,u(t,16));return;case 10:!this.e&&(this.e=new Nn(Mt,this,10,9)),me(this.e),!this.e&&(this.e=new Nn(Mt,this,10,9)),Bt(this.e,u(t,16));return;case 11:IQ(this,Oe(t));return}cY(this,e,t)},o.ii=function(){return Cc(),bO},o.ki=function(e){switch(e){case 1:_4(this,0);return;case 2:q4(this,0);return;case 3:K4(this,0);return;case 4:H4(this,0);return;case 5:!this.a&&(this.a=new ti(xo,this,5)),me(this.a);return;case 6:ZHn(this,null);return;case 7:vT(this,null);return;case 8:mT(this,null);return;case 9:!this.g&&(this.g=new Nn(Mt,this,9,10)),me(this.g);return;case 10:!this.e&&(this.e=new Nn(Mt,this,10,9)),me(this.e);return;case 11:IQ(this,null);return}VQ(this,e)},o.Ib=function(){return dHn(this)},o.b=0,o.c=0,o.d=null,o.j=0,o.k=0,w(Md,"ElkEdgeSectionImpl",451),b(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),o.Lh=function(e,t,i){var r;return e==0?(!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab):zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Sh=function(e,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i)):(c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().zk(this,iu(this),t-se(this.ii()),e,i))},o.Uh=function(e,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i)):(c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i))},o.Wh=function(e){var t;return e==0?!!this.Ab&&this.Ab.i!=0:Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.Zh=function(e){return itn(this,e)},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.di=function(e){Xp(this,128,e)},o.ii=function(){return On(),qoe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){this.Bb|=1},o.qi=function(e){return R5(this,e)},o.Bb=0,w(qn,"EModelElementImpl",158),b(720,158,{110:1,94:1,93:1,479:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},uG),o.ri=function(e,t){return PGn(this,e,t)},o.si=function(e){var t,i,r,c,s;if(this.a!=jo(e)||e.Bb&256)throw M(new Gn(hK+e.zb+Y0));for(r=Hr(e);Sc(r.a).i!=0;){if(i=u(gy(r,0,(t=u(L(Sc(r.a),0),89),s=t.c,D(s,90)?u(s,29):(On(),Is))),29),B0(i))return c=jo(i).wi().si(i),u(c,54).ci(e),c;r=Hr(i)}return(e.D!=null?e.D:e.B)=="java.util.Map$Entry"?new GSn(e):new YV(e)},o.ti=function(e,t){return U0(this,e,t)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.a}return zo(this,e-se((On(),$a)),$n((r=u(Un(this,16),29),r||$a),e),t,i)},o.Sh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 1:return this.a&&(i=u(this.a,54).Th(this,4,Ef,i)),mY(this,u(e,241),i)}return c=u($n((r=u(Un(this,16),29),r||(On(),$a)),t),69),c.wk().zk(this,iu(this),t-se((On(),$a)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 1:return mY(this,null,i)}return c=u($n((r=u(Un(this,16),29),r||(On(),$a)),t),69),c.wk().Ak(this,iu(this),t-se((On(),$a)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return Uo(this,e-se((On(),$a)),$n((t=u(Un(this,16),29),t||$a),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:WKn(this,u(t,241));return}Jo(this,e-se((On(),$a)),$n((i=u(Un(this,16),29),i||$a),e),t)},o.ii=function(){return On(),$a},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:WKn(this,null);return}Wo(this,e-se((On(),$a)),$n((t=u(Un(this,16),29),t||$a),e))};var I9,Odn,Toe;w(qn,"EFactoryImpl",720),b(1037,720,{110:1,2113:1,94:1,93:1,479:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},svn),o.ri=function(e,t){switch(e.hk()){case 12:return u(t,149).Pg();case 13:return Jr(t);default:throw M(new Gn(nv+e.xe()+Y0))}},o.si=function(e){var t,i,r,c,s,f,h,l;switch(e.G==-1&&(e.G=(t=jo(e),t?f1(t.vi(),e):-1)),e.G){case 4:return s=new nG,s;case 6:return f=new Jv,f;case 7:return h=new nz,h;case 8:return r=new HO,r;case 9:return i=new kE,i;case 10:return c=new yE,c;case 11:return l=new fvn,l;default:throw M(new Gn(hK+e.zb+Y0))}},o.ti=function(e,t){switch(e.hk()){case 13:case 12:return null;default:throw M(new Gn(nv+e.xe()+Y0))}},w(Md,"ElkGraphFactoryImpl",1037),b(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),o.Gh=function(){var e,t;return t=(e=u(Un(this,16),29),nJ(bh(e||this.ii()))),t==null?(f6(),f6(),CU):new bAn(this,t)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.xe()}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:this.ui(Oe(t));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return On(),Uoe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:this.ui(null);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.xe=function(){return this.zb},o.ui=function(e){zc(this,e)},o.Ib=function(){return w5(this)},o.zb=null,w(qn,"ENamedElementImpl",448),b(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},_In),o.Ah=function(e){return uKn(this,e)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new Hb(this,Cf,this)),this.rb;case 6:return!this.vb&&(this.vb=new jp(Ef,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?u(this.Cb,241):null:gOn(this)}return zo(this,e-se((On(),I1)),$n((r=u(Un(this,16),29),r||I1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 4:return this.sb&&(i=u(this.sb,54).Th(this,1,P9,i)),yY(this,u(e,479),i);case 5:return!this.rb&&(this.rb=new Hb(this,Cf,this)),Xc(this.rb,e,i);case 6:return!this.vb&&(this.vb=new jp(Ef,this,6,7)),Xc(this.vb,e,i);case 7:return this.Cb&&(i=(c=this.Db>>16,c>=0?uKn(this,i):this.Cb.Th(this,-1-c,null,i))),So(this,e,7,i)}return s=u($n((r=u(Un(this,16),29),r||(On(),I1)),t),69),s.wk().zk(this,iu(this),t-se((On(),I1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 4:return yY(this,null,i);case 5:return!this.rb&&(this.rb=new Hb(this,Cf,this)),cr(this.rb,e,i);case 6:return!this.vb&&(this.vb=new jp(Ef,this,6,7)),cr(this.vb,e,i);case 7:return So(this,null,7,i)}return c=u($n((r=u(Un(this,16),29),r||(On(),I1)),t),69),c.wk().Ak(this,iu(this),t-se((On(),I1)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!gOn(this)}return Uo(this,e-se((On(),I1)),$n((t=u(Un(this,16),29),t||I1),e))},o.Zh=function(e){var t;return t=pTe(this,e),t||itn(this,e)},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:zc(this,Oe(t));return;case 2:MT(this,Oe(t));return;case 3:CT(this,Oe(t));return;case 4:tF(this,u(t,479));return;case 5:!this.rb&&(this.rb=new Hb(this,Cf,this)),me(this.rb),!this.rb&&(this.rb=new Hb(this,Cf,this)),Bt(this.rb,u(t,16));return;case 6:!this.vb&&(this.vb=new jp(Ef,this,6,7)),me(this.vb),!this.vb&&(this.vb=new jp(Ef,this,6,7)),Bt(this.vb,u(t,16));return}Jo(this,e-se((On(),I1)),$n((i=u(Un(this,16),29),i||I1),e),t)},o.ei=function(e){var t,i;if(e&&this.rb)for(i=new ne(this.rb);i.e!=i.i.gc();)t=ue(i),D(t,364)&&(u(t,364).w=null);Xp(this,64,e)},o.ii=function(){return On(),I1},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:MT(this,null);return;case 3:CT(this,null);return;case 4:tF(this,null);return;case 5:!this.rb&&(this.rb=new Hb(this,Cf,this)),me(this.rb);return;case 6:!this.vb&&(this.vb=new jp(Ef,this,6,7)),me(this.vb);return}Wo(this,e-se((On(),I1)),$n((t=u(Un(this,16),29),t||I1),e))},o.pi=function(){Hx(this)},o.vi=function(){return!this.rb&&(this.rb=new Hb(this,Cf,this)),this.rb},o.wi=function(){return this.sb},o.xi=function(){return this.ub},o.yi=function(){return this.xb},o.zi=function(){return this.yb},o.Ai=function(e){this.ub=e},o.Ib=function(){var e;return this.Db&64?w5(this):(e=new ls(w5(this)),e.a+=" (nsURI: ",Er(e,this.yb),e.a+=", nsPrefix: ",Er(e,this.xb),e.a+=")",e.a)},o.xb=null,o.yb=null,w(qn,"EPackageImpl",184),b(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},jHn),o.q=!1,o.r=!1;var Aoe=!1;w(Md,"ElkGraphPackageImpl",569),b(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},nG),o.Ah=function(e){return TZ(this,e)},o.Lh=function(e,t,i){switch(e){case 7:return pOn(this);case 8:return this.a}return xY(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 7:return this.Cb&&(i=(r=this.Db>>16,r>=0?TZ(this,i):this.Cb.Th(this,-1-r,null,i))),dW(this,u(e,167),i)}return Yx(this,e,t,i)},o.Uh=function(e,t,i){return t==7?dW(this,null,i):$$(this,e,t,i)},o.Wh=function(e){switch(e){case 7:return!!pOn(this);case 8:return!An("",this.a)}return HY(this,e)},o.bi=function(e,t){switch(e){case 7:cen(this,u(t,167));return;case 8:MQ(this,Oe(t));return}KZ(this,e,t)},o.ii=function(){return Cc(),Sdn},o.ki=function(e){switch(e){case 7:cen(this,null);return;case 8:MQ(this,"");return}WY(this,e)},o.Ib=function(){return f_n(this)},o.a="",w(Md,"ElkLabelImpl",366),b(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Jv),o.Ah=function(e){return IZ(this,e)},o.Lh=function(e,t,i){switch(e){case 9:return!this.c&&(this.c=new q(Qu,this,9,9)),this.c;case 10:return!this.a&&(this.a=new q(Ye,this,10,11)),this.a;case 11:return At(this);case 12:return!this.b&&(this.b=new q(Vt,this,12,3)),this.b;case 13:return _n(),!this.a&&(this.a=new q(Ye,this,10,11)),this.a.i>0}return dZ(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 9:return!this.c&&(this.c=new q(Qu,this,9,9)),Xc(this.c,e,i);case 10:return!this.a&&(this.a=new q(Ye,this,10,11)),Xc(this.a,e,i);case 11:return this.Cb&&(i=(r=this.Db>>16,r>=0?IZ(this,i):this.Cb.Th(this,-1-r,null,i))),kV(this,u(e,27),i);case 12:return!this.b&&(this.b=new q(Vt,this,12,3)),Xc(this.b,e,i)}return LZ(this,e,t,i)},o.Uh=function(e,t,i){switch(t){case 9:return!this.c&&(this.c=new q(Qu,this,9,9)),cr(this.c,e,i);case 10:return!this.a&&(this.a=new q(Ye,this,10,11)),cr(this.a,e,i);case 11:return kV(this,null,i);case 12:return!this.b&&(this.b=new q(Vt,this,12,3)),cr(this.b,e,i)}return NZ(this,e,t,i)},o.Wh=function(e){switch(e){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!At(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new q(Ye,this,10,11)),this.a.i>0}return rY(this,e)},o.bi=function(e,t){switch(e){case 9:!this.c&&(this.c=new q(Qu,this,9,9)),me(this.c),!this.c&&(this.c=new q(Qu,this,9,9)),Bt(this.c,u(t,16));return;case 10:!this.a&&(this.a=new q(Ye,this,10,11)),me(this.a),!this.a&&(this.a=new q(Ye,this,10,11)),Bt(this.a,u(t,16));return;case 11:SA(this,u(t,27));return;case 12:!this.b&&(this.b=new q(Vt,this,12,3)),me(this.b),!this.b&&(this.b=new q(Vt,this,12,3)),Bt(this.b,u(t,16));return}znn(this,e,t)},o.ii=function(){return Cc(),Pdn},o.ki=function(e){switch(e){case 9:!this.c&&(this.c=new q(Qu,this,9,9)),me(this.c);return;case 10:!this.a&&(this.a=new q(Ye,this,10,11)),me(this.a);return;case 11:SA(this,null);return;case 12:!this.b&&(this.b=new q(Vt,this,12,3)),me(this.b);return}sZ(this,e)},o.Ib=function(){return yen(this)},w(Md,"ElkNodeImpl",207),b(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},nz),o.Ah=function(e){return AZ(this,e)},o.Lh=function(e,t,i){return e==9?Sf(this):dZ(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 9:return this.Cb&&(i=(r=this.Db>>16,r>=0?AZ(this,i):this.Cb.Th(this,-1-r,null,i))),lV(this,u(e,27),i)}return LZ(this,e,t,i)},o.Uh=function(e,t,i){return t==9?lV(this,null,i):NZ(this,e,t,i)},o.Wh=function(e){return e==9?!!Sf(this):rY(this,e)},o.bi=function(e,t){switch(e){case 9:een(this,u(t,27));return}znn(this,e,t)},o.ii=function(){return Cc(),Idn},o.ki=function(e){switch(e){case 9:een(this,null);return}sZ(this,e)},o.Ib=function(){return Yqn(this)},w(Md,"ElkPortImpl",193);var Soe=Nt(or,"BasicEMap/Entry");b(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},fvn),o.Fb=function(e){return this===e},o.ld=function(){return this.b},o.Hb=function(){return f0(this)},o.Di=function(e){TQ(this,u(e,149))},o.Lh=function(e,t,i){switch(e){case 0:return this.b;case 1:return this.c}return tA(this,e,t,i)},o.Wh=function(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return Cx(this,e)},o.bi=function(e,t){switch(e){case 0:TQ(this,u(t,149));return;case 1:CQ(this,t);return}sF(this,e,t)},o.ii=function(){return Cc(),il},o.ki=function(e){switch(e){case 0:TQ(this,null);return;case 1:CQ(this,null);return}cF(this,e)},o.Bi=function(){var e;return this.a==-1&&(e=this.b,this.a=e?mt(e):0),this.a},o.md=function(){return this.c},o.Ci=function(e){this.a=e},o.nd=function(e){var t;return t=this.c,CQ(this,e),t},o.Ib=function(){var e;return this.Db&64?Hs(this):(e=new x1,Re(Re(Re(e,this.b?this.b.Pg():gu),iR),P6(this.c)),e.a)},o.a=-1,o.c=null;var T1=w(Md,"ElkPropertyToValueMapEntryImpl",1122);b(996,1,{},avn),w(Ui,"JsonAdapter",996),b(216,63,Pl,eh),w(Ui,"JsonImportException",216),b(868,1,{},oKn),w(Ui,"JsonImporter",868),b(903,1,{},bMn),w(Ui,"JsonImporter/lambda$0$Type",903),b(904,1,{},wMn),w(Ui,"JsonImporter/lambda$1$Type",904),b(912,1,{},Bkn),w(Ui,"JsonImporter/lambda$10$Type",912),b(914,1,{},gMn),w(Ui,"JsonImporter/lambda$11$Type",914),b(915,1,{},pMn),w(Ui,"JsonImporter/lambda$12$Type",915),b(921,1,{},PIn),w(Ui,"JsonImporter/lambda$13$Type",921),b(920,1,{},IIn),w(Ui,"JsonImporter/lambda$14$Type",920),b(916,1,{},mMn),w(Ui,"JsonImporter/lambda$15$Type",916),b(917,1,{},vMn),w(Ui,"JsonImporter/lambda$16$Type",917),b(918,1,{},kMn),w(Ui,"JsonImporter/lambda$17$Type",918),b(919,1,{},yMn),w(Ui,"JsonImporter/lambda$18$Type",919),b(924,1,{},Rkn),w(Ui,"JsonImporter/lambda$19$Type",924),b(905,1,{},Kkn),w(Ui,"JsonImporter/lambda$2$Type",905),b(922,1,{},_kn),w(Ui,"JsonImporter/lambda$20$Type",922),b(923,1,{},Hkn),w(Ui,"JsonImporter/lambda$21$Type",923),b(927,1,{},qkn),w(Ui,"JsonImporter/lambda$22$Type",927),b(925,1,{},Ukn),w(Ui,"JsonImporter/lambda$23$Type",925),b(926,1,{},Gkn),w(Ui,"JsonImporter/lambda$24$Type",926),b(929,1,{},zkn),w(Ui,"JsonImporter/lambda$25$Type",929),b(928,1,{},Xkn),w(Ui,"JsonImporter/lambda$26$Type",928),b(930,1,re,jMn),o.Cd=function(e){O4e(this.b,this.a,Oe(e))},w(Ui,"JsonImporter/lambda$27$Type",930),b(931,1,re,EMn),o.Cd=function(e){D4e(this.b,this.a,Oe(e))},w(Ui,"JsonImporter/lambda$28$Type",931),b(932,1,{},CMn),w(Ui,"JsonImporter/lambda$29$Type",932),b(908,1,{},Vkn),w(Ui,"JsonImporter/lambda$3$Type",908),b(933,1,{},MMn),w(Ui,"JsonImporter/lambda$30$Type",933),b(934,1,{},Wkn),w(Ui,"JsonImporter/lambda$31$Type",934),b(935,1,{},Jkn),w(Ui,"JsonImporter/lambda$32$Type",935),b(936,1,{},Qkn),w(Ui,"JsonImporter/lambda$33$Type",936),b(937,1,{},Ykn),w(Ui,"JsonImporter/lambda$34$Type",937),b(870,1,{},Zkn),w(Ui,"JsonImporter/lambda$35$Type",870),b(941,1,{},vSn),w(Ui,"JsonImporter/lambda$36$Type",941),b(938,1,re,nyn),o.Cd=function(e){F3e(this.a,u(e,377))},w(Ui,"JsonImporter/lambda$37$Type",938),b(939,1,re,TMn),o.Cd=function(e){mle(this.a,this.b,u(e,166))},w(Ui,"JsonImporter/lambda$38$Type",939),b(940,1,re,AMn),o.Cd=function(e){vle(this.a,this.b,u(e,166))},w(Ui,"JsonImporter/lambda$39$Type",940),b(906,1,{},eyn),w(Ui,"JsonImporter/lambda$4$Type",906),b(942,1,re,tyn),o.Cd=function(e){B3e(this.a,u(e,8))},w(Ui,"JsonImporter/lambda$40$Type",942),b(907,1,{},iyn),w(Ui,"JsonImporter/lambda$5$Type",907),b(911,1,{},ryn),w(Ui,"JsonImporter/lambda$6$Type",911),b(909,1,{},cyn),w(Ui,"JsonImporter/lambda$7$Type",909),b(910,1,{},uyn),w(Ui,"JsonImporter/lambda$8$Type",910),b(913,1,{},oyn),w(Ui,"JsonImporter/lambda$9$Type",913),b(961,1,re,syn),o.Cd=function(e){Ip(this.a,new qb(Oe(e)))},w(Ui,"JsonMetaDataConverter/lambda$0$Type",961),b(962,1,re,fyn),o.Cd=function(e){Pwe(this.a,u(e,245))},w(Ui,"JsonMetaDataConverter/lambda$1$Type",962),b(963,1,re,hyn),o.Cd=function(e){S2e(this.a,u(e,143))},w(Ui,"JsonMetaDataConverter/lambda$2$Type",963),b(964,1,re,lyn),o.Cd=function(e){Iwe(this.a,u(e,170))},w(Ui,"JsonMetaDataConverter/lambda$3$Type",964),b(245,22,{3:1,34:1,22:1,245:1},gp);var wO,gO,pU,pO,mO,vO,mU,vU,kO=we(Oy,"GraphFeature",245,ke,dme,tbe),Poe;b(11,1,{34:1,149:1},lt,Dt,Mn,Ni),o.Fd=function(e){return C1e(this,u(e,149))},o.Fb=function(e){return ZIn(this,e)},o.Sg=function(){return rn(this)},o.Pg=function(){return this.b},o.Hb=function(){return t1(this.b)},o.Ib=function(){return this.b},w(Oy,"Property",11),b(671,1,Ne,tD),o.Ne=function(e,t){return N5e(this,u(e,96),u(t,96))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Oy,"PropertyHolderComparator",671),b(709,1,Si,$G),o.Nb=function(e){_i(this,e)},o.Pb=function(){return $4e(this)},o.Qb=function(){oEn()},o.Ob=function(){return!!this.a},w(_S,"ElkGraphUtil/AncestorIterator",709);var Ddn=Nt(or,"EList");b(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),o.bd=function(e,t){p5(this,e,t)},o.Fc=function(e){return ve(this,e)},o.cd=function(e,t){return WQ(this,e,t)},o.Gc=function(e){return Bt(this,e)},o.Ii=function(){return new yp(this)},o.Ji=function(){return new M7(this)},o.Ki=function(e){return gk(this,e)},o.Li=function(){return!0},o.Mi=function(e,t){},o.Ni=function(){},o.Oi=function(e,t){t$(this,e,t)},o.Pi=function(e,t,i){},o.Qi=function(e,t){},o.Ri=function(e,t,i){},o.Fb=function(e){return xqn(this,e)},o.Hb=function(){return GQ(this)},o.Si=function(){return!1},o.Kc=function(){return new ne(this)},o.ed=function(){return new kp(this)},o.fd=function(e){var t;if(t=this.gc(),e<0||e>t)throw M(new Kb(e,t));return new oN(this,e)},o.Ui=function(e,t){this.Ti(e,this.dd(t))},o.Mc=function(e){return rT(this,e)},o.Wi=function(e,t){return t},o.hd=function(e,t){return Rg(this,e,t)},o.Ib=function(){return RY(this)},o.Yi=function(){return!0},o.Zi=function(e,t){return im(this,t)},w(or,"AbstractEList",70),b(66,70,Ch,jE,T0,RQ),o.Ei=function(e,t){return Zx(this,e,t)},o.Fi=function(e){return DRn(this,e)},o.Gi=function(e,t){Ok(this,e,t)},o.Hi=function(e){nk(this,e)},o.$i=function(e){return ZJ(this,e)},o.$b=function(){Z6(this)},o.Hc=function(e){return vm(this,e)},o.Xb=function(e){return L(this,e)},o._i=function(e){var t,i,r;++this.j,i=this.g==null?0:this.g.length,e>i&&(r=this.g,t=i+(i/2|0)+4,t=0?(this.gd(t),!0):!1},o.Xi=function(e,t){return this.Dj(e,this.Zi(e,t))},o.gc=function(){return this.Ej()},o.Pc=function(){return this.Fj()},o.Qc=function(e){return this.Gj(e)},o.Ib=function(){return this.Hj()},w(or,"DelegatingEList",2093),b(2094,2093,YWn),o.Ei=function(e,t){return Len(this,e,t)},o.Fi=function(e){return this.Ei(this.Ej(),e)},o.Gi=function(e,t){EHn(this,e,t)},o.Hi=function(e){lHn(this,e)},o.Li=function(){return!this.Mj()},o.$b=function(){G5(this)},o.Ij=function(e,t,i,r,c){return new YIn(this,e,t,i,r,c)},o.Jj=function(e){it(this.jj(),e)},o.Kj=function(){return null},o.Lj=function(){return-1},o.jj=function(){return null},o.Mj=function(){return!1},o.Nj=function(e,t){return t},o.Oj=function(e,t){return t},o.Pj=function(){return!1},o.Qj=function(){return!this.Aj()},o.Ti=function(e,t){var i,r;return this.Pj()?(r=this.Qj(),i=unn(this,e,t),this.Jj(this.Ij(7,Y(t),i,e,r)),i):unn(this,e,t)},o.gd=function(e){var t,i,r,c;return this.Pj()?(i=null,r=this.Qj(),t=this.Ij(4,c=eM(this,e),null,e,r),this.Mj()&&c?(i=this.Oj(c,i),i?(i.nj(t),i.oj()):this.Jj(t)):i?(i.nj(t),i.oj()):this.Jj(t),c):(c=eM(this,e),this.Mj()&&c&&(i=this.Oj(c,null),i&&i.oj()),c)},o.Xi=function(e,t){return IUn(this,e,t)},w(g3,"DelegatingNotifyingListImpl",2094),b(152,1,Vy),o.nj=function(e){return GZ(this,e)},o.oj=function(){h$(this)},o.gj=function(){return this.d},o.Kj=function(){return null},o.Rj=function(){return null},o.hj=function(e){return-1},o.ij=function(){return pqn(this)},o.jj=function(){return null},o.kj=function(){return hen(this)},o.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},o.Sj=function(){return!1},o.mj=function(e){var t,i,r,c,s,f,h,l,a,d,g;switch(this.d){case 1:case 2:switch(c=e.gj(),c){case 1:case 2:if(s=e.jj(),x(s)===x(this.jj())&&this.hj(null)==e.hj(null))return this.g=e.ij(),e.gj()==1&&(this.d=1),!0}case 4:{switch(c=e.gj(),c){case 4:{if(s=e.jj(),x(s)===x(this.jj())&&this.hj(null)==e.hj(null))return a=Jen(this),l=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,f=e.lj(),this.d=6,g=new T0(2),l<=f?(ve(g,this.n),ve(g,e.kj()),this.g=A(T(ye,1),_e,28,15,[this.o=l,f+1])):(ve(g,e.kj()),ve(g,this.n),this.g=A(T(ye,1),_e,28,15,[this.o=f,l])),this.n=g,a||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(c=e.gj(),c){case 4:{if(s=e.jj(),x(s)===x(this.jj())&&this.hj(null)==e.hj(null)){for(a=Jen(this),f=e.lj(),d=u(this.g,53),r=K(ye,_e,28,d.length+1,15,1),t=0;t>>0,t.toString(16))),r.a+=" (eventType: ",this.d){case 1:{r.a+="SET";break}case 2:{r.a+="UNSET";break}case 3:{r.a+="ADD";break}case 5:{r.a+="ADD_MANY";break}case 4:{r.a+="REMOVE";break}case 6:{r.a+="REMOVE_MANY";break}case 7:{r.a+="MOVE";break}case 8:{r.a+="REMOVING_ADAPTER";break}case 9:{r.a+="RESOLVE";break}default:{TD(r,this.d);break}}if(rUn(this)&&(r.a+=", touch: true"),r.a+=", position: ",TD(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=", notifier: ",E6(r,this.jj()),r.a+=", feature: ",E6(r,this.Kj()),r.a+=", oldValue: ",E6(r,hen(this)),r.a+=", newValue: ",this.d==6&&D(this.g,53)){for(i=u(this.g,53),r.a+="[",e=0;e10?((!this.b||this.c.j!=this.a)&&(this.b=new $6(this),this.a=this.j),sf(this.b,e)):vm(this,e)},o.Yi=function(){return!0},o.a=0,w(or,"AbstractEList/1",966),b(301,77,AB,Kb),w(or,"AbstractEList/BasicIndexOutOfBoundsException",301),b(40,1,Si,ne),o.Nb=function(e){_i(this,e)},o.Xj=function(){if(this.i.j!=this.f)throw M(new Bo)},o.Yj=function(){return ue(this)},o.Ob=function(){return this.e!=this.i.gc()},o.Pb=function(){return this.Yj()},o.Qb=function(){P5(this)},o.e=0,o.f=0,o.g=-1,w(or,"AbstractEList/EIterator",40),b(286,40,Hh,kp,oN),o.Qb=function(){P5(this)},o.Rb=function(e){IBn(this,e)},o.Zj=function(){var e;try{return e=this.d.Xb(--this.e),this.Xj(),this.g=this.e,e}catch(t){throw t=It(t),D(t,77)?(this.Xj(),M(new nc)):M(t)}},o.$j=function(e){$Rn(this,e)},o.Sb=function(){return this.e!=0},o.Tb=function(){return this.e},o.Ub=function(){return this.Zj()},o.Vb=function(){return this.e-1},o.Wb=function(e){this.$j(e)},w(or,"AbstractEList/EListIterator",286),b(355,40,Si,yp),o.Yj=function(){return Mx(this)},o.Qb=function(){throw M(new Pe)},w(or,"AbstractEList/NonResolvingEIterator",355),b(398,286,Hh,M7,AV),o.Rb=function(e){throw M(new Pe)},o.Yj=function(){var e;try{return e=this.c.Vi(this.e),this.Xj(),this.g=this.e++,e}catch(t){throw t=It(t),D(t,77)?(this.Xj(),M(new nc)):M(t)}},o.Zj=function(){var e;try{return e=this.c.Vi(--this.e),this.Xj(),this.g=this.e,e}catch(t){throw t=It(t),D(t,77)?(this.Xj(),M(new nc)):M(t)}},o.Qb=function(){throw M(new Pe)},o.Wb=function(e){throw M(new Pe)},w(or,"AbstractEList/NonResolvingEListIterator",398),b(2080,70,ZWn),o.Ei=function(e,t){var i,r,c,s,f,h,l,a,d,g,p;if(c=t.gc(),c!=0){for(a=u(Un(this.a,4),129),d=a==null?0:a.length,p=d+c,r=V$(this,p),g=d-e,g>0&&Ic(a,e,r,e+c,g),l=t.Kc(),f=0;fi)throw M(new Kb(e,i));return new kIn(this,e)},o.$b=function(){var e,t;++this.j,e=u(Un(this.a,4),129),t=e==null?0:e.length,wm(this,null),t$(this,t,e)},o.Hc=function(e){var t,i,r,c,s;if(t=u(Un(this.a,4),129),t!=null){if(e!=null){for(r=t,c=0,s=r.length;c=i)throw M(new Kb(e,i));return t[e]},o.dd=function(e){var t,i,r;if(t=u(Un(this.a,4),129),t!=null){if(e!=null){for(i=0,r=t.length;ii)throw M(new Kb(e,i));return new vIn(this,e)},o.Ti=function(e,t){var i,r,c;if(i=KBn(this),c=i==null?0:i.length,e>=c)throw M(new Ir(vK+e+Td+c));if(t>=c)throw M(new Ir(kK+t+Td+c));return r=i[t],e!=t&&(e0&&Ic(e,0,t,0,i),t},o.Qc=function(e){var t,i,r;return t=u(Un(this.a,4),129),r=t==null?0:t.length,r>0&&(e.lengthr&&$t(e,r,null),e};var Ioe;w(or,"ArrayDelegatingEList",2080),b(1051,40,Si,yLn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw M(new Bo)},o.Qb=function(){P5(this),this.a=u(Un(this.b.a,4),129)},w(or,"ArrayDelegatingEList/EIterator",1051),b(722,286,Hh,LPn,vIn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw M(new Bo)},o.$j=function(e){$Rn(this,e),this.a=u(Un(this.b.a,4),129)},o.Qb=function(){P5(this),this.a=u(Un(this.b.a,4),129)},w(or,"ArrayDelegatingEList/EListIterator",722),b(1052,355,Si,jLn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw M(new Bo)},w(or,"ArrayDelegatingEList/NonResolvingEIterator",1052),b(723,398,Hh,NPn,kIn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw M(new Bo)},w(or,"ArrayDelegatingEList/NonResolvingEListIterator",723),b(615,301,AB,aL),w(or,"BasicEList/BasicIndexOutOfBoundsException",615),b(710,66,Ch,wX),o.bd=function(e,t){throw M(new Pe)},o.Fc=function(e){throw M(new Pe)},o.cd=function(e,t){throw M(new Pe)},o.Gc=function(e){throw M(new Pe)},o.$b=function(){throw M(new Pe)},o._i=function(e){throw M(new Pe)},o.Kc=function(){return this.Ii()},o.ed=function(){return this.Ji()},o.fd=function(e){return this.Ki(e)},o.Ti=function(e,t){throw M(new Pe)},o.Ui=function(e,t){throw M(new Pe)},o.gd=function(e){throw M(new Pe)},o.Mc=function(e){throw M(new Pe)},o.hd=function(e,t){throw M(new Pe)},w(or,"BasicEList/UnmodifiableEList",710),b(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),o.bd=function(e,t){a1e(this,e,u(t,44))},o.Fc=function(e){return cae(this,u(e,44))},o.Jc=function(e){qi(this,e)},o.Xb=function(e){return u(L(this.c,e),136)},o.Ti=function(e,t){return u(this.c.Ti(e,t),44)},o.Ui=function(e,t){d1e(this,e,u(t,44))},o.Lc=function(){return new Tn(null,new In(this,16))},o.gd=function(e){return u(this.c.gd(e),44)},o.hd=function(e,t){return Swe(this,e,u(t,44))},o.jd=function(e){ud(this,e)},o.Nc=function(){return new In(this,16)},o.Oc=function(){return new Tn(null,new In(this,16))},o.cd=function(e,t){return this.c.cd(e,t)},o.Gc=function(e){return this.c.Gc(e)},o.$b=function(){this.c.$b()},o.Hc=function(e){return this.c.Hc(e)},o.Ic=function(e){return jk(this.c,e)},o._j=function(){var e,t,i;if(this.d==null){for(this.d=K(Ldn,_cn,66,2*this.f+1,0,1),i=this.e,this.f=0,t=this.c.Kc();t.e!=t.i.gc();)e=u(t.Yj(),136),uA(this,e);this.e=i}},o.Fb=function(e){return oSn(this,e)},o.Hb=function(){return GQ(this.c)},o.dd=function(e){return this.c.dd(e)},o.ak=function(){this.c=new ayn(this)},o.dc=function(){return this.f==0},o.Kc=function(){return this.c.Kc()},o.ed=function(){return this.c.ed()},o.fd=function(e){return this.c.fd(e)},o.bk=function(){return ik(this)},o.ck=function(e,t,i){return new kSn(e,t,i)},o.dk=function(){return new gvn},o.Mc=function(e){return X$n(this,e)},o.gc=function(){return this.f},o.kd=function(e,t){return new Jl(this.c,e,t)},o.Pc=function(){return this.c.Pc()},o.Qc=function(e){return this.c.Qc(e)},o.Ib=function(){return RY(this.c)},o.e=0,o.f=0,w(or,"BasicEMap",721),b(1046,66,Ch,ayn),o.Mi=function(e,t){Ufe(this,u(t,136))},o.Pi=function(e,t,i){var r;++(r=this,u(t,136),r).a.e},o.Qi=function(e,t){Gfe(this,u(t,136))},o.Ri=function(e,t,i){U1e(this,u(t,136),u(i,136))},o.Oi=function(e,t){Kxn(this.a)},w(or,"BasicEMap/1",1046),b(1047,66,Ch,gvn),o.aj=function(e){return K(DNe,nJn,621,e,0,1)},w(or,"BasicEMap/2",1047),b(1048,Kf,Lu,dyn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){return wx(this.a,e)},o.Kc=function(){return this.a.f==0?(p4(),lE.a):new Wjn(this.a)},o.Mc=function(e){var t;return t=this.a.f,VT(this.a,e),this.a.f!=t},o.gc=function(){return this.a.f},w(or,"BasicEMap/3",1048),b(1049,31,pw,byn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){return Fqn(this.a,e)},o.Kc=function(){return this.a.f==0?(p4(),lE.a):new Jjn(this.a)},o.gc=function(){return this.a.f},w(or,"BasicEMap/4",1049),b(1050,Kf,Lu,wyn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){var t,i,r,c,s,f,h,l,a;if(this.a.f>0&&D(e,44)&&(this.a._j(),l=u(e,44),h=l.ld(),c=h==null?0:mt(h),s=aV(this.a,c),t=this.a.d[s],t)){for(i=u(t.g,379),a=t.i,f=0;f"+this.c},o.a=0;var DNe=w(or,"BasicEMap/EntryImpl",621);b(546,1,{},EE),w(or,"BasicEMap/View",546);var lE;b(783,1,{}),o.Fb=function(e){return Xnn((Dn(),sr),e)},o.Hb=function(){return iY((Dn(),sr))},o.Ib=function(){return ca((Dn(),sr))},w(or,"ECollections/BasicEmptyUnmodifiableEList",783),b(1348,1,Hh,pvn),o.Nb=function(e){_i(this,e)},o.Rb=function(e){throw M(new Pe)},o.Ob=function(){return!1},o.Sb=function(){return!1},o.Pb=function(){throw M(new nc)},o.Tb=function(){return 0},o.Ub=function(){throw M(new nc)},o.Vb=function(){return-1},o.Qb=function(){throw M(new Pe)},o.Wb=function(e){throw M(new Pe)},w(or,"ECollections/BasicEmptyUnmodifiableEList/1",1348),b(1346,783,{20:1,16:1,15:1,61:1},cjn),o.bd=function(e,t){kEn()},o.Fc=function(e){return yEn()},o.cd=function(e,t){return jEn()},o.Gc=function(e){return EEn()},o.$b=function(){CEn()},o.Hc=function(e){return!1},o.Ic=function(e){return!1},o.Jc=function(e){qi(this,e)},o.Xb=function(e){return mX((Dn(),e)),null},o.dd=function(e){return-1},o.dc=function(){return!0},o.Kc=function(){return this.a},o.ed=function(){return this.a},o.fd=function(e){return this.a},o.Ti=function(e,t){return MEn()},o.Ui=function(e,t){TEn()},o.Lc=function(){return new Tn(null,new In(this,16))},o.gd=function(e){return AEn()},o.Mc=function(e){return SEn()},o.hd=function(e,t){return PEn()},o.gc=function(){return 0},o.jd=function(e){ud(this,e)},o.Nc=function(){return new In(this,16)},o.Oc=function(){return new Tn(null,new In(this,16))},o.kd=function(e,t){return Dn(),new Jl(sr,e,t)},o.Pc=function(){return wW((Dn(),sr))},o.Qc=function(e){return Dn(),M5(sr,e)},w(or,"ECollections/EmptyUnmodifiableEList",1346),b(1347,783,{20:1,16:1,15:1,61:1,597:1},ujn),o.bd=function(e,t){kEn()},o.Fc=function(e){return yEn()},o.cd=function(e,t){return jEn()},o.Gc=function(e){return EEn()},o.$b=function(){CEn()},o.Hc=function(e){return!1},o.Ic=function(e){return!1},o.Jc=function(e){qi(this,e)},o.Xb=function(e){return mX((Dn(),e)),null},o.dd=function(e){return-1},o.dc=function(){return!0},o.Kc=function(){return this.a},o.ed=function(){return this.a},o.fd=function(e){return this.a},o.Ti=function(e,t){return MEn()},o.Ui=function(e,t){TEn()},o.Lc=function(){return new Tn(null,new In(this,16))},o.gd=function(e){return AEn()},o.Mc=function(e){return SEn()},o.hd=function(e,t){return PEn()},o.gc=function(){return 0},o.jd=function(e){ud(this,e)},o.Nc=function(){return new In(this,16)},o.Oc=function(){return new Tn(null,new In(this,16))},o.kd=function(e,t){return Dn(),new Jl(sr,e,t)},o.Pc=function(){return wW((Dn(),sr))},o.Qc=function(e){return Dn(),M5(sr,e)},o.bk=function(){return Dn(),Dn(),Wh},w(or,"ECollections/EmptyUnmodifiableEMap",1347);var $dn=Nt(or,"Enumerator"),yO;b(288,1,{288:1},jF),o.Fb=function(e){var t;return this===e?!0:D(e,288)?(t=u(e,288),this.f==t.f&&Ube(this.i,t.i)&&WL(this.a,this.f&256?t.f&256?t.a:null:t.f&256?null:t.a)&&WL(this.d,t.d)&&WL(this.g,t.g)&&WL(this.e,t.e)&&b9e(this,t)):!1},o.Hb=function(){return this.f},o.Ib=function(){return gUn(this)},o.f=0;var Ooe=0,Doe=0,Loe=0,Noe=0,xdn=0,Fdn=0,Bdn=0,Rdn=0,Kdn=0,$oe,O9=0,D9=0,xoe=0,Foe=0,jO,_dn;w(or,"URI",288),b(1121,45,n2,ojn),o.zc=function(e,t){return u(Dr(this,Oe(e),u(t,288)),288)},w(or,"URI/URICache",1121),b(505,66,Ch,lvn,oM),o.Si=function(){return!0},w(or,"UniqueEList",505),b(590,63,Pl,eT),w(or,"WrappedException",590);var Ue=Nt(ts,iJn),Zw=Nt(ts,rJn),ku=Nt(ts,cJn),ng=Nt(ts,uJn),Cf=Nt(ts,oJn),As=Nt(ts,"EClass"),jU=Nt(ts,"EDataType"),Boe;b(1233,45,n2,sjn),o.xc=function(e){return Ai(e)?Nc(this,e):Kr(wr(this.f,e))},w(ts,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233);var EO=Nt(ts,"EEnum"),Bl=Nt(ts,sJn),jr=Nt(ts,fJn),Ss=Nt(ts,hJn),Ps,vb=Nt(ts,lJn),eg=Nt(ts,aJn);b(1042,1,{},hvn),o.Ib=function(){return"NIL"},w(ts,"EStructuralFeature/Internal/DynamicValueHolder/1",1042);var Roe;b(1041,45,n2,fjn),o.xc=function(e){return Ai(e)?Nc(this,e):Kr(wr(this.f,e))},w(ts,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041);var fu=Nt(ts,dJn),B3=Nt(ts,"EValidator/PatternMatcher"),Hdn,qdn,Hn,A1,tg,La,Koe,_oe,Hoe,Na,S1,$a,kb,Zf,qoe,Uoe,Is,P1,Goe,I1,ig,U2,ar,zoe,Xoe,yb,CO=Nt(Tt,"FeatureMap/Entry");b(545,1,{76:1},CC),o.Lk=function(){return this.a},o.md=function(){return this.b},w(qn,"BasicEObjectImpl/1",545),b(1040,1,TK,OMn),o.Fk=function(e){return YN(this.a,this.b,e)},o.Qj=function(){return dOn(this.a,this.b)},o.Wb=function(e){iJ(this.a,this.b,e)},o.Gk=function(){_we(this.a,this.b)},w(qn,"BasicEObjectImpl/4",1040),b(2081,1,{114:1}),o.Mk=function(e){this.e=e==0?Voe:K(ki,Fn,1,e,5,1)},o.li=function(e){return this.e[e]},o.mi=function(e,t){this.e[e]=t},o.ni=function(e){this.e[e]=null},o.Nk=function(){return this.c},o.Ok=function(){throw M(new Pe)},o.Pk=function(){throw M(new Pe)},o.Qk=function(){return this.d},o.Rk=function(){return this.e!=null},o.Sk=function(e){this.c=e},o.Tk=function(e){throw M(new Pe)},o.Uk=function(e){throw M(new Pe)},o.Vk=function(e){this.d=e};var Voe;w(qn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081),b(192,2081,{114:1},uf),o.Ok=function(){return this.a},o.Pk=function(){return this.b},o.Tk=function(e){this.a=e},o.Uk=function(e){this.b=e},w(qn,"BasicEObjectImpl/EPropertiesHolderImpl",192),b(516,99,bWn,CE),o.uh=function(){return this.f},o.zh=function(){return this.k},o.Bh=function(e,t){this.g=e,this.i=t},o.Dh=function(){return this.j&2?this.$h().Nk():this.ii()},o.Fh=function(){return this.i},o.wh=function(){return(this.j&1)!=0},o.Ph=function(){return this.g},o.Vh=function(){return(this.j&4)!=0},o.$h=function(){return!this.k&&(this.k=new uf),this.k},o.ci=function(e){this.$h().Sk(e),e?this.j|=2:this.j&=-3},o.ei=function(e){this.$h().Uk(e),e?this.j|=4:this.j&=-5},o.ii=function(){return(G1(),Hn).S},o.i=0,o.j=1,w(qn,"EObjectImpl",516),b(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},YV),o.li=function(e){return this.e[e]},o.mi=function(e,t){this.e[e]=t},o.ni=function(e){this.e[e]=null},o.Dh=function(){return this.d},o.Ih=function(e){return Ot(this.d,e)},o.Kh=function(){return this.d},o.Oh=function(){return this.e!=null},o.$h=function(){return!this.k&&(this.k=new mvn),this.k},o.ci=function(e){this.d=e},o.hi=function(){var e;return this.e==null&&(e=se(this.d),this.e=e==0?Woe:K(ki,Fn,1,e,5,1)),this},o.ji=function(){return 0};var Woe;w(qn,"DynamicEObjectImpl",798),b(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},GSn),o.Fb=function(e){return this===e},o.Hb=function(){return f0(this)},o.ci=function(e){this.d=e,this.b=uy(e,"key"),this.c=uy(e,b8)},o.Bi=function(){var e;return this.a==-1&&(e=l$(this,this.b),this.a=e==null?0:mt(e)),this.a},o.ld=function(){return l$(this,this.b)},o.md=function(){return l$(this,this.c)},o.Ci=function(e){this.a=e},o.Di=function(e){iJ(this,this.b,e)},o.nd=function(e){var t;return t=l$(this,this.c),iJ(this,this.c,e),t},o.a=0,w(qn,"DynamicEObjectImpl/BasicEMapEntry",1522),b(1523,1,{114:1},mvn),o.Mk=function(e){throw M(new Pe)},o.li=function(e){throw M(new Pe)},o.mi=function(e,t){throw M(new Pe)},o.ni=function(e){throw M(new Pe)},o.Nk=function(){throw M(new Pe)},o.Ok=function(){return this.a},o.Pk=function(){return this.b},o.Qk=function(){return this.c},o.Rk=function(){throw M(new Pe)},o.Sk=function(e){throw M(new Pe)},o.Tk=function(e){this.a=e},o.Uk=function(e){this.b=e},o.Vk=function(e){this.c=e},w(qn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523),b(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},eG),o.Ah=function(e){return SZ(this,e)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.d;case 2:return i?(!this.b&&(this.b=new lo((On(),ar),pc,this)),this.b):(!this.b&&(this.b=new lo((On(),ar),pc,this)),ik(this.b));case 3:return mOn(this);case 4:return!this.a&&(this.a=new ti(Oa,this,4)),this.a;case 5:return!this.c&&(this.c=new Eg(Oa,this,5)),this.c}return zo(this,e-se((On(),A1)),$n((r=u(Un(this,16),29),r||A1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 3:return this.Cb&&(i=(c=this.Db>>16,c>=0?SZ(this,i):this.Cb.Th(this,-1-c,null,i))),bW(this,u(e,155),i)}return s=u($n((r=u(Un(this,16),29),r||(On(),A1)),t),69),s.wk().zk(this,iu(this),t-se((On(),A1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 2:return!this.b&&(this.b=new lo((On(),ar),pc,this)),qC(this.b,e,i);case 3:return bW(this,null,i);case 4:return!this.a&&(this.a=new ti(Oa,this,4)),cr(this.a,e,i)}return c=u($n((r=u(Un(this,16),29),r||(On(),A1)),t),69),c.wk().Ak(this,iu(this),t-se((On(),A1)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!mOn(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return Uo(this,e-se((On(),A1)),$n((t=u(Un(this,16),29),t||A1),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:Obe(this,Oe(t));return;case 2:!this.b&&(this.b=new lo((On(),ar),pc,this)),TT(this.b,t);return;case 3:rqn(this,u(t,155));return;case 4:!this.a&&(this.a=new ti(Oa,this,4)),me(this.a),!this.a&&(this.a=new ti(Oa,this,4)),Bt(this.a,u(t,16));return;case 5:!this.c&&(this.c=new Eg(Oa,this,5)),me(this.c),!this.c&&(this.c=new Eg(Oa,this,5)),Bt(this.c,u(t,16));return}Jo(this,e-se((On(),A1)),$n((i=u(Un(this,16),29),i||A1),e),t)},o.ii=function(){return On(),A1},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:PQ(this,null);return;case 2:!this.b&&(this.b=new lo((On(),ar),pc,this)),this.b.c.$b();return;case 3:rqn(this,null);return;case 4:!this.a&&(this.a=new ti(Oa,this,4)),me(this.a);return;case 5:!this.c&&(this.c=new Eg(Oa,this,5)),me(this.c);return}Wo(this,e-se((On(),A1)),$n((t=u(Un(this,16),29),t||A1),e))},o.Ib=function(){return oBn(this)},o.d=null,w(qn,"EAnnotationImpl",519),b(141,721,Hcn,Iu),o.Gi=function(e,t){Wle(this,e,u(t,44))},o.Wk=function(e,t){return Qae(this,u(e,44),t)},o.$i=function(e){return u(u(this.c,71).$i(e),136)},o.Ii=function(){return u(this.c,71).Ii()},o.Ji=function(){return u(this.c,71).Ji()},o.Ki=function(e){return u(this.c,71).Ki(e)},o.Xk=function(e,t){return qC(this,e,t)},o.Fk=function(e){return u(this.c,79).Fk(e)},o.ak=function(){},o.Qj=function(){return u(this.c,79).Qj()},o.ck=function(e,t,i){var r;return r=u(jo(this.b).wi().si(this.b),136),r.Ci(e),r.Di(t),r.nd(i),r},o.dk=function(){return new FG(this)},o.Wb=function(e){TT(this,e)},o.Gk=function(){u(this.c,79).Gk()},w(Tt,"EcoreEMap",141),b(165,141,Hcn,lo),o._j=function(){var e,t,i,r,c,s;if(this.d==null){for(s=K(Ldn,_cn,66,2*this.f+1,0,1),i=this.c.Kc();i.e!=i.i.gc();)t=u(i.Yj(),136),r=t.Bi(),c=(r&et)%s.length,e=s[c],!e&&(e=s[c]=new FG(this)),e.Fc(t);this.d=s}},w(qn,"EAnnotationImpl/1",165),b(291,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,480:1,54:1,99:1,158:1,291:1,119:1,120:1}),o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),!!this.Jk();case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hN(this,i)}return c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i)},o.Wh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&p0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&p0(this.q).i==0)}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:this.ui(Oe(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:this.Zk(u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Bf(this,u(t,89),null),r&&r.oj();return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return On(),Xoe},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:this.ui(null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:this.Zk(1);return;case 8:ad(this,null);return;case 9:i=Bf(this,null,null),i&&i.oj();return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){gs(this),this.Bb|=1},o.Hk=function(){return gs(this)},o.Ik=function(){return this.t},o.Jk=function(){var e;return e=this.t,e>1||e==-1},o.Si=function(){return(this.Bb&512)!=0},o.Yk=function(e,t){return jY(this,e,t)},o.Zk=function(e){Zb(this,e)},o.Ib=function(){return Bnn(this)},o.s=0,o.t=1,w(qn,"ETypedElementImpl",291),b(461,291,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,480:1,54:1,99:1,158:1,461:1,291:1,119:1,120:1,692:1}),o.Ah=function(e){return JRn(this,e)},o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),!!this.Jk();case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return _n(),!!(this.Bb&Gs);case 11:return _n(),!!(this.Bb&Tw);case 12:return _n(),!!(this.Bb&vw);case 13:return this.j;case 14:return Mm(this);case 15:return _n(),!!(this.Bb&$u);case 16:return _n(),!!(this.Bb&wh);case 17:return Gb(this)}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 17:return this.Cb&&(i=(c=this.Db>>16,c>=0?JRn(this,i):this.Cb.Th(this,-1-c,null,i))),So(this,e,17,i)}return s=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),s.wk().zk(this,iu(this),t-se(this.ii()),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hN(this,i);case 17:return So(this,null,17,i)}return c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i)},o.Wh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&p0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&p0(this.q).i==0);case 10:return(this.Bb&Gs)==0;case 11:return(this.Bb&Tw)!=0;case 12:return(this.Bb&vw)!=0;case 13:return this.j!=null;case 14:return Mm(this)!=null;case 15:return(this.Bb&$u)!=0;case 16:return(this.Bb&wh)!=0;case 17:return!!Gb(this)}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:FN(this,Oe(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:this.Zk(u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Bf(this,u(t,89),null),r&&r.oj();return;case 10:sm(this,on(un(t)));return;case 11:lm(this,on(un(t)));return;case 12:fm(this,on(un(t)));return;case 13:bX(this,Oe(t));return;case 15:hm(this,on(un(t)));return;case 16:am(this,on(un(t)));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return On(),zoe},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:D(this.Cb,90)&&hw(Zu(u(this.Cb,90)),4),zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:this.Zk(1);return;case 8:ad(this,null);return;case 9:i=Bf(this,null,null),i&&i.oj();return;case 10:sm(this,!0);return;case 11:lm(this,!1);return;case 12:fm(this,!1);return;case 13:this.i=null,kT(this,null);return;case 15:hm(this,!1);return;case 16:am(this,!1);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){S4(Lr((Du(),zi),this)),gs(this),this.Bb|=1},o.pk=function(){return this.f},o.ik=function(){return Mm(this)},o.qk=function(){return Gb(this)},o.uk=function(){return null},o.$k=function(){return this.k},o.Lj=function(){return this.n},o.vk=function(){return bA(this)},o.wk=function(){var e,t,i,r,c,s,f,h,l;return this.p||(i=Gb(this),(i.i==null&&bh(i),i.i).length,r=this.uk(),r&&se(Gb(r)),c=gs(this),f=c.kk(),e=f?f.i&1?f==so?Gt:f==ye?Gi:f==cg?ov:f==Pi?si:f==Fa?nb:f==V2?eb:f==Fu?p3:M8:f:null,t=Mm(this),h=c.ik(),G5e(this),this.Bb&wh&&((s=$Z((Du(),zi),i))&&s!=this||(s=$p(Lr(zi,this))))?this.p=new LMn(this,s):this.Jk()?this.al()?r?this.Bb&$u?e?this.bl()?this.p=new Za(47,e,this,r):this.p=new Za(5,e,this,r):this.bl()?this.p=new rd(46,this,r):this.p=new rd(4,this,r):e?this.bl()?this.p=new Za(49,e,this,r):this.p=new Za(7,e,this,r):this.bl()?this.p=new rd(48,this,r):this.p=new rd(6,this,r):this.Bb&$u?e?e==Pd?this.p=new Xl(50,Soe,this):this.bl()?this.p=new Xl(43,e,this):this.p=new Xl(1,e,this):this.bl()?this.p=new Wl(42,this):this.p=new Wl(0,this):e?e==Pd?this.p=new Xl(41,Soe,this):this.bl()?this.p=new Xl(45,e,this):this.p=new Xl(3,e,this):this.bl()?this.p=new Wl(44,this):this.p=new Wl(2,this):D(c,156)?e==CO?this.p=new Wl(40,this):this.Bb&512?this.Bb&$u?e?this.p=new Xl(9,e,this):this.p=new Wl(8,this):e?this.p=new Xl(11,e,this):this.p=new Wl(10,this):this.Bb&$u?e?this.p=new Xl(13,e,this):this.p=new Wl(12,this):e?this.p=new Xl(15,e,this):this.p=new Wl(14,this):r?(l=r.t,l>1||l==-1?this.bl()?this.Bb&$u?e?this.p=new Za(25,e,this,r):this.p=new rd(24,this,r):e?this.p=new Za(27,e,this,r):this.p=new rd(26,this,r):this.Bb&$u?e?this.p=new Za(29,e,this,r):this.p=new rd(28,this,r):e?this.p=new Za(31,e,this,r):this.p=new rd(30,this,r):this.bl()?this.Bb&$u?e?this.p=new Za(33,e,this,r):this.p=new rd(32,this,r):e?this.p=new Za(35,e,this,r):this.p=new rd(34,this,r):this.Bb&$u?e?this.p=new Za(37,e,this,r):this.p=new rd(36,this,r):e?this.p=new Za(39,e,this,r):this.p=new rd(38,this,r)):this.bl()?this.Bb&$u?e?this.p=new Xl(17,e,this):this.p=new Wl(16,this):e?this.p=new Xl(19,e,this):this.p=new Wl(18,this):this.Bb&$u?e?this.p=new Xl(21,e,this):this.p=new Wl(20,this):e?this.p=new Xl(23,e,this):this.p=new Wl(22,this):this._k()?this.bl()?this.p=new ySn(u(c,29),this,r):this.p=new eJ(u(c,29),this,r):D(c,156)?e==CO?this.p=new Wl(40,this):this.Bb&$u?e?this.p=new kPn(t,h,this,(gx(),f==ye?Jdn:f==so?Gdn:f==Fa?Qdn:f==cg?Wdn:f==Pi?Vdn:f==V2?Ydn:f==Fu?zdn:f==fs?Xdn:MU)):this.p=new LIn(u(c,156),t,h,this):e?this.p=new vPn(t,h,this,(gx(),f==ye?Jdn:f==so?Gdn:f==Fa?Qdn:f==cg?Wdn:f==Pi?Vdn:f==V2?Ydn:f==Fu?zdn:f==fs?Xdn:MU)):this.p=new DIn(u(c,156),t,h,this):this.al()?r?this.Bb&$u?this.bl()?this.p=new ESn(u(c,29),this,r):this.p=new KV(u(c,29),this,r):this.bl()?this.p=new jSn(u(c,29),this,r):this.p=new HL(u(c,29),this,r):this.Bb&$u?this.bl()?this.p=new vAn(u(c,29),this):this.p=new nV(u(c,29),this):this.bl()?this.p=new mAn(u(c,29),this):this.p=new PL(u(c,29),this):this.bl()?r?this.Bb&$u?this.p=new CSn(u(c,29),this,r):this.p=new BV(u(c,29),this,r):this.Bb&$u?this.p=new kAn(u(c,29),this):this.p=new eV(u(c,29),this):r?this.Bb&$u?this.p=new MSn(u(c,29),this,r):this.p=new RV(u(c,29),this,r):this.Bb&$u?this.p=new yAn(u(c,29),this):this.p=new uM(u(c,29),this)),this.p},o.rk=function(){return(this.Bb&Gs)!=0},o._k=function(){return!1},o.al=function(){return!1},o.sk=function(){return(this.Bb&wh)!=0},o.xk=function(){return a$(this)},o.bl=function(){return!1},o.tk=function(){return(this.Bb&$u)!=0},o.cl=function(e){this.k=e},o.ui=function(e){FN(this,e)},o.Ib=function(){return $A(this)},o.e=!1,o.n=0,w(qn,"EStructuralFeatureImpl",461),b(331,461,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,480:1,54:1,99:1,331:1,158:1,461:1,291:1,119:1,120:1,692:1},fD),o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),!!Dnn(this);case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return _n(),!!(this.Bb&Gs);case 11:return _n(),!!(this.Bb&Tw);case 12:return _n(),!!(this.Bb&vw);case 13:return this.j;case 14:return Mm(this);case 15:return _n(),!!(this.Bb&$u);case 16:return _n(),!!(this.Bb&wh);case 17:return Gb(this);case 18:return _n(),!!(this.Bb&kc);case 19:return t?x$(this):xLn(this)}return zo(this,e-se((On(),tg)),$n((r=u(Un(this,16),29),r||tg),e),t,i)},o.Wh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return Dnn(this);case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&p0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&p0(this.q).i==0);case 10:return(this.Bb&Gs)==0;case 11:return(this.Bb&Tw)!=0;case 12:return(this.Bb&vw)!=0;case 13:return this.j!=null;case 14:return Mm(this)!=null;case 15:return(this.Bb&$u)!=0;case 16:return(this.Bb&wh)!=0;case 17:return!!Gb(this);case 18:return(this.Bb&kc)!=0;case 19:return!!xLn(this)}return Uo(this,e-se((On(),tg)),$n((t=u(Un(this,16),29),t||tg),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:FN(this,Oe(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:Zjn(this,u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Bf(this,u(t,89),null),r&&r.oj();return;case 10:sm(this,on(un(t)));return;case 11:lm(this,on(un(t)));return;case 12:fm(this,on(un(t)));return;case 13:bX(this,Oe(t));return;case 15:hm(this,on(un(t)));return;case 16:am(this,on(un(t)));return;case 18:sx(this,on(un(t)));return}Jo(this,e-se((On(),tg)),$n((i=u(Un(this,16),29),i||tg),e),t)},o.ii=function(){return On(),tg},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:D(this.Cb,90)&&hw(Zu(u(this.Cb,90)),4),zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:this.b=0,Zb(this,1);return;case 8:ad(this,null);return;case 9:i=Bf(this,null,null),i&&i.oj();return;case 10:sm(this,!0);return;case 11:lm(this,!1);return;case 12:fm(this,!1);return;case 13:this.i=null,kT(this,null);return;case 15:hm(this,!1);return;case 16:am(this,!1);return;case 18:sx(this,!1);return}Wo(this,e-se((On(),tg)),$n((t=u(Un(this,16),29),t||tg),e))},o.pi=function(){x$(this),S4(Lr((Du(),zi),this)),gs(this),this.Bb|=1},o.Jk=function(){return Dnn(this)},o.Yk=function(e,t){return this.b=0,this.a=null,jY(this,e,t)},o.Zk=function(e){Zjn(this,e)},o.Ib=function(){var e;return this.Db&64?$A(this):(e=new ls($A(this)),e.a+=" (iD: ",ql(e,(this.Bb&kc)!=0),e.a+=")",e.a)},o.b=0,w(qn,"EAttributeImpl",331),b(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),o.dl=function(e){return e.Dh()==this},o.Ah=function(e){return _x(this,e)},o.Bh=function(e,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=e},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return B0(this);case 4:return this.ik();case 5:return this.F;case 6:return t?jo(this):O4(this);case 7:return!this.A&&(this.A=new Tu(fu,this,7)),this.A}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?_x(this,i):this.Cb.Th(this,-1-c,null,i))),So(this,e,6,i)}return s=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),s.wk().zk(this,iu(this),t-se(this.ii()),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 6:return So(this,null,6,i);case 7:return!this.A&&(this.A=new Tu(fu,this,7)),cr(this.A,e,i)}return c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!B0(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!O4(this);case 7:return!!this.A&&this.A.i!=0}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:xM(this,Oe(t));return;case 2:wL(this,Oe(t));return;case 5:Dm(this,Oe(t));return;case 7:!this.A&&(this.A=new Tu(fu,this,7)),me(this.A),!this.A&&(this.A=new Tu(fu,this,7)),Bt(this.A,u(t,16));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return On(),Koe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:D(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:cm(this,null),U4(this,this.D);return;case 5:Dm(this,null);return;case 7:!this.A&&(this.A=new Tu(fu,this,7)),me(this.A);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.hk=function(){var e;return this.G==-1&&(this.G=(e=jo(this),e?f1(e.vi(),this):-1)),this.G},o.ik=function(){return null},o.jk=function(){return jo(this)},o.el=function(){return this.v},o.kk=function(){return B0(this)},o.lk=function(){return this.D!=null?this.D:this.B},o.mk=function(){return this.F},o.fk=function(e){return OF(this,e)},o.fl=function(e){this.v=e},o.gl=function(e){kxn(this,e)},o.hl=function(e){this.C=e},o.ui=function(e){xM(this,e)},o.Ib=function(){return UT(this)},o.C=null,o.D=null,o.G=-1,w(qn,"EClassifierImpl",364),b(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,481:1,119:1,120:1,691:1},cG),o.dl=function(e){return Nae(this,e.Dh())},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return B0(this);case 4:return null;case 5:return this.F;case 6:return t?jo(this):O4(this);case 7:return!this.A&&(this.A=new Tu(fu,this,7)),this.A;case 8:return _n(),!!(this.Bb&256);case 9:return _n(),!!(this.Bb&512);case 10:return Hr(this);case 11:return!this.q&&(this.q=new q(Ss,this,11,10)),this.q;case 12:return Jg(this);case 13:return H5(this);case 14:return H5(this),this.r;case 15:return Jg(this),this.k;case 16:return jnn(this);case 17:return $F(this);case 18:return bh(this);case 19:return TA(this);case 20:return Jg(this),this.o;case 21:return!this.s&&(this.s=new q(ku,this,21,17)),this.s;case 22:return Sc(this);case 23:return yF(this)}return zo(this,e-se((On(),La)),$n((r=u(Un(this,16),29),r||La),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?_x(this,i):this.Cb.Th(this,-1-c,null,i))),So(this,e,6,i);case 11:return!this.q&&(this.q=new q(Ss,this,11,10)),Xc(this.q,e,i);case 21:return!this.s&&(this.s=new q(ku,this,21,17)),Xc(this.s,e,i)}return s=u($n((r=u(Un(this,16),29),r||(On(),La)),t),69),s.wk().zk(this,iu(this),t-se((On(),La)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 6:return So(this,null,6,i);case 7:return!this.A&&(this.A=new Tu(fu,this,7)),cr(this.A,e,i);case 11:return!this.q&&(this.q=new q(Ss,this,11,10)),cr(this.q,e,i);case 21:return!this.s&&(this.s=new q(ku,this,21,17)),cr(this.s,e,i);case 22:return cr(Sc(this),e,i)}return c=u($n((r=u(Un(this,16),29),r||(On(),La)),t),69),c.wk().Ak(this,iu(this),t-se((On(),La)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!B0(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!O4(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&Sc(this.u.a).i!=0&&!(this.n&&Ix(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return Jg(this).i!=0;case 13:return H5(this).i!=0;case 14:return H5(this),this.r.i!=0;case 15:return Jg(this),this.k.i!=0;case 16:return jnn(this).i!=0;case 17:return $F(this).i!=0;case 18:return bh(this).i!=0;case 19:return TA(this).i!=0;case 20:return Jg(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&Ix(this.n);case 23:return yF(this).i!=0}return Uo(this,e-se((On(),La)),$n((t=u(Un(this,16),29),t||La),e))},o.Zh=function(e){var t;return t=this.i==null||this.q&&this.q.i!=0?null:uy(this,e),t||itn(this,e)},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:xM(this,Oe(t));return;case 2:wL(this,Oe(t));return;case 5:Dm(this,Oe(t));return;case 7:!this.A&&(this.A=new Tu(fu,this,7)),me(this.A),!this.A&&(this.A=new Tu(fu,this,7)),Bt(this.A,u(t,16));return;case 8:EY(this,on(un(t)));return;case 9:CY(this,on(un(t)));return;case 10:G5(Hr(this)),Bt(Hr(this),u(t,16));return;case 11:!this.q&&(this.q=new q(Ss,this,11,10)),me(this.q),!this.q&&(this.q=new q(Ss,this,11,10)),Bt(this.q,u(t,16));return;case 21:!this.s&&(this.s=new q(ku,this,21,17)),me(this.s),!this.s&&(this.s=new q(ku,this,21,17)),Bt(this.s,u(t,16));return;case 22:me(Sc(this)),Bt(Sc(this),u(t,16));return}Jo(this,e-se((On(),La)),$n((i=u(Un(this,16),29),i||La),e),t)},o.ii=function(){return On(),La},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:D(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:cm(this,null),U4(this,this.D);return;case 5:Dm(this,null);return;case 7:!this.A&&(this.A=new Tu(fu,this,7)),me(this.A);return;case 8:EY(this,!1);return;case 9:CY(this,!1);return;case 10:this.u&&G5(this.u);return;case 11:!this.q&&(this.q=new q(Ss,this,11,10)),me(this.q);return;case 21:!this.s&&(this.s=new q(ku,this,21,17)),me(this.s);return;case 22:this.n&&me(this.n);return}Wo(this,e-se((On(),La)),$n((t=u(Un(this,16),29),t||La),e))},o.pi=function(){var e,t;if(Jg(this),H5(this),jnn(this),$F(this),bh(this),TA(this),yF(this),Z6(ube(Zu(this))),this.s)for(e=0,t=this.s.i;e=0;--t)L(this,t);return VY(this,e)},o.Gk=function(){me(this)},o.Zi=function(e,t){return H$n(this,e,t)},w(Tt,"EcoreEList",632),b(504,632,Qr,F7),o.Li=function(){return!1},o.Lj=function(){return this.c},o.Mj=function(){return!1},o.ol=function(){return!0},o.Si=function(){return!0},o.Wi=function(e,t){return t},o.Yi=function(){return!1},o.c=0,w(Tt,"EObjectEList",504),b(83,504,Qr,ti),o.Mj=function(){return!0},o.ml=function(){return!1},o.al=function(){return!0},w(Tt,"EObjectContainmentEList",83),b(555,83,Qr,NC),o.Ni=function(){this.b=!0},o.Qj=function(){return this.b},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.b,this.b=!1,it(this.e,new Rs(this.e,2,this.c,e,!1))):this.b=!1},o.b=!1,w(Tt,"EObjectContainmentEList/Unsettable",555),b(1161,555,Qr,pPn),o.Ti=function(e,t){var i,r;return i=u(m5(this,e,t),89),fo(this.e)&&e4(this,new rk(this.a,7,(On(),_oe),Y(t),(r=i.c,D(r,90)?u(r,29):Is),e)),i},o.Uj=function(e,t){return A8e(this,u(e,89),t)},o.Vj=function(e,t){return T8e(this,u(e,89),t)},o.Wj=function(e,t,i){return Ike(this,u(e,89),u(t,89),i)},o.Ij=function(e,t,i,r,c){switch(e){case 3:return X6(this,e,t,i,r,this.i>1);case 5:return X6(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new ml(this.e,e,this.c,t,i,r,!0)}},o.Tj=function(){return!0},o.Qj=function(){return Ix(this)},o.Gk=function(){me(this)},w(qn,"EClassImpl/1",1161),b(1175,1174,Kcn),o.dj=function(e){var t,i,r,c,s,f,h;if(i=e.gj(),i!=8){if(r=s9e(e),r==0)switch(i){case 1:case 9:{h=e.kj(),h!=null&&(t=Zu(u(h,481)),!t.c&&(t.c=new V3),rT(t.c,e.jj())),f=e.ij(),f!=null&&(c=u(f,481),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new V3),ve(t.c,u(e.jj(),29))));break}case 3:{f=e.ij(),f!=null&&(c=u(f,481),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new V3),ve(t.c,u(e.jj(),29))));break}case 5:{if(f=e.ij(),f!=null)for(s=u(f,16).Kc();s.Ob();)c=u(s.Pb(),481),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new V3),ve(t.c,u(e.jj(),29)));break}case 4:{h=e.kj(),h!=null&&(c=u(h,481),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new V3),rT(t.c,e.jj())));break}case 6:{if(h=e.kj(),h!=null)for(s=u(h,16).Kc();s.Ob();)c=u(s.Pb(),481),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new V3),rT(t.c,e.jj()));break}}this.ql(r)}},o.ql=function(e){Uqn(this,e)},o.b=63,w(qn,"ESuperAdapter",1175),b(1176,1175,Kcn,pyn),o.ql=function(e){hw(this,e)},w(qn,"EClassImpl/10",1176),b(1165,710,Qr),o.Ei=function(e,t){return Zx(this,e,t)},o.Fi=function(e){return DRn(this,e)},o.Gi=function(e,t){Ok(this,e,t)},o.Hi=function(e){nk(this,e)},o.$i=function(e){return ZJ(this,e)},o.Xi=function(e,t){return d$(this,e,t)},o.Wk=function(e,t){throw M(new Pe)},o.Ii=function(){return new yp(this)},o.Ji=function(){return new M7(this)},o.Ki=function(e){return gk(this,e)},o.Xk=function(e,t){throw M(new Pe)},o.Fk=function(e){return this},o.Qj=function(){return this.i!=0},o.Wb=function(e){throw M(new Pe)},o.Gk=function(){throw M(new Pe)},w(Tt,"EcoreEList/UnmodifiableEList",1165),b(328,1165,Qr,pg),o.Yi=function(){return!1},w(Tt,"EcoreEList/UnmodifiableEList/FastCompare",328),b(1168,328,Qr,dFn),o.dd=function(e){var t,i,r;if(D(e,179)&&(t=u(e,179),i=t.Lj(),i!=-1)){for(r=this.i;i4)if(this.fk(e)){if(this.al()){if(r=u(e,54),i=r.Eh(),h=i==this.b&&(this.ml()?r.yh(r.Fh(),u($n(au(this.b),this.Lj()).Hk(),29).kk())==br(u($n(au(this.b),this.Lj()),19)).n:-1-r.Fh()==this.Lj()),this.nl()&&!h&&!i&&r.Jh()){for(c=0;c1||r==-1)):!1},o.ml=function(){var e,t,i;return t=$n(au(this.b),this.Lj()),D(t,102)?(e=u(t,19),i=br(e),!!i):!1},o.nl=function(){var e,t;return t=$n(au(this.b),this.Lj()),D(t,102)?(e=u(t,19),(e.Bb&hr)!=0):!1},o.dd=function(e){var t,i,r,c;if(r=this.zj(e),r>=0)return r;if(this.ol()){for(i=0,c=this.Ej();i=0;--e)gy(this,e,this.xj(e));return this.Fj()},o.Qc=function(e){var t;if(this.nl())for(t=this.Ej()-1;t>=0;--t)gy(this,t,this.xj(t));return this.Gj(e)},o.Gk=function(){G5(this)},o.Zi=function(e,t){return vNn(this,e,t)},w(Tt,"DelegatingEcoreEList",756),b(1171,756,Ucn,LAn),o.qj=function(e,t){rae(this,e,u(t,29))},o.rj=function(e){zle(this,u(e,29))},o.xj=function(e){var t,i;return t=u(L(Sc(this.a),e),89),i=t.c,D(i,90)?u(i,29):(On(),Is)},o.Cj=function(e){var t,i;return t=u(dw(Sc(this.a),e),89),i=t.c,D(i,90)?u(i,29):(On(),Is)},o.Dj=function(e,t){return e7e(this,e,u(t,29))},o.Li=function(){return!1},o.Ij=function(e,t,i,r,c){return null},o.sj=function(){return new kyn(this)},o.tj=function(){me(Sc(this.a))},o.uj=function(e){return fBn(this,e)},o.vj=function(e){var t,i;for(i=e.Kc();i.Ob();)if(t=i.Pb(),!fBn(this,t))return!1;return!0},o.wj=function(e){var t,i,r;if(D(e,15)&&(r=u(e,15),r.gc()==Sc(this.a).i)){for(t=r.Kc(),i=new ne(this);t.Ob();)if(x(t.Pb())!==x(ue(i)))return!1;return!0}return!1},o.yj=function(){var e,t,i,r,c;for(i=1,t=new ne(Sc(this.a));t.e!=t.i.gc();)e=u(ue(t),89),r=(c=e.c,D(c,90)?u(c,29):(On(),Is)),i=31*i+(r?f0(r):0);return i},o.zj=function(e){var t,i,r,c;for(r=0,i=new ne(Sc(this.a));i.e!=i.i.gc();){if(t=u(ue(i),89),x(e)===x((c=t.c,D(c,90)?u(c,29):(On(),Is))))return r;++r}return-1},o.Aj=function(){return Sc(this.a).i==0},o.Bj=function(){return null},o.Ej=function(){return Sc(this.a).i},o.Fj=function(){var e,t,i,r,c,s;for(s=Sc(this.a).i,c=K(ki,Fn,1,s,5,1),i=0,t=new ne(Sc(this.a));t.e!=t.i.gc();)e=u(ue(t),89),c[i++]=(r=e.c,D(r,90)?u(r,29):(On(),Is));return c},o.Gj=function(e){var t,i,r,c,s,f,h;for(h=Sc(this.a).i,e.lengthh&&$t(e,h,null),r=0,i=new ne(Sc(this.a));i.e!=i.i.gc();)t=u(ue(i),89),s=(f=t.c,D(f,90)?u(f,29):(On(),Is)),$t(e,r++,s);return e},o.Hj=function(){var e,t,i,r,c;for(c=new Hl,c.a+="[",e=Sc(this.a),t=0,r=Sc(this.a).i;t>16,c>=0?_x(this,i):this.Cb.Th(this,-1-c,null,i))),So(this,e,6,i);case 9:return!this.a&&(this.a=new q(Bl,this,9,5)),Xc(this.a,e,i)}return s=u($n((r=u(Un(this,16),29),r||(On(),Na)),t),69),s.wk().zk(this,iu(this),t-se((On(),Na)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 6:return So(this,null,6,i);case 7:return!this.A&&(this.A=new Tu(fu,this,7)),cr(this.A,e,i);case 9:return!this.a&&(this.a=new q(Bl,this,9,5)),cr(this.a,e,i)}return c=u($n((r=u(Un(this,16),29),r||(On(),Na)),t),69),c.wk().Ak(this,iu(this),t-se((On(),Na)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!B0(this);case 4:return!!lY(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!O4(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return Uo(this,e-se((On(),Na)),$n((t=u(Un(this,16),29),t||Na),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:xM(this,Oe(t));return;case 2:wL(this,Oe(t));return;case 5:Dm(this,Oe(t));return;case 7:!this.A&&(this.A=new Tu(fu,this,7)),me(this.A),!this.A&&(this.A=new Tu(fu,this,7)),Bt(this.A,u(t,16));return;case 8:BT(this,on(un(t)));return;case 9:!this.a&&(this.a=new q(Bl,this,9,5)),me(this.a),!this.a&&(this.a=new q(Bl,this,9,5)),Bt(this.a,u(t,16));return}Jo(this,e-se((On(),Na)),$n((i=u(Un(this,16),29),i||Na),e),t)},o.ii=function(){return On(),Na},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:D(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:cm(this,null),U4(this,this.D);return;case 5:Dm(this,null);return;case 7:!this.A&&(this.A=new Tu(fu,this,7)),me(this.A);return;case 8:BT(this,!0);return;case 9:!this.a&&(this.a=new q(Bl,this,9,5)),me(this.a);return}Wo(this,e-se((On(),Na)),$n((t=u(Un(this,16),29),t||Na),e))},o.pi=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e>16==5?u(this.Cb,685):null}return zo(this,e-se((On(),S1)),$n((r=u(Un(this,16),29),r||S1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 5:return this.Cb&&(i=(c=this.Db>>16,c>=0?cKn(this,i):this.Cb.Th(this,-1-c,null,i))),So(this,e,5,i)}return s=u($n((r=u(Un(this,16),29),r||(On(),S1)),t),69),s.wk().zk(this,iu(this),t-se((On(),S1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 5:return So(this,null,5,i)}return c=u($n((r=u(Un(this,16),29),r||(On(),S1)),t),69),c.wk().Ak(this,iu(this),t-se((On(),S1)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&u(this.Cb,685))}return Uo(this,e-se((On(),S1)),$n((t=u(Un(this,16),29),t||S1),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:zc(this,Oe(t));return;case 2:v$(this,u(t,17).a);return;case 3:iHn(this,u(t,2039));return;case 4:y$(this,Oe(t));return}Jo(this,e-se((On(),S1)),$n((i=u(Un(this,16),29),i||S1),e),t)},o.ii=function(){return On(),S1},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:v$(this,0);return;case 3:iHn(this,null);return;case 4:y$(this,null);return}Wo(this,e-se((On(),S1)),$n((t=u(Un(this,16),29),t||S1),e))},o.Ib=function(){var e;return e=this.c,e??this.zb},o.b=null,o.c=null,o.d=0,w(qn,"EEnumLiteralImpl",582);var LNe=Nt(qn,"EFactoryImpl/InternalEDateTimeFormat");b(498,1,{2114:1},X9),w(qn,"EFactoryImpl/1ClientInternalEDateTimeFormat",498),b(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},Jd),o.Ch=function(e,t,i){var r;return i=So(this,e,t,i),this.e&&D(e,179)&&(r=MA(this,this.e),r!=this.c&&(i=Lm(this,r,i))),i},o.Lh=function(e,t,i){var r;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new ti(jr,this,1)),this.d;case 2:return t?BA(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?Lx(this):this.a}return zo(this,e-se((On(),kb)),$n((r=u(Un(this,16),29),r||kb),e),t,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return JFn(this,null,i);case 1:return!this.d&&(this.d=new ti(jr,this,1)),cr(this.d,e,i);case 3:return QFn(this,null,i)}return c=u($n((r=u(Un(this,16),29),r||(On(),kb)),t),69),c.wk().Ak(this,iu(this),t-se((On(),kb)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return Uo(this,e-se((On(),kb)),$n((t=u(Un(this,16),29),t||kb),e))},o.bi=function(e,t){var i;switch(e){case 0:CKn(this,u(t,89));return;case 1:!this.d&&(this.d=new ti(jr,this,1)),me(this.d),!this.d&&(this.d=new ti(jr,this,1)),Bt(this.d,u(t,16));return;case 3:qZ(this,u(t,89));return;case 4:snn(this,u(t,850));return;case 5:R4(this,u(t,142));return}Jo(this,e-se((On(),kb)),$n((i=u(Un(this,16),29),i||kb),e),t)},o.ii=function(){return On(),kb},o.ki=function(e){var t;switch(e){case 0:CKn(this,null);return;case 1:!this.d&&(this.d=new ti(jr,this,1)),me(this.d);return;case 3:qZ(this,null);return;case 4:snn(this,null);return;case 5:R4(this,null);return}Wo(this,e-se((On(),kb)),$n((t=u(Un(this,16),29),t||kb),e))},o.Ib=function(){var e;return e=new mo(Hs(this)),e.a+=" (expression: ",_F(this,e),e.a+=")",e.a};var Udn;w(qn,"EGenericTypeImpl",248),b(2067,2062,zS),o.Gi=function(e,t){IAn(this,e,t)},o.Wk=function(e,t){return IAn(this,this.gc(),e),t},o.$i=function(e){return Zo(this.pj(),e)},o.Ii=function(){return this.Ji()},o.pj=function(){return new Cyn(this)},o.Ji=function(){return this.Ki(0)},o.Ki=function(e){return this.pj().fd(e)},o.Xk=function(e,t){return iw(this,e,!0),t},o.Ti=function(e,t){var i,r;return r=Ux(this,t),i=this.fd(e),i.Rb(r),r},o.Ui=function(e,t){var i;iw(this,t,!0),i=this.fd(e),i.Rb(t)},w(Tt,"AbstractSequentialInternalEList",2067),b(495,2067,zS,C7),o.$i=function(e){return Zo(this.pj(),e)},o.Ii=function(){return this.b==null?(Gl(),Gl(),aE):this.sl()},o.pj=function(){return new WMn(this.a,this.b)},o.Ji=function(){return this.b==null?(Gl(),Gl(),aE):this.sl()},o.Ki=function(e){var t,i;if(this.b==null){if(e<0||e>1)throw M(new Ir(w8+e+", size=0"));return Gl(),Gl(),aE}for(i=this.sl(),t=0;t0;)if(t=this.c[--this.d],(!this.e||t.pk()!=_v||t.Lj()!=0)&&(!this.vl()||this.b.Xh(t))){if(s=this.b.Nh(t,this.ul()),this.f=(dr(),u(t,69).xk()),this.f||t.Jk()){if(this.ul()?(r=u(s,15),this.k=r):(r=u(s,71),this.k=this.j=r),D(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?m_n(this,this.p):I_n(this))return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=-3,!0}else if(s!=null)return this.k=null,this.p=null,i=s,this.i=i,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=-3,!0}},o.Pb=function(){return PT(this)},o.Tb=function(){return this.a},o.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw M(new nc)},o.Vb=function(){return this.a-1},o.Qb=function(){throw M(new Pe)},o.ul=function(){return!1},o.Wb=function(e){throw M(new Pe)},o.vl=function(){return!0},o.a=0,o.d=0,o.f=!1,o.g=0,o.n=0,o.o=0;var aE;w(Tt,"EContentsEList/FeatureIteratorImpl",287),b(711,287,XS,ZX),o.ul=function(){return!0},w(Tt,"EContentsEList/ResolvingFeatureIteratorImpl",711),b(1178,711,XS,wAn),o.vl=function(){return!1},w(qn,"ENamedElementImpl/1/1",1178),b(1179,287,XS,gAn),o.vl=function(){return!1},w(qn,"ENamedElementImpl/1/2",1179),b(38,152,Vy,Vb,UN,Ci,c$,ml,Rs,aQ,WOn,dQ,JOn,IJ,QOn,gQ,YOn,OJ,ZOn,bQ,nDn,K6,rk,MN,wQ,eDn,DJ,tDn),o.Kj=function(){return WJ(this)},o.Rj=function(){var e;return e=WJ(this),e?e.ik():null},o.hj=function(e){return this.b==-1&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,e)},o.jj=function(){return this.c},o.Sj=function(){var e;return e=WJ(this),e?e.tk():!1},o.b=-1,w(qn,"ENotificationImpl",38),b(411,291,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,480:1,54:1,99:1,158:1,411:1,291:1,119:1,120:1},hD),o.Ah=function(e){return sKn(this,e)},o.Lh=function(e,t,i){var r,c,s;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),s=this.t,s>1||s==-1;case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,29):null;case 11:return!this.d&&(this.d=new Tu(fu,this,11)),this.d;case 12:return!this.c&&(this.c=new q(vb,this,12,10)),this.c;case 13:return!this.a&&(this.a=new P7(this,this)),this.a;case 14:return no(this)}return zo(this,e-se((On(),P1)),$n((r=u(Un(this,16),29),r||P1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?sKn(this,i):this.Cb.Th(this,-1-c,null,i))),So(this,e,10,i);case 12:return!this.c&&(this.c=new q(vb,this,12,10)),Xc(this.c,e,i)}return s=u($n((r=u(Un(this,16),29),r||(On(),P1)),t),69),s.wk().zk(this,iu(this),t-se((On(),P1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hN(this,i);case 10:return So(this,null,10,i);case 11:return!this.d&&(this.d=new Tu(fu,this,11)),cr(this.d,e,i);case 12:return!this.c&&(this.c=new q(vb,this,12,10)),cr(this.c,e,i);case 14:return cr(no(this),e,i)}return c=u($n((r=u(Un(this,16),29),r||(On(),P1)),t),69),c.wk().Ak(this,iu(this),t-se((On(),P1)),e,i)},o.Wh=function(e){var t,i,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&p0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&p0(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&no(this.a.a).i!=0&&!(this.b&&Ox(this.b));case 14:return!!this.b&&Ox(this.b)}return Uo(this,e-se((On(),P1)),$n((t=u(Un(this,16),29),t||P1),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:zc(this,Oe(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:Zb(this,u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Bf(this,u(t,89),null),r&&r.oj();return;case 11:!this.d&&(this.d=new Tu(fu,this,11)),me(this.d),!this.d&&(this.d=new Tu(fu,this,11)),Bt(this.d,u(t,16));return;case 12:!this.c&&(this.c=new q(vb,this,12,10)),me(this.c),!this.c&&(this.c=new q(vb,this,12,10)),Bt(this.c,u(t,16));return;case 13:!this.a&&(this.a=new P7(this,this)),G5(this.a),!this.a&&(this.a=new P7(this,this)),Bt(this.a,u(t,16));return;case 14:me(no(this)),Bt(no(this),u(t,16));return}Jo(this,e-se((On(),P1)),$n((i=u(Un(this,16),29),i||P1),e),t)},o.ii=function(){return On(),P1},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:Zb(this,1);return;case 8:ad(this,null);return;case 9:i=Bf(this,null,null),i&&i.oj();return;case 11:!this.d&&(this.d=new Tu(fu,this,11)),me(this.d);return;case 12:!this.c&&(this.c=new q(vb,this,12,10)),me(this.c);return;case 13:this.a&&G5(this.a);return;case 14:this.b&&me(this.b);return}Wo(this,e-se((On(),P1)),$n((t=u(Un(this,16),29),t||P1),e))},o.pi=function(){var e,t;if(this.c)for(e=0,t=this.c.i;eh&&$t(e,h,null),r=0,i=new ne(no(this.a));i.e!=i.i.gc();)t=u(ue(i),89),s=(f=t.c,f||(On(),Zf)),$t(e,r++,s);return e},o.Hj=function(){var e,t,i,r,c;for(c=new Hl,c.a+="[",e=no(this.a),t=0,r=no(this.a).i;t1);case 5:return X6(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new ml(this.e,e,this.c,t,i,r,!0)}},o.Tj=function(){return!0},o.Qj=function(){return Ox(this)},o.Gk=function(){me(this)},w(qn,"EOperationImpl/2",1377),b(507,1,{2037:1,507:1},DMn),w(qn,"EPackageImpl/1",507),b(14,83,Qr,q),o.il=function(){return this.d},o.jl=function(){return this.b},o.ml=function(){return!0},o.b=0,w(Tt,"EObjectContainmentWithInverseEList",14),b(365,14,Qr,jp),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Tt,"EObjectContainmentWithInverseEList/Resolving",365),b(307,365,Qr,Hb),o.Ni=function(){this.a.tb=null},w(qn,"EPackageImpl/2",307),b(1278,1,{},qse),w(qn,"EPackageImpl/3",1278),b(733,45,n2,ez),o._b=function(e){return Ai(e)?AN(this,e):!!wr(this.f,e)},w(qn,"EPackageRegistryImpl",733),b(518,291,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,480:1,54:1,99:1,158:1,518:1,291:1,119:1,120:1},lD),o.Ah=function(e){return fKn(this,e)},o.Lh=function(e,t,i){var r,c,s;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),s=this.t,s>1||s==-1;case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,62):null}return zo(this,e-se((On(),ig)),$n((r=u(Un(this,16),29),r||ig),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?fKn(this,i):this.Cb.Th(this,-1-c,null,i))),So(this,e,10,i)}return s=u($n((r=u(Un(this,16),29),r||(On(),ig)),t),69),s.wk().zk(this,iu(this),t-se((On(),ig)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hN(this,i);case 10:return So(this,null,10,i)}return c=u($n((r=u(Un(this,16),29),r||(On(),ig)),t),69),c.wk().Ak(this,iu(this),t-se((On(),ig)),e,i)},o.Wh=function(e){var t,i,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&p0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&p0(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,62))}return Uo(this,e-se((On(),ig)),$n((t=u(Un(this,16),29),t||ig),e))},o.ii=function(){return On(),ig},w(qn,"EParameterImpl",518),b(102,461,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,480:1,54:1,99:1,158:1,102:1,461:1,291:1,119:1,120:1,692:1},rV),o.Lh=function(e,t,i){var r,c,s,f;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),f=this.t,f>1||f==-1;case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return _n(),!!(this.Bb&Gs);case 11:return _n(),!!(this.Bb&Tw);case 12:return _n(),!!(this.Bb&vw);case 13:return this.j;case 14:return Mm(this);case 15:return _n(),!!(this.Bb&$u);case 16:return _n(),!!(this.Bb&wh);case 17:return Gb(this);case 18:return _n(),!!(this.Bb&kc);case 19:return _n(),s=br(this),!!(s&&s.Bb&kc);case 20:return _n(),!!(this.Bb&hr);case 21:return t?br(this):this.b;case 22:return t?eY(this):TLn(this);case 23:return!this.a&&(this.a=new Eg(ng,this,23)),this.a}return zo(this,e-se((On(),U2)),$n((r=u(Un(this,16),29),r||U2),e),t,i)},o.Wh=function(e){var t,i,r,c;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return c=this.t,c>1||c==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&p0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&p0(this.q).i==0);case 10:return(this.Bb&Gs)==0;case 11:return(this.Bb&Tw)!=0;case 12:return(this.Bb&vw)!=0;case 13:return this.j!=null;case 14:return Mm(this)!=null;case 15:return(this.Bb&$u)!=0;case 16:return(this.Bb&wh)!=0;case 17:return!!Gb(this);case 18:return(this.Bb&kc)!=0;case 19:return r=br(this),!!r&&(r.Bb&kc)!=0;case 20:return(this.Bb&hr)==0;case 21:return!!this.b;case 22:return!!TLn(this);case 23:return!!this.a&&this.a.i!=0}return Uo(this,e-se((On(),U2)),$n((t=u(Un(this,16),29),t||U2),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:FN(this,Oe(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:Zb(this,u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Bf(this,u(t,89),null),r&&r.oj();return;case 10:sm(this,on(un(t)));return;case 11:lm(this,on(un(t)));return;case 12:fm(this,on(un(t)));return;case 13:bX(this,Oe(t));return;case 15:hm(this,on(un(t)));return;case 16:am(this,on(un(t)));return;case 18:A2e(this,on(un(t)));return;case 20:LY(this,on(un(t)));return;case 21:OQ(this,u(t,19));return;case 23:!this.a&&(this.a=new Eg(ng,this,23)),me(this.a),!this.a&&(this.a=new Eg(ng,this,23)),Bt(this.a,u(t,16));return}Jo(this,e-se((On(),U2)),$n((i=u(Un(this,16),29),i||U2),e),t)},o.ii=function(){return On(),U2},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:D(this.Cb,90)&&hw(Zu(u(this.Cb,90)),4),zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:Zb(this,1);return;case 8:ad(this,null);return;case 9:i=Bf(this,null,null),i&&i.oj();return;case 10:sm(this,!0);return;case 11:lm(this,!1);return;case 12:fm(this,!1);return;case 13:this.i=null,kT(this,null);return;case 15:hm(this,!1);return;case 16:am(this,!1);return;case 18:DY(this,!1),D(this.Cb,90)&&hw(Zu(u(this.Cb,90)),2);return;case 20:LY(this,!0);return;case 21:OQ(this,null);return;case 23:!this.a&&(this.a=new Eg(ng,this,23)),me(this.a);return}Wo(this,e-se((On(),U2)),$n((t=u(Un(this,16),29),t||U2),e))},o.pi=function(){eY(this),S4(Lr((Du(),zi),this)),gs(this),this.Bb|=1},o.uk=function(){return br(this)},o._k=function(){var e;return e=br(this),!!e&&(e.Bb&kc)!=0},o.al=function(){return(this.Bb&kc)!=0},o.bl=function(){return(this.Bb&hr)!=0},o.Yk=function(e,t){return this.c=null,jY(this,e,t)},o.Ib=function(){var e;return this.Db&64?$A(this):(e=new ls($A(this)),e.a+=" (containment: ",ql(e,(this.Bb&kc)!=0),e.a+=", resolveProxies: ",ql(e,(this.Bb&hr)!=0),e.a+=")",e.a)},w(qn,"EReferenceImpl",102),b(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},Cvn),o.Fb=function(e){return this===e},o.ld=function(){return this.b},o.md=function(){return this.c},o.Hb=function(){return f0(this)},o.Di=function(e){Dbe(this,Oe(e))},o.nd=function(e){return pbe(this,Oe(e))},o.Lh=function(e,t,i){var r;switch(e){case 0:return this.b;case 1:return this.c}return zo(this,e-se((On(),ar)),$n((r=u(Un(this,16),29),r||ar),e),t,i)},o.Wh=function(e){var t;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return Uo(this,e-se((On(),ar)),$n((t=u(Un(this,16),29),t||ar),e))},o.bi=function(e,t){var i;switch(e){case 0:Lbe(this,Oe(t));return;case 1:SQ(this,Oe(t));return}Jo(this,e-se((On(),ar)),$n((i=u(Un(this,16),29),i||ar),e),t)},o.ii=function(){return On(),ar},o.ki=function(e){var t;switch(e){case 0:AQ(this,null);return;case 1:SQ(this,null);return}Wo(this,e-se((On(),ar)),$n((t=u(Un(this,16),29),t||ar),e))},o.Bi=function(){var e;return this.a==-1&&(e=this.b,this.a=e==null?0:t1(e)),this.a},o.Ci=function(e){this.a=e},o.Ib=function(){var e;return this.Db&64?Hs(this):(e=new ls(Hs(this)),e.a+=" (key: ",Er(e,this.b),e.a+=", value: ",Er(e,this.c),e.a+=")",e.a)},o.a=-1,o.b=null,o.c=null;var pc=w(qn,"EStringToStringMapEntryImpl",561),Qoe=Nt(Tt,"FeatureMap/Entry/Internal");b(576,1,VS),o.xl=function(e){return this.yl(u(e,54))},o.yl=function(e){return this.xl(e)},o.Fb=function(e){var t,i;return this===e?!0:D(e,76)?(t=u(e,76),t.Lk()==this.c?(i=this.md(),i==null?t.md()==null:rt(i,t.md())):!1):!1},o.Lk=function(){return this.c},o.Hb=function(){var e;return e=this.md(),mt(this.c)^(e==null?0:mt(e))},o.Ib=function(){var e,t;return e=this.c,t=jo(e.qk()).yi(),e.xe(),(t!=null&&t.length!=0?t+":"+e.xe():e.xe())+"="+this.md()},w(qn,"EStructuralFeatureImpl/BasicFeatureMapEntry",576),b(791,576,VS,dV),o.yl=function(e){return new dV(this.c,e)},o.md=function(){return this.a},o.zl=function(e,t,i){return gve(this,e,this.a,t,i)},o.Al=function(e,t,i){return pve(this,e,this.a,t,i)},w(qn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791),b(1350,1,{},LMn),o.yk=function(e,t,i,r,c){var s;return s=u($4(e,this.b),220),s.Yl(this.a).Fk(r)},o.zk=function(e,t,i,r,c){var s;return s=u($4(e,this.b),220),s.Pl(this.a,r,c)},o.Ak=function(e,t,i,r,c){var s;return s=u($4(e,this.b),220),s.Ql(this.a,r,c)},o.Bk=function(e,t,i){var r;return r=u($4(e,this.b),220),r.Yl(this.a).Qj()},o.Ck=function(e,t,i,r){var c;c=u($4(e,this.b),220),c.Yl(this.a).Wb(r)},o.Dk=function(e,t,i){return u($4(e,this.b),220).Yl(this.a)},o.Ek=function(e,t,i){var r;r=u($4(e,this.b),220),r.Yl(this.a).Gk()},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350),b(91,1,{},Xl,Za,Wl,rd),o.yk=function(e,t,i,r,c){var s;if(s=t.li(i),s==null&&t.mi(i,s=XA(this,e)),!c)switch(this.e){case 50:case 41:return u(s,597).bk();case 40:return u(s,220).Vl()}return s},o.zk=function(e,t,i,r,c){var s,f;return f=t.li(i),f==null&&t.mi(i,f=XA(this,e)),s=u(f,71).Wk(r,c),s},o.Ak=function(e,t,i,r,c){var s;return s=t.li(i),s!=null&&(c=u(s,71).Xk(r,c)),c},o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null&&u(r,79).Qj()},o.Ck=function(e,t,i,r){var c;c=u(t.li(i),79),!c&&t.mi(i,c=XA(this,e)),c.Wb(r)},o.Dk=function(e,t,i){var r,c;return c=t.li(i),c==null&&t.mi(i,c=XA(this,e)),D(c,79)?u(c,79):(r=u(t.li(i),15),new jyn(r))},o.Ek=function(e,t,i){var r;r=u(t.li(i),79),!r&&t.mi(i,r=XA(this,e)),r.Gk()},o.b=0,o.e=0,w(qn,"EStructuralFeatureImpl/InternalSettingDelegateMany",91),b(512,1,{}),o.zk=function(e,t,i,r,c){throw M(new Pe)},o.Ak=function(e,t,i,r,c){throw M(new Pe)},o.Dk=function(e,t,i){return new OIn(this,e,t,i)};var rl;w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512),b(1367,1,TK,OIn),o.Fk=function(e){return this.a.yk(this.c,this.d,this.b,e,!0)},o.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},o.Wb=function(e){this.a.Ck(this.c,this.d,this.b,e)},o.Gk=function(){this.a.Ek(this.c,this.d,this.b)},o.b=0,w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367),b(784,512,{},eJ),o.yk=function(e,t,i,r,c){return AF(e,e.Ph(),e.Fh())==this.b?this.bl()&&r?dF(e):e.Ph():null},o.zk=function(e,t,i,r,c){var s,f;return e.Ph()&&(c=(s=e.Fh(),s>=0?e.Ah(c):e.Ph().Th(e,-1-s,null,c))),f=Ot(e.Dh(),this.e),e.Ch(r,f,c)},o.Ak=function(e,t,i,r,c){var s;return s=Ot(e.Dh(),this.e),e.Ch(null,s,c)},o.Bk=function(e,t,i){var r;return r=Ot(e.Dh(),this.e),!!e.Ph()&&e.Fh()==r},o.Ck=function(e,t,i,r){var c,s,f,h,l;if(r!=null&&!OF(this.a,r))throw M(new t4(WS+(D(r,58)?HZ(u(r,58).Dh()):sQ(wo(r)))+JS+this.a+"'"));if(c=e.Ph(),f=Ot(e.Dh(),this.e),x(r)!==x(c)||e.Fh()!=f&&r!=null){if(pm(e,u(r,58)))throw M(new Gn(d8+e.Ib()));l=null,c&&(l=(s=e.Fh(),s>=0?e.Ah(l):e.Ph().Th(e,-1-s,null,l))),h=u(r,54),h&&(l=h.Rh(e,Ot(h.Dh(),this.b),null,l)),l=e.Ch(h,f,l),l&&l.oj()}else e.vh()&&e.wh()&&it(e,new Ci(e,1,f,r,r))},o.Ek=function(e,t,i){var r,c,s,f;r=e.Ph(),r?(f=(c=e.Fh(),c>=0?e.Ah(null):e.Ph().Th(e,-1-c,null,null)),s=Ot(e.Dh(),this.e),f=e.Ch(null,s,f),f&&f.oj()):e.vh()&&e.wh()&&it(e,new K6(e,1,this.e,null,null))},o.bl=function(){return!1},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784),b(1351,784,{},ySn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351),b(574,512,{}),o.yk=function(e,t,i,r,c){var s;return s=t.li(i),s==null?this.b:x(s)===x(rl)?null:s},o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null&&(x(r)===x(rl)||!rt(r,this.b))},o.Ck=function(e,t,i,r){var c,s;e.vh()&&e.wh()?(c=(s=t.li(i),s==null?this.b:x(s)===x(rl)?null:s),r==null?this.c!=null?(t.mi(i,null),r=this.b):this.b!=null?t.mi(i,rl):t.mi(i,null):(this.Bl(r),t.mi(i,r)),it(e,this.d.Cl(e,1,this.e,c,r))):r==null?this.c!=null?t.mi(i,null):this.b!=null?t.mi(i,rl):t.mi(i,null):(this.Bl(r),t.mi(i,r))},o.Ek=function(e,t,i){var r,c;e.vh()&&e.wh()?(r=(c=t.li(i),c==null?this.b:x(c)===x(rl)?null:c),t.ni(i),it(e,this.d.Cl(e,1,this.e,r,this.b))):t.ni(i)},o.Bl=function(e){throw M(new Lyn)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574),b(h2,1,{},Mvn),o.Cl=function(e,t,i,r,c){return new K6(e,t,i,r,c)},o.Dl=function(e,t,i,r,c,s){return new MN(e,t,i,r,c,s)};var Gdn,zdn,Xdn,Vdn,Wdn,Jdn,Qdn,MU,Ydn;w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",h2),b(1368,h2,{},Tvn),o.Cl=function(e,t,i,r,c){return new DJ(e,t,i,on(un(r)),on(un(c)))},o.Dl=function(e,t,i,r,c,s){return new tDn(e,t,i,on(un(r)),on(un(c)),s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368),b(1369,h2,{},Avn),o.Cl=function(e,t,i,r,c){return new aQ(e,t,i,u(r,222).a,u(c,222).a)},o.Dl=function(e,t,i,r,c,s){return new WOn(e,t,i,u(r,222).a,u(c,222).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369),b(1370,h2,{},Svn),o.Cl=function(e,t,i,r,c){return new dQ(e,t,i,u(r,180).a,u(c,180).a)},o.Dl=function(e,t,i,r,c,s){return new JOn(e,t,i,u(r,180).a,u(c,180).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370),b(1371,h2,{},Pvn),o.Cl=function(e,t,i,r,c){return new IJ(e,t,i,$(R(r)),$(R(c)))},o.Dl=function(e,t,i,r,c,s){return new QOn(e,t,i,$(R(r)),$(R(c)),s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371),b(1372,h2,{},Ivn),o.Cl=function(e,t,i,r,c){return new gQ(e,t,i,u(r,161).a,u(c,161).a)},o.Dl=function(e,t,i,r,c,s){return new YOn(e,t,i,u(r,161).a,u(c,161).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372),b(1373,h2,{},Ovn),o.Cl=function(e,t,i,r,c){return new OJ(e,t,i,u(r,17).a,u(c,17).a)},o.Dl=function(e,t,i,r,c,s){return new ZOn(e,t,i,u(r,17).a,u(c,17).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373),b(1374,h2,{},Dvn),o.Cl=function(e,t,i,r,c){return new bQ(e,t,i,u(r,168).a,u(c,168).a)},o.Dl=function(e,t,i,r,c,s){return new nDn(e,t,i,u(r,168).a,u(c,168).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374),b(1375,h2,{},Lvn),o.Cl=function(e,t,i,r,c){return new wQ(e,t,i,u(r,191).a,u(c,191).a)},o.Dl=function(e,t,i,r,c,s){return new eDn(e,t,i,u(r,191).a,u(c,191).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375),b(1353,574,{},DIn),o.Bl=function(e){if(!this.a.fk(e))throw M(new t4(WS+wo(e)+JS+this.a+"'"))},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353),b(1354,574,{},vPn),o.Bl=function(e){},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354),b(785,574,{}),o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null},o.Ck=function(e,t,i,r){var c,s;e.vh()&&e.wh()?(c=!0,s=t.li(i),s==null?(c=!1,s=this.b):x(s)===x(rl)&&(s=null),r==null?this.c!=null?(t.mi(i,null),r=this.b):t.mi(i,rl):(this.Bl(r),t.mi(i,r)),it(e,this.d.Dl(e,1,this.e,s,r,!c))):r==null?this.c!=null?t.mi(i,null):t.mi(i,rl):(this.Bl(r),t.mi(i,r))},o.Ek=function(e,t,i){var r,c;e.vh()&&e.wh()?(r=!0,c=t.li(i),c==null?(r=!1,c=this.b):x(c)===x(rl)&&(c=null),t.ni(i),it(e,this.d.Dl(e,2,this.e,c,this.b,r))):t.ni(i)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785),b(1355,785,{},LIn),o.Bl=function(e){if(!this.a.fk(e))throw M(new t4(WS+wo(e)+JS+this.a+"'"))},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355),b(1356,785,{},kPn),o.Bl=function(e){},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356),b(410,512,{},uM),o.yk=function(e,t,i,r,c){var s,f,h,l,a;if(a=t.li(i),this.tk()&&x(a)===x(rl))return null;if(this.bl()&&r&&a!=null){if(h=u(a,54),h.Vh()&&(l=ea(e,h),h!=l)){if(!OF(this.a,l))throw M(new t4(WS+wo(l)+JS+this.a+"'"));t.mi(i,a=l),this.al()&&(s=u(l,54),f=h.Th(e,this.b?Ot(h.Dh(),this.b):-1-Ot(e.Dh(),this.e),null,null),!s.Ph()&&(f=s.Rh(e,this.b?Ot(s.Dh(),this.b):-1-Ot(e.Dh(),this.e),null,f)),f&&f.oj()),e.vh()&&e.wh()&&it(e,new K6(e,9,this.e,h,l))}return a}else return a},o.zk=function(e,t,i,r,c){var s,f;return f=t.li(i),x(f)===x(rl)&&(f=null),t.mi(i,r),this.Mj()?x(f)!==x(r)&&f!=null&&(s=u(f,54),c=s.Th(e,Ot(s.Dh(),this.b),null,c)):this.al()&&f!=null&&(c=u(f,54).Th(e,-1-Ot(e.Dh(),this.e),null,c)),e.vh()&&e.wh()&&(!c&&(c=new F1(4)),c.nj(new K6(e,1,this.e,f,r))),c},o.Ak=function(e,t,i,r,c){var s;return s=t.li(i),x(s)===x(rl)&&(s=null),t.ni(i),e.vh()&&e.wh()&&(!c&&(c=new F1(4)),this.tk()?c.nj(new K6(e,2,this.e,s,null)):c.nj(new K6(e,1,this.e,s,null))),c},o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null},o.Ck=function(e,t,i,r){var c,s,f,h,l;if(r!=null&&!OF(this.a,r))throw M(new t4(WS+(D(r,58)?HZ(u(r,58).Dh()):sQ(wo(r)))+JS+this.a+"'"));l=t.li(i),h=l!=null,this.tk()&&x(l)===x(rl)&&(l=null),f=null,this.Mj()?x(l)!==x(r)&&(l!=null&&(c=u(l,54),f=c.Th(e,Ot(c.Dh(),this.b),null,f)),r!=null&&(c=u(r,54),f=c.Rh(e,Ot(c.Dh(),this.b),null,f))):this.al()&&x(l)!==x(r)&&(l!=null&&(f=u(l,54).Th(e,-1-Ot(e.Dh(),this.e),null,f)),r!=null&&(f=u(r,54).Rh(e,-1-Ot(e.Dh(),this.e),null,f))),r==null&&this.tk()?t.mi(i,rl):t.mi(i,r),e.vh()&&e.wh()?(s=new MN(e,1,this.e,l,r,this.tk()&&!h),f?(f.nj(s),f.oj()):it(e,s)):f&&f.oj()},o.Ek=function(e,t,i){var r,c,s,f,h;h=t.li(i),f=h!=null,this.tk()&&x(h)===x(rl)&&(h=null),s=null,h!=null&&(this.Mj()?(r=u(h,54),s=r.Th(e,Ot(r.Dh(),this.b),null,s)):this.al()&&(s=u(h,54).Th(e,-1-Ot(e.Dh(),this.e),null,s))),t.ni(i),e.vh()&&e.wh()?(c=new MN(e,this.tk()?2:1,this.e,h,null,f),s?(s.nj(c),s.oj()):it(e,c)):s&&s.oj()},o.Mj=function(){return!1},o.al=function(){return!1},o.bl=function(){return!1},o.tk=function(){return!1},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410),b(575,410,{},PL),o.al=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575),b(1359,575,{},mAn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359),b(787,575,{},nV),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787),b(1361,787,{},vAn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361),b(650,575,{},HL),o.Mj=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650),b(1360,650,{},jSn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360),b(788,650,{},KV),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788),b(1362,788,{},ESn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362),b(651,410,{},eV),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651),b(1363,651,{},kAn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363),b(789,651,{},BV),o.Mj=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789),b(1364,789,{},CSn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364),b(1357,410,{},yAn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357),b(786,410,{},RV),o.Mj=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786),b(1358,786,{},MSn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358),b(790,576,VS,xW),o.yl=function(e){return new xW(this.a,this.c,e)},o.md=function(){return this.b},o.zl=function(e,t,i){return b4e(this,e,this.b,i)},o.Al=function(e,t,i){return w4e(this,e,this.b,i)},w(qn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790),b(1365,1,TK,jyn),o.Fk=function(e){return this.a},o.Qj=function(){return D(this.a,97)?u(this.a,97).Qj():!this.a.dc()},o.Wb=function(e){this.a.$b(),this.a.Gc(u(e,15))},o.Gk=function(){D(this.a,97)?u(this.a,97).Gk():this.a.$b()},w(qn,"EStructuralFeatureImpl/SettingMany",1365),b(1366,576,VS,XDn),o.xl=function(e){return new DL((at(),x9),this.b.ri(this.a,e))},o.md=function(){return null},o.zl=function(e,t,i){return i},o.Al=function(e,t,i){return i},w(qn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366),b(652,576,VS,DL),o.xl=function(e){return new DL(this.c,e)},o.md=function(){return this.a},o.zl=function(e,t,i){return i},o.Al=function(e,t,i){return i},w(qn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652),b(403,505,Ch,V3),o.aj=function(e){return K(As,Fn,29,e,0,1)},o.Yi=function(){return!1},w(qn,"ESuperAdapter/1",403),b(456,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,456:1,119:1,120:1},UO),o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new x6(this,jr,this)),this.a}return zo(this,e-se((On(),yb)),$n((r=u(Un(this,16),29),r||yb),e),t,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 2:return!this.a&&(this.a=new x6(this,jr,this)),cr(this.a,e,i)}return c=u($n((r=u(Un(this,16),29),r||(On(),yb)),t),69),c.wk().Ak(this,iu(this),t-se((On(),yb)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return Uo(this,e-se((On(),yb)),$n((t=u(Un(this,16),29),t||yb),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:zc(this,Oe(t));return;case 2:!this.a&&(this.a=new x6(this,jr,this)),me(this.a),!this.a&&(this.a=new x6(this,jr,this)),Bt(this.a,u(t,16));return}Jo(this,e-se((On(),yb)),$n((i=u(Un(this,16),29),i||yb),e),t)},o.ii=function(){return On(),yb},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:!this.a&&(this.a=new x6(this,jr,this)),me(this.a);return}Wo(this,e-se((On(),yb)),$n((t=u(Un(this,16),29),t||yb),e))},w(qn,"ETypeParameterImpl",456),b(457,83,Qr,x6),o.Nj=function(e,t){return Pye(this,u(e,89),t)},o.Oj=function(e,t){return Iye(this,u(e,89),t)},w(qn,"ETypeParameterImpl/1",457),b(647,45,n2,aD),o.ec=function(){return new LE(this)},w(qn,"ETypeParameterImpl/2",647),b(570,Kf,Lu,LE),o.Fc=function(e){return XAn(this,u(e,89))},o.Gc=function(e){var t,i,r;for(r=!1,i=e.Kc();i.Ob();)t=u(i.Pb(),89),Ve(this.a,t,"")==null&&(r=!0);return r},o.$b=function(){Hu(this.a)},o.Hc=function(e){return Zc(this.a,e)},o.Kc=function(){var e;return e=new sd(new Ua(this.a).a),new NE(e)},o.Mc=function(e){return FLn(this,e)},o.gc=function(){return i6(this.a)},w(qn,"ETypeParameterImpl/2/1",570),b(571,1,Si,NE),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(O0(this.a).ld(),89)},o.Ob=function(){return this.a.b},o.Qb=function(){zNn(this.a)},w(qn,"ETypeParameterImpl/2/1/1",571),b(1329,45,n2,ajn),o._b=function(e){return Ai(e)?AN(this,e):!!wr(this.f,e)},o.xc=function(e){var t,i;return t=Ai(e)?Nc(this,e):Kr(wr(this.f,e)),D(t,851)?(i=u(t,851),t=i.Kk(),Ve(this,u(e,241),t),t):t??(e==null?(OD(),Zoe):null)},w(qn,"EValidatorRegistryImpl",1329),b(1349,720,{110:1,94:1,93:1,479:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},Nvn),o.ri=function(e,t){switch(e.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:Jr(t);case 25:return Tme(t);case 27:return K4e(t);case 28:return _4e(t);case 29:return t==null?null:CTn(I9[0],u(t,206));case 41:return t==null?"":Xa(u(t,296));case 42:return Jr(t);case 50:return Oe(t);default:throw M(new Gn(nv+e.xe()+Y0))}},o.si=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,S;switch(e.G==-1&&(e.G=(p=jo(e),p?f1(p.vi(),e):-1)),e.G){case 0:return i=new fD,i;case 1:return t=new eG,t;case 2:return r=new cG,r;case 4:return c=new $E,c;case 5:return s=new ljn,s;case 6:return f=new xyn,f;case 7:return h=new uG,h;case 10:return a=new CE,a;case 11:return d=new hD,d;case 12:return g=new _In,g;case 13:return m=new lD,m;case 14:return k=new rV,k;case 17:return j=new Cvn,j;case 18:return l=new Jd,l;case 19:return S=new UO,S;default:throw M(new Gn(hK+e.zb+Y0))}},o.ti=function(e,t){switch(e.hk()){case 20:return t==null?null:new Tz(t);case 21:return t==null?null:new H1(t);case 23:case 22:return t==null?null:R8e(t);case 26:case 24:return t==null?null:lk(Ao(t,-128,127)<<24>>24);case 25:return rMe(t);case 27:return T7e(t);case 28:return A7e(t);case 29:return Jye(t);case 32:case 31:return t==null?null:sw(t);case 38:case 37:return t==null?null:new qG(t);case 40:case 39:return t==null?null:Y(Ao(t,Wi,et));case 41:return null;case 42:return t==null,null;case 44:case 43:return t==null?null:Ml(zA(t));case 49:case 48:return t==null?null:om(Ao(t,QS,32767)<<16>>16);case 50:return t;default:throw M(new Gn(nv+e.xe()+Y0))}},w(qn,"EcoreFactoryImpl",1349),b(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},lIn),o.gb=!1,o.hb=!1;var Zdn,Yoe=!1;w(qn,"EcorePackageImpl",560),b(1234,1,{851:1},$vn),o.Kk=function(){return FTn(),nse},w(qn,"EcorePackageImpl/1",1234),b(1243,1,ze,xvn),o.fk=function(e){return D(e,155)},o.gk=function(e){return K(sE,Fn,155,e,0,1)},w(qn,"EcorePackageImpl/10",1243),b(1244,1,ze,Fvn),o.fk=function(e){return D(e,197)},o.gk=function(e){return K(gU,Fn,197,e,0,1)},w(qn,"EcorePackageImpl/11",1244),b(1245,1,ze,Bvn),o.fk=function(e){return D(e,58)},o.gk=function(e){return K(Oa,Fn,58,e,0,1)},w(qn,"EcorePackageImpl/12",1245),b(1246,1,ze,Rvn),o.fk=function(e){return D(e,411)},o.gk=function(e){return K(Ss,qcn,62,e,0,1)},w(qn,"EcorePackageImpl/13",1246),b(1247,1,ze,Kvn),o.fk=function(e){return D(e,241)},o.gk=function(e){return K(Ef,Fn,241,e,0,1)},w(qn,"EcorePackageImpl/14",1247),b(1248,1,ze,_vn),o.fk=function(e){return D(e,518)},o.gk=function(e){return K(vb,Fn,2116,e,0,1)},w(qn,"EcorePackageImpl/15",1248),b(1249,1,ze,Hvn),o.fk=function(e){return D(e,102)},o.gk=function(e){return K(eg,f2,19,e,0,1)},w(qn,"EcorePackageImpl/16",1249),b(1250,1,ze,qvn),o.fk=function(e){return D(e,179)},o.gk=function(e){return K(ku,f2,179,e,0,1)},w(qn,"EcorePackageImpl/17",1250),b(1251,1,ze,Uvn),o.fk=function(e){return D(e,480)},o.gk=function(e){return K(Zw,Fn,480,e,0,1)},w(qn,"EcorePackageImpl/18",1251),b(1252,1,ze,Gvn),o.fk=function(e){return D(e,561)},o.gk=function(e){return K(pc,nJn,561,e,0,1)},w(qn,"EcorePackageImpl/19",1252),b(1235,1,ze,zvn),o.fk=function(e){return D(e,331)},o.gk=function(e){return K(ng,f2,35,e,0,1)},w(qn,"EcorePackageImpl/2",1235),b(1253,1,ze,Xvn),o.fk=function(e){return D(e,248)},o.gk=function(e){return K(jr,pJn,89,e,0,1)},w(qn,"EcorePackageImpl/20",1253),b(1254,1,ze,Vvn),o.fk=function(e){return D(e,456)},o.gk=function(e){return K(fu,Fn,850,e,0,1)},w(qn,"EcorePackageImpl/21",1254),b(1255,1,ze,Wvn),o.fk=function(e){return Nb(e)},o.gk=function(e){return K(Gt,J,484,e,8,1)},w(qn,"EcorePackageImpl/22",1255),b(1256,1,ze,Jvn),o.fk=function(e){return D(e,195)},o.gk=function(e){return K(Fu,J,195,e,0,2)},w(qn,"EcorePackageImpl/23",1256),b(1257,1,ze,Qvn),o.fk=function(e){return D(e,222)},o.gk=function(e){return K(p3,J,222,e,0,1)},w(qn,"EcorePackageImpl/24",1257),b(1258,1,ze,Yvn),o.fk=function(e){return D(e,180)},o.gk=function(e){return K(M8,J,180,e,0,1)},w(qn,"EcorePackageImpl/25",1258),b(1259,1,ze,Zvn),o.fk=function(e){return D(e,206)},o.gk=function(e){return K(oP,J,206,e,0,1)},w(qn,"EcorePackageImpl/26",1259),b(1260,1,ze,n6n),o.fk=function(e){return!1},o.gk=function(e){return K(p0n,Fn,2215,e,0,1)},w(qn,"EcorePackageImpl/27",1260),b(1261,1,ze,e6n),o.fk=function(e){return $b(e)},o.gk=function(e){return K(si,J,345,e,7,1)},w(qn,"EcorePackageImpl/28",1261),b(1262,1,ze,t6n),o.fk=function(e){return D(e,61)},o.gk=function(e){return K(Ddn,kw,61,e,0,1)},w(qn,"EcorePackageImpl/29",1262),b(1236,1,ze,i6n),o.fk=function(e){return D(e,519)},o.gk=function(e){return K(Ue,{3:1,4:1,5:1,2033:1},598,e,0,1)},w(qn,"EcorePackageImpl/3",1236),b(1263,1,ze,r6n),o.fk=function(e){return D(e,582)},o.gk=function(e){return K($dn,Fn,2039,e,0,1)},w(qn,"EcorePackageImpl/30",1263),b(1264,1,ze,c6n),o.fk=function(e){return D(e,160)},o.gk=function(e){return K(r0n,kw,160,e,0,1)},w(qn,"EcorePackageImpl/31",1264),b(1265,1,ze,u6n),o.fk=function(e){return D(e,76)},o.gk=function(e){return K(CO,TJn,76,e,0,1)},w(qn,"EcorePackageImpl/32",1265),b(1266,1,ze,o6n),o.fk=function(e){return D(e,161)},o.gk=function(e){return K(ov,J,161,e,0,1)},w(qn,"EcorePackageImpl/33",1266),b(1267,1,ze,s6n),o.fk=function(e){return D(e,17)},o.gk=function(e){return K(Gi,J,17,e,0,1)},w(qn,"EcorePackageImpl/34",1267),b(1268,1,ze,f6n),o.fk=function(e){return D(e,296)},o.gk=function(e){return K(tun,Fn,296,e,0,1)},w(qn,"EcorePackageImpl/35",1268),b(1269,1,ze,h6n),o.fk=function(e){return D(e,168)},o.gk=function(e){return K(nb,J,168,e,0,1)},w(qn,"EcorePackageImpl/36",1269),b(1270,1,ze,l6n),o.fk=function(e){return D(e,85)},o.gk=function(e){return K(iun,Fn,85,e,0,1)},w(qn,"EcorePackageImpl/37",1270),b(1271,1,ze,a6n),o.fk=function(e){return D(e,599)},o.gk=function(e){return K(n0n,Fn,599,e,0,1)},w(qn,"EcorePackageImpl/38",1271),b(1272,1,ze,d6n),o.fk=function(e){return!1},o.gk=function(e){return K(m0n,Fn,2216,e,0,1)},w(qn,"EcorePackageImpl/39",1272),b(1237,1,ze,b6n),o.fk=function(e){return D(e,90)},o.gk=function(e){return K(As,Fn,29,e,0,1)},w(qn,"EcorePackageImpl/4",1237),b(1273,1,ze,w6n),o.fk=function(e){return D(e,191)},o.gk=function(e){return K(eb,J,191,e,0,1)},w(qn,"EcorePackageImpl/40",1273),b(1274,1,ze,g6n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(qn,"EcorePackageImpl/41",1274),b(1275,1,ze,p6n),o.fk=function(e){return D(e,596)},o.gk=function(e){return K(Ndn,Fn,596,e,0,1)},w(qn,"EcorePackageImpl/42",1275),b(1276,1,ze,m6n),o.fk=function(e){return!1},o.gk=function(e){return K(v0n,J,2217,e,0,1)},w(qn,"EcorePackageImpl/43",1276),b(1277,1,ze,v6n),o.fk=function(e){return D(e,44)},o.gk=function(e){return K(Pd,WA,44,e,0,1)},w(qn,"EcorePackageImpl/44",1277),b(1238,1,ze,k6n),o.fk=function(e){return D(e,142)},o.gk=function(e){return K(Cf,Fn,142,e,0,1)},w(qn,"EcorePackageImpl/5",1238),b(1239,1,ze,y6n),o.fk=function(e){return D(e,156)},o.gk=function(e){return K(jU,Fn,156,e,0,1)},w(qn,"EcorePackageImpl/6",1239),b(1240,1,ze,j6n),o.fk=function(e){return D(e,468)},o.gk=function(e){return K(EO,Fn,685,e,0,1)},w(qn,"EcorePackageImpl/7",1240),b(1241,1,ze,E6n),o.fk=function(e){return D(e,582)},o.gk=function(e){return K(Bl,Fn,694,e,0,1)},w(qn,"EcorePackageImpl/8",1241),b(1242,1,ze,C6n),o.fk=function(e){return D(e,479)},o.gk=function(e){return K(P9,Fn,479,e,0,1)},w(qn,"EcorePackageImpl/9",1242),b(1038,2080,ZWn,Ljn),o.Mi=function(e,t){b5e(this,u(t,424))},o.Qi=function(e,t){A_n(this,e,u(t,424))},w(qn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038),b(1039,152,Vy,eIn),o.jj=function(){return this.a.a},w(qn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039),b(1067,1066,{},wTn),w("org.eclipse.emf.ecore.plugin","EcorePlugin",1067);var n0n=Nt(AJn,"Resource");b(799,1524,SJn),o.Hl=function(e){},o.Il=function(e){},o.El=function(){return!this.a&&(this.a=new iD(this)),this.a},o.Fl=function(e){var t,i,r,c,s;if(r=e.length,r>0)if(zn(0,e.length),e.charCodeAt(0)==47){for(s=new Gc(4),c=1,t=1;t0&&(e=(Fi(0,i,e.length),e.substr(0,i))));return qEe(this,e)},o.Gl=function(){return this.c},o.Ib=function(){var e;return Xa(this.Rm)+"@"+(e=mt(this)>>>0,e.toString(16))+" uri='"+this.d+"'"},o.b=!1,w(AK,"ResourceImpl",799),b(1525,799,SJn,Eyn),w(AK,"BinaryResourceImpl",1525),b(1190,708,yK),o.bj=function(e){return D(e,58)?Nge(this,u(e,58)):D(e,599)?new ne(u(e,599).El()):x(e)===x(this.f)?u(e,16).Kc():(p4(),lE.a)},o.Ob=function(){return $nn(this)},o.a=!1,w(Tt,"EcoreUtil/ContentTreeIterator",1190),b(1526,1190,yK,OPn),o.bj=function(e){return x(e)===x(this.f)?u(e,15).Kc():new SDn(u(e,58))},w(AK,"ResourceImpl/5",1526),b(658,2092,gJn,iD),o.Hc=function(e){return this.i<=4?vm(this,e):D(e,54)&&u(e,54).Jh()==this.a},o.Mi=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},o.Oi=function(e,t){e==0?this.a.b||(this.a.b=!0):t$(this,e,t)},o.Qi=function(e,t){},o.Ri=function(e,t,i){},o.Lj=function(){return 2},o.jj=function(){return this.a},o.Mj=function(){return!0},o.Nj=function(e,t){var i;return i=u(e,54),t=i.fi(this.a,t),t},o.Oj=function(e,t){var i;return i=u(e,54),i.fi(null,t)},o.Pj=function(){return!1},o.Si=function(){return!0},o.aj=function(e){return K(Oa,Fn,58,e,0,1)},o.Yi=function(){return!1},w(AK,"ResourceImpl/ContentsEList",658),b(970,2062,Bm,Cyn),o.fd=function(e){return this.a.Ki(e)},o.gc=function(){return this.a.gc()},w(Tt,"AbstractSequentialInternalEList/1",970);var e0n,t0n,zi,i0n;b(634,1,{},LSn);var MO,TO;w(Tt,"BasicExtendedMetaData",634),b(1181,1,{},$Mn),o.Jl=function(){return null},o.Kl=function(){return this.a==-2&&dfe(this,qye(this.d,this.b)),this.a},o.Ll=function(){return null},o.Ml=function(){return Dn(),Dn(),sr},o.xe=function(){return this.c==iv&&bfe(this,QBn(this.d,this.b)),this.c},o.Nl=function(){return 0},o.a=-2,o.c=iv,w(Tt,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181),b(1182,1,{},rDn),o.Jl=function(){return this.a==(N4(),MO)&&pfe(this,HAe(this.f,this.b)),this.a},o.Kl=function(){return 0},o.Ll=function(){return this.c==(N4(),MO)&&wfe(this,qAe(this.f,this.b)),this.c},o.Ml=function(){return!this.d&&vfe(this,APe(this.f,this.b)),this.d},o.xe=function(){return this.e==iv&&yfe(this,QBn(this.f,this.b)),this.e},o.Nl=function(){return this.g==-2&&Efe(this,sye(this.f,this.b)),this.g},o.e=iv,o.g=-2,w(Tt,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182),b(1180,1,{},xMn),o.b=!1,o.c=!1,w(Tt,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180),b(1183,1,{},cDn),o.c=-2,o.e=iv,o.f=iv,w(Tt,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183),b(593,632,Qr,JC),o.Lj=function(){return this.c},o.ol=function(){return!1},o.Wi=function(e,t){return t},o.c=0,w(Tt,"EDataTypeEList",593);var r0n=Nt(Tt,"FeatureMap");b(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},Rt),o.bd=function(e,t){oTe(this,e,u(t,76))},o.Fc=function(e){return MMe(this,u(e,76))},o.Hi=function(e){Owe(this,u(e,76))},o.Nj=function(e,t){return Yae(this,u(e,76),t)},o.Oj=function(e,t){return SV(this,u(e,76),t)},o.Ti=function(e,t){return LSe(this,e,t)},o.Wi=function(e,t){return vOe(this,e,u(t,76))},o.hd=function(e,t){return VTe(this,e,u(t,76))},o.Uj=function(e,t){return Zae(this,u(e,76),t)},o.Vj=function(e,t){return sSn(this,u(e,76),t)},o.Wj=function(e,t,i){return Wke(this,u(e,76),u(t,76),i)},o.Zi=function(e,t){return Jx(this,e,u(t,76))},o.Ol=function(e,t){return Ten(this,e,t)},o.cd=function(e,t){var i,r,c,s,f,h,l,a,d;for(a=new T0(t.gc()),c=t.Kc();c.Ob();)if(r=u(c.Pb(),76),s=r.Lk(),Sl(this.e,s))(!s.Si()||!_M(this,s,r.md())&&!vm(a,r))&&ve(a,r);else{for(d=ru(this.e.Dh(),s),i=u(this.g,124),f=!0,h=0;h=0;)if(t=e[this.c],this.k.am(t.Lk()))return this.j=this.f?t:t.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},w(Tt,"BasicFeatureMap/FeatureEIterator",420),b(676,420,Hh,dL),o.ul=function(){return!0},w(Tt,"BasicFeatureMap/ResolvingFeatureEIterator",676),b(968,495,zS,MTn),o.pj=function(){return this},w(Tt,"EContentsEList/1",968),b(969,495,zS,WMn),o.ul=function(){return!1},w(Tt,"EContentsEList/2",969),b(967,287,XS,TTn),o.wl=function(e){},o.Ob=function(){return!1},o.Sb=function(){return!1},w(Tt,"EContentsEList/FeatureIteratorImpl/1",967),b(840,593,Qr,$X),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Rs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Tt,"EDataTypeEList/Unsettable",840),b(1958,593,Qr,LTn),o.Si=function(){return!0},w(Tt,"EDataTypeUniqueEList",1958),b(1959,840,Qr,NTn),o.Si=function(){return!0},w(Tt,"EDataTypeUniqueEList/Unsettable",1959),b(147,83,Qr,Tu),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Tt,"EObjectContainmentEList/Resolving",147),b(1184,555,Qr,$Tn),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Tt,"EObjectContainmentEList/Unsettable/Resolving",1184),b(766,14,Qr,yV),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Rs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Tt,"EObjectContainmentWithInverseEList/Unsettable",766),b(1222,766,Qr,VAn),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Tt,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222),b(757,504,Qr,xX),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Rs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Tt,"EObjectEList/Unsettable",757),b(338,504,Qr,Eg),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Tt,"EObjectResolvingEList",338),b(1844,757,Qr,xTn),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Tt,"EObjectResolvingEList/Unsettable",1844),b(1527,1,{},M6n);var Zoe;w(Tt,"EObjectValidator",1527),b(559,504,Qr,dM),o.il=function(){return this.d},o.jl=function(){return this.b},o.Mj=function(){return!0},o.ml=function(){return!0},o.b=0,w(Tt,"EObjectWithInverseEList",559),b(1225,559,Qr,WAn),o.ll=function(){return!0},w(Tt,"EObjectWithInverseEList/ManyInverse",1225),b(635,559,Qr,NL),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Rs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Tt,"EObjectWithInverseEList/Unsettable",635),b(1224,635,Qr,JAn),o.ll=function(){return!0},w(Tt,"EObjectWithInverseEList/Unsettable/ManyInverse",1224),b(767,559,Qr,jV),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Tt,"EObjectWithInverseResolvingEList",767),b(32,767,Qr,Nn),o.ll=function(){return!0},w(Tt,"EObjectWithInverseResolvingEList/ManyInverse",32),b(768,635,Qr,EV),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Tt,"EObjectWithInverseResolvingEList/Unsettable",768),b(1223,768,Qr,QAn),o.ll=function(){return!0},w(Tt,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223),b(1185,632,Qr),o.Li=function(){return(this.b&1792)==0},o.Ni=function(){this.b|=1},o.kl=function(){return(this.b&4)!=0},o.Mj=function(){return(this.b&40)!=0},o.ll=function(){return(this.b&16)!=0},o.ml=function(){return(this.b&8)!=0},o.nl=function(){return(this.b&Tw)!=0},o.al=function(){return(this.b&32)!=0},o.ol=function(){return(this.b&Gs)!=0},o.fk=function(e){return this.d?FDn(this.d,e):this.Lk().Hk().fk(e)},o.Qj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},o.Si=function(){return(this.b&128)!=0},o.Gk=function(){var e;me(this),this.b&2&&(fo(this.e)?(e=(this.b&1)!=0,this.b&=-2,e4(this,new Rs(this.e,2,Ot(this.e.Dh(),this.Lk()),e,!1))):this.b&=-2)},o.Yi=function(){return(this.b&1536)==0},o.b=0,w(Tt,"EcoreEList/Generic",1185),b(1186,1185,Qr,qIn),o.Lk=function(){return this.a},w(Tt,"EcoreEList/Dynamic",1186),b(765,66,Ch,FG),o.aj=function(e){return wk(this.a.a,e)},w(Tt,"EcoreEMap/1",765),b(764,83,Qr,yW),o.Mi=function(e,t){uA(this.b,u(t,136))},o.Oi=function(e,t){Kxn(this.b)},o.Pi=function(e,t,i){var r;++(r=this.b,u(t,136),r).e},o.Qi=function(e,t){cx(this.b,u(t,136))},o.Ri=function(e,t,i){cx(this.b,u(i,136)),x(i)===x(t)&&u(i,136).Ci(Jle(u(t,136).ld())),uA(this.b,u(t,136))},w(Tt,"EcoreEMap/DelegateEObjectContainmentEList",764),b(1220,141,Hcn,ixn),w(Tt,"EcoreEMap/Unsettable",1220),b(1221,764,Qr,YAn),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Rs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Tt,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221),b(1189,215,n2,UPn),o.a=!1,o.b=!1,w(Tt,"EcoreUtil/Copier",1189),b(759,1,Si,SDn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return xBn(this)},o.Pb=function(){var e;return xBn(this),e=this.b,this.b=null,e},o.Qb=function(){this.a.Qb()},w(Tt,"EcoreUtil/ProperContentIterator",759),b(1528,1527,{},M8n);var nse;w(Tt,"EcoreValidator",1528);var ese;Nt(Tt,"FeatureMapUtil/Validator"),b(1295,1,{2041:1},T6n),o.am=function(e){return!0},w(Tt,"FeatureMapUtil/1",1295),b(773,1,{2041:1},ttn),o.am=function(e){var t;return this.c==e?!0:(t=un(ee(this.a,e)),t==null?WAe(this,e)?(SLn(this.a,e,(_n(),uv)),!0):(SLn(this.a,e,(_n(),ga)),!1):t==(_n(),uv))},o.e=!1;var TU;w(Tt,"FeatureMapUtil/BasicValidator",773),b(774,45,n2,LX),w(Tt,"FeatureMapUtil/BasicValidator/Cache",774),b(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},k7),o.bd=function(e,t){mqn(this.c,this.b,e,t)},o.Fc=function(e){return Ten(this.c,this.b,e)},o.cd=function(e,t){return gIe(this.c,this.b,e,t)},o.Gc=function(e){return A6(this,e)},o.Gi=function(e,t){lme(this.c,this.b,e,t)},o.Wk=function(e,t){return men(this.c,this.b,e,t)},o.$i=function(e){return _A(this.c,this.b,e,!1)},o.Ii=function(){return oTn(this.c,this.b)},o.Ji=function(){return Fle(this.c,this.b)},o.Ki=function(e){return g4e(this.c,this.b,e)},o.Xk=function(e,t){return OAn(this,e,t)},o.$b=function(){cp(this)},o.Hc=function(e){return _M(this.c,this.b,e)},o.Ic=function(e){return wve(this.c,this.b,e)},o.Xb=function(e){return _A(this.c,this.b,e,!0)},o.Fk=function(e){return this},o.dd=function(e){return E3e(this.c,this.b,e)},o.dc=function(){return MC(this)},o.Qj=function(){return!xk(this.c,this.b)},o.Kc=function(){return eme(this.c,this.b)},o.ed=function(){return tme(this.c,this.b)},o.fd=function(e){return L5e(this.c,this.b,e)},o.Ti=function(e,t){return LUn(this.c,this.b,e,t)},o.Ui=function(e,t){v4e(this.c,this.b,e,t)},o.gd=function(e){return h_n(this.c,this.b,e)},o.Mc=function(e){return mSe(this.c,this.b,e)},o.hd=function(e,t){return HUn(this.c,this.b,e,t)},o.Wb=function(e){jA(this.c,this.b),A6(this,u(e,15))},o.gc=function(){return D5e(this.c,this.b)},o.Pc=function(){return Mpe(this.c,this.b)},o.Qc=function(e){return C3e(this.c,this.b,e)},o.Ib=function(){var e,t;for(t=new Hl,t.a+="[",e=oTn(this.c,this.b);W$(e);)Er(t,P6(iA(e))),W$(e)&&(t.a+=ur);return t.a+="]",t.a},o.Gk=function(){jA(this.c,this.b)},w(Tt,"FeatureMapUtil/FeatureEList",509),b(644,38,Vy,GN),o.hj=function(e){return g5(this,e)},o.mj=function(e){var t,i,r,c,s,f,h;switch(this.d){case 1:case 2:{if(s=e.jj(),x(s)===x(this.c)&&g5(this,null)==e.hj(null))return this.g=e.ij(),e.gj()==1&&(this.d=1),!0;break}case 3:{switch(c=e.gj(),c){case 3:{if(s=e.jj(),x(s)===x(this.c)&&g5(this,null)==e.hj(null))return this.d=5,t=new T0(2),ve(t,this.g),ve(t,e.ij()),this.g=t,!0;break}}break}case 5:{switch(c=e.gj(),c){case 3:{if(s=e.jj(),x(s)===x(this.c)&&g5(this,null)==e.hj(null))return i=u(this.g,16),i.Fc(e.ij()),!0;break}}break}case 4:{switch(c=e.gj(),c){case 3:{if(s=e.jj(),x(s)===x(this.c)&&g5(this,null)==e.hj(null))return this.d=1,this.g=e.ij(),!0;break}case 4:{if(s=e.jj(),x(s)===x(this.c)&&g5(this,null)==e.hj(null))return this.d=6,h=new T0(2),ve(h,this.n),ve(h,e.kj()),this.n=h,f=A(T(ye,1),_e,28,15,[this.o,e.lj()]),this.g=f,!0;break}}break}case 6:{switch(c=e.gj(),c){case 4:{if(s=e.jj(),x(s)===x(this.c)&&g5(this,null)==e.hj(null))return i=u(this.n,16),i.Fc(e.kj()),f=u(this.g,53),r=K(ye,_e,28,f.length+1,15,1),Ic(f,0,r,0,f.length),r[f.length]=e.lj(),this.g=r,!0;break}}break}}return!1},w(Tt,"FeatureMapUtil/FeatureENotificationImpl",644),b(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},nM),o.Ol=function(e,t){return Ten(this.c,e,t)},o.Pl=function(e,t,i){return men(this.c,e,t,i)},o.Ql=function(e,t,i){return Uen(this.c,e,t,i)},o.Rl=function(){return this},o.Sl=function(e,t){return by(this.c,e,t)},o.Tl=function(e){return u(_A(this.c,this.b,e,!1),76).Lk()},o.Ul=function(e){return u(_A(this.c,this.b,e,!1),76).md()},o.Vl=function(){return this.a},o.Wl=function(e){return!xk(this.c,e)},o.Xl=function(e,t){HA(this.c,e,t)},o.Yl=function(e){return uxn(this.c,e)},o.Zl=function(e){BRn(this.c,e)},w(Tt,"FeatureMapUtil/FeatureFeatureMap",564),b(1294,1,TK,NMn),o.Fk=function(e){return _A(this.b,this.a,-1,e)},o.Qj=function(){return!xk(this.b,this.a)},o.Wb=function(e){HA(this.b,this.a,e)},o.Gk=function(){jA(this.b,this.a)},w(Tt,"FeatureMapUtil/FeatureValue",1294);var R3,AU,SU,K3,tse,dE=Nt(eP,"AnyType");b(680,63,Pl,kD),w(eP,"InvalidDatatypeValueException",680);var AO=Nt(eP,IJn),bE=Nt(eP,OJn),c0n=Nt(eP,DJn),ise,yc,u0n,zd,rse,cse,use,ose,sse,fse,hse,lse,ase,dse,bse,G2,wse,z2,N9,gse,jb,wE,gE,pse,$9,x9;b(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},tz),o.Lh=function(e,t,i){switch(e){case 0:return i?(!this.c&&(this.c=new Rt(this,0)),this.c):(!this.c&&(this.c=new Rt(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Rt(this,0)),u($c(this.c,(at(),zd)),160)):(!this.c&&(this.c=new Rt(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Vl();case 2:return i?(!this.b&&(this.b=new Rt(this,2)),this.b):(!this.b&&(this.b=new Rt(this,2)),this.b.b)}return zo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e),t,i)},o.Uh=function(e,t,i){var r;switch(t){case 0:return!this.c&&(this.c=new Rt(this,0)),hy(this.c,e,i);case 1:return(!this.c&&(this.c=new Rt(this,0)),u(u($c(this.c,(at(),zd)),160),71)).Xk(e,i);case 2:return!this.b&&(this.b=new Rt(this,2)),hy(this.b,e,i)}return r=u($n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),t),69),r.wk().Ak(this,cQ(this),t-se(this.ii()),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Rt(this,0)),u($c(this.c,(at(),zd)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return Uo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e))},o.bi=function(e,t){switch(e){case 0:!this.c&&(this.c=new Rt(this,0)),K7(this.c,t);return;case 1:(!this.c&&(this.c=new Rt(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new Rt(this,2)),K7(this.b,t);return}Jo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e),t)},o.ii=function(){return at(),u0n},o.ki=function(e){switch(e){case 0:!this.c&&(this.c=new Rt(this,0)),me(this.c);return;case 1:(!this.c&&(this.c=new Rt(this,0)),u($c(this.c,(at(),zd)),160)).$b();return;case 2:!this.b&&(this.b=new Rt(this,2)),me(this.b);return}Wo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e))},o.Ib=function(){var e;return this.j&4?Hs(this):(e=new ls(Hs(this)),e.a+=" (mixed: ",E6(e,this.c),e.a+=", anyAttribute: ",E6(e,this.b),e.a+=")",e.a)},w(oi,"AnyTypeImpl",844),b(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},F6n),o.Lh=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return zo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e),t,i)},o.Wh=function(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return Uo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e))},o.bi=function(e,t){switch(e){case 0:Tfe(this,Oe(t));return;case 1:Sfe(this,Oe(t));return}Jo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e),t)},o.ii=function(){return at(),G2},o.ki=function(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}Wo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e))},o.Ib=function(){var e;return this.j&4?Hs(this):(e=new ls(Hs(this)),e.a+=" (data: ",Er(e,this.a),e.a+=", target: ",Er(e,this.b),e.a+=")",e.a)},o.a=null,o.b=null,w(oi,"ProcessingInstructionImpl",681),b(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},djn),o.Lh=function(e,t,i){switch(e){case 0:return i?(!this.c&&(this.c=new Rt(this,0)),this.c):(!this.c&&(this.c=new Rt(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Rt(this,0)),u($c(this.c,(at(),zd)),160)):(!this.c&&(this.c=new Rt(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Vl();case 2:return i?(!this.b&&(this.b=new Rt(this,2)),this.b):(!this.b&&(this.b=new Rt(this,2)),this.b.b);case 3:return!this.c&&(this.c=new Rt(this,0)),Oe(by(this.c,(at(),N9),!0));case 4:return MV(this.a,(!this.c&&(this.c=new Rt(this,0)),Oe(by(this.c,(at(),N9),!0))));case 5:return this.a}return zo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e),t,i)},o.Wh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Rt(this,0)),u($c(this.c,(at(),zd)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new Rt(this,0)),Oe(by(this.c,(at(),N9),!0))!=null;case 4:return MV(this.a,(!this.c&&(this.c=new Rt(this,0)),Oe(by(this.c,(at(),N9),!0))))!=null;case 5:return!!this.a}return Uo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e))},o.bi=function(e,t){switch(e){case 0:!this.c&&(this.c=new Rt(this,0)),K7(this.c,t);return;case 1:(!this.c&&(this.c=new Rt(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new Rt(this,2)),K7(this.b,t);return;case 3:dJ(this,Oe(t));return;case 4:dJ(this,CV(this.a,t));return;case 5:Afe(this,u(t,156));return}Jo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e),t)},o.ii=function(){return at(),z2},o.ki=function(e){switch(e){case 0:!this.c&&(this.c=new Rt(this,0)),me(this.c);return;case 1:(!this.c&&(this.c=new Rt(this,0)),u($c(this.c,(at(),zd)),160)).$b();return;case 2:!this.b&&(this.b=new Rt(this,2)),me(this.b);return;case 3:!this.c&&(this.c=new Rt(this,0)),HA(this.c,(at(),N9),null);return;case 4:dJ(this,CV(this.a,null));return;case 5:this.a=null;return}Wo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e))},w(oi,"SimpleAnyTypeImpl",682),b(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},bjn),o.Lh=function(e,t,i){switch(e){case 0:return i?(!this.a&&(this.a=new Rt(this,0)),this.a):(!this.a&&(this.a=new Rt(this,0)),this.a.b);case 1:return i?(!this.b&&(this.b=new Iu((On(),ar),pc,this,1)),this.b):(!this.b&&(this.b=new Iu((On(),ar),pc,this,1)),ik(this.b));case 2:return i?(!this.c&&(this.c=new Iu((On(),ar),pc,this,2)),this.c):(!this.c&&(this.c=new Iu((On(),ar),pc,this,2)),ik(this.c));case 3:return!this.a&&(this.a=new Rt(this,0)),$c(this.a,(at(),wE));case 4:return!this.a&&(this.a=new Rt(this,0)),$c(this.a,(at(),gE));case 5:return!this.a&&(this.a=new Rt(this,0)),$c(this.a,(at(),$9));case 6:return!this.a&&(this.a=new Rt(this,0)),$c(this.a,(at(),x9))}return zo(this,e-se((at(),jb)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():jb,e),t,i)},o.Uh=function(e,t,i){var r;switch(t){case 0:return!this.a&&(this.a=new Rt(this,0)),hy(this.a,e,i);case 1:return!this.b&&(this.b=new Iu((On(),ar),pc,this,1)),qC(this.b,e,i);case 2:return!this.c&&(this.c=new Iu((On(),ar),pc,this,2)),qC(this.c,e,i);case 5:return!this.a&&(this.a=new Rt(this,0)),OAn($c(this.a,(at(),$9)),e,i)}return r=u($n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():(at(),jb),t),69),r.wk().Ak(this,cQ(this),t-se((at(),jb)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new Rt(this,0)),!MC($c(this.a,(at(),wE)));case 4:return!this.a&&(this.a=new Rt(this,0)),!MC($c(this.a,(at(),gE)));case 5:return!this.a&&(this.a=new Rt(this,0)),!MC($c(this.a,(at(),$9)));case 6:return!this.a&&(this.a=new Rt(this,0)),!MC($c(this.a,(at(),x9)))}return Uo(this,e-se((at(),jb)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():jb,e))},o.bi=function(e,t){switch(e){case 0:!this.a&&(this.a=new Rt(this,0)),K7(this.a,t);return;case 1:!this.b&&(this.b=new Iu((On(),ar),pc,this,1)),TT(this.b,t);return;case 2:!this.c&&(this.c=new Iu((On(),ar),pc,this,2)),TT(this.c,t);return;case 3:!this.a&&(this.a=new Rt(this,0)),cp($c(this.a,(at(),wE))),!this.a&&(this.a=new Rt(this,0)),A6($c(this.a,wE),u(t,16));return;case 4:!this.a&&(this.a=new Rt(this,0)),cp($c(this.a,(at(),gE))),!this.a&&(this.a=new Rt(this,0)),A6($c(this.a,gE),u(t,16));return;case 5:!this.a&&(this.a=new Rt(this,0)),cp($c(this.a,(at(),$9))),!this.a&&(this.a=new Rt(this,0)),A6($c(this.a,$9),u(t,16));return;case 6:!this.a&&(this.a=new Rt(this,0)),cp($c(this.a,(at(),x9))),!this.a&&(this.a=new Rt(this,0)),A6($c(this.a,x9),u(t,16));return}Jo(this,e-se((at(),jb)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():jb,e),t)},o.ii=function(){return at(),jb},o.ki=function(e){switch(e){case 0:!this.a&&(this.a=new Rt(this,0)),me(this.a);return;case 1:!this.b&&(this.b=new Iu((On(),ar),pc,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new Iu((On(),ar),pc,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new Rt(this,0)),cp($c(this.a,(at(),wE)));return;case 4:!this.a&&(this.a=new Rt(this,0)),cp($c(this.a,(at(),gE)));return;case 5:!this.a&&(this.a=new Rt(this,0)),cp($c(this.a,(at(),$9)));return;case 6:!this.a&&(this.a=new Rt(this,0)),cp($c(this.a,(at(),x9)));return}Wo(this,e-se((at(),jb)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():jb,e))},o.Ib=function(){var e;return this.j&4?Hs(this):(e=new ls(Hs(this)),e.a+=" (mixed: ",E6(e,this.a),e.a+=")",e.a)},w(oi,"XMLTypeDocumentRootImpl",683),b(2028,720,{110:1,94:1,93:1,479:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},A6n),o.ri=function(e,t){switch(e.hk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:Jr(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return Oe(t);case 6:return fae(u(t,195));case 12:case 47:case 49:case 11:return PGn(this,e,t);case 13:return t==null?null:kIe(u(t,247));case 15:case 14:return t==null?null:Mwe($(R(t)));case 17:return MKn((at(),t));case 18:return MKn(t);case 21:case 20:return t==null?null:Twe(u(t,161).a);case 27:return hae(u(t,195));case 30:return RRn((at(),u(t,15)));case 31:return RRn(u(t,15));case 40:return aae((at(),t));case 42:return TKn((at(),t));case 43:return TKn(t);case 59:case 48:return lae((at(),t));default:throw M(new Gn(nv+e.xe()+Y0))}},o.si=function(e){var t,i,r,c,s;switch(e.G==-1&&(e.G=(i=jo(e),i?f1(i.vi(),e):-1)),e.G){case 0:return t=new tz,t;case 1:return r=new F6n,r;case 2:return c=new djn,c;case 3:return s=new bjn,s;default:throw M(new Gn(hK+e.zb+Y0))}},o.ti=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,S,I;switch(e.hk()){case 5:case 52:case 4:return t;case 6:return m9e(t);case 8:case 7:return t==null?null:rye(t);case 9:return t==null?null:lk(Ao((r=Fc(t,!0),r.length>0&&(zn(0,r.length),r.charCodeAt(0)==43)?(zn(1,r.length+1),r.substr(1)):r),-128,127)<<24>>24);case 10:return t==null?null:lk(Ao((c=Fc(t,!0),c.length>0&&(zn(0,c.length),c.charCodeAt(0)==43)?(zn(1,c.length+1),c.substr(1)):c),-128,127)<<24>>24);case 11:return Oe(U0(this,(at(),use),t));case 12:return Oe(U0(this,(at(),ose),t));case 13:return t==null?null:new Tz(Fc(t,!0));case 15:case 14:return AMe(t);case 16:return Oe(U0(this,(at(),sse),t));case 17:return _Bn((at(),t));case 18:return _Bn(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Fc(t,!0);case 21:case 20:return FMe(t);case 22:return Oe(U0(this,(at(),fse),t));case 23:return Oe(U0(this,(at(),hse),t));case 24:return Oe(U0(this,(at(),lse),t));case 25:return Oe(U0(this,(at(),ase),t));case 26:return Oe(U0(this,(at(),dse),t));case 27:return u9e(t);case 30:return HBn((at(),t));case 31:return HBn(t);case 32:return t==null?null:Y(Ao((d=Fc(t,!0),d.length>0&&(zn(0,d.length),d.charCodeAt(0)==43)?(zn(1,d.length+1),d.substr(1)):d),Wi,et));case 33:return t==null?null:new H1((g=Fc(t,!0),g.length>0&&(zn(0,g.length),g.charCodeAt(0)==43)?(zn(1,g.length+1),g.substr(1)):g));case 34:return t==null?null:Y(Ao((p=Fc(t,!0),p.length>0&&(zn(0,p.length),p.charCodeAt(0)==43)?(zn(1,p.length+1),p.substr(1)):p),Wi,et));case 36:return t==null?null:Ml(zA((m=Fc(t,!0),m.length>0&&(zn(0,m.length),m.charCodeAt(0)==43)?(zn(1,m.length+1),m.substr(1)):m)));case 37:return t==null?null:Ml(zA((k=Fc(t,!0),k.length>0&&(zn(0,k.length),k.charCodeAt(0)==43)?(zn(1,k.length+1),k.substr(1)):k)));case 40:return i7e((at(),t));case 42:return qBn((at(),t));case 43:return qBn(t);case 44:return t==null?null:new H1((j=Fc(t,!0),j.length>0&&(zn(0,j.length),j.charCodeAt(0)==43)?(zn(1,j.length+1),j.substr(1)):j));case 45:return t==null?null:new H1((S=Fc(t,!0),S.length>0&&(zn(0,S.length),S.charCodeAt(0)==43)?(zn(1,S.length+1),S.substr(1)):S));case 46:return Fc(t,!1);case 47:return Oe(U0(this,(at(),bse),t));case 59:case 48:return t7e((at(),t));case 49:return Oe(U0(this,(at(),wse),t));case 50:return t==null?null:om(Ao((I=Fc(t,!0),I.length>0&&(zn(0,I.length),I.charCodeAt(0)==43)?(zn(1,I.length+1),I.substr(1)):I),QS,32767)<<16>>16);case 51:return t==null?null:om(Ao((s=Fc(t,!0),s.length>0&&(zn(0,s.length),s.charCodeAt(0)==43)?(zn(1,s.length+1),s.substr(1)):s),QS,32767)<<16>>16);case 53:return Oe(U0(this,(at(),gse),t));case 55:return t==null?null:om(Ao((f=Fc(t,!0),f.length>0&&(zn(0,f.length),f.charCodeAt(0)==43)?(zn(1,f.length+1),f.substr(1)):f),QS,32767)<<16>>16);case 56:return t==null?null:om(Ao((h=Fc(t,!0),h.length>0&&(zn(0,h.length),h.charCodeAt(0)==43)?(zn(1,h.length+1),h.substr(1)):h),QS,32767)<<16>>16);case 57:return t==null?null:Ml(zA((l=Fc(t,!0),l.length>0&&(zn(0,l.length),l.charCodeAt(0)==43)?(zn(1,l.length+1),l.substr(1)):l)));case 58:return t==null?null:Ml(zA((a=Fc(t,!0),a.length>0&&(zn(0,a.length),a.charCodeAt(0)==43)?(zn(1,a.length+1),a.substr(1)):a)));case 60:return t==null?null:Y(Ao((i=Fc(t,!0),i.length>0&&(zn(0,i.length),i.charCodeAt(0)==43)?(zn(1,i.length+1),i.substr(1)):i),Wi,et));case 61:return t==null?null:Y(Ao(Fc(t,!0),Wi,et));default:throw M(new Gn(nv+e.xe()+Y0))}};var mse,o0n,vse,s0n;w(oi,"XMLTypeFactoryImpl",2028),b(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},aIn),o.N=!1,o.O=!1;var kse=!1;w(oi,"XMLTypePackageImpl",594),b(1961,1,{851:1},S6n),o.Kk=function(){return $en(),Pse},w(oi,"XMLTypePackageImpl/1",1961),b(1970,1,ze,P6n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/10",1970),b(1971,1,ze,I6n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/11",1971),b(1972,1,ze,O6n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/12",1972),b(1973,1,ze,D6n),o.fk=function(e){return $b(e)},o.gk=function(e){return K(si,J,345,e,7,1)},w(oi,"XMLTypePackageImpl/13",1973),b(1974,1,ze,L6n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/14",1974),b(1975,1,ze,N6n),o.fk=function(e){return D(e,15)},o.gk=function(e){return K(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/15",1975),b(1976,1,ze,$6n),o.fk=function(e){return D(e,15)},o.gk=function(e){return K(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/16",1976),b(1977,1,ze,x6n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/17",1977),b(1978,1,ze,B6n),o.fk=function(e){return D(e,161)},o.gk=function(e){return K(ov,J,161,e,0,1)},w(oi,"XMLTypePackageImpl/18",1978),b(1979,1,ze,R6n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/19",1979),b(1962,1,ze,K6n),o.fk=function(e){return D(e,857)},o.gk=function(e){return K(dE,Fn,857,e,0,1)},w(oi,"XMLTypePackageImpl/2",1962),b(1980,1,ze,_6n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/20",1980),b(1981,1,ze,H6n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/21",1981),b(1982,1,ze,q6n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/22",1982),b(1983,1,ze,U6n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/23",1983),b(1984,1,ze,G6n),o.fk=function(e){return D(e,195)},o.gk=function(e){return K(Fu,J,195,e,0,2)},w(oi,"XMLTypePackageImpl/24",1984),b(1985,1,ze,z6n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/25",1985),b(1986,1,ze,X6n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/26",1986),b(1987,1,ze,V6n),o.fk=function(e){return D(e,15)},o.gk=function(e){return K(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/27",1987),b(1988,1,ze,W6n),o.fk=function(e){return D(e,15)},o.gk=function(e){return K(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/28",1988),b(1989,1,ze,J6n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/29",1989),b(1963,1,ze,Q6n),o.fk=function(e){return D(e,681)},o.gk=function(e){return K(AO,Fn,2119,e,0,1)},w(oi,"XMLTypePackageImpl/3",1963),b(1990,1,ze,Y6n),o.fk=function(e){return D(e,17)},o.gk=function(e){return K(Gi,J,17,e,0,1)},w(oi,"XMLTypePackageImpl/30",1990),b(1991,1,ze,Z6n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/31",1991),b(1992,1,ze,n5n),o.fk=function(e){return D(e,168)},o.gk=function(e){return K(nb,J,168,e,0,1)},w(oi,"XMLTypePackageImpl/32",1992),b(1993,1,ze,e5n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/33",1993),b(1994,1,ze,t5n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/34",1994),b(1995,1,ze,i5n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/35",1995),b(1996,1,ze,r5n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/36",1996),b(1997,1,ze,c5n),o.fk=function(e){return D(e,15)},o.gk=function(e){return K(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/37",1997),b(1998,1,ze,u5n),o.fk=function(e){return D(e,15)},o.gk=function(e){return K(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/38",1998),b(1999,1,ze,o5n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/39",1999),b(1964,1,ze,s5n),o.fk=function(e){return D(e,682)},o.gk=function(e){return K(bE,Fn,2120,e,0,1)},w(oi,"XMLTypePackageImpl/4",1964),b(2e3,1,ze,f5n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/40",2e3),b(2001,1,ze,h5n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/41",2001),b(2002,1,ze,l5n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/42",2002),b(2003,1,ze,a5n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/43",2003),b(2004,1,ze,d5n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/44",2004),b(2005,1,ze,b5n),o.fk=function(e){return D(e,191)},o.gk=function(e){return K(eb,J,191,e,0,1)},w(oi,"XMLTypePackageImpl/45",2005),b(2006,1,ze,w5n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/46",2006),b(2007,1,ze,g5n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/47",2007),b(2008,1,ze,p5n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/48",2008),b(2009,1,ze,m5n),o.fk=function(e){return D(e,191)},o.gk=function(e){return K(eb,J,191,e,0,1)},w(oi,"XMLTypePackageImpl/49",2009),b(1965,1,ze,v5n),o.fk=function(e){return D(e,683)},o.gk=function(e){return K(c0n,Fn,2121,e,0,1)},w(oi,"XMLTypePackageImpl/5",1965),b(2010,1,ze,k5n),o.fk=function(e){return D(e,168)},o.gk=function(e){return K(nb,J,168,e,0,1)},w(oi,"XMLTypePackageImpl/50",2010),b(2011,1,ze,y5n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/51",2011),b(2012,1,ze,j5n),o.fk=function(e){return D(e,17)},o.gk=function(e){return K(Gi,J,17,e,0,1)},w(oi,"XMLTypePackageImpl/52",2012),b(1966,1,ze,E5n),o.fk=function(e){return Ai(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/6",1966),b(1967,1,ze,C5n),o.fk=function(e){return D(e,195)},o.gk=function(e){return K(Fu,J,195,e,0,2)},w(oi,"XMLTypePackageImpl/7",1967),b(1968,1,ze,M5n),o.fk=function(e){return Nb(e)},o.gk=function(e){return K(Gt,J,484,e,8,1)},w(oi,"XMLTypePackageImpl/8",1968),b(1969,1,ze,T5n),o.fk=function(e){return D(e,222)},o.gk=function(e){return K(p3,J,222,e,0,1)},w(oi,"XMLTypePackageImpl/9",1969);var nh,O1,F9,SO,P;b(55,63,Pl,Le),w(p1,"RegEx/ParseException",55),b(836,1,{},iG),o.bm=function(e){return ei*16)throw M(new Le($e((Ie(),qWn))));i=i*16+c}while(!0);if(this.a!=125)throw M(new Le($e((Ie(),UWn))));if(i>rv)throw M(new Le($e((Ie(),GWn))));e=i}else{if(c=0,this.c!=0||(c=bd(this.a))<0)throw M(new Le($e((Ie(),g1))));if(i=c,Ze(this),this.c!=0||(c=bd(this.a))<0)throw M(new Le($e((Ie(),g1))));i=i*16+c,e=i}break;case 117:if(r=0,Ze(this),this.c!=0||(r=bd(this.a))<0)throw M(new Le($e((Ie(),g1))));if(t=r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw M(new Le($e((Ie(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw M(new Le($e((Ie(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw M(new Le($e((Ie(),g1))));t=t*16+r,e=t;break;case 118:if(Ze(this),this.c!=0||(r=bd(this.a))<0)throw M(new Le($e((Ie(),g1))));if(t=r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw M(new Le($e((Ie(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw M(new Le($e((Ie(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw M(new Le($e((Ie(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw M(new Le($e((Ie(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw M(new Le($e((Ie(),g1))));if(t=t*16+r,t>rv)throw M(new Le($e((Ie(),"parser.descappe.4"))));e=t;break;case 65:case 90:case 122:throw M(new Le($e((Ie(),zWn))))}return e},o.dm=function(e){var t,i;switch(e){case 100:i=(this.e&32)==32?sa("Nd",!0):(nt(),PO);break;case 68:i=(this.e&32)==32?sa("Nd",!1):(nt(),b0n);break;case 119:i=(this.e&32)==32?sa("IsWord",!0):(nt(),Uv);break;case 87:i=(this.e&32)==32?sa("IsWord",!1):(nt(),g0n);break;case 115:i=(this.e&32)==32?sa("IsSpace",!0):(nt(),_3);break;case 83:i=(this.e&32)==32?sa("IsSpace",!1):(nt(),w0n);break;default:throw M(new ec((t=e,zJn+t.toString(16))))}return i},o.em=function(e){var t,i,r,c,s,f,h,l,a,d,g,p;for(this.b=1,Ze(this),t=null,this.c==0&&this.a==94?(Ze(this),e?d=(nt(),nt(),new yo(5)):(t=(nt(),nt(),new yo(4)),xc(t,0,rv),d=new yo(4))):d=(nt(),nt(),new yo(4)),c=!0;(p=this.c)!=1&&!(p==0&&this.a==93&&!c);){if(c=!1,i=this.a,r=!1,p==10)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:gw(d,this.dm(i)),r=!0;break;case 105:case 73:case 99:case 67:i=this.um(d,i),i<0&&(r=!0);break;case 112:case 80:if(g=Lnn(this,i),!g)throw M(new Le($e((Ie(),EK))));gw(d,g),r=!0;break;default:i=this.cm()}else if(p==20){if(f=b4(this.i,58,this.d),f<0)throw M(new Le($e((Ie(),xcn))));if(h=!0,Xi(this.i,this.d)==94&&(++this.d,h=!1),s=qo(this.i,this.d,f),l=pNn(s,h,(this.e&512)==512),!l)throw M(new Le($e((Ie(),BWn))));if(gw(d,l),r=!0,f+1>=this.j||Xi(this.i,f+1)!=93)throw M(new Le($e((Ie(),xcn))));this.d=f+2}if(Ze(this),!r)if(this.c!=0||this.a!=45)xc(d,i,i);else{if(Ze(this),(p=this.c)==1)throw M(new Le($e((Ie(),US))));p==0&&this.a==93?(xc(d,i,i),xc(d,45,45)):(a=this.a,p==10&&(a=this.cm()),Ze(this),xc(d,i,a))}(this.e&Gs)==Gs&&this.c==0&&this.a==44&&Ze(this)}if(this.c==1)throw M(new Le($e((Ie(),US))));return t&&(z5(t,d),d=t),Gg(d),U5(d),this.b=0,Ze(this),d},o.fm=function(){var e,t,i,r;for(i=this.em(!1);(r=this.c)!=7;)if(e=this.a,r==0&&(e==45||e==38)||r==4){if(Ze(this),this.c!=9)throw M(new Le($e((Ie(),KWn))));if(t=this.em(!1),r==4)gw(i,t);else if(e==45)z5(i,t);else if(e==38)MGn(i,t);else throw M(new ec("ASSERT"))}else throw M(new Le($e((Ie(),_Wn))));return Ze(this),i},o.gm=function(){var e,t;return e=this.a-48,t=(nt(),nt(),new IN(12,null,e)),!this.g&&(this.g=new FE),xE(this.g,new BG(e)),Ze(this),t},o.hm=function(){return Ze(this),nt(),Ese},o.im=function(){return Ze(this),nt(),jse},o.jm=function(){throw M(new Le($e((Ie(),is))))},o.km=function(){throw M(new Le($e((Ie(),is))))},o.lm=function(){return Ze(this),y6e()},o.mm=function(){return Ze(this),nt(),Mse},o.nm=function(){return Ze(this),nt(),Ase},o.om=function(){var e;if(this.d>=this.j||((e=Xi(this.i,this.d++))&65504)!=64)throw M(new Le($e((Ie(),$Wn))));return Ze(this),nt(),nt(),new Nh(0,e-64)},o.pm=function(){return Ze(this),CPe()},o.qm=function(){return Ze(this),nt(),Sse},o.rm=function(){var e;return e=(nt(),nt(),new Nh(0,105)),Ze(this),e},o.sm=function(){return Ze(this),nt(),Tse},o.tm=function(){return Ze(this),nt(),Cse},o.um=function(e,t){return this.cm()},o.vm=function(){return Ze(this),nt(),a0n},o.wm=function(){var e,t,i,r,c;if(this.d+1>=this.j)throw M(new Le($e((Ie(),DWn))));if(r=-1,t=null,e=Xi(this.i,this.d),49<=e&&e<=57){if(r=e-48,!this.g&&(this.g=new FE),xE(this.g,new BG(r)),++this.d,Xi(this.i,this.d)!=41)throw M(new Le($e((Ie(),Ad))));++this.d}else switch(e==63&&--this.d,Ze(this),t=utn(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw M(new Le($e((Ie(),Ad))));break;default:throw M(new Le($e((Ie(),LWn))))}if(Ze(this),c=x0(this),i=null,c.e==2){if(c.Pm()!=2)throw M(new Le($e((Ie(),NWn))));i=c.Lm(1),c=c.Lm(0)}if(this.c!=7)throw M(new Le($e((Ie(),Ad))));return Ze(this),nt(),nt(),new YNn(r,t,c,i)},o.xm=function(){return Ze(this),nt(),d0n},o.ym=function(){var e;if(Ze(this),e=bM(24,x0(this)),this.c!=7)throw M(new Le($e((Ie(),Ad))));return Ze(this),e},o.zm=function(){var e;if(Ze(this),e=bM(20,x0(this)),this.c!=7)throw M(new Le($e((Ie(),Ad))));return Ze(this),e},o.Am=function(){var e;if(Ze(this),e=bM(22,x0(this)),this.c!=7)throw M(new Le($e((Ie(),Ad))));return Ze(this),e},o.Bm=function(){var e,t,i,r,c;for(e=0,i=0,t=-1;this.d=this.j)throw M(new Le($e((Ie(),Ncn))));if(t==45){for(++this.d;this.d=this.j)throw M(new Le($e((Ie(),Ncn))))}if(t==58){if(++this.d,Ze(this),r=XPn(x0(this),e,i),this.c!=7)throw M(new Le($e((Ie(),Ad))));Ze(this)}else if(t==41)++this.d,Ze(this),r=XPn(x0(this),e,i);else throw M(new Le($e((Ie(),OWn))));return r},o.Cm=function(){var e;if(Ze(this),e=bM(21,x0(this)),this.c!=7)throw M(new Le($e((Ie(),Ad))));return Ze(this),e},o.Dm=function(){var e;if(Ze(this),e=bM(23,x0(this)),this.c!=7)throw M(new Le($e((Ie(),Ad))));return Ze(this),e},o.Em=function(){var e,t;if(Ze(this),e=this.f++,t=rN(x0(this),e),this.c!=7)throw M(new Le($e((Ie(),Ad))));return Ze(this),t},o.Fm=function(){var e;if(Ze(this),e=rN(x0(this),0),this.c!=7)throw M(new Le($e((Ie(),Ad))));return Ze(this),e},o.Gm=function(e){return Ze(this),this.c==5?(Ze(this),cM(e,(nt(),nt(),new Xb(9,e)))):cM(e,(nt(),nt(),new Xb(3,e)))},o.Hm=function(e){var t;return Ze(this),t=(nt(),nt(),new T6(2)),this.c==5?(Ze(this),pd(t,R9),pd(t,e)):(pd(t,e),pd(t,R9)),t},o.Im=function(e){return Ze(this),this.c==5?(Ze(this),nt(),nt(),new Xb(9,e)):(nt(),nt(),new Xb(3,e))},o.a=0,o.b=0,o.c=0,o.d=0,o.e=0,o.f=1,o.g=null,o.j=0,w(p1,"RegEx/RegexParser",836),b(1947,836,{},wjn),o.bm=function(e){return!1},o.cm=function(){return ben(this)},o.dm=function(e){return Pm(e)},o.em=function(e){return kzn(this)},o.fm=function(){throw M(new Le($e((Ie(),is))))},o.gm=function(){throw M(new Le($e((Ie(),is))))},o.hm=function(){throw M(new Le($e((Ie(),is))))},o.im=function(){throw M(new Le($e((Ie(),is))))},o.jm=function(){return Ze(this),Pm(67)},o.km=function(){return Ze(this),Pm(73)},o.lm=function(){throw M(new Le($e((Ie(),is))))},o.mm=function(){throw M(new Le($e((Ie(),is))))},o.nm=function(){throw M(new Le($e((Ie(),is))))},o.om=function(){return Ze(this),Pm(99)},o.pm=function(){throw M(new Le($e((Ie(),is))))},o.qm=function(){throw M(new Le($e((Ie(),is))))},o.rm=function(){return Ze(this),Pm(105)},o.sm=function(){throw M(new Le($e((Ie(),is))))},o.tm=function(){throw M(new Le($e((Ie(),is))))},o.um=function(e,t){return gw(e,Pm(t)),-1},o.vm=function(){return Ze(this),nt(),nt(),new Nh(0,94)},o.wm=function(){throw M(new Le($e((Ie(),is))))},o.xm=function(){return Ze(this),nt(),nt(),new Nh(0,36)},o.ym=function(){throw M(new Le($e((Ie(),is))))},o.zm=function(){throw M(new Le($e((Ie(),is))))},o.Am=function(){throw M(new Le($e((Ie(),is))))},o.Bm=function(){throw M(new Le($e((Ie(),is))))},o.Cm=function(){throw M(new Le($e((Ie(),is))))},o.Dm=function(){throw M(new Le($e((Ie(),is))))},o.Em=function(){var e;if(Ze(this),e=rN(x0(this),0),this.c!=7)throw M(new Le($e((Ie(),Ad))));return Ze(this),e},o.Fm=function(){throw M(new Le($e((Ie(),is))))},o.Gm=function(e){return Ze(this),cM(e,(nt(),nt(),new Xb(3,e)))},o.Hm=function(e){var t;return Ze(this),t=(nt(),nt(),new T6(2)),pd(t,e),pd(t,R9),t},o.Im=function(e){return Ze(this),nt(),nt(),new Xb(3,e)};var X2=null,Hv=null;w(p1,"RegEx/ParserForXMLSchema",1947),b(122,1,cv,Wd),o.Jm=function(e){throw M(new ec("Not supported."))},o.Km=function(){return-1},o.Lm=function(e){return null},o.Mm=function(){return null},o.Nm=function(e){},o.Om=function(e){},o.Pm=function(){return 0},o.Ib=function(){return this.Qm(0)},o.Qm=function(e){return this.e==11?".":""},o.e=0;var f0n,qv,B9,yse,h0n,rg=null,PO,PU=null,l0n,R9,IU=null,a0n,d0n,b0n,w0n,g0n,jse,_3,Ese,Cse,Mse,Tse,Uv,Ase,Sse,NNe=w(p1,"RegEx/Token",122);b(138,122,{3:1,138:1,122:1},yo),o.Qm=function(e){var t,i,r;if(this.e==4)if(this==l0n)i=".";else if(this==PO)i="\\d";else if(this==Uv)i="\\w";else if(this==_3)i="\\s";else{for(r=new Hl,r.a+="[",t=0;t0&&(r.a+=","),this.b[t]===this.b[t+1]?Er(r,dy(this.b[t])):(Er(r,dy(this.b[t])),r.a+="-",Er(r,dy(this.b[t+1])));r.a+="]",i=r.a}else if(this==b0n)i="\\D";else if(this==g0n)i="\\W";else if(this==w0n)i="\\S";else{for(r=new Hl,r.a+="[^",t=0;t0&&(r.a+=","),this.b[t]===this.b[t+1]?Er(r,dy(this.b[t])):(Er(r,dy(this.b[t])),r.a+="-",Er(r,dy(this.b[t+1])));r.a+="]",i=r.a}return i},o.a=!1,o.c=!1,w(p1,"RegEx/RangeToken",138),b(592,1,{592:1},BG),o.a=0,w(p1,"RegEx/RegexParser/ReferencePosition",592),b(591,1,{3:1,591:1},IEn),o.Fb=function(e){var t;return e==null||!D(e,591)?!1:(t=u(e,591),An(this.b,t.b)&&this.a==t.a)},o.Hb=function(){return t1(this.b+"/"+oen(this.a))},o.Ib=function(){return this.c.Qm(this.a)},o.a=0,w(p1,"RegEx/RegularExpression",591),b(228,122,cv,Nh),o.Km=function(){return this.a},o.Qm=function(e){var t,i,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r="\\"+LL(this.a&ui);break;case 12:r="\\f";break;case 10:r="\\n";break;case 13:r="\\r";break;case 9:r="\\t";break;case 27:r="\\e";break;default:this.a>=hr?(i=(t=this.a>>>0,"0"+t.toString(16)),r="\\v"+qo(i,i.length-6,i.length)):r=""+LL(this.a&ui)}break;case 8:this==a0n||this==d0n?r=""+LL(this.a&ui):r="\\"+LL(this.a&ui);break;default:r=null}return r},o.a=0,w(p1,"RegEx/Token/CharToken",228),b(318,122,cv,Xb),o.Lm=function(e){return this.a},o.Nm=function(e){this.b=e},o.Om=function(e){this.c=e},o.Pm=function(){return 1},o.Qm=function(e){var t;if(this.e==3)if(this.c<0&&this.b<0)t=this.a.Qm(e)+"*";else if(this.c==this.b)t=this.a.Qm(e)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)t=this.a.Qm(e)+"{"+this.c+",}";else throw M(new ec("Token#toString(): CLOSURE "+this.c+ur+this.b));else if(this.c<0&&this.b<0)t=this.a.Qm(e)+"*?";else if(this.c==this.b)t=this.a.Qm(e)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)t=this.a.Qm(e)+"{"+this.c+",}?";else throw M(new ec("Token#toString(): NONGREEDYCLOSURE "+this.c+ur+this.b));return t},o.b=0,o.c=0,w(p1,"RegEx/Token/ClosureToken",318),b(837,122,cv,AW),o.Lm=function(e){return e==0?this.a:this.b},o.Pm=function(){return 2},o.Qm=function(e){var t;return this.b.e==3&&this.b.Lm(0)==this.a?t=this.a.Qm(e)+"+":this.b.e==9&&this.b.Lm(0)==this.a?t=this.a.Qm(e)+"+?":t=this.a.Qm(e)+(""+this.b.Qm(e)),t},w(p1,"RegEx/Token/ConcatToken",837),b(1945,122,cv,YNn),o.Lm=function(e){if(e==0)return this.d;if(e==1)return this.b;throw M(new ec("Internal Error: "+e))},o.Pm=function(){return this.b?2:1},o.Qm=function(e){var t;return this.c>0?t="(?("+this.c+")":this.a.e==8?t="(?("+this.a+")":t="(?"+this.a,this.b?t+=this.d+"|"+this.b+")":t+=this.d+")",t},o.c=0,w(p1,"RegEx/Token/ConditionToken",1945),b(1946,122,cv,HOn),o.Lm=function(e){return this.b},o.Pm=function(){return 1},o.Qm=function(e){return"(?"+(this.a==0?"":oen(this.a))+(this.c==0?"":oen(this.c))+":"+this.b.Qm(e)+")"},o.a=0,o.c=0,w(p1,"RegEx/Token/ModifierToken",1946),b(838,122,cv,FW),o.Lm=function(e){return this.a},o.Pm=function(){return 1},o.Qm=function(e){var t;switch(t=null,this.e){case 6:this.b==0?t="(?:"+this.a.Qm(e)+")":t="("+this.a.Qm(e)+")";break;case 20:t="(?="+this.a.Qm(e)+")";break;case 21:t="(?!"+this.a.Qm(e)+")";break;case 22:t="(?<="+this.a.Qm(e)+")";break;case 23:t="(?"+this.a.Qm(e)+")"}return t},o.b=0,w(p1,"RegEx/Token/ParenToken",838),b(530,122,{3:1,122:1,530:1},IN),o.Mm=function(){return this.b},o.Qm=function(e){return this.e==12?"\\"+this.a:gMe(this.b)},o.a=0,w(p1,"RegEx/Token/StringToken",530),b(476,122,cv,T6),o.Jm=function(e){pd(this,e)},o.Lm=function(e){return u(m0(this.a,e),122)},o.Pm=function(){return this.a?this.a.a.c.length:0},o.Qm=function(e){var t,i,r,c,s;if(this.e==1){if(this.a.a.c.length==2)t=u(m0(this.a,0),122),i=u(m0(this.a,1),122),i.e==3&&i.Lm(0)==t?c=t.Qm(e)+"+":i.e==9&&i.Lm(0)==t?c=t.Qm(e)+"+?":c=t.Qm(e)+(""+i.Qm(e));else{for(s=new Hl,r=0;r=this.c.b:this.a<=this.c.b},o.Sb=function(){return this.b>0},o.Tb=function(){return this.b},o.Vb=function(){return this.b-1},o.Qb=function(){throw M(new Kl(ZJn))},o.a=0,o.b=0,w(eun,"ExclusiveRange/RangeIterator",258);var fs=T4(GS,"C"),ye=T4(v8,"I"),so=T4(i3,"Z"),Fa=T4(k8,"J"),Fu=T4(g8,"B"),Pi=T4(p8,"D"),cg=T4(m8,"F"),V2=T4(y8,"S"),$Ne=Nt("org.eclipse.elk.core.labels","ILabelManager"),p0n=Nt(or,"DiagnosticChain"),m0n=Nt(AJn,"ResourceSet"),v0n=w(or,"InvocationTargetException",null),Ise=(_E(),W3e),Ose=Ose=Kke;Hme(Bfe),Bme("permProps",[[["locale","default"],[nQn,"gecko1_8"]],[["locale","default"],[nQn,"safari"]]]),Ose(null,"elk",null)}).call(this)}).call(this,typeof Nse<"u"?Nse:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(Xt,gt,Sr){function Di(Jt,Xe){if(!(Jt instanceof Xe))throw new TypeError("Cannot call a class as a function")}function y(Jt,Xe){if(!Jt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Xe&&(typeof Xe=="object"||typeof Xe=="function")?Xe:Jt}function Wt(Jt,Xe){if(typeof Xe!="function"&&Xe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Xe);Jt.prototype=Object.create(Xe&&Xe.prototype,{constructor:{value:Jt,enumerable:!1,writable:!0,configurable:!0}}),Xe&&(Object.setPrototypeOf?Object.setPrototypeOf(Jt,Xe):Jt.__proto__=Xe)}var Bu=Xt("./elk-api.js").default,Ht=function(Jt){Wt(Xe,Jt);function Xe(){var Yi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Di(this,Xe);var Ri=Object.assign({},Yi),En=!1;try{Xt.resolve("web-worker"),En=!0}catch{}if(Yi.workerUrl)if(En){var hu=Xt("web-worker");Ri.workerFactory=function(Pr){return new hu(Pr)}}else console.warn(`Web worker requested but 'web-worker' package not installed. +Consider installing the package or pass your own 'workerFactory' to ELK's constructor. +... Falling back to non-web worker version.`);if(!Ri.workerFactory){var Qc=Xt("./elk-worker.min.js"),Ru=Qc.Worker;Ri.workerFactory=function(Pr){return new Ru(Pr)}}return y(this,(Xe.__proto__||Object.getPrototypeOf(Xe)).call(this,Ri))}return Xe}(Bu);Object.defineProperty(gt.exports,"__esModule",{value:!0}),gt.exports=Ht,Ht.default=Ht},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(Xt,gt,Sr){gt.exports=Worker},{}]},{},[3])(3)})})(Bse);var VNe=Bse.exports;const WNe=zNe(VNe),JNe=(ct,_t,Xt)=>{const{parentById:gt}=Xt,Sr=new Set;let Di=ct;for(;Di;){if(Sr.add(Di),Di===_t)return Di;Di=gt[Di]}for(Di=_t;Di;){if(Sr.has(Di))return Di;Di=gt[Di]}return"root"},$se=new WNe;let Mb={};const QNe={};let z3={};const YNe=async function(ct,_t,Xt,gt,Sr,Di,y){const Bu=Xt.select(`[id="${_t}"]`).insert("g").attr("class","nodes"),Ht=Object.keys(ct);return await Promise.all(Ht.map(async function(Jt){const Xe=ct[Jt];let Yi="default";Xe.classes.length>0&&(Yi=Xe.classes.join(" ")),Yi=Yi+" flowchart-label";const Ri=j0n(Xe.styles);let En=Xe.text!==void 0?Xe.text:Xe.id;const hu={width:0,height:0},Qc=[{id:Xe.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:Xe.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:Xe.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:Xe.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let Ru=0,Pr="",Mf={};switch(Xe.type){case"round":Ru=5,Pr="rect";break;case"square":Pr="rect";break;case"diamond":Pr="question",Mf={portConstraints:"FIXED_SIDE"};break;case"hexagon":Pr="hexagon";break;case"odd":Pr="rect_left_inv_arrow";break;case"lean_right":Pr="lean_right";break;case"lean_left":Pr="lean_left";break;case"trapezoid":Pr="trapezoid";break;case"inv_trapezoid":Pr="inv_trapezoid";break;case"odd_right":Pr="rect_left_inv_arrow";break;case"circle":Pr="circle";break;case"ellipse":Pr="ellipse";break;case"stadium":Pr="stadium";break;case"subroutine":Pr="subroutine";break;case"cylinder":Pr="cylinder";break;case"group":Pr="rect";break;case"doublecircle":Pr="doublecircle";break;default:Pr="rect"}const L1={labelStyle:Ri.labelStyle,shape:Pr,labelText:En,labelType:Xe.labelType,rx:Ru,ry:Ru,class:Yi,style:Ri.style,id:Xe.id,link:Xe.link,linkTarget:Xe.linkTarget,tooltip:Sr.db.getTooltip(Xe.id)||"",domId:Sr.db.lookUpDomId(Xe.id),haveCallback:Xe.haveCallback,width:Xe.type==="group"?500:void 0,dir:Xe.dir,type:Xe.type,props:Xe.props,padding:$U().flowchart.padding};let N1,og;if(L1.type!=="group")og=await _Ne(Bu,L1,Xe.dir),N1=og.node().getBBox();else{gt.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:$1,bbox:ul}=await HNe(Bu,L1,void 0,!0);hu.width=ul.width,hu.wrappingWidth=$U().flowchart.wrappingWidth,hu.height=ul.height,hu.labelNode=$1.node(),L1.labelData=hu}const X3={id:Xe.id,ports:Xe.type==="diamond"?Qc:[],layoutOptions:Mf,labelText:En,labelData:hu,domId:Sr.db.lookUpDomId(Xe.id),width:N1?.width,height:N1?.height,type:Xe.type,el:og,parent:Di.parentById[Xe.id]};z3[L1.id]=X3})),y},xse=(ct,_t,Xt)=>{const gt={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return gt.TD=gt.TB,gt[Xt][_t][ct]},Fse=(ct,_t,Xt)=>{if(Ra.info("getNextPort",{node:ct,edgeDirection:_t,graphDirection:Xt}),!Mb[ct])switch(Xt){case"TB":case"TD":Mb[ct]={inPosition:"north",outPosition:"south"};break;case"BT":Mb[ct]={inPosition:"south",outPosition:"north"};break;case"RL":Mb[ct]={inPosition:"east",outPosition:"west"};break;case"LR":Mb[ct]={inPosition:"west",outPosition:"east"};break}const gt=_t==="in"?Mb[ct].inPosition:Mb[ct].outPosition;return _t==="in"?Mb[ct].inPosition=xse(Mb[ct].inPosition,_t,Xt):Mb[ct].outPosition=xse(Mb[ct].outPosition,_t,Xt),gt},ZNe=(ct,_t)=>{let Xt=ct.start,gt=ct.end;const Sr=Xt,Di=gt,y=z3[Xt],Wt=z3[gt];return!y||!Wt?{source:Xt,target:gt}:(y.type==="diamond"&&(Xt=`${Xt}-${Fse(Xt,"out",_t)}`),Wt.type==="diamond"&&(gt=`${gt}-${Fse(gt,"in",_t)}`),{source:Xt,target:gt,sourceId:Sr,targetId:Di})},n$e=function(ct,_t,Xt,gt){Ra.info("abc78 edges = ",ct);const Sr=gt.insert("g").attr("class","edgeLabels");let Di={},y=_t.db.getDirection(),Wt,Bu;if(ct.defaultStyle!==void 0){const Ht=j0n(ct.defaultStyle);Wt=Ht.style,Bu=Ht.labelStyle}return ct.forEach(function(Ht){const Jt="L-"+Ht.start+"-"+Ht.end;Di[Jt]===void 0?(Di[Jt]=0,Ra.info("abc78 new entry",Jt,Di[Jt])):(Di[Jt]++,Ra.info("abc78 new entry",Jt,Di[Jt]));let Xe=Jt+"-"+Di[Jt];Ra.info("abc78 new link id to be used is",Jt,Xe,Di[Jt]);const Yi="LS-"+Ht.start,Ri="LE-"+Ht.end,En={style:"",labelStyle:""};switch(En.minlen=Ht.length||1,Ht.type==="arrow_open"?En.arrowhead="none":En.arrowhead="normal",En.arrowTypeStart="arrow_open",En.arrowTypeEnd="arrow_open",Ht.type){case"double_arrow_cross":En.arrowTypeStart="arrow_cross";case"arrow_cross":En.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":En.arrowTypeStart="arrow_point";case"arrow_point":En.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":En.arrowTypeStart="arrow_circle";case"arrow_circle":En.arrowTypeEnd="arrow_circle";break}let hu="",Qc="";switch(Ht.stroke){case"normal":hu="fill:none;",Wt!==void 0&&(hu=Wt),Bu!==void 0&&(Qc=Bu),En.thickness="normal",En.pattern="solid";break;case"dotted":En.thickness="normal",En.pattern="dotted",En.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":En.thickness="thick",En.pattern="solid",En.style="stroke-width: 3.5px;fill:none;";break}if(Ht.style!==void 0){const og=j0n(Ht.style);hu=og.style,Qc=og.labelStyle}En.style=En.style+=hu,En.labelStyle=En.labelStyle+=Qc,Ht.interpolate!==void 0?En.curve=y0n(Ht.interpolate,NU):ct.defaultInterpolate!==void 0?En.curve=y0n(ct.defaultInterpolate,NU):En.curve=y0n(QNe.curve,NU),Ht.text===void 0?Ht.style!==void 0&&(En.arrowheadStyle="fill: #333"):(En.arrowheadStyle="fill: #333",En.labelpos="c"),En.labelType=Ht.labelType,En.label=Ht.text.replace(RNe.lineBreakRegex,` +`),Ht.style===void 0&&(En.style=En.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),En.labelStyle=En.labelStyle.replace("color:","fill:"),En.id=Xe,En.classes="flowchart-link "+Yi+" "+Ri;const Ru=qNe(Sr,En),{source:Pr,target:Mf,sourceId:L1,targetId:N1}=ZNe(Ht,y);Ra.debug("abc78 source and target",Pr,Mf),Xt.edges.push({id:"e"+Ht.start+Ht.end,sources:[Pr],targets:[Mf],sourceId:L1,targetId:N1,labelEl:Ru,labels:[{width:En.width,height:En.height,orgWidth:En.width,orgHeight:En.height,text:En.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:En})}),Xt},e$e=function(ct,_t,Xt,gt,Sr){let Di="";gt&&(Di=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Di=Di.replace(/\(/g,"\\("),Di=Di.replace(/\)/g,"\\)")),GNe(ct,_t,Di,Sr,Xt)},t$e=function(ct,_t){return Ra.info("Extracting classes"),_t.db.getClasses()},i$e=function(ct){const _t={parentById:{},childrenById:{}},Xt=ct.getSubGraphs();return Ra.info("Subgraphs - ",Xt),Xt.forEach(function(gt){gt.nodes.forEach(function(Sr){_t.parentById[Sr]=gt.id,_t.childrenById[gt.id]===void 0&&(_t.childrenById[gt.id]=[]),_t.childrenById[gt.id].push(Sr)})}),Xt.forEach(function(gt){gt.id,_t.parentById[gt.id]!==void 0&&_t.parentById[gt.id]}),_t},r$e=function(ct,_t,Xt){const gt=JNe(ct,_t,Xt);if(gt===void 0||gt==="root")return{x:0,y:0};const Sr=z3[gt].offset;return{x:Sr.posX,y:Sr.posY}},c$e=function(ct,_t,Xt,gt,Sr,Di){const y=r$e(_t.sourceId,_t.targetId,Sr),Wt=_t.sections[0].startPoint,Bu=_t.sections[0].endPoint,Jt=(_t.sections[0].bendPoints?_t.sections[0].bendPoints:[]).map(Mf=>[Mf.x+y.x,Mf.y+y.y]),Xe=[[Wt.x+y.x,Wt.y+y.y],...Jt,[Bu.x+y.x,Bu.y+y.y]],{x:Yi,y:Ri}=UNe(_t.edgeData),En=XNe().x(Yi).y(Ri).curve(NU),hu=ct.insert("path").attr("d",En(Xe)).attr("class","path "+Xt.classes).attr("fill","none"),Qc=ct.insert("g").attr("class","edgeLabel"),Ru=IO(Qc.node().appendChild(_t.labelEl)),Pr=Ru.node().firstChild.getBoundingClientRect();Ru.attr("width",Pr.width),Ru.attr("height",Pr.height),Qc.attr("transform",`translate(${_t.labels[0].x+y.x}, ${_t.labels[0].y+y.y})`),e$e(hu,Xt,gt.type,gt.arrowMarkerAbsolute,Di)},Rse=(ct,_t)=>{ct.forEach(Xt=>{Xt.children||(Xt.children=[]);const gt=_t.childrenById[Xt.id];gt&>.forEach(Sr=>{Xt.children.push(z3[Sr])}),Rse(Xt.children,_t)})},u$e=async function(ct,_t,Xt,gt){var Sr;gt.db.clear(),z3={},Mb={},gt.db.setGen("gen-2"),gt.parser.parse(ct);const Di=IO("body").append("div").attr("style","height:400px").attr("id","cy");let y={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(Ra.info("Drawing flowchart using v3 renderer",$se),gt.db.getDirection()){case"BT":y.layoutOptions["elk.direction"]="UP";break;case"TB":y.layoutOptions["elk.direction"]="DOWN";break;case"LR":y.layoutOptions["elk.direction"]="RIGHT";break;case"RL":y.layoutOptions["elk.direction"]="LEFT";break}const{securityLevel:Bu,flowchart:Ht}=$U();let Jt;Bu==="sandbox"&&(Jt=IO("#i"+_t));const Xe=Bu==="sandbox"?IO(Jt.nodes()[0].contentDocument.body):IO("body"),Yi=Bu==="sandbox"?Jt.nodes()[0].contentDocument:document,Ri=Xe.select(`[id="${_t}"]`);KNe(Ri,["point","circle","cross"],gt.type,_t);const hu=gt.db.getVertices();let Qc;const Ru=gt.db.getSubGraphs();Ra.info("Subgraphs - ",Ru);for(let $1=Ru.length-1;$1>=0;$1--)Qc=Ru[$1],gt.db.addVertex(Qc.id,{text:Qc.title,type:Qc.labelType},"group",void 0,Qc.classes,Qc.dir);const Pr=Ri.insert("g").attr("class","subgraphs"),Mf=i$e(gt.db);y=await YNe(hu,_t,Xe,Yi,gt,Mf,y);const L1=Ri.insert("g").attr("class","edges edgePath"),N1=gt.db.getEdges();y=n$e(N1,gt,y,Ri),Object.keys(z3).forEach($1=>{const ul=z3[$1];ul.parent||y.children.push(ul),Mf.childrenById[$1]!==void 0&&(ul.labels=[{text:ul.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:ul.labelData.width,height:ul.labelData.height}],delete ul.x,delete ul.y,delete ul.width,delete ul.height)}),Rse(y.children,Mf),Ra.info("after layout",JSON.stringify(y,null,2));const X3=await $se.layout(y);Kse(0,0,X3.children,Ri,Pr,gt,0),Ra.info("after layout",X3),(Sr=X3.edges)==null||Sr.map($1=>{c$e(L1,$1,$1.edgeData,gt,Mf,_t)}),BNe({},Ri,Ht.diagramPadding,Ht.useMaxWidth),Di.remove()},Kse=(ct,_t,Xt,gt,Sr,Di,y)=>{Xt.forEach(function(Wt){if(Wt)if(z3[Wt.id].offset={posX:Wt.x+ct,posY:Wt.y+_t,x:ct,y:_t,depth:y,width:Wt.width,height:Wt.height},Wt.type==="group"){const Bu=Sr.insert("g").attr("class","subgraph");Bu.insert("rect").attr("class","subgraph subgraph-lvl-"+y%5+" node").attr("x",Wt.x+ct).attr("y",Wt.y+_t).attr("width",Wt.width).attr("height",Wt.height);const Ht=Bu.insert("g").attr("class","label"),Jt=$U().flowchart.htmlLabels?Wt.labelData.width/2:0;Ht.attr("transform",`translate(${Wt.labels[0].x+ct+Wt.x+Jt}, ${Wt.labels[0].y+_t+Wt.y+3})`),Ht.node().appendChild(Wt.labelData.labelNode),Ra.info("Id (UGH)= ",Wt.type,Wt.labels)}else Ra.info("Id (UGH)= ",Wt.id),Wt.el.attr("transform",`translate(${Wt.x+ct+Wt.width/2}, ${Wt.y+_t+Wt.height/2})`)}),Xt.forEach(function(Wt){Wt&&Wt.type==="group"&&Kse(ct+Wt.x,_t+Wt.y,Wt.children,gt,Sr,Di,y+1)})},o$e={getClasses:t$e,draw:u$e},s$e=ct=>{let _t="";for(let Xt=0;Xt<5;Xt++)_t+=` + .subgraph-lvl-${Xt} { + fill: ${ct[`surface${Xt}`]}; + stroke: ${ct[`surfacePeer${Xt}`]}; + } + `;return _t},f$e=ct=>`.label { + font-family: ${ct.fontFamily}; + color: ${ct.nodeTextColor||ct.textColor}; + } + .cluster-label text { + fill: ${ct.titleColor}; + } + .cluster-label span { + color: ${ct.titleColor}; + } + + .label text,span { + fill: ${ct.nodeTextColor||ct.textColor}; + color: ${ct.nodeTextColor||ct.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${ct.mainBkg}; + stroke: ${ct.nodeBorder}; + stroke-width: 1px; + } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${ct.arrowheadColor}; + } + + .edgePath .path { + stroke: ${ct.lineColor}; + stroke-width: 2.0px; + } + + .flowchart-link { + stroke: ${ct.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${ct.edgeLabelBackground}; + rect { + opacity: 0.85; + background-color: ${ct.edgeLabelBackground}; + fill: ${ct.edgeLabelBackground}; + } + text-align: center; + } + + .cluster rect { + fill: ${ct.clusterBkg}; + stroke: ${ct.clusterBorder}; + stroke-width: 1px; + } + + .cluster text { + fill: ${ct.titleColor}; + } + + .cluster span { + color: ${ct.titleColor}; + } + /* .cluster div { + color: ${ct.titleColor}; + } */ + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${ct.fontFamily}; + font-size: 12px; + background: ${ct.tertiaryColor}; + border: 1px solid ${ct.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${ct.textColor}; + } + .subgraph { + stroke-width:2; + rx:3; + } + // .subgraph-lvl-1 { + // fill:#ccc; + // // stroke:black; + // } + + .flowchart-label text { + text-anchor: middle; + } + + ${s$e(ct)} +`,h$e=f$e,Q$e={db:xNe,renderer:o$e,parser:FNe,styles:h$e};export{Q$e as diagram}; diff --git a/assets/framer-lazy-feature-pFG8hMnQ.js b/assets/framer-lazy-feature-pFG8hMnQ.js new file mode 100644 index 00000000000..2ee0a4f3ded --- /dev/null +++ b/assets/framer-lazy-feature-pFG8hMnQ.js @@ -0,0 +1 @@ +import{d as m}from"./features-max-O5aQqdqN.js";import"./motion-minimal-gJqnz197.js";import"./index-qegmBwH1.js";import"./visual-element-YIiczwVf.js";export{m as default}; diff --git a/assets/ganttDiagram-5c869e3b-ARB9uH4V.js b/assets/ganttDiagram-5c869e3b-ARB9uH4V.js new file mode 100644 index 00000000000..84775eb5497 --- /dev/null +++ b/assets/ganttDiagram-5c869e3b-ARB9uH4V.js @@ -0,0 +1,257 @@ +import{ab as Pe,ac as Re,ad as Be,ae as qe,af as Cn,ag as $t,ah as Dn,c as xt,s as Mn,g as _n,o as Sn,p as Un,b as Fn,a as En,q as Yn,m as An,l as Xt,h as Pt,i as In,j as Wn,u as Ln}from"./index.demo-_07sssxB.js";import{m as K}from"./owner-4YVbz2PN.js";import{c as Ze,g as Xe}from"./index-qegmBwH1.js";import{d as Nn}from"./customParseFormat-3OBJgCTU.js";import{b as On,t as _e,c as Hn,a as Vn,l as zn}from"./linear-aaS3CbNq.js";import{i as Pn}from"./init-Hi12RPRh.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";function Rn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function Bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function qn(t){return t}var Bt=1,te=2,ue=3,Rt=4,Se=1e-6;function Zn(t){return"translate("+t+",0)"}function Xn(t){return"translate(0,"+t+")"}function Gn(t){return e=>+t(e)}function jn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Qn(){return!this.__axis}function Ge(t,e){var n=[],r=null,i=null,s=6,a=6,g=3,C=typeof window<"u"&&window.devicePixelRatio>1?0:.5,k=t===Bt||t===Rt?-1:1,x=t===Rt||t===te?"x":"y",U=t===Bt||t===ue?Zn:Xn;function v(p){var z=r??(e.ticks?e.ticks.apply(e,n):e.domain()),E=i??(e.tickFormat?e.tickFormat.apply(e,n):qn),tt=Math.max(s,0)+g,nt=e.range(),et=+nt[0]+C,q=+nt[nt.length-1]+C,Z=(e.bandwidth?jn:Gn)(e.copy(),C),$=p.selection?p.selection():p,b=$.selectAll(".domain").data([null]),H=$.selectAll(".tick").data(z,e).order(),T=H.exit(),F=H.enter().append("g").attr("class","tick"),S=H.select("line"),w=H.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),H=H.merge(F),S=S.merge(F.append("line").attr("stroke","currentColor").attr(x+"2",k*s)),w=w.merge(F.append("text").attr("fill","currentColor").attr(x,k*tt).attr("dy",t===Bt?"0em":t===ue?"0.71em":"0.32em")),p!==$&&(b=b.transition(p),H=H.transition(p),S=S.transition(p),w=w.transition(p),T=T.transition(p).attr("opacity",Se).attr("transform",function(c){return isFinite(c=Z(c))?U(c+C):this.getAttribute("transform")}),F.attr("opacity",Se).attr("transform",function(c){var d=this.parentNode.__axis;return U((d&&isFinite(d=d(c))?d:Z(c))+C)})),T.remove(),b.attr("d",t===Rt||t===te?a?"M"+k*a+","+et+"H"+C+"V"+q+"H"+k*a:"M"+C+","+et+"V"+q:a?"M"+et+","+k*a+"V"+C+"H"+q+"V"+k*a:"M"+et+","+C+"H"+q),H.attr("opacity",1).attr("transform",function(c){return U(Z(c)+C)}),S.attr(x+"2",k*s),w.attr(x,k*tt).text(E),$.filter(Qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===Rt?"end":"middle"),$.each(function(){this.__axis=Z})}return v.scale=function(p){return arguments.length?(e=p,v):e},v.ticks=function(){return n=Array.from(arguments),v},v.tickArguments=function(p){return arguments.length?(n=p==null?[]:Array.from(p),v):n.slice()},v.tickValues=function(p){return arguments.length?(r=p==null?null:Array.from(p),v):r&&r.slice()},v.tickFormat=function(p){return arguments.length?(i=p,v):i},v.tickSize=function(p){return arguments.length?(s=a=+p,v):s},v.tickSizeInner=function(p){return arguments.length?(s=+p,v):s},v.tickSizeOuter=function(p){return arguments.length?(a=+p,v):a},v.tickPadding=function(p){return arguments.length?(g=+p,v):g},v.offset=function(p){return arguments.length?(C=+p,v):C},v}function Jn(t){return Ge(Bt,t)}function Kn(t){return Ge(ue,t)}const $n=Math.PI/180,tr=180/Math.PI,Gt=18,je=.96422,Qe=1,Je=.82521,Ke=4/29,wt=6/29,$e=3*wt*wt,er=wt*wt*wt;function tn(t){if(t instanceof st)return new st(t.l,t.a,t.b,t.opacity);if(t instanceof ct)return en(t);t instanceof Be||(t=Cn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/Qe),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/je),a=ee((.0139322*e+.0971045*n+.7141733*r)/Je)),new st(116*i-16,500*(s-i),200*(i-a),t.opacity)}function nr(t,e,n,r){return arguments.length===1?tn(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Pe(st,nr,Re(qe,{brighter(t){return new st(this.l+Gt*(t??1),this.a,this.b,this.opacity)},darker(t){return new st(this.l-Gt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=je*ne(e),t=Qe*ne(t),n=Je*ne(n),new Be(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>er?Math.pow(t,1/3):t/$e+Ke}function ne(t){return t>wt?t*t*t:$e*(t-Ke)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function rr(t){if(t instanceof ct)return new ct(t.h,t.c,t.l,t.opacity);if(t instanceof st||(t=tn(t)),t.a===0&&t.b===0)return new ct(NaN,0(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),g=i.ceil(s);return s-a(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,g)=>{const C=[];if(s=i.ceil(s),g=g==null?1:Math.floor(g),!(s0))return C;let k;do C.push(k=new Date(+s)),e(s,g),t(s);while(kG(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,g)=>{if(a>=a)if(g<0)for(;++g<=0;)for(;e(a,-1),!s(a););else for(;--g>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Dt=G(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Dt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?G(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Dt);Dt.range;const lt=1e3,rt=lt*60,ut=rt*60,ft=ut*24,ye=ft*7,Ue=ft*30,oe=ft*365,dt=G(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getUTCSeconds());dt.range;const At=G(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());At.range;const or=G(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());or.range;const It=G(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getHours());It.range;const cr=G(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getUTCHours());cr.range;const yt=G(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/ft,t=>t.getDate()-1);yt.range;const ke=G(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ft,t=>t.getUTCDate()-1);ke.range;const lr=G(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ft,t=>Math.floor(t/ft));lr.range;function Tt(t){return G(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/ye)}const Nt=Tt(0),Wt=Tt(1),nn=Tt(2),rn=Tt(3),kt=Tt(4),sn=Tt(5),an=Tt(6);Nt.range;Wt.range;nn.range;rn.range;kt.range;sn.range;an.range;function bt(t){return G(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ye)}const on=bt(0),jt=bt(1),ur=bt(2),fr=bt(3),Mt=bt(4),hr=bt(5),dr=bt(6);on.range;jt.range;ur.range;fr.range;Mt.range;hr.range;dr.range;const Lt=G(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Lt.range;const mr=G(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());mr.range;const ht=G(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ht.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:G(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});ht.range;const pt=G(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:G(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function gr(t,e,n,r,i,s){const a=[[dt,1,lt],[dt,5,5*lt],[dt,15,15*lt],[dt,30,30*lt],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,ut],[i,3,3*ut],[i,6,6*ut],[i,12,12*ut],[r,1,ft],[r,2,2*ft],[n,1,ye],[e,1,Ue],[e,3,3*Ue],[t,1,oe]];function g(k,x,U){const v=xtt).right(a,v);if(p===a.length)return t.every(_e(k/oe,x/oe,U));if(p===0)return Dt.every(Math.max(_e(k,x,U),1));const[z,E]=a[v/a[p-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?(O=le(Ft(l.y,0,1)),B=O.getUTCDay(),O=B>4||B===0?jt.ceil(O):jt(O),O=ke.offset(O,(l.V-1)*7),l.y=O.getUTCFullYear(),l.m=O.getUTCMonth(),l.d=O.getUTCDate()+(l.w+6)%7):(O=ce(Ft(l.y,0,1)),B=O.getDay(),O=B>4||B===0?Wt.ceil(O):Wt(O),O=yt.offset(O,(l.V-1)*7),l.y=O.getFullYear(),l.m=O.getMonth(),l.d=O.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),B="Z"in l?le(Ft(l.y,0,1)).getUTCDay():ce(Ft(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(B+5)%7:l.w+l.U*7-(B+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function T(y,Y,D,l){for(var V=0,O=Y.length,B=D.length,j,J;V=B)return-1;if(j=Y.charCodeAt(V++),j===37){if(j=Y.charAt(V++),J=$[j in Fe?Y.charAt(V++):j],!J||(l=J(y,D,l))<0)return-1}else if(j!=D.charCodeAt(l++))return-1}return l}function F(y,Y,D){var l=k.exec(Y.slice(D));return l?(y.p=x.get(l[0].toLowerCase()),D+l[0].length):-1}function S(y,Y,D){var l=p.exec(Y.slice(D));return l?(y.w=z.get(l[0].toLowerCase()),D+l[0].length):-1}function w(y,Y,D){var l=U.exec(Y.slice(D));return l?(y.w=v.get(l[0].toLowerCase()),D+l[0].length):-1}function c(y,Y,D){var l=nt.exec(Y.slice(D));return l?(y.m=et.get(l[0].toLowerCase()),D+l[0].length):-1}function d(y,Y,D){var l=E.exec(Y.slice(D));return l?(y.m=tt.get(l[0].toLowerCase()),D+l[0].length):-1}function m(y,Y,D){return T(y,e,Y,D)}function u(y,Y,D){return T(y,n,Y,D)}function M(y,Y,D){return T(y,r,Y,D)}function o(y){return a[y.getDay()]}function R(y){return s[y.getDay()]}function h(y){return C[y.getMonth()]}function f(y){return g[y.getMonth()]}function _(y){return i[+(y.getHours()>=12)]}function P(y){return 1+~~(y.getMonth()/3)}function I(y){return a[y.getUTCDay()]}function L(y){return s[y.getUTCDay()]}function A(y){return C[y.getUTCMonth()]}function N(y){return g[y.getUTCMonth()]}function mt(y){return i[+(y.getUTCHours()>=12)]}function gt(y){return 1+~~(y.getUTCMonth()/3)}return{format:function(y){var Y=b(y+="",q);return Y.toString=function(){return y},Y},parse:function(y){var Y=H(y+="",!1);return Y.toString=function(){return y},Y},utcFormat:function(y){var Y=b(y+="",Z);return Y.toString=function(){return y},Y},utcParse:function(y){var Y=H(y+="",!0);return Y.toString=function(){return y},Y}}}var Fe={"-":"",_:" ",0:"0"},Q=/^\s*\d+/,Tr=/^%/,br=/[\\^$*+?|[\]().{}]/g;function W(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function xr(t,e,n){var r=Q.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=Q.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Dr(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Mr(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=Q.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ye(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _r(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Sr(t,e,n){var r=Q.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Ur(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ae(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=Q.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ie(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=Q.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=Q.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Wr(t,e,n){var r=Tr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Lr(t,e,n){var r=Q.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=Q.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function We(t,e){return W(t.getDate(),e,2)}function Or(t,e){return W(t.getHours(),e,2)}function Hr(t,e){return W(t.getHours()%12||12,e,2)}function Vr(t,e){return W(1+yt.count(ht(t),t),e,3)}function cn(t,e){return W(t.getMilliseconds(),e,3)}function zr(t,e){return cn(t,e)+"000"}function Pr(t,e){return W(t.getMonth()+1,e,2)}function Rr(t,e){return W(t.getMinutes(),e,2)}function Br(t,e){return W(t.getSeconds(),e,2)}function qr(t){var e=t.getDay();return e===0?7:e}function Zr(t,e){return W(Nt.count(ht(t)-1,t),e,2)}function ln(t){var e=t.getDay();return e>=4||e===0?kt(t):kt.ceil(t)}function Xr(t,e){return t=ln(t),W(kt.count(ht(t),t)+(ht(t).getDay()===4),e,2)}function Gr(t){return t.getDay()}function jr(t,e){return W(Wt.count(ht(t)-1,t),e,2)}function Qr(t,e){return W(t.getFullYear()%100,e,2)}function Jr(t,e){return t=ln(t),W(t.getFullYear()%100,e,2)}function Kr(t,e){return W(t.getFullYear()%1e4,e,4)}function $r(t,e){var n=t.getDay();return t=n>=4||n===0?kt(t):kt.ceil(t),W(t.getFullYear()%1e4,e,4)}function ti(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+W(e/60|0,"0",2)+W(e%60,"0",2)}function Le(t,e){return W(t.getUTCDate(),e,2)}function ei(t,e){return W(t.getUTCHours(),e,2)}function ni(t,e){return W(t.getUTCHours()%12||12,e,2)}function ri(t,e){return W(1+ke.count(pt(t),t),e,3)}function un(t,e){return W(t.getUTCMilliseconds(),e,3)}function ii(t,e){return un(t,e)+"000"}function si(t,e){return W(t.getUTCMonth()+1,e,2)}function ai(t,e){return W(t.getUTCMinutes(),e,2)}function oi(t,e){return W(t.getUTCSeconds(),e,2)}function ci(t){var e=t.getUTCDay();return e===0?7:e}function li(t,e){return W(on.count(pt(t)-1,t),e,2)}function fn(t){var e=t.getUTCDay();return e>=4||e===0?Mt(t):Mt.ceil(t)}function ui(t,e){return t=fn(t),W(Mt.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function fi(t){return t.getUTCDay()}function hi(t,e){return W(jt.count(pt(t)-1,t),e,2)}function di(t,e){return W(t.getUTCFullYear()%100,e,2)}function mi(t,e){return t=fn(t),W(t.getUTCFullYear()%100,e,2)}function gi(t,e){return W(t.getUTCFullYear()%1e4,e,4)}function yi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Mt(t):Mt.ceil(t),W(t.getUTCFullYear()%1e4,e,4)}function ki(){return"+0000"}function Ne(){return"%"}function Oe(t){return+t}function He(t){return Math.floor(+t/1e3)}var vt,Qt;pi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function pi(t){return vt=pr(t),Qt=vt.format,vt.parse,vt.utcFormat,vt.utcParse,vt}function Ti(t){return new Date(t)}function bi(t){return t instanceof Date?+t:+new Date(+t)}function hn(t,e,n,r,i,s,a,g,C,k){var x=Hn(),U=x.invert,v=x.domain,p=k(".%L"),z=k(":%S"),E=k("%I:%M"),tt=k("%I %p"),nt=k("%a %d"),et=k("%b %d"),q=k("%B"),Z=k("%Y");function $(b){return(C(b)4&&(p+=7),v.add(p,n));return z.diff(E,"week")+1},g.isoWeekday=function(k){return this.$utils().u(k)?this.day()||7:this.day(this.day()%7?k:k-7)};var C=g.startOf;g.startOf=function(k,x){var U=this.$utils(),v=!!U.u(x)||x;return U.p(k)==="isoweek"?v?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):C.bind(this)(k,x)}}})})(dn);var xi=dn.exports;const wi=Xe(xi);var mn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Ze,function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(a){var g=this,C=this.$locale();if(!this.isValid())return s.bind(this)(a);var k=this.$utils(),x=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(U){switch(U){case"Q":return Math.ceil((g.$M+1)/3);case"Do":return C.ordinal(g.$D);case"gggg":return g.weekYear();case"GGGG":return g.isoWeekYear();case"wo":return C.ordinal(g.week(),"W");case"w":case"ww":return k.s(g.week(),U==="w"?1:2,"0");case"W":case"WW":return k.s(g.isoWeek(),U==="W"?1:2,"0");case"k":case"kk":return k.s(String(g.$H===0?24:g.$H),U==="k"?1:2,"0");case"X":return Math.floor(g.$d.getTime()/1e3);case"x":return g.$d.getTime();case"z":return"["+g.offsetName()+"]";case"zzz":return"["+g.offsetName("long")+"]";default:return U}});return s.bind(this)(x)}}})})(mn);var Ci=mn.exports;const Di=Xe(Ci);var he=function(){var t=function(w,c,d,m){for(d=d||{},m=w.length;m--;d[w[m]]=c);return d},e=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],n=[1,25],r=[1,26],i=[1,27],s=[1,28],a=[1,29],g=[1,30],C=[1,31],k=[1,9],x=[1,10],U=[1,11],v=[1,12],p=[1,13],z=[1,14],E=[1,15],tt=[1,16],nt=[1,18],et=[1,19],q=[1,20],Z=[1,21],$=[1,22],b=[1,24],H=[1,32],T={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(c,d,m,u,M,o,R){var h=o.length-1;switch(M){case 1:return o[h-1];case 2:this.$=[];break;case 3:o[h-1].push(o[h]),this.$=o[h-1];break;case 4:case 5:this.$=o[h];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setDateFormat(o[h].substr(11)),this.$=o[h].substr(11);break;case 16:u.enableInclusiveEndDates(),this.$=o[h].substr(18);break;case 17:u.TopAxis(),this.$=o[h].substr(8);break;case 18:u.setAxisFormat(o[h].substr(11)),this.$=o[h].substr(11);break;case 19:u.setTickInterval(o[h].substr(13)),this.$=o[h].substr(13);break;case 20:u.setExcludes(o[h].substr(9)),this.$=o[h].substr(9);break;case 21:u.setIncludes(o[h].substr(9)),this.$=o[h].substr(9);break;case 22:u.setTodayMarker(o[h].substr(12)),this.$=o[h].substr(12);break;case 24:u.setDiagramTitle(o[h].substr(6)),this.$=o[h].substr(6);break;case 25:this.$=o[h].trim(),u.setAccTitle(this.$);break;case 26:case 27:this.$=o[h].trim(),u.setAccDescription(this.$);break;case 28:u.addSection(o[h].substr(8)),this.$=o[h].substr(8);break;case 30:u.addTask(o[h-1],o[h]),this.$="task";break;case 31:this.$=o[h-1],u.setClickEvent(o[h-1],o[h],null);break;case 32:this.$=o[h-2],u.setClickEvent(o[h-2],o[h-1],o[h]);break;case 33:this.$=o[h-2],u.setClickEvent(o[h-2],o[h-1],null),u.setLink(o[h-2],o[h]);break;case 34:this.$=o[h-3],u.setClickEvent(o[h-3],o[h-2],o[h-1]),u.setLink(o[h-3],o[h]);break;case 35:this.$=o[h-2],u.setClickEvent(o[h-2],o[h],null),u.setLink(o[h-2],o[h-1]);break;case 36:this.$=o[h-3],u.setClickEvent(o[h-3],o[h-1],o[h]),u.setLink(o[h-3],o[h-2]);break;case 37:this.$=o[h-1],u.setLink(o[h-1],o[h]);break;case 38:case 44:this.$=o[h-1]+" "+o[h];break;case 39:case 40:case 42:this.$=o[h-2]+" "+o[h-1]+" "+o[h];break;case 41:case 43:this.$=o[h-3]+" "+o[h-2]+" "+o[h-1]+" "+o[h];break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:g,18:C,19:k,20:x,21:U,22:v,23:p,24:z,25:E,26:tt,27:nt,28:et,30:q,32:Z,33:$,34:23,35:b,37:H},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:n,13:r,14:i,15:s,16:a,17:g,18:C,19:k,20:x,21:U,22:v,23:p,24:z,25:E,26:tt,27:nt,28:et,30:q,32:Z,33:$,34:23,35:b,37:H},t(e,[2,5]),t(e,[2,6]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),{29:[1,34]},{31:[1,35]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),{36:[1,36]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),{38:[1,37],40:[1,38]},t(e,[2,4]),t(e,[2,25]),t(e,[2,26]),t(e,[2,30]),t(e,[2,31],{39:[1,39],40:[1,40]}),t(e,[2,37],{38:[1,41]}),t(e,[2,32],{40:[1,42]}),t(e,[2,33]),t(e,[2,35],{39:[1,43]}),t(e,[2,34]),t(e,[2,36])],defaultActions:{},parseError:function(c,d){if(d.recoverable)this.trace(c);else{var m=new Error(c);throw m.hash=d,m}},parse:function(c){var d=this,m=[0],u=[],M=[null],o=[],R=this.table,h="",f=0,_=0,P=2,I=1,L=o.slice.call(arguments,1),A=Object.create(this.lexer),N={yy:{}};for(var mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,mt)&&(N.yy[mt]=this.yy[mt]);A.setInput(c,N.yy),N.yy.lexer=A,N.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var gt=A.yylloc;o.push(gt);var y=A.options&&A.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(){var at;return at=u.pop()||A.lex()||I,typeof at!="number"&&(at instanceof Array&&(u=at,at=u.pop()),at=d.symbols_[at]||at),at}for(var D,l,V,O,B={},j,J,Ut,zt;;){if(l=m[m.length-1],this.defaultActions[l]?V=this.defaultActions[l]:((D===null||typeof D>"u")&&(D=Y()),V=R[l]&&R[l][D]),typeof V>"u"||!V.length||!V[0]){var Kt="";zt=[];for(j in R[l])this.terminals_[j]&&j>P&&zt.push("'"+this.terminals_[j]+"'");A.showPosition?Kt="Parse error on line "+(f+1)+`: +`+A.showPosition()+` +Expecting `+zt.join(", ")+", got '"+(this.terminals_[D]||D)+"'":Kt="Parse error on line "+(f+1)+": Unexpected "+(D==I?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(Kt,{text:A.match,token:this.terminals_[D]||D,line:A.yylineno,loc:gt,expected:zt})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+l+", token: "+D);switch(V[0]){case 1:m.push(D),M.push(A.yytext),o.push(A.yylloc),m.push(V[1]),D=null,_=A.yyleng,h=A.yytext,f=A.yylineno,gt=A.yylloc;break;case 2:if(J=this.productions_[V[1]][1],B.$=M[M.length-J],B._$={first_line:o[o.length-(J||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(J||1)].first_column,last_column:o[o.length-1].last_column},y&&(B._$.range=[o[o.length-(J||1)].range[0],o[o.length-1].range[1]]),O=this.performAction.apply(B,[h,_,f,N.yy,V[1],M,o].concat(L)),typeof O<"u")return O;J&&(m=m.slice(0,-1*J*2),M=M.slice(0,-1*J),o=o.slice(0,-1*J)),m.push(this.productions_[V[1]][0]),M.push(B.$),o.push(B._$),Ut=R[m[m.length-2]][m[m.length-1]],m.push(Ut);break;case 3:return!0}}return!0}},F=function(){var w={EOF:1,parseError:function(d,m){if(this.yy.parser)this.yy.parser.parseError(d,m);else throw new Error(d)},setInput:function(c,d){return this.yy=d||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},unput:function(c){var d=c.length,m=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var M=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[M[0],M[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(c){this.unput(this.match.slice(c))},pastInput:function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+` +`+d+"^"},test_match:function(c,d){var m,u,M;if(this.options.backtrack_lexer&&(M={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(M.yylloc.range=this.yylloc.range.slice(0))),u=c[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],m=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var o in M)this[o]=M[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,d,m,u;this._more||(this.yytext="",this.match="");for(var M=this._currentRules(),o=0;od[0].length)){if(d=m,u=o,this.options.backtrack_lexer){if(c=this.test_match(m,M[o]),c!==!1)return c;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(c=this.test_match(d,M[u]),c!==!1?c:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var d=this.next();return d||this.lex()},begin:function(d){this.conditionStack.push(d)},popState:function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},pushState:function(d){this.begin(d)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(d,m,u,M){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,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],inclusive:!0}}};return w}();T.lexer=F;function S(){this.yy={}}return S.prototype=T,T.Parser=S,new S}();he.parser=he;const Mi=he;K.extend(wi);K.extend(Nn);K.extend(Di);let it="",pe="",Te,be="",Ot=[],Ht=[],ve={},xe=[],Jt=[],_t="",we="";const gn=["active","done","crit","milestone"];let Ce=[],Vt=!1,De=!1,Me="sunday",de=0;const _i=function(){xe=[],Jt=[],_t="",Ce=[],qt=0,ge=void 0,Zt=void 0,X=[],it="",pe="",we="",Te=void 0,be="",Ot=[],Ht=[],Vt=!1,De=!1,de=0,ve={},Yn(),Me="sunday"},Si=function(t){pe=t},Ui=function(){return pe},Fi=function(t){Te=t},Ei=function(){return Te},Yi=function(t){be=t},Ai=function(){return be},Ii=function(t){it=t},Wi=function(){Vt=!0},Li=function(){return Vt},Ni=function(){De=!0},Oi=function(){return De},Hi=function(t){we=t},Vi=function(){return we},zi=function(){return it},Pi=function(t){Ot=t.toLowerCase().split(/[\s,]+/)},Ri=function(){return Ot},Bi=function(t){Ht=t.toLowerCase().split(/[\s,]+/)},qi=function(){return Ht},Zi=function(){return ve},Xi=function(t){_t=t,xe.push(t)},Gi=function(){return xe},ji=function(){let t=Ve();const e=10;let n=0;for(;!t&&n=6&&n.includes("weekends")||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(t.format(e.trim()))},Qi=function(t){Me=t},Ji=function(){return Me},kn=function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i;t.startTime instanceof Date?i=K(t.startTime):i=K(t.startTime,e,!0),i=i.add(1,"d");let s;t.endTime instanceof Date?s=K(t.endTime):s=K(t.endTime,e,!0);const[a,g]=Ki(i,s,e,n,r);t.endTime=a.toDate(),t.renderEndTime=g},Ki=function(t,e,n,r,i){let s=!1,a=null;for(;t<=e;)s||(a=e.toDate()),s=yn(t,n,r,i),s&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,a]},me=function(t,e,n){n=n.trim();const i=/^after\s+([\d\w- ]+)/.exec(n.trim());if(i!==null){let a=null;if(i[1].split(" ").forEach(function(g){let C=St(g);C!==void 0&&(a?C.endTime>a.endTime&&(a=C):a=C)}),a)return a.endTime;{const g=new Date;return g.setHours(0,0,0,0),g}}let s=K(n,e.trim(),!0);if(s.isValid())return s.toDate();{Xt.debug("Invalid date:"+n),Xt.debug("With date format:"+e.trim());const a=new Date(n);if(a===void 0||isNaN(a.getTime())||a.getFullYear()<-1e4||a.getFullYear()>1e4)throw new Error("Invalid date:"+n);return a}},pn=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},Tn=function(t,e,n,r=!1){n=n.trim();let i=K(n,e.trim(),!0);if(i.isValid())return r&&(i=i.add(1,"d")),i.toDate();let s=K(t);const[a,g]=pn(n);if(!Number.isNaN(a)){const C=s.add(a,g);C.isValid()&&(s=C)}return s.toDate()};let qt=0;const Ct=function(t){return t===void 0?(qt=qt+1,"task"+qt):t},$i=function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};wn(r,i,gn);for(let a=0;a{window.open(n,"_self")}),ve[r]=n)}),vn(t,"clickable")},vn=function(t,e){t.split(",").forEach(function(n){let r=St(n);r!==void 0&&r.classes.push(e)})},is=function(t,e,n){if(xt().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s{Ln.runFunc(e,...r)})},xn=function(t,e){Ce.push(function(){const n=document.querySelector(`[id="${t}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const n=document.querySelector(`[id="${t}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},ss=function(t,e,n){t.split(",").forEach(function(r){is(r,e,n)}),vn(t,"clickable")},as=function(t){Ce.forEach(function(e){e(t)})},os={getConfig:()=>xt().gantt,clear:_i,setDateFormat:Ii,getDateFormat:zi,enableInclusiveEndDates:Wi,endDatesAreInclusive:Li,enableTopAxis:Ni,topAxisEnabled:Oi,setAxisFormat:Si,getAxisFormat:Ui,setTickInterval:Fi,getTickInterval:Ei,setTodayMarker:Yi,getTodayMarker:Ai,setAccTitle:Mn,getAccTitle:_n,setDiagramTitle:Sn,getDiagramTitle:Un,setDisplayMode:Hi,getDisplayMode:Vi,setAccDescription:Fn,getAccDescription:En,addSection:Xi,getSections:Gi,getTasks:ji,addTask:es,findTaskById:St,addTaskOrg:ns,setIncludes:Pi,getIncludes:Ri,setExcludes:Bi,getExcludes:qi,setClickEvent:ss,setLink:rs,getLinks:Zi,bindFunctions:as,parseDuration:pn,isInvalidDate:yn,setWeekday:Qi,getWeekday:Ji};function wn(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(i){const s="^\\s*"+i+"\\s*$",a=new RegExp(s);t[0].match(a)&&(e[i]=!0,t.shift(1),r=!0)})}const cs=function(){Xt.debug("Something is calling, setConf, remove the call")},ze={monday:Wt,tuesday:nn,wednesday:rn,thursday:kt,friday:sn,saturday:an,sunday:Nt},ls=(t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((s,a)=>s.startTime-a.startTime||s.order-a.order),i=0;for(const s of r)for(let a=0;a=n[a]){n[a]=s.endTime,s.order=a+e,a>i&&(i=a);break}return i};let ot;const us=function(t,e,n,r){const i=xt().gantt,s=xt().securityLevel;let a;s==="sandbox"&&(a=Pt("#i"+e));const g=s==="sandbox"?Pt(a.nodes()[0].contentDocument.body):Pt("body"),C=s==="sandbox"?a.nodes()[0].contentDocument:document,k=C.getElementById(e);ot=k.parentElement.offsetWidth,ot===void 0&&(ot=1200),i.useWidth!==void 0&&(ot=i.useWidth);const x=r.db.getTasks();let U=[];for(const T of x)U.push(T.type);U=H(U);const v={};let p=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const T={};for(const S of x)T[S.section]===void 0?T[S.section]=[S]:T[S.section].push(S);let F=0;for(const S of Object.keys(T)){const w=ls(T[S],F)+1;F+=w,p+=w*(i.barHeight+i.barGap),v[S]=w}}else{p+=x.length*(i.barHeight+i.barGap);for(const T of U)v[T]=x.filter(F=>F.type===T).length}k.setAttribute("viewBox","0 0 "+ot+" "+p);const z=g.select(`[id="${e}"]`),E=vi().domain([Bn(x,function(T){return T.startTime}),Rn(x,function(T){return T.endTime})]).rangeRound([0,ot-i.leftPadding-i.rightPadding]);function tt(T,F){const S=T.startTime,w=F.startTime;let c=0;return S>w?c=1:Sf.order))].map(f=>T.find(_=>_.order===f));z.append("g").selectAll("rect").data(M).enter().append("rect").attr("x",0).attr("y",function(f,_){return _=f.order,_*F+S-2}).attr("width",function(){return m-i.rightPadding/2}).attr("height",F).attr("class",function(f){for(const[_,P]of U.entries())if(f.type===P)return"section section"+_%i.numberSectionStyles;return"section section0"});const o=z.append("g").selectAll("rect").data(T).enter(),R=r.db.getLinks();if(o.append("rect").attr("id",function(f){return f.id}).attr("rx",3).attr("ry",3).attr("x",function(f){return f.milestone?E(f.startTime)+w+.5*(E(f.endTime)-E(f.startTime))-.5*c:E(f.startTime)+w}).attr("y",function(f,_){return _=f.order,_*F+S}).attr("width",function(f){return f.milestone?c:E(f.renderEndTime||f.endTime)-E(f.startTime)}).attr("height",c).attr("transform-origin",function(f,_){return _=f.order,(E(f.startTime)+w+.5*(E(f.endTime)-E(f.startTime))).toString()+"px "+(_*F+S+.5*c).toString()+"px"}).attr("class",function(f){const _="task";let P="";f.classes.length>0&&(P=f.classes.join(" "));let I=0;for(const[A,N]of U.entries())f.type===N&&(I=A%i.numberSectionStyles);let L="";return f.active?f.crit?L+=" activeCrit":L=" active":f.done?f.crit?L=" doneCrit":L=" done":f.crit&&(L+=" crit"),L.length===0&&(L=" task"),f.milestone&&(L=" milestone "+L),L+=I,L+=" "+P,_+L}),o.append("text").attr("id",function(f){return f.id+"-text"}).text(function(f){return f.task}).attr("font-size",i.fontSize).attr("x",function(f){let _=E(f.startTime),P=E(f.renderEndTime||f.endTime);f.milestone&&(_+=.5*(E(f.endTime)-E(f.startTime))-.5*c),f.milestone&&(P=_+c);const I=this.getBBox().width;return I>P-_?P+I+1.5*i.leftPadding>m?_+w-5:P+w+5:(P-_)/2+_+w}).attr("y",function(f,_){return _=f.order,_*F+i.barHeight/2+(i.fontSize/2-2)+S}).attr("text-height",c).attr("class",function(f){const _=E(f.startTime);let P=E(f.endTime);f.milestone&&(P=_+c);const I=this.getBBox().width;let L="";f.classes.length>0&&(L=f.classes.join(" "));let A=0;for(const[mt,gt]of U.entries())f.type===gt&&(A=mt%i.numberSectionStyles);let N="";return f.active&&(f.crit?N="activeCritText"+A:N="activeText"+A),f.done?f.crit?N=N+" doneCritText"+A:N=N+" doneText"+A:f.crit&&(N=N+" critText"+A),f.milestone&&(N+=" milestoneText"),I>P-_?P+I+1.5*i.leftPadding>m?L+" taskTextOutsideLeft taskTextOutside"+A+" "+N:L+" taskTextOutsideRight taskTextOutside"+A+" "+N+" width-"+I:L+" taskText taskText"+A+" "+N+" width-"+I}),xt().securityLevel==="sandbox"){let f;f=Pt("#i"+e);const _=f.nodes()[0].contentDocument;o.filter(function(P){return R[P.id]!==void 0}).each(function(P){var I=_.querySelector("#"+P.id),L=_.querySelector("#"+P.id+"-text");const A=I.parentNode;var N=_.createElement("a");N.setAttribute("xlink:href",R[P.id]),N.setAttribute("target","_top"),A.appendChild(N),N.appendChild(I),N.appendChild(L)})}}function q(T,F,S,w,c,d,m,u){if(m.length===0&&u.length===0)return;let M,o;for(const{startTime:I,endTime:L}of d)(M===void 0||Io)&&(o=L);if(!M||!o)return;if(K(o).diff(K(M),"year")>5){Xt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const R=r.db.getDateFormat(),h=[];let f=null,_=K(M);for(;_.valueOf()<=o;)r.db.isInvalidDate(_,R,m,u)?f?f.end=_:f={start:_,end:_}:f&&(h.push(f),f=null),_=_.add(1,"d");z.append("g").selectAll("rect").data(h).enter().append("rect").attr("id",function(I){return"exclude-"+I.start.format("YYYY-MM-DD")}).attr("x",function(I){return E(I.start)+S}).attr("y",i.gridLineStartPadding).attr("width",function(I){const L=I.end.add(1,"day");return E(L)-E(I.start)}).attr("height",c-F-i.gridLineStartPadding).attr("transform-origin",function(I,L){return(E(I.start)+S+.5*(E(I.end)-E(I.start))).toString()+"px "+(L*T+.5*c).toString()+"px"}).attr("class","exclude-range")}function Z(T,F,S,w){let c=Kn(E).tickSize(-w+F+i.gridLineStartPadding).tickFormat(Qt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));const m=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(m!==null){const u=m[1],M=m[2],o=r.db.getWeekday()||i.weekday;switch(M){case"millisecond":c.ticks(Dt.every(u));break;case"second":c.ticks(dt.every(u));break;case"minute":c.ticks(At.every(u));break;case"hour":c.ticks(It.every(u));break;case"day":c.ticks(yt.every(u));break;case"week":c.ticks(ze[o].every(u));break;case"month":c.ticks(Lt.every(u));break}}if(z.append("g").attr("class","grid").attr("transform","translate("+T+", "+(w-50)+")").call(c).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let u=Jn(E).tickSize(-w+F+i.gridLineStartPadding).tickFormat(Qt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(m!==null){const M=m[1],o=m[2],R=r.db.getWeekday()||i.weekday;switch(o){case"millisecond":u.ticks(Dt.every(M));break;case"second":u.ticks(dt.every(M));break;case"minute":u.ticks(At.every(M));break;case"hour":u.ticks(It.every(M));break;case"day":u.ticks(yt.every(M));break;case"week":u.ticks(ze[R].every(M));break;case"month":u.ticks(Lt.every(M));break}}z.append("g").attr("class","grid").attr("transform","translate("+T+", "+F+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function $(T,F){let S=0;const w=Object.keys(v).map(c=>[c,v[c]]);z.append("g").selectAll("text").data(w).enter().append(function(c){const d=c[0].split(Wn.lineBreakRegex),m=-(d.length-1)/2,u=C.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",m+"em");for(const[M,o]of d.entries()){const R=C.createElementNS("http://www.w3.org/2000/svg","tspan");R.setAttribute("alignment-baseline","central"),R.setAttribute("x","10"),M>0&&R.setAttribute("dy","1em"),R.textContent=o,u.appendChild(R)}return u}).attr("x",10).attr("y",function(c,d){if(d>0)for(let m=0;m` + .mermaid-main-font { + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); + } + + .exclude-range { + fill: ${t.excludeBkgColor}; + } + + .section { + stroke: none; + opacity: 0.2; + } + + .section0 { + fill: ${t.sectionBkgColor}; + } + + .section2 { + fill: ${t.sectionBkgColor2}; + } + + .section1, + .section3 { + fill: ${t.altSectionBkgColor}; + opacity: 0.2; + } + + .sectionTitle0 { + fill: ${t.titleColor}; + } + + .sectionTitle1 { + fill: ${t.titleColor}; + } + + .sectionTitle2 { + fill: ${t.titleColor}; + } + + .sectionTitle3 { + fill: ${t.titleColor}; + } + + .sectionTitle { + text-anchor: start; + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); + } + + + /* Grid and axis */ + + .grid .tick { + stroke: ${t.gridColor}; + opacity: 0.8; + shape-rendering: crispEdges; + } + + .grid .tick text { + font-family: ${t.fontFamily}; + fill: ${t.textColor}; + } + + .grid path { + stroke-width: 0; + } + + + /* Today line */ + + .today { + fill: none; + stroke: ${t.todayLineColor}; + stroke-width: 2px; + } + + + /* Task styling */ + + /* Default task */ + + .task { + stroke-width: 2; + } + + .taskText { + text-anchor: middle; + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); + } + + .taskTextOutsideRight { + fill: ${t.taskTextDarkColor}; + text-anchor: start; + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); + } + + .taskTextOutsideLeft { + fill: ${t.taskTextDarkColor}; + text-anchor: end; + } + + + /* Special case clickable */ + + .task.clickable { + cursor: pointer; + } + + .taskText.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + .taskTextOutsideLeft.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + .taskTextOutsideRight.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + + /* Specific task settings for the sections*/ + + .taskText0, + .taskText1, + .taskText2, + .taskText3 { + fill: ${t.taskTextColor}; + } + + .task0, + .task1, + .task2, + .task3 { + fill: ${t.taskBkgColor}; + stroke: ${t.taskBorderColor}; + } + + .taskTextOutside0, + .taskTextOutside2 + { + fill: ${t.taskTextOutsideColor}; + } + + .taskTextOutside1, + .taskTextOutside3 { + fill: ${t.taskTextOutsideColor}; + } + + + /* Active task */ + + .active0, + .active1, + .active2, + .active3 { + fill: ${t.activeTaskBkgColor}; + stroke: ${t.activeTaskBorderColor}; + } + + .activeText0, + .activeText1, + .activeText2, + .activeText3 { + fill: ${t.taskTextDarkColor} !important; + } + + + /* Completed task */ + + .done0, + .done1, + .done2, + .done3 { + stroke: ${t.doneTaskBorderColor}; + fill: ${t.doneTaskBkgColor}; + stroke-width: 2; + } + + .doneText0, + .doneText1, + .doneText2, + .doneText3 { + fill: ${t.taskTextDarkColor} !important; + } + + + /* Tasks on the critical line */ + + .crit0, + .crit1, + .crit2, + .crit3 { + stroke: ${t.critBorderColor}; + fill: ${t.critBkgColor}; + stroke-width: 2; + } + + .activeCrit0, + .activeCrit1, + .activeCrit2, + .activeCrit3 { + stroke: ${t.critBorderColor}; + fill: ${t.activeTaskBkgColor}; + stroke-width: 2; + } + + .doneCrit0, + .doneCrit1, + .doneCrit2, + .doneCrit3 { + stroke: ${t.critBorderColor}; + fill: ${t.doneTaskBkgColor}; + stroke-width: 2; + cursor: pointer; + shape-rendering: crispEdges; + } + + .milestone { + transform: rotate(45deg) scale(0.8,0.8); + } + + .milestoneText { + font-style: italic; + } + .doneCritText0, + .doneCritText1, + .doneCritText2, + .doneCritText3 { + fill: ${t.taskTextDarkColor} !important; + } + + .activeCritText0, + .activeCritText1, + .activeCritText2, + .activeCritText3 { + fill: ${t.taskTextDarkColor} !important; + } + + .titleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.titleColor||t.textColor}; + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); + } +`,ds=hs,Js={parser:Mi,db:os,renderer:fs,styles:ds};export{Js as diagram}; diff --git a/assets/gitGraphDiagram-b9d81de9-ZLsHtwEj.js b/assets/gitGraphDiagram-b9d81de9-ZLsHtwEj.js new file mode 100644 index 00000000000..d28b7462388 --- /dev/null +++ b/assets/gitGraphDiagram-b9d81de9-ZLsHtwEj.js @@ -0,0 +1,70 @@ +import{c as O,s as vt,g as Ct,a as Ot,b as Pt,o as At,p as St,l as H,j as D,q as It,h as Gt,u as Nt,r as Ht,t as Bt}from"./index.demo-_07sssxB.js";import"./owner-4YVbz2PN.js";import"./index-qegmBwH1.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";var mt=function(){var r=function(S,o,u,d){for(u=u||{},d=S.length;d--;u[S[d]]=o);return u},n=[1,3],l=[1,6],h=[1,4],a=[1,5],c=[2,5],f=[1,12],m=[5,7,13,19,21,23,24,26,28,31,37,40,47],y=[7,13,19,21,23,24,26,28,31,37,40],x=[7,12,13,19,21,23,24,26,28,31,37,40],s=[7,13,47],_=[1,42],E=[1,41],b=[7,13,29,32,35,38,47],p=[1,55],k=[1,56],g=[1,57],T=[7,13,32,35,42,47],z={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(o,u,d,i,w,t,X){var e=t.length-1;switch(w){case 2:return t[e];case 3:return t[e-1];case 4:return i.setDirection(t[e-3]),t[e-1];case 6:i.setOptions(t[e-1]),this.$=t[e];break;case 7:t[e-1]+=t[e],this.$=t[e-1];break;case 9:this.$=[];break;case 10:t[e-1].push(t[e]),this.$=t[e-1];break;case 11:this.$=t[e-1];break;case 16:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 17:case 18:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 19:i.addSection(t[e].substr(8)),this.$=t[e].substr(8);break;case 21:i.checkout(t[e]);break;case 22:i.branch(t[e]);break;case 23:i.branch(t[e-2],t[e]);break;case 24:i.cherryPick(t[e],"",void 0);break;case 25:i.cherryPick(t[e-2],"",void 0,t[e]);break;case 26:i.cherryPick(t[e-2],"",t[e]);break;case 27:i.cherryPick(t[e-4],"",t[e],t[e-2]);break;case 28:i.cherryPick(t[e-4],"",t[e-2],t[e]);break;case 29:i.cherryPick(t[e],"",t[e-2]);break;case 30:i.cherryPick(t[e],"","");break;case 31:i.cherryPick(t[e-2],"","");break;case 32:i.cherryPick(t[e-4],"","",t[e-2]);break;case 33:i.cherryPick(t[e-4],"","",t[e]);break;case 34:i.cherryPick(t[e-2],"",t[e-4],t[e]);break;case 35:i.cherryPick(t[e-2],"","",t[e]);break;case 36:i.merge(t[e],"","","");break;case 37:i.merge(t[e-2],t[e],"","");break;case 38:i.merge(t[e-2],"",t[e],"");break;case 39:i.merge(t[e-2],"","",t[e]);break;case 40:i.merge(t[e-4],t[e],"",t[e-2]);break;case 41:i.merge(t[e-4],"",t[e],t[e-2]);break;case 42:i.merge(t[e-4],"",t[e-2],t[e]);break;case 43:i.merge(t[e-4],t[e-2],t[e],"");break;case 44:i.merge(t[e-4],t[e-2],"",t[e]);break;case 45:i.merge(t[e-4],t[e],t[e-2],"");break;case 46:i.merge(t[e-6],t[e-4],t[e-2],t[e]);break;case 47:i.merge(t[e-6],t[e],t[e-4],t[e-2]);break;case 48:i.merge(t[e-6],t[e-4],t[e],t[e-2]);break;case 49:i.merge(t[e-6],t[e-2],t[e-4],t[e]);break;case 50:i.merge(t[e-6],t[e],t[e-2],t[e-4]);break;case 51:i.merge(t[e-6],t[e-2],t[e],t[e-4]);break;case 52:i.commit(t[e]);break;case 53:i.commit("","",i.commitType.NORMAL,t[e]);break;case 54:i.commit("","",t[e],"");break;case 55:i.commit("","",t[e],t[e-2]);break;case 56:i.commit("","",t[e-2],t[e]);break;case 57:i.commit("",t[e],i.commitType.NORMAL,"");break;case 58:i.commit("",t[e-2],i.commitType.NORMAL,t[e]);break;case 59:i.commit("",t[e],i.commitType.NORMAL,t[e-2]);break;case 60:i.commit("",t[e-2],t[e],"");break;case 61:i.commit("",t[e],t[e-2],"");break;case 62:i.commit("",t[e-4],t[e-2],t[e]);break;case 63:i.commit("",t[e-4],t[e],t[e-2]);break;case 64:i.commit("",t[e-2],t[e-4],t[e]);break;case 65:i.commit("",t[e],t[e-4],t[e-2]);break;case 66:i.commit("",t[e],t[e-2],t[e-4]);break;case 67:i.commit("",t[e-2],t[e],t[e-4]);break;case 68:i.commit(t[e],"",i.commitType.NORMAL,"");break;case 69:i.commit(t[e],"",i.commitType.NORMAL,t[e-2]);break;case 70:i.commit(t[e-2],"",i.commitType.NORMAL,t[e]);break;case 71:i.commit(t[e-2],"",t[e],"");break;case 72:i.commit(t[e],"",t[e-2],"");break;case 73:i.commit(t[e],t[e-2],i.commitType.NORMAL,"");break;case 74:i.commit(t[e-2],t[e],i.commitType.NORMAL,"");break;case 75:i.commit(t[e-4],"",t[e-2],t[e]);break;case 76:i.commit(t[e-4],"",t[e],t[e-2]);break;case 77:i.commit(t[e-2],"",t[e-4],t[e]);break;case 78:i.commit(t[e],"",t[e-4],t[e-2]);break;case 79:i.commit(t[e],"",t[e-2],t[e-4]);break;case 80:i.commit(t[e-2],"",t[e],t[e-4]);break;case 81:i.commit(t[e-4],t[e],t[e-2],"");break;case 82:i.commit(t[e-4],t[e-2],t[e],"");break;case 83:i.commit(t[e-2],t[e],t[e-4],"");break;case 84:i.commit(t[e],t[e-2],t[e-4],"");break;case 85:i.commit(t[e],t[e-4],t[e-2],"");break;case 86:i.commit(t[e-2],t[e-4],t[e],"");break;case 87:i.commit(t[e-4],t[e],i.commitType.NORMAL,t[e-2]);break;case 88:i.commit(t[e-4],t[e-2],i.commitType.NORMAL,t[e]);break;case 89:i.commit(t[e-2],t[e],i.commitType.NORMAL,t[e-4]);break;case 90:i.commit(t[e],t[e-2],i.commitType.NORMAL,t[e-4]);break;case 91:i.commit(t[e],t[e-4],i.commitType.NORMAL,t[e-2]);break;case 92:i.commit(t[e-2],t[e-4],i.commitType.NORMAL,t[e]);break;case 93:i.commit(t[e-6],t[e-4],t[e-2],t[e]);break;case 94:i.commit(t[e-6],t[e-4],t[e],t[e-2]);break;case 95:i.commit(t[e-6],t[e-2],t[e-4],t[e]);break;case 96:i.commit(t[e-6],t[e],t[e-4],t[e-2]);break;case 97:i.commit(t[e-6],t[e-2],t[e],t[e-4]);break;case 98:i.commit(t[e-6],t[e],t[e-2],t[e-4]);break;case 99:i.commit(t[e-4],t[e-6],t[e-2],t[e]);break;case 100:i.commit(t[e-4],t[e-6],t[e],t[e-2]);break;case 101:i.commit(t[e-2],t[e-6],t[e-4],t[e]);break;case 102:i.commit(t[e],t[e-6],t[e-4],t[e-2]);break;case 103:i.commit(t[e-2],t[e-6],t[e],t[e-4]);break;case 104:i.commit(t[e],t[e-6],t[e-2],t[e-4]);break;case 105:i.commit(t[e],t[e-4],t[e-2],t[e-6]);break;case 106:i.commit(t[e-2],t[e-4],t[e],t[e-6]);break;case 107:i.commit(t[e],t[e-2],t[e-4],t[e-6]);break;case 108:i.commit(t[e-2],t[e],t[e-4],t[e-6]);break;case 109:i.commit(t[e-4],t[e-2],t[e],t[e-6]);break;case 110:i.commit(t[e-4],t[e],t[e-2],t[e-6]);break;case 111:i.commit(t[e-2],t[e-4],t[e-6],t[e]);break;case 112:i.commit(t[e],t[e-4],t[e-6],t[e-2]);break;case 113:i.commit(t[e-2],t[e],t[e-6],t[e-4]);break;case 114:i.commit(t[e],t[e-2],t[e-6],t[e-4]);break;case 115:i.commit(t[e-4],t[e-2],t[e-6],t[e]);break;case 116:i.commit(t[e-4],t[e],t[e-6],t[e-2]);break;case 117:this.$="";break;case 118:this.$=t[e];break;case 119:this.$=i.commitType.NORMAL;break;case 120:this.$=i.commitType.REVERSE;break;case 121:this.$=i.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:l,13:h,47:a},{1:[3]},{3:7,4:2,5:n,7:l,13:h,47:a},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:f},r(m,[2,124]),r(m,[2,125]),r(m,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:f},{8:[1,15]},r(y,[2,9],{11:16,12:[1,17]}),r(x,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:f},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(x,[2,7]),{1:[2,3]},{7:[1,36]},r(y,[2,10]),{4:37,7:l,13:h,47:a},r(y,[2,12]),r(s,[2,13]),r(s,[2,14]),r(s,[2,15]),{20:[1,38]},{22:[1,39]},r(s,[2,18]),r(s,[2,19]),r(s,[2,20]),{27:40,33:_,46:E},r(s,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:_,46:E},{32:[1,50],35:[1,51]},{27:52,33:_,46:E},{1:[2,4]},r(y,[2,11]),r(s,[2,16]),r(s,[2,17]),r(s,[2,21]),r(b,[2,122]),r(b,[2,123]),r(s,[2,52]),{33:[1,53]},{39:54,43:p,44:k,45:g},{33:[1,58]},{33:[1,59]},r(s,[2,118]),r(s,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(s,[2,22],{29:[1,66]}),r(s,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(s,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(T,[2,119]),r(T,[2,120]),r(T,[2,121]),r(s,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(s,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:p,44:k,45:g},{33:[1,81]},r(s,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:p,44:k,45:g},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:p,44:k,45:g},{33:[1,95]},{33:[1,96]},{39:97,43:p,44:k,45:g},{33:[1,98]},r(s,[2,37],{35:[1,100],38:[1,99]}),r(s,[2,38],{32:[1,102],35:[1,101]}),r(s,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(s,[2,23]),r(s,[2,55],{32:[1,110],42:[1,111]}),r(s,[2,59],{38:[1,112],42:[1,113]}),r(s,[2,69],{32:[1,115],38:[1,114]}),r(s,[2,56],{32:[1,116],42:[1,117]}),r(s,[2,61],{35:[1,118],42:[1,119]}),r(s,[2,72],{32:[1,121],35:[1,120]}),r(s,[2,58],{38:[1,122],42:[1,123]}),r(s,[2,60],{35:[1,124],42:[1,125]}),r(s,[2,73],{35:[1,127],38:[1,126]}),r(s,[2,70],{32:[1,129],38:[1,128]}),r(s,[2,71],{32:[1,131],35:[1,130]}),r(s,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:p,44:k,45:g},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:p,44:k,45:g},r(s,[2,25],{35:[1,140]}),r(s,[2,26],{34:[1,141]}),r(s,[2,31],{34:[1,142]}),r(s,[2,29],{34:[1,143]}),r(s,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:p,44:k,45:g},{33:[1,148]},{39:149,43:p,44:k,45:g},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:p,44:k,45:g},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:p,44:k,45:g},{33:[1,162]},{39:163,43:p,44:k,45:g},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:p,44:k,45:g},{33:[1,168]},r(s,[2,43],{35:[1,169]}),r(s,[2,44],{38:[1,170]}),r(s,[2,42],{32:[1,171]}),r(s,[2,45],{35:[1,172]}),r(s,[2,40],{38:[1,173]}),r(s,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(s,[2,66],{42:[1,181]}),r(s,[2,79],{32:[1,182]}),r(s,[2,67],{42:[1,183]}),r(s,[2,90],{38:[1,184]}),r(s,[2,80],{32:[1,185]}),r(s,[2,89],{38:[1,186]}),r(s,[2,65],{42:[1,187]}),r(s,[2,78],{32:[1,188]}),r(s,[2,64],{42:[1,189]}),r(s,[2,84],{35:[1,190]}),r(s,[2,77],{32:[1,191]}),r(s,[2,83],{35:[1,192]}),r(s,[2,63],{42:[1,193]}),r(s,[2,91],{38:[1,194]}),r(s,[2,62],{42:[1,195]}),r(s,[2,85],{35:[1,196]}),r(s,[2,86],{35:[1,197]}),r(s,[2,92],{38:[1,198]}),r(s,[2,76],{32:[1,199]}),r(s,[2,87],{38:[1,200]}),r(s,[2,75],{32:[1,201]}),r(s,[2,81],{35:[1,202]}),r(s,[2,82],{35:[1,203]}),r(s,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:p,44:k,45:g},{33:[1,207]},{33:[1,208]},{39:209,43:p,44:k,45:g},{33:[1,210]},r(s,[2,27]),r(s,[2,32]),r(s,[2,28]),r(s,[2,33]),r(s,[2,34]),r(s,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:p,44:k,45:g},{33:[1,215]},{39:216,43:p,44:k,45:g},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:p,44:k,45:g},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:p,44:k,45:g},{33:[1,229]},{39:230,43:p,44:k,45:g},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:p,44:k,45:g},r(s,[2,46]),r(s,[2,48]),r(s,[2,47]),r(s,[2,49]),r(s,[2,51]),r(s,[2,50]),r(s,[2,107]),r(s,[2,108]),r(s,[2,105]),r(s,[2,106]),r(s,[2,110]),r(s,[2,109]),r(s,[2,114]),r(s,[2,113]),r(s,[2,112]),r(s,[2,111]),r(s,[2,116]),r(s,[2,115]),r(s,[2,104]),r(s,[2,103]),r(s,[2,102]),r(s,[2,101]),r(s,[2,99]),r(s,[2,100]),r(s,[2,98]),r(s,[2,97]),r(s,[2,96]),r(s,[2,95]),r(s,[2,93]),r(s,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(o,u){if(u.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=u,d}},parse:function(o){var u=this,d=[0],i=[],w=[null],t=[],X=this.table,e="",rt=0,pt=0,wt=2,ft=1,Rt=t.slice.call(arguments,1),P=Object.create(this.lexer),F={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(F.yy[ct]=this.yy[ct]);P.setInput(o,F.yy),F.yy.lexer=P,F.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var ot=P.yylloc;t.push(ot);var Lt=P.options&&P.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var j;return j=i.pop()||P.lex()||ft,typeof j!="number"&&(j instanceof Array&&(i=j,j=i.pop()),j=u.symbols_[j]||j),j}for(var N,K,V,lt,J={},it,q,bt,st;;){if(K=d[d.length-1],this.defaultActions[K]?V=this.defaultActions[K]:((N===null||typeof N>"u")&&(N=Mt()),V=X[K]&&X[K][N]),typeof V>"u"||!V.length||!V[0]){var ht="";st=[];for(it in X[K])this.terminals_[it]&&it>wt&&st.push("'"+this.terminals_[it]+"'");P.showPosition?ht="Parse error on line "+(rt+1)+`: +`+P.showPosition()+` +Expecting `+st.join(", ")+", got '"+(this.terminals_[N]||N)+"'":ht="Parse error on line "+(rt+1)+": Unexpected "+(N==ft?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(ht,{text:P.match,token:this.terminals_[N]||N,line:P.yylineno,loc:ot,expected:st})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+N);switch(V[0]){case 1:d.push(N),w.push(P.yytext),t.push(P.yylloc),d.push(V[1]),N=null,pt=P.yyleng,e=P.yytext,rt=P.yylineno,ot=P.yylloc;break;case 2:if(q=this.productions_[V[1]][1],J.$=w[w.length-q],J._$={first_line:t[t.length-(q||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(q||1)].first_column,last_column:t[t.length-1].last_column},Lt&&(J._$.range=[t[t.length-(q||1)].range[0],t[t.length-1].range[1]]),lt=this.performAction.apply(J,[e,pt,rt,F.yy,V[1],w,t].concat(Rt)),typeof lt<"u")return lt;q&&(d=d.slice(0,-1*q*2),w=w.slice(0,-1*q),t=t.slice(0,-1*q)),d.push(this.productions_[V[1]][0]),w.push(J.$),t.push(J._$),bt=X[d[d.length-2]][d[d.length-1]],d.push(bt);break;case 3:return!0}}return!0}},v=function(){var S={EOF:1,parseError:function(u,d){if(this.yy.parser)this.yy.parser.parseError(u,d);else throw new Error(u)},setInput:function(o,u){return this.yy=u||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var u=o.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var u=o.length,d=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var w=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===i.length?this.yylloc.first_column:0)+i[i.length-d.length].length-d[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),u=new Array(o.length+1).join("-");return o+this.upcomingInput()+` +`+u+"^"},test_match:function(o,u){var d,i,w;if(this.options.backtrack_lexer&&(w={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(w.yylloc.range=this.yylloc.range.slice(0))),i=o[0].match(/(?:\r\n?|\n).*/g),i&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],d=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var t in w)this[t]=w[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,u,d,i;this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),t=0;tu[0].length)){if(u=d,i=t,this.options.backtrack_lexer){if(o=this.test_match(d,w[t]),o!==!1)return o;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(o=this.test_match(u,w[i]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var u=this.next();return u||this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){var u=this.conditionStack.length-1;return u>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},pushState:function(u){this.begin(u)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(u,d,i,w){switch(i){case 0:return this.begin("acc_title"),19;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),21;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 13;case 8:break;case 9:break;case 10:return 5;case 11:return 40;case 12:return 32;case 13:return 38;case 14:return 42;case 15:return 43;case 16:return 44;case 17:return 45;case 18:return 35;case 19:return 28;case 20:return 29;case 21:return 37;case 22:return 31;case 23:return 34;case 24:return 26;case 25:return 9;case 26:return 9;case 27:return 8;case 28:return"CARET";case 29:this.begin("options");break;case 30:this.popState();break;case 31:return 12;case 32:return 36;case 33:this.begin("string");break;case 34:this.popState();break;case 35:return 33;case 36:return 30;case 37:return 46;case 38:return 7}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:parent:)/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},options:{rules:[30,31],inclusive:!1},string:{rules:[34,35],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,36,37,38,39],inclusive:!0}}};return S}();z.lexer=v;function I(){this.yy={}}return I.prototype=z,z.Parser=I,new I}();mt.parser=mt;const Vt=mt;let at=O().gitGraph.mainBranchName,Dt=O().gitGraph.mainBranchOrder,C={},G=null,tt={};tt[at]={name:at,order:Dt};let M={};M[at]=G;let A=at,kt="LR",W=0;function ut(){return Bt({length:7})}function zt(r,n){const l=Object.create(null);return r.reduce((h,a)=>{const c=n(a);return l[c]||(l[c]=!0,h.push(a)),h},[])}const qt=function(r){kt=r};let xt={};const jt=function(r){H.debug("options str",r),r=r&&r.trim(),r=r||"{}";try{xt=JSON.parse(r)}catch(n){H.error("error while parsing gitGraph options",n.message)}},Yt=function(){return xt},Ft=function(r,n,l,h){H.debug("Entering commit:",r,n,l,h),n=D.sanitizeText(n,O()),r=D.sanitizeText(r,O()),h=D.sanitizeText(h,O());const a={id:n||W+"-"+ut(),message:r,seq:W++,type:l||Q.NORMAL,tag:h||"",parents:G==null?[]:[G.id],branch:A};G=a,C[a.id]=a,M[A]=a.id,H.debug("in pushCommit "+a.id)},Kt=function(r,n){if(r=D.sanitizeText(r,O()),M[r]===void 0)M[r]=G!=null?G.id:null,tt[r]={name:r,order:n?parseInt(n,10):null},yt(r),H.debug("in createBranch");else{let l=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+r+'")');throw l.hash={text:"branch "+r,token:"branch "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+r+'"']},l}},Ut=function(r,n,l,h){r=D.sanitizeText(r,O()),n=D.sanitizeText(n,O());const a=C[M[A]],c=C[M[r]];if(A===r){let m=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},m}else if(a===void 0||!a){let m=new Error('Incorrect usage of "merge". Current branch ('+A+")has no commits");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},m}else if(M[r]===void 0){let m=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+r]},m}else if(c===void 0||!c){let m=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},m}else if(a===c){let m=new Error('Incorrect usage of "merge". Both branches have same head');throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},m}else if(n&&C[n]!==void 0){let m=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom Id");throw m.hash={text:"merge "+r+n+l+h,token:"merge "+r+n+l+h,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+r+" "+n+"_UNIQUE "+l+" "+h]},m}const f={id:n||W+"-"+ut(),message:"merged branch "+r+" into "+A,seq:W++,parents:[G==null?null:G.id,M[r]],branch:A,type:Q.MERGE,customType:l,customId:!!n,tag:h||""};G=f,C[f.id]=f,M[A]=f.id,H.debug(M),H.debug("in mergeBranch")},Wt=function(r,n,l,h){if(H.debug("Entering cherryPick:",r,n,l),r=D.sanitizeText(r,O()),n=D.sanitizeText(n,O()),l=D.sanitizeText(l,O()),h=D.sanitizeText(h,O()),!r||C[r]===void 0){let f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},f}let a=C[r],c=a.branch;if(h&&!(Array.isArray(a.parents)&&a.parents.includes(h)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");if(a.type===Q.MERGE&&!h)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||C[n]===void 0){if(c===A){let y=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw y.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},y}const f=C[M[A]];if(f===void 0||!f){let y=new Error('Incorrect usage of "cherry-pick". Current branch ('+A+")has no commits");throw y.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},y}const m={id:W+"-"+ut(),message:"cherry-picked "+a+" into "+A,seq:W++,parents:[G==null?null:G.id,a.id],branch:A,type:Q.CHERRY_PICK,tag:l??`cherry-pick:${a.id}${a.type===Q.MERGE?`|parent:${h}`:""}`};G=m,C[m.id]=m,M[A]=m.id,H.debug(M),H.debug("in cherryPick")}},yt=function(r){if(r=D.sanitizeText(r,O()),M[r]===void 0){let n=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+r+'")');throw n.hash={text:"checkout "+r,token:"checkout "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+r+'"']},n}else{A=r;const n=M[A];G=C[n]}};function gt(r,n,l){const h=r.indexOf(n);h===-1?r.push(l):r.splice(h,1,l)}function _t(r){const n=r.reduce((a,c)=>a.seq>c.seq?a:c,r[0]);let l="";r.forEach(function(a){a===n?l+=" *":l+=" |"});const h=[l,n.id,n.seq];for(let a in M)M[a]===n.id&&h.push(a);if(H.debug(h.join(" ")),n.parents&&n.parents.length==2){const a=C[n.parents[0]];gt(r,n,a),r.push(C[n.parents[1]])}else{if(n.parents.length==0)return;{const a=C[n.parents];gt(r,n,a)}}r=zt(r,a=>a.id),_t(r)}const Jt=function(){H.debug(C);const r=Et()[0];_t([r])},Qt=function(){C={},G=null;let r=O().gitGraph.mainBranchName,n=O().gitGraph.mainBranchOrder;M={},M[r]=null,tt={},tt[r]={name:r,order:n},A=r,W=0,It()},Xt=function(){return Object.values(tt).map((n,l)=>n.order!==null?n:{...n,order:parseFloat(`0.${l}`,10)}).sort((n,l)=>n.order-l.order).map(({name:n})=>({name:n}))},Zt=function(){return M},$t=function(){return C},Et=function(){const r=Object.keys(C).map(function(n){return C[n]});return r.forEach(function(n){H.debug(n.id)}),r.sort((n,l)=>n.seq-l.seq),r},te=function(){return A},ee=function(){return kt},re=function(){return G},Q={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ie={getConfig:()=>O().gitGraph,setDirection:qt,setOptions:jt,getOptions:Yt,commit:Ft,branch:Kt,merge:Ut,cherryPick:Wt,checkout:yt,prettyPrint:Jt,clear:Qt,getBranchesAsObjArray:Xt,getBranches:Zt,getCommits:$t,getCommitsArray:Et,getCurrentBranch:te,getDirection:ee,getHead:re,setAccTitle:vt,getAccTitle:Ct,getAccDescription:Ot,setAccDescription:Pt,setDiagramTitle:At,getDiagramTitle:St,commitType:Q};let Z={};const B={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},U=8;let R={},Y={},nt=[],et=0,L="LR";const se=()=>{R={},Y={},Z={},et=0,nt=[],L="LR"},Tt=r=>{const n=document.createElementNS("http://www.w3.org/2000/svg","text");let l=[];typeof r=="string"?l=r.split(/\\n|\n|/gi):Array.isArray(r)?l=r:l=[];for(const h of l){const a=document.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),a.setAttribute("dy","1em"),a.setAttribute("x","0"),a.setAttribute("class","row"),a.textContent=h.trim(),n.appendChild(a)}return n},ae=r=>{let n="",l=0;return r.forEach(h=>{const a=L==="TB"?Y[h].y:Y[h].x;a>=l&&(n=h,l=a)}),n||void 0},dt=(r,n,l)=>{const h=O().gitGraph,a=r.append("g").attr("class","commit-bullets"),c=r.append("g").attr("class","commit-labels");let f=0;L==="TB"&&(f=30);const y=Object.keys(n).sort((E,b)=>n[E].seq-n[b].seq),x=h.parallelCommits,s=10,_=40;y.forEach(E=>{const b=n[E];if(x)if(b.parents.length){const T=ae(b.parents);f=L==="TB"?Y[T].y+_:Y[T].x+_}else f=0,L==="TB"&&(f=30);const p=f+s,k=L==="TB"?p:R[b.branch].pos,g=L==="TB"?R[b.branch].pos:p;if(l){let T,z=b.customType!==void 0&&b.customType!==""?b.customType:b.type;switch(z){case B.NORMAL:T="commit-normal";break;case B.REVERSE:T="commit-reverse";break;case B.HIGHLIGHT:T="commit-highlight";break;case B.MERGE:T="commit-merge";break;case B.CHERRY_PICK:T="commit-cherry-pick";break;default:T="commit-normal"}if(z===B.HIGHLIGHT){const v=a.append("rect");v.attr("x",g-10),v.attr("y",k-10),v.attr("height",20),v.attr("width",20),v.attr("class",`commit ${b.id} commit-highlight${R[b.branch].index%U} ${T}-outer`),a.append("rect").attr("x",g-6).attr("y",k-6).attr("height",12).attr("width",12).attr("class",`commit ${b.id} commit${R[b.branch].index%U} ${T}-inner`)}else if(z===B.CHERRY_PICK)a.append("circle").attr("cx",g).attr("cy",k).attr("r",10).attr("class",`commit ${b.id} ${T}`),a.append("circle").attr("cx",g-3).attr("cy",k+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${b.id} ${T}`),a.append("circle").attr("cx",g+3).attr("cy",k+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${b.id} ${T}`),a.append("line").attr("x1",g+3).attr("y1",k+1).attr("x2",g).attr("y2",k-5).attr("stroke","#fff").attr("class",`commit ${b.id} ${T}`),a.append("line").attr("x1",g-3).attr("y1",k+1).attr("x2",g).attr("y2",k-5).attr("stroke","#fff").attr("class",`commit ${b.id} ${T}`);else{const v=a.append("circle");if(v.attr("cx",g),v.attr("cy",k),v.attr("r",b.type===B.MERGE?9:10),v.attr("class",`commit ${b.id} commit${R[b.branch].index%U}`),z===B.MERGE){const I=a.append("circle");I.attr("cx",g),I.attr("cy",k),I.attr("r",6),I.attr("class",`commit ${T} ${b.id} commit${R[b.branch].index%U}`)}z===B.REVERSE&&a.append("path").attr("d",`M ${g-5},${k-5}L${g+5},${k+5}M${g-5},${k+5}L${g+5},${k-5}`).attr("class",`commit ${T} ${b.id} commit${R[b.branch].index%U}`)}}if(L==="TB"?Y[b.id]={x:g,y:p}:Y[b.id]={x:p,y:k},l){if(b.type!==B.CHERRY_PICK&&(b.customId&&b.type===B.MERGE||b.type!==B.MERGE)&&h.showCommitLabel){const v=c.append("g"),I=v.insert("rect").attr("class","commit-label-bkg"),S=v.append("text").attr("x",f).attr("y",k+25).attr("class","commit-label").text(b.id);let o=S.node().getBBox();if(I.attr("x",p-o.width/2-2).attr("y",k+13.5).attr("width",o.width+2*2).attr("height",o.height+2*2),L==="TB"&&(I.attr("x",g-(o.width+4*4+5)).attr("y",k-12),S.attr("x",g-(o.width+4*4)).attr("y",k+o.height-12)),L!=="TB"&&S.attr("x",p-o.width/2),h.rotateCommitLabel)if(L==="TB")S.attr("transform","rotate(-45, "+g+", "+k+")"),I.attr("transform","rotate(-45, "+g+", "+k+")");else{let u=-7.5-(o.width+10)/25*9.5,d=10+o.width/25*8.5;v.attr("transform","translate("+u+", "+d+") rotate(-45, "+f+", "+k+")")}}if(b.tag){const v=c.insert("polygon"),I=c.append("circle"),S=c.append("text").attr("y",k-16).attr("class","tag-label").text(b.tag);let o=S.node().getBBox();S.attr("x",p-o.width/2);const u=o.height/2,d=k-19.2;v.attr("class","tag-label-bkg").attr("points",` + ${f-o.width/2-4/2},${d+2} + ${f-o.width/2-4/2},${d-2} + ${p-o.width/2-4},${d-u-2} + ${p+o.width/2+4},${d-u-2} + ${p+o.width/2+4},${d+u+2} + ${p-o.width/2-4},${d+u+2}`),I.attr("cx",f-o.width/2+4/2).attr("cy",d).attr("r",1.5).attr("class","tag-hole"),L==="TB"&&(v.attr("class","tag-label-bkg").attr("points",` + ${g},${f+2} + ${g},${f-2} + ${g+s},${f-u-2} + ${g+s+o.width+4},${f-u-2} + ${g+s+o.width+4},${f+u+2} + ${g+s},${f+u+2}`).attr("transform","translate(12,12) rotate(45, "+g+","+f+")"),I.attr("cx",g+4/2).attr("cy",f).attr("transform","translate(12,12) rotate(45, "+g+","+f+")"),S.attr("x",g+5).attr("y",f+3).attr("transform","translate(14,14) rotate(45, "+g+","+f+")"))}}f+=_+s,f>et&&(et=f)})},ne=(r,n,l,h,a)=>{const f=(L==="TB"?l.xx.branch===f,y=x=>x.seq>r.seq&&x.seqy(x)&&m(x))},$=(r,n,l=0)=>{const h=r+Math.abs(r-n)/2;if(l>5)return h;if(nt.every(f=>Math.abs(f-h)>=10))return nt.push(h),h;const c=Math.abs(r-n);return $(r,n-c/5,l+1)},ce=(r,n,l,h)=>{const a=Y[n.id],c=Y[l.id],f=ne(n,l,a,c,h);let m="",y="",x=0,s=0,_=R[l.branch].index,E;if(f){m="A 10 10, 0, 0, 0,",y="A 10 10, 0, 0, 1,",x=10,s=10;const b=a.yc.x&&(m="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",x=20,s=20,_=R[n.branch].index,E=`M ${a.x} ${a.y} L ${a.x} ${c.y-x} ${y} ${a.x-s} ${c.y} L ${c.x} ${c.y}`),a.x===c.x&&(_=R[n.branch].index,E=`M ${a.x} ${a.y} L ${a.x+x} ${a.y} ${m} ${a.x+s} ${c.y+x} L ${c.x} ${c.y}`)):(a.yc.y&&(m="A 20 20, 0, 0, 0,",x=20,s=20,_=R[n.branch].index,E=`M ${a.x} ${a.y} L ${c.x-x} ${a.y} ${m} ${c.x} ${a.y-s} L ${c.x} ${c.y}`),a.y===c.y&&(_=R[n.branch].index,E=`M ${a.x} ${a.y} L ${a.x} ${c.y-x} ${m} ${a.x+s} ${c.y} L ${c.x} ${c.y}`));r.append("path").attr("d",E).attr("class","arrow arrow"+_%U)},oe=(r,n)=>{const l=r.append("g").attr("class","commit-arrows");Object.keys(n).forEach(h=>{const a=n[h];a.parents&&a.parents.length>0&&a.parents.forEach(c=>{ce(l,n[c],a,n)})})},le=(r,n)=>{const l=O().gitGraph,h=r.append("g");n.forEach((a,c)=>{const f=c%U,m=R[a.name].pos,y=h.append("line");y.attr("x1",0),y.attr("y1",m),y.attr("x2",et),y.attr("y2",m),y.attr("class","branch branch"+f),L==="TB"&&(y.attr("y1",30),y.attr("x1",m),y.attr("y2",et),y.attr("x2",m)),nt.push(m);let x=a.name;const s=Tt(x),_=h.insert("rect"),b=h.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+f);b.node().appendChild(s);let p=s.getBBox();_.attr("class","branchLabelBkg label"+f).attr("rx",4).attr("ry",4).attr("x",-p.width-4-(l.rotateCommitLabel===!0?30:0)).attr("y",-p.height/2+8).attr("width",p.width+18).attr("height",p.height+4),b.attr("transform","translate("+(-p.width-14-(l.rotateCommitLabel===!0?30:0))+", "+(m-p.height/2-1)+")"),L==="TB"&&(_.attr("x",m-p.width/2-10).attr("y",0),b.attr("transform","translate("+(m-p.width/2-5)+", 0)")),L!=="TB"&&_.attr("transform","translate(-19, "+(m-p.height/2)+")")})},he=function(r,n,l,h){se();const a=O(),c=a.gitGraph;H.debug("in gitgraph renderer",r+` +`,"id:",n,l),Z=h.db.getCommits();const f=h.db.getBranchesAsObjArray();L=h.db.getDirection();const m=Gt(`[id="${n}"]`);let y=0;f.forEach((x,s)=>{const _=Tt(x.name),E=m.append("g"),b=E.insert("g").attr("class","branchLabel"),p=b.insert("g").attr("class","label branch-label");p.node().appendChild(_);let k=_.getBBox();R[x.name]={pos:y,index:s},y+=50+(c.rotateCommitLabel?40:0)+(L==="TB"?k.width/2:0),p.remove(),b.remove(),E.remove()}),dt(m,Z,!1),c.showBranches&&le(m,f),oe(m,Z),dt(m,Z,!0),Nt.insertTitle(m,"gitTitleText",c.titleTopMargin,h.db.getDiagramTitle()),Ht(void 0,m,c.diagramPadding,c.useMaxWidth??a.useMaxWidth)},me={draw:he},ue=r=>` + .commit-id, + .commit-msg, + .branch-label { + fill: lightgrey; + color: lightgrey; + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + } + ${[0,1,2,3,4,5,6,7].map(n=>` + .branch-label${n} { fill: ${r["gitBranchLabel"+n]}; } + .commit${n} { stroke: ${r["git"+n]}; fill: ${r["git"+n]}; } + .commit-highlight${n} { stroke: ${r["gitInv"+n]}; fill: ${r["gitInv"+n]}; } + .label${n} { fill: ${r["git"+n]}; } + .arrow${n} { stroke: ${r["git"+n]}; } + `).join(` +`)} + + .branch { + stroke-width: 1; + stroke: ${r.lineColor}; + stroke-dasharray: 2; + } + .commit-label { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelColor};} + .commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelBackground}; opacity: 0.5; } + .tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};} + .tag-label-bkg { fill: ${r.tagLabelBackground}; stroke: ${r.tagLabelBorder}; } + .tag-hole { fill: ${r.textColor}; } + + .commit-merge { + stroke: ${r.primaryColor}; + fill: ${r.primaryColor}; + } + .commit-reverse { + stroke: ${r.primaryColor}; + fill: ${r.primaryColor}; + stroke-width: 3; + } + .commit-highlight-outer { + } + .commit-highlight-inner { + stroke: ${r.primaryColor}; + fill: ${r.primaryColor}; + } + + .arrow { stroke-width: 8; stroke-linecap: round; fill: none} + .gitTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${r.textColor}; + } +`,pe=ue,We={parser:Vt,db:ie,renderer:me,styles:pe};export{We as diagram}; diff --git a/assets/graph-4EnB4jqL.js b/assets/graph-4EnB4jqL.js new file mode 100644 index 00000000000..c56862cfe23 --- /dev/null +++ b/assets/graph-4EnB4jqL.js @@ -0,0 +1 @@ +import{aH as I,aI as qe,aJ as O,ay as A,ax as Te,aK as Xe,aL as Je,aM as Qe,aN as Ee,aO as G,av as X,aP as We,aQ as Oe,aR as ze,aS as C,aT as R,aE as we,ap as ve,aU as Ve,aV as Z,aW as ke,aX as en,aY as P,aD as nn,aZ as rn,aw as tn,a_ as re,a$ as sn,b0 as an,aC as un,aB as me,az as fn,b1 as B,at as on,b2 as dn,aF as M,aa as te,b3 as ie}from"./index.demo-_07sssxB.js";var hn="[object Symbol]";function J(e){return typeof e=="symbol"||I(e)&&qe(e)==hn}function $e(e,n){for(var r=-1,t=e==null?0:e.length,i=Array(t);++r-1}function T(e){return Te(e)?Xe(e):Je(e)}var yn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tn=/^\w*$/;function Q(e,n){if(A(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||J(e)?!0:Tn.test(e)||!yn.test(e)||n!=null&&e in Object(n)}var En=500;function On(e){var n=Qe(e,function(t){return r.size===En&&r.clear(),t}),r=n.cache;return n}var wn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vn=/\\(\\)?/g,mn=On(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(wn,function(r,t,i,s){n.push(i?s.replace(vn,"$1"):t||r)}),n});function $n(e){return e==null?"":Le(e)}function Ie(e,n){return A(e)?e:Q(e,n)?[e]:mn($n(e))}var Ln=1/0;function U(e){if(typeof e=="string"||J(e))return e;var n=e+"";return n=="0"&&1/e==-Ln?"-0":n}function Ce(e,n){n=Ie(n,e);for(var r=0,t=n.length;e!=null&&r0&&r(u)?n>1?Se(u,n-1,r,t,i):W(i,u):t||(i[i.length]=u)}return i}function Cn(e,n,r,t){var i=-1,s=e==null?0:e.length;for(t&&s&&(r=e[++i]);++iu))return!1;var g=s.get(e),l=s.get(n);if(g&&l)return g==n&&l==e;var o=-1,d=!0,y=r&Qr?new S:void 0;for(s.set(e,n),s.set(n,e);++o=Zt){var g=n?null:Yt(e);if(g)return V(g);a=!1,i=Ue,f=new S}else f=n?[]:u;e:for(;++t1?i.setNode(s,r):i.setNode(s)}),this}setNode(n,r){return E(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=r),this):(this._nodes[n]=arguments.length>1?r:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=m,this._children[n]={},this._children[m][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)}node(n){return this._nodes[n]}hasNode(n){return E(this._nodes,n)}removeNode(n){var r=this;if(E(this._nodes,n)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],v(this.children(n),function(i){r.setParent(i)}),delete this._children[n]),v(T(this._in[n]),t),delete this._in[n],delete this._preds[n],v(T(this._out[n]),t),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this}setParent(n,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if($(r))r=m;else{r+="";for(var t=r;!$(t);t=this.parent(t))if(t===n)throw new Error("Setting "+r+" as parent of "+n+" would create a cycle");this.setNode(r)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=r,this._children[r][n]=!0,this}_removeFromParentsChildList(n){delete this._children[this._parent[n]][n]}parent(n){if(this._isCompound){var r=this._parent[n];if(r!==m)return r}}children(n){if($(n)&&(n=m),this._isCompound){var r=this._children[n];if(r)return T(r)}else{if(n===m)return this.nodes();if(this.hasNode(n))return[]}}predecessors(n){var r=this._preds[n];if(r)return T(r)}successors(n){var r=this._sucs[n];if(r)return T(r)}neighbors(n){var r=this.predecessors(n);if(r)return Xt(r,this.successors(n))}isLeaf(n){var r;return this.isDirected()?r=this.successors(n):r=this.neighbors(n),r.length===0}filterNodes(n){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;v(this._nodes,function(a,u){n(u)&&r.setNode(u,a)}),v(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,t.edge(a))});var i={};function s(a){var u=t.parent(a);return u===void 0||r.hasNode(u)?(i[a]=u,u):u in i?i[u]:s(u)}return this._isCompound&&v(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(n){return te(n)||(n=M(n)),this._defaultEdgeLabelFn=n,this}edgeCount(){return this._edgeCount}edges(){return H(this._edgeObjs)}setPath(n,r){var t=this,i=arguments;return Kt(n,function(s,a){return i.length>1?t.setEdge(s,a,r):t.setEdge(s,a),a}),this}setEdge(){var n,r,t,i,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(n=a.v,r=a.w,t=a.name,arguments.length===2&&(i=arguments[1],s=!0)):(n=a,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),n=""+n,r=""+r,$(t)||(t=""+t);var u=L(this._isDirected,n,r,t);if(E(this._edgeLabels,u))return s&&(this._edgeLabels[u]=i),this;if(!$(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(r),this._edgeLabels[u]=s?i:this._defaultEdgeLabelFn(n,r,t);var f=Qt(this._isDirected,n,r,t);return n=f.v,r=f.w,Object.freeze(f),this._edgeObjs[u]=f,Ae(this._preds[r],n),Ae(this._sucs[n],r),this._in[r][u]=f,this._out[n][u]=f,this._edgeCount++,this}edge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t);return this._edgeLabels[i]}hasEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t);return E(this._edgeLabels,i)}removeEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t),s=this._edgeObjs[i];return s&&(n=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],ye(this._preds[r],n),ye(this._sucs[n],r),delete this._in[r][i],delete this._out[n][i],this._edgeCount--),this}inEdges(n,r){var t=this._in[n];if(t){var i=H(t);return r?D(i,function(s){return s.v===r}):i}}outEdges(n,r){var t=this._out[n];if(t){var i=H(t);return r?D(i,function(s){return s.w===r}):i}}nodeEdges(n,r){var t=this.inEdges(n,r);if(t)return t.concat(this.outEdges(n,r))}}Ze.prototype._nodeCount=0;Ze.prototype._edgeCount=0;function Ae(e,n){e[n]?e[n]++:e[n]=1}function ye(e,n){--e[n]||delete e[n]}function L(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}return i+be+s+be+($(t)?Jt:t)}function Qt(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}var u={v:i,w:s};return t&&(u.name=t),u}function Y(e,n){return L(e,n.v,n.w,n.name)}export{Ze as G,J as a,j as b,Se as c,Ye as d,cn as e,v as f,ee as g,E as h,$ as i,$e as j,T as k,xt as l,St as m,Ie as n,Ce as o,vt as p,$n as q,D as r,Kt as s,U as t,H as v}; diff --git a/assets/helper-0r91fNX5.js b/assets/helper-0r91fNX5.js new file mode 100644 index 00000000000..b7c96d6f498 --- /dev/null +++ b/assets/helper-0r91fNX5.js @@ -0,0 +1 @@ +function D(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(r=0;rs(n))?.classGroupId}const Q=/^\[(.+)\]$/;function le(e){if(Q.test(e)){const r=Q.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}}function ae(e){const{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return de(Object.entries(e.classGroups),t).forEach(([n,s])=>{$(s,o,n,r)}),o}function $(e,r,t,o){e.forEach(i=>{if(typeof i=="string"){const n=i===""?r:Y(r,i);n.classGroupId=t;return}if(typeof i=="function"){if(ce(i)){$(i(o),r,t,o);return}r.validators.push({validator:i,classGroupId:t});return}Object.entries(i).forEach(([n,s])=>{$(s,Y(r,n),t,o)})})}function Y(e,r){let t=e;return r.split(_).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function ce(e){return e.isThemeGetter}function de(e,r){return r?e.map(([t,o])=>{const i=o.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,a])=>[r+s,a])):n);return[t,i]}):e}function ue(e){if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;function i(n,s){t.set(n,s),r++,r>e&&(r=0,o=t,t=new Map)}return{get(n){let s=t.get(n);if(s!==void 0)return s;if((s=o.get(n))!==void 0)return i(n,s),s},set(n,s){t.has(n)?t.set(n,s):i(n,s)}}}const re="!";function pe(e){const r=e.separator,t=r.length===1,o=r[0],i=r.length;return function(s){const a=[];let u=0,f=0,p;for(let b=0;bf?p-f:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:w,maybePostfixModifierPosition:S}}}function fe(e){if(e.length<=1)return e;const r=[];let t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r}function be(e){return{cache:ue(e.cacheSize),splitModifiers:pe(e),...ie(e)}}const ge=/\s+/;function me(e,r){const{splitModifiers:t,getClassGroupId:o,getConflictingClassGroupIds:i}=r,n=new Set;return e.trim().split(ge).map(s=>{const{modifiers:a,hasImportantModifier:u,baseClassName:f,maybePostfixModifierPosition:p}=t(s);let g=o(p?f.substring(0,p):f),h=!!p;if(!g){if(!p)return{isTailwindClass:!1,originalClassName:s};if(g=o(f),!g)return{isTailwindClass:!1,originalClassName:s};h=!1}const w=fe(a).join(":");return{isTailwindClass:!0,modifierId:u?w+re:w,classGroupId:g,originalClassName:s,hasPostfixModifier:h}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:a,classGroupId:u,hasPostfixModifier:f}=s,p=a+u;return n.has(p)?!1:(n.add(p),i(u,f).forEach(g=>n.add(a+g)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function he(){let e=0,r,t,o="";for(;eg(p),e());return t=be(f),o=t.cache.get,i=t.cache.set,n=a,a(u)}function a(u){const f=o(u);if(f)return f;const p=me(u,t);return i(u,p),p}return function(){return n(he.apply(null,arguments))}}function c(e){const r=t=>t[e]||[];return r.isThemeGetter=!0,r}const oe=/^\[(?:([a-z-]+):)?(.+)\]$/i,xe=/^\d+\/\d+$/,we=new Set(["px","full","screen"]),ve=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ke=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ce=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ze=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Se=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function x(e){return z(e)||we.has(e)||xe.test(e)}function k(e){return M(e,"length",je)}function z(e){return!!e&&!Number.isNaN(Number(e))}function E(e){return M(e,"number",z)}function G(e){return!!e&&Number.isInteger(Number(e))}function Me(e){return e.endsWith("%")&&z(e.slice(0,-1))}function l(e){return oe.test(e)}function C(e){return ve.test(e)}const Ae=new Set(["length","size","percentage"]);function Re(e){return M(e,Ae,ne)}function Ge(e){return M(e,"position",ne)}const Pe=new Set(["image","url"]);function Ie(e){return M(e,Pe,Le)}function Te(e){return M(e,"",Ee)}function P(){return!0}function M(e,r,t){const o=oe.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1}function je(e){return ke.test(e)&&!Ce.test(e)}function ne(){return!1}function Ee(e){return ze.test(e)}function Le(e){return Se.test(e)}function Ne(){const e=c("colors"),r=c("spacing"),t=c("blur"),o=c("brightness"),i=c("borderColor"),n=c("borderRadius"),s=c("borderSpacing"),a=c("borderWidth"),u=c("contrast"),f=c("grayscale"),p=c("hueRotate"),g=c("invert"),h=c("gap"),w=c("gradientColorStops"),S=c("gradientColorStopPositions"),b=c("inset"),m=c("margin"),v=c("opacity"),y=c("padding"),B=c("saturate"),L=c("scale"),U=c("sepia"),F=c("skew"),J=c("space"),q=c("translate"),N=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",l,r],d=()=>[l,r],X=()=>["",x,k],I=()=>["auto",z,l],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],T=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],V=()=>["start","end","center","between","around","evenly","stretch"],A=()=>["","0",l],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[z,E],j=()=>[z,l];return{cacheSize:500,separator:":",theme:{colors:[P],spacing:[x,k],blur:["none","",C,l],brightness:R(),borderColor:[e],borderRadius:["none","","full",C,l],borderSpacing:d(),borderWidth:X(),contrast:R(),grayscale:A(),hueRotate:j(),invert:A(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[Me,k],inset:O(),margin:O(),opacity:R(),padding:d(),saturate:R(),scale:R(),sepia:A(),skew:j(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[C]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Z(),l]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",G,l]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",G,l]}],"grid-cols":[{"grid-cols":[P]}],"col-start-end":[{col:["auto",{span:["full",G,l]},l]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[P]}],"row-start-end":[{row:["auto",{span:[G,l]},l]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...V()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...V(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...V(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[J]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[J]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,r]}],"min-w":[{"min-w":[l,r,"min","max","fit"]}],"max-w":[{"max-w":[l,r,"none","full","min","max","fit","prose",{screen:[C]},C]}],h:[{h:[l,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,r,"auto","min","max","fit"]}],"font-size":[{text:["base",C,k]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",E]}],"font-family":[{font:[P]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",z,E]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",x,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...T(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",x,k]}],"underline-offset":[{"underline-offset":["auto",x,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),Ge]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Re]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ie]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...T(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:T()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...T()]}],"outline-offset":[{"outline-offset":[x,l]}],"outline-w":[{outline:[x,k]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[x,k]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",C,Te]}],"shadow-color":[{shadow:[P]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":H()}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",C,l]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[g]}],saturate:[{saturate:[B]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[B]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[G,l]}],"translate-x":[{"translate-x":[q]}],"translate-y":[{"translate-y":[q]}],"skew-x":[{"skew-x":[F]}],"skew-y":[{"skew-y":[F]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[x,k,E]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const We=ye(Ne),Oe=(...e)=>We(se(e)),Ve=e=>{try{return JSON.parse(e)}catch{return null}};export{se as a,Oe as c,Ve as s}; diff --git a/assets/image-sZM8elMx.js b/assets/image-sZM8elMx.js new file mode 100644 index 00000000000..9ed5ee89cb9 --- /dev/null +++ b/assets/image-sZM8elMx.js @@ -0,0 +1 @@ +import{r as g,R as C,j as x}from"./index-qegmBwH1.js";var I=new Map,h=new WeakMap,y=0,M=void 0;function D(e){return e?(h.has(e)||(y+=1,h.set(e,y.toString())),h.get(e)):"0"}function L(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?D(e.root):e[t]}`).toString()}function O(e){const t=L(e);let n=I.get(t);if(!n){const s=new Map;let a;const i=new IntersectionObserver(o=>{o.forEach(r=>{var c;const l=r.isIntersecting&&a.some(d=>r.intersectionRatio>=d);e.trackVisibility&&typeof r.isVisible>"u"&&(r.isVisible=l),(c=s.get(r.target))==null||c.forEach(d=>{d(l,r)})})},e);a=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:s},I.set(t,n)}return n}function T(e,t,n={},s=M){if(typeof window.IntersectionObserver>"u"&&s!==void 0){const c=e.getBoundingClientRect();return t(s,{isIntersecting:s,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:c,intersectionRect:c,rootBounds:c}),()=>{}}const{id:a,observer:i,elements:o}=O(n),r=o.get(e)||[];return o.has(e)||o.set(e,r),r.push(t),i.observe(e),function(){r.splice(r.indexOf(t),1),r.length===0&&(o.delete(e),i.unobserve(e)),o.size===0&&(i.disconnect(),I.delete(a))}}function $({threshold:e,delay:t,trackVisibility:n,rootMargin:s,root:a,triggerOnce:i,skip:o,initialInView:r,fallbackInView:c,onChange:l}={}){var d;const[v,_]=g.useState(null),R=g.useRef(),[m,p]=g.useState({inView:!!r,entry:void 0});R.current=l,g.useEffect(()=>{if(o||!v)return;let f;return f=T(v,(S,w)=>{p({inView:S,entry:w}),R.current&&R.current(S,w),w.isIntersecting&&i&&f&&(f(),f=void 0)},{root:a,rootMargin:s,threshold:e,trackVisibility:n,delay:t},c),()=>{f&&f()}},[Array.isArray(e)?e.toString():e,v,a,s,i,o,n,c,t]);const b=(d=m.entry)==null?void 0:d.target,E=g.useRef();!v&&b&&!i&&!o&&E.current!==b&&(E.current=b,p({inView:!!r,entry:void 0}));const u=[_,m.inView,m.entry];return u.ref=u[0],u.inView=u[1],u.entry=u[2],u}const N=e=>{const{placeholder:t=null,offset:n=0,...s}=e,{ref:a,inView:i}=$({triggerOnce:!0,rootMargin:`${n||0}px`,...s}),[o,r]=C.useState(!1);return g.useEffect(()=>{i&&r(!0)},[i]),x.jsxs(x.Fragment,{children:[!o&&x.jsx("span",{"data-hide-print":!0,"data-testid":"lazyload-indicator",ref:a}),i?e.children:t]})},j="cdn.innei.ren",z=j,V=({width:e,height:t,max:n})=>{if(e===0||t===0)throw new Error("Invalid image size");const{width:s,height:a}=n,i=s/e||1,o=a/t||1,r=Math.min(i,o,1);return{width:e*r,height:t*r}};function U(e){const t=document.createElement("canvas"),n=t.getContext("2d");t.width=1,t.height=1,n.drawImage(e,0,0,1,1);const s=n.getImageData(0,0,1,1).data;return`#${((1<<24)+(s[0]<<16)+(s[1]<<8)+s[2]).toString(16).slice(1)}`}const B=(e,t)=>new URL(e).host===z?`${e}?imageMogr2/thumbnail/${t}x/strip`:e;export{N as L,B as a,V as c,U as g,$ as u}; diff --git a/assets/index-5Y6ZmVAf.js b/assets/index-5Y6ZmVAf.js new file mode 100644 index 00000000000..dbf96177e1a --- /dev/null +++ b/assets/index-5Y6ZmVAf.js @@ -0,0 +1 @@ +var lr=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,P=r=>!r||typeof r!="object"||Object.keys(r).length===0,Sr=(r,t)=>JSON.stringify(r)===JSON.stringify(t);function br(r,t){r.forEach(function(e){Array.isArray(e)?br(e,t):t.push(e)})}function gr(r){let t=[];return br(r,t),t}var vr=(...r)=>gr(r).filter(Boolean),mr=(r,t)=>{let e={},o=Object.keys(r),l=Object.keys(t);for(let a of o)if(l.includes(a)){let n=r[a],s=t[a];typeof n=="object"&&typeof s=="object"?e[a]=mr(n,s):Array.isArray(n)||Array.isArray(s)?e[a]=vr(s,n):e[a]=s+" "+n}else e[a]=r[a];for(let a of l)o.includes(a)||(e[a]=t[a]);return e},cr=r=>!r||typeof r!="string"?r:r.replace(/\s+/g," ").trim();function zr(){for(var r=0,t,e,o="";rr&&(t=0,o=e,e=new Map)}return{get:function(n){var s=e.get(n);if(s!==void 0)return s;if((s=o.get(n))!==void 0)return l(n,s),s},set:function(n,s){e.has(n)?e.set(n,s):l(n,s)}}}var wr="!";function Nr(r){var t=r.separator||":",e=t.length===1,o=t[0],l=t.length;return function(n){for(var s=[],c=0,m=0,b,y=0;ym?b-m:void 0;return{modifiers:s,hasImportantModifier:S,baseClassName:C,maybePostfixModifierPosition:I}}}function Or(r){if(r.length<=1)return r;var t=[],e=[];return r.forEach(function(o){var l=o[0]==="[";l?(t.push.apply(t,e.sort().concat([o])),e=[]):e.push(o)}),t.push.apply(t,e.sort()),t}function Er(r){return{cache:Tr(r.cacheSize),splitModifiers:Nr(r),...Gr(r)}}var Wr=/\s+/;function Vr(r,t){var e=t.splitModifiers,o=t.getClassGroupId,l=t.getConflictingClassGroupIds,a=new Set;return r.trim().split(Wr).map(function(n){var s=e(n),c=s.modifiers,m=s.hasImportantModifier,b=s.baseClassName,y=s.maybePostfixModifierPosition,k=o(y?b.substring(0,y):b),G=!!y;if(!k){if(!y)return{isTailwindClass:!1,originalClassName:n};if(k=o(b),!k)return{isTailwindClass:!1,originalClassName:n};G=!1}var S=Or(c).join(":"),C=m?S+wr:S;return{isTailwindClass:!0,modifierId:C,classGroupId:k,originalClassName:n,hasPostfixModifier:G}}).reverse().filter(function(n){if(!n.isTailwindClass)return!0;var s=n.modifierId,c=n.classGroupId,m=n.hasPostfixModifier,b=s+c;return a.has(b)?!1:(a.add(b),l(c,m).forEach(function(y){return a.add(s+y)}),!0)}).reverse().map(function(n){return n.originalClassName}).join(" ")}function tr(){for(var r=arguments.length,t=new Array(r),e=0;e1?t-1:0),o=1;or||void 0,Q=(...r)=>kr(gr(r).filter(Boolean).join(" ")),rr=null,D={},ir=!1,X=(...r)=>t=>t.twMerge?((!rr||ir)&&(ir=!1,rr=P(D)?te:ee(D)),kr(rr(Q(r)))):Q(r),pr=(r,t)=>{for(let e in t)r.hasOwnProperty(e)?r[e]=Q(r[e],t[e]):r[e]=t[e];return r},ne=(r,t)=>{let{extend:e=null,slots:o={},variants:l={},compoundVariants:a=[],compoundSlots:n=[],defaultVariants:s={}}=r,c={...oe,...t},m=e!=null&&e.base?Q(e.base,r?.base):r?.base,b=e!=null&&e.variants&&!P(e.variants)?mr(l,e.variants):l,y=e!=null&&e.defaultVariants&&!P(e.defaultVariants)?{...e.defaultVariants,...s}:s;!P(c.twMergeConfig)&&!Sr(c.twMergeConfig,D)&&(ir=!0,D=c.twMergeConfig);let k=P(e?.slots),G=P(o)?{}:{base:Q(r?.base,k&&e?.base),...o},S=k?G:pr({...e?.slots},P(G)?{base:r?.base}:G),C=w=>{if(P(b)&&P(o)&&k)return X(m,w?.class,w?.className)(c);if(a&&!Array.isArray(a))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof a}`);if(n&&!Array.isArray(n))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof n}`);let R=(i,u,d=[],g)=>{let p=d;if(typeof u=="string")p=p.concat(cr(u).split(" ").map(v=>`${i}:${v}`));else if(Array.isArray(u))p=p.concat(u.reduce((v,h)=>v.concat(`${i}:${h}`),[]));else if(typeof u=="object"&&typeof g=="string"){for(let v in u)if(u.hasOwnProperty(v)&&v===g){let h=u[v];if(h&&typeof h=="string"){let A=cr(h);p[g]?p[g]=p[g].concat(A.split(" ").map(M=>`${i}:${M}`)):p[g]=A.split(" ").map(M=>`${i}:${M}`)}else Array.isArray(h)&&h.length>0&&(p[g]=h.reduce((A,M)=>A.concat(`${i}:${M}`),[]))}}return p},L=(i,u=b,d=null,g=null)=>{var p;let v=u[i];if(!v||P(v))return null;let h=(p=g?.[i])!=null?p:w?.[i];if(h===null)return null;let A=lr(h),M=Array.isArray(c.responsiveVariants)&&c.responsiveVariants.length>0||c.responsiveVariants===!0,T=y?.[i],j=[];if(typeof A=="object"&&M)for(let[K,sr]of Object.entries(A)){let Mr=v[sr];if(K==="initial"){T=sr;continue}Array.isArray(c.responsiveVariants)&&!c.responsiveVariants.includes(K)||(j=R(K,Mr,j,d))}let z=v[A]||v[lr(T)];return typeof j=="object"&&typeof d=="string"&&j[d]?pr(j,z):j.length>0?(j.push(z),j):z},$=()=>b?Object.keys(b).map(i=>L(i,b)):null,Y=(i,u)=>{if(!b||typeof b!="object")return null;let d=new Array;for(let g in b){let p=L(g,b,i,u),v=i==="base"&&typeof p=="string"?p:p&&p[i];v&&(d[d.length]=v)}return d},B={};for(let i in w)w[i]!==void 0&&(B[i]=w[i]);let U=(i,u)=>{var d;let g=typeof w?.[i]=="object"?{[i]:(d=w[i])==null?void 0:d.initial}:{};return{...y,...B,...g,...u}},F=(i=[],u)=>{let d=[];for(let{class:g,className:p,...v}of i){let h=!0;for(let[A,M]of Object.entries(v)){let T=U(A,u);if(Array.isArray(M)){if(!M.includes(T[A])){h=!1;break}}else if(T[A]!==M){h=!1;break}}h&&(g&&d.push(g),p&&d.push(p))}return d},V=i=>{let u=F(a,i),d=F(e?.compoundVariants,i);return vr(d,u)},J=i=>{let u=V(i);if(!Array.isArray(u))return u;let d={};for(let g of u)if(typeof g=="string"&&(d.base=X(d.base,g)(c)),typeof g=="object")for(let[p,v]of Object.entries(g))d[p]=X(d[p],v)(c);return d},q=i=>{if(n.length<1)return null;let u={};for(let{slots:d=[],class:g,className:p,...v}of n){if(!P(v)){let h=!0;for(let A of Object.keys(v)){let M=U(A,i)[A];if(M===void 0||(Array.isArray(v[A])?!v[A].includes(M):v[A]!==M)){h=!1;break}}if(!h)continue}for(let h of d)u[h]=u[h]||[],u[h].push([g,p])}return u};if(!P(o)||!k){let i={};if(typeof S=="object"&&!P(S))for(let u of Object.keys(S))i[u]=d=>{var g,p;return X(S[u],Y(u,d),((g=J(d))!=null?g:[])[u],((p=q(d))!=null?p:[])[u],d?.class,d?.className)(c)};return i}return X(m,$(),V(),w?.class,w?.className)(c)},I=()=>{if(!(!b||typeof b!="object"))return Object.keys(b)};return C.variantKeys=I(),C.extend=e,C.base=m,C.slots=S,C.variants=b,C.defaultVariants=y,C.compoundSlots=n,C.compoundVariants=a,C};export{ne as i}; diff --git a/assets/index-75n5Qq-a.css b/assets/index-75n5Qq-a.css new file mode 100644 index 00000000000..6bd53efdac2 --- /dev/null +++ b/assets/index-75n5Qq-a.css @@ -0,0 +1 @@ +._verified_lvyh0_1{margin-left:.125rem;max-width:20px;max-height:20px;height:1.25em;fill:currentColor;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:text-bottom}._root_98iqw_1{width:100%;min-width:250px;max-width:550px;overflow:hidden;color:var(--tweet-font-color);font-family:var(--tweet-font-family);font-weight:400;box-sizing:border-box;border:var(--tweet-border);border-radius:12px;margin:var(--tweet-container-margin);background-color:var(--tweet-bg-color);transition-property:background-color,box-shadow;transition-duration:.2s}._root_98iqw_1:hover{background-color:var(--tweet-bg-color-hover)}._article_98iqw_21{position:relative;box-sizing:inherit;padding:.75rem 1rem}.react-tweet-theme{--tweet-container-margin: 1.5rem 0;--tweet-header-font-size: .9375rem;--tweet-header-line-height: 1.25rem;--tweet-body-font-size: 1.25rem;--tweet-body-font-weight: 400;--tweet-body-line-height: 1.5rem;--tweet-body-margin: 0;--tweet-quoted-container-margin: .75rem 0;--tweet-quoted-body-font-size: .938rem;--tweet-quoted-body-font-weight: 400;--tweet-quoted-body-line-height: 1.25rem;--tweet-quoted-body-margin: .25rem 0 .75rem 0;--tweet-info-font-size: .9375rem;--tweet-info-line-height: 1.25rem;--tweet-actions-font-size: .875rem;--tweet-actions-line-height: 1rem;--tweet-actions-font-weight: 700;--tweet-actions-icon-size: 1.25em;--tweet-actions-icon-wrapper-size: calc( var(--tweet-actions-icon-size) + .75em );--tweet-replies-font-size: .875rem;--tweet-replies-line-height: 1rem;--tweet-replies-font-weight: 700}:where(.react-tweet-theme) *{margin:0;padding:0;box-sizing:border-box}:is([data-theme=light],.light) :where(.react-tweet-theme),:where(.react-tweet-theme){--tweet-skeleton-gradient: linear-gradient( 270deg, #fafafa, #eaeaea, #eaeaea, #fafafa );--tweet-border: 1px solid rgb(207, 217, 222);--tweet-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--tweet-font-color: rgb(15, 20, 25);--tweet-font-color-secondary: rgb(83, 100, 113);--tweet-bg-color: #fff;--tweet-bg-color-hover: rgb(247, 249, 249);--tweet-quoted-bg-color-hover: rgba(0, 0, 0, .03);--tweet-color-blue-primary: rgb(29, 155, 240);--tweet-color-blue-primary-hover: rgb(26, 140, 216);--tweet-color-blue-secondary: rgb(0, 111, 214);--tweet-color-blue-secondary-hover: rgba(0, 111, 214, .1);--tweet-color-red-primary: rgb(249, 24, 128);--tweet-color-red-primary-hover: rgba(249, 24, 128, .1);--tweet-color-green-primary: rgb(0, 186, 124);--tweet-color-green-primary-hover: rgba(0, 186, 124, .1);--tweet-twitter-icon-color: var(--tweet-font-color);--tweet-verified-old-color: rgb(130, 154, 171);--tweet-verified-blue-color: var(--tweet-color-blue-primary)}:is([data-theme=dark],.dark) :where(.react-tweet-theme){--tweet-skeleton-gradient: linear-gradient( 270deg, #15202b, rgb(30, 39, 50), rgb(30, 39, 50), rgb(21, 32, 43) );--tweet-border: 1px solid rgb(66, 83, 100);--tweet-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--tweet-font-color: rgb(247, 249, 249);--tweet-font-color-secondary: rgb(139, 152, 165);--tweet-bg-color: rgb(21, 32, 43);--tweet-bg-color-hover: rgb(30, 39, 50);--tweet-quoted-bg-color-hover: rgba(255, 255, 255, .03);--tweet-color-blue-primary: rgb(29, 155, 240);--tweet-color-blue-primary-hover: rgb(26, 140, 216);--tweet-color-blue-secondary: rgb(107, 201, 251);--tweet-color-blue-secondary-hover: rgba(107, 201, 251, .1);--tweet-color-red-primary: rgb(249, 24, 128);--tweet-color-red-primary-hover: rgba(249, 24, 128, .1);--tweet-color-green-primary: rgb(0, 186, 124);--tweet-color-green-primary-hover: rgba(0, 186, 124, .1);--tweet-twitter-icon-color: var(--tweet-font-color);--tweet-verified-old-color: rgb(130, 154, 171);--tweet-verified-blue-color: #fff}@media (prefers-color-scheme: dark){:where(.react-tweet-theme){--tweet-skeleton-gradient: linear-gradient( 270deg, #15202b, rgb(30, 39, 50), rgb(30, 39, 50), rgb(21, 32, 43) );--tweet-border: 1px solid rgb(66, 83, 100);--tweet-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--tweet-font-color: rgb(247, 249, 249);--tweet-font-color-secondary: rgb(139, 152, 165);--tweet-bg-color: rgb(21, 32, 43);--tweet-bg-color-hover: rgb(30, 39, 50);--tweet-color-blue-primary: rgb(29, 155, 240);--tweet-color-blue-primary-hover: rgb(26, 140, 216);--tweet-color-blue-secondary: rgb(107, 201, 251);--tweet-color-blue-secondary-hover: rgba(107, 201, 251, .1);--tweet-color-red-primary: rgb(249, 24, 128);--tweet-color-red-primary-hover: rgba(249, 24, 128, .1);--tweet-color-green-primary: rgb(0, 186, 124);--tweet-color-green-primary-hover: rgba(0, 186, 124, .1);--tweet-twitter-icon-color: var(--tweet-font-color);--tweet-verified-old-color: rgb(130, 154, 171);--tweet-verified-blue-color: #fff}}._header_nqq4j_1{display:flex;padding-bottom:.75rem;line-height:var(--tweet-header-line-height);font-size:var(--tweet-header-font-size);white-space:nowrap;overflow-wrap:break-word;overflow:hidden}._avatar_nqq4j_11{position:relative;height:48px;width:48px}._avatarOverflow_nqq4j_16{height:100%;width:100%;position:absolute;overflow:hidden;border-radius:9999px}._avatarSquare_nqq4j_23{border-radius:4px}._avatarShadow_nqq4j_26{height:100%;width:100%;transition-property:background-color;transition-duration:.2s;box-shadow:#00000008 0 0 2px inset}._avatarShadow_nqq4j_26:hover{background-color:#1a1a1a26}._author_nqq4j_37{max-width:calc(100% - 84px);display:flex;flex-direction:column;justify-content:center;margin:0 .5rem}._authorLink_nqq4j_44{text-decoration:none;color:inherit;display:flex;align-items:center}._authorLink_nqq4j_44:hover{text-decoration-line:underline}._authorVerified_nqq4j_53{display:inline-flex}._authorLinkText_nqq4j_56{font-weight:700;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}._authorMeta_nqq4j_63,._authorFollow_nqq4j_66{display:flex}._username_nqq4j_69{color:var(--tweet-font-color-secondary);text-decoration:none;text-overflow:ellipsis}._follow_nqq4j_74{color:var(--tweet-color-blue-secondary);text-decoration:none;font-weight:700}._follow_nqq4j_74:hover{text-decoration-line:underline}._separator_nqq4j_82{padding:0 .25rem}._brand_nqq4j_86{margin-inline-start:auto}._twitterIcon_nqq4j_90{width:23.75px;height:23.75px;color:var(--tweet-twitter-icon-color);fill:currentColor;-webkit-user-select:none;-moz-user-select:none;user-select:none}._verifiedOld_lcna5_1{color:var(--tweet-verified-old-color)}._verifiedBlue_lcna5_4{color:var(--tweet-verified-blue-color)}._verifiedGovernment_lcna5_7{color:#829aab}._root_1ec15_1{text-decoration:none;color:var(--tweet-font-color-secondary);font-size:.9375rem;line-height:1.25rem;margin-bottom:.25rem;overflow-wrap:break-word;white-space:pre-wrap}._root_1ec15_1:hover{text-decoration-thickness:1px;text-decoration-line:underline}._root_eihfa_1{font-weight:inherit;color:var(--tweet-color-blue-secondary);text-decoration:none;cursor:pointer}._root_eihfa_1:hover{text-decoration-thickness:1px;text-decoration-line:underline}._root_1xq52_1{font-size:var(--tweet-body-font-size);font-weight:var(--tweet-body-font-weight);line-height:var(--tweet-body-line-height);margin:var(--tweet-body-margin);overflow-wrap:break-word;white-space:pre-wrap}._root_g9tkv_1{margin-top:.75rem;overflow:hidden;position:relative}._rounded_g9tkv_6{border:var(--tweet-border);border-radius:12px}._mediaWrapper_g9tkv_10{display:grid;grid-auto-rows:1fr;gap:2px;height:100%;width:100%}._grid2Columns_g9tkv_17{grid-template-columns:repeat(2,1fr)}._grid3_g9tkv_20>a:first-child{grid-row:span 2}._grid2x2_g9tkv_23{grid-template-rows:repeat(2,1fr)}._mediaContainer_g9tkv_26{position:relative;height:100%;width:100%;display:flex;align-items:center;justify-content:center}._mediaLink_g9tkv_34{text-decoration:none;outline-style:none}._skeleton_g9tkv_38{padding-bottom:56.25%;width:100%;display:block}._image_g9tkv_43{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;margin:0;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}._anchor_fp31d_1{display:flex;align-items:center;color:#fff;padding:0 1rem;border:1px solid transparent;border-radius:9999px;font-weight:700;transition:background-color .2s;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;outline-style:none;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}._videoButton_fp31d_17{position:relative;height:67px;width:67px;display:flex;align-items:center;justify-content:center;background-color:var(--tweet-color-blue-primary);transition-property:background-color;transition-duration:.2s;border:4px solid #fff;border-radius:9999px;cursor:pointer}._videoButton_fp31d_17:hover,._videoButton_fp31d_17:focus-visible{background-color:var(--tweet-color-blue-primary-hover)}._videoButtonIcon_fp31d_35{margin-left:3px;width:calc(50% + 4px);height:calc(50% + 4px);max-width:100%;color:#fff;fill:currentColor;-webkit-user-select:none;-moz-user-select:none;user-select:none}._watchOnTwitter_fp31d_44{position:absolute;top:12px;right:8px}._watchOnTwitter_fp31d_44>a{min-width:2rem;min-height:2rem;font-size:.875rem;line-height:1rem;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background-color:#0f1419bf}._watchOnTwitter_fp31d_44>a:hover{background-color:#272c30bf}._viewReplies_fp31d_60{position:relative;min-height:2rem;background-color:var(--tweet-color-blue-primary);border-color:var(--tweet-color-blue-primary);font-size:.9375rem;line-height:1.25rem}._viewReplies_fp31d_60:hover{background-color:var(--tweet-color-blue-primary-hover)}._root_i24yn_1{color:inherit;text-decoration:none;font-size:var(--tweet-info-font-size);line-height:var(--tweet-info-line-height)}._root_i24yn_1:hover{text-decoration-thickness:1px;text-decoration-line:underline}._info_19qcj_1{display:flex;align-items:center;color:var(--tweet-font-color-secondary);margin-top:.125rem;overflow-wrap:break-word;white-space:nowrap;text-overflow:ellipsis}._infoLink_19qcj_10{color:inherit;text-decoration:none;height:var(--tweet-actions-icon-wrapper-size);width:var(--tweet-actions-icon-wrapper-size);font:inherit;margin-left:auto;display:flex;justify-content:center;align-items:center;margin-right:-4px;border-radius:9999px;transition-property:background-color;transition-duration:.2s}._infoLink_19qcj_10:hover{background-color:var(--tweet-color-blue-secondary-hover)}._infoIcon_19qcj_30{color:inherit;fill:currentColor;height:var(--tweet-actions-icon-size);-webkit-user-select:none;-moz-user-select:none;user-select:none}._infoLink_19qcj_10:hover>._infoIcon_19qcj_30{color:var(--tweet-color-blue-secondary)}._actions_n2anf_1{display:flex;align-items:center;color:var(--tweet-font-color-secondary);padding-top:.25rem;margin-top:.25rem;border-top:var(--tweet-border);overflow-wrap:break-word;white-space:nowrap;text-overflow:ellipsis}._like_n2anf_13,._reply_n2anf_14,._copy_n2anf_15{text-decoration:none;color:inherit;display:flex;align-items:center;margin-right:1.25rem}._like_n2anf_13:hover,._reply_n2anf_14:hover,._copy_n2anf_15:hover{background-color:#0000}._like_n2anf_13:hover>._likeIconWrapper_n2anf_27{background-color:var(--tweet-color-red-primary-hover)}._like_n2anf_13:hover>._likeCount_n2anf_30{color:var(--tweet-color-red-primary);text-decoration-line:underline}._likeIconWrapper_n2anf_27,._replyIconWrapper_n2anf_35,._copyIconWrapper_n2anf_36{width:var(--tweet-actions-icon-wrapper-size);height:var(--tweet-actions-icon-wrapper-size);display:flex;justify-content:center;align-items:center;margin-left:-.25rem;border-radius:9999px}._likeIcon_n2anf_27,._replyIcon_n2anf_35,._copyIcon_n2anf_36{height:var(--tweet-actions-icon-size);fill:currentColor;-webkit-user-select:none;-moz-user-select:none;user-select:none}._likeIcon_n2anf_27{color:var(--tweet-color-red-primary)}._likeCount_n2anf_30,._replyText_n2anf_56,._copyText_n2anf_57{font-size:var(--tweet-actions-font-size);font-weight:var(--tweet-actions-font-weight);line-height:var(--tweet-actions-line-height);margin-left:.25rem}._reply_n2anf_14:hover>._replyIconWrapper_n2anf_35{background-color:var(--tweet-color-blue-secondary-hover)}._reply_n2anf_14:hover>._replyText_n2anf_56{color:var(--tweet-color-blue-secondary);text-decoration-line:underline}._replyIcon_n2anf_35{color:var(--tweet-color-blue-primary)}._copy_n2anf_15{font:inherit;background:none;border:none;cursor:pointer}._copy_n2anf_15:hover>._copyIconWrapper_n2anf_36{background-color:var(--tweet-color-green-primary-hover)}._copy_n2anf_15:hover ._copyIcon_n2anf_36{color:var(--tweet-color-green-primary)}._copy_n2anf_15:hover>._copyText_n2anf_57{color:var(--tweet-color-green-primary);text-decoration-line:underline}._replies_1cutb_1{padding:.25rem 0}._link_1cutb_4{text-decoration:none;color:var(--tweet-color-blue-secondary);display:flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;-webkit-user-select:none;-moz-user-select:none;user-select:none;outline-style:none;transition-property:background-color;transition-duration:.2s;padding:0 1rem;border:var(--tweet-border);border-radius:9999px}._link_1cutb_4:hover{background-color:var(--tweet-color-blue-secondary-hover)}._text_1cutb_23{font-weight:var(--tweet-replies-font-weight);font-size:var(--tweet-replies-font-size);line-height:var(--tweet-replies-line-height);overflow-wrap:break-word;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}._root_q5799_1{width:100%;overflow:hidden;border:var(--tweet-border);border-radius:12px;margin:var(--tweet-quoted-container-margin);transition-property:background-color,box-shadow;transition-duration:.2s;cursor:pointer}._root_q5799_1:hover{background-color:var(--tweet-quoted-bg-color-hover)}._article_q5799_16{position:relative;box-sizing:inherit}._header_r31i5_1{display:flex;padding:.75rem .75rem 0;line-height:var(--tweet-header-line-height);font-size:var(--tweet-header-font-size);white-space:nowrap;overflow-wrap:break-word;overflow:hidden}._avatar_r31i5_11{position:relative;height:20px;width:20px}._avatarSquare_r31i5_17{border-radius:4px}._author_r31i5_21{display:flex;margin:0 .5rem}._authorText_r31i5_26{font-weight:700;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}._username_r31i5_33{color:var(--tweet-font-color-secondary);text-decoration:none;text-overflow:ellipsis;margin-left:.125rem}._root_175ot_1{font-size:var(--tweet-quoted-body-font-size);font-weight:var(--tweet-quoted-body-font-weight);line-height:var(--tweet-quoted-body-line-height);margin:var(--tweet-quoted-body-margin);overflow-wrap:break-word;white-space:pre-wrap;padding:0 .75rem}._root_16yxa_1{display:flex;flex-direction:column;align-items:center;padding-bottom:.75rem}._root_16yxa_1>h3{font-size:1.25rem;margin-bottom:.5rem}._skeleton_oi7hr_1{display:block;width:100%;border-radius:5px;background-image:var(--tweet-skeleton-gradient);background-size:400% 100%;animation:_loading_oi7hr_1 8s ease-in-out infinite}@media (prefers-reduced-motion: reduce){._skeleton_oi7hr_1{animation:none;background-position:200% 0}}@keyframes _loading_oi7hr_1{0%{background-position:200% 0}to{background-position:-200% 0}}._root_17qqv_1{pointer-events:none;padding-bottom:.25rem} diff --git a/assets/index-8fae9850-Po9R6XSU.js b/assets/index-8fae9850-Po9R6XSU.js new file mode 100644 index 00000000000..f2e1db516a2 --- /dev/null +++ b/assets/index-8fae9850-Po9R6XSU.js @@ -0,0 +1 @@ +import{i as N,G as A}from"./graph-4EnB4jqL.js";import{m as $,l as H}from"./layout-KoXfeBJF.js";import{c as V}from"./clone-LNmcdPHq.js";import{i as K,u as U,s as W,c as _,b as q,g as D,d as O,a as z,p as Q,e as Y,f as Z,h as J,j as p}from"./edges-d417c7a0-uR8Ha2yN.js";import{l as s,c as T,K as S,h as L}from"./index.demo-_07sssxB.js";import{c as I}from"./createText-423428c9-gj--wZwo.js";function m(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:tt(e),edges:et(e)};return N(e.graph())||(t.value=V(e.graph())),t}function tt(e){return $(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return N(n)||(i.value=n),N(r)||(i.parent=r),i})}function et(e){return $(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return N(t.name)||(r.name=t.name),N(n)||(r.value=n),r})}let l={},g={},R={};const nt=()=>{g={},R={},l={}},B=(e,t)=>(s.trace("In isDecendant",t," ",e," = ",g[t].includes(e)),!!g[t].includes(e)),it=(e,t)=>(s.info("Decendants of ",t," is ",g[t]),s.info("Edge is ",e),e.v===t||e.w===t?!1:g[t]?g[t].includes(e.v)||B(e.v,t)||B(e.w,t)||g[t].includes(e.w):(s.debug("Tilt, ",t,",not in decendants"),!1)),P=(e,t,n,r)=>{s.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const i=t.children(e)||[];e!==r&&i.push(e),s.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(a=>{if(t.children(a).length>0)P(a,t,n,r);else{const d=t.node(a);s.info("cp ",a," to ",r," with parent ",e),n.setNode(a,d),r!==t.parent(a)&&(s.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(s.debug("Setting parent",a,e),n.setParent(a,e)):(s.info("In copy ",e,"root",r,"data",t.node(e),r),s.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));const u=t.edges(a);s.debug("Copying Edges",u),u.forEach(f=>{s.info("Edge",f);const h=t.edge(f.v,f.w,f.name);s.info("Edge data",h,r);try{it(f,r)?(s.info("Copying as ",f.v,f.w,h,f.name),n.setEdge(f.v,f.w,h,f.name),s.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):s.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",r," clusterId:",e)}catch(w){s.error(w)}})}s.debug("Removing node",a),t.removeNode(a)})},k=(e,t)=>{const n=t.children(e);let r=[...n];for(const i of n)R[i]=e,r=[...r,...k(i,t)];return r},C=(e,t)=>{s.trace("Searching",e);const n=t.children(e);if(s.trace("Searching children of id ",e,n),n.length<1)return s.trace("This is a valid node",e),e;for(const r of n){const i=C(r,t);if(i)return s.trace("Found replacement for",e," => ",i),i}},X=e=>!l[e]||!l[e].externalConnections?e:l[e]?l[e].id:e,st=(e,t)=>{if(!e||t>10){s.debug("Opting out, no graph ");return}else s.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(s.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),g[n]=k(n,e),l[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),i=e.edges();r.length>0?(s.debug("Cluster identified",n,g),i.forEach(a=>{if(a.v!==n&&a.w!==n){const d=B(a.v,n),u=B(a.w,n);d^u&&(s.warn("Edge: ",a," leaves cluster ",n),s.warn("Decendants of XXX ",n,": ",g[n]),l[n].externalConnections=!0)}})):s.debug("Not a cluster ",n,g)});for(let n of Object.keys(l)){const r=l[n].id,i=e.parent(r);i!==n&&l[i]&&!l[i].externalConnections&&(l[n].id=i)}e.edges().forEach(function(n){const r=e.edge(n);s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(s.warn("Fix XXX",l,"ids:",n.v,n.w,"Translating: ",l[n.v]," --- ",l[n.w]),l[n.v]&&l[n.w]&&l[n.v]===l[n.w]){s.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name);const d=n.w+"---"+n.v;e.setNode(d,{domId:d,id:d,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const u=structuredClone(r),f=structuredClone(r);u.label="",u.arrowTypeEnd="none",f.label="",u.fromCluster=n.v,f.toCluster=n.v,e.setEdge(i,d,u,n.name+"-cyclic-special"),e.setEdge(d,a,f,n.name+"-cyclic-special")}else if(l[n.v]||l[n.w]){if(s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){const d=e.parent(i);l[d].externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){const d=e.parent(a);l[d].externalConnections=!0,r.toCluster=n.w}s.warn("Fix Replacing with XXX",i,a,n.name),e.setEdge(i,a,r,n.name)}}),s.warn("Adjusted Graph",m(e)),F(e,0),s.trace(l)},F=(e,t)=>{if(s.warn("extractor - ",t,m(e),e.children("D")),t>10){s.error("Bailing out");return}let n=e.nodes(),r=!1;for(const i of n){const a=e.children(i);r=r||a.length>0}if(!r){s.debug("Done, no node has children",e.nodes());return}s.debug("Nodes = ",n,t);for(const i of n)if(s.debug("Extracting node",i,l,l[i]&&!l[i].externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!l[i])s.debug("Not a cluster",i,t);else if(!l[i].externalConnections&&e.children(i)&&e.children(i).length>0){s.warn("Cluster without external connections, without a parent and with children",i,t);let d=e.graph().rankdir==="TB"?"LR":"TB";l[i]&&l[i].clusterData&&l[i].clusterData.dir&&(d=l[i].clusterData.dir,s.warn("Fixing dir",l[i].clusterData.dir,d));const u=new A({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});s.warn("Old graph before copy",m(e)),P(i,e,u,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:l[i].clusterData,labelText:l[i].labelText,graph:u}),s.warn("New graph after copy node: (",i,")",m(u)),s.debug("Old graph after copy",m(e))}else s.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!l[i].externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),s.debug(l);n=e.nodes(),s.warn("New list of nodes",n);for(const i of n){const a=e.node(i);s.warn(" Now next level",i,a),a.clusterNode&&F(a.graph,t+1)}},G=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const i=e.children(r),a=G(e,i);n=[...n,...a]}),n},rt=e=>G(e,e.children()),at=(e,t)=>{s.info("Creating subgraph rect for ",t.id,t);const n=T(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),i=r.insert("rect",":first-child"),a=S(n.flowchart.htmlLabels),d=r.insert("g").attr("class","cluster-label"),u=t.labelType==="markdown"?I(d,t.labelText,{style:t.labelStyle,useHtmlLabels:a}):d.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}const h=0*t.padding,w=h/2,x=t.width<=f.width+h?f.width+h:t.width;t.width<=f.width+h?t.diff=(f.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,s.trace("Data ",t,JSON.stringify(t)),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-x/2).attr("y",t.y-t.height/2-w).attr("width",x).attr("height",t.height+h);const{subGraphTitleTopMargin:v}=D(n);a?d.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+v})`):d.attr("transform",`translate(${t.x}, ${t.y-t.height/2+v})`);const y=i.node().getBBox();return t.width=y.width,t.height=y.height,t.intersect=function(c){return p(t,c)},r},ct=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(u){return p(t,u)},n},ot=(e,t)=>{const n=T(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),i=r.insert("rect",":first-child"),a=r.insert("g").attr("class","cluster-label"),d=r.append("rect"),u=a.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}f=u.getBBox();const h=0*t.padding,w=h/2,x=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(f.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,i.attr("class","outer").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w).attr("width",x+h).attr("height",t.height+h),d.attr("class","inner").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w+f.height-1).attr("width",x+h).attr("height",t.height+h-f.height-3);const{subGraphTitleTopMargin:v}=D(n);a.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2-t.padding/3+(S(n.flowchart.htmlLabels)?5:3)+v})`);const y=i.node().getBBox();return t.height=y.height,t.intersect=function(c){return p(t,c)},r},lt=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+i).attr("height",t.height+i);const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.diff=-t.padding/2,t.intersect=function(u){return p(t,u)},n},ft={rect:at,roundedWithTitle:ot,noteGroup:ct,divider:lt};let j={};const dt=(e,t)=>{s.trace("Inserting cluster");const n=t.shape||"rect";j[t.id]=ft[n](e,t)},ut=()=>{j={}},M=async(e,t,n,r,i,a)=>{s.info("Graph in recursive render: XXX",m(t),i);const d=t.graph().rankdir;s.trace("Dir in recursive render - dir:",d);const u=e.insert("g").attr("class","root");t.nodes()?s.info("Recursive render XXX",t.nodes()):s.info("No nodes found for",t),t.edges().length>0&&s.trace("Recursive edges",t.edge(t.edges()[0]));const f=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),w=u.insert("g").attr("class","edgeLabels"),x=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(c){const o=t.node(c);if(i!==void 0){const b=JSON.parse(JSON.stringify(i.clusterData));s.info("Setting data for cluster XXX (",c,") ",b,i),t.setNode(i.id,b),t.parent(c)||(s.trace("Setting parent",c,i.id),t.setParent(c,i.id,b))}if(s.info("(Insert) Node XXX"+c+": "+JSON.stringify(t.node(c))),o&&o.clusterNode){s.info("Cluster identified",c,o.width,t.node(c));const b=await M(x,o.graph,n,r,t.node(c),a),E=b.elem;U(o,E),o.diff=b.diff||0,s.info("Node bounds (abc123)",c,o,o.width,o.x,o.y),W(E,o),s.warn("Recursive render complete ",E,o)}else t.children(c).length>0?(s.info("Cluster - the non recursive path XXX",c,o.id,o,t),s.info(C(o.id,t)),l[o.id]={id:C(o.id,t),node:o}):(s.info("Node - the non recursive path",c,o.id,o),await _(x,t.node(c),d))})),t.edges().forEach(function(c){const o=t.edge(c.v,c.w,c.name);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c)),s.info("Edge "+c.v+" -> "+c.w+": ",c," ",JSON.stringify(t.edge(c))),s.info("Fix",l,"ids:",c.v,c.w,"Translateing: ",l[c.v],l[c.w]),q(w,o)}),t.edges().forEach(function(c){s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c))}),s.info("#############################################"),s.info("### Layout ###"),s.info("#############################################"),s.info(t),H(t),s.info("Graph after layout:",m(t));let v=0;const{subGraphTitleTotalMargin:y}=D(a);return rt(t).forEach(function(c){const o=t.node(c);s.info("Position "+c+": "+JSON.stringify(t.node(c))),s.info("Position "+c+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?(o.y+=y,O(o)):t.children(c).length>0?(o.height+=y,dt(f,o),l[o.id].node=o):(o.y+=y/2,O(o))}),t.edges().forEach(function(c){const o=t.edge(c);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(o),o),o.points.forEach(E=>E.y+=y/2);const b=z(h,c,o,l,n,t,r);Q(o,b)}),t.nodes().forEach(function(c){const o=t.node(c);s.info(c,o.type,o.diff),o.type==="group"&&(v=o.diff)}),{elem:u,diff:v}},bt=async(e,t,n,r,i)=>{K(e,n,r,i),Y(),Z(),ut(),nt(),s.warn("Graph at first:",JSON.stringify(m(t))),st(t),s.warn("Graph after:",JSON.stringify(m(t)));const a=T();await M(e,t,r,i,void 0,a)};export{bt as r}; diff --git a/assets/index-D4F-WjWJ.js b/assets/index-D4F-WjWJ.js new file mode 100644 index 00000000000..0dfb80fe068 --- /dev/null +++ b/assets/index-D4F-WjWJ.js @@ -0,0 +1,3 @@ +class ie{constructor(e){this.selfOptions=e||{},this.pipes={}}options(e){return e&&(this.selfOptions=e),this.selfOptions}pipe(e,i){let t=i;if(typeof e=="string"){if(typeof t>"u")return this.pipes[e];this.pipes[e]=t}if(e&&e.name){if(t=e,t.processor===this)return t;this.pipes[t.name]=t}return t.processor=this,t}process(e,i){let t=e;t.options=this.options();let r=i||e.pipe||"default",s;for(;r;)typeof t.nextAfterChildren<"u"&&(t.next=t.nextAfterChildren,t.nextAfterChildren=null),typeof r=="string"&&(r=this.pipe(r)),r.process(t),s=r,r=null,t&&t.next&&(t=t.next,r=t.pipe||s);return t.hasResult?t.result:void 0}}class _{constructor(e){this.name=e,this.filters=[]}process(e){if(!this.processor)throw new Error("add this pipe to a processor before using it");const i=this.debug,t=this.filters.length,r=e;for(let s=0;se.filterName)}after(e,...i){const t=this.indexOf(e);return this.filters.splice(t+1,0,...i),this}before(e,...i){const t=this.indexOf(e);return this.filters.splice(t,0,...i),this}replace(e,...i){const t=this.indexOf(e);return this.filters.splice(t,1,...i),this}remove(e){const i=this.indexOf(e);return this.filters.splice(i,1),this}clear(){return this.filters.length=0,this}shouldHaveResult(e){if(e===!1){this.resultCheck=null;return}if(!this.resultCheck)return this.resultCheck=i=>{if(!i.hasResult){console.log(i);const t=new Error(`${this.name} failed`);throw t.noResult=!0,t}},this}}class I{setResult(e){return this.result=e,this.hasResult=!0,this}exit(){return this.exiting=!0,this}push(e,i){return e.parent=this,typeof i<"u"&&(e.childName=i),e.root=this.root||this,e.options=e.options||this.options,this.children?(this.children[this.children.length-1].next=e,this.children.push(e)):(this.children=[e],this.nextAfterChildren=this.next||null,this.next=e),e.next=this,this}}function re(l){const e=/^\/(.*)\/([gimyu]*)$/.exec(l.toString());return new RegExp(e[1],e[2])}function C(l){if(typeof l!="object")return l;if(l===null)return null;if(Array.isArray(l))return l.map(C);if(l instanceof Date)return new Date(l.getTime());if(l instanceof RegExp)return re(l);const e={};for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=C(l[i]));return e}class p extends I{constructor(e,i){super(),this.left=e,this.right=i,this.pipe="diff"}setResult(e){if(this.options.cloneDiffValues&&typeof e=="object"){const i=typeof this.options.cloneDiffValues=="function"?this.options.cloneDiffValues:C;typeof e[0]=="object"&&(e[0]=i(e[0])),typeof e[1]=="object"&&(e[1]=i(e[1]))}return super.setResult(e)}}class N extends I{constructor(e,i){super(),this.left=e,this.delta=i,this.pipe="patch"}}class P extends I{constructor(e){super(),this.delta=e,this.pipe="reverse"}}const H=function(e){if(e.left===e.right){e.setResult(void 0).exit();return}if(typeof e.left>"u"){if(typeof e.right=="function")throw new Error("functions are not supported");e.setResult([e.right]).exit();return}if(typeof e.right>"u"){e.setResult([e.left,0,0]).exit();return}if(typeof e.left=="function"||typeof e.right=="function")throw new Error("functions are not supported");if(e.leftType=e.left===null?"null":typeof e.left,e.rightType=e.right===null?"null":typeof e.right,e.leftType!==e.rightType){e.setResult([e.left,e.right]).exit();return}if(e.leftType==="boolean"||e.leftType==="number"){e.setResult([e.left,e.right]).exit();return}if(e.leftType==="object"&&(e.leftIsArray=Array.isArray(e.left)),e.rightType==="object"&&(e.rightIsArray=Array.isArray(e.right)),e.leftIsArray!==e.rightIsArray){e.setResult([e.left,e.right]).exit();return}e.left instanceof RegExp&&(e.right instanceof RegExp?e.setResult([e.left.toString(),e.right.toString()]).exit():e.setResult([e.left,e.right]).exit())};H.filterName="trivial";const k=function(e){if(typeof e.delta>"u"){e.setResult(e.left).exit();return}if(e.nested=!Array.isArray(e.delta),e.nested)return;const i=e.delta;if(i.length===1){e.setResult(i[0]).exit();return}if(i.length===2){if(e.left instanceof RegExp){const t=/^\/(.*)\/([gimyu]+)$/.exec(i[1]);if(t){e.setResult(new RegExp(t[1],t[2])).exit();return}}e.setResult(i[1]).exit();return}i.length===3&&i[2]===0&&e.setResult(void 0).exit()};k.filterName="trivial";const L=function(e){if(typeof e.delta>"u"){e.setResult(e.delta).exit();return}if(e.nested=!Array.isArray(e.delta),e.nested)return;const i=e.delta;if(i.length===1){e.setResult([i[0],0,0]).exit();return}if(i.length===2){e.setResult([i[1],i[0]]).exit();return}i.length===3&&i[2]===0&&e.setResult([i[0]]).exit()};L.filterName="trivial";const B=l=>{if(!l||!l.children)return;const e=l.children.length;let i,t=l.result;for(let r=0;r"u")&&(t=t||{},t[i.childName]=i.result);t&&l.leftIsArray&&(t._t="a"),l.setResult(t).exit()};B.filterName="collectChildren";const V=l=>{if(l.leftIsArray||l.leftType!=="object")return;const e=l.left,i=l.right;let t,r;const s=l.options.propertyFilter;for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(s&&!s(t,l)||(r=new p(e[t],i[t]),l.push(r,t)));for(t in i)Object.prototype.hasOwnProperty.call(i,t)&&(s&&!s(t,l)||typeof e[t]>"u"&&(r=new p(void 0,i[t]),l.push(r,t)));if(!l.children||l.children.length===0){l.setResult(void 0).exit();return}l.exit()};V.filterName="objects";const W=function(e){if(!e.nested)return;const i=e.delta;if(i._t)return;const t=i;let r,s;for(r in t)s=new N(e.left[r],t[r]),e.push(s,r);e.exit()};W.filterName="objects";const q=function(e){if(!e||!e.children||e.delta._t)return;const t=e.left,r=e.children.length;let s;for(let n=0;n{if(!l||!l.children||l.delta._t)return;const i=l.children.length;let t;const r={};for(let s=0;so?--s:--r}return n},fe=function(l,e,i,t){const r=t||{},s=le(l,e,i||se,r);return ne(s,l,e,r)},he={get:fe},g=3;function ae(l,e,i,t){for(let r=0;r"u"&&(r.hashCache1[i]=h=f(s,i)),typeof h>"u")return!1;r.hashCache2=r.hashCache2||[];let o=r.hashCache2[t];return typeof o>"u"&&(r.hashCache2[t]=o=f(n,t)),typeof o>"u"?!1:h===o}const U=function(e){if(!e.leftIsArray)return;const i={objectHash:e.options&&e.options.objectHash,matchByPosition:e.options&&e.options.matchByPosition};let t=0,r=0,s,n,f;const h=e.left,o=e.right,d=h.length,u=o.length;let c;for(d>0&&u>0&&!i.objectHash&&typeof i.matchByPosition!="boolean"&&(i.matchByPosition=!ae(h,o,d,u));t0){for(let w=0;we[l]-i[l]}},X=function(e){if(!e.nested)return;const i=e.delta;if(i._t!=="a")return;let t,r;const s=i,n=e.left;let f=[],h=[];const o=[];for(t in s)if(t!=="_t")if(t[0]==="_"){const a=t;if(s[a][2]===0||s[a][2]===g)f.push(parseInt(t.slice(1),10));else throw new Error(`only removal or move can be applied at original array indices, invalid diff type: ${s[a][2]}`)}else{const a=t;s[a].length===1?h.push({index:parseInt(a,10),value:s[a][0]}):o.push({index:parseInt(a,10),delta:s[a]})}for(f=f.sort(E.numerically),t=f.length-1;t>=0;t--){r=f[t];const a=s[`_${r}`],m=n.splice(r,1)[0];a[2]===g&&h.push({index:a[1],value:m})}h=h.sort(E.numericallyBy("index"));const d=h.length;for(t=0;t0)for(t=0;t{if(typeof e=="string"&&e[0]==="_")return parseInt(e.substring(1),10);if(Array.isArray(i)&&i[2]===0)return`_${e}`;let t=+e;for(const r in l){const s=l[r];if(Array.isArray(s))if(s[2]===g){const n=parseInt(r.substring(1),10),f=s[1];if(f===+e)return n;n<=t&&f>t?t++:n>=t&&f{if(!l||!l.children)return;const e=l.delta;if(e._t!=="a")return;const i=e,t=l.children.length;let r;const s={_t:"a"};for(let n=0;n"u"&&(f=oe(i,r.childName,r.result)),s[f]!==r.result&&(s[f]=r.result)}l.setResult(s).exit()};J.filterName="arraysCollectChildren";const K=function(e){e.left instanceof Date?(e.right instanceof Date?e.left.getTime()!==e.right.getTime()?e.setResult([e.left,e.right]):e.setResult(void 0):e.setResult([e.left,e.right]),e.exit()):e.right instanceof Date&&e.setResult([e.left,e.right]).exit()};K.filterName="dates";const D=2,ue=60;let A=null;function Q(l,e){var i;if(!A){let t;if(!((i=l?.textDiff)===null||i===void 0)&&i.diffMatchPatch)t=new l.textDiff.diffMatchPatch;else{if(!e)return null;const r=new Error("The diff-match-patch library was not provided. Pass the library in through the options or use the `jsondiffpatch/with-text-diffs` entry-point.");throw r.diff_match_patch_not_found=!0,r}A={diff:function(r,s){return t.patch_toText(t.patch_make(r,s))},patch:function(r,s){const n=t.patch_apply(t.patch_fromText(s),r);for(let f=0;f"u",p=$?r.useEffect:r.useLayoutEffect,x=0,_=()=>++x,m=!1;function S(){let[t,n]=r.useState(m?_:void 0);return p(()=>{t===void 0&&n(_()),m=!0},[]),t===void 0?t:`rwb-${t.toString(32)}`}function g(){return r.useMemo(()=>"useId"in r?r.useId:S,[])()}var v="__wrap_b",c="__wrap_n",h="__wrap_o",b=(t,n,e)=>{e=e||document.querySelector(`[data-br="${t}"]`);let o=e.parentElement,u=d=>e.style.maxWidth=d+"px";e.style.maxWidth="";let s=o.clientWidth,l=o.clientHeight,i=s/2-.25,a=s+.5,f;if(s){for(u(i),i=Math.max(e.scrollWidth,i);i+1{self.__wrap_b(0,+e.dataset.brr,e)})).observe(o)},E=b.toString(),W='(self.CSS&&CSS.supports("text-wrap","balance")?1:2)',y=(t,n,e="")=>(e&&(e=`self.${c}!=1&&${e}`),r.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:(t?"":`self.${c}=self.${c}||${W};self.${v}=${E};`)+e},nonce:n})),w=r.createContext({preferNative:!0,hasProvider:!1}),R=({preferNative:t=!0,nonce:n,children:e})=>{let o=r.useMemo(()=>({preferNative:t,hasProvider:!0}),[t]);return r.createElement(w.Provider,{value:o},y(!1,n),e)},M=({ratio:t=1,preferNative:n,nonce:e,children:o,...u})=>{let s=g(),l=r.useRef(),i=r.useContext(w),a=n??i.preferNative,f=u.as||"span";return p(()=>{a&&self[c]===1||l.current&&(self[v]=b)(0,t,l.current)},[o,a,t]),p(()=>{if(!(a&&self[c]===1))return()=>{if(!l.current)return;let d=l.current[h];d&&(d.disconnect(),delete l.current[h])}},[a]),r.createElement(r.Fragment,null,r.createElement(f,{...u,"data-br":s,"data-brr":t,ref:l,style:{display:"inline-block",verticalAlign:"top",textDecoration:"inherit",textWrap:a?"balance":"initial"},suppressHydrationWarning:!0},o),y(i.hasProvider,e,`self.${v}("${s}",${t})`))},H=M;export{R as $,H as L,M as w}; diff --git a/assets/index-QSj7qAqP.js b/assets/index-QSj7qAqP.js new file mode 100644 index 00000000000..37121e03114 --- /dev/null +++ b/assets/index-QSj7qAqP.js @@ -0,0 +1 @@ +import{r}from"./index-qegmBwH1.js";import{l as s,L as i}from"./motion-minimal-gJqnz197.js";function L({children:t,features:e,strict:u=!1}){const[,c]=r.useState(!d(e)),n=r.useRef(void 0);if(!d(e)){const{renderer:o,...a}=e;n.current=o,s(a)}return r.useEffect(()=>{d(e)&&e().then(({renderer:o,...a})=>{s(a),n.current=o,c(!0)})},[]),r.createElement(i.Provider,{value:{renderer:n.current,strict:u}},t)}function d(t){return typeof t=="function"}export{L}; diff --git a/assets/index-RlvYxWmQ.js b/assets/index-RlvYxWmQ.js new file mode 100644 index 00000000000..6ccbc68f85a --- /dev/null +++ b/assets/index-RlvYxWmQ.js @@ -0,0 +1,9 @@ +import{r as y,R as p}from"./index-qegmBwH1.js";var J=Object.defineProperty,L=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,z=(h,s,a)=>s in h?J(h,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):h[s]=a,S=(h,s)=>{for(var a in s||(s={}))D.call(s,a)&&z(h,a,s[a]);if(L)for(var a of L(s))U.call(s,a)&&z(h,a,s[a]);return h},O=(h,s)=>{var a={};for(var i in h)D.call(h,i)&&s.indexOf(i)<0&&(a[i]=h[i]);if(h!=null&&L)for(var i of L(h))s.indexOf(i)<0&&U.call(h,i)&&(a[i]=h[i]);return a};/** + * @license QR Code generator library (TypeScript) + * Copyright (c) Project Nayuki. + * SPDX-License-Identifier: MIT + */var P;(h=>{const s=class{constructor(e,t,r,n){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],es.MAX_VERSION)throw new RangeError("Version value out of range");if(n<-1||n>7)throw new RangeError("Mask value out of range");this.size=e*4+17;let o=[];for(let l=0;l7)throw new RangeError("Invalid value");let l,m;for(l=r;;l++){const E=s.getNumDataCodewords(l,t)*8,M=C.getTotalBits(e,l);if(M<=E){m=M;break}if(l>=n)throw new RangeError("Data too long")}for(const E of[s.Ecc.MEDIUM,s.Ecc.QUARTILE,s.Ecc.HIGH])c&&m<=s.getNumDataCodewords(l,E)*8&&(t=E);let f=[];for(const E of e){i(E.mode.modeBits,4,f),i(E.numChars,E.mode.numCharCountBits(l),f);for(const M of E.getData())f.push(M)}u(f.length==m);const A=s.getNumDataCodewords(l,t)*8;u(f.length<=A),i(0,Math.min(4,A-f.length),f),i(0,(8-f.length%8)%8,f),u(f.length%8==0);for(let E=236;f.lengthR[M>>>3]|=E<<7-(M&7)),new s(l,t,R,o)}getModule(e,t){return 0<=e&&e>>9)*1335;const n=(t<<10|r)^21522;u(n>>>15==0);for(let o=0;o<=5;o++)this.setFunctionModule(8,o,g(n,o));this.setFunctionModule(8,7,g(n,6)),this.setFunctionModule(8,8,g(n,7)),this.setFunctionModule(7,8,g(n,8));for(let o=9;o<15;o++)this.setFunctionModule(14-o,8,g(n,o));for(let o=0;o<8;o++)this.setFunctionModule(this.size-1-o,8,g(n,o));for(let o=8;o<15;o++)this.setFunctionModule(8,this.size-15+o,g(n,o));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let r=0;r<12;r++)e=e<<1^(e>>>11)*7973;const t=this.version<<12|e;u(t>>>18==0);for(let r=0;r<18;r++){const n=g(t,r),o=this.size-11+r%3,c=Math.floor(r/3);this.setFunctionModule(o,c,n),this.setFunctionModule(c,o,n)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){const o=Math.max(Math.abs(n),Math.abs(r)),c=e+n,l=t+r;0<=c&&c{(E!=m-o||w>=l)&&R.push(M[E])});return u(R.length==c),R}drawCodewords(e){if(e.length!=Math.floor(s.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let t=0;for(let r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(let n=0;n>>3],7-(t&7)),t++)}}u(t==e.length*8)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(l,m),c||(e+=this.finderPenaltyCountPatterns(m)*s.PENALTY_N3),c=this.modules[o][f],l=1);e+=this.finderPenaltyTerminateAndCount(c,l,m)*s.PENALTY_N3}for(let o=0;o5&&e++):(this.finderPenaltyAddHistory(l,m),c||(e+=this.finderPenaltyCountPatterns(m)*s.PENALTY_N3),c=this.modules[f][o],l=1);e+=this.finderPenaltyTerminateAndCount(c,l,m)*s.PENALTY_N3}for(let o=0;oc+(l?1:0),t);const r=this.size*this.size,n=Math.ceil(Math.abs(t*20-r*10)/r)-1;return u(0<=n&&n<=9),e+=n*s.PENALTY_N4,u(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(this.version==1)return[];{const e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2;let r=[6];for(let n=this.size-7;r.lengths.MAX_VERSION)throw new RangeError("Version number out of range");let t=(16*e+128)*e+64;if(e>=2){const r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return u(208<=t&&t<=29648),t}static getNumDataCodewords(e,t){return Math.floor(s.getNumRawDataModules(e)/8)-s.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*s.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let t=[];for(let n=0;n0);for(const n of e){const o=n^r.shift();r.push(0),t.forEach((c,l)=>r[l]^=s.reedSolomonMultiply(c,o))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^(r>>>7)*285,r^=(t>>>n&1)*e;return u(r>>>8==0),r}finderPenaltyCountPatterns(e){const t=e[1];u(t<=this.size*3);const r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)}};let a=s;a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],h.QrCode=a;function i(e,t,r){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function g(e,t){return(e>>>t&1)!=0}function u(e){if(!e)throw new Error("Assertion error")}const d=class{constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(e){let t=[];for(const r of e)i(r,8,t);return new d(d.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!d.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let r=0;r=1<{(s=>{const a=class{constructor(g,u){this.ordinal=g,this.formatBits=u}};let i=a;i.LOW=new a(0,1),i.MEDIUM=new a(1,0),i.QUARTILE=new a(2,3),i.HIGH=new a(3,2),s.Ecc=i})(h.QrCode||(h.QrCode={}))})(P||(P={}));(h=>{(s=>{const a=class{constructor(g,u){this.modeBits=g,this.numBitsCharCount=u}numCharCountBits(g){return this.numBitsCharCount[Math.floor((g+7)/17)]}};let i=a;i.NUMERIC=new a(1,[10,12,14]),i.ALPHANUMERIC=new a(2,[9,11,13]),i.BYTE=new a(4,[8,16,16]),i.KANJI=new a(8,[8,10,12]),i.ECI=new a(7,[0,0,0]),s.Mode=i})(h.QrSegment||(h.QrSegment={}))})(P||(P={}));var N=P;/** + * @license qrcode.react + * Copyright (c) Paul O'Shannessy + * SPDX-License-Identifier: ISC + */var Q={L:N.QrCode.Ecc.LOW,M:N.QrCode.Ecc.MEDIUM,Q:N.QrCode.Ecc.QUARTILE,H:N.QrCode.Ecc.HIGH},H=128,k="L",$="#FFFFFF",Y="#000000",x=!1,b=4,q=.1;function G(h,s=0){const a=[];return h.forEach(function(i,g){let u=null;i.forEach(function(d,C){if(!d&&u!==null){a.push(`M${u+s} ${g+s}h${C-u}v1H${u+s}z`),u=null;return}if(C===i.length-1){if(!d)return;u===null?a.push(`M${C+s},${g+s} h1v1H${C+s}z`):a.push(`M${u+s},${g+s} h${C+1-u}v1H${u+s}z`);return}d&&u===null&&(u=C)})}),a.join("")}function X(h,s){return h.slice().map((a,i)=>i=s.y+s.h?a:a.map((g,u)=>u=s.x+s.w?g:!1))}function K(h,s,a,i){if(i==null)return null;const g=a?b:0,u=h.length+g*2,d=Math.floor(s*q),C=u/s,e=(i.width||d)*C,t=(i.height||d)*C,r=i.x==null?h.length/2-e/2:i.x*C,n=i.y==null?h.length/2-t/2:i.y*C;let o=null;if(i.excavate){let c=Math.floor(r),l=Math.floor(n),m=Math.ceil(e+r-c),f=Math.ceil(t+n-l);o={x:c,y:l,w:m,h:f}}return{x:r,y:n,h:t,w:e,excavation:o}}var ee=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function te(h){const s=h,{value:a,size:i=H,level:g=k,bgColor:u=$,fgColor:d=Y,includeMargin:C=x,style:e,imageSettings:t}=s,r=O(s,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),n=t?.src,o=y.useRef(null),c=y.useRef(null),[l,m]=y.useState(!1);y.useEffect(()=>{if(o.current!=null){const R=o.current,E=R.getContext("2d");if(!E)return;let M=N.QrCode.encodeText(a,Q[g]).getModules();const w=C?b:0,v=M.length+w*2,_=K(M,i,C,t),I=c.current,F=_!=null&&I!==null&&I.complete&&I.naturalHeight!==0&&I.naturalWidth!==0;F&&_.excavation!=null&&(M=X(M,_.excavation));const B=window.devicePixelRatio||1;R.height=R.width=i*B;const T=i/v*B;E.scale(T,T),E.fillStyle=u,E.fillRect(0,0,v,v),E.fillStyle=d,ee?E.fill(new Path2D(G(M,w))):M.forEach(function(V,W){V.forEach(function(j,Z){j&&E.fillRect(Z+w,W+w,1,1)})}),F&&E.drawImage(I,_.x+w,_.y+w,_.w,_.h)}}),y.useEffect(()=>{m(!1)},[n]);const f=S({height:i,width:i},e);let A=null;return n!=null&&(A=p.createElement("img",{src:n,key:n,style:{display:"none"},onLoad:()=>{m(!0)},ref:c})),p.createElement(p.Fragment,null,p.createElement("canvas",S({style:f,height:i,width:i,ref:o},r)),A)}function re(h){const s=h,{value:a,size:i=H,level:g=k,bgColor:u=$,fgColor:d=Y,includeMargin:C=x,imageSettings:e}=s,t=O(s,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let r=N.QrCode.encodeText(a,Q[g]).getModules();const n=C?b:0,o=r.length+n*2,c=K(r,i,C,e);let l=null;e!=null&&c!=null&&(c.excavation!=null&&(r=X(r,c.excavation)),l=p.createElement("image",{xlinkHref:e.src,height:c.h,width:c.w,x:c.x+n,y:c.y+n,preserveAspectRatio:"none"}));const m=G(r,n);return p.createElement("svg",S({height:i,width:i,viewBox:`0 0 ${o} ${o}`},t),p.createElement("path",{fill:u,d:`M0,0 h${o}v${o}H0z`,shapeRendering:"crispEdges"}),p.createElement("path",{fill:d,d:m,shapeRendering:"crispEdges"}),l)}var oe=h=>{const s=h,{renderAs:a}=s,i=O(s,["renderAs"]);return a==="svg"?p.createElement(re,S({},i)):p.createElement(te,S({},i))};export{te as QRCodeCanvas,re as QRCodeSVG,oe as default}; diff --git a/assets/index-SRCubG37.css b/assets/index-SRCubG37.css new file mode 100644 index 00000000000..1591f5a6316 --- /dev/null +++ b/assets/index-SRCubG37.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&display=swap";@import"https://raw.githubusercontent.com/sindresorhus/github-markdown-css/main/github-markdown.css";.icon-\[material-symbols--arrow-circle-right-outline-rounded\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='m12.2 13l-.9.9q-.275.275-.275.7t.275.7q.275.275.7.275t.7-.275l2.6-2.6q.3-.3.3-.7t-.3-.7l-2.6-2.6q-.275-.275-.7-.275t-.7.275q-.275.275-.275.7t.275.7l.9.9H9q-.425 0-.712.288T8 12q0 .425.288.713T9 13zm-.2 9q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20m0-8'/%3E%3C/svg%3E")}.icon-\[material-symbols--dynamic-form-outline\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M4 11q-.825 0-1.412-.587T2 9V6q0-.825.588-1.412T4 4h9v7zm0-2h7V6H4zm0 11q-.825 0-1.412-.587T2 18v-3q0-.825.588-1.412T4 13h11v7zm0-2h9v-3H4zm13 2v-9h-2V4h7l-2 5h2zM4.75 17.25h1.5v-1.5h-1.5zm0-9h1.5v-1.5h-1.5zM4 9V6zm0 9v-3z'/%3E%3C/svg%3E")}.icon-\[material-symbols--format-h1\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M5 17V7h2v4h4V7h2v10h-2v-4H7v4zm12 0V9h-2V7h4v10z'/%3E%3C/svg%3E")}.icon-\[material-symbols--format-h2\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M3 17V7h2v4h4V7h2v10H9v-4H5v4zm10 0v-4q0-.825.588-1.412T15 11h4V9h-6V7h6q.825 0 1.413.588T21 9v2q0 .825-.587 1.413T19 13h-4v2h6v2z'/%3E%3C/svg%3E")}.icon-\[material-symbols--format-h3\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M3 17V7h2v4h4V7h2v10H9v-4H5v4zm10 0v-2h6v-2h-4v-2h4V9h-6V7h6q.825 0 1.413.588T21 9v6q0 .825-.587 1.413T19 17z'/%3E%3C/svg%3E")}.icon-\[material-symbols--format-h4\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M3 17V7h2v4h4V7h2v10H9v-4H5v4zm15 0v-3h-5V7h2v5h3V7h2v5h2v2h-2v3z'/%3E%3C/svg%3E")}.icon-\[material-symbols--format-list-numbered-rounded\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M3.75 22q-.325 0-.537-.213T3 21.25q0-.325.213-.537t.537-.213H5.5v-.75h-.75q-.325 0-.537-.213T4 19q0-.325.213-.537t.537-.213h.75v-.75H3.75q-.325 0-.537-.213T3 16.75q0-.325.213-.537T3.75 16H6q.425 0 .713.288T7 17v1q0 .425-.288.713T6 19q.425 0 .713.288T7 20v1q0 .425-.288.713T6 22zm0-7q-.325 0-.537-.213T3 14.25v-2q0-.425.288-.712T4 11.25h1.5v-.75H3.75q-.325 0-.537-.213T3 9.75q0-.325.213-.537T3.75 9H6q.425 0 .713.288T7 10v1.75q0 .425-.288.713T6 12.75H4.5v.75h1.75q.325 0 .538.213T7 14.25q0 .325-.213.538T6.25 15zm1.5-7q-.325 0-.537-.213T4.5 7.25V3.5h-.75q-.325 0-.537-.213T3 2.75q0-.325.213-.537T3.75 2h1.5q.325 0 .538.213T6 2.75v4.5q0 .325-.213.538T5.25 8M10 19q-.425 0-.712-.288T9 18q0-.425.288-.712T10 17h10q.425 0 .713.288T21 18q0 .425-.288.713T20 19zm0-6q-.425 0-.712-.288T9 12q0-.425.288-.712T10 11h10q.425 0 .713.288T21 12q0 .425-.288.713T20 13zm0-6q-.425 0-.712-.288T9 6q0-.425.288-.712T10 5h10q.425 0 .713.288T21 6q0 .425-.288.713T20 7z'/%3E%3C/svg%3E")}.icon-\[material-symbols--notifications-active-outline\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M2 10q0-2.5 1.113-4.587T6.1 1.95l1.175 1.6q-1.5 1.1-2.387 2.775T4 10zm18 0q0-2-.888-3.675T16.726 3.55l1.175-1.6q1.875 1.375 2.988 3.463T22 10zM4 19v-2h2v-7q0-2.075 1.25-3.687T10.5 4.2v-.7q0-.625.438-1.062T12 2q.625 0 1.063.438T13.5 3.5v.7q2 .5 3.25 2.113T18 10v7h2v2zm8 3q-.825 0-1.412-.587T10 20h4q0 .825-.587 1.413T12 22m-4-5h8v-7q0-1.65-1.175-2.825T12 6q-1.65 0-2.825 1.175T8 10z'/%3E%3C/svg%3E")}.icon-\[material-symbols--redo\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M9.9 19q-2.425 0-4.163-1.575T4 13.5q0-2.35 1.738-3.925T9.9 8h6.3l-2.6-2.6L15 4l5 5l-5 5l-1.4-1.4l2.6-2.6H9.9q-1.575 0-2.738 1T6 13.5Q6 15 7.163 16T9.9 17H17v2z'/%3E%3C/svg%3E")}.icon-\[material-symbols--undo\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M7 19v-2h7.1q1.575 0 2.738-1T18 13.5q0-1.5-1.162-2.5T14.1 10H7.8l2.6 2.6L9 14L4 9l5-5l1.4 1.4L7.8 8h6.3q2.425 0 4.163 1.575T20 13.5q0 2.35-1.737 3.925T14.1 19z'/%3E%3C/svg%3E")}.icon-\[mingcute--add-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M11 20a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7V4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--alert-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='m13.299 3.148l8.634 14.954a1.5 1.5 0 0 1-1.299 2.25H3.366a1.5 1.5 0 0 1-1.299-2.25l8.634-14.954c.577-1 2.02-1 2.598 0M12 15a1 1 0 1 0 0 2a1 1 0 0 0 0-2m0-7a1 1 0 0 0-.993.883L11 9v4a1 1 0 0 0 1.993.117L13 13V9a1 1 0 0 0-1-1'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--align-arrow-down-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036c-.01-.003-.019 0-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M16.95 15.297a1 1 0 0 0-1.415 0L13 17.833V9a1 1 0 0 0-2 0v8.833l-2.536-2.536a1 1 0 0 0-1.414 1.415l4.243 4.242a1 1 0 0 0 1.414 0l4.243-4.242a1 1 0 0 0 0-1.415M5 3a1 1 0 1 0 0 2h14a1 1 0 1 0 0-2z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--align-bottom-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm10 4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--arow-to-up-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036c-.01-.003-.019 0-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M19 5a1 1 0 1 0 0-2H5a1 1 0 1 0 0 2zM7.05 12.703a1 1 0 0 0 1.415 0L11 10.167V20a1 1 0 0 0 2 0v-9.833l2.536 2.536a1 1 0 0 0 1.414-1.415l-4.243-4.242a1 1 0 0 0-1.414 0L7.05 11.288a1 1 0 0 0 0 1.415'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--arrow-left-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M3.636 11.293a1 1 0 0 0 0 1.414l5.657 5.657a1 1 0 0 0 1.414-1.414L6.757 13H20a1 1 0 1 0 0-2H6.757l3.95-3.95a1 1 0 0 0-1.414-1.414z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--arrow-right-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='m14.707 5.636l5.657 5.657a1 1 0 0 1 0 1.414l-5.657 5.657a1 1 0 0 1-1.414-1.414l3.95-3.95H4a1 1 0 1 1 0-2h13.243l-3.95-3.95a1 1 0 1 1 1.414-1.414'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--bold-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M13 2.5a5.5 5.5 0 0 1 4.213 9.036a5.5 5.5 0 0 1-2.992 9.96L14 21.5H6.1a1.6 1.6 0 0 1-1.593-1.454L4.5 19.9V4.1a1.6 1.6 0 0 1 1.454-1.593L6.1 2.5zm1 11H7.5v5H14a2.5 2.5 0 0 0 0-5m-1-8H7.5v5H13a2.5 2.5 0 0 0 0-5'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--book-6-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M11.121 20.615a7.935 7.935 0 0 0-.853-.457c-.733-.339-1.711-.658-2.768-.658c-1.279 0-2.438.468-3.18.862a1.592 1.592 0 0 1-1.514-.02A1.534 1.534 0 0 1 2 19V6.5c0-.621.295-1.263.898-1.629C3.672 4.401 5.414 3.5 7.5 3.5c1.581 0 3.145.51 4.5 1.31c1.355-.8 2.919-1.31 4.5-1.31c2.086 0 3.828.9 4.602 1.371c.603.366.898 1.008.898 1.629V19c0 .633-.379 1.106-.806 1.342a1.592 1.592 0 0 1-1.515.02c-.741-.394-1.9-.862-3.179-.862c-1.057 0-2.035.32-2.768.658a7.935 7.935 0 0 0-.853.457c-.284.177-.524.385-.878.385c-.356 0-.595-.208-.88-.385M4 18.294V6.542c.673-.4 2-1.042 3.5-1.042c1.23 0 2.448.418 3.5 1.042v11.752c-.885-.396-2.113-.794-3.5-.794c-1.381 0-2.609.395-3.5.794m9 0c.885-.396 2.113-.794 3.5-.794c1.381 0 2.609.395 3.5.794V6.542c-.673-.4-2-1.042-3.5-1.042c-1.23 0-2.448.418-3.5 1.042z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--check-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M21.546 5.111a1.5 1.5 0 0 1 0 2.121L10.303 18.475a1.6 1.6 0 0 1-2.263 0L2.454 12.89a1.5 1.5 0 1 1 2.121-2.121l4.596 4.596L19.424 5.111a1.5 1.5 0 0 1 2.122 0'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--check-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M21.192 5.465a1 1 0 0 1 0 1.414L9.95 18.122a1.1 1.1 0 0 1-1.556 0l-5.586-5.586a1 1 0 1 1 1.415-1.415l4.95 4.95L19.777 5.465a1 1 0 0 1 1.414 0Z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--close-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='m12 14.122l5.303 5.303a1.5 1.5 0 0 0 2.122-2.122L14.12 12l5.304-5.303a1.5 1.5 0 1 0-2.122-2.121L12 9.879L6.697 4.576a1.5 1.5 0 1 0-2.122 2.12L9.88 12l-5.304 5.304a1.5 1.5 0 1 0 2.122 2.12z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--close-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='m12 13.414l5.657 5.657a1 1 0 0 0 1.414-1.414L13.414 12l5.657-5.657a1 1 0 0 0-1.414-1.414L12 10.586L6.343 4.929A1 1 0 0 0 4.93 6.343L10.586 12l-5.657 5.657a1 1 0 1 0 1.414 1.414z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--comment-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M16 4a3 3 0 0 1 2.995 2.824L19 7v2a3 3 0 0 1 2.995 2.824L22 12v4a3 3 0 0 1-2.824 2.995L19 19v.966c0 1.02-1.143 1.594-1.954 1.033l-.096-.072L14.638 19H11a2.989 2.989 0 0 1-1.998-.762l-.14-.134L7 19.5c-.791.593-1.906.075-1.994-.879L5 18.5V17a3 3 0 0 1-2.995-2.824L2 14V7a3 3 0 0 1 2.824-2.995L5 4zm3 7h-8a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h3.638a2 2 0 0 1 1.28.464l1.088.906A1.5 1.5 0 0 1 18.5 17h.5a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1m-3-5H5a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h.5A1.5 1.5 0 0 1 7 16.5v.5l1.01-.757A3.04 3.04 0 0 1 8 16v-4a3 3 0 0 1 3-3h6V7a1 1 0 0 0-1-1'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--computer-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' fill-rule='nonzero' d='M19 3a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-4v1h1a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2h1v-1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm-6 15h-2v1h2zm6-13H5v11h14z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--copy-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M19 2a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2V4a2 2 0 0 1 2-2zm-9 13H8a1 1 0 0 0-.117 1.993L8 17h2a1 1 0 0 0 .117-1.993zm9-11H9v2h6a2 2 0 0 1 2 2v8h2zm-7 7H8a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--copy-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M19 2a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2V4a2 2 0 0 1 2-2zm-4 6H5v12h10zm-5 7a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2zm9-11H9v2h6a2 2 0 0 1 2 2v8h2zm-7 7a1 1 0 0 1 .117 1.993L12 13H8a1 1 0 0 1-.117-1.993L8 11z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--delete-2-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M14.28 2a2 2 0 0 1 1.897 1.368L16.72 5H20a1 1 0 1 1 0 2l-.003.071l-.867 12.143A3 3 0 0 1 16.138 22H7.862a3 3 0 0 1-2.992-2.786L4.003 7.07A1.01 1.01 0 0 1 4 7a1 1 0 0 1 0-2h3.28l.543-1.632A2 2 0 0 1 9.721 2zm3.717 5H6.003l.862 12.071a1 1 0 0 0 .997.929h8.276a1 1 0 0 0 .997-.929zM10 10a1 1 0 0 1 .993.883L11 11v5a1 1 0 0 1-1.993.117L9 16v-5a1 1 0 0 1 1-1m4 0a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0v-5a1 1 0 0 1 1-1m.28-6H9.72l-.333 1h5.226z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--down-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12.707 15.707a1 1 0 0 1-1.414 0L5.636 10.05A1 1 0 1 1 7.05 8.636l4.95 4.95l4.95-4.95a1 1 0 0 1 1.414 1.414z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--download-2-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M20 15a1 1 0 0 1 1 1v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4a1 1 0 1 1 2 0v4h14v-4a1 1 0 0 1 1-1M12 2a1 1 0 0 1 1 1v10.243l2.536-2.536a1 1 0 1 1 1.414 1.414l-4.066 4.066a1.25 1.25 0 0 1-1.768 0L7.05 12.121a1 1 0 1 1 1.414-1.414L11 13.243V3a1 1 0 0 1 1-1'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--drawing-board-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036c-.01-.003-.019 0-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 3a1 1 0 0 1 1 1v1h8a1 1 0 1 1 0 2v9a1 1 0 1 1 0 2h-4.586l1.293 1.293a1 1 0 0 1-1.414 1.414L13.586 18h-3.172l-2.707 2.707a1 1 0 0 1-1.414-1.414L7.586 18H3a1 1 0 1 1 0-2V7a1 1 0 0 1 0-2h8V4a1 1 0 0 1 1-1m7 13V7H5v9z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--edit-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M13 3a1 1 0 0 1 .117 1.993L13 5H5v14h14v-8a1 1 0 0 1 1.993-.117L21 11v8a2 2 0 0 1-1.85 1.995L19 21H5a2 2 0 0 1-1.995-1.85L3 19V5a2 2 0 0 1 1.85-1.995L5 3zm6.243.343a1 1 0 0 1 1.497 1.32l-.083.095l-9.9 9.899a1 1 0 0 1-1.497-1.32l.083-.094z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--emoji-2-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m0 2a8 8 0 1 0 0 16a8 8 0 0 0 0-16m3.167 8c1.012 0 1.833.82 1.833 1.833V14a5 5 0 0 1-10 0v-.167C7 12.821 7.82 12 8.833 12zM15 14H9a3 3 0 1 0 6 0M9 7a1 1 0 0 1 .993.883L10 8v2a1 1 0 0 1-1.993.117L8 10V8a1 1 0 0 1 1-1m5.293.293a1 1 0 0 1 1.497 1.32l-.083.094l-.293.293l.293.293a1 1 0 0 1-1.32 1.497l-.094-.083l-1-1a1 1 0 0 1-.083-1.32l.083-.094z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--emoji-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m0 2a8 8 0 1 0 0 16a8 8 0 0 0 0-16m2.8 9.857a1 1 0 1 1 1.4 1.428A5.984 5.984 0 0 1 12 17a5.984 5.984 0 0 1-4.2-1.715a1 1 0 0 1 1.4-1.428A3.984 3.984 0 0 0 12 15c1.09 0 2.077-.435 2.8-1.143M8.5 8a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3m7 0a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--external-link-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M11 6a1 1 0 1 1 0 2H5v11h11v-6a1 1 0 1 1 2 0v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2zm9-3a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V6.414l-8.293 8.293a1 1 0 0 1-1.414-1.414L17.586 5H15a1 1 0 1 1 0-2Z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--eye-2-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M4 12.001c.003-.016.017-.104.095-.277c.086-.191.225-.431.424-.708c.398-.553.993-1.192 1.745-1.798C7.777 7.996 9.812 7 12 7c2.188 0 4.223.996 5.736 2.216c.752.606 1.347 1.245 1.745 1.798c.2.277.338.517.424.708c.078.173.092.261.095.277V12c-.003.016-.017.104-.095.277a4.251 4.251 0 0 1-.424.708c-.398.553-.993 1.192-1.745 1.798C16.224 16.004 14.189 17 12 17c-2.188 0-4.223-.996-5.736-2.216c-.752-.606-1.347-1.245-1.745-1.798a4.226 4.226 0 0 1-.424-.708A1.115 1.115 0 0 1 4 12.001M12 5C9.217 5 6.752 6.254 5.009 7.659c-.877.706-1.6 1.474-2.113 2.187a6.157 6.157 0 0 0-.625 1.055C2.123 11.23 2 11.611 2 12c0 .388.123.771.27 1.099c.155.342.37.7.626 1.055c.513.713 1.236 1.48 2.113 2.187C6.752 17.746 9.217 19 12 19c2.783 0 5.248-1.254 6.991-2.659c.877-.706 1.6-1.474 2.113-2.187c.257-.356.471-.713.625-1.055c.148-.328.271-.71.271-1.099c0-.388-.123-.771-.27-1.099a6.197 6.197 0 0 0-.626-1.055c-.513-.713-1.236-1.48-2.113-2.187C17.248 6.254 14.783 5 12 5m-1 7a1 1 0 1 1 2 0a1 1 0 0 1-2 0m1-3a3 3 0 1 0 0 6a3 3 0 0 0 0-6'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--eye-close-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M3.05 9.31a1 1 0 1 1 1.914-.577c2.086 6.986 11.982 6.987 14.07.004a1 1 0 1 1 1.918.57a9.509 9.509 0 0 1-1.813 3.417L20.414 14A1 1 0 0 1 19 15.414l-1.311-1.311a9.116 9.116 0 0 1-2.32 1.269l.357 1.335a1 1 0 1 1-1.931.518l-.364-1.357c-.947.14-1.915.14-2.862 0l-.364 1.357a1 1 0 1 1-1.931-.518l.357-1.335a9.118 9.118 0 0 1-2.32-1.27l-1.31 1.312A1 1 0 0 1 3.585 14l1.275-1.275c-.784-.936-1.41-2.074-1.812-3.414Z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--eye-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 4c2.787 0 5.263 1.257 7.026 2.813c.885.781 1.614 1.658 2.128 2.531c.505.857.846 1.786.846 2.656c0 .87-.34 1.799-.846 2.656c-.514.873-1.243 1.75-2.128 2.531C17.263 18.743 14.786 20 12 20c-2.787 0-5.263-1.257-7.026-2.813c-.885-.781-1.614-1.658-2.128-2.531C2.34 13.799 2 12.87 2 12c0-.87.34-1.799.846-2.656c.514-.873 1.243-1.75 2.128-2.531C6.737 5.257 9.214 4 12 4m0 2c-2.184 0-4.208.993-5.702 2.312c-.744.656-1.332 1.373-1.729 2.047C4.163 11.049 4 11.62 4 12c0 .38.163.951.569 1.641c.397.674.985 1.39 1.729 2.047C7.792 17.007 9.816 18 12 18s4.208-.993 5.702-2.312c.744-.657 1.332-1.373 1.729-2.047c.406-.69.569-1.261.569-1.641c0-.38-.163-.951-.569-1.641c-.397-.674-.985-1.39-1.729-2.047C16.208 6.993 14.184 6 12 6m0 3c.088 0 .175.004.261.011a2 2 0 0 0 2.728 2.728A3 3 0 1 1 12 9'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--file-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M13.586 2a2 2 0 0 1 1.284.467l.13.119L19.414 7a2 2 0 0 1 .578 1.238l.008.176V20a2 2 0 0 1-1.85 1.995L18 22H6a2 2 0 0 1-1.995-1.85L4 20V4a2 2 0 0 1 1.85-1.995L6 2zM12 4H6v16h12V10h-4.5A1.5 1.5 0 0 1 12 8.5zm2 .414V8h3.586z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--font-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M5.926 20.376a1 1 0 0 1-1.852-.752l6.311-15.537a1.743 1.743 0 0 1 3.23 0l6.312 15.537a1 1 0 1 1-1.853.752L15.889 15H8.111zM8.923 13h6.154L12 5.426z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--fullscreen-2-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M9.793 12.793a1 1 0 0 1 1.497 1.32l-.083.094L6.414 19H9a1 1 0 0 1 .117 1.993L9 21H4a1 1 0 0 1-.993-.883L3 20v-5a1 1 0 0 1 1.993-.117L5 15v2.586zM20 3a1 1 0 0 1 .993.883L21 4v5a1 1 0 0 1-1.993.117L19 9V6.414l-4.793 4.793a1 1 0 0 1-1.497-1.32l.083-.094L17.586 5H15a1 1 0 0 1-.117-1.993L15 3z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--github-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M6.315 6.176c-.25-.638-.24-1.367-.129-2.034a6.77 6.77 0 0 1 2.12 1.07c.28.214.647.283.989.18A9.343 9.343 0 0 1 12 5c.961 0 1.874.14 2.703.391c.342.104.709.034.988-.18a6.77 6.77 0 0 1 2.119-1.07c.111.667.12 1.396-.128 2.033c-.15.384-.075.826.208 1.14C18.614 8.117 19 9.04 19 10c0 2.114-1.97 4.187-5.134 4.818c-.792.158-1.101 1.155-.495 1.726c.389.366.629.882.629 1.456v3a1 1 0 0 0 2 0v-3c0-.57-.12-1.112-.334-1.603C18.683 15.35 21 12.993 21 10c0-1.347-.484-2.585-1.287-3.622c.21-.82.191-1.646.111-2.28c-.071-.568-.17-1.312-.57-1.756c-.595-.659-1.58-.271-2.28-.032a9.081 9.081 0 0 0-2.125 1.045A11.432 11.432 0 0 0 12 3c-.994 0-1.953.125-2.851.356a9.08 9.08 0 0 0-2.125-1.045c-.7-.24-1.686-.628-2.281.031c-.408.452-.493 1.137-.566 1.719l-.005.038c-.08.635-.098 1.462.112 2.283C3.484 7.418 3 8.654 3 10c0 2.992 2.317 5.35 5.334 6.397A3.986 3.986 0 0 0 8 17.98l-.168.034c-.717.099-1.176.01-1.488-.122c-.76-.322-1.152-1.133-1.63-1.753c-.298-.385-.732-.866-1.398-1.088a1 1 0 0 0-.632 1.898c.558.186.944 1.142 1.298 1.566c.373.448.869.916 1.58 1.218c.682.29 1.483.393 2.438.276V21a1 1 0 0 0 2 0v-3c0-.574.24-1.09.629-1.456c.607-.572.297-1.568-.495-1.726C6.969 14.187 5 12.114 5 10c0-.958.385-1.881 1.108-2.684c.283-.314.357-.756.207-1.14'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--hashtag-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M10.124 3.008a1 1 0 0 1 .868 1.116L10.508 8h3.984l.516-4.124a1 1 0 1 1 1.984.248L16.508 8H20a1 1 0 1 1 0 2h-3.742l-.5 4H19.5a1 1 0 1 1 0 2h-3.992l-.516 4.124a1 1 0 1 1-1.984-.248L13.492 16H9.508l-.516 4.124a1 1 0 1 1-1.984-.248L7.492 16H4.5a1 1 0 1 1 0-2h3.242l.5-4H5a1 1 0 0 1 0-2h3.492l.516-4.124a1 1 0 0 1 1.116-.868M13.742 14l.5-4h-3.984l-.5 4z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--heart-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M18.494 3.801c2.095 1.221 3.569 3.7 3.504 6.592C21.86 16.5 13.5 21 12 21s-9.861-4.5-9.998-10.607c-.065-2.892 1.409-5.37 3.504-6.592C7.466 2.66 9.928 2.653 12 4.338c2.072-1.685 4.534-1.679 6.494-.537'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--heart-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M18.494 3.801c2.095 1.221 3.569 3.7 3.504 6.592c-.081 3.61-2.89 6.794-7.679 9.638c-.71.422-1.458.969-2.319.969c-.845 0-1.625-.557-2.32-.97c-4.787-2.843-7.597-6.028-7.678-9.637c-.065-2.892 1.409-5.37 3.504-6.592C7.466 2.66 9.928 2.653 12 4.338c2.072-1.685 4.534-1.679 6.494-.537M17.487 5.53c-1.394-.812-3.136-.783-4.644.743a1.188 1.188 0 0 1-1.686 0c-1.508-1.526-3.25-1.555-4.644-.743c-1.444.842-2.56 2.628-2.511 4.82c.056 2.511 2.04 5.194 6.7 7.962c.408.243.834.554 1.298.683c.464-.129.89-.44 1.298-.683c4.66-2.768 6.644-5.45 6.7-7.963c.05-2.19-1.067-3.977-2.511-4.819'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--information-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m-.01 8H11a1 1 0 0 0-.117 1.993L11 12v4.99c0 .52.394.95.9 1.004l.11.006h.49a1 1 0 0 0 .596-1.803L13 16.134V11.01c0-.52-.394-.95-.9-1.004zM12 7a1 1 0 1 0 0 2a1 1 0 0 0 0-2'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--italic-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M16 2.5h-6a1.5 1.5 0 0 0 0 3h1.3l-1.624 13H8a1.5 1.5 0 0 0 0 3h6a1.5 1.5 0 0 0 0-3h-1.3l1.624-13H16a1.5 1.5 0 0 0 0-3'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--list-check-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M20 17.5a1.5 1.5 0 0 1 0 3H9a1.5 1.5 0 0 1 0-3zm-15.5 0a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3m15.5-7a1.5 1.5 0 0 1 .144 2.993L20 13.5H9a1.5 1.5 0 0 1-.144-2.993L9 10.5zm-15.5 0a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3m0-7a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3m15.5 0a1.5 1.5 0 0 1 .144 2.993L20 6.5H9a1.5 1.5 0 0 1-.144-2.993L9 3.5z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--list-expansion-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M4 4a1 1 0 0 0 0 2h8a1 1 0 1 0 0-2zm16.837 1.606c.132-.257-.062-.556-.38-.583l-.565-.042l-.464-.026l-.527-.02l-.585-.011h-.61l-.555.01l-.504.018l-.65.036l-.51.04c-.296.026-.461.298-.332.552l.15.289l.19.346l.228.398c.04.07.084.142.129.217l.288.467l.322.496l.31.455c.05.072.1.141.148.208l.274.375l.242.318l.206.261c.183.226.53.235.704.02l.326-.415l.263-.35l.292-.408c.153-.217.314-.454.48-.71l.156-.243l.282-.457l.244-.416l.108-.19l.188-.345zm0 10c.132-.258-.062-.556-.38-.583l-.565-.043l-.464-.025l-.527-.02l-.585-.011h-.61l-.555.01l-.504.018l-.448.023l-.558.04a22.24 22.24 0 0 0-.154.012c-.296.027-.461.299-.332.553l.15.288l.19.346l.228.399c.04.07.084.142.129.217l.288.467l.16.248c.109.17.216.33.32.482l.3.429l.274.375l.242.318l.206.26c.183.227.53.236.704.021l.326-.415l.263-.35l.292-.408c.153-.217.314-.455.48-.71l.301-.476l.264-.437c.081-.14.156-.27.225-.394l.188-.344zM3 12a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2H4a1 1 0 0 1-1-1m1 6a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--mail-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M20 4a2 2 0 0 1 1.995 1.85L22 6v12a2 2 0 0 1-1.85 1.995L20 20H4a2 2 0 0 1-1.995-1.85L2 18V6a2 2 0 0 1 1.85-1.995L4 4zm0 3.414l-6.94 6.94a1.5 1.5 0 0 1-2.12 0L4 7.414V18h16zM18.586 6H5.414L12 12.586z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--menu-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M20 18a1 1 0 0 1 .117 1.993L20 20H4a1 1 0 0 1-.117-1.993L4 18zm0-7a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zm0-7a1 1 0 1 1 0 2H4a1 1 0 0 1 0-2z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--moon-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M13.574 3.137a1.01 1.01 0 0 0-1.097 1.409a6 6 0 0 1-7.931 7.931a1.01 1.01 0 0 0-1.409 1.097A9 9 0 0 0 21 12c0-4.434-3.206-8.118-7.426-8.863m1.307 2.481A7.002 7.002 0 0 1 12 19a7.002 7.002 0 0 1-6.382-4.12a8 8 0 0 0 9.263-9.263Z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--pen-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12.138 4.538a2 2 0 0 1 2.031.328l.126.115l4.724 4.724a2 2 0 0 1 .5 1.997l-.057.16l-2.365 5.913a1.999 1.999 0 0 1-1.605 1.24l-5.079.635c-.13.015-.268.034-.41.056l-.444.072l-.232.042l-.723.14l-.495.106l-.745.167l-.955.228l-1.552.396l-.646.174a1.01 1.01 0 0 1-1.265-1.134l.034-.146l.295-1.112l.264-1.048l.228-.955l.167-.745l.105-.496l.141-.722l.08-.457l.064-.428l.66-5.28a1.999 1.999 0 0 1 1.09-1.536l.151-.069zm.742 1.857L6.968 8.76l-.584 4.672l-.048.396a26.886 26.886 0 0 1-.385 2.192l-.171.786l3.288-3.288a2 2 0 1 1 1.414 1.414L7.194 18.22l.392-.087l.784-.165a27.455 27.455 0 0 1 1.473-.26l5.397-.676l2.365-5.912zm2.363-3.294a1 1 0 0 1 1.32-.084l.094.084l4.242 4.242a1 1 0 0 1-1.32 1.498l-.094-.084l-4.242-4.242a1 1 0 0 1 0-1.414'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--pin-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M16.735 2.835a2 2 0 0 0-2.615-.186l-2.913 2.185a9 9 0 0 1-4.127 1.71l-2.177.31c-.73.105-1.265.891-.913 1.662c.331.723 1.385 2.629 4.36 5.72l-4.178 4.178a1 1 0 1 0 1.414 1.414l4.178-4.178c3.091 2.975 4.997 4.029 5.72 4.36c.77.352 1.557-.183 1.661-.913l.311-2.177a9 9 0 0 1 1.71-4.127L21.35 9.88a2 2 0 0 0-.186-2.615zM15.32 4.25l4.43 4.43l-2.184 2.914a11 11 0 0 0-2.09 5.044l-.143 1.001c-.98-.624-2.603-1.837-4.869-4.103C8.2 11.27 6.986 9.648 6.362 8.668l1-.143a11 11 0 0 0 5.045-2.09z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--qq-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 2a6.285 6.285 0 0 0-6.276 5.937l-.146 2.63a28.04 28.04 0 0 0-.615 1.41c-1.24 3.073-1.728 5.773-1.088 6.032c.335.135.913-.426 1.566-1.432a6.672 6.672 0 0 0 1.968 3.593c-1.027.35-1.91.828-1.91 1.33c0 .509 2.48.503 4.239.5h.001c.549-.002 1.01-.008 1.38-.057a6.742 6.742 0 0 0 1.76 0c.37.05.833.055 1.382.056c1.76.004 4.239.01 4.239-.499c0-.502-.883-.979-1.909-1.33a6.672 6.672 0 0 0 1.967-3.586c.65 1.002 1.227 1.56 1.56 1.425c.64-.259.154-2.96-1.088-6.032a28.08 28.08 0 0 0-.607-1.395l-.147-2.645A6.285 6.285 0 0 0 12 2'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--question-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m0 2a8 8 0 1 0 0 16a8 8 0 0 0 0-16m0 12a1 1 0 1 1 0 2a1 1 0 0 1 0-2m0-9.5a3.625 3.625 0 0 1 1.348 6.99a.837.837 0 0 0-.305.201c-.044.05-.051.114-.05.18L13 14a1 1 0 0 1-1.993.117L11 14v-.25c0-1.153.93-1.845 1.604-2.116a1.626 1.626 0 1 0-2.229-1.509a1 1 0 1 1-2 0A3.625 3.625 0 0 1 12 6.5'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--quill-pen-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M5.708 13.35c.625-1.92 1.75-4.379 3.757-6.386c3.934-3.934 9.652-4.515 9.797-4.53a1.005 1.005 0 0 1 .944.454c.208.313 1.38 2.283-.191 4.663a2.63 2.63 0 0 1-.276.344a.996.996 0 0 1-.03.37c-.19.689-.434 1.412-.75 2.135c-.551 1.263-1.328 2.54-2.423 3.636c-2.05 2.05-4.742 2.991-6.844 3.43a19.357 19.357 0 0 1-2.883.378C6.778 18.09 6.5 20.57 6.5 21a1 1 0 1 1-2 0c0-.571.116-1.67.221-2.56c.205-1.732.446-3.427.987-5.09m12.637-6.9c.527-.8.52-1.48.415-1.92c-1.527.275-5.219 1.186-7.881 3.849c-1.704 1.703-2.7 3.84-3.269 5.59a17.75 17.75 0 0 0-.494 1.85a17.417 17.417 0 0 0 2.167-.31c1.92-.402 4.179-1.228 5.838-2.888c.85-.85 1.484-1.857 1.954-2.905c-.976.52-2.018.986-2.759 1.233a1 1 0 1 1-.632-1.898c.674-.225 1.758-.713 2.754-1.265c.494-.274.946-.553 1.301-.808c.384-.276.56-.46.606-.529Z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--refresh-2-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M2 12.08c-.006-.862.91-1.356 1.618-.975l.095.058l2.678 1.804c.972.655.377 2.143-.734 2.007l-.117-.02l-1.063-.234a8.002 8.002 0 0 0 14.804.605a1 1 0 0 1 1.82.828c-1.987 4.37-6.896 6.793-11.687 5.509A10.003 10.003 0 0 1 2 12.08m.903-4.228C4.89 3.482 9.799 1.06 14.59 2.343a10.002 10.002 0 0 1 7.414 9.581c.007.863-.91 1.358-1.617.976l-.096-.058l-2.678-1.804c-.972-.655-.377-2.143.734-2.007l.117.02l1.063.234A8.002 8.002 0 0 0 4.723 8.68a1 1 0 1 1-1.82-.828'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--rss-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036c-.01-.003-.019 0-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M18 3a3 3 0 0 1 2.995 2.824L21 6v12a3 3 0 0 1-2.824 2.995L18 21H6a3 3 0 0 1-2.995-2.824L3 18V6a3 3 0 0 1 2.824-2.995L6 3zm0 2H6a1 1 0 0 0-.993.883L5 6v12a1 1 0 0 0 .883.993L6 19h12a1 1 0 0 0 .993-.883L19 18V6a1 1 0 0 0-.883-.993zm-9.5 9a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3M8 10.5a5.5 5.5 0 0 1 5.5 5.5a1 1 0 1 1-2 0A3.5 3.5 0 0 0 8 12.5a1 1 0 1 1 0-2M8.5 7a8.5 8.5 0 0 1 8.481 9.066a1 1 0 1 1-1.995-.132a6.5 6.5 0 0 0-6.92-6.92a1 1 0 1 1-.132-1.995C8.121 7.006 8.31 7 8.5 7'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--search-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M10.5 2a8.5 8.5 0 1 0 5.262 15.176l3.652 3.652a1 1 0 0 0 1.414-1.414l-3.652-3.652A8.5 8.5 0 0 0 10.5 2M4 10.5a6.5 6.5 0 1 1 13 0a6.5 6.5 0 0 1-13 0'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--send-plane-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M20.25 3.532a1 1 0 0 1 1.183 1.329l-6 15.5a1 1 0 0 1-1.624.362l-3.382-3.235l-1.203 1.202c-.636.636-1.724.186-1.724-.714v-3.288L2.309 9.723a1 1 0 0 1 .442-1.691l17.5-4.5Zm-2.114 4.305l-7.998 6.607l3.97 3.798zm-1.578-1.29L4.991 9.52l3.692 3.53l7.875-6.505Z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--settings-6-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036c-.01-.003-.019 0-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M16 15c1.306 0 2.418.835 2.83 2H20a1 1 0 1 1 0 2h-1.17a3.001 3.001 0 0 1-5.66 0H4a1 1 0 1 1 0-2h9.17A3.001 3.001 0 0 1 16 15m0 2a1 1 0 1 0 0 2a1 1 0 0 0 0-2M8 9a3 3 0 0 1 2.762 1.828l.067.172H20a1 1 0 0 1 .117 1.993L20 13h-9.17a3.001 3.001 0 0 1-5.592.172L5.17 13H4a1 1 0 0 1-.117-1.993L4 11h1.17A3.001 3.001 0 0 1 8 9m0 2a1 1 0 1 0 0 2a1 1 0 0 0 0-2m8-8c1.306 0 2.418.835 2.83 2H20a1 1 0 1 1 0 2h-1.17a3.001 3.001 0 0 1-5.66 0H4a1 1 0 0 1 0-2h9.17A3.001 3.001 0 0 1 16 3m0 2a1 1 0 1 0 0 2a1 1 0 0 0 0-2'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--share-forward-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M10.114 4.491c.076-.795.906-1.45 1.743-.972c1.74 1.019 3.382 2.18 4.97 3.421c1.96 1.548 3.533 3.007 4.647 4.172c.483.507.438 1.308-.024 1.792a42.072 42.072 0 0 1-3.495 3.228c-1.938 1.587-3.945 3.125-6.13 4.358c-.741.418-1.544-.06-1.687-.801l-.017-.113l-.227-3.574c-1.816.038-3.574.662-4.98 1.823l-.265.222l-.128.104l-.247.192c-.04.03-.08.06-.12.088l-.23.16a4.72 4.72 0 0 1-.218.135l-.206.111C2.534 19.314 2 18.892 2 17c0-4.404 3.245-8.323 7.632-8.917l.259-.031zm1.909 1.474l-.192 3.472a.5.5 0 0 1-.447.47l-1.361.142c-3.065.366-5.497 2.762-5.948 5.894a9.952 9.952 0 0 1 5.135-1.912l.397-.023l1.704-.036a.5.5 0 0 1 .51.472l.197 3.596c1.603-1.021 3.131-2.196 4.664-3.45a43.717 43.717 0 0 0 2.857-2.595l-.258-.256l-.556-.533a48.15 48.15 0 0 0-3.134-2.693a46.172 46.172 0 0 0-3.568-2.548'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--sort-descending-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M18 4a1 1 0 0 1 1 1v12.414l1.121-1.121a1 1 0 0 1 1.415 1.414l-2.829 2.828a1 1 0 0 1-1.414 0l-2.828-2.828a1 1 0 1 1 1.414-1.414L17 17.414V5a1 1 0 0 1 1-1m-7 14a1 1 0 0 1 .117 1.993L11 20H4a1 1 0 0 1-.117-1.993L4 18zm2-7a1 1 0 0 1 .117 1.993L13 13H4a1 1 0 0 1-.117-1.993L4 11zm0-7a1 1 0 1 1 0 2H4a1 1 0 0 1 0-2z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--sparkles-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M5.827 13.004a.19.19 0 0 1 .346 0l.17.371a8.693 8.693 0 0 0 3.3 3.638l.265.155a.181.181 0 0 1 0 .316l-.265.155a8.693 8.693 0 0 0-3.3 3.638l-.17.372a.19.19 0 0 1-.346 0l-.17-.372a8.693 8.693 0 0 0-3.3-3.638l-.265-.155a.181.181 0 0 1 0-.316l.265-.155a8.693 8.693 0 0 0 3.47-4.01Zm.17 3.486l-.175.206c-.125.14-.253.277-.385.41l-.2.198l-.027.024l.227.223l.195.203l.19.208l.175.205l.175-.205c.125-.14.253-.278.385-.411l.227-.223l-.027-.024c-.135-.13-.267-.263-.395-.4l-.19-.208zm8.476-13.76a.331.331 0 0 1 .605 0l.15.336l.148.314l.195.39l.226.42l.112.196a15.214 15.214 0 0 0 3.895 4.437l.427.317a15.192 15.192 0 0 0 1.383.878a.317.317 0 0 1 0 .553a15.258 15.258 0 0 0-1.082.67l-.36.251a15.213 15.213 0 0 0-4.263 4.71l-.131.232a14.95 14.95 0 0 0-.402.775l-.147.314l-.15.336a.331.331 0 0 1-.606 0l-.15-.336l-.148-.314l-.196-.39l-.225-.42l-.113-.196a15.214 15.214 0 0 0-3.894-4.437l-.428-.316a15.153 15.153 0 0 0-1.382-.88a.317.317 0 0 1 0-.552a15.298 15.298 0 0 0 1.082-.669l.36-.252a15.215 15.215 0 0 0 4.262-4.71l.132-.232c.141-.254.275-.512.402-.775l.147-.314zm.302 3.615a17.215 17.215 0 0 1-3.663 3.95a17.214 17.214 0 0 1 3.663 3.95a17.212 17.212 0 0 1 3.663-3.95a17.213 17.213 0 0 1-3.663-3.95'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--star-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M10.92 2.868a1.25 1.25 0 0 1 2.16 0l2.795 4.798l5.428 1.176a1.25 1.25 0 0 1 .667 2.054l-3.7 4.141l.56 5.525a1.25 1.25 0 0 1-1.748 1.27L12 19.592l-5.082 2.24a1.25 1.25 0 0 1-1.748-1.27l.56-5.525l-3.7-4.14a1.25 1.25 0 0 1 .667-2.055l5.428-1.176zM12 4.987L9.687 8.959a1.25 1.25 0 0 1-.816.592l-4.492.973l3.062 3.427c.234.262.347.61.312.959l-.463 4.573l4.206-1.854a1.25 1.25 0 0 1 1.008 0l4.206 1.854l-.463-4.573a1.25 1.25 0 0 1 .311-.959l3.063-3.427l-4.492-.973a1.25 1.25 0 0 1-.816-.592z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--sun-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 19a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1m6.364-2.05l.707.707a1 1 0 0 1-1.414 1.414l-.707-.707a1 1 0 0 1 1.414-1.414m-12.728 0a1 1 0 0 1 1.497 1.32l-.083.094l-.707.707a1 1 0 0 1-1.497-1.32l.083-.094zM12 6a6 6 0 1 1 0 12a6 6 0 0 1 0-12m0 2a4 4 0 1 0 0 8a4 4 0 0 0 0-8m-8 3a1 1 0 0 1 .117 1.993L4 13H3a1 1 0 0 1-.117-1.993L3 11zm17 0a1 1 0 1 1 0 2h-1a1 1 0 1 1 0-2zM4.929 4.929a1 1 0 0 1 1.32-.083l.094.083l.707.707a1 1 0 0 1-1.32 1.497l-.094-.083l-.707-.707a1 1 0 0 1 0-1.414m14.142 0a1 1 0 0 1 0 1.414l-.707.707a1 1 0 1 1-1.414-1.414l.707-.707a1 1 0 0 1 1.414 0M12 2a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0V3a1 1 0 0 1 1-1'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--teacup-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' fill-rule='nonzero' d='M17 4a2 2 0 0 1 2 2v2.035A3.5 3.5 0 0 1 18.5 15h-.788a8.542 8.542 0 0 1-3.208 3H17a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2h2.496A8.499 8.499 0 0 1 2 10.5V6a2 2 0 0 1 2-2zm0 2H4v4.5l.004.233a6.5 6.5 0 0 0 12.992 0L17 10.5zm2 4.085v.415c0 .868-.13 1.706-.372 2.495a1.5 1.5 0 0 0 .503-2.856z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--telegram-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M21.84 6.056a1.5 1.5 0 0 0-2.063-1.626l-17.1 7.2c-1.192.502-1.253 2.226 0 2.746a56.46 56.46 0 0 0 3.774 1.418c1.168.386 2.442.743 3.463.844c.279.334.63.656.988.95c.547.45 1.205.913 1.885 1.357c1.362.89 2.873 1.741 3.891 2.295c1.217.66 2.674-.1 2.892-1.427zM4.594 12.993l15.124-6.368l-2.118 12.84c-.999-.543-2.438-1.356-3.72-2.194a19.982 19.982 0 0 1-1.709-1.229a7.962 7.962 0 0 1-.426-.374l3.961-3.96a1 1 0 0 0-1.414-1.415L9.955 14.63c-.734-.094-1.756-.366-2.878-.736a48.89 48.89 0 0 1-2.482-.902Z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--thumb-up-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M8.993 5.163c.169 1.423-.062 2.907-.576 4.239c-.569 1.474-1.325 3.07-1.419 4.657c-.079 1.337.224 2.919 1.032 4.002C8.915 19.247 10.368 20 11.967 20h1.512a5 5 0 0 0 4.983-4.585l.361-4.332A1 1 0 0 0 17.826 10H12.5a1.503 1.503 0 0 1-1.501-1.492c-.008-.97.053-2.167-.393-3.06c-.4-.8-.774-.948-1.106-.948c-.3 0-.54.393-.507.663M9.5 2.5c1.356 0 2.294.852 2.895 2.053c.522 1.045.571 2.3.597 3.447h4.834a3 3 0 0 1 2.99 3.25l-.361 4.331A7 7 0 0 1 13.479 22h-1.512A6.937 6.937 0 0 1 6.9 19.822A5.54 5.54 0 0 1 5.5 20c-1.108 0-2.028-.62-2.624-1.608C2.296 17.432 2 16.107 2 14.5c0-1.606.297-2.931.876-3.891C3.472 9.62 4.392 9 5.5 9c.281 0 .579.05.877.134c.458-1.2.784-2.437.63-3.735C6.835 3.954 8.016 2.5 9.5 2.5m-3.804 8.524c-.485-.1-.865.216-1.107.618C4.263 12.182 4 13.106 4 14.5c0 1.394.263 2.319.588 2.859c.31.512.64.641.912.641c.064 0 .127-.002.19-.005c-.536-1.208-.766-2.74-.688-4.054c.047-.805.361-1.918.694-2.917'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--twitter-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M17.817 6.989c-.353-.508-1.297-1.222-2.826-.914c-.892.179-1.425.62-1.764 1.202c-.361.62-.536 1.463-.536 2.444a1 1 0 0 1-1 1c-2.366 0-4.618-.703-6.513-2.604a10.52 10.52 0 0 0-.168 2.34c.053 1.086.312 2.175.927 3.108c.605.917 1.6 1.757 3.264 2.285a1 1 0 0 1 .41 1.655a8.52 8.52 0 0 1-1.796 1.405c1.06.11 2.082.118 3.03.032c1.92-.174 3.449-.723 4.405-1.5c2.013-1.632 3.09-4.066 2.89-8.144c-.034-.67.613-1.393.925-1.942c-.471.088-.943.072-1.248-.367M4.594 4.984a1 1 0 0 1 .941.429C7.011 7.572 8.783 8.47 10.75 8.674c.096-.841.323-1.672.75-2.404c.626-1.074 1.644-1.864 3.098-2.156c2.01-.404 3.54.324 4.427 1.215l1.792-.335a1 1 0 0 1 1.053 1.478l-1.72 3.022c.157 4.361-1.055 7.405-3.639 9.502c-1.37 1.112-3.332 1.743-5.485 1.938c-2.17.196-4.623-.041-7.061-.753a1 1 0 0 1 .007-1.922c1.226-.349 2.16-.65 3.003-1.177c-1.199-.636-2.082-1.468-2.707-2.416c-.868-1.318-1.19-2.788-1.254-4.113c-.064-1.325.127-2.553.329-3.438c.115-.505.249-1.011.434-1.495a1 1 0 0 1 .818-.636Z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--up-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M11.293 8.293a1 1 0 0 1 1.414 0l5.657 5.657a1 1 0 0 1-1.414 1.414L12 10.414l-4.95 4.95a1 1 0 0 1-1.414-1.414z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--user-4-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036c-.01-.003-.019 0-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 2c5.523 0 10 4.477 10 10a9.959 9.959 0 0 1-2.258 6.33l.02.022l-.132.112A9.978 9.978 0 0 1 12 22c-2.95 0-5.6-1.277-7.43-3.307l-.2-.23l-.132-.11l.02-.024A9.958 9.958 0 0 1 2 12C2 6.477 6.477 2 12 2m0 15c-1.86 0-3.541.592-4.793 1.406A7.965 7.965 0 0 0 12 20a7.965 7.965 0 0 0 4.793-1.594A8.897 8.897 0 0 0 12 17m0-13a8 8 0 0 0-6.258 12.984C7.363 15.821 9.575 15 12 15s4.637.821 6.258 1.984A8 8 0 0 0 12 4m0 2a4 4 0 1 1 0 8a4 4 0 0 1 0-8m0 2a2 2 0 1 0 0 4a2 2 0 0 0 0-4'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--warning-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m0 2a8 8 0 1 0 0 16a8 8 0 0 0 0-16m0 11a1 1 0 1 1 0 2a1 1 0 0 1 0-2m0-9a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--wechat-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M16 10c3.154 0 6 2.186 6 5.213c0 1.696-.92 3.153-2.26 4.08c-.044.265-.008.532-.008.799a.903.903 0 0 1-.897.908c-.68 0-1.31-.224-1.843-.645a6.895 6.895 0 0 1-.992.071c-3.154 0-6-2.186-6-5.213S12.846 10 16 10M9.5 3c3.777 0 7.149 2.535 7.474 6.062A7.686 7.686 0 0 0 16 9c-3.533 0-7 2.473-7 6.209c0 .354.031.697.09 1.027a8.506 8.506 0 0 1-.926-.094c-.67.549-1.443.858-2.31.858c-.518 0-.937-.434-.937-.97l.004-.197l.017-.397a2.103 2.103 0 0 0-.055-.59C3.17 13.667 2 11.794 2 9.624C2 5.807 5.525 3 9.5 3M14 13a1 1 0 1 0 0 2a1 1 0 0 0 0-2m4 0a1 1 0 1 0 0 2a1 1 0 0 0 0-2M7 6a1 1 0 1 0 0 2a1 1 0 0 0 0-2m5 0a1 1 0 1 0 0 2a1 1 0 0 0 0-2'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--weibo-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M13.12 5.815c.55.537.826 1.24.863 1.992c1.675-.502 3.045-.362 3.937.5c.848.82.937 1.967.617 2.964C19.9 11.961 21 13.058 21 14.715c0 1.93-1.256 3.526-2.962 4.586C16.318 20.371 14.004 21 11.5 21c-2.504 0-4.818-.63-6.538-1.699C3.256 18.241 2 16.646 2 14.715c0-1.762.842-3.589 2.05-5.156a14.557 14.557 0 0 1 4.723-3.954c1.635-.847 3.286-.828 4.347.21m-1.399 1.43c-.213-.21-.829-.485-2.028.136a12.558 12.558 0 0 0-4.06 3.4C4.576 12.154 4 13.558 4 14.715c0 .988.647 2.035 2.018 2.888C7.374 18.446 9.309 19 11.5 19c2.19 0 4.127-.554 5.482-1.397c1.371-.853 2.018-1.9 2.018-2.888c0-.711-.56-1.439-2.16-1.991a1 1 0 0 1-.473-1.546c.495-.66.355-1.248.163-1.433l-.048-.04l-.067-.042c-.337-.186-1.274-.368-3.335.661a1 1 0 0 1-1.347-1.33c.444-.92.225-1.517-.012-1.75ZM17 3c1.576 0 3.128.643 4.243 1.757A6.054 6.054 0 0 1 23 9a1 1 0 1 1-2 0c0-1.05-.429-2.086-1.172-2.828A4.036 4.036 0 0 0 17 5a1 1 0 1 1 0-2'/%3E%3C/g%3E%3C/svg%3E")}.loading{pointer-events:none;display:inline-block;aspect-ratio:1 / 1;width:1.5rem;background-color:currentColor;-webkit-mask-size:100%;mask-size:100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.loading-spinner{-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.loading-dots{-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_qM83%7Banimation:spinner_8HQG 1.05s infinite%7D.spinner_oXPr%7Banimation-delay:.1s%7D.spinner_ZTLf%7Banimation-delay:.2s%7D@keyframes spinner_8HQG%7B0%25,57.14%25%7Banimation-timing-function:cubic-bezier(0.33,.66,.66,1);transform:translate(0)%7D28.57%25%7Banimation-timing-function:cubic-bezier(0.33,0,.66,.33);transform:translateY(-6px)%7D100%25%7Btransform:translate(0)%7D%7D%3C/style%3E%3Ccircle class='spinner_qM83' cx='4' cy='12' r='3'/%3E%3Ccircle class='spinner_qM83 spinner_oXPr' cx='12' cy='12' r='3'/%3E%3Ccircle class='spinner_qM83 spinner_ZTLf' cx='20' cy='12' r='3'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_qM83%7Banimation:spinner_8HQG 1.05s infinite%7D.spinner_oXPr%7Banimation-delay:.1s%7D.spinner_ZTLf%7Banimation-delay:.2s%7D@keyframes spinner_8HQG%7B0%25,57.14%25%7Banimation-timing-function:cubic-bezier(0.33,.66,.66,1);transform:translate(0)%7D28.57%25%7Banimation-timing-function:cubic-bezier(0.33,0,.66,.33);transform:translateY(-6px)%7D100%25%7Btransform:translate(0)%7D%7D%3C/style%3E%3Ccircle class='spinner_qM83' cx='4' cy='12' r='3'/%3E%3Ccircle class='spinner_qM83 spinner_oXPr' cx='12' cy='12' r='3'/%3E%3Ccircle class='spinner_qM83 spinner_ZTLf' cx='20' cy='12' r='3'/%3E%3C/svg%3E")}.loading-ring{-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg' stroke='%23fff'%3E%3Cg fill='none' fill-rule='evenodd' stroke-width='2'%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='0s' dur='1.8s' values='1; 20' calcMode='spline' keyTimes='0; 1' keySplines='0.165, 0.84, 0.44, 1' repeatCount='indefinite' /%3E%3Canimate attributeName='stroke-opacity' begin='0s' dur='1.8s' values='1; 0' calcMode='spline' keyTimes='0; 1' keySplines='0.3, 0.61, 0.355, 1' repeatCount='indefinite' /%3E%3C/circle%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='-0.9s' dur='1.8s' values='1; 20' calcMode='spline' keyTimes='0; 1' keySplines='0.165, 0.84, 0.44, 1' repeatCount='indefinite' /%3E%3Canimate attributeName='stroke-opacity' begin='-0.9s' dur='1.8s' values='1; 0' calcMode='spline' keyTimes='0; 1' keySplines='0.3, 0.61, 0.355, 1' repeatCount='indefinite' /%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg' stroke='%23fff'%3E%3Cg fill='none' fill-rule='evenodd' stroke-width='2'%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='0s' dur='1.8s' values='1; 20' calcMode='spline' keyTimes='0; 1' keySplines='0.165, 0.84, 0.44, 1' repeatCount='indefinite' /%3E%3Canimate attributeName='stroke-opacity' begin='0s' dur='1.8s' values='1; 0' calcMode='spline' keyTimes='0; 1' keySplines='0.3, 0.61, 0.355, 1' repeatCount='indefinite' /%3E%3C/circle%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='-0.9s' dur='1.8s' values='1; 20' calcMode='spline' keyTimes='0; 1' keySplines='0.165, 0.84, 0.44, 1' repeatCount='indefinite' /%3E%3Canimate attributeName='stroke-opacity' begin='-0.9s' dur='1.8s' values='1; 0' calcMode='spline' keyTimes='0; 1' keySplines='0.3, 0.61, 0.355, 1' repeatCount='indefinite' /%3E%3C/circle%3E%3C/g%3E%3C/svg%3E")}.loading-ball{-webkit-mask-image:url("data:image/svg+xml,%0A%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_rXNP%7Banimation:spinner_YeBj .8s infinite%7D@keyframes spinner_YeBj%7B0%25%7Banimation-timing-function:cubic-bezier(0.33,0,.66,.33);cy:5px%7D46.875%25%7Bcy:20px;rx:4px;ry:4px%7D50%25%7Banimation-timing-function:cubic-bezier(0.33,.66,.66,1);cy:20.5px;rx:4.8px;ry:3px%7D53.125%25%7Brx:4px;ry:4px%7D100%25%7Bcy:5px%7D%7D%3C/style%3E%3Cellipse class='spinner_rXNP' cx='12' cy='5' rx='4' ry='4'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%0A%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_rXNP%7Banimation:spinner_YeBj .8s infinite%7D@keyframes spinner_YeBj%7B0%25%7Banimation-timing-function:cubic-bezier(0.33,0,.66,.33);cy:5px%7D46.875%25%7Bcy:20px;rx:4px;ry:4px%7D50%25%7Banimation-timing-function:cubic-bezier(0.33,.66,.66,1);cy:20.5px;rx:4.8px;ry:3px%7D53.125%25%7Brx:4px;ry:4px%7D100%25%7Bcy:5px%7D%7D%3C/style%3E%3Cellipse class='spinner_rXNP' cx='12' cy='5' rx='4' ry='4'/%3E%3C/svg%3E")}.mask-squircle{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M100 0C20 0 0 20 0 100s20 100 100 100 100-20 100-100S180 0 100 0Z'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M100 0C20 0 0 20 0 100s20 100 100 100 100-20 100-100S180 0 100 0Z'/%3e%3c/svg%3e")}html{font-family:system-ui!important}.markdown-body>h1,.markdown-body>h2,.markdown-body>h3,.markdown-body>h4,.markdown-body>h5,.markdown-body>h6{font-weight:400;line-height:1.5;margin:12px 0;padding:0}.markdown-body>p{margin:12px 0}.markdown-body h1{font-size:24px}.markdown-body h2{font-size:20px}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-sans),system-ui,-apple-system,PingFang SC,"Microsoft YaHei",Segoe UI,Roboto,Helvetica,noto sans sc,hiragino sans gb,"sans-serif",Apple Color Emoji,Segoe UI Emoji,Not Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:OperatorMonoSSmLig Nerd Font,Cascadia Code PL,FantasqueSansMono Nerd Font,operator mono,JetBrainsMono,Fira code Retina,Fira code,Consolas,Monaco,Hannotate SC,monospace,-apple-system;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root,[data-theme]{background-color:var(--fallback-b1,oklch(var(--b1)/1));color:var(--fallback-bc,oklch(var(--bc)/1))}@supports not (color: oklch(0 0 0)){:root{color-scheme:light;--fallback-p: #491eff;--fallback-pc: #d4dbff;--fallback-s: #ff41c7;--fallback-sc: #fff9fc;--fallback-a: #00cfbd;--fallback-ac: #00100d;--fallback-n: #2b3440;--fallback-nc: #d7dde4;--fallback-b1: #ffffff;--fallback-b2: #e5e6e6;--fallback-b3: #e5e6e6;--fallback-bc: #1f2937;--fallback-in: #00b3f0;--fallback-inc: #000000;--fallback-su: #00ca92;--fallback-suc: #000000;--fallback-wa: #ffc22d;--fallback-wac: #000000;--fallback-er: #ff6f70;--fallback-erc: #000000}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--fallback-p: #7582ff;--fallback-pc: #050617;--fallback-s: #ff71cf;--fallback-sc: #190211;--fallback-a: #00c7b5;--fallback-ac: #000e0c;--fallback-n: #2a323c;--fallback-nc: #a6adbb;--fallback-b1: #1d232a;--fallback-b2: #191e24;--fallback-b3: #15191e;--fallback-bc: #a6adbb;--fallback-in: #00b3f0;--fallback-inc: #000000;--fallback-su: #00ca92;--fallback-suc: #000000;--fallback-wa: #ffc22d;--fallback-wac: #000000;--fallback-er: #ff6f70;--fallback-erc: #000000}}}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--b2: .93 0 0;--b3: .86 0 0;--pc: .133999 .020448 210.183403;--sc: .167981 .013213 156.373;--nc: .166232 .00138 286.248681;--inc: .120553 .043542 257.423868;--suc: .146065 .038876 147.443943;--wac: .153048 .035041 62.573806;--erc: .130843 .046427 28.659156;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--p: .669994 .10224 210.183403;--s: .839906 .066065 156.373;--a: .669994 .10224 210.183403;--ac: .985104 0 0;--n: .831158 .006898 286.248681;--b1: 1 0 0;--bc: 0 0 0;--in: .602765 .217712 257.423868;--su: .730324 .194381 147.443943;--wa: .76524 .175207 62.573806;--er: .654215 .232135 28.659156;--rounded-btn: 1.9rem;--tab-border: 2px;--tab-radius: .5rem}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--b2: .211371 .003556 286.091612;--b3: .195461 .003288 286.091612;--pc: .15521 .023207 6.503011;--sc: .154046 .026689 42.111953;--ac: .15521 .023207 6.503011;--nc: .880475 .000662 286.250121;--inc: .124851 .041115 255.486118;--suc: .15111 .041649 146.983588;--wac: .156473 .034211 67.223061;--erc: .132661 .044722 28.291925;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--p: .776049 .116034 6.503011;--s: .770229 .133446 42.111953;--a: .776049 .116034 6.503011;--n: .402375 .003308 286.250121;--b1: .22728 .003823 286.091612;--bc: 1 0 0;--in: .624254 .205577 255.486118;--su: .755551 .208246 146.983588;--wa: .782365 .171055 67.223061;--er: .663303 .22361 28.291925;--rounded-btn: 1.9rem;--tab-border: 2px;--tab-radius: .5rem}}[data-theme=light]{color-scheme:light;--b2: .93 0 0;--b3: .86 0 0;--pc: .133999 .020448 210.183403;--sc: .167981 .013213 156.373;--nc: .166232 .00138 286.248681;--inc: .120553 .043542 257.423868;--suc: .146065 .038876 147.443943;--wac: .153048 .035041 62.573806;--erc: .130843 .046427 28.659156;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--p: .669994 .10224 210.183403;--s: .839906 .066065 156.373;--a: .669994 .10224 210.183403;--ac: .985104 0 0;--n: .831158 .006898 286.248681;--b1: 1 0 0;--bc: 0 0 0;--in: .602765 .217712 257.423868;--su: .730324 .194381 147.443943;--wa: .76524 .175207 62.573806;--er: .654215 .232135 28.659156;--rounded-btn: 1.9rem;--tab-border: 2px;--tab-radius: .5rem}[data-theme=dark]{color-scheme:dark;--b2: .211371 .003556 286.091612;--b3: .195461 .003288 286.091612;--pc: .15521 .023207 6.503011;--sc: .154046 .026689 42.111953;--ac: .15521 .023207 6.503011;--nc: .880475 .000662 286.250121;--inc: .124851 .041115 255.486118;--suc: .15111 .041649 146.983588;--wac: .156473 .034211 67.223061;--erc: .132661 .044722 28.291925;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--p: .776049 .116034 6.503011;--s: .770229 .133446 42.111953;--a: .776049 .116034 6.503011;--n: .402375 .003308 286.250121;--b1: .22728 .003823 286.091612;--bc: 1 0 0;--in: .624254 .205577 255.486118;--su: .755551 .208246 146.983588;--wa: .782365 .171055 67.223061;--er: .663303 .22361 28.291925;--rounded-btn: 1.9rem;--tab-border: 2px;--tab-radius: .5rem}*{scrollbar-color:initial;scrollbar-width:initial}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 100vw){.container{max-width:100vw}}@media (min-width: 100vh){.container{max-width:100vh}}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.icon-\[material-symbols--arrow-circle-right-outline-rounded\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='m12.2 13l-.9.9q-.275.275-.275.7t.275.7q.275.275.7.275t.7-.275l2.6-2.6q.3-.3.3-.7t-.3-.7l-2.6-2.6q-.275-.275-.7-.275t-.7.275q-.275.275-.275.7t.275.7l.9.9H9q-.425 0-.712.288T8 12q0 .425.288.713T9 13zm-.2 9q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20m0-8'/%3E%3C/svg%3E")}.icon-\[material-symbols--dynamic-form-outline\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M4 11q-.825 0-1.412-.587T2 9V6q0-.825.588-1.412T4 4h9v7zm0-2h7V6H4zm0 11q-.825 0-1.412-.587T2 18v-3q0-.825.588-1.412T4 13h11v7zm0-2h9v-3H4zm13 2v-9h-2V4h7l-2 5h2zM4.75 17.25h1.5v-1.5h-1.5zm0-9h1.5v-1.5h-1.5zM4 9V6zm0 9v-3z'/%3E%3C/svg%3E")}.icon-\[material-symbols--format-h1\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M5 17V7h2v4h4V7h2v10h-2v-4H7v4zm12 0V9h-2V7h4v10z'/%3E%3C/svg%3E")}.icon-\[material-symbols--format-h2\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M3 17V7h2v4h4V7h2v10H9v-4H5v4zm10 0v-4q0-.825.588-1.412T15 11h4V9h-6V7h6q.825 0 1.413.588T21 9v2q0 .825-.587 1.413T19 13h-4v2h6v2z'/%3E%3C/svg%3E")}.icon-\[material-symbols--format-h3\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M3 17V7h2v4h4V7h2v10H9v-4H5v4zm10 0v-2h6v-2h-4v-2h4V9h-6V7h6q.825 0 1.413.588T21 9v6q0 .825-.587 1.413T19 17z'/%3E%3C/svg%3E")}.icon-\[material-symbols--format-h4\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M3 17V7h2v4h4V7h2v10H9v-4H5v4zm15 0v-3h-5V7h2v5h3V7h2v5h2v2h-2v3z'/%3E%3C/svg%3E")}.icon-\[material-symbols--format-list-numbered-rounded\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M3.75 22q-.325 0-.537-.213T3 21.25q0-.325.213-.537t.537-.213H5.5v-.75h-.75q-.325 0-.537-.213T4 19q0-.325.213-.537t.537-.213h.75v-.75H3.75q-.325 0-.537-.213T3 16.75q0-.325.213-.537T3.75 16H6q.425 0 .713.288T7 17v1q0 .425-.288.713T6 19q.425 0 .713.288T7 20v1q0 .425-.288.713T6 22zm0-7q-.325 0-.537-.213T3 14.25v-2q0-.425.288-.712T4 11.25h1.5v-.75H3.75q-.325 0-.537-.213T3 9.75q0-.325.213-.537T3.75 9H6q.425 0 .713.288T7 10v1.75q0 .425-.288.713T6 12.75H4.5v.75h1.75q.325 0 .538.213T7 14.25q0 .325-.213.538T6.25 15zm1.5-7q-.325 0-.537-.213T4.5 7.25V3.5h-.75q-.325 0-.537-.213T3 2.75q0-.325.213-.537T3.75 2h1.5q.325 0 .538.213T6 2.75v4.5q0 .325-.213.538T5.25 8M10 19q-.425 0-.712-.288T9 18q0-.425.288-.712T10 17h10q.425 0 .713.288T21 18q0 .425-.288.713T20 19zm0-6q-.425 0-.712-.288T9 12q0-.425.288-.712T10 11h10q.425 0 .713.288T21 12q0 .425-.288.713T20 13zm0-6q-.425 0-.712-.288T9 6q0-.425.288-.712T10 5h10q.425 0 .713.288T21 6q0 .425-.288.713T20 7z'/%3E%3C/svg%3E")}.icon-\[material-symbols--notifications-active-outline\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M2 10q0-2.5 1.113-4.587T6.1 1.95l1.175 1.6q-1.5 1.1-2.387 2.775T4 10zm18 0q0-2-.888-3.675T16.726 3.55l1.175-1.6q1.875 1.375 2.988 3.463T22 10zM4 19v-2h2v-7q0-2.075 1.25-3.687T10.5 4.2v-.7q0-.625.438-1.062T12 2q.625 0 1.063.438T13.5 3.5v.7q2 .5 3.25 2.113T18 10v7h2v2zm8 3q-.825 0-1.412-.587T10 20h4q0 .825-.587 1.413T12 22m-4-5h8v-7q0-1.65-1.175-2.825T12 6q-1.65 0-2.825 1.175T8 10z'/%3E%3C/svg%3E")}.icon-\[material-symbols--redo\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M9.9 19q-2.425 0-4.163-1.575T4 13.5q0-2.35 1.738-3.925T9.9 8h6.3l-2.6-2.6L15 4l5 5l-5 5l-1.4-1.4l2.6-2.6H9.9q-1.575 0-2.738 1T6 13.5Q6 15 7.163 16T9.9 17H17v2z'/%3E%3C/svg%3E")}.icon-\[material-symbols--undo\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M7 19v-2h7.1q1.575 0 2.738-1T18 13.5q0-1.5-1.162-2.5T14.1 10H7.8l2.6 2.6L9 14L4 9l5-5l1.4 1.4L7.8 8h6.3q2.425 0 4.163 1.575T20 13.5q0 2.35-1.737 3.925T14.1 19z'/%3E%3C/svg%3E")}.icon-\[mingcute--add-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M11 20a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7V4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--alert-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='m13.299 3.148l8.634 14.954a1.5 1.5 0 0 1-1.299 2.25H3.366a1.5 1.5 0 0 1-1.299-2.25l8.634-14.954c.577-1 2.02-1 2.598 0M12 15a1 1 0 1 0 0 2a1 1 0 0 0 0-2m0-7a1 1 0 0 0-.993.883L11 9v4a1 1 0 0 0 1.993.117L13 13V9a1 1 0 0 0-1-1'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--align-arrow-down-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036c-.01-.003-.019 0-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M16.95 15.297a1 1 0 0 0-1.415 0L13 17.833V9a1 1 0 0 0-2 0v8.833l-2.536-2.536a1 1 0 0 0-1.414 1.415l4.243 4.242a1 1 0 0 0 1.414 0l4.243-4.242a1 1 0 0 0 0-1.415M5 3a1 1 0 1 0 0 2h14a1 1 0 1 0 0-2z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--align-bottom-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm10 4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--arow-to-up-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036c-.01-.003-.019 0-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M19 5a1 1 0 1 0 0-2H5a1 1 0 1 0 0 2zM7.05 12.703a1 1 0 0 0 1.415 0L11 10.167V20a1 1 0 0 0 2 0v-9.833l2.536 2.536a1 1 0 0 0 1.414-1.415l-4.243-4.242a1 1 0 0 0-1.414 0L7.05 11.288a1 1 0 0 0 0 1.415'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--arrow-left-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M3.636 11.293a1 1 0 0 0 0 1.414l5.657 5.657a1 1 0 0 0 1.414-1.414L6.757 13H20a1 1 0 1 0 0-2H6.757l3.95-3.95a1 1 0 0 0-1.414-1.414z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--arrow-right-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='m14.707 5.636l5.657 5.657a1 1 0 0 1 0 1.414l-5.657 5.657a1 1 0 0 1-1.414-1.414l3.95-3.95H4a1 1 0 1 1 0-2h13.243l-3.95-3.95a1 1 0 1 1 1.414-1.414'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--bold-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M13 2.5a5.5 5.5 0 0 1 4.213 9.036a5.5 5.5 0 0 1-2.992 9.96L14 21.5H6.1a1.6 1.6 0 0 1-1.593-1.454L4.5 19.9V4.1a1.6 1.6 0 0 1 1.454-1.593L6.1 2.5zm1 11H7.5v5H14a2.5 2.5 0 0 0 0-5m-1-8H7.5v5H13a2.5 2.5 0 0 0 0-5'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--book-6-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M11.121 20.615a7.935 7.935 0 0 0-.853-.457c-.733-.339-1.711-.658-2.768-.658c-1.279 0-2.438.468-3.18.862a1.592 1.592 0 0 1-1.514-.02A1.534 1.534 0 0 1 2 19V6.5c0-.621.295-1.263.898-1.629C3.672 4.401 5.414 3.5 7.5 3.5c1.581 0 3.145.51 4.5 1.31c1.355-.8 2.919-1.31 4.5-1.31c2.086 0 3.828.9 4.602 1.371c.603.366.898 1.008.898 1.629V19c0 .633-.379 1.106-.806 1.342a1.592 1.592 0 0 1-1.515.02c-.741-.394-1.9-.862-3.179-.862c-1.057 0-2.035.32-2.768.658a7.935 7.935 0 0 0-.853.457c-.284.177-.524.385-.878.385c-.356 0-.595-.208-.88-.385M4 18.294V6.542c.673-.4 2-1.042 3.5-1.042c1.23 0 2.448.418 3.5 1.042v11.752c-.885-.396-2.113-.794-3.5-.794c-1.381 0-2.609.395-3.5.794m9 0c.885-.396 2.113-.794 3.5-.794c1.381 0 2.609.395 3.5.794V6.542c-.673-.4-2-1.042-3.5-1.042c-1.23 0-2.448.418-3.5 1.042z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--check-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M21.546 5.111a1.5 1.5 0 0 1 0 2.121L10.303 18.475a1.6 1.6 0 0 1-2.263 0L2.454 12.89a1.5 1.5 0 1 1 2.121-2.121l4.596 4.596L19.424 5.111a1.5 1.5 0 0 1 2.122 0'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--check-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M21.192 5.465a1 1 0 0 1 0 1.414L9.95 18.122a1.1 1.1 0 0 1-1.556 0l-5.586-5.586a1 1 0 1 1 1.415-1.415l4.95 4.95L19.777 5.465a1 1 0 0 1 1.414 0Z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--close-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='m12 14.122l5.303 5.303a1.5 1.5 0 0 0 2.122-2.122L14.12 12l5.304-5.303a1.5 1.5 0 1 0-2.122-2.121L12 9.879L6.697 4.576a1.5 1.5 0 1 0-2.122 2.12L9.88 12l-5.304 5.304a1.5 1.5 0 1 0 2.122 2.12z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--close-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='m12 13.414l5.657 5.657a1 1 0 0 0 1.414-1.414L13.414 12l5.657-5.657a1 1 0 0 0-1.414-1.414L12 10.586L6.343 4.929A1 1 0 0 0 4.93 6.343L10.586 12l-5.657 5.657a1 1 0 1 0 1.414 1.414z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--comment-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M16 4a3 3 0 0 1 2.995 2.824L19 7v2a3 3 0 0 1 2.995 2.824L22 12v4a3 3 0 0 1-2.824 2.995L19 19v.966c0 1.02-1.143 1.594-1.954 1.033l-.096-.072L14.638 19H11a2.989 2.989 0 0 1-1.998-.762l-.14-.134L7 19.5c-.791.593-1.906.075-1.994-.879L5 18.5V17a3 3 0 0 1-2.995-2.824L2 14V7a3 3 0 0 1 2.824-2.995L5 4zm3 7h-8a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h3.638a2 2 0 0 1 1.28.464l1.088.906A1.5 1.5 0 0 1 18.5 17h.5a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1m-3-5H5a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h.5A1.5 1.5 0 0 1 7 16.5v.5l1.01-.757A3.04 3.04 0 0 1 8 16v-4a3 3 0 0 1 3-3h6V7a1 1 0 0 0-1-1'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--computer-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' fill-rule='nonzero' d='M19 3a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-4v1h1a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2h1v-1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm-6 15h-2v1h2zm6-13H5v11h14z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--copy-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M19 2a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2V4a2 2 0 0 1 2-2zm-9 13H8a1 1 0 0 0-.117 1.993L8 17h2a1 1 0 0 0 .117-1.993zm9-11H9v2h6a2 2 0 0 1 2 2v8h2zm-7 7H8a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--copy-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M19 2a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2V4a2 2 0 0 1 2-2zm-4 6H5v12h10zm-5 7a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2zm9-11H9v2h6a2 2 0 0 1 2 2v8h2zm-7 7a1 1 0 0 1 .117 1.993L12 13H8a1 1 0 0 1-.117-1.993L8 11z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--delete-2-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M14.28 2a2 2 0 0 1 1.897 1.368L16.72 5H20a1 1 0 1 1 0 2l-.003.071l-.867 12.143A3 3 0 0 1 16.138 22H7.862a3 3 0 0 1-2.992-2.786L4.003 7.07A1.01 1.01 0 0 1 4 7a1 1 0 0 1 0-2h3.28l.543-1.632A2 2 0 0 1 9.721 2zm3.717 5H6.003l.862 12.071a1 1 0 0 0 .997.929h8.276a1 1 0 0 0 .997-.929zM10 10a1 1 0 0 1 .993.883L11 11v5a1 1 0 0 1-1.993.117L9 16v-5a1 1 0 0 1 1-1m4 0a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0v-5a1 1 0 0 1 1-1m.28-6H9.72l-.333 1h5.226z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--down-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12.707 15.707a1 1 0 0 1-1.414 0L5.636 10.05A1 1 0 1 1 7.05 8.636l4.95 4.95l4.95-4.95a1 1 0 0 1 1.414 1.414z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--download-2-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M20 15a1 1 0 0 1 1 1v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4a1 1 0 1 1 2 0v4h14v-4a1 1 0 0 1 1-1M12 2a1 1 0 0 1 1 1v10.243l2.536-2.536a1 1 0 1 1 1.414 1.414l-4.066 4.066a1.25 1.25 0 0 1-1.768 0L7.05 12.121a1 1 0 1 1 1.414-1.414L11 13.243V3a1 1 0 0 1 1-1'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--drawing-board-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036c-.01-.003-.019 0-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 3a1 1 0 0 1 1 1v1h8a1 1 0 1 1 0 2v9a1 1 0 1 1 0 2h-4.586l1.293 1.293a1 1 0 0 1-1.414 1.414L13.586 18h-3.172l-2.707 2.707a1 1 0 0 1-1.414-1.414L7.586 18H3a1 1 0 1 1 0-2V7a1 1 0 0 1 0-2h8V4a1 1 0 0 1 1-1m7 13V7H5v9z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--edit-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M13 3a1 1 0 0 1 .117 1.993L13 5H5v14h14v-8a1 1 0 0 1 1.993-.117L21 11v8a2 2 0 0 1-1.85 1.995L19 21H5a2 2 0 0 1-1.995-1.85L3 19V5a2 2 0 0 1 1.85-1.995L5 3zm6.243.343a1 1 0 0 1 1.497 1.32l-.083.095l-9.9 9.899a1 1 0 0 1-1.497-1.32l.083-.094z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--emoji-2-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m0 2a8 8 0 1 0 0 16a8 8 0 0 0 0-16m3.167 8c1.012 0 1.833.82 1.833 1.833V14a5 5 0 0 1-10 0v-.167C7 12.821 7.82 12 8.833 12zM15 14H9a3 3 0 1 0 6 0M9 7a1 1 0 0 1 .993.883L10 8v2a1 1 0 0 1-1.993.117L8 10V8a1 1 0 0 1 1-1m5.293.293a1 1 0 0 1 1.497 1.32l-.083.094l-.293.293l.293.293a1 1 0 0 1-1.32 1.497l-.094-.083l-1-1a1 1 0 0 1-.083-1.32l.083-.094z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--emoji-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m0 2a8 8 0 1 0 0 16a8 8 0 0 0 0-16m2.8 9.857a1 1 0 1 1 1.4 1.428A5.984 5.984 0 0 1 12 17a5.984 5.984 0 0 1-4.2-1.715a1 1 0 0 1 1.4-1.428A3.984 3.984 0 0 0 12 15c1.09 0 2.077-.435 2.8-1.143M8.5 8a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3m7 0a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--external-link-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M11 6a1 1 0 1 1 0 2H5v11h11v-6a1 1 0 1 1 2 0v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2zm9-3a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V6.414l-8.293 8.293a1 1 0 0 1-1.414-1.414L17.586 5H15a1 1 0 1 1 0-2Z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--eye-2-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M4 12.001c.003-.016.017-.104.095-.277c.086-.191.225-.431.424-.708c.398-.553.993-1.192 1.745-1.798C7.777 7.996 9.812 7 12 7c2.188 0 4.223.996 5.736 2.216c.752.606 1.347 1.245 1.745 1.798c.2.277.338.517.424.708c.078.173.092.261.095.277V12c-.003.016-.017.104-.095.277a4.251 4.251 0 0 1-.424.708c-.398.553-.993 1.192-1.745 1.798C16.224 16.004 14.189 17 12 17c-2.188 0-4.223-.996-5.736-2.216c-.752-.606-1.347-1.245-1.745-1.798a4.226 4.226 0 0 1-.424-.708A1.115 1.115 0 0 1 4 12.001M12 5C9.217 5 6.752 6.254 5.009 7.659c-.877.706-1.6 1.474-2.113 2.187a6.157 6.157 0 0 0-.625 1.055C2.123 11.23 2 11.611 2 12c0 .388.123.771.27 1.099c.155.342.37.7.626 1.055c.513.713 1.236 1.48 2.113 2.187C6.752 17.746 9.217 19 12 19c2.783 0 5.248-1.254 6.991-2.659c.877-.706 1.6-1.474 2.113-2.187c.257-.356.471-.713.625-1.055c.148-.328.271-.71.271-1.099c0-.388-.123-.771-.27-1.099a6.197 6.197 0 0 0-.626-1.055c-.513-.713-1.236-1.48-2.113-2.187C17.248 6.254 14.783 5 12 5m-1 7a1 1 0 1 1 2 0a1 1 0 0 1-2 0m1-3a3 3 0 1 0 0 6a3 3 0 0 0 0-6'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--eye-close-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M3.05 9.31a1 1 0 1 1 1.914-.577c2.086 6.986 11.982 6.987 14.07.004a1 1 0 1 1 1.918.57a9.509 9.509 0 0 1-1.813 3.417L20.414 14A1 1 0 0 1 19 15.414l-1.311-1.311a9.116 9.116 0 0 1-2.32 1.269l.357 1.335a1 1 0 1 1-1.931.518l-.364-1.357c-.947.14-1.915.14-2.862 0l-.364 1.357a1 1 0 1 1-1.931-.518l.357-1.335a9.118 9.118 0 0 1-2.32-1.27l-1.31 1.312A1 1 0 0 1 3.585 14l1.275-1.275c-.784-.936-1.41-2.074-1.812-3.414Z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--eye-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 4c2.787 0 5.263 1.257 7.026 2.813c.885.781 1.614 1.658 2.128 2.531c.505.857.846 1.786.846 2.656c0 .87-.34 1.799-.846 2.656c-.514.873-1.243 1.75-2.128 2.531C17.263 18.743 14.786 20 12 20c-2.787 0-5.263-1.257-7.026-2.813c-.885-.781-1.614-1.658-2.128-2.531C2.34 13.799 2 12.87 2 12c0-.87.34-1.799.846-2.656c.514-.873 1.243-1.75 2.128-2.531C6.737 5.257 9.214 4 12 4m0 2c-2.184 0-4.208.993-5.702 2.312c-.744.656-1.332 1.373-1.729 2.047C4.163 11.049 4 11.62 4 12c0 .38.163.951.569 1.641c.397.674.985 1.39 1.729 2.047C7.792 17.007 9.816 18 12 18s4.208-.993 5.702-2.312c.744-.657 1.332-1.373 1.729-2.047c.406-.69.569-1.261.569-1.641c0-.38-.163-.951-.569-1.641c-.397-.674-.985-1.39-1.729-2.047C16.208 6.993 14.184 6 12 6m0 3c.088 0 .175.004.261.011a2 2 0 0 0 2.728 2.728A3 3 0 1 1 12 9'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--file-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M13.586 2a2 2 0 0 1 1.284.467l.13.119L19.414 7a2 2 0 0 1 .578 1.238l.008.176V20a2 2 0 0 1-1.85 1.995L18 22H6a2 2 0 0 1-1.995-1.85L4 20V4a2 2 0 0 1 1.85-1.995L6 2zM12 4H6v16h12V10h-4.5A1.5 1.5 0 0 1 12 8.5zm2 .414V8h3.586z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--font-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M5.926 20.376a1 1 0 0 1-1.852-.752l6.311-15.537a1.743 1.743 0 0 1 3.23 0l6.312 15.537a1 1 0 1 1-1.853.752L15.889 15H8.111zM8.923 13h6.154L12 5.426z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--fullscreen-2-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M9.793 12.793a1 1 0 0 1 1.497 1.32l-.083.094L6.414 19H9a1 1 0 0 1 .117 1.993L9 21H4a1 1 0 0 1-.993-.883L3 20v-5a1 1 0 0 1 1.993-.117L5 15v2.586zM20 3a1 1 0 0 1 .993.883L21 4v5a1 1 0 0 1-1.993.117L19 9V6.414l-4.793 4.793a1 1 0 0 1-1.497-1.32l.083-.094L17.586 5H15a1 1 0 0 1-.117-1.993L15 3z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--github-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M6.315 6.176c-.25-.638-.24-1.367-.129-2.034a6.77 6.77 0 0 1 2.12 1.07c.28.214.647.283.989.18A9.343 9.343 0 0 1 12 5c.961 0 1.874.14 2.703.391c.342.104.709.034.988-.18a6.77 6.77 0 0 1 2.119-1.07c.111.667.12 1.396-.128 2.033c-.15.384-.075.826.208 1.14C18.614 8.117 19 9.04 19 10c0 2.114-1.97 4.187-5.134 4.818c-.792.158-1.101 1.155-.495 1.726c.389.366.629.882.629 1.456v3a1 1 0 0 0 2 0v-3c0-.57-.12-1.112-.334-1.603C18.683 15.35 21 12.993 21 10c0-1.347-.484-2.585-1.287-3.622c.21-.82.191-1.646.111-2.28c-.071-.568-.17-1.312-.57-1.756c-.595-.659-1.58-.271-2.28-.032a9.081 9.081 0 0 0-2.125 1.045A11.432 11.432 0 0 0 12 3c-.994 0-1.953.125-2.851.356a9.08 9.08 0 0 0-2.125-1.045c-.7-.24-1.686-.628-2.281.031c-.408.452-.493 1.137-.566 1.719l-.005.038c-.08.635-.098 1.462.112 2.283C3.484 7.418 3 8.654 3 10c0 2.992 2.317 5.35 5.334 6.397A3.986 3.986 0 0 0 8 17.98l-.168.034c-.717.099-1.176.01-1.488-.122c-.76-.322-1.152-1.133-1.63-1.753c-.298-.385-.732-.866-1.398-1.088a1 1 0 0 0-.632 1.898c.558.186.944 1.142 1.298 1.566c.373.448.869.916 1.58 1.218c.682.29 1.483.393 2.438.276V21a1 1 0 0 0 2 0v-3c0-.574.24-1.09.629-1.456c.607-.572.297-1.568-.495-1.726C6.969 14.187 5 12.114 5 10c0-.958.385-1.881 1.108-2.684c.283-.314.357-.756.207-1.14'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--hashtag-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M10.124 3.008a1 1 0 0 1 .868 1.116L10.508 8h3.984l.516-4.124a1 1 0 1 1 1.984.248L16.508 8H20a1 1 0 1 1 0 2h-3.742l-.5 4H19.5a1 1 0 1 1 0 2h-3.992l-.516 4.124a1 1 0 1 1-1.984-.248L13.492 16H9.508l-.516 4.124a1 1 0 1 1-1.984-.248L7.492 16H4.5a1 1 0 1 1 0-2h3.242l.5-4H5a1 1 0 0 1 0-2h3.492l.516-4.124a1 1 0 0 1 1.116-.868M13.742 14l.5-4h-3.984l-.5 4z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--heart-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M18.494 3.801c2.095 1.221 3.569 3.7 3.504 6.592C21.86 16.5 13.5 21 12 21s-9.861-4.5-9.998-10.607c-.065-2.892 1.409-5.37 3.504-6.592C7.466 2.66 9.928 2.653 12 4.338c2.072-1.685 4.534-1.679 6.494-.537'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--heart-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M18.494 3.801c2.095 1.221 3.569 3.7 3.504 6.592c-.081 3.61-2.89 6.794-7.679 9.638c-.71.422-1.458.969-2.319.969c-.845 0-1.625-.557-2.32-.97c-4.787-2.843-7.597-6.028-7.678-9.637c-.065-2.892 1.409-5.37 3.504-6.592C7.466 2.66 9.928 2.653 12 4.338c2.072-1.685 4.534-1.679 6.494-.537M17.487 5.53c-1.394-.812-3.136-.783-4.644.743a1.188 1.188 0 0 1-1.686 0c-1.508-1.526-3.25-1.555-4.644-.743c-1.444.842-2.56 2.628-2.511 4.82c.056 2.511 2.04 5.194 6.7 7.962c.408.243.834.554 1.298.683c.464-.129.89-.44 1.298-.683c4.66-2.768 6.644-5.45 6.7-7.963c.05-2.19-1.067-3.977-2.511-4.819'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--information-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m-.01 8H11a1 1 0 0 0-.117 1.993L11 12v4.99c0 .52.394.95.9 1.004l.11.006h.49a1 1 0 0 0 .596-1.803L13 16.134V11.01c0-.52-.394-.95-.9-1.004zM12 7a1 1 0 1 0 0 2a1 1 0 0 0 0-2'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--italic-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M16 2.5h-6a1.5 1.5 0 0 0 0 3h1.3l-1.624 13H8a1.5 1.5 0 0 0 0 3h6a1.5 1.5 0 0 0 0-3h-1.3l1.624-13H16a1.5 1.5 0 0 0 0-3'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--list-check-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M20 17.5a1.5 1.5 0 0 1 0 3H9a1.5 1.5 0 0 1 0-3zm-15.5 0a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3m15.5-7a1.5 1.5 0 0 1 .144 2.993L20 13.5H9a1.5 1.5 0 0 1-.144-2.993L9 10.5zm-15.5 0a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3m0-7a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3m15.5 0a1.5 1.5 0 0 1 .144 2.993L20 6.5H9a1.5 1.5 0 0 1-.144-2.993L9 3.5z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--list-expansion-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M4 4a1 1 0 0 0 0 2h8a1 1 0 1 0 0-2zm16.837 1.606c.132-.257-.062-.556-.38-.583l-.565-.042l-.464-.026l-.527-.02l-.585-.011h-.61l-.555.01l-.504.018l-.65.036l-.51.04c-.296.026-.461.298-.332.552l.15.289l.19.346l.228.398c.04.07.084.142.129.217l.288.467l.322.496l.31.455c.05.072.1.141.148.208l.274.375l.242.318l.206.261c.183.226.53.235.704.02l.326-.415l.263-.35l.292-.408c.153-.217.314-.454.48-.71l.156-.243l.282-.457l.244-.416l.108-.19l.188-.345zm0 10c.132-.258-.062-.556-.38-.583l-.565-.043l-.464-.025l-.527-.02l-.585-.011h-.61l-.555.01l-.504.018l-.448.023l-.558.04a22.24 22.24 0 0 0-.154.012c-.296.027-.461.299-.332.553l.15.288l.19.346l.228.399c.04.07.084.142.129.217l.288.467l.16.248c.109.17.216.33.32.482l.3.429l.274.375l.242.318l.206.26c.183.227.53.236.704.021l.326-.415l.263-.35l.292-.408c.153-.217.314-.455.48-.71l.301-.476l.264-.437c.081-.14.156-.27.225-.394l.188-.344zM3 12a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2H4a1 1 0 0 1-1-1m1 6a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--mail-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M20 4a2 2 0 0 1 1.995 1.85L22 6v12a2 2 0 0 1-1.85 1.995L20 20H4a2 2 0 0 1-1.995-1.85L2 18V6a2 2 0 0 1 1.85-1.995L4 4zm0 3.414l-6.94 6.94a1.5 1.5 0 0 1-2.12 0L4 7.414V18h16zM18.586 6H5.414L12 12.586z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--menu-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M20 18a1 1 0 0 1 .117 1.993L20 20H4a1 1 0 0 1-.117-1.993L4 18zm0-7a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zm0-7a1 1 0 1 1 0 2H4a1 1 0 0 1 0-2z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--moon-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M13.574 3.137a1.01 1.01 0 0 0-1.097 1.409a6 6 0 0 1-7.931 7.931a1.01 1.01 0 0 0-1.409 1.097A9 9 0 0 0 21 12c0-4.434-3.206-8.118-7.426-8.863m1.307 2.481A7.002 7.002 0 0 1 12 19a7.002 7.002 0 0 1-6.382-4.12a8 8 0 0 0 9.263-9.263Z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--pen-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12.138 4.538a2 2 0 0 1 2.031.328l.126.115l4.724 4.724a2 2 0 0 1 .5 1.997l-.057.16l-2.365 5.913a1.999 1.999 0 0 1-1.605 1.24l-5.079.635c-.13.015-.268.034-.41.056l-.444.072l-.232.042l-.723.14l-.495.106l-.745.167l-.955.228l-1.552.396l-.646.174a1.01 1.01 0 0 1-1.265-1.134l.034-.146l.295-1.112l.264-1.048l.228-.955l.167-.745l.105-.496l.141-.722l.08-.457l.064-.428l.66-5.28a1.999 1.999 0 0 1 1.09-1.536l.151-.069zm.742 1.857L6.968 8.76l-.584 4.672l-.048.396a26.886 26.886 0 0 1-.385 2.192l-.171.786l3.288-3.288a2 2 0 1 1 1.414 1.414L7.194 18.22l.392-.087l.784-.165a27.455 27.455 0 0 1 1.473-.26l5.397-.676l2.365-5.912zm2.363-3.294a1 1 0 0 1 1.32-.084l.094.084l4.242 4.242a1 1 0 0 1-1.32 1.498l-.094-.084l-4.242-4.242a1 1 0 0 1 0-1.414'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--pin-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M16.735 2.835a2 2 0 0 0-2.615-.186l-2.913 2.185a9 9 0 0 1-4.127 1.71l-2.177.31c-.73.105-1.265.891-.913 1.662c.331.723 1.385 2.629 4.36 5.72l-4.178 4.178a1 1 0 1 0 1.414 1.414l4.178-4.178c3.091 2.975 4.997 4.029 5.72 4.36c.77.352 1.557-.183 1.661-.913l.311-2.177a9 9 0 0 1 1.71-4.127L21.35 9.88a2 2 0 0 0-.186-2.615zM15.32 4.25l4.43 4.43l-2.184 2.914a11 11 0 0 0-2.09 5.044l-.143 1.001c-.98-.624-2.603-1.837-4.869-4.103C8.2 11.27 6.986 9.648 6.362 8.668l1-.143a11 11 0 0 0 5.045-2.09z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--qq-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 2a6.285 6.285 0 0 0-6.276 5.937l-.146 2.63a28.04 28.04 0 0 0-.615 1.41c-1.24 3.073-1.728 5.773-1.088 6.032c.335.135.913-.426 1.566-1.432a6.672 6.672 0 0 0 1.968 3.593c-1.027.35-1.91.828-1.91 1.33c0 .509 2.48.503 4.239.5h.001c.549-.002 1.01-.008 1.38-.057a6.742 6.742 0 0 0 1.76 0c.37.05.833.055 1.382.056c1.76.004 4.239.01 4.239-.499c0-.502-.883-.979-1.909-1.33a6.672 6.672 0 0 0 1.967-3.586c.65 1.002 1.227 1.56 1.56 1.425c.64-.259.154-2.96-1.088-6.032a28.08 28.08 0 0 0-.607-1.395l-.147-2.645A6.285 6.285 0 0 0 12 2'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--question-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m0 2a8 8 0 1 0 0 16a8 8 0 0 0 0-16m0 12a1 1 0 1 1 0 2a1 1 0 0 1 0-2m0-9.5a3.625 3.625 0 0 1 1.348 6.99a.837.837 0 0 0-.305.201c-.044.05-.051.114-.05.18L13 14a1 1 0 0 1-1.993.117L11 14v-.25c0-1.153.93-1.845 1.604-2.116a1.626 1.626 0 1 0-2.229-1.509a1 1 0 1 1-2 0A3.625 3.625 0 0 1 12 6.5'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--quill-pen-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M5.708 13.35c.625-1.92 1.75-4.379 3.757-6.386c3.934-3.934 9.652-4.515 9.797-4.53a1.005 1.005 0 0 1 .944.454c.208.313 1.38 2.283-.191 4.663a2.63 2.63 0 0 1-.276.344a.996.996 0 0 1-.03.37c-.19.689-.434 1.412-.75 2.135c-.551 1.263-1.328 2.54-2.423 3.636c-2.05 2.05-4.742 2.991-6.844 3.43a19.357 19.357 0 0 1-2.883.378C6.778 18.09 6.5 20.57 6.5 21a1 1 0 1 1-2 0c0-.571.116-1.67.221-2.56c.205-1.732.446-3.427.987-5.09m12.637-6.9c.527-.8.52-1.48.415-1.92c-1.527.275-5.219 1.186-7.881 3.849c-1.704 1.703-2.7 3.84-3.269 5.59a17.75 17.75 0 0 0-.494 1.85a17.417 17.417 0 0 0 2.167-.31c1.92-.402 4.179-1.228 5.838-2.888c.85-.85 1.484-1.857 1.954-2.905c-.976.52-2.018.986-2.759 1.233a1 1 0 1 1-.632-1.898c.674-.225 1.758-.713 2.754-1.265c.494-.274.946-.553 1.301-.808c.384-.276.56-.46.606-.529Z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--refresh-2-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M2 12.08c-.006-.862.91-1.356 1.618-.975l.095.058l2.678 1.804c.972.655.377 2.143-.734 2.007l-.117-.02l-1.063-.234a8.002 8.002 0 0 0 14.804.605a1 1 0 0 1 1.82.828c-1.987 4.37-6.896 6.793-11.687 5.509A10.003 10.003 0 0 1 2 12.08m.903-4.228C4.89 3.482 9.799 1.06 14.59 2.343a10.002 10.002 0 0 1 7.414 9.581c.007.863-.91 1.358-1.617.976l-.096-.058l-2.678-1.804c-.972-.655-.377-2.143.734-2.007l.117.02l1.063.234A8.002 8.002 0 0 0 4.723 8.68a1 1 0 1 1-1.82-.828'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--rss-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036c-.01-.003-.019 0-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M18 3a3 3 0 0 1 2.995 2.824L21 6v12a3 3 0 0 1-2.824 2.995L18 21H6a3 3 0 0 1-2.995-2.824L3 18V6a3 3 0 0 1 2.824-2.995L6 3zm0 2H6a1 1 0 0 0-.993.883L5 6v12a1 1 0 0 0 .883.993L6 19h12a1 1 0 0 0 .993-.883L19 18V6a1 1 0 0 0-.883-.993zm-9.5 9a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3M8 10.5a5.5 5.5 0 0 1 5.5 5.5a1 1 0 1 1-2 0A3.5 3.5 0 0 0 8 12.5a1 1 0 1 1 0-2M8.5 7a8.5 8.5 0 0 1 8.481 9.066a1 1 0 1 1-1.995-.132a6.5 6.5 0 0 0-6.92-6.92a1 1 0 1 1-.132-1.995C8.121 7.006 8.31 7 8.5 7'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--search-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M10.5 2a8.5 8.5 0 1 0 5.262 15.176l3.652 3.652a1 1 0 0 0 1.414-1.414l-3.652-3.652A8.5 8.5 0 0 0 10.5 2M4 10.5a6.5 6.5 0 1 1 13 0a6.5 6.5 0 0 1-13 0'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--send-plane-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M20.25 3.532a1 1 0 0 1 1.183 1.329l-6 15.5a1 1 0 0 1-1.624.362l-3.382-3.235l-1.203 1.202c-.636.636-1.724.186-1.724-.714v-3.288L2.309 9.723a1 1 0 0 1 .442-1.691l17.5-4.5Zm-2.114 4.305l-7.998 6.607l3.97 3.798zm-1.578-1.29L4.991 9.52l3.692 3.53l7.875-6.505Z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--settings-6-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036c-.01-.003-.019 0-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M16 15c1.306 0 2.418.835 2.83 2H20a1 1 0 1 1 0 2h-1.17a3.001 3.001 0 0 1-5.66 0H4a1 1 0 1 1 0-2h9.17A3.001 3.001 0 0 1 16 15m0 2a1 1 0 1 0 0 2a1 1 0 0 0 0-2M8 9a3 3 0 0 1 2.762 1.828l.067.172H20a1 1 0 0 1 .117 1.993L20 13h-9.17a3.001 3.001 0 0 1-5.592.172L5.17 13H4a1 1 0 0 1-.117-1.993L4 11h1.17A3.001 3.001 0 0 1 8 9m0 2a1 1 0 1 0 0 2a1 1 0 0 0 0-2m8-8c1.306 0 2.418.835 2.83 2H20a1 1 0 1 1 0 2h-1.17a3.001 3.001 0 0 1-5.66 0H4a1 1 0 0 1 0-2h9.17A3.001 3.001 0 0 1 16 3m0 2a1 1 0 1 0 0 2a1 1 0 0 0 0-2'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--share-forward-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M10.114 4.491c.076-.795.906-1.45 1.743-.972c1.74 1.019 3.382 2.18 4.97 3.421c1.96 1.548 3.533 3.007 4.647 4.172c.483.507.438 1.308-.024 1.792a42.072 42.072 0 0 1-3.495 3.228c-1.938 1.587-3.945 3.125-6.13 4.358c-.741.418-1.544-.06-1.687-.801l-.017-.113l-.227-3.574c-1.816.038-3.574.662-4.98 1.823l-.265.222l-.128.104l-.247.192c-.04.03-.08.06-.12.088l-.23.16a4.72 4.72 0 0 1-.218.135l-.206.111C2.534 19.314 2 18.892 2 17c0-4.404 3.245-8.323 7.632-8.917l.259-.031zm1.909 1.474l-.192 3.472a.5.5 0 0 1-.447.47l-1.361.142c-3.065.366-5.497 2.762-5.948 5.894a9.952 9.952 0 0 1 5.135-1.912l.397-.023l1.704-.036a.5.5 0 0 1 .51.472l.197 3.596c1.603-1.021 3.131-2.196 4.664-3.45a43.717 43.717 0 0 0 2.857-2.595l-.258-.256l-.556-.533a48.15 48.15 0 0 0-3.134-2.693a46.172 46.172 0 0 0-3.568-2.548'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--sort-descending-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M18 4a1 1 0 0 1 1 1v12.414l1.121-1.121a1 1 0 0 1 1.415 1.414l-2.829 2.828a1 1 0 0 1-1.414 0l-2.828-2.828a1 1 0 1 1 1.414-1.414L17 17.414V5a1 1 0 0 1 1-1m-7 14a1 1 0 0 1 .117 1.993L11 20H4a1 1 0 0 1-.117-1.993L4 18zm2-7a1 1 0 0 1 .117 1.993L13 13H4a1 1 0 0 1-.117-1.993L4 11zm0-7a1 1 0 1 1 0 2H4a1 1 0 0 1 0-2z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--sparkles-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M5.827 13.004a.19.19 0 0 1 .346 0l.17.371a8.693 8.693 0 0 0 3.3 3.638l.265.155a.181.181 0 0 1 0 .316l-.265.155a8.693 8.693 0 0 0-3.3 3.638l-.17.372a.19.19 0 0 1-.346 0l-.17-.372a8.693 8.693 0 0 0-3.3-3.638l-.265-.155a.181.181 0 0 1 0-.316l.265-.155a8.693 8.693 0 0 0 3.47-4.01Zm.17 3.486l-.175.206c-.125.14-.253.277-.385.41l-.2.198l-.027.024l.227.223l.195.203l.19.208l.175.205l.175-.205c.125-.14.253-.278.385-.411l.227-.223l-.027-.024c-.135-.13-.267-.263-.395-.4l-.19-.208zm8.476-13.76a.331.331 0 0 1 .605 0l.15.336l.148.314l.195.39l.226.42l.112.196a15.214 15.214 0 0 0 3.895 4.437l.427.317a15.192 15.192 0 0 0 1.383.878a.317.317 0 0 1 0 .553a15.258 15.258 0 0 0-1.082.67l-.36.251a15.213 15.213 0 0 0-4.263 4.71l-.131.232a14.95 14.95 0 0 0-.402.775l-.147.314l-.15.336a.331.331 0 0 1-.606 0l-.15-.336l-.148-.314l-.196-.39l-.225-.42l-.113-.196a15.214 15.214 0 0 0-3.894-4.437l-.428-.316a15.153 15.153 0 0 0-1.382-.88a.317.317 0 0 1 0-.552a15.298 15.298 0 0 0 1.082-.669l.36-.252a15.215 15.215 0 0 0 4.262-4.71l.132-.232c.141-.254.275-.512.402-.775l.147-.314zm.302 3.615a17.215 17.215 0 0 1-3.663 3.95a17.214 17.214 0 0 1 3.663 3.95a17.212 17.212 0 0 1 3.663-3.95a17.213 17.213 0 0 1-3.663-3.95'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--star-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M10.92 2.868a1.25 1.25 0 0 1 2.16 0l2.795 4.798l5.428 1.176a1.25 1.25 0 0 1 .667 2.054l-3.7 4.141l.56 5.525a1.25 1.25 0 0 1-1.748 1.27L12 19.592l-5.082 2.24a1.25 1.25 0 0 1-1.748-1.27l.56-5.525l-3.7-4.14a1.25 1.25 0 0 1 .667-2.055l5.428-1.176zM12 4.987L9.687 8.959a1.25 1.25 0 0 1-.816.592l-4.492.973l3.062 3.427c.234.262.347.61.312.959l-.463 4.573l4.206-1.854a1.25 1.25 0 0 1 1.008 0l4.206 1.854l-.463-4.573a1.25 1.25 0 0 1 .311-.959l3.063-3.427l-4.492-.973a1.25 1.25 0 0 1-.816-.592z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--sun-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 19a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1m6.364-2.05l.707.707a1 1 0 0 1-1.414 1.414l-.707-.707a1 1 0 0 1 1.414-1.414m-12.728 0a1 1 0 0 1 1.497 1.32l-.083.094l-.707.707a1 1 0 0 1-1.497-1.32l.083-.094zM12 6a6 6 0 1 1 0 12a6 6 0 0 1 0-12m0 2a4 4 0 1 0 0 8a4 4 0 0 0 0-8m-8 3a1 1 0 0 1 .117 1.993L4 13H3a1 1 0 0 1-.117-1.993L3 11zm17 0a1 1 0 1 1 0 2h-1a1 1 0 1 1 0-2zM4.929 4.929a1 1 0 0 1 1.32-.083l.094.083l.707.707a1 1 0 0 1-1.32 1.497l-.094-.083l-.707-.707a1 1 0 0 1 0-1.414m14.142 0a1 1 0 0 1 0 1.414l-.707.707a1 1 0 1 1-1.414-1.414l.707-.707a1 1 0 0 1 1.414 0M12 2a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0V3a1 1 0 0 1 1-1'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--teacup-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' fill-rule='nonzero' d='M17 4a2 2 0 0 1 2 2v2.035A3.5 3.5 0 0 1 18.5 15h-.788a8.542 8.542 0 0 1-3.208 3H17a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2h2.496A8.499 8.499 0 0 1 2 10.5V6a2 2 0 0 1 2-2zm0 2H4v4.5l.004.233a6.5 6.5 0 0 0 12.992 0L17 10.5zm2 4.085v.415c0 .868-.13 1.706-.372 2.495a1.5 1.5 0 0 0 .503-2.856z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--telegram-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M21.84 6.056a1.5 1.5 0 0 0-2.063-1.626l-17.1 7.2c-1.192.502-1.253 2.226 0 2.746a56.46 56.46 0 0 0 3.774 1.418c1.168.386 2.442.743 3.463.844c.279.334.63.656.988.95c.547.45 1.205.913 1.885 1.357c1.362.89 2.873 1.741 3.891 2.295c1.217.66 2.674-.1 2.892-1.427zM4.594 12.993l15.124-6.368l-2.118 12.84c-.999-.543-2.438-1.356-3.72-2.194a19.982 19.982 0 0 1-1.709-1.229a7.962 7.962 0 0 1-.426-.374l3.961-3.96a1 1 0 0 0-1.414-1.415L9.955 14.63c-.734-.094-1.756-.366-2.878-.736a48.89 48.89 0 0 1-2.482-.902Z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--thumb-up-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M8.993 5.163c.169 1.423-.062 2.907-.576 4.239c-.569 1.474-1.325 3.07-1.419 4.657c-.079 1.337.224 2.919 1.032 4.002C8.915 19.247 10.368 20 11.967 20h1.512a5 5 0 0 0 4.983-4.585l.361-4.332A1 1 0 0 0 17.826 10H12.5a1.503 1.503 0 0 1-1.501-1.492c-.008-.97.053-2.167-.393-3.06c-.4-.8-.774-.948-1.106-.948c-.3 0-.54.393-.507.663M9.5 2.5c1.356 0 2.294.852 2.895 2.053c.522 1.045.571 2.3.597 3.447h4.834a3 3 0 0 1 2.99 3.25l-.361 4.331A7 7 0 0 1 13.479 22h-1.512A6.937 6.937 0 0 1 6.9 19.822A5.54 5.54 0 0 1 5.5 20c-1.108 0-2.028-.62-2.624-1.608C2.296 17.432 2 16.107 2 14.5c0-1.606.297-2.931.876-3.891C3.472 9.62 4.392 9 5.5 9c.281 0 .579.05.877.134c.458-1.2.784-2.437.63-3.735C6.835 3.954 8.016 2.5 9.5 2.5m-3.804 8.524c-.485-.1-.865.216-1.107.618C4.263 12.182 4 13.106 4 14.5c0 1.394.263 2.319.588 2.859c.31.512.64.641.912.641c.064 0 .127-.002.19-.005c-.536-1.208-.766-2.74-.688-4.054c.047-.805.361-1.918.694-2.917'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--twitter-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M17.817 6.989c-.353-.508-1.297-1.222-2.826-.914c-.892.179-1.425.62-1.764 1.202c-.361.62-.536 1.463-.536 2.444a1 1 0 0 1-1 1c-2.366 0-4.618-.703-6.513-2.604a10.52 10.52 0 0 0-.168 2.34c.053 1.086.312 2.175.927 3.108c.605.917 1.6 1.757 3.264 2.285a1 1 0 0 1 .41 1.655a8.52 8.52 0 0 1-1.796 1.405c1.06.11 2.082.118 3.03.032c1.92-.174 3.449-.723 4.405-1.5c2.013-1.632 3.09-4.066 2.89-8.144c-.034-.67.613-1.393.925-1.942c-.471.088-.943.072-1.248-.367M4.594 4.984a1 1 0 0 1 .941.429C7.011 7.572 8.783 8.47 10.75 8.674c.096-.841.323-1.672.75-2.404c.626-1.074 1.644-1.864 3.098-2.156c2.01-.404 3.54.324 4.427 1.215l1.792-.335a1 1 0 0 1 1.053 1.478l-1.72 3.022c.157 4.361-1.055 7.405-3.639 9.502c-1.37 1.112-3.332 1.743-5.485 1.938c-2.17.196-4.623-.041-7.061-.753a1 1 0 0 1 .007-1.922c1.226-.349 2.16-.65 3.003-1.177c-1.199-.636-2.082-1.468-2.707-2.416c-.868-1.318-1.19-2.788-1.254-4.113c-.064-1.325.127-2.553.329-3.438c.115-.505.249-1.011.434-1.495a1 1 0 0 1 .818-.636Z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--up-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M11.293 8.293a1 1 0 0 1 1.414 0l5.657 5.657a1 1 0 0 1-1.414 1.414L12 10.414l-4.95 4.95a1 1 0 0 1-1.414-1.414z'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--user-4-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036c-.01-.003-.019 0-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 2c5.523 0 10 4.477 10 10a9.959 9.959 0 0 1-2.258 6.33l.02.022l-.132.112A9.978 9.978 0 0 1 12 22c-2.95 0-5.6-1.277-7.43-3.307l-.2-.23l-.132-.11l.02-.024A9.958 9.958 0 0 1 2 12C2 6.477 6.477 2 12 2m0 15c-1.86 0-3.541.592-4.793 1.406A7.965 7.965 0 0 0 12 20a7.965 7.965 0 0 0 4.793-1.594A8.897 8.897 0 0 0 12 17m0-13a8 8 0 0 0-6.258 12.984C7.363 15.821 9.575 15 12 15s4.637.821 6.258 1.984A8 8 0 0 0 12 4m0 2a4 4 0 1 1 0 8a4 4 0 0 1 0-8m0 2a2 2 0 1 0 0 4a2 2 0 0 0 0-4'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--warning-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m0 2a8 8 0 1 0 0 16a8 8 0 0 0 0-16m0 11a1 1 0 1 1 0 2a1 1 0 0 1 0-2m0-9a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--wechat-fill\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M16 10c3.154 0 6 2.186 6 5.213c0 1.696-.92 3.153-2.26 4.08c-.044.265-.008.532-.008.799a.903.903 0 0 1-.897.908c-.68 0-1.31-.224-1.843-.645a6.895 6.895 0 0 1-.992.071c-3.154 0-6-2.186-6-5.213S12.846 10 16 10M9.5 3c3.777 0 7.149 2.535 7.474 6.062A7.686 7.686 0 0 0 16 9c-3.533 0-7 2.473-7 6.209c0 .354.031.697.09 1.027a8.506 8.506 0 0 1-.926-.094c-.67.549-1.443.858-2.31.858c-.518 0-.937-.434-.937-.97l.004-.197l.017-.397a2.103 2.103 0 0 0-.055-.59C3.17 13.667 2 11.794 2 9.624C2 5.807 5.525 3 9.5 3M14 13a1 1 0 1 0 0 2a1 1 0 0 0 0-2m4 0a1 1 0 1 0 0 2a1 1 0 0 0 0-2M7 6a1 1 0 1 0 0 2a1 1 0 0 0 0-2m5 0a1 1 0 1 0 0 2a1 1 0 0 0 0-2'/%3E%3C/g%3E%3C/svg%3E")}.icon-\[mingcute--weibo-line\]{display:inline-block;width:1em;height:1em;background-color:currentColor;-webkit-mask-image:var(--svg);mask-image:var(--svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M13.12 5.815c.55.537.826 1.24.863 1.992c1.675-.502 3.045-.362 3.937.5c.848.82.937 1.967.617 2.964C19.9 11.961 21 13.058 21 14.715c0 1.93-1.256 3.526-2.962 4.586C16.318 20.371 14.004 21 11.5 21c-2.504 0-4.818-.63-6.538-1.699C3.256 18.241 2 16.646 2 14.715c0-1.762.842-3.589 2.05-5.156a14.557 14.557 0 0 1 4.723-3.954c1.635-.847 3.286-.828 4.347.21m-1.399 1.43c-.213-.21-.829-.485-2.028.136a12.558 12.558 0 0 0-4.06 3.4C4.576 12.154 4 13.558 4 14.715c0 .988.647 2.035 2.018 2.888C7.374 18.446 9.309 19 11.5 19c2.19 0 4.127-.554 5.482-1.397c1.371-.853 2.018-1.9 2.018-2.888c0-.711-.56-1.439-2.16-1.991a1 1 0 0 1-.473-1.546c.495-.66.355-1.248.163-1.433l-.048-.04l-.067-.042c-.337-.186-1.274-.368-3.335.661a1 1 0 0 1-1.347-1.33c.444-.92.225-1.517-.012-1.75ZM17 3c1.576 0 3.128.643 4.243 1.757A6.054 6.054 0 0 1 23 9a1 1 0 1 1-2 0c0-1.05-.429-2.086-1.172-2.828A4.036 4.036 0 0 0 17 5a1 1 0 1 1 0-2'/%3E%3C/g%3E%3C/svg%3E")}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding:.1875em .375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-left:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.\!avatar{position:relative!important;display:inline-flex!important}.avatar{position:relative;display:inline-flex}.\!avatar>div{display:block!important;aspect-ratio:1 / 1!important;overflow:hidden!important}.avatar>div{display:block;aspect-ratio:1 / 1;overflow:hidden}.\!avatar img{height:100%!important;width:100%!important;-o-object-fit:cover!important;object-fit:cover!important}.avatar img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.\!avatar.placeholder>div{display:flex!important;align-items:center!important;justify-content:center!important}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.badge{display:inline-flex;align-items:center;justify-content:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;height:1.25rem;font-size:.875rem;line-height:1.25rem;width:-moz-fit-content;width:fit-content;padding-left:.563rem;padding-right:.563rem;border-radius:var(--rounded-badge, 1.9rem);border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}@media (hover:hover){.link-hover:hover{text-decoration-line:underline}.checkbox-accent:hover{--tw-border-opacity: 1;border-color:var(--fallback-a,oklch(var(--a)/var(--tw-border-opacity)))}.label a:hover{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.menu li>*:not(ul):not(.menu-title):not(details):active,.menu li>*:not(ul):not(.menu-title):not(details).active,.menu li>details>summary:active{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.tab:hover{--tw-text-opacity: 1}.table tr.hover:hover,.table tr.hover:nth-child(2n):hover{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.table-zebra tr.hover:hover,.table-zebra tr.hover:nth-child(2n):hover{--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}}.card{position:relative;display:flex;flex-direction:column;border-radius:var(--rounded-box, 1rem)}.card:focus{outline:2px solid transparent;outline-offset:2px}.card figure{display:flex;align-items:center;justify-content:center}.card.image-full{display:grid}.card.image-full:before{position:relative;content:"";z-index:10;border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));opacity:.75}.card.image-full:before,.card.image-full>*{grid-column-start:1;grid-row-start:1}.card.image-full>figure img{height:100%;-o-object-fit:cover;object-fit:cover}.card.image-full>.card-body{position:relative;z-index:20;--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.carousel{display:inline-flex;overflow-x:scroll;scroll-snap-type:x mandatory;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none}.checkbox{flex-shrink:0;--chkbg: var(--fallback-bc,oklch(var(--bc)/1));--chkfg: var(--fallback-b1,oklch(var(--b1)/1));height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2}.\!collapse:not(td):not(tr):not(colgroup){visibility:visible!important}.collapse:not(td):not(tr):not(colgroup){visibility:visible}.\!collapse{position:relative!important;display:grid!important;overflow:hidden!important;grid-template-rows:auto 0fr!important;transition:grid-template-rows .2s!important;width:100%!important;border-radius:var(--rounded-box, 1rem)!important}.collapse{position:relative;display:grid;overflow:hidden;grid-template-rows:auto 0fr;transition:grid-template-rows .2s;width:100%;border-radius:var(--rounded-box, 1rem)}.collapse-title,.collapse>input[type=checkbox],.collapse>input[type=radio],.collapse-content{grid-column-start:1;grid-row-start:1}.\!collapse>input[type=checkbox],.\!collapse>input[type=radio]{grid-column-start:1!important;grid-row-start:1!important}.collapse>input[type=checkbox],.collapse>input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}.\!collapse>input[type=checkbox],.\!collapse>input[type=radio]{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;opacity:0!important}.collapse[open],.collapse-open,.collapse:focus:not(.collapse-close){grid-template-rows:auto 1fr}.\!collapse[open],.\!collapse:focus:not(.collapse-close){grid-template-rows:auto 1fr!important}.collapse:not(.collapse-close):has(>input[type=checkbox]:checked),.collapse:not(.collapse-close):has(>input[type=radio]:checked){grid-template-rows:auto 1fr}.\!collapse:not(.collapse-close):has(>input[type=checkbox]:checked),.\!collapse:not(.collapse-close):has(>input[type=radio]:checked){grid-template-rows:auto 1fr!important}.collapse[open]>.collapse-content,.collapse-open>.collapse-content,.collapse:focus:not(.collapse-close)>.collapse-content,.collapse:not(.collapse-close)>input[type=checkbox]:checked~.collapse-content,.collapse:not(.collapse-close)>input[type=radio]:checked~.collapse-content{visibility:visible;min-height:-moz-fit-content;min-height:fit-content}.\!collapse[open]>.collapse-content,.\!collapse:focus:not(.collapse-close)>.collapse-content,.\!collapse:not(.collapse-close)>input[type=checkbox]:checked~.collapse-content,.\!collapse:not(.collapse-close)>input[type=radio]:checked~.collapse-content{visibility:visible!important;min-height:-moz-fit-content!important;min-height:fit-content!important}.diff{position:relative;display:grid;width:100%;overflow:hidden;container-type:inline-size;grid-template-columns:auto 1fr}.divider{display:flex;flex-direction:row;align-items:center;align-self:stretch;margin-top:1rem;margin-bottom:1rem;height:1rem;white-space:nowrap}.divider:before,.divider:after{height:.125rem;width:100%;flex-grow:1;--tw-content: "";content:var(--tw-content);background-color:var(--fallback-bc,oklch(var(--bc)/.1))}@media (hover: hover){.btm-nav>*.disabled:hover,.btm-nav>*[disabled]:hover{pointer-events:none;--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):not(.active):hover,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(.active):hover{cursor:pointer;outline:2px solid transparent;outline-offset:2px}@supports (color: oklch(0 0 0)){:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):not(.active):hover,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(.active):hover{background-color:var(--fallback-bc,oklch(var(--bc)/.1))}}.tab[disabled],.tab[disabled]:hover{cursor:not-allowed;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}}.footer{display:grid;width:100%;grid-auto-flow:row;place-items:start;-moz-column-gap:1rem;column-gap:1rem;row-gap:2.5rem;font-size:.875rem;line-height:1.25rem}.footer>*{display:grid;place-items:start;gap:.5rem}@media (min-width: 48rem){.footer{grid-auto-flow:column}.footer-center{grid-auto-flow:row dense}}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.indicator{position:relative;display:inline-flex;width:-moz-max-content;width:max-content}.indicator :where(.indicator-item){z-index:1;position:absolute;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));white-space:nowrap}.input{flex-shrink:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.input[type=number]::-webkit-inner-spin-button,.input-md[type=number]::-webkit-inner-spin-button{margin-top:-1rem;margin-bottom:-1rem;margin-inline-end:-1rem}.input-sm[type=number]::-webkit-inner-spin-button{margin-top:0;margin-bottom:0;margin-inline-end:-0px}.join{display:inline-flex;align-items:stretch;border-radius:var(--rounded-btn, .5rem)}.join :where(.join-item){border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;border-start-start-radius:0}.join .join-item:not(:first-child):not(:last-child),.join *:not(:first-child):not(:last-child) .join-item{border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;border-start-start-radius:0}.join .join-item:first-child:not(:last-child),.join *:first-child:not(:last-child) .join-item{border-start-end-radius:0;border-end-end-radius:0}.join .dropdown .join-item:first-child:not(:last-child),.join *:first-child:not(:last-child) .dropdown .join-item{border-start-end-radius:inherit;border-end-end-radius:inherit}.join :where(.join-item:first-child:not(:last-child)),.join :where(*:first-child:not(:last-child) .join-item){border-end-start-radius:inherit;border-start-start-radius:inherit}.join .join-item:last-child:not(:first-child),.join *:last-child:not(:first-child) .join-item{border-end-start-radius:0;border-start-start-radius:0}.join :where(.join-item:last-child:not(:first-child)),.join :where(*:last-child:not(:first-child) .join-item){border-start-end-radius:inherit;border-end-end-radius:inherit}@supports not selector(:has(*)){:where(.join *){border-radius:inherit}}@supports selector(:has(*)){:where(.join *:has(.join-item)){border-radius:inherit}}.kbd{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2;--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));padding-left:.5rem;padding-right:.5rem;border-bottom-width:2px;min-height:2.2em;min-width:2.2em}.link{cursor:pointer;text-decoration-line:underline}.link-hover{text-decoration-line:none}.mask{-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}.menu{display:flex;flex-direction:column;flex-wrap:wrap;font-size:.875rem;line-height:1.25rem;padding:.5rem}.menu :where(li ul){position:relative;white-space:nowrap;margin-inline-start:1rem;padding-inline-start:.5rem}.menu :where(li:not(.menu-title)>*:not(ul):not(details):not(.menu-title)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){display:grid;grid-auto-flow:column;align-content:flex-start;align-items:center;gap:.5rem;grid-auto-columns:minmax(auto,max-content) auto max-content;-webkit-user-select:none;-moz-user-select:none;user-select:none}.menu li.disabled{cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:var(--fallback-bc,oklch(var(--bc)/.3))}.menu :where(li>.menu-dropdown:not(.menu-dropdown-show)){display:none}:where(.menu li){position:relative;display:flex;flex-shrink:0;flex-direction:column;flex-wrap:wrap;align-items:stretch}:where(.menu li) .badge{justify-self:end}.mockup-window{position:relative;overflow:hidden;overflow-x:auto;display:flex;flex-direction:column;border-radius:var(--rounded-box, 1rem);padding-top:1.25rem}.mockup-window pre[data-prefix]:before{content:attr(data-prefix);display:inline-block;text-align:right}.modal{pointer-events:none;position:fixed;inset:0;margin:0;display:grid;height:100%;max-height:none;width:100%;max-width:none;justify-items:center;padding:0;opacity:0;overscroll-behavior:contain;z-index:999;background-color:transparent;color:inherit;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1);transition-property:transform,opacity,visibility;overflow-y:hidden}:where(.modal){align-items:center}.modal-open,.modal:target,.modal-toggle:checked+.modal,.modal[open]{pointer-events:auto;visibility:visible;opacity:1}:root:has(:is(.modal-open,.modal:target,.modal-toggle:checked+.modal,.modal[open])){overflow:hidden}.range{height:1.5rem;width:100%;cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;--range-shdw: var(--fallback-bc,oklch(var(--bc)/1));overflow:hidden;border-radius:var(--rounded-box, 1rem);background-color:transparent}.range:focus{outline:none}.select{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;min-height:3rem;padding-left:1rem;padding-right:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16.1px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.stack{display:inline-grid;place-items:center;align-items:flex-end}.stack>*{grid-column-start:1;grid-row-start:1;transform:translateY(10%) scale(.9);z-index:1;width:100%;opacity:.6}.stack>*:nth-child(2){transform:translateY(5%) scale(.95);z-index:2;opacity:.8}.stack>*:nth-child(1){transform:translateY(0) scale(1);z-index:3;opacity:1}.stats{display:inline-grid;border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}:where(.stats){grid-auto-flow:column;overflow-x:auto}.\!stat{display:inline-grid!important;width:100%!important;grid-template-columns:repeat(1,1fr)!important;-moz-column-gap:1rem!important;column-gap:1rem!important;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)))!important;--tw-border-opacity: .1 !important;padding:1rem 1.5rem!important}.stat{display:inline-grid;width:100%;grid-template-columns:repeat(1,1fr);-moz-column-gap:1rem;column-gap:1rem;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .1;padding:1rem 1.5rem}.tabs-lifted:has(.tab-content[class^=rounded-]) .tab:first-child:not(.tab-active),.tabs-lifted:has(.tab-content[class*=" rounded-"]) .tab:first-child:not(.tab-active){border-bottom-color:transparent}.tab{position:relative;grid-row-start:1;display:inline-flex;height:2rem;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;flex-wrap:wrap;align-items:center;justify-content:center;text-align:center;font-size:.875rem;line-height:1.25rem;line-height:2;--tab-padding: 1rem;--tw-text-opacity: .5;--tab-color: var(--fallback-bc,oklch(var(--bc)/1));--tab-bg: var(--fallback-b1,oklch(var(--b1)/1));--tab-border-color: var(--fallback-b3,oklch(var(--b3)/1));color:var(--tab-color);padding-inline-start:var(--tab-padding, 1rem);padding-inline-end:var(--tab-padding, 1rem)}.tab:is(input[type=radio]){width:auto;border-bottom-right-radius:0;border-bottom-left-radius:0}.tab:is(input[type=radio]):after{--tw-content: attr(aria-label);content:var(--tw-content)}.tab:not(input):empty{cursor:default;grid-column-start:span 9999}input.tab:checked+.tab-content,.tab-active+.tab-content{display:block}.table{position:relative;width:100%;border-radius:var(--rounded-box, 1rem);text-align:left;font-size:.875rem;line-height:1.25rem}.table :where(.table-pin-rows thead tr){position:sticky;top:0;z-index:1;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table :where(.table-pin-rows tfoot tr){position:sticky;bottom:0;z-index:1;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table :where(.table-pin-cols tr th){position:sticky;left:0;right:0;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table-zebra tbody tr:nth-child(2n) :where(.table-pin-cols tr th){--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.textarea{min-height:3rem;flex-shrink:1;padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.timeline{position:relative;display:flex}:where(.timeline>li){position:relative;display:grid;flex-shrink:0;align-items:center;grid-template-rows:var(--timeline-row-start, minmax(0, 1fr)) auto var( --timeline-row-end, minmax(0, 1fr) );grid-template-columns:var(--timeline-col-start, minmax(0, 1fr)) auto var( --timeline-col-end, minmax(0, 1fr) )}.timeline>li>hr{width:100%;border-width:0px}:where(.timeline>li>hr):first-child{grid-column-start:1;grid-row-start:2}:where(.timeline>li>hr):last-child{grid-column-start:3;grid-column-end:none;grid-row-start:2;grid-row-end:auto}.toast{position:fixed;display:flex;min-width:-moz-fit-content;min-width:fit-content;flex-direction:column;white-space:nowrap;gap:.5rem;padding:1rem}.toggle{flex-shrink:0;--tglbg: var(--fallback-b1,oklch(var(--b1)/1));--handleoffset: 1.5rem;--handleoffsetcalculator: calc(var(--handleoffset) * -1);--togglehandleborder: 0 0;height:1.5rem;width:3rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rounded-badge, 1.9rem);border-width:1px;border-color:currentColor;background-color:currentColor;color:var(--fallback-bc,oklch(var(--bc)/.5));transition:background,box-shadow var(--animation-input, .2s) ease-out;box-shadow:var(--handleoffsetcalculator) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset,var(--togglehandleborder)}.avatar-group :where(.\!avatar){overflow:hidden!important;border-radius:9999px!important;border-width:4px!important;--tw-border-opacity: 1 !important;border-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-border-opacity)))!important}.avatar-group :where(.avatar){overflow:hidden;border-radius:9999px;border-width:4px;--tw-border-opacity: 1;border-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-border-opacity)))}.btm-nav>*:where(.active){border-top-width:2px;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.btm-nav>*.disabled,.btm-nav>*[disabled]{pointer-events:none;--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}@supports not (color: oklch(0 0 0)){.prose :where(code):not(:where([class~=not-prose] *,pre *)){background-color:var(--fallback-b3,oklch(var(--b3)/1))}}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .98))}40%{transform:scale(1.02)}to{transform:scale(1)}}.card :where(figure:first-child){overflow:hidden;border-start-start-radius:inherit;border-start-end-radius:inherit;border-end-start-radius:unset;border-end-end-radius:unset}.card :where(figure:last-child){overflow:hidden;border-start-start-radius:unset;border-start-end-radius:unset;border-end-start-radius:inherit;border-end-end-radius:inherit}.card:focus-visible{outline:2px solid currentColor;outline-offset:2px}.card.bordered{border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.card.compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card.image-full :where(figure){overflow:hidden;border-radius:inherit}.carousel::-webkit-scrollbar{display:none}.checkbox:focus{box-shadow:none}.checkbox:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.checkbox:checked,.checkbox[checked=true],.checkbox[aria-checked=true]{background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-out;background-color:var(--chkbg);background-image:linear-gradient(-45deg,transparent 65%,var(--chkbg) 65.99%),linear-gradient(45deg,transparent 75%,var(--chkbg) 75.99%),linear-gradient(-45deg,var(--chkbg) 40%,transparent 40.99%),linear-gradient(45deg,var(--chkbg) 30%,var(--chkfg) 30.99%,var(--chkfg) 40%,transparent 40.99%),linear-gradient(-45deg,var(--chkfg) 50%,var(--chkbg) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-out;background-image:linear-gradient(90deg,transparent 80%,var(--chkbg) 80%),linear-gradient(-90deg,transparent 80%,var(--chkbg) 80%),linear-gradient(0deg,var(--chkbg) 43%,var(--chkfg) 43%,var(--chkfg) 57%,var(--chkbg) 57%)}.checkbox-accent{--chkbg: var(--fallback-a,oklch(var(--a)/1));--chkfg: var(--fallback-ac,oklch(var(--ac)/1));--tw-border-opacity: 1;border-color:var(--fallback-a,oklch(var(--a)/var(--tw-border-opacity)))}.checkbox-accent:focus-visible{outline-color:var(--fallback-a,oklch(var(--a)/1))}.checkbox-accent:checked,.checkbox-accent[checked=true],.checkbox-accent[aria-checked=true]{--tw-border-opacity: 1;border-color:var(--fallback-a,oklch(var(--a)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-a,oklch(var(--a)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)))}.checkbox:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}details.\!collapse{width:100%!important}details.collapse{width:100%}details.\!collapse summary{position:relative!important;display:block!important;outline:2px solid transparent!important;outline-offset:2px!important}details.collapse summary{position:relative;display:block;outline:2px solid transparent;outline-offset:2px}details.\!collapse summary::-webkit-details-marker{display:none!important}details.collapse summary::-webkit-details-marker{display:none}.\!collapse:focus-visible{outline-style:solid!important;outline-width:2px!important;outline-offset:2px!important;outline-color:var(--fallback-bc,oklch(var(--bc)/1))!important}.collapse:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.collapse:has(.collapse-title:focus-visible),.collapse:has(>input[type=checkbox]:focus-visible),.collapse:has(>input[type=radio]:focus-visible){outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.\!collapse:has(.collapse-title:focus-visible),.\!collapse:has(>input[type=checkbox]:focus-visible),.\!collapse:has(>input[type=radio]:focus-visible){outline-style:solid!important;outline-width:2px!important;outline-offset:2px!important;outline-color:var(--fallback-bc,oklch(var(--bc)/1))!important}.collapse:not(.collapse-open):not(.collapse-close)>input[type=checkbox],.collapse:not(.collapse-open):not(.collapse-close)>input[type=radio]:not(:checked),.collapse:not(.collapse-open):not(.collapse-close)>.collapse-title{cursor:pointer}.\!collapse:not(.collapse-open):not(.collapse-close)>input[type=checkbox],.\!collapse:not(.collapse-open):not(.collapse-close)>input[type=radio]:not(:checked),.\!collapse:not(.collapse-open):not(.collapse-close)>.collapse-title{cursor:pointer!important}.\!collapse:focus:not(.collapse-open):not(.collapse-close):not(.\!collapse[open])>.collapse-title{cursor:unset!important}.collapse:focus:not(.collapse-open):not(.collapse-close):not(.collapse[open])>.collapse-title{cursor:unset}:where(.collapse>input[type=checkbox]),:where(.collapse>input[type=radio]){z-index:1}:where(.\!collapse>input[type=checkbox]),:where(.\!collapse>input[type=radio]){z-index:1!important}.collapse-title,:where(.collapse>input[type=checkbox]),:where(.collapse>input[type=radio]){width:100%;padding:1rem;padding-inline-end:3rem;min-height:3.75rem;transition:background-color .2s ease-out}:where(.\!collapse>input[type=checkbox]),:where(.\!collapse>input[type=radio]){width:100%!important;padding:1rem!important;padding-inline-end:3rem!important;min-height:3.75rem!important;transition:background-color .2s ease-out!important}.collapse[open]>:where(.collapse-content),.collapse-open>:where(.collapse-content),.collapse:focus:not(.collapse-close)>:where(.collapse-content),.collapse:not(.collapse-close)>:where(input[type=checkbox]:checked~.collapse-content),.collapse:not(.collapse-close)>:where(input[type=radio]:checked~.collapse-content){padding-bottom:1rem;transition:padding .2s ease-out,background-color .2s ease-out}.\!collapse[open]>:where(.collapse-content),.\!collapse:focus:not(.collapse-close)>:where(.collapse-content),.\!collapse:not(.collapse-close)>:where(input[type=checkbox]:checked~.collapse-content),.\!collapse:not(.collapse-close)>:where(input[type=radio]:checked~.collapse-content){padding-bottom:1rem!important;transition:padding .2s ease-out,background-color .2s ease-out!important}.\!collapse[open].collapse-arrow>.collapse-title:after{--tw-translate-y: -50% !important;--tw-rotate: 225deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.collapse[open].collapse-arrow>.collapse-title:after,.collapse-open.collapse-arrow>.collapse-title:after,.collapse-arrow:focus:not(.collapse-close)>.collapse-title:after,.collapse-arrow:not(.collapse-close)>input[type=checkbox]:checked~.collapse-title:after,.collapse-arrow:not(.collapse-close)>input[type=radio]:checked~.collapse-title:after{--tw-translate-y: -50%;--tw-rotate: 225deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\!collapse[open].collapse-plus>.collapse-title:after{content:"−"!important}.collapse[open].collapse-plus>.collapse-title:after,.collapse-open.collapse-plus>.collapse-title:after,.collapse-plus:focus:not(.collapse-close)>.collapse-title:after,.collapse-plus:not(.collapse-close)>input[type=checkbox]:checked~.collapse-title:after,.collapse-plus:not(.collapse-close)>input[type=radio]:checked~.collapse-title:after{content:"−"}.divider:not(:empty){gap:1rem}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.input input:focus{outline:2px solid transparent;outline-offset:2px}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input:focus,.input:focus-within{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.input-disabled,.input:disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));color:var(--fallback-bc,oklch(var(--bc)/.4))}.input-disabled::-moz-placeholder,.input:disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.input-disabled::placeholder,.input:disabled::placeholder,.input[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.input::-webkit-date-and-time-value{text-align:inherit}.join>:where(*:not(:first-child)){margin-top:0;margin-bottom:0;margin-inline-start:-1px}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.loading{pointer-events:none;display:inline-block;aspect-ratio:1 / 1;width:1.5rem;background-color:currentColor;-webkit-mask-size:100%;mask-size:100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.loading-spinner{-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.loading-dots{-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_qM83%7Banimation:spinner_8HQG 1.05s infinite%7D.spinner_oXPr%7Banimation-delay:.1s%7D.spinner_ZTLf%7Banimation-delay:.2s%7D@keyframes spinner_8HQG%7B0%25,57.14%25%7Banimation-timing-function:cubic-bezier(0.33,.66,.66,1);transform:translate(0)%7D28.57%25%7Banimation-timing-function:cubic-bezier(0.33,0,.66,.33);transform:translateY(-6px)%7D100%25%7Btransform:translate(0)%7D%7D%3C/style%3E%3Ccircle class='spinner_qM83' cx='4' cy='12' r='3'/%3E%3Ccircle class='spinner_qM83 spinner_oXPr' cx='12' cy='12' r='3'/%3E%3Ccircle class='spinner_qM83 spinner_ZTLf' cx='20' cy='12' r='3'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_qM83%7Banimation:spinner_8HQG 1.05s infinite%7D.spinner_oXPr%7Banimation-delay:.1s%7D.spinner_ZTLf%7Banimation-delay:.2s%7D@keyframes spinner_8HQG%7B0%25,57.14%25%7Banimation-timing-function:cubic-bezier(0.33,.66,.66,1);transform:translate(0)%7D28.57%25%7Banimation-timing-function:cubic-bezier(0.33,0,.66,.33);transform:translateY(-6px)%7D100%25%7Btransform:translate(0)%7D%7D%3C/style%3E%3Ccircle class='spinner_qM83' cx='4' cy='12' r='3'/%3E%3Ccircle class='spinner_qM83 spinner_oXPr' cx='12' cy='12' r='3'/%3E%3Ccircle class='spinner_qM83 spinner_ZTLf' cx='20' cy='12' r='3'/%3E%3C/svg%3E")}.loading-ring{-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg' stroke='%23fff'%3E%3Cg fill='none' fill-rule='evenodd' stroke-width='2'%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='0s' dur='1.8s' values='1; 20' calcMode='spline' keyTimes='0; 1' keySplines='0.165, 0.84, 0.44, 1' repeatCount='indefinite' /%3E%3Canimate attributeName='stroke-opacity' begin='0s' dur='1.8s' values='1; 0' calcMode='spline' keyTimes='0; 1' keySplines='0.3, 0.61, 0.355, 1' repeatCount='indefinite' /%3E%3C/circle%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='-0.9s' dur='1.8s' values='1; 20' calcMode='spline' keyTimes='0; 1' keySplines='0.165, 0.84, 0.44, 1' repeatCount='indefinite' /%3E%3Canimate attributeName='stroke-opacity' begin='-0.9s' dur='1.8s' values='1; 0' calcMode='spline' keyTimes='0; 1' keySplines='0.3, 0.61, 0.355, 1' repeatCount='indefinite' /%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg' stroke='%23fff'%3E%3Cg fill='none' fill-rule='evenodd' stroke-width='2'%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='0s' dur='1.8s' values='1; 20' calcMode='spline' keyTimes='0; 1' keySplines='0.165, 0.84, 0.44, 1' repeatCount='indefinite' /%3E%3Canimate attributeName='stroke-opacity' begin='0s' dur='1.8s' values='1; 0' calcMode='spline' keyTimes='0; 1' keySplines='0.3, 0.61, 0.355, 1' repeatCount='indefinite' /%3E%3C/circle%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='-0.9s' dur='1.8s' values='1; 20' calcMode='spline' keyTimes='0; 1' keySplines='0.165, 0.84, 0.44, 1' repeatCount='indefinite' /%3E%3Canimate attributeName='stroke-opacity' begin='-0.9s' dur='1.8s' values='1; 0' calcMode='spline' keyTimes='0; 1' keySplines='0.3, 0.61, 0.355, 1' repeatCount='indefinite' /%3E%3C/circle%3E%3C/g%3E%3C/svg%3E")}.loading-ball{-webkit-mask-image:url("data:image/svg+xml,%0A%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_rXNP%7Banimation:spinner_YeBj .8s infinite%7D@keyframes spinner_YeBj%7B0%25%7Banimation-timing-function:cubic-bezier(0.33,0,.66,.33);cy:5px%7D46.875%25%7Bcy:20px;rx:4px;ry:4px%7D50%25%7Banimation-timing-function:cubic-bezier(0.33,.66,.66,1);cy:20.5px;rx:4.8px;ry:3px%7D53.125%25%7Brx:4px;ry:4px%7D100%25%7Bcy:5px%7D%7D%3C/style%3E%3Cellipse class='spinner_rXNP' cx='12' cy='5' rx='4' ry='4'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%0A%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_rXNP%7Banimation:spinner_YeBj .8s infinite%7D@keyframes spinner_YeBj%7B0%25%7Banimation-timing-function:cubic-bezier(0.33,0,.66,.33);cy:5px%7D46.875%25%7Bcy:20px;rx:4px;ry:4px%7D50%25%7Banimation-timing-function:cubic-bezier(0.33,.66,.66,1);cy:20.5px;rx:4.8px;ry:3px%7D53.125%25%7Brx:4px;ry:4px%7D100%25%7Bcy:5px%7D%7D%3C/style%3E%3Cellipse class='spinner_rXNP' cx='12' cy='5' rx='4' ry='4'/%3E%3C/svg%3E")}.loading-sm{width:1.25rem}.loading-lg{width:2.5rem}.mask-squircle{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M100 0C20 0 0 20 0 100s20 100 100 100 100-20 100-100S180 0 100 0Z'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M100 0C20 0 0 20 0 100s20 100 100 100 100-20 100-100S180 0 100 0Z'/%3e%3c/svg%3e")}:where(.menu li:empty){--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.1;margin:.5rem 1rem;height:1px}.menu :where(li ul):before{position:absolute;bottom:.75rem;inset-inline-start:0px;top:.75rem;width:1px;--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.1;content:""}.menu :where(li:not(.menu-title)>*:not(ul):not(details):not(.menu-title)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){border-radius:var(--rounded-btn, .5rem);padding:.5rem 1rem;text-align:start;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;text-wrap:balance}:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):not(summary):not(.active).focus,:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):not(summary):not(.active):focus,:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):is(summary):not(.active):focus-visible,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(summary):not(.active).focus,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(summary):not(.active):focus,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):is(summary):not(.active):focus-visible{cursor:pointer;background-color:var(--fallback-bc,oklch(var(--bc)/.1));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));outline:2px solid transparent;outline-offset:2px}.menu li>*:not(ul):not(.menu-title):not(details):active,.menu li>*:not(ul):not(.menu-title):not(details).active,.menu li>details>summary:active{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.menu :where(li>details>summary)::-webkit-details-marker{display:none}.menu :where(li>details>summary):after,.menu :where(li>.menu-dropdown-toggle):after{justify-self:end;display:block;margin-top:-.5rem;height:.5rem;width:.5rem;transform:rotate(45deg);transition-property:transform,margin-top;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);content:"";transform-origin:75% 75%;box-shadow:2px 2px;pointer-events:none}.menu :where(li>details[open]>summary):after,.menu :where(li>.menu-dropdown-toggle.menu-dropdown-show):after{transform:rotate(225deg);margin-top:0}.mockup-window:before{content:"";margin-bottom:1rem;display:block;aspect-ratio:1 / 1;height:.75rem;flex-shrink:0;align-self:flex-start;border-radius:9999px;opacity:.3;box-shadow:1.4em 0,2.8em 0,4.2em 0}:is([dir=rtl] .mockup-window):before{align-self:flex-end}.mockup-phone .display{overflow:hidden;border-radius:40px;margin-top:-25px}.mockup-browser .mockup-browser-toolbar .input{position:relative;margin-left:auto;margin-right:auto;display:block;height:1.75rem;width:24rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));padding-left:2rem;direction:ltr}.mockup-browser .mockup-browser-toolbar .input:before{content:"";position:absolute;left:.5rem;top:50%;aspect-ratio:1 / 1;height:.75rem;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:9999px;border-width:2px;border-color:currentColor;opacity:.6}.mockup-browser .mockup-browser-toolbar .input:after{content:"";position:absolute;left:1.25rem;top:50%;height:.5rem;--tw-translate-y: 25%;--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:9999px;border-width:1px;border-color:currentColor;opacity:.6}.modal:not(dialog:not(.modal-open)),.modal::backdrop{background-color:#0006;animation:modal-pop .2s ease-out}.modal-open .modal-box,.modal-toggle:checked+.modal .modal-box,.modal:target .modal-box,.modal[open] .modal-box{--tw-translate-y: 0px;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes modal-pop{0%{opacity:0}}@keyframes progress-loading{50%{background-position-x:-115%}}@keyframes radiomark{0%{box-shadow:0 0 0 12px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 12px var(--fallback-b1,oklch(var(--b1)/1)) inset}50%{box-shadow:0 0 0 3px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 3px var(--fallback-b1,oklch(var(--b1)/1)) inset}to{box-shadow:0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset}}.range:focus-visible::-webkit-slider-thumb{--focus-shadow: 0 0 0 6px var(--fallback-b1,oklch(var(--b1)/1)) inset, 0 0 0 2rem var(--range-shdw) inset}.range:focus-visible::-moz-range-thumb{--focus-shadow: 0 0 0 6px var(--fallback-b1,oklch(var(--b1)/1)) inset, 0 0 0 2rem var(--range-shdw) inset}.range::-webkit-slider-runnable-track{height:.5rem;width:100%;border-radius:var(--rounded-box, 1rem);background-color:var(--fallback-bc,oklch(var(--bc)/.1))}.range::-moz-range-track{height:.5rem;width:100%;border-radius:var(--rounded-box, 1rem);background-color:var(--fallback-bc,oklch(var(--bc)/.1))}.range::-webkit-slider-thumb{position:relative;height:1.5rem;width:1.5rem;border-radius:var(--rounded-box, 1rem);border-style:none;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));appearance:none;-webkit-appearance:none;top:50%;color:var(--range-shdw);transform:translateY(-50%);--filler-size: 100rem;--filler-offset: .6rem;box-shadow:0 0 0 3px var(--range-shdw) inset,var(--focus-shadow, 0 0),calc(var(--filler-size) * -1 - var(--filler-offset)) 0 0 var(--filler-size)}.range::-moz-range-thumb{position:relative;height:1.5rem;width:1.5rem;border-radius:var(--rounded-box, 1rem);border-style:none;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));top:50%;color:var(--range-shdw);--filler-size: 100rem;--filler-offset: .5rem;box-shadow:0 0 0 3px var(--range-shdw) inset,var(--focus-shadow, 0 0),calc(var(--filler-size) * -1 - var(--filler-offset)) 0 0 var(--filler-size)}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select:focus{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.select-disabled,.select:disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.select-disabled::-moz-placeholder,.select:disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.select-disabled::placeholder,.select:disabled::placeholder,.select[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}[dir=rtl] .select{background-position:calc(0% + 12px) calc(1px + 50%),calc(0% + 16px) calc(1px + 50%)}.skeleton{border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)));will-change:background-position;animation:skeleton 1.8s ease-in-out infinite;background-image:linear-gradient(105deg,transparent 0%,transparent 40%,var(--fallback-b1,oklch(var(--b1)/1)) 50%,transparent 60%,transparent 100%);background-size:200% auto;background-repeat:no-repeat;background-position-x:-50%}@media (prefers-reduced-motion){.skeleton{animation-duration:15s}}@keyframes skeleton{0%{background-position:150%}to{background-position:-50%}}:where(.stats)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)));--tw-divide-y-reverse: 0;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}:is([dir=rtl] .stats>:not([hidden])~:not([hidden])){--tw-divide-x-reverse: 1}.tabs-lifted>.tab:focus-visible{border-end-end-radius:0;border-end-start-radius:0}.tab.tab-active:not(.tab-disabled):not([disabled]),.tab:is(input:checked){border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: 1;--tw-text-opacity: 1}.tab:focus{outline:2px solid transparent;outline-offset:2px}.tab:focus-visible{outline:2px solid currentColor;outline-offset:-5px}.tab-disabled,.tab[disabled]{cursor:not-allowed;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.tabs-bordered>.tab{border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2;border-style:solid;border-bottom-width:calc(var(--tab-border, 1px) + 1px)}.tabs-lifted>.tab{border:var(--tab-border, 1px) solid transparent;border-width:0 0 var(--tab-border, 1px) 0;border-start-start-radius:var(--tab-radius, .5rem);border-start-end-radius:var(--tab-radius, .5rem);border-bottom-color:var(--tab-border-color);padding-inline-start:var(--tab-padding, 1rem);padding-inline-end:var(--tab-padding, 1rem);padding-top:var(--tab-border, 1px)}.tabs-lifted>.tab.tab-active:not(.tab-disabled):not([disabled]),.tabs-lifted>.tab:is(input:checked){background-color:var(--tab-bg);border-width:var(--tab-border, 1px) var(--tab-border, 1px) 0 var(--tab-border, 1px);border-inline-start-color:var(--tab-border-color);border-inline-end-color:var(--tab-border-color);border-top-color:var(--tab-border-color);padding-inline-start:calc(var(--tab-padding, 1rem) - var(--tab-border, 1px));padding-inline-end:calc(var(--tab-padding, 1rem) - var(--tab-border, 1px));padding-bottom:var(--tab-border, 1px);padding-top:0}.tabs-lifted>.tab.tab-active:not(.tab-disabled):not([disabled]):before,.tabs-lifted>.tab:is(input:checked):before{z-index:1;content:"";display:block;position:absolute;width:calc(100% + var(--tab-radius, .5rem) * 2);height:var(--tab-radius, .5rem);bottom:0;background-size:var(--tab-radius, .5rem);background-position:top left,top right;background-repeat:no-repeat;--tab-grad: calc(69% - var(--tab-border, 1px));--radius-start: radial-gradient( circle at top left, transparent var(--tab-grad), var(--tab-border-color) calc(var(--tab-grad) + .25px), var(--tab-border-color) calc(var(--tab-grad) + var(--tab-border, 1px)), var(--tab-bg) calc(var(--tab-grad) + var(--tab-border, 1px) + .25px) );--radius-end: radial-gradient( circle at top right, transparent var(--tab-grad), var(--tab-border-color) calc(var(--tab-grad) + .25px), var(--tab-border-color) calc(var(--tab-grad) + var(--tab-border, 1px)), var(--tab-bg) calc(var(--tab-grad) + var(--tab-border, 1px) + .25px) );background-image:var(--radius-start),var(--radius-end)}.tabs-lifted>.tab.tab-active:not(.tab-disabled):not([disabled]):first-child:before,.tabs-lifted>.tab:is(input:checked):first-child:before{background-image:var(--radius-end);background-position:top right}[dir=rtl] .tabs-lifted>.tab.tab-active:not(.tab-disabled):not([disabled]):first-child:before,[dir=rtl] .tabs-lifted>.tab:is(input:checked):first-child:before{background-image:var(--radius-start);background-position:top left}.tabs-lifted>.tab.tab-active:not(.tab-disabled):not([disabled]):last-child:before,.tabs-lifted>.tab:is(input:checked):last-child:before{background-image:var(--radius-start);background-position:top left}[dir=rtl] .tabs-lifted>.tab.tab-active:not(.tab-disabled):not([disabled]):last-child:before,[dir=rtl] .tabs-lifted>.tab:is(input:checked):last-child:before{background-image:var(--radius-end);background-position:top right}.tabs-lifted>.tab-active:not(.tab-disabled):not([disabled])+.tabs-lifted .tab-active:not(.tab-disabled):not([disabled]):before,.tabs-lifted>.tab:is(input:checked)+.tabs-lifted .tab:is(input:checked):before{background-image:var(--radius-end);background-position:top right}.tabs-boxed .tab{border-radius:var(--rounded-btn, .5rem)}:is([dir=rtl] .table){text-align:right}.table :where(th,td){padding:.75rem 1rem;vertical-align:middle}.table tr.active,.table tr.active:nth-child(2n),.table-zebra tbody tr:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.table-zebra tr.active,.table-zebra tr.active:nth-child(2n),.table-zebra-zebra tbody tr:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}.table :where(thead,tbody) :where(tr:not(:last-child)),.table :where(thead,tbody) :where(tr:first-child:last-child){border-bottom-width:1px;--tw-border-opacity: 1;border-bottom-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.table :where(thead,tfoot){white-space:nowrap;font-size:.75rem;line-height:1rem;font-weight:700;color:var(--fallback-bc,oklch(var(--bc)/.6))}.textarea:focus{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.textarea-disabled,.textarea:disabled,.textarea[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));--tw-text-opacity: .2}.textarea-disabled::-moz-placeholder,.textarea:disabled::-moz-placeholder,.textarea[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.textarea-disabled::placeholder,.textarea:disabled::placeholder,.textarea[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.timeline hr{height:.25rem}:where(.timeline hr){--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}:where(.timeline:has(.timeline-middle) hr):first-child{border-start-end-radius:var(--rounded-badge, 1.9rem);border-end-end-radius:var(--rounded-badge, 1.9rem);border-start-start-radius:0px;border-end-start-radius:0px}:where(.timeline:has(.timeline-middle) hr):last-child{border-start-start-radius:var(--rounded-badge, 1.9rem);border-end-start-radius:var(--rounded-badge, 1.9rem);border-start-end-radius:0px;border-end-end-radius:0px}:where(.timeline:not(:has(.timeline-middle)) :first-child hr:last-child){border-start-start-radius:var(--rounded-badge, 1.9rem);border-end-start-radius:var(--rounded-badge, 1.9rem);border-start-end-radius:0px;border-end-end-radius:0px}:where(.timeline:not(:has(.timeline-middle)) :last-child hr:first-child){border-start-end-radius:var(--rounded-badge, 1.9rem);border-end-end-radius:var(--rounded-badge, 1.9rem);border-start-start-radius:0px;border-end-start-radius:0px}.toast>*{animation:toast-pop .25s ease-out}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}[dir=rtl] .toggle{--handleoffsetcalculator: calc(var(--handleoffset) * 1)}.toggle:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.toggle:hover{background-color:currentColor}.toggle:checked,.toggle[checked=true],.toggle[aria-checked=true]{background-image:none;--handleoffsetcalculator: var(--handleoffset);--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}[dir=rtl] .toggle:checked,[dir=rtl] .toggle[checked=true],[dir=rtl] .toggle[aria-checked=true]{--handleoffsetcalculator: calc(var(--handleoffset) * -1)}.toggle:indeterminate{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}[dir=rtl] .toggle:indeterminate{box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}.toggle:disabled{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));background-color:transparent;opacity:.3;--togglehandleborder: 0 0 0 3px var(--fallback-bc,oklch(var(--bc)/1)) inset, var(--handleoffsetcalculator) 0 0 3px var(--fallback-bc,oklch(var(--bc)/1)) inset}:root .prose{--tw-prose-body: var(--fallback-bc,oklch(var(--bc)/.8));--tw-prose-headings: var(--fallback-bc,oklch(var(--bc)/1));--tw-prose-lead: var(--fallback-bc,oklch(var(--bc)/1));--tw-prose-links: var(--fallback-bc,oklch(var(--bc)/1));--tw-prose-bold: var(--fallback-bc,oklch(var(--bc)/1));--tw-prose-counters: var(--fallback-bc,oklch(var(--bc)/1));--tw-prose-bullets: var(--fallback-bc,oklch(var(--bc)/.5));--tw-prose-hr: var(--fallback-bc,oklch(var(--bc)/.2));--tw-prose-quotes: var(--fallback-bc,oklch(var(--bc)/1));--tw-prose-quote-borders: var(--fallback-bc,oklch(var(--bc)/.2));--tw-prose-captions: var(--fallback-bc,oklch(var(--bc)/.5));--tw-prose-code: var(--fallback-bc,oklch(var(--bc)/1));--tw-prose-pre-code: var(--fallback-nc,oklch(var(--nc)/1));--tw-prose-pre-bg: var(--fallback-n,oklch(var(--n)/1));--tw-prose-th-borders: var(--fallback-bc,oklch(var(--bc)/.5));--tw-prose-td-borders: var(--fallback-bc,oklch(var(--bc)/.2))}.prose :where(code):not(:where([class~=not-prose] *,pre *)){padding:1px 8px;border-radius:var(--rounded-badge);font-weight:initial;background-color:var(--fallback-bc,oklch(var(--bc)/.1))}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{display:none}.prose pre code{border-radius:0;padding:0}.prose :where(tbody tr,thead):not(:where([class~=not-prose] *)){border-bottom-color:var(--fallback-bc,oklch(var(--bc)/.2))}.artboard.phone-1.horizontal,.artboard.phone-1.artboard-horizontal{width:568px;height:320px}.artboard.phone-2.horizontal,.artboard.phone-2.artboard-horizontal{width:667px;height:375px}.artboard.phone-3.horizontal,.artboard.phone-3.artboard-horizontal{width:736px;height:414px}.artboard.phone-4.horizontal,.artboard.phone-4.artboard-horizontal{width:812px;height:375px}.artboard.phone-5.horizontal,.artboard.phone-5.artboard-horizontal{width:896px;height:414px}.artboard.phone-6.horizontal,.artboard.phone-6.artboard-horizontal{width:1024px;height:320px}.btm-nav-xs>*:where(.active){border-top-width:1px}.btm-nav-sm>*:where(.active){border-top-width:2px}.btm-nav-md>*:where(.active){border-top-width:2px}.btm-nav-lg>*:where(.active){border-top-width:4px}[type=checkbox].checkbox-sm{height:1.25rem;width:1.25rem}[type=checkbox].checkbox-md{height:1.5rem;width:1.5rem}.indicator :where(.indicator-item){bottom:auto;inset-inline-end:0px;inset-inline-start:auto;top:0;--tw-translate-y: -50%;--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is([dir=rtl] .indicator :where(.indicator-item)){--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-start){inset-inline-end:auto;inset-inline-start:0px;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is([dir=rtl] .indicator :where(.indicator-item.indicator-start)){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-center){inset-inline-end:50%;inset-inline-start:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is([dir=rtl] .indicator :where(.indicator-item.indicator-center)){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-end){inset-inline-end:0px;inset-inline-start:auto;--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is([dir=rtl] .indicator :where(.indicator-item.indicator-end)){--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-bottom){bottom:0;top:auto;--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-middle){bottom:50%;top:50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-top){bottom:auto;top:0;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.input-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;font-size:.875rem;line-height:2rem}.join.join-vertical{flex-direction:column}.join.join-vertical .join-item:first-child:not(:last-child),.join.join-vertical *:first-child:not(:last-child) .join-item{border-end-start-radius:0;border-end-end-radius:0;border-start-start-radius:inherit;border-start-end-radius:inherit}.join.join-vertical .join-item:last-child:not(:first-child),.join.join-vertical *:last-child:not(:first-child) .join-item{border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:inherit}.join.join-horizontal{flex-direction:row}.join.join-horizontal .join-item:first-child:not(:last-child),.join.join-horizontal *:first-child:not(:last-child) .join-item{border-end-end-radius:0;border-start-end-radius:0;border-end-start-radius:inherit;border-start-start-radius:inherit}.join.join-horizontal .join-item:last-child:not(:first-child),.join.join-horizontal *:last-child:not(:first-child) .join-item{border-end-start-radius:0;border-start-start-radius:0;border-end-end-radius:inherit;border-start-end-radius:inherit}.tabs-md :where(.tab){height:2rem;font-size:.875rem;line-height:1.25rem;line-height:2;--tab-padding: 1rem}.tabs-lg :where(.tab){height:3rem;font-size:1.125rem;line-height:1.75rem;line-height:2;--tab-padding: 1.25rem}.tabs-sm :where(.tab){height:1.5rem;font-size:.875rem;line-height:.75rem;--tab-padding: .75rem}.tabs-xs :where(.tab){height:1.25rem;font-size:.75rem;line-height:.75rem;--tab-padding: .5rem}:where(.toast){bottom:0;inset-inline-end:0px;inset-inline-start:auto;top:auto;--tw-translate-x: 0px;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-start){inset-inline-end:auto;inset-inline-start:0px;--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-center){inset-inline-end:50%;inset-inline-start:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is([dir=rtl] .toast:where(.toast-center)){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-end){inset-inline-end:0px;inset-inline-start:auto;--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-bottom){bottom:0;top:auto;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-middle){bottom:auto;top:50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-top){bottom:auto;top:0;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.tooltip{position:relative;display:inline-block;--tooltip-offset: calc(100% + 1px + var(--tooltip-tail, 0px))}.tooltip:before{position:absolute;pointer-events:none;z-index:1;content:var(--tw-content);--tw-content: attr(data-tip)}.tooltip:before,.tooltip-top:before{transform:translate(-50%);top:auto;left:50%;right:auto;bottom:var(--tooltip-offset)}.\!avatar.online:before{content:""!important;position:absolute!important;z-index:10!important;display:block!important;border-radius:9999px!important;--tw-bg-opacity: 1 !important;background-color:var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity)))!important;outline-style:solid!important;outline-width:2px!important;outline-color:var(--fallback-b1,oklch(var(--b1)/1))!important;width:15%!important;height:15%!important;top:7%!important;right:7%!important}.avatar.online:before{content:"";position:absolute;z-index:10;display:block;border-radius:9999px;--tw-bg-opacity: 1;background-color:var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity)));outline-style:solid;outline-width:2px;outline-color:var(--fallback-b1,oklch(var(--b1)/1));width:15%;height:15%;top:7%;right:7%}.\!avatar.offline:before{content:""!important;position:absolute!important;z-index:10!important;display:block!important;border-radius:9999px!important;--tw-bg-opacity: 1 !important;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))!important;outline-style:solid!important;outline-width:2px!important;outline-color:var(--fallback-b1,oklch(var(--b1)/1))!important;width:15%!important;height:15%!important;top:7%!important;right:7%!important}.avatar.offline:before{content:"";position:absolute;z-index:10;display:block;border-radius:9999px;--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)));outline-style:solid;outline-width:2px;outline-color:var(--fallback-b1,oklch(var(--b1)/1));width:15%;height:15%;top:7%;right:7%}.join.join-vertical>:where(*:not(:first-child)){margin-left:0;margin-right:0;margin-top:-1px}.join.join-horizontal>:where(*:not(:first-child)){margin-top:0;margin-bottom:0;margin-inline-start:-1px}.tooltip{position:relative;display:inline-block;text-align:center;--tooltip-tail: .1875rem;--tooltip-color: var(--fallback-n,oklch(var(--n)/1));--tooltip-text-color: var(--fallback-nc,oklch(var(--nc)/1));--tooltip-tail-offset: calc(100% + .0625rem - var(--tooltip-tail))}.tooltip:before,.tooltip:after{opacity:0;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-delay:.1s;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tooltip:after{position:absolute;content:"";border-style:solid;border-width:var(--tooltip-tail, 0);width:0;height:0;display:block}.tooltip:before{max-width:20rem;border-radius:.25rem;padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem;background-color:var(--tooltip-color);color:var(--tooltip-text-color);width:-moz-max-content;width:max-content}.tooltip.tooltip-open:before{opacity:1;transition-delay:75ms}.tooltip.tooltip-open:after{opacity:1;transition-delay:75ms}.tooltip:hover:before{opacity:1;transition-delay:75ms}.tooltip:hover:after{opacity:1;transition-delay:75ms}.tooltip:has(:focus-visible):after,.tooltip:has(:focus-visible):before{opacity:1;transition-delay:75ms}.tooltip:not([data-tip]):hover:before,.tooltip:not([data-tip]):hover:after{visibility:hidden;opacity:0}.tooltip:after,.tooltip-top:after{transform:translate(-50%);border-color:var(--tooltip-color) transparent transparent transparent;top:auto;left:50%;right:auto;bottom:var(--tooltip-tail-offset)}.scrollbar-none::-webkit-scrollbar{width:0!important;height:0!important}.shiro-link--underline,.shiro-timeline a{color:currentColor;background-image:linear-gradient(var(--fallback-a,oklch(var(--a)/1)),var(--fallback-a,oklch(var(--a)/1)));background-size:0% 1.5px;background-repeat:no-repeat;text-shadow:.05em 0 var(--fallback-b1,oklch(var(--b1)/1)),-.05em 0 var(--fallback-b1,oklch(var(--b1)/1));transition:all .5s ease;border-width:0px;text-decoration-line:none;background-position:left 1.2em}.shiro-link--underline:hover,.shiro-timeline a:hover{background-size:100% 1.5px;transition:all .25s ease}.shiro-timeline{position:relative}.shiro-timeline a{line-height:1.6}.shiro-timeline{min-width:0px;flex:1 1 0%;list-style-position:inside;justify-content:space-between}.shiro-timeline>li:before{content:"";position:absolute;left:-1.05rem;bottom:0;border-left:1px solid var(--fallback-a,oklch(var(--a)/1))}.shiro-timeline>li:first-child:last-child:before{border-left:0}.shiro-timeline>li:not(:first-child):not(:last-child):before{top:0}.shiro-timeline>li:first-child:before{top:50%}.shiro-timeline>li:last-child:before{bottom:50%;top:0}.shiro-timeline>li{position:relative;list-style-type:none;line-height:1.6;padding:3px 0;margin:0 0 0 1rem}.shiro-timeline>li:after{content:"";left:-1.28rem;top:50%;transform:translateY(-50%);height:.5rem;width:.5rem;border-radius:50%;position:absolute;background-color:var(--fallback-a,oklch(var(--a)/1))}.group:hover .mask-cover{opacity:.5}@keyframes blink{0%{opacity:0}40%{opacity:0}40.1%{opacity:1}99.9%{opacity:1}to{opacity:0}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.\!collapse{visibility:collapse!important}.collapse{visibility:collapse}.static{position:static}.\!fixed{position:fixed!important}.fixed{position:fixed}.\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-inset-px{inset:-1px}.inset-0{inset:0}.inset-x-1{left:.25rem;right:.25rem}.-bottom-1{bottom:-.25rem}.-bottom-2{bottom:-.5rem}.-bottom-px{bottom:-1px}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-2{bottom:.5rem}.bottom-4{bottom:1rem}.bottom-\[-150px\]{bottom:-150px}.bottom-\[-30px\]{bottom:-30px}.bottom-\[1px\]{bottom:1px}.bottom-\[1rem\]{bottom:1rem}.bottom-\[3px\]{bottom:3px}.bottom-\[calc\(2rem\+env\(safe-area-inset-bottom\)\)\]{bottom:calc(2rem + env(safe-area-inset-bottom))}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-12{left:3rem}.left-3{left:.75rem}.left-\[-1rem\]{left:-1rem}.left-\[calc\(100vw-3rem-1rem\)\]{left:calc(100vw - 4rem)}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.right-\[-1\.5rem\]{right:-1.5rem}.right-\[-8px\]{right:-8px}.right-\[1px\]{right:1px}.top-0{top:0}.top-1\/2{top:50%}.top-2{top:.5rem}.top-28{top:7rem}.top-\[-6\.5rem\]{top:-6.5rem}.top-\[120px\]{top:120px}.top-\[1rem\]{top:1rem}.top-\[3px\]{top:3px}.top-\[3rem\]{top:3rem}.top-\[4px\]{top:4px}.top-\[4rem\]{top:4rem}.top-auto{top:auto}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-\[-1\]{z-index:-1}.z-\[10000\]{z-index:10000}.z-\[101\]{z-index:101}.z-\[10\]{z-index:10}.z-\[11\]{z-index:11}.z-\[12\]{z-index:12}.z-\[19\]{z-index:19}.z-\[1\]{z-index:1}.z-\[20\]{z-index:20}.z-\[2\]{z-index:2}.z-\[3\]{z-index:3}.z-\[990\]{z-index:990}.z-\[99\]{z-index:99}.z-\[9\]{z-index:9}.float-right{float:right}.\!m-0{margin:0!important}.-m-4{margin:-1rem}.-m-5{margin:-1.25rem}.m-0{margin:0}.m-auto{margin:auto}.\!mx-0{margin-left:0!important;margin-right:0!important}.\!mx-2{margin-left:.5rem!important;margin-right:.5rem!important}.\!my-0{margin-top:0!important;margin-bottom:0!important}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-\[var\(--padding-h\)\]{margin-left:var(--padding-h);margin-right:var(--padding-h)}.mx-auto{margin-left:auto;margin-right:auto}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-16{margin-top:4rem;margin-bottom:4rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-20{margin-top:5rem;margin-bottom:5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.my-8{margin-top:2rem;margin-bottom:2rem}.\!mr-2{margin-right:.5rem!important}.-mb-4{margin-bottom:-1rem}.-ml-4{margin-left:-1rem}.-mr-2{margin-right:-.5rem}.-mt-2{margin-top:-.5rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-\[1\.5px\]{margin-bottom:1.5px}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-9{margin-left:2.25rem}.ml-\[250px\]{margin-left:250px}.ml-\[2px\]{margin-left:2px}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-28{margin-top:7rem}.mt-3{margin-top:.75rem}.mt-32{margin-top:8rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-\[10vh\]{margin-top:10vh}.mt-\[120px\]{margin-top:120px}.mt-\[18px\]{margin-top:18px}.mt-\[7\.1rem\]{margin-top:7.1rem}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-5{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5}.line-clamp-none{overflow:visible;display:block;-webkit-box-orient:horizontal;-webkit-line-clamp:none}.block{display:block}.\!inline-block{display:inline-block!important}.inline-block{display:inline-block}.\!inline{display:inline!important}.inline{display:inline}.flex{display:flex}.\!inline-flex{display:inline-flex!important}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.\!hidden{display:none!important}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-\[calc\(100\%-var\(--padding\)\)\]{width:calc(100% - var(--padding));height:calc(100% - var(--padding))}.\!h-\[75px\]{height:75px!important}.h-0{height:0px}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[0\.5px\]{height:.5px}.h-\[100px\]{height:100px}.h-\[120px\]{height:120px}.h-\[150px\]{height:150px}.h-\[176px\]{height:176px}.h-\[1em\]{height:1em}.h-\[200px\]{height:200px}.h-\[224px\]{height:224px}.h-\[250px\]{height:250px}.h-\[300px\]{height:300px}.h-\[32px\]{height:32px}.h-\[4\.5rem\]{height:4.5rem}.h-\[400px\]{height:400px}.h-\[450px\]{height:450px}.h-\[5\.5rem\]{height:5.5rem}.h-\[500px\]{height:500px}.h-\[50vh\]{height:50vh}.h-\[600px\]{height:600px}.h-\[6px\]{height:6px}.h-\[90vh\]{height:90vh}.h-\[calc\(100vh-15rem\)\]{height:calc(100vh - 15rem)}.h-\[calc\(100vh-6\.5rem-10rem\)\]{height:calc(100vh - 16.5rem)}.h-\[calc\(100vh-6rem-4\.5rem-150px-120px\)\]{height:calc(100vh - 10.5rem - 270px)}.h-\[calc\(70vh-15rem\)\]{height:calc(70vh - 15rem)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-48{max-height:12rem}.max-h-\[100vh\]{max-height:100vh}.max-h-\[300px\]{max-height:300px}.max-h-\[450px\]{max-height:450px}.max-h-\[600px\]{max-height:600px}.max-h-\[70vh\]{max-height:70vh}.max-h-\[75vh\]{max-height:75vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[95vh\]{max-height:95vh}.max-h-\[calc\(100vh-6rem\)\]{max-height:calc(100vh - 6rem)}.max-h-screen{max-height:100vh}.min-h-0{min-height:0px}.min-h-\[120px\]{min-height:120px}.min-h-\[300px\]{min-height:300px}.min-h-\[400px\]{min-height:400px}.min-h-\[50px\]{min-height:50px}.min-h-screen{min-height:100vh}.\!w-3\/4{width:75%!important}.\!w-\[250px\]{width:250px!important}.\!w-\[50px\]{width:50px!important}.\!w-auto{width:auto!important}.\!w-full{width:100%!important}.w-0{width:0px}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[0\.5px\]{width:.5px}.w-\[100\%\+0\.5rem\]{width:100%+.5rem}.w-\[100rem\]{width:100rem}.w-\[120px\]{width:120px}.w-\[130px\]{width:130px}.w-\[1em\]{width:1em}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[250px\]{width:250px}.w-\[2px\]{width:2px}.w-\[300px\]{width:300px}.w-\[32px\]{width:32px}.w-\[400px\]{width:400px}.w-\[5\.5rem\]{width:5.5rem}.w-\[500px\]{width:500px}.w-\[600px\]{width:600px}.w-\[60ch\]{width:60ch}.w-\[6px\]{width:6px}.w-\[800px\]{width:800px}.w-\[80px\]{width:80px}.w-\[90vw\]{width:90vw}.w-\[calc\(100\%\+2rem\)\]{width:calc(100% + 2rem)}.w-\[calc\(100\%-16px\)\]{width:calc(100% - 16px)}.w-\[calc\(100\%-3rem\)\]{width:calc(100% - 3rem)}.w-auto{width:auto}.w-full{width:100%}.\!min-w-\[auto\]{min-width:auto!important}.min-w-0{min-width:0px}.min-w-\[2rem\]{min-width:2rem}.min-w-\[300px\]{min-width:300px}.max-w-3xl{max-width:48rem}.max-w-5xl{max-width:64rem}.max-w-7xl{max-width:80rem}.max-w-\[100vw\]{max-width:100vw}.max-w-\[1200px\]{max-width:1200px}.max-w-\[25rem\]{max-width:25rem}.max-w-\[30vw\]{max-width:30vw}.max-w-\[600px\]{max-width:600px}.max-w-\[800px\]{max-width:800px}.max-w-\[90vw\]{max-width:90vw}.max-w-\[calc\(100\%-3rem\)\]{max-width:calc(100% - 3rem)}.max-w-full{max-width:100%}.max-w-max{max-width:-moz-max-content;max-width:max-content}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-shrink{flex-shrink:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\/2{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-2\/3{--tw-translate-x: 66.666667%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[10px\]{--tw-translate-x: 10px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[8px\]{--tw-translate-x: 8px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[calc\(100\%\+2rem\)\]{--tw-translate-x: calc(100% + 2rem) ;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\/4{--tw-translate-y: 25%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[0\.5px\]{--tw-translate-y: .5px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[1px\]{--tw-translate-y: 1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[2px\]{--tw-translate-y: 2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[calc\(100\%\+24px\)\]{--tw-translate-y: calc(100% + 24px) ;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-150{--tw-scale-x: 1.5;--tw-scale-y: 1.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-50{--tw-scale-y: .5;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-help{cursor:help}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.break-inside-avoid{-moz-column-break-inside:avoid;break-inside:avoid}.grid-flow-col{grid-auto-flow:column}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\[1fr_2fr\]{grid-template-columns:1fr 2fr}.grid-cols-\[200px_auto\]{grid-template-columns:200px auto}.grid-cols-\[4\.5rem_auto_4\.5rem\]{grid-template-columns:4.5rem auto 4.5rem}.grid-cols-\[40px_300px_auto\]{grid-template-columns:40px 300px auto}.grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.\!flex-row-reverse{flex-direction:row-reverse!important}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.justify-self-end{justify-self:end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-3xl{border-radius:1.5rem}.rounded-\[0_6px_6px_0\]{border-radius:0 6px 6px 0}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-bl-sm{border-bottom-left-radius:.125rem}.\!border-0{border-width:0px!important}.border{border-width:1px}.border-0{border-width:0px}.border-2,.border-\[2px\]{border-width:2px}.border-b{border-bottom-width:1px}.border-b-\[0\.5px\]{border-bottom-width:.5px}.border-l-0{border-left-width:0px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-none{border-style:none}.\!border-red-400{--tw-border-opacity: 1 !important;border-color:rgb(248 113 113 / var(--tw-border-opacity))!important}.border-accent{--tw-border-opacity: 1;border-color:var(--fallback-a,oklch(var(--a)/var(--tw-border-opacity)))}.border-accent\/10{border-color:var(--fallback-a,oklch(var(--a)/.1))}.border-accent\/50{border-color:var(--fallback-a,oklch(var(--a)/.5))}.border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity))}.border-amber-500{--tw-border-opacity: 1;border-color:rgb(245 158 11 / var(--tw-border-opacity))}.border-base-200{--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.border-gray-400\/80{border-color:#9ca3afcc}.border-green-300{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity))}.border-neutral-400\/50{border-color:#a3a3a380}.border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity))}.border-slate-100\/80{border-color:#f1f5f9cc}.border-slate-200{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-uk-orange-light{--tw-border-opacity: 1;border-color:rgb(255 149 0 / var(--tw-border-opacity))}.border-zinc-200{--tw-border-opacity: 1;border-color:rgb(228 228 231 / var(--tw-border-opacity))}.border-zinc-200\/70{border-color:#e4e4e7b3}.border-zinc-400\/20{border-color:#a1a1aa33}.border-zinc-900\/10{border-color:#18181b1a}.border-zinc-900\/5{border-color:#18181b0d}.border-x-uk-separator-opaque-light{--tw-border-opacity: 1;border-left-color:rgb(198 198 200 / var(--tw-border-opacity));border-right-color:rgb(198 198 200 / var(--tw-border-opacity))}.\!bg-accent\/10{background-color:var(--fallback-a,oklch(var(--a)/.1))!important}.\!bg-red-600\/50{background-color:#dc262680!important}.\!bg-transparent{background-color:transparent!important}.bg-accent{--tw-bg-opacity: 1;background-color:var(--fallback-a,oklch(var(--a)/var(--tw-bg-opacity)))}.bg-accent\/20{background-color:var(--fallback-a,oklch(var(--a)/.2))}.bg-accent\/80{background-color:var(--fallback-a,oklch(var(--a)/.8))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity))}.bg-base-100{--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.bg-base-100\/60{background-color:var(--fallback-b1,oklch(var(--b1)/.6))}.bg-base-100\/90{background-color:var(--fallback-b1,oklch(var(--b1)/.9))}.bg-base-200\/30{background-color:var(--fallback-b2,oklch(var(--b2)/.3))}.bg-base-200\/70{background-color:var(--fallback-b2,oklch(var(--b2)/.7))}.bg-base-300{--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-current{background-color:currentColor}.bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-100\/80{background-color:#f3f4f6cc}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-200\/50{background-color:#e5e7eb80}.bg-gray-200\/80{background-color:#e5e7ebcc}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-800\/80{background-color:#1f2937cc}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-neutral-800\/40{background-color:#26262666}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity))}.bg-rose-100{--tw-bg-opacity: 1;background-color:rgb(255 228 230 / var(--tw-bg-opacity))}.bg-sky-100{--tw-bg-opacity: 1;background-color:rgb(224 242 254 / var(--tw-bg-opacity))}.bg-sky-50{--tw-bg-opacity: 1;background-color:rgb(240 249 255 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity))}.bg-slate-300\/50{background-color:#cbd5e180}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.bg-slate-50\/80{background-color:#f8fafccc}.bg-slate-50\/90{background-color:#f8fafce6}.bg-stone-600{--tw-bg-opacity: 1;background-color:rgb(87 83 78 / var(--tw-bg-opacity))}.bg-themed-bg_opacity{background-color:var(--bg-opacity)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/60{background-color:#fff9}.bg-white\/80{background-color:#fffc}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity))}.bg-zinc-100{--tw-bg-opacity: 1;background-color:rgb(244 244 245 / var(--tw-bg-opacity))}.bg-zinc-200{--tw-bg-opacity: 1;background-color:rgb(228 228 231 / var(--tw-bg-opacity))}.bg-zinc-300{--tw-bg-opacity: 1;background-color:rgb(212 212 216 / var(--tw-bg-opacity))}.bg-zinc-50{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity))}.bg-zinc-50\/80{background-color:#fafafacc}.bg-zinc-50\/90{background-color:#fafafae6}.bg-zinc-600\/5{background-color:#52525b0d}.\!bg-opacity-30{--tw-bg-opacity: .3 !important}.bg-opacity-0{--tw-bg-opacity: 0}.bg-opacity-10{--tw-bg-opacity: .1}.\!bg-none{background-image:none!important}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-accent\/0{--tw-gradient-from: var(--fallback-a,oklch(var(--a)/0)) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-zinc-50\/50{--tw-gradient-from: rgb(250 250 250 / .5) var(--tw-gradient-from-position);--tw-gradient-to: rgb(250 250 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-zinc-50\/70{--tw-gradient-from: rgb(250 250 250 / .7) var(--tw-gradient-from-position);--tw-gradient-to: rgb(250 250 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-accent\/70{--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--fallback-a,oklch(var(--a)/.7)) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-accent\/0{--tw-gradient-to: var(--fallback-a,oklch(var(--a)/0)) var(--tw-gradient-to-position)}.to-white\/90{--tw-gradient-to: rgb(255 255 255 / .9) var(--tw-gradient-to-position)}.bg-cover{background-size:cover}.bg-center{background-position:center}.bg-no-repeat{background-repeat:no-repeat}.fill-black{fill:#000}.fill-current{fill:currentColor}.stroke-current{stroke:currentColor}.stroke-\[0\.25mm\]{stroke-width:.25mm}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.\!p-0{padding:0!important}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[2px\]{padding:2px}.p-\[2rem_1rem\]{padding:2rem 1rem}.p-\[3px\]{padding:3px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\[calc\(theme\(spacing\.2\)-1px\)\]{padding-top:calc(.5rem - 1px);padding-bottom:calc(.5rem - 1px)}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pb-24{padding-bottom:6rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-8{padding-bottom:2rem}.pb-\[300px\]{padding-bottom:300px}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-6{padding-left:1.5rem}.pr-1{padding-right:.25rem}.pr-6{padding-right:1.5rem}.pr-7{padding-right:1.75rem}.pr-8{padding-right:2rem}.pr-\[3px\]{padding-right:3px}.pt-2{padding-top:.5rem}.pt-8{padding-top:2rem}.pt-\[4\.5rem\]{padding-top:4.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.align-top{vertical-align:top}.align-text-bottom{vertical-align:text-bottom}.font-\[system-ui\]{font-family:system-ui}.font-mono{font-family:OperatorMonoSSmLig Nerd Font,Cascadia Code PL,FantasqueSansMono Nerd Font,operator mono,JetBrainsMono,Fira code Retina,Fira code,Consolas,Monaco,Hannotate SC,monospace,-apple-system}.font-sans{font-family:var(--font-sans),system-ui,-apple-system,PingFang SC,"Microsoft YaHei",Segoe UI,Roboto,Helvetica,noto sans sc,hiragino sans gb,"sans-serif",Apple Color Emoji,Segoe UI Emoji,Not Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\[0\.71rem\]{font-size:.71rem}.text-\[0\.9em\]{font-size:.9em}.text-\[1\.2rem\]{font-size:1.2rem}.text-\[10px\]{font-size:10px}.text-\[16px\]{font-size:16px}.text-\[1em\]{font-size:1em}.text-\[24px\]{font-size:24px}.text-\[30px\]{font-size:30px}.text-\[60px\]{font-size:60px}.text-\[6px\]{font-size:6px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.not-italic{font-style:normal}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-10{line-height:2.5rem}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.leading-\[1\.5\]{line-height:1.5}.leading-\[1\.8\]{line-height:1.8}.leading-loose{line-height:2}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-relaxed{line-height:1.625}.\!text-warning{--tw-text-opacity: 1 !important;color:var(--fallback-wa,oklch(var(--wa)/var(--tw-text-opacity)))!important}.text-\[\#0084FF\]{--tw-text-opacity: 1;color:rgb(0 132 255 / var(--tw-text-opacity))}.text-\[\#0D243F\]{--tw-text-opacity: 1;color:rgb(13 36 63 / var(--tw-text-opacity))}.text-\[\#1D2127\]{--tw-text-opacity: 1;color:rgb(29 33 39 / var(--tw-text-opacity))}.text-\[\#2AABEE\]{--tw-text-opacity: 1;color:rgb(42 171 238 / var(--tw-text-opacity))}.text-\[\#469ECF\]{--tw-text-opacity: 1;color:rgb(70 158 207 / var(--tw-text-opacity))}.text-\[\#8cb4ff\]{--tw-text-opacity: 1;color:rgb(140 180 255 / var(--tw-text-opacity))}.text-\[\#d6d9db\]{--tw-text-opacity: 1;color:rgb(214 217 219 / var(--tw-text-opacity))}.text-accent{--tw-text-opacity: 1;color:var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity)))}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity))}.text-base-100\/50{color:var(--fallback-b1,oklch(var(--b1)/.5))}.text-base-content{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.text-base-content\/40{color:var(--fallback-bc,oklch(var(--bc)/.4))}.text-base-content\/50{color:var(--fallback-bc,oklch(var(--bc)/.5))}.text-base-content\/60{color:var(--fallback-bc,oklch(var(--bc)/.6))}.text-base-content\/80{color:var(--fallback-bc,oklch(var(--bc)/.8))}.text-base-content\/85{color:var(--fallback-bc,oklch(var(--bc)/.85))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-current{color:currentColor}.text-error{--tw-text-opacity: 1;color:var(--fallback-er,oklch(var(--er)/var(--tw-text-opacity)))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-600\/60{color:#4b556399}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-800\/90{color:#1f2937e6}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.text-neutral-800{--tw-text-opacity: 1;color:rgb(38 38 38 / var(--tw-text-opacity))}.text-neutral-900{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity))}.text-neutral-900\/80{color:#171717cc}.text-neutral-content{--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.text-neutral-content\/50{color:var(--fallback-nc,oklch(var(--nc)/.5))}.text-neutral-content\/60{color:var(--fallback-nc,oklch(var(--nc)/.6))}.text-neutral-content\/90{color:var(--fallback-nc,oklch(var(--nc)/.9))}.text-orange-400{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity))}.text-primary{--tw-text-opacity: 1;color:var(--fallback-p,oklch(var(--p)/var(--tw-text-opacity)))}.text-primary\/80{color:var(--fallback-p,oklch(var(--p)/.8))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-uk-blue-light{--tw-text-opacity: 1;color:rgb(0 122 255 / var(--tw-text-opacity))}.text-uk-green-light{--tw-text-opacity: 1;color:rgb(52 199 89 / var(--tw-text-opacity))}.text-uk-orange-dark{--tw-text-opacity: 1;color:rgb(255 159 10 / var(--tw-text-opacity))}.text-uk-orange-light{--tw-text-opacity: 1;color:rgb(255 149 0 / var(--tw-text-opacity))}.text-uk-red-light{--tw-text-opacity: 1;color:rgb(255 59 48 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-zinc-100{--tw-text-opacity: 1;color:rgb(244 244 245 / var(--tw-text-opacity))}.text-zinc-500{--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity))}.text-zinc-600{--tw-text-opacity: 1;color:rgb(82 82 91 / var(--tw-text-opacity))}.text-zinc-800{--tw-text-opacity: 1;color:rgb(39 39 42 / var(--tw-text-opacity))}.text-opacity-80{--tw-text-opacity: .8}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.underline-offset-2{text-underline-offset:2px}.caret-accent{caret-color:var(--fallback-a,oklch(var(--a)/1))}.\!opacity-100{opacity:1!important}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.opacity-\[0\.35\]{opacity:.35}.\!shadow-none{--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_1px_2px_0_rgba\(127\.5\,127\.5\,127\.5\,\.2\)\,_0_1px_3px_0_rgba\(127\.5\,127\.5\,127\.5\,\.1\)\]{--tw-shadow: 0 1px 2px 0 rgba(127.5,127.5,127.5,.2), 0 1px 3px 0 rgba(127.5,127.5,127.5,.1);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color), 0 1px 3px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-neutral-100{--tw-shadow-color: #f5f5f5;--tw-shadow: var(--tw-shadow-colored)}.shadow-stone-300{--tw-shadow-color: #d6d3d1;--tw-shadow: var(--tw-shadow-colored)}.shadow-zinc-800\/5{--tw-shadow-color: rgb(39 39 42 / .05);--tw-shadow: var(--tw-shadow-colored)}.\!outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-offset-2{outline-offset:2px}.outline-accent{outline-color:var(--fallback-a,oklch(var(--a)/1))}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-\[1\.5px\]{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1.5px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.\!ring-accent{--tw-ring-opacity: 1 !important;--tw-ring-color: var(--fallback-a,oklch(var(--a)/var(--tw-ring-opacity))) !important}.\!ring-transparent{--tw-ring-color: transparent !important}.ring-accent\/20{--tw-ring-color: var(--fallback-a,oklch(var(--a)/.2))}.ring-red-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity))}.ring-red-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity))}.ring-red-500\/80{--tw-ring-color: rgb(239 68 68 / .8)}.ring-slate-100{--tw-ring-opacity: 1;--tw-ring-color: rgb(241 245 249 / var(--tw-ring-opacity))}.ring-slate-200{--tw-ring-opacity: 1;--tw-ring-color: rgb(226 232 240 / var(--tw-ring-opacity))}.ring-white\/20{--tw-ring-color: rgb(255 255 255 / .2)}.ring-zinc-200{--tw-ring-opacity: 1;--tw-ring-color: rgb(228 228 231 / var(--tw-ring-opacity))}.ring-zinc-900\/5{--tw-ring-color: rgb(24 24 27 / .05)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-lg{--tw-backdrop-blur: blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[margin\]{transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[padding\]{transition-property:padding;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-75{transition-duration:75ms}.duration-\[100ms\]{transition-duration:.1s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.\!shadow-out-sm{box-shadow:0 0 10px #7878781a,0 5px 20px #78787833!important}.backface-hidden{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0)}.center{align-items:center;justify-content:center}.fill-content{min-height:calc(100vh - 17.5rem)}.card-shadow{box-shadow:0 0 0 1px #00000014,0 4px 6px #0000000a}.card-shadow:hover{box-shadow:0 0 0 1px #00000014,0 6px 14px #00000014}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.\@container{container-type:inline-size}.\[--spotlight-color\:oklch\(var\(--a\)_\/_0\.12\)\]{--spotlight-color: oklch(var(--a) / .12)}.\[-webkit-backdrop-filter\:saturate\(180\%\)_blur\(20px\)\]{-webkit-backdrop-filter:saturate(180%) blur(20px)}.\[backdrop-filter\:saturate\(180\%\)_blur\(20px\)\]{-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.\[backface-visibility\:hidden\]{backface-visibility:hidden}.\[border-bottom\:1px_solid_rgb\(187_187_187_\/_20\%\)\]{border-bottom:1px solid rgb(187 187 187 / 20%)}html{font-size:14px;line-height:1.5}@media print{html{font-size:12px}}@media (min-width: 2160px){html{font-size:15px}}.prose{max-width:100%!important}.prose p{overflow-wrap:break-word}*:focus{outline:none}*:not(input):not(textarea):not([contenteditable=true]):focus-visible{outline:0!important;box-shadow:var(--fallback-a,oklch(var(--a)/1)) 0 0 0 1px}.prose :where(.image-placeholder):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose figure img{margin-bottom:0;margin-top:0}html.noise body:before{position:fixed;inset:0;content:"";background-size:182px;opacity:.04;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAADAFBMVEW9vb2pqanT09P29vaHh4eXl5d2dnZmZmZWVlZHR0cSEhI2NjYkJCTo6Oj///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACx57bUAAAARGVYSWZNTQAqAAAACAABh2kABAAAAAEAAAAaAAAAAAADoAEAAwAAAAEAAQAAoAIABAAAAAEAAAEAoAMABAAAAAEAAAEAAAAAAGfqGkkAAEAASURBVHgBTN2JQiO7kkVRMxljwPz/3/baR677OouCdKaGmBUKheTLx8/f39vf4+Xv8vP38vfxt+tx/fvy6e/h08fv9f3v9r37r8enRwq/qNWlzN/f99/f3evH36e//nz5dfm79equxNXfx9/lz/PH5f3x8PpXK1/f799/NXNX73dlXv0+Td7f96CmX/371Nq9droeHvbn7+/6qdn77+PxUPxTu10ftfd41K2/HtTh4+vr/vipOa3t6k3X5fVy1cBPLYHRVaHPlXvzWssPBPp7GQqer9RP1QEPX/3UQ8Vu9evf3n5/Rc3X6+n/7/GpJTW8/ljfPxeNnSvK40GtXXQdnO/u1Qfs43H7+wGiB6/XOvrZvRtNheHvRxR5/CEtmteo9qEUPJp4/L3E1Rv6jaixKuwu/RlWA1ezr3B5vLxixufb4/EaGveYtp4ShJe/n/vf68WfV62C9Tpief8Kum+MeJLn8TXu/30M1MfE6jsik7X3x8frhOP+8lGpV7BGZTR2Aeh+f3z+/N3f74dQ98PXUacSuv/7fKDP++uDnB6MewHQ/n08oPs9lqDNH5rc3/6u9yD9wuDfYI64Ckbu/Y9YXY8bov2cfkn65+Xx86oYku19v6Kh66aVR7D/vUb9BFH7r39fSOju9ZFeRffTsBvX5Qc1fwlQ4N2Ts8fXx4Ruv/5I4gHpjq9UQv2vcVgriU41bn8vg/5+O/pwu/Sqsq+jef0dKfm7Xm4f108i9EM/PA/ev18U1pFPdHhi/ukT4X4/5KPrlUSmv7ffvx+0eiBoLaqX7rykqy+4tE8//Q6uYfP29Q6Y4LtrBtCXjyskKMHX7983jN81/rYuQI0TEfAaMH8/N30k5CmU6/VOYRDh/e9rxO8ua3N7jQUjgRpjwerPQuHeyx/Fi/qXu+6HUw1+DYUD5m4B8zQPyAH92DUavSU/P79j6CgbMI/v28972P9dLt/6f/l7Z7QoweOd3FaPpCXWmaK3uOkPKOiJ63fko04+RR9/xqvrOPr103P9sUBA0sv1phSVot7HsAZ/iv1FlF91fjTqqPp3xi+TiobvvzfGmTi+BfmFSSDyD63+9FQv35BM0fbr9/b+uA/pid/X4wvfa/xIO12P1FX6eo/pSWe3Pz2+JdxxvYezKV9sTLQ7Ggmp9/f3qUAG2VWrP78KTJUfk2yPLq8K9egrEUKAx/sFIDT8dWz+zviebqIy4zGzWIsNDBE1kk12bu/f9OHxDZ/rnY5Fmmjv+r6+plJd2S11MkfM3PMR++kF9tzfk+EpAeiGz19G4IjlwbUX/rtwIoaMTveEZiPXTwRqUEPvEfGt0eMXQW8PdvCz8veXVwC+PW7vh7Da+kba0wDr+0eyEnNkMwB9RupvZgw+79HzAAZiZpCCD5bvByXzyCcl4vP99nMMUrL0PdXVTMKQhMcgpV/8bjRoAJ9gnuZix7B7vBlTXR5fGLhPFgE0UPua/iJy0kYE/Y/a6ZIBAKI97foH7HU6hONdirihQwH6w/y45l8kLaP242MqClxI1Yrh5Pp5xZvqPD6f/IxMLEcgjbX+RjXXf4OG+2+09+cnYKNjV97MuqgHQqcCuf09Whv1RoNx95J+rrKPhrLXelH+9++qwWp8rJqbBn5jmtdGypCpw6sPb/r7NV4/CaA28QmJblSEdaQ59iCaPRr8yI4mIdzz3pPwx+07+3l73H+8+/34ioUTvQzkAFYQBg3A6ntNzCJaI0AYTJlD5JiGsFvjGuxSjiQZX+8/jSsv1z9jl7r3xt9Qe/o8St9Ctzrkg6k4CHNgcPSFgDAoXMK1iuqGDcTf2HcDW2yaU6NBmhE8yfr15fHLn2PLN6rV+np4fblx9/7J07EWH9EfbHftnVIEMiBe9Gz0m2MU74PuDKxaqLlvQ3jeluvyY8BQ/wNtiHMSWaO/qQOwPv/e4sIaBlb4N+KjKnP7ePn6+8Et6gyKvy+VP/7er0DXNBr4fXvVSMpPg75YjsseRrAs1BMf+vCZyiufhasTA1m/Bu2QfHDyDnra+3z/+ATf3zunce0nGIn0UIrsdY2DIwfpuR2xnxTHZ9Ko9BXNJ+f5ATwYZOdYe/v19fhmSo8OTJ45ZtSFxIZqv8MKCY/HW7t6GPEyN5/V/NCctt42Y/ggNfA6IqLu10arGjnCd2xIgGnqVT8w2qf6Y4JZLjKT1dC0Z5twZMjhWglq+fvzgWZZMALVwypW8kGG8Zv702hymvUi6FbujXuY1cmIa+Gth0oFKx5dr6nV1WB7u37fP+jejD6HMU/HlVewCg93rynhumDIvV4JBP95fWMlPnGVqIEB+vELnpDZUOwF0s2iU1IW5fF9Bh7CxPH/flz4RcBrflDNSUmjzGzh97GbEMrL2+XvhbHSOd8hy3Ve/F4N7/+mIO9cJnW+Pi+qTeR+30kGcTh+7SjZ/GWGbubp8XMJ3rVGImkMjDOhUMVkkpEH2ZjOx3id5dW7Mt9wVuY5W3t8f7BEx95Ss5CI7jcNfP68NrBQpZ7A84vd+NywW1fxP7A/jM3Psfhd95wGOKT1D6PdW4LZeBGxLu+vycuM1f2dDVb7lwUaQdznbpzxo4F69Ew4zvW4cj0quf+JrTnL7TdxqqqxDlPu64mB46RrzLB9v+HstdE12EIEFvHPT4L4+/2OTu6aDD4+6V1D6kVBDCPt18/3z1X7yWl8mygMXuB9NWYjk5pvo8j9/uuxhzSUV9Hde0ZcU+43X/lEn/hK7vXBq0vwvh6/j+sP/mqp4jkoKRDMCCIKvTxejdxfUeML4K6X2RJlVD9XrvtjnsU+j3L3/Q7ob2+9Z/2NW3BT8+m3Rv4NUd+h85G0k8TmHatzWP1rUjYMENhkxLzkI+2YWLBQNR4g1/f1FesM54nZ+/j4+v6bLYoOLxvGwPVy2SisT2B/n6lV7OO8kB/i1pv9HsZe6cEY6tHG9J8j09/NXvTMFUWtz9mrL0PB40cN8hZy8X5XPPkRTXFxwIlogjp71JQ0D2jg1JzX6GEYNFFcee8+UurIxxao+Bw3ga+NXDNFsOrv8ga9GyIomrhPTGr4Ri5qzH3UYpiSicemK3si/mPcefmaR9bIBJ1YmLHJ5DFWdzPDWP35Mc5zQiD3xYi9EtpI0LDr+pjbsokHbSA78Xnu2J1H+vdxucQlIMQUry4PjntNRqsclXE/0CNSJQxkXiuT6jyl0KDy/niFb6h6KG7ACzQL+01uqqxbZce3P1PRBqg6Xpc8GUX26cW80TUtvvxGFuxjemNghU5/D4O6QRplXiK0F/5uwD76wpUiZnxU5Y1esWVo48JKZ+wvZtVk95is3OlLnngOabEyfzLmak1KWLAkylAjIAOSASz6FkhpEjkLwH1s1KC478TIfBuS2vrRQe4Zy2nagLyBMXmZ84XSl0aqNcFj/b4+3m7vr1xd2MdH0aAbSVonjUUVhKG33Y91G4B6nrH+N9Or71w9BqxC9WxyaEaeMc9t9TmE+FqjsLa4b425OqFRm6gk0vpWyWDwfqaLG0KOl/zpsXcbmzCDDeMfoGziIl6WIIRAPQ3gIJ4o7IlwonKxNTCMl3DKHdPnnauTDIUqAC/fG6In7opX6j+5eTlxysI6vaq9MIfA43KbvQQDUuIGJSWgRP9tzJ4JZEgEm17ChKNdyQpA6fPlpUnoiINzHMy/21XHdfS4Xx73b9TyL+f/s9vDCt4hNhTZMNf4fafucScJSk8G4tND+MTqWu+Z6tfL+wfPoq4jwPclDrv0e78F/eo2JiT2sQyc7mBRqE8tUVow4J/WfnH+Pbc50frJcXbFx+blLnex7v1HmAN9Etx3OpVnIH6jnmbeP3LXCg4UaTkuZY719fObeD4v4o6AGarBhL5qbhrwXoADKKNngqpMcDS8YKlbgKJWDYPzw+O6m7xErUrwBbTwUrzxgKkkulxZtgktLnHHRFCqyBvAwjtY4XYwzp4Xhfr8buyuyTxazYoMRJmK3TdpcIfSP+9nGKr/VH0Apb9e0qBs3ml4ougxV9CD/Jk4l8+zVn+z6+eDAWkPD4xibHD+ejcNeHknNYxD1pGip3cg5zRcmsnQUOHAbIsXJEaHEeGwTV/nOmw40N6KnB594lK4VQW+xWpI/PvlE6Qv0TsxQIWY5MJrknD8dM7C/MDbj/reTnx293XLwy/u0dWgShJDuY+bciQmI+nlyNwU/usZ/lPojHtursJCXAFNbO6jziWH5C6m4RGaapYyfr1fOWSPImAugyLj8rjBwezjikqfvfj+aNK1GPQY/Eap/kSrPIyBH0VdJzmE5G2PTnMK6GjBcu/3or+jGPIYGfI/P7/4zuTXZPiJGWNBUiu6QH83gg9h4vp54w7vDkqfczK2uuLRCinGzhg68prqSiAqFDDx5YtpRm1T/LU+XnNc5xuiSMj8NGeZd9UiQRcSko6P+8sCAbdfg96J1IN9yhYwi8+7oUoJ0Ib+NA+ZFWu0mNRmvr5fHt9zLlkiruFHwgj5I3dJIXDnMzHxP68myoRlFlbAvnnAP+H7QevvE2BLkOF3ZZlqJoCC+vP1/YcGf32aKB4vbHynCOA2wpPZSW3+yCdk1R0HUgiT+pjTxd9pdeRUWes6YHJffucFP34E82pnsmLa622xYgsEiqUYYtTmkwabCUqq/IOWhomNDWMSuXrP/R9B/y22cE5/Xg2S2Zl4R5oOgpGIvSkSlgsRvsFl5eflpYnQJCyiXG9NFHpJot+AlkFDz5+vD8ZKDCS14zjGpA9YV1hUZldThUkQ/VCsXmYIPMTt+ry+LAbJMD9BGBC/XPquVyaSAmWqwaPliTSiGBxu71ZQDrEzEYJG2a9jYagCDPRinv73Ifr8yNbWYIM02qF1f3N2jL71mU2iNAMPmricHGHn46iUzy6tgBpn3hE+3pL8XQtVEEaDbFNQsfyPi7l7Zr0FkUwQpfDL/Qm9QeeFCxr1wf0U3Ty977+3j9tvIiA6tPWOSDc+B3NN7CpI4gdJj5K5e/zi3DBVZZDdiqGfpdOfpkVd+np216cqF7r8+Sb6VEkZgmTyqynT8ezrmKGdz6lY3sflo3afrkSNqVXE8zJvcvLi1xWTK5b24g4scIyvfr83w5ozNukgy2+3AIFk00ClBil7oeqZND3OEhY1GBaNzcF3az4DnxPTqitRiNw7TX1Q/AInH9nGUKIG4ybSqI6Mpt7ZceF1jBddGKc2zMddxA3zRJPB+hU7HzIczcf1vYHHx5ys4+H9YOPYoQrz93djNRhZXLiJMoFoI+3b663waxBFNmsem8zH96J1GgCw+LaZx+MVB9K2NPT7xQcwVmCgh7XbE9ZWfVE1DtZT87yuxCv5PPF4Fr9uuUeesx8irjSGO0ZTXIdN37fWVdIrg+RL1Pgv3qpMCqUjkzngKYep1YXh5LIlEcbUEF2D4w8r+KBMKcoRS/b4movpJyl285uAIQXjunoVTXJQFxhnAhfatTeKR7e4VyVce8Y+q3Tq/7MAYieNce9P9Z0TARDdPjvazEWJqq2q/grB0zxWYWGGJ2srwE110WeQT43/fja1P8vKq48Umj7a+Si8M9evtel09pUA49NPMt1YgiBJgN4+L0Jpwm6p/K4z0Q1OAwALOmO0Fa9eR790G6nJBEkyo91oXnMFc0SYh2NT+x6Rf/YazVR8dgHVlqkg9FNMiEwQg+YGAPMu1seE8G4YsqLwFO3VNw6LjbfE+s3PMc0CjheKQIFssBAAOiLVi1vaeQsLQ9nB33047DKMJrX+szSAn0qG2AQMN2YByMmTtk8G3oTk5+8MzVrn8XNN0OQI6iAqiC/ZQLyOkJonfcy9fQ5pA7ti2Z9EGnfkGTxeby8w1OHHW9yjKChtUTpOeOo6PkYwE1xDPximBJsM1X/BRSZAQUpJY6r0Shan9xz5SucS+fP5feLeEbALEmoljePJnulJjbXy9UNttXhptTyILob1aOXCtiImu2b1PAba7zuXijhRiYRxnG0KNsqt0cARDdBaQDSLR8a0eZ2a1fE9fqnuP6X/lWWzpV2yk5hfbrcY5OZNlxllHU2I3puC/RaTmDK3loieqhxFIRJBAds7zoUh5zTcgaK1kNm42Ztsy+UbLBMd8avuflE7eK94dqKcOt6wcH03/ogLr2Zj0m72+/EMhuSlG2ZHvIY+Q8r6E7+tu1Upd2He+WpO+D6KhMKAiW+RxW2sjqKmwz6+fnzz5GgOQvhoEY1UL96jxYj680kpcVoA9zm78en+6tmBcX82bM9ThweLOIVdXsrjwu+KSGi3mJ1XQoVHBghDiHT127yENjIahSf2qKe82ogY5yplnQm0F0NYSu+xifJ+9QknezY8GzLSkyoNtyYa3jQ6r9ic1+KZ8EVM6+gNtmjYhAATrNLGtbD/E5fVdS39m7CC4vUQ1ONofBzoeIghSkY87ao+487E8aIR/PFm1JIwgkylFpn06F75H6SLo9BsWdXf98SNdN1ixFNtfn/53wb5472G6EI6FYTDy62YZWo+w2+9fhMRtP9sSISst4ev/lrxPLkIVSaYyab3jaU9WcvN7bHzcX0pMvqxnKtwwwNO2kIADxN8ttDqiMpRa3PmravsQb8+7z9lKXnNH66fTFSsgRbk0idmV7Ck3g/7PElwNA361t7rsPSj+5cwVjSuHBLRKpZ6Ski2YA76/JEh1DjnJ1uSJZs6pmz1k2XSxMMcIA9DDxzaV85wbaOXbnrYdSHwesisADIgnmBuYVIjgf3R6oGmRz0lOcWJTbi58r3cfj6DFj0alJVPgC//TZ1X7EywPr+EpWvAf6Q6v6kJuD56zgos26xbyFOrkkdYlURtNOpvFYnEE5gowrqiJsJd3oR45OSIrCnVvLE2sSmWWK9Isl++zay0v4hGj+sETcHmbVqH62+NlslM68iBNr0JqkSQH4Cs5txgWNJNBKs8F6CK5nd+74nhZIQyYTlCDilFNJRoJwen6GY11hEiS3Ld8A4DCjgEARK+cWr/W1vwKim+wz0amop9viK7iaQym09YjYzlBl8r54ODkM98BS/Gv788lSNYeO9Hv6yUHQE82WOhctDXVmzIQx9yG3l6vU8PYs1+zyXKP24cpMBCnAG7Kz8B665FNNLDFM/EI62UcqG5KdHyT06bPqtBH88Cbv0s9jjCTV2AxtFdByj6aoC4neypOvTEdBevboSh6HGTeU6WSlH2GImejq6g8Pfz/jKeLnMg4Q9BA9soap5OIt+jR4+1FHfXnNbRZubi8/p7+fqxMmF0esxJO9ic0UvYbrX1SiznU1pwSpenarCiSQSBEPyI1vQCYc60d+k0WZwUENk+ze4+ZpwOyyieAU47SqD7GIQCn/MoPMs7Tmb4g2ZGr/eP21em9NuImutP+DBXjMksaADJxzU0gaHFPqoEZNXnUA/GpjFHGC7vFl9dB9w7tYkajY3X+6fIYqA0RGibTJK9LTqIebRIr0ULzsYcC56JfxIslY9NM6P3Fu0hQ6S8PIMtAc0gxIcaplwSTVfr8qVvc2KJhydCvtmjX0UarlnCQmCgPjVz2nMmgVqv3NBUhiaMI5Emvpam4vEVVS6I92ri/hZ+OGBty3xbROH9YTzR2HnuVa4kXzkjcaAuAqqdJqIqCiQHSPf1jwD3r7Mu54H+jsKrmchuIjaXYeXr/fVlAw2CU9tkW1Ejx/e/sITulwUmwNvVWO7f+vtl6FnM5JCljiGk4oujslwaw7kJXg9dj68W+aikilvu6IYa3TPPZS66XqNcVwxT8UVGz6eInw9EMTysZMSrv7cSSI9gFKJxidegmadyN30amH+i464vq3CPr5eTGKHpi+mSUT6NDojzU3M+x8SuaJ5xnrwZBeAIamgxkSROKp9CJRlCTyBIhS8iP9IRf2nPnsIp7Vv7gFZySmrgPuPqaJk5mMB7W0pbZlbfz/nqE7zZJS1ND4dlnHU16LwBRnphJKuvRsHvFtgi2rLFa59kIeHGE2j2MjenODDIPiTDyJh55o1CY6sz5RysYIXZzUvLoL/ZfRkIBCRuec91xVWKIxJqqjt6cHrjFuqPW++mBD8t8fSACcK4DXSzY+C+ihCKBG/glGPzlFh8/7b8rsGmb9pr/NQIqwbEox0ShhdaDEQTk65AfitKERWzAFoImL3xDB9y9N8W4S8yuUutQ0DTE02coabQ5nHakftM/moG78W/tKmZxFrd3Jf4Pzd6vu4n6xxAIoGBaygICIj+GkGeAHlQ9kfTBgmsLRuElUEtANJ1VCLNldF8ookBWytad0rlslweDXSfJy4eMFq5fOXBsIAwAEW+1Gmgj0SYHPO12Rruv2mdSnmruqAULQ3uQrvkEcmDc1mJfHuPFKibXtOQuwhEZnHyb02PPz1SxrjxqcGCGapKbU3FevT9Y+iuhy4u9Y2G4rNua6GiXxvY9t4v2FbalgJQZqxmJtx+fB7FeP9qprYV/aLCk7GTr1pjH7QowroOaA8yuVABW6xhttOF7Gdpwy1uXpoljyDf/MHqsegFVZdXx5AfRQynTSNS3oA8tFveKJdZDHCQAyJfBUeKx4xKkRI3B9sRRrAmt0LfSVPuz8CtLc46KUpElWmsir5kAGEF1G1fqGqjPlbi8QanylbwtoEIGCJq74b7nj4sPAl+dD+jMH23QNRnlMjUX+Ktq0z8O3MO6PuGtsoYwUZP92AINQR5Pvms3YxxmZWaV4QJmhB/N0Tkvv7e3+ni22dss0MkkpwggwabIz6TxUaBtKINF693K0e6atzoGrDP7OKs9nmsu/ODW9AIhbgGQioPh6eNcZdaBpXbIfqRoOohI5GTOEodod3oKPFb0fJi6yC8/G9LzLM6wT3jaxV592c9kQtZe09tKkdCxa5LYdJxoEclpXVx+sovykOTLNOb6ejeoZQst0s+jucG8J+Pp4UIhN/cOfouZKQ0meTdj/rEQjcUftSs91/h4hBrXi30rzFs6AKdtx8mfd0MornwYqi//+P4UdQafeQS+9HFRZ3VMk304G3x5wD1PyHRmMy9ifyg8vDxj5MRfsI7vGvwOauYOm1pEoEAy7GYsYls2LnVHrT7/L3mhJrNkKyA0I8fDBbv58NKvkM16ZGX5GFQ+uWHiR7zHsuw7VGSzSTGSykYT5nS7L90nCpfrj/TasgP56EY6V5N2aOo6/4tzUXk5XC1x4g7UrjTSJPETNY/Gx/rlPU0y3LGdOXj4PZQ1K/bd4oIxK8Foz1isUqjqsl0o+v+XIL7+m79kyvV88sXdbbQaueO8ETzr1awymdAEIqFmZ6iGSgPTt4aTYqYaL/9Ynt8Le75acRK/skvkFvwKMSUzGQrsCBBE18TuUkWEpQFl8bDZT+xXL1Z+gs//xDpZU6bdV0W7ud9IphPvKkVk/FvwW4KB5h3s/GQWGUcSs2e/nrugwevC88yHs08Am4y9hxZpPRlNH5IV5QIdavy0GP0N+ltpes0LuMMBpG5ZqjZ1MStIca847QO62hZOg4ucmbwvEXdOpkD099ooS2STK1QoAgM0m7v3ktR8XsKrQQg62Q0d1d04vpRNmQ1vQcyZdKOtHQd8kaTtLT4TKamLdV/AnW0K8c+RP3OdS1QtID0Z0ozx8arM8uNJrVXggQoTCzWWrhLpPRu/kZufAVNRDI2PL1BfNa+6ujNvx7djEoJNgYlwKe/Ipc6uV6XLNc9300h0xv7r+p3UMDTw8YY7++bWvMaDXfXG8/z/sJcpum8ay1I3qvf1YzMrXckwP5Fs3MXEbtUFOedpK0HtsxfmLaApwY5NhWs2TXggZ7mF951d1Bdo5UdgTJQLTNN7tEeU6qFRf8GypZJyyfeTlFP83wUkaXQFPZjqjTHMAmobnIgVcc9Cb8s+TYe1HDTkX6hBlxUz6k3UXEhX0S5vl2fUc4etowqeylTkf+4DWtpMYfjli2+qlNTdTtfuxzm6Rci+CtLCfQaxyXOTR3NFeNLZn288zPGuZNBNVIptL0k1SyWkdeSPeRLsElyp8+OVS9TmfeXWYbvBsqw42cPWbxse/AzLgnAYORzgsHwtmxbqSXqT2R6ZgI/eQeEsseVO799PqUC93lfd64NGghw0uATb6H1jw1ztYJFfif+m1n+AnDqXU3mjvhcMERu09p65N2MJjkg6m93hEaWHhI9e/xfFgA58/ksGvY8SnJZ8ozEg6Y+PZ2OKRgLqW93zwUrSIW1Is8oqYgH8vHtRyXgqa5adeoIlP/dfbcsHkMnqxaUZG+AvumX7NEkI0RVHjWp6NN7LAr0v+urUl9l3B4KbE1LIFcSzUyPsouVQormUbazUPV1afV7hmeqnI3D+sn/9P70oLZVvt0XcwapSdKzo9E23Lru89dmEBZGbiWe7VyKvdfVlb/jt8ZUydnagN674lXgJYWsTisgCmSy0Obr9uJdEmzQ2AsVorki8BaxlGxwlgQMXN6AJ+uewHxf3z++L8sSikKPy2ezrVI+y4I6AR3NGLNBN4tgJl/dZpYz9GvK1BthlDisLDnJPCV7o49pYMtMl+YDYWmG6GmjsmrfJ/sZW89oENjV4VXMqWJwlrr69yskVSdeiu2wXU0a4DIrNm8WM9s0nH8y7Vwi+kemGTTqjklxg5twa3/fM76ENVDmLawpT82fs9cF3y0kzNJa0C1Gt6e6iXYhi4BZwZoECK9GH1hBAcwNLmdkn1k5VEBkuiwgplCTRD86Q9DNqeBbwmdBgvk4ugtF/zJGaYuYgpUoySrm+cjPEUobT+0bFiycp/6PVEONqKMoq4P92R48Bcx0Ba7mb2K54P7fmkbN5XsEATI3xRqTaixWFnNrBBjcdfxql8DGnqOAlSPgihyH18fB1NulZvbgiz+ar2euAQ/gWeMNOf8SWBMa45VilY1gOj4fqFcdoF2XyfL/snGthJt4ZAaTKa250penVFXxJBi+kuVo/Aw9rYXJUR7Bi3V8TcgCx5V5jsi3RIPlzddvuRW1XQeH+LtDpftvUwIL2fFbpqi9Ky2bEKJhfzj8ul2HLb16vGnHJ2Rb1yz1YPI3HuJb3COn1hWp16IZ6/RxZtW4WaT5kOJp7X5pwRRhqIrUV+FsmkHpU3Sr3MDX61FF28v5A4vPKSIEZluSiNLtks9zk/C65fCpTmYh3AK4HA882DiV7mcVenJ6cTP3dJxI9JfIzGfmcHFu1wrWZK9d6vvZpgz1NBTpN2R2qIFPPpKS6RmZ3PVbiKuipIMGLuSj0Kv5hD+ahV27cPBaQNq46IoFHqfPZ1NGC6sn3f/1X4ohrnxbMquB1opPyh7P39xGe+lAYeFEMiQ+CW5knIIGWesGzHZ3/oPP/ShBsMo7SDDQgz5vjtxye3vVNsALt51I3OjLd10bes0FizC/r2+JgvvTfBLyKsxcKLO1AW5aeDJkKIwRZWm4Xj4z8PGHFLRG7qlsTyvyBPDnuzhlgGkXuQpGxEMuzC+PsTv/MUS9XKuWfcTmZqNme9R7Kz/jdwJRdjBZ6p96hrZlWNaMqyC0a0znYJonGwhKf3eRuP0+SJebL0n15fcj2fI2pO9n95K78pMiu8c5cXqax2GEbYj4Fw7qWbmak7FWBU5u7eqVJcebGoJjqt4N7CeHStyvHL9I/fkia5z7GXCr6Nm5/B1UemePjznxBil4fAa/52imUO285bIXLWPdXBORwZUlp2lYUcPIaOEC/5uQpXouhF/2l5bgM04N7N65mqy1RHk3TmmCQGtx07i1GJR6nn7nqMfbtM3z45Kvj1IRUPGjGM4QtzJYnEzBSTV6ex0A/bGkw41+riVft5vyP5mXNYO0J1ZHcBf2PnNZFD0ZjfBuUU5r4gxATnrifpLZKFtql0cCbv+FYhqVkPh2DrMoDOdH4Tm6cJL40jCRU+pnOEbO5Jz2R1tjwetrZ6qk/RNcBWQRMaJo35XBGZv1TVIITnmf3hkrViFz7DNL98kTpcJn5Nef0PaWWz4ImUtDkckfkYZD8ZcPcXa8ZgZqPQuor3V8ff8q8RtP300zVEcWL7J7PnzEuWDumf28qTEG/EsJKUBiGKwktEXSa33MVjAueWMQLPj2+BXDC/f2deXeWECJLINiEtXEKAXedbKmNOmh3owsbnDU5vjeZ0A31oRIQ4R2iPY7HeVc1mg7YCspISmgw7e07hMKw6dLu0tcFQLO3Opexr1YErMOWKPolsn0+bj/phGsf67J4xxhcImt2lQNCY9FQf5VxzHceC40a7saaajrTByLrJ4snoDUhHbPDkMFfTQ0IJrAiJYSgFo1g/ebvMWwOKsH/Z8pLzq36jWwYTMo8N5fiQJx4joiv8hHrlHQBcqiXdpx/cu6rdnQWvNNfDAaJ84ekLM6g3YJk26A1j7OAJqhUZNcjmtrQXUkjTPrEEbgbpAJmGIZ50rP8Csa7lm/xugG1qLQT8HchoIZ9KsxwZz25b2hVIOJby5r/B5k2V15bKV+dp3w2woVv+vJir2ymdUIRJbSOzUCzlTX8yZiA0aRXKtRuEnD6NtyfpEAI5qovyLSglK2ko9j64upUgURyg+aRsRZWBvEl0JEBNEuy9Xi/O/L2wE300Eqj49sUQh0EZxMZAfrCusWAtN3yZ7r+0AaJkp8WFHTjGnRWk9euL5qHkboEGSg2sQl/nmVn0gfiWZmvSX1Go48/vphsdXY5VZc31KIx6VeLYh6qFNjk9TGIK3xVjTRpPp/Vz4DQEBxohRLVTrVVSkyhgkaEhbJvDzFcbnZx9+2G3/xMx4sPNH75BImLjnVKBfI8nBiy0dW4uiEobsZvad6mxOqZntacWZJFyA/cFgNHrxzvIb2EwEeCaCMF7BqBylT5zMND+m65QOXSOpu3QrWlPxr8AiNXVeK/XRS2HuhmGgsrHr216jZnu/p6VoMoPyQbFwlFVje7JkO+lyBnSknGEfGKjENY5R9QKAyuhLlZuy2pRlpHaTi2KCmgZnsfmvaJ2r1VlQyLqqBtU+0JwwSQmHIIXSI3JnGVA6aibm/xLLinUhxqv18/S5a7dO3tLCzLqoFrxGkWvpMfv79rmJVBYhMmowagACVkihQEGKXN/q82vbaoFJ7q9Sv5j90R+aSRY6tu/3crYaAiFpOKhSy+6F2GJAxGQOQN3AMBXUo4yX7w30r2otvOYcVbSNMvHzrHAxL+i2OFnua/gRrsMOg4TYlOivzHpIgE+chcPDOlgG7SIlZPahbcgVBavuxYUqtYGg6IkVm7sREzCrFc16wGU6t1O3SWiJeC2jlzXf/XWydu5GWENxc0LDfu1bwXQvuZB/2OAobt0ifJmXOZXfuzguwQPT5Wurb62a8Bp4MhZfo1ZwzDZwP0ZJazU4NNfYwnVPM3rXQeJl8pEHbRweQ+lO3XY7ZTWXMsnaWwVVsrNNE/g0eccC8rMZQkwNEmssSKqsDkEAQdhk2mo1NoE2Viltkav55jxQxwRvytT1d1ezRBmY11gteJhKjrN/No7zRBxh1iB2WJn28WIZyiQrOA/r4kQlvjQDohnAtBG4LgJM8BrYRdTpcLQNJnuPRmvDy/7y0jBGxwdZvq/tNUV0KzDvaDDssdHQwmfAoUNQTUsB6uVw/6fH7yaaP+ud4ICsX2tjazserfTrOmsB1/wM3QUiYx90oUGw8x9QtELSSykVdB0yWdrhRYP6I90bczgzgFVb+tJPN6B5THPiRoQru+IcDu9XyS1Jy2h2valh1wa3hezZ6iEvAIXo7AykZzmb9tzJJobQ22dsef4gkGHLZtq7x2K4JRidITqDdBL5PreBvDDVaOCSQ4QAYyWoYgRi98qeSGlfVfM3MR6pOdi/ozpFzJx3qlFKsKiZVOodK7d0feePKU8X2RG4Gsge9Fqb+uhRek6nToRM1bw5PGPApGUHuIwGqhGMDAOKQc6dcaCDmHPE8rnzpiRsq2fkkRuTvLP6ZwEQWNtM4WAsN8/7uMojgHP0DpAsSrWcm5pXsETapoAWpU5iRmJjiIbxC89lij5L17dbPGdSUaBeT1r2wFk20LA68Ox2zVqv9YRG7/Ix74lLy1vfLRQAExdOBmJ04nsvbSYi9cN4wE0xBXFVucPQrnAxtDRCuFZ/I1Vb/BbLtwS1VBmipkfujfnLakfhJFKch4P+mE1ySz88Pcd1q511kAM8edx3WKkpPX8ejbu3L9zx1mTXavNv8oa3JBh+h25SlhIxV9iuWgyiP5DQ5Gj43LnvSu17Vw7Or5hLgZd7leXivw1nmlcoIwV2AtDG3SEv4Ro1Dr0NTMl+672xEb61RtOAVd5+lj7iGY5IXQtGAF+P0FFa95DmPrEJn4sQmqGko3H/eaKqHL1/bvNxKbTrop+5oRNhw1ntmr7kPk7QZAdUa2ptpWkX/vXHiC93WcwUxb5PE5AJS+e0z5r1yjtDr/TkSeS7Idc1kykf7mV3VhIZcJzfKzWHdOmwt4S0JHdeVCZOX3MOkOkn0B2UA+fn5wkh83YvcZg4W+5Uu1CECiHS3xfQ5Har83WFd61PsZC1NpfvVcEr2c0MQ/UZVrFYNS5EljSrixc15C0h2IM/ExoOMWE8OP4kL5/fWwhPnBlNO4fN73QF30U3MW7QWmI/miO/fr8XutqRdc/RN+Wdma/1vvDo6XaBkljZioCECxSVg0udiZj4s7b5aW3TRGvHbNMY7DWfAiypkRSrup+CnPyJJk4HNlBKMrQJxl3Zfoa1nVQs0hzbTgNdLG86JwiYQQgLiX+gjTera3NrGb2a2Pri47X23+ZscYbkVocQQIsIWT/nTr6KfL2WE2usYxzy6uFKopCXIXOds4AjwdFYZL6Iw8nAgj8oVO1H+uEarliC4yBIGKowZL0v37KmoUbip4WfTNrAcFL5bNlLkvJsviewTEE/FjFEJsIlvELJd1zMbWiFjgKfemWCuC8Ges9yIEjQSlgg8V3ILrgpG58gUXB2CeqEVs7Keevfc9qBJB8c4QU+54wcOt6cj4Gkw8+wawWsJPvqL6ulUn85tswrKUJlM2btpMRQm9OlTyUI8G71ZIDxIf51Toj2RJsYkVHUStdcgV3hj2EidSG/Xa8WC6VjaA1QIPTn3XEjz6X2TjzYlfc330IBM1bOyo/SZEQjP5Zz67LV1u+ddfbvQOOMQuk1FjbJOyy2E7VFYRTJPg/WS2XAt53d3xHXtJesZxNmTsz6hvuVOv72L6AjntMDT90DYKVTjHsaFbZTNMz9lemJ8mifD7ERwb3UQIVjbYhRKzgxvuleFTBXfdgur2UTDnBhD9uBy2VpA2u2a7nldhrOWf3522nMeO2iBIwUjTZpo/DQ4lGnQwgC+6QeMUyFVXQTnLCdHKcsYrRRNaJ6yEpiFVi3YSmWp69OJwlO0bYxZrEg1dX/bdVcZv7Ms5SNEFdR4vxxCLHW0Aiu3zBqUiRziPjZFXJeCO1vGHIDZIGOFdRZXqWKZ3A8icykfwiqmcwGJ/+W1rUmWgklDQBOAH5niQ1PI42dzkwRl8r8iSm0M0s3J+phrUvx8nNdUzmrr6/lujq7TLrH2fG5RpD4B6Wi7wKLevFesSSdiZwqidgDtappWewnj6OxD3vB0KrLtcnP7FDBbNkeRxTBN4cLmyHGTj4QkP7KrtBBvebnQ3+y750xgGSr0PVk5qdo+vggedUagDHgYngnu2d5zGlPBGF1MOUgRlUdr7Vai3qytxmQ1S80W7uigbCmDqJ61hW8STFc2xkLjKqjhcmYF7g9jiG9OctuegMjQwXE6DLnJbRW69fAMYmZSeVFREjbjYKNzHp4n7MhmOSVhj0L5FZv914wAlO1dqYDy2wtylM0wb57yutX0yDbMR2apOU/o1dbnmLWG6xs6DqGbp/SMKuo1dh/ZyD1TZyZL6LhDRsgOxfq2OGZsq5s3/fm7Xz5mKGhs2LmoFWD9+TcODjCzwfH+KDBMrtuSwOQ+7T7rKPteWc20rue4D4DLB8EW+2A0iVdoTNC8dWSWD3hvTpRUeFQGgdWvYi9QBMUcfHXKS514gvhdrzoM4lL7BvB0151PUUFsVrf6/0hoQwrL5BgJajoDiz+Ak+lKYqEABRyxhaPR0ZsnGTgZTT4od9RoGanCrh5NpJDCq0KOi30cejLvORTZ6rSDbEe2gX+grb5/r3Wan0ukFYysk7fm7BX0iatHxHWh48HwbOgpZJHHoXt5OpVvi8H3b96Bq3c0j/oa0xtStsUVGKn6hJbIBjcSwZe4dvBm2pFAV+YZxxTyXvse8bIaorPkOLBgNWu9db9Osp2prIWn6zdsQHKDaLFwS+G2mdQ2fTUfVxKvnC01e/+0Z+H5KvRvCjWugsaPLOOMfavqdLT1oWa6/2K/YVxrReTYTy07dWl5NmnKqIfAg8wmaleT9Oc1ad59BYPSEyBUXujqnFjyPCGRi0fR955CxuDJDSGcYIBTGG7Glzd05TWQkh3g3mtDbjKn0pREB9QiydDhyeLoQ5J6WL0m11ePLZ++ODFfyMdBAlbZGvkMdTLXTuftQ/iX+eUNXLkLpXhpbOLkCJkR3K9WS0FxxpsjmF/Gz+XYrObMSL06neCfhYiQvdz05pzgSGyW9yDIgs412h+z6GdHrHsXfWB3NqWFnJPMnsRXPTfPn3boNbs9VwMeIY37S6NGXLKlpnpnvwJCw+o9reGtFSgQthiWlk2b9DuXUJmus90ns5cybiJdao/dMkip63NtQssMt3elMAb3rXlKIA0XDk6YeTP5L4Qgz8Jab2FNYCn7Sui/pZ0j0rndHpj8y15DNLQkOhQIgljAjGRHnPi9mpmNaKfQ/X7z9Qc8rlMsHjQ4bIuLvzWanQumpd6pOzhrbCI26+QRFwX5x+9nkU7vbh5Y/SystAxHZU3gPdvu0FGylyvkEE1InvaLvJfta51lR4OkJrpqGXCMrFiuaocBexKgPwuNOQwlAHdEx0YBTlMm825ADWuaESW3FpxxcdUBl62dkOcKMZbdkOFivBtpFgJpTBNH+/luDxMxVxGDthgrkLm9M8OESzJ6DhlBuSOvtda+28xY0zH2s2jpYYaiP80aXcXlEVJCRZoJ6BmihpRIcHQ5Xes6I3l3v5ktSe90Pyoi6RG6qv3e7W4pCWYsixW1gwVrb9j1znTkiJH3dTtia2ldWX6yk+alyXFATYIozEbqZLbHOo0p9S/Jrc8OtCqqQWw6np5AGCUSGetGWdsfqvDZBp0FwKjDBnU1vwQvTHfPpMVniSIlqWlpC2z49lYkUN5rTtpxWjSX4mgdHbnaDhs256GP1bv/2rvvaTzvnODabJkePBrzSjFkjwyvnx8WFPOgnDM9MLWguVquRHYbqwJwiH2Z0L7a/9Yx50oc6oO2D+NgC+zzbgNsw9JAjA6O0mpeRhKmrZ4IRzfzvwqnVP/I0VmYZKjur74/ol4nuad9vF/aOskYiKoNF8YDOV6/ijXWVp+UeZEZtCW0DISJ56Rqb+FqBhZpuvqyBGYQcwDaUwOAsmcIrK7HyBT9W1eAgtH685t0n0jcKHFWJbX4uVndhOfqyxEaofiOmxAtnmMcq+UBCfrf4uEO7TJNQjysZkVTbPR8xhcPTrl1sjL3ZoFGW+tz1SYH/o7R/ojdiPud5ZV6sYbAoc4fPOg+x64rve6AM6CofHIllO4tEBJYAvS/Zrvr3eU5EPXZE9Y60xH/0+i2GXZcQQYSzRjz64KBWakRBCjKBXeTxq5Znt1Re999ZLrT7Coh1Z1yQb0E/faGKA+q5E6Xxmz+FmXzUQ1PxzlDv7zKhoafk+zL7W/Qq9jHvAM3rjPIt41Y5igJuHwWXNBaY007nZmQUhwo4OpuWYR4GMWanfHCPyT7lp7uuszMcg+Gp9fNZT0fek9rlxmoqXPs7s34B1n4Kd0ERhSy4+7RxWqtz/jjJxro0OcoOir7MwnyNtHItbeXez4oo4IFVtQCICDH9Chz4WRsi7cEPJLNHBT2BPj8pCX8VbfVhNqtr0hYHrPbWVPDSiNqn0+SRLftf8tP9bDB52d79k0j4l9l/X0RTwTH4UB/CbYsq+0j614x8QyMuJllJkotb2YOqo1LRHT6PaE4q3Mb+YjDFm/kJxwkDpwNZhrNnEgHVyixGcHcWkAxvj3N/b9dhL0POoNdty6KDvDo98akxUQSwmg8v/kjGpPtu9lz6rKrNp+nLPQZT0edFK/NSY6HeuKKFBp+7tagHjzgOVicp80bkD7qx7mo6manBYSFpYsSOEhbuig2G5KucWXC0qdR9NRtQCz0lmE8lzxzXG/+yo+pKXfnuGFmzWfvspxJSIiB5O37g4sCFEcDN8Ywjq9sfPAEX/+TTlRqrkmm2uJUy5QO7h3ra6RhRbv+1dgNUCN7XkOhwixEeYIrOB8Z5PW7B0S6EZ/KkG6de8rFlVeweDlApfJrJbFBOa0p04J/Ajx6+iWDpVM4WnM9fuBpev2etX63G31fLEnsMun8NiB+P1cmsNVsWTVRYlkCPj7L1cvCEISMrZ+Fh3MZDFeg/DM2TgmOsWCLSwzMB0EP8UZOzd7yA2gq2lMqzU/JSa9oGR6q932ChuLoasjTNfJbrUHdECAc+RXiKnOXQi9r09l89davQ4z1nhDRtxxQRLn0/RjY0FrqxvAE+DcS7ngJNYvd1qsQnPK1FmGbZLbv4mxF0QCriQR770NJtV354Cm3StUkFXo/66bwX+qdPyDwtJhKQ6a1WOM3aWLQ1YnU+XaIhb7sx7BQdzai50pdja+n6Jp7vczkf5aeYO2pZjxvP1s35ecPoGPGmSlZRWa7RLe2vgVO8I9MMHgGnuuF24nMFiRf5sPSC0L3/W49PlLw8fxp6jTnwZONVfO2OBCtPB4mFEz6lO1KfivvaZl5PAx3h15taxGfO0qtS21OXyORpWgPTlOA9c1lwZqjmYycF+jnnguJgM3pE0Fn8fDd5/ZMJxDu9+fCE/LuxNGly22UrZFqUKkOYp81LZzX7krcIqD329vx2N6NtrOu0DBzRo4zCNWE670FlqiSpmvBwBO+PkFopjMHKynqip7dxunnIsDGQiWOs89tzs3vZ1BDjQ2WC9jRFV0dLDk5w0ghViQt0sR2kAobFxfF45ExjNa4aqXGnn+PPKWgax5jGnc2+HINl26TYNoOHW2yhZCIZ5L3yxMtMERtJ0tAYjK8xJf8uC4GGydpm//elEi288W8sktu7a9ctDibwPtIyPuyug3EqF/1rmaDFHH+1x6sj+TprLW0Xr/niJz8uJLcc6dYXA3AZVsDKGt6CK/QLNn9imhI8fPvfLKQJR5B8Gs7OFdvIrfWty7UCkXvGZCm/4zRkd9kJouo9yIOU9uAm/FEOBjq/BA7dYwAQZMRc3/U3Oc4yYMKjtQtQdy7fp1K1TI89cd+3vlELGLO91dRbUT0Sr5eehLnXPkhHu5bdRLI/I2fdp5xJCsCANCdSV677yLxkIMOz+NMNJ3VAMe1yBYn67u44gQFsNPY0EoK94xx6RVa9tgq4Y5XHoOY72iiZYHC5+jV54COH05aW/t+oVA7kVsuFoGQ5rP5kwFHxjraaOaWeu4wyer8XF6GFCJssm2UN3k8guK161VAAT1Jo1j1xg0STXApRWmE6VoZczWGWgZ9s01dg8sjm9qeVO1BUcWQPW/Tclflfq75h81A0JozePfVUr2qyGHaZd8U2vgf0gg4T+GsUNdAiE9yM9P0PHEgzX2pY1eqLYaVmwr3onRiGElgC9e6wqsgSZqC8Cxnq0q1l2iak+o6jSlXHa1s8XKL0pmInRhq+kGK66AKMsj85hkk1J2m30O/2OIz4OgLZD1Cc7RKq2dSK+i6C4utCR0e6c0SqOxz/K+yW3c3aXJBuRFmL3Zqw2JJhQMjvJlNAuLD5G+eTSpNYL7fi9ryPWDximu+ulnTJaRo9NOYufjIQ7r0jPQXA9u6mY6425n0e98Ii4lvjN8lYzLJ9CQ1X1ZEHhvTBc4vMf9Urwpd2mm715hlS3vCflYhredes4MxzfvYtF34sDGO7ZvNMrCHgaDAIKjyXx16bhy4OXS2VSgtnK7SjO7fpvHbqpvg7G3rStTzH0zBkA16Xmew7XUxeV6b4E41HWgDKiQ9C6X1/0shtWjxPaBnDYvYxJzP3CVnZW2HpBWZ9BZ0jXG9HiP76rAoda7F5hJ60+GRu8cf/MkM7OlE3/l7nZrkSXt7uF9nL592ash6XsZ/qwmmFYQgzXKxKxP982mbSPH97EXfM7USyYozPAabQ0vMatgWyVuWyIkNoIck2c9jGRVnaI2pIbNRBiF8R3QWJImpdUuNbaUkycjpT1gcOhnIilbuIfXRcHL+41t/KqGm6dIRn+EMSiPNtXiyWK1Wot+32IwXFHxjg1WRyjal6zwbnHHNP9vd6V8kInGrN4lXlUlt+HE31Yu1d0YGH1YIfORfVSVieAH4WunSY3bD5L+oNoT1xM5Tp5ECXMFa06G8BDZVkW7+yLHmzSVX6Fgd5WQ4nkr9abvzSF2ZmSbIukS2SGMo76yVc8/KVAdB9Fypc539KLc8NBUXdMCjMoNDfBgm44LiCvw2L2NJClU/R78di6gwJo7W2U3KpLCitckaH9+UVQnzArzPExHmX4y6O+lN9mIy8dyFz4awbp9OAitoqsHItIUffwmyY3bexp4yZrKXhMGehqLiO0OaUHu9cKHiZmvV6qBmf8CeITkqQEV19L5wzb+wzOLk7fG38UEr+wKLp+lOAOh9ZhEtahPA4GZXatr/zmXM6TuK335NWM895Co3QuXG48TteWijBJ1dWdh9h07BWpZBIaqWYT38PQujTd2eE2LvFJlE8Jsc/OgylS+2lTnCvMbiJjuZeXkuKe8i44E0ghYvM+bIQz4Bm1khWNnjWVZFE4QziTvReiIQllt2zpwwCCYkgxQxWJXCtxGlkRWFExefIOy3DwUUCFJ7iTzPLtha7d7/iTIm+bq9JidAT6KqNz8+o9uHVwGRVOx952EcA1AXCV1OdBcsEaZZpiCnhxHAtGnDBlKuM+aBoIDSu9mcvtzcO+RzjCk9X2dL1/KkHkFEwo/35hNnqpi+YrEvg4OyEzJDlYWOagxnv7l/Z6+HsM4eN30mM6/f1CpRGQabQtTT5GE8n1tVU59f1DZX3zThMtTr8eOMHrGvDX6WCTqWwQg/8hrMtDsQN+btmOnWAAPh8spHSX4Sn6VpbOjEkr7NvE0/fDG/J5xGgya/t75YpEtQVmD0+HV2cnjIcLRpNzZkcWFgmpgr/vYaeTvHOpLOdooLHKdbS5afpvPTCL6RFpjnSVb3qoZBRbI3r2/FHuyHS2IJtWegbA+Vx6f0y6vp+cnnjp8uFE14okt30C9cwgHwazvrPCMKcz2qqlSa5un+P2EgwrdnXMnjb2toZJlEi+vUd9ghjsrJNh1pLVv4pZ78DwEjg2DqU5d9TmJHryKocGtYrVwuENB9zXfBvZ/EGJv8cnSM336aSRX0aB7gM3vsRR5nTfhxQFK48ylfXpo2aMl3qpn7ePgvfFQ7ujMcb8fd6FOEj9HbcU5eCj+IuweSi9ycr8PtQzprLTgRdTrW787aCudeTbpaKCZ9WyTOFwcBim5SsTllk48YA4gN8dGw2g0s4d9LDg5w/q3IEAmmU26MnWGk91+gx3ymL2SJ5rV2KEijE4Lk7vn8Varm+ULlKDS3/9IgBCL+xFnO2vcNHyS0w4co/qZIQUyNCxoFMFaMG24nX2NiEcj6Isyfj9sS47wnEm3x5jbo1P+Db0ut0eijXdFZ2SRyM8hlSZHLjAH7kVi5yC5EAKD9HnU2uRChj3qtgAxprx77zsHpu2fj9D9z+KSBQUM5PCO2Qodoq9+hWCshEwv7+lDlvPVhyy63nS5jvGwrTHt64CG/426dlwqV4aTCGZ6NtziNFlQhwnSSc28nwwcMqIsZa4P/7EJcjdbm02I6152ctuU6IrGxcH5vkZocdmQkBzEq8tU2AAA6GUlEQVRSf8nRDk7dl1X0WnR1DTbtvYk5HSQQ4shvmHtfBLhjzBcwRZ8TKKa8ri1pzlk5DH4rQ+jZajebey0kwMnA0Tu6PFk6BYZ82XvZ03ZTV6X/vDyeV8gAFgUFv34/yZ6qct/Hwda3fMLYkwMAZDUbWx8WtMaZqu9aBc3JR6qQnl9OvAcuSOPRu/O3FG2fMLw66Z30pFQ+IdWoV8rMWC8/6F+iSN/JAny7do1V5Gvvi6qMHL6Oew/iK/NbDlB4sheJYU0bAq6YmdnreaPZsiYONTWI3vcLDBPO9jc2/ANO2X6NhlvWat452X0miCf1ioj8nmmS+QYqmAyJNnLw518NnDR+o1CBccu8fX7qSD2whzVQXc64FkG2rud/JANZlcjthTWxhYaxq2+FMV35FQ8F39HLfAElJ1wxr0tbjcz+bM1hGE7ov4RsnKR4CNHpSkC45qSpvzWGoLBHJmPHHmc1OW3RdD34bUhkRnxG3y2Nx6rZCU+D2Pe1RdAD/sl+1EoNsDboqTfwULzct/p3Kgk6KCDjdwUnTlXYBeUdviyqbVVyaHr1FNCU8nqSk/LN2nDjEJPwUeRsa2hNo6BXrRAqbqR3+TywyjI0lIn0j3Qb3+vYf8es+9sNrDIRsWg7TKj5U1sq2pmQz9oi7FG8obBcLDP+Xhxig61518j4Y0ldRW32OsI4FIhbU3OuaFJnAZpgtwqWk/HxLVLj+Lcen6KLHp1bpLudJQzkux0vRLlpgXmxCbK0y61rc7MbBVyh2wygFr5aU5oRgVF/lSn33bvJ4ZacVhLYH0bmecmRdQ0BikLbnEkhKZgqb2/0/bykoCH7BHptIroq6PHY1KOG18SirnXPrEOi+t/b7YRVNVMaLIU5MYPOeJ5Yo+bR2jAJd7Ko7WeseRGtI0SkefEE8M1hq98NM1Xse5Q7bykLadQ4eUSJyZzFSnhuVDVqCKcD8kQAot9tTnWaHB6brbpD/K0oH4JqyHvAMMPB54P115oHA6+U8TRNzwC3eTwSQkQv5cKGZ1dPTyIWuH7vt7jSROGlkPCotaz7vDJ7v6OerehPPc/8slDJYIAYuQ7nx1QfexUhu7Kkr1tw9tycdIGfRmoDTt9Nr/VNW73dj0bBTas17BGos++oBAVnjsiN/ZCx1PMMMk/ec/rVBsUDUfK9apqGcEugJ4v9F7rqREq4BPEijT4veFB/S/wEvCMzO8G+E/icHFDPAbPfZ81ABMQZJsxEPgVKHo4oM/KCpelufYmQtRSg1EkH5U2lMkfaWtGprm0fo6XDCMP941Kq6VoCxJOQRZHjDLsxR7hyZ02jNujsKmCgT3XMBjCG9RRjF3LxyhDUzMYl0tixEemfK6cjkdCD5M5NrVNWTZ9gTRVKXczAX04EP3Wp67pgE7JnSxRtX+TUhli8EE1ndW9n6DIfoRec375zoC9iHSHyJzkKr1s23FILI7ZMB9/HjAADIkBGiuwlk/8vuSjaHpzRx92i1vAFRDEC2ZjlDava0m8KM5WMpv6n2A0XRtClkeMbHXDeajeiufs2MhYAfEoqxW4S18npM9K1KEC/+hbDGsXyned3oEoQ1d4YJ6f/2A/ljH2Hv+zoj0UBPuWWwFvxaN4QHzPWBirjXMo2d2u54/UT6GhZ4CcETM1TkQTbVYCjv42fxwPVItX5buceD9knYPpmaZB132D5LlIQP/ro/0sn0FYLvZ7H7EwaBGsZilzdugXDjtU9LqPhvxkDlDP2ZqQQrtBnX81N8HSwFnWWWZjvmWA2Oo7Ca9GHuJMedLWenbL+FBUQggDqQowy5H6lda1M7bpj46HdjquDFRB1Sk3P50Ii/9RjIJT6crC1e1IhdAY+nW5KQGA+M+flHDT77RJnBu/yp73wsmkbPdKLigpAkoTFFcWaPWjITvpJOfLnYVb9aHJju7GPhpBP8ldgAw/XjKaysS69PBuPPZqoOaDudxWSckrm7VkerwWJH52AUFhH4/aPsDOcGfUQ0nSBCTpK1bfWWNBTuwHwTP1LANVmMcdSiEbibITY8JkOb2w6/JnVCh5FD7zqFbzTQIOLUhjdlLlMyko8+fos7JHOdFOigrxqj+ktKEUaLr9DiIDv65khcmS+AWkxI18gD5THjpAhdHSgTPb10pIYp7llqrwz/Mth2fRlUgGQ7MIOAXMaTD4UsplMqp+1YOZ0stGAh2Mcwec8LdAD0e9yDxe0v/Xtb1sQBwpZ1UC/ktp94gVkhqda0ZziNLGW89F6bK31FVRPCT1snbh9fpt2ke8onwnfwmEfSuS1xfzsUII1kYRa9DwxTXdG1k70dGPJctxqimBWXm9AkRPUQv7ZwPQ/AwqB7MzJwVcUzE11C7EA1YObxNNnjMIcc52WQ1jsyhmCcMpEZE1DNAdxUhpTrXfVArux0DrJ8I1jtaiKFpgGd8YgAHv6vNZgzI57Ykawpy8srOpdAPhXGNx7GanzgNmcbIGLzDSt2Tdpx/qqNeDngNtX9eG0tlqJ3/5+balmud5jZFYsOmxgQGB0IJ1L0ZBhpTdLa6WW7tp4m0OjoU44HgDGSFbhtmhScAjnh+Ig/5dTddJfEnmQ6+GoAUFkAyazKFcea1BHJhB98ytqxucC/ZjQyPM/dWzYyBqZQmSeMrC0jGCURgqFTBlyIIi2z1HytcX92Gyr+9XeM1bC8S4RqeewxolYOFPYlAWFck+kzayEu3Ph1K8jc940yyDlbX02jZ/IrevnLllR12md0+P6zgsAmgFrQq5WzXZbQu04d+Pf9gVlwGlKHiV9MOaGSk/9NR49T9/MOg6tCt6O4xSVNnrN0P+nnVJHZ+vWyrMxRB5NWeo6F+hsoRN8y7jjwHhSfjRIe/6seu7OoreHplnRXAOlbDXYbqwPs1Ph2xnRlIfLs28JaaXTx2sGO52K1vOaUbzvY6jaKr4Xl8Rl3xbDMhs/+Lptsmxu2pLVSKJbRjyTbhI+oWm/SEfVeG3v7QmeDBQ6mPtVF9yi7FOB8uANEF36nu1ljFjm6VPP9zXKwQPIHrz5BhWZGKDBsOzzBMaEubui5zGkGVkfC6g9xzkf65gYkPLPZdlUIlyi/H6K+yiAPDr0qP70I24/IfCxyCOffZ35ElnStFX2EV7h+aHWEXesk8h/S6nPGfeqhIT+ESbdGfTZvu8XX1tepwao4K7TrEfgC2crbvWs95+ZD20Q+8auz3vfOs20rFL5jyYmx7PNqfP0LceN1mg9SLQUVisOkx6JZIVOUFZegASDmguto6hZ6eDmX5Pq97cfot/7hsRYqeL/rGoFr7d38+BOY1Au3TJ2i5c5cayQpo9a9CMEAIYmrLHNBb6CMbpcMZBqbdIxqqgy89XAvymtKifuY2VNSdTydZznlMQgblcrMYBPeIM47Th+Td1nEHxDxzozyCF5iw3/dZ4/caTZC6jEgG9iDpSniChMzHxu2N6p4Uq2YZircbWY0uh+OHOICJSI8damI40NZZ9DsGXbbjOCQIugDrJlYqloCxhfdl2hDN2ZbEZ6Bj9vOLuGafyJOFheUX2YSWumhYrCcX5q3Q395WhEdcNKAct1Bhjy0eXNvb1PvPLMe2BWYp1m5H/PaOmRD73Zr84GcbeXeCtJi26H810o8zTh9xnGeC7FxKuHZWXt18aYvCyLtTQIKtJXjPSkMrtA0tfJaHqp3h/imR0pd15ytLqJKp2OQgHWz4b/GoBQlJi7a3CN4z2Rr1C96OfSH+mn4oeiLOJZNx4AtZffWoZQsihpI53wj2C8FfvTKOY5H056qDzZ+WBNP12Mb4cJCPVhUU5bTeZoTXhFnX6vTRanet4sA1mRTfvqIx61hNh3zgobDNqyfQTG3Xdqgv2N8N65HcoqjcQOBtOkdurZHPrLYctkxriVo5+NJklLk2vg7Wqmx4DHr9Sxv5EquI4tRf/WUwbBvo7d4FXY/3xRTV/opeWJoUEpa0O8lYfbcNXewvYKBXZM2m3+WvrozwsJqQ6lAztAh4EYAEKDOCLPcdlBYFW2qpIXVrk6yaU+/BzpI1UqagpiQelLcl3jxo69hUsdFhPLiiUIYrRORXdDyixO38S9Jldnm7fv81zafNXK96cWOBXpco/9cPyCaE5RTaNinRx2+YSNCWJhXY81gpq77cPJ4c0YabtGR8bNtCYmNdeln0tT1WKbMm8iT7MieDFwmp+CPndyzgLyiydxJKJLkawwat2s8HEuxrPpmvqDK5oqMcPaqr0O+l60amd/BOd3i1wVOnbVwki5YGjYiDCXwacyekbB9RhHnAxgbIB5Y2l4p6w1V1QcaplQI4ZS/+amR/6UuX/s2+VXKanq1OzYAPYfx2kcc7EI0khXuUE4p36CFmufgcnX8uGzFB18o/GGtCNZTQZ2lrgAFvRwb1ztpB5XMqa8ABf0kuddT4o4CwfYakRHW2OMwAXejfDFGr4uWzJVoTjYtg5pzM9XX12pBl9jMaOpV9nk8/yoeX3W66E2B3GHCrFA53nbUYiiUaKtTMe/xbUGiDl3IibGM2WZrNV4mhbvd6xluu1/JBgtJiT1qIKr/vwh3RYZOdnbxdUB767/BWOX2sjp+XHg75FD0G4aoFicjyl9zdvqnVORgByHmgGUMiy6U4DnMDKFlATBgr2+cz1nDDuD81xqaTNLW+majJTnXV/mVGehlQ3yhznkLBkAW2YxMt6u5yD3qvoX/ZoF5MaaA/gkvEgI9tiQJs/4RIY8SOaalz9XhjpxYV9ugl1+oF6aL2ztXUe4JtR+BKkfb4UMxJQhS1eTqVRY0jEANHKzdcu3Y7IKW458mzFtjNFAVwFui2tGlPYmF8+YrShsBPKV6cs1IbI18h6nHbYTVZtRbKzkLPyIOrw5+s9DS00v3xPuy8fcW6G6bXiP9EW4I4D3pSCfAEdN0VPhA7aRqf2RrbjxgOiMlRRj+v9e9gBXzSr78vP1LcN1yTGagwKwAhxjzR+2pTHyxQ9A9uWa0dUYFRq7AKvFHZgIrz1WoTiaRUEwbTa1L1/JIKV4CS+K3PLdbOgt+8WL9QL7O58w4nVuQWFSgIRJpjxk8GhxYuQ3qBOk7x+5SPo5GtVfhUbbmmURzXdiSscqZrCNffXvb+VOvGlfgeepq0r/jiKcKKURH75xu5c3E9XaiPVa+W4F4iAYN9HP7Ol/DNE1RkcCz+xvpRSQSNAdNTLvkS+SseA6nnUsH9635UQ2Sv1RtJQl++HXd0NiCNSKVUBYev69qDK3ToIemB6+RCROH9Ebwq3E+DnX+3ff1EJE0obNe+pArqg/ghPrtpiQq33t2dY+JHXn2ni4E/z0fghqnAbmd7ZS2kNRW+M6WT2naKdNaApk4EvlFx3rK6/GIi7AeKRAB3tanGY2CjNN9fOedhqQBuSFWE+nov8tZwGIzNRlv/s3A8VBEs9Iw7Tc2gUN/nhp19/LdcfkB52XCShj/F+6UgPKnA1WVZOjQBNiu2ITPVj9owDbJZ7HhB4ebQ4vO+ZXKse+NOjwTnOCDTXT/0HqpozDJ8py3EiNSXdbLXm0mFepGYjVKm1RW2p4bMcKT7HbGnwmYlxuRt6dscRGWh55Gn/gOlsHCej52eYbSLWTaWIPBk0t5TFPYRqhdmCEthMF0awOyvO3D/3360Rsunf5Kmq/c+r2ZwKX4Akpk/ACJOhUGp9nYj5ejT0Caa1UPEp0WdWqcztEGY0owhQzTwlyqpNaHFFIqNCq0jMgBufJNEnPEVp4hY6jBrPwfJOMPefvRziSuZY3JnzxhtNx2PrVnC7NQv6zPcBbkjvXywDevLkHmyC34JTBfmJABNlDkZyTj9fjHGc/eZRjn7o+grznQHZ8aI/aSmdjx4x5KHfGr/JcfSMZ5vja4pjA0ziyF7v6WKRnl7pRdUEmCVTgQrANC56mktG+2yq6My9931cLHUIOYwuzre80mw2L1LYrXm5lzvcJQ0TTjZi11BJp5gM0EbQ46nJv8hFmWvyZoPmLE8/lzHRq4MeAVuYYiEC6uheYItGTN62RHSA4mFGBiPPP+yFAaOtVAEZlXqzbDTCeeJ7jX5ZXytQy7QBqki58OKk+u5WQHLrhm13lU7TzF2XOl950Bl4aVs8qNdNZO+dXbKpSeLFP9xM/+aHLXDTNvX+K/Qk21TvQOgmugOYGTLNJkDVZdAl5MnS4Ta8i7NByTmfZhfyds/fBw9W83N6uzlfN1EXjj0W6IRYVMtaE4J9/Nomrb5YhSPUwkr0KXcIYXEX3FwqJ/P/YeM9gn6mzYdcmGlgnWjbTONWthgKxvxzkotdD4mDpIY94rHquKBrwMl7fJ0FBqSqKQu3P+RqIQgzkVrjuv4hD3Cj5hFfjdhryi4C8z209UBYgtmzX1lyNoo4Fk3bNd8nozgq13qVq7uEyEU6M85S02D8LIVwzAdBVU/HzDdNGQVQ93eddWZ9bpggx20oyVNiU5gNzBmAVUlsAmQBH8MP9IyjxywGBx2cS1hhTpAcBzsVqBIovKLawmNzBC1IGhgOZEWs042Q1osv+DCEAahbiYHp9O4bw4y3yZpTiYwPzxCMWewI/jyLpwE2QdpXlpJ3RI70JIqxOwyRlz4DndaQDNVOOKdiEjO6s+PTEw876rounOilHc/KRnsf6HlQ9XG5VaatQBIKhPHCdq63s+fHxZx6KgMOvExKXeNkot1lDAnxyC8F08oA/tkX49a2CsrOTSt3R28jqKLYOVSHutodkFnttrLD9RnfDaGRmzJN+sjZQ9IUSkXCipmSEe+ebczKjhi78KRBY6G5zsxMkV91IHG+N6fyZHSCpPGDqkCSjKcf20D/j0knle+XvXO8+mY20Wc+dmKceJBvG+0SgslMj31Lhtoh0doCLK2fh+o2g2xrZ8mU5Qa4NDn1ZiIp9G+EuXrTGjyfd2kGsdMVDwJtkLR+iZHcNtJnuuPYgdvT/YukmiP2bFxAM5zrJyd3/+mL4RDZOkL466VCKKeeoOKfWa2Ru2K3sgk0hFS00SRVOFlY0YmDNoZtkufzCAWQtIQvdOMHzaI8MR6b4r12SHLg5xHEueOJcv9Ogk5EC2lSnAtoql1wDkhQMdEA28/Mx+lUfe63WEQXkf2Ys4XbOA5iUq8yLqTHj34cRBi+qnCrbG8SkF3CmxQ5a9iS2Qz8PbKWTwiyg0czNjczFBRcn+wPZzydtPUc+Yns8nhAa2Srsfa0bDh4CMmGqIv4OoQq4cxzmEYxIGWkaxw1q0Q5N+x0sJ87gYzQIEzHnmYjAnr3yDK2ZmO0l2xK2wYqf2eqHl12atrypwtP4bE/IFtW8xHJnTBHD2q9GEVuwfZm2V1nVl89NgDbwHnjJfNGfM1QrcjVN01C8P52i+5DY2tJXeztr7DL37M7FAvB3ywPwSsYpbGp24FtCGccoHswGjygZE1f3qR+BbDknLW5Cz0ExYhTU1A+P1rei6cLJJv8EINfy2CHkKjKm8dZRx1JzJrVnpFQ/8rbFUE3OEeGkhJfCJLU7+Q4y7u0ROKuCeu0023NBSysnlapN7Yn4ppORx5uieWYwK/5vifP0mu/usu8bF+Y2har715mDp0x70rICNWmy9bRMqQ+GfSzfqEqJB7cswvNZdOsBGfkWLvHhGJWSFmsh76O/rpZ26EKkVSipqCqtazrc2CmVIdL5ku5763TomEtkLbkN8gFjCKwlhWIuajOj6Qtm1AIrVovdfvStYfXRwv85+KHpLYAFPFbGvcI7KqQ1b6WtRC3Fj2GYWJ+9p4tjHQTUKzNlGQ9Zm1kHcYRysPkNxk9SFmQPs9VnL7NwQgM9B/dy2Nqaqks1asO8QVnRyEaY+Miinpb9eXKqtAc1TFF/K1W2KKnKCb/KAzRJ7VloMWMzj+ZcGyfI5iGJBvoS+SRZFyB544yKjvkMXTyzal7unA/YgilgrAVgx7TNFY56PDFrz6UvN427Z6WLm7vldA8MZtOoLX3rHzd5NBZknmn6c94U00eWw/yoZqwmf+UH1uUBun77sNwrY55PmZ+93W9zFrta7Q/NOUrNAMtEmWds/J6AIYwvX3U0/yi34znMCYUCB+K48szx+GmY5DRkb8gDkrYusoH5wrCDqU765UCVnLLQ2RdvYMVEfF+z8FNsgU3cvBDICjIYK6D83CoFhBoKQBpqw5XDO5JhJ7tEjg7jR4q6JLgEY50rffMFKR+3Y4QdBvBFM8lR2E4/CsAmDwDVQAdXbznHfkN1wSnmYtjtHUSpw3OB0svp7pM7B7B623G9VomIas12xXdI+R3eG9cZ1Oc60VJPsrg85JWGralg92qHk0u99N5lFyi6jX47nWssgcrGLWTHJzxIElI64E/oqumaphQf0MdRuTaSduXokfP7ycAzTEyWGgeo0eiEPhXt/zsRuepQ7KblOwJr/PW8l7V9AtQTxAZJ34vRM4h+3ju6Lvf+6IsQL3hb9/j4yn21Uj40a4RcENQFb1YBnygFsWw7SGvrZa68yUwR/WkC/t+VMN9F2kEEnuiybadvJ6bnke47sGsSPpo3zs5QaAPmoQhagOolKQjeURxcTAVxIJqFkHYVZqp8P/t6yD09WU1z5HwGxFKqmKCbNHklfemzkAaw9SZe7e+OCJwQ9JVo8d6U2lJq1xwpIB9D4d3TYBaXmOiONwNkE4BV6tdzr1rbFSMRwT+0Otmd+TntiH7Zsezmf5BqQtJoUQ+Fk4ZXY0fhfTMEj9PmcqYGjZ7xtEVvRd9oohLb+FZvLgyVQXGsnjYb6Zcp2JoGecwWpb/gOkHH738JYmffGMVHrY5TKXQ5HBDztXFpZ/wUg3muKRoUkvnvFmwayRSjsbFR26xrzMReWNw6sw7rB+Am35EOmxd4LcJ6nDYn5sLuum2djZY7XV0oqnpL3P6afJ92PLMs33eBgk3bfr9t3PEBTSZAbK0FyySvMMhO/2g4hpFCZ5uD25mzqb+Qr8/gUmOt9KezI+RO1WBJe7DteyWtVNz2DX9DCqYpj34N9FsqxAFncmKjGTTQYmbk+m58XRVPDowlDJme07HbYpTSn5TPx8yjunIl32+0a0CziyUGYuTckbSKykZvVfIpyMhJ+m71Sn3MR+c5xXqN7Ge2Zu6fmkGmgZF3vQOyG07gdghSbAuX+pUtov6qj6lJ/2Av4zc4k8yDzK3vp+Br1W1OwDbIrIEFID3rS5C7tAvzgGgD+WTb/fnLArWU+QKzVuIDkuBylKXLV1fjHSqxEwZQu7TkDYHPpXN68zTWZUMkHjY/CLe5OT1ZXOB5oVk73TQvB2UjwBGRHNddetb7kgp8Jmk66dX9WpgpM+1jzVjgkhSFvtbCntLUBklhB5M2z4GwEGOzeLkj5xs77zfOFLVc7m5FFre0vSH+biC6dR5IFArpJm1JIGiZ4B8nMHnT2K1FITwvlkYSu2hrmlBQ0rXOcyA14Vdm09Ml1zrcX2JDH5vl+vqNuqrL1mn4+q0XOEwp/dERAiRAYTUyoJ7vIkSH86mBIimNAoHll+BiGVT5Uef6Lq72PHAqU6/dUbDyw4U9ObNnghDngQO94xafejXAPi1aq1p9bz4L5lpJc/s7SjGn5bic3g2JiBN9zom7PGGi+68OqGCC9Ft0VSy6UyB0AofVBGBs2+rXfDP+d3jpZdZlgS4cqCcAIsTLfaEPM5bnJLDAG/ouNzcgXLogAaNDL/I0y6Hs6ZNig7bl58ZHD3OKkfj/DcDZioOxAo+G/kpCefkopaTdncACnkMEwHmrfUbVYBenru+fF4fqMEGvrXkOrb1QcnseUpH6pzK+DEItlJbPPth8e543/YTA+ZuOd88U9HyKxxqk9+qEbnLZmgZtxGBBj8r9MyEVGpis4rArCUUBx5Uoo+HM2rYTZwXH/YGCPAr85xkq2/SrTY7MqjfiG8uPqKdcig4Ln7kheEdiUWD7iNVIqa2U8IIAnF9vZGBYmZrbrelK5gLU+eDDusFkAly94EQhFK9d+TJZHtFDJHTyTM882Dy/0tpN0oGCu2ep/WCpUksUWbbFJGq2hs/fZ0gZ6iTicrmDzrGQhv5ngde+j+lYp+DsONwNktkZk6mWb2vu6Tt4GC2Gtu5o1JDQOOP+OhOR5TDydUb6YoiUcsWDLaYq+/LMkzsfz/DycpZEqckJ+WUjFo9djfLivHqi5v5Ivn0Dx/JhsVkTG/62UXGR8rjtgo7dM8vieQ5ZAo/qb8TjnNiUE6kJW9Qu7V74Fyn0uGtCxXYArAQiJWcMpoAzwPpJGfrWkBQuWzIKErocvLLJkCRCnazYZCFbWlPnyhihMiOyQ8waWKxboG+bAYmRgtpErdaY7XXe/JDuHgxRd83VYGL9XINdolr6e/yM2v/Xp0Gmc47Gu/r23MTaApyyvhLS5xos3Fc8gZcI/kqpkOlaym+VU7sy5N0u6lC64r53W4mmw1tlDXCUnRQpvy9AW3OnVWka8yCQPIk8mlp/DhfTcWEBz959hQ67zoi0lMw5ajFsgI9p7Wwq0npQEp0v17OlCg0mdyZFykHqmS9RPOvAbZd2pBiCWRMJJg1tW8kkiB2mU2iERk8elBS2yCAahQ0belhIFY+PsW05pxMvzuxdp1x9kB9hkvMWuIlDly/9aykocgpntNY3/+z3Y9klY7giYGEgj11WXWGj7jMGelZjgGuwT5nQxHukpA6LLTa/Zhz6+milCim1LX3mMVPTw9Iiigb+SxvQ+AKD0dKCJKKcIG6i1aaTj3fLyVN8Qf26diUIX9ZFQn4WNDTdx1NCunN72jPhsUdbJX5J4o/9VjsY+mCcu0p1ql1raEseP104/DVgVwTVYxjUGpsPMb8LXrltH3nIJJSjgM+V0KRdb6S75U319YljdkNXRwWPOkxu84BLHBcKqh53FM4SYSL7sYmISwtCzQNzoFYz0PjkJM2YoVhiQ7AV+ZVgDdQ0PEHyn0KaZX6L4XISENg/XSkqRuqkO4jkJBrNyqAIry4h2yly989l/NuXiT4oOOVB9twOVYEMTbubfotByiUKeM/KlQ0GwvBJjtHcLUpJTYFuUR0xnGd/k6HjTiQDCqvJLd10hNltJ3NTLiAY3Qot1UuLQ6WKURuguekpLpWTGFueNraxrPacwzfS189Uq/hQOnIOCQ7SyZaKMaPw5yGzYjV+vsyPJXxmo8zQmMdH+LyKdAJnu3bE2NZFtqUqZiozCzrA8k/aFgxI1ryZdj3+SHee0OpZKsZXiRFev9C2sJnpK/6x1SYPujJhE31HaeVCzbrsPNeyviP+ZEmM559dIMreBCxRIGn3TkJ6DrysTOR/XmtrflDILXU0OCLPjieZ/kWzh5BFmLNhz4H+wBufxpNu+t5dUrHljWtfkiGbcWSpxW1EPwKAhklweGmz4HdSpKRM1RFrr/eoQvGyUB5iLY8KnUYG5Xt5M90liIP76BhrqrgH8zSV/cmhIkQNxXqcHEH4nDlf1GMvoUypaolv+FH4Q3NNJaLmbyT0vZqKEgTwAMybFioYgaA8Z8FsXXGjL7YetMqa0Q4VVm+wF/ZVw9N13S/kJzfkpNkCRrMCJH6+ZVR1oad0MYriO1VHuwCgGEIcWTx2NpTVUd+IRpt3Bi2dOqfDGo5DPI68nFmxkm1gVztoysv3pKbiVhEDY36h3/Sh7lswnIT3Wj8mwElfBXsNPN8Mmjej+LkOQDpQTQzHND5KrIdePQt62e6niYHG8K6lK0+B5efQTcVqhEI/pCy+tdHe5w8DUw14UlQgmF4/ZRlu7O0Fm9UXUGabaB1KpXVrmkEEX410nQVgXyio98JH5xmeD0kZyHvS3v8tsKxqX4PaNVmfVPjwaSwon3q4It3cw+YSEWqDZtIglJM0DTd+UnLjSuYMfn0F2NdbZ5UqQJTCYwTowRmB3++sEwUyLQdsEU55v4Cyr1jZA9YgFkOvnSx7tQd3kHQ1qcFOsqcHaZUqPrdhxcdGokP0ucLoZkHiCDaEvZGbzIyXPpqlmrUqLdZU5XTm2SFeffmABFF+IPTZf4eu9IfyE5GR8R9syZcu45XgxwS8id3BbOZDn6VMenTU5F+nTI/1ru1TdyLWaWK9hdTVft+A97yP/g65xWGnjVrptE5tdx7jb6l8IfHMZj4y/uogjUSHhoVFNDFuxOHwY4OXzrBHjYK11mUin0v80tdAAFlssfSetOkk33n3u9idGzTMnWxKUZl24Ja96CsG8Em/hw5O/z2k4fUVd11s6CmIemjRdBTsz1ME9r2land2I5a1PfS7sKgC/W8kQ3huCJboeQBW+oh6poyOibj3NRNMH4S9iVGEQeJAFN0RPPkD3I7rBQXpfe7+P8eLSXX0wRidDrTOySPZ3LqihV0c1S1fXQXvrzjmLy/HcZ6mbm8WGZijNh02Yrb+91MAdYGU//AAlvt8r0xBAOpkAVRFl2daaPn7hTsoXearoyE4r74oZOZ/k12hyM43KFssQt6FdimmcJEDwJ7jmRamgZeCL+kwrz8QxIscEBGb24NB4knZUy0yUUdglfNwfkC3I3XjTnt9TjKH97yi25cwQIfqIC6Qaqn/C00agEov9KpVk6kJ8BDJissc0fiChrRcp8yf01iBR2zOJDjXrYsLu+XYtQwHmb57fsASbmrF0PwTvIHsl2YKdPnpAcBm4M6npV0no2zP4K6KEtp0JmqcL+ictDZQJ7AdeG7meJpfD+PVqafnUcyhOsk9iKX24042AsoZz27pcunTHLsXqpISf78YMVtpqh0ELoV++G4YVFX+FuEfyzZiNA+IWqzSzX4sIB9r9RQjGNgLB1w0jeYH2/TBMCNoYEUnExDpTFlPCZ+zcfePt58SzZiGGH04VSAmxQ6jWnNlbArhhVLcxtUMuChLbsZPKf5eMrww3remzweqK98O4dcZK/q47pXdvsyDd83uolHZW20BJqHw1Es/xGR2kMDJtoqn6SPH/taWS2ieQXxlV0l6SQfd7zQx30kbLRP228uyx+NXJF8UpF0ILWjtaiJ2ATLFaz9zG2QaOiRT1EeKq67G8qetQU4DoxLb3ewRfzPBifcOgDvrTcN6yVjwmxlXlBlBVVghZSxvZTM6/9PCvuWQNWTk4lUMdKrMzREEbWs43Kxs99rMisWs23bp+OBLZbyi1ni6NQt00oYnEChO5gjtp560BBfYk3qmy5C9XR2BAwBkCOdWX3TBad25fAs9prnahE1LuBJitOTjpQUqEj+8O9dWqQmek3EBG/In2Kmwkw4TtprJmbHPx7ATDUKB9LbU/fLzxlR45FfbKJTXuPv2pin46az5LaiQUANRxdpQZI3heZ4GKluqyqM5Z8/7qndsuPmeq7ZQ8ES53jJYECDxBHxZue4bGOtYd1+FrQ0w9fjU1r05UDELg2ji0vJw75IZPt94h3Jf99Y/e6Ef2bbka43FhWMEvFzm7klTX8qZGiXmPu7PExjgxh79vugDFRK/XXEZvjAJNqHNVKfF/Vgu+tu5zs59ioE6MbVCkQKgBxMxOOvJxDG6F9SLUHB4L2dydir61pQFFyPesOjPFspNYiR6c4J26vzsp6HAFPdY0TBuFE44VAEAMHSwNdSQkNWsf4/y5p9r+j1VuAtm6PnstAeN3EHaEALNtM7VYVsTEjswS6BqiUVf2/bUqqtyzLV1tFFAhZe22dWMeE14n6/A2VT3X9fHVTGNbOwKjZihJeM6Z7jPGLgRq/kv8ZlrIP8HMSvfCBumQAPlorZD05va+venIczwDbDgQJeNeRRMpRVr/WG5dacSuGs6m9oelie0X1sbnukM3VGpP52I2lERcdvDlsF3+tDp615Mg+6Pk/Gnun40Cgt2JTxmPxgjAG1XTjgFKd/GTkpQkjtJwzmb9W9Z4C0PNT8MUjUGOSqR8SNkwGdD9O9HDTO+WqMG2esojKq+d2TP2ARfIpWFmDp5pzsbiL5augcHsftsP6Rd6LWSZ5p8daXKGpdb1Kis+w/5Gcb3PF41BxrWN/eqr9Of4zqjro9OwHK4+BZ+yxLpEb9MKUfHIdi+OFhPUw+kTdRIQN2ydwkj1MP+Onah3ryzfTXFAAzSyrfmevpu7MiVhWGqch4etlXuiJTHsaju8uF8JDD8YnK9ZvcseeMRbshR/O6g8JkEFZX1PapOVIikWJBrV/RfO+nrxlGhSbPTDcTg39evbylog0wevSEFOZUOkqTGOlbWNZWHrlFufovK8+Twk488qK2wWjO7p88+c6lZWhHiHZl1IKo119VA/KRTFYtzY+iW6+Wbi3S1KhWytcKaxwIm6l0e37jBTxj3V7l3jaXH4z8Q++Q6OTgPM+DQXcA5ffopqqx+ODUQ96ErpUl6urBZwYzlufpLEUYTvxbjORyq9+3kW/Lk9JU12org73abRcLETne9lV6xlz0ZMmJDuRXEsBGpxyuY09xlo4YOIbyX/dqyZBMEW6m5JgvwepxflXSRIchxbnxQc9Wivqcm8D7uDNTJLw8bdPeCvbTnTCTa7F2d/hdcTfOwd4JMpLFf0p/9TlCahNeNl/g3nZQNmCVSOVHyLUXT/1LYzBuWE2ZrwgL3iTx5ujg+d1NQwCb8oVDvO85yd+GgrFnbb0sJpFPLsCQpcyuO8FlcEfcYoG3qIV4DI+9awsoaMktEYvHOOO06FObfov/ZJszw5B2Be/tfZzzewl6HuP5zyQdWc/hNhAdyG04Hd7HlzknxXpac6ZguzEekPw6xY33EkVK22sD0NTWDpeq0JCueQ2Koi1/Yf0JoX6RO91E9wJCiQQQahSRGIR+ImKotCdfw3vubDFZxGx8WbGf2RNWV4T7Ma8VEe5AYxiAOjv3fnk4fsu7l/WmDHE13D/8bX+prf0Tu161m/7VAXlRDn21e8T5QgjKNVciaQSs4aqQcljpDb7iPWFZFbXje2DGBSv4QBF2M9lL9uXnJfxPTDvtssfqyYz7UDruiMn76Wmp/fJMFNianJdSasSnhBxuGdS1HvpcifWDL2olhCz0MlqJkbcptcUYBcrhUKe9C9v1SLd5OeGRycYRw1Lzr/4q6E8VGUhiKonYnzp75/8+dcx/lbqYntqtYhBDaEDAEqf3qVA5yheyBHgD+9omfXtk/m5ft50R6rQZyPIxY4ByHykp853PEaPPKBnRb2xVR/VowuNdWqmOpV/92rsxqgsMzgldzyouf+C+hdvxvxiCWSkIa11XM/eQL5QiKqYuGr7IxMt34zI98LiHzmTXXfAktcos4cCw1OeTBHwfgEsKNyaGebQgQ2GqKHSNVI96mVWvvrPeNYmqAVx/5G3XfwZ/tyVxUYDYI3EdHfiYkmvVkzN3SCbCTjy2+HANVlHMjw70RH4A1s6R6kjtZIAzDj5ZrIs7A0AD4ZGo4ZvpcWMbVoN1bzncUbh13862pIJYCVw87Mhxk19gS+CWQdpRiE0bnaYEyehpn2CNgnY30tdw7/w+oskW9nusPJ9wUo52bYRl/tZRj+2B81lphLTGuTdLe9dw4vVrD8mKpMY+Rn/mn+t1eqzryx0LZryNgKyVTPoV1VBf8V7XrkliFMXsVni5qqKt6y9OSeoNizNgqKFprfzi6H7cf09Ck0jUyjmxAKsAzKjxSOfgX5RpyAf9DdVHs9HH7NjTU1ROd7jWDetCDpxOZOniCCqDCE3p98ehKx3zqb/91CI5PjT5HiPTm6+tSTsaGFZ+vrkDGc9Liy1sjjdMvRUKPjpqsuPtFOOeIqQkJxvqxDhWxllPEOGBSSuGjqDwXEj0HrNl1vDepxk5+szUxxQQHAhR08UD6tLqMJIvANWzI+R89BJh0FljajgzK+6JMFWuDA3CNWSPFldFMWYqvtNxQb/RYjm+GZKMYzdqE4uq9aw09molwTAWKUJ4ZZXsYUbVoKyl3kdMheY9q2/1DsrDL86gG5Igci0sR06a30+0d2nTYApIYtAzGsfrVFvtVWp+Lt3cz4dbdIK7BfMWCBiF4dI7Y2sy7rqlZbwsNtEXPjXny7wnZU41aLzqaEDCXbh2apGa8pXc//H83ARwrca4qjSQTMZrDiFOEdIyNuCpB1xlReBUdBJ7HqdRzSKved1pDk/5w/ijqB3fCHXekp4xwAKV06aZs+4AOStefgTHx3NAX9mM/P1KKVrQfNwrjD6bQuXtHXTHpxQ/UJJ5GoMEAX5xW5D97HRbV5DgbT84EL0cjuzTuzM44PIrPPV0C/RM9aQVvOV44T4BA3Z9wVNbWq0aEkdpZYkbYD6S7sfw4JyDBSiGkvCh7eujiCPvLJ/hSKCKlYEpt4F63wAITV9qJB95fVl4ha5o8U6xvUgsEMQnUsygXQXGZU5258ncWjKfnoGqO1QjZts8rLvZXr8gYRbg/Jw534FsTKRdXC+0LZdfcGWeEwVQJ2nfso8Hd8KzOan4aN76DrTJfBUIguN980FwELArw/rbIUFJBi67YATwuzCKfTrySH9W5M9cust3bOABXymx7bI2tGRK5BFEzq4j4HZSwmu88bOcNoO+/R8UVK2HpLRxeVIBfXbkEmwByHN1imllgRaNGEbzekKD2+jwLsVW6geCZctKcCqOgpTeXe26R78+Dpt1aop5xumsCqwBA+p1IVHPeKyQVSux58Nf/znjXZKtO8iuVMtTcepKut+VEfK80xeRP05zBy9fbgpPUhYoXZnrQHIX4vA44I9+g5d34LfDqtZd0R5lMs7wLxfOjrijga0SdXD7VkVNnsRHwbrvJLrKcuUmolmmSSpqcLyJ7SnphBk1jyXR4xJnPwGCZaLPZSUqUeY+jSs2f9iL9nibxrkbiYHoUAtwXrBghlxsiWzJzycztXbXt9GffmIFZ83S/73s+4fAKbVkFrGGraDUBM1/WhyCgDP0ZQzdam+SF+J9jTWDPsbUj8JBNTUKDIYxIi/Op4dkZxLOa6vO1ee7oRsOnl2NuijZmpCmgSk8q6lnJ0yTORal71B+1txC/MmlqxhRulpKmoQ7QpfV59dwXEtqkoRVG3XLw+kbNU1e3k3FTusu3K4jJnC1BUPRFe1uFiPvCi7z8+y8Ogog74CVthjvbMVrPbDpXAp3gP4IUinTWuIf6TPQPwn+TSQeAEitR4dmwwtYa+VbiueFgI2z4hh8GMK24xruEJZi5DtOwFPPNmm9bQYZjBYbc+rWO9McPUGyUjUCn88CHFo7yLh/C4lmMnm8WwWz5qNnDMjPBVkMgnpU0b6AENvG2C3B0pYDDboiX3CpftKTa59lqA8lJ3kX0njeMr1uqQ9flK/mC2hl6qk+bAXVPweQoqfXAzyRrmsymR0cYn6H0cDbj6oI2WVoAc+wWAJ/yoemghLlyqk4+Vb/UN0yqsw+kBmiZKSgRvG40qJsu5Uw6nKS6zE1Tuq0AYYxuIpqn7/oyJUPOj9ZUzwbkl1ZInKOhVODUHZis5EoojJeCb/da2ryGwlMYhACE4tJYRpDHDkny9WA4ZoezD4T1NLWx4w0dWNqH2ffc3QtKKXfuIz4Ki1eIKFCKtKvaHGPoSZ7DH+APX4gslNq8q2Mkfb+zeMdRonyHulj5vZ3rjEIcCezY2BM6Xu7wbtJaGhXQAH7+krjjp/ihjWPtI0G8hz+cHRW3OonirFpM4Bi/cBf6tkCHrXWlaKNslCqAqLZ4vaJT6NJ62m8jIbO3NNXS1JWzkIG5WIjMqWFXwoGmsWn2OsV42w2igf17x3cJRJHp6glkO0wiEu3fIPHUnr2lhP+j8BFYE8j3Bn/6ZnQSvuX6I+7dLV2M2wbqLv5lK26+G8lS66JlPIrzror2Aw6WAnMHH3r/zrIZ4OOEYfYkDsS+pq3vVlhtZzjuAJ1WJg1M8rs16qAK8BZ5sSkc7oICaTyKRSlIOEP5qjuYTVwwOm9vrbERyDHXto39HVovc4s0BqPsw0tcpETLYxnSkiBy1ZpYsbcI79k4aPIJvH0LEqby/PD5JR+rrlqw3OpVf5bvImeaXz0D7lsMr0TMxv7gYlHBfpdqnVxNnpXozI/23IThglp9QzYfjIBjxh50ZKnNQcYlsEDPHq/D1+yIb63oCa1cX8kPCNZ8E+RapKwc7pk1c1b8FNrCRi6ycStD0aqEDJKVRhn0DN/PmF0bPnHOjgk7XOV0TK+e/BdmnOFvjFJsP4sz93kWtiJM3+3zIwk8NV4M1QXK+GWqnpCP7UydOvt5z/mL19Guyy/5bWyv8byeeZykcqbmYnHNeNkvPtZC8LK13iGjcyNhK9YeYqYuXSMGp1PXPP7eOXY3x+apOBANG++COFk+CGr+xsWf+4yYrLvdtK7+mMcRgfTAWUxtD2UD4CPIY3jTgGAG+L21Rebd/OGEwKwR0JED6hnIpxOtwfVEYHlVnVNN650qIsN4biekrEhuBTMmQflGWU+Zu+LRGh89ddWroqu/EefZM6KEKRWmHQ4/+bY+bxQBl3POJsKUoCqzoGl1KAP1xZH9293rjMWMotQgkf8GfQyPKT32KZLKgPzdmVXrwHgggJqWIoqk1stWJ/3IxRCsutg69tftbKvpwWEHk2f1GxKPLI1KKtVMKMBm2CgYe1PNpQwaiV/reLIssyF58YqZjFDsstCqTDnmu9gUSGX1eQJTGq8HF15Uc7a5GYxwI2ECwcLSkWuo3XPoTcN5FC1FjKXRdVVjQvgk3eJf8ms7Z38spF6s7t6O4ZIhsELMNzRUmTWBSJyxYfal7i4ZITtqNBhWvm2ayIfdqTldNjmLR1cSzFFE/TIqJMj7UF2l/kVPdyv6w9FqHRonTPzEA1GXv7P9ZyqgX1Tln02UnaxLGWI94yVP90AmWkseSakd1YgjlV04nc/Kahe/oPzbL2aqXrckdljIIAUyeJFSUJUmNNWqg3vQMRYbOLzjlnykGEGWcu+dozefV/i9u55dk7ElQSOKWD+urrlGpwOc6BrV0cmT6zJdpybEr5Tk4XnNBZz4arxrXz15xq2Yp6wGoM6lGSVYDFeXnfIgZAMKgIs8qjj3Hh6W9i4JdukWbdHAI9Ye6a1TXsLBviMi0HioMn1HQSRNP06NOwyFbbTcO5kGZmnomjsRrmQtKu+0ykUqeE6mLXxQdegPuwQ8aP6y2asrXLRPCHxeqb7yhCmoog9Sm7+vVauPp8Jr2hGcKLjAaAkXBxB4rTs0gVSup6eJh/Noz55Tbgpm+KylBkby55WXwYd/c0PkILpevX3R1e6pLz048G/LigE6CraWmh+Cw19k201CDZ4RZ7Et1LVRjPIXIbb1mmEhiqpvHCzxxJ3vLugSfnsdQF4infycb3Wt3wtdrr7f2zl+WL2cSQEHRWUiCn30rUAr6NnXyTIeQU/V3qJwyd8/Hy5fQTaFFOACHfCbLu0lGzqglyyirhd02X3iX7GwU/UzkyL5Jzitx5j82RiO8/3LI1fY1LsWs0ELd1ScU5VpX1xXYHc/gr/pXNvGk4Nmy4/0ZHJsVNS80x2+goZgXuF/N2ZqaAicdI+pQdM6do73DSwiI+dcmAYHBDYbQ/NspDcamoGhz5/9wjH8AIMVPaj8r+vDVeJrmAqptvj2TaBAy1ScxwDl50k7O/fhjaJ5c7VVFHK5k9IJxn5Y7m6CfdknfCZufE2Kl8RWJdTd8qlGgeflt6DXoSPYzMZzw+NoUob0Zpl0c8Z0CmSGa7wms7tq8Syy3IIDa4uzDJ/7from/hyLH/IWGaEmLR3brtFNQSLbDFEY+RyRai/wvsV3BEOhgxWSLg8hHB7HE1LFcM675d3epwAb96FBRpSxLyUMVSkWGO3l/ZZemjCVANk+/oPUsYNDm8Wt6tdQ2FF+eYrfuYrDgI74GGfe8I3bZgiqGoycU02JMyzebVJ+xKkaeR+yUYfIviNOOdfKngD2slX6ImGCi+MNaaAQVcT64G90qOtE2fFGK7nU2wN/EPoVYdVnGDBmOMwM5ZgELGgtSCFK0w2mDv0PV076iPprLF4AAAAASUVORK5CYII=);background-repeat:repeat}@media print{html.noise body:before{display:none}}*{-moz-tab-size:2;-o-tab-size:2;tab-size:2}.animate-ping{animation:ping 2s cubic-bezier(0,0,.2,1) infinite}@keyframes ping{75%,to{transform:scale(1.4);opacity:0}}a{word-break:break-all}@media (min-width: 1024px){input,textarea{font-size:1rem}}.prose p:last-child{margin-bottom:0}html{--border-color: #eee;--font-sans: var(--font-sans),system-ui,-apple-system,PingFang SC,"Microsoft YaHei",Segoe UI,Roboto,Helvetica,noto sans sc,hiragino sans gb,"sans-serif",Apple Color Emoji,Segoe UI Emoji,Not Color Emoji;--theme-color: var(--auto-theme-color, var(--fallback-a,oklch(var(--a)/1)));--hover-color: var(--auto-hover-color, var(--fallback-a,oklch(var(--a)/80)));--header-height: auto;accent-color:var(--theme-color);-webkit-tap-highlight-color:transparent;font-family:var(--font-sans)}a,details summary{-webkit-tap-highlight-color:rgba(0,0,0,0)}:root{--bg-opacity: rgba(255, 255, 255, .72)}[data-theme=dark]{--bg-opacity: rgba(29, 29, 31, .72)}::-moz-selection{background-color:var(--theme-color)!important;color:#fff!important;text-shadow:none}::selection{background-color:var(--theme-color)!important;color:#fff!important;text-shadow:none}::view-transition-new(root){animation:turnOff .8s ease-in-out}@keyframes turnOn{0%{-webkit-clip-path:polygon(0% 0%,100% 0,100% 0,0 0);clip-path:polygon(0% 0%,100% 0,100% 0,0 0)}to{-webkit-clip-path:polygon(0% 0%,100% 0,100% 100%,0 100%);clip-path:polygon(0% 0%,100% 0,100% 100%,0 100%)}}[data-theme=dark]::view-transition-new(root){animation:turnOn .8s ease-in-out}::view-transition-old(root){animation:none}@keyframes turnOff{0%{-webkit-clip-path:polygon(0 100%,100% 100%,100% 100%,0% 100%);clip-path:polygon(0 100%,100% 100%,100% 100%,0% 100%)}to{-webkit-clip-path:polygon(0 100%,100% 100%,100% 0,0 0);clip-path:polygon(0 100%,100% 100%,100% 0,0 0)}}body::-webkit-scrollbar{height:0}html{scrollbar-color:#f4f4f5;scrollbar-width:thin}html.dark{scrollbar-color:#27272a}body{overflow:overlay}[data-theme=dark] *::-webkit-scrollbar-thumb,[data-theme=dark] *::-webkit-scrollbar-thumb:hover{border:3px solid rgb(63 63 70 / 20)}[data-theme=dark] ::-webkit-scrollbar-thumb:hover{background:#27272a}[data-theme=dark] *::-webkit-scrollbar{background:#27272a}*::-webkit-scrollbar-thumb,*::-webkit-scrollbar-thumb:hover{background-color:transparent;border:3px solid rgb(212 212 216 / 40);border-radius:5px}*::-webkit-scrollbar{width:5px!important;height:5px!important;background:#f4f4f5}*::-webkit-scrollbar-thumb{background:var(--fallback-n,oklch(var(--n)/1))}*::-webkit-scrollbar-thumb:hover{background:var(--fallback-n,oklch(var(--n)/80))}*::-webkit-scrollbar-corner{background:#f4f4f5}@media print{[data-hide-print]{display:none!important}}.cl-card,.cl-userButtonPopoverCard{border-width:1px;--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: rgb(113 113 122 / .1);--tw-shadow: var(--tw-shadow-colored);--tw-backdrop-blur: blur(24px);--tw-backdrop-saturate: saturate(1.5);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);--tw-border-opacity: 1;border-color:rgb(228 228 231 / var(--tw-border-opacity));background-color:#fafafacc;--tw-text-opacity: 1;color:rgb(39 39 42 / var(--tw-text-opacity));pointer-events:auto;padding-top:1rem;padding-bottom:1rem;--accent: #18181b;--accentDark: #27272a}.cl-modalBackdrop{display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:var(--fallback-b1,oklch(var(--b1)/.9))}.cl-userButtonPopoverCard{width:16rem}.cl-userButtonPopoverActions{margin-top:.25rem}.cl-userButtonPopoverFooter{display:none}.cl-userButtonPopoverCard .cl-userPreview{padding-left:1rem;padding-right:1rem}.cl-formFieldInput{background-color:transparent;--tw-text-opacity: 1;color:rgb(39 39 42 / var(--tw-text-opacity))}.cl-userButtonPopoverActionButton{gap:.25rem;padding-left:.5rem;padding-right:.5rem}.cl-footerActionLink,.cl-formResendCodeLink{--tw-text-opacity: 1;color:rgb(24 24 27 / var(--tw-text-opacity));text-decoration-line:underline}.cl-formFieldHintText{font-size:12px}.cl-formButtonPrimary{--tw-bg-opacity: 1;background-color:var(--fallback-a,oklch(var(--a)/var(--tw-bg-opacity)));--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity))!important}.cl-formButtonPrimary:hover{background-color:var(--fallback-a,oklch(var(--a)/.8))}.cl-formFieldLabelRow{margin-bottom:.5rem}.cl-footer+div{display:none}.cl-userButtonPopoverCard{padding-bottom:0!important;overflow:hidden}.cl-userButtonPopoverActionButton:hover{background:#f4f4f5}.cl-logoBox{position:absolute;top:-30px;left:50%;margin:auto;display:inline-block;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cl-logoBox img{height:60px;width:60px;overflow:hidden;border-radius:9999px}[data-theme=dark] [class*=cl-internal-]{--accent: #fafafa;--accentDark: #e4e4e7;--border: hsla(0, 0%, 100%, .08);--accentLightest: hsla(0, 0%, 100%, .04);--accentLighter: hsla(0, 0%, 100%, .16);--accentDarker: hsla(0, 0%, 100%, .64)}[data-theme=dark] .cl-userButtonPopoverActionButton:hover{background:#27272a}[data-theme=dark] .🔒,[data-theme=dark] .cl-formField p,[data-theme=dark] .cl-formField p[aria-live=polite],[data-theme=dark] .cl-formFieldInputShowPasswordButton{--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity))}[data-theme=dark] .cl-card,[data-theme=dark] .cl-userButtonPopoverCard{--tw-border-opacity: 1;border-color:rgb(39 39 42 / var(--tw-border-opacity));background-color:#18181bcc;--tw-text-opacity: 1;color:rgb(228 228 231 / var(--tw-text-opacity));--tw-shadow-color: rgb(24 24 27 / .2);--tw-shadow: var(--tw-shadow-colored)}[data-theme=dark] .cl-profileSectionTitleText{--tw-text-opacity: 1;color:rgb(244 244 245 / var(--tw-text-opacity))}[data-theme=dark] .cl-breadcrumbsItem,[data-theme=dark] .cl-breadcrumbsItemDivider,[data-theme=dark] [data-localization-key],[data-theme=dark] .cl-fileDropAreaOuterBox *,[data-theme=dark] .cl-profileSectionContent__password p{--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity))}[data-theme=dark] .cl-navbarButton.cl-active{background-color:#a1a1aa1a}[data-theme=dark] .cl-navbar{--tw-border-opacity: 1;border-color:rgb(39 39 42 / var(--tw-border-opacity))}[data-theme=dark] .cl-userPreviewSecondaryIdentifier,[data-theme=dark] .cl-headerSubtitle,[data-theme=dark] .cl-profileSectionContent__activeDevices p{--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity))}[data-theme=dark] .cl-headerTitle,[data-theme=dark] .cl-socialButtonsBlockButton,[data-theme=dark] .cl-alternativeMethodsBlockButton,[data-theme=dark] .cl-userButtonPopoverActionButtonIcon,[data-theme=dark] .cl-userButtonPopoverActionButtonText{--tw-text-opacity: 1;color:rgb(228 228 231 / var(--tw-text-opacity))}[data-theme=dark] .cl-alternativeMethodsBlockButton svg:not(.cl-alternativeMethodsBlockButtonArrow){--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-theme=dark] .cl-socialButtonsBlockButton,[data-theme=dark] .cl-alternativeMethodsBlockButton{border-radius:.75rem;border-color:#71717a33}[data-theme=dark] .cl-socialButtonsProviderIcon__github,[data-theme=dark] .cl-providerIcon__github{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-theme=dark] .cl-dividerLine{background-color:#e4e4e71a}[data-theme=dark] .cl-dividerText{--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity))}[data-theme=dark] .cl-formFieldAction{--tw-text-opacity: 1;color:rgb(228 228 231 / var(--tw-text-opacity));text-decoration-line:underline}[data-theme=dark] .cl-formFieldLabel{--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity))}[data-theme=dark] .cl-formFieldInput,[data-theme=dark] .cl-identityPreview{--tw-border-opacity: 1;border-color:rgb(39 39 42 / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:rgb(228 228 231 / var(--tw-text-opacity))}[data-theme=dark] .cl-footerActionText,[data-theme=dark] .cl-formHeaderSubtitle{--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity))}[data-theme=dark] .cl-footerActionLink,[data-theme=dark] .cl-formHeaderTitle,[data-theme=dark] .cl-formResendCodeLink{--tw-text-opacity: 1;color:rgb(244 244 245 / var(--tw-text-opacity))}[data-theme=dark] .cl-modalCloseButton{--tw-text-opacity: 1;color:rgb(228 228 231 / var(--tw-text-opacity))}[data-theme=dark] .cl-otpCodeFieldInput{--tw-border-opacity: 1;border-color:rgb(63 63 70 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(228 228 231 / var(--tw-text-opacity))}[data-theme=dark] .cl-formFieldSuccessText__password,[data-theme=dark] .cl-formFieldDirectionsText__password,[data-theme=dark] .cl-formFieldHintText__password,[data-theme=dark] .cl-formFieldInfoText__password,[data-theme=dark] .cl-identityPreviewText{--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity))}[data-theme=dark] .cl-identityPreviewEditButton{--tw-text-opacity: 1;color:rgb(228 228 231 / var(--tw-text-opacity))}.cl-card{padding-top:2.5rem}.medium-zoom-overlay{z-index:99;--tw-bg-opacity: 1 !important;background-color:rgb(248 250 252 / var(--tw-bg-opacity))!important}:is([data-theme=dark] .medium-zoom-overlay){--tw-bg-opacity: 1 !important;background-color:rgb(23 23 23 / var(--tw-bg-opacity))!important}.medium-zoom-image{border-radius:.5rem;transition:border-radius .3s ease-in-out}.medium-zoom-image.medium-zoom-image--opened{border-radius:0;z-index:100;opacity:1;transition:all .5s ease-in-out}.Toastify{position:fixed;z-index:99;bottom:30px;right:12px;width:300px;pointer-events:all!important}:root{--toastify-toast-width: 320px;--toastify-z-index: 9999;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-offset: 16px;--toastify-toast-top: max( var(--toastify-toast-offset), env(safe-area-inset-top) );--toastify-toast-right: max( var(--toastify-toast-offset), env(safe-area-inset-right) );--toastify-toast-left: max( var(--toastify-toast-offset), env(safe-area-inset-left) );--toastify-toast-bottom: max( var(--toastify-toast-offset), env(safe-area-inset-bottom) )}.Toastify__toast-icon{display:none}.Toastify__toast-container{width:100%;z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box}.Toastify--animate{animation-fill-mode:both;animation-duration:.7s}.Toastify__toast-container div{opacity:1!important}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{transform:translate3d(3000px,0,0)}60%{transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(2000px,0,0)}}.mask-both{-webkit-mask-image:linear-gradient(rgba(255,255,255,0) 0%,rgb(255,255,255) 20px,rgb(255,255,255) calc(100% - 20px),rgba(255,255,255,0) 100%);mask-image:linear-gradient(#fff0,#fff 20px calc(100% - 20px),#fff0)}.mask-b{-webkit-mask-image:linear-gradient(rgb(255,255,255) calc(100% - 20px),rgba(255,255,255,0) 100%);mask-image:linear-gradient(#fff calc(100% - 20px),#fff0)}.mask-t{-webkit-mask-image:linear-gradient(rgba(255,255,255,0) 0%,rgb(255,255,255) 20px);mask-image:linear-gradient(#fff0,#fff 20px)}.cover-mask-b{-webkit-mask-image:linear-gradient(180deg,#fff -17.19%,#00000000 92.43%);mask-image:linear-gradient(180deg,#fff -17.19%,#0000 92.43%)}.code-wrap,.code-wrap pre[class*=language-],.code-wrap code[class*=language-]{white-space:break-spaces!important;overflow:auto!important;word-break:break-word!important}@font-face{font-family:OperatorMonoSSmLig Nerd Font;src:url(https://cdn.jsdelivr.net/gh/Innei/zshrc@0.1.0/webfont/OperatorMonoSSmLigNerdFontAAEOPSLMDI-Italic.woff2) format("woff2"),url(https://cdn.jsdelivr.net/gh/Innei/zshrc@0.1.0/webfont/OperatorMonoSSmLigNerdFontAAEOPSLMDI-Italic.woff) format("woff");font-weight:400;font-style:italic}@font-face{font-family:OperatorMonoSSmLig Nerd Font;src:url(https://cdn.jsdelivr.net/gh/Innei/zshrc@0.1.0/webfont/OperatorMonoSSmLigNerdFontAAEOPSLMDI-Book.woff2) format("woff2"),url(https://cdn.jsdelivr.net/gh/Innei/zshrc@0.1.0/webfont/OperatorMonoSSmLigNerdFontAAEOPSLMDI-Book.woff) format("woff");font-weight:400;font-style:normal}@font-face{font-family:Operator Mono;src:url(https://cdn.jsdelivr.net/gh/Innei/zshrc@0.1.0/webfont/OperatorMonoSSmLigNerdFontAAEOPSLMDI-Italic.woff2) format("woff2"),url(https://cdn.jsdelivr.net/gh/Innei/zshrc@0.1.0/webfont/OperatorMonoSSmLigNerdFontAAEOPSLMDI-Italic.woff) format("woff");font-weight:400;font-style:italic}@font-face{font-family:Operator Mono;src:url(https://cdn.jsdelivr.net/gh/Innei/zshrc@0.1.0/webfont/OperatorMonoSSmLigNerdFontAAEOPSLMDI-Book.woff2) format("woff2"),url(https://cdn.jsdelivr.net/gh/Innei/zshrc@0.1.0/webfont/OperatorMonoSSmLigNerdFontAAEOPSLMDI-Book.woff) format("woff");font-weight:400;font-style:normal}@font-face{font-family:JetBrains Mono;src:url(https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&display=swap),url(https://fonts.googleapis.com/css2?family=Fira+Code:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&display=swap);font-weight:400;font-style:normal}.group:hover .group-hover\:animation-blink{animation:blink 1.2s linear infinite}.placeholder\:text-slate-500::-moz-placeholder{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.placeholder\:text-slate-500::placeholder{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.placeholder\:text-zinc-400::-moz-placeholder{--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity))}.placeholder\:text-zinc-400::placeholder{--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:inset-0:before{content:var(--tw-content);inset:0}.before\:-left-\[50\%\]:before{content:var(--tw-content);left:-50%}.before\:-top-\[50\%\]:before{content:var(--tw-content);top:-50%}.before\:bottom-0:before{content:var(--tw-content);bottom:0}.before\:left-\[3px\]:before{content:var(--tw-content);left:3px}.before\:top-0:before{content:var(--tw-content);top:0}.before\:z-0:before{content:var(--tw-content);z-index:0}.before\:h-full:before{content:var(--tw-content);height:100%}.before\:min-h-\[44\]:before{content:var(--tw-content);min-height:44}.before\:w-\[3px\]:before{content:var(--tw-content);width:3px}.before\:w-full:before{content:var(--tw-content);width:100%}.before\:min-w-\[44\]:before{content:var(--tw-content);min-width:44}.before\:-translate-x-full:before{content:var(--tw-content);--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:-translate-y-full:before{content:var(--tw-content);--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:rounded-lg:before{content:var(--tw-content);border-radius:.5rem}.before\:rounded-md:before{content:var(--tw-content);border-radius:.375rem}.before\:bg-accent:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:var(--fallback-a,oklch(var(--a)/var(--tw-bg-opacity)))}.before\:bg-zinc-200\/80:before{content:var(--tw-content);background-color:#e4e4e7cc}.before\:content-\[\"\"\]:before{--tw-content: "";content:var(--tw-content)}.before\:content-\[\'\'\]:before{--tw-content: "";content:var(--tw-content)}.before\:content-auto:before{content:var(--tw-content);content-visibility:auto}.focus-within\:border-accent:focus-within{--tw-border-opacity: 1;border-color:var(--fallback-a,oklch(var(--a)/var(--tw-border-opacity)))}.group:hover .group-hover\:-translate-y-2{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:opacity-100{opacity:1}.group:hover .group-hover\:shadow-out-sm{box-shadow:0 0 10px #7878781a,0 5px 20px #78787833}.group:hover .group-\[\:hover\]\:visible{visibility:visible}.group:hover .group-\[\:hover\]\:opacity-100{opacity:1}.group:hover .group-\[\:hover\]\:opacity-70{opacity:.7}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:bg-accent[data-state=checked]{--tw-bg-opacity: 1;background-color:var(--fallback-a,oklch(var(--a)/var(--tw-bg-opacity)))}.data-\[state\=unchecked\]\:bg-gray-300[data-state=unchecked]{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.hover\:border-accent:hover{--tw-border-opacity: 1;border-color:var(--fallback-a,oklch(var(--a)/var(--tw-border-opacity)))}.hover\:\!bg-transparent:hover{background-color:transparent!important}.hover\:bg-accent\/40:hover{background-color:var(--fallback-a,oklch(var(--a)/.4))}.hover\:bg-blue-200:hover{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.hover\:bg-primary\/80:hover{background-color:var(--fallback-p,oklch(var(--p)/.8))}.hover\:bg-red-400:hover{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.hover\:bg-slate-100\/80:hover{background-color:#f1f5f9cc}.hover\:bg-zinc-200:hover{--tw-bg-opacity: 1;background-color:rgb(228 228 231 / var(--tw-bg-opacity))}.hover\:bg-opacity-100:hover{--tw-bg-opacity: 1}.hover\:text-accent:hover{--tw-text-opacity: 1;color:var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity)))}.hover\:text-accent\/80:hover{color:var(--fallback-a,oklch(var(--a)/.8))}.hover\:text-base-content\/80:hover{color:var(--fallback-bc,oklch(var(--bc)/.8))}.hover\:text-black:hover{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.hover\:text-current:hover{color:currentColor}.hover\:text-orange-500:hover{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity))}.hover\:text-red-400:hover{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.hover\:text-uk-brown-dark:hover{--tw-text-opacity: 1;color:rgb(172 142 104 / var(--tw-text-opacity))}.hover\:text-uk-cyan-light:hover{--tw-text-opacity: 1;color:rgb(50 173 230 / var(--tw-text-opacity))}.hover\:text-uk-orange-light:hover{--tw-text-opacity: 1;color:rgb(255 149 0 / var(--tw-text-opacity))}.hover\:text-uk-pink-dark:hover{--tw-text-opacity: 1;color:rgb(255 55 95 / var(--tw-text-opacity))}.hover\:text-uk-red-light:hover{--tw-text-opacity: 1;color:rgb(255 59 48 / var(--tw-text-opacity))}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-90:hover{opacity:.9}.hover\:contrast-\[1\.10\]:hover{--tw-contrast: contrast(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:before\:bg-zinc-200\/80:hover:before{content:var(--tw-content);background-color:#e4e4e7cc}.focus\:border-accent\/80:focus{border-color:var(--fallback-a,oklch(var(--a)/.8))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:\!shadow-out-sm:focus{box-shadow:0 0 10px #7878781a,0 5px 20px #78787833!important}.focus-visible\:border-accent:focus-visible{--tw-border-opacity: 1;border-color:var(--fallback-a,oklch(var(--a)/var(--tw-border-opacity)))}.focus-visible\:border-primary:focus-visible{--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)))}.focus-visible\:text-uk-brown-light:focus-visible{--tw-text-opacity: 1;color:rgb(162 132 94 / var(--tw-text-opacity))}.focus-visible\:\!shadow-none:focus-visible{--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\!ring-0:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.focus-visible\:ring-0:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-accent:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: var(--fallback-a,oklch(var(--a)/var(--tw-ring-opacity)))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-base-100:focus-visible{--tw-ring-offset-color: var(--fallback-b1,oklch(var(--b1)/1))}.focus-visible\:\!shadow-out-sm:focus-visible{box-shadow:0 0 10px #7878781a,0 5px 20px #78787833!important}.active\:bg-primary\/50:active{background-color:var(--fallback-p,oklch(var(--p)/.5))}.active\:contrast-125:active{--tw-contrast: contrast(1.25);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.active\:transition-none:active{transition-property:none}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-gray-400:disabled{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-50:disabled{opacity:.5}@container (min-width: 550px){.\@\[550px\]\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@container (min-width: 900px){.\@\[900px\]\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (min-width: 1124px){.\@\[1124px\]\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@container (min-width: 1200px){.\@\[1200px\]\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}:is([data-theme=dark] .dark\:border-amber-400){--tw-border-opacity: 1;border-color:rgb(251 191 36 / var(--tw-border-opacity))}:is([data-theme=dark] .dark\:border-blue-400){--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity))}:is([data-theme=dark] .dark\:border-neutral-700){--tw-border-opacity: 1;border-color:rgb(64 64 64 / var(--tw-border-opacity))}:is([data-theme=dark] .dark\:border-neutral-800){--tw-border-opacity: 1;border-color:rgb(38 38 38 / var(--tw-border-opacity))}:is([data-theme=dark] .dark\:border-neutral-900){--tw-border-opacity: 1;border-color:rgb(23 23 23 / var(--tw-border-opacity))}:is([data-theme=dark] .dark\:border-neutral-900\/80){border-color:#171717cc}:is([data-theme=dark] .dark\:border-slate-800){--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity))}:is([data-theme=dark] .dark\:border-uk-separator-opaque-dark){--tw-border-opacity: 1;border-color:rgb(56 56 58 / var(--tw-border-opacity))}:is([data-theme=dark] .dark\:border-zinc-100\/10){border-color:#f4f4f51a}:is([data-theme=dark] .dark\:border-zinc-500\/30){border-color:#71717a4d}:is([data-theme=dark] .dark\:border-zinc-600){--tw-border-opacity: 1;border-color:rgb(82 82 91 / var(--tw-border-opacity))}:is([data-theme=dark] .dark\:border-zinc-700){--tw-border-opacity: 1;border-color:rgb(63 63 70 / var(--tw-border-opacity))}:is([data-theme=dark] .dark\:border-zinc-800){--tw-border-opacity: 1;border-color:rgb(39 39 42 / var(--tw-border-opacity))}:is([data-theme=dark] .dark\:bg-amber-300){--tw-bg-opacity: 1;background-color:rgb(252 211 77 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-blue-300){--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-emerald-800){--tw-bg-opacity: 1;background-color:rgb(6 95 70 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-gray-200\/80){background-color:#e5e7ebcc}:is([data-theme=dark] .dark\:bg-gray-600){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-gray-800\/0){background-color:#1f293700}:is([data-theme=dark] .dark\:bg-green-300){--tw-bg-opacity: 1;background-color:rgb(134 239 172 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-neutral-500){--tw-bg-opacity: 1;background-color:rgb(115 115 115 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-neutral-600){--tw-bg-opacity: 1;background-color:rgb(82 82 82 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-neutral-800){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-neutral-900){--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-neutral-900\/60){background-color:#17171799}:is([data-theme=dark] .dark\:bg-neutral-900\/80){background-color:#171717cc}:is([data-theme=dark] .dark\:bg-neutral-900\/90){background-color:#171717e6}:is([data-theme=dark] .dark\:bg-neutral-950){--tw-bg-opacity: 1;background-color:rgb(10 10 10 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-orange-500){--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-orange-700){--tw-bg-opacity: 1;background-color:rgb(194 65 12 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-orange-800){--tw-bg-opacity: 1;background-color:rgb(154 52 18 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-red-300){--tw-bg-opacity: 1;background-color:rgb(252 165 165 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-red-900){--tw-bg-opacity: 1;background-color:rgb(127 29 29 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-rose-800){--tw-bg-opacity: 1;background-color:rgb(159 18 57 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-sky-800){--tw-bg-opacity: 1;background-color:rgb(7 89 133 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-slate-700){--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-slate-800){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-white){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-zinc-500\/20){background-color:#71717a33}:is([data-theme=dark] .dark\:bg-zinc-700\/\[0\.15\]){background-color:#3f3f4626}:is([data-theme=dark] .dark\:bg-zinc-800){--tw-bg-opacity: 1;background-color:rgb(39 39 42 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-zinc-800\/50){background-color:#27272a80}:is([data-theme=dark] .dark\:bg-zinc-800\/80){background-color:#27272acc}:is([data-theme=dark] .dark\:bg-zinc-800\/90){background-color:#27272ae6}:is([data-theme=dark] .dark\:bg-zinc-900){--tw-bg-opacity: 1;background-color:rgb(24 24 27 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:bg-zinc-900\/80){background-color:#18181bcc}:is([data-theme=dark] .dark\:bg-opacity-10){--tw-bg-opacity: .1}:is([data-theme=dark] .dark\:from-zinc-900\/50){--tw-gradient-from: rgb(24 24 27 / .5) var(--tw-gradient-from-position);--tw-gradient-to: rgb(24 24 27 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}:is([data-theme=dark] .dark\:from-zinc-900\/70){--tw-gradient-from: rgb(24 24 27 / .7) var(--tw-gradient-from-position);--tw-gradient-to: rgb(24 24 27 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}:is([data-theme=dark] .dark\:to-zinc-800\/90){--tw-gradient-to: rgb(39 39 42 / .9) var(--tw-gradient-to-position)}:is([data-theme=dark] .dark\:fill-white){fill:#fff}:is([data-theme=dark] .dark\:text-\[\#5CB7D2\]){--tw-text-opacity: 1;color:rgb(92 183 210 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:text-\[\#FFFFFF\]){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:text-\[\#c4c4c4\]){--tw-text-opacity: 1;color:rgb(196 196 196 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:text-amber-400){--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:text-blue-400){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:text-gray-200\/90){color:#e5e7ebe6}:is([data-theme=dark] .dark\:text-gray-300){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:text-gray-300\/60){color:#d1d5db99}:is([data-theme=dark] .dark\:text-neutral-100){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:text-neutral-300){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:text-neutral-400){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:text-neutral-800){--tw-text-opacity: 1;color:rgb(38 38 38 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:text-orange-500){--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:text-orange-700){--tw-text-opacity: 1;color:rgb(194 65 12 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:text-slate-100\/80){color:#f1f5f9cc}:is([data-theme=dark] .dark\:text-slate-200\/80){color:#e2e8f0cc}:is([data-theme=dark] .dark\:text-slate-50){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:text-yellow-500){--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:text-zinc-100){--tw-text-opacity: 1;color:rgb(244 244 245 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:text-zinc-200){--tw-text-opacity: 1;color:rgb(228 228 231 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:text-zinc-500){--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:shadow-\[\#333\]){--tw-shadow-color: #333;--tw-shadow: var(--tw-shadow-colored)}:is([data-theme=dark] .dark\:shadow-neutral-800\/50){--tw-shadow-color: rgb(38 38 38 / .5);--tw-shadow: var(--tw-shadow-colored)}:is([data-theme=dark] .dark\:shadow-stone-800){--tw-shadow-color: #292524;--tw-shadow: var(--tw-shadow-colored)}:is([data-theme=dark] .dark\:ring-black){--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}:is([data-theme=dark] .dark\:ring-neutral-800){--tw-ring-opacity: 1;--tw-ring-color: rgb(38 38 38 / var(--tw-ring-opacity))}:is([data-theme=dark] .dark\:ring-orange-700){--tw-ring-opacity: 1;--tw-ring-color: rgb(194 65 12 / var(--tw-ring-opacity))}:is([data-theme=dark] .dark\:ring-red-400){--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity))}:is([data-theme=dark] .dark\:ring-white\/10){--tw-ring-color: rgb(255 255 255 / .1)}:is([data-theme=dark] .dark\:ring-zinc-100\/10){--tw-ring-color: rgb(244 244 245 / .1)}:is([data-theme=dark] .dark\:ring-zinc-800){--tw-ring-opacity: 1;--tw-ring-color: rgb(39 39 42 / var(--tw-ring-opacity))}:is([data-theme=dark] .dark\:placeholder\:text-zinc-500)::-moz-placeholder{--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:placeholder\:text-zinc-500)::placeholder{--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:before\:bg-zinc-800\/80):before{content:var(--tw-content);background-color:#27272acc}:is([data-theme=dark] .dark\:data-\[state\=unchecked\]\:bg-gray-700[data-state=unchecked]){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:hover\:bg-gray-800:hover){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:hover\:bg-neutral-800:hover){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:hover\:bg-slate-700:hover){--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:hover\:bg-zinc-700:hover){--tw-bg-opacity: 1;background-color:rgb(63 63 70 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:hover\:bg-zinc-800:hover){--tw-bg-opacity: 1;background-color:rgb(39 39 42 / var(--tw-bg-opacity))}:is([data-theme=dark] .dark\:hover\:bg-zinc-900\/90:hover){background-color:#18181be6}:is([data-theme=dark] .hover\:dark\:bg-gray-800\/100):hover{background-color:#1f2937}:is([data-theme=dark] .dark\:hover\:text-zinc-300:hover){--tw-text-opacity: 1;color:rgb(212 212 216 / var(--tw-text-opacity))}:is([data-theme=dark] .dark\:hover\:ring-1:hover){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}:is([data-theme=dark] .dark\:hover\:ring-white\/20:hover){--tw-ring-color: rgb(255 255 255 / .2)}:is([data-theme=dark] .dark\:hover\:ring-zinc-300:hover){--tw-ring-opacity: 1;--tw-ring-color: rgb(212 212 216 / var(--tw-ring-opacity))}:is([data-theme=dark] .dark\:hover\:before\:bg-zinc-800\/80:hover):before{content:var(--tw-content);background-color:#27272acc}:is([data-theme=dark] .disabled\:dark\:bg-gray-800):disabled{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is([data-theme=dark] .disabled\:dark\:text-slate-50):disabled{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\:absolute{position:absolute}.md\:bottom-0{bottom:0}.md\:right-0{right:0}.md\:top-0{top:0}.md\:col-start-1{grid-column-start:1}.md\:m-0{margin:0}.md\:my-0{margin-top:0;margin-bottom:0}.md\:ml-4{margin-left:1rem}.md\:mr-2{margin-right:.5rem}.md\:mt-0{margin-top:0}.md\:mt-6{margin-top:1.5rem}.md\:line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.md\:block{display:block}.md\:inline{display:inline}.md\:flex{display:flex}.md\:inline-flex{display:inline-flex}.md\:h-10{height:2.5rem}.md\:h-screen{height:100vh}.md\:max-h-\[60vh\]{max-height:60vh}.md\:w-10{width:2.5rem}.md\:w-\[500px\]{width:500px}.md\:max-w-\[80vw\]{max-width:80vw}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.md\:self-start{align-self:flex-start}.md\:rounded-xl{border-radius:.75rem}.md\:border{border-width:1px}.md\:px-0{padding-left:0;padding-right:0}.md\:text-left{text-align:left}.md\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.lg\:-right-8{right:-2rem}.lg\:left-\[-30px\]{left:-30px}.lg\:right-\[-25px\]{right:-25px}.lg\:col-auto{grid-column:auto}.lg\:mb-5{margin-bottom:1.25rem}.lg\:ml-\[calc\(100vw-100\%\)\]{margin-left:calc(100vw - 100%)}.lg\:mr-4{margin-right:1rem}.lg\:mt-\[80px\]{margin-top:80px}.lg\:line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:h-0{height:0px}.lg\:h-\[200px\]{height:200px}.lg\:max-h-\[auto\]{max-height:auto}.lg\:max-h-\[calc\(100vh-20rem\)\]{max-height:calc(100vh - 20rem)}.lg\:max-h-full{max-height:100%}.lg\:w-\[400px\]{width:400px}.lg\:w-\[600px\]{width:600px}.lg\:max-w-\[65rem\]{max-width:65rem}.lg\:max-w-\[70vw\]{max-width:70vw}.lg\:flex-grow-0{flex-grow:0}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-\[auto_400px\]{grid-template-columns:auto 400px}.lg\:justify-start{justify-content:flex-start}.lg\:gap-4{gap:1rem}.lg\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:self-start{align-self:flex-start}.lg\:overflow-visible{overflow:visible}.lg\:border{border-width:1px}.lg\:p-0{padding:0}.lg\:p-\[30px_45px\]{padding:30px 45px}.lg\:px-0{padding-left:0;padding-right:0}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:px-\[4rem\]{padding-left:4rem;padding-right:4rem}.lg\:opacity-20{opacity:.2}.lg\:shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}@media (min-width: 1280px){.xl\:w-\[700px\]{width:700px}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1536px){.\32xl\:max-w-4xl{max-width:56rem}.\32xl\:max-w-6xl{max-width:72rem}}@media print{.print\:\!block{display:block!important}.print\:hidden{display:none}.print\:\!border-none{border-style:none!important}.print\:\!bg-transparent{background-color:transparent!important}.print\:\!shadow-none{--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}}.\[\&\>\*\]\:inline-flex>*{display:inline-flex}.\[\&\>\*\]\:items-center>*{align-items:center}.\[\&\>\*\]\:space-x-2>*>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.\[\&\>\*\]\:px-2>*{padding-left:.5rem;padding-right:.5rem}.\[\&\>\*\]\:py-2>*{padding-top:.5rem;padding-bottom:.5rem}.\[\&\>div\]\:flex>div{display:flex}.\[\&\>div\]\:flex-grow>div{flex-grow:1}.\[\&\>div\]\:flex-col>div{flex-direction:column}.\[\&\>i\]\:flex-shrink-0>i{flex-shrink:0}.\[\&\>li\]\:flex>li{display:flex}.\[\&\>li\]\:items-center>li{align-items:center}.\[\&\>li\]\:space-x-2>li>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.\[\&\>li\]\:py-1>li{padding-top:.25rem;padding-bottom:.25rem}.\[\&\>p\:first-child\]\:mt-0>p:first-child{margin-top:0}.\[\&\>svg\]\:flex-shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:hover\:ml-2:hover>svg{margin-left:.5rem}.\[\&_\*\]\:\!select-none *{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.\[\&_\*\]\:\!font-mono *{font-family:OperatorMonoSSmLig Nerd Font,Cascadia Code PL,FantasqueSansMono Nerd Font,operator mono,JetBrainsMono,Fira code Retina,Fira code,Consolas,Monaco,Hannotate SC,monospace,-apple-system!important}.\[\&_\*\]\:\!text-base *{font-size:1rem!important;line-height:1.5rem!important}.\[\&_\*\]\:text-\[14px\] *{font-size:14px}.\[\&_\*\]\:\!leading-\[1\.5\] *{line-height:1.5!important}.\[\&_\*\]\:leading-4 *{line-height:1rem}.\[\&_a\]\:break-all a{word-break:break-all}.\[\&_button\]\:whitespace-nowrap button{white-space:nowrap}.\[\&_h4\]\:font-medium h4{font-weight:500}.\[\&_header\.prose\]\:mb-\[80px\] header.prose{margin-bottom:80px}.\[\&_i\]\:opacity-60 i{opacity:.6}.\[\&_i\]\:hover\:text-accent:hover i{--tw-text-opacity: 1;color:var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity)))}.\[\&_p\]\:my-4 p{margin-top:1rem;margin-bottom:1rem}.\[\&_section\]\:my-2 section{margin-top:.5rem;margin-bottom:.5rem}.\[\&_svg\]\:inline svg{display:inline}.\[\&_svg\]\:opacity-60 svg{opacity:.6} diff --git a/assets/index-_iJ2szeX.js b/assets/index-_iJ2szeX.js new file mode 100644 index 00000000000..8f2ca8ae4a6 --- /dev/null +++ b/assets/index-_iJ2szeX.js @@ -0,0 +1,8 @@ +import{r as f,c as ot,R as x,j as i,_ as $t}from"./index-qegmBwH1.js";import{s as pt}from"./index-wpIVlVRc.js";import{S as Ht,s as qt,E as it,F as Kt,e as gt,g as xt,u as le,k as me,H as Gt,I as Yt}from"./owner-4YVbz2PN.js";import{t as ke}from"./toast-qMk_Ov--.js";import{u as Ct,a as Qt,b as Jt,c as Re,d as Xt,e as $e,f as Zt,g as en,h as tn,i as bt,M as nn,j as Se,k as sn,l as rn,m as on,s as He,n as K,o as De,E as an,p as cn}from"./Comments-P8C4VA5P.js";import{p as at,A as vt}from"./AutoResizeHeight-pHZ_oyCK.js";import{a as ee,c as qe}from"./helper-0r91fNX5.js";import{c as ln,I as Et}from"./WrappedElementProvider-5243oAX6.js";import{s as un}from"./useQuery-44y7CkOR.js";import{c as dn,d as fn}from"./Markdown-hVdCypI9.js";import{j as Z}from"./store-gmK8mRDy.js";import{A as mn}from"./spring--xEiX8r3.js";import{m as Me}from"./motion-minimal-gJqnz197.js";import{b as yt,d as hn}from"./init-a0893ef4-4662SO8Z.js";import{F as wt}from"./FloatPopover-1BpKQIdq.js";import{T as pn,F as gn,a as xn}from"./FormInput-cQs6MTpb.js";import{p as Cn}from"./dom-NuJWIaAq.js";import{a as bn,g as vn}from"./provider-jumr72cx.js";import{S as ct,M as En}from"./StyledButton-Mj8l6PeD.js";import{u as yn}from"./utils-t32ZRaBl.js";import"./env-y9k74Ds6.js";import"./image-sZM8elMx.js";import"./use-is-dark-13kBJDHw.js";import"./FlexText-sued5-2E.js";import"./SocialSourceLink-c8HgVvxv.js";import"./PinIconToggle-aUENNNd6.js";import"./lodash-Y39_oLIE.js";import"./index-5Y6ZmVAf.js";import"./use-is-unmounted-6i0OwE-p.js";import"./script-SYgWefdU.js";import"./visual-element-YIiczwVf.js";import"./Gallery-MHeEsxti.js";import"./LinkCard-r30gHz-0.js";import"./usePeek-N6a5Jy_H.js";import"./use-is-client-IECHC2ux.js";import"./CodeHighlighter-Sy1nPjje.js";import"./Collapse-Q-wSwlx_.js";import"./use-event-callback-nMlqCkS7.js";import"./CurrentPostDataProvider-sxwUfZTo.js";import"./customParseFormat-3OBJgCTU.js";var wn=class extends Ht{constructor(e,t){super(),this.#t=void 0,this.#s=e,this.setOptions(t),this.bindMethods(),this.#r()}#s;#t;#e;#n;bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#s.defaultMutationOptions(e),qt(t,this.options)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#e,observer:this}),this.#e?.setOptions(this.options),t?.mutationKey&&this.options.mutationKey&&it(t.mutationKey)!==it(this.options.mutationKey)&&this.reset()}onUnsubscribe(){this.hasListeners()||this.#e?.removeObserver(this)}onMutationUpdate(e){this.#r(),this.#o(e)}getCurrentResult(){return this.#t}reset(){this.#e?.removeObserver(this),this.#e=void 0,this.#r(),this.#o()}mutate(e,t){return this.#n=t,this.#e?.removeObserver(this),this.#e=this.#s.getMutationCache().build(this.#s,this.options),this.#e.addObserver(this),this.#e.execute(e)}#r(){const e=this.#e?.state??Kt();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#o(e){gt.batch(()=>{if(this.#n&&this.hasListeners()){const t=this.#t.variables,n=this.#t.context;e?.type==="success"?(this.#n.onSuccess?.(e.data,t,n),this.#n.onSettled?.(e.data,null,t,n)):e?.type==="error"&&(this.#n.onError?.(e.error,t,n),this.#n.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(t=>{t(this.#t)})})}};function Rn(e,t){const n=xt(t),[r]=f.useState(()=>new wn(n,e));f.useEffect(()=>{r.setOptions(e)},[r,e]);const s=f.useSyncExternalStore(f.useCallback(a=>r.subscribe(gt.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=f.useCallback((a,p)=>{r.mutate(a,p).catch(Sn)},[r]);if(s.error&&un(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:o,mutateAsync:s.mutate}}function Sn(){}typeof window<"u"&&!window.global&&(window.global=typeof ot>"u"?window:ot);var Rt=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,jn=Object.getOwnPropertyNames,Tn=Object.prototype.hasOwnProperty,On=(e,t)=>{for(var n in t)Rt(e,n,{get:t[n],enumerable:!0})},lt=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of jn(t))!Tn.call(e,s)&&s!==n&&Rt(e,s,{get:()=>t[s],enumerable:!(r=_n(t,s))||r.enumerable});return e},kn=(e,t,n)=>(lt(e,t,"default"),n&<(n,t,"default")),Nn=()=>{try{return!1}catch{}return!1},An=()=>{try{return!0}catch{}return!1},ut=new Set,In=(e,t,n)=>{const r=Nn()||An(),s=n??e;ut.has(s)||r||(ut.add(s),console.warn(`Clerk - DEPRECATION WARNING: "${e}" is deprecated and will be removed in the next major release. +${t}`))},Ln={Expired:"expired",Failed:"failed"};new Proxy(Ln,{get(e,t,n){return In("MagicLinkErrorCode","Use `EmailLinkErrorCode` instead."),Reflect.get(e,t,n)}});const Pn="Clerk: You must wrap your application in a component.",Dn=e=>`Clerk: You've passed multiple children components to <${e}/>. You can only pass a single child component or text.`,Mn=e=>t=>{try{return x.Children.only(e)}catch{throw new Error(Dn(t))}},Vn=(e,t)=>(e||(e=t),typeof e=="string"&&(e=x.createElement("button",null,e)),e),zn=e=>(...t)=>{if(e&&typeof e=="function")return e(...t)},oe=()=>{},W=oe(),we=Object,m=e=>e===W,H=e=>typeof e=="function",te=(e,t)=>({...e,...t}),Fn=e=>H(e.then),Ee=new WeakMap;let Wn=0;const ge=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let s,o;if(we(e)===e&&!r&&n!=RegExp){if(s=Ee.get(e),s)return s;if(s=++Wn+"~",Ee.set(e,s),n==Array){for(s="@",o=0;o_e&&typeof window.requestAnimationFrame!=Ke,re=(e,t)=>{const n=G.get(e);return[()=>!m(t)&&e.get(t)||Ne,r=>{if(!m(t)){const s=e.get(t);t in ye||(ye[t]=s),n[5](t,te(s,r),s||Ne)}},n[6],()=>!m(t)&&t in ye?ye[t]:!m(t)&&e.get(t)||Ne]};let ze=!0;const Bn=()=>ze,[Fe,We]=_e&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[oe,oe],$n=()=>{const e=Ve&&document.visibilityState;return m(e)||e!=="hidden"},Hn=e=>(Ve&&document.addEventListener("visibilitychange",e),Fe("focus",e),()=>{Ve&&document.removeEventListener("visibilitychange",e),We("focus",e)}),qn=e=>{const t=()=>{ze=!0,e()},n=()=>{ze=!1};return Fe("online",t),Fe("offline",n),()=>{We("online",t),We("offline",n)}},Kn={isOnline:Bn,isVisible:$n},Gn={initFocus:Hn,initReconnect:qn},dt=!x.useId,xe=!_e||"Deno"in window,Yn=e=>Un()?window.requestAnimationFrame(e):setTimeout(e,1),pe=xe?f.useEffect:f.useLayoutEffect,Ae=typeof navigator<"u"&&navigator.connection,ft=!xe&&Ae&&(["slow-2g","2g"].includes(Ae.effectiveType)||Ae.saveData),ie=e=>{if(H(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?ge(e):"",[e,t]};let Qn=0;const Ue=()=>++Qn,St=0,_t=1,jt=2,Jn=3;var he={__proto__:null,ERROR_REVALIDATE_EVENT:Jn,FOCUS_EVENT:St,MUTATE_EVENT:jt,RECONNECT_EVENT:_t};async function Tt(...e){const[t,n,r,s]=e,o=te({populateCache:!0,throwOnError:!0},typeof s=="boolean"?{revalidate:s}:s||{});let a=o.populateCache;const p=o.rollbackOnError;let h=o.optimisticData;const j=o.revalidate!==!1,E=T=>typeof p=="function"?p(T):p!==!1,C=o.throwOnError;if(H(n)){const T=n,w=[],O=t.keys();for(const V of O)!/^\$(inf|sub)\$/.test(V)&&T(t.get(V)._k)&&w.push(V);return Promise.all(w.map(u))}return u(n);async function u(T){const[w]=ie(T);if(!w)return;const[O,V]=re(t,w),[c,$,R,S]=G.get(t),N=c[w],z=()=>j&&(delete R[w],delete S[w],N&&N[0])?N[0](jt).then(()=>O().data):O().data;if(e.length<3)return z();let l=r,d;const y=Ue();$[w]=[y,0];const g=!m(h),A=O(),I=A.data,k=A._c,L=m(k)?I:k;if(g&&(h=H(h)?h(L,I):h,V({data:h,_c:L})),H(l))try{l=l(L)}catch(U){d=U}if(l&&Fn(l))if(l=await l.catch(U=>{d=U}),y!==$[w][0]){if(d)throw d;return l}else d&&g&&E(d)&&(a=!0,l=L,V({data:l,_c:W}));a&&(d||(H(a)&&(l=a(l,L)),V({data:l,error:W,_c:W}))),$[w][1]=Ue();const D=await z();if(V({_c:W}),d){if(C)throw d;return}return a?D:l}}const mt=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Ot=(e,t)=>{if(!G.has(e)){const n=te(Gn,t),r={},s=Tt.bind(W,e);let o=oe;const a={},p=(E,C)=>{const u=a[E]||[];return a[E]=u,u.push(C),()=>u.splice(u.indexOf(C),1)},h=(E,C,u)=>{e.set(E,C);const T=a[E];if(T)for(const w of T)w(C,u)},j=()=>{if(!G.has(e)&&(G.set(e,[r,{},{},{},s,h,p]),!xe)){const E=n.initFocus(setTimeout.bind(W,mt.bind(W,r,St))),C=n.initReconnect(setTimeout.bind(W,mt.bind(W,r,_t)));o=()=>{E&&E(),C&&C(),G.delete(e)}}};return j(),[e,s,j,o]}return[e,G.get(e)[4]]},Xn=(e,t,n,r,s)=>{const o=n.errorRetryCount,a=s.retryCount,p=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!m(o)&&a>o||setTimeout(r,p,s)},Zn=(e,t)=>ge(e)==ge(t),[je,kt]=Ot(new Map),Nt=te({onLoadingSlow:oe,onSuccess:oe,onError:oe,onErrorRetry:Xn,onDiscarded:oe,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:ft?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:ft?5e3:3e3,compare:Zn,isPaused:()=>!1,cache:je,mutate:kt,fallback:{}},Kn),At=(e,t)=>{const n=te(e,t);if(t){const{use:r,fallback:s}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),s&&a&&(n.fallback=te(s,a))}return n},Be=f.createContext({}),es=e=>{const{value:t}=e,n=f.useContext(Be),r=H(t),s=f.useMemo(()=>r?t(n):t,[r,n,t]),o=f.useMemo(()=>r?s:At(n,s),[r,n,s]),a=s&&s.provider,p=f.useRef(W);a&&!p.current&&(p.current=Ot(a(o.cache||je),s));const h=p.current;return h&&(o.cache=h[0],o.mutate=h[1]),pe(()=>{if(h)return h[2]&&h[2](),h[3]},[]),f.createElement(Be.Provider,te(e,{value:o}))},It=_e&&window.__SWR_DEVTOOLS_USE__,ts=It?window.__SWR_DEVTOOLS_USE__:[],ns=()=>{It&&(window.__SWR_DEVTOOLS_REACT__=x)},Lt=e=>H(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Pt=()=>te(Nt,f.useContext(Be)),ss=(e,t)=>{const[n,r]=ie(e),[,,,s]=G.get(je);if(s[n])return s[n];const o=t(r);return s[n]=o,o},rs=e=>(t,n,r)=>e(t,n&&((...o)=>{const[a]=ie(t),[,,,p]=G.get(je),h=p[a];return m(h)?n(...o):(delete p[a],h)}),r),os=ts.concat(rs),is=e=>function(...n){const r=Pt(),[s,o,a]=Lt(n),p=At(r,a);let h=e;const{use:j}=p,E=(j||[]).concat(os);for(let C=E.length;C--;)h=E[C](h);return h(s,o||p.fetcher||null,p)},as=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const s=r.indexOf(n);s>=0&&(r[s]=r[r.length-1],r.pop())}},cs=(e,t)=>(...n)=>{const[r,s,o]=Lt(n),a=(o.use||[]).concat(t);return e(r,s,{...o,use:a})};ns();const ls=e=>ie(e)[0],ht=x.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Ie={dedupe:!0},us=(e,t,n)=>{const{cache:r,compare:s,suspense:o,fallbackData:a,revalidateOnMount:p,revalidateIfStale:h,refreshInterval:j,refreshWhenHidden:E,refreshWhenOffline:C,keepPreviousData:u}=n,[T,w,O,V]=G.get(r),[c,$]=ie(e),R=f.useRef(!1),S=f.useRef(!1),N=f.useRef(c),z=f.useRef(t),l=f.useRef(n),d=()=>l.current,y=()=>d().isVisible()&&d().isOnline(),[g,A,I,k]=re(r,c),L=f.useRef({}).current,D=m(a)?n.fallback[c]:a,U=(b,v)=>{for(const M in L){const _=M;if(_==="data"){if(!s(b[_],v[_])&&(!m(b[_])||!s(ve,v[_])))return!1}else if(v[_]!==b[_])return!1}return!0},de=f.useMemo(()=>{const b=!c||!t?!1:m(p)?d().isPaused()||o?!1:m(h)?!0:h:p,v=F=>{const J=te(F);return delete J._k,b?{isValidating:!0,isLoading:!0,...J}:J},M=g(),_=k(),q=v(M),ce=M===_?q:v(_);let P=q;return[()=>{const F=v(g());return U(F,P)?(P.data=F.data,P.isLoading=F.isLoading,P.isValidating=F.isValidating,P.error=F.error,P):(P=F,F)},()=>ce]},[r,c]),ne=pt.useSyncExternalStore(f.useCallback(b=>I(c,(v,M)=>{U(M,v)||b()}),[r,c]),de[0],de[1]),Ce=!R.current,Y=T[c]&&T[c].length>0,se=ne.data,Q=m(se)?D:se,be=ne.error,Xe=f.useRef(Q),ve=u?m(se)?Xe.current:se:Q,Ze=Y&&!m(be)?!1:Ce&&!m(p)?p:d().isPaused()?!1:o?m(Q)?!1:h:m(Q)||h,et=!!(c&&t&&Ce&&Ze),Wt=m(ne.isValidating)?et:ne.isValidating,Ut=m(ne.isLoading)?et:ne.isLoading,fe=f.useCallback(async b=>{const v=z.current;if(!c||!v||S.current||d().isPaused())return!1;let M,_,q=!0;const ce=b||{},P=!O[c]||!ce.dedupe,F=()=>dt?!S.current&&c===N.current&&R.current:c===N.current,J={isValidating:!1,isLoading:!1},nt=()=>{A(J)},st=()=>{const B=O[c];B&&B[1]===_&&delete O[c]},rt={isValidating:!0};m(g().data)&&(rt.isLoading=!0);try{if(P&&(A(rt),n.loadingTimeout&&m(g().data)&&setTimeout(()=>{q&&F()&&d().onLoadingSlow(c,n)},n.loadingTimeout),O[c]=[v($),Ue()]),[M,_]=O[c],M=await M,P&&setTimeout(st,n.dedupingInterval),!O[c]||O[c][1]!==_)return P&&F()&&d().onDiscarded(c),!1;J.error=W;const B=w[c];if(!m(B)&&(_<=B[0]||_<=B[1]||B[1]===0))return nt(),P&&F()&&d().onDiscarded(c),!1;const X=g().data;J.data=s(X,M)?X:M,P&&F()&&d().onSuccess(M,c,n)}catch(B){st();const X=d(),{shouldRetryOnError:Te}=X;X.isPaused()||(J.error=B,P&&F()&&(X.onError(B,c,X),(Te===!0||H(Te)&&Te(B))&&y()&&X.onErrorRetry(B,c,X,Bt=>{const Oe=T[c];Oe&&Oe[0]&&Oe[0](he.ERROR_REVALIDATE_EVENT,Bt)},{retryCount:(ce.retryCount||0)+1,dedupe:!0})))}return q=!1,nt(),!0},[c,r]),tt=f.useCallback((...b)=>Tt(r,N.current,...b),[]);if(pe(()=>{z.current=t,l.current=n,m(se)||(Xe.current=se)}),pe(()=>{if(!c)return;const b=fe.bind(W,Ie);let v=0;const _=as(c,T,(q,ce={})=>{if(q==he.FOCUS_EVENT){const P=Date.now();d().revalidateOnFocus&&P>v&&y()&&(v=P+d().focusThrottleInterval,b())}else if(q==he.RECONNECT_EVENT)d().revalidateOnReconnect&&y()&&b();else{if(q==he.MUTATE_EVENT)return fe();if(q==he.ERROR_REVALIDATE_EVENT)return fe(ce)}});return S.current=!1,N.current=c,R.current=!0,A({_k:$}),Ze&&(m(Q)||xe?b():Yn(b)),()=>{S.current=!0,_()}},[c]),pe(()=>{let b;function v(){const _=H(j)?j(g().data):j;_&&b!==-1&&(b=setTimeout(M,_))}function M(){!g().error&&(E||d().isVisible())&&(C||d().isOnline())?fe(Ie).then(v):v()}return v(),()=>{b&&(clearTimeout(b),b=-1)}},[j,E,C,c]),f.useDebugValue(ve),o&&m(Q)&&c){if(!dt&&xe)throw new Error("Fallback data is required when using suspense in SSR.");z.current=t,l.current=n,S.current=!1;const b=V[c];if(!m(b)){const v=tt(b);ht(v)}if(m(be)){const v=fe(Ie);m(ve)||(v.status="fulfilled",v.value=!0),ht(v)}else throw be}return{mutate:tt,get data(){return L.data=!0,ve},get error(){return L.error=!0,be},get isValidating(){return L.isValidating=!0,Wt},get isLoading(){return L.isLoading=!0,Ut}}},Dt=we.defineProperty(es,"defaultValue",{value:Nt}),Ge=is(us),ds=Object.freeze(Object.defineProperty({__proto__:null,SWRConfig:Dt,default:Ge,mutate:kt,preload:ss,unstable_serialize:ls,useSWRConfig:Pt},Symbol.toStringTag,{value:"Module"})),fs="$inf$",ms=e=>ie(e?e(0,null):null)[0],Le=Promise.resolve(),hs=e=>(t,n,r)=>{const s=f.useRef(!1),{cache:o,initialSize:a=1,revalidateAll:p=!1,persistSize:h=!1,revalidateFirstPage:j=!0,revalidateOnMount:E=!1,parallel:C=!1}=r;let u;try{u=ms(t),u&&(u=fs+u)}catch{}const[T,w,O]=re(o,u),V=f.useCallback(()=>m(T()._l)?a:T()._l,[o,u,a]);pt.useSyncExternalStore(f.useCallback(l=>u?O(u,()=>{l()}):()=>{},[o,u]),V,V);const c=f.useCallback(()=>{const l=T()._l;return m(l)?a:l},[u,a]),$=f.useRef(c());pe(()=>{if(!s.current){s.current=!0;return}u&&w({_l:h?$.current:c()})},[u,o]);const R=E&&!s.current,S=e(u,async l=>{const d=T()._i,y=[],g=c(),[A]=re(o,l),I=A().data,k=[];let L=null;for(let D=0;D{Y=await n(de),Ce({data:Y,_k:de}),y[D]=Y};C?k.push(Q):await Q()}else y[D]=Y;C||(L=Y)}return C&&await Promise.all(k.map(D=>D())),w({_i:W}),y},r),N=f.useCallback(function(l,d){const y=typeof d=="boolean"?{revalidate:d}:d||{},g=y.revalidate!==!1;return u?(g&&(m(l)?w({_i:!0}):w({_i:!1})),arguments.length?S.mutate(l,{...y,revalidate:g}):S.mutate()):Le},[u,o]),z=f.useCallback(l=>{if(!u)return Le;const[,d]=re(o,u);let y;if(H(l)?y=l(c()):typeof l=="number"&&(y=l),typeof y!="number")return Le;d({_l:y}),$.current=y;const g=[],[A]=re(o,u);let I=null;for(let k=0;k{const{assertCtxFn:n=gs}=t||{},r=x.createContext(void 0);return r.displayName=e,[r,()=>{const a=x.useContext(r);return n(a,`${e} not found`),a.value},()=>{const a=x.useContext(r);return a?a.value:{}}]},Mt={};On(Mt,{SWRConfig:()=>Dt,useSWR:()=>Ge,useSWRInfinite:()=>ps});kn(Mt,ds);var[xs,Cs]=ue("ClerkInstanceContext"),[Lr,bs]=ue("UserContext");ue("ClientContext");ue("SessionContext");ue("OrganizationContext");typeof window<"u"?x.useLayoutEffect:x.useEffect;const[Pr,vs]=[xs,Cs];function Es(e){if(!e)throw new Error(Pn)}const ys=Object.freeze({noGuarantees:Object.freeze({guaranteedLoaded:!1}),guaranteedLoaded:Object.freeze({guaranteedLoaded:!0})}),Ye=x.createContext(void 0);Ye.displayName="StructureContext";const ws=()=>{const e=x.useContext(Ye);return Es(e),e},Rs=({children:e})=>ws().guaranteedLoaded?x.createElement(x.Fragment,null,e):x.createElement(Ye.Provider,{value:ys.guaranteedLoaded},e),ae=(e,t)=>{t=t||e.displayName||e.name||"Component",e.displayName=t;const n=r=>{const s=vs();return s.loaded?x.createElement(Rs,null,x.createElement(e,{...r,clerk:s})):null};return n.displayName=`withClerk(${t})`,n},[Dr,Vt]=ue("AuthContext");function zt(){const e=bs();return e===void 0?{isLoaded:!1,isSignedIn:void 0,user:void 0}:e===null?{isLoaded:!0,isSignedIn:!1,user:null}:{isLoaded:!0,isSignedIn:!0,user:e}}const Ss=({children:e})=>{const{userId:t}=Vt();return t?x.createElement(x.Fragment,null,e):null},_s=({children:e})=>{const{userId:t}=Vt();return t===null?x.createElement(x.Fragment,null,e):null};ae(({clerk:e,...t})=>{const{client:n,session:r}=e,{__unstable__environment:s}=e,o=n.activeSessions&&n.activeSessions.length>0;return x.useEffect(()=>{if(r===null&&o&&s){const{afterSignOutOneUrl:a}=s.displayConfig;e.navigate(a)}else e.redirectToSignIn(t)},[]),null},"RedirectToSignIn");ae(({clerk:e,...t})=>(x.useEffect(()=>{e.redirectToSignUp(t)},[]),null),"RedirectToSignUp");ae(({clerk:e})=>(x.useEffect(()=>{e.redirectToUserProfile()},[]),null),"RedirectToUserProfile");ae(({clerk:e})=>(x.useEffect(()=>{e.redirectToOrganizationProfile()},[]),null),"RedirectToOrganizationProfile");ae(({clerk:e})=>(x.useEffect(()=>{e.redirectToCreateOrganization()},[]),null),"RedirectToCreateOrganization");ae(({clerk:e,...t})=>(x.useEffect(()=>{e.handleRedirectCallback(t)},[]),null),"AuthenticateWithRedirectCallback");const js=ae(({clerk:e,children:t,...n})=>{const{afterSignInUrl:r,afterSignUpUrl:s,redirectUrl:o,mode:a,...p}=n;t=Vn(t,"Sign in");const h=Mn(t)("SignInButton"),j=()=>{const u={afterSignInUrl:r,afterSignUpUrl:s,redirectUrl:o};return a==="modal"?e.openSignIn(u):e.redirectToSignIn(u)},C={...p,onClick:async u=>(await zn(h.props.onClick)(u),j())};return x.cloneElement(h,C)},"SignInButton"),Ts=Ss,Os=_s;function ks({className:e}){return i.jsx("i",{className:ee("icon-[mingcute--send-plane-line]",e)})}const Ns=()=>{const e=tn(),t=bt();return i.jsxs("span",{className:ee("font-mono text-[10px]",e?"text-red-500":"text-zinc-500"),children:[t.length,"/",nn]})},As=()=>{const e=le(),t=$e(),n=yt(Re().isWhisper),r=Se();return e||t?null:i.jsxs("label",{className:"label mx-2 flex items-center",children:[i.jsx("input",{className:"checkbox-accent checkbox checkbox-sm mr-2",checked:n,type:"checkbox",onChange:s=>{const o=s.target.checked;r("isWhisper",o)}}),i.jsx("span",{className:"label-text text-sm",children:"悄悄话"})]})},Is=()=>{const e=le(),t=yt(Re().syncToRecently),n=Se(),r=$e();return!e||r?null:i.jsxs("label",{className:"label mx-2 flex items-center",children:[i.jsx("input",{className:"checkbox-accent checkbox checkbox-sm mr-2",checked:t,type:"checkbox",onChange:s=>{const o=s.target.checked;n("syncToRecently",o)}}),i.jsx("span",{className:"label-text text-sm",children:"同步到碎碎念"})]})},Qe=({className:e})=>{const t=Ct();return i.jsxs("footer",{className:qe("mt-3 flex h-5 w-full min-w-0 items-center justify-between",e),children:[i.jsxs("span",{className:ee("flex-1 select-none text-[10px] text-zinc-500 transition-opacity"),children:[i.jsxs("span",{className:"hidden md:inline",children:["支持 ",i.jsx("b",{children:"Markdown"})," 与"," ",i.jsx(dn,{href:"https://docs.github.com/zh/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax",children:"GFM"})]}),i.jsx(Qt,{})]}),i.jsx(mn,{children:t&&i.jsxs(Me.aside,{initial:{opacity:0,scale:.96,y:8},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.98,y:8},className:"flex select-none items-center gap-2.5",children:[i.jsx(Ns,{}),i.jsx(As,{}),i.jsx(Is,{}),i.jsx(Ls,{})]},"send-button-wrapper")})]})},Ls=()=>{const e=Jt(),{text:t,author:n,mail:r,url:s,source:o,avatar:a,isWhisper:p,syncToRecently:h}=Re(),{afterSubmit:j}=Xt(),E=le(),C=xt(),u=$e(),T=Zt(),w=en(),O=R=>(w?.(R),R),{mutate:V,isPending:c}=Rn({mutationFn:async R=>{const S=Z.get(t),N=Z.get(n),z=Z.get(r),l=Z.get(a),d=Z.get(o),y=Z.get(s),g={text:S,author:N,mail:z,avatar:l,source:d,url:y};if(E&&delete g.avatar,Object.keys(g).forEach(k=>{g[k]===""&&delete g[k]}),u)return E?me.comment.proxy.master.reply(R).post({data:{text:S,source:d}}).then(O):me.comment.reply(R,g).then(O);const A=Z.get(p),I=Z.get(h);return E?me.comment.proxy.master.comment(R).post({data:{text:S,source:d}}).then(async k=>(I&&me.recently.proxy.post({data:{content:S,ref:R}}).then(()=>{ke.success("已同步到碎碎念")}),k)).then(O):(g.isWhispers=A,me.comment.comment(R,g).then(O))},mutationKey:[e,"comment"],onError(R){ke.error(Gt(R))},onSuccess(R){j?.();const S=E?"发表成功啦~":u?"感谢你的回复!":"感谢你的评论!",N=sn(T);ke.success(S),Z.set(t,""),C.setQueryData(N,z=>z&&(u?at(z,l=>{const d=(g,A,I)=>{if(g.id===A)return g.children||(g.children=[]),g.children.push({...I,new:!0}),!0;if(g.children){for(const k of g.children)if(d(k,A,I))return!0;return!1}},y={...R,new:!0};for(const g of l.pages)for(const A of g.data)if(d(A,e,y))break}):at(z,l=>{l.pages[0].data.unshift({...R,new:!0})})))}}),$=()=>{V(e)};return i.jsxs(Me.button,{className:"flex appearance-none items-center space-x-1 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",whileHover:{scale:1.05},whileTap:{scale:.95},type:"button",disabled:c,onClick:$,children:[i.jsx(ks,{className:"h-5 w-5 text-zinc-800 dark:text-zinc-200"}),i.jsx(Me.span,{className:"text-sm",layout:"size",children:c?"送信...":"送信"})]})},Ps=()=>{const e="bg-gray-200/50 dark:bg-zinc-800/50";return i.jsxs("div",{className:"flex animate-pulse gap-4",children:[i.jsx("div",{className:ee("h-12 w-12 self-end overflow-hidden rounded-full",e)}),i.jsx("div",{className:ee("h-[150px] w-full rounded-lg",e)})]})},Ds=fn(()=>$t(()=>import("./EmojiPicker-5MSXy1Rt.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(e=>e.EmojiPicker)),Je=()=>{const e=ln(()=>rn()),t=Se(),n=bt(),r=f.useRef(null),s=f.useCallback(o=>{if(!r.current)return;const a=r.current,p=a.selectionStart,h=a.selectionEnd;a.value=`${a.value.substring(0,p)} ${o} ${a.value.substring(h,a.value.length)}`,t("text",a.value),requestAnimationFrame(()=>{const j=p+o.length+2;a.selectionStart=j,a.selectionEnd=j,a.focus()})},[]);return f.useEffect(()=>{const o=r.current;o&&n!==o.value&&(o.value=n)},[n]),f.useLayoutEffect(()=>{const o=r.current;o&&(o.selectionStart=o.selectionEnd=o.value.length,o.focus())},[]),i.jsx(pn,{ref:r,defaultValue:n,onChange:o=>t("text",o.target.value),placeholder:e,children:i.jsx(on,{children:i.jsx(wt,{trigger:"click",TriggerComponent:Ms,headless:!0,children:i.jsx(Ds,{onEmojiSelect:s})})})})},Ms=()=>i.jsxs("button",{className:"ml-0 inline-flex h-5 w-5 translate-y-1 text-base center md:ml-4",onClick:Cn,children:[i.jsx("i",{className:"icon-[mingcute--emoji-2-line]"}),i.jsx("span",{className:"sr-only",children:"表情"})]}),Vs=()=>{const{user:e}=zt(),t=Se(),n=e?e.fullName||e.lastName||e.firstName||"Anonymous":"";return f.useEffect(()=>{if(!e)return;t("author",n),t("avatar",e.imageUrl),t("mail",e.primaryEmailAddress?.emailAddress||"");const r=e.primaryEmailAddress?.verification.strategy;r&&t("source",r)},[n,t,e]),e?i.jsxs("div",{className:"flex space-x-4",children:[i.jsx("div",{className:ee("mb-2 flex-shrink-0 select-none self-end overflow-hidden rounded-full",'dark:ring-zinc-800" bg-zinc-200 ring-2 ring-zinc-200 dark:bg-zinc-800',"ml-[2px] backface-hidden"),children:i.jsx(Et,{className:"rounded-full object-cover",src:e.imageUrl,alt:`${n}'s avatar`,width:48,height:48})}),i.jsx("div",{className:"relative h-[150px] w-full rounded-lg bg-gray-200/50 pb-5 dark:bg-zinc-800/50",children:i.jsx(Je,{})}),i.jsx(Qe,{className:"absolute bottom-0 left-12 right-0 mb-2 ml-4 w-auto px-4"})]}):i.jsx(Ps,{})},zs=()=>le()?i.jsx(Us,{}):i.jsx(Ws,{}),Ft="relative h-[150px] w-full rounded-lg bg-gray-200/50 pb-5 dark:bg-zinc-800/50",Fs={author:"昵称",mail:"邮箱",url:"网址"},Pe=e=>{const{fieldKey:t,required:n}=e,[r,s]=hn(Re()[t]);return i.jsx(xn,{type:"text",value:r,onChange:o=>s(o.target.value),required:n,placeholder:Fs[t]+(n?" *":""),className:"border-0 bg-gray-200/50 dark:bg-zinc-800/50"})},Ws=()=>i.jsxs(gn,{className:"flex flex-col space-y-4 px-2 pt-2",showErrorMessage:!1,children:[i.jsxs("div",{className:"flex flex-col space-x-0 space-y-4 md:flex-row md:space-x-4 md:space-y-0",children:[i.jsx(Pe,{fieldKey:"author",required:!0}),i.jsx(Pe,{fieldKey:"mail",required:!0}),i.jsx(Pe,{fieldKey:"url"})]}),i.jsx("div",{className:qe(Ft,"pb-8"),children:i.jsx(Je,{})}),i.jsx(Qe,{className:"absolute bottom-4 left-0 right-4 mb-2 ml-4 w-auto px-4"})]}),Us=()=>{const e=Yt(t=>t.user);return i.jsxs("div",{className:"flex space-x-4",children:[i.jsx("div",{className:ee("mb-2 flex-shrink-0 select-none self-end overflow-hidden rounded-full",'dark:ring-zinc-800" bg-zinc-200 ring-2 ring-zinc-200 dark:bg-zinc-800',"ml-[2px] backface-hidden"),children:i.jsx(Et,{className:"rounded-full object-cover",src:e.avatar,alt:`${e.name||e.username}'s avatar`,width:48,height:48})}),i.jsx("div",{className:Ft,children:i.jsx(Je,{})}),i.jsx(Qe,{className:"absolute bottom-0 left-12 right-0 mb-2 ml-4 w-auto px-4"})]})};function Bs(e){return i.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:i.jsx("path",{d:"M11 15H7C4.79086 15 3 16.7909 3 19C3 20.1046 3.89543 21 5 21H15M16.8744 13C16.2164 13.4935 15.6221 14.066 15.1049 14.7043C15.035 14.7906 15 14.8953 15 15M16.8744 17C16.2164 16.5065 15.6221 15.934 15.1049 15.2957C15.035 15.2094 15 15.1047 15 15M15 15H21M15 7C15 9.20914 13.2091 11 11 11C8.79086 11 7 9.20914 7 7C7 4.79086 8.79086 3 11 3C13.2091 3 15 4.79086 15 7Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function $s(){const e=vn(),{dismissAll:t}=bn();return i.jsxs("div",{className:"flex h-[150px] w-full space-x-4 rounded-lg bg-gray-100/80 center dark:bg-zinc-900/80",children:[i.jsx(ct,{variant:"secondary",type:"button",onClick:()=>{He(K.legacy)},children:"免登录评论"}),i.jsx(js,{mode:"modal",redirectUrl:yn(e).href,children:i.jsxs(ct,{onClick:()=>{t()},variant:"primary",type:"button",children:[i.jsx(Bs,{className:"mr-1 h-5 w-5"}),"登录后才可以留言噢"]})})]})}const Hs=()=>{const e=De(),t=`转换到${e===K.legacy?"新":"旧"}版评论`,n=Ct(),r=!!zt(),s=f.useRef(function(){const p=De();return i.jsxs(i.Fragment,{children:[i.jsx("i",{className:ee(p===K.legacy?"icon-[mingcute--user-4-line]":"icon-[material-symbols--dynamic-form-outline]")}),i.jsx("span",{className:"sr-only",children:t})]})}).current;return le()?null:i.jsx(En,{className:ee("absolute left-0 top-0 z-10 rounded-full text-sm","h-6 w-6 border border-slate-200 dark:border-neutral-800","bg-slate-100 dark:bg-neutral-900","flex cursor-pointer text-base-100/50 center","text-base-content/50","opacity-0 transition-opacity duration-200 group-[:hover]:opacity-100",e===K.legacy&&"bottom-0 top-auto",n||r&&e===K["with-auth"]&&"invisible opacity-0"),onClick:()=>{He(e===K.legacy?K["with-auth"]:K.legacy)},children:i.jsx(wt,{TriggerComponent:s,children:t})})},Mr=e=>{const{refId:t,className:n,afterSubmit:r,initialValue:s}=e,o=De(),a=le();return f.useEffect(()=>{a&&He(K.legacy)},[a]),i.jsx(an,{children:i.jsx(cn,{refId:t,afterSubmit:r,initialValue:s,children:i.jsxs("div",{className:qe("group relative w-full min-w-0",n),"data-hide-print":!0,children:[i.jsx(Hs,{}),i.jsx("div",{className:"relative w-full",children:o===K.legacy?i.jsx(qs,{}):i.jsx(Ks,{})})]})})})},qs=()=>i.jsx(vt,{children:i.jsx(zs,{})}),Ks=()=>i.jsxs(vt,{children:[i.jsx(Os,{children:i.jsx($s,{})}),i.jsx(Ts,{children:i.jsx(Vs,{})})]});export{Mr as CommentBoxRoot}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["./EmojiPicker-5MSXy1Rt.js","./index-qegmBwH1.js","./index-SRCubG37.css","./use-is-dark-13kBJDHw.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/assets/index-fcBMwXcr.css b/assets/index-fcBMwXcr.css new file mode 100644 index 00000000000..c357aa915bd --- /dev/null +++ b/assets/index-fcBMwXcr.css @@ -0,0 +1 @@ +._editor_xk7tm_1 *[contenteditable=true]:focus-visible{outline:0!important}._editor_xk7tm_1{line-height:2;caret-color:var(--fallback-p,oklch(var(--p)/1))}._editor_xk7tm_1,._editor_xk7tm_1 .milkdown,._editor_xk7tm_1 [data-milkdown-root=true],._editor_xk7tm_1 [contenteditable=true]{height:100%}._editor_xk7tm_1 h1{font-size:1.2rem;font-weight:500}._editor_xk7tm_1 h2{font-size:1.15rem;font-weight:500}._editor_xk7tm_1 h3{font-size:1.1rem;font-weight:500}._editor_xk7tm_1 h4{font-size:1.05rem;font-weight:500}._editor_xk7tm_1 a{--tw-text-opacity: 1;color:var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity)));text-decoration-line:underline}._editor_xk7tm_1 blockquote{border-left-width:4px;--tw-border-opacity: 1;border-color:var(--fallback-a,oklch(var(--a)/var(--tw-border-opacity)));padding-left:1rem;font-family:"Noto Serif CJK SC","Noto Serif SC",var(--font-serif),"Source Han Serif SC","Source Han Serif",source-han-serif-sc,SongTi SC,SimSum,"Hiragino Sans GB",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,"Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;font-style:normal}._editor_xk7tm_1 code:not(pre>code){display:inline-block;border-radius:.125rem;background-color:#e2e8f080;padding:.25rem;font-family:OperatorMonoSSmLig Nerd Font,Cascadia Code PL,FantasqueSansMono Nerd Font,operator mono,JetBrainsMono,Fira code Retina,Fira code,Consolas,Monaco,Hannotate SC,monospace,-apple-system;font-weight:400;--tw-text-opacity: 1;color:var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity)))}._editor_xk7tm_1 p{margin-top:.5rem;margin-bottom:.5rem}[data-theme=dark] ._editor_xk7tm_1 a{--tw-text-opacity: 1;color:var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity)))}[data-theme=dark] ._editor_xk7tm_1 blockquote{--tw-border-opacity: 1;border-color:var(--fallback-a,oklch(var(--a)/var(--tw-border-opacity)))}[data-theme=dark] ._editor_xk7tm_1 code:not(pre>code){background-color:#1e293b80;--tw-text-opacity: 1;color:var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity)))}._editor_xk7tm_1 pre code{color:inherit}._editor_xk7tm_1 img{margin-top:0!important;margin-bottom:0!important;display:inline-block;max-width:100%}._editor_xk7tm_1 ._tableWrapper_xk7tm_74{position:relative;margin-bottom:.5rem;overflow-x:auto}._editor_xk7tm_1 table{margin:1rem!important;overflow:visible!important;font-size:.875rem;line-height:1.25rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){._editor_xk7tm_1 table{border-radius:.5rem}}._editor_xk7tm_1 td,._editor_xk7tm_1 th{padding:.75rem 1.5rem!important}._editor_xk7tm_1 tr{border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}:is([data-theme=dark] ._editor_xk7tm_1 tr){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}[data-theme=dark] ._editor_xk7tm_1 tr{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}._editor_xk7tm_1 :where(td,th) p{margin:0!important}._editor_xk7tm_1 :where(td,th):nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}[data-theme=dark] ._editor_xk7tm_1 :where(td,th):nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}._editor_xk7tm_1._ProseMirror_xk7tm_107 ._selectedCell_xk7tm_107:after{background-color:var(--fallback-a,oklch(var(--a)/.3))}._editor_xk7tm_1 br[data-is-inline=true],._editor_xk7tm_1 br[data-is-inline=true]:after{content:" "}._editor_xk7tm_1 ul{list-style-position:inside;list-style-type:disc}._editor_xk7tm_1 ol{list-style-position:inside;list-style-type:decimal}._editor_xk7tm_1 li>p{display:inline}._editor_xk7tm_1{font-size:14px}._editor_xk7tm_1 pre{border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity));padding:.5rem}[data-theme=dark] ._editor_xk7tm_1 pre{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity))} diff --git a/assets/index-hp6Y5x8K.js b/assets/index-hp6Y5x8K.js new file mode 100644 index 00000000000..189f611cf55 --- /dev/null +++ b/assets/index-hp6Y5x8K.js @@ -0,0 +1,2 @@ +import{z as Be,B as Le,j as te,G as xe}from"./owner-4YVbz2PN.js";import{j as A,R as q}from"./index-qegmBwH1.js";import{p as Pe}from"./AutoResizeHeight-pHZ_oyCK.js";import{t as g}from"./toast-qMk_Ov--.js";import{j as z}from"./store-gmK8mRDy.js";import{a as me}from"./init-a0893ef4-4662SO8Z.js";import{T as De}from"./usePeek-N6a5Jy_H.js";import{p as Ie,r as w,R as _,g as se,s as qe,e as ie,f as Ue}from"./CurrentPostDataProvider-sxwUfZTo.js";import"./env-y9k74Ds6.js";import"./helper-0r91fNX5.js";import"./motion-minimal-gJqnz197.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./visual-element-YIiczwVf.js";import"./provider-jumr72cx.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";var V=(s=>(s.RefreshToc="refresh-toc",s))(V||{});const m=Object.create(null);m.open="0";m.close="1";m.ping="2";m.pong="3";m.message="4";m.upgrade="5";m.noop="6";const x=Object.create(null);Object.keys(m).forEach(s=>{x[m[s]]=s});const F={type:"error",data:"parser error"},ye=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ge=typeof ArrayBuffer=="function",Ee=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer,G=({type:s,data:e},t,i)=>ye&&e instanceof Blob?t?i(e):ne(e,i):ge&&(e instanceof ArrayBuffer||Ee(e))?t?i(e):ne(new Blob([e]),i):i(m[s]+(e||"")),ne=(s,e)=>{const t=new FileReader;return t.onload=function(){const i=t.result.split(",")[1];e("b"+(i||""))},t.readAsDataURL(s)};function re(s){return s instanceof Uint8Array?s:s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}let U;function Me(s,e){if(ye&&s.data instanceof Blob)return s.data.arrayBuffer().then(re).then(e);if(ge&&(s.data instanceof ArrayBuffer||Ee(s.data)))return e(re(s.data));G(s,!1,t=>{U||(U=new TextEncoder),e(U.encode(t))})}const oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",R=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let s=0;s{let e=s.length*.75,t=s.length,i,n=0,r,o,h,a;s[s.length-1]==="="&&(e--,s[s.length-2]==="="&&e--);const b=new ArrayBuffer(e),y=new Uint8Array(b);for(i=0;i>4,y[n++]=(o&15)<<4|h>>2,y[n++]=(h&3)<<6|a&63;return b},Fe=typeof ArrayBuffer=="function",j=(s,e)=>{if(typeof s!="string")return{type:"message",data:be(s,e)};const t=s.charAt(0);return t==="b"?{type:"message",data:He(s.substring(1),e)}:x[t]?s.length>1?{type:x[t],data:s.substring(1)}:{type:x[t]}:F},He=(s,e)=>{if(Fe){const t=Ve(s);return be(t,e)}else return{base64:!0,data:s}},be=(s,e)=>{switch(e){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}},we="",Ye=(s,e)=>{const t=s.length,i=new Array(t);let n=0;s.forEach((r,o)=>{G(r,!1,h=>{i[o]=h,++n===t&&e(i.join(we))})})},$e=(s,e)=>{const t=s.split(we),i=[];for(let n=0;n{const i=t.length;let n;if(i<126)n=new Uint8Array(1),new DataView(n.buffer).setUint8(0,i);else if(i<65536){n=new Uint8Array(3);const r=new DataView(n.buffer);r.setUint8(0,126),r.setUint16(1,i)}else{n=new Uint8Array(9);const r=new DataView(n.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(i))}s.data&&typeof s.data!="string"&&(n[0]|=128),e.enqueue(n),e.enqueue(t)})}})}let M;function S(s){return s.reduce((e,t)=>e+t.length,0)}function N(s,e){if(s[0].length===e)return s.shift();const t=new Uint8Array(e);let i=0;for(let n=0;nMath.pow(2,21)-1){h.enqueue(F);break}n=y*Math.pow(2,32)+b.getUint32(4),i=3}else{if(S(t)s){h.enqueue(F);break}}}})}const _e=4;function l(s){if(s)return ze(s)}function ze(s){for(var e in l.prototype)s[e]=l.prototype[e];return s}l.prototype.on=l.prototype.addEventListener=function(s,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(e),this};l.prototype.once=function(s,e){function t(){this.off(s,t),e.apply(this,arguments)}return t.fn=e,this.on(s,t),this};l.prototype.off=l.prototype.removeListener=l.prototype.removeAllListeners=l.prototype.removeEventListener=function(s,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+s];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var i,n=0;n(s.hasOwnProperty(i)&&(t[i]=s[i]),t),{})}const Ge=f.setTimeout,je=f.clearTimeout;function I(s,e){e.useNativeTimers?(s.setTimeoutFn=Ge.bind(f),s.clearTimeoutFn=je.bind(f)):(s.setTimeoutFn=f.setTimeout.bind(f),s.clearTimeoutFn=f.clearTimeout.bind(f))}const Je=1.33;function Xe(s){return typeof s=="string"?Qe(s):Math.ceil((s.byteLength||s.size)*Je)}function Qe(s){let e=0,t=0;for(let i=0,n=s.length;i=57344?t+=3:(i++,t+=4);return t}function Ze(s){let e="";for(let t in s)s.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(s[t]));return e}function et(s){let e={},t=s.split("&");for(let i=0,n=t.length;i0);return e}function ve(){const s=he(+new Date);return s!==ae?(ce=0,ae=s):s+"."+he(ce++)}for(;B{this.readyState="paused",e()};if(this.polling||!this.writable){let i=0;this.polling&&(i++,this.once("pollComplete",function(){--i||t()})),this.writable||(i++,this.once("drain",function(){--i||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};$e(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,Ye(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=ve()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new d(this.uri(),e)}doWrite(e,t){const i=this.request({method:"POST",data:e});i.on("success",t),i.on("error",(n,r)=>{this.onError("xhr post error",n,r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,i)=>{this.onError("xhr poll error",t,i)}),this.pollXhr=e}}class d extends l{constructor(e,t){super(),I(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=t.data!==void 0?t.data:null,this.create()}create(){var e;const t=Ae(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const i=this.xhr=new Ce(t);try{i.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let n in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(n)&&i.setRequestHeader(n,this.opts.extraHeaders[n])}}catch{}if(this.method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(i),"withCredentials"in i&&(i.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(i.timeout=this.opts.requestTimeout),i.onreadystatechange=()=>{var n;i.readyState===3&&((n=this.opts.cookieJar)===null||n===void 0||n.parseCookies(i)),i.readyState===4&&(i.status===200||i.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof i.status=="number"?i.status:0)},0))},i.send(this.data)}catch(n){this.setTimeoutFn(()=>{this.onError(n)},0);return}typeof document<"u"&&(this.index=d.requestsCount++,d.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=nt,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete d.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}d.requestsCount=0;d.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",le);else if(typeof addEventListener=="function"){const s="onpagehide"in f?"pagehide":"unload";addEventListener(s,le,!1)}}function le(){for(let s in d.requests)d.requests.hasOwnProperty(s)&&d.requests[s].abort()}const X=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),L=f.WebSocket||f.MozWebSocket,ue=!0,ct="arraybuffer",fe=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class at extends J{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,i=fe?{}:Ae(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=ue&&!fe?t?new L(e,t):new L(e):new L(e,t,i)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{const o={};try{ue&&this.ws.send(r)}catch{}n&&X(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=ve()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!L}}class ht extends J{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=Ke(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=e.readable.pipeThrough(t).getReader(),n=We();n.readable.pipeTo(e.writable),this.writer=n.writable.getWriter();const r=()=>{i.read().then(({done:h,value:a})=>{h||(this.onPacket(a),r())}).catch(h=>{})};r();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t{n&&X(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const lt={websocket:at,webtransport:ht,polling:ot},ut=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ft=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Y(s){if(s.length>2e3)throw"URI too long";const e=s,t=s.indexOf("["),i=s.indexOf("]");t!=-1&&i!=-1&&(s=s.substring(0,t)+s.substring(t,i).replace(/:/g,";")+s.substring(i,s.length));let n=ut.exec(s||""),r={},o=14;for(;o--;)r[ft[o]]=n[o]||"";return t!=-1&&i!=-1&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=pt(r,r.path),r.queryKey=dt(r,r.query),r}function pt(s,e){const t=/\/{2,9}/g,i=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&i.splice(0,1),e.slice(-1)=="/"&&i.splice(i.length-1,1),i}function dt(s,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,n,r){n&&(t[n]=r)}),t}let Oe=class v extends l{constructor(e,t={}){super(),this.binaryType=ct,this.writeBuffer=[],e&&typeof e=="object"&&(t=e,e=null),e?(e=Y(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=Y(t.host).host),I(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=et(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=_e,t.transport=e,this.id&&(t.sid=this.id);const i=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new lt[e](i)}open(){let e;if(this.opts.rememberUpgrade&&v.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",t=>this.onClose("transport close",t))}probe(e){let t=this.createTransport(e),i=!1;v.priorWebsocketSuccess=!1;const n=()=>{i||(t.send([{type:"ping",data:"probe"}]),t.once("packet",T=>{if(!i)if(T.type==="pong"&&T.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;v.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(y(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const C=new Error("probe error");C.transport=t.name,this.emitReserved("upgradeError",C)}}))};function r(){i||(i=!0,y(),t.close(),t=null)}const o=T=>{const C=new Error("probe error: "+T);C.transport=t.name,r(),this.emitReserved("upgradeError",C)};function h(){o("transport closed")}function a(){o("socket closed")}function b(T){t&&T.name!==t.name&&r()}const y=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",h),this.off("close",a),this.off("upgrading",b)};t.once("open",n),t.once("error",o),t.once("close",h),this.once("close",a),this.once("upgrading",b),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{i||t.open()},200):t.open()}onOpen(){if(this.readyState="open",v.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let i=0;i0&&t>this.maxPayload)return this.writeBuffer.slice(0,i);t+=2}return this.writeBuffer}write(e,t,i){return this.sendPacket("message",e,t,i),this}send(e,t,i){return this.sendPacket("message",e,t,i),this}sendPacket(e,t,i,n){if(typeof t=="function"&&(n=t,t=void 0),typeof i=="function"&&(n=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const r={type:e,data:t,options:i};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},i=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():e()}):this.upgrading?i():e()),this}onError(e){v.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let i=0;const n=e.length;for(;itypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,Re=Object.prototype.toString,Et=typeof Blob=="function"||typeof Blob<"u"&&Re.call(Blob)==="[object BlobConstructor]",bt=typeof File=="function"||typeof File<"u"&&Re.call(File)==="[object FileConstructor]";function Q(s){return yt&&(s instanceof ArrayBuffer||gt(s))||Et&&s instanceof Blob||bt&&s instanceof File}function P(s,e){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let t=0,i=s.length;t=0&&s.num{delete this.acks[e];for(let o=0;o{this.io.clearTimeoutFn(r),t.apply(this,[null,...o])}}emitWithAck(e,...t){const i=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((n,r)=>{t.push((o,h)=>i?o?r(o):n(h):n(o)),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((n,...r)=>i!==this._queue[0]?void 0:(n!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(n)):(this._queue.shift(),t&&t(null,...r)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:c.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case c.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case c.EVENT:case c.BINARY_EVENT:this.onevent(e);break;case c.ACK:case c.BINARY_ACK:this.onack(e);break;case c.DISCONNECT:this.ondisconnect();break;case c.CONNECT_ERROR:this.destroy();const i=new Error(e.data.message);i.data=e.data.data,this.emitReserved("connect_error",i);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const i of t)i.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let i=!1;return function(...n){i||(i=!0,t.packet({type:c.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:c.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let i=0;i0&&s.jitter<=1?s.jitter:0,this.attempts=0}k.prototype.duration=function(){var s=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*s);s=Math.floor(e*10)&1?s+t:s-t}return Math.min(s,this.max)|0};k.prototype.reset=function(){this.attempts=0};k.prototype.setMin=function(s){this.ms=s};k.prototype.setMax=function(s){this.max=s};k.prototype.setJitter=function(s){this.jitter=s};class K extends l{constructor(e,t){var i;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,I(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((i=t.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new k({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||Ct;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Oe(this.uri,this.opts);const t=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const n=p(t,"open",function(){i.onopen(),e&&e()}),r=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),e?e(h):this.maybeReconnectOnOpen()},o=p(t,"error",r);if(this._timeout!==!1){const h=this._timeout,a=this.setTimeoutFn(()=>{n(),r(new Error("timeout")),t.close()},h);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(p(e,"ping",this.onping.bind(this)),p(e,"data",this.ondata.bind(this)),p(e,"error",this.onerror.bind(this)),p(e,"close",this.onclose.bind(this)),p(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){X(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let i=this.nsps[e];return i?this._autoConnect&&!i.active&&i.connect():(i=new Se(this,e,t),this.nsps[e]=i),i}_destroy(e){const t=Object.keys(this.nsps);for(const i of t)if(this.nsps[i].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let i=0;ie()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(n=>{n?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",n)):e.onreconnect()}))},t);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const O={};function D(s,e){typeof s=="object"&&(e=s,s=void 0),e=e||{};const t=mt(s,e.path||"/socket.io"),i=t.source,n=t.id,r=t.path,o=O[n]&&r in O[n].nsps,h=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let a;return h?a=new K(i,e):(O[n]||(O[n]=new K(i,e)),a=O[n]),t.query&&!e.query&&(e.query=t.queryKey),a.socket(t.path,e)}Object.assign(D,{Manager:K,Socket:Se,io:D,connect:D});const Rt=["says"],Ne=me({process:null,media:null}),St=s=>z.set(Ne,e=>({...e,process:s})),Nt=s=>z.set(Ne,e=>({...e,media:s}));function Bt(s){return A.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...s,children:A.jsx("path",{fill:"currentColor",d:"M1 11h3v2H1v-2m3.9-7.5L3.5 4.9L5.6 7L7 5.6L4.9 3.5M13 1h-2v3h2V1m7 10v2h3v-2h-3M10 22c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-1h-4v1m9.1-18.5L17 5.6L18.4 7l2.1-2.1l-1.4-1.4M18 12c0 2.2-1.2 4.2-3 5.2V19c0 .6-.4 1-1 1h-4c-.6 0-1-.4-1-1v-1.8c-1.8-1-3-3-3-5.2c0-3.3 2.7-6 6-6s6 2.7 6 6m-2 0c0-2.21-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4s4-1.79 4-4Z"})})}function Lt(s){return A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 512 512",...s,children:A.jsx("path",{fill:"currentColor",d:"M512 0C460.22 3.56 96.44 38.2 71.01 287.61c-3.09 26.66-4.84 53.44-5.99 80.24l178.87-178.69c6.25-6.25 16.4-6.25 22.65 0s6.25 16.38 0 22.63L7.04 471.03c-9.38 9.37-9.38 24.57 0 33.94c9.38 9.37 24.59 9.37 33.98 0l57.13-57.07c42.09-.14 84.15-2.53 125.96-7.36c53.48-5.44 97.02-26.47 132.58-56.54H255.74l146.79-48.88c11.25-14.89 21.37-30.71 30.45-47.12h-81.14l106.54-53.21C500.29 132.86 510.19 26.26 512 0z"})})}function xt(s){return A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 22 22",...s,children:[A.jsx("path",{fill:"currentColor",d:"M6 6h11.17l1 1l-1 1H6V6zm12 10H6.83l-1-1l1-1H18v2z",opacity:".3"}),A.jsx("path",{fill:"currentColor",d:"M13 10h5l3-3l-3-3h-5V2h-2v2H4v6h7v2H6l-3 3l3 3h5v4h2v-4h7v-6h-7v-2zM6 6h11.17l1 1l-1 1H6V6zm12 10H6.83l-1-1l1-1H18v2z"})]})}const{ModelDataProvider:ns,getGlobalModelData:Pt,setGlobalModelData:Dt,useModelDataSelector:rs,ModelDataAtomProvider:os}=Ie();var u=(s=>(s.GATEWAY_CONNECT="GATEWAY_CONNECT",s.GATEWAY_DISCONNECT="GATEWAY_DISCONNECT",s.VISITOR_ONLINE="VISITOR_ONLINE",s.VISITOR_OFFLINE="VISITOR_OFFLINE",s.AUTH_FAILED="AUTH_FAILED",s.COMMENT_CREATE="COMMENT_CREATE",s.POST_CREATE="POST_CREATE",s.POST_UPDATE="POST_UPDATE",s.POST_DELETE="POST_DELETE",s.NOTE_CREATE="NOTE_CREATE",s.NOTE_UPDATE="NOTE_UPDATE",s.NOTE_DELETE="NOTE_DELETE",s.PAGE_UPDATED="PAGE_UPDATED",s.PAGE_UPDATE="PAGE_UPDATE",s.SAY_CREATE="SAY_CREATE",s.SAY_DELETE="SAY_DELETE",s.SAY_UPDATE="SAY_UPDATE",s.DANMAKU_CREATE="DANMAKU_CREATE",s.RECENTLY_CREATE="RECENTLY_CREATE",s.RECENTLY_DELETE="RECENTLY_DELETE",s))(u||{});const E=()=>{document.dispatchEvent(new CustomEvent("impression",{detail:{action:De.Impression,label:"Socket Realtime Event"}}))},It=(s,e,t)=>{switch(s){case u.VISITOR_ONLINE:case u.VISITOR_OFFLINE:{const{online:i}=e;Le(i);break}case u.POST_UPDATE:{const i=e,n=ie();if(!n||n.id!==i.id)break;Ue(r=>{const o={...e};Reflect.deleteProperty(o,"category"),Object.assign(r,o)}),g("文章已更新"),E(),n.text!==i.text&&document.dispatchEvent(new CustomEvent(V.RefreshToc));break}case u.POST_DELETE:{const i=e;location.pathname===w(_.Post,{category:i.category.slug,slug:i.slug})&&ie()?.id===i.id&&(t.replace(w(_.PageDeletd,{})),g.error("文章已删除"),E());break}case u.NOTE_UPDATE:{const i=e,n=se()?.data;if(!n||n.id!==i.id)break;qe(r=>{Object.assign(r.data,i)}),g("手记已更新"),E(),n.text!==i.text&&document.dispatchEvent(new CustomEvent(V.RefreshToc));break}case u.NOTE_DELETE:{const i=e;location.pathname===w(_.Note,{id:i.id})&&se()?.data.id===i.id&&(t.replace(w(_.PageDeletd,{})),g.error("手记已删除"),E());break}case u.PAGE_UPDATED:case u.PAGE_UPDATE:{const{slug:i}=e;Pt()?.slug===i&&(Dt(n=>{Object.assign(n,e)}),g("页面已更新"),E());break}case u.NOTE_CREATE:{const{title:i,nid:n}=e;g.success(`有新的内容发布了:「${i}」`,{onClick:()=>{window.peek(`/notes/${n}`)},iconElement:q.createElement(Lt),autoClose:!1}),E();break}case u.POST_CREATE:{const{title:i,category:n,slug:r}=e;g.success(`有新的内容发布了:「${i}」`,{onClick:()=>{window.peek(`/posts/${n.slug}/${r}`)},iconElement:q.createElement(xt)}),E();break}case u.RECENTLY_CREATE:{E(),location.pathname===w(_.Thinking,{})||g.success(`写下一点小思考: +${e.content}`,{autoClose:1e4,iconElement:q.createElement(Bt),onClick:()=>{t.push(w(_.Thinking,{}))}});break}case u.SAY_CREATE:{location.pathname===w(_.Says,{})&&(E(),Be.setQueryData(Rt,i=>Pe(i,n=>{n?.pages?.[0].data.unshift(e)})));break}case"fn#media-update":{Nt(e);break}case"fn#ps-update":{const i=e.processInfo;St(i);break}case"shiro#update":{g.info("站点版本已更新,请刷新页面",{onClick:()=>{location.reload()}});break}}},qt=me(!1),de=s=>{z.set(qt,s)};class ee{constructor(){const e=xe.replace(/\/$/,"");this.socket=D(`${e}/web`,{timeout:1e4,reconnectionDelay:3e3,autoConnect:!1,reconnectionAttempts:3,transports:["websocket"]})}setRouter(e){this.router=e}initIO(){this.socket&&(this.socket.on("connect",()=>{de(!0)}),this.socket.on("disconnect",()=>{de(!1)}),this.socket.close(),this.socket.open(),this.socket.on("message",e=>{if(typeof e!="string")return this.handleEvent(e.type,te(e.data));const{data:t,type:i}=JSON.parse(e);this.handleEvent(i,te(t))}))}reconnect(){this.socket.open()}handleEvent(e,t){window.dispatchEvent(new CustomEvent(e,{detail:t})),It(e,t,this.router)}emit(e,t){return new Promise(i=>{this.socket&&this.socket.connected&&this.socket.emit(e,t,n=>{i(n)})})}static{this.shared=new ee}}const cs=ee.shared;export{cs as socketClient}; diff --git a/assets/index-mx_ZhLz2.js b/assets/index-mx_ZhLz2.js new file mode 100644 index 00000000000..3d4bea54352 --- /dev/null +++ b/assets/index-mx_ZhLz2.js @@ -0,0 +1,3 @@ +import{r as a,j as r,R as v}from"./index-qegmBwH1.js";import{u as N}from"./useQuery-44y7CkOR.js";import{p as z}from"./index-D4F-WjWJ.js";import{a as R}from"./main-1J4Kkp7S.js";import{J as L,b as S}from"./owner-4YVbz2PN.js";import{t as T}from"./toast-qMk_Ov--.js";import{u as O}from"./use-is-dark-13kBJDHw.js";import{s as y}from"./dom-NuJWIaAq.js";import{s as E,c as _}from"./helper-0r91fNX5.js";import{c as U}from"./lodash-Y39_oLIE.js";import{M as A}from"./StyledButton-Mj8l6PeD.js";import{a as B}from"./provider-jumr72cx.js";const b=a.forwardRef((i,s)=>{const{data:o,...l}=i,c=a.useMemo(()=>{if(!o)return{};const u=E(o);if(u)return{data:u};{const m=o.split(` +`),n=m[0],d=m.slice(1).join(` +`),t={};return n.startsWith("http")?t.refUrl=n:n.startsWith("ref:")&&(t.refUrl=`${L}/objects/${n.slice(4)}`),d.trim().length>0&&(t.patchDiffDelta=E(d)),t}},[o]),f=a.useRef(null);return a.useImperativeHandle(s,()=>({getRefData(){return f.current?.getRemoteData()},getDiffDelta(){return c.patchDiffDelta}})),r.jsx(w,{ref:f,...l,...c})});b.displayName="Excalidraw";const w=a.forwardRef(({data:i,refUrl:s,patchDiffDelta:o,viewModeEnabled:l=!0,zenModeEnabled:c=!0,onChange:f,className:u,showExtendButton:m=!0,onReady:n},d)=>{const t=v.useRef(),I=B(),P=S(),{data:p,isLoading:x}=N({queryKey:["excalidraw",s],queryFn:async({queryKey:e})=>{const[D,g]=e;return await(await fetch(g)).json()},enabled:!!s});a.useImperativeHandle(d,()=>({getRemoteData(){return p}}));const h=a.useMemo(()=>p?z(U(p),o):null,[p,s]),M=O(),k=a.useMemo(()=>{const e=i||h;return!e&&!x&&console.error("Excalidraw: data not exist"),e},[i,h,x]);return r.jsxs("div",{onKeyDown:y,onKeyUp:y,className:_("relative h-[500px] w-full",u),children:[x&&r.jsx("div",{className:"absolute inset-0 z-[10] flex center",children:r.jsx("div",{className:"loading loading-spinner"})}),r.jsx(R.Excalidraw,{theme:M?"dark":"light",initialData:k,detectScroll:!1,zenModeEnabled:c,onChange:f,viewModeEnabled:l,excalidrawAPI:e=>{t.current=e,setTimeout(()=>{e.scrollToContent(void 0,{fitToContent:!0})},1e3),n?.(e)}},s?`excalidraw-refData-loading-${x}`:"excalidraw"),l&&m&&r.jsx(A,{onClick:()=>{if(!t.current){T.error("Excalidraw API not ready");return}const e=t.current.getSceneElements();if(P){const D=window.open();R.exportToBlob({elements:e,files:null}).then(j=>{D?.location.replace(URL.createObjectURL(j))})}else I.present({title:"Preview",content:()=>r.jsx(w,{data:i,className:"h-full",showExtendButton:!1}),clickOutsideToDismiss:!0,max:!0})},className:_("absolute bottom-2 right-2 z-10 box-content flex h-5 w-5 rounded-md border p-2 center","border-zinc-200 bg-base-100 text-zinc-600","dark:border-neutral-800 dark:text-zinc-500"),children:r.jsx("i",{className:"icon-[mingcute--external-link-line]"})})]})});w.displayName="ExcalidrawImpl";const Y=Object.freeze(Object.defineProperty({__proto__:null,Excalidraw:b},Symbol.toStringTag,{value:"Module"})),Z=Object.freeze(Object.defineProperty({__proto__:null,Excalidraw:b},Symbol.toStringTag,{value:"Module"}));export{b as E,Y as a,Z as i}; diff --git a/assets/index-qegmBwH1.js b/assets/index-qegmBwH1.js new file mode 100644 index 00000000000..685e8cb2a40 --- /dev/null +++ b/assets/index-qegmBwH1.js @@ -0,0 +1,118 @@ +function nf(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();var o1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lf={exports:{}},Qo={},of={exports:{}},Q={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var El=Symbol.for("react.element"),mh=Symbol.for("react.portal"),gh=Symbol.for("react.fragment"),vh=Symbol.for("react.strict_mode"),yh=Symbol.for("react.profiler"),wh=Symbol.for("react.provider"),kh=Symbol.for("react.context"),xh=Symbol.for("react.forward_ref"),Sh=Symbol.for("react.suspense"),Eh=Symbol.for("react.memo"),Ch=Symbol.for("react.lazy"),ku=Symbol.iterator;function _h(e){return e===null||typeof e!="object"?null:(e=ku&&e[ku]||e["@@iterator"],typeof e=="function"?e:null)}var af={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sf=Object.assign,uf={};function kr(e,t,n){this.props=e,this.context=t,this.refs=uf,this.updater=n||af}kr.prototype.isReactComponent={};kr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};kr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cf(){}cf.prototype=kr.prototype;function qa(e,t,n){this.props=e,this.context=t,this.refs=uf,this.updater=n||af}var es=qa.prototype=new cf;es.constructor=qa;sf(es,kr.prototype);es.isPureReactComponent=!0;var xu=Array.isArray,ff=Object.prototype.hasOwnProperty,ts={current:null},df={key:!0,ref:!0,__self:!0,__source:!0};function pf(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)ff.call(t,r)&&!df.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1>>1,ne=z[X];if(0>>1;Xl(st,b))Oel(Bt,st)?(z[X]=Bt,z[Oe]=b,X=Oe):(z[X]=st,z[Re]=b,X=Re);else if(Oel(Bt,b))z[X]=Bt,z[Oe]=b,X=Oe;else break e}}return F}function l(z,F){var b=z.sortIndex-F.sortIndex;return b!==0?b:z.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var s=[],u=[],c=1,d=null,f=3,y=!1,k=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(z){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=z)r(u),F.sortIndex=F.expirationTime,t(s,F);else break;F=n(u)}}function E(z){if(x=!1,g(z),!k)if(n(s)!==null)k=!0,bt(T);else{var F=n(u);F!==null&&oe(E,F.startTime-z)}}function T(z,F){k=!1,x&&(x=!1,h(L),L=-1),y=!0;var b=f;try{for(g(F),d=n(s);d!==null&&(!(d.expirationTime>F)||z&&!V());){var X=d.callback;if(typeof X=="function"){d.callback=null,f=d.priorityLevel;var ne=X(d.expirationTime<=F);F=e.unstable_now(),typeof ne=="function"?d.callback=ne:d===n(s)&&r(s),g(F)}else r(s);d=n(s)}if(d!==null)var vt=!0;else{var Re=n(u);Re!==null&&oe(E,Re.startTime-F),vt=!1}return vt}finally{d=null,f=b,y=!1}}var v=!1,R=null,L=-1,$=5,M=-1;function V(){return!(e.unstable_now()-M<$)}function ge(){if(R!==null){var z=e.unstable_now();M=z;var F=!0;try{F=R(!0,z)}finally{F?ve():(v=!1,R=null)}}else v=!1}var ve;if(typeof p=="function")ve=function(){p(ge)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,Un=qe.port2;qe.port1.onmessage=ge,ve=function(){Un.postMessage(null)}}else ve=function(){C(ge,0)};function bt(z){R=z,v||(v=!0,ve())}function oe(z,F){L=C(function(){z(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_continueExecution=function(){k||y||(k=!0,bt(T))},e.unstable_forceFrameRate=function(z){0>z||125X?(z.sortIndex=b,t(u,z),n(s)===null&&z===n(u)&&(x?(h(L),L=-1):x=!0,oe(E,b-X))):(z.sortIndex=ne,t(s,z),k||y||(k=!0,bt(T))),z},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(z){var F=f;return function(){var b=f;f=F;try{return z.apply(this,arguments)}finally{f=b}}}})(yf);vf.exports=yf;var Ah=vf.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var wf=m,Ze=Ah;function P(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zi=Object.prototype.hasOwnProperty,jh=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Eu={},Cu={};function Fh(e){return Zi.call(Cu,e)?!0:Zi.call(Eu,e)?!1:jh.test(e)?Cu[e]=!0:(Eu[e]=!0,!1)}function Uh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function bh(e,t,n,r){if(t===null||typeof t>"u"||Uh(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fe(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var $e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$e[e]=new Fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];$e[t]=new Fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$e[e]=new Fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$e[e]=new Fe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){$e[e]=new Fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$e[e]=new Fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$e[e]=new Fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$e[e]=new Fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$e[e]=new Fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var rs=/[\-:]([a-z])/g;function ls(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(rs,ls);$e[t]=new Fe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(rs,ls);$e[t]=new Fe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(rs,ls);$e[t]=new Fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$e[e]=new Fe(e,1,!1,e.toLowerCase(),null,!1,!1)});$e.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$e[e]=new Fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function os(e,t,n,r){var l=$e.hasOwnProperty(t)?$e[t]:null;(l!==null?l.type!==0:r||!(2a||l[i]!==o[a]){var s=` +`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=a);break}}}finally{xi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Br(e):""}function Bh(e){switch(e.tag){case 5:return Br(e.type);case 16:return Br("Lazy");case 13:return Br("Suspense");case 19:return Br("SuspenseList");case 0:case 2:case 15:return e=Si(e.type,!1),e;case 11:return e=Si(e.type.render,!1),e;case 1:return e=Si(e.type,!0),e;default:return""}}function ea(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Qn:return"Fragment";case Wn:return"Portal";case Gi:return"Profiler";case is:return"StrictMode";case Ji:return"Suspense";case qi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Sf:return(e.displayName||"Context")+".Consumer";case xf:return(e._context.displayName||"Context")+".Provider";case as:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ss:return t=e.displayName||null,t!==null?t:ea(e.type)||"Memo";case Yt:t=e._payload,e=e._init;try{return ea(e(t))}catch{}}return null}function Vh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ea(t);case 8:return t===is?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function un(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Cf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Hh(e){var t=Cf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jl(e){e._valueTracker||(e._valueTracker=Hh(e))}function _f(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Cf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function vo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ta(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ru(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=un(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Rf(e,t){t=t.checked,t!=null&&os(e,"checked",t,!1)}function na(e,t){Rf(e,t);var n=un(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ra(e,t.type,n):t.hasOwnProperty("defaultValue")&&ra(e,t.type,un(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ra(e,t,n){(t!=="number"||vo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vr=Array.isArray;function or(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Fl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ol(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Wh=["Webkit","ms","Moz","O"];Object.keys(Qr).forEach(function(e){Wh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qr[t]=Qr[e]})});function $f(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qr.hasOwnProperty(e)&&Qr[e]?(""+t).trim():t+"px"}function Nf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=$f(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Qh=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ia(e,t){if(t){if(Qh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function aa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sa=null;function us(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ua=null,ir=null,ar=null;function $u(e){if(e=Rl(e)){if(typeof ua!="function")throw Error(P(280));var t=e.stateNode;t&&(t=Go(t),ua(e.stateNode,e.type,t))}}function zf(e){ir?ar?ar.push(e):ar=[e]:ir=e}function Df(){if(ir){var e=ir,t=ar;if(ar=ir=null,$u(e),t)for(e=0;e>>=0,e===0?32:31-(rm(e)/lm|0)|0}var Ul=64,bl=4194304;function Hr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~l;a!==0?r=Hr(a):(o&=i,o!==0&&(r=Hr(o)))}else i=n&~l,i!==0?r=Hr(i):o!==0&&(r=Hr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Cl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ht(t),e[t]=n}function sm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Yr),Fu=" ",Uu=!1;function qf(e,t){switch(e){case"keyup":return Im.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ed(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kn=!1;function jm(e,t){switch(e){case"compositionend":return ed(t);case"keypress":return t.which!==32?null:(Uu=!0,Fu);case"textInput":return e=t.data,e===Fu&&Uu?null:e;default:return null}}function Fm(e,t){if(Kn)return e==="compositionend"||!vs&&qf(e,t)?(e=Gf(),io=hs=Jt=null,Kn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Hu(n)}}function ld(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ld(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function od(){for(var e=window,t=vo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vo(e.document)}return t}function ys(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ym(e){var t=od(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ld(n.ownerDocument.documentElement,n)){if(r!==null&&ys(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Wu(n,o);var i=Wu(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Yn=null,ma=null,Zr=null,ga=!1;function Qu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ga||Yn==null||Yn!==vo(r)||(r=Yn,"selectionStart"in r&&ys(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Zr&&fl(Zr,r)||(Zr=r,r=Co(ma,"onSelect"),0Gn||(e.current=Sa[Gn],Sa[Gn]=null,Gn--)}function te(e,t){Gn++,Sa[Gn]=e.current,e.current=t}var cn={},Me=pn(cn),Be=pn(!1),Ln=cn;function dr(e,t){var n=e.type.contextTypes;if(!n)return cn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ve(e){return e=e.childContextTypes,e!=null}function Ro(){le(Be),le(Me)}function qu(e,t,n){if(Me.current!==cn)throw Error(P(168));te(Me,t),te(Be,n)}function hd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(P(108,Vh(e)||"Unknown",l));return ce({},n,r)}function Po(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cn,Ln=Me.current,te(Me,e),te(Be,Be.current),!0}function ec(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=hd(e,t,Ln),r.__reactInternalMemoizedMergedChildContext=e,le(Be),le(Me),te(Me,e)):le(Be),te(Be,n)}var Lt=null,Jo=!1,Ii=!1;function md(e){Lt===null?Lt=[e]:Lt.push(e)}function ig(e){Jo=!0,md(e)}function hn(){if(!Ii&&Lt!==null){Ii=!0;var e=0,t=G;try{var n=Lt;for(G=1;e>=i,l-=i,$t=1<<32-ht(t)+l|n<L?($=R,R=null):$=R.sibling;var M=f(h,R,g[L],E);if(M===null){R===null&&(R=$);break}e&&R&&M.alternate===null&&t(h,R),p=o(M,p,L),v===null?T=M:v.sibling=M,v=M,R=$}if(L===g.length)return n(h,R),ae&&wn(h,L),T;if(R===null){for(;LL?($=R,R=null):$=R.sibling;var V=f(h,R,M.value,E);if(V===null){R===null&&(R=$);break}e&&R&&V.alternate===null&&t(h,R),p=o(V,p,L),v===null?T=V:v.sibling=V,v=V,R=$}if(M.done)return n(h,R),ae&&wn(h,L),T;if(R===null){for(;!M.done;L++,M=g.next())M=d(h,M.value,E),M!==null&&(p=o(M,p,L),v===null?T=M:v.sibling=M,v=M);return ae&&wn(h,L),T}for(R=r(h,R);!M.done;L++,M=g.next())M=y(R,h,L,M.value,E),M!==null&&(e&&M.alternate!==null&&R.delete(M.key===null?L:M.key),p=o(M,p,L),v===null?T=M:v.sibling=M,v=M);return e&&R.forEach(function(ge){return t(h,ge)}),ae&&wn(h,L),T}function C(h,p,g,E){if(typeof g=="object"&&g!==null&&g.type===Qn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Al:e:{for(var T=g.key,v=p;v!==null;){if(v.key===T){if(T=g.type,T===Qn){if(v.tag===7){n(h,v.sibling),p=l(v,g.props.children),p.return=h,h=p;break e}}else if(v.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Yt&&ac(T)===v.type){n(h,v.sibling),p=l(v,g.props),p.ref=Dr(h,v,g),p.return=h,h=p;break e}n(h,v);break}else t(h,v);v=v.sibling}g.type===Qn?(p=Tn(g.props.children,h.mode,E,g.key),p.return=h,h=p):(E=mo(g.type,g.key,g.props,null,h.mode,E),E.ref=Dr(h,p,g),E.return=h,h=E)}return i(h);case Wn:e:{for(v=g.key;p!==null;){if(p.key===v)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(h,p.sibling),p=l(p,g.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=Hi(g,h.mode,E),p.return=h,h=p}return i(h);case Yt:return v=g._init,C(h,p,v(g._payload),E)}if(Vr(g))return k(h,p,g,E);if(Tr(g))return x(h,p,g,E);Yl(h,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(h,p.sibling),p=l(p,g),p.return=h,h=p):(n(h,p),p=Vi(g,h.mode,E),p.return=h,h=p),i(h)):n(h,p)}return C}var hr=Ed(!0),Cd=Ed(!1),Pl={},_t=pn(Pl),ml=pn(Pl),gl=pn(Pl);function Cn(e){if(e===Pl)throw Error(P(174));return e}function Ps(e,t){switch(te(gl,t),te(ml,e),te(_t,Pl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:oa(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=oa(t,e)}le(_t),te(_t,t)}function mr(){le(_t),le(ml),le(gl)}function _d(e){Cn(gl.current);var t=Cn(_t.current),n=oa(t,e.type);t!==n&&(te(ml,e),te(_t,n))}function Ts(e){ml.current===e&&(le(_t),le(ml))}var se=pn(0);function Do(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ai=[];function Ls(){for(var e=0;en?n:4,e(!0);var r=ji.transition;ji.transition={};try{e(!1),t()}finally{G=n,ji.transition=r}}function bd(){return at().memoizedState}function cg(e,t,n){var r=an(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Bd(e))Vd(t,n);else if(n=wd(e,t,n,r),n!==null){var l=Ae();mt(n,e,r,l),Hd(n,t,r)}}function fg(e,t,n){var r=an(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bd(e))Vd(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,n);if(l.hasEagerState=!0,l.eagerState=a,gt(a,i)){var s=t.interleaved;s===null?(l.next=l,_s(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=wd(e,t,l,r),n!==null&&(l=Ae(),mt(n,e,r,l),Hd(n,t,r))}}function Bd(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function Vd(e,t){Gr=Mo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fs(e,n)}}var Oo={readContext:it,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},dg={readContext:it,useCallback:function(e,t){return kt().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:uc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,co(4194308,4,Id.bind(null,t,e),n)},useLayoutEffect:function(e,t){return co(4194308,4,e,t)},useInsertionEffect:function(e,t){return co(4,2,e,t)},useMemo:function(e,t){var n=kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=kt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=cg.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=kt();return e={current:e},t.memoizedState=e},useState:sc,useDebugValue:Ms,useDeferredValue:function(e){return kt().memoizedState=e},useTransition:function(){var e=sc(!1),t=e[0];return e=ug.bind(null,e[1]),kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,l=kt();if(ae){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),_e===null)throw Error(P(349));Nn&30||Td(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,uc($d.bind(null,r,o,e),[e]),r.flags|=2048,wl(9,Ld.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=kt(),t=_e.identifierPrefix;if(ae){var n=Nt,r=$t;n=(r&~(1<<32-ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=vl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[xt]=t,e[hl]=r,qd(e,t,!1,!1),t.stateNode=e;e:{switch(i=aa(n,r),n){case"dialog":re("cancel",e),re("close",e),l=r;break;case"iframe":case"object":case"embed":re("load",e),l=r;break;case"video":case"audio":for(l=0;lvr&&(t.flags|=128,r=!0,Mr(o,!1),t.lanes=4194304)}else{if(!r)if(e=Do(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!ae)return ze(t),null}else 2*me()-o.renderingStartTime>vr&&n!==1073741824&&(t.flags|=128,r=!0,Mr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=me(),t.sibling=null,n=se.current,te(se,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return Us(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qe&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function kg(e,t){switch(ks(t),t.tag){case 1:return Ve(t.type)&&Ro(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mr(),le(Be),le(Me),Ls(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ts(t),null;case 13:if(le(se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(se),null;case 4:return mr(),null;case 10:return Cs(t.type._context),null;case 22:case 23:return Us(),null;case 24:return null;default:return null}}var Zl=!1,De=!1,xg=typeof WeakSet=="function"?WeakSet:Set,D=null;function tr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){de(e,t,r)}else n.current=null}function Ma(e,t,n){try{n()}catch(r){de(e,t,r)}}var yc=!1;function Sg(e,t){if(va=So,e=od(),ys(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,a=-1,s=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var y;d!==n||l!==0&&d.nodeType!==3||(a=i+l),d!==o||r!==0&&d.nodeType!==3||(s=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++u===l&&(a=i),f===o&&++c===r&&(s=i),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ya={focusedElem:e,selectionRange:n},So=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var k=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var x=k.memoizedProps,C=k.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?x:ct(t.type,x),C);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(E){de(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return k=yc,yc=!1,k}function Jr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Ma(t,n,o)}l=l.next}while(l!==r)}}function ti(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Oa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function np(e){var t=e.alternate;t!==null&&(e.alternate=null,np(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xt],delete t[hl],delete t[xa],delete t[lg],delete t[og])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rp(e){return e.tag===5||e.tag===3||e.tag===4}function wc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ia(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_o));else if(r!==4&&(e=e.child,e!==null))for(Ia(e,t,n),e=e.sibling;e!==null;)Ia(e,t,n),e=e.sibling}function Aa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Aa(e,t,n),e=e.sibling;e!==null;)Aa(e,t,n),e=e.sibling}var Te=null,ft=!1;function Qt(e,t,n){for(n=n.child;n!==null;)lp(e,t,n),n=n.sibling}function lp(e,t,n){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(Ko,n)}catch{}switch(n.tag){case 5:De||tr(n,t);case 6:var r=Te,l=ft;Te=null,Qt(e,t,n),Te=r,ft=l,Te!==null&&(ft?(e=Te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Te.removeChild(n.stateNode));break;case 18:Te!==null&&(ft?(e=Te,n=n.stateNode,e.nodeType===8?Oi(e.parentNode,n):e.nodeType===1&&Oi(e,n),ul(e)):Oi(Te,n.stateNode));break;case 4:r=Te,l=ft,Te=n.stateNode.containerInfo,ft=!0,Qt(e,t,n),Te=r,ft=l;break;case 0:case 11:case 14:case 15:if(!De&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Ma(n,t,i),l=l.next}while(l!==r)}Qt(e,t,n);break;case 1:if(!De&&(tr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){de(n,t,a)}Qt(e,t,n);break;case 21:Qt(e,t,n);break;case 22:n.mode&1?(De=(r=De)||n.memoizedState!==null,Qt(e,t,n),De=r):Qt(e,t,n);break;default:Qt(e,t,n)}}function kc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xg),t.forEach(function(r){var l=Ng.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function ut(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cg(r/1960))-r,10e?16:e,qt===null)var r=!1;else{if(e=qt,qt=null,jo=0,Y&6)throw Error(P(331));var l=Y;for(Y|=4,D=e.current;D!==null;){var o=D,i=o.child;if(D.flags&16){var a=o.deletions;if(a!==null){for(var s=0;sme()-js?Pn(e,0):As|=n),He(e,t)}function dp(e,t){t===0&&(e.mode&1?(t=bl,bl<<=1,!(bl&130023424)&&(bl=4194304)):t=1);var n=Ae();e=It(e,t),e!==null&&(Cl(e,t,n),He(e,n))}function $g(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),dp(e,n)}function Ng(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(t),dp(e,n)}var pp;pp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Be.current)be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return be=!1,yg(e,t,n);be=!!(e.flags&131072)}else be=!1,ae&&t.flags&1048576&&gd(t,Lo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;fo(e,t),e=t.pendingProps;var l=dr(t,Me.current);ur(t,n),l=Ns(null,t,r,e,l,n);var o=zs();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ve(r)?(o=!0,Po(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Rs(t),l.updater=qo,t.stateNode=l,l._reactInternals=t,Pa(t,r,e,n),t=$a(null,t,r,!0,o,n)):(t.tag=0,ae&&o&&ws(t),Ie(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(fo(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Dg(r),e=ct(r,e),l){case 0:t=La(null,t,r,e,n);break e;case 1:t=mc(null,t,r,e,n);break e;case 11:t=pc(null,t,r,e,n);break e;case 14:t=hc(null,t,r,ct(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ct(r,l),La(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ct(r,l),mc(e,t,r,l,n);case 3:e:{if(Zd(t),e===null)throw Error(P(387));r=t.pendingProps,o=t.memoizedState,l=o.element,kd(e,t),zo(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=gr(Error(P(423)),t),t=gc(e,t,r,n,l);break e}else if(r!==l){l=gr(Error(P(424)),t),t=gc(e,t,r,n,l);break e}else for(Ye=rn(t.stateNode.containerInfo.firstChild),Xe=t,ae=!0,pt=null,n=Cd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pr(),r===l){t=At(e,t,n);break e}Ie(e,t,r,n)}t=t.child}return t;case 5:return _d(t),e===null&&Ca(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,wa(r,l)?i=null:o!==null&&wa(r,o)&&(t.flags|=32),Xd(e,t),Ie(e,t,i,n),t.child;case 6:return e===null&&Ca(t),null;case 13:return Gd(e,t,n);case 4:return Ps(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hr(t,null,r,n):Ie(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ct(r,l),pc(e,t,r,l,n);case 7:return Ie(e,t,t.pendingProps,n),t.child;case 8:return Ie(e,t,t.pendingProps.children,n),t.child;case 12:return Ie(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,te($o,r._currentValue),r._currentValue=i,o!==null)if(gt(o.value,i)){if(o.children===l.children&&!Be.current){t=At(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=zt(-1,n&-n),s.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),_a(o.return,n,t),a.lanes|=n;break}s=s.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(P(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),_a(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Ie(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,ur(t,n),l=it(l),r=r(l),t.flags|=1,Ie(e,t,r,n),t.child;case 14:return r=t.type,l=ct(r,t.pendingProps),l=ct(r.type,l),hc(e,t,r,l,n);case 15:return Kd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ct(r,l),fo(e,t),t.tag=1,Ve(r)?(e=!0,Po(t)):e=!1,ur(t,n),Sd(t,r,l),Pa(t,r,l,n),$a(null,t,r,!0,e,n);case 19:return Jd(e,t,n);case 22:return Yd(e,t,n)}throw Error(P(156,t.tag))};function hp(e,t){return Uf(e,t)}function zg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lt(e,t,n,r){return new zg(e,t,n,r)}function Bs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dg(e){if(typeof e=="function")return Bs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===as)return 11;if(e===ss)return 14}return 2}function sn(e,t){var n=e.alternate;return n===null?(n=lt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function mo(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Bs(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Qn:return Tn(n.children,l,o,t);case is:i=8,l|=8;break;case Gi:return e=lt(12,n,t,l|2),e.elementType=Gi,e.lanes=o,e;case Ji:return e=lt(13,n,t,l),e.elementType=Ji,e.lanes=o,e;case qi:return e=lt(19,n,t,l),e.elementType=qi,e.lanes=o,e;case Ef:return ri(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xf:i=10;break e;case Sf:i=9;break e;case as:i=11;break e;case ss:i=14;break e;case Yt:i=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=lt(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Tn(e,t,n,r){return e=lt(7,e,r,t),e.lanes=n,e}function ri(e,t,n,r){return e=lt(22,e,r,t),e.elementType=Ef,e.lanes=n,e.stateNode={isHidden:!1},e}function Vi(e,t,n){return e=lt(6,e,null,t),e.lanes=n,e}function Hi(e,t,n){return t=lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Mg(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ci(0),this.expirationTimes=Ci(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ci(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Vs(e,t,n,r,l,o,i,a,s){return e=new Mg(e,t,n,a,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=lt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rs(o),e}function Og(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yp)}catch(e){console.error(e)}}yp(),gf.exports=Ge;var si=gf.exports;const Ug=rf(si),bg=nf({__proto__:null,default:Ug},[si]);var Tc=si;Xi.createRoot=Tc.createRoot,Xi.hydrateRoot=Tc.hydrateRoot;/** + * @remix-run/router v1.15.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function fn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Vg(){return Math.random().toString(36).substr(2,8)}function $c(e,t){return{usr:e.state,key:e.key,idx:t}}function xl(e,t,n,r){return n===void 0&&(n=null),pe({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Rt(t):t,{state:n,key:t&&t.key||r||Vg()})}function Mn(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Rt(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Hg(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,a=he.Pop,s=null,u=c();u==null&&(u=0,i.replaceState(pe({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function d(){a=he.Pop;let C=c(),h=C==null?null:C-u;u=C,s&&s({action:a,location:x.location,delta:h})}function f(C,h){a=he.Push;let p=xl(x.location,C,h);n&&n(p,C),u=c()+1;let g=$c(p,u),E=x.createHref(p);try{i.pushState(g,"",E)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;l.location.assign(E)}o&&s&&s({action:a,location:x.location,delta:1})}function y(C,h){a=he.Replace;let p=xl(x.location,C,h);n&&n(p,C),u=c();let g=$c(p,u),E=x.createHref(p);i.replaceState(g,"",E),o&&s&&s({action:a,location:x.location,delta:0})}function k(C){let h=l.location.origin!=="null"?l.location.origin:l.location.href,p=typeof C=="string"?C:Mn(C);return H(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let x={get action(){return a},get location(){return e(l,i)},listen(C){if(s)throw new Error("A history only accepts one active listener");return l.addEventListener(Lc,d),s=C,()=>{l.removeEventListener(Lc,d),s=null}},createHref(C){return t(l,C)},createURL:k,encodeLocation(C){let h=k(C);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:f,replace:y,go(C){return i.go(C)}};return x}var fe;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(fe||(fe={}));const Wg=new Set(["lazy","caseSensitive","path","id","index","children"]);function Qg(e){return e.index===!0}function Ba(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((l,o)=>{let i=[...n,o],a=typeof l.id=="string"?l.id:i.join("-");if(H(l.index!==!0||!l.children,"Cannot specify children on an index route"),H(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),Qg(l)){let s=pe({},l,t(l),{id:a});return r[a]=s,s}else{let s=pe({},l,t(l),{id:a,children:void 0});return r[a]=s,l.children&&(s.children=Ba(l.children,t,i,r)),s}})}function rr(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Rt(t):t,l=jn(r.pathname||"/",n);if(l==null)return null;let o=kp(e);Kg(o);let i=null;for(let a=0;i==null&&a{let s={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};s.relativePath.startsWith("/")&&(H(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=Dt([r,s.relativePath]),c=n.concat(s);o.children&&o.children.length>0&&(H(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),kp(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:ev(u,o.index),routesMeta:c})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))l(o,i);else for(let s of xp(o.path))l(o,i,s)}),t}function xp(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=xp(r.join("/")),a=[];return a.push(...i.map(s=>s===""?o:[o,s].join("/"))),l&&a.push(...i),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function Kg(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:tv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Yg=/^:[\w-]+$/,Xg=3,Zg=2,Gg=1,Jg=10,qg=-2,Nc=e=>e==="*";function ev(e,t){let n=e.split("/"),r=n.length;return n.some(Nc)&&(r+=qg),t&&(r+=Zg),n.filter(l=>!Nc(l)).reduce((l,o)=>l+(Yg.test(o)?Xg:o===""?Gg:Jg),r)}function tv(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function nv(e,t){let{routesMeta:n}=e,r={},l="/",o=[];for(let i=0;i{let{paramName:f,isOptional:y}=c;if(f==="*"){let x=a[d]||"";i=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const k=a[d];return y&&!k?u[f]=void 0:u[f]=iv(k||"",f),u},{}),pathname:o,pathnameBase:i,pattern:e}}function lv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),fn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,s)=>(r.push({paramName:a,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function ov(e){try{return decodeURI(e)}catch(t){return fn(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function iv(e,t){try{return decodeURIComponent(e)}catch(n){return fn(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function jn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function av(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Rt(e):e;return{pathname:n?n.startsWith("/")?n:sv(n,t):t,search:cv(r),hash:fv(l)}}function sv(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function Wi(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Sp(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ks(e,t){let n=Sp(e);return t?n.map((r,l)=>l===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Ys(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=Rt(e):(l=pe({},e),H(!l.pathname||!l.pathname.includes("?"),Wi("?","pathname","search",l)),H(!l.pathname||!l.pathname.includes("#"),Wi("#","pathname","hash",l)),H(!l.search||!l.search.includes("#"),Wi("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,a;if(i==null)a=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;l.pathname=f.join("/")}a=d>=0?t[d]:"/"}let s=av(l,a),u=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const Dt=e=>e.join("/").replace(/\/\/+/g,"/"),uv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),cv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Xs{constructor(t,n,r,l){l===void 0&&(l=!1),this.status=t,this.statusText=n||"",this.internal=l,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Ep(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Cp=["post","put","patch","delete"],dv=new Set(Cp),pv=["get",...Cp],hv=new Set(pv),mv=new Set([301,302,303,307,308]),gv=new Set([307,308]),Qi={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},vv={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ir={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},_p=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yv=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Rp="remix-router-transitions";function wv(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;H(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l;if(e.mapRouteProperties)l=e.mapRouteProperties;else if(e.detectErrorBoundary){let w=e.detectErrorBoundary;l=S=>({hasErrorBoundary:w(S)})}else l=yv;let o={},i=Ba(e.routes,l,void 0,o),a,s=e.basename||"/",u=pe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,d=new Set,f=null,y=null,k=null,x=e.hydrationData!=null,C=rr(i,e.history.location,s),h=null;if(C==null){let w=tt(404,{pathname:e.history.location.pathname}),{matches:S,route:_}=Fc(i);C=S,h={[_.id]:w}}let p,g=C.some(w=>w.route.lazy),E=C.some(w=>w.route.loader);if(g)p=!1;else if(!E)p=!0;else if(u.v7_partialHydration){let w=e.hydrationData?e.hydrationData.loaderData:null,S=e.hydrationData?e.hydrationData.errors:null;p=C.every(_=>_.route.loader&&_.route.loader.hydrate!==!0&&(w&&w[_.route.id]!==void 0||S&&S[_.route.id]!==void 0))}else p=e.hydrationData!=null;let T,v={historyAction:e.history.action,location:e.history.location,matches:C,initialized:p,navigation:Qi,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||h,fetchers:new Map,blockers:new Map},R=he.Pop,L=!1,$,M=!1,V=new Map,ge=null,ve=!1,qe=!1,Un=[],bt=[],oe=new Map,z=0,F=-1,b=new Map,X=new Set,ne=new Map,vt=new Map,Re=new Set,st=new Map,Oe=new Map,Bt=!1;function eh(){if(c=e.history.listen(w=>{let{action:S,location:_,delta:N}=w;if(Bt){Bt=!1;return}fn(Oe.size===0||N!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let O=vu({currentLocation:v.location,nextLocation:_,historyAction:S});if(O&&N!=null){Bt=!0,e.history.go(N*-1),Dl(O,{state:"blocked",location:_,proceed(){Dl(O,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),e.history.go(N)},reset(){let W=new Map(v.blockers);W.set(O,Ir),We({blockers:W})}});return}return vn(S,_)}),n){$v(t,V);let w=()=>Nv(t,V);t.addEventListener("pagehide",w),ge=()=>t.removeEventListener("pagehide",w)}return v.initialized||vn(he.Pop,v.location,{initialHydration:!0}),T}function th(){c&&c(),ge&&ge(),d.clear(),$&&$.abort(),v.fetchers.forEach((w,S)=>zl(S)),v.blockers.forEach((w,S)=>gu(S))}function nh(w){return d.add(w),()=>d.delete(w)}function We(w,S){S===void 0&&(S={}),v=pe({},v,w);let _=[],N=[];u.v7_fetcherPersist&&v.fetchers.forEach((O,W)=>{O.state==="idle"&&(Re.has(W)?N.push(W):_.push(W))}),[...d].forEach(O=>O(v,{deletedFetchers:N,unstable_viewTransitionOpts:S.viewTransitionOpts,unstable_flushSync:S.flushSync===!0})),u.v7_fetcherPersist&&(_.forEach(O=>v.fetchers.delete(O)),N.forEach(O=>zl(O)))}function _r(w,S,_){var N,O;let{flushSync:W}=_===void 0?{}:_,U=v.actionData!=null&&v.navigation.formMethod!=null&&dt(v.navigation.formMethod)&&v.navigation.state==="loading"&&((N=w.state)==null?void 0:N._isRedirect)!==!0,j;S.actionData?Object.keys(S.actionData).length>0?j=S.actionData:j=null:U?j=v.actionData:j=null;let I=S.loaderData?jc(v.loaderData,S.loaderData,S.matches||[],S.errors):v.loaderData,K=v.blockers;K.size>0&&(K=new Map(K),K.forEach((ee,Pe)=>K.set(Pe,Ir)));let Se=L===!0||v.navigation.formMethod!=null&&dt(v.navigation.formMethod)&&((O=w.state)==null?void 0:O._isRedirect)!==!0;a&&(i=a,a=void 0),ve||R===he.Pop||(R===he.Push?e.history.push(w,w.state):R===he.Replace&&e.history.replace(w,w.state));let B;if(R===he.Pop){let ee=V.get(v.location.pathname);ee&&ee.has(w.pathname)?B={currentLocation:v.location,nextLocation:w}:V.has(w.pathname)&&(B={currentLocation:w,nextLocation:v.location})}else if(M){let ee=V.get(v.location.pathname);ee?ee.add(w.pathname):(ee=new Set([w.pathname]),V.set(v.location.pathname,ee)),B={currentLocation:v.location,nextLocation:w}}We(pe({},S,{actionData:j,loaderData:I,historyAction:R,location:w,initialized:!0,navigation:Qi,revalidation:"idle",restoreScrollPosition:wu(w,S.matches||v.matches),preventScrollReset:Se,blockers:K}),{viewTransitionOpts:B,flushSync:W===!0}),R=he.Pop,L=!1,M=!1,ve=!1,qe=!1,Un=[],bt=[]}async function cu(w,S){if(typeof w=="number"){e.history.go(w);return}let _=Va(v.location,v.matches,s,u.v7_prependBasename,w,u.v7_relativeSplatPath,S?.fromRouteId,S?.relative),{path:N,submission:O,error:W}=zc(u.v7_normalizeFormMethod,!1,_,S),U=v.location,j=xl(v.location,N,S&&S.state);j=pe({},j,e.history.encodeLocation(j));let I=S&&S.replace!=null?S.replace:void 0,K=he.Push;I===!0?K=he.Replace:I===!1||O!=null&&dt(O.formMethod)&&O.formAction===v.location.pathname+v.location.search&&(K=he.Replace);let Se=S&&"preventScrollReset"in S?S.preventScrollReset===!0:void 0,B=(S&&S.unstable_flushSync)===!0,ee=vu({currentLocation:U,nextLocation:j,historyAction:K});if(ee){Dl(ee,{state:"blocked",location:j,proceed(){Dl(ee,{state:"proceeding",proceed:void 0,reset:void 0,location:j}),cu(w,S)},reset(){let Pe=new Map(v.blockers);Pe.set(ee,Ir),We({blockers:Pe})}});return}return await vn(K,j,{submission:O,pendingError:W,preventScrollReset:Se,replace:S&&S.replace,enableViewTransition:S&&S.unstable_viewTransition,flushSync:B})}function rh(){if(pi(),We({revalidation:"loading"}),v.navigation.state!=="submitting"){if(v.navigation.state==="idle"){vn(v.historyAction,v.location,{startUninterruptedRevalidation:!0});return}vn(R||v.historyAction,v.navigation.location,{overrideNavigation:v.navigation})}}async function vn(w,S,_){$&&$.abort(),$=null,R=w,ve=(_&&_.startUninterruptedRevalidation)===!0,dh(v.location,v.matches),L=(_&&_.preventScrollReset)===!0,M=(_&&_.enableViewTransition)===!0;let N=a||i,O=_&&_.overrideNavigation,W=rr(N,S,s),U=(_&&_.flushSync)===!0;if(!W){let Pe=tt(404,{pathname:S.pathname}),{matches:et,route:Ee}=Fc(N);hi(),_r(S,{matches:et,loaderData:{},errors:{[Ee.id]:Pe}},{flushSync:U});return}if(v.initialized&&!qe&&Cv(v.location,S)&&!(_&&_.submission&&dt(_.submission.formMethod))){_r(S,{matches:W},{flushSync:U});return}$=new AbortController;let j=jr(e.history,S,$.signal,_&&_.submission),I,K;if(_&&_.pendingError)K={[tl(W).route.id]:_.pendingError};else if(_&&_.submission&&dt(_.submission.formMethod)){let Pe=await lh(j,S,_.submission,W,{replace:_.replace,flushSync:U});if(Pe.shortCircuited)return;I=Pe.pendingActionData,K=Pe.pendingActionError,O=Ki(S,_.submission),U=!1,j=new Request(j.url,{signal:j.signal})}let{shortCircuited:Se,loaderData:B,errors:ee}=await oh(j,S,W,O,_&&_.submission,_&&_.fetcherSubmission,_&&_.replace,_&&_.initialHydration===!0,U,I,K);Se||($=null,_r(S,pe({matches:W},I?{actionData:I}:{},{loaderData:B,errors:ee})))}async function lh(w,S,_,N,O){O===void 0&&(O={}),pi();let W=Tv(S,_);We({navigation:W},{flushSync:O.flushSync===!0});let U,j=Wa(N,S);if(!j.route.action&&!j.route.lazy)U={type:fe.error,error:tt(405,{method:w.method,pathname:S.pathname,routeId:j.route.id})};else if(U=await Ar("action",w,j,N,o,l,s,u.v7_relativeSplatPath),w.signal.aborted)return{shortCircuited:!0};if(Rn(U)){let I;return O&&O.replace!=null?I=O.replace:I=U.location===v.location.pathname+v.location.search,await Rr(v,U,{submission:_,replace:I}),{shortCircuited:!0}}if(lr(U)){let I=tl(N,j.route.id);return(O&&O.replace)!==!0&&(R=he.Push),{pendingActionData:{},pendingActionError:{[I.route.id]:U.error}}}if(_n(U))throw tt(400,{type:"defer-action"});return{pendingActionData:{[j.route.id]:U.data}}}async function oh(w,S,_,N,O,W,U,j,I,K,Se){let B=N||Ki(S,O),ee=O||W||Bc(B),Pe=a||i,[et,Ee]=Dc(e.history,v,_,ee,S,u.v7_partialHydration&&j===!0,qe,Un,bt,Re,ne,X,Pe,s,K,Se);if(hi(q=>!(_&&_.some(ie=>ie.route.id===q))||et&&et.some(ie=>ie.route.id===q)),F=++z,et.length===0&&Ee.length===0){let q=hu();return _r(S,pe({matches:_,loaderData:{},errors:Se||null},K?{actionData:K}:{},q?{fetchers:new Map(v.fetchers)}:{}),{flushSync:I}),{shortCircuited:!0}}if(!ve&&(!u.v7_partialHydration||!j)){Ee.forEach(ie=>{let yt=v.fetchers.get(ie.key),Ol=Fr(void 0,yt?yt.data:void 0);v.fetchers.set(ie.key,Ol)});let q=K||v.actionData;We(pe({navigation:B},q?Object.keys(q).length===0?{actionData:null}:{actionData:q}:{},Ee.length>0?{fetchers:new Map(v.fetchers)}:{}),{flushSync:I})}Ee.forEach(q=>{oe.has(q.key)&&Ht(q.key),q.controller&&oe.set(q.key,q.controller)});let bn=()=>Ee.forEach(q=>Ht(q.key));$&&$.signal.addEventListener("abort",bn);let{results:mi,loaderResults:Bn,fetcherResults:Wt}=await fu(v.matches,_,et,Ee,w);if(w.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",bn),Ee.forEach(q=>oe.delete(q.key));let yn=Uc(mi);if(yn){if(yn.idx>=et.length){let q=Ee[yn.idx-et.length].key;X.add(q)}return await Rr(v,yn.result,{replace:U}),{shortCircuited:!0}}let{loaderData:gi,errors:vi}=Ac(v,_,et,Bn,Se,Ee,Wt,st);st.forEach((q,ie)=>{q.subscribe(yt=>{(yt||q.done)&&st.delete(ie)})});let yi=hu(),Vn=mu(F),Ml=yi||Vn||Ee.length>0;return pe({loaderData:gi,errors:vi},Ml?{fetchers:new Map(v.fetchers)}:{})}function ih(w,S,_,N){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");oe.has(w)&&Ht(w);let O=(N&&N.unstable_flushSync)===!0,W=a||i,U=Va(v.location,v.matches,s,u.v7_prependBasename,_,u.v7_relativeSplatPath,S,N?.relative),j=rr(W,U,s);if(!j){Pr(w,S,tt(404,{pathname:U}),{flushSync:O});return}let{path:I,submission:K,error:Se}=zc(u.v7_normalizeFormMethod,!0,U,N);if(Se){Pr(w,S,Se,{flushSync:O});return}let B=Wa(j,I);if(L=(N&&N.preventScrollReset)===!0,K&&dt(K.formMethod)){ah(w,S,I,B,j,O,K);return}ne.set(w,{routeId:S,path:I}),sh(w,S,I,B,j,O,K)}async function ah(w,S,_,N,O,W,U){if(pi(),ne.delete(w),!N.route.action&&!N.route.lazy){let ie=tt(405,{method:U.formMethod,pathname:_,routeId:S});Pr(w,S,ie,{flushSync:W});return}let j=v.fetchers.get(w);Vt(w,Lv(U,j),{flushSync:W});let I=new AbortController,K=jr(e.history,_,I.signal,U);oe.set(w,I);let Se=z,B=await Ar("action",K,N,O,o,l,s,u.v7_relativeSplatPath);if(K.signal.aborted){oe.get(w)===I&&oe.delete(w);return}if(u.v7_fetcherPersist&&Re.has(w)){if(Rn(B)||lr(B)){Vt(w,Kt(void 0));return}}else{if(Rn(B))if(oe.delete(w),F>Se){Vt(w,Kt(void 0));return}else return X.add(w),Vt(w,Fr(U)),Rr(v,B,{fetcherSubmission:U});if(lr(B)){Pr(w,S,B.error);return}}if(_n(B))throw tt(400,{type:"defer-action"});let ee=v.navigation.location||v.location,Pe=jr(e.history,ee,I.signal),et=a||i,Ee=v.navigation.state!=="idle"?rr(et,v.navigation.location,s):v.matches;H(Ee,"Didn't find any matches after fetcher action");let bn=++z;b.set(w,bn);let mi=Fr(U,B.data);v.fetchers.set(w,mi);let[Bn,Wt]=Dc(e.history,v,Ee,U,ee,!1,qe,Un,bt,Re,ne,X,et,s,{[N.route.id]:B.data},void 0);Wt.filter(ie=>ie.key!==w).forEach(ie=>{let yt=ie.key,Ol=v.fetchers.get(yt),hh=Fr(void 0,Ol?Ol.data:void 0);v.fetchers.set(yt,hh),oe.has(yt)&&Ht(yt),ie.controller&&oe.set(yt,ie.controller)}),We({fetchers:new Map(v.fetchers)});let yn=()=>Wt.forEach(ie=>Ht(ie.key));I.signal.addEventListener("abort",yn);let{results:gi,loaderResults:vi,fetcherResults:yi}=await fu(v.matches,Ee,Bn,Wt,Pe);if(I.signal.aborted)return;I.signal.removeEventListener("abort",yn),b.delete(w),oe.delete(w),Wt.forEach(ie=>oe.delete(ie.key));let Vn=Uc(gi);if(Vn){if(Vn.idx>=Bn.length){let ie=Wt[Vn.idx-Bn.length].key;X.add(ie)}return Rr(v,Vn.result)}let{loaderData:Ml,errors:q}=Ac(v,v.matches,Bn,vi,void 0,Wt,yi,st);if(v.fetchers.has(w)){let ie=Kt(B.data);v.fetchers.set(w,ie)}mu(bn),v.navigation.state==="loading"&&bn>F?(H(R,"Expected pending action"),$&&$.abort(),_r(v.navigation.location,{matches:Ee,loaderData:Ml,errors:q,fetchers:new Map(v.fetchers)})):(We({errors:q,loaderData:jc(v.loaderData,Ml,Ee,q),fetchers:new Map(v.fetchers)}),qe=!1)}async function sh(w,S,_,N,O,W,U){let j=v.fetchers.get(w);Vt(w,Fr(U,j?j.data:void 0),{flushSync:W});let I=new AbortController,K=jr(e.history,_,I.signal);oe.set(w,I);let Se=z,B=await Ar("loader",K,N,O,o,l,s,u.v7_relativeSplatPath);if(_n(B)&&(B=await Lp(B,K.signal,!0)||B),oe.get(w)===I&&oe.delete(w),!K.signal.aborted){if(Re.has(w)){Vt(w,Kt(void 0));return}if(Rn(B))if(F>Se){Vt(w,Kt(void 0));return}else{X.add(w),await Rr(v,B);return}if(lr(B)){Pr(w,S,B.error);return}H(!_n(B),"Unhandled fetcher deferred data"),Vt(w,Kt(B.data))}}async function Rr(w,S,_){let{submission:N,fetcherSubmission:O,replace:W}=_===void 0?{}:_;S.revalidate&&(qe=!0);let U=xl(w.location,S.location,{_isRedirect:!0});if(H(U,"Expected a location on the redirect navigation"),n){let ee=!1;if(S.reloadDocument)ee=!0;else if(_p.test(S.location)){const Pe=e.history.createURL(S.location);ee=Pe.origin!==t.location.origin||jn(Pe.pathname,s)==null}if(ee){W?t.location.replace(S.location):t.location.assign(S.location);return}}$=null;let j=W===!0?he.Replace:he.Push,{formMethod:I,formAction:K,formEncType:Se}=w.navigation;!N&&!O&&I&&K&&Se&&(N=Bc(w.navigation));let B=N||O;if(gv.has(S.status)&&B&&dt(B.formMethod))await vn(j,U,{submission:pe({},B,{formAction:S.location}),preventScrollReset:L});else{let ee=Ki(U,N);await vn(j,U,{overrideNavigation:ee,fetcherSubmission:O,preventScrollReset:L})}}async function fu(w,S,_,N,O){let W=await Promise.all([..._.map(I=>Ar("loader",O,I,S,o,l,s,u.v7_relativeSplatPath)),...N.map(I=>I.matches&&I.match&&I.controller?Ar("loader",jr(e.history,I.path,I.controller.signal),I.match,I.matches,o,l,s,u.v7_relativeSplatPath):{type:fe.error,error:tt(404,{pathname:I.path})})]),U=W.slice(0,_.length),j=W.slice(_.length);return await Promise.all([bc(w,_,U,U.map(()=>O.signal),!1,v.loaderData),bc(w,N.map(I=>I.match),j,N.map(I=>I.controller?I.controller.signal:null),!0)]),{results:W,loaderResults:U,fetcherResults:j}}function pi(){qe=!0,Un.push(...hi()),ne.forEach((w,S)=>{oe.has(S)&&(bt.push(S),Ht(S))})}function Vt(w,S,_){_===void 0&&(_={}),v.fetchers.set(w,S),We({fetchers:new Map(v.fetchers)},{flushSync:(_&&_.flushSync)===!0})}function Pr(w,S,_,N){N===void 0&&(N={});let O=tl(v.matches,S);zl(w),We({errors:{[O.route.id]:_},fetchers:new Map(v.fetchers)},{flushSync:(N&&N.flushSync)===!0})}function du(w){return u.v7_fetcherPersist&&(vt.set(w,(vt.get(w)||0)+1),Re.has(w)&&Re.delete(w)),v.fetchers.get(w)||vv}function zl(w){let S=v.fetchers.get(w);oe.has(w)&&!(S&&S.state==="loading"&&b.has(w))&&Ht(w),ne.delete(w),b.delete(w),X.delete(w),Re.delete(w),v.fetchers.delete(w)}function uh(w){if(u.v7_fetcherPersist){let S=(vt.get(w)||0)-1;S<=0?(vt.delete(w),Re.add(w)):vt.set(w,S)}else zl(w);We({fetchers:new Map(v.fetchers)})}function Ht(w){let S=oe.get(w);H(S,"Expected fetch controller: "+w),S.abort(),oe.delete(w)}function pu(w){for(let S of w){let _=du(S),N=Kt(_.data);v.fetchers.set(S,N)}}function hu(){let w=[],S=!1;for(let _ of X){let N=v.fetchers.get(_);H(N,"Expected fetcher: "+_),N.state==="loading"&&(X.delete(_),w.push(_),S=!0)}return pu(w),S}function mu(w){let S=[];for(let[_,N]of b)if(N0}function ch(w,S){let _=v.blockers.get(w)||Ir;return Oe.get(w)!==S&&Oe.set(w,S),_}function gu(w){v.blockers.delete(w),Oe.delete(w)}function Dl(w,S){let _=v.blockers.get(w)||Ir;H(_.state==="unblocked"&&S.state==="blocked"||_.state==="blocked"&&S.state==="blocked"||_.state==="blocked"&&S.state==="proceeding"||_.state==="blocked"&&S.state==="unblocked"||_.state==="proceeding"&&S.state==="unblocked","Invalid blocker state transition: "+_.state+" -> "+S.state);let N=new Map(v.blockers);N.set(w,S),We({blockers:N})}function vu(w){let{currentLocation:S,nextLocation:_,historyAction:N}=w;if(Oe.size===0)return;Oe.size>1&&fn(!1,"A router only supports one blocker at a time");let O=Array.from(Oe.entries()),[W,U]=O[O.length-1],j=v.blockers.get(W);if(!(j&&j.state==="proceeding")&&U({currentLocation:S,nextLocation:_,historyAction:N}))return W}function hi(w){let S=[];return st.forEach((_,N)=>{(!w||w(N))&&(_.cancel(),S.push(N),st.delete(N))}),S}function fh(w,S,_){if(f=w,k=S,y=_||null,!x&&v.navigation===Qi){x=!0;let N=wu(v.location,v.matches);N!=null&&We({restoreScrollPosition:N})}return()=>{f=null,k=null,y=null}}function yu(w,S){return y&&y(w,S.map(N=>wp(N,v.loaderData)))||w.key}function dh(w,S){if(f&&k){let _=yu(w,S);f[_]=k()}}function wu(w,S){if(f){let _=yu(w,S),N=f[_];if(typeof N=="number")return N}return null}function ph(w){o={},a=Ba(w,l,void 0,o)}return T={get basename(){return s},get future(){return u},get state(){return v},get routes(){return i},get window(){return t},initialize:eh,subscribe:nh,enableScrollRestoration:fh,navigate:cu,fetch:ih,revalidate:rh,createHref:w=>e.history.createHref(w),encodeLocation:w=>e.history.encodeLocation(w),getFetcher:du,deleteFetcher:uh,dispose:th,getBlocker:ch,deleteBlocker:gu,_internalFetchControllers:oe,_internalActiveDeferreds:st,_internalSetRoutes:ph},T}function kv(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Va(e,t,n,r,l,o,i,a){let s,u;if(i){s=[];for(let d of t)if(s.push(d),d.route.id===i){u=d;break}}else s=t,u=t[t.length-1];let c=Ys(l||".",Ks(s,o),jn(e.pathname,n)||e.pathname,a==="path");return l==null&&(c.search=e.search,c.hash=e.hash),(l==null||l===""||l===".")&&u&&u.route.index&&!Zs(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Dt([n,c.pathname])),Mn(c)}function zc(e,t,n,r){if(!r||!kv(r))return{path:n};if(r.formMethod&&!Pv(r.formMethod))return{path:n,error:tt(405,{method:r.formMethod})};let l=()=>({path:n,error:tt(400,{type:"invalid-body"})}),o=r.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),a=Tp(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!dt(i))return l();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,k)=>{let[x,C]=k;return""+y+x+"="+C+` +`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!dt(i))return l();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:a,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return l()}}}H(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=Ha(r.formData),u=r.formData;else if(r.body instanceof FormData)s=Ha(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=Ic(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=Ic(s)}catch{return l()}let c={formMethod:i,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(dt(c.formMethod))return{path:n,submission:c};let d=Rt(n);return t&&d.search&&Zs(d.search)&&s.append("index",""),d.search="?"+s,{path:Mn(d),submission:c}}function xv(e,t){let n=e;if(t){let r=e.findIndex(l=>l.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Dc(e,t,n,r,l,o,i,a,s,u,c,d,f,y,k,x){let C=x?Object.values(x)[0]:k?Object.values(k)[0]:void 0,h=e.createURL(t.location),p=e.createURL(l),g=x?Object.keys(x)[0]:void 0,T=xv(n,g).filter((R,L)=>{let{route:$}=R;if($.lazy)return!0;if($.loader==null)return!1;if(o)return $.loader.hydrate?!0:t.loaderData[$.id]===void 0&&(!t.errors||t.errors[$.id]===void 0);if(Sv(t.loaderData,t.matches[L],R)||a.some(ge=>ge===R.route.id))return!0;let M=t.matches[L],V=R;return Mc(R,pe({currentUrl:h,currentParams:M.params,nextUrl:p,nextParams:V.params},r,{actionResult:C,defaultShouldRevalidate:i||h.pathname+h.search===p.pathname+p.search||h.search!==p.search||Pp(M,V)}))}),v=[];return c.forEach((R,L)=>{if(o||!n.some(ve=>ve.route.id===R.routeId)||u.has(L))return;let $=rr(f,R.path,y);if(!$){v.push({key:L,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let M=t.fetchers.get(L),V=Wa($,R.path),ge=!1;d.has(L)?ge=!1:s.includes(L)?ge=!0:M&&M.state!=="idle"&&M.data===void 0?ge=i:ge=Mc(V,pe({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:n[n.length-1].params},r,{actionResult:C,defaultShouldRevalidate:i})),ge&&v.push({key:L,routeId:R.routeId,path:R.path,matches:$,match:V,controller:new AbortController})}),[T,v]}function Sv(e,t,n){let r=!t||n.route.id!==t.route.id,l=e[n.route.id]===void 0;return r||l}function Pp(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Mc(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Oc(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let l=n[e.id];H(l,"No route found in manifest");let o={};for(let i in r){let s=l[i]!==void 0&&i!=="hasErrorBoundary";fn(!s,'Route "'+l.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!s&&!Wg.has(i)&&(o[i]=r[i])}Object.assign(l,o),Object.assign(l,pe({},t(l),{lazy:void 0}))}async function Ar(e,t,n,r,l,o,i,a,s){s===void 0&&(s={});let u,c,d,f=x=>{let C,h=new Promise((p,g)=>C=g);return d=()=>C(),t.signal.addEventListener("abort",d),Promise.race([x({request:t,params:n.params,context:s.requestContext}),h])};try{let x=n.route[e];if(n.route.lazy)if(x){let C,h=await Promise.all([f(x).catch(p=>{C=p}),Oc(n.route,o,l)]);if(C)throw C;c=h[0]}else if(await Oc(n.route,o,l),x=n.route[e],x)c=await f(x);else if(e==="action"){let C=new URL(t.url),h=C.pathname+C.search;throw tt(405,{method:t.method,pathname:h,routeId:n.route.id})}else return{type:fe.data,data:void 0};else if(x)c=await f(x);else{let C=new URL(t.url),h=C.pathname+C.search;throw tt(404,{pathname:h})}H(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(x){u=fe.error,c=x}finally{d&&t.signal.removeEventListener("abort",d)}if(Rv(c)){let x=c.status;if(mv.has(x)){let h=c.headers.get("Location");if(H(h,"Redirects returned/thrown from loaders/actions must have a Location header"),!_p.test(h))h=Va(new URL(t.url),r.slice(0,r.indexOf(n)+1),i,!0,h,a);else if(!s.isStaticRequest){let p=new URL(t.url),g=h.startsWith("//")?new URL(p.protocol+h):new URL(h),E=jn(g.pathname,i)!=null;g.origin===p.origin&&E&&(h=g.pathname+g.search+g.hash)}if(s.isStaticRequest)throw c.headers.set("Location",h),c;return{type:fe.redirect,status:x,location:h,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:u===fe.error?fe.error:fe.data,response:c};let C;try{let h=c.headers.get("Content-Type");h&&/\bapplication\/json\b/.test(h)?c.body==null?C=null:C=await c.json():C=await c.text()}catch(h){return{type:fe.error,error:h}}return u===fe.error?{type:u,error:new Xs(x,c.statusText,C),headers:c.headers}:{type:fe.data,data:C,statusCode:c.status,headers:c.headers}}if(u===fe.error)return{type:u,error:c};if(_v(c)){var y,k;return{type:fe.deferred,deferredData:c,statusCode:(y=c.init)==null?void 0:y.status,headers:((k=c.init)==null?void 0:k.headers)&&new Headers(c.init.headers)}}return{type:fe.data,data:c}}function jr(e,t,n,r){let l=e.createURL(Tp(t)).toString(),o={signal:n};if(r&&dt(r.formMethod)){let{formMethod:i,formEncType:a}=r;o.method=i.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=Ha(r.formData):o.body=r.formData}return new Request(l,o)}function Ha(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Ic(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ev(e,t,n,r,l){let o={},i=null,a,s=!1,u={};return n.forEach((c,d)=>{let f=t[d].route.id;if(H(!Rn(c),"Cannot handle redirect results in processLoaderData"),lr(c)){let y=tl(e,f),k=c.error;r&&(k=Object.values(r)[0],r=void 0),i=i||{},i[y.route.id]==null&&(i[y.route.id]=k),o[f]=void 0,s||(s=!0,a=Ep(c.error)?c.error.status:500),c.headers&&(u[f]=c.headers)}else _n(c)?(l.set(f,c.deferredData),o[f]=c.deferredData.data):o[f]=c.data,c.statusCode!=null&&c.statusCode!==200&&!s&&(a=c.statusCode),c.headers&&(u[f]=c.headers)}),r&&(i=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:i,statusCode:a||200,loaderHeaders:u}}function Ac(e,t,n,r,l,o,i,a){let{loaderData:s,errors:u}=Ev(t,n,r,l,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Fc(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function tt(e,t){let{pathname:n,routeId:r,method:l,type:o}=t===void 0?{}:t,i="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(i="Bad Request",l&&n&&r?a="You made a "+l+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?a="defer() is not supported in actions":o==="invalid-body"&&(a="Unable to encode submission body")):e===403?(i="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(i="Not Found",a='No route matches URL "'+n+'"'):e===405&&(i="Method Not Allowed",l&&n&&r?a="You made a "+l.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":l&&(a='Invalid request method "'+l.toUpperCase()+'"')),new Xs(e||500,i,new Error(a),!0)}function Uc(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Rn(n))return{result:n,idx:t}}}function Tp(e){let t=typeof e=="string"?Rt(e):e;return Mn(pe({},t,{hash:""}))}function Cv(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function _n(e){return e.type===fe.deferred}function lr(e){return e.type===fe.error}function Rn(e){return(e&&e.type)===fe.redirect}function _v(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Rv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Pv(e){return hv.has(e.toLowerCase())}function dt(e){return dv.has(e.toLowerCase())}async function bc(e,t,n,r,l,o){for(let i=0;id.route.id===s.route.id),c=u!=null&&!Pp(u,s)&&(o&&o[s.route.id])!==void 0;if(_n(a)&&(l||c)){let d=r[i];H(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await Lp(a,d,l).then(f=>{f&&(n[i]=f||n[i])})}}}async function Lp(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:fe.data,data:e.deferredData.unwrappedData}}catch(l){return{type:fe.error,error:l}}return{type:fe.data,data:e.deferredData.data}}}function Zs(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Wa(e,t){let n=typeof t=="string"?Rt(t).search:t.search;if(e[e.length-1].route.index&&Zs(n||""))return e[e.length-1];let r=Sp(e);return r[r.length-1]}function Bc(e){let{formMethod:t,formAction:n,formEncType:r,text:l,formData:o,json:i}=e;if(!(!t||!n||!r)){if(l!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:l};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function Ki(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Tv(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Fr(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Lv(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Kt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function $v(e,t){try{let n=e.sessionStorage.getItem(Rp);if(n){let r=JSON.parse(n);for(let[l,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(l,new Set(o||[]))}}catch{}}function Nv(e,t){if(t.size>0){let n={};for(let[r,l]of t)n[r]=[...l];try{e.sessionStorage.setItem(Rp,JSON.stringify(n))}catch(r){fn(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + * React Router v6.22.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Sl(){return Sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),m.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=Ys(u,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Dt([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,i,o,e])}const Ov=m.createContext(null);function Iv(e){let t=m.useContext(gn).outlet;return t&&m.createElement(Ov.Provider,{value:e},t)}function zp(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(mn),{matches:l}=m.useContext(gn),{pathname:o}=Er(),i=JSON.stringify(Ks(l,r.v7_relativeSplatPath));return m.useMemo(()=>Ys(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Av(e,t,n,r){Ll()||H(!1);let{navigator:l}=m.useContext(mn),{matches:o}=m.useContext(gn),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let u=Er(),c;if(t){var d;let C=typeof t=="string"?Rt(t):t;s==="/"||(d=C.pathname)!=null&&d.startsWith(s)||H(!1),c=C}else c=u;let f=c.pathname||"/",y=s==="/"?f:f.slice(s.length)||"/",k=rr(e,{pathname:y}),x=Bv(k&&k.map(C=>Object.assign({},C,{params:Object.assign({},a,C.params),pathname:Dt([s,l.encodeLocation?l.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?s:Dt([s,l.encodeLocation?l.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,n,r);return t&&x?m.createElement(ui.Provider,{value:{location:Sl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:he.Pop}},x):x}function jv(){let e=Kv(),t=Ep(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:l},n):null,null)}const Fv=m.createElement(jv,null);class Uv extends m.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?m.createElement(gn.Provider,{value:this.props.routeContext},m.createElement($p.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function bv(e){let{routeContext:t,match:n,children:r}=e,l=m.useContext(Tl);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(gn.Provider,{value:t},r)}function Bv(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,a=(l=n)==null?void 0:l.errors;if(a!=null){let c=i.findIndex(d=>d.route.id&&a?.[d.route.id]);c>=0||H(!1),i=i.slice(0,Math.min(i.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((c,d,f)=>{let y,k=!1,x=null,C=null;n&&(y=a&&d.route.id?a[d.route.id]:void 0,x=d.route.errorElement||Fv,s&&(u<0&&f===0?(Xv("route-fallback",!1),k=!0,C=null):u===f&&(k=!0,C=d.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,f+1)),p=()=>{let g;return y?g=x:k?g=C:d.route.Component?g=m.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=c,m.createElement(bv,{match:d,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?m.createElement(Uv,{location:n.location,revalidation:n.revalidation,component:x,error:y,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var Dp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Dp||{}),yr=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(yr||{});function Vv(e){let t=m.useContext(Tl);return t||H(!1),t}function Js(e){let t=m.useContext(Gs);return t||H(!1),t}function Hv(e){let t=m.useContext(gn);return t||H(!1),t}function Mp(e){let t=Hv(),n=t.matches[t.matches.length-1];return n.route.id||H(!1),n.route.id}function Wv(){return Js(yr.UseNavigation).navigation}function Qv(){let{matches:e,loaderData:t}=Js(yr.UseMatches);return m.useMemo(()=>e.map(n=>wp(n,t)),[e,t])}function Kv(){var e;let t=m.useContext($p),n=Js(yr.UseRouteError),r=Mp(yr.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Yv(){let{router:e}=Vv(Dp.UseNavigateStable),t=Mp(yr.UseNavigateStable),n=m.useRef(!1);return Np(()=>{n.current=!0}),m.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Sl({fromRouteId:t},o)))},[e,t])}const Vc={};function Xv(e,t,n){!t&&!Vc[e]&&(Vc[e]=!0)}function Zv(e){return Iv(e.context)}function Gv(e){let{basename:t="/",children:n=null,location:r,navigationType:l=he.Pop,navigator:o,static:i=!1,future:a}=e;Ll()&&H(!1);let s=t.replace(/^\/*/,"/"),u=m.useMemo(()=>({basename:s,navigator:o,static:i,future:Sl({v7_relativeSplatPath:!1},a)}),[s,a,o,i]);typeof r=="string"&&(r=Rt(r));let{pathname:c="/",search:d="",hash:f="",state:y=null,key:k="default"}=r,x=m.useMemo(()=>{let C=jn(c,s);return C==null?null:{location:{pathname:C,search:d,hash:f,state:y,key:k},navigationType:l}},[s,c,d,f,y,k,l]);return x==null?null:m.createElement(mn.Provider,{value:u},m.createElement(ui.Provider,{children:n,value:x}))}new Promise(()=>{});function Jv(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:m.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:m.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:m.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.22.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function wr(){return wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function e0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function t0(e,t){return e.button===0&&(!t||t==="_self")&&!e0(e)}const n0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],r0="6";try{window.__reactRouterVersion=r0}catch{}function l0(e,t){return wv({basename:t?.basename,future:wr({},t?.future,{v7_prependBasename:!0}),history:Bg({window:t?.window}),hydrationData:t?.hydrationData||o0(),routes:e,mapRouteProperties:Jv,window:t?.window}).initialize()}function o0(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=wr({},t,{errors:i0(t.errors)})),t}function i0(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,l]of t)if(l&&l.__type==="RouteErrorResponse")n[r]=new Xs(l.status,l.statusText,l.data,l.internal===!0);else if(l&&l.__type==="Error"){if(l.__subType){let o=window[l.__subType];if(typeof o=="function")try{let i=new o(l.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let o=new Error(l.message);o.stack="",n[r]=o}}else n[r]=l;return n}const a0=m.createContext({isTransitioning:!1}),s0=m.createContext(new Map),u0="startTransition",Hc=$h[u0],c0="flushSync",Wc=bg[c0];function f0(e){Hc?Hc(e):e()}function Ur(e){Wc?Wc(e):e()}class d0{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function p0(e){let{fallbackElement:t,router:n,future:r}=e,[l,o]=m.useState(n.state),[i,a]=m.useState(),[s,u]=m.useState({isTransitioning:!1}),[c,d]=m.useState(),[f,y]=m.useState(),[k,x]=m.useState(),C=m.useRef(new Map),{v7_startTransition:h}=r||{},p=m.useCallback(R=>{h?f0(R):R()},[h]),g=m.useCallback((R,L)=>{let{deletedFetchers:$,unstable_flushSync:M,unstable_viewTransitionOpts:V}=L;$.forEach(ve=>C.current.delete(ve)),R.fetchers.forEach((ve,qe)=>{ve.data!==void 0&&C.current.set(qe,ve.data)});let ge=n.window==null||typeof n.window.document.startViewTransition!="function";if(!V||ge){M?Ur(()=>o(R)):p(()=>o(R));return}if(M){Ur(()=>{f&&(c&&c.resolve(),f.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:V.currentLocation,nextLocation:V.nextLocation})});let ve=n.window.document.startViewTransition(()=>{Ur(()=>o(R))});ve.finished.finally(()=>{Ur(()=>{d(void 0),y(void 0),a(void 0),u({isTransitioning:!1})})}),Ur(()=>y(ve));return}f?(c&&c.resolve(),f.skipTransition(),x({state:R,currentLocation:V.currentLocation,nextLocation:V.nextLocation})):(a(R),u({isTransitioning:!0,flushSync:!1,currentLocation:V.currentLocation,nextLocation:V.nextLocation}))},[n.window,f,c,C,p]);m.useLayoutEffect(()=>n.subscribe(g),[n,g]),m.useEffect(()=>{s.isTransitioning&&!s.flushSync&&d(new d0)},[s]),m.useEffect(()=>{if(c&&i&&n.window){let R=i,L=c.promise,$=n.window.document.startViewTransition(async()=>{p(()=>o(R)),await L});$.finished.finally(()=>{d(void 0),y(void 0),a(void 0),u({isTransitioning:!1})}),y($)}},[p,i,c,n.window]),m.useEffect(()=>{c&&i&&l.location.key===i.location.key&&c.resolve()},[c,f,l.location,i]),m.useEffect(()=>{!s.isTransitioning&&k&&(a(k.state),u({isTransitioning:!0,flushSync:!1,currentLocation:k.currentLocation,nextLocation:k.nextLocation}),x(void 0))},[s.isTransitioning,k]),m.useEffect(()=>{},[]);let E=m.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:R=>n.navigate(R),push:(R,L,$)=>n.navigate(R,{state:L,preventScrollReset:$?.preventScrollReset}),replace:(R,L,$)=>n.navigate(R,{replace:!0,state:L,preventScrollReset:$?.preventScrollReset})}),[n]),T=n.basename||"/",v=m.useMemo(()=>({router:n,navigator:E,static:!1,basename:T}),[n,E,T]);return m.createElement(m.Fragment,null,m.createElement(Tl.Provider,{value:v},m.createElement(Gs.Provider,{value:l},m.createElement(s0.Provider,{value:C.current},m.createElement(a0.Provider,{value:s},m.createElement(Gv,{basename:T,location:l.location,navigationType:l.historyAction,navigator:E,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},l.initialized||n.future.v7_partialHydration?m.createElement(h0,{routes:n.routes,future:n.future,state:l}):t))))),null)}function h0(e){let{routes:t,future:n,state:r}=e;return Av(t,void 0,r,n)}const m0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",g0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,v0=m.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:a,target:s,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,f=qv(t,n0),{basename:y}=m.useContext(mn),k,x=!1;if(typeof u=="string"&&g0.test(u)&&(k=u,m0))try{let g=new URL(window.location.href),E=u.startsWith("//")?new URL(g.protocol+u):new URL(u),T=jn(E.pathname,y);E.origin===g.origin&&T!=null?u=T+E.search+E.hash:x=!0}catch{}let C=zv(u,{relative:l}),h=x0(u,{replace:i,state:a,target:s,preventScrollReset:c,relative:l,unstable_viewTransition:d});function p(g){r&&r(g),g.defaultPrevented||h(g)}return m.createElement("a",wr({},f,{href:k||C,onClick:x||o?r:p,ref:n,target:s}))});function y0(e){let{getKey:t,storageKey:n}=e;return S0({getKey:t,storageKey:n}),null}var Qa;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Qa||(Qa={}));var Ka;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ka||(Ka={}));function w0(e){let t=m.useContext(Tl);return t||H(!1),t}function k0(e){let t=m.useContext(Gs);return t||H(!1),t}function x0(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:a}=t===void 0?{}:t,s=Dv(),u=Er(),c=zp(e,{relative:i});return m.useCallback(d=>{if(t0(d,n)){d.preventDefault();let f=r!==void 0?r:Mn(u)===Mn(c);s(e,{replace:f,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:a})}},[u,s,c,r,l,n,e,o,i,a])}const Qc="react-router-scroll-positions";let ql={};function S0(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:r}=w0(Qa.UseScrollRestoration),{restoreScrollPosition:l,preventScrollReset:o}=k0(Ka.UseScrollRestoration),{basename:i}=m.useContext(mn),a=Er(),s=Qv(),u=Wv();m.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),E0(m.useCallback(()=>{if(u.state==="idle"){let c=(t?t(a,s):null)||a.key;ql[c]=window.scrollY}try{sessionStorage.setItem(n||Qc,JSON.stringify(ql))}catch{}window.history.scrollRestoration="auto"},[n,t,u.state,a,s])),typeof document<"u"&&(m.useLayoutEffect(()=>{try{let c=sessionStorage.getItem(n||Qc);c&&(ql=JSON.parse(c))}catch{}},[n]),m.useLayoutEffect(()=>{let c=t&&i!=="/"?(f,y)=>t(wr({},f,{pathname:jn(f.pathname,i)||f.pathname}),y):t,d=r?.enableScrollRestoration(ql,()=>window.scrollY,c);return()=>d&&d()},[r,i,t]),m.useLayoutEffect(()=>{if(l!==!1){if(typeof l=="number"){window.scrollTo(0,l);return}if(a.hash){let c=document.getElementById(decodeURIComponent(a.hash.slice(1)));if(c){c.scrollIntoView();return}}o!==!0&&window.scrollTo(0,0)}},[a,l,o]))}function E0(e,t){let{capture:n}=t||{};m.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,n])}const C0=m.createContext(null),Yi={didCatch:!1,error:null};class _0 extends m.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Yi}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,l=arguments.length,o=new Array(l),i=0;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}const P0="modulepreload",T0=function(e,t){return new URL(e,t).href},Kc={},Pt=function(t,n,r){let l=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link");l=Promise.all(n.map(i=>{if(i=T0(i,r),i in Kc)return;Kc[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!r)for(let d=o.length-1;d>=0;d--){const f=o[d];if(f.href===i&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":P0,a||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),a)return new Promise((d,f)=>{c.addEventListener("load",d),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})}))}return l.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})};function qs(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Fn=qs();function Op(e){Fn=e}const Ip=/[&<>"']/,L0=new RegExp(Ip.source,"g"),Ap=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,$0=new RegExp(Ap.source,"g"),N0={"&":"&","<":"<",">":">",'"':""","'":"'"},Yc=e=>N0[e];function Ke(e,t){if(t){if(Ip.test(e))return e.replace(L0,Yc)}else if(Ap.test(e))return e.replace($0,Yc);return e}const z0=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function D0(e){return e.replace(z0,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const M0=/(^|[^\[])\^/g;function J(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const r={replace:(l,o)=>{let i=typeof o=="string"?o:o.source;return i=i.replace(M0,"$1"),n=n.replace(l,i),r},getRegex:()=>new RegExp(n,t)};return r}function Xc(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const nl={exec:()=>null};function Zc(e,t){const n=e.replace(/\|/g,(o,i,a)=>{let s=!1,u=i;for(;--u>=0&&a[u]==="\\";)s=!s;return s?"|":" |"}),r=n.split(/ \|/);let l=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length{const o=l.match(/^\s+/);if(o===null)return l;const[i]=o;return i.length>=r.length?l.slice(r.length):l}).join(` +`)}class bo{options;rules;lexer;constructor(t){this.options=t||Fn}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:eo(r,` +`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],l=I0(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:l}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(/#$/.test(r)){const l=eo(r,"#");(this.options.pedantic||!l||/ $/.test(l))&&(r=l.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){const r=eo(n[0].replace(/^ *>[ \t]?/gm,""),` +`),l=this.lexer.state.top;this.lexer.state.top=!0;const o=this.lexer.blockTokens(r);return this.lexer.state.top=l,{type:"blockquote",raw:n[0],tokens:o,text:r}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const l=r.length>1,o={type:"list",raw:"",ordered:l,start:l?+r.slice(0,-1):"",loose:!1,items:[]};r=l?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=l?r:"[*+-]");const i=new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`);let a="",s="",u=!1;for(;t;){let c=!1;if(!(n=i.exec(t))||this.rules.block.hr.test(t))break;a=n[0],t=t.substring(a.length);let d=n[2].split(` +`,1)[0].replace(/^\t+/,h=>" ".repeat(3*h.length)),f=t.split(` +`,1)[0],y=0;this.options.pedantic?(y=2,s=d.trimStart()):(y=n[2].search(/[^ ]/),y=y>4?1:y,s=d.slice(y),y+=n[1].length);let k=!1;if(!d&&/^ *$/.test(f)&&(a+=f+` +`,t=t.substring(f.length+1),c=!0),!c){const h=new RegExp(`^ {0,${Math.min(3,y-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),p=new RegExp(`^ {0,${Math.min(3,y-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),g=new RegExp(`^ {0,${Math.min(3,y-1)}}(?:\`\`\`|~~~)`),E=new RegExp(`^ {0,${Math.min(3,y-1)}}#`);for(;t;){const T=t.split(` +`,1)[0];if(f=T,this.options.pedantic&&(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),g.test(f)||E.test(f)||h.test(f)||p.test(t))break;if(f.search(/[^ ]/)>=y||!f.trim())s+=` +`+f.slice(y);else{if(k||d.search(/[^ ]/)>=4||g.test(d)||E.test(d)||p.test(d))break;s+=` +`+f}!k&&!f.trim()&&(k=!0),a+=T+` +`,t=t.substring(T.length+1),d=f.slice(y)}}o.loose||(u?o.loose=!0:/\n *\n *$/.test(a)&&(u=!0));let x=null,C;this.options.gfm&&(x=/^\[[ xX]\] /.exec(s),x&&(C=x[0]!=="[ ] ",s=s.replace(/^\[[ xX]\] +/,""))),o.items.push({type:"list_item",raw:a,task:!!x,checked:C,loose:!1,text:s,tokens:[]}),o.raw+=a}o.items[o.items.length-1].raw=a.trimEnd(),o.items[o.items.length-1].text=s.trimEnd(),o.raw=o.raw.trimEnd();for(let c=0;cy.type==="space"),f=d.length>0&&d.some(y=>/\n.*\n/.test(y.raw));o.loose=f}if(o.loose)for(let c=0;c$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:l,title:o}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const r=Zc(n[1]),l=n[2].replace(/^\||\| *$/g,"").split("|"),o=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(` +`):[],i={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===l.length){for(const a of l)/^ *-+: *$/.test(a)?i.align.push("right"):/^ *:-+: *$/.test(a)?i.align.push("center"):/^ *:-+ *$/.test(a)?i.align.push("left"):i.align.push(null);for(const a of r)i.header.push({text:a,tokens:this.lexer.inline(a)});for(const a of o)i.rows.push(Zc(a,i.header.length).map(s=>({text:s,tokens:this.lexer.inline(s)})));return i}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===` +`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:Ke(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;const i=eo(r.slice(0,-1),"\\");if((r.length-i.length)%2===0)return}else{const i=O0(n[2],"()");if(i>-1){const s=(n[0].indexOf("!")===0?5:4)+n[1].length+i;n[2]=n[2].substring(0,i),n[0]=n[0].substring(0,s).trim(),n[3]=""}}let l=n[2],o="";if(this.options.pedantic){const i=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);i&&(l=i[1],o=i[3])}else o=n[3]?n[3].slice(1,-1):"";return l=l.trim(),/^$/.test(r)?l=l.slice(1):l=l.slice(1,-1)),Gc(n,{href:l&&l.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const l=(r[2]||r[1]).replace(/\s+/g," "),o=n[l.toLowerCase()];if(!o){const i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return Gc(r,o,r[0],this.lexer)}}emStrong(t,n,r=""){let l=this.rules.inline.emStrongLDelim.exec(t);if(!l||l[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(l[1]||l[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const i=[...l[0]].length-1;let a,s,u=i,c=0;const d=l[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*t.length+i);(l=d.exec(n))!=null;){if(a=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!a)continue;if(s=[...a].length,l[3]||l[4]){u+=s;continue}else if((l[5]||l[6])&&i%3&&!((i+s)%3)){c+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u+c);const f=[...l[0]][0].length,y=t.slice(0,i+l.index+f+s);if(Math.min(i,s)%2){const x=y.slice(1,-1);return{type:"em",raw:y,text:x,tokens:this.lexer.inlineTokens(x)}}const k=y.slice(2,-2);return{type:"strong",raw:y,text:k,tokens:this.lexer.inlineTokens(k)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const l=/[^ ]/.test(r),o=/^ /.test(r)&&/ $/.test(r);return l&&o&&(r=r.substring(1,r.length-1)),r=Ke(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,l;return n[2]==="@"?(r=Ke(n[1]),l="mailto:"+r):(r=Ke(n[1]),l=r),{type:"link",raw:n[0],text:r,href:l,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let r,l;if(n[2]==="@")r=Ke(n[0]),l="mailto:"+r;else{let o;do o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(o!==n[0]);r=Ke(n[0]),n[1]==="www."?l="http://"+n[0]:l=n[0]}return{type:"link",raw:n[0],text:r,href:l,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=Ke(n[0]),{type:"text",raw:n[0],text:r}}}}const A0=/^(?: *(?:\n|$))+/,j0=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,F0=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$l=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,U0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,jp=/(?:[*+-]|\d{1,9}[.)])/,Fp=J(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,jp).getRegex(),eu=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,b0=/^[^\n]+/,tu=/(?!\s*\])(?:\\.|[^\[\]\\])+/,B0=J(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",tu).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),V0=J(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,jp).getRegex(),ci="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|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",nu=/|$))/,H0=J("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",nu).replace("tag",ci).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Up=J(eu).replace("hr",$l).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",")|<(?:script|pre|style|textarea|!--)").replace("tag",ci).getRegex(),W0=J(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Up).getRegex(),ru={blockquote:W0,code:j0,def:B0,fences:F0,heading:U0,hr:$l,html:H0,lheading:Fp,list:V0,newline:A0,paragraph:Up,table:nl,text:b0},Jc=J("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$l).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",")|<(?:script|pre|style|textarea|!--)").replace("tag",ci).getRegex(),Q0={...ru,table:Jc,paragraph:J(eu).replace("hr",$l).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Jc).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ci).getRegex()},K0={...ru,html:J(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",nu).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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:nl,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:J(eu).replace("hr",$l).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",Fp).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},bp=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Y0=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bp=/^( {2,}|\\)\n(?!\s*$)/,X0=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,J0=J(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Nl).getRegex(),q0=J("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Nl).getRegex(),ey=J("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Nl).getRegex(),ty=J(/\\([punct])/,"gu").replace(/punct/g,Nl).getRegex(),ny=J(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("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])?)+(?![-_])/).getRegex(),ry=J(nu).replace("(?:-->|$)","-->").getRegex(),ly=J("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",ry).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Bo=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,oy=J(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Bo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Vp=J(/^!?\[(label)\]\[(ref)\]/).replace("label",Bo).replace("ref",tu).getRegex(),Hp=J(/^!?\[(ref)\](?:\[\])?/).replace("ref",tu).getRegex(),iy=J("reflink|nolink(?!\\()","g").replace("reflink",Vp).replace("nolink",Hp).getRegex(),lu={_backpedal:nl,anyPunctuation:ty,autolink:ny,blockSkip:G0,br:Bp,code:Y0,del:nl,emStrongLDelim:J0,emStrongRDelimAst:q0,emStrongRDelimUnd:ey,escape:bp,link:oy,nolink:Hp,punctuation:Z0,reflink:Vp,reflinkSearch:iy,tag:ly,text:X0,url:nl},ay={...lu,link:J(/^!?\[(label)\]\((.*?)\)/).replace("label",Bo).getRegex(),reflink:J(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Bo).getRegex()},Ya={...lu,escape:J(bp).replace("])","~|])").getRegex(),url:J(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\s+" ".repeat(u.length));let r,l,o,i;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(r=a.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length),r.raw.length===1&&n.length>0?n[n.length-1].raw+=` +`:n.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length),l=n[n.length-1],l&&(l.type==="paragraph"||l.type==="text")?(l.raw+=` +`+r.raw,l.text+=` +`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=l.text):n.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length),l=n[n.length-1],l&&(l.type==="paragraph"||l.type==="text")?(l.raw+=` +`+r.raw,l.text+=` +`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=l.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(o=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const s=t.slice(1);let u;this.options.extensions.startBlock.forEach(c=>{u=c.call({lexer:this},s),typeof u=="number"&&u>=0&&(a=Math.min(a,u))}),a<1/0&&a>=0&&(o=t.substring(0,a+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o))){l=n[n.length-1],i&&l.type==="paragraph"?(l.raw+=` +`+r.raw,l.text+=` +`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):n.push(r),i=o.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length),l=n[n.length-1],l&&l.type==="text"?(l.raw+=` +`+r.raw,l.text+=` +`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):n.push(r);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r,l,o,i=t,a,s,u;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,a.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(s||(u=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(r=c.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),l=n[n.length-1],l&&r.type==="text"&&l.type==="text"?(l.raw+=r.raw,l.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),l=n[n.length-1],l&&r.type==="text"&&l.type==="text"?(l.raw+=r.raw,l.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(t,i,u)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),n.push(r);continue}if(o=t,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const d=t.slice(1);let f;this.options.extensions.startInline.forEach(y=>{f=y.call({lexer:this},d),typeof f=="number"&&f>=0&&(c=Math.min(c,f))}),c<1/0&&c>=0&&(o=t.substring(0,c+1))}if(r=this.tokenizer.inlineText(o)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(u=r.raw.slice(-1)),s=!0,l=n[n.length-1],l&&l.type==="text"?(l.raw+=r.raw,l.text+=r.text):n.push(r);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}}class Vo{options;constructor(t){this.options=t||Fn}code(t,n,r){const l=(n||"").match(/^\S*/)?.[0];return t=t.replace(/\n$/,"")+` +`,l?'
'+(r?t:Ke(t,!0))+`
+`:"
"+(r?t:Ke(t,!0))+`
+`}blockquote(t){return`
+${t}
+`}html(t,n){return t}heading(t,n,r){return`${t} +`}hr(){return`
+`}list(t,n,r){const l=n?"ol":"ul",o=n&&r!==1?' start="'+r+'"':"";return"<"+l+o+`> +`+t+" +`}listitem(t,n,r){return`
  • ${t}
  • +`}checkbox(t){return"'}paragraph(t){return`

    ${t}

    +`}table(t,n){return n&&(n=`${n}`),` + +`+t+` +`+n+`
    +`}tablerow(t){return` +${t} +`}tablecell(t,n){const r=n.header?"th":"td";return(n.align?`<${r} align="${n.align}">`:`<${r}>`)+t+` +`}strong(t){return`${t}`}em(t){return`${t}`}codespan(t){return`${t}`}br(){return"
    "}del(t){return`${t}`}link(t,n,r){const l=Xc(t);if(l===null)return r;t=l;let o='
    ",o}image(t,n,r){const l=Xc(t);if(l===null)return r;t=l;let o=`${r}0&&f.tokens[0].type==="paragraph"?(f.tokens[0].text=C+" "+f.tokens[0].text,f.tokens[0].tokens&&f.tokens[0].tokens.length>0&&f.tokens[0].tokens[0].type==="text"&&(f.tokens[0].tokens[0].text=C+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:C+" "}):x+=C+" "}x+=this.parse(f.tokens,u),c+=this.renderer.listitem(x,k,!!y)}r+=this.renderer.list(c,a,s);continue}case"html":{const i=o;r+=this.renderer.html(i.text,i.block);continue}case"paragraph":{const i=o;r+=this.renderer.paragraph(this.parseInline(i.tokens));continue}case"text":{let i=o,a=i.tokens?this.parseInline(i.tokens):i.text;for(;l+1{const a=o[i].flat(1/0);r=r.concat(this.walkTokens(a,n))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const l={...r};if(l.async=this.defaults.async||l.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const i=n.renderers[o.name];i?n.renderers[o.name]=function(...a){let s=o.renderer.apply(this,a);return s===!1&&(s=i.apply(this,a)),s}:n.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const i=n[o.level];i?i.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),l.extensions=n),r.renderer){const o=this.defaults.renderer||new Vo(this.defaults);for(const i in r.renderer){if(!(i in o))throw new Error(`renderer '${i}' does not exist`);if(i==="options")continue;const a=i,s=r.renderer[a],u=o[a];o[a]=(...c)=>{let d=s.apply(o,c);return d===!1&&(d=u.apply(o,c)),d||""}}l.renderer=o}if(r.tokenizer){const o=this.defaults.tokenizer||new bo(this.defaults);for(const i in r.tokenizer){if(!(i in o))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const a=i,s=r.tokenizer[a],u=o[a];o[a]=(...c)=>{let d=s.apply(o,c);return d===!1&&(d=u.apply(o,c)),d}}l.tokenizer=o}if(r.hooks){const o=this.defaults.hooks||new go;for(const i in r.hooks){if(!(i in o))throw new Error(`hook '${i}' does not exist`);if(i==="options")continue;const a=i,s=r.hooks[a],u=o[a];go.passThroughHooks.has(i)?o[a]=c=>{if(this.defaults.async)return Promise.resolve(s.call(o,c)).then(f=>u.call(o,f));const d=s.call(o,c);return u.call(o,d)}:o[a]=(...c)=>{let d=s.apply(o,c);return d===!1&&(d=u.apply(o,c)),d}}l.hooks=o}if(r.walkTokens){const o=this.defaults.walkTokens,i=r.walkTokens;l.walkTokens=function(a){let s=[];return s.push(i.call(this,a)),o&&(s=s.concat(o.call(this,a))),s}}this.defaults={...this.defaults,...l}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return St.lex(t,n??this.defaults)}parser(t,n){return Et.parse(t,n??this.defaults)}#e(t,n){return(r,l)=>{const o={...l},i={...this.defaults,...o};this.defaults.async===!0&&o.async===!1&&(i.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),i.async=!0);const a=this.#t(!!i.silent,!!i.async);if(typeof r>"u"||r===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(i.hooks&&(i.hooks.options=i),i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(r):r).then(s=>t(s,i)).then(s=>i.hooks?i.hooks.processAllTokens(s):s).then(s=>i.walkTokens?Promise.all(this.walkTokens(s,i.walkTokens)).then(()=>s):s).then(s=>n(s,i)).then(s=>i.hooks?i.hooks.postprocess(s):s).catch(a);try{i.hooks&&(r=i.hooks.preprocess(r));let s=t(r,i);i.hooks&&(s=i.hooks.processAllTokens(s)),i.walkTokens&&this.walkTokens(s,i.walkTokens);let u=n(s,i);return i.hooks&&(u=i.hooks.postprocess(u)),u}catch(s){return a(s)}}}#t(t,n){return r=>{if(r.message+=` +Please report this to https://github.com/markedjs/marked.`,t){const l="

    An error occurred:

    "+Ke(r.message+"",!0)+"
    ";return n?Promise.resolve(l):l}if(n)return Promise.reject(r);throw r}}}const On=new uy;function Z(e,t){return On.parse(e,t)}Z.options=Z.setOptions=function(e){return On.setOptions(e),Z.defaults=On.defaults,Op(Z.defaults),Z};Z.getDefaults=qs;Z.defaults=Fn;Z.use=function(...e){return On.use(...e),Z.defaults=On.defaults,Op(Z.defaults),Z};Z.walkTokens=function(e,t){return On.walkTokens(e,t)};Z.parseInline=On.parseInline;Z.Parser=Et;Z.parser=Et.parse;Z.Renderer=Vo;Z.TextRenderer=ou;Z.Lexer=St;Z.lexer=St.lex;Z.Tokenizer=bo;Z.Hooks=go;Z.parse=Z;Z.options;Z.setOptions;Z.use;Z.walkTokens;Z.parseInline;Et.parse;St.lex;const Xa=m.memo(e=>{const{value:t}=e,n=Z(t);return A.jsx("article",{className:"markdown-body text-sm",dangerouslySetInnerHTML:{__html:n}})});Xa.displayName="Markdown";const Za=Object.assign({"../../src/components/ui/code-editor/index.demo.tsx":()=>Pt(()=>import("./index.demo-edWeYFRs.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),"../../src/components/ui/collapse/index.demo.tsx":()=>Pt(()=>import("./index.demo-vB8mtO4m.js"),__vite__mapDeps([12,7,3,8,9,13,14,15,16,17]),import.meta.url),"../../src/components/ui/editor/index.demo.tsx":()=>Pt(()=>import("./index.demo-_07sssxB.js").then(e=>e.b5),__vite__mapDeps([18,19,5,6,3,7,8,9,20,21,22,10,23,17,24,25,14,26,2,27,28,29,30,31,15,1,4,11,32,33,34,35,36,37,38,39]),import.meta.url),"../../src/components/ui/excalidraw/index.demo.tsx":()=>Pt(()=>import("./index.demo-quWGdnfB.js"),__vite__mapDeps([40,5,6,3,7,8,9,10,24,20,19,21,25,14,26,2,17,41,42,34,43,29]),import.meta.url),"../../src/components/ui/gallery/index.demo.tsx":()=>Pt(()=>import("./index.demo-Sxeb7MRV.js"),__vite__mapDeps([44,28,3,8,27,25,21,20,6,29,30,45,46]),import.meta.url),"../../src/components/ui/link-card/index.demo.tsx":()=>Pt(()=>import("./index.demo-2qcgj1lF.js"),__vite__mapDeps([47,48,27,3,7,8,9,19,5,6,20,21,23,17,24,25,14,26,2,37,49]),import.meta.url),"../../src/components/ui/markdown/index.demo.tsx":()=>Pt(()=>import("./index.demo-Qa1grQ39.js"),__vite__mapDeps([50,19,5,6,3,7,8,9,20,21,10,51,31,36,14,26,37,17,45,27,28,25,29,30,46,48,23,24,2,49,52,4,11,13,42,53]),import.meta.url),"../../src/components/ui/rich-link/index.demo.tsx":()=>Pt(()=>import("./index.demo-BGZWbYKh.js"),__vite__mapDeps([54,52,3,19,5,6,7,8,9,20,21]),import.meta.url),"../../src/components/ui/typography/index.demo.tsx":()=>Pt(()=>import("./index.demo-K062cJV7.js"),__vite__mapDeps([55,3,36,14,9,26,37,21]),import.meta.url)}),cy=Object.keys(Za).reduce((e,t)=>{const[,n]=t.match(/\/([^/]+)\/index.demo.(tsx|mdx)$/)||[];return n?{...e,[n]:Za[t]}:{...e}},{}),fy=Object.keys(cy),dy=Object.values(Za).map(e=>hf.lazy(()=>e().then(t=>{const n=Object.keys(t).filter(o=>o!=="metadata"),r=n.length===1&&t.default,l=[];if(t.metadata&&typeof t.metadata=="object"){const{title:o,description:i}=t.metadata;l.push(A.jsxs("div",{className:"mb-8",children:[A.jsx("h1",{className:"my-6 text-xl font-bold",children:o}),i&&A.jsx(Xa,{value:i})]}))}for(const o of n){const i=t[o],{meta:a={}}=i,{description:s,title:u}=a;l.unshift(A.jsxs("section",{className:"space-y-4 mt-8",children:[A.jsx("h2",{className:"text-lg font-medium",children:u||o}),!!s&&A.jsx(Xa,{value:s}),A.jsx(i,{})]}))}return r?t:{default:()=>m.createElement(m.Fragment,null,l)}}))),py=()=>{};function hy(e){const t=m.createContext(e),n=m.createContext(py);return[r=>{let{children:l}=r;const[o,i]=m.useState(e);return A.jsx(t.Provider,{value:o,children:A.jsx(n.Provider,{value:i,children:l})})},()=>m.useContext(t),()=>m.useContext(n),t]}const[my,i1,gy]=hy({}),vy=()=>A.jsx("div",{children:A.jsxs(my,{children:[A.jsx(yy,{}),A.jsx(wy,{})]})}),yy=()=>(console.log("render Child"),A.jsx("div",{children:"Child"})),wy=()=>{console.log("render Child2");const e=gy();return A.jsxs("div",{children:["Child 2",A.jsx("button",{onClick:()=>{e({})},children:"Set new value"})]})};function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>ky(n,t))}function Cr(...e){return m.useCallback(Wp(...e),e)}const Qp=m.forwardRef((e,t)=>{const{children:n,...r}=e,l=m.Children.toArray(n),o=l.find(Sy);if(o){const i=o.props.children,a=l.map(s=>s===o?m.Children.count(i)>1?m.Children.only(null):m.isValidElement(i)?i.props.children:null:s);return m.createElement(Ga,xe({},r,{ref:t}),m.isValidElement(i)?m.cloneElement(i,void 0,a):null)}return m.createElement(Ga,xe({},r,{ref:t}),n)});Qp.displayName="Slot";const Ga=m.forwardRef((e,t)=>{const{children:n,...r}=e;return m.isValidElement(n)?m.cloneElement(n,{...Ey(r,n.props),ref:t?Wp(t,n.ref):n.ref}):m.Children.count(n)>1?m.Children.only(null):null});Ga.displayName="SlotClone";const xy=({children:e})=>m.createElement(m.Fragment,null,e);function Sy(e){return m.isValidElement(e)&&e.type===xy}function Ey(e,t){const n={...t};for(const r in t){const l=e[r],o=t[r];/^on[A-Z]/.test(r)?l&&o?n[r]=(...a)=>{o(...a),l(...a)}:l&&(n[r]=l):r==="style"?n[r]={...l,...o}:r==="className"&&(n[r]=[l,o].filter(Boolean).join(" "))}return{...e,...n}}const Cy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],iu=Cy.reduce((e,t)=>{const n=m.forwardRef((r,l)=>{const{asChild:o,...i}=r,a=o?Qp:t;return m.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),m.createElement(a,xe({},i,{ref:l}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Ja=globalThis?.document?m.useLayoutEffect:()=>{};function _y(e,t){return m.useReducer((n,r)=>{const l=t[n][r];return l??n},e)}const fi=e=>{const{present:t,children:n}=e,r=Ry(t),l=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),o=Cr(r.ref,l.ref);return typeof n=="function"||r.isPresent?m.cloneElement(l,{ref:o}):null};fi.displayName="Presence";function Ry(e){const[t,n]=m.useState(),r=m.useRef({}),l=m.useRef(e),o=m.useRef("none"),i=e?"mounted":"unmounted",[a,s]=_y(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=no(r.current);o.current=a==="mounted"?u:"none"},[a]),Ja(()=>{const u=r.current,c=l.current;if(c!==e){const f=o.current,y=no(u);e?s("MOUNT"):y==="none"||u?.display==="none"?s("UNMOUNT"):s(c&&f!==y?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,s]),Ja(()=>{if(t){const u=d=>{const y=no(r.current).includes(d.animationName);d.target===t&&y&&si.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(o.current=no(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function no(e){return e?.animationName||"none"}function Py(e,t=[]){let n=[];function r(o,i){const a=m.createContext(i),s=n.length;n=[...n,i];function u(d){const{scope:f,children:y,...k}=d,x=f?.[e][s]||a,C=m.useMemo(()=>k,Object.values(k));return m.createElement(x.Provider,{value:C},y)}function c(d,f){const y=f?.[e][s]||a,k=m.useContext(y);if(k)return k;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,c]}const l=()=>{const o=n.map(i=>m.createContext(i));return function(a){const s=a?.[e]||o;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:s}}),[a,s])}};return l.scopeName=e,[r,Ty(l,...t)]}function Ty(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(o){const i=r.reduce((a,{useScope:s,scopeName:u})=>{const d=s(o)[`__scope${u}`];return{...a,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function xn(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}const Ly=m.createContext(void 0);function $y(e){const t=m.useContext(Ly);return e||t||"ltr"}function Ny(e,[t,n]){return Math.min(n,Math.max(t,e))}function rl(e,t,{checkForDefaultPrevented:n=!0}={}){return function(l){if(e?.(l),n===!1||!l.defaultPrevented)return t?.(l)}}function zy(e,t){return m.useReducer((n,r)=>{const l=t[n][r];return l??n},e)}const Kp="ScrollArea",[Yp,a1]=Py(Kp),[Dy,Ft]=Yp(Kp),My=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:l,scrollHideDelay:o=600,...i}=e,[a,s]=m.useState(null),[u,c]=m.useState(null),[d,f]=m.useState(null),[y,k]=m.useState(null),[x,C]=m.useState(null),[h,p]=m.useState(0),[g,E]=m.useState(0),[T,v]=m.useState(!1),[R,L]=m.useState(!1),$=Cr(t,V=>s(V)),M=$y(l);return m.createElement(Dy,{scope:n,type:r,dir:M,scrollHideDelay:o,scrollArea:a,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:y,onScrollbarXChange:k,scrollbarXEnabled:T,onScrollbarXEnabledChange:v,scrollbarY:x,onScrollbarYChange:C,scrollbarYEnabled:R,onScrollbarYEnabledChange:L,onCornerWidthChange:p,onCornerHeightChange:E},m.createElement(iu.div,xe({dir:M},i,{ref:$,style:{position:"relative","--radix-scroll-area-corner-width":h+"px","--radix-scroll-area-corner-height":g+"px",...e.style}})))}),Oy="ScrollAreaViewport",Iy=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,...l}=e,o=Ft(Oy,n),i=m.useRef(null),a=Cr(t,i,o.onViewportChange);return m.createElement(m.Fragment,null,m.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),m.createElement(iu.div,xe({"data-radix-scroll-area-viewport":""},l,{ref:a,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),m.createElement("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),Ut="ScrollAreaScrollbar",Ay=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,l=Ft(Ut,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:i}=l,a=e.orientation==="horizontal";return m.useEffect(()=>(a?o(!0):i(!0),()=>{a?o(!1):i(!1)}),[a,o,i]),l.type==="hover"?m.createElement(jy,xe({},r,{ref:t,forceMount:n})):l.type==="scroll"?m.createElement(Fy,xe({},r,{ref:t,forceMount:n})):l.type==="auto"?m.createElement(Xp,xe({},r,{ref:t,forceMount:n})):l.type==="always"?m.createElement(au,xe({},r,{ref:t})):null}),jy=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,l=Ft(Ut,e.__scopeScrollArea),[o,i]=m.useState(!1);return m.useEffect(()=>{const a=l.scrollArea;let s=0;if(a){const u=()=>{window.clearTimeout(s),i(!0)},c=()=>{s=window.setTimeout(()=>i(!1),l.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",c)}}},[l.scrollArea,l.scrollHideDelay]),m.createElement(fi,{present:n||o},m.createElement(Xp,xe({"data-state":o?"visible":"hidden"},r,{ref:t})))}),Fy=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,l=Ft(Ut,e.__scopeScrollArea),o=e.orientation==="horizontal",i=su(()=>s("SCROLL_END"),100),[a,s]=zy("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return m.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>s("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,l.scrollHideDelay,s]),m.useEffect(()=>{const u=l.viewport,c=o?"scrollLeft":"scrollTop";if(u){let d=u[c];const f=()=>{const y=u[c];d!==y&&(s("SCROLL"),i()),d=y};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[l.viewport,o,s,i]),m.createElement(fi,{present:n||a!=="hidden"},m.createElement(au,xe({"data-state":a==="hidden"?"hidden":"visible"},r,{ref:t,onPointerEnter:rl(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:rl(e.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),Xp=m.forwardRef((e,t)=>{const n=Ft(Ut,e.__scopeScrollArea),{forceMount:r,...l}=e,[o,i]=m.useState(!1),a=e.orientation==="horizontal",s=su(()=>{if(n.viewport){const u=n.viewport.offsetWidth{const{orientation:n="vertical",...r}=e,l=Ft(Ut,e.__scopeScrollArea),o=m.useRef(null),i=m.useRef(0),[a,s]=m.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Gp(a.viewport,a.content),c={...r,sizes:a,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:f=>o.current=f,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:f=>i.current=f};function d(f,y){return Vy(f,i.current,a,y)}return n==="horizontal"?m.createElement(Uy,xe({},c,{ref:t,onThumbPositionChange:()=>{if(l.viewport&&o.current){const f=l.viewport.scrollLeft,y=qc(f,a,l.dir);o.current.style.transform=`translate3d(${y}px, 0, 0)`}},onWheelScroll:f=>{l.viewport&&(l.viewport.scrollLeft=f)},onDragScroll:f=>{l.viewport&&(l.viewport.scrollLeft=d(f,l.dir))}})):n==="vertical"?m.createElement(by,xe({},c,{ref:t,onThumbPositionChange:()=>{if(l.viewport&&o.current){const f=l.viewport.scrollTop,y=qc(f,a);o.current.style.transform=`translate3d(0, ${y}px, 0)`}},onWheelScroll:f=>{l.viewport&&(l.viewport.scrollTop=f)},onDragScroll:f=>{l.viewport&&(l.viewport.scrollTop=d(f))}})):null}),Uy=m.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...l}=e,o=Ft(Ut,e.__scopeScrollArea),[i,a]=m.useState(),s=m.useRef(null),u=Cr(t,s,o.onScrollbarXChange);return m.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),m.createElement(Zp,xe({"data-orientation":"horizontal"},l,{ref:u,sizes:n,style:{bottom:0,left:o.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:o.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":di(n)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,d)=>{if(o.viewport){const f=o.viewport.scrollLeft+c.deltaX;e.onWheelScroll(f),qp(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&o.viewport&&i&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Ho(i.paddingLeft),paddingEnd:Ho(i.paddingRight)}})}}))}),by=m.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...l}=e,o=Ft(Ut,e.__scopeScrollArea),[i,a]=m.useState(),s=m.useRef(null),u=Cr(t,s,o.onScrollbarYChange);return m.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),m.createElement(Zp,xe({"data-orientation":"vertical"},l,{ref:u,sizes:n,style:{top:0,right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":di(n)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,d)=>{if(o.viewport){const f=o.viewport.scrollTop+c.deltaY;e.onWheelScroll(f),qp(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&o.viewport&&i&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Ho(i.paddingTop),paddingEnd:Ho(i.paddingBottom)}})}}))}),[By,s1]=Yp(Ut),Zp=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:l,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,y=Ft(Ut,n),[k,x]=m.useState(null),C=Cr(t,$=>x($)),h=m.useRef(null),p=m.useRef(""),g=y.viewport,E=r.content-r.viewport,T=xn(c),v=xn(s),R=su(d,10);function L($){if(h.current){const M=$.clientX-h.current.left,V=$.clientY-h.current.top;u({x:M,y:V})}}return m.useEffect(()=>{const $=M=>{const V=M.target;k?.contains(V)&&T(M,E)};return document.addEventListener("wheel",$,{passive:!1}),()=>document.removeEventListener("wheel",$,{passive:!1})},[g,k,E,T]),m.useEffect(v,[r,v]),Wo(k,R),Wo(y.content,R),m.createElement(By,{scope:n,scrollbar:k,hasThumb:l,onThumbChange:xn(o),onThumbPointerUp:xn(i),onThumbPositionChange:v,onThumbPointerDown:xn(a)},m.createElement(iu.div,xe({},f,{ref:C,style:{position:"absolute",...f.style},onPointerDown:rl(e.onPointerDown,$=>{$.button===0&&($.target.setPointerCapture($.pointerId),h.current=k.getBoundingClientRect(),p.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),L($))}),onPointerMove:rl(e.onPointerMove,L),onPointerUp:rl(e.onPointerUp,$=>{const M=$.target;M.hasPointerCapture($.pointerId)&&M.releasePointerCapture($.pointerId),document.body.style.webkitUserSelect=p.current,y.viewport&&(y.viewport.style.scrollBehavior=""),h.current=null})})))});function Ho(e){return e?parseInt(e,10):0}function Gp(e,t){const n=e/t;return isNaN(n)?0:n}function di(e){const t=Gp(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Vy(e,t,n,r="ltr"){const l=di(n),o=l/2,i=t||o,a=l-i,s=n.scrollbar.paddingStart+i,u=n.scrollbar.size-n.scrollbar.paddingEnd-a,c=n.content-n.viewport,d=r==="ltr"?[0,c]:[c*-1,0];return Jp([s,u],d)(e)}function qc(e,t,n="ltr"){const r=di(t),l=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-l,i=t.content-t.viewport,a=o-r,s=n==="ltr"?[0,i]:[i*-1,0],u=Ny(e,s);return Jp([0,i],[0,a])(u)}function Jp(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function qp(e,t){return e>0&&e()=>window.clearTimeout(r.current),[]),m.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Wo(e,t){const n=xn(t);Ja(()=>{let r=0;if(e){const l=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return l.observe(e),()=>{window.cancelAnimationFrame(r),l.unobserve(e)}}},[e,n])}const Hy=My,Wy=Iy,Qy=Ay,Ky=()=>!1,Yy=(e,t)=>{const{classNameDark:n="dark",classNameLight:r="light",storageKey:l,element:o}=t,[i,a]=m.useState(e);return m.useEffect(()=>{const s=l?localStorage.getItem(l):null;s!==null?s==="true"?a(!0):s==="false"&&a(!1):typeof e>"u"&&a(window.matchMedia("(prefers-color-scheme: dark)").matches)},[l]),m.useEffect(()=>{const s=c=>{localStorage.getItem(l||"darkMode")===null&&a(c.matches)},u=()=>{const c=localStorage.getItem(l||"darkMode");a(c===null?window.matchMedia("(prefers-color-scheme: dark)").matches:c==="true")};return window.addEventListener("storage",u),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",s),()=>{window.removeEventListener("storage",u),window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",s)}},[l]),m.useEffect(()=>{if(typeof i>"u")return;const s=o||document.documentElement;i?(s.classList.remove(r),s.classList.add(n),s.dataset.theme="dark"):(s.classList.remove(n),s.classList.add(r),s.dataset.theme="light")},[n,r,i,o]),{value:i,toggle:()=>{a(s=>(l&&!Ky()&&localStorage.setItem(l,String(!s)),!s))}}},ef=()=>{},Xy={classList:{add:ef,remove:ef}},tf="darkMode",Zy=()=>{const{toggle:e,value:t}=Yy(void 0,{classNameDark:"dark",classNameLight:"light",storageKey:tf,element:globalThis.document&&document.documentElement||Xy});return m.useEffect(()=>{const n=()=>{window.matchMedia("(prefers-color-scheme: dark)").matches===t&&localStorage.removeItem(tf)};return window.addEventListener("beforeunload",n),()=>{window.removeEventListener("beforeunload",n)}},[t]),{toggle:e,value:t}},Gy=()=>{const{pathname:e}=Er();return A.jsxs(Hy,{className:"z-1 !absolute bottom-0 left-0 top-0 w-[250px] border-r border-slate-200 dark:border-neutral-800",children:[A.jsx(Wy,{className:"!inline-block !w-[250px] !min-w-[auto]",children:A.jsxs("div",{className:"flex h-screen flex-col",children:[A.jsx("h1",{className:"mt-4 text-center text-xl font-medium",children:"Component Playground"}),A.jsx("ul",{className:"mt-6 flex-shrink flex-grow space-y-2 pl-2 pr-[3px]",children:l1.map(t=>A.jsx("li",{className:["rounded-3xl bg-transparent transition-colors hover:bg-blue-200 dark:hover:bg-slate-700",e===`/${t}`?"bg-blue-100 dark:bg-slate-800":""].join(" "),children:A.jsx(v0,{to:`/${t}`,className:"block h-full w-full px-4 py-2",children:t.at(0)?.toUpperCase()+t.slice(1).replace(/-\s*(\w)/g,(n,r)=>` ${r.toUpperCase()}`)})},t))}),A.jsx("div",{className:"flex-shrink-0",children:A.jsx(Jy,{})})]})}),A.jsx(Qy,{})]})},Jy=()=>{const{value:e,toggle:t}=Zy();return A.jsx("button",{"aria-label":"Toggle Dark Mode",onClick:t,children:e?A.jsx(e1,{}):A.jsx(qy,{})})},qy=()=>A.jsxs("svg",{fill:"none",height:"24",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",children:[A.jsx("circle",{cx:"12",cy:"12",r:"5"}),A.jsx("path",{d:"M12 1v2"}),A.jsx("path",{d:"M12 21v2"}),A.jsx("path",{d:"M4.22 4.22l1.42 1.42"}),A.jsx("path",{d:"M18.36 18.36l1.42 1.42"}),A.jsx("path",{d:"M1 12h2"}),A.jsx("path",{d:"M21 12h2"}),A.jsx("path",{d:"M4.22 19.78l1.42-1.42"}),A.jsx("path",{d:"M18.36 5.64l1.42-1.42"})]}),e1=()=>A.jsx("svg",{fill:"none",height:"24",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",children:A.jsx("path",{d:"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})}),t1=()=>A.jsxs("div",{children:[A.jsx(Gy,{}),A.jsxs("main",{className:"relative ml-[250px] max-h-[100vh] overflow-auto p-4",children:[A.jsx(Zv,{}),A.jsx(y0,{})]})]}),n1=fy.map((e,t)=>({path:e,name:e,Component:()=>A.jsx(_0,{fallback:A.jsx("div",{children:"Component has some errors."}),children:A.jsx(m.Suspense,{fallback:A.jsx("div",{children:"Loading..."}),children:m.createElement(dy[t])})})})),uu=[...n1].sort((e,t)=>e.name.localeCompare(t.name));uu.push({path:"debug",Component:vy,name:"debug"});const r1=l0([{path:"/",Component:t1,children:uu}]),l1=uu.map(e=>e.name);Xi.createRoot(document.getElementById("root")).render(A.jsx(p0,{router:r1}));export{$h as $,_0 as E,hf as R,Pt as _,si as a,Ug as b,o1 as c,rf as g,hy as i,A as j,m as r,Ah as s}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["./index.demo-edWeYFRs.js","./CodeEditor-pXHtjbJq.js","./dom-NuJWIaAq.js","./helper-0r91fNX5.js","./CodeHighlighter-Sy1nPjje.js","./toast-qMk_Ov--.js","./init-a0893ef4-4662SO8Z.js","./StyledButton-Mj8l6PeD.js","./index-5Y6ZmVAf.js","./motion-minimal-gJqnz197.js","./use-is-dark-13kBJDHw.js","./CodeHighlighter-hcFZa2QO.css","./index.demo-vB8mtO4m.js","./Collapse-Q-wSwlx_.js","./spring--xEiX8r3.js","./index-QSj7qAqP.js","./features-max-O5aQqdqN.js","./visual-element-YIiczwVf.js","./index.demo-_07sssxB.js","./owner-4YVbz2PN.js","./store-gmK8mRDy.js","./env-y9k74Ds6.js","./index-I7weg1Js.js","./usePeek-N6a5Jy_H.js","./provider-jumr72cx.js","./use-is-unmounted-6i0OwE-p.js","./use-event-callback-nMlqCkS7.js","./image-sZM8elMx.js","./WrappedElementProvider-5243oAX6.js","./lodash-Y39_oLIE.js","./WrappedElementProvider-v7JdpuAw.css","./script-SYgWefdU.js","./AutoResizeHeight-pHZ_oyCK.js","./FormInput-cQs6MTpb.js","./index-D4F-WjWJ.js","./BlockLoading-PMBA_Cs1.js","./FloatPopover-1BpKQIdq.js","./use-is-client-IECHC2ux.js","./Mermaid-5Gw5JBOp.js","./index-fcBMwXcr.css","./index.demo-quWGdnfB.js","./index-mx_ZhLz2.js","./useQuery-44y7CkOR.js","./main-1J4Kkp7S.js","./index.demo-Sxeb7MRV.js","./Gallery-MHeEsxti.js","./Gallery-ktaGTCNz.css","./index.demo-2qcgj1lF.js","./LinkCard-r30gHz-0.js","./LinkCard-P0Jx4JBj.css","./index.demo-Qa1grQ39.js","./Markdown-hVdCypI9.js","./SocialSourceLink-c8HgVvxv.js","./Markdown-B8lEAZHM.css","./index.demo-BGZWbYKh.js","./index.demo-K062cJV7.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/assets/index-wpIVlVRc.js b/assets/index-wpIVlVRc.js new file mode 100644 index 00000000000..3b6db1c45da --- /dev/null +++ b/assets/index-wpIVlVRc.js @@ -0,0 +1,9 @@ +import{r as a}from"./index-qegmBwH1.js";var c={exports:{}},f={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var o=a;function p(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var d=typeof Object.is=="function"?Object.is:p,v=o.useState,S=o.useEffect,l=o.useLayoutEffect,m=o.useDebugValue;function x(t,e){var r=e(),u=v({inst:{value:r,getSnapshot:e}}),n=u[0].inst,i=u[1];return l(function(){n.value=r,n.getSnapshot=e,s(n)&&i({inst:n})},[t,r,e]),S(function(){return s(n)&&i({inst:n}),t(function(){s(n)&&i({inst:n})})},[t]),m(r),r}function s(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!d(t,r)}catch{return!0}}function y(t,e){return e()}var E=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:x;f.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:E;c.exports=f;var w=c.exports;export{w as s}; diff --git a/assets/index.client-pKCGNBTs.js b/assets/index.client-pKCGNBTs.js new file mode 100644 index 00000000000..10c33057fca --- /dev/null +++ b/assets/index.client-pKCGNBTs.js @@ -0,0 +1 @@ +import{j as o,r as D,g as mr,R as Dt}from"./index-qegmBwH1.js";import{s as _r}from"./index-wpIVlVRc.js";import{a as ue}from"./helper-0r91fNX5.js";const pr="_verified_lvyh0_1",Mt={verified:pr},gr=()=>o.jsx("svg",{viewBox:"0 0 24 24","aria-label":"Verified account",role:"img",className:Mt.verified,children:o.jsx("g",{children:o.jsx("path",{d:"M22.25 12c0-1.43-.88-2.67-2.19-3.34.46-1.39.2-2.9-.81-3.91s-2.52-1.27-3.91-.81c-.66-1.31-1.91-2.19-3.34-2.19s-2.67.88-3.33 2.19c-1.4-.46-2.91-.2-3.92.81s-1.26 2.52-.8 3.91c-1.31.67-2.2 1.91-2.2 3.34s.89 2.67 2.2 3.34c-.46 1.39-.21 2.9.8 3.91s2.52 1.26 3.91.81c.67 1.31 1.91 2.19 3.34 2.19s2.68-.88 3.34-2.19c1.39.45 2.9.2 3.91-.81s1.27-2.52.81-3.91c1.31-.67 2.19-1.91 2.19-3.34zm-11.71 4.2L6.8 12.46l1.41-1.42 2.26 2.26 4.8-5.23 1.47 1.36-6.2 6.77z"})})}),xr=()=>o.jsx("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:Mt.verified,children:o.jsxs("g",{children:[o.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-a",x1:"4.411",x2:"18.083",y1:"2.495",y2:"21.508",children:[o.jsx("stop",{offset:"0",stopColor:"#f4e72a"}),o.jsx("stop",{offset:".539",stopColor:"#cd8105"}),o.jsx("stop",{offset:".68",stopColor:"#cb7b00"}),o.jsx("stop",{offset:"1",stopColor:"#f4ec26"}),o.jsx("stop",{offset:"1",stopColor:"#f4e72a"})]}),o.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-b",x1:"5.355",x2:"16.361",y1:"3.395",y2:"19.133",children:[o.jsx("stop",{offset:"0",stopColor:"#f9e87f"}),o.jsx("stop",{offset:".406",stopColor:"#e2b719"}),o.jsx("stop",{offset:".989",stopColor:"#e2b719"})]}),o.jsxs("g",{clipRule:"evenodd",fillRule:"evenodd",children:[o.jsx("path",{d:"M13.324 3.848L11 1.6 8.676 3.848l-3.201-.453-.559 3.184L2.06 8.095 3.48 11l-1.42 2.904 2.856 1.516.559 3.184 3.201-.452L11 20.4l2.324-2.248 3.201.452.559-3.184 2.856-1.516L18.52 11l1.42-2.905-2.856-1.516-.559-3.184zm-7.09 7.575l3.428 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fill:"url(#0-a)"}),o.jsx("path",{d:"M13.101 4.533L11 2.5 8.899 4.533l-2.895-.41-.505 2.88-2.583 1.37L4.2 11l-1.284 2.627 2.583 1.37.505 2.88 2.895-.41L11 19.5l2.101-2.033 2.895.41.505-2.88 2.583-1.37L17.8 11l1.284-2.627-2.583-1.37-.505-2.88zm-6.868 6.89l3.429 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fill:"url(#0-b)"}),o.jsx("path",{d:"M6.233 11.423l3.429 3.428 5.65-6.17.038-.033-.005 1.398-5.683 6.206-3.429-3.429-.003-1.405.005.003z",fill:"#d18800"})]})]})}),wr=()=>o.jsx("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:Mt.verified,children:o.jsx("g",{children:o.jsx("path",{clipRule:"evenodd",d:"M12.05 2.056c-.568-.608-1.532-.608-2.1 0l-1.393 1.49c-.284.303-.685.47-1.1.455L5.42 3.932c-.832-.028-1.514.654-1.486 1.486l.069 2.039c.014.415-.152.816-.456 1.1l-1.49 1.392c-.608.568-.608 1.533 0 2.101l1.49 1.393c.304.284.47.684.456 1.1l-.07 2.038c-.027.832.655 1.514 1.487 1.486l2.038-.069c.415-.014.816.152 1.1.455l1.392 1.49c.569.609 1.533.609 2.102 0l1.393-1.49c.283-.303.684-.47 1.099-.455l2.038.069c.832.028 1.515-.654 1.486-1.486L18 14.542c-.015-.415.152-.815.455-1.099l1.49-1.393c.608-.568.608-1.533 0-2.101l-1.49-1.393c-.303-.283-.47-.684-.455-1.1l.068-2.038c.029-.832-.654-1.514-1.486-1.486l-2.038.07c-.415.013-.816-.153-1.1-.456zm-5.817 9.367l3.429 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fillRule:"evenodd"})})}),yr="_root_98iqw_1",br="_article_98iqw_21",Lt={root:yr,article:br},kt=({className:e,children:t})=>o.jsx("div",{className:ue("react-tweet-theme",Lt.root,e),children:o.jsx("article",{className:Lt.article,children:t})}),Qt=e=>o.jsx("img",{...e}),Tr="_header_nqq4j_1",Or="_avatar_nqq4j_11",jr="_avatarOverflow_nqq4j_16",Er="_avatarSquare_nqq4j_23",Cr="_avatarShadow_nqq4j_26",Dr="_author_nqq4j_37",Mr="_authorLink_nqq4j_44",kr="_authorVerified_nqq4j_53",Sr="_authorLinkText_nqq4j_56",Rr="_authorMeta_nqq4j_63",Pr="_authorFollow_nqq4j_66",Nr="_username_nqq4j_69",Wr="_follow_nqq4j_74",qr="_separator_nqq4j_82",Ir="_brand_nqq4j_86",Lr="_twitterIcon_nqq4j_90",q={header:Tr,avatar:Or,avatarOverflow:jr,avatarSquare:Er,avatarShadow:Cr,author:Dr,authorLink:Mr,authorVerified:kr,authorLinkText:Sr,authorMeta:Rr,authorFollow:Pr,username:Nr,follow:Wr,separator:qr,brand:Ir,twitterIcon:Lr},Ur="_verifiedOld_lcna5_1",$r="_verifiedBlue_lcna5_4",Fr="_verifiedGovernment_lcna5_7",We={verifiedOld:Ur,verifiedBlue:$r,verifiedGovernment:Fr},Xt=({user:e,className:t})=>{const r=e.verified||e.is_blue_verified||e.verified_type;let a=o.jsx(gr,{}),n=We.verifiedBlue;if(r)switch(e.is_blue_verified||(n=We.verifiedOld),e.verified_type){case"Government":a=o.jsx(wr,{}),n=We.verifiedGovernment;break;case"Business":a=o.jsx(xr,{}),n=null;break}return r?o.jsx("div",{className:ue(t,n),children:a}):null},Yr=({tweet:e,components:t})=>{var r;const a=(r=t?.AvatarImg)!=null?r:Qt,{user:n}=e;return o.jsxs("div",{className:q.header,children:[o.jsxs("a",{href:e.url,className:q.avatar,target:"_blank",rel:"noopener noreferrer",children:[o.jsx("div",{className:ue(q.avatarOverflow,n.profile_image_shape==="Square"&&q.avatarSquare),children:o.jsx(a,{src:n.profile_image_url_https,alt:n.name,width:48,height:48})}),o.jsx("div",{className:q.avatarOverflow,children:o.jsx("div",{className:q.avatarShadow})})]}),o.jsxs("div",{className:q.author,children:[o.jsxs("a",{href:e.url,className:q.authorLink,target:"_blank",rel:"noopener noreferrer",children:[o.jsx("div",{className:q.authorLinkText,children:o.jsx("span",{title:n.name,children:n.name})}),o.jsx(Xt,{user:n,className:q.authorVerified})]}),o.jsxs("div",{className:q.authorMeta,children:[o.jsx("a",{href:e.url,className:q.username,target:"_blank",rel:"noopener noreferrer",children:o.jsxs("span",{title:`@${n.screen_name}`,children:["@",n.screen_name]})}),o.jsxs("div",{className:q.authorFollow,children:[o.jsx("span",{className:q.separator,children:"·"}),o.jsx("a",{href:n.follow_url,className:q.follow,target:"_blank",rel:"noopener noreferrer",children:"Follow"})]})]})]}),o.jsx("a",{href:e.url,className:q.brand,target:"_blank",rel:"noopener noreferrer","aria-label":"View on Twitter",children:o.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:q.twitterIcon,children:o.jsx("g",{children:o.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})})})]})},Vr="_root_1ec15_1",Ar={root:Vr},Br=({tweet:e})=>o.jsxs("a",{href:e.in_reply_to_url,className:Ar.root,target:"_blank",rel:"noopener noreferrer",children:["Replying to @",e.in_reply_to_screen_name]}),Hr="_root_eihfa_1",zr={root:Hr},Gr=({href:e,children:t})=>o.jsx("a",{href:e,className:zr.root,target:"_blank",rel:"noopener noreferrer",children:t}),Qr="_root_1xq52_1",Xr={root:Qr},Jr=({tweet:e})=>o.jsx("p",{className:Xr.root,children:e.entities.map((t,r)=>{switch(t.type){case"hashtag":case"mention":case"url":case"symbol":return o.jsx(Gr,{href:t.href,children:t.text},r);case"media":return;default:return o.jsx("span",{dangerouslySetInnerHTML:{__html:t.text}},r)}})}),Ut=e=>`https://twitter.com/${e.user.screen_name}/status/${e.id_str}`,Jt=e=>`https://twitter.com/${typeof e=="string"?e:e.user.screen_name}`,Kr=e=>`https://twitter.com/intent/like?tweet_id=${e.id_str}`,Zr=e=>`https://twitter.com/intent/tweet?in_reply_to=${e.id_str}`,ea=e=>`https://twitter.com/intent/follow?screen_name=${e.user.screen_name}`,ta=e=>`https://twitter.com/hashtag/${e.text}`,ra=e=>`https://twitter.com/search?q=%24${e.text}`,aa=e=>`https://twitter.com/${e.in_reply_to_screen_name}/status/${e.in_reply_to_status_id_str}`,Kt=(e,t)=>{const r=new URL(e.media_url_https),a=r.pathname.split(".").pop();return a?(r.pathname=r.pathname.replace(`.${a}`,""),r.searchParams.set("format",a),r.searchParams.set("name",t),r.toString()):e.media_url_https},na=e=>{const{variants:t}=e.video_info;return t.filter(a=>a.content_type==="video/mp4").sort((a,n)=>{var i,d;return((i=n.bitrate)!=null?i:0)-((d=a.bitrate)!=null?d:0)})},oa=e=>{const t=na(e);return t.length>1?t[1]:t[0]},Ve=e=>e>999999?`${(e/1e6).toFixed(1)}M`:e>999?`${(e/1e3).toFixed(1)}K`:e.toString();function $t(e){const t=Array.from(e.text),r=[{indices:e.display_text_range,type:"text"}];return Te(r,"hashtag",e.entities.hashtags),Te(r,"mention",e.entities.user_mentions),Te(r,"url",e.entities.urls),Te(r,"symbol",e.entities.symbols),e.entities.media&&Te(r,"media",e.entities.media),ia(e,r),r.map(a=>{const n=t.slice(a.indices[0],a.indices[1]).join("");switch(a.type){case"hashtag":return Object.assign(a,{href:ta(a),text:n});case"mention":return Object.assign(a,{href:Jt(a.screen_name),text:n});case"url":case"media":return Object.assign(a,{href:a.expanded_url,text:a.display_url});case"symbol":return Object.assign(a,{href:ra(a),text:n});default:return Object.assign(a,{text:n})}})}function Te(e,t,r){for(const a of r)for(const[n,i]of e.entries()){if(i.indices[0]>a.indices[0]||i.indices[1]a.indices[1]&&d.push({indices:[a.indices[1],i.indices[1]],type:"text"}),e.splice(n,1,...d);break}}function ia(e,t){e.entities.media&&e.entities.media[0].indices[0]e.display_text_range[1]&&(r.indices[1]=e.display_text_range[1])}const sa=e=>({...e,url:Ut(e),user:{...e.user,url:Jt(e),follow_url:ea(e)},like_url:Kr(e),reply_url:Zr(e),in_reply_to_url:e.in_reply_to_screen_name?aa(e):void 0,entities:$t(e),quoted_tweet:e.quoted_tweet?{...e.quoted_tweet,url:Ut(e.quoted_tweet),entities:$t(e.quoted_tweet)}:void 0}),ua="_root_g9tkv_1",la="_rounded_g9tkv_6",da="_mediaWrapper_g9tkv_10",ca="_grid2Columns_g9tkv_17",fa="_grid3_g9tkv_20",va="_grid2x2_g9tkv_23",ha="_mediaContainer_g9tkv_26",ma="_mediaLink_g9tkv_34",_a="_skeleton_g9tkv_38",pa="_image_g9tkv_43",A={root:ua,rounded:la,mediaWrapper:da,grid2Columns:ca,grid3:fa,grid2x2:va,mediaContainer:ha,mediaLink:ma,skeleton:_a,image:pa},ga="_anchor_fp31d_1",xa="_videoButton_fp31d_17",wa="_videoButtonIcon_fp31d_35",ya="_watchOnTwitter_fp31d_44",ba="_viewReplies_fp31d_60",ge={anchor:ga,videoButton:xa,videoButtonIcon:wa,watchOnTwitter:ya,viewReplies:ba},Ta=({tweet:e,media:t})=>{const[r,a]=D.useState(!0),[n,i]=D.useState(!1),[d,v]=D.useState(!1),s=oa(t);let l=0;return o.jsxs(o.Fragment,{children:[o.jsx("video",{className:A.image,poster:Kt(t,"small"),controls:!r,muted:!0,preload:"metadata",tabIndex:r?-1:0,onPlay:()=>{l&&window.clearTimeout(l),n||i(!0),d&&v(!1)},onPause:()=>{l&&window.clearTimeout(l),l=window.setTimeout(()=>{n&&i(!1),l=0},100)},onEnded:()=>{v(!0)},children:o.jsx("source",{src:s.url,type:s.content_type})}),r&&o.jsx("button",{type:"button",className:ge.videoButton,"aria-label":"View video on Twitter",onClick:m=>{const x=m.currentTarget.previousSibling;m.preventDefault(),a(!1),i(!0),x.play(),x.focus()},children:o.jsx("svg",{viewBox:"0 0 24 24",className:ge.videoButtonIcon,"aria-hidden":"true",children:o.jsx("g",{children:o.jsx("path",{d:"M21 12L4 2v20l17-10z"})})})}),!n&&!d&&o.jsx("div",{className:ge.watchOnTwitter,children:o.jsx("a",{href:e.url,className:ge.anchor,target:"_blank",rel:"noopener noreferrer",children:r?"Watch on Twitter":"Continue watching on Twitter"})}),d&&o.jsx("a",{href:e.url,className:ue(ge.anchor,ge.viewReplies),target:"_blank",rel:"noopener noreferrer",children:"View replies"})]})},Oa=e=>o.jsx("img",{...e}),Ft=(e,t)=>{let r=56.25;return t===1&&(r=100/e.original_info.width*e.original_info.height),t===2&&(r=r*2),{width:e.type==="photo"?void 0:"unset",paddingBottom:`${r}%`}},Zt=({tweet:e,components:t,quoted:r})=>{var a,n,i;const d=(i=(a=e.mediaDetails)==null?void 0:a.length)!=null?i:0;var v;const s=(v=t?.MediaImg)!=null?v:Oa;return o.jsx("div",{className:ue(A.root,!r&&A.rounded),children:o.jsx("div",{className:ue(A.mediaWrapper,d>1&&A.grid2Columns,d===3&&A.grid3,d>4&&A.grid2x2),children:(n=e.mediaDetails)==null?void 0:n.map(l=>o.jsx(D.Fragment,{children:l.type==="photo"?o.jsxs("a",{href:e.url,className:ue(A.mediaContainer,A.mediaLink),target:"_blank",rel:"noopener noreferrer",children:[o.jsx("div",{className:A.skeleton,style:Ft(l,d)}),o.jsx(s,{src:Kt(l,"small"),alt:l.ext_alt_text||"Image",className:A.image,draggable:!0})]},l.media_url_https):o.jsxs("div",{className:A.mediaContainer,children:[o.jsx("div",{className:A.skeleton,style:Ft(l,d)}),o.jsx(Ta,{tweet:e,media:l})]},l.media_url_https)},l.media_url_https))})})};var Ae={exports:{}},er={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(er);var P=er.exports,Be={exports:{}},He={exports:{}},tr={exports:{}};(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(tr);var rr=tr.exports,ze={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a,n){if(n.length1?"s":"")+" required, but only "+n.length+" present")}e.exports=t.default})(ze,ze.exports);var $=ze.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=r(rr),n=r($);function i(d){return(0,n.default)(1,arguments),d instanceof Date||(0,a.default)(d)==="object"&&Object.prototype.toString.call(d)==="[object Date]"}e.exports=t.default})(He,He.exports);var ja=He.exports,Ge={exports:{}};(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=r(rr),n=r($);function i(d){(0,n.default)(1,arguments);var v=Object.prototype.toString.call(d);return d instanceof Date||(0,a.default)(d)==="object"&&v==="[object Date]"?new Date(d.getTime()):typeof d=="number"||v==="[object Number]"?new Date(d):((typeof d=="string"||v==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Ge,Ge.exports);var J=Ge.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var a=r(ja),n=r(J),i=r($);function d(v){if((0,i.default)(1,arguments),!(0,a.default)(v)&&typeof v!="number")return!1;var s=(0,n.default)(v);return!isNaN(Number(s))}e.exports=t.default})(Be,Be.exports);var Ea=Be.exports,Qe={exports:{}},Xe={exports:{}},Je={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){if(a===null||a===!0||a===!1)return NaN;var n=Number(a);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}e.exports=t.default})(Je,Je.exports);var xe=Je.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var a=r(xe),n=r(J),i=r($);function d(v,s){(0,i.default)(2,arguments);var l=(0,n.default)(v).getTime(),m=(0,a.default)(s);return new Date(l+m)}e.exports=t.default})(Xe,Xe.exports);var Ca=Xe.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var a=r(Ca),n=r($),i=r(xe);function d(v,s){(0,n.default)(2,arguments);var l=(0,i.default)(s);return(0,a.default)(v,-l)}e.exports=t.default})(Qe,Qe.exports);var Da=Qe.exports,Ke={exports:{}},Ze={exports:{}};(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var a=r(J),n=r($),i=864e5;function d(v){(0,n.default)(1,arguments);var s=(0,a.default)(v),l=s.getTime();s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0);var m=s.getTime(),x=l-m;return Math.floor(x/i)+1}e.exports=t.default})(Ze,Ze.exports);var Ma=Ze.exports,et={exports:{}},tt={exports:{}};(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=r(J),n=r($);function i(d){(0,n.default)(1,arguments);var v=1,s=(0,a.default)(d),l=s.getUTCDay(),m=(l=x.getTime()?l+1:s.getTime()>=b.getTime()?l:l-1}e.exports=t.default})(at,at.exports);var ar=at.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var a=r(ar),n=r(St),i=r($);function d(v){(0,i.default)(1,arguments);var s=(0,a.default)(v),l=new Date(0);l.setUTCFullYear(s,0,4),l.setUTCHours(0,0,0,0);var m=(0,n.default)(l);return m}e.exports=t.default})(rt,rt.exports);var ka=rt.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var a=r(J),n=r(St),i=r(ka),d=r($),v=6048e5;function s(l){(0,d.default)(1,arguments);var m=(0,a.default)(l),x=(0,n.default)(m).getTime()-(0,i.default)(m).getTime();return Math.round(x/v)+1}e.exports=t.default})(et,et.exports);var Sa=et.exports,nt={exports:{}},ot={exports:{}},ve={};Object.defineProperty(ve,"__esModule",{value:!0});ve.getDefaultOptions=Ra;ve.setDefaultOptions=Pa;var nr={};function Ra(){return nr}function Pa(e){nr=e}(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var a=r(J),n=r($),i=r(xe),d=ve;function v(s,l){var m,x,y,b,w,O,p,u;(0,n.default)(1,arguments);var h=(0,d.getDefaultOptions)(),f=(0,i.default)((m=(x=(y=(b=l?.weekStartsOn)!==null&&b!==void 0?b:l==null||(w=l.locale)===null||w===void 0||(O=w.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&y!==void 0?y:h.weekStartsOn)!==null&&x!==void 0?x:(p=h.locale)===null||p===void 0||(u=p.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&m!==void 0?m:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,a.default)(s),_=c.getUTCDay(),g=(_=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(c+1,0,g),T.setUTCHours(0,0,0,0);var M=(0,i.default)(T,m),F=new Date(0);F.setUTCFullYear(c,0,g),F.setUTCHours(0,0,0,0);var I=(0,i.default)(F,m);return f.getTime()>=M.getTime()?c+1:f.getTime()>=I.getTime()?c:c-1}e.exports=t.default})(st,st.exports);var or=st.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var a=r(or),n=r($),i=r(Rt),d=r(xe),v=ve;function s(l,m){var x,y,b,w,O,p,u,h;(0,n.default)(1,arguments);var f=(0,v.getDefaultOptions)(),c=(0,d.default)((x=(y=(b=(w=m?.firstWeekContainsDate)!==null&&w!==void 0?w:m==null||(O=m.locale)===null||O===void 0||(p=O.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&b!==void 0?b:f.firstWeekContainsDate)!==null&&y!==void 0?y:(u=f.locale)===null||u===void 0||(h=u.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&x!==void 0?x:1),_=(0,a.default)(l,m),g=new Date(0);g.setUTCFullYear(_,0,c),g.setUTCHours(0,0,0,0);var T=(0,i.default)(g,m);return T}e.exports=t.default})(it,it.exports);var Na=it.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var a=r(J),n=r(Rt),i=r(Na),d=r($),v=6048e5;function s(l,m){(0,d.default)(1,arguments);var x=(0,a.default)(l),y=(0,n.default)(x,m).getTime()-(0,i.default)(x,m).getTime();return Math.round(y/v)+1}e.exports=t.default})(nt,nt.exports);var Wa=nt.exports,ut={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a,n){for(var i=a<0?"-":"",d=Math.abs(a).toString();d.length0?l:1-l;return(0,a.default)(s==="yy"?m%100:m,s.length)},M:function(v,s){var l=v.getUTCMonth();return s==="M"?String(l+1):(0,a.default)(l+1,2)},d:function(v,s){return(0,a.default)(v.getUTCDate(),s.length)},a:function(v,s){var l=v.getUTCHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return l.toUpperCase();case"aaa":return l;case"aaaaa":return l[0];case"aaaa":default:return l==="am"?"a.m.":"p.m."}},h:function(v,s){return(0,a.default)(v.getUTCHours()%12||12,s.length)},H:function(v,s){return(0,a.default)(v.getUTCHours(),s.length)},m:function(v,s){return(0,a.default)(v.getUTCMinutes(),s.length)},s:function(v,s){return(0,a.default)(v.getUTCSeconds(),s.length)},S:function(v,s){var l=s.length,m=v.getUTCMilliseconds(),x=Math.floor(m*Math.pow(10,l-3));return(0,a.default)(x,s.length)}},i=n;t.default=i,e.exports=t.default})(lt,lt.exports);var qa=lt.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(Ma),n=r(Sa),i=r(ar),d=r(Wa),v=r(or),s=r(ir),l=r(qa),m={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},x={G:function(u,h,f){var c=u.getUTCFullYear()>0?1:0;switch(h){case"G":case"GG":case"GGG":return f.era(c,{width:"abbreviated"});case"GGGGG":return f.era(c,{width:"narrow"});case"GGGG":default:return f.era(c,{width:"wide"})}},y:function(u,h,f){if(h==="yo"){var c=u.getUTCFullYear(),_=c>0?c:1-c;return f.ordinalNumber(_,{unit:"year"})}return l.default.y(u,h)},Y:function(u,h,f,c){var _=(0,v.default)(u,c),g=_>0?_:1-_;if(h==="YY"){var T=g%100;return(0,s.default)(T,2)}return h==="Yo"?f.ordinalNumber(g,{unit:"year"}):(0,s.default)(g,h.length)},R:function(u,h){var f=(0,i.default)(u);return(0,s.default)(f,h.length)},u:function(u,h){var f=u.getUTCFullYear();return(0,s.default)(f,h.length)},Q:function(u,h,f){var c=Math.ceil((u.getUTCMonth()+1)/3);switch(h){case"Q":return String(c);case"QQ":return(0,s.default)(c,2);case"Qo":return f.ordinalNumber(c,{unit:"quarter"});case"QQQ":return f.quarter(c,{width:"abbreviated",context:"formatting"});case"QQQQQ":return f.quarter(c,{width:"narrow",context:"formatting"});case"QQQQ":default:return f.quarter(c,{width:"wide",context:"formatting"})}},q:function(u,h,f){var c=Math.ceil((u.getUTCMonth()+1)/3);switch(h){case"q":return String(c);case"qq":return(0,s.default)(c,2);case"qo":return f.ordinalNumber(c,{unit:"quarter"});case"qqq":return f.quarter(c,{width:"abbreviated",context:"standalone"});case"qqqqq":return f.quarter(c,{width:"narrow",context:"standalone"});case"qqqq":default:return f.quarter(c,{width:"wide",context:"standalone"})}},M:function(u,h,f){var c=u.getUTCMonth();switch(h){case"M":case"MM":return l.default.M(u,h);case"Mo":return f.ordinalNumber(c+1,{unit:"month"});case"MMM":return f.month(c,{width:"abbreviated",context:"formatting"});case"MMMMM":return f.month(c,{width:"narrow",context:"formatting"});case"MMMM":default:return f.month(c,{width:"wide",context:"formatting"})}},L:function(u,h,f){var c=u.getUTCMonth();switch(h){case"L":return String(c+1);case"LL":return(0,s.default)(c+1,2);case"Lo":return f.ordinalNumber(c+1,{unit:"month"});case"LLL":return f.month(c,{width:"abbreviated",context:"standalone"});case"LLLLL":return f.month(c,{width:"narrow",context:"standalone"});case"LLLL":default:return f.month(c,{width:"wide",context:"standalone"})}},w:function(u,h,f,c){var _=(0,d.default)(u,c);return h==="wo"?f.ordinalNumber(_,{unit:"week"}):(0,s.default)(_,h.length)},I:function(u,h,f){var c=(0,n.default)(u);return h==="Io"?f.ordinalNumber(c,{unit:"week"}):(0,s.default)(c,h.length)},d:function(u,h,f){return h==="do"?f.ordinalNumber(u.getUTCDate(),{unit:"date"}):l.default.d(u,h)},D:function(u,h,f){var c=(0,a.default)(u);return h==="Do"?f.ordinalNumber(c,{unit:"dayOfYear"}):(0,s.default)(c,h.length)},E:function(u,h,f){var c=u.getUTCDay();switch(h){case"E":case"EE":case"EEE":return f.day(c,{width:"abbreviated",context:"formatting"});case"EEEEE":return f.day(c,{width:"narrow",context:"formatting"});case"EEEEEE":return f.day(c,{width:"short",context:"formatting"});case"EEEE":default:return f.day(c,{width:"wide",context:"formatting"})}},e:function(u,h,f,c){var _=u.getUTCDay(),g=(_-c.weekStartsOn+8)%7||7;switch(h){case"e":return String(g);case"ee":return(0,s.default)(g,2);case"eo":return f.ordinalNumber(g,{unit:"day"});case"eee":return f.day(_,{width:"abbreviated",context:"formatting"});case"eeeee":return f.day(_,{width:"narrow",context:"formatting"});case"eeeeee":return f.day(_,{width:"short",context:"formatting"});case"eeee":default:return f.day(_,{width:"wide",context:"formatting"})}},c:function(u,h,f,c){var _=u.getUTCDay(),g=(_-c.weekStartsOn+8)%7||7;switch(h){case"c":return String(g);case"cc":return(0,s.default)(g,h.length);case"co":return f.ordinalNumber(g,{unit:"day"});case"ccc":return f.day(_,{width:"abbreviated",context:"standalone"});case"ccccc":return f.day(_,{width:"narrow",context:"standalone"});case"cccccc":return f.day(_,{width:"short",context:"standalone"});case"cccc":default:return f.day(_,{width:"wide",context:"standalone"})}},i:function(u,h,f){var c=u.getUTCDay(),_=c===0?7:c;switch(h){case"i":return String(_);case"ii":return(0,s.default)(_,h.length);case"io":return f.ordinalNumber(_,{unit:"day"});case"iii":return f.day(c,{width:"abbreviated",context:"formatting"});case"iiiii":return f.day(c,{width:"narrow",context:"formatting"});case"iiiiii":return f.day(c,{width:"short",context:"formatting"});case"iiii":default:return f.day(c,{width:"wide",context:"formatting"})}},a:function(u,h,f){var c=u.getUTCHours(),_=c/12>=1?"pm":"am";switch(h){case"a":case"aa":return f.dayPeriod(_,{width:"abbreviated",context:"formatting"});case"aaa":return f.dayPeriod(_,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return f.dayPeriod(_,{width:"narrow",context:"formatting"});case"aaaa":default:return f.dayPeriod(_,{width:"wide",context:"formatting"})}},b:function(u,h,f){var c=u.getUTCHours(),_;switch(c===12?_=m.noon:c===0?_=m.midnight:_=c/12>=1?"pm":"am",h){case"b":case"bb":return f.dayPeriod(_,{width:"abbreviated",context:"formatting"});case"bbb":return f.dayPeriod(_,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return f.dayPeriod(_,{width:"narrow",context:"formatting"});case"bbbb":default:return f.dayPeriod(_,{width:"wide",context:"formatting"})}},B:function(u,h,f){var c=u.getUTCHours(),_;switch(c>=17?_=m.evening:c>=12?_=m.afternoon:c>=4?_=m.morning:_=m.night,h){case"B":case"BB":case"BBB":return f.dayPeriod(_,{width:"abbreviated",context:"formatting"});case"BBBBB":return f.dayPeriod(_,{width:"narrow",context:"formatting"});case"BBBB":default:return f.dayPeriod(_,{width:"wide",context:"formatting"})}},h:function(u,h,f){if(h==="ho"){var c=u.getUTCHours()%12;return c===0&&(c=12),f.ordinalNumber(c,{unit:"hour"})}return l.default.h(u,h)},H:function(u,h,f){return h==="Ho"?f.ordinalNumber(u.getUTCHours(),{unit:"hour"}):l.default.H(u,h)},K:function(u,h,f){var c=u.getUTCHours()%12;return h==="Ko"?f.ordinalNumber(c,{unit:"hour"}):(0,s.default)(c,h.length)},k:function(u,h,f){var c=u.getUTCHours();return c===0&&(c=24),h==="ko"?f.ordinalNumber(c,{unit:"hour"}):(0,s.default)(c,h.length)},m:function(u,h,f){return h==="mo"?f.ordinalNumber(u.getUTCMinutes(),{unit:"minute"}):l.default.m(u,h)},s:function(u,h,f){return h==="so"?f.ordinalNumber(u.getUTCSeconds(),{unit:"second"}):l.default.s(u,h)},S:function(u,h){return l.default.S(u,h)},X:function(u,h,f,c){var _=c._originalDate||u,g=_.getTimezoneOffset();if(g===0)return"Z";switch(h){case"X":return b(g);case"XXXX":case"XX":return w(g);case"XXXXX":case"XXX":default:return w(g,":")}},x:function(u,h,f,c){var _=c._originalDate||u,g=_.getTimezoneOffset();switch(h){case"x":return b(g);case"xxxx":case"xx":return w(g);case"xxxxx":case"xxx":default:return w(g,":")}},O:function(u,h,f,c){var _=c._originalDate||u,g=_.getTimezoneOffset();switch(h){case"O":case"OO":case"OOO":return"GMT"+y(g,":");case"OOOO":default:return"GMT"+w(g,":")}},z:function(u,h,f,c){var _=c._originalDate||u,g=_.getTimezoneOffset();switch(h){case"z":case"zz":case"zzz":return"GMT"+y(g,":");case"zzzz":default:return"GMT"+w(g,":")}},t:function(u,h,f,c){var _=c._originalDate||u,g=Math.floor(_.getTime()/1e3);return(0,s.default)(g,h.length)},T:function(u,h,f,c){var _=c._originalDate||u,g=_.getTime();return(0,s.default)(g,h.length)}};function y(p,u){var h=p>0?"-":"+",f=Math.abs(p),c=Math.floor(f/60),_=f%60;if(_===0)return h+String(c);var g=u||"";return h+String(c)+g+(0,s.default)(_,2)}function b(p,u){if(p%60===0){var h=p>0?"-":"+";return h+(0,s.default)(Math.abs(p)/60,2)}return w(p,u)}function w(p,u){var h=u||"",f=p>0?"-":"+",c=Math.abs(p),_=(0,s.default)(Math.floor(c/60),2),g=(0,s.default)(c%60,2);return f+_+h+g}var O=x;t.default=O,e.exports=t.default})(Ke,Ke.exports);var Ia=Ke.exports,dt={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(s,l){switch(s){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}},a=function(s,l){switch(s){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}},n=function(s,l){var m=s.match(/(P+)(p+)?/)||[],x=m[1],y=m[2];if(!y)return r(s,l);var b;switch(x){case"P":b=l.dateTime({width:"short"});break;case"PP":b=l.dateTime({width:"medium"});break;case"PPP":b=l.dateTime({width:"long"});break;case"PPPP":default:b=l.dateTime({width:"full"});break}return b.replace("{{date}}",r(x,l)).replace("{{time}}",a(y,l))},i={p:a,P:n},d=i;t.default=d,e.exports=t.default})(dt,dt.exports);var La=dt.exports,ct={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){var n=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return n.setUTCFullYear(a.getFullYear()),a.getTime()-n.getTime()}e.exports=t.default})(ct,ct.exports);var Ua=ct.exports,Ce={};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.isProtectedDayOfYearToken=Ya;Ce.isProtectedWeekYearToken=Va;Ce.throwProtectedError=Aa;var $a=["D","DD"],Fa=["YY","YYYY"];function Ya(e){return $a.indexOf(e)!==-1}function Va(e){return Fa.indexOf(e)!==-1}function Aa(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var ft={exports:{}},vt={exports:{}},ht={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},a=function(d,v,s){var l,m=r[d];return typeof m=="string"?l=m:v===1?l=m.one:l=m.other.replace("{{count}}",v.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+l:l+" ago":l},n=a;t.default=n,e.exports=t.default})(ht,ht.exports);var Ba=ht.exports,mt={exports:{}},_t={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.width?String(n.width):a.defaultWidth,d=a.formats[i]||a.formats[a.defaultWidth];return d}}e.exports=t.default})(_t,_t.exports);var Ha=_t.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(Ha),n={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},d={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},v={date:(0,a.default)({formats:n,defaultWidth:"full"}),time:(0,a.default)({formats:i,defaultWidth:"full"}),dateTime:(0,a.default)({formats:d,defaultWidth:"full"})},s=v;t.default=s,e.exports=t.default})(mt,mt.exports);var za=mt.exports,pt={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},a=function(d,v,s,l){return r[d]},n=a;t.default=n,e.exports=t.default})(pt,pt.exports);var Ga=pt.exports,gt={exports:{}},xt={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){return function(n,i){var d=i!=null&&i.context?String(i.context):"standalone",v;if(d==="formatting"&&a.formattingValues){var s=a.defaultFormattingWidth||a.defaultWidth,l=i!=null&&i.width?String(i.width):s;v=a.formattingValues[l]||a.formattingValues[s]}else{var m=a.defaultWidth,x=i!=null&&i.width?String(i.width):a.defaultWidth;v=a.values[x]||a.values[m]}var y=a.argumentCallback?a.argumentCallback(n):n;return v[y]}}e.exports=t.default})(xt,xt.exports);var Qa=xt.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(Qa),n={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},d={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},v={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},s={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},m=function(w,O){var p=Number(w),u=p%100;if(u>20||u<10)switch(u%10){case 1:return p+"st";case 2:return p+"nd";case 3:return p+"rd"}return p+"th"},x={ordinalNumber:m,era:(0,a.default)({values:n,defaultWidth:"wide"}),quarter:(0,a.default)({values:i,defaultWidth:"wide",argumentCallback:function(w){return w-1}}),month:(0,a.default)({values:d,defaultWidth:"wide"}),day:(0,a.default)({values:v,defaultWidth:"wide"}),dayPeriod:(0,a.default)({values:s,defaultWidth:"wide",formattingValues:l,defaultFormattingWidth:"wide"})},y=x;t.default=y,e.exports=t.default})(gt,gt.exports);var Xa=gt.exports,wt={exports:{}},yt={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(i){return function(d){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=v.width,l=s&&i.matchPatterns[s]||i.matchPatterns[i.defaultMatchWidth],m=d.match(l);if(!m)return null;var x=m[0],y=s&&i.parsePatterns[s]||i.parsePatterns[i.defaultParseWidth],b=Array.isArray(y)?n(y,function(p){return p.test(x)}):a(y,function(p){return p.test(x)}),w;w=i.valueCallback?i.valueCallback(b):b,w=v.valueCallback?v.valueCallback(w):w;var O=d.slice(x.length);return{value:w,rest:O}}}function a(i,d){for(var v in i)if(i.hasOwnProperty(v)&&d(i[v]))return v}function n(i,d){for(var v=0;v1&&arguments[1]!==void 0?arguments[1]:{},d=n.match(a.matchPattern);if(!d)return null;var v=d[0],s=n.match(a.parsePattern);if(!s)return null;var l=a.valueCallback?a.valueCallback(s[0]):s[0];l=i.valueCallback?i.valueCallback(l):l;var m=n.slice(v.length);return{value:l,rest:m}}}e.exports=t.default})(bt,bt.exports);var Ka=bt.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(Ja),n=r(Ka),i=/^(\d+)(th|st|nd|rd)?/i,d=/\d+/i,v={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},s={any:[/^b/i,/^(a|c)/i]},l={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},m={any:[/1/i,/2/i,/3/i,/4/i]},x={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},y={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},b={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},w={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},O={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},p={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},u={ordinalNumber:(0,n.default)({matchPattern:i,parsePattern:d,valueCallback:function(c){return parseInt(c,10)}}),era:(0,a.default)({matchPatterns:v,defaultMatchWidth:"wide",parsePatterns:s,defaultParseWidth:"any"}),quarter:(0,a.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:m,defaultParseWidth:"any",valueCallback:function(c){return c+1}}),month:(0,a.default)({matchPatterns:x,defaultMatchWidth:"wide",parsePatterns:y,defaultParseWidth:"any"}),day:(0,a.default)({matchPatterns:b,defaultMatchWidth:"wide",parsePatterns:w,defaultParseWidth:"any"}),dayPeriod:(0,a.default)({matchPatterns:O,defaultMatchWidth:"any",parsePatterns:p,defaultParseWidth:"any"})},h=u;t.default=h,e.exports=t.default})(wt,wt.exports);var Za=wt.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(Ba),n=r(za),i=r(Ga),d=r(Xa),v=r(Za),s={code:"en-US",formatDistance:a.default,formatLong:n.default,formatRelative:i.default,localize:d.default,match:v.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},l=s;t.default=l,e.exports=t.default})(vt,vt.exports);var en=vt.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(en),n=a.default;t.default=n,e.exports=t.default})(ft,ft.exports);var tn=ft.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var a=r(Ea),n=r(Da),i=r(J),d=r(Ia),v=r(La),s=r(Ua),l=Ce,m=r(xe),x=r($),y=ve,b=r(tn),w=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,p=/^'([^]*?)'?$/,u=/''/g,h=/[a-zA-Z]/;function f(_,g,T){var M,F,I,z,ae,H,N,we,he,me,G,_e,ye,Q,X,ne,pe,oe;(0,x.default)(2,arguments);var De=String(g),ie=(0,y.getDefaultOptions)(),de=(M=(F=T?.locale)!==null&&F!==void 0?F:ie.locale)!==null&&M!==void 0?M:b.default,be=(0,m.default)((I=(z=(ae=(H=T?.firstWeekContainsDate)!==null&&H!==void 0?H:T==null||(N=T.locale)===null||N===void 0||(we=N.options)===null||we===void 0?void 0:we.firstWeekContainsDate)!==null&&ae!==void 0?ae:ie.firstWeekContainsDate)!==null&&z!==void 0?z:(he=ie.locale)===null||he===void 0||(me=he.options)===null||me===void 0?void 0:me.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(be>=1&&be<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var K=(0,m.default)((G=(_e=(ye=(Q=T?.weekStartsOn)!==null&&Q!==void 0?Q:T==null||(X=T.locale)===null||X===void 0||(ne=X.options)===null||ne===void 0?void 0:ne.weekStartsOn)!==null&&ye!==void 0?ye:ie.weekStartsOn)!==null&&_e!==void 0?_e:(pe=ie.locale)===null||pe===void 0||(oe=pe.options)===null||oe===void 0?void 0:oe.weekStartsOn)!==null&&G!==void 0?G:0);if(!(K>=0&&K<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!de.localize)throw new RangeError("locale must contain localize property");if(!de.formatLong)throw new RangeError("locale must contain formatLong property");var ce=(0,i.default)(_);if(!(0,a.default)(ce))throw new RangeError("Invalid time value");var E=(0,s.default)(ce),C=(0,n.default)(ce,E),W={firstWeekContainsDate:be,weekStartsOn:K,locale:de,_originalDate:ce},S=De.match(O).map(function(k){var L=k[0];if(L==="p"||L==="P"){var R=v.default[L];return R(k,de.formatLong)}return k}).join("").match(w).map(function(k){if(k==="''")return"'";var L=k[0];if(L==="'")return c(k);var R=d.default[L];if(R)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,l.isProtectedWeekYearToken)(k)&&(0,l.throwProtectedError)(k,g,String(_)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,l.isProtectedDayOfYearToken)(k)&&(0,l.throwProtectedError)(k,g,String(_)),R(C,k,de.localize,W);if(L.match(h))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");return k}).join("");return S}function c(_){var g=_.match(p);return g?g[1].replace(u,"'"):_}e.exports=t.default})(Ae,Ae.exports);var rn=Ae.exports;const Yt=mr(rn),se=()=>{},V=se(),qe=Object,j=e=>e===V,re=e=>typeof e=="function",le=(e,t)=>({...e,...t}),an=e=>re(e.then),Me=new WeakMap;let nn=0;const je=e=>{const t=typeof e,r=e&&e.constructor,a=r==Date;let n,i;if(qe(e)===e&&!a&&r!=RegExp){if(n=Me.get(e),n)return n;if(n=++nn+"~",Me.set(e,n),r==Array){for(n="@",i=0;iRe&&typeof window.requestAnimationFrame!=Pt,sr=(e,t)=>{const r=te.get(e);return[()=>!j(t)&&e.get(t)||Ie,a=>{if(!j(t)){const n=e.get(t);t in ke||(ke[t]=n),r[5](t,le(n,a),n||Ie)}},r[6],()=>!j(t)&&t in ke?ke[t]:!j(t)&&e.get(t)||Ie]};let Ot=!0;const sn=()=>Ot,[jt,Et]=Re&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[se,se],un=()=>{const e=Tt&&document.visibilityState;return j(e)||e!=="hidden"},ln=e=>(Tt&&document.addEventListener("visibilitychange",e),jt("focus",e),()=>{Tt&&document.removeEventListener("visibilitychange",e),Et("focus",e)}),dn=e=>{const t=()=>{Ot=!0,e()},r=()=>{Ot=!1};return jt("online",t),jt("offline",r),()=>{Et("online",t),Et("offline",r)}},cn={isOnline:sn,isVisible:un},fn={initFocus:ln,initReconnect:dn},Vt=!Dt.useId,Ee=!Re||"Deno"in window,vn=e=>on()?window.requestAnimationFrame(e):setTimeout(e,1),Le=Ee?D.useEffect:D.useLayoutEffect,Ue=typeof navigator<"u"&&navigator.connection,At=!Ee&&Ue&&(["slow-2g","2g"].includes(Ue.effectiveType)||Ue.saveData),Nt=e=>{if(re(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?je(e):"",[e,t]};let hn=0;const Ct=()=>++hn,ur=0,lr=1,dr=2,mn=3;var Oe={__proto__:null,ERROR_REVALIDATE_EVENT:mn,FOCUS_EVENT:ur,MUTATE_EVENT:dr,RECONNECT_EVENT:lr};async function cr(...e){const[t,r,a,n]=e,i=le({populateCache:!0,throwOnError:!0},typeof n=="boolean"?{revalidate:n}:n||{});let d=i.populateCache;const v=i.rollbackOnError;let s=i.optimisticData;const l=i.revalidate!==!1,m=b=>typeof v=="function"?v(b):v!==!1,x=i.throwOnError;if(re(r)){const b=r,w=[],O=t.keys();for(const p of O)!/^\$(inf|sub)\$/.test(p)&&b(t.get(p)._k)&&w.push(p);return Promise.all(w.map(y))}return y(r);async function y(b){const[w]=Nt(b);if(!w)return;const[O,p]=sr(t,w),[u,h,f,c]=te.get(t),_=()=>{const N=u[w];return l&&(delete f[w],delete c[w],N&&N[0])?N[0](dr).then(()=>O().data):O().data};if(e.length<3)return _();let g=a,T;const M=Ct();h[w]=[M,0];const F=!j(s),I=O(),z=I.data,ae=I._c,H=j(ae)?z:ae;if(F&&(s=re(s)?s(H,z):s,p({data:s,_c:H})),re(g))try{g=g(H)}catch(N){T=N}if(g&&an(g))if(g=await g.catch(N=>{T=N}),M!==h[w][0]){if(T)throw T;return g}else T&&F&&m(T)&&(d=!0,p({data:H,_c:V}));if(d&&!T)if(re(d)){const N=d(g,H);p({data:N,error:V,_c:V})}else p({data:g,error:V,_c:V});if(h[w][1]=Ct(),Promise.resolve(_()).then(()=>{p({_c:V})}),T){if(x)throw T;return}return g}}const Bt=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},_n=(e,t)=>{if(!te.has(e)){const r=le(fn,t),a={},n=cr.bind(V,e);let i=se;const d={},v=(m,x)=>{const y=d[m]||[];return d[m]=y,y.push(x),()=>y.splice(y.indexOf(x),1)},s=(m,x,y)=>{e.set(m,x);const b=d[m];if(b)for(const w of b)w(x,y)},l=()=>{if(!te.has(e)&&(te.set(e,[a,{},{},{},n,s,v]),!Ee)){const m=r.initFocus(setTimeout.bind(V,Bt.bind(V,a,ur))),x=r.initReconnect(setTimeout.bind(V,Bt.bind(V,a,lr)));i=()=>{m&&m(),x&&x(),te.delete(e)}}};return l(),[e,n,l,i]}return[e,te.get(e)[4]]},pn=(e,t,r,a,n)=>{const i=r.errorRetryCount,d=n.retryCount,v=~~((Math.random()+.5)*(1<<(d<8?d:8)))*r.errorRetryInterval;!j(i)&&d>i||setTimeout(a,v,n)},gn=(e,t)=>je(e)==je(t),[fr,xn]=_n(new Map),wn=le({onLoadingSlow:se,onSuccess:se,onError:se,onErrorRetry:pn,onDiscarded:se,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:At?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:At?5e3:3e3,compare:gn,isPaused:()=>!1,cache:fr,mutate:xn,fallback:{}},cn),yn=(e,t)=>{const r=le(e,t);if(t){const{use:a,fallback:n}=e,{use:i,fallback:d}=t;a&&i&&(r.use=a.concat(i)),n&&d&&(r.fallback=le(n,d))}return r},bn=D.createContext({}),Tn="$inf$",vr=Re&&window.__SWR_DEVTOOLS_USE__,On=vr?window.__SWR_DEVTOOLS_USE__:[],jn=()=>{vr&&(window.__SWR_DEVTOOLS_REACT__=Dt)},En=e=>re(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Cn=()=>le(wn,D.useContext(bn)),Dn=e=>(t,r,a)=>e(t,r&&((...i)=>{const[d]=Nt(t),[,,,v]=te.get(fr);if(d.startsWith(Tn))return r(...i);const s=v[d];return j(s)?r(...i):(delete v[d],s)}),a),Mn=On.concat(Dn),kn=e=>function(...r){const a=Cn(),[n,i,d]=En(r),v=yn(a,d);let s=e;const{use:l}=v,m=(l||[]).concat(Mn);for(let x=m.length;x--;)s=m[x](s);return s(n,i||v.fetcher||null,v)},Sn=(e,t,r)=>{const a=t[e]||(t[e]=[]);return a.push(r),()=>{const n=a.indexOf(r);n>=0&&(a[n]=a[a.length-1],a.pop())}};jn();const Ht=Dt.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),$e={dedupe:!0},Rn=(e,t,r)=>{const{cache:a,compare:n,suspense:i,fallbackData:d,revalidateOnMount:v,revalidateIfStale:s,refreshInterval:l,refreshWhenHidden:m,refreshWhenOffline:x,keepPreviousData:y}=r,[b,w,O,p]=te.get(a),[u,h]=Nt(e),f=D.useRef(!1),c=D.useRef(!1),_=D.useRef(u),g=D.useRef(t),T=D.useRef(r),M=()=>T.current,F=()=>M().isVisible()&&M().isOnline(),[I,z,ae,H]=sr(a,u),N=D.useRef({}).current,we=j(d)?r.fallback[u]:d,he=(E,C)=>{for(const W in N){const S=W;if(S==="data"){if(!n(E[S],C[S])&&(!j(E[S])||!n(oe,C[S])))return!1}else if(C[S]!==E[S])return!1}return!0},me=D.useMemo(()=>{const E=!u||!t?!1:j(v)?M().isPaused()||i?!1:j(s)?!0:s:v,C=U=>{const Z=le(U);return delete Z._k,E?{isValidating:!0,isLoading:!0,...Z}:Z},W=I(),S=H(),k=C(W),L=W===S?k:C(S);let R=k;return[()=>{const U=C(I());return he(U,R)?(R.data=U.data,R.isLoading=U.isLoading,R.isValidating=U.isValidating,R.error=U.error,R):(R=U,U)},()=>L]},[a,u]),G=_r.useSyncExternalStore(D.useCallback(E=>ae(u,(C,W)=>{he(W,C)||E()}),[a,u]),me[0],me[1]),_e=!f.current,ye=b[u]&&b[u].length>0,Q=G.data,X=j(Q)?we:Q,ne=G.error,pe=D.useRef(X),oe=y?j(Q)?pe.current:Q:X,De=ye&&!j(ne)?!1:_e&&!j(v)?v:M().isPaused()?!1:i?j(X)?!1:s:j(X)||s,ie=!!(u&&t&&_e&&De),de=j(G.isValidating)?ie:G.isValidating,be=j(G.isLoading)?ie:G.isLoading,K=D.useCallback(async E=>{const C=g.current;if(!u||!C||c.current||M().isPaused())return!1;let W,S,k=!0;const L=E||{},R=!O[u]||!L.dedupe,U=()=>Vt?!c.current&&u===_.current&&f.current:u===_.current,Z={isValidating:!1,isLoading:!1},Wt=()=>{z(Z)},qt=()=>{const B=O[u];B&&B[1]===S&&delete O[u]},It={isValidating:!0};j(I().data)&&(It.isLoading=!0);try{if(R&&(z(It),r.loadingTimeout&&j(I().data)&&setTimeout(()=>{k&&U()&&M().onLoadingSlow(u,r)},r.loadingTimeout),O[u]=[C(h),Ct()]),[W,S]=O[u],W=await W,R&&setTimeout(qt,r.dedupingInterval),!O[u]||O[u][1]!==S)return R&&U()&&M().onDiscarded(u),!1;Z.error=V;const B=w[u];if(!j(B)&&(S<=B[0]||S<=B[1]||B[1]===0))return Wt(),R&&U()&&M().onDiscarded(u),!1;const ee=I().data;Z.data=n(ee,W)?ee:W,R&&U()&&M().onSuccess(W,u,r)}catch(B){qt();const ee=M(),{shouldRetryOnError:Pe}=ee;ee.isPaused()||(Z.error=B,R&&U()&&(ee.onError(B,u,ee),(Pe===!0||re(Pe)&&Pe(B))&&F()&&ee.onErrorRetry(B,u,ee,hr=>{const Ne=b[u];Ne&&Ne[0]&&Ne[0](Oe.ERROR_REVALIDATE_EVENT,hr)},{retryCount:(L.retryCount||0)+1,dedupe:!0})))}return k=!1,Wt(),!0},[u,a]),ce=D.useCallback((...E)=>cr(a,_.current,...E),[]);if(Le(()=>{g.current=t,T.current=r,j(Q)||(pe.current=Q)}),Le(()=>{if(!u)return;const E=K.bind(V,$e);let C=0;const S=Sn(u,b,(k,L={})=>{if(k==Oe.FOCUS_EVENT){const R=Date.now();M().revalidateOnFocus&&R>C&&F()&&(C=R+M().focusThrottleInterval,E())}else if(k==Oe.RECONNECT_EVENT)M().revalidateOnReconnect&&F()&&E();else{if(k==Oe.MUTATE_EVENT)return K();if(k==Oe.ERROR_REVALIDATE_EVENT)return K(L)}});return c.current=!1,_.current=u,f.current=!0,z({_k:h}),De&&(j(X)||Ee?E():vn(E)),()=>{c.current=!0,S()}},[u]),Le(()=>{let E;function C(){const S=re(l)?l(I().data):l;S&&E!==-1&&(E=setTimeout(W,S))}function W(){!I().error&&(m||M().isVisible())&&(x||M().isOnline())?K($e).then(C):C()}return C(),()=>{E&&(clearTimeout(E),E=-1)}},[l,m,x,u]),D.useDebugValue(oe),i&&j(X)&&u){if(!Vt&&Ee)throw new Error("Fallback data is required when using suspense in SSR.");g.current=t,T.current=r,c.current=!1;const E=p[u];if(!j(E)){const C=ce(E);Ht(C)}if(j(ne)){const C=K($e);j(oe)||(C.status="fulfilled",C.value=!0),Ht(C)}else throw ne}return{mutate:ce,get data(){return N.data=!0,oe},get error(){return N.error=!0,ne},get isValidating(){return N.isValidating=!0,de},get isLoading(){return N.isLoading=!0,be}}},zt=kn(Rn);class Pn extends Error{constructor({message:t,status:r,data:a}){super(t),this.name="TwitterApiError",this.status=r,this.data=a}}const Nn=zt.default||zt,Wn="https://react-tweet.vercel.app";async function qn([e,t]){const r=await fetch(e,t),a=await r.json();if(r.ok)return a.data||null;throw new Pn({message:`Failed to fetch tweet at "${e}" with "${r.status}".`,data:a,status:r.status})}const In=(e,t,r)=>{const{isLoading:a,data:n,error:i}=Nn(()=>t||e?[t||e&&`${Wn}/api/tweet/${e}`,r]:null,qn,{revalidateIfStale:!1,revalidateOnFocus:!1,shouldRetryOnError:!1});return{isLoading:!!(a||n===void 0&&!i),data:n,error:i}},Ln=()=>{const[e,t]=D.useState(!1);return D.useEffect(()=>t(!0),[]),e},Un="_root_i24yn_1",$n={root:Un},Fn=({tweet:e})=>{const t=Ln(),r=typeof window<"u"&&t?new Date(e.created_at):null;return r?o.jsx("a",{className:$n.root,href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":Yt(r,"h:mm a · MMM d, y"),children:o.jsx("time",{dateTime:r.toISOString(),children:Yt(r,"h:mm a · MMM d, y")})}):null},Yn="_info_19qcj_1",Vn="_infoLink_19qcj_10",An="_infoIcon_19qcj_30",Fe={info:Yn,infoLink:Vn,infoIcon:An},Bn=({tweet:e})=>o.jsxs("div",{className:Fe.info,children:[o.jsx(Fn,{tweet:e}),o.jsx("a",{className:Fe.infoLink,href:"https://help.twitter.com/en/twitter-for-websites-ads-info-and-privacy",target:"_blank",rel:"noopener noreferrer","aria-label":"Twitter for Websites, Ads Information and Privacy",children:o.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:Fe.infoIcon,children:o.jsx("g",{children:o.jsx("path",{d:"M13.5 8.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5S11.17 7 12 7s1.5.67 1.5 1.5zM13 17v-5h-2v5h2zm-1 5.25c5.66 0 10.25-4.59 10.25-10.25S17.66 1.75 12 1.75 1.75 6.34 1.75 12 6.34 22.25 12 22.25zM20.25 12c0 4.56-3.69 8.25-8.25 8.25S3.75 16.56 3.75 12 7.44 3.75 12 3.75s8.25 3.69 8.25 8.25z"})})})})]}),Hn="_actions_n2anf_1",zn="_like_n2anf_13",Gn="_reply_n2anf_14",Qn="_copy_n2anf_15",Xn="_likeIconWrapper_n2anf_27",Jn="_likeCount_n2anf_30",Kn="_replyIconWrapper_n2anf_35",Zn="_copyIconWrapper_n2anf_36",eo="_likeIcon_n2anf_27",to="_replyIcon_n2anf_35",ro="_copyIcon_n2anf_36",ao="_replyText_n2anf_56",no="_copyText_n2anf_57",Y={actions:Hn,like:zn,reply:Gn,copy:Qn,likeIconWrapper:Xn,likeCount:Jn,replyIconWrapper:Kn,copyIconWrapper:Zn,likeIcon:eo,replyIcon:to,copyIcon:ro,replyText:ao,copyText:no},oo=({tweet:e})=>{const[t,r]=D.useState(!1),[a,n]=D.useState(!1),i=()=>{navigator.clipboard.writeText(e.url),r(!0)};return D.useEffect(()=>{if(t){const d=setTimeout(()=>{r(!1),n(!0)},6e3);return()=>clearTimeout(d)}},[t]),o.jsxs("button",{type:"button",className:Y.copy,"aria-label":"Copy link",onClick:i,children:[o.jsx("div",{className:Y.copyIconWrapper,children:t?o.jsx("svg",{viewBox:"0 0 24 24",className:Y.copyIcon,"aria-hidden":"true",children:o.jsx("g",{children:o.jsx("path",{d:"M9.64 18.952l-5.55-4.861 1.317-1.504 3.951 3.459 8.459-10.948L19.4 6.32 9.64 18.952z"})})}):o.jsx("svg",{viewBox:"0 0 24 24",className:Y.copyIcon,"aria-hidden":"true",children:o.jsx("g",{children:o.jsx("path",{d:"M18.36 5.64c-1.95-1.96-5.11-1.96-7.07 0L9.88 7.05 8.46 5.64l1.42-1.42c2.73-2.73 7.16-2.73 9.9 0 2.73 2.74 2.73 7.17 0 9.9l-1.42 1.42-1.41-1.42 1.41-1.41c1.96-1.96 1.96-5.12 0-7.07zm-2.12 3.53l-7.07 7.07-1.41-1.41 7.07-7.07 1.41 1.41zm-12.02.71l1.42-1.42 1.41 1.42-1.41 1.41c-1.96 1.96-1.96 5.12 0 7.07 1.95 1.96 5.11 1.96 7.07 0l1.41-1.41 1.42 1.41-1.42 1.42c-2.73 2.73-7.16 2.73-9.9 0-2.73-2.74-2.73-7.17 0-9.9z"})})})}),o.jsx("span",{className:Y.copyText,children:t?"Copied!":a?"Copy link to Tweet":"Copy link"})]})},io=({tweet:e})=>{const t=Ve(e.favorite_count);return o.jsxs("div",{className:Y.actions,children:[o.jsxs("a",{className:Y.like,href:e.like_url,target:"_blank",rel:"noopener noreferrer","aria-label":`Like. This Tweet has ${t} likes`,children:[o.jsx("div",{className:Y.likeIconWrapper,children:o.jsx("svg",{viewBox:"0 0 24 24",className:Y.likeIcon,"aria-hidden":"true",children:o.jsx("g",{children:o.jsx("path",{d:"M20.884 13.19c-1.351 2.48-4.001 5.12-8.379 7.67l-.503.3-.504-.3c-4.379-2.55-7.029-5.19-8.382-7.67-1.36-2.5-1.41-4.86-.514-6.67.887-1.79 2.647-2.91 4.601-3.01 1.651-.09 3.368.56 4.798 2.01 1.429-1.45 3.146-2.1 4.796-2.01 1.954.1 3.714 1.22 4.601 3.01.896 1.81.846 4.17-.514 6.67z"})})})}),o.jsx("span",{className:Y.likeCount,children:t})]}),o.jsxs("a",{className:Y.reply,href:e.reply_url,target:"_blank",rel:"noopener noreferrer","aria-label":"Reply to this Tweet on Twitter",children:[o.jsx("div",{className:Y.replyIconWrapper,children:o.jsx("svg",{viewBox:"0 0 24 24",className:Y.replyIcon,"aria-hidden":"true",children:o.jsx("g",{children:o.jsx("path",{d:"M1.751 10c0-4.42 3.584-8 8.005-8h4.366c4.49 0 8.129 3.64 8.129 8.13 0 2.96-1.607 5.68-4.196 7.11l-8.054 4.46v-3.69h-.067c-4.49.1-8.183-3.51-8.183-8.01z"})})})}),o.jsx("span",{className:Y.replyText,children:"Reply"})]}),o.jsx(oo,{tweet:e})]})},so="_replies_1cutb_1",uo="_link_1cutb_4",lo="_text_1cutb_23",Ye={replies:so,link:uo,text:lo},co=({tweet:e})=>o.jsx("div",{className:Ye.replies,children:o.jsx("a",{className:Ye.link,href:e.url,target:"_blank",rel:"noopener noreferrer",children:o.jsx("span",{className:Ye.text,children:e.conversation_count===0?"Read more on Twitter":e.conversation_count===1?`Read ${Ve(e.conversation_count)} reply`:`Read ${Ve(e.conversation_count)} replies`})})}),fo="_root_q5799_1",vo="_article_q5799_16",Gt={root:fo,article:vo},ho=({tweet:e,children:t})=>o.jsx("div",{className:Gt.root,onClick:r=>{r.preventDefault(),window.open(e.url,"_blank")},children:o.jsx("article",{className:Gt.article,children:t})}),mo="_header_r31i5_1",_o="_avatar_r31i5_11",po="_avatarSquare_r31i5_17",go="_author_r31i5_21",xo="_authorText_r31i5_26",wo="_username_r31i5_33",fe={header:mo,avatar:_o,avatarSquare:po,author:go,authorText:xo,username:wo},yo=({tweet:e})=>{const{user:t}=e;return o.jsxs("div",{className:fe.header,children:[o.jsx("a",{href:e.url,className:fe.avatar,target:"_blank",rel:"noopener noreferrer",children:o.jsx("div",{className:ue(fe.avatarOverflow,t.profile_image_shape==="Square"&&fe.avatarSquare),children:o.jsx(Qt,{src:t.profile_image_url_https,alt:t.name,width:20,height:20})})}),o.jsxs("div",{className:fe.author,children:[o.jsx("div",{className:fe.authorText,children:o.jsx("span",{title:t.name,children:t.name})}),o.jsx(Xt,{user:t}),o.jsx("div",{className:fe.username,children:o.jsxs("span",{title:`@${t.screen_name}`,children:["@",t.screen_name]})})]})]})},bo="_root_175ot_1",To={root:bo},Oo=({tweet:e})=>o.jsx("p",{className:To.root,children:e.entities.map((t,r)=>o.jsx("span",{dangerouslySetInnerHTML:{__html:t.text}},r))}),jo=({tweet:e})=>{var t;return o.jsxs(ho,{tweet:e,children:[o.jsx(yo,{tweet:e}),o.jsx(Oo,{tweet:e}),(t=e.mediaDetails)!=null&&t.length?o.jsx(Zt,{quoted:!0,tweet:e}):null]})},Eo=({tweet:e,components:t})=>{var r;const a=D.useMemo(()=>sa(e),[e]);return o.jsxs(kt,{children:[o.jsx(Yr,{tweet:a,components:t}),a.in_reply_to_status_id_str&&o.jsx(Br,{tweet:a}),o.jsx(Jr,{tweet:a}),(r=a.mediaDetails)!=null&&r.length?o.jsx(Zt,{tweet:a,components:t}):null,a.quoted_tweet&&o.jsx(jo,{tweet:a.quoted_tweet}),o.jsx(Bn,{tweet:a}),o.jsx(io,{tweet:a}),o.jsx(co,{tweet:a})]})},Co="_root_16yxa_1",Do={root:Co},Mo=e=>o.jsx(kt,{children:o.jsxs("div",{className:Do.root,children:[o.jsx("h3",{children:"Tweet not found"}),o.jsx("p",{children:"The embedded tweet could not be found…"})]})}),ko="_skeleton_oi7hr_1",So="_loading_oi7hr_1",Ro={skeleton:ko,loading:So},Se=({style:e})=>o.jsx("span",{className:Ro.skeleton,style:e}),Po="_root_17qqv_1",No={root:Po},Wo=()=>o.jsxs(kt,{className:No.root,children:[o.jsx(Se,{style:{height:"3rem",marginBottom:"0.75rem"}}),o.jsx(Se,{style:{height:"6rem",margin:"0.5rem 0"}}),o.jsx("div",{style:{borderTop:"var(--tweet-border)",margin:"0.5rem 0"}}),o.jsx(Se,{style:{height:"2rem"}}),o.jsx(Se,{style:{height:"2rem",borderRadius:"9999px",marginTop:"0.5rem"}})]}),Uo=({id:e,apiUrl:t,fallback:r=o.jsx(Wo,{}),components:a,fetchOptions:n,onError:i})=>{const{data:d,error:v,isLoading:s}=In(e,t,n);if(s)return r;if(v||!d){const l=a?.TweetNotFound||Mo;return o.jsx(l,{error:i?i(v):v})}return o.jsx(Eo,{tweet:d,components:a})};export{Eo as EmbeddedTweet,jo as QuotedTweet,Oo as QuotedTweetBody,ho as QuotedTweetContainer,yo as QuotedTweetHeader,Uo as Tweet,io as TweetActions,oo as TweetActionsCopy,Jr as TweetBody,kt as TweetContainer,Yr as TweetHeader,Br as TweetInReplyTo,Bn as TweetInfo,Fn as TweetInfoCreatedAt,Gr as TweetLink,Zt as TweetMedia,Ta as TweetMediaVideo,Mo as TweetNotFound,co as TweetReplies,Wo as TweetSkeleton,gr as Verified,xr as VerifiedBusiness,wr as VerifiedGovernment,sa as enrichTweet,Ve as formatNumber,Kt as getMediaUrl,oa as getMp4Video,na as getMp4Videos,Ln as useMounted,In as useTweet}; diff --git a/assets/index.demo-2qcgj1lF.js b/assets/index.demo-2qcgj1lF.js new file mode 100644 index 00000000000..cbaae747d86 --- /dev/null +++ b/assets/index.demo-2qcgj1lF.js @@ -0,0 +1 @@ +import{j as i}from"./index-qegmBwH1.js";import{L as r,a as t}from"./LinkCard-r30gHz-0.js";import"./image-sZM8elMx.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./motion-minimal-gJqnz197.js";import"./owner-4YVbz2PN.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./store-gmK8mRDy.js";import"./env-y9k74Ds6.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./provider-jumr72cx.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./use-is-client-IECHC2ux.js";const o=()=>i.jsx(r,{id:"notes/145",source:t.MixSpace});o.meta={description:"Show Mix Space Note LinkCard",title:"LinkCard - Mix Space Note"};const e=()=>i.jsx(r,{id:"innei/innei",source:t.GHRepo});e.meta={description:"Show Github Repo LinkCard",title:"LinkCard - GitHub Repo"};const n=()=>i.jsx(r,{id:"notes/1451",source:t.MixSpace});n.meta={description:"Error LinkCard",title:"LinkCard - Error"};const m=()=>i.jsx(r,{id:"innei/shiro/132",source:t.GHPr});m.meta={description:"Show Github PR LinkCard",title:"LinkCard - GitHub PR"};const a=()=>i.jsx(r,{id:"innei/shiro/commit/0bf51cd8cf8457a2666906dea4a333081fc2a2b8",source:t.GHCommit});a.meta={description:"Show Github Commit LinkCard",title:"LinkCard - GitHub Commit"};export{o as LinkCardDemo1,e as LinkCardDemo2,n as LinkCardDemo3,m as LinkCardDemo4,a as LinkCardDemo5}; diff --git a/assets/index.demo-BGZWbYKh.js b/assets/index.demo-BGZWbYKh.js new file mode 100644 index 00000000000..cb9ee640e92 --- /dev/null +++ b/assets/index.demo-BGZWbYKh.js @@ -0,0 +1 @@ +import{j as s}from"./index-qegmBwH1.js";import{S as t,F as e}from"./SocialSourceLink-c8HgVvxv.js";import"./helper-0r91fNX5.js";import"./owner-4YVbz2PN.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./motion-minimal-gJqnz197.js";import"./store-gmK8mRDy.js";import"./env-y9k74Ds6.js";const o=()=>s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(t,{source:"GH",name:"Innei"}),s.jsx(t,{source:"TW",name:"__oQuery"})]});o.meta={title:"Rich Link"};const i=()=>s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(e,{source:"GH"}),s.jsx(e,{source:"TW"}),s.jsx(e,{source:"TG"}),s.jsx(e,{source:"BL"}),s.jsx(e,{source:"Npm"})]});i.meta={title:"Favicons with source"};const r=()=>s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(e,{href:"https://t.me/"}),s.jsx(e,{href:"https://x.com"}),s.jsx(e,{href:"https://twitter.com"}),s.jsx(e,{href:"https://bilibili.com"}),s.jsx(e,{href:"https://www.npmjs.com"})]});r.meta={title:"Favicons with link"};export{i as FaviconsDemo,r as FaviconsDemo2,o as RichLinkDemo}; diff --git a/assets/index.demo-K062cJV7.js b/assets/index.demo-K062cJV7.js new file mode 100644 index 00000000000..39d32a3b4db --- /dev/null +++ b/assets/index.demo-K062cJV7.js @@ -0,0 +1 @@ +import{j as o,r}from"./index-qegmBwH1.js";import{c}from"./helper-0r91fNX5.js";import{F as x}from"./FloatPopover-1BpKQIdq.js";import"./spring--xEiX8r3.js";import"./motion-minimal-gJqnz197.js";import"./use-event-callback-nMlqCkS7.js";import"./use-is-client-IECHC2ux.js";import"./env-y9k74Ds6.js";const h=t=>t.offsetWidth{const{children:e,className:i,width:l,disabled:p,wrapperClassName:m}=t,[s,d]=r.useState(),[f,u]=r.useState(!1),n=()=>{s&&u(h(s))};return r.useEffect(()=>{n()},[s,e]),r.useEffect(()=>{if(!s)return;const a=new ResizeObserver(()=>{n()});return a.observe(s),()=>{a.disconnect()}},[s]),o.jsx(x,{type:"tooltip",wrapperClassName:c("truncate min-w-0 w-full",m),isDisabled:!f||p,TriggerComponent:r.useCallback(()=>o.jsx("span",{className:i,ref:d,style:l?{maxWidth:l}:void 0,children:e}),[e,i,l]),children:o.jsx("span",{className:"max-w-[30vw] break-all hover:!bg-transparent",onClick:a=>a.stopPropagation(),children:e})})},v=t=>{const{className:e,...i}=t;return o.jsx(w,{className:c("block truncate",e),...i})},T=()=>o.jsx(v,{width:"12rem",children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam"});T.meta={title:"文本溢出省略 + 提示",description:"如果文本溢出则省略,省略时伴随 Tooltip 提示"};const k={title:"文本溢出",description:"一个简单的处理文本溢出省略的组件"};export{T as EllipsisTextWithTooltipDemo,k as metadata}; diff --git a/assets/index.demo-Qa1grQ39.js b/assets/index.demo-Qa1grQ39.js new file mode 100644 index 00000000000..58dd61ded8d --- /dev/null +++ b/assets/index.demo-Qa1grQ39.js @@ -0,0 +1,386 @@ +import{j as n}from"./index-qegmBwH1.js";import{Q as i,a as e}from"./owner-4YVbz2PN.js";import{Q as r}from"./toast-qMk_Ov--.js";import{$ as o}from"./use-is-dark-13kBJDHw.js";import{M as c}from"./Markdown-hVdCypI9.js";import"./init-a0893ef4-4662SO8Z.js";import"./store-gmK8mRDy.js";import"./env-y9k74Ds6.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./motion-minimal-gJqnz197.js";import"./script-SYgWefdU.js";import"./FloatPopover-1BpKQIdq.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./use-is-client-IECHC2ux.js";import"./visual-element-YIiczwVf.js";import"./Gallery-MHeEsxti.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./use-is-unmounted-6i0OwE-p.js";import"./lodash-Y39_oLIE.js";import"./LinkCard-r30gHz-0.js";import"./usePeek-N6a5Jy_H.js";import"./provider-jumr72cx.js";import"./dom-NuJWIaAq.js";import"./SocialSourceLink-c8HgVvxv.js";import"./CodeHighlighter-Sy1nPjje.js";import"./Collapse-Q-wSwlx_.js";import"./useQuery-44y7CkOR.js";const m=` + +## List and GFM Tasks + +1. First +2. Second + 1. 2.1 + 2. 2.2 + 1. 3.1 +3. Third +4. Fourth + +- [ ] Checkbox +- [x] Checkbox Completed + +--- + +- Line + - Line 1.1 +- Line 2 + +## Definition lists + +Term 1 + +: Definition 1 +with lazy continuation. + +Term 2 with _inline markup_ + +: Definition 2 + + { some code, part of Definition 2 } + + Third paragraph of definition 2. + +_Compact style:_ + +Term 1 +~ Definition 1 + +Term 2 +~ Definition 2a +~ Definition 2b + +## [Abbreviations](https://github.com/markdown-it/markdown-it-abbr) + +This is HTML abbreviation example. + +It converts "HTML", but keep intact partial entries like "xxxHTMLyyy" and so on. + +\\*[HTML]: Hyper Text Markup Language + +## Table + +| 表达内容 | 示例 | +| ---------------------------------------------------------------------------------------------------------------------------------------- | ------------- | +| 表示文件 | \`options.txt\` | +| 表示变量 | <版本名> | +| 在文件或文件夹末尾加上 \`!\` 表示 Minecraft 本体,分发这些文件违反了 [Minecraft Eula](https://account.mojang.com/documents/minecraft_eula) | libraries ! | +| 在文件或文件夹末尾加上 \`*\` 表示可删除,\`**\` 表示建议删除,\`***\` 表示必须删除 | libraries \\* | + +## Token + +This is a ||Spoiler|| + +A \`code\`. + +==mark== it. + +++Something Insert++ + +## Latex + +$ c = \\pm\\sqrt{a^2 + b^2} $ + +## Container + +### banner + +\`\`\` +::: warning +_here be dragons_ +::: + +::: banner {error} +_here be dragons_ +::: +\`\`\` + +::: warning +_here be dragons_ +::: + +::: banner {error} +_here be dragons_ +::: + +### Gallery + +\`\`\` +::: gallery +https://loremflickr.com/640/480/city?1 +https://loremflickr.com/640/480/city?2 +https://loremflickr.com/640/480/city?3 +![](https://loremflickr.com/640/480/city?4 'Image') +::: + +\`\`\` + +::: gallery +https://loremflickr.com/640/480/city?1 +https://loremflickr.com/640/480/city?2 +https://loremflickr.com/640/480/city?3 +![](https://loremflickr.com/640/480/city?4 'Image') +::: + +### Grid + +\`\`\`md +::: grid {cols=3,gap=4} + +Grid 1 + +Grid 2 + +Grid 3 + +https://loremflickr.com/640/480/city?1 + +https://loremflickr.com/640/480/city?2 + +https://loremflickr.com/640/480/city?3 + +![](https://loremflickr.com/640/480/city?4 'Image') + +![](https://loremflickr.com/640/480/city?4 'Image') + +![](https://loremflickr.com/640/480/city?4 'Image') + +::: +\`\`\` + +::: grid {cols=3,gap=4} + +Grid 1 + +Grid 2 + +Grid 3 + +https://loremflickr.com/640/480/city?1 + +https://loremflickr.com/640/480/city?2 + +https://loremflickr.com/640/480/city?3 + +![](https://loremflickr.com/640/480/city?4) + +![](https://loremflickr.com/640/480/city?6) + +![](https://loremflickr.com/640/480/city?40) + +::: + +### Images Grid + +\`\`\`md +::: grid {cols=2,rows=2,gap=4,type=images} +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +::: +\`\`\` + +::: grid {cols=3,rows=3,gap=12,type=images} +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +::: + +\`\`\` +::: grid {cols=3,rows=2,gap=12,type=images} +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +::: + +\`\`\` + +::: grid {cols=3,rows=2,gap=12,type=images} +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +![](https://loremflickr.com/640/480/city?4) +::: + + + +## Rich Link + +\`\`\` +https://github.com/Innei/Shiro +\`\`\` + +https://github.com/Innei/Shiro + +\`\`\` +https://twitter.com/zhizijun/status/1649822091234148352?s=20 +\`\`\` + +https://twitter.com/zhizijun/status/1649822091234148352?s=20 + +\`\`\` +https://www.youtube.com/watch?v=N93cTbtLCIM +\`\`\` + +https://www.youtube.com/watch?v=N93cTbtLCIM + +\`\`\` +https://gist.github.com/Innei/94b3e8f078d29e1820813a24a3d8b04e +\`\`\` + +https://gist.github.com/Innei/94b3e8f078d29e1820813a24a3d8b04e + +\`\`\` +https://github.com/vuejs/vitepress/commit/71eb11f72e60706a546b756dc3fd72d06e2ae4e2 +\`\`\` + +https://github.com/vuejs/vitepress/commit/71eb11f72e60706a546b756dc3fd72d06e2ae4e2 + +\`\`\` +https://codesandbox.io/s/framer-motion-layoutroot-prop-forked-p39g96 +\`\`\` + +https://codesandbox.io/s/framer-motion-layoutroot-prop-forked-p39g96 + +\`\`\` +https://github.com/Innei/Shiro/blob/108d4c3e927e1c9c9304e41a0631f91958477d9f/src/providers/root/modal-stack-provider.tsx +\`\`\` + +https://github.com/Innei/Shiro/blob/108d4c3e927e1c9c9304e41a0631f91958477d9f/src/providers/root/modal-stack-provider.tsx + +\`\`\` +https://github.com/Innei/Shiro/pull/129 +\`\`\` + +https://github.com/Innei/Shiro/pull/129 + +\`\`\` +https://github.com/Innei/Shiro/commit/6957e011439eb2d3cbf42bfb67ed81b07d4bcc2a +\`\`\` + +https://github.com/Innei/Shiro/commit/6957e011439eb2d3cbf42bfb67ed81b07d4bcc2a + +\`\`\` +https://trpc.io/docs/client/react/useInfiniteQuery +\`\`\` + +https://trpc.io/docs/client/react/useInfiniteQuery + +\`\`\` +[TRPC](https://trpc.io/docs/client/react/useInfiniteQuery) +\`\`\` + +[TRPC](https://trpc.io/docs/client/react/useInfiniteQuery) + +## LinkCard + +\`\`\` + +\`\`\` + + + +\`\`\` + +\`\`\` + + + +## Inline Link Parser + +\`\`\` +Inline [Innei](https://github.com/Innei) +\`\`\` + +Inline [Innei](https://github.com/Innei) + +\`\`\` +Inline [pseudoyu](https://twitter.com/pseudo_yu) +\`\`\` + +Inline [pseudoyu](https://twitter.com/pseudo_yu) + +\`\`\` +Inline +\`\`\` + +Inline + +\`\`\` +Inline https://github.com/Innei +\`\`\` + +Inline https://github.com/Innei + +## Mention + +\`\`\` +[Innei]{GH@Innei} +\`\`\` + +[Innei 太菜了]{GH@Innei} + +## Alerts + +\`\`\` +> [!NOTE] +> Highlights information that users should take into account, even when skimming. + +> [!IMPORTANT] +> Crucial information necessary for users to succeed. + +> [!WARNING] +> Critical content demanding immediate user attention due to potential risks. +\`\`\` + +> [!NOTE] +> Highlights information that users should take into account, even when skimming. + +> [!IMPORTANT] +> Crucial information necessary for users to succeed. + +> [!WARNING] +> Critical content demanding immediate user attention due to potential risks. + +## KateX + +\`\`\` +$ c = \\pm\\sqrt{a^2 + b^2} $ +\`\`\` + +$ c = \\pm\\sqrt{a^2 + b^2} $ + +\`\`\` +$c = \\pm\\sqrt{a^2 + b^2}$ +\`\`\` + +$c = \\pm\\sqrt{a^2 + b^2}$ + +$P(x) = a_nx^n+a_{n-1}x^{n-1} + \\dots + a_1x + a_0$ + +\`\`\` +$P(x) = a_nx^n+a_{n-1}x^{n-1} + \\dots + a_1x + a_0$ +\`\`\` + +\`\`\` +$$ + +P\\left(U,T\\right)=100\\left.\\left(0.6\\min\\left(1,\\frac{U-0.70}{0.90-0.70}\\right)+0.4\\min\\left(1,\\frac{T-4000}{14000-4000}\\right)\\right)\\right. + +$$ +\`\`\` + +$$ + +P\\left(U,T\\right)=100\\left.\\left(0.6\\min\\left(1,\\frac{U-0.70}{0.90-0.70}\\right)+0.4\\min\\left(1,\\frac{T-4000}{14000-4000}\\right)\\right)\\right. + + +$$ + +- +`,s=new i,a=()=>n.jsx(e,{client:s,children:n.jsxs(o,{children:[n.jsx("main",{className:"relative m-auto mt-6 max-w-[800px]",children:n.jsx(c,{extendsRules:{codeBlock:{react(t,l,p){return n.jsx("pre",{children:n.jsx("code",{children:t.content})})}}},value:m,className:"prose",as:"article"})}),n.jsx(r,{})]})});a.meta={title:"Markdown Customize"};export{a as MarkdownCustomize}; diff --git a/assets/index.demo-Sxeb7MRV.js b/assets/index.demo-Sxeb7MRV.js new file mode 100644 index 00000000000..b0b6ecf2fa3 --- /dev/null +++ b/assets/index.demo-Sxeb7MRV.js @@ -0,0 +1 @@ +import{j as t}from"./index-qegmBwH1.js";import{W as i,M as m}from"./WrappedElementProvider-5243oAX6.js";import{G as a}from"./Gallery-MHeEsxti.js";import"./helper-0r91fNX5.js";import"./index-5Y6ZmVAf.js";import"./image-sZM8elMx.js";import"./use-is-unmounted-6i0OwE-p.js";import"./env-y9k74Ds6.js";import"./store-gmK8mRDy.js";import"./init-a0893ef4-4662SO8Z.js";import"./lodash-Y39_oLIE.js";const n=()=>Math.floor(Math.random()*255).toString(16).padStart(2,"0"),o=Array.from({length:10}).map((r,e)=>({src:`https://loremflickr.com/640/480/city?${e}`,height:480,width:640,type:"image",accent:`#${n()}`})),s=()=>t.jsx("div",{className:"inline-block overflow-hidden border border-accent",style:{width:"600px"},children:t.jsx(i,{children:t.jsx(m,{images:o,children:t.jsx(a,{images:o.map(r=>({...r,url:r.src,name:r.src,footnote:r.src}))})})})});s.meta={title:"Gallery",description:"Gallery component"};export{s as Demo1}; diff --git a/assets/index.demo-_07sssxB.js b/assets/index.demo-_07sssxB.js new file mode 100644 index 00000000000..0ea496bad08 --- /dev/null +++ b/assets/index.demo-_07sssxB.js @@ -0,0 +1,210 @@ +import{C as Zw,D as Qw,R as tS,m as eS,k as nS,b as rS}from"./owner-4YVbz2PN.js";import{r as $,j as B,_ as St,R as sn,a as xc,g as y0,c as Na}from"./index-qegmBwH1.js";import{$ as iS}from"./index-I7weg1Js.js";import{$ as oS}from"./use-is-dark-13kBJDHw.js";import{b as sS}from"./usePeek-N6a5Jy_H.js";import{b as aS,M as lS,f as x0,a as _d}from"./provider-jumr72cx.js";import{e as cS,P as uS,d as hS,F as dS}from"./WrappedElementProvider-5243oAX6.js";import{s as fS,t as wn}from"./toast-qMk_Ov--.js";import{t as pS}from"./lodash-Y39_oLIE.js";import{j as Td,a as mS}from"./store-gmK8mRDy.js";import{P as gS,a as yS,b as xS,d as bS}from"./init-a0893ef4-4662SO8Z.js";import{S as kS}from"./script-SYgWefdU.js";import{L as CS}from"./index-QSj7qAqP.js";import{u as wS}from"./use-is-unmounted-6i0OwE-p.js";import{C as SS}from"./CodeEditor-pXHtjbJq.js";import{I as _S}from"./AutoResizeHeight-pHZ_oyCK.js";import{F as TS,a as vS,T as AS}from"./FormInput-cQs6MTpb.js";import{d as ES}from"./index-D4F-WjWJ.js";import{B as MS}from"./BlockLoading-PMBA_Cs1.js";import{S as bi,M as NS}from"./StyledButton-Mj8l6PeD.js";import{a as om,s as OS}from"./helper-0r91fNX5.js";import{u as IS}from"./spring--xEiX8r3.js";import{F as BS}from"./FloatPopover-1BpKQIdq.js";import{Mermaid as FS}from"./Mermaid-5Gw5JBOp.js";const LS=()=>{const t=sS();return $.useLayoutEffect(()=>{t&&(window.peek=t)},[t]),null},DS=$.forwardRef(({className:t,size:e},n)=>B.jsx("div",{className:t,ref:n,children:B.jsx("div",{className:"loading loading-dots",style:{width:e||"2rem",height:e||"2rem"}})}));DS.displayName="Spinner";var RS=function(){return null};const PS=({children:t})=>B.jsxs(B.Fragment,{children:[B.jsx($.Suspense,{children:B.jsx("div",{"data-hide-print":!0,children:B.jsx(RS,{buttonPosition:"bottom-left"})})}),t]}),$S=({children:t})=>(cS(()=>{const e=pS(()=>{const{innerWidth:n,innerHeight:r}=window,i=n>=640,o=n>=768,s=n>=1024,a=n>=1280,l=n>=1536;Td.set(Zw,{sm:i,md:o,lg:s,xl:a,"2xl":l,h:r,w:n})},16);return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),$.useEffect(()=>{const e=r=>{fS(!r.matches)};e(window.matchMedia("screen"));const n=r=>{e(r)};try{window.matchMedia("screen").addEventListener("change",n)}catch{}return()=>{window.matchMedia("screen").removeEventListener("change",n)}},[]),B.jsx(B.Fragment,{children:t})),zS=({children:t})=>B.jsx(gS,{store:Td,children:t}),qS=()=>{const t=Qw(e=>e.custom?.scripts);return t?B.jsx(B.Fragment,{children:t.map(e=>{const n={...e},r=Object.keys(e).filter(i=>/data[A-Z]/.test(i));for(const i of r){const o=i.replace(/([A-Z])/g,"-$1").toLowerCase();n[o]=n[i],delete n[i]}return B.jsx(kS,{...n},e.src)})}):null},jS=()=>{const t=$.useRef(!1),e=aS();return $.useEffect(()=>{t.current||St(()=>import("./index-hp6Y5x8K.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url).then(n=>{const{socketClient:r}=n;t.current=!0,r.setRouter(e),r.initIO()})},[]),null},WS=()=>St(()=>import("./framer-lazy-feature-pFG8hMnQ.js"),__vite__mapDeps([22,23,9,2,3,14]),import.meta.url).then(t=>t.default),VS=[B.jsx(oS,{},"themeProvider"),B.jsx(zS,{},"jotaiStoreProvider"),B.jsx(iS,{},"balancerProvider"),B.jsx(CS,{features:WS,strict:!0},"framer")],HS=VS.concat(B.jsx(tS,{},"reactQueryProvider"));function US({children:t}){return B.jsxs(uS,{contexts:HS,children:[t,B.jsx(LS,{}),B.jsx(jS,{}),B.jsx(lS,{},"modalStackProvider"),B.jsx($S,{},"viewportProvider"),B.jsx(hS,{},"PageScrollInfoProvider"),B.jsx(PS,{},"debugProvider"),B.jsx(qS,{})]})}const vd=$.createContext({});function KS(){const{dom:t,editor:e,setLoading:n,editorFactory:r}=$.useContext(vd),i=$.useRef(null);return $.useEffect(()=>{const o=i.current;if(!r||!o)return;t.current=o;const s=r(o);if(s)return n(!0),s.create().then(a=>{e.current=a}).finally(()=>{n(!1)}).catch(console.error),()=>{var a;(a=e.current)==null||a.destroy()}},[t,e,r,n]),i}const GS=()=>{const t=KS();return sn.createElement("div",{"data-milkdown-root":!0,ref:t})},YS=({children:t})=>{const e=$.useRef(void 0),[n,r]=$.useState(void 0),i=$.useRef(),[o,s]=$.useState(!0),a=$.useMemo(()=>({loading:o,dom:e,editor:i,setLoading:s,editorFactory:n,setEditorFactory:r}),[o,n]);return sn.createElement(vd.Provider,{value:a},t)};function JS(t,e=[]){const n=$.useContext(vd),r=$.useCallback(t,e);return $.useLayoutEffect(()=>{n.setEditorFactory(()=>r)},[n,r]),{loading:n.loading,get:()=>n.editor.current}}var XS=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},b0=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},fh=(t,e,n)=>(XS(t,e,"access private method"),n),Ka,ph;let ZS=class{constructor({node:e,view:n,getPos:r,decorations:i,innerDecorations:o,options:s}){b0(this,Ka),this.selected=!1,this.selectNode=()=>{var a,l;this.selected=!0,(l=(a=this.options).selectNode)==null||l.call(a)},this.deselectNode=()=>{var a,l;this.selected=!1,(l=(a=this.options).deselectNode)==null||l.call(a)},this.shouldUpdate=a=>!(a.type!==this.node.type||a.sameMarkup(this.node)&&a.content.eq(this.node.content)),this.update=(a,l,c)=>{var u,h;const d=this.options.update;let f;return d&&(f=d(a,l,c)),typeof f!="boolean"&&(f=this.shouldUpdate(a)),this.node=a,this.decorations=l,this.innerDecorations=c,f&&((h=(u=this.options).onUpdate)==null||h.call(u)),f},this.shouldIgnoreMutation=a=>!this.dom||!this.contentDOM||this.node.isLeaf||this.node.isAtom?!0:a.type==="selection"?!1:this.contentDOM===a.target&&a.type==="attributes"?!0:!this.contentDOM.contains(a.target),this.ignoreMutation=a=>{if(!this.dom||!this.contentDOM)return!0;let l;const c=this.options.ignoreMutation;return c&&(l=c(a)),typeof l!="boolean"&&(l=this.shouldIgnoreMutation(a)),l},this.destroy=()=>{var a,l,c;(l=(a=this.options).destroy)==null||l.call(a),this.dom.remove(),(c=this.contentDOM)==null||c.remove()},this.setAttrs=a=>{const{dispatch:l,state:c}=this.view,u=this.getPos();if(typeof u=="number")return l(c.tr.setNodeMarkup(u,void 0,{...this.node.attrs,...a}))},this.node=e,this.view=n,this.getPos=r,this.decorations=i,this.innerDecorations=o,this.options=s,this.dom=this.createDOM(s.as),this.contentDOM=e.isLeaf?null:this.createContentDOM(s.contentAs),this.dom.setAttribute("data-node-view-root","true"),this.contentDOM&&(this.contentDOM.setAttribute("data-node-view-content","true"),this.contentDOM.style.whiteSpace="inherit"),this.setSelection=s.setSelection,this.stopEvent=s.stopEvent}createDOM(e){return fh(this,Ka,ph).call(this,e)}createContentDOM(e){return fh(this,Ka,ph).call(this,e)}get component(){return this.options.component}};Ka=new WeakSet,ph=function(t){const{node:e}=this;return t==null?document.createElement(e.isInline?"span":"div"):t instanceof HTMLElement?t:t instanceof Function?t(e):document.createElement(t)};let QS=class{constructor(e){this.view=e.view,this.options=e.options}get component(){return this.options.component}get root(){var e,n;let r=(n=(e=this.options).root)==null?void 0:n.call(e,this.view.dom);return r||(r=this.view.dom.parentElement??document.body),r}update(e,n){var r,i;this.view=e,this.prevState=n,(i=(r=this.options).update)==null||i.call(r,e,n)}destroy(){var e,n;(n=(e=this.options).destroy)==null||n.call(e)}};var mh,k0;let t_=class{constructor({pos:e,spec:n,options:r}){b0(this,mh),this.pos=e,this.options=r,this.spec=n,this.dom=fh(this,mh,k0).call(this,r.as),this.dom.setAttribute("data-widget-view-root","true")}bind(e,n){this.view=e,this.getPos=n}get component(){return this.options.component}};mh=new WeakSet,k0=function(t){return t instanceof HTMLElement?t:document.createElement(t)};let Ad=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,n)=>(n&=63,n<36?e+=n.toString(36):n<62?e+=(n-26).toString(36).toUpperCase():n>62?e+="-":e+="_",e),"");function Wt(t){this.content=t}Wt.prototype={constructor:Wt,find:function(t){for(var e=0;e>1}};Wt.from=function(t){if(t instanceof Wt)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Wt(e)};function C0(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),o=e.child(r);if(i==o){n+=i.nodeSize;continue}if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(let s=0;i.text[s]==o.text[s];s++)n++;return n}if(i.content.size||o.content.size){let s=C0(i.content,o.content,n+1);if(s!=null)return s}n+=i.nodeSize}}function w0(t,e,n,r){for(let i=t.childCount,o=e.childCount;;){if(i==0||o==0)return i==o?null:{a:n,b:r};let s=t.child(--i),a=e.child(--o),l=s.nodeSize;if(s==a){n-=l,r-=l;continue}if(!s.sameMarkup(a))return{a:n,b:r};if(s.isText&&s.text!=a.text){let c=0,u=Math.min(s.text.length,a.text.length);for(;ce&&r(l,i+a,o||null,s)!==!1&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,n-u),r,i+u)}a=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let o="",s=!0;return this.nodesBetween(e,n,(a,l)=>{let c=a.isText?a.text.slice(Math.max(e,l)-l,n-l):a.isLeaf?i?typeof i=="function"?i(a):i:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&c||a.isTextblock)&&r&&(s?s=!1:o+=r),o+=c},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),o=1);oe)for(let o=0,s=0;se&&((sn)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,n-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,n-s-1))),r.push(a),i+=a.nodeSize),s=l}return new E(r,i)}cutByIndex(e,n){return e==n?E.empty:e==0&&n==this.content.length?this:new E(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new E(i,o)}addToStart(e){return new E([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new E(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;nthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,i=0;;r++){let o=this.child(r),s=i+o.nodeSize;if(s>=e)return s==e||n>0?Oa(r+1,s):Oa(r,i);i=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return E.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new E(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return E.empty;let n,r=0;for(let i=0;ithis.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(o)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;nr.type.rank-i.type.rank),n}}ut.none=[];class Fl extends Error{}class D{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=_0(this.content,e+this.openStart,n);return r&&new D(r,this.openStart,this.openEnd)}removeBetween(e,n){return new D(S0(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return D.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new D(E.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let o=e.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=e.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)i++;return new D(e,r,i)}}D.empty=new D(E.empty,0,0);function S0(t,e,n){let{index:r,offset:i}=t.findIndex(e),o=t.maybeChild(r),{index:s,offset:a}=t.findIndex(n);if(i==e||o.isText){if(a!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,o.copy(S0(o.content,e-i-1,n-i-1)))}function _0(t,e,n,r){let{index:i,offset:o}=t.findIndex(e),s=t.maybeChild(i);if(o==e||s.isText)return r&&!r.canReplace(i,i,n)?null:t.cut(0,e).append(n).append(t.cut(e));let a=_0(s.content,e-o-1,n);return a&&t.replaceChild(i,s.copy(a))}function e_(t,e,n){if(n.openStart>t.depth)throw new Fl("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Fl("Inconsistent open depths");return T0(t,e,n,0)}function T0(t,e,n,r){let i=t.index(r),o=t.node(r);if(i==e.index(r)&&r=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function Ss(t,e,n,r){let i=(e||t).node(n),o=0,s=e?e.index(n):i.childCount;t&&(o=t.index(n),t.depth>n?o++:t.textOffset&&(li(t.nodeAfter,r),o++));for(let a=o;ai&&gh(t,e,i+1),s=r.depth>i&&gh(n,r,i+1),a=[];return Ss(null,t,i,a),o&&s&&e.index(i)==n.index(i)?(v0(o,s),li(ci(o,A0(t,e,n,r,i+1)),a)):(o&&li(ci(o,Ll(t,e,i+1)),a),Ss(e,n,i,a),s&&li(ci(s,Ll(n,r,i+1)),a)),Ss(r,null,i,a),new E(a)}function Ll(t,e,n){let r=[];if(Ss(null,t,n,r),t.depth>n){let i=gh(t,e,n+1);li(ci(i,Ll(t,e,n+1)),r)}return Ss(e,null,n,r),new E(r)}function n_(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let o=n-1;o>=0;o--)i=e.node(o).copy(E.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class zs{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let o=0;o0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new E0(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,o=n;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(o),c=o-l;if(r.push(s,a,i+l),!c||(s=s.child(a),s.isText))break;o=c-1,i+=l+1}return new zs(n,r,o)}static resolveCached(e,n){for(let i=0;ie&&this.nodesBetween(e,n,o=>(r.isInSet(o.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),M0(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=E.empty,i=0,o=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,i,o),a=s&&s.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let l=i;ln.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=E.fromJSON(e,n.content);return e.nodeType(n.type).create(n.attrs,i,r)}}an.prototype.text=void 0;class Dl extends an{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):M0(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Dl(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Dl(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function M0(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class ki{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new o_(e,n);if(r.next==null)return ki.empty;let i=N0(r);r.next&&r.err("Unexpected trailing text");let o=d_(h_(i));return f_(o,r),o}matchType(e){for(let n=0;nc.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i{let o=i+(r.validEnd?"*":" ")+" ";for(let s=0;s"+e.indexOf(r.next[s].next);return o}).join(` +`)}}ki.empty=new ki(!0);class o_{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function N0(t){let e=[];do e.push(s_(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function s_(t){let e=[];do e.push(a_(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function a_(t){let e=u_(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=l_(t,e);else break;return e}function sm(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function l_(t,e){let n=sm(t),r=n;return t.eat(",")&&(t.next!="}"?r=sm(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function c_(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let o in n){let s=n[o];s.groups.indexOf(e)>-1&&i.push(s)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function u_(t){if(t.eat("(")){let e=N0(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=c_(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function h_(t){let e=[[]];return i(o(t,0),n()),e;function n(){return e.push([])-1}function r(s,a,l){let c={term:l,to:a};return e[s].push(c),c}function i(s,a){s.forEach(l=>l.to=a)}function o(s,a){if(s.type=="choice")return s.exprs.reduce((l,c)=>l.concat(o(c,a)),[]);if(s.type=="seq")for(let l=0;;l++){let c=o(s.exprs[l],a);if(l==s.exprs.length-1)return c;i(c,a=n())}else if(s.type=="star"){let l=n();return r(a,l),i(o(s.expr,l),l),[r(l)]}else if(s.type=="plus"){let l=n();return i(o(s.expr,a),l),i(o(s.expr,l),l),[r(l)]}else{if(s.type=="opt")return[r(a)].concat(o(s.expr,a));if(s.type=="range"){let l=a;for(let c=0;c{t[s].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u{c||i.push([a,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let o=e[r.join(",")]=new ki(r.indexOf(t.length-1)>-1);for(let s=0;s-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;nr[o]=new L0(o,n,s));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let o in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class p_{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class bc{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=F0(i.attrs),this.excluded=null;let o=I0(this.attrs);this.instance=o?new ut(this,o):null}create(e=null){return!e&&this.instance?this.instance:new ut(this,B0(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((o,s)=>r[o]=new bc(o,i++,n,s)),r}removeFromSet(e){for(var n=0;n-1}}class m_{constructor(e){this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=Wt.from(e.nodes),n.marks=Wt.from(e.marks||{}),this.nodes=Rl.compile(this.spec.nodes,this),this.marks=bc.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let o=this.nodes[i],s=o.spec.content||"",a=o.spec.marks;o.contentMatch=r[s]||(r[s]=ki.parse(s,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.markSet=a=="_"?null:a?lm(this,a.split(" ")):a==""||!o.inlineContent?[]:null}for(let i in this.marks){let o=this.marks[i],s=o.spec.excludes;o.excluded=s==null?[o]:s==""?[]:lm(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Rl){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,i)}text(e,n){let r=this.nodes.text;return new Dl(r,r.defaultAttrs,e,ut.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return an.fromJSON(this,e)}markFromJSON(e){return ut.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function lm(t,e){let n=[];for(let r=0;r-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}class Ci{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[],n.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=e.nodes[r.node];return i.contentMatch.matchType(i)})}parse(e,n={}){let r=new um(this,n,!1);return r.addAll(e,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new um(this,n,!0);return r.addAll(e,n.from,n.to),D.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;ie.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=n))){if(s.getAttrs){let l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let n=[];function r(i){let o=i.priority==null?50:i.priority,s=0;for(;s{r(s=hm(s)),s.mark||s.ignore||s.clearMark||(s.mark=i)})}for(let i in e.nodes){let o=e.nodes[i].spec.parseDOM;o&&o.forEach(s=>{r(s=hm(s)),s.node||s.ignore||s.mark||(s.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Ci(e,Ci.schemaRules(e)))}}const D0={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},g_={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},R0={ol:!0,ul:!0},Pl=1,$l=2,_s=4;function cm(t,e,n){return e!=null?(e?Pl:0)|(e==="full"?$l:0):t&&t.whitespace=="pre"?Pl|$l:n&~_s}class Ia{constructor(e,n,r,i,o,s,a){this.type=e,this.attrs=n,this.marks=r,this.pendingMarks=i,this.solid=o,this.options=a,this.content=[],this.activeMarks=ut.none,this.stashMarks=[],this.match=s||(a&_s?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(E.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Pl)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let o=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-i[0].length))}}let n=E.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(E.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(e){for(let n=this.stashMarks.length-1;n>=0;n--)if(e.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(e){for(let n=0,r=this.pendingMarks;nthis.addAll(e)),s&&this.sync(a),this.needsBlock=l}else this.withStyleRules(e,()=>{this.addElementByRule(e,o,o.consuming===!1?i:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(` +`))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let n=ut.none,r=ut.none;for(let i=0;i{s.clearMark(a)&&(r=a.addToSet(r))}):n=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(n),s.consuming===!1)o=s;else break}return[n,r]}addElementByRule(e,n,r){let i,o,s;n.node?(o=this.parser.schema.nodes[n.node],o.isLeaf?this.insertNode(o.create(n.attrs))||this.leafFallback(e):i=this.enter(o,n.attrs||null,n.preserveWhitespace)):(s=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(s));let a=this.top;if(o&&o.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l)}i&&this.sync(a)&&this.open--,s&&this.removePendingMark(s,a)}addAll(e,n,r){let i=n||0;for(let o=n?e.childNodes[n]:e.firstChild,s=r==null?null:e.childNodes[r];o!=s;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o);this.findAtPoint(e,i)}findPlace(e){let n,r;for(let i=this.open;i>=0;i--){let o=this.nodes[i],s=o.findWrapping(e);if(s&&(!n||n.length>s.length)&&(n=s,r=o,!s.length)||o.solid)break}if(!n)return!1;this.sync(r);for(let i=0;ithis.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1),s=(a,l)=>{for(;a>=0;a--){let c=n[a];if(c==""){if(a==n.length-1||a==0)continue;for(;l>=o;l--)if(s(a-1,l))return!0;return!1}else{let u=l>0||l==0&&i?this.nodes[l].type:r&&l>=o?r.node(l-o).type:null;if(!u||u.name!=c&&u.groups.indexOf(c)==-1)return!1;l--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let n=C_(e,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,n){for(let r=this.open;r>=0;r--){let i=this.nodes[r];if(i.pendingMarks.lastIndexOf(e)>-1)i.pendingMarks=e.removeFromSet(i.pendingMarks);else{i.activeMarks=e.removeFromSet(i.activeMarks);let s=i.popFromStashMark(e);s&&i.type&&i.type.allowsMarkType(s.type)&&(i.activeMarks=s.addToSet(i.activeMarks))}if(i==n)break}}}function y_(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&R0.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function x_(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function b_(t){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=e.exec(t);)r.push(n[1],n[2].trim());return r}function hm(t){let e={};for(let n in t)e[n]=t[n];return e}function k_(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let o=[],s=a=>{o.push(a);for(let l=0;l{if(o.length||s.marks.length){let a=0,l=0;for(;a=0;i--){let o=this.serializeMark(e.marks[i],e.isInline,n);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&_n.renderSpec(uu(r),i(e,n))}static renderSpec(e,n,r=null){if(typeof n=="string")return{dom:e.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let i=n[0],o=i.indexOf(" ");o>0&&(r=i.slice(0,o),i=i.slice(o+1));let s,a=r?e.createElementNS(r,i):e.createElement(i),l=n[1],c=1;if(l&&typeof l=="object"&&l.nodeType==null&&!Array.isArray(l)){c=2;for(let u in l)if(l[u]!=null){let h=u.indexOf(" ");h>0?a.setAttributeNS(u.slice(0,h),u.slice(h+1),l[u]):a.setAttribute(u,l[u])}}for(let u=c;uc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:d,contentDOM:f}=_n.renderSpec(e,h,r);if(a.appendChild(d),f){if(s)throw new RangeError("Multiple content holes");s=f}}}return{dom:a,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new _n(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=dm(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return dm(e.marks)}}function dm(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function uu(t){return t.document||window.document}const P0=65535,$0=Math.pow(2,16);function w_(t,e){return t+e*$0}function fm(t){return t&P0}function S_(t){return(t-(t&P0))/$0}const z0=1,q0=2,Ga=4,j0=8;class yh{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&j0)>0}get deletedBefore(){return(this.delInfo&(z0|Ga))>0}get deletedAfter(){return(this.delInfo&(q0|Ga))>0}get deletedAcross(){return(this.delInfo&Ga)>0}}class Fe{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Fe.empty)return Fe.empty}recover(e){let n=0,r=fm(e);if(!this.inverted)for(let i=0;ie)break;let c=this.ranges[a+o],u=this.ranges[a+s],h=l+c;if(e<=h){let d=c?e==l?-1:e==h?1:n:n,f=l+i+(d<0?0:u);if(r)return f;let p=e==(n<0?l:h)?null:w_(a/3,e-l),m=e==l?q0:e==h?z0:Ga;return(n<0?e!=l:e!=h)&&(m|=j0),new yh(f,m,p)}i+=u-c}return r?e+i:new yh(e+i,0,null)}touches(e,n){let r=0,i=fm(n),o=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;ae)break;let c=this.ranges[a+o],u=l+c;if(e<=u&&a==i*3)return!0;r+=this.ranges[a+s]-c}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,o=0;i=0;n--){let i=e.getMirror(n);this.appendMap(e.maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new eo;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;ro&&l!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),i),n.openStart,n.openEnd);return Ft.fromReplace(e,this.from,this.to,o)}invert(){return new Tn(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Qn(n.pos,r.pos,this.mark)}merge(e){return e instanceof Qn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Qn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Qn(n.from,n.to,e.markFromJSON(n.mark))}}re.jsonID("addMark",Qn);class Tn extends re{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new D(Ed(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return Ft.fromReplace(e,this.from,this.to,r)}invert(){return new Qn(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Tn(n.pos,r.pos,this.mark)}merge(e){return e instanceof Tn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Tn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Tn(n.from,n.to,e.markFromJSON(n.mark))}}re.jsonID("removeMark",Tn);class Tr extends re{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ft.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Ft.fromReplace(e,this.pos,this.pos+1,new D(E.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;ir.pos?null:new ee(n.pos,r.pos,i,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ee(n.from,n.to,n.gapFrom,n.gapTo,D.fromJSON(e,n.slice),n.insert,!!n.structure)}}re.jsonID("replaceAround",ee);function xh(t,e,n){let r=t.resolve(e),i=n-e,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let s=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,i--}}return!1}function __(t,e,n,r){let i=[],o=[],s,a;t.doc.nodesBetween(e,n,(l,c,u)=>{if(!l.isInline)return;let h=l.marks;if(!r.isInSet(h)&&u.type.allowsMarkType(r.type)){let d=Math.max(c,e),f=Math.min(c+l.nodeSize,n),p=r.addToSet(h);for(let m=0;mt.step(l)),o.forEach(l=>t.step(l))}function T_(t,e,n,r){let i=[],o=0;t.doc.nodesBetween(e,n,(s,a)=>{if(!s.isInline)return;o++;let l=null;if(r instanceof bc){let c=s.marks,u;for(;u=r.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(s.marks)&&(l=[r]):l=s.marks;if(l&&l.length){let c=Math.min(a+s.nodeSize,n);for(let u=0;ut.step(new Tn(s.from,s.to,s.style)))}function v_(t,e,n,r=n.contentMatch){let i=t.doc.nodeAt(e),o=[],s=e+1;for(let a=0;a=0;a--)t.step(o[a])}function A_(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function kc(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let i=t.$from.node(r),o=t.$from.index(r),s=t.$to.indexAfter(r);if(rn;p--)m||r.index(p)>0?(m=!0,u=E.from(r.node(p).copy(u)),h++):l--;let d=E.empty,f=0;for(let p=o,m=!1;p>n;p--)m||i.after(p+1)=0;s--){if(r.size){let a=n[s].type.contentMatch.matchFragment(r);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=E.from(n[s].type.create(n[s].attrs,r))}let i=e.start,o=e.end;t.step(new ee(i,o,i,o,new D(r,0,0),n.length,!0))}function I_(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=t.steps.length;t.doc.nodesBetween(e,n,(s,a)=>{if(s.isTextblock&&!s.hasMarkup(r,i)&&B_(t.doc,t.mapping.slice(o).map(a),r)){t.clearIncompatible(t.mapping.slice(o).map(a,1),r);let l=t.mapping.slice(o),c=l.map(a,1),u=l.map(a+s.nodeSize,1);return t.step(new ee(c,u,c+1,u-1,new D(E.from(r.create(i,null,s.marks)),0,0),1,!0)),!1}})}function B_(t,e,n){let r=t.resolve(e),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function F_(t,e,n,r,i){let o=t.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let s=n.create(r,null,i||o.marks);if(o.isLeaf)return t.replaceWith(e,e+o.nodeSize,s);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new ee(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new D(E.from(s),0,0),1,!0))}function Ts(t,e,n=1,r){let i=t.resolve(e),o=i.depth-n,s=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!s.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let c=i.depth-1,u=n-2;c>o;c--,u--){let h=i.node(c),d=i.index(c);if(h.type.spec.isolating)return!1;let f=h.content.cutByIndex(d,h.childCount),p=r&&r[u+1];p&&(f=f.replaceChild(0,p.type.create(p.attrs)));let m=r&&r[u]||h;if(!h.canReplace(d+1,h.childCount)||!m.type.validContent(f))return!1}let a=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(a,a,l?l.type:i.node(o+1).type)}function L_(t,e,n=1,r){let i=t.doc.resolve(e),o=E.empty,s=E.empty;for(let a=i.depth,l=i.depth-n,c=n-1;a>l;a--,c--){o=E.from(i.node(a).copy(o));let u=r&&r[c];s=E.from(u?u.type.create(u.attrs,s):i.node(a).copy(s))}t.step(new Vt(e,e,new D(o.append(s),n,n),!0))}function Cc(t,e){let n=t.resolve(e),r=n.index();return D_(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function D_(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function R_(t,e,n){let r=new Vt(e-n,e+n,D.empty,!0);t.step(r)}function P_(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let o=r.index(i);if(r.node(i).canReplaceWith(o,o,n))return r.before(i+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let o=r.indexAfter(i);if(r.node(i).canReplaceWith(o,o,n))return r.after(i+1);if(o=0;s--){let a=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,l=r.index(s)+(a>0?1:0),c=r.node(s),u=!1;if(o==1)u=c.canReplace(l,l,i);else{let h=c.contentMatchAt(l).findWrapping(i.firstChild.type);u=h&&c.canReplaceWith(l,l,h[0])}if(u)return a==0?r.pos:a<0?r.before(s+1):r.after(s+1)}return null}function Md(t,e,n=e,r=D.empty){if(e==n&&!r.size)return null;let i=t.resolve(e),o=t.resolve(n);return V0(i,o,r)?new Vt(e,n,r):new z_(i,o,r).fit()}function V0(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class z_{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=E.empty;for(let i=0;i<=e.depth;i++){let o=e.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(i))})}for(let i=e.depth;i>0;i--)this.placed=E.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let o=this.placed,s=r.depth,a=i.depth;for(;s&&a&&o.childCount==1;)o=o.firstChild.content,s--,a--;let l=new D(o,s,a);return e>-1?new ee(r.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new Vt(r.pos,i.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r1&&(i=0),o.type.spec.isolating&&i<=r){e=r;break}n=o.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let i,o=null;r?(o=du(this.unplaced.content,r-1).firstChild,i=o.content):i=this.unplaced.content;let s=i.firstChild;for(let a=this.depth;a>=0;a--){let{type:l,match:c}=this.frontier[a],u,h=null;if(n==1&&(s?c.matchType(s.type)||(h=c.fillBefore(E.from(s),!1)):o&&l.compatibleContent(o.type)))return{sliceDepth:r,frontierDepth:a,parent:o,inject:h};if(n==2&&s&&(u=c.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:a,parent:o,wrap:u};if(o&&c.matchType(o.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=du(e,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new D(e,n+1,Math.max(r,i.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=du(e,n);if(i.childCount<=1&&n>0){let o=e.size-n<=n+i.size;this.unplaced=new D(Jo(e,n-1,1),n-1,o?n-1:r)}else this.unplaced=new D(Jo(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:i,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let m=0;m1||l==0||m.content.size)&&(h=g,u.push(H0(m.mark(d.allowedMarks(m.marks)),c==1?l:0,c==a.childCount?f:-1)))}let p=c==a.childCount;p||(f=-1),this.placed=Xo(this.placed,n,E.from(u)),this.frontier[n].match=h,p&&f<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,g=a;m1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(e){t:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],o=n=0;a--){let{match:l,type:c}=this.frontier[a],u=fu(e,a,c,l,!0);if(!u||u.childCount)continue t}return{depth:n,fit:s,move:o?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Xo(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let i=e.node(r),o=i.type.contentMatch.fillBefore(i.content,!0,e.index(r));this.openFrontierNode(i.type,i.attrs,o)}return e}openFrontierNode(e,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=Xo(this.placed,this.depth,E.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(E.empty,!0);n.childCount&&(this.placed=Xo(this.placed,this.frontier.length,n))}}function Jo(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Jo(t.firstChild.content,e-1,n)))}function Xo(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Xo(t.lastChild.content,e-1,n)))}function du(t,e){for(let n=0;n1&&(r=r.replaceChild(0,H0(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(E.empty,!0)))),t.copy(r)}function fu(t,e,n,r,i){let o=t.node(e),s=i?t.indexAfter(e):t.index(e);if(s==o.childCount&&!n.compatibleContent(o.type))return null;let a=r.fillBefore(o.content,!0,s);return a&&!q_(n,o.content,s)?a:null}function q_(t,e,n){for(let r=n;r0;d--,f--){let p=i.node(d).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;s.indexOf(d)>-1?a=d:i.before(d)==f&&s.splice(1,0,-d)}let l=s.indexOf(a),c=[],u=r.openStart;for(let d=r.content,f=0;;f++){let p=d.firstChild;if(c.push(p),f==r.openStart)break;d=p.content}for(let d=u-1;d>=0;d--){let f=c[d],p=j_(f.type);if(p&&!f.sameMarkup(i.node(Math.abs(a)-1)))u=d;else if(p||!f.type.isTextblock)break}for(let d=r.openStart;d>=0;d--){let f=(d+u+1)%(r.openStart+1),p=c[f];if(p)for(let m=0;m=0&&(t.replace(e,n,r),!(t.steps.length>h));d--){let f=s[d];f<0||(e=i.before(f),n=o.after(f))}}function U0(t,e,n,r,i){if(er){let o=i.contentMatchAt(0),s=o.fillBefore(t).append(t);t=s.append(o.matchFragment(s).fillBefore(E.empty,!0))}return t}function V_(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let i=P_(t.doc,e,r.type);i!=null&&(e=n=i)}t.replaceRange(e,n,new D(E.from(r),0,0))}function H_(t,e,n){let r=t.doc.resolve(e),i=t.doc.resolve(n),o=K0(r,i);for(let s=0;s0&&(l||r.node(a-1).canReplace(r.index(a-1),i.indexAfter(a-1))))return t.delete(r.before(a),i.after(a))}for(let s=1;s<=r.depth&&s<=i.depth;s++)if(e-r.start(s)==r.depth-s&&n>r.end(s)&&i.end(s)-n!=i.depth-s)return t.delete(r.before(s),n);t.delete(e,n)}function K0(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let i=r;i>=0;i--){let o=t.start(i);if(oe.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(o==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==o-1)&&n.push(i)}return n}class no extends re{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ft.fail("No node at attribute step's position");let r=Object.create(null);for(let o in n.attrs)r[o]=n.attrs[o];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return Ft.fromReplace(e,this.pos,this.pos+1,new D(E.from(i),0,n.isLeaf?0:1))}getMap(){return Fe.empty}invert(e){return new no(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new no(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new no(n.pos,n.attr,n.value)}}re.jsonID("attr",no);class qs extends re{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let i in e.attrs)n[i]=e.attrs[i];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return Ft.ok(r)}getMap(){return Fe.empty}invert(e){return new qs(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new qs(n.attr,n.value)}}re.jsonID("docAttr",qs);let fo=class extends Error{};fo=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};fo.prototype=Object.create(Error.prototype);fo.prototype.constructor=fo;fo.prototype.name="TransformError";let G0=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new eo}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new fo(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=D.empty){let i=Md(this.doc,e,n,r);return i&&this.step(i),this}replaceWith(e,n,r){return this.replace(e,n,new D(E.from(r),0,0))}delete(e,n){return this.replace(e,n,D.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return W_(this,e,n,r),this}replaceRangeWith(e,n,r){return V_(this,e,n,r),this}deleteRange(e,n){return H_(this,e,n),this}lift(e,n){return E_(this,e,n),this}join(e,n=1){return R_(this,e,n),this}wrap(e,n){return O_(this,e,n),this}setBlockType(e,n=e,r,i=null){return I_(this,e,n,r,i),this}setNodeMarkup(e,n,r=null,i){return F_(this,e,n,r,i),this}setNodeAttribute(e,n,r){return this.step(new no(e,n,r)),this}setDocAttribute(e,n){return this.step(new qs(e,n)),this}addNodeMark(e,n){return this.step(new Tr(e,n)),this}removeNodeMark(e,n){if(!(n instanceof ut)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n=n.isInSet(r.marks),!n)return this}return this.step(new ho(e,n)),this}split(e,n=1,r){return L_(this,e,n,r),this}addMark(e,n,r){return __(this,e,n,r),this}removeMark(e,n,r){return T_(this,e,n,r),this}clearIncompatible(e,n,r){return v_(this,e,n,r),this}};const pu=Object.create(null);let tt=class{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new Y0(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n=0;o--){let s=n<0?qi(e.node(0),e.node(o),e.before(o+1),e.index(o),n,r):qi(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,n,r);if(s)return s}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new ve(e.node(0))}static atStart(e){return qi(e,e,0,0,1)||new ve(e)}static atEnd(e){return qi(e,e,e.content.size,e.childCount,-1)||new ve(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=pu[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in pu)throw new RangeError("Duplicate use of selection JSON ID "+e);return pu[e]=n,n.prototype.jsonID=e,n}getBookmark(){return it.between(this.$anchor,this.$head).getBookmark()}};tt.prototype.visible=!0;class Y0{constructor(e,n){this.$from=e,this.$to=n}}let mm=!1;function gm(t){!mm&&!t.parent.inlineContent&&(mm=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class it extends tt{constructor(e,n=e){gm(e),gm(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return tt.near(r);let i=e.resolve(n.map(this.anchor));return new it(i.parent.inlineContent?i:r,r)}replace(e,n=D.empty){if(super.replace(e,n),n==D.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof it&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new wc(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new it(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let i=e.resolve(n);return new this(i,r==n?i:e.resolve(r))}static between(e,n,r){let i=e.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let o=tt.findFrom(n,r,!0)||tt.findFrom(n,-r,!0);if(o)n=o.$head;else return tt.near(n,r)}return e.parent.inlineContent||(i==0?e=n:(e=(tt.findFrom(e,-r,!0)||tt.findFrom(e,r,!0)).$anchor,e.pos0?0:1);i>0?s=0;s+=i){let a=e.child(s);if(a.isAtom){if(!o&&Q.isSelectable(a))return Q.create(t,n-(i<0?a.nodeSize:0))}else{let l=qi(t,a,n+i,i<0?a.childCount:0,i,o);if(l)return l}n+=a.nodeSize*i}return null}function ym(t,e,n){let r=t.steps.length-1;if(r{s==null&&(s=u)}),t.setSelection(tt.near(t.doc.resolve(s),n))}const xm=1,Ba=2,bm=4;class K_ extends G0{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Ba,this}ensureMarks(e){return ut.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Ba)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Ba,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||ut.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let i=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!e)return this.deleteRange(n,r);let o=this.storedMarks;if(!o){let s=this.doc.resolve(n);o=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(e,o)),this.selection.empty||this.setSelection(tt.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=bm,this}get scrolledIntoView(){return(this.updated&bm)>0}}function km(t,e){return!e||!t?t:t.bind(e)}class Zo{constructor(e,n,r){this.name=e,this.init=km(n.init,r),this.apply=km(n.apply,r)}}const G_=[new Zo("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Zo("selection",{init(t,e){return t.selection||tt.atStart(e.doc)},apply(t){return t.selection}}),new Zo("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Zo("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class mu{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=G_.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Zo(r.key,r.spec.state,r))})}}class ri{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;rr.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=e[r],o=i.spec.state;o&&o.toJSON&&(n[r]=o.toJSON.call(i,this[i.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new mu(e.schema,e.plugins),o=new ri(i);return i.fields.forEach(s=>{if(s.name=="doc")o.doc=an.fromJSON(e.schema,n.doc);else if(s.name=="selection")o.selection=tt.fromJSON(o.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(o.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let a in r){let l=r[a],c=l.spec.state;if(l.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){o[s.name]=c.fromJSON.call(l,e,n[a],o);return}}o[s.name]=s.init(e,o)}}),o}}function J0(t,e,n){for(let r in t){let i=t[r];i instanceof Function?i=i.bind(e):r=="handleDOMEvents"&&(i=J0(i,e,{})),n[r]=i}return n}class me{constructor(e){this.spec=e,this.props={},e.props&&J0(e.props,this,this.props),this.key=e.key?e.key.key:X0("plugin")}getState(e){return e[this.key]}}const gu=Object.create(null);function X0(t){return t in gu?t+"$"+ ++gu[t]:(gu[t]=0,t+"$")}class ie{constructor(e="key"){this.key=X0(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const ae=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},js=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let Cm=null;const Yn=function(t,e,n){let r=Cm||(Cm=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},wi=function(t,e,n,r){return n&&(wm(t,e,n,r,-1)||wm(t,e,n,r,1))},Y_=/^(img|br|input|textarea|hr)$/i;function wm(t,e,n,r,i){for(;;){if(t==n&&e==r)return!0;if(e==(i<0?0:Sn(t))){let o=t.parentNode;if(!o||o.nodeType!=1||Od(t)||Y_.test(t.nodeName)||t.contentEditable=="false")return!1;e=ae(t)+(i<0?0:1),t=o}else if(t.nodeType==1){if(t=t.childNodes[e+(i<0?-1:0)],t.contentEditable=="false")return!1;e=i<0?Sn(t):0}else return!1}}function Sn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function J_(t,e,n){for(let r=e==0,i=e==Sn(t);r||i;){if(t==n)return!0;let o=ae(t);if(t=t.parentNode,!t)return!1;r=r&&o==0,i=i&&o==Sn(t)}}function Od(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const Sc=function(t){return t.focusNode&&wi(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function ni(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function X_(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Z_(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}const En=typeof navigator<"u"?navigator:null,Sm=typeof document<"u"?document:null,Rr=En&&En.userAgent||"",bh=/Edge\/(\d+)/.exec(Rr),Z0=/MSIE \d/.exec(Rr),kh=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Rr),Ae=!!(Z0||kh||bh),Er=Z0?document.documentMode:kh?+kh[1]:bh?+bh[1]:0,hn=!Ae&&/gecko\/(\d+)/i.test(Rr);hn&&+(/Firefox\/(\d+)/.exec(Rr)||[0,0])[1];const Ch=!Ae&&/Chrome\/(\d+)/.exec(Rr),Zt=!!Ch,Q_=Ch?+Ch[1]:0,he=!Ae&&!!En&&/Apple Computer/.test(En.vendor),po=he&&(/Mobile\/\w+/.test(Rr)||!!En&&En.maxTouchPoints>2),je=po||(En?/Mac/.test(En.platform):!1),tT=En?/Win/.test(En.platform):!1,nn=/Android \d/.test(Rr),sa=!!Sm&&"webkitFontSmoothing"in Sm.documentElement.style,eT=sa?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function nT(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Wn(t,e){return typeof t=="number"?t:t[e]}function rT(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function _m(t,e,n){let r=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,o=t.dom.ownerDocument;for(let s=n||t.dom;s;s=js(s)){if(s.nodeType!=1)continue;let a=s,l=a==o.body,c=l?nT(o):rT(a),u=0,h=0;if(e.topc.bottom-Wn(r,"bottom")&&(h=e.bottom-e.top>c.bottom-c.top?e.top+Wn(i,"top")-c.top:e.bottom-c.bottom+Wn(i,"bottom")),e.leftc.right-Wn(r,"right")&&(u=e.right-c.right+Wn(i,"right")),u||h)if(l)o.defaultView.scrollBy(u,h);else{let d=a.scrollLeft,f=a.scrollTop;h&&(a.scrollTop+=h),u&&(a.scrollLeft+=u);let p=a.scrollLeft-d,m=a.scrollTop-f;e={left:e.left-p,top:e.top-m,right:e.right-p,bottom:e.bottom-m}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function iT(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,i;for(let o=(e.left+e.right)/2,s=n+1;s=n-20){r=a,i=l.top;break}}return{refDOM:r,refTop:i,stack:Q0(t.dom)}}function Q0(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=js(r));return e}function oT({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;t1(n,r==0?0:r-e)}function t1(t,e){for(let n=0;n=a){s=Math.max(p.bottom,s),a=Math.min(p.top,a);let m=p.left>e.left?p.left-e.left:p.right=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!l&&p.left<=e.left&&p.right>=e.left&&(l=u,c={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!n&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(o=h+1)}}return!n&&l&&(n=l,i=c,r=0),n&&n.nodeType==3?aT(n,i):!n||r&&n.nodeType==1?{node:t,offset:o}:e1(n,i)}function aT(t,e){let n=t.nodeValue.length,r=document.createRange();for(let i=0;i=(o.left+o.right)/2?1:0)}}return{node:t,offset:0}}function Id(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function lT(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(r,i,o)}function uT(t,e,n,r){let i=-1;for(let o=e,s=!1;o!=t.dom;){let a=t.docView.nearestDesc(o,!0);if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent&&!s||!a.contentDOM)){let l=a.dom.getBoundingClientRect();if(a.node.isBlock&&a.parent&&!s&&(s=!0,l.left>r.left||l.top>r.top?i=a.posBefore:(l.right-1?i:t.docView.posFromDOM(e,n,-1)}function n1(t,e,n){let r=t.childNodes.length;if(r&&n.tope.top&&i++}let c;sa&&i&&r.nodeType==1&&(c=r.childNodes[i-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&i--,r==t.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(a=uT(t,r,i,e))}a==null&&(a=cT(t,s,e));let l=t.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function Tm(t){return t.top=0&&i==r.nodeValue.length?(l--,u=1):n<0?l--:c++,jo(hr(Yn(r,l,c),u),u<0)}if(!t.state.doc.resolve(e-(o||0)).parent.inlineContent){if(o==null&&i&&(n<0||i==Sn(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return yu(l.getBoundingClientRect(),!1)}if(o==null&&i=0)}if(o==null&&i&&(n<0||i==Sn(r))){let l=r.childNodes[i-1],c=l.nodeType==3?Yn(l,Sn(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return jo(hr(c,1),!1)}if(o==null&&i=0)}function jo(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function yu(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function i1(t,e,n){let r=t.state,i=t.root.activeElement;r!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),i!=t.dom&&i&&i.focus()}}function fT(t,e,n){let r=e.selection,i=n=="up"?r.$from:r.$to;return i1(t,e,()=>{let{node:o}=t.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let a=t.docView.nearestDesc(o,!0);if(!a)break;if(a.node.isBlock){o=a.contentDOM||a.dom;break}o=a.dom.parentNode}let s=r1(t,i.pos,1);for(let a=o.firstChild;a;a=a.nextSibling){let l;if(a.nodeType==1)l=a.getClientRects();else if(a.nodeType==3)l=Yn(a,0,a.nodeValue.length).getClientRects();else continue;for(let c=0;cu.top+1&&(n=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const pT=/[\u0590-\u08ac]/;function mT(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,s=i==r.parent.content.size,a=t.domSelection();return!pT.test(r.parent.textContent)||!a.modify?n=="left"||n=="backward"?o:s:i1(t,e,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:h}=t.domSelectionRange(),d=a.caretBidiLevel;a.modify("move",n,"character");let f=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:p,focusOffset:m}=t.domSelectionRange(),g=p&&!f.contains(p.nodeType==1?p:p.parentNode)||l==p&&c==m;try{a.collapse(u,h),l&&(l!=u||c!=h)&&a.extend&&a.extend(l,c)}catch{}return d!=null&&(a.caretBidiLevel=d),g})}let vm=null,Am=null,Em=!1;function gT(t,e,n){return vm==e&&Am==n?Em:(vm=e,Am=n,Em=n=="up"||n=="down"?fT(t,e,n):mT(t,e,n))}const He=0,Mm=1,ii=2,Mn=3;class aa{constructor(e,n,r,i){this.parent=e,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=He,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;nae(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=e;;o=o.parentNode){if(o==this.dom){i=!1;break}if(o.previousSibling)break}if(i==null&&n==e.childNodes.length)for(let o=e;;o=o.parentNode){if(o==this.dom){i=!0;break}if(o.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,i=e;i;i=i.parentNode){let o=this.getDesc(i),s;if(o&&(!n||o.node))if(r&&(s=o.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return o}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let i=e;i;i=i.parentNode){let o=this.getDesc(i);if(o)return o.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;ne||s instanceof s1){i=e-o;break}o=a}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof o1&&o.side>=0;r--);if(n<=0){let o,s=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,s=!1);return o&&n&&s&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?ae(o.dom)+1:0}}else{let o,s=!0;for(;o=r=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,u);e=s;for(let h=a;h>0;h--){let d=this.children[h-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){i=ae(d.dom)+1;break}e-=d.size}i==-1&&(i=0)}if(i>-1&&(c>n||a==this.children.length-1)){n=c;for(let u=a+1;uf&&sn){let f=a;a=l,l=f}let d=document.createRange();d.setEnd(l.node,l.offset),d.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(d)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,i=0;i=r:er){let a=r+o.border,l=s-o.border;if(e>=a&&n<=l){this.dirty=e==r||n==s?ii:Mm,e==a&&n==l&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=Mn:o.markDirty(e-a,n-a);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?ii:Mn}r=s}this.dirty=ii}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?ii:Mm;n.dirty{if(!o)return i;if(o.parent)return o.parent.posBeforeChild(o)})),!n.type.spec.raw){if(s.nodeType!=1){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=n,this.widget=n,o=this}matchesWidget(e){return this.dirty==He&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class yT extends aa{constructor(e,n,r,i){super(e,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class Si extends aa{constructor(e,n,r,i){super(e,[],r,i),this.mark=n}static create(e,n,r,i){let o=i.nodeViews[n.type.name],s=o&&o(n,i,r);return(!s||!s.dom)&&(s=_n.renderSpec(document,n.type.spec.toDOM(n,r))),new Si(e,n,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&Mn||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Mn&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=He){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(o=_h(o,0,e,r));for(let a=0;a{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},r,i),u=c&&c.dom,h=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:h}=_n.renderSpec(document,n.type.spec.toDOM(n)));!h&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let d=u;return u=c1(u,r,n),c?l=new xT(e,n,r,i,u,h||null,d,c,o,s+1):n.isText?new _c(e,n,r,i,u,d,o):new Mr(e,n,r,i,u,h||null,d,o,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>E.empty)}return e}matchesNode(e,n,r){return this.dirty==He&&e.eq(this.node)&&Sh(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,i=n,o=e.composing?this.localCompositionInfo(e,n):null,s=o&&o.pos>-1?o:null,a=o&&o.pos<0,l=new kT(this,s&&s.node,e);ST(this.node,this.innerDeco,(c,u,h)=>{c.spec.marks?l.syncToMarks(c.spec.marks,r,e):c.type.side>=0&&!h&&l.syncToMarks(u==this.node.childCount?ut.none:this.node.child(u).marks,r,e),l.placeWidget(c,e,i)},(c,u,h,d)=>{l.syncToMarks(c.marks,r,e);let f;l.findNodeMatch(c,u,h,d)||a&&e.state.selection.from>i&&e.state.selection.to-1&&l.updateNodeAt(c,u,h,f,e)||l.updateNextNode(c,u,h,e,d,i)||l.addNode(c,u,h,e,i),i+=c.nodeSize}),l.syncToMarks([],r,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==ii)&&(s&&this.protectLocalComposition(e,s),a1(this.contentDOM,this.children,e),po&&_T(this.dom))}localCompositionInfo(e,n){let{from:r,to:i}=e.state.selection;if(!(e.state.selection instanceof it)||rn+this.node.content.size)return null;let o=e.domSelectionRange(),s=TT(o.focusNode,o.focusOffset);if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let a=s.nodeValue,l=vT(this.node.content,a,r-n,i-n);return l<0?null:{node:s,pos:l,text:a}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let s=new yT(this,o,n,i);e.input.compositionNodes.push(s),this.children=_h(this.children,r,r+i.length,e,s)}update(e,n,r,i){return this.dirty==Mn||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,i),!0)}updateInner(e,n,r,i){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=He}updateOuterDeco(e){if(Sh(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=l1(this.dom,this.nodeDOM,wh(this.outerDeco,this.node,n),wh(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function Nm(t,e,n,r,i){c1(r,e,t);let o=new Mr(void 0,t,e,n,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}class _c extends Mr{constructor(e,n,r,i,o,s,a){super(e,n,r,i,o,null,s,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,i){return this.dirty==Mn||this.dirty!=He&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=He||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=e,this.dirty=He,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let i=this.node.cut(e,n),o=document.createTextNode(i.text);return new _c(this.parent,i,this.outerDeco,this.innerDeco,o,o,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Mn)}get domAtom(){return!1}}class s1 extends aa{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==He&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class xT extends Mr{constructor(e,n,r,i,o,s,a,l,c,u){super(e,n,r,i,o,s,a,c,u),this.spec=l}update(e,n,r,i){if(this.dirty==Mn)return!1;if(this.spec.update){let o=this.spec.update(e,n,r);return o&&this.updateInner(e,n,r,i),o}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,i){this.spec.setSelection?this.spec.setSelection(e,n,r):super.setSelection(e,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function a1(t,e,n){let r=t.firstChild,i=!1;for(let o=0;o>1,s=Math.min(o,e.length);for(;i-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=Si.create(this.top,e[o],n,r);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}}findNodeMatch(e,n,r,i){let o=-1,s;if(i>=this.preMatch.index&&(s=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,r))o=this.top.children.indexOf(s,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a0;){let a;for(;;)if(r){let c=n.children[r-1];if(c instanceof Si)n=c,r=c.children.length;else{a=c,r--;break}}else{if(n==e)break t;r=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=t.child(i-1))break;--i,o.set(a,i),s.push(a)}}return{index:i,matched:o,matches:s.reverse()}}function wT(t,e){return t.type.side-e.type.side}function ST(t,e,n,r){let i=e.locals(t),o=0;if(i.length==0){for(let c=0;co;)a.push(i[s++]);let p=o+d.nodeSize;if(d.isText){let g=p;s!g.inline):a.slice();r(d,m,e.forChild(o,d),f),o=p}}function _T(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function TT(t,e){for(;;){if(t.nodeType==3)return t;if(t.nodeType==1&&e>0){if(t.childNodes.length>e&&t.childNodes[e].nodeType==3)return t.childNodes[e];t=t.childNodes[e-1],e=Sn(t)}else if(t.nodeType==1&&e=n){if(o>=r&&l.slice(r-e.length-a,r-a)==e)return r-e.length;let c=a=0&&c+e.length+a>=n)return a+c;if(n==r&&l.length>=r+e.length-a&&l.slice(r-a,r-a+e.length)==e)return r}}return-1}function _h(t,e,n,r,i){let o=[];for(let s=0,a=0;s=n||u<=e?o.push(l):(cn&&o.push(l.slice(n-c,l.size,r)))}return o}function Bd(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let i=t.docView.nearestDesc(n.focusNode),o=i&&i.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let a=r.resolve(s),l,c;if(Sc(n)){for(l=a;i&&!i.node;)i=i.parent;let u=i.node;if(i&&u.isAtom&&Q.isSelectable(u)&&i.parent&&!(u.isInline&&J_(n.focusNode,n.focusOffset,i.dom))){let h=i.posBefore;c=new Q(s==h?a:r.resolve(h))}}else{let u=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null;l=r.resolve(u)}if(!c){let u=e=="pointer"||t.state.selection.head{(n.anchorNode!=r||n.anchorOffset!=i)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!u1(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function ET(t){let e=t.domSelection(),n=document.createRange(),r=t.cursorWrapper.dom,i=r.nodeName=="IMG";i?n.setEnd(r.parentNode,ae(r)+1):n.setEnd(r,0),n.collapse(!1),e.removeAllRanges(),e.addRange(n),!i&&!t.state.selection.visible&&Ae&&Er<=11&&(r.disabled=!0,r.disabled=!1)}function h1(t,e){if(e instanceof Q){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Lm(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Lm(t)}function Lm(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Fd(t,e,n,r){return t.someProp("createSelectionBetween",i=>i(t,e,n))||it.between(e,n,r)}function Dm(t){return t.editable&&!t.hasFocus()?!1:d1(t)}function d1(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function MT(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return wi(e.node,e.offset,n.anchorNode,n.anchorOffset)}function Th(t,e){let{$anchor:n,$head:r}=t.selection,i=e>0?n.max(r):n.min(r),o=i.parent.inlineContent?i.depth?t.doc.resolve(e>0?i.after():i.before()):null:i;return o&&tt.findFrom(o,e)}function br(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function Rm(t,e,n){let r=t.state.selection;if(r instanceof it)if(n.indexOf("s")>-1){let{$head:i}=r,o=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let s=t.state.doc.resolve(i.pos+o.nodeSize*(e<0?-1:1));return br(t,new it(r.$anchor,s))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let i=Th(t.state,e);return i&&i instanceof Q?br(t,i):!1}else if(!(je&&n.indexOf("m")>-1)){let i=r.$head,o=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter,s;if(!o||o.isText)return!1;let a=e<0?i.pos-o.nodeSize:i.pos;return o.isAtom||(s=t.docView.descAt(a))&&!s.contentDOM?Q.isSelectable(o)?br(t,new Q(e<0?t.state.doc.resolve(i.pos-o.nodeSize):i)):sa?br(t,new it(t.state.doc.resolve(e<0?a:a+o.nodeSize))):!1:!1}}else return!1;else{if(r instanceof Q&&r.node.isInline)return br(t,new it(e>0?r.$to:r.$from));{let i=Th(t.state,e);return i?br(t,i):!1}}}function zl(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function As(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Pi(t,e){return e<0?NT(t):OT(t)}function NT(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i,o,s=!1;for(hn&&n.nodeType==1&&r0){if(n.nodeType!=1)break;{let a=n.childNodes[r-1];if(As(a,-1))i=n,o=--r;else if(a.nodeType==3)n=a,r=n.nodeValue.length;else break}}else{if(f1(n))break;{let a=n.previousSibling;for(;a&&As(a,-1);)i=n.parentNode,o=ae(a),a=a.previousSibling;if(a)n=a,r=zl(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?vh(t,n,r):i&&vh(t,i,o)}function OT(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i=zl(n),o,s;for(;;)if(r{t.state==i&&tr(t)},50)}function Pm(t,e){let n=t.state.doc.resolve(e);if(!(Zt||tT)&&n.parent.inlineContent){let i=t.coordsAtPos(e);if(e>n.start()){let o=t.coordsAtPos(e-1),s=(o.top+o.bottom)/2;if(s>i.top&&s1)return o.lefti.top&&s1)return o.left>i.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function $m(t,e,n){let r=t.state.selection;if(r instanceof it&&!r.empty||n.indexOf("s")>-1||je&&n.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=Th(t.state,e);if(s&&s instanceof Q)return br(t,s)}if(!i.parent.inlineContent){let s=e<0?i:o,a=r instanceof ve?tt.near(s,e):tt.findFrom(s,e);return a?br(t,a):!1}return!1}function zm(t,e){if(!(t.state.selection instanceof it))return!0;let{$head:n,$anchor:r,empty:i}=t.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let o=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let s=t.state.tr;return e<0?s.delete(n.pos-o.nodeSize,n.pos):s.delete(n.pos,n.pos+o.nodeSize),t.dispatch(s),!0}return!1}function qm(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function FT(t){if(!he||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;qm(t,r,"true"),setTimeout(()=>qm(t,r,"false"),20)}return!1}function LT(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function DT(t,e){let n=e.keyCode,r=LT(e);if(n==8||je&&n==72&&r=="c")return zm(t,-1)||Pi(t,-1);if(n==46&&!e.shiftKey||je&&n==68&&r=="c")return zm(t,1)||Pi(t,1);if(n==13||n==27)return!0;if(n==37||je&&n==66&&r=="c"){let i=n==37?Pm(t,t.state.selection.from)=="ltr"?-1:1:-1;return Rm(t,i,r)||Pi(t,i)}else if(n==39||je&&n==70&&r=="c"){let i=n==39?Pm(t,t.state.selection.from)=="ltr"?1:-1:1;return Rm(t,i,r)||Pi(t,i)}else{if(n==38||je&&n==80&&r=="c")return $m(t,-1,r)||Pi(t,-1);if(n==40||je&&n==78&&r=="c")return FT(t)||$m(t,1,r)||Pi(t,1);if(r==(je?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function p1(t,e){t.someProp("transformCopied",f=>{e=f(e,t)});let n=[],{content:r,openStart:i,openEnd:o}=e;for(;i>1&&o>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,o--;let f=r.firstChild;n.push(f.type.name,f.attrs!=f.type.defaultAttrs?f.attrs:null),r=f.content}let s=t.someProp("clipboardSerializer")||_n.fromSchema(t.state.schema),a=k1(),l=a.createElement("div");l.appendChild(s.serializeFragment(r,{document:a}));let c=l.firstChild,u,h=0;for(;c&&c.nodeType==1&&(u=b1[c.nodeName.toLowerCase()]);){for(let f=u.length-1;f>=0;f--){let p=a.createElement(u[f]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),h++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${i} ${o}${h?` -${h}`:""} ${JSON.stringify(n)}`);let d=t.someProp("clipboardTextSerializer",f=>f(e,t))||e.content.textBetween(0,e.content.size,` + +`);return{dom:l,text:d}}function m1(t,e,n,r,i){let o=i.parent.type.spec.code,s,a;if(!n&&!e)return null;let l=e&&(r||o||!n);if(l){if(t.someProp("transformPastedText",d=>{e=d(e,o||r,t)}),o)return e?new D(E.from(t.state.schema.text(e.replace(/\r\n?/g,` +`))),0,0):D.empty;let h=t.someProp("clipboardTextParser",d=>d(e,i,r,t));if(h)a=h;else{let d=i.marks(),{schema:f}=t.state,p=_n.fromSchema(f);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(m=>{let g=s.appendChild(document.createElement("p"));m&&g.appendChild(p.serializeNode(f.text(m,d)))})}}else t.someProp("transformPastedHTML",h=>{n=h(n,t)}),s=$T(n),sa&&zT(s);let c=s&&s.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let h=+u[3];h>0;h--){let d=s.firstChild;for(;d&&d.nodeType!=1;)d=d.nextSibling;if(!d)break;s=d}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||Ci.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||u),context:i,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!RT.test(d.parentNode.nodeName)?{ignore:!0}:null}})),u)a=qT(jm(a,+u[1],+u[2]),u[4]);else if(a=D.maxOpen(PT(a.content,i),!0),a.openStart||a.openEnd){let h=0,d=0;for(let f=a.content.firstChild;h{a=h(a,t)}),a}const RT=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function PT(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let i=e.node(n).contentMatchAt(e.index(n)),o,s=[];if(t.forEach(a=>{if(!s)return;let l=i.findWrapping(a.type),c;if(!l)return s=null;if(c=s.length&&o.length&&y1(l,o,a,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=x1(s[s.length-1],o.length));let u=g1(a,l);s.push(u),i=i.matchType(u.type),o=l}}),s)return E.from(s)}return t}function g1(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,E.from(t));return t}function y1(t,e,n,r,i){if(i1&&(o=0),i=n&&(a=e<0?s.contentMatchAt(0).fillBefore(a,o<=i).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(E.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(a))}function jm(t,e,n){return e]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=k1().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),i;if((i=r&&b1[r[1].toLowerCase()])&&(t=i.map(o=>"<"+o+">").join("")+t+i.map(o=>"").reverse().join("")),n.innerHTML=t,i)for(let o=0;o=0;a-=2){let l=n.nodes[r[a]];if(!l||l.hasRequiredAttrs())break;i=E.from(l.create(r[a+1],i)),o++,s++}return new D(i,o,s)}const de={},fe={},jT={touchstart:!0,touchmove:!0};class WT{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function VT(t){for(let e in de){let n=de[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{UT(t,r)&&!Ld(t,r)&&(t.editable||!(r.type in fe))&&n(t,r)},jT[e]?{passive:!0}:void 0)}he&&t.dom.addEventListener("input",()=>null),Eh(t)}function vr(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function HT(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Eh(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>Ld(t,r))})}function Ld(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function UT(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function KT(t,e){!Ld(t,e)&&de[e.type]&&(t.editable||!(e.type in fe))&&de[e.type](t,e)}fe.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!w1(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(nn&&Zt&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),po&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",i=>i(t,ni(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||DT(t,n)?n.preventDefault():vr(t,"key")};fe.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};fe.keypress=(t,e)=>{let n=e;if(w1(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||je&&n.metaKey)return;if(t.someProp("handleKeyPress",i=>i(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof it)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode);!/[\r\n]/.test(i)&&!t.someProp("handleTextInput",o=>o(t,r.$from.pos,r.$to.pos,i))&&t.dispatch(t.state.tr.insertText(i).scrollIntoView()),n.preventDefault()}};function Tc(t){return{left:t.clientX,top:t.clientY}}function GT(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function Dd(t,e,n,r,i){if(r==-1)return!1;let o=t.state.doc.resolve(r);for(let s=o.depth+1;s>0;s--)if(t.someProp(e,a=>s>o.depth?a(t,n,o.nodeAfter,o.before(s),i,!0):a(t,n,o.node(s),o.before(s),i,!1)))return!0;return!1}function ro(t,e,n){t.focused||t.focus();let r=t.state.tr.setSelection(e);n=="pointer"&&r.setMeta("pointer",!0),t.dispatch(r)}function YT(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&Q.isSelectable(r)?(ro(t,new Q(n),"pointer"),!0):!1}function JT(t,e){if(e==-1)return!1;let n=t.state.selection,r,i;n instanceof Q&&(r=n.node);let o=t.state.doc.resolve(e);for(let s=o.depth+1;s>0;s--){let a=s>o.depth?o.nodeAfter:o.node(s);if(Q.isSelectable(a)){r&&n.$from.depth>0&&s>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?i=o.before(n.$from.depth):i=o.before(s);break}}return i!=null?(ro(t,Q.create(t.state.doc,i),"pointer"),!0):!1}function XT(t,e,n,r,i){return Dd(t,"handleClickOn",e,n,r)||t.someProp("handleClick",o=>o(t,e,r))||(i?JT(t,n):YT(t,n))}function ZT(t,e,n,r){return Dd(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",i=>i(t,e,r))}function QT(t,e,n,r){return Dd(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",i=>i(t,e,r))||tv(t,n,r)}function tv(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(ro(t,it.create(r,0,r.content.size),"pointer"),!0):!1;let i=r.resolve(e);for(let o=i.depth+1;o>0;o--){let s=o>i.depth?i.nodeAfter:i.node(o),a=i.before(o);if(s.inlineContent)ro(t,it.create(r,a+1,a+1+s.content.size),"pointer");else if(Q.isSelectable(s))ro(t,Q.create(r,a),"pointer");else continue;return!0}}function Rd(t){return ql(t)}const C1=je?"metaKey":"ctrlKey";de.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=Rd(t),i=Date.now(),o="singleClick";i-t.input.lastClick.time<500&>(n,t.input.lastClick)&&!n[C1]&&(t.input.lastClick.type=="singleClick"?o="doubleClick":t.input.lastClick.type=="doubleClick"&&(o="tripleClick")),t.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o};let s=t.posAtCoords(Tc(n));s&&(o=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new ev(t,s,n,!!r)):(o=="doubleClick"?ZT:QT)(t,s.pos,s.inside,n)?n.preventDefault():vr(t,"pointer"))};class ev{constructor(e,n,r,i){this.view=e,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[C1],this.allowDefault=r.shiftKey;let o,s;if(n.inside>-1)o=e.state.doc.nodeAt(n.inside),s=n.inside;else{let u=e.state.doc.resolve(n.pos);o=u.parent,s=u.depth?u.before():0}const a=i?null:r.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l?l.dom:null;let{selection:c}=e.state;(r.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||c instanceof Q&&c.from<=s&&c.to>s)&&(this.mightDrag={node:o,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&hn&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),vr(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>tr(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Tc(e))),this.updateAllowDefault(e),this.allowDefault||!n?vr(this.view,"pointer"):XT(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||he&&this.mightDrag&&!this.mightDrag.node.isAtom||Zt&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(ro(this.view,tt.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):vr(this.view,"pointer")}move(e){this.updateAllowDefault(e),vr(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}de.touchstart=t=>{t.input.lastTouch=Date.now(),Rd(t),vr(t,"pointer")};de.touchmove=t=>{t.input.lastTouch=Date.now(),vr(t,"pointer")};de.contextmenu=t=>Rd(t);function w1(t,e){return t.composing?!0:he&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const nv=nn?5e3:-1;fe.compositionstart=fe.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),ql(t,!0),t.markCursor=null;else if(ql(t),hn&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let i=r.focusNode,o=r.focusOffset;i&&i.nodeType==1&&o!=0;){let s=o<0?i.lastChild:i.childNodes[o-1];if(!s)break;if(s.nodeType==3){t.domSelection().collapse(s,s.nodeValue.length);break}else i=s,o=-1}}t.input.composing=!0}S1(t,nv)};fe.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,S1(t,20))};function S1(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>ql(t),e))}function _1(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=rv());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function rv(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function ql(t,e=!1){if(!(nn&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),_1(t),e||t.docView&&t.docView.dirty){let n=Bd(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):t.updateState(t.state),!0}return!1}}function iv(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Ws=Ae&&Er<15||po&&eT<604;de.copy=fe.cut=(t,e)=>{let n=e,r=t.state.selection,i=n.type=="cut";if(r.empty)return;let o=Ws?null:n.clipboardData,s=r.content(),{dom:a,text:l}=p1(t,s);o?(n.preventDefault(),o.clearData(),o.setData("text/html",a.innerHTML),o.setData("text/plain",l)):iv(t,a),i&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function ov(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function sv(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Vs(t,r.value,null,i,e):Vs(t,r.textContent,r.innerHTML,i,e)},50)}function Vs(t,e,n,r,i){let o=m1(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,i,o||D.empty)))return!0;if(!o)return!1;let s=ov(o),a=s?t.state.tr.replaceSelectionWith(s,r):t.state.tr.replaceSelection(o);return t.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function T1(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}fe.paste=(t,e)=>{let n=e;if(t.composing&&!nn)return;let r=Ws?null:n.clipboardData,i=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&Vs(t,T1(r),r.getData("text/html"),i,n)?n.preventDefault():sv(t,n)};class v1{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const A1=je?"altKey":"ctrlKey";de.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=t.state.selection,o=i.empty?null:t.posAtCoords(Tc(n)),s;if(!(o&&o.pos>=i.from&&o.pos<=(i instanceof Q?i.to-1:i.to))){if(r&&r.mightDrag)s=Q.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let u=t.docView.nearestDesc(n.target,!0);u&&u.node.type.spec.draggable&&u!=t.docView&&(s=Q.create(t.state.doc,u.posBefore))}}let a=(s||t.state.selection).content(),{dom:l,text:c}=p1(t,a);n.dataTransfer.clearData(),n.dataTransfer.setData(Ws?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Ws||n.dataTransfer.setData("text/plain",c),t.dragging=new v1(a,!n[A1],s)};de.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};fe.dragover=fe.dragenter=(t,e)=>e.preventDefault();fe.drop=(t,e)=>{let n=e,r=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let i=t.posAtCoords(Tc(n));if(!i)return;let o=t.state.doc.resolve(i.pos),s=r&&r.slice;s?t.someProp("transformPasted",p=>{s=p(s,t)}):s=m1(t,T1(n.dataTransfer),Ws?null:n.dataTransfer.getData("text/html"),!1,o);let a=!!(r&&!n[A1]);if(t.someProp("handleDrop",p=>p(t,n,s||D.empty,a))){n.preventDefault();return}if(!s)return;n.preventDefault();let l=s?$_(t.state.doc,o.pos,s):o.pos;l==null&&(l=o.pos);let c=t.state.tr;if(a){let{node:p}=r;p?p.replace(c):c.deleteSelection()}let u=c.mapping.map(l),h=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,d=c.doc;if(h?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(d))return;let f=c.doc.resolve(u);if(h&&Q.isSelectable(s.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new Q(f));else{let p=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((m,g,y,C)=>p=C),c.setSelection(Fd(t,f,c.doc.resolve(p)))}t.focus(),t.dispatch(c.setMeta("uiEvent","drop"))};de.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&tr(t)},20))};de.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};de.beforeinput=(t,e)=>{if(Zt&&nn&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",o=>o(t,ni(8,"Backspace")))))return;let{$cursor:i}=t.state.selection;i&&i.pos>0&&t.dispatch(t.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let t in fe)de[t]=fe[t];function Hs(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class jl{constructor(e,n){this.toDOM=e,this.spec=n||ui,this.side=this.spec.side||0}map(e,n,r,i){let{pos:o,deleted:s}=e.mapResult(n.from+i,this.side<0?-1:1);return s?null:new te(o-r,o-r,this)}valid(){return!0}eq(e){return this==e||e instanceof jl&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Hs(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Nr{constructor(e,n){this.attrs=e,this.spec=n||ui}map(e,n,r,i){let o=e.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,s=e.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return o>=s?null:new te(o,s,this)}valid(e,n){return n.from=e&&(!o||o(a.spec))&&r.push(a.copy(a.from+i,a.to+i))}for(let s=0;se){let a=this.children[s]+1;this.children[s+2].findInner(e-a,n-a,r,i+a,o)}}map(e,n,r){return this==Xt||e.maps.length==0?this:this.mapInner(e,n,0,0,r||ui)}mapInner(e,n,r,i,o){let s;for(let a=0;a{let c=l+r,u;if(u=M1(n,a,c)){for(i||(i=this.children.slice());oa&&h.to=e){this.children[a]==e&&(r=this.children[a+2]);break}let o=e+1,s=o+n.content.size;for(let a=0;ao&&l.type instanceof Nr){let c=Math.max(o,l.from)-o,u=Math.min(s,l.to)-o;ci.map(e,n,ui));return Sr.from(r)}forChild(e,n){if(n.isLeaf)return Et.empty;let r=[];for(let i=0;in instanceof Et)?e:e.reduce((n,r)=>n.concat(r instanceof Et?r:r.members),[]))}}}function av(t,e,n,r,i,o,s){let a=t.slice();for(let c=0,u=o;c{let g=m-p-(f-d);for(let y=0;yC+u-h)continue;let T=a[y]+u-h;f>=T?a[y+1]=d<=T?-2:-1:d>=u&&g&&(a[y]+=g,a[y+1]+=g)}h+=g}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c=r.content.size){l=!0;continue}let d=n.map(t[c+1]+o,-1),f=d-i,{index:p,offset:m}=r.content.findIndex(h),g=r.maybeChild(p);if(g&&m==h&&m+g.nodeSize==f){let y=a[c+2].mapInner(n,g,u+1,t[c]+o+1,s);y!=Xt?(a[c]=h,a[c+1]=f,a[c+2]=y):(a[c+1]=-2,l=!0)}else l=!0}if(l){let c=lv(a,t,e,n,i,o,s),u=Wl(c,r,0,s);e=u.local;for(let h=0;hn&&s.to{let c=M1(t,a,l+n);if(c){o=!0;let u=Wl(c,a,n+l+1,r);u!=Xt&&i.push(l,l+a.nodeSize,u)}});let s=E1(o?N1(t):t,-n).sort(hi);for(let a=0;a0;)e++;t.splice(e,0,n)}function bu(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=Xt&&e.push(r)}),t.cursorWrapper&&e.push(Et.create(t.state.doc,[t.cursorWrapper.deco])),Sr.from(e)}const cv={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},uv=Ae&&Er<=11;class hv{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class dv{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new hv,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;ii.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),uv&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,cv)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Dm(this.view)){if(this.suppressingSelectionUpdates)return tr(this.view);if(Ae&&Er<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&wi(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let o=e.focusNode;o;o=js(o))n.add(o);for(let o=e.anchorNode;o;o=js(o))if(n.has(o)){r=o;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Dm(e)&&!this.ignoreSelectionChange(r),o=-1,s=-1,a=!1,l=[];if(e.editable)for(let u=0;u1){let u=l.filter(h=>h.nodeName=="BR");if(u.length==2){let h=u[0],d=u[1];h.parentNode&&h.parentNode.parentNode==d.parentNode?d.remove():h.remove()}}let c=null;o<0&&i&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)-1||i)&&(o>-1&&(e.docView.markDirty(o,s),fv(e)),this.handleDOMChange(o,s,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||tr(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;ui;g--){let y=r.childNodes[g-1],C=y.pmViewDesc;if(y.nodeName=="BR"&&!C){o=g;break}if(!C||C.size)break}let h=t.state.doc,d=t.someProp("domParser")||Ci.fromSchema(t.state.schema),f=h.resolve(s),p=null,m=d.parse(r,{topNode:f.parent,topMatch:f.parent.contentMatchAt(f.index()),topOpen:!0,from:i,to:o,preserveWhitespace:f.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:gv,context:f});if(c&&c[0].pos!=null){let g=c[0].pos,y=c[1]&&c[1].pos;y==null&&(y=g),p={anchor:g+s,head:y+s}}return{doc:m,sel:p,from:s,to:a}}function gv(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(he&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||he&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const yv=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function xv(t,e,n,r,i){let o=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let R=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,_=Bd(t,R);if(_&&!t.state.selection.eq(_)){if(Zt&&nn&&t.input.lastKeyCode===13&&Date.now()-100z(t,ni(13,"Enter"))))return;let P=t.state.tr.setSelection(_);R=="pointer"?P.setMeta("pointer",!0):R=="key"&&P.scrollIntoView(),o&&P.setMeta("composition",o),t.dispatch(P)}return}let s=t.state.doc.resolve(e),a=s.sharedDepth(n);e=s.before(a+1),n=t.state.doc.resolve(n).after(a+1);let l=t.state.selection,c=mv(t,e,n),u=t.state.doc,h=u.slice(c.from,c.to),d,f;t.input.lastKeyCode===8&&Date.now()-100Date.now()-225||nn)&&i.some(R=>R.nodeType==1&&!yv.test(R.nodeName))&&(!p||p.endA>=p.endB)&&t.someProp("handleKeyDown",R=>R(t,ni(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!p)if(r&&l instanceof it&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let R=Km(t,t.state.doc,c.sel);if(R&&!R.eq(t.state.selection)){let _=t.state.tr.setSelection(R);o&&_.setMeta("composition",o),t.dispatch(_)}}return}if(Zt&&t.cursorWrapper&&c.sel&&c.sel.anchor==t.cursorWrapper.deco.from&&c.sel.head==c.sel.anchor){let R=p.endB-p.start;c.sel={anchor:c.sel.anchor+R,head:c.sel.anchor+R}}t.input.domChangeCount++,t.state.selection.fromt.state.selection.from&&p.start<=t.state.selection.from+2&&t.state.selection.from>=c.from?p.start=t.state.selection.from:p.endA=t.state.selection.to-2&&t.state.selection.to<=c.to&&(p.endB+=t.state.selection.to-p.endA,p.endA=t.state.selection.to)),Ae&&Er<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>c.from&&c.doc.textBetween(p.start-c.from-1,p.start-c.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let m=c.doc.resolveNoCache(p.start-c.from),g=c.doc.resolveNoCache(p.endB-c.from),y=u.resolve(p.start),C=m.sameParent(g)&&m.parent.inlineContent&&y.end()>=p.endA,T;if((po&&t.input.lastIOSEnter>Date.now()-225&&(!C||i.some(R=>R.nodeName=="DIV"||R.nodeName=="P"))||!C&&m.posR(t,ni(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>p.start&&kv(u,p.start,p.endA,m,g)&&t.someProp("handleKeyDown",R=>R(t,ni(8,"Backspace")))){nn&&Zt&&t.domObserver.suppressSelectionUpdates();return}Zt&&nn&&p.endB==p.start&&(t.input.lastAndroidDelete=Date.now()),nn&&!C&&m.start()!=g.start()&&g.parentOffset==0&&m.depth==g.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==p.endA&&(p.endB-=2,g=c.doc.resolveNoCache(p.endB-c.from),setTimeout(()=>{t.someProp("handleKeyDown",function(R){return R(t,ni(13,"Enter"))})},20));let M=p.start,I=p.endA,S,N,Z;if(C){if(m.pos==g.pos)Ae&&Er<=11&&m.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>tr(t),20)),S=t.state.tr.delete(M,I),N=u.resolve(p.start).marksAcross(u.resolve(p.endA));else if(p.endA==p.endB&&(Z=bv(m.parent.content.cut(m.parentOffset,g.parentOffset),y.parent.content.cut(y.parentOffset,p.endA-y.start()))))S=t.state.tr,Z.type=="add"?S.addMark(M,I,Z.mark):S.removeMark(M,I,Z.mark);else if(m.parent.child(m.index()).isText&&m.index()==g.index()-(g.textOffset?0:1)){let R=m.parent.textBetween(m.parentOffset,g.parentOffset);if(t.someProp("handleTextInput",_=>_(t,M,I,R)))return;S=t.state.tr.insertText(R,M,I)}}if(S||(S=t.state.tr.replace(M,I,c.doc.slice(p.start-c.from,p.endB-c.from))),c.sel){let R=Km(t,S.doc,c.sel);R&&!(Zt&&nn&&t.composing&&R.empty&&(p.start!=p.endB||t.input.lastAndroidDeletee.content.size?null:Fd(t,e.resolve(n.anchor),e.resolve(n.head))}function bv(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,i=n,o=r,s,a,l;for(let u=0;uu.mark(a.addToSet(u.marks));else if(i.length==0&&o.length==1)a=o[0],s="remove",l=u=>u.mark(a.removeFromSet(u.marks));else return null;let c=[];for(let u=0;un||ku(s,!0,!1)0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,i++,e=!1;if(n){let o=t.node(r).maybeChild(t.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,i++}return i}function Cv(t,e,n,r,i){let o=t.findDiffStart(e,n);if(o==null)return null;let{a:s,b:a}=t.findDiffEnd(e,n+t.size,n+e.size);if(i=="end"){let l=Math.max(0,o-Math.min(s,a));r-=s+l-o}if(s=s?o-r:0;o-=l,o&&o=a?o-r:0;o-=l,o&&o=56320&&e<=57343&&n>=55296&&n<=56319}class wv{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new WT,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Qm),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Xm(this),Jm(this),this.nodeViews=Zm(this),this.docView=Nm(this.state.doc,Ym(this),bu(this),this.dom,this),this.domObserver=new dv(this,(r,i,o,s)=>xv(this,r,i,o,s)),this.domObserver.start(),VT(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Eh(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Qm),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let i=this.state,o=!1,s=!1;e.storedMarks&&this.composing&&(_1(this),s=!0),this.state=e;let a=i.plugins!=e.plugins||this._props.plugins!=n.plugins;if(a||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let f=Zm(this);_v(f,this.nodeViews)&&(this.nodeViews=f,o=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&Eh(this),this.editable=Xm(this),Jm(this);let l=bu(this),c=Ym(this),u=i.plugins!=e.plugins&&!i.doc.eq(e.doc)?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",h=o||!this.docView.matchesNode(e.doc,c,l);(h||!e.selection.eq(i.selection))&&(s=!0);let d=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&iT(this);if(s){this.domObserver.stop();let f=h&&(Ae||Zt)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&Sv(i.selection,e.selection);if(h){let p=Zt?this.trackWrites=this.domSelectionRange().focusNode:null;(o||!this.docView.update(e.doc,c,l,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=Nm(e.doc,c,l,this.dom,this)),p&&!this.trackWrites&&(f=!0)}f||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&MT(this))?tr(this,f):(h1(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,i),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():d&&oT(d)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Q){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&_m(this,n.getBoundingClientRect(),e)}else _m(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(o))==r.node&&(i=o)}this.dragging=new v1(e.slice,e.move,i<0?void 0:Q.create(this.state.doc,i))}someProp(e,n){let r=this._props&&this._props[e],i;if(r!=null&&(i=n?n(r):r))return i;for(let s=0;sn.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return hT(this,e)}coordsAtPos(e,n=1){return r1(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let i=this.docView.posFromDOM(e,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(e,n){return gT(this,n||this.state,e)}pasteHTML(e,n){return Vs(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Vs(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(HT(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],bu(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(e){return KT(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return he&&this.root.nodeType===11&&X_(this.dom.ownerDocument)==this.dom?pv(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function Ym(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[te.node(0,t.state.doc.content.size,e)]}function Jm(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:te.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function Xm(t){return!t.someProp("editable",e=>e(t.state)===!1)}function Sv(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function Zm(t){let e=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(e,i)||(e[i]=r[i])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function _v(t,e){let n=0,r=0;for(let i in t){if(t[i]!=e[i])return!0;n++}for(let i in e)r++;return n!=r}function Qm(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}const O1=$.createContext({contentRef:()=>{},view:null,getPos:()=>0,setAttrs:()=>{},node:null,selected:!1,decorations:[],innerDecorations:null}),To=()=>$.useContext(O1),I1=$.createContext(t=>{throw new Error("out of scope")}),Tv=()=>$.useContext(I1);let vv=class extends ZS{constructor(){super(...arguments),this.key=Ad(),this.context={contentRef:e=>{e&&this.contentDOM&&e.firstChild!==this.contentDOM&&e.appendChild(this.contentDOM)},view:this.view,getPos:this.getPos,setAttrs:this.setAttrs,node:this.node,selected:this.selected,decorations:this.decorations,innerDecorations:this.innerDecorations},this.updateContext=()=>{Object.assign(this.context,{node:this.node,selected:this.selected,decorations:this.decorations,innerDecorations:this.innerDecorations})},this.render=()=>{const e=this.component;return xc.createPortal(sn.createElement(O1.Provider,{value:this.context},sn.createElement(e,null)),this.dom,this.key)}}};const Av=$.createContext({view:null}),Ev=$.createContext(t=>{throw new Error("out of scope")}),Mv=(t,e)=>$.useCallback(n=>(r,i,o,s,a)=>{const l=new vv({node:r,view:i,getPos:o,decorations:s,innerDecorations:a,options:{...n,onUpdate(){var c;(c=n.onUpdate)==null||c.call(n),t(l)},selectNode(){var c;(c=n.selectNode)==null||c.call(n),t(l)},deselectNode(){var c;(c=n.deselectNode)==null||c.call(n),t(l)},destroy(){var c;(c=n.destroy)==null||c.call(n),e(l)}}});return t(l,!1),l},[e,t]);let Nv=class extends QS{constructor(){super(...arguments),this.key=Ad(),this.context={view:this.view,prevState:this.prevState},this.updateContext=()=>{Object.assign(this.context,{view:this.view,prevState:this.prevState})},this.render=()=>{const e=this.component;return xc.createPortal(sn.createElement(Av.Provider,{value:this.context},sn.createElement(e,null)),this.root,this.key)}}};const Ov=(t,e)=>$.useCallback(n=>r=>{const i=new Nv({view:r,options:{...n,update:(o,s)=>{var a;(a=n.update)==null||a.call(n,o,s),t(i)},destroy:()=>{var o;(o=n.destroy)==null||o.call(n),e(i)}}});return t(i,!1),i},[e,t]),Iv=()=>{const[t,e]=$.useState({}),n=$.useRef(!1);$.useEffect(()=>(requestAnimationFrame(()=>{n.current=!0}),()=>{n.current=!1}),[]);const r=$.useCallback(s=>{n.current?xc.flushSync(s):s()},[]),i=$.useCallback((s,a=!0)=>{r(()=>{a&&s.updateContext(),e(l=>({...l,[s.key]:s.render()}))})},[r]),o=$.useCallback(s=>{r(()=>{e(a=>{const l={...a};return delete l[s.key],l})})},[r]);return{portals:t,renderReactRenderer:i,removeReactRenderer:o}},Bv=$.createContext({view:null,getPos:()=>{}}),Fv=$.createContext(t=>{throw new Error("out of scope")});let Lv=class extends t_{constructor(){super(...arguments),this.key=Ad(),this.context={view:this.view,getPos:this.getPos,spec:this.spec},this.updateContext=()=>{Object.assign(this.context,{view:this.view,getPos:this.getPos,spec:this.spec})},this.render=()=>{const e=this.component;return xc.createPortal(sn.createElement(Bv.Provider,{value:this.context},sn.createElement(e,null)),this.dom,this.key)}}};const Dv=(t,e)=>$.useCallback(n=>(r,i={})=>{const o=new Lv({pos:r,options:n}),s={...i,destroy:a=>{var l;(l=i.destroy)==null||l.call(i,a),e(o)}};return o.spec=s,te.widget(r,(a,l)=>(o.bind(a,l),t(o),o.dom),s)},[e,t]),Rv=({children:t})=>{const{renderReactRenderer:e,removeReactRenderer:n,portals:r}=Iv(),i=Mv(e,n),o=Ov(e,n),s=Dv(e,n),a=$.useMemo(()=>Object.values(r),[r]);return sn.createElement(I1.Provider,{value:i},sn.createElement(Ev.Provider,{value:o},sn.createElement(Fv.Provider,{value:s},t,a)))};var Me=(t=>(t.docTypeError="docTypeError",t.contextNotFound="contextNotFound",t.timerNotFound="timerNotFound",t.ctxCallOutOfScope="ctxCallOutOfScope",t.createNodeInParserFail="createNodeInParserFail",t.stackOverFlow="stackOverFlow",t.parserMatchError="parserMatchError",t.serializerMatchError="serializerMatchError",t.getAtomFromSchemaFail="getAtomFromSchemaFail",t.expectDomTypeError="expectDomTypeError",t.callCommandBeforeEditorView="callCommandBeforeEditorView",t.missingRootElement="missingRootElement",t.missingNodeInSchema="missingNodeInSchema",t.missingMarkInSchema="missingMarkInSchema",t.ctxNotBind="ctxNotBind",t.missingYjsDoc="missingYjsDoc",t))(Me||{});let Re=class extends Error{constructor(e,n){super(n),this.name="MilkdownError",this.code=e}};const Pv=(t,e)=>typeof e=="function"?"[Function]":e,mo=t=>JSON.stringify(t,Pv);function $v(t){return new Re(Me.docTypeError,`Doc type error, unsupported type: ${mo(t)}`)}function zv(t){return new Re(Me.contextNotFound,`Context "${t}" not found, do you forget to inject it?`)}function qv(t){return new Re(Me.timerNotFound,`Timer "${t}" not found, do you forget to record it?`)}function zd(){return new Re(Me.ctxCallOutOfScope,"Should not call a context out of the plugin.")}function jv(...t){const e=t.reduce((n,r)=>{if(!r)return n;const i=o=>Array.isArray(o)?o.map(s=>i(s)).join(", "):o.toJSON?mo(o.toJSON()):o.spec?mo(o.spec):o.toString();return`${n}, ${i(r)}`},"Create prosemirror node from remark failed in parser");return new Re(Me.createNodeInParserFail,e)}function B1(){return new Re(Me.stackOverFlow,"Stack over flow, cannot pop on an empty stack.")}function Wv(t){return new Re(Me.parserMatchError,`Cannot match target parser for node: ${mo(t)}.`)}function Vv(t){return new Re(Me.serializerMatchError,`Cannot match target serializer for node: ${mo(t)}.`)}function Hv(t,e){return new Re(Me.getAtomFromSchemaFail,`Cannot get ${t}: ${e} from schema.`)}function pn(t){return new Re(Me.expectDomTypeError,`Expect to be a dom, but get: ${mo(t)}.`)}function Uv(){return new Re(Me.callCommandBeforeEditorView,"You're trying to call a command before editor view initialized, make sure to get commandManager from ctx after editor view has been initialized")}function Kv(t){return new Re(Me.missingNodeInSchema,`Missing node in schema, milkdown cannot find "${t}" in schema.`)}function Gv(t){return new Re(Me.missingMarkInSchema,`Missing mark in schema, milkdown cannot find "${t}" in schema.`)}var F1=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},j=(t,e,n)=>(F1(t,e,"read from private field"),n?n.call(t):e.get(t)),Mt=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},pt=(t,e,n,r)=>(F1(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);let L1=class{constructor(){this.sliceMap=new Map,this.get=e=>{const n=typeof e=="string"?[...this.sliceMap.values()].find(r=>r.type.name===e):this.sliceMap.get(e.id);if(!n){const r=typeof e=="string"?e:e.name;throw zv(r)}return n},this.remove=e=>{const n=typeof e=="string"?[...this.sliceMap.values()].find(r=>r.type.name===e):this.sliceMap.get(e.id);n&&this.sliceMap.delete(n.type.id)},this.has=e=>typeof e=="string"?[...this.sliceMap.values()].some(n=>n.type.name===e):this.sliceMap.has(e.id)}};var xn,dr,Qo;let Yv=class{constructor(e,n,r){Mt(this,xn,void 0),Mt(this,dr,void 0),Mt(this,Qo,void 0),pt(this,xn,[]),pt(this,Qo,()=>{j(this,xn).forEach(i=>i(j(this,dr)))}),this.set=i=>{pt(this,dr,i),j(this,Qo).call(this)},this.get=()=>j(this,dr),this.update=i=>{pt(this,dr,i(j(this,dr))),j(this,Qo).call(this)},this.type=r,pt(this,dr,n),e.set(r.id,this)}on(e){return j(this,xn).push(e),()=>{pt(this,xn,j(this,xn).filter(n=>n!==e))}}once(e){const n=this.on(r=>{e(r),n()});return n}off(e){pt(this,xn,j(this,xn).filter(n=>n!==e))}offAll(){pt(this,xn,[])}};xn=new WeakMap,dr=new WeakMap,Qo=new WeakMap;let Jv=class{constructor(e,n){this.id=Symbol(`Context-${n}`),this.name=n,this._defaultValue=e,this._typeInfo=()=>{throw zd()}}create(e,n=this._defaultValue){return new Yv(e,n,this)}};const mt=(t,e)=>new Jv(t,e);var Ya,Ja,Xa,Wi,ts,Xr,es,ns,rs;let Xv=class{constructor(e,n,r){Mt(this,Ya,void 0),Mt(this,Ja,void 0),Mt(this,Xa,void 0),Mt(this,Wi,void 0),Mt(this,ts,void 0),Mt(this,Xr,void 0),Mt(this,es,void 0),Mt(this,ns,void 0),Mt(this,rs,void 0),pt(this,Wi,new Set),pt(this,ts,new Set),pt(this,Xr,new Map),pt(this,es,new Map),this.read=()=>({metadata:j(this,Ya),injectedSlices:[...j(this,Wi)].map(i=>({name:typeof i=="string"?i:i.name,value:j(this,ns).call(this,i)})),consumedSlices:[...j(this,ts)].map(i=>({name:typeof i=="string"?i:i.name,value:j(this,ns).call(this,i)})),recordedTimers:[...j(this,Xr)].map(([i,{duration:o}])=>({name:i.name,duration:o,status:j(this,rs).call(this,i)})),waitTimers:[...j(this,es)].map(([i,{duration:o}])=>({name:i.name,duration:o,status:j(this,rs).call(this,i)}))}),this.onRecord=i=>{j(this,Xr).set(i,{start:Date.now(),duration:0})},this.onClear=i=>{j(this,Xr).delete(i)},this.onDone=i=>{const o=j(this,Xr).get(i);o&&(o.duration=Date.now()-o.start)},this.onWait=(i,o)=>{const s=Date.now();o.finally(()=>{j(this,es).set(i,{duration:Date.now()-s})})},this.onInject=i=>{j(this,Wi).add(i)},this.onRemove=i=>{j(this,Wi).delete(i)},this.onUse=i=>{j(this,ts).add(i)},pt(this,ns,i=>j(this,Ja).get(i).get()),pt(this,rs,i=>j(this,Xa).get(i).status),pt(this,Ja,e),pt(this,Xa,n),pt(this,Ya,r)}};Ya=new WeakMap,Ja=new WeakMap,Xa=new WeakMap,Wi=new WeakMap,ts=new WeakMap,Xr=new WeakMap,es=new WeakMap,ns=new WeakMap,rs=new WeakMap;var fr,pr,Za,en;const Zv=class D1{constructor(e,n,r){Mt(this,fr,void 0),Mt(this,pr,void 0),Mt(this,Za,void 0),Mt(this,en,void 0),this.produce=i=>i&&Object.keys(i).length?new D1(j(this,fr),j(this,pr),{...i}):this,this.inject=(i,o)=>{var s;const a=i.create(j(this,fr).sliceMap);return o!=null&&a.set(o),(s=j(this,en))==null||s.onInject(i),this},this.remove=i=>{var o;return j(this,fr).remove(i),(o=j(this,en))==null||o.onRemove(i),this},this.record=i=>{var o;return i.create(j(this,pr).store),(o=j(this,en))==null||o.onRecord(i),this},this.clearTimer=i=>{var o;return j(this,pr).remove(i),(o=j(this,en))==null||o.onClear(i),this},this.isInjected=i=>j(this,fr).has(i),this.isRecorded=i=>j(this,pr).has(i),this.use=i=>{var o;return(o=j(this,en))==null||o.onUse(i),j(this,fr).get(i)},this.get=i=>this.use(i).get(),this.set=(i,o)=>this.use(i).set(o),this.update=(i,o)=>this.use(i).update(o),this.timer=i=>j(this,pr).get(i),this.done=i=>{var o;this.timer(i).done(),(o=j(this,en))==null||o.onDone(i)},this.wait=i=>{var o;const s=this.timer(i).start();return(o=j(this,en))==null||o.onWait(i,s),s},this.waitTimers=async i=>{await Promise.all(this.get(i).map(o=>this.wait(o)))},pt(this,fr,e),pt(this,pr,n),pt(this,Za,r),r&&pt(this,en,new Xv(e,n,r))}get meta(){return j(this,Za)}get inspector(){return j(this,en)}};fr=new WeakMap,pr=new WeakMap,Za=new WeakMap,en=new WeakMap;let Qv=Zv,tA=class{constructor(){this.store=new Map,this.get=e=>{const n=this.store.get(e.id);if(!n)throw qv(e.name);return n},this.remove=e=>{this.store.delete(e.id)},this.has=e=>this.store.has(e.id)}};var Vi,Zr,is,mr,ss,Qa;let eA=class{constructor(e,n){Mt(this,Vi,void 0),Mt(this,Zr,void 0),Mt(this,is,void 0),Mt(this,mr,void 0),Mt(this,ss,void 0),Mt(this,Qa,void 0),pt(this,Vi,null),pt(this,Zr,null),pt(this,mr,"pending"),this.start=()=>(j(this,Vi)??pt(this,Vi,new Promise((r,i)=>{pt(this,Zr,o=>{o instanceof CustomEvent&&o.detail.id===j(this,is)&&(pt(this,mr,"resolved"),j(this,ss).call(this),o.stopImmediatePropagation(),r())}),j(this,Qa).call(this,()=>{j(this,mr)==="pending"&&pt(this,mr,"rejected"),j(this,ss).call(this),i(new Error(`Timing ${this.type.name} timeout.`))}),pt(this,mr,"pending"),addEventListener(this.type.name,j(this,Zr))})),j(this,Vi)),this.done=()=>{const r=new CustomEvent(this.type.name,{detail:{id:j(this,is)}});dispatchEvent(r)},pt(this,ss,()=>{j(this,Zr)&&removeEventListener(this.type.name,j(this,Zr))}),pt(this,Qa,r=>{setTimeout(()=>{r()},this.type.timeout)}),pt(this,is,Symbol(n.name)),this.type=n,e.set(n.id,this)}get status(){return j(this,mr)}};Vi=new WeakMap,Zr=new WeakMap,is=new WeakMap,mr=new WeakMap,ss=new WeakMap,Qa=new WeakMap;let nA=class{constructor(e,n=3e3){this.create=r=>new eA(r,this),this.id=Symbol(`Timer-${e}`),this.name=e,this.timeout=n}};const Pr=(t,e=3e3)=>new nA(t,e),rA={};function qd(t,e){const n=e||rA,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return R1(t,r,i)}function R1(t,e,n){if(iA(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return tg(t.children,e,n)}return Array.isArray(t)?tg(t,e,n):""}function tg(t,e,n){const r=[];let i=-1;for(;++ii?0:i+e:e=e>i?i:e,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(e,n),t.splice(...s);else for(n&&t.splice(e,n);o0?(Le(t,t.length,0,e),t):e}const ng={}.hasOwnProperty;function P1(t){const e={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ln(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const aA=$r(/\p{P}/u),le=$r(/[A-Za-z]/),Se=$r(/[\dA-Za-z]/),lA=$r(/[#-'*+\--9=?A-Z^-~]/);function Vl(t){return t!==null&&(t<32||t===127)}const Mh=$r(/\d/),cA=$r(/[\dA-Fa-f]/),z1=$r(/[!-/:-@[-`{-~]/);function Y(t){return t!==null&&t<-2}function kt(t){return t!==null&&(t<0||t===32)}function lt(t){return t===-2||t===-1||t===32}function vc(t){return z1(t)||aA(t)}const _i=$r(/\s/);function $r(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function ht(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(l){return lt(l)?(t.enter(n),a(l)):e(l)}function a(l){return lt(l)&&o++s))return;const N=e.events.length;let Z=N,R,_;for(;Z--;)if(e.events[Z][0]==="exit"&&e.events[Z][1].type==="chunkFlow"){if(R){_=e.events[Z][1].end;break}R=!0}for(y(r),S=N;ST;){const I=n[M];e.containerState=I[1],I[0].exit.call(e,t)}n.length=T}function C(){i.write([null]),o=void 0,i=void 0,e.containerState._closeFlow=void 0}}function pA(t,e,n){return ht(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Hl(t){if(t===null||kt(t)||_i(t))return 1;if(vc(t))return 2}function Ac(t,e,n){const r=[];let i=-1;for(;++i1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const h=Object.assign({},t[r][1].end),d=Object.assign({},t[n][1].start);ig(h,-l),ig(d,l),s={type:l>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},t[r][1].end)},a={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[n][1].start),end:d},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},t[r][1].end),end:Object.assign({},t[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},a.end)},t[r][1].end=Object.assign({},s.start),t[n][1].start=Object.assign({},a.end),c=[],t[r][1].end.offset-t[r][1].start.offset&&(c=We(c,[["enter",t[r][1],e],["exit",t[r][1],e]])),c=We(c,[["enter",i,e],["enter",s,e],["exit",s,e],["enter",o,e]]),c=We(c,Ac(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),c=We(c,[["exit",o,e],["enter",a,e],["exit",a,e],["exit",i,e]]),t[n][1].end.offset-t[n][1].start.offset?(u=2,c=We(c,[["enter",t[n][1],e],["exit",t[n][1],e]])):u=0,Le(t,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n0&<(S)?ht(t,C,"linePrefix",o+1)(S):C(S)}function C(S){return S===null||Y(S)?t.check(og,m,M)(S):(t.enter("codeFlowValue"),T(S))}function T(S){return S===null||Y(S)?(t.exit("codeFlowValue"),C(S)):(t.consume(S),T)}function M(S){return t.exit("codeFenced"),e(S)}function I(S,N,Z){let R=0;return _;function _(at){return S.enter("lineEnding"),S.consume(at),S.exit("lineEnding"),P}function P(at){return S.enter("codeFencedFence"),lt(at)?ht(S,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(at):z(at)}function z(at){return at===a?(S.enter("codeFencedFenceSequence"),dt(at)):Z(at)}function dt(at){return at===a?(R++,S.consume(at),dt):R>=s?(S.exit("codeFencedFenceSequence"),lt(at)?ht(S,bt,"whitespace")(at):bt(at)):Z(at)}function bt(at){return at===null||Y(at)?(S.exit("codeFencedFence"),N(at)):Z(at)}}}function vA(t,e,n){const r=this;return i;function i(s){return s===null?n(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):e(s)}}const Cu={name:"codeIndented",tokenize:EA},AA={tokenize:MA,partial:!0};function EA(t,e,n){const r=this;return i;function i(c){return t.enter("codeIndented"),ht(t,o,"linePrefix",5)(c)}function o(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?l(c):Y(c)?t.attempt(AA,s,l)(c):(t.enter("codeFlowValue"),a(c))}function a(c){return c===null||Y(c)?(t.exit("codeFlowValue"),s(c)):(t.consume(c),a)}function l(c){return t.exit("codeIndented"),e(c)}}function MA(t,e,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):Y(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),i):ht(t,o,"linePrefix",5)(s)}function o(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(s):Y(s)?i(s):n(s)}}const NA={name:"codeText",tokenize:BA,resolve:OA,previous:IA};function OA(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r=4?e(s):t.interrupt(r.parser.constructs.flow,n,e)(s)}}function H1(t,e,n,r,i,o,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return h;function h(y){return y===60?(t.enter(r),t.enter(i),t.enter(o),t.consume(y),t.exit(o),d):y===null||y===32||y===41||Vl(y)?n(y):(t.enter(r),t.enter(s),t.enter(a),t.enter("chunkString",{contentType:"string"}),m(y))}function d(y){return y===62?(t.enter(o),t.consume(y),t.exit(o),t.exit(i),t.exit(r),e):(t.enter(a),t.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===62?(t.exit("chunkString"),t.exit(a),d(y)):y===null||y===60||Y(y)?n(y):(t.consume(y),y===92?p:f)}function p(y){return y===60||y===62||y===92?(t.consume(y),f):f(y)}function m(y){return!u&&(y===null||y===41||kt(y))?(t.exit("chunkString"),t.exit(a),t.exit(s),t.exit(r),e(y)):u999||f===null||f===91||f===93&&!l||f===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(f):f===93?(t.exit(o),t.enter(i),t.consume(f),t.exit(i),t.exit(r),e):Y(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),u):(t.enter("chunkString",{contentType:"string"}),h(f))}function h(f){return f===null||f===91||f===93||Y(f)||a++>999?(t.exit("chunkString"),u(f)):(t.consume(f),l||(l=!lt(f)),f===92?d:h)}function d(f){return f===91||f===92||f===93?(t.consume(f),a++,h):h(f)}}function K1(t,e,n,r,i,o){let s;return a;function a(d){return d===34||d===39||d===40?(t.enter(r),t.enter(i),t.consume(d),t.exit(i),s=d===40?41:d,l):n(d)}function l(d){return d===s?(t.enter(i),t.consume(d),t.exit(i),t.exit(r),e):(t.enter(o),c(d))}function c(d){return d===s?(t.exit(o),l(s)):d===null?n(d):Y(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),ht(t,c,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),u(d))}function u(d){return d===s||d===null||Y(d)?(t.exit("chunkString"),c(d)):(t.consume(d),d===92?h:u)}function h(d){return d===s||d===92?(t.consume(d),u):u(d)}}function Es(t,e){let n;return r;function r(i){return Y(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):lt(i)?ht(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}const zA={name:"definition",tokenize:jA},qA={tokenize:WA,partial:!0};function jA(t,e,n){const r=this;let i;return o;function o(f){return t.enter("definition"),s(f)}function s(f){return U1.call(r,t,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return i=ln(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(t.enter("definitionMarker"),t.consume(f),t.exit("definitionMarker"),l):n(f)}function l(f){return kt(f)?Es(t,c)(f):c(f)}function c(f){return H1(t,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function u(f){return t.attempt(qA,h,h)(f)}function h(f){return lt(f)?ht(t,d,"whitespace")(f):d(f)}function d(f){return f===null||Y(f)?(t.exit("definition"),r.parser.defined.push(i),e(f)):n(f)}}function WA(t,e,n){return r;function r(a){return kt(a)?Es(t,i)(a):n(a)}function i(a){return K1(t,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return lt(a)?ht(t,s,"whitespace")(a):s(a)}function s(a){return a===null||Y(a)?e(a):n(a)}}const VA={name:"hardBreakEscape",tokenize:HA};function HA(t,e,n){return r;function r(o){return t.enter("hardBreakEscape"),t.consume(o),i}function i(o){return Y(o)?(t.exit("hardBreakEscape"),e(o)):n(o)}}const UA={name:"headingAtx",tokenize:GA,resolve:KA};function KA(t,e){let n=t.length-2,r=3,i,o;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},o={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},Le(t,r,n-r+1,[["enter",i,e],["enter",o,e],["exit",o,e],["exit",i,e]])),t}function GA(t,e,n){let r=0;return i;function i(u){return t.enter("atxHeading"),o(u)}function o(u){return t.enter("atxHeadingSequence"),s(u)}function s(u){return u===35&&r++<6?(t.consume(u),s):u===null||kt(u)?(t.exit("atxHeadingSequence"),a(u)):n(u)}function a(u){return u===35?(t.enter("atxHeadingSequence"),l(u)):u===null||Y(u)?(t.exit("atxHeading"),e(u)):lt(u)?ht(t,a,"whitespace")(u):(t.enter("atxHeadingText"),c(u))}function l(u){return u===35?(t.consume(u),l):(t.exit("atxHeadingSequence"),a(u))}function c(u){return u===null||u===35||kt(u)?(t.exit("atxHeadingText"),a(u)):(t.consume(u),c)}}const YA=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ag=["pre","script","style","textarea"],JA={name:"htmlFlow",tokenize:tE,resolveTo:QA,concrete:!0},XA={tokenize:nE,partial:!0},ZA={tokenize:eE,partial:!0};function QA(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function tE(t,e,n){const r=this;let i,o,s,a,l;return c;function c(x){return u(x)}function u(x){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(x),h}function h(x){return x===33?(t.consume(x),d):x===47?(t.consume(x),o=!0,m):x===63?(t.consume(x),i=3,r.interrupt?e:b):le(x)?(t.consume(x),s=String.fromCharCode(x),g):n(x)}function d(x){return x===45?(t.consume(x),i=2,f):x===91?(t.consume(x),i=5,a=0,p):le(x)?(t.consume(x),i=4,r.interrupt?e:b):n(x)}function f(x){return x===45?(t.consume(x),r.interrupt?e:b):n(x)}function p(x){const zt="CDATA[";return x===zt.charCodeAt(a++)?(t.consume(x),a===zt.length?r.interrupt?e:z:p):n(x)}function m(x){return le(x)?(t.consume(x),s=String.fromCharCode(x),g):n(x)}function g(x){if(x===null||x===47||x===62||kt(x)){const zt=x===47,Xe=s.toLowerCase();return!zt&&!o&&ag.includes(Xe)?(i=1,r.interrupt?e(x):z(x)):YA.includes(s.toLowerCase())?(i=6,zt?(t.consume(x),y):r.interrupt?e(x):z(x)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(x):o?C(x):T(x))}return x===45||Se(x)?(t.consume(x),s+=String.fromCharCode(x),g):n(x)}function y(x){return x===62?(t.consume(x),r.interrupt?e:z):n(x)}function C(x){return lt(x)?(t.consume(x),C):_(x)}function T(x){return x===47?(t.consume(x),_):x===58||x===95||le(x)?(t.consume(x),M):lt(x)?(t.consume(x),T):_(x)}function M(x){return x===45||x===46||x===58||x===95||Se(x)?(t.consume(x),M):I(x)}function I(x){return x===61?(t.consume(x),S):lt(x)?(t.consume(x),I):T(x)}function S(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(t.consume(x),l=x,N):lt(x)?(t.consume(x),S):Z(x)}function N(x){return x===l?(t.consume(x),l=null,R):x===null||Y(x)?n(x):(t.consume(x),N)}function Z(x){return x===null||x===34||x===39||x===47||x===60||x===61||x===62||x===96||kt(x)?I(x):(t.consume(x),Z)}function R(x){return x===47||x===62||lt(x)?T(x):n(x)}function _(x){return x===62?(t.consume(x),P):n(x)}function P(x){return x===null||Y(x)?z(x):lt(x)?(t.consume(x),P):n(x)}function z(x){return x===45&&i===2?(t.consume(x),Ct):x===60&&i===1?(t.consume(x),Nt):x===62&&i===4?(t.consume(x),yt):x===63&&i===3?(t.consume(x),b):x===93&&i===5?(t.consume(x),ot):Y(x)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(XA,Pe,dt)(x)):x===null||Y(x)?(t.exit("htmlFlowData"),dt(x)):(t.consume(x),z)}function dt(x){return t.check(ZA,bt,Pe)(x)}function bt(x){return t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),at}function at(x){return x===null||Y(x)?dt(x):(t.enter("htmlFlowData"),z(x))}function Ct(x){return x===45?(t.consume(x),b):z(x)}function Nt(x){return x===47?(t.consume(x),s="",Rt):z(x)}function Rt(x){if(x===62){const zt=s.toLowerCase();return ag.includes(zt)?(t.consume(x),yt):z(x)}return le(x)&&s.length<8?(t.consume(x),s+=String.fromCharCode(x),Rt):z(x)}function ot(x){return x===93?(t.consume(x),b):z(x)}function b(x){return x===62?(t.consume(x),yt):x===45&&i===2?(t.consume(x),b):z(x)}function yt(x){return x===null||Y(x)?(t.exit("htmlFlowData"),Pe(x)):(t.consume(x),yt)}function Pe(x){return t.exit("htmlFlow"),e(x)}}function eE(t,e,n){const r=this;return i;function i(s){return Y(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):e(s)}}function nE(t,e,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(la,e,n)}}const rE={name:"htmlText",tokenize:iE};function iE(t,e,n){const r=this;let i,o,s;return a;function a(b){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(b),l}function l(b){return b===33?(t.consume(b),c):b===47?(t.consume(b),I):b===63?(t.consume(b),T):le(b)?(t.consume(b),Z):n(b)}function c(b){return b===45?(t.consume(b),u):b===91?(t.consume(b),o=0,p):le(b)?(t.consume(b),C):n(b)}function u(b){return b===45?(t.consume(b),f):n(b)}function h(b){return b===null?n(b):b===45?(t.consume(b),d):Y(b)?(s=h,Nt(b)):(t.consume(b),h)}function d(b){return b===45?(t.consume(b),f):h(b)}function f(b){return b===62?Ct(b):b===45?d(b):h(b)}function p(b){const yt="CDATA[";return b===yt.charCodeAt(o++)?(t.consume(b),o===yt.length?m:p):n(b)}function m(b){return b===null?n(b):b===93?(t.consume(b),g):Y(b)?(s=m,Nt(b)):(t.consume(b),m)}function g(b){return b===93?(t.consume(b),y):m(b)}function y(b){return b===62?Ct(b):b===93?(t.consume(b),y):m(b)}function C(b){return b===null||b===62?Ct(b):Y(b)?(s=C,Nt(b)):(t.consume(b),C)}function T(b){return b===null?n(b):b===63?(t.consume(b),M):Y(b)?(s=T,Nt(b)):(t.consume(b),T)}function M(b){return b===62?Ct(b):T(b)}function I(b){return le(b)?(t.consume(b),S):n(b)}function S(b){return b===45||Se(b)?(t.consume(b),S):N(b)}function N(b){return Y(b)?(s=N,Nt(b)):lt(b)?(t.consume(b),N):Ct(b)}function Z(b){return b===45||Se(b)?(t.consume(b),Z):b===47||b===62||kt(b)?R(b):n(b)}function R(b){return b===47?(t.consume(b),Ct):b===58||b===95||le(b)?(t.consume(b),_):Y(b)?(s=R,Nt(b)):lt(b)?(t.consume(b),R):Ct(b)}function _(b){return b===45||b===46||b===58||b===95||Se(b)?(t.consume(b),_):P(b)}function P(b){return b===61?(t.consume(b),z):Y(b)?(s=P,Nt(b)):lt(b)?(t.consume(b),P):R(b)}function z(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(t.consume(b),i=b,dt):Y(b)?(s=z,Nt(b)):lt(b)?(t.consume(b),z):(t.consume(b),bt)}function dt(b){return b===i?(t.consume(b),i=void 0,at):b===null?n(b):Y(b)?(s=dt,Nt(b)):(t.consume(b),dt)}function bt(b){return b===null||b===34||b===39||b===60||b===61||b===96?n(b):b===47||b===62||kt(b)?R(b):(t.consume(b),bt)}function at(b){return b===47||b===62||kt(b)?R(b):n(b)}function Ct(b){return b===62?(t.consume(b),t.exit("htmlTextData"),t.exit("htmlText"),e):n(b)}function Nt(b){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),Rt}function Rt(b){return lt(b)?ht(t,ot,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):ot(b)}function ot(b){return t.enter("htmlTextData"),s(b)}}const Wd={name:"labelEnd",tokenize:uE,resolveTo:cE,resolveAll:lE},oE={tokenize:hE},sE={tokenize:dE},aE={tokenize:fE};function lE(t){let e=-1;for(;++e=3&&(c===null||Y(c))?(t.exit("thematicBreak"),e(c)):n(c)}function l(c){return c===i?(t.consume(c),r++,l):(t.exit("thematicBreakSequence"),lt(c)?ht(t,a,"whitespace")(c):a(c))}}const Ce={name:"list",tokenize:wE,continuation:{tokenize:SE},exit:TE},kE={tokenize:vE,partial:!0},CE={tokenize:_E,partial:!0};function wE(t,e,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(f){const p=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Mh(f)){if(r.containerState.type||(r.containerState.type=p,t.enter(p,{_container:!0})),p==="listUnordered")return t.enter("listItemPrefix"),f===42||f===45?t.check(tl,n,c)(f):c(f);if(!r.interrupt||f===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),l(f)}return n(f)}function l(f){return Mh(f)&&++s<10?(t.consume(f),l):(!r.interrupt||s<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(t.exit("listItemValue"),c(f)):n(f)}function c(f){return t.enter("listItemMarker"),t.consume(f),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,t.check(la,r.interrupt?n:u,t.attempt(kE,d,h))}function u(f){return r.containerState.initialBlankLine=!0,o++,d(f)}function h(f){return lt(f)?(t.enter("listItemPrefixWhitespace"),t.consume(f),t.exit("listItemPrefixWhitespace"),d):n(f)}function d(f){return r.containerState.size=o+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(f)}}function SE(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(la,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ht(t,e,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!lt(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(CE,e,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ht(t,t.attempt(Ce,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function _E(t,e,n){const r=this;return ht(t,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?e(o):n(o)}}function TE(t){t.exit(this.containerState.type)}function vE(t,e,n){const r=this;return ht(t,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!lt(o)&&s&&s[1].type==="listItemPrefixWhitespace"?e(o):n(o)}}const lg={name:"setextUnderline",tokenize:EE,resolveTo:AE};function AE(t,e){let n=t.length,r,i,o;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(i=n)}else t[n][1].type==="content"&&t.splice(n,1),!o&&t[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:Object.assign({},t[i][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[i][1].type="setextHeadingText",o?(t.splice(i,0,["enter",s,e]),t.splice(o+1,0,["exit",t[r][1],e]),t[r][1].end=Object.assign({},t[o][1].end)):t[r][1]=s,t.push(["exit",s,e]),t}function EE(t,e,n){const r=this;let i;return o;function o(c){let u=r.events.length,h;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){h=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(t.enter("setextHeadingLine"),i=c,s(c)):n(c)}function s(c){return t.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===i?(t.consume(c),a):(t.exit("setextHeadingLineSequence"),lt(c)?ht(t,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Y(c)?(t.exit("setextHeadingLine"),e(c)):n(c)}}const ME={tokenize:NE};function NE(t){const e=this,n=t.attempt(la,r,t.attempt(this.parser.constructs.flowInitial,i,ht(t,t.attempt(this.parser.constructs.flow,i,t.attempt(LA,i)),"linePrefix")));return n;function r(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function i(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),e.currentConstruct=void 0,n}}const OE={resolveAll:Y1()},IE=G1("string"),BE=G1("text");function G1(t){return{tokenize:e,resolveAll:Y1(t==="text"?FE:void 0)};function e(n){const r=this,i=this.parser.constructs[t],o=n.attempt(i,s,a);return s;function s(u){return c(u)?o(u):a(u)}function a(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),o(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const h=i[u];let d=-1;if(h)for(;++d-1){const a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}o>0&&s.push(t[i].slice(0,o))}return s}function RE(t,e){let n=-1;const r=[];let i;for(;++n0){const Ut=J.tokenStack[J.tokenStack.length-1];(Ut[1]||dg).call(J,void 0,Ut[0])}for(F.position={start:ur(v.length>0?v[0][1].start:{line:1,column:1,offset:0}),end:ur(v.length>0?v[v.length-2][1].end:{line:1,column:1,offset:0})},ft=-1;++ft "),o.shift(2);const s=n.indentLines(n.containerFlow(t,o.current()),sM);return i(),s}function sM(t,e,n){return">"+(n?"":" ")+t}function tx(t,e){return mg(t,e.inConstruct,!0)&&!mg(t,e.notInConstruct,!1)}function mg(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let r=-1;for(;++rs&&(s=o):o=1,i=r+e.length,r=n.indexOf(e,i);return s}function Bh(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function lM(t){const e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}function cM(t,e,n,r){const i=lM(n),o=t.value||"",s=i==="`"?"GraveAccent":"Tilde";if(Bh(t,n)){const h=n.enter("codeIndented"),d=n.indentLines(o,uM);return h(),d}const a=n.createTracker(r),l=i.repeat(Math.max(aM(o,i)+1,3)),c=n.enter("codeFenced");let u=a.move(l);if(t.lang){const h=n.enter(`codeFencedLang${s}`);u+=a.move(n.safe(t.lang,{before:u,after:" ",encode:["`"],...a.current()})),h()}if(t.lang&&t.meta){const h=n.enter(`codeFencedMeta${s}`);u+=a.move(" "),u+=a.move(n.safe(t.meta,{before:u,after:` +`,encode:["`"],...a.current()})),h()}return u+=a.move(` +`),o&&(u+=a.move(o+` +`)),u+=a.move(l),c(),u}function uM(t,e,n){return(n?"":" ")+t}function Vd(t){const e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function hM(t,e,n,r){const i=Vd(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(t),{before:c,after:"]",...l.current()})),c+=l.move("]: "),a(),!t.url||/[\0- \u007F]/.test(t.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(t.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(t.url,{before:c,after:t.title?" ":` +`,...l.current()}))),a(),t.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(t.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),s(),c}function dM(t){const e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}ex.peek=fM;function ex(t,e,n,r){const i=dM(n),o=n.enter("emphasis"),s=n.createTracker(r);let a=s.move(i);return a+=s.move(n.containerPhrasing(t,{before:a,after:i,...s.current()})),a+=s.move(i),o(),a}function fM(t,e,n){return n.options.emphasis||"*"}const Ec=function(t){if(t==null)return yM;if(typeof t=="function")return Mc(t);if(typeof t=="object")return Array.isArray(t)?pM(t):mM(t);if(typeof t=="string")return gM(t);throw new Error("Expected function, string, or object as test")};function pM(t){const e=[];let n=-1;for(;++n":""))+")"})}return d;function d(){let f=nx,p,m,g;if((!e||o(l,c,u[u.length-1]||void 0))&&(f=kM(n(l,u)),f[0]===Fh))return f;if("children"in l&&l.children){const y=l;if(y.children&&f[0]!==Lh)for(m=(r?y.children.length:-1)+s,g=u.concat(y);m>-1&&m",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(t.url,{before:c,after:t.title?" ":")",...l.current()}))),a(),t.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(t.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),c+=l.move(")"),s(),c}function SM(){return"!"}ax.peek=_M;function ax(t,e,n,r){const i=t.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const c=n.safe(t.alt,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(t),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),i==="full"||!c||c!==h?l+=a.move(h+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function _M(){return"!"}lx.peek=TM;function lx(t,e,n){let r=t.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o\u007F]/.test(t.url))}ux.peek=vM;function ux(t,e,n,r){const i=Vd(n),o=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let a,l;if(cx(t,n)){const u=n.stack;n.stack=[],a=n.enter("autolink");let h=s.move("<");return h+=s.move(n.containerPhrasing(t,{before:h,after:">",...s.current()})),h+=s.move(">"),a(),n.stack=u,h}a=n.enter("link"),l=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(t,{before:c,after:"](",...s.current()})),c+=s.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(t.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(t.url,{before:c,after:t.title?" ":")",...s.current()}))),l(),t.title&&(l=n.enter(`title${o}`),c+=s.move(" "+i),c+=s.move(n.safe(t.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),c+=s.move(")"),a(),c}function vM(t,e,n){return cx(t,n)?"<":"["}hx.peek=AM;function hx(t,e,n,r){const i=t.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const c=n.containerPhrasing(t,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(t),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),i==="full"||!c||c!==h?l+=a.move(h+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function AM(){return"["}function Hd(t){const e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function EM(t){const e=Hd(t),n=t.options.bulletOther;if(!n)return e==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}function MM(t){const e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function dx(t){const e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function NM(t,e,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=t.ordered?MM(n):Hd(n);const a=t.ordered?s==="."?")":".":EM(n);let l=e&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!t.ordered){const u=t.children?t.children[0]:void 0;if((s==="*"||s==="-")&&u&&(!u.children||!u.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),dx(n)===s&&u){let h=-1;for(;++h-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+o);let s=o.length+1;(i==="tab"||i==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(s=Math.ceil(s/4)*4);const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(t,a.current()),u);return l(),c;function u(h,d,f){return d?(f?"":" ".repeat(s))+h:(f?o:o+" ".repeat(s-o.length))+h}}function BM(t,e,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(t,r);return o(),i(),s}const FM=Ec(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function LM(t,e,n,r){return(t.children.some(function(s){return FM(s)})?n.containerPhrasing:n.containerFlow).call(n,t,r)}function DM(t){const e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}fx.peek=RM;function fx(t,e,n,r){const i=DM(n),o=n.enter("strong"),s=n.createTracker(r);let a=s.move(i+i);return a+=s.move(n.containerPhrasing(t,{before:a,after:i,...s.current()})),a+=s.move(i+i),o(),a}function RM(t,e,n){return n.options.strong||"*"}function PM(t,e,n,r){return n.safe(t.value,r)}function $M(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function zM(t,e,n){const r=(dx(n)+(n.options.ruleSpaces?" ":"")).repeat($M(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Ud={blockquote:oM,break:gg,code:cM,definition:hM,emphasis:ex,hardBreak:gg,heading:CM,html:ox,image:sx,imageReference:ax,inlineCode:lx,link:ux,linkReference:hx,list:NM,listItem:IM,paragraph:BM,root:LM,strong:fx,text:PM,thematicBreak:zM},qM=[jM];function jM(t,e,n,r){if(e.type==="code"&&Bh(e,r)&&(t.type==="list"||t.type===e.type&&Bh(t,r)))return!1;if("spread"in n&&typeof n.spread=="boolean")return t.type==="paragraph"&&(t.type===e.type||e.type==="definition"||e.type==="heading"&&ix(e,r))?void 0:n.spread?1:0}const Yr=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],WM=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:` +`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Yr},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r +]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Yr},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r +*])`},{character:"*",inConstruct:"phrasing",notInConstruct:Yr},{atBreak:!0,character:"+",after:`(?:[ \r +])`},{atBreak:!0,character:"-",after:`(?:[ \r +-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r +]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Yr},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Yr},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Yr},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Yr},{atBreak:!0,character:"~"}];function VM(t){return t.label||!t.identifier?t.label||"":J1(t.identifier)}function HM(t){if(!t._compiled){const e=(t.atBreak?"[\\r\\n][\\t ]*":"")+(t.before?"(?:"+t.before+")":"");t._compiled=new RegExp((e?"("+e+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(t.character)?"\\":"")+t.character+(t.after?"(?:"+t.after+")":""),"g")}return t._compiled}function UM(t,e,n){const r=e.indexStack,i=t.children||[],o=[];let s=-1,a=n.before;r.push(-1);let l=e.createTracker(n);for(;++s0&&(a==="\r"||a===` +`)&&c.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" ",l=e.createTracker(n),l.move(o.join(""))),o.push(l.move(e.handle(c,t,e,{...l.current(),before:a,after:u}))),a=o[o.length-1].slice(-1)}return r.pop(),o.join("")}function KM(t,e,n){const r=e.indexStack,i=t.children||[],o=e.createTracker(n),s=[];let a=-1;for(r.push(-1);++a + +`}return` + +`}const YM=/\r?\n|\r/g;function JM(t,e){const n=[];let r=0,i=0,o;for(;o=YM.exec(t);)s(t.slice(r,o.index)),n.push(o[0]),r=o.index+o[0].length,i++;return s(t.slice(r)),n.join("");function s(a){n.push(e(a,i,!a))}}function XM(t,e,n){const r=(n.before||"")+(e||"")+(n.after||""),i=[],o=[],s={};let a=-1;for(;++a=c||u+1"u"||el.call(e,i)},Sg=function(e,n){bg&&n.name==="__proto__"?bg(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},_g=function(e,n){if(n==="__proto__")if(el.call(e,n)){if(kg)return kg(e,n).value}else return;return e[n]},aN=function t(){var e,n,r,i,o,s,a=arguments[0],l=1,c=arguments.length,u=!1;for(typeof a=="boolean"&&(u=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});ls.length;let l;a&&s.push(i);try{l=t.apply(this,s)}catch(c){const u=c;if(a&&n)throw u;return i(u)}a||(l instanceof Promise?l.then(o,i):l instanceof Error?i(l):o(l))}function i(s,...a){n||(n=!0,e(s,...a))}function o(s){i(null,s)}}class Ne extends Error{constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof e=="string"?i=e:!o.cause&&e&&(s=!0,i=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Ms(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ne.prototype.file="";Ne.prototype.name="";Ne.prototype.reason="";Ne.prototype.message="";Ne.prototype.stack="";Ne.prototype.column=void 0;Ne.prototype.line=void 0;Ne.prototype.ancestors=void 0;Ne.prototype.cause=void 0;Ne.prototype.fatal=void 0;Ne.prototype.place=void 0;Ne.prototype.ruleId=void 0;Ne.prototype.source=void 0;const kn={basename:uN,dirname:hN,extname:dN,join:fN,sep:"/"};function uN(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');ca(t);let n=0,r=-1,i=t.length,o;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":t.slice(n,r)}if(e===t)return"";let s=-1,a=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),a>-1&&(t.codePointAt(i)===e.codePointAt(a--)?a<0&&(r=i):(a=-1,r=s));return n===r?r=s:r<0&&(r=t.length),t.slice(n,r)}function hN(t){if(ca(t),t.length===0)return".";let e=-1,n=t.length,r;for(;--n;)if(t.codePointAt(n)===47){if(r){e=n;break}}else r||(r=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function dN(t){ca(t);let e=t.length,n=-1,r=0,i=-1,o=0,s;for(;e--;){const a=t.codePointAt(e);if(a===47){if(s){r=e+1;break}continue}n<0&&(s=!0,n=e+1),a===46?i<0?i=e:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":t.slice(i,n)}function fN(...t){let e=-1,n;for(;++e0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function mN(t,e){let n="",r=0,i=-1,o=0,s=-1,a,l;for(;++s<=t.length;){if(s2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(n.length>0){n="",r=0,i=s,o=0;continue}}e&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+t.slice(i+1,s):n=t.slice(i+1,s),r=s-i-1;i=s,o=0}else a===46&&o>-1?o++:o=-1}return n}function ca(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const gN={cwd:yN};function yN(){return"/"}function Ph(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function xN(t){if(typeof t=="string")t=new URL(t);else if(!Ph(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return bN(t)}function bN(t){if(t.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const e=t.pathname;let n=-1;for(;++n0){let[f,...p]=u;const m=r[d][1];Rh(m)&&Rh(f)&&(f=Su(!0,m,f)),r[d]=[c,f,...p]}}}}const $h=new Kd().freeze();function Au(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Eu(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Mu(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vg(t){if(!Rh(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Ag(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function Fa(t){return _N(t)?t:new kN(t)}function _N(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function TN(t){return typeof t=="string"||vN(t)}function vN(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}var mx=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},ct=(t,e,n)=>(mx(t,e,"read from private field"),n?n.call(t):e.get(t)),Lt=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},vt=(t,e,n,r)=>(mx(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);let gx=class{},yx=class{constructor(){this.elements=[],this.size=()=>this.elements.length,this.top=()=>this.elements.at(-1),this.push=e=>{var n;(n=this.top())==null||n.push(e)},this.open=e=>{this.elements.push(e)},this.close=()=>{const e=this.elements.pop();if(!e)throw B1();return e}}},AN=class xx extends gx{constructor(e,n,r){super(),this.type=e,this.content=n,this.attrs=r}push(e,...n){this.content.push(e,...n)}pop(){return this.content.pop()}static create(e,n,r){return new xx(e,n,r)}};var bn,as,nl,rl,il,ls,cs;const zh=class extends yx{constructor(e){super(),Lt(this,bn,void 0),Lt(this,as,void 0),Lt(this,nl,void 0),Lt(this,rl,void 0),Lt(this,il,void 0),Lt(this,ls,void 0),Lt(this,cs,void 0),vt(this,bn,ut.none),vt(this,as,n=>n.isText),vt(this,nl,(n,r)=>{if(ct(this,as).call(this,n)&&ct(this,as).call(this,r)&&ut.sameSet(n.marks,r.marks))return this.schema.text(n.text+r.text,n.marks)}),vt(this,rl,n=>{const r=Object.values({...this.schema.nodes,...this.schema.marks}).find(i=>i.spec.parseMarkdown.match(n));if(!r)throw Wv(n);return r}),vt(this,il,n=>{const r=ct(this,rl).call(this,n);r.spec.parseMarkdown.runner(this,n,r)}),this.injectRoot=(n,r,i)=>(this.openNode(r,i),this.next(n.children),this),this.openNode=(n,r)=>(this.open(AN.create(n,[],r)),this),vt(this,ls,()=>{vt(this,bn,ut.none);const n=this.close();return ct(this,cs).call(this,n.type,n.attrs,n.content)}),this.closeNode=()=>(ct(this,ls).call(this),this),vt(this,cs,(n,r,i)=>{const o=n.createAndFill(r,i,ct(this,bn));if(!o)throw jv(n,r,i);return this.push(o),o}),this.addNode=(n,r,i)=>(ct(this,cs).call(this,n,r,i),this),this.openMark=(n,r)=>{const i=n.create(r);return vt(this,bn,i.addToSet(ct(this,bn))),this},this.closeMark=n=>(vt(this,bn,n.removeFromSet(ct(this,bn))),this),this.addText=n=>{const r=this.top();if(!r)throw B1();const i=r.pop(),o=this.schema.text(n,ct(this,bn));if(!i)return r.push(o),this;const s=ct(this,nl).call(this,i,o);return s?(r.push(s),this):(r.push(i,o),this)},this.build=()=>{let n;do n=ct(this,ls).call(this);while(this.size());return n},this.next=(n=[])=>([n].flat().forEach(r=>ct(this,il).call(this,r)),this),this.toDoc=()=>this.build(),this.run=(n,r)=>{const i=n.runSync(n.parse(r),r);return this.next(i),this},this.schema=e}};bn=new WeakMap,as=new WeakMap,nl=new WeakMap,rl=new WeakMap,il=new WeakMap,ls=new WeakMap,cs=new WeakMap,zh.create=(t,e)=>{const n=new zh(t);return r=>(n.run(e,r),n.toDoc())};let EN=zh;const qh=class extends gx{constructor(e,n,r,i={}){super(),this.type=e,this.children=n,this.value=r,this.props=i,this.push=(o,...s)=>{this.children||(this.children=[]),this.children.push(o,...s)},this.pop=()=>{var o;return(o=this.children)==null?void 0:o.pop()}}};qh.create=(t,e,n,r={})=>new qh(t,e,n,r);let Eg=qh;const MN=t=>Object.prototype.hasOwnProperty.call(t,"size");var Kn,us,ol,sl,hs,al,ds,ll,Hi,fs,cl,ps;const jh=class extends yx{constructor(e){super(),Lt(this,Kn,void 0),Lt(this,us,void 0),Lt(this,ol,void 0),Lt(this,sl,void 0),Lt(this,hs,void 0),Lt(this,al,void 0),Lt(this,ds,void 0),Lt(this,ll,void 0),Lt(this,Hi,void 0),Lt(this,fs,void 0),Lt(this,cl,void 0),Lt(this,ps,void 0),vt(this,Kn,ut.none),vt(this,us,n=>{const r=Object.values({...this.schema.nodes,...this.schema.marks}).find(i=>i.spec.toMarkdown.match(n));if(!r)throw Vv(n.type);return r}),vt(this,ol,n=>ct(this,us).call(this,n).spec.toMarkdown.runner(this,n)),vt(this,sl,(n,r)=>ct(this,us).call(this,n).spec.toMarkdown.runner(this,n,r)),vt(this,hs,n=>{const{marks:r}=n,i=o=>o.type.spec.priority??50;[...r].sort((o,s)=>i(o)-i(s)).every(o=>!ct(this,sl).call(this,o,n))&&ct(this,ol).call(this,n),r.forEach(o=>ct(this,ps).call(this,o))}),vt(this,al,(n,r)=>{var i;if(n.type===r||((i=n.children)==null?void 0:i.length)!==1)return n;const o=c=>{var u;if(c.type===r)return c;if(((u=c.children)==null?void 0:u.length)!==1)return null;const[h]=c.children;return h?o(h):null},s=o(n);if(!s)return n;const a=s.children?[...s.children]:void 0,l={...n,children:a};return l.children=a,s.children=[l],s}),vt(this,ds,n=>{const{children:r}=n;return r&&(n.children=r.reduce((i,o,s)=>{if(s===0)return[o];const a=i.at(-1);if(a&&a.isMark&&o.isMark){o=ct(this,al).call(this,o,a.type);const{children:l,...c}=o,{children:u,...h}=a;if(o.type===a.type&&l&&u&&JSON.stringify(c)===JSON.stringify(h)){const d={...h,children:[...u,...l]};return i.slice(0,-1).concat(ct(this,ds).call(this,d))}}return i.concat(o)},[])),n}),vt(this,ll,n=>{const r={...n.props,type:n.type};return n.children&&(r.children=n.children),n.value&&(r.value=n.value),r}),this.openNode=(n,r,i)=>(this.open(Eg.create(n,void 0,r,i)),this),vt(this,Hi,()=>{const n=this.close();return ct(this,fs).call(this,n.type,n.children,n.value,n.props)}),this.closeNode=()=>(ct(this,Hi).call(this),this),vt(this,fs,(n,r,i,o)=>{const s=Eg.create(n,r,i,o),a=ct(this,ds).call(this,ct(this,ll).call(this,s));return this.push(a),a}),this.addNode=(n,r,i,o)=>(ct(this,fs).call(this,n,r,i,o),this),vt(this,cl,(n,r,i,o)=>n.isInSet(ct(this,Kn))?this:(vt(this,Kn,n.addToSet(ct(this,Kn))),this.openNode(r,i,{...o,isMark:!0}))),vt(this,ps,n=>{n.isInSet(ct(this,Kn))&&(vt(this,Kn,n.type.removeFromSet(ct(this,Kn))),ct(this,Hi).call(this))}),this.withMark=(n,r,i,o)=>(ct(this,cl).call(this,n,r,i,o),this),this.closeMark=n=>(ct(this,ps).call(this,n),this),this.build=()=>{let n=null;do n=ct(this,Hi).call(this);while(this.size());return n},this.next=n=>MN(n)?(n.forEach(r=>{ct(this,hs).call(this,r)}),this):(ct(this,hs).call(this,n),this),this.toString=n=>n.stringify(this.build()),this.run=n=>(this.next(n),this),this.schema=e}};Kn=new WeakMap,us=new WeakMap,ol=new WeakMap,sl=new WeakMap,hs=new WeakMap,al=new WeakMap,ds=new WeakMap,ll=new WeakMap,Hi=new WeakMap,fs=new WeakMap,cl=new WeakMap,ps=new WeakMap,jh.create=(t,e)=>{const n=new jh(t);return r=>(n.run(r),n.toString(e))};let NN=jh;class ge{constructor(e,n,r={}){this.match=e,this.match=e,this.handler=typeof n=="string"?ON(n):n,this.undoable=r.undoable!==!1}}function ON(t){return function(e,n,r,i){let o=t;if(n[1]){let s=n[0].lastIndexOf(n[1]);o+=n[0].slice(s+n[1].length),r+=s;let a=r-i;a>0&&(o=n[0].slice(s-a,s)+o,r=i)}return e.tr.insertText(o,r,i)}}const IN=(t,e)=>{let n=t.plugins;for(let r=0;r=0;l--)s.step(a.steps[l].invert(a.docs[l]));if(o.text){let l=s.doc.resolve(o.from).marks();s.replaceWith(o.from,o.to,t.schema.text(o.text,l))}else s.delete(o.from,o.to);e(s)}return!0}}return!1};new ge(/--$/,"—");new ge(/\.\.\.$/,"…");new ge(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“");new ge(/"$/,"”");new ge(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘");new ge(/'$/,"’");function Gd(t,e,n=null,r){return new ge(t,(i,o,s,a)=>{let l=n instanceof Function?n(o):n,c=i.tr.delete(s,a),u=c.doc.resolve(s),h=u.blockRange(),d=h&&W0(h,e,l);if(!d)return null;c.wrap(h,d);let f=c.doc.resolve(s-1).nodeBefore;return f&&f.type==e&&Cc(c.doc,s-1)&&(!r||r(o,f))&&c.join(s-1),c})}function bx(t,e,n=null){return new ge(t,(r,i,o,s)=>{let a=r.doc.resolve(o),l=n instanceof Function?n(i):n;return a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),e)?r.tr.delete(o,s).setBlockType(o,o,e,l):null})}const Br=typeof navigator<"u"?navigator:null,Mg=typeof document<"u"?document:null,zr=Br&&Br.userAgent||"",Wh=/Edge\/(\d+)/.exec(zr),kx=/MSIE \d/.exec(zr),Vh=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(zr),Nc=!!(kx||Vh||Wh),BN=kx?document.documentMode:Vh?+Vh[1]:Wh?+Wh[1]:0,Cx=!Nc&&/gecko\/(\d+)/i.test(zr),FN=Cx&&+(/Firefox\/(\d+)/.exec(zr)||[0,0])[1],Hh=!Nc&&/Chrome\/(\d+)/.exec(zr),LN=!!Hh,DN=Hh?+Hh[1]:0,wx=!Nc&&!!Br&&/Apple Computer/.test(Br.vendor),Sx=wx&&(/Mobile\/\w+/.test(zr)||!!Br&&Br.maxTouchPoints>2),RN=Sx||(Br?/Mac/.test(Br.platform):!1),PN=/Android \d/.test(zr),_x=!!Mg&&"webkitFontSmoothing"in Mg.documentElement.style,$N=_x?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;var Ng=Object.freeze({__proto__:null,android:PN,chrome:LN,chrome_version:DN,gecko:Cx,gecko_version:FN,ie:Nc,ie_version:BN,ios:Sx,mac:RN,safari:wx,webkit:_x,webkit_version:$N});function Nu(t,e,n,r,i,o){if(t.composing)return!1;const s=t.state,a=s.doc.resolve(e);if(a.parent.type.spec.code)return!1;const l=a.parent.textBetween(Math.max(0,a.parentOffset-500),a.parentOffset,void 0,"")+r;for(let c=0;c(setTimeout(()=>{const{$cursor:r}=n.state.selection;r&&Nu(n,r.pos,r.pos,"",t,e)}),!1)},handleKeyDown(n,r){if(r.key!=="Enter")return!1;const{$cursor:i}=n.state.selection;return i?Nu(n,i.pos,i.pos,` +`,t,e):!1}}});return e}function ua(t,e,n={}){return new ge(t,(r,i,o,s)=>{var a,l,c,u;const{tr:h}=r,d=i.length;let f=i[d-1],p=i[0],m=[],g=s;const y={group:f,fullMatch:p,start:o,end:s},C=(a=n.updateCaptured)==null?void 0:a.call(n,y);if(Object.assign(y,C),{group:f,fullMatch:p,start:o,end:s}=y,p===null||f?.trim()==="")return null;if(f){const T=p.search(/\S/),M=o+p.indexOf(f),I=M+f.length;m=(l=h.storedMarks)!=null?l:[],Io&&h.delete(o+T,M),g=o+T+f.length;const S=(c=n.getAttr)==null?void 0:c.call(n,i);h.addMark(o,g,e.create(S)),h.setStoredMarks(m),(u=n.beforeDispatch)==null||u.call(n,{match:i,start:o,end:s,tr:h})}return h})}function Oc(t){return Object.assign(Object.create(t),t).setTime(Date.now())}function jN(t,e){return Array.isArray(t)&&t.includes(e.type)||e.type===t}function WN(t,e){const n=e.nodes[t];if(!n)throw Hv("node",t);return n}function VN(t){return e=>{for(let n=e.depth;n>0;n--){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}}function HN(t){return e=>VN(t)(e.$from)}function UN(t,e){if(!(t instanceof Q))return;const{node:n,$from:r}=t;if(jN(e,n))return{node:n,pos:r.pos,start:r.start(r.depth),depth:r.depth}}const Yd=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function KN(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const Tx=(t,e,n)=>{let r=KN(t,n);if(!r)return!1;let i=Ax(r);if(!i){let s=r.blockRange(),a=s&&kc(s);return a==null?!1:(e&&e(t.tr.lift(s,a).scrollIntoView()),!0)}let o=i.nodeBefore;if(!o.type.spec.isolating&&Mx(t,i,e))return!0;if(r.parent.content.size==0&&(go(o,"end")||Q.isSelectable(o))){let s=Md(t.doc,r.before(),r.after(),D.empty);if(s&&s.slice.size{let{$head:r,empty:i}=t.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;o=Ax(r)}let s=o&&o.nodeBefore;return!s||!Q.isSelectable(s)?!1:(e&&e(t.tr.setSelection(Q.create(t.doc,o.pos-s.nodeSize)).scrollIntoView()),!0)};function Ax(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function GN(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset{let r=GN(t,n);if(!r)return!1;let i=Ex(r);if(!i)return!1;let o=i.nodeAfter;if(Mx(t,i,e))return!0;if(r.parent.content.size==0&&(go(o,"start")||Q.isSelectable(o))){let s=Md(t.doc,r.before(),r.after(),D.empty);if(s&&s.slice.size{let{$head:r,empty:i}=t.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset=0;e--){let n=t.node(e);if(t.index(e)+1{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(` +`).scrollIntoView()),!0)};function Jd(t){for(let e=0;e{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),o=n.indexAfter(-1),s=Jd(i.contentMatchAt(o));if(!s||!i.canReplaceWith(o,o,s))return!1;if(e){let a=n.after(),l=t.tr.replaceWith(a,a,s.createAndFill());l.setSelection(tt.near(l.doc.resolve(a),1)),e(l.scrollIntoView())}return!0},QN=(t,e)=>{let n=t.selection,{$from:r,$to:i}=n;if(n instanceof ve||r.parent.inlineContent||i.parent.inlineContent)return!1;let o=Jd(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(e){let s=(!r.parentOffset&&i.index(){let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(Ts(t.doc,o))return e&&e(t.tr.split(o).scrollIntoView()),!0}let r=n.blockRange(),i=r&&kc(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)};function eO(t){return(e,n)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof Q&&e.selection.node.isBlock)return!r.parentOffset||!Ts(e.doc,r.pos)?!1:(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.parent.isBlock)return!1;if(n){let o=i.parentOffset==i.parent.content.size,s=e.tr;(e.selection instanceof it||e.selection instanceof ve)&&s.deleteSelection();let a=r.depth==0?null:Jd(r.node(-1).contentMatchAt(r.indexAfter(-1))),l=t&&t(i.parent,o),c=l?[l]:o&&a?[{type:a}]:void 0,u=Ts(s.doc,s.mapping.map(r.pos),1,c);if(!c&&!u&&Ts(s.doc,s.mapping.map(r.pos),1,a?[{type:a}]:void 0)&&(a&&(c=[{type:a}]),u=!0),u&&(s.split(s.mapping.map(r.pos),1,c),!o&&!r.parentOffset&&r.parent.type!=a)){let h=s.mapping.map(r.before()),d=s.doc.resolve(h);a&&r.node(-1).canReplaceWith(d.index(),d.index()+1,a)&&s.setNodeMarkup(s.mapping.map(r.before()),a)}n(s.scrollIntoView())}return!0}}const nO=eO(),rO=(t,e)=>(e&&e(t.tr.setSelection(new ve(t.doc))),!0);function iO(t,e,n){let r=e.nodeBefore,i=e.nodeAfter,o=e.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&e.parent.canReplace(o-1,o)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(o,o+1)||!(i.isTextblock||Cc(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function Mx(t,e,n){let r=e.nodeBefore,i=e.nodeAfter,o,s;if(r.type.spec.isolating||i.type.spec.isolating)return!1;if(iO(t,e,n))return!0;let a=e.parent.canReplace(e.index(),e.index()+1);if(a&&(o=(s=r.contentMatchAt(r.childCount)).findWrapping(i.type))&&s.matchType(o[0]||i.type).validEnd){if(n){let h=e.pos+i.nodeSize,d=E.empty;for(let m=o.length-1;m>=0;m--)d=E.from(o[m].create(null,d));d=E.from(r.copy(d));let f=t.tr.step(new ee(e.pos-1,h,e.pos,h,new D(d,1,0),o.length,!0)),p=h+2*o.length;Cc(f.doc,p)&&f.join(p),n(f.scrollIntoView())}return!0}let l=tt.findFrom(e,1),c=l&&l.$from.blockRange(l.$to),u=c&&kc(c);if(u!=null&&u>=e.depth)return n&&n(t.tr.lift(c,u).scrollIntoView()),!0;if(a&&go(i,"start",!0)&&go(r,"end")){let h=r,d=[];for(;d.push(h),!h.isTextblock;)h=h.lastChild;let f=i,p=1;for(;!f.isTextblock;f=f.firstChild)p++;if(h.canReplace(h.childCount,h.childCount,f.content)){if(n){let m=E.empty;for(let y=d.length-1;y>=0;y--)m=E.from(d[y].copy(m));let g=t.tr.step(new ee(e.pos-d.length,e.pos+i.nodeSize,e.pos+p,e.pos+i.nodeSize-p,new D(m,d.length,0),0,!0));n(g.scrollIntoView())}return!0}}return!1}function Nx(t){return function(e,n){let r=e.selection,i=t<0?r.$from:r.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return i.node(o).isTextblock?(n&&n(e.tr.setSelection(it.create(e.doc,t<0?i.start(o):i.end(o)))),!0):!1}}const oO=Nx(-1),sO=Nx(1);function Xd(t,e=null){return function(n,r){let{$from:i,$to:o}=n.selection,s=i.blockRange(o),a=s&&W0(s,t,e);return a?(r&&r(n.tr.wrap(s,a).scrollIntoView()),!0):!1}}function Ti(t,e=null){return function(n,r){let i=!1;for(let o=0;o{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)i=!0;else{let u=n.doc.resolve(c),h=u.index();i=u.parent.canReplaceWith(h,h+1,t)}})}if(!i)return!1;if(r){let o=n.tr;for(let s=0;s{if(s)return!1;s=a.inlineContent&&a.type.allowsMarkType(n)}),s)return!0}return!1}function Ic(t,e=null){return function(n,r){let{empty:i,$cursor:o,ranges:s}=n.selection;if(i&&!o||!aO(n.doc,s,t))return!1;if(r)if(o)t.isInSet(n.storedMarks||o.marks())?r(n.tr.removeStoredMark(t)):r(n.tr.addStoredMark(t.create(e)));else{let a=!1,l=n.tr;for(let c=0;!a&&c",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},uO=typeof navigator<"u"&&/Mac/.test(navigator.platform),hO=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Ht=0;Ht<10;Ht++)Fr[48+Ht]=Fr[96+Ht]=String(Ht);for(var Ht=1;Ht<=24;Ht++)Fr[Ht+111]="F"+Ht;for(var Ht=65;Ht<=90;Ht++)Fr[Ht]=String.fromCharCode(Ht+32),Ul[Ht]=String.fromCharCode(Ht);for(var Iu in Fr)Ul.hasOwnProperty(Iu)||(Ul[Iu]=Fr[Iu]);function dO(t){var e=uO&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||hO&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Ul:Fr)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const fO=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function pO(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,i,o,s;for(let a=0;a127)&&(o=Fr[r.keyCode])&&o!=i){let a=e[Bu(o,r)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}var Fx=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},U=(t,e,n)=>(Fx(t,e,"read from private field"),n?n.call(t):e.get(t)),jt=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},At=(t,e,n,r)=>(Fx(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);function qr(t,e){return t.meta={package:"@milkdown/core",group:"System",...e},t}const Lx={strong:(t,e,n,r)=>{const i=t.marker||n.options.strong||"*",o=n.enter("strong"),s=n.createTracker(r);let a=s.move(i+i);return a+=s.move(n.containerPhrasing(t,{before:a,after:i,...s.current()})),a+=s.move(i+i),o(),a},emphasis:(t,e,n,r)=>{const i=t.marker||n.options.emphasis||"*",o=n.enter("emphasis"),s=n.createTracker(r);let a=s.move(i);return a+=s.move(n.containerPhrasing(t,{before:a,after:i,...s.current()})),a+=s.move(i),o(),a}},ul=Pr("ConfigReady");function gO(t){const e=n=>(n.record(ul),async()=>(await t(n),n.done(ul),()=>{n.clearTimer(ul)}));return qr(e,{displayName:"Config"}),e}const di=Pr("InitReady"),Fu=mt([],"initTimer"),Ig=mt({},"editor"),Us=mt([],"inputRules"),dn=mt([],"prosePlugins"),Ks=mt([],"remarkPlugins"),Gs=mt([],"nodeView"),Ys=mt([],"markView"),fi=mt($h().use(Ih).use(Dh),"remark"),Ns=mt({handlers:Lx},"remarkStringifyOptions");function yO(t){const e=n=>(n.inject(Ig,t).inject(dn,[]).inject(Ks,[]).inject(Us,[]).inject(Gs,[]).inject(Ys,[]).inject(Ns,{handlers:Lx}).inject(fi,$h().use(Ih).use(Dh)).inject(Fu,[ul]).record(di),async()=>{await n.waitTimers(Fu);const r=n.get(Ns);return n.set(fi,$h().use(Ih).use(Dh,r)),n.done(di),()=>{n.remove(Ig).remove(dn).remove(Ks).remove(Us).remove(Gs).remove(Ys).remove(Ns).remove(fi).remove(Fu).clearTimer(di)}});return qr(e,{displayName:"Init"}),e}const cn=Pr("SchemaReady"),Lu=mt([],"schemaTimer"),Ue=mt({},"schema"),io=mt([],"nodes"),oo=mt([],"marks");function Bg(t){var e;return{...t,parseDOM:(e=t.parseDOM)==null?void 0:e.map(n=>({priority:t.priority,...n}))}}const Dx=t=>(t.inject(Ue,{}).inject(io,[]).inject(oo,[]).inject(Lu,[di]).record(cn),async()=>{await t.waitTimers(Lu);const e=t.get(fi),n=t.get(Ks).reduce((s,a)=>s.use(a.plugin,a.options),e);t.set(fi,n);const r=Object.fromEntries(t.get(io).map(([s,a])=>[s,Bg(a)])),i=Object.fromEntries(t.get(oo).map(([s,a])=>[s,Bg(a)])),o=new m_({nodes:r,marks:i});return t.set(Ue,o),t.done(cn),()=>{t.remove(Ue).remove(io).remove(oo).remove(Lu).clearTimer(cn)}});qr(Dx,{displayName:"Schema"});const hl=Pr("ParserReady"),Rx=()=>{throw zd()},so=mt(Rx,"parser"),Du=mt([],"parserTimer"),Px=t=>(t.inject(so,Rx).inject(Du,[cn]).record(hl),async()=>{await t.waitTimers(Du);const e=t.get(fi),n=t.get(Ue);return t.set(so,EN.create(n,e)),t.done(hl),()=>{t.remove(so).remove(Du).clearTimer(hl)}});qr(Px,{displayName:"Parser"});const Os=Pr("SerializerReady"),Ru=mt([],"serializerTimer"),$x=()=>{throw zd()},ao=mt($x,"serializer"),zx=t=>(t.inject(ao,$x).inject(Ru,[cn]).record(Os),async()=>{await t.waitTimers(Ru);const e=t.get(fi),n=t.get(Ue);return t.set(ao,NN.create(n,e)),t.done(Os),()=>{t.remove(ao).remove(Ru).clearTimer(Os)}});qr(zx,{displayName:"Serializer"});const dl=mt("","defaultValue"),ms=mt({},"editorState"),fl=mt(t=>t,"stateOptions"),Pu=mt([],"editorStateTimer"),pl=Pr("EditorStateReady");function xO(t,e,n){if(typeof t=="string")return e(t);if(t.type==="html")return Ci.fromSchema(n).parse(t.dom);if(t.type==="json")return an.fromJSON(n,t.value);throw $v(t)}const bO=new ie("MILKDOWN_STATE_TRACKER");function kO(t){const e=Bc(IN,Yd,Tx,vx);return t.Backspace=e,t}const qx=t=>(t.inject(dl,"").inject(ms,{}).inject(fl,e=>e).inject(Pu,[hl,Os,Bs]).record(pl),async()=>{await t.waitTimers(Pu);const e=t.get(Ue),n=t.get(so),r=t.get(Us),i=t.get(fl),o=t.get(dn),s=t.get(dl),a=xO(s,n,e),l=[...o,new me({key:bO,state:{init:()=>{},apply:(h,d,f,p)=>{t.set(ms,p)}}}),qN({rules:r}),Ix(kO(cO))];t.set(dn,l);const c=i({schema:e,doc:a,plugins:l}),u=ri.create(c);return t.set(ms,u),t.done(pl),()=>{t.remove(dl).remove(ms).remove(fl).remove(Pu).clearTimer(pl)}});qr(qx,{displayName:"EditorState"});const ml=Pr("EditorViewReady"),pi=mt({},"editorView"),$u=mt([],"editorViewTimer"),Is=mt({},"editorViewOptions"),gl=mt(null,"root"),Uh=mt(null,"rootDOM"),Kh=mt({},"rootAttrs");function CO(t,e){const n=document.createElement("div");n.className="milkdown",t.appendChild(n),e.set(Uh,n);const r=e.get(Kh);return Object.entries(r).forEach(([i,o])=>n.setAttribute(i,o)),n}function wO(t){t.classList.add("editor"),t.setAttribute("role","textbox")}const SO=new ie("MILKDOWN_VIEW_CLEAR"),jx=t=>(t.inject(gl,document.body).inject(pi,{}).inject(Is,{}).inject(Uh,null).inject(Kh,{}).inject($u,[pl]).record(ml),async()=>{await t.wait(di);const e=t.get(gl)||document.body,n=typeof e=="string"?document.querySelector(e):e;t.update(dn,l=>[new me({key:SO,view:c=>{const u=n?CO(n,t):void 0;return(()=>{if(u&&n){const h=c.dom;n.replaceChild(u,h),u.appendChild(h)}})(),{destroy:()=>{u!=null&&u.parentNode&&u?.parentNode.replaceChild(c.dom,u),u?.remove()}}}}),...l]),await t.waitTimers($u);const r=t.get(ms),i=t.get(Is),o=Object.fromEntries(t.get(Gs)),s=Object.fromEntries(t.get(Ys)),a=new wv(n,{state:r,nodeViews:o,markViews:s,...i});return wO(a.dom),t.set(pi,a),t.done(ml),()=>{a?.destroy(),t.remove(gl).remove(pi).remove(Is).remove(Uh).remove(Kh).remove($u).clearTimer(ml)}});qr(jx,{displayName:"EditorView"});var Ui,Qr;let Wx=class{constructor(){jt(this,Ui,void 0),jt(this,Qr,void 0),At(this,Ui,new L1),At(this,Qr,null),this.setCtx=e=>{At(this,Qr,e)}}get ctx(){return U(this,Qr)}create(e,n){const r=e.create(U(this,Ui).sliceMap);return r.set(n),r}get(e){return U(this,Ui).get(e).get()}remove(e){return U(this,Ui).remove(e)}call(e,n){if(U(this,Qr)==null)throw Uv();const r=this.get(e)(n),i=U(this,Qr).get(pi);return r(i.state,i.dispatch,i)}};Ui=new WeakMap,Qr=new WeakMap;function _O(t="cmdKey"){return mt(()=>()=>!1,t)}const gt=mt(new Wx,"commands"),zu=mt([cn],"commandsTimer"),Bs=Pr("CommandsReady"),Vx=t=>{const e=new Wx;return e.setCtx(t),t.inject(gt,e).inject(zu,[cn]).record(Bs),async()=>(await t.waitTimers(zu),t.done(Bs),()=>{t.remove(gt).remove(zu).clearTimer(Bs)})};qr(Vx,{displayName:"Commands"});var Hx=(t=>(t.Idle="Idle",t.OnCreate="OnCreate",t.Created="Created",t.OnDestroy="OnDestroy",t.Destroyed="Destroyed",t))(Hx||{}),Ki,ze,gr,gs,yl,xl,Be,yr,Gi,bl,Yi,ys,kl,ti,xs;const TO=class Ux{constructor(){jt(this,Ki,void 0),jt(this,ze,void 0),jt(this,gr,void 0),jt(this,gs,void 0),jt(this,yl,void 0),jt(this,xl,void 0),jt(this,Be,void 0),jt(this,yr,void 0),jt(this,Gi,void 0),jt(this,bl,void 0),jt(this,Yi,void 0),jt(this,ys,void 0),jt(this,kl,void 0),jt(this,ti,void 0),jt(this,xs,void 0),At(this,Ki,!1),At(this,ze,"Idle"),At(this,gr,[]),At(this,gs,()=>{}),At(this,yl,new L1),At(this,xl,new tA),At(this,Be,new Map),At(this,yr,new Map),At(this,Gi,new Qv(U(this,yl),U(this,xl))),At(this,bl,()=>{const e=gO(async r=>{await Promise.all(U(this,gr).map(i=>i(r)))}),n=[Dx,Px,zx,Vx,qx,jx,yO(this),e];U(this,Yi).call(this,n,U(this,yr))}),At(this,Yi,(e,n)=>{e.forEach(r=>{const i=U(this,Gi).produce(U(this,Ki)?r.meta:void 0),o=r(i);n.set(r,{ctx:i,handler:o,cleanup:void 0})})}),At(this,ys,(e,n=!1)=>Promise.all([e].flat().map(r=>{const i=U(this,Be).get(r),o=i?.cleanup;return n?U(this,Be).delete(r):U(this,Be).set(r,{ctx:void 0,handler:void 0,cleanup:void 0}),typeof o=="function"?o():o}))),At(this,kl,async()=>{await Promise.all([...U(this,yr).entries()].map(([e,{cleanup:n}])=>typeof n=="function"?n():n)),U(this,yr).clear()}),At(this,ti,e=>{At(this,ze,e),U(this,gs).call(this,e)}),At(this,xs,e=>[...e.entries()].map(async([n,r])=>{const{ctx:i,handler:o}=r;if(!o)return;const s=await o();e.set(n,{ctx:i,handler:o,cleanup:s})})),this.enableInspector=(e=!0)=>(At(this,Ki,e),this),this.onStatusChange=e=>(At(this,gs,e),this),this.config=e=>(U(this,gr).push(e),this),this.removeConfig=e=>(At(this,gr,U(this,gr).filter(n=>n!==e)),this),this.use=e=>{const n=[e].flat();return n.flat().forEach(r=>{U(this,Be).set(r,{ctx:void 0,handler:void 0,cleanup:void 0})}),U(this,ze)==="Created"&&U(this,Yi).call(this,n,U(this,Be)),this},this.remove=async e=>U(this,ze)==="OnCreate"?(console.warn("[Milkdown]: You are trying to remove plugins when the editor is creating, this is not recommended, please check your code."),new Promise(n=>{setTimeout(()=>{n(this.remove(e))},50)})):(await U(this,ys).call(this,[e].flat(),!0),this),this.create=async()=>U(this,ze)==="OnCreate"?this:(U(this,ze)==="Created"&&await this.destroy(),U(this,ti).call(this,"OnCreate"),U(this,bl).call(this),U(this,Yi).call(this,[...U(this,Be).keys()],U(this,Be)),await Promise.all([U(this,xs).call(this,U(this,yr)),U(this,xs).call(this,U(this,Be))].flat()),U(this,ti).call(this,"Created"),this),this.destroy=async(e=!1)=>U(this,ze)==="Destroyed"||U(this,ze)==="OnDestroy"?this:U(this,ze)==="OnCreate"?new Promise(n=>{setTimeout(()=>{n(this.destroy(e))},50)}):(e&&At(this,gr,[]),U(this,ti).call(this,"OnDestroy"),await U(this,ys).call(this,[...U(this,Be).keys()],e),await U(this,kl).call(this),U(this,ti).call(this,"Destroyed"),this),this.action=e=>e(U(this,Gi)),this.inspect=()=>U(this,Ki)?[...U(this,yr).values(),...U(this,Be).values()].map(({ctx:e})=>{var n;return(n=e?.inspector)==null?void 0:n.read()}).filter(e=>!!e):(console.warn("[Milkdown]: You are trying to collect inspection when inspector is disabled, please enable inspector by `editor.enableInspector()` first."),[])}static make(){return new Ux}get ctx(){return U(this,Gi)}get status(){return U(this,ze)}};Ki=new WeakMap,ze=new WeakMap,gr=new WeakMap,gs=new WeakMap,yl=new WeakMap,xl=new WeakMap,Be=new WeakMap,yr=new WeakMap,Gi=new WeakMap,bl=new WeakMap,Yi=new WeakMap,ys=new WeakMap,kl=new WeakMap,ti=new WeakMap,xs=new WeakMap;let vO=TO,AO=t=>crypto.getRandomValues(new Uint8Array(t)),EO=(t,e,n)=>{let r=(2<{let s="";for(;;){let a=n(i),l=i;for(;l--;)if(s+=t[a[l]&r]||"",s.length===o)return s}}},Kx=(t,e=21)=>EO(t,e,AO);Kx("abcedfghicklmn",10);function nt(t,e){const n=_O(t),r=i=>async()=>{r.key=n,await i.wait(Bs);const o=e(i);return i.get(gt).create(n,o),r.run=s=>i.get(gt).call(t,s),()=>{i.get(gt).remove(n)}};return r}function oe(t){const e=n=>async()=>{await n.wait(cn);const r=t(n);return n.update(Us,i=>[...i,r]),e.inputRule=r,()=>{n.update(Us,i=>i.filter(o=>o!==r))}};return e}function MO(t,e){const n=r=>async()=>{const i=e(r);return r.update(oo,o=>[...o.filter(s=>s[0]!==t),[t,i]]),n.id=t,n.schema=i,()=>{r.update(oo,o=>o.filter(([s])=>s!==t))}};return n.type=r=>{const i=r.get(Ue).marks[t];if(!i)throw Gv(t);return i},n}function Zd(t,e){const n=r=>async()=>{const i=e(r);return r.update(io,o=>[...o.filter(s=>s[0]!==t),[t,i]]),n.id=t,n.schema=i,()=>{r.update(io,o=>o.filter(([s])=>s!==t))}};return n.type=r=>{const i=r.get(Ue).nodes[t];if(!i)throw Kv(t);return i},n}function Bn(t){let e;const n=r=>async()=>(await r.wait(cn),e=t(r),r.update(dn,i=>[...i,e]),()=>{r.update(dn,i=>i.filter(o=>o!==e))});return n.plugin=()=>e,n.key=()=>e.spec.key,n}function Gx(t){const e=n=>async()=>{await n.wait(cn);const r=t(n),i=Ix(r);return n.update(dn,o=>[...o,i]),e.keymap=r,()=>{n.update(dn,o=>o.filter(s=>s!==i))}};return e}function ha(t,e){const n=r=>async()=>{await r.wait(cn);const i=e(r);return t.type(r)instanceof Rl?r.update(Gs,o=>[...o,[t.id,i]]):r.update(Ys,o=>[...o,[t.id,i]]),n.view=i,n.type=t,()=>{t.type(r)instanceof Rl?r.update(Gs,o=>o.filter(s=>s[0]!==t.id)):r.update(Ys,o=>o.filter(s=>s[0]!==t.id))}};return n}function mn(t,e){const n=mt(t,e),r=i=>(i.inject(n),()=>()=>{i.remove(n)});return r.key=n,r}function Dt(t,e){const n=mn(e,t),r=Zd(t,o=>o.get(n.key)(o)),i=[n,r];return i.id=r.id,i.node=r,i.type=o=>r.type(o),i.schema=r.schema,i.ctx=n,i.key=n.key,i.extendSchema=o=>s=>()=>{const a=s.get(n.key),l=o(a)(s);s.update(io,c=>[...c.filter(u=>u[0]!==t),[t,l]]),i.schema=l},i}function da(t,e){const n=mn(e,t),r=MO(t,o=>o.get(n.key)(o)),i=[n,r];return i.id=r.id,i.mark=r,i.type=r.type,i.schema=r.schema,i.ctx=n,i.key=n.key,i.extendSchema=o=>s=>()=>{const a=s.get(n.key),l=o(a)(s);s.update(oo,c=>[...c.filter(u=>u[0]!==t),[t,l]]),i.schema=l},i}function Oe(t,e){const n=Object.fromEntries(Object.entries(e).map(([s,{shortcuts:a}])=>[s,a])),r=mn(n,`${t}Keymap`),i=Gx(s=>{const a=s.get(r.key),l=Object.entries(e).flatMap(([c,{command:u}])=>[a[c]].flat().map(h=>[h,u(s)]));return Object.fromEntries(l)}),o=[r,i];return o.ctx=r,o.shortcuts=i,o.key=r.key,o.keymap=i.keymap,o}const gn=(t,e=()=>({}))=>mn(e,`${t}Attr`),fa=(t,e=()=>({}))=>mn(e,`${t}Attr`);function ir(t,e,n){const r=mn(n??{},t),i=s=>async()=>{await s.wait(di);const a={plugin:e(s),options:s.get(r.key)};return s.update(Ks,l=>[...l,a]),()=>{s.update(Ks,l=>l.filter(c=>c!==a))}},o=[r,i];return o.id=t,o.plugin=i,o.options=r,o}function NO(t,e=!1){return n=>{const r=n.get(pi),i=n.get(so)(t);if(!i)return;if(!e){const{state:c}=r;return r.dispatch(c.tr.replace(0,c.doc.content.size,new D(i.content,0,0)))}const o=n.get(Ue),s=n.get(fl),a=n.get(dn),l=ri.create({schema:o,doc:i,plugins:a,...s});r.updateState(l)}}function Gh(t){if(!t)return!1;if(Array.isArray(t))return t.length>1?!1:Gh(t[0]);const e=t.content;return e?Gh(e):t.type==="text"}function OO(t){if(t.content.childCount===1){const e=t.content.firstChild;if(e?.type.name==="text"&&e.marks.length===0)return e;if(e?.type.name==="paragraph"&&e.childCount===1){const n=e.firstChild;if(n?.type.name==="text"&&n.marks.length===0)return n}}return!1}const Yx=Bn(t=>{const e=t.get(Ue);t.update(Is,r=>({...r,editable:r.editable??(()=>!0)}));const n=new ie("MILKDOWN_CLIPBOARD");return new me({key:n,props:{handlePaste:(r,i)=>{var o,s;const a=t.get(so),l=(s=(o=r.props).editable)==null?void 0:s.call(o,r.state),{clipboardData:c}=i;if(!l||!c||r.state.selection.$from.node().type.spec.code)return!1;const u=c.getData("text/plain"),h=c.getData("vscode-editor-data");if(h){const y=JSON.parse(h),C=y?.mode;if(u&&C){const{tr:T}=r.state,M=WN("code_block",e);return T.replaceSelectionWith(M.create({language:C})).setSelection(it.near(T.doc.resolve(Math.max(0,T.selection.from-2)))).insertText(u.replace(/\r\n?/g,` +`)),r.dispatch(T),!0}}const d=c.getData("text/html");if(d.length===0&&u.length===0)return!1;const f=Ci.fromSchema(e);let p;if(d.length===0){const y=a(u);if(!y||typeof y=="string")return!1;p=_n.fromSchema(e).serializeFragment(y.content)}else{const y=document.createElement("template");y.innerHTML=d,p=y.content.cloneNode(!0),y.remove()}const m=f.parseSlice(p),g=OO(m);return g?(r.dispatch(r.state.tr.replaceSelectionWith(g,!0)),!0):(r.dispatch(r.state.tr.replaceSelection(m)),!0)},clipboardTextSerializer:r=>{const i=t.get(ao);if(Gh(r.content.toJSON()))return r.content.textBetween(0,r.content.size,` + +`);const o=e.topNodeType.createAndFill(void 0,r.content);return o?i(o):""}}})});Yx.meta={displayName:"Prose",package:"@milkdown/plugin-clipboard"};var Kl=200,$t=function(){};$t.prototype.append=function(e){return e.length?(e=$t.from(e),!this.length&&e||e.length=n?$t.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};$t.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};$t.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};$t.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(o,s){return i.push(e(o,s))},n,r),i};$t.from=function(e){return e instanceof $t?e:e&&e.length?new Jx(e):$t.empty};var Jx=function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(i,o){return i==0&&o==this.length?this:new e(this.values.slice(i,o))},e.prototype.getInner=function(i){return this.values[i]},e.prototype.forEachInner=function(i,o,s,a){for(var l=o;l=s;l--)if(i(this.values[l],a+l)===!1)return!1},e.prototype.leafAppend=function(i){if(this.length+i.length<=Kl)return new e(this.values.concat(i.flatten()))},e.prototype.leafPrepend=function(i){if(this.length+i.length<=Kl)return new e(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}($t);$t.empty=new Jx([]);var IO=function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return ra&&this.right.forEachInner(r,Math.max(i-a,0),Math.min(this.length,o)-a,s+a)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,o,s){var a=this.left.length;if(i>a&&this.right.forEachInvertedInner(r,i-a,Math.max(o,a)-a,s+a)===!1||o=o?this.right.slice(r-o,i-o):this.left.slice(r,o).append(this.right.slice(0,i-o))},e.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new e(this.left,i)},e.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new e(i,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}($t);const BO=500;class rn{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,o;n&&(i=this.remapping(r,this.items.length),o=i.maps.length);let s=e.tr,a,l,c=[],u=[];return this.items.forEach((h,d)=>{if(!h.step){i||(i=this.remapping(r,d+1),o=i.maps.length),o--,u.push(h);return}if(i){u.push(new Cn(h.map));let f=h.step.map(i.slice(o)),p;f&&s.maybeStep(f).doc&&(p=s.mapping.maps[s.mapping.maps.length-1],c.push(new Cn(p,void 0,void 0,c.length+u.length))),o--,p&&i.appendMap(p,o)}else s.maybeStep(h.step);if(h.selection)return a=i?h.selection.map(i.slice(o)):h.selection,l=new rn(this.items.slice(0,r).append(u.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:s,selection:a}}addTransform(e,n,r,i){let o=[],s=this.eventCount,a=this.items,l=!i&&a.length?a.get(a.length-1):null;for(let u=0;uLO&&(a=FO(a,c),s-=c),new rn(a.append(o),s)}remapping(e,n){let r=new eo;return this.items.forEach((i,o)=>{let s=i.mirrorOffset!=null&&o-i.mirrorOffset>=e?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,s)},e,n),r}addMaps(e){return this.eventCount==0?this:new rn(this.items.append(e.map(n=>new Cn(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),o=e.mapping,s=e.steps.length,a=this.eventCount;this.items.forEach(d=>{d.selection&&a--},i);let l=n;this.items.forEach(d=>{let f=o.getMirror(--l);if(f==null)return;s=Math.min(s,f);let p=o.maps[f];if(d.step){let m=e.steps[f].invert(e.docs[f]),g=d.selection&&d.selection.map(o.slice(l+1,f));g&&a++,r.push(new Cn(p,m,g))}else r.push(new Cn(p))},i);let c=[];for(let d=n;dBO&&(h=h.compress(this.items.length-r.length)),h}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,i=[],o=0;return this.items.forEach((s,a)=>{if(a>=e)i.push(s),s.selection&&o++;else if(s.step){let l=s.step.map(n.slice(r)),c=l&&l.getMap();if(r--,c&&n.appendMap(c,r),l){let u=s.selection&&s.selection.map(n.slice(r));u&&o++;let h=new Cn(c.invert(),l,u),d,f=i.length-1;(d=i.length&&i[f].merge(h))?i[f]=d:i.push(h)}}else s.map&&r--},this.items.length,0),new rn($t.from(i.reverse()),o)}}rn.empty=new rn($t.empty,0);function FO(t,e){let n;return t.forEach((r,i)=>{if(r.selection&&e--==0)return n=i,!1}),t.slice(n)}class Cn{constructor(e,n,r,i){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=i}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new Cn(n.getMap().invert(),n,this.selection)}}}class kr{constructor(e,n,r,i,o){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=o}}const LO=20;function DO(t,e,n,r){let i=n.getMeta(Or),o;if(i)return i.historyState;n.getMeta(PO)&&(t=new kr(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(s&&s.getMeta(Or))return s.getMeta(Or).redo?new kr(t.done.addTransform(n,void 0,r,Cl(e)),t.undone,Fg(n.mapping.maps[n.steps.length-1]),t.prevTime,t.prevComposition):new kr(t.done,t.undone.addTransform(n,void 0,r,Cl(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let a=n.getMeta("composition"),l=t.prevTime==0||!s&&t.prevComposition!=a&&(t.prevTime<(n.time||0)-r.newGroupDelay||!RO(n,t.prevRanges)),c=s?qu(t.prevRanges,n.mapping):Fg(n.mapping.maps[n.steps.length-1]);return new kr(t.done.addTransform(n,l?e.selection.getBookmark():void 0,r,Cl(e)),rn.empty,c,n.time,a??t.prevComposition)}else return(o=n.getMeta("rebased"))?new kr(t.done.rebased(n,o),t.undone.rebased(n,o),qu(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new kr(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),qu(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function RO(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,i)=>{for(let o=0;o=e[o]&&(n=!0)}),n}function Fg(t){let e=[];return t.forEach((n,r,i,o)=>e.push(i,o)),e}function qu(t,e){if(!t)return null;let n=[];for(let r=0;r{let n=Or.getState(t);return!n||n.done.eventCount==0?!1:(e&&Xx(n,t,e,!1),!0)},Qx=(t,e)=>{let n=Or.getState(t);return!n||n.undone.eventCount==0?!1:(e&&Xx(n,t,e,!0),!0)};function vo(t,e){return Object.assign(t,{meta:{package:"@milkdown/plugin-history",...e}}),t}const Qd=nt("Undo",()=>()=>Zx);vo(Qd,{displayName:"Command"});const tf=nt("Redo",()=>()=>Qx);vo(tf,{displayName:"Command"});const ef=mn({},"historyProviderConfig");vo(ef,{displayName:"Ctx"});const tb=Bn(t=>$O(t.get(ef.key)));vo(tb,{displayName:"Ctx"});const nf=Oe("historyKeymap",{Undo:{shortcuts:"Mod-z",command:t=>{const e=t.get(gt);return()=>e.call(Qd.key)}},Redo:{shortcuts:["Mod-y","Shift-Mod-z"],command:t=>{const e=t.get(gt);return()=>e.call(tf.key)}}});vo(nf.ctx,{displayName:"KeymapCtx"});vo(nf.shortcuts,{displayName:"Keymap"});const zO=[ef,tb,nf,Qd,tf].flat();function qO(t,e){const{doc:n,selection:r}=t;if(!n||!r||!(r instanceof it||r instanceof ve))return t;const{to:i}=r,o=e.type==="space"?Array(e.size).fill(" ").join(""):" ";return t.insertText(o,i)}const rf=mn({type:"space",size:2},"indentConfig");rf.meta={package:"@milkdown/plugin-indent",displayName:"Ctx"};const eb=Gx(t=>({Tab:(e,n)=>{const r=t.get(rf.key),{tr:i}=e,o=qO(i,r);return o.docChanged?(n?.(o),!0):!1}}));eb.meta={package:"@milkdown/plugin-indent",displayName:"Shortcut"};const jO=[rf,eb];var WO="Expected a function",Dg=NaN,VO="[object Symbol]",HO=/^\s+|\s+$/g,UO=/^[-+]0x[0-9a-f]+$/i,KO=/^0b[01]+$/i,GO=/^0o[0-7]+$/i,YO=parseInt,JO=typeof Na=="object"&&Na&&Na.Object===Object&&Na,XO=typeof self=="object"&&self&&self.Object===Object&&self,ZO=JO||XO||Function("return this")(),QO=Object.prototype,tI=QO.toString,eI=Math.max,nI=Math.min,Wu=function(){return ZO.Date.now()};function rI(t,e,n){var r,i,o,s,a,l,c=0,u=!1,h=!1,d=!0;if(typeof t!="function")throw new TypeError(WO);e=Rg(e)||0,Yh(n)&&(u=!!n.leading,h="maxWait"in n,o=h?eI(Rg(n.maxWait)||0,e):o,d="trailing"in n?!!n.trailing:d);function f(S){var N=r,Z=i;return r=i=void 0,c=S,s=t.apply(Z,N),s}function p(S){return c=S,a=setTimeout(y,e),u?f(S):s}function m(S){var N=S-l,Z=S-c,R=e-N;return h?nI(R,o-Z):R}function g(S){var N=S-l,Z=S-c;return l===void 0||N>=e||N<0||h&&Z>=o}function y(){var S=Wu();if(g(S))return C(S);a=setTimeout(y,m(S))}function C(S){return a=void 0,d&&r?f(S):(r=i=void 0,s)}function T(){a!==void 0&&clearTimeout(a),c=0,r=l=i=a=void 0}function M(){return a===void 0?s:C(Wu())}function I(){var S=Wu(),N=g(S);if(r=arguments,i=this,l=S,N){if(a===void 0)return p(l);if(h)return a=setTimeout(y,e),f(l)}return a===void 0&&(a=setTimeout(y,e)),s}return I.cancel=T,I.flush=M,I}function Yh(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function iI(t){return!!t&&typeof t=="object"}function oI(t){return typeof t=="symbol"||iI(t)&&tI.call(t)==VO}function Rg(t){if(typeof t=="number")return t;if(oI(t))return Dg;if(Yh(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Yh(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(HO,"");var n=KO.test(t);return n||GO.test(t)?YO(t.slice(2),n?2:8):UO.test(t)?Dg:+t}var sI=rI;const aI=y0(sI);let nb=class{constructor(){this.beforeMountedListeners=[],this.mountedListeners=[],this.updatedListeners=[],this.markdownUpdatedListeners=[],this.blurListeners=[],this.focusListeners=[],this.destroyListeners=[],this.beforeMount=e=>(this.beforeMountedListeners.push(e),this),this.mounted=e=>(this.mountedListeners.push(e),this),this.updated=e=>(this.updatedListeners.push(e),this)}get listeners(){return{beforeMount:this.beforeMountedListeners,mounted:this.mountedListeners,updated:this.updatedListeners,markdownUpdated:this.markdownUpdatedListeners,blur:this.blurListeners,focus:this.focusListeners,destroy:this.destroyListeners}}markdownUpdated(e){return this.markdownUpdatedListeners.push(e),this}blur(e){return this.blurListeners.push(e),this}focus(e){return this.focusListeners.push(e),this}destroy(e){return this.destroyListeners.push(e),this}};const Jh=mt(new nb,"listener"),lI=new ie("MILKDOWN_LISTENER"),rb=t=>(t.inject(Jh,new nb),async()=>{await t.wait(di);const e=t.get(Jh),{listeners:n}=e;n.beforeMount.forEach(a=>a(t)),await t.wait(Os);const r=t.get(ao);let i=null,o=null;const s=new me({key:lI,view:()=>({destroy:()=>{n.destroy.forEach(a=>a(t))}}),props:{handleDOMEvents:{focus:()=>(n.focus.forEach(a=>a(t)),!1),blur:()=>(n.blur.forEach(a=>a(t)),!1)}},state:{init:()=>{},apply:a=>!a.docChanged||a.getMeta("addToHistory")===!1?void 0:aI(()=>{const{doc:l}=a;if(n.updated.length>0&&(i==null||!i.eq(l))&&n.updated.forEach(c=>{c(t,l,i)}),n.markdownUpdated.length>0&&(i==null||!i.eq(l))){const c=r(l);n.markdownUpdated.forEach(u=>{u(t,c,o)}),o=c}i=l},200)()}});t.update(dn,a=>a.concat(s)),await t.wait(ml),n.mounted.forEach(a=>a(t))});rb.meta={package:"@milkdown/plugin-listener",displayName:"Listener"};function Fc(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const cI=[["ß","ss"],["ẞ","Ss"],["ä","ae"],["Ä","Ae"],["ö","oe"],["Ö","Oe"],["ü","ue"],["Ü","Ue"],["À","A"],["Á","A"],["Â","A"],["Ã","A"],["Ä","Ae"],["Å","A"],["Æ","AE"],["Ç","C"],["È","E"],["É","E"],["Ê","E"],["Ë","E"],["Ì","I"],["Í","I"],["Î","I"],["Ï","I"],["Ð","D"],["Ñ","N"],["Ò","O"],["Ó","O"],["Ô","O"],["Õ","O"],["Ö","Oe"],["Ő","O"],["Ø","O"],["Ù","U"],["Ú","U"],["Û","U"],["Ü","Ue"],["Ű","U"],["Ý","Y"],["Þ","TH"],["ß","ss"],["à","a"],["á","a"],["â","a"],["ã","a"],["ä","ae"],["å","a"],["æ","ae"],["ç","c"],["è","e"],["é","e"],["ê","e"],["ë","e"],["ì","i"],["í","i"],["î","i"],["ï","i"],["ð","d"],["ñ","n"],["ò","o"],["ó","o"],["ô","o"],["õ","o"],["ö","oe"],["ő","o"],["ø","o"],["ù","u"],["ú","u"],["û","u"],["ü","ue"],["ű","u"],["ý","y"],["þ","th"],["ÿ","y"],["ẞ","SS"],["à","a"],["À","A"],["á","a"],["Á","A"],["â","a"],["Â","A"],["ã","a"],["Ã","A"],["è","e"],["È","E"],["é","e"],["É","E"],["ê","e"],["Ê","E"],["ì","i"],["Ì","I"],["í","i"],["Í","I"],["ò","o"],["Ò","O"],["ó","o"],["Ó","O"],["ô","o"],["Ô","O"],["õ","o"],["Õ","O"],["ù","u"],["Ù","U"],["ú","u"],["Ú","U"],["ý","y"],["Ý","Y"],["ă","a"],["Ă","A"],["Đ","D"],["đ","d"],["ĩ","i"],["Ĩ","I"],["ũ","u"],["Ũ","U"],["ơ","o"],["Ơ","O"],["ư","u"],["Ư","U"],["ạ","a"],["Ạ","A"],["ả","a"],["Ả","A"],["ấ","a"],["Ấ","A"],["ầ","a"],["Ầ","A"],["ẩ","a"],["Ẩ","A"],["ẫ","a"],["Ẫ","A"],["ậ","a"],["Ậ","A"],["ắ","a"],["Ắ","A"],["ằ","a"],["Ằ","A"],["ẳ","a"],["Ẳ","A"],["ẵ","a"],["Ẵ","A"],["ặ","a"],["Ặ","A"],["ẹ","e"],["Ẹ","E"],["ẻ","e"],["Ẻ","E"],["ẽ","e"],["Ẽ","E"],["ế","e"],["Ế","E"],["ề","e"],["Ề","E"],["ể","e"],["Ể","E"],["ễ","e"],["Ễ","E"],["ệ","e"],["Ệ","E"],["ỉ","i"],["Ỉ","I"],["ị","i"],["Ị","I"],["ọ","o"],["Ọ","O"],["ỏ","o"],["Ỏ","O"],["ố","o"],["Ố","O"],["ồ","o"],["Ồ","O"],["ổ","o"],["Ổ","O"],["ỗ","o"],["Ỗ","O"],["ộ","o"],["Ộ","O"],["ớ","o"],["Ớ","O"],["ờ","o"],["Ờ","O"],["ở","o"],["Ở","O"],["ỡ","o"],["Ỡ","O"],["ợ","o"],["Ợ","O"],["ụ","u"],["Ụ","U"],["ủ","u"],["Ủ","U"],["ứ","u"],["Ứ","U"],["ừ","u"],["Ừ","U"],["ử","u"],["Ử","U"],["ữ","u"],["Ữ","U"],["ự","u"],["Ự","U"],["ỳ","y"],["Ỳ","Y"],["ỵ","y"],["Ỵ","Y"],["ỷ","y"],["Ỷ","Y"],["ỹ","y"],["Ỹ","Y"],["ء","e"],["آ","a"],["أ","a"],["ؤ","w"],["إ","i"],["ئ","y"],["ا","a"],["ب","b"],["ة","t"],["ت","t"],["ث","th"],["ج","j"],["ح","h"],["خ","kh"],["د","d"],["ذ","dh"],["ر","r"],["ز","z"],["س","s"],["ش","sh"],["ص","s"],["ض","d"],["ط","t"],["ظ","z"],["ع","e"],["غ","gh"],["ـ","_"],["ف","f"],["ق","q"],["ك","k"],["ل","l"],["م","m"],["ن","n"],["ه","h"],["و","w"],["ى","a"],["ي","y"],["َ‎","a"],["ُ","u"],["ِ‎","i"],["٠","0"],["١","1"],["٢","2"],["٣","3"],["٤","4"],["٥","5"],["٦","6"],["٧","7"],["٨","8"],["٩","9"],["چ","ch"],["ک","k"],["گ","g"],["پ","p"],["ژ","zh"],["ی","y"],["۰","0"],["۱","1"],["۲","2"],["۳","3"],["۴","4"],["۵","5"],["۶","6"],["۷","7"],["۸","8"],["۹","9"],["ټ","p"],["ځ","z"],["څ","c"],["ډ","d"],["ﺫ","d"],["ﺭ","r"],["ړ","r"],["ﺯ","z"],["ږ","g"],["ښ","x"],["ګ","g"],["ڼ","n"],["ۀ","e"],["ې","e"],["ۍ","ai"],["ٹ","t"],["ڈ","d"],["ڑ","r"],["ں","n"],["ہ","h"],["ھ","h"],["ے","e"],["А","A"],["а","a"],["Б","B"],["б","b"],["В","V"],["в","v"],["Г","G"],["г","g"],["Д","D"],["д","d"],["ъе","ye"],["Ъе","Ye"],["ъЕ","yE"],["ЪЕ","YE"],["Е","E"],["е","e"],["Ё","Yo"],["ё","yo"],["Ж","Zh"],["ж","zh"],["З","Z"],["з","z"],["И","I"],["и","i"],["ый","iy"],["Ый","Iy"],["ЫЙ","IY"],["ыЙ","iY"],["Й","Y"],["й","y"],["К","K"],["к","k"],["Л","L"],["л","l"],["М","M"],["м","m"],["Н","N"],["н","n"],["О","O"],["о","o"],["П","P"],["п","p"],["Р","R"],["р","r"],["С","S"],["с","s"],["Т","T"],["т","t"],["У","U"],["у","u"],["Ф","F"],["ф","f"],["Х","Kh"],["х","kh"],["Ц","Ts"],["ц","ts"],["Ч","Ch"],["ч","ch"],["Ш","Sh"],["ш","sh"],["Щ","Sch"],["щ","sch"],["Ъ",""],["ъ",""],["Ы","Y"],["ы","y"],["Ь",""],["ь",""],["Э","E"],["э","e"],["Ю","Yu"],["ю","yu"],["Я","Ya"],["я","ya"],["ă","a"],["Ă","A"],["ș","s"],["Ș","S"],["ț","t"],["Ț","T"],["ţ","t"],["Ţ","T"],["ş","s"],["Ş","S"],["ç","c"],["Ç","C"],["ğ","g"],["Ğ","G"],["ı","i"],["İ","I"],["ա","a"],["Ա","A"],["բ","b"],["Բ","B"],["գ","g"],["Գ","G"],["դ","d"],["Դ","D"],["ե","ye"],["Ե","Ye"],["զ","z"],["Զ","Z"],["է","e"],["Է","E"],["ը","y"],["Ը","Y"],["թ","t"],["Թ","T"],["ժ","zh"],["Ժ","Zh"],["ի","i"],["Ի","I"],["լ","l"],["Լ","L"],["խ","kh"],["Խ","Kh"],["ծ","ts"],["Ծ","Ts"],["կ","k"],["Կ","K"],["հ","h"],["Հ","H"],["ձ","dz"],["Ձ","Dz"],["ղ","gh"],["Ղ","Gh"],["ճ","tch"],["Ճ","Tch"],["մ","m"],["Մ","M"],["յ","y"],["Յ","Y"],["ն","n"],["Ն","N"],["շ","sh"],["Շ","Sh"],["ո","vo"],["Ո","Vo"],["չ","ch"],["Չ","Ch"],["պ","p"],["Պ","P"],["ջ","j"],["Ջ","J"],["ռ","r"],["Ռ","R"],["ս","s"],["Ս","S"],["վ","v"],["Վ","V"],["տ","t"],["Տ","T"],["ր","r"],["Ր","R"],["ց","c"],["Ց","C"],["ու","u"],["ՈՒ","U"],["Ու","U"],["փ","p"],["Փ","P"],["ք","q"],["Ք","Q"],["օ","o"],["Օ","O"],["ֆ","f"],["Ֆ","F"],["և","yev"],["ა","a"],["ბ","b"],["გ","g"],["დ","d"],["ე","e"],["ვ","v"],["ზ","z"],["თ","t"],["ი","i"],["კ","k"],["ლ","l"],["მ","m"],["ნ","n"],["ო","o"],["პ","p"],["ჟ","zh"],["რ","r"],["ს","s"],["ტ","t"],["უ","u"],["ფ","ph"],["ქ","q"],["ღ","gh"],["ყ","k"],["შ","sh"],["ჩ","ch"],["ც","ts"],["ძ","dz"],["წ","ts"],["ჭ","tch"],["ხ","kh"],["ჯ","j"],["ჰ","h"],["č","c"],["ď","d"],["ě","e"],["ň","n"],["ř","r"],["š","s"],["ť","t"],["ů","u"],["ž","z"],["Č","C"],["Ď","D"],["Ě","E"],["Ň","N"],["Ř","R"],["Š","S"],["Ť","T"],["Ů","U"],["Ž","Z"],["ހ","h"],["ށ","sh"],["ނ","n"],["ރ","r"],["ބ","b"],["ޅ","lh"],["ކ","k"],["އ","a"],["ވ","v"],["މ","m"],["ފ","f"],["ދ","dh"],["ތ","th"],["ލ","l"],["ގ","g"],["ޏ","gn"],["ސ","s"],["ޑ","d"],["ޒ","z"],["ޓ","t"],["ޔ","y"],["ޕ","p"],["ޖ","j"],["ޗ","ch"],["ޘ","tt"],["ޙ","hh"],["ޚ","kh"],["ޛ","th"],["ޜ","z"],["ޝ","sh"],["ޞ","s"],["ޟ","d"],["ޠ","t"],["ޡ","z"],["ޢ","a"],["ޣ","gh"],["ޤ","q"],["ޥ","w"],["ަ","a"],["ާ","aa"],["ި","i"],["ީ","ee"],["ު","u"],["ޫ","oo"],["ެ","e"],["ޭ","ey"],["ޮ","o"],["ޯ","oa"],["ް",""],["α","a"],["β","v"],["γ","g"],["δ","d"],["ε","e"],["ζ","z"],["η","i"],["θ","th"],["ι","i"],["κ","k"],["λ","l"],["μ","m"],["ν","n"],["ξ","ks"],["ο","o"],["π","p"],["ρ","r"],["σ","s"],["τ","t"],["υ","y"],["φ","f"],["χ","x"],["ψ","ps"],["ω","o"],["ά","a"],["έ","e"],["ί","i"],["ό","o"],["ύ","y"],["ή","i"],["ώ","o"],["ς","s"],["ϊ","i"],["ΰ","y"],["ϋ","y"],["ΐ","i"],["Α","A"],["Β","B"],["Γ","G"],["Δ","D"],["Ε","E"],["Ζ","Z"],["Η","I"],["Θ","TH"],["Ι","I"],["Κ","K"],["Λ","L"],["Μ","M"],["Ν","N"],["Ξ","KS"],["Ο","O"],["Π","P"],["Ρ","R"],["Σ","S"],["Τ","T"],["Υ","Y"],["Φ","F"],["Χ","X"],["Ψ","PS"],["Ω","O"],["Ά","A"],["Έ","E"],["Ί","I"],["Ό","O"],["Ύ","Y"],["Ή","I"],["Ώ","O"],["Ϊ","I"],["Ϋ","Y"],["ā","a"],["ē","e"],["ģ","g"],["ī","i"],["ķ","k"],["ļ","l"],["ņ","n"],["ū","u"],["Ā","A"],["Ē","E"],["Ģ","G"],["Ī","I"],["Ķ","K"],["Ļ","L"],["Ņ","N"],["Ū","U"],["č","c"],["š","s"],["ž","z"],["Č","C"],["Š","S"],["Ž","Z"],["ą","a"],["č","c"],["ę","e"],["ė","e"],["į","i"],["š","s"],["ų","u"],["ū","u"],["ž","z"],["Ą","A"],["Č","C"],["Ę","E"],["Ė","E"],["Į","I"],["Š","S"],["Ų","U"],["Ū","U"],["Ќ","Kj"],["ќ","kj"],["Љ","Lj"],["љ","lj"],["Њ","Nj"],["њ","nj"],["Тс","Ts"],["тс","ts"],["ą","a"],["ć","c"],["ę","e"],["ł","l"],["ń","n"],["ś","s"],["ź","z"],["ż","z"],["Ą","A"],["Ć","C"],["Ę","E"],["Ł","L"],["Ń","N"],["Ś","S"],["Ź","Z"],["Ż","Z"],["Є","Ye"],["І","I"],["Ї","Yi"],["Ґ","G"],["є","ye"],["і","i"],["ї","yi"],["ґ","g"],["IJ","IJ"],["ij","ij"],["¢","c"],["¥","Y"],["߿","b"],["৳","t"],["૱","Bo"],["฿","B"],["₠","CE"],["₡","C"],["₢","Cr"],["₣","F"],["₥","m"],["₦","N"],["₧","Pt"],["₨","Rs"],["₩","W"],["₫","s"],["€","E"],["₭","K"],["₮","T"],["₯","Dp"],["₰","S"],["₱","P"],["₲","G"],["₳","A"],["₴","S"],["₵","C"],["₶","tt"],["₷","S"],["₸","T"],["₹","R"],["₺","L"],["₽","P"],["₿","B"],["﹩","$"],["¢","c"],["¥","Y"],["₩","W"],["𝐀","A"],["𝐁","B"],["𝐂","C"],["𝐃","D"],["𝐄","E"],["𝐅","F"],["𝐆","G"],["𝐇","H"],["𝐈","I"],["𝐉","J"],["𝐊","K"],["𝐋","L"],["𝐌","M"],["𝐍","N"],["𝐎","O"],["𝐏","P"],["𝐐","Q"],["𝐑","R"],["𝐒","S"],["𝐓","T"],["𝐔","U"],["𝐕","V"],["𝐖","W"],["𝐗","X"],["𝐘","Y"],["𝐙","Z"],["𝐚","a"],["𝐛","b"],["𝐜","c"],["𝐝","d"],["𝐞","e"],["𝐟","f"],["𝐠","g"],["𝐡","h"],["𝐢","i"],["𝐣","j"],["𝐤","k"],["𝐥","l"],["𝐦","m"],["𝐧","n"],["𝐨","o"],["𝐩","p"],["𝐪","q"],["𝐫","r"],["𝐬","s"],["𝐭","t"],["𝐮","u"],["𝐯","v"],["𝐰","w"],["𝐱","x"],["𝐲","y"],["𝐳","z"],["𝐴","A"],["𝐵","B"],["𝐶","C"],["𝐷","D"],["𝐸","E"],["𝐹","F"],["𝐺","G"],["𝐻","H"],["𝐼","I"],["𝐽","J"],["𝐾","K"],["𝐿","L"],["𝑀","M"],["𝑁","N"],["𝑂","O"],["𝑃","P"],["𝑄","Q"],["𝑅","R"],["𝑆","S"],["𝑇","T"],["𝑈","U"],["𝑉","V"],["𝑊","W"],["𝑋","X"],["𝑌","Y"],["𝑍","Z"],["𝑎","a"],["𝑏","b"],["𝑐","c"],["𝑑","d"],["𝑒","e"],["𝑓","f"],["𝑔","g"],["𝑖","i"],["𝑗","j"],["𝑘","k"],["𝑙","l"],["𝑚","m"],["𝑛","n"],["𝑜","o"],["𝑝","p"],["𝑞","q"],["𝑟","r"],["𝑠","s"],["𝑡","t"],["𝑢","u"],["𝑣","v"],["𝑤","w"],["𝑥","x"],["𝑦","y"],["𝑧","z"],["𝑨","A"],["𝑩","B"],["𝑪","C"],["𝑫","D"],["𝑬","E"],["𝑭","F"],["𝑮","G"],["𝑯","H"],["𝑰","I"],["𝑱","J"],["𝑲","K"],["𝑳","L"],["𝑴","M"],["𝑵","N"],["𝑶","O"],["𝑷","P"],["𝑸","Q"],["𝑹","R"],["𝑺","S"],["𝑻","T"],["𝑼","U"],["𝑽","V"],["𝑾","W"],["𝑿","X"],["𝒀","Y"],["𝒁","Z"],["𝒂","a"],["𝒃","b"],["𝒄","c"],["𝒅","d"],["𝒆","e"],["𝒇","f"],["𝒈","g"],["𝒉","h"],["𝒊","i"],["𝒋","j"],["𝒌","k"],["𝒍","l"],["𝒎","m"],["𝒏","n"],["𝒐","o"],["𝒑","p"],["𝒒","q"],["𝒓","r"],["𝒔","s"],["𝒕","t"],["𝒖","u"],["𝒗","v"],["𝒘","w"],["𝒙","x"],["𝒚","y"],["𝒛","z"],["𝒜","A"],["𝒞","C"],["𝒟","D"],["𝒢","g"],["𝒥","J"],["𝒦","K"],["𝒩","N"],["𝒪","O"],["𝒫","P"],["𝒬","Q"],["𝒮","S"],["𝒯","T"],["𝒰","U"],["𝒱","V"],["𝒲","W"],["𝒳","X"],["𝒴","Y"],["𝒵","Z"],["𝒶","a"],["𝒷","b"],["𝒸","c"],["𝒹","d"],["𝒻","f"],["𝒽","h"],["𝒾","i"],["𝒿","j"],["𝓀","h"],["𝓁","l"],["𝓂","m"],["𝓃","n"],["𝓅","p"],["𝓆","q"],["𝓇","r"],["𝓈","s"],["𝓉","t"],["𝓊","u"],["𝓋","v"],["𝓌","w"],["𝓍","x"],["𝓎","y"],["𝓏","z"],["𝓐","A"],["𝓑","B"],["𝓒","C"],["𝓓","D"],["𝓔","E"],["𝓕","F"],["𝓖","G"],["𝓗","H"],["𝓘","I"],["𝓙","J"],["𝓚","K"],["𝓛","L"],["𝓜","M"],["𝓝","N"],["𝓞","O"],["𝓟","P"],["𝓠","Q"],["𝓡","R"],["𝓢","S"],["𝓣","T"],["𝓤","U"],["𝓥","V"],["𝓦","W"],["𝓧","X"],["𝓨","Y"],["𝓩","Z"],["𝓪","a"],["𝓫","b"],["𝓬","c"],["𝓭","d"],["𝓮","e"],["𝓯","f"],["𝓰","g"],["𝓱","h"],["𝓲","i"],["𝓳","j"],["𝓴","k"],["𝓵","l"],["𝓶","m"],["𝓷","n"],["𝓸","o"],["𝓹","p"],["𝓺","q"],["𝓻","r"],["𝓼","s"],["𝓽","t"],["𝓾","u"],["𝓿","v"],["𝔀","w"],["𝔁","x"],["𝔂","y"],["𝔃","z"],["𝔄","A"],["𝔅","B"],["𝔇","D"],["𝔈","E"],["𝔉","F"],["𝔊","G"],["𝔍","J"],["𝔎","K"],["𝔏","L"],["𝔐","M"],["𝔑","N"],["𝔒","O"],["𝔓","P"],["𝔔","Q"],["𝔖","S"],["𝔗","T"],["𝔘","U"],["𝔙","V"],["𝔚","W"],["𝔛","X"],["𝔜","Y"],["𝔞","a"],["𝔟","b"],["𝔠","c"],["𝔡","d"],["𝔢","e"],["𝔣","f"],["𝔤","g"],["𝔥","h"],["𝔦","i"],["𝔧","j"],["𝔨","k"],["𝔩","l"],["𝔪","m"],["𝔫","n"],["𝔬","o"],["𝔭","p"],["𝔮","q"],["𝔯","r"],["𝔰","s"],["𝔱","t"],["𝔲","u"],["𝔳","v"],["𝔴","w"],["𝔵","x"],["𝔶","y"],["𝔷","z"],["𝔸","A"],["𝔹","B"],["𝔻","D"],["𝔼","E"],["𝔽","F"],["𝔾","G"],["𝕀","I"],["𝕁","J"],["𝕂","K"],["𝕃","L"],["𝕄","M"],["𝕆","N"],["𝕊","S"],["𝕋","T"],["𝕌","U"],["𝕍","V"],["𝕎","W"],["𝕏","X"],["𝕐","Y"],["𝕒","a"],["𝕓","b"],["𝕔","c"],["𝕕","d"],["𝕖","e"],["𝕗","f"],["𝕘","g"],["𝕙","h"],["𝕚","i"],["𝕛","j"],["𝕜","k"],["𝕝","l"],["𝕞","m"],["𝕟","n"],["𝕠","o"],["𝕡","p"],["𝕢","q"],["𝕣","r"],["𝕤","s"],["𝕥","t"],["𝕦","u"],["𝕧","v"],["𝕨","w"],["𝕩","x"],["𝕪","y"],["𝕫","z"],["𝕬","A"],["𝕭","B"],["𝕮","C"],["𝕯","D"],["𝕰","E"],["𝕱","F"],["𝕲","G"],["𝕳","H"],["𝕴","I"],["𝕵","J"],["𝕶","K"],["𝕷","L"],["𝕸","M"],["𝕹","N"],["𝕺","O"],["𝕻","P"],["𝕼","Q"],["𝕽","R"],["𝕾","S"],["𝕿","T"],["𝖀","U"],["𝖁","V"],["𝖂","W"],["𝖃","X"],["𝖄","Y"],["𝖅","Z"],["𝖆","a"],["𝖇","b"],["𝖈","c"],["𝖉","d"],["𝖊","e"],["𝖋","f"],["𝖌","g"],["𝖍","h"],["𝖎","i"],["𝖏","j"],["𝖐","k"],["𝖑","l"],["𝖒","m"],["𝖓","n"],["𝖔","o"],["𝖕","p"],["𝖖","q"],["𝖗","r"],["𝖘","s"],["𝖙","t"],["𝖚","u"],["𝖛","v"],["𝖜","w"],["𝖝","x"],["𝖞","y"],["𝖟","z"],["𝖠","A"],["𝖡","B"],["𝖢","C"],["𝖣","D"],["𝖤","E"],["𝖥","F"],["𝖦","G"],["𝖧","H"],["𝖨","I"],["𝖩","J"],["𝖪","K"],["𝖫","L"],["𝖬","M"],["𝖭","N"],["𝖮","O"],["𝖯","P"],["𝖰","Q"],["𝖱","R"],["𝖲","S"],["𝖳","T"],["𝖴","U"],["𝖵","V"],["𝖶","W"],["𝖷","X"],["𝖸","Y"],["𝖹","Z"],["𝖺","a"],["𝖻","b"],["𝖼","c"],["𝖽","d"],["𝖾","e"],["𝖿","f"],["𝗀","g"],["𝗁","h"],["𝗂","i"],["𝗃","j"],["𝗄","k"],["𝗅","l"],["𝗆","m"],["𝗇","n"],["𝗈","o"],["𝗉","p"],["𝗊","q"],["𝗋","r"],["𝗌","s"],["𝗍","t"],["𝗎","u"],["𝗏","v"],["𝗐","w"],["𝗑","x"],["𝗒","y"],["𝗓","z"],["𝗔","A"],["𝗕","B"],["𝗖","C"],["𝗗","D"],["𝗘","E"],["𝗙","F"],["𝗚","G"],["𝗛","H"],["𝗜","I"],["𝗝","J"],["𝗞","K"],["𝗟","L"],["𝗠","M"],["𝗡","N"],["𝗢","O"],["𝗣","P"],["𝗤","Q"],["𝗥","R"],["𝗦","S"],["𝗧","T"],["𝗨","U"],["𝗩","V"],["𝗪","W"],["𝗫","X"],["𝗬","Y"],["𝗭","Z"],["𝗮","a"],["𝗯","b"],["𝗰","c"],["𝗱","d"],["𝗲","e"],["𝗳","f"],["𝗴","g"],["𝗵","h"],["𝗶","i"],["𝗷","j"],["𝗸","k"],["𝗹","l"],["𝗺","m"],["𝗻","n"],["𝗼","o"],["𝗽","p"],["𝗾","q"],["𝗿","r"],["𝘀","s"],["𝘁","t"],["𝘂","u"],["𝘃","v"],["𝘄","w"],["𝘅","x"],["𝘆","y"],["𝘇","z"],["𝘈","A"],["𝘉","B"],["𝘊","C"],["𝘋","D"],["𝘌","E"],["𝘍","F"],["𝘎","G"],["𝘏","H"],["𝘐","I"],["𝘑","J"],["𝘒","K"],["𝘓","L"],["𝘔","M"],["𝘕","N"],["𝘖","O"],["𝘗","P"],["𝘘","Q"],["𝘙","R"],["𝘚","S"],["𝘛","T"],["𝘜","U"],["𝘝","V"],["𝘞","W"],["𝘟","X"],["𝘠","Y"],["𝘡","Z"],["𝘢","a"],["𝘣","b"],["𝘤","c"],["𝘥","d"],["𝘦","e"],["𝘧","f"],["𝘨","g"],["𝘩","h"],["𝘪","i"],["𝘫","j"],["𝘬","k"],["𝘭","l"],["𝘮","m"],["𝘯","n"],["𝘰","o"],["𝘱","p"],["𝘲","q"],["𝘳","r"],["𝘴","s"],["𝘵","t"],["𝘶","u"],["𝘷","v"],["𝘸","w"],["𝘹","x"],["𝘺","y"],["𝘻","z"],["𝘼","A"],["𝘽","B"],["𝘾","C"],["𝘿","D"],["𝙀","E"],["𝙁","F"],["𝙂","G"],["𝙃","H"],["𝙄","I"],["𝙅","J"],["𝙆","K"],["𝙇","L"],["𝙈","M"],["𝙉","N"],["𝙊","O"],["𝙋","P"],["𝙌","Q"],["𝙍","R"],["𝙎","S"],["𝙏","T"],["𝙐","U"],["𝙑","V"],["𝙒","W"],["𝙓","X"],["𝙔","Y"],["𝙕","Z"],["𝙖","a"],["𝙗","b"],["𝙘","c"],["𝙙","d"],["𝙚","e"],["𝙛","f"],["𝙜","g"],["𝙝","h"],["𝙞","i"],["𝙟","j"],["𝙠","k"],["𝙡","l"],["𝙢","m"],["𝙣","n"],["𝙤","o"],["𝙥","p"],["𝙦","q"],["𝙧","r"],["𝙨","s"],["𝙩","t"],["𝙪","u"],["𝙫","v"],["𝙬","w"],["𝙭","x"],["𝙮","y"],["𝙯","z"],["𝙰","A"],["𝙱","B"],["𝙲","C"],["𝙳","D"],["𝙴","E"],["𝙵","F"],["𝙶","G"],["𝙷","H"],["𝙸","I"],["𝙹","J"],["𝙺","K"],["𝙻","L"],["𝙼","M"],["𝙽","N"],["𝙾","O"],["𝙿","P"],["𝚀","Q"],["𝚁","R"],["𝚂","S"],["𝚃","T"],["𝚄","U"],["𝚅","V"],["𝚆","W"],["𝚇","X"],["𝚈","Y"],["𝚉","Z"],["𝚊","a"],["𝚋","b"],["𝚌","c"],["𝚍","d"],["𝚎","e"],["𝚏","f"],["𝚐","g"],["𝚑","h"],["𝚒","i"],["𝚓","j"],["𝚔","k"],["𝚕","l"],["𝚖","m"],["𝚗","n"],["𝚘","o"],["𝚙","p"],["𝚚","q"],["𝚛","r"],["𝚜","s"],["𝚝","t"],["𝚞","u"],["𝚟","v"],["𝚠","w"],["𝚡","x"],["𝚢","y"],["𝚣","z"],["𝚤","l"],["𝚥","j"],["𝛢","A"],["𝛣","B"],["𝛤","G"],["𝛥","D"],["𝛦","E"],["𝛧","Z"],["𝛨","I"],["𝛩","TH"],["𝛪","I"],["𝛫","K"],["𝛬","L"],["𝛭","M"],["𝛮","N"],["𝛯","KS"],["𝛰","O"],["𝛱","P"],["𝛲","R"],["𝛳","TH"],["𝛴","S"],["𝛵","T"],["𝛶","Y"],["𝛷","F"],["𝛸","x"],["𝛹","PS"],["𝛺","O"],["𝛻","D"],["𝛼","a"],["𝛽","b"],["𝛾","g"],["𝛿","d"],["𝜀","e"],["𝜁","z"],["𝜂","i"],["𝜃","th"],["𝜄","i"],["𝜅","k"],["𝜆","l"],["𝜇","m"],["𝜈","n"],["𝜉","ks"],["𝜊","o"],["𝜋","p"],["𝜌","r"],["𝜍","s"],["𝜎","s"],["𝜏","t"],["𝜐","y"],["𝜑","f"],["𝜒","x"],["𝜓","ps"],["𝜔","o"],["𝜕","d"],["𝜖","E"],["𝜗","TH"],["𝜘","K"],["𝜙","f"],["𝜚","r"],["𝜛","p"],["𝜜","A"],["𝜝","V"],["𝜞","G"],["𝜟","D"],["𝜠","E"],["𝜡","Z"],["𝜢","I"],["𝜣","TH"],["𝜤","I"],["𝜥","K"],["𝜦","L"],["𝜧","M"],["𝜨","N"],["𝜩","KS"],["𝜪","O"],["𝜫","P"],["𝜬","S"],["𝜭","TH"],["𝜮","S"],["𝜯","T"],["𝜰","Y"],["𝜱","F"],["𝜲","X"],["𝜳","PS"],["𝜴","O"],["𝜵","D"],["𝜶","a"],["𝜷","v"],["𝜸","g"],["𝜹","d"],["𝜺","e"],["𝜻","z"],["𝜼","i"],["𝜽","th"],["𝜾","i"],["𝜿","k"],["𝝀","l"],["𝝁","m"],["𝝂","n"],["𝝃","ks"],["𝝄","o"],["𝝅","p"],["𝝆","r"],["𝝇","s"],["𝝈","s"],["𝝉","t"],["𝝊","y"],["𝝋","f"],["𝝌","x"],["𝝍","ps"],["𝝎","o"],["𝝏","a"],["𝝐","e"],["𝝑","i"],["𝝒","k"],["𝝓","f"],["𝝔","r"],["𝝕","p"],["𝝖","A"],["𝝗","B"],["𝝘","G"],["𝝙","D"],["𝝚","E"],["𝝛","Z"],["𝝜","I"],["𝝝","TH"],["𝝞","I"],["𝝟","K"],["𝝠","L"],["𝝡","M"],["𝝢","N"],["𝝣","KS"],["𝝤","O"],["𝝥","P"],["𝝦","R"],["𝝧","TH"],["𝝨","S"],["𝝩","T"],["𝝪","Y"],["𝝫","F"],["𝝬","X"],["𝝭","PS"],["𝝮","O"],["𝝯","D"],["𝝰","a"],["𝝱","v"],["𝝲","g"],["𝝳","d"],["𝝴","e"],["𝝵","z"],["𝝶","i"],["𝝷","th"],["𝝸","i"],["𝝹","k"],["𝝺","l"],["𝝻","m"],["𝝼","n"],["𝝽","ks"],["𝝾","o"],["𝝿","p"],["𝞀","r"],["𝞁","s"],["𝞂","s"],["𝞃","t"],["𝞄","y"],["𝞅","f"],["𝞆","x"],["𝞇","ps"],["𝞈","o"],["𝞉","a"],["𝞊","e"],["𝞋","i"],["𝞌","k"],["𝞍","f"],["𝞎","r"],["𝞏","p"],["𝞐","A"],["𝞑","V"],["𝞒","G"],["𝞓","D"],["𝞔","E"],["𝞕","Z"],["𝞖","I"],["𝞗","TH"],["𝞘","I"],["𝞙","K"],["𝞚","L"],["𝞛","M"],["𝞜","N"],["𝞝","KS"],["𝞞","O"],["𝞟","P"],["𝞠","S"],["𝞡","TH"],["𝞢","S"],["𝞣","T"],["𝞤","Y"],["𝞥","F"],["𝞦","X"],["𝞧","PS"],["𝞨","O"],["𝞩","D"],["𝞪","av"],["𝞫","g"],["𝞬","d"],["𝞭","e"],["𝞮","z"],["𝞯","i"],["𝞰","i"],["𝞱","th"],["𝞲","i"],["𝞳","k"],["𝞴","l"],["𝞵","m"],["𝞶","n"],["𝞷","ks"],["𝞸","o"],["𝞹","p"],["𝞺","r"],["𝞻","s"],["𝞼","s"],["𝞽","t"],["𝞾","y"],["𝞿","f"],["𝟀","x"],["𝟁","ps"],["𝟂","o"],["𝟃","a"],["𝟄","e"],["𝟅","i"],["𝟆","k"],["𝟇","f"],["𝟈","r"],["𝟉","p"],["𝟊","F"],["𝟋","f"],["⒜","(a)"],["⒝","(b)"],["⒞","(c)"],["⒟","(d)"],["⒠","(e)"],["⒡","(f)"],["⒢","(g)"],["⒣","(h)"],["⒤","(i)"],["⒥","(j)"],["⒦","(k)"],["⒧","(l)"],["⒨","(m)"],["⒩","(n)"],["⒪","(o)"],["⒫","(p)"],["⒬","(q)"],["⒭","(r)"],["⒮","(s)"],["⒯","(t)"],["⒰","(u)"],["⒱","(v)"],["⒲","(w)"],["⒳","(x)"],["⒴","(y)"],["⒵","(z)"],["Ⓐ","(A)"],["Ⓑ","(B)"],["Ⓒ","(C)"],["Ⓓ","(D)"],["Ⓔ","(E)"],["Ⓕ","(F)"],["Ⓖ","(G)"],["Ⓗ","(H)"],["Ⓘ","(I)"],["Ⓙ","(J)"],["Ⓚ","(K)"],["Ⓛ","(L)"],["Ⓝ","(N)"],["Ⓞ","(O)"],["Ⓟ","(P)"],["Ⓠ","(Q)"],["Ⓡ","(R)"],["Ⓢ","(S)"],["Ⓣ","(T)"],["Ⓤ","(U)"],["Ⓥ","(V)"],["Ⓦ","(W)"],["Ⓧ","(X)"],["Ⓨ","(Y)"],["Ⓩ","(Z)"],["ⓐ","(a)"],["ⓑ","(b)"],["ⓒ","(b)"],["ⓓ","(c)"],["ⓔ","(e)"],["ⓕ","(f)"],["ⓖ","(g)"],["ⓗ","(h)"],["ⓘ","(i)"],["ⓙ","(j)"],["ⓚ","(k)"],["ⓛ","(l)"],["ⓜ","(m)"],["ⓝ","(n)"],["ⓞ","(o)"],["ⓟ","(p)"],["ⓠ","(q)"],["ⓡ","(r)"],["ⓢ","(s)"],["ⓣ","(t)"],["ⓤ","(u)"],["ⓥ","(v)"],["ⓦ","(w)"],["ⓧ","(x)"],["ⓨ","(y)"],["ⓩ","(z)"],["Ċ","C"],["ċ","c"],["Ġ","G"],["ġ","g"],["Ħ","H"],["ħ","h"],["Ż","Z"],["ż","z"],["𝟎","0"],["𝟏","1"],["𝟐","2"],["𝟑","3"],["𝟒","4"],["𝟓","5"],["𝟔","6"],["𝟕","7"],["𝟖","8"],["𝟗","9"],["𝟘","0"],["𝟙","1"],["𝟚","2"],["𝟛","3"],["𝟜","4"],["𝟝","5"],["𝟞","6"],["𝟟","7"],["𝟠","8"],["𝟡","9"],["𝟢","0"],["𝟣","1"],["𝟤","2"],["𝟥","3"],["𝟦","4"],["𝟧","5"],["𝟨","6"],["𝟩","7"],["𝟪","8"],["𝟫","9"],["𝟬","0"],["𝟭","1"],["𝟮","2"],["𝟯","3"],["𝟰","4"],["𝟱","5"],["𝟲","6"],["𝟳","7"],["𝟴","8"],["𝟵","9"],["𝟶","0"],["𝟷","1"],["𝟸","2"],["𝟹","3"],["𝟺","4"],["𝟻","5"],["𝟼","6"],["𝟽","7"],["𝟾","8"],["𝟿","9"],["①","1"],["②","2"],["③","3"],["④","4"],["⑤","5"],["⑥","6"],["⑦","7"],["⑧","8"],["⑨","9"],["⑩","10"],["⑪","11"],["⑫","12"],["⑬","13"],["⑭","14"],["⑮","15"],["⑯","16"],["⑰","17"],["⑱","18"],["⑲","19"],["⑳","20"],["⑴","1"],["⑵","2"],["⑶","3"],["⑷","4"],["⑸","5"],["⑹","6"],["⑺","7"],["⑻","8"],["⑼","9"],["⑽","10"],["⑾","11"],["⑿","12"],["⒀","13"],["⒁","14"],["⒂","15"],["⒃","16"],["⒄","17"],["⒅","18"],["⒆","19"],["⒇","20"],["⒈","1."],["⒉","2."],["⒊","3."],["⒋","4."],["⒌","5."],["⒍","6."],["⒎","7."],["⒏","8."],["⒐","9."],["⒑","10."],["⒒","11."],["⒓","12."],["⒔","13."],["⒕","14."],["⒖","15."],["⒗","16."],["⒘","17."],["⒙","18."],["⒚","19."],["⒛","20."],["⓪","0"],["⓫","11"],["⓬","12"],["⓭","13"],["⓮","14"],["⓯","15"],["⓰","16"],["⓱","17"],["⓲","18"],["⓳","19"],["⓴","20"],["⓵","1"],["⓶","2"],["⓷","3"],["⓸","4"],["⓹","5"],["⓺","6"],["⓻","7"],["⓼","8"],["⓽","9"],["⓾","10"],["⓿","0"],["🙰","&"],["🙱","&"],["🙲","&"],["🙳","&"],["🙴","&"],["🙵","&"],["🙶",'"'],["🙷",'"'],["🙸",'"'],["‽","?!"],["🙹","?!"],["🙺","?!"],["🙻","?!"],["🙼","/"],["🙽","\\"],["🜇","AR"],["🜈","V"],["🜉","V"],["🜆","VR"],["🜅","VF"],["🜩","2"],["🜪","5"],["🝡","f"],["🝢","W"],["🝣","U"],["🝧","V"],["🝨","T"],["🝪","V"],["🝫","MB"],["🝬","VB"],["🝲","3B"],["🝳","3B"],["💯","100"],["🔙","BACK"],["🔚","END"],["🔛","ON!"],["🔜","SOON"],["🔝","TOP"],["🔞","18"],["🔤","abc"],["🔠","ABCD"],["🔡","abcd"],["🔢","1234"],["🔣","T&@%"],["#️⃣","#"],["*️⃣","*"],["0️⃣","0"],["1️⃣","1"],["2️⃣","2"],["3️⃣","3"],["4️⃣","4"],["5️⃣","5"],["6️⃣","6"],["7️⃣","7"],["8️⃣","8"],["9️⃣","9"],["🔟","10"],["🅰️","A"],["🅱️","B"],["🆎","AB"],["🆑","CL"],["🅾️","O"],["🅿","P"],["🆘","SOS"],["🅲","C"],["🅳","D"],["🅴","E"],["🅵","F"],["🅶","G"],["🅷","H"],["🅸","I"],["🅹","J"],["🅺","K"],["🅻","L"],["🅼","M"],["🅽","N"],["🆀","Q"],["🆁","R"],["🆂","S"],["🆃","T"],["🆄","U"],["🆅","V"],["🆆","W"],["🆇","X"],["🆈","Y"],["🆉","Z"]],uI=(t,e)=>{for(const[n,r]of e)t=t.replace(new RegExp(Fc(n),"g"),r);return t};function hI(t,e){if(typeof t!="string")throw new TypeError(`Expected a string, got \`${typeof t}\``);e={customReplacements:[],...e};const n=new Map([...cI,...e.customReplacements]);return t=t.normalize(),t=uI(t,n),t=t.normalize("NFD").replace(/\p{Diacritic}/gu,"").normalize(),t}const dI=[["&"," and "],["🦄"," unicorn "],["♥"," love "]],fI=t=>t.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"),pI=(t,e)=>{const n=Fc(e);return t.replace(new RegExp(`${n}{2,}`,"g"),e).replace(new RegExp(`^${n}|${n}$`,"g"),"")},mI=t=>{let e="a-z\\d";if(e+=t.lowercase?"":"A-Z",t.preserveCharacters.length>0)for(const n of t.preserveCharacters){if(n===t.separator)throw new Error(`The separator character \`${t.separator}\` cannot be included in preserved characters: ${t.preserveCharacters}`);e+=Fc(n)}return new RegExp(`[^${e}]+`,"g")};function gI(t,e){if(typeof t!="string")throw new TypeError(`Expected a string, got \`${typeof t}\``);e={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],...e};const n=e.preserveLeadingUnderscore&&t.startsWith("_"),r=e.preserveTrailingDash&&t.endsWith("-"),i=new Map([...dI,...e.customReplacements]);t=hI(t,{customReplacements:i}),e.decamelize&&(t=fI(t));const o=mI(e);return e.lowercase&&(t=t.toLowerCase()),t=t.replace(/([a-zA-Z\d]+)'([ts])(\s|$)/g,"$1$2$3"),t=t.replace(o,e.separator),t=t.replace(/\\/g,""),e.separator&&(t=pI(t,e.separator)),n&&(t=`_${t}`),r&&(t=`${t}-`),t}function yI(t,e){return function(n,r){let{$from:i,$to:o,node:s}=n.selection;if(s&&s.isBlock||i.depth<2||!i.sameParent(o))return!1;let a=i.node(-1);if(a.type!=t)return!1;if(i.parent.content.size==0&&i.node(-1).childCount==i.indexAfter(-1)){if(i.depth==3||i.node(-3).type!=t||i.index(-2)!=i.node(-2).childCount-1)return!1;if(r){let h=E.empty,d=i.index(-1)?1:i.index(-2)?2:3;for(let y=i.depth-d;y>=i.depth-3;y--)h=E.from(i.node(y).copy(h));let f=i.indexAfter(-1){if(g>-1)return!1;y.isTextblock&&y.content.size==0&&(g=C+1)}),g>-1&&m.setSelection(tt.near(m.doc.resolve(g))),r(m.scrollIntoView())}return!0}let l=o.pos==i.end()?a.contentMatchAt(0).defaultType:null,c=n.tr.delete(i.pos,o.pos),u=l?[e?{type:t,attrs:e}:null,{type:l}]:void 0;return Ts(c.doc,i.pos,2,u)?(r&&r(c.split(i.pos,2,u).scrollIntoView()),!0):!1}}function ib(t){return function(e,n){let{$from:r,$to:i}=e.selection,o=r.blockRange(i,s=>s.childCount>0&&s.firstChild.type==t);return o?n?r.node(o.depth-1).type==t?xI(e,n,t,o):bI(e,n,o):!0:!1}}function xI(t,e,n,r){let i=t.tr,o=r.end,s=r.$to.end(r.depth);om;p--)f-=i.child(p).nodeSize,r.delete(f-1,f+1);let o=r.doc.resolve(n.start),s=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let a=n.startIndex==0,l=n.endIndex==i.childCount,c=o.node(-1),u=o.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?E.empty:E.from(i))))return!1;let h=o.pos,d=h+s.nodeSize;return r.step(new ee(h-(a?1:0),d+(l?1:0),h+1,d-1,new D((a?E.empty:E.from(i.copy(E.empty))).append(l?E.empty:E.from(i.copy(E.empty))),a?0:1,l?0:1),a?0:1)),e(r.scrollIntoView()),!0}function kI(t){return function(e,n){let{$from:r,$to:i}=e.selection,o=r.blockRange(i,c=>c.childCount>0&&c.firstChild.type==t);if(!o)return!1;let s=o.startIndex;if(s==0)return!1;let a=o.parent,l=a.child(s-1);if(l.type!=t)return!1;if(n){let c=l.lastChild&&l.lastChild.type==a.type,u=E.from(c?t.create():null),h=new D(E.from(t.create(null,E.from(a.type.create(null,u)))),c?3:1,0),d=o.start,f=o.end;n(e.tr.step(new ee(d-(c?3:1),f,d,f,h,1,!0)).scrollIntoView())}return!0}}function CI(t){const e=new Map;if(!t||!t.type)throw new Error("mdast-util-definitions expected node");return rr(t,"definition",function(r){const i=Pg(r.identifier);i&&!e.get(i)&&e.set(i,r)}),n;function n(r){const i=Pg(r);return e.get(i)}}function Pg(t){return String(t||"").toUpperCase()}function wI(){return function(t){const e=CI(t);rr(t,function(n,r,i){if(n.type==="definition"&&i!==void 0&&typeof r=="number")return i.children.splice(r,1),[Lh,r];if(n.type==="imageReference"||n.type==="linkReference"){const o=e(n.identifier);if(o&&i&&typeof r=="number")return i.children[r]=n.type==="imageReference"?{type:"image",url:o.url,title:o.title,alt:n.alt}:{type:"link",url:o.url,title:o.title,children:n.children},[Lh,r]}})}}function ob(t,e){var n;if(!(e.childCount>=1&&((n=e.lastChild)==null?void 0:n.type.name)==="hardbreak")){t.next(e.content);return}const r=[];e.content.forEach((i,o,s)=>{s!==e.childCount-1&&r.push(i)}),t.next(E.fromArray(r))}function A(t,e){return Object.assign(t,{meta:{package:"@milkdown/preset-commonmark",...e}}),t}const of=fa("emphasis");A(of,{displayName:"Attr",group:"Emphasis"});const Ao=da("emphasis",t=>({attrs:{marker:{default:t.get(Ns).emphasis||"*"}},parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style",getAttrs:e=>e==="italic"}],toDOM:e=>["em",t.get(of.key)(e)],parseMarkdown:{match:e=>e.type==="emphasis",runner:(e,n,r)=>{e.openMark(r,{marker:n.marker}),e.next(n.children),e.closeMark(r)}},toMarkdown:{match:e=>e.type.name==="emphasis",runner:(e,n)=>{e.withMark(n,"emphasis",void 0,{marker:n.attrs.marker})}}}));A(Ao.mark,{displayName:"MarkSchema",group:"Emphasis"});A(Ao.ctx,{displayName:"MarkSchemaCtx",group:"Emphasis"});const sf=nt("ToggleEmphasis",t=>()=>Ic(Ao.type(t)));A(sf,{displayName:"Command",group:"Emphasis"});const sb=oe(t=>ua(/(?:^|[^*])\*([^*]+)\*$/,Ao.type(t),{updateCaptured:({fullMatch:e,start:n})=>e.startsWith("*")?{}:{fullMatch:e.slice(1),start:n+1}}));A(sb,{displayName:"InputRule|Star",group:"Emphasis"});const ab=oe(t=>ua(/(?:^|[^_])_([^_]+)_$/,Ao.type(t),{updateCaptured:({fullMatch:e,start:n})=>e.startsWith("_")?{}:{fullMatch:e.slice(1),start:n+1}}));A(ab,{displayName:"InputRule|Underscore",group:"Emphasis"});const af=Oe("emphasisKeymap",{ToggleEmphasis:{shortcuts:"Mod-i",command:t=>{const e=t.get(gt);return()=>e.call(sf.key)}}});A(af.ctx,{displayName:"KeymapCtx",group:"Emphasis"});A(af.shortcuts,{displayName:"Keymap",group:"Emphasis"});const lf=fa("strong");A(lf,{displayName:"Attr",group:"Strong"});const pa=da("strong",t=>({attrs:{marker:{default:t.get(Ns).strong||"*"}},parseDOM:[{tag:"b"},{tag:"strong"},{style:"font-style",getAttrs:e=>e==="bold"}],toDOM:e=>["strong",t.get(lf.key)(e)],parseMarkdown:{match:e=>e.type==="strong",runner:(e,n,r)=>{e.openMark(r,{marker:n.marker}),e.next(n.children),e.closeMark(r)}},toMarkdown:{match:e=>e.type.name==="strong",runner:(e,n)=>{e.withMark(n,"strong",void 0,{marker:n.attrs.marker})}}}));A(pa.mark,{displayName:"MarkSchema",group:"Strong"});A(pa.ctx,{displayName:"MarkSchemaCtx",group:"Strong"});const cf=nt("ToggleStrong",t=>()=>Ic(pa.type(t)));A(cf,{displayName:"Command",group:"Strong"});const lb=oe(t=>ua(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/,pa.type(t)));A(lb,{displayName:"InputRule",group:"Strong"});const uf=Oe("strongKeymap",{ToggleBold:{shortcuts:["Mod-b"],command:t=>{const e=t.get(gt);return()=>e.call(cf.key)}}});A(uf.ctx,{displayName:"KeymapCtx",group:"Strong"});A(uf.shortcuts,{displayName:"Keymap",group:"Strong"});const hf=fa("inlineCode");A(hf,{displayName:"Attr",group:"InlineCode"});const Ar=da("inlineCode",t=>({priority:100,code:!0,inclusive:!1,parseDOM:[{tag:"code"}],toDOM:e=>["code",t.get(hf.key)(e)],parseMarkdown:{match:e=>e.type==="inlineCode",runner:(e,n,r)=>{e.openMark(r),e.addText(n.value),e.closeMark(r)}},toMarkdown:{match:e=>e.type.name==="inlineCode",runner:(e,n,r)=>{e.withMark(n,"inlineCode",r.text||"")}}}));A(Ar.mark,{displayName:"MarkSchema",group:"InlineCode"});A(Ar.ctx,{displayName:"MarkSchemaCtx",group:"InlineCode"});const df=nt("ToggleInlineCode",t=>()=>(e,n)=>{const{selection:r,tr:i}=e;if(r.empty)return!1;const{from:o,to:s}=r;return e.doc.rangeHasMark(o,s,Ar.type(t))?(n?.(i.removeMark(o,s,Ar.type(t))),!0):(Object.keys(e.schema.marks).filter(a=>a!==Ar.type.name).map(a=>e.schema.marks[a]).forEach(a=>{i.removeMark(o,s,a)}),n?.(i.addMark(o,s,Ar.type(t).create())),!0)});A(df,{displayName:"Command",group:"InlineCode"});const cb=oe(t=>ua(/(?:\`)([^\`]+)(?:\`)$/,Ar.type(t)));A(cb,{displayName:"InputRule",group:"InlineCode"});const ff=Oe("inlineCodeKeymap",{ToggleInlineCode:{shortcuts:"Mod-e",command:t=>{const e=t.get(gt);return()=>e.call(df.key)}}});A(ff.ctx,{displayName:"KeymapCtx",group:"InlineCode"});A(ff.shortcuts,{displayName:"Keymap",group:"InlineCode"});const pf=fa("link");A(pf,{displayName:"Attr",group:"Link"});const lo=da("link",t=>({attrs:{href:{},title:{default:null}},parseDOM:[{tag:"a[href]",getAttrs:e=>{if(!(e instanceof HTMLElement))throw pn(e);return{href:e.getAttribute("href"),title:e.getAttribute("title")}}}],toDOM:e=>["a",{...t.get(pf.key)(e),...e.attrs}],parseMarkdown:{match:e=>e.type==="link",runner:(e,n,r)=>{const i=n.url,o=n.title;e.openMark(r,{href:i,title:o}),e.next(n.children),e.closeMark(r)}},toMarkdown:{match:e=>e.type.name==="link",runner:(e,n)=>{e.withMark(n,"link",void 0,{title:n.attrs.title,url:n.attrs.href})}}}));A(lo.mark,{displayName:"MarkSchema",group:"Link"});const ub=nt("ToggleLink",t=>(e={})=>Ic(lo.type(t),e));A(ub,{displayName:"Command",group:"Link"});const hb=nt("UpdateLink",t=>(e={})=>(n,r)=>{if(!r)return!1;let i,o=-1;const{selection:s}=n,{from:a,to:l}=s;if(n.doc.nodesBetween(a,a===l?l+1:l,(p,m)=>{if(lo.type(t).isInSet(p.marks))return i=p,o=m,!1}),!i)return!1;const c=i.marks.find(({type:p})=>p===lo.type(t));if(!c)return!1;const u=o,h=o+i.nodeSize,{tr:d}=n,f=lo.type(t).create({...c.attrs,...e});return f?(r(d.removeMark(u,h,c).addMark(u,h,f).setSelection(new it(d.selection.$anchor)).scrollIntoView()),!0):!1});A(hb,{displayName:"Command",group:"Link"});const db=Zd("doc",()=>({content:"block+",parseMarkdown:{match:({type:t})=>t==="root",runner:(t,e,n)=>{t.injectRoot(e,n)}},toMarkdown:{match:t=>t.type.name==="doc",runner:(t,e)=>{t.openNode("root"),t.next(e.content)}}}));A(db,{displayName:"NodeSchema",group:"Doc"});const mf=gn("paragraph");A(mf,{displayName:"Attr",group:"Paragraph"});const or=Dt("paragraph",t=>({content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:e=>["p",t.get(mf.key)(e),0],parseMarkdown:{match:e=>e.type==="paragraph",runner:(e,n,r)=>{e.openNode(r),n.children?e.next(n.children):e.addText(n.value||""),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="paragraph",runner:(e,n)=>{e.openNode("paragraph"),ob(e,n),e.closeNode()}}}));A(or.node,{displayName:"NodeSchema",group:"Paragraph"});A(or.ctx,{displayName:"NodeSchemaCtx",group:"Paragraph"});const gf=nt("TurnIntoText",t=>()=>Ti(or.type(t)));A(gf,{displayName:"Command",group:"Paragraph"});const yf=Oe("paragraphKeymap",{TurnIntoText:{shortcuts:"Mod-Alt-0",command:t=>{const e=t.get(gt);return()=>e.call(gf.key)}}});A(yf.ctx,{displayName:"KeymapCtx",group:"Paragraph"});A(yf.shortcuts,{displayName:"Keymap",group:"Paragraph"});const SI=Array(6).fill(0).map((t,e)=>e+1);function _I(t){return gI(t.textContent)}const Lc=mn(_I,"headingIdGenerator");A(Lc,{displayName:"Ctx",group:"Heading"});const xf=gn("heading");A(xf,{displayName:"Attr",group:"Heading"});const Ni=Dt("heading",t=>{const e=t.get(Lc.key);return{content:"inline*",group:"block",defining:!0,attrs:{id:{default:""},level:{default:1}},parseDOM:SI.map(n=>({tag:`h${n}`,getAttrs:r=>{if(!(r instanceof HTMLElement))throw pn(r);return{level:n,id:r.id}}})),toDOM:n=>[`h${n.attrs.level}`,{...t.get(xf.key)(n),id:n.attrs.id||e(n)},0],parseMarkdown:{match:({type:n})=>n==="heading",runner:(n,r,i)=>{const o=r.depth;n.openNode(i,{level:o}),n.next(r.children),n.closeNode()}},toMarkdown:{match:n=>n.type.name==="heading",runner:(n,r)=>{n.openNode("heading",void 0,{depth:r.attrs.level}),ob(n,r),n.closeNode()}}}});A(Ni.node,{displayName:"NodeSchema",group:"Heading"});A(Ni.ctx,{displayName:"NodeSchemaCtx",group:"Heading"});const fb=oe(t=>bx(/^(?#+)\s$/,Ni.type(t),e=>{var n,r;const i=((r=(n=e.groups)==null?void 0:n.hashes)==null?void 0:r.length)||0,o=t.get(pi),{$from:s}=o.state.selection,a=s.node();if(a.type.name==="heading"){let l=Number(a.attrs.level)+Number(i);return l>6&&(l=6),{level:l}}return{level:i}}));A(fb,{displayName:"InputRule",group:"Heading"});const Cr=nt("WrapInHeading",t=>e=>(e??(e=1),e<1?Ti(or.type(t)):Ti(Ni.type(t),{level:e})));A(Cr,{displayName:"Command",group:"Heading"});const bf=nt("DowngradeHeading",t=>()=>(e,n,r)=>{const{$from:i}=e.selection,o=i.node();if(o.type!==Ni.type(t)||!e.selection.empty||i.parentOffset!==0)return!1;const s=o.attrs.level-1;return s?(n?.(e.tr.setNodeMarkup(e.selection.$from.before(),void 0,{...o.attrs,level:s})),!0):Ti(or.type(t))(e,n,r)});A(bf,{displayName:"Command",group:"Heading"});const kf=Oe("headingKeymap",{TurnIntoH1:{shortcuts:"Mod-Alt-1",command:t=>{const e=t.get(gt);return()=>e.call(Cr.key,1)}},TurnIntoH2:{shortcuts:"Mod-Alt-2",command:t=>{const e=t.get(gt);return()=>e.call(Cr.key,2)}},TurnIntoH3:{shortcuts:"Mod-Alt-3",command:t=>{const e=t.get(gt);return()=>e.call(Cr.key,3)}},TurnIntoH4:{shortcuts:"Mod-Alt-4",command:t=>{const e=t.get(gt);return()=>e.call(Cr.key,4)}},TurnIntoH5:{shortcuts:"Mod-Alt-5",command:t=>{const e=t.get(gt);return()=>e.call(Cr.key,5)}},TurnIntoH6:{shortcuts:"Mod-Alt-6",command:t=>{const e=t.get(gt);return()=>e.call(Cr.key,6)}},DowngradeHeading:{shortcuts:["Delete","Backspace"],command:t=>{const e=t.get(gt);return()=>e.call(bf.key)}}});A(kf.ctx,{displayName:"KeymapCtx",group:"Heading"});A(kf.shortcuts,{displayName:"Keymap",group:"Heading"});const Cf=gn("blockquote");A(Cf,{displayName:"Attr
    ",group:"Blockquote"});const Eo=Dt("blockquote",t=>({content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM:e=>["blockquote",t.get(Cf.key)(e),0],parseMarkdown:{match:({type:e})=>e==="blockquote",runner:(e,n,r)=>{e.openNode(r).next(n.children).closeNode()}},toMarkdown:{match:e=>e.type.name==="blockquote",runner:(e,n)=>{e.openNode("blockquote").next(n.content).closeNode()}}}));A(Eo.node,{displayName:"NodeSchema
    ",group:"Blockquote"});A(Eo.ctx,{displayName:"NodeSchemaCtx
    ",group:"Blockquote"});const pb=oe(t=>Gd(/^\s*>\s$/,Eo.type(t)));A(pb,{displayName:"InputRule",group:"Blockquote"});const wf=nt("WrapInBlockquote",t=>()=>Xd(Eo.type(t)));A(wf,{displayName:"Command",group:"Blockquote"});const Sf=Oe("blockquoteKeymap",{WrapInBlockquote:{shortcuts:"Mod-Shift-b",command:t=>{const e=t.get(gt);return()=>e.call(wf.key)}}});A(Sf.ctx,{displayName:"KeymapCtx
    ",group:"Blockquote"});A(Sf.shortcuts,{displayName:"Keymap
    ",group:"Blockquote"});const _f=gn("codeBlock",()=>({pre:{},code:{}}));A(_f,{displayName:"Attr",group:"CodeBlock"});const Mo=Dt("code_block",t=>({content:"text*",group:"block",marks:"",defining:!0,code:!0,attrs:{language:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:e=>{if(!(e instanceof HTMLElement))throw pn(e);return{language:e.dataset.language}}}],toDOM:e=>{const n=t.get(_f.key)(e);return["pre",{...n.pre,"data-language":e.attrs.language},["code",n.code,0]]},parseMarkdown:{match:({type:e})=>e==="code",runner:(e,n,r)=>{const i=n.lang,o=n.value;e.openNode(r,{language:i}),o&&e.addText(o),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="code_block",runner:(e,n)=>{var r;e.addNode("code",void 0,((r=n.content.firstChild)==null?void 0:r.text)||"",{lang:n.attrs.language})}}}));A(Mo.node,{displayName:"NodeSchema",group:"CodeBlock"});A(Mo.ctx,{displayName:"NodeSchemaCtx",group:"CodeBlock"});const mb=oe(t=>bx(/^```(?[a-z]*)?[\s\n]$/,Mo.type(t),e=>{var n;return{language:((n=e.groups)==null?void 0:n.language)??""}}));A(mb,{displayName:"InputRule",group:"CodeBlock"});const Tf=nt("CreateCodeBlock",t=>(e="")=>Ti(Mo.type(t),{language:e}));A(Tf,{displayName:"Command",group:"CodeBlock"});const TI=nt("UpdateCodeBlockLanguage",()=>({pos:t,language:e}={pos:-1,language:""})=>(n,r)=>t>=0?(r?.(n.tr.setNodeAttribute(t,"language",e)),!0):!1);A(TI,{displayName:"Command",group:"CodeBlock"});const vf=Oe("codeBlockKeymap",{CreateCodeBlock:{shortcuts:"Mod-Alt-c",command:t=>{const e=t.get(gt);return()=>e.call(Tf.key)}}});A(vf.ctx,{displayName:"KeymapCtx",group:"CodeBlock"});A(vf.shortcuts,{displayName:"Keymap",group:"CodeBlock"});const Af=gn("image");A(Af,{displayName:"Attr",group:"Image"});const Oi=Dt("image",t=>({inline:!0,group:"inline",selectable:!0,draggable:!0,marks:"",atom:!0,defining:!0,isolating:!0,attrs:{src:{default:""},alt:{default:""},title:{default:""}},parseDOM:[{tag:"img[src]",getAttrs:e=>{if(!(e instanceof HTMLElement))throw pn(e);return{src:e.getAttribute("src")||"",alt:e.getAttribute("alt")||"",title:e.getAttribute("title")||e.getAttribute("alt")||""}}}],toDOM:e=>["img",{...t.get(Af.key)(e),...e.attrs}],parseMarkdown:{match:({type:e})=>e==="image",runner:(e,n,r)=>{const i=n.url,o=n.alt,s=n.title;e.addNode(r,{src:i,alt:o,title:s})}},toMarkdown:{match:e=>e.type.name==="image",runner:(e,n)=>{e.addNode("image",void 0,void 0,{title:n.attrs.title,url:n.attrs.src,alt:n.attrs.alt})}}}));A(Oi.node,{displayName:"NodeSchema",group:"Image"});A(Oi.ctx,{displayName:"NodeSchemaCtx",group:"Image"});const gb=nt("InsertImage",t=>(e={})=>(n,r)=>{if(!r)return!0;const{src:i="",alt:o="",title:s=""}=e,a=Oi.type(t).create({src:i,alt:o,title:s});return a&&r(n.tr.replaceSelectionWith(a).scrollIntoView()),!0});A(gb,{displayName:"Command",group:"Image"});const yb=nt("UpdateImage",t=>(e={})=>(n,r)=>{const i=UN(n.selection,Oi.type(t));if(!i)return!1;const{node:o,pos:s}=i,a={...o.attrs},{src:l,alt:c,title:u}=e;return l!==void 0&&(a.src=l),c!==void 0&&(a.alt=c),u!==void 0&&(a.title=u),r?.(n.tr.setNodeMarkup(s,void 0,a).scrollIntoView()),!0});A(yb,{displayName:"Command",group:"Image"});const vI=oe(t=>new ge(/!\[(?.*?)]\((?.*?)\s*(?="|\))"?(?[^"]+)?"?\)/,(e,n,r,i)=>{const[o,s,a="",l]=n;return o?e.tr.replaceWith(r,i,Oi.type(t).create({src:a,alt:s,title:l})):null}));A(vI,{displayName:"InputRule<insertImageInputRule>",group:"Image"});const Ef=gn("hardbreak",t=>({"data-is-inline":t.attrs.isInline}));A(Ef,{displayName:"Attr<hardbreak>",group:"Hardbreak"});const mi=Dt("hardbreak",t=>({inline:!0,group:"inline",attrs:{isInline:{default:!1}},selectable:!1,parseDOM:[{tag:"br"}],toDOM:e=>["br",t.get(Ef.key)(e)],parseMarkdown:{match:({type:e})=>e==="break",runner:(e,n,r)=>{var i;e.addNode(r,{isInline:!!((i=n.data)!=null&&i.isInline)})}},leafText:()=>` +`,toMarkdown:{match:e=>e.type.name==="hardbreak",runner:(e,n)=>{n.attrs.isInline?e.addNode("text",void 0,` +`):e.addNode("break")}}}));A(mi.node,{displayName:"NodeSchema<hardbreak>",group:"Hardbreak"});A(mi.ctx,{displayName:"NodeSchemaCtx<hardbreak>",group:"Hardbreak"});const Mf=nt("InsertHardbreak",t=>()=>(e,n)=>{var r;const{selection:i,tr:o}=e;if(!(i instanceof it))return!1;if(i.empty){const s=i.$from.node();if(s.childCount>0&&((r=s.lastChild)==null?void 0:r.type.name)==="hardbreak")return n?.(o.replaceRangeWith(i.to-1,i.to,e.schema.node("paragraph")).setSelection(tt.near(o.doc.resolve(i.to))).scrollIntoView()),!0}return n?.(o.setMeta("hardbreak",!0).replaceSelectionWith(mi.type(t).create()).scrollIntoView()),!0});A(Mf,{displayName:"Command<insertHardbreakCommand>",group:"Hardbreak"});const Nf=Oe("hardbreakKeymap",{InsertHardbreak:{shortcuts:"Shift-Enter",command:t=>{const e=t.get(gt);return()=>e.call(Mf.key)}}});A(Nf.ctx,{displayName:"KeymapCtx<hardbreak>",group:"Hardbreak"});A(Nf.shortcuts,{displayName:"Keymap<hardbreak>",group:"Hardbreak"});const Of=gn("hr");A(Of,{displayName:"Attr<hr>",group:"Hr"});const ma=Dt("hr",t=>({group:"block",parseDOM:[{tag:"hr"}],toDOM:e=>["hr",t.get(Of.key)(e)],parseMarkdown:{match:({type:e})=>e==="thematicBreak",runner:(e,n,r)=>{e.addNode(r)}},toMarkdown:{match:e=>e.type.name==="hr",runner:e=>{e.addNode("thematicBreak")}}}));A(ma.node,{displayName:"NodeSchema<hr>",group:"Hr"});A(ma.ctx,{displayName:"NodeSchemaCtx<hr>",group:"Hr"});const xb=oe(t=>new ge(/^(?:---|___\s|\*\*\*\s)$/,(e,n,r,i)=>{const{tr:o}=e;return n[0]&&o.replaceWith(r-1,i,ma.type(t).create()),o}));A(xb,{displayName:"InputRule<insertHrInputRule>",group:"Hr"});const bb=nt("InsertHr",t=>()=>(e,n)=>{if(!n)return!0;const r=or.node.type(t).create(),{tr:i,selection:o}=e,{from:s}=o,a=ma.type(t).create();if(!a)return!0;const l=i.replaceSelectionWith(a).insert(s,r),c=tt.findFrom(l.doc.resolve(s),1,!0);return c&&n(l.setSelection(c).scrollIntoView()),!0});A(bb,{displayName:"Command<insertHrCommand>",group:"Hr"});const If=gn("bulletList");A(If,{displayName:"Attr<bulletList>",group:"BulletList"});const No=Dt("bullet_list",t=>({content:"listItem+",group:"block",attrs:{spread:{default:!1}},parseDOM:[{tag:"ul",getAttrs:e=>{if(!(e instanceof HTMLElement))throw pn(e);return{spread:e.dataset.spread}}}],toDOM:e=>["ul",{...t.get(If.key)(e),"data-spread":e.attrs.spread},0],parseMarkdown:{match:({type:e,ordered:n})=>e==="list"&&!n,runner:(e,n,r)=>{const i=n.spread!=null?`${n.spread}`:"false";e.openNode(r,{spread:i}).next(n.children).closeNode()}},toMarkdown:{match:e=>e.type.name==="bullet_list",runner:(e,n)=>{e.openNode("list",void 0,{ordered:!1,spread:n.attrs.spread==="true"}).next(n.content).closeNode()}}}));A(No.node,{displayName:"NodeSchema<bulletList>",group:"BulletList"});A(No.ctx,{displayName:"NodeSchemaCtx<bulletList>",group:"BulletList"});const kb=oe(t=>Gd(/^\s*([-+*])\s$/,No.type(t)));A(kb,{displayName:"InputRule<wrapInBulletListInputRule>",group:"BulletList"});const Bf=nt("WrapInBulletList",t=>()=>Xd(No.type(t)));A(Bf,{displayName:"Command<wrapInBulletListCommand>",group:"BulletList"});const Ff=Oe("bulletListKeymap",{WrapInBulletList:{shortcuts:"Mod-Alt-8",command:t=>{const e=t.get(gt);return()=>e.call(Bf.key)}}});A(Ff.ctx,{displayName:"KeymapCtx<bulletListKeymap>",group:"BulletList"});A(Ff.shortcuts,{displayName:"Keymap<bulletListKeymap>",group:"BulletList"});const Lf=gn("orderedList");A(Lf,{displayName:"Attr<orderedList>",group:"OrderedList"});const Oo=Dt("ordered_list",t=>({content:"listItem+",group:"block",attrs:{order:{default:1},spread:{default:!1}},parseDOM:[{tag:"ol",getAttrs:e=>{if(!(e instanceof HTMLElement))throw pn(e);return{spread:e.dataset.spread,order:e.hasAttribute("start")?Number(e.getAttribute("start")):1}}}],toDOM:e=>["ol",{...t.get(Lf.key)(e),...e.attrs.order===1?{}:e.attrs.order,"data-spread":e.attrs.spread},0],parseMarkdown:{match:({type:e,ordered:n})=>e==="list"&&!!n,runner:(e,n,r)=>{const i=n.spread!=null?`${n.spread}`:"true";e.openNode(r,{spread:i}).next(n.children).closeNode()}},toMarkdown:{match:e=>e.type.name==="ordered_list",runner:(e,n)=>{e.openNode("list",void 0,{ordered:!0,start:1,spread:n.attrs.spread==="true"}),e.next(n.content),e.closeNode()}}}));A(Oo.node,{displayName:"NodeSchema<orderedList>",group:"OrderedList"});A(Oo.ctx,{displayName:"NodeSchemaCtx<orderedList>",group:"OrderedList"});const Cb=oe(t=>Gd(/^\s*(\d+)\.\s$/,Oo.type(t),e=>({order:Number(e[1])}),(e,n)=>n.childCount+n.attrs.order===Number(e[1])));A(Cb,{displayName:"InputRule<wrapInOrderedListInputRule>",group:"OrderedList"});const Df=nt("WrapInOrderedList",t=>()=>Xd(Oo.type(t)));A(Df,{displayName:"Command<wrapInOrderedListCommand>",group:"OrderedList"});const Rf=Oe("orderedListKeymap",{WrapInOrderedList:{shortcuts:"Mod-Alt-7",command:t=>{const e=t.get(gt);return()=>e.call(Df.key)}}});A(Rf.ctx,{displayName:"KeymapCtx<orderedList>",group:"OrderedList"});A(Rf.shortcuts,{displayName:"Keymap<orderedList>",group:"OrderedList"});const Pf=gn("listItem");A(Pf,{displayName:"Attr<listItem>",group:"ListItem"});const Nn=Dt("list_item",t=>({group:"listItem",content:"paragraph block*",attrs:{label:{default:"•"},listType:{default:"bullet"},spread:{default:"true"}},defining:!0,parseDOM:[{tag:"li",getAttrs:e=>{if(!(e instanceof HTMLElement))throw pn(e);return{label:e.dataset.label,listType:e.dataset["list-type"],spread:e.dataset.spread}}}],toDOM:e=>["li",{...t.get(Pf.key)(e),"data-label":e.attrs.label,"data-list-type":e.attrs.listType,"data-spread":e.attrs.spread},0],parseMarkdown:{match:({type:e})=>e==="listItem",runner:(e,n,r)=>{const i=n.label!=null?`${n.label}.`:"•",o=n.label!=null?"ordered":"bullet",s=n.spread!=null?`${n.spread}`:"true";e.openNode(r,{label:i,listType:o,spread:s}),e.next(n.children),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="list_item",runner:(e,n)=>{e.openNode("listItem",void 0,{spread:n.attrs.spread==="true"}),e.next(n.content),e.closeNode()}}}));A(Nn.node,{displayName:"NodeSchema<listItem>",group:"ListItem"});A(Nn.ctx,{displayName:"NodeSchemaCtx<listItem>",group:"ListItem"});const $f=nt("SinkListItem",t=>()=>kI(Nn.type(t)));A($f,{displayName:"Command<sinkListItemCommand>",group:"ListItem"});const zf=nt("SplitListItem",t=>()=>ib(Nn.type(t)));A(zf,{displayName:"Command<liftListItemCommand>",group:"ListItem"});const qf=nt("SplitListItem",t=>()=>yI(Nn.type(t)));A(qf,{displayName:"Command<splitListItemCommand>",group:"ListItem"});function AI(t){return(e,n,r)=>{const{selection:i}=e;if(!(i instanceof it))return!1;const{empty:o,$from:s}=i;if(!o||s.parentOffset!==0)return!1;const a=s.node(-1);return a.type!==Nn.type(t)||a.firstChild!==s.node()||s.node(-2).childCount>1?!1:ib(Nn.type(t))(e,n,r)}}const jf=nt("LiftFirstListItem",t=>()=>AI(t));A(jf,{displayName:"Command<liftFirstListItemCommand>",group:"ListItem"});const Wf=Oe("listItemKeymap",{NextListItem:{shortcuts:"Enter",command:t=>{const e=t.get(gt);return()=>e.call(qf.key)}},SinkListItem:{shortcuts:["Tab","Mod-]"],command:t=>{const e=t.get(gt);return()=>e.call($f.key)}},LiftListItem:{shortcuts:["Shift-Tab","Mod-["],command:t=>{const e=t.get(gt);return()=>e.call(zf.key)}},LiftFirstListItem:{shortcuts:["Backspace","Delete"],command:t=>{const e=t.get(gt);return()=>e.call(jf.key)}}});A(Wf.ctx,{displayName:"KeymapCtx<listItem>",group:"ListItem"});A(Wf.shortcuts,{displayName:"Keymap<listItem>",group:"ListItem"});const wb=Zd("text",()=>({group:"inline",parseMarkdown:{match:({type:t})=>t==="text",runner:(t,e)=>{t.addText(e.value)}},toMarkdown:{match:t=>t.type.name==="text",runner:(t,e)=>{t.addNode("text",void 0,e.text)}}}));A(wb,{displayName:"NodeSchema<text>",group:"Text"});const Vf=gn("html");A(Vf,{displayName:"Attr<html>",group:"Html"});const Hf=Dt("html",t=>({atom:!0,group:"inline",inline:!0,attrs:{value:{default:""}},toDOM:e=>{const n=document.createElement("span"),r={...t.get(Vf.key)(e),"data-value":e.attrs.value,"data-type":"html"};return n.textContent=e.attrs.value,["span",r,e.attrs.value]},parseDOM:[{tag:'span[data-type="html"]',getAttrs:e=>({value:e.dataset.value??""})}],parseMarkdown:{match:({type:e})=>e==="html",runner:(e,n,r)=>{e.addNode(r,{value:n.value})}},toMarkdown:{match:e=>e.type.name==="html",runner:(e,n)=>{e.addNode("html",void 0,n.attrs.value)}}}));A(Hf.node,{displayName:"NodeSchema<html>",group:"Html"});A(Hf.ctx,{displayName:"NodeSchemaCtx<html>",group:"Html"});const EI=[db,mf,or,Lc,xf,Ni,Ef,mi,Cf,Eo,_f,Mo,Of,ma,Af,Oi,If,No,Lf,Oo,Pf,Nn,of,Ao,lf,pa,hf,Ar,pf,lo,Vf,Hf,wb].flat(),MI=[pb,kb,Cb,mb,xb,fb].flat(),NI=[sb,ab,cb,lb],OI=[gf,wf,Cr,bf,Tf,Mf,bb,gb,yb,Df,Bf,$f,qf,zf,jf,sf,df,cf,ub,hb],II=[Sf,vf,Nf,kf,Wf,Rf,Ff,yf,af,ff,uf].flat(),Uf=ir("remarkAddOrderInList",()=>()=>t=>{rr(t,"list",e=>{if(e.ordered){const n=e.start??1;e.children.forEach((r,i)=>{r.label=i+n})}})});A(Uf.plugin,{displayName:"Remark<remarkAddOrderInListPlugin>",group:"Remark"});A(Uf.options,{displayName:"RemarkConfig<remarkAddOrderInListPlugin>",group:"Remark"});const Kf=ir("remarkLineBreak",()=>()=>t=>{const e=/[\t ]*(?:\r?\n|\r)/g;rr(t,"text",(n,r,i)=>{if(!n.value||typeof n.value!="string")return;const o=[];let s=0;e.lastIndex=0;let a=e.exec(n.value);for(;a;){const l=a.index;s!==l&&o.push({type:"text",value:n.value.slice(s,l)}),o.push({type:"break",data:{isInline:!0}}),s=l+a[0].length,a=e.exec(n.value)}if(o.length>0&&i&&typeof r=="number")return s<n.value.length&&o.push({type:"text",value:n.value.slice(s)}),i.children.splice(r,1,...o),r+o.length})});A(Kf.plugin,{displayName:"Remark<remarkLineBreak>",group:"Remark"});A(Kf.options,{displayName:"RemarkConfig<remarkLineBreak>",group:"Remark"});const Gf=ir("remarkInlineLink",()=>wI);A(Gf.plugin,{displayName:"Remark<remarkInlineLinkPlugin>",group:"Remark"});A(Gf.options,{displayName:"RemarkConfig<remarkInlineLinkPlugin>",group:"Remark"});const BI=t=>!!t.children,FI=t=>t.type==="html";function LI(t,e){return n(t,0,null)[0];function n(r,i,o){if(BI(r)){const s=[];for(let a=0,l=r.children.length;a<l;a++){const c=r.children[a];if(c){const u=n(c,a,r);if(u)for(let h=0,d=u.length;h<d;h++){const f=u[h];f&&s.push(f)}}}r.children=s}return e(r,i,o)}}const Yf=ir("remarkHTMLTransformer",()=>()=>t=>{LI(t,(e,n,r)=>FI(e)?(r?.type==="root"&&(e.children=[{...e}],delete e.value,e.type="paragraph"),[e]):[e])});A(Yf.plugin,{displayName:"Remark<remarkHtmlTransformer>",group:"Remark"});A(Yf.options,{displayName:"RemarkConfig<remarkHtmlTransformer>",group:"Remark"});const Jf=ir("remarkMarker",()=>()=>(t,e)=>{const n=r=>e.value.charAt(r.position.start.offset);rr(t,r=>["strong","emphasis"].includes(r.type),r=>{r.marker=n(r)})});A(Jf.plugin,{displayName:"Remark<remarkMarker>",group:"Remark"});A(Jf.options,{displayName:"RemarkConfig<remarkMarker>",group:"Remark"});const Sb=Bn(()=>{let t=!1;const e=new ie("MILKDOWN_INLINE_NODES_CURSOR"),n=new me({key:e,state:{init(){return!1},apply(r){if(!r.selection.empty)return!1;const i=r.selection.$from,o=i.nodeBefore,s=i.nodeAfter;return!!(o&&s&&o.isInline&&!o.isText&&s.isInline&&!s.isText)}},props:{handleDOMEvents:{compositionend:(r,i)=>t?(t=!1,requestAnimationFrame(()=>{if(n.getState(r.state)){const o=r.state.selection.from;i.preventDefault(),r.dispatch(r.state.tr.insertText(i.data||"",o))}}),!0):!1,compositionstart:r=>(n.getState(r.state)&&(t=!0),!1),beforeinput:(r,i)=>{if(n.getState(r.state)&&i instanceof InputEvent&&i.data&&!t){const o=r.state.selection.from;return i.preventDefault(),r.dispatch(r.state.tr.insertText(i.data||"",o)),!0}return!1}},decorations(r){if(n.getState(r)){const i=r.selection.$from.pos,o=document.createElement("span"),s=te.widget(i,o,{side:-1}),a=document.createElement("span"),l=te.widget(i,a);return setTimeout(()=>{o.contentEditable="true",a.contentEditable="true"}),Et.create(r.doc,[s,l])}return Et.empty}}});return n});A(Sb,{displayName:"Prose<inlineNodesCursorPlugin>",group:"Prose"});const _b=Bn(t=>new me({key:new ie("MILKDOWN_HARDBREAK_MARKS"),appendTransaction:(e,n,r)=>{if(!e.length)return;const[i]=e;if(!i)return;const[o]=i.steps;if(i.getMeta("hardbreak")){if(!(o instanceof Vt))return;const{from:s}=o;return r.tr.setNodeMarkup(s,mi.type(t),void 0,[])}if(o instanceof Qn){let s=r.tr;const{from:a,to:l}=o;return r.doc.nodesBetween(a,l,(c,u)=>{c.type===mi.type(t)&&(s=s.setNodeMarkup(u,mi.type(t),void 0,[]))}),s}}}));A(_b,{displayName:"Prose<hardbreakClearMarkPlugin>",group:"Prose"});const Xf=mn(["table","code_block"],"hardbreakFilterNodes");A(Xf,{displayName:"Ctx<hardbreakFilterNodes>",group:"Prose"});const Tb=Bn(t=>{const e=t.get(Xf.key);return new me({key:new ie("MILKDOWN_HARDBREAK_FILTER"),filterTransaction:(n,r)=>{const i=n.getMeta("hardbreak"),[o]=n.steps;if(i&&o){const{from:s}=o,a=r.doc.resolve(s);let l=a.depth,c=!0;for(;l>0;)e.includes(a.node(l).type.name)&&(c=!1),l--;return c}return!0}})});A(Tb,{displayName:"Prose<hardbreakFilterPlugin>",group:"Prose"});const vb=Bn(t=>{const e=new ie("MILKDOWN_HEADING_ID"),n=r=>{if(r.composing||!r.editable)return;const i=t.get(Lc.key),o=r.state.tr.setMeta("addToHistory",!1);let s=!1;r.state.doc.descendants((a,l)=>{if(a.type===Ni.type(t)){if(a.textContent.trim().length===0)return;const c=a.attrs,u=i(a);c.id!==u&&(s=!0,o.setMeta(e,!0).setNodeMarkup(l,void 0,{...c,id:u}))}}),s&&r.dispatch(o)};return new me({key:e,view:r=>(n(r),{update:i=>{n(i)}})})});A(vb,{displayName:"Prose<syncHeadingIdPlugin>",group:"Prose"});const Ab=Bn(t=>{const e=n=>{if(n.composing||!n.editable)return;const r=Oo.type(t),i=No.type(t),o=Nn.type(t),s=n.state,a=(u,h)=>{let d=!1;const f=`${h+1}.`;return u.label!==f&&(u.label=f,d=!0),d};let l=s.tr,c=!1;s.doc.descendants((u,h,d,f)=>{if(u.type===i){const p=u.maybeChild(0);p?.type===o&&p.attrs.listType==="ordered"&&(c=!0,l.setNodeMarkup(h,r,{spread:"true"}),u.descendants((m,g,y,C)=>{if(m.type===o){const T={...m.attrs};a(T,C)&&(l=l.setNodeMarkup(g,void 0,T))}return!1}))}else if(u.type===o&&d?.type===r){const p={...u.attrs};let m=!1;p.listType!=="ordered"&&(p.listType="ordered",m=!0),d?.maybeChild(0)&&(m=a(p,f)),m&&(l=l.setNodeMarkup(h,void 0,p),c=!0)}}),c&&n.dispatch(l.setMeta("addToHistory",!1))};return new me({key:new ie("MILKDOWN_KEEP_LIST_ORDER"),view:n=>(e(n),{update:r=>{e(r)}})})});A(Ab,{displayName:"Prose<syncListOrderPlugin>",group:"Prose"});const DI=[_b,Xf,Tb,Sb,Uf,Gf,Kf,Yf,Jf,vb,Ab].flat(),RI=[EI,MI,NI,OI,II,DI].flat();var Xh,Zh;if(typeof WeakMap<"u"){let t=new WeakMap;Xh=e=>t.get(e),Zh=(e,n)=>(t.set(e,n),n)}else{const t=[];let n=0;Xh=r=>{for(let i=0;i<t.length;i+=2)if(t[i]==r)return t[i+1]},Zh=(r,i)=>(n==10&&(n=0),t[n++]=r,t[n++]=i)}var xt=class{constructor(t,e,n,r){this.width=t,this.height=e,this.map=n,this.problems=r}findCell(t){for(let e=0;e<this.map.length;e++){const n=this.map[e];if(n!=t)continue;const r=e%this.width,i=e/this.width|0;let o=r+1,s=i+1;for(let a=1;o<this.width&&this.map[e+a]==n;a++)o++;for(let a=1;s<this.height&&this.map[e+this.width*a]==n;a++)s++;return{left:r,top:i,right:o,bottom:s}}throw new RangeError(`No cell with offset ${t} found`)}colCount(t){for(let e=0;e<this.map.length;e++)if(this.map[e]==t)return e%this.width;throw new RangeError(`No cell with offset ${t} found`)}nextCell(t,e,n){const{left:r,right:i,top:o,bottom:s}=this.findCell(t);return e=="horiz"?(n<0?r==0:i==this.width)?null:this.map[o*this.width+(n<0?r-1:i)]:(n<0?o==0:s==this.height)?null:this.map[r+this.width*(n<0?o-1:s)]}rectBetween(t,e){const{left:n,right:r,top:i,bottom:o}=this.findCell(t),{left:s,right:a,top:l,bottom:c}=this.findCell(e);return{left:Math.min(n,s),top:Math.min(i,l),right:Math.max(r,a),bottom:Math.max(o,c)}}cellsInRect(t){const e=[],n={};for(let r=t.top;r<t.bottom;r++)for(let i=t.left;i<t.right;i++){const o=r*this.width+i,s=this.map[o];n[s]||(n[s]=!0,!(i==t.left&&i&&this.map[o-1]==s||r==t.top&&r&&this.map[o-this.width]==s)&&e.push(s))}return e}positionAt(t,e,n){for(let r=0,i=0;;r++){const o=i+n.child(r).nodeSize;if(r==t){let s=e+t*this.width;const a=(t+1)*this.width;for(;s<a&&this.map[s]<i;)s++;return s==a?o-1:this.map[s]}i=o}}static get(t){return Xh(t)||Zh(t,PI(t))}};function PI(t){if(t.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+t.type.name);const e=$I(t),n=t.childCount,r=[];let i=0,o=null;const s=[];for(let c=0,u=e*n;c<u;c++)r[c]=0;for(let c=0,u=0;c<n;c++){const h=t.child(c);u++;for(let p=0;;p++){for(;i<r.length&&r[i]!=0;)i++;if(p==h.childCount)break;const m=h.child(p),{colspan:g,rowspan:y,colwidth:C}=m.attrs;for(let T=0;T<y;T++){if(T+c>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:u,n:y-T});break}const M=i+T*e;for(let I=0;I<g;I++){r[M+I]==0?r[M+I]=u:(o||(o=[])).push({type:"collision",row:c,pos:u,n:g-I});const S=C&&C[I];if(S){const N=(M+I)%e*2,Z=s[N];Z==null||Z!=S&&s[N+1]==1?(s[N]=S,s[N+1]=1):Z==S&&s[N+1]++}}}i+=g,u+=m.nodeSize}const d=(c+1)*e;let f=0;for(;i<d;)r[i++]==0&&f++;f&&(o||(o=[])).push({type:"missing",row:c,n:f}),u++}const a=new xt(e,n,r,o);let l=!1;for(let c=0;!l&&c<s.length;c+=2)s[c]!=null&&s[c+1]<n&&(l=!0);return l&&zI(a,s,t),a}function $I(t){let e=-1,n=!1;for(let r=0;r<t.childCount;r++){const i=t.child(r);let o=0;if(n)for(let s=0;s<r;s++){const a=t.child(s);for(let l=0;l<a.childCount;l++){const c=a.child(l);s+c.attrs.rowspan>r&&(o+=c.attrs.colspan)}}for(let s=0;s<i.childCount;s++){const a=i.child(s);o+=a.attrs.colspan,a.attrs.rowspan>1&&(n=!0)}e==-1?e=o:e!=o&&(e=Math.max(e,o))}return e}function zI(t,e,n){t.problems||(t.problems=[]);const r={};for(let i=0;i<t.map.length;i++){const o=t.map[i];if(r[o])continue;r[o]=!0;const s=n.nodeAt(o);if(!s)throw new RangeError(`No cell with offset ${o} found`);let a=null;const l=s.attrs;for(let c=0;c<l.colspan;c++){const u=(i+c)%t.width,h=e[u*2];h!=null&&(!l.colwidth||l.colwidth[c]!=h)&&((a||(a=qI(l)))[c]=h)}a&&t.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:a})}}function qI(t){if(t.colwidth)return t.colwidth.slice();const e=[];for(let n=0;n<t.colspan;n++)e.push(0);return e}function $g(t,e){if(typeof t=="string")return{};const n=t.getAttribute("data-colwidth"),r=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map(s=>Number(s)):null,i=Number(t.getAttribute("colspan")||1),o={colspan:i,rowspan:Number(t.getAttribute("rowspan")||1),colwidth:r&&r.length==i?r:null};for(const s in e){const a=e[s].getFromDOM,l=a&&a(t);l!=null&&(o[s]=l)}return o}function zg(t,e){const n={};t.attrs.colspan!=1&&(n.colspan=t.attrs.colspan),t.attrs.rowspan!=1&&(n.rowspan=t.attrs.rowspan),t.attrs.colwidth&&(n["data-colwidth"]=t.attrs.colwidth.join(","));for(const r in e){const i=e[r].setDOMAttr;i&&i(t.attrs[r],n)}return n}function jI(t){const e=t.cellAttributes||{},n={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(const r in e)n[r]={default:e[r].default};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:t.tableGroup,parseDOM:[{tag:"table"}],toDOM(){return["table",["tbody",0]]}},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM(){return["tr",0]}},table_cell:{content:t.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:r=>$g(r,e)}],toDOM(r){return["td",zg(r,e),0]}},table_header:{content:t.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:r=>$g(r,e)}],toDOM(r){return["th",zg(r,e),0]}}}}function Ke(t){let e=t.cached.tableNodeTypes;if(!e){e=t.cached.tableNodeTypes={};for(const n in t.nodes){const r=t.nodes[n],i=r.spec.tableRole;i&&(e[i]=r)}}return e}var _r=new ie("selectingCells");function ga(t){for(let e=t.depth-1;e>0;e--)if(t.node(e).type.spec.tableRole=="row")return t.node(0).resolve(t.before(e+1));return null}function Ee(t){const e=t.selection.$head;for(let n=e.depth;n>0;n--)if(e.node(n).type.spec.tableRole=="row")return!0;return!1}function Dc(t){const e=t.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&e.node.type.spec.tableRole=="cell")return e.$anchor;const n=ga(e.$head)||WI(e.$head);if(n)return n;throw new RangeError(`No cell found around position ${e.head}`)}function WI(t){for(let e=t.nodeAfter,n=t.pos;e;e=e.firstChild,n++){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n)}for(let e=t.nodeBefore,n=t.pos;e;e=e.lastChild,n--){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n-e.nodeSize)}}function Qh(t){return t.parent.type.spec.tableRole=="row"&&!!t.nodeAfter}function VI(t){return t.node(0).resolve(t.pos+t.nodeAfter.nodeSize)}function Zf(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function Eb(t,e,n){const r=t.node(-1),i=xt.get(r),o=t.start(-1),s=i.nextCell(t.pos-o,e,n);return s==null?null:t.node(0).resolve(o+s)}function vi(t,e,n=1){const r={...t,colspan:t.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(e,n),r.colwidth.some(i=>i>0)||(r.colwidth=null)),r}function HI(t,e,n=1){const r={...t,colspan:t.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let i=0;i<n;i++)r.colwidth.splice(e,0,0)}return r}function UI(t,e,n){const r=Ke(e.type.schema).header_cell;for(let i=0;i<t.height;i++)if(e.nodeAt(t.map[n+i*t.width]).type!=r)return!1;return!0}var Tt=class Gn extends tt{constructor(e,n=e){const r=e.node(-1),i=xt.get(r),o=e.start(-1),s=i.rectBetween(e.pos-o,n.pos-o),a=e.node(0),l=i.cellsInRect(s).filter(u=>u!=n.pos-o);l.unshift(n.pos-o);const c=l.map(u=>{const h=r.nodeAt(u);if(!h)throw RangeError(`No cell with offset ${u} found`);const d=o+u+1;return new Y0(a.resolve(d),a.resolve(d+h.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=n}map(e,n){const r=e.resolve(n.map(this.$anchorCell.pos)),i=e.resolve(n.map(this.$headCell.pos));if(Qh(r)&&Qh(i)&&Zf(r,i)){const o=this.$anchorCell.node(-1)!=r.node(-1);return o&&this.isRowSelection()?Gn.rowSelection(r,i):o&&this.isColSelection()?Gn.colSelection(r,i):new Gn(r,i)}return it.between(r,i)}content(){const e=this.$anchorCell.node(-1),n=xt.get(e),r=this.$anchorCell.start(-1),i=n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),o={},s=[];for(let l=i.top;l<i.bottom;l++){const c=[];for(let u=l*n.width+i.left,h=i.left;h<i.right;h++,u++){const d=n.map[u];if(o[d])continue;o[d]=!0;const f=n.findCell(d);let p=e.nodeAt(d);if(!p)throw RangeError(`No cell with offset ${d} found`);const m=i.left-f.left,g=f.right-i.right;if(m>0||g>0){let y=p.attrs;if(m>0&&(y=vi(y,0,m)),g>0&&(y=vi(y,y.colspan-g,g)),f.left<i.left){if(p=p.type.createAndFill(y),!p)throw RangeError(`Could not create cell with attrs ${JSON.stringify(y)}`)}else p=p.type.create(y,p.content)}if(f.top<i.top||f.bottom>i.bottom){const y={...p.attrs,rowspan:Math.min(f.bottom,i.bottom)-Math.max(f.top,i.top)};f.top<i.top?p=p.type.createAndFill(y):p=p.type.create(y,p.content)}c.push(p)}s.push(e.child(l).copy(E.from(c)))}const a=this.isColSelection()&&this.isRowSelection()?e:s;return new D(E.from(a),1,1)}replace(e,n=D.empty){const r=e.steps.length,i=this.ranges;for(let s=0;s<i.length;s++){const{$from:a,$to:l}=i[s],c=e.mapping.slice(r);e.replace(c.map(a.pos),c.map(l.pos),s?D.empty:n)}const o=tt.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)),-1);o&&e.setSelection(o)}replaceWith(e,n){this.replace(e,new D(E.from(n),0,0))}forEachCell(e){const n=this.$anchorCell.node(-1),r=xt.get(n),i=this.$anchorCell.start(-1),o=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i));for(let s=0;s<o.length;s++)e(n.nodeAt(o[s]),i+o[s])}isColSelection(){const e=this.$anchorCell.index(-1),n=this.$headCell.index(-1);if(Math.min(e,n)>0)return!1;const r=e+this.$anchorCell.nodeAfter.attrs.rowspan,i=n+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(r,i)==this.$headCell.node(-1).childCount}static colSelection(e,n=e){const r=e.node(-1),i=xt.get(r),o=e.start(-1),s=i.findCell(e.pos-o),a=i.findCell(n.pos-o),l=e.node(0);return s.top<=a.top?(s.top>0&&(e=l.resolve(o+i.map[s.left])),a.bottom<i.height&&(n=l.resolve(o+i.map[i.width*(i.height-1)+a.right-1]))):(a.top>0&&(n=l.resolve(o+i.map[a.left])),s.bottom<i.height&&(e=l.resolve(o+i.map[i.width*(i.height-1)+s.right-1]))),new Gn(e,n)}isRowSelection(){const e=this.$anchorCell.node(-1),n=xt.get(e),r=this.$anchorCell.start(-1),i=n.colCount(this.$anchorCell.pos-r),o=n.colCount(this.$headCell.pos-r);if(Math.min(i,o)>0)return!1;const s=i+this.$anchorCell.nodeAfter.attrs.colspan,a=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(s,a)==n.width}eq(e){return e instanceof Gn&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,n=e){const r=e.node(-1),i=xt.get(r),o=e.start(-1),s=i.findCell(e.pos-o),a=i.findCell(n.pos-o),l=e.node(0);return s.left<=a.left?(s.left>0&&(e=l.resolve(o+i.map[s.top*i.width])),a.right<i.width&&(n=l.resolve(o+i.map[i.width*(a.top+1)-1]))):(a.left>0&&(n=l.resolve(o+i.map[a.top*i.width])),s.right<i.width&&(e=l.resolve(o+i.map[i.width*(s.top+1)-1]))),new Gn(e,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,n){return new Gn(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){return new Gn(e.resolve(n),e.resolve(r))}getBookmark(){return new KI(this.$anchorCell.pos,this.$headCell.pos)}};Tt.prototype.visible=!1;tt.jsonID("cell",Tt);var KI=class Mb{constructor(e,n){this.anchor=e,this.head=n}map(e){return new Mb(e.map(this.anchor),e.map(this.head))}resolve(e){const n=e.resolve(this.anchor),r=e.resolve(this.head);return n.parent.type.spec.tableRole=="row"&&r.parent.type.spec.tableRole=="row"&&n.index()<n.parent.childCount&&r.index()<r.parent.childCount&&Zf(n,r)?new Tt(n,r):tt.near(r,1)}};function GI(t){if(!(t.selection instanceof Tt))return null;const e=[];return t.selection.forEachCell((n,r)=>{e.push(te.node(r,r+n.nodeSize,{class:"selectedCell"}))}),Et.create(t.doc,e)}function YI({$from:t,$to:e}){if(t.pos==e.pos||t.pos<t.pos-6)return!1;let n=t.pos,r=e.pos,i=t.depth;for(;i>=0&&!(t.after(i+1)<t.end(i));i--,n++);for(let o=e.depth;o>=0&&!(e.before(o+1)>e.start(o));o--,r--);return n==r&&/row|table/.test(t.node(i).type.spec.tableRole)}function JI({$from:t,$to:e}){let n,r;for(let i=t.depth;i>0;i--){const o=t.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){n=o;break}}for(let i=e.depth;i>0;i--){const o=e.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){r=o;break}}return n!==r&&e.parentOffset===0}function XI(t,e,n){const r=(e||t).selection,i=(e||t).doc;let o,s;if(r instanceof Q&&(s=r.node.type.spec.tableRole)){if(s=="cell"||s=="header_cell")o=Tt.create(i,r.from);else if(s=="row"){const a=i.resolve(r.from+1);o=Tt.rowSelection(a,a)}else if(!n){const a=xt.get(r.node),l=r.from+1,c=l+a.map[a.width*a.height-1];o=Tt.create(i,l+1,c)}}else r instanceof it&&YI(r)?o=it.create(i,r.from):r instanceof it&&JI(r)&&(o=it.create(i,r.$from.start(),r.$from.end()));return o&&(e||(e=t.tr)).setSelection(o),e}var ZI=new ie("fix-tables");function Nb(t,e,n,r){const i=t.childCount,o=e.childCount;t:for(let s=0,a=0;s<o;s++){const l=e.child(s);for(let c=a,u=Math.min(i,s+3);c<u;c++)if(t.child(c)==l){a=c+1,n+=l.nodeSize;continue t}r(l,n),a<i&&t.child(a).sameMarkup(l)?Nb(t.child(a),l,n+1,r):l.nodesBetween(0,l.content.size,r,n+1),n+=l.nodeSize}}function QI(t,e){let n;const r=(i,o)=>{i.type.spec.tableRole=="table"&&(n=tB(t,i,o,n))};return e?e.doc!=t.doc&&Nb(e.doc,t.doc,0,r):t.doc.descendants(r),n}function tB(t,e,n,r){const i=xt.get(e);if(!i.problems)return r;r||(r=t.tr);const o=[];for(let l=0;l<i.height;l++)o.push(0);for(let l=0;l<i.problems.length;l++){const c=i.problems[l];if(c.type=="collision"){const u=e.nodeAt(c.pos);if(!u)continue;const h=u.attrs;for(let d=0;d<h.rowspan;d++)o[c.row+d]+=c.n;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,vi(h,h.colspan-c.n,c.n))}else if(c.type=="missing")o[c.row]+=c.n;else if(c.type=="overlong_rowspan"){const u=e.nodeAt(c.pos);if(!u)continue;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,{...u.attrs,rowspan:u.attrs.rowspan-c.n})}else if(c.type=="colwidth mismatch"){const u=e.nodeAt(c.pos);if(!u)continue;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,{...u.attrs,colwidth:c.colwidth})}}let s,a;for(let l=0;l<o.length;l++)o[l]&&(s==null&&(s=l),a=l);for(let l=0,c=n+1;l<i.height;l++){const u=e.child(l),h=c+u.nodeSize,d=o[l];if(d>0){let f="cell";u.firstChild&&(f=u.firstChild.type.spec.tableRole);const p=[];for(let g=0;g<d;g++){const y=Ke(t.schema)[f].createAndFill();y&&p.push(y)}const m=(l==0||s==l-1)&&a==l?c+1:h-1;r.insert(r.mapping.map(m),p)}c=h}return r.setMeta(ZI,{fixTables:!0})}function eB(t){if(!t.size)return null;let{content:e,openStart:n,openEnd:r}=t;for(;e.childCount==1&&(n>0&&r>0||e.child(0).type.spec.tableRole=="table");)n--,r--,e=e.child(0).content;const i=e.child(0),o=i.type.spec.tableRole,s=i.type.schema,a=[];if(o=="row")for(let l=0;l<e.childCount;l++){let c=e.child(l).content;const u=l?0:Math.max(0,n-1),h=l<e.childCount-1?0:Math.max(0,r-1);(u||h)&&(c=td(Ke(s).row,new D(c,u,h)).content),a.push(c)}else if(o=="cell"||o=="header_cell")a.push(n||r?td(Ke(s).row,new D(e,n,r)).content:e);else return null;return nB(s,a)}function nB(t,e){const n=[];for(let i=0;i<e.length;i++){const o=e[i];for(let s=o.childCount-1;s>=0;s--){const{rowspan:a,colspan:l}=o.child(s).attrs;for(let c=i;c<i+a;c++)n[c]=(n[c]||0)+l}}let r=0;for(let i=0;i<n.length;i++)r=Math.max(r,n[i]);for(let i=0;i<n.length;i++)if(i>=e.length&&e.push(E.empty),n[i]<r){const o=Ke(t).cell.createAndFill(),s=[];for(let a=n[i];a<r;a++)s.push(o);e[i]=e[i].append(E.from(s))}return{height:e.length,width:r,rows:e}}function td(t,e){const n=t.createAndFill();return new G0(n).replace(0,n.content.size,e).doc}function rB({width:t,height:e,rows:n},r,i){if(t!=r){const o=[],s=[];for(let a=0;a<n.length;a++){const l=n[a],c=[];for(let u=o[a]||0,h=0;u<r;h++){let d=l.child(h%l.childCount);u+d.attrs.colspan>r&&(d=d.type.createChecked(vi(d.attrs,d.attrs.colspan,u+d.attrs.colspan-r),d.content)),c.push(d),u+=d.attrs.colspan;for(let f=1;f<d.attrs.rowspan;f++)o[a+f]=(o[a+f]||0)+d.attrs.colspan}s.push(E.from(c))}n=s,t=r}if(e!=i){const o=[];for(let s=0,a=0;s<i;s++,a++){const l=[],c=n[a%e];for(let u=0;u<c.childCount;u++){let h=c.child(u);s+h.attrs.rowspan>i&&(h=h.type.create({...h.attrs,rowspan:Math.max(1,i-h.attrs.rowspan)},h.content)),l.push(h)}o.push(E.from(l))}n=o,e=i}return{width:t,height:e,rows:n}}function iB(t,e,n,r,i,o,s){const a=t.doc.type.schema,l=Ke(a);let c,u;if(i>e.width)for(let h=0,d=0;h<e.height;h++){const f=n.child(h);d+=f.nodeSize;const p=[];let m;f.lastChild==null||f.lastChild.type==l.cell?m=c||(c=l.cell.createAndFill()):m=u||(u=l.header_cell.createAndFill());for(let g=e.width;g<i;g++)p.push(m);t.insert(t.mapping.slice(s).map(d-1+r),p)}if(o>e.height){const h=[];for(let p=0,m=(e.height-1)*e.width;p<Math.max(e.width,i);p++){const g=p>=e.width?!1:n.nodeAt(e.map[m+p]).type==l.header_cell;h.push(g?u||(u=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}const d=l.row.create(null,E.from(h)),f=[];for(let p=e.height;p<o;p++)f.push(d);t.insert(t.mapping.slice(s).map(r+n.nodeSize-2),f)}return!!(c||u)}function qg(t,e,n,r,i,o,s,a){if(s==0||s==e.height)return!1;let l=!1;for(let c=i;c<o;c++){const u=s*e.width+c,h=e.map[u];if(e.map[u-e.width]==h){l=!0;const d=n.nodeAt(h),{top:f,left:p}=e.findCell(h);t.setNodeMarkup(t.mapping.slice(a).map(h+r),null,{...d.attrs,rowspan:s-f}),t.insert(t.mapping.slice(a).map(e.positionAt(s,p,n)),d.type.createAndFill({...d.attrs,rowspan:f+d.attrs.rowspan-s})),c+=d.attrs.colspan-1}}return l}function jg(t,e,n,r,i,o,s,a){if(s==0||s==e.width)return!1;let l=!1;for(let c=i;c<o;c++){const u=c*e.width+s,h=e.map[u];if(e.map[u-1]==h){l=!0;const d=n.nodeAt(h),f=e.colCount(h),p=t.mapping.slice(a).map(h+r);t.setNodeMarkup(p,null,vi(d.attrs,s-f,d.attrs.colspan-(s-f))),t.insert(p+d.nodeSize,d.type.createAndFill(vi(d.attrs,0,s-f))),c+=d.attrs.rowspan-1}}return l}function Wg(t,e,n,r,i){let o=n?t.doc.nodeAt(n-1):t.doc;if(!o)throw new Error("No table found");let s=xt.get(o);const{top:a,left:l}=r,c=l+i.width,u=a+i.height,h=t.tr;let d=0;function f(){if(o=n?h.doc.nodeAt(n-1):h.doc,!o)throw new Error("No table found");s=xt.get(o),d=h.mapping.maps.length}iB(h,s,o,n,c,u,d)&&f(),qg(h,s,o,n,l,c,a,d)&&f(),qg(h,s,o,n,l,c,u,d)&&f(),jg(h,s,o,n,a,u,l,d)&&f(),jg(h,s,o,n,a,u,c,d)&&f();for(let p=a;p<u;p++){const m=s.positionAt(p,l,o),g=s.positionAt(p,c,o);h.replace(h.mapping.slice(d).map(m+n),h.mapping.slice(d).map(g+n),new D(i.rows[p-a],0,0))}f(),h.setSelection(new Tt(h.doc.resolve(n+s.positionAt(a,l,o)),h.doc.resolve(n+s.positionAt(u-1,c-1,o)))),e(h)}var oB=Bx({ArrowLeft:La("horiz",-1),ArrowRight:La("horiz",1),ArrowUp:La("vert",-1),ArrowDown:La("vert",1),"Shift-ArrowLeft":Da("horiz",-1),"Shift-ArrowRight":Da("horiz",1),"Shift-ArrowUp":Da("vert",-1),"Shift-ArrowDown":Da("vert",1),Backspace:Ra,"Mod-Backspace":Ra,Delete:Ra,"Mod-Delete":Ra});function wl(t,e,n){return n.eq(t.selection)?!1:(e&&e(t.tr.setSelection(n).scrollIntoView()),!0)}function La(t,e){return(n,r,i)=>{if(!i)return!1;const o=n.selection;if(o instanceof Tt)return wl(n,r,tt.near(o.$headCell,e));if(t!="horiz"&&!o.empty)return!1;const s=Ob(i,t,e);if(s==null)return!1;if(t=="horiz")return wl(n,r,tt.near(n.doc.resolve(o.head+e),e));{const a=n.doc.resolve(s),l=Eb(a,t,e);let c;return l?c=tt.near(l,1):e<0?c=tt.near(n.doc.resolve(a.before(-1)),-1):c=tt.near(n.doc.resolve(a.after(-1)),1),wl(n,r,c)}}}function Da(t,e){return(n,r,i)=>{if(!i)return!1;const o=n.selection;let s;if(o instanceof Tt)s=o;else{const l=Ob(i,t,e);if(l==null)return!1;s=new Tt(n.doc.resolve(l))}const a=Eb(s.$headCell,t,e);return a?wl(n,r,new Tt(s.$anchorCell,a)):!1}}function Ra(t,e){const n=t.selection;if(!(n instanceof Tt))return!1;if(e){const r=t.tr,i=Ke(t.schema).cell.createAndFill().content;n.forEachCell((o,s)=>{o.content.eq(i)||r.replace(r.mapping.map(s+1),r.mapping.map(s+o.nodeSize-1),new D(i,0,0))}),r.docChanged&&e(r)}return!0}function sB(t,e){const n=t.state.doc,r=ga(n.resolve(e));return r?(t.dispatch(t.state.tr.setSelection(new Tt(r))),!0):!1}function aB(t,e,n){if(!Ee(t.state))return!1;let r=eB(n);const i=t.state.selection;if(i instanceof Tt){r||(r={width:1,height:1,rows:[E.from(td(Ke(t.state.schema).cell,n))]});const o=i.$anchorCell.node(-1),s=i.$anchorCell.start(-1),a=xt.get(o).rectBetween(i.$anchorCell.pos-s,i.$headCell.pos-s);return r=rB(r,a.right-a.left,a.bottom-a.top),Wg(t.state,t.dispatch,s,a,r),!0}else if(r){const o=Dc(t.state),s=o.start(-1);return Wg(t.state,t.dispatch,s,xt.get(o.node(-1)).findCell(o.pos-s),r),!0}else return!1}function lB(t,e){var n;if(e.ctrlKey||e.metaKey)return;const r=Vg(t,e.target);let i;if(e.shiftKey&&t.state.selection instanceof Tt)o(t.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&r&&(i=ga(t.state.selection.$anchor))!=null&&((n=Vu(t,e))==null?void 0:n.pos)!=i.pos)o(i,e),e.preventDefault();else if(!r)return;function o(l,c){let u=Vu(t,c);const h=_r.getState(t.state)==null;if(!u||!Zf(l,u))if(h)u=l;else return;const d=new Tt(l,u);if(h||!t.state.selection.eq(d)){const f=t.state.tr.setSelection(d);h&&f.setMeta(_r,l.pos),t.dispatch(f)}}function s(){t.root.removeEventListener("mouseup",s),t.root.removeEventListener("dragstart",s),t.root.removeEventListener("mousemove",a),_r.getState(t.state)!=null&&t.dispatch(t.state.tr.setMeta(_r,-1))}function a(l){const c=l,u=_r.getState(t.state);let h;if(u!=null)h=t.state.doc.resolve(u);else if(Vg(t,c.target)!=r&&(h=Vu(t,e),!h))return s();h&&o(h,c)}t.root.addEventListener("mouseup",s),t.root.addEventListener("dragstart",s),t.root.addEventListener("mousemove",a)}function Ob(t,e,n){if(!(t.state.selection instanceof it))return null;const{$head:r}=t.state.selection;for(let i=r.depth-1;i>=0;i--){const o=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:o.childCount))return null;if(o.type.spec.tableRole=="cell"||o.type.spec.tableRole=="header_cell"){const a=r.before(i),l=e=="vert"?n>0?"down":"up":n>0?"right":"left";return t.endOfTextblock(l)?a:null}}return null}function Vg(t,e){for(;e&&e!=t.dom;e=e.parentNode)if(e.nodeName=="TD"||e.nodeName=="TH")return e;return null}function Vu(t,e){const n=t.posAtCoords({left:e.clientX,top:e.clientY});return n&&n?ga(t.state.doc.resolve(n.pos)):null}var cB=class{constructor(t,e){this.node=t,this.cellMinWidth=e,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),ed(t,this.colgroup,this.table,e),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(t){return t.type!=this.node.type?!1:(this.node=t,ed(t,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(t){return t.type=="attributes"&&(t.target==this.table||this.colgroup.contains(t.target))}};function ed(t,e,n,r,i,o){var s;let a=0,l=!0,c=e.firstChild;const u=t.firstChild;if(u){for(let h=0,d=0;h<u.childCount;h++){const{colspan:f,colwidth:p}=u.child(h).attrs;for(let m=0;m<f;m++,d++){const g=i==d?o:p&&p[m],y=g?g+"px":"";a+=g||r,g||(l=!1),c?(c.style.width!=y&&(c.style.width=y),c=c.nextSibling):e.appendChild(document.createElement("col")).style.width=y}}for(;c;){const h=c.nextSibling;(s=c.parentNode)==null||s.removeChild(c),c=h}l?(n.style.width=a+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=a+"px")}}var Ve=new ie("tableColumnResizing");function uB({handleWidth:t=5,cellMinWidth:e=25,View:n=cB,lastColumnResizable:r=!0}={}){const i=new me({key:Ve,state:{init(o,s){return i.spec.props.nodeViews[Ke(s.schema).table.name]=(a,l)=>new n(a,e,l),new hB(-1,!1)},apply(o,s){return s.apply(o)}},props:{attributes:o=>{const s=Ve.getState(o);return s&&s.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(o,s)=>{dB(o,s,t,e,r)},mouseleave:o=>{fB(o)},mousedown:(o,s)=>{pB(o,s,e)}},decorations:o=>{const s=Ve.getState(o);if(s&&s.activeHandle>-1)return kB(o,s.activeHandle)},nodeViews:{}}});return i}var hB=class Sl{constructor(e,n){this.activeHandle=e,this.dragging=n}apply(e){const n=this,r=e.getMeta(Ve);if(r&&r.setHandle!=null)return new Sl(r.setHandle,!1);if(r&&r.setDragging!==void 0)return new Sl(n.activeHandle,r.setDragging);if(n.activeHandle>-1&&e.docChanged){let i=e.mapping.map(n.activeHandle,-1);return Qh(e.doc.resolve(i))||(i=-1),new Sl(i,n.dragging)}return n}};function dB(t,e,n,r,i){const o=Ve.getState(t.state);if(o&&!o.dragging){const s=gB(e.target);let a=-1;if(s){const{left:l,right:c}=s.getBoundingClientRect();e.clientX-l<=n?a=Hg(t,e,"left",n):c-e.clientX<=n&&(a=Hg(t,e,"right",n))}if(a!=o.activeHandle){if(!i&&a!==-1){const l=t.state.doc.resolve(a),c=l.node(-1),u=xt.get(c),h=l.start(-1);if(u.colCount(l.pos-h)+l.nodeAfter.attrs.colspan-1==u.width-1)return}Ib(t,a)}}}function fB(t){const e=Ve.getState(t.state);e&&e.activeHandle>-1&&!e.dragging&&Ib(t,-1)}function pB(t,e,n){const r=Ve.getState(t.state);if(!r||r.activeHandle==-1||r.dragging)return!1;const i=t.state.doc.nodeAt(r.activeHandle),o=mB(t,r.activeHandle,i.attrs);t.dispatch(t.state.tr.setMeta(Ve,{setDragging:{startX:e.clientX,startWidth:o}}));function s(l){window.removeEventListener("mouseup",s),window.removeEventListener("mousemove",a);const c=Ve.getState(t.state);c?.dragging&&(yB(t,c.activeHandle,Ug(c.dragging,l,n)),t.dispatch(t.state.tr.setMeta(Ve,{setDragging:null})))}function a(l){if(!l.which)return s(l);const c=Ve.getState(t.state);if(c&&c.dragging){const u=Ug(c.dragging,l,n);xB(t,c.activeHandle,u,n)}}return window.addEventListener("mouseup",s),window.addEventListener("mousemove",a),e.preventDefault(),!0}function mB(t,e,{colspan:n,colwidth:r}){const i=r&&r[r.length-1];if(i)return i;const o=t.domAtPos(e);let a=o.node.childNodes[o.offset].offsetWidth,l=n;if(r)for(let c=0;c<n;c++)r[c]&&(a-=r[c],l--);return a/l}function gB(t){for(;t&&t.nodeName!="TD"&&t.nodeName!="TH";)t=t.classList&&t.classList.contains("ProseMirror")?null:t.parentNode;return t}function Hg(t,e,n,r){const i=n=="right"?-r:r,o=t.posAtCoords({left:e.clientX+i,top:e.clientY});if(!o)return-1;const{pos:s}=o,a=ga(t.state.doc.resolve(s));if(!a)return-1;if(n=="right")return a.pos;const l=xt.get(a.node(-1)),c=a.start(-1),u=l.map.indexOf(a.pos-c);return u%l.width==0?-1:c+l.map[u-1]}function Ug(t,e,n){const r=e.clientX-t.startX;return Math.max(n,t.startWidth+r)}function Ib(t,e){t.dispatch(t.state.tr.setMeta(Ve,{setHandle:e}))}function yB(t,e,n){const r=t.state.doc.resolve(e),i=r.node(-1),o=xt.get(i),s=r.start(-1),a=o.colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1,l=t.state.tr;for(let c=0;c<o.height;c++){const u=c*o.width+a;if(c&&o.map[u]==o.map[u-o.width])continue;const h=o.map[u],d=i.nodeAt(h).attrs,f=d.colspan==1?0:a-o.colCount(h);if(d.colwidth&&d.colwidth[f]==n)continue;const p=d.colwidth?d.colwidth.slice():bB(d.colspan);p[f]=n,l.setNodeMarkup(s+h,null,{...d,colwidth:p})}l.docChanged&&t.dispatch(l)}function xB(t,e,n,r){const i=t.state.doc.resolve(e),o=i.node(-1),s=i.start(-1),a=xt.get(o).colCount(i.pos-s)+i.nodeAfter.attrs.colspan-1;let l=t.domAtPos(i.start(-1)).node;for(;l&&l.nodeName!="TABLE";)l=l.parentNode;l&&ed(o,l.firstChild,l,r,a,n)}function bB(t){return Array(t).fill(0)}function kB(t,e){const n=[],r=t.doc.resolve(e),i=r.node(-1);if(!i)return Et.empty;const o=xt.get(i),s=r.start(-1),a=o.colCount(r.pos-s)+r.nodeAfter.attrs.colspan;for(let l=0;l<o.height;l++){const c=a+l*o.width-1;if((a==o.width||o.map[c]!=o.map[c+1])&&(l==0||o.map[c]!=o.map[c-o.width])){const u=o.map[c],h=s+u+i.nodeAt(u).nodeSize-1,d=document.createElement("div");d.className="column-resize-handle",n.push(te.widget(h,d))}}return Et.create(t.doc,n)}function jr(t){const e=t.selection,n=Dc(t),r=n.node(-1),i=n.start(-1),o=xt.get(r);return{...e instanceof Tt?o.rectBetween(e.$anchorCell.pos-i,e.$headCell.pos-i):o.findCell(n.pos-i),tableStart:i,map:o,table:r}}function Bb(t,{map:e,tableStart:n,table:r},i){let o=i>0?-1:0;UI(e,r,i+o)&&(o=i==0||i==e.width?null:0);for(let s=0;s<e.height;s++){const a=s*e.width+i;if(i>0&&i<e.width&&e.map[a-1]==e.map[a]){const l=e.map[a],c=r.nodeAt(l);t.setNodeMarkup(t.mapping.map(n+l),null,HI(c.attrs,i-e.colCount(l))),s+=c.attrs.rowspan-1}else{const l=o==null?Ke(r.type.schema).cell:r.nodeAt(e.map[a+o]).type,c=e.positionAt(s,i,r);t.insert(t.mapping.map(n+c),l.createAndFill())}}return t}function CB(t,e){if(!Ee(t))return!1;if(e){const n=jr(t);e(Bb(t.tr,n,n.left))}return!0}function wB(t,e){if(!Ee(t))return!1;if(e){const n=jr(t);e(Bb(t.tr,n,n.right))}return!0}function SB(t,{map:e,table:n,tableStart:r},i){const o=t.mapping.maps.length;for(let s=0;s<e.height;){const a=s*e.width+i,l=e.map[a],c=n.nodeAt(l),u=c.attrs;if(i>0&&e.map[a-1]==l||i<e.width-1&&e.map[a+1]==l)t.setNodeMarkup(t.mapping.slice(o).map(r+l),null,vi(u,i-e.colCount(l)));else{const h=t.mapping.slice(o).map(r+l);t.delete(h,h+c.nodeSize)}s+=u.rowspan}}function _B(t,e){if(!Ee(t))return!1;if(e){const n=jr(t),r=t.tr;if(n.left==0&&n.right==n.map.width)return!1;for(let i=n.right-1;SB(r,n,i),i!=n.left;i--){const o=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!o)throw RangeError("No table found");n.table=o,n.map=xt.get(o)}e(r)}return!0}function TB(t,{map:e,table:n,tableStart:r},i){let o=0;for(let c=0;c<i;c++)o+=n.child(c).nodeSize;const s=o+n.child(i).nodeSize,a=t.mapping.maps.length;t.delete(o+r,s+r);const l=new Set;for(let c=0,u=i*e.width;c<e.width;c++,u++){const h=e.map[u];if(!l.has(h)){if(l.add(h),i>0&&h==e.map[u-e.width]){const d=n.nodeAt(h).attrs;t.setNodeMarkup(t.mapping.slice(a).map(h+r),null,{...d,rowspan:d.rowspan-1}),c+=d.colspan-1}else if(i<e.height&&h==e.map[u+e.width]){const d=n.nodeAt(h),f=d.attrs,p=d.type.create({...f,rowspan:d.attrs.rowspan-1},d.content),m=e.positionAt(i+1,c,n);t.insert(t.mapping.slice(a).map(r+m),p),c+=f.colspan-1}}}}function vB(t,e){if(!Ee(t))return!1;if(e){const n=jr(t),r=t.tr;if(n.top==0&&n.bottom==n.map.height)return!1;for(let i=n.bottom-1;TB(r,n,i),i!=n.top;i--){const o=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!o)throw RangeError("No table found");n.table=o,n.map=xt.get(n.table)}e(r)}return!0}function AB(t,e){return function(n,r){if(!Ee(n))return!1;const i=Dc(n);if(i.nodeAfter.attrs[t]===e)return!1;if(r){const o=n.tr;n.selection instanceof Tt?n.selection.forEachCell((s,a)=>{s.attrs[t]!==e&&o.setNodeMarkup(a,null,{...s.attrs,[t]:e})}):o.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[t]:e}),r(o)}return!0}}function EB(t){return function(e,n){if(!Ee(e))return!1;if(n){const r=Ke(e.schema),i=jr(e),o=e.tr,s=i.map.cellsInRect(t=="column"?{left:i.left,top:0,right:i.right,bottom:i.map.height}:t=="row"?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),a=s.map(l=>i.table.nodeAt(l));for(let l=0;l<s.length;l++)a[l].type==r.header_cell&&o.setNodeMarkup(i.tableStart+s[l],r.cell,a[l].attrs);if(o.steps.length==0)for(let l=0;l<s.length;l++)o.setNodeMarkup(i.tableStart+s[l],r.header_cell,a[l].attrs);n(o)}return!0}}function Kg(t,e,n){const r=e.map.cellsInRect({left:0,top:0,right:t=="row"?e.map.width:1,bottom:t=="column"?e.map.height:1});for(let i=0;i<r.length;i++){const o=e.table.nodeAt(r[i]);if(o&&o.type!==n.header_cell)return!1}return!0}function Qf(t,e){return e=e||{useDeprecatedLogic:!1},e.useDeprecatedLogic?EB(t):function(n,r){if(!Ee(n))return!1;if(r){const i=Ke(n.schema),o=jr(n),s=n.tr,a=Kg("row",o,i),l=Kg("column",o,i),u=(t==="column"?a:t==="row"?l:!1)?1:0,h=t=="column"?{left:0,top:u,right:1,bottom:o.map.height}:t=="row"?{left:u,top:0,right:o.map.width,bottom:1}:o,d=t=="column"?l?i.cell:i.header_cell:t=="row"?a?i.cell:i.header_cell:i.cell;o.map.cellsInRect(h).forEach(f=>{const p=f+o.tableStart,m=s.doc.nodeAt(p);m&&s.setNodeMarkup(p,d,m.attrs)}),r(s)}return!0}}Qf("row",{useDeprecatedLogic:!0});Qf("column",{useDeprecatedLogic:!0});Qf("cell",{useDeprecatedLogic:!0});function MB(t,e){if(e<0){const n=t.nodeBefore;if(n)return t.pos-n.nodeSize;for(let r=t.index(-1)-1,i=t.before();r>=0;r--){const o=t.node(-1).child(r),s=o.lastChild;if(s)return i-1-s.nodeSize;i-=o.nodeSize}}else{if(t.index()<t.parent.childCount-1)return t.pos+t.nodeAfter.nodeSize;const n=t.node(-1);for(let r=t.indexAfter(-1),i=t.after();r<n.childCount;r++){const o=n.child(r);if(o.childCount)return i+1;i+=o.nodeSize}}return null}function Fb(t){return function(e,n){if(!Ee(e))return!1;const r=MB(Dc(e),t);if(r==null)return!1;if(n){const i=e.doc.resolve(r);n(e.tr.setSelection(it.between(i,VI(i))).scrollIntoView())}return!0}}function NB(t,e){const n=t.selection.$anchor;for(let r=n.depth;r>0;r--)if(n.node(r).type.spec.tableRole=="table")return e&&e(t.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}function OB({allowTableNodeSelection:t=!1}={}){return new me({key:_r,state:{init(){return null},apply(e,n){const r=e.getMeta(_r);if(r!=null)return r==-1?null:r;if(n==null||!e.docChanged)return n;const{deleted:i,pos:o}=e.mapping.mapResult(n);return i?null:o}},props:{decorations:GI,handleDOMEvents:{mousedown:lB},createSelectionBetween(e){return _r.getState(e.state)!=null?e.state.selection:null},handleTripleClick:sB,handleKeyDown:oB,handlePaste:aB},appendTransaction(e,n,r){return XI(r,QI(r,n),t)}})}function Gg(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(e);for(;i!==-1;)r++,i=n.indexOf(e,i+e.length);return r}function IB(t,e,n){const i=Ec((n||{}).ignore||[]),o=BB(e);let s=-1;for(;++s<o.length;)rx(t,"text",a);function a(c,u){let h=-1,d;for(;++h<u.length;){const f=u[h],p=d?d.children:void 0;if(i(f,p?p.indexOf(f):void 0,d))return;d=f}if(d)return l(c,u)}function l(c,u){const h=u[u.length-1],d=o[s][0],f=o[s][1];let p=0;const g=h.children.indexOf(c);let y=!1,C=[];d.lastIndex=0;let T=d.exec(c.value);for(;T;){const M=T.index,I={index:T.index,input:T.input,stack:[...u,c]};let S=f(...T,I);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?d.lastIndex=M+1:(p!==M&&C.push({type:"text",value:c.value.slice(p,M)}),Array.isArray(S)?C.push(...S):S&&C.push(S),p=M+T[0].length,y=!0),!d.global)break;T=d.exec(c.value)}return y?(p<c.value.length&&C.push({type:"text",value:c.value.slice(p)}),h.children.splice(g,1,...C)):C=[c],g+C.length}}function BB(t){const e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!t[0]||Array.isArray(t[0])?t:[t];let r=-1;for(;++r<n.length;){const i=n[r];e.push([FB(i[0]),LB(i[1])])}return e}function FB(t){return typeof t=="string"?new RegExp(Fc(t),"g"):t}function LB(t){return typeof t=="function"?t:function(){return t}}const Hu="phrasing",Uu=["autolink","link","image","label"];function DB(){return{transforms:[WB],enter:{literalAutolink:PB,literalAutolinkEmail:Ku,literalAutolinkHttp:Ku,literalAutolinkWww:Ku},exit:{literalAutolink:jB,literalAutolinkEmail:qB,literalAutolinkHttp:$B,literalAutolinkWww:zB}}}function RB(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Hu,notInConstruct:Uu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Hu,notInConstruct:Uu},{character:":",before:"[ps]",after:"\\/",inConstruct:Hu,notInConstruct:Uu}]}}function PB(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function Ku(t){this.config.enter.autolinkProtocol.call(this,t)}function $B(t){this.config.exit.autolinkProtocol.call(this,t)}function zB(t){this.config.exit.data.call(this,t);const e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function qB(t){this.config.exit.autolinkEmail.call(this,t)}function jB(t){this.exit(t)}function WB(t){IB(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,VB],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,HB]],{ignore:["link","linkReference"]})}function VB(t,e,n,r,i){let o="";if(!Lb(i)||(/^w/i.test(e)&&(n=e+n,e="",o="http://"),!UB(n)))return!1;const s=KB(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:o+e+s[0],children:[{type:"text",value:e+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function HB(t,e,n,r){return!Lb(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}function UB(t){const e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function KB(t){const e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],r=n.indexOf(")");const i=Gg(t,"(");let o=Gg(t,")");for(;r!==-1&&i>o;)t+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[t,n]}function Lb(t,e){const n=t.input.charCodeAt(t.index-1);return(t.index===0||_i(n)||vc(n))&&(!e||n!==47)}Db.peek=iF;function GB(){return{enter:{gfmFootnoteDefinition:JB,gfmFootnoteDefinitionLabelString:XB,gfmFootnoteCall:tF,gfmFootnoteCallString:eF},exit:{gfmFootnoteDefinition:QB,gfmFootnoteDefinitionLabelString:ZB,gfmFootnoteCall:rF,gfmFootnoteCallString:nF}}}function YB(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:oF,footnoteReference:Db}}}function JB(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function XB(){this.buffer()}function ZB(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=e,n.identifier=ln(this.sliceSerialize(t)).toLowerCase()}function QB(t){this.exit(t)}function tF(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function eF(){this.buffer()}function nF(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=e,n.identifier=ln(this.sliceSerialize(t)).toLowerCase()}function rF(t){this.exit(t)}function Db(t,e,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(t),{...i.current(),before:o,after:"]"})),a(),s(),o+=i.move("]"),o}function iF(){return"["}function oF(t,e,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteDefinition"),a=n.enter("label");return o+=i.move(n.safe(n.associationId(t),{...i.current(),before:o,after:"]"})),a(),o+=i.move("]:"+(t.children&&t.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(t,i.current()),sF)),s(),o}function sF(t,e,n){return e===0?t:(n?"":" ")+t}const aF=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Rb.peek=dF;function lF(){return{canContainEols:["delete"],enter:{strikethrough:uF},exit:{strikethrough:hF}}}function cF(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:aF}],handlers:{delete:Rb}}}function uF(t){this.enter({type:"delete",children:[]},t)}function hF(t){this.exit(t)}function Rb(t,e,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(t,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function dF(){return"~"}function fF(t,e={}){const n=(e.align||[]).concat(),r=e.stringLength||mF,i=[],o=[],s=[],a=[];let l=0,c=-1;for(;++c<t.length;){const p=[],m=[];let g=-1;for(t[c].length>l&&(l=t[c].length);++g<t[c].length;){const y=pF(t[c][g]);if(e.alignDelimiters!==!1){const C=r(y);m[g]=C,(a[g]===void 0||C>a[g])&&(a[g]=C)}p.push(y)}o[c]=p,s[c]=m}let u=-1;if(typeof n=="object"&&"length"in n)for(;++u<l;)i[u]=Yg(n[u]);else{const p=Yg(n);for(;++u<l;)i[u]=p}u=-1;const h=[],d=[];for(;++u<l;){const p=i[u];let m="",g="";p===99?(m=":",g=":"):p===108?m=":":p===114&&(g=":");let y=e.alignDelimiters===!1?1:Math.max(1,a[u]-m.length-g.length);const C=m+"-".repeat(y)+g;e.alignDelimiters!==!1&&(y=m.length+y+g.length,y>a[u]&&(a[u]=y),d[u]=y),h[u]=C}o.splice(1,0,h),s.splice(1,0,d),c=-1;const f=[];for(;++c<o.length;){const p=o[c],m=s[c];u=-1;const g=[];for(;++u<l;){const y=p[u]||"";let C="",T="";if(e.alignDelimiters!==!1){const M=a[u]-(m[u]||0),I=i[u];I===114?C=" ".repeat(M):I===99?M%2?(C=" ".repeat(M/2+.5),T=" ".repeat(M/2-.5)):(C=" ".repeat(M/2),T=C):T=" ".repeat(M)}e.delimiterStart!==!1&&!u&&g.push("|"),e.padding!==!1&&!(e.alignDelimiters===!1&&y==="")&&(e.delimiterStart!==!1||u)&&g.push(" "),e.alignDelimiters!==!1&&g.push(C),g.push(y),e.alignDelimiters!==!1&&g.push(T),e.padding!==!1&&g.push(" "),(e.delimiterEnd!==!1||u!==l-1)&&g.push("|")}f.push(e.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return f.join(` +`)}function pF(t){return t==null?"":String(t)}function mF(t){return t.length}function Yg(t){const e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}function gF(){return{enter:{table:yF,tableData:Jg,tableHeader:Jg,tableRow:bF},exit:{codeText:kF,table:xF,tableData:Gu,tableHeader:Gu,tableRow:Gu}}}function yF(t){const e=t._align;this.enter({type:"table",align:e.map(function(n){return n==="none"?null:n}),children:[]},t),this.data.inTable=!0}function xF(t){this.exit(t),this.data.inTable=void 0}function bF(t){this.enter({type:"tableRow",children:[]},t)}function Gu(t){this.exit(t)}function Jg(t){this.enter({type:"tableCell",children:[]},t)}function kF(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,CF));const n=this.stack[this.stack.length-1];n.type,n.value=e,this.exit(t)}function CF(t,e){return e==="|"?e:t}function wF(t){const e=t||{},n=e.tableCellPadding,r=e.tablePipeAlign,i=e.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:s,tableCell:l,tableRow:a}};function s(f,p,m,g){return c(u(f,m,g),f.align)}function a(f,p,m,g){const y=h(f,m,g),C=c([y]);return C.slice(0,C.indexOf(` +`))}function l(f,p,m,g){const y=m.enter("tableCell"),C=m.enter("phrasing"),T=m.containerPhrasing(f,{...g,before:o,after:o});return C(),y(),T}function c(f,p){return fF(f,{align:p,alignDelimiters:r,padding:n,stringLength:i})}function u(f,p,m){const g=f.children;let y=-1;const C=[],T=p.enter("table");for(;++y<g.length;)C[y]=h(g[y],p,m);return T(),C}function h(f,p,m){const g=f.children;let y=-1;const C=[],T=p.enter("tableRow");for(;++y<g.length;)C[y]=l(g[y],f,p,m);return T(),C}function d(f,p,m){let g=Ud.inlineCode(f,p,m);return m.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function SF(){return{exit:{taskListCheckValueChecked:Xg,taskListCheckValueUnchecked:Xg,paragraph:TF}}}function _F(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:vF}}}function Xg(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function TF(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=e.children;let o=-1,s;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){s=a;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(t)}function vF(t,e,n,r){const i=t.children[0],o=typeof t.checked=="boolean"&&i&&i.type==="paragraph",s="["+(t.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(s);let l=Ud.listItem(t,e,n,{...r,...a.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+s}}function AF(){return[DB(),GB(),lF(),gF(),SF()]}function EF(t){return{extensions:[RB(),YB(),cF(),wF(t),_F()]}}const MF={tokenize:LF,partial:!0},Pb={tokenize:DF,partial:!0},$b={tokenize:RF,partial:!0},zb={tokenize:PF,partial:!0},NF={tokenize:$F,partial:!0},qb={tokenize:BF,previous:Wb},jb={tokenize:FF,previous:Vb},sr={tokenize:IF,previous:Hb},Fn={};function OF(){return{text:Fn}}let Jr=48;for(;Jr<123;)Fn[Jr]=sr,Jr++,Jr===58?Jr=65:Jr===91&&(Jr=97);Fn[43]=sr;Fn[45]=sr;Fn[46]=sr;Fn[95]=sr;Fn[72]=[sr,jb];Fn[104]=[sr,jb];Fn[87]=[sr,qb];Fn[119]=[sr,qb];function IF(t,e,n){const r=this;let i,o;return s;function s(h){return!nd(h)||!Hb.call(r,r.previous)||tp(r.events)?n(h):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),a(h))}function a(h){return nd(h)?(t.consume(h),a):h===64?(t.consume(h),l):n(h)}function l(h){return h===46?t.check(NF,u,c)(h):h===45||h===95||Se(h)?(o=!0,t.consume(h),l):u(h)}function c(h){return t.consume(h),i=!0,l}function u(h){return o&&i&&le(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(h)):n(h)}}function BF(t,e,n){const r=this;return i;function i(s){return s!==87&&s!==119||!Wb.call(r,r.previous)||tp(r.events)?n(s):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(MF,t.attempt(Pb,t.attempt($b,o),n),n)(s))}function o(s){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(s)}}function FF(t,e,n){const r=this;let i="",o=!1;return s;function s(h){return(h===72||h===104)&&Vb.call(r,r.previous)&&!tp(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(h),t.consume(h),a):n(h)}function a(h){if(le(h)&&i.length<5)return i+=String.fromCodePoint(h),t.consume(h),a;if(h===58){const d=i.toLowerCase();if(d==="http"||d==="https")return t.consume(h),l}return n(h)}function l(h){return h===47?(t.consume(h),o?c:(o=!0,l)):n(h)}function c(h){return h===null||Vl(h)||kt(h)||_i(h)||vc(h)?n(h):t.attempt(Pb,t.attempt($b,u),n)(h)}function u(h){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(h)}}function LF(t,e,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,t.consume(s),i):s===46&&r===3?(t.consume(s),o):n(s)}function o(s){return s===null?n(s):e(s)}}function DF(t,e,n){let r,i,o;return s;function s(c){return c===46||c===95?t.check(zb,l,a)(c):c===null||kt(c)||_i(c)||c!==45&&vc(c)?l(c):(o=!0,t.consume(c),s)}function a(c){return c===95?r=!0:(i=r,r=void 0),t.consume(c),s}function l(c){return i||r||!o?n(c):e(c)}}function RF(t,e){let n=0,r=0;return i;function i(s){return s===40?(n++,t.consume(s),i):s===41&&r<n?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?t.check(zb,e,o)(s):s===null||kt(s)||_i(s)?e(s):(t.consume(s),i)}function o(s){return s===41&&r++,t.consume(s),i}}function PF(t,e,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(t.consume(a),r):a===38?(t.consume(a),o):a===93?(t.consume(a),i):a===60||a===null||kt(a)||_i(a)?e(a):n(a)}function i(a){return a===null||a===40||a===91||kt(a)||_i(a)?e(a):r(a)}function o(a){return le(a)?s(a):n(a)}function s(a){return a===59?(t.consume(a),r):le(a)?(t.consume(a),s):n(a)}}function $F(t,e,n){return r;function r(o){return t.consume(o),i}function i(o){return Se(o)?n(o):e(o)}}function Wb(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||kt(t)}function Vb(t){return!le(t)}function Hb(t){return!(t===47||nd(t))}function nd(t){return t===43||t===45||t===46||t===95||Se(t)}function tp(t){let e=t.length,n=!1;for(;e--;){const r=t[e][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const zF={tokenize:GF,partial:!0};function qF(){return{document:{91:{tokenize:HF,continuation:{tokenize:UF},exit:KF}},text:{91:{tokenize:VF},93:{add:"after",tokenize:jF,resolveTo:WF}}}}function jF(t,e,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!s||!s._balanced)return n(l);const c=ln(r.sliceSerialize({start:s.end,end:r.now()}));return c.codePointAt(0)!==94||!o.includes(c.slice(1))?n(l):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(l),t.exit("gfmFootnoteCallLabelMarker"),e(l))}}function WF(t,e){let n=t.length;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},t[t.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[t[n+1],t[n+2],["enter",r,e],t[n+3],t[n+4],["enter",i,e],["exit",i,e],["enter",o,e],["enter",s,e],["exit",s,e],["exit",o,e],t[t.length-2],t[t.length-1],["exit",r,e]];return t.splice(n,t.length-n+1,...a),t}function VF(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,s;return a;function a(h){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),l}function l(h){return h!==94?n(h):(t.enter("gfmFootnoteCallMarker"),t.consume(h),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",c)}function c(h){if(o>999||h===93&&!s||h===null||h===91||kt(h))return n(h);if(h===93){t.exit("chunkString");const d=t.exit("gfmFootnoteCallString");return i.includes(ln(r.sliceSerialize(d)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(h)}return kt(h)||(s=!0),o++,t.consume(h),h===92?u:c}function u(h){return h===91||h===92||h===93?(t.consume(h),o++,c):c(h)}}function HF(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0,a;return l;function l(p){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(p),t.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(p){return p===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(p),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",u):n(p)}function u(p){if(s>999||p===93&&!a||p===null||p===91||kt(p))return n(p);if(p===93){t.exit("chunkString");const m=t.exit("gfmFootnoteDefinitionLabelString");return o=ln(r.sliceSerialize(m)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(p),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),d}return kt(p)||(a=!0),s++,t.consume(p),p===92?h:u}function h(p){return p===91||p===92||p===93?(t.consume(p),s++,u):u(p)}function d(p){return p===58?(t.enter("definitionMarker"),t.consume(p),t.exit("definitionMarker"),i.includes(o)||i.push(o),ht(t,f,"gfmFootnoteDefinitionWhitespace")):n(p)}function f(p){return e(p)}}function UF(t,e,n){return t.check(la,e,t.attempt(zF,e,n))}function KF(t){t.exit("gfmFootnoteDefinition")}function GF(t,e,n){const r=this;return ht(t,i,"gfmFootnoteDefinitionIndent",5);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?e(o):n(o)}}function YF(t){let n=(t||{}).singleTilde;const r={tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let c=l;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[l][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[l][1].end)},h={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[l][1].start)},d=[["enter",u,a],["enter",s[c][1],a],["exit",s[c][1],a],["enter",h,a]],f=a.parser.constructs.insideSpan.null;f&&Le(d,d.length,0,Ac(f,s.slice(c+1,l),a)),Le(d,d.length,0,[["exit",h,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",u,a]]),Le(s,c-1,l-c+3,d),l=c+d.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function o(s,a,l){const c=this.previous,u=this.events;let h=0;return d;function d(p){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(p):(s.enter("strikethroughSequenceTemporary"),f(p))}function f(p){const m=Hl(c);if(p===126)return h>1?l(p):(s.consume(p),h++,f);if(h<2&&!n)return l(p);const g=s.exit("strikethroughSequenceTemporary"),y=Hl(p);return g._open=!y||y===2&&!!m,g._close=!m||m===2&&!!y,a(p)}}}class JF{constructor(){this.map=[]}add(e,n,r){XF(this,e,n,r)}consume(e){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];r.push([...e]),e.length=0;let i=r.pop();for(;i;)e.push(...i),i=r.pop();this.map.length=0}}function XF(t,e,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<t.map.length;){if(t.map[i][0]===e){t.map[i][1]+=n,t.map[i][2].push(...r);return}i+=1}t.map.push([e,n,r])}}function ZF(t,e){let n=!1;const r=[];for(;e<t.length;){const i=t[e];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);e+=1}return r}function QF(){return{flow:{null:{tokenize:tL,resolveAll:eL}}}}function tL(t,e,n){const r=this;let i=0,o=0,s;return a;function a(_){let P=r.events.length-1;for(;P>-1;){const bt=r.events[P][1].type;if(bt==="lineEnding"||bt==="linePrefix")P--;else break}const z=P>-1?r.events[P][1].type:null,dt=z==="tableHead"||z==="tableRow"?S:l;return dt===S&&r.parser.lazy[r.now().line]?n(_):dt(_)}function l(_){return t.enter("tableHead"),t.enter("tableRow"),c(_)}function c(_){return _===124||(s=!0,o+=1),u(_)}function u(_){return _===null?n(_):Y(_)?o>1?(o=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(_),t.exit("lineEnding"),f):n(_):lt(_)?ht(t,u,"whitespace")(_):(o+=1,s&&(s=!1,i+=1),_===124?(t.enter("tableCellDivider"),t.consume(_),t.exit("tableCellDivider"),s=!0,u):(t.enter("data"),h(_)))}function h(_){return _===null||_===124||kt(_)?(t.exit("data"),u(_)):(t.consume(_),_===92?d:h)}function d(_){return _===92||_===124?(t.consume(_),h):h(_)}function f(_){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(_):(t.enter("tableDelimiterRow"),s=!1,lt(_)?ht(t,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):p(_))}function p(_){return _===45||_===58?g(_):_===124?(s=!0,t.enter("tableCellDivider"),t.consume(_),t.exit("tableCellDivider"),m):I(_)}function m(_){return lt(_)?ht(t,g,"whitespace")(_):g(_)}function g(_){return _===58?(o+=1,s=!0,t.enter("tableDelimiterMarker"),t.consume(_),t.exit("tableDelimiterMarker"),y):_===45?(o+=1,y(_)):_===null||Y(_)?M(_):I(_)}function y(_){return _===45?(t.enter("tableDelimiterFiller"),C(_)):I(_)}function C(_){return _===45?(t.consume(_),C):_===58?(s=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(_),t.exit("tableDelimiterMarker"),T):(t.exit("tableDelimiterFiller"),T(_))}function T(_){return lt(_)?ht(t,M,"whitespace")(_):M(_)}function M(_){return _===124?p(_):_===null||Y(_)?!s||i!==o?I(_):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(_)):I(_)}function I(_){return n(_)}function S(_){return t.enter("tableRow"),N(_)}function N(_){return _===124?(t.enter("tableCellDivider"),t.consume(_),t.exit("tableCellDivider"),N):_===null||Y(_)?(t.exit("tableRow"),e(_)):lt(_)?ht(t,N,"whitespace")(_):(t.enter("data"),Z(_))}function Z(_){return _===null||_===124||kt(_)?(t.exit("data"),N(_)):(t.consume(_),_===92?R:Z)}function R(_){return _===92||_===124?(t.consume(_),Z):Z(_)}}function eL(t,e){let n=-1,r=!0,i=0,o=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,c,u,h;const d=new JF;for(;++n<t.length;){const f=t[n],p=f[1];f[0]==="enter"?p.type==="tableHead"?(a=!1,l!==0&&(Zg(d,e,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},d.add(n,0,[["enter",c,e]])):p.type==="tableRow"||p.type==="tableDelimiterRow"?(r=!0,h=void 0,o=[0,0,0,0],s=[0,n+1,0,0],a&&(a=!1,u={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},d.add(n,0,[["enter",u,e]])),i=p.type==="tableDelimiterRow"?2:u?3:1):i&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],h=Pa(d,e,o,i,void 0,h),o=[0,0,0,0]),s[2]=n)):p.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(s[0]=s[1],h=Pa(d,e,o,i,void 0,h)),o=s,s=[o[1],n,0,0])):p.type==="tableHead"?(a=!0,l=n):p.type==="tableRow"||p.type==="tableDelimiterRow"?(l=n,o[1]!==0?(s[0]=s[1],h=Pa(d,e,o,i,n,h)):s[1]!==0&&(h=Pa(d,e,s,i,n,h)),i=0):i&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&Zg(d,e,l,c,u),d.consume(e.events),n=-1;++n<e.events.length;){const f=e.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=ZF(e.events,n))}return t}function Pa(t,e,n,r,i,o){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(o.end=Object.assign({},Ji(e.events,n[0])),t.add(n[0],0,[["exit",o,e]]));const l=Ji(e.events,n[1]);if(o={type:s,start:Object.assign({},l),end:Object.assign({},l)},t.add(n[1],0,[["enter",o,e]]),n[2]!==0){const c=Ji(e.events,n[2]),u=Ji(e.events,n[3]),h={type:a,start:Object.assign({},c),end:Object.assign({},u)};if(t.add(n[2],0,[["enter",h,e]]),r!==2){const d=e.events[n[2]],f=e.events[n[3]];if(d[1].end=Object.assign({},f[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const p=n[2]+1,m=n[3]-n[2]-1;t.add(p,m,[])}}t.add(n[3]+1,0,[["exit",h,e]])}return i!==void 0&&(o.end=Object.assign({},Ji(e.events,i)),t.add(i,0,[["exit",o,e]]),o=void 0),o}function Zg(t,e,n,r,i){const o=[],s=Ji(e.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,e])),r.end=Object.assign({},s),o.push(["exit",r,e]),t.add(n+1,0,o)}function Ji(t,e){const n=t[e],r=n[0]==="enter"?"start":"end";return n[1][r]}const nL={tokenize:iL};function rL(){return{text:{91:nL}}}function iL(t,e,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),o)}function o(l){return kt(l)?(t.enter("taskListCheckValueUnchecked"),t.consume(l),t.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(t.enter("taskListCheckValueChecked"),t.consume(l),t.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),a):n(l)}function a(l){return Y(l)?e(l):lt(l)?t.check({tokenize:oL},e,n)(l):n(l)}}function oL(t,e,n){return ht(t,r,"whitespace");function r(i){return i===null?n(i):e(i)}}function sL(t){return P1([OF(),qF(),YF(t),QF(),rL()])}const aL={};function lL(t){const e=this,n=t||aL,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(sL(n)),o.push(AF()),s.push(EF(n))}function et(t,e){return Object.assign(t,{meta:{package:"@milkdown/preset-gfm",...e}}),t}const ep=fa("strike_through");et(ep,{displayName:"Attr<strikethrough>",group:"Strikethrough"});const ya=da("strike_through",t=>({parseDOM:[{tag:"del"},{style:"text-decoration",getAttrs:e=>e==="line-through"}],toDOM:e=>["del",t.get(ep.key)(e)],parseMarkdown:{match:e=>e.type==="delete",runner:(e,n,r)=>{e.openMark(r),e.next(n.children),e.closeMark(r)}},toMarkdown:{match:e=>e.type.name==="strike_through",runner:(e,n)=>{e.withMark(n,"delete")}}}));et(ya.mark,{displayName:"MarkSchema<strikethrough>",group:"Strikethrough"});et(ya.ctx,{displayName:"MarkSchemaCtx<strikethrough>",group:"Strikethrough"});const np=nt("ToggleStrikeThrough",t=>()=>Ic(ya.type(t)));et(np,{displayName:"Command<ToggleStrikethrough>",group:"Strikethrough"});const Ub=oe(t=>ua(/~([^~]+)~$/,ya.type(t)));et(Ub,{displayName:"InputRule<strikethrough>",group:"Strikethrough"});const rp=Oe("strikeThroughKeymap",{ToggleStrikethrough:{shortcuts:"Mod-Alt-x",command:t=>{const e=t.get(gt);return()=>e.call(np.key)}}});et(rp.ctx,{displayName:"KeymapCtx<strikethrough>",group:"Strikethrough"});et(rp.shortcuts,{displayName:"Keymap<strikethrough>",group:"Strikethrough"});function Kb(t,e=3,n=3){const r=Array(n).fill(0).map(()=>ka.type(t).createAndFill()),i=Array(n).fill(0).map(()=>Pc.type(t).createAndFill()),o=Array(e).fill(0).map((s,a)=>ba.type(t).create(null,a===0?i:r));return xa.type(t).create(null,o)}function Io(t){return HN(e=>e.type.spec.tableRole==="table")(t)}function Xi(t,e){const n=Io(e);if(!n)return;const r=xt.get(n.node);if(!(t<0||t>=r.width))return r.cellsInRect({left:t,right:t+1,top:0,bottom:r.height}).map(i=>{const o=n.node.nodeAt(i);if(!o)return;const s=i+n.start;return{pos:s,start:s+1,node:o}}).filter(i=>i!=null)}function Zi(t,e){const n=Io(e);if(!n)return;const r=xt.get(n.node);if(!(t<0||t>=r.height))return r.cellsInRect({left:0,right:r.width,top:t,bottom:t+1}).map(i=>{const o=n.node.nodeAt(i);if(!o)return;const s=i+n.start;return{pos:s,start:s+1,node:o}}).filter(i=>i!=null)}function cL(t){const e=Io(t);if(!e)return;const n=xt.get(e.node);return n.cellsInRect({left:0,right:n.width,top:0,bottom:n.height}).map(r=>{const i=e.node.nodeAt(r),o=r+e.start;return{pos:o,start:o+1,node:i}})}function uL(t){const e=cL(t.selection);if(e&&e[0]){const n=t.doc.resolve(e[0].pos),r=e[e.length-1];if(r){const i=t.doc.resolve(r.pos);return Oc(t.setSelection(new Tt(i,n)))}}return t}function Gb(t,e,{map:n,tableStart:r,table:i},o){const s=Array(o).fill(0).reduce((l,c,u)=>l+i.child(u).nodeSize,r),a=Array(n.width).fill(0).map((l,c)=>{const u=i.nodeAt(n.map[c]);return ka.type(t).createAndFill({alignment:u?.attrs.alignment})});return e.insert(s,ba.type(t).create(null,a)),e}function Yb(t){return e=>n=>{const r=Io(n.selection),i=t==="row";if(r){const o=xt.get(r.node);if(e>=0&&e<(i?o.height:o.width)){const s=o.positionAt(i?e:o.height-1,i?o.width-1:e,r.node),a=n.doc.resolve(r.start+s),l=i?Tt.rowSelection:Tt.colSelection,c=o.positionAt(i?e:0,i?0:e,r.node),u=n.doc.resolve(r.start+c);return Oc(n.setSelection(l(a,u)))}}return n}}const hL=Yb("row"),dL=Yb("col");function Qg(t){return t[0].map((e,n)=>t.map(r=>r[n]))}function Jb(t,e){const n=[],r=xt.get(t);for(let i=0;i<r.height;i++){const o=t.child(i),s=[];for(let a=0;a<r.width;a++){if(!e[i][a])continue;const l=r.map[i*r.width+a],c=e[i][a],u=t.nodeAt(l).type.createChecked(Object.assign({},c.attrs),c.content,c.marks);s.push(u)}n.push(o.type.createChecked(o.attrs,s,o.marks))}return t.type.createChecked(t.attrs,n,t.marks)}function Xb(t){const e=xt.get(t),n=[];for(let r=0;r<e.height;r++){const i=[],o={};for(let s=0;s<e.width;s++){const a=e.map[r*e.width+s],l=t.nodeAt(a),c=e.findCell(a);if(o[a]||c.top!==r){i.push(null);continue}o[a]=!0,i.push(l)}n.push(i)}return n}function Zb(t,e,n,r){const i=e[0]>n[0]?-1:1,o=t.splice(e[0],e.length),s=o.length%2===0?1:0;let a;return r===-1&&i===1?a=n[0]-1:r===1&&i===-1?a=n[n.length-1]-s+1:a=i===-1?n[0]:n[n.length-1]-s,t.splice(a,0,...o),t}function fL(t,e,n,r){let i=Qg(Xb(t.node));return i=Zb(i,e,n,r),i=Qg(i),Jb(t.node,i)}function pL(t,e,n,r){let i=Xb(t.node);return i=Zb(i,e,n,r),Jb(t.node,i)}function ty(t,e){let n=t,r=t;for(let u=t;u>=0;u--){const h=Xi(u,e.selection);h&&h.forEach(d=>{const f=d.node.attrs.colspan+u-1;f>=n&&(n=u),f>r&&(r=f)})}for(let u=t;u<=r;u++){const h=Xi(u,e.selection);h&&h.forEach(d=>{const f=d.node.attrs.colspan+u-1;d.node.attrs.colspan>1&&f>r&&(r=f)})}const i=[];for(let u=n;u<=r;u++){const h=Xi(u,e.selection);h&&h.length&&i.push(u)}n=i[0],r=i[i.length-1];const o=Xi(n,e.selection),s=Zi(0,e.selection),a=e.doc.resolve(o[o.length-1].pos);let l;for(let u=r;u>=n;u--){const h=Xi(u,e.selection);if(h&&h.length){for(let d=s.length-1;d>=0;d--)if(s[d].pos===h[0].pos){l=h[0];break}if(l)break}}const c=e.doc.resolve(l.pos);return{$anchor:a,$head:c,indexes:i}}function ey(t,e){let n=t,r=t;for(let u=t;u>=0;u--)Zi(u,e.selection).forEach(h=>{const d=h.node.attrs.rowspan+u-1;d>=n&&(n=u),d>r&&(r=d)});for(let u=t;u<=r;u++)Zi(u,e.selection).forEach(h=>{const d=h.node.attrs.rowspan+u-1;h.node.attrs.rowspan>1&&d>r&&(r=d)});const i=[];for(let u=n;u<=r;u++){const h=Zi(u,e.selection);h&&h.length&&i.push(u)}n=i[0],r=i[i.length-1];const o=Zi(n,e.selection),s=Xi(0,e.selection),a=e.doc.resolve(o[o.length-1].pos);let l;for(let u=r;u>=n;u--){const h=Zi(u,e.selection);if(h&&h.length){for(let d=s.length-1;d>=0;d--)if(s[d].pos===h[0].pos){l=h[0];break}if(l)break}}const c=e.doc.resolve(l.pos);return{$anchor:a,$head:c,indexes:i}}function mL(t,e,n,r=!0){const i=Io(t.selection);if(!i)return t;const{indexes:o}=ty(e,t),{indexes:s}=ty(n,t);if(o.includes(n))return t;const a=fL(i,o,s,0),l=Oc(t).replaceWith(i.pos,i.pos+i.node.nodeSize,a);if(!r)return l;const c=xt.get(a),u=i.start,h=n,d=c.positionAt(c.height-1,h,a),f=l.doc.resolve(u+d),p=Tt.colSelection,m=c.positionAt(0,h,a),g=l.doc.resolve(u+m);return l.setSelection(p(f,g))}function gL(t,e,n,r=!0){const i=Io(t.selection);if(!i)return t;const{indexes:o}=ey(e,t),{indexes:s}=ey(n,t);if(o.includes(n))return t;const a=pL(i,o,s,0),l=Oc(t).replaceWith(i.pos,i.pos+i.node.nodeSize,a);if(!r)return l;const c=xt.get(a),u=i.start,h=n,d=c.positionAt(h,c.width-1,a),f=l.doc.resolve(u+d),p=Tt.rowSelection,m=c.positionAt(h,0,a),g=l.doc.resolve(u+m);return l.setSelection(p(f,g))}const Rc=jI({tableGroup:"block",cellContent:"paragraph",cellAttributes:{alignment:{default:"left",getFromDOM:t=>t.style.textAlign||"left",setDOMAttr:(t,e)=>{e.style=`text-align: ${t||"left"}`}}}}),xa=Dt("table",()=>({...Rc.table,parseMarkdown:{match:t=>t.type==="table",runner:(t,e,n)=>{const r=e.align,i=e.children.map((o,s)=>({...o,align:r,isHeader:s===0}));t.openNode(n),t.next(i),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table",runner:(t,e)=>{var n;const r=(n=e.content.firstChild)==null?void 0:n.content;if(!r)return;const i=[];r.forEach(o=>{i.push(o.attrs.alignment)}),t.openNode("table",void 0,{align:i}),t.next(e.content),t.closeNode()}}}));et(xa.node,{displayName:"NodeSchema<table>",group:"Table"});et(xa.ctx,{displayName:"NodeSchemaCtx<table>",group:"Table"});const ba=Dt("table_row",()=>({...Rc.table_row,parseMarkdown:{match:t=>t.type==="tableRow",runner:(t,e,n)=>{const r=e.align,i=e.children.map((o,s)=>({...o,align:r[s],isHeader:e.isHeader}));t.openNode(n),t.next(i),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table_row",runner:(t,e)=>{t.openNode("tableRow"),t.next(e.content),t.closeNode()}}}));et(ba.node,{displayName:"NodeSchema<tableRow>",group:"Table"});et(ba.ctx,{displayName:"NodeSchemaCtx<tableRow>",group:"Table"});const ka=Dt("table_cell",()=>({...Rc.table_cell,parseMarkdown:{match:t=>t.type==="tableCell"&&!t.isHeader,runner:(t,e,n)=>{const r=e.align;t.openNode(n,{alignment:r}).openNode(t.schema.nodes.paragraph).next(e.children).closeNode().closeNode()}},toMarkdown:{match:t=>t.type.name==="table_cell",runner:(t,e)=>{t.openNode("tableCell").next(e.content).closeNode()}}}));et(ka.node,{displayName:"NodeSchema<tableCell>",group:"Table"});et(ka.ctx,{displayName:"NodeSchemaCtx<tableCell>",group:"Table"});const Pc=Dt("table_header",()=>({...Rc.table_header,parseMarkdown:{match:t=>t.type==="tableCell"&&!!t.isHeader,runner:(t,e,n)=>{const r=e.align;t.openNode(n,{alignment:r}),t.openNode(t.schema.nodes.paragraph),t.next(e.children),t.closeNode(),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table_header",runner:(t,e)=>{t.openNode("tableCell"),t.next(e.content),t.closeNode()}}}));et(Pc.node,{displayName:"NodeSchema<tableHeader>",group:"Table"});et(Pc.ctx,{displayName:"NodeSchemaCtx<tableHeader>",group:"Table"});const Qb=oe(t=>new ge(/^\|(?<col>\d+)[xX](?<row>\d+)\|\s$/,(e,n,r,i)=>{var o,s;const a=e.doc.resolve(r);if(!a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),xa.type(t)))return null;const l=Kb(t,Number((o=n.groups)==null?void 0:o.row),Number((s=n.groups)==null?void 0:s.col)),c=e.tr.replaceRangeWith(r,i,l);return c.setSelection(it.create(c.doc,r+3)).scrollIntoView()}));et(Qb,{displayName:"InputRule<insertTableInputRule>",group:"Table"});const ip=nt("GoToPrevTableCell",()=>()=>Fb(-1));et(ip,{displayName:"Command<goToPrevTableCellCommand>",group:"Table"});const op=nt("GoToNextTableCell",()=>()=>Fb(1));et(op,{displayName:"Command<goToNextTableCellCommand>",group:"Table"});const sp=nt("BreakTable",t=>()=>(e,n)=>{if(!Ee(e))return!1;const{$head:r}=e.selection,i=r.after(),o=e.tr.replaceWith(i,i,or.type(t).createAndFill());return o.setSelection(tt.near(o.doc.resolve(i),1)).scrollIntoView(),n?.(o),!0});et(sp,{displayName:"Command<breakTableCommand>",group:"Table"});const tk=nt("InsertTable",t=>({row:e,col:n}={})=>(r,i)=>{const{selection:o,tr:s}=r,{from:a}=o,l=Kb(t,e,n),c=s.replaceSelectionWith(l),u=tt.findFrom(c.doc.resolve(a),1,!0);return u&&c.setSelection(u),i?.(c),!0});et(tk,{displayName:"Command<insertTableCommand>",group:"Table"});const ek=nt("MoveRow",()=>({from:t,to:e}={})=>(n,r)=>{const{tr:i}=n;return!!r?.(gL(i,t??0,e??0,!0))});et(ek,{displayName:"Command<moveRowCommand>",group:"Table"});const nk=nt("MoveCol",()=>({from:t,to:e}={})=>(n,r)=>{const{tr:i}=n;return!!r?.(mL(i,t??0,e??0,!0))});et(nk,{displayName:"Command<moveColCommand>",group:"Table"});const rk=nt("SelectRow",()=>(t=0)=>(e,n)=>{const{tr:r}=e;return!!n?.(hL(t)(r))});et(rk,{displayName:"Command<selectRowCommand>",group:"Table"});const ik=nt("SelectCol",()=>(t=0)=>(e,n)=>{const{tr:r}=e;return!!n?.(dL(t)(r))});et(ik,{displayName:"Command<selectColCommand>",group:"Table"});const ok=nt("SelectTable",()=>()=>(t,e)=>{const{tr:n}=t;return!!e?.(uL(n))});et(ok,{displayName:"Command<selectTableCommand>",group:"Table"});const sk=nt("DeleteSelectedCells",()=>()=>(t,e)=>{const{selection:n}=t;if(!(n instanceof Tt))return!1;const r=n.isRowSelection(),i=n.isColSelection();return r&&i?NB(t,e):i?_B(t,e):vB(t,e)});et(sk,{displayName:"Command<deleteSelectedCellsCommand>",group:"Table"});const ak=nt("AddColBefore",()=>()=>CB);et(ak,{displayName:"Command<addColBeforeCommand>",group:"Table"});const lk=nt("AddColAfter",()=>()=>wB);et(lk,{displayName:"Command<addColAfterCommand>",group:"Table"});const ck=nt("AddRowBefore",t=>()=>(e,n)=>{if(!Ee(e))return!1;if(n){const r=jr(e);n(Gb(t,e.tr,r,r.top))}return!0});et(ck,{displayName:"Command<addRowBeforeCommand>",group:"Table"});const uk=nt("AddRowAfter",t=>()=>(e,n)=>{if(!Ee(e))return!1;if(n){const r=jr(e);n(Gb(t,e.tr,r,r.bottom))}return!0});et(uk,{displayName:"Command<addRowAfterCommand>",group:"Table"});const hk=nt("SetAlign",()=>(t="left")=>AB("alignment",t));et(hk,{displayName:"Command<setAlignCommand>",group:"Table"});const ap=Oe("tableKeymap",{NextCell:{shortcuts:["Mod-]","Tab"],command:t=>{const e=t.get(gt);return()=>e.call(op.key)}},PrevCell:{shortcuts:["Mod-[","Shift-Tab"],command:t=>{const e=t.get(gt);return()=>e.call(ip.key)}},ExitTable:{shortcuts:["Mod-Enter"],command:t=>{const e=t.get(gt);return()=>e.call(sp.key)}}});et(ap.ctx,{displayName:"KeymapCtx<table>",group:"Table"});et(ap.shortcuts,{displayName:"Keymap<table>",group:"Table"});const Yu="footnote_definition",ny="footnoteDefinition",lp=Dt("footnote_definition",()=>({group:"block",content:"block+",defining:!0,attrs:{label:{default:""}},parseDOM:[{tag:`dl[data-type="${Yu}"]`,getAttrs:t=>{if(!(t instanceof HTMLElement))throw pn(t);return{label:t.dataset.label}},contentElement:"dd"}],toDOM:t=>{const e=t.attrs.label;return["dl",{"data-label":e,"data-type":Yu},["dt",e],["dd",0]]},parseMarkdown:{match:({type:t})=>t===ny,runner:(t,e,n)=>{t.openNode(n,{label:e.label}).next(e.children).closeNode()}},toMarkdown:{match:t=>t.type.name===Yu,runner:(t,e)=>{t.openNode(ny,void 0,{label:e.attrs.label,identifier:e.attrs.label}).next(e.content).closeNode()}}}));et(lp.ctx,{displayName:"NodeSchemaCtx<footnodeDef>",group:"footnote"});et(lp.node,{displayName:"NodeSchema<footnodeDef>",group:"footnote"});const Ju="footnote_reference",cp=Dt("footnote_reference",()=>({group:"inline",inline:!0,atom:!0,attrs:{label:{default:""}},parseDOM:[{tag:`sup[data-type="${Ju}"]`,getAttrs:t=>{if(!(t instanceof HTMLElement))throw pn(t);return{label:t.dataset.label}}}],toDOM:t=>{const e=t.attrs.label;return["sup",{"data-label":e,"data-type":Ju},e]},parseMarkdown:{match:({type:t})=>t==="footnoteReference",runner:(t,e,n)=>{t.addNode(n,{label:e.label})}},toMarkdown:{match:t=>t.type.name===Ju,runner:(t,e)=>{t.addNode("footnoteReference",void 0,void 0,{label:e.attrs.label,identifier:e.attrs.label})}}}));et(cp.ctx,{displayName:"NodeSchemaCtx<footnodeRef>",group:"footnote"});et(cp.node,{displayName:"NodeSchema<footnodeRef>",group:"footnote"});const dk=Nn.extendSchema(t=>e=>{const n=t(e);return{...n,attrs:{...n.attrs,checked:{default:null}},parseDOM:[{tag:'li[data-item-type="task"]',getAttrs:r=>{if(!(r instanceof HTMLElement))throw pn(r);return{label:r.dataset.label,listType:r.dataset["list-type"],spread:r.dataset.spread,checked:r.dataset.checked?r.dataset.checked==="true":null}}},...n?.parseDOM||[]],toDOM:r=>n.toDOM&&r.attrs.checked==null?n.toDOM(r):["li",{"data-item-type":"task","data-label":r.attrs.label,"data-list-type":r.attrs.listType,"data-spread":r.attrs.spread,"data-checked":r.attrs.checked},0],parseMarkdown:{match:({type:r})=>r==="listItem",runner:(r,i,o)=>{if(i.checked==null){n.parseMarkdown.runner(r,i,o);return}const s=i.label!=null?`${i.label}.`:"•",a=i.checked!=null?!!i.checked:null,l=i.label!=null?"ordered":"bullet",c=i.spread!=null?`${i.spread}`:"true";r.openNode(o,{label:s,listType:l,spread:c,checked:a}),r.next(i.children),r.closeNode()}},toMarkdown:{match:r=>r.type.name==="list_item",runner:(r,i)=>{if(i.attrs.checked==null){n.toMarkdown.runner(r,i);return}const o=i.attrs.label,s=i.attrs.listType,a=i.attrs.spread==="true",l=i.attrs.checked;r.openNode("listItem",void 0,{label:o,listType:s,spread:a,checked:l}),r.next(i.content),r.closeNode()}}}});et(dk,{displayName:"NodeSchema<listItem>",group:"ListItem"});const fk=oe(()=>new ge(/^\[(?<checked>\s|x)\]\s$/,(t,e,n,r)=>{var i;const o=t.doc.resolve(n);let s=0,a=o.node(s);for(;a&&a.type.name!=="list_item";)s--,a=o.node(s);if(!a||a.attrs.checked!=null)return null;const l=((i=e.groups)==null?void 0:i.checked)==="x",c=o.before(s),u=t.tr;return u.deleteRange(n,r).setNodeMarkup(c,void 0,{...a.attrs,checked:l}),u}));et(fk,{displayName:"InputRule<wrapInTaskListInputRule>",group:"ListItem"});const yL=[rp,ap].flat(),xL=[Qb,fk],bL=[Ub],pk=Bn(t=>{const e=new ie("MILKDOWN_AUTO_INSERT_ZERO_SPACE"),n=i=>i.type===or.type(t),r=i=>n(i)&&i.nodeSize===2;return new me({key:e,props:{handleDOMEvents:{compositionstart(i){const{state:o,dispatch:s}=i,{tr:a,selection:l}=o,{$from:c}=l;return Ng.safari&&Ee(o)&&l.empty&&r(c.parent)&&s(a.insertText("⁠",c.start())),!1},compositionend(i){const{state:o,dispatch:s}=i,{tr:a,selection:l}=o,{$from:c}=l;return Ng.safari&&Ee(o)&&l.empty&&n(c.parent)&&c.parent.textContent.startsWith("⁠")&&s(a.delete(c.start(),c.start()+1)),!1}}}})});et(pk,{displayName:"Prose<autoInsertZeroSpaceInTablePlugin>",group:"Prose"});const mk=Bn(()=>uB({}));et(mk,{displayName:"Prose<columnResizingPlugin>",group:"Prose"});const gk=Bn(()=>OB());et(gk,{displayName:"Prose<tableEditingPlugin>",group:"Prose"});const up=ir("remarkGFM",()=>lL);et(up.plugin,{displayName:"Remark<remarkGFMPlugin>",group:"Remark"});et(up.options,{displayName:"RemarkConfig<remarkGFMPlugin>",group:"Remark"});const kL=[pk,mk,gk,up].flat(),CL=[dk,xa,ba,Pc,ka,lp,cp,ep,ya].flat(),wL=[op,ip,sp,tk,ek,nk,rk,ik,ok,sk,ck,uk,ak,lk,hk,np],SL=[CL,xL,bL,yL,kL,wL].flat(),yk=yS(null),xk=()=>xS(yk),_L=t=>Td.set(yk,t),TL="_editor_xk7tm_1",vL="_tableWrapper_xk7tm_74",AL="_ProseMirror_xk7tm_107",EL="_selectedCell_xk7tm_107",ML={editor:TL,tableWrapper:vL,ProseMirror:AL,selectedCell:EL};function NL(t){return t.charAt(0).toUpperCase()+t.slice(1)}const OL={note:'<svg class="octicon octicon-info mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>',tip:'<svg class="octicon octicon-light-bulb mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"></path></svg>',important:'<svg class="octicon octicon-report mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></svg>',warning:'<svg class="octicon octicon-alert mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></svg>',caution:'<svg class="octicon octicon-stop mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>'},IL=(t={})=>{const{markers:e=["TIP","NOTE","IMPORTANT","WARNING","CAUTION"],icons:n=OL,matchCaseSensitive:r=!0,titles:i={},classPrefix:o="markdown-alert",ignoreSquareBracket:s=!1}=t,a=e==="*"?"\\w+":e.join("|"),l=new RegExp(s?`^!(${a})\\s?`:`^\\[\\!(${a})\\]\\s`,r?"":"i");return c=>(rr(c,"blockquote",(u,h,d)=>{const p=u.children[0];if(!p)return;let m=p.children[0];if(!m||(!("value"in m)&&"children"in m&&m.children[0]&&(m=m.children[0]),m.type!=="text"))return;const g=m.value.match(l);if(!g)return;const y=g[1]?.toLowerCase(),C=g[2]?.trim()||(i[y]??NL(y)),T=n[y];h===void 0||!d||(m.value=m.value.slice(g[0].length).trimStart(),u.data={hName:"div",hProperties:{class:`${o} ${o}-${y}`}},u.children=[{type:"paragraph",data:{hName:"p",hProperties:{class:`${o}-title`}},children:[{type:"html",value:T},{type:"text",value:C}]},...u.children])}),c)};function BL(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(u){var h,d;return(d=(h=u.match(/[\t ]/g))===null||h===void 0?void 0:h.length)!==null&&d!==void 0?d:0})):a},[]);if(i.length){var o=new RegExp(` +[ ]{`+Math.min.apply(Math,i)+"}","g");r=r.map(function(a){return a.replace(o,` +`)})}r[0]=r[0].replace(/^\r?\n/,"");var s=r[0];return e.forEach(function(a,l){var c=s.match(/(?:^|\n)( *)$/),u=c?c[1]:"",h=a;typeof a=="string"&&a.includes(` +`)&&(h=String(a).split(` +`).map(function(d,f){return f===0?d:""+u+d}).join(` +`)),s+=h+r[l+1]}),s}var bk={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeUrl=t.BLANK_URL=void 0;var e=/^([^\w]*)(javascript|data|vbscript)/im,n=/&#(\w+)(^\w|;)?/g,r=/&(newline|tab);/gi,i=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,o=/^.+(:|:)/gim,s=[".","/"];t.BLANK_URL="about:blank";function a(u){return s.indexOf(u[0])>-1}function l(u){var h=u.replace(i,"");return h.replace(n,function(d,f){return String.fromCharCode(f)})}function c(u){if(!u)return t.BLANK_URL;var h=l(u).replace(r,"").replace(i,"").trim();if(!h)return t.BLANK_URL;if(a(h))return h;var d=h.match(o);if(!d)return h;var f=d[0];return e.test(f)?t.BLANK_URL:h}t.sanitizeUrl=c})(bk);var FL={value:()=>{}};function kk(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new _l(n)}function _l(t){this._=t}function LL(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}_l.prototype=kk.prototype={constructor:_l,on:function(t,e){var n=this._,r=LL(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(t=r[o]).type)&&(i=DL(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(i=(t=r[o]).type)n[i]=ry(n[i],t.name,e);else if(e==null)for(i in n)n[i]=ry(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new _l(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};function DL(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function ry(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=FL,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var rd="http://www.w3.org/1999/xhtml";const iy={svg:"http://www.w3.org/2000/svg",xhtml:rd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $c(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),iy.hasOwnProperty(e)?{space:iy[e],local:t}:t}function RL(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===rd&&e.documentElement.namespaceURI===rd?e.createElement(t):e.createElementNS(n,t)}}function PL(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ck(t){var e=$c(t);return(e.local?PL:RL)(e)}function $L(){}function hp(t){return t==null?$L:function(){return this.querySelector(t)}}function zL(t){typeof t!="function"&&(t=hp(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=new Array(s),l,c,u=0;u<s;++u)(l=o[u])&&(c=t.call(l,l.__data__,u,o))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new De(r,this._parents)}function qL(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function jL(){return[]}function wk(t){return t==null?jL:function(){return this.querySelectorAll(t)}}function WL(t){return function(){return qL(t.apply(this,arguments))}}function VL(t){typeof t=="function"?t=WL(t):t=wk(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(r.push(t.call(l,l.__data__,c,s)),i.push(l));return new De(r,i)}function Sk(t){return function(){return this.matches(t)}}function _k(t){return function(e){return e.matches(t)}}var HL=Array.prototype.find;function UL(t){return function(){return HL.call(this.children,t)}}function KL(){return this.firstElementChild}function GL(t){return this.select(t==null?KL:UL(typeof t=="function"?t:_k(t)))}var YL=Array.prototype.filter;function JL(){return Array.from(this.children)}function XL(t){return function(){return YL.call(this.children,t)}}function ZL(t){return this.selectAll(t==null?JL:XL(typeof t=="function"?t:_k(t)))}function QL(t){typeof t!="function"&&(t=Sk(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new De(r,this._parents)}function Tk(t){return new Array(t.length)}function tD(){return new De(this._enter||this._groups.map(Tk),this._parents)}function Gl(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Gl.prototype={constructor:Gl,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function eD(t){return function(){return t}}function nD(t,e,n,r,i,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new Gl(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function rD(t,e,n,r,i,o,s){var a,l,c=new Map,u=e.length,h=o.length,d=new Array(u),f;for(a=0;a<u;++a)(l=e[a])&&(d[a]=f=s.call(l,l.__data__,a,e)+"",c.has(f)?i[a]=l:c.set(f,l));for(a=0;a<h;++a)f=s.call(t,o[a],a,o)+"",(l=c.get(f))?(r[a]=l,l.__data__=o[a],c.delete(f)):n[a]=new Gl(t,o[a]);for(a=0;a<u;++a)(l=e[a])&&c.get(d[a])===l&&(i[a]=l)}function iD(t){return t.__data__}function oD(t,e){if(!arguments.length)return Array.from(this,iD);var n=e?rD:nD,r=this._parents,i=this._groups;typeof t!="function"&&(t=eD(t));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var u=r[c],h=i[c],d=h.length,f=sD(t.call(u,u&&u.__data__,c,r)),p=f.length,m=a[c]=new Array(p),g=s[c]=new Array(p),y=l[c]=new Array(d);n(u,h,m,g,y,f,e);for(var C=0,T=0,M,I;C<p;++C)if(M=m[C]){for(C>=T&&(T=C+1);!(I=g[T])&&++T<p;);M._next=I||null}}return s=new De(s,r),s._enter=a,s._exit=l,s}function sD(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function aD(){return new De(this._exit||this._groups.map(Tk),this._parents)}function lD(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function cD(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var c=n[l],u=r[l],h=c.length,d=a[l]=new Array(h),f,p=0;p<h;++p)(f=c[p]||u[p])&&(d[p]=f);for(;l<i;++l)a[l]=n[l];return new De(a,this._parents)}function uD(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function hD(t){t||(t=dD);function e(h,d){return h&&d?t(h.__data__,d.__data__):!h-!d}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],a=s.length,l=i[o]=new Array(a),c,u=0;u<a;++u)(c=s[u])&&(l[u]=c);l.sort(e)}return new De(i,this._parents).order()}function dD(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function fD(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function pD(){return Array.from(this)}function mD(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function gD(){let t=0;for(const e of this)++t;return t}function yD(){return!this.node()}function xD(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,s=i.length,a;o<s;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this}function bD(t){return function(){this.removeAttribute(t)}}function kD(t){return function(){this.removeAttributeNS(t.space,t.local)}}function CD(t,e){return function(){this.setAttribute(t,e)}}function wD(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function SD(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function _D(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function TD(t,e){var n=$c(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?kD:bD:typeof e=="function"?n.local?_D:SD:n.local?wD:CD)(n,e))}function vk(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function vD(t){return function(){this.style.removeProperty(t)}}function AD(t,e,n){return function(){this.style.setProperty(t,e,n)}}function ED(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function MD(t,e,n){return arguments.length>1?this.each((e==null?vD:typeof e=="function"?ED:AD)(t,e,n??"")):yo(this.node(),t)}function yo(t,e){return t.style.getPropertyValue(e)||vk(t).getComputedStyle(t,null).getPropertyValue(e)}function ND(t){return function(){delete this[t]}}function OD(t,e){return function(){this[t]=e}}function ID(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function BD(t,e){return arguments.length>1?this.each((e==null?ND:typeof e=="function"?ID:OD)(t,e)):this.node()[t]}function Ak(t){return t.trim().split(/^|\s+/)}function dp(t){return t.classList||new Ek(t)}function Ek(t){this._node=t,this._names=Ak(t.getAttribute("class")||"")}Ek.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Mk(t,e){for(var n=dp(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Nk(t,e){for(var n=dp(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function FD(t){return function(){Mk(this,t)}}function LD(t){return function(){Nk(this,t)}}function DD(t,e){return function(){(e.apply(this,arguments)?Mk:Nk)(this,t)}}function RD(t,e){var n=Ak(t+"");if(arguments.length<2){for(var r=dp(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?DD:e?FD:LD)(n,e))}function PD(){this.textContent=""}function $D(t){return function(){this.textContent=t}}function zD(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function qD(t){return arguments.length?this.each(t==null?PD:(typeof t=="function"?zD:$D)(t)):this.node().textContent}function jD(){this.innerHTML=""}function WD(t){return function(){this.innerHTML=t}}function VD(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function HD(t){return arguments.length?this.each(t==null?jD:(typeof t=="function"?VD:WD)(t)):this.node().innerHTML}function UD(){this.nextSibling&&this.parentNode.appendChild(this)}function KD(){return this.each(UD)}function GD(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function YD(){return this.each(GD)}function JD(t){var e=typeof t=="function"?t:Ck(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function XD(){return null}function ZD(t,e){var n=typeof t=="function"?t:Ck(t),r=e==null?XD:typeof e=="function"?e:hp(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function QD(){var t=this.parentNode;t&&t.removeChild(this)}function t2(){return this.each(QD)}function e2(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function n2(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function r2(t){return this.select(t?n2:e2)}function i2(t){return arguments.length?this.property("__data__",t):this.node().__data__}function o2(t){return function(e){t.call(this,e,this.__data__)}}function s2(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function a2(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function l2(t,e,n){return function(){var r=this.__on,i,o=o2(e);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function c2(t,e,n){var r=s2(t+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(i=0,u=a[l];i<o;++i)if((s=r[i]).type===u.type&&s.name===u.name)return u.value}return}for(a=e?l2:a2,i=0;i<o;++i)this.each(a(r[i],e,n));return this}function Ok(t,e,n){var r=vk(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function u2(t,e){return function(){return Ok(this,t,e)}}function h2(t,e){return function(){return Ok(this,t,e.apply(this,arguments))}}function d2(t,e){return this.each((typeof e=="function"?h2:u2)(t,e))}function*f2(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var Ik=[null];function De(t,e){this._groups=t,this._parents=e}function Ca(){return new De([[document.documentElement]],Ik)}function p2(){return this}De.prototype=Ca.prototype={constructor:De,select:zL,selectAll:VL,selectChild:GL,selectChildren:ZL,filter:QL,data:oD,enter:tD,exit:aD,join:lD,merge:cD,selection:p2,order:uD,sort:hD,call:fD,nodes:pD,node:mD,size:gD,empty:yD,each:xD,attr:TD,style:MD,property:BD,classed:RD,text:qD,html:HD,raise:KD,lower:YD,append:JD,insert:ZD,remove:t2,clone:r2,datum:i2,on:c2,dispatch:d2,[Symbol.iterator]:f2};function qe(t){return typeof t=="string"?new De([[document.querySelector(t)]],[document.documentElement]):new De([[t]],Ik)}function fp(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Bk(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function wa(){}var Js=.7,Yl=1/Js,co="\\s*([+-]?\\d+)\\s*",Xs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",m2=/^#([0-9a-f]{3,8})$/,g2=new RegExp(`^rgb\\(${co},${co},${co}\\)$`),y2=new RegExp(`^rgb\\(${vn},${vn},${vn}\\)$`),x2=new RegExp(`^rgba\\(${co},${co},${co},${Xs}\\)$`),b2=new RegExp(`^rgba\\(${vn},${vn},${vn},${Xs}\\)$`),k2=new RegExp(`^hsl\\(${Xs},${vn},${vn}\\)$`),C2=new RegExp(`^hsla\\(${Xs},${vn},${vn},${Xs}\\)$`),oy={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};fp(wa,Zs,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:sy,formatHex:sy,formatHex8:w2,formatHsl:S2,formatRgb:ay,toString:ay});function sy(){return this.rgb().formatHex()}function w2(){return this.rgb().formatHex8()}function S2(){return Fk(this).formatHsl()}function ay(){return this.rgb().formatRgb()}function Zs(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=m2.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?ly(e):n===3?new _e(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?$a(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?$a(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=g2.exec(t))?new _e(e[1],e[2],e[3],1):(e=y2.exec(t))?new _e(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=x2.exec(t))?$a(e[1],e[2],e[3],e[4]):(e=b2.exec(t))?$a(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=k2.exec(t))?hy(e[1],e[2]/100,e[3]/100,1):(e=C2.exec(t))?hy(e[1],e[2]/100,e[3]/100,e[4]):oy.hasOwnProperty(t)?ly(oy[t]):t==="transparent"?new _e(NaN,NaN,NaN,0):null}function ly(t){return new _e(t>>16&255,t>>8&255,t&255,1)}function $a(t,e,n,r){return r<=0&&(t=e=n=NaN),new _e(t,e,n,r)}function _2(t){return t instanceof wa||(t=Zs(t)),t?(t=t.rgb(),new _e(t.r,t.g,t.b,t.opacity)):new _e}function id(t,e,n,r){return arguments.length===1?_2(t):new _e(t,e,n,r??1)}function _e(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}fp(_e,id,Bk(wa,{brighter(t){return t=t==null?Yl:Math.pow(Yl,t),new _e(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Js:Math.pow(Js,t),new _e(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new _e(gi(this.r),gi(this.g),gi(this.b),Jl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cy,formatHex:cy,formatHex8:T2,formatRgb:uy,toString:uy}));function cy(){return`#${si(this.r)}${si(this.g)}${si(this.b)}`}function T2(){return`#${si(this.r)}${si(this.g)}${si(this.b)}${si((isNaN(this.opacity)?1:this.opacity)*255)}`}function uy(){const t=Jl(this.opacity);return`${t===1?"rgb(":"rgba("}${gi(this.r)}, ${gi(this.g)}, ${gi(this.b)}${t===1?")":`, ${t})`}`}function Jl(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function gi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function si(t){return t=gi(t),(t<16?"0":"")+t.toString(16)}function hy(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new on(t,e,n,r)}function Fk(t){if(t instanceof on)return new on(t.h,t.s,t.l,t.opacity);if(t instanceof wa||(t=Zs(t)),!t)return new on;if(t instanceof on)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(e===o?s=(n-r)/a+(n<r)*6:n===o?s=(r-e)/a+2:s=(e-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new on(s,a,l,t.opacity)}function v2(t,e,n,r){return arguments.length===1?Fk(t):new on(t,e,n,r??1)}function on(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}fp(on,v2,Bk(wa,{brighter(t){return t=t==null?Yl:Math.pow(Yl,t),new on(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Js:Math.pow(Js,t),new on(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new _e(Xu(t>=240?t-240:t+120,i,r),Xu(t,i,r),Xu(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new on(dy(this.h),za(this.s),za(this.l),Jl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Jl(this.opacity);return`${t===1?"hsl(":"hsla("}${dy(this.h)}, ${za(this.s)*100}%, ${za(this.l)*100}%${t===1?")":`, ${t})`}`}}));function dy(t){return t=(t||0)%360,t<0?t+360:t}function za(t){return Math.max(0,Math.min(1,t||0))}function Xu(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const pp=t=>()=>t;function Lk(t,e){return function(n){return t+n*e}}function A2(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function cj(t,e){var n=e-t;return n?Lk(t,n>180||n<-180?n-360*Math.round(n/360):n):pp(isNaN(t)?e:t)}function E2(t){return(t=+t)==1?Dk:function(e,n){return n-e?A2(e,n,t):pp(isNaN(e)?n:e)}}function Dk(t,e){var n=e-t;return n?Lk(t,n):pp(isNaN(t)?e:t)}const fy=function t(e){var n=E2(e);function r(i,o){var s=n((i=id(i)).r,(o=id(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),c=Dk(i.opacity,o.opacity);return function(u){return i.r=s(u),i.g=a(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=t,r}(1);function wr(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var od=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zu=new RegExp(od.source,"g");function M2(t){return function(){return t}}function N2(t){return function(e){return t(e)+""}}function O2(t,e){var n=od.lastIndex=Zu.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=od.exec(t))&&(i=Zu.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:wr(r,i)})),n=Zu.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?N2(l[0].x):M2(e):(e=l.length,function(c){for(var u=0,h;u<e;++u)a[(h=l[u]).i]=h.x(c);return a.join("")})}var py=180/Math.PI,sd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Rk(t,e,n,r,i,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),t*r<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*py,skewX:Math.atan(l)*py,scaleX:s,scaleY:a}}var qa;function I2(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?sd:Rk(e.a,e.b,e.c,e.d,e.e,e.f)}function B2(t){return t==null||(qa||(qa=document.createElementNS("http://www.w3.org/2000/svg","g")),qa.setAttribute("transform",t),!(t=qa.transform.baseVal.consolidate()))?sd:(t=t.matrix,Rk(t.a,t.b,t.c,t.d,t.e,t.f))}function Pk(t,e,n,r){function i(c){return c.length?c.pop()+" ":""}function o(c,u,h,d,f,p){if(c!==h||u!==d){var m=f.push("translate(",null,e,null,n);p.push({i:m-4,x:wr(c,h)},{i:m-2,x:wr(u,d)})}else(h||d)&&f.push("translate("+h+e+d+n)}function s(c,u,h,d){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),d.push({i:h.push(i(h)+"rotate(",null,r)-2,x:wr(c,u)})):u&&h.push(i(h)+"rotate("+u+r)}function a(c,u,h,d){c!==u?d.push({i:h.push(i(h)+"skewX(",null,r)-2,x:wr(c,u)}):u&&h.push(i(h)+"skewX("+u+r)}function l(c,u,h,d,f,p){if(c!==h||u!==d){var m=f.push(i(f)+"scale(",null,",",null,")");p.push({i:m-4,x:wr(c,h)},{i:m-2,x:wr(u,d)})}else(h!==1||d!==1)&&f.push(i(f)+"scale("+h+","+d+")")}return function(c,u){var h=[],d=[];return c=t(c),u=t(u),o(c.translateX,c.translateY,u.translateX,u.translateY,h,d),s(c.rotate,u.rotate,h,d),a(c.skewX,u.skewX,h,d),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,h,d),c=u=null,function(f){for(var p=-1,m=d.length,g;++p<m;)h[(g=d[p]).i]=g.x(f);return h.join("")}}}var F2=Pk(I2,"px, ","px)","deg)"),L2=Pk(B2,", ",")",")"),xo=0,bs=0,Wo=0,$k=1e3,Xl,ks,Zl=0,Ai=0,zc=0,Qs=typeof performance=="object"&&performance.now?performance:Date,zk=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function mp(){return Ai||(zk(D2),Ai=Qs.now()+zc)}function D2(){Ai=0}function Ql(){this._call=this._time=this._next=null}Ql.prototype=qk.prototype={constructor:Ql,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?mp():+n)+(e==null?0:+e),!this._next&&ks!==this&&(ks?ks._next=this:Xl=this,ks=this),this._call=t,this._time=n,ad()},stop:function(){this._call&&(this._call=null,this._time=1/0,ad())}};function qk(t,e,n){var r=new Ql;return r.restart(t,e,n),r}function R2(){mp(),++xo;for(var t=Xl,e;t;)(e=Ai-t._time)>=0&&t._call.call(void 0,e),t=t._next;--xo}function my(){Ai=(Zl=Qs.now())+zc,xo=bs=0;try{R2()}finally{xo=0,$2(),Ai=0}}function P2(){var t=Qs.now(),e=t-Zl;e>$k&&(zc-=e,Zl=t)}function $2(){for(var t,e=Xl,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Xl=n);ks=t,ad(r)}function ad(t){if(!xo){bs&&(bs=clearTimeout(bs));var e=t-Ai;e>24?(t<1/0&&(bs=setTimeout(my,t-Qs.now()-zc)),Wo&&(Wo=clearInterval(Wo))):(Wo||(Zl=Qs.now(),Wo=setInterval(P2,$k)),xo=1,zk(my))}}function gy(t,e,n){var r=new Ql;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var z2=kk("start","end","cancel","interrupt"),q2=[],jk=0,yy=1,ld=2,Tl=3,xy=4,cd=5,vl=6;function qc(t,e,n,r,i,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;j2(t,n,{name:e,index:r,group:i,on:z2,tween:q2,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:jk})}function gp(t,e){var n=yn(t,e);if(n.state>jk)throw new Error("too late; already scheduled");return n}function Ln(t,e){var n=yn(t,e);if(n.state>Tl)throw new Error("too late; already running");return n}function yn(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function j2(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=qk(o,0,n.time);function o(c){n.state=yy,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var u,h,d,f;if(n.state!==yy)return l();for(u in r)if(f=r[u],f.name===n.name){if(f.state===Tl)return gy(s);f.state===xy?(f.state=vl,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete r[u]):+u<e&&(f.state=vl,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete r[u])}if(gy(function(){n.state===Tl&&(n.state=xy,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=ld,n.on.call("start",t,t.__data__,n.index,n.group),n.state===ld){for(n.state=Tl,i=new Array(d=n.tween.length),u=0,h=-1;u<d;++u)(f=n.tween[u].value.call(t,t.__data__,n.index,n.group))&&(i[++h]=f);i.length=h+1}}function a(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=cd,1),h=-1,d=i.length;++h<d;)i[h].call(t,u);n.state===cd&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=vl,n.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function W2(t,e){var n=t.__transition,r,i,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((r=n[s]).name!==e){o=!1;continue}i=r.state>ld&&r.state<cd,r.state=vl,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[s]}o&&delete t.__transition}}function V2(t){return this.each(function(){W2(this,t)})}function H2(t,e){var n,r;return function(){var i=Ln(this,t),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function U2(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=Ln(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:e,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=a;break}l===c&&i.push(a)}o.tween=i}}function K2(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=yn(this.node(),n).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===t)return s.value;return null}return this.each((e==null?H2:U2)(n,t,e))}function yp(t,e,n){var r=t._id;return t.each(function(){var i=Ln(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return yn(i,r).value[e]}}function Wk(t,e){var n;return(typeof e=="number"?wr:e instanceof Zs?fy:(n=Zs(e))?(e=n,fy):O2)(t,e)}function G2(t){return function(){this.removeAttribute(t)}}function Y2(t){return function(){this.removeAttributeNS(t.space,t.local)}}function J2(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttribute(t);return s===i?null:s===r?o:o=e(r=s,n)}}function X2(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===r?o:o=e(r=s,n)}}function Z2(t,e,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function Q2(t,e,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function t5(t,e){var n=$c(t),r=n==="transform"?L2:Wk;return this.attrTween(t,typeof e=="function"?(n.local?Q2:Z2)(n,r,yp(this,"attr."+t,e)):e==null?(n.local?Y2:G2)(n):(n.local?X2:J2)(n,r,e))}function e5(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function n5(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function r5(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&n5(t,o)),n}return i._value=e,i}function i5(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&e5(t,o)),n}return i._value=e,i}function o5(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=$c(t);return this.tween(n,(r.local?r5:i5)(r,e))}function s5(t,e){return function(){gp(this,t).delay=+e.apply(this,arguments)}}function a5(t,e){return e=+e,function(){gp(this,t).delay=e}}function l5(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?s5:a5)(e,t)):yn(this.node(),e).delay}function c5(t,e){return function(){Ln(this,t).duration=+e.apply(this,arguments)}}function u5(t,e){return e=+e,function(){Ln(this,t).duration=e}}function h5(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?c5:u5)(e,t)):yn(this.node(),e).duration}function d5(t,e){if(typeof e!="function")throw new Error;return function(){Ln(this,t).ease=e}}function f5(t){var e=this._id;return arguments.length?this.each(d5(e,t)):yn(this.node(),e).ease}function p5(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Ln(this,t).ease=n}}function m5(t){if(typeof t!="function")throw new Error;return this.each(p5(this._id,t))}function g5(t){typeof t!="function"&&(t=Sk(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new nr(r,this._parents,this._name,this._id)}function y5(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l=e[a],c=n[a],u=l.length,h=s[a]=new Array(u),d,f=0;f<u;++f)(d=l[f]||c[f])&&(h[f]=d);for(;a<r;++a)s[a]=e[a];return new nr(s,this._parents,this._name,this._id)}function x5(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function b5(t,e,n){var r,i,o=x5(e)?gp:Ln;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}function k5(t,e){var n=this._id;return arguments.length<2?yn(this.node(),n).on.on(t):this.each(b5(n,t,e))}function C5(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function w5(){return this.on("end.remove",C5(this._id))}function S5(t){var e=this._name,n=this._id;typeof t!="function"&&(t=hp(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a=r[s],l=a.length,c=o[s]=new Array(l),u,h,d=0;d<l;++d)(u=a[d])&&(h=t.call(u,u.__data__,d,a))&&("__data__"in u&&(h.__data__=u.__data__),c[d]=h,qc(c[d],e,n,d,c,yn(u,n)));return new nr(o,this._parents,e,n)}function _5(t){var e=this._name,n=this._id;typeof t!="function"&&(t=wk(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l=r[a],c=l.length,u,h=0;h<c;++h)if(u=l[h]){for(var d=t.call(u,u.__data__,h,l),f,p=yn(u,n),m=0,g=d.length;m<g;++m)(f=d[m])&&qc(f,e,n,m,d,p);o.push(d),s.push(u)}return new nr(o,s,e,n)}var T5=Ca.prototype.constructor;function v5(){return new T5(this._groups,this._parents)}function A5(t,e){var n,r,i;return function(){var o=yo(this,t),s=(this.style.removeProperty(t),yo(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}function Vk(t){return function(){this.style.removeProperty(t)}}function E5(t,e,n){var r,i=n+"",o;return function(){var s=yo(this,t);return s===i?null:s===r?o:o=e(r=s,n)}}function M5(t,e,n){var r,i,o;return function(){var s=yo(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),yo(this,t))),s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a))}}function N5(t,e){var n,r,i,o="style."+e,s="end."+o,a;return function(){var l=Ln(this,t),c=l.on,u=l.value[o]==null?a||(a=Vk(e)):void 0;(c!==n||i!==u)&&(r=(n=c).copy()).on(s,i=u),l.on=r}}function O5(t,e,n){var r=(t+="")=="transform"?F2:Wk;return e==null?this.styleTween(t,A5(t,r)).on("end.style."+t,Vk(t)):typeof e=="function"?this.styleTween(t,M5(t,r,yp(this,"style."+t,e))).each(N5(this._id,t)):this.styleTween(t,E5(t,r,e),n).on("end.style."+t,null)}function I5(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function B5(t,e,n){var r,i;function o(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&I5(t,s,n)),r}return o._value=e,o}function F5(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,B5(t,e,n??""))}function L5(t){return function(){this.textContent=t}}function D5(t){return function(){var e=t(this);this.textContent=e??""}}function R5(t){return this.tween("text",typeof t=="function"?D5(yp(this,"text",t)):L5(t==null?"":t+""))}function P5(t){return function(e){this.textContent=t.call(this,e)}}function $5(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&P5(i)),e}return r._value=t,r}function z5(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,$5(t))}function q5(){for(var t=this._name,e=this._id,n=Hk(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var u=yn(l,e);qc(l,t,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new nr(r,this._parents,t,n)}function j5(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--i===0&&o()}};n.each(function(){var c=Ln(this,r),u=c.on;u!==t&&(e=(t=u).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),i===0&&o()})}var W5=0;function nr(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Hk(){return++W5}var Vn=Ca.prototype;nr.prototype={constructor:nr,select:S5,selectAll:_5,selectChild:Vn.selectChild,selectChildren:Vn.selectChildren,filter:g5,merge:y5,selection:v5,transition:q5,call:Vn.call,nodes:Vn.nodes,node:Vn.node,size:Vn.size,empty:Vn.empty,each:Vn.each,on:k5,attr:t5,attrTween:o5,style:O5,styleTween:F5,text:R5,textTween:z5,remove:w5,tween:K2,delay:l5,duration:h5,ease:f5,easeVarying:m5,end:j5,[Symbol.iterator]:Vn[Symbol.iterator]};function V5(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var H5={time:null,delay:0,duration:250,ease:V5};function U5(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function K5(t){var e,n;t instanceof nr?(e=t._id,t=t._name):(e=Hk(),(n=H5).time=mp(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&qc(l,t,e,c,s,n||U5(l,e));return new nr(r,this._parents,t,e)}Ca.prototype.interrupt=V2;Ca.prototype.transition=K5;const uj=Math.abs,hj=Math.atan2,dj=Math.cos,fj=Math.max,pj=Math.min,mj=Math.sin,gj=Math.sqrt,by=1e-12,xp=Math.PI,ky=xp/2,yj=2*xp;function xj(t){return t>1?0:t<-1?xp:Math.acos(t)}function bj(t){return t>=1?ky:t<=-1?-ky:Math.asin(t)}function Uk(t){this._context=t}Uk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function G5(t){return new Uk(t)}class Kk{constructor(e,n){this._context=e,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,n){switch(e=+e,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}}function Y5(t){return new Kk(t,!0)}function J5(t){return new Kk(t,!1)}function Lr(){}function tc(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function jc(t){this._context=t}jc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:tc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:tc(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function X5(t){return new jc(t)}function Gk(t){this._context=t}Gk.prototype={areaStart:Lr,areaEnd:Lr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:tc(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Z5(t){return new Gk(t)}function Yk(t){this._context=t}Yk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:tc(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Q5(t){return new Yk(t)}function Jk(t,e){this._basis=new jc(t),this._beta=e}Jk.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r=t[0],i=e[0],o=t[n]-r,s=e[n]-i,a=-1,l;++a<=n;)l=a/n,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*o),this._beta*e[a]+(1-this._beta)*(i+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const tR=function t(e){function n(r){return e===1?new jc(r):new Jk(r,e)}return n.beta=function(r){return t(+r)},n}(.85);function ec(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function bp(t,e){this._context=t,this._k=(1-e)/6}bp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ec(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ec(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const eR=function t(e){function n(r){return new bp(r,e)}return n.tension=function(r){return t(+r)},n}(0);function kp(t,e){this._context=t,this._k=(1-e)/6}kp.prototype={areaStart:Lr,areaEnd:Lr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ec(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const nR=function t(e){function n(r){return new kp(r,e)}return n.tension=function(r){return t(+r)},n}(0);function Cp(t,e){this._context=t,this._k=(1-e)/6}Cp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ec(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const rR=function t(e){function n(r){return new Cp(r,e)}return n.tension=function(r){return t(+r)},n}(0);function wp(t,e,n){var r=t._x1,i=t._y1,o=t._x2,s=t._y2;if(t._l01_a>by){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>by){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/u,s=(s*c+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,o,s,t._x2,t._y2)}function Xk(t,e){this._context=t,this._alpha=e}Xk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:wp(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const iR=function t(e){function n(r){return e?new Xk(r,e):new bp(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function Zk(t,e){this._context=t,this._alpha=e}Zk.prototype={areaStart:Lr,areaEnd:Lr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:wp(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const oR=function t(e){function n(r){return e?new Zk(r,e):new kp(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function Qk(t,e){this._context=t,this._alpha=e}Qk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wp(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const sR=function t(e){function n(r){return e?new Qk(r,e):new Cp(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function tC(t){this._context=t}tC.prototype={areaStart:Lr,areaEnd:Lr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function aR(t){return new tC(t)}function Cy(t){return t<0?-1:1}function wy(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),s=(n-t._y1)/(i||r<0&&-0),a=(o*i+s*r)/(r+i);return(Cy(o)+Cy(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Sy(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Qu(t,e,n){var r=t._x0,i=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*e,o-a,s-a*n,o,s)}function nc(t){this._context=t}nc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Qu(this,this._t0,Sy(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Qu(this,Sy(this,n=wy(this,t,e)),n);break;default:Qu(this,this._t0,n=wy(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function eC(t){this._context=new nC(t)}(eC.prototype=Object.create(nc.prototype)).point=function(t,e){nc.prototype.point.call(this,e,t)};function nC(t){this._context=t}nC.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}};function lR(t){return new nc(t)}function cR(t){return new eC(t)}function rC(t){this._context=t}rC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var r=_y(t),i=_y(e),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[s],e[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function _y(t){var e,n=t.length-1,r,i=new Array(n),o=new Array(n),s=new Array(n);for(i[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,o[n-1]=7,s[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/o[e-1],o[e]-=r,s[e]-=r*s[e-1];for(i[n-1]=s[n-1]/o[n-1],e=n-2;e>=0;--e)i[e]=(s[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function uR(t){return new rC(t)}function Wc(t,e){this._context=t,this._t=e}Wc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function hR(t){return new Wc(t,.5)}function dR(t){return new Wc(t,0)}function fR(t){return new Wc(t,1)}function Cs(t,e,n){this.k=t,this.x=e,this.y=n}Cs.prototype={constructor:Cs,scale:function(t){return t===1?this:new Cs(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Cs(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Cs.prototype;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:iC,setPrototypeOf:Ty,isFrozen:pR,getPrototypeOf:mR,getOwnPropertyDescriptor:oC}=Object;let{freeze:pe,seal:fn,create:sC}=Object,{apply:ud,construct:hd}=typeof Reflect<"u"&&Reflect;pe||(pe=function(e){return e});fn||(fn=function(e){return e});ud||(ud=function(e,n,r){return e.apply(n,r)});hd||(hd=function(e,n){return new e(...n)});const ja=Ge(Array.prototype.forEach),vy=Ge(Array.prototype.pop),Vo=Ge(Array.prototype.push),Al=Ge(String.prototype.toLowerCase),th=Ge(String.prototype.toString),gR=Ge(String.prototype.match),Ho=Ge(String.prototype.replace),yR=Ge(String.prototype.indexOf),xR=Ge(String.prototype.trim),Ie=Ge(RegExp.prototype.test),Uo=bR(TypeError);function Ge(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return ud(t,e,r)}}function bR(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return hd(t,n)}}function rt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Al;Ty&&Ty(t,null);let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const o=n(i);o!==i&&(pR(e)||(e[r]=o),i=o)}t[i]=!0}return t}function $i(t){const e=sC(null);for(const[n,r]of iC(t))oC(t,n)!==void 0&&(e[n]=r);return e}function Wa(t,e){for(;t!==null;){const r=oC(t,e);if(r){if(r.get)return Ge(r.get);if(typeof r.value=="function")return Ge(r.value)}t=mR(t)}function n(r){return console.warn("fallback value for",r),null}return n}const Ay=pe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),eh=pe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),nh=pe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),kR=pe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),rh=pe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),CR=pe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ey=pe(["#text"]),My=pe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),ih=pe(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ny=pe(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Va=pe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),wR=fn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),SR=fn(/<%[\w\W]*|[\w\W]*%>/gm),_R=fn(/\${[\w\W]*}/gm),TR=fn(/^data-[\-\w.\u00B7-\uFFFF]/),vR=fn(/^aria-[\-\w]+$/),aC=fn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),AR=fn(/^(?:\w+script|data):/i),ER=fn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),lC=fn(/^html$/i);var Oy=Object.freeze({__proto__:null,MUSTACHE_EXPR:wR,ERB_EXPR:SR,TMPLIT_EXPR:_R,DATA_ATTR:TR,ARIA_ATTR:vR,IS_ALLOWED_URI:aC,IS_SCRIPT_OR_DATA:AR,ATTR_WHITESPACE:ER,DOCTYPE_NAME:lC});const MR=function(){return typeof window>"u"?null:window},NR=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function cC(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:MR();const e=W=>cC(W);if(e.version="3.0.6",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;let{document:n}=t;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:d,trustedTypes:f}=t,p=l.prototype,m=Wa(p,"cloneNode"),g=Wa(p,"nextSibling"),y=Wa(p,"childNodes"),C=Wa(p,"parentNode");if(typeof s=="function"){const W=n.createElement("template");W.content&&W.content.ownerDocument&&(n=W.content.ownerDocument)}let T,M="";const{implementation:I,createNodeIterator:S,createDocumentFragment:N,getElementsByTagName:Z}=n,{importNode:R}=r;let _={};e.isSupported=typeof iC=="function"&&typeof C=="function"&&I&&I.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:P,ERB_EXPR:z,TMPLIT_EXPR:dt,DATA_ATTR:bt,ARIA_ATTR:at,IS_SCRIPT_OR_DATA:Ct,ATTR_WHITESPACE:Nt}=Oy;let{IS_ALLOWED_URI:Rt}=Oy,ot=null;const b=rt({},[...Ay,...eh,...nh,...rh,...Ey]);let yt=null;const Pe=rt({},[...My,...ih,...Ny,...Va]);let x=Object.seal(sC(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),zt=null,Xe=null,Ot=!0,Rn=!0,Ze=!1,Pn=!0,ye=!1,Qe=!1,Ro=!1,Po=!1,$n=!1,Vr=!1,Hr=!1,va=!0,$o=!1;const Aa="user-content-";let zo=!0,Ur=!1,lr={},cr=null;const Ea=rt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let v=null;const F=rt({},["audio","video","img","source","image","track"]);let J=null;const st=rt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ft="http://www.w3.org/1998/Math/MathML",Ut="http://www.w3.org/2000/svg",qt="http://www.w3.org/1999/xhtml";let Kt=qt,zn=!1,qn=null;const se=rt({},[ft,Ut,qt],th);let xe=null;const tn=["application/xhtml+xml","text/html"],Uw="text/html";let Pt=null,Di=null;const Kw=n.createElement("form"),Kp=function(k){return k instanceof RegExp||k instanceof Function},iu=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Di&&Di===k)){if((!k||typeof k!="object")&&(k={}),k=$i(k),xe=tn.indexOf(k.PARSER_MEDIA_TYPE)===-1?xe=Uw:xe=k.PARSER_MEDIA_TYPE,Pt=xe==="application/xhtml+xml"?th:Al,ot="ALLOWED_TAGS"in k?rt({},k.ALLOWED_TAGS,Pt):b,yt="ALLOWED_ATTR"in k?rt({},k.ALLOWED_ATTR,Pt):Pe,qn="ALLOWED_NAMESPACES"in k?rt({},k.ALLOWED_NAMESPACES,th):se,J="ADD_URI_SAFE_ATTR"in k?rt($i(st),k.ADD_URI_SAFE_ATTR,Pt):st,v="ADD_DATA_URI_TAGS"in k?rt($i(F),k.ADD_DATA_URI_TAGS,Pt):F,cr="FORBID_CONTENTS"in k?rt({},k.FORBID_CONTENTS,Pt):Ea,zt="FORBID_TAGS"in k?rt({},k.FORBID_TAGS,Pt):{},Xe="FORBID_ATTR"in k?rt({},k.FORBID_ATTR,Pt):{},lr="USE_PROFILES"in k?k.USE_PROFILES:!1,Ot=k.ALLOW_ARIA_ATTR!==!1,Rn=k.ALLOW_DATA_ATTR!==!1,Ze=k.ALLOW_UNKNOWN_PROTOCOLS||!1,Pn=k.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ye=k.SAFE_FOR_TEMPLATES||!1,Qe=k.WHOLE_DOCUMENT||!1,$n=k.RETURN_DOM||!1,Vr=k.RETURN_DOM_FRAGMENT||!1,Hr=k.RETURN_TRUSTED_TYPE||!1,Po=k.FORCE_BODY||!1,va=k.SANITIZE_DOM!==!1,$o=k.SANITIZE_NAMED_PROPS||!1,zo=k.KEEP_CONTENT!==!1,Ur=k.IN_PLACE||!1,Rt=k.ALLOWED_URI_REGEXP||aC,Kt=k.NAMESPACE||qt,x=k.CUSTOM_ELEMENT_HANDLING||{},k.CUSTOM_ELEMENT_HANDLING&&Kp(k.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(x.tagNameCheck=k.CUSTOM_ELEMENT_HANDLING.tagNameCheck),k.CUSTOM_ELEMENT_HANDLING&&Kp(k.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(x.attributeNameCheck=k.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),k.CUSTOM_ELEMENT_HANDLING&&typeof k.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(x.allowCustomizedBuiltInElements=k.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ye&&(Rn=!1),Vr&&($n=!0),lr&&(ot=rt({},[...Ey]),yt=[],lr.html===!0&&(rt(ot,Ay),rt(yt,My)),lr.svg===!0&&(rt(ot,eh),rt(yt,ih),rt(yt,Va)),lr.svgFilters===!0&&(rt(ot,nh),rt(yt,ih),rt(yt,Va)),lr.mathMl===!0&&(rt(ot,rh),rt(yt,Ny),rt(yt,Va))),k.ADD_TAGS&&(ot===b&&(ot=$i(ot)),rt(ot,k.ADD_TAGS,Pt)),k.ADD_ATTR&&(yt===Pe&&(yt=$i(yt)),rt(yt,k.ADD_ATTR,Pt)),k.ADD_URI_SAFE_ATTR&&rt(J,k.ADD_URI_SAFE_ATTR,Pt),k.FORBID_CONTENTS&&(cr===Ea&&(cr=$i(cr)),rt(cr,k.FORBID_CONTENTS,Pt)),zo&&(ot["#text"]=!0),Qe&&rt(ot,["html","head","body"]),ot.table&&(rt(ot,["tbody"]),delete zt.tbody),k.TRUSTED_TYPES_POLICY){if(typeof k.TRUSTED_TYPES_POLICY.createHTML!="function")throw Uo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof k.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Uo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=k.TRUSTED_TYPES_POLICY,M=T.createHTML("")}else T===void 0&&(T=NR(f,i)),T!==null&&typeof M=="string"&&(M=T.createHTML(""));pe&&pe(k),Di=k}},Gp=rt({},["mi","mo","mn","ms","mtext"]),Yp=rt({},["foreignobject","desc","title","annotation-xml"]),Gw=rt({},["title","style","font","a","script"]),Ma=rt({},eh);rt(Ma,nh),rt(Ma,kR);const ou=rt({},rh);rt(ou,CR);const Yw=function(k){let O=C(k);(!O||!O.tagName)&&(O={namespaceURI:Kt,tagName:"template"});const q=Al(k.tagName),wt=Al(O.tagName);return qn[k.namespaceURI]?k.namespaceURI===Ut?O.namespaceURI===qt?q==="svg":O.namespaceURI===ft?q==="svg"&&(wt==="annotation-xml"||Gp[wt]):!!Ma[q]:k.namespaceURI===ft?O.namespaceURI===qt?q==="math":O.namespaceURI===Ut?q==="math"&&Yp[wt]:!!ou[q]:k.namespaceURI===qt?O.namespaceURI===Ut&&!Yp[wt]||O.namespaceURI===ft&&!Gp[wt]?!1:!ou[q]&&(Gw[q]||!Ma[q]):!!(xe==="application/xhtml+xml"&&qn[k.namespaceURI]):!1},Kr=function(k){Vo(e.removed,{element:k});try{k.parentNode.removeChild(k)}catch{k.remove()}},su=function(k,O){try{Vo(e.removed,{attribute:O.getAttributeNode(k),from:O})}catch{Vo(e.removed,{attribute:null,from:O})}if(O.removeAttribute(k),k==="is"&&!yt[k])if($n||Vr)try{Kr(O)}catch{}else try{O.setAttribute(k,"")}catch{}},Jp=function(k){let O=null,q=null;if(Po)k="<remove></remove>"+k;else{const Yt=gR(k,/^[\r\n\t ]+/);q=Yt&&Yt[0]}xe==="application/xhtml+xml"&&Kt===qt&&(k='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+k+"</body></html>");const wt=T?T.createHTML(k):k;if(Kt===qt)try{O=new d().parseFromString(wt,xe)}catch{}if(!O||!O.documentElement){O=I.createDocument(Kt,"template",null);try{O.documentElement.innerHTML=zn?M:wt}catch{}}const Gt=O.body||O.documentElement;return k&&q&&Gt.insertBefore(n.createTextNode(q),Gt.childNodes[0]||null),Kt===qt?Z.call(O,Qe?"html":"body")[0]:Qe?O.documentElement:Gt},Xp=function(k){return S.call(k.ownerDocument||k,k,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},Jw=function(k){return k instanceof h&&(typeof k.nodeName!="string"||typeof k.textContent!="string"||typeof k.removeChild!="function"||!(k.attributes instanceof u)||typeof k.removeAttribute!="function"||typeof k.setAttribute!="function"||typeof k.namespaceURI!="string"||typeof k.insertBefore!="function"||typeof k.hasChildNodes!="function")},Zp=function(k){return typeof a=="function"&&k instanceof a},jn=function(k,O,q){_[k]&&ja(_[k],wt=>{wt.call(e,O,q,Di)})},Qp=function(k){let O=null;if(jn("beforeSanitizeElements",k,null),Jw(k))return Kr(k),!0;const q=Pt(k.nodeName);if(jn("uponSanitizeElement",k,{tagName:q,allowedTags:ot}),k.hasChildNodes()&&!Zp(k.firstElementChild)&&Ie(/<[/\w]/g,k.innerHTML)&&Ie(/<[/\w]/g,k.textContent))return Kr(k),!0;if(!ot[q]||zt[q]){if(!zt[q]&&em(q)&&(x.tagNameCheck instanceof RegExp&&Ie(x.tagNameCheck,q)||x.tagNameCheck instanceof Function&&x.tagNameCheck(q)))return!1;if(zo&&!cr[q]){const wt=C(k)||k.parentNode,Gt=y(k)||k.childNodes;if(Gt&&wt){const Yt=Gt.length;for(let be=Yt-1;be>=0;--be)wt.insertBefore(m(Gt[be],!0),g(k))}}return Kr(k),!0}return k instanceof l&&!Yw(k)||(q==="noscript"||q==="noembed"||q==="noframes")&&Ie(/<\/no(script|embed|frames)/i,k.innerHTML)?(Kr(k),!0):(ye&&k.nodeType===3&&(O=k.textContent,ja([P,z,dt],wt=>{O=Ho(O,wt," ")}),k.textContent!==O&&(Vo(e.removed,{element:k.cloneNode()}),k.textContent=O)),jn("afterSanitizeElements",k,null),!1)},tm=function(k,O,q){if(va&&(O==="id"||O==="name")&&(q in n||q in Kw))return!1;if(!(Rn&&!Xe[O]&&Ie(bt,O))){if(!(Ot&&Ie(at,O))){if(!yt[O]||Xe[O]){if(!(em(k)&&(x.tagNameCheck instanceof RegExp&&Ie(x.tagNameCheck,k)||x.tagNameCheck instanceof Function&&x.tagNameCheck(k))&&(x.attributeNameCheck instanceof RegExp&&Ie(x.attributeNameCheck,O)||x.attributeNameCheck instanceof Function&&x.attributeNameCheck(O))||O==="is"&&x.allowCustomizedBuiltInElements&&(x.tagNameCheck instanceof RegExp&&Ie(x.tagNameCheck,q)||x.tagNameCheck instanceof Function&&x.tagNameCheck(q))))return!1}else if(!J[O]){if(!Ie(Rt,Ho(q,Nt,""))){if(!((O==="src"||O==="xlink:href"||O==="href")&&k!=="script"&&yR(q,"data:")===0&&v[k])){if(!(Ze&&!Ie(Ct,Ho(q,Nt,"")))){if(q)return!1}}}}}}return!0},em=function(k){return k.indexOf("-")>0},nm=function(k){jn("beforeSanitizeAttributes",k,null);const{attributes:O}=k;if(!O)return;const q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:yt};let wt=O.length;for(;wt--;){const Gt=O[wt],{name:Yt,namespaceURI:be,value:Gr}=Gt,qo=Pt(Yt);let ke=Yt==="value"?Gr:xR(Gr);if(q.attrName=qo,q.attrValue=ke,q.keepAttr=!0,q.forceKeepAttr=void 0,jn("uponSanitizeAttribute",k,q),ke=q.attrValue,q.forceKeepAttr||(su(Yt,k),!q.keepAttr))continue;if(!Pn&&Ie(/\/>/i,ke)){su(Yt,k);continue}ye&&ja([P,z,dt],im=>{ke=Ho(ke,im," ")});const rm=Pt(k.nodeName);if(tm(rm,qo,ke)){if($o&&(qo==="id"||qo==="name")&&(su(Yt,k),ke=Aa+ke),T&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!be)switch(f.getAttributeType(rm,qo)){case"TrustedHTML":{ke=T.createHTML(ke);break}case"TrustedScriptURL":{ke=T.createScriptURL(ke);break}}try{be?k.setAttributeNS(be,Yt,ke):k.setAttribute(Yt,ke),vy(e.removed)}catch{}}}jn("afterSanitizeAttributes",k,null)},Xw=function W(k){let O=null;const q=Xp(k);for(jn("beforeSanitizeShadowDOM",k,null);O=q.nextNode();)jn("uponSanitizeShadowNode",O,null),!Qp(O)&&(O.content instanceof o&&W(O.content),nm(O));jn("afterSanitizeShadowDOM",k,null)};return e.sanitize=function(W){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=null,q=null,wt=null,Gt=null;if(zn=!W,zn&&(W="<!-->"),typeof W!="string"&&!Zp(W))if(typeof W.toString=="function"){if(W=W.toString(),typeof W!="string")throw Uo("dirty is not a string, aborting")}else throw Uo("toString is not a function");if(!e.isSupported)return W;if(Ro||iu(k),e.removed=[],typeof W=="string"&&(Ur=!1),Ur){if(W.nodeName){const Gr=Pt(W.nodeName);if(!ot[Gr]||zt[Gr])throw Uo("root node is forbidden and cannot be sanitized in-place")}}else if(W instanceof a)O=Jp("<!---->"),q=O.ownerDocument.importNode(W,!0),q.nodeType===1&&q.nodeName==="BODY"||q.nodeName==="HTML"?O=q:O.appendChild(q);else{if(!$n&&!ye&&!Qe&&W.indexOf("<")===-1)return T&&Hr?T.createHTML(W):W;if(O=Jp(W),!O)return $n?null:Hr?M:""}O&&Po&&Kr(O.firstChild);const Yt=Xp(Ur?W:O);for(;wt=Yt.nextNode();)Qp(wt)||(wt.content instanceof o&&Xw(wt.content),nm(wt));if(Ur)return W;if($n){if(Vr)for(Gt=N.call(O.ownerDocument);O.firstChild;)Gt.appendChild(O.firstChild);else Gt=O;return(yt.shadowroot||yt.shadowrootmode)&&(Gt=R.call(r,Gt,!0)),Gt}let be=Qe?O.outerHTML:O.innerHTML;return Qe&&ot["!doctype"]&&O.ownerDocument&&O.ownerDocument.doctype&&O.ownerDocument.doctype.name&&Ie(lC,O.ownerDocument.doctype.name)&&(be="<!DOCTYPE "+O.ownerDocument.doctype.name+`> +`+be),ye&&ja([P,z,dt],Gr=>{be=Ho(be,Gr," ")}),T&&Hr?T.createHTML(be):be},e.setConfig=function(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};iu(W),Ro=!0},e.clearConfig=function(){Di=null,Ro=!1},e.isValidAttribute=function(W,k,O){Di||iu({});const q=Pt(W),wt=Pt(k);return tm(q,wt,O)},e.addHook=function(W,k){typeof k=="function"&&(_[W]=_[W]||[],Vo(_[W],k))},e.removeHook=function(W){if(_[W])return vy(_[W])},e.removeHooks=function(W){_[W]&&(_[W]=[])},e.removeAllHooks=function(){_={}},e}var bo=cC();const El={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t),hsl2rgb:({h:t,s:e,l:n},r)=>{if(!e)return n*2.55;t/=360,e/=100,n/=100;const i=n<.5?n*(1+e):n+e-n*e,o=2*n-i;switch(r){case"r":return El.hue2rgb(o,i,t+1/3)*255;case"g":return El.hue2rgb(o,i,t)*255;case"b":return El.hue2rgb(o,i,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:n},r)=>{t/=255,e/=255,n/=255;const i=Math.max(t,e,n),o=Math.min(t,e,n),s=(i+o)/2;if(r==="l")return s*100;if(i===o)return 0;const a=i-o,l=s>.5?a/(2-i-o):a/(i+o);if(r==="s")return l*100;switch(i){case t:return((e-n)/a+(e<n?6:0))*60;case e:return((n-t)/a+2)*60;case n:return((t-e)/a+4)*60;default:return-1}}},OR={clamp:(t,e,n)=>e>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},IR=OR,BR={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},FR=BR,X={channel:El,lang:IR,unit:FR},xr={};for(let t=0;t<=255;t++)xr[t]=X.unit.dec2hex(t);const Jt={ALL:0,RGB:1,HSL:2};class LR{constructor(){this.type=Jt.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=Jt.ALL}is(e){return this.type===e}}class DR{constructor(e,n){this.color=n,this.changed=!1,this.data=e,this.type=new LR}set(e,n){return this.color=n,this.changed=!1,this.data=e,this.type.type=Jt.ALL,this}_ensureHSL(){const e=this.data,{h:n,s:r,l:i}=e;n===void 0&&(e.h=X.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=X.channel.rgb2hsl(e,"s")),i===void 0&&(e.l=X.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:n,g:r,b:i}=e;n===void 0&&(e.r=X.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=X.channel.hsl2rgb(e,"g")),i===void 0&&(e.b=X.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,n=e.r;return!this.type.is(Jt.HSL)&&n!==void 0?n:(this._ensureHSL(),X.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,n=e.g;return!this.type.is(Jt.HSL)&&n!==void 0?n:(this._ensureHSL(),X.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,n=e.b;return!this.type.is(Jt.HSL)&&n!==void 0?n:(this._ensureHSL(),X.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,n=e.h;return!this.type.is(Jt.RGB)&&n!==void 0?n:(this._ensureRGB(),X.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,n=e.s;return!this.type.is(Jt.RGB)&&n!==void 0?n:(this._ensureRGB(),X.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,n=e.l;return!this.type.is(Jt.RGB)&&n!==void 0?n:(this._ensureRGB(),X.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(Jt.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Jt.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Jt.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Jt.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Jt.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Jt.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const RR=DR,Vc=new RR({r:0,g:0,b:0,a:0},"transparent"),uo={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(uo.re);if(!e)return;const n=e[1],r=parseInt(n,16),i=n.length,o=i%4===0,s=i>4,a=s?1:17,l=s?8:4,c=o?0:-1,u=s?255:15;return Vc.set({r:(r>>l*(c+3)&u)*a,g:(r>>l*(c+2)&u)*a,b:(r>>l*(c+1)&u)*a,a:o?(r&u)*a/255:1},t)},stringify:t=>{const{r:e,g:n,b:r,a:i}=t;return i<1?`#${xr[Math.round(e)]}${xr[Math.round(n)]}${xr[Math.round(r)]}${xr[Math.round(i*255)]}`:`#${xr[Math.round(e)]}${xr[Math.round(n)]}${xr[Math.round(r)]}`}},ai={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(ai.hueRe);if(e){const[,n,r]=e;switch(r){case"grad":return X.channel.clamp.h(parseFloat(n)*.9);case"rad":return X.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return X.channel.clamp.h(parseFloat(n)*360)}}return X.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const n=t.match(ai.re);if(!n)return;const[,r,i,o,s,a]=n;return Vc.set({h:ai._hue2deg(r),s:X.channel.clamp.s(parseFloat(i)),l:X.channel.clamp.l(parseFloat(o)),a:s?X.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:n,l:r,a:i}=t;return i<1?`hsla(${X.lang.round(e)}, ${X.lang.round(n)}%, ${X.lang.round(r)}%, ${i})`:`hsl(${X.lang.round(e)}, ${X.lang.round(n)}%, ${X.lang.round(r)}%)`}},Fs={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=Fs.colors[t];if(e)return uo.parse(e)},stringify:t=>{const e=uo.stringify(t);for(const n in Fs.colors)if(Fs.colors[n]===e)return n}},ws={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const n=t.match(ws.re);if(!n)return;const[,r,i,o,s,a,l,c,u]=n;return Vc.set({r:X.channel.clamp.r(i?parseFloat(r)*2.55:parseFloat(r)),g:X.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:X.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:c?X.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:n,b:r,a:i}=t;return i<1?`rgba(${X.lang.round(e)}, ${X.lang.round(n)}, ${X.lang.round(r)}, ${X.lang.round(i)})`:`rgb(${X.lang.round(e)}, ${X.lang.round(n)}, ${X.lang.round(r)})`}},On={format:{keyword:Fs,hex:uo,rgb:ws,rgba:ws,hsl:ai,hsla:ai},parse:t=>{if(typeof t!="string")return t;const e=uo.parse(t)||ws.parse(t)||ai.parse(t)||Fs.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(Jt.HSL)||t.data.r===void 0?ai.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?ws.stringify(t):uo.stringify(t)},uC=(t,e)=>{const n=On.parse(t);for(const r in e)n[r]=X.channel.clamp[r](e[r]);return On.stringify(n)},Ls=(t,e,n=0,r=1)=>{if(typeof t!="number")return uC(t,{a:e});const i=Vc.set({r:X.channel.clamp.r(t),g:X.channel.clamp.g(e),b:X.channel.clamp.b(n),a:X.channel.clamp.a(r)});return On.stringify(i)},PR=t=>{const{r:e,g:n,b:r}=On.parse(t),i=.2126*X.channel.toLinear(e)+.7152*X.channel.toLinear(n)+.0722*X.channel.toLinear(r);return X.lang.round(i)},$R=t=>PR(t)>=.5,zR=$R,Sa=t=>!zR(t),hC=(t,e,n)=>{const r=On.parse(t),i=r[e],o=X.channel.clamp[e](i+n);return i!==o&&(r[e]=o),On.stringify(r)},V=(t,e)=>hC(t,"l",e),G=(t,e)=>hC(t,"l",-e),w=(t,e)=>{const n=On.parse(t),r={};for(const i in e)e[i]&&(r[i]=n[i]+e[i]);return uC(t,r)},qR=(t,e,n=50)=>{const{r,g:i,b:o,a:s}=On.parse(t),{r:a,g:l,b:c,a:u}=On.parse(e),h=n/100,d=h*2-1,f=s-u,m=((d*f===-1?d:(d+f)/(1+d*f))+1)/2,g=1-m,y=r*m+a*g,C=i*m+l*g,T=o*m+c*g,M=s*h+u*(1-h);return Ls(y,C,T,M)},L=(t,e=100)=>{const n=On.parse(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,qR(n,t,e)};var dC=typeof global=="object"&&global&&global.Object===Object&&global,jR=typeof self=="object"&&self&&self.Object===Object&&self,Dn=dC||jR||Function("return this")(),rc=Dn.Symbol,fC=Object.prototype,WR=fC.hasOwnProperty,VR=fC.toString,Ko=rc?rc.toStringTag:void 0;function HR(t){var e=WR.call(t,Ko),n=t[Ko];try{t[Ko]=void 0;var r=!0}catch{}var i=VR.call(t);return r&&(e?t[Ko]=n:delete t[Ko]),i}var UR=Object.prototype,KR=UR.toString;function GR(t){return KR.call(t)}var YR="[object Null]",JR="[object Undefined]",Iy=rc?rc.toStringTag:void 0;function Bo(t){return t==null?t===void 0?JR:YR:Iy&&Iy in Object(t)?HR(t):GR(t)}function Ii(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var XR="[object AsyncFunction]",ZR="[object Function]",QR="[object GeneratorFunction]",t3="[object Proxy]";function Sp(t){if(!Ii(t))return!1;var e=Bo(t);return e==ZR||e==QR||e==XR||e==t3}var oh=Dn["__core-js_shared__"],By=function(){var t=/[^.]+$/.exec(oh&&oh.keys&&oh.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function e3(t){return!!By&&By in t}var n3=Function.prototype,r3=n3.toString;function Bi(t){if(t!=null){try{return r3.call(t)}catch{}try{return t+""}catch{}}return""}var i3=/[\\^$.*+?()[\]{}|]/g,o3=/^\[object .+?Constructor\]$/,s3=Function.prototype,a3=Object.prototype,l3=s3.toString,c3=a3.hasOwnProperty,u3=RegExp("^"+l3.call(c3).replace(i3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h3(t){if(!Ii(t)||e3(t))return!1;var e=Sp(t)?u3:o3;return e.test(Bi(t))}function d3(t,e){return t?.[e]}function Fi(t,e){var n=d3(t,e);return h3(n)?n:void 0}var ta=Fi(Object,"create");function f3(){this.__data__=ta?ta(null):{},this.size=0}function p3(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var m3="__lodash_hash_undefined__",g3=Object.prototype,y3=g3.hasOwnProperty;function x3(t){var e=this.__data__;if(ta){var n=e[t];return n===m3?void 0:n}return y3.call(e,t)?e[t]:void 0}var b3=Object.prototype,k3=b3.hasOwnProperty;function C3(t){var e=this.__data__;return ta?e[t]!==void 0:k3.call(e,t)}var w3="__lodash_hash_undefined__";function S3(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ta&&e===void 0?w3:e,this}function Ei(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ei.prototype.clear=f3;Ei.prototype.delete=p3;Ei.prototype.get=x3;Ei.prototype.has=C3;Ei.prototype.set=S3;function _3(){this.__data__=[],this.size=0}function Hc(t,e){return t===e||t!==t&&e!==e}function Uc(t,e){for(var n=t.length;n--;)if(Hc(t[n][0],e))return n;return-1}var T3=Array.prototype,v3=T3.splice;function A3(t){var e=this.__data__,n=Uc(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():v3.call(e,n,1),--this.size,!0}function E3(t){var e=this.__data__,n=Uc(e,t);return n<0?void 0:e[n][1]}function M3(t){return Uc(this.__data__,t)>-1}function N3(t,e){var n=this.__data__,r=Uc(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function ar(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ar.prototype.clear=_3;ar.prototype.delete=A3;ar.prototype.get=E3;ar.prototype.has=M3;ar.prototype.set=N3;var ea=Fi(Dn,"Map");function O3(){this.size=0,this.__data__={hash:new Ei,map:new(ea||ar),string:new Ei}}function I3(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Kc(t,e){var n=t.__data__;return I3(e)?n[typeof e=="string"?"string":"hash"]:n.map}function B3(t){var e=Kc(this,t).delete(t);return this.size-=e?1:0,e}function F3(t){return Kc(this,t).get(t)}function L3(t){return Kc(this,t).has(t)}function D3(t,e){var n=Kc(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Wr(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Wr.prototype.clear=O3;Wr.prototype.delete=B3;Wr.prototype.get=F3;Wr.prototype.has=L3;Wr.prototype.set=D3;var R3="Expected a function";function _a(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(R3);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(_a.Cache||Wr),n}_a.Cache=Wr;function P3(){this.__data__=new ar,this.size=0}function $3(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function z3(t){return this.__data__.get(t)}function q3(t){return this.__data__.has(t)}var j3=200;function W3(t,e){var n=this.__data__;if(n instanceof ar){var r=n.__data__;if(!ea||r.length<j3-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Wr(r)}return n.set(t,e),this.size=n.size,this}function Fo(t){var e=this.__data__=new ar(t);this.size=e.size}Fo.prototype.clear=P3;Fo.prototype.delete=$3;Fo.prototype.get=z3;Fo.prototype.has=q3;Fo.prototype.set=W3;var ic=function(){try{var t=Fi(Object,"defineProperty");return t({},"",{}),t}catch{}}();function _p(t,e,n){e=="__proto__"&&ic?ic(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function dd(t,e,n){(n!==void 0&&!Hc(t[e],n)||n===void 0&&!(e in t))&&_p(t,e,n)}function V3(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var l=s[t?a:++i];if(n(o[l],l,o)===!1)break}return e}}var H3=V3(),pC=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Fy=pC&&typeof module=="object"&&module&&!module.nodeType&&module,U3=Fy&&Fy.exports===pC,Ly=U3?Dn.Buffer:void 0,Dy=Ly?Ly.allocUnsafe:void 0;function K3(t,e){if(e)return t.slice();var n=t.length,r=Dy?Dy(n):new t.constructor(n);return t.copy(r),r}var Ry=Dn.Uint8Array;function G3(t){var e=new t.constructor(t.byteLength);return new Ry(e).set(new Ry(t)),e}function Y3(t,e){var n=e?G3(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function J3(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Py=Object.create,X3=function(){function t(){}return function(e){if(!Ii(e))return{};if(Py)return Py(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function mC(t,e){return function(n){return t(e(n))}}var Z3=mC(Object.getPrototypeOf,Object);const gC=Z3;var Q3=Object.prototype;function Gc(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Q3;return t===n}function tP(t){return typeof t.constructor=="function"&&!Gc(t)?X3(gC(t)):{}}function Ta(t){return t!=null&&typeof t=="object"}var eP="[object Arguments]";function $y(t){return Ta(t)&&Bo(t)==eP}var yC=Object.prototype,nP=yC.hasOwnProperty,rP=yC.propertyIsEnumerable,iP=$y(function(){return arguments}())?$y:function(t){return Ta(t)&&nP.call(t,"callee")&&!rP.call(t,"callee")};const oc=iP;var sc=Array.isArray,oP=9007199254740991;function xC(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=oP}function Yc(t){return t!=null&&xC(t.length)&&!Sp(t)}function sP(t){return Ta(t)&&Yc(t)}function aP(){return!1}var bC=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zy=bC&&typeof module=="object"&&module&&!module.nodeType&&module,lP=zy&&zy.exports===bC,qy=lP?Dn.Buffer:void 0,cP=qy?qy.isBuffer:void 0,uP=cP||aP;const Tp=uP;var hP="[object Object]",dP=Function.prototype,fP=Object.prototype,kC=dP.toString,pP=fP.hasOwnProperty,mP=kC.call(Object);function gP(t){if(!Ta(t)||Bo(t)!=hP)return!1;var e=gC(t);if(e===null)return!0;var n=pP.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&kC.call(n)==mP}var yP="[object Arguments]",xP="[object Array]",bP="[object Boolean]",kP="[object Date]",CP="[object Error]",wP="[object Function]",SP="[object Map]",_P="[object Number]",TP="[object Object]",vP="[object RegExp]",AP="[object Set]",EP="[object String]",MP="[object WeakMap]",NP="[object ArrayBuffer]",OP="[object DataView]",IP="[object Float32Array]",BP="[object Float64Array]",FP="[object Int8Array]",LP="[object Int16Array]",DP="[object Int32Array]",RP="[object Uint8Array]",PP="[object Uint8ClampedArray]",$P="[object Uint16Array]",zP="[object Uint32Array]",_t={};_t[IP]=_t[BP]=_t[FP]=_t[LP]=_t[DP]=_t[RP]=_t[PP]=_t[$P]=_t[zP]=!0;_t[yP]=_t[xP]=_t[NP]=_t[bP]=_t[OP]=_t[kP]=_t[CP]=_t[wP]=_t[SP]=_t[_P]=_t[TP]=_t[vP]=_t[AP]=_t[EP]=_t[MP]=!1;function qP(t){return Ta(t)&&xC(t.length)&&!!_t[Bo(t)]}function jP(t){return function(e){return t(e)}}var CC=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ds=CC&&typeof module=="object"&&module&&!module.nodeType&&module,WP=Ds&&Ds.exports===CC,sh=WP&&dC.process,jy=function(){try{var t=Ds&&Ds.require&&Ds.require("util").types;return t||sh&&sh.binding&&sh.binding("util")}catch{}}(),Wy=jy&&jy.isTypedArray,VP=Wy?jP(Wy):qP;const vp=VP;function fd(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var HP=Object.prototype,UP=HP.hasOwnProperty;function KP(t,e,n){var r=t[e];(!(UP.call(t,e)&&Hc(r,n))||n===void 0&&!(e in t))&&_p(t,e,n)}function GP(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=r?r(n[a],t[a],a,n,t):void 0;l===void 0&&(l=t[a]),i?_p(n,a,l):KP(n,a,l)}return n}function YP(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var JP=9007199254740991,XP=/^(?:0|[1-9]\d*)$/;function wC(t,e){var n=typeof t;return e=e??JP,!!e&&(n=="number"||n!="symbol"&&XP.test(t))&&t>-1&&t%1==0&&t<e}var ZP=Object.prototype,QP=ZP.hasOwnProperty;function t$(t,e){var n=sc(t),r=!n&&oc(t),i=!n&&!r&&Tp(t),o=!n&&!r&&!i&&vp(t),s=n||r||i||o,a=s?YP(t.length,String):[],l=a.length;for(var c in t)(e||QP.call(t,c))&&!(s&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||wC(c,l)))&&a.push(c);return a}function e$(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var n$=Object.prototype,r$=n$.hasOwnProperty;function i$(t){if(!Ii(t))return e$(t);var e=Gc(t),n=[];for(var r in t)r=="constructor"&&(e||!r$.call(t,r))||n.push(r);return n}function SC(t){return Yc(t)?t$(t,!0):i$(t)}function o$(t){return GP(t,SC(t))}function s$(t,e,n,r,i,o,s){var a=fd(t,n),l=fd(e,n),c=s.get(l);if(c){dd(t,n,c);return}var u=o?o(a,l,n+"",t,e,s):void 0,h=u===void 0;if(h){var d=sc(l),f=!d&&Tp(l),p=!d&&!f&&vp(l);u=l,d||f||p?sc(a)?u=a:sP(a)?u=J3(a):f?(h=!1,u=K3(l,!0)):p?(h=!1,u=Y3(l,!0)):u=[]:gP(l)||oc(l)?(u=a,oc(a)?u=o$(a):(!Ii(a)||Sp(a))&&(u=tP(l))):h=!1}h&&(s.set(l,u),i(u,l,r,o,s),s.delete(l)),dd(t,n,u)}function _C(t,e,n,r,i){t!==e&&H3(e,function(o,s){if(i||(i=new Fo),Ii(o))s$(t,e,s,n,_C,r,i);else{var a=r?r(fd(t,s),o,s+"",t,e,i):void 0;a===void 0&&(a=o),dd(t,s,a)}},SC)}function TC(t){return t}function a$(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Vy=Math.max;function l$(t,e,n){return e=Vy(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Vy(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(s),a$(t,this,a)}}function c$(t){return function(){return t}}var u$=ic?function(t,e){return ic(t,"toString",{configurable:!0,enumerable:!1,value:c$(e),writable:!0})}:TC;const h$=u$;var d$=800,f$=16,p$=Date.now;function m$(t){var e=0,n=0;return function(){var r=p$(),i=f$-(r-n);if(n=r,i>0){if(++e>=d$)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var g$=m$(h$);function y$(t,e){return g$(l$(t,e,TC),t+"")}function x$(t,e,n){if(!Ii(n))return!1;var r=typeof e;return(r=="number"?Yc(n)&&wC(e,n.length):r=="string"&&e in n)?Hc(n[e],t):!1}function b$(t){return y$(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(i--,o):void 0,s&&x$(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var a=n[r];a&&t(e,a,r,o)}return e})}var k$=b$(function(t,e,n){_C(t,e,n)}),vC="comm",AC="rule",EC="decl",C$="@import",w$="@keyframes",S$="@layer",_$=Math.abs,Ap=String.fromCharCode;function MC(t){return t.trim()}function Ml(t,e,n){return t.replace(e,n)}function T$(t,e){return t.indexOf(e)}function na(t,e){return t.charCodeAt(e)|0}function ra(t,e,n){return t.slice(e,n)}function Xn(t){return t.length}function v$(t){return t.length}function Ha(t,e){return e.push(t),t}var Jc=1,ko=1,NC=0,Ye=0,It=0,Lo="";function Ep(t,e,n,r,i,o,s,a){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:Jc,column:ko,length:s,return:"",siblings:a}}function A$(){return It}function E$(){return It=Ye>0?na(Lo,--Ye):0,ko--,It===10&&(ko=1,Jc--),It}function un(){return It=Ye<NC?na(Lo,Ye++):0,ko++,It===10&&(ko=1,Jc++),It}function yi(){return na(Lo,Ye)}function Nl(){return Ye}function Xc(t,e){return ra(Lo,t,e)}function pd(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function M$(t){return Jc=ko=1,NC=Xn(Lo=t),Ye=0,[]}function N$(t){return Lo="",t}function ah(t){return MC(Xc(Ye-1,md(t===91?t+2:t===40?t+1:t)))}function O$(t){for(;(It=yi())&&It<33;)un();return pd(t)>2||pd(It)>3?"":" "}function I$(t,e){for(;--e&&un()&&!(It<48||It>102||It>57&&It<65||It>70&&It<97););return Xc(t,Nl()+(e<6&&yi()==32&&un()==32))}function md(t){for(;un();)switch(It){case t:return Ye;case 34:case 39:t!==34&&t!==39&&md(It);break;case 40:t===41&&md(t);break;case 92:un();break}return Ye}function B$(t,e){for(;un()&&t+It!==57;)if(t+It===84&&yi()===47)break;return"/*"+Xc(e,Ye-1)+"*"+Ap(t===47?t:un())}function F$(t){for(;!pd(yi());)un();return Xc(t,Ye)}function L$(t){return N$(Ol("",null,null,null,[""],t=M$(t),0,[0],t))}function Ol(t,e,n,r,i,o,s,a,l){for(var c=0,u=0,h=s,d=0,f=0,p=0,m=1,g=1,y=1,C=0,T="",M=i,I=o,S=r,N=T;g;)switch(p=C,C=un()){case 40:if(p!=108&&na(N,h-1)==58){T$(N+=Ml(ah(C),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:N+=ah(C);break;case 9:case 10:case 13:case 32:N+=O$(p);break;case 92:N+=I$(Nl()-1,7);continue;case 47:switch(yi()){case 42:case 47:Ha(D$(B$(un(),Nl()),e,n,l),l);break;default:N+="/"}break;case 123*m:a[c++]=Xn(N)*y;case 125*m:case 59:case 0:switch(C){case 0:case 125:g=0;case 59+u:y==-1&&(N=Ml(N,/\f/g,"")),f>0&&Xn(N)-h&&Ha(f>32?Uy(N+";",r,n,h-1,l):Uy(Ml(N," ","")+";",r,n,h-2,l),l);break;case 59:N+=";";default:if(Ha(S=Hy(N,e,n,c,u,i,a,T,M=[],I=[],h,o),o),C===123)if(u===0)Ol(N,e,S,S,M,o,h,a,I);else switch(d===99&&na(N,3)===110?100:d){case 100:case 108:case 109:case 115:Ol(t,S,S,r&&Ha(Hy(t,S,S,0,0,i,a,T,i,M=[],h,I),I),i,I,h,a,r?M:I);break;default:Ol(N,S,S,S,[""],I,0,a,I)}}c=u=f=0,m=y=1,T=N="",h=s;break;case 58:h=1+Xn(N),f=p;default:if(m<1){if(C==123)--m;else if(C==125&&m++==0&&E$()==125)continue}switch(N+=Ap(C),C*m){case 38:y=u>0?1:(N+="\f",-1);break;case 44:a[c++]=(Xn(N)-1)*y,y=1;break;case 64:yi()===45&&(N+=ah(un())),d=yi(),u=h=Xn(T=N+=F$(Nl())),C++;break;case 45:p===45&&Xn(N)==2&&(m=0)}}return o}function Hy(t,e,n,r,i,o,s,a,l,c,u,h){for(var d=i-1,f=i===0?o:[""],p=v$(f),m=0,g=0,y=0;m<r;++m)for(var C=0,T=ra(t,d+1,d=_$(g=s[m])),M=t;C<p;++C)(M=MC(g>0?f[C]+" "+T:Ml(T,/&\f/g,f[C])))&&(l[y++]=M);return Ep(t,e,n,i===0?AC:a,l,c,u,h)}function D$(t,e,n,r){return Ep(t,e,n,vC,Ap(A$()),ra(t,2,-2),0,r)}function Uy(t,e,n,r,i){return Ep(t,e,n,EC,ra(t,0,r),ra(t,r+1,-1),r,i)}function gd(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function R$(t,e,n,r){switch(t.type){case S$:if(t.children.length)break;case C$:case EC:return t.return=t.return||t.value;case vC:return"";case w$:return t.return=t.value+"{"+gd(t.children,r)+"}";case AC:if(!Xn(t.value=t.props.join(",")))return""}return Xn(n=gd(t.children,r))?t.return=t.value+"{"+n+"}":""}var P$=mC(Object.keys,Object),$$=Object.prototype,z$=$$.hasOwnProperty;function q$(t){if(!Gc(t))return P$(t);var e=[];for(var n in Object(t))z$.call(t,n)&&n!="constructor"&&e.push(n);return e}var yd=Fi(Dn,"DataView"),xd=Fi(Dn,"Promise"),bd=Fi(Dn,"Set"),kd=Fi(Dn,"WeakMap"),Ky="[object Map]",j$="[object Object]",Gy="[object Promise]",Yy="[object Set]",Jy="[object WeakMap]",Xy="[object DataView]",W$=Bi(yd),V$=Bi(ea),H$=Bi(xd),U$=Bi(bd),K$=Bi(kd),ei=Bo;(yd&&ei(new yd(new ArrayBuffer(1)))!=Xy||ea&&ei(new ea)!=Ky||xd&&ei(xd.resolve())!=Gy||bd&&ei(new bd)!=Yy||kd&&ei(new kd)!=Jy)&&(ei=function(t){var e=Bo(t),n=e==j$?t.constructor:void 0,r=n?Bi(n):"";if(r)switch(r){case W$:return Xy;case V$:return Ky;case H$:return Gy;case U$:return Yy;case K$:return Jy}return e});const G$=ei;var Y$="[object Map]",J$="[object Set]",X$=Object.prototype,Z$=X$.hasOwnProperty;function lh(t){if(t==null)return!0;if(Yc(t)&&(sc(t)||typeof t=="string"||typeof t.splice=="function"||Tp(t)||vp(t)||oc(t)))return!t.length;var e=G$(t);if(e==Y$||e==J$)return!t.size;if(Gc(t))return!q$(t).length;for(var n in t)if(Z$.call(t,n))return!1;return!0}const Hn={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},K={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},Mp=function(t="fatal"){let e=Hn.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Hn&&(e=Hn[t])):typeof t=="number"&&(e=t),K.trace=()=>{},K.debug=()=>{},K.info=()=>{},K.warn=()=>{},K.error=()=>{},K.fatal=()=>{},e<=Hn.fatal&&(K.fatal=console.error?console.error.bind(console,$e("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",$e("FATAL"))),e<=Hn.error&&(K.error=console.error?console.error.bind(console,$e("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",$e("ERROR"))),e<=Hn.warn&&(K.warn=console.warn?console.warn.bind(console,$e("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",$e("WARN"))),e<=Hn.info&&(K.info=console.info?console.info.bind(console,$e("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",$e("INFO"))),e<=Hn.debug&&(K.debug=console.debug?console.debug.bind(console,$e("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",$e("DEBUG"))),e<=Hn.trace&&(K.trace=console.debug?console.debug.bind(console,$e("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",$e("TRACE")))},$e=t=>`%c${eS().format("ss.SSS")} : ${t} : `,Zc=/<br\s*\/?>/gi,Q$=t=>t?IC(t).replace(/\\n/g,"#br#").split("#br#"):[""],tz=(()=>{let t=!1;return()=>{t||(ez(),t=!0)}})();function ez(){const t="data-temp-href-target";bo.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),bo.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const OC=t=>(tz(),bo.sanitize(t)),Zy=(t,e)=>{var n;if(((n=e.flowchart)==null?void 0:n.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=OC(t):r!=="loose"&&(t=IC(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=oz(t))}return t},ia=(t,e)=>t&&(e.dompurifyConfig?t=bo.sanitize(Zy(t,e),e.dompurifyConfig).toString():t=bo.sanitize(Zy(t,e),{FORBID_TAGS:["style"]}).toString(),t),nz=(t,e)=>typeof t=="string"?ia(t,e):t.flat().map(n=>ia(n,e)),rz=t=>Zc.test(t),iz=t=>t.split(Zc),oz=t=>t.replace(/#br#/g,"<br/>"),IC=t=>t.replace(Zc,"#br#"),sz=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},BC=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),az=function(...t){const e=t.filter(n=>!isNaN(n));return Math.max(...e)},lz=function(...t){const e=t.filter(n=>!isNaN(n));return Math.min(...e)},kj=function(t){const e=t.split(/(,)/),n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i===","&&r>0&&r+1<e.length){const o=e[r-1],s=e[r+1];cz(o,s)&&(i=o+","+s,r++,n.pop())}n.push(uz(i))}return n.join("")},Cd=(t,e)=>Math.max(0,t.split(e).length-1),cz=(t,e)=>{const n=Cd(t,"~"),r=Cd(e,"~");return n===1&&r===1},uz=t=>{const e=Cd(t,"~");let n=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),n=!0);const r=[...t];let i=r.indexOf("~"),o=r.lastIndexOf("~");for(;i!==-1&&o!==-1&&i!==o;)r[i]="<",r[o]=">",i=r.indexOf("~"),o=r.lastIndexOf("~");return n&&r.unshift("~"),r.join("")},Np={getRows:Q$,sanitizeText:ia,sanitizeTextOrArray:nz,hasBreaks:rz,splitBreaks:iz,lineBreakRegex:Zc,removeScript:OC,getUrl:sz,evaluate:BC,getMax:az,getMin:lz},ue=(t,e)=>e?w(t,{s:-40,l:10}):w(t,{s:-40,l:-10}),Qc="#ffffff",tu="#f2f2f2";let hz=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,n,r,i,o,s,a,l,c,u,h;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||w(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||w(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ue(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ue(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||L(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||L(this.tertiaryColor),this.lineColor=this.lineColor||L(this.background),this.arrowheadColor=this.arrowheadColor||L(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?G(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||G(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||L(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||V(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||w(this.primaryColor,{h:30}),this.cScale4=this.cScale4||w(this.primaryColor,{h:60}),this.cScale5=this.cScale5||w(this.primaryColor,{h:90}),this.cScale6=this.cScale6||w(this.primaryColor,{h:120}),this.cScale7=this.cScale7||w(this.primaryColor,{h:150}),this.cScale8=this.cScale8||w(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||w(this.primaryColor,{h:270}),this.cScale10=this.cScale10||w(this.primaryColor,{h:300}),this.cScale11=this.cScale11||w(this.primaryColor,{h:330}),this.darkMode)for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=G(this["cScale"+f],75);else for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=G(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||L(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||V(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||G(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;const d=this.darkMode?-4:-1;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||w(this.mainBkg,{h:180,s:-15,l:d*(5+f*3)}),this["surfacePeer"+f]=this["surfacePeer"+f]||w(this.mainBkg,{h:180,s:-15,l:d*(8+f*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||w(this.primaryColor,{h:64}),this.fillType3=this.fillType3||w(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||w(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||w(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||w(this.primaryColor,{h:128}),this.fillType7=this.fillType7||w(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||w(this.primaryColor,{l:-10}),this.pie5=this.pie5||w(this.secondaryColor,{l:-10}),this.pie6=this.pie6||w(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||w(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||w(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||w(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||w(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||w(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||w(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Sa(this.quadrant1Fill)?V(this.quadrant1Fill):G(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?G(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||w(this.primaryColor,{h:-30}),this.git4=this.git4||w(this.primaryColor,{h:-60}),this.git5=this.git5||w(this.primaryColor,{h:-90}),this.git6=this.git6||w(this.primaryColor,{h:60}),this.git7=this.git7||w(this.primaryColor,{h:120}),this.darkMode?(this.git0=V(this.git0,25),this.git1=V(this.git1,25),this.git2=V(this.git2,25),this.git3=V(this.git3,25),this.git4=V(this.git4,25),this.git5=V(this.git5,25),this.git6=V(this.git6,25),this.git7=V(this.git7,25)):(this.git0=G(this.git0,25),this.git1=G(this.git1,25),this.git2=G(this.git2,25),this.git3=G(this.git3,25),this.git4=G(this.git4,25),this.git5=G(this.git5,25),this.git6=G(this.git6,25),this.git7=G(this.git7,25)),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Qc,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tu}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(r=>{this[r]=e[r]}),this.updateColors(),n.forEach(r=>{this[r]=e[r]})}};const dz=t=>{const e=new hz;return e.calculate(t),e};let fz=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=V(this.primaryColor,16),this.tertiaryColor=w(this.primaryColor,{h:-160}),this.primaryBorderColor=L(this.background),this.secondaryBorderColor=ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ue(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=V(L("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Ls(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=G("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=G(this.sectionBkgColor,10),this.taskBorderColor=Ls(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Ls(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,n,r,i,o,s,a,l,c,u,h;this.secondBkg=V(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=V(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=V(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=w(this.primaryColor,{h:64}),this.fillType3=w(this.secondaryColor,{h:64}),this.fillType4=w(this.primaryColor,{h:-64}),this.fillType5=w(this.secondaryColor,{h:-64}),this.fillType6=w(this.primaryColor,{h:128}),this.fillType7=w(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||w(this.primaryColor,{h:30}),this.cScale4=this.cScale4||w(this.primaryColor,{h:60}),this.cScale5=this.cScale5||w(this.primaryColor,{h:90}),this.cScale6=this.cScale6||w(this.primaryColor,{h:120}),this.cScale7=this.cScale7||w(this.primaryColor,{h:150}),this.cScale8=this.cScale8||w(this.primaryColor,{h:210}),this.cScale9=this.cScale9||w(this.primaryColor,{h:270}),this.cScale10=this.cScale10||w(this.primaryColor,{h:300}),this.cScale11=this.cScale11||w(this.primaryColor,{h:330});for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||L(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScalePeer"+d]=this["cScalePeer"+d]||V(this["cScale"+d],10);for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||w(this.mainBkg,{h:30,s:-30,l:-(-10+d*4)}),this["surfacePeer"+d]=this["surfacePeer"+d]||w(this.mainBkg,{h:30,s:-30,l:-(-7+d*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=this["cScaleLabel"+d]||this.scaleLabelColor;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["pie"+d]=this["cScale"+d];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Sa(this.quadrant1Fill)?V(this.quadrant1Fill):G(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?G(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=V(this.secondaryColor,20),this.git1=V(this.pie2||this.secondaryColor,20),this.git2=V(this.pie3||this.tertiaryColor,20),this.git3=V(this.pie4||w(this.primaryColor,{h:-30}),20),this.git4=V(this.pie5||w(this.primaryColor,{h:-60}),20),this.git5=V(this.pie6||w(this.primaryColor,{h:-90}),10),this.git6=V(this.pie7||w(this.primaryColor,{h:60}),10),this.git7=V(this.pie8||w(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||L(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||L(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||V(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||V(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(r=>{this[r]=e[r]}),this.updateColors(),n.forEach(r=>{this[r]=e[r]})}};const pz=t=>{const e=new fz;return e.calculate(t),e};let mz=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=w(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=w(this.primaryColor,{h:-160}),this.primaryBorderColor=ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ue(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Ls(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,n,r,i,o,s,a,l,c,u,h;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||w(this.primaryColor,{h:30}),this.cScale4=this.cScale4||w(this.primaryColor,{h:60}),this.cScale5=this.cScale5||w(this.primaryColor,{h:90}),this.cScale6=this.cScale6||w(this.primaryColor,{h:120}),this.cScale7=this.cScale7||w(this.primaryColor,{h:150}),this.cScale8=this.cScale8||w(this.primaryColor,{h:210}),this.cScale9=this.cScale9||w(this.primaryColor,{h:270}),this.cScale10=this.cScale10||w(this.primaryColor,{h:300}),this.cScale11=this.cScale11||w(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||G(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||G(this.tertiaryColor,40);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=G(this["cScale"+d],10),this["cScalePeer"+d]=this["cScalePeer"+d]||G(this["cScale"+d],25);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||w(this["cScale"+d],{h:180});for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||w(this.mainBkg,{h:30,l:-(5+d*5)}),this["surfacePeer"+d]=this["surfacePeer"+d]||w(this.mainBkg,{h:30,l:-(7+d*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||L(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||L(this.labelTextColor);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=this["cScaleLabel"+d]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=V(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=w(this.primaryColor,{h:64}),this.fillType3=w(this.secondaryColor,{h:64}),this.fillType4=w(this.primaryColor,{h:-64}),this.fillType5=w(this.secondaryColor,{h:-64}),this.fillType6=w(this.primaryColor,{h:128}),this.fillType7=w(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||w(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||w(this.primaryColor,{l:-10}),this.pie5=this.pie5||w(this.secondaryColor,{l:-30}),this.pie6=this.pie6||w(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||w(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||w(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||w(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||w(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||w(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||w(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Sa(this.quadrant1Fill)?V(this.quadrant1Fill):G(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||w(this.primaryColor,{h:-30}),this.git4=this.git4||w(this.primaryColor,{h:-60}),this.git5=this.git5||w(this.primaryColor,{h:-90}),this.git6=this.git6||w(this.primaryColor,{h:60}),this.git7=this.git7||w(this.primaryColor,{h:120}),this.darkMode?(this.git0=V(this.git0,25),this.git1=V(this.git1,25),this.git2=V(this.git2,25),this.git3=V(this.git3,25),this.git4=V(this.git4,25),this.git5=V(this.git5,25),this.git6=V(this.git6,25),this.git7=V(this.git7,25)):(this.git0=G(this.git0,25),this.git1=G(this.git1,25),this.git2=G(this.git2,25),this.git3=G(this.git3,25),this.git4=G(this.git4,25),this.git5=G(this.git5,25),this.git6=G(this.git6,25),this.git7=G(this.git7,25)),this.gitInv0=this.gitInv0||G(L(this.git0),25),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||L(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||L(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Qc,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tu}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(r=>{this[r]=e[r]}),this.updateColors(),n.forEach(r=>{this[r]=e[r]})}};const gz=t=>{const e=new mz;return e.calculate(t),e};let yz=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=V("#cde498",10),this.primaryBorderColor=ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ue(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.primaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,n,r,i,o,s,a,l,c,u,h;this.actorBorder=G(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||w(this.primaryColor,{h:30}),this.cScale4=this.cScale4||w(this.primaryColor,{h:60}),this.cScale5=this.cScale5||w(this.primaryColor,{h:90}),this.cScale6=this.cScale6||w(this.primaryColor,{h:120}),this.cScale7=this.cScale7||w(this.primaryColor,{h:150}),this.cScale8=this.cScale8||w(this.primaryColor,{h:210}),this.cScale9=this.cScale9||w(this.primaryColor,{h:270}),this.cScale10=this.cScale10||w(this.primaryColor,{h:300}),this.cScale11=this.cScale11||w(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||G(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||G(this.tertiaryColor,40);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=G(this["cScale"+d],10),this["cScalePeer"+d]=this["cScalePeer"+d]||G(this["cScale"+d],25);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||w(this["cScale"+d],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=this["cScaleLabel"+d]||this.scaleLabelColor;for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||w(this.mainBkg,{h:30,s:-30,l:-(5+d*5)}),this["surfacePeer"+d]=this["surfacePeer"+d]||w(this.mainBkg,{h:30,s:-30,l:-(8+d*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=w(this.primaryColor,{h:64}),this.fillType3=w(this.secondaryColor,{h:64}),this.fillType4=w(this.primaryColor,{h:-64}),this.fillType5=w(this.secondaryColor,{h:-64}),this.fillType6=w(this.primaryColor,{h:128}),this.fillType7=w(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||w(this.primaryColor,{l:-30}),this.pie5=this.pie5||w(this.secondaryColor,{l:-30}),this.pie6=this.pie6||w(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||w(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||w(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||w(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||w(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||w(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||w(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Sa(this.quadrant1Fill)?V(this.quadrant1Fill):G(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||w(this.primaryColor,{h:-30}),this.git4=this.git4||w(this.primaryColor,{h:-60}),this.git5=this.git5||w(this.primaryColor,{h:-90}),this.git6=this.git6||w(this.primaryColor,{h:60}),this.git7=this.git7||w(this.primaryColor,{h:120}),this.darkMode?(this.git0=V(this.git0,25),this.git1=V(this.git1,25),this.git2=V(this.git2,25),this.git3=V(this.git3,25),this.git4=V(this.git4,25),this.git5=V(this.git5,25),this.git6=V(this.git6,25),this.git7=V(this.git7,25)):(this.git0=G(this.git0,25),this.git1=G(this.git1,25),this.git2=G(this.git2,25),this.git3=G(this.git3,25),this.git4=G(this.git4,25),this.git5=G(this.git5,25),this.git6=G(this.git6,25),this.git7=G(this.git7,25)),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||L(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||L(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Qc,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tu}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(r=>{this[r]=e[r]}),this.updateColors(),n.forEach(r=>{this[r]=e[r]})}};const xz=t=>{const e=new yz;return e.calculate(t),e};class bz{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=V(this.contrast,55),this.background="#ffffff",this.tertiaryColor=w(this.primaryColor,{h:-160}),this.primaryBorderColor=ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ue(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,n,r,i,o,s,a,l,c,u,h;this.secondBkg=V(this.contrast,55),this.border2=this.contrast,this.actorBorder=V(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||L(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||V(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||G(this["cScale"+d],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=this["cScaleLabel"+d]||this.scaleLabelColor;for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||w(this.mainBkg,{l:-(5+d*5)}),this["surfacePeer"+d]=this["surfacePeer"+d]||w(this.mainBkg,{l:-(8+d*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=V(this.contrast,30),this.sectionBkgColor2=V(this.contrast,30),this.taskBorderColor=G(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=V(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=G(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=w(this.primaryColor,{h:64}),this.fillType3=w(this.secondaryColor,{h:64}),this.fillType4=w(this.primaryColor,{h:-64}),this.fillType5=w(this.secondaryColor,{h:-64}),this.fillType6=w(this.primaryColor,{h:128}),this.fillType7=w(this.secondaryColor,{h:128});for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["pie"+d]=this["cScale"+d];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Sa(this.quadrant1Fill)?V(this.quadrant1Fill):G(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=G(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||w(this.primaryColor,{h:-30}),this.git4=this.pie5||w(this.primaryColor,{h:-60}),this.git5=this.pie6||w(this.primaryColor,{h:-90}),this.git6=this.pie7||w(this.primaryColor,{h:60}),this.git7=this.pie8||w(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Qc,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tu}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(r=>{this[r]=e[r]}),this.updateColors(),n.forEach(r=>{this[r]=e[r]})}}const kz=t=>{const e=new bz;return e.calculate(t),e},er={base:{getThemeVariables:dz},dark:{getThemeVariables:pz},default:{getThemeVariables:gz},forest:{getThemeVariables:xz},neutral:{getThemeVariables:kz}},Un={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],deterministicIds:!1,fontSize:16},FC={...Un,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:er.default.getThemeVariables(),sequence:{...Un.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...Un.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Un.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...Un.pie,useWidth:984},xyChart:{...Un.xyChart,useWidth:void 0},requirement:{...Un.requirement,useWidth:void 0},gitGraph:{...Un.gitGraph,useMaxWidth:!1},sankey:{...Un.sankey,useMaxWidth:!1}},LC=(t,e="")=>Object.keys(t).reduce((n,r)=>Array.isArray(t[r])?n:typeof t[r]=="object"&&t[r]!==null?[...n,e+r,...LC(t[r],"")]:[...n,e+r],[]),Cz=new Set(LC(FC,"")),wz=FC,ac=t=>{if(K.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>ac(e));return}for(const e of Object.keys(t)){if(K.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Cz.has(e)||t[e]==null){K.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){K.debug("sanitizing object",e),ac(t[e]);continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const r of n)e.includes(r)&&(K.debug("sanitizing css option",e),t[e]=Sz(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const n=t.themeVariables[e];n?.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}K.debug("After sanitization",t)}},Sz=t=>{let e=0,n=0;for(const r of t){if(e<n)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?e++:r==="}"&&n++}return e!==n?"{ /* ERROR: Unbalanced CSS */ }":t},DC=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Rs=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,_z=/\s*%%.*\n/gm;class RC extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const Co={},eu=function(t,e){t=t.replace(DC,"").replace(Rs,"").replace(_z,` +`);for(const[n,{detector:r}]of Object.entries(Co))if(r(t,e))return n;throw new RC(`No diagram type detected matching given configuration for text: ${t}`)},PC=(...t)=>{for(const{id:e,detector:n,loader:r}of t)$C(e,n,r)},$C=(t,e,n)=>{Co[t]?K.error(`Detector with key ${t} already exists`):Co[t]={detector:e,loader:n},K.debug(`Detector with key ${t} added${n?" with loader":""}`)},Tz=t=>Co[t].loader,wd=(t,e,{depth:n=2,clobber:r=!1}={})=>{const i={depth:n,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>wd(t,o,i)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||n<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=wd(t[o],e[o],{depth:n-1,clobber:r})):(r||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},Qt=wd,vz="​",Az={curveBasis:X5,curveBasisClosed:Z5,curveBasisOpen:Q5,curveBumpX:Y5,curveBumpY:J5,curveBundle:tR,curveCardinalClosed:nR,curveCardinalOpen:rR,curveCardinal:eR,curveCatmullRomClosed:oR,curveCatmullRomOpen:sR,curveCatmullRom:iR,curveLinear:G5,curveLinearClosed:aR,curveMonotoneX:lR,curveMonotoneY:cR,curveNatural:uR,curveStep:hR,curveStepAfter:fR,curveStepBefore:dR},Ez=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Mz=function(t,e){const n=zC(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(n)){const s=n.map(a=>a.args);ac(s),r=Qt(r,[...s])}else r=n.args;if(!r)return;let i=eu(t,e);const o="config";return r[o]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),r[i]=r[o],delete r[o]),r},zC=function(t,e=null){try{const n=new RegExp(`[%]{2}(?![{]${Ez.source})(?=[}][%]{2}).* +`,"ig");t=t.trim().replace(n,"").replace(/'/gm,'"'),K.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const i=[];for(;(r=Rs.exec(t))!==null;)if(r.index===Rs.lastIndex&&Rs.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:o,args:s})}return i.length===0?{type:t,args:null}:i.length===1?i[0]:i}catch(n){return K.error(`ERROR: ${n.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},Nz=function(t){return t.replace(Rs,"")},Oz=function(t,e){for(const[n,r]of e.entries())if(r.match(t))return n;return-1};function Iz(t,e){if(!t)return e;const n=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Az[n]??e}function Bz(t,e){const n=t.trim();if(n)return e.securityLevel!=="loose"?bk.sanitizeUrl(n):n}const Fz=(t,...e)=>{const n=t.split("."),r=n.length-1,i=n[r];let o=window;for(let s=0;s<r;s++)if(o=o[n[s]],!o){K.error(`Function name: ${t} not found in window`);return}o[i](...e)};function qC(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Lz(t){let e,n=0;t.forEach(i=>{n+=qC(i,e),e=i});const r=n/2;return Op(t,r)}function Dz(t){return t.length===1?t[0]:Lz(t)}const Qy=(t,e=2)=>{const n=Math.pow(10,e);return Math.round(t*n)/n},Op=(t,e)=>{let n,r=e;for(const i of t){if(n){const o=qC(i,n);if(o<r)r-=o;else{const s=r/o;if(s<=0)return n;if(s>=1)return{x:i.x,y:i.y};if(s>0&&s<1)return{x:Qy((1-s)*n.x+s*i.x,5),y:Qy((1-s)*n.y+s*i.y,5)}}}n=i}throw new Error("Could not find a suitable point for the given distance")},Rz=(t,e,n)=>{K.info(`our points ${JSON.stringify(e)}`),e[0]!==n&&(e=e.reverse());const i=Op(e,25),o=t?10:5,s=Math.atan2(e[0].y-i.y,e[0].x-i.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+i.x)/2,a.y=-Math.cos(s)*o+(e[0].y+i.y)/2,a};function Pz(t,e,n){const r=structuredClone(n);K.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const i=25+t,o=Op(r,i),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function $z(t){let e="",n="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":e=e+r+";");return{style:e,labelStyle:n}}let t0=0;const zz=()=>(t0++,"id-"+Math.random().toString(36).substr(2,12)+"-"+t0);function qz(t){let e="";const n="0123456789abcdef",r=n.length;for(let i=0;i<t;i++)e+=n.charAt(Math.floor(Math.random()*r));return e}const jz=t=>qz(t.length),Wz=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},Vz=function(t,e){const n=e.text.replace(Np.lineBreakRegex," "),[,r]=Bp(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",r),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),e.class!==void 0&&i.attr("class",e.class);const o=i.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(n),i},Hz=_a((t,e,n)=>{if(!t||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),Np.lineBreakRegex.test(t)))return t;const r=t.split(" "),i=[];let o="";return r.forEach((s,a)=>{const l=lc(`${s} `,n),c=lc(o,n);if(l>e){const{hyphenatedStrings:d,remainingWord:f}=Uz(s,e,"-",n);i.push(o,...d),o=f}else c+l>=e?(i.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&i.push(o)}),i.filter(s=>s!=="").join(n.joinWith)},(t,e,n)=>`${t}${e}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),Uz=_a((t,e,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const i=[...t],o=[];let s="";return i.forEach((a,l)=>{const c=`${s}${a}`;if(lc(c,r)>=e){const h=l+1,d=i.length===h,f=`${c}${n}`;o.push(d?c:f),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,n="-",r)=>`${t}${e}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Kz(t,e){return Ip(t,e).height}function lc(t,e){return Ip(t,e).width}const Ip=_a((t,e)=>{const{fontSize:n=12,fontFamily:r="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};const[,o]=Bp(n),s=["sans-serif",r],a=t.split(Np.lineBreakRegex),l=[],c=qe("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const d of s){let f=0;const p={width:0,height:0,lineHeight:0};for(const m of a){const g=Wz();g.text=m||vz;const y=Vz(u,g).style("font-size",o).style("font-weight",i).style("font-family",d),C=(y._groups||y)[0][0].getBBox();if(C.width===0&&C.height===0)throw new Error("svg element not in render tree");p.width=Math.round(Math.max(p.width,C.width)),f=Math.round(C.height),p.height+=f,p.lineHeight=Math.round(Math.max(p.lineHeight,f))}l.push(p)}u.remove();const h=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[h]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class Gz{constructor(e=!1,n){this.count=0,this.count=n?n.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let Ua;const Yz=function(t){return Ua=Ua||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Ua.innerHTML=t,unescape(Ua.textContent)};function jC(t){return"str"in t}const Jz=(t,e,n,r)=>{var i;if(!r)return;const o=(i=t.node())==null?void 0:i.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-n).attr("class",e)},Bp=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function WC(t,e){return k$({},t,e)}const Ps={assignWithDepth:Qt,wrapLabel:Hz,calculateTextHeight:Kz,calculateTextWidth:lc,calculateTextDimensions:Ip,cleanAndMerge:WC,detectInit:Mz,detectDirective:zC,isSubstringInArray:Oz,interpolateToCurve:Iz,calcLabelPosition:Dz,calcCardinalityPosition:Rz,calcTerminalLabelPosition:Pz,formatUrl:Bz,getStylesFromArray:$z,generateId:zz,random:jz,runFunc:Fz,entityDecode:Yz,insertTitle:Jz,parseFontSize:Bp,InitIDGenerator:Gz},Xz=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),e=e.replace(/#\w+;/g,function(n){const r=n.substring(1,n.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},Zz=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},e0="10.8.0",wo=Object.freeze(wz);let we=Qt({},wo),VC,So=[],$s=Qt({},wo);const nu=(t,e)=>{let n=Qt({},t),r={};for(const i of e)KC(i),r=Qt(r,i);if(n=Qt(n,r),r.theme&&r.theme in er){const i=Qt({},VC),o=Qt(i.themeVariables||{},r.themeVariables);n.theme&&n.theme in er&&(n.themeVariables=er[n.theme].getThemeVariables(o))}return $s=n,GC($s),$s},Qz=t=>(we=Qt({},wo),we=Qt(we,t),t.theme&&er[t.theme]&&(we.themeVariables=er[t.theme].getThemeVariables(t.themeVariables)),nu(we,So),we),t4=t=>{VC=Qt({},t)},e4=t=>(we=Qt(we,t),nu(we,So),we),HC=()=>Qt({},we),UC=t=>(GC(t),Qt($s,t),In()),In=()=>Qt({},$s),KC=t=>{t&&(["secure",...we.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(K.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&KC(t[e])}))},n4=t=>{ac(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),So.push(t),nu(we,So)},cc=(t=we)=>{So=[],nu(t,So)},r4={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},n0={},i4=t=>{n0[t]||(K.warn(r4[t]),n0[t]=!0)},GC=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&i4("LAZY_LOAD_DEPRECATED")},YC="c4",o4=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),s4=async()=>{const{diagram:t}=await St(()=>import("./c4Diagram-b947cdbb-rlOF_y7a.js"),__vite__mapDeps([24,25,1,2,3,4,5,6,7,8,9,10,11,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:YC,diagram:t}},a4={id:YC,detector:o4,loader:s4},l4=a4,JC="flowchart",c4=(t,e)=>{var n,r;return((n=e?.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"||((r=e?.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},u4=async()=>{const{diagram:t}=await St(()=>import("./flowDiagram-d949d7c1-ErNISY_0.js"),__vite__mapDeps([42,43,44,45,46,47,48,49,50,51,52,53,54,1,2,3,4,5,6,7,8,9,10,11,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:JC,diagram:t}},h4={id:JC,detector:c4,loader:u4},d4=h4,XC="flowchart-v2",f4=(t,e)=>{var n,r,i;return((n=e?.flowchart)==null?void 0:n.defaultRenderer)==="dagre-d3"||((r=e?.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((i=e?.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},p4=async()=>{const{diagram:t}=await St(()=>import("./flowDiagram-v2-49332944-xSAzzGOz.js"),__vite__mapDeps([55,43,46,44,47,45,48,49,50,51,52,53,54,1,2,3,4,5,6,7,8,9,10,11,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:XC,diagram:t}},m4={id:XC,detector:f4,loader:p4},g4=m4,ZC="er",y4=t=>/^\s*erDiagram/.test(t),x4=async()=>{const{diagram:t}=await St(()=>import("./erDiagram-0ea73325-FqUzboSr.js"),__vite__mapDeps([56,44,45,1,2,3,4,5,6,7,8,9,10,11,51,52,53,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:ZC,diagram:t}},b4={id:ZC,detector:y4,loader:x4},k4=b4,QC="gitGraph",C4=t=>/^\s*gitGraph/.test(t),w4=async()=>{const{diagram:t}=await St(()=>import("./gitGraphDiagram-b9d81de9-ZLsHtwEj.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,10,11,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:QC,diagram:t}},S4={id:QC,detector:C4,loader:w4},_4=S4,tw="gantt",T4=t=>/^\s*gantt/.test(t),v4=async()=>{const{diagram:t}=await St(()=>import("./ganttDiagram-5c869e3b-ARB9uH4V.js"),__vite__mapDeps([58,1,2,3,4,5,6,7,8,9,10,11,59,60,61,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:tw,diagram:t}},A4={id:tw,detector:T4,loader:v4},E4=A4,ew="info",M4=t=>/^\s*info/.test(t),N4=async()=>{const{diagram:t}=await St(()=>import("./infoDiagram-db7b18fc-4cttBWjI.js"),__vite__mapDeps([62,1,2,3,4,5,6,7,8,9,10,11,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:ew,diagram:t}},O4={id:ew,detector:M4,loader:N4},nw="pie",I4=t=>/^\s*pie/.test(t),B4=async()=>{const{diagram:t}=await St(()=>import("./pieDiagram-b0208e96-YwXKfy_j.js"),__vite__mapDeps([63,1,2,3,4,5,6,7,8,9,10,11,64,53,65,61,52,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:nw,diagram:t}},F4={id:nw,detector:I4,loader:B4},rw="quadrantChart",L4=t=>/^\s*quadrantChart/.test(t),D4=async()=>{const{diagram:t}=await St(()=>import("./quadrantDiagram-0332be45-5DdBbv76.js"),__vite__mapDeps([66,1,2,3,4,5,6,7,8,9,10,11,60,61,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:rw,diagram:t}},R4={id:rw,detector:L4,loader:D4},P4=R4,iw="xychart",$4=t=>/^\s*xychart-beta/.test(t),z4=async()=>{const{diagram:t}=await St(()=>import("./xychartDiagram-e50adddc-Pu7PK04q.js"),__vite__mapDeps([67,50,1,2,3,4,5,6,7,8,9,10,11,61,65,60,51,52,53,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:iw,diagram:t}},q4={id:iw,detector:$4,loader:z4},j4=q4,ow="requirement",W4=t=>/^\s*requirement(Diagram)?/.test(t),V4=async()=>{const{diagram:t}=await St(()=>import("./requirementDiagram-bf7890df-RlMVGrmI.js"),__vite__mapDeps([68,44,45,1,2,3,4,5,6,7,8,9,10,11,51,52,53,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:ow,diagram:t}},H4={id:ow,detector:W4,loader:V4},U4=H4,sw="sequence",K4=t=>/^\s*sequenceDiagram/.test(t),G4=async()=>{const{diagram:t}=await St(()=>import("./sequenceDiagram-c18d009d-j36an92T.js"),__vite__mapDeps([69,25,1,2,3,4,5,6,7,8,9,10,11,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:sw,diagram:t}},Y4={id:sw,detector:K4,loader:G4},J4=Y4,aw="class",X4=(t,e)=>{var n;return((n=e?.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},Z4=async()=>{const{diagram:t}=await St(()=>import("./classDiagram-35230388-puu_M8n9.js"),__vite__mapDeps([70,71,44,45,1,2,3,4,5,6,7,8,9,10,11,51,52,53,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:aw,diagram:t}},Q4={id:aw,detector:X4,loader:Z4},t6=Q4,lw="classDiagram",e6=(t,e)=>{var n;return/^\s*classDiagram/.test(t)&&((n=e?.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},n6=async()=>{const{diagram:t}=await St(()=>import("./classDiagram-v2-412acd34-LCQBBOMj.js"),__vite__mapDeps([72,71,44,47,45,48,49,50,51,52,53,1,2,3,4,5,6,7,8,9,10,11,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:lw,diagram:t}},r6={id:lw,detector:e6,loader:n6},i6=r6,cw="state",o6=(t,e)=>{var n;return((n=e?.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},s6=async()=>{const{diagram:t}=await St(()=>import("./stateDiagram-43596fc0-4oCgWI2B.js"),__vite__mapDeps([73,74,44,45,1,2,3,4,5,6,7,8,9,10,11,51,52,53,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:cw,diagram:t}},a6={id:cw,detector:o6,loader:s6},l6=a6,uw="stateDiagram",c6=(t,e)=>{var n;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((n=e?.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper")},u6=async()=>{const{diagram:t}=await St(()=>import("./stateDiagram-v2-2ead4f9c-RX6qkuV-.js"),__vite__mapDeps([75,74,44,47,45,48,49,50,51,52,53,1,2,3,4,5,6,7,8,9,10,11,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:uw,diagram:t}},h6={id:uw,detector:c6,loader:u6},d6=h6,hw="journey",f6=t=>/^\s*journey/.test(t),p6=async()=>{const{diagram:t}=await St(()=>import("./journeyDiagram-d5636530-M9KIWAMV.js"),__vite__mapDeps([76,25,1,2,3,4,5,6,7,8,9,10,11,64,53,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:hw,diagram:t}},m6={id:hw,detector:f6,loader:p6},g6=m6,y6=function(t,e){for(let n of e)t.attr(n[0],n[1])},x6=function(t,e,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},dw=function(t,e,n,r){const i=x6(e,n,r);y6(t,i)},b6=function(t,e,n,r){const i=e.node().getBBox(),o=i.width,s=i.height;K.info(`SVG bounds: ${o}x${s}`,i);let a=0,l=0;K.info(`Graph bounds: ${a}x${l}`,t),a=o+n*2,l=s+n*2,K.info(`Calculated bounds: ${a}x${l}`),dw(e,l,a,r);const c=`${i.x-n} ${i.y-n} ${i.width+2*n} ${i.height+2*n}`;e.attr("viewBox",c)},Il={},k6=(t,e,n)=>{let r="";return t in Il&&Il[t]?r=Il[t](n):K.warn(`No theme found for ${t}`),` & { + font-family: ${n.fontFamily}; + font-size: ${n.fontSize}; + fill: ${n.textColor} + } + + /* Classes common for multiple diagrams */ + + & .error-icon { + fill: ${n.errorBkgColor}; + } + & .error-text { + fill: ${n.errorTextColor}; + stroke: ${n.errorTextColor}; + } + + & .edge-thickness-normal { + stroke-width: 2px; + } + & .edge-thickness-thick { + stroke-width: 3.5px + } + & .edge-pattern-solid { + stroke-dasharray: 0; + } + + & .edge-pattern-dashed{ + stroke-dasharray: 3; + } + .edge-pattern-dotted { + stroke-dasharray: 2; + } + + & .marker { + fill: ${n.lineColor}; + stroke: ${n.lineColor}; + } + & .marker.cross { + stroke: ${n.lineColor}; + } + + & svg { + font-family: ${n.fontFamily}; + font-size: ${n.fontSize}; + } + + ${r} + + ${e} +`},C6=(t,e)=>{e!==void 0&&(Il[t]=e)},w6=k6;let Fp="",Lp="",Dp="";const Rp=t=>ia(t,In()),S6=()=>{Fp="",Dp="",Lp=""},_6=t=>{Fp=Rp(t).replace(/^\s+/g,"")},T6=()=>Fp,v6=t=>{Dp=Rp(t).replace(/\n\s+/g,` +`)},A6=()=>Dp,E6=t=>{Lp=Rp(t)},M6=()=>Lp,N6=Object.freeze(Object.defineProperty({__proto__:null,clear:S6,getAccDescription:A6,getAccTitle:T6,getDiagramTitle:M6,setAccDescription:v6,setAccTitle:_6,setDiagramTitle:E6},Symbol.toStringTag,{value:"Module"})),O6=K,I6=Mp,Pp=In,Tj=UC,vj=wo,B6=t=>ia(t,Pp()),F6=b6,L6=()=>N6,uc={},hc=(t,e,n)=>{var r;if(uc[t])throw new Error(`Diagram ${t} already registered.`);uc[t]=e,n&&$C(t,n),C6(t,e.styles),(r=e.injectUtils)==null||r.call(e,O6,I6,Pp,B6,F6,L6(),()=>{})},$p=t=>{if(t in uc)return uc[t];throw new D6(t)};class D6 extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const R6=t=>{var e;const{securityLevel:n}=Pp();let r=qe("body");if(n==="sandbox"){const s=((e=qe(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=qe(s.body)}return r.select(`#${t}`)},P6=(t,e,n)=>{K.debug(`rendering svg for syntax error +`);const r=R6(e);r.attr("viewBox","0 0 2412 512"),dw(r,100,512,!0);const i=r.append("g");i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},fw={draw:P6},$6=fw,z6={db:{},renderer:fw,parser:{parser:{yy:{}},parse:()=>{}}},q6=z6,pw="flowchart-elk",j6=(t,e)=>{var n;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((n=e?.flowchart)==null?void 0:n.defaultRenderer)==="elk")},W6=async()=>{const{diagram:t}=await St(()=>import("./flowchart-elk-definition-27cc417a-m0tn04K1.js"),__vite__mapDeps([77,43,49,50,51,52,53,2,3,1,4,5,6,7,8,9,10,11,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:pw,diagram:t}},V6={id:pw,detector:j6,loader:W6},H6=V6,mw="timeline",U6=t=>/^\s*timeline/.test(t),K6=async()=>{const{diagram:t}=await St(()=>import("./timeline-definition-d977decf-2sn2zGPn.js"),__vite__mapDeps([78,1,2,3,4,5,6,7,8,9,10,11,64,53,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:mw,diagram:t}},G6={id:mw,detector:U6,loader:K6},Y6=G6,gw="mindmap",J6=t=>/^\s*mindmap/.test(t),X6=async()=>{const{diagram:t}=await St(()=>import("./mindmap-definition-377f8f1f-YpEvNrVg.js"),__vite__mapDeps([79,2,3,50,1,4,5,6,7,8,9,10,11,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:gw,diagram:t}},Z6={id:gw,detector:J6,loader:X6},Q6=Z6,yw="sankey",t8=t=>/^\s*sankey-beta/.test(t),e8=async()=>{const{diagram:t}=await St(()=>import("./sankeyDiagram-0acdec17-dOKGH0tB.js"),__vite__mapDeps([80,1,2,3,4,5,6,7,8,9,10,11,65,61,81,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:yw,diagram:t}},n8={id:yw,detector:t8,loader:e8},r8=n8,xw="block",i8=t=>/^\s*block-beta/.test(t),o8=async()=>{const{diagram:t}=await St(()=>import("./blockDiagram-6b2b5046-EEaC2SLU.js"),__vite__mapDeps([82,48,44,49,50,51,52,53,1,2,3,4,5,6,7,8,9,10,11,65,61,54,81,26,27,13,14,15,16,17,18,19,20,28,29,30,31,32,33,34,35,12,36,37,38,39,40,41]),import.meta.url);return{id:xw,diagram:t}},s8={id:xw,detector:i8,loader:o8},a8=s8;let r0=!1;const zp=()=>{r0||(r0=!0,hc("error",q6,t=>t.toLowerCase().trim()==="error"),hc("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),PC(l4,i6,t6,k4,E4,O4,F4,U4,J4,H6,g4,d4,Q6,Y6,_4,d6,l6,g6,P4,r8,j4,a8))};class bw{constructor(e,n={}){this.text=e,this.metadata=n,this.type="graph",this.text=Xz(e),this.text+=` +`;const r=In();try{this.type=eu(e,r)}catch(o){this.type="error",this.detectError=o}const i=$p(this.type);K.debug("Type "+this.type),this.db=i.db,this.renderer=i.renderer,this.parser=i.parser,this.parser.parser.yy=this.db,this.init=i.init,this.parse()}parse(){var e,n,r,i,o;if(this.detectError)throw this.detectError;(n=(e=this.db).clear)==null||n.call(e);const s=In();(r=this.init)==null||r.call(this,s),this.metadata.title&&((o=(i=this.db).setDiagramTitle)==null||o.call(i,this.metadata.title)),this.parser.parse(this.text)}async render(e,n){await this.renderer.draw(this.text,e,n,this)}getParser(){return this.parser}getType(){return this.type}}const l8=async(t,e={})=>{const n=eu(t,In());try{$p(n)}catch{const i=Tz(n);if(!i)throw new RC(`Diagram ${n} not found.`);const{id:o,diagram:s}=await i();hc(o,s)}return new bw(t,e)};let i0=[];const c8=()=>{i0.forEach(t=>{t()}),i0=[]},u8="graphics-document document";function h8(t,e){t.attr("role",u8),e!==""&&t.attr("aria-roledescription",e)}function d8(t,e,n,r){if(t.insert!==void 0){if(n){const i=`chart-desc-${r}`;t.attr("aria-describedby",i),t.insert("desc",":first-child").attr("id",i).text(n)}if(e){const i=`chart-title-${r}`;t.attr("aria-labelledby",i),t.insert("title",":first-child").attr("id",i).text(e)}}}const f8=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function kw(t){return typeof t>"u"||t===null}function p8(t){return typeof t=="object"&&t!==null}function m8(t){return Array.isArray(t)?t:kw(t)?[]:[t]}function g8(t,e){var n,r,i,o;if(e)for(o=Object.keys(e),n=0,r=o.length;n<r;n+=1)i=o[n],t[i]=e[i];return t}function y8(t,e){var n="",r;for(r=0;r<e;r+=1)n+=t;return n}function x8(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var b8=kw,k8=p8,C8=m8,w8=y8,S8=x8,_8=g8,ce={isNothing:b8,isObject:k8,toArray:C8,repeat:w8,isNegativeZero:S8,extend:_8};function Cw(t,e){var n="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+=` + +`+t.mark.snippet),r+" "+n):r}function oa(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Cw(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}oa.prototype=Object.create(Error.prototype);oa.prototype.constructor=oa;oa.prototype.toString=function(e){return this.name+": "+Cw(this,e)};var Zn=oa;function ch(t,e,n,r,i){var o="",s="",a=Math.floor(i/2)-1;return r-e>a&&(o=" ... ",e=r-a+o.length),n-r>a&&(s=" ...",n=r+a-s.length),{str:o+t.slice(e,n).replace(/\t/g,"→")+s,pos:r-e+o.length}}function uh(t,e){return ce.repeat(" ",e-t.length)+t}function T8(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],o,s=-1;o=n.exec(t.buffer);)i.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,i.length).toString().length,h=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=ch(t.buffer,r[s-l],i[s-l],t.position-(r[s]-r[s-l]),h),a=ce.repeat(" ",e.indent)+uh((t.line-l+1).toString(),u)+" | "+c.str+` +`+a;for(c=ch(t.buffer,r[s],i[s],t.position,h),a+=ce.repeat(" ",e.indent)+uh((t.line+1).toString(),u)+" | "+c.str+` +`,a+=ce.repeat("-",e.indent+u+3+c.pos)+`^ +`,l=1;l<=e.linesAfter&&!(s+l>=i.length);l++)c=ch(t.buffer,r[s+l],i[s+l],t.position-(r[s]-r[s+l]),h),a+=ce.repeat(" ",e.indent)+uh((t.line+l+1).toString(),u)+" | "+c.str+` +`;return a.replace(/\n$/,"")}var v8=T8,A8=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],E8=["scalar","sequence","mapping"];function M8(t){var e={};return t!==null&&Object.keys(t).forEach(function(n){t[n].forEach(function(r){e[String(r)]=n})}),e}function N8(t,e){if(e=e||{},Object.keys(e).forEach(function(n){if(A8.indexOf(n)===-1)throw new Zn('Unknown option "'+n+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(n){return n},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=M8(e.styleAliases||null),E8.indexOf(this.kind)===-1)throw new Zn('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ne=N8;function o0(t,e){var n=[];return t[e].forEach(function(r){var i=n.length;n.forEach(function(o,s){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(i=s)}),n[i]=r}),n}function O8(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,n;function r(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(r);return t}function Sd(t){return this.extend(t)}Sd.prototype.extend=function(e){var n=[],r=[];if(e instanceof ne)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(n=n.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Zn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof ne))throw new Zn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Zn("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Zn("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(o){if(!(o instanceof ne))throw new Zn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Sd.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=o0(i,"implicit"),i.compiledExplicit=o0(i,"explicit"),i.compiledTypeMap=O8(i.compiledImplicit,i.compiledExplicit),i};var I8=Sd,B8=new ne("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),F8=new ne("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),L8=new ne("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),D8=new I8({explicit:[B8,F8,L8]});function R8(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function P8(){return null}function $8(t){return t===null}var z8=new ne("tag:yaml.org,2002:null",{kind:"scalar",resolve:R8,construct:P8,predicate:$8,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function q8(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function j8(t){return t==="true"||t==="True"||t==="TRUE"}function W8(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var V8=new ne("tag:yaml.org,2002:bool",{kind:"scalar",resolve:q8,construct:j8,predicate:W8,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function H8(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function U8(t){return 48<=t&&t<=55}function K8(t){return 48<=t&&t<=57}function G8(t){if(t===null)return!1;var e=t.length,n=0,r=!1,i;if(!e)return!1;if(i=t[n],(i==="-"||i==="+")&&(i=t[++n]),i==="0"){if(n+1===e)return!0;if(i=t[++n],i==="b"){for(n++;n<e;n++)if(i=t[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<e;n++)if(i=t[n],i!=="_"){if(!H8(t.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<e;n++)if(i=t[n],i!=="_"){if(!U8(t.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<e;n++)if(i=t[n],i!=="_"){if(!K8(t.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function Y8(t){var e=t,n=1,r;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),r=e[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),e=e.slice(1),r=e[0]),e==="0")return 0;if(r==="0"){if(e[1]==="b")return n*parseInt(e.slice(2),2);if(e[1]==="x")return n*parseInt(e.slice(2),16);if(e[1]==="o")return n*parseInt(e.slice(2),8)}return n*parseInt(e,10)}function J8(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!ce.isNegativeZero(t)}var X8=new ne("tag:yaml.org,2002:int",{kind:"scalar",resolve:G8,construct:Y8,predicate:J8,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Z8=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Q8(t){return!(t===null||!Z8.test(t)||t[t.length-1]==="_")}function t9(t){var e,n;return e=t.replace(/_/g,"").toLowerCase(),n=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:n*parseFloat(e,10)}var e9=/^[-+]?[0-9]+e/;function n9(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ce.isNegativeZero(t))return"-0.0";return n=t.toString(10),e9.test(n)?n.replace("e",".e"):n}function r9(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ce.isNegativeZero(t))}var i9=new ne("tag:yaml.org,2002:float",{kind:"scalar",resolve:Q8,construct:t9,predicate:r9,represent:n9,defaultStyle:"lowercase"}),ww=D8.extend({implicit:[z8,V8,X8,i9]}),o9=ww,Sw=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_w=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function s9(t){return t===null?!1:Sw.exec(t)!==null||_w.exec(t)!==null}function a9(t){var e,n,r,i,o,s,a,l=0,c=null,u,h,d;if(e=Sw.exec(t),e===null&&(e=_w.exec(t)),e===null)throw new Error("Date resolve error");if(n=+e[1],r=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(n,r,i));if(o=+e[4],s=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],h=+(e[11]||0),c=(u*60+h)*6e4,e[9]==="-"&&(c=-c)),d=new Date(Date.UTC(n,r,i,o,s,a,l)),c&&d.setTime(d.getTime()-c),d}function l9(t){return t.toISOString()}var c9=new ne("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:s9,construct:a9,instanceOf:Date,represent:l9});function u9(t){return t==="<<"||t===null}var h9=new ne("tag:yaml.org,2002:merge",{kind:"scalar",resolve:u9}),qp=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function d9(t){if(t===null)return!1;var e,n,r=0,i=t.length,o=qp;for(n=0;n<i;n++)if(e=o.indexOf(t.charAt(n)),!(e>64)){if(e<0)return!1;r+=6}return r%8===0}function f9(t){var e,n,r=t.replace(/[\r\n=]/g,""),i=r.length,o=qp,s=0,a=[];for(e=0;e<i;e++)e%4===0&&e&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(r.charAt(e));return n=i%4*6,n===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):n===18?(a.push(s>>10&255),a.push(s>>2&255)):n===12&&a.push(s>>4&255),new Uint8Array(a)}function p9(t){var e="",n=0,r,i,o=t.length,s=qp;for(r=0;r<o;r++)r%3===0&&r&&(e+=s[n>>18&63],e+=s[n>>12&63],e+=s[n>>6&63],e+=s[n&63]),n=(n<<8)+t[r];return i=o%3,i===0?(e+=s[n>>18&63],e+=s[n>>12&63],e+=s[n>>6&63],e+=s[n&63]):i===2?(e+=s[n>>10&63],e+=s[n>>4&63],e+=s[n<<2&63],e+=s[64]):i===1&&(e+=s[n>>2&63],e+=s[n<<4&63],e+=s[64],e+=s[64]),e}function m9(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var g9=new ne("tag:yaml.org,2002:binary",{kind:"scalar",resolve:d9,construct:f9,predicate:m9,represent:p9}),y9=Object.prototype.hasOwnProperty,x9=Object.prototype.toString;function b9(t){if(t===null)return!0;var e=[],n,r,i,o,s,a=t;for(n=0,r=a.length;n<r;n+=1){if(i=a[n],s=!1,x9.call(i)!=="[object Object]")return!1;for(o in i)if(y9.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(o)===-1)e.push(o);else return!1}return!0}function k9(t){return t!==null?t:[]}var C9=new ne("tag:yaml.org,2002:omap",{kind:"sequence",resolve:b9,construct:k9}),w9=Object.prototype.toString;function S9(t){if(t===null)return!0;var e,n,r,i,o,s=t;for(o=new Array(s.length),e=0,n=s.length;e<n;e+=1){if(r=s[e],w9.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;o[e]=[i[0],r[i[0]]]}return!0}function _9(t){if(t===null)return[];var e,n,r,i,o,s=t;for(o=new Array(s.length),e=0,n=s.length;e<n;e+=1)r=s[e],i=Object.keys(r),o[e]=[i[0],r[i[0]]];return o}var T9=new ne("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:S9,construct:_9}),v9=Object.prototype.hasOwnProperty;function A9(t){if(t===null)return!0;var e,n=t;for(e in n)if(v9.call(n,e)&&n[e]!==null)return!1;return!0}function E9(t){return t!==null?t:{}}var M9=new ne("tag:yaml.org,2002:set",{kind:"mapping",resolve:A9,construct:E9}),N9=o9.extend({implicit:[c9,h9],explicit:[g9,C9,T9,M9]}),Dr=Object.prototype.hasOwnProperty,dc=1,Tw=2,vw=3,fc=4,hh=1,O9=2,s0=3,I9=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,B9=/[\x85\u2028\u2029]/,F9=/[,\[\]\{\}]/,Aw=/^(?:!|!!|![a-z\-]+!)$/i,Ew=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function a0(t){return Object.prototype.toString.call(t)}function An(t){return t===10||t===13}function xi(t){return t===9||t===32}function Te(t){return t===9||t===32||t===10||t===13}function Qi(t){return t===44||t===91||t===93||t===123||t===125}function L9(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function D9(t){return t===120?2:t===117?4:t===85?8:0}function R9(t){return 48<=t&&t<=57?t-48:-1}function l0(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?` +`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"…":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function P9(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Mw=new Array(256),Nw=new Array(256);for(var zi=0;zi<256;zi++)Mw[zi]=l0(zi)?1:0,Nw[zi]=l0(zi);function $9(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||N9,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ow(t,e){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=v8(n),new Zn(e,n)}function H(t,e){throw Ow(t,e)}function pc(t,e){t.onWarning&&t.onWarning.call(null,Ow(t,e))}var c0={YAML:function(e,n,r){var i,o,s;e.version!==null&&H(e,"duplication of %YAML directive"),r.length!==1&&H(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&H(e,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&H(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&pc(e,"unsupported YAML version of the document")},TAG:function(e,n,r){var i,o;r.length!==2&&H(e,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],Aw.test(i)||H(e,"ill-formed tag handle (first argument) of the TAG directive"),Dr.call(e.tagMap,i)&&H(e,'there is a previously declared suffix for "'+i+'" tag handle'),Ew.test(o)||H(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{H(e,"tag prefix is malformed: "+o)}e.tagMap[i]=o}};function Ir(t,e,n,r){var i,o,s,a;if(e<n){if(a=t.input.slice(e,n),r)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||H(t,"expected valid JSON character");else I9.test(a)&&H(t,"the stream contains non-printable characters");t.result+=a}}function u0(t,e,n,r){var i,o,s,a;for(ce.isObject(n)||H(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),s=0,a=i.length;s<a;s+=1)o=i[s],Dr.call(e,o)||(e[o]=n[o],r[o]=!0)}function to(t,e,n,r,i,o,s,a,l){var c,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,u=i.length;c<u;c+=1)Array.isArray(i[c])&&H(t,"nested arrays are not supported inside keys"),typeof i=="object"&&a0(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&a0(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)u0(t,e,o[c],n);else u0(t,e,o,n);else!t.json&&!Dr.call(n,i)&&Dr.call(e,i)&&(t.line=s||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,H(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[i]=o,delete n[i];return e}function jp(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):H(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Bt(t,e,n){for(var r=0,i=t.input.charCodeAt(t.position);i!==0;){for(;xi(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(An(i))for(jp(t),i=t.input.charCodeAt(t.position),r++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return n!==-1&&r!==0&&t.lineIndent<n&&pc(t,"deficient indentation"),r}function ru(t){var e=t.position,n;return n=t.input.charCodeAt(e),!!((n===45||n===46)&&n===t.input.charCodeAt(e+1)&&n===t.input.charCodeAt(e+2)&&(e+=3,n=t.input.charCodeAt(e),n===0||Te(n)))}function Wp(t,e){e===1?t.result+=" ":e>1&&(t.result+=ce.repeat(` +`,e-1))}function z9(t,e,n){var r,i,o,s,a,l,c,u,h=t.kind,d=t.result,f;if(f=t.input.charCodeAt(t.position),Te(f)||Qi(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(i=t.input.charCodeAt(t.position+1),Te(i)||n&&Qi(i)))return!1;for(t.kind="scalar",t.result="",o=s=t.position,a=!1;f!==0;){if(f===58){if(i=t.input.charCodeAt(t.position+1),Te(i)||n&&Qi(i))break}else if(f===35){if(r=t.input.charCodeAt(t.position-1),Te(r))break}else{if(t.position===t.lineStart&&ru(t)||n&&Qi(f))break;if(An(f))if(l=t.line,c=t.lineStart,u=t.lineIndent,Bt(t,!1,-1),t.lineIndent>=e){a=!0,f=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(Ir(t,o,s,!1),Wp(t,t.line-l),o=s=t.position,a=!1),xi(f)||(s=t.position+1),f=t.input.charCodeAt(++t.position)}return Ir(t,o,s,!1),t.result?!0:(t.kind=h,t.result=d,!1)}function q9(t,e){var n,r,i;if(n=t.input.charCodeAt(t.position),n!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(n=t.input.charCodeAt(t.position))!==0;)if(n===39)if(Ir(t,r,t.position,!0),n=t.input.charCodeAt(++t.position),n===39)r=t.position,t.position++,i=t.position;else return!0;else An(n)?(Ir(t,r,i,!0),Wp(t,Bt(t,!1,e)),r=i=t.position):t.position===t.lineStart&&ru(t)?H(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);H(t,"unexpected end of the stream within a single quoted scalar")}function j9(t,e){var n,r,i,o,s,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,n=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return Ir(t,n,t.position,!0),t.position++,!0;if(a===92){if(Ir(t,n,t.position,!0),a=t.input.charCodeAt(++t.position),An(a))Bt(t,!1,e);else if(a<256&&Mw[a])t.result+=Nw[a],t.position++;else if((s=D9(a))>0){for(i=s,o=0;i>0;i--)a=t.input.charCodeAt(++t.position),(s=L9(a))>=0?o=(o<<4)+s:H(t,"expected hexadecimal character");t.result+=P9(o),t.position++}else H(t,"unknown escape sequence");n=r=t.position}else An(a)?(Ir(t,n,r,!0),Wp(t,Bt(t,!1,e)),n=r=t.position):t.position===t.lineStart&&ru(t)?H(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}H(t,"unexpected end of the stream within a double quoted scalar")}function W9(t,e){var n=!0,r,i,o,s=t.tag,a,l=t.anchor,c,u,h,d,f,p=Object.create(null),m,g,y,C;if(C=t.input.charCodeAt(t.position),C===91)u=93,f=!1,a=[];else if(C===123)u=125,f=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),C=t.input.charCodeAt(++t.position);C!==0;){if(Bt(t,!0,e),C=t.input.charCodeAt(t.position),C===u)return t.position++,t.tag=s,t.anchor=l,t.kind=f?"mapping":"sequence",t.result=a,!0;n?C===44&&H(t,"expected the node content, but found ','"):H(t,"missed comma between flow collection entries"),g=m=y=null,h=d=!1,C===63&&(c=t.input.charCodeAt(t.position+1),Te(c)&&(h=d=!0,t.position++,Bt(t,!0,e))),r=t.line,i=t.lineStart,o=t.position,_o(t,e,dc,!1,!0),g=t.tag,m=t.result,Bt(t,!0,e),C=t.input.charCodeAt(t.position),(d||t.line===r)&&C===58&&(h=!0,C=t.input.charCodeAt(++t.position),Bt(t,!0,e),_o(t,e,dc,!1,!0),y=t.result),f?to(t,a,p,g,m,y,r,i,o):h?a.push(to(t,null,p,g,m,y,r,i,o)):a.push(m),Bt(t,!0,e),C=t.input.charCodeAt(t.position),C===44?(n=!0,C=t.input.charCodeAt(++t.position)):n=!1}H(t,"unexpected end of the stream within a flow collection")}function V9(t,e){var n,r,i=hh,o=!1,s=!1,a=e,l=0,c=!1,u,h;if(h=t.input.charCodeAt(t.position),h===124)r=!1;else if(h===62)r=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)hh===i?i=h===43?s0:O9:H(t,"repeat of a chomping mode identifier");else if((u=R9(h))>=0)u===0?H(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?H(t,"repeat of an indentation width identifier"):(a=e+u-1,s=!0);else break;if(xi(h)){do h=t.input.charCodeAt(++t.position);while(xi(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!An(h)&&h!==0)}for(;h!==0;){for(jp(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!s||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>a&&(a=t.lineIndent),An(h)){l++;continue}if(t.lineIndent<a){i===s0?t.result+=ce.repeat(` +`,o?1+l:l):i===hh&&o&&(t.result+=` +`);break}for(r?xi(h)?(c=!0,t.result+=ce.repeat(` +`,o?1+l:l)):c?(c=!1,t.result+=ce.repeat(` +`,l+1)):l===0?o&&(t.result+=" "):t.result+=ce.repeat(` +`,l):t.result+=ce.repeat(` +`,o?1+l:l),o=!0,s=!0,l=0,n=t.position;!An(h)&&h!==0;)h=t.input.charCodeAt(++t.position);Ir(t,n,t.position,!1)}return!0}function h0(t,e){var n,r=t.tag,i=t.anchor,o=[],s,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,H(t,"tab characters must not be used in indentation")),!(l!==45||(s=t.input.charCodeAt(t.position+1),!Te(s))));){if(a=!0,t.position++,Bt(t,!0,-1)&&t.lineIndent<=e){o.push(null),l=t.input.charCodeAt(t.position);continue}if(n=t.line,_o(t,e,vw,!1,!0),o.push(t.result),Bt(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>e)&&l!==0)H(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=r,t.anchor=i,t.kind="sequence",t.result=o,!0):!1}function H9(t,e,n){var r,i,o,s,a,l,c=t.tag,u=t.anchor,h={},d=Object.create(null),f=null,p=null,m=null,g=!1,y=!1,C;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),C=t.input.charCodeAt(t.position);C!==0;){if(!g&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,H(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),o=t.line,(C===63||C===58)&&Te(r))C===63?(g&&(to(t,h,d,f,p,null,s,a,l),f=p=m=null),y=!0,g=!0,i=!0):g?(g=!1,i=!0):H(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,C=r;else{if(s=t.line,a=t.lineStart,l=t.position,!_o(t,n,Tw,!1,!0))break;if(t.line===o){for(C=t.input.charCodeAt(t.position);xi(C);)C=t.input.charCodeAt(++t.position);if(C===58)C=t.input.charCodeAt(++t.position),Te(C)||H(t,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(to(t,h,d,f,p,null,s,a,l),f=p=m=null),y=!0,g=!1,i=!1,f=t.tag,p=t.result;else if(y)H(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(y)H(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===o||t.lineIndent>e)&&(g&&(s=t.line,a=t.lineStart,l=t.position),_o(t,e,fc,!0,i)&&(g?p=t.result:m=t.result),g||(to(t,h,d,f,p,m,s,a,l),f=p=m=null),Bt(t,!0,-1),C=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&C!==0)H(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return g&&to(t,h,d,f,p,null,s,a,l),y&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=h),y}function U9(t){var e,n=!1,r=!1,i,o,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&H(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(n=!0,s=t.input.charCodeAt(++t.position)):s===33?(r=!0,i="!!",s=t.input.charCodeAt(++t.position)):i="!",e=t.position,n){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(o=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):H(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Te(s);)s===33&&(r?H(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),Aw.test(i)||H(t,"named tag handle cannot contain such characters"),r=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);o=t.input.slice(e,t.position),F9.test(o)&&H(t,"tag suffix cannot contain flow indicator characters")}o&&!Ew.test(o)&&H(t,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{H(t,"tag name is malformed: "+o)}return n?t.tag=o:Dr.call(t.tagMap,i)?t.tag=t.tagMap[i]+o:i==="!"?t.tag="!"+o:i==="!!"?t.tag="tag:yaml.org,2002:"+o:H(t,'undeclared tag handle "'+i+'"'),!0}function K9(t){var e,n;if(n=t.input.charCodeAt(t.position),n!==38)return!1;for(t.anchor!==null&&H(t,"duplication of an anchor property"),n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!Te(n)&&!Qi(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&H(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function G9(t){var e,n,r;if(r=t.input.charCodeAt(t.position),r!==42)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Te(r)&&!Qi(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&H(t,"name of an alias node must contain at least one character"),n=t.input.slice(e,t.position),Dr.call(t.anchorMap,n)||H(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],Bt(t,!0,-1),!0}function _o(t,e,n,r,i){var o,s,a,l=1,c=!1,u=!1,h,d,f,p,m,g;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=s=a=fc===n||vw===n,r&&Bt(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;U9(t)||K9(t);)Bt(t,!0,-1)?(c=!0,a=o,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||i),(l===1||fc===n)&&(dc===n||Tw===n?m=e:m=e+1,g=t.position-t.lineStart,l===1?a&&(h0(t,g)||H9(t,g,m))||W9(t,m)?u=!0:(s&&V9(t,m)||q9(t,m)||j9(t,m)?u=!0:G9(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&H(t,"alias node should not have any properties")):z9(t,m,dc===n)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&h0(t,g))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&H(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,d=t.implicitTypes.length;h<d;h+=1)if(p=t.implicitTypes[h],p.resolve(t.result)){t.result=p.construct(t.result),t.tag=p.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Dr.call(t.typeMap[t.kind||"fallback"],t.tag))p=t.typeMap[t.kind||"fallback"][t.tag];else for(p=null,f=t.typeMap.multi[t.kind||"fallback"],h=0,d=f.length;h<d;h+=1)if(t.tag.slice(0,f[h].tag.length)===f[h].tag){p=f[h];break}p||H(t,"unknown tag !<"+t.tag+">"),t.result!==null&&p.kind!==t.kind&&H(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+p.kind+'", not "'+t.kind+'"'),p.resolve(t.result,t.tag)?(t.result=p.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):H(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function Y9(t){var e=t.position,n,r,i,o=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(Bt(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(o=!0,s=t.input.charCodeAt(++t.position),n=t.position;s!==0&&!Te(s);)s=t.input.charCodeAt(++t.position);for(r=t.input.slice(n,t.position),i=[],r.length<1&&H(t,"directive name must not be less than one character in length");s!==0;){for(;xi(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!An(s));break}if(An(s))break;for(n=t.position;s!==0&&!Te(s);)s=t.input.charCodeAt(++t.position);i.push(t.input.slice(n,t.position))}s!==0&&jp(t),Dr.call(c0,r)?c0[r](t,r,i):pc(t,'unknown document directive "'+r+'"')}if(Bt(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Bt(t,!0,-1)):o&&H(t,"directives end mark is expected"),_o(t,t.lineIndent-1,fc,!1,!0),Bt(t,!0,-1),t.checkLineBreaks&&B9.test(t.input.slice(e,t.position))&&pc(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&ru(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Bt(t,!0,-1));return}if(t.position<t.length-1)H(t,"end of the stream or a document separator is expected");else return}function Iw(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=` +`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var n=new $9(t,e),r=t.indexOf("\0");for(r!==-1&&(n.position=r,H(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Y9(n);return n.documents}function J9(t,e,n){e!==null&&typeof e=="object"&&typeof n>"u"&&(n=e,e=null);var r=Iw(t,n);if(typeof e!="function")return r;for(var i=0,o=r.length;i<o;i+=1)e(r[i])}function X9(t,e){var n=Iw(t,e);if(n.length!==0){if(n.length===1)return n[0];throw new Zn("expected a single document in the stream, but found more")}}var Z9=J9,Q9=X9,tq={loadAll:Z9,load:Q9},eq=ww,nq=tq.load;function rq(t){const e=t.match(DC);if(!e)return{text:t,metadata:{}};let n=nq(e[1],{schema:eq})??{};n=typeof n=="object"&&!Array.isArray(n)?n:{};const r={};return n.displayMode&&(r.displayMode=n.displayMode.toString()),n.title&&(r.title=n.title.toString()),n.config&&(r.config=n.config),{text:t.slice(e[0].length),metadata:r}}const iq=t=>t.replace(/\r\n?/g,` +`).replace(/<(\w+)([^>]*)>/g,(e,n,r)=>"<"+n+r.replace(/="([^"]*)"/g,"='$1'")+">"),oq=t=>{const{text:e,metadata:n}=rq(t),{displayMode:r,title:i,config:o={}}=n;return r&&(o.gantt||(o.gantt={}),o.gantt.displayMode=r),{title:i,config:o,text:e}},sq=t=>{const e=Ps.detectInit(t)??{},n=Ps.detectDirective(t,"wrap");return Array.isArray(n)?e.wrap=n.some(({type:r})=>{}):n?.type==="wrap"&&(e.wrap=!0),{text:Nz(t),directive:e}};function Bw(t){const e=iq(t),n=oq(e),r=sq(n.text),i=WC(n.config,r.directive);return t=f8(r.text),{code:t,title:n.title,config:i}}const aq=5e4,lq="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",cq="sandbox",uq="loose",hq="http://www.w3.org/2000/svg",dq="http://www.w3.org/1999/xlink",fq="http://www.w3.org/1999/xhtml",pq="100%",mq="100%",gq="border:0;margin:0;",yq="margin:0",xq="allow-top-navigation-by-user-activation allow-popups",bq='The "iframe" tag is not supported by your browser.',kq=["foreignobject"],Cq=["dominant-baseline"];function Fw(t){const e=Bw(t);return cc(),n4(e.config??{}),e}async function wq(t,e){zp(),t=Fw(t).code;try{await Vp(t)}catch(n){if(e?.suppressErrors)return!1;throw n}return!0}const d0=(t,e,n=[])=>` +.${t} ${e} { ${n.join(" !important; ")} !important; }`,Sq=(t,e={})=>{var n;let r="";if(t.themeCSS!==void 0&&(r+=` +${t.themeCSS}`),t.fontFamily!==void 0&&(r+=` +:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=` +:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!lh(e)){const a=t.htmlLabels||((n=t.flowchart)==null?void 0:n.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const c=e[l];lh(c.styles)||a.forEach(u=>{r+=d0(c.id,u,c.styles)}),lh(c.textStyles)||(r+=d0(c.id,"tspan",c.textStyles))}}return r},_q=(t,e,n,r)=>{const i=Sq(t,n),o=w6(e,i,t.themeVariables);return gd(L$(`${r}{${o}}`),R$)},Tq=(t="",e,n)=>{let r=t;return!n&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=Zz(r),r=r.replace(/<br>/g,"<br/>"),r},vq=(t="",e)=>{var n,r;const i=(r=(n=e?.viewBox)==null?void 0:n.baseVal)!=null&&r.height?e.viewBox.baseVal.height+"px":mq,o=btoa('<body style="'+yq+'">'+t+"</body>");return`<iframe style="width:${pq};height:${i};${gq}" src="data:text/html;base64,${o}" sandbox="${xq}"> + ${bq} +</iframe>`},f0=(t,e,n,r,i)=>{const o=t.append("div");o.attr("id",n),r&&o.attr("style",r);const s=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns",hq);return i&&s.attr("xmlns:xlink",i),s.append("g"),t};function p0(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const Aq=(t,e,n,r)=>{var i,o,s;(i=t.getElementById(e))==null||i.remove(),(o=t.getElementById(n))==null||o.remove(),(s=t.getElementById(r))==null||s.remove()},Eq=async function(t,e,n){var r,i,o,s,a,l;zp();const c=Fw(e);e=c.code;const u=In();K.debug(u),e.length>(u?.maxTextSize??aq)&&(e=lq);const h="#"+t,d="i"+t,f="#"+d,p="d"+t,m="#"+p;let g=qe("body");const y=u.securityLevel===cq,C=u.securityLevel===uq,T=u.fontFamily;if(n!==void 0){if(n&&(n.innerHTML=""),y){const ot=p0(qe(n),d);g=qe(ot.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=qe(n);f0(g,t,p,`font-family: ${T}`,dq)}else{if(Aq(document,t,p,d),y){const ot=p0(qe("body"),d);g=qe(ot.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=qe("body");f0(g,t,p)}let M,I;try{M=await Vp(e,{title:c.title})}catch(ot){M=new bw("error"),I=ot}const S=g.select(m).node(),N=M.type,Z=S.firstChild,R=Z.firstChild,_=(i=(r=M.renderer).getClasses)==null?void 0:i.call(r,e,M),P=_q(u,N,_,h),z=document.createElement("style");z.innerHTML=P,Z.insertBefore(z,R);try{await M.renderer.draw(e,t,e0,M)}catch(ot){throw $6.draw(e,t,e0),ot}const dt=g.select(`${m} svg`),bt=(s=(o=M.db).getAccTitle)==null?void 0:s.call(o),at=(l=(a=M.db).getAccDescription)==null?void 0:l.call(a);Nq(N,dt,bt,at),g.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",fq);let Ct=g.select(m).node().innerHTML;if(K.debug("config.arrowMarkerAbsolute",u.arrowMarkerAbsolute),Ct=Tq(Ct,y,BC(u.arrowMarkerAbsolute)),y){const ot=g.select(m+" svg").node();Ct=vq(Ct,ot)}else C||(Ct=bo.sanitize(Ct,{ADD_TAGS:kq,ADD_ATTR:Cq}));if(c8(),I)throw I;const Rt=qe(y?f:m).node();return Rt&&"remove"in Rt&&Rt.remove(),{svg:Ct,bindFunctions:M.db.bindFunctions}};function Mq(t={}){var e;t?.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),t4(t),t?.theme&&t.theme in er?t.themeVariables=er[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=er.default.getThemeVariables(t.themeVariables));const n=typeof t=="object"?Qz(t):HC();Mp(n.logLevel),zp()}const Vp=(t,e={})=>{const{code:n}=Bw(t);return l8(n,e)};function Nq(t,e,n,r){h8(e,t),d8(e,n,r,e.attr("id"))}const Mi=Object.freeze({render:Eq,parse:wq,getDiagramFromText:Vp,initialize:Mq,getConfig:In,setConfig:UC,getSiteConfig:HC,updateSiteConfig:e4,reset:()=>{cc()},globalReset:()=>{cc(wo)},defaultConfig:wo});Mp(In().logLevel);cc(In());const Oq=async()=>{K.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Co).map(async([n,{detector:r,loader:i}])=>{if(i)try{$p(n)}catch{try{const{diagram:s,id:a}=await i();hc(a,s,r)}catch(s){throw K.error(`Failed to load external diagram with key ${n}. Removing from detectors.`),delete Co[n],s}}}))).filter(n=>n.status==="rejected");if(e.length>0){K.error(`Failed to load ${e.length} external diagrams`);for(const n of e)K.error(n);throw new Error(`Failed to load ${e.length} external diagrams`)}},Iq=(t,e,n)=>{K.warn(t),jC(t)?(n&&n(t.str,t.hash),e.push({...t,message:t.str,error:t})):(n&&n(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},Lw=async function(t={querySelector:".mermaid"}){try{await Bq(t)}catch(e){if(jC(e)&&K.error(e.str),Je.parseError&&Je.parseError(e),!t.suppressErrors)throw K.error("Use the suppressErrors option to suppress these errors"),e}},Bq=async function({postRenderCallback:t,querySelector:e,nodes:n}={querySelector:".mermaid"}){const r=Mi.getConfig();K.debug(`${t?"":"No "}Callback function found`);let i;if(n)i=n;else if(e)i=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");K.debug(`Found ${i.length} diagrams`),r?.startOnLoad!==void 0&&(K.debug("Start On Load: "+r?.startOnLoad),Mi.updateSiteConfig({startOnLoad:r?.startOnLoad}));const o=new Ps.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const a=[];for(const l of Array.from(i)){K.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${o.next()}`;s=l.innerHTML,s=BL(Ps.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const u=Ps.detectInit(s);u&&K.debug("Detected early reinit: ",u);try{const{svg:h,bindFunctions:d}=await $w(c,s,l);l.innerHTML=h,t&&await t(c),d&&d(l)}catch(h){Iq(h,a,Je.parseError)}}if(a.length>0)throw a[0]},Dw=function(t){Mi.initialize(t)},Fq=async function(t,e,n){K.warn("mermaid.init is deprecated. Please use run instead."),t&&Dw(t);const r={postRenderCallback:n,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await Lw(r)},Lq=async(t,{lazyLoad:e=!0}={})=>{PC(...t),e===!1&&await Oq()},Rw=function(){if(Je.startOnLoad){const{startOnLoad:t}=Mi.getConfig();t&&Je.run().catch(e=>K.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*! + * Wait for document loaded before starting the execution + */window.addEventListener("load",Rw,!1)}const Dq=function(t){Je.parseError=t},mc=[];let dh=!1;const Pw=async()=>{if(!dh){for(dh=!0;mc.length>0;){const t=mc.shift();if(t)try{await t()}catch(e){K.error("Error executing queue",e)}}dh=!1}},Rq=async(t,e)=>new Promise((n,r)=>{const i=()=>new Promise((o,s)=>{Mi.parse(t,e).then(a=>{o(a),n(a)},a=>{var l;K.error("Error parsing",a),(l=Je.parseError)==null||l.call(Je,a),s(a),r(a)})});mc.push(i),Pw().catch(r)}),$w=(t,e,n)=>new Promise((r,i)=>{const o=()=>new Promise((s,a)=>{Mi.render(t,e,n).then(l=>{s(l),r(l)},l=>{var c;K.error("Error parsing",l),(c=Je.parseError)==null||c.call(Je,l),a(l),i(l)})});mc.push(o),Pw().catch(i)}),Je={startOnLoad:!0,mermaidAPI:Mi,parse:Rq,render:$w,init:Fq,run:Lw,registerExternalDiagrams:Lq,initialize:Dw,parseError:void 0,contentLoaded:Rw,setParseErrorHandler:Dq,detectType:eu},Aj=Object.freeze(Object.defineProperty({__proto__:null,default:Je},Symbol.toStringTag,{value:"Module"}));function Pq(t){return{type:"diagram",value:t}}function $q(t){return rr(t,"code",(e,n,r)=>{const{lang:i,value:o}=e;if(i!=="mermaid")return e;const s=Pq(o);return r&&n!=null&&r.children.splice(n,1,s),e})}function zq(){function t(e){$q(e)}return t}const qq=Kx("abcdefg",8),gc=t=>{var e;return((e=t?.attrs)==null?void 0:e.identity)||qq()};function Li(t,e){return Object.assign(t,{meta:{package:"@milkdown/plugin-diagram",...e}}),t}const Hp=mn({startOnLoad:!1},"mermaidConfig");Li(Hp,{displayName:"Ctx<mermaidConfig>"});const Go="diagram",Do=Dt(Go,t=>(Je.initialize({...t.get(Hp.key)}),{content:"text*",group:"block",marks:"",defining:!0,atom:!0,isolating:!0,attrs:{value:{default:""},identity:{default:""}},parseDOM:[{tag:`div[data-type="${Go}"]`,preserveWhitespace:"full",getAttrs:e=>{if(!(e instanceof HTMLElement))throw pn(e);return{value:e.dataset.value,identity:e.dataset.id}}}],toDOM:e=>{const n=gc(e),r=e.attrs.value,i=document.createElement("div");return i.dataset.type=Go,i.dataset.id=n,i.dataset.value=r,i.textContent=r,i},parseMarkdown:{match:({type:e})=>e===Go,runner:(e,n,r)=>{const i=n.value;e.addNode(r,{value:i,identity:gc()})}},toMarkdown:{match:e=>e.type.name===Go,runner:(e,n)=>{e.addNode("code",void 0,n.attrs.value||"",{lang:"mermaid"})}}}));Li(Do.node,{displayName:"NodeSchema<diagram>"});Li(Do.ctx,{displayName:"NodeSchemaCtx<diagram>"});const zw=oe(t=>new ge(/^```mermaid$/,(e,n,r,i)=>{const o=Do.type(t),s=e.doc.resolve(r);return s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),o)?e.tr.delete(r,i).setBlockType(r,r,o,{identity:gc()}):null}));Li(zw,{displayName:"InputRule<insertDiagramInputRules>"});const Up=ir("remarkMermaid",()=>zq);Li(Up.plugin,{displayName:"Remark<diagram>"});Li(Up.options,{displayName:"RemarkConfig<diagram>"});const qw=nt("InsertDiagramCommand",t=>()=>Ti(Do.type(t),{identity:gc()}));Li(qw,{displayName:"Command<insertDiagramCommand>"});const jq=[Up,Hp,Do,qw,zw].flat(),Wq=()=>{const{contentRef:t}=To();return B.jsx("blockquote",{className:"my-4 rounded !bg-accent/10 p-0.5",ref:t})},Vq=({nodeViewFactory:t})=>[ha(Eo.node,()=>t({component:Wq}))],Hq=()=>{const{node:t}=To(),e=t.attrs.language,n=t.content.firstChild?.text;return B.jsx("div",{className:"my-4",contentEditable:!1,children:B.jsx(Uq,{content:n||"",language:e})})},Uq=({content:t,language:e})=>{const n=To(),r=xk();return B.jsxs("div",{className:"group relative",children:[B.jsx(SS,{ref:i=>{!t&&i&&requestAnimationFrame(()=>requestAnimationFrame(()=>i.focus()))},content:t,minHeight:"20px",className:"rounded-md border bg-gray-100 dark:bg-zinc-900",padding:8,language:e,onChange:i=>{const o=n.view,s=n.node,a=n.getPos(),l=o.state.tr;if(typeof a>"u")return;if(!i){o.dispatch(o.state.tr.delete(a,a+s.nodeSize));return}const c=r.get(Ue).text(i);l.replaceWith(a+1,a+s.nodeSize,c),o.dispatch(l)}}),B.jsx("div",{className:"absolute bottom-1 right-1 opacity-0 duration-200 group-hover:opacity-100",children:B.jsx(_S,{defaultValue:e,onBlur:i=>{const o=i.target.value;n.setAttrs({language:o})}})})]})},Kq=({nodeViewFactory:t})=>[ha(Mo.node,()=>t({component:Hq}))],m0=({label:t,checked:e,disabled:n,onCheckChange:r})=>{const i=$.useId();return B.jsxs("div",{className:"inline-flex items-center gap-2",children:[B.jsx("input",{onChange:o=>{n||r?.(o.target.checked)},disabled:n,checked:e,type:"checkbox",className:om("checkbox-accent checkbox",n&&"cursor-not-allowed opacity-50"),id:i}),B.jsx("label",{htmlFor:i,className:om("text-sm text-gray-500",n&&"cursor-not-allowed opacity-50"),children:t})]})},Gq="shiro",Yq=t=>`@${Gq}/${t}`;var jw=(t=>(t.Icon="icon",t.Photo="photo",t.File="file",t.Avatar="avatar",t))(jw||{});const Jq=(t,e)=>{const n=new FormData;return n.append("file",e),nS.proxy.objects.upload.post({data:n,headers:{"Content-Type":"multipart/form-data"},params:{type:t}})},Xq=({nodeCtx:t,getValue:e,save:n,children:r})=>{const{getPos:i,view:o,node:s}=t,{dismiss:a}=x0(),l=xk(),c=()=>{const d=i();typeof d>"u"||(o.dispatch(o.state.tr.delete(d,d+s.nodeSize)),a())},[u,h]=$.useState(!1);return B.jsxs("div",{className:"mt-4 flex justify-end space-x-2 p-2",children:[r,B.jsx(bi,{variant:"secondary",onClick:c,children:"删除"}),B.jsx(bi,{isLoading:u,onClick:async()=>{if(n){h(!0),await n(e()),h(!1),a();return}const d=i();if(typeof d>"u")return;const f=o.state.tr,p=e(),m=l.get(Ue).text(p);f.replaceWith(d+1,d+s.nodeSize,m),o.dispatch(f),a()},children:"保存"})]})};function Zq(t){return{type:"excalidraw",value:t}}function Qq(t){return rr(t,"code",(e,n,r)=>{const{lang:i,value:o}=e;if(i!=="excalidraw")return e;const s=Zq(o);return r&&n!=null&&r.children.splice(n,1,s),e})}function t7(){function t(e){Qq(e)}return t}const Yo="excalidraw",yc=Dt(Yo,()=>({content:"text*",group:"block",marks:"",defining:!0,atom:!0,isolating:!0,attrs:{value:{default:""}},parseDOM:[{tag:`div[data-type="${Yo}"]`,preserveWhitespace:"full",getAttrs:t=>({value:t?.dataset?.value||""})}],toDOM:t=>{const e=t.attrs.value,n=document.createElement("div");return n.dataset.type=Yo,n.dataset.value=e,n.textContent=e,n},parseMarkdown:{match:({type:t})=>t===Yo,runner:(t,e,n)=>{const r=e.value;t.addNode(n,{value:r})}},toMarkdown:{match:t=>t.type.name===Yo,runner:(t,e)=>{t.addNode("code",void 0,e.attrs.value||"",{lang:"excalidraw"})}}})),e7=oe(t=>new ge(/^```excalidraw$/,(e,n,r,i)=>{const o=yc.type(t),s=e.doc.resolve(r);return s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),o)?e.tr.delete(r,i).setBlockType(r,r,o,{}):null})),n7=ir("remarkExcalidraw",()=>t7),r7=nt("InsertExcalidrawCommand",t=>()=>Ti(yc.type(t))),i7=mS(Yq("excalidraw"),{embed:!1,delta:!0}),o7=({nodeViewFactory:t})=>[e7,r7,yc,n7,ha(yc.node,()=>t({component:s7}))],s7=()=>{const t=_d(),e=To(),n=e.node.attrs.value,[r,i]=$.useState(n),[o,s]=IS();$.useEffect(()=>{o()},[n]);const a=$.useMemo(()=>$.lazy(()=>St(()=>import("./index-mx_ZhLz2.js").then(c=>c.a),__vite__mapDeps([83,2,3,84,1,4,5,6,7,8,9,10,11,37,85,27,19,29,15,16,17,18,14]),import.meta.url).then(c=>({default:c.Excalidraw}))),[]),l=()=>{const c=()=>{const u=$.useRef(n),h=$.useRef(()=>u.current),[d,f]=bS(i7),p=$.useRef(null),m=$.useRef({}).current,g=async()=>{if(d.delta){const C=u.current;if(!C){wn.error("无法获取当前数据,更新失败");return}if(!r||OS(r))return y();const M=p.current?.getRefData();if(!M){wn.error("无法获取原始数据增量更新失败");return}const I=ES(M,JSON.parse(C));return[r.split(` +`)[0],JSON.stringify(I,null,0)].join(` +`)}else if(d.embed)return u.current;if(!d.delta&&!d.embed)return y();async function y(){const C=u.current;if(!C)return;const T=m[C];if(T)return T;const M=new File([C],"file.excalidraw",{}),I=wn.info("正在上传文件",{position:"top-right"}),S=await Jq(jw.File,M);wn.success("上传成功",{position:"top-right"}),wn.dismiss(I);const N=`ref:file/${S.name}`;return m[C]=N,N}};return B.jsx("div",{className:"flex h-full w-full flex-col",children:B.jsxs($.Suspense,{children:[B.jsx(a,{ref:p,className:"h-full w-full flex-grow",data:n,viewModeEnabled:!1,zenModeEnabled:!1,onChange:async(y,C,T)=>{const M=await St(()=>import("./main-1J4Kkp7S.js").then(I=>I.m),__vite__mapDeps([85,2,3]),import.meta.url).then(I=>I.serializeAsJSON);u.current=JSON.stringify(JSON.parse(M(y,C,T,"database")),null,0)}}),B.jsxs("div",{className:"relative",children:[B.jsxs("div",{className:"absolute bottom-1 left-1 space-x-2",children:[B.jsx(m0,{label:"使用内嵌数据",onCheckChange:y=>{f(C=>({...C,embed:y}))},checked:d.embed}),B.jsx(m0,{label:"使用增量存储",checked:d.embed?!1:d.delta,disabled:d.embed,onCheckChange:y=>{f(C=>({...C,delta:y}))}})]}),B.jsx(Xq,{getValue:h.current,nodeCtx:e,save:async()=>{const y=await g();y&&(e.setAttrs({value:y}),i(y))},children:B.jsx(bi,{variant:"secondary",onClick:async()=>{const y=await g();if(!y){wn.error("无法获取当前数据");return}await navigator.clipboard.writeText(`\`\`\`excalidraw +${y} +\`\`\``),wn.success("已复制",{position:"top-right"})},children:"复制"})})]})]})})};t.present({title:"Excalidraw",max:!0,content:c})};return B.jsx("div",{onClick:l,className:"cursor-pointer",children:B.jsx($.Suspense,{fallback:B.jsx(MS,{}),children:B.jsx(a,{className:"pointer-events-none",showExtendButton:!1,data:n},s)})})},a7=t=>{const e=t.split(","),n=e[0].match(/:(.*?);/)[1],r=atob(e[1]);let i=r.length;const o=new Uint8Array(i);for(;i--;)o[i]=r.charCodeAt(i);return new File([o],"image.png",{type:n})},l7=()=>{const{node:t,setAttrs:e}=To(),{src:n,alt:r,title:i}=t.attrs,o=rS(),s=n.startsWith("http"),a=()=>{if(n.startsWith("http"))return;const c=new FormData;c.append("file",a7(n)),fetch("/api/s3",{method:"POST",body:c}).then(u=>u.json()).then(u=>{u.url?(wn.success("上传成功"),e({src:u.url})):wn.error("上传失败")}).catch(u=>{console.error(u),wn.error(`上传失败${u?.message}`)})},l=_d();return B.jsx("div",{className:"my-4 flex center",children:B.jsxs("div",{className:"group relative inline-block",children:[B.jsx(dS,{className:"max-h-[80vh]",src:n,containerWidth:o?450:600}),B.jsx("div",{className:"absolute bottom-1 left-1 z-[10] opacity-0 duration-200 group-hover:opacity-100",children:B.jsx(bi,{onClick:()=>{l.present({title:"编辑图片",content:()=>B.jsx(u7,{onSubmit:c=>{e(c)},src:n,alt:r,title:i})})},variant:"secondary",className:"box-content flex h-6 w-6 rounded-full p-2 center",children:B.jsx("i",{className:"icon-[mingcute--edit-line] text-[16px]"})})}),!s&&B.jsx(BS,{type:"tooltip",placement:"right",triggerElement:B.jsx(NS,{onClick:a,className:"absolute bottom-1 right-1 box-content flex rounded-full bg-base-100 text-red-500 center",children:B.jsx("i",{className:"icon-[mingcute--warning-line] text-[24px]"})}),children:"此图片是一个内嵌图片,还没有上传到服务器,点击上传到服务器(需要配置 S3)"})]})})},c7=({nodeViewFactory:t})=>[ha(Oi.node,()=>t({component:l7}))],u7=({onSubmit:t,src:e,alt:n,title:r})=>{const i=x0(),o=$.useRef([{name:"src",placeholder:"https://",rules:[{validator:h=>h.startsWith("http"),message:"请输入正确的图片链接 https://"}]},{name:"alt",placeholder:"图片信息",rules:[{validator:h=>h.length<=200,message:"图片信息不能超过200个字符"}]},{name:"title",placeholder:"图片标题",rules:[{validator:h=>h.length<=50,message:"图片标题不能超过50个字符"}]}]).current,s=()=>{t(a),i.dismiss()},[a,l]=$.useState({src:e,alt:n||"",title:r||""}),c=$.useCallback((h,d)=>{l(f=>({...f,[h]:d}))},[]),u=$.useCallback(h=>{c(h.target.name,h.target.value)},[]);return B.jsxs(TS,{className:"w-[300px] space-y-4 text-center",onSubmit:s,children:[o.map(h=>B.jsx(vS,{value:a[h.name],onChange:u,...h},h.name)),B.jsx(bi,{variant:"primary",type:"submit",children:"好"})]})},h7=t=>{const e=$.useRef(null);return $.useLayoutEffect(()=>{t&&e.current&&(e.current.value=t)},[]),[e.current?.value,$.useCallback(()=>e.current?.value,[]),e]},g0="<auto_open>",d7=()=>{const{contentRef:t,node:e,setAttrs:n,view:r,getPos:i}=To(),o=e.attrs.value,s=o===g0,a=_d(),l=()=>{const u=({dismiss:h})=>{const d=()=>{const g=i();typeof g>"u"||(r.dispatch(r.state.tr.delete(g,g+e.nodeSize)),h())},f=o===g0?"":o,[,p,m]=h7(f);return B.jsxs("div",{className:"flex h-[450px] max-h-[80vh] w-[60ch] max-w-full flex-col",children:[B.jsx(AS,{defaultValue:f,className:"flex-grow",ref:m}),B.jsxs("div",{className:"mt-4 flex justify-end space-x-2",children:[B.jsx(bi,{variant:"secondary",onClick:d,children:"删除"}),B.jsx(bi,{onClick:()=>{n({value:p()}),h()},children:"保存"})]})]})};a.present({title:"Edit Diagram",content:u})},c=$.useRef(!1);return $.useEffect(()=>{s&&(c.current||(c.current=!0,n({value:""}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{l()})})))},[]),!o||s?B.jsx("div",{ref:t,className:"my-4 flex h-12 w-full max-w-full cursor-pointer rounded bg-slate-100 text-sm center dark:bg-neutral-800",onClick:l,contentEditable:!1,children:"Empty Diagram, Click to edit"}):B.jsx("div",{ref:t,className:"my-4 max-w-full cursor-pointer [&_*]:!select-none",onClick:l,contentEditable:!1,children:B.jsx("div",{className:"pointer-events-none",children:B.jsx(FS,{content:o})})})},f7=({nodeViewFactory:t})=>[ha(Do.node,()=>t({component:d7}))],p7=t=>[Vq(t),Kq(t),f7(t),c7(t),ir("alerts",()=>IL),jq,o7(t)].flat(),Ww=$.forwardRef((t,e)=>B.jsx(YS,{children:B.jsx(Rv,{children:B.jsx(Vw,{ref:e,...t})})}));Ww.displayName="MilkdownEditor";const Vw=$.forwardRef((t,e)=>{const{initialMarkdown:n}=t,r=$.useRef(),i=$.useRef(),o=$.useCallback(()=>i.current?.action(d=>{const f=d.get(pi);return d.get(ao)(f.state.doc)}),[]),s=Tv(),{get:a}=JS(d=>{const f=vO.make();return i.current=f,f.config(p=>{_L(p),r.current=p,p.set(gl,d),p.set(dl,n||""),r.current.update(Is,m=>({...m,editable:()=>!t.readonly})),p.get(Jh).markdownUpdated((m,g)=>{u.current||(t.onMarkdownChange?.(g),t.onChange?.({target:{value:g}}))}).blur(()=>{t.onBlur?.()})}).use(RI).use(rb).use(Yx).use(zO).use(jO).use(SL).use(p7({nodeViewFactory:s})).onStatusChange(p=>{p===Hx.Created&&t.onCreated?.()})},[]),l=$.useCallback(d=>{a()?.action(NO(d))},[a]),c=$.useCallback(d=>{a()?.action(d)},[a]);$.useImperativeHandle(e,()=>({getMarkdown:o,setMarkdown:l,getAction:c,get editor(){return i.current}}));const u=wS(),h=$.useId();return B.jsx("div",{id:`milkdown-${h}`,className:ML.editor,children:B.jsx(GS,{})})});Vw.displayName="MilkdownEditorImpl";const Hw=()=>B.jsx(US,{children:B.jsx("div",{className:"m-auto w-[60ch] border p-2",children:B.jsx(Ww,{initialMarkdown:`::iframe{src="https://saul-mirone.github.io"} +> 1111 +> 2222 + + +\`\`\`excalidraw +{"type":"excalidraw/clipboard","elements":[{"id":"PmE_-ljCxW_Xt7-aTwGCG","type":"rectangle","x":3201.9504923319187,"y":2568.8218349216327,"width":125.64409355058388,"height":45.82037362686515,"angle":0,"strokeColor":"#f08c00","backgroundColor":"transparent","fillStyle":"hachure","strokeWidth":1,"strokeStyle":"solid","roughness":1,"opacity":100,"groupIds":[],"frameId":null,"roundness":{"type":3},"seed":159580388,"version":8,"versionNonce":108767588,"isDeleted":false,"boundElements":null,"updated":1706773637699,"link":null,"locked":false}],"files":{}} +\`\`\` + + +\`\`\`js +const a = 1 +\`\`\` + + +\`\`\`mermaid +flowchart TD + 1([手动打 tag 发布一个 release]) --> + 2([CI 监视 release 的发布 开始构建和发布]) --> + 3([云构建打包产物 zip 发布到 GitHub Release]) -- SSH 连接到服务器--> + 4([执行部署脚本]) --> + 5([下载构建产物解压]) --> + 6([直接运行或使用 PM2 托管]) +\`\`\` + + +## Alerts + + +> [!NOTE] +> Highlights information that users should take into account, even when skimming. + +> [!IMPORTANT] +> Crucial information necessary for users to succeed. + +> [!WARNING] +> Critical content demanding immediate user attention due to potential risks. + +~~11~~ + +aa||aaa11||aaaa |||aaa||| + +1111111111111112222222222 ~~22222~~ **a** aaaaaaaaaaaa.. + +:::grid[cols=3,gap=4] + +Grid 1 + +Grid 2 + +Grid 3 + +https://loremflickr.com/640/480/city?1 + +https://loremflickr.com/640/480/city?2 + +https://loremflickr.com/640/480/city?3 + +![](https://loremflickr.com/640/480/city?4 'Image') + +![](https://loremflickr.com/640/480/city?4 'Image') + +![](https://loremflickr.com/640/480/city?4 'Image') + + +`})})});Hw.meta={title:"Editor"};const Ej=Object.freeze(Object.defineProperty({__proto__:null,EditorDemo:Hw},Symbol.toStringTag,{value:"Module"}));export{N6 as $,X5 as A,kj as B,b6 as C,$z as D,Iz as E,G5 as F,zz as G,Zc as H,vj as I,On as J,BC as K,Zz as L,xp as M,dj as N,mj as O,ky as P,by as Q,yj as R,gj as S,pj as T,X as U,uj as V,hj as W,bj as X,xj as Y,vz as Z,fj as _,A6 as a,vp as a$,Sa as a0,V as a1,G as a2,In as a3,Ls as a4,WC as a5,De as a6,Ik as a7,qL as a8,gP as a9,_p as aA,TC as aB,wC as aC,KP as aD,jP as aE,c$ as aF,k$ as aG,Ta as aH,Bo as aI,rc as aJ,t$ as aK,q$ as aL,_a as aM,oc as aN,GP as aO,gC as aP,G3 as aQ,Y3 as aR,G$ as aS,jy as aT,J3 as aU,Tp as aV,K3 as aW,tP as aX,Fo as aY,Wr as aZ,Ry as a_,Sp as aa,fp as ab,Bk as ac,_e as ad,wa as ae,_2 as af,Dk as ag,cj as ah,pp as ai,wr as aj,Zs as ak,fy as al,O2 as am,jd as an,BL as ao,Ii as ap,g$ as aq,l$ as ar,Dn as as,y$ as at,x$ as au,SC as av,Hc as aw,Yc as ax,sc as ay,H3 as az,v6 as b,xC as b0,bd as b1,sP as b2,lh as b3,Aj as b4,Ej as b5,Pp as c,ia as d,Qt as e,lc as f,T6 as g,qe as h,dw as i,Np as j,Kz as k,K as l,bk as m,Tj as n,E6 as o,M6 as p,S6 as q,F6 as r,_6 as s,jz as t,Ps as u,R6 as v,Hz as w,gz as x,wz as y,Bp as z}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["./index-hp6Y5x8K.js","./owner-4YVbz2PN.js","./index-qegmBwH1.js","./index-SRCubG37.css","./toast-qMk_Ov--.js","./init-a0893ef4-4662SO8Z.js","./helper-0r91fNX5.js","./StyledButton-Mj8l6PeD.js","./index-5Y6ZmVAf.js","./motion-minimal-gJqnz197.js","./store-gmK8mRDy.js","./env-y9k74Ds6.js","./AutoResizeHeight-pHZ_oyCK.js","./usePeek-N6a5Jy_H.js","./visual-element-YIiczwVf.js","./provider-jumr72cx.js","./use-is-unmounted-6i0OwE-p.js","./spring--xEiX8r3.js","./use-event-callback-nMlqCkS7.js","./dom-NuJWIaAq.js","./image-sZM8elMx.js","./CurrentPostDataProvider-sxwUfZTo.js","./framer-lazy-feature-pFG8hMnQ.js","./features-max-O5aQqdqN.js","./c4Diagram-b947cdbb-rlOF_y7a.js","./svgDrawCommon-0ee1b4e9--nQsBbhr.js","./index-I7weg1Js.js","./use-is-dark-13kBJDHw.js","./WrappedElementProvider-5243oAX6.js","./lodash-Y39_oLIE.js","./WrappedElementProvider-v7JdpuAw.css","./script-SYgWefdU.js","./index-QSj7qAqP.js","./CodeEditor-pXHtjbJq.js","./CodeHighlighter-Sy1nPjje.js","./CodeHighlighter-hcFZa2QO.css","./FormInput-cQs6MTpb.js","./index-D4F-WjWJ.js","./BlockLoading-PMBA_Cs1.js","./FloatPopover-1BpKQIdq.js","./use-is-client-IECHC2ux.js","./Mermaid-5Gw5JBOp.js","./flowDiagram-d949d7c1-ErNISY_0.js","./flowDb-d35e309a-cVXpOrT2.js","./graph-4EnB4jqL.js","./layout-KoXfeBJF.js","./styles-7383a064-chn41QdL.js","./index-8fae9850-Po9R6XSU.js","./clone-LNmcdPHq.js","./edges-d417c7a0-uR8Ha2yN.js","./createText-423428c9-gj--wZwo.js","./line-abqtiQB-.js","./array-Nw74a44z.js","./path-aUcfwwLI.js","./channel-d4IHw_DV.js","./flowDiagram-v2-49332944-xSAzzGOz.js","./erDiagram-0ea73325-FqUzboSr.js","./gitGraphDiagram-b9d81de9-ZLsHtwEj.js","./ganttDiagram-5c869e3b-ARB9uH4V.js","./customParseFormat-3OBJgCTU.js","./linear-aaS3CbNq.js","./init-Hi12RPRh.js","./infoDiagram-db7b18fc-4cttBWjI.js","./pieDiagram-b0208e96-YwXKfy_j.js","./arc-9wcg-j4M.js","./ordinal-wXG5obU4.js","./quadrantDiagram-0332be45-5DdBbv76.js","./xychartDiagram-e50adddc-Pu7PK04q.js","./requirementDiagram-bf7890df-RlMVGrmI.js","./sequenceDiagram-c18d009d-j36an92T.js","./classDiagram-35230388-puu_M8n9.js","./styles-6860f46c-1cDOle_6.js","./classDiagram-v2-412acd34-LCQBBOMj.js","./stateDiagram-43596fc0-4oCgWI2B.js","./styles-b2c874b6-juz_pGZF.js","./stateDiagram-v2-2ead4f9c-RX6qkuV-.js","./journeyDiagram-d5636530-M9KIWAMV.js","./flowchart-elk-definition-27cc417a-m0tn04K1.js","./timeline-definition-d977decf-2sn2zGPn.js","./mindmap-definition-377f8f1f-YpEvNrVg.js","./sankeyDiagram-0acdec17-dOKGH0tB.js","./Tableau10-Fgclqpgn.js","./blockDiagram-6b2b5046-EEaC2SLU.js","./index-mx_ZhLz2.js","./useQuery-44y7CkOR.js","./main-1J4Kkp7S.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/assets/index.demo-edWeYFRs.js b/assets/index.demo-edWeYFRs.js new file mode 100644 index 00000000000..983e57c44a4 --- /dev/null +++ b/assets/index.demo-edWeYFRs.js @@ -0,0 +1,2 @@ +import{j as o}from"./index-qegmBwH1.js";import{C as r}from"./CodeEditor-pXHtjbJq.js";import"./dom-NuJWIaAq.js";import"./helper-0r91fNX5.js";import"./CodeHighlighter-Sy1nPjje.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./motion-minimal-gJqnz197.js";import"./use-is-dark-13kBJDHw.js";const t=()=>o.jsx("div",{className:"h-[300px] overflow-auto border p-4",children:o.jsx(r,{content:Array(100).fill(null).map(()=>`const a = ${Math.random()}; +`).join(""),language:"javascript"})});t.meta={title:"CodeEditor"};export{t as CodeEditorDemo}; diff --git a/assets/index.demo-quWGdnfB.js b/assets/index.demo-quWGdnfB.js new file mode 100644 index 00000000000..53ab18b2664 --- /dev/null +++ b/assets/index.demo-quWGdnfB.js @@ -0,0 +1,4 @@ +import{j as e}from"./index-qegmBwH1.js";import{Q as l}from"./toast-qMk_Ov--.js";import{$ as t}from"./use-is-dark-13kBJDHw.js";import{M as o}from"./provider-jumr72cx.js";import{E as n}from"./index-mx_ZhLz2.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./motion-minimal-gJqnz197.js";import"./store-gmK8mRDy.js";import"./owner-4YVbz2PN.js";import"./env-y9k74Ds6.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./visual-element-YIiczwVf.js";import"./useQuery-44y7CkOR.js";import"./index-D4F-WjWJ.js";import"./main-1J4Kkp7S.js";import"./lodash-Y39_oLIE.js";const s="excalidraw/clipboard",r=[{type:"rectangle",version:84,versionNonce:519052070,isDeleted:!1,id:"TONZ4Br348v2na2Whlw_b",fillStyle:"cross-hatch",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2458.412109375,y:1770.27734375,strokeColor:"#1971c2",backgroundColor:"transparent",width:745.1640625,height:439.69140625,seed:1471445862,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235079,link:null,locked:!1},{type:"rectangle",version:109,versionNonce:1036895846,isDeleted:!1,id:"eWJST9bciuWnXIcTmPy9C",fillStyle:"cross-hatch",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2472.830078125,y:1783.28515625,strokeColor:"#1971c2",backgroundColor:"transparent",width:189.1015625,height:29.765625000000007,seed:1469849254,groupIds:[],frameId:null,roundness:{type:3},boundElements:[],updated:1706597235079,link:null,locked:!1},{type:"rectangle",version:79,versionNonce:1649674662,isDeleted:!1,id:"wzJsT9se2LjeWE_fqgw_p",fillStyle:"cross-hatch",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2475.228515625,y:1820.58984375,strokeColor:"#1971c2",backgroundColor:"transparent",width:238.86328125,height:280.91796875,seed:422402534,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235079,link:null,locked:!1},{type:"rectangle",version:96,versionNonce:100041082,isDeleted:!1,id:"D7KhNCUOooAPe-6I8ynNp",fillStyle:"cross-hatch",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2483.798828125,y:1833.99609375,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:220.75390625,height:45.94140625,seed:1668623654,groupIds:[],frameId:null,roundness:null,boundElements:[{id:"LqIDSog74JHQaNn_72FLe",type:"arrow"}],updated:1706597239431,link:null,locked:!1},{type:"rectangle",version:153,versionNonce:82272870,isDeleted:!1,id:"p85e_Kj3hH0ufPxqjSaf_",fillStyle:"cross-hatch",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2487.39453125,y:1893.615234375,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:220.75390625,height:45.94140625,seed:333486182,groupIds:[],frameId:null,roundness:null,boundElements:[{id:"EeUgfLW4u0fDov5IZDq2T",type:"arrow"}],updated:1706597257204,link:null,locked:!1},{type:"rectangle",version:197,versionNonce:1746616806,isDeleted:!1,id:"uq18cpOm0rlL2Fq72ZGor",fillStyle:"cross-hatch",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2488.40234375,y:1959.740234375,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:220.75390625,height:45.94140625,seed:1379703718,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235079,link:null,locked:!1},{type:"rectangle",version:222,versionNonce:1391144486,isDeleted:!1,id:"fL6WteWNbAmUzKlWqZCyn",fillStyle:"cross-hatch",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2487.15234375,y:2024.458984375,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:220.75390625,height:45.94140625,seed:1152792294,groupIds:[],frameId:null,roundness:null,boundElements:[{type:"text",id:"QBOzjh5j87a7oQSV-fdFg"}],updated:1706597237756,link:null,locked:!1},{type:"text",version:29,versionNonce:510951526,isDeleted:!1,id:"QBOzjh5j87a7oQSV-fdFg",fillStyle:"cross-hatch",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2569.577323913574,y:2037.4296875,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:55.90394592285156,height:20,seed:1138387494,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235079,link:null,locked:!1,fontSize:16,fontFamily:1,text:"Asset4",textAlign:"center",verticalAlign:"middle",containerId:"fL6WteWNbAmUzKlWqZCyn",originalText:"Asset4",lineHeight:1.25,baseline:14},{type:"rectangle",version:122,versionNonce:475820646,isDeleted:!1,id:"DBHN95sdWL7KLDBPLLRtU",fillStyle:"cross-hatch",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2744.705078125,y:1792.71484375,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:311.22265625,height:404.6953125,seed:244725094,groupIds:[],frameId:null,roundness:null,boundElements:[{id:"TPgi3mjx3TIih-5zjgjRB",type:"arrow"},{id:"esIKdSKwVF-EMEnXphq9z",type:"arrow"}],updated:1706597294503,link:null,locked:!1},{type:"text",version:78,versionNonce:1542856038,isDeleted:!1,id:"ZphvidfA6xw68HKU1kDWi",fillStyle:"cross-hatch",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2565.181640625,y:1845.6328125,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:49.99995422363281,height:20,seed:2117507238,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235079,link:null,locked:!1,fontSize:16,fontFamily:1,text:"Asset1",textAlign:"left",verticalAlign:"top",containerId:null,originalText:"Asset1",lineHeight:1.25,baseline:14},{type:"text",version:31,versionNonce:2105203814,isDeleted:!1,id:"I7hF7Onukg7Qq7angsfvy",fillStyle:"cross-hatch",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2563.580078125,y:1913.7109375,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:57.05595397949219,height:20,seed:979932134,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597237151,link:null,locked:!1,fontSize:16,fontFamily:1,text:"Asset2",textAlign:"left",verticalAlign:"top",containerId:null,originalText:"Asset2",lineHeight:1.25,baseline:14},{type:"text",version:29,versionNonce:1220677414,isDeleted:!1,id:"e0mzuPk_v-7QKeSLz7Y2W",fillStyle:"cross-hatch",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2565.580078125,y:1978.7109375,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:56.55995178222656,height:20,seed:1832462118,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235079,link:null,locked:!1,fontSize:16,fontFamily:1,text:"Asset3",textAlign:"left",verticalAlign:"top",containerId:null,originalText:"Asset3",lineHeight:1.25,baseline:14},{type:"text",version:73,versionNonce:1094793830,isDeleted:!1,id:"j6dhs248vyhpWLKiG3bz3",fillStyle:"cross-hatch",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2833.611328125,y:1818.640625,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:106.65592956542969,height:20,seed:1997886054,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235079,link:null,locked:!1,fontSize:16,fontFamily:1,text:"Asset1 Detail",textAlign:"left",verticalAlign:"top",containerId:null,originalText:"Asset1 Detail",lineHeight:1.25,baseline:14},{type:"rectangle",version:70,versionNonce:255393190,isDeleted:!1,id:"HO6ueqS-GO2qdJeZg5Ec-",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2486.029296875,y:1790.83203125,strokeColor:"#1e1e1e",backgroundColor:"#a5d8ff",width:62.1796875,height:14.94140625,seed:583669158,groupIds:[],frameId:null,roundness:{type:3},boundElements:[],updated:1706597235079,link:null,locked:!1},{type:"rectangle",version:67,versionNonce:1929441082,isDeleted:!1,id:"tQVBMMgRT8ifKGtNb6MSd",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:3077.392578125,y:1795.19921875,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:112.57421875,height:203.3203125,seed:1501851878,groupIds:[],frameId:null,roundness:{type:3},boundElements:[{id:"4bUMW2660GuFUortPVuOh",type:"arrow"}],updated:1706597304786,link:null,locked:!1},{type:"rectangle",version:120,versionNonce:1386630182,isDeleted:!1,id:"gFQ72WJ8mza3ybLna0r-4",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:3090.619140625,y:1870.81640625,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:81.91015625,height:30,seed:1456563238,groupIds:[],frameId:null,roundness:null,boundElements:[{type:"text",id:"gwra6w7xO1As_SQUCtP_m"}],updated:1706597235079,link:null,locked:!1},{type:"text",version:91,versionNonce:1570101094,isDeleted:!1,id:"gwra6w7xO1As_SQUCtP_m",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:3099.046241760254,y:1875.81640625,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:65.05595397949219,height:20,seed:1553854310,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235079,link:null,locked:!1,fontSize:16,fontFamily:1,text:"Asset 2",textAlign:"center",verticalAlign:"middle",containerId:"gFQ72WJ8mza3ybLna0r-4",originalText:"Asset 2",lineHeight:1.25,baseline:14},{type:"rectangle",version:136,versionNonce:116291942,isDeleted:!1,id:"Y73FXwlbsBsjwi3zxKN3r",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:3092.26953125,y:1928.38671875,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:81.91015625,height:30,seed:1731662502,groupIds:[],frameId:null,roundness:null,boundElements:[{type:"text",id:"eiOkFO5hOkct0KwMPZORX"}],updated:1706597237756,link:null,locked:!1},{type:"text",version:105,versionNonce:593999334,isDeleted:!1,id:"eiOkFO5hOkct0KwMPZORX",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:3101.272636413574,y:1933.38671875,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:63.90394592285156,height:20,seed:1632226790,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235079,link:null,locked:!1,fontSize:16,fontFamily:1,text:"Asset 4",textAlign:"center",verticalAlign:"middle",containerId:"Y73FXwlbsBsjwi3zxKN3r",originalText:"Asset 4",lineHeight:1.25,baseline:14},{type:"text",version:113,versionNonce:540275814,isDeleted:!1,id:"er1mQi6xE_d7Llf-blv8W",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:3087.896484375,y:1818.20703125,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:88.71621704101562,height:15.406250000000004,seed:1474502950,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235079,link:null,locked:!1,fontSize:12.325000000000003,fontFamily:1,text:"Related asset",textAlign:"left",verticalAlign:"top",containerId:null,originalText:"Related asset",lineHeight:1.25,baseline:11},{type:"rectangle",version:88,versionNonce:358367802,isDeleted:!1,id:"Sp1iL8u66BgUuMAZmE0I1",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2770.236328125,y:1864.46484375,strokeColor:"#1e1e1e",backgroundColor:"#e9ecef",width:246.16015625,height:110.27734375,seed:779095142,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597239431,link:null,locked:!1},{type:"line",version:74,versionNonce:1377519142,isDeleted:!1,id:"Dqk-TH6-TAMc97Zx7Pw1S",fillStyle:"hachure",strokeWidth:2,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2773.802734375,y:2010.41796875,strokeColor:"#1e1e1e",backgroundColor:"#e9ecef",width:224.93359375,height:.6640625,seed:1388154790,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235079,link:null,locked:!1,startBinding:null,endBinding:null,lastCommittedPoint:null,startArrowhead:null,endArrowhead:null,points:[[0,0],[224.93359375,.6640625]]},{type:"line",version:89,versionNonce:1482396006,isDeleted:!1,id:"QgOO1kUdVSxZH9qhs6JpC",fillStyle:"hachure",strokeWidth:2,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2774.75,y:2033.1479786874206,strokeColor:"#1e1e1e",backgroundColor:"#e9ecef",width:224.93359375,height:.6640625,seed:1895344870,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235079,link:null,locked:!1,startBinding:null,endBinding:null,lastCommittedPoint:null,startArrowhead:null,endArrowhead:null,points:[[0,0],[224.93359375,.6640625]]},{type:"line",version:90,versionNonce:519074982,isDeleted:!1,id:"xjm9NOAQeMsUm3YT9c8Wg",fillStyle:"hachure",strokeWidth:2,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2775.02734375,y:2060.1596974374206,strokeColor:"#1e1e1e",backgroundColor:"#e9ecef",width:224.93359375,height:.6640625,seed:665738790,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235079,link:null,locked:!1,startBinding:null,endBinding:null,lastCommittedPoint:null,startArrowhead:null,endArrowhead:null,points:[[0,0],[224.93359375,.6640625]]},{type:"line",version:105,versionNonce:1602678758,isDeleted:!1,id:"v5u9rOX2PS3dUiY_CHHrz",fillStyle:"hachure",strokeWidth:2,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2778.50390625,y:2088.9878224374206,strokeColor:"#1e1e1e",backgroundColor:"#e9ecef",width:224.93359375,height:.6640625,seed:1003202918,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235079,link:null,locked:!1,startBinding:null,endBinding:null,lastCommittedPoint:null,startArrowhead:null,endArrowhead:null,points:[[0,0],[224.93359375,.6640625]]},{type:"arrow",version:284,versionNonce:1187631014,isDeleted:!1,id:"LqIDSog74JHQaNn_72FLe",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2370.2670945801838,y:1688.79296875,strokeColor:"#1e1e1e",backgroundColor:"#e9ecef",width:105.34277079651565,height:135.66616293367088,seed:1285393574,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597243764,link:null,locked:!1,startBinding:{elementId:"fhRWvR6trzTbIC3E9GlLA",focus:.5324848235368168,gap:3.44921875},endBinding:{elementId:"D7KhNCUOooAPe-6I8ynNp",focus:-.7278819525299076,gap:12.5703125},lastCommittedPoint:null,startArrowhead:null,endArrowhead:"arrow",points:[[0,0],[105.34277079651565,135.66616293367088]]},{type:"rectangle",version:128,versionNonce:1979670822,isDeleted:!1,id:"fhRWvR6trzTbIC3E9GlLA",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2328.048828125,y:1636.7734375,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:131.40234375,height:48.5703125,seed:131139558,groupIds:[],frameId:null,roundness:null,boundElements:[{id:"LqIDSog74JHQaNn_72FLe",type:"arrow"}],updated:1706597243764,link:null,locked:!1},{type:"text",version:34,versionNonce:2123680998,isDeleted:!1,id:"RTExENqFKvxAtgTTdbf4l",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2351.580078125,y:1649.7109375,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:68.63995361328125,height:20,seed:1567824678,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235079,link:null,locked:!1,fontSize:16,fontFamily:1,text:"module A",textAlign:"left",verticalAlign:"top",containerId:null,originalText:"module A",lineHeight:1.25,baseline:14},{type:"rectangle",version:102,versionNonce:829833254,isDeleted:!1,id:"wHrR0-mbLj4dvR6aAz6ua",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2795.2734375,y:1634.3125,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:131.40234375,height:48.5703125,seed:871417446,groupIds:[],frameId:null,roundness:null,boundElements:[{type:"text",id:"1gDbe_ji6iFBNyMI1ERTj"},{id:"TPgi3mjx3TIih-5zjgjRB",type:"arrow"}],updated:1706597235079,link:null,locked:!1},{type:"text",version:47,versionNonce:1179077478,isDeleted:!1,id:"1gDbe_ji6iFBNyMI1ERTj",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2826.0866317749023,y:1648.59765625,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:69.77595520019531,height:20,seed:471271846,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235079,link:null,locked:!1,fontSize:16,fontFamily:1,text:"module B",textAlign:"center",verticalAlign:"middle",containerId:"wHrR0-mbLj4dvR6aAz6ua",originalText:"module B",lineHeight:1.25,baseline:14},{type:"arrow",version:99,versionNonce:107355898,isDeleted:!1,id:"TPgi3mjx3TIih-5zjgjRB",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2856.724609375,y:1689.3828125,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:2.46484375,height:99.078125,seed:85124326,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235083,link:null,locked:!1,startBinding:{elementId:"wHrR0-mbLj4dvR6aAz6ua",focus:.07564800794178884,gap:6.5},endBinding:{elementId:"DBHN95sdWL7KLDBPLLRtU",focus:-.2240163115727252,gap:4.25390625},lastCommittedPoint:null,startArrowhead:null,endArrowhead:"arrow",points:[[0,0],[2.46484375,99.078125]]},{type:"rectangle",version:35,versionNonce:2067397926,isDeleted:!1,id:"zGUI7z4YbXGajFx6BNOru",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:3171.126953125,y:1650.24609375,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:162.00390625,height:53.453125,seed:1886476326,groupIds:[],frameId:null,roundness:null,boundElements:[{type:"text",id:"rtpX8GZu8EL7RBExXbnct"}],updated:1706597235079,link:null,locked:!1},{type:"text",version:34,versionNonce:2055956582,isDeleted:!1,id:"rtpX8GZu8EL7RBExXbnct",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:3217.904930114746,y:1666.97265625,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:68.44795227050781,height:20,seed:639591270,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235079,link:null,locked:!1,fontSize:16,fontFamily:1,text:"module C",textAlign:"center",verticalAlign:"middle",containerId:"zGUI7z4YbXGajFx6BNOru",originalText:"module C",lineHeight:1.25,baseline:14},{type:"arrow",version:46,versionNonce:990735270,isDeleted:!1,id:"6pmK4eJ8aDWwvSm0xviBn",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:3210.103515625,y:1703.19140625,strokeColor:"#1e1e1e",backgroundColor:"transparent",width:66.2109375,height:94.6484375,seed:1751778982,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597235079,link:null,locked:!1,startBinding:null,endBinding:null,lastCommittedPoint:null,startArrowhead:null,endArrowhead:"arrow",points:[[0,0],[-66.2109375,94.6484375]]},{id:"EeUgfLW4u0fDov5IZDq2T",type:"arrow",x:2348.0859375,y:1919.28515625,width:124.953125,height:3.13671875,angle:0,strokeColor:"#e03131",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,groupIds:[],frameId:null,roundness:{type:2},seed:1181892410,version:55,versionNonce:195753018,isDeleted:!1,boundElements:null,updated:1706597268369,link:null,locked:!1,points:[[0,0],[124.953125,-3.13671875]],lastCommittedPoint:null,startBinding:{elementId:"dd7I-2KIQDok7fscJR_9t",focus:.39673168789391766,gap:2.609375},endBinding:{elementId:"p85e_Kj3hH0ufPxqjSaf_",focus:.138635141064639,gap:14.35546875},startArrowhead:"arrow",endArrowhead:null},{id:"dd7I-2KIQDok7fscJR_9t",type:"rectangle",x:2198.96484375,y:1872,width:146.51171874999994,height:69.390625,angle:0,strokeColor:"#e03131",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,groupIds:[],frameId:null,roundness:null,seed:958829050,version:36,versionNonce:286938662,isDeleted:!1,boundElements:[{id:"EeUgfLW4u0fDov5IZDq2T",type:"arrow"},{type:"text",id:"es3dJ1grBR5fRsJjd9N52"}],updated:1706597268762,link:null,locked:!1},{id:"es3dJ1grBR5fRsJjd9N52",type:"text",x:2222.532730102539,y:1886.6953125,width:99.37594604492188,height:40,angle:0,strokeColor:"#e03131",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,groupIds:[],frameId:null,roundness:null,seed:2133386874,version:44,versionNonce:213702714,isDeleted:!1,boundElements:null,updated:1706597280544,link:null,locked:!1,text:`query 1 hold +data`,fontSize:16,fontFamily:1,textAlign:"center",verticalAlign:"middle",baseline:34,containerId:"dd7I-2KIQDok7fscJR_9t",originalText:"query 1 hold data",lineHeight:1.25},{type:"arrow",version:280,versionNonce:556202598,isDeleted:!1,id:"esIKdSKwVF-EMEnXphq9z",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2734.0206365177833,y:1630.57421875,strokeColor:"#e03131",backgroundColor:"transparent",width:27.99626761697209,height:157.9609375,seed:142577254,groupIds:[],frameId:null,roundness:{type:2},boundElements:[],updated:1706597297630,link:null,locked:!1,startBinding:{elementId:"mMrWjJoMo50zIetqa8KrC",focus:-.014550035266201834,gap:6.1796875},endBinding:{elementId:"DBHN95sdWL7KLDBPLLRtU",focus:-.5311179949502155,gap:4.1796875},lastCommittedPoint:null,startArrowhead:"arrow",endArrowhead:null,points:[[0,0],[27.99626761697209,157.9609375]]},{type:"rectangle",version:107,versionNonce:426197158,isDeleted:!1,id:"mMrWjJoMo50zIetqa8KrC",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2652.343751921877,y:1555.00390625,strokeColor:"#e03131",backgroundColor:"transparent",width:146.51171874999994,height:69.390625,seed:59560358,groupIds:[],frameId:null,roundness:null,boundElements:[{id:"esIKdSKwVF-EMEnXphq9z",type:"arrow"},{type:"text",id:"A1xhXFtT2cVyB5mohyygN"}],updated:1706597297630,link:null,locked:!1},{type:"text",version:116,versionNonce:258214950,isDeleted:!1,id:"A1xhXFtT2cVyB5mohyygN",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:2672.3836383964863,y:1569.69921875,strokeColor:"#e03131",backgroundColor:"transparent",width:106.43194580078125,height:40,seed:177188070,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597299551,link:null,locked:!1,fontSize:16,fontFamily:1,text:`query 2 hold +data`,textAlign:"center",verticalAlign:"middle",containerId:"mMrWjJoMo50zIetqa8KrC",originalText:"query 2 hold data",lineHeight:1.25,baseline:34},{type:"arrow",version:146,versionNonce:365408826,isDeleted:!1,id:"4bUMW2660GuFUortPVuOh",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:3282.730470671877,y:1815.046875,strokeColor:"#e03131",backgroundColor:"transparent",width:83.0078125,height:70.8828125,seed:2111949094,groupIds:[],frameId:null,roundness:{type:2},boundElements:[],updated:1706597309136,link:null,locked:!1,startBinding:{elementId:"kndLLmQ_7jC-GMjIhR5_i",focus:.6286335737704571,gap:5.41796875},endBinding:{elementId:"tQVBMMgRT8ifKGtNb6MSd",focus:.30366494500008334,gap:9.755861296876901},lastCommittedPoint:null,startArrowhead:"arrow",endArrowhead:null,points:[[0,0],[-83.0078125,70.8828125]]},{type:"rectangle",version:38,versionNonce:76983546,isDeleted:!1,id:"kndLLmQ_7jC-GMjIhR5_i",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:3288.148439421877,y:1774.3046875,strokeColor:"#e03131",backgroundColor:"transparent",width:146.51171874999994,height:69.390625,seed:1851372646,groupIds:[],frameId:null,roundness:null,boundElements:[{id:"4bUMW2660GuFUortPVuOh",type:"arrow"},{type:"text",id:"pQXBjuxSVbB-pOjLTZvb-"}],updated:1706597301130,link:null,locked:!1},{type:"text",version:50,versionNonce:474596134,isDeleted:!1,id:"pQXBjuxSVbB-pOjLTZvb-",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,angle:0,x:3308.436326995119,y:1789,strokeColor:"#e03131",backgroundColor:"transparent",width:105.93594360351562,height:40,seed:926037926,groupIds:[],frameId:null,roundness:null,boundElements:[],updated:1706597303034,link:null,locked:!1,fontSize:16,fontFamily:1,text:`query 3 hold +data`,textAlign:"center",verticalAlign:"middle",containerId:"kndLLmQ_7jC-GMjIhR5_i",originalText:"query 3 hold data",lineHeight:1.25,baseline:34}],d={},i={type:s,elements:r,files:d},a=()=>e.jsxs(t,{children:[e.jsx(o,{children:e.jsx("main",{className:"relative m-auto mt-6 max-w-[800px]",children:e.jsx(n,{data:JSON.stringify(i)})})}),e.jsx(l,{})]});a.meta={title:"Excalidraw"};export{a as Draw}; diff --git a/assets/index.demo-vB8mtO4m.js b/assets/index.demo-vB8mtO4m.js new file mode 100644 index 00000000000..463f095e25f --- /dev/null +++ b/assets/index.demo-vB8mtO4m.js @@ -0,0 +1 @@ +import{R as a,j as e}from"./index-qegmBwH1.js";import{S as u}from"./StyledButton-Mj8l6PeD.js";import{C as t}from"./Collapse-Q-wSwlx_.js";import{L as l}from"./index-QSj7qAqP.js";import{d as r}from"./features-max-O5aQqdqN.js";import"./helper-0r91fNX5.js";import"./index-5Y6ZmVAf.js";import"./motion-minimal-gJqnz197.js";import"./spring--xEiX8r3.js";import"./visual-element-YIiczwVf.js";const m=()=>{const[i,s]=a.useState(!1);return e.jsxs(l,{features:r,children:[e.jsx(u,{onClick:()=>s(o=>!o),children:"Toggle Collapse"}),e.jsx(t,{isOpened:i,children:e.jsx("p",{children:"Maiores occaecati quis animi nihil debitis. Iure suscipit animi. Repellat quia quas harum possimus dolorum dolore ullam eius. Tenetur aut saepe illo expedita culpa. Nisi asperiores doloribus facere eveniet ad tempore nemo accusantium in. Possimus eum dolorum a aliquid unde dolore corporis. Voluptatem quibusdam ipsam numquam. Vero aliquid odit reiciendis amet cum sapiente commodi. Natus in ullam dignissimos sed eos accusantium. Quis eligendi aliquid. Cumque possimus sed suscipit vero. Repellendus inventore quo porro necessitatibus totam."})})]})};m.meta={title:"Normal Collapse"};const n=()=>{const[i,s]=a.useState(!1);return e.jsxs(l,{features:r,children:[e.jsx(u,{onClick:()=>s(o=>!o),children:"Toggle Collapse"}),e.jsx(t,{isOpened:i,withBackground:!0,children:e.jsx("p",{children:"Maiores occaecati quis animi nihil debitis. Iure suscipit animi. Repellat quia quas harum possimus dolorum dolore ullam eius. Tenetur aut saepe illo expedita culpa. Nisi asperiores doloribus facere eveniet ad tempore nemo accusantium in. Possimus eum dolorum a aliquid unde dolore corporis. Voluptatem quibusdam ipsam numquam. Vero aliquid odit reiciendis amet cum sapiente commodi. Natus in ullam dignissimos sed eos accusantium. Quis eligendi aliquid. Cumque possimus sed suscipit vero. Repellendus inventore quo porro necessitatibus totam."})})]})};n.meta={title:"With Background Collapse"};export{m as CollapseDemo1,n as CollapseDemo2}; diff --git a/assets/infoDiagram-db7b18fc-4cttBWjI.js b/assets/infoDiagram-db7b18fc-4cttBWjI.js new file mode 100644 index 00000000000..3d5511f9439 --- /dev/null +++ b/assets/infoDiagram-db7b18fc-4cttBWjI.js @@ -0,0 +1,7 @@ +import{l as Y,v as D,i as M}from"./index.demo-_07sssxB.js";import"./owner-4YVbz2PN.js";import"./index-qegmBwH1.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";var O=function(){var a=function(u,t,e,i){for(e=e||{},i=u.length;i--;e[u[i]]=t);return e},p=[6,9,10],_={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,i,s,r,n,d){switch(n.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(p,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(p,[2,3]),a(p,[2,4]),a(p,[2,5]),a(p,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=e,i}},parse:function(t){var e=this,i=[0],s=[],r=[null],n=[],d=this.table,P="",v=0,L=0,N=2,T=1,R=n.slice.call(arguments,1),o=Object.create(this.lexer),f={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(f.yy[E]=this.yy[E]);o.setInput(t,f.yy),f.yy.lexer=o,f.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;n.push(I);var z=o.options&&o.options.ranges;typeof f.yy.parseError=="function"?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,m,h,w,g={},b,c,F,S;;){if(m=i[i.length-1],this.defaultActions[m]?h=this.defaultActions[m]:((l===null||typeof l>"u")&&(l=U()),h=d[m]&&d[m][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[m])this.terminals_[b]&&b>N&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`: +`+o.showPosition()+` +Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(v+1)+": Unexpected "+(l==T?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+l);switch(h[0]){case 1:i.push(l),r.push(o.yytext),n.push(o.yylloc),i.push(h[1]),l=null,L=o.yyleng,P=o.yytext,v=o.yylineno,I=o.yylloc;break;case 2:if(c=this.productions_[h[1]][1],g.$=r[r.length-c],g._$={first_line:n[n.length-(c||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(c||1)].first_column,last_column:n[n.length-1].last_column},z&&(g._$.range=[n[n.length-(c||1)].range[0],n[n.length-1].range[1]]),w=this.performAction.apply(g,[P,L,v,f.yy,h[1],r,n].concat(R)),typeof w<"u")return w;c&&(i=i.slice(0,-1*c*2),r=r.slice(0,-1*c),n=n.slice(0,-1*c)),i.push(this.productions_[h[1]][0]),r.push(g.$),n.push(g._$),F=d[i[i.length-2]][i[i.length-1]],i.push(F);break;case 3:return!0}}return!0}},k=function(){var u={EOF:1,parseError:function(e,i){if(this.yy.parser)this.yy.parser.parseError(e,i);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===s.length?this.yylloc.first_column:0)+s[s.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` +`+e+"^"},test_match:function(t,e){var i,s,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),s=t[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var n in r)this[n]=r[n];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,i,s;this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),n=0;n<r.length;n++)if(i=this._input.match(this.rules[r[n]]),i&&(!e||i[0].length>e[0].length)){if(e=i,s=n,this.options.backtrack_lexer){if(t=this.test_match(i,r[n]),t!==!1)return t;if(this._backtrack){e=!1;continue}else return!1}else if(!this.options.flex)break}return e?(t=this.test_match(e,r[s]),t!==!1?t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,i,s,r){switch(s){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return u}();_.lexer=k;function x(){this.yy={}}return x.prototype=_,_.Parser=x,new x}();O.parser=O;const B=O,j={info:!1};let $=j.info;const V=a=>{$=a},X=()=>$,q=()=>{$=j.info},C={clear:q,setInfo:V,getInfo:X},G=(a,p,_)=>{Y.debug(`rendering info diagram +`+a);const k=D(p);M(k,100,400,!0),k.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${_}`)},H={draw:G},$t={parser:B,db:C,renderer:H};export{$t as diagram}; diff --git a/assets/init-Hi12RPRh.js b/assets/init-Hi12RPRh.js new file mode 100644 index 00000000000..d44de94168e --- /dev/null +++ b/assets/init-Hi12RPRh.js @@ -0,0 +1 @@ +function t(e,a){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(a).domain(e);break}return this}export{t as i}; diff --git a/assets/init-a0893ef4-4662SO8Z.js b/assets/init-a0893ef4-4662SO8Z.js new file mode 100644 index 00000000000..d582d3feadf --- /dev/null +++ b/assets/init-a0893ef4-4662SO8Z.js @@ -0,0 +1 @@ +import{r as E,R as ne}from"./index-qegmBwH1.js";var h={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};let oe=0;function pe(e,o){const l=`atom${++oe}`,p={toString:()=>l};return typeof e=="function"?p.read=e:(p.init=e,p.read=re,p.write=se),o&&(p.write=o),p}function re(e){return e(this)}function se(e,o,l){return o(this,typeof l=="function"?l(e(this)):l)}const D=(e,o)=>e.unstable_is?e.unstable_is(o):o===e,I=e=>"init"in e,U=e=>!!e.write,C=new WeakMap,ie=(e,o)=>{C.set(e,o),e.catch(()=>{}).finally(()=>C.delete(e))},x=(e,o)=>{const l=C.get(e);l&&(C.delete(e),l(o))},G=(e,o)=>{e.status="fulfilled",e.value=o},H=(e,o)=>{e.status="rejected",e.reason=o},ue=e=>typeof e?.then=="function",M=(e,o)=>!!e&&"v"in e&&"v"in o&&Object.is(e.v,o.v),K=(e,o)=>!!e&&"e"in e&&"e"in o&&Object.is(e.e,o.e),P=e=>!!e&&"v"in e&&e.v instanceof Promise,ce=(e,o)=>"v"in e&&"v"in o&&e.v.orig&&e.v.orig===o.v.orig,k=e=>{if("e"in e)throw e.e;return e.v},X=()=>{const e=new WeakMap,o=new WeakMap,l=new Map;let p,A;(h?"production":void 0)!=="production"&&(p=new Set,A=new Set);const _=t=>e.get(t),b=(t,r)=>{(h?"production":void 0)!=="production"&&Object.freeze(r);const s=_(t);if(e.set(t,r),l.has(t)||l.set(t,s),P(s)){const i="v"in r?r.v instanceof Promise?r.v:Promise.resolve(r.v):Promise.reject(r.e);s.v!==i&&x(s.v,i)}},S=(t,r,s,i)=>{const u=new Map(i?r.d:null);let c=!1;s.forEach((n,d)=>{!n&&D(t,d)&&(n=r),n?(u.set(d,n),r.d.get(d)!==n&&(c=!0)):(h?"production":void 0)!=="production"&&console.warn("[Bug] atom state not found")}),(c||r.d.size!==u.size)&&(r.d=u)},y=(t,r,s,i)=>{const u=_(t),c={d:u?.d||new Map,v:r};if(s&&S(t,c,s,i),M(u,c)&&u.d===c.d)return u;if(P(u)&&P(c)&&ce(u,c)){if(u.d===c.d)return u;c.v=u.v}return b(t,c),c},w=(t,r,s,i)=>{if(ue(r)){let u;const c=()=>{const d=_(t);if(!P(d)||d.v!==n)return;const v=y(t,n,s);o.has(t)&&d.d!==v.d&&q(t,v,d.d)},n=new Promise((d,v)=>{let f=!1;r.then(a=>{f||(f=!0,G(n,a),d(a),c())},a=>{f||(f=!0,H(n,a),v(a),c())}),u=a=>{f||(f=!0,a.then(g=>G(n,g),g=>H(n,g)),d(a))}});return n.orig=r,n.status="pending",ie(n,d=>{d&&u(d),i?.()}),y(t,n,s,!0)}return y(t,r,s)},R=(t,r,s)=>{const i=_(t),u={d:i?.d||new Map,e:r};return s&&S(t,u,s),K(i,u)&&i.d===u.d?i:(b(t,u),u)},m=(t,r)=>{const s=_(t);if(!r&&s&&(o.has(t)||Array.from(s.d).every(([f,a])=>{if(f===t)return!0;const g=m(f);return g===a||M(g,a)})))return s;const i=new Map;let u=!0;const c=f=>{if(D(t,f)){const g=_(f);if(g)return i.set(f,g),k(g);if(I(f))return i.set(f,void 0),f.init;throw new Error("no atom init")}const a=m(f);return i.set(f,a),k(a)};let n,d;const v={get signal(){return n||(n=new AbortController),n.signal},get setSelf(){return(h?"production":void 0)!=="production"&&!U(t)&&console.warn("setSelf function cannot be used with read-only atom"),!d&&U(t)&&(d=(...f)=>{if((h?"production":void 0)!=="production"&&u&&console.warn("setSelf function cannot be called in sync"),!u)return T(t,...f)}),d}};try{const f=t.read(c,v);return w(t,f,i,()=>n?.abort())}catch(f){return R(t,f,i)}finally{u=!1}},L=t=>k(m(t)),ee=t=>{let r=o.get(t);return r||(r=V(t)),r},N=(t,r)=>!r.l.size&&(!r.t.size||r.t.size===1&&r.t.has(t)),te=t=>{const r=o.get(t);r&&N(t,r)&&j(t)},J=t=>{const r=n=>{var d;const v=new Set((d=o.get(n))==null?void 0:d.t);return l.forEach((f,a)=>{var g;(g=_(a))!=null&&g.d.has(n)&&v.add(a)}),v},s=new Array,i=new Set,u=n=>{if(!i.has(n)){i.add(n);for(const d of r(n))n!==d&&u(d);s.push(n)}};u(t);const c=new Set([t]);for(let n=s.length-1;n>=0;--n){const d=s[n],v=_(d);if(!v)continue;let f=!1;for(const a of v.d.keys())if(a!==d&&c.has(a)){f=!0;break}if(f){const a=m(d,!0);M(v,a)||c.add(d)}}},W=(t,...r)=>{let s=!0;const i=n=>k(m(n)),u=(n,...d)=>{let v;if(D(t,n)){if(!I(n))throw new Error("atom not writable");const f=_(n),a=w(n,d[0]);M(f,a)||J(n)}else v=W(n,...d);if(!s){const f=O();(h?"production":void 0)!=="production"&&p.forEach(a=>a({type:"async-write",flushed:f}))}return v},c=t.write(i,u,...r);return s=!1,c},T=(t,...r)=>{const s=W(t,...r),i=O();return(h?"production":void 0)!=="production"&&p.forEach(u=>u({type:"write",flushed:i})),s},V=(t,r,s)=>{var i;const u=s||[];(i=_(t))==null||i.d.forEach((n,d)=>{const v=o.get(d);v?v.t.add(t):d!==t&&V(d,t,u)}),m(t);const c={t:new Set(r&&[r]),l:new Set};if(o.set(t,c),(h?"production":void 0)!=="production"&&A.add(t),U(t)&&t.onMount){const{onMount:n}=t;u.push(()=>{const d=n((...v)=>T(t,...v));d&&(c.u=d)})}return s||u.forEach(n=>n()),c},j=t=>{var r;const s=(r=o.get(t))==null?void 0:r.u;s&&s(),o.delete(t),(h?"production":void 0)!=="production"&&A.delete(t);const i=_(t);i?(P(i)&&x(i.v),i.d.forEach((u,c)=>{if(c!==t){const n=o.get(c);n&&(n.t.delete(t),N(c,n)&&j(c))}})):(h?"production":void 0)!=="production"&&console.warn("[Bug] could not find atom state to unmount",t)},q=(t,r,s)=>{const i=new Set(r.d.keys()),u=new Set;s?.forEach((c,n)=>{if(i.has(n)){i.delete(n);return}u.add(n);const d=o.get(n);d&&d.t.delete(t)}),i.forEach(c=>{const n=o.get(c);n?n.t.add(t):o.has(t)&&V(c,t)}),u.forEach(c=>{const n=o.get(c);n&&N(c,n)&&j(c)})},O=()=>{let t;for((h?"production":void 0)!=="production"&&(t=new Set);l.size;){const r=Array.from(l);l.clear(),r.forEach(([s,i])=>{const u=_(s);if(u){const c=o.get(s);c&&u.d!==i?.d&&q(s,u,i?.d),c&&!(!P(i)&&(M(i,u)||K(i,u)))&&(c.l.forEach(n=>n()),(h?"production":void 0)!=="production"&&t.add(s))}else(h?"production":void 0)!=="production"&&console.warn("[Bug] no atom state to flush")})}if((h?"production":void 0)!=="production")return t},$=(t,r)=>{const s=ee(t),i=O(),u=s.l;return u.add(r),(h?"production":void 0)!=="production"&&p.forEach(c=>c({type:"sub",flushed:i})),()=>{u.delete(r),te(t),(h?"production":void 0)!=="production"&&p.forEach(c=>c({type:"unsub"}))}};return(h?"production":void 0)!=="production"?{get:L,set:T,sub:$,dev_subscribe_store:(t,r)=>{if(r!==2)throw new Error("The current StoreListener revision is 2.");return p.add(t),()=>{p.delete(t)}},dev_get_mounted_atoms:()=>A.values(),dev_get_atom_state:t=>e.get(t),dev_get_mounted:t=>o.get(t),dev_restore_atoms:t=>{for(const[s,i]of t)I(s)&&(w(s,i),J(s));const r=O();p.forEach(s=>s({type:"restore",flushed:r}))}}:{get:L,set:T,sub:$}};let B;(h?"production":void 0)!=="production"&&(typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__=="number"?++globalThis.__NUMBER_OF_JOTAI_INSTANCES__:globalThis.__NUMBER_OF_JOTAI_INSTANCES__=1);const Y=()=>(B||((h?"production":void 0)!=="production"&&globalThis.__NUMBER_OF_JOTAI_INSTANCES__!==1&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"),B=X()),B);var de={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Z=E.createContext(void 0),Q=e=>{const o=E.useContext(Z);return e?.store||o||Y()},_e=({children:e,store:o})=>{const l=E.useRef();return!o&&!l.current&&(l.current=X()),E.createElement(Z.Provider,{value:o||l.current},e)},le=e=>typeof e?.then=="function",fe=ne.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(o=>{e.status="fulfilled",e.value=o},o=>{e.status="rejected",e.reason=o}),e)});function ae(e,o){const l=Q(o),[[p,A,_],b]=E.useReducer(w=>{const R=l.get(e);return Object.is(w[0],R)&&w[1]===l&&w[2]===e?w:[R,l,e]},void 0,()=>[l.get(e),l,e]);let S=p;(A!==l||_!==e)&&(b(),S=l.get(e));const y=o?.delay;return E.useEffect(()=>{const w=l.sub(e,()=>{if(typeof y=="number"){setTimeout(b,y);return}b()});return b(),w},[l,e,y]),E.useDebugValue(S),le(S)?fe(S):S}function ve(e,o){const l=Q(o);return E.useCallback((...A)=>{if((de?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return l.set(e,...A)},[l,e])}function ge(e,o){return[ae(e,o),ve(e,o)]}let z,F=Symbol(),we=()=>{if(z)return z;if(globalThis[F])return globalThis[F];let e=Y();return z=e,globalThis[F]=e,e};export{_e as P,pe as a,ae as b,Q as c,ge as d,we as r,ve as u}; diff --git a/assets/journeyDiagram-d5636530-M9KIWAMV.js b/assets/journeyDiagram-d5636530-M9KIWAMV.js new file mode 100644 index 00000000000..4b4eb2c6998 --- /dev/null +++ b/assets/journeyDiagram-d5636530-M9KIWAMV.js @@ -0,0 +1,139 @@ +import{c as I,o as yt,p as pt,s as ft,g as dt,b as gt,a as mt,q as xt,h as W,i as kt}from"./index.demo-_07sssxB.js";import{d as _t,f as bt,a as vt,g as nt}from"./svgDrawCommon-0ee1b4e9--nQsBbhr.js";import"./owner-4YVbz2PN.js";import{a as Q}from"./arc-9wcg-j4M.js";import"./index-qegmBwH1.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";import"./path-aUcfwwLI.js";var G=function(){var t=function(d,i,r,a){for(r=r||{},a=d.length;a--;r[d[a]]=i);return r},e=[6,8,10,11,12,14,16,17,18],n=[1,9],l=[1,10],s=[1,11],h=[1,12],c=[1,13],p=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(i,r,a,u,f,o,w){var k=o.length-1;switch(f){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:l,14:s,16:h,17:c,18:p},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:n,12:l,14:s,16:h,17:c,18:p},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=r,a}},parse:function(i){var r=this,a=[0],u=[],f=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(i,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var T;return T=u.pop()||x.lex()||J,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=r.symbols_[T]||T),T}for(var _,E,b,q,A={},N,$,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var O="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?O="Parse error on line "+(R+1)+`: +`+x.showPosition()+` +Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":O="Parse error on line "+(R+1)+": Unexpected "+(_==J?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(O,{text:x.match,token:this.terminals_[_]||_,line:x.yylineno,loc:Y,expected:B})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(b[0]){case 1:a.push(_),f.push(x.yytext),o.push(x.yylloc),a.push(b[1]),_=null,Z=x.yyleng,k=x.yytext,R=x.yylineno,Y=x.yylloc;break;case 2:if($=this.productions_[b[1]][1],A.$=f[f.length-$],A._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},ht&&(A._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),q=this.performAction.apply(A,[k,Z,R,S.yy,b[1],f,o].concat(ct)),typeof q<"u")return q;$&&(a=a.slice(0,-1*$*2),f=f.slice(0,-1*$),o=o.slice(0,-1*$)),a.push(this.productions_[b[1]][0]),f.push(A.$),o.push(A._$),K=w[a[a.length-2]][a[a.length-1]],a.push(K);break;case 3:return!0}}return!0}},m=function(){var d={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+` +`+r+"^"},test_match:function(i,r){var a,u,f;if(this.options.backtrack_lexer&&(f={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(f.yylloc.range=this.yylloc.range.slice(0))),u=i[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],a=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var o in f)this[o]=f[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,r,a,u;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),o=0;o<f.length;o++)if(a=this._input.match(this.rules[f[o]]),a&&(!r||a[0].length>r[0].length)){if(r=a,u=o,this.options.backtrack_lexer){if(i=this.test_match(a,f[o]),i!==!1)return i;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(i=this.test_match(r,f[u]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,u,f){switch(u){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return d}();y.lexer=m;function g(){this.yy={}}return g.prototype=y,y.Parser=g,new g}();G.parser=G;const wt=G;let C="";const H=[],V=[],F=[],$t=function(){H.length=0,V.length=0,C="",F.length=0,xt()},Tt=function(t){C=t,H.push(t)},Mt=function(){return H},St=function(){let t=D();const e=100;let n=0;for(;!t&&n<e;)t=D(),n++;return V.push(...F),V},Et=function(){const t=[];return V.forEach(n=>{n.people&&t.push(...n.people)}),[...new Set(t)].sort()},Pt=function(t,e){const n=e.substr(1).split(":");let l=0,s=[];n.length===1?(l=Number(n[0]),s=[]):(l=Number(n[0]),s=n[1].split(","));const h=s.map(p=>p.trim()),c={section:C,type:C,people:h,task:t,score:l};F.push(c)},It=function(t){const e={section:C,type:C,description:t,task:t,classes:[]};V.push(e)},D=function(){const t=function(n){return F[n].processed};let e=!0;for(const[n,l]of F.entries())t(n),e=e&&l.processed;return e},At=function(){return Et()},tt={getConfig:()=>I().journey,clear:$t,setDiagramTitle:yt,getDiagramTitle:pt,setAccTitle:ft,getAccTitle:dt,setAccDescription:gt,getAccDescription:mt,addSection:Tt,getSections:Mt,getTasks:St,addTask:Pt,addTaskOrg:It,getActors:At},Ct=t=>`.label { + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + color: ${t.textColor}; + } + .mouth { + stroke: #666; + } + + line { + stroke: ${t.textColor} + } + + .legend { + fill: ${t.textColor}; + } + + .label text { + fill: #333; + } + .label { + color: ${t.textColor} + } + + .face { + ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"}; + stroke: #999; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; + stroke-width: 1px; + } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${t.arrowheadColor}; + } + + .edgePath .path { + stroke: ${t.lineColor}; + stroke-width: 1.5px; + } + + .flowchart-link { + stroke: ${t.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${t.edgeLabelBackground}; + rect { + opacity: 0.5; + } + text-align: center; + } + + .cluster rect { + } + + .cluster text { + fill: ${t.titleColor}; + } + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + font-size: 12px; + background: ${t.tertiaryColor}; + border: 1px solid ${t.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .task-type-0, .section-type-0 { + ${t.fillType0?`fill: ${t.fillType0}`:""}; + } + .task-type-1, .section-type-1 { + ${t.fillType0?`fill: ${t.fillType1}`:""}; + } + .task-type-2, .section-type-2 { + ${t.fillType0?`fill: ${t.fillType2}`:""}; + } + .task-type-3, .section-type-3 { + ${t.fillType0?`fill: ${t.fillType3}`:""}; + } + .task-type-4, .section-type-4 { + ${t.fillType0?`fill: ${t.fillType4}`:""}; + } + .task-type-5, .section-type-5 { + ${t.fillType0?`fill: ${t.fillType5}`:""}; + } + .task-type-6, .section-type-6 { + ${t.fillType0?`fill: ${t.fillType6}`:""}; + } + .task-type-7, .section-type-7 { + ${t.fillType0?`fill: ${t.fillType7}`:""}; + } + + .actor-0 { + ${t.actor0?`fill: ${t.actor0}`:""}; + } + .actor-1 { + ${t.actor1?`fill: ${t.actor1}`:""}; + } + .actor-2 { + ${t.actor2?`fill: ${t.actor2}`:""}; + } + .actor-3 { + ${t.actor3?`fill: ${t.actor3}`:""}; + } + .actor-4 { + ${t.actor4?`fill: ${t.actor4}`:""}; + } + .actor-5 { + ${t.actor5?`fill: ${t.actor5}`:""}; + } +`,Vt=Ct,U=function(t,e){return _t(t,e)},Ft=function(t,e){const l=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=t.append("g");s.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(y){const m=Q().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function c(y){const m=Q().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function p(y){y.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return e.score>3?h(s):e.score<3?c(s):p(s),l},rt=function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),n.class!==void 0&&n.attr("class",n.class),e.title!==void 0&&n.append("title").text(e.title),n},at=function(t,e){return bt(t,e)},Lt=function(t,e){function n(s,h,c,p,y){return s+","+h+" "+(s+c)+","+h+" "+(s+c)+","+(h+p-y)+" "+(s+c-y*1.2)+","+(h+p)+" "+s+","+(h+p)}const l=t.append("polygon");l.attr("points",n(e.x,e.y,50,20,7)),l.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,at(t,e)},Rt=function(t,e,n){const l=t.append("g"),s=nt();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=n.width*e.taskCount+n.diagramMarginX*(e.taskCount-1),s.height=n.height,s.class="journey-section section-type-"+e.num,s.rx=3,s.ry=3,U(l,s),ot(n)(e.text,l,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+e.num},n,e.colour)};let et=-1;const Nt=function(t,e,n){const l=e.x+n.width/2,s=t.append("g");et++;const h=300+5*30;s.append("line").attr("id","task"+et).attr("x1",l).attr("y1",e.y).attr("x2",l).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Ft(s,{cx:l,cy:300+(5-e.score)*30,score:e.score});const c=nt();c.x=e.x,c.y=e.y,c.fill=e.fill,c.width=n.width,c.height=n.height,c.class="task task-type-"+e.num,c.rx=3,c.ry=3,U(s,c);let p=e.x+14;e.people.forEach(y=>{const m=e.actors[y].color,g={cx:p,cy:e.y,r:7,fill:m,stroke:"#000",title:y,pos:e.actors[y].position};rt(s,g),p+=10}),ot(n)(e.task,s,c.x,c.y,c.width,c.height,{class:"task"},n,e.colour)},Bt=function(t,e){vt(t,e)},ot=function(){function t(s,h,c,p,y,m,g,d){const i=h.append("text").attr("x",c+y/2).attr("y",p+m/2+5).style("font-color",d).style("text-anchor","middle").text(s);l(i,g)}function e(s,h,c,p,y,m,g,d,i){const{taskFontSize:r,taskFontFamily:a}=d,u=s.split(/<br\s*\/?>/gi);for(let f=0;f<u.length;f++){const o=f*r-r*(u.length-1)/2,w=h.append("text").attr("x",c+y/2).attr("y",p).attr("fill",i).style("text-anchor","middle").style("font-size",r).style("font-family",a);w.append("tspan").attr("x",c+y/2).attr("dy",o).text(u[f]),w.attr("y",p+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),l(w,g)}}function n(s,h,c,p,y,m,g,d){const i=h.append("switch"),a=i.append("foreignObject").attr("x",c).attr("y",p).attr("width",y).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");a.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),e(s,i,c,p,y,m,g,d),l(a,g)}function l(s,h){for(const c in h)c in h&&s.attr(c,h[c])}return function(s){return s.textPlacement==="fo"?n:s.textPlacement==="old"?t:e}}(),jt=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},L={drawRect:U,drawCircle:rt,drawSection:Rt,drawText:at,drawLabel:Lt,drawTask:Nt,drawBackgroundRect:Bt,initGraphics:jt},zt=function(t){Object.keys(t).forEach(function(n){j[n]=t[n]})},M={};function Yt(t){const e=I().journey;let n=60;Object.keys(M).forEach(l=>{const s=M[l].color,h={cx:20,cy:n,r:7,fill:s,stroke:"#000",pos:M[l].position};L.drawCircle(t,h);const c={x:40,y:n+7,fill:"#666",text:l,textMargin:e.boxTextMargin|5};L.drawText(t,c),n+=20})}const j=I().journey,P=j.leftMargin,qt=function(t,e,n,l){const s=I().journey,h=I().securityLevel;let c;h==="sandbox"&&(c=W("#i"+e));const p=h==="sandbox"?W(c.nodes()[0].contentDocument.body):W("body");v.init();const y=p.select("#"+e);L.initGraphics(y);const m=l.db.getTasks(),g=l.db.getDiagramTitle(),d=l.db.getActors();for(const o in M)delete M[o];let i=0;d.forEach(o=>{M[o]={color:s.actorColours[i%s.actorColours.length],position:i},i++}),Yt(y),v.insert(0,0,P,Object.keys(M).length*50),Ot(y,m,0);const r=v.getBounds();g&&y.append("text").text(g).attr("x",P).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const a=r.stopy-r.starty+2*s.diagramMarginY,u=P+r.stopx+2*s.diagramMarginX;kt(y,a,u,s.useMaxWidth),y.append("line").attr("x1",P).attr("y1",s.height*4).attr("x2",u-P-4).attr("y2",s.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const f=g?70:0;y.attr("viewBox",`${r.startx} -25 ${u} ${a+f}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",a+f+25)},v={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,n,l){t[e]===void 0?t[e]=n:t[e]=l(n,t[e])},updateBounds:function(t,e,n,l){const s=I().journey,h=this;let c=0;function p(y){return function(g){c++;const d=h.sequenceItems.length-c+1;h.updateVal(g,"starty",e-d*s.boxMargin,Math.min),h.updateVal(g,"stopy",l+d*s.boxMargin,Math.max),h.updateVal(v.data,"startx",t-d*s.boxMargin,Math.min),h.updateVal(v.data,"stopx",n+d*s.boxMargin,Math.max),y!=="activation"&&(h.updateVal(g,"startx",t-d*s.boxMargin,Math.min),h.updateVal(g,"stopx",n+d*s.boxMargin,Math.max),h.updateVal(v.data,"starty",e-d*s.boxMargin,Math.min),h.updateVal(v.data,"stopy",l+d*s.boxMargin,Math.max))}}this.sequenceItems.forEach(p())},insert:function(t,e,n,l){const s=Math.min(t,n),h=Math.max(t,n),c=Math.min(e,l),p=Math.max(e,l);this.updateVal(v.data,"startx",s,Math.min),this.updateVal(v.data,"starty",c,Math.min),this.updateVal(v.data,"stopx",h,Math.max),this.updateVal(v.data,"stopy",p,Math.max),this.updateBounds(s,c,h,p)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},X=j.sectionFills,it=j.sectionColours,Ot=function(t,e,n){const l=I().journey;let s="";const h=l.height*2+l.diagramMarginY,c=n+h;let p=0,y="#CCC",m="black",g=0;for(const[d,i]of e.entries()){if(s!==i.section){y=X[p%X.length],g=p%X.length,m=it[p%it.length];let a=0;const u=i.section;for(let o=d;o<e.length&&e[o].section==u;o++)a=a+1;const f={x:d*l.taskMargin+d*l.width+P,y:50,text:i.section,fill:y,num:g,colour:m,taskCount:a};L.drawSection(t,f,l),s=i.section,p++}const r=i.people.reduce((a,u)=>(M[u]&&(a[u]=M[u]),a),{});i.x=d*l.taskMargin+d*l.width+P,i.y=c,i.width=l.diagramMarginX,i.height=l.diagramMarginY,i.colour=m,i.fill=y,i.num=g,i.actors=r,L.drawTask(t,i,l),v.insert(i.x,i.y,i.x+i.width+l.taskMargin,300+5*30)}},st={setConf:zt,draw:qt},Se={parser:wt,db:tt,renderer:st,styles:Vt,init:t=>{st.setConf(t.journey),tt.clear()}};export{Se as diagram}; diff --git a/assets/layout-KoXfeBJF.js b/assets/layout-KoXfeBJF.js new file mode 100644 index 00000000000..7da6d66c927 --- /dev/null +++ b/assets/layout-KoXfeBJF.js @@ -0,0 +1 @@ +import{a as F,c as xn,b as zn,d as L,k as Un,e as Hn,g as Jn,j as P,l as En,m as kn,n as yn,t as Kn,o as Nn,p as Zn,q as jn,f as s,G as x,h as w,i as g,r as M,v as y,s as Y}from"./graph-4EnB4jqL.js";import{ap as A,aq as Qn,ar as ne,as as ee,at as Ln,au as B,av as _n,aw as re,ax as Cn,ay as K,az as te,aA as ie,aB as Z,aC as ae,aD as In,aE as oe,aF as ue,aG as H}from"./index.demo-_07sssxB.js";var de=/\s/;function fe(n){for(var e=n.length;e--&&de.test(n.charAt(e)););return e}var se=/^\s+/;function ce(n){return n&&n.slice(0,fe(n)+1).replace(se,"")}var un=NaN,he=/^[-+]0x[0-9a-f]+$/i,le=/^0b[01]+$/i,ve=/^0o[0-7]+$/i,pe=parseInt;function we(n){if(typeof n=="number")return n;if(F(n))return un;if(A(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=A(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=ce(n);var r=le.test(n);return r||ve.test(n)?pe(n.slice(2),r?2:8):he.test(n)?un:+n}var dn=1/0,me=17976931348623157e292;function S(n){if(!n)return n===0?n:0;if(n=we(n),n===dn||n===-dn){var e=n<0?-1:1;return e*me}return n===n?n:0}function be(n){var e=S(n),r=e%1;return e===e?r?e-r:e:0}function _(n){var e=n==null?0:n.length;return e?xn(n,1):[]}function ge(n){return Qn(ne(n,void 0,_),n+"")}var xe=1,Ee=4;function ke(n){return zn(n,xe|Ee)}var fn=function(){return ee.Date.now()},Rn=Object.prototype,ye=Rn.hasOwnProperty,Ne=Ln(function(n,e){n=Object(n);var r=-1,t=e.length,i=t>2?e[2]:void 0;for(i&&B(e[0],e[1],i)&&(t=1);++r<t;)for(var o=e[r],a=_n(o),u=-1,d=a.length;++u<d;){var f=a[u],c=n[f];(c===void 0||re(c,Rn[f])&&!ye.call(n,f))&&(n[f]=o[f])}return n});const Le=Ne;function G(n){var e=n==null?0:n.length;return e?n[e-1]:void 0}function _e(n){return function(e,r,t){var i=Object(e);if(!Cn(e)){var o=L(r);e=Un(e),r=function(u){return o(i[u],u,i)}}var a=n(e,r,t);return a>-1?i[o?e[a]:a]:void 0}}var Ce=Math.max;function Ie(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:be(r);return i<0&&(i=Ce(t+i,0)),Hn(n,L(e),i)}var j=_e(Ie);function Tn(n,e){var r=-1,t=Cn(n)?Array(n.length):[];return Jn(n,function(i,o,a){t[++r]=e(i,o,a)}),t}function m(n,e){var r=K(n)?P:Tn;return r(n,L(e))}function Re(n,e){return n==null?n:te(n,En(e),_n)}function Te(n,e){return n&&kn(n,En(e))}function Me(n,e){return n>e}function Mn(n,e){return n<e}function $(n,e){var r={};return e=L(e),kn(n,function(t,i,o){ie(r,i,e(t,i,o))}),r}function Q(n,e,r){for(var t=-1,i=n.length;++t<i;){var o=n[t],a=e(o);if(a!=null&&(u===void 0?a===a&&!F(a):r(a,u)))var u=a,d=o}return d}function E(n){return n&&n.length?Q(n,Z,Me):void 0}function R(n){return n&&n.length?Q(n,Z,Mn):void 0}function nn(n,e){return n&&n.length?Q(n,L(e),Mn):void 0}function Oe(n,e,r,t){if(!A(n))return n;e=yn(e,n);for(var i=-1,o=e.length,a=o-1,u=n;u!=null&&++i<o;){var d=Kn(e[i]),f=r;if(d==="__proto__"||d==="constructor"||d==="prototype")return n;if(i!=a){var c=u[d];f=t?t(c,d,u):void 0,f===void 0&&(f=A(c)?c:ae(e[i+1])?[]:{})}In(u,d,f),u=u[d]}return n}function Pe(n,e,r){for(var t=-1,i=e.length,o={};++t<i;){var a=e[t],u=Nn(n,a);r(u,a)&&Oe(o,yn(a,n),u)}return o}function Se(n,e){var r=n.length;for(n.sort(e);r--;)n[r]=n[r].value;return n}function Fe(n,e){if(n!==e){var r=n!==void 0,t=n===null,i=n===n,o=F(n),a=e!==void 0,u=e===null,d=e===e,f=F(e);if(!u&&!f&&!o&&n>e||o&&a&&d&&!u&&!f||t&&a&&d||!r&&d||!i)return 1;if(!t&&!o&&!f&&n<e||f&&r&&i&&!t&&!o||u&&r&&i||!a&&i||!d)return-1}return 0}function Ae(n,e,r){for(var t=-1,i=n.criteria,o=e.criteria,a=i.length,u=r.length;++t<a;){var d=Fe(i[t],o[t]);if(d){if(t>=u)return d;var f=r[t];return d*(f=="desc"?-1:1)}}return n.index-e.index}function Be(n,e,r){e.length?e=P(e,function(o){return K(o)?function(a){return Nn(a,o.length===1?o[0]:o)}:o}):e=[Z];var t=-1;e=P(e,oe(L));var i=Tn(n,function(o,a,u){var d=P(e,function(f){return f(o)});return{criteria:d,index:++t,value:o}});return Se(i,function(o,a){return Ae(o,a,r)})}function Ge(n,e){return Pe(n,e,function(r,t){return Zn(n,t)})}var V=ge(function(n,e){return n==null?{}:Ge(n,e)}),Ve=Math.ceil,Ye=Math.max;function $e(n,e,r,t){for(var i=-1,o=Ye(Ve((e-n)/(r||1)),0),a=Array(o);o--;)a[t?o:++i]=n,n+=r;return a}function De(n){return function(e,r,t){return t&&typeof t!="number"&&B(e,r,t)&&(r=t=void 0),e=S(e),r===void 0?(r=e,e=0):r=S(r),t=t===void 0?e<r?1:-1:S(t),$e(e,r,t,n)}}var N=De(),O=Ln(function(n,e){if(n==null)return[];var r=e.length;return r>1&&B(n,e[0],e[1])?e=[]:r>2&&B(e[0],e[1],e[2])&&(e=[e[0]]),Be(n,xn(e,1),[])}),qe=0;function en(n){var e=++qe;return jn(n)+e}function We(n,e,r){for(var t=-1,i=n.length,o=e.length,a={};++t<i;){var u=t<o?e[t]:void 0;r(a,n[t],u)}return a}function Xe(n,e){return We(n||[],e||[],In)}class ze{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return sn(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&sn(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,t=r._prev;t!==r;)e.push(JSON.stringify(t,Ue)),t=t._prev;return"["+e.join(", ")+"]"}}function sn(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function Ue(n,e){if(n!=="_next"&&n!=="_prev")return e}var He=ue(1);function Je(n,e){if(n.nodeCount()<=1)return[];var r=Ze(n,e||He),t=Ke(r.graph,r.buckets,r.zeroIdx);return _(m(t,function(i){return n.outEdges(i.v,i.w)}))}function Ke(n,e,r){for(var t=[],i=e[e.length-1],o=e[0],a;n.nodeCount();){for(;a=o.dequeue();)q(n,e,r,a);for(;a=i.dequeue();)q(n,e,r,a);if(n.nodeCount()){for(var u=e.length-2;u>0;--u)if(a=e[u].dequeue(),a){t=t.concat(q(n,e,r,a,!0));break}}}return t}function q(n,e,r,t,i){var o=i?[]:void 0;return s(n.inEdges(t.v),function(a){var u=n.edge(a),d=n.node(a.v);i&&o.push({v:a.v,w:a.w}),d.out-=u,J(e,r,d)}),s(n.outEdges(t.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,J(e,r,f)}),n.removeNode(t.v),o}function Ze(n,e){var r=new x,t=0,i=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),i=Math.max(i,r.node(u.v).out+=f),t=Math.max(t,r.node(u.w).in+=f)});var o=N(i+t+3).map(function(){return new ze}),a=t+1;return s(r.nodes(),function(u){J(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function J(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function je(n){var e=n.graph().acyclicer==="greedy"?Je(n,r(n)):Qe(n);s(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,en("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function Qe(n){var e=[],r={},t={};function i(o){w(t,o)||(t[o]=!0,r[o]=!0,s(n.outEdges(o),function(a){w(r,a.w)?e.push(a):i(a.w)}),delete r[o])}return s(n.nodes(),i),e}function nr(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function C(n,e,r,t){var i;do i=en(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function er(n){var e=new x().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function On(n){var e=new x({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function cn(n,e){var r=n.x,t=n.y,i=e.x-r,o=e.y-t,a=n.width/2,u=n.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),d=u*i/o,f=u):(i<0&&(a=-a),d=a,f=a*o/i),{x:r+d,y:t+f}}function D(n){var e=m(N(Pn(n)+1),function(){return[]});return s(n.nodes(),function(r){var t=n.node(r),i=t.rank;g(i)||(e[i][t.order]=r)}),e}function rr(n){var e=R(m(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var t=n.node(r);w(t,"rank")&&(t.rank-=e)})}function tr(n){var e=R(m(n.nodes(),function(o){return n.node(o).rank})),r=[];s(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=n.graph().nodeRankFactor;s(r,function(o,a){g(o)&&a%i!==0?--t:t&&s(o,function(u){n.node(u).rank+=t})})}function hn(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),C(n,"border",i,e)}function Pn(n){return E(m(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function ir(n,e){var r={lhs:[],rhs:[]};return s(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function ar(n,e){var r=fn();try{return e()}finally{console.log(n+" time: "+(fn()-r)+"ms")}}function or(n,e){return e()}function ur(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&s(t,e),w(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)ln(n,"borderLeft","_bl",r,i,o),ln(n,"borderRight","_br",r,i,o)}}s(n.children(),e)}function ln(n,e,r,t,i,o){var a={width:0,height:0,rank:o,borderType:e},u=i[e][o-1],d=C(n,"border",a,r);i[e][o]=d,n.setParent(d,t),u&&n.setEdge(u,d,{weight:1})}function dr(n){var e=n.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&Sn(n)}function fr(n){var e=n.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&sr(n),(e==="lr"||e==="rl")&&(cr(n),Sn(n))}function Sn(n){s(n.nodes(),function(e){vn(n.node(e))}),s(n.edges(),function(e){vn(n.edge(e))})}function vn(n){var e=n.width;n.width=n.height,n.height=e}function sr(n){s(n.nodes(),function(e){W(n.node(e))}),s(n.edges(),function(e){var r=n.edge(e);s(r.points,W),w(r,"y")&&W(r)})}function W(n){n.y=-n.y}function cr(n){s(n.nodes(),function(e){X(n.node(e))}),s(n.edges(),function(e){var r=n.edge(e);s(r.points,X),w(r,"x")&&X(r)})}function X(n){var e=n.x;n.x=n.y,n.y=e}function hr(n){n.graph().dummyChains=[],s(n.edges(),function(e){lr(n,e)})}function lr(n,e){var r=e.v,t=n.node(r).rank,i=e.w,o=n.node(i).rank,a=e.name,u=n.edge(e),d=u.labelRank;if(o!==t+1){n.removeEdge(e);var f,c,h;for(h=0,++t;t<o;++h,++t)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:e,rank:t},f=C(n,"edge",c,"_d"),t===d&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),n.setEdge(r,f,{weight:u.weight},a),h===0&&n.graph().dummyChains.push(f),r=f;n.setEdge(r,i,{weight:u.weight},a)}}function vr(n){s(n.graph().dummyChains,function(e){var r=n.node(e),t=r.edgeLabel,i;for(n.setEdge(r.edgeObj,t);r.dummy;)i=n.successors(e)[0],n.removeNode(e),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),e=i,r=n.node(e)})}function rn(n){var e={};function r(t){var i=n.node(t);if(w(e,t))return i.rank;e[t]=!0;var o=R(m(n.outEdges(t),function(a){return r(a.w)-n.edge(a).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),i.rank=o}s(n.sources(),r)}function T(n,e){return n.node(e.w).rank-n.node(e.v).rank-n.edge(e).minlen}function Fn(n){var e=new x({directed:!1}),r=n.nodes()[0],t=n.nodeCount();e.setNode(r,{});for(var i,o;pr(e,n)<t;)i=wr(e,n),o=e.hasNode(i.v)?T(n,i):-T(n,i),mr(e,n,o);return e}function pr(n,e){function r(t){s(e.nodeEdges(t),function(i){var o=i.v,a=t===o?i.w:o;!n.hasNode(a)&&!T(e,i)&&(n.setNode(a,{}),n.setEdge(t,a,{}),r(a))})}return s(n.nodes(),r),n.nodeCount()}function wr(n,e){return nn(e.edges(),function(r){if(n.hasNode(r.v)!==n.hasNode(r.w))return T(e,r)})}function mr(n,e,r){s(n.nodes(),function(t){e.node(t).rank+=r})}function br(){}br.prototype=new Error;function An(n,e,r){K(e)||(e=[e]);var t=(n.isDirected()?n.successors:n.neighbors).bind(n),i=[],o={};return s(e,function(a){if(!n.hasNode(a))throw new Error("Graph does not have node: "+a);Bn(n,a,r==="post",o,t,i)}),i}function Bn(n,e,r,t,i,o){w(t,e)||(t[e]=!0,r||o.push(e),s(i(e),function(a){Bn(n,a,r,t,i,o)}),r&&o.push(e))}function gr(n,e){return An(n,e,"post")}function xr(n,e){return An(n,e,"pre")}k.initLowLimValues=an;k.initCutValues=tn;k.calcCutValue=Gn;k.leaveEdge=Yn;k.enterEdge=$n;k.exchangeEdges=Dn;function k(n){n=er(n),rn(n);var e=Fn(n);an(e),tn(e,n);for(var r,t;r=Yn(e);)t=$n(e,n,r),Dn(e,n,r,t)}function tn(n,e){var r=gr(n,n.nodes());r=r.slice(0,r.length-1),s(r,function(t){Er(n,e,t)})}function Er(n,e,r){var t=n.node(r),i=t.parent;n.edge(r,i).cutvalue=Gn(n,e,r)}function Gn(n,e,r){var t=n.node(r),i=t.parent,o=!0,a=e.edge(r,i),u=0;return a||(o=!1,a=e.edge(i,r)),u=a.weight,s(e.nodeEdges(r),function(d){var f=d.v===r,c=f?d.w:d.v;if(c!==i){var h=f===o,l=e.edge(d).weight;if(u+=h?l:-l,yr(n,r,c)){var v=n.edge(r,c).cutvalue;u+=h?-v:v}}}),u}function an(n,e){arguments.length<2&&(e=n.nodes()[0]),Vn(n,{},1,e)}function Vn(n,e,r,t,i){var o=r,a=n.node(t);return e[t]=!0,s(n.neighbors(t),function(u){w(e,u)||(r=Vn(n,e,r,u,t))}),a.low=o,a.lim=r++,i?a.parent=i:delete a.parent,r}function Yn(n){return j(n.edges(),function(e){return n.edge(e).cutvalue<0})}function $n(n,e,r){var t=r.v,i=r.w;e.hasEdge(t,i)||(t=r.w,i=r.v);var o=n.node(t),a=n.node(i),u=o,d=!1;o.lim>a.lim&&(u=a,d=!0);var f=M(e.edges(),function(c){return d===pn(n,n.node(c.v),u)&&d!==pn(n,n.node(c.w),u)});return nn(f,function(c){return T(e,c)})}function Dn(n,e,r,t){var i=r.v,o=r.w;n.removeEdge(i,o),n.setEdge(t.v,t.w,{}),an(n),tn(n,e),kr(n,e)}function kr(n,e){var r=j(n.nodes(),function(i){return!e.node(i).parent}),t=xr(n,r);t=t.slice(1),s(t,function(i){var o=n.node(i).parent,a=e.edge(i,o),u=!1;a||(a=e.edge(o,i),u=!0),e.node(i).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function yr(n,e,r){return n.hasEdge(e,r)}function pn(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function Nr(n){switch(n.graph().ranker){case"network-simplex":wn(n);break;case"tight-tree":_r(n);break;case"longest-path":Lr(n);break;default:wn(n)}}var Lr=rn;function _r(n){rn(n),Fn(n)}function wn(n){k(n)}function Cr(n){var e=C(n,"root",{},"_root"),r=Ir(n),t=E(y(r))-1,i=2*t+1;n.graph().nestingRoot=e,s(n.edges(),function(a){n.edge(a).minlen*=i});var o=Rr(n)+1;s(n.children(),function(a){qn(n,e,i,o,t,r,a)}),n.graph().nodeRankFactor=i}function qn(n,e,r,t,i,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=hn(n,"_bt"),f=hn(n,"_bb"),c=n.node(a);n.setParent(d,a),c.borderTop=d,n.setParent(f,a),c.borderBottom=f,s(u,function(h){qn(n,e,r,t,i,o,h);var l=n.node(h),v=l.borderTop?l.borderTop:h,p=l.borderBottom?l.borderBottom:h,b=l.borderTop?t:2*t,I=v!==p?1:i-o[a]+1;n.setEdge(d,v,{weight:b,minlen:I,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:I,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:i+o[a]})}function Ir(n){var e={};function r(t,i){var o=n.children(t);o&&o.length&&s(o,function(a){r(a,i+1)}),e[t]=i}return s(n.children(),function(t){r(t,1)}),e}function Rr(n){return Y(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function Tr(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Mr(n,e,r){var t={},i;s(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=t[u],t[u]=a):(d=i,i=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function Or(n,e,r){var t=Pr(n),i=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return n.node(o)});return s(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),s(n[r](o),function(d){var f=d.v===o?d.w:d.v,c=i.edge(f,o),h=g(c)?0:c.weight;i.setEdge(f,o,{weight:n.edge(d).weight+h})}),w(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),i}function Pr(n){for(var e;n.hasNode(e=en("_root")););return e}function Sr(n,e){for(var r=0,t=1;t<e.length;++t)r+=Fr(n,e[t-1],e[t]);return r}function Fr(n,e,r){for(var t=Xe(r,m(r,function(f,c){return c})),i=_(m(e,function(f){return O(m(n.outEdges(f),function(c){return{pos:t[c.w],weight:n.edge(c).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var a=2*o-1;o-=1;var u=m(new Array(a),function(){return 0}),d=0;return s(i.forEach(function(f){var c=f.pos+o;u[c]+=f.weight;for(var h=0;c>0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*h})),d}function Ar(n){var e={},r=M(n.nodes(),function(u){return!n.children(u).length}),t=E(m(r,function(u){return n.node(u).rank})),i=m(N(t+1),function(){return[]});function o(u){if(!w(e,u)){e[u]=!0;var d=n.node(u);i[d.rank].push(u),s(n.successors(u),o)}}var a=O(r,function(u){return n.node(u).rank});return s(a,o),i}function Br(n,e){return m(e,function(r){var t=n.inEdges(r);if(t.length){var i=Y(t,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Gr(n,e){var r={};s(n,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};g(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),s(e.edges(),function(i){var o=r[i.v],a=r[i.w];!g(o)&&!g(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=M(r,function(i){return!i.indegree});return Vr(t)}function Vr(n){var e=[];function r(o){return function(a){a.merged||(g(a.barycenter)||g(o.barycenter)||a.barycenter>=o.barycenter)&&Yr(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var i=n.pop();e.push(i),s(i.in.reverse(),r(i)),s(i.out,t(i))}return m(M(e,function(o){return!o.merged}),function(o){return V(o,["vs","i","barycenter","weight"])})}function Yr(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function $r(n,e){var r=ir(n,function(c){return w(c,"barycenter")}),t=r.lhs,i=O(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;t.sort(Dr(!!e)),d=mn(o,i,d),s(t,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=mn(o,i,d)});var f={vs:_(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function mn(n,e,r){for(var t;e.length&&(t=G(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function Dr(n){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:n?r.i-e.i:e.i-r.i}}function Wn(n,e,r,t){var i=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(i=M(i,function(p){return p!==a&&p!==u}));var f=Br(n,i);s(f,function(p){if(n.children(p.v).length){var b=Wn(n,p.v,r,t);d[p.v]=b,w(b,"barycenter")&&Wr(p,b)}});var c=Gr(f,r);qr(c,d);var h=$r(c,t);if(a&&(h.vs=_([a,h.vs,u]),n.predecessors(a).length)){var l=n.node(n.predecessors(a)[0]),v=n.node(n.predecessors(u)[0]);w(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+v.order)/(h.weight+2),h.weight+=2}return h}function qr(n,e){s(n,function(r){r.vs=_(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function Wr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function Xr(n){var e=Pn(n),r=bn(n,N(1,e+1),"inEdges"),t=bn(n,N(e-1,-1,-1),"outEdges"),i=Ar(n);gn(n,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){zr(u%2?r:t,u%4>=2),i=D(n);var f=Sr(n,i);f<o&&(d=0,a=ke(i),o=f)}gn(n,a)}function bn(n,e,r){return m(e,function(t){return Or(n,t,r)})}function zr(n,e){var r=new x;s(n,function(t){var i=t.graph().root,o=Wn(t,i,r,e);s(o.vs,function(a,u){t.node(a).order=u}),Mr(t,r,o.vs)})}function gn(n,e){s(e,function(r){s(r,function(t,i){n.node(t).order=i})})}function Ur(n){var e=Jr(n);s(n.graph().dummyChains,function(r){for(var t=n.node(r),i=t.edgeObj,o=Hr(n,e,i.v,i.w),a=o.path,u=o.lca,d=0,f=a[d],c=!0;r!==i.w;){if(t=n.node(r),c){for(;(f=a[d])!==u&&n.node(f).maxRank<t.rank;)d++;f===u&&(c=!1)}if(!c){for(;d<a.length-1&&n.node(f=a[d+1]).minRank<=t.rank;)d++;f=a[d]}n.setParent(r,f),r=n.successors(r)[0]}})}function Hr(n,e,r,t){var i=[],o=[],a=Math.min(e[r].low,e[t].low),u=Math.max(e[r].lim,e[t].lim),d,f;d=r;do d=n.parent(d),i.push(d);while(d&&(e[d].low>a||u>e[d].lim));for(f=d,d=t;(d=n.parent(d))!==f;)o.push(d);return{path:i.concat(o.reverse()),lca:f}}function Jr(n){var e={},r=0;function t(i){var o=r;s(n.children(i),t),e[i]={low:o,lim:r++}}return s(n.children(),t),e}function Kr(n,e){var r={};function t(i,o){var a=0,u=0,d=i.length,f=G(o);return s(o,function(c,h){var l=jr(n,c),v=l?n.node(l).order:d;(l||c===f)&&(s(o.slice(u,h+1),function(p){s(n.predecessors(p),function(b){var I=n.node(b),on=I.order;(on<a||v<on)&&!(I.dummy&&n.node(p).dummy)&&Xn(r,b,p)})}),u=h+1,a=v)}),o}return Y(e,t),r}function Zr(n,e){var r={};function t(o,a,u,d,f){var c;s(N(a,u),function(h){c=o[h],n.node(c).dummy&&s(n.predecessors(c),function(l){var v=n.node(l);v.dummy&&(v.order<d||v.order>f)&&Xn(r,l,c)})})}function i(o,a){var u=-1,d,f=0;return s(a,function(c,h){if(n.node(c).dummy==="border"){var l=n.predecessors(c);l.length&&(d=n.node(l[0]).order,t(a,f,h,u,d),f=h,u=d)}t(a,f,a.length,d,o.length)}),a}return Y(e,i),r}function jr(n,e){if(n.node(e).dummy)return j(n.predecessors(e),function(r){return n.node(r).dummy})}function Xn(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function Qr(n,e,r){if(e>r){var t=e;e=r,r=t}return w(n[e],r)}function nt(n,e,r,t){var i={},o={},a={};return s(e,function(u){s(u,function(d,f){i[d]=d,o[d]=d,a[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=t(f);if(c.length){c=O(c,function(b){return a[b]});for(var h=(c.length-1)/2,l=Math.floor(h),v=Math.ceil(h);l<=v;++l){var p=c[l];o[f]===f&&d<a[p]&&!Qr(r,f,p)&&(o[p]=f,o[f]=i[f]=i[p],d=a[p])}}})}),{root:i,align:o}}function et(n,e,r,t,i){var o={},a=rt(n,e,r,i),u=i?"borderLeft":"borderRight";function d(h,l){for(var v=a.nodes(),p=v.pop(),b={};p;)b[p]?h(p):(b[p]=!0,v.push(p),v=v.concat(l(p))),p=v.pop()}function f(h){o[h]=a.inEdges(h).reduce(function(l,v){return Math.max(l,o[v.v]+a.edge(v))},0)}function c(h){var l=a.outEdges(h).reduce(function(p,b){return Math.min(p,o[b.w]-a.edge(b))},Number.POSITIVE_INFINITY),v=n.node(h);l!==Number.POSITIVE_INFINITY&&v.borderType!==u&&(o[h]=Math.max(o[h],l))}return d(f,a.predecessors.bind(a)),d(c,a.successors.bind(a)),s(t,function(h){o[h]=o[r[h]]}),o}function rt(n,e,r,t){var i=new x,o=n.graph(),a=ut(o.nodesep,o.edgesep,t);return s(e,function(u){var d;s(u,function(f){var c=r[f];if(i.setNode(c),d){var h=r[d],l=i.edge(h,c);i.setEdge(h,c,Math.max(a(n,f,d),l||0))}d=f})}),i}function tt(n,e){return nn(y(e),function(r){var t=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Re(r,function(o,a){var u=dt(n,a)/2;t=Math.max(o+u,t),i=Math.min(o-u,i)}),t-i})}function it(n,e){var r=y(e),t=R(r),i=E(r);s(["u","d"],function(o){s(["l","r"],function(a){var u=o+a,d=n[u],f;if(d!==e){var c=y(d);f=a==="l"?t-R(c):i-E(c),f&&(n[u]=$(d,function(h){return h+f}))}})})}function at(n,e){return $(n.ul,function(r,t){if(e)return n[e.toLowerCase()][t];var i=O(m(n,t));return(i[1]+i[2])/2})}function ot(n){var e=D(n),r=H(Kr(n,e),Zr(n,e)),t={},i;s(["u","d"],function(a){i=a==="u"?e:y(e).reverse(),s(["l","r"],function(u){u==="r"&&(i=m(i,function(h){return y(h).reverse()}));var d=(a==="u"?n.predecessors:n.successors).bind(n),f=nt(n,i,r,d),c=et(n,i,f.root,f.align,u==="r");u==="r"&&(c=$(c,function(h){return-h})),t[a+u]=c})});var o=tt(n,t);return it(t,o),at(t,n.graph().align)}function ut(n,e,r){return function(t,i,o){var a=t.node(i),u=t.node(o),d=0,f;if(d+=a.width/2,w(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":f=-a.width/2;break;case"r":f=a.width/2;break}if(f&&(d+=r?f:-f),f=0,d+=(a.dummy?e:n)/2,d+=(u.dummy?e:n)/2,d+=u.width/2,w(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":f=u.width/2;break;case"r":f=-u.width/2;break}return f&&(d+=r?f:-f),f=0,d}}function dt(n,e){return n.node(e).width}function ft(n){n=On(n),st(n),Te(ot(n),function(e,r){n.node(r).x=e})}function st(n){var e=D(n),r=n.graph().ranksep,t=0;s(e,function(i){var o=E(m(i,function(a){return n.node(a).height}));s(i,function(a){n.node(a).y=t+o/2}),t+=o+r})}function At(n,e){var r=e&&e.debugTiming?ar:or;r("layout",function(){var t=r(" buildLayoutGraph",function(){return Et(n)});r(" runLayout",function(){ct(t,r)}),r(" updateInputGraph",function(){ht(n,t)})})}function ct(n,e){e(" makeSpaceForEdgeLabels",function(){kt(n)}),e(" removeSelfEdges",function(){Mt(n)}),e(" acyclic",function(){je(n)}),e(" nestingGraph.run",function(){Cr(n)}),e(" rank",function(){Nr(On(n))}),e(" injectEdgeLabelProxies",function(){yt(n)}),e(" removeEmptyRanks",function(){tr(n)}),e(" nestingGraph.cleanup",function(){Tr(n)}),e(" normalizeRanks",function(){rr(n)}),e(" assignRankMinMax",function(){Nt(n)}),e(" removeEdgeLabelProxies",function(){Lt(n)}),e(" normalize.run",function(){hr(n)}),e(" parentDummyChains",function(){Ur(n)}),e(" addBorderSegments",function(){ur(n)}),e(" order",function(){Xr(n)}),e(" insertSelfEdges",function(){Ot(n)}),e(" adjustCoordinateSystem",function(){dr(n)}),e(" position",function(){ft(n)}),e(" positionSelfEdges",function(){Pt(n)}),e(" removeBorderNodes",function(){Tt(n)}),e(" normalize.undo",function(){vr(n)}),e(" fixupEdgeLabelCoords",function(){It(n)}),e(" undoCoordinateSystem",function(){fr(n)}),e(" translateGraph",function(){_t(n)}),e(" assignNodeIntersects",function(){Ct(n)}),e(" reversePoints",function(){Rt(n)}),e(" acyclic.undo",function(){nr(n)})}function ht(n,e){s(n.nodes(),function(r){var t=n.node(r),i=e.node(r);t&&(t.x=i.x,t.y=i.y,e.children(r).length&&(t.width=i.width,t.height=i.height))}),s(n.edges(),function(r){var t=n.edge(r),i=e.edge(r);t.points=i.points,w(i,"x")&&(t.x=i.x,t.y=i.y)}),n.graph().width=e.graph().width,n.graph().height=e.graph().height}var lt=["nodesep","edgesep","ranksep","marginx","marginy"],vt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},pt=["acyclicer","ranker","rankdir","align"],wt=["width","height"],mt={width:0,height:0},bt=["minlen","weight","width","height","labeloffset"],gt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},xt=["labelpos"];function Et(n){var e=new x({multigraph:!0,compound:!0}),r=U(n.graph());return e.setGraph(H({},vt,z(r,lt),V(r,pt))),s(n.nodes(),function(t){var i=U(n.node(t));e.setNode(t,Le(z(i,wt),mt)),e.setParent(t,n.parent(t))}),s(n.edges(),function(t){var i=U(n.edge(t));e.setEdge(t,H({},gt,z(i,bt),V(i,xt)))}),e}function kt(n){var e=n.graph();e.ranksep/=2,s(n.edges(),function(r){var t=n.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function yt(n){s(n.edges(),function(e){var r=n.edge(e);if(r.width&&r.height){var t=n.node(e.v),i=n.node(e.w),o={rank:(i.rank-t.rank)/2+t.rank,e};C(n,"edge-proxy",o,"_ep")}})}function Nt(n){var e=0;s(n.nodes(),function(r){var t=n.node(r);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,e=E(e,t.maxRank))}),n.graph().maxRank=e}function Lt(n){s(n.nodes(),function(e){var r=n.node(e);r.dummy==="edge-proxy"&&(n.edge(r.e).labelRank=r.rank,n.removeNode(e))})}function _t(n){var e=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,i=0,o=n.graph(),a=o.marginx||0,u=o.marginy||0;function d(f){var c=f.x,h=f.y,l=f.width,v=f.height;e=Math.min(e,c-l/2),r=Math.max(r,c+l/2),t=Math.min(t,h-v/2),i=Math.max(i,h+v/2)}s(n.nodes(),function(f){d(n.node(f))}),s(n.edges(),function(f){var c=n.edge(f);w(c,"x")&&d(c)}),e-=a,t-=u,s(n.nodes(),function(f){var c=n.node(f);c.x-=e,c.y-=t}),s(n.edges(),function(f){var c=n.edge(f);s(c.points,function(h){h.x-=e,h.y-=t}),w(c,"x")&&(c.x-=e),w(c,"y")&&(c.y-=t)}),o.width=r-e+a,o.height=i-t+u}function Ct(n){s(n.edges(),function(e){var r=n.edge(e),t=n.node(e.v),i=n.node(e.w),o,a;r.points?(o=r.points[0],a=r.points[r.points.length-1]):(r.points=[],o=i,a=t),r.points.unshift(cn(t,o)),r.points.push(cn(i,a))})}function It(n){s(n.edges(),function(e){var r=n.edge(e);if(w(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Rt(n){s(n.edges(),function(e){var r=n.edge(e);r.reversed&&r.points.reverse()})}function Tt(n){s(n.nodes(),function(e){if(n.children(e).length){var r=n.node(e),t=n.node(r.borderTop),i=n.node(r.borderBottom),o=n.node(G(r.borderLeft)),a=n.node(G(r.borderRight));r.width=Math.abs(a.x-o.x),r.height=Math.abs(i.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),s(n.nodes(),function(e){n.node(e).dummy==="border"&&n.removeNode(e)})}function Mt(n){s(n.edges(),function(e){if(e.v===e.w){var r=n.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:n.edge(e)}),n.removeEdge(e)}})}function Ot(n){var e=D(n);s(e,function(r){var t=0;s(r,function(i,o){var a=n.node(i);a.order=o+t,s(a.selfEdges,function(u){C(n,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:o+ ++t,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}function Pt(n){s(n.nodes(),function(e){var r=n.node(e);if(r.dummy==="selfedge"){var t=n.node(r.e.v),i=t.x+t.width/2,o=t.y,a=r.x-i,u=t.height/2;n.setEdge(r.e,r.label),n.removeNode(e),r.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function z(n,e){return $(V(n,e),Number)}function U(n){var e={};return s(n,function(r,t){e[t.toLowerCase()]=r}),e}export{Le as d,At as l,m,V as p,N as r,en as u}; diff --git a/assets/line-abqtiQB-.js b/assets/line-abqtiQB-.js new file mode 100644 index 00000000000..a99fac8838d --- /dev/null +++ b/assets/line-abqtiQB-.js @@ -0,0 +1 @@ +import{a as h}from"./array-Nw74a44z.js";import{w as d,c as o}from"./path-aUcfwwLI.js";import{F as v}from"./index.demo-_07sssxB.js";function w(t){return t[0]}function b(t){return t[1]}function L(t,u){var s=o(!0),i=null,l=v,r=null,m=d(e);t=typeof t=="function"?t:t===void 0?w:o(t),u=typeof u=="function"?u:u===void 0?b:o(u);function e(n){var f,g=(n=h(n)).length,p,c=!1,a;for(i==null&&(r=l(a=m())),f=0;f<=g;++f)!(f<g&&s(p=n[f],f,n))===c&&((c=!c)?r.lineStart():r.lineEnd()),c&&r.point(+t(p,f,n),+u(p,f,n));if(a)return r=null,a+""||null}return e.x=function(n){return arguments.length?(t=typeof n=="function"?n:o(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:o(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:o(!!n),e):s},e.curve=function(n){return arguments.length?(l=n,i!=null&&(r=l(i)),e):l},e.context=function(n){return arguments.length?(n==null?i=r=null:r=l(i=n),e):i},e}export{L as l}; diff --git a/assets/linear-aaS3CbNq.js b/assets/linear-aaS3CbNq.js new file mode 100644 index 00000000000..eb7deb56278 --- /dev/null +++ b/assets/linear-aaS3CbNq.js @@ -0,0 +1 @@ +import{ai as un,aj as I,ak as U,al as Y,am as fn}from"./index.demo-_07sssxB.js";import{i as cn}from"./init-Hi12RPRh.js";function F(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function _(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o<s){if(t(c,c)!==0)return s;do{const h=o+s>>>1;e(u[h],c)<0?o=h+1:s=h}while(o<s)}return o}function f(u,c,o=0,s=u.length){if(o<s){if(t(c,c)!==0)return s;do{const h=o+s>>>1;e(u[h],c)<=0?o=h+1:s=h}while(o<s)}return o}function a(u,c,o=0,s=u.length){const h=i(u,c,o,s-1);return h>o&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=_(F),dn=sn.right;_(ln).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=gn?10:f>=yn?5:f>=Mn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/o<n&&++u,c/o>t&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*o<n&&++u,c*o>t&&--c),c<u&&.5<=e&&e<2?R(n,t,e*2):[u,c,o]}function pn(n,t,e){if(t=+t,n=+n,e=+e,!(e>0))return[];if(n===t)return[n];const r=t<n,[i,f,a]=r?R(t,n,e):R(n,t,e);if(!(f>=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o<u;++o)c[o]=(f-o)/-a;else for(let o=0;o<u;++o)c[o]=(f-o)*a;else if(a<0)for(let o=0;o<u;++o)c[o]=(i+o)/-a;else for(let o=0;o<u;++o)c[o]=(i+o)*a;return c}function L(n,t,e){return t=+t,n=+n,e=+e,R(n,t,e)[2]}function wn(n,t,e){t=+t,n=+n,e=+e;const r=t<n,i=r?L(t,n,e):L(n,t,e);return(r?-1:1)*(i<0?1/-i:i)}function Nn(n,t){t||(t=[]);var e=n?Math.min(t.length,n.length):0,r=t.slice(),i;return function(f){for(i=0;i<e;++i)r[i]=n[i]*(1-f)+t[i]*f;return r}}function kn(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function xn(n,t){var e=t?t.length:0,r=n?Math.min(e,n.length):0,i=new Array(r),f=new Array(e),a;for(a=0;a<r;++a)i[a]=C(n[a],t[a]);for(;a<e;++a)f[a]=t[a];return function(u){for(a=0;a<r;++a)f[a]=i[a](u);return f}}function An(n,t){var e=new Date;return n=+n,t=+t,function(r){return e.setTime(n*(1-r)+t*r),e}}function vn(n,t){var e={},r={},i;(n===null||typeof n!="object")&&(n={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in n?e[i]=C(n[i],t[i]):r[i]=t[i];return function(f){for(i in e)r[i]=e[i](f);return r}}function C(n,t){var e=typeof t,r;return t==null||e==="boolean"?un(t):(e==="number"?I:e==="string"?(r=U(t))?(t=r,Y):fn:t instanceof U?Y:t instanceof Date?An:kn(t)?Nn:Array.isArray(t)?xn:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?vn:I)(n,t)}function Sn(n,t){return n=+n,t=+t,function(e){return Math.round(n*(1-e)+t*e)}}function bn(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function jn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function Pn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var zn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=zn.exec(n)))throw new Error("invalid format: "+n);var t;return new B({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=B.prototype;function B(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}B.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $n(n){n:for(var t=n.length,e=1,r=-1,i;e<t;++e)switch(n[e]){case".":r=i=e;break;case"0":r===0&&(r=e),i=e;break;default:if(!+n[e])break n;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Fn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function Z(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const H={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:bn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Z(n*100,t),r:Z,s:Fn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function J(n){return n}var K=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Rn(n){var t=n.grouping===void 0||n.thousands===void 0?J:jn(K.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?J:Pn(K.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var l=h.fill,p=h.align,y=h.sign,S=h.symbol,k=h.zero,b=h.width,T=h.comma,w=h.precision,G=h.trim,d=h.type;d==="n"?(T=!0,d="g"):H[d]||(w===void 0&&(w=12),G=!0,d="g"),(k||l==="0"&&p==="=")&&(k=!0,l="0",p="=");var en=S==="$"?e:S==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=S==="$"?r:/[%p]/.test(d)?a:"",O=H[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var N=en,g=on,x,X,j;if(d==="c")g=O(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),G&&(m=$n(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?Q[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,X=m.length;++x<X;)if(j=m.charCodeAt(x),48>j||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z<b?new Array(b-z+1).join(l):"";switch(T&&k&&(m=t(M+m,M.length?b-g.length:1/0),M=""),p){case"<":m=N+m+g+M;break;case"=":m=N+M+m+g;break;case"^":m=M.slice(0,z=M.length>>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return V.toString=function(){return h+""},V}function s(h,l){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(l)/3)))*3,S=Math.pow(10,-y),k=Q[8+y/3];return function(b){return p(S*b)+k}}return{format:o,formatPrefix:s}}var $,tn,rn;En({thousands:",",grouping:[3],currency:["$",""]});function En(n){return $=Rn(n),tn=$.format,rn=$.formatPrefix,$}function Dn(n){return Math.max(0,-v(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function In(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function Ln(n){return function(){return n}}function qn(n){return+n}var W=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Ln(isNaN(t)?NaN:.5)}function Cn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Bn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i<r?(r=q(i,r),f=e(a,f)):(r=q(r,i),f=e(f,a)),function(u){return f(r(u))}}function Gn(n,t,e){var r=Math.min(n.length,t.length)-1,i=new Array(r),f=new Array(r),a=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=q(n[a],n[a+1]),f[a]=e(t[a],t[a+1]);return function(u){var c=dn(n,u,1,r)-1;return f[c](i[c](u))}}function On(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Vn(){var n=W,t=W,e=C,r,i,f,a=A,u,c,o;function s(){var l=Math.min(n.length,t.length);return a!==A&&(a=Cn(n[0],n[l-1])),u=l>2?Gn:Bn,c=o=null,h}function h(l){return l==null||isNaN(l=+l)?f:(c||(c=u(n.map(r),t,e)))(r(a(l)))}return h.invert=function(l){return a(i((o||(o=u(t,n.map(r),I)))(l)))},h.domain=function(l){return arguments.length?(n=Array.from(l,qn),s()):n.slice()},h.range=function(l){return arguments.length?(t=Array.from(l),s()):t.slice()},h.rangeRound=function(l){return t=Array.from(l),e=Sn,s()},h.clamp=function(l){return arguments.length?(a=l?!0:A,s()):a!==A},h.interpolate=function(l){return arguments.length?(e=l,s()):e},h.unknown=function(l){return arguments.length?(f=l,h):f},function(l,p){return r=l,i=p,s()}}function Xn(){return Vn()(A,A)}function Un(n,t,e,r){var i=wn(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=In(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Dn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Yn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Un(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,s=10;for(u<a&&(o=a,a=u,u=o,o=i,i=f,f=o);s-- >0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Zn(){var n=Xn();return n.copy=function(){return On(n,Zn())},cn.apply(n,arguments),Yn(n)}export{On as a,_ as b,Xn as c,Zn as l,wn as t}; diff --git a/assets/lodash-Y39_oLIE.js b/assets/lodash-Y39_oLIE.js new file mode 100644 index 00000000000..68f2d9bc034 --- /dev/null +++ b/assets/lodash-Y39_oLIE.js @@ -0,0 +1 @@ +const a=(e,t,n={})=>{let o,i,s;const r=()=>{o=void 0,i!==void 0&&(e.apply(void 0,i),i=void 0,s=Date.now(),o=setTimeout(r,t))};return function(...c){const l=Date.now();s===void 0&&n.leading===!1&&(s=l);const f=t-(l-(s??0));f<=0||f>t?(o!==void 0&&clearTimeout(o),e.apply(this,c),s=l,o=setTimeout(r,t)):n.trailing!==!1&&(i=c,o===void 0&&(o=setTimeout(r,f)))}},d=e=>typeof e>"u",u=e=>{if(Array.isArray(e))return e.map(u);if(typeof e=="object"&&e!==null){const t={};for(const n in e)t[n]=u(e[n]);return t}else return e},m=e=>e[Math.floor(Math.random()*e.length)],p=(...e)=>{const t={};for(const n of e)for(const o in n)t[o]=n[o];return t};export{u as c,d as i,p as m,m as s,a as t}; diff --git a/assets/main-1J4Kkp7S.js b/assets/main-1J4Kkp7S.js new file mode 100644 index 00000000000..c5cd7c1c901 --- /dev/null +++ b/assets/main-1J4Kkp7S.js @@ -0,0 +1,293 @@ +import{r as fl,j as pl,a as hl,g as gl}from"./index-qegmBwH1.js";function vl(ni,el){for(var Oa=0;Oa<el.length;Oa++){const qo=el[Oa];if(typeof qo!="string"&&!Array.isArray(qo)){for(const Ca in qo)if(Ca!=="default"&&!(Ca in ni)){const ha=Object.getOwnPropertyDescriptor(qo,Ca);ha&&Object.defineProperty(ni,Ca,ha.get?ha:{enumerable:!0,get:()=>qo[Ca]})}}}return Object.freeze(Object.defineProperty(ni,Symbol.toStringTag,{value:"Module"}))}var sl={exports:{}},ll={exports:{}};/*! For license information please see excalidraw.production.min.js.LICENSE.txt */var ul;function bl(){return ul||(ul=1,function(ni,el){(function(Oa,qo){ni.exports=qo(fl,pl,hl)})(self,function(Oa,qo,Ca){return function(){var ha,$o,Jo,oi,Fi={5779:function(Se,Q){Q.N=void 0;var e=/^([^\w]*)(javascript|data|vbscript)/im,D=/&#(\w+)(^\w|;)?/g,E=/&(newline|tab);/gi,y=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,h=/^.+(:|:)/gim,S=[".","/"];Q.N=function(I){var v,n=(v=I||"",v.replace(D,function(H,W){return String.fromCharCode(W)})).replace(E,"").replace(y,"").trim();if(!n)return"about:blank";if(function(H){return S.indexOf(H[0])>-1}(n))return n;var M=n.match(h);if(!M)return n;var Z=M[0];return e.test(Z)?"about:blank":n}},7217:function(Se,Q,e){function D(E,y,{checkForDefaultPrevented:h=!0}={}){return function(S){if(E?.(S),h===!1||!S.defaultPrevented)return y?.(S)}}e.d(Q,{M:function(){return D}})},9335:function(Se,Q,e){e.d(Q,{F:function(){return E},e:function(){return y}});var D=e(9787);function E(...h){return S=>h.forEach(I=>function(v,n){typeof v=="function"?v(n):v!=null&&(v.current=n)}(I,S))}function y(...h){return(0,D.useCallback)(E(...h),h)}},1267:function(Se,Q,e){e.d(Q,{b:function(){return E}});var D=e(9787);function E(h,S=[]){let I=[];const v=()=>{const n=I.map(M=>(0,D.createContext)(M));return function(M){const Z=M?.[h]||n;return(0,D.useMemo)(()=>({[`__scope${h}`]:{...M,[h]:Z}}),[M,Z])}};return v.scopeName=h,[function(n,M){const Z=(0,D.createContext)(M),H=I.length;function W(u){const{scope:U,children:le,...de}=u,he=U?.[h][H]||Z,pe=(0,D.useMemo)(()=>de,Object.values(de));return(0,D.createElement)(he.Provider,{value:pe},le)}return I=[...I,M],W.displayName=n+"Provider",[W,function(u,U){const le=U?.[h][H]||Z,de=(0,D.useContext)(le);if(de)return de;if(M!==void 0)return M;throw new Error(`\`${u}\` must be used within \`${n}\``)}]},y(v,...S)]}function y(...h){const S=h[0];if(h.length===1)return S;const I=()=>{const v=h.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(n){const M=v.reduce((Z,{useScope:H,scopeName:W})=>({...Z,...H(n)[`__scope${W}`]}),{});return(0,D.useMemo)(()=>({[`__scope${S.scopeName}`]:M}),[M])}};return I.scopeName=S.scopeName,I}},5622:function(Se,Q,e){e.d(Q,{M:function(){return S}});var D=e(9787),E=e(3348);const y=D.useId||(()=>{});let h=0;function S(I){const[v,n]=D.useState(y());return(0,E.b)(()=>{I||n(M=>M??String(h++))},[I]),I||(v?`radix-${v}`:"")}},1483:function(Se,Q,e){e.d(Q,{z:function(){return S}});var D=e(9787),E=e(5156),y=e(9335),h=e(3348);const S=v=>{const{present:n,children:M}=v,Z=function(u){const[U,le]=(0,D.useState)(),de=(0,D.useRef)({}),he=(0,D.useRef)(u),pe=(0,D.useRef)("none"),oe=u?"mounted":"unmounted",[P,$]=function(b,R){return(0,D.useReducer)((_,g)=>{const O=R[_][g];return O??_},b)}(oe,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,D.useEffect)(()=>{const b=I(de.current);pe.current=P==="mounted"?b:"none"},[P]),(0,h.b)(()=>{const b=de.current,R=he.current;if(R!==u){const _=pe.current,g=I(b);u?$("MOUNT"):g==="none"||b?.display==="none"?$("UNMOUNT"):$(R&&_!==g?"ANIMATION_OUT":"UNMOUNT"),he.current=u}},[u,$]),(0,h.b)(()=>{if(U){const b=_=>{const g=I(de.current).includes(_.animationName);_.target===U&&g&&(0,E.flushSync)(()=>$("ANIMATION_END"))},R=_=>{_.target===U&&(pe.current=I(de.current))};return U.addEventListener("animationstart",R),U.addEventListener("animationcancel",b),U.addEventListener("animationend",b),()=>{U.removeEventListener("animationstart",R),U.removeEventListener("animationcancel",b),U.removeEventListener("animationend",b)}}$("ANIMATION_END")},[U,$]),{isPresent:["mounted","unmountSuspended"].includes(P),ref:(0,D.useCallback)(b=>{b&&(de.current=getComputedStyle(b)),le(b)},[])}}(n),H=typeof M=="function"?M({present:Z.isPresent}):D.Children.only(M),W=(0,y.e)(Z.ref,H.ref);return typeof M=="function"||Z.isPresent?(0,D.cloneElement)(H,{ref:W}):null};function I(v){return v?.animationName||"none"}S.displayName="Presence"},3119:function(Se,Q,e){e.d(Q,{WV:function(){return S},jH:function(){return I}});var D=e(11),E=e(9787),y=e(5156),h=e(4801);const S=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((v,n)=>{const M=(0,E.forwardRef)((Z,H)=>{const{asChild:W,...u}=Z,U=W?h.g7:n;return(0,E.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,E.createElement)(U,(0,D.Z)({},u,{ref:H}))});return M.displayName=`Primitive.${n}`,{...v,[n]:M}},{});function I(v,n){v&&(0,y.flushSync)(()=>v.dispatchEvent(n))}},4801:function(Se,Q,e){e.d(Q,{g7:function(){return h}});var D=e(11),E=e(9787),y=e(9335);const h=(0,E.forwardRef)((M,Z)=>{const{children:H,...W}=M,u=E.Children.toArray(H),U=u.find(v);if(U){const le=U.props.children,de=u.map(he=>he===U?E.Children.count(le)>1?E.Children.only(null):(0,E.isValidElement)(le)?le.props.children:null:he);return(0,E.createElement)(S,(0,D.Z)({},W,{ref:Z}),(0,E.isValidElement)(le)?(0,E.cloneElement)(le,void 0,de):null)}return(0,E.createElement)(S,(0,D.Z)({},W,{ref:Z}),H)});h.displayName="Slot";const S=(0,E.forwardRef)((M,Z)=>{const{children:H,...W}=M;return(0,E.isValidElement)(H)?(0,E.cloneElement)(H,{...n(W,H.props),ref:(0,y.F)(Z,H.ref)}):E.Children.count(H)>1?E.Children.only(null):null});S.displayName="SlotClone";const I=({children:M})=>(0,E.createElement)(E.Fragment,null,M);function v(M){return(0,E.isValidElement)(M)&&M.type===I}function n(M,Z){const H={...Z};for(const W in Z){const u=M[W],U=Z[W];/^on[A-Z]/.test(W)?u&&U?H[W]=(...le)=>{U(...le),u(...le)}:u&&(H[W]=u):W==="style"?H[W]={...u,...U}:W==="className"&&(H[W]=[u,U].filter(Boolean).join(" "))}return{...M,...H}}},3060:function(Se,Q,e){e.d(Q,{W:function(){return E}});var D=e(9787);function E(y){const h=(0,D.useRef)(y);return(0,D.useEffect)(()=>{h.current=y}),(0,D.useMemo)(()=>(...S)=>{var I;return(I=h.current)===null||I===void 0?void 0:I.call(h,...S)},[])}},2673:function(Se,Q,e){e.d(Q,{T:function(){return y}});var D=e(9787),E=e(3060);function y({prop:h,defaultProp:S,onChange:I=()=>{}}){const[v,n]=function({defaultProp:W,onChange:u}){const U=(0,D.useState)(W),[le]=U,de=(0,D.useRef)(le),he=(0,E.W)(u);return(0,D.useEffect)(()=>{de.current!==le&&(he(le),de.current=le)},[le,de,he]),U}({defaultProp:S,onChange:I}),M=h!==void 0,Z=M?h:v,H=(0,E.W)(I);return[Z,(0,D.useCallback)(W=>{if(M){const u=W,U=typeof W=="function"?u(h):W;U!==h&&H(U)}else n(W)},[M,h,n,H])]}},3348:function(Se,Q,e){e.d(Q,{b:function(){return E}});var D=e(9787);const E=globalThis?.document?D.useLayoutEffect:()=>{}},45:function(Se,Q,e){function D(y){var h,S,I="";if(typeof y=="string"||typeof y=="number")I+=y;else if(typeof y=="object")if(Array.isArray(y))for(h=0;h<y.length;h++)y[h]&&(S=D(y[h]))&&(I&&(I+=" "),I+=S);else for(h in y)y[h]&&(I&&(I+=" "),I+=h);return I}function E(){for(var y,h,S=0,I="";S<arguments.length;)(y=arguments[S++])&&(h=D(y))&&(I&&(I+=" "),I+=h);return I}e.d(Q,{Z:function(){return E}})},6233:function(Se,Q){var e;e=function(D){D.version="0.3.0";var E=function(){for(var S=0,I=new Array(256),v=0;v!=256;++v)S=1&(S=1&(S=1&(S=1&(S=1&(S=1&(S=1&(S=1&(S=v)?-306674912^S>>>1:S>>>1)?-306674912^S>>>1:S>>>1)?-306674912^S>>>1:S>>>1)?-306674912^S>>>1:S>>>1)?-306674912^S>>>1:S>>>1)?-306674912^S>>>1:S>>>1)?-306674912^S>>>1:S>>>1)?-306674912^S>>>1:S>>>1,I[v]=S;return typeof Int32Array<"u"?new Int32Array(I):I}(),y=typeof Buffer<"u";function h(S){for(var I=-1,v=0,n=S.length-7;v<n;)I=(I=(I=(I=(I=(I=(I=(I=I>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])];for(;v<n+7;)I=I>>>8^E[255&(I^S[v++])];return-1^I}D.table=E,D.bstr=function(S){if(S.length>32768&&y)return h(new Buffer(S));for(var I=-1,v=S.length-1,n=0;n<v;)I=E[255&(I^S.charCodeAt(n++))]^I>>>8,I=E[255&(I^S.charCodeAt(n++))]^I>>>8;return n===v&&(I=I>>>8^E[255&(I^S.charCodeAt(n))]),-1^I},D.buf=function(S){if(S.length>1e4)return h(S);for(var I=-1,v=0,n=S.length-3;v<n;)I=(I=(I=(I=I>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])];for(;v<n+3;)I=I>>>8^E[255&(I^S[v++])];return-1^I},D.str=function(S){for(var I,v,n=-1,M=0,Z=S.length;M<Z;)(I=S.charCodeAt(M++))<128?n=n>>>8^E[255&(n^I)]:I<2048?n=(n=n>>>8^E[255&(n^(192|I>>6&31))])>>>8^E[255&(n^(128|63&I))]:I>=55296&&I<57344?(I=64+(1023&I),v=1023&S.charCodeAt(M++),n=(n=(n=(n=n>>>8^E[255&(n^(240|I>>8&7))])>>>8^E[255&(n^(128|I>>2&63))])>>>8^E[255&(n^(128|v>>6&15|3&I))])>>>8^E[255&(n^(128|63&v))]):n=(n=(n=n>>>8^E[255&(n^(224|I>>12&15))])>>>8^E[255&(n^(128|I>>6&63))])>>>8^E[255&(n^(128|63&I))];return-1^n}},e(typeof DO_NOT_EXPORT_CRC>"u"?Q:{})},200:function(Se,Q,e){var D="Expected a function",E=/^\s+|\s+$/g,y=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,S=/^0o[0-7]+$/i,I=parseInt,v=typeof e.g=="object"&&e.g&&e.g.Object===Object&&e.g,n=typeof self=="object"&&self&&self.Object===Object&&self,M=v||n||Function("return this")(),Z=Object.prototype.toString,H=Math.max,W=Math.min,u=function(){return M.Date.now()};function U(he,pe,oe){var P,$,b,R,_,g,O=0,s=!1,f=!1,t=!0;if(typeof he!="function")throw new TypeError(D);function w(j){var k=P,x=$;return P=$=void 0,O=j,R=he.apply(x,k)}function l(j){return O=j,_=setTimeout(c,pe),s?w(j):R}function a(j){var k=j-g;return g===void 0||k>=pe||k<0||f&&j-O>=b}function c(){var j=u();if(a(j))return m(j);_=setTimeout(c,function(k){var x=pe-(k-g);return f?W(x,b-(k-O)):x}(j))}function m(j){return _=void 0,t&&P?w(j):(P=$=void 0,R)}function z(){var j=u(),k=a(j);if(P=arguments,$=this,g=j,k){if(_===void 0)return l(g);if(f)return _=setTimeout(c,pe),w(g)}return _===void 0&&(_=setTimeout(c,pe)),R}return pe=de(pe)||0,le(oe)&&(s=!!oe.leading,b=(f="maxWait"in oe)?H(de(oe.maxWait)||0,pe):b,t="trailing"in oe?!!oe.trailing:t),z.cancel=function(){_!==void 0&&clearTimeout(_),O=0,P=g=$=_=void 0},z.flush=function(){return _===void 0?R:m(u())},z}function le(he){var pe=typeof he;return!!he&&(pe=="object"||pe=="function")}function de(he){if(typeof he=="number")return he;if(function(P){return typeof P=="symbol"||function($){return!!$&&typeof $=="object"}(P)&&Z.call(P)=="[object Symbol]"}(he))return NaN;if(le(he)){var pe=typeof he.valueOf=="function"?he.valueOf():he;he=le(pe)?pe+"":pe}if(typeof he!="string")return he===0?he:+he;he=he.replace(E,"");var oe=h.test(he);return oe||S.test(he)?I(he.slice(2),oe?2:8):y.test(he)?NaN:+he}Se.exports=function(he,pe,oe){var P=!0,$=!0;if(typeof he!="function")throw new TypeError(D);return le(oe)&&(P="leading"in oe?!!oe.leading:P,$="trailing"in oe?!!oe.trailing:$),U(he,pe,{leading:P,maxWait:pe,trailing:$})}},2744:function(Se,Q,e){var D={};(0,e(9187).assign)(D,e(4395),e(578),e(2684)),Se.exports=D},4395:function(Se,Q,e){var D=e(6193),E=e(9187),y=e(8592),h=e(5604),S=e(249),I=Object.prototype.toString;function v(M){if(!(this instanceof v))return new v(M);this.options=E.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},M||{});var Z=this.options;Z.raw&&Z.windowBits>0?Z.windowBits=-Z.windowBits:Z.gzip&&Z.windowBits>0&&Z.windowBits<16&&(Z.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new S,this.strm.avail_out=0;var H=D.deflateInit2(this.strm,Z.level,Z.method,Z.windowBits,Z.memLevel,Z.strategy);if(H!==0)throw new Error(h[H]);if(Z.header&&D.deflateSetHeader(this.strm,Z.header),Z.dictionary){var W;if(W=typeof Z.dictionary=="string"?y.string2buf(Z.dictionary):I.call(Z.dictionary)==="[object ArrayBuffer]"?new Uint8Array(Z.dictionary):Z.dictionary,(H=D.deflateSetDictionary(this.strm,W))!==0)throw new Error(h[H]);this._dict_set=!0}}function n(M,Z){var H=new v(Z);if(H.push(M,!0),H.err)throw H.msg||h[H.err];return H.result}v.prototype.push=function(M,Z){var H,W,u=this.strm,U=this.options.chunkSize;if(this.ended)return!1;W=Z===~~Z?Z:Z===!0?4:0,typeof M=="string"?u.input=y.string2buf(M):I.call(M)==="[object ArrayBuffer]"?u.input=new Uint8Array(M):u.input=M,u.next_in=0,u.avail_in=u.input.length;do{if(u.avail_out===0&&(u.output=new E.Buf8(U),u.next_out=0,u.avail_out=U),(H=D.deflate(u,W))!==1&&H!==0)return this.onEnd(H),this.ended=!0,!1;u.avail_out!==0&&(u.avail_in!==0||W!==4&&W!==2)||(this.options.to==="string"?this.onData(y.buf2binstring(E.shrinkBuf(u.output,u.next_out))):this.onData(E.shrinkBuf(u.output,u.next_out)))}while((u.avail_in>0||u.avail_out===0)&&H!==1);return W===4?(H=D.deflateEnd(this.strm),this.onEnd(H),this.ended=!0,H===0):W!==2||(this.onEnd(0),u.avail_out=0,!0)},v.prototype.onData=function(M){this.chunks.push(M)},v.prototype.onEnd=function(M){M===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=E.flattenChunks(this.chunks)),this.chunks=[],this.err=M,this.msg=this.strm.msg},Q.Deflate=v,Q.deflate=n,Q.deflateRaw=function(M,Z){return(Z=Z||{}).raw=!0,n(M,Z)},Q.gzip=function(M,Z){return(Z=Z||{}).gzip=!0,n(M,Z)}},578:function(Se,Q,e){var D=e(7823),E=e(9187),y=e(8592),h=e(2684),S=e(5604),I=e(249),v=e(9968),n=Object.prototype.toString;function M(H){if(!(this instanceof M))return new M(H);this.options=E.assign({chunkSize:16384,windowBits:0,to:""},H||{});var W=this.options;W.raw&&W.windowBits>=0&&W.windowBits<16&&(W.windowBits=-W.windowBits,W.windowBits===0&&(W.windowBits=-15)),!(W.windowBits>=0&&W.windowBits<16)||H&&H.windowBits||(W.windowBits+=32),W.windowBits>15&&W.windowBits<48&&!(15&W.windowBits)&&(W.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new I,this.strm.avail_out=0;var u=D.inflateInit2(this.strm,W.windowBits);if(u!==h.Z_OK)throw new Error(S[u]);if(this.header=new v,D.inflateGetHeader(this.strm,this.header),W.dictionary&&(typeof W.dictionary=="string"?W.dictionary=y.string2buf(W.dictionary):n.call(W.dictionary)==="[object ArrayBuffer]"&&(W.dictionary=new Uint8Array(W.dictionary)),W.raw&&(u=D.inflateSetDictionary(this.strm,W.dictionary))!==h.Z_OK))throw new Error(S[u])}function Z(H,W){var u=new M(W);if(u.push(H,!0),u.err)throw u.msg||S[u.err];return u.result}M.prototype.push=function(H,W){var u,U,le,de,he,pe=this.strm,oe=this.options.chunkSize,P=this.options.dictionary,$=!1;if(this.ended)return!1;U=W===~~W?W:W===!0?h.Z_FINISH:h.Z_NO_FLUSH,typeof H=="string"?pe.input=y.binstring2buf(H):n.call(H)==="[object ArrayBuffer]"?pe.input=new Uint8Array(H):pe.input=H,pe.next_in=0,pe.avail_in=pe.input.length;do{if(pe.avail_out===0&&(pe.output=new E.Buf8(oe),pe.next_out=0,pe.avail_out=oe),(u=D.inflate(pe,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&P&&(u=D.inflateSetDictionary(this.strm,P)),u===h.Z_BUF_ERROR&&$===!0&&(u=h.Z_OK,$=!1),u!==h.Z_STREAM_END&&u!==h.Z_OK)return this.onEnd(u),this.ended=!0,!1;pe.next_out&&(pe.avail_out!==0&&u!==h.Z_STREAM_END&&(pe.avail_in!==0||U!==h.Z_FINISH&&U!==h.Z_SYNC_FLUSH)||(this.options.to==="string"?(le=y.utf8border(pe.output,pe.next_out),de=pe.next_out-le,he=y.buf2string(pe.output,le),pe.next_out=de,pe.avail_out=oe-de,de&&E.arraySet(pe.output,pe.output,le,de,0),this.onData(he)):this.onData(E.shrinkBuf(pe.output,pe.next_out)))),pe.avail_in===0&&pe.avail_out===0&&($=!0)}while((pe.avail_in>0||pe.avail_out===0)&&u!==h.Z_STREAM_END);return u===h.Z_STREAM_END&&(U=h.Z_FINISH),U===h.Z_FINISH?(u=D.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,u===h.Z_OK):U!==h.Z_SYNC_FLUSH||(this.onEnd(h.Z_OK),pe.avail_out=0,!0)},M.prototype.onData=function(H){this.chunks.push(H)},M.prototype.onEnd=function(H){H===h.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=E.flattenChunks(this.chunks)),this.chunks=[],this.err=H,this.msg=this.strm.msg},Q.Inflate=M,Q.inflate=Z,Q.inflateRaw=function(H,W){return(W=W||{}).raw=!0,Z(H,W)},Q.ungzip=Z},9187:function(Se,Q){var e=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function D(h,S){return Object.prototype.hasOwnProperty.call(h,S)}Q.assign=function(h){for(var S=Array.prototype.slice.call(arguments,1);S.length;){var I=S.shift();if(I){if(typeof I!="object")throw new TypeError(I+"must be non-object");for(var v in I)D(I,v)&&(h[v]=I[v])}}return h},Q.shrinkBuf=function(h,S){return h.length===S?h:h.subarray?h.subarray(0,S):(h.length=S,h)};var E={arraySet:function(h,S,I,v,n){if(S.subarray&&h.subarray)h.set(S.subarray(I,I+v),n);else for(var M=0;M<v;M++)h[n+M]=S[I+M]},flattenChunks:function(h){var S,I,v,n,M,Z;for(v=0,S=0,I=h.length;S<I;S++)v+=h[S].length;for(Z=new Uint8Array(v),n=0,S=0,I=h.length;S<I;S++)M=h[S],Z.set(M,n),n+=M.length;return Z}},y={arraySet:function(h,S,I,v,n){for(var M=0;M<v;M++)h[n+M]=S[I+M]},flattenChunks:function(h){return[].concat.apply([],h)}};Q.setTyped=function(h){h?(Q.Buf8=Uint8Array,Q.Buf16=Uint16Array,Q.Buf32=Int32Array,Q.assign(Q,E)):(Q.Buf8=Array,Q.Buf16=Array,Q.Buf32=Array,Q.assign(Q,y))},Q.setTyped(e)},8592:function(Se,Q,e){var D=e(9187),E=!0,y=!0;try{String.fromCharCode.apply(null,[0])}catch{E=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{y=!1}for(var h=new D.Buf8(256),S=0;S<256;S++)h[S]=S>=252?6:S>=248?5:S>=240?4:S>=224?3:S>=192?2:1;function I(v,n){if(n<65534&&(v.subarray&&y||!v.subarray&&E))return String.fromCharCode.apply(null,D.shrinkBuf(v,n));for(var M="",Z=0;Z<n;Z++)M+=String.fromCharCode(v[Z]);return M}h[254]=h[254]=1,Q.string2buf=function(v){var n,M,Z,H,W,u=v.length,U=0;for(H=0;H<u;H++)(64512&(M=v.charCodeAt(H)))==55296&&H+1<u&&(64512&(Z=v.charCodeAt(H+1)))==56320&&(M=65536+(M-55296<<10)+(Z-56320),H++),U+=M<128?1:M<2048?2:M<65536?3:4;for(n=new D.Buf8(U),W=0,H=0;W<U;H++)(64512&(M=v.charCodeAt(H)))==55296&&H+1<u&&(64512&(Z=v.charCodeAt(H+1)))==56320&&(M=65536+(M-55296<<10)+(Z-56320),H++),M<128?n[W++]=M:M<2048?(n[W++]=192|M>>>6,n[W++]=128|63&M):M<65536?(n[W++]=224|M>>>12,n[W++]=128|M>>>6&63,n[W++]=128|63&M):(n[W++]=240|M>>>18,n[W++]=128|M>>>12&63,n[W++]=128|M>>>6&63,n[W++]=128|63&M);return n},Q.buf2binstring=function(v){return I(v,v.length)},Q.binstring2buf=function(v){for(var n=new D.Buf8(v.length),M=0,Z=n.length;M<Z;M++)n[M]=v.charCodeAt(M);return n},Q.buf2string=function(v,n){var M,Z,H,W,u=n||v.length,U=new Array(2*u);for(Z=0,M=0;M<u;)if((H=v[M++])<128)U[Z++]=H;else if((W=h[H])>4)U[Z++]=65533,M+=W-1;else{for(H&=W===2?31:W===3?15:7;W>1&&M<u;)H=H<<6|63&v[M++],W--;W>1?U[Z++]=65533:H<65536?U[Z++]=H:(H-=65536,U[Z++]=55296|H>>10&1023,U[Z++]=56320|1023&H)}return I(U,Z)},Q.utf8border=function(v,n){var M;for((n=n||v.length)>v.length&&(n=v.length),M=n-1;M>=0&&(192&v[M])==128;)M--;return M<0||M===0?n:M+h[v[M]]>n?M:n}},3693:function(Se){Se.exports=function(Q,e,D,E){for(var y=65535&Q|0,h=Q>>>16&65535|0,S=0;D!==0;){D-=S=D>2e3?2e3:D;do h=h+(y=y+e[E++]|0)|0;while(--S);y%=65521,h%=65521}return y|h<<16|0}},2684:function(Se){Se.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},8464:function(Se){var Q=function(){for(var e,D=[],E=0;E<256;E++){e=E;for(var y=0;y<8;y++)e=1&e?3988292384^e>>>1:e>>>1;D[E]=e}return D}();Se.exports=function(e,D,E,y){var h=Q,S=y+E;e^=-1;for(var I=y;I<S;I++)e=e>>>8^h[255&(e^D[I])];return-1^e}},6193:function(Se,Q,e){var D,E=e(9187),y=e(8676),h=e(3693),S=e(8464),I=e(5604),v=-2,n=258,M=262,Z=103,H=113,W=666;function u(t,w){return t.msg=I[w],w}function U(t){return(t<<1)-(t>4?9:0)}function le(t){for(var w=t.length;--w>=0;)t[w]=0}function de(t){var w=t.state,l=w.pending;l>t.avail_out&&(l=t.avail_out),l!==0&&(E.arraySet(t.output,w.pending_buf,w.pending_out,l,t.next_out),t.next_out+=l,w.pending_out+=l,t.total_out+=l,t.avail_out-=l,w.pending-=l,w.pending===0&&(w.pending_out=0))}function he(t,w){y._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,w),t.block_start=t.strstart,de(t.strm)}function pe(t,w){t.pending_buf[t.pending++]=w}function oe(t,w){t.pending_buf[t.pending++]=w>>>8&255,t.pending_buf[t.pending++]=255&w}function P(t,w){var l,a,c=t.max_chain_length,m=t.strstart,z=t.prev_length,j=t.nice_match,k=t.strstart>t.w_size-M?t.strstart-(t.w_size-M):0,x=t.window,N=t.w_mask,G=t.prev,ie=t.strstart+n,V=x[m+z-1],ce=x[m+z];t.prev_length>=t.good_match&&(c>>=2),j>t.lookahead&&(j=t.lookahead);do if(x[(l=w)+z]===ce&&x[l+z-1]===V&&x[l]===x[m]&&x[++l]===x[m+1]){m+=2,l++;do;while(x[++m]===x[++l]&&x[++m]===x[++l]&&x[++m]===x[++l]&&x[++m]===x[++l]&&x[++m]===x[++l]&&x[++m]===x[++l]&&x[++m]===x[++l]&&x[++m]===x[++l]&&m<ie);if(a=n-(ie-m),m=ie-n,a>z){if(t.match_start=w,z=a,a>=j)break;V=x[m+z-1],ce=x[m+z]}}while((w=G[w&N])>k&&--c!=0);return z<=t.lookahead?z:t.lookahead}function $(t){var w,l,a,c,m,z,j,k,x,N,G=t.w_size;do{if(c=t.window_size-t.lookahead-t.strstart,t.strstart>=G+(G-M)){E.arraySet(t.window,t.window,G,G,0),t.match_start-=G,t.strstart-=G,t.block_start-=G,w=l=t.hash_size;do a=t.head[--w],t.head[w]=a>=G?a-G:0;while(--l);w=l=G;do a=t.prev[--w],t.prev[w]=a>=G?a-G:0;while(--l);c+=G}if(t.strm.avail_in===0)break;if(z=t.strm,j=t.window,k=t.strstart+t.lookahead,x=c,N=void 0,(N=z.avail_in)>x&&(N=x),l=N===0?0:(z.avail_in-=N,E.arraySet(j,z.input,z.next_in,N,k),z.state.wrap===1?z.adler=h(z.adler,j,N,k):z.state.wrap===2&&(z.adler=S(z.adler,j,N,k)),z.next_in+=N,z.total_in+=N,N),t.lookahead+=l,t.lookahead+t.insert>=3)for(m=t.strstart-t.insert,t.ins_h=t.window[m],t.ins_h=(t.ins_h<<t.hash_shift^t.window[m+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[m+3-1])&t.hash_mask,t.prev[m&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=m,m++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<M&&t.strm.avail_in!==0)}function b(t,w){for(var l,a;;){if(t.lookahead<M){if($(t),t.lookahead<M&&w===0)return 1;if(t.lookahead===0)break}if(l=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,l=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),l!==0&&t.strstart-l<=t.w_size-M&&(t.match_length=P(t,l)),t.match_length>=3)if(a=y._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,l=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!=0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else a=y._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(a&&(he(t,!1),t.strm.avail_out===0))return 1}return t.insert=t.strstart<2?t.strstart:2,w===4?(he(t,!0),t.strm.avail_out===0?3:4):t.last_lit&&(he(t,!1),t.strm.avail_out===0)?1:2}function R(t,w){for(var l,a,c;;){if(t.lookahead<M){if($(t),t.lookahead<M&&w===0)return 1;if(t.lookahead===0)break}if(l=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,l=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,l!==0&&t.prev_length<t.max_lazy_match&&t.strstart-l<=t.w_size-M&&(t.match_length=P(t,l),t.match_length<=5&&(t.strategy===1||t.match_length===3&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){c=t.strstart+t.lookahead-3,a=y._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=c&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,l=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!=0);if(t.match_available=0,t.match_length=2,t.strstart++,a&&(he(t,!1),t.strm.avail_out===0))return 1}else if(t.match_available){if((a=y._tr_tally(t,0,t.window[t.strstart-1]))&&he(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(a=y._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,w===4?(he(t,!0),t.strm.avail_out===0?3:4):t.last_lit&&(he(t,!1),t.strm.avail_out===0)?1:2}function _(t,w,l,a,c){this.good_length=t,this.max_lazy=w,this.nice_length=l,this.max_chain=a,this.func=c}function g(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new E.Buf16(1146),this.dyn_dtree=new E.Buf16(122),this.bl_tree=new E.Buf16(78),le(this.dyn_ltree),le(this.dyn_dtree),le(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new E.Buf16(16),this.heap=new E.Buf16(573),le(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new E.Buf16(573),le(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function O(t){var w;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(w=t.state).pending=0,w.pending_out=0,w.wrap<0&&(w.wrap=-w.wrap),w.status=w.wrap?42:H,t.adler=w.wrap===2?0:1,w.last_flush=0,y._tr_init(w),0):u(t,v)}function s(t){var w,l=O(t);return l===0&&((w=t.state).window_size=2*w.w_size,le(w.head),w.max_lazy_match=D[w.level].max_lazy,w.good_match=D[w.level].good_length,w.nice_match=D[w.level].nice_length,w.max_chain_length=D[w.level].max_chain,w.strstart=0,w.block_start=0,w.lookahead=0,w.insert=0,w.match_length=w.prev_length=2,w.match_available=0,w.ins_h=0),l}function f(t,w,l,a,c,m){if(!t)return v;var z=1;if(w===-1&&(w=6),a<0?(z=0,a=-a):a>15&&(z=2,a-=16),c<1||c>9||l!==8||a<8||a>15||w<0||w>9||m<0||m>4)return u(t,v);a===8&&(a=9);var j=new g;return t.state=j,j.strm=t,j.wrap=z,j.gzhead=null,j.w_bits=a,j.w_size=1<<j.w_bits,j.w_mask=j.w_size-1,j.hash_bits=c+7,j.hash_size=1<<j.hash_bits,j.hash_mask=j.hash_size-1,j.hash_shift=~~((j.hash_bits+3-1)/3),j.window=new E.Buf8(2*j.w_size),j.head=new E.Buf16(j.hash_size),j.prev=new E.Buf16(j.w_size),j.lit_bufsize=1<<c+6,j.pending_buf_size=4*j.lit_bufsize,j.pending_buf=new E.Buf8(j.pending_buf_size),j.d_buf=1*j.lit_bufsize,j.l_buf=3*j.lit_bufsize,j.level=w,j.strategy=m,j.method=l,s(t)}D=[new _(0,0,0,0,function(t,w){var l=65535;for(l>t.pending_buf_size-5&&(l=t.pending_buf_size-5);;){if(t.lookahead<=1){if($(t),t.lookahead===0&&w===0)return 1;if(t.lookahead===0)break}t.strstart+=t.lookahead,t.lookahead=0;var a=t.block_start+l;if((t.strstart===0||t.strstart>=a)&&(t.lookahead=t.strstart-a,t.strstart=a,he(t,!1),t.strm.avail_out===0)||t.strstart-t.block_start>=t.w_size-M&&(he(t,!1),t.strm.avail_out===0))return 1}return t.insert=0,w===4?(he(t,!0),t.strm.avail_out===0?3:4):(t.strstart>t.block_start&&(he(t,!1),t.strm.avail_out),1)}),new _(4,4,8,4,b),new _(4,5,16,8,b),new _(4,6,32,32,b),new _(4,4,16,16,R),new _(8,16,32,32,R),new _(8,16,128,128,R),new _(8,32,128,256,R),new _(32,128,258,1024,R),new _(32,258,258,4096,R)],Q.deflateInit=function(t,w){return f(t,w,8,15,8,0)},Q.deflateInit2=f,Q.deflateReset=s,Q.deflateResetKeep=O,Q.deflateSetHeader=function(t,w){return t&&t.state?t.state.wrap!==2?v:(t.state.gzhead=w,0):v},Q.deflate=function(t,w){var l,a,c,m;if(!t||!t.state||w>5||w<0)return t?u(t,v):v;if(a=t.state,!t.output||!t.input&&t.avail_in!==0||a.status===W&&w!==4)return u(t,t.avail_out===0?-5:v);if(a.strm=t,l=a.last_flush,a.last_flush=w,a.status===42)if(a.wrap===2)t.adler=0,pe(a,31),pe(a,139),pe(a,8),a.gzhead?(pe(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),pe(a,255&a.gzhead.time),pe(a,a.gzhead.time>>8&255),pe(a,a.gzhead.time>>16&255),pe(a,a.gzhead.time>>24&255),pe(a,a.level===9?2:a.strategy>=2||a.level<2?4:0),pe(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(pe(a,255&a.gzhead.extra.length),pe(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=S(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69):(pe(a,0),pe(a,0),pe(a,0),pe(a,0),pe(a,0),pe(a,a.level===9?2:a.strategy>=2||a.level<2?4:0),pe(a,3),a.status=H);else{var z=8+(a.w_bits-8<<4)<<8;z|=(a.strategy>=2||a.level<2?0:a.level<6?1:a.level===6?2:3)<<6,a.strstart!==0&&(z|=32),z+=31-z%31,a.status=H,oe(a,z),a.strstart!==0&&(oe(a,t.adler>>>16),oe(a,65535&t.adler)),t.adler=1}if(a.status===69)if(a.gzhead.extra){for(c=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>c&&(t.adler=S(t.adler,a.pending_buf,a.pending-c,c)),de(t),c=a.pending,a.pending!==a.pending_buf_size));)pe(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>c&&(t.adler=S(t.adler,a.pending_buf,a.pending-c,c)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=73)}else a.status=73;if(a.status===73)if(a.gzhead.name){c=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>c&&(t.adler=S(t.adler,a.pending_buf,a.pending-c,c)),de(t),c=a.pending,a.pending===a.pending_buf_size)){m=1;break}m=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,pe(a,m)}while(m!==0);a.gzhead.hcrc&&a.pending>c&&(t.adler=S(t.adler,a.pending_buf,a.pending-c,c)),m===0&&(a.gzindex=0,a.status=91)}else a.status=91;if(a.status===91)if(a.gzhead.comment){c=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>c&&(t.adler=S(t.adler,a.pending_buf,a.pending-c,c)),de(t),c=a.pending,a.pending===a.pending_buf_size)){m=1;break}m=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,pe(a,m)}while(m!==0);a.gzhead.hcrc&&a.pending>c&&(t.adler=S(t.adler,a.pending_buf,a.pending-c,c)),m===0&&(a.status=Z)}else a.status=Z;if(a.status===Z&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&de(t),a.pending+2<=a.pending_buf_size&&(pe(a,255&t.adler),pe(a,t.adler>>8&255),t.adler=0,a.status=H)):a.status=H),a.pending!==0){if(de(t),t.avail_out===0)return a.last_flush=-1,0}else if(t.avail_in===0&&U(w)<=U(l)&&w!==4)return u(t,-5);if(a.status===W&&t.avail_in!==0)return u(t,-5);if(t.avail_in!==0||a.lookahead!==0||w!==0&&a.status!==W){var j=a.strategy===2?function(k,x){for(var N;;){if(k.lookahead===0&&($(k),k.lookahead===0)){if(x===0)return 1;break}if(k.match_length=0,N=y._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++,N&&(he(k,!1),k.strm.avail_out===0))return 1}return k.insert=0,x===4?(he(k,!0),k.strm.avail_out===0?3:4):k.last_lit&&(he(k,!1),k.strm.avail_out===0)?1:2}(a,w):a.strategy===3?function(k,x){for(var N,G,ie,V,ce=k.window;;){if(k.lookahead<=n){if($(k),k.lookahead<=n&&x===0)return 1;if(k.lookahead===0)break}if(k.match_length=0,k.lookahead>=3&&k.strstart>0&&(G=ce[ie=k.strstart-1])===ce[++ie]&&G===ce[++ie]&&G===ce[++ie]){V=k.strstart+n;do;while(G===ce[++ie]&&G===ce[++ie]&&G===ce[++ie]&&G===ce[++ie]&&G===ce[++ie]&&G===ce[++ie]&&G===ce[++ie]&&G===ce[++ie]&&ie<V);k.match_length=n-(V-ie),k.match_length>k.lookahead&&(k.match_length=k.lookahead)}if(k.match_length>=3?(N=y._tr_tally(k,1,k.match_length-3),k.lookahead-=k.match_length,k.strstart+=k.match_length,k.match_length=0):(N=y._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++),N&&(he(k,!1),k.strm.avail_out===0))return 1}return k.insert=0,x===4?(he(k,!0),k.strm.avail_out===0?3:4):k.last_lit&&(he(k,!1),k.strm.avail_out===0)?1:2}(a,w):D[a.level].func(a,w);if(j!==3&&j!==4||(a.status=W),j===1||j===3)return t.avail_out===0&&(a.last_flush=-1),0;if(j===2&&(w===1?y._tr_align(a):w!==5&&(y._tr_stored_block(a,0,0,!1),w===3&&(le(a.head),a.lookahead===0&&(a.strstart=0,a.block_start=0,a.insert=0))),de(t),t.avail_out===0))return a.last_flush=-1,0}return w!==4?0:a.wrap<=0?1:(a.wrap===2?(pe(a,255&t.adler),pe(a,t.adler>>8&255),pe(a,t.adler>>16&255),pe(a,t.adler>>24&255),pe(a,255&t.total_in),pe(a,t.total_in>>8&255),pe(a,t.total_in>>16&255),pe(a,t.total_in>>24&255)):(oe(a,t.adler>>>16),oe(a,65535&t.adler)),de(t),a.wrap>0&&(a.wrap=-a.wrap),a.pending!==0?0:1)},Q.deflateEnd=function(t){var w;return t&&t.state?(w=t.state.status)!==42&&w!==69&&w!==73&&w!==91&&w!==Z&&w!==H&&w!==W?u(t,v):(t.state=null,w===H?u(t,-3):0):v},Q.deflateSetDictionary=function(t,w){var l,a,c,m,z,j,k,x,N=w.length;if(!t||!t.state||(m=(l=t.state).wrap)===2||m===1&&l.status!==42||l.lookahead)return v;for(m===1&&(t.adler=h(t.adler,w,N,0)),l.wrap=0,N>=l.w_size&&(m===0&&(le(l.head),l.strstart=0,l.block_start=0,l.insert=0),x=new E.Buf8(l.w_size),E.arraySet(x,w,N-l.w_size,l.w_size,0),w=x,N=l.w_size),z=t.avail_in,j=t.next_in,k=t.input,t.avail_in=N,t.next_in=0,t.input=w,$(l);l.lookahead>=3;){a=l.strstart,c=l.lookahead-2;do l.ins_h=(l.ins_h<<l.hash_shift^l.window[a+3-1])&l.hash_mask,l.prev[a&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=a,a++;while(--c);l.strstart=a,l.lookahead=2,$(l)}return l.strstart+=l.lookahead,l.block_start=l.strstart,l.insert=l.lookahead,l.lookahead=0,l.match_length=l.prev_length=2,l.match_available=0,t.next_in=j,t.input=k,t.avail_in=z,l.wrap=m,0},Q.deflateInfo="pako deflate (from Nodeca project)"},9968:function(Se){Se.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},9365:function(Se){Se.exports=function(Q,e){var D,E,y,h,S,I,v,n,M,Z,H,W,u,U,le,de,he,pe,oe,P,$,b,R,_,g;D=Q.state,E=Q.next_in,_=Q.input,y=E+(Q.avail_in-5),h=Q.next_out,g=Q.output,S=h-(e-Q.avail_out),I=h+(Q.avail_out-257),v=D.dmax,n=D.wsize,M=D.whave,Z=D.wnext,H=D.window,W=D.hold,u=D.bits,U=D.lencode,le=D.distcode,de=(1<<D.lenbits)-1,he=(1<<D.distbits)-1;e:do{u<15&&(W+=_[E++]<<u,u+=8,W+=_[E++]<<u,u+=8),pe=U[W&de];t:for(;;){if(W>>>=oe=pe>>>24,u-=oe,(oe=pe>>>16&255)===0)g[h++]=65535&pe;else{if(!(16&oe)){if(!(64&oe)){pe=U[(65535&pe)+(W&(1<<oe)-1)];continue t}if(32&oe){D.mode=12;break e}Q.msg="invalid literal/length code",D.mode=30;break e}P=65535&pe,(oe&=15)&&(u<oe&&(W+=_[E++]<<u,u+=8),P+=W&(1<<oe)-1,W>>>=oe,u-=oe),u<15&&(W+=_[E++]<<u,u+=8,W+=_[E++]<<u,u+=8),pe=le[W&he];r:for(;;){if(W>>>=oe=pe>>>24,u-=oe,!(16&(oe=pe>>>16&255))){if(!(64&oe)){pe=le[(65535&pe)+(W&(1<<oe)-1)];continue r}Q.msg="invalid distance code",D.mode=30;break e}if($=65535&pe,u<(oe&=15)&&(W+=_[E++]<<u,(u+=8)<oe&&(W+=_[E++]<<u,u+=8)),($+=W&(1<<oe)-1)>v){Q.msg="invalid distance too far back",D.mode=30;break e}if(W>>>=oe,u-=oe,$>(oe=h-S)){if((oe=$-oe)>M&&D.sane){Q.msg="invalid distance too far back",D.mode=30;break e}if(b=0,R=H,Z===0){if(b+=n-oe,oe<P){P-=oe;do g[h++]=H[b++];while(--oe);b=h-$,R=g}}else if(Z<oe){if(b+=n+Z-oe,(oe-=Z)<P){P-=oe;do g[h++]=H[b++];while(--oe);if(b=0,Z<P){P-=oe=Z;do g[h++]=H[b++];while(--oe);b=h-$,R=g}}}else if(b+=Z-oe,oe<P){P-=oe;do g[h++]=H[b++];while(--oe);b=h-$,R=g}for(;P>2;)g[h++]=R[b++],g[h++]=R[b++],g[h++]=R[b++],P-=3;P&&(g[h++]=R[b++],P>1&&(g[h++]=R[b++]))}else{b=h-$;do g[h++]=g[b++],g[h++]=g[b++],g[h++]=g[b++],P-=3;while(P>2);P&&(g[h++]=g[b++],P>1&&(g[h++]=g[b++]))}break}}break}}while(E<y&&h<I);E-=P=u>>3,W&=(1<<(u-=P<<3))-1,Q.next_in=E,Q.next_out=h,Q.avail_in=E<y?y-E+5:5-(E-y),Q.avail_out=h<I?I-h+257:257-(h-I),D.hold=W,D.bits=u}},7823:function(Se,Q,e){var D=e(9187),E=e(3693),y=e(8464),h=e(9365),S=e(6446),I=-2,v=12,n=30;function M(P){return(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<24)}function Z(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new D.Buf16(320),this.work=new D.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function H(P){var $;return P&&P.state?($=P.state,P.total_in=P.total_out=$.total=0,P.msg="",$.wrap&&(P.adler=1&$.wrap),$.mode=1,$.last=0,$.havedict=0,$.dmax=32768,$.head=null,$.hold=0,$.bits=0,$.lencode=$.lendyn=new D.Buf32(852),$.distcode=$.distdyn=new D.Buf32(592),$.sane=1,$.back=-1,0):I}function W(P){var $;return P&&P.state?(($=P.state).wsize=0,$.whave=0,$.wnext=0,H(P)):I}function u(P,$){var b,R;return P&&P.state?(R=P.state,$<0?(b=0,$=-$):(b=1+($>>4),$<48&&($&=15)),$&&($<8||$>15)?I:(R.window!==null&&R.wbits!==$&&(R.window=null),R.wrap=b,R.wbits=$,W(P))):I}function U(P,$){var b,R;return P?(R=new Z,P.state=R,R.window=null,(b=u(P,$))!==0&&(P.state=null),b):I}var le,de,he=!0;function pe(P){if(he){var $;for(le=new D.Buf32(512),de=new D.Buf32(32),$=0;$<144;)P.lens[$++]=8;for(;$<256;)P.lens[$++]=9;for(;$<280;)P.lens[$++]=7;for(;$<288;)P.lens[$++]=8;for(S(1,P.lens,0,288,le,0,P.work,{bits:9}),$=0;$<32;)P.lens[$++]=5;S(2,P.lens,0,32,de,0,P.work,{bits:5}),he=!1}P.lencode=le,P.lenbits=9,P.distcode=de,P.distbits=5}function oe(P,$,b,R){var _,g=P.state;return g.window===null&&(g.wsize=1<<g.wbits,g.wnext=0,g.whave=0,g.window=new D.Buf8(g.wsize)),R>=g.wsize?(D.arraySet(g.window,$,b-g.wsize,g.wsize,0),g.wnext=0,g.whave=g.wsize):((_=g.wsize-g.wnext)>R&&(_=R),D.arraySet(g.window,$,b-R,_,g.wnext),(R-=_)?(D.arraySet(g.window,$,b-R,R,0),g.wnext=R,g.whave=g.wsize):(g.wnext+=_,g.wnext===g.wsize&&(g.wnext=0),g.whave<g.wsize&&(g.whave+=_))),0}Q.inflateReset=W,Q.inflateReset2=u,Q.inflateResetKeep=H,Q.inflateInit=function(P){return U(P,15)},Q.inflateInit2=U,Q.inflate=function(P,$){var b,R,_,g,O,s,f,t,w,l,a,c,m,z,j,k,x,N,G,ie,V,ce,te,L,re=0,me=new D.Buf8(4),Ce=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!P||!P.state||!P.output||!P.input&&P.avail_in!==0)return I;(b=P.state).mode===v&&(b.mode=13),O=P.next_out,_=P.output,f=P.avail_out,g=P.next_in,R=P.input,s=P.avail_in,t=b.hold,w=b.bits,l=s,a=f,ce=0;e:for(;;)switch(b.mode){case 1:if(b.wrap===0){b.mode=13;break}for(;w<16;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if(2&b.wrap&&t===35615){b.check=0,me[0]=255&t,me[1]=t>>>8&255,b.check=y(b.check,me,2,0),t=0,w=0,b.mode=2;break}if(b.flags=0,b.head&&(b.head.done=!1),!(1&b.wrap)||(((255&t)<<8)+(t>>8))%31){P.msg="incorrect header check",b.mode=n;break}if((15&t)!=8){P.msg="unknown compression method",b.mode=n;break}if(w-=4,V=8+(15&(t>>>=4)),b.wbits===0)b.wbits=V;else if(V>b.wbits){P.msg="invalid window size",b.mode=n;break}b.dmax=1<<V,P.adler=b.check=1,b.mode=512&t?10:v,t=0,w=0;break;case 2:for(;w<16;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if(b.flags=t,(255&b.flags)!=8){P.msg="unknown compression method",b.mode=n;break}if(57344&b.flags){P.msg="unknown header flags set",b.mode=n;break}b.head&&(b.head.text=t>>8&1),512&b.flags&&(me[0]=255&t,me[1]=t>>>8&255,b.check=y(b.check,me,2,0)),t=0,w=0,b.mode=3;case 3:for(;w<32;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}b.head&&(b.head.time=t),512&b.flags&&(me[0]=255&t,me[1]=t>>>8&255,me[2]=t>>>16&255,me[3]=t>>>24&255,b.check=y(b.check,me,4,0)),t=0,w=0,b.mode=4;case 4:for(;w<16;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}b.head&&(b.head.xflags=255&t,b.head.os=t>>8),512&b.flags&&(me[0]=255&t,me[1]=t>>>8&255,b.check=y(b.check,me,2,0)),t=0,w=0,b.mode=5;case 5:if(1024&b.flags){for(;w<16;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}b.length=t,b.head&&(b.head.extra_len=t),512&b.flags&&(me[0]=255&t,me[1]=t>>>8&255,b.check=y(b.check,me,2,0)),t=0,w=0}else b.head&&(b.head.extra=null);b.mode=6;case 6:if(1024&b.flags&&((c=b.length)>s&&(c=s),c&&(b.head&&(V=b.head.extra_len-b.length,b.head.extra||(b.head.extra=new Array(b.head.extra_len)),D.arraySet(b.head.extra,R,g,c,V)),512&b.flags&&(b.check=y(b.check,R,c,g)),s-=c,g+=c,b.length-=c),b.length))break e;b.length=0,b.mode=7;case 7:if(2048&b.flags){if(s===0)break e;c=0;do V=R[g+c++],b.head&&V&&b.length<65536&&(b.head.name+=String.fromCharCode(V));while(V&&c<s);if(512&b.flags&&(b.check=y(b.check,R,c,g)),s-=c,g+=c,V)break e}else b.head&&(b.head.name=null);b.length=0,b.mode=8;case 8:if(4096&b.flags){if(s===0)break e;c=0;do V=R[g+c++],b.head&&V&&b.length<65536&&(b.head.comment+=String.fromCharCode(V));while(V&&c<s);if(512&b.flags&&(b.check=y(b.check,R,c,g)),s-=c,g+=c,V)break e}else b.head&&(b.head.comment=null);b.mode=9;case 9:if(512&b.flags){for(;w<16;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if(t!==(65535&b.check)){P.msg="header crc mismatch",b.mode=n;break}t=0,w=0}b.head&&(b.head.hcrc=b.flags>>9&1,b.head.done=!0),P.adler=b.check=0,b.mode=v;break;case 10:for(;w<32;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}P.adler=b.check=M(t),t=0,w=0,b.mode=11;case 11:if(b.havedict===0)return P.next_out=O,P.avail_out=f,P.next_in=g,P.avail_in=s,b.hold=t,b.bits=w,2;P.adler=b.check=1,b.mode=v;case v:if($===5||$===6)break e;case 13:if(b.last){t>>>=7&w,w-=7&w,b.mode=27;break}for(;w<3;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}switch(b.last=1&t,w-=1,3&(t>>>=1)){case 0:b.mode=14;break;case 1:if(pe(b),b.mode=20,$===6){t>>>=2,w-=2;break e}break;case 2:b.mode=17;break;case 3:P.msg="invalid block type",b.mode=n}t>>>=2,w-=2;break;case 14:for(t>>>=7&w,w-=7&w;w<32;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if((65535&t)!=(t>>>16^65535)){P.msg="invalid stored block lengths",b.mode=n;break}if(b.length=65535&t,t=0,w=0,b.mode=15,$===6)break e;case 15:b.mode=16;case 16:if(c=b.length){if(c>s&&(c=s),c>f&&(c=f),c===0)break e;D.arraySet(_,R,g,c,O),s-=c,g+=c,f-=c,O+=c,b.length-=c;break}b.mode=v;break;case 17:for(;w<14;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if(b.nlen=257+(31&t),t>>>=5,w-=5,b.ndist=1+(31&t),t>>>=5,w-=5,b.ncode=4+(15&t),t>>>=4,w-=4,b.nlen>286||b.ndist>30){P.msg="too many length or distance symbols",b.mode=n;break}b.have=0,b.mode=18;case 18:for(;b.have<b.ncode;){for(;w<3;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}b.lens[Ce[b.have++]]=7&t,t>>>=3,w-=3}for(;b.have<19;)b.lens[Ce[b.have++]]=0;if(b.lencode=b.lendyn,b.lenbits=7,te={bits:b.lenbits},ce=S(0,b.lens,0,19,b.lencode,0,b.work,te),b.lenbits=te.bits,ce){P.msg="invalid code lengths set",b.mode=n;break}b.have=0,b.mode=19;case 19:for(;b.have<b.nlen+b.ndist;){for(;k=(re=b.lencode[t&(1<<b.lenbits)-1])>>>16&255,x=65535&re,!((j=re>>>24)<=w);){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if(x<16)t>>>=j,w-=j,b.lens[b.have++]=x;else{if(x===16){for(L=j+2;w<L;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if(t>>>=j,w-=j,b.have===0){P.msg="invalid bit length repeat",b.mode=n;break}V=b.lens[b.have-1],c=3+(3&t),t>>>=2,w-=2}else if(x===17){for(L=j+3;w<L;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}w-=j,V=0,c=3+(7&(t>>>=j)),t>>>=3,w-=3}else{for(L=j+7;w<L;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}w-=j,V=0,c=11+(127&(t>>>=j)),t>>>=7,w-=7}if(b.have+c>b.nlen+b.ndist){P.msg="invalid bit length repeat",b.mode=n;break}for(;c--;)b.lens[b.have++]=V}}if(b.mode===n)break;if(b.lens[256]===0){P.msg="invalid code -- missing end-of-block",b.mode=n;break}if(b.lenbits=9,te={bits:b.lenbits},ce=S(1,b.lens,0,b.nlen,b.lencode,0,b.work,te),b.lenbits=te.bits,ce){P.msg="invalid literal/lengths set",b.mode=n;break}if(b.distbits=6,b.distcode=b.distdyn,te={bits:b.distbits},ce=S(2,b.lens,b.nlen,b.ndist,b.distcode,0,b.work,te),b.distbits=te.bits,ce){P.msg="invalid distances set",b.mode=n;break}if(b.mode=20,$===6)break e;case 20:b.mode=21;case 21:if(s>=6&&f>=258){P.next_out=O,P.avail_out=f,P.next_in=g,P.avail_in=s,b.hold=t,b.bits=w,h(P,a),O=P.next_out,_=P.output,f=P.avail_out,g=P.next_in,R=P.input,s=P.avail_in,t=b.hold,w=b.bits,b.mode===v&&(b.back=-1);break}for(b.back=0;k=(re=b.lencode[t&(1<<b.lenbits)-1])>>>16&255,x=65535&re,!((j=re>>>24)<=w);){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if(k&&!(240&k)){for(N=j,G=k,ie=x;k=(re=b.lencode[ie+((t&(1<<N+G)-1)>>N)])>>>16&255,x=65535&re,!(N+(j=re>>>24)<=w);){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}t>>>=N,w-=N,b.back+=N}if(t>>>=j,w-=j,b.back+=j,b.length=x,k===0){b.mode=26;break}if(32&k){b.back=-1,b.mode=v;break}if(64&k){P.msg="invalid literal/length code",b.mode=n;break}b.extra=15&k,b.mode=22;case 22:if(b.extra){for(L=b.extra;w<L;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}b.length+=t&(1<<b.extra)-1,t>>>=b.extra,w-=b.extra,b.back+=b.extra}b.was=b.length,b.mode=23;case 23:for(;k=(re=b.distcode[t&(1<<b.distbits)-1])>>>16&255,x=65535&re,!((j=re>>>24)<=w);){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if(!(240&k)){for(N=j,G=k,ie=x;k=(re=b.distcode[ie+((t&(1<<N+G)-1)>>N)])>>>16&255,x=65535&re,!(N+(j=re>>>24)<=w);){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}t>>>=N,w-=N,b.back+=N}if(t>>>=j,w-=j,b.back+=j,64&k){P.msg="invalid distance code",b.mode=n;break}b.offset=x,b.extra=15&k,b.mode=24;case 24:if(b.extra){for(L=b.extra;w<L;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}b.offset+=t&(1<<b.extra)-1,t>>>=b.extra,w-=b.extra,b.back+=b.extra}if(b.offset>b.dmax){P.msg="invalid distance too far back",b.mode=n;break}b.mode=25;case 25:if(f===0)break e;if(c=a-f,b.offset>c){if((c=b.offset-c)>b.whave&&b.sane){P.msg="invalid distance too far back",b.mode=n;break}c>b.wnext?(c-=b.wnext,m=b.wsize-c):m=b.wnext-c,c>b.length&&(c=b.length),z=b.window}else z=_,m=O-b.offset,c=b.length;c>f&&(c=f),f-=c,b.length-=c;do _[O++]=z[m++];while(--c);b.length===0&&(b.mode=21);break;case 26:if(f===0)break e;_[O++]=b.length,f--,b.mode=21;break;case 27:if(b.wrap){for(;w<32;){if(s===0)break e;s--,t|=R[g++]<<w,w+=8}if(a-=f,P.total_out+=a,b.total+=a,a&&(P.adler=b.check=b.flags?y(b.check,_,a,O-a):E(b.check,_,a,O-a)),a=f,(b.flags?t:M(t))!==b.check){P.msg="incorrect data check",b.mode=n;break}t=0,w=0}b.mode=28;case 28:if(b.wrap&&b.flags){for(;w<32;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if(t!==(4294967295&b.total)){P.msg="incorrect length check",b.mode=n;break}t=0,w=0}b.mode=29;case 29:ce=1;break e;case n:ce=-3;break e;case 31:return-4;default:return I}return P.next_out=O,P.avail_out=f,P.next_in=g,P.avail_in=s,b.hold=t,b.bits=w,(b.wsize||a!==P.avail_out&&b.mode<n&&(b.mode<27||$!==4))&&oe(P,P.output,P.next_out,a-P.avail_out)?(b.mode=31,-4):(l-=P.avail_in,a-=P.avail_out,P.total_in+=l,P.total_out+=a,b.total+=a,b.wrap&&a&&(P.adler=b.check=b.flags?y(b.check,_,a,P.next_out-a):E(b.check,_,a,P.next_out-a)),P.data_type=b.bits+(b.last?64:0)+(b.mode===v?128:0)+(b.mode===20||b.mode===15?256:0),(l===0&&a===0||$===4)&&ce===0&&(ce=-5),ce)},Q.inflateEnd=function(P){if(!P||!P.state)return I;var $=P.state;return $.window&&($.window=null),P.state=null,0},Q.inflateGetHeader=function(P,$){var b;return P&&P.state&&2&(b=P.state).wrap?(b.head=$,$.done=!1,0):I},Q.inflateSetDictionary=function(P,$){var b,R=$.length;return P&&P.state?(b=P.state).wrap!==0&&b.mode!==11?I:b.mode===11&&E(1,$,R,0)!==b.check?-3:oe(P,$,R,R)?(b.mode=31,-4):(b.havedict=1,0):I},Q.inflateInfo="pako inflate (from Nodeca project)"},6446:function(Se,Q,e){var D=e(9187),E=15,y=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],h=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],S=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],I=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Se.exports=function(v,n,M,Z,H,W,u,U){var le,de,he,pe,oe,P,$,b,R,_=U.bits,g=0,O=0,s=0,f=0,t=0,w=0,l=0,a=0,c=0,m=0,z=null,j=0,k=new D.Buf16(16),x=new D.Buf16(16),N=null,G=0;for(g=0;g<=E;g++)k[g]=0;for(O=0;O<Z;O++)k[n[M+O]]++;for(t=_,f=E;f>=1&&k[f]===0;f--);if(t>f&&(t=f),f===0)return H[W++]=20971520,H[W++]=20971520,U.bits=1,0;for(s=1;s<f&&k[s]===0;s++);for(t<s&&(t=s),a=1,g=1;g<=E;g++)if(a<<=1,(a-=k[g])<0)return-1;if(a>0&&(v===0||f!==1))return-1;for(x[1]=0,g=1;g<E;g++)x[g+1]=x[g]+k[g];for(O=0;O<Z;O++)n[M+O]!==0&&(u[x[n[M+O]]++]=O);if(v===0?(z=N=u,P=19):v===1?(z=y,j-=257,N=h,G-=257,P=256):(z=S,N=I,P=-1),m=0,O=0,g=s,oe=W,w=t,l=0,he=-1,pe=(c=1<<t)-1,v===1&&c>852||v===2&&c>592)return 1;for(;;){$=g-l,u[O]<P?(b=0,R=u[O]):u[O]>P?(b=N[G+u[O]],R=z[j+u[O]]):(b=96,R=0),le=1<<g-l,s=de=1<<w;do H[oe+(m>>l)+(de-=le)]=$<<24|b<<16|R|0;while(de!==0);for(le=1<<g-1;m≤)le>>=1;if(le!==0?(m&=le-1,m+=le):m=0,O++,--k[g]==0){if(g===f)break;g=n[M+u[O]]}if(g>t&&(m&pe)!==he){for(l===0&&(l=t),oe+=s,a=1<<(w=g-l);w+l<f&&!((a-=k[w+l])<=0);)w++,a<<=1;if(c+=1<<w,v===1&&c>852||v===2&&c>592)return 1;H[he=m&pe]=t<<24|w<<16|oe-W|0}}return m!==0&&(H[oe+m]=g-l<<24|4194304|0),U.bits=t,0}},5604:function(Se){Se.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},8676:function(Se,Q,e){var D=e(9187);function E(x){for(var N=x.length;--N>=0;)x[N]=0}var y=256,h=286,S=30,I=15,v=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],n=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],M=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=new Array(576);E(H);var W=new Array(60);E(W);var u=new Array(512);E(u);var U=new Array(256);E(U);var le=new Array(29);E(le);var de,he,pe,oe=new Array(S);function P(x,N,G,ie,V){this.static_tree=x,this.extra_bits=N,this.extra_base=G,this.elems=ie,this.max_length=V,this.has_stree=x&&x.length}function $(x,N){this.dyn_tree=x,this.max_code=0,this.stat_desc=N}function b(x){return x<256?u[x]:u[256+(x>>>7)]}function R(x,N){x.pending_buf[x.pending++]=255&N,x.pending_buf[x.pending++]=N>>>8&255}function _(x,N,G){x.bi_valid>16-G?(x.bi_buf|=N<<x.bi_valid&65535,R(x,x.bi_buf),x.bi_buf=N>>16-x.bi_valid,x.bi_valid+=G-16):(x.bi_buf|=N<<x.bi_valid&65535,x.bi_valid+=G)}function g(x,N,G){_(x,G[2*N],G[2*N+1])}function O(x,N){var G=0;do G|=1&x,x>>>=1,G<<=1;while(--N>0);return G>>>1}function s(x,N,G){var ie,V,ce=new Array(16),te=0;for(ie=1;ie<=I;ie++)ce[ie]=te=te+G[ie-1]<<1;for(V=0;V<=N;V++){var L=x[2*V+1];L!==0&&(x[2*V]=O(ce[L]++,L))}}function f(x){var N;for(N=0;N<h;N++)x.dyn_ltree[2*N]=0;for(N=0;N<S;N++)x.dyn_dtree[2*N]=0;for(N=0;N<19;N++)x.bl_tree[2*N]=0;x.dyn_ltree[512]=1,x.opt_len=x.static_len=0,x.last_lit=x.matches=0}function t(x){x.bi_valid>8?R(x,x.bi_buf):x.bi_valid>0&&(x.pending_buf[x.pending++]=x.bi_buf),x.bi_buf=0,x.bi_valid=0}function w(x,N,G,ie){var V=2*N,ce=2*G;return x[V]<x[ce]||x[V]===x[ce]&&ie[N]<=ie[G]}function l(x,N,G){for(var ie=x.heap[G],V=G<<1;V<=x.heap_len&&(V<x.heap_len&&w(N,x.heap[V+1],x.heap[V],x.depth)&&V++,!w(N,ie,x.heap[V],x.depth));)x.heap[G]=x.heap[V],G=V,V<<=1;x.heap[G]=ie}function a(x,N,G){var ie,V,ce,te,L=0;if(x.last_lit!==0)do ie=x.pending_buf[x.d_buf+2*L]<<8|x.pending_buf[x.d_buf+2*L+1],V=x.pending_buf[x.l_buf+L],L++,ie===0?g(x,V,N):(g(x,(ce=U[V])+y+1,N),(te=v[ce])!==0&&_(x,V-=le[ce],te),g(x,ce=b(--ie),G),(te=n[ce])!==0&&_(x,ie-=oe[ce],te));while(L<x.last_lit);g(x,256,N)}function c(x,N){var G,ie,V,ce=N.dyn_tree,te=N.stat_desc.static_tree,L=N.stat_desc.has_stree,re=N.stat_desc.elems,me=-1;for(x.heap_len=0,x.heap_max=573,G=0;G<re;G++)ce[2*G]!==0?(x.heap[++x.heap_len]=me=G,x.depth[G]=0):ce[2*G+1]=0;for(;x.heap_len<2;)ce[2*(V=x.heap[++x.heap_len]=me<2?++me:0)]=1,x.depth[V]=0,x.opt_len--,L&&(x.static_len-=te[2*V+1]);for(N.max_code=me,G=x.heap_len>>1;G>=1;G--)l(x,ce,G);V=re;do G=x.heap[1],x.heap[1]=x.heap[x.heap_len--],l(x,ce,1),ie=x.heap[1],x.heap[--x.heap_max]=G,x.heap[--x.heap_max]=ie,ce[2*V]=ce[2*G]+ce[2*ie],x.depth[V]=(x.depth[G]>=x.depth[ie]?x.depth[G]:x.depth[ie])+1,ce[2*G+1]=ce[2*ie+1]=V,x.heap[1]=V++,l(x,ce,1);while(x.heap_len>=2);x.heap[--x.heap_max]=x.heap[1],function(Ce,We){var Te,we,xe,_e,Oe,J,ke=We.dyn_tree,q=We.max_code,o=We.stat_desc.static_tree,i=We.stat_desc.has_stree,p=We.stat_desc.extra_bits,B=We.stat_desc.extra_base,A=We.stat_desc.max_length,X=0;for(_e=0;_e<=I;_e++)Ce.bl_count[_e]=0;for(ke[2*Ce.heap[Ce.heap_max]+1]=0,Te=Ce.heap_max+1;Te<573;Te++)(_e=ke[2*ke[2*(we=Ce.heap[Te])+1]+1]+1)>A&&(_e=A,X++),ke[2*we+1]=_e,we>q||(Ce.bl_count[_e]++,Oe=0,we>=B&&(Oe=p[we-B]),J=ke[2*we],Ce.opt_len+=J*(_e+Oe),i&&(Ce.static_len+=J*(o[2*we+1]+Oe)));if(X!==0){do{for(_e=A-1;Ce.bl_count[_e]===0;)_e--;Ce.bl_count[_e]--,Ce.bl_count[_e+1]+=2,Ce.bl_count[A]--,X-=2}while(X>0);for(_e=A;_e!==0;_e--)for(we=Ce.bl_count[_e];we!==0;)(xe=Ce.heap[--Te])>q||(ke[2*xe+1]!==_e&&(Ce.opt_len+=(_e-ke[2*xe+1])*ke[2*xe],ke[2*xe+1]=_e),we--)}}(x,N),s(ce,me,x.bl_count)}function m(x,N,G){var ie,V,ce=-1,te=N[1],L=0,re=7,me=4;for(te===0&&(re=138,me=3),N[2*(G+1)+1]=65535,ie=0;ie<=G;ie++)V=te,te=N[2*(ie+1)+1],++L<re&&V===te||(L<me?x.bl_tree[2*V]+=L:V!==0?(V!==ce&&x.bl_tree[2*V]++,x.bl_tree[32]++):L<=10?x.bl_tree[34]++:x.bl_tree[36]++,L=0,ce=V,te===0?(re=138,me=3):V===te?(re=6,me=3):(re=7,me=4))}function z(x,N,G){var ie,V,ce=-1,te=N[1],L=0,re=7,me=4;for(te===0&&(re=138,me=3),ie=0;ie<=G;ie++)if(V=te,te=N[2*(ie+1)+1],!(++L<re&&V===te)){if(L<me)do g(x,V,x.bl_tree);while(--L!=0);else V!==0?(V!==ce&&(g(x,V,x.bl_tree),L--),g(x,16,x.bl_tree),_(x,L-3,2)):L<=10?(g(x,17,x.bl_tree),_(x,L-3,3)):(g(x,18,x.bl_tree),_(x,L-11,7));L=0,ce=V,te===0?(re=138,me=3):V===te?(re=6,me=3):(re=7,me=4)}}E(oe);var j=!1;function k(x,N,G,ie){_(x,0+(ie?1:0),3),function(V,ce,te,L){t(V),L&&(R(V,te),R(V,~te)),D.arraySet(V.pending_buf,V.window,ce,te,V.pending),V.pending+=te}(x,N,G,!0)}Q._tr_init=function(x){j||(function(){var N,G,ie,V,ce,te=new Array(16);for(ie=0,V=0;V<28;V++)for(le[V]=ie,N=0;N<1<<v[V];N++)U[ie++]=V;for(U[ie-1]=V,ce=0,V=0;V<16;V++)for(oe[V]=ce,N=0;N<1<<n[V];N++)u[ce++]=V;for(ce>>=7;V<S;V++)for(oe[V]=ce<<7,N=0;N<1<<n[V]-7;N++)u[256+ce++]=V;for(G=0;G<=I;G++)te[G]=0;for(N=0;N<=143;)H[2*N+1]=8,N++,te[8]++;for(;N<=255;)H[2*N+1]=9,N++,te[9]++;for(;N<=279;)H[2*N+1]=7,N++,te[7]++;for(;N<=287;)H[2*N+1]=8,N++,te[8]++;for(s(H,287,te),N=0;N<S;N++)W[2*N+1]=5,W[2*N]=O(N,5);de=new P(H,v,257,h,I),he=new P(W,n,0,S,I),pe=new P(new Array(0),M,0,19,7)}(),j=!0),x.l_desc=new $(x.dyn_ltree,de),x.d_desc=new $(x.dyn_dtree,he),x.bl_desc=new $(x.bl_tree,pe),x.bi_buf=0,x.bi_valid=0,f(x)},Q._tr_stored_block=k,Q._tr_flush_block=function(x,N,G,ie){var V,ce,te=0;x.level>0?(x.strm.data_type===2&&(x.strm.data_type=function(L){var re,me=4093624447;for(re=0;re<=31;re++,me>>>=1)if(1&me&&L.dyn_ltree[2*re]!==0)return 0;if(L.dyn_ltree[18]!==0||L.dyn_ltree[20]!==0||L.dyn_ltree[26]!==0)return 1;for(re=32;re<y;re++)if(L.dyn_ltree[2*re]!==0)return 1;return 0}(x)),c(x,x.l_desc),c(x,x.d_desc),te=function(L){var re;for(m(L,L.dyn_ltree,L.l_desc.max_code),m(L,L.dyn_dtree,L.d_desc.max_code),c(L,L.bl_desc),re=18;re>=3&&L.bl_tree[2*Z[re]+1]===0;re--);return L.opt_len+=3*(re+1)+5+5+4,re}(x),V=x.opt_len+3+7>>>3,(ce=x.static_len+3+7>>>3)<=V&&(V=ce)):V=ce=G+5,G+4<=V&&N!==-1?k(x,N,G,ie):x.strategy===4||ce===V?(_(x,2+(ie?1:0),3),a(x,H,W)):(_(x,4+(ie?1:0),3),function(L,re,me,Ce){var We;for(_(L,re-257,5),_(L,me-1,5),_(L,Ce-4,4),We=0;We<Ce;We++)_(L,L.bl_tree[2*Z[We]+1],3);z(L,L.dyn_ltree,re-1),z(L,L.dyn_dtree,me-1)}(x,x.l_desc.max_code+1,x.d_desc.max_code+1,te+1),a(x,x.dyn_ltree,x.dyn_dtree)),f(x),ie&&t(x)},Q._tr_tally=function(x,N,G){return x.pending_buf[x.d_buf+2*x.last_lit]=N>>>8&255,x.pending_buf[x.d_buf+2*x.last_lit+1]=255&N,x.pending_buf[x.l_buf+x.last_lit]=255&G,x.last_lit++,N===0?x.dyn_ltree[2*G]++:(x.matches++,N--,x.dyn_ltree[2*(U[G]+y+1)]++,x.dyn_dtree[2*b(N)]++),x.last_lit===x.lit_bufsize-1},Q._tr_align=function(x){_(x,2,3),g(x,256,H),function(N){N.bi_valid===16?(R(N,N.bi_buf),N.bi_buf=0,N.bi_valid=0):N.bi_valid>=8&&(N.pending_buf[N.pending++]=255&N.bi_buf,N.bi_buf>>=8,N.bi_valid-=8)}(x)}},249:function(Se){Se.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},9066:function(Se){Se.exports=function(Q){Q.data&&Q.name&&(Q=Q.data);for(var e=!0,D="",E="",y=0;y<Q.length;y++){var h=Q[y];if(e)h?E+=String.fromCharCode(h):e=!1;else{if(!h)throw new Error("Invalid NULL character found. 0x00 character is not permitted in tEXt content");D+=String.fromCharCode(h)}}return{keyword:E,text:D}}},9686:function(Se){Se.exports=function(Q,e){if(Q=String(Q),e=String(e),!/^[\x00-\xFF]+$/.test(Q)||!/^[\x00-\xFF]+$/.test(e))throw new Error("Only Latin-1 characters are permitted in PNG tEXt chunks. You might want to consider base64 encoding and/or zEXt compression");if(Q.length>=80)throw new Error('Keyword "'+Q+'" is longer than the 79-character limit imposed by the PNG specification');for(var D,E=Q.length+e.length+1,y=new Uint8Array(E),h=0,S=0;S<Q.length;S++){if(!(D=Q.charCodeAt(S)))throw new Error("0x00 character is not permitted in tEXt keywords");y[h++]=D}y[h++]=0;for(var I=0;I<e.length;I++){if(!(D=e.charCodeAt(I)))throw new Error("0x00 character is not permitted in tEXt content");y[h++]=D}return{name:"tEXt",data:y}}},1194:function(Se,Q,e){Q.encode=e(9686),Q.decode=e(9066)},3434:function(Se,Q,e){var D=e(5714),E=e(6233);Se.exports=function(I){var v,n=8,M=n;for(v=0;v<I.length;v++)n+=I[v].data.length,n+=12;var Z=new Uint8Array(n);for(Z[0]=137,Z[1]=80,Z[2]=78,Z[3]=71,Z[4]=13,Z[5]=10,Z[6]=26,Z[7]=10,v=0;v<I.length;v++){var H=I[v],W=H.name,u=H.data,U=u.length,le=[W.charCodeAt(0),W.charCodeAt(1),W.charCodeAt(2),W.charCodeAt(3)];S[0]=U,Z[M++]=y[3],Z[M++]=y[2],Z[M++]=y[1],Z[M++]=y[0],Z[M++]=le[0],Z[M++]=le[1],Z[M++]=le[2],Z[M++]=le[3];for(var de=0;de<U;)Z[M++]=u[de++];var he=le.concat(D(u)),pe=E.buf(he);h[0]=pe,Z[M++]=y[3],Z[M++]=y[2],Z[M++]=y[1],Z[M++]=y[0]}return Z};var y=new Uint8Array(4),h=new Int32Array(y.buffer),S=new Uint32Array(y.buffer)},2983:function(Se,Q,e){var D=e(6233);Se.exports=function(S){if(S[0]!==137)throw new Error("Invalid .png file header");if(S[1]!==80)throw new Error("Invalid .png file header");if(S[2]!==78)throw new Error("Invalid .png file header");if(S[3]!==71)throw new Error("Invalid .png file header");if(S[4]!==13)throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(S[5]!==10)throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(S[6]!==26)throw new Error("Invalid .png file header");if(S[7]!==10)throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");for(var I=!1,v=[],n=8;n<S.length;){E[3]=S[n++],E[2]=S[n++],E[1]=S[n++],E[0]=S[n++];var M=h[0]+4,Z=new Uint8Array(M);Z[0]=S[n++],Z[1]=S[n++],Z[2]=S[n++],Z[3]=S[n++];var H=String.fromCharCode(Z[0])+String.fromCharCode(Z[1])+String.fromCharCode(Z[2])+String.fromCharCode(Z[3]);if(!v.length&&H!=="IHDR")throw new Error("IHDR header missing");if(H==="IEND"){I=!0,v.push({name:H,data:new Uint8Array(0)});break}for(var W=4;W<M;W++)Z[W]=S[n++];E[3]=S[n++],E[2]=S[n++],E[1]=S[n++],E[0]=S[n++];var u=y[0];if(D.buf(Z)!==u)throw new Error("CRC values for "+H+" header do not match, PNG file is likely corrupted");var U=new Uint8Array(Z.buffer.slice(4));v.push({name:H,data:U})}if(!I)throw new Error(".png file ended prematurely: no IEND header was found");return v};var E=new Uint8Array(4),y=new Int32Array(E.buffer),h=new Uint32Array(E.buffer)},1493:function(Se,Q,e){function D(n,M){return Math.pow(n[0]-M[0],2)+Math.pow(n[1]-M[1],2)}function E(n,M,Z){const H=D(M,Z);if(H===0)return D(n,M);let W=((n[0]-M[0])*(Z[0]-M[0])+(n[1]-M[1])*(Z[1]-M[1]))/H;return W=Math.max(0,Math.min(1,W)),D(n,y(M,Z,W))}function y(n,M,Z){return[n[0]+(M[0]-n[0])*Z,n[1]+(M[1]-n[1])*Z]}function h(n,M,Z,H){const W=H||[];if(function(le,de){const he=le[de+0],pe=le[de+1],oe=le[de+2],P=le[de+3];let $=3*pe[0]-2*he[0]-P[0];$*=$;let b=3*pe[1]-2*he[1]-P[1];b*=b;let R=3*oe[0]-2*P[0]-he[0];R*=R;let _=3*oe[1]-2*P[1]-he[1];return _*=_,$<R&&($=R),b<_&&(b=_),$+b}(n,M)<Z){const le=n[M+0];W.length?(u=W[W.length-1],U=le,Math.sqrt(D(u,U))>1&&W.push(le)):W.push(le),W.push(n[M+3])}else{const de=n[M+0],he=n[M+1],pe=n[M+2],oe=n[M+3],P=y(de,he,.5),$=y(he,pe,.5),b=y(pe,oe,.5),R=y(P,$,.5),_=y($,b,.5),g=y(R,_,.5);h([de,P,R,g],0,Z,W),h([g,_,b,oe],0,Z,W)}var u,U;return W}function S(n,M){return I(n,0,n.length,M)}function I(n,M,Z,H,W){const u=W||[],U=n[M],le=n[Z-1];let de=0,he=1;for(let pe=M+1;pe<Z-1;++pe){const oe=E(n[pe],U,le);oe>de&&(de=oe,he=pe)}return Math.sqrt(de)>H?(I(n,M,he+1,H,u),I(n,he,Z,H,u)):(u.length||u.push(U),u.push(le)),u}function v(n,M=.15,Z){const H=[],W=(n.length-1)/3;for(let u=0;u<W;u++)h(n,3*u,M,H);return Z&&Z>0?I(H,0,H.length,Z):H}e.d(Q,{og:function(){return S},sU:function(){return v}})},8128:function(Se,Q,e){function D(q,o,i){if(q&&q.length){const[p,B]=o,A=Math.PI/180*i,X=Math.cos(A),Y=Math.sin(A);for(const ee of q){const[ge,be]=ee;ee[0]=(ge-p)*X-(be-B)*Y+p,ee[1]=(ge-p)*Y+(be-B)*X+B}}}function E(q,o){return q[0]===o[0]&&q[1]===o[1]}function y(q,o,i,p=1){const B=i,A=Math.max(o,.1),X=q[0]&&q[0][0]&&typeof q[0][0]=="number"?[q]:q,Y=[0,0];if(B)for(const ge of X)D(ge,Y,B);const ee=function(ge,be,Re){const Ze=[];for(const ue of ge){const ve=[...ue];E(ve[0],ve[ve.length-1])||ve.push([ve[0][0],ve[0][1]]),ve.length>2&&Ze.push(ve)}const Be=[];be=Math.max(be,.1);const Ie=[];for(const ue of Ze)for(let ve=0;ve<ue.length-1;ve++){const De=ue[ve],He=ue[ve+1];if(De[1]!==He[1]){const Je=Math.min(De[1],He[1]);Ie.push({ymin:Je,ymax:Math.max(De[1],He[1]),x:Je===De[1]?De[0]:He[0],islope:(He[0]-De[0])/(He[1]-De[1])})}}if(Ie.sort((ue,ve)=>ue.ymin<ve.ymin?-1:ue.ymin>ve.ymin?1:ue.x<ve.x?-1:ue.x>ve.x?1:ue.ymax===ve.ymax?0:(ue.ymax-ve.ymax)/Math.abs(ue.ymax-ve.ymax)),!Ie.length)return Be;let Ke=[],Ye=Ie[0].ymin,tt=0;for(;Ke.length||Ie.length;){if(Ie.length){let ue=-1;for(let ve=0;ve<Ie.length&&!(Ie[ve].ymin>Ye);ve++)ue=ve;Ie.splice(0,ue+1).forEach(ve=>{Ke.push({s:Ye,edge:ve})})}if(Ke=Ke.filter(ue=>!(ue.edge.ymax<=Ye)),Ke.sort((ue,ve)=>ue.edge.x===ve.edge.x?0:(ue.edge.x-ve.edge.x)/Math.abs(ue.edge.x-ve.edge.x)),(Re!==1||tt%be==0)&&Ke.length>1)for(let ue=0;ue<Ke.length;ue+=2){const ve=ue+1;if(ve>=Ke.length)break;const De=Ke[ue].edge,He=Ke[ve].edge;Be.push([[Math.round(De.x),Ye],[Math.round(He.x),Ye]])}Ye+=Re,Ke.forEach(ue=>{ue.edge.x=ue.edge.x+Re*ue.edge.islope}),tt++}return Be}(X,A,p);if(B){for(const ge of X)D(ge,Y,-B);(function(ge,be,Re){const Ze=[];ge.forEach(Be=>Ze.push(...Be)),D(Ze,be,Re)})(ee,Y,-B)}return ee}function h(q,o){var i;const p=o.hachureAngle+90;let B=o.hachureGap;B<0&&(B=4*o.strokeWidth),B=Math.max(B,.1);let A=1;return o.roughness>=1&&(((i=o.randomizer)===null||i===void 0?void 0:i.next())||Math.random())>.7&&(A=B),y(q,B,p,A||1)}e.d(Q,{V:function(){return ke}});class S{constructor(o){this.helper=o}fillPolygons(o,i){return this._fillPolygons(o,i)}_fillPolygons(o,i){const p=h(o,i);return{type:"fillSketch",ops:this.renderLines(p,i)}}renderLines(o,i){const p=[];for(const B of o)p.push(...this.helper.doubleLineOps(B[0][0],B[0][1],B[1][0],B[1][1],i));return p}}function I(q){const o=q[0],i=q[1];return Math.sqrt(Math.pow(o[0]-i[0],2)+Math.pow(o[1]-i[1],2))}class v extends S{fillPolygons(o,i){let p=i.hachureGap;p<0&&(p=4*i.strokeWidth),p=Math.max(p,.1);const B=h(o,Object.assign({},i,{hachureGap:p})),A=Math.PI/180*i.hachureAngle,X=[],Y=.5*p*Math.cos(A),ee=.5*p*Math.sin(A);for(const[ge,be]of B)I([ge,be])&&X.push([[ge[0]-Y,ge[1]+ee],[...be]],[[ge[0]+Y,ge[1]-ee],[...be]]);return{type:"fillSketch",ops:this.renderLines(X,i)}}}class n extends S{fillPolygons(o,i){const p=this._fillPolygons(o,i),B=Object.assign({},i,{hachureAngle:i.hachureAngle+90}),A=this._fillPolygons(o,B);return p.ops=p.ops.concat(A.ops),p}}class M{constructor(o){this.helper=o}fillPolygons(o,i){const p=h(o,i=Object.assign({},i,{hachureAngle:0}));return this.dotsOnLines(p,i)}dotsOnLines(o,i){const p=[];let B=i.hachureGap;B<0&&(B=4*i.strokeWidth),B=Math.max(B,.1);let A=i.fillWeight;A<0&&(A=i.strokeWidth/2);const X=B/4;for(const Y of o){const ee=I(Y),ge=ee/B,be=Math.ceil(ge)-1,Re=ee-be*B,Ze=(Y[0][0]+Y[1][0])/2-B/4,Be=Math.min(Y[0][1],Y[1][1]);for(let Ie=0;Ie<be;Ie++){const Ke=Be+Re+Ie*B,Ye=Ze-X+2*Math.random()*X,tt=Ke-X+2*Math.random()*X,ue=this.helper.ellipse(Ye,tt,A,A,i);p.push(...ue.ops)}}return{type:"fillSketch",ops:p}}}class Z{constructor(o){this.helper=o}fillPolygons(o,i){const p=h(o,i);return{type:"fillSketch",ops:this.dashedLine(p,i)}}dashedLine(o,i){const p=i.dashOffset<0?i.hachureGap<0?4*i.strokeWidth:i.hachureGap:i.dashOffset,B=i.dashGap<0?i.hachureGap<0?4*i.strokeWidth:i.hachureGap:i.dashGap,A=[];return o.forEach(X=>{const Y=I(X),ee=Math.floor(Y/(p+B)),ge=(Y+B-ee*(p+B))/2;let be=X[0],Re=X[1];be[0]>Re[0]&&(be=X[1],Re=X[0]);const Ze=Math.atan((Re[1]-be[1])/(Re[0]-be[0]));for(let Be=0;Be<ee;Be++){const Ie=Be*(p+B),Ke=Ie+p,Ye=[be[0]+Ie*Math.cos(Ze)+ge*Math.cos(Ze),be[1]+Ie*Math.sin(Ze)+ge*Math.sin(Ze)],tt=[be[0]+Ke*Math.cos(Ze)+ge*Math.cos(Ze),be[1]+Ke*Math.sin(Ze)+ge*Math.sin(Ze)];A.push(...this.helper.doubleLineOps(Ye[0],Ye[1],tt[0],tt[1],i))}}),A}}class H{constructor(o){this.helper=o}fillPolygons(o,i){const p=i.hachureGap<0?4*i.strokeWidth:i.hachureGap,B=i.zigzagOffset<0?p:i.zigzagOffset,A=h(o,i=Object.assign({},i,{hachureGap:p+B}));return{type:"fillSketch",ops:this.zigzagLines(A,B,i)}}zigzagLines(o,i,p){const B=[];return o.forEach(A=>{const X=I(A),Y=Math.round(X/(2*i));let ee=A[0],ge=A[1];ee[0]>ge[0]&&(ee=A[1],ge=A[0]);const be=Math.atan((ge[1]-ee[1])/(ge[0]-ee[0]));for(let Re=0;Re<Y;Re++){const Ze=2*Re*i,Be=2*(Re+1)*i,Ie=Math.sqrt(2*Math.pow(i,2)),Ke=[ee[0]+Ze*Math.cos(be),ee[1]+Ze*Math.sin(be)],Ye=[ee[0]+Be*Math.cos(be),ee[1]+Be*Math.sin(be)],tt=[Ke[0]+Ie*Math.cos(be+Math.PI/4),Ke[1]+Ie*Math.sin(be+Math.PI/4)];B.push(...this.helper.doubleLineOps(Ke[0],Ke[1],tt[0],tt[1],p),...this.helper.doubleLineOps(tt[0],tt[1],Ye[0],Ye[1],p))}}),B}}const W={};var u=e(8152);const U={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function le(q,o){return q.type===o}function de(q){const o=[],i=function(X){const Y=new Array;for(;X!=="";)if(X.match(/^([ \t\r\n,]+)/))X=X.substr(RegExp.$1.length);else if(X.match(/^([aAcChHlLmMqQsStTvVzZ])/))Y[Y.length]={type:0,text:RegExp.$1},X=X.substr(RegExp.$1.length);else{if(!X.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];Y[Y.length]={type:1,text:`${parseFloat(RegExp.$1)}`},X=X.substr(RegExp.$1.length)}return Y[Y.length]={type:2,text:""},Y}(q);let p="BOD",B=0,A=i[B];for(;!le(A,2);){let X=0;const Y=[];if(p==="BOD"){if(A.text!=="M"&&A.text!=="m")return de("M0,0"+q);B++,X=U[A.text],p=A.text}else le(A,1)?X=U[p]:(B++,X=U[A.text],p=A.text);if(!(B+X<i.length))throw new Error("Path data ended short");for(let ee=B;ee<B+X;ee++){const ge=i[ee];if(!le(ge,1))throw new Error("Param not a number: "+p+","+ge.text);Y[Y.length]=+ge.text}if(typeof U[p]!="number")throw new Error("Bad segment: "+p);{const ee={key:p,data:Y};o.push(ee),B+=X,A=i[B],p==="M"&&(p="L"),p==="m"&&(p="l")}}return o}function he(q){let o=0,i=0,p=0,B=0;const A=[];for(const{key:X,data:Y}of q)switch(X){case"M":A.push({key:"M",data:[...Y]}),[o,i]=Y,[p,B]=Y;break;case"m":o+=Y[0],i+=Y[1],A.push({key:"M",data:[o,i]}),p=o,B=i;break;case"L":A.push({key:"L",data:[...Y]}),[o,i]=Y;break;case"l":o+=Y[0],i+=Y[1],A.push({key:"L",data:[o,i]});break;case"C":A.push({key:"C",data:[...Y]}),o=Y[4],i=Y[5];break;case"c":{const ee=Y.map((ge,be)=>be%2?ge+i:ge+o);A.push({key:"C",data:ee}),o=ee[4],i=ee[5];break}case"Q":A.push({key:"Q",data:[...Y]}),o=Y[2],i=Y[3];break;case"q":{const ee=Y.map((ge,be)=>be%2?ge+i:ge+o);A.push({key:"Q",data:ee}),o=ee[2],i=ee[3];break}case"A":A.push({key:"A",data:[...Y]}),o=Y[5],i=Y[6];break;case"a":o+=Y[5],i+=Y[6],A.push({key:"A",data:[Y[0],Y[1],Y[2],Y[3],Y[4],o,i]});break;case"H":A.push({key:"H",data:[...Y]}),o=Y[0];break;case"h":o+=Y[0],A.push({key:"H",data:[o]});break;case"V":A.push({key:"V",data:[...Y]}),i=Y[0];break;case"v":i+=Y[0],A.push({key:"V",data:[i]});break;case"S":A.push({key:"S",data:[...Y]}),o=Y[2],i=Y[3];break;case"s":{const ee=Y.map((ge,be)=>be%2?ge+i:ge+o);A.push({key:"S",data:ee}),o=ee[2],i=ee[3];break}case"T":A.push({key:"T",data:[...Y]}),o=Y[0],i=Y[1];break;case"t":o+=Y[0],i+=Y[1],A.push({key:"T",data:[o,i]});break;case"Z":case"z":A.push({key:"Z",data:[]}),o=p,i=B}return A}function pe(q){const o=[];let i="",p=0,B=0,A=0,X=0,Y=0,ee=0;for(const{key:ge,data:be}of q){switch(ge){case"M":o.push({key:"M",data:[...be]}),[p,B]=be,[A,X]=be;break;case"C":o.push({key:"C",data:[...be]}),p=be[4],B=be[5],Y=be[2],ee=be[3];break;case"L":o.push({key:"L",data:[...be]}),[p,B]=be;break;case"H":p=be[0],o.push({key:"L",data:[p,B]});break;case"V":B=be[0],o.push({key:"L",data:[p,B]});break;case"S":{let Re=0,Ze=0;i==="C"||i==="S"?(Re=p+(p-Y),Ze=B+(B-ee)):(Re=p,Ze=B),o.push({key:"C",data:[Re,Ze,...be]}),Y=be[0],ee=be[1],p=be[2],B=be[3];break}case"T":{const[Re,Ze]=be;let Be=0,Ie=0;i==="Q"||i==="T"?(Be=p+(p-Y),Ie=B+(B-ee)):(Be=p,Ie=B);const Ke=p+2*(Be-p)/3,Ye=B+2*(Ie-B)/3,tt=Re+2*(Be-Re)/3,ue=Ze+2*(Ie-Ze)/3;o.push({key:"C",data:[Ke,Ye,tt,ue,Re,Ze]}),Y=Be,ee=Ie,p=Re,B=Ze;break}case"Q":{const[Re,Ze,Be,Ie]=be,Ke=p+2*(Re-p)/3,Ye=B+2*(Ze-B)/3,tt=Be+2*(Re-Be)/3,ue=Ie+2*(Ze-Ie)/3;o.push({key:"C",data:[Ke,Ye,tt,ue,Be,Ie]}),Y=Re,ee=Ze,p=Be,B=Ie;break}case"A":{const Re=Math.abs(be[0]),Ze=Math.abs(be[1]),Be=be[2],Ie=be[3],Ke=be[4],Ye=be[5],tt=be[6];Re===0||Ze===0?(o.push({key:"C",data:[p,B,Ye,tt,Ye,tt]}),p=Ye,B=tt):(p!==Ye||B!==tt)&&(P(p,B,Ye,tt,Re,Ze,Be,Ie,Ke).forEach(function(ue){o.push({key:"C",data:ue})}),p=Ye,B=tt);break}case"Z":o.push({key:"Z",data:[]}),p=A,B=X}i=ge}return o}function oe(q,o,i){return[q*Math.cos(i)-o*Math.sin(i),q*Math.sin(i)+o*Math.cos(i)]}function P(q,o,i,p,B,A,X,Y,ee,ge){const be=(Re=X,Math.PI*Re/180);var Re;let Ze=[],Be=0,Ie=0,Ke=0,Ye=0;if(ge)[Be,Ie,Ke,Ye]=ge;else{[q,o]=oe(q,o,-be),[i,p]=oe(i,p,-be);const St=(q-i)/2,yt=(o-p)/2;let Wt=St*St/(B*B)+yt*yt/(A*A);Wt>1&&(Wt=Math.sqrt(Wt),B*=Wt,A*=Wt);const Ft=B*B,Ve=A*A,bt=Ft*Ve-Ft*yt*yt-Ve*St*St,at=Ft*yt*yt+Ve*St*St,mt=(Y===ee?-1:1)*Math.sqrt(Math.abs(bt/at));Ke=mt*B*yt/A+(q+i)/2,Ye=mt*-A*St/B+(o+p)/2,Be=Math.asin(parseFloat(((o-Ye)/A).toFixed(9))),Ie=Math.asin(parseFloat(((p-Ye)/A).toFixed(9))),q<Ke&&(Be=Math.PI-Be),i<Ke&&(Ie=Math.PI-Ie),Be<0&&(Be=2*Math.PI+Be),Ie<0&&(Ie=2*Math.PI+Ie),ee&&Be>Ie&&(Be-=2*Math.PI),!ee&&Ie>Be&&(Ie-=2*Math.PI)}let tt=Ie-Be;if(Math.abs(tt)>120*Math.PI/180){const St=Ie,yt=i,Wt=p;Ie=ee&&Ie>Be?Be+120*Math.PI/180*1:Be+120*Math.PI/180*-1,Ze=P(i=Ke+B*Math.cos(Ie),p=Ye+A*Math.sin(Ie),yt,Wt,B,A,X,0,ee,[Ie,St,Ke,Ye])}tt=Ie-Be;const ue=Math.cos(Be),ve=Math.sin(Be),De=Math.cos(Ie),He=Math.sin(Ie),Je=Math.tan(tt/4),qe=4/3*B*Je,st=4/3*A*Je,ht=[q,o],et=[q+qe*ve,o-st*ue],wt=[i+qe*He,p-st*De],Lt=[i,p];if(et[0]=2*ht[0]-et[0],et[1]=2*ht[1]-et[1],ge)return[et,wt,Lt].concat(Ze);{Ze=[et,wt,Lt].concat(Ze);const St=[];for(let yt=0;yt<Ze.length;yt+=3){const Wt=oe(Ze[yt][0],Ze[yt][1],be),Ft=oe(Ze[yt+1][0],Ze[yt+1][1],be),Ve=oe(Ze[yt+2][0],Ze[yt+2][1],be);St.push([Wt[0],Wt[1],Ft[0],Ft[1],Ve[0],Ve[1]])}return St}}const $={randOffset:function(q,o){return m(q,o)},randOffsetWithRange:function(q,o,i){return c(q,o,i)},ellipse:function(q,o,i,p,B){const A=O(i,p,B);return s(q,o,B,A).opset},doubleLineOps:function(q,o,i,p,B){return z(q,o,i,p,B,!0)}};function b(q,o,i,p,B){return{type:"path",ops:z(q,o,i,p,B)}}function R(q,o,i){const p=(q||[]).length;if(p>2){const B=[];for(let A=0;A<p-1;A++)B.push(...z(q[A][0],q[A][1],q[A+1][0],q[A+1][1],i));return o&&B.push(...z(q[p-1][0],q[p-1][1],q[0][0],q[0][1],i)),{type:"path",ops:B}}return p===2?b(q[0][0],q[0][1],q[1][0],q[1][1],i):{type:"path",ops:[]}}function _(q,o,i,p,B){return function(A,X){return R(A,!0,X)}([[q,o],[q+i,o],[q+i,o+p],[q,o+p]],B)}function g(q,o){let i=k(q,1*(1+.2*o.roughness),o);if(!o.disableMultiStroke){const p=k(q,1.5*(1+.22*o.roughness),function(B){const A=Object.assign({},B);return A.randomizer=void 0,B.seed&&(A.seed=B.seed+1),A}(o));i=i.concat(p)}return{type:"path",ops:i}}function O(q,o,i){const p=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(q/2,2)+Math.pow(o/2,2))/2)),B=Math.ceil(Math.max(i.curveStepCount,i.curveStepCount/Math.sqrt(200)*p)),A=2*Math.PI/B;let X=Math.abs(q/2),Y=Math.abs(o/2);const ee=1-i.curveFitting;return X+=m(X*ee,i),Y+=m(Y*ee,i),{increment:A,rx:X,ry:Y}}function s(q,o,i,p){const[B,A]=N(p.increment,q,o,p.rx,p.ry,1,p.increment*c(.1,c(.4,1,i),i),i);let X=x(B,null,i);if(!i.disableMultiStroke&&i.roughness!==0){const[Y]=N(p.increment,q,o,p.rx,p.ry,1.5,0,i),ee=x(Y,null,i);X=X.concat(ee)}return{estimatedPoints:A,opset:{type:"path",ops:X}}}function f(q,o,i,p,B,A,X,Y,ee){const ge=q,be=o;let Re=Math.abs(i/2),Ze=Math.abs(p/2);Re+=m(.01*Re,ee),Ze+=m(.01*Ze,ee);let Be=B,Ie=A;for(;Be<0;)Be+=2*Math.PI,Ie+=2*Math.PI;Ie-Be>2*Math.PI&&(Be=0,Ie=2*Math.PI);const Ke=2*Math.PI/ee.curveStepCount,Ye=Math.min(Ke/2,(Ie-Be)/2),tt=G(Ye,ge,be,Re,Ze,Be,Ie,1,ee);if(!ee.disableMultiStroke){const ue=G(Ye,ge,be,Re,Ze,Be,Ie,1.5,ee);tt.push(...ue)}return X&&(Y?tt.push(...z(ge,be,ge+Re*Math.cos(Be),be+Ze*Math.sin(Be),ee),...z(ge,be,ge+Re*Math.cos(Ie),be+Ze*Math.sin(Ie),ee)):tt.push({op:"lineTo",data:[ge,be]},{op:"lineTo",data:[ge+Re*Math.cos(Be),be+Ze*Math.sin(Be)]})),{type:"path",ops:tt}}function t(q,o){const i=pe(he(de(q))),p=[];let B=[0,0],A=[0,0];for(const{key:X,data:Y}of i)switch(X){case"M":A=[Y[0],Y[1]],B=[Y[0],Y[1]];break;case"L":p.push(...z(A[0],A[1],Y[0],Y[1],o)),A=[Y[0],Y[1]];break;case"C":{const[ee,ge,be,Re,Ze,Be]=Y;p.push(...ie(ee,ge,be,Re,Ze,Be,A,o)),A=[Ze,Be];break}case"Z":p.push(...z(A[0],A[1],B[0],B[1],o)),A=[B[0],B[1]]}return{type:"path",ops:p}}function w(q,o){const i=[];for(const p of q)if(p.length){const B=o.maxRandomnessOffset||0,A=p.length;if(A>2){i.push({op:"move",data:[p[0][0]+m(B,o),p[0][1]+m(B,o)]});for(let X=1;X<A;X++)i.push({op:"lineTo",data:[p[X][0]+m(B,o),p[X][1]+m(B,o)]})}}return{type:"fillPath",ops:i}}function l(q,o){return function(i,p){let B=i.fillStyle||"hachure";if(!W[B])switch(B){case"zigzag":W[B]||(W[B]=new v(p));break;case"cross-hatch":W[B]||(W[B]=new n(p));break;case"dots":W[B]||(W[B]=new M(p));break;case"dashed":W[B]||(W[B]=new Z(p));break;case"zigzag-line":W[B]||(W[B]=new H(p));break;default:B="hachure",W[B]||(W[B]=new S(p))}return W[B]}(o,$).fillPolygons(q,o)}function a(q){return q.randomizer||(q.randomizer=new u.k(q.seed||0)),q.randomizer.next()}function c(q,o,i,p=1){return i.roughness*p*(a(i)*(o-q)+q)}function m(q,o,i=1){return c(-q,q,o,i)}function z(q,o,i,p,B,A=!1){const X=A?B.disableMultiStrokeFill:B.disableMultiStroke,Y=j(q,o,i,p,B,!0,!1);if(X)return Y;const ee=j(q,o,i,p,B,!0,!0);return Y.concat(ee)}function j(q,o,i,p,B,A,X){const Y=Math.pow(q-i,2)+Math.pow(o-p,2),ee=Math.sqrt(Y);let ge=1;ge=ee<200?1:ee>500?.4:-.0016668*ee+1.233334;let be=B.maxRandomnessOffset||0;be*be*100>Y&&(be=ee/10);const Re=be/2,Ze=.2+.2*a(B);let Be=B.bowing*B.maxRandomnessOffset*(p-o)/200,Ie=B.bowing*B.maxRandomnessOffset*(q-i)/200;Be=m(Be,B,ge),Ie=m(Ie,B,ge);const Ke=[],Ye=()=>m(Re,B,ge),tt=()=>m(be,B,ge),ue=B.preserveVertices;return A&&(X?Ke.push({op:"move",data:[q+(ue?0:Ye()),o+(ue?0:Ye())]}):Ke.push({op:"move",data:[q+(ue?0:m(be,B,ge)),o+(ue?0:m(be,B,ge))]})),X?Ke.push({op:"bcurveTo",data:[Be+q+(i-q)*Ze+Ye(),Ie+o+(p-o)*Ze+Ye(),Be+q+2*(i-q)*Ze+Ye(),Ie+o+2*(p-o)*Ze+Ye(),i+(ue?0:Ye()),p+(ue?0:Ye())]}):Ke.push({op:"bcurveTo",data:[Be+q+(i-q)*Ze+tt(),Ie+o+(p-o)*Ze+tt(),Be+q+2*(i-q)*Ze+tt(),Ie+o+2*(p-o)*Ze+tt(),i+(ue?0:tt()),p+(ue?0:tt())]}),Ke}function k(q,o,i){const p=[];p.push([q[0][0]+m(o,i),q[0][1]+m(o,i)]),p.push([q[0][0]+m(o,i),q[0][1]+m(o,i)]);for(let B=1;B<q.length;B++)p.push([q[B][0]+m(o,i),q[B][1]+m(o,i)]),B===q.length-1&&p.push([q[B][0]+m(o,i),q[B][1]+m(o,i)]);return x(p,null,i)}function x(q,o,i){const p=q.length,B=[];if(p>3){const A=[],X=1-i.curveTightness;B.push({op:"move",data:[q[1][0],q[1][1]]});for(let Y=1;Y+2<p;Y++){const ee=q[Y];A[0]=[ee[0],ee[1]],A[1]=[ee[0]+(X*q[Y+1][0]-X*q[Y-1][0])/6,ee[1]+(X*q[Y+1][1]-X*q[Y-1][1])/6],A[2]=[q[Y+1][0]+(X*q[Y][0]-X*q[Y+2][0])/6,q[Y+1][1]+(X*q[Y][1]-X*q[Y+2][1])/6],A[3]=[q[Y+1][0],q[Y+1][1]],B.push({op:"bcurveTo",data:[A[1][0],A[1][1],A[2][0],A[2][1],A[3][0],A[3][1]]})}if(o&&o.length===2){const Y=i.maxRandomnessOffset;B.push({op:"lineTo",data:[o[0]+m(Y,i),o[1]+m(Y,i)]})}}else p===3?(B.push({op:"move",data:[q[1][0],q[1][1]]}),B.push({op:"bcurveTo",data:[q[1][0],q[1][1],q[2][0],q[2][1],q[2][0],q[2][1]]})):p===2&&B.push(...z(q[0][0],q[0][1],q[1][0],q[1][1],i));return B}function N(q,o,i,p,B,A,X,Y){const ee=[],ge=[];if(Y.roughness===0){q/=4,ge.push([o+p*Math.cos(-q),i+B*Math.sin(-q)]);for(let be=0;be<=2*Math.PI;be+=q){const Re=[o+p*Math.cos(be),i+B*Math.sin(be)];ee.push(Re),ge.push(Re)}ge.push([o+p*Math.cos(0),i+B*Math.sin(0)]),ge.push([o+p*Math.cos(q),i+B*Math.sin(q)])}else{const be=m(.5,Y)-Math.PI/2;ge.push([m(A,Y)+o+.9*p*Math.cos(be-q),m(A,Y)+i+.9*B*Math.sin(be-q)]);const Re=2*Math.PI+be-.01;for(let Ze=be;Ze<Re;Ze+=q){const Be=[m(A,Y)+o+p*Math.cos(Ze),m(A,Y)+i+B*Math.sin(Ze)];ee.push(Be),ge.push(Be)}ge.push([m(A,Y)+o+p*Math.cos(be+2*Math.PI+.5*X),m(A,Y)+i+B*Math.sin(be+2*Math.PI+.5*X)]),ge.push([m(A,Y)+o+.98*p*Math.cos(be+X),m(A,Y)+i+.98*B*Math.sin(be+X)]),ge.push([m(A,Y)+o+.9*p*Math.cos(be+.5*X),m(A,Y)+i+.9*B*Math.sin(be+.5*X)])}return[ge,ee]}function G(q,o,i,p,B,A,X,Y,ee){const ge=A+m(.1,ee),be=[];be.push([m(Y,ee)+o+.9*p*Math.cos(ge-q),m(Y,ee)+i+.9*B*Math.sin(ge-q)]);for(let Re=ge;Re<=X;Re+=q)be.push([m(Y,ee)+o+p*Math.cos(Re),m(Y,ee)+i+B*Math.sin(Re)]);return be.push([o+p*Math.cos(X),i+B*Math.sin(X)]),be.push([o+p*Math.cos(X),i+B*Math.sin(X)]),x(be,null,ee)}function ie(q,o,i,p,B,A,X,Y){const ee=[],ge=[Y.maxRandomnessOffset||1,(Y.maxRandomnessOffset||1)+.3];let be=[0,0];const Re=Y.disableMultiStroke?1:2,Ze=Y.preserveVertices;for(let Be=0;Be<Re;Be++)Be===0?ee.push({op:"move",data:[X[0],X[1]]}):ee.push({op:"move",data:[X[0]+(Ze?0:m(ge[0],Y)),X[1]+(Ze?0:m(ge[0],Y))]}),be=Ze?[B,A]:[B+m(ge[Be],Y),A+m(ge[Be],Y)],ee.push({op:"bcurveTo",data:[q+m(ge[Be],Y),o+m(ge[Be],Y),i+m(ge[Be],Y),p+m(ge[Be],Y),be[0],be[1]]});return ee}function V(q){return[...q]}function ce(q,o){return Math.pow(q[0]-o[0],2)+Math.pow(q[1]-o[1],2)}function te(q,o,i){const p=ce(o,i);if(p===0)return ce(q,o);let B=((q[0]-o[0])*(i[0]-o[0])+(q[1]-o[1])*(i[1]-o[1]))/p;return B=Math.max(0,Math.min(1,B)),ce(q,L(o,i,B))}function L(q,o,i){return[q[0]+(o[0]-q[0])*i,q[1]+(o[1]-q[1])*i]}function re(q,o,i,p){const B=p||[];if(function(Y,ee){const ge=Y[ee+0],be=Y[ee+1],Re=Y[ee+2],Ze=Y[ee+3];let Be=3*be[0]-2*ge[0]-Ze[0];Be*=Be;let Ie=3*be[1]-2*ge[1]-Ze[1];Ie*=Ie;let Ke=3*Re[0]-2*Ze[0]-ge[0];Ke*=Ke;let Ye=3*Re[1]-2*Ze[1]-ge[1];return Ye*=Ye,Be<Ke&&(Be=Ke),Ie<Ye&&(Ie=Ye),Be+Ie}(q,o)<i){const Y=q[o+0];B.length?(A=B[B.length-1],X=Y,Math.sqrt(ce(A,X))>1&&B.push(Y)):B.push(Y),B.push(q[o+3])}else{const ee=q[o+0],ge=q[o+1],be=q[o+2],Re=q[o+3],Ze=L(ee,ge,.5),Be=L(ge,be,.5),Ie=L(be,Re,.5),Ke=L(Ze,Be,.5),Ye=L(Be,Ie,.5),tt=L(Ke,Ye,.5);re([ee,Ze,Ke,tt],0,i,B),re([tt,Ye,Ie,Re],0,i,B)}var A,X;return B}function me(q,o,i,p,B){const A=B||[],X=q[o],Y=q[i-1];let ee=0,ge=1;for(let be=o+1;be<i-1;++be){const Re=te(q[be],X,Y);Re>ee&&(ee=Re,ge=be)}return Math.sqrt(ee)>p?(me(q,o,ge+1,p,A),me(q,ge,i,p,A)):(A.length||A.push(X),A.push(Y)),A}function Ce(q,o){return Math.pow(q[0]-o[0],2)+Math.pow(q[1]-o[1],2)}function We(q,o,i){const p=Ce(o,i);if(p===0)return Ce(q,o);let B=((q[0]-o[0])*(i[0]-o[0])+(q[1]-o[1])*(i[1]-o[1]))/p;return B=Math.max(0,Math.min(1,B)),Ce(q,Te(o,i,B))}function Te(q,o,i){return[q[0]+(o[0]-q[0])*i,q[1]+(o[1]-q[1])*i]}function we(q,o,i,p){const B=p||[];if(function(Y,ee){const ge=Y[ee+0],be=Y[ee+1],Re=Y[ee+2],Ze=Y[ee+3];let Be=3*be[0]-2*ge[0]-Ze[0];Be*=Be;let Ie=3*be[1]-2*ge[1]-Ze[1];Ie*=Ie;let Ke=3*Re[0]-2*Ze[0]-ge[0];Ke*=Ke;let Ye=3*Re[1]-2*Ze[1]-ge[1];return Ye*=Ye,Be<Ke&&(Be=Ke),Ie<Ye&&(Ie=Ye),Be+Ie}(q,o)<i){const Y=q[o+0];B.length?(A=B[B.length-1],X=Y,Math.sqrt(Ce(A,X))>1&&B.push(Y)):B.push(Y),B.push(q[o+3])}else{const ee=q[o+0],ge=q[o+1],be=q[o+2],Re=q[o+3],Ze=Te(ee,ge,.5),Be=Te(ge,be,.5),Ie=Te(be,Re,.5),Ke=Te(Ze,Be,.5),Ye=Te(Be,Ie,.5),tt=Te(Ke,Ye,.5);we([ee,Ze,Ke,tt],0,i,B),we([tt,Ye,Ie,Re],0,i,B)}var A,X;return B}function xe(q,o){return _e(q,0,q.length,o)}function _e(q,o,i,p,B){const A=B||[],X=q[o],Y=q[i-1];let ee=0,ge=1;for(let be=o+1;be<i-1;++be){const Re=We(q[be],X,Y);Re>ee&&(ee=Re,ge=be)}return Math.sqrt(ee)>p?(_e(q,o,ge+1,p,A),_e(q,ge,i,p,A)):(A.length||A.push(X),A.push(Y)),A}function Oe(q,o,i){const p=pe(he(de(q))),B=[];let A=[],X=[0,0],Y=[];const ee=()=>{Y.length>=4&&A.push(...function(Re,Ze=.15,Be){const Ie=[],Ke=(Re.length-1)/3;for(let Ye=0;Ye<Ke;Ye++)we(Re,3*Ye,Ze,Ie);return Be&&Be>0?_e(Ie,0,Ie.length,Be):Ie}(Y,o)),Y=[]},ge=()=>{ee(),A.length&&(B.push(A),A=[])};for(const{key:Re,data:Ze}of p)switch(Re){case"M":ge(),X=[Ze[0],Ze[1]],A.push(X);break;case"L":ee(),A.push([Ze[0],Ze[1]]);break;case"C":if(!Y.length){const Be=A.length?A[A.length-1]:X;Y.push([Be[0],Be[1]])}Y.push([Ze[0],Ze[1]]),Y.push([Ze[2],Ze[3]]),Y.push([Ze[4],Ze[5]]);break;case"Z":ee(),A.push([X[0],X[1]])}if(ge(),!i)return B;const be=[];for(const Re of B){const Ze=xe(Re,i);Ze.length&&be.push(Ze)}return be}const J="none";class ke{constructor(o){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=o||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return(0,u.W)()}_o(o){return o?Object.assign({},this.defaultOptions,o):this.defaultOptions}_d(o,i,p){return{shape:o,sets:i||[],options:p||this.defaultOptions}}line(o,i,p,B,A){const X=this._o(A);return this._d("line",[b(o,i,p,B,X)],X)}rectangle(o,i,p,B,A){const X=this._o(A),Y=[],ee=_(o,i,p,B,X);if(X.fill){const ge=[[o,i],[o+p,i],[o+p,i+B],[o,i+B]];X.fillStyle==="solid"?Y.push(w([ge],X)):Y.push(l([ge],X))}return X.stroke!==J&&Y.push(ee),this._d("rectangle",Y,X)}ellipse(o,i,p,B,A){const X=this._o(A),Y=[],ee=O(p,B,X),ge=s(o,i,X,ee);if(X.fill)if(X.fillStyle==="solid"){const be=s(o,i,X,ee).opset;be.type="fillPath",Y.push(be)}else Y.push(l([ge.estimatedPoints],X));return X.stroke!==J&&Y.push(ge.opset),this._d("ellipse",Y,X)}circle(o,i,p,B){const A=this.ellipse(o,i,p,p,B);return A.shape="circle",A}linearPath(o,i){const p=this._o(i);return this._d("linearPath",[R(o,!1,p)],p)}arc(o,i,p,B,A,X,Y=!1,ee){const ge=this._o(ee),be=[],Re=f(o,i,p,B,A,X,Y,!0,ge);if(Y&&ge.fill)if(ge.fillStyle==="solid"){const Ze=Object.assign({},ge);Ze.disableMultiStroke=!0;const Be=f(o,i,p,B,A,X,!0,!1,Ze);Be.type="fillPath",be.push(Be)}else be.push(function(Ze,Be,Ie,Ke,Ye,tt,ue){const ve=Ze,De=Be;let He=Math.abs(Ie/2),Je=Math.abs(Ke/2);He+=m(.01*He,ue),Je+=m(.01*Je,ue);let qe=Ye,st=tt;for(;qe<0;)qe+=2*Math.PI,st+=2*Math.PI;st-qe>2*Math.PI&&(qe=0,st=2*Math.PI);const ht=(st-qe)/ue.curveStepCount,et=[];for(let wt=qe;wt<=st;wt+=ht)et.push([ve+He*Math.cos(wt),De+Je*Math.sin(wt)]);return et.push([ve+He*Math.cos(st),De+Je*Math.sin(st)]),et.push([ve,De]),l([et],ue)}(o,i,p,B,A,X,ge));return ge.stroke!==J&&be.push(Re),this._d("arc",be,ge)}curve(o,i){const p=this._o(i),B=[],A=g(o,p);if(p.fill&&p.fill!==J&&o.length>=3)if(p.fillStyle==="solid"){const X=g(o,Object.assign(Object.assign({},p),{disableMultiStroke:!0,roughness:p.roughness?p.roughness+p.fillShapeRoughnessGain:0}));B.push({type:"fillPath",ops:this._mergedShape(X.ops)})}else{const X=function(ee,ge=0){const be=ee.length;if(be<3)throw new Error("A curve must have at least three points.");const Re=[];if(be===3)Re.push(V(ee[0]),V(ee[1]),V(ee[2]),V(ee[2]));else{const Ze=[];Ze.push(ee[0],ee[0]);for(let Ke=1;Ke<ee.length;Ke++)Ze.push(ee[Ke]),Ke===ee.length-1&&Ze.push(ee[Ke]);const Be=[],Ie=1-ge;Re.push(V(Ze[0]));for(let Ke=1;Ke+2<Ze.length;Ke++){const Ye=Ze[Ke];Be[0]=[Ye[0],Ye[1]],Be[1]=[Ye[0]+(Ie*Ze[Ke+1][0]-Ie*Ze[Ke-1][0])/6,Ye[1]+(Ie*Ze[Ke+1][1]-Ie*Ze[Ke-1][1])/6],Be[2]=[Ze[Ke+1][0]+(Ie*Ze[Ke][0]-Ie*Ze[Ke+2][0])/6,Ze[Ke+1][1]+(Ie*Ze[Ke][1]-Ie*Ze[Ke+2][1])/6],Be[3]=[Ze[Ke+1][0],Ze[Ke+1][1]],Re.push(Be[1],Be[2],Be[3])}}return Re}(o),Y=function(ee,ge=.15,be){const Re=[],Ze=(ee.length-1)/3;for(let Be=0;Be<Ze;Be++)re(ee,3*Be,ge,Re);return be&&be>0?me(Re,0,Re.length,be):Re}(X,10,(1+p.roughness)/2);B.push(l([Y],p))}return p.stroke!==J&&B.push(A),this._d("curve",B,p)}polygon(o,i){const p=this._o(i),B=[],A=R(o,!0,p);return p.fill&&(p.fillStyle==="solid"?B.push(w([o],p)):B.push(l([o],p))),p.stroke!==J&&B.push(A),this._d("polygon",B,p)}path(o,i){const p=this._o(i),B=[];if(!o)return this._d("path",B,p);o=(o||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const A=p.fill&&p.fill!=="transparent"&&p.fill!==J,X=p.stroke!==J,Y=!!(p.simplification&&p.simplification<1),ee=Oe(o,1,Y?4-4*(p.simplification||1):(1+p.roughness)/2),ge=t(o,p);if(A)if(p.fillStyle==="solid")if(ee.length===1){const be=t(o,Object.assign(Object.assign({},p),{disableMultiStroke:!0,roughness:p.roughness?p.roughness+p.fillShapeRoughnessGain:0}));B.push({type:"fillPath",ops:this._mergedShape(be.ops)})}else B.push(w(ee,p));else B.push(l(ee,p));return X&&(Y?ee.forEach(be=>{B.push(R(be,!1,p))}):B.push(ge)),this._d("path",B,p)}opsToPath(o,i){let p="";for(const B of o.ops){const A=typeof i=="number"&&i>=0?B.data.map(X=>+X.toFixed(i)):B.data;switch(B.op){case"move":p+=`M${A[0]} ${A[1]} `;break;case"bcurveTo":p+=`C${A[0]} ${A[1]}, ${A[2]} ${A[3]}, ${A[4]} ${A[5]} `;break;case"lineTo":p+=`L${A[0]} ${A[1]} `}}return p.trim()}toPaths(o){const i=o.sets||[],p=o.options||this.defaultOptions,B=[];for(const A of i){let X=null;switch(A.type){case"path":X={d:this.opsToPath(A),stroke:p.stroke,strokeWidth:p.strokeWidth,fill:J};break;case"fillPath":X={d:this.opsToPath(A),stroke:J,strokeWidth:0,fill:p.fill||J};break;case"fillSketch":X=this.fillSketch(A,p)}X&&B.push(X)}return B}fillSketch(o,i){let p=i.fillWeight;return p<0&&(p=i.strokeWidth/2),{d:this.opsToPath(o),stroke:i.fill||J,strokeWidth:p,fill:J}}_mergedShape(o){return o.filter((i,p)=>p===0||i.op!=="move")}}},8152:function(Se,Q,e){function D(){return Math.floor(Math.random()*2147483648)}e.d(Q,{W:function(){return D},k:function(){return E}});class E{constructor(h){this.seed=h}next(){return this.seed?(2147483647&(this.seed=Math.imul(48271,this.seed)))/2147483648:Math.random()}}},9845:function(Se,Q,e){e.d(Q,{Z:function(){return S}});var D=e(8128);class E{constructor(v,n){this.canvas=v,this.ctx=this.canvas.getContext("2d"),this.gen=new D.V(n)}draw(v){const n=v.sets||[],M=v.options||this.getDefaultOptions(),Z=this.ctx,H=v.options.fixedDecimalPlaceDigits;for(const W of n)switch(W.type){case"path":Z.save(),Z.strokeStyle=M.stroke==="none"?"transparent":M.stroke,Z.lineWidth=M.strokeWidth,M.strokeLineDash&&Z.setLineDash(M.strokeLineDash),M.strokeLineDashOffset&&(Z.lineDashOffset=M.strokeLineDashOffset),this._drawToContext(Z,W,H),Z.restore();break;case"fillPath":{Z.save(),Z.fillStyle=M.fill||"";const u=v.shape==="curve"||v.shape==="polygon"||v.shape==="path"?"evenodd":"nonzero";this._drawToContext(Z,W,H,u),Z.restore();break}case"fillSketch":this.fillSketch(Z,W,M)}}fillSketch(v,n,M){let Z=M.fillWeight;Z<0&&(Z=M.strokeWidth/2),v.save(),M.fillLineDash&&v.setLineDash(M.fillLineDash),M.fillLineDashOffset&&(v.lineDashOffset=M.fillLineDashOffset),v.strokeStyle=M.fill||"",v.lineWidth=Z,this._drawToContext(v,n,M.fixedDecimalPlaceDigits),v.restore()}_drawToContext(v,n,M,Z="nonzero"){v.beginPath();for(const H of n.ops){const W=typeof M=="number"&&M>=0?H.data.map(u=>+u.toFixed(M)):H.data;switch(H.op){case"move":v.moveTo(W[0],W[1]);break;case"bcurveTo":v.bezierCurveTo(W[0],W[1],W[2],W[3],W[4],W[5]);break;case"lineTo":v.lineTo(W[0],W[1])}}n.type==="fillPath"?v.fill(Z):v.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(v,n,M,Z,H){const W=this.gen.line(v,n,M,Z,H);return this.draw(W),W}rectangle(v,n,M,Z,H){const W=this.gen.rectangle(v,n,M,Z,H);return this.draw(W),W}ellipse(v,n,M,Z,H){const W=this.gen.ellipse(v,n,M,Z,H);return this.draw(W),W}circle(v,n,M,Z){const H=this.gen.circle(v,n,M,Z);return this.draw(H),H}linearPath(v,n){const M=this.gen.linearPath(v,n);return this.draw(M),M}polygon(v,n){const M=this.gen.polygon(v,n);return this.draw(M),M}arc(v,n,M,Z,H,W,u=!1,U){const le=this.gen.arc(v,n,M,Z,H,W,u,U);return this.draw(le),le}curve(v,n){const M=this.gen.curve(v,n);return this.draw(M),M}path(v,n){const M=this.gen.path(v,n);return this.draw(M),M}}const y="http://www.w3.org/2000/svg";class h{constructor(v,n){this.svg=v,this.gen=new D.V(n)}draw(v){const n=v.sets||[],M=v.options||this.getDefaultOptions(),Z=this.svg.ownerDocument||window.document,H=Z.createElementNS(y,"g"),W=v.options.fixedDecimalPlaceDigits;for(const u of n){let U=null;switch(u.type){case"path":U=Z.createElementNS(y,"path"),U.setAttribute("d",this.opsToPath(u,W)),U.setAttribute("stroke",M.stroke),U.setAttribute("stroke-width",M.strokeWidth+""),U.setAttribute("fill","none"),M.strokeLineDash&&U.setAttribute("stroke-dasharray",M.strokeLineDash.join(" ").trim()),M.strokeLineDashOffset&&U.setAttribute("stroke-dashoffset",`${M.strokeLineDashOffset}`);break;case"fillPath":U=Z.createElementNS(y,"path"),U.setAttribute("d",this.opsToPath(u,W)),U.setAttribute("stroke","none"),U.setAttribute("stroke-width","0"),U.setAttribute("fill",M.fill||""),v.shape!=="curve"&&v.shape!=="polygon"||U.setAttribute("fill-rule","evenodd");break;case"fillSketch":U=this.fillSketch(Z,u,M)}U&&H.appendChild(U)}return H}fillSketch(v,n,M){let Z=M.fillWeight;Z<0&&(Z=M.strokeWidth/2);const H=v.createElementNS(y,"path");return H.setAttribute("d",this.opsToPath(n,M.fixedDecimalPlaceDigits)),H.setAttribute("stroke",M.fill||""),H.setAttribute("stroke-width",Z+""),H.setAttribute("fill","none"),M.fillLineDash&&H.setAttribute("stroke-dasharray",M.fillLineDash.join(" ").trim()),M.fillLineDashOffset&&H.setAttribute("stroke-dashoffset",`${M.fillLineDashOffset}`),H}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(v,n){return this.gen.opsToPath(v,n)}line(v,n,M,Z,H){const W=this.gen.line(v,n,M,Z,H);return this.draw(W)}rectangle(v,n,M,Z,H){const W=this.gen.rectangle(v,n,M,Z,H);return this.draw(W)}ellipse(v,n,M,Z,H){const W=this.gen.ellipse(v,n,M,Z,H);return this.draw(W)}circle(v,n,M,Z){const H=this.gen.circle(v,n,M,Z);return this.draw(H)}linearPath(v,n){const M=this.gen.linearPath(v,n);return this.draw(M)}polygon(v,n){const M=this.gen.polygon(v,n);return this.draw(M)}arc(v,n,M,Z,H,W,u=!1,U){const le=this.gen.arc(v,n,M,Z,H,W,u,U);return this.draw(le)}curve(v,n){const M=this.gen.curve(v,n);return this.draw(M)}path(v,n){const M=this.gen.path(v,n);return this.draw(M)}}var S={canvas:(I,v)=>new E(I,v),svg:(I,v)=>new h(I,v),generator:I=>new D.V(I),newSeed:()=>D.V.newSeed()}},5714:function(Se){Se.exports=function(Q,e,D){var E=[],y=Q.length;if(y===0)return E;var h=e<0?Math.max(0,e+y):e||0;for(D!==void 0&&(y=D<0?D+y:D);y-- >h;)E[y-h]=Q[y];return E}},2173:function(Se,Q,e){var D=e(9787),E=typeof Object.is=="function"?Object.is:function(M,Z){return M===Z&&(M!==0||1/M==1/Z)||M!=M&&Z!=Z},y=D.useState,h=D.useEffect,S=D.useLayoutEffect,I=D.useDebugValue;function v(M){var Z=M.getSnapshot;M=M.value;try{var H=Z();return!E(M,H)}catch{return!0}}var n=typeof window>"u"||window.document===void 0||window.document.createElement===void 0?function(M,Z){return Z()}:function(M,Z){var H=Z(),W=y({inst:{value:H,getSnapshot:Z}}),u=W[0].inst,U=W[1];return S(function(){u.value=H,u.getSnapshot=Z,v(u)&&U({inst:u})},[M,H,Z]),h(function(){return v(u)&&U({inst:u}),M(function(){v(u)&&U({inst:u})})},[M]),I(H),H};Q.useSyncExternalStore=D.useSyncExternalStore!==void 0?D.useSyncExternalStore:n},5917:function(Se,Q,e){var D=e(9787),E=e(1374),y=typeof Object.is=="function"?Object.is:function(M,Z){return M===Z&&(M!==0||1/M==1/Z)||M!=M&&Z!=Z},h=E.useSyncExternalStore,S=D.useRef,I=D.useEffect,v=D.useMemo,n=D.useDebugValue;Q.useSyncExternalStoreWithSelector=function(M,Z,H,W,u){var U=S(null);if(U.current===null){var le={hasValue:!1,value:null};U.current=le}else le=U.current;U=v(function(){function he(b){if(!P){if(P=!0,pe=b,b=W(b),u!==void 0&&le.hasValue){var R=le.value;if(u(R,b))return oe=R}return oe=b}if(R=oe,y(pe,b))return R;var _=W(b);return u!==void 0&&u(R,_)?R:(pe=b,oe=_)}var pe,oe,P=!1,$=H===void 0?null:H;return[function(){return he(Z())},$===null?void 0:function(){return he($())}]},[Z,H,W,u]);var de=h(M,U[0],U[1]);return I(function(){le.hasValue=!0,le.value=de},[de]),n(de),de}},1374:function(Se,Q,e){Se.exports=e(2173)},5668:function(Se,Q,e){Se.exports=e(5917)},940:function(Se,Q,e){var D={"./ar-SA.json":[7822,2091],"./az-AZ.json":[9753,4568],"./bg-BG.json":[1203,1628],"./bn-BD.json":[8525,7429],"./ca-ES.json":[510,5130],"./cs-CZ.json":[7605,6265],"./da-DK.json":[2392,1790],"./de-DE.json":[2853,3082],"./el-GR.json":[9876,1513],"./en.json":[1463],"./es-ES.json":[2264,8759],"./eu-ES.json":[5658,8081],"./fa-IR.json":[3747,5330],"./fi-FI.json":[9490,3512],"./fr-FR.json":[7830,3682],"./gl-ES.json":[5199,2943],"./he-IL.json":[1994,2312],"./hi-IN.json":[4646,9828],"./hu-HU.json":[6373,7368],"./id-ID.json":[3247,3808],"./it-IT.json":[3257,6239],"./ja-JP.json":[198,1204],"./kaa.json":[7941,663],"./kab-KAB.json":[228,9551],"./kk-KZ.json":[8972,22],"./km-KH.json":[5845,6566],"./ko-KR.json":[7596,6844],"./ku-TR.json":[2508,3031],"./lt-LT.json":[3755,8340],"./lv-LV.json":[2327,6768],"./mr-IN.json":[5297,3397],"./my-MM.json":[7704,1477],"./nb-NO.json":[1167,2359],"./nl-NL.json":[290,3024],"./nn-NO.json":[4481,3885],"./oc-FR.json":[2284,1690],"./pa-IN.json":[6773,3162],"./percentages.json":[4451],"./pl-PL.json":[3661,3674],"./pt-BR.json":[8881,3721],"./pt-PT.json":[125,5395],"./ro-RO.json":[2013,5089],"./ru-RU.json":[2253,8124],"./si-LK.json":[5497,1302],"./sk-SK.json":[4570,8750],"./sl-SI.json":[1984,6071],"./sv-SE.json":[976,8534],"./ta-IN.json":[3952,2404],"./th-TH.json":[2596,537],"./tr-TR.json":[7315,4977],"./uk-UA.json":[3458,7759],"./vi-VN.json":[456,4e3],"./zh-CN.json":[1037,4680],"./zh-HK.json":[5334,7920],"./zh-TW.json":[931,3421]};function E(y){if(!e.o(D,y))return Promise.resolve().then(function(){var I=new Error("Cannot find module '"+y+"'");throw I.code="MODULE_NOT_FOUND",I});var h=D[y],S=h[0];return Promise.all(h.slice(1).map(e.e)).then(function(){return e.t(S,19)})}E.keys=function(){return Object.keys(D)},E.id=940,Se.exports=E},9713:function(Se){Se.exports=function(Q,e,D){return e in Q?Object.defineProperty(Q,e,{value:D,enumerable:!0,configurable:!0,writable:!0}):Q[e]=D,Q}},6479:function(Se,Q,e){var D=e(7316);Se.exports=function(E,y){if(E==null)return{};var h,S,I=D(E,y);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(E);for(S=0;S<v.length;S++)h=v[S],y.indexOf(h)>=0||Object.prototype.propertyIsEnumerable.call(E,h)&&(I[h]=E[h])}return I}},7316:function(Se){Se.exports=function(Q,e){if(Q==null)return{};var D,E,y={},h=Object.keys(Q);for(E=0;E<h.length;E++)D=h[E],e.indexOf(D)>=0||(y[D]=Q[D]);return y}},4295:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y),S=e(1667),I=e.n(S),v=new URL(e(3940),e.b),n=new URL(e(3147),e.b),M=new URL(e(8303),e.b),Z=new URL(e(1273),e.b),H=new URL(e(9577),e.b),W=new URL(e(9729),e.b),u=h()(E()),U=I()(v),le=I()(n),de=I()(M),he=I()(Z),pe=I()(H),oe=I()(W);u.push([Se.id,'@font-face{font-family:"Virgil";src:url('+U+');font-display:swap}@font-face{font-family:"Cascadia";src:url('+le+');font-display:swap}@font-face{font-family:"Assistant";src:url('+de+');font-display:swap;font-weight:400}@font-face{font-family:"Assistant";src:url('+he+');font-display:swap;font-weight:500}@font-face{font-family:"Assistant";src:url('+pe+');font-display:swap;font-weight:600}@font-face{font-family:"Assistant";src:url('+oe+");font-display:swap;font-weight:700}",""]),Q.Z=u},6086:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".zoom-actions,.undo-redo-buttons{background-color:var(--island-bg-color);border-radius:var(--border-radius-lg);box-shadow:0 0 0 1px var(--color-surface-lowest)}.zoom-button,.undo-redo-buttons button{border-radius:0 !important;background-color:var(--color-surface-low) !important;font-size:.875rem !important;width:var(--lg-button-size);height:var(--lg-button-size)}.zoom-button svg,.undo-redo-buttons button svg{width:var(--lg-icon-size) !important;height:var(--lg-icon-size) !important}.zoom-button .ToolIcon__icon,.undo-redo-buttons button .ToolIcon__icon{width:100%;height:100%}.reset-zoom-button{border-left:0 !important;border-right:0 !important;padding:0 .625rem !important;width:3.75rem !important;justify-content:center;color:var(--text-primary-color)}.zoom-out-button{border-top-left-radius:var(--border-radius-lg) !important;border-bottom-left-radius:var(--border-radius-lg) !important}:root[dir=rtl] .zoom-out-button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.zoom-out-button .ToolIcon__icon{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.zoom-in-button{border-top-right-radius:var(--border-radius-lg) !important;border-bottom-right-radius:var(--border-radius-lg) !important}:root[dir=rtl] .zoom-in-button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.zoom-in-button .ToolIcon__icon{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}.undo-redo-buttons .undo-button-container button{border-top-left-radius:var(--border-radius-lg) !important;border-bottom-left-radius:var(--border-radius-lg) !important;border-right:0 !important}:root[dir=rtl] .undo-redo-buttons .undo-button-container button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.undo-redo-buttons .undo-button-container button .ToolIcon__icon{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.undo-redo-buttons .redo-button-container button{border-top-right-radius:var(--border-radius-lg) !important;border-bottom-right-radius:var(--border-radius-lg) !important}:root[dir=rtl] .undo-redo-buttons .redo-button-container button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.undo-redo-buttons .redo-button-container button .ToolIcon__icon{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}",""]),Q.Z=h},3729:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Avatar{width:1.25rem;height:1.25rem;position:relative;border-radius:100%;outline-offset:2px;display:flex;justify-content:center;align-items:center;cursor:pointer;font-size:.75rem;font-weight:800;line-height:1}.excalidraw .Avatar-img{width:100%;height:100%;border-radius:100%}.excalidraw .Avatar::before{content:"";position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;border:1px solid var(--avatar-border-color);border-radius:100%}',""]),Q.Z=h},3137:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y),S=e(1667),I=e.n(S),v=new URL(e(7984),e.b),n=new URL(e(1639),e.b),M=h()(E()),Z=I()(v),H=I()(n);M.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--theme-filter: none;--button-destructive-bg-color: #ffe3e3;--button-destructive-color: #c92a2a;--button-gray-1: #e9ecef;--button-gray-2: #ced4da;--button-gray-3: #adb5bd;--button-special-active-bg-color: #ebfbee;--dialog-border-color: var(--color-gray-20);--dropdown-icon: url("+Z+");--focus-highlight-color: #a5d8ff;--icon-fill-color: var(--color-on-surface);--icon-green-fill-color: #2b8a3e;--default-bg-color: #ffffff;--input-bg-color: #ffffff;--input-border-color: #ced4da;--input-hover-bg-color: #f1f3f5;--input-label-color: #495057;--island-bg-color: #ffffff;--keybinding-color: var(--color-gray-40);--link-color: #1c7ed6;--overlay-bg-color: rgba(255, 255, 255, 0.88);--popup-bg-color: var(--island-bg-color);--popup-secondary-bg-color: #f1f3f5;--popup-text-color: #000000;--popup-text-inverted-color: #ffffff;--select-highlight-color: #339af0;--shadow-island: 0px 0px 0.9310142993927002px 0px rgba(0, 0, 0, 0.17), 0px 0px 3.1270833015441895px 0px rgba(0, 0, 0, 0.08), 0px 7px 14px 0px rgba(0, 0, 0, 0.05);--button-hover-bg: var(--color-surface-high);--button-active-bg: var(--color-surface-high);--button-active-border: var(--color-brand-active);--default-border-color: var(--color-surface-high);--default-button-size: 2rem;--default-icon-size: 1rem;--lg-button-size: 2.25rem;--lg-icon-size: 1rem;--editor-container-padding: 1rem;--scrollbar-thumb: var(--button-gray-2);--scrollbar-thumb-hover: var(--button-gray-3);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-20);--sidebar-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--sidebar-border-color: var(--color-surface-high);--sidebar-bg-color: var(--island-bg-color);--library-dropdown-shadow: 0px 15px 6px rgba(0, 0, 0, 0.01), 0px 8px 5px rgba(0, 0, 0, 0.05), 0px 4px 4px rgba(0, 0, 0, 0.09), 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1);--space-factor: 0.25rem;--text-primary-color: var(--color-on-surface);--color-selection: #6965db;--color-icon-white: #ffffff;--color-primary: #6965db;--color-primary-darker: #5b57d1;--color-primary-darkest: #4a47b1;--color-primary-light: #e3e2fe;--color-primary-light-darker: #d7d5ff;--color-gray-10: #f5f5f5;--color-gray-20: #ebebeb;--color-gray-30: #d6d6d6;--color-gray-40: #b8b8b8;--color-gray-50: #999999;--color-gray-60: #7a7a7a;--color-gray-70: #5c5c5c;--color-gray-80: #3d3d3d;--color-gray-85: #242424;--color-gray-90: #1e1e1e;--color-gray-100: #121212;--color-warning: #fceeca;--color-warning-dark: #f5c354;--color-warning-darker: #f3ab2c;--color-warning-darkest: #ec8b14;--color-text-warning: var(--text-primary-color);--color-danger: #db6965;--color-danger-dark: #db6965;--color-danger-darker: #d65550;--color-danger-darkest: #d1413c;--color-danger-text: black;--color-danger-background: #fff0f0;--color-danger-icon-background: #ffdad6;--color-danger-color: #700000;--color-danger-icon-color: #700000;--color-warning-background: var(--color-warning);--color-warning-icon-background: var(--color-warning-dark);--color-warning-color: var(--text-primary-color);--color-warning-icon-color: var(--text-primary-color);--color-muted: var(--color-gray-30);--color-muted-darker: var(--color-gray-60);--color-muted-darkest: var(--color-gray-100);--color-muted-background: var(--color-gray-80);--color-muted-background-darker: var(--color-gray-100);--color-promo: #e70078;--color-success: #268029;--color-success-lighter: #cafccc;--color-logo-icon: var(--color-primary);--color-logo-text: #190064;--border-radius-md: 0.375rem;--border-radius-lg: 0.5rem;--color-surface-high: hsl(244, 100%, 97%);--color-surface-mid: hsl(240 25% 96%);--color-surface-low: hsl(240 25% 94%);--color-surface-lowest: #ffffff;--color-on-surface: #1b1b1f;--color-brand-hover: #5753d0;--color-on-primary-container: #030064;--color-surface-primary-container: #e0dfff;--color-brand-active: #4440bf;--color-border-outline: #767680;--color-border-outline-variant: #c5c5d0;--color-surface-primary-container: #e0dfff}@media screen and (min-device-width: 1921px){.excalidraw{--lg-button-size: 2.5rem;--lg-icon-size: 1.25rem;--default-button-size: 2.25rem;--default-icon-size: 1.25rem}}.excalidraw.theme--dark.theme--dark-background-none{background:none}.excalidraw.theme--dark{--theme-filter: invert(93%) hue-rotate(180deg);--button-destructive-bg-color: #5a0000;--button-destructive-color: #ffa8a8;--button-gray-1: #363636;--button-gray-2: #272727;--button-gray-3: #222;--button-special-active-bg-color: #204624;--dialog-border-color: var(--color-gray-80);--dropdown-icon: url("+H+");--focus-highlight-color: #228be6;--icon-green-fill-color: #69db7c;--default-bg-color: #121212;--input-bg-color: #121212;--input-border-color: #2e2e2e;--input-hover-bg-color: #181818;--input-label-color: #e9ecef;--island-bg-color: #232329;--keybinding-color: var(--color-gray-60);--link-color: #4dabf7;--overlay-bg-color: rgba(52, 58, 64, 0.12);--popup-secondary-bg-color: #222;--popup-text-color: #ced4da;--popup-text-inverted-color: #2c2c2c;--select-highlight-color: #4dabf7;--shadow-island: 0px 0px 0.9310142993927002px 0px rgba(0, 0, 0, 0.17), 0px 0px 3.1270833015441895px 0px rgba(0, 0, 0, 0.08), 0px 7px 14px 0px rgba(0, 0, 0, 0.05);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-85);--scrollbar-thumb: #343a40;--scrollbar-thumb-hover: #495057;--color-selection: #3530c4;--color-icon-white: var(--color-gray-90);--color-primary: #a8a5ff;--color-primary-darker: #b2aeff;--color-primary-darkest: #beb9ff;--color-primary-light: #4f4d6f;--color-primary-light-darker: #43415e;--color-text-warning: var(--color-gray-80);--color-danger: #ffa8a5;--color-danger-dark: #672120;--color-danger-darker: #8f2625;--color-danger-darkest: #ac2b29;--color-danger-text: #fbcbcc;--color-danger-background: #fbcbcc;--color-danger-icon-background: #672120;--color-danger-color: #261919;--color-danger-icon-color: #fbcbcc;--color-warning-background: var(--color-warning);--color-warning-icon-background: var(--color-warning-dark);--color-warning-color: var(--color-gray-80);--color-warning-icon-color: var(--color-gray-80);--color-muted: var(--color-gray-80);--color-muted-darker: var(--color-gray-60);--color-muted-darkest: var(--color-gray-20);--color-muted-background: var(--color-gray-40);--color-muted-background-darker: var(--color-gray-20);--color-promo: #d297ff;--color-logo-text: #e2dfff;--color-surface-high: hsl(245, 10%, 21%);--color-surface-low: hsl(240, 8%, 15%);--color-surface-mid: hsl(240 6% 10%);--color-surface-lowest: hsl(0, 0%, 7%);--color-on-surface: #e3e3e8;--color-brand-hover: #bbb8ff;--color-on-primary-container: #e0dfff;--color-surface-primary-container: #403e6a;--color-brand-active: #d0ccff;--color-border-outline: #8e8d9c;--color-border-outline-variant: #46464f;--color-surface-primary-container: #403e6a}.excalidraw .excalidraw-button{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface))}.excalidraw .excalidraw-button svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .excalidraw-button:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .excalidraw-button:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .excalidraw-button.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .excalidraw-button.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .excalidraw-button.active svg{color:var(--button-color, var(--color-on-primary-container))}",""]),Q.Z=M},4241:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Card{display:flex;flex-direction:column;align-items:center;max-width:290px;margin:1em;text-align:center}.excalidraw .Card .Card-icon{font-size:2.6em;display:flex;flex:0 0 auto;padding:1.4rem;border-radius:50%;background:var(--card-color);color:#fff}.excalidraw .Card .Card-icon svg{width:2.8rem;height:2.8rem}.excalidraw .Card .Card-details{font-size:.96em;min-height:90px;padding:0 1em;margin-bottom:auto}.excalidraw .Card .Card-button.ToolIcon_type_button{height:2.5rem;margin-top:1em;margin-bottom:.3em;background-color:var(--card-color)}.excalidraw .Card .Card-button.ToolIcon_type_button:hover{background-color:var(--card-color-darker)}.excalidraw .Card .Card-button.ToolIcon_type_button:active{background-color:var(--card-color-darkest)}.excalidraw .Card .Card-button.ToolIcon_type_button .ToolIcon__label{color:#fff}.excalidraw .Card .Card-button.ToolIcon_type_button .Spinner{--spinner-color: #fff}",""]),Q.Z=h},6029:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Checkbox{margin:4px .3em;display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.excalidraw .Checkbox:hover:not(.is-checked) .Checkbox-box:not(:focus){box-shadow:0 0 0 2px #4dabf7}.excalidraw .Checkbox:hover:not(.is-checked) .Checkbox-box:not(:focus) svg{display:block;opacity:.3}.excalidraw .Checkbox:active .Checkbox-box{box-shadow:0 0 2px 1px inset #1c7ed6 !important}.excalidraw .Checkbox:hover .Checkbox-box{background-color:rgba(208,235,255,.2)}.excalidraw .Checkbox.is-checked .Checkbox-box{background-color:#d0ebff}.excalidraw .Checkbox.is-checked .Checkbox-box svg{display:block}.excalidraw .Checkbox.is-checked:hover .Checkbox-box{background-color:#a5d8ff}.excalidraw .Checkbox .Checkbox-box{width:22px;height:22px;padding:0;flex:0 0 auto;margin:0 1em;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px #1c7ed6;background-color:rgba(0,0,0,0);border-radius:4px;color:#1c7ed6;border:0}.excalidraw .Checkbox .Checkbox-box:focus{box-shadow:0 0 0 3px #1c7ed6}.excalidraw .Checkbox .Checkbox-box svg{display:none;width:16px;height:16px;stroke-width:3px}.excalidraw .Checkbox .Checkbox-label{display:flex;align-items:center}.excalidraw .Checkbox .excalidraw-tooltip-icon{width:1em;height:1em}",""]),Q.Z=h},4269:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y),S=e(1667),I=e.n(S),v=new URL(e(9669),e.b),n=h()(E()),M=I()(v);n.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .focus-visible-none:focus-visible{outline:none !important}.excalidraw .color-picker__heading{padding:0 .5rem;font-size:.75rem;text-align:left}.excalidraw .color-picker-container{display:grid;grid-template-columns:1fr 20px 1.625rem;padding:.25rem 0px;align-items:center}.excalidraw--mobile.excalidraw .color-picker-container{max-width:175px}.excalidraw .color-picker__top-picks{display:flex;justify-content:space-between}.excalidraw .color-picker__button{--radius: 0.25rem;padding:0;margin:0;width:1.35rem;height:1.35rem;border:1px solid var(--color-gray-30);border-radius:var(--radius);-webkit-filter:var(--theme-filter);filter:var(--theme-filter);background-color:var(--swatch-color);background-position:left center;position:relative;font-family:inherit;box-sizing:border-box}.excalidraw .color-picker__button:hover::after{content:"";position:absolute;top:-2px;left:-2px;right:-2px;bottom:-2px;box-shadow:0 0 0 1px var(--color-gray-30);border-radius:calc(var(--radius) + 1px);-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .color-picker__button.active .color-picker__button-outline{position:absolute;top:-2px;left:-2px;right:-2px;bottom:-2px;box-shadow:0 0 0 1px var(--color-primary-darkest);z-index:1;border-radius:calc(var(--radius) + 1px);-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .color-picker__button:focus-visible{outline:none}.excalidraw .color-picker__button:focus-visible::after{content:"";position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border:3px solid var(--focus-highlight-color);border-radius:calc(var(--radius) + 1px)}.excalidraw .color-picker__button:focus-visible.active .color-picker__button-outline{display:none}.excalidraw .color-picker__button--large{--radius: 0.5rem;width:1.875rem;height:1.875rem}.excalidraw .color-picker__button.is-transparent{background-image:url('+M+")}.excalidraw .color-picker__button--no-focus-visible{border:0}.excalidraw .color-picker__button--no-focus-visible::after{display:none}.excalidraw .color-picker__button--no-focus-visible:focus-visible{outline:none !important}.excalidraw .color-picker__button.active-color{border-radius:calc(var(--radius) + 1px);width:1.625rem;height:1.625rem}.excalidraw .color-picker__button__hotkey-label{position:absolute;right:4px;bottom:4px;-webkit-filter:none;filter:none;font-size:11px}.excalidraw .color-picker{background:var(--popup-bg-color);border:0 solid rgba(255,255,255,.25);box-shadow:rgba(0,0,0,.25) 0 1px 4px;border-radius:4px;position:absolute}:root[dir=ltr] .excalidraw .color-picker{left:-5.5px}:root[dir=rtl] .excalidraw .color-picker{right:-5.5px}.excalidraw .color-picker-control-container{display:grid;grid-template-columns:auto 1fr;align-items:center;-webkit-column-gap:.5rem;column-gap:.5rem}.excalidraw .color-picker-control-container+.popover{position:static}.excalidraw .color-picker-popover-container{margin-top:-0.25rem}:root[dir=ltr] .excalidraw .color-picker-popover-container{margin-left:.5rem}:root[dir=rtl] .excalidraw .color-picker-popover-container{margin-left:-3rem}.excalidraw .color-picker-triangle{width:0;height:0;border-style:solid;border-width:0 9px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) var(--popup-bg-color);position:absolute;top:10px}:root[dir=ltr] .excalidraw .color-picker-triangle{-webkit-transform:rotate(270deg);transform:rotate(270deg);left:-14px}:root[dir=rtl] .excalidraw .color-picker-triangle{-webkit-transform:rotate(90deg);transform:rotate(90deg);right:-14px}.excalidraw .color-picker-triangle-shadow{border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,.1)}:root[dir=ltr] .excalidraw .color-picker-triangle-shadow{left:-14px}:root[dir=rtl] .excalidraw .color-picker-triangle-shadow{right:-16px}.excalidraw .color-picker-content{display:flex;flex-direction:column;gap:.75rem;outline:none}.excalidraw .color-picker-content--default{padding:.5rem;display:grid;grid-template-columns:repeat(5, 1.875rem);grid-gap:.25rem;border-radius:4px}.excalidraw .color-picker-content--default:focus{outline:none;box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .color-picker-content--canvas{display:flex;flex-direction:column;padding:.25rem}.excalidraw .color-picker-content--canvas-title{color:#868e96;font-size:12px;padding:0 .25rem}.excalidraw .color-picker-content--canvas-colors{padding:.5rem 0}.excalidraw .color-picker-content--canvas-colors .color-picker-swatch{margin:0 .25rem}.excalidraw .color-picker-content .color-input-container{grid-column:1/span 5}.excalidraw .color-picker-swatch{position:relative;height:1.875rem;width:1.875rem;cursor:pointer;border-radius:4px;margin:0;box-sizing:border-box;border:1px solid #ddd;background-color:currentColor !important;-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .color-picker-swatch:focus{box-shadow:0 0 4px 1px currentColor;border-color:var(--select-highlight-color)}.excalidraw .color-picker-transparent{border-radius:4px;box-shadow:rgba(0,0,0,.1) 0 0 0 1px inset;position:absolute;top:0;right:0;bottom:0;left:0}.excalidraw .color-picker-transparent,.excalidraw .color-picker-label-swatch{background:url("+M+') left center}.excalidraw .color-picker-hash{height:var(--default-button-size);flex-shrink:0;padding:.5rem .5rem .5rem .75rem;border:1px solid var(--default-border-color);border-right:0;box-sizing:border-box;color:var(--input-label-color);display:flex;align-items:center;justify-content:center;position:relative}:root[dir=ltr] .excalidraw .color-picker-hash{border-radius:var(--border-radius-lg) 0 0 var(--border-radius-lg)}:root[dir=rtl] .excalidraw .color-picker-hash{border-radius:0 var(--border-radius-lg) var(--border-radius-lg) 0;border-right:1px solid var(--default-border-color);border-left:0}.excalidraw .color-input-container{display:flex}.excalidraw .color-input-container:focus-within{box-shadow:0 0 0 1px var(--color-primary-darkest);border-radius:var(--border-radius-lg)}.excalidraw .color-picker__input-label{display:grid;grid-template-columns:auto 1fr auto auto;gap:8px;align-items:center;border:1px solid var(--default-border-color);border-radius:8px;padding:0 12px;margin:8px;box-sizing:border-box}.excalidraw .color-picker__input-label:focus-within{box-shadow:0 0 0 1px var(--color-primary-darkest);border-radius:var(--border-radius-lg)}.excalidraw .color-picker__input-hash{padding:0 .25rem}.excalidraw .color-picker-input{box-sizing:border-box;width:100%;margin:0;font-size:.875rem;font-family:inherit;background-color:rgba(0,0,0,0);color:var(--text-primary-color);border:0;outline:none;height:var(--default-button-size);border:1px solid var(--default-border-color);border-left:0;letter-spacing:.4px;padding:.5rem;padding-left:.25rem;-webkit-appearance:none;appearance:none}:root[dir=ltr] .excalidraw .color-picker-input{border-radius:0 var(--border-radius-lg) var(--border-radius-lg) 0}:root[dir=rtl] .excalidraw .color-picker-input{border-radius:var(--border-radius-lg) 0 0 var(--border-radius-lg);border-left:1px solid var(--default-border-color);border-right:0}.excalidraw .color-picker-input:focus-visible{box-shadow:none}.excalidraw .color-picker-label-swatch-container{border:1px solid var(--default-border-color);border-radius:var(--border-radius-lg);width:var(--default-button-size);height:var(--default-button-size);box-sizing:border-box;overflow:hidden}.excalidraw .color-picker-label-swatch{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));background-color:var(--swatch-color) !important;overflow:hidden;position:relative;-webkit-filter:var(--theme-filter);filter:var(--theme-filter);border:0 !important}.excalidraw .color-picker-label-swatch svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .color-picker-label-swatch:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .color-picker-label-swatch:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .color-picker-label-swatch.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .color-picker-label-swatch.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .color-picker-label-swatch.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw .color-picker-label-swatch:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--swatch-color)}.excalidraw .color-picker-keybinding{position:absolute;bottom:2px;font-size:.7em}:root[dir=ltr] .excalidraw .color-picker-keybinding{right:2px}:root[dir=rtl] .excalidraw .color-picker-keybinding{left:2px}.excalidraw--mobile.excalidraw .color-picker-keybinding{display:none}.excalidraw .color-picker-type-canvasBackground .color-picker-keybinding{color:#aaa}.excalidraw .color-picker-type-elementBackground .color-picker-keybinding{color:#fff}.excalidraw .color-picker-swatch[aria-label=transparent] .color-picker-keybinding{color:#aaa}.excalidraw .color-picker-type-elementStroke .color-picker-keybinding{color:#d4d4d4}.excalidraw.theme--dark .color-picker-type-elementBackground .color-picker-keybinding{color:#000}.excalidraw.theme--dark .color-picker-swatch[aria-label=transparent] .color-picker-keybinding{color:#000}',""]),Q.Z=n},9393:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .confirm-dialog-buttons{display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;justify-content:flex-end}",""]),Q.Z=h},6578:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .context-menu{position:relative;border-radius:4px;box-shadow:0 3px 10px rgba(0,0,0,.2);padding:0;list-style:none;-webkit-user-select:none;user-select:none;margin:-0.25rem 0 0 .125rem;padding:.5rem 0;background-color:var(--popup-secondary-bg-color);border:1px solid var(--button-gray-3);cursor:default}.excalidraw .context-menu button{color:var(--popup-text-color)}.excalidraw .context-menu-item{position:relative;width:100%;min-width:9.5rem;margin:0;padding:.25rem 1rem .25rem 1.25rem;text-align:start;border-radius:0;background-color:rgba(0,0,0,0);border:none;white-space:nowrap;font-family:inherit;display:grid;grid-template-columns:1fr .2fr;align-items:center}.excalidraw .context-menu-item.checkmark::before{position:absolute;left:6px;margin-bottom:1px;content:"✓"}.excalidraw .context-menu-item.dangerous .context-menu-item__label{color:#f03e3e}.excalidraw .context-menu-item .context-menu-item__label{justify-self:start;-webkit-margin-end:20px;margin-inline-end:20px}.excalidraw .context-menu-item .context-menu-item__shortcut{justify-self:end;opacity:.6;font-family:inherit;font-size:.7rem}.excalidraw .context-menu-item:hover{color:var(--popup-bg-color);background-color:var(--select-highlight-color)}.excalidraw .context-menu-item:hover.dangerous{background-color:#fa5252}.excalidraw .context-menu-item:hover.dangerous .context-menu-item__label{color:var(--popup-bg-color)}.excalidraw .context-menu-item:focus{z-index:1}.excalidraw--mobile.excalidraw .context-menu-item{display:block}.excalidraw--mobile.excalidraw .context-menu-item .context-menu-item__label{-webkit-margin-end:0;margin-inline-end:0}.excalidraw--mobile.excalidraw .context-menu-item .context-menu-item__shortcut{display:none}.excalidraw .context-menu-item-separator{border:none;border-top:1px solid #adb5bd}',""]),Q.Z=h},9482:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Dialog{-webkit-user-select:text;user-select:text;cursor:auto}.excalidraw .Dialog__title{margin:0;text-align:left;font-size:1.25rem;border-bottom:1px solid var(--dialog-border-color);padding:0 0 .75rem;margin-bottom:1.5rem}.excalidraw .Dialog__close{color:var(--color-gray-40);margin:0;position:absolute;top:.75rem;right:.5rem;border:0;background-color:rgba(0,0,0,0);line-height:0;cursor:pointer}.excalidraw .Dialog__close:hover{color:var(--color-gray-60)}.excalidraw .Dialog__close:active{color:var(--color-gray-40)}.excalidraw .Dialog__close svg{width:1.5rem;height:1.5rem}.excalidraw .Dialog--fullscreen .Dialog__close{top:1.25rem;right:1.25rem}",""]),Q.Z=h},6148:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .Dialog__action-button{position:relative;display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;align-items:center;padding:.5rem 1.5rem;border:1px solid var(--default-border-color);background-color:rgba(0,0,0,0);height:3rem;border-radius:var(--border-radius-lg);letter-spacing:.4px;color:inherit;font-family:inherit;font-size:.875rem;font-weight:600;-webkit-user-select:none;user-select:none}.excalidraw .Dialog__action-button svg{display:block;width:1rem;height:1rem}.excalidraw .Dialog__action-button--danger{background-color:var(--color-danger);border-color:var(--color-danger);color:#fff}.excalidraw .Dialog__action-button--primary{background-color:var(--color-primary);border-color:var(--color-primary);color:#fff}.excalidraw.theme--dark .Dialog__action-button--danger{color:var(--color-gray-100)}.excalidraw.theme--dark .Dialog__action-button--primary{color:var(--color-gray-100)}",""]),Q.Z=h},5744:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .ExcalidrawLogo{--logo-icon--xs: 2rem;--logo-text--xs: 1.5rem;--logo-icon--small: 2.5rem;--logo-text--small: 1.75rem;--logo-icon--normal: 3rem;--logo-text--normal: 2.2rem;--logo-icon--large: 90px;--logo-text--large: 65px;display:flex;align-items:center}.excalidraw .ExcalidrawLogo svg{flex:0 0 auto}.excalidraw .ExcalidrawLogo .ExcalidrawLogo-icon{width:auto;color:var(--color-logo-icon)}.excalidraw .ExcalidrawLogo .ExcalidrawLogo-text{margin-left:.75rem;width:auto;color:var(--color-logo-text)}.excalidraw .ExcalidrawLogo.is-xs .ExcalidrawLogo-icon{height:var(--logo-icon--xs)}.excalidraw .ExcalidrawLogo.is-xs .ExcalidrawLogo-text{height:var(--logo-text--xs)}.excalidraw .ExcalidrawLogo.is-small .ExcalidrawLogo-icon{height:var(--logo-icon--small)}.excalidraw .ExcalidrawLogo.is-small .ExcalidrawLogo-text{height:var(--logo-text--small)}.excalidraw .ExcalidrawLogo.is-normal .ExcalidrawLogo-icon{height:var(--logo-icon--normal)}.excalidraw .ExcalidrawLogo.is-normal .ExcalidrawLogo-text{height:var(--logo-text--normal)}.excalidraw .ExcalidrawLogo.is-large .ExcalidrawLogo-icon{height:var(--logo-icon--large)}.excalidraw .ExcalidrawLogo.is-large .ExcalidrawLogo-text{height:var(--logo-text--large)}",""]),Q.Z=h},7955:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y),S=e(1667),I=e.n(S),v=new URL(e(9669),e.b),n=h()(E()),M=I()(v);n.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .ExportDialog__preview{--preview-padding: calc(var(--space-factor) * 4);background:url("+M+") left center;text-align:center;padding:var(--preview-padding);margin-bottom:calc(var(--space-factor)*3);display:flex;justify-content:center;align-items:center}.excalidraw .ExportDialog__preview canvas{max-width:calc(100% - var(--preview-padding)*2);max-height:25rem}.excalidraw.theme--dark .ExportDialog__preview canvas{-webkit-filter:none;filter:none}.excalidraw .ExportDialog__actions{width:100%;display:flex;grid-gap:calc(var(--space-factor)*2);align-items:top;justify-content:space-between}.excalidraw--mobile.excalidraw .ExportDialog{display:flex;flex-direction:column}.excalidraw--mobile.excalidraw .ExportDialog__actions{flex-direction:column;align-items:center}.excalidraw--mobile.excalidraw .ExportDialog__actions>*{margin-bottom:calc(var(--space-factor)*3)}.excalidraw--mobile.excalidraw .ExportDialog__preview canvas{max-height:30vh}.excalidraw--mobile.excalidraw .ExportDialog__dialog,.excalidraw--mobile.excalidraw .ExportDialog__dialog .Island{height:100%;box-sizing:border-box}.excalidraw--mobile.excalidraw .ExportDialog__dialog .Island{overflow-y:auto}.excalidraw .ExportDialog--json .ExportDialog-cards{display:grid;grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));justify-items:center;row-gap:2em}@media(max-width: 460px){.excalidraw .ExportDialog--json .ExportDialog-cards{grid-template-columns:repeat(auto-fit, minmax(240px, 1fr))}.excalidraw .ExportDialog--json .ExportDialog-cards .Card-details{min-height:40px}}.excalidraw .ExportDialog--json .ExportDialog-cards .ProjectName{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:1em auto;align-items:flex-start;flex-direction:column}.excalidraw .ExportDialog--json .ExportDialog-cards .ProjectName .TextInput{width:auto}.excalidraw .ExportDialog--json .ExportDialog-cards .ProjectName-label{margin:.625em 0;font-weight:bold}.excalidraw button.ExportDialog-imageExportButton{border:0;width:5rem;height:5rem;margin:0 .2em;padding:0;display:flex;align-items:center;justify-content:center;border-radius:1rem;background-color:var(--button-color);box-shadow:0 3px 5px -1px rgba(0,0,0,.28),0 6px 10px 0 rgba(0,0,0,.14);font-family:Cascadia;font-size:1.8em;color:#fff}.excalidraw button.ExportDialog-imageExportButton:hover{background-color:var(--button-color-darker)}.excalidraw button.ExportDialog-imageExportButton:active{background-color:var(--button-color-darkest);box-shadow:none}.excalidraw button.ExportDialog-imageExportButton svg{width:.9em}",""]),Q.Z=n},7522:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .excalidraw-eye-dropper-container,.excalidraw .excalidraw-eye-dropper-backdrop{position:absolute;width:100%;height:100%;z-index:var(--zIndex-eyeDropperBackdrop);touch-action:none}.excalidraw .excalidraw-eye-dropper-container{pointer-events:none}.excalidraw .excalidraw-eye-dropper-backdrop{pointer-events:all}.excalidraw .excalidraw-eye-dropper-preview{pointer-events:none;width:3rem;height:3rem;position:fixed;z-index:var(--zIndex-eyeDropperPreview);border-radius:1rem;border:1px solid var(--default-border-color);-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .excalidraw-eye-dropper-trigger{width:1.25rem;height:1.25rem;cursor:pointer;padding:4px;margin-right:-4px;margin-left:-2px;border-radius:.5rem;color:var(--icon-fill-color)}.excalidraw .excalidraw-eye-dropper-trigger:hover{background:var(--button-hover-bg)}.excalidraw .excalidraw-eye-dropper-trigger.selected{color:var(--color-primary);background:var(--color-primary-light)}",""]),Q.Z=h},8960:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .ExcButton{--text-color: transparent;--border-color: transparent;--back-color: transparent;color:var(--text-color);background-color:var(--back-color);border-color:var(--border-color);display:flex;justify-content:center;align-items:center;flex-shrink:0;flex-wrap:nowrap;border-radius:.5rem;border-width:1px;border-style:solid;font-family:"Assistant";-webkit-user-select:none;user-select:none;transition:all 150ms ease-out}.excalidraw .ExcButton--color-primary.ExcButton--variant-filled{--text-color: var(--color-surface-lowest);--back-color: var(--color-primary)}.excalidraw .ExcButton--color-primary.ExcButton--variant-filled:hover{--back-color: var(--color-brand-hover)}.excalidraw .ExcButton--color-primary.ExcButton--variant-filled:active{--back-color: var(--color-brand-active)}.excalidraw .ExcButton--color-primary.ExcButton--variant-outlined,.excalidraw .ExcButton--color-primary.ExcButton--variant-icon{--text-color: var(--color-primary);--border-color: var(--color-border-outline);--back-color: transparent}.excalidraw .ExcButton--color-primary.ExcButton--variant-outlined:hover,.excalidraw .ExcButton--color-primary.ExcButton--variant-icon:hover{--text-color: var(--color-brand-hover);--border-color: var(--color-brand-hover)}.excalidraw .ExcButton--color-primary.ExcButton--variant-outlined:active,.excalidraw .ExcButton--color-primary.ExcButton--variant-icon:active{--text-color: var(--color-brand-active);--border-color: var(--color-brand-active)}.excalidraw .ExcButton--color-danger.ExcButton--variant-filled{--text-color: var(--color-danger-text);--back-color: var(--color-danger-dark)}.excalidraw .ExcButton--color-danger.ExcButton--variant-filled:hover{--back-color: var(--color-danger-darker)}.excalidraw .ExcButton--color-danger.ExcButton--variant-filled:active{--back-color: var(--color-danger-darkest)}.excalidraw .ExcButton--color-danger.ExcButton--variant-outlined,.excalidraw .ExcButton--color-danger.ExcButton--variant-icon{--text-color: var(--color-danger);--border-color: var(--color-danger);--back-color: transparent}.excalidraw .ExcButton--color-danger.ExcButton--variant-outlined:hover,.excalidraw .ExcButton--color-danger.ExcButton--variant-icon:hover{--text-color: var(--color-danger-darkest);--border-color: var(--color-danger-darkest)}.excalidraw .ExcButton--color-danger.ExcButton--variant-outlined:active,.excalidraw .ExcButton--color-danger.ExcButton--variant-icon:active{--text-color: var(--color-danger-darker);--border-color: var(--color-danger-darker)}.excalidraw .ExcButton--color-muted.ExcButton--variant-filled{--text-color: var(--island-bg-color);--back-color: var(--color-gray-50)}.excalidraw .ExcButton--color-muted.ExcButton--variant-filled:hover{--back-color: var(--color-gray-60)}.excalidraw .ExcButton--color-muted.ExcButton--variant-filled:active{--back-color: var(--color-gray-80)}.excalidraw .ExcButton--color-muted.ExcButton--variant-outlined,.excalidraw .ExcButton--color-muted.ExcButton--variant-icon{--text-color: var(--color-muted-background);--border-color: var(--color-muted);--back-color: var(--island-bg-color)}.excalidraw .ExcButton--color-muted.ExcButton--variant-outlined:hover,.excalidraw .ExcButton--color-muted.ExcButton--variant-icon:hover{--text-color: var(--color-muted-background-darker);--border-color: var(--color-muted-darker)}.excalidraw .ExcButton--color-muted.ExcButton--variant-outlined:active,.excalidraw .ExcButton--color-muted.ExcButton--variant-icon:active{--text-color: var(--color-muted-background-darker);--border-color: var(--color-muted-darkest)}.excalidraw .ExcButton--color-warning.ExcButton--variant-filled{--text-color: black;--back-color: var(--color-warning-dark)}.excalidraw .ExcButton--color-warning.ExcButton--variant-filled:hover{--back-color: var(--color-warning-darker)}.excalidraw .ExcButton--color-warning.ExcButton--variant-filled:active{--back-color: var(--color-warning-darkest)}.excalidraw .ExcButton--color-warning.ExcButton--variant-outlined,.excalidraw .ExcButton--color-warning.ExcButton--variant-icon{--text-color: var(--color-warning-dark);--border-color: var(--color-warning-dark);--back-color: var(--input-bg-color)}.excalidraw .ExcButton--color-warning.ExcButton--variant-outlined:hover,.excalidraw .ExcButton--color-warning.ExcButton--variant-icon:hover{--text-color: var(--color-warning-darker);--border-color: var(--color-warning-darker)}.excalidraw .ExcButton--color-warning.ExcButton--variant-outlined:active,.excalidraw .ExcButton--color-warning.ExcButton--variant-icon:active{--text-color: var(--color-warning-darkest);--border-color: var(--color-warning-darkest)}.excalidraw .ExcButton--size-large{font-weight:600;font-size:.875rem;min-height:3rem;padding:.5rem 1.5rem;gap:.75rem;letter-spacing:.4px}.excalidraw .ExcButton--size-medium{font-weight:600;font-size:.75rem;min-height:2.5rem;padding:.5rem 1rem;gap:.5rem;letter-spacing:normal}.excalidraw .ExcButton--variant-icon{padding:.5rem .75rem;width:3rem}.excalidraw .ExcButton--fullWidth{width:100%}.excalidraw .ExcButton__icon{width:1.25rem;height:1.25rem}',""]),Q.Z=h},3195:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .FixedSideContainer{position:absolute;pointer-events:none}.excalidraw .FixedSideContainer>*{pointer-events:var(--ui-pointerEvents)}.excalidraw .FixedSideContainer_side_top{left:var(--editor-container-padding);top:var(--editor-container-padding);right:var(--editor-container-padding);bottom:var(--editor-container-padding);z-index:2}.excalidraw .FixedSideContainer_side_top.zen-mode{right:42px}",""]),Q.Z=h},2978:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .HelpDialog .Modal__content{max-width:960px}.excalidraw .HelpDialog h3{margin:1.5rem 0;font-weight:bold;font-size:1.125rem}.excalidraw .HelpDialog__header{display:flex;flex-wrap:wrap;gap:.75rem}.excalidraw .HelpDialog__btn{--background: var(--color-surface-mid);display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;align-items:center;background-color:var(--background);padding:.625rem 1rem;border:1px solid var(--background);border-radius:var(--border-radius-lg);color:var(--text-primary-color);font-weight:600;font-size:.75rem;letter-spacing:.4px}.excalidraw.theme--dark.excalidraw .HelpDialog__btn{--background: var(--color-surface-high)}.excalidraw.theme--dark.excalidraw .HelpDialog__btn:hover{--background: #363541}.excalidraw .HelpDialog__btn:hover{--background: var(--color-surface-high);text-decoration:none}.excalidraw .HelpDialog__btn:active{border-color:var(--color-primary)}.excalidraw .HelpDialog__link-icon{line-height:0}.excalidraw .HelpDialog__link-icon svg{width:1rem;height:1rem}.excalidraw .HelpDialog__islands-container{display:grid;grid-column-gap:1.5rem;grid-row-gap:2rem}@media screen and (min-width: 1024px){.excalidraw .HelpDialog__islands-container{grid-template-columns:1fr 1fr}}@media screen and (min-width: 1024px){.excalidraw .HelpDialog__island--tools{grid-area:1/1/2/2}.excalidraw .HelpDialog__island--view{grid-area:2/1/3/2}.excalidraw .HelpDialog__island--editor{grid-area:1/2/3/3}}.excalidraw .HelpDialog__island h4{font-size:1rem;font-weight:bold;margin:0;margin-bottom:.625rem}.excalidraw .HelpDialog__island-content{border:1px solid var(--dialog-border-color);border-radius:var(--border-radius-lg)}.excalidraw .HelpDialog__shortcut{border-bottom:1px solid var(--dialog-border-color);padding:.375rem .75rem;display:flex;justify-content:space-between;align-items:center;font-size:.875rem;-webkit-column-gap:.5rem;column-gap:.5rem}.excalidraw .HelpDialog__shortcut:last-child{border-bottom:none}.excalidraw .HelpDialog__key-container{display:flex;align-items:center;-webkit-column-gap:.25rem;column-gap:.25rem;flex-shrink:0}.excalidraw .HelpDialog__key{display:flex;box-sizing:border-box;font-size:.625rem;background-color:var(--color-primary-light);border-radius:var(--border-radius-md);padding:.5rem;word-break:keep-all;align-items:center;font-family:inherit;line-height:1}",""]),Q.Z=h},1587:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .HintViewer{pointer-events:none;box-sizing:border-box;position:absolute;display:flex;justify-content:center;left:0;top:100%;max-width:100%;width:100%;margin-top:.5rem;text-align:center;color:var(--color-gray-40);font-size:.75rem}.excalidraw--mobile.excalidraw .HintViewer{position:static;padding-right:2rem}.excalidraw .HintViewer>span{padding:.25rem}.excalidraw.theme--dark .HintViewer{color:var(--color-gray-60)}",""]),Q.Z=h},9478:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .picker-container{display:inline-block;box-sizing:border-box;margin-right:.25rem}.excalidraw .picker{background:var(--popup-bg-color);border:0 solid rgba(255,255,255,.25);box-shadow:rgba(0,0,0,.25) 2px 2px 4px 2px;border-radius:4px;position:absolute}.excalidraw .picker-container button,.excalidraw .picker button{position:relative;display:flex;align-items:center;justify-content:center}.excalidraw .picker-container button:focus-visible,.excalidraw .picker button:focus-visible{outline:rgba(0,0,0,0);background-color:var(--button-gray-2)}.excalidraw .picker-container button:focus-visible svg,.excalidraw .picker button:focus-visible svg{opacity:1}.excalidraw .picker-container button:hover,.excalidraw .picker button:hover{background-color:var(--button-gray-2)}.excalidraw .picker-container button:active,.excalidraw .picker button:active{background-color:var(--button-gray-3)}.excalidraw .picker-container button:disabled,.excalidraw .picker button:disabled{cursor:not-allowed}.excalidraw .picker-container button svg,.excalidraw .picker button svg{margin:0;width:36px;height:18px;pointer-events:none}.excalidraw .picker button{padding:.25rem .28rem .35rem .25rem}.excalidraw .picker-triangle{width:0;height:0;position:relative;top:-10px;z-index:10}:root[dir=ltr] .excalidraw .picker-triangle{left:12px}:root[dir=rtl] .excalidraw .picker-triangle{right:12px}.excalidraw .picker-triangle:before{content:"";position:absolute;border-style:solid;border-width:0 9px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,.1);top:-1px}.excalidraw .picker-triangle:after{content:"";position:absolute;border-style:solid;border-width:0 9px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) var(--popup-bg-color)}.excalidraw .picker-content{padding:.5rem;display:grid;grid-template-columns:repeat(3, auto);grid-gap:.5rem;border-radius:4px}:root[dir=rtl] .excalidraw .picker-content{padding:.4rem}.excalidraw .picker-keybinding{position:absolute;bottom:2px;font-size:.7em;color:var(--keybinding-color)}:root[dir=ltr] .excalidraw .picker-keybinding{right:2px}:root[dir=rtl] .excalidraw .picker-keybinding{left:2px}.excalidraw--mobile.excalidraw .picker-keybinding{display:none}.excalidraw .picker-type-canvasBackground .picker-keybinding{color:#aaa}.excalidraw .picker-type-elementBackground .picker-keybinding{color:#fff}.excalidraw .picker-swatch[aria-label=transparent] .picker-keybinding{color:#aaa}.excalidraw .picker-type-elementStroke .picker-keybinding{color:#d4d4d4}.excalidraw.theme--dark .picker-type-elementBackground .picker-keybinding{color:#000}.excalidraw.theme--dark .picker-swatch[aria-label=transparent] .picker-keybinding{color:#000}',""]),Q.Z=h},9706:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y),S=e(1667),I=e.n(S),v=new URL(e(9669),e.b),n=h()(E()),M=I()(v);n.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--ImageExportModal-preview-border: #d6d6d6}.excalidraw.theme--dark{--ImageExportModal-preview-border: #5c5c5c}.excalidraw .ImageExportModal{display:flex;flex-direction:row;justify-content:space-between}.excalidraw .ImageExportModal h3{font-family:"Assistant";font-style:normal;font-weight:700;font-size:1.313rem;line-height:130%;padding:0;margin:0}.excalidraw--mobile.excalidraw .ImageExportModal h3{display:none}.excalidraw .ImageExportModal>h3{display:none}.excalidraw--mobile.excalidraw .ImageExportModal>h3{display:block}.excalidraw--mobile.excalidraw .ImageExportModal{flex-direction:column;height:calc(100vh - 5rem)}.excalidraw .ImageExportModal__preview{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;height:360px;width:55%;margin-right:1.5rem}.excalidraw--mobile.excalidraw .ImageExportModal__preview{max-width:unset;margin-right:unset;width:100%;height:unset;flex-grow:1}.excalidraw .ImageExportModal__preview__filename>input{margin-top:1rem}.excalidraw .ImageExportModal__preview__canvas{box-sizing:border-box;width:100%;height:100%;display:flex;flex-grow:1;justify-content:center;align-items:center;background:url('+M+') left center;border:1px solid var(--ImageExportModal-preview-border);border-radius:12px;overflow:hidden;padding:1rem}.excalidraw .ImageExportModal__preview__canvas>canvas{max-width:calc(100% - 2rem);max-height:calc(100% - 2rem);-webkit-filter:none !important;filter:none !important}.excalidraw--mobile.excalidraw .ImageExportModal__preview__canvas>canvas{max-height:100%}.excalidraw--mobile.excalidraw .ImageExportModal__preview__canvas{margin-top:24px;max-width:unset}.excalidraw .ImageExportModal__settings{display:flex;flex-direction:column;flex-wrap:wrap;gap:18px}.excalidraw--mobile.excalidraw .ImageExportModal__settings{margin-left:unset;margin-top:1rem;flex-direction:row;gap:6px 34px;align-content:flex-start}.excalidraw .ImageExportModal__settings__setting{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.excalidraw--mobile.excalidraw .ImageExportModal__settings__setting{flex-direction:column;align-items:start;justify-content:unset;height:52px}.excalidraw .ImageExportModal__settings__setting__label{display:flex;flex-direction:row;align-items:center;font-family:"Assistant";font-weight:600;font-size:1rem;line-height:150%}.excalidraw .ImageExportModal__settings__setting__label svg{width:20px;height:20px;margin-left:10px}.excalidraw .ImageExportModal__settings__setting__content{display:flex;height:100%;align-items:center}.excalidraw .ImageExportModal__settings__buttons{flex-grow:1;flex-wrap:wrap;display:flex;flex-direction:row;gap:11px;align-items:flex-end;align-content:flex-end}.excalidraw--mobile.excalidraw .ImageExportModal__settings__buttons{padding-top:32px;flex-basis:100%;justify-content:center}',""]),Q.Z=n},7369:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .Island{--padding: 0;box-sizing:border-box;background-color:var(--island-bg-color);box-shadow:var(--shadow-island);border-radius:var(--border-radius-lg);padding:calc(var(--padding)*var(--space-factor));position:relative;transition:box-shadow .5s ease-in-out}.excalidraw .Island.zen-mode{box-shadow:none}",""]),Q.Z=h},7930:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .LaserToolOverlay{pointer-events:none;width:100vw;height:100vh;position:fixed;top:0;left:0;z-index:2}.excalidraw .LaserToolOverlay .LaserToolOverlayCanvas{image-rendering:auto;overflow:visible;position:absolute;top:0;left:0}",""]),Q.Z=h},1434:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .layer-ui__wrapper.animate{transition:width .1s ease-in-out}.excalidraw .layer-ui__wrapper{position:absolute;width:100%;height:100%;pointer-events:none;z-index:var(--zIndex-layerUI)}.excalidraw .layer-ui__wrapper__top-right{display:flex;gap:.75rem}.excalidraw .layer-ui__wrapper__footer{width:100%}.excalidraw .layer-ui__wrapper__footer-right{z-index:100;display:flex}.excalidraw .layer-ui__wrapper .zen-mode-transition{transition:-webkit-transform .5s ease-in-out;transition:transform .5s ease-in-out;transition:transform .5s ease-in-out, -webkit-transform .5s ease-in-out}:root[dir=ltr] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left{-webkit-transform:translate(-999px, 0);transform:translate(-999px, 0)}:root[dir=ltr] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right{-webkit-transform:translate(999px, 0);transform:translate(999px, 0)}:root[dir=rtl] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left{-webkit-transform:translate(999px, 0);transform:translate(999px, 0)}:root[dir=rtl] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right{-webkit-transform:translate(-999px, 0);transform:translate(-999px, 0)}.excalidraw .layer-ui__wrapper .zen-mode-transition.layer-ui__wrapper__footer-left--transition-bottom{-webkit-transform:translate(0, 92px);transform:translate(0, 92px)}.excalidraw .layer-ui__wrapper .disable-zen-mode{padding:10px;position:absolute;bottom:0;opacity:0;visibility:hidden;transition:visibility 0s linear 0s,opacity .5s;font-family:var(--ui-font);font-size:.75rem;font-weight:500;line-height:1;border-radius:var(--border-radius-lg);border:1px solid var(--default-border-color);background-color:var(--island-bg-color);color:var(--text-primary-color)}[dir=ltr] .excalidraw .layer-ui__wrapper .disable-zen-mode{right:1rem}[dir=rtl] .excalidraw .layer-ui__wrapper .disable-zen-mode{left:1rem}.excalidraw .layer-ui__wrapper .disable-zen-mode:hover{background-color:var(--button-hover-bg)}.excalidraw .layer-ui__wrapper .disable-zen-mode:active{border-color:var(--color-primary)}.excalidraw .layer-ui__wrapper .disable-zen-mode--visible{opacity:1;visibility:visible;transition:visibility 0s linear 300ms,opacity .5s;transition-delay:.8s;pointer-events:var(--ui-pointerEvents)}.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-left>*,.excalidraw .layer-ui__wrapper .footer-center>*,.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-right>*{pointer-events:var(--ui-pointerEvents)}.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-right{margin-top:auto;margin-bottom:auto}",""]),Q.Z=h},8923:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,'.excalidraw .layer-ui__library{display:flex;flex-direction:column;flex:1 1 auto}.excalidraw .library-actions-counter{background-color:var(--color-primary);color:var(--color-primary-light);font-weight:bold;display:flex;align-items:center;justify-content:center;border-radius:50%;width:1rem;height:1rem;position:absolute;bottom:-0.25rem;right:-0.25rem;font-size:.625rem;pointer-events:none}.excalidraw .layer-ui__library-message{padding:2rem;min-width:200px;display:flex;flex-direction:column;align-items:center;flex-grow:1;justify-content:center}.excalidraw .layer-ui__library-message span{font-size:.8em}.excalidraw .publish-library-success .Dialog__content{display:flex;flex-direction:column}.excalidraw .publish-library-success-close.ToolIcon_type_button{background-color:#228be6;align-self:flex-end}.excalidraw .publish-library-success-close.ToolIcon_type_button:hover{background-color:#1971c2}.excalidraw .publish-library-success-close.ToolIcon_type_button .ToolIcon__icon{width:auto;font-size:1rem;color:#fff;padding:0 .5rem}.excalidraw .library-menu-control-buttons{display:flex;align-items:center;justify-content:center;gap:.625rem;position:relative}.excalidraw .library-menu-control-buttons--at-bottom::before{content:"";width:calc(100% - 1.5rem);height:1px;position:absolute;top:-1px;background:var(--sidebar-border-color)}.excalidraw .library-menu-browse-button{flex:1;height:var(--lg-button-size);display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;border-radius:var(--border-radius-lg);background-color:var(--color-primary);color:#fff;text-align:center;white-space:nowrap;text-decoration:none !important;font-weight:600;font-size:.75rem}.excalidraw .library-menu-browse-button:hover{background-color:var(--color-brand-hover)}.excalidraw .library-menu-browse-button:active{background-color:var(--color-brand-active)}.excalidraw.theme--dark .library-menu-browse-button{color:var(--color-gray-100)}.excalidraw.excalidraw--mobile .library-menu-browse-button{height:var(--default-button-size)}.excalidraw .layer-ui__library .dropdown-menu{width:auto;top:initial;right:0;left:initial;bottom:100%;margin-bottom:.625rem}.excalidraw .layer-ui__library .dropdown-menu .dropdown-menu-container{width:196px;box-shadow:var(--library-dropdown-shadow);border-radius:var(--border-radius-lg);padding:.25rem .5rem}.excalidraw .layer-ui__library .library-menu-dropdown-container{position:relative}.excalidraw .layer-ui__library .library-menu-dropdown-container--in-heading{padding:0;position:absolute;top:1rem;right:.75rem;z-index:1}.excalidraw .layer-ui__library .library-menu-dropdown-container--in-heading .dropdown-menu{top:100%}',""]),Q.Z=h},6440:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw{--container-padding-y: 1.5rem;--container-padding-x: 0.75rem}.excalidraw .library-menu-items__no-items{text-align:center;color:var(--color-gray-70);line-height:1.5;font-size:.875rem;width:100%}.excalidraw .library-menu-items__no-items__label{color:var(--color-primary);font-weight:bold;font-size:1.125rem;margin-bottom:.75rem}.excalidraw.theme--dark .library-menu-items__no-items{color:var(--color-gray-40)}.excalidraw .library-menu-items-container{width:100%;display:flex;flex-grow:1;flex-shrink:1;flex-basis:0;overflow-y:auto;flex-direction:column;height:100%;justify-content:center;margin:0;position:relative}.excalidraw .library-menu-items-container>div{padding-left:.75rem;padding-right:.75rem}.excalidraw .library-menu-items-container__row{display:grid;grid-template-columns:repeat(4, 1fr);gap:1rem}.excalidraw .library-menu-items-container__items{row-gap:.5rem;padding:var(--container-padding-y) 0;flex:1;overflow-y:auto;overflow-x:hidden;margin-bottom:1rem}.excalidraw .library-menu-items-container__header{color:var(--color-primary);font-size:1.125rem;font-weight:bold;margin-bottom:.75rem;width:100%;padding-right:4rem;box-sizing:border-box}.excalidraw .library-menu-items-container__header--excal{margin-top:2rem}.excalidraw .library-menu-items-container__grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:1rem}.excalidraw .library-menu-items-container .separator{width:100%;display:flex;align-items:center;font-weight:500;font-size:.9rem;margin:.6em .2em;color:var(--text-primary-color)}.excalidraw .library-menu-items-private-library-container{min-height:3.75rem;width:100%}",""]),Q.Z=h},5644:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .library-unit{align-items:center;border:1px solid rgba(0,0,0,0);display:flex;justify-content:center;position:relative;width:55px;height:55px;box-sizing:border-box;border-radius:var(--border-radius-lg)}.excalidraw .library-unit svg{pointer-events:none}.excalidraw .library-unit--hover{border-color:var(--color-primary)}.excalidraw .library-unit--selected{border-color:var(--color-primary);border-width:1px}.excalidraw .library-unit--skeleton{opacity:.5;background:linear-gradient(-45deg, var(--color-gray-10), var(--color-gray-20), var(--color-gray-10));background-size:200% 200%;-webkit-animation:library-unit__skeleton-opacity-animation .2s linear;animation:library-unit__skeleton-opacity-animation .2s linear}.excalidraw.theme--dark .library-unit--skeleton{background-image:linear-gradient(-45deg, var(--color-gray-100), var(--color-gray-80), var(--color-gray-100))}.excalidraw .library-unit__dragger{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.excalidraw .library-unit__dragger>svg{-webkit-filter:var(--theme-filter);filter:var(--theme-filter);flex-grow:1;max-height:100%;max-width:100%}.excalidraw .library-unit__checkbox-container,.excalidraw .library-unit__checkbox-container:hover,.excalidraw .library-unit__checkbox-container:active{align-items:center;background:none;border:none;color:var(--icon-fill-color);display:flex;justify-content:center;margin:0;padding:.5rem;position:absolute;left:2rem;bottom:2rem;cursor:pointer}.excalidraw .library-unit__checkbox-container input,.excalidraw .library-unit__checkbox-container:hover input,.excalidraw .library-unit__checkbox-container:active input{cursor:pointer}.excalidraw .library-unit__checkbox{position:absolute;top:.125rem;right:.125rem;margin:0}.excalidraw .library-unit__checkbox .Checkbox-box{margin:0;width:1rem;height:1rem;border-radius:4px;background-color:var(--color-primary-light);border:1px solid var(--color-primary);box-shadow:none !important;padding:2px}.excalidraw .library-unit__checkbox.Checkbox:hover .Checkbox-box{background-color:var(--color-primary-light)}.excalidraw .library-unit__checkbox.is-checked .Checkbox-box{background-color:var(--color-primary) !important}.excalidraw .library-unit__checkbox.is-checked .Checkbox-box svg{color:var(--color-primary-light)}.excalidraw .library-unit__removeFromLibrary>svg{height:16px;width:16px}.excalidraw .library-unit__adder{-webkit-transform:scale(1);transform:scale(1);-webkit-animation:library-unit__adder-animation 1s ease-in infinite;animation:library-unit__adder-animation 1s ease-in infinite;position:absolute;width:1.5rem;height:1.5rem;background-color:var(--color-primary);border-radius:var(--border-radius-md);display:flex;justify-content:center;align-items:center;pointer-events:none}.excalidraw .library-unit__adder svg{color:var(--color-primary-light);width:1rem;height:1rem}.excalidraw .library-unit:active .library-unit__adder{-webkit-animation:none;animation:none;-webkit-transform:scale(0.8);transform:scale(0.8)}.excalidraw .library-unit__active{cursor:pointer}@-webkit-keyframes library-unit__adder-animation{0%{-webkit-transform:scale(0.85);transform:scale(0.85)}50%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(0.85);transform:scale(0.85)}}@keyframes library-unit__adder-animation{0%{-webkit-transform:scale(0.85);transform:scale(0.85)}50%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(0.85);transform:scale(0.85)}}@-webkit-keyframes library-unit__skeleton-opacity-animation{0%{opacity:0}75%{opacity:0}100%{opacity:.5}}@keyframes library-unit__skeleton-opacity-animation{0%{opacity:0}75%{opacity:0}100%{opacity:.5}}",""]),Q.Z=h},5830:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y),S=e(1667),I=e.n(S),v=new URL(e(9669),e.b),n=h()(E()),M=I()(v);n.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .dialog-mermaid-title{margin-bottom:5px;margin-top:2px}.excalidraw .dialog-mermaid-desc{font-size:15px;font-style:italic;font-weight:500}.excalidraw .dialog-mermaid .Modal__content .Island{box-shadow:none}.excalidraw:not(.excalidraw--mobile).excalidraw .dialog-mermaid{padding:1.25rem}.excalidraw:not(.excalidraw--mobile).excalidraw .dialog-mermaid .Modal__content{height:100%;max-height:750px}@media screen and (max-width: 860px){.excalidraw:not(.excalidraw--mobile).excalidraw .dialog-mermaid .Modal__content{height:auto;max-height:100%}}.excalidraw:not(.excalidraw--mobile).excalidraw .dialog-mermaid .Modal__content .Island{height:100%;display:flex;flex-direction:column;flex:1 1 auto}.excalidraw:not(.excalidraw--mobile).excalidraw .dialog-mermaid .Modal__content .Island .Dialog__content{display:flex;flex:1 1 auto}.excalidraw .dialog-mermaid-body{width:100%;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr auto;height:100%;-webkit-column-gap:4rem;column-gap:4rem}@media screen and (max-width: 860px){.excalidraw .dialog-mermaid-body{flex-direction:column;display:flex;gap:1rem}}.excalidraw .dialog-mermaid-panels{display:grid;width:100%;grid-template-columns:1fr 1fr;justify-content:space-between;gap:4rem;grid-row:1;grid-column:1/3}@media screen and (max-width: 860px){.excalidraw .dialog-mermaid-panels{flex-direction:column;display:flex;gap:1rem}}.excalidraw .dialog-mermaid-panels label{font-size:14px;font-style:normal;font-weight:600;margin-bottom:4px;margin-left:4px}@media screen and (max-width: 860px){.excalidraw .dialog-mermaid-panels label{margin-top:4px}}.excalidraw .dialog-mermaid-panels-text{display:flex;flex-direction:column}.excalidraw .dialog-mermaid-panels-text textarea{width:20rem;height:100%;resize:none;border-radius:var(--border-radius-lg);border:1px solid var(--dialog-border-color);white-space:pre-wrap;padding:.85rem;box-sizing:border-box;width:100%;font-family:monospace}@media screen and (max-width: 860px){.excalidraw .dialog-mermaid-panels-text textarea{width:auto;height:10rem}}.excalidraw .dialog-mermaid-panels-preview-wrapper{display:flex;align-items:center;justify-content:center;padding:.85rem;box-sizing:border-box;width:100%;height:200px;flex-grow:1;position:relative;background:url("+M+') left center;border-radius:var(--border-radius-lg);border:1px solid var(--dialog-border-color)}@media screen and (max-width: 860px){.excalidraw .dialog-mermaid-panels-preview-wrapper{height:400px;width:auto}}.excalidraw .dialog-mermaid-panels-preview-wrapper canvas{max-width:100%;max-height:100%}.excalidraw .dialog-mermaid-panels-preview-canvas-container{display:flex;width:100%;height:100%;align-items:center;justify-content:center;flex-grow:1}.excalidraw .dialog-mermaid-panels-preview{display:flex;flex-direction:column}.excalidraw .dialog-mermaid-panels .mermaid-error{color:red;font-weight:800;font-size:30px;word-break:break-word;overflow:auto;max-height:100%;height:100%;width:100%;text-align:center;position:absolute;z-index:10}.excalidraw .dialog-mermaid-panels .mermaid-error p{font-weight:500;font-family:Cascadia;text-align:left;white-space:pre-wrap;font-size:.875rem;padding:0 10px}.excalidraw .dialog-mermaid-buttons{grid-column:2}.excalidraw .dialog-mermaid-buttons .dialog-mermaid-insert.excalidraw-button{font-family:"Assistant";font-weight:600;height:2.5rem;margin-top:1em;margin-bottom:.3em;width:7.5rem;font-size:12px;color:#fff;background-color:var(--color-primary)}.excalidraw .dialog-mermaid-buttons .dialog-mermaid-insert.excalidraw-button:hover{background-color:var(--color-primary-darker)}.excalidraw .dialog-mermaid-buttons .dialog-mermaid-insert.excalidraw-button:active{background-color:var(--color-primary-darkest)}@media screen and (max-width: 860px){.excalidraw .dialog-mermaid-buttons .dialog-mermaid-insert.excalidraw-button{width:100%}}.excalidraw.theme--dark.excalidraw .dialog-mermaid-buttons .dialog-mermaid-insert.excalidraw-button{color:var(--color-gray-100)}.excalidraw .dialog-mermaid-buttons .dialog-mermaid-insert span{padding-left:.5rem;display:flex}',""]),Q.Z=n},6843:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw.excalidraw-modal-container{position:absolute;z-index:var(--zIndex-modal)}.excalidraw .Modal{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;overflow:auto;padding:calc(var(--space-factor)*10)}.excalidraw .Modal .Island{padding:2.5rem !important}.excalidraw .Modal__background{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1;background-color:rgba(18,18,18,.2);-webkit-animation:Modal__background__fade-in .125s linear forwards;animation:Modal__background__fade-in .125s linear forwards}.excalidraw .Modal__content{position:relative;z-index:2;width:100%;max-width:var(--max-width);max-height:100%;opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px);-webkit-animation:Modal__content_fade-in .1s ease-out .05s forwards;animation:Modal__content_fade-in .1s ease-out .05s forwards;position:relative;overflow-y:auto;background:var(--island-bg-color);border:1px solid var(--dialog-border-color);box-shadow:var(--modal-shadow);border-radius:6px;box-sizing:border-box}.excalidraw .Modal__content:focus{outline:none}@-webkit-keyframes Modal__background__fade-in{from{opacity:0}to{opacity:1}}@keyframes Modal__background__fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes Modal__content_fade-in{from{opacity:0;-webkit-transform:scale(0.9);transform:scale(0.9)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes Modal__content_fade-in{from{opacity:0;-webkit-transform:scale(0.9);transform:scale(0.9)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.excalidraw .Modal__close{color:var(--icon-fill-color);margin:0;padding:.375rem;position:absolute;top:1rem;right:1rem;border:0;background-color:rgba(0,0,0,0);line-height:0;cursor:pointer}.excalidraw .Modal__close svg{width:1.5rem;height:1.5rem}.excalidraw .Dialog--fullscreen .Modal{padding:0}.excalidraw .Dialog--fullscreen .Modal__content{position:absolute;top:0;left:0;right:0;bottom:0;max-width:100%;border:0;border-radius:0}",""]),Q.Z=h},9439:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .OverwriteConfirm{display:flex;flex-direction:column;align-items:center;gap:.75rem;isolation:isolate}.excalidraw .OverwriteConfirm h3{margin:0;font-weight:700;font-size:1.3125rem;line-height:130%;align-self:flex-start;color:var(--text-primary-color)}.excalidraw .OverwriteConfirm__Description{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;width:100%;gap:1rem;padding:2.5rem;background:var(--color-danger-background);border-radius:.5rem;font-family:"Assistant";font-style:normal;font-weight:400;font-size:1rem;line-height:150%;color:var(--color-danger-color)}.excalidraw--mobile.excalidraw .OverwriteConfirm__Description{flex-direction:column;text-align:center}.excalidraw .OverwriteConfirm__Description__spacer{flex-grow:1}.excalidraw .OverwriteConfirm__Description__icon{box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-radius:2.5rem;background:var(--color-danger-icon-background);width:3.5rem;height:3.5rem;padding:.75rem}.excalidraw .OverwriteConfirm__Description__icon svg{color:var(--color-danger-icon-color);width:1.5rem;height:1.5rem}.excalidraw .OverwriteConfirm__Description.OverwriteConfirm__Description--color-warning{background:var(--color-warning-background);color:var(--color-warning-color)}.excalidraw .OverwriteConfirm__Description.OverwriteConfirm__Description--color-warning .OverwriteConfirm__Description__icon{background:var(--color-warning-icon-background);flex:0 0 auto}.excalidraw .OverwriteConfirm__Description.OverwriteConfirm__Description--color-warning .OverwriteConfirm__Description__icon svg{color:var(--color-warning-icon-color)}.excalidraw .OverwriteConfirm__Actions{display:flex;flex-direction:row;align-items:stretch;justify-items:stretch;justify-content:center;gap:1.5rem}.excalidraw--mobile.excalidraw .OverwriteConfirm__Actions{flex-direction:column}.excalidraw .OverwriteConfirm__Actions__Action{display:flex;flex-direction:column;align-items:center;padding:1.5rem;gap:.75rem;flex-basis:50%;flex-grow:0}.excalidraw .OverwriteConfirm__Actions__Action__content{height:100%;font-size:.875rem;text-align:center}.excalidraw .OverwriteConfirm__Actions__Action h4{font-weight:700;font-size:1.125rem;line-height:130%;margin:0;color:var(--text-primary-color)}',""]),Q.Z=h},8461:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw--mobile.excalidraw .PasteChartDialog .Island{display:flex;flex-direction:column}.excalidraw .PasteChartDialog .container{display:flex;align-items:center;justify-content:space-around;flex-wrap:wrap}.excalidraw--mobile.excalidraw .PasteChartDialog .container{flex-direction:column;justify-content:center}.excalidraw .PasteChartDialog .ChartPreview{margin:8px;text-align:center;width:192px;height:128px;border-radius:2px;padding:1px;border:1px solid #ced4da;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0)}.excalidraw .PasteChartDialog .ChartPreview div{display:inline-block}.excalidraw .PasteChartDialog .ChartPreview svg{max-height:120px;max-width:186px}.excalidraw .PasteChartDialog .ChartPreview:hover{padding:0;border:2px solid #339af0}",""]),Q.Z=h},9935:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .popover{position:absolute;z-index:10;padding:5px 0 5px;outline:none}",""]),Q.Z=h},532:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".ProjectName{margin:auto;display:flex;align-items:center}.ProjectName .TextInput{height:calc(1rem - 3px);width:200px;overflow:hidden;text-align:center;margin-left:8px;text-overflow:ellipsis}.ProjectName .TextInput--readonly{background:none;border:none;width:auto;max-width:200px;padding-left:2px}.ProjectName .TextInput--readonly:hover{background:none}",""]),Q.Z=h},7589:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .publish-library__fields{display:flex;flex-direction:column}.excalidraw .publish-library__fields label{padding:1em 0;display:flex;justify-content:space-between;align-items:center}.excalidraw .publish-library__fields label span{font-weight:500;font-size:1rem;color:#868e96}.excalidraw .publish-library__fields label input,.excalidraw .publish-library__fields label textarea{width:70%;padding:.6em;font-family:var(--ui-font)}.excalidraw .publish-library__fields label .required{color:#e03131;margin:.2rem}.excalidraw .publish-library__buttons{display:flex;padding:.2rem 0;justify-content:flex-end;gap:.5rem}.excalidraw .publish-library__buttons .ToolIcon__icon{min-width:2.5rem;width:auto;font-size:1rem}.excalidraw .publish-library__buttons .ToolIcon_type_button{margin-left:1rem;padding:0 .5rem}.excalidraw .publish-library__buttons--confirm.ToolIcon_type_button{background-color:#228be6}.excalidraw .publish-library__buttons--confirm.ToolIcon_type_button:hover{background-color:#1971c2}.excalidraw .publish-library__buttons--cancel.ToolIcon_type_button{background-color:#adb5bd}.excalidraw .publish-library__buttons--cancel.ToolIcon_type_button:hover{background-color:#868e96}.excalidraw .publish-library__buttons .ToolIcon__icon{color:#fff}.excalidraw .publish-library__buttons .ToolIcon__icon .Spinner{--spinner-color: #fff}.excalidraw .publish-library__buttons .ToolIcon__icon .Spinner svg{padding:.5rem}.excalidraw .publish-library .selected-library-items{display:flex;flex-wrap:wrap}.excalidraw .publish-library .selected-library-items .single-library-item-wrapper{width:9rem}.excalidraw .publish-library-warning{color:#fa5252}.excalidraw .publish-library-note{padding:1em 0;font-style:italic;font-size:14px;display:block}.excalidraw .single-library-item{position:relative}.excalidraw .single-library-item-status{position:absolute;top:.3rem;left:.3rem;font-size:.7rem;color:#f03e3e;background:rgba(255,255,255,.9);padding:.1rem .2rem;border-radius:.2rem}.excalidraw .single-library-item__svg{background-color:#fff;padding:.3rem;width:7.5rem;height:7.5rem;border:1px solid var(--button-gray-2)}.excalidraw .single-library-item__svg svg{width:100%;height:100%}.excalidraw .single-library-item .ToolIcon__icon{background-color:#fff;width:auto;height:auto;margin:0 .5rem}.excalidraw .single-library-item .ToolIcon,.excalidraw .single-library-item .ToolIcon_type_button:hover{background-color:#fff}.excalidraw .single-library-item .required,.excalidraw .single-library-item .error{color:#e03131;font-weight:bold;font-size:1rem;margin:.2rem}.excalidraw .single-library-item .error{font-weight:500;margin:0;padding:.3em 0}.excalidraw .single-library-item--remove{position:absolute;top:.2rem;right:1rem}.excalidraw .single-library-item--remove .ToolIcon__icon{margin:0}.excalidraw .single-library-item--remove .ToolIcon__icon{background-color:#fa5252}.excalidraw .single-library-item--remove .ToolIcon__icon:hover{background-color:#f03e3e}.excalidraw .single-library-item--remove .ToolIcon__icon:active{background-color:#e03131}.excalidraw .single-library-item--remove svg{color:#fff;padding:.26rem;border-radius:.3em;width:1rem;height:1rem}",""]),Q.Z=h},6217:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--RadioGroup-background: var(--island-bg-color);--RadioGroup-border: var(--color-surface-high);--RadioGroup-choice-color-off: var(--color-primary);--RadioGroup-choice-color-off-hover: var(--color-brand-hover);--RadioGroup-choice-background-off: var(--island-bg-color);--RadioGroup-choice-background-off-active: var(--color-surface-high);--RadioGroup-choice-color-on: var(--color-surface-lowest);--RadioGroup-choice-background-on: var(--color-primary);--RadioGroup-choice-background-on-hover: var(--color-brand-hover);--RadioGroup-choice-background-on-active: var(--color-brand-active)}.excalidraw .RadioGroup{box-sizing:border-box;display:flex;flex-direction:row;align-items:flex-start;padding:3px;border-radius:10px;background:var(--RadioGroup-background);border:1px solid var(--RadioGroup-border)}.excalidraw .RadioGroup__choice{position:relative;display:flex;align-items:center;justify-content:center;width:32px;height:24px;color:var(--RadioGroup-choice-color-off);background:var(--RadioGroup-choice-background-off);border-radius:8px;font-family:"Assistant";font-style:normal;font-weight:600;font-size:.75rem;line-height:100%;-webkit-user-select:none;user-select:none;letter-spacing:.4px;transition:all 75ms ease-out}.excalidraw .RadioGroup__choice:hover{color:var(--RadioGroup-choice-color-off-hover)}.excalidraw .RadioGroup__choice:active{background:var(--RadioGroup-choice-background-off-active)}.excalidraw .RadioGroup__choice.active{color:var(--RadioGroup-choice-color-on);background:var(--RadioGroup-choice-background-on)}.excalidraw .RadioGroup__choice.active:hover{background:var(--RadioGroup-choice-background-on-hover)}.excalidraw .RadioGroup__choice.active:active{background:var(--RadioGroup-choice-background-on-active)}.excalidraw .RadioGroup__choice input{z-index:1;position:absolute;width:100%;height:100%;margin:0;padding:0;border-radius:8px;-webkit-appearance:none;appearance:none;cursor:pointer}',""]),Q.Z=h},8208:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .sidebar{display:flex;flex-direction:column;position:absolute;top:0;bottom:0;right:0;z-index:5;margin:0;padding:0;box-sizing:border-box;background-color:var(--sidebar-bg-color);box-shadow:var(--sidebar-shadow);pointer-events:var(--ui-pointerEvents);overflow:hidden;border-radius:0;width:calc(302px - var(--space-factor) * 2);border-left:1px solid var(--sidebar-border-color)}:root[dir=rtl] .excalidraw .sidebar{left:0;right:auto}.excalidraw .sidebar--docked{box-shadow:none}:root[dir=rtl] .excalidraw .sidebar{border-right:1px solid var(--sidebar-border-color);border-left:0}.excalidraw .sidebar__header{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;width:100%;padding:1rem .75rem;position:relative}.excalidraw .sidebar__header::after{content:"";width:calc(100% - 1.5rem);height:1px;background:var(--sidebar-border-color);position:absolute;bottom:-1px}.excalidraw .sidebar__header__buttons{gap:0;display:flex;align-items:center;margin-left:auto}.excalidraw .sidebar__header__buttons button{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));--button-bg: transparent;border:0 !important;width:var(--lg-button-size);height:var(--lg-button-size);padding:0}.excalidraw .sidebar__header__buttons button svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .sidebar__header__buttons button:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .sidebar__header__buttons button:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .sidebar__header__buttons button.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .sidebar__header__buttons button.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .sidebar__header__buttons button.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw .sidebar__header__buttons button svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .sidebar__header__buttons button:hover{background:var(--button-hover-bg, var(--island-bg-color))}.excalidraw .sidebar__header__buttons .sidebar__dock.selected svg{stroke:var(--color-primary);fill:var(--color-primary)}.excalidraw .sidebar-tabs-root{display:flex;flex-direction:column;flex:1 1 auto;padding:1rem 0}.excalidraw .sidebar-tabs-root [role=tabpanel]{flex:1;outline:none;flex:1 1 auto;display:flex;flex-direction:column;outline:none}.excalidraw .sidebar-tabs-root [role=tabpanel][data-state=inactive]{display:none !important}.excalidraw .sidebar-tabs-root [role=tablist]{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit, minmax(0, 1fr))}.excalidraw .sidebar-tabs-root>.sidebar__header{padding-top:0;padding-bottom:1rem}.excalidraw .sidebar-tab-trigger{--button-width: auto;--button-bg: transparent;--button-hover-bg: transparent;--button-active-bg: var(--color-primary);--button-hover-color: var(--color-primary);--button-hover-border: var(--color-primary)}.excalidraw .sidebar-tab-trigger[data-state=active]{--button-bg: var(--color-primary);--button-hover-bg: var(--color-primary-darker);--button-hover-color: var(--color-icon-white);--button-border: var(--color-primary);color:var(--color-icon-white)}.excalidraw .default-sidebar{display:flex;flex-direction:column}.excalidraw .default-sidebar .sidebar-triggers{display:flex;gap:0;padding:2px;margin-top:-3px;margin-bottom:-3px;border:1px solid var(--sidebar-border-color);background:var(--default-bg-color);border-radius:.625rem}.excalidraw .default-sidebar .sidebar-triggers .sidebar-tab-trigger{height:var(--lg-button-size);width:var(--lg-button-size);border:none}',""]),Q.Z=h},7051:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .sidebar-trigger{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));border:none;box-shadow:0 0 0 1px var(--color-surface-lowest);background-color:var(--color-surface-low);width:auto;height:var(--lg-button-size);display:flex;align-items:center;gap:.5rem;line-height:0;font-size:.75rem;letter-spacing:.4px}.excalidraw .sidebar-trigger svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .sidebar-trigger:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .sidebar-trigger:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .sidebar-trigger.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .sidebar-trigger.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .sidebar-trigger.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw .sidebar-trigger:active{box-shadow:0 0 0 1px var(--color-brand-active)}.excalidraw .sidebar-trigger svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .default-sidebar-trigger .sidebar-trigger__label{display:block}.excalidraw.excalidraw--mobile .default-sidebar-trigger .sidebar-trigger__label{display:none}",""]),Q.Z=h},5892:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .Spinner{display:flex;align-items:center;justify-content:center;height:100%;margin-left:auto;margin-right:auto;--spinner-color: var(--icon-fill-color)}.excalidraw .Spinner svg{-webkit-animation:rotate 1.6s linear infinite;animation:rotate 1.6s linear infinite;-webkit-animation-delay:var(--spinner-delay);animation-delay:var(--spinner-delay);-webkit-transform-origin:center center;transform-origin:center center}.excalidraw .Spinner circle{stroke:var(--spinner-color);-webkit-animation:dash 1.6s linear 0s infinite;animation:dash 1.6s linear 0s infinite;stroke-linecap:round}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,300;stroke-dashoffset:0}50%{stroke-dasharray:150,300;stroke-dashoffset:-200}100%{stroke-dasharray:1,300;stroke-dashoffset:-280}}@keyframes dash{0%{stroke-dasharray:1,300;stroke-dashoffset:0}50%{stroke-dasharray:150,300;stroke-dashoffset:-200}100%{stroke-dasharray:1,300;stroke-dashoffset:-280}}",""]),Q.Z=h},3874:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .Stack{--gap: 0;display:grid;gap:calc(var(--space-factor)*var(--gap))}.excalidraw .Stack_vertical{grid-template-columns:auto;grid-auto-flow:row;grid-auto-rows:-webkit-min-content;grid-auto-rows:min-content}.excalidraw .Stack_horizontal{grid-template-rows:auto;grid-auto-flow:column;grid-auto-columns:-webkit-min-content;grid-auto-columns:min-content}",""]),Q.Z=h},2681:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Stats{position:absolute;top:64px;right:12px;font-size:12px;z-index:10;pointer-events:var(--ui-pointerEvents)}.excalidraw .Stats h3{margin:0 24px 8px 0;white-space:nowrap}.excalidraw .Stats .close{float:right;height:16px;width:16px;cursor:pointer}.excalidraw .Stats .close svg{width:100%;height:100%}.excalidraw .Stats table{width:100%}.excalidraw .Stats table th{border-bottom:1px solid var(--input-border-color);padding:4px}.excalidraw .Stats table tr td:nth-child(2){min-width:24px;text-align:right}:root[dir=rtl] .excalidraw .Stats{left:12px;right:initial}:root[dir=rtl] .excalidraw .Stats h3{margin:0 0 8px 24px}:root[dir=rtl] .excalidraw .Stats .close{float:left}",""]),Q.Z=h},7802:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--Switch-disabled-color: var(--color-border-outline);--Switch-disabled-toggled-background: var(--color-border-outline-variant);--Switch-disabled-border: var(--color-border-outline-variant);--Switch-track-background: var(--island-bg-color);--Switch-thumb-background: var(--color-on-surface);--Switch-hover-background: var(--color-brand-hover);--Switch-active-background: var(--color-brand-active)}.excalidraw .Switch{position:relative;box-sizing:border-box;width:40px;height:20px;border-radius:12px;transition-property:background,border;transition-duration:150ms;transition-timing-function:ease-out;background:var(--Switch-track-background);border:1px solid var(--Switch-disabled-color)}.excalidraw .Switch:hover{background:var(--Switch-track-background);border:1px solid var(--Switch-hover-background)}.excalidraw .Switch:active{border:1px solid var(--Switch-active-background)}.excalidraw .Switch.toggled{background:var(--color-primary);border:1px solid var(--color-primary)}.excalidraw .Switch.toggled:hover{background:var(--color-primary-darker);border:1px solid var(--color-primary-darker)}.excalidraw .Switch.disabled{background:var(--Switch-track-background);border:1px solid var(--Switch-disabled-border)}.excalidraw .Switch.disabled.toggled{background:var(--Switch-disabled-toggled-background);border:1px solid var(--Switch-disabled-toggled-background)}.excalidraw .Switch:before{content:"";box-sizing:border-box;display:block;pointer-events:none;position:absolute;border-radius:100%;transition:all 150ms ease-out;width:10px;height:10px;top:4px;left:4px;background:var(--Switch-thumb-background)}.excalidraw .Switch:active:before{width:12px}.excalidraw .Switch.toggled:before{width:14px;height:14px;left:22px;top:2px;background:var(--Switch-track-background)}.excalidraw .Switch.toggled:active:before{width:16px;left:20px}.excalidraw .Switch.disabled:before{background:var(--Switch-disabled-color)}.excalidraw .Switch.disabled.toggled:before{background:var(--Switch-disabled-color)}.excalidraw .Switch input{width:100%;height:100%;margin:0;border-radius:12px;-webkit-appearance:none;appearance:none;cursor:pointer}.excalidraw .Switch input:disabled{cursor:unset}',""]),Q.Z=h},6759:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .TextInput{display:inline-block}",""]),Q.Z=h},9650:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Toast{-webkit-animation:fade-in .5s;animation:fade-in .5s;background-color:var(--button-gray-1);border-radius:4px;bottom:10px;box-sizing:border-box;cursor:default;left:50%;margin-left:-150px;padding:4px 0;position:absolute;text-align:center;width:300px;z-index:999999}.excalidraw .Toast .Toast__message{padding:0 1.6rem;color:var(--popup-text-color);white-space:pre-wrap}.excalidraw .Toast .close{position:absolute;top:0;right:0;padding:.4rem}.excalidraw .Toast .close .ToolIcon__icon{width:1.2rem;height:1.2rem}@-webkit-keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes fade-in{from{opacity:0}to{opacity:1}}",""]),Q.Z=h},2044:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .ToolIcon{border-radius:var(--border-radius-lg);display:inline-flex;align-items:center;position:relative;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;user-select:none}.excalidraw .ToolIcon__hidden{display:none !important}.excalidraw .ToolIcon.fillable .ToolIcon_type_radio:checked+.ToolIcon__icon,.excalidraw .ToolIcon.fillable .ToolIcon_type_checkbox:checked+.ToolIcon__icon{--icon-fill-color: var(--color-on-primary-container)}.excalidraw .ToolIcon.fillable .ToolIcon_type_radio:checked+.ToolIcon__icon svg,.excalidraw .ToolIcon.fillable .ToolIcon_type_checkbox:checked+.ToolIcon__icon svg{fill:var(--icon-fill-color)}.excalidraw .ToolIcon .ToolIcon_type_radio:checked+.ToolIcon__icon,.excalidraw .ToolIcon .ToolIcon_type_checkbox:checked+.ToolIcon__icon{background:var(--color-surface-primary-container);--keybinding-color: var(--color-on-primary-container)}.excalidraw .ToolIcon .ToolIcon_type_radio:checked+.ToolIcon__icon svg,.excalidraw .ToolIcon .ToolIcon_type_checkbox:checked+.ToolIcon__icon svg{color:var(--color-on-primary-container)}.excalidraw .ToolIcon .ToolIcon__keybinding{bottom:4px;right:4px}.excalidraw .ToolIcon .ToolIcon__icon:hover{background:var(--button-hover-bg)}.excalidraw .ToolIcon .ToolIcon__icon:active{background:var(--button-hover-bg);border:1px solid var(--button-active-border)}.excalidraw .ToolIcon .ToolIcon__icon:active svg{color:var(--color-on-primary-container)}.excalidraw .ToolIcon--plain{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon--plain .ToolIcon__icon{width:2rem;height:2rem}.excalidraw .ToolIcon_type_radio,.excalidraw .ToolIcon_type_checkbox{position:absolute;opacity:0;pointer-events:none}.excalidraw .ToolIcon__icon{box-sizing:border-box;width:var(--default-button-size);height:var(--default-button-size);color:var(--icon-fill-color);display:flex;justify-content:center;align-items:center;border-radius:var(--border-radius-lg)}.excalidraw .ToolIcon__icon+.ToolIcon__label{-webkit-margin-start:0;margin-inline-start:0}.excalidraw .ToolIcon__icon svg{position:relative;width:var(--default-icon-size);height:var(--default-icon-size);color:var(--icon-fill-color)}.excalidraw .ToolIcon__label{display:flex;align-items:center;color:var(--icon-fill-color);font-family:var(--ui-font);margin:0 .8em;text-overflow:ellipsis}.excalidraw .ToolIcon__label .Spinner{margin-left:.6em}.excalidraw .ToolIcon_size_small .ToolIcon__icon{width:2rem;height:2rem;font-size:.8em}.excalidraw .ToolIcon_type_button,.excalidraw .Modal .ToolIcon_type_button,.excalidraw .ToolIcon_type_button{padding:0;border:none;margin:0;font-size:inherit;background-color:initial}.excalidraw .ToolIcon_type_button:focus-visible,.excalidraw .Modal .ToolIcon_type_button:focus-visible,.excalidraw .ToolIcon_type_button:focus-visible{box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .ToolIcon_type_button.ToolIcon--selected,.excalidraw .Modal .ToolIcon_type_button.ToolIcon--selected,.excalidraw .ToolIcon_type_button.ToolIcon--selected{background-color:var(--button-gray-2)}.excalidraw .ToolIcon_type_button.ToolIcon--selected:active,.excalidraw .Modal .ToolIcon_type_button.ToolIcon--selected:active,.excalidraw .ToolIcon_type_button.ToolIcon--selected:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon_type_button:active,.excalidraw .Modal .ToolIcon_type_button:active,.excalidraw .ToolIcon_type_button:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon_type_button--show,.excalidraw .Modal .ToolIcon_type_button--show,.excalidraw .ToolIcon_type_button--show{visibility:visible}.excalidraw .ToolIcon_type_button--hide,.excalidraw .Modal .ToolIcon_type_button--hide,.excalidraw .ToolIcon_type_button--hide{display:none !important}.excalidraw .ToolIcon_type_floating{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon_type_floating:hover{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon_type_floating:active{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon_type_floating .ToolIcon__icon{background-color:var(--button-gray-1);width:2rem;height:2rem}.excalidraw .ToolIcon_type_floating .ToolIcon__icon:hover{background-color:var(--button-gray-2)}.excalidraw .ToolIcon_type_floating .ToolIcon__icon:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon__keybinding{position:absolute;bottom:2px;right:3px;font-size:.625rem;color:var(--keybinding-color);font-family:var(--ui-font);-webkit-user-select:none;user-select:none}:root[dir=ltr] .excalidraw .unlocked-icon{left:2px}:root[dir=rtl] .excalidraw .unlocked-icon{right:2px}.excalidraw .App-toolbar-container .ToolIcon__icon{width:var(--lg-button-size);height:var(--lg-button-size)}@media screen and (max-width: 450px){.excalidraw .App-toolbar-container .ToolIcon__icon{width:1.8rem;height:1.8rem}}@media screen and (max-width: 379px){.excalidraw .App-toolbar-container .ToolIcon__icon{width:1.5rem;height:1.5rem}}.excalidraw .App-toolbar-container .ToolIcon__icon svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .App-toolbar-container .ToolIcon__LaserPointer .ToolIcon__icon{width:var(--default-button-size);height:var(--default-button-size)}",""]),Q.Z=h},9144:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .App-toolbar.zen-mode .ToolIcon__keybinding,.excalidraw .App-toolbar.zen-mode .HintViewer{display:none}.excalidraw .App-toolbar__divider{width:1px;height:1.5rem;align-self:center;background-color:var(--default-border-color);margin:0 .25rem}.excalidraw--mobile.excalidraw .App-toolbar__divider{margin:0}.excalidraw .App-toolbar__extra-tools-trigger{box-shadow:none;border:0;background-color:rgba(0,0,0,0)}.excalidraw .App-toolbar__extra-tools-trigger:active{background-color:var(--button-hover-bg);box-shadow:0 0 0 1px var(--button-active-border, var(--color-primary-darkest)) inset}.excalidraw .App-toolbar__extra-tools-trigger--selected,.excalidraw .App-toolbar__extra-tools-trigger--selected:hover{background:var(--color-primary-light);color:var(--color-primary)}.excalidraw .App-toolbar__extra-tools-dropdown{margin-top:.375rem;right:0;min-width:11.875rem;z-index:1}",""]),Q.Z=h},6626:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw-tooltip{--ui-font: Assistant, system-ui, BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;font-family:var(--ui-font);position:fixed;z-index:var(--zIndex-popup);padding:8px;border-radius:6px;box-sizing:border-box;pointer-events:none;word-wrap:break-word;background:#000;line-height:1.5;text-align:center;font-size:13px;font-weight:500;color:#fff;display:none}.excalidraw-tooltip.excalidraw-tooltip--visible{display:block}.excalidraw-tooltip-wrapper{display:flex}.excalidraw-tooltip-icon{width:.9em;height:.9em;margin-left:5px;margin-top:1px;display:flex}.excalidraw--mobile.excalidraw-tooltip-icon{display:none}",""]),Q.Z=h},6359:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .UserList{pointer-events:none;padding:var(--space-factor) var(--space-factor) var(--space-factor) var(--space-factor);display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.625rem;max-height:140px;max-width:290px;overflow:hidden}.excalidraw .UserList:empty{display:none}.excalidraw .UserList>*{pointer-events:var(--ui-pointerEvents)}.excalidraw .UserList_mobile{padding:0;justify-content:normal;margin:.5rem 0}",""]),Q.Z=h},7399:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .dropdown-menu{position:absolute;top:100%;margin-top:.25rem}.excalidraw .dropdown-menu--mobile{left:0;width:100%;row-gap:.75rem}.excalidraw .dropdown-menu--mobile .dropdown-menu-container{padding:8px 8px;box-sizing:border-box;box-shadow:var(--shadow-island);border-radius:var(--border-radius-lg);position:relative;transition:box-shadow .5s ease-in-out}.excalidraw .dropdown-menu--mobile .dropdown-menu-container.zen-mode{box-shadow:none}.excalidraw .dropdown-menu .dropdown-menu-container{background-color:var(--island-bg-color);max-height:calc(100vh - 150px);overflow-y:auto;--gap: 2}.excalidraw .dropdown-menu .dropdown-menu-item-base{display:flex;padding:0 .625rem;-webkit-column-gap:.625rem;column-gap:.625rem;font-size:.875rem;color:var(--color-on-surface);width:100%;box-sizing:border-box;font-weight:normal;font-family:inherit}.excalidraw .dropdown-menu .dropdown-menu-item{background-color:rgba(0,0,0,0);border:1px solid rgba(0,0,0,0);align-items:center;height:2rem;cursor:pointer;border-radius:var(--border-radius-md)}@media screen and (min-width: 1921px){.excalidraw .dropdown-menu .dropdown-menu-item{height:2.25rem}}.excalidraw .dropdown-menu .dropdown-menu-item--selected{background:var(--color-primary-light);--icon-fill-color: var(--color-primary-darker)}.excalidraw .dropdown-menu .dropdown-menu-item__text{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.excalidraw .dropdown-menu .dropdown-menu-item__shortcut{-webkit-margin-start:auto;margin-inline-start:auto;opacity:.5}.excalidraw .dropdown-menu .dropdown-menu-item:hover{background-color:var(--button-hover-bg);text-decoration:none}.excalidraw .dropdown-menu .dropdown-menu-item:active{background-color:var(--button-hover-bg);border-color:var(--color-brand-active)}.excalidraw .dropdown-menu .dropdown-menu-item svg{width:1rem;height:1rem;display:block}.excalidraw .dropdown-menu .dropdown-menu-item-custom{margin-top:.5rem}.excalidraw .dropdown-menu .dropdown-menu-group-title{font-size:14px;text-align:left;margin:10px 0;font-weight:500}.excalidraw .dropdown-menu-button{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));width:var(--lg-button-size);height:var(--lg-button-size);--background: var(--color-surface-mid);background-color:var(--background)}.excalidraw .dropdown-menu-button svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .dropdown-menu-button:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .dropdown-menu-button:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .dropdown-menu-button.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .dropdown-menu-button.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .dropdown-menu-button.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw.theme--dark.excalidraw .dropdown-menu-button{--background: var(--color-surface-high)}.excalidraw.theme--dark.excalidraw .dropdown-menu-button:hover{--background: #363541}.excalidraw .dropdown-menu-button:hover{--background: var(--color-surface-high);background-color:var(--background);text-decoration:none}.excalidraw .dropdown-menu-button:active{border-color:var(--color-primary)}.excalidraw .dropdown-menu-button svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .dropdown-menu-button--mobile{border:none;margin:0;padding:0;width:var(--default-button-size);height:var(--default-button-size)}",""]),Q.Z=h},8793:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".footer-center{pointer-events:none;display:flex;width:100%;justify-content:flex-start;-webkit-margin-end:.6rem;margin-inline-end:.6rem}.footer-center>*{pointer-events:var(--ui-pointerEvents)}",""]),Q.Z=h},3397:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .collab-button{--button-bg: var(--color-primary);--button-color: white;--button-border: var(--color-primary);--button-width: var(--lg-button-size);--button-height: var(--lg-button-size);--button-hover-bg: var(--color-primary-darker);--button-hover-border: var(--color-primary-darker);--button-active-bg: var(--color-primary-darker);box-shadow:0 0 0 1px var(--color-surface-lowest);flex-shrink:0}.excalidraw .collab-button.active.active{background-color:#0fb884;border-color:#0fb884}.excalidraw .collab-button.active.active svg{color:#fff}.excalidraw .collab-button.active.active:hover,.excalidraw .collab-button.active.active:active{background-color:#0fb884;border-color:#0fb884}.excalidraw.theme--dark .collab-button{color:var(--color-gray-90)}.excalidraw .CollabButton.is-collaborating{background-color:var(--button-special-active-bg-color)}.excalidraw .CollabButton.is-collaborating .ToolIcon__icon svg,.excalidraw .CollabButton.is-collaborating .ToolIcon__label{color:var(--icon-green-fill-color)}.excalidraw .CollabButton-collaborators{min-width:1em;min-height:1em;line-height:1;position:absolute;bottom:-5px;padding:3px;border-radius:50%;background-color:#b2f2bb;color:#2b8a3e;font-size:.6rem;font-family:"Cascadia"}:root[dir=ltr] .excalidraw .CollabButton-collaborators{right:-5px}:root[dir=rtl] .excalidraw .CollabButton-collaborators{left:-5px}',""]),Q.Z=h},4343:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .ActiveFile .ActiveFile__fileName{display:flex;align-items:center}.excalidraw .ActiveFile .ActiveFile__fileName span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:9.3em}.excalidraw .ActiveFile .ActiveFile__fileName svg{width:1.15em;-webkit-margin-end:.3em;margin-inline-end:.3em;-webkit-transform:scaleY(0.9);transform:scaleY(0.9)}",""]),Q.Z=h},1569:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,'.excalidraw .virgil{font-family:"Virgil"}.excalidraw .welcome-screen-decor{pointer-events:none;color:var(--color-gray-40)}.excalidraw .welcome-screen-decor a{--color: var(--color-primary);color:var(--color);text-decoration:none;margin-bottom:-6px}.excalidraw.theme--dark .welcome-screen-decor{color:var(--color-gray-60)}@media(max-height: 599px){.excalidraw .welcome-screen-decor-hint{display:none !important}}@media(max-width: 1024px),(max-width: 800px){.excalidraw .welcome-screen-decor-hint .welcome-screen-decor--help,.excalidraw .welcome-screen-decor-hint .welcome-screen-decor--menu{display:none}}.excalidraw .welcome-screen-decor-hint--help{display:flex;position:absolute;right:0;bottom:100%}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--help{left:0;right:auto}.excalidraw .welcome-screen-decor-hint--help svg{margin-top:.5rem;width:85px;height:71px;-webkit-transform:scaleX(-1) rotate(80deg);transform:scaleX(-1) rotate(80deg)}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--help svg{-webkit-transform:rotate(80deg);transform:rotate(80deg)}.excalidraw .welcome-screen-decor-hint--toolbar{position:absolute;top:100%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);margin-top:2.5rem;display:flex;align-items:baseline}.excalidraw .welcome-screen-decor-hint--toolbar .welcome-screen-decor-hint__label{width:120px;position:relative;top:-0.5rem}.excalidraw .welcome-screen-decor-hint--toolbar svg{width:38px;height:78px}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--toolbar svg{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.excalidraw .welcome-screen-decor-hint--menu{position:absolute;width:320px;font-size:1rem;top:100%;margin-top:.25rem;-webkit-margin-start:.6rem;margin-inline-start:.6rem;display:flex;align-items:flex-end;gap:.5rem}.excalidraw .welcome-screen-decor-hint--menu svg{width:41px;height:94px}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--menu svg{-webkit-transform:scaleX(-1);transform:scaleX(-1)}@media(max-width: 860px){.excalidraw .welcome-screen-decor-hint--menu .welcome-screen-decor-hint__label{max-width:160px}}.excalidraw .welcome-screen-center{display:flex;flex-direction:column;gap:2rem;justify-content:center;align-items:center;position:absolute;pointer-events:none;left:1rem;top:1rem;right:1rem;bottom:1rem}.excalidraw .welcome-screen-center__logo{display:flex;align-items:center;-webkit-column-gap:.75rem;column-gap:.75rem;font-size:2.25rem}.excalidraw .welcome-screen-center__heading{font-size:1.125rem;text-align:center}.excalidraw .welcome-screen-menu{display:flex;flex-direction:column;gap:2px;justify-content:center;align-items:center}.excalidraw .welcome-screen-menu-item{box-sizing:border-box;pointer-events:var(--ui-pointerEvents);color:var(--color-gray-50);font-size:.875rem;width:100%;min-width:300px;max-width:400px;display:grid;align-items:center;justify-content:space-between;background:none;border:1px solid rgba(0,0,0,0);padding:.75rem;border-radius:var(--border-radius-md);grid-template-columns:calc(var(--default-icon-size) + .5rem) 1fr 3rem}.excalidraw .welcome-screen-menu-item__text{display:flex;align-items:center;margin-right:auto;text-align:left;-webkit-column-gap:.5rem;column-gap:.5rem}.excalidraw .welcome-screen-menu-item__icon{width:var(--default-icon-size);height:var(--default-icon-size)}.excalidraw .welcome-screen-menu-item__shortcut{margin-left:auto;color:var(--color-gray-40);font-size:.75rem}.excalidraw .welcome-screen-menu-item:hover{text-decoration:none;background:var(--button-hover-bg)}.excalidraw .welcome-screen-menu-item:hover .welcome-screen-menu-item__shortcut{color:var(--color-gray-50)}.excalidraw .welcome-screen-menu-item:hover .welcome-screen-menu-item__text{color:var(--color-gray-100)}.excalidraw .welcome-screen-menu-item:active{background:var(--button-hover-bg);border-color:var(--color-brand-active)}.excalidraw .welcome-screen-menu-item:active .welcome-screen-menu-item__shortcut{color:var(--color-gray-50)}.excalidraw .welcome-screen-menu-item:active .welcome-screen-menu-item__text{color:var(--color-gray-100)}.excalidraw .welcome-screen-menu-item:active--promo{color:var(--color-promo) !important}.excalidraw .welcome-screen-menu-item:active--promo:hover .welcome-screen-menu-item__text{color:var(--color-promo) !important}.excalidraw.theme--dark .welcome-screen-menu-item{color:var(--color-gray-60)}.excalidraw.theme--dark .welcome-screen-menu-item__shortcut{color:var(--color-gray-60)}.excalidraw.theme--dark .welcome-screen-menu-item:hover{background-color:var(--color-surface-low)}.excalidraw.theme--dark .welcome-screen-menu-item:hover .welcome-screen-menu-item__shortcut{color:var(--color-gray-50)}.excalidraw.theme--dark .welcome-screen-menu-item:hover .welcome-screen-menu-item__text{color:var(--color-gray-10)}.excalidraw.theme--dark .welcome-screen-menu-item:active .welcome-screen-menu-item__text{color:var(--color-gray-10)}@media(max-height: 599px){.excalidraw .welcome-screen-center{margin-top:4rem}}@media(min-height: 600px)and (max-height: 900px){.excalidraw .welcome-screen-center{margin-top:8rem}}@media(max-height: 500px),(max-width: 320px){.excalidraw .welcome-screen-center{display:none}}',""]),Q.Z=h},9915:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".visually-hidden{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);white-space:nowrap;-webkit-user-select:none;user-select:none}.LoadingMessage{position:absolute;top:0;right:0;bottom:0;left:0;z-index:999;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.LoadingMessage .Spinner{font-size:2.8em}.LoadingMessage .LoadingMessage-text{margin-top:1em;font-size:.8em}.LoadingMessage--dark{background-color:#121212;color:#ced4da}",""]),Q.Z=h},9310:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y),S=e(1667),I=e.n(S),v=new URL(e(7984),e.b),n=new URL(e(1639),e.b),M=h()(E()),Z=I()(v),H=I()(n);M.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}:export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--theme-filter: none;--button-destructive-bg-color: #ffe3e3;--button-destructive-color: #c92a2a;--button-gray-1: #e9ecef;--button-gray-2: #ced4da;--button-gray-3: #adb5bd;--button-special-active-bg-color: #ebfbee;--dialog-border-color: var(--color-gray-20);--dropdown-icon: url("+Z+");--focus-highlight-color: #a5d8ff;--icon-fill-color: var(--color-on-surface);--icon-green-fill-color: #2b8a3e;--default-bg-color: #ffffff;--input-bg-color: #ffffff;--input-border-color: #ced4da;--input-hover-bg-color: #f1f3f5;--input-label-color: #495057;--island-bg-color: #ffffff;--keybinding-color: var(--color-gray-40);--link-color: #1c7ed6;--overlay-bg-color: rgba(255, 255, 255, 0.88);--popup-bg-color: var(--island-bg-color);--popup-secondary-bg-color: #f1f3f5;--popup-text-color: #000000;--popup-text-inverted-color: #ffffff;--select-highlight-color: #339af0;--shadow-island: 0px 0px 0.9310142993927002px 0px rgba(0, 0, 0, 0.17), 0px 0px 3.1270833015441895px 0px rgba(0, 0, 0, 0.08), 0px 7px 14px 0px rgba(0, 0, 0, 0.05);--button-hover-bg: var(--color-surface-high);--button-active-bg: var(--color-surface-high);--button-active-border: var(--color-brand-active);--default-border-color: var(--color-surface-high);--default-button-size: 2rem;--default-icon-size: 1rem;--lg-button-size: 2.25rem;--lg-icon-size: 1rem;--editor-container-padding: 1rem;--scrollbar-thumb: var(--button-gray-2);--scrollbar-thumb-hover: var(--button-gray-3);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-20);--sidebar-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--sidebar-border-color: var(--color-surface-high);--sidebar-bg-color: var(--island-bg-color);--library-dropdown-shadow: 0px 15px 6px rgba(0, 0, 0, 0.01), 0px 8px 5px rgba(0, 0, 0, 0.05), 0px 4px 4px rgba(0, 0, 0, 0.09), 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1);--space-factor: 0.25rem;--text-primary-color: var(--color-on-surface);--color-selection: #6965db;--color-icon-white: #ffffff;--color-primary: #6965db;--color-primary-darker: #5b57d1;--color-primary-darkest: #4a47b1;--color-primary-light: #e3e2fe;--color-primary-light-darker: #d7d5ff;--color-gray-10: #f5f5f5;--color-gray-20: #ebebeb;--color-gray-30: #d6d6d6;--color-gray-40: #b8b8b8;--color-gray-50: #999999;--color-gray-60: #7a7a7a;--color-gray-70: #5c5c5c;--color-gray-80: #3d3d3d;--color-gray-85: #242424;--color-gray-90: #1e1e1e;--color-gray-100: #121212;--color-warning: #fceeca;--color-warning-dark: #f5c354;--color-warning-darker: #f3ab2c;--color-warning-darkest: #ec8b14;--color-text-warning: var(--text-primary-color);--color-danger: #db6965;--color-danger-dark: #db6965;--color-danger-darker: #d65550;--color-danger-darkest: #d1413c;--color-danger-text: black;--color-danger-background: #fff0f0;--color-danger-icon-background: #ffdad6;--color-danger-color: #700000;--color-danger-icon-color: #700000;--color-warning-background: var(--color-warning);--color-warning-icon-background: var(--color-warning-dark);--color-warning-color: var(--text-primary-color);--color-warning-icon-color: var(--text-primary-color);--color-muted: var(--color-gray-30);--color-muted-darker: var(--color-gray-60);--color-muted-darkest: var(--color-gray-100);--color-muted-background: var(--color-gray-80);--color-muted-background-darker: var(--color-gray-100);--color-promo: #e70078;--color-success: #268029;--color-success-lighter: #cafccc;--color-logo-icon: var(--color-primary);--color-logo-text: #190064;--border-radius-md: 0.375rem;--border-radius-lg: 0.5rem;--color-surface-high: hsl(244, 100%, 97%);--color-surface-mid: hsl(240 25% 96%);--color-surface-low: hsl(240 25% 94%);--color-surface-lowest: #ffffff;--color-on-surface: #1b1b1f;--color-brand-hover: #5753d0;--color-on-primary-container: #030064;--color-surface-primary-container: #e0dfff;--color-brand-active: #4440bf;--color-border-outline: #767680;--color-border-outline-variant: #c5c5d0;--color-surface-primary-container: #e0dfff}@media screen and (min-device-width: 1921px){.excalidraw{--lg-button-size: 2.5rem;--lg-icon-size: 1.25rem;--default-button-size: 2.25rem;--default-icon-size: 1.25rem}}.excalidraw.theme--dark.theme--dark-background-none{background:none}.excalidraw.theme--dark{--theme-filter: invert(93%) hue-rotate(180deg);--button-destructive-bg-color: #5a0000;--button-destructive-color: #ffa8a8;--button-gray-1: #363636;--button-gray-2: #272727;--button-gray-3: #222;--button-special-active-bg-color: #204624;--dialog-border-color: var(--color-gray-80);--dropdown-icon: url("+H+');--focus-highlight-color: #228be6;--icon-green-fill-color: #69db7c;--default-bg-color: #121212;--input-bg-color: #121212;--input-border-color: #2e2e2e;--input-hover-bg-color: #181818;--input-label-color: #e9ecef;--island-bg-color: #232329;--keybinding-color: var(--color-gray-60);--link-color: #4dabf7;--overlay-bg-color: rgba(52, 58, 64, 0.12);--popup-secondary-bg-color: #222;--popup-text-color: #ced4da;--popup-text-inverted-color: #2c2c2c;--select-highlight-color: #4dabf7;--shadow-island: 0px 0px 0.9310142993927002px 0px rgba(0, 0, 0, 0.17), 0px 0px 3.1270833015441895px 0px rgba(0, 0, 0, 0.08), 0px 7px 14px 0px rgba(0, 0, 0, 0.05);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-85);--scrollbar-thumb: #343a40;--scrollbar-thumb-hover: #495057;--color-selection: #3530c4;--color-icon-white: var(--color-gray-90);--color-primary: #a8a5ff;--color-primary-darker: #b2aeff;--color-primary-darkest: #beb9ff;--color-primary-light: #4f4d6f;--color-primary-light-darker: #43415e;--color-text-warning: var(--color-gray-80);--color-danger: #ffa8a5;--color-danger-dark: #672120;--color-danger-darker: #8f2625;--color-danger-darkest: #ac2b29;--color-danger-text: #fbcbcc;--color-danger-background: #fbcbcc;--color-danger-icon-background: #672120;--color-danger-color: #261919;--color-danger-icon-color: #fbcbcc;--color-warning-background: var(--color-warning);--color-warning-icon-background: var(--color-warning-dark);--color-warning-color: var(--color-gray-80);--color-warning-icon-color: var(--color-gray-80);--color-muted: var(--color-gray-80);--color-muted-darker: var(--color-gray-60);--color-muted-darkest: var(--color-gray-20);--color-muted-background: var(--color-gray-40);--color-muted-background-darker: var(--color-gray-20);--color-promo: #d297ff;--color-logo-text: #e2dfff;--color-surface-high: hsl(245, 10%, 21%);--color-surface-low: hsl(240, 8%, 15%);--color-surface-mid: hsl(240 6% 10%);--color-surface-lowest: hsl(0, 0%, 7%);--color-on-surface: #e3e3e8;--color-brand-hover: #bbb8ff;--color-on-primary-container: #e0dfff;--color-surface-primary-container: #403e6a;--color-brand-active: #d0ccff;--color-border-outline: #8e8d9c;--color-border-outline-variant: #46464f;--color-surface-primary-container: #403e6a}:root{--zIndex-canvas: 1;--zIndex-interactiveCanvas: 2;--zIndex-wysiwyg: 3;--zIndex-layerUI: 4;--zIndex-eyeDropperBackdrop: 5;--zIndex-eyeDropperPreview: 6;--zIndex-modal: 1000;--zIndex-popup: 1001;--zIndex-toast: 999999;--sab: env(safe-area-inset-bottom);--sal: env(safe-area-inset-left);--sar: env(safe-area-inset-right);--sat: env(safe-area-inset-top)}.excalidraw{--ui-font: Assistant, system-ui, BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;font-family:var(--ui-font);position:relative;overflow:hidden;color:var(--text-primary-color);display:flex;top:0;bottom:0;left:0;right:0;height:100%;width:100%;-webkit-user-select:none;user-select:none}.excalidraw button{cursor:pointer}.excalidraw:focus{outline:none}.excalidraw a{font-weight:500;text-decoration:none;color:var(--link-color)}.excalidraw a:hover{text-decoration:underline}.excalidraw canvas{touch-action:none;image-rendering:pixelated;image-rendering:-moz-crisp-edges;z-index:var(--zIndex-canvas)}.excalidraw canvas.interactive{z-index:var(--zIndex-interactiveCanvas)}.excalidraw__canvas-wrapper,.excalidraw__canvas.static{pointer-events:none}.excalidraw__canvas{position:absolute}.excalidraw__embeddable{width:100%;height:100%;border:0}.excalidraw__embeddable-container{position:absolute;z-index:2;-webkit-transform-origin:top left;transform-origin:top left;pointer-events:none}.excalidraw.theme--dark canvas{-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .FixedSideContainer{padding-top:var(--sat, 0);padding-right:var(--sar, 0);padding-bottom:var(--sab, 0);padding-left:var(--sal, 0)}.excalidraw .panelRow{display:flex;justify-content:space-between}.excalidraw .panelColumn{display:flex;flex-direction:column;row-gap:.75rem}.excalidraw .panelColumn h3,.excalidraw .panelColumn legend,.excalidraw .panelColumn .control-label{margin:0;margin-bottom:.25rem;font-size:.75rem;color:var(--text-primary-color);font-weight:normal;display:block}.excalidraw .panelColumn .control-label input{display:block;width:100%}.excalidraw .panelColumn legend{padding:0}.excalidraw .panelColumn .iconSelectList{flex-wrap:wrap;position:relative}.excalidraw .panelColumn .buttonList{flex-wrap:wrap;display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem}.excalidraw .panelColumn .buttonList label{font-size:.75rem}.excalidraw .panelColumn .buttonList input[type=radio],.excalidraw .panelColumn .buttonList input[type=button]{opacity:0;position:absolute;pointer-events:none}.excalidraw .panelColumn .buttonList .iconRow{margin-top:8px}.excalidraw .panelColumn fieldset{margin:0;padding:0;border:none}.excalidraw .divider{width:1px;background-color:#e9ecef;margin:1px}.excalidraw .welcome-screen-menu-item:focus-visible,.excalidraw .dropdown-menu-item:focus-visible,.excalidraw button:focus-visible,.excalidraw .buttonList label:focus-within,.excalidraw input:focus-visible{outline:rgba(0,0,0,0);box-shadow:0 0 0 1px var(--color-brand-hover)}.excalidraw .buttonList .ToolIcon__icon{all:unset !important;display:flex !important}.excalidraw .buttonList button{background-color:rgba(0,0,0,0)}.excalidraw .buttonList label,.excalidraw .buttonList button,.excalidraw .buttonList .zIndexButton{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));padding:0}.excalidraw .buttonList label svg,.excalidraw .buttonList button svg,.excalidraw .buttonList .zIndexButton svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .buttonList label:hover,.excalidraw .buttonList button:hover,.excalidraw .buttonList .zIndexButton:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .buttonList label:active,.excalidraw .buttonList button:active,.excalidraw .buttonList .zIndexButton:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .buttonList label.active,.excalidraw .buttonList button.active,.excalidraw .buttonList .zIndexButton.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .buttonList label.active:hover,.excalidraw .buttonList button.active:hover,.excalidraw .buttonList .zIndexButton.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .buttonList label.active svg,.excalidraw .buttonList button.active svg,.excalidraw .buttonList .zIndexButton.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw .buttonList label svg,.excalidraw .buttonList button svg,.excalidraw .buttonList .zIndexButton svg{width:var(--default-icon-size);height:var(--default-icon-size)}.excalidraw .App-top-bar{z-index:var(--zIndex-layerUI);display:flex;flex-direction:column;align-items:center}.excalidraw .App-bottom-bar{position:absolute;top:0;bottom:0;left:0;right:0;--bar-padding: calc(4 * var(--space-factor));padding-top:max(var(--bar-padding), var(--sat,0));padding-right:var(--sar, 0);padding-bottom:var(--sab, 0);padding-left:var(--sal, 0);z-index:4;display:flex;align-items:flex-end;pointer-events:none}.excalidraw .App-bottom-bar>.Island{width:100%;max-width:100%;min-width:100%;box-sizing:border-box;max-height:100%;display:flex;flex-direction:column;pointer-events:var(--ui-pointerEvents)}.excalidraw .App-bottom-bar>.Island .panelColumn{padding:8px 8px 0 8px}.excalidraw .App-toolbar{width:100%}.excalidraw .App-toolbar .eraser.ToolIcon:hover{--icon-fill-color: #fff;--keybinding-color: #fff}.excalidraw .App-toolbar .eraser.active{background-color:var(--color-primary)}.excalidraw .App-toolbar-content{display:flex;align-items:center;justify-content:space-between;padding:8px}.excalidraw .App-toolbar-content .dropdown-menu--mobile{bottom:55px;top:auto}.excalidraw .App-mobile-menu{width:100%;overflow-x:visible;overflow-y:auto;box-sizing:border-box;margin-bottom:var(--bar-padding)}.excalidraw .App-menu{display:grid;color:var(--icon-fill-color)}.excalidraw .shapes-section{display:flex;justify-content:center;pointer-events:none !important}.excalidraw .shapes-section>*{pointer-events:var(--ui-pointerEvents)}.excalidraw .App-menu_top{grid-template-columns:1fr 2fr 1fr;grid-gap:2rem;align-items:flex-start;cursor:default;pointer-events:none !important}.excalidraw .App-menu_top>*{pointer-events:var(--ui-pointerEvents)}@media(min-width: 1536px){.excalidraw .App-menu_top{grid-template-columns:1fr 1fr 1fr;grid-gap:3rem}}.excalidraw .App-menu_top>*:first-child{justify-self:flex-start}.excalidraw .App-menu_top>*:last-child{justify-self:flex-end}.excalidraw .App-menu_bottom{position:absolute;bottom:1rem;display:flex;justify-content:space-between;align-items:flex-start;cursor:default;pointer-events:none !important;box-sizing:border-box;padding:0 1rem}.excalidraw .App-menu_bottom--transition-left section{width:185px}.excalidraw .App-menu_bottom section{display:flex}.excalidraw .App-menu_bottom>*:first-child{justify-self:flex-start}.excalidraw .App-menu_bottom>*:last-child{justify-self:flex-end}.excalidraw .App-menu_left{grid-template-rows:1fr auto 1fr;height:100%}.excalidraw .App-menu_right{grid-template-rows:1fr;height:100%}.excalidraw .App-menu__left{overflow-y:auto;padding:.75rem;width:202px;box-sizing:border-box;position:absolute}.excalidraw .dropdown-select{height:1.5rem;padding:0;-webkit-padding-start:.5rem;padding-inline-start:.5rem;-webkit-padding-end:1.5rem;padding-inline-end:1.5rem;color:var(--icon-fill-color);background-color:var(--button-gray-1);border-radius:var(--space-factor);border:1px solid var(--button-gray-2);font-size:.8rem;font-family:inherit;outline:none;-webkit-appearance:none;appearance:none;background-image:var(--dropdown-icon);background-repeat:no-repeat;background-position:right .7rem top 50%,0 0;background-size:.65em auto,100%}:root[dir=rtl] .excalidraw .dropdown-select{background-position:left .7rem top 50%,0 0}.excalidraw .dropdown-select:focus{box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .dropdown-select:hover{background-color:var(--button-gray-2)}.excalidraw .dropdown-select:active{background-color:var(--button-gray-2)}.excalidraw .dropdown-select__language{height:2rem;background-color:var(--island-bg-color);border-color:var(--default-border-color) !important;cursor:pointer}.excalidraw .dropdown-select__language:hover{background-color:var(--island-bg-color)}.excalidraw .scroll-back-to-content{border-radius:var(--border-radius-lg);background-color:var(--island-bg-color);color:var(--icon-fill-color);border:1px solid var(--default-border-color);padding:10px 20px;position:absolute;left:50%;bottom:30px;-webkit-transform:translateX(-50%);transform:translateX(-50%);pointer-events:var(--ui-pointerEvents);font-family:inherit}.excalidraw .scroll-back-to-content:hover{background-color:var(--button-hover-bg)}.excalidraw .scroll-back-to-content:active{border:1px solid var(--button-active-border)}.excalidraw .help-icon{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));border:none;box-shadow:0 0 0 1px var(--color-surface-lowest);background-color:var(--color-surface-low);width:var(--lg-button-size);height:var(--lg-button-size)}.excalidraw .help-icon svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .help-icon:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .help-icon:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .help-icon.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .help-icon.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .help-icon.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw .help-icon:active{box-shadow:0 0 0 1px var(--color-brand-active)}.excalidraw .help-icon svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .reset-zoom-button{font-family:var(--ui-font)}.excalidraw .finalize-button{display:grid;grid-auto-flow:column;gap:.4em;margin-top:auto;margin-bottom:auto;-webkit-margin-start:.6em;margin-inline-start:.6em}.excalidraw .undo-redo-buttons,.excalidraw .eraser-buttons{display:grid;grid-auto-flow:column;margin-top:auto;margin-bottom:auto;-webkit-margin-start:.6em;margin-inline-start:.6em}.excalidraw--mobile.excalidraw aside{display:none}.excalidraw--mobile.excalidraw .scroll-back-to-content{bottom:calc(80px + var(--sab, 0));z-index:-1}:root[dir=rtl] .excalidraw .rtl-mirror{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.excalidraw .zen-mode-visibility{visibility:visible;opacity:1;height:auto;width:auto;transition:opacity .5s}.excalidraw .zen-mode-visibility.zen-mode-visibility--hidden{visibility:hidden;opacity:0;height:0;width:0;transition:opacity .5s}.excalidraw .disable-pointerEvents{pointer-events:none !important}.excalidraw.excalidraw--view-mode .App-menu{display:flex;justify-content:space-between}.excalidraw input[type=text],.excalidraw textarea:not(.excalidraw-wysiwyg){color:var(--text-primary-color);border:1.5px solid var(--input-border-color);padding:.75rem;white-space:nowrap;border-radius:var(--space-factor);background-color:var(--input-bg-color)}.excalidraw input[type=text]:not(:focus):hover,.excalidraw textarea:not(.excalidraw-wysiwyg):not(:focus):hover{border-color:var(--color-brand-hover)}.excalidraw input[type=text]:focus,.excalidraw textarea:not(.excalidraw-wysiwyg):focus{outline:none;border-color:var(--color-brand-hover)}@media print{.excalidraw .App-bottom-bar,.excalidraw .FixedSideContainer,.excalidraw .layer-ui__wrapper{display:none}}.excalidraw ::-webkit-scrollbar{width:3px;height:3px}.excalidraw select::-webkit-scrollbar{width:10px}.excalidraw ::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:10px}.excalidraw ::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}.excalidraw ::-webkit-scrollbar-thumb:active{background:var(--scrollbar-thumb)}.excalidraw .mobile-misc-tools-container{position:absolute;top:calc(5rem - var(--editor-container-padding));right:calc(var(--editor-container-padding)*-1);display:flex;flex-direction:column;border:1px solid var(--sidebar-border-color);border-top-left-radius:var(--border-radius-lg);border-bottom-left-radius:var(--border-radius-lg);border-right:0;overflow:hidden;background-color:var(--island-bg-color)}.excalidraw .mobile-misc-tools-container .ToolIcon__icon{width:2rem;height:2rem;border-radius:0}.excalidraw .mobile-misc-tools-container .default-sidebar-trigger{border:0}.excalidraw .App-toolbar--mobile{overflow:visible;max-width:98vw}.excalidraw .App-toolbar--mobile .ToolIcon__keybinding{display:none}.excalidraw .UserList-Wrapper{margin:0;padding:0;border:none;text-align:left}.excalidraw .UserList-Wrapper legend{display:block;font-size:.75rem;font-weight:400;margin:0 0 .25rem;padding:0}.excalidraw .main-menu-trigger{border:none;box-shadow:0 0 0 1px var(--color-surface-lowest);background-color:var(--color-surface-low)}.excalidraw .main-menu-trigger:active{box-shadow:0 0 0 1px var(--color-brand-active)}.excalidraw .App-menu__left{--button-border: transparent;--button-bg: var(--color-surface-mid)}.excalidraw.theme--dark.excalidraw .App-menu__left{--button-hover-bg: #363541;--button-bg: var(--color-surface-high)}.ErrorSplash.excalidraw{min-height:100vh;padding:20px 0;overflow:auto;display:flex;align-items:center;justify-content:center;-webkit-user-select:text;user-select:text}.ErrorSplash.excalidraw .ErrorSplash-messageContainer{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;background-color:#ffe3e3;border:3px solid #c92a2a}.ErrorSplash.excalidraw .ErrorSplash-paragraph{margin:15px 0;max-width:600px}.ErrorSplash.excalidraw .ErrorSplash-paragraph.align-center{text-align:center}.ErrorSplash.excalidraw .bigger,.ErrorSplash.excalidraw .bigger button{font-size:1.1em}.ErrorSplash.excalidraw .smaller,.ErrorSplash.excalidraw .smaller button{font-size:.9em}.ErrorSplash.excalidraw .ErrorSplash-details{display:flex;flex-direction:column;align-items:flex-start}.ErrorSplash.excalidraw .ErrorSplash-details textarea{width:100%;margin:10px 0;font-family:"Cascadia";font-size:.8em}.excalidraw__embeddable-container .excalidraw__embeddable-container__inner{overflow:hidden;display:flex;align-items:center;justify-content:center;border-radius:var(--embeddable-radius)}.excalidraw__embeddable-container .excalidraw__embeddable__outer{width:100%;height:100%}.excalidraw__embeddable-container .excalidraw__embeddable__outer>*{border-radius:var(--embeddable-radius)}.excalidraw__embeddable-container .excalidraw__embeddable-hint{position:absolute;z-index:1;background:rgba(0,0,0,.5);padding:1rem 1.6rem;border-radius:12px;color:#fff;font-weight:bold;letter-spacing:.6px;font-family:"Assistant"}',""]),Q.Z=M},6464:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,"",""]),h.locals={themeFilter:"invert(93%) hue-rotate(180deg)",rightSidebarWidth:"302px"},Q.Z=h},5260:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw-hyperlinkContainer{display:flex;align-items:center;justify-content:space-between;position:absolute;box-shadow:0px 2px 4px 0 rgba(0,0,0,.3);z-index:100;background:var(--island-bg-color);border-radius:var(--border-radius-md);box-sizing:border-box;min-height:42px}.excalidraw-hyperlinkContainer-input,.excalidraw-hyperlinkContainer button{z-index:100}.excalidraw-hyperlinkContainer-input,.excalidraw-hyperlinkContainer-link{height:24px;padding:0 8px;line-height:24px;font-size:.9rem;font-weight:500;font-family:var(--ui-font)}.excalidraw-hyperlinkContainer-input{width:18rem;border:none;background-color:rgba(0,0,0,0);color:var(--text-primary-color);outline:none;border:none;box-shadow:none !important}.excalidraw-hyperlinkContainer-link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:15rem}.excalidraw-hyperlinkContainer button{color:#228be6;background-color:rgba(0,0,0,0) !important;font-weight:500}.excalidraw-hyperlinkContainer button.excalidraw-hyperlinkContainer--remove{color:#c92a2a}.excalidraw-hyperlinkContainer--remove .ToolIcon__icon svg{color:#fa5252}.excalidraw-hyperlinkContainer .ToolIcon__icon{width:2rem;height:2rem}.excalidraw-hyperlinkContainer__buttons{flex:0 0 auto}",""]),Q.Z=h},3645:function(Se){Se.exports=function(Q){var e=[];return e.toString=function(){return this.map(function(D){var E="",y=D[5]!==void 0;return D[4]&&(E+="@supports (".concat(D[4],") {")),D[2]&&(E+="@media ".concat(D[2]," {")),y&&(E+="@layer".concat(D[5].length>0?" ".concat(D[5]):""," {")),E+=Q(D),y&&(E+="}"),D[2]&&(E+="}"),D[4]&&(E+="}"),E}).join("")},e.i=function(D,E,y,h,S){typeof D=="string"&&(D=[[null,D,void 0]]);var I={};if(y)for(var v=0;v<this.length;v++){var n=this[v][0];n!=null&&(I[n]=!0)}for(var M=0;M<D.length;M++){var Z=[].concat(D[M]);y&&I[Z[0]]||(S!==void 0&&(Z[5]===void 0||(Z[1]="@layer".concat(Z[5].length>0?" ".concat(Z[5]):""," {").concat(Z[1],"}")),Z[5]=S),E&&(Z[2]&&(Z[1]="@media ".concat(Z[2]," {").concat(Z[1],"}")),Z[2]=E),h&&(Z[4]?(Z[1]="@supports (".concat(Z[4],") {").concat(Z[1],"}"),Z[4]=h):Z[4]="".concat(h)),e.push(Z))}},e}},1667:function(Se){Se.exports=function(Q,e){return e||(e={}),Q&&(Q=String(Q.__esModule?Q.default:Q),/^['"].*['"]$/.test(Q)&&(Q=Q.slice(1,-1)),e.hash&&(Q+=e.hash),/["'() \t\n]|(%20)/.test(Q)||e.needQuotes?'"'.concat(Q.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):Q)}},8081:function(Se){Se.exports=function(Q){return Q[1]}},7392:function(Se,Q,e){e.d(Q,{JQ:function(){return pe},vD:function(){return de},y7:function(){return le}});var D=e(1930),E=e(7169),y=e(9937),h=e(7651),S=e(583),I=e(4761),v=e(3474),n=e(4183),M=e(9827),Z=e(2767);function H(oe,P){var $=typeof Symbol<"u"&&oe[Symbol.iterator]||oe["@@iterator"];if(!$){if(Array.isArray(oe)||($=function(s,f){if(s){if(typeof s=="string")return W(s,f);var t=Object.prototype.toString.call(s).slice(8,-1);if(t==="Object"&&s.constructor&&(t=s.constructor.name),t==="Map"||t==="Set")return Array.from(s);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return W(s,f)}}(oe))||P&&oe&&typeof oe.length=="number"){$&&(oe=$);var b=0,R=function(){};return{s:R,n:function(){return b>=oe.length?{done:!0}:{done:!1,value:oe[b++]}},e:function(s){throw s},f:R}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _,g=!0,O=!1;return{s:function(){$=$.call(oe)},n:function(){var s=$.next();return g=s.done,s},e:function(s){O=!0,_=s},f:function(){try{g||$.return==null||$.return()}finally{if(O)throw _}}}}function W(oe,P){(P==null||P>oe.length)&&(P=oe.length);for(var $=0,b=new Array(P);$<P;$++)b[$]=oe[$];return b}function u(oe,P){var $=Object.keys(oe);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(oe);P&&(b=b.filter(function(R){return Object.getOwnPropertyDescriptor(oe,R).enumerable})),$.push.apply($,b)}return $}function U(oe){for(var P=1;P<arguments.length;P++){var $=arguments[P]!=null?arguments[P]:{};P%2?u(Object($),!0).forEach(function(b){(0,E.Z)(oe,b,$[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(oe,Object.getOwnPropertyDescriptors($)):u(Object($)).forEach(function(b){Object.defineProperty(oe,b,Object.getOwnPropertyDescriptor($,b))})}return oe}var le=(0,Z.z)({name:"unbindText",contextItemLabel:"labels.unbindText",trackEvent:{category:"element"},predicate:function(oe,P,$,b){return b.scene.getSelectedElements(P).some(function(R){return(0,n.Xo)(R)})},perform:function(oe,P,$,b){return b.scene.getSelectedElements(P).forEach(function(R){var _=(0,I.WJ)(R);if(_){var g,O=(0,I.X1)(_.originalText,(0,M.mO)(_),_.lineHeight),s=O.width,f=O.height,t=O.baseline,w=(0,v.eR)(R.id);(0,v.kT)(R.id);var l=(0,I.FE)(R,_),a=l.x,c=l.y;(0,S.DR)(_,{containerId:null,width:s,height:f,baseline:t,text:_.originalText,x:a,y:c}),(0,S.DR)(R,{boundElements:(g=R.boundElements)===null||g===void 0?void 0:g.filter(function(m){return m.id!==_.id}),height:w||R.height})}}),{elements:oe,appState:P,commitToHistory:!0}}}),de=(0,Z.z)({name:"bindText",contextItemLabel:"labels.bindText",trackEvent:{category:"element"},predicate:function(oe,P,$,b){var R=b.scene.getSelectedElements(P);if(R.length===2){var _,g=(0,h.iB)(R[0])||(0,h.iB)(R[1]);if((0,n.mG)(R[0])?_=R[0]:(0,n.mG)(R[1])&&(_=R[1]),g&&_&&(0,I.WJ)(_)===null)return!0}return!1},perform:function(oe,P,$,b){var R,_,g=b.scene.getSelectedElements(P);(0,h.iB)(g[0])&&(0,n.mG)(g[1])?(R=g[0],_=g[1]):(R=g[1],_=g[0]),(0,S.DR)(R,{containerId:_.id,verticalAlign:y.oX.MIDDLE,textAlign:y.I8.CENTER}),(0,S.DR)(_,{boundElements:(_.boundElements||[]).concat({type:"text",id:R.id})});var O=_.height;return(0,I.oN)(R,_),(0,v.h_)(_.id,O),{elements:he(oe,_,R),appState:U(U({},P),{},{selectedElementIds:(0,E.Z)({},_.id,!0)}),commitToHistory:!0}}}),he=function(oe,P,$){var b=oe.slice(),R=b.findIndex(function(g){return g.id===$.id});b.splice(R,1);var _=b.findIndex(function(g){return g.id===P.id});return b.splice(_+1,0,$),b},pe=(0,Z.z)({name:"wrapTextInContainer",contextItemLabel:"labels.createContainerFromText",trackEvent:{category:"element"},predicate:function(oe,P,$,b){var R=b.scene.getSelectedElements(P),_=R.every(function(g){return(0,h.iB)(g)});return R.length>0&&_},perform:function(oe,P,$,b){var R,_=b.scene.getSelectedElements(P),g=oe.slice(),O={},s=H(_);try{var f=function(){var t=R.value;if((0,h.iB)(t)){var w,l=(0,h.Up)({type:"rectangle",backgroundColor:P.currentItemBackgroundColor,boundElements:[].concat((0,D.Z)(t.boundElements||[]),[{id:t.id,type:"text"}]),angle:t.angle,fillStyle:P.currentItemFillStyle,strokeColor:P.currentItemStrokeColor,roughness:P.currentItemRoughness,strokeWidth:P.currentItemStrokeWidth,strokeStyle:P.currentItemStrokeStyle,roundness:P.currentItemRoundness==="round"?{type:(0,n.QI)("rectangle")?y.a6.ADAPTIVE_RADIUS:y.a6.PROPORTIONAL_RADIUS}:null,opacity:100,locked:!1,x:t.x-y.gK,y:t.y-y.gK,width:(0,I.NS)(t.width,"rectangle"),height:(0,I.NS)(t.height,"rectangle"),groupIds:t.groupIds,frameId:t.frameId});if((w=t.boundElements)!==null&&w!==void 0&&w.length){var a=t.boundElements.filter(function(c){return c.type==="arrow"}).map(function(c){return c.id});g.filter(function(c){return a.includes(c.id)}).forEach(function(c){var m,z,j=c.startBinding,k=c.endBinding;((m=j)===null||m===void 0?void 0:m.elementId)===t.id&&(j=U(U({},j),{},{elementId:l.id})),((z=k)===null||z===void 0?void 0:z.elementId)===t.id&&(k=U(U({},k),{},{elementId:l.id})),(j||k)&&(0,S.DR)(c,{startBinding:j,endBinding:k},!1)})}(0,S.DR)(t,{containerId:l.id,verticalAlign:y.oX.MIDDLE,boundElements:null,textAlign:y.I8.CENTER},!1),(0,I.oN)(t,l),g=function(c,m,z){var j=c.slice(),k=j.findIndex(function(N){return N.id===m.id});j.splice(k,1);var x=j.findIndex(function(N){return N.id===z.id});return j.splice(x,0,m),j}([].concat((0,D.Z)(g),[l]),l,t),O[l.id]=!0}};for(s.s();!(R=s.n()).done;)f()}catch(t){s.e(t)}finally{s.f()}return{elements:g,appState:U(U({},P),{},{selectedElementIds:O}),commitToHistory:!0}}})},6006:function(Se,Q,e){e.d(Q,{CZ:function(){return g},JB:function(){return O},Lo:function(){return _},Zp:function(){return s},eF:function(){return f},mo:function(){return R}});var D=e(2577),E=e(7169),y=e(193),h=e(8935),S=e(1512),I=e(9937),v=e(7651),n=e(8227),M=e(5491),Z=e(4105),H=e(2382),W=e(4116),u=e(9827),U=e(2767),le=e(8925),de=e(583),he=e(6853),pe=e(9240),oe=e(7652),P=e(1020);function $(t,w){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);w&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),l.push.apply(l,a)}return l}function b(t){for(var w=1;w<arguments.length;w++){var l=arguments[w]!=null?arguments[w]:{};w%2?$(Object(l),!0).forEach(function(a){(0,E.Z)(t,a,l[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):$(Object(l)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(l,a))})}return t}(0,U.z)({name:"changeViewBackgroundColor",trackEvent:!1,predicate:function(t,w,l,a){return!!a.props.UIOptions.canvasActions.changeViewBackgroundColor&&!w.viewModeEnabled},perform:function(t,w,l){return{appState:b(b({},w),l),commitToHistory:!!l.viewBackgroundColor}},PanelComponent:function(t){var w=t.elements,l=t.appState,a=t.updateData;return t.appProps,(0,P.jsx)(y.z,{palette:null,topPicks:pe.ay,label:(0,n.t)("labels.canvasBackground"),type:"canvasBackground",color:l.viewBackgroundColor,onChange:function(c){return a({viewBackgroundColor:c})},"data-testid":"canvas-background-picker",elements:w,appState:l,updateData:a})}});var R=(0,U.z)({name:"clearCanvas",trackEvent:{category:"canvas"},predicate:function(t,w,l,a){return!!a.props.UIOptions.canvasActions.clearCanvas&&!w.viewModeEnabled},perform:function(t,w,l,a){return a.imageCache.clear(),{elements:t.map(function(c){return(0,de.BE)(c,{isDeleted:!0})}),appState:b(b({},(0,he.im)()),{},{files:{},theme:w.theme,penMode:w.penMode,penDetected:w.penDetected,exportBackground:w.exportBackground,exportEmbedScene:w.exportEmbedScene,gridSize:w.gridSize,showStats:w.showStats,pasteDialog:w.pasteDialog,activeTool:w.activeTool.type==="image"?b(b({},w.activeTool),{},{type:"selection"}):w.activeTool}),commitToHistory:!0}}}),_=(0,U.z)({name:"zoomIn",viewMode:!0,trackEvent:{category:"canvas"},perform:function(t,w,l,a){return{appState:b(b({},w),(0,W.E)({viewportX:w.width/2+w.offsetLeft,viewportY:w.height/2+w.offsetTop,nextZoom:(0,Z.j)(w.zoom.value+I.V4)},w)),commitToHistory:!1}},PanelComponent:function(t){var w=t.updateData;return(0,P.jsx)(S.V,{type:"button",className:"zoom-in-button zoom-button",icon:h.Sd,title:"".concat((0,n.t)("buttons.zoomIn")," — ").concat((0,u.uY)("CtrlOrCmd++")),"aria-label":(0,n.t)("buttons.zoomIn"),onClick:function(){w(null)}})},keyTest:function(t){return(t.code===M.aU.EQUAL||t.code===M.aU.NUM_ADD)&&(t[M.tW.CTRL_OR_CMD]||t.shiftKey)}}),g=(0,U.z)({name:"zoomOut",viewMode:!0,trackEvent:{category:"canvas"},perform:function(t,w,l,a){return{appState:b(b({},w),(0,W.E)({viewportX:w.width/2+w.offsetLeft,viewportY:w.height/2+w.offsetTop,nextZoom:(0,Z.j)(w.zoom.value-I.V4)},w)),commitToHistory:!1}},PanelComponent:function(t){var w=t.updateData;return(0,P.jsx)(S.V,{type:"button",className:"zoom-out-button zoom-button",icon:h.xL,title:"".concat((0,n.t)("buttons.zoomOut")," — ").concat((0,u.uY)("CtrlOrCmd+-")),"aria-label":(0,n.t)("buttons.zoomOut"),onClick:function(){w(null)}})},keyTest:function(t){return(t.code===M.aU.MINUS||t.code===M.aU.NUM_SUBTRACT)&&(t[M.tW.CTRL_OR_CMD]||t.shiftKey)}}),O=((0,U.z)({name:"resetZoom",viewMode:!0,trackEvent:{category:"canvas"},perform:function(t,w,l,a){return{appState:b(b({},w),(0,W.E)({viewportX:w.width/2+w.offsetLeft,viewportY:w.height/2+w.offsetTop,nextZoom:(0,Z.j)(1)},w)),commitToHistory:!1}},PanelComponent:function(t){var w=t.updateData,l=t.appState;return(0,P.jsx)(le.u,{label:(0,n.t)("buttons.resetZoom"),style:{height:"100%"},children:(0,P.jsxs)(S.V,{type:"button",className:"reset-zoom-button zoom-button",title:(0,n.t)("buttons.resetZoom"),"aria-label":(0,n.t)("buttons.resetZoom"),onClick:function(){w(null)},children:[(100*l.zoom.value).toFixed(0),"%"]})})},keyTest:function(t){return(t.code===M.aU.ZERO||t.code===M.aU.NUM_ZERO)&&(t[M.tW.CTRL_OR_CMD]||t.shiftKey)}}),function(t){var w,l,a,c=t.targetElements,m=t.appState,z=t.fitToViewport,j=z!==void 0&&z,k=t.viewportZoomFactor,x=k===void 0?.7:k,N=(0,v.KP)((0,v.Lm)(c)),G=(0,D.Z)(N,4),ie=G[0],V=G[1],ce=G[2],te=G[3],L=(ie+ce)/2,re=(V+te)/2;if(j){var me=ce-ie,Ce=te-V;w=Math.min(m.width/me,m.height/Ce)*Math.min(1,Math.max(x,.1)),w=Math.min(Math.max(w,.1),30),l=m.width/2*(1/w)-L,a=m.height/2*(1/w)-re}else{w=function(Te,we){var xe=(0,D.Z)(Te,4),_e=xe[0],Oe=xe[1],J=xe[2],ke=xe[3],q=J-_e,o=we.width/q,i=ke-Oe,p=we.height/i,B=Math.min(o,p),A=Math.floor(B/I.V4)*I.V4;return Math.min(Math.max(A,I.Zj),1)}(N,{width:m.width,height:m.height});var We=(0,H.s)({scenePoint:{x:L,y:re},viewportDimensions:{width:m.width,height:m.height},zoom:{value:w}});l=We.scrollX,a=We.scrollY}return{appState:b(b({},m),{},{scrollX:l,scrollY:a,zoom:{value:w}}),commitToHistory:!1}}),s=((0,U.z)({name:"zoomToFitSelectionInViewport",trackEvent:{category:"canvas"},perform:function(t,w,l,a){var c=a.scene.getSelectedElements(w);return O({targetElements:c.length?c:t,appState:w,fitToViewport:!1})},keyTest:function(t){return t.code===M.aU.TWO&&t.shiftKey&&!t.altKey&&!t[M.tW.CTRL_OR_CMD]}}),(0,U.z)({name:"zoomToFitSelection",trackEvent:{category:"canvas"},perform:function(t,w,l,a){var c=a.scene.getSelectedElements(w);return O({targetElements:c.length?c:t,appState:w,fitToViewport:!0})},keyTest:function(t){return t.code===M.aU.THREE&&t.shiftKey&&!t.altKey&&!t[M.tW.CTRL_OR_CMD]}}),(0,U.z)({name:"zoomToFit",viewMode:!0,trackEvent:{category:"canvas"},perform:function(t,w){return O({targetElements:t,appState:w,fitToViewport:!1})},keyTest:function(t){return t.code===M.aU.ONE&&t.shiftKey&&!t.altKey&&!t[M.tW.CTRL_OR_CMD]}}),(0,U.z)({name:"toggleTheme",viewMode:!0,trackEvent:{category:"canvas"},perform:function(t,w,l){return{appState:b(b({},w),{},{theme:l||(w.theme===I.C6.LIGHT?I.C6.DARK:I.C6.LIGHT)}),commitToHistory:!1}},keyTest:function(t){return t.altKey&&t.shiftKey&&t.code===M.aU.D},predicate:function(t,w,l,a){return!!a.props.UIOptions.canvasActions.toggleTheme}})),f=((0,U.z)({name:"toggleEraserTool",trackEvent:{category:"toolbar"},perform:function(t,w){var l;return l=(0,he.EN)(w)?(0,u.Om)(w,b(b({},w.activeTool.lastActiveTool||{type:"selection"}),{},{lastActiveToolBeforeEraser:null})):(0,u.Om)(w,{type:"eraser",lastActiveToolBeforeEraser:w.activeTool}),{appState:b(b({},w),{},{selectedElementIds:{},selectedGroupIds:{},activeEmbeddable:null,activeTool:l}),commitToHistory:!0}},keyTest:function(t){return t.key===M.tW.E}}),(0,U.z)({name:"toggleHandTool",trackEvent:{category:"toolbar"},perform:function(t,w,l,a){var c;return(0,he.l$)(w)?c=(0,u.Om)(w,b(b({},w.activeTool.lastActiveTool||{type:"selection"}),{},{lastActiveToolBeforeEraser:null})):(c=(0,u.Om)(w,{type:"hand",lastActiveToolBeforeEraser:w.activeTool}),(0,oe.KJ)(a.interactiveCanvas,I.oc.GRAB)),{appState:b(b({},w),{},{selectedElementIds:{},selectedGroupIds:{},activeEmbeddable:null,activeTool:c}),commitToHistory:!0}},keyTest:function(t){return!t.altKey&&!t[M.tW.CTRL_OR_CMD]&&t.key===M.tW.H}}))},5047:function(Se,Q,e){e.d(Q,{FA:function(){return b},ZM:function(){return $},jK:function(){return R},uN:function(){return oe},yQ:function(){return P},zp:function(){return _}});var D=e(7169),E=e(8950),y=e(2975),h=e.n(y),S=e(5491),I=e(2767),v=e(4694),n=e(2448),M=e(2435),Z=e(7651),H=e(8227),W=e(9937);function u(g,O){var s=Object.keys(g);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(g);O&&(f=f.filter(function(t){return Object.getOwnPropertyDescriptor(g,t).enumerable})),s.push.apply(s,f)}return s}function U(g){for(var O=1;O<arguments.length;O++){var s=arguments[O]!=null?arguments[O]:{};O%2?u(Object(s),!0).forEach(function(f){(0,D.Z)(g,f,s[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(s)):u(Object(s)).forEach(function(f){Object.defineProperty(g,f,Object.getOwnPropertyDescriptor(s,f))})}return g}var le,de,he,pe,oe=(0,I.z)({name:"copy",trackEvent:{category:"element"},perform:(le=(0,E.Z)(h().mark(function g(O,s,f,t){var w;return h().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return w=t.scene.getSelectedElements({selectedElementIds:s.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0}),l.prev=1,l.next=4,(0,v.vQ)(w,t.files,f);case 4:l.next=9;break;case 6:return l.prev=6,l.t0=l.catch(1),l.abrupt("return",{commitToHistory:!1,appState:U(U({},s),{},{errorMessage:l.t0.message})});case 9:return l.abrupt("return",{commitToHistory:!1});case 10:case"end":return l.stop()}},g,null,[[1,6]])})),function(g,O,s,f){return le.apply(this,arguments)}),contextItemLabel:"labels.copy",keyTest:void 0}),P=(0,I.z)({name:"paste",trackEvent:{category:"element"},perform:(de=(0,E.Z)(h().mark(function g(O,s,f,t){var w;return h().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,(0,v.Se)();case 3:w=l.sent,l.next=14;break;case 6:if(l.prev=6,l.t0=l.catch(0),l.t0.name!=="AbortError"&&l.t0.name!=="NotAllowedError"){l.next=10;break}return l.abrupt("return",!1);case 10:if(console.error("actionPaste ".concat(l.t0.name,": ").concat(l.t0.message)),!W.vU){l.next=13;break}return l.abrupt("return",{commitToHistory:!1,appState:U(U({},s),{},{errorMessage:(0,H.t)("hints.firefox_clipboard_write")})});case 13:return l.abrupt("return",{commitToHistory:!1,appState:U(U({},s),{},{errorMessage:(0,H.t)("errors.asyncPasteFailedOnRead")})});case 14:l.prev=14,t.pasteFromClipboard((0,v.OO)({types:w})),l.next=22;break;case 18:return l.prev=18,l.t1=l.catch(14),console.error(l.t1),l.abrupt("return",{commitToHistory:!1,appState:U(U({},s),{},{errorMessage:(0,H.t)("errors.asyncPasteFailedOnParse")})});case 22:return l.abrupt("return",{commitToHistory:!1});case 23:case"end":return l.stop()}},g,null,[[0,6],[14,18]])})),function(g,O,s,f){return de.apply(this,arguments)}),contextItemLabel:"labels.paste",keyTest:void 0}),$=(0,I.z)({name:"cut",trackEvent:{category:"element"},perform:function(g,O,s,f){return oe.perform(g,O,s,f),n.X.perform(g,O)},contextItemLabel:"labels.cut",keyTest:function(g){return g[S.tW.CTRL_OR_CMD]&&g.key===S.tW.X}}),b=(0,I.z)({name:"copyAsSvg",trackEvent:{category:"element"},perform:(he=(0,E.Z)(h().mark(function g(O,s,f,t){var w,l,a;return h().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(t.canvas){c.next=2;break}return c.abrupt("return",{commitToHistory:!1});case 2:return w=(0,M.HD)(O,s,!0),l=w.exportedElements,a=w.exportingFrame,c.prev=3,c.next=6,(0,M.p1)("clipboard-svg",l,s,t.files,U(U({},s),{},{exportingFrame:a}));case 6:return c.abrupt("return",{commitToHistory:!1});case 9:return c.prev=9,c.t0=c.catch(3),console.error(c.t0),c.abrupt("return",{appState:U(U({},s),{},{errorMessage:c.t0.message}),commitToHistory:!1});case 13:case"end":return c.stop()}},g,null,[[3,9]])})),function(g,O,s,f){return he.apply(this,arguments)}),predicate:function(g){return v.wx&&g.length>0},contextItemLabel:"labels.copyAsSvg"}),R=(0,I.z)({name:"copyAsPng",trackEvent:{category:"element"},perform:(pe=(0,E.Z)(h().mark(function g(O,s,f,t){var w,l,a,c;return h().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(t.canvas){m.next=2;break}return m.abrupt("return",{commitToHistory:!1});case 2:return w=t.scene.getSelectedElements({selectedElementIds:s.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0}),l=(0,M.HD)(O,s,!0),a=l.exportedElements,c=l.exportingFrame,m.prev=4,m.next=7,(0,M.p1)("clipboard",a,s,t.files,U(U({},s),{},{exportingFrame:c}));case 7:return m.abrupt("return",{appState:U(U({},s),{},{toast:{message:(0,H.t)("toast.copyToClipboardAsPng",{exportSelection:w.length?(0,H.t)("toast.selection"):(0,H.t)("toast.canvas"),exportColorScheme:s.exportWithDarkMode?(0,H.t)("buttons.darkMode"):(0,H.t)("buttons.lightMode")})}}),commitToHistory:!1});case 10:return m.prev=10,m.t0=m.catch(4),console.error(m.t0),m.abrupt("return",{appState:U(U({},s),{},{errorMessage:m.t0.message}),commitToHistory:!1});case 14:case"end":return m.stop()}},g,null,[[4,10]])})),function(g,O,s,f){return pe.apply(this,arguments)}),predicate:function(g){return v.vt&&g.length>0},contextItemLabel:"labels.copyAsPng",keyTest:function(g){return g.code===S.aU.C&&g.altKey&&g.shiftKey}}),_=(0,I.z)({name:"copyText",trackEvent:{category:"element"},perform:function(g,O,s,f){var t=f.scene.getSelectedElements({selectedElementIds:O.selectedElementIds,includeBoundTextElement:!0}).reduce(function(w,l){return(0,Z.iB)(l)&&w.push(l.text),w},[]).join(` + +`);return(0,v.dd)(t),{commitToHistory:!1}},predicate:function(g,O,s,f){return v.wx&&f.scene.getSelectedElements({selectedElementIds:O.selectedElementIds,includeBoundTextElement:!0}).some(Z.iB)},contextItemLabel:"labels.copyText"})},2448:function(Se,Q,e){e.d(Q,{X:function(){return oe}});var D=e(7169),E=e(4105),y=e(5491),h=e(1512),S=e(8227),I=e(2767),v=e(7651),n=e(583),M=e(9215),Z=e(7422),H=e(9645),W=e(4183),u=e(9827),U=e(8935),le=e(1020);function de(P,$){var b=Object.keys(P);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(P);$&&(R=R.filter(function(_){return Object.getOwnPropertyDescriptor(P,_).enumerable})),b.push.apply(b,R)}return b}function he(P){for(var $=1;$<arguments.length;$++){var b=arguments[$]!=null?arguments[$]:{};$%2?de(Object(b),!0).forEach(function(R){(0,D.Z)(P,R,b[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(b)):de(Object(b)).forEach(function(R){Object.defineProperty(P,R,Object.getOwnPropertyDescriptor(b,R))})}return P}var pe=function(P,$){if(P.editingGroupId){var b=(0,M.Fb)((0,v.Lm)($),P.editingGroupId);if(b.length)return he(he({},P),{},{selectedElementIds:(0,D.Z)({},b[0].id,!0)})}return P},oe=(0,I.z)({name:"deleteSelectedElements",trackEvent:{category:"element",action:"delete"},perform:function(P,$){if($.editingLinearElement){var b=$.editingLinearElement,R=b.elementId,_=b.selectedPointsIndices,g=b.startBindingElement,O=b.endBindingElement,s=Z._.getElement(R);if(!s||_==null)return!1;if(s.points.length<2){var f=P.map(function(c){return c.id===s.id?(0,n.BE)(c,{isDeleted:!0}):c});return{elements:f,appState:he(he({},pe($,f)),{},{editingLinearElement:null}),commitToHistory:!1}}var t={startBindingElement:_!=null&&_.includes(0)?null:g,endBindingElement:_!=null&&_.includes(s.points.length-1)?null:O};return Z._.deletePoints(s,_),{elements:P,appState:he(he({},$),{},{editingLinearElement:he(he(he({},$.editingLinearElement),t),{},{selectedPointsIndices:_?.[0]>0?[_[0]-1]:[0]})}),commitToHistory:!0}}var w=function(c,m){var z=new Set((0,E.eD)(c.filter(function(j){return j.type==="frame"}),m).map(function(j){return j.id}));return{elements:c.map(function(j){return m.selectedElementIds[j.id]||j.frameId&&z.has(j.frameId)||(0,W.Xh)(j)&&m.selectedElementIds[j.containerId]?(0,n.BE)(j,{isDeleted:!0}):j}),appState:he(he({},m),{},{selectedElementIds:{},selectedGroupIds:{}})}}(P,$),l=w.elements,a=w.appState;return(0,H.$q)(l,P.filter(function(c){var m=c.id;return $.selectedElementIds[m]})),{elements:l,appState:he(he({},a=pe(a,l)),{},{activeTool:(0,u.Om)($,{type:"selection"}),multiElement:null,activeEmbeddable:null}),commitToHistory:(0,E.N)((0,v.Lm)(P),$)}},contextItemLabel:"labels.delete",keyTest:function(P,$,b){return(P.key===y.tW.BACKSPACE||P.key===y.tW.DELETE)&&!P[y.tW.CTRL_OR_CMD]},PanelComponent:function(P){var $=P.elements,b=P.appState,R=P.updateData;return(0,le.jsx)(h.V,{type:"button",icon:U.XH,title:(0,S.t)("labels.delete"),"aria-label":(0,S.t)("labels.delete"),onClick:function(){return R(null)},visible:(0,E.N)((0,v.Lm)($),b)})}})},9672:function(Se,Q,e){e.d(Q,{$:function(){return M},U:function(){return Z}});var D=e(7169),E=e(583),y=e(5491),h=e(9827),S=e(2767);function I(H,W){var u=Object.keys(H);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(H);W&&(U=U.filter(function(le){return Object.getOwnPropertyDescriptor(H,le).enumerable})),u.push.apply(u,U)}return u}function v(H){for(var W=1;W<arguments.length;W++){var u=arguments[W]!=null?arguments[W]:{};W%2?I(Object(u),!0).forEach(function(U){(0,D.Z)(H,U,u[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(u)):I(Object(u)).forEach(function(U){Object.defineProperty(H,U,Object.getOwnPropertyDescriptor(u,U))})}return H}var n=function(H){return H.every(function(W){return!W.locked})},M=(0,S.z)({name:"toggleElementLock",trackEvent:{category:"element"},predicate:function(H,W,u,U){return!U.scene.getSelectedElements(W).some(function(le){return le.locked&&le.frameId})},perform:function(H,W,u,U){var le=U.scene.getSelectedElements({selectedElementIds:W.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0});if(!le.length)return!1;var de=n(le),he=(0,h.xn)(le);return{elements:H.map(function(pe){return he.has(pe.id)?(0,E.BE)(pe,{locked:de}):pe}),appState:v(v({},W),{},{selectedLinearElement:de?null:W.selectedLinearElement}),commitToHistory:!0}},contextItemLabel:function(H,W,u){var U=u.scene.getSelectedElements({selectedElementIds:W.selectedElementIds,includeBoundTextElement:!1});return U.length===1&&U[0].type!=="frame"?U[0].locked?"labels.elementLock.unlock":"labels.elementLock.lock":n(U)?"labels.elementLock.lockAll":"labels.elementLock.unlockAll"},keyTest:function(H,W,u,U){return H.key.toLocaleLowerCase()===y.tW.L&&H[y.tW.CTRL_OR_CMD]&&H.shiftKey&&U.scene.getSelectedElements({selectedElementIds:W.selectedElementIds,includeBoundTextElement:!1}).length>0}}),Z=(0,S.z)({name:"unlockAllElements",trackEvent:{category:"canvas"},viewMode:!1,predicate:function(H){return H.some(function(W){return W.locked})},perform:function(H,W){var u=H.filter(function(U){return U.locked});return{elements:H.map(function(U){return U.locked?(0,E.BE)(U,{locked:!1}):U}),appState:v(v({},W),{},{selectedElementIds:Object.fromEntries(u.map(function(U){return[U.id,!0]}))}),commitToHistory:!0}},contextItemLabel:"labels.elementLock.unlockAll"})},4406:function(Se,Q,e){e.d(Q,{XA:function(){return _e},Du:function(){return Oe},sK:function(){return xe},zX:function(){return we},bJ:function(){return o},_d:function(){return q},mM:function(){return ke},ns:function(){return J}});var D=e(8950),E=e(2577),y=e(7169),h=e(2975),S=e.n(h),I=e(8935),v=e(3379),n=e.n(v),M=e(7795),Z=e.n(M),H=e(569),W=e.n(H),u=e(3565),U=e.n(u),le=e(9216),de=e.n(le),he=e(4589),pe=e.n(he),oe=e(6759),P={};P.styleTagTransform=pe(),P.setAttributes=U(),P.insert=W().bind(null,"head"),P.domAPI=Z(),P.insertStyleElement=de(),n()(oe.Z,P),oe.Z&&oe.Z.locals&&oe.Z.locals;var $=e(9787),b=e(9827),R=e(532),_={};_.styleTagTransform=pe(),_.setAttributes=U(),_.insert=W().bind(null,"head"),_.domAPI=Z(),_.insertStyleElement=de(),n()(R.Z,_),R.Z&&R.Z.locals&&R.Z.locals;var g=e(8242),O=e(5491),s=e(1020),f=function(i){var p=(0,g.J0)().id,B=(0,$.useState)(i.value),A=(0,E.Z)(B,2),X=A[0],Y=A[1];return(0,s.jsxs)("div",{className:"ProjectName",children:[(0,s.jsx)("label",{className:"ProjectName-label",htmlFor:"filename",children:"".concat(i.label).concat(i.isNameEditable?"":":")}),i.isNameEditable?(0,s.jsx)("input",{type:"text",className:"TextInput",onBlur:function(ee){i.ignoreFocus||(0,b.qz)(ee.target);var ge=ee.target.value;ge!==i.value&&i.onChange(ge)},onKeyDown:function(ee){if(ee.key===O.tW.ENTER){if(ee.preventDefault(),ee.nativeEvent.isComposing||ee.keyCode===229)return;ee.currentTarget.blur()}},id:"".concat(p,"-filename"),value:X,onChange:function(ee){return Y(ee.target.value)}}):(0,s.jsx)("span",{className:"TextInput TextInput--readonly",id:"".concat(p,"-filename"),children:i.value})]})},t=e(1512),w=e(8925),l=(e(3041),e(8227)),a=e(9937),c=function(i){var p=i.title||(i.value==="dark"?(0,l.t)("buttons.lightMode"):(0,l.t)("buttons.darkMode"));return(0,s.jsx)(t.V,{type:"icon",icon:i.value===a.C6.LIGHT?m.MOON:m.SUN,title:p,"aria-label":p,onClick:function(){return i.onChange(i.value===a.C6.DARK?a.C6.LIGHT:a.C6.DARK)},"data-testid":"toggle-dark-mode"})},m={SUN:(0,s.jsx)("svg",{width:"512",height:"512",className:"rtl-mirror",viewBox:"0 0 512 512",children:(0,s.jsx)("path",{fill:"currentColor",d:"M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z"})}),MOON:(0,s.jsx)("svg",{width:"512",height:"512",className:"rtl-mirror",viewBox:"0 0 512 512",children:(0,s.jsx)("path",{fill:"currentColor",d:"M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"})})},z=e(2435),j=e(5796);function k(i,p){var B=Object.keys(i);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(i);p&&(A=A.filter(function(X){return Object.getOwnPropertyDescriptor(i,X).enumerable})),B.push.apply(B,A)}return B}function x(i){for(var p=1;p<arguments.length;p++){var B=arguments[p]!=null?arguments[p]:{};p%2?k(Object(B),!0).forEach(function(A){(0,y.Z)(i,A,B[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(B)):k(Object(B)).forEach(function(A){Object.defineProperty(i,A,Object.getOwnPropertyDescriptor(B,A))})}return i}var N=function(){var i=(0,D.Z)(S().mark(function p(B,A,X){var Y,ee,ge,be,Re,Ze,Be,Ie,Ke;return S().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(ee=(Y=A).exportBackground,ge=Y.viewBackgroundColor,be=Y.name,Re=Y.fileHandle,Ze=(0,j.Qk)(Re),Re&&(0,j.DQ)(Ze)){Ye.next=4;break}throw new Error("fileHandle should exist and should be of type svg or png when resaving");case 4:return A=x(x({},A),{},{exportEmbedScene:!0}),Be=(0,z.HD)(B,A,!1),Ie=Be.exportedElements,Ke=Be.exportingFrame,Ye.next=8,(0,z.p1)(Ze,Ie,A,X,{exportBackground:ee,viewBackgroundColor:ge,name:be,fileHandle:Re,exportingFrame:Ke});case 8:return Ye.abrupt("return",{fileHandle:Re});case 9:case"end":return Ye.stop()}},p)}));return function(p,B,A){return i.apply(this,arguments)}}(),G=e(2767),ie=e(6238),V=e(3668),ce=e(4105),te=e(7651),L=e(6548);function re(i,p){var B=Object.keys(i);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(i);p&&(A=A.filter(function(X){return Object.getOwnPropertyDescriptor(i,X).enumerable})),B.push.apply(B,A)}return B}function me(i){for(var p=1;p<arguments.length;p++){var B=arguments[p]!=null?arguments[p]:{};p%2?re(Object(B),!0).forEach(function(A){(0,y.Z)(i,A,B[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(B)):re(Object(B)).forEach(function(A){Object.defineProperty(i,A,Object.getOwnPropertyDescriptor(B,A))})}return i}var Ce,We,Te,we=(0,G.z)({name:"changeProjectName",trackEvent:!1,perform:function(i,p,B){return{appState:me(me({},p),{},{name:B}),commitToHistory:!1}},PanelComponent:function(i){var p,B=i.appState,A=i.updateData,X=i.appProps,Y=i.data;return(0,s.jsx)(f,{label:(0,l.t)("labels.fileTitle"),value:B.name||"Unnamed",onChange:function(ee){return A(ee)},isNameEditable:X.name===void 0&&!B.viewModeEnabled,ignoreFocus:(p=Y?.ignoreFocus)!==null&&p!==void 0&&p})}}),xe=(0,G.z)({name:"changeExportScale",trackEvent:{category:"export",action:"scale"},perform:function(i,p,B){return{appState:me(me({},p),{},{exportScale:B}),commitToHistory:!1}},PanelComponent:function(i){var p=i.elements,B=i.appState,A=i.updateData,X=(0,te.Lm)(p),Y=(0,ce.N)(X,B)?(0,ce.eD)(X,B):X;return(0,s.jsx)(s.Fragment,{children:a.ZB.map(function(ee){var ge=(0,V.Cg)(Y,a.qy,ee),be=(0,E.Z)(ge,2),Re=be[0],Ze=be[1],Be="".concat((0,l.t)("imageExportDialog.label.scale")," ").concat(ee,"x (").concat(Re,"x").concat(Ze,")");return(0,s.jsx)(t.V,{size:"small",type:"radio",icon:"".concat(ee,"x"),name:"export-canvas-scale",title:Be,"aria-label":Be,id:"export-canvas-scale",checked:ee===B.exportScale,onChange:function(){return A(ee)}},ee)})})}}),_e=(0,G.z)({name:"changeExportBackground",trackEvent:{category:"export",action:"toggleBackground"},perform:function(i,p,B){return{appState:me(me({},p),{},{exportBackground:B}),commitToHistory:!1}},PanelComponent:function(i){var p=i.appState,B=i.updateData;return(0,s.jsx)(ie.o,{checked:p.exportBackground,onChange:function(A){return B(A)},children:(0,l.t)("imageExportDialog.label.withBackground")})}}),Oe=(0,G.z)({name:"changeExportEmbedScene",trackEvent:{category:"export",action:"embedScene"},perform:function(i,p,B){return{appState:me(me({},p),{},{exportEmbedScene:B}),commitToHistory:!1}},PanelComponent:function(i){var p=i.appState,B=i.updateData;return(0,s.jsxs)(ie.o,{checked:p.exportEmbedScene,onChange:function(A){return B(A)},children:[(0,l.t)("imageExportDialog.label.embedScene"),(0,s.jsx)(w.u,{label:(0,l.t)("imageExportDialog.tooltip.embedScene"),long:!0,children:(0,s.jsx)("div",{className:"excalidraw-tooltip-icon",children:I.Vl})})]})}}),J=(0,G.z)({name:"saveToActiveFile",trackEvent:{category:"export"},predicate:function(i,p,B,A){return!!A.props.UIOptions.canvasActions.saveToActiveFile&&!!p.fileHandle&&!p.viewModeEnabled},perform:(Ce=(0,D.Z)(S().mark(function i(p,B,A,X){var Y,ee,ge;return S().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(Y=!!B.fileHandle,be.prev=1,!(0,j.g8)(B.fileHandle)){be.next=8;break}return be.next=5,N(p,B,X.files);case 5:be.t0=be.sent,be.next=11;break;case 8:return be.next=10,(0,z.Um)(p,B,X.files);case 10:be.t0=be.sent;case 11:return ee=be.t0,ge=ee.fileHandle,be.abrupt("return",{commitToHistory:!1,appState:me(me({},B),{},{fileHandle:ge,toast:Y?{message:ge!=null&&ge.name?(0,l.t)("toast.fileSavedToFilename").replace("{filename}",'"'.concat(ge.name,'"')):(0,l.t)("toast.fileSaved")}:null})});case 16:return be.prev=16,be.t1=be.catch(1),(be.t1===null||be.t1===void 0?void 0:be.t1.name)!=="AbortError"?console.error(be.t1):console.warn(be.t1),be.abrupt("return",{commitToHistory:!1});case 20:case"end":return be.stop()}},i,null,[[1,16]])})),function(i,p,B,A){return Ce.apply(this,arguments)}),keyTest:function(i){return i.key===O.tW.S&&i[O.tW.CTRL_OR_CMD]&&!i.shiftKey}}),ke=(0,G.z)({name:"saveFileToDisk",viewMode:!0,trackEvent:{category:"export"},perform:(We=(0,D.Z)(S().mark(function i(p,B,A,X){var Y,ee;return S().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ge.prev=0,ge.next=3,(0,z.Um)(p,me(me({},B),{},{fileHandle:null}),X.files);case 3:return Y=ge.sent,ee=Y.fileHandle,ge.abrupt("return",{commitToHistory:!1,appState:me(me({},B),{},{openDialog:null,fileHandle:ee,toast:{message:(0,l.t)("toast.fileSaved")}})});case 8:return ge.prev=8,ge.t0=ge.catch(0),(ge.t0===null||ge.t0===void 0?void 0:ge.t0.name)!=="AbortError"?console.error(ge.t0):console.warn(ge.t0),ge.abrupt("return",{commitToHistory:!1});case 12:case"end":return ge.stop()}},i,null,[[0,8]])})),function(i,p,B,A){return We.apply(this,arguments)}),keyTest:function(i){return i.key===O.tW.S&&i.shiftKey&&i[O.tW.CTRL_OR_CMD]},PanelComponent:function(i){var p=i.updateData;return(0,s.jsx)(t.V,{type:"button",icon:I.po,title:(0,l.t)("buttons.saveAs"),"aria-label":(0,l.t)("buttons.saveAs"),showAriaLabel:(0,g.Fy)().editor.isMobile,hidden:!L.kr,onClick:function(){return p(null)},"data-testid":"save-as-button"})}}),q=(0,G.z)({name:"loadScene",trackEvent:{category:"export"},predicate:function(i,p,B,A){return!!A.props.UIOptions.canvasActions.loadScene&&!p.viewModeEnabled},perform:(Te=(0,D.Z)(S().mark(function i(p,B,A,X){var Y,ee,ge,be;return S().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.prev=0,Re.next=3,(0,z.n8)(B,p);case 3:return Y=Re.sent,ee=Y.elements,ge=Y.appState,be=Y.files,Re.abrupt("return",{elements:ee,appState:ge,files:be,commitToHistory:!0});case 10:if(Re.prev=10,Re.t0=Re.catch(0),(Re.t0===null||Re.t0===void 0?void 0:Re.t0.name)!=="AbortError"){Re.next=15;break}return console.warn(Re.t0),Re.abrupt("return",!1);case 15:return Re.abrupt("return",{elements:p,appState:me(me({},B),{},{errorMessage:Re.t0.message}),files:X.files,commitToHistory:!1});case 16:case"end":return Re.stop()}},i,null,[[0,10]])})),function(i,p,B,A){return Te.apply(this,arguments)}),keyTest:function(i){return i[O.tW.CTRL_OR_CMD]&&i.key===O.tW.O}}),o=(0,G.z)({name:"exportWithDarkMode",trackEvent:{category:"export",action:"toggleTheme"},perform:function(i,p,B){return{appState:me(me({},p),{},{exportWithDarkMode:B}),commitToHistory:!1}},PanelComponent:function(i){var p=i.appState,B=i.updateData;return(0,s.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"-45px",marginBottom:"10px"},children:(0,s.jsx)(c,{value:p.exportWithDarkMode?a.C6.DARK:a.C6.LIGHT,onChange:function(A){B(A===a.C6.DARK)},title:(0,l.t)("imageExportDialog.label.darkMode")})})}})},3361:function(Se,Q,e){e.d(Q,{Tu:function(){return We},Zq:function(){return Te}});var D=e(1930),E=e(7169),y=e(9240),h=e(3646),S=e(45),I=e(1020),v=function(we){return(0,I.jsx)("div",{className:"buttonList buttonListIcon",children:we.options.map(function(xe){var _e;return we.type==="button"?(0,I.jsx)("button",{onClick:function(Oe){return we.onClick(xe.value,Oe)},className:(0,S.Z)({active:(_e=xe.active)!==null&&_e!==void 0?_e:we.value===xe.value}),"data-testid":xe.testId,title:xe.text,children:xe.icon},xe.text):(0,I.jsxs)("label",{className:(0,S.Z)({active:we.value===xe.value}),title:xe.text,children:[(0,I.jsx)("input",{type:"radio",name:we.group,onChange:function(){return we.onChange(xe.value)},checked:we.value===xe.value,"data-testid":xe.testId}),xe.icon]},xe.text)})})},n=e(193),M=e(2577),Z=e(9787),H=e.n(Z),W=e(3204),u=e(3379),U=e.n(u),le=e(7795),de=e.n(le),he=e(569),pe=e.n(he),oe=e(3565),P=e.n(oe),$=e(9216),b=e.n($),R=e(4589),_=e.n(R),g=e(9478),O={};O.styleTagTransform=_(),O.setAttributes=P(),O.insert=pe().bind(null,"head"),O.domAPI=de(),O.insertStyleElement=b(),U()(g.Z,O),g.Z&&g.Z.locals&&g.Z.locals;var s=e(5491),f=e(8227);function t(we,xe){var _e=Object.keys(we);if(Object.getOwnPropertySymbols){var Oe=Object.getOwnPropertySymbols(we);xe&&(Oe=Oe.filter(function(J){return Object.getOwnPropertyDescriptor(we,J).enumerable})),_e.push.apply(_e,Oe)}return _e}function w(we){for(var xe=1;xe<arguments.length;xe++){var _e=arguments[xe]!=null?arguments[xe]:{};xe%2?t(Object(_e),!0).forEach(function(Oe){(0,E.Z)(we,Oe,_e[Oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(we,Object.getOwnPropertyDescriptors(_e)):t(Object(_e)).forEach(function(Oe){Object.defineProperty(we,Oe,Object.getOwnPropertyDescriptor(_e,Oe))})}return we}function l(we){var xe=we.options,_e=we.value,Oe=we.label,J=we.onChange,ke=we.onClose,q=H().useRef(),o=H().useRef(),i=H().useRef(null);return H().useEffect(function(){o.current?o.current.focus():i.current&&i.current.focus()},[]),(0,I.jsx)("div",{className:"picker",role:"dialog","aria-modal":"true","aria-label":Oe,onKeyDown:function(p){var B=xe.find(function(Re){return Re.keyBinding===p.key.toLowerCase()});if(p.metaKey||p.altKey||p.ctrlKey||!B)if(p.key===s.tW.TAB)setTimeout(function(){o.current!==document.activeElement&&ke()},0);else if((0,s.Wl)(p.key)){var A=document.activeElement,X=(0,f.G3)().rtl,Y=Array.prototype.indexOf.call(i.current.children,A);if(Y!==-1){var ee=xe.length,ge=Y;switch(p.key){case(X?s.tW.ARROW_LEFT:s.tW.ARROW_RIGHT):case s.tW.ARROW_DOWN:ge=(Y+1)%ee;break;case(X?s.tW.ARROW_RIGHT:s.tW.ARROW_LEFT):case s.tW.ARROW_UP:ge=(ee+Y-1)%ee}i.current.children[ge].focus()}p.preventDefault()}else p.key!==s.tW.ESCAPE&&p.key!==s.tW.ENTER||(p.preventDefault(),ke());else{var be=xe.indexOf(B);i.current.children[be].focus(),p.preventDefault()}p.nativeEvent.stopImmediatePropagation(),p.stopPropagation()},children:(0,I.jsx)("div",{className:"picker-content",ref:i,children:xe.map(function(p,B){return(0,I.jsxs)("button",{className:(0,S.Z)("picker-option",{active:_e===p.value}),onClick:function(A){A.currentTarget.focus(),J(p.value)},title:"".concat(p.text," — ").concat(p.keyBinding.toUpperCase()),"aria-label":p.text||"none","aria-keyshortcuts":p.keyBinding,ref:function(A){A&&B===0&&(q.current=A),A&&p.value===_e&&(o.current=A)},onFocus:function(){J(p.value)},children:[p.icon,(0,I.jsx)("span",{className:"picker-keybinding",children:p.keyBinding})]},p.text)})})})}function a(we){var xe,_e=we.value,Oe=we.label,J=we.options,ke=we.onChange,q=we.group,o=q===void 0?"":q,i=H().useState(!1),p=(0,M.Z)(i,2),B=p[0],A=p[1],X=H().useRef(null),Y=(0,f.G3)().rtl;return(0,I.jsxs)("div",{children:[(0,I.jsx)("button",{name:o,className:B?"active":"","aria-label":Oe,onClick:function(){return A(!B)},ref:X,children:(xe=J.find(function(ee){return ee.value===_e}))===null||xe===void 0?void 0:xe.icon}),(0,I.jsx)(H().Suspense,{fallback:"",children:B?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(W.J,w(w({onCloseRequest:function(ee){return ee.target!==X.current&&A(!1)}},Y?{right:5.5}:{left:-5.5}),{},{children:(0,I.jsx)(l,{options:J,value:_e,label:Oe,onChange:ke,onClose:function(){var ee;A(!1),(ee=X.current)===null||ee===void 0||ee.focus()}})})),(0,I.jsx)("div",{className:"picker-triangle"})]}):null})]})}var c=e(8935),m=e(9937),z=e(7651),j=e(583),k=e(4761),x=e(4183),N=e(4643),G=e(4105),ie=e(1648),V=e(9827),ce=e(2767);function te(we,xe){var _e=Object.keys(we);if(Object.getOwnPropertySymbols){var Oe=Object.getOwnPropertySymbols(we);xe&&(Oe=Oe.filter(function(J){return Object.getOwnPropertyDescriptor(we,J).enumerable})),_e.push.apply(_e,Oe)}return _e}function L(we){for(var xe=1;xe<arguments.length;xe++){var _e=arguments[xe]!=null?arguments[xe]:{};xe%2?te(Object(_e),!0).forEach(function(Oe){(0,E.Z)(we,Oe,_e[Oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(we,Object.getOwnPropertyDescriptors(_e)):te(Object(_e)).forEach(function(Oe){Object.defineProperty(we,Oe,Object.getOwnPropertyDescriptor(_e,Oe))})}return we}var re=function(we,xe,_e){var Oe=arguments.length>3&&arguments[3]!==void 0&&arguments[3],J=(0,V.xn)((0,G.eD)(we,xe,{includeBoundTextElement:Oe}));return we.map(function(ke){var q;return J.get(ke.id)||ke.id===((q=xe.editingElement)===null||q===void 0?void 0:q.id)?_e(ke):ke})},me=function(we,xe,_e,Oe,J){var ke,q=xe.editingElement,o=(0,z.Lm)(we),i=null;return q&&(i=_e(q)),i||(i=(0,G.N)(o,xe)?(ke=(0,G.PR)(Oe===!0?o:o.filter(function(p){return Oe(p)}),xe,_e))!==null&&ke!==void 0?ke:typeof J=="function"?J(!0):J:typeof J=="function"?J(!1):J),i},Ce=function(we,xe,_e,Oe){var J=new Set;return{elements:re(we,xe,function(ke){if((0,z.iB)(ke)){var q=_e(ke);J.add(q);var o=(0,j.BE)(ke,{fontSize:q});return(0,z.oN)(o,(0,k.tl)(ke)),i=ke,p=o,o=(0,x.Xh)(p)?p:(0,j.DR)(p,{x:i.textAlign==="left"?i.x:i.x+(i.width-p.width)/(i.textAlign==="center"?2:1),y:i.y+(i.height-p.height)/2},!1)}var i,p;return ke},!0),appState:L(L({},xe),{},{currentItemFontSize:J.size===1?(0,D.Z)(J)[0]:Oe??xe.currentItemFontSize}),commitToHistory:!0}},We=((0,ce.z)({name:"changeStrokeColor",trackEvent:!1,perform:function(we,xe,_e){return L(L({},_e.currentItemStrokeColor&&{elements:re(we,xe,function(Oe){return(0,ie.PD)(Oe.type)?(0,j.BE)(Oe,{strokeColor:_e.currentItemStrokeColor}):Oe},!0)}),{},{appState:L(L({},xe),_e),commitToHistory:!!_e.currentItemStrokeColor})},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData;return we.appProps,(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("h3",{"aria-hidden":"true",children:(0,f.t)("labels.stroke")}),(0,I.jsx)(n.z,{topPicks:y.fY,palette:y.Wk,type:"elementStroke",label:(0,f.t)("labels.stroke"),color:me(xe,_e,function(J){return J.strokeColor},!0,_e.currentItemStrokeColor),onChange:function(J){return Oe({currentItemStrokeColor:J})},elements:xe,appState:_e,updateData:Oe})]})}}),(0,ce.z)({name:"changeBackgroundColor",trackEvent:!1,perform:function(we,xe,_e){return L(L({},_e.currentItemBackgroundColor&&{elements:re(we,xe,function(Oe){return(0,j.BE)(Oe,{backgroundColor:_e.currentItemBackgroundColor})})}),{},{appState:L(L({},xe),_e),commitToHistory:!!_e.currentItemBackgroundColor})},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData;return we.appProps,(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("h3",{"aria-hidden":"true",children:(0,f.t)("labels.background")}),(0,I.jsx)(n.z,{topPicks:y.eq,palette:y.SF,type:"elementBackground",label:(0,f.t)("labels.background"),color:me(xe,_e,function(J){return J.backgroundColor},!0,_e.currentItemBackgroundColor),onChange:function(J){return Oe({currentItemBackgroundColor:J})},elements:xe,appState:_e,updateData:Oe})]})}}),(0,ce.z)({name:"changeFillStyle",trackEvent:!1,perform:function(we,xe,_e,Oe){return(0,h.L)("element","changeFillStyle","".concat(_e," (").concat(Oe.device.editor.isMobile?"mobile":"desktop",")")),{elements:re(we,xe,function(J){return(0,j.BE)(J,{fillStyle:_e})}),appState:L(L({},xe),{},{currentItemFillStyle:_e}),commitToHistory:!0}},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData,J=(0,G.eD)(xe,_e),ke=J.length>0&&J.every(function(q){return q.fillStyle==="zigzag"});return(0,I.jsxs)("fieldset",{children:[(0,I.jsx)("legend",{children:(0,f.t)("labels.fill")}),(0,I.jsx)(v,{type:"button",options:[{value:"hachure",text:"".concat(ke?(0,f.t)("labels.zigzag"):(0,f.t)("labels.hachure")," (").concat((0,V.uY)("Alt-Click"),")"),icon:ke?c.lF:c.a0,active:!!ke||void 0,testId:"fill-hachure"},{value:"cross-hatch",text:(0,f.t)("labels.crossHatch"),icon:c.np,testId:"fill-cross-hatch"},{value:"solid",text:(0,f.t)("labels.solid"),icon:c.X7,testId:"fill-solid"}],value:me(xe,_e,function(q){return q.fillStyle},function(q){return q.hasOwnProperty("fillStyle")},function(q){return q?null:_e.currentItemFillStyle}),onClick:function(q,o){var i=o.altKey&&q==="hachure"&&J.every(function(p){return p.fillStyle==="hachure"})?"zigzag":q;Oe(i)}})]})}}),(0,ce.z)({name:"changeStrokeWidth",trackEvent:!1,perform:function(we,xe,_e){return{elements:re(we,xe,function(Oe){return(0,j.BE)(Oe,{strokeWidth:_e})}),appState:L(L({},xe),{},{currentItemStrokeWidth:_e}),commitToHistory:!0}},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData;return(0,I.jsxs)("fieldset",{children:[(0,I.jsx)("legend",{children:(0,f.t)("labels.strokeWidth")}),(0,I.jsx)(v,{group:"stroke-width",options:[{value:m.dg.thin,text:(0,f.t)("labels.thin"),icon:c.ZA,testId:"strokeWidth-thin"},{value:m.dg.bold,text:(0,f.t)("labels.bold"),icon:c.Wl,testId:"strokeWidth-bold"},{value:m.dg.extraBold,text:(0,f.t)("labels.extraBold"),icon:c.m9,testId:"strokeWidth-extraBold"}],value:me(xe,_e,function(J){return J.strokeWidth},function(J){return J.hasOwnProperty("strokeWidth")},function(J){return J?null:_e.currentItemStrokeWidth}),onChange:function(J){return Oe(J)}})]})}}),(0,ce.z)({name:"changeSloppiness",trackEvent:!1,perform:function(we,xe,_e){return{elements:re(we,xe,function(Oe){return(0,j.BE)(Oe,{seed:(0,N.LU)(),roughness:_e})}),appState:L(L({},xe),{},{currentItemRoughness:_e}),commitToHistory:!0}},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData;return(0,I.jsxs)("fieldset",{children:[(0,I.jsx)("legend",{children:(0,f.t)("labels.sloppiness")}),(0,I.jsx)(v,{group:"sloppiness",options:[{value:0,text:(0,f.t)("labels.architect"),icon:c.bf},{value:1,text:(0,f.t)("labels.artist"),icon:c.kM},{value:2,text:(0,f.t)("labels.cartoonist"),icon:c.W2}],value:me(xe,_e,function(J){return J.roughness},function(J){return J.hasOwnProperty("roughness")},function(J){return J?null:_e.currentItemRoughness}),onChange:function(J){return Oe(J)}})]})}}),(0,ce.z)({name:"changeStrokeStyle",trackEvent:!1,perform:function(we,xe,_e){return{elements:re(we,xe,function(Oe){return(0,j.BE)(Oe,{strokeStyle:_e})}),appState:L(L({},xe),{},{currentItemStrokeStyle:_e}),commitToHistory:!0}},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData;return(0,I.jsxs)("fieldset",{children:[(0,I.jsx)("legend",{children:(0,f.t)("labels.strokeStyle")}),(0,I.jsx)(v,{group:"strokeStyle",options:[{value:"solid",text:(0,f.t)("labels.strokeStyle_solid"),icon:c.ZA},{value:"dashed",text:(0,f.t)("labels.strokeStyle_dashed"),icon:c.a5},{value:"dotted",text:(0,f.t)("labels.strokeStyle_dotted"),icon:c.aT}],value:me(xe,_e,function(J){return J.strokeStyle},function(J){return J.hasOwnProperty("strokeStyle")},function(J){return J?null:_e.currentItemStrokeStyle}),onChange:function(J){return Oe(J)}})]})}}),(0,ce.z)({name:"changeOpacity",trackEvent:!1,perform:function(we,xe,_e){return{elements:re(we,xe,function(Oe){return(0,j.BE)(Oe,{opacity:_e})},!0),appState:L(L({},xe),{},{currentItemOpacity:_e}),commitToHistory:!0}},PanelComponent:function(we){var xe,_e=we.elements,Oe=we.appState,J=we.updateData;return(0,I.jsxs)("label",{className:"control-label",children:[(0,f.t)("labels.opacity"),(0,I.jsx)("input",{type:"range",min:"0",max:"100",step:"10",onChange:function(ke){return J(+ke.target.value)},value:(xe=me(_e,Oe,function(ke){return ke.opacity},!0,Oe.currentItemOpacity))!==null&&xe!==void 0?xe:void 0})]})}}),(0,ce.z)({name:"changeFontSize",trackEvent:!1,perform:function(we,xe,_e){return Ce(we,xe,function(){return _e},_e)},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData;return(0,I.jsxs)("fieldset",{children:[(0,I.jsx)("legend",{children:(0,f.t)("labels.fontSize")}),(0,I.jsx)(v,{group:"font-size",options:[{value:16,text:(0,f.t)("labels.small"),icon:c.q0,testId:"fontSize-small"},{value:20,text:(0,f.t)("labels.medium"),icon:c.nq,testId:"fontSize-medium"},{value:28,text:(0,f.t)("labels.large"),icon:c.tW,testId:"fontSize-large"},{value:36,text:(0,f.t)("labels.veryLarge"),icon:c.OA,testId:"fontSize-veryLarge"}],value:me(xe,_e,function(J){if((0,z.iB)(J))return J.fontSize;var ke=(0,k.WJ)(J);return ke?ke.fontSize:null},function(J){return(0,z.iB)(J)||(0,k.WJ)(J)!==null},function(J){return J?null:_e.currentItemFontSize||m.n5}),onChange:function(J){return Oe(J)}})]})}}),(0,ce.z)({name:"decreaseFontSize",trackEvent:!1,perform:function(we,xe,_e){return Ce(we,xe,function(Oe){return Math.round(1/1.1*Oe.fontSize)})},keyTest:function(we){return we[s.tW.CTRL_OR_CMD]&&we.shiftKey&&(we.key===s.tW.CHEVRON_LEFT||we.key===s.tW.COMMA)}})),Te=(0,ce.z)({name:"increaseFontSize",trackEvent:!1,perform:function(we,xe,_e){return Ce(we,xe,function(Oe){return Math.round(1.1*Oe.fontSize)})},keyTest:function(we){return we[s.tW.CTRL_OR_CMD]&&we.shiftKey&&(we.key===s.tW.CHEVRON_RIGHT||we.key===s.tW.PERIOD)}});(0,ce.z)({name:"changeFontFamily",trackEvent:!1,perform:function(we,xe,_e){return{elements:re(we,xe,function(Oe){if((0,z.iB)(Oe)){var J=(0,j.BE)(Oe,{fontFamily:_e,lineHeight:(0,k.PT)(_e)});return(0,z.oN)(J,(0,k.tl)(Oe)),J}return Oe},!0),appState:L(L({},xe),{},{currentItemFontFamily:_e}),commitToHistory:!0}},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData,J=[{value:m.ut.Virgil,text:(0,f.t)("labels.handDrawn"),icon:c.Pm,testId:"font-family-virgil"},{value:m.ut.Helvetica,text:(0,f.t)("labels.normal"),icon:c.vo,testId:"font-family-normal"},{value:m.ut.Cascadia,text:(0,f.t)("labels.code"),icon:c.z6,testId:"font-family-code"}];return(0,I.jsxs)("fieldset",{children:[(0,I.jsx)("legend",{children:(0,f.t)("labels.fontFamily")}),(0,I.jsx)(v,{group:"font-family",options:J,value:me(xe,_e,function(ke){if((0,z.iB)(ke))return ke.fontFamily;var q=(0,k.WJ)(ke);return q?q.fontFamily:null},function(ke){return(0,z.iB)(ke)||(0,k.WJ)(ke)!==null},function(ke){return ke?null:_e.currentItemFontFamily||m.rk}),onChange:function(ke){return Oe(ke)}})]})}}),(0,ce.z)({name:"changeTextAlign",trackEvent:!1,perform:function(we,xe,_e){return{elements:re(we,xe,function(Oe){if((0,z.iB)(Oe)){var J=(0,j.BE)(Oe,{textAlign:_e});return(0,z.oN)(J,(0,k.tl)(Oe)),J}return Oe},!0),appState:L(L({},xe),{},{currentItemTextAlign:_e}),commitToHistory:!0}},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData;return(0,I.jsxs)("fieldset",{children:[(0,I.jsx)("legend",{children:(0,f.t)("labels.textAlign")}),(0,I.jsx)(v,{group:"text-align",options:[{value:"left",text:(0,f.t)("labels.left"),icon:c.rr,testId:"align-left"},{value:"center",text:(0,f.t)("labels.center"),icon:c.o3,testId:"align-horizontal-center"},{value:"right",text:(0,f.t)("labels.right"),icon:c.oT,testId:"align-right"}],value:me(xe,_e,function(J){if((0,z.iB)(J))return J.textAlign;var ke=(0,k.WJ)(J);return ke?ke.textAlign:null},function(J){return(0,z.iB)(J)||(0,k.WJ)(J)!==null},function(J){return J?null:_e.currentItemTextAlign}),onChange:function(J){return Oe(J)}})]})}}),(0,ce.z)({name:"changeVerticalAlign",trackEvent:{category:"element"},perform:function(we,xe,_e){return{elements:re(we,xe,function(Oe){if((0,z.iB)(Oe)){var J=(0,j.BE)(Oe,{verticalAlign:_e});return(0,z.oN)(J,(0,k.tl)(Oe)),J}return Oe},!0),appState:L({},xe),commitToHistory:!0}},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData;return(0,I.jsx)("fieldset",{children:(0,I.jsx)(v,{group:"text-align",options:[{value:m.oX.TOP,text:(0,f.t)("labels.alignTop"),icon:(0,I.jsx)(c.EO,{theme:_e.theme}),testId:"align-top"},{value:m.oX.MIDDLE,text:(0,f.t)("labels.centerVertically"),icon:(0,I.jsx)(c.P7,{theme:_e.theme}),testId:"align-middle"},{value:m.oX.BOTTOM,text:(0,f.t)("labels.alignBottom"),icon:(0,I.jsx)(c.aA,{theme:_e.theme}),testId:"align-bottom"}],value:me(xe,_e,function(J){if((0,z.iB)(J)&&J.containerId)return J.verticalAlign;var ke=(0,k.WJ)(J);return ke?ke.verticalAlign:null},function(J){return(0,z.iB)(J)||(0,k.WJ)(J)!==null},function(J){return J?null:m.oX.MIDDLE}),onChange:function(J){return Oe(J)}})})}}),(0,ce.z)({name:"changeRoundness",trackEvent:!1,perform:function(we,xe,_e){return{elements:re(we,xe,function(Oe){return(0,j.BE)(Oe,{roundness:_e==="round"?{type:(0,x.QI)(Oe.type)?m.a6.ADAPTIVE_RADIUS:m.a6.PROPORTIONAL_RADIUS}:null})}),appState:L(L({},xe),{},{currentItemRoundness:_e}),commitToHistory:!0}},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData,J=(0,G.Zs)((0,z.Lm)(xe),_e).some(function(ke){var q;return((q=ke.roundness)===null||q===void 0?void 0:q.type)===m.a6.LEGACY});return(0,I.jsxs)("fieldset",{children:[(0,I.jsx)("legend",{children:(0,f.t)("labels.edges")}),(0,I.jsx)(v,{group:"edges",options:[{value:"sharp",text:(0,f.t)("labels.sharp"),icon:c.wr},{value:"round",text:(0,f.t)("labels.round"),icon:c.DS}],value:me(xe,_e,function(ke){return J?null:ke.roundness?"round":"sharp"},function(ke){return ke.hasOwnProperty("roundness")},function(ke){return ke?null:_e.currentItemRoundness}),onChange:function(ke){return Oe(ke)}})]})}}),(0,ce.z)({name:"changeArrowhead",trackEvent:!1,perform:function(we,xe,_e){return{elements:re(we,xe,function(Oe){if((0,x.bt)(Oe)){var J=_e.position,ke=_e.type;if(J==="start")return(0,j.BE)(Oe,{startArrowhead:ke});if(J==="end")return(0,j.BE)(Oe,{endArrowhead:ke})}return Oe}),appState:L(L({},xe),{},(0,E.Z)({},_e.position==="start"?"currentItemStartArrowhead":"currentItemEndArrowhead",_e.type)),commitToHistory:!0}},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData,J=(0,f.G3)().rtl;return(0,I.jsxs)("fieldset",{children:[(0,I.jsx)("legend",{children:(0,f.t)("labels.arrowheads")}),(0,I.jsxs)("div",{className:"iconSelectList buttonList",children:[(0,I.jsx)(a,{label:"arrowhead_start",options:[{value:null,text:(0,f.t)("labels.arrowhead_none"),icon:c.fr,keyBinding:"q"},{value:"arrow",text:(0,f.t)("labels.arrowhead_arrow"),icon:(0,I.jsx)(c.il,{flip:!J}),keyBinding:"w"},{value:"bar",text:(0,f.t)("labels.arrowhead_bar"),icon:(0,I.jsx)(c.m,{flip:!J}),keyBinding:"e"},{value:"dot",text:(0,f.t)("labels.arrowhead_dot"),icon:(0,I.jsx)(c.tn,{flip:!J}),keyBinding:"r"},{value:"triangle",text:(0,f.t)("labels.arrowhead_triangle"),icon:(0,I.jsx)(c.j8,{flip:!J}),keyBinding:"t"}],value:me(xe,_e,function(ke){return(0,x.bt)(ke)&&(0,G.Un)(ke.type)?ke.startArrowhead:_e.currentItemStartArrowhead},!0,_e.currentItemStartArrowhead),onChange:function(ke){return Oe({position:"start",type:ke})}}),(0,I.jsx)(a,{label:"arrowhead_end",group:"arrowheads",options:[{value:null,text:(0,f.t)("labels.arrowhead_none"),keyBinding:"q",icon:c.fr},{value:"arrow",text:(0,f.t)("labels.arrowhead_arrow"),keyBinding:"w",icon:(0,I.jsx)(c.il,{flip:J})},{value:"bar",text:(0,f.t)("labels.arrowhead_bar"),keyBinding:"e",icon:(0,I.jsx)(c.m,{flip:J})},{value:"dot",text:(0,f.t)("labels.arrowhead_dot"),keyBinding:"r",icon:(0,I.jsx)(c.tn,{flip:J})},{value:"triangle",text:(0,f.t)("labels.arrowhead_triangle"),icon:(0,I.jsx)(c.j8,{flip:J}),keyBinding:"t"}],value:me(xe,_e,function(ke){return(0,x.bt)(ke)&&(0,G.Un)(ke.type)?ke.endArrowhead:_e.currentItemEndArrowhead},!0,_e.currentItemEndArrowhead),onChange:function(ke){return Oe({position:"end",type:ke})}})]})]})}})},7080:function(Se,Q,e){e.d(Q,{u:function(){return I}});var D=e(7169),E=e(2767),y=e(5491);function h(v,n){var M=Object.keys(v);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(v);n&&(Z=Z.filter(function(H){return Object.getOwnPropertyDescriptor(v,H).enumerable})),M.push.apply(M,Z)}return M}function S(v){for(var n=1;n<arguments.length;n++){var M=arguments[n]!=null?arguments[n]:{};n%2?h(Object(M),!0).forEach(function(Z){(0,D.Z)(v,Z,M[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(M)):h(Object(M)).forEach(function(Z){Object.defineProperty(v,Z,Object.getOwnPropertyDescriptor(M,Z))})}return v}var I=(0,E.z)({name:"stats",viewMode:!0,trackEvent:{category:"menu"},perform:function(v,n){return{appState:S(S({},n),{},{showStats:!this.checked(n)}),commitToHistory:!1}},checked:function(v){return v.showStats},contextItemLabel:"stats.title",keyTest:function(v){return!v[y.tW.CTRL_OR_CMD]&&v.altKey&&v.code===y.aU.SLASH}})},5463:function(Se,Q,e){e.d(Q,{FL:function(){return _t},vD:function(){return Mn.vD},yA:function(){return l},BZ:function(){return c},mo:function(){return J.mo},uN:function(){return mr.uN},jK:function(){return mr.jK},FA:function(){return mr.FA},pw:function(){return ee},ZM:function(){return mr.ZM},X9:function(){return D.X},xF:function(){return _e},pL:function(){return p},jl:function(){return ir},kt:function(){return Qt},EQ:function(){return De},nz:function(){return Zn.nz},_d:function(){return B._d},W3:function(){return ge},mM:function(){return B.mM},ns:function(){return B.ns},Yy:function(){return G},V:function(){return w},zi:function(){return a},jY:function(){return Ze},$h:function(){return Rn.$},Pb:function(){return lr},Qs:function(){return Un},pm:function(){return an},u0:function(){return Sn.u},Zp:function(){return J.Zp},JN:function(){return Hr},y7:function(){return Mn.y7},s:function(){return He},zp:function(){return mr.zp}});var D=e(2448),E=e(2577),y=e(1930),h=e(583),S=e(4183),I=e(9215),v=e(4105),n=e(457),M=e(9827);function Z(ne,Ee){var Pe=typeof Symbol<"u"&&ne[Symbol.iterator]||ne["@@iterator"];if(!Pe){if(Array.isArray(ne)||(Pe=function(gt,Xt){if(gt){if(typeof gt=="string")return H(gt,Xt);var $t=Object.prototype.toString.call(gt).slice(8,-1);if($t==="Object"&>.constructor&&($t=gt.constructor.name),$t==="Map"||$t==="Set")return Array.from(gt);if($t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($t))return H(gt,Xt)}}(ne))||Ee&&ne&&typeof ne.length=="number"){Pe&&(ne=Pe);var ze=0,pt=function(){};return{s:pt,n:function(){return ze>=ne.length?{done:!0}:{done:!1,value:ne[ze++]}},e:function(gt){throw gt},f:pt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ut,zt=!0,qt=!1;return{s:function(){Pe=Pe.call(ne)},n:function(){var gt=Pe.next();return zt=gt.done,gt},e:function(gt){qt=!0,Ut=gt},f:function(){try{zt||Pe.return==null||Pe.return()}finally{if(qt)throw Ut}}}}function H(ne,Ee){(Ee==null||Ee>ne.length)&&(Ee=ne.length);for(var Pe=0,ze=new Array(Ee);Pe<Ee;Pe++)ze[Pe]=ne[Pe];return ze}var W=function(ne,Ee){return ne.frameId===Ee||ne.id===Ee},u=function(ne,Ee,Pe){for(var ze=[],pt=[],Ut=null,zt=-1,qt=(0,M.xn)(Pe||(0,v.eD)(ne,Ee,{includeBoundTextElement:!0,includeElementsInFrames:!0}));++zt<ne.length;){var gt=ne[zt];qt.get(gt.id)?(pt.length&&(ze=ze.concat(pt),pt=[]),ze.push(zt),Ut=zt+1):gt.isDeleted&&Ut===zt?(Ut=zt+1,pt.push(zt)):pt=[]}return ze},U=function(ne,Ee,Pe){if("containerId"in ne&&ne.containerId){if(Pe!=="left")return Ee.indexOf(ne);var ze=n.Z.getScene(ne).getElement(ne.containerId);if(ze)return Ee.indexOf(ze)}else{var pt,Ut,zt=(pt=ne.boundElements)===null||pt===void 0||(Ut=pt.find(function(gt){return gt.type!=="arrow"}))===null||Ut===void 0?void 0:Ut.id;if(zt){if(Pe==="left")return Ee.indexOf(ne);var qt=n.Z.getScene(ne).getElement(zt);if(qt)return Ee.indexOf(qt)}}},le=function(ne,Ee,Pe,ze,pt){var Ut,zt,qt,gt,Xt,$t=Ee[Pe],Er=function(rn){return!rn.isDeleted&&(pt?rn.frameId===pt:!ne.editingGroupId||rn.groupIds.includes(ne.editingGroupId))},Or=ze==="left"?(0,M.qr)(Ee,function(rn){return Er(rn)},Math.max(0,Pe-1)):(0,M.cx)(Ee,function(rn){return Er(rn)},Pe+1),Cr=Ee[Or];if(!Cr)return-1;if(ne.editingGroupId){var Fr;if($t?.groupIds.join("")===Cr?.groupIds.join(""))return(Fr=U(Cr,Ee,ze))!==null&&Fr!==void 0?Fr:Or;if(Cr==null||!Cr.groupIds.includes(ne.editingGroupId))return-1}if(!pt&&(Cr.frameId||Cr.type==="frame")){var zr=(Ut=Ee,zt=Cr.frameId||Cr.id,qt=-1,gt=-1,Ut.forEach(function(rn,Ln){W(rn,zt)&&(qt===-1&&(qt=Ln),gt=Ln)}),qt===-1?[]:Ut.slice(qt,gt+1));return ze==="left"?Ee.indexOf(zr[0]):Ee.indexOf(zr[zr.length-1])}if(!Cr.groupIds.length)return(Xt=U(Cr,Ee,ze))!==null&&Xt!==void 0?Xt:Or;var Sr=ne.editingGroupId?Cr.groupIds[Cr.groupIds.indexOf(ne.editingGroupId)-1]:Cr.groupIds[Cr.groupIds.length-1],qr=(0,I.Fb)(Ee,Sr);return qr.length?ze==="left"?Ee.indexOf(qr[0]):Ee.indexOf(qr[qr.length-1]):Or},de=function(ne,Ee){return Ee.reduce(function(Pe,ze){var pt=ne[ze];return Pe[pt.id]=pt,Pe},{})},he=function(ne,Ee,Pe){var ze=u(ne,Ee),pt=de(ne,ze),Ut=function(qt){var gt=0;return qt.reduce(function(Xt,$t,Er){return Er>0&&qt[Er-1]!==$t-1&&(gt=++gt),(Xt[gt]||(Xt[gt]=[])).push($t),Xt},[])}(ze);Pe==="right"&&(Ut=Ut.reverse());var zt=new Set(ze.filter(function(qt){return ne[qt].type==="frame"}).map(function(qt){return ne[qt].id}));return Ut.forEach(function(qt,gt){var Xt,$t=qt[0],Er=qt[qt.length-1],Or=Pe==="left"?$t:Er,Cr=qt.some(function(Ln){var Bn=ne[Ln];return Bn.frameId&&zt.has(Bn.frameId)})?null:(Xt=ne[Or])===null||Xt===void 0?void 0:Xt.frameId,Fr=le(Ee,ne,Or,Pe,Cr);if(Fr!==-1&&Or!==Fr){var zr=Pe==="left"?ne.slice(0,Fr):ne.slice(0,$t),Sr=ne.slice($t,Er+1),qr=Pe==="left"?ne.slice(Fr,$t):ne.slice(Er+1,Fr+1),rn=Pe==="left"?ne.slice(Er+1):ne.slice(Fr+1);ne=Pe==="left"?[].concat((0,y.Z)(zr),(0,y.Z)(Sr),(0,y.Z)(qr),(0,y.Z)(rn)):[].concat((0,y.Z)(zr),(0,y.Z)(qr),(0,y.Z)(Sr),(0,y.Z)(rn))}}),ne.map(function(qt){return pt[qt.id]?(0,h.ZP)(qt):qt})},pe=function(ne,Ee,Pe,ze,pt){var Ut,zt,qt=u(ne,Ee,pt),gt=de(ne,qt),Xt=[];if(Pe==="left"){if(ze)Ut=(0,M.cx)(ne,function(Sr){return W(Sr,ze)});else if(Ee.editingGroupId){var $t=(0,I.Fb)(ne,Ee.editingGroupId);if(!$t.length)return ne;Ut=ne.indexOf($t[0])}else Ut=0;zt=qt[qt.length-1]}else{if(ze)zt=(0,M.qr)(ne,function(Sr){return W(Sr,ze)});else if(Ee.editingGroupId){var Er=(0,I.Fb)(ne,Ee.editingGroupId);if(!Er.length)return ne;zt=ne.indexOf(Er[Er.length-1])}else zt=ne.length-1;Ut=qt[0]}Ut===-1&&(Ut=0);for(var Or=Ut;Or<zt+1;Or++)qt.includes(Or)||Xt.push(ne[Or]);var Cr=Object.values(gt).map(function(Sr){return(0,h.ZP)(Sr)}),Fr=ne.slice(0,Ut),zr=ne.slice(zt+1);return Pe==="left"?[].concat((0,y.Z)(Fr),(0,y.Z)(Cr),Xt,(0,y.Z)(zr)):[].concat((0,y.Z)(Fr),Xt,(0,y.Z)(Cr),(0,y.Z)(zr))};function oe(ne,Ee,Pe,ze){var pt,Ut=(0,M.xn)((0,v.eD)(ne,Ee,{includeBoundTextElement:!0,includeElementsInFrames:!0})),zt={regularElements:[],frameChildren:new Map},qt=new Set,gt=Z(ne);try{for(gt.s();!(pt=gt.n()).done;){var Xt=pt.value;Ut.has(Xt.id)&&(0,S.He)(Xt)&&qt.add(Xt.id)}}catch(rn){gt.e(rn)}finally{gt.f()}var $t,Er=Z(ne);try{for(Er.s();!($t=Er.n()).done;){var Or=$t.value;if(Ut.has(Or.id))if((0,S.He)(Or)||Or.frameId&&qt.has(Or.frameId))zt.regularElements.push(Or);else if(Or.frameId){var Cr=zt.frameChildren.get(Or.frameId)||[];Cr.push(Or),zt.frameChildren.set(Or.frameId,Cr)}else zt.regularElements.push(Or)}}catch(rn){Er.e(rn)}finally{Er.f()}for(var Fr=ne,zr=0,Sr=Array.from(zt.frameChildren.entries());zr<Sr.length;zr++){var qr=(0,E.Z)(Sr[zr],2);Fr=ze(ne,Ee,Pe,qr[0],qr[1])}return ze(Fr,Ee,Pe,null,zt.regularElements)}var P=function(ne,Ee){return he(ne,Ee,"left")},$=function(ne,Ee){return he(ne,Ee,"right")},b=function(ne,Ee){return oe(ne,Ee,"left",pe)},R=function(ne,Ee){return oe(ne,Ee,"right",pe)},_=e(5491),g=e(8227),O=e(2767),s=e(8935),f=e(9937),t=e(1020),w=(0,O.z)({name:"sendBackward",trackEvent:{category:"element"},perform:function(ne,Ee){return{elements:P(ne,Ee),appState:Ee,commitToHistory:!0}},contextItemLabel:"labels.sendBackward",keyPriority:40,keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&!ne.shiftKey&&ne.code===_.aU.BRACKET_LEFT},PanelComponent:function(ne){var Ee=ne.updateData;return ne.appState,(0,t.jsx)("button",{type:"button",className:"zIndexButton",onClick:function(){return Ee(null)},title:"".concat((0,g.t)("labels.sendBackward")," — ").concat((0,M.uY)("CtrlOrCmd+[")),children:s.Gc})}}),l=(0,O.z)({name:"bringForward",trackEvent:{category:"element"},perform:function(ne,Ee){return{elements:$(ne,Ee),appState:Ee,commitToHistory:!0}},contextItemLabel:"labels.bringForward",keyPriority:40,keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&!ne.shiftKey&&ne.code===_.aU.BRACKET_RIGHT},PanelComponent:function(ne){var Ee=ne.updateData;return ne.appState,(0,t.jsx)("button",{type:"button",className:"zIndexButton",onClick:function(){return Ee(null)},title:"".concat((0,g.t)("labels.bringForward")," — ").concat((0,M.uY)("CtrlOrCmd+]")),children:s.t5})}}),a=(0,O.z)({name:"sendToBack",trackEvent:{category:"element"},perform:function(ne,Ee){return{elements:b(ne,Ee),appState:Ee,commitToHistory:!0}},contextItemLabel:"labels.sendToBack",keyTest:function(ne){return f.Um?ne[_.tW.CTRL_OR_CMD]&&ne.altKey&&ne.code===_.aU.BRACKET_LEFT:ne[_.tW.CTRL_OR_CMD]&&ne.shiftKey&&ne.code===_.aU.BRACKET_LEFT},PanelComponent:function(ne){var Ee=ne.updateData;return ne.appState,(0,t.jsx)("button",{type:"button",className:"zIndexButton",onClick:function(){return Ee(null)},title:"".concat((0,g.t)("labels.sendToBack")," — ").concat(f.Um?(0,M.uY)("CtrlOrCmd+Alt+["):(0,M.uY)("CtrlOrCmd+Shift+[")),children:s.pw})}}),c=(0,O.z)({name:"bringToFront",trackEvent:{category:"element"},perform:function(ne,Ee){return{elements:R(ne,Ee),appState:Ee,commitToHistory:!0}},contextItemLabel:"labels.bringToFront",keyTest:function(ne){return f.Um?ne[_.tW.CTRL_OR_CMD]&&ne.altKey&&ne.code===_.aU.BRACKET_RIGHT:ne[_.tW.CTRL_OR_CMD]&&ne.shiftKey&&ne.code===_.aU.BRACKET_RIGHT},PanelComponent:function(ne){var Ee=ne.updateData;return ne.appState,(0,t.jsx)("button",{type:"button",className:"zIndexButton",onClick:function(Pe){return Ee(null)},title:"".concat((0,g.t)("labels.bringToFront")," — ").concat(f.Um?(0,M.uY)("CtrlOrCmd+Alt+]"):(0,M.uY)("CtrlOrCmd+Shift+]")),children:s.IN})}}),m=e(7169),z=e(7651),j=e(7422),k=e(6264);function x(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function N(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?x(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):x(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}var G=(0,O.z)({name:"selectAll",trackEvent:{category:"canvas"},perform:function(ne,Ee,Pe,ze){if(Ee.editingLinearElement)return!1;var pt=(0,k.aI)(ne.filter(function(Ut){return!(Ut.isDeleted||(0,z.iB)(Ut)&&Ut.containerId||Ut.locked)})).reduce(function(Ut,zt){return Ut[zt.id]=!0,Ut},{});return{appState:N(N(N({},Ee),(0,I.bO)({editingGroupId:null,selectedElementIds:pt},(0,z.Lm)(ne),Ee,ze)),{},{selectedLinearElement:Object.keys(pt).length===1&&(0,S.bt)(ne[0])?new j._(ne[0],ze.scene):null}),commitToHistory:!0}},contextItemLabel:"labels.selectAll",keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&ne.key===_.tW.A}}),ie=e(1512),V=e(9645),ce=e(4761);function te(ne,Ee){var Pe=typeof Symbol<"u"&&ne[Symbol.iterator]||ne["@@iterator"];if(!Pe){if(Array.isArray(ne)||(Pe=function(gt,Xt){if(gt){if(typeof gt=="string")return L(gt,Xt);var $t=Object.prototype.toString.call(gt).slice(8,-1);if($t==="Object"&>.constructor&&($t=gt.constructor.name),$t==="Map"||$t==="Set")return Array.from(gt);if($t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($t))return L(gt,Xt)}}(ne))||Ee&&ne&&typeof ne.length=="number"){Pe&&(ne=Pe);var ze=0,pt=function(){};return{s:pt,n:function(){return ze>=ne.length?{done:!0}:{done:!1,value:ne[ze++]}},e:function(gt){throw gt},f:pt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ut,zt=!0,qt=!1;return{s:function(){Pe=Pe.call(ne)},n:function(){var gt=Pe.next();return zt=gt.done,gt},e:function(gt){qt=!0,Ut=gt},f:function(){try{zt||Pe.return==null||Pe.return()}finally{if(qt)throw Ut}}}}function L(ne,Ee){(Ee==null||Ee>ne.length)&&(Ee=ne.length);for(var Pe=0,ze=new Array(Ee);Pe<Ee;Pe++)ze[Pe]=ne[Pe];return ze}var re=function(ne){var Ee=ne.slice(),Pe=new Set,ze=function Ut(zt){var qt,gt,Xt,$t=(qt=zt[0])===null||qt===void 0||(gt=qt.groupIds)===null||gt===void 0?void 0:gt.join(""),Er=[zt[0]],Or=[],Cr=te(zt.slice(1));try{for(Cr.s();!(Xt=Cr.n()).done;){var Fr,zr=Xt.value;((Fr=zr.groupIds)===null||Fr===void 0?void 0:Fr.join(""))===$t?Er.push(zr):Or.push(zr)}}catch(Sr){Cr.e(Sr)}finally{Cr.f()}return Or.length?[].concat(Er,(0,y.Z)(Ut(Or))):Er},pt=new Map;return Ee.forEach(function(Ut,zt){var qt;if(!pt.has(Ut.id))if((qt=Ut.groupIds)!==null&&qt!==void 0&&qt.length){var gt,Xt=Ut.groupIds[Ut.groupIds.length-1],$t=Ee.slice(zt).filter(function(Cr){var Fr,zr=Cr==null||(Fr=Cr.groupIds)===null||Fr===void 0?void 0:Fr.some(function(Sr){return Sr===Xt});return zr&&pt.set(Cr.id,!0),zr}),Er=te(ze($t));try{for(Er.s();!(gt=Er.n()).done;){var Or=gt.value;Pe.add(Or)}}catch(Cr){Er.e(Cr)}finally{Er.f()}}else Pe.add(Ut)}),Pe.size!==ne.length?(console.error("normalizeGroupElementOrder: lost some elements... bailing!"),ne):(0,y.Z)(Pe)},me=function(ne){var Ee=function(Pe){var ze=(0,M.I4)(Pe),pt=Pe.slice(),Ut=new Set;return pt.forEach(function(zt,qt){var gt;if(zt)if((gt=zt.boundElements)!==null&>!==void 0&>.length)Ut.add(zt),pt[qt]=null,zt.boundElements.forEach(function(Er){var Or=ze.get(Er.id);Or&&Er.type==="text"&&(Ut.add(Or[0]),pt[Or[1]]=null)});else if(zt.type==="text"&&zt.containerId){var Xt,$t=ze.get(zt.containerId);$t!=null&&(Xt=$t[0].boundElements)!==null&&Xt!==void 0&&Xt.find(function(Er){return Er.id===zt.id})||(Ut.add(zt),pt[qt]=null)}else Ut.add(zt),pt[qt]=null}),Ut.size!==Pe.length?(console.error("normalizeBoundElementsOrder: lost some elements... bailing!"),Pe):(0,y.Z)(Ut)}(re(ne));return Ee},Ce=e(4682);function We(ne,Ee){var Pe=typeof Symbol<"u"&&ne[Symbol.iterator]||ne["@@iterator"];if(!Pe){if(Array.isArray(ne)||(Pe=function(gt,Xt){if(gt){if(typeof gt=="string")return Te(gt,Xt);var $t=Object.prototype.toString.call(gt).slice(8,-1);if($t==="Object"&>.constructor&&($t=gt.constructor.name),$t==="Map"||$t==="Set")return Array.from(gt);if($t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($t))return Te(gt,Xt)}}(ne))||Ee&&ne&&typeof ne.length=="number"){Pe&&(ne=Pe);var ze=0,pt=function(){};return{s:pt,n:function(){return ze>=ne.length?{done:!0}:{done:!1,value:ne[ze++]}},e:function(gt){throw gt},f:pt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ut,zt=!0,qt=!1;return{s:function(){Pe=Pe.call(ne)},n:function(){var gt=Pe.next();return zt=gt.done,gt},e:function(gt){qt=!0,Ut=gt},f:function(){try{zt||Pe.return==null||Pe.return()}finally{if(qt)throw Ut}}}}function Te(ne,Ee){(Ee==null||Ee>ne.length)&&(Ee=ne.length);for(var Pe=0,ze=new Array(Ee);Pe<Ee;Pe++)ze[Pe]=ne[Pe];return ze}function we(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function xe(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?we(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):we(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}var _e=(0,O.z)({name:"duplicateSelection",trackEvent:{category:"element"},perform:function(ne,Ee){if(Ee.editingLinearElement){var Pe=j._.duplicateSelectedPoints(Ee);return!!Pe&&{elements:ne,appState:Pe.appState,commitToHistory:!0}}return xe(xe({},Oe(ne,Ee)),{},{commitToHistory:!0})},contextItemLabel:"labels.duplicateSelection",keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&ne.key===_.tW.D},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData;return(0,t.jsx)(ie.V,{type:"button",icon:s.NA,title:"".concat((0,g.t)("labels.duplicateSelection")," — ").concat((0,M.uY)("CtrlOrCmd+D")),"aria-label":(0,g.t)("labels.duplicateSelection"),onClick:function(){return ze(null)},visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),Oe=function(ne,Ee){for(var Pe=me(ne),ze=new Map,pt=[],Ut=[],zt=new Map,qt=function(nn){var mn=(0,z.Sy)(Ee.editingGroupId,ze,nn,{x:nn.x+f.k/2,y:nn.y+f.k/2});return zt.set(nn.id,mn.id),Ut.push(nn),pt.push(mn),mn},gt=(0,M.xn)((0,k.eD)(Pe,Ee,{includeBoundTextElement:!0,includeElementsInFrames:!0})),Xt=new Map,$t=function(nn){var mn,On=We(nn);try{for(On.s();!(mn=On.n()).done;){var Kn=mn.value;Xt.set(Kn.id,!0)}}catch(Jn){On.e(Jn)}finally{On.f()}return nn},Er=[],Or=-1;++Or<Pe.length;){var Cr=Pe[Or];if(!Xt.get(Cr.id)){var Fr=(0,ce.WJ)(Cr),zr=(0,S.He)(Cr);if(gt.get(Cr.id)){if(Cr.groupIds.length||Fr||zr){var Sr=(0,I.yO)(Ee,Cr);if(Sr){var qr=(0,I.Fb)(Pe,Sr).flatMap(function(nn){return(0,S.He)(nn)?[].concat((0,y.Z)((0,Ce.zD)(ne,nn.id)),[nn]):[nn]});Er.push.apply(Er,(0,y.Z)($t([].concat((0,y.Z)(qr),(0,y.Z)(qr.map(function(nn){return qt(nn)}))))));continue}if(Fr){Er.push.apply(Er,(0,y.Z)($t([Cr,Fr,qt(Cr),qt(Fr)])));continue}if(zr){var rn=(0,Ce.zD)(Pe,Cr.id);Er.push.apply(Er,(0,y.Z)($t([].concat((0,y.Z)(rn),[Cr],(0,y.Z)(rn.map(function(nn){return qt(nn)})),[qt(Cr)]))));continue}}Cr.frameId&>.has(Cr.frameId)||Er.push.apply(Er,(0,y.Z)($t([Cr,qt(Cr)])))}else Er.push.apply(Er,(0,y.Z)($t([Cr])))}}var Ln=[],Bn=new Map;for(Or=Er.length;--Or>=0;){var $n=Er[Or];Bn.get($n.id)||(Bn.set($n.id,!0),Ln.push($n))}var uo=Ln.reverse();(0,ce.P7)(Er,Ut,zt),(0,V.ek)(Er,Ut,zt),(0,Ce.xr)(uo,Ut,zt);var wr=(0,k.aI)(pt);return{elements:uo,appState:xe(xe({},Ee),(0,I.bO)({editingGroupId:Ee.editingGroupId,selectedElementIds:wr.reduce(function(nn,mn){return(0,S.Xh)(mn)||(nn[mn.id]=!0),nn},{})},(0,z.Lm)(uo),Ee,null))}},J=(e(3361),e(6006)),ke=e(2361),q=e(7652);function o(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function i(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?o(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):o(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}var p=(0,O.z)({name:"finalize",trackEvent:!1,perform:function(ne,Ee,Pe,ze){var pt,Ut=ze.interactiveCanvas,zt=ze.focusContainer,qt=ze.scene;if(Ee.editingLinearElement){var gt=Ee.editingLinearElement,Xt=gt.elementId,$t=gt.startBindingElement,Er=gt.endBindingElement,Or=j._.getElement(Xt);if(Or)return(0,S.Mn)(Or)&&(0,V.HG)(Or,$t,Er),{elements:Or.points.length<2||(0,z.QD)(Or)?ne.filter(function(On){return On.id!==Or.id}):void 0,appState:i(i({},Ee),{},{cursorButton:"up",editingLinearElement:null}),commitToHistory:!0}}var Cr=ne,Fr=Ee.pendingImageElementId&&qt.getElement(Ee.pendingImageElementId);Fr&&(0,h.DR)(Fr,{isDeleted:!0},!1),window.document.activeElement instanceof HTMLElement&&zt();var zr,Sr=Ee.multiElement?Ee.multiElement:((pt=Ee.editingElement)===null||pt===void 0?void 0:pt.type)==="freedraw"?Ee.editingElement:null;if(Sr){if(Sr.type!=="freedraw"&&Ee.lastPointerDownWith!=="touch"){var qr=Sr.points,rn=Sr.lastCommittedPoint;rn&&qr[qr.length-1]===rn||(0,h.DR)(Sr,{points:Sr.points.slice(0,-1)})}(0,z.QD)(Sr)&&(Cr=Cr.filter(function(On){return On.id!==Sr.id}));var Ln=(0,ke.g6)(Sr.points,Ee.zoom.value);if((Sr.type==="line"||Sr.type==="freedraw")&&Ln){var Bn=Sr.points,$n=Bn[0];(0,h.DR)(Sr,{points:Bn.map(function(On,Kn){return Kn===Bn.length-1?[$n[0],$n[1]]:On})})}if((0,S.Mn)(Sr)&&!Ln&&Sr.points.length>1){var uo=j._.getPointAtIndexGlobalCoordinates(Sr,-1),wr=(0,E.Z)(uo,2),nn=wr[0],mn=wr[1];(0,V.R)(Sr,Ee,n.Z.getScene(Sr),{x:nn,y:mn})}}return(Ee.activeTool.locked||Ee.activeTool.type==="freedraw")&&Sr||(0,q.z8)(Ut),zr=Ee.activeTool.type==="eraser"?(0,M.Om)(Ee,i(i({},Ee.activeTool.lastActiveTool||{type:"selection"}),{},{lastActiveToolBeforeEraser:null})):(0,M.Om)(Ee,{type:"selection"}),{elements:Cr,appState:i(i({},Ee),{},{cursorButton:"up",activeTool:(Ee.activeTool.locked||Ee.activeTool.type==="freedraw")&&Sr?Ee.activeTool:zr,activeEmbeddable:null,draggingElement:null,multiElement:null,editingElement:null,startBoundElement:null,suggestedBindings:[],selectedElementIds:Sr&&!Ee.activeTool.locked&&Ee.activeTool.type!=="freedraw"?i(i({},Ee.selectedElementIds),{},(0,m.Z)({},Sr.id,!0)):Ee.selectedElementIds,selectedLinearElement:Sr&&(0,S.bt)(Sr)?new j._(Sr,qt):Ee.selectedLinearElement,pendingImageElementId:null}),commitToHistory:Ee.activeTool.type==="freedraw"}},keyTest:function(ne,Ee){return ne.key===_.tW.ESCAPE&&(Ee.editingLinearElement!==null||!Ee.draggingElement&&Ee.multiElement===null)||(ne.key===_.tW.ESCAPE||ne.key===_.tW.ENTER)&&Ee.multiElement!==null},PanelComponent:function(ne){var Ee=ne.appState,Pe=ne.updateData,ze=ne.data;return(0,t.jsx)(ie.V,{type:"button",icon:s.$c,title:(0,g.t)("buttons.done"),"aria-label":(0,g.t)("buttons.done"),onClick:Pe,visible:Ee.multiElement!=null,size:ze?.size||"medium"})}}),B=e(4406);function A(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function X(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?A(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):A(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}var Y="{}",ee=(0,O.z)({name:"copyStyles",trackEvent:{category:"element"},perform:function(ne,Ee){var Pe=[],ze=ne.find(function(Ut){return Ee.selectedElementIds[Ut.id]});if(Pe.push(ze),ze&&(0,S.Xo)(ze)){var pt=(0,ce.WJ)(ze);Pe.push(pt)}return ze&&(Y=JSON.stringify(Pe)),{appState:X(X({},Ee),{},{toast:{message:(0,g.t)("toast.copyStyles")}}),commitToHistory:!1}},contextItemLabel:"labels.copyStyles",keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&ne.altKey&&ne.code===_.aU.C}}),ge=(0,O.z)({name:"pasteStyles",trackEvent:{category:"element"},perform:function(ne,Ee){var Pe=JSON.parse(Y),ze=Pe[0],pt=Pe[1];if(!(0,z.r2)(ze))return{elements:ne,commitToHistory:!1};var Ut=(0,v.eD)(ne,Ee,{includeBoundTextElement:!0}),zt=Ut.map(function(qt){return qt.id});return{elements:ne.map(function(qt){if(zt.includes(qt.id)){var gt,Xt,$t,Er,Or,Cr,Fr,zr=ze;if((0,z.iB)(qt)&&qt.containerId&&(zr=pt),!zr)return qt;var Sr=(0,h.BE)(qt,{backgroundColor:(gt=zr)===null||gt===void 0?void 0:gt.backgroundColor,strokeWidth:(Xt=zr)===null||Xt===void 0?void 0:Xt.strokeWidth,strokeColor:($t=zr)===null||$t===void 0?void 0:$t.strokeColor,strokeStyle:(Er=zr)===null||Er===void 0?void 0:Er.strokeStyle,fillStyle:(Or=zr)===null||Or===void 0?void 0:Or.fillStyle,opacity:(Cr=zr)===null||Cr===void 0?void 0:Cr.opacity,roughness:(Fr=zr)===null||Fr===void 0?void 0:Fr.roughness,roundness:zr.roundness?(0,S.eK)(zr.roundness.type,qt)?zr.roundness:(0,S.UQ)(qt):null});if((0,z.iB)(Sr)){var qr=zr.fontSize||f.n5,rn=zr.fontFamily||f.rk,Ln=null;(Sr=(0,h.BE)(Sr,{fontSize:qr,fontFamily:rn,textAlign:zr.textAlign||f.Hg,lineHeight:zr.lineHeight||(0,ce.PT)(rn)})).containerId&&(Ln=Ut.find(function(Bn){return(0,z.iB)(Sr)&&Bn.id===Sr.containerId})||null),(0,z.oN)(Sr,Ln)}return Sr.type==="arrow"&&(0,S.Yv)(zr)&&(Sr=(0,h.BE)(Sr,{startArrowhead:zr.startArrowhead,endArrowhead:zr.endArrowhead})),(0,S.He)(qt)&&(Sr=(0,h.BE)(Sr,{roundness:null,backgroundColor:"transparent"})),Sr}return qt}),commitToHistory:!0}},contextItemLabel:"labels.pasteStyles",keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&ne.altKey&&ne.code===_.aU.V}});function be(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function Re(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?be(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):be(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}(0,O.z)({name:"toggleCanvasMenu",trackEvent:{category:"menu"},perform:function(ne,Ee){return{appState:Re(Re({},Ee),{},{openMenu:Ee.openMenu==="canvas"?null:"canvas"}),commitToHistory:!1}},PanelComponent:function(ne){var Ee=ne.appState,Pe=ne.updateData;return(0,t.jsx)(ie.V,{type:"button",icon:s.RY,"aria-label":(0,g.t)("buttons.menu"),onClick:Pe,selected:Ee.openMenu==="canvas"})}}),(0,O.z)({name:"toggleEditMenu",trackEvent:{category:"menu"},perform:function(ne,Ee){return{appState:Re(Re({},Ee),{},{openMenu:Ee.openMenu==="shape"?null:"shape"}),commitToHistory:!1}},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData;return(0,t.jsx)(ie.V,{visible:(0,z.RT)(Pe,(0,z.Lm)(Ee)),type:"button",icon:s.DG,"aria-label":(0,g.t)("buttons.edit"),onClick:ze,selected:Pe.openMenu==="shape"})}});var Ze=(0,O.z)({name:"toggleShortcuts",viewMode:!0,trackEvent:{category:"menu",action:"toggleHelpDialog"},perform:function(ne,Ee,Pe,ze){var pt=ze.focusContainer;return Ee.openDialog==="help"&&pt(),{appState:Re(Re({},Ee),{},{openDialog:Ee.openDialog==="help"?null:"help"}),commitToHistory:!1}},keyTest:function(ne){return ne.key===_.tW.QUESTION_MARK}}),Be=e(6655),Ie=e(4643);function Ke(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function Ye(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?Ke(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):Ke(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}function tt(ne,Ee){var Pe=typeof Symbol<"u"&&ne[Symbol.iterator]||ne["@@iterator"];if(!Pe){if(Array.isArray(ne)||(Pe=function(gt,Xt){if(gt){if(typeof gt=="string")return ue(gt,Xt);var $t=Object.prototype.toString.call(gt).slice(8,-1);if($t==="Object"&>.constructor&&($t=gt.constructor.name),$t==="Map"||$t==="Set")return Array.from(gt);if($t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($t))return ue(gt,Xt)}}(ne))||Ee&&ne&&typeof ne.length=="number"){Pe&&(ne=Pe);var ze=0,pt=function(){};return{s:pt,n:function(){return ze>=ne.length?{done:!0}:{done:!1,value:ne[ze++]}},e:function(gt){throw gt},f:pt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ut,zt=!0,qt=!1;return{s:function(){Pe=Pe.call(ne)},n:function(){var gt=Pe.next();return zt=gt.done,gt},e:function(gt){qt=!0,Ut=gt},f:function(){try{zt||Pe.return==null||Pe.return()}finally{if(qt)throw Ut}}}}function ue(ne,Ee){(Ee==null||Ee>ne.length)&&(Ee=ne.length);for(var Pe=0,ze=new Array(Ee);Pe<Ee;Pe++)ze[Pe]=ne[Pe];return ze}var ve=function(ne,Ee,Pe){var ze=Pe.scene.getSelectedElements({selectedElementIds:Ee.selectedElementIds,includeBoundTextElement:!0});return ze.length>=2&&!function(pt){if(pt.length>=2){var Ut,zt=tt(pt[0].groupIds);try{var qt=function(){var Xt=Ut.value;if(pt.reduce(function($t,Er){return $t&&(0,I.Nd)(Er,Xt)},!0))return{v:!0}};for(zt.s();!(Ut=zt.n()).done;){var gt=qt();if((0,Be.Z)(gt)==="object")return gt.v}}catch(Xt){zt.e(Xt)}finally{zt.f()}}return!1}(ze)},De=(0,O.z)({name:"group",trackEvent:{category:"element"},perform:function(ne,Ee,Pe,ze){var pt=ze.scene.getSelectedElements({selectedElementIds:Ee.selectedElementIds,includeBoundTextElement:!0});if(pt.length<2)return{appState:Ee,elements:ne,commitToHistory:!1};var Ut=(0,I.iJ)(Ee);if(Ut.length===1){var zt=Ut[0],qt=new Set((0,I.Fb)(ne,zt).map(function(qr){return qr.id})),gt=new Set(pt.map(function(qr){return qr.id}));if(new Set([].concat((0,y.Z)(Array.from(qt)),(0,y.Z)(Array.from(gt)))).size===qt.size)return{appState:Ee,elements:ne,commitToHistory:!1}}var Xt=(0,y.Z)(ne);new Set(pt.map(function(qr){return qr.frameId})).size>1&&(0,Ce.SH)(pt).forEach(function(qr,rn){Xt=(0,Ce.lz)(Xt,qr,Ee)});var $t=(0,Ie.kb)(),Er=(0,M.xn)(pt);Xt=Xt.map(function(qr){return Er.get(qr.id)?(0,h.BE)(qr,{groupIds:(0,I.S_)(qr.groupIds,$t,Ee.editingGroupId)}):qr});var Or=(0,I.Fb)(Xt,$t),Cr=Or[Or.length-1],Fr=Xt.lastIndexOf(Cr),zr=Xt.slice(Fr+1),Sr=Xt.slice(0,Fr).filter(function(qr){return!(0,I.Nd)(qr,$t)});return Xt=[].concat((0,y.Z)(Sr),(0,y.Z)(Or),(0,y.Z)(zr)),{appState:Ye(Ye({},Ee),(0,I.F$)($t,Ye(Ye({},Ee),{},{selectedGroupIds:{}}),(0,z.Lm)(Xt))),elements:Xt,commitToHistory:!0}},contextItemLabel:"labels.group",predicate:function(ne,Ee,Pe,ze){return ve(0,Ee,ze)},keyTest:function(ne){return!ne.shiftKey&&ne[_.tW.CTRL_OR_CMD]&&ne.key===_.tW.G},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData,pt=ne.app;return(0,t.jsx)(ie.V,{hidden:!ve(0,Pe,pt),type:"button",icon:(0,t.jsx)(s.BF,{theme:Pe.theme}),onClick:function(){return ze(null)},title:"".concat((0,g.t)("labels.group")," — ").concat((0,M.uY)("CtrlOrCmd+G")),"aria-label":(0,g.t)("labels.group"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),He=(0,O.z)({name:"ungroup",trackEvent:{category:"element"},perform:function(ne,Ee,Pe,ze){if((0,I.iJ)(Ee).length===0)return{appState:Ee,elements:ne,commitToHistory:!1};var pt=(0,y.Z)(ne),Ut=[];pt=pt.map(function(Xt){(0,S.Xh)(Xt)&&Ut.push(Xt.id);var $t=(0,I.h6)(Xt.groupIds,Ee.selectedGroupIds);return $t.length===Xt.groupIds.length?Xt:(0,h.BE)(Xt,{groupIds:$t})});var zt=(0,I.bO)(Ee,(0,z.Lm)(pt),Ee,null),qt=ze.scene.getSelectedElements(Ee),gt=new Set(qt.filter(function(Xt){return Xt.frameId}).map(function(Xt){return Xt.frameId}));return(0,Ce.wO)(ne).filter(function(Xt){return gt.has(Xt.id)}).forEach(function(Xt){Xt&&(pt=(0,Ce.pr)(pt,(0,Ce.ni)(pt,Xt,Ee),Xt,Ee))}),zt.selectedElementIds=Object.entries(zt.selectedElementIds).reduce(function(Xt,$t){var Er=(0,E.Z)($t,2),Or=Er[0];return Er[1]&&!Ut.includes(Or)&&(Xt[Or]=!0),Xt},{}),{appState:Ye(Ye({},Ee),zt),elements:pt,commitToHistory:!0}},keyTest:function(ne){return ne.shiftKey&&ne[_.tW.CTRL_OR_CMD]&&ne.key===_.tW.G.toUpperCase()},contextItemLabel:"labels.ungroup",predicate:function(ne,Ee){return(0,I.iJ)(Ee).length>0},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData;return(0,t.jsx)(ie.V,{type:"button",hidden:(0,I.iJ)(Pe).length===0,icon:(0,t.jsx)(s.RJ,{theme:Pe.theme}),onClick:function(){return ze(null)},title:"".concat((0,g.t)("labels.ungroup")," — ").concat((0,M.uY)("CtrlOrCmd+Shift+G")),"aria-label":(0,g.t)("labels.ungroup"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),Je=e(957),qe=e(3379),st=e.n(qe),ht=e(7795),et=e.n(ht),wt=e(569),Lt=e.n(wt),St=e(3565),yt=e.n(St),Wt=e(9216),Ft=e.n(Wt),Ve=e(4589),bt=e.n(Ve),at=e(3729),mt={};mt.styleTagTransform=bt(),mt.setAttributes=yt(),mt.insert=Lt().bind(null,"head"),mt.domAPI=et(),mt.insertStyleElement=Ft(),st()(at.Z,mt),at.Z&&at.Z.locals&&at.Z.locals;var ut=e(9787),Ot=function(ne){var Ee=ne.color,Pe=ne.onClick,ze=ne.name,pt=ne.src,Ut=(0,Je.l)(ze),zt=(0,ut.useState)(!1),qt=(0,E.Z)(zt,2),gt=qt[0],Xt=qt[1],$t=!gt&&pt,Er=$t?void 0:{background:Ee};return(0,t.jsx)("div",{className:"Avatar",style:Er,onClick:Pe,children:$t?(0,t.jsx)("img",{className:"Avatar-img",src:pt,alt:Ut,referrerPolicy:"no-referrer",onError:function(){return Xt(!0)}}):Ut})},Pt=e(2382);function Gt(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function Ct(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?Gt(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):Gt(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}(0,O.z)({name:"goToCollaborator",viewMode:!0,trackEvent:{category:"collab"},perform:function(ne,Ee,Pe){var ze=Pe;return ze?{appState:Ct(Ct(Ct({},Ee),(0,Pt.s)({scenePoint:ze,viewportDimensions:{width:Ee.width,height:Ee.height},zoom:Ee.zoom})),{},{openMenu:Ee.openMenu==="canvas"?null:Ee.openMenu}),commitToHistory:!1}:{appState:Ee,commitToHistory:!1}},PanelComponent:function(ne){var Ee=ne.updateData,Pe=ne.data,ze=(0,E.Z)(Pe,2),pt=ze[0],Ut=ze[1],zt=(0,Je.G)(pt);return(0,t.jsx)(Ot,{color:zt,onClick:function(){return Ee(Ut.pointer)},name:Ut.username||"",src:Ut.avatarUrl})}});var ur=e(5742);function rr(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function Tr(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?rr(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):rr(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}function ot(ne,Ee){var Pe=typeof Symbol<"u"&&ne[Symbol.iterator]||ne["@@iterator"];if(!Pe){if(Array.isArray(ne)||(Pe=function(gt,Xt){if(gt){if(typeof gt=="string")return Rt(gt,Xt);var $t=Object.prototype.toString.call(gt).slice(8,-1);if($t==="Object"&>.constructor&&($t=gt.constructor.name),$t==="Map"||$t==="Set")return Array.from(gt);if($t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($t))return Rt(gt,Xt)}}(ne))||Ee&&ne&&typeof ne.length=="number"){Pe&&(ne=Pe);var ze=0,pt=function(){};return{s:pt,n:function(){return ze>=ne.length?{done:!0}:{done:!1,value:ne[ze++]}},e:function(gt){throw gt},f:pt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ut,zt=!0,qt=!1;return{s:function(){Pe=Pe.call(ne)},n:function(){var gt=Pe.next();return zt=gt.done,gt},e:function(gt){qt=!0,Ut=gt},f:function(){try{zt||Pe.return==null||Pe.return()}finally{if(qt)throw Ut}}}}function Rt(ne,Ee){(Ee==null||Ee>ne.length)&&(Ee=ne.length);for(var Pe=0,ze=new Array(Ee);Pe<Ee;Pe++)ze[Pe]=ne[Pe];return ze}var _t=(0,O.z)({name:"addToLibrary",trackEvent:{category:"element"},perform:function(ne,Ee,Pe,ze){var pt,Ut=ze.scene.getSelectedElements({selectedElementIds:Ee.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0}),zt=ot(f.PR);try{var qt=function(){var Xt=pt.value;if(Ut.some(function($t){return $t.type===Xt}))return{v:{commitToHistory:!1,appState:Tr(Tr({},Ee),{},{errorMessage:(0,g.t)("errors.libraryElementTypeError.".concat(Xt))})}}};for(zt.s();!(pt=zt.n()).done;){var gt=qt();if((0,Be.Z)(gt)==="object")return gt.v}}catch(Xt){zt.e(Xt)}finally{zt.f()}return ze.library.getLatestLibrary().then(function(Xt){return ze.library.setLibrary([{id:(0,Ie.kb)(),status:"unpublished",elements:Ut.map(ur.OL),created:Date.now()}].concat((0,y.Z)(Xt)))}).then(function(){return{commitToHistory:!1,appState:Tr(Tr({},Ee),{},{toast:{message:(0,g.t)("toast.addedToLibrary")}})}}).catch(function(Xt){return{commitToHistory:!1,appState:Tr(Tr({},Ee),{},{errorMessage:Xt.message})}})},contextItemLabel:"labels.addToLibrary"}),At=e(4949);function br(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function xr(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?br(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):br(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}var jr=function(ne,Ee,Pe){var ze=Pe.axis,pt=Pe.position,Ut=(0,At.v2)(ne),zt=ze==="x"?["minX","maxX"]:["minY","maxY"],qt=(0,E.Z)(zt,2),gt=qt[0],Xt=qt[1],$t={x:0,y:0};return xr(xr({},$t),{},pt==="start"?(0,m.Z)({},ze,Ee[gt]-Ut[gt]):pt==="end"?(0,m.Z)({},ze,Ee[Xt]-Ut[Xt]):(0,m.Z)({},ze,(Ee[gt]+Ee[Xt])/2-(Ut[gt]+Ut[Xt])/2))},Ar=function(ne,Ee,Pe,ze){var pt=ze.scene.getSelectedElements(Ee);return pt.length>1&&!pt.some(function(Ut){return Ut.type==="frame"})},fr=function(ne,Ee,Pe,ze){var pt=function(zt,qt){var gt=(0,I.AI)(zt),Xt=(0,At.v2)(zt);return gt.flatMap(function($t){var Er=jr($t,Xt,qt);return $t.map(function(Or){return(0,h.BE)(Or,{x:Or.x+Er.x,y:Or.y+Er.y})})})}(Pe.scene.getSelectedElements(Ee),ze),Ut=(0,M.xn)(pt);return(0,Ce.Tq)(ne.map(function(zt){return Ut.get(zt.id)||zt}),Ee,Pe)};(0,O.z)({name:"alignTop",trackEvent:{category:"element"},predicate:Ar,perform:function(ne,Ee,Pe,ze){return{appState:Ee,elements:fr(ne,Ee,ze,{position:"start",axis:"y"}),commitToHistory:!0}},keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&ne.shiftKey&&ne.key===_.tW.ARROW_UP},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData,pt=ne.app;return(0,t.jsx)(ie.V,{hidden:!Ar(0,Pe,0,pt),type:"button",icon:s.Ct,onClick:function(){return ze(null)},title:"".concat((0,g.t)("labels.alignTop")," — ").concat((0,M.uY)("CtrlOrCmd+Shift+Up")),"aria-label":(0,g.t)("labels.alignTop"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),(0,O.z)({name:"alignBottom",trackEvent:{category:"element"},predicate:Ar,perform:function(ne,Ee,Pe,ze){return{appState:Ee,elements:fr(ne,Ee,ze,{position:"end",axis:"y"}),commitToHistory:!0}},keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&ne.shiftKey&&ne.key===_.tW.ARROW_DOWN},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData,pt=ne.app;return(0,t.jsx)(ie.V,{hidden:!Ar(0,Pe,0,pt),type:"button",icon:s.HL,onClick:function(){return ze(null)},title:"".concat((0,g.t)("labels.alignBottom")," — ").concat((0,M.uY)("CtrlOrCmd+Shift+Down")),"aria-label":(0,g.t)("labels.alignBottom"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),(0,O.z)({name:"alignLeft",trackEvent:{category:"element"},predicate:Ar,perform:function(ne,Ee,Pe,ze){return{appState:Ee,elements:fr(ne,Ee,ze,{position:"start",axis:"x"}),commitToHistory:!0}},keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&ne.shiftKey&&ne.key===_.tW.ARROW_LEFT},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData,pt=ne.app;return(0,t.jsx)(ie.V,{hidden:!Ar(0,Pe,0,pt),type:"button",icon:s.xs,onClick:function(){return ze(null)},title:"".concat((0,g.t)("labels.alignLeft")," — ").concat((0,M.uY)("CtrlOrCmd+Shift+Left")),"aria-label":(0,g.t)("labels.alignLeft"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),(0,O.z)({name:"alignRight",trackEvent:{category:"element"},predicate:Ar,perform:function(ne,Ee,Pe,ze){return{appState:Ee,elements:fr(ne,Ee,ze,{position:"end",axis:"x"}),commitToHistory:!0}},keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&ne.shiftKey&&ne.key===_.tW.ARROW_RIGHT},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData,pt=ne.app;return(0,t.jsx)(ie.V,{hidden:!Ar(0,Pe,0,pt),type:"button",icon:s.mh,onClick:function(){return ze(null)},title:"".concat((0,g.t)("labels.alignRight")," — ").concat((0,M.uY)("CtrlOrCmd+Shift+Right")),"aria-label":(0,g.t)("labels.alignRight"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),(0,O.z)({name:"alignVerticallyCentered",trackEvent:{category:"element"},predicate:Ar,perform:function(ne,Ee,Pe,ze){return{appState:Ee,elements:fr(ne,Ee,ze,{position:"center",axis:"y"}),commitToHistory:!0}},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData,pt=ne.app;return(0,t.jsx)(ie.V,{hidden:!Ar(0,Pe,0,pt),type:"button",icon:s.ST,onClick:function(){return ze(null)},title:(0,g.t)("labels.centerVertically"),"aria-label":(0,g.t)("labels.centerVertically"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),(0,O.z)({name:"alignHorizontallyCentered",trackEvent:{category:"element"},predicate:Ar,perform:function(ne,Ee,Pe,ze){return{appState:Ee,elements:fr(ne,Ee,ze,{position:"center",axis:"x"}),commitToHistory:!0}},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData,pt=ne.app;return(0,t.jsx)(ie.V,{hidden:!Ar(0,Pe,0,pt),type:"button",icon:s.gK,onClick:function(){return ze(null)},title:(0,g.t)("labels.centerHorizontally"),"aria-label":(0,g.t)("labels.centerHorizontally"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}});function dt(ne,Ee){var Pe=typeof Symbol<"u"&&ne[Symbol.iterator]||ne["@@iterator"];if(!Pe){if(Array.isArray(ne)||(Pe=function(gt,Xt){if(gt){if(typeof gt=="string")return ft(gt,Xt);var $t=Object.prototype.toString.call(gt).slice(8,-1);if($t==="Object"&>.constructor&&($t=gt.constructor.name),$t==="Map"||$t==="Set")return Array.from(gt);if($t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($t))return ft(gt,Xt)}}(ne))||Ee&&ne&&typeof ne.length=="number"){Pe&&(ne=Pe);var ze=0,pt=function(){};return{s:pt,n:function(){return ze>=ne.length?{done:!0}:{done:!1,value:ne[ze++]}},e:function(gt){throw gt},f:pt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ut,zt=!0,qt=!1;return{s:function(){Pe=Pe.call(ne)},n:function(){var gt=Pe.next();return zt=gt.done,gt},e:function(gt){qt=!0,Ut=gt},f:function(){try{zt||Pe.return==null||Pe.return()}finally{if(qt)throw Ut}}}}function ft(ne,Ee){(Ee==null||Ee>ne.length)&&(Ee=ne.length);for(var Pe=0,ze=new Array(Ee);Pe<Ee;Pe++)ze[Pe]=ne[Pe];return ze}var vt=function(ne,Ee){var Pe=Ee.scene.getSelectedElements(ne);return Pe.length>1&&!Pe.some(function(ze){return ze.type==="frame"})},Et=function(ne,Ee,Pe,ze){var pt=function(zt,qt){var gt,Xt=qt.axis==="x"?["minX","midX","maxX","width"]:["minY","midY","maxY","height"],$t=(0,E.Z)(Xt,4),Er=$t[0],Or=$t[1],Cr=$t[2],Fr=$t[3],zr=(0,At.v2)(zt),Sr=(0,I.AI)(zt).map(function(mn){return[mn,(0,At.v2)(mn)]}).sort(function(mn,On){return mn[1][Or]-On[1][Or]}),qr=0,rn=dt(Sr);try{for(rn.s();!(gt=rn.n()).done;)qr+=gt.value[1][Fr]}catch(mn){rn.e(mn)}finally{rn.f()}var Ln=(zr[Fr]-qr)/(Sr.length-1);if(Ln<0){var Bn=Sr.findIndex(function(mn){return mn[1][Er]===zr[Er]}),$n=Sr.findIndex(function(mn){return mn[1][Cr]===zr[Cr]}),uo=(Sr[$n][1][Or]-Sr[Bn][1][Or])/(Sr.length-1),wr=Sr[Bn][1][Or];return Sr.flatMap(function(mn,On){var Kn=(0,E.Z)(mn,2),Jn=Kn[0],wo=Kn[1],to={x:0,y:0};return On!==Bn&&On!==$n&&(wr+=uo,to[qt.axis]=wr-wo[Or]),Jn.map(function(no){return(0,h.BE)(no,{x:no.x+to.x,y:no.y+to.y})})})}var nn=zr[Er];return Sr.flatMap(function(mn){var On=(0,E.Z)(mn,2),Kn=On[0],Jn=On[1],wo={x:0,y:0};return wo[qt.axis]=nn-Jn[Er],nn+=Ln,nn+=Jn[Fr],Kn.map(function(to){return(0,h.BE)(to,{x:to.x+wo.x,y:to.y+wo.y})})})}(Pe.scene.getSelectedElements(Ee),ze),Ut=(0,M.xn)(pt);return(0,Ce.Tq)(ne.map(function(zt){return Ut.get(zt.id)||zt}),Ee,Pe)},tr=((0,O.z)({name:"distributeHorizontally",trackEvent:{category:"element"},perform:function(ne,Ee,Pe,ze){return{appState:Ee,elements:Et(ne,Ee,ze,{space:"between",axis:"x"}),commitToHistory:!0}},keyTest:function(ne){return!ne[_.tW.CTRL_OR_CMD]&&ne.altKey&&ne.code===_.aU.H},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData,pt=ne.app;return(0,t.jsx)(ie.V,{hidden:!vt(Pe,pt),type:"button",icon:s.uD,onClick:function(){return ze(null)},title:"".concat((0,g.t)("labels.distributeHorizontally")," — ").concat((0,M.uY)("Alt+H")),"aria-label":(0,g.t)("labels.distributeHorizontally"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),(0,O.z)({name:"distributeVertically",trackEvent:{category:"element"},perform:function(ne,Ee,Pe,ze){return{appState:Ee,elements:Et(ne,Ee,ze,{space:"between",axis:"y"}),commitToHistory:!0}},keyTest:function(ne){return!ne[_.tW.CTRL_OR_CMD]&&ne.altKey&&ne.code===_.aU.V},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData,pt=ne.app;return(0,t.jsx)(ie.V,{hidden:!vt(Pe,pt),type:"button",icon:s.W5,onClick:function(){return ze(null)},title:"".concat((0,g.t)("labels.distributeVertically")," — ").concat((0,M.uY)("Alt+V")),"aria-label":(0,g.t)("labels.distributeVertically"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),e(4381)),ir=(0,O.z)({name:"flipHorizontal",trackEvent:{category:"element"},perform:function(ne,Ee,Pe,ze){return{elements:(0,Ce.Tq)(_r(ne,Ee,"horizontal"),Ee,ze),appState:Ee,commitToHistory:!0}},keyTest:function(ne){return ne.shiftKey&&ne.code===_.aU.H},contextItemLabel:"labels.flipHorizontal"}),Qt=(0,O.z)({name:"flipVertical",trackEvent:{category:"element"},perform:function(ne,Ee,Pe,ze){return{elements:(0,Ce.Tq)(_r(ne,Ee,"vertical"),Ee,ze),appState:Ee,commitToHistory:!0}},keyTest:function(ne){return ne.shiftKey&&ne.code===_.aU.V&&!ne[_.tW.CTRL_OR_CMD]},contextItemLabel:"labels.flipVertical"}),_r=function(ne,Ee,Pe){var ze=(0,v.eD)((0,z.Lm)(ne),Ee,{includeBoundTextElement:!0,includeElementsInFrames:!0}),pt=sr(ze,Ee,Pe),Ut=(0,M.xn)(pt);return ne.map(function(zt){return Ut.get(zt.id)||zt})},sr=function(ne,Ee,Pe){var ze=(0,At.v2)(ne),pt=ze.minX,Ut=ze.minY,zt=ze.maxX,qt=ze.maxY;return(0,tr.LM)({originalElements:(0,M.xn)(ne)},ne,"nw",!0,Pe==="horizontal"?zt:pt,Pe==="horizontal"?Ut:qt),((0,V.N1)(Ee)?V.el:V.H)(ne),ne},mr=e(5047);function Zr(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function or(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?Zr(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):Zr(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}var lr=(0,O.z)({name:"gridMode",viewMode:!0,trackEvent:{category:"canvas",predicate:function(ne){return!ne.gridSize}},perform:function(ne,Ee){return{appState:or(or({},Ee),{},{gridSize:this.checked(Ee)?null:f.k,objectsSnapModeEnabled:!1}),commitToHistory:!1}},checked:function(ne){return ne.gridSize!==null},predicate:function(ne,Ee,Pe){return Pe.gridModeEnabled===void 0},contextItemLabel:"labels.showGrid",keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&ne.code===_.aU.QUOTE}});function gr(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function cr(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?gr(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):gr(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}var Hr=(0,O.z)({name:"zenMode",viewMode:!0,trackEvent:{category:"canvas",predicate:function(ne){return!ne.zenModeEnabled}},perform:function(ne,Ee){return{appState:cr(cr({},Ee),{},{zenModeEnabled:!this.checked(Ee)}),commitToHistory:!1}},checked:function(ne){return ne.zenModeEnabled},predicate:function(ne,Ee,Pe){return Pe.zenModeEnabled===void 0},contextItemLabel:"buttons.zenMode",keyTest:function(ne){return!ne[_.tW.CTRL_OR_CMD]&&ne.altKey&&ne.code===_.aU.Z}});function vr(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function Rr(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?vr(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):vr(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}var an=(0,O.z)({name:"objectsSnapMode",viewMode:!0,trackEvent:{category:"canvas",predicate:function(ne){return!ne.objectsSnapModeEnabled}},perform:function(ne,Ee){return{appState:Rr(Rr({},Ee),{},{objectsSnapModeEnabled:!this.checked(Ee),gridSize:null}),commitToHistory:!1}},checked:function(ne){return ne.objectsSnapModeEnabled},predicate:function(ne,Ee,Pe){return Pe.objectsSnapModeEnabled===void 0},contextItemLabel:"buttons.objectsSnapMode",keyTest:function(ne){return!ne[_.tW.CTRL_OR_CMD]&&ne.altKey&&ne.code===_.aU.S}}),Sn=e(7080),Mn=e(7392),Zn=e(5992),Rn=e(9672);function bn(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function yn(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?bn(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):bn(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}var Un=(0,O.z)({name:"toggleLinearEditor",trackEvent:{category:"element"},predicate:function(ne,Ee,Pe,ze){var pt=ze.scene.getSelectedElements(Ee);return!(pt.length!==1||!(0,S.bt)(pt[0]))},perform:function(ne,Ee,Pe,ze){var pt,Ut=ze.scene.getSelectedElements({selectedElementIds:Ee.selectedElementIds,includeBoundTextElement:!0})[0],zt=((pt=Ee.editingLinearElement)===null||pt===void 0?void 0:pt.elementId)===Ut.id?null:new j._(Ut,ze.scene);return{appState:yn(yn({},Ee),{},{editingLinearElement:zt}),commitToHistory:!1}},contextItemLabel:function(ne,Ee,Pe){var ze,pt=Pe.scene.getSelectedElements({selectedElementIds:Ee.selectedElementIds,includeBoundTextElement:!0})[0];return((ze=Ee.editingLinearElement)===null||ze===void 0?void 0:ze.elementId)===pt.id?"labels.lineEditor.exit":"labels.lineEditor.edit"}})},2767:function(Se,Q,e){e.d(Q,{N:function(){return D},z:function(){return E}});var D=[],E=function(y){return D=D.concat(y),y}},2529:function(Se,Q,e){e.d(Q,{C:function(){return S}});var D=e(9937),E=e(8227),y=e(9827),h={toggleTheme:[(0,y.uY)("Shift+Alt+D")],saveScene:[(0,y.uY)("CtrlOrCmd+S")],loadScene:[(0,y.uY)("CtrlOrCmd+O")],clearCanvas:[(0,y.uY)("CtrlOrCmd+Delete")],imageExport:[(0,y.uY)("CtrlOrCmd+Shift+E")],cut:[(0,y.uY)("CtrlOrCmd+X")],copy:[(0,y.uY)("CtrlOrCmd+C")],paste:[(0,y.uY)("CtrlOrCmd+V")],copyStyles:[(0,y.uY)("CtrlOrCmd+Alt+C")],pasteStyles:[(0,y.uY)("CtrlOrCmd+Alt+V")],selectAll:[(0,y.uY)("CtrlOrCmd+A")],deleteSelectedElements:[(0,y.uY)("Delete")],duplicateSelection:[(0,y.uY)("CtrlOrCmd+D"),(0,y.uY)("Alt+".concat((0,E.t)("helpDialog.drag")))],sendBackward:[(0,y.uY)("CtrlOrCmd+[")],bringForward:[(0,y.uY)("CtrlOrCmd+]")],sendToBack:[D.Um?(0,y.uY)("CtrlOrCmd+Alt+["):(0,y.uY)("CtrlOrCmd+Shift+[")],bringToFront:[D.Um?(0,y.uY)("CtrlOrCmd+Alt+]"):(0,y.uY)("CtrlOrCmd+Shift+]")],copyAsPng:[(0,y.uY)("Shift+Alt+C")],copyAsSvg:[],group:[(0,y.uY)("CtrlOrCmd+G")],ungroup:[(0,y.uY)("CtrlOrCmd+Shift+G")],gridMode:[(0,y.uY)("CtrlOrCmd+'")],zenMode:[(0,y.uY)("Alt+Z")],objectsSnapMode:[(0,y.uY)("Alt+S")],stats:[(0,y.uY)("Alt+/")],addToLibrary:[],flipHorizontal:[(0,y.uY)("Shift+H")],flipVertical:[(0,y.uY)("Shift+V")],viewMode:[(0,y.uY)("Alt+R")],hyperlink:[(0,y.uY)("CtrlOrCmd+K")],toggleElementLock:[(0,y.uY)("CtrlOrCmd+Shift+L")]},S=function(I){var v=h[I];return v&&v.length>0?v[0]:""}},3646:function(Se,Q,e){e.d(Q,{L:function(){return D}});var D=function(E,y,h,S){try{if(typeof window>"u"||{VITE_APP_BACKEND_V2_GET_URL:"https://json.excalidraw.com/api/v2/",VITE_APP_BACKEND_V2_POST_URL:"https://json.excalidraw.com/api/v2/post/",VITE_APP_LIBRARY_URL:"https://libraries.excalidraw.com",VITE_APP_LIBRARY_BACKEND:"https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries",VITE_APP_PORTAL_URL:"https://portal.excalidraw.com",VITE_APP_PLUS_LP:"https://plus.excalidraw.com",VITE_APP_PLUS_APP:"https://app.excalidraw.com",VITE_APP_WS_SERVER_URL:"",VITE_APP_FIREBASE_CONFIG:'{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}',VITE_APP_DISABLE_TRACKING:"",VITE_PKG_NAME:"@excalidraw/excalidraw",VITE_PKG_VERSION:"0.17.0",VITE_IS_EXCALIDRAW_NPM_PACKAGE:!0}.VITE_WORKER_ID||![].includes(E))return;window.sa_event&&window.sa_event(y,{category:E,label:h,value:S})}catch(I){console.error("error during analytics",I)}}},6853:function(Se,Q,e){e.d(Q,{EN:function(){return H},eS:function(){return Z},im:function(){return I},l$:function(){return W},s:function(){return M}});var D=e(9240),E=e(9937),y=e(8227),h=e(9827),S=E.ZB.includes(devicePixelRatio)?devicePixelRatio:1,I=function(){return{showWelcomeScreen:!1,theme:E.C6.LIGHT,collaborators:new Map,currentChartType:"bar",currentItemBackgroundColor:E.HN.backgroundColor,currentItemEndArrowhead:"arrow",currentItemFillStyle:E.HN.fillStyle,currentItemFontFamily:E.rk,currentItemFontSize:E.n5,currentItemOpacity:E.HN.opacity,currentItemRoughness:E.HN.roughness,currentItemStartArrowhead:null,currentItemStrokeColor:E.HN.strokeColor,currentItemRoundness:"round",currentItemStrokeStyle:E.HN.strokeStyle,currentItemStrokeWidth:E.HN.strokeWidth,currentItemTextAlign:E.Hg,cursorButton:"up",activeEmbeddable:null,draggingElement:null,editingElement:null,editingGroupId:null,editingLinearElement:null,activeTool:{type:"selection",customType:null,locked:E.HN.locked,lastActiveTool:null},penMode:!1,penDetected:!1,errorMessage:null,exportBackground:!0,exportScale:S,exportEmbedScene:!1,exportWithDarkMode:!1,fileHandle:null,gridSize:null,isBindingEnabled:!0,defaultSidebarDockedPreference:!1,isLoading:!1,isResizing:!1,isRotating:!1,lastPointerDownWith:"mouse",multiElement:null,name:"".concat((0,y.t)("labels.untitled"),"-").concat((0,h.Fc)()),contextMenu:null,openMenu:null,openPopup:null,openSidebar:null,openDialog:null,pasteDialog:{shown:!1,data:null},previousSelectedElementIds:{},resizingElement:null,scrolledOutside:!1,scrollX:0,scrollY:0,selectedElementIds:{},selectedGroupIds:{},selectedElementsAreBeingDragged:!1,selectionElement:null,shouldCacheIgnoreZoom:!1,showStats:!1,startBoundElement:null,suggestedBindings:[],frameRendering:{enabled:!0,clip:!0,name:!0,outline:!0},frameToHighlight:null,editingFrame:null,elementsToHighlight:null,toast:null,viewBackgroundColor:D.HO.white,zenModeEnabled:!1,zoom:{value:1},viewModeEnabled:!1,pendingImageElementId:null,showHyperlinkPopup:!1,selectedLinearElement:null,snapLines:[],originSnapOffset:{x:0,y:0},objectsSnapModeEnabled:!1}},v={showWelcomeScreen:{browser:!0,export:!1,server:!1},theme:{browser:!0,export:!1,server:!1},collaborators:{browser:!1,export:!1,server:!1},currentChartType:{browser:!0,export:!1,server:!1},currentItemBackgroundColor:{browser:!0,export:!1,server:!1},currentItemEndArrowhead:{browser:!0,export:!1,server:!1},currentItemFillStyle:{browser:!0,export:!1,server:!1},currentItemFontFamily:{browser:!0,export:!1,server:!1},currentItemFontSize:{browser:!0,export:!1,server:!1},currentItemRoundness:{browser:!0,export:!1,server:!1},currentItemOpacity:{browser:!0,export:!1,server:!1},currentItemRoughness:{browser:!0,export:!1,server:!1},currentItemStartArrowhead:{browser:!0,export:!1,server:!1},currentItemStrokeColor:{browser:!0,export:!1,server:!1},currentItemStrokeStyle:{browser:!0,export:!1,server:!1},currentItemStrokeWidth:{browser:!0,export:!1,server:!1},currentItemTextAlign:{browser:!0,export:!1,server:!1},cursorButton:{browser:!0,export:!1,server:!1},activeEmbeddable:{browser:!1,export:!1,server:!1},draggingElement:{browser:!1,export:!1,server:!1},editingElement:{browser:!1,export:!1,server:!1},editingGroupId:{browser:!0,export:!1,server:!1},editingLinearElement:{browser:!1,export:!1,server:!1},activeTool:{browser:!0,export:!1,server:!1},penMode:{browser:!0,export:!1,server:!1},penDetected:{browser:!0,export:!1,server:!1},errorMessage:{browser:!1,export:!1,server:!1},exportBackground:{browser:!0,export:!1,server:!1},exportEmbedScene:{browser:!0,export:!1,server:!1},exportScale:{browser:!0,export:!1,server:!1},exportWithDarkMode:{browser:!0,export:!1,server:!1},fileHandle:{browser:!1,export:!1,server:!1},gridSize:{browser:!0,export:!0,server:!0},height:{browser:!1,export:!1,server:!1},isBindingEnabled:{browser:!1,export:!1,server:!1},defaultSidebarDockedPreference:{browser:!0,export:!1,server:!1},isLoading:{browser:!1,export:!1,server:!1},isResizing:{browser:!1,export:!1,server:!1},isRotating:{browser:!1,export:!1,server:!1},lastPointerDownWith:{browser:!0,export:!1,server:!1},multiElement:{browser:!1,export:!1,server:!1},name:{browser:!0,export:!1,server:!1},offsetLeft:{browser:!1,export:!1,server:!1},offsetTop:{browser:!1,export:!1,server:!1},contextMenu:{browser:!1,export:!1,server:!1},openMenu:{browser:!0,export:!1,server:!1},openPopup:{browser:!1,export:!1,server:!1},openSidebar:{browser:!0,export:!1,server:!1},openDialog:{browser:!1,export:!1,server:!1},pasteDialog:{browser:!1,export:!1,server:!1},previousSelectedElementIds:{browser:!0,export:!1,server:!1},resizingElement:{browser:!1,export:!1,server:!1},scrolledOutside:{browser:!0,export:!1,server:!1},scrollX:{browser:!0,export:!1,server:!1},scrollY:{browser:!0,export:!1,server:!1},selectedElementIds:{browser:!0,export:!1,server:!1},selectedGroupIds:{browser:!0,export:!1,server:!1},selectedElementsAreBeingDragged:{browser:!1,export:!1,server:!1},selectionElement:{browser:!1,export:!1,server:!1},shouldCacheIgnoreZoom:{browser:!0,export:!1,server:!1},showStats:{browser:!0,export:!1,server:!1},startBoundElement:{browser:!1,export:!1,server:!1},suggestedBindings:{browser:!1,export:!1,server:!1},frameRendering:{browser:!1,export:!1,server:!1},frameToHighlight:{browser:!1,export:!1,server:!1},editingFrame:{browser:!1,export:!1,server:!1},elementsToHighlight:{browser:!1,export:!1,server:!1},toast:{browser:!1,export:!1,server:!1},viewBackgroundColor:{browser:!0,export:!0,server:!0},width:{browser:!1,export:!1,server:!1},zenModeEnabled:{browser:!0,export:!1,server:!1},zoom:{browser:!0,export:!1,server:!1},viewModeEnabled:{browser:!1,export:!1,server:!1},pendingImageElementId:{browser:!1,export:!1,server:!1},showHyperlinkPopup:{browser:!1,export:!1,server:!1},selectedLinearElement:{browser:!0,export:!1,server:!1},snapLines:{browser:!1,export:!1,server:!1},originSnapOffset:{browser:!1,export:!1,server:!1},objectsSnapModeEnabled:{browser:!0,export:!1,server:!1}},n=function(u,U){for(var le={},de=0,he=Object.keys(u);de<he.length;de++){var pe=he[de],oe=v[pe];if(oe!=null&&oe[U]){var P=u[pe];le[pe]=P}}return le},M=function(u){return n(u,"export")},Z=function(u){return n(u,"server")},H=function(u){return u.activeTool.type==="eraser"},W=function(u){return u.activeTool.type==="hand"}},901:function(Se,Q,e){e.d(Q,{dz:function(){return P},i$:function(){return de},ps:function(){return g}});var D=e(1930),E=e(7169),y=e(2577),h=e(9240),S=e(9937),I=e(7651),v=e(4643);function n(O,s){var f=typeof Symbol<"u"&&O[Symbol.iterator]||O["@@iterator"];if(!f){if(Array.isArray(O)||(f=function(m,z){if(m){if(typeof m=="string")return M(m,z);var j=Object.prototype.toString.call(m).slice(8,-1);if(j==="Object"&&m.constructor&&(j=m.constructor.name),j==="Map"||j==="Set")return Array.from(m);if(j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return M(m,z)}}(O))||s&&O&&typeof O.length=="number"){f&&(O=f);var t=0,w=function(){};return{s:w,n:function(){return t>=O.length?{done:!0}:{done:!1,value:O[t++]}},e:function(m){throw m},f:w}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,a=!0,c=!1;return{s:function(){f=f.call(O)},n:function(){var m=f.next();return a=m.done,m},e:function(m){c=!0,l=m},f:function(){try{a||f.return==null||f.return()}finally{if(c)throw l}}}}function M(O,s){(s==null||s>O.length)&&(s=O.length);for(var f=0,t=new Array(s);f<s;f++)t[f]=O[f];return t}function Z(O,s){var f=Object.keys(O);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(O);s&&(t=t.filter(function(w){return Object.getOwnPropertyDescriptor(O,w).enumerable})),f.push.apply(f,t)}return f}function H(O){for(var s=1;s<arguments.length;s++){var f=arguments[s]!=null?arguments[s]:{};s%2?Z(Object(f),!0).forEach(function(t){(0,E.Z)(O,t,f[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(f)):Z(Object(f)).forEach(function(t){Object.defineProperty(O,t,Object.getOwnPropertyDescriptor(f,t))})}return O}var W=32,u=12,U=256,le="NOT_SPREADSHEET",de="VALID_SPREADSHEET",he=function(O){var s=/^([-+]?)[$€£¥₩]?([-+]?)([\d.,]+)[%]?$/.exec(O);return s?parseFloat("".concat((s[1]||s[2])+s[3]).replace(/,/g,"")):null},pe=function(O,s){return O.slice(1).every(function(f){return he(f[s])!==null})},oe=function(O){var s=O[0].length;if(s>2)return{type:le,reason:"More than 2 columns"};if(s===1){if(!pe(O,0))return{type:le,reason:"Value is not numeric"};var f=he(O[0][0])===null,t=(f?O.slice(1):O).map(function(x){return he(x[0])});return t.length<2?{type:le,reason:"Less than two rows"}:{type:de,spreadsheet:{title:f?O[0][0]:null,labels:null,values:t}}}var w=pe(O,0),l=pe(O,1);if(!w&&!l)return{type:le,reason:"Value is not numeric"};var a=l?[0,1]:[1,0],c=(0,y.Z)(a,2),m=c[0],z=c[1],j=he(O[0][z])===null,k=j?O.slice(1):O;return k.length<2?{type:le,reason:"Less than 2 rows"}:{type:de,spreadsheet:{title:j?O[0][z]:null,labels:k.map(function(x){return x[m]}),values:k.map(function(x){return he(x[z])})}}},P=function(O){var s=O.trim().split(` +`).map(function(l){return l.trim().split(" ")});if(s.length&&s[0].length!==2&&(s=O.trim().split(` +`).map(function(l){return l.trim().split(",")})),s.length===0)return{type:le,reason:"No values"};var f=s[0].length;if(!s.every(function(l){return l.length===f}))return{type:le,reason:"All rows don't have same number of columns"};var t=oe(s);if(t.type!==de){var w=oe(function(l){for(var a=[],c=0;c<l[0].length;c++){for(var m=[],z=0;z<l.length;z++)m.push(l[z][c]);a.push(m)}return a}(s));if(w.type===de)return w}return t},$=(0,h.sF)(h.C2),b={fillStyle:"hachure",fontFamily:S.rk,fontSize:S.n5,opacity:100,roughness:1,strokeColor:h.HO.black,roundness:null,strokeStyle:"solid",strokeWidth:1,verticalAlign:S.oX.MIDDLE,locked:!1},R=function(O){return{chartWidth:44*O.values.length+u,chartHeight:280}},_=function(O,s,f,t,w,l){var a=R(O),c=a.chartWidth,m=a.chartHeight,z=O.title?(0,I.VL)(H(H({backgroundColor:w,groupIds:[t]},b),{},{text:O.title,x:s+c/2,y:f-U-24-S.n5,roundness:null,textAlign:"center"})):null,j=l?(0,I.Up)(H(H({backgroundColor:w,groupIds:[t]},b),{},{type:"rectangle",x:s,y:f-m,width:c,height:m,strokeColor:h.HO.black,fillStyle:"solid",opacity:6})):null;return[].concat((0,D.Z)(j?[j]:[]),(0,D.Z)(z?[z]:[]),(0,D.Z)(function(k,x,N,G,ie){var V;return((V=k.labels)===null||V===void 0?void 0:V.map(function(ce,te){return(0,I.VL)(H(H({groupIds:[G],backgroundColor:ie},b),{},{text:ce.length>8?"".concat(ce.slice(0,5),"..."):ce,x:x+44*te+24,y:N+6,width:W,angle:5.87,fontSize:16,textAlign:"center",verticalAlign:"top"}))}))||[]}(O,s,f,t,w)),(0,D.Z)(function(k,x,N,G,ie){var V=(0,I.VL)(H(H({groupIds:[G],backgroundColor:ie},b),{},{x:x-u,y:N-u,text:"0",textAlign:"right"}));return[V,(0,I.VL)(H(H({groupIds:[G],backgroundColor:ie},b),{},{x:x-u,y:N-U-V.height/2,text:Math.max.apply(Math,(0,D.Z)(k.values)).toLocaleString(),textAlign:"right"}))]}(O,s,f,t,w)),(0,D.Z)(function(k,x,N,G,ie){var V=R(k),ce=V.chartWidth,te=V.chartHeight;return[(0,I.y8)(H(H({backgroundColor:ie,groupIds:[G]},b),{},{type:"line",x,y:N,startArrowhead:null,endArrowhead:null,width:ce,points:[[0,0],[ce,0]]})),(0,I.y8)(H(H({backgroundColor:ie,groupIds:[G]},b),{},{type:"line",x,y:N,startArrowhead:null,endArrowhead:null,height:te,points:[[0,0],[0,-te]]})),(0,I.y8)(H(H({backgroundColor:ie,groupIds:[G]},b),{},{type:"line",x,y:N-U-u,startArrowhead:null,endArrowhead:null,strokeStyle:"dotted",width:ce,opacity:50,points:[[0,0],[ce,0]]}))]}(O,s,f,t,w)))},g=function(O,s,f,t){return O==="line"?function(w,l,a){var c,m=Math.max.apply(Math,(0,D.Z)(w.values)),z=(0,v.kb)(),j=$[Math.floor(Math.random()*$.length)],k=0,x=[],N=n(w.values);try{for(N.s();!(c=N.n()).done;){var G=c.value,ie=44*k,V=-G/m*U;x.push([ie,V]),k++}}catch(Te){N.e(Te)}finally{N.f()}var ce=Math.max.apply(Math,(0,D.Z)(x.map(function(Te){return Te[0]}))),te=Math.max.apply(Math,(0,D.Z)(x.map(function(Te){return Te[1]}))),L=Math.min.apply(Math,(0,D.Z)(x.map(function(Te){return Te[0]}))),re=Math.min.apply(Math,(0,D.Z)(x.map(function(Te){return Te[1]}))),me=(0,I.y8)(H(H({backgroundColor:j,groupIds:[z]},b),{},{type:"line",x:l+u+16,y:a-u,startArrowhead:null,endArrowhead:null,height:te-re,width:ce-L,strokeWidth:2,points:x})),Ce=w.values.map(function(Te,we){var xe=44*we+6,_e=-Te/m*U+6;return(0,I.Up)(H(H({backgroundColor:j,groupIds:[z]},b),{},{fillStyle:"solid",strokeWidth:2,type:"ellipse",x:l+xe+16,y:a+_e-24,width:u,height:u}))}),We=w.values.map(function(Te,we){var xe=44*we+6,_e=Te/m*U+6+u;return(0,I.y8)(H(H({backgroundColor:j,groupIds:[z]},b),{},{type:"line",x:l+xe+16+6,y:a-_e,startArrowhead:null,endArrowhead:null,height:_e,strokeStyle:"dotted",opacity:50,points:[[0,0],[0,_e]]}))});return[].concat((0,D.Z)(_(w,l,a,z,j,!1)),[me],(0,D.Z)(We),(0,D.Z)(Ce))}(s,f,t):function(w,l,a){var c=Math.max.apply(Math,(0,D.Z)(w.values)),m=(0,v.kb)(),z=$[Math.floor(Math.random()*$.length)],j=w.values.map(function(k,x){var N=k/c*U;return(0,I.Up)(H(H({backgroundColor:z,groupIds:[m]},b),{},{type:"rectangle",x:l+44*x+u,y:a-N-u,width:W,height:N}))});return[].concat((0,D.Z)(j),(0,D.Z)(_(w,l,a,m,z,!1)))}(s,f,t)}},957:function(Se,Q,e){e.d(Q,{G:function(){return D},l:function(){return E}});var D=function(y){var h=Math.abs(function(S){var I=0;if(S.length===0)return I;for(var v=0;v<S.length;v++)I=(I<<5)-I+S.charCodeAt(v);return I}(y));return"hsl(".concat(h%37*10,", ").concat(100,"%, ").concat(83,"%)")},E=function(y){var h,S=y==null||(h=y.trim())===null||h===void 0?void 0:h.codePointAt(0);return(S?String.fromCodePoint(S):"?").toUpperCase()}},4694:function(Se,Q,e){e.d(Q,{OO:function(){return oe},Se:function(){return g},dd:function(){return t},mQ:function(){return s},uR:function(){return f},vQ:function(){return $},vt:function(){return he},wx:function(){return de}});var D=e(7169),E=e(8950),y=e(2577),h=e(2975),S=e.n(h),I=e(901),v=e(9937),n=e(4183),M=e(5742),Z=e(583),H=e(4682),W=e(9827),u=e(8227);function U(l,a){var c=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!c){if(Array.isArray(l)||(c=function(N,G){if(N){if(typeof N=="string")return le(N,G);var ie=Object.prototype.toString.call(N).slice(8,-1);if(ie==="Object"&&N.constructor&&(ie=N.constructor.name),ie==="Map"||ie==="Set")return Array.from(N);if(ie==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie))return le(N,G)}}(l))||a&&l&&typeof l.length=="number"){c&&(l=c);var m=0,z=function(){};return{s:z,n:function(){return m>=l.length?{done:!0}:{done:!1,value:l[m++]}},e:function(N){throw N},f:z}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j,k=!0,x=!1;return{s:function(){c=c.call(l)},n:function(){var N=c.next();return k=N.done,N},e:function(N){x=!0,j=N},f:function(){try{k||c.return==null||c.return()}finally{if(x)throw j}}}}function le(l,a){(a==null||a>l.length)&&(a=l.length);for(var c=0,m=new Array(a);c<a;c++)m[c]=l[c];return m}var de="clipboard"in navigator&&"writeText"in navigator.clipboard,he="clipboard"in navigator&&"write"in navigator.clipboard&&"ClipboardItem"in window&&"toBlob"in HTMLCanvasElement.prototype,pe=function(l){return!(![v.r8.excalidraw,v.r8.excalidrawClipboard,v.r8.excalidrawClipboardWithAPI].includes(l?.type)||!Array.isArray(l.elements))},oe=function(l){var a=l.types,c=l.files;a||c||console.warn("createPasteEvent: no types or files provided");var m=new ClipboardEvent("paste",{clipboardData:new DataTransfer});if(a)for(var z=0,j=Object.entries(a);z<j.length;z++){var k=(0,y.Z)(j[z],2),x=k[0],N=k[1];try{var G,ie;if((G=m.clipboardData)===null||G===void 0||G.setData(x,N),((ie=m.clipboardData)===null||ie===void 0?void 0:ie.getData(x))!==N)throw new Error('Failed to set "'.concat(x,'" as clipboardData item'))}catch(Ce){throw new Error(Ce.message)}}if(c){var V,ce=-1,te=U(c);try{for(te.s();!(V=te.n()).done;){var L=V.value;ce++;try{var re,me;if((re=m.clipboardData)===null||re===void 0||re.items.add(L),((me=m.clipboardData)===null||me===void 0?void 0:me.files[ce])!==L)throw new Error('Failed to set file "'.concat(L.name,'" as clipboardData item'))}catch(Ce){throw new Error(Ce.message)}}}catch(Ce){te.e(Ce)}finally{te.f()}}return m},P=function(l){var a=l.elements,c=l.files,m=new Set(a.filter(function(x){return x.type==="frame"})),z=!1,j=a.reduce(function(x,N){return(0,n.wi)(N)&&(z=!0,c&&c[N.fileId]&&(x[N.fileId]=c[N.fileId])),x},{});z&&!c&&console.warn("copyToClipboard: attempting to file element(s) without providing associated `files` object.");var k={type:v.r8.excalidrawClipboard,elements:a.map(function(x){if((0,H.$Z)(x)&&!m.has((0,H.$Z)(x))){var N=(0,M.OL)(x);return(0,Z.DR)(N,{frameId:null}),N}return x}),files:c?j:void 0};return JSON.stringify(k)},$=function(){var l=(0,E.Z)(S().mark(function a(c,m,z){return S().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,t(P({elements:c,files:m}),z);case 2:case"end":return j.stop()}},a)}));return function(a,c,m){return l.apply(this,arguments)}}(),b=function(l){var a=(0,I.dz)(l);return a.type===I.i$?{spreadsheet:a.spreadsheet}:null};function R(l){var a,c=[],m=U(l.childNodes);try{for(m.s();!(a=m.n()).done;){var z=a.value;if(z.nodeType===3){var j,k=(j=z.textContent)===null||j===void 0?void 0:j.trim();k&&c.push({type:"text",value:k})}else if(z instanceof HTMLImageElement){var x=z.getAttribute("src");x&&x.startsWith("http")&&c.push({type:"imageUrl",value:x})}else c=c.concat(R(z))}}catch(N){m.e(N)}finally{m.f()}return c}var _=function(l){var a,c=(a=l.clipboardData)===null||a===void 0?void 0:a.getData("text/html");if(!c)return null;try{var m=R(new DOMParser().parseFromString(c,"text/html").body);if(m.length)return{type:"mixedContent",value:m}}catch(z){console.error("error in parseHTMLFromPaste: ".concat(z.message))}return null},g=function(){var l=(0,E.Z)(S().mark(function a(){var c,m,z,j,k,x,N,G,ie,V,ce,te;return S().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(c={},L.prev=1,(m=navigator.clipboard)===null||m===void 0||!m.readText){L.next=7;break}return L.next=5,(z=navigator.clipboard)===null||z===void 0?void 0:z.readText();case 5:return L.t0=L.sent,L.abrupt("return",{"text/plain":L.t0});case 7:L.next=16;break;case 9:if(L.prev=9,L.t1=L.catch(1),(j=navigator.clipboard)===null||j===void 0||!j.read){L.next=15;break}console.warn("navigator.clipboard.readText() failed (".concat(L.t1.message,"). Failling back to navigator.clipboard.read()")),L.next=16;break;case 15:throw L.t1;case 16:return L.prev=16,L.next=19,(x=navigator.clipboard)===null||x===void 0?void 0:x.read();case 19:k=L.sent,L.next=28;break;case 22:if(L.prev=22,L.t2=L.catch(16),L.t2.name!=="DataError"){L.next=27;break}return console.warn("navigator.clipboard.read() error, clipboard is probably empty: ".concat(L.t2.message)),L.abrupt("return",c);case 27:throw L.t2;case 28:N=U(k),L.prev=29,N.s();case 31:if((G=N.n()).done){L.next=63;break}ie=G.value,V=U(ie.types),L.prev=34,V.s();case 36:if((ce=V.n()).done){L.next=53;break}if(te=ce.value,(0,W.XF)(v.wL,te)){L.next=40;break}return L.abrupt("continue",51);case 40:return L.prev=40,L.next=43,ie.getType(te);case 43:return L.next=45,L.sent.text();case 45:c[te]=L.sent,L.next=51;break;case 48:L.prev=48,L.t3=L.catch(40),console.warn("Cannot retrieve ".concat(te," from clipboardItem: ").concat(L.t3.message));case 51:L.next=36;break;case 53:L.next=58;break;case 55:L.prev=55,L.t4=L.catch(34),V.e(L.t4);case 58:return L.prev=58,V.f(),L.finish(58);case 61:L.next=31;break;case 63:L.next=68;break;case 65:L.prev=65,L.t5=L.catch(29),N.e(L.t5);case 68:return L.prev=68,N.f(),L.finish(68);case 71:if(Object.keys(c).length!==0){L.next=74;break}return console.warn("No clipboard data found from clipboard.read()."),L.abrupt("return",c);case 74:return L.abrupt("return",c);case 75:case"end":return L.stop()}},a,null,[[1,9],[16,22],[29,65,68,71],[34,55,58,61],[40,48]])}));return function(){return l.apply(this,arguments)}}(),O=function(){var l=(0,E.Z)(S().mark(function a(c){var m,z,j,k,x,N=arguments;return S().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(m=N.length>1&&N[1]!==void 0&&N[1],G.prev=1,!(j=!m&&c&&_(c))){G.next=7;break}if(!j.value.every(function(ie){return ie.type==="text"})){G.next=6;break}return G.abrupt("return",{type:"text",value:((k=c.clipboardData)===null||k===void 0?void 0:k.getData("text/plain"))||j.value.map(function(ie){return ie.value}).join(` +`).trim()});case 6:return G.abrupt("return",j);case 7:return x=(z=c.clipboardData)===null||z===void 0?void 0:z.getData("text/plain"),G.abrupt("return",{type:"text",value:(x||"").trim()});case 11:return G.prev=11,G.t0=G.catch(1),G.abrupt("return",{type:"text",value:""});case 14:case"end":return G.stop()}},a,null,[[1,11]])}));return function(a){return l.apply(this,arguments)}}(),s=function(){var l=(0,E.Z)(S().mark(function a(c){var m,z,j,k,x,N=arguments;return S().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return m=N.length>1&&N[1]!==void 0&&N[1],G.next=3,O(c,m);case 3:if((z=G.sent).type!=="mixedContent"){G.next=6;break}return G.abrupt("return",{mixedContent:z.value});case 6:if(G.prev=6,!(j=!m&&b(z.value))){G.next=10;break}return G.abrupt("return",j);case 10:G.next=15;break;case 12:G.prev=12,G.t0=G.catch(6),console.error(G.t0);case 15:if(G.prev=15,k=JSON.parse(z.value),x=k.type===v.r8.excalidrawClipboardWithAPI,!pe(k)){G.next=20;break}return G.abrupt("return",{elements:k.elements,files:k.files,text:m?JSON.stringify(k.elements,null,2):void 0,programmaticAPI:x});case 20:G.next=24;break;case 22:G.prev=22,G.t1=G.catch(15);case 24:return G.abrupt("return",{text:z.value});case 25:case"end":return G.stop()}},a,null,[[6,12],[15,22]])}));return function(a){return l.apply(this,arguments)}}(),f=function(){var l=(0,E.Z)(S().mark(function a(c){return S().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.prev=0,m.next=3,navigator.clipboard.write([new window.ClipboardItem((0,D.Z)({},v.LO.png,c))]);case 3:case 21:m.next=24;break;case 5:if(m.prev=5,m.t0=m.catch(0),!(0,W.y8)(c)){m.next=23;break}return m.t1=navigator.clipboard,m.t2=window.ClipboardItem,m.t3=D.Z,m.t4={},m.t5=v.LO.png,m.next=15,c;case 15:return m.t6=m.sent,m.t7=(0,m.t3)(m.t4,m.t5,m.t6),m.t8=new m.t2(m.t7),m.t9=[m.t8],m.next=21,m.t1.write.call(m.t1,m.t9);case 23:throw m.t0;case 24:case"end":return m.stop()}},a,null,[[0,5]])}));return function(a){return l.apply(this,arguments)}}(),t=function(){var l=(0,E.Z)(S().mark(function a(c,m){var z,j;return S().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(!de){k.next=10;break}return k.prev=1,k.next=4,navigator.clipboard.writeText(c||"");case 4:return k.abrupt("return");case 7:k.prev=7,k.t0=k.catch(1),console.error(k.t0);case 10:if(k.prev=10,!m){k.next=16;break}if((z=m.clipboardData)===null||z===void 0||z.setData("text/plain",c||""),((j=m.clipboardData)===null||j===void 0?void 0:j.getData("text/plain"))===c){k.next=15;break}throw new Error("Failed to setData on clipboardEvent");case 15:return k.abrupt("return");case 16:k.next=21;break;case 18:k.prev=18,k.t1=k.catch(10),console.error(k.t1);case 21:if(w(c)){k.next=23;break}throw new Error((0,u.t)("errors.copyToSystemClipboardFailed"));case 23:case"end":return k.stop()}},a,null,[[1,7],[10,18]])}));return function(a,c){return l.apply(this,arguments)}}(),w=function(l){l||(l=" ");var a=document.documentElement.getAttribute("dir")==="rtl",c=document.createElement("textarea");c.style.border="0",c.style.padding="0",c.style.margin="0",c.style.position="absolute",c.style[a?"right":"left"]="-9999px";var m=window.pageYOffset||document.documentElement.scrollTop;c.style.top="".concat(m,"px"),c.style.fontSize="12pt",c.setAttribute("readonly",""),c.value=l,document.body.appendChild(c);var z=!1;try{c.select(),c.setSelectionRange(0,c.value.length),z=document.execCommand("copy")}catch(j){console.error(j)}return c.remove(),z}},9240:function(Se,Q,e){e.d(Q,{C2:function(){return n},HO:function(){return u},Lx:function(){return I},SF:function(){return oe},Wk:function(){return pe},_T:function(){return Z},ay:function(){return he},dC:function(){return v},eq:function(){return de},fY:function(){return le},sF:function(){return P},vq:function(){return $},z8:function(){return M}});var D=e(7169),E=e(5284);function y(b,R){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(b);R&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(b,O).enumerable})),_.push.apply(_,g)}return _}function h(b){for(var R=1;R<arguments.length;R++){var _=arguments[R]!=null?arguments[R]:{};R%2?y(Object(_),!0).forEach(function(g){(0,D.Z)(b,g,_[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(_)):y(Object(_)).forEach(function(g){Object.defineProperty(b,g,Object.getOwnPropertyDescriptor(_,g))})}return b}var S,I=5,v=5,n=4,M=4,Z=1,H=[0,2,4,6,8],W=function(b,R){return R.map(function(_){return E[b][_]})},u={transparent:"transparent",black:"#1e1e1e",white:"#ffffff",gray:W("gray",H),red:W("red",H),pink:W("pink",H),grape:W("grape",H),violet:W("violet",H),blue:W("blue",H),cyan:W("cyan",H),teal:W("teal",H),green:W("green",H),yellow:W("yellow",H),orange:W("orange",H),bronze:["#f8f1ee","#eaddd7","#d2bab0","#a18072","#846358"]},U=(S=u,["cyan","blue","violet","grape","pink","green","teal","yellow","orange","red"].reduce(function(b,R){return R in S&&(b[R]=S[R]),b},{})),le=[u.black,u.red[M],u.green[M],u.blue[M],u.yellow[M]],de=[u.transparent,u.red[Z],u.green[Z],u.blue[Z],u.yellow[Z]],he=[u.white,"#f8f9fa","#f5faff","#fffce8","#fdf8f6"],pe=h({transparent:u.transparent,white:u.white,gray:u.gray,black:u.black,bronze:u.bronze},U),oe=h({transparent:u.transparent,white:u.white,gray:u.gray,black:u.black,bronze:u.bronze},U),P=function(b){return[u.cyan[b],u.blue[b],u.violet[b],u.grape[b],u.pink[b],u.green[b],u.teal[b],u.yellow[b],u.orange[b],u.red[b]]},$=function(b,R,_){return"#".concat(((1<<24)+(b<<16)+(R<<8)+_).toString(16).slice(1))}},8973:function(Se,Q,e){e.d(Q,{o:function(){return Z},w:function(){return M}});var D=e(2577),E=e(3607),y=e(5463),h=e(8227),S=e(453),I=e(8242),v=e(6887),n=e(1020),M=(0,E.cn)(null),Z=function(){var H=(0,E.KO)(M,S.yE),W=(0,D.Z)(H,2),u=W[0],U=W[1],le=(0,I.eh)();return u&&u==="clearCanvas"?(0,n.jsx)(v.Z,{onConfirm:function(){le.executeAction(y.mo),U(null)},onCancel:function(){return U(null)},title:(0,h.t)("clearCanvasDialog.title"),children:(0,n.jsxs)("p",{className:"clear-canvas__content",children:[" ",(0,h.t)("alerts.clearReset")]})}):null}},8242:function(Se,Q,e){e.d(Q,{ZP:function(){return rl},qD:function(){return Ci},hY:function(){return Gi},Fy:function(){return ri},eh:function(){return Mi},gF:function(){return Vi},J0:function(){return Ii},bd:function(){return Yi},n9:function(){return Xi}});var D=e(6655),E=e(2577),y=e(1930),h=e(8950),S=e(8821),I=e(5169),v=e(3173),n=e(2248),M=e(7245),Z=e(2312),H=e(7169),W=e(2975),u=e.n(W),U=e(9787),le=e.n(U),de=e(5156),he=e(9845),pe=e(45),oe=e(5605),P=e(5463),$=e(8935),b=e(1512),R=e(8227),_=e(5491),g=e(583),O=e(9645),s=e(9827),f=e(9937),t=e(1020);function w(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function l(r){for(var d=1;d<arguments.length;d++){var C=arguments[d]!=null?arguments[d]:{};d%2?w(Object(C),!0).forEach(function(K){(0,H.Z)(r,K,C[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(C)):w(Object(C)).forEach(function(K){Object.defineProperty(r,K,Object.getOwnPropertyDescriptor(C,K))})}return r}var a=function(r,d,C){var K=!1;if(!(d.multiElement||d.resizingElement||d.editingElement||d.draggingElement)){var ae=C();if(ae===null)return{commitToHistory:K};var ye=(0,s.xn)(r),F=ae.elements,T=(0,s.xn)(F),fe=r.filter(function(je){return!T.has(je.id)}),Me=F.map(function(je){return(0,g.BE)(ye.get(je.id)||je,je)}).concat(fe.map(function(je){return(0,g.BE)(je,{isDeleted:!0})}));return(0,O.$q)(Me,fe),{elements:Me,appState:l(l({},d),ae.appState),commitToHistory:K,syncHistory:!0}}return{commitToHistory:K}},c=e(3646),m=function(r,d,C,K,ae,ye){if(r.trackEvent)try{(0,D.Z)(r.trackEvent)==="object"&&(!r.trackEvent.predicate||r.trackEvent.predicate(C,K,ye))&&(0,c.L)(r.trackEvent.category,r.trackEvent.action||r.name,"".concat(d," (").concat(ae.device.editor.isMobile?"mobile":"desktop",")"))}catch(F){console.error("error while logging action:",F)}},z=function(){function r(d,C,K,ae){var ye=this;(0,S.Z)(this,r),this.actions={},this.renderAction=function(F,T){var fe=ye.app.props.UIOptions.canvasActions;if(ye.actions[F]&&"PanelComponent"in ye.actions[F]&&(!(F in fe)||fe[F])){var Me=ye.actions[F],je=Me.PanelComponent;je.displayName="PanelComponent";var Fe=ye.getElementsIncludingDeleted(),Ue=ye.getAppState();return(0,t.jsx)(je,{elements:ye.getElementsIncludingDeleted(),appState:ye.getAppState(),updateData:function(Ge){m(Me,"ui",Ue,Fe,ye.app,Ge),ye.updater(Me.perform(ye.getElementsIncludingDeleted(),ye.getAppState(),Ge,ye.app))},appProps:ye.app.props,app:ye.app,data:T})}return null},this.isActionEnabled=function(F){var T=ye.getElementsIncludingDeleted(),fe=ye.getAppState();return!F.predicate||F.predicate(T,fe,ye.app.props,ye.app)},this.updater=function(F){if(!F||!("then"in F))return d(F);F.then(function(T){return d(T)})},this.getAppState=C,this.getElementsIncludingDeleted=K,this.app=ae}return(0,I.Z)(r,[{key:"registerAction",value:function(d){this.actions[d.name]=d}},{key:"registerAll",value:function(d){var C=this;d.forEach(function(K){return C.registerAction(K)})}},{key:"handleKeyDown",value:function(d){var C=this,K=this.app.props.UIOptions.canvasActions,ae=Object.values(this.actions).sort(function(fe,Me){return(Me.keyPriority||0)-(fe.keyPriority||0)}).filter(function(fe){return(!(fe.name in K)||K[fe.name])&&fe.keyTest&&fe.keyTest(d,C.getAppState(),C.getElementsIncludingDeleted(),C.app)});if(ae.length!==1)return ae.length>1&&console.warn("Canceling as multiple actions match this shortcut",ae),!1;var ye=ae[0];if(this.getAppState().viewModeEnabled&&ye.viewMode!==!0)return!1;var F=this.getElementsIncludingDeleted(),T=this.getAppState();return m(ye,"keyboard",T,F,this.app,null),d.preventDefault(),d.stopPropagation(),this.updater(ae[0].perform(F,T,null,this.app)),!0}},{key:"executeAction",value:function(d){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"api",K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ae=this.getElementsIncludingDeleted(),ye=this.getAppState();m(d,C,ye,ae,this.app,K),this.updater(d.perform(ae,ye,K,this.app))}}]),r}(),j=e(2767),k=e(6853),x=e(4694),N=e(2435),G=e(9326),ie=e(7994),V=e(7651),ce=e(7422),te=e(5742),L=e(4183),re=function(r){var d=Array.from(r.values());return{x:Ce(d,function(C){return C.x})/d.length,y:Ce(d,function(C){return C.y})/d.length}},me=function(r){var d=(0,E.Z)(r,2),C=d[0],K=d[1];return Math.hypot(C.x-K.x,C.y-K.y)},Ce=function(r,d){return r.reduce(function(C,K){return C+d(K)},0)},We=e(9215);function Te(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function we(r){for(var d=1;d<arguments.length;d++){var C=arguments[d]!=null?arguments[d]:{};d%2?Te(Object(C),!0).forEach(function(K){(0,H.Z)(r,K,C[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(C)):Te(Object(C)).forEach(function(K){Object.defineProperty(r,K,Object.getOwnPropertyDescriptor(C,K))})}return r}var xe=function(r){return{selectedElementIds:r.selectedElementIds,selectedGroupIds:r.selectedGroupIds,viewBackgroundColor:r.viewBackgroundColor,editingLinearElement:r.editingLinearElement,editingGroupId:r.editingGroupId,name:r.name}},_e=function(){function r(){var d=this;(0,S.Z)(this,r),this.elementCache=new Map,this.recording=!0,this.stateHistory=[],this.redoStack=[],this.lastEntry=null,this.generateEntry=function(C,K){return d.dehydrateHistoryEntry({appState:xe(C),elements:K.reduce(function(ae,ye){if((0,L.bt)(ye)&&C.multiElement&&C.multiElement.id===ye.id){if(C.multiElement&&C.multiElement.id===ye.id&&ye.points.length<2)return ae;ae.push(we(we({},ye),{},{points:ye.lastCommittedPoint!==ye.points[ye.points.length-1]?ye.points.slice(0,-1):ye.points}))}else ae.push(ye);return ae},[])})}}return(0,I.Z)(r,[{key:"hydrateHistoryEntry",value:function(d){var C=this,K=d.appState,ae=d.elements;return{appState:JSON.parse(K),elements:ae.map(function(ye){var F,T=(F=C.elementCache.get(ye.id))===null||F===void 0?void 0:F.get(ye.versionNonce);if(!T)throw new Error("Element not found: ".concat(ye.id,":").concat(ye.versionNonce));return T})}}},{key:"dehydrateHistoryEntry",value:function(d){var C=this,K=d.appState,ae=d.elements;return{appState:JSON.stringify(K),elements:ae.map(function(ye){C.elementCache.has(ye.id)||C.elementCache.set(ye.id,new Map);var F=C.elementCache.get(ye.id);return F.has(ye.versionNonce)||F.set(ye.versionNonce,(0,te.OL)(ye)),{id:ye.id,versionNonce:ye.versionNonce}})}}},{key:"getSnapshotForTest",value:function(){var d=this;return{recording:this.recording,stateHistory:this.stateHistory.map(function(C){return d.hydrateHistoryEntry(C)}),redoStack:this.redoStack.map(function(C){return d.hydrateHistoryEntry(C)})}}},{key:"clear",value:function(){this.stateHistory.length=0,this.redoStack.length=0,this.lastEntry=null,this.elementCache.clear()}},{key:"shouldCreateEntry",value:function(d){var C,K=this.lastEntry;if(!K||d.elements.length!==K.elements.length)return!0;for(var ae=d.elements.length-1;ae>-1;ae--){var ye=d.elements[ae],F=K.elements[ae];if(!ye||!F||ye.id!==F.id||ye.versionNonce!==F.versionNonce)return!0}for(C in d.appState){var T,fe;if(!(C==="editingLinearElement"&&((T=d.appState[C])===null||T===void 0?void 0:T.elementId)===((fe=K.appState[C])===null||fe===void 0?void 0:fe.elementId))&&C!=="selectedElementIds"&&C!=="selectedGroupIds"&&d.appState[C]!==K.appState[C])return!0}return!1}},{key:"pushEntry",value:function(d,C){var K=this.generateEntry(d,C),ae=this.hydrateHistoryEntry(K);if(ae){if(!this.shouldCreateEntry(ae))return;this.stateHistory.push(K),this.lastEntry=ae,this.clearRedoStack()}}},{key:"clearRedoStack",value:function(){this.redoStack.splice(0,this.redoStack.length)}},{key:"redoOnce",value:function(){if(this.redoStack.length===0)return null;var d=this.redoStack.pop();return d!==void 0?(this.stateHistory.push(d),this.hydrateHistoryEntry(d)):null}},{key:"undoOnce",value:function(){if(this.stateHistory.length===1)return null;var d=this.stateHistory.pop(),C=this.stateHistory[this.stateHistory.length-1];return d!==void 0?(this.redoStack.push(d),this.hydrateHistoryEntry(C)):null}},{key:"setCurrentState",value:function(d,C){this.lastEntry=this.hydrateHistoryEntry(this.generateEntry(d,C))}},{key:"resumeRecording",value:function(){this.recording=!0}},{key:"record",value:function(d,C){this.recording&&(this.pushEntry(d,C),this.recording=!1)}}]),r}(),Oe=e(7935),J=e(2361),ke=e(4105),q=e(457),o=e(4116),i=[{icon:$.zu,value:"selection",key:_.tW.V,numericKey:_.tW[1],fillable:!0},{icon:$.OW,value:"rectangle",key:_.tW.R,numericKey:_.tW[2],fillable:!0},{icon:$.nb,value:"diamond",key:_.tW.D,numericKey:_.tW[3],fillable:!0},{icon:$.Re,value:"ellipse",key:_.tW.O,numericKey:_.tW[4],fillable:!0},{icon:$.e0,value:"arrow",key:_.tW.A,numericKey:_.tW[5],fillable:!0},{icon:$.zb,value:"line",key:_.tW.L,numericKey:_.tW[6],fillable:!0},{icon:$.Pm,value:"freedraw",key:[_.tW.P,_.tW.X],numericKey:_.tW[7],fillable:!1},{icon:$.VL,value:"text",key:_.tW.T,numericKey:_.tW[8],fillable:!1},{icon:$.XB,value:"image",key:null,numericKey:_.tW[9],fillable:!1},{icon:$.$q,value:"eraser",key:_.tW.E,numericKey:_.tW[0],fillable:!1}],p=e(761),B=e(3204),A=e(3379),X=e.n(A),Y=e(7795),ee=e.n(Y),ge=e(569),be=e.n(ge),Re=e(3565),Ze=e.n(Re),Be=e(9216),Ie=e.n(Be),Ke=e(4589),Ye=e.n(Ke),tt=e(6578),ue={};ue.styleTagTransform=Ye(),ue.setAttributes=Ze(),ue.insert=be().bind(null,"head"),ue.domAPI=ee(),ue.insertStyleElement=Ie(),X()(tt.Z,ue),tt.Z&&tt.Z.locals&&tt.Z.locals;var ve=e(2529),De="separator",He=le().memo(function(r){var d=r.actionManager,C=r.items,K=r.top,ae=r.left,ye=r.onClose,F=Vi(),T=Yi(),fe=C.reduce(function(Me,je){return!je||je!==De&&je.predicate&&!je.predicate(T,F,d.app.props,d.app)||Me.push(je),Me},[]);return(0,t.jsx)(B.J,{onCloseRequest:function(){ye()},top:K,left:ae,fitInViewport:!0,offsetLeft:F.offsetLeft,offsetTop:F.offsetTop,viewportWidth:F.width,viewportHeight:F.height,children:(0,t.jsx)("ul",{className:"context-menu",onContextMenu:function(Me){return Me.preventDefault()},children:fe.map(function(Me,je){var Fe;if(Me===De)return fe[je-1]&&fe[je-1]!==De?(0,t.jsx)("hr",{className:"context-menu-item-separator"},je):null;var Ue=Me.name,Ge="";return Me.contextItemLabel&&(Ge=typeof Me.contextItemLabel=="function"?(0,R.t)(Me.contextItemLabel(T,F,d.app)):(0,R.t)(Me.contextItemLabel)),(0,t.jsx)("li",{"data-testid":Ue,onClick:function(){ye(function(){d.executeAction(Me,"contextMenu")})},children:(0,t.jsxs)("button",{className:(0,pe.Z)("context-menu-item",{dangerous:Ue==="deleteSelectedElements",checkmark:(Fe=Me.checked)===null||Fe===void 0?void 0:Fe.call(Me,F)}),children:[(0,t.jsx)("div",{className:"context-menu-item__label",children:Ge}),(0,t.jsx)("kbd",{className:"context-menu-item__shortcut",children:Ue?(0,ve.C)(Ue):""})]})},je)})})})}),Je=e(2726),qe=e(2540),st=e(1648),ht=e(8925),et=e(4761),wt=e(6086),Lt={};Lt.styleTagTransform=Ye(),Lt.setAttributes=Ze(),Lt.insert=be().bind(null,"head"),Lt.domAPI=ee(),Lt.insertStyleElement=Ie(),X()(wt.Z,Lt),wt.Z&&wt.Z.locals&&wt.Z.locals;var St=e(7104);function yt(r,d){var C=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!C){if(Array.isArray(r)||(C=function(fe,Me){if(fe){if(typeof fe=="string")return Wt(fe,Me);var je=Object.prototype.toString.call(fe).slice(8,-1);if(je==="Object"&&fe.constructor&&(je=fe.constructor.name),je==="Map"||je==="Set")return Array.from(fe);if(je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je))return Wt(fe,Me)}}(r))||d&&r&&typeof r.length=="number"){C&&(r=C);var K=0,ae=function(){};return{s:ae,n:function(){return K>=r.length?{done:!0}:{done:!1,value:r[K++]}},e:function(fe){throw fe},f:ae}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ye,F=!0,T=!1;return{s:function(){C=C.call(r)},n:function(){var fe=C.next();return F=fe.done,fe},e:function(fe){T=!0,ye=fe},f:function(){try{F||C.return==null||C.return()}finally{if(T)throw ye}}}}function Wt(r,d){(d==null||d>r.length)&&(d=r.length);for(var C=0,K=new Array(d);C<d;C++)K[C]=r[C];return K}var Ft=function(r){var d,C=r.appState,K=r.elements,ae=r.renderAction,ye=(0,ke.Zs)((0,V.Lm)(K),C),F=!1;ye.length===2&&((0,L.Xo)(ye[0])||(0,L.Xo)(ye[1]))&&(F=!0);var T,fe=!!C.editingElement,Me=ri(),je=document.documentElement.getAttribute("dir")==="rtl",Fe=(0,ke.$b)(C.activeTool.type)&&!(0,s.Qm)(C.currentItemBackgroundColor)||ye.some(function(lt){return(0,ke.$b)(lt.type)&&!(0,s.Qm)(lt.backgroundColor)}),Ue=(0,ke.$b)(C.activeTool.type)||ye.some(function(lt){return(0,ke.$b)(lt.type)}),Ge=ye.length===1||F,rt=((d=ye[0])===null||d===void 0?void 0:d.type)||null,it=yt(ye);try{for(it.s();!(T=it.n()).done;)if(T.value.type!==rt){rt=null;break}}catch(lt){it.e(lt)}finally{it.f()}return(0,t.jsxs)("div",{className:"panelColumn",children:[(0,t.jsx)("div",{children:((0,st.PD)(C.activeTool.type)&&C.activeTool.type!=="image"&&rt!=="image"&&rt!=="frame"||ye.some(function(lt){return(0,st.PD)(lt.type)}))&&ae("changeStrokeColor")}),Ue&&(0,t.jsx)("div",{children:ae("changeBackgroundColor")}),Fe&&ae("changeFillStyle"),((0,ke.Zd)(C.activeTool.type)||ye.some(function(lt){return(0,ke.Zd)(lt.type)}))&&ae("changeStrokeWidth"),(C.activeTool.type==="freedraw"||ye.some(function(lt){return lt.type==="freedraw"}))&&ae("changeStrokeShape"),((0,ke.M9)(C.activeTool.type)||ye.some(function(lt){return(0,ke.M9)(lt.type)}))&&(0,t.jsxs)(t.Fragment,{children:[ae("changeStrokeStyle"),ae("changeSloppiness")]}),((0,ke.sh)(C.activeTool.type)||ye.some(function(lt){return(0,ke.sh)(lt.type)}))&&(0,t.jsx)(t.Fragment,{children:ae("changeRoundness")}),(C.activeTool.type==="text"||ye.some(L.iB))&&(0,t.jsxs)(t.Fragment,{children:[ae("changeFontSize"),ae("changeFontFamily"),(C.activeTool.type==="text"||(0,et.aV)(ye))&&ae("changeTextAlign")]}),(0,et.cn)(ye)&&ae("changeVerticalAlign"),((0,ke.Un)(C.activeTool.type)||ye.some(function(lt){return(0,ke.Un)(lt.type)}))&&(0,t.jsx)(t.Fragment,{children:ae("changeArrowhead")}),ae("changeOpacity"),(0,t.jsxs)("fieldset",{children:[(0,t.jsx)("legend",{children:(0,R.t)("labels.layers")}),(0,t.jsxs)("div",{className:"buttonList",children:[ae("sendToBack"),ae("sendBackward"),ae("bringToFront"),ae("bringForward")]})]}),ye.length>1&&!F&&(0,t.jsxs)("fieldset",{children:[(0,t.jsx)("legend",{children:(0,R.t)("labels.align")}),(0,t.jsxs)("div",{className:"buttonList",children:[je?(0,t.jsxs)(t.Fragment,{children:[ae("alignRight"),ae("alignHorizontallyCentered"),ae("alignLeft")]}):(0,t.jsxs)(t.Fragment,{children:[ae("alignLeft"),ae("alignHorizontallyCentered"),ae("alignRight")]}),ye.length>2&&ae("distributeHorizontally"),(0,t.jsx)("div",{style:{flexBasis:"100%",height:0}}),(0,t.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:".5rem",marginTop:"-0.5rem"},children:[ae("alignTop"),ae("alignVerticallyCentered"),ae("alignBottom"),ye.length>2&&ae("distributeVertically")]})]})]}),!fe&&ye.length>0&&(0,t.jsxs)("fieldset",{children:[(0,t.jsx)("legend",{children:(0,R.t)("labels.actions")}),(0,t.jsxs)("div",{className:"buttonList",children:[!Me.editor.isMobile&&ae("duplicateSelection"),!Me.editor.isMobile&&ae("deleteSelectedElements"),ae("group"),ae("ungroup"),Ge&&ae("hyperlink")]})]})]})},Ve=function(r){var d=r.activeTool,C=r.appState,K=r.app,ae=r.UIOptions,ye=(0,U.useState)(!1),F=(0,E.Z)(ye,2),T=F[0],fe=F[1],Me=d.type==="frame",je=d.type==="laser",Fe=d.type==="embeddable";return(0,t.jsxs)(t.Fragment,{children:[i.map(function(Ue,Ge){var rt,it=Ue.value,lt=Ue.icon,Yt=Ue.key,jt=Ue.numericKey,ct=Ue.fillable;if(((rt=ae.tools)===null||rt===void 0?void 0:rt[it])===!1)return null;var xt=(0,R.t)("toolBar.".concat(it)),Mt=Yt&&(0,s.Oo)(typeof Yt=="string"?Yt:Yt[0]),Vt=Mt?"".concat(Mt," ").concat((0,R.t)("helpDialog.or")," ").concat(jt):"".concat(jt);return(0,t.jsx)(b.V,{className:(0,pe.Z)("Shape",{fillable:ct}),type:"radio",icon:lt,checked:d.type===it,name:"editor-current-shape",title:"".concat((0,s.Oo)(xt)," — ").concat(Vt),keyBindingLabel:jt||Mt,"aria-label":(0,s.Oo)(xt),"aria-keyshortcuts":Vt,"data-testid":"toolbar-".concat(it),onPointerDown:function(Ht){var Tt=Ht.pointerType;C.penDetected||Tt!=="pen"||K.togglePenMode(!0)},onChange:function(Ht){var Tt=Ht.pointerType;C.activeTool.type!==it&&(0,c.L)("toolbar",it,"ui"),it==="image"?K.setActiveTool({type:it,insertOnCanvasDirectly:Tt!=="mouse"}):K.setActiveTool({type:it})}},it)}),(0,t.jsx)("div",{className:"App-toolbar__divider"}),(0,t.jsxs)(St.Z,{open:T,children:[(0,t.jsx)(St.Z.Trigger,{className:(0,pe.Z)("App-toolbar__extra-tools-trigger",{"App-toolbar__extra-tools-trigger--selected":Me||Fe||je&&!K.props.isCollaborating}),onToggle:function(){return fe(!T)},title:(0,R.t)("toolBar.extraTools"),children:$.dg}),(0,t.jsxs)(St.Z.Content,{onClickOutside:function(){return fe(!1)},onSelect:function(){return fe(!1)},className:"App-toolbar__extra-tools-dropdown",children:[(0,t.jsx)(St.Z.Item,{onSelect:function(){return K.setActiveTool({type:"frame"})},icon:$.zl,shortcut:_.tW.F.toLocaleUpperCase(),"data-testid":"toolbar-frame",selected:Me,children:(0,R.t)("toolBar.frame")}),(0,t.jsx)(St.Z.Item,{onSelect:function(){return K.setActiveTool({type:"embeddable"})},icon:$.FL,"data-testid":"toolbar-embeddable",selected:Fe,children:(0,R.t)("toolBar.embeddable")}),(0,t.jsx)(St.Z.Item,{onSelect:function(){return K.setActiveTool({type:"laser"})},icon:$.d,"data-testid":"toolbar-laser",selected:je,shortcut:_.tW.K.toLocaleUpperCase(),children:(0,R.t)("toolBar.laser")}),(0,t.jsx)(St.Z.Item,{onSelect:function(){return K.setOpenDialog("mermaid")},icon:$.II,"data-testid":"toolbar-embeddable",children:(0,R.t)("toolBar.mermaidToExcalidraw")})]})]})]})},bt=function(r){var d=r.renderAction;return r.zoom,(0,t.jsx)(qe.Z.Col,{gap:1,className:"zoom-actions",children:(0,t.jsxs)(qe.Z.Row,{align:"center",children:[d("zoomOut"),d("resetZoom"),d("zoomIn")]})})},at=function(r){var d=r.renderAction,C=r.className;return(0,t.jsxs)("div",{className:"undo-redo-buttons ".concat(C),children:[(0,t.jsx)("div",{className:"undo-button-container",children:(0,t.jsx)(ht.u,{label:(0,R.t)("buttons.undo"),children:d("undo")})}),(0,t.jsx)("div",{className:"redo-button-container",children:(0,t.jsxs)(ht.u,{label:(0,R.t)("buttons.redo"),children:[" ",d("redo")]})})]})},mt=function(r){var d=r.actionManager,C=r.showExitZenModeBtn;return(0,t.jsx)("button",{className:(0,pe.Z)("disable-zen-mode",{"disable-zen-mode--visible":C}),onClick:function(){return d.executeAction(P.JN)},children:(0,R.t)("buttons.exitZenMode")})},ut=function(r){var d=r.renderAction,C=r.className;return(0,t.jsx)("div",{className:"finalize-button ".concat(C),children:d("finalize",{size:"small"})})},Ot=e(1300),Pt=function(r){var d=r.children,C=r.onClose,K=(0,U.useState)(!!d),ae=(0,E.Z)(K,2),ye=ae[0],F=ae[1],T=Ii().container,fe=le().useCallback(function(){F(!1),C&&C(),T?.focus()},[C,T]);return(0,t.jsx)(t.Fragment,{children:ye&&(0,t.jsx)(Ot.V,{size:"small",onCloseRequest:fe,title:(0,R.t)("errorDialog.title"),children:(0,t.jsx)("div",{style:{whiteSpace:"pre-wrap"},children:d})})})},Gt=e(4406),Ct=e(5796),ur=e(6548),rr=e(507),Tr=e(6217),ot={};ot.styleTagTransform=Ye(),ot.setAttributes=Ze(),ot.insert=be().bind(null,"head"),ot.domAPI=ee(),ot.insertStyleElement=Ie(),X()(Tr.Z,ot),Tr.Z&&Tr.Z.locals&&Tr.Z.locals;var Rt=function(r){var d=r.onChange,C=r.value,K=r.choices,ae=r.name;return(0,t.jsx)("div",{className:"RadioGroup",children:K.map(function(ye){return(0,t.jsxs)("div",{className:(0,pe.Z)("RadioGroup__choice",{active:ye.value===C}),children:[(0,t.jsx)("input",{name:ae,type:"radio",checked:ye.value===C,onChange:function(){return d(ye.value)}}),ye.label]},ye.label)})})},_t=e(7802),At={};At.styleTagTransform=Ye(),At.setAttributes=Ze(),At.insert=be().bind(null,"head"),At.domAPI=ee(),At.insertStyleElement=Ie(),X()(_t.Z,At),_t.Z&&_t.Z.locals&&_t.Z.locals;var br=function(r){var d=r.title,C=r.name,K=r.checked,ae=r.onChange,ye=r.disabled,F=ye!==void 0&&ye;return(0,t.jsx)("div",{className:(0,pe.Z)("Switch",{toggled:K,disabled:F}),children:(0,t.jsx)("input",{name:C,id:C,title:d,type:"checkbox",checked:K,disabled:F,onChange:function(){return ae(!K)},onKeyDown:function(T){T.key===" "&&ae(!K)}})})},xr=e(9706),jr={};jr.styleTagTransform=Ye(),jr.setAttributes=Ze(),jr.insert=be().bind(null,"head"),jr.domAPI=ee(),jr.insertStyleElement=Ie(),X()(xr.Z,jr),xr.Z&&xr.Z.locals&&xr.Z.locals;var Ar=e(8960),fr={};fr.styleTagTransform=Ye(),fr.setAttributes=Ze(),fr.insert=be().bind(null,"head"),fr.domAPI=ee(),fr.insertStyleElement=Ie(),X()(Ar.Z,fr),Ar.Z&&Ar.Z.locals&&Ar.Z.locals;var dt=(0,U.forwardRef)(function(r,d){var C=r.children,K=r.startIcon,ae=r.onClick,ye=r.label,F=r.variant,T=F===void 0?"filled":F,fe=r.color,Me=fe===void 0?"primary":fe,je=r.size,Fe=je===void 0?"medium":je,Ue=r.fullWidth,Ge=r.className;return(0,t.jsxs)("button",{className:(0,pe.Z)("ExcButton","ExcButton--color-".concat(Me),"ExcButton--variant-".concat(T),"ExcButton--size-".concat(Fe),{"ExcButton--fullWidth":Ue},Ge),onClick:ae,type:"button","aria-label":ye,ref:d,children:[K&&(0,t.jsx)("div",{className:"ExcButton__icon","aria-hidden":!0,children:K}),T!=="icon"&&(C??ye)]})});function ft(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function vt(r){for(var d=1;d<arguments.length;d++){var C=arguments[d]!=null?arguments[d]:{};d%2?ft(Object(C),!0).forEach(function(K){(0,H.Z)(r,K,C[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(C)):ft(Object(C)).forEach(function(K){Object.defineProperty(r,K,Object.getOwnPropertyDescriptor(C,K))})}return r}var Et="filter"in document.createElement("canvas").getContext("2d"),tr=function(){return(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{children:(0,R.t)("canvasError.cannotShowPreview")}),(0,t.jsx)("p",{children:(0,t.jsx)("span",{children:(0,R.t)("canvasError.canvasTooBig")})}),(0,t.jsxs)("em",{children:["(",(0,R.t)("canvasError.canvasTooBigTip"),")"]})]})},ir=function(r){var d=r.appStateSnapshot,C=r.elementsSnapshot,K=r.files,ae=r.actionManager,ye=r.onExportImage,F=(0,ke.N)(C,d),T=Gi(),fe=(0,U.useState)(d.name),Me=(0,E.Z)(fe,2),je=Me[0],Fe=Me[1],Ue=(0,U.useState)(F),Ge=(0,E.Z)(Ue,2),rt=Ge[0],it=Ge[1],lt=(0,U.useState)(d.exportBackground),Yt=(0,E.Z)(lt,2),jt=Yt[0],ct=Yt[1],xt=(0,U.useState)(d.exportWithDarkMode),Mt=(0,E.Z)(xt,2),Vt=Mt[0],Ht=Mt[1],Tt=(0,U.useState)(d.exportEmbedScene),Kt=(0,E.Z)(Tt,2),hr=Kt[0],Mr=Kt[1],Nr=(0,U.useState)(d.exportScale),Kr=(0,E.Z)(Nr,2),tn=Kr[0],Qr=Kr[1],Pr=(0,U.useRef)(null),on=(0,U.useState)(null),Br=(0,E.Z)(on,2),en=Br[0],gn=Br[1],xn=(0,N.HD)(C,d,rt),pn=xn.exportedElements,Tn=xn.exportingFrame;return(0,U.useEffect)(function(){var Xr=Pr.current;if(Xr){var cn=Xr.offsetWidth,Wn=Xr.offsetHeight;cn&&(0,rr.NL)({elements:pn,appState:vt(vt({},d),{},{name:je,exportBackground:jt,exportWithDarkMode:Vt,exportScale:tn,exportEmbedScene:hr}),files:K,exportPadding:f.qy,maxWidthOrHeight:Math.max(cn,Wn),exportingFrame:Tn}).then(function(In){return gn(null),(0,Ct._c)(In).then(function(){Xr.replaceChildren(In)})}).catch(function(In){console.error(In),gn(In)})}},[d,K,pn,Tn,je,jt,Vt,tn,hr]),(0,t.jsxs)("div",{className:"ImageExportModal",children:[(0,t.jsx)("h3",{children:(0,R.t)("imageExportDialog.header")}),(0,t.jsxs)("div",{className:"ImageExportModal__preview",children:[(0,t.jsx)("div",{className:"ImageExportModal__preview__canvas",ref:Pr,children:en&&(0,t.jsx)(tr,{})}),(0,t.jsx)("div",{className:"ImageExportModal__preview__filename",children:!ur.kr&&(0,t.jsx)("input",{type:"text",className:"TextInput",value:je,style:{width:"30ch"},disabled:T.name!==void 0||d.viewModeEnabled,onChange:function(Xr){Fe(Xr.target.value),ae.executeAction(Gt.zX,"ui",Xr.target.value)}})})]}),(0,t.jsxs)("div",{className:"ImageExportModal__settings",children:[(0,t.jsx)("h3",{children:(0,R.t)("imageExportDialog.header")}),F&&(0,t.jsx)(Qt,{label:(0,R.t)("imageExportDialog.label.onlySelected"),name:"exportOnlySelected",children:(0,t.jsx)(br,{name:"exportOnlySelected",checked:rt,onChange:function(Xr){it(Xr)}})}),(0,t.jsx)(Qt,{label:(0,R.t)("imageExportDialog.label.withBackground"),name:"exportBackgroundSwitch",children:(0,t.jsx)(br,{name:"exportBackgroundSwitch",checked:jt,onChange:function(Xr){ct(Xr),ae.executeAction(Gt.XA,"ui",Xr)}})}),Et&&(0,t.jsx)(Qt,{label:(0,R.t)("imageExportDialog.label.darkMode"),name:"exportDarkModeSwitch",children:(0,t.jsx)(br,{name:"exportDarkModeSwitch",checked:Vt,onChange:function(Xr){Ht(Xr),ae.executeAction(Gt.bJ,"ui",Xr)}})}),(0,t.jsx)(Qt,{label:(0,R.t)("imageExportDialog.label.embedScene"),tooltip:(0,R.t)("imageExportDialog.tooltip.embedScene"),name:"exportEmbedSwitch",children:(0,t.jsx)(br,{name:"exportEmbedSwitch",checked:hr,onChange:function(Xr){Mr(Xr),ae.executeAction(Gt.Du,"ui",Xr)}})}),(0,t.jsx)(Qt,{label:(0,R.t)("imageExportDialog.label.scale"),name:"exportScale",children:(0,t.jsx)(Rt,{name:"exportScale",value:tn,onChange:function(Xr){Qr(Xr),ae.executeAction(Gt.sK,"ui",Xr)},choices:f.ZB.map(function(Xr){return{value:Xr,label:"".concat(Xr,"×")}})})}),(0,t.jsxs)("div",{className:"ImageExportModal__settings__buttons",children:[(0,t.jsx)(dt,{className:"ImageExportModal__settings__buttons__button",label:(0,R.t)("imageExportDialog.title.exportToPng"),onClick:function(){return ye(f.I_.png,pn,{exportingFrame:Tn})},startIcon:$.aL,children:(0,R.t)("imageExportDialog.button.exportToPng")}),(0,t.jsx)(dt,{className:"ImageExportModal__settings__buttons__button",label:(0,R.t)("imageExportDialog.title.exportToSvg"),onClick:function(){return ye(f.I_.svg,pn,{exportingFrame:Tn})},startIcon:$.aL,children:(0,R.t)("imageExportDialog.button.exportToSvg")}),(x.vt||f.vU)&&(0,t.jsx)(dt,{className:"ImageExportModal__settings__buttons__button",label:(0,R.t)("imageExportDialog.title.copyPngToClipboard"),onClick:function(){return ye(f.I_.clipboard,pn,{exportingFrame:Tn})},startIcon:$.UI,children:(0,R.t)("imageExportDialog.button.copyPngToClipboard")})]})]})]})},Qt=function(r){var d=r.label,C=r.children,K=r.tooltip,ae=r.name;return(0,t.jsxs)("div",{className:"ImageExportModal__settings__setting",title:d,children:[(0,t.jsxs)("label",{htmlFor:ae,className:"ImageExportModal__settings__setting__label",children:[d,K&&(0,t.jsx)(ht.u,{label:K,long:!0,children:$.mv})]}),(0,t.jsx)("div",{className:"ImageExportModal__settings__setting__content",children:C})]})},_r=function(r){var d=r.elements,C=r.appState,K=r.files,ae=r.actionManager,ye=r.onExportImage,F=r.onCloseRequest,T=(0,U.useState)(function(){return{appStateSnapshot:(0,s.xU)(C),elementsSnapshot:(0,s.xU)(d)}}),fe=(0,E.Z)(T,1)[0],Me=fe.appStateSnapshot,je=fe.elementsSnapshot;return(0,t.jsx)(Ot.V,{onCloseRequest:F,size:"wide",title:!1,children:(0,t.jsx)(ir,{elementsSnapshot:je,appStateSnapshot:Me,files:K,actionManager:ae,onExportImage:ye})})},sr=e(3195),mr={};mr.styleTagTransform=Ye(),mr.setAttributes=Ze(),mr.insert=be().bind(null,"head"),mr.domAPI=ee(),mr.insertStyleElement=Ie(),X()(sr.Z,mr),sr.Z&&sr.Z.locals&&sr.Z.locals;var Zr=function(r){var d=r.children,C=r.side,K=r.className;return(0,t.jsx)("div",{className:(0,pe.Z)("FixedSideContainer","FixedSideContainer_side_".concat(C),K),children:d})},or=e(1587),lr={};lr.styleTagTransform=Ye(),lr.setAttributes=Ze(),lr.insert=be().bind(null,"head"),lr.domAPI=ee(),lr.insertStyleElement=Ie(),X()(or.Z,lr),or.Z&&or.Z.locals&&or.Z.locals;var gr=function(r){var d=function(C){var K=C.appState,ae=C.isMobile,ye=C.device,F=C.app,T=K.activeTool,fe=K.isResizing,Me=K.isRotating,je=K.lastPointerDownWith,Fe=K.multiElement!==null;if(K.openSidebar&&!ye.editor.canFitSidebar)return null;if((0,k.EN)(K))return(0,R.t)("hints.eraserRevert");if(T.type==="arrow"||T.type==="line")return Fe?(0,R.t)("hints.linearElementMulti"):(0,R.t)("hints.linearElement");if(T.type==="freedraw")return(0,R.t)("hints.freeDraw");if(T.type==="text")return(0,R.t)("hints.text");if(T.type==="embeddable")return(0,R.t)("hints.embeddable");if(K.activeTool.type==="image"&&K.pendingImageElementId)return(0,R.t)("hints.placeImage");var Ue=F.scene.getSelectedElements(K);if(fe&&je==="mouse"&&Ue.length===1){var Ge=Ue[0];return(0,L.bt)(Ge)&&Ge.points.length===2?(0,R.t)("hints.lockAngle"):(0,L.pC)(Ge)?(0,R.t)("hints.resizeImage"):(0,R.t)("hints.resize")}if(Me&&je==="mouse")return(0,R.t)("hints.rotate");if(Ue.length===1&&(0,L.iB)(Ue[0]))return(0,R.t)("hints.text_selected");if(K.editingElement&&(0,L.iB)(K.editingElement))return(0,R.t)("hints.text_editing");if(T.type==="selection"){var rt;if(((rt=K.draggingElement)===null||rt===void 0?void 0:rt.type)==="selection"&&!Ue.length&&!K.editingElement&&!K.editingLinearElement)return(0,R.t)("hints.deepBoxSelect");if(K.gridSize&&K.draggingElement)return(0,R.t)("hints.disableSnapping");if(!Ue.length&&!ae)return(0,R.t)("hints.canvasPanning");if(Ue.length===1){if((0,L.bt)(Ue[0]))return K.editingLinearElement?K.editingLinearElement.selectedPointsIndices?(0,R.t)("hints.lineEditor_pointSelected"):(0,R.t)("hints.lineEditor_nothingSelected"):(0,R.t)("hints.lineEditor_info");if(!K.draggingElement&&(0,L.mG)(Ue[0]))return(0,R.t)("hints.bindTextToElement")}}return null}({appState:r.appState,isMobile:r.isMobile,device:r.device,app:r.app});return d?(d=(0,s.uY)(d),(0,t.jsx)("div",{className:"HintViewer",children:(0,t.jsx)("span",{children:d})})):null},cr=e(1404),Hr=e(7165),vr=(e(3041),{CHECKED:$.FC,UNCHECKED:$._C}),Rr=function(r){return(0,t.jsxs)("label",{className:(0,pe.Z)("ToolIcon ToolIcon__lock","ToolIcon_size_".concat("medium"),{"is-mobile":r.isMobile}),title:"".concat(r.title," — Q"),children:[(0,t.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",name:r.name,onChange:r.onChange,checked:r.checked,"aria-label":r.title,"data-testid":"toolbar-lock"}),(0,t.jsx)("div",{className:"ToolIcon__icon",children:r.checked?vr.CHECKED:vr.UNCHECKED})]})},an=["heading","children"];function Sn(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function Mn(r){for(var d=1;d<arguments.length;d++){var C=arguments[d]!=null?arguments[d]:{};d%2?Sn(Object(C),!0).forEach(function(K){(0,H.Z)(r,K,C[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(C)):Sn(Object(C)).forEach(function(K){Object.defineProperty(r,K,Object.getOwnPropertyDescriptor(C,K))})}return r}var Zn=function(r){var d=r.heading,C=r.children,K=(0,Je.Z)(r,an),ae=Ii().id,ye=(0,t.jsx)("h2",{className:"visually-hidden",id:"".concat(ae,"-").concat(d,"-title"),children:(0,R.t)("headings.".concat(d))});return(0,t.jsx)("section",Mn(Mn({},K),{},{"aria-labelledby":"".concat(ae,"-").concat(d,"-title"),children:typeof C=="function"?C(ye):(0,t.jsxs)(t.Fragment,{children:[ye,C]})}))},Rn=e(4726),bn=function(r){return r.penDetected?(0,t.jsxs)("label",{className:(0,pe.Z)("ToolIcon ToolIcon__penMode","ToolIcon_size_".concat("medium"),{"is-mobile":r.isMobile}),title:"".concat(r.title),children:[(0,t.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",name:r.name,onChange:r.onChange,checked:r.checked,"aria-label":r.title}),(0,t.jsx)("div",{className:"ToolIcon__icon",children:$.tb})]}):null},yn=e(4949),Un=e(2681),ne={};ne.styleTagTransform=Ye(),ne.setAttributes=Ze(),ne.insert=be().bind(null,"head"),ne.domAPI=ee(),ne.insertStyleElement=Ie(),X()(Un.Z,ne),Un.Z&&Un.Z.locals&&Un.Z.locals;var Ee=function(r){var d,C=(0,yn.KP)(r.elements),K=(0,ke.Zs)(r.elements,r.appState),ae=(0,yn.KP)(K);return(0,t.jsx)("div",{className:"Stats",children:(0,t.jsxs)(cr.W,{padding:2,children:[(0,t.jsx)("div",{className:"close",onClick:r.onClose,children:$.Tw}),(0,t.jsx)("h3",{children:(0,R.t)("stats.title")}),(0,t.jsx)("table",{children:(0,t.jsxs)("tbody",{children:[(0,t.jsx)("tr",{children:(0,t.jsx)("th",{colSpan:2,children:(0,R.t)("stats.scene")})}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,R.t)("stats.elements")}),(0,t.jsx)("td",{children:r.elements.length})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,R.t)("stats.width")}),(0,t.jsx)("td",{children:Math.round(C[2])-Math.round(C[0])})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,R.t)("stats.height")}),(0,t.jsx)("td",{children:Math.round(C[3])-Math.round(C[1])})]}),K.length===1&&(0,t.jsx)("tr",{children:(0,t.jsx)("th",{colSpan:2,children:(0,R.t)("stats.element")})}),K.length>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("tr",{children:(0,t.jsx)("th",{colSpan:2,children:(0,R.t)("stats.selected")})}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,R.t)("stats.elements")}),(0,t.jsx)("td",{children:K.length})]})]}),K.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:"x"}),(0,t.jsx)("td",{children:Math.round(ae[0])})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:"y"}),(0,t.jsx)("td",{children:Math.round(ae[1])})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,R.t)("stats.width")}),(0,t.jsx)("td",{children:Math.round(ae[2]-ae[0])})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,R.t)("stats.height")}),(0,t.jsx)("td",{children:Math.round(ae[3]-ae[1])})]})]}),K.length===1&&(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,R.t)("stats.angle")}),(0,t.jsx)("td",{children:"".concat(Math.round(180*K[0].angle/Math.PI),"°")})]}),(d=r.renderCustomStats)===null||d===void 0?void 0:d.call(r,r.elements,r.appState)]})})]})})},Pe=function(r){return(0,t.jsx)(b.V,{className:(0,pe.Z)("Shape",{fillable:!1}),type:"radio",icon:$.Hk,name:"editor-current-shape",checked:r.checked,title:"".concat(r.title," — H"),keyBindingLabel:r.isMobile?void 0:_.tW.H.toLocaleUpperCase(),"aria-label":"".concat(r.title," — H"),"aria-keyshortcuts":_.tW.H,"data-testid":"toolbar-hand",onChange:function(){var d;return(d=r.onChange)===null||d===void 0?void 0:d.call(r)}})},ze=e(4572);function pt(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}var Ut=function(r){var d=r.appState,C=r.elements,K=r.actionManager,ae=r.setAppState,ye=r.onLockToggle,F=r.onHandToolToggle,T=r.onPenModeToggle,fe=r.renderTopRightUI,Me=r.renderCustomStats,je=r.renderSidebars,Fe=r.device,Ue=r.renderWelcomeScreen,Ge=r.UIOptions,rt=r.app,it=(0,ze.R6)(),lt=it.WelcomeScreenCenterTunnel,Yt=it.MainMenuTunnel,jt=it.DefaultSidebarTriggerTunnel;return(0,t.jsxs)(t.Fragment,{children:[je(),!d.viewModeEnabled&&(0,t.jsxs)(Zr,{side:"top",className:"App-top-bar",children:[Ue&&(0,t.jsx)(lt.Out,{}),(0,t.jsx)(Zn,{heading:"shapes",children:function(ct){return(0,t.jsx)(qe.Z.Col,{gap:4,align:"center",children:(0,t.jsxs)(qe.Z.Row,{gap:1,className:"App-toolbar-container",children:[(0,t.jsxs)(cr.W,{padding:1,className:"App-toolbar App-toolbar--mobile",children:[ct,(0,t.jsx)(qe.Z.Row,{gap:1,children:(0,t.jsx)(Ve,{appState:d,activeTool:d.activeTool,UIOptions:Ge,app:rt})})]}),fe&&fe(!0,d),(0,t.jsxs)("div",{className:"mobile-misc-tools-container",children:[!d.viewModeEnabled&&(0,t.jsx)(jt.Out,{}),(0,t.jsx)(bn,{checked:d.penMode,onChange:function(){return T(null)},title:(0,R.t)("toolBar.penMode"),isMobile:!0,penDetected:d.penDetected}),(0,t.jsx)(Rr,{checked:d.activeTool.locked,onChange:ye,title:(0,R.t)("toolBar.lock"),isMobile:!0}),(0,t.jsx)(Pe,{checked:(0,k.l$)(d),onChange:function(){return F()},title:(0,R.t)("toolBar.hand"),isMobile:!0})]})]})})}}),(0,t.jsx)(gr,{appState:d,isMobile:!0,device:Fe,app:rt})]}),!d.openMenu&&d.showStats&&(0,t.jsx)(Ee,{appState:d,setAppState:ae,elements:C,onClose:function(){K.executeAction(P.u0)},renderCustomStats:Me}),(0,t.jsx)("div",{className:"App-bottom-bar",style:{marginBottom:Rn.nn+2*Rn.WM,marginLeft:Rn.nn+2*Rn.WM,marginRight:Rn.nn+2*Rn.WM},children:(0,t.jsxs)(cr.W,{padding:0,children:[d.openMenu==="shape"&&!d.viewModeEnabled&&(0,V.RT)(d,C)?(0,t.jsx)(Zn,{className:"App-mobile-menu",heading:"selectedShapeActions",children:(0,t.jsx)(Ft,{appState:d,elements:C,renderAction:K.renderAction})}):null,(0,t.jsxs)("footer",{className:"App-toolbar",children:[d.viewModeEnabled?(0,t.jsx)("div",{className:"App-toolbar-content",children:(0,t.jsx)(Yt.Out,{})}):(0,t.jsxs)("div",{className:"App-toolbar-content",children:[(0,t.jsx)(Yt.Out,{}),K.renderAction("toggleEditMenu"),K.renderAction("undo"),K.renderAction("redo"),K.renderAction(d.multiElement?"finalize":"duplicateSelection"),K.renderAction("deleteSelectedElements")]}),d.scrolledOutside&&!d.openMenu&&!d.openSidebar&&(0,t.jsx)("button",{className:"scroll-back-to-content",onClick:function(){ae(function(ct){return function(xt){for(var Mt=1;Mt<arguments.length;Mt++){var Vt=arguments[Mt]!=null?arguments[Mt]:{};Mt%2?pt(Object(Vt),!0).forEach(function(Ht){(0,H.Z)(xt,Ht,Vt[Ht])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xt,Object.getOwnPropertyDescriptors(Vt)):pt(Object(Vt)).forEach(function(Ht){Object.defineProperty(xt,Ht,Object.getOwnPropertyDescriptor(Vt,Ht))})}return xt}({},(0,ke.W)(C,ct))})},children:(0,R.t)("buttons.scrollBackToContent")})]})]})})]})},zt=e(5284),qt=e(901),gt=e(3668),Xt=e(8461),$t={};$t.styleTagTransform=Ye(),$t.setAttributes=Ze(),$t.insert=be().bind(null,"head"),$t.domAPI=ee(),$t.insertStyleElement=Ie(),X()(Xt.Z,$t),Xt.Z&&Xt.Z.locals&&Xt.Z.locals;var Er=function(r){var d=(0,U.useRef)(null),C=(0,U.useState)(null),K=(0,E.Z)(C,2),ae=K[0],ye=K[1];return(0,U.useLayoutEffect)(function(){if(r.spreadsheet){var F,T=(0,qt.ps)(r.chartType,r.spreadsheet,0,0);ye(T);var fe=d.current;return(0,h.Z)(u().mark(function Me(){var je;return u().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,(0,gt.$D)(T,{exportBackground:!1,viewBackgroundColor:zt.white},null);case 2:F=Fe.sent,(je=F.querySelector(".style-fonts"))===null||je===void 0||je.remove(),fe.replaceChildren(),fe.appendChild(F),r.selected&&fe.parentNode.focus();case 7:case"end":return Fe.stop()}},Me)}))(),function(){fe.replaceChildren()}}},[r.spreadsheet,r.chartType,r.selected]),(0,t.jsx)("button",{className:"ChartPreview",onClick:function(){ae&&r.onClick(r.chartType,ae)},children:(0,t.jsx)("div",{ref:d})})},Or=function(r){var d=r.setAppState,C=r.appState,K=r.onClose,ae=Ci().onInsertElements,ye=le().useCallback(function(){K&&K()},[K]),F=function(T,fe){ae(fe),(0,c.L)("magic","chart",T),d({currentChartType:T,pasteDialog:{shown:!1,data:null}})};return(0,t.jsx)(Ot.V,{size:"small",onCloseRequest:ye,title:(0,R.t)("labels.pasteCharts"),className:"PasteChartDialog",autofocus:!1,children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsx)(Er,{chartType:"bar",spreadsheet:C.pasteDialog.data,selected:C.currentChartType==="bar",onClick:F}),(0,t.jsx)(Er,{chartType:"line",spreadsheet:C.pasteDialog.data,selected:C.currentChartType==="line",onClick:F})]})})},Cr=e(2978),Fr={};Fr.styleTagTransform=Ye(),Fr.setAttributes=Ze(),Fr.insert=be().bind(null,"head"),Fr.domAPI=ee(),Fr.insertStyleElement=Ie(),X()(Cr.Z,Fr),Cr.Z&&Cr.Z.locals&&Cr.Z.locals;function zr(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}var Sr=u().mark(uo);function qr(r,d){var C=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!C){if(Array.isArray(r)||(C=function(fe,Me){if(fe){if(typeof fe=="string")return rn(fe,Me);var je=Object.prototype.toString.call(fe).slice(8,-1);if(je==="Object"&&fe.constructor&&(je=fe.constructor.name),je==="Map"||je==="Set")return Array.from(fe);if(je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je))return rn(fe,Me)}}(r))||d&&r&&typeof r.length=="number"){C&&(r=C);var K=0,ae=function(){};return{s:ae,n:function(){return K>=r.length?{done:!0}:{done:!1,value:r[K++]}},e:function(fe){throw fe},f:ae}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ye,F=!0,T=!1;return{s:function(){C=C.call(r)},n:function(){var fe=C.next();return F=fe.done,fe},e:function(fe){T=!0,ye=fe},f:function(){try{F||C.return==null||C.return()}finally{if(T)throw ye}}}}function rn(r,d){(d==null||d>r.length)&&(d=r.length);for(var C=0,K=new Array(d);C<d;C++)K[C]=r[C];return K}var Ln=function(){return(0,t.jsxs)("div",{className:"HelpDialog__header",children:[(0,t.jsxs)("a",{className:"HelpDialog__btn",href:"https://docs.excalidraw.com",target:"_blank",rel:"noopener noreferrer",children:[(0,R.t)("helpDialog.documentation"),(0,t.jsx)("div",{className:"HelpDialog__link-icon",children:$.h0})]}),(0,t.jsxs)("a",{className:"HelpDialog__btn",href:"https://blog.excalidraw.com",target:"_blank",rel:"noopener noreferrer",children:[(0,R.t)("helpDialog.blog"),(0,t.jsx)("div",{className:"HelpDialog__link-icon",children:$.h0})]}),(0,t.jsxs)("a",{className:"HelpDialog__btn",href:"https://github.com/excalidraw/excalidraw/issues",target:"_blank",rel:"noopener noreferrer",children:[(0,R.t)("helpDialog.github"),(0,t.jsx)("div",{className:"HelpDialog__link-icon",children:$.h0})]})]})},Bn=function(r){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{children:r.title}),(0,t.jsx)("div",{className:"HelpDialog__islands-container",children:r.children})]})},$n=function(r){return(0,t.jsxs)("div",{className:"HelpDialog__island ".concat(r.className),children:[(0,t.jsx)("h4",{className:"HelpDialog__island-title",children:r.caption}),(0,t.jsx)("div",{className:"HelpDialog__island-content",children:r.children})]})};function uo(r,d){var C,K,ae,ye;return u().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:C=!0,K=qr(r),F.prev=2,K.s();case 4:if((ae=K.n()).done){F.next=14;break}if(ye=ae.value,C){F.next=9;break}return F.next=9,d;case 9:return C=!1,F.next=12,ye;case 12:F.next=4;break;case 14:F.next=19;break;case 16:F.prev=16,F.t0=F.catch(2),K.e(F.t0);case 19:return F.prev=19,K.f(),F.finish(19);case 22:case"end":return F.stop()}},Sr,null,[[2,16,19,22]])}var wr=function(r){var d=r.label,C=r.shortcuts,K=r.isOr,ae=K===void 0||K,ye=C.map(function(F){return(F.endsWith("++")?[].concat((0,y.Z)(F.slice(0,-2).split("+")),["+"]):F.split("+")).map(function(T){return(0,t.jsx)(nn,{children:(fe=T,fe.replace(/\b[a-z]\b/,function(Me){return Me.toUpperCase()}))},T);var fe})});return(0,t.jsxs)("div",{className:"HelpDialog__shortcut",children:[(0,t.jsx)("div",{children:d}),(0,t.jsx)("div",{className:"HelpDialog__key-container",children:(0,y.Z)(uo(ye,ae?(0,R.t)("helpDialog.or"):null))})]})},nn=function(r){return(0,t.jsx)("kbd",function(d){for(var C=1;C<arguments.length;C++){var K=arguments[C]!=null?arguments[C]:{};C%2?zr(Object(K),!0).forEach(function(ae){(0,H.Z)(d,ae,K[ae])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(K)):zr(Object(K)).forEach(function(ae){Object.defineProperty(d,ae,Object.getOwnPropertyDescriptor(K,ae))})}return d}({className:"HelpDialog__key"},r))},mn=function(r){var d=r.onClose,C=le().useCallback(function(){d&&d()},[d]);return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(Ot.V,{onCloseRequest:C,title:(0,R.t)("helpDialog.title"),className:"HelpDialog",children:[(0,t.jsx)(Ln,{}),(0,t.jsxs)(Bn,{title:(0,R.t)("helpDialog.shortcuts"),children:[(0,t.jsxs)($n,{className:"HelpDialog__island--tools",caption:(0,R.t)("helpDialog.tools"),children:[(0,t.jsx)(wr,{label:(0,R.t)("toolBar.hand"),shortcuts:[_.tW.H]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.selection"),shortcuts:[_.tW.V,_.tW[1]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.rectangle"),shortcuts:[_.tW.R,_.tW[2]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.diamond"),shortcuts:[_.tW.D,_.tW[3]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.ellipse"),shortcuts:[_.tW.O,_.tW[4]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.arrow"),shortcuts:[_.tW.A,_.tW[5]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.line"),shortcuts:[_.tW.L,_.tW[6]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.freedraw"),shortcuts:[_.tW.P,_.tW[7]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.text"),shortcuts:[_.tW.T,_.tW[8]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.image"),shortcuts:[_.tW[9]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.eraser"),shortcuts:[_.tW.E,_.tW[0]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.frame"),shortcuts:[_.tW.F]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.laser"),shortcuts:[_.tW.K]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.eyeDropper"),shortcuts:[_.tW.I,"Shift+S","Shift+G"]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.editLineArrowPoints"),shortcuts:[(0,s.uY)("CtrlOrCmd+Enter")]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.editText"),shortcuts:[(0,s.uY)("Enter")]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.textNewLine"),shortcuts:[(0,s.uY)("Enter"),(0,s.uY)("Shift+Enter")]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.textFinish"),shortcuts:[(0,s.uY)("Esc"),(0,s.uY)("CtrlOrCmd+Enter")]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.curvedArrow"),shortcuts:["A",(0,R.t)("helpDialog.click"),(0,R.t)("helpDialog.click"),(0,R.t)("helpDialog.click")],isOr:!1}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.curvedLine"),shortcuts:["L",(0,R.t)("helpDialog.click"),(0,R.t)("helpDialog.click"),(0,R.t)("helpDialog.click")],isOr:!1}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.lock"),shortcuts:[_.tW.Q]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.preventBinding"),shortcuts:[(0,s.uY)("CtrlOrCmd")]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.link"),shortcuts:[(0,s.uY)("CtrlOrCmd+K")]})]}),(0,t.jsxs)($n,{className:"HelpDialog__island--view",caption:(0,R.t)("helpDialog.view"),children:[(0,t.jsx)(wr,{label:(0,R.t)("buttons.zoomIn"),shortcuts:[(0,s.uY)("CtrlOrCmd++")]}),(0,t.jsx)(wr,{label:(0,R.t)("buttons.zoomOut"),shortcuts:[(0,s.uY)("CtrlOrCmd+-")]}),(0,t.jsx)(wr,{label:(0,R.t)("buttons.resetZoom"),shortcuts:[(0,s.uY)("CtrlOrCmd+0")]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.zoomToFit"),shortcuts:["Shift+1"]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.zoomToSelection"),shortcuts:["Shift+2"]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.movePageUpDown"),shortcuts:["PgUp/PgDn"]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.movePageLeftRight"),shortcuts:["Shift+PgUp/PgDn"]}),(0,t.jsx)(wr,{label:(0,R.t)("buttons.zenMode"),shortcuts:[(0,s.uY)("Alt+Z")]}),(0,t.jsx)(wr,{label:(0,R.t)("buttons.objectsSnapMode"),shortcuts:[(0,s.uY)("Alt+S")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.showGrid"),shortcuts:[(0,s.uY)("CtrlOrCmd+'")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.viewMode"),shortcuts:[(0,s.uY)("Alt+R")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.toggleTheme"),shortcuts:[(0,s.uY)("Alt+Shift+D")]}),(0,t.jsx)(wr,{label:(0,R.t)("stats.title"),shortcuts:[(0,s.uY)("Alt+/")]})]}),(0,t.jsxs)($n,{className:"HelpDialog__island--editor",caption:(0,R.t)("helpDialog.editor"),children:[(0,t.jsx)(wr,{label:(0,R.t)("labels.moveCanvas"),shortcuts:[(0,s.uY)("Space+".concat((0,R.t)("helpDialog.drag"))),(0,s.uY)("Wheel+".concat((0,R.t)("helpDialog.drag")))],isOr:!0}),(0,t.jsx)(wr,{label:(0,R.t)("buttons.clearReset"),shortcuts:[(0,s.uY)("CtrlOrCmd+Delete")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.delete"),shortcuts:[(0,s.uY)("Delete")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.cut"),shortcuts:[(0,s.uY)("CtrlOrCmd+X")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.copy"),shortcuts:[(0,s.uY)("CtrlOrCmd+C")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.paste"),shortcuts:[(0,s.uY)("CtrlOrCmd+V")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.pasteAsPlaintext"),shortcuts:[(0,s.uY)("CtrlOrCmd+Shift+V")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.selectAll"),shortcuts:[(0,s.uY)("CtrlOrCmd+A")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.multiSelect"),shortcuts:[(0,s.uY)("Shift+".concat((0,R.t)("helpDialog.click")))]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.deepSelect"),shortcuts:[(0,s.uY)("CtrlOrCmd+".concat((0,R.t)("helpDialog.click")))]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.deepBoxSelect"),shortcuts:[(0,s.uY)("CtrlOrCmd+".concat((0,R.t)("helpDialog.drag")))]}),(x.vt||f.vU)&&(0,t.jsx)(wr,{label:(0,R.t)("labels.copyAsPng"),shortcuts:[(0,s.uY)("Shift+Alt+C")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.copyStyles"),shortcuts:[(0,s.uY)("CtrlOrCmd+Alt+C")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.pasteStyles"),shortcuts:[(0,s.uY)("CtrlOrCmd+Alt+V")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.sendToBack"),shortcuts:[f.Um?(0,s.uY)("CtrlOrCmd+Alt+["):(0,s.uY)("CtrlOrCmd+Shift+[")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.bringToFront"),shortcuts:[f.Um?(0,s.uY)("CtrlOrCmd+Alt+]"):(0,s.uY)("CtrlOrCmd+Shift+]")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.sendBackward"),shortcuts:[(0,s.uY)("CtrlOrCmd+[")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.bringForward"),shortcuts:[(0,s.uY)("CtrlOrCmd+]")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.alignTop"),shortcuts:[(0,s.uY)("CtrlOrCmd+Shift+Up")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.alignBottom"),shortcuts:[(0,s.uY)("CtrlOrCmd+Shift+Down")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.alignLeft"),shortcuts:[(0,s.uY)("CtrlOrCmd+Shift+Left")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.alignRight"),shortcuts:[(0,s.uY)("CtrlOrCmd+Shift+Right")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.duplicateSelection"),shortcuts:[(0,s.uY)("CtrlOrCmd+D"),(0,s.uY)("Alt+".concat((0,R.t)("helpDialog.drag")))]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.toggleElementLock"),shortcuts:[(0,s.uY)("CtrlOrCmd+Shift+L")]}),(0,t.jsx)(wr,{label:(0,R.t)("buttons.undo"),shortcuts:[(0,s.uY)("CtrlOrCmd+Z")]}),(0,t.jsx)(wr,{label:(0,R.t)("buttons.redo"),shortcuts:f.ED?[(0,s.uY)("CtrlOrCmd+Y"),(0,s.uY)("CtrlOrCmd+Shift+Z")]:[(0,s.uY)("CtrlOrCmd+Shift+Z")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.group"),shortcuts:[(0,s.uY)("CtrlOrCmd+G")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.ungroup"),shortcuts:[(0,s.uY)("CtrlOrCmd+Shift+G")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.flipHorizontal"),shortcuts:[(0,s.uY)("Shift+H")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.flipVertical"),shortcuts:[(0,s.uY)("Shift+V")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.showStroke"),shortcuts:[(0,s.uY)("S")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.showBackground"),shortcuts:[(0,s.uY)("G")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.decreaseFontSize"),shortcuts:[(0,s.uY)("CtrlOrCmd+Shift+<")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.increaseFontSize"),shortcuts:[(0,s.uY)("CtrlOrCmd+Shift+>")]})]})]})]})})},On=e(4704),Kn=e(4241),Jn={};Jn.styleTagTransform=Ye(),Jn.setAttributes=Ze(),Jn.insert=be().bind(null,"head"),Jn.domAPI=ee(),Jn.insertStyleElement=Ie(),X()(Kn.Z,Jn),Kn.Z&&Kn.Z.locals&&Kn.Z.locals;var wo=function(r){var d,C=r.children,K=r.color;return(0,t.jsx)("div",{className:"Card",style:(d={},(0,H.Z)(d,"--card-color",K==="primary"?"var(--color-primary)":zt[K][7]),(0,H.Z)(d,"--card-color-darker",K==="primary"?"var(--color-primary-darker)":zt[K][8]),(0,H.Z)(d,"--card-color-darkest",K==="primary"?"var(--color-primary-darkest)":zt[K][9]),d),children:C})},to=e(7955),no={};no.styleTagTransform=Ye(),no.setAttributes=Ze(),no.insert=be().bind(null,"head"),no.domAPI=ee(),no.insertStyleElement=Ie(),X()(to.Z,no),to.Z&&to.Z.locals&&to.Z.locals;var ma=function(r){var d=r.elements,C=r.appState,K=r.setAppState,ae=r.files,ye=r.actionManager,F=r.exportOpts,T=r.canvas,fe=r.onCloseRequest,Me=F.onExportToBackend;return(0,t.jsx)("div",{className:"ExportDialog ExportDialog--json",children:(0,t.jsxs)("div",{className:"ExportDialog-cards",children:[F.saveFileToDisk&&(0,t.jsxs)(wo,{color:"lime",children:[(0,t.jsx)("div",{className:"Card-icon",children:$.TP}),(0,t.jsx)("h2",{children:(0,R.t)("exportDialog.disk_title")}),(0,t.jsxs)("div",{className:"Card-details",children:[(0,R.t)("exportDialog.disk_details"),!ur.kr&&ye.renderAction("changeProjectName")]}),(0,t.jsx)(b.V,{className:"Card-button",type:"button",title:(0,R.t)("exportDialog.disk_button"),"aria-label":(0,R.t)("exportDialog.disk_button"),showAriaLabel:!0,onClick:function(){ye.executeAction(Gt.mM,"ui")}})]}),Me&&(0,t.jsxs)(wo,{color:"pink",children:[(0,t.jsx)("div",{className:"Card-icon",children:$.xP}),(0,t.jsx)("h2",{children:(0,R.t)("exportDialog.link_title")}),(0,t.jsx)("div",{className:"Card-details",children:(0,R.t)("exportDialog.link_details")}),(0,t.jsx)(b.V,{className:"Card-button",type:"button",title:(0,R.t)("exportDialog.link_button"),"aria-label":(0,R.t)("exportDialog.link_button"),showAriaLabel:!0,onClick:(0,h.Z)(u().mark(function je(){return u().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.prev=0,(0,c.L)("export","link","ui (".concat((0,s.$h)(),")")),Fe.next=4,Me(d,C,ae,T);case 4:fe(),Fe.next=10;break;case 7:Fe.prev=7,Fe.t0=Fe.catch(0),K({errorMessage:Fe.t0.message});case 10:case"end":return Fe.stop()}},je,null,[[0,7]])}))})]}),F.renderCustomUI&&F.renderCustomUI(d,C,ae,T)]})})},Qo=function(r){var d=r.elements,C=r.appState,K=r.files,ae=r.actionManager,ye=r.exportOpts,F=r.canvas,T=r.setAppState,fe=le().useCallback(function(){T({openDialog:null})},[T]);return(0,t.jsx)(t.Fragment,{children:C.openDialog==="jsonExport"&&(0,t.jsx)(Ot.V,{onCloseRequest:fe,title:(0,R.t)("buttons.export"),children:(0,t.jsx)(ma,{elements:d,appState:C,setAppState:T,files:K,actionManager:ae,onCloseRequest:fe,exportOpts:ye,canvas:F})})})},Ia=e(7080),ii=function(r){return(0,t.jsx)("button",{className:"help-icon",onClick:r.onClick,type:"button",title:"".concat((0,R.t)("helpDialog.title")," — ?"),"aria-label":(0,R.t)("helpDialog.title"),children:$.by})},Ma=function(r){var d=r.appState,C=r.actionManager,K=r.showExitZenModeBtn,ae=r.renderWelcomeScreen,ye=(0,ze.R6)(),F=ye.FooterCenterTunnel,T=ye.WelcomeScreenHelpHintTunnel,fe=ri(),Me=!d.viewModeEnabled&&d.multiElement&&fe.isTouchScreen;return(0,t.jsxs)("footer",{role:"contentinfo",className:"layer-ui__wrapper__footer App-menu App-menu_bottom",children:[(0,t.jsx)("div",{className:(0,pe.Z)("layer-ui__wrapper__footer-left zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-left":d.zenModeEnabled}),children:(0,t.jsx)(qe.Z.Col,{gap:2,children:(0,t.jsxs)(Zn,{heading:"canvasActions",children:[(0,t.jsx)(bt,{renderAction:C.renderAction,zoom:d.zoom}),!d.viewModeEnabled&&(0,t.jsx)(at,{renderAction:C.renderAction,className:(0,pe.Z)("zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-bottom":d.zenModeEnabled})}),Me&&(0,t.jsx)(ut,{renderAction:C.renderAction,className:(0,pe.Z)("zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-left":d.zenModeEnabled})})]})})}),(0,t.jsx)(F.Out,{}),(0,t.jsx)("div",{className:(0,pe.Z)("layer-ui__wrapper__footer-right zen-mode-transition",{"transition-right":d.zenModeEnabled}),children:(0,t.jsxs)("div",{style:{position:"relative"},children:[ae&&(0,t.jsx)(T.Out,{}),(0,t.jsx)(ii,{onClick:function(){return C.executeAction(P.jY)}})]})}),(0,t.jsx)(mt,{actionManager:C,showExitZenModeBtn:K})]})},Pa=Ma;Ma.displayName="Footer";var Ta=e(5902),ko=e(453),ea=e(3607),Qn=e(7021),Da=e(8973),li=e(6922),ga=e(7827),To=function(r){var d=r.title,C=r.children,K=r.actionLabel,ae=r.onClick;return(0,t.jsxs)("div",{className:"OverwriteConfirm__Actions__Action",children:[(0,t.jsx)("h4",{children:d}),(0,t.jsx)("div",{className:"OverwriteConfirm__Actions__Action__content",children:C}),(0,t.jsx)(dt,{variant:"outlined",color:"muted",label:K,size:"large",fullWidth:!0,onClick:ae})]})},_o=Object.assign(function(r){var d=r.children;return(0,t.jsx)("div",{className:"OverwriteConfirm__Actions",children:d})},{ExportToImage:function(){var r=(0,R.QT)().t,d=Mi(),C=Xi();return(0,t.jsx)(To,{title:r("overwriteConfirm.action.exportToImage.title"),actionLabel:r("overwriteConfirm.action.exportToImage.button"),onClick:function(){d.executeAction(Gt.Du,"ui",!0),C({openDialog:"imageExport"})},children:r("overwriteConfirm.action.exportToImage.description")})},SaveToDisk:function(){var r=(0,R.QT)().t,d=Mi();return(0,t.jsx)(To,{title:r("overwriteConfirm.action.saveToDisk.title"),actionLabel:r("overwriteConfirm.action.saveToDisk.button"),onClick:function(){d.executeAction(P.mM,"ui")},children:r("overwriteConfirm.action.saveToDisk.description")})}}),Ho=e(9439),Oo={};Oo.styleTagTransform=Ye(),Oo.setAttributes=Ze(),Oo.insert=be().bind(null,"head"),Oo.domAPI=ee(),Oo.insertStyleElement=Ie(),X()(Ho.Z,Oo),Ho.Z&&Ho.Z.locals&&Ho.Z.locals;function va(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function Wo(r){for(var d=1;d<arguments.length;d++){var C=arguments[d]!=null?arguments[d]:{};d%2?va(Object(C),!0).forEach(function(K){(0,H.Z)(r,K,C[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(C)):va(Object(C)).forEach(function(K){Object.defineProperty(r,K,Object.getOwnPropertyDescriptor(C,K))})}return r}var Do=Object.assign((0,li.$)("OverwriteConfirmDialog",function(r){var d=r.children,C=(0,ze.R6)().OverwriteConfirmDialogTunnel,K=(0,ea.KO)(ga.K,ko.yE),ae=(0,E.Z)(K,2),ye=ae[0],F=ae[1];return ye.active?(0,t.jsx)(C.In,{children:(0,t.jsx)(Ot.V,{onCloseRequest:function(){ye.onClose(),F(function(T){return Wo(Wo({},T),{},{active:!1})})},title:!1,size:916,children:(0,t.jsxs)("div",{className:"OverwriteConfirm",children:[(0,t.jsx)("h3",{children:ye.title}),(0,t.jsxs)("div",{className:"OverwriteConfirm__Description OverwriteConfirm__Description--color-".concat(ye.color),children:[(0,t.jsx)("div",{className:"OverwriteConfirm__Description__icon",children:$.UT}),(0,t.jsx)("div",{children:ye.description}),(0,t.jsx)("div",{className:"OverwriteConfirm__Description__spacer"}),(0,t.jsx)(dt,{color:ye.color,size:"large",label:ye.actionLabel,onClick:function(){ye.onConfirm(),F(function(T){return Wo(Wo({},T),{},{active:!1})})}})]}),(0,t.jsx)(_o,{children:d})]})})}):null}),{Actions:_o,Action:To}),Aa=e(100),ba=e(1925),ya=e(8924),ta=e(1434),oo={};oo.styleTagTransform=Ye(),oo.setAttributes=Ze(),oo.insert=be().bind(null,"head"),oo.domAPI=ee(),oo.insertStyleElement=Ie(),X()(ta.Z,oo),ta.Z&&ta.Z.locals&&ta.Z.locals;var Fo=e(9144),Ao={};Ao.styleTagTransform=Ye(),Ao.setAttributes=Ze(),Ao.insert=be().bind(null,"head"),Ao.domAPI=ee(),Ao.insertStyleElement=Ie(),X()(Fo.Z,Ao),Fo.Z&&Fo.Z.locals&&Fo.Z.locals;var Eo=e(2921),ci=function(r){return(0,t.jsxs)("label",{className:(0,pe.Z)("ToolIcon ToolIcon__LaserPointer","ToolIcon_size_".concat("small"),{"is-mobile":r.isMobile}),title:"".concat(r.title),children:[(0,t.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",name:r.name,onChange:r.onChange,checked:r.checked,"aria-label":r.title,"data-testid":"toolbar-LaserPointer"}),(0,t.jsx)("div",{className:"ToolIcon__icon",children:$.d})]})},La=["suggestedBindings","startBoundElement","cursorButton","scrollX","scrollY"],Za=["canvas","appState"],Ki=["canvas","appState"];function Uo(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function si(r,d){var C=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!C){if(Array.isArray(r)||(C=function(fe,Me){if(fe){if(typeof fe=="string")return Co(fe,Me);var je=Object.prototype.toString.call(fe).slice(8,-1);if(je==="Object"&&fe.constructor&&(je=fe.constructor.name),je==="Map"||je==="Set")return Array.from(fe);if(je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je))return Co(fe,Me)}}(r))||d&&r&&typeof r.length=="number"){C&&(r=C);var K=0,ae=function(){};return{s:ae,n:function(){return K>=r.length?{done:!0}:{done:!1,value:r[K++]}},e:function(fe){throw fe},f:ae}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ye,F=!0,T=!1;return{s:function(){C=C.call(r)},n:function(){var fe=C.next();return F=fe.done,fe},e:function(fe){T=!0,ye=fe},f:function(){try{F||C.return==null||C.return()}finally{if(T)throw ye}}}}function Co(r,d){(d==null||d>r.length)&&(d=r.length);for(var C=0,K=new Array(d);C<d;C++)K[C]=r[C];return K}var ui=function(r){var d=r.UIOptions;return(0,t.jsxs)(Qn.Z,{__fallback:!0,children:[(0,t.jsx)(Qn.Z.DefaultItems.LoadScene,{}),(0,t.jsx)(Qn.Z.DefaultItems.SaveToActiveFile,{}),d.canvasActions.export&&(0,t.jsx)(Qn.Z.DefaultItems.Export,{}),d.canvasActions.saveAsImage&&(0,t.jsx)(Qn.Z.DefaultItems.SaveAsImage,{}),(0,t.jsx)(Qn.Z.DefaultItems.Help,{}),(0,t.jsx)(Qn.Z.DefaultItems.ClearCanvas,{}),(0,t.jsx)(Qn.Z.Separator,{}),(0,t.jsx)(Qn.Z.Group,{title:"Excalidraw links",children:(0,t.jsx)(Qn.Z.DefaultItems.Socials,{})}),(0,t.jsx)(Qn.Z.Separator,{}),(0,t.jsx)(Qn.Z.DefaultItems.ToggleTheme,{}),(0,t.jsx)(Qn.Z.DefaultItems.ChangeCanvasBackground,{})]})},di=function(){return(0,t.jsxs)(Do,{__fallback:!0,children:[(0,t.jsx)(Do.Actions.SaveToDisk,{}),(0,t.jsx)(Do.Actions.ExportToImage,{})]})},fi=function(r){var d,C,K=r.actionManager,ae=r.appState,ye=r.files,F=r.setAppState,T=r.elements,fe=r.canvas,Me=r.onLockToggle,je=r.onHandToolToggle,Fe=r.onPenModeToggle,Ue=r.showExitZenModeBtn,Ge=r.renderTopRightUI,rt=r.renderCustomStats,it=r.UIOptions,lt=r.onExportImage,Yt=r.renderWelcomeScreen,jt=r.children,ct=r.app,xt=r.isCollaborating,Mt=ri(),Vt=(0,ze.ZC)(),Ht=(0,ea.KO)(ya.$,ko.yE),Tt=(0,E.Z)(Ht,2),Kt=Tt[0],hr=Tt[1],Mr=function(){return it.canvasActions.export?(0,t.jsx)(Qo,{elements:T,appState:ae,files:ye,actionManager:K,exportOpts:it.canvasActions.export,canvas:fe,setAppState:F}):null},Nr=function(){return it.canvasActions.saveAsImage&&ae.openDialog==="imageExport"?(0,t.jsx)(_r,{elements:T,appState:ae,files:ye,actionManager:K,onExportImage:lt,onCloseRequest:function(){return F({openDialog:null})}}):null},Kr=function(){return(0,t.jsx)(ba.O,{__fallback:!0,onDock:function(Pr){(0,c.L)("sidebar","toggleDock (".concat(Pr?"dock":"undock",")"),"(".concat(Mt.editor.isMobile?"mobile":"desktop",")"))}})},tn=(0,ea.Dv)(Ta.t6,ko.yE),Qr=(0,t.jsxs)(t.Fragment,{children:[jt,(0,t.jsx)(ui,{UIOptions:it}),(0,t.jsx)(ba.O.Trigger,{__fallback:!0,icon:$.Vq,title:(0,s.Oo)((0,R.t)("toolBar.library")),onToggle:function(Pr){Pr&&(0,c.L)("sidebar","".concat(f.Cc.name," (open)"),"button (".concat(Mt.editor.isMobile?"mobile":"desktop",")"))},tab:f.Cc.defaultTab,children:(0,R.t)("toolBar.library")}),(0,t.jsx)(di,{}),ae.isLoading&&(0,t.jsx)(Hr.z,{delay:250}),ae.errorMessage&&(0,t.jsx)(Pt,{onClose:function(){return F({errorMessage:null})},children:ae.errorMessage}),Kt&&!Mt.editor.isMobile&&(0,t.jsx)(ya.p,{colorPickerType:Kt.colorPickerType,onCancel:function(){hr(null)},onChange:function(Pr,on,Br,en){var gn=en.altKey;if(Pr==="elementBackground"||Pr==="elementStroke")if(Br.length){var xn,pn,Tn=si(Br);try{for(Tn.s();!(pn=Tn.n()).done;){var Xr=pn.value;(0,g.DR)(Xr,(0,H.Z)({},gn&&Kt.swapPreviewOnAlt?Pr==="elementBackground"?"strokeColor":"backgroundColor":Pr==="elementBackground"?"backgroundColor":"strokeColor",on),!1),Eo.R.delete(Xr)}}catch(cn){Tn.e(cn)}finally{Tn.f()}(xn=q.Z.getScene(Br[0]))===null||xn===void 0||xn.informMutation()}else F(Pr==="elementBackground"?{currentItemBackgroundColor:on}:{currentItemStrokeColor:on})},onSelect:function(Pr,on){var Br;hr(function(en){return en!=null&&en.keepOpenOnAlt&&on.altKey?en:null}),Kt==null||(Br=Kt.onSelect)===null||Br===void 0||Br.call(Kt,Pr,on)}}),ae.openDialog==="help"&&(0,t.jsx)(mn,{onClose:function(){F({openDialog:null})}}),(0,t.jsx)(Da.o,{}),(0,t.jsx)(Vt.OverwriteConfirmDialogTunnel.Out,{}),Nr(),Mr(),ae.pasteDialog.shown&&(0,t.jsx)(Or,{setAppState:F,appState:ae,onClose:function(){return F({pasteDialog:{shown:!1,data:null}})}}),Mt.editor.isMobile&&(0,t.jsx)(Ut,{app:ct,appState:ae,elements:T,actionManager:K,renderJSONExportDialog:Mr,renderImageExportDialog:Nr,setAppState:F,onLockToggle:Me,onHandToolToggle:je,onPenModeToggle:Fe,renderTopRightUI:Ge,renderCustomStats:rt,renderSidebars:Kr,device:Mt,renderWelcomeScreen:Yt,UIOptions:it}),!Mt.editor.isMobile&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"layer-ui__wrapper",style:ae.openSidebar&&tn&&Mt.editor.canFitSidebar?{width:"calc(100% - ".concat(f.EE,"px)")}:{},children:[Yt&&(0,t.jsx)(Vt.WelcomeScreenCenterTunnel.Out,{}),(C=(0,V.RT)(ae,T),(0,t.jsx)(Zr,{side:"top",children:(0,t.jsxs)("div",{className:"App-menu App-menu_top",children:[(0,t.jsxs)(qe.Z.Col,{gap:6,className:(0,pe.Z)("App-menu_top__left"),children:[(0,t.jsxs)("div",{style:{position:"relative"},children:[(0,t.jsx)(Vt.MainMenuTunnel.Out,{}),Yt&&(0,t.jsx)(Vt.WelcomeScreenMenuHintTunnel.Out,{})]}),C&&(0,t.jsx)(Zn,{heading:"selectedShapeActions",className:(0,pe.Z)("selected-shape-actions zen-mode-transition",{"transition-left":ae.zenModeEnabled}),children:(0,t.jsx)(cr.W,{className:f.$C.SHAPE_ACTIONS_MENU,padding:2,style:{maxHeight:"".concat(ae.height-166,"px")},children:(0,t.jsx)(Ft,{appState:ae,elements:T,renderAction:K.renderAction})})})]}),!ae.viewModeEnabled&&(0,t.jsx)(Zn,{heading:"shapes",className:"shapes-section",children:function(Pr){return(0,t.jsxs)("div",{style:{position:"relative"},children:[Yt&&(0,t.jsx)(Vt.WelcomeScreenToolbarHintTunnel.Out,{}),(0,t.jsx)(qe.Z.Col,{gap:4,align:"start",children:(0,t.jsxs)(qe.Z.Row,{gap:1,className:(0,pe.Z)("App-toolbar-container",{"zen-mode":ae.zenModeEnabled}),children:[(0,t.jsxs)(cr.W,{padding:1,className:(0,pe.Z)("App-toolbar",{"zen-mode":ae.zenModeEnabled}),children:[(0,t.jsx)(gr,{appState:ae,isMobile:Mt.editor.isMobile,device:Mt,app:ct}),Pr,(0,t.jsxs)(qe.Z.Row,{gap:1,children:[(0,t.jsx)(bn,{zenModeEnabled:ae.zenModeEnabled,checked:ae.penMode,onChange:function(){return Fe(null)},title:(0,R.t)("toolBar.penMode"),penDetected:ae.penDetected}),(0,t.jsx)(Rr,{checked:ae.activeTool.locked,onChange:Me,title:(0,R.t)("toolBar.lock")}),(0,t.jsx)("div",{className:"App-toolbar__divider"}),(0,t.jsx)(Pe,{checked:(0,k.l$)(ae),onChange:function(){return je()},title:(0,R.t)("toolBar.hand"),isMobile:!0}),(0,t.jsx)(Ve,{appState:ae,activeTool:ae.activeTool,UIOptions:it,app:ct})]})]}),xt&&(0,t.jsx)(cr.W,{style:{marginLeft:8,alignSelf:"center",height:"fit-content"},children:(0,t.jsx)(ci,{title:(0,R.t)("toolBar.laser"),checked:ae.activeTool.type==="laser",onChange:function(){return ct.setActiveTool({type:"laser"})},isMobile:!0})})]})})]})}}),(0,t.jsxs)("div",{className:(0,pe.Z)("layer-ui__wrapper__top-right zen-mode-transition",{"transition-right":ae.zenModeEnabled}),children:[(0,t.jsx)(On.Z,{collaborators:ae.collaborators}),Ge?.(Mt.editor.isMobile,ae),!ae.viewModeEnabled&&(!tn||((d=ae.openSidebar)===null||d===void 0?void 0:d.name)!==f.Cc.name)&&(0,t.jsx)(Vt.DefaultSidebarTriggerTunnel.Out,{})]})]})})),(0,t.jsx)(Pa,{appState:ae,actionManager:K,showExitZenModeBtn:Ue,renderWelcomeScreen:Yt}),ae.showStats&&(0,t.jsx)(Ee,{appState:ae,setAppState:F,elements:T,onClose:function(){K.executeAction(Ia.u)},renderCustomStats:rt}),ae.scrolledOutside&&(0,t.jsx)("button",{className:"scroll-back-to-content",onClick:function(){F(function(Pr){return function(on){for(var Br=1;Br<arguments.length;Br++){var en=arguments[Br]!=null?arguments[Br]:{};Br%2?Uo(Object(en),!0).forEach(function(gn){(0,H.Z)(on,gn,en[gn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(on,Object.getOwnPropertyDescriptors(en)):Uo(Object(en)).forEach(function(gn){Object.defineProperty(on,gn,Object.getOwnPropertyDescriptor(en,gn))})}return on}({},(0,ke.W)(T,Pr))})},children:(0,R.t)("buttons.scrollBackToContent")})]}),Kr()]})]});return(0,t.jsx)(Aa.k.Provider,{value:ae,children:(0,t.jsx)(ea.zt,{scope:Vt.jotaiScope,children:(0,t.jsx)(ze.A3.Provider,{value:Vt,children:Qr})})})},xa=function(r){return r.suggestedBindings,r.startBoundElement,r.cursorButton,r.scrollX,r.scrollY,(0,Je.Z)(r,La)},pi=function(r,d){if(r.children!==d.children)return!1;r.canvas;var C=r.appState,K=(0,Je.Z)(r,Za),ae=(d.canvas,d.appState),ye=(0,Je.Z)(d,Ki);return(0,s.w8)(xa(C),xa(ae),{selectedElementIds:s.w8,selectedGroupIds:s.w8})&&(0,s.w8)(K,ye)},hi=le().memo(fi,pi),ra=e(9650),fo={};fo.styleTagTransform=Ye(),fo.setAttributes=Ze(),fo.insert=be().bind(null,"head"),fo.domAPI=ee(),fo.insertStyleElement=Ie(),X()(ra.Z,fo),ra.Z&&ra.Z.locals&&ra.Z.locals;var mi=function(r){var d=r.message,C=r.onClose,K=r.closable,ae=K!==void 0&&K,ye=r.duration,F=ye===void 0?5e3:ye,T=(0,U.useRef)(0),fe=F!==1/0,Me=(0,U.useCallback)(function(){fe&&(T.current=window.setTimeout(function(){return C()},F))},[C,F,fe]);(0,U.useEffect)(function(){if(fe)return Me(),function(){return clearTimeout(T.current)}},[Me,d,F,fe]);var je=fe?function(){return clearTimeout(T?.current)}:void 0,Fe=fe?Me:void 0;return(0,t.jsxs)("div",{className:"Toast",onMouseEnter:je,onMouseLeave:Fe,children:[(0,t.jsx)("p",{className:"Toast__message",children:d}),ae&&(0,t.jsx)(b.V,{icon:$.Tw,"aria-label":"close",type:"icon",onClick:C,className:"close"})]})};function Ra(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function za(r){for(var d=1;d<arguments.length;d++){var C=arguments[d]!=null?arguments[d]:{};d%2?Ra(Object(C),!0).forEach(function(K){(0,H.Z)(r,K,C[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(C)):Ra(Object(C)).forEach(function(K){Object.defineProperty(r,K,Object.getOwnPropertyDescriptor(C,K))})}return r}var wa=(0,j.z)({name:"viewMode",viewMode:!0,trackEvent:{category:"canvas",predicate:function(r){return!r.viewModeEnabled}},perform:function(r,d){return{appState:za(za({},d),{},{viewModeEnabled:!this.checked(d)}),commitToHistory:!1}},checked:function(r){return r.viewModeEnabled},predicate:function(r,d,C){return C.viewModeEnabled===void 0},contextItemLabel:"labels.viewMode",keyTest:function(r){return!r[_.tW.CTRL_OR_CMD]&&r.altKey&&r.code===_.aU.R}}),na=e(4178),Na=e(200),gi=e.n(Na),Ba=e(3528),Io=e(5992),Ko=e(8020),vi=e(4048),ka=e(9672);function Ea(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}var Ha=(0,I.Z)(function r(d){var C=this,K=d.scene,ae=d.onSceneUpdated;(0,S.Z)(this,r),this.onFontsLoaded=function(ye){if(ye.every(function(T){var fe="".concat(T.family,"-").concat(T.style,"-").concat(T.weight);return!!r.loadedFontFaces.has(fe)||(r.loadedFontFaces.add(fe),!1)}))return!1;var F=!1;C.scene.mapElements(function(T){return(0,V.iB)(T)&&!(0,L.Xh)(T)?(Eo.R.delete(T),F=!0,(0,g.BE)(T,function(fe){for(var Me=1;Me<arguments.length;Me++){var je=arguments[Me]!=null?arguments[Me]:{};Me%2?Ea(Object(je),!0).forEach(function(Fe){(0,H.Z)(fe,Fe,je[Fe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(fe,Object.getOwnPropertyDescriptors(je)):Ea(Object(je)).forEach(function(Fe){Object.defineProperty(fe,Fe,Object.getOwnPropertyDescriptor(je,Fe))})}return fe}({},(0,V.JZ)(T)))):T}),F&&C.onSceneUpdated()},this.loadFontsForElements=function(){var ye=(0,h.Z)(u().mark(function F(T){var fe;return u().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Me.next=2,Promise.all((0,y.Z)(new Set(T.filter(function(je){return(0,V.iB)(je)}).map(function(je){return je.fontFamily}))).map(function(je){var Fe,Ue,Ge,rt,it=(0,s.mO)({fontFamily:je,fontSize:16});if((Fe=document.fonts)===null||Fe===void 0||(Ue=Fe.check)===null||Ue===void 0||!Ue.call(Fe,it))return(Ge=document.fonts)===null||Ge===void 0||(rt=Ge.load)===null||rt===void 0?void 0:rt.call(Ge,it)}));case 2:fe=Me.sent,C.onFontsLoaded(fe.flat().filter(Boolean));case 4:case"end":return Me.stop()}},F)}));return function(F){return ye.apply(this,arguments)}}(),this.scene=K,this.onSceneUpdated=ae});Ha.loadedFontFaces=new Set;var _n=e(4682),un=e(6264),Wa=e(5047),Gr=e(7652);function Fa(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function ro(r){for(var d=1;d<arguments.length;d++){var C=arguments[d]!=null?arguments[d]:{};d%2?Fa(Object(C),!0).forEach(function(K){(0,H.Z)(r,K,C[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(C)):Fa(Object(C)).forEach(function(K){Object.defineProperty(r,K,Object.getOwnPropertyDescriptor(C,K))})}return r}var Ua=function(r,d){var C=d.scene.getSelectedElements(r);return C.length===1&&C[0].type==="frame"},bi=(0,j.z)({name:"selectAllElementsInFrame",trackEvent:{category:"canvas"},perform:function(r,d,C,K){var ae=K.scene.getSelectedElements(d)[0];if(ae&&ae.type==="frame"){var ye=(0,_n.zD)((0,V.Lm)(r),ae.id).filter(function(F){return!(F.type==="text"&&F.containerId)});return{elements:r,appState:ro(ro({},d),{},{selectedElementIds:ye.reduce(function(F,T){return F[T.id]=!0,F},{})}),commitToHistory:!1}}return{elements:r,appState:d,commitToHistory:!1}},contextItemLabel:"labels.selectAllElementsInFrame",predicate:function(r,d,C,K){return Ua(d,K)}}),yi=(0,j.z)({name:"removeAllElementsFromFrame",trackEvent:{category:"history"},perform:function(r,d,C,K){var ae=K.scene.getSelectedElements(d)[0];return ae&&ae.type==="frame"?{elements:(0,_n.yZ)(r,ae,d),appState:ro(ro({},d),{},{selectedElementIds:(0,H.Z)({},ae.id,!0)}),commitToHistory:!0}:{elements:r,appState:d,commitToHistory:!1}},contextItemLabel:"labels.removeAllElementsFromFrame",predicate:function(r,d,C,K){return Ua(d,K)}}),Ka=((0,j.z)({name:"updateFrameRendering",viewMode:!0,trackEvent:{category:"canvas"},perform:function(r,d){return{elements:r,appState:ro(ro({},d),{},{frameRendering:ro(ro({},d.frameRendering),{},{enabled:!d.frameRendering.enabled})}),commitToHistory:!1}},contextItemLabel:"labels.updateFrameRendering",checked:function(r){return r.frameRendering.enabled}}),(0,j.z)({name:"setFrameAsActiveTool",trackEvent:{category:"toolbar"},perform:function(r,d,C,K){var ae=(0,s.Om)(d,{type:"frame"});return(0,Gr.Uk)(K.interactiveCanvas,ro(ro({},d),{},{activeTool:ae})),{elements:r,appState:ro(ro({},d),{},{activeTool:(0,s.Om)(d,{type:"frame"})}),commitToHistory:!1}},keyTest:function(r){return!r[_.tW.CTRL_OR_CMD]&&!r.shiftKey&&!r.altKey&&r.key.toLocaleLowerCase()===_.tW.F}}),e(6006)),xi=e(3506);function Ga(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function Ya(r){for(var d=1;d<arguments.length;d++){var C=arguments[d]!=null?arguments[d]:{};d%2?Ga(Object(C),!0).forEach(function(K){(0,H.Z)(r,K,C[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(C)):Ga(Object(C)).forEach(function(K){Object.defineProperty(r,K,Object.getOwnPropertyDescriptor(C,K))})}return r}function ao(r,d){var C=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!C){if(Array.isArray(r)||(C=function(fe,Me){if(fe){if(typeof fe=="string")return Go(fe,Me);var je=Object.prototype.toString.call(fe).slice(8,-1);if(je==="Object"&&fe.constructor&&(je=fe.constructor.name),je==="Map"||je==="Set")return Array.from(fe);if(je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je))return Go(fe,Me)}}(r))||d&&r&&typeof r.length=="number"){C&&(r=C);var K=0,ae=function(){};return{s:ae,n:function(){return K>=r.length?{done:!0}:{done:!1,value:r[K++]}},e:function(fe){throw fe},f:ae}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ye,F=!0,T=!1;return{s:function(){C=C.call(r)},n:function(){var fe=C.next();return F=fe.done,fe},e:function(fe){T=!0,ye=fe},f:function(){try{F||C.return==null||C.return()}finally{if(T)throw ye}}}}function Go(r,d){(d==null||d>r.length)&&(d=r.length);for(var C=0,K=new Array(d);C<d;C++)K[C]=r[C];return K}var go=function(r){return 8/r},Cn=(0,I.Z)(function r(){(0,S.Z)(this,r)});Cn.referenceSnapPoints=null,Cn.visibleGaps=null,Cn.setReferenceSnapPoints=function(r){Cn.referenceSnapPoints=r},Cn.getReferenceSnapPoints=function(){return Cn.referenceSnapPoints},Cn.setVisibleGaps=function(r){Cn.visibleGaps=r},Cn.getVisibleGaps=function(){return Cn.visibleGaps},Cn.destroy=function(){Cn.referenceSnapPoints=null,Cn.visibleGaps=null};var vo=function(r){var d=r.event,C=r.appState,K=r.selectedElements;return d?C.objectsSnapModeEnabled&&!d[_.tW.CTRL_OR_CMD]||!C.objectsSnapModeEnabled&&d[_.tW.CTRL_OR_CMD]&&C.gridSize===null:(K.length!==1||K[0].type!=="arrow")&&C.objectsSnapModeEnabled},Yo=function(r){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{omitCenter:!1,boundingBoxCorners:!1},C=d.omitCenter,K=d.boundingBoxCorners,ae=d.dragOffset,ye=[];if(r.length===1){var F=r[0],T=(0,yn.qf)(F),fe=(0,E.Z)(T,6),Me=fe[0],je=fe[1],Fe=fe[2],Ue=fe[3],Ge=fe[4],rt=fe[5];ae&&(Me+=ae.x,Fe+=ae.x,Ge+=ae.x,je+=ae.y,Ue+=ae.y,rt+=ae.y);var it=(Fe-Me)/2,lt=(Ue-je)/2;if(F.type!=="diamond"&&F.type!=="ellipse"||K){var Yt=(0,J.xj)([Me,je],[Ge,rt],F.angle),jt=(0,J.xj)([Fe,je],[Ge,rt],F.angle),ct=(0,J.xj)([Me,Ue],[Ge,rt],F.angle),xt=(0,J.xj)([Fe,Ue],[Ge,rt],F.angle),Mt=[Ge,rt];ye=C?[Yt,jt,ct,xt]:[Yt,jt,ct,xt,Mt]}else{var Vt=(0,J.xj)([Me,je+lt],[Ge,rt],F.angle),Ht=(0,J.xj)([Me+it,je],[Ge,rt],F.angle),Tt=(0,J.xj)([Fe,je+lt],[Ge,rt],F.angle),Kt=(0,J.xj)([Me+it,Ue],[Ge,rt],F.angle),hr=[Ge,rt];ye=C?[Vt,Ht,Tt,Kt]:[Vt,Ht,Tt,Kt,hr]}}else if(r.length>1){var Mr=(0,yn.hC)(r,ae??{x:0,y:0}),Nr=(0,E.Z)(Mr,4),Kr=Nr[0],tn=Nr[1],Qr=Nr[2],Pr=Nr[3],on=Qr-Kr,Br=Pr-tn,en=[Kr,tn],gn=[Qr,tn],xn=[Kr,Pr],pn=[Qr,Pr],Tn=[Kr+on/2,tn+Br/2];ye=C?[en,gn,xn,pn]:[en,gn,xn,pn,Tn]}return ye.map(function(Xr){return[Ne(Xr[0]),Ne(Xr[1])]})},Va=function(r,d,C){var K=d.filter(function(ae){return(0,L.He)(ae)}).map(function(ae){return ae.id});return(0,un.CF)(r,d,C).filter(function(ae){return!(ae.frameId&&K.includes(ae.frameId))})},wi=function(r,d,C){var K=Va(r,d,C),ae=(0,We.AI)(K).filter(function(Br){return!(Br.length===1&&(0,L.Xh)(Br[0]))}).map(function(Br){return(0,yn.KP)(Br).map(function(en){return Ne(en)})}),ye=ae.sort(function(Br,en){return Br[0]-en[0]}),F=[],T=0;e:for(var fe=0;fe<ye.length;fe++)for(var Me=ye[fe],je=fe+1;je<ye.length;je++){if(++T>99999)break e;var Fe=ye[je],Ue=(0,E.Z)(Me,4),Ge=Ue[1],rt=Ue[2],it=Ue[3],lt=(0,E.Z)(Fe,4),Yt=lt[0],jt=lt[1],ct=lt[3];rt<Yt&&(0,J.ep)([Ge,it],[jt,ct])&&F.push({startBounds:Me,endBounds:Fe,startSide:[[rt,Ge],[rt,it]],endSide:[[Yt,jt],[Yt,ct]],length:Yt-rt,overlap:(0,J.mW)([Ge,it],[jt,ct])})}var xt=ae.sort(function(Br,en){return Br[1]-en[1]}),Mt=[];T=0;e:for(var Vt=0;Vt<xt.length;Vt++)for(var Ht=xt[Vt],Tt=Vt+1;Tt<xt.length;Tt++){if(++T>99999)break e;var Kt=xt[Tt],hr=(0,E.Z)(Ht,4),Mr=hr[0],Nr=hr[2],Kr=hr[3],tn=(0,E.Z)(Kt,3),Qr=tn[0],Pr=tn[1],on=tn[2];Kr<Pr&&(0,J.ep)([Mr,Nr],[Qr,on])&&Mt.push({startBounds:Ht,endBounds:Kt,startSide:[[Mr,Kr],[Nr,Kr]],endSide:[[Qr,Pr],[on,Pr]],length:Pr-Kr,overlap:(0,J.mW)([Mr,Nr],[Qr,on])})}return{horizontalGaps:F,verticalGaps:Mt}},se=function(r,d,C,K,ae,ye,F){if(!vo({appState:C,event:K,selectedElements:r}))return[];if(r.length===0)return[];var T=Cn.getVisibleGaps();if(T){var fe,Me=T.horizontalGaps,je=T.verticalGaps,Fe=(0,yn.hC)(r,d).map(function(In){return Ne(In)}),Ue=(0,E.Z)(Fe,4),Ge=Ue[0],rt=Ue[1],it=Ue[2],lt=Ue[3],Yt=(Ge+it)/2,jt=(rt+lt)/2,ct=ao(Me);try{for(ct.s();!(fe=ct.n()).done;){var xt=fe.value;if((0,J.ep)([rt,lt],xt.overlap)){var Mt=xt.startSide[0][0]+xt.length/2,Vt=Ne(Mt-Yt);if(xt.length>it-Ge&&Math.abs(Vt)<=F.x){Math.abs(Vt)<F.x&&(ae.length=0),F.x=Math.abs(Vt);var Ht={type:"gap",direction:"center_horizontal",gap:xt,offset:Vt};ae.push(Ht)}else{var Tt=Ge-(0,E.Z)(xt.endBounds,3)[2],Kt=Ne(xt.length-Tt);if(Math.abs(Kt)<=F.x){Math.abs(Kt)<F.x&&(ae.length=0),F.x=Math.abs(Kt);var hr={type:"gap",direction:"side_right",gap:xt,offset:Kt};ae.push(hr)}else{var Mr=(0,E.Z)(xt.startBounds,3)[0],Nr=Ne(Mr-it-xt.length);if(Math.abs(Nr)<=F.x){Math.abs(Nr)<F.x&&(ae.length=0),F.x=Math.abs(Nr);var Kr={type:"gap",direction:"side_left",gap:xt,offset:Nr};ae.push(Kr)}}}}}}catch(In){ct.e(In)}finally{ct.f()}var tn,Qr=ao(je);try{for(Qr.s();!(tn=Qr.n()).done;){var Pr=tn.value;if((0,J.ep)([Ge,it],Pr.overlap)){var on=Pr.startSide[0][1]+Pr.length/2,Br=Ne(on-jt);if(Pr.length>lt-rt&&Math.abs(Br)<=F.y){Math.abs(Br)<F.y&&(ye.length=0),F.y=Math.abs(Br);var en={type:"gap",direction:"center_vertical",gap:Pr,offset:Br};ye.push(en)}else{var gn=(0,E.Z)(Pr.startBounds,3)[1],xn=Ne(gn-lt-Pr.length);if(Math.abs(xn)<=F.y){Math.abs(xn)<F.y&&(ye.length=0),F.y=Math.abs(xn);var pn={type:"gap",direction:"side_top",gap:Pr,offset:xn};ye.push(pn)}else{var Tn=(0,E.Z)(Pr.endBounds,4)[3],Xr=Ne(rt-Tn),cn=Pr.length-Xr;if(Math.abs(cn)<=F.y){Math.abs(cn)<F.y&&(ye.length=0),F.y=Math.abs(cn);var Wn={type:"gap",direction:"side_bottom",gap:Pr,offset:cn};ye.push(Wn)}}}}}}catch(In){Qr.e(In)}finally{Qr.f()}}},Ae=function(r,d,C){var K=Va(r,d,C);return(0,We.AI)(K).filter(function(ae){return!(ae.length===1&&(0,L.Xh)(ae[0]))}).flatMap(function(ae){return Yo(ae)})},Le=function(r,d,C,K,ae,ye,F){if(!vo({appState:C,event:K,selectedElements:r})||r.length===0&&d.length===0)return[];var T=Cn.getReferenceSnapPoints();if(T){var fe,Me=ao(d);try{for(Me.s();!(fe=Me.n()).done;){var je,Fe=fe.value,Ue=ao(T);try{for(Ue.s();!(je=Ue.n()).done;){var Ge=je.value,rt=Ge[0]-Fe[0],it=Ge[1]-Fe[1];Math.abs(rt)<=F.x&&(Math.abs(rt)<F.x&&(ae.length=0),ae.push({type:"point",points:[Fe,Ge],offset:rt}),F.x=Math.abs(rt)),Math.abs(it)<=F.y&&(Math.abs(it)<F.y&&(ye.length=0),ye.push({type:"point",points:[Fe,Ge],offset:it}),F.y=Math.abs(it))}}catch(lt){Ue.e(lt)}finally{Ue.f()}}}catch(lt){Me.e(lt)}finally{Me.f()}}},Ne=function(r){return Math.round(r*Math.pow(10,6))/Math.pow(10,6)},Xe=function(r){var d,C=new Map,K=ao(r);try{for(K.s();!(d=K.n()).done;){var ae=d.value,ye=ae.join(",");C.has(ye)||C.set(ye,ae)}}catch(F){K.e(F)}finally{K.f()}return Array.from(C.values())},Qe=function(r,d){var C={},K={};if(r.length>0){var ae,ye=ao(r);try{for(ye.s();!(ae=ye.n()).done;){var F=ae.value;if(F.type==="point"){var T,fe=Ne(F.points[0][0]);C[fe]||(C[fe]=[]),(T=C[fe]).push.apply(T,(0,y.Z)(F.points.map(function(rt){return[Ne(rt[0]),Ne(rt[1])]})))}}}catch(rt){ye.e(rt)}finally{ye.f()}}if(d.length>0){var Me,je=ao(d);try{for(je.s();!(Me=je.n()).done;){var Fe=Me.value;if(Fe.type==="point"){var Ue,Ge=Ne(Fe.points[0][1]);K[Ge]||(K[Ge]=[]),(Ue=K[Ge]).push.apply(Ue,(0,y.Z)(Fe.points.map(function(rt){return[Ne(rt[0]),Ne(rt[1])]})))}}}catch(rt){je.e(rt)}finally{je.f()}}return Object.entries(C).map(function(rt){var it=(0,E.Z)(rt,2),lt=it[0],Yt=it[1];return{type:"points",points:Xe(Yt.map(function(jt){return[Number(lt),jt[1]]}).sort(function(jt,ct){return jt[1]-ct[1]}))}}).concat(Object.entries(K).map(function(rt){var it=(0,E.Z)(rt,2),lt=it[0],Yt=it[1];return{type:"points",points:Xe(Yt.map(function(jt){return[jt[0],Number(lt)]}).sort(function(jt,ct){return jt[0]-ct[0]}))}}))},nt=function(r,d,C){var K,ae=(0,yn.hC)(r,d),ye=(0,E.Z)(ae,4),F=ye[0],T=ye[1],fe=ye[2],Me=ye[3],je=[],Fe=ao(C);try{for(Fe.s();!(K=Fe.n()).done;){var Ue=K.value,Ge=(0,E.Z)(Ue.gap.startBounds,4),rt=Ge[0],it=Ge[1],lt=Ge[2],Yt=Ge[3],jt=(0,E.Z)(Ue.gap.endBounds,4),ct=jt[0],xt=jt[1],Mt=jt[2],Vt=jt[3],Ht=(0,J.mW)([T,Me],Ue.gap.overlap),Tt=(0,J.mW)([F,fe],Ue.gap.overlap);switch(Ue.direction){case"center_horizontal":if(Ht){var Kt=(Ht[0]+Ht[1])/2;je.push({type:"gap",direction:"horizontal",points:[[Ue.gap.startSide[0][0],Kt],[F,Kt]]},{type:"gap",direction:"horizontal",points:[[fe,Kt],[Ue.gap.endSide[0][0],Kt]]})}break;case"center_vertical":if(Tt){var hr=(Tt[0]+Tt[1])/2;je.push({type:"gap",direction:"vertical",points:[[hr,Ue.gap.startSide[0][1]],[hr,T]]},{type:"gap",direction:"vertical",points:[[hr,Me],[hr,Ue.gap.endSide[0][1]]]})}break;case"side_right":if(Ht){var Mr=(Ht[0]+Ht[1])/2;je.push({type:"gap",direction:"horizontal",points:[[lt,Mr],[ct,Mr]]},{type:"gap",direction:"horizontal",points:[[Mt,Mr],[F,Mr]]})}break;case"side_left":if(Ht){var Nr=(Ht[0]+Ht[1])/2;je.push({type:"gap",direction:"horizontal",points:[[fe,Nr],[rt,Nr]]},{type:"gap",direction:"horizontal",points:[[lt,Nr],[ct,Nr]]})}break;case"side_top":if(Tt){var Kr=(Tt[0]+Tt[1])/2;je.push({type:"gap",direction:"vertical",points:[[Kr,Me],[Kr,it]]},{type:"gap",direction:"vertical",points:[[Kr,Yt],[Kr,xt]]})}break;case"side_bottom":if(Tt){var tn=(Tt[0]+Tt[1])/2;je.push({type:"gap",direction:"vertical",points:[[tn,Yt],[tn,xt]]},{type:"gap",direction:"vertical",points:[[tn,Vt],[tn,T]]})}}}}catch(Qr){Fe.e(Qr)}finally{Fe.f()}return function(Qr){var Pr,on=new Map,Br=ao(Qr);try{for(Br.s();!(Pr=Br.n()).done;){var en=Pr.value,gn=en.points.flat().map(function(xn){return[Ne(xn)]}).join(",");on.has(gn)||on.set(gn,en)}}catch(xn){Br.e(xn)}finally{Br.f()}return Array.from(on.values())}(je.map(function(Qr){return Ya(Ya({},Qr),{},{points:Qr.points.map(function(Pr){return[Ne(Pr[0]),Ne(Pr[1])]})})}))},$e=function(r,d,C,K,ae,ye){var F,T,fe,Me;if(!vo({event:K,selectedElements:r,appState:C})||r.length===0||r.length===1&&!function(Nr,Kr){var tn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.01;return Math.abs(Nr-Kr)<=tn}(r[0].angle,0))return{snapOffset:{x:0,y:0},snapLines:[]};var je=(0,yn.KP)(d),Fe=(0,E.Z)(je,4),Ue=Fe[0],Ge=Fe[1],rt=Fe[2],it=Fe[3];ye&&(ye.includes("e")?rt+=ae.x:ye.includes("w")&&(Ue+=ae.x),ye.includes("n")?Ge+=ae.y:ye.includes("s")&&(it+=ae.y));var lt=[];if(ye)switch(ye){case"e":lt.push([rt,Ge],[rt,it]);break;case"w":lt.push([Ue,Ge],[Ue,it]);break;case"n":lt.push([Ue,Ge],[rt,Ge]);break;case"s":lt.push([Ue,it],[rt,it]);break;case"ne":lt.push([rt,Ge]);break;case"nw":lt.push([Ue,Ge]);break;case"se":lt.push([rt,it]);break;case"sw":lt.push([Ue,it])}var Yt=go(C.zoom.value),jt={x:Yt,y:Yt},ct=[],xt=[];Le(d,lt,C,K,ct,xt,jt);var Mt={x:(F=(T=ct[0])===null||T===void 0?void 0:T.offset)!==null&&F!==void 0?F:0,y:(fe=(Me=xt[0])===null||Me===void 0?void 0:Me.offset)!==null&&fe!==void 0?fe:0};jt.x=0,jt.y=0,ct.length=0,xt.length=0;var Vt=(0,yn.KP)(r).map(function(Nr){return Ne(Nr)}),Ht=(0,E.Z)(Vt,4),Tt=Ht[0],Kt=Ht[1],hr=Ht[2],Mr=Ht[3];return Le(r,[[Tt,Kt],[Tt,Mr],[hr,Kt],[hr,Mr]],C,K,ct,xt,jt),{snapOffset:Mt,snapLines:Qe(ct,xt)}},It=e(7392),Jt=e(9247),Nt=function(){return(0,t.jsxs)("div",{"data-testid":"brave-measure-text-error",children:[(0,t.jsx)("p",{children:(0,t.jsx)(Jt.Z,{i18nKey:"errors.brave_measure_text_error.line1",bold:function(r){return(0,t.jsx)("span",{style:{fontWeight:600},children:r})}})}),(0,t.jsx)("p",{children:(0,t.jsx)(Jt.Z,{i18nKey:"errors.brave_measure_text_error.line2",bold:function(r){return(0,t.jsx)("span",{style:{fontWeight:600},children:r})}})}),(0,t.jsx)("p",{children:(0,t.jsx)(Jt.Z,{i18nKey:"errors.brave_measure_text_error.line3",link:function(r){return(0,t.jsx)("a",{href:"http://docs.excalidraw.com/docs/@excalidraw/excalidraw/faq#turning-off-aggresive-block-fingerprinting-in-brave-browser",children:r})}})}),(0,t.jsx)("p",{children:(0,t.jsx)(Jt.Z,{i18nKey:"errors.brave_measure_text_error.line4",issueLink:function(r){return(0,t.jsx)("a",{href:"https://github.com/excalidraw/excalidraw/issues/new",children:r})},discordLink:function(r){return(0,t.jsxs)("a",{href:"https://discord.gg/UexuTaE",children:[r,"."]})}})})]})},kt=e(6199),nr=e(7766),Bt=function(r){var d=(0,U.useRef)(!1);return(0,U.useEffect)(function(){var C;if(d.current){var K={},ae={},ye={},F={},T={};r.appState.collaborators.forEach(function(Me,je){if(Me.selectedElementIds)for(var Fe=0,Ue=Object.keys(Me.selectedElementIds);Fe<Ue.length;Fe++){var Ge=Ue[Fe];Ge in ye||(ye[Ge]=[]),ye[Ge].push(je)}Me.pointer&&(Me.username&&(F[je]=Me.username),Me.userState&&(T[je]=Me.userState),ae[je]=(0,s._i)({sceneX:Me.pointer.x,sceneY:Me.pointer.y},r.appState),K[je]=Me.button)});var fe=((C=r.containerRef)===null||C===void 0?void 0:C.current)&&getComputedStyle(r.containerRef.current).getPropertyValue("--color-selection")||"#6965db";(0,nr.tp)({canvas:r.canvas,elements:r.elements,visibleElements:r.visibleElements,selectedElements:r.selectedElements,scale:window.devicePixelRatio,appState:r.appState,renderConfig:{remotePointerViewportCoords:ae,remotePointerButton:K,remoteSelectedElementIds:ye,remotePointerUsernames:F,remotePointerUserStates:T,selectionColor:fe,renderScrollbars:!1},callback:r.renderInteractiveSceneCallback},(0,s.G9)())}else d.current=!0}),(0,t.jsx)("canvas",{className:"excalidraw__canvas interactive",style:{width:r.appState.width,height:r.appState.height,cursor:r.appState.viewModeEnabled?f.oc.GRAB:f.oc.AUTO},width:r.appState.width*r.scale,height:r.appState.height*r.scale,ref:r.handleCanvasRef,onContextMenu:r.onContextMenu,onPointerMove:r.onPointerMove,onPointerUp:r.onPointerUp,onPointerCancel:r.onPointerCancel,onTouchMove:r.onTouchMove,onPointerDown:r.onPointerDown,onDoubleClick:r.appState.viewModeEnabled?void 0:r.onDoubleClick,children:(0,R.t)("labels.drawingCanvas")})},ar=function(r){return{zoom:r.zoom,scrollX:r.scrollX,scrollY:r.scrollY,width:r.width,height:r.height,viewModeEnabled:r.viewModeEnabled,editingGroupId:r.editingGroupId,editingLinearElement:r.editingLinearElement,selectedElementIds:r.selectedElementIds,frameToHighlight:r.frameToHighlight,offsetLeft:r.offsetLeft,offsetTop:r.offsetTop,theme:r.theme,pendingImageElementId:r.pendingImageElementId,selectionElement:r.selectionElement,selectedGroupIds:r.selectedGroupIds,selectedLinearElement:r.selectedLinearElement,multiElement:r.multiElement,isBindingEnabled:r.isBindingEnabled,suggestedBindings:r.suggestedBindings,isRotating:r.isRotating,elementsToHighlight:r.elementsToHighlight,openSidebar:r.openSidebar,showHyperlinkPopup:r.showHyperlinkPopup,collaborators:r.collaborators,activeEmbeddable:r.activeEmbeddable,snapLines:r.snapLines,zenModeEnabled:r.zenModeEnabled}},Dt=function(r,d){return r.selectionNonce===d.selectionNonce&&r.versionNonce===d.versionNonce&&r.scale===d.scale&&r.elements===d.elements&&r.visibleElements===d.visibleElements&&r.selectedElements===d.selectedElements&&(0,s.w8)(ar(r.appState),ar(d.appState))},er=le().memo(Bt,Dt),pr=function(r){var d=(0,U.useRef)(null),C=(0,U.useRef)(!1);return(0,U.useEffect)(function(){var K=d.current;if(K){var ae=r.canvas;C.current||(C.current=!0,K.replaceChildren(ae),ae.classList.add("excalidraw__canvas","static"));var ye="".concat(r.appState.width,"px"),F="".concat(r.appState.height,"px");ae.style.width!==ye&&(ae.style.width=ye),ae.style.height!==F&&(ae.style.height=F);var T=r.appState.width*r.scale,fe=r.appState.height*r.scale;ae.width!==T&&(ae.width=T),ae.height!==fe&&(ae.height=fe),(0,nr.AW)({canvas:ae,rc:r.rc,scale:r.scale,elements:r.elements,visibleElements:r.visibleElements,appState:r.appState,renderConfig:r.renderConfig},(0,s.G9)())}}),(0,t.jsx)("div",{className:"excalidraw__canvas-wrapper",ref:d})},yr=function(r){return{zoom:r.zoom,scrollX:r.scrollX,scrollY:r.scrollY,width:r.width,height:r.height,viewModeEnabled:r.viewModeEnabled,offsetLeft:r.offsetLeft,offsetTop:r.offsetTop,theme:r.theme,pendingImageElementId:r.pendingImageElementId,shouldCacheIgnoreZoom:r.shouldCacheIgnoreZoom,viewBackgroundColor:r.viewBackgroundColor,exportScale:r.exportScale,selectedElementsAreBeingDragged:r.selectedElementsAreBeingDragged,gridSize:r.gridSize,frameRendering:r.frameRendering,selectedElementIds:r.selectedElementIds,frameToHighlight:r.frameToHighlight,editingGroupId:r.editingGroupId}},kr=function(r,d){return r.versionNonce===d.versionNonce&&r.scale===d.scale&&r.elements===d.elements&&r.visibleElements===d.visibleElements&&(0,s.w8)(yr(r.appState),yr(d.appState))&&(0,s.w8)(r.renderConfig,d.renderConfig)},dr=le().memo(pr,kr),Dr=function(){function r(d){var C=this;(0,S.Z)(this,r),this.getRenderableElements=(0,s.HP)(function(K){var ae=K.zoom,ye=K.offsetLeft,F=K.offsetTop,T=K.scrollX,fe=K.scrollY,Me=K.height,je=K.width,Fe=K.editingElement,Ue=K.pendingImageElementId,Ge=(K.versionNonce,function(it){var lt=it.editingElement,Yt=it.elements,jt=it.pendingImageElementId;return Yt.filter(function(ct){return!((0,L.pC)(ct)&&jt===ct.id||lt&<.type==="text"&&ct.id===lt.id)})}({elements:C.scene.getNonDeletedElements(),editingElement:Fe,pendingImageElementId:Ue})),rt=function(it){var lt=it.elements,Yt=it.zoom,jt=it.offsetLeft,ct=it.offsetTop,xt=it.scrollX,Mt=it.scrollY,Vt=it.height,Ht=it.width;return lt.filter(function(Tt){return(0,Oe.PZ)(Tt,Ht,Vt,{zoom:Yt,offsetLeft:jt,offsetTop:ct,scrollX:xt,scrollY:Mt})})}({elements:Ge,zoom:ae,offsetLeft:ye,offsetTop:F,scrollX:T,scrollY:fe,height:Me,width:je});return{canvasElements:Ge,visibleElements:rt}}),this.scene=d}return(0,I.Z)(r,[{key:"destroy",value:function(){(0,nr.n_)(),this.getRenderableElements.clear()}}]),r}(),Yr=e(8806),$r=e(4864),Ir=e(8531),Ur=e(5830),Vr={};Vr.styleTagTransform=Ye(),Vr.setAttributes=Ze(),Vr.insert=be().bind(null,"head"),Vr.domAPI=ee(),Vr.insertStyleElement=Ie(),X()(Ur.Z,Vr),Ur.Z&&Ur.Z.locals&&Ur.Z.locals;var Jr="mermaid-to-excalidraw",hn=function(r){var d=r.error;return(0,t.jsxs)("div",{"data-testid":"mermaid-error",className:"mermaid-error",children:["Error! ",(0,t.jsx)("p",{children:d})]})},ln=function(){var r=(0,U.useState)({loaded:!1,api:null}),d=(0,E.Z)(r,2),C=d[0],K=d[1],ae=(0,U.useState)(""),ye=(0,E.Z)(ae,2),F=ye[0],T=ye[1],fe=(0,U.useDeferredValue)(F.trim()),Me=(0,U.useState)(null),je=(0,E.Z)(Me,2),Fe=je[0],Ue=je[1],Ge=(0,U.useRef)(null),rt=(0,U.useRef)({elements:[],files:null}),it=Ci(),lt=function(){var jt=Ge.current;if(jt){var ct=jt.parentElement;ct&&(ct.style.background="",Ue(null),jt.replaceChildren())}};(0,U.useEffect)(function(){var jt=function(){var ct=(0,h.Z)(u().mark(function xt(){var Mt;return u().wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return Vt.next=2,e.e(4736).then(e.bind(e,1049));case 2:Mt=Vt.sent,K({loaded:!0,api:Mt});case 4:case"end":return Vt.stop()}},xt)}));return function(){return ct.apply(this,arguments)}}();jt()},[]),(0,U.useEffect)(function(){var jt=function(){try{var ct=localStorage.getItem(Jr);if(ct)return ct}catch(xt){console.error(xt)}return null}()||`flowchart TD + A[Christmas] -->|Get money| B(Go shopping) + B --> C{Let me think} + C -->|One| D[Laptop] + C -->|Two| E[iPhone] + C -->|Three| F[Car]`;T(jt)},[]),(0,U.useEffect)(function(){var jt=function(){var ct=(0,h.Z)(u().mark(function xt(){var Mt,Vt,Ht,Tt,Kt,hr;return u().wrap(function(Mr){for(;;)switch(Mr.prev=Mr.next){case 0:if(Mt=Ge.current,Vt=Mt?.parentElement,C.loaded&&Mt&&Vt&&C.api){Mr.next=4;break}return Mr.abrupt("return");case 4:if(fe){Mr.next=7;break}return lt(),Mr.abrupt("return");case 7:return Mr.prev=7,Mr.next=10,C.api.parseMermaidToExcalidraw(fe,{fontSize:f.n5});case 10:return Ht=Mr.sent,Tt=Ht.elements,Kt=Ht.files,Ue(null),rt.current={elements:(0,$r.wc)(Tt,{regenerateIds:!0}),files:Kt},Mr.next=17,(0,$r.NL)({elements:rt.current.elements,files:rt.current.files,exportPadding:f.qy,maxWidthOrHeight:Math.max(Vt.offsetWidth,Vt.offsetHeight)*window.devicePixelRatio});case 17:return hr=Mr.sent,Mr.next=20,(0,Ct._c)(hr);case 20:Vt.style.background="var(--default-bg-color)",Mt.replaceChildren(hr),Mr.next=28;break;case 24:Mr.prev=24,Mr.t0=Mr.catch(7),Vt.style.background="var(--default-bg-color)",fe&&Ue(Mr.t0.message);case 28:case"end":return Mr.stop()}},xt,null,[[7,24]])}));return function(){return ct.apply(this,arguments)}}();jt()},[fe,C]);var Yt=function(){it.setOpenDialog(null),function(jt){try{localStorage.setItem(Jr,jt)}catch(ct){console.error(ct)}}(F)};return(0,t.jsx)(Ot.V,{className:"dialog-mermaid",onCloseRequest:Yt,size:1200,title:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"dialog-mermaid-title",children:(0,R.t)("mermaid.title")}),(0,t.jsxs)("span",{className:"dialog-mermaid-desc",children:[(0,t.jsx)(Jt.Z,{i18nKey:"mermaid.description",flowchartLink:function(jt){return(0,t.jsx)("a",{href:"https://mermaid.js.org/syntax/flowchart.html",children:jt})},sequenceLink:function(jt){return(0,t.jsx)("a",{href:"https://mermaid.js.org/syntax/sequenceDiagram.html",children:jt})}}),(0,t.jsx)("br",{})]})]}),children:(0,t.jsxs)("div",{className:"dialog-mermaid-body",children:[(0,t.jsxs)("div",{className:"dialog-mermaid-panels",children:[(0,t.jsxs)("div",{className:"dialog-mermaid-panels-text",children:[(0,t.jsx)("label",{children:(0,R.t)("mermaid.syntax")}),(0,t.jsx)("textarea",{onChange:function(jt){return T(jt.target.value)},value:F})]}),(0,t.jsxs)("div",{className:"dialog-mermaid-panels-preview",children:[(0,t.jsx)("label",{children:(0,R.t)("mermaid.preview")}),(0,t.jsxs)("div",{className:"dialog-mermaid-panels-preview-wrapper",children:[Fe&&(0,t.jsx)(hn,{error:Fe}),C.loaded?(0,t.jsx)("div",{ref:Ge,style:{opacity:Fe?"0.15":1},className:"dialog-mermaid-panels-preview-canvas-container"}):(0,t.jsx)(Ir.Z,{size:"2rem"})]})]})]}),(0,t.jsx)("div",{className:"dialog-mermaid-buttons",children:(0,t.jsxs)(Yr.z,{className:"dialog-mermaid-insert",onSelect:function(){var jt=rt.current,ct=jt.elements,xt=jt.files;it.addElementsFromPasteOrLibrary({elements:ct,files:xt,position:"center",fitToContent:!0}),Yt()},children:[(0,R.t)("mermaid.button"),(0,t.jsx)("span",{children:$.LZ})]})})]})})},kn=e(7930),En={};En.styleTagTransform=Ye(),En.setAttributes=Ze(),En.insert=be().bind(null,"head"),En.domAPI=ee(),En.insertStyleElement=Ie(),X()(kn.Z,En),kn.Z&&kn.Z.locals&&kn.Z.locals;var io=function(r){var d=r.manager,C=(0,U.useRef)(null);return(0,U.useEffect)(function(){return C.current&&d.start(C.current),function(){d.stop()}},[d]),(0,t.jsx)("div",{className:"LaserToolOverlay",children:(0,t.jsx)("svg",{ref:C,className:"LaserToolOverlayCanvas"})})},Gn,So,Mo,po;function jn([r,d,C],[K,ae,ye]){return[r+K,d+ae,C+ye]}function bo([r,d,C],[K,ae,ye]){return[r-K,d-ae,C-ye]}function Pn([r,d,C],K){return[r*K,d*K,C*K]}function lo([r,d,C]){return[r/Math.sqrt(r**2+d**2),d/Math.sqrt(r**2+d**2),C]}function zn([r,d,C],K){return[Math.cos(K)*r-Math.sin(K)*d,Math.sin(K)*r+Math.cos(K)*d,C]}function oa(r,d,C){return Math.atan2(C[1]-r[1],C[0]-r[0])-Math.atan2(d[1]-r[1],d[0]-r[0])}function yo(r){return Math.atan2(Math.sin(r),Math.cos(r))}function aa([r,d]){return Math.sqrt(r**2+d**2)}function co([r,d],[C,K]){return Math.sqrt((C-r)**2+(K-d)**2)}Gn={},So="LaserPointer",Mo=()=>ho,Object.defineProperty(Gn,So,{get:Mo,set:po,enumerable:!0,configurable:!0});function Xa(r,d,C){const K=co(d,C);if(K===0)return co(r,d);const ae=((ye,F,T)=>Math.max(F,Math.min(T,ye)))(((r[0]-d[0])*(C[0]-d[0])+(r[1]-d[1])*(C[1]-d[1]))/K**2,0,1);return co([d[0]+ae*(C[0]-d[0]),d[1]+ae*(C[1]-d[1]),r[2]],r)}function ia(r,d){if(d===0||r.length<=2)return r;const C=r[0],K=r[r.length-1],[ae,ye]=r.reduce(([F,T],fe,Me)=>{const je=Xa(fe,C,K);return je>F?[je,Me]:[F,T]},[0,-1]);if(ae>=d){const F=r[ye];return[...ia([C,...r.slice(1,ye),F],d).slice(0,-1),F,...ia([F,...r.slice(ye,-1),K],d).slice(1)]}return[C,K]}class ho{static#e=(()=>{this.defaults={size:2,streamline:.45,simplify:.1,simplifyPhase:"output",sizeMapping:()=>1}})();static#t=(()=>{this.constants={cornerDetectionMaxAngle:120,cornerDetectionVariance:d=>d>35?.5:1,maxTailLength:50}})();constructor(d){this.originalPoints=[],this.stablePoints=[],this.tailPoints=[],this.isFresh=!0,this.options=Object.assign({},ho.defaults,d)}get lastPoint(){return this.tailPoints[this.tailPoints.length-1]??this.stablePoints[this.stablePoints.length-1]}addPoint(d){const C=this.originalPoints[this.originalPoints.length-1];if(!C||C[0]!==d[0]||C[1]!==d[1]){if(this.originalPoints.push(d),this.isFresh)return this.isFresh=!1,void this.stablePoints.push(d);var K,ae,ye;this.options.streamline>0&&(K=this.lastPoint,ae=d,ye=1-this.options.streamline,d=jn(K,Pn(bo(ae,K),ye))),this.tailPoints.push(d),function(F){if(F.length<2)return 0;let T=0;for(let fe=1;fe<=F.length-1;fe++)T+=co(F[fe-1],F[fe]);return T+=co(F[F.length-2],F[F.length-1]),T}(this.tailPoints)>ho.constants.maxTailLength&&this.stabilizeTail()}}close(){this.stabilizeTail()}stabilizeTail(){if(this.options.simplify>0&&this.options.simplifyPhase=="tail")throw new Error("Not implemented yet");this.stablePoints.push(...this.tailPoints),this.tailPoints=[]}getSize(d,C,K,ae,ye){return(d??this.options.size)*this.options.sizeMapping({pressure:C,runningLength:ye,currentIndex:K,totalLength:ae})}getStrokeOutline(d){if(this.isFresh)return[];let C=[...this.stablePoints,...this.tailPoints];this.options.simplify>0&&this.options.simplifyPhase==="input"&&(C=ia(C,this.options.simplify));const K=C.length;if(K===0)return[];if(K===1){const Ht=C[0],Tt=[];for(let Kt=0;Kt<=2*Math.PI;Kt+=Math.PI/16)Tt.push(jn(Ht,Pn(zn([1,0,0],Kt),this.getSize(d,Ht[2],0,K,0))));return Tt.push(jn(Ht,Pn([1,0,0],this.getSize(d,Ht[2],0,K,0)))),Tt}if(K===2){const Ht=C[0],Tt=C[1],Kt=[],hr=oa(Ht,[Ht[0],Ht[1]-100,Ht[2]],Tt);for(let Mr=hr;Mr<=Math.PI+hr;Mr+=Math.PI/16)Kt.push(jn(Ht,Pn(zn([1,0,0],Mr),this.getSize(d,Ht[2],0,K,0))));for(let Mr=Math.PI+hr;Mr<=2*Math.PI+hr;Mr+=Math.PI/16)Kt.push(jn(Tt,Pn(zn([1,0,0],Mr),this.getSize(d,Tt[2],0,K,0))));return Kt.push(Kt[0]),Kt}const ae=[],ye=[];let F=0,T=0,fe=0,Me=0;for(let Ht=1;Ht<K-1;Ht++){const Tt=C[Ht-1],Kt=C[Ht],hr=C[Ht+1];let Mr=Kt[2];const Nr=co(Tt,Kt);Me+=Nr,F=T+.2*(Nr-T);const Kr=this.getSize(d,Mr,Ht,K,Me);if(Kr===0){fe=Ht+1;continue}const tn=lo(bo(Tt,Kt)),Qr=lo(bo(hr,Kt)),Pr=zn(tn,Math.PI/2),on=zn(tn,-Math.PI/2),Br=zn(Qr,Math.PI/2),en=zn(Qr,-Math.PI/2),gn=jn(Kt,Pn(Pr,Kr)),xn=jn(Kt,Pn(on,Kr)),pn=jn(Kt,Pn(Br,Kr)),Tn=jn(Kt,Pn(en,Kr)),Xr=jn(Pr,en),cn=jn(on,Br),Wn=jn(Kt,Pn(aa(Xr)===0?tn:lo(Xr),Kr)),In=jn(Kt,Pn(aa(cn)===0?Qr:lo(cn),Kr)),Fn=yo(oa(Kt,Tt,hr)),vn=ho.constants.cornerDetectionMaxAngle/180*Math.PI*ho.constants.cornerDetectionVariance(F);if(Math.abs(Fn)<vn){const Nn=Math.abs(yo(Math.PI-Fn));if(Nn===0)continue;if(Fn<0){ye.push(xn,In);for(let Dn=0;Dn<=Nn;Dn+=Nn/4)ae.push(jn(Kt,zn(Pn(Pr,Kr),Dn)));for(let Dn=Nn;Dn>=0;Dn-=Nn/4)ye.push(jn(Kt,zn(Pn(Pr,Kr),Dn)));ye.push(In,pn)}else{ae.push(gn,Wn);for(let Dn=0;Dn<=Nn;Dn+=Nn/4)ye.push(jn(Kt,zn(Pn(Pr,-Kr),-Dn)));for(let Dn=Nn;Dn>=0;Dn-=Nn/4)ae.push(jn(Kt,zn(Pn(Pr,-Kr),-Dn)));ae.push(Wn,Tn)}}else ae.push(Wn),ye.push(In);T=F}const je=C[fe],Fe=C[fe+1],Ue=C[K-2],Ge=C[K-1];if(fe>=K-2)return[];const rt=lo(bo(Fe,je)),it=lo(bo(Ue,Ge)),lt=zn(rt,-Math.PI/2),Yt=zn(it,Math.PI/2),jt=this.getSize(d,je[2],0,K,0),ct=[],xt=this.getSize(d,Ue[2],K-2,K,Me),Mt=[];for(let Ht=0;Ht<=Math.PI;Ht+=Math.PI/16)ct.unshift(jn(je,zn(Pn(lt,jt),-Ht)));ct.unshift(jn(je,Pn(lt,-jt)));for(let Ht=0;Ht<=Math.PI;Ht+=Math.PI/16)Mt.push(jn(Ge,zn(Pn(Yt,-xt),-Ht)));const Vt=[...ct,...ae,...Mt.reverse(),...ye.reverse()];return ct.length>0&&Vt.push(ct[0]),this.options.simplify>0&&this.options.simplifyPhase==="output"?ia(Vt,this.options.simplify):Vt}}var ki=e(957);function qa(r,d){var C=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!C){if(Array.isArray(r)||(C=function(fe,Me){if(fe){if(typeof fe=="string")return $a(fe,Me);var je=Object.prototype.toString.call(fe).slice(8,-1);if(je==="Object"&&fe.constructor&&(je=fe.constructor.name),je==="Map"||je==="Set")return Array.from(fe);if(je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je))return $a(fe,Me)}}(r))||d&&r&&typeof r.length=="number"){C&&(r=C);var K=0,ae=function(){};return{s:ae,n:function(){return K>=r.length?{done:!0}:{done:!1,value:r[K++]}},e:function(fe){throw fe},f:ae}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ye,F=!0,T=!1;return{s:function(){C=C.call(r)},n:function(){var fe=C.next();return F=fe.done,fe},e:function(fe){T=!0,ye=fe},f:function(){try{F||C.return==null||C.return()}finally{if(T)throw ye}}}}function $a(r,d){(d==null||d>r.length)&&(d=r.length);for(var C=0,K=new Array(d);C<d;C++)K[C]=r[C];return K}var Ja=1e3,la=function(r,d){return(r+d)/2};function Qa(r){return 1-Math.pow(1-r,3)}function jo(){return{currentPath:void 0,finishedPaths:[],lastPoint:[-1e4,-1e4],svg:document.createElementNS("http://www.w3.org/2000/svg","path")}}function Lo(){return ho.constants.cornerDetectionMaxAngle=70,new ho({simplify:0,streamline:.4,sizeMapping:function(r){var d=Math.max(0,1-(performance.now()-r.pressure)/1e3),C=(50-Math.min(50,r.totalLength-r.currentIndex))/50;return Math.min(Qa(C),Qa(d))}})}var ei=function(){function r(d){(0,S.Z)(this,r),this.app=d,this.collaboratorsState=new Map,this.isDrawing=!1,this.isRunning=!1,this.ownState=jo()}return(0,I.Z)(r,[{key:"destroy",value:function(){this.stop(),this.isDrawing=!1,this.ownState=jo(),this.collaboratorsState=new Map}},{key:"startPath",value:function(d,C){this.ownState.currentPath=Lo(),this.ownState.currentPath.addPoint([d,C,performance.now()]),this.updatePath(this.ownState)}},{key:"addPointToPath",value:function(d,C){var K;this.ownState.currentPath&&((K=this.ownState.currentPath)===null||K===void 0||K.addPoint([d,C,performance.now()]),this.updatePath(this.ownState))}},{key:"endPath",value:function(){this.ownState.currentPath&&(this.ownState.currentPath.close(),this.ownState.finishedPaths.push(this.ownState.currentPath),this.updatePath(this.ownState))}},{key:"updatePath",value:function(d){this.isDrawing=!0,this.isRunning||this.start()}},{key:"start",value:function(d){d&&(this.container=d,this.container.appendChild(this.ownState.svg)),this.stop(),this.isRunning=!0,this.loop()}},{key:"stop",value:function(){this.isRunning=!1,this.rafId&&cancelAnimationFrame(this.rafId),this.rafId=void 0}},{key:"loop",value:function(){this.rafId=requestAnimationFrame(this.loop.bind(this)),this.updateCollabolatorsState(),this.isDrawing?this.update():this.isRunning=!1}},{key:"draw",value:function(d){var C=this;return function(K){var ae=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],ye=K.length;if(ye<4)return"";for(var F=K[0],T=K[1],fe=K[2],Me="M".concat(F[0].toFixed(2),",").concat(F[1].toFixed(2)," Q").concat(T[0].toFixed(2),",").concat(T[1].toFixed(2)," ").concat(la(T[0],fe[0]).toFixed(2),",").concat(la(T[1],fe[1]).toFixed(2)," T"),je=2,Fe=ye-1;je<Fe;je++)F=K[je],T=K[je+1],Me+="".concat(la(F[0],T[0]).toFixed(2),",").concat(la(F[1],T[1]).toFixed(2)," ");return ae&&(Me+="Z"),Me}(d.getStrokeOutline(d.options.size/this.app.state.zoom.value).map(function(K){var ae=(0,E.Z)(K,2),ye=ae[0],F=ae[1],T=(0,s._i)({sceneX:ye,sceneY:F},C.app.state);return[T.x,T.y]}),!0)}},{key:"updateCollabolatorsState",value:function(){if(this.container&&this.app.state.collaborators.size){var d,C=qa(this.app.state.collaborators.entries());try{for(C.s();!(d=C.n()).done;){var K=(0,E.Z)(d.value,2),ae=K[0],ye=K[1];if(!this.collaboratorsState.has(ae)){var F=jo();this.container.appendChild(F.svg),this.collaboratorsState.set(ae,F),this.updatePath(F)}var T=this.collaboratorsState.get(ae);ye.pointer&&ye.pointer.tool==="laser"&&(ye.button==="down"&&T.currentPath===void 0&&(T.lastPoint=[ye.pointer.x,ye.pointer.y],T.currentPath=Lo(),T.currentPath.addPoint([ye.pointer.x,ye.pointer.y,performance.now()]),this.updatePath(T)),ye.button==="down"&&T.currentPath!==void 0&&(ye.pointer.x===T.lastPoint[0]&&ye.pointer.y===T.lastPoint[1]||(T.lastPoint=[ye.pointer.x,ye.pointer.y],T.currentPath.addPoint([ye.pointer.x,ye.pointer.y,performance.now()]),this.updatePath(T))),ye.button==="up"&&T.currentPath!==void 0&&(T.lastPoint=[ye.pointer.x,ye.pointer.y],T.currentPath.addPoint([ye.pointer.x,ye.pointer.y,performance.now()]),T.currentPath.close(),T.finishedPaths.push(T.currentPath),T.currentPath=void 0,this.updatePath(T)))}}catch(fe){C.e(fe)}finally{C.f()}}}},{key:"update",value:function(){var d=this;if(this.container){var C,K=!1,ae=qa(this.collaboratorsState.entries());try{for(ae.s();!(C=ae.n()).done;){var ye=(0,E.Z)(C.value,2),F=ye[0],T=ye[1];if(this.app.state.collaborators.has(F)){T.finishedPaths=T.finishedPaths.filter(function(je){var Fe=je.originalPoints[je.originalPoints.length-1];return!(Fe&&Fe[2]<performance.now()-Ja)});var fe=T.finishedPaths.map(function(je){return d.draw(je)}).join(" ");T.currentPath&&(fe+=" ".concat(this.draw(T.currentPath))),fe.trim()&&(K=!0),T.svg.setAttribute("d",fe),T.svg.setAttribute("fill",(0,ki.G)(F))}else T.svg.remove(),this.collaboratorsState.delete(F)}}catch(je){ae.e(je)}finally{ae.f()}this.ownState.finishedPaths=this.ownState.finishedPaths.filter(function(je){var Fe=je.originalPoints[je.originalPoints.length-1];return!(Fe&&Fe[2]<performance.now()-Ja)});var Me=this.ownState.finishedPaths.map(function(je){return d.draw(je)}).join(" ");this.ownState.currentPath&&(Me+=" ".concat(this.draw(this.ownState.currentPath))),(Me=Me.trim())&&(K=!0),this.ownState.svg.setAttribute("d",Me),this.ownState.svg.setAttribute("fill","red"),K||(this.isDrawing=!1)}}}]),r}(),Hn=function(){function r(d){var C;(0,S.Z)(this,r),this.subscribers=[],this.updateOnChangeOnly=(C=d?.updateOnChangeOnly)!==null&&C!==void 0&&C,this.value=d?.initialState}return(0,I.Z)(r,[{key:"on",value:function(){for(var d,C=this,K=arguments.length,ae=new Array(K),ye=0;ye<K;ye++)ae[ye]=arguments[ye];var F=ae.flat().filter(function(T){return typeof T=="function"});return(d=this.subscribers).push.apply(d,(0,y.Z)(F)),function(){return C.off(F)}}},{key:"off",value:function(){for(var d=arguments.length,C=new Array(d),K=0;K<d;K++)C[K]=arguments[K];var ae=C.flat();this.subscribers=this.subscribers.filter(function(ye){return!ae.includes(ye)})}},{key:"trigger",value:function(){for(var d=arguments.length,C=new Array(d),K=0;K<d;K++)C[K]=arguments[K];return this.updateOnChangeOnly&&this.value===C?[]:(this.value=C,this.subscribers.map(function(ae){return ae.apply(void 0,C)}))}},{key:"destroy",value:function(){this.subscribers=[],this.value=void 0}}]),r}();function xo(r,d){var C=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!C){if(Array.isArray(r)||(C=function(fe,Me){if(fe){if(typeof fe=="string")return Zo(fe,Me);var je=Object.prototype.toString.call(fe).slice(8,-1);if(je==="Object"&&fe.constructor&&(je=fe.constructor.name),je==="Map"||je==="Set")return Array.from(fe);if(je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je))return Zo(fe,Me)}}(r))||d&&r&&typeof r.length=="number"){C&&(r=C);var K=0,ae=function(){};return{s:ae,n:function(){return K>=r.length?{done:!0}:{done:!1,value:r[K++]}},e:function(fe){throw fe},f:ae}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ye,F=!0,T=!1;return{s:function(){C=C.call(r)},n:function(){var fe=C.next();return F=fe.done,fe},e:function(fe){T=!0,ye=fe},f:function(){try{F||C.return==null||C.return()}finally{if(T)throw ye}}}}function Zo(r,d){(d==null||d>r.length)&&(d=r.length);for(var C=0,K=new Array(d);C<d;C++)K[C]=r[C];return K}function ti(r){var d=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var C,K=(0,Z.Z)(r);if(d){var ae=(0,Z.Z)(this).constructor;C=Reflect.construct(K,arguments,ae)}else C=K.apply(this,arguments);return(0,M.Z)(this,C)}}function ca(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function Zt(r){for(var d=1;d<arguments.length;d++){var C=arguments[d]!=null?arguments[d]:{};d%2?ca(Object(C),!0).forEach(function(K){(0,H.Z)(r,K,C[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(C)):ca(Object(C)).forEach(function(K){Object.defineProperty(r,K,Object.getOwnPropertyDescriptor(C,K))})}return r}var sa=le().createContext(null),ua=le().createContext(null),da={viewport:{isMobile:!1,isLandscape:!1},editor:{isMobile:!1,canFitSidebar:!1},isTouchScreen:!1},fa=le().createContext(da);fa.displayName="DeviceContext";var Ei=le().createContext({container:null,id:null});Ei.displayName="ExcalidrawContainerContext";var Si=le().createContext([]);Si.displayName="ExcalidrawElementsContext";var ji=le().createContext(Zt(Zt({},(0,k.im)()),{},{width:0,height:0,offsetLeft:0,offsetTop:0}));ji.displayName="ExcalidrawAppStateContext";var _i=le().createContext(function(){console.warn("unitialized ExcalidrawSetAppStateContext context!")});_i.displayName="ExcalidrawSetAppStateContext";var Oi=le().createContext(null);Oi.displayName="ExcalidrawActionManagerContext";var Ci=function(){return(0,U.useContext)(sa)},Gi=function(){return(0,U.useContext)(ua)},ri=function(){return(0,U.useContext)(fa)},Ii=function(){return(0,U.useContext)(Ei)},Yi=function(){return(0,U.useContext)(Si)},Vi=function(){return(0,U.useContext)(ji)},Xi=function(){return(0,U.useContext)(_i)},Mi=function(){return(0,U.useContext)(Oi)},qi=typeof window<"u"&&"ResizeObserver"in window,Sa=!1,Pi=0,Vo=!1,ja=!1,Ti=!1,Di={horizontal:null,vertical:null},Ro=0,_a=!1,Ai=new Map,Li=!1,$i=0,Ji=!1,zo=null,fn={pointers:new Map,lastCenter:null,initialDistance:null,initialScale:null},Zi=function(r){(0,n.Z)(ye,r);var d,C,K,ae=ti(ye);function ye(F){var T;(0,S.Z)(this,ye),T=ae.call(this,F),tl.call((0,v.Z)(T));var fe,Me=(0,k.im)(),je=F.excalidrawAPI,Fe=F.viewModeEnabled,Ue=Fe!==void 0&&Fe,Ge=F.zenModeEnabled,rt=Ge!==void 0&&Ge,it=F.gridModeEnabled,lt=it!==void 0&&it,Yt=F.objectsSnapModeEnabled,jt=Yt!==void 0&&Yt,ct=F.theme,xt=ct===void 0?Me.theme:ct,Mt=F.name,Vt=Mt===void 0?Me.name:Mt;if(T.state=Zt(Zt(Zt({},Me),{},{theme:xt,isLoading:!0},T.getCanvasOffsets()),{},{viewModeEnabled:Ue,zenModeEnabled:rt,objectsSnapModeEnabled:jt,gridSize:lt?f.k:null,name:Vt,width:window.innerWidth,height:window.innerHeight}),T.id=(0,oe.x0)(),T.library=new G.ZP((0,v.Z)(T)),T.scene=new q.Z,T.canvas=document.createElement("canvas"),T.rc=he.Z.canvas(T.canvas),T.renderer=new Dr(T.scene),je){var Ht={updateScene:T.updateScene,updateLibrary:T.library.updateLibrary,addFiles:T.addFiles,resetScene:T.resetScene,getSceneElementsIncludingDeleted:T.getSceneElementsIncludingDeleted,history:{clear:T.resetHistory},scrollToContent:T.scrollToContent,getSceneElements:T.getSceneElements,getAppState:function(){return T.state},getFiles:function(){return T.files},refresh:T.refresh,setToast:T.setToast,id:T.id,setActiveTool:T.setActiveTool,setCursor:T.setCursor,resetCursor:T.resetCursor,updateFrameRendering:T.updateFrameRendering,toggleSidebar:T.toggleSidebar,onChange:function(Tt){return T.onChangeEmitter.on(Tt)},onPointerDown:function(Tt){return T.onPointerDownEmitter.on(Tt)},onPointerUp:function(Tt){return T.onPointerUpEmitter.on(Tt)}};typeof je=="function"?je(Ht):console.error("excalidrawAPI should be a function!")}return T.excalidrawContainerValue={container:T.excalidrawContainerRef.current,id:T.id},T.fonts=new Ha({scene:T.scene,onSceneUpdated:T.onSceneUpdated}),T.history=new _e,T.actionManager=new z(T.syncActionResult,function(){return T.state},function(){return T.scene.getElementsIncludingDeleted()},(0,v.Z)(T)),T.actionManager.registerAll(j.N),T.actionManager.registerAction((fe=T.history,{name:"undo",trackEvent:{category:"history"},perform:function(Tt,Kt){return a(Tt,Kt,function(){return fe.undoOnce()})},keyTest:function(Tt){return Tt[_.tW.CTRL_OR_CMD]&&Tt.key.toLowerCase()===_.tW.Z&&!Tt.shiftKey},PanelComponent:function(Tt){var Kt=Tt.updateData,hr=Tt.data;return(0,t.jsx)(b.V,{type:"button",icon:$.UE,"aria-label":(0,R.t)("buttons.undo"),onClick:Kt,size:hr?.size||"medium"})},commitToHistory:function(){return!1}})),T.actionManager.registerAction(function(Tt){return{name:"redo",trackEvent:{category:"history"},perform:function(Kt,hr){return a(Kt,hr,function(){return Tt.redoOnce()})},keyTest:function(Kt){return Kt[_.tW.CTRL_OR_CMD]&&Kt.shiftKey&&Kt.key.toLowerCase()===_.tW.Z||f.ED&&Kt.ctrlKey&&!Kt.shiftKey&&Kt.key===_.tW.Y},PanelComponent:function(Kt){var hr=Kt.updateData,Mr=Kt.data;return(0,t.jsx)(b.V,{type:"button",icon:$.zG,"aria-label":(0,R.t)("buttons.redo"),onClick:hr,size:Mr?.size||"medium"})},commitToHistory:function(){return!1}}}(T.history)),T}return(0,I.Z)(ye,[{key:"onWindowMessage",value:function(F){if(F.origin==="https://player.vimeo.com"||F.origin==="https://www.youtube.com"){var T=null;try{T=JSON.parse(F.data)}catch{}if(T)switch(F.origin){case"https://player.vimeo.com":if(T.method==="paused"){var fe,Me=null,je=document.body.querySelectorAll("iframe.excalidraw__embeddable");if(!je)break;var Fe,Ue=xo(je);try{for(Ue.s();!(Fe=Ue.n()).done;){var Ge=Fe.value;Ge.contentWindow===F.source&&(Me=Ge.contentWindow)}}catch(lt){Ue.e(lt)}finally{Ue.f()}(fe=Me)===null||fe===void 0||fe.postMessage(JSON.stringify({method:T.value?"play":"pause",value:!0}),"*")}break;case"https://www.youtube.com":if(T.event==="infoDelivery"&&T.info&&T.id&&typeof T.info.playerState=="number"){var rt=T.id,it=T.info.playerState;Object.values(f.vf).includes(it)&&Ai.set(rt,it)}}}}},{key:"updateEmbeddableRef",value:function(F,T){T&&this.iFrameRefs.set(F,T)}},{key:"getHTMLIFrameElement",value:function(F){return this.iFrameRefs.get(F)}},{key:"handleEmbeddableCenterClick",value:function(F){var T,fe,Me,je,Fe=this;if(((T=this.state.activeEmbeddable)===null||T===void 0?void 0:T.element)!==F||((fe=this.state.activeEmbeddable)===null||fe===void 0?void 0:fe.state)!=="active"){setTimeout(function(){Fe.setState({activeEmbeddable:{element:F,state:"active"},selectedElementIds:(0,H.Z)({},F.id,!0),draggingElement:null,selectionElement:null})},100);var Ue=this.getHTMLIFrameElement(F.id);if(Ue!=null&&Ue.contentWindow){if(Ue.src.includes("youtube")){var Ge=Ai.get(F.id);switch(Ge||(Ai.set(F.id,f.vf.UNSTARTED),Ue.contentWindow.postMessage(JSON.stringify({event:"listening",id:F.id}),"*")),Ge){case f.vf.PLAYING:case f.vf.BUFFERING:(Me=Ue.contentWindow)===null||Me===void 0||Me.postMessage(JSON.stringify({event:"command",func:"pauseVideo",args:""}),"*");break;default:(je=Ue.contentWindow)===null||je===void 0||je.postMessage(JSON.stringify({event:"command",func:"playVideo",args:""}),"*")}}Ue.src.includes("player.vimeo.com")&&Ue.contentWindow.postMessage(JSON.stringify({method:"paused"}),"*")}}}},{key:"isEmbeddableCenter",value:function(F,T,fe,Me){var je,Fe;return F&&!T.altKey&&!T.shiftKey&&!T.metaKey&&!T.ctrlKey&&(((je=this.state.activeEmbeddable)===null||je===void 0?void 0:je.element)!==F||((Fe=this.state.activeEmbeddable)===null||Fe===void 0?void 0:Fe.state)==="hover"||!this.state.activeEmbeddable)&&fe>=F.x+F.width/3&&fe<=F.x+2*F.width/3&&Me>=F.y+F.height/3&&Me<=F.y+2*F.height/3}},{key:"renderEmbeddables",value:function(){var F=this,T=this.state.zoom.value,fe=this.state.width,Me=this.state.height,je=this.scene.getNonDeletedElements().filter(function(Fe){return(0,L.gs)(Fe)&&!!Fe.validated});return(0,t.jsx)(t.Fragment,{children:je.map(function(Fe){var Ue,Ge,rt,it,lt,Yt,jt,ct,xt=(0,s._i)({sceneX:Fe.x,sceneY:Fe.y},F.state),Mt=xt.x,Vt=xt.y,Ht=(0,p.LM)((0,Ko.ye)(Fe.link||"")),Tt=(0,Oe.PZ)(Fe,fe,Me,F.state),Kt=((Ue=F.state.activeEmbeddable)===null||Ue===void 0?void 0:Ue.element)===Fe&&((Ge=F.state.activeEmbeddable)===null||Ge===void 0?void 0:Ge.state)==="active",hr=((rt=F.state.activeEmbeddable)===null||rt===void 0?void 0:rt.element)===Fe&&((it=F.state.activeEmbeddable)===null||it===void 0?void 0:it.state)==="hover";return(0,t.jsx)("div",{className:(0,pe.Z)("excalidraw__embeddable-container",{"is-hovered":hr}),style:(0,H.Z)({transform:Tt?"translate(".concat(Mt-F.state.offsetLeft,"px, ").concat(Vt-F.state.offsetTop,"px) scale(").concat(T,")"):"none",display:Tt?"block":"none",opacity:Fe.opacity/100},"--embeddable-radius","".concat((0,J.yW)(Math.min(Fe.width,Fe.height),Fe),"px")),children:(0,t.jsxs)("div",{className:"excalidraw__embeddable-container__inner",style:{width:Tt?"".concat(Fe.width,"px"):0,height:Tt?"".concat(Fe.height,"px"):0,transform:Tt?"rotate(".concat(Fe.angle,"rad)"):"none",pointerEvents:Kt?f.XI.enabled:f.XI.disabled},children:[hr&&(0,t.jsx)("div",{className:"excalidraw__embeddable-hint",children:(0,R.t)("buttons.embeddableInteractionButton")}),(0,t.jsx)("div",{className:"excalidraw__embeddable__outer",style:{padding:"".concat(Fe.strokeWidth,"px")},children:(lt=(Yt=(jt=F.props).renderEmbeddable)===null||Yt===void 0?void 0:Yt.call(jt,Fe,F.state))!==null&<!==void 0?lt:(0,t.jsx)("iframe",{ref:function(Mr){return F.updateEmbeddableRef(Fe.id,Mr)},className:"excalidraw__embeddable",srcDoc:Ht?.type==="document"?Ht.srcdoc(F.state.theme):void 0,src:Ht?.type!=="document"?(ct=Ht?.link)!==null&&ct!==void 0?ct:"":void 0,scrolling:"no",referrerPolicy:"no-referrer-when-downgrade",title:"Excalidraw Embedded Content",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,sandbox:"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-presentation allow-downloads"})})]})},Fe.id)})})}},{key:"render",value:function(){var F,T,fe,Me=this,je=this.scene.getSelectedElements(this.state),Fe=this.props,Ue=Fe.renderTopRightUI,Ge=Fe.renderCustomStats,rt=this.scene.getVersionNonce(),it=this.renderer.getRenderableElements({versionNonce:rt,zoom:this.state.zoom,offsetLeft:this.state.offsetLeft,offsetTop:this.state.offsetTop,scrollX:this.state.scrollX,scrollY:this.state.scrollY,height:this.state.height,width:this.state.width,editingElement:this.state.editingElement,pendingImageElementId:this.state.pendingImageElementId}),lt=it.canvasElements,Yt=it.visibleElements,jt=!(this.state.editingElement&&(0,L.bt)(this.state.editingElement))&&(this.state.selectionElement||this.state.draggingElement||this.state.resizingElement||this.state.activeTool.type==="laser"&&this.state.cursorButton==="down"||this.state.editingElement&&!(0,V.iB)(this.state.editingElement));return(0,t.jsx)("div",{className:(0,pe.Z)("excalidraw excalidraw-container",{"excalidraw--view-mode":this.state.viewModeEnabled,"excalidraw--mobile":this.device.editor.isMobile}),style:(0,H.Z)({},"--ui-pointerEvents",jt?f.XI.disabled:f.XI.enabled),ref:this.excalidrawContainerRef,onDrop:this.handleAppOnDrop,tabIndex:0,onKeyDown:this.props.handleKeyboardGlobally?void 0:this.onKeyDown,children:(0,t.jsx)(sa.Provider,{value:this,children:(0,t.jsx)(ua.Provider,{value:this.props,children:(0,t.jsx)(Ei.Provider,{value:this.excalidrawContainerValue,children:(0,t.jsx)(fa.Provider,{value:this.device,children:(0,t.jsx)(_i.Provider,{value:this.setAppState,children:(0,t.jsx)(ji.Provider,{value:this.state,children:(0,t.jsxs)(Si.Provider,{value:this.scene.getNonDeletedElements(),children:[(0,t.jsxs)(Oi.Provider,{value:this.actionManager,children:[(0,t.jsxs)(hi,{canvas:this.canvas,appState:this.state,files:this.files,setAppState:this.setAppState,actionManager:this.actionManager,elements:this.scene.getNonDeletedElements(),onLockToggle:this.toggleLock,onPenModeToggle:this.togglePenMode,onHandToolToggle:this.onHandToolToggle,langCode:(0,R.G3)().code,renderTopRightUI:Ue,renderCustomStats:Ge,showExitZenModeBtn:((F=this.props)===null||F===void 0?void 0:F.zenModeEnabled)===void 0&&this.state.zenModeEnabled,UIOptions:this.props.UIOptions,onExportImage:this.onExportImage,renderWelcomeScreen:!this.state.isLoading&&this.state.showWelcomeScreen&&this.state.activeTool.type==="selection"&&!this.state.zenModeEnabled&&!this.scene.getElementsIncludingDeleted().length,app:this,isCollaborating:this.props.isCollaborating,children:[this.props.children,this.state.openDialog==="mermaid"&&(0,t.jsx)(ln,{})]}),(0,t.jsx)("div",{className:"excalidraw-textEditorContainer"}),(0,t.jsx)("div",{className:"excalidraw-contextMenuContainer"}),(0,t.jsx)("div",{className:"excalidraw-eye-dropper-container"}),(0,t.jsx)(io,{manager:this.laserPathManager}),je.length===1&&!this.state.contextMenu&&this.state.showHyperlinkPopup&&(0,t.jsx)(Io.nW,{element:je[0],setAppState:this.setAppState,onLinkOpen:this.props.onLinkOpen,setToast:this.setToast},je[0].id),this.state.toast!==null&&(0,t.jsx)(mi,{message:this.state.toast.message,onClose:function(){return Me.setToast(null)},duration:this.state.toast.duration,closable:this.state.toast.closable}),this.state.contextMenu&&(0,t.jsx)(He,{items:this.state.contextMenu.items,top:this.state.contextMenu.top,left:this.state.contextMenu.left,actionManager:this.actionManager,onClose:function(ct){Me.setState({contextMenu:null},function(){Me.focusContainer(),ct?.()})}}),(0,t.jsx)(dr,{canvas:this.canvas,rc:this.rc,elements:lt,visibleElements:Yt,versionNonce:rt,selectionNonce:(T=this.state.selectionElement)===null||T===void 0?void 0:T.versionNonce,scale:window.devicePixelRatio,appState:this.state,renderConfig:{imageCache:this.imageCache,isExporting:!1,renderGrid:!0}}),(0,t.jsx)(er,{containerRef:this.excalidrawContainerRef,canvas:this.interactiveCanvas,elements:lt,visibleElements:Yt,selectedElements:je,versionNonce:rt,selectionNonce:(fe=this.state.selectionElement)===null||fe===void 0?void 0:fe.versionNonce,scale:window.devicePixelRatio,appState:this.state,renderInteractiveSceneCallback:this.renderInteractiveSceneCallback,handleCanvasRef:this.handleInteractiveCanvasRef,onContextMenu:this.handleCanvasContextMenu,onPointerMove:this.handleCanvasPointerMove,onPointerUp:this.handleCanvasPointerUp,onPointerCancel:this.removePointer,onTouchMove:this.handleTouchMove,onPointerDown:this.handleCanvasPointerDown,onDoubleClick:this.handleCanvasDoubleClick}),this.renderFrameNames()]}),this.renderEmbeddables()]})})})})})})})})}},{key:"componentDidMount",value:(K=(0,h.Z)(u().mark(function F(){var T,fe=this;return u().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:this.unmounted=!1,this.excalidrawContainerValue.container=this.excalidrawContainerRef.current,f.Vi.TEST==="production"&&(this.setState.bind(this),Object.defineProperties(window.h,{state:{configurable:!0,get:function(){return fe.state}},setState:{configurable:!0,value:function(){return fe.setState.apply(fe,arguments)}},app:{configurable:!0,value:this},history:{configurable:!0,value:this.history}})),this.scene.addCallback(this.onSceneUpdated),this.addEventListeners(),this.props.autoFocus&&this.excalidrawContainerRef.current&&this.focusContainer(),(0,s.h2)()||(this.refreshViewportBreakpoints(),this.refreshEditorBreakpoints()),qi&&this.excalidrawContainerRef.current&&(this.resizeObserver=new ResizeObserver(function(){fe.refreshEditorBreakpoints(),fe.updateDOMRect()}),(T=this.resizeObserver)===null||T===void 0||T.observe(this.excalidrawContainerRef.current)),new URLSearchParams(window.location.search.slice(1)).has("web-share-target")?this.restoreFileFromShare():this.updateDOMRect(this.initializeScene),(0,f.jP)()&&!(0,et.eB)()&&this.setState({errorMessage:(0,t.jsx)(Nt,{})});case 11:case"end":return Me.stop()}},F,this)})),function(){return K.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){var F;this.renderer.destroy(),this.scene=new q.Z,this.renderer=new Dr(this.scene),this.files={},this.imageCache.clear(),(F=this.resizeObserver)===null||F===void 0||F.disconnect(),this.unmounted=!0,this.removeEventListeners(),this.scene.destroy(),this.library.destroy(),this.laserPathManager.destroy(),this.onChangeEmitter.destroy(),Eo.R.destroy(),Cn.destroy(),clearTimeout(Ro),ke.N.clearCache(),We.bO.clearCache(),Ro=0}},{key:"removeEventListeners",value:function(){var F,T,fe,Me;document.removeEventListener(f.Ks.POINTER_UP,this.removePointer),document.removeEventListener(f.Ks.COPY,this.onCopy),document.removeEventListener(f.Ks.PASTE,this.pasteFromClipboard),document.removeEventListener(f.Ks.CUT,this.onCut),(F=this.excalidrawContainerRef.current)===null||F===void 0||F.removeEventListener(f.Ks.WHEEL,this.onWheel),(T=this.nearestScrollableContainer)===null||T===void 0||T.removeEventListener(f.Ks.SCROLL,this.onScroll),document.removeEventListener(f.Ks.KEYDOWN,this.onKeyDown,!1),document.removeEventListener(f.Ks.MOUSE_MOVE,this.updateCurrentCursorPosition,!1),document.removeEventListener(f.Ks.KEYUP,this.onKeyUp),window.removeEventListener(f.Ks.RESIZE,this.onResize,!1),window.removeEventListener(f.Ks.UNLOAD,this.onUnload,!1),window.removeEventListener(f.Ks.BLUR,this.onBlur,!1),(fe=this.excalidrawContainerRef.current)===null||fe===void 0||fe.removeEventListener(f.Ks.DRAG_OVER,this.disableEvent,!1),(Me=this.excalidrawContainerRef.current)===null||Me===void 0||Me.removeEventListener(f.Ks.DROP,this.disableEvent,!1),document.removeEventListener(f.Ks.GESTURE_START,this.onGestureStart,!1),document.removeEventListener(f.Ks.GESTURE_CHANGE,this.onGestureChange,!1),document.removeEventListener(f.Ks.GESTURE_END,this.onGestureEnd,!1),window.removeEventListener(f.Ks.MESSAGE,this.onWindowMessage,!1)}},{key:"addEventListeners",value:function(){var F,T,fe,Me,je,Fe=this;this.removeEventListeners(),window.addEventListener(f.Ks.MESSAGE,this.onWindowMessage,!1),document.addEventListener(f.Ks.POINTER_UP,this.removePointer),document.addEventListener(f.Ks.COPY,this.onCopy),(F=this.excalidrawContainerRef.current)===null||F===void 0||F.addEventListener(f.Ks.WHEEL,this.onWheel,{passive:!1}),this.props.handleKeyboardGlobally&&document.addEventListener(f.Ks.KEYDOWN,this.onKeyDown,!1),document.addEventListener(f.Ks.KEYUP,this.onKeyUp,{passive:!0}),document.addEventListener(f.Ks.MOUSE_MOVE,this.updateCurrentCursorPosition),(T=document.fonts)===null||T===void 0||(fe=T.addEventListener)===null||fe===void 0||fe.call(T,"loadingdone",function(Ue){var Ge=Ue.fontfaces;Fe.fonts.onFontsLoaded(Ge)}),document.addEventListener(f.Ks.GESTURE_START,this.onGestureStart,!1),document.addEventListener(f.Ks.GESTURE_CHANGE,this.onGestureChange,!1),document.addEventListener(f.Ks.GESTURE_END,this.onGestureEnd,!1),this.state.viewModeEnabled||(document.addEventListener(f.Ks.PASTE,this.pasteFromClipboard),document.addEventListener(f.Ks.CUT,this.onCut),this.props.detectScroll&&(this.nearestScrollableContainer=(0,s.Ip)(this.excalidrawContainerRef.current),this.nearestScrollableContainer.addEventListener(f.Ks.SCROLL,this.onScroll)),window.addEventListener(f.Ks.RESIZE,this.onResize,!1),window.addEventListener(f.Ks.UNLOAD,this.onUnload,!1),window.addEventListener(f.Ks.BLUR,this.onBlur,!1),(Me=this.excalidrawContainerRef.current)===null||Me===void 0||Me.addEventListener(f.Ks.DRAG_OVER,this.disableEvent,!1),(je=this.excalidrawContainerRef.current)===null||je===void 0||je.addEventListener(f.Ks.DROP,this.disableEvent,!1))}},{key:"componentDidUpdate",value:function(F,T){var fe,Me,je,Fe,Ue=this;this.updateEmbeddables(),this.state.showWelcomeScreen||this.scene.getElementsIncludingDeleted().length||this.setState({showWelcomeScreen:!0}),F.UIOptions.dockedSidebarBreakpoint!==this.props.UIOptions.dockedSidebarBreakpoint&&this.refreshEditorBreakpoints(),(T.scrollX!==this.state.scrollX||T.scrollY!==this.state.scrollY)&&((je=this.props)===null||je===void 0||(Fe=je.onScrollChange)===null||Fe===void 0||Fe.call(je,this.state.scrollX,this.state.scrollY)),Object.keys(this.state.selectedElementIds).length&&(0,k.EN)(this.state)&&this.setState({activeTool:(0,s.Om)(this.state,{type:"selection"})}),this.state.activeTool.type==="eraser"&&T.theme!==this.state.theme&&(0,Gr.OF)(this.interactiveCanvas,this.state.theme),T.activeTool.type==="selection"&&this.state.activeTool.type!=="selection"&&this.state.showHyperlinkPopup&&this.setState({showHyperlinkPopup:!1}),F.langCode!==this.props.langCode&&this.updateLanguage(),F.viewModeEnabled!==this.props.viewModeEnabled&&this.setState({viewModeEnabled:!!this.props.viewModeEnabled}),T.viewModeEnabled!==this.state.viewModeEnabled&&(this.addEventListeners(),this.deselectElements()),F.zenModeEnabled!==this.props.zenModeEnabled&&this.setState({zenModeEnabled:!!this.props.zenModeEnabled}),F.theme!==this.props.theme&&this.props.theme&&this.setState({theme:this.props.theme}),F.gridModeEnabled!==this.props.gridModeEnabled&&this.setState({gridSize:this.props.gridModeEnabled?f.k:null}),this.props.name&&F.name!==this.props.name&&this.setState({name:this.props.name}),(fe=this.excalidrawContainerRef.current)===null||fe===void 0||fe.classList.toggle("theme--dark",this.state.theme==="dark"),this.state.editingLinearElement&&!this.state.selectedElementIds[this.state.editingLinearElement.elementId]&&setTimeout(function(){Ue.state.editingLinearElement&&Ue.actionManager.executeAction(P.pL)}),(Me=this.state.editingElement)!==null&&Me!==void 0&&Me.isDeleted&&this.setState({editingElement:null}),this.state.selectedLinearElement&&!this.state.selectedElementIds[this.state.selectedLinearElement.elementId]&&this.setState({selectedLinearElement:null});var Ge,rt,it=T.multiElement;T.activeTool!==this.state.activeTool&&it!=null&&(0,O.N1)(this.state)&&(0,L.Mn)(it,!1)&&(0,O.R)(it,this.state,this.scene,(0,s.AK)(ce._.getPointAtIndexGlobalCoordinates(it,-1))),this.history.record(this.state,this.scene.getElementsIncludingDeleted()),this.state.isLoading||((Ge=(rt=this.props).onChange)===null||Ge===void 0||Ge.call(rt,this.scene.getElementsIncludingDeleted(),this.state,this.files),this.onChangeEmitter.trigger(this.scene.getElementsIncludingDeleted(),this.state,this.files))}},{key:"addElementsFromMixedContentPaste",value:(C=(0,h.Z)(u().mark(function F(T,fe){var Me,je,Fe,Ue,Ge,rt,it,lt,Yt,jt,ct,xt,Mt,Vt,Ht;return u().wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:if(Me=fe.isPlainPaste,je=fe.sceneX,Fe=fe.sceneY,Me||!T.some(function(Kt){return Kt.type==="imageUrl"})||!this.isToolSupported("image")){Tt.next=35;break}return Ue=T.filter(function(Kt){return Kt.type==="imageUrl"}).map(function(Kt){return Kt.value}),Tt.next=5,Promise.all(Ue.map(function(){var Kt=(0,h.Z)(u().mark(function hr(Mr){return u().wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:return Nr.prev=0,Nr.next=3,(0,Ct._p)(Mr);case 3:return Nr.t0=Nr.sent,Nr.abrupt("return",{file:Nr.t0});case 7:return Nr.prev=7,Nr.t1=Nr.catch(0),Nr.abrupt("return",{errorMessage:Nr.t1.message});case 10:case"end":return Nr.stop()}},hr,null,[[0,7]])}));return function(hr){return Kt.apply(this,arguments)}}()));case 5:Ge=Tt.sent,rt=Fe,it=!1,lt={},Yt=xo(Ge),Tt.prev=10,Yt.s();case 12:if((jt=Yt.n()).done){Tt.next=22;break}if(!(ct=jt.value).file){Tt.next=20;break}return xt=this.createImageElement({sceneX:je,sceneY:rt}),Tt.next=18,this.insertImageElement(xt,ct.file);case 18:(Mt=Tt.sent)&&(it||(it=!0,rt-=Mt.height/2),(0,g.DR)(Mt,{y:rt},!1),rt=xt.y+xt.height+25,lt[xt.id]=!0);case 20:Tt.next=12;break;case 22:Tt.next=27;break;case 24:Tt.prev=24,Tt.t0=Tt.catch(10),Yt.e(Tt.t0);case 27:return Tt.prev=27,Yt.f(),Tt.finish(27);case 30:this.setState({selectedElementIds:(0,un.Oh)(lt,this.state)}),Vt=Ge.find(function(Kt){return!!Kt.errorMessage}),Vt&&Vt.errorMessage&&this.setState({errorMessage:Vt.errorMessage}),Tt.next=37;break;case 35:(Ht=T.filter(function(Kt){return Kt.type==="text"})).length&&this.addTextFromPaste(Ht.map(function(Kt){return Kt.value}).join(` + +`),Me);case 37:case"end":return Tt.stop()}},F,this,[[10,24,27,30]])})),function(F,T){return C.apply(this,arguments)})},{key:"addTextFromPaste",value:function(F){var T=this,fe=arguments.length>1&&arguments[1]!==void 0&&arguments[1],Me=(0,s.dE)({clientX:this.lastViewportPosition.x,clientY:this.lastViewportPosition.y},this.state),je=Me.x,Fe=Me.y,Ue={x:je,y:Fe,strokeColor:this.state.currentItemStrokeColor,backgroundColor:this.state.currentItemBackgroundColor,fillStyle:this.state.currentItemFillStyle,strokeWidth:this.state.currentItemStrokeWidth,strokeStyle:this.state.currentItemStrokeStyle,roundness:null,roughness:this.state.currentItemRoughness,opacity:this.state.currentItemOpacity,text:F,fontSize:this.state.currentItemFontSize,fontFamily:this.state.currentItemFontFamily,textAlign:this.state.currentItemTextAlign,verticalAlign:f.hs,locked:!1},Ge=10,rt=Fe,it=fe?[F]:F.split(` +`),lt=it.reduce(function(jt,ct,xt){var Mt=ct.trim(),Vt=(0,et.PT)(Ue.fontFamily);if(Mt.length){var Ht=T.getTopLayerFrameAtSceneCoords({x:je,y:rt}),Tt=(0,V.VL)(Zt(Zt({},Ue),{},{x:je,y:rt,text:Mt,lineHeight:Vt,frameId:Ht?Ht.id:null}));jt.push(Tt),rt+=Tt.height+Ge}else{var Kt;!((Kt=it[xt-1])===null||Kt===void 0)&&Kt.trim()&&(rt+=(0,et.Rg)(Ue.fontSize,Vt)+Ge)}return jt},[]);if(lt.length!==0){var Yt=lt[0].frameId;Yt?this.scene.insertElementsAtIndex(lt,this.scene.getElementIndex(Yt)):this.scene.replaceAllElements([].concat((0,y.Z)(this.scene.getElementsIncludingDeleted()),(0,y.Z)(lt))),this.setState({selectedElementIds:(0,un.Oh)(Object.fromEntries(lt.map(function(jt){return[jt.id,!0]})),this.state)}),!fe&<.length>1&&Ji===!1&&!this.device.editor.isMobile&&(this.setToast({message:(0,R.t)("toast.pasteAsSingleElement",{shortcut:(0,s.uY)("CtrlOrCmd+Shift+V")}),duration:5e3}),Ji=!0),this.history.resumeRecording()}}},{key:"handleTextWysiwyg",value:function(F,T){var fe=this,Me=T.isExistingElement,je=Me!==void 0&&Me,Fe=function(Ue,Ge,rt){fe.scene.replaceAllElements((0,y.Z)(fe.scene.getElementsIncludingDeleted().map(function(it){return it.id===F.id&&(0,V.iB)(it)?(0,V.N_)(it,{text:Ue,isDeleted:rt,originalText:Ge}):it})))};(0,V.b_)({id:F.id,canvas:this.canvas,getViewportCoords:function(Ue,Ge){var rt=(0,s._i)({sceneX:Ue,sceneY:Ge},fe.state),it=rt.x,lt=rt.y;return[it-fe.state.offsetLeft,lt-fe.state.offsetTop]},onChange:(0,s.tH)(function(Ue){Fe(Ue,Ue,!1),(0,V.qP)(F)&&(0,O.Ww)(F)}),onSubmit:(0,s.tH)(function(Ue){var Ge=Ue.text,rt=Ue.viaKeyboard,it=Ue.originalText,lt=!Ge.trim();if(Fe(Ge,it,lt),!lt&&rt){var Yt=F.containerId?F.containerId:F.id;fe.setState(function(jt){return{selectedElementIds:(0,un.Oh)(Zt(Zt({},jt.selectedElementIds),{},(0,H.Z)({},Yt,!0)),jt)}})}lt&&(0,O.$q)(fe.scene.getNonDeletedElements(),[F]),lt&&!je||fe.history.resumeRecording(),fe.setState({draggingElement:null,editingElement:null}),fe.state.activeTool.locked&&(0,Gr.Uk)(fe.interactiveCanvas,fe.state),fe.focusContainer()}),element:F,excalidrawContainer:this.excalidrawContainerRef.current,app:this}),this.deselectElements(),Fe(F.text,F.originalText,!1)}},{key:"deselectElements",value:function(){this.setState({selectedElementIds:(0,un.Oh)({},this.state),selectedGroupIds:{},editingGroupId:null,activeEmbeddable:null})}},{key:"getTextElementAtPosition",value:function(F,T){var fe=this.getElementAtPosition(F,T,{includeBoundTextElement:!0});return fe&&(0,V.iB)(fe)&&!fe.isDeleted?fe:null}},{key:"getElementAtPosition",value:function(F,T,fe){var Me=this.getElementsAtPosition(F,T,fe?.includeBoundTextElement,fe?.includeLockedElements);if(Me.length>1){if(fe!=null&&fe.preferSelected){for(var je=Me.length-1;je>-1;je--)if(this.state.selectedElementIds[Me[je].id])return Me[je]}var Fe=Me[Me.length-1];return(0,V.wB)(Fe,this.state,this.frameNameBoundsCache,F,T)?Me[Me.length-2]:Fe}return Me.length===1?Me[0]:null}},{key:"getElementsAtPosition",value:function(F,T){var fe=this,Me=arguments.length>2&&arguments[2]!==void 0&&arguments[2],je=arguments.length>3&&arguments[3]!==void 0&&arguments[3],Fe=Me&&je?this.scene.getNonDeletedElements():this.scene.getNonDeletedElements().filter(function(Ue){return(je||!Ue.locked)&&(Me||!((0,V.iB)(Ue)&&Ue.containerId))});return(0,ke.CJ)(Fe,function(Ue){return(0,V.wX)(Ue,fe.state,fe.frameNameBoundsCache,F,T)}).filter(function(Ue){var Ge=(0,_n.$Z)(Ue);return!(Ge&&fe.state.frameRendering.enabled&&fe.state.frameRendering.clip)||(0,_n.Dn)({x:F,y:T},Ge)})}},{key:"handleHoverSelectedLinearElement",value:function(F,T,fe){var Me=ce._.getElement(F.elementId),je=(0,et.WJ)(Me);if(Me)if(this.state.selectedLinearElement){var Fe=-1,Ue=null;(0,Ba.Qu)(Me,this.state,this.frameNameBoundsCache,[T,fe])?(Fe=ce._.getPointIndexUnderCursor(Me,this.state.zoom,T,fe),Ue=ce._.getSegmentMidpointHitCoords(F,{x:T,y:fe},this.state),Fe>=0||Ue?(0,Gr.KJ)(this.interactiveCanvas,f.oc.POINTER):(0,Gr.KJ)(this.interactiveCanvas,f.oc.MOVE)):((0,vi.oY)([Me],this.state)&&(0,V.wB)(Me,this.state,this.frameNameBoundsCache,T,fe)||je&&(0,V.wX)(je,this.state,this.frameNameBoundsCache,T,fe))&&(0,Gr.KJ)(this.interactiveCanvas,f.oc.MOVE),this.state.selectedLinearElement.hoverPointIndex!==Fe&&this.setState({selectedLinearElement:Zt(Zt({},this.state.selectedLinearElement),{},{hoverPointIndex:Fe})}),ce._.arePointsEqual(this.state.selectedLinearElement.segmentMidPointHoveredCoords,Ue)||this.setState({selectedLinearElement:Zt(Zt({},this.state.selectedLinearElement),{},{segmentMidPointHoveredCoords:Ue})})}else(0,Gr.KJ)(this.interactiveCanvas,f.oc.AUTO)}},{key:"maybeCleanupAfterMissingPointerUp",value:function(F){zo!==null&&zo(F)}},{key:"updateGestureOnPointerDown",value:function(F){fn.pointers.set(F.pointerId,{x:F.clientX,y:F.clientY}),fn.pointers.size===2&&(fn.lastCenter=re(fn.pointers),fn.initialScale=this.state.zoom.value,fn.initialDistance=me(Array.from(fn.pointers.values())))}},{key:"initialPointerDownState",value:function(F){var T=(0,s.dE)(F,this.state),fe=this.scene.getSelectedElements(this.state),Me=(0,V.KP)(fe),je=(0,E.Z)(Me,4),Fe=je[0],Ue=je[1],Ge=je[2],rt=je[3];return{origin:T,withCmdOrCtrl:F[_.tW.CTRL_OR_CMD],originInGrid:(0,s.AK)((0,J.wC)(T.x,T.y,F[_.tW.CTRL_OR_CMD]?null:this.state.gridSize)),scrollbars:(0,ke._4)(Di,F.clientX-this.state.offsetLeft,F.clientY-this.state.offsetTop),lastCoords:Zt({},T),originalElements:this.scene.getNonDeletedElements().reduce(function(it,lt){return it.set(lt.id,(0,te.OL)(lt)),it},new Map),resize:{handleType:!1,isResizing:!1,offset:{x:0,y:0},arrowDirection:"origin",center:{x:(Ge+Fe)/2,y:(rt+Ue)/2}},hit:{element:null,allHitElements:[],wasAddedToSelection:!1,hasBeenDuplicated:!1,hasHitCommonBoundingBoxOfSelectedElements:this.isHittingCommonBoundingBoxOfSelectedElements(T,fe)},drag:{hasOccurred:!1,offset:null},eventListeners:{onMove:null,onUp:null,onKeyUp:null,onKeyDown:null},boxSelection:{hasOccurred:!1},elementIdsToErase:{}}}},{key:"handleDraggingScrollBar",value:function(F,T){var fe=this;if(!T.scrollbars.isOverEither||this.state.multiElement)return!1;Ti=!0,T.lastCoords.x=F.clientX,T.lastCoords.y=F.clientY;var Me=(0,s.$9)(function(Fe){Fe.target instanceof HTMLElement&&fe.handlePointerMoveOverScrollbars(Fe,T)}),je=(0,s.tH)(function(){Ti=!1,(0,Gr.Uk)(fe.interactiveCanvas,fe.state),zo=null,fe.setState({cursorButton:"up"}),fe.savePointer(F.clientX,F.clientY,"up"),window.removeEventListener(f.Ks.POINTER_MOVE,Me),window.removeEventListener(f.Ks.POINTER_UP,je),Me.flush()});return zo=je,window.addEventListener(f.Ks.POINTER_MOVE,Me),window.addEventListener(f.Ks.POINTER_UP,je),!0}},{key:"isASelectedElement",value:function(F){return F!=null&&this.state.selectedElementIds[F.id]}},{key:"isHittingCommonBoundingBoxOfSelectedElements",value:function(F,T){if(T.length<2)return!1;var fe=10/this.state.zoom.value,Me=(0,V.KP)(T),je=(0,E.Z)(Me,4),Fe=je[0],Ue=je[1],Ge=je[2],rt=je[3];return F.x>Fe-fe&&F.x<Ge+fe&&F.y>Ue-fe&&F.y<rt+fe}},{key:"getCurrentItemRoundness",value:function(F){return this.state.currentItemRoundness==="round"?{type:(0,L.QI)(F)?f.a6.ADAPTIVE_RADIUS:f.a6.PROPORTIONAL_RADIUS}:null}},{key:"maybeCacheReferenceSnapPoints",value:function(F,T){var fe=arguments.length>2&&arguments[2]!==void 0&&arguments[2];!vo({event:F,appState:this.state,selectedElements:T})||!fe&&Cn.getReferenceSnapPoints()||Cn.setReferenceSnapPoints(Ae(this.scene.getNonDeletedElements(),T,this.state))}},{key:"maybeCacheVisibleGaps",value:function(F,T){var fe=arguments.length>2&&arguments[2]!==void 0&&arguments[2];!vo({event:F,appState:this.state,selectedElements:T})||!fe&&Cn.getVisibleGaps()||Cn.setVisibleGaps(wi(this.scene.getNonDeletedElements(),T,this.state))}},{key:"onKeyDownFromPointerDownHandler",value:function(F){var T=this;return(0,s.tH)(function(fe){T.maybeHandleResize(F,fe)||T.maybeDragNewGenericElement(F,fe)})}},{key:"onKeyUpFromPointerDownHandler",value:function(F){var T=this;return(0,s.tH)(function(fe){fe.key===_.tW.ALT&&fe.preventDefault(),T.maybeHandleResize(F,fe)||T.maybeDragNewGenericElement(F,fe)})}},{key:"onPointerMoveFromPointerDownHandler",value:function(F){var T=this;return(0,s.$9)(function(fe){var Me;if(F.drag.offset===null&&(F.drag.offset=(0,s.AK)((0,V.$V)(T.scene.getSelectedElements(T.state),F.origin.x,F.origin.y))),fe.target instanceof HTMLElement&&!T.handlePointerMoveOverScrollbars(fe,F)){var je=(0,s.dE)(fe,T.state);if((0,k.EN)(T.state))T.handleEraser(fe,F,je);else{T.state.activeTool.type==="laser"&&T.laserPathManager.addPointToPath(je.x,je.y);var Fe=(0,J.wC)(je.x,je.y,fe[_.tW.CTRL_OR_CMD]?null:T.state.gridSize),Ue=(0,E.Z)(Fe,2),Ge=Ue[0],rt=Ue[1];if(F.drag.hasOccurred||T.state.activeTool.type!=="arrow"&&T.state.activeTool.type!=="line"||!((0,J.LW)(je.x,je.y,F.origin.x,F.origin.y)<f.f)){if(F.resize.isResizing&&(F.lastCoords.x=je.x,F.lastCoords.y=je.y,T.maybeHandleResize(F,fe)))return!0;if(T.state.selectedLinearElement){var it=T.state.editingLinearElement||T.state.selectedLinearElement;if(ce._.shouldAddMidpoint(T.state.selectedLinearElement,je,T.state)){var lt=ce._.addMidpoint(T.state.selectedLinearElement,je,T.state,!fe[_.tW.CTRL_OR_CMD]);return lt?void(0,de.flushSync)(function(){T.state.selectedLinearElement&&T.setState({selectedLinearElement:Zt(Zt({},T.state.selectedLinearElement),{},{pointerDownState:lt.pointerDownState,selectedPointsIndices:lt.selectedPointsIndices})}),T.state.editingLinearElement&&T.setState({editingLinearElement:Zt(Zt({},T.state.editingLinearElement),{},{pointerDownState:lt.pointerDownState,selectedPointsIndices:lt.selectedPointsIndices})})}):void 0}if(it.pointerDownState.segmentMidpoint.value!==null&&!it.pointerDownState.segmentMidpoint.added)return;var Yt=ce._.handlePointDragging(fe,T.state,je.x,je.y,function(sn,Xn){T.maybeSuggestBindingsForLinearElementAtCoords(sn,Xn)},it);if(Yt)return F.lastCoords.x=je.x,F.lastCoords.y=je.y,F.drag.hasOccurred=!0,T.state.editingLinearElement&&!T.state.editingLinearElement.isDragging&&T.setState({editingLinearElement:Zt(Zt({},T.state.editingLinearElement),{},{isDragging:!0})}),void(T.state.selectedLinearElement.isDragging||T.setState({selectedLinearElement:Zt(Zt({},T.state.selectedLinearElement),{},{isDragging:!0})}))}var jt=F.hit.allHitElements.some(function(sn){return T.isASelectedElement(sn)}),ct=T.state.editingLinearElement&&fe.shiftKey&&T.state.editingLinearElement.elementId===((Me=F.hit.element)===null||Me===void 0?void 0:Me.id);if((jt||F.hit.hasHitCommonBoundingBoxOfSelectedElements)&&!ct){var xt,Mt=T.scene.getSelectedElements(T.state);if(Mt.every(function(sn){return sn.locked}))return;var Vt=Mt.find(function(sn){return(0,L.He)(sn)}),Ht=T.getTopLayerFrameAtSceneCoords(je);if(T.setState({frameToHighlight:Ht&&!Vt?Ht:null}),F.drag.hasOccurred=!0,T.setState({selectedElementsAreBeingDragged:!0}),Mt.length>0&&!F.withCmdOrCtrl&&!T.state.editingElement&&((xt=T.state.activeEmbeddable)===null||xt===void 0?void 0:xt.state)!=="active"){var Tt={x:je.x-F.origin.x,y:je.y-F.origin.y},Kt=(0,y.Z)(F.originalElements.values()),hr=fe.shiftKey;if(hr){var Mr=Math.abs(Tt.x),Nr=Math.abs(Tt.y),Kr=hr&&Mr>Nr;hr&&Mr<Nr&&(Tt.x=0),Kr&&(Tt.y=0)}T.maybeCacheVisibleGaps(fe,Mt),T.maybeCacheReferenceSnapPoints(fe,Mt);var tn=function(sn,Xn,so,Xo){var Ri,zi,Ni,Bi;if(!vo({appState:so,event:Xo,selectedElements:sn})||sn.length===0)return{snapOffset:{x:0,y:0},snapLines:[]};Xn.x=Ne(Xn.x),Xn.y=Ne(Xn.y);var No=[],Bo=[],Qi=go(so.zoom.value),pa={x:Qi,y:Qi},nl=Yo(sn,{dragOffset:Xn});Le(sn,nl,so,Xo,No,Bo,pa),se(sn,Xn,so,Xo,No,Bo,pa);var Hi={x:(Ri=(zi=No[0])===null||zi===void 0?void 0:zi.offset)!==null&&Ri!==void 0?Ri:0,y:(Ni=(Bi=Bo[0])===null||Bi===void 0?void 0:Bi.offset)!==null&&Ni!==void 0?Ni:0};pa.x=0,pa.y=0,No.length=0,Bo.length=0;var Wi={x:Ne(Xn.x+Hi.x),y:Ne(Xn.y+Hi.y)};Le(sn,Yo(sn,{dragOffset:Wi}),so,Xo,No,Bo,pa),se(sn,Wi,so,Xo,No,Bo,pa);var ol=Qe(No,Bo),al=nt(sn,Wi,[].concat(No,Bo).filter(function(il){return il.type==="gap"}));return{snapOffset:Hi,snapLines:[].concat(ol,al)}}((0,ke.eD)(Kt,T.state),Tt,T.state,fe),Qr=tn.snapOffset,Pr=tn.snapLines;if(T.setState({snapLines:Pr}),!T.state.editingFrame&&(0,V.o8)(F,Mt,Tt,T.state,T.scene,Qr,fe[_.tW.CTRL_OR_CMD]?null:T.state.gridSize),T.maybeSuggestBindingForAll(Mt),fe.altKey&&!F.hit.hasBeenDuplicated){F.hit.hasBeenDuplicated=!0;var on,Br=[],en=[],gn=new Map,xn=new Map,pn=F.hit.element,Tn=new Set(T.scene.getSelectedElements({selectedElementIds:T.state.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0}).map(function(sn){return sn.id})),Xr=xo(T.scene.getElementsIncludingDeleted());try{for(Xr.s();!(on=Xr.n()).done;){var cn=on.value;if(Tn.has(cn.id)||cn.id===pn?.id&&F.hit.wasAddedToSelection){var Wn=(0,V.Sy)(T.state.editingGroupId,gn,cn),In=F.originalElements.get(cn.id);(0,g.DR)(Wn,{x:In.x,y:In.y}),F.originalElements.set(Wn.id,Wn),Br.push(Wn),en.push(cn),xn.set(cn.id,Wn.id)}else Br.push(cn)}}catch(sn){Xr.e(sn)}finally{Xr.f()}var Fn=[].concat(Br,en);(0,et.P7)(Br,en,xn),(0,O.ek)(Fn,en,xn,"duplicatesServeAsOld"),(0,_n.xr)(Fn,en,xn),T.scene.replaceAllElements(Fn),T.maybeCacheVisibleGaps(fe,Mt,!0),T.maybeCacheReferenceSnapPoints(fe,Mt,!0)}return}}var vn=T.state.draggingElement;if(vn){if(vn.type==="freedraw"){var Nn=vn.points,Dn=je.x-vn.x,dn=je.y-vn.y,Po=Nn.length>0&&Nn[Nn.length-1];if(!(Po&&Po[0]===Dn&&Po[1]===dn)){var mo=vn.simulatePressure?vn.pressures:[].concat((0,y.Z)(vn.pressures),[fe.pressure]);(0,g.DR)(vn,{points:[].concat((0,y.Z)(Nn),[[Dn,dn]]),pressures:mo})}}else if((0,L.bt)(vn)){F.drag.hasOccurred=!0,T.setState({selectedElementsAreBeingDragged:!0});var Lr=vn.points,wn=Ge-vn.x,An=rt-vn.y;if((0,_.Ge)(fe)&&Lr.length===2){var Yn=(0,V.o4)(vn.x,vn.y,je.x,je.y);wn=Yn.width,An=Yn.height}Lr.length===1?(0,g.DR)(vn,{points:[].concat((0,y.Z)(Lr),[[wn,An]])}):Lr.length===2&&(0,g.DR)(vn,{points:[].concat((0,y.Z)(Lr.slice(0,-1)),[[wn,An]])}),(0,L.Mn)(vn,!1)&&T.maybeSuggestBindingsForLinearElementAtCoords(vn,[je],T.state.startBoundElement)}else F.lastCoords.x=je.x,F.lastCoords.y=je.y,T.maybeDragNewGenericElement(F,fe);if(T.state.activeTool.type==="selection"){F.boxSelection.hasOccurred=!0;var Vn=T.scene.getNonDeletedElements();if(T.state.editingLinearElement)ce._.handleBoxSelection(fe,T.state,T.setState.bind(T));else{var qn=!0;!fe.shiftKey&&(0,ke.N)(Vn,T.state)&&(F.withCmdOrCtrl&&F.hit.element?T.setState(function(sn){return(0,We.bO)(Zt(Zt({},sn),{},{selectedElementIds:(0,H.Z)({},F.hit.element.id,!0)}),T.scene.getNonDeletedElements(),sn,T)}):qn=!1);var eo=(0,ke.Yp)(Vn,vn);T.setState(function(sn){var Xn=Zt(Zt({},qn&&sn.selectedElementIds),eo.reduce(function(so,Xo){return so[Xo.id]=!0,so},{}));return F.hit.element&&(eo.length?delete Xn[F.hit.element.id]:Xn[F.hit.element.id]=!0),sn=qn?sn:Zt(Zt({},sn),{},{selectedGroupIds:{},editingGroupId:null}),Zt(Zt({},(0,We.bO)({editingGroupId:sn.editingGroupId,selectedElementIds:Xn},T.scene.getNonDeletedElements(),sn,T)),{},{selectedLinearElement:eo.length===1&&(0,L.bt)(eo[0])?new ce._(eo[0],T.scene):null,showHyperlinkPopup:!(eo.length!==1||!eo[0].link&&!(0,L.gs)(eo[0]))&&"info"})})}}}}}}})}},{key:"handlePointerMoveOverScrollbars",value:function(F,T){if(T.scrollbars.isOverHorizontal){var fe=F.clientX,Me=fe-T.lastCoords.x;return this.translateCanvas({scrollX:this.state.scrollX-Me/this.state.zoom.value}),T.lastCoords.x=fe,!0}if(T.scrollbars.isOverVertical){var je=F.clientY,Fe=je-T.lastCoords.y;return this.translateCanvas({scrollY:this.state.scrollY-Fe/this.state.zoom.value}),T.lastCoords.y=je,!0}return!1}},{key:"onPointerUpFromPointerDownHandler",value:function(F){var T=this;return(0,s.tH)(function(fe){var Me;F.eventListeners.onMove&&F.eventListeners.onMove.flush();var je,Fe,Ue=T.state,Ge=Ue.draggingElement,rt=Ue.resizingElement,it=Ue.multiElement,lt=Ue.activeTool,Yt=Ue.isResizing,jt=Ue.isRotating;if(T.setState({isResizing:!1,isRotating:!1,resizingElement:null,selectionElement:null,frameToHighlight:null,elementsToHighlight:null,cursorButton:"up",editingElement:it||(0,V.iB)(T.state.editingElement)?T.state.editingElement:null,snapLines:[],originSnapOffset:null}),Cn.setReferenceSnapPoints(null),Cn.setVisibleGaps(null),T.savePointer(fe.clientX,fe.clientY,"up"),T.setState({selectedElementsAreBeingDragged:!1}),T.state.editingLinearElement)if(F.boxSelection.hasOccurred||((je=F.hit)===null||je===void 0||(Fe=je.element)===null||Fe===void 0?void 0:Fe.id)===T.state.editingLinearElement.elementId){var ct=ce._.handlePointerUp(fe,T.state.editingLinearElement,T.state);ct!==T.state.editingLinearElement&&T.setState({editingLinearElement:ct,suggestedBindings:[]})}else T.actionManager.executeAction(P.pL);else if(T.state.selectedLinearElement){var xt,Mt;if(((xt=F.hit)===null||xt===void 0||(Mt=xt.element)===null||Mt===void 0?void 0:Mt.id)!==T.state.selectedLinearElement.elementId)T.scene.getSelectedElements(T.state).length>1&&T.setState({selectedLinearElement:null});else{var Vt=ce._.handlePointerUp(fe,T.state.selectedLinearElement,T.state),Ht=Vt.startBindingElement,Tt=Vt.endBindingElement,Kt=T.scene.getElement(Vt.elementId);(0,L.Mn)(Kt)&&(0,O.HG)(Kt,Ht,Tt),Vt!==T.state.selectedLinearElement&&T.setState({selectedLinearElement:Zt(Zt({},Vt),{},{selectedPointsIndices:null}),suggestedBindings:[]})}}if(zo=null,window.removeEventListener(f.Ks.POINTER_MOVE,F.eventListeners.onMove),window.removeEventListener(f.Ks.POINTER_UP,F.eventListeners.onUp),window.removeEventListener(f.Ks.KEYDOWN,F.eventListeners.onKeyDown),window.removeEventListener(f.Ks.KEYUP,F.eventListeners.onKeyUp),T.state.pendingImageElementId&&T.setState({pendingImageElementId:null}),T.onPointerUpEmitter.trigger(T.state.activeTool,F,fe),Ge?.type==="freedraw"){var hr=(0,s.dE)(fe,T.state),Mr=Ge.points,Nr=hr.x-Ge.x,Kr=hr.y-Ge.y;Nr===Mr[0][0]&&Kr===Mr[0][1]&&(Kr+=1e-4,Nr+=1e-4);var tn=Ge.simulatePressure?[]:[].concat((0,y.Z)(Ge.pressures),[fe.pressure]);return(0,g.DR)(Ge,{points:[].concat((0,y.Z)(Mr),[[Nr,Kr]]),pressures:tn,lastCommittedPoint:[Nr,Kr]}),void T.actionManager.executeAction(P.pL)}if((0,L.pC)(Ge)){var Qr=Ge;try{T.initializeImageDimensions(Qr),T.setState({selectedElementIds:(0,un.Oh)((0,H.Z)({},Qr.id,!0),T.state)},function(){T.actionManager.executeAction(P.pL)})}catch(Lr){console.error(Lr),T.scene.replaceAllElements(T.scene.getElementsIncludingDeleted().filter(function(wn){return wn.id!==Qr.id})),T.actionManager.executeAction(P.pL)}}else if((0,L.bt)(Ge)){Ge.points.length>1&&T.history.resumeRecording();var Pr=(0,s.dE)(fe,T.state);F.drag.hasOccurred||!Ge||it?F.drag.hasOccurred&&!it&&((0,O.N1)(T.state)&&(0,L.Mn)(Ge,!1)&&(0,O.R)(Ge,T.state,T.scene,Pr),T.setState({suggestedBindings:[],startBoundElement:null}),lt.locked?T.setState(function(Lr){return{draggingElement:null}}):((0,Gr.z8)(T.interactiveCanvas),T.setState(function(Lr){return{draggingElement:null,activeTool:(0,s.Om)(T.state,{type:"selection"}),selectedElementIds:(0,un.Oh)(Zt(Zt({},Lr.selectedElementIds),{},(0,H.Z)({},Ge.id,!0)),Lr),selectedLinearElement:new ce._(Ge,T.scene)}}))):((0,g.DR)(Ge,{points:[].concat((0,y.Z)(Ge.points),[[Pr.x-Ge.x,Pr.y-Ge.y]])}),T.setState({multiElement:Ge,editingElement:T.state.draggingElement}))}else{if(lt.type!=="selection"&&Ge&&(0,V.QD)(Ge))return T.scene.replaceAllElements(T.scene.getElementsIncludingDeleted().filter(function(Lr){return Lr.id!==Ge.id})),void T.setState({draggingElement:null});if(Ge){if(F.drag.hasOccurred){var on=(0,s.dE)(fe,T.state);if(T.state.selectedLinearElement&&T.state.selectedLinearElement.isDragging){var Br=T.scene.getElement(T.state.selectedLinearElement.elementId);if(Br!=null&&Br.frameId){var en=(0,_n.$Z)(Br);en&&Br&&((0,_n.cO)(Br,en)||((0,g.DR)(Br,{groupIds:[]}),T.scene.replaceAllElements((0,_n.lz)(T.scene.getElementsIncludingDeleted(),[Br],T.state))))}}else{var gn=T.getTopLayerFrameAtSceneCoords(on),xn=T.scene.getSelectedElements(T.state),pn=T.scene.getElementsIncludingDeleted(),Tn=function(Lr){if(Lr.length>0){var wn,An=xo(Lr);try{for(An.s();!(wn=An.n()).done;){var Yn=wn.value,Vn=Yn.groupIds.indexOf(T.state.editingGroupId);(0,g.DR)(Yn,{groupIds:Yn.groupIds.slice(0,Vn)},!1)}}catch(qn){An.e(qn)}finally{An.f()}pn.forEach(function(qn){qn.groupIds.length&&(0,We.Fb)(pn,qn.groupIds[qn.groupIds.length-1]).length<2&&(0,g.DR)(qn,{groupIds:[]},!1)}),T.setState({editingGroupId:null})}};if(gn&&!T.state.selectedElementIds[gn.id]){var Xr=xn.filter(function(Lr){return Lr.frameId!==gn.id&&(0,_n.Qs)(Lr,pn,T.state)});T.state.editingGroupId&&Tn(Xr),pn=(0,_n.A_)(pn,Xr,gn)}else if(!gn&&T.state.editingGroupId){var cn=xn.filter(function(Lr){return Lr.frameId&&!(0,_n.Qs)(Lr,pn,T.state)});Tn(cn)}pn=(0,_n.Tq)(pn,T.state,T),T.scene.replaceAllElements(pn)}}if(Ge.type==="frame"){var Wn=(0,_n.fj)(T.scene.getElementsIncludingDeleted(),Ge);T.scene.replaceAllElements((0,_n.A_)(T.scene.getElementsIncludingDeleted(),Wn,Ge))}(0,g.DR)(Ge,(0,V.Qp)(Ge))}if(rt&&T.history.resumeRecording(),rt&&(0,V.QD)(rt)&&T.scene.replaceAllElements(T.scene.getElementsIncludingDeleted().filter(function(Lr){return Lr.id!==rt.id})),F.resize.isResizing){var In,Fn=(0,_n.Tq)(T.scene.getElementsIncludingDeleted(),T.state,T),vn=T.scene.getSelectedElements(T.state).filter(function(Lr){return Lr.type==="frame"}),Nn=xo(vn);try{for(Nn.s();!(In=Nn.n()).done;){var Dn=In.value;Fn=(0,_n.pr)(Fn,(0,_n.ni)(T.scene.getElementsIncludingDeleted(),Dn,T.state),Dn,T.state)}}catch(Lr){Nn.e(Lr)}finally{Nn.f()}T.scene.replaceAllElements(Fn)}var dn=F.hit.element;if(((Me=T.state.selectedLinearElement)===null||Me===void 0?void 0:Me.elementId)!==dn?.id&&(0,L.bt)(dn)&&T.scene.getSelectedElements(T.state).length===1&&T.setState({selectedLinearElement:new ce._(dn,T.scene)}),(0,k.EN)(T.state)){if((0,J.LW)(T.lastPointerDownEvent.clientX,T.lastPointerDownEvent.clientY,T.lastPointerUpEvent.clientX,T.lastPointerUpEvent.clientY)===0){var Po=(0,s.dE)({clientX:T.lastPointerUpEvent.clientX,clientY:T.lastPointerUpEvent.clientY},T.state);T.getElementsAtPosition(Po.x,Po.y).forEach(function(Lr){return F.elementIdsToErase[Lr.id]={erase:!0,opacity:Lr.opacity}})}T.eraseElements(F)}else{var mo;Object.keys(F.elementIdsToErase).length&&T.restoreReadyToEraseElements(F),dn&&!F.drag.hasOccurred&&!F.hit.wasAddedToSelection&&(!T.state.editingLinearElement||!F.boxSelection.hasOccurred)&&(fe.shiftKey&&!T.state.editingLinearElement?T.state.selectedElementIds[dn.id]?(0,We.zq)(T.state,dn)?T.setState(function(Lr){var wn,An=Zt({},Lr.selectedElementIds),Yn=xo(dn.groupIds.flatMap(function(Vn){return(0,We.Fb)(T.scene.getNonDeletedElements(),Vn)}));try{for(Yn.s();!(wn=Yn.n()).done;)delete An[wn.value.id]}catch(Vn){Yn.e(Vn)}finally{Yn.f()}return{selectedGroupIds:Zt(Zt({},Lr.selectedElementIds),dn.groupIds.map(function(Vn){return(0,H.Z)({},Vn,!1)}).reduce(function(Vn,qn){return Zt(Zt({},Vn),qn)},{})),selectedElementIds:(0,un.Oh)(An,Lr)}}):(mo=T.state.selectedLinearElement)!==null&&mo!==void 0&&mo.isDragging||T.setState(function(Lr){var wn=Zt({},Lr.selectedElementIds);delete wn[dn.id];var An=(0,ke.eD)(T.scene.getNonDeletedElements(),{selectedElementIds:wn});return Zt(Zt({},(0,We.bO)({editingGroupId:Lr.editingGroupId,selectedElementIds:wn},T.scene.getNonDeletedElements(),Lr,T)),{},{selectedLinearElement:An.length===1&&(0,L.bt)(An[0])?new ce._(An[0],T.scene):Lr.selectedLinearElement})}):dn.frameId&&T.state.selectedElementIds[dn.frameId]?T.setState(function(Lr){var wn,An,Yn=Zt(Zt({},Lr.selectedElementIds),{},(0,H.Z)({},dn.id,!0));return delete Yn[dn.frameId],((wn=(An=T.scene.getElement(dn.frameId))===null||An===void 0?void 0:An.groupIds)!==null&&wn!==void 0?wn:[]).flatMap(function(Vn){return(0,We.Fb)(T.scene.getNonDeletedElements(),Vn)}).forEach(function(Vn){delete Yn[Vn.id]}),Zt(Zt({},(0,We.bO)({editingGroupId:Lr.editingGroupId,selectedElementIds:Yn},T.scene.getNonDeletedElements(),Lr,T)),{},{showHyperlinkPopup:!(!dn.link&&!(0,L.gs)(dn))&&"info"})}):T.setState(function(Lr){return{selectedElementIds:(0,un.Oh)(Zt(Zt({},Lr.selectedElementIds),{},(0,H.Z)({},dn.id,!0)),Lr)}}):T.setState(function(Lr){var wn;return Zt(Zt({},(0,We.bO)({editingGroupId:Lr.editingGroupId,selectedElementIds:(0,H.Z)({},dn.id,!0)},T.scene.getNonDeletedElements(),Lr,T)),{},{selectedLinearElement:(0,L.bt)(dn)&&((wn=Lr.selectedLinearElement)===null||wn===void 0?void 0:wn.elementId)!==dn.id?new ce._(dn,T.scene):Lr.selectedLinearElement})})),F.drag.hasOccurred||T.state.isResizing||!(dn&&(0,V.wB)(dn,T.state,T.frameNameBoundsCache,F.origin.x,F.origin.y)||!dn&&F.hit.hasHitCommonBoundingBoxOfSelectedElements)?(!lt.locked&<.type!=="freedraw"&&Ge&&Ge.type!=="selection"&&T.setState(function(Lr){return{selectedElementIds:(0,un.Oh)(Zt(Zt({},Lr.selectedElementIds),{},(0,H.Z)({},Ge.id,!0)),Lr),showHyperlinkPopup:(0,L.gs)(Ge)&&!Ge.link?"editor":Lr.showHyperlinkPopup}}),(lt.type!=="selection"||(0,ke.N)(T.scene.getNonDeletedElements(),T.state))&&T.history.resumeRecording(),(F.drag.hasOccurred||Yt||jt)&&((0,O.N1)(T.state)?O.el:O.H)(T.scene.getSelectedElements(T.state)),lt.type!=="laser"?(lt.locked||lt.type==="freedraw"?T.setState({draggingElement:null,suggestedBindings:[]}):((0,Gr.z8)(T.interactiveCanvas),T.setState({draggingElement:null,suggestedBindings:[],activeTool:(0,s.Om)(T.state,{type:"selection"})})),dn&&T.lastPointerUpEvent&&T.lastPointerDownEvent&&T.lastPointerUpEvent.timeStamp-T.lastPointerDownEvent.timeStamp<300&&fn.pointers.size<=1&&(0,L.gs)(dn)&&T.isEmbeddableCenter(dn,T.lastPointerUpEvent,F.origin.x,F.origin.y)&&T.handleEmbeddableCenterClick(dn)):T.laserPathManager.endPath()):T.state.editingLinearElement?T.setState({editingLinearElement:null}):T.setState({selectedElementIds:(0,un.Oh)({},T.state),selectedGroupIds:{},editingGroupId:null,activeEmbeddable:null})}}})}},{key:"maybeSuggestBindingForAll",value:function(F){if(!(F.length>50)){var T=(0,O.ZB)(F);this.setState({suggestedBindings:T})}}},{key:"clearSelection",value:function(F){this.setState(function(T){return{selectedElementIds:(0,un.Oh)({},T),activeEmbeddable:null,selectedGroupIds:{},editingGroupId:T.editingGroupId&&F!=null&&(0,We.Nd)(F,T.editingGroupId)?T.editingGroupId:null}}),this.setState({selectedElementIds:(0,un.Oh)({},this.state),activeEmbeddable:null,previousSelectedElementIds:this.state.selectedElementIds})}},{key:"getTextWysiwygSnappedToCenterPosition",value:function(F,T,fe,Me){if(Me){var je=Me.x+Me.width/2,Fe=Me.y+Me.height/2,Ue=(0,et.TP)(Me,fe);if(Ue&&(je=Ue.x,Fe=Ue.y),Math.hypot(F-je,T-Fe)<f.wZ){var Ge=(0,s._i)({sceneX:je,sceneY:Fe},fe);return{viewportX:Ge.x,viewportY:Ge.y,elementCenterX:je,elementCenterY:Fe}}}}},{key:"getCanvasOffsets",value:function(){var F;if((F=this.excalidrawContainerRef)!==null&&F!==void 0&&F.current){var T=this.excalidrawContainerRef.current.getBoundingClientRect();return{offsetLeft:T.left,offsetTop:T.top}}return{offsetLeft:0,offsetTop:0}}},{key:"updateLanguage",value:(d=(0,h.Z)(u().mark(function F(){var T,fe=this;return u().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return T=R.Mj.find(function(je){return je.code===fe.props.langCode})||R.Fp,Me.next=3,(0,R.m0)(T);case 3:this.setAppState({});case 4:case"end":return Me.stop()}},F,this)})),function(){return d.apply(this,arguments)})}],[{key:"resetTapTwice",value:function(){Sa=!1}}]),ye}(le().Component);Zi.defaultProps={UIOptions:f.cW};var tl=function(){var r=this;this.interactiveCanvas=null,this.unmounted=!1,this.device=da,this.excalidrawContainerRef=le().createRef(),this.files={},this.imageCache=new Map,this.iFrameRefs=new Map,this.lastPointerDownEvent=null,this.lastPointerUpEvent=null,this.lastViewportPosition={x:0,y:0},this.laserPathManager=new ei(this),this.onChangeEmitter=new Hn,this.onPointerDownEmitter=new Hn,this.onPointerUpEmitter=new Hn,this.updateEmbeddables=function(){var d=new Map,C=!1;r.scene.getNonDeletedElements().filter(function(K){if((0,L.gs)(K)&&(d.set(K.id,!0),K.validated==null)){C=!0;var ae=(0,p.xm)(K.link,r.props.validateEmbeddable);(0,g.DR)(K,{validated:ae},!1),Eo.R.delete(K)}return!1}),C&&r.scene.informMutation(),r.iFrameRefs.forEach(function(K,ae){d.has(ae)||r.iFrameRefs.delete(ae)})},this.getFrameNameDOMId=function(d){return"".concat(r.id,"-frame-name-").concat(d.id)},this.frameNameBoundsCache={get:function(d){var C=r.frameNameBoundsCache._cache.get(d.id);if(!C||C.zoom!==r.state.zoom.value||C.versionNonce!==d.versionNonce){var K=document.getElementById(r.getFrameNameDOMId(d));if(K){var ae=K.getBoundingClientRect(),ye=(0,s.dE)({clientX:ae.x,clientY:ae.y},r.state),F=(0,s.dE)({clientX:ae.right,clientY:ae.bottom},r.state);return C={x:ye.x,y:ye.y,width:F.x-ye.x,height:F.y-ye.y,angle:0,zoom:r.state.zoom.value,versionNonce:d.versionNonce},r.frameNameBoundsCache._cache.set(d.id,C),C}return null}return C},_cache:new Map},this.renderFrameNames=function(){if(!r.state.frameRendering.enabled||!r.state.frameRendering.name)return null;var d=r.state.theme==="dark";return r.scene.getNonDeletedFrames().map(function(C,K){if(!(0,Oe.PZ)(C,r.canvas.width/window.devicePixelRatio,r.canvas.height/window.devicePixelRatio,{offsetLeft:r.state.offsetLeft,offsetTop:r.state.offsetTop,scrollX:r.state.scrollX,scrollY:r.state.scrollY,zoom:r.state.zoom}))return null;var ae,ye=(0,s._i)({sceneX:C.x,sceneY:C.y},r.state),F=ye.x,T=ye.y,fe=function(){var je;((je=C.name)===null||je===void 0?void 0:je.trim())===""&&(0,g.DR)(C,{name:null}),r.setState({editingFrame:null})};if(C.id===r.state.editingFrame){var Me=C.name==null?"Frame ".concat(K+1):C.name;ae=(0,t.jsx)("input",{autoFocus:!0,value:Me,onChange:function(je){(0,g.DR)(C,{name:je.target.value})},onBlur:function(){return fe()},onKeyDown:function(je){je.key!==_.tW.ESCAPE&&je.key!==_.tW.ENTER||fe()},style:{background:r.state.viewBackgroundColor,filter:d?f.ZF:"none",zIndex:2,border:"none",display:"block",padding:"".concat(6,"px"),borderRadius:4,boxShadow:"inset 0 0 0 1px var(--color-primary)",fontFamily:"Assistant",fontSize:"14px",transform:"translate(-".concat(6,"px, ").concat(6,"px)"),color:"var(--color-gray-80)",overflow:"hidden",maxWidth:"".concat(document.body.clientWidth-F-6,"px")},size:Me.length+1||1,dir:"auto",autoComplete:"off",autoCapitalize:"off",autoCorrect:"off"})}else ae=C.name==null||C.name.trim()===""?"Frame ".concat(K+1):C.name.trim();return(0,t.jsx)("div",{id:r.getFrameNameDOMId(C),style:{position:"absolute",bottom:"".concat(r.state.height+f.iG.nameOffsetY-T+r.state.offsetTop,"px"),left:"".concat(F-r.state.offsetLeft,"px"),zIndex:2,fontSize:f.iG.nameFontSize,color:d?f.iG.nameColorDarkTheme:f.iG.nameColorLightTheme,lineHeight:f.iG.nameLineHeight,width:"max-content",maxWidth:"".concat(C.width,"px"),overflow:C.id===r.state.editingFrame?"visible":"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",cursor:f.oc.MOVE,pointerEvents:r.state.viewModeEnabled?f.XI.disabled:f.XI.enabled},onPointerDown:function(je){return r.handleCanvasPointerDown(je)},onWheel:function(je){return r.handleWheel(je)},onContextMenu:r.handleCanvasContextMenu,onDoubleClick:function(){r.setState({editingFrame:C.id})},children:ae},C.id)})},this.focusContainer=function(){var d;(d=r.excalidrawContainerRef.current)===null||d===void 0||d.focus()},this.getSceneElementsIncludingDeleted=function(){return r.scene.getElementsIncludingDeleted()},this.getSceneElements=function(){return r.scene.getNonDeletedElements()},this.onInsertElements=function(d){r.addElementsFromPasteOrLibrary({elements:d,position:"center",files:null})},this.onExportImage=function(){var d=(0,h.Z)(u().mark(function C(K,ae,ye){var F;return u().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return(0,c.L)("export",K,"ui"),T.next=3,(0,N.p1)(K,ae,r.state,r.files,{exportBackground:r.state.exportBackground,name:r.state.name,viewBackgroundColor:r.state.viewBackgroundColor,exportingFrame:ye.exportingFrame}).catch(s.FG).catch(function(fe){console.error(fe),r.setState({errorMessage:fe.message})});case 3:F=T.sent,r.state.exportEmbedScene&&F&&(0,Ct.g8)(F)&&r.setState({fileHandle:F});case 5:case"end":return T.stop()}},C)}));return function(C,K,ae){return d.apply(this,arguments)}}(),this.openEyeDropper=function(d){var C=d.type;ko.e_.set(ya.$,{swapPreviewOnAlt:!0,colorPickerType:C==="stroke"?"elementStroke":"elementBackground",onSelect:function(K,ae){var ye=C==="background"&&ae.altKey||C==="stroke"&&!ae.altKey;r.scene.getSelectedElements(r.state).length&&r.state.activeTool.type==="selection"?r.updateScene({elements:r.scene.getElementsIncludingDeleted().map(function(F){return r.state.selectedElementIds[F.id]?(0,g.BE)(F,(0,H.Z)({},ye?"strokeColor":"backgroundColor",K)):F})}):ye?r.syncActionResult({appState:Zt(Zt({},r.state),{},{currentItemStrokeColor:K}),commitToHistory:!0}):r.syncActionResult({appState:Zt(Zt({},r.state),{},{currentItemBackgroundColor:K}),commitToHistory:!0})},keepOpenOnAlt:!1})},this.syncActionResult=(0,s.tH)(function(d){if(!r.unmounted&&d!==!1){var C=null;if(d.elements&&(d.elements.forEach(function(ct){var xt;((xt=r.state.editingElement)===null||xt===void 0?void 0:xt.id)===ct.id&&r.state.editingElement!==ct&&(0,V.qP)(ct)&&(C=ct)}),r.scene.replaceAllElements(d.elements),d.commitToHistory&&r.history.resumeRecording()),d.files&&(r.files=d.replaceFiles?d.files:Zt(Zt({},r.files),d.files),r.addNewImagesToImageCache()),d.appState||C||r.state.contextMenu){var K,ae,ye,F,T,fe,Me,je,Fe,Ue;d.commitToHistory&&r.history.resumeRecording();var Ge=(d==null||(K=d.appState)===null||K===void 0?void 0:K.viewModeEnabled)||!1,rt=(d==null||(ae=d.appState)===null||ae===void 0?void 0:ae.zenModeEnabled)||!1,it=(d==null||(ye=d.appState)===null||ye===void 0?void 0:ye.gridSize)||null,lt=(d==null||(F=d.appState)===null||F===void 0?void 0:F.theme)||r.props.theme||f.C6.LIGHT,Yt=(T=d==null||(fe=d.appState)===null||fe===void 0?void 0:fe.name)!==null&&T!==void 0?T:r.state.name,jt=(Me=d==null||(je=d.appState)===null||je===void 0?void 0:je.errorMessage)!==null&&Me!==void 0?Me:r.state.errorMessage;r.props.viewModeEnabled!==void 0&&(Ge=r.props.viewModeEnabled),r.props.zenModeEnabled!==void 0&&(rt=r.props.zenModeEnabled),r.props.gridModeEnabled!==void 0&&(it=r.props.gridModeEnabled?f.k:null),r.props.name!==void 0&&(Yt=r.props.name),(Ue=C=C||((Fe=d.appState)===null||Fe===void 0?void 0:Fe.editingElement)||null)!==null&&Ue!==void 0&&Ue.isDeleted&&(C=null),r.setState(function(ct){return Object.assign(d.appState||{},{contextMenu:null,editingElement:C,viewModeEnabled:Ge,zenModeEnabled:rt,gridSize:it,theme:lt,name:Yt,errorMessage:jt})},function(){d.syncHistory&&r.history.setCurrentState(r.state,r.scene.getElementsIncludingDeleted())})}}}),this.onBlur=(0,s.tH)(function(){Vo=!1,r.setState({isBindingEnabled:!0})}),this.onUnload=function(){r.onBlur()},this.disableEvent=function(d){d.preventDefault()},this.resetHistory=function(){r.history.clear()},this.resetScene=(0,s.tH)(function(d){r.scene.replaceAllElements([]),r.setState(function(C){return Zt(Zt({},(0,k.im)()),{},{isLoading:(d==null||!d.resetLoadingState)&&C.isLoading,theme:r.state.theme})}),r.resetHistory()}),this.initializeScene=(0,h.Z)(u().mark(function d(){var C,K,ae,ye,F;return u().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return"launchQueue"in window&&"LaunchParams"in window&&window.launchQueue.setConsumer(function(){var fe=(0,h.Z)(u().mark(function Me(je){var Fe,Ue;return u().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:if(je.files.length){Ge.next=2;break}return Ge.abrupt("return");case 2:return Fe=je.files[0],Ge.next=5,Fe.getFile();case 5:Ue=Ge.sent,r.loadFileToCanvas(new File([Ue],Ue.name||"",{type:Ue.type}),Fe);case 7:case"end":return Ge.stop()}},Me)}));return function(Me){return fe.apply(this,arguments)}}()),r.props.theme&&r.setState({theme:r.props.theme}),r.state.isLoading||r.setState({isLoading:!0}),ae=null,T.prev=4,T.next=7,r.props.initialData;case 7:if(T.t0=T.sent,T.t0){T.next=10;break}T.t0=null;case 10:ae=T.t0,(ye=ae)!==null&&ye!==void 0&&ye.libraryItems&&r.library.updateLibrary({libraryItems:ae.libraryItems,merge:!0}).catch(function(fe){console.error(fe)}),T.next=18;break;case 14:T.prev=14,T.t1=T.catch(4),console.error(T.t1),ae={appState:{errorMessage:T.t1.message||"Encountered an error during importing or restoring scene data"}};case 18:(F=(0,ie.nu)(ae,null,null,{repairBindings:!0})).appState=Zt(Zt({},F.appState),{},{theme:r.props.theme||F.appState.theme,openSidebar:((C=F.appState)===null||C===void 0?void 0:C.openSidebar)||r.state.openSidebar,activeTool:F.appState.activeTool.type==="image"?Zt(Zt({},F.appState.activeTool),{},{type:"selection"}):F.appState.activeTool,isLoading:!1,toast:r.state.toast}),(K=ae)!==null&&K!==void 0&&K.scrollToContent&&(F.appState=Zt(Zt({},F.appState),(0,ke.W)(F.elements,Zt(Zt({},F.appState),{},{width:r.state.width,height:r.state.height,offsetTop:r.state.offsetTop,offsetLeft:r.state.offsetLeft})))),r.fonts.loadFontsForElements(F.elements),r.resetHistory(),r.syncActionResult(Zt(Zt({},F),{},{commitToHistory:!0}));case 24:case"end":return T.stop()}},d,null,[[4,14]])})),this.isMobileBreakpoint=function(d,C){return d<f.kV||C<f.Yx&&d<f.sS},this.refreshViewportBreakpoints=function(){if(r.excalidrawContainerRef.current){var d=document.body,C=d.clientWidth,K=d.clientHeight,ae=r.device.viewport,ye=(0,s.v4)(ae,{isLandscape:C>K,isMobile:r.isMobileBreakpoint(C,K)});return ae!==ye&&(r.device=Zt(Zt({},r.device),{},{viewport:ye}),!0)}},this.refreshEditorBreakpoints=function(){var d=r.excalidrawContainerRef.current;if(d){var C=d.getBoundingClientRect(),K=C.width,ae=C.height,ye=r.props.UIOptions.dockedSidebarBreakpoint!=null?r.props.UIOptions.dockedSidebarBreakpoint:f.sk,F=r.device.editor,T=(0,s.v4)(F,{isMobile:r.isMobileBreakpoint(K,ae),canFitSidebar:K>ye});return F!==T&&(r.device=Zt(Zt({},r.device),{},{editor:T}),!0)}},this.onResize=(0,s.tH)(function(){r.scene.getElementsIncludingDeleted().forEach(function(d){return Eo.R.delete(d)}),r.refreshViewportBreakpoints(),r.updateDOMRect(),qi||r.refreshEditorBreakpoints(),r.setState({})}),this.renderInteractiveSceneCallback=function(d){var C=d.atLeastOneVisibleElement,K=d.scrollBars,ae=d.elements;K&&(Di=K);var ye=!(0,V.iB)(r.state.editingElement)&&!C&&ae.length>0;r.state.scrolledOutside!==ye&&r.setState({scrolledOutside:ye}),r.scheduleImageRefresh()},this.onScroll=(0,s.Ds)(function(){var d=r.getCanvasOffsets(),C=d.offsetTop,K=d.offsetLeft;r.setState(function(ae){return ae.offsetLeft===K&&ae.offsetTop===C?null:{offsetTop:C,offsetLeft:K}})},f.HM),this.onCut=(0,s.tH)(function(d){var C;!((C=r.excalidrawContainerRef.current)===null||C===void 0)&&C.contains(document.activeElement)&&!(0,s.s)(d.target)&&(r.actionManager.executeAction(P.ZM,"keyboard",d),d.preventDefault(),d.stopPropagation())}),this.onCopy=(0,s.tH)(function(d){var C;!((C=r.excalidrawContainerRef.current)===null||C===void 0)&&C.contains(document.activeElement)&&!(0,s.s)(d.target)&&(r.actionManager.executeAction(P.uN,"keyboard",d),d.preventDefault(),d.stopPropagation())}),this.onTouchStart=function(d){if(f.Dt||d.preventDefault(),!Sa)return Sa=!0,clearTimeout(Pi),void(Pi=window.setTimeout(Zi.resetTapTwice,f.Gj));if(Sa&&d.touches.length===1){var C=d.touches[0];r.handleCanvasDoubleClick({clientX:C.clientX,clientY:C.clientY}),Sa=!1,clearTimeout(Pi)}f.Dt&&d.preventDefault(),d.touches.length===2&&r.setState({selectedElementIds:(0,un.Oh)({},r.state),activeEmbeddable:null})},this.onTouchEnd=function(d){r.resetContextMenuTimer(),d.touches.length>0?r.setState({previousSelectedElementIds:{},selectedElementIds:(0,un.Oh)(r.state.previousSelectedElementIds,r.state)}):fn.pointers.clear()},this.pasteFromClipboard=(0,s.tH)(function(){var d=(0,h.Z)(u().mark(function C(K){var ae,ye,F,T,fe,Me,je,Fe,Ue,Ge,rt,it,lt,Yt,jt,ct,xt;return u().wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:if(F=!!Li,T=document.activeElement,fe=(ae=r.excalidrawContainerRef.current)===null||ae===void 0?void 0:ae.contains(T),!K||fe){Mt.next=5;break}return Mt.abrupt("return");case 5:if(Me=document.elementFromPoint(r.lastViewportPosition.x,r.lastViewportPosition.y),!K||Me instanceof HTMLCanvasElement&&!(0,s.s)(T)){Mt.next=8;break}return Mt.abrupt("return");case 8:return je=(0,s.dE)({clientX:r.lastViewportPosition.x,clientY:r.lastViewportPosition.y},r.state),Fe=je.x,Ue=je.y,Ge=K==null||(ye=K.clipboardData)===null||ye===void 0?void 0:ye.files[0],Mt.next=12,(0,x.mQ)(K,F);case 12:if(rt=Mt.sent,Ge||F){Mt.next=19;break}if(!rt.mixedContent){Mt.next=18;break}return Mt.abrupt("return",r.addElementsFromMixedContentPaste(rt.mixedContent,{isPlainPaste:F,sceneX:Fe,sceneY:Ue}));case 18:rt.text&&(it=rt.text.trim()).startsWith("<svg")&&it.endsWith("</svg>")&&(Ge=(0,Ct.Pn)(it));case 19:if(!(0,Ct.Wr)(Ge)||rt.spreadsheet){Mt.next=28;break}if(r.isToolSupported("image")){Mt.next=23;break}return r.setState({errorMessage:(0,R.t)("errors.imageToolNotSupported")}),Mt.abrupt("return");case 23:return lt=r.createImageElement({sceneX:Fe,sceneY:Ue}),r.insertImageElement(lt,Ge),r.initializeImageDimensions(lt),r.setState({selectedElementIds:(0,un.Oh)((0,H.Z)({},lt.id,!0),r.state)}),Mt.abrupt("return");case 28:if(!r.props.onPaste){Mt.next=40;break}return Mt.prev=29,Mt.next=32,r.props.onPaste(rt,K);case 32:if(Mt.t0=Mt.sent,Mt.t0!==!1){Mt.next=35;break}return Mt.abrupt("return");case 35:Mt.next=40;break;case 37:Mt.prev=37,Mt.t1=Mt.catch(29),console.error(Mt.t1);case 40:if(!rt.errorMessage){Mt.next=44;break}r.setState({errorMessage:rt.errorMessage}),Mt.next=60;break;case 44:if(!rt.spreadsheet||F){Mt.next=48;break}r.setState({pasteDialog:{data:rt.spreadsheet,shown:!0}}),Mt.next=60;break;case 48:if(!rt.elements){Mt.next=53;break}Yt=rt.programmaticAPI?(0,kt.w)(rt.elements):rt.elements,r.addElementsFromPasteOrLibrary({elements:Yt,files:rt.files||null,position:"cursor",retainSeed:F}),Mt.next=60;break;case 53:if(!rt.text){Mt.next=60;break}if(ct=(0,p.eX)(rt.text),F||!(0,p.xm)(ct,r.props.validateEmbeddable)||!/^(http|https):\/\/[^\s/$.?#].[^\s]*$/.test(ct)&&((jt=(0,p.LM)(ct))===null||jt===void 0?void 0:jt.type)!=="video"){Mt.next=59;break}return(xt=r.insertEmbeddableElement({sceneX:Fe,sceneY:Ue,link:(0,Ko.$u)(ct)}))&&r.setState({selectedElementIds:(0,H.Z)({},xt.id,!0)}),Mt.abrupt("return");case 59:r.addTextFromPaste(rt.text,F);case 60:r.setActiveTool({type:"selection"}),K?.preventDefault();case 62:case"end":return Mt.stop()}},C,null,[[29,37]])}));return function(C){return d.apply(this,arguments)}}()),this.addElementsFromPasteOrLibrary=function(d){var C=(0,ie.ET)(d.elements,null,void 0),K=(0,V.KP)(C),ae=(0,E.Z)(K,4),ye=ae[0],F=ae[1],T=ae[2],fe=ae[3],Me=(0,s.TE)(ye,T)/2,je=(0,s.TE)(F,fe)/2,Fe=(0,D.Z)(d.position)==="object"?d.position.clientX:d.position==="cursor"?r.lastViewportPosition.x:r.state.width/2+r.state.offsetLeft,Ue=(0,D.Z)(d.position)==="object"?d.position.clientY:d.position==="cursor"?r.lastViewportPosition.y:r.state.height/2+r.state.offsetTop,Ge=(0,s.dE)({clientX:Fe,clientY:Ue},r.state),rt=Ge.x-Me,it=Ge.y-je,lt=(0,J.wC)(rt,it,r.state.gridSize),Yt=(0,E.Z)(lt,2),jt=Yt[0],ct=Yt[1],xt=(0,te._N)(C.map(function(Ht){return(0,g.BE)(Ht,{x:Ht.x+jt-ye,y:Ht.y+ct-F})}),{randomizeSeed:!d.retainSeed}),Mt=[].concat((0,y.Z)(r.scene.getElementsIncludingDeleted()),(0,y.Z)(xt));r.scene.replaceAllElements(Mt),xt.forEach(function(Ht){if((0,V.iB)(Ht)&&(0,L.Xh)(Ht)){var Tt=(0,et.tl)(Ht);(0,V.oN)(Ht,Tt)}}),d.files&&(r.files=Zt(Zt({},r.files),d.files)),r.history.resumeRecording();var Vt=(0,un.aI)(xt);r.setState(Zt(Zt({},r.state),{},{openSidebar:r.state.openSidebar&&r.device.editor.canFitSidebar&&ko.e_.get(Ta.t6)?r.state.openSidebar:null},(0,We.bO)({editingGroupId:null,selectedElementIds:Vt.reduce(function(Ht,Tt){return(0,L.Xh)(Tt)||(Ht[Tt.id]=!0),Ht},{})},r.scene.getNonDeletedElements(),r.state,r)),function(){d.files&&r.addNewImagesToImageCache()}),r.setActiveTool({type:"selection"}),d.fitToContent&&r.scrollToContent(xt,{fitToContent:!0})},this.setAppState=function(d,C){r.setState(d,C)},this.removePointer=function(d){Ro&&r.resetContextMenuTimer(),fn.pointers.delete(d.pointerId)},this.toggleLock=function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ui";r.state.activeTool.locked||(0,c.L)("toolbar","toggleLock","".concat(d," (").concat(r.device.editor.isMobile?"mobile":"desktop",")")),r.setState(function(C){return{activeTool:Zt(Zt(Zt({},C.activeTool),(0,s.Om)(r.state,C.activeTool.locked?{type:"selection"}:C.activeTool)),{},{locked:!C.activeTool.locked})}})},this.updateFrameRendering=function(d){r.setState(function(C){var K,ae,ye,F,T=typeof d=="function"?d(C.frameRendering):d;return{frameRendering:{enabled:(K=T?.enabled)!==null&&K!==void 0?K:C.frameRendering.enabled,clip:(ae=T?.clip)!==null&&ae!==void 0?ae:C.frameRendering.clip,name:(ye=T?.name)!==null&&ye!==void 0?ye:C.frameRendering.name,outline:(F=T?.outline)!==null&&F!==void 0?F:C.frameRendering.outline}}})},this.togglePenMode=function(d){r.setState(function(C){return{penMode:d??!C.penMode,penDetected:!0}})},this.onHandToolToggle=function(){r.actionManager.executeAction(Ka.eF)},this.zoomCanvas=function(d){r.setState(Zt({},(0,o.E)({viewportX:r.state.width/2+r.state.offsetLeft,viewportY:r.state.height/2+r.state.offsetTop,nextZoom:(0,ke.j)(d)},r.state)))},this.cancelInProgresAnimation=null,this.scrollToContent=function(){var d,C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:r.scene.getNonDeletedElements(),K=arguments.length>1?arguments[1]:void 0;(d=r.cancelInProgresAnimation)===null||d===void 0||d.call(r);var ae=Array.isArray(C)?C:[C],ye=r.state.zoom,F=r.state.scrollX,T=r.state.scrollY;if(K!=null&&K.fitToContent||K!=null&&K.fitToViewport){var fe=(0,Ka.JB)({targetElements:ae,appState:r.state,fitToViewport:!(K==null||!K.fitToViewport),viewportZoomFactor:K?.viewportZoomFactor}),Me=fe.appState;ye=Me.zoom,F=Me.scrollX,T=Me.scrollY}else{var je=(0,ke.W)(ae,r.state);F=je.scrollX,T=je.scrollY}if(K!=null&&K.animate){var Fe,Ue=r.state.scrollX,Ge=r.state.scrollY,rt=r.state.zoom.value,it=(0,s.B4)({fromValues:{scrollX:Ue,scrollY:Ge,zoom:rt},toValues:{scrollX:F,scrollY:T,zoom:ye.value},interpolateValue:function(lt,Yt,jt,ct){if(ct==="zoom")return lt*Math.pow(Yt/lt,(0,s.Vv)(jt))},onStep:function(lt){var Yt=lt.scrollX,jt=lt.scrollY,ct=lt.zoom;r.setState({scrollX:Yt,scrollY:jt,zoom:{value:ct}})},onStart:function(){r.setState({shouldCacheIgnoreZoom:!0})},onEnd:function(){r.setState({shouldCacheIgnoreZoom:!1})},onCancel:function(){r.setState({shouldCacheIgnoreZoom:!1})},duration:(Fe=K?.duration)!==null&&Fe!==void 0?Fe:500});r.cancelInProgresAnimation=function(){it(),r.cancelInProgresAnimation=null}}else r.setState({scrollX:F,scrollY:T,zoom:ye})},this.translateCanvas=function(d){var C;(C=r.cancelInProgresAnimation)===null||C===void 0||C.call(r),r.setState(d)},this.setToast=function(d){r.setState({toast:d})},this.restoreFileFromShare=(0,h.Z)(u().mark(function d(){var C,K,ae,ye;return u().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.prev=0,F.next=3,caches.open("web-share-target");case 3:return C=F.sent,F.next=6,C.match("shared-file");case 6:if(!(K=F.sent)){F.next=16;break}return F.next=10,K.blob();case 10:return ae=F.sent,ye=new File([ae],ae.name||"",{type:ae.type}),r.loadFileToCanvas(ye,null),F.next=15,C.delete("shared-file");case 15:window.history.replaceState(null,f.iC,window.location.pathname);case 16:F.next=21;break;case 18:F.prev=18,F.t0=F.catch(0),r.setState({errorMessage:F.t0.message});case 21:case"end":return F.stop()}},d,null,[[0,18]])})),this.addFiles=(0,s.tH)(function(d){var C=d.reduce(function(K,ae){return K.set(ae.id,ae),K},new Map);r.files=Zt(Zt({},r.files),Object.fromEntries(C)),r.scene.getNonDeletedElements().forEach(function(K){(0,L.wi)(K)&&C.has(K.fileId)&&(r.imageCache.delete(K.fileId),Eo.R.delete(K))}),r.scene.informMutation(),r.addNewImagesToImageCache()}),this.updateScene=(0,s.tH)(function(d){d.commitToHistory&&r.history.resumeRecording(),d.appState&&r.setState(d.appState),d.elements&&r.scene.replaceAllElements(d.elements),d.collaborators&&r.setState({collaborators:d.collaborators})}),this.onSceneUpdated=function(){r.setState({})},this.toggleSidebar=function(d){var C,K,ae=d.name,ye=d.tab,F=d.force;return F===void 0?C=((K=r.state.openSidebar)===null||K===void 0?void 0:K.name)===ae?null:ae:C=F?ae:null,r.setState({openSidebar:C?{name:C,tab:ye}:null}),!!C},this.updateCurrentCursorPosition=(0,s.tH)(function(d){r.lastViewportPosition.x=d.clientX,r.lastViewportPosition.y=d.clientY}),this.onKeyDown=(0,s.tH)(function(d){if("Proxy"in window&&(!d.shiftKey&&/^[A-Z]$/.test(d.key)||d.shiftKey&&/^[a-z]$/.test(d.key))&&(d=new Proxy(d,{get:function(jt,ct){var xt=jt[ct];return typeof xt=="function"?xt.bind(jt):ct==="key"?d.shiftKey?jt.key.toUpperCase():jt.key.toLowerCase():xt}})),d[_.tW.CTRL_OR_CMD]&&d.key.toLowerCase()===_.tW.V&&(Li=d.shiftKey,clearTimeout($i),$i=window.setTimeout(function(){Li=!1},100)),!d[_.tW.CTRL_OR_CMD]||!(0,s.s)(d.target)||d.code!==_.aU.MINUS&&d.code!==_.aU.EQUAL){if(!((0,s.s)(d.target)&&d.key!==_.tW.ESCAPE||(0,_.Wl)(d.key)&&(0,s._Z)(d.target)))if(d.key!==_.tW.QUESTION_MARK){if(d.key.toLowerCase()===_.tW.E&&d.shiftKey&&d[_.tW.CTRL_OR_CMD])return d.preventDefault(),void r.setState({openDialog:"imageExport"});if(d.key===_.tW.PAGE_UP||d.key===_.tW.PAGE_DOWN){var C=(d.shiftKey?r.state.width:r.state.height)/r.state.zoom.value;d.key===_.tW.PAGE_DOWN&&(C=-C),d.shiftKey?r.translateCanvas(function(jt){return{scrollX:jt.scrollX+C}}):r.translateCanvas(function(jt){return{scrollY:jt.scrollY+C}})}if(!r.actionManager.handleKeyDown(d)&&!r.state.viewModeEnabled){if(d[_.tW.CTRL_OR_CMD]&&r.state.isBindingEnabled&&r.setState({isBindingEnabled:!1}),(0,_.Wl)(d.key)){var K=r.state.gridSize&&(d.shiftKey?f.$e:r.state.gridSize)||(d.shiftKey?f.Iw:f.$e),ae=0,ye=0;d.key===_.tW.ARROW_LEFT?ae=-K:d.key===_.tW.ARROW_RIGHT?ae=K:d.key===_.tW.ARROW_UP?ye=-K:d.key===_.tW.ARROW_DOWN&&(ye=K);var F=r.scene.getSelectedElements({selectedElementIds:r.state.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0});F.forEach(function(jt){(0,g.DR)(jt,{x:jt.x+ae,y:jt.y+ye}),(0,O.Ww)(jt,{simultaneouslyUpdated:F})}),r.maybeSuggestBindingForAll(F),d.preventDefault()}else if(d.key===_.tW.ENTER){var T=r.scene.getSelectedElements(r.state);if(T.length===1){var fe=T[0];if(d[_.tW.CTRL_OR_CMD])(0,L.bt)(fe)&&(r.state.editingLinearElement&&r.state.editingLinearElement.elementId===T[0].id||(r.history.resumeRecording(),r.setState({editingLinearElement:new ce._(fe,r.scene)})));else{if((0,V.iB)(fe)||(0,et.Zr)(fe)){var Me;(0,V.iB)(fe)||(Me=fe);var je=(0,et.TP)(fe,r.state),Fe=je.x,Ue=je.y;return r.startTextEditing({sceneX:Fe,sceneY:Ue,container:Me}),void d.preventDefault()}(0,L.He)(fe)&&r.setState({editingFrame:fe.id})}}}else if(!d.ctrlKey&&!d.altKey&&!d.metaKey&&r.state.draggingElement===null){var Ge=function(jt){var ct=i.find(function(xt,Mt){return xt.numericKey!=null&&jt===xt.numericKey.toString()||xt.key&&(typeof xt.key=="string"?xt.key===jt:xt.key.includes(jt))});return ct?.value||null}(d.key);Ge?(r.state.activeTool.type!==Ge&&(0,c.L)("toolbar",Ge,"keyboard (".concat(r.device.editor.isMobile?"mobile":"desktop",")")),r.setActiveTool({type:Ge}),d.stopPropagation()):d.key===_.tW.Q&&(r.toggleLock("keyboard"),d.stopPropagation())}if(d.key===_.tW.SPACE&&fn.pointers.size===0&&(Vo=!0,(0,Gr.KJ)(r.interactiveCanvas,f.oc.GRAB),d.preventDefault()),!(d.key!==_.tW.G&&d.key!==_.tW.S||d.altKey||d[_.tW.CTRL_OR_CMD])){var rt=r.scene.getSelectedElements(r.state);if(r.state.activeTool.type==="selection"&&!rt.length)return;d.key===_.tW.G&&((0,ke.$b)(r.state.activeTool.type)||rt.some(function(jt){return(0,ke.$b)(jt.type)}))&&(r.setState({openPopup:"elementBackground"}),d.stopPropagation()),d.key===_.tW.S&&(r.setState({openPopup:"elementStroke"}),d.stopPropagation())}if(d.key!==_.tW.K||d.altKey||d[_.tW.CTRL_OR_CMD]){!d[_.tW.CTRL_OR_CMD]||d.key!==_.tW.BACKSPACE&&d.key!==_.tW.DELETE||ko.e_.set(Da.w,"clearCanvas");var it=d.key.toLocaleLowerCase(),lt=it===_.tW.S&&d.shiftKey,Yt=d.key===_.tW.I||it===_.tW.G&&d.shiftKey;(lt||Yt)&&r.openEyeDropper({type:lt?"stroke":"background"})}else r.state.activeTool.type==="laser"?r.setActiveTool({type:"selection"}):r.setActiveTool({type:"laser"})}}else r.setState({openDialog:"help"})}else d.preventDefault()}),this.onWheel=(0,s.tH)(function(d){d.target instanceof HTMLCanvasElement||!d.ctrlKey||d.preventDefault()}),this.onKeyUp=(0,s.tH)(function(d){if(d.key===_.tW.SPACE&&(r.state.viewModeEnabled?(0,Gr.KJ)(r.interactiveCanvas,f.oc.GRAB):r.state.activeTool.type==="selection"?(0,Gr.z8)(r.interactiveCanvas):((0,Gr.Uk)(r.interactiveCanvas,r.state),r.setState({selectedElementIds:(0,un.Oh)({},r.state),selectedGroupIds:{},editingGroupId:null,activeEmbeddable:null})),Vo=!1),d[_.tW.CTRL_OR_CMD]||r.state.isBindingEnabled||r.setState({isBindingEnabled:!0}),(0,_.Wl)(d.key)){var C=r.scene.getSelectedElements(r.state);(0,O.N1)(r.state)?(0,O.el)(C):(0,O.H)(C),r.setState({suggestedBindings:[]})}}),this.isToolSupported=function(d){var C;return((C=r.props.UIOptions.tools)===null||C===void 0?void 0:C[d])!==!1},this.setActiveTool=function(d){if(r.isToolSupported(d.type)){var C,K=(0,s.Om)(r.state,d);K.type==="hand"?(0,Gr.KJ)(r.interactiveCanvas,f.oc.GRAB):Vo||(0,Gr.Uk)(r.interactiveCanvas,r.state),(0,s.wO)(document.activeElement)&&r.focusContainer(),(0,L.dt)(K.type)||r.setState({suggestedBindings:[]}),K.type==="image"&&r.onImageAction({insertOnCanvasDirectly:(C=d.type==="image"&&d.insertOnCanvasDirectly)!==null&&C!==void 0&&C}),r.setState(function(ae){var ye={snapLines:ae.snapLines.length?[]:ae.snapLines,originSnapOffset:null,activeEmbeddable:null};return K.type!=="selection"?Zt(Zt({},ae),{},{activeTool:K,selectedElementIds:(0,un.Oh)({},ae),selectedGroupIds:(0,un.Oh)({},ae),editingGroupId:null,multiElement:null},ye):Zt(Zt({},ae),{},{activeTool:K},ye)})}else console.warn('"'.concat(d.type,'" tool is disabled via "UIOptions.canvasActions.tools.').concat(d.type,'"'))},this.setOpenDialog=function(d){r.setState({openDialog:d})},this.setCursor=function(d){(0,Gr.KJ)(r.interactiveCanvas,d)},this.resetCursor=function(){(0,Gr.z8)(r.interactiveCanvas)},this.isTouchScreenMultiTouchGesture=function(){return fn.pointers.size>=2},this.onGestureStart=(0,s.tH)(function(d){d.preventDefault(),r.isTouchScreenMultiTouchGesture()&&r.setState({selectedElementIds:(0,un.Oh)({},r.state),activeEmbeddable:null}),fn.initialScale=r.state.zoom.value}),this.onGestureChange=(0,s.tH)(function(d){if(d.preventDefault(),!r.isTouchScreenMultiTouchGesture()){var C=fn.initialScale;C&&r.setState(function(K){return Zt({},(0,o.E)({viewportX:r.lastViewportPosition.x,viewportY:r.lastViewportPosition.y,nextZoom:(0,ke.j)(C*d.scale)},K))})}}),this.onGestureEnd=(0,s.tH)(function(d){d.preventDefault(),r.isTouchScreenMultiTouchGesture()&&r.setState({previousSelectedElementIds:{},selectedElementIds:(0,un.Oh)(r.state.previousSelectedElementIds,r.state)}),fn.initialScale=null}),this.startTextEditing=function(d){var C,K,ae,ye,F=d.sceneX,T=d.sceneY,fe=d.insertAtParentCenter,Me=fe===void 0||fe,je=d.container,Fe=!1,Ue=Me&&r.getTextWysiwygSnappedToCenterPosition(F,T,r.state,je);je&&Ue&&((0,et.WJ)(je)||(Fe=!0));var Ge=null,rt=r.scene.getSelectedElements(r.state),it=((C=Ge=rt.length===1?(0,V.iB)(rt[0])?rt[0]:je?(0,et.WJ)(rt[0]):r.getTextElementAtPosition(F,T):r.getTextElementAtPosition(F,T))===null||C===void 0?void 0:C.fontFamily)||r.state.currentItemFontFamily,lt=((K=Ge)===null||K===void 0?void 0:K.lineHeight)||(0,et.PT)(it),Yt=r.state.currentItemFontSize;if(!Ge&&Fe&&je&&!(0,L.Yv)(je)){var jt={fontSize:Yt,fontFamily:it},ct=(0,et.AT)((0,s.mO)(jt),lt),xt=(0,et.w_)(Yt,lt),Mt=Math.max(je.height,xt),Vt=Math.max(je.width,ct);(0,g.DR)(je,{height:Mt,width:Vt}),F=je.x+Vt/2,T=je.y+Mt/2,Ue&&(Ue=r.getTextWysiwygSnappedToCenterPosition(F,T,r.state,je))}var Ht=r.getTopLayerFrameAtSceneCoords({x:F,y:T}),Tt=Ge||(0,V.VL)({x:Ue?Ue.elementCenterX:F,y:Ue?Ue.elementCenterY:T,strokeColor:r.state.currentItemStrokeColor,backgroundColor:r.state.currentItemBackgroundColor,fillStyle:r.state.currentItemFillStyle,strokeWidth:r.state.currentItemStrokeWidth,strokeStyle:r.state.currentItemStrokeStyle,roughness:r.state.currentItemRoughness,opacity:r.state.currentItemOpacity,text:"",fontSize:Yt,fontFamily:it,textAlign:Ue?"center":r.state.currentItemTextAlign,verticalAlign:Ue?f.oX.MIDDLE:f.hs,containerId:Fe?je?.id:void 0,groupIds:(ae=je?.groupIds)!==null&&ae!==void 0?ae:[],lineHeight:lt,angle:(ye=je?.angle)!==null&&ye!==void 0?ye:0,frameId:Ht?Ht.id:null});if(!Ge&&Fe&&je&&(0,g.DR)(je,{boundElements:(je.boundElements||[]).concat({type:"text",id:Tt.id})}),r.setState({editingElement:Tt}),!Ge)if(je&&Fe){var Kt=r.scene.getElementIndex(je.id);r.scene.insertElementAtIndex(Tt,Kt+1)}else r.scene.addNewElement(Tt);r.setState({editingElement:Tt}),r.handleTextWysiwyg(Tt,{isExistingElement:!!Ge})},this.handleCanvasDoubleClick=function(d){if(!r.state.multiElement&&r.state.activeTool.type==="selection"){var C=r.scene.getSelectedElements(r.state);if(C.length===1&&(0,L.bt)(C[0])){if(d[_.tW.CTRL_OR_CMD]&&(!r.state.editingLinearElement||r.state.editingLinearElement.elementId!==C[0].id))return r.history.resumeRecording(),void r.setState({editingLinearElement:new ce._(C[0],r.scene)});if(r.state.editingLinearElement&&r.state.editingLinearElement.elementId===C[0].id)return}(0,Gr.z8)(r.interactiveCanvas);var K=(0,s.dE)(d,r.state),ae=K.x,ye=K.y;if((0,We.iJ)(r.state).length>0){var F=r.getElementAtPosition(ae,ye),T=F&&(0,We.YS)(F,r.state.selectedGroupIds);if(T)return void r.setState(function(Fe){return Zt(Zt({},Fe),(0,We.bO)({editingGroupId:T,selectedElementIds:(0,H.Z)({},F.id,!0)},r.scene.getNonDeletedElements(),Fe,r))})}if((0,Gr.z8)(r.interactiveCanvas),!d[_.tW.CTRL_OR_CMD]&&!r.state.viewModeEnabled){var fe=r.getElementAtPosition(ae,ye);if((0,L.gs)(fe))return void r.setState({activeEmbeddable:{element:fe,state:"active"}});var Me=(0,et.OW)(r.scene.getNonDeletedElements(),r.state,ae,ye);if(Me&&((0,L.Xo)(Me)||!(0,s.Qm)(Me.backgroundColor)||(0,Ba.Qu)(Me,r.state,r.frameNameBoundsCache,[ae,ye]))){var je=(0,et.TP)(Me,r.state);ae=je.x,ye=je.y}r.startTextEditing({sceneX:ae,sceneY:ye,insertAtParentCenter:!d.altKey,container:Me})}}},this.getElementLinkAtPosition=function(d,C){var K=r.scene.getNonDeletedElements().slice().reverse(),ae=1/0;return K.find(function(ye,F){return C&&ye.id===C.id&&(ae=F),ye.link&&F<=ae&&(0,Io.Ni)(ye,r.state,[d.x,d.y],r.device.editor.isMobile)})},this.redirectToLink=function(d,C){var K=(0,J.LW)(r.lastPointerDownEvent.clientX,r.lastPointerDownEvent.clientY,r.lastPointerUpEvent.clientX,r.lastPointerUpEvent.clientY);if(!(!r.hitLinkElement||C&&K>f.f||!C&&K!==0)){var ae=(0,s.dE)(r.lastPointerDownEvent,r.state),ye=(0,Io.Ni)(r.hitLinkElement,r.state,[ae.x,ae.y],r.device.editor.isMobile),F=(0,s.dE)(r.lastPointerUpEvent,r.state),T=(0,Io.Ni)(r.hitLinkElement,r.state,[F.x,F.y],r.device.editor.isMobile);if(ye&&T){var fe,Me,je=r.hitLinkElement.link;if(je&&(je=(0,Ko.$u)(je),r.props.onLinkOpen&&(Me=(0,s.ag)(f.Ks.EXCALIDRAW_LINK,d.nativeEvent),r.props.onLinkOpen(Zt(Zt({},r.hitLinkElement),{},{link:je}),Me)),(fe=Me)===null||fe===void 0||!fe.defaultPrevented)){var Fe=(0,Ko.q$)(je)?"_self":"_blank",Ue=window.open(void 0,Fe);Ue&&(Ue.opener=null,Ue.location=je)}}}},this.getTopLayerFrameAtSceneCoords=function(d){var C=r.scene.getNonDeletedFrames().filter(function(K){return(0,_n.Dn)(d,K)});return C.length?C[C.length-1]:null},this.handleCanvasPointerMove=function(d){r.savePointer(d.clientX,d.clientY,r.state.cursorButton),fn.pointers.has(d.pointerId)&&fn.pointers.set(d.pointerId,{x:d.clientX,y:d.clientY});var C=fn.initialScale;if(fn.pointers.size===2&&fn.lastCenter&&C&&fn.initialDistance){var K=re(fn.pointers),ae=K.x-fn.lastCenter.x,ye=K.y-fn.lastCenter.y;fn.lastCenter=K;var F=me(Array.from(fn.pointers.values())),T=r.state.activeTool.type==="freedraw"&&r.state.penMode?1:F/fn.initialDistance,fe=T?(0,ke.j)(C*T):r.state.zoom.value;r.setState(function(In){var Fn=(0,o.E)({viewportX:K.x,viewportY:K.y,nextZoom:fe},In);r.translateCanvas({zoom:Fn.zoom,scrollX:Fn.scrollX+ae/fe,scrollY:Fn.scrollY+ye/fe,shouldCacheIgnoreZoom:!0})}),r.resetShouldCacheIgnoreZoomDebounced()}else fn.lastCenter=fn.initialDistance=fn.initialScale=null;if(!(Vo||ja||Ti||(0,k.l$)(r.state))){var Me=(0,ke._4)(Di,d.clientX-r.state.offsetLeft,d.clientY-r.state.offsetTop).isOverEither;r.state.draggingElement||r.state.multiElement||(Me?(0,Gr.z8)(r.interactiveCanvas):(0,Gr.Uk)(r.interactiveCanvas,r.state));var je,Fe=(0,s.dE)(d,r.state),Ue=Fe.x,Ge=Fe.y;if(r.state.draggingElement||(je=r.state.activeTool.type)!=="rectangle"&&je!=="ellipse"&&je!=="diamond"&&je!=="frame"&&je!=="image")r.state.draggingElement||r.setState({snapLines:[]});else{var rt=function(In,Fn,vn,Nn){if(!vo({event:Nn,selectedElements:[],appState:Fn}))return{originOffset:{x:0,y:0},snapLines:[]};var Dn,dn=(0,un.CF)(In,[],Fn),Po=go(Fn.zoom.value),mo={x:Po,y:Po},Lr=[],wn=[],An=ao(dn);try{for(An.s();!(Dn=An.n()).done;){var Yn,Vn=Dn.value,qn=ao(Yo([Vn]));try{for(qn.s();!(Yn=qn.n()).done;){var eo=Yn.value,sn=eo[0]-vn.x;Math.abs(sn)<=Math.abs(mo.x)&&(Math.abs(sn)<Math.abs(mo.x)&&(wn.length=0),wn.push({type:"pointer",points:[eo,[eo[0],vn.y]],direction:"vertical"}),mo.x=sn);var Xn=eo[1]-vn.y;Math.abs(Xn)<=Math.abs(mo.y)&&(Math.abs(Xn)<Math.abs(mo.y)&&(Lr.length=0),Lr.push({type:"pointer",points:[eo,[vn.x,eo[1]]],direction:"horizontal"}),mo.y=Xn)}}catch(so){qn.e(so)}finally{qn.f()}}}catch(so){An.e(so)}finally{An.f()}return{originOffset:{x:wn.length>0?wn[0].points[0][0]-vn.x:0,y:Lr.length>0?Lr[0].points[0][1]-vn.y:0},snapLines:[].concat(wn,Lr)}}(r.scene.getNonDeletedElements(),r.state,{x:Ue,y:Ge},d),it=rt.originOffset,lt=rt.snapLines;r.setState({snapLines:lt,originSnapOffset:it})}if(r.state.editingLinearElement&&!r.state.editingLinearElement.isDragging){var Yt=ce._.handlePointerMove(d,Ue,Ge,r.state);Yt&&Yt!==r.state.editingLinearElement&&(0,de.flushSync)(function(){r.setState({editingLinearElement:Yt})}),Yt?.lastUncommittedPoint!=null?r.maybeSuggestBindingAtCursor(Fe):(0,de.flushSync)(function(){r.setState({suggestedBindings:[]})})}if((0,L.Lx)(r.state.activeTool.type)){var jt=r.state.draggingElement;(0,L.Mn)(jt,!1)?r.maybeSuggestBindingsForLinearElementAtCoords(jt,[Fe],r.state.startBoundElement):r.maybeSuggestBindingAtCursor(Fe)}if(r.state.multiElement){var ct=r.state.multiElement,xt=ct.x,Mt=ct.y,Vt=ct.points,Ht=ct.lastCommittedPoint,Tt=Vt[Vt.length-1];if((0,Gr.Uk)(r.interactiveCanvas,r.state),Tt===Ht)(0,J.LW)(Ue-xt,Ge-Mt,Tt[0],Tt[1])>=f.qx?(0,g.DR)(ct,{points:[].concat((0,y.Z)(Vt),[[Ue-xt,Ge-Mt]])}):(0,Gr.KJ)(r.interactiveCanvas,f.oc.POINTER);else if(Vt.length>2&&Ht&&(0,J.LW)(Ue-xt,Ge-Mt,Ht[0],Ht[1])<f.qx)(0,Gr.KJ)(r.interactiveCanvas,f.oc.POINTER),(0,g.DR)(ct,{points:Vt.slice(0,-1)});else{var Kt,hr=(0,J.wC)(Ue,Ge,d[_.tW.CTRL_OR_CMD]?null:r.state.gridSize),Mr=(0,E.Z)(hr,2),Nr=Mr[0],Kr=Mr[1],tn=(Kt=ct?.lastCommittedPoint)!==null&&Kt!==void 0?Kt:[0,0],Qr=(0,E.Z)(tn,2),Pr=Qr[0],on=Qr[1],Br=Nr-xt-Pr,en=Kr-Mt-on;if((0,_.Ge)(d)){var gn=(0,V.o4)(Pr+xt,on+Mt,Nr,Kr);Br=gn.width,en=gn.height}(0,J.g6)(Vt,r.state.zoom.value)&&(0,Gr.KJ)(r.interactiveCanvas,f.oc.POINTER),(0,g.DR)(ct,{points:[].concat((0,y.Z)(Vt.slice(0,-1)),[[Pr+Br,on+en]])})}}else if(!(d.buttons||r.state.activeTool.type!=="selection"&&r.state.activeTool.type!=="text"&&r.state.activeTool.type!=="eraser")){var xn=r.scene.getNonDeletedElements(),pn=r.scene.getSelectedElements(r.state);if(pn.length!==1||Me||r.state.editingLinearElement){if(pn.length>1&&!Me){var Tn=(0,V.n2)((0,V.KP)(pn),Ue,Ge,r.state.zoom,d.pointerType);if(Tn)return void(0,Gr.KJ)(r.interactiveCanvas,(0,V.Un)({transformHandleType:Tn}))}}else{var Xr=(0,V.jt)(xn,r.state,Ue,Ge,r.state.zoom,d.pointerType);if(Xr&&Xr.transformHandleType)return void(0,Gr.KJ)(r.interactiveCanvas,(0,V.Un)(Xr))}var cn=r.getElementAtPosition(Fe.x,Fe.y);if(r.hitLinkElement=r.getElementLinkAtPosition(Fe,cn),!(0,k.EN)(r.state))if(r.hitLinkElement&&!r.state.selectedElementIds[r.hitLinkElement.id])(0,Gr.KJ)(r.interactiveCanvas,f.oc.POINTER),(0,Io.Pp)(r.hitLinkElement,r.state);else if((0,Io.lV)(),cn&&(cn.link||(0,L.gs)(cn))&&r.state.selectedElementIds[cn.id]&&!r.state.contextMenu&&!r.state.showHyperlinkPopup)r.setState({showHyperlinkPopup:"info"});else if(r.state.activeTool.type==="text")(0,Gr.KJ)(r.interactiveCanvas,(0,V.iB)(cn)?f.oc.TEXT:f.oc.CROSSHAIR);else if(r.state.viewModeEnabled)(0,Gr.KJ)(r.interactiveCanvas,f.oc.GRAB);else if(Me)(0,Gr.KJ)(r.interactiveCanvas,f.oc.AUTO);else if(r.state.selectedLinearElement)r.handleHoverSelectedLinearElement(r.state.selectedLinearElement,Ue,Ge);else if(d[_.tW.CTRL_OR_CMD])(0,Gr.KJ)(r.interactiveCanvas,f.oc.AUTO);else{var Wn;(cn||r.isHittingCommonBoundingBoxOfSelectedElements(Fe,pn))&&(cn==null||!cn.locked)&&(cn&&(0,L.gs)(cn)&&r.isEmbeddableCenter(cn,d,Ue,Ge)?((0,Gr.KJ)(r.interactiveCanvas,f.oc.POINTER),r.setState({activeEmbeddable:{element:cn,state:"hover"}})):((0,Gr.KJ)(r.interactiveCanvas,f.oc.MOVE),((Wn=r.state.activeEmbeddable)===null||Wn===void 0?void 0:Wn.state)==="hover"&&r.setState({activeEmbeddable:null})))}}}},this.handleEraser=function(d,C,K){for(var ae=function(rt){rt.forEach(function(it){it.locked||(ye.push(it.id),d.altKey?C.elementIdsToErase[it.id]&&C.elementIdsToErase[it.id].erase&&(C.elementIdsToErase[it.id].erase=!1):C.elementIdsToErase[it.id]||(C.elementIdsToErase[it.id]={erase:!0,opacity:it.opacity}))})},ye=[],F=(0,J.LW)(C.lastCoords.x,C.lastCoords.y,K.x,K.y),T=10/r.state.zoom.value,fe=Zt({},C.lastCoords),Me=0;Me<=F&&(ae(r.getElementsAtPosition(fe.x,fe.y)),Me!==F);){var je=(Me=Math.min(Me+T,F))/F,Fe=(1-je)*fe.x+je*K.x,Ue=(1-je)*fe.y+je*K.y;fe.x=Fe,fe.y=Ue}var Ge=r.scene.getElementsIncludingDeleted().map(function(rt){var it=(0,L.Xh)(rt)&&ye.includes(rt.containerId)?rt.containerId:rt.id;if(ye.includes(it)){if(!d.altKey)return(0,g.BE)(rt,{opacity:f.xY});if(C.elementIdsToErase[it]&&C.elementIdsToErase[it].erase===!1)return(0,g.BE)(rt,{opacity:C.elementIdsToErase[it].opacity})}return rt});r.scene.replaceAllElements(Ge),C.lastCoords.x=K.x,C.lastCoords.y=K.y},this.handleTouchMove=function(d){_a=!0},this.handleCanvasPointerDown=function(d){var C,K;if(r.state.contextMenu&&r.setState({contextMenu:null}),r.state.snapLines&&r.setAppState({snapLines:[]}),r.updateGestureOnPointerDown(d),d.pointerType==="touch"&&r.state.draggingElement&&r.state.draggingElement.type==="freedraw"){var ae=r.state.draggingElement;r.updateScene(Zt(Zt({},ae.points.length<10?{elements:r.scene.getElementsIncludingDeleted().filter(function(lt){return lt.id!==ae.id})}:{}),{},{appState:{draggingElement:null,editingElement:null,startBoundElement:null,suggestedBindings:[],selectedElementIds:(0,un.Oh)(Object.keys(r.state.selectedElementIds).filter(function(lt){return lt!==ae.id}).reduce(function(lt,Yt){return lt[Yt]=r.state.selectedElementIds[Yt],lt},{}),r.state)}}))}else{var ye=document.getSelection();if(ye!=null&&ye.anchorNode&&ye.removeAllRanges(),r.maybeOpenContextMenuAfterPointerDownOnTouchDevices(d),r.maybeCleanupAfterMissingPointerUp(d),r.state.penDetected||d.pointerType!=="pen"||r.setState(function(lt){return{penMode:!0,penDetected:!0}}),!r.device.isTouchScreen&&["pen","touch"].includes(d.pointerType)&&(r.device=(0,s.v4)(r.device,{isTouchScreen:!0})),!(ja||(r.lastPointerDownEvent=d,r.handleCanvasPanUsingWheelOrSpaceDrag(d)||(r.setState({lastPointerDownWith:d.pointerType,cursorButton:"down"}),r.savePointer(d.clientX,d.clientY,"down"),d.button!==f.Oh.MAIN&&d.button!==f.Oh.TOUCH||fn.pointers.size>1)))){var F=r.initialPointerDownState(d);if(r.setState({selectedElementsAreBeingDragged:!1}),!r.handleDraggingScrollBar(d,F)&&(r.clearSelectionIfNotUsingSelection(),r.updateBindingEnabledOnPointerMove(d),!r.handleSelectionOnPointerDown(d,F)&&(!r.state.penMode||d.pointerType!=="touch"||r.state.activeTool.type==="selection"||r.state.activeTool.type==="text"||r.state.activeTool.type==="image")))if(r.state.activeTool.type!=="text"){if(r.state.activeTool.type==="arrow"||r.state.activeTool.type==="line")r.handleLinearElementOnPointerDown(d,r.state.activeTool.type,F);else if(r.state.activeTool.type==="image"){(0,Gr.KJ)(r.interactiveCanvas,f.oc.CROSSHAIR);var T=r.state.pendingImageElementId&&r.scene.getElement(r.state.pendingImageElementId);if(!T)return;r.setState({draggingElement:T,editingElement:T,pendingImageElementId:null,multiElement:null});var fe=(0,s.dE)(d,r.state),Me=fe.x,je=fe.y,Fe=r.getTopLayerFrameAtSceneCoords({x:Me,y:je});(0,g.DR)(T,{x:Me,y:je,frameId:Fe?Fe.id:null})}else r.state.activeTool.type==="freedraw"?r.handleFreeDrawElementOnPointerDown(d,r.state.activeTool.type,F):r.state.activeTool.type==="custom"?(0,Gr.Uk)(r.interactiveCanvas,r.state):r.state.activeTool.type==="frame"?r.createFrameElementOnPointerDown(F):r.state.activeTool.type==="laser"?r.laserPathManager.startPath(F.lastCoords.x,F.lastCoords.y):r.state.activeTool.type!=="eraser"&&r.state.activeTool.type!=="hand"&&r.createGenericElementOnPointerDown(r.state.activeTool.type,F);(C=r.props)===null||C===void 0||(K=C.onPointerDown)===null||K===void 0||K.call(C,r.state.activeTool,F),r.onPointerDownEmitter.trigger(r.state.activeTool,F,d);var Ue=r.onPointerMoveFromPointerDownHandler(F),Ge=r.onPointerUpFromPointerDownHandler(F),rt=r.onKeyDownFromPointerDownHandler(F),it=r.onKeyUpFromPointerDownHandler(F);zo=Ge,r.state.viewModeEnabled&&r.state.activeTool.type!=="laser"||(window.addEventListener(f.Ks.POINTER_MOVE,Ue),window.addEventListener(f.Ks.POINTER_UP,Ge),window.addEventListener(f.Ks.KEYDOWN,rt),window.addEventListener(f.Ks.KEYUP,it),F.eventListeners.onMove=Ue,F.eventListeners.onUp=Ge,F.eventListeners.onKeyUp=it,F.eventListeners.onKeyDown=rt)}else r.handleTextOnPointerDown(d,F)}}},this.handleCanvasPointerUp=function(d){var C,K;r.removePointer(d),r.lastPointerUpEvent=d;var ae=(0,s.dE)({clientX:d.clientX,clientY:d.clientY},r.state),ye=d.timeStamp-((C=(K=r.lastPointerDownEvent)===null||K===void 0?void 0:K.timeStamp)!==null&&C!==void 0?C:0);if(r.device.editor.isMobile&&ye<300){var F=r.getElementAtPosition(ae.x,ae.y);if((0,L.gs)(F)&&r.isEmbeddableCenter(F,d,ae.x,ae.y))return void r.handleEmbeddableCenterClick(F)}if(r.device.isTouchScreen){var T=r.getElementAtPosition(ae.x,ae.y);r.hitLinkElement=r.getElementLinkAtPosition(ae,T)}r.hitLinkElement&&!r.state.selectedElementIds[r.hitLinkElement.id]?ye<300&&r.hitLinkElement.type==="embeddable"&&!(0,Io.wq)(r.hitLinkElement,r.state,[ae.x,ae.y])?r.handleEmbeddableCenterClick(r.hitLinkElement):r.redirectToLink(d,r.device.isTouchScreen):r.state.viewModeEnabled&&r.setState({activeEmbeddable:null,selectedElementIds:{}})},this.maybeOpenContextMenuAfterPointerDownOnTouchDevices=function(d){d.pointerType==="touch"&&(_a=!1,Ro?_a=!0:Ro=window.setTimeout(function(){Ro=0,_a||r.handleCanvasContextMenu(d)},f.nM))},this.resetContextMenuTimer=function(){clearTimeout(Ro),Ro=0,_a=!1},this.handleCanvasPanUsingWheelOrSpaceDrag=function(d){if(!(fn.pointers.size<=1&&(d.button===f.Oh.WHEEL||d.button===f.Oh.MAIN&&Vo||(0,k.l$)(r.state)||r.state.viewModeEnabled))||(0,V.iB)(r.state.editingElement))return!1;ja=!0,d.preventDefault();var C=!1,K=/Linux/.test(window.navigator.platform);(0,Gr.KJ)(r.interactiveCanvas,f.oc.GRABBING);var ae=d.clientX,ye=d.clientY,F=(0,s.$9)(function(fe){var Me=ae-fe.clientX,je=ye-fe.clientY;if(ae=fe.clientX,ye=fe.clientY,K&&!C&&(Math.abs(Me)>1||Math.abs(je)>1)){C=!0;var Fe=function Ue(Ge){document.body.removeEventListener(f.Ks.PASTE,Ue),Ge.stopPropagation()};document.body.addEventListener(f.Ks.PASTE,Fe),window.addEventListener(f.Ks.POINTER_UP,function Ue(){setTimeout(function(){document.body.removeEventListener(f.Ks.PASTE,Fe),window.removeEventListener(f.Ks.POINTER_UP,Ue)},100)})}r.translateCanvas({scrollX:r.state.scrollX-Me/r.state.zoom.value,scrollY:r.state.scrollY-je/r.state.zoom.value})}),T=(0,s.tH)(zo=function(){zo=null,ja=!1,Vo||(r.state.viewModeEnabled?(0,Gr.KJ)(r.interactiveCanvas,f.oc.GRAB):(0,Gr.Uk)(r.interactiveCanvas,r.state)),r.setState({cursorButton:"up"}),r.savePointer(d.clientX,d.clientY,"up"),window.removeEventListener(f.Ks.POINTER_MOVE,F),window.removeEventListener(f.Ks.POINTER_UP,T),window.removeEventListener(f.Ks.BLUR,T),F.flush()});return window.addEventListener(f.Ks.BLUR,T),window.addEventListener(f.Ks.POINTER_MOVE,F,{passive:!0}),window.addEventListener(f.Ks.POINTER_UP,T),!0},this.clearSelectionIfNotUsingSelection=function(){r.state.activeTool.type!=="selection"&&r.setState({selectedElementIds:(0,un.Oh)({},r.state),selectedGroupIds:{},editingGroupId:null,activeEmbeddable:null})},this.handleSelectionOnPointerDown=function(d,C){if(r.state.activeTool.type==="selection"){var K=r.scene.getNonDeletedElements(),ae=r.scene.getSelectedElements(r.state);if(ae.length!==1||r.state.editingLinearElement)ae.length>1&&(C.resize.handleType=(0,V.n2)((0,V.KP)(ae),C.origin.x,C.origin.y,r.state.zoom,d.pointerType));else{var ye=(0,V.jt)(K,r.state,C.origin.x,C.origin.y,r.state.zoom,d.pointerType);ye!=null&&(r.setState({resizingElement:ye.element}),C.resize.handleType=ye.transformHandleType)}if(C.resize.handleType)C.resize.isResizing=!0,C.resize.offset=(0,s.AK)((0,V.xx)(C.resize.handleType,ae,C.origin.x,C.origin.y)),ae.length===1&&(0,L.bt)(ae[0])&&ae[0].points.length===2&&(C.resize.arrowDirection=(0,V.T)(C.resize.handleType,ae[0]));else{var F;if(r.state.selectedLinearElement){var T=r.state.editingLinearElement||r.state.selectedLinearElement,fe=ce._.handlePointerDown(d,r.state,r.history,C.origin,T);if(fe.hitElement&&(C.hit.element=fe.hitElement),fe.linearElementEditor&&(r.setState({selectedLinearElement:fe.linearElementEditor}),r.state.editingLinearElement&&r.setState({editingLinearElement:fe.linearElementEditor})),fe.didAddPoint)return!0}if(C.hit.element=(F=C.hit.element)!==null&&F!==void 0?F:r.getElementAtPosition(C.origin.x,C.origin.y),C.hit.element&&r.getElementLinkAtPosition({x:C.origin.x,y:C.origin.y},C.hit.element))return!1;C.hit.allHitElements=r.getElementsAtPosition(C.origin.x,C.origin.y);var Me=C.hit.element,je=C.hit.allHitElements.some(function(Fe){return r.isASelectedElement(Fe)});if(Me!==null&&je||d.shiftKey||C.hit.hasHitCommonBoundingBoxOfSelectedElements||r.clearSelection(Me),r.state.editingLinearElement)r.setState({selectedElementIds:(0,un.Oh)((0,H.Z)({},r.state.editingLinearElement.elementId,!0),r.state)});else if(Me!=null){if(d[_.tW.CTRL_OR_CMD])return r.state.selectedElementIds[Me.id]||(C.hit.wasAddedToSelection=!0),r.setState(function(Fe){return Zt(Zt({},(0,We.iE)(Fe,Me)),{},{previousSelectedElementIds:r.state.selectedElementIds})}),!1;r.state.selectedElementIds[Me.id]||(r.state.editingGroupId&&!(0,We.Nd)(Me,r.state.editingGroupId)&&r.setState({selectedElementIds:(0,un.Oh)({},r.state),selectedGroupIds:{},editingGroupId:null,activeEmbeddable:null}),je||C.hit.hasHitCommonBoundingBoxOfSelectedElements||(r.setState(function(Fe){var Ue=Zt(Zt({},Fe.selectedElementIds),{},(0,H.Z)({},Me.id,!0)),Ge=[];if(Object.keys(Fe.selectedElementIds).forEach(function(lt){var Yt=r.scene.getElement(lt);Yt&&Ge.push(Yt)}),Me.type==="frame")(0,_n.zD)(Ge,Me.id).forEach(function(lt){delete Ue[lt.id]});else if(Me.frameId)Ue[Me.frameId]&&delete Ue[Me.id];else{var rt=Me.groupIds,it=new Set(rt.flatMap(function(lt){return(0,We.Fb)(r.scene.getNonDeletedElements(),lt)}).filter(function(lt){return lt.type==="frame"}).map(function(lt){return lt.id}));it.size>0&&Ge.forEach(function(lt){lt.frameId&&it.has(lt.frameId)&&(delete Ue[lt.id],lt.groupIds.flatMap(function(Yt){return(0,We.Fb)(r.scene.getNonDeletedElements(),Yt)}).forEach(function(Yt){delete Ue[Yt.id]}))})}return Zt(Zt({},(0,We.bO)({editingGroupId:Fe.editingGroupId,selectedElementIds:Ue},r.scene.getNonDeletedElements(),Fe,r)),{},{showHyperlinkPopup:!(!Me.link&&!(0,L.gs)(Me))&&"info"})}),C.hit.wasAddedToSelection=!0))}r.setState({previousSelectedElementIds:r.state.selectedElementIds})}}return!1},this.handleTextOnPointerDown=function(d,C){if(!(0,V.iB)(r.state.editingElement)){var K=C.origin.x,ae=C.origin.y,ye=r.getElementAtPosition(K,ae,{includeBoundTextElement:!0}),F=(0,et.OW)(r.scene.getNonDeletedElements(),r.state,K,ae);(0,L.Xo)(ye)&&(F=ye,K=ye.x+ye.width/2,ae=ye.y+ye.height/2),r.startTextEditing({sceneX:K,sceneY:ae,insertAtParentCenter:!d.altKey,container:F}),(0,Gr.z8)(r.interactiveCanvas),r.state.activeTool.locked||r.setState({activeTool:(0,s.Om)(r.state,{type:"selection"})})}},this.handleFreeDrawElementOnPointerDown=function(d,C,K){var ae=(0,J.wC)(K.origin.x,K.origin.y,null),ye=(0,E.Z)(ae,2),F=ye[0],T=ye[1],fe=r.getTopLayerFrameAtSceneCoords({x:F,y:T}),Me=(0,te.KE)({type:C,x:F,y:T,strokeColor:r.state.currentItemStrokeColor,backgroundColor:r.state.currentItemBackgroundColor,fillStyle:r.state.currentItemFillStyle,strokeWidth:r.state.currentItemStrokeWidth,strokeStyle:r.state.currentItemStrokeStyle,roughness:r.state.currentItemRoughness,opacity:r.state.currentItemOpacity,roundness:null,simulatePressure:d.pressure===.5,locked:!1,frameId:fe?fe.id:null});r.setState(function(Ue){var Ge=Zt({},Ue.selectedElementIds);return delete Ge[Me.id],{selectedElementIds:(0,un.Oh)(Ge,Ue)}});var je=Me.simulatePressure?Me.pressures:[].concat((0,y.Z)(Me.pressures),[d.pressure]);(0,g.DR)(Me,{points:[[0,0]],pressures:je});var Fe=(0,O.Y9)(K.origin,r.scene);r.scene.addNewElement(Me),r.setState({draggingElement:Me,editingElement:Me,startBoundElement:Fe,suggestedBindings:[]})},this.insertEmbeddableElement=function(d){var C,K=d.sceneX,ae=d.sceneY,ye=d.link,F=(0,J.wC)(K,ae,(C=r.lastPointerDownEvent)!==null&&C!==void 0&&C[_.tW.CTRL_OR_CMD]?null:r.state.gridSize),T=(0,E.Z)(F,2),fe=T[0],Me=T[1],je=(0,p.LM)(ye);if(je){je.warning&&r.setToast({message:je.warning,closable:!0});var Fe=(0,te.M)({type:"embeddable",x:fe,y:Me,strokeColor:"transparent",backgroundColor:"transparent",fillStyle:r.state.currentItemFillStyle,strokeWidth:r.state.currentItemStrokeWidth,strokeStyle:r.state.currentItemStrokeStyle,roughness:r.state.currentItemRoughness,roundness:r.getCurrentItemRoundness("embeddable"),opacity:r.state.currentItemOpacity,locked:!1,width:je.aspectRatio.w,height:je.aspectRatio.h,link:ye,validated:null});return r.scene.replaceAllElements([].concat((0,y.Z)(r.scene.getElementsIncludingDeleted()),[Fe])),Fe}},this.createImageElement=function(d){var C,K=d.sceneX,ae=d.sceneY,ye=d.addToFrameUnderCursor,F=ye===void 0||ye,T=(0,J.wC)(K,ae,(C=r.lastPointerDownEvent)!==null&&C!==void 0&&C[_.tW.CTRL_OR_CMD]?null:r.state.gridSize),fe=(0,E.Z)(T,2),Me=fe[0],je=fe[1],Fe=F?r.getTopLayerFrameAtSceneCoords({x:Me,y:je}):null;return(0,V.vw)({type:"image",x:Me,y:je,strokeColor:r.state.currentItemStrokeColor,backgroundColor:r.state.currentItemBackgroundColor,fillStyle:r.state.currentItemFillStyle,strokeWidth:r.state.currentItemStrokeWidth,strokeStyle:r.state.currentItemStrokeStyle,roughness:r.state.currentItemRoughness,roundness:null,opacity:r.state.currentItemOpacity,locked:!1,frameId:Fe?Fe.id:null})},this.handleLinearElementOnPointerDown=function(d,C,K){if(r.state.multiElement){var ae=r.state.multiElement;if(ae.type==="line"&&(0,J.g6)(ae.points,r.state.zoom.value))return(0,g.DR)(ae,{lastCommittedPoint:ae.points[ae.points.length-1]}),void r.actionManager.executeAction(P.pL);var ye=ae.x,F=ae.y,T=ae.lastCommittedPoint;if(ae.points.length>1&&T&&(0,J.LW)(K.origin.x-ye,K.origin.y-F,T[0],T[1])<f.qx)return void r.actionManager.executeAction(P.pL);r.setState(function(Vt){return{selectedElementIds:(0,un.Oh)(Zt(Zt({},Vt.selectedElementIds),{},(0,H.Z)({},ae.id,!0)),Vt)}}),(0,g.DR)(ae,{lastCommittedPoint:ae.points[ae.points.length-1]}),(0,Gr.KJ)(r.interactiveCanvas,f.oc.POINTER)}else{var fe=(0,J.wC)(K.origin.x,K.origin.y,d[_.tW.CTRL_OR_CMD]?null:r.state.gridSize),Me=(0,E.Z)(fe,2),je=Me[0],Fe=Me[1],Ue=r.getTopLayerFrameAtSceneCoords({x:je,y:Fe}),Ge=r.state,rt=Ge.currentItemStartArrowhead,it=Ge.currentItemEndArrowhead,lt=C==="arrow"?[rt,it]:[null,null],Yt=(0,E.Z)(lt,2),jt=Yt[0],ct=Yt[1],xt=(0,V.y8)({type:C,x:je,y:Fe,strokeColor:r.state.currentItemStrokeColor,backgroundColor:r.state.currentItemBackgroundColor,fillStyle:r.state.currentItemFillStyle,strokeWidth:r.state.currentItemStrokeWidth,strokeStyle:r.state.currentItemStrokeStyle,roughness:r.state.currentItemRoughness,opacity:r.state.currentItemOpacity,roundness:r.state.currentItemRoundness==="round"?{type:f.a6.PROPORTIONAL_RADIUS}:null,startArrowhead:jt,endArrowhead:ct,locked:!1,frameId:Ue?Ue.id:null});r.setState(function(Vt){var Ht=Zt({},Vt.selectedElementIds);return delete Ht[xt.id],{selectedElementIds:(0,un.Oh)(Ht,Vt)}}),(0,g.DR)(xt,{points:[].concat((0,y.Z)(xt.points),[[0,0]])});var Mt=(0,O.Y9)(K.origin,r.scene);r.scene.addNewElement(xt),r.setState({draggingElement:xt,editingElement:xt,startBoundElement:Mt,suggestedBindings:[]})}},this.createGenericElementOnPointerDown=function(d,C){var K,ae,ye=(0,J.wC)(C.origin.x,C.origin.y,(K=r.lastPointerDownEvent)!==null&&K!==void 0&&K[_.tW.CTRL_OR_CMD]?null:r.state.gridSize),F=(0,E.Z)(ye,2),T=F[0],fe=F[1],Me=r.getTopLayerFrameAtSceneCoords({x:T,y:fe}),je={x:T,y:fe,strokeColor:r.state.currentItemStrokeColor,backgroundColor:r.state.currentItemBackgroundColor,fillStyle:r.state.currentItemFillStyle,strokeWidth:r.state.currentItemStrokeWidth,strokeStyle:r.state.currentItemStrokeStyle,roughness:r.state.currentItemRoughness,opacity:r.state.currentItemOpacity,roundness:r.getCurrentItemRoundness(d),locked:!1,frameId:Me?Me.id:null};(ae=d==="embeddable"?(0,te.M)(Zt({type:"embeddable",validated:null},je)):(0,V.Up)(Zt({type:d},je))).type==="selection"?r.setState({selectionElement:ae,draggingElement:ae}):(r.scene.addNewElement(ae),r.setState({multiElement:null,draggingElement:ae,editingElement:ae}))},this.createFrameElementOnPointerDown=function(d){var C,K=(0,J.wC)(d.origin.x,d.origin.y,(C=r.lastPointerDownEvent)!==null&&C!==void 0&&C[_.tW.CTRL_OR_CMD]?null:r.state.gridSize),ae=(0,E.Z)(K,2),ye=ae[0],F=ae[1],T=(0,te.M3)(Zt({x:ye,y:F,opacity:r.state.currentItemOpacity,locked:!1},f.iG));r.scene.replaceAllElements([].concat((0,y.Z)(r.scene.getElementsIncludingDeleted()),[T])),r.setState({multiElement:null,draggingElement:T,editingElement:T})},this.restoreReadyToEraseElements=function(d){var C=r.scene.getElementsIncludingDeleted().map(function(K){return d.elementIdsToErase[K.id]&&d.elementIdsToErase[K.id].erase?(0,g.BE)(K,{opacity:d.elementIdsToErase[K.id].opacity}):(0,L.Xh)(K)&&d.elementIdsToErase[K.containerId]&&d.elementIdsToErase[K.containerId].erase?(0,g.BE)(K,{opacity:d.elementIdsToErase[K.containerId].opacity}):K.frameId&&d.elementIdsToErase[K.frameId]&&d.elementIdsToErase[K.frameId].erase?(0,g.BE)(K,{opacity:d.elementIdsToErase[K.frameId].opacity}):K});r.scene.replaceAllElements(C)},this.eraseElements=function(d){var C=r.scene.getElementsIncludingDeleted().map(function(K){return d.elementIdsToErase[K.id]&&d.elementIdsToErase[K.id].erase||(0,L.Xh)(K)&&d.elementIdsToErase[K.containerId]&&d.elementIdsToErase[K.containerId].erase||K.frameId&&d.elementIdsToErase[K.frameId]&&d.elementIdsToErase[K.frameId].erase?(0,g.BE)(K,{isDeleted:!0}):K});r.history.resumeRecording(),r.scene.replaceAllElements(C)},this.initializeImage=function(){var d=(0,h.Z)(u().mark(function C(K){var ae,ye,F,T,fe,Me,je,Fe,Ue,Ge,rt,it,lt,Yt,jt;return u().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:if(T=K.imageFile,fe=K.imageElement,Me=K.showCursorImagePreview,je=Me!==void 0&&Me,(0,Ct.Wr)(T)){ct.next=3;break}throw new Error((0,R.t)("errors.unsupportedFileType"));case 3:if(Fe=T.type,(0,Gr.KJ)(r.interactiveCanvas,"wait"),Fe!==f.LO.svg){ct.next=23;break}return ct.prev=6,ct.t0=Ct.Pn,ct.t1=na.bp,ct.next=11,T.text();case 11:return ct.t2=ct.sent,ct.next=14,(0,ct.t1)(ct.t2);case 14:ct.t3=ct.sent,ct.t4=T.name,T=(0,ct.t0)(ct.t3,ct.t4),ct.next=23;break;case 19:throw ct.prev=19,ct.t5=ct.catch(6),console.warn(ct.t5),new Error((0,R.t)("errors.svgImageInsertError"));case 23:return ct.next=25,((ae=(ye=r.props).generateIdForFile)===null||ae===void 0?void 0:ae.call(ye,T))||(0,Ct.tW)(T);case 25:if(Ue=ct.sent){ct.next=29;break}throw console.warn("Couldn't generate file id or the supplied `generateIdForFile` didn't resolve to one."),new Error((0,R.t)("errors.imageInsertError"));case 29:if((Ge=r.files[Ue])!=null&&Ge.dataURL){ct.next=42;break}return ct.prev=31,ct.next=34,(0,Ct.Tu)(T,{maxWidthOrHeight:f.h6});case 34:T=ct.sent,ct.next=40;break;case 37:ct.prev=37,ct.t6=ct.catch(31),console.error("error trying to resing image file on insertion",ct.t6);case 40:if(!(T.size>f.$n)){ct.next=42;break}throw new Error((0,R.t)("errors.fileTooBig",{maxSize:"".concat(Math.trunc(f.$n/1024/1024),"MB")}));case 42:if(je&&(it=(rt=r.files[Ue])===null||rt===void 0?void 0:rt.dataURL,lt=it&&(0,Ct.KG)(it),r.setImagePreviewCursor(lt||T)),ct.t7=(F=r.files[Ue])===null||F===void 0?void 0:F.dataURL,ct.t7){ct.next=48;break}return ct.next=47,(0,Ct.Sf)(T);case 47:ct.t7=ct.sent;case 48:return Yt=ct.t7,jt=(0,g.DR)(fe,{fileId:Ue},!1),ct.abrupt("return",new Promise(function(){var xt=(0,h.Z)(u().mark(function Mt(Vt,Ht){var Tt,Kt;return u().wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:if(hr.prev=0,r.files=Zt(Zt({},r.files),{},(0,H.Z)({},Ue,{mimeType:Fe,id:Ue,dataURL:Yt,created:Date.now(),lastRetrieved:Date.now()})),Kt=r.imageCache.get(Ue)){hr.next=7;break}return r.addNewImagesToImageCache(),hr.next=7,r.updateImageCache([jt]);case 7:if(!(Kt?.image instanceof Promise)){hr.next=10;break}return hr.next=10,Kt.image;case 10:r.state.pendingImageElementId!==jt.id&&((Tt=r.state.draggingElement)===null||Tt===void 0?void 0:Tt.id)!==jt.id&&r.initializeImageDimensions(jt,!0),Vt(jt),hr.next=18;break;case 14:hr.prev=14,hr.t0=hr.catch(0),console.error(hr.t0),Ht(new Error((0,R.t)("errors.imageInsertError")));case 18:return hr.prev=18,je||(0,Gr.z8)(r.interactiveCanvas),hr.finish(18);case 21:case"end":return hr.stop()}},Mt,null,[[0,14,18,21]])}));return function(Mt,Vt){return xt.apply(this,arguments)}}()));case 51:case"end":return ct.stop()}},C,null,[[6,19],[31,37]])}));return function(C){return d.apply(this,arguments)}}(),this.insertImageElement=function(){var d=(0,h.Z)(u().mark(function C(K,ae,ye){return u().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(r.isToolSupported("image")){F.next=3;break}return r.setState({errorMessage:(0,R.t)("errors.imageToolNotSupported")}),F.abrupt("return");case 3:return r.scene.addNewElement(K),F.prev=4,F.next=7,r.initializeImage({imageFile:ae,imageElement:K,showCursorImagePreview:ye});case 7:return F.abrupt("return",F.sent);case 10:return F.prev=10,F.t0=F.catch(4),(0,g.DR)(K,{isDeleted:!0}),r.actionManager.executeAction(P.pL),r.setState({errorMessage:F.t0.message||(0,R.t)("errors.imageInsertError")}),F.abrupt("return",null);case 16:case"end":return F.stop()}},C,null,[[4,10]])}));return function(C,K,ae){return d.apply(this,arguments)}}(),this.setImagePreviewCursor=function(){var d=(0,h.Z)(u().mark(function C(K){var ae,ye,F,T,fe,Me,je;return u().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return ae=96,Fe.next=3,(0,Ct.Tu)(K,{maxWidthOrHeight:ae});case 3:return ye=Fe.sent,Fe.next=6,(0,Ct.Sf)(ye);case 6:if(F=Fe.sent,K.type!==f.LO.svg){Fe.next=20;break}return Fe.next=10,(0,na.PK)(F);case 10:T=Fe.sent,fe=Math.min(T.height,ae),(Me=fe*(T.width/T.height))>ae&&(fe=(Me=ae)*(T.height/T.width)),(je=document.createElement("canvas")).height=fe,je.width=Me,je.getContext("2d").drawImage(T,0,0,Me,fe),F=je.toDataURL(f.LO.svg);case 20:r.state.pendingImageElementId&&(0,Gr.KJ)(r.interactiveCanvas,"url(".concat(F,") 4 4, auto"));case 21:case"end":return Fe.stop()}},C)}));return function(C){return d.apply(this,arguments)}}(),this.onImageAction=function(){var d=(0,h.Z)(u().mark(function C(K){var ae,ye,F,T,fe,Me,je,Fe;return u().wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return ae=K.insertOnCanvasDirectly,Ue.prev=1,ye=r.state.width/2+r.state.offsetLeft,F=r.state.height/2+r.state.offsetTop,T=(0,s.dE)({clientX:ye,clientY:F},r.state),fe=T.x,Me=T.y,Ue.next=7,(0,ur.I$)({description:"Image",extensions:Object.keys(f.KL)});case 7:je=Ue.sent,Fe=r.createImageElement({sceneX:fe,sceneY:Me,addToFrameUnderCursor:!1}),ae?(r.insertImageElement(Fe,je),r.initializeImageDimensions(Fe),r.setState({selectedElementIds:(0,un.Oh)((0,H.Z)({},Fe.id,!0),r.state)},function(){r.actionManager.executeAction(P.pL)})):r.setState({pendingImageElementId:Fe.id},function(){r.insertImageElement(Fe,je,!0)}),Ue.next=16;break;case 12:Ue.prev=12,Ue.t0=Ue.catch(1),Ue.t0.name!=="AbortError"?console.error(Ue.t0):console.warn(Ue.t0),r.setState({pendingImageElementId:null,editingElement:null,activeTool:(0,s.Om)(r.state,{type:"selection"})},function(){r.actionManager.executeAction(P.pL)});case 16:case"end":return Ue.stop()}},C,null,[[1,12]])}));return function(C){return d.apply(this,arguments)}}(),this.initializeImageDimensions=function(d){var C,K=arguments.length>1&&arguments[1]!==void 0&&arguments[1],ae=(0,L.wi)(d)&&((C=r.imageCache.get(d.fileId))===null||C===void 0?void 0:C.image);if(!ae||ae instanceof Promise){if(d.width<f.f/r.state.zoom.value&&d.height<f.f/r.state.zoom.value){var ye=100/r.state.zoom.value;(0,g.DR)(d,{x:d.x-ye/2,y:d.y-ye/2,width:ye,height:ye})}}else if(K||d.width<f.f/r.state.zoom.value&&d.height<f.f/r.state.zoom.value){var F=Math.max(r.state.height-120,160),T=Math.min(F,Math.floor(.5*r.state.height)/r.state.zoom.value),fe=Math.min(ae.naturalHeight,T),Me=fe*(ae.naturalWidth/ae.naturalHeight),je=d.x+d.width/2-Me/2,Fe=d.y+d.height/2-fe/2;(0,g.DR)(d,{x:je,y:Fe,width:Me,height:fe})}},this.updateImageCache=function(){var d=(0,h.Z)(u().mark(function C(K){var ae,ye,F,T,fe,Me,je,Fe=arguments;return u().wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return ae=Fe.length>1&&Fe[1]!==void 0?Fe[1]:r.files,Ue.next=3,(0,na.Xx)({imageCache:r.imageCache,fileIds:K.map(function(Ge){return Ge.fileId}),files:ae});case 3:if(ye=Ue.sent,F=ye.updatedFiles,T=ye.erroredFiles,F.size||T.size){fe=xo(K);try{for(fe.s();!(Me=fe.n()).done;)je=Me.value,F.has(je.fileId)&&Eo.R.delete(je)}catch(Ge){fe.e(Ge)}finally{fe.f()}}return T.size&&r.scene.replaceAllElements(r.scene.getElementsIncludingDeleted().map(function(Ge){return(0,L.wi)(Ge)&&T.has(Ge.fileId)?(0,g.BE)(Ge,{status:"error"}):Ge})),Ue.abrupt("return",{updatedFiles:F,erroredFiles:T});case 9:case"end":return Ue.stop()}},C)}));return function(C){return d.apply(this,arguments)}}(),this.addNewImagesToImageCache=(0,h.Z)(u().mark(function d(){var C,K,ae,ye,F=arguments;return u().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(C=F.length>0&&F[0]!==void 0?F[0]:(0,na.oA)(r.scene.getNonDeletedElements()),K=F.length>1&&F[1]!==void 0?F[1]:r.files,!(ae=C.filter(function(fe){return!fe.isDeleted&&!r.imageCache.has(fe.fileId)})).length){T.next=9;break}return T.next=6,r.updateImageCache(ae,K);case 6:ye=T.sent,ye.updatedFiles.size&&r.scene.informMutation();case 9:case"end":return T.stop()}},d)})),this.scheduleImageRefresh=gi()(function(){r.addNewImagesToImageCache()},f.LL),this.updateBindingEnabledOnPointerMove=function(d){var C=(0,O.cz)(d);r.state.isBindingEnabled!==C&&r.setState({isBindingEnabled:C})},this.maybeSuggestBindingAtCursor=function(d){var C=(0,O.Y9)(d,r.scene);r.setState({suggestedBindings:C!=null?[C]:[]})},this.maybeSuggestBindingsForLinearElementAtCoords=function(d,C,K){if(C.length){var ae=C.reduce(function(ye,F){var T=(0,O.Y9)(F,r.scene);return T==null||(0,O.DK)(d,K?.id,T)||ye.push(T),ye},[]);r.setState({suggestedBindings:ae})}},this.handleInteractiveCanvasRef=function(d){var C,K,ae;d!==null?(r.interactiveCanvas=d,r.interactiveCanvas.addEventListener(f.Ks.WHEEL,r.handleWheel),r.interactiveCanvas.addEventListener(f.Ks.TOUCH_START,r.onTouchStart),r.interactiveCanvas.addEventListener(f.Ks.TOUCH_END,r.onTouchEnd)):((C=r.interactiveCanvas)===null||C===void 0||C.removeEventListener(f.Ks.WHEEL,r.handleWheel),(K=r.interactiveCanvas)===null||K===void 0||K.removeEventListener(f.Ks.TOUCH_START,r.onTouchStart),(ae=r.interactiveCanvas)===null||ae===void 0||ae.removeEventListener(f.Ks.TOUCH_END,r.onTouchEnd))},this.handleAppOnDrop=function(){var d=(0,h.Z)(u().mark(function C(K){var ae,ye,F,T,fe,Me,je,Fe,Ue,Ge,rt,it,lt,Yt,jt,ct;return u().wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:return xt.next=2,(0,Ct.bv)(K);case 2:if(F=xt.sent,T=F.file,fe=F.fileHandle,Me=(0,s.dE)(K,r.state),je=Me.x,Fe=Me.y,xt.prev=6,!(0,Ct.Wr)(T)||!r.isToolSupported("image")){xt.next=26;break}if(T?.type!==f.LO.png&&T?.type!==f.LO.svg){xt.next=21;break}return xt.prev=9,xt.next=12,(0,N.cT)(T,r.state,r.scene.getElementsIncludingDeleted(),fe);case 12:return Ue=xt.sent,r.syncActionResult(Zt(Zt({},Ue),{},{appState:Zt(Zt({},Ue.appState||r.state),{},{isLoading:!1}),replaceFiles:!0,commitToHistory:!0})),xt.abrupt("return");case 17:if(xt.prev=17,xt.t0=xt.catch(9),xt.t0.name==="EncodingError"){xt.next=21;break}throw xt.t0;case 21:return Ge=r.createImageElement({sceneX:je,sceneY:Fe}),r.insertImageElement(Ge,T),r.initializeImageDimensions(Ge),r.setState({selectedElementIds:(0,un.Oh)((0,H.Z)({},Ge.id,!0),r.state)}),xt.abrupt("return");case 26:xt.next=31;break;case 28:return xt.prev=28,xt.t1=xt.catch(6),xt.abrupt("return",r.setState({isLoading:!1,errorMessage:xt.t1.message}));case 31:if(!(rt=K.dataTransfer.getData(f.LO.excalidrawlib))||typeof rt!="string"){xt.next=35;break}try{it=(0,Ct.wf)(rt),r.addElementsFromPasteOrLibrary({elements:(0,G.WV)(it),position:K,files:null})}catch(Mt){r.setState({errorMessage:Mt.message})}return xt.abrupt("return");case 35:if(!T){xt.next=38;break}return xt.next=38,r.loadFileToCanvas(T,fe);case 38:(ae=K.dataTransfer)!==null&&ae!==void 0&&(ye=ae.types)!==null&&ye!==void 0&&ye.includes("text/plain")&&(jt=(lt=K.dataTransfer)===null||lt===void 0?void 0:lt.getData("text"))&&(0,p.xm)(jt,r.props.validateEmbeddable)&&(/^(http|https):\/\/[^\s/$.?#].[^\s]*$/.test(jt)||((Yt=(0,p.LM)(jt))===null||Yt===void 0?void 0:Yt.type)==="video")&&(ct=r.insertEmbeddableElement({sceneX:je,sceneY:Fe,link:(0,Ko.$u)(jt)}))&&r.setState({selectedElementIds:(0,H.Z)({},ct.id,!0)});case 39:case"end":return xt.stop()}},C,null,[[6,28],[9,17]])}));return function(C){return d.apply(this,arguments)}}(),this.loadFileToCanvas=function(){var d=(0,h.Z)(u().mark(function C(K,ae){var ye;return u().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,(0,Ct.gY)(K);case 2:return K=F.sent,F.prev=3,F.next=6,(0,Ct.ZY)(K,r.state,r.scene.getElementsIncludingDeleted(),ae);case 6:if((ye=F.sent).type!==f.LO.excalidraw){F.next=12;break}r.setState({isLoading:!0}),r.syncActionResult(Zt(Zt({},ye.data),{},{appState:Zt(Zt({},ye.data.appState||r.state),{},{isLoading:!1}),replaceFiles:!0,commitToHistory:!0})),F.next=15;break;case 12:if(ye.type!==f.LO.excalidrawlib){F.next=15;break}return F.next=15,r.library.updateLibrary({libraryItems:K,merge:!0,openLibraryMenu:!0}).catch(function(T){console.error(T),r.setState({errorMessage:(0,R.t)("errors.importLibraryError")})});case 15:F.next=23;break;case 17:if(F.prev=17,F.t0=F.catch(3),!(F.t0 instanceof xi.jk&&F.t0.code==="IMAGE_NOT_CONTAINS_SCENE_DATA")||r.isToolSupported("image")){F.next=22;break}return r.setState({isLoading:!1,errorMessage:(0,R.t)("errors.imageToolNotSupported")}),F.abrupt("return");case 22:r.setState({isLoading:!1,errorMessage:F.t0.message});case 23:case"end":return F.stop()}},C,null,[[3,17]])}));return function(C,K){return d.apply(this,arguments)}}(),this.handleCanvasContextMenu=function(d){if(d.preventDefault(),!("pointerType"in d.nativeEvent&&d.nativeEvent.pointerType==="touch"||"pointerType"in d.nativeEvent&&d.nativeEvent.pointerType==="pen"&&d.button!==f.Oh.SECONDARY)||r.state.activeTool.type==="selection"){var C=(0,s.dE)(d,r.state),K=C.x,ae=C.y,ye=r.getElementAtPosition(K,ae,{preferSelected:!0,includeLockedElements:!0}),F=r.scene.getSelectedElements(r.state),T=r.isHittingCommonBoundingBoxOfSelectedElements({x:K,y:ae},F),fe=ye||T?"element":"canvas",Me=r.excalidrawContainerRef.current.getBoundingClientRect(),je=Me.top,Fe=Me.left,Ue=d.clientX-Fe,Ge=d.clientY-je;(0,c.L)("contextMenu","openContextMenu",fe),r.setState(Zt(Zt({},ye&&!r.state.selectedElementIds[ye.id]?Zt(Zt(Zt({},r.state),(0,We.bO)({editingGroupId:r.state.editingGroupId,selectedElementIds:(0,H.Z)({},ye.id,!0)},r.scene.getNonDeletedElements(),r.state,r)),{},{selectedLinearElement:(0,L.bt)(ye)?new ce._(ye,r.scene):null}):r.state),{},{showHyperlinkPopup:!1}),function(){r.setState({contextMenu:{top:Ge,left:Ue,items:r.getContextMenuItems(fe)}})})}},this.maybeDragNewGenericElement=function(d,C){var K=r.state.draggingElement,ae=d.lastCoords;if(K)if(K.type==="selection"&&r.state.activeTool.type!=="eraser")(0,V.EJ)(K,r.state.activeTool.type,d.origin.x,d.origin.y,ae.x,ae.y,(0,s.TE)(d.origin.x,ae.x),(0,s.TE)(d.origin.y,ae.y),(0,_.E0)(C),(0,_.OA)(C));else{var ye,F,T,fe,Me,je=(0,J.wC)(ae.x,ae.y,C[_.tW.CTRL_OR_CMD]?null:r.state.gridSize),Fe=(0,E.Z)(je,2),Ue=Fe[0],Ge=Fe[1],rt=(0,L.wi)(K)&&((ye=r.imageCache.get(K.fileId))===null||ye===void 0?void 0:ye.image),it=!rt||rt instanceof Promise?null:rt.width/rt.height;r.maybeCacheReferenceSnapPoints(C,[K]);var lt=function(ct,xt,Mt,Vt,Ht){var Tt,Kt,hr,Mr;if(!vo({event:Mt,selectedElements:[ct],appState:xt}))return{snapOffset:{x:0,y:0},snapLines:[]};var Nr=[[Vt.x+Ht.x,Vt.y+Ht.y]],Kr=go(xt.zoom.value),tn={x:Kr,y:Kr},Qr=[],Pr=[];Le([ct],Nr,xt,Mt,Qr,Pr,tn);var on={x:(Tt=(Kt=Qr[0])===null||Kt===void 0?void 0:Kt.offset)!==null&&Tt!==void 0?Tt:0,y:(hr=(Mr=Pr[0])===null||Mr===void 0?void 0:Mr.offset)!==null&&hr!==void 0?hr:0};tn.x=0,tn.y=0,Qr.length=0,Pr.length=0;var Br=Yo([ct],{boundingBoxCorners:!0,omitCenter:!0});return Le([ct],Br,xt,Mt,Qr,Pr,tn),{snapOffset:on,snapLines:Qe(Qr,Pr)}}(K,r.state,C,{x:d.originInGrid.x+((F=(T=r.state.originSnapOffset)===null||T===void 0?void 0:T.x)!==null&&F!==void 0?F:0),y:d.originInGrid.y+((fe=(Me=r.state.originSnapOffset)===null||Me===void 0?void 0:Me.y)!==null&&fe!==void 0?fe:0)},{x:Ue-d.originInGrid.x,y:Ge-d.originInGrid.y}),Yt=lt.snapOffset,jt=lt.snapLines;Ue+=Yt.x,Ge+=Yt.y,r.setState({snapLines:jt}),(0,V.EJ)(K,r.state.activeTool.type,d.originInGrid.x,d.originInGrid.y,Ue,Ge,(0,s.TE)(d.originInGrid.x,Ue),(0,s.TE)(d.originInGrid.y,Ge),(0,L.pC)(K)?!(0,_.E0)(C):(0,_.E0)(C),(0,_.OA)(C),it,r.state.originSnapOffset),r.maybeSuggestBindingForAll([K]),r.state.activeTool.type==="frame"&&r.setState({elementsToHighlight:(0,_n.ni)(r.scene.getNonDeletedElements(),K,r.state)})}},this.maybeHandleResize=function(d,C){var K=r.scene.getSelectedElements(r.state),ae=K.filter(function(Vt){return Vt.type==="frame"}),ye=d.resize.handleType;if(ae.length>0&&ye==="rotation")return!1;r.setState({isResizing:ye&&ye!=="rotation",isRotating:ye==="rotation",activeEmbeddable:null});var F=d.lastCoords,T=(0,J.wC)(F.x-d.resize.offset.x,F.y-d.resize.offset.y,C[_.tW.CTRL_OR_CMD]?null:r.state.gridSize),fe=(0,E.Z)(T,2),Me=fe[0],je=fe[1],Fe=new Map;if(ae.forEach(function(Vt){(0,_n.zD)(r.scene.getNonDeletedElements(),Vt.id).forEach(function(Ht){Fe.set(Vt.id+Ht.id,{x:Ht.x-Vt.x,y:Ht.y-Vt.y})})}),!r.state.selectedElementsAreBeingDragged){var Ue=(0,J.wC)(F.x,F.y,C[_.tW.CTRL_OR_CMD]?null:r.state.gridSize),Ge=(0,E.Z)(Ue,2),rt=Ge[0],it=Ge[1],lt={x:rt-d.originInGrid.x,y:it-d.originInGrid.y},Yt=(0,y.Z)(d.originalElements.values());r.maybeCacheReferenceSnapPoints(C,K);var jt=$e(K,(0,ke.eD)(Yt,r.state),r.state,C,lt,ye),ct=jt.snapOffset,xt=jt.snapLines;Me+=ct.x,je+=ct.y,r.setState({snapLines:xt})}if((0,V.vY)(d,ye,K,d.resize.arrowDirection,(0,_.Ge)(C),(0,_.OA)(C),K.length===1&&(0,L.pC)(K[0])?!(0,_.E0)(C):(0,_.E0)(C),Me,je,d.resize.center.x,d.resize.center.y,r.state)){r.maybeSuggestBindingForAll(K);var Mt=new Set;return ae.forEach(function(Vt){var Ht=(0,_n.zD)(r.scene.getNonDeletedElements(),Vt.id);ye&&(ye.includes("w")&&Ht.forEach(function(Tt){var Kt,hr;(0,g.DR)(Tt,{x:Vt.x+(((Kt=Fe.get(Vt.id+Tt.id))===null||Kt===void 0?void 0:Kt.x)||0),y:Vt.y+(((hr=Fe.get(Vt.id+Tt.id))===null||hr===void 0?void 0:hr.y)||0)})}),ye.includes("n")&&Ht.forEach(function(Tt){var Kt,hr;(0,g.DR)(Tt,{x:Vt.x+(((Kt=Fe.get(Vt.id+Tt.id))===null||Kt===void 0?void 0:Kt.x)||0),y:Vt.y+(((hr=Fe.get(Vt.id+Tt.id))===null||hr===void 0?void 0:hr.y)||0)})})),(0,_n.ni)(r.scene.getNonDeletedElements(),Vt,r.state).forEach(function(Tt){return Mt.add(Tt)})}),r.setState({elementsToHighlight:(0,y.Z)(Mt)}),!0}return!1},this.getContextMenuItems=function(d){var C=[];return C.push(P.jK,P.FA),d==="canvas"?r.state.viewModeEnabled?[].concat(C,[P.Pb,P.JN,wa,P.u0]):[Wa.yQ,De,P.jK,P.FA,P.zp,De,P.Yy,ka.U,De,P.Pb,P.pm,P.JN,wa,P.u0]:(C.push(P.zp),r.state.viewModeEnabled?[P.uN].concat(C):[P.ZM,P.uN,Wa.yQ,bi,yi,De].concat(C,[De,P.pw,P.W3,De,P.EQ,P.y7,P.vD,It.JQ,P.s,De,P.FL,De,P.V,P.yA,P.zi,P.BZ,De,P.jl,P.kt,De,P.Qs,P.nz,P.xF,P.$h,De,P.X9]))},this.handleWheel=(0,s.tH)(function(d){if(d.preventDefault(),!ja){var C=d.deltaX,K=d.deltaY;if(d.metaKey||d.ctrlKey){var ae=Math.sign(K),ye=100*f.V4,F=Math.abs(K),T=K;F>ye&&(T=ye*ae);var fe=r.state.zoom.value-T/100;return fe+=Math.log10(Math.max(1,r.state.zoom.value))*-ae*Math.min(1,F/20),r.translateCanvas(function(Me){return Zt(Zt({},(0,o.E)({viewportX:r.lastViewportPosition.x,viewportY:r.lastViewportPosition.y,nextZoom:(0,ke.j)(fe)},Me)),{},{shouldCacheIgnoreZoom:!0})}),void r.resetShouldCacheIgnoreZoomDebounced()}d.shiftKey?r.translateCanvas(function(Me){var je=Me.zoom;return{scrollX:Me.scrollX-(K||C)/je.value}}):r.translateCanvas(function(Me){var je=Me.zoom,Fe=Me.scrollX,Ue=Me.scrollY;return{scrollX:Fe-C/je.value,scrollY:Ue-K/je.value}})}}),this.savePointer=function(d,C,K){var ae,ye;if(d&&C){var F=(0,s.dE)({clientX:d,clientY:C},r.state),T=F.x,fe=F.y,Me={x:T,y:fe,tool:r.state.activeTool.type==="laser"?"laser":"pointer"};(ae=(ye=r.props).onPointerUpdate)===null||ae===void 0||ae.call(ye,{pointer:Me,button:K,pointersMap:fn.pointers})}},this.resetShouldCacheIgnoreZoomDebounced=(0,s.Ds)(function(){r.unmounted||r.setState({shouldCacheIgnoreZoom:!1})},300),this.updateDOMRect=function(d){var C;if((C=r.excalidrawContainerRef)!==null&&C!==void 0&&C.current){var K=r.excalidrawContainerRef.current.getBoundingClientRect(),ae=K.width,ye=K.height,F=K.left,T=K.top,fe=r.state,Me=fe.width,je=fe.height,Fe=fe.offsetTop,Ue=fe.offsetLeft;if(ae===Me&&ye===je&&F===Ue&&T===Fe)return void(d&&d());r.setState({width:ae,height:ye,offsetLeft:F,offsetTop:T},function(){d&&d()})}},this.refresh=function(){r.setState(Zt({},r.getCanvasOffsets()))}};f.Vi.TEST==="production"&&(window.h=window.h||{},Object.defineProperties(window.h,{elements:{configurable:!0,get:function(){var r;return(r=this.app)===null||r===void 0?void 0:r.scene.getElementsIncludingDeleted()},set:function(r){var d;return(d=this.app)===null||d===void 0?void 0:d.scene.replaceAllElements(r)}}}));var rl=Zi},8806:function(Se,Q,e){e.d(Q,{z:function(){return R}});var D=e(7169),E=e(2726),y=e(45),h=e(9827),S=e(3379),I=e.n(S),v=e(7795),n=e.n(v),M=e(569),Z=e.n(M),H=e(3565),W=e.n(H),u=e(9216),U=e.n(u),le=e(4589),de=e.n(le),he=e(3137),pe={};pe.styleTagTransform=de(),pe.setAttributes=W(),pe.insert=Z().bind(null,"head"),pe.domAPI=n(),pe.insertStyleElement=U(),I()(he.Z,pe),he.Z&&he.Z.locals&&he.Z.locals;var oe=e(1020),P=["type","onSelect","selected","children","className"];function $(_,g){var O=Object.keys(_);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(_);g&&(s=s.filter(function(f){return Object.getOwnPropertyDescriptor(_,f).enumerable})),O.push.apply(O,s)}return O}function b(_){for(var g=1;g<arguments.length;g++){var O=arguments[g]!=null?arguments[g]:{};g%2?$(Object(O),!0).forEach(function(s){(0,D.Z)(_,s,O[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(O)):$(Object(O)).forEach(function(s){Object.defineProperty(_,s,Object.getOwnPropertyDescriptor(O,s))})}return _}var R=function(_){var g=_.type,O=g===void 0?"button":g,s=_.onSelect,f=_.selected,t=_.children,w=_.className,l=w===void 0?"":w,a=(0,E.Z)(_,P);return(0,oe.jsx)("button",b(b({onClick:(0,h.Mj)(a.onClick,function(c){s()}),type:O,className:(0,y.Z)("excalidraw-button",l,{selected:f})},a),{},{children:t}))}},6238:function(Se,Q,e){e.d(Q,{o:function(){return pe}});var D=e(45),E=e(8935),y=e(3379),h=e.n(y),S=e(7795),I=e.n(S),v=e(569),n=e.n(v),M=e(3565),Z=e.n(M),H=e(9216),W=e.n(H),u=e(4589),U=e.n(u),le=e(6029),de={};de.styleTagTransform=U(),de.setAttributes=Z(),de.insert=n().bind(null,"head"),de.domAPI=I(),de.insertStyleElement=W(),h()(le.Z,de),le.Z&&le.Z.locals&&le.Z.locals;var he=e(1020),pe=function(oe){var P=oe.children,$=oe.checked,b=oe.onChange,R=oe.className;return(0,he.jsxs)("div",{className:(0,D.Z)("Checkbox",R,{"is-checked":$}),onClick:function(_){b(!$,_),_.currentTarget.querySelector(".Checkbox-box").focus()},children:[(0,he.jsx)("button",{className:"Checkbox-box",role:"checkbox","aria-checked":$,children:E.eQ}),(0,he.jsx)("div",{className:"Checkbox-label",children:P})]})}},193:function(Se,Q,e){e.d(Q,{z:function(){return wi},L:function(){return vo}});var D=e(2577),E=e(9827),y=e(45),h=e(9240),S=e(1020),I=function(se){var Ae,Le=se.onChange,Ne=se.type,Xe=se.activeColor,Qe=se.topPicks;return Ne==="elementStroke"&&(Ae=h.fY),Ne==="elementBackground"&&(Ae=h.eq),Ne==="canvasBackground"&&(Ae=h.ay),Qe&&(Ae=Qe),Ae?(0,S.jsx)("div",{className:"color-picker__top-picks",children:Ae.map(function(nt){return(0,S.jsx)("button",{className:(0,y.Z)("color-picker__button",{active:nt===Xe,"is-transparent":nt==="transparent"||!nt}),style:{"--swatch-color":nt},type:"button",title:nt,onClick:function(){return Le(nt)},"data-testid":"color-top-pick-".concat(nt),children:(0,S.jsx)("div",{className:"color-picker__button-outline"})},nt)})}):(console.error("Invalid type for TopPicks"),null)},v=e(9787),n=e.n(v),M=e(8227),Z=e(3607),H=e(1930),W=function(se){for(var Ae=se.palette,Le=se.color,Ne=0,Xe=Object.entries(Ae);Ne<Xe.length;Ne++){var Qe=(0,D.Z)(Xe[Ne],2),nt=Qe[0],$e=Qe[1];if(Array.isArray($e)){var It=$e.indexOf(Le);if(It>-1)return{colorName:nt,shade:It}}else if($e===Le)return{colorName:nt,shade:null}}return null},u=[["q","w","e","r","t"],["a","s","d","f","g"],["z","x","c","v","b"]].flat(),U=function(se){var Ae=se.color,Le=se.palette;return!Object.values(Le).flat().includes(Ae)},le=(0,Z.cn)(null),de=function(se,Ae,Le){return(299*se+587*Ae+114*Le)/1e3>=160?"black":"white"},he=function(se,Ae){if(Ae){var Le=new Option().style;if(Le.color=se,Le.color){var Ne=Le.color.replace(/^(rgb|rgba)\(/,"").replace(/\)$/,"").replace(/\s/g,"").split(","),Xe=parseInt(Ne[0]),Qe=parseInt(Ne[1]),nt=parseInt(Ne[2]);return de(Xe,Qe,nt)}}if(se==="transparent")return"black";var $e=parseInt(se.substring(1,3),16),It=parseInt(se.substring(3,5),16),Jt=parseInt(se.substring(5,7),16);return de($e,It,Jt)},pe=function(se){var Ae=se.color,Le=se.keyLabel,Ne=se.isCustomColor,Xe=Ne!==void 0&&Ne,Qe=se.isShade,nt=Qe!==void 0&&Qe;return(0,S.jsxs)("div",{className:"color-picker__button__hotkey-label",style:{color:he(Ae,Xe)},children:[nt&&"⇧",Le]})},oe=function(se){var Ae=se.hex,Le=se.onChange,Ne=se.palette,Xe=W({color:Ae||"transparent",palette:Ne}),Qe=(0,Z.KO)(le),nt=(0,D.Z)(Qe,2),$e=nt[0],It=nt[1],Jt=(0,v.useRef)(null);if((0,v.useEffect)(function(){Jt.current&&$e==="shades"&&Jt.current.focus()},[Xe,$e]),Xe){var Nt=Xe.colorName,kt=Xe.shade,nr=Ne[Nt];if(Array.isArray(nr))return(0,S.jsx)("div",{className:"color-picker-content--default shades",children:nr.map(function(Bt,ar){return(0,S.jsxs)("button",{ref:ar===kt&&$e==="shades"?Jt:void 0,tabIndex:-1,type:"button",className:(0,y.Z)("color-picker__button color-picker__button--large",{active:ar===kt}),"aria-label":"Shade",title:"".concat(Nt," - ").concat(ar+1),style:Bt?{"--swatch-color":Bt}:void 0,onClick:function(){Le(Bt),It("shades")},children:[(0,S.jsx)("div",{className:"color-picker__button-outline"}),(0,S.jsx)(pe,{color:Bt,keyLabel:ar+1,isShade:!0})]},ar)})})}return(0,S.jsxs)("div",{className:"color-picker-content--default",style:{position:"relative"},tabIndex:-1,children:[(0,S.jsx)("button",{type:"button",tabIndex:-1,className:"color-picker__button color-picker__button--large color-picker__button--no-focus-visible"}),(0,S.jsx)("div",{tabIndex:-1,style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",fontSize:"0.75rem"},children:(0,M.t)("colorPicker.noShades")})]})},P=function(se){var Ae=se.palette,Le=se.color,Ne=se.onChange,Xe=(se.label,se.activeShade),Qe=W({color:Le||"transparent",palette:Ae}),nt=(0,Z.KO)(le),$e=(0,D.Z)(nt,2),It=$e[0],Jt=$e[1],Nt=(0,v.useRef)(null);return(0,v.useEffect)(function(){Nt.current&&It==="baseColors"&&Nt.current.focus()},[Qe?.colorName,It]),(0,S.jsx)("div",{className:"color-picker-content--default",children:Object.entries(Ae).map(function(kt,nr){var Bt=(0,D.Z)(kt,2),ar=Bt[0],Dt=Bt[1],er=(Array.isArray(Dt)?Dt[Xe]:Dt)||"transparent",pr=u[nr],yr=(0,M.t)("colors.".concat(ar.replace(/\d+/,"")),null,"");return(0,S.jsxs)("button",{ref:Qe?.colorName===ar?Nt:void 0,tabIndex:-1,type:"button",className:(0,y.Z)("color-picker__button color-picker__button--large",{active:Qe?.colorName===ar,"is-transparent":er==="transparent"||!er}),onClick:function(){Ne(er),Jt("baseColors")},title:"".concat(yr).concat(er.startsWith("#")?" ".concat(er):""," — ").concat(pr),"aria-label":"".concat(yr," — ").concat(pr),style:er?{"--swatch-color":er}:void 0,"data-testid":"color-".concat(ar),children:[(0,S.jsx)("div",{className:"color-picker__button-outline"}),(0,S.jsx)(pe,{color:er,keyLabel:pr})]},ar)})})},$=function(se){var Ae=se.colors,Le=se.color,Ne=se.onChange,Xe=se.label,Qe=(0,Z.KO)(le),nt=(0,D.Z)(Qe,2),$e=nt[0],It=nt[1],Jt=(0,v.useRef)(null);return(0,v.useEffect)(function(){Jt.current&&Jt.current.focus()},[Le,$e]),(0,S.jsx)("div",{className:"color-picker-content--default",children:Ae.map(function(Nt,kt){return(0,S.jsxs)("button",{ref:Le===Nt?Jt:void 0,tabIndex:-1,type:"button",className:(0,y.Z)("color-picker__button color-picker__button--large",{active:Le===Nt,"is-transparent":Nt==="transparent"||!Nt}),onClick:function(){Ne(Nt),It("custom")},title:Nt,"aria-label":Xe,style:{"--swatch-color":Nt},children:[(0,S.jsx)("div",{className:"color-picker__button-outline"}),(0,S.jsx)(pe,{color:Nt,keyLabel:kt+1,isCustomColor:!0})]},kt)})})},b=e(5491),R=function(se,Ae,Le){var Ne,Xe=Math.ceil(Le/h.dC);switch(Ae=(Ne=Ae)!==null&&Ne!==void 0?Ne:-1,se){case"ArrowLeft":var Qe=Ae-1;return Qe<0?Le-1:Qe;case"ArrowRight":return(Ae+1)%Le;case"ArrowDown":var nt=Ae+h.dC;return nt>=Le?Ae%h.dC:nt;case"ArrowUp":var $e=Ae-h.dC,It=$e<0?h.dC*Xe+$e:$e;return It>=Le?void 0:It}},_=function(se){var Ae=se.event,Le=se.activeColorPickerSection,Ne=se.palette,Xe=se.color,Qe=se.onChange,nt=se.customColors,$e=se.setActiveColorPickerSection,It=(se.updateData,se.activeShade),Jt=se.onEyeDropperToggle,Nt=se.onEscape;if(Ae[b.tW.CTRL_OR_CMD])return!1;if(Ae.key===b.tW.ESCAPE)return Nt(Ae),!0;if(Ae.key===b.tW.ALT)return Jt(!0),!0;if(Ae.key===b.tW.I)return Jt(),!0;var kt=W({color:Xe,palette:Ne});if(Ae.key===b.tW.TAB){var nr={custom:!!nt.length,baseColors:!0,shades:kt?.shade!=null,hex:!0},Bt=Object.entries(nr).reduce(function(Vr,Jr){var hn=(0,D.Z)(Jr,2),ln=hn[0];return hn[1]&&Vr.push(ln),Vr},[]),ar=Bt.indexOf(Le),Dt=Ae.shiftKey?-1:1,er=Bt[ar+Dt>Bt.length-1?0:ar+Dt<0?Bt.length-1:ar+Dt];return er&&$e(er),er==="custom"?Qe(nt[0]):er==="baseColors"&&(Object.entries(Ne).find(function(Vr){var Jr=(0,D.Z)(Vr,2),hn=Jr[0],ln=Jr[1];return Array.isArray(ln)?ln.includes(Xe):ln===Xe?hn:null})||Qe(h.HO.black)),Ae.preventDefault(),Ae.stopPropagation(),!0}if(function(Vr){var Jr=Vr.e,hn=Vr.colorObj,ln=Vr.onChange,kn=Vr.palette,En=Vr.customColors,io=Vr.setActiveColorPickerSection,Gn=Vr.activeShade;if(hn?.shade!=null&&["Digit1","Digit2","Digit3","Digit4","Digit5"].includes(Jr.code)&&Jr.shiftKey){var So=Number(Jr.code.slice(-1))-1;return ln(kn[hn.colorName][So]),io("shades"),!0}if(["1","2","3","4","5"].includes(Jr.key)&&En[Number(Jr.key)-1])return ln(En[Number(Jr.key)-1]),io("custom"),!0;if(u.includes(Jr.key)){var Mo=u.indexOf(Jr.key),po=kn[Object.keys(kn)[Mo]];return ln(Array.isArray(po)?po[Gn]:po),io("baseColors"),!0}return!1}({e:Ae,colorObj:kt,onChange:Qe,palette:Ne,customColors:nt,setActiveColorPickerSection:$e,activeShade:It}))return!0;if(Le==="shades"&&kt){var pr=kt.shade,yr=R(Ae.key,pr,h.dC);if(yr!==void 0)return Qe(Ne[kt.colorName][yr]),!0}if(Le==="baseColors"&&kt){var kr=kt.colorName,dr=Object.keys(Ne),Dr=dr.indexOf(kr),Yr=R(Ae.key,Dr,dr.length);if(Yr!==void 0){var $r=Ne[dr[Yr]];return Qe(Array.isArray($r)?$r[It]:$r),!0}}if(Le==="custom"){var Ir=nt.indexOf(Xe),Ur=R(Ae.key,Ir,nt.length);if(Ur!==void 0)return Qe(nt[Ur]),!0}return!1},g=function(se){var Ae=se.children;return(0,S.jsx)("div",{className:"color-picker__heading",children:Ae})},O=e(9937),s=function(se){var Ae,Le=se.color,Ne=se.onChange,Xe=se.label,Qe=se.type,nt=se.elements,$e=se.palette,It=se.updateData,Jt=se.children,Nt=se.onEyeDropperToggle,kt=se.onEscape,nr=n().useState(function(){return Qe==="canvasBackground"?[]:function(Ir,Ur,Vr){var Jr={elementBackground:"backgroundColor",elementStroke:"strokeColor"},hn=Ir.filter(function(kn){if(kn.isDeleted)return!1;var En=kn[Jr[Ur]];return U({color:En,palette:Vr})}),ln=new Map;return hn.forEach(function(kn){var En=kn[Jr[Ur]];ln.has(En)?ln.set(En,ln.get(En)+1):ln.set(En,1)}),(0,H.Z)(ln.entries()).sort(function(kn,En){return En[1]-kn[1]}).map(function(kn){return kn[0]}).slice(0,h.Lx)}(nt,Qe,$e)}),Bt=(0,D.Z)(nr,1)[0],ar=(0,Z.KO)(le),Dt=(0,D.Z)(ar,2),er=Dt[0],pr=Dt[1],yr=W({color:Le,palette:$e});(0,v.useEffect)(function(){if(!er){var Ir=U({color:Le,palette:$e}),Ur=Ir&&!Bt.includes(Le);pr(Ur?"hex":Ir?"custom":yr?.shade!=null?"shades":"baseColors")}},[er,Le,$e,pr,yr,Bt]);var kr=(0,v.useState)((Ae=yr?.shade)!==null&&Ae!==void 0?Ae:Qe==="elementBackground"?h._T:h.z8),dr=(0,D.Z)(kr,2),Dr=dr[0],Yr=dr[1];(0,v.useEffect)(function(){yr?.shade!=null&&Yr(yr.shade);var Ir=function(Ur){Ur.key===b.tW.ALT&&Nt(!1)};return document.addEventListener(O.Ks.KEYUP,Ir,{capture:!0}),function(){document.removeEventListener(O.Ks.KEYUP,Ir,{capture:!0})}},[yr,Nt]);var $r=n().useRef(null);return(0,S.jsx)("div",{role:"dialog","aria-modal":"true","aria-label":(0,M.t)("labels.colorPicker"),children:(0,S.jsxs)("div",{ref:$r,onKeyDown:function(Ir){_({event:Ir,activeColorPickerSection:er,palette:$e,color:Le,onChange:Ne,onEyeDropperToggle:Nt,customColors:Bt,setActiveColorPickerSection:pr,updateData:It,activeShade:Dr,onEscape:kt})&&(Ir.preventDefault(),Ir.stopPropagation())},className:"color-picker-content",tabIndex:-1,children:[!!Bt.length&&(0,S.jsxs)("div",{children:[(0,S.jsx)(g,{children:(0,M.t)("colorPicker.mostUsedCustomColors")}),(0,S.jsx)($,{colors:Bt,color:Le,label:(0,M.t)("colorPicker.mostUsedCustomColors"),onChange:Ne})]}),(0,S.jsxs)("div",{children:[(0,S.jsx)(g,{children:(0,M.t)("colorPicker.colors")}),(0,S.jsx)(P,{color:Le,label:Xe,palette:$e,onChange:Ne,activeShade:Dr})]}),(0,S.jsxs)("div",{children:[(0,S.jsx)(g,{children:(0,M.t)("colorPicker.shades")}),(0,S.jsx)(oe,{hex:Le,onChange:Ne,palette:$e})]}),Jt]})})},f=e(11),t=e(7217),w=e(9335),l=e(1267),a=e(3119),c=e(3060);const m="dismissableLayer.update",z="dismissableLayer.pointerDownOutside",j="dismissableLayer.focusOutside";let k;const x=(0,v.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),N=(0,v.forwardRef)((se,Ae)=>{var Le;const{disableOutsidePointerEvents:Ne=!1,onEscapeKeyDown:Xe,onPointerDownOutside:Qe,onFocusOutside:nt,onInteractOutside:$e,onDismiss:It,...Jt}=se,Nt=(0,v.useContext)(x),[kt,nr]=(0,v.useState)(null),Bt=(Le=kt?.ownerDocument)!==null&&Le!==void 0?Le:globalThis?.document,[,ar]=(0,v.useState)({}),Dt=(0,w.e)(Ae,Ir=>nr(Ir)),er=Array.from(Nt.layers),[pr]=[...Nt.layersWithOutsidePointerEventsDisabled].slice(-1),yr=er.indexOf(pr),kr=kt?er.indexOf(kt):-1,dr=Nt.layersWithOutsidePointerEventsDisabled.size>0,Dr=kr>=yr,Yr=function(Ir,Ur=globalThis?.document){const Vr=(0,c.W)(Ir),Jr=(0,v.useRef)(!1),hn=(0,v.useRef)(()=>{});return(0,v.useEffect)(()=>{const ln=En=>{if(En.target&&!Jr.current){let Gn=function(){ie(z,Vr,io,{discrete:!0})};const io={originalEvent:En};En.pointerType==="touch"?(Ur.removeEventListener("click",hn.current),hn.current=Gn,Ur.addEventListener("click",hn.current,{once:!0})):Gn()}Jr.current=!1},kn=window.setTimeout(()=>{Ur.addEventListener("pointerdown",ln)},0);return()=>{window.clearTimeout(kn),Ur.removeEventListener("pointerdown",ln),Ur.removeEventListener("click",hn.current)}},[Ur,Vr]),{onPointerDownCapture:()=>Jr.current=!0}}(Ir=>{const Ur=Ir.target,Vr=[...Nt.branches].some(Jr=>Jr.contains(Ur));Dr&&!Vr&&(Qe?.(Ir),$e?.(Ir),Ir.defaultPrevented||It==null||It())},Bt),$r=function(Ir,Ur=globalThis?.document){const Vr=(0,c.W)(Ir),Jr=(0,v.useRef)(!1);return(0,v.useEffect)(()=>{const hn=ln=>{ln.target&&!Jr.current&&ie(j,Vr,{originalEvent:ln},{discrete:!1})};return Ur.addEventListener("focusin",hn),()=>Ur.removeEventListener("focusin",hn)},[Ur,Vr]),{onFocusCapture:()=>Jr.current=!0,onBlurCapture:()=>Jr.current=!1}}(Ir=>{const Ur=Ir.target;[...Nt.branches].some(Vr=>Vr.contains(Ur))||(nt?.(Ir),$e?.(Ir),Ir.defaultPrevented||It==null||It())},Bt);return function(Ir,Ur=globalThis?.document){const Vr=(0,c.W)(Ir);(0,v.useEffect)(()=>{const Jr=hn=>{hn.key==="Escape"&&Vr(hn)};return Ur.addEventListener("keydown",Jr),()=>Ur.removeEventListener("keydown",Jr)},[Vr,Ur])}(Ir=>{kr===Nt.layers.size-1&&(Xe?.(Ir),!Ir.defaultPrevented&&It&&(Ir.preventDefault(),It()))},Bt),(0,v.useEffect)(()=>{if(kt)return Ne&&(Nt.layersWithOutsidePointerEventsDisabled.size===0&&(k=Bt.body.style.pointerEvents,Bt.body.style.pointerEvents="none"),Nt.layersWithOutsidePointerEventsDisabled.add(kt)),Nt.layers.add(kt),G(),()=>{Ne&&Nt.layersWithOutsidePointerEventsDisabled.size===1&&(Bt.body.style.pointerEvents=k)}},[kt,Bt,Ne,Nt]),(0,v.useEffect)(()=>()=>{kt&&(Nt.layers.delete(kt),Nt.layersWithOutsidePointerEventsDisabled.delete(kt),G())},[kt,Nt]),(0,v.useEffect)(()=>{const Ir=()=>ar({});return document.addEventListener(m,Ir),()=>document.removeEventListener(m,Ir)},[]),(0,v.createElement)(a.WV.div,(0,f.Z)({},Jt,{ref:Dt,style:{pointerEvents:dr?Dr?"auto":"none":void 0,...se.style},onFocusCapture:(0,t.M)(se.onFocusCapture,$r.onFocusCapture),onBlurCapture:(0,t.M)(se.onBlurCapture,$r.onBlurCapture),onPointerDownCapture:(0,t.M)(se.onPointerDownCapture,Yr.onPointerDownCapture)}))});function G(){const se=new CustomEvent(m);document.dispatchEvent(se)}function ie(se,Ae,Le,{discrete:Ne}){const Xe=Le.originalEvent.target,Qe=new CustomEvent(se,{bubbles:!1,cancelable:!0,detail:Le});Ae&&Xe.addEventListener(se,Ae,{once:!0}),Ne?(0,a.jH)(Xe,Qe):Xe.dispatchEvent(Qe)}let V=0;function ce(){(0,v.useEffect)(()=>{var se,Ae;const Le=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(se=Le[0])!==null&&se!==void 0?se:te()),document.body.insertAdjacentElement("beforeend",(Ae=Le[1])!==null&&Ae!==void 0?Ae:te()),V++,()=>{V===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(Ne=>Ne.remove()),V--}},[])}function te(){const se=document.createElement("span");return se.setAttribute("data-radix-focus-guard",""),se.tabIndex=0,se.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",se}const L="focusScope.autoFocusOnMount",re="focusScope.autoFocusOnUnmount",me={bubbles:!1,cancelable:!0},Ce=(0,v.forwardRef)((se,Ae)=>{const{loop:Le=!1,trapped:Ne=!1,onMountAutoFocus:Xe,onUnmountAutoFocus:Qe,...nt}=se,[$e,It]=(0,v.useState)(null),Jt=(0,c.W)(Xe),Nt=(0,c.W)(Qe),kt=(0,v.useRef)(null),nr=(0,w.e)(Ae,Dt=>It(Dt)),Bt=(0,v.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,v.useEffect)(()=>{if(Ne){let Dt=function(pr){if(Bt.paused||!$e)return;const yr=pr.target;$e.contains(yr)?kt.current=yr:xe(kt.current,{select:!0})},er=function(pr){!Bt.paused&&$e&&($e.contains(pr.relatedTarget)||xe(kt.current,{select:!0}))};return document.addEventListener("focusin",Dt),document.addEventListener("focusout",er),()=>{document.removeEventListener("focusin",Dt),document.removeEventListener("focusout",er)}}},[Ne,$e,Bt.paused]),(0,v.useEffect)(()=>{if($e){_e.add(Bt);const er=document.activeElement;if(!$e.contains(er)){const pr=new CustomEvent(L,me);$e.addEventListener(L,Jt),$e.dispatchEvent(pr),pr.defaultPrevented||(function(yr,{select:kr=!1}={}){const dr=document.activeElement;for(const Dr of yr)if(xe(Dr,{select:kr}),document.activeElement!==dr)return}((Dt=We($e),Dt.filter(yr=>yr.tagName!=="A")),{select:!0}),document.activeElement===er&&xe($e))}return()=>{$e.removeEventListener(L,Jt),setTimeout(()=>{const pr=new CustomEvent(re,me);$e.addEventListener(re,Nt),$e.dispatchEvent(pr),pr.defaultPrevented||xe(er??document.body,{select:!0}),$e.removeEventListener(re,Nt),_e.remove(Bt)},0)}}var Dt},[$e,Jt,Nt,Bt]);const ar=(0,v.useCallback)(Dt=>{if(!Le&&!Ne||Bt.paused)return;const er=Dt.key==="Tab"&&!Dt.altKey&&!Dt.ctrlKey&&!Dt.metaKey,pr=document.activeElement;if(er&&pr){const yr=Dt.currentTarget,[kr,dr]=function(Dr){const Yr=We(Dr),$r=Te(Yr,Dr),Ir=Te(Yr.reverse(),Dr);return[$r,Ir]}(yr);kr&&dr?Dt.shiftKey||pr!==dr?Dt.shiftKey&&pr===kr&&(Dt.preventDefault(),Le&&xe(dr,{select:!0})):(Dt.preventDefault(),Le&&xe(kr,{select:!0})):pr===yr&&Dt.preventDefault()}},[Le,Ne,Bt.paused]);return(0,v.createElement)(a.WV.div,(0,f.Z)({tabIndex:-1},nt,{ref:nr,onKeyDown:ar}))});function We(se){const Ae=[],Le=document.createTreeWalker(se,NodeFilter.SHOW_ELEMENT,{acceptNode:Ne=>{const Xe=Ne.tagName==="INPUT"&&Ne.type==="hidden";return Ne.disabled||Ne.hidden||Xe?NodeFilter.FILTER_SKIP:Ne.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;Le.nextNode();)Ae.push(Le.currentNode);return Ae}function Te(se,Ae){for(const Le of se)if(!we(Le,{upTo:Ae}))return Le}function we(se,{upTo:Ae}){if(getComputedStyle(se).visibility==="hidden")return!0;for(;se;){if(Ae!==void 0&&se===Ae)return!1;if(getComputedStyle(se).display==="none")return!0;se=se.parentElement}return!1}function xe(se,{select:Ae=!1}={}){if(se&&se.focus){const Le=document.activeElement;se.focus({preventScroll:!0}),se!==Le&&function(Ne){return Ne instanceof HTMLInputElement&&"select"in Ne}(se)&&Ae&&se.select()}}const _e=function(){let se=[];return{add(Ae){const Le=se[0];Ae!==Le&&Le?.pause(),se=Oe(se,Ae),se.unshift(Ae)},remove(Ae){var Le;se=Oe(se,Ae),(Le=se[0])===null||Le===void 0||Le.resume()}}}();function Oe(se,Ae){const Le=[...se],Ne=Le.indexOf(Ae);return Ne!==-1&&Le.splice(Ne,1),Le}var J=e(5622);function ke(se){return se.split("-")[0]}function q(se){return se.split("-")[1]}function o(se){return["top","bottom"].includes(ke(se))?"x":"y"}function i(se){return se==="y"?"height":"width"}function p(se,Ae,Le){let{reference:Ne,floating:Xe}=se;const Qe=Ne.x+Ne.width/2-Xe.width/2,nt=Ne.y+Ne.height/2-Xe.height/2,$e=o(Ae),It=i($e),Jt=Ne[It]/2-Xe[It]/2,Nt=$e==="x";let kt;switch(ke(Ae)){case"top":kt={x:Qe,y:Ne.y-Xe.height};break;case"bottom":kt={x:Qe,y:Ne.y+Ne.height};break;case"right":kt={x:Ne.x+Ne.width,y:nt};break;case"left":kt={x:Ne.x-Xe.width,y:nt};break;default:kt={x:Ne.x,y:Ne.y}}switch(q(Ae)){case"start":kt[$e]-=Jt*(Le&&Nt?-1:1);break;case"end":kt[$e]+=Jt*(Le&&Nt?-1:1)}return kt}function B(se){return typeof se!="number"?function(Ae){return{top:0,right:0,bottom:0,left:0,...Ae}}(se):{top:se,right:se,bottom:se,left:se}}function A(se){return{...se,top:se.y,left:se.x,right:se.x+se.width,bottom:se.y+se.height}}async function X(se,Ae){var Le;Ae===void 0&&(Ae={});const{x:Ne,y:Xe,platform:Qe,rects:nt,elements:$e,strategy:It}=se,{boundary:Jt="clippingAncestors",rootBoundary:Nt="viewport",elementContext:kt="floating",altBoundary:nr=!1,padding:Bt=0}=Ae,ar=B(Bt),Dt=$e[nr?kt==="floating"?"reference":"floating":kt],er=A(await Qe.getClippingRect({element:(Le=await(Qe.isElement==null?void 0:Qe.isElement(Dt)))==null||Le?Dt:Dt.contextElement||await(Qe.getDocumentElement==null?void 0:Qe.getDocumentElement($e.floating)),boundary:Jt,rootBoundary:Nt,strategy:It})),pr=A(Qe.convertOffsetParentRelativeRectToViewportRelativeRect?await Qe.convertOffsetParentRelativeRectToViewportRelativeRect({rect:kt==="floating"?{...nt.floating,x:Ne,y:Xe}:nt.reference,offsetParent:await(Qe.getOffsetParent==null?void 0:Qe.getOffsetParent($e.floating)),strategy:It}):nt[kt]);return{top:er.top-pr.top+ar.top,bottom:pr.bottom-er.bottom+ar.bottom,left:er.left-pr.left+ar.left,right:pr.right-er.right+ar.right}}const Y=Math.min,ee=Math.max;function ge(se,Ae,Le){return ee(se,Y(Ae,Le))}const be=se=>({name:"arrow",options:se,async fn(Ae){const{element:Le,padding:Ne=0}=se??{},{x:Xe,y:Qe,placement:nt,rects:$e,platform:It}=Ae;if(Le==null)return{};const Jt=B(Ne),Nt={x:Xe,y:Qe},kt=o(nt),nr=q(nt),Bt=i(kt),ar=await It.getDimensions(Le),Dt=kt==="y"?"top":"left",er=kt==="y"?"bottom":"right",pr=$e.reference[Bt]+$e.reference[kt]-Nt[kt]-$e.floating[Bt],yr=Nt[kt]-$e.reference[kt],kr=await(It.getOffsetParent==null?void 0:It.getOffsetParent(Le));let dr=kr?kt==="y"?kr.clientHeight||0:kr.clientWidth||0:0;dr===0&&(dr=$e.floating[Bt]);const Dr=pr/2-yr/2,Yr=Jt[Dt],$r=dr-ar[Bt]-Jt[er],Ir=dr/2-ar[Bt]/2+Dr,Ur=ge(Yr,Ir,$r),Vr=(nr==="start"?Jt[Dt]:Jt[er])>0&&Ir!==Ur&&$e.reference[Bt]<=$e.floating[Bt];return{[kt]:Nt[kt]-(Vr?Ir<Yr?Yr-Ir:$r-Ir:0),data:{[kt]:Ur,centerOffset:Ir-Ur}}}}),Re={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(se){return se.replace(/left|right|bottom|top/g,Ae=>Re[Ae])}function Be(se,Ae,Le){Le===void 0&&(Le=!1);const Ne=q(se),Xe=o(se),Qe=i(Xe);let nt=Xe==="x"?Ne===(Le?"end":"start")?"right":"left":Ne==="start"?"bottom":"top";return Ae.reference[Qe]>Ae.floating[Qe]&&(nt=Ze(nt)),{main:nt,cross:Ze(nt)}}const Ie={start:"end",end:"start"};function Ke(se){return se.replace(/start|end/g,Ae=>Ie[Ae])}const Ye=["top","right","bottom","left"],tt=(Ye.reduce((se,Ae)=>se.concat(Ae,Ae+"-start",Ae+"-end"),[]),function(se){return se===void 0&&(se={}),{name:"flip",options:se,async fn(Ae){var Le;const{placement:Ne,middlewareData:Xe,rects:Qe,initialPlacement:nt,platform:$e,elements:It}=Ae,{mainAxis:Jt=!0,crossAxis:Nt=!0,fallbackPlacements:kt,fallbackStrategy:nr="bestFit",flipAlignment:Bt=!0,...ar}=se,Dt=ke(Ne),er=kt||(Dt!==nt&&Bt?function(Ir){const Ur=Ze(Ir);return[Ke(Ir),Ur,Ke(Ur)]}(nt):[Ze(nt)]),pr=[nt,...er],yr=await X(Ae,ar),kr=[];let dr=((Le=Xe.flip)==null?void 0:Le.overflows)||[];if(Jt&&kr.push(yr[Dt]),Nt){const{main:Ir,cross:Ur}=Be(Ne,Qe,await($e.isRTL==null?void 0:$e.isRTL(It.floating)));kr.push(yr[Ir],yr[Ur])}if(dr=[...dr,{placement:Ne,overflows:kr}],!kr.every(Ir=>Ir<=0)){var Dr,Yr;const Ir=((Dr=(Yr=Xe.flip)==null?void 0:Yr.index)!=null?Dr:0)+1,Ur=pr[Ir];if(Ur)return{data:{index:Ir,overflows:dr},reset:{placement:Ur}};let Vr="bottom";switch(nr){case"bestFit":{var $r;const Jr=($r=dr.map(hn=>[hn,hn.overflows.filter(ln=>ln>0).reduce((ln,kn)=>ln+kn,0)]).sort((hn,ln)=>hn[1]-ln[1])[0])==null?void 0:$r[0].placement;Jr&&(Vr=Jr);break}case"initialPlacement":Vr=nt}if(Ne!==Vr)return{reset:{placement:Vr}}}return{}}}});function ue(se,Ae){return{top:se.top-Ae.height,right:se.right-Ae.width,bottom:se.bottom-Ae.height,left:se.left-Ae.width}}function ve(se){return Ye.some(Ae=>se[Ae]>=0)}const De=function(se){let{strategy:Ae="referenceHidden",...Le}=se===void 0?{}:se;return{name:"hide",async fn(Ne){const{rects:Xe}=Ne;switch(Ae){case"referenceHidden":{const Qe=ue(await X(Ne,{...Le,elementContext:"reference"}),Xe.reference);return{data:{referenceHiddenOffsets:Qe,referenceHidden:ve(Qe)}}}case"escaped":{const Qe=ue(await X(Ne,{...Le,altBoundary:!0}),Xe.floating);return{data:{escapedOffsets:Qe,escaped:ve(Qe)}}}default:return{}}}}},He=function(se){return se===void 0&&(se=0),{name:"offset",options:se,async fn(Ae){const{x:Le,y:Ne}=Ae,Xe=await async function(Qe,nt){const{placement:$e,platform:It,elements:Jt}=Qe,Nt=await(It.isRTL==null?void 0:It.isRTL(Jt.floating)),kt=ke($e),nr=q($e),Bt=o($e)==="x",ar=["left","top"].includes(kt)?-1:1,Dt=Nt&&Bt?-1:1,er=typeof nt=="function"?nt(Qe):nt;let{mainAxis:pr,crossAxis:yr,alignmentAxis:kr}=typeof er=="number"?{mainAxis:er,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...er};return nr&&typeof kr=="number"&&(yr=nr==="end"?-1*kr:kr),Bt?{x:yr*Dt,y:pr*ar}:{x:pr*ar,y:yr*Dt}}(Ae,se);return{x:Le+Xe.x,y:Ne+Xe.y,data:Xe}}}};function Je(se){return se==="x"?"y":"x"}const qe=function(se){return se===void 0&&(se={}),{name:"shift",options:se,async fn(Ae){const{x:Le,y:Ne,placement:Xe}=Ae,{mainAxis:Qe=!0,crossAxis:nt=!1,limiter:$e={fn:er=>{let{x:pr,y:yr}=er;return{x:pr,y:yr}}},...It}=se,Jt={x:Le,y:Ne},Nt=await X(Ae,It),kt=o(ke(Xe)),nr=Je(kt);let Bt=Jt[kt],ar=Jt[nr];if(Qe){const er=kt==="y"?"bottom":"right";Bt=ge(Bt+Nt[kt==="y"?"top":"left"],Bt,Bt-Nt[er])}if(nt){const er=nr==="y"?"bottom":"right";ar=ge(ar+Nt[nr==="y"?"top":"left"],ar,ar-Nt[er])}const Dt=$e.fn({...Ae,[kt]:Bt,[nr]:ar});return{...Dt,data:{x:Dt.x-Le,y:Dt.y-Ne}}}}},st=function(se){return se===void 0&&(se={}),{options:se,fn(Ae){const{x:Le,y:Ne,placement:Xe,rects:Qe,middlewareData:nt}=Ae,{offset:$e=0,mainAxis:It=!0,crossAxis:Jt=!0}=se,Nt={x:Le,y:Ne},kt=o(Xe),nr=Je(kt);let Bt=Nt[kt],ar=Nt[nr];const Dt=typeof $e=="function"?$e({...Qe,placement:Xe}):$e,er=typeof Dt=="number"?{mainAxis:Dt,crossAxis:0}:{mainAxis:0,crossAxis:0,...Dt};if(It){const Dr=kt==="y"?"height":"width",Yr=Qe.reference[kt]-Qe.floating[Dr]+er.mainAxis,$r=Qe.reference[kt]+Qe.reference[Dr]-er.mainAxis;Bt<Yr?Bt=Yr:Bt>$r&&(Bt=$r)}if(Jt){var pr,yr,kr,dr;const Dr=kt==="y"?"width":"height",Yr=["top","left"].includes(ke(Xe)),$r=Qe.reference[nr]-Qe.floating[Dr]+(Yr&&(pr=(yr=nt.offset)==null?void 0:yr[nr])!=null?pr:0)+(Yr?0:er.crossAxis),Ir=Qe.reference[nr]+Qe.reference[Dr]+(Yr?0:(kr=(dr=nt.offset)==null?void 0:dr[nr])!=null?kr:0)-(Yr?er.crossAxis:0);ar<$r?ar=$r:ar>Ir&&(ar=Ir)}return{[kt]:Bt,[nr]:ar}}}},ht=function(se){return se===void 0&&(se={}),{name:"size",options:se,async fn(Ae){const{placement:Le,rects:Ne,platform:Xe,elements:Qe}=Ae,{apply:nt,...$e}=se,It=await X(Ae,$e),Jt=ke(Le),Nt=q(Le);let kt,nr;Jt==="top"||Jt==="bottom"?(kt=Jt,nr=Nt===(await(Xe.isRTL==null?void 0:Xe.isRTL(Qe.floating))?"start":"end")?"left":"right"):(nr=Jt,kt=Nt==="end"?"top":"bottom");const Bt=ee(It.left,0),ar=ee(It.right,0),Dt=ee(It.top,0),er=ee(It.bottom,0),pr={availableHeight:Ne.floating.height-(["left","right"].includes(Le)?2*(Dt!==0||er!==0?Dt+er:ee(It.top,It.bottom)):It[kt]),availableWidth:Ne.floating.width-(["top","bottom"].includes(Le)?2*(Bt!==0||ar!==0?Bt+ar:ee(It.left,It.right)):It[nr])},yr=await Xe.getDimensions(Qe.floating);nt?.({...Ae,...pr});const kr=await Xe.getDimensions(Qe.floating);return yr.width!==kr.width||yr.height!==kr.height?{reset:{rects:!0}}:{}}}};function et(se){return se&&se.document&&se.location&&se.alert&&se.setInterval}function wt(se){if(se==null)return window;if(!et(se)){const Ae=se.ownerDocument;return Ae&&Ae.defaultView||window}return se}function Lt(se){return wt(se).getComputedStyle(se)}function St(se){return et(se)?"":se?(se.nodeName||"").toLowerCase():""}function yt(){const se=navigator.userAgentData;return se!=null&&se.brands?se.brands.map(Ae=>Ae.brand+"/"+Ae.version).join(" "):navigator.userAgent}function Wt(se){return se instanceof wt(se).HTMLElement}function Ft(se){return se instanceof wt(se).Element}function Ve(se){return typeof ShadowRoot<"u"&&(se instanceof wt(se).ShadowRoot||se instanceof ShadowRoot)}function bt(se){const{overflow:Ae,overflowX:Le,overflowY:Ne}=Lt(se);return/auto|scroll|overlay|hidden/.test(Ae+Ne+Le)}function at(se){return["table","td","th"].includes(St(se))}function mt(se){const Ae=/firefox/i.test(yt()),Le=Lt(se);return Le.transform!=="none"||Le.perspective!=="none"||Le.contain==="paint"||["transform","perspective"].includes(Le.willChange)||Ae&&Le.willChange==="filter"||Ae&&!!Le.filter&&Le.filter!=="none"}function ut(){return!/^((?!chrome|android).)*safari/i.test(yt())}const Ot=Math.min,Pt=Math.max,Gt=Math.round;function Ct(se,Ae,Le){var Ne,Xe,Qe,nt;Ae===void 0&&(Ae=!1),Le===void 0&&(Le=!1);const $e=se.getBoundingClientRect();let It=1,Jt=1;Ae&&Wt(se)&&(It=se.offsetWidth>0&&Gt($e.width)/se.offsetWidth||1,Jt=se.offsetHeight>0&&Gt($e.height)/se.offsetHeight||1);const Nt=Ft(se)?wt(se):window,kt=!ut()&&Le,nr=($e.left+(kt&&(Ne=(Xe=Nt.visualViewport)==null?void 0:Xe.offsetLeft)!=null?Ne:0))/It,Bt=($e.top+(kt&&(Qe=(nt=Nt.visualViewport)==null?void 0:nt.offsetTop)!=null?Qe:0))/Jt,ar=$e.width/It,Dt=$e.height/Jt;return{width:ar,height:Dt,top:Bt,right:nr+ar,bottom:Bt+Dt,left:nr,x:nr,y:Bt}}function ur(se){return(Ae=se,(Ae instanceof wt(Ae).Node?se.ownerDocument:se.document)||window.document).documentElement;var Ae}function rr(se){return Ft(se)?{scrollLeft:se.scrollLeft,scrollTop:se.scrollTop}:{scrollLeft:se.pageXOffset,scrollTop:se.pageYOffset}}function Tr(se){return Ct(ur(se)).left+rr(se).scrollLeft}function ot(se,Ae,Le){const Ne=Wt(Ae),Xe=ur(Ae),Qe=Ct(se,Ne&&function(It){const Jt=Ct(It);return Gt(Jt.width)!==It.offsetWidth||Gt(Jt.height)!==It.offsetHeight}(Ae),Le==="fixed");let nt={scrollLeft:0,scrollTop:0};const $e={x:0,y:0};if(Ne||!Ne&&Le!=="fixed")if((St(Ae)!=="body"||bt(Xe))&&(nt=rr(Ae)),Wt(Ae)){const It=Ct(Ae,!0);$e.x=It.x+Ae.clientLeft,$e.y=It.y+Ae.clientTop}else Xe&&($e.x=Tr(Xe));return{x:Qe.left+nt.scrollLeft-$e.x,y:Qe.top+nt.scrollTop-$e.y,width:Qe.width,height:Qe.height}}function Rt(se){return St(se)==="html"?se:se.assignedSlot||se.parentNode||(Ve(se)?se.host:null)||ur(se)}function _t(se){return Wt(se)&&getComputedStyle(se).position!=="fixed"?se.offsetParent:null}function At(se){const Ae=wt(se);let Le=_t(se);for(;Le&&at(Le)&&getComputedStyle(Le).position==="static";)Le=_t(Le);return Le&&(St(Le)==="html"||St(Le)==="body"&&getComputedStyle(Le).position==="static"&&!mt(Le))?Ae:Le||function(Ne){let Xe=Rt(Ne);for(Ve(Xe)&&(Xe=Xe.host);Wt(Xe)&&!["html","body"].includes(St(Xe));){if(mt(Xe))return Xe;Xe=Xe.parentNode}return null}(se)||Ae}function br(se){if(Wt(se))return{width:se.offsetWidth,height:se.offsetHeight};const Ae=Ct(se);return{width:Ae.width,height:Ae.height}}function xr(se){const Ae=Rt(se);return["html","body","#document"].includes(St(Ae))?se.ownerDocument.body:Wt(Ae)&&bt(Ae)?Ae:xr(Ae)}function jr(se,Ae){var Le;Ae===void 0&&(Ae=[]);const Ne=xr(se),Xe=Ne===((Le=se.ownerDocument)==null?void 0:Le.body),Qe=wt(Ne),nt=Xe?[Qe].concat(Qe.visualViewport||[],bt(Ne)?Ne:[]):Ne,$e=Ae.concat(nt);return Xe?$e:$e.concat(jr(nt))}function Ar(se,Ae,Le){return Ae==="viewport"?A(function(Ne,Xe){const Qe=wt(Ne),nt=ur(Ne),$e=Qe.visualViewport;let It=nt.clientWidth,Jt=nt.clientHeight,Nt=0,kt=0;if($e){It=$e.width,Jt=$e.height;const nr=ut();(nr||!nr&&Xe==="fixed")&&(Nt=$e.offsetLeft,kt=$e.offsetTop)}return{width:It,height:Jt,x:Nt,y:kt}}(se,Le)):Ft(Ae)?function(Ne,Xe){const Qe=Ct(Ne,!1,Xe==="fixed"),nt=Qe.top+Ne.clientTop,$e=Qe.left+Ne.clientLeft;return{top:nt,left:$e,x:$e,y:nt,right:$e+Ne.clientWidth,bottom:nt+Ne.clientHeight,width:Ne.clientWidth,height:Ne.clientHeight}}(Ae,Le):A(function(Ne){var Xe;const Qe=ur(Ne),nt=rr(Ne),$e=(Xe=Ne.ownerDocument)==null?void 0:Xe.body,It=Pt(Qe.scrollWidth,Qe.clientWidth,$e?$e.scrollWidth:0,$e?$e.clientWidth:0),Jt=Pt(Qe.scrollHeight,Qe.clientHeight,$e?$e.scrollHeight:0,$e?$e.clientHeight:0);let Nt=-nt.scrollLeft+Tr(Ne);const kt=-nt.scrollTop;return Lt($e||Qe).direction==="rtl"&&(Nt+=Pt(Qe.clientWidth,$e?$e.clientWidth:0)-It),{width:It,height:Jt,x:Nt,y:kt}}(ur(se)))}function fr(se){const Ae=jr(se),Le=["absolute","fixed"].includes(Lt(se).position)&&Wt(se)?At(se):se;return Ft(Le)?Ae.filter(Ne=>Ft(Ne)&&function(Xe,Qe){const nt=Qe.getRootNode==null?void 0:Qe.getRootNode();if(Xe.contains(Qe))return!0;if(nt&&Ve(nt)){let $e=Qe;do{if($e&&Xe===$e)return!0;$e=$e.parentNode||$e.host}while($e)}return!1}(Ne,Le)&&St(Ne)!=="body"):[]}const dt={getClippingRect:function(se){let{element:Ae,boundary:Le,rootBoundary:Ne,strategy:Xe}=se;const Qe=[...Le==="clippingAncestors"?fr(Ae):[].concat(Le),Ne],nt=Qe[0],$e=Qe.reduce((It,Jt)=>{const Nt=Ar(Ae,Jt,Xe);return It.top=Pt(Nt.top,It.top),It.right=Ot(Nt.right,It.right),It.bottom=Ot(Nt.bottom,It.bottom),It.left=Pt(Nt.left,It.left),It},Ar(Ae,nt,Xe));return{width:$e.right-$e.left,height:$e.bottom-$e.top,x:$e.left,y:$e.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(se){let{rect:Ae,offsetParent:Le,strategy:Ne}=se;const Xe=Wt(Le),Qe=ur(Le);if(Le===Qe)return Ae;let nt={scrollLeft:0,scrollTop:0};const $e={x:0,y:0};if((Xe||!Xe&&Ne!=="fixed")&&((St(Le)!=="body"||bt(Qe))&&(nt=rr(Le)),Wt(Le))){const It=Ct(Le,!0);$e.x=It.x+Le.clientLeft,$e.y=It.y+Le.clientTop}return{...Ae,x:Ae.x-nt.scrollLeft+$e.x,y:Ae.y-nt.scrollTop+$e.y}},isElement:Ft,getDimensions:br,getOffsetParent:At,getDocumentElement:ur,getElementRects:se=>{let{reference:Ae,floating:Le,strategy:Ne}=se;return{reference:ot(Ae,At(Le),Ne),floating:{...br(Le),x:0,y:0}}},getClientRects:se=>Array.from(se.getClientRects()),isRTL:se=>Lt(se).direction==="rtl"};function ft(se,Ae,Le,Ne){Ne===void 0&&(Ne={});const{ancestorScroll:Xe=!0,ancestorResize:Qe=!0,elementResize:nt=!0,animationFrame:$e=!1}=Ne,It=Xe&&!$e,Jt=Qe&&!$e,Nt=It||Jt?[...Ft(se)?jr(se):[],...jr(Ae)]:[];Nt.forEach(ar=>{It&&ar.addEventListener("scroll",Le,{passive:!0}),Jt&&ar.addEventListener("resize",Le)});let kt,nr=null;if(nt){let ar=!0;nr=new ResizeObserver(()=>{ar||Le(),ar=!1}),Ft(se)&&!$e&&nr.observe(se),nr.observe(Ae)}let Bt=$e?Ct(se):null;return $e&&function ar(){const Dt=Ct(se);!Bt||Dt.x===Bt.x&&Dt.y===Bt.y&&Dt.width===Bt.width&&Dt.height===Bt.height||Le(),Bt=Dt,kt=requestAnimationFrame(ar)}(),Le(),()=>{var ar;Nt.forEach(Dt=>{It&&Dt.removeEventListener("scroll",Le),Jt&&Dt.removeEventListener("resize",Le)}),(ar=nr)==null||ar.disconnect(),nr=null,$e&&cancelAnimationFrame(kt)}}const vt=(se,Ae,Le)=>(async(Ne,Xe,Qe)=>{const{placement:nt="bottom",strategy:$e="absolute",middleware:It=[],platform:Jt}=Qe,Nt=await(Jt.isRTL==null?void 0:Jt.isRTL(Xe));let kt=await Jt.getElementRects({reference:Ne,floating:Xe,strategy:$e}),{x:nr,y:Bt}=p(kt,nt,Nt),ar=nt,Dt={},er=0;for(let pr=0;pr<It.length;pr++){const{name:yr,fn:kr}=It[pr],{x:dr,y:Dr,data:Yr,reset:$r}=await kr({x:nr,y:Bt,initialPlacement:nt,placement:ar,strategy:$e,middlewareData:Dt,rects:kt,platform:Jt,elements:{reference:Ne,floating:Xe}});nr=dr??nr,Bt=Dr??Bt,Dt={...Dt,[yr]:{...Dt[yr],...Yr}},$r&&er<=50&&(er++,typeof $r=="object"&&($r.placement&&(ar=$r.placement),$r.rects&&(kt=$r.rects===!0?await Jt.getElementRects({reference:Ne,floating:Xe,strategy:$e}):$r.rects),{x:nr,y:Bt}=p(kt,ar,Nt)),pr=-1)}return{x:nr,y:Bt,placement:ar,strategy:$e,middlewareData:Dt}})(se,Ae,{platform:dt,...Le});var Et=e(5156),tr=e.n(Et),ir=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Qt(se,Ae){if(se===Ae)return!0;if(typeof se!=typeof Ae)return!1;if(typeof se=="function"&&se.toString()===Ae.toString())return!0;let Le,Ne,Xe;if(se&&Ae&&typeof se=="object"){if(Array.isArray(se)){if(Le=se.length,Le!=Ae.length)return!1;for(Ne=Le;Ne--!=0;)if(!Qt(se[Ne],Ae[Ne]))return!1;return!0}if(Xe=Object.keys(se),Le=Xe.length,Le!==Object.keys(Ae).length)return!1;for(Ne=Le;Ne--!=0;)if(!Object.prototype.hasOwnProperty.call(Ae,Xe[Ne]))return!1;for(Ne=Le;Ne--!=0;){const Qe=Xe[Ne];if((Qe!=="_owner"||!se.$$typeof)&&!Qt(se[Qe],Ae[Qe]))return!1}return!0}return se!=se&&Ae!=Ae}function _r(se){let{middleware:Ae,placement:Le="bottom",strategy:Ne="absolute",whileElementsMounted:Xe}=se===void 0?{}:se;const Qe=v.useRef(null),nt=v.useRef(null),$e=function(kr){const dr=v.useRef(kr);return ir(()=>{dr.current=kr}),dr}(Xe),It=v.useRef(null),[Jt,Nt]=v.useState({x:null,y:null,strategy:Ne,placement:Le,middlewareData:{}}),[kt,nr]=v.useState(Ae);Qt(kt?.map(kr=>{let{options:dr}=kr;return dr}),Ae?.map(kr=>{let{options:dr}=kr;return dr}))||nr(Ae);const Bt=v.useCallback(()=>{Qe.current&&nt.current&&vt(Qe.current,nt.current,{middleware:kt,placement:Le,strategy:Ne}).then(kr=>{ar.current&&Et.flushSync(()=>{Nt(kr)})})},[kt,Le,Ne]);ir(()=>{ar.current&&Bt()},[Bt]);const ar=v.useRef(!1);ir(()=>(ar.current=!0,()=>{ar.current=!1}),[]);const Dt=v.useCallback(()=>{if(typeof It.current=="function"&&(It.current(),It.current=null),Qe.current&&nt.current)if($e.current){const kr=$e.current(Qe.current,nt.current,Bt);It.current=kr}else Bt()},[Bt,$e]),er=v.useCallback(kr=>{Qe.current=kr,Dt()},[Dt]),pr=v.useCallback(kr=>{nt.current=kr,Dt()},[Dt]),yr=v.useMemo(()=>({reference:Qe,floating:nt}),[]);return v.useMemo(()=>({...Jt,update:Bt,refs:yr,reference:er,floating:pr}),[Jt,Bt,yr,er,pr])}const sr=se=>{const{element:Ae,padding:Le}=se;return{name:"arrow",options:se,fn(Ne){return Xe=Ae,Object.prototype.hasOwnProperty.call(Xe,"current")?Ae.current!=null?be({element:Ae.current,padding:Le}).fn(Ne):{}:Ae?be({element:Ae,padding:Le}).fn(Ne):{};var Xe}}},mr=(0,v.forwardRef)((se,Ae)=>{const{children:Le,width:Ne=10,height:Xe=5,...Qe}=se;return(0,v.createElement)(a.WV.svg,(0,f.Z)({},Qe,{ref:Ae,width:Ne,height:Xe,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),se.asChild?Le:(0,v.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),Zr=mr;var or=e(3348);const lr="Popper",[gr,cr]=(0,l.b)(lr),[Hr,vr]=gr(lr),Rr=se=>{const{__scopePopper:Ae,children:Le}=se,[Ne,Xe]=(0,v.useState)(null);return(0,v.createElement)(Hr,{scope:Ae,anchor:Ne,onAnchorChange:Xe},Le)},an="PopperAnchor",Sn=(0,v.forwardRef)((se,Ae)=>{const{__scopePopper:Le,virtualRef:Ne,...Xe}=se,Qe=vr(an,Le),nt=(0,v.useRef)(null),$e=(0,w.e)(Ae,nt);return(0,v.useEffect)(()=>{Qe.onAnchorChange(Ne?.current||nt.current)}),Ne?null:(0,v.createElement)(a.WV.div,(0,f.Z)({},Xe,{ref:$e}))}),Mn="PopperContent",[Zn,Rn]=gr(Mn),[bn,yn]=gr(Mn,{hasParent:!1,positionUpdateFns:new Set}),Un=(0,v.forwardRef)((se,Ae)=>{var Le,Ne,Xe,Qe,nt,$e,It,Jt;const{__scopePopper:Nt,side:kt="bottom",sideOffset:nr=0,align:Bt="center",alignOffset:ar=0,arrowPadding:Dt=0,collisionBoundary:er=[],collisionPadding:pr=0,sticky:yr="partial",hideWhenDetached:kr=!1,avoidCollisions:dr=!0,onPlaced:Dr,...Yr}=se,$r=vr(Mn,Nt),[Ir,Ur]=(0,v.useState)(null),Vr=(0,w.e)(Ae,Hn=>Ur(Hn)),[Jr,hn]=(0,v.useState)(null),ln=function(Hn){const[xo,Zo]=(0,v.useState)(void 0);return(0,or.b)(()=>{if(Hn){Zo({width:Hn.offsetWidth,height:Hn.offsetHeight});const ti=new ResizeObserver(ca=>{if(!Array.isArray(ca)||!ca.length)return;const Zt=ca[0];let sa,ua;if("borderBoxSize"in Zt){const da=Zt.borderBoxSize,fa=Array.isArray(da)?da[0]:da;sa=fa.inlineSize,ua=fa.blockSize}else sa=Hn.offsetWidth,ua=Hn.offsetHeight;Zo({width:sa,height:ua})});return ti.observe(Hn,{box:"border-box"}),()=>ti.unobserve(Hn)}Zo(void 0)},[Hn]),xo}(Jr),kn=(Le=ln?.width)!==null&&Le!==void 0?Le:0,En=(Ne=ln?.height)!==null&&Ne!==void 0?Ne:0,io=kt+(Bt!=="center"?"-"+Bt:""),Gn=typeof pr=="number"?pr:{top:0,right:0,bottom:0,left:0,...pr},So=Array.isArray(er)?er:[er],Mo=So.length>0,po={padding:Gn,boundary:So.filter(pt),altBoundary:Mo},{reference:jn,floating:bo,strategy:Pn,x:lo,y:zn,placement:oa,middlewareData:yo,update:aa}=_r({strategy:"fixed",placement:io,whileElementsMounted:ft,middleware:[Ut(),He({mainAxis:nr+En,alignmentAxis:ar}),dr?qe({mainAxis:!0,crossAxis:!1,limiter:yr==="partial"?st():void 0,...po}):void 0,Jr?sr({element:Jr,padding:Dt}):void 0,dr?tt({...po}):void 0,ht({...po,apply:({elements:Hn,availableWidth:xo,availableHeight:Zo})=>{Hn.floating.style.setProperty("--radix-popper-available-width",`${xo}px`),Hn.floating.style.setProperty("--radix-popper-available-height",`${Zo}px`)}}),zt({arrowWidth:kn,arrowHeight:En}),kr?De({strategy:"referenceHidden"}):void 0].filter(ze)});(0,or.b)(()=>{jn($r.anchor)},[jn,$r.anchor]);const co=lo!==null&&zn!==null,[Xa,ia]=qt(oa),ho=(0,c.W)(Dr);(0,or.b)(()=>{co&&ho?.()},[co,ho]);const ki=(Xe=yo.arrow)===null||Xe===void 0?void 0:Xe.x,qa=(Qe=yo.arrow)===null||Qe===void 0?void 0:Qe.y,$a=((nt=yo.arrow)===null||nt===void 0?void 0:nt.centerOffset)!==0,[Ja,la]=(0,v.useState)();(0,or.b)(()=>{Ir&&la(window.getComputedStyle(Ir).zIndex)},[Ir]);const{hasParent:Qa,positionUpdateFns:jo}=yn(Mn,Nt),Lo=!Qa;(0,v.useLayoutEffect)(()=>{if(!Lo)return jo.add(aa),()=>{jo.delete(aa)}},[Lo,jo,aa]),(0,or.b)(()=>{Lo&&co&&Array.from(jo).reverse().forEach(Hn=>requestAnimationFrame(Hn))},[Lo,co,jo]);const ei={"data-side":Xa,"data-align":ia,...Yr,ref:Vr,style:{...Yr.style,animation:co?void 0:"none",opacity:($e=yo.hide)!==null&&$e!==void 0&&$e.referenceHidden?0:void 0}};return(0,v.createElement)("div",{ref:bo,"data-radix-popper-content-wrapper":"",style:{position:Pn,left:0,top:0,transform:co?`translate3d(${Math.round(lo)}px, ${Math.round(zn)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Ja,"--radix-popper-transform-origin":[(It=yo.transformOrigin)===null||It===void 0?void 0:It.x,(Jt=yo.transformOrigin)===null||Jt===void 0?void 0:Jt.y].join(" ")},dir:se.dir},(0,v.createElement)(Zn,{scope:Nt,placedSide:Xa,onArrowChange:hn,arrowX:ki,arrowY:qa,shouldHideArrow:$a},Lo?(0,v.createElement)(bn,{scope:Nt,hasParent:!0,positionUpdateFns:jo},(0,v.createElement)(a.WV.div,ei)):(0,v.createElement)(a.WV.div,ei)))}),ne="PopperArrow",Ee={top:"bottom",right:"left",bottom:"top",left:"right"},Pe=(0,v.forwardRef)(function(se,Ae){const{__scopePopper:Le,...Ne}=se,Xe=Rn(ne,Le),Qe=Ee[Xe.placedSide];return(0,v.createElement)("span",{ref:Xe.onArrowChange,style:{position:"absolute",left:Xe.arrowX,top:Xe.arrowY,[Qe]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[Xe.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[Xe.placedSide],visibility:Xe.shouldHideArrow?"hidden":void 0}},(0,v.createElement)(Zr,(0,f.Z)({},Ne,{ref:Ae,style:{...Ne.style,display:"block"}})))});function ze(se){return se!==void 0}function pt(se){return se!==null}const Ut=()=>({name:"anchorCssProperties",fn(se){const{rects:Ae,elements:Le}=se,{width:Ne,height:Xe}=Ae.reference;return Le.floating.style.setProperty("--radix-popper-anchor-width",`${Ne}px`),Le.floating.style.setProperty("--radix-popper-anchor-height",`${Xe}px`),{}}}),zt=se=>({name:"transformOrigin",options:se,fn(Ae){var Le,Ne,Xe,Qe,nt;const{placement:$e,rects:It,middlewareData:Jt}=Ae,Nt=((Le=Jt.arrow)===null||Le===void 0?void 0:Le.centerOffset)!==0,kt=Nt?0:se.arrowWidth,nr=Nt?0:se.arrowHeight,[Bt,ar]=qt($e),Dt={start:"0%",center:"50%",end:"100%"}[ar],er=((Ne=(Xe=Jt.arrow)===null||Xe===void 0?void 0:Xe.x)!==null&&Ne!==void 0?Ne:0)+kt/2,pr=((Qe=(nt=Jt.arrow)===null||nt===void 0?void 0:nt.y)!==null&&Qe!==void 0?Qe:0)+nr/2;let yr="",kr="";return Bt==="bottom"?(yr=Nt?Dt:`${er}px`,kr=-nr+"px"):Bt==="top"?(yr=Nt?Dt:`${er}px`,kr=`${It.floating.height+nr}px`):Bt==="right"?(yr=-nr+"px",kr=Nt?Dt:`${pr}px`):Bt==="left"&&(yr=`${It.floating.width+nr}px`,kr=Nt?Dt:`${pr}px`),{data:{x:yr,y:kr}}}});function qt(se){const[Ae,Le="center"]=se.split("-");return[Ae,Le]}const gt=Rr,Xt=Sn,$t=Un,Er=Pe,Or=(0,v.forwardRef)((se,Ae)=>{var Le;const{container:Ne=globalThis==null||(Le=globalThis.document)===null||Le===void 0?void 0:Le.body,...Xe}=se;return Ne?tr().createPortal((0,v.createElement)(a.WV.div,(0,f.Z)({},Xe,{ref:Ae})),Ne):null});var Cr=e(1483),Fr=e(4801),zr=e(2673),Sr=function(se){return typeof document>"u"?null:(Array.isArray(se)?se[0]:se).ownerDocument.body},qr=new WeakMap,rn=new WeakMap,Ln={},Bn=0,$n=function(se){return se&&(se.host||$n(se.parentNode))},uo=function(se,Ae,Le,Ne){var Xe=function(kt,nr){return nr.map(function(Bt){if(kt.contains(Bt))return Bt;var ar=$n(Bt);return ar&&kt.contains(ar)?ar:(console.error("aria-hidden",Bt,"in not contained inside",kt,". Doing nothing"),null)}).filter(function(Bt){return!!Bt})}(Ae,Array.isArray(se)?se:[se]);Ln[Le]||(Ln[Le]=new WeakMap);var Qe=Ln[Le],nt=[],$e=new Set,It=new Set(Xe),Jt=function(kt){kt&&!$e.has(kt)&&($e.add(kt),Jt(kt.parentNode))};Xe.forEach(Jt);var Nt=function(kt){kt&&!It.has(kt)&&Array.prototype.forEach.call(kt.children,function(nr){if($e.has(nr))Nt(nr);else{var Bt=nr.getAttribute(Ne),ar=Bt!==null&&Bt!=="false",Dt=(qr.get(nr)||0)+1,er=(Qe.get(nr)||0)+1;qr.set(nr,Dt),Qe.set(nr,er),nt.push(nr),Dt===1&&ar&&rn.set(nr,!0),er===1&&nr.setAttribute(Le,"true"),ar||nr.setAttribute(Ne,"true")}})};return Nt(Ae),$e.clear(),Bn++,function(){nt.forEach(function(kt){var nr=qr.get(kt)-1,Bt=Qe.get(kt)-1;qr.set(kt,nr),Qe.set(kt,Bt),nr||(rn.has(kt)||kt.removeAttribute(Ne),rn.delete(kt)),Bt||kt.removeAttribute(Le)}),--Bn||(qr=new WeakMap,qr=new WeakMap,rn=new WeakMap,Ln={})}},wr=function(se,Ae,Le){Le===void 0&&(Le="data-aria-hidden");var Ne=Array.from(Array.isArray(se)?se:[se]),Xe=Ae||Sr(se);return Xe?(Ne.push.apply(Ne,Array.from(Xe.querySelectorAll("[aria-live]"))),uo(Ne,Xe,Le,"aria-hidden")):function(){return null}},nn=function(){return nn=Object.assign||function(se){for(var Ae,Le=1,Ne=arguments.length;Le<Ne;Le++)for(var Xe in Ae=arguments[Le])Object.prototype.hasOwnProperty.call(Ae,Xe)&&(se[Xe]=Ae[Xe]);return se},nn.apply(this,arguments)};function mn(se,Ae){var Le={};for(var Ne in se)Object.prototype.hasOwnProperty.call(se,Ne)&&Ae.indexOf(Ne)<0&&(Le[Ne]=se[Ne]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function"){var Xe=0;for(Ne=Object.getOwnPropertySymbols(se);Xe<Ne.length;Xe++)Ae.indexOf(Ne[Xe])<0&&Object.prototype.propertyIsEnumerable.call(se,Ne[Xe])&&(Le[Ne[Xe]]=se[Ne[Xe]])}return Le}var On="right-scroll-bar-position",Kn="width-before-scroll-bar";function Jn(se,Ae){return Le=Ae||null,Ne=function(Qe){return se.forEach(function(nt){return function($e,It){return typeof $e=="function"?$e(It):$e&&($e.current=It),$e}(nt,Qe)})},(Xe=(0,v.useState)(function(){return{value:Le,callback:Ne,facade:{get current(){return Xe.value},set current(Qe){var nt=Xe.value;nt!==Qe&&(Xe.value=Qe,Xe.callback(Qe,nt))}}}})[0]).callback=Ne,Xe.facade;var Le,Ne,Xe}function wo(se){return se}function to(se,Ae){Ae===void 0&&(Ae=wo);var Le=[],Ne=!1,Xe={read:function(){if(Ne)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return Le.length?Le[Le.length-1]:se},useMedium:function(Qe){var nt=Ae(Qe,Ne);return Le.push(nt),function(){Le=Le.filter(function($e){return $e!==nt})}},assignSyncMedium:function(Qe){for(Ne=!0;Le.length;){var nt=Le;Le=[],nt.forEach(Qe)}Le={push:function($e){return Qe($e)},filter:function(){return Le}}},assignMedium:function(Qe){Ne=!0;var nt=[];if(Le.length){var $e=Le;Le=[],$e.forEach(Qe),nt=Le}var It=function(){var Nt=nt;nt=[],Nt.forEach(Qe)},Jt=function(){return Promise.resolve().then(It)};Jt(),Le={push:function(Nt){nt.push(Nt),Jt()},filter:function(Nt){return nt=nt.filter(Nt),Le}}}};return Xe}var no=function(se){se===void 0&&(se={});var Ae=to(null);return Ae.options=nn({async:!0,ssr:!1},se),Ae}(),ma=function(){},Qo=v.forwardRef(function(se,Ae){var Le=v.useRef(null),Ne=v.useState({onScrollCapture:ma,onWheelCapture:ma,onTouchMoveCapture:ma}),Xe=Ne[0],Qe=Ne[1],nt=se.forwardProps,$e=se.children,It=se.className,Jt=se.removeScrollBar,Nt=se.enabled,kt=se.shards,nr=se.sideCar,Bt=se.noIsolation,ar=se.inert,Dt=se.allowPinchZoom,er=se.as,pr=er===void 0?"div":er,yr=mn(se,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),kr=nr,dr=Jn([Le,Ae]),Dr=nn(nn({},yr),Xe);return v.createElement(v.Fragment,null,Nt&&v.createElement(kr,{sideCar:no,removeScrollBar:Jt,shards:kt,noIsolation:Bt,inert:ar,setCallbacks:Qe,allowPinchZoom:!!Dt,lockRef:Le}),nt?v.cloneElement(v.Children.only($e),nn(nn({},Dr),{ref:dr})):v.createElement(pr,nn({},Dr,{className:It,ref:dr}),$e))});Qo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Qo.classNames={fullWidth:Kn,zeroRight:On};var Ia=function(se){var Ae=se.sideCar,Le=mn(se,["sideCar"]);if(!Ae)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var Ne=Ae.read();if(!Ne)throw new Error("Sidecar medium not found");return v.createElement(Ne,nn({},Le))};Ia.isSideCarExport=!0;function ii(){if(!document)return null;var se=document.createElement("style");se.type="text/css";var Ae=e.nc;return Ae&&se.setAttribute("nonce",Ae),se}var Ma=function(){var se=0,Ae=null;return{add:function(Le){var Ne,Xe;se==0&&(Ae=ii())&&(Xe=Le,(Ne=Ae).styleSheet?Ne.styleSheet.cssText=Xe:Ne.appendChild(document.createTextNode(Xe)),function(Qe){(document.head||document.getElementsByTagName("head")[0]).appendChild(Qe)}(Ae)),se++},remove:function(){!--se&&Ae&&(Ae.parentNode&&Ae.parentNode.removeChild(Ae),Ae=null)}}},Pa=function(){var se,Ae=(se=Ma(),function(Le,Ne){v.useEffect(function(){return se.add(Le),function(){se.remove()}},[Le&&Ne])});return function(Le){var Ne=Le.styles,Xe=Le.dynamic;return Ae(Ne,Xe),null}},Ta={left:0,top:0,right:0,gap:0},ko=function(se){return parseInt(se||"",10)||0},ea=function(se){if(se===void 0&&(se="margin"),typeof window>"u")return Ta;var Ae=function(Xe){var Qe=window.getComputedStyle(document.body),nt=Qe[Xe==="padding"?"paddingLeft":"marginLeft"],$e=Qe[Xe==="padding"?"paddingTop":"marginTop"],It=Qe[Xe==="padding"?"paddingRight":"marginRight"];return[ko(nt),ko($e),ko(It)]}(se),Le=document.documentElement.clientWidth,Ne=window.innerWidth;return{left:Ae[0],top:Ae[1],right:Ae[2],gap:Math.max(0,Ne-Le+Ae[2]-Ae[0])}},Qn=Pa(),Da=function(se,Ae,Le,Ne){var Xe=se.left,Qe=se.top,nt=se.right,$e=se.gap;return Le===void 0&&(Le="margin"),` + .`.concat("with-scroll-bars-hidden",` { + overflow: hidden `).concat(Ne,`; + padding-right: `).concat($e,"px ").concat(Ne,`; + } + body { + overflow: hidden `).concat(Ne,`; + overscroll-behavior: contain; + `).concat([Ae&&"position: relative ".concat(Ne,";"),Le==="margin"&&` + padding-left: `.concat(Xe,`px; + padding-top: `).concat(Qe,`px; + padding-right: `).concat(nt,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat($e,"px ").concat(Ne,`; + `),Le==="padding"&&"padding-right: ".concat($e,"px ").concat(Ne,";")].filter(Boolean).join(""),` + } + + .`).concat(On,` { + right: `).concat($e,"px ").concat(Ne,`; + } + + .`).concat(Kn,` { + margin-right: `).concat($e,"px ").concat(Ne,`; + } + + .`).concat(On," .").concat(On,` { + right: 0 `).concat(Ne,`; + } + + .`).concat(Kn," .").concat(Kn,` { + margin-right: 0 `).concat(Ne,`; + } + + body { + `).concat("--removed-body-scroll-bar-size",": ").concat($e,`px; + } +`)},li=function(se){var Ae=se.noRelative,Le=se.noImportant,Ne=se.gapMode,Xe=Ne===void 0?"margin":Ne,Qe=v.useMemo(function(){return ea(Xe)},[Xe]);return v.createElement(Qn,{styles:Da(Qe,!Ae,Xe,Le?"":"!important")})},ga=!1;if(typeof window<"u")try{var To=Object.defineProperty({},"passive",{get:function(){return ga=!0,!0}});window.addEventListener("test",To,To),window.removeEventListener("test",To,To)}catch{ga=!1}var _o=!!ga&&{passive:!1},Ho=function(se,Ae){var Le=window.getComputedStyle(se);return Le[Ae]!=="hidden"&&!(Le.overflowY===Le.overflowX&&!function(Ne){return Ne.tagName==="TEXTAREA"}(se)&&Le[Ae]==="visible")},Oo=function(se,Ae){var Le=Ae;do{if(typeof ShadowRoot<"u"&&Le instanceof ShadowRoot&&(Le=Le.host),va(se,Le)){var Ne=Wo(se,Le);if(Ne[1]>Ne[2])return!0}Le=Le.parentNode}while(Le&&Le!==document.body);return!1},va=function(se,Ae){return se==="v"?function(Le){return Ho(Le,"overflowY")}(Ae):function(Le){return Ho(Le,"overflowX")}(Ae)},Wo=function(se,Ae){return se==="v"?[(Le=Ae).scrollTop,Le.scrollHeight,Le.clientHeight]:function(Ne){return[Ne.scrollLeft,Ne.scrollWidth,Ne.clientWidth]}(Ae);var Le},Do=function(se){return"changedTouches"in se?[se.changedTouches[0].clientX,se.changedTouches[0].clientY]:[0,0]},Aa=function(se){return[se.deltaX,se.deltaY]},ba=function(se){return se&&"current"in se?se.current:se},ya=function(se){return` + .block-interactivity-`.concat(se,` {pointer-events: none;} + .allow-interactivity-`).concat(se,` {pointer-events: all;} +`)},ta=0,oo=[],Fo,Ao=(Fo=function(se){var Ae=v.useRef([]),Le=v.useRef([0,0]),Ne=v.useRef(),Xe=v.useState(ta++)[0],Qe=v.useState(function(){return Pa()})[0],nt=v.useRef(se);v.useEffect(function(){nt.current=se},[se]),v.useEffect(function(){if(se.inert){document.body.classList.add("block-interactivity-".concat(Xe));var Dt=function(er,pr,yr){if(yr||arguments.length===2)for(var kr,dr=0,Dr=pr.length;dr<Dr;dr++)!kr&&dr in pr||(kr||(kr=Array.prototype.slice.call(pr,0,dr)),kr[dr]=pr[dr]);return er.concat(kr||Array.prototype.slice.call(pr))}([se.lockRef.current],(se.shards||[]).map(ba),!0).filter(Boolean);return Dt.forEach(function(er){return er.classList.add("allow-interactivity-".concat(Xe))}),function(){document.body.classList.remove("block-interactivity-".concat(Xe)),Dt.forEach(function(er){return er.classList.remove("allow-interactivity-".concat(Xe))})}}},[se.inert,se.lockRef.current,se.shards]);var $e=v.useCallback(function(Dt,er){if("touches"in Dt&&Dt.touches.length===2)return!nt.current.allowPinchZoom;var pr,yr=Do(Dt),kr=Le.current,dr="deltaX"in Dt?Dt.deltaX:kr[0]-yr[0],Dr="deltaY"in Dt?Dt.deltaY:kr[1]-yr[1],Yr=Dt.target,$r=Math.abs(dr)>Math.abs(Dr)?"h":"v";if("touches"in Dt&&$r==="h"&&Yr.type==="range")return!1;var Ir=Oo($r,Yr);if(!Ir)return!0;if(Ir?pr=$r:(pr=$r==="v"?"h":"v",Ir=Oo($r,Yr)),!Ir)return!1;if(!Ne.current&&"changedTouches"in Dt&&(dr||Dr)&&(Ne.current=pr),!pr)return!0;var Ur=Ne.current||pr;return function(Vr,Jr,hn,ln,kn){var En=function(oa,yo){return oa==="h"&&yo==="rtl"?-1:1}(Vr,window.getComputedStyle(Jr).direction),io=En*ln,Gn=hn.target,So=Jr.contains(Gn),Mo=!1,po=io>0,jn=0,bo=0;do{var Pn=Wo(Vr,Gn),lo=Pn[0],zn=Pn[1]-Pn[2]-En*lo;(lo||zn)&&va(Vr,Gn)&&(jn+=zn,bo+=lo),Gn=Gn.parentNode}while(!So&&Gn!==document.body||So&&(Jr.contains(Gn)||Jr===Gn));return(po&&(kn&&jn===0||!kn&&io>jn)||!po&&(kn&&bo===0||!kn&&-io>bo))&&(Mo=!0),Mo}(Ur,er,Dt,Ur==="h"?dr:Dr,!0)},[]),It=v.useCallback(function(Dt){var er=Dt;if(oo.length&&oo[oo.length-1]===Qe){var pr="deltaY"in er?Aa(er):Do(er),yr=Ae.current.filter(function(dr){return dr.name===er.type&&dr.target===er.target&&function(Dr,Yr){return Dr[0]===Yr[0]&&Dr[1]===Yr[1]}(dr.delta,pr)})[0];if(yr&&yr.should)er.cancelable&&er.preventDefault();else if(!yr){var kr=(nt.current.shards||[]).map(ba).filter(Boolean).filter(function(dr){return dr.contains(er.target)});(kr.length>0?$e(er,kr[0]):!nt.current.noIsolation)&&er.cancelable&&er.preventDefault()}}},[]),Jt=v.useCallback(function(Dt,er,pr,yr){var kr={name:Dt,delta:er,target:pr,should:yr};Ae.current.push(kr),setTimeout(function(){Ae.current=Ae.current.filter(function(dr){return dr!==kr})},1)},[]),Nt=v.useCallback(function(Dt){Le.current=Do(Dt),Ne.current=void 0},[]),kt=v.useCallback(function(Dt){Jt(Dt.type,Aa(Dt),Dt.target,$e(Dt,se.lockRef.current))},[]),nr=v.useCallback(function(Dt){Jt(Dt.type,Do(Dt),Dt.target,$e(Dt,se.lockRef.current))},[]);v.useEffect(function(){return oo.push(Qe),se.setCallbacks({onScrollCapture:kt,onWheelCapture:kt,onTouchMoveCapture:nr}),document.addEventListener("wheel",It,_o),document.addEventListener("touchmove",It,_o),document.addEventListener("touchstart",Nt,_o),function(){oo=oo.filter(function(Dt){return Dt!==Qe}),document.removeEventListener("wheel",It,_o),document.removeEventListener("touchmove",It,_o),document.removeEventListener("touchstart",Nt,_o)}},[]);var Bt=se.removeScrollBar,ar=se.inert;return v.createElement(v.Fragment,null,ar?v.createElement(Qe,{styles:ya(Xe)}):null,Bt?v.createElement(li,{gapMode:"margin"}):null)},no.useMedium(Fo),Ia),Eo=v.forwardRef(function(se,Ae){return v.createElement(Qo,nn({},se,{ref:Ae,sideCar:Ao}))});Eo.classNames=Qo.classNames;var ci=Eo;const La="Popover",[Za,Ki]=(0,l.b)(La,[cr]),Uo=cr(),[si,Co]=Za(La),ui=se=>{const{__scopePopover:Ae,children:Le,open:Ne,defaultOpen:Xe,onOpenChange:Qe,modal:nt=!1}=se,$e=Uo(Ae),It=(0,v.useRef)(null),[Jt,Nt]=(0,v.useState)(!1),[kt=!1,nr]=(0,zr.T)({prop:Ne,defaultProp:Xe,onChange:Qe});return(0,v.createElement)(gt,$e,(0,v.createElement)(si,{scope:Ae,contentId:(0,J.M)(),triggerRef:It,open:kt,onOpenChange:nr,onOpenToggle:(0,v.useCallback)(()=>nr(Bt=>!Bt),[nr]),hasCustomAnchor:Jt,onCustomAnchorAdd:(0,v.useCallback)(()=>Nt(!0),[]),onCustomAnchorRemove:(0,v.useCallback)(()=>Nt(!1),[]),modal:nt},Le))},di="PopoverTrigger",fi=(0,v.forwardRef)((se,Ae)=>{const{__scopePopover:Le,...Ne}=se,Xe=Co(di,Le),Qe=Uo(Le),nt=(0,w.e)(Ae,Xe.triggerRef),$e=(0,v.createElement)(a.WV.button,(0,f.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":Xe.open,"aria-controls":Xe.contentId,"data-state":Na(Xe.open)},Ne,{ref:nt,onClick:(0,t.M)(se.onClick,Xe.onOpenToggle)}));return Xe.hasCustomAnchor?$e:(0,v.createElement)(Xt,(0,f.Z)({asChild:!0},Qe),$e)}),xa="PopoverPortal",[pi,hi]=Za(xa,{forceMount:void 0}),ra=se=>{const{__scopePopover:Ae,forceMount:Le,children:Ne,container:Xe}=se,Qe=Co(xa,Ae);return(0,v.createElement)(pi,{scope:Ae,forceMount:Le},(0,v.createElement)(Cr.z,{present:Le||Qe.open},(0,v.createElement)(Or,{asChild:!0,container:Xe},Ne)))},fo="PopoverContent",mi=(0,v.forwardRef)((se,Ae)=>{const Le=hi(fo,se.__scopePopover),{forceMount:Ne=Le.forceMount,...Xe}=se,Qe=Co(fo,se.__scopePopover);return(0,v.createElement)(Cr.z,{present:Ne||Qe.open},Qe.modal?(0,v.createElement)(Ra,(0,f.Z)({},Xe,{ref:Ae})):(0,v.createElement)(za,(0,f.Z)({},Xe,{ref:Ae})))}),Ra=(0,v.forwardRef)((se,Ae)=>{const Le=Co(fo,se.__scopePopover),Ne=(0,v.useRef)(null),Xe=(0,w.e)(Ae,Ne),Qe=(0,v.useRef)(!1);return(0,v.useEffect)(()=>{const nt=Ne.current;if(nt)return wr(nt)},[]),(0,v.createElement)(ci,{as:Fr.g7,allowPinchZoom:!0},(0,v.createElement)(wa,(0,f.Z)({},se,{ref:Xe,trapFocus:Le.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,t.M)(se.onCloseAutoFocus,nt=>{var $e;nt.preventDefault(),Qe.current||($e=Le.triggerRef.current)===null||$e===void 0||$e.focus()}),onPointerDownOutside:(0,t.M)(se.onPointerDownOutside,nt=>{const $e=nt.detail.originalEvent,It=$e.button===0&&$e.ctrlKey===!0,Jt=$e.button===2||It;Qe.current=Jt},{checkForDefaultPrevented:!1}),onFocusOutside:(0,t.M)(se.onFocusOutside,nt=>nt.preventDefault(),{checkForDefaultPrevented:!1})})))}),za=(0,v.forwardRef)((se,Ae)=>{const Le=Co(fo,se.__scopePopover),Ne=(0,v.useRef)(!1);return(0,v.createElement)(wa,(0,f.Z)({},se,{ref:Ae,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:Xe=>{var Qe,nt;(Qe=se.onCloseAutoFocus)===null||Qe===void 0||Qe.call(se,Xe),Xe.defaultPrevented||(Ne.current||(nt=Le.triggerRef.current)===null||nt===void 0||nt.focus(),Xe.preventDefault()),Ne.current=!1},onInteractOutside:Xe=>{var Qe,nt;(Qe=se.onInteractOutside)===null||Qe===void 0||Qe.call(se,Xe),Xe.defaultPrevented||(Ne.current=!0);const $e=Xe.target;!((nt=Le.triggerRef.current)===null||nt===void 0)&&nt.contains($e)&&Xe.preventDefault()}}))}),wa=(0,v.forwardRef)((se,Ae)=>{const{__scopePopover:Le,trapFocus:Ne,onOpenAutoFocus:Xe,onCloseAutoFocus:Qe,disableOutsidePointerEvents:nt,onEscapeKeyDown:$e,onPointerDownOutside:It,onFocusOutside:Jt,onInteractOutside:Nt,...kt}=se,nr=Co(fo,Le),Bt=Uo(Le);return ce(),(0,v.createElement)(Ce,{asChild:!0,loop:!0,trapped:Ne,onMountAutoFocus:Xe,onUnmountAutoFocus:Qe},(0,v.createElement)(N,{asChild:!0,disableOutsidePointerEvents:nt,onInteractOutside:Nt,onEscapeKeyDown:$e,onPointerDownOutside:It,onFocusOutside:Jt,onDismiss:()=>nr.onOpenChange(!1)},(0,v.createElement)($t,(0,f.Z)({"data-state":Na(nr.open),role:"dialog",id:nr.contentId},Bt,kt,{ref:Ae,style:{...kt.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}),na=(0,v.forwardRef)((se,Ae)=>{const{__scopePopover:Le,...Ne}=se,Xe=Uo(Le);return(0,v.createElement)(Er,(0,f.Z)({},Xe,Ne,{ref:Ae}))});function Na(se){return se?"open":"closed"}const gi=ui,Ba=fi,Io=ra,Ko=mi,vi=na;var ka=e(8242),Ea=e(453),Ha=e(8935),_n=e(8924),un=function(se){var Ae=se.color,Le=se.onChange,Ne=se.label,Xe=se.colorPickerType,Qe=(0,ka.Fy)(),nt=(0,v.useState)(Ae),$e=(0,D.Z)(nt,2),It=$e[0],Jt=$e[1],Nt=(0,Z.KO)(le),kt=(0,D.Z)(Nt,2),nr=kt[0],Bt=kt[1];(0,v.useEffect)(function(){Jt(Ae)},[Ae]);var ar=(0,v.useCallback)(function(Dr){var Yr=Dr.toLowerCase(),$r=vo(Yr);$r&&Le($r),Jt(Yr)},[Le]),Dt=(0,v.useRef)(null),er=(0,v.useRef)(null);(0,v.useEffect)(function(){Dt.current&&Dt.current.focus()},[nr]);var pr=(0,Z.KO)(_n.$,Ea.yE),yr=(0,D.Z)(pr,2),kr=yr[0],dr=yr[1];return(0,v.useEffect)(function(){return function(){dr(null)}},[dr]),(0,S.jsxs)("div",{className:"color-picker__input-label",children:[(0,S.jsx)("div",{className:"color-picker__input-hash",children:"#"}),(0,S.jsx)("input",{ref:nr==="hex"?Dt:void 0,style:{border:0,padding:0},spellCheck:!1,className:"color-picker-input","aria-label":Ne,onChange:function(Dr){ar(Dr.target.value)},value:(It||"").replace(/^#/,""),onBlur:function(){Jt(Ae)},tabIndex:-1,onFocus:function(){return Bt("hex")},onKeyDown:function(Dr){var Yr;Dr.key!==b.tW.TAB&&(Dr.key===b.tW.ESCAPE&&((Yr=er.current)===null||Yr===void 0||Yr.focus()),Dr.stopPropagation())}}),!Qe.editor.isMobile&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{style:{width:"1px",height:"1.25rem",backgroundColor:"var(--default-border-color)"}}),(0,S.jsx)("div",{ref:er,className:(0,y.Z)("excalidraw-eye-dropper-trigger",{selected:kr}),onClick:function(){return dr(function(Dr){return Dr?null:{keepOpenOnAlt:!1,onSelect:function(Yr){return Le(Yr)},colorPickerType:Xe}})},title:"".concat((0,M.t)("labels.eyeDropper")," — ").concat(b.tW.I.toLocaleUpperCase()," or ").concat((0,E.uY)("Alt")," "),children:Ha.$W})]})]})},Wa=e(3379),Gr=e.n(Wa),Fa=e(7795),ro=e.n(Fa),Ua=e(569),bi=e.n(Ua),yi=e(3565),Ka=e.n(yi),xi=e(9216),Ga=e.n(xi),Ya=e(4589),ao=e.n(Ya),Go=e(4269),go={};go.styleTagTransform=ao(),go.setAttributes=Ka(),go.insert=bi().bind(null,"head"),go.domAPI=ro(),go.insertStyleElement=Ga(),Gr()(Go.Z,go),Go.Z&&Go.Z.locals&&Go.Z.locals;var Cn=function(se){var Ae=new Option().style;return Ae.color=se,!!Ae.color},vo=function(se){return(0,E.Qm)(se)?se:Cn("#".concat(se))?"#".concat(se):Cn(se)?se:null},Yo=function(se){var Ae=se.type,Le=se.color,Ne=se.onChange,Xe=se.label,Qe=se.elements,nt=se.palette,$e=nt===void 0?h.HO:nt,It=se.updateData,Jt=(0,Z.KO)(le),Nt=(0,D.Z)(Jt,2)[1],kt=(0,Z.KO)(_n.$,Ea.yE),nr=(0,D.Z)(kt,2),Bt=nr[0],ar=nr[1],Dt=(0,ka.J0)().container,er=(0,ka.Fy)(),pr=(0,S.jsxs)("div",{children:[(0,S.jsx)(g,{children:(0,M.t)("colorPicker.hexCode")}),(0,S.jsx)(un,{color:Le,label:Xe,onChange:function(dr){Ne(dr)},colorPickerType:Ae})]}),yr=(0,v.useRef)(null),kr=function(){var dr,Dr;(dr=yr.current)===null||dr===void 0||(Dr=dr.querySelector(".color-picker-content"))===null||Dr===void 0||Dr.focus()};return(0,S.jsx)(Io,{container:Dt,children:(0,S.jsxs)(Ko,{ref:yr,className:"focus-visible-none","data-prevent-outside-click":!0,onFocusOutside:function(dr){kr(),dr.preventDefault()},onPointerDownOutside:function(dr){Bt&&dr.preventDefault()},onCloseAutoFocus:function(dr){dr.stopPropagation(),dr.preventDefault(),Dt&&!(0,E.y1)(document.activeElement)&&Dt.focus(),It({openPopup:null}),Nt(null)},side:er.editor.isMobile&&!er.viewport.isLandscape?"bottom":"right",align:er.editor.isMobile&&!er.viewport.isLandscape?"center":"start",alignOffset:-16,sideOffset:20,style:{zIndex:"var(--zIndex-layerUI)",backgroundColor:"var(--popup-bg-color)",maxWidth:"208px",maxHeight:window.innerHeight,padding:"12px",borderRadius:"8px",boxSizing:"border-box",overflowY:"auto",boxShadow:"0px 7px 14px rgba(0, 0, 0, 0.05), 0px 0px 3.12708px rgba(0, 0, 0, 0.0798), 0px 0px 0.931014px rgba(0, 0, 0, 0.1702)"},children:[$e?(0,S.jsx)(s,{palette:$e,color:Le,onChange:function(dr){Ne(dr)},onEyeDropperToggle:function(dr){ar(function(Dr){return dr?((Dr=Dr||{keepOpenOnAlt:!0,onSelect:Ne,colorPickerType:Ae}).keepOpenOnAlt=!0,Dr):dr===!1||Dr?null:{keepOpenOnAlt:!1,onSelect:Ne,colorPickerType:Ae}})},onEscape:function(dr){Bt?ar(null):(0,E.s)(dr.target)?kr():It({openPopup:null})},label:Xe,type:Ae,elements:Qe,updateData:It,children:pr}):pr,(0,S.jsx)(vi,{width:20,height:10,style:{fill:"var(--popup-bg-color)",filter:"drop-shadow(rgba(0, 0, 0, 0.05) 0px 3px 2px)"}})]})})},Va=function(se){var Ae=se.label,Le=se.color,Ne=se.type;return(0,S.jsx)(Ba,{type:"button",className:(0,y.Z)("color-picker__button active-color",{"is-transparent":Le==="transparent"||!Le}),"aria-label":Ae,style:Le?{"--swatch-color":Le}:void 0,title:Ne==="elementStroke"?(0,M.t)("labels.showStroke"):(0,M.t)("labels.showBackground"),children:(0,S.jsx)("div",{className:"color-picker__button-outline"})})},wi=function(se){var Ae=se.type,Le=se.color,Ne=se.onChange,Xe=se.label,Qe=se.elements,nt=se.palette,$e=nt===void 0?h.HO:nt,It=se.topPicks,Jt=se.updateData,Nt=se.appState;return(0,S.jsx)("div",{children:(0,S.jsxs)("div",{role:"dialog","aria-modal":"true",className:"color-picker-container",children:[(0,S.jsx)(I,{activeColor:Le,onChange:Ne,type:Ae,topPicks:It}),(0,S.jsx)("div",{style:{width:1,height:"100%",backgroundColor:"var(--default-border-color)",margin:"0 auto"}}),(0,S.jsxs)(gi,{open:Nt.openPopup===Ae,onOpenChange:function(kt){Jt({openPopup:kt?Ae:null})},children:[(0,S.jsx)(Va,{color:Le,label:Xe,type:Ae}),Nt.openPopup===Ae&&(0,S.jsx)(Yo,{type:Ae,color:Le,onChange:Ne,label:Xe,elements:Qe,palette:$e,updateData:Jt})]})]})})}},6887:function(Se,Q,e){e.d(Q,{Z:function(){return f}});var D=e(7169),E=e(2726),y=e(8227),h=e(1300),S=e(3379),I=e.n(S),v=e(7795),n=e.n(v),M=e(569),Z=e.n(M),H=e(3565),W=e.n(H),u=e(9216),U=e.n(u),le=e(4589),de=e.n(le),he=e(9393),pe={};pe.styleTagTransform=de(),pe.setAttributes=W(),pe.insert=Z().bind(null,"head"),pe.domAPI=n(),pe.insertStyleElement=U(),I()(he.Z,pe),he.Z&&he.Z.locals&&he.Z.locals;var oe=e(4932),P=e(3607),$=e(3116),b=e(8242),R=e(453),_=e(1020),g=["onConfirm","onCancel","children","confirmText","cancelText","className"];function O(t,w){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);w&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),l.push.apply(l,a)}return l}function s(t){for(var w=1;w<arguments.length;w++){var l=arguments[w]!=null?arguments[w]:{};w%2?O(Object(l),!0).forEach(function(a){(0,D.Z)(t,a,l[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):O(Object(l)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(l,a))})}return t}var f=function(t){var w=t.onConfirm,l=t.onCancel,a=t.children,c=t.confirmText,m=c===void 0?(0,y.t)("buttons.confirm"):c,z=t.cancelText,j=z===void 0?(0,y.t)("buttons.cancel"):z,k=t.className,x=k===void 0?"":k,N=(0,E.Z)(t,g),G=(0,b.n9)(),ie=(0,P.b9)($.uh,R.yE),V=(0,b.J0)().container;return(0,_.jsxs)(h.V,s(s({onCloseRequest:l,size:"small"},N),{},{className:"confirm-dialog ".concat(x),children:[a,(0,_.jsxs)("div",{className:"confirm-dialog-buttons",children:[(0,_.jsx)(oe.Z,{label:j,onClick:function(){G({openMenu:null}),ie(!1),l(),V?.focus()}}),(0,_.jsx)(oe.Z,{label:m,onClick:function(){G({openMenu:null}),ie(!1),w(),V?.focus()},actionType:"danger"})]})]}))}},1925:function(Se,Q,e){e.d(Q,{O:function(){return $}});var D=e(2726),E=e(7169),y=e(45),h=e(9937),S=e(4572),I=e(100),v=e(8227),n=e(9827),M=e(8242),Z=e(6922),H=e(3116),W=e(5902),u=e(1020),U=e(9787),le=["children"],de=["children","className","onDock","docked"];function he(b,R){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(b);R&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(b,O).enumerable})),_.push.apply(_,g)}return _}function pe(b){for(var R=1;R<arguments.length;R++){var _=arguments[R]!=null?arguments[R]:{};R%2?he(Object(_),!0).forEach(function(g){(0,E.Z)(b,g,_[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(_)):he(Object(_)).forEach(function(g){Object.defineProperty(b,g,Object.getOwnPropertyDescriptor(_,g))})}return b}var oe=(0,Z.$)("DefaultSidebarTrigger",function(b){var R=(0,S.R6)().DefaultSidebarTriggerTunnel;return(0,u.jsx)(R.In,{children:(0,u.jsx)(W.YE.Trigger,pe(pe({},b),{},{className:"default-sidebar-trigger",name:h.Cc.name}))})});oe.displayName="DefaultSidebarTrigger";var P=function(b){var R=b.children,_=(0,D.Z)(b,le),g=(0,S.R6)().DefaultSidebarTabTriggersTunnel;return(0,u.jsx)(g.In,{children:(0,u.jsx)(W.YE.TabTriggers,pe(pe({},_),{},{children:R}))})};P.displayName="DefaultTabTriggers";var $=Object.assign((0,Z.$)("DefaultSidebar",function(b){var R=b.children,_=b.className,g=b.onDock,O=b.docked,s=(0,D.Z)(b,de),f=(0,I.I)(),t=(0,M.n9)(),w=(0,S.R6)().DefaultSidebarTabTriggersTunnel;return(0,U.createElement)(W.YE,pe(pe({},s),{},{name:"default",key:"default",className:(0,y.Z)("default-sidebar",_),docked:O??f.defaultSidebarDockedPreference,onDock:g===!1||!g&&O!=null?void 0:(0,n.Mj)(g,function(l){t({defaultSidebarDockedPreference:l})})}),(0,u.jsxs)(W.YE.Tabs,{children:[(0,u.jsxs)(W.YE.Header,{children:[s.__fallback&&(0,u.jsx)("div",{style:{color:"var(--color-primary)",fontSize:"1.2em",fontWeight:"bold",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",paddingRight:"1em"},children:(0,v.t)("toolBar.library")}),(0,u.jsx)(w.Out,{})]}),(0,u.jsx)(W.YE.Tab,{tab:h.tf,children:(0,u.jsx)(H.rY,{})}),R]}))}),{Trigger:oe,TabTriggers:P})},1300:function(Se,Q,e){e.d(Q,{V:function(){return m}});var D=e(2577),E=e(45),y=e(9787),h=e(8227),S=e(8242),I=e(5491),v=e(3379),n=e.n(v),M=e(7795),Z=e.n(M),H=e(569),W=e.n(H),u=e(3565),U=e.n(u),le=e(9216),de=e.n(le),he=e(4589),pe=e.n(he),oe=e(9482),P={};P.styleTagTransform=pe(),P.setAttributes=U(),P.insert=W().bind(null,"head"),P.domAPI=Z(),P.insertStyleElement=de(),n()(oe.Z,P),oe.Z&&oe.Z.locals&&oe.Z.locals;var $=e(8935),b=e(1404),R=e(6843),_={};_.styleTagTransform=pe(),_.setAttributes=U(),_.insert=W().bind(null,"head"),_.domAPI=Z(),_.insertStyleElement=de(),n()(R.Z,_),R.Z&&R.Z.locals&&R.Z.locals;var g=e(5156),O=e(334),s=e(1020),f=function(z){var j=z.closeOnClickOutside,k=j===void 0||j,x=(0,O.F)({className:"excalidraw-modal-container"});return x?(0,g.createPortal)((0,s.jsxs)("div",{className:(0,E.Z)("Modal",z.className),role:"dialog","aria-modal":"true",onKeyDown:function(N){N.key===I.tW.ESCAPE&&(N.nativeEvent.stopImmediatePropagation(),N.stopPropagation(),z.onCloseRequest())},"aria-labelledby":z.labelledBy,"data-prevent-outside-click":!0,children:[(0,s.jsx)("div",{className:"Modal__background",onClick:k?z.onCloseRequest:void 0}),(0,s.jsx)("div",{className:"Modal__content",style:{"--max-width":"".concat(z.maxWidth,"px")},tabIndex:0,children:z.children})]}),x):null},t=e(9827),w=e(3607),l=e(3116),a=e(453);function c(z){if(z&&typeof z=="number")return z;switch(z){case"small":return 550;case"wide":return 1024;default:return 800}}var m=function(z){var j=function(){var me=(0,y.useState)(null),Ce=(0,D.Z)(me,2),We=Ce[0],Te=Ce[1];return[We,(0,y.useCallback)(function(we){return Te(we)},[])]}(),k=(0,D.Z)(j,2),x=k[0],N=k[1],G=(0,y.useState)(document.activeElement),ie=(0,D.Z)(G,1)[0],V=(0,S.J0)().id,ce=(0,S.Fy)().viewport.isMobile;(0,y.useEffect)(function(){if(x){var me=(0,t.xp)(x);me.length>0&&z.autofocus!==!1&&(me[1]||me[0]).focus();var Ce=function(We){if(We.key===I.tW.TAB){var Te=(0,t.xp)(x),we=document.activeElement,xe=Te.findIndex(function(_e){return _e===we});xe===0&&We.shiftKey?(Te[Te.length-1].focus(),We.preventDefault()):xe!==Te.length-1||We.shiftKey||(Te[0].focus(),We.preventDefault())}};return x.addEventListener("keydown",Ce),function(){return x.removeEventListener("keydown",Ce)}}},[x,z.autofocus]);var te=(0,S.n9)(),L=(0,w.b9)(l.uh,a.yE),re=function(){te({openMenu:null}),L(!1),ie.focus(),z.onCloseRequest()};return(0,s.jsx)(f,{className:(0,E.Z)("Dialog",z.className,{"Dialog--fullscreen":ce}),labelledBy:"dialog-title",maxWidth:c(z.size),onCloseRequest:re,closeOnClickOutside:z.closeOnClickOutside,children:(0,s.jsxs)(b.W,{ref:N,children:[z.title&&(0,s.jsx)("h2",{id:"".concat(V,"-dialog-title"),className:"Dialog__title",children:(0,s.jsx)("span",{className:"Dialog__titleContent",children:z.title})}),(0,s.jsx)("button",{className:"Dialog__close",onClick:re,title:(0,h.t)("buttons.close"),"aria-label":(0,h.t)("buttons.close"),children:ce?$.op:$.Tw}),(0,s.jsx)("div",{className:"Dialog__content",children:z.children})]})})}},4932:function(Se,Q,e){e.d(Q,{Z:function(){return R}});var D=e(7169),E=e(2726),y=e(45),h=e(3379),S=e.n(h),I=e(7795),v=e.n(I),n=e(569),M=e.n(n),Z=e(3565),H=e.n(Z),W=e(9216),u=e.n(W),U=e(4589),le=e.n(U),de=e(6148),he={};he.styleTagTransform=le(),he.setAttributes=H(),he.insert=M().bind(null,"head"),he.domAPI=v(),he.insertStyleElement=u(),S()(de.Z,he),de.Z&&de.Z.locals&&de.Z.locals;var pe=e(8531),oe=e(1020),P=["label","onClick","className","children","actionType","type","isLoading"];function $(_,g){var O=Object.keys(_);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(_);g&&(s=s.filter(function(f){return Object.getOwnPropertyDescriptor(_,f).enumerable})),O.push.apply(O,s)}return O}function b(_){for(var g=1;g<arguments.length;g++){var O=arguments[g]!=null?arguments[g]:{};g%2?$(Object(O),!0).forEach(function(s){(0,D.Z)(_,s,O[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(O)):$(Object(O)).forEach(function(s){Object.defineProperty(_,s,Object.getOwnPropertyDescriptor(O,s))})}return _}var R=function(_){var g=_.label,O=_.onClick,s=_.className,f=_.children,t=_.actionType,w=_.type,l=w===void 0?"button":w,a=_.isLoading,c=(0,E.Z)(_,P),m=t?"Dialog__action-button--".concat(t):"";return(0,oe.jsxs)("button",b(b({className:(0,y.Z)("Dialog__action-button",m,s),type:l,"aria-label":g,onClick:O},c),{},{children:[f&&(0,oe.jsx)("div",{style:a?{visibility:"hidden"}:{},children:f}),(0,oe.jsx)("div",{style:a?{visibility:"hidden"}:{},children:g}),a&&(0,oe.jsx)("div",{style:{position:"absolute",inset:0},children:(0,oe.jsx)(pe.Z,{})})]}))}},8924:function(Se,Q,e){e.d(Q,{p:function(){return f},$:function(){return s}});var D=e(3607),E=e(9787),y=e(5156),h=e(9240),S=e(9937),I=e(100),v=e(334),n=e(1901),M=e(5491),Z=e(4105),H=e(8242),W=e(3379),u=e.n(W),U=e(7795),le=e.n(U),de=e(569),he=e.n(de),pe=e(3565),oe=e.n(pe),P=e(9216),$=e.n(P),b=e(4589),R=e.n(b),_=e(7522),g={};g.styleTagTransform=R(),g.setAttributes=oe(),g.insert=he().bind(null,"head"),g.domAPI=le(),g.insertStyleElement=$(),u()(_.Z,g),_.Z&&_.Z.locals&&_.Z.locals;var O=e(1020),s=(0,D.cn)(null),f=function(t){var w=t.onCancel,l=t.onChange,a=t.onSelect,c=t.colorPickerType,m=(0,v.F)({className:"excalidraw-eye-dropper-backdrop",parentSelector:".excalidraw-eye-dropper-container"}),z=(0,I.I)(),j=(0,H.bd)(),k=(0,H.qD)(),x=(0,Z.eD)(j,z),N=function(V){var ce=(0,E.useRef)(V);return Object.assign(ce.current,V),ce.current}({app:k,onCancel:w,onChange:l,onSelect:a,selectedElements:x}),G=(0,H.J0)().container;(0,E.useEffect)(function(){var V=ie.current;if(V&&k.canvas&&m){var ce=!1,te=k.canvas.getContext("2d"),L=function(we){var xe=we.clientX,_e=we.clientY,Oe=te.getImageData((xe-z.offsetLeft)*window.devicePixelRatio,(_e-z.offsetTop)*window.devicePixelRatio,1,1).data;return(0,h.vq)(Oe[0],Oe[1],Oe[2])},re=function(we){var xe=we.clientX,_e=we.clientY,Oe=we.altKey;V.style.top="".concat(_e+20,"px"),V.style.left="".concat(xe+20,"px");var J=L({clientX:xe,clientY:_e});ce&&N.onChange(c,J,N.selectedElements,{altKey:Oe}),V.style.background=J},me=function(){N.onCancel()},Ce=function(we){ce=!0,we.stopImmediatePropagation()},We=function(we){ce=!1,G?.focus(),we.stopImmediatePropagation(),we.preventDefault(),function(xe,_e){N.onSelect(xe,_e)}(L(we),we)},Te=function(we){we.key===M.tW.ESCAPE&&(we.preventDefault(),we.stopImmediatePropagation(),me())};return m.tabIndex=-1,m.focus(),re({clientX:N.app.lastViewportPosition.x,clientY:N.app.lastViewportPosition.y,altKey:!1}),m.addEventListener(S.Ks.KEYDOWN,Te),m.addEventListener(S.Ks.POINTER_DOWN,Ce),m.addEventListener(S.Ks.POINTER_UP,We),window.addEventListener("pointermove",re,{passive:!0}),window.addEventListener(S.Ks.BLUR,me),function(){ce=!1,m.removeEventListener(S.Ks.KEYDOWN,Te),m.removeEventListener(S.Ks.POINTER_DOWN,Ce),m.removeEventListener(S.Ks.POINTER_UP,We),window.removeEventListener("pointermove",re),window.removeEventListener(S.Ks.BLUR,me)}}},[N,k.canvas,m,c,G,z.offsetLeft,z.offsetTop]);var ie=(0,E.useRef)(null);return(0,n.O)(ie,function(){w()},function(V){return!!V.target.closest(".excalidraw-eye-dropper-trigger, .excalidraw-eye-dropper-backdrop")}),m?(0,y.createPortal)((0,O.jsx)("div",{ref:ie,className:"excalidraw-eye-dropper-preview"}),m):null}},1404:function(Se,Q,e){e.d(Q,{W:function(){return b}});var D=e(7169),E=e(3379),y=e.n(E),h=e(7795),S=e.n(h),I=e(569),v=e.n(I),n=e(3565),M=e.n(n),Z=e(9216),H=e.n(Z),W=e(4589),u=e.n(W),U=e(7369),le={};le.styleTagTransform=u(),le.setAttributes=M(),le.insert=v().bind(null,"head"),le.domAPI=S(),le.insertStyleElement=H(),y()(U.Z,le),U.Z&&U.Z.locals&&U.Z.locals;var de=e(9787),he=e.n(de),pe=e(45),oe=e(1020);function P(R,_){var g=Object.keys(R);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(R);_&&(O=O.filter(function(s){return Object.getOwnPropertyDescriptor(R,s).enumerable})),g.push.apply(g,O)}return g}function $(R){for(var _=1;_<arguments.length;_++){var g=arguments[_]!=null?arguments[_]:{};_%2?P(Object(g),!0).forEach(function(O){(0,D.Z)(R,O,g[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(g)):P(Object(g)).forEach(function(O){Object.defineProperty(R,O,Object.getOwnPropertyDescriptor(g,O))})}return R}var b=he().forwardRef(function(R,_){var g=R.children,O=R.padding,s=R.className,f=R.style;return(0,oe.jsx)("div",{className:(0,pe.Z)("Island",s),style:$({"--padding":O},f),ref:_,children:g})})},3116:function(Se,Q,e){e.d(Q,{rY:function(){return Ft},uh:function(){return St}});var D=e(6655),E=e(1930),y=e(8950),h=e(2577),S=e(2975),I=e.n(S),v=e(9787),n=e.n(v),M=e(9326),Z=e(8227),H=e(4643),W=e(7169),u=e(4419),U=e(9827),le=e(2540),de=e(9937),he=e(8531),pe=e(5742),oe=e(1020),P=function(Ve){var bt=Ve.theme,at=Ve.id,mt=Ve.libraryReturnUrl||window.location.origin+window.location.pathname;return(0,oe.jsx)("a",{className:"library-menu-browse-button",href:"".concat("https://libraries.excalidraw.com","?target=").concat(window.name||"_blank","&referrer=").concat(mt,"&useHash=true&token=").concat(at,"&theme=").concat(bt,"&version=").concat(de.Kr.excalidrawLibrary),target:"_excalidraw_libraries",children:(0,Z.t)("labels.libraries")})},$=e(45),b=function(Ve){var bt=Ve.libraryReturnUrl,at=Ve.theme,mt=Ve.id,ut=Ve.style,Ot=Ve.children,Pt=Ve.className;return(0,oe.jsxs)("div",{className:(0,$.Z)("library-menu-control-buttons",Pt),style:ut,children:[(0,oe.jsx)(P,{id:mt,libraryReturnUrl:bt,theme:at}),Ot]})},R=e(9247),_=e(453),g=e(8242),O=e(8935),s=e(1512),f=e(6548),t=e(3607),w=e(6887),l=e(5284),a=e(1300),c=e(507),m=e(5796),z=e(4932),j=e(3379),k=e.n(j),x=e(7795),N=e.n(x),G=e(569),ie=e.n(G),V=e(3565),ce=e.n(V),te=e(9216),L=e.n(te),re=e(4589),me=e.n(re),Ce=e(7589),We={};We.styleTagTransform=me(),We.setAttributes=ce(),We.insert=ie().bind(null,"head"),We.domAPI=N(),We.insertStyleElement=L(),k()(Ce.Z,We),Ce.Z&&Ce.Z.locals&&Ce.Z.locals;function Te(Ve,bt){var at=Object.keys(Ve);if(Object.getOwnPropertySymbols){var mt=Object.getOwnPropertySymbols(Ve);bt&&(mt=mt.filter(function(ut){return Object.getOwnPropertyDescriptor(Ve,ut).enumerable})),at.push.apply(at,mt)}return at}function we(Ve){for(var bt=1;bt<arguments.length;bt++){var at=arguments[bt]!=null?arguments[bt]:{};bt%2?Te(Object(at),!0).forEach(function(mt){(0,W.Z)(Ve,mt,at[mt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ve,Object.getOwnPropertyDescriptors(at)):Te(Object(at)).forEach(function(mt){Object.defineProperty(Ve,mt,Object.getOwnPropertyDescriptor(at,mt))})}return Ve}function xe(Ve,bt){var at=typeof Symbol<"u"&&Ve[Symbol.iterator]||Ve["@@iterator"];if(!at){if(Array.isArray(Ve)||(at=function(Ct,ur){if(Ct){if(typeof Ct=="string")return _e(Ct,ur);var rr=Object.prototype.toString.call(Ct).slice(8,-1);if(rr==="Object"&&Ct.constructor&&(rr=Ct.constructor.name),rr==="Map"||rr==="Set")return Array.from(Ct);if(rr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rr))return _e(Ct,ur)}}(Ve))||bt&&Ve&&typeof Ve.length=="number"){at&&(Ve=at);var mt=0,ut=function(){};return{s:ut,n:function(){return mt>=Ve.length?{done:!0}:{done:!1,value:Ve[mt++]}},e:function(Ct){throw Ct},f:ut}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ot,Pt=!0,Gt=!1;return{s:function(){at=at.call(Ve)},n:function(){var Ct=at.next();return Pt=Ct.done,Ct},e:function(Ct){Gt=!0,Ot=Ct},f:function(){try{Pt||at.return==null||at.return()}finally{if(Gt)throw Ot}}}}function _e(Ve,bt){(bt==null||bt>Ve.length)&&(bt=Ve.length);for(var at=0,mt=new Array(bt);at<bt;at++)mt[at]=Ve[at];return mt}var Oe="publish-library-data",J=function(){var Ve=(0,y.Z)(I().mark(function bt(at){var mt,ut,Ot,Pt,Gt,Ct,ur,rr,Tr,ot,Rt,_t,At,br,xr,jr,Ar;return I().wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:mt=6,ut=128,Ot=Math.round(ut/16),Pt=Math.max(Math.round(ut/64),2),Gt=(0,U.yo)(at,mt),(Ct=document.createElement("canvas")).width=Gt[0].length*ut+(Gt[0].length+1)*(2*Ot)-2*Ot,Ct.height=Gt.length*ut+(Gt.length+1)*(2*Ot)-2*Ot,(ur=Ct.getContext("2d")).fillStyle=l.white,ur.fillRect(0,0,Ct.width,Ct.height),rr=xe(at.entries()),fr.prev=12,rr.s();case 14:if((Tr=rr.n()).done){fr.next=28;break}return ot=(0,h.Z)(Tr.value,2),Rt=ot[0],_t=ot[1],fr.next=18,(0,c.NL)({elements:_t.elements,files:null,maxWidthOrHeight:ut});case 18:At=fr.sent,br=At.width,xr=At.height,jr=Math.floor(Rt/mt)*(ut+2*Ot),Ar=Rt%mt*(ut+2*Ot),ur.drawImage(At,Ar+(ut-br)/2+Ot,jr+(ut-xr)/2+Ot),ur.lineWidth=Pt,ur.strokeStyle=l.gray[4],ur.strokeRect(Ar+Ot/2,jr+Ot/2,ut+Ot,ut+Ot);case 26:fr.next=14;break;case 28:fr.next=33;break;case 30:fr.prev=30,fr.t0=fr.catch(12),rr.e(fr.t0);case 33:return fr.prev=33,rr.f(),fr.finish(33);case 36:return fr.t1=m.Tu,fr.t2=File,fr.next=40,(0,m._c)(Ct);case 40:return fr.t3=fr.sent,fr.t4=[fr.t3],fr.t5={type:de.LO.png},fr.t6=new fr.t2(fr.t4,"preview",fr.t5),fr.t7={outputType:de.LO.jpg,maxWidthOrHeight:5e3},fr.next=47,(0,fr.t1)(fr.t6,fr.t7);case 47:return fr.abrupt("return",fr.sent);case 48:case"end":return fr.stop()}},bt,null,[[12,30,33,36]])}));return function(bt){return Ve.apply(this,arguments)}}(),ke=function(Ve){var bt=Ve.libItem,at=Ve.appState,mt=Ve.index,ut=Ve.onChange,Ot=Ve.onRemove,Pt=(0,v.useRef)(null),Gt=(0,v.useRef)(null);return(0,v.useEffect)(function(){var Ct=Pt.current;Ct&&(0,y.Z)(I().mark(function ur(){var rr;return I().wrap(function(Tr){for(;;)switch(Tr.prev=Tr.next){case 0:return Tr.next=2,(0,c.$D)({elements:bt.elements,appState:we(we({},at),{},{viewBackgroundColor:l.white,exportBackground:!0}),files:null});case 2:rr=Tr.sent,Ct.innerHTML=rr.outerHTML;case 4:case"end":return Tr.stop()}},ur)}))()},[bt.elements,at]),(0,oe.jsxs)("div",{className:"single-library-item",children:[bt.status==="published"&&(0,oe.jsx)("span",{className:"single-library-item-status",children:(0,Z.t)("labels.statusPublished")}),(0,oe.jsx)("div",{ref:Pt,className:"single-library-item__svg"}),(0,oe.jsx)(s.V,{"aria-label":(0,Z.t)("buttons.remove"),type:"button",icon:O.Tw,className:"single-library-item--remove",onClick:Ot.bind(null,bt.id),title:(0,Z.t)("buttons.remove")}),(0,oe.jsxs)("div",{style:{display:"flex",margin:"0.8rem 0",width:"100%",fontSize:"14px",fontWeight:500,flexDirection:"column"},children:[(0,oe.jsxs)("label",{style:{display:"flex",justifyContent:"space-between",flexDirection:"column"},children:[(0,oe.jsxs)("div",{style:{padding:"0.5em 0"},children:[(0,oe.jsx)("span",{style:{fontWeight:500,color:l.gray[6]},children:(0,Z.t)("publishDialog.itemName")}),(0,oe.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,oe.jsx)("input",{type:"text",ref:Gt,style:{width:"80%",padding:"0.2rem"},defaultValue:bt.name,placeholder:"Item name",onChange:function(Ct){ut(Ct.target.value,mt)}})]}),(0,oe.jsx)("span",{className:"error",children:bt.error})]})]})},q=function(Ve){var bt=Ve.onClose,at=Ve.libraryItems,mt=Ve.appState,ut=Ve.onSuccess,Ot=Ve.onError,Pt=Ve.updateItemsInStorage,Gt=Ve.onRemove,Ct=(0,v.useState)({authorName:"",githubHandle:"",name:"",description:"",twitterHandle:"",website:""}),ur=(0,h.Z)(Ct,2),rr=ur[0],Tr=ur[1],ot=(0,v.useState)(!1),Rt=(0,h.Z)(ot,2),_t=Rt[0],At=Rt[1];(0,v.useEffect)(function(){var ir=function(){try{var Qt=localStorage.getItem(Oe);if(Qt)return JSON.parse(Qt)}catch(_r){console.error(_r)}return null}();ir&&Tr(ir)},[]);var br=(0,v.useState)(at.slice()),xr=(0,h.Z)(br,2),jr=xr[0],Ar=xr[1];(0,v.useEffect)(function(){Ar(at.slice())},[at]);var fr,dt=function(ir){Tr(we(we({},rr),{},(0,W.Z)({},ir.target.name,ir.target.value)))},ft=function(){var ir=(0,y.Z)(I().mark(function Qt(_r){var sr,mr,Zr,or,lr,gr,cr;return I().wrap(function(Hr){for(;;)switch(Hr.prev=Hr.next){case 0:if(_r.preventDefault(),At(!0),sr=[],mr=!1,jr.forEach(function(vr){var Rr="";vr.name||(Rr=(0,Z.t)("publishDialog.errors.required"),mr=!0),sr.push(we(we({},vr),{},{error:Rr}))}),!mr){Hr.next=9;break}return Ar(sr),At(!1),Hr.abrupt("return");case 9:return Hr.next=11,J(jr);case 11:Zr=Hr.sent,or={type:de.r8.excalidrawLibrary,version:de.Kr.excalidrawLibrary,source:de.pb,libraryItems:jr},lr=JSON.stringify(or,null,2),gr=new Blob([lr],{type:"application/json"}),(cr=new FormData).append("excalidrawLib",gr),cr.append("previewImage",Zr),cr.append("previewImageType",Zr.type),cr.append("title",rr.name),cr.append("authorName",rr.authorName),cr.append("githubHandle",rr.githubHandle),cr.append("name",rr.name),cr.append("description",rr.description),cr.append("twitterHandle",rr.twitterHandle),cr.append("website",rr.website),fetch("".concat("https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries","/submit"),{method:"post",body:cr}).then(function(vr){return vr.ok?vr.json().then(function(Rr){var an=Rr.url;localStorage.removeItem(Oe),ut({url:an,authorName:rr.authorName,items:jr})}):vr.json().catch(function(){throw new Error(vr.statusText||"something went wrong")}).then(function(Rr){throw new Error(Rr.message||vr.statusText||"something went wrong")})},function(vr){console.error(vr),Ot(vr),At(!1)}).catch(function(vr){console.error(vr),Ot(vr),At(!1)});case 27:case"end":return Hr.stop()}},Qt)}));return function(Qt){return ir.apply(this,arguments)}}(),vt=(0,v.useCallback)(function(){Pt(jr),function(ir){try{localStorage.setItem(Oe,JSON.stringify(ir))}catch(Qt){console.error(Qt)}}(rr),bt()},[jr,bt,Pt,rr]),Et=!!at.length,tr=at.some(function(ir){return ir.status==="published"});return(0,oe.jsx)(a.V,{onCloseRequest:vt,title:(0,Z.t)("publishDialog.title"),className:"publish-library",children:Et?(0,oe.jsxs)("form",{onSubmit:ft,children:[(0,oe.jsx)("div",{className:"publish-library-note",children:(0,oe.jsx)(R.Z,{i18nKey:"publishDialog.noteDescription",link:function(ir){return(0,oe.jsx)("a",{href:"https://libraries.excalidraw.com",target:"_blank",rel:"noopener noreferrer",children:ir})}})}),(0,oe.jsx)("span",{className:"publish-library-note",children:(0,oe.jsx)(R.Z,{i18nKey:"publishDialog.noteGuidelines",link:function(ir){return(0,oe.jsx)("a",{href:"https://github.com/excalidraw/excalidraw-libraries#guidelines",target:"_blank",rel:"noopener noreferrer",children:ir})}})}),(0,oe.jsx)("div",{className:"publish-library-note",children:(0,Z.t)("publishDialog.noteItems")}),tr&&(0,oe.jsx)("span",{className:"publish-library-note publish-library-warning",children:(0,Z.t)("publishDialog.republishWarning")}),(fr=[],jr.forEach(function(ir,Qt){fr.push((0,oe.jsx)("div",{className:"single-library-item-wrapper",children:(0,oe.jsx)(ke,{libItem:ir,appState:mt,index:Qt,onChange:function(_r,sr){var mr=jr.slice();mr[sr].name=_r,Ar(mr)},onRemove:Gt})},Qt))}),(0,oe.jsx)("div",{className:"selected-library-items",children:fr})),(0,oe.jsxs)("div",{className:"publish-library__fields",children:[(0,oe.jsxs)("label",{children:[(0,oe.jsxs)("div",{children:[(0,oe.jsx)("span",{children:(0,Z.t)("publishDialog.libraryName")}),(0,oe.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,oe.jsx)("input",{type:"text",name:"name",required:!0,value:rr.name,onChange:dt,placeholder:(0,Z.t)("publishDialog.placeholder.libraryName")})]}),(0,oe.jsxs)("label",{style:{alignItems:"flex-start"},children:[(0,oe.jsxs)("div",{children:[(0,oe.jsx)("span",{children:(0,Z.t)("publishDialog.libraryDesc")}),(0,oe.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,oe.jsx)("textarea",{name:"description",rows:4,required:!0,value:rr.description,onChange:dt,placeholder:(0,Z.t)("publishDialog.placeholder.libraryDesc")})]}),(0,oe.jsxs)("label",{children:[(0,oe.jsxs)("div",{children:[(0,oe.jsx)("span",{children:(0,Z.t)("publishDialog.authorName")}),(0,oe.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,oe.jsx)("input",{type:"text",name:"authorName",required:!0,value:rr.authorName,onChange:dt,placeholder:(0,Z.t)("publishDialog.placeholder.authorName")})]}),(0,oe.jsxs)("label",{children:[(0,oe.jsx)("span",{children:(0,Z.t)("publishDialog.githubUsername")}),(0,oe.jsx)("input",{type:"text",name:"githubHandle",value:rr.githubHandle,onChange:dt,placeholder:(0,Z.t)("publishDialog.placeholder.githubHandle")})]}),(0,oe.jsxs)("label",{children:[(0,oe.jsx)("span",{children:(0,Z.t)("publishDialog.twitterUsername")}),(0,oe.jsx)("input",{type:"text",name:"twitterHandle",value:rr.twitterHandle,onChange:dt,placeholder:(0,Z.t)("publishDialog.placeholder.twitterHandle")})]}),(0,oe.jsxs)("label",{children:[(0,oe.jsx)("span",{children:(0,Z.t)("publishDialog.website")}),(0,oe.jsx)("input",{type:"text",name:"website",pattern:"https?://.+",title:(0,Z.t)("publishDialog.errors.website"),value:rr.website,onChange:dt,placeholder:(0,Z.t)("publishDialog.placeholder.website")})]}),(0,oe.jsx)("span",{className:"publish-library-note",children:(0,oe.jsx)(R.Z,{i18nKey:"publishDialog.noteLicense",link:function(ir){return(0,oe.jsx)("a",{href:"https://github.com/excalidraw/excalidraw-libraries/blob/main/LICENSE",target:"_blank",rel:"noopener noreferrer",children:ir})}})})]}),(0,oe.jsxs)("div",{className:"publish-library__buttons",children:[(0,oe.jsx)(z.Z,{label:(0,Z.t)("buttons.cancel"),onClick:vt,"data-testid":"cancel-clear-canvas-button"}),(0,oe.jsx)(z.Z,{type:"submit",label:(0,Z.t)("buttons.submit"),actionType:"primary",isLoading:_t})]})]}):(0,oe.jsx)("p",{style:{padding:"1em",textAlign:"center",fontWeight:500},children:(0,Z.t)("publishDialog.atleastOneLibItem")})})},o=e(7104),i=e(100),p=e(5832),B=function(Ve,bt){return Ve.filter(function(at){return bt.includes(at.id)})},A=function(Ve){var bt,at,mt=Ve.setAppState,ut=Ve.selectedItems,Ot=Ve.library,Pt=Ve.onRemoveFromLibrary,Gt=Ve.resetLibrary,Ct=Ve.onSelectItems,ur=Ve.appState,rr=Ve.className,Tr=(0,t.KO)(M.rF,_.yE),ot=(0,h.Z)(Tr,1)[0],Rt=(0,t.KO)(St,_.yE),_t=(0,h.Z)(Rt,2),At=_t[0],br=_t[1],xr=(0,v.useState)(!1),jr=(0,h.Z)(xr,2),Ar=jr[0],fr=jr[1],dt=!!ut.length,ft=dt?ot.libraryItems.filter(function(cr){return ut.includes(cr.id)}):ot.libraryItems,vt=dt?(0,Z.t)("buttons.remove"):(0,Z.t)("buttons.resetLibrary"),Et=(0,v.useState)(!1),tr=(0,h.Z)(Et,2),ir=tr[0],Qt=tr[1],_r=(0,v.useState)(null),sr=(0,h.Z)(_r,2),mr=sr[0],Zr=sr[1],or=(0,v.useCallback)(function(){return(0,oe.jsxs)(a.V,{onCloseRequest:function(){return Zr(null)},title:(0,Z.t)("publishSuccessDialog.title"),className:"publish-library-success",size:"small",children:[(0,oe.jsx)("p",{children:(0,oe.jsx)(R.Z,{i18nKey:"publishSuccessDialog.content",authorName:mr.authorName,link:function(cr){return(0,oe.jsx)("a",{href:mr?.url,target:"_blank",rel:"noopener noreferrer",children:cr})}})}),(0,oe.jsx)(s.V,{type:"button",title:(0,Z.t)("buttons.close"),"aria-label":(0,Z.t)("buttons.close"),label:(0,Z.t)("buttons.close"),onClick:function(){return Zr(null)},"data-testid":"publish-library-success-close",className:"publish-library-success-close"})]})},[Zr,mr]),lr=function(){var cr=(0,y.Z)(I().mark(function Hr(){return I().wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return vr.prev=0,vr.next=3,Ot.updateLibrary({libraryItems:(0,f.I$)({description:"Excalidraw library files"}),merge:!0,openLibraryMenu:!0});case 3:vr.next=11;break;case 5:if(vr.prev=5,vr.t0=vr.catch(0),(vr.t0===null||vr.t0===void 0?void 0:vr.t0.name)!=="AbortError"){vr.next=10;break}return console.warn(vr.t0),vr.abrupt("return");case 10:mt({errorMessage:(0,Z.t)("errors.importLibraryError")});case 11:case"end":return vr.stop()}},Hr,null,[[0,5]])}));return function(){return cr.apply(this,arguments)}}(),gr=function(){var cr=(0,y.Z)(I().mark(function Hr(){var vr;return I().wrap(function(Rr){for(;;)switch(Rr.prev=Rr.next){case 0:if(!dt){Rr.next=4;break}Rr.t0=ft,Rr.next=7;break;case 4:return Rr.next=6,Ot.getLatestLibrary();case 6:Rr.t0=Rr.sent;case 7:vr=Rr.t0,(0,u.t1)(vr).catch(U.FG).catch(function(an){mt({errorMessage:an.message})});case 9:case"end":return Rr.stop()}},Hr)}));return function(){return cr.apply(this,arguments)}}();return(0,oe.jsxs)("div",{className:(0,$.Z)("library-menu-dropdown-container",rr),children:[(0,oe.jsxs)(o.Z,{open:At,children:[(0,oe.jsx)(o.Z.Trigger,{onToggle:function(){return br(!At)},children:O.YA}),(0,oe.jsxs)(o.Z.Content,{onClickOutside:function(){return br(!1)},onSelect:function(){return br(!1)},className:"library-menu",children:[!dt&&(0,oe.jsx)(o.Z.Item,{onSelect:lr,icon:O.Tl,"data-testid":"lib-dropdown--load",children:(0,Z.t)("buttons.load")}),!!ft.length&&(0,oe.jsx)(o.Z.Item,{onSelect:gr,icon:O.Hy,"data-testid":"lib-dropdown--export",children:(0,Z.t)("buttons.export")}),!!ft.length&&(0,oe.jsx)(o.Z.Item,{onSelect:function(){return fr(!0)},icon:O.XH,children:vt}),dt&&(0,oe.jsx)(o.Z.Item,{icon:O.Nw,onSelect:function(){return Qt(!0)},"data-testid":"lib-dropdown--remove",children:(0,Z.t)("buttons.publishLibrary")})]})]}),ut.length>0&&(0,oe.jsx)("div",{className:"library-actions-counter",children:ut.length}),Ar&&(bt=ut.length?(0,Z.t)("alerts.removeItemsFromsLibrary",{count:ut.length}):(0,Z.t)("alerts.resetLibrary"),at=ut.length?(0,Z.t)("confirmDialog.removeItemsFromLib"):(0,Z.t)("confirmDialog.resetLibrary"),(0,oe.jsx)(w.Z,{onConfirm:function(){ut.length?Pt():Gt(),fr(!1)},onCancel:function(){fr(!1)},title:at,children:(0,oe.jsx)("p",{children:bt})})),ir&&(0,oe.jsx)(q,{onClose:function(){return Qt(!1)},libraryItems:B(ot.libraryItems,ut),appState:ur,onSuccess:function(cr){return function(Hr,vr){Qt(!1),Zr({url:Hr.url,authorName:Hr.authorName});var Rr=vr.slice();Rr.forEach(function(an){ut.includes(an.id)&&(an.status="published")}),Ot.setLibrary(Rr)}(cr,ot.libraryItems)},onError:function(cr){return window.alert(cr)},updateItemsInStorage:function(){return Ot.setLibrary(ot.libraryItems)},onRemove:function(cr){return Ct(ut.filter(function(Hr){return Hr!==cr}))}}),mr&&or()]})},X=function(Ve){var bt=Ve.selectedItems,at=Ve.onSelectItems,mt=Ve.className,ut=(0,g.qD)().library,Ot=(0,p.yT)(),Pt=Ot.clearLibraryCache,Gt=Ot.deleteItemsFromLibraryCache,Ct=(0,i.I)(),ur=(0,g.n9)(),rr=(0,t.KO)(M.rF,_.yE),Tr=(0,h.Z)(rr,1)[0],ot=function(){var Rt=(0,y.Z)(I().mark(function _t(At){var br;return I().wrap(function(xr){for(;;)switch(xr.prev=xr.next){case 0:br=At.filter(function(jr){return!bt.includes(jr.id)}),ut.setLibrary(br).catch(function(){ur({errorMessage:(0,Z.t)("alerts.errorRemovingFromLibrary")})}),Gt(bt),at([]);case 4:case"end":return xr.stop()}},_t)}));return function(_t){return Rt.apply(this,arguments)}}();return(0,oe.jsx)(A,{appState:Ct,setAppState:ur,selectedItems:bt,onSelectItems:at,library:ut,onRemoveFromLibrary:function(){return ot(Tr.libraryItems)},resetLibrary:function(){ut.resetLibrary(),Pt()},className:mt})},Y=e(5644),ee={};ee.styleTagTransform=me(),ee.setAttributes=ce(),ee.insert=ie().bind(null,"head"),ee.domAPI=N(),ee.insertStyleElement=L(),k()(Y.Z,ee),Y.Z&&Y.Z.locals&&Y.Z.locals;var ge=e(6238),be=(0,v.memo)(function(Ve){var bt=Ve.id,at=Ve.elements,mt=Ve.isPending,ut=Ve.onClick,Ot=Ve.selected,Pt=Ve.onToggle,Gt=Ve.onDrag,Ct=Ve.svgCache,ur=(0,v.useRef)(null),rr=(0,p.mF)(bt,at,Ct);(0,v.useEffect)(function(){var xr=ur.current;if(xr)return rr&&(xr.innerHTML=rr.outerHTML),function(){xr.innerHTML=""}},[rr]);var Tr=(0,v.useState)(!1),ot=(0,h.Z)(Tr,2),Rt=ot[0],_t=ot[1],At=(0,g.Fy)().editor.isMobile,br=mt&&(0,oe.jsx)("div",{className:"library-unit__adder",children:O.pO});return(0,oe.jsxs)("div",{className:(0,$.Z)("library-unit",{"library-unit__active":at,"library-unit--hover":at&&Rt,"library-unit--selected":Ot,"library-unit--skeleton":!rr}),onMouseEnter:function(){return _t(!0)},onMouseLeave:function(){return _t(!1)},children:[(0,oe.jsx)("div",{className:(0,$.Z)("library-unit__dragger",{"library-unit__pulse":!!mt}),ref:ur,draggable:!!at,onClick:at||mt?function(xr){bt&&xr.shiftKey?Pt(bt,xr):ut(bt)}:void 0,onDragStart:function(xr){bt?(_t(!1),Gt(bt,xr)):xr.preventDefault()}}),br,bt&&at&&(Rt||At||Ot)&&(0,oe.jsx)(ge.o,{checked:Ot,onChange:function(xr,jr){return Pt(bt,jr)},className:"library-unit__checkbox"})]})}),Re=function(){return(0,oe.jsx)("div",{className:"library-unit library-unit--skeleton"})},Ze=n().useTransition||function(){return[!1,(0,v.useCallback)(function(Ve){return Ve()},[])]},Be=function(Ve){var bt=Ve.children;return(0,oe.jsx)("div",{className:"library-menu-items-container__grid",children:bt})},Ie=(0,v.memo)(function(Ve){var bt=Ve.items,at=Ve.onItemSelectToggle,mt=Ve.onItemDrag,ut=Ve.isItemSelected,Ot=Ve.onClick,Pt=Ve.svgCache,Gt=Ve.itemsRenderedPerBatch,Ct=Ze(),ur=(0,h.Z)(Ct,2)[1],rr=(0,v.useState)(0),Tr=(0,h.Z)(rr,2),ot=Tr[0],Rt=Tr[1];return(0,v.useEffect)(function(){ot<bt.length&&ur(function(){Rt(ot+Gt)})},[ot,bt.length,ur,Gt]),(0,oe.jsx)(oe.Fragment,{children:bt.map(function(_t,At){var br;return At<ot?(0,oe.jsx)(be,{elements:_t?.elements,isPending:!(_t!=null&&_t.id||_t==null||!_t.elements),onClick:Ot,svgCache:Pt,id:_t?.id,selected:ut(_t.id),onToggle:at,onDrag:mt},(br=_t?.id)!==null&&br!==void 0?br:At):(0,oe.jsx)(Re,{},At)})})}),Ke=e(200),Ye=e.n(Ke),tt=(0,t.cn)(0),ue=e(6440),ve={};ve.styleTagTransform=me(),ve.setAttributes=ce(),ve.insert=ie().bind(null,"head"),ve.domAPI=N(),ve.insertStyleElement=L(),k()(ue.Z,ve),ue.Z&&ue.Z.locals&&ue.Z.locals;function De(Ve,bt){var at=Object.keys(Ve);if(Object.getOwnPropertySymbols){var mt=Object.getOwnPropertySymbols(Ve);bt&&(mt=mt.filter(function(ut){return Object.getOwnPropertyDescriptor(Ve,ut).enumerable})),at.push.apply(at,mt)}return at}function He(Ve){for(var bt=1;bt<arguments.length;bt++){var at=arguments[bt]!=null?arguments[bt]:{};bt%2?De(Object(at),!0).forEach(function(mt){(0,W.Z)(Ve,mt,at[mt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ve,Object.getOwnPropertyDescriptors(at)):De(Object(at)).forEach(function(mt){Object.defineProperty(Ve,mt,Object.getOwnPropertyDescriptor(at,mt))})}return Ve}function Je(Ve){var bt=Ve.isLoading,at=Ve.libraryItems,mt=Ve.onAddToLibrary,ut=Ve.onInsertLibraryItems,Ot=Ve.pendingElements,Pt=Ve.theme,Gt=Ve.id,Ct=Ve.libraryReturnUrl,ur=Ve.onSelectItems,rr=Ve.selectedItems,Tr=(0,v.useRef)(null),ot=function(sr){var mr=(0,t.KO)(tt),Zr=(0,h.Z)(mr,2),or=Zr[0],lr=Zr[1];return(0,v.useEffect)(function(){var gr=sr.current;if(gr){var cr=Ye()(function(){var Hr=gr.scrollTop;lr(Hr)},200);return gr.addEventListener("scroll",cr),function(){cr.cancel(),gr.removeEventListener("scroll",cr)}}},[sr,lr]),or}(Tr);(0,v.useEffect)(function(){var sr;ot>0&&((sr=Tr.current)===null||sr===void 0||sr.scrollTo(0,ot))},[]);var Rt=(0,p.yT)().svgCache,_t=(0,v.useMemo)(function(){return at.filter(function(sr){return sr.status!=="published"})},[at]),At=(0,v.useMemo)(function(){return at.filter(function(sr){return sr.status==="published"})},[at]),br=!at.length&&!Ot.length,xr=!Ot.length&&!_t.length&&!At.length,jr=(0,v.useState)(null),Ar=(0,h.Z)(jr,2),fr=Ar[0],dt=Ar[1],ft=(0,v.useCallback)(function(sr,mr){var Zr=!rr.includes(sr),or=[].concat((0,E.Z)(_t),(0,E.Z)(At));if(Zr){if(mr.shiftKey&&fr){var lr=or.findIndex(function(vr){return vr.id===fr}),gr=or.findIndex(function(vr){return vr.id===sr});if(lr===-1||gr===-1)return void ur([].concat((0,E.Z)(rr),[sr]));var cr=(0,U.xn)(rr),Hr=or.reduce(function(vr,Rr,an){return(an>=lr&&an<=gr||cr.has(Rr.id))&&vr.push(Rr.id),vr},[]);ur(Hr)}else ur([].concat((0,E.Z)(rr),[sr]));dt(sr)}else dt(null),ur(rr.filter(function(vr){return vr!==sr}))},[fr,ur,At,rr,_t]),vt=(0,v.useCallback)(function(sr){return(rr.includes(sr)?at.filter(function(mr){return rr.includes(mr.id)}):at.filter(function(mr){return mr.id===sr})).map(function(mr){return He(He({},mr),{},{elements:(0,pe._N)(mr.elements,{randomizeSeed:!0})})})},[at,rr]),Et=(0,v.useCallback)(function(sr,mr){mr.dataTransfer.setData(de.LO.excalidrawlib,(0,u.NI)(vt(sr)))},[vt]),tr=(0,v.useCallback)(function(sr){return!!sr&&rr.includes(sr)},[rr]),ir=(0,v.useCallback)(function(){mt(Ot)},[Ot,mt]),Qt=(0,v.useCallback)(function(sr){sr&&ut(vt(sr))},[vt,ut]),_r=Rt.size>=at.length?64:17;return(0,oe.jsxs)("div",{className:"library-menu-items-container",style:Ot.length||_t.length||At.length?{justifyContent:"flex-start"}:{borderBottom:0},children:[!xr&&(0,oe.jsx)(X,{selectedItems:rr,onSelectItems:ur,className:"library-menu-dropdown-container--in-heading"}),(0,oe.jsxs)(le.Z.Col,{className:"library-menu-items-container__items",align:"start",gap:1,style:{flex:At.length>0?1:"0 1 auto",marginBottom:0},ref:Tr,children:[(0,oe.jsxs)(oe.Fragment,{children:[!xr&&(0,oe.jsx)("div",{className:"library-menu-items-container__header",children:(0,Z.t)("labels.personalLib")}),bt&&(0,oe.jsx)("div",{style:{position:"absolute",top:"var(--container-padding-y)",right:"var(--container-padding-x)",transform:"translateY(50%)"},children:(0,oe.jsx)(he.Z,{})}),Ot.length||_t.length?(0,oe.jsxs)(Be,{children:[Ot.length>0&&(0,oe.jsx)(Ie,{itemsRenderedPerBatch:_r,items:[{id:null,elements:Ot}],onItemSelectToggle:ft,onItemDrag:Et,onClick:ir,isItemSelected:tr,svgCache:Rt}),(0,oe.jsx)(Ie,{itemsRenderedPerBatch:_r,items:_t,onItemSelectToggle:ft,onItemDrag:Et,onClick:Qt,isItemSelected:tr,svgCache:Rt})]}):(0,oe.jsxs)("div",{className:"library-menu-items__no-items",children:[(0,oe.jsx)("div",{className:"library-menu-items__no-items__label",children:(0,Z.t)("library.noItems")}),(0,oe.jsx)("div",{className:"library-menu-items__no-items__hint",children:At.length>0?(0,Z.t)("library.hint_emptyPrivateLibrary"):(0,Z.t)("library.hint_emptyLibrary")})]})]}),(0,oe.jsxs)(oe.Fragment,{children:[(At.length>0||Ot.length>0||_t.length>0)&&(0,oe.jsx)("div",{className:"library-menu-items-container__header library-menu-items-container__header--excal",children:(0,Z.t)("labels.excalidrawLib")}),At.length>0?(0,oe.jsx)(Be,{children:(0,oe.jsx)(Ie,{itemsRenderedPerBatch:_r,items:At,onItemSelectToggle:ft,onItemDrag:Et,onClick:Qt,isItemSelected:tr,svgCache:Rt})}):_t.length>0?(0,oe.jsx)("div",{style:{margin:"1rem 0",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",fontSize:".9rem"},children:(0,Z.t)("library.noItems")}):null]}),br&&(0,oe.jsx)(b,{style:{padding:"16px 0",width:"100%"},id:Gt,libraryReturnUrl:Ct,theme:Pt,children:(0,oe.jsx)(X,{selectedItems:rr,onSelectItems:ur})})]})]})}var qe=e(3646),st=e(4105),ht=e(8923),et={};et.styleTagTransform=me(),et.setAttributes=ce(),et.insert=ie().bind(null,"head"),et.domAPI=N(),et.insertStyleElement=L(),k()(ht.Z,et),ht.Z&&ht.Z.locals&&ht.Z.locals;function wt(Ve,bt){var at=typeof Symbol<"u"&&Ve[Symbol.iterator]||Ve["@@iterator"];if(!at){if(Array.isArray(Ve)||(at=function(Ct,ur){if(Ct){if(typeof Ct=="string")return Lt(Ct,ur);var rr=Object.prototype.toString.call(Ct).slice(8,-1);if(rr==="Object"&&Ct.constructor&&(rr=Ct.constructor.name),rr==="Map"||rr==="Set")return Array.from(Ct);if(rr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rr))return Lt(Ct,ur)}}(Ve))||bt&&Ve&&typeof Ve.length=="number"){at&&(Ve=at);var mt=0,ut=function(){};return{s:ut,n:function(){return mt>=Ve.length?{done:!0}:{done:!1,value:Ve[mt++]}},e:function(Ct){throw Ct},f:ut}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ot,Pt=!0,Gt=!1;return{s:function(){at=at.call(Ve)},n:function(){var Ct=at.next();return Pt=Ct.done,Ct},e:function(Ct){Gt=!0,Ot=Ct},f:function(){try{Pt||at.return==null||at.return()}finally{if(Gt)throw Ot}}}}function Lt(Ve,bt){(bt==null||bt>Ve.length)&&(bt=Ve.length);for(var at=0,mt=new Array(bt);at<bt;at++)mt[at]=Ve[at];return mt}var St=(0,t.cn)(!1),yt=function(Ve){var bt=Ve.children;return(0,oe.jsx)("div",{className:"layer-ui__library",children:bt})},Wt=function(Ve){var bt=Ve.onInsertLibraryItems,at=Ve.pendingElements,mt=Ve.onAddToLibrary,ut=Ve.setAppState,Ot=Ve.libraryReturnUrl,Pt=Ve.library,Gt=Ve.id,Ct=Ve.theme,ur=Ve.selectedItems,rr=Ve.onSelectItems,Tr=(0,t.KO)(M.rF,_.yE),ot=(0,h.Z)(Tr,1)[0],Rt=(0,v.useCallback)(function(br){var xr=function(){var jr=(0,y.Z)(I().mark(function Ar(fr,dt){var ft,vt,Et,tr,ir;return I().wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:(0,qe.L)("element","addToLibrary","ui"),ft=wt(de.PR),Qt.prev=2,Et=function(){var _r=vt.value;if(fr.some(function(sr){return sr.type===_r}))return{v:ut({errorMessage:(0,Z.t)("errors.libraryElementTypeError.".concat(_r))})}},ft.s();case 5:if((vt=ft.n()).done){Qt.next=11;break}if(tr=Et(),(0,D.Z)(tr)!=="object"){Qt.next=9;break}return Qt.abrupt("return",tr.v);case 9:Qt.next=5;break;case 11:Qt.next=16;break;case 13:Qt.prev=13,Qt.t0=Qt.catch(2),ft.e(Qt.t0);case 16:return Qt.prev=16,ft.f(),Qt.finish(16);case 19:ir=[{status:"unpublished",elements:fr,id:(0,H.kb)(),created:Date.now()}].concat((0,E.Z)(dt)),mt(),Pt.setLibrary(ir).catch(function(){ut({errorMessage:(0,Z.t)("alerts.errorAddingToLibrary")})});case 22:case"end":return Qt.stop()}},Ar,null,[[2,13,16,19]])}));return function(Ar,fr){return jr.apply(this,arguments)}}();xr(br,ot.libraryItems)},[mt,Pt,ut,ot.libraryItems]),_t=(0,v.useMemo)(function(){return ot.libraryItems},[ot]);if(ot.status==="loading"&&!ot.isInitialized)return(0,oe.jsx)(yt,{children:(0,oe.jsx)("div",{className:"layer-ui__library-message",children:(0,oe.jsxs)("div",{children:[(0,oe.jsx)(he.Z,{size:"2em"}),(0,oe.jsx)("span",{children:(0,Z.t)("labels.libraryLoadingMessage")})]})})});var At=ot.libraryItems.length>0||at.length>0;return(0,oe.jsxs)(yt,{children:[(0,oe.jsx)(Je,{isLoading:ot.status==="loading",libraryItems:_t,onAddToLibrary:Rt,onInsertLibraryItems:bt,pendingElements:at,id:Gt,libraryReturnUrl:Ot,theme:Ct,onSelectItems:rr,selectedItems:ur}),At&&(0,oe.jsx)(b,{className:"library-menu-control-buttons--at-bottom",style:{padding:"16px 12px 0 12px"},id:Gt,libraryReturnUrl:Ot,theme:Ct})]})},Ft=function(){var Ve=(0,g.qD)(),bt=Ve.library,at=Ve.id,mt=Ve.onInsertElements,ut=(0,g.hY)(),Ot=(0,i.I)(),Pt=(0,g.n9)(),Gt=(0,g.bd)(),Ct=(0,v.useState)([]),ur=(0,h.Z)(Ct,2),rr=ur[0],Tr=ur[1],ot=(0,v.useMemo)(function(){return bt},[bt]),Rt=function(br,xr){var jr=function(){return(0,st.eD)(xr,br,{includeBoundTextElement:!0,includeElementsInFrames:!0})},Ar=(0,v.useRef)(jr()),fr=(0,v.useRef)(br),dt=(0,v.useRef)(xr);return(0,U.w8)(br.selectedElementIds,fr.current.selectedElementIds)&&(0,U.w8)(xr,dt.current)||(Ar.current=jr(),fr.current=br,dt.current=xr),Ar.current}(Ot,Gt),_t=(0,v.useCallback)(function(br){mt((0,M.WV)(br))},[mt]),At=(0,v.useCallback)(function(){Pt({selectedElementIds:{},selectedGroupIds:{},activeEmbeddable:null})},[Pt]);return(0,oe.jsx)(Wt,{pendingElements:Rt,onInsertLibraryItems:_t,onAddToLibrary:At,setAppState:Pt,libraryReturnUrl:ut.libraryReturnUrl,library:ot,id:at,theme:Ot.theme,selectedItems:rr,onSelectItems:Tr})}},7165:function(Se,Q,e){e.d(Q,{z:function(){return n}});var D=e(2577),E=e(8227),y=e(9787),h=e(8531),S=e(45),I=e(9937),v=e(1020),n=function(M){var Z=M.delay,H=M.theme,W=(0,y.useState)(!!Z),u=(0,D.Z)(W,2),U=u[0],le=u[1];return(0,y.useEffect)(function(){if(Z){var de=setTimeout(function(){le(!1)},Z);return function(){return clearTimeout(de)}}},[Z]),U?null:(0,v.jsxs)("div",{className:(0,S.Z)("LoadingMessage",{"LoadingMessage--dark":H===I.C6.DARK}),children:[(0,v.jsx)("div",{children:(0,v.jsx)(h.Z,{})}),(0,v.jsx)("div",{className:"LoadingMessage-text",children:(0,E.t)("labels.loadingScene")})]})}},7827:function(Se,Q,e){e.d(Q,{K:function(){return I},_:function(){return v}});var D=e(8950),E=e(2975),y=e.n(E),h=e(3607),S=e(453),I=(0,h.cn)({active:!1});function v(M){return n.apply(this,arguments)}function n(){return(n=(0,D.Z)(y().mark(function M(Z){var H,W,u,U;return y().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return H=Z.title,W=Z.description,u=Z.actionLabel,U=Z.color,le.abrupt("return",new Promise(function(de){S.e_.set(I,{active:!0,onConfirm:function(){return de(!0)},onClose:function(){return de(!1)},onReject:function(){return de(!1)},title:H,description:W,actionLabel:u,color:U})}));case 2:case"end":return le.stop()}},M)}))).apply(this,arguments)}},3204:function(Se,Q,e){e.d(Q,{J:function(){return P}});var D=e(9787),E=e(3379),y=e.n(E),h=e(7795),S=e.n(h),I=e(569),v=e.n(I),n=e(3565),M=e.n(n),Z=e(9216),H=e.n(Z),W=e(4589),u=e.n(W),U=e(9935),le={};le.styleTagTransform=u(),le.setAttributes=M(),le.insert=v().bind(null,"head"),le.domAPI=S(),le.insertStyleElement=H(),y()(U.Z,le),U.Z&&U.Z.locals&&U.Z.locals;var de=e(5156),he=e(9827),pe=e(5491),oe=e(1020),P=function($){var b=$.children,R=$.left,_=$.top,g=$.onCloseRequest,O=$.fitInViewport,s=O!==void 0&&O,f=$.offsetLeft,t=f===void 0?0:f,w=$.offsetTop,l=w===void 0?0:w,a=$.viewportWidth,c=a===void 0?window.innerWidth:a,m=$.viewportHeight,z=m===void 0?window.innerHeight:m,j=(0,D.useRef)(null);(0,D.useEffect)(function(){var x=j.current;if(x){x.contains(document.activeElement)||x.focus();var N=function(G){if(G.key===pe.tW.TAB){var ie=(0,he.xp)(x),V=document.activeElement,ce=ie.findIndex(function(me){return me===V});if(V===x){var te;G.shiftKey?(te=ie[ie.length-1])===null||te===void 0||te.focus():ie[0].focus(),G.preventDefault(),G.stopImmediatePropagation()}else if(ce===0&&G.shiftKey){var L;(L=ie[ie.length-1])===null||L===void 0||L.focus(),G.preventDefault(),G.stopImmediatePropagation()}else if(ce===ie.length-1&&!G.shiftKey){var re;(re=ie[0])===null||re===void 0||re.focus(),G.preventDefault(),G.stopImmediatePropagation()}}};return x.addEventListener("keydown",N),function(){return x.removeEventListener("keydown",N)}}},[]);var k=(0,D.useRef)(null);return(0,D.useLayoutEffect)(function(){if(s&&j.current&&_!=null&&R!=null){var x,N,G=j.current,ie=G.getBoundingClientRect(),V=ie.width,ce=ie.height;if(((x=k.current)===null||x===void 0?void 0:x.top)===_&&((N=k.current)===null||N===void 0?void 0:N.left)===R)return;k.current={top:_,left:R},V>=c?(G.style.width="".concat(c,"px"),G.style.left="0px",G.style.overflowX="scroll"):G.style.left="".concat(R+V-t>c?c-V-10:R,"px"),ce>=z?(G.style.height="".concat(z-20,"px"),G.style.top="10px",G.style.overflowY="scroll"):G.style.top="".concat(_+ce-l>z?z-ce:_,"px")}},[_,R,s,c,z,t,l]),(0,D.useEffect)(function(){if(g){var x=function(N){var G;(G=j.current)!==null&&G!==void 0&&G.contains(N.target)||(0,de.unstable_batchedUpdates)(function(){return g(N)})};return document.addEventListener("pointerdown",x,!1),function(){return document.removeEventListener("pointerdown",x,!1)}}},[g]),(0,oe.jsx)("div",{className:"popover",ref:j,tabIndex:-1,children:b})}},5902:function(Se,Q,e){e.d(Q,{YE:function(){return fr},t6:function(){return jr}});var D=e(2577),E=e(7169),y=e(2726),h=e(9787),S=e.n(h),I=e(1404),v=e(3607),n=e(453),M=S().createContext({}),Z=e(45),H=e(8227),W=e(8242),u=e(8935),U=e(8925),le=e(8806),de=e(1020),he=function(dt){var ft=dt.children,vt=dt.className,Et=(0,W.Fy)(),tr=(0,h.useContext)(M),ir=!(!Et.editor.canFitSidebar||!tr.shouldRenderDockButton);return(0,de.jsxs)("div",{className:(0,Z.Z)("sidebar__header",vt),"data-testid":"sidebar-header",children:[ft,(0,de.jsxs)("div",{className:"sidebar__header__buttons",children:[ir&&(0,de.jsx)(U.u,{label:(0,H.t)("labels.sidebarLock"),children:(0,de.jsx)(le.z,{onSelect:function(){var Qt;return(Qt=tr.onDock)===null||Qt===void 0?void 0:Qt.call(tr,!tr.docked)},selected:!!tr.docked,className:"sidebar__dock","data-testid":"sidebar-dock","aria-label":(0,H.t)("labels.sidebarLock"),children:u.qQ})}),(0,de.jsx)(le.z,{"data-testid":"sidebar-close",className:"sidebar__close",onSelect:tr.onCloseRequest,"aria-label":(0,H.t)("buttons.close"),children:u.Tw})]})]})};he.displayName="SidebarHeader";var pe=e(9827),oe=e(5491),P=e(9937),$=e(100),b=e(3379),R=e.n(b),_=e(7795),g=e.n(_),O=e(569),s=e.n(O),f=e(3565),t=e.n(f),w=e(9216),l=e.n(w),a=e(4589),c=e.n(a),m=e(7051),z={};z.styleTagTransform=c(),z.setAttributes=t(),z.insert=s().bind(null,"head"),z.domAPI=g(),z.insertStyleElement=l(),R()(m.Z,z),m.Z&&m.Z.locals&&m.Z.locals;var j=function(dt){var ft,vt=dt.name,Et=dt.tab,tr=dt.icon,ir=dt.title,Qt=dt.children,_r=dt.onToggle,sr=dt.className,mr=dt.style,Zr=(0,W.n9)(),or=(0,$.I)();return(0,de.jsxs)("label",{title:ir,children:[(0,de.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",onChange:function(lr){var gr;(gr=document.querySelector(".layer-ui__wrapper"))===null||gr===void 0||gr.classList.remove("animate");var cr=lr.target.checked;Zr({openSidebar:cr?{name:vt,tab:Et}:null}),_r?.(cr)},checked:((ft=or.openSidebar)===null||ft===void 0?void 0:ft.name)===vt,"aria-label":ir,"aria-keyshortcuts":"0"}),(0,de.jsxs)("div",{className:(0,Z.Z)("sidebar-trigger",sr),style:mr,children:[tr&&(0,de.jsx)("div",{children:tr}),Qt&&(0,de.jsx)("div",{className:"sidebar-trigger__label",children:Qt})]})]})};j.displayName="SidebarTrigger";var k=e(11),x=e(7217),N=e(1267),G=e(9335),ie=e(4801),V=e(5622),ce=e(3119),te=e(3060),L=e(2673);const re=(0,h.createContext)(void 0);function me(dt){const ft=(0,h.useContext)(re);return dt||ft||"ltr"}const Ce="rovingFocusGroup.onEntryFocus",We={bubbles:!1,cancelable:!0},Te="RovingFocusGroup",[we,xe,_e]=function(dt){const ft=dt+"CollectionProvider",[vt,Et]=(0,N.b)(ft),[tr,ir]=vt(ft,{collectionRef:{current:null},itemMap:new Map}),Qt=lr=>{const{scope:gr,children:cr}=lr,Hr=S().useRef(null),vr=S().useRef(new Map).current;return S().createElement(tr,{scope:gr,itemMap:vr,collectionRef:Hr},cr)},_r=dt+"CollectionSlot",sr=S().forwardRef((lr,gr)=>{const{scope:cr,children:Hr}=lr,vr=ir(_r,cr),Rr=(0,G.e)(gr,vr.collectionRef);return S().createElement(ie.g7,{ref:Rr},Hr)}),mr=dt+"CollectionItemSlot",Zr="data-radix-collection-item",or=S().forwardRef((lr,gr)=>{const{scope:cr,children:Hr,...vr}=lr,Rr=S().useRef(null),an=(0,G.e)(gr,Rr),Sn=ir(mr,cr);return S().useEffect(()=>(Sn.itemMap.set(Rr,{ref:Rr,...vr}),()=>{Sn.itemMap.delete(Rr)})),S().createElement(ie.g7,{[Zr]:"",ref:an},Hr)});return[{Provider:Qt,Slot:sr,ItemSlot:or},function(lr){const gr=ir(dt+"CollectionConsumer",lr);return S().useCallback(()=>{const cr=gr.collectionRef.current;if(!cr)return[];const Hr=Array.from(cr.querySelectorAll(`[${Zr}]`));return Array.from(gr.itemMap.values()).sort((vr,Rr)=>Hr.indexOf(vr.ref.current)-Hr.indexOf(Rr.ref.current))},[gr.collectionRef,gr.itemMap])},Et]}(Te),[Oe,J]=(0,N.b)(Te,[_e]),[ke,q]=Oe(Te),o=(0,h.forwardRef)((dt,ft)=>(0,h.createElement)(we.Provider,{scope:dt.__scopeRovingFocusGroup},(0,h.createElement)(we.Slot,{scope:dt.__scopeRovingFocusGroup},(0,h.createElement)(i,(0,k.Z)({},dt,{ref:ft}))))),i=(0,h.forwardRef)((dt,ft)=>{const{__scopeRovingFocusGroup:vt,orientation:Et,loop:tr=!1,dir:ir,currentTabStopId:Qt,defaultCurrentTabStopId:_r,onCurrentTabStopIdChange:sr,onEntryFocus:mr,...Zr}=dt,or=(0,h.useRef)(null),lr=(0,G.e)(ft,or),gr=me(ir),[cr=null,Hr]=(0,L.T)({prop:Qt,defaultProp:_r,onChange:sr}),[vr,Rr]=(0,h.useState)(!1),an=(0,te.W)(mr),Sn=xe(vt),Mn=(0,h.useRef)(!1),[Zn,Rn]=(0,h.useState)(0);return(0,h.useEffect)(()=>{const bn=or.current;if(bn)return bn.addEventListener(Ce,an),()=>bn.removeEventListener(Ce,an)},[an]),(0,h.createElement)(ke,{scope:vt,orientation:Et,dir:gr,loop:tr,currentTabStopId:cr,onItemFocus:(0,h.useCallback)(bn=>Hr(bn),[Hr]),onItemShiftTab:(0,h.useCallback)(()=>Rr(!0),[]),onFocusableItemAdd:(0,h.useCallback)(()=>Rn(bn=>bn+1),[]),onFocusableItemRemove:(0,h.useCallback)(()=>Rn(bn=>bn-1),[])},(0,h.createElement)(ce.WV.div,(0,k.Z)({tabIndex:vr||Zn===0?-1:0,"data-orientation":Et},Zr,{ref:lr,style:{outline:"none",...dt.style},onMouseDown:(0,x.M)(dt.onMouseDown,()=>{Mn.current=!0}),onFocus:(0,x.M)(dt.onFocus,bn=>{const yn=!Mn.current;if(bn.target===bn.currentTarget&&yn&&!vr){const Un=new CustomEvent(Ce,We);if(bn.currentTarget.dispatchEvent(Un),!Un.defaultPrevented){const ne=Sn().filter(Ee=>Ee.focusable);X([ne.find(Ee=>Ee.active),ne.find(Ee=>Ee.id===cr),...ne].filter(Boolean).map(Ee=>Ee.ref.current))}}Mn.current=!1}),onBlur:(0,x.M)(dt.onBlur,()=>Rr(!1))})))}),p="RovingFocusGroupItem",B=(0,h.forwardRef)((dt,ft)=>{const{__scopeRovingFocusGroup:vt,focusable:Et=!0,active:tr=!1,tabStopId:ir,...Qt}=dt,_r=(0,V.M)(),sr=ir||_r,mr=q(p,vt),Zr=mr.currentTabStopId===sr,or=xe(vt),{onFocusableItemAdd:lr,onFocusableItemRemove:gr}=mr;return(0,h.useEffect)(()=>{if(Et)return lr(),()=>gr()},[Et,lr,gr]),(0,h.createElement)(we.ItemSlot,{scope:vt,id:sr,focusable:Et,active:tr},(0,h.createElement)(ce.WV.span,(0,k.Z)({tabIndex:Zr?0:-1,"data-orientation":mr.orientation},Qt,{ref:ft,onMouseDown:(0,x.M)(dt.onMouseDown,cr=>{Et?mr.onItemFocus(sr):cr.preventDefault()}),onFocus:(0,x.M)(dt.onFocus,()=>mr.onItemFocus(sr)),onKeyDown:(0,x.M)(dt.onKeyDown,cr=>{if(cr.key==="Tab"&&cr.shiftKey)return void mr.onItemShiftTab();if(cr.target!==cr.currentTarget)return;const Hr=function(an,Sn,Mn){const Zn=function(Rn,bn){return bn!=="rtl"?Rn:Rn==="ArrowLeft"?"ArrowRight":Rn==="ArrowRight"?"ArrowLeft":Rn}(an.key,Mn);return Sn==="vertical"&&["ArrowLeft","ArrowRight"].includes(Zn)||Sn==="horizontal"&&["ArrowUp","ArrowDown"].includes(Zn)?void 0:A[Zn]}(cr,mr.orientation,mr.dir);if(Hr!==void 0){cr.preventDefault();let an=or().filter(Sn=>Sn.focusable).map(Sn=>Sn.ref.current);if(Hr==="last")an.reverse();else if(Hr==="prev"||Hr==="next"){Hr==="prev"&&an.reverse();const Sn=an.indexOf(cr.currentTarget);an=mr.loop?(Rr=Sn+1,(vr=an).map((Mn,Zn)=>vr[(Rr+Zn)%vr.length])):an.slice(Sn+1)}setTimeout(()=>X(an))}var vr,Rr})})))}),A={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function X(dt){const ft=document.activeElement;for(const vt of dt)if(vt===ft||(vt.focus(),document.activeElement!==ft))return}const Y=o,ee=B;var ge=e(1483);const be="Tabs",[Re,Ze]=(0,N.b)(be,[J]),Be=J(),[Ie,Ke]=Re(be),Ye=(0,h.forwardRef)((dt,ft)=>{const{__scopeTabs:vt,value:Et,onValueChange:tr,defaultValue:ir,orientation:Qt="horizontal",dir:_r,activationMode:sr="automatic",...mr}=dt,Zr=me(_r),[or,lr]=(0,L.T)({prop:Et,onChange:tr,defaultProp:ir});return(0,h.createElement)(Ie,{scope:vt,baseId:(0,V.M)(),value:or,onValueChange:lr,orientation:Qt,dir:Zr,activationMode:sr},(0,h.createElement)(ce.WV.div,(0,k.Z)({dir:Zr,"data-orientation":Qt},mr,{ref:ft})))}),tt="TabsList",ue=(0,h.forwardRef)((dt,ft)=>{const{__scopeTabs:vt,loop:Et=!0,...tr}=dt,ir=Ke(tt,vt),Qt=Be(vt);return(0,h.createElement)(Y,(0,k.Z)({asChild:!0},Qt,{orientation:ir.orientation,dir:ir.dir,loop:Et}),(0,h.createElement)(ce.WV.div,(0,k.Z)({role:"tablist","aria-orientation":ir.orientation},tr,{ref:ft})))}),ve="TabsTrigger",De=(0,h.forwardRef)((dt,ft)=>{const{__scopeTabs:vt,value:Et,disabled:tr=!1,...ir}=dt,Qt=Ke(ve,vt),_r=Be(vt),sr=qe(Qt.baseId,Et),mr=st(Qt.baseId,Et),Zr=Et===Qt.value;return(0,h.createElement)(ee,(0,k.Z)({asChild:!0},_r,{focusable:!tr,active:Zr}),(0,h.createElement)(ce.WV.button,(0,k.Z)({type:"button",role:"tab","aria-selected":Zr,"aria-controls":mr,"data-state":Zr?"active":"inactive","data-disabled":tr?"":void 0,disabled:tr,id:sr},ir,{ref:ft,onMouseDown:(0,x.M)(dt.onMouseDown,or=>{tr||or.button!==0||or.ctrlKey!==!1?or.preventDefault():Qt.onValueChange(Et)}),onKeyDown:(0,x.M)(dt.onKeyDown,or=>{[" ","Enter"].includes(or.key)&&Qt.onValueChange(Et)}),onFocus:(0,x.M)(dt.onFocus,()=>{const or=Qt.activationMode!=="manual";Zr||tr||!or||Qt.onValueChange(Et)})})))}),He="TabsContent",Je=(0,h.forwardRef)((dt,ft)=>{const{__scopeTabs:vt,value:Et,forceMount:tr,children:ir,...Qt}=dt,_r=Ke(He,vt),sr=qe(_r.baseId,Et),mr=st(_r.baseId,Et),Zr=Et===_r.value,or=(0,h.useRef)(Zr);return(0,h.useEffect)(()=>{const lr=requestAnimationFrame(()=>or.current=!1);return()=>cancelAnimationFrame(lr)},[]),(0,h.createElement)(ge.z,{present:tr||Zr},({present:lr})=>(0,h.createElement)(ce.WV.div,(0,k.Z)({"data-state":Zr?"active":"inactive","data-orientation":_r.orientation,role:"tabpanel","aria-labelledby":sr,hidden:!lr,id:mr,tabIndex:0},Qt,{ref:ft,style:{...dt.style,animationDuration:or.current?"0s":void 0}}),lr&&ir))});function qe(dt,ft){return`${dt}-trigger-${ft}`}function st(dt,ft){return`${dt}-content-${ft}`}const ht=Ye,et=ue,wt=De,Lt=Je;var St=["children"];function yt(dt,ft){var vt=Object.keys(dt);if(Object.getOwnPropertySymbols){var Et=Object.getOwnPropertySymbols(dt);ft&&(Et=Et.filter(function(tr){return Object.getOwnPropertyDescriptor(dt,tr).enumerable})),vt.push.apply(vt,Et)}return vt}function Wt(dt){for(var ft=1;ft<arguments.length;ft++){var vt=arguments[ft]!=null?arguments[ft]:{};ft%2?yt(Object(vt),!0).forEach(function(Et){(0,E.Z)(dt,Et,vt[Et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(dt,Object.getOwnPropertyDescriptors(vt)):yt(Object(vt)).forEach(function(Et){Object.defineProperty(dt,Et,Object.getOwnPropertyDescriptor(vt,Et))})}return dt}var Ft=function(dt){var ft=dt.children,vt=(0,y.Z)(dt,St);return(0,de.jsx)(et,Wt(Wt({className:"sidebar-triggers"},vt),{},{children:ft}))};Ft.displayName="SidebarTabTriggers";var Ve=["children","tab","onSelect"];function bt(dt,ft){var vt=Object.keys(dt);if(Object.getOwnPropertySymbols){var Et=Object.getOwnPropertySymbols(dt);ft&&(Et=Et.filter(function(tr){return Object.getOwnPropertyDescriptor(dt,tr).enumerable})),vt.push.apply(vt,Et)}return vt}function at(dt){for(var ft=1;ft<arguments.length;ft++){var vt=arguments[ft]!=null?arguments[ft]:{};ft%2?bt(Object(vt),!0).forEach(function(Et){(0,E.Z)(dt,Et,vt[Et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(dt,Object.getOwnPropertyDescriptors(vt)):bt(Object(vt)).forEach(function(Et){Object.defineProperty(dt,Et,Object.getOwnPropertyDescriptor(vt,Et))})}return dt}var mt=function(dt){var ft=dt.children,vt=dt.tab,Et=dt.onSelect,tr=(0,y.Z)(dt,Ve);return(0,de.jsx)(wt,{value:vt,asChild:!0,onSelect:Et,children:(0,de.jsx)("button",at(at({type:"button",className:"excalidraw-button sidebar-tab-trigger"},tr),{},{children:ft}))})};mt.displayName="SidebarTabTrigger";var ut=["children"];function Ot(dt,ft){var vt=Object.keys(dt);if(Object.getOwnPropertySymbols){var Et=Object.getOwnPropertySymbols(dt);ft&&(Et=Et.filter(function(tr){return Object.getOwnPropertyDescriptor(dt,tr).enumerable})),vt.push.apply(vt,Et)}return vt}function Pt(dt){for(var ft=1;ft<arguments.length;ft++){var vt=arguments[ft]!=null?arguments[ft]:{};ft%2?Ot(Object(vt),!0).forEach(function(Et){(0,E.Z)(dt,Et,vt[Et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(dt,Object.getOwnPropertyDescriptors(vt)):Ot(Object(vt)).forEach(function(Et){Object.defineProperty(dt,Et,Object.getOwnPropertyDescriptor(vt,Et))})}return dt}var Gt=function(dt){var ft=dt.children,vt=(0,y.Z)(dt,ut),Et=(0,$.I)(),tr=(0,W.n9)();if(!Et.openSidebar)return null;var ir=Et.openSidebar.name;return(0,de.jsx)(ht,Pt(Pt({className:"sidebar-tabs-root",value:Et.openSidebar.tab,onValueChange:function(Qt){return tr(function(_r){return Pt(Pt({},_r),{},{openSidebar:Pt(Pt({},_r.openSidebar),{},{name:ir,tab:Qt})})})}},vt),{},{children:ft}))};Gt.displayName="SidebarTabs";var Ct=["tab","children"];function ur(dt,ft){var vt=Object.keys(dt);if(Object.getOwnPropertySymbols){var Et=Object.getOwnPropertySymbols(dt);ft&&(Et=Et.filter(function(tr){return Object.getOwnPropertyDescriptor(dt,tr).enumerable})),vt.push.apply(vt,Et)}return vt}function rr(dt){for(var ft=1;ft<arguments.length;ft++){var vt=arguments[ft]!=null?arguments[ft]:{};ft%2?ur(Object(vt),!0).forEach(function(Et){(0,E.Z)(dt,Et,vt[Et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(dt,Object.getOwnPropertyDescriptors(vt)):ur(Object(vt)).forEach(function(Et){Object.defineProperty(dt,Et,Object.getOwnPropertyDescriptor(vt,Et))})}return dt}var Tr=function(dt){var ft=dt.tab,vt=dt.children,Et=(0,y.Z)(dt,Ct);return(0,de.jsx)(Lt,rr(rr({},Et),{},{value:ft,children:vt}))};Tr.displayName="SidebarTab";var ot=e(1901),Rt=e(8208),_t={};_t.styleTagTransform=c(),_t.setAttributes=t(),_t.insert=s().bind(null,"head"),_t.domAPI=g(),_t.insertStyleElement=l(),R()(Rt.Z,_t),Rt.Z&&Rt.Z.locals&&Rt.Z.locals;var At=["name","children","onDock","docked","className"];function br(dt,ft){var vt=Object.keys(dt);if(Object.getOwnPropertySymbols){var Et=Object.getOwnPropertySymbols(dt);ft&&(Et=Et.filter(function(tr){return Object.getOwnPropertyDescriptor(dt,tr).enumerable})),vt.push.apply(vt,Et)}return vt}function xr(dt){for(var ft=1;ft<arguments.length;ft++){var vt=arguments[ft]!=null?arguments[ft]:{};ft%2?br(Object(vt),!0).forEach(function(Et){(0,E.Z)(dt,Et,vt[Et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(dt,Object.getOwnPropertyDescriptors(vt)):br(Object(vt)).forEach(function(Et){Object.defineProperty(dt,Et,Object.getOwnPropertyDescriptor(vt,Et))})}return dt}var jr=(0,v.cn)(!1),Ar=(0,h.forwardRef)(function(dt,ft){dt.name;var vt=dt.children,Et=dt.onDock,tr=dt.docked,ir=dt.className,Qt=(0,y.Z)(dt,At),_r=(0,W.n9)(),sr=(0,v.b9)(jr,n.yE);(0,h.useLayoutEffect)(function(){return sr(!!tr),function(){sr(!1)}},[sr,tr]);var mr=(0,h.useRef)({});mr.current.onCloseRequest=function(){_r({openSidebar:null})},mr.current.onDock=function(gr){return Et?.(gr)},mr.current=(0,pe.v4)(mr.current,{docked:tr,shouldRenderDockButton:!!Et&&tr!=null});var Zr=(0,h.useRef)(null);(0,h.useImperativeHandle)(ft,function(){return Zr.current});var or=(0,W.Fy)(),lr=(0,h.useCallback)(function(){document.querySelector(".Dialog")||_r({openSidebar:null})},[_r]);return(0,ot.O)(Zr,(0,h.useCallback)(function(gr){gr.target.closest(".sidebar-trigger")||tr&&or.editor.canFitSidebar||lr()},[lr,tr,or.editor.canFitSidebar])),(0,h.useEffect)(function(){var gr=function(cr){cr.key!==oe.tW.ESCAPE||tr&&or.editor.canFitSidebar||lr()};return document.addEventListener(P.Ks.KEYDOWN,gr),function(){document.removeEventListener(P.Ks.KEYDOWN,gr)}},[lr,tr,or.editor.canFitSidebar]),(0,de.jsx)(I.W,xr(xr({},Qt),{},{className:(0,Z.Z)("sidebar",{"sidebar--docked":tr},ir),ref:Zr,children:(0,de.jsx)(M.Provider,{value:mr.current,children:vt})}))});Ar.displayName="SidebarInner";var fr=Object.assign((0,h.forwardRef)(function(dt,ft){var vt,Et=(0,$.I)(),tr=dt.onStateChange,ir=(0,h.useRef)(Et.openSidebar);(0,h.useEffect)(function(){var Zr,or,lr,gr,cr;(!Et.openSidebar&&(ir==null||(Zr=ir.current)===null||Zr===void 0?void 0:Zr.name)===dt.name||((or=Et.openSidebar)===null||or===void 0?void 0:or.name)===dt.name&&(ir==null||(lr=ir.current)===null||lr===void 0?void 0:lr.name)!==dt.name||((gr=ir.current)===null||gr===void 0?void 0:gr.name)===dt.name)&&Et.openSidebar!==ir.current&&tr?.(((cr=Et.openSidebar)===null||cr===void 0?void 0:cr.name)!==dt.name?null:Et.openSidebar),ir.current=Et.openSidebar},[Et.openSidebar,tr,dt.name]);var Qt=(0,h.useState)(!1),_r=(0,D.Z)(Qt,2),sr=_r[0],mr=_r[1];return(0,h.useLayoutEffect)(function(){return mr(!0),function(){return mr(!1)}},[]),sr&&((vt=Et.openSidebar)===null||vt===void 0?void 0:vt.name)===dt.name?(0,h.createElement)(Ar,xr(xr({},dt),{},{ref:ft,key:dt.name})):null}),{Header:he,TabTriggers:Ft,TabTrigger:mt,Tabs:Gt,Tab:Tr,Trigger:j});fr.displayName="Sidebar"},8531:function(Se,Q,e){e.d(Q,{Z:function(){return oe}});var D=e(7169),E=e(9787),y=e.n(E),h=e(3379),S=e.n(h),I=e(7795),v=e.n(I),n=e(569),M=e.n(n),Z=e(3565),H=e.n(Z),W=e(9216),u=e.n(W),U=e(4589),le=e.n(U),de=e(5892),he={};he.styleTagTransform=le(),he.setAttributes=H(),he.insert=M().bind(null,"head"),he.domAPI=v(),he.insertStyleElement=u(),S()(de.Z,he),de.Z&&de.Z.locals&&de.Z.locals;var pe=e(1020),oe=function(P){var $=P.size,b=$===void 0?"1em":$,R=P.circleWidth,_=R===void 0?8:R,g=P.synchronized,O=g!==void 0&&g,s=-y().useRef(Date.now()).current%1600;return(0,pe.jsx)("div",{className:"Spinner",children:(0,pe.jsx)("svg",{viewBox:"0 0 100 100",style:(0,D.Z)({width:b,height:b},"--spinner-delay",O?"".concat(s,"ms"):0),children:(0,pe.jsx)("circle",{cx:"50",cy:"50",r:50-_/2,strokeWidth:_,fill:"none",strokeMiterlimit:"10"})})})}},2540:function(Se,Q,e){e.d(Q,{Z:function(){return $}});var D=e(7169),E=e(3379),y=e.n(E),h=e(7795),S=e.n(h),I=e(569),v=e.n(I),n=e(3565),M=e.n(n),Z=e(9216),H=e.n(Z),W=e(4589),u=e.n(W),U=e(3874),le={};le.styleTagTransform=u(),le.setAttributes=M(),le.insert=v().bind(null,"head"),le.domAPI=S(),le.insertStyleElement=H(),y()(U.Z,le),U.Z&&U.Z.locals&&U.Z.locals;var de=e(9787),he=e(45),pe=e(1020);function oe(b,R){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(b);R&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(b,O).enumerable})),_.push.apply(_,g)}return _}function P(b){for(var R=1;R<arguments.length;R++){var _=arguments[R]!=null?arguments[R]:{};R%2?oe(Object(_),!0).forEach(function(g){(0,D.Z)(b,g,_[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(_)):oe(Object(_)).forEach(function(g){Object.defineProperty(b,g,Object.getOwnPropertyDescriptor(_,g))})}return b}var $={Row:(0,de.forwardRef)(function(b,R){var _=b.children,g=b.gap,O=b.align,s=b.justifyContent,f=b.className,t=b.style;return(0,pe.jsx)("div",{className:(0,he.Z)("Stack Stack_horizontal",f),style:P({"--gap":g,alignItems:O,justifyContent:s},t),ref:R,children:_})}),Col:(0,de.forwardRef)(function(b,R){var _=b.children,g=b.gap,O=b.align,s=b.justifyContent,f=b.className,t=b.style;return(0,pe.jsx)("div",{className:(0,he.Z)("Stack Stack_vertical",f),style:P({"--gap":g,justifyItems:O,justifyContent:s},t),ref:R,children:_})})}},1512:function(Se,Q,e){e.d(Q,{V:function(){return W}});var D=e(8950),E=e(2577),y=e(2975),h=e.n(y),S=(e(3041),e(9787)),I=e.n(S),v=e(45),n=e(8242),M=e(3506),Z=e(8531),H=e(1020),W=I().forwardRef(function(u,U){var le=(0,n.J0)().id,de=I().useRef(null);I().useImperativeHandle(U,function(){return de.current});var he="ToolIcon_size_".concat(u.size),pe=(0,S.useState)(!1),oe=(0,E.Z)(pe,2),P=oe[0],$=oe[1],b=(0,S.useRef)(!0),R=function(){var O=(0,D.Z)(h().mark(function s(f){var t,w;return h().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!(w="onClick"in u&&((t=u.onClick)===null||t===void 0?void 0:t.call(u,f)))||!("then"in w)){l.next=18;break}return l.prev=2,$(!0),l.next=6,w;case 6:l.next=15;break;case 8:if(l.prev=8,l.t0=l.catch(2),l.t0 instanceof M._L){l.next=14;break}throw l.t0;case 14:console.warn(l.t0);case 15:return l.prev=15,b.current&&$(!1),l.finish(15);case 18:case"end":return l.stop()}},s,null,[[2,8,15,18]])}));return function(s){return O.apply(this,arguments)}}();(0,S.useEffect)(function(){return b.current=!0,function(){b.current=!1}},[]);var _=(0,S.useRef)(null);if(u.type==="button"||u.type==="icon"||u.type==="submit"){var g=u.type==="icon"?"button":u.type;return(0,H.jsxs)("button",{className:(0,v.Z)("ToolIcon_type_button",he,u.className,u.visible&&!u.hidden?"ToolIcon_type_button--show":"ToolIcon_type_button--hide",{ToolIcon:!u.hidden,"ToolIcon--selected":u.selected,"ToolIcon--plain":u.type==="icon"}),style:u.style,"data-testid":u["data-testid"],hidden:u.hidden,title:u.title,"aria-label":u["aria-label"],type:g,onClick:R,ref:de,disabled:P||u.isLoading,children:[(u.icon||u.label)&&(0,H.jsxs)("div",{className:"ToolIcon__icon","aria-hidden":"true",children:[u.icon||u.label,u.keyBindingLabel&&(0,H.jsx)("span",{className:"ToolIcon__keybinding",children:u.keyBindingLabel}),u.isLoading&&(0,H.jsx)(Z.Z,{})]}),u.showAriaLabel&&(0,H.jsxs)("div",{className:"ToolIcon__label",children:[u["aria-label"]," ",P&&(0,H.jsx)(Z.Z,{})]}),u.children]})}return(0,H.jsxs)("label",{className:(0,v.Z)("ToolIcon",u.className),title:u.title,onPointerDown:function(O){var s;_.current=O.pointerType||null,(s=u.onPointerDown)===null||s===void 0||s.call(u,{pointerType:O.pointerType||null})},onPointerUp:function(){requestAnimationFrame(function(){_.current=null})},children:[(0,H.jsx)("input",{className:"ToolIcon_type_radio ".concat(he),type:"radio",name:u.name,"aria-label":u["aria-label"],"aria-keyshortcuts":u["aria-keyshortcuts"],"data-testid":u["data-testid"],id:"".concat(le,"-").concat(u.id),onChange:function(){var O;(O=u.onChange)===null||O===void 0||O.call(u,{pointerType:_.current})},checked:u.checked,ref:de}),(0,H.jsxs)("div",{className:"ToolIcon__icon",children:[u.icon,u.keyBindingLabel&&(0,H.jsx)("span",{className:"ToolIcon__keybinding",children:u.keyBindingLabel})]})]})});W.defaultProps={visible:!0,className:"",size:"medium"},W.displayName="ToolButton"},8925:function(Se,Q,e){e.d(Q,{u:function(){return oe},bK:function(){return he},Js:function(){return pe}});var D=e(3379),E=e.n(D),y=e(7795),h=e.n(y),S=e(569),I=e.n(S),v=e(3565),n=e.n(v),M=e(9216),Z=e.n(M),H=e(4589),W=e.n(H),u=e(6626),U={};U.styleTagTransform=W(),U.setAttributes=n(),U.insert=I().bind(null,"head"),U.domAPI=h(),U.insertStyleElement=Z(),E()(u.Z,U),u.Z&&u.Z.locals&&u.Z.locals;var le=e(9787),de=e(1020),he=function(){var P=document.querySelector(".excalidraw-tooltip");if(P)return P;var $=document.createElement("div");return document.body.appendChild($),$.classList.add("excalidraw-tooltip"),$},pe=function(P,$){var b,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"bottom",_=P.getBoundingClientRect(),g=window.innerWidth,O=window.innerHeight,s=5,f=$.left+$.width/2-_.width/2;f<0?f=s:f+_.width>=g&&(f=g-_.width-s),R==="bottom"?(b=$.top+$.height+s)+_.height>=O&&(b=$.top-_.height-s):(b=$.top-_.height-s)<0&&(b=$.top+$.height+s),Object.assign(P.style,{top:"".concat(b,"px"),left:"".concat(f,"px")})},oe=function(P){var $=P.children,b=P.label,R=P.long,_=R!==void 0&&R,g=P.style;return(0,le.useEffect)(function(){return function(){return he().classList.remove("excalidraw-tooltip--visible")}},[]),(0,de.jsx)("div",{className:"excalidraw-tooltip-wrapper",onPointerEnter:function(O){return function(s,f,t,w){f.classList.add("excalidraw-tooltip--visible"),f.style.minWidth=w?"50ch":"10ch",f.style.maxWidth=w?"50ch":"15ch",f.textContent=t;var l=s.getBoundingClientRect();pe(f,l)}(O.currentTarget,he(),b,_)},onPointerLeave:function(){return he().classList.remove("excalidraw-tooltip--visible")},style:g,children:$})}},9247:function(Se,Q,e){var D=e(2726),E=e(1930),y=e(9787),h=e.n(y),S=e(8227),I=["i18nKey","children"],v=/({{[\w-]+}})|(<[\w-]+>)|(<\/[\w-]+>)/g,n=/{{([\w-]+)}}/,M=/<([\w-]+)>/,Z=/<\/([\w-]+)>/;Q.Z=function(H){var W=H.i18nKey,u=(H.children,(0,D.Z)(H,I)),U=(0,S.QT)().t;return h().createElement.apply(h(),[h().Fragment,{}].concat((0,E.Z)(function(le,de){var he=[{name:"",children:[]}];return le.split(v).filter(Boolean).forEach(function(pe){var oe=pe.match(M),P=pe.match(Z),$=pe.match(n);if(oe!==null){var b=oe[1];de.hasOwnProperty(b)?he.push({name:b,children:[]}):console.warn("Trans: missed to pass in prop ".concat(b," for interpolating ").concat(le))}else if(P!==null)if(P[1]===he[he.length-1].name){var R=he.pop(),_=h().createElement.apply(h(),[h().Fragment,{}].concat((0,E.Z)(R.children))),g=de[R.name];typeof g=="function"&&he[he.length-1].children.push(g(_))}else console.warn("Trans: unexpected end tag ".concat(pe," for interpolating ").concat(le));else if($!==null){var O=$[1];de.hasOwnProperty(O)?he[he.length-1].children.push(de[O]):console.warn("Trans: key ".concat(O," not in props for interpolating ").concat(le))}else he[he.length-1].children.push(pe)}),he.length!==1&&console.warn("Trans: stack not empty for interpolating ".concat(le)),he[0].children}(U(W),u))))}},4704:function(Se,Q,e){e.d(Q,{Z:function(){return b}});var D=e(2577),E=e(3379),y=e.n(E),h=e(7795),S=e.n(h),I=e(569),v=e.n(I),n=e(3565),M=e.n(n),Z=e(9216),H=e.n(Z),W=e(4589),u=e.n(W),U=e(6359),le={};le.styleTagTransform=u(),le.setAttributes=M(),le.insert=v().bind(null,"head"),le.domAPI=S(),le.insertStyleElement=H(),y()(U.Z,le),U.Z&&U.Z.locals&&U.Z.locals;var de=e(9787),he=e.n(de),pe=e(45),oe=e(8925),P=e(8242),$=e(1020),b=function(R){var _=R.className,g=R.mobile,O=R.collaborators,s=(0,P.eh)(),f=new Map;O.forEach(function(w,l){f.set(w.id||l,w)});var t=f.size>0&&Array.from(f).filter(function(w){var l=(0,D.Z)(w,2),a=(l[0],l[1]);return Object.keys(a).length!==0}).map(function(w){var l=(0,D.Z)(w,2),a=l[0],c=l[1],m=s.renderAction("goToCollaborator",[a,c]);return g?(0,$.jsx)(oe.u,{label:c.username||"Unknown user",children:m},a):(0,$.jsx)(he().Fragment,{children:m},a)});return(0,$.jsx)("div",{className:(0,pe.Z)("UserList",_,{UserList_mobile:g}),children:t})}},7104:function(Se,Q,e){e.d(Q,{Z:function(){return te}});var D=e(7169),E=e(2726),y=e(45),h=e(8242),S=e(1020),I=["className","children","onToggle","title"];function v(L,re){var me=Object.keys(L);if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(L);re&&(Ce=Ce.filter(function(We){return Object.getOwnPropertyDescriptor(L,We).enumerable})),me.push.apply(me,Ce)}return me}function n(L){for(var re=1;re<arguments.length;re++){var me=arguments[re]!=null?arguments[re]:{};re%2?v(Object(me),!0).forEach(function(Ce){(0,D.Z)(L,Ce,me[Ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(me)):v(Object(me)).forEach(function(Ce){Object.defineProperty(L,Ce,Object.getOwnPropertyDescriptor(me,Ce))})}return L}var M=function(L){var re=L.className,me=re===void 0?"":re,Ce=L.children,We=L.onToggle,Te=L.title,we=(0,E.Z)(L,I),xe=(0,h.Fy)(),_e=(0,y.Z)("dropdown-menu-button ".concat(me),"zen-mode-transition",{"dropdown-menu-button--mobile":xe.editor.isMobile}).trim();return(0,S.jsx)("button",n(n({"data-prevent-outside-click":!0,className:_e,onClick:We,type:"button","data-testid":"dropdown-menu-button",title:Te},we),{},{children:Ce}))},Z=M;M.displayName="DropdownMenuTrigger";var H=e(5735),W=function(){return(0,S.jsx)("div",{style:{height:"1px",backgroundColor:"var(--default-border-color)",margin:".5rem 0"}})},u=W;W.displayName="DropdownMenuSeparator";var U=function(L){var re=L.children,me=L.className,Ce=me===void 0?"":me,We=L.style,Te=L.title;return(0,S.jsxs)("div",{className:"dropdown-menu-group ".concat(Ce),style:We,children:[Te&&(0,S.jsx)("p",{className:"dropdown-menu-group-title",children:Te}),re]})},le=U;U.displayName="DropdownMenuGroup";var de=e(1404),he=e(2540),pe=e(9787),oe=e.n(pe),P=e(7009),$=e(1901),b=function(L){var re=L.children,me=L.onClickOutside,Ce=L.className,We=Ce===void 0?"":Ce,Te=L.onSelect,we=L.style,xe=(0,h.Fy)(),_e=(0,pe.useRef)(null);(0,$.O)(_e,function(){me?.()});var Oe=(0,y.Z)("dropdown-menu ".concat(We),{"dropdown-menu--mobile":xe.editor.isMobile}).trim();return(0,S.jsx)(P.N7.Provider,{value:{onSelect:Te},children:(0,S.jsx)("div",{ref:_e,className:Oe,style:we,"data-testid":"dropdown-menu",children:xe.editor.isMobile?(0,S.jsx)(he.Z.Col,{className:"dropdown-menu-container",children:re}):(0,S.jsx)(de.W,{className:"dropdown-menu-container",padding:2,style:{zIndex:2},children:re})})})};b.displayName="DropdownMenuContent";var R=b,_=e(3858),g=["children","className","selected"];function O(L,re){var me=Object.keys(L);if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(L);re&&(Ce=Ce.filter(function(We){return Object.getOwnPropertyDescriptor(L,We).enumerable})),me.push.apply(me,Ce)}return me}function s(L){for(var re=1;re<arguments.length;re++){var me=arguments[re]!=null?arguments[re]:{};re%2?O(Object(me),!0).forEach(function(Ce){(0,D.Z)(L,Ce,me[Ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(me)):O(Object(me)).forEach(function(Ce){Object.defineProperty(L,Ce,Object.getOwnPropertyDescriptor(me,Ce))})}return L}var f=function(L){var re=L.children,me=L.className,Ce=me===void 0?"":me,We=L.selected,Te=(0,E.Z)(L,g);return(0,S.jsx)("div",s(s({},Te),{},{className:"dropdown-menu-item-base dropdown-menu-item-custom ".concat(Ce," ").concat(We?"dropdown-menu-item--selected":"").trim(),children:re}))},t=e(3379),w=e.n(t),l=e(7795),a=e.n(l),c=e(569),m=e.n(c),z=e(3565),j=e.n(z),k=e(9216),x=e.n(k),N=e(4589),G=e.n(N),ie=e(7399),V={};V.styleTagTransform=G(),V.setAttributes=j(),V.insert=m().bind(null,"head"),V.domAPI=a(),V.insertStyleElement=x(),w()(ie.Z,V),ie.Z&&ie.Z.locals&&ie.Z.locals;var ce=function(L){var re=L.children,me=L.open,Ce=function(Te){return oe().Children.toArray(Te).find(function(we){return oe().isValidElement(we)&&typeof we.type!="string"&&we?.type.displayName&&we.type.displayName==="DropdownMenuTrigger"})||null}(re),We=function(Te){return oe().Children.toArray(Te).find(function(we){return oe().isValidElement(we)&&typeof we.type!="string"&&we?.type.displayName&&we.type.displayName==="DropdownMenuContent"})||null}(re);return(0,S.jsxs)(S.Fragment,{children:[Ce,me&&We]})};ce.Trigger=Z,ce.Content=R,ce.Item=H.Z,ce.ItemLink=_.Z,ce.ItemCustom=f,ce.Group=le,ce.Separator=u;var te=ce;ce.displayName="DropdownMenu"},5735:function(Se,Q,e){var D=e(7169),E=e(2726),y=e(7009),h=e(6732),S=e(1020),I=["icon","onSelect","children","shortcut","className","selected"];function v(Z,H){var W=Object.keys(Z);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(Z);H&&(u=u.filter(function(U){return Object.getOwnPropertyDescriptor(Z,U).enumerable})),W.push.apply(W,u)}return W}function n(Z){for(var H=1;H<arguments.length;H++){var W=arguments[H]!=null?arguments[H]:{};H%2?v(Object(W),!0).forEach(function(u){(0,D.Z)(Z,u,W[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Z,Object.getOwnPropertyDescriptors(W)):v(Object(W)).forEach(function(u){Object.defineProperty(Z,u,Object.getOwnPropertyDescriptor(W,u))})}return Z}var M=function(Z){var H,W=Z.icon,u=Z.onSelect,U=Z.children,le=Z.shortcut,de=Z.className,he=Z.selected,pe=(0,E.Z)(Z,I),oe=(0,y.qZ)(pe.onClick,u);return(0,S.jsx)("button",n(n({},pe),{},{onClick:oe,type:"button",className:(0,y.n)(de,he),title:(H=pe.title)!==null&&H!==void 0?H:pe["aria-label"],children:(0,S.jsx)(h.Z,{icon:W,shortcut:le,children:U})}))};Q.Z=M,M.displayName="DropdownMenuItem"},6732:function(Se,Q,e){var D=e(8242),E=e(1020);Q.Z=function(y){var h=y.icon,S=y.shortcut,I=y.children,v=(0,D.Fy)();return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"dropdown-menu-item__icon",children:h}),(0,E.jsx)("div",{className:"dropdown-menu-item__text",children:I}),S&&!v.editor.isMobile&&(0,E.jsx)("div",{className:"dropdown-menu-item__shortcut",children:S})]})}},3858:function(Se,Q,e){var D=e(7169),E=e(2726),y=e(6732),h=e(7009),S=e(1020),I=["icon","shortcut","href","children","onSelect","className","selected"];function v(Z,H){var W=Object.keys(Z);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(Z);H&&(u=u.filter(function(U){return Object.getOwnPropertyDescriptor(Z,U).enumerable})),W.push.apply(W,u)}return W}function n(Z){for(var H=1;H<arguments.length;H++){var W=arguments[H]!=null?arguments[H]:{};H%2?v(Object(W),!0).forEach(function(u){(0,D.Z)(Z,u,W[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Z,Object.getOwnPropertyDescriptors(W)):v(Object(W)).forEach(function(u){Object.defineProperty(Z,u,Object.getOwnPropertyDescriptor(W,u))})}return Z}var M=function(Z){var H,W=Z.icon,u=Z.shortcut,U=Z.href,le=Z.children,de=Z.onSelect,he=Z.className,pe=he===void 0?"":he,oe=Z.selected,P=(0,E.Z)(Z,I),$=(0,h.qZ)(P.onClick,de);return(0,S.jsx)("a",n(n({},P),{},{href:U,target:"_blank",rel:"noreferrer",className:(0,h.n)(pe,oe),title:(H=P.title)!==null&&H!==void 0?H:P["aria-label"],onClick:$,children:(0,S.jsx)(y.Z,{icon:W,shortcut:u,children:le})}))};Q.Z=M,M.displayName="DropdownMenuItemLink"},7009:function(Se,Q,e){e.d(Q,{N7:function(){return S},n:function(){return I},qZ:function(){return v}});var D=e(9787),E=e.n(D),y=e(9937),h=e(9827),S=E().createContext({}),I=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return"dropdown-menu-item dropdown-menu-item-base ".concat(n," ").concat(M?"dropdown-menu-item--selected":"").trim()},v=function(n,M){var Z=(0,D.useContext)(S);return(0,h.Mj)(n,function(H){var W,u=new CustomEvent(y.Ks.MENU_ITEM_SELECT,{bubbles:!0,cancelable:!0});M?.(u),u.defaultPrevented||(W=Z.onSelect)===null||W===void 0||W.call(Z,u)})}},6922:function(Se,Q,e){e.d(Q,{$:function(){return n}});var D=e(7169),E=e(2577),y=e(3607),h=e(9787),S=e(4572),I=e(1020);function v(M,Z){var H=Object.keys(M);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(M);Z&&(W=W.filter(function(u){return Object.getOwnPropertyDescriptor(M,u).enumerable})),H.push.apply(H,W)}return H}var n=function(M,Z){var H=(0,y.cn)(0),W=function(u){var U=(0,S.R6)().jotaiScope,le=(0,y.KO)(H,U),de=(0,E.Z)(le,2)[1],he=(0,h.useRef)({preferHost:!1,counter:0});return(0,h.useLayoutEffect)(function(){var pe=he.current;return de(function(oe){var P=oe+1;return pe.counter=P,P}),function(){de(function(oe){var P=oe-1;return pe.counter=P,P||(pe.preferHost=!1),P})}},[de]),u.__fallback||(he.current.preferHost=!0),!he.current.counter&&u.__fallback&&he.current.preferHost||he.current.counter>1&&u.__fallback?null:(0,I.jsx)(Z,function(pe){for(var oe=1;oe<arguments.length;oe++){var P=arguments[oe]!=null?arguments[oe]:{};oe%2?v(Object(P),!0).forEach(function($){(0,D.Z)(pe,$,P[$])}):Object.getOwnPropertyDescriptors?Object.defineProperties(pe,Object.getOwnPropertyDescriptors(P)):v(Object(P)).forEach(function($){Object.defineProperty(pe,$,Object.getOwnPropertyDescriptor(P,$))})}return pe}({},u))};return W.displayName=M,W}},8935:function(Se,Q,e){e.d(Q,{$W:function(){return ir},$c:function(){return o},$q:function(){return z},BF:function(){return De},Ct:function(){return ge},D7:function(){return Ce},DG:function(){return J},DJ:function(){return _},DS:function(){return at},EO:function(){return xr},ET:function(){return me},FC:function(){return $},FL:function(){return N},Gc:function(){return X},HL:function(){return be},Hk:function(){return dt},Hy:function(){return te},II:function(){return sr},IN:function(){return Y},J8:function(){return ke},LZ:function(){return mr},NA:function(){return G},NW:function(){return V},Nw:function(){return fr},OA:function(){return Tr},OW:function(){return O},P7:function(){return Ar},Pm:function(){return a},RJ:function(){return He},RY:function(){return ce},Re:function(){return f},ST:function(){return Ke},Sd:function(){return j},TP:function(){return q},Tl:function(){return Oe},Tw:function(){return ue},UE:function(){return i},UI:function(){return vt},UT:function(){return tr},VL:function(){return c},Vl:function(){return B},Vq:function(){return de},W2:function(){return Ve},W5:function(){return Ie},Wl:function(){return wt},X7:function(){return ht},XB:function(){return m},XH:function(){return x},YA:function(){return pe},ZA:function(){return et},Zm:function(){return We},_C:function(){return P},_U:function(){return R},a0:function(){return qe},a1:function(){return xe},a5:function(){return St},aA:function(){return jr},aL:function(){return ft},aT:function(){return yt},bf:function(){return Wt},by:function(){return L},d:function(){return Zr},dg:function(){return Qt},e0:function(){return t},eQ:function(){return Te},fr:function(){return mt},gK:function(){return Ye},h0:function(){return re},il:function(){return ut},j8:function(){return Gt},jn:function(){return tt},kL:function(){return ie},kM:function(){return Ft},lF:function(){return Je},m:function(){return Pt},m9:function(){return Lt},mh:function(){return Ze},mv:function(){return Et},nb:function(){return s},np:function(){return st},nq:function(){return ur},o3:function(){return At},oQ:function(){return b},oT:function(){return br},op:function(){return ve},pO:function(){return he},po:function(){return _e},pw:function(){return ee},q0:function(){return Ct},qQ:function(){return oe},rr:function(){return _t},t5:function(){return A},tW:function(){return rr},tb:function(){return l},tn:function(){return Ot},uD:function(){return Be},vo:function(){return ot},wr:function(){return bt},xL:function(){return k},xP:function(){return we},xs:function(){return Re},z6:function(){return Rt},zG:function(){return p},zb:function(){return w},zl:function(){return _r},zu:function(){return g}});var D=e(7169),E=e(2726),y=e(9787),h=e.n(y),S=e(5284),I=e(45),v=e(9937),n=e(1020),M=["width","height","mirror","style"];function Z(or,lr){var gr=Object.keys(or);if(Object.getOwnPropertySymbols){var cr=Object.getOwnPropertySymbols(or);lr&&(cr=cr.filter(function(Hr){return Object.getOwnPropertyDescriptor(or,Hr).enumerable})),gr.push.apply(gr,cr)}return gr}function H(or){for(var lr=1;lr<arguments.length;lr++){var gr=arguments[lr]!=null?arguments[lr]:{};lr%2?Z(Object(gr),!0).forEach(function(cr){(0,D.Z)(or,cr,gr[cr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(or,Object.getOwnPropertyDescriptors(gr)):Z(Object(gr)).forEach(function(cr){Object.defineProperty(or,cr,Object.getOwnPropertyDescriptor(gr,cr))})}return or}var W=function(or){return or===v.C6.LIGHT?S.white:"#1e1e1e"},u=function(or){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:512,gr=typeof lr=="number"?{width:lr}:lr,cr=gr.width,Hr=cr===void 0?512:cr,vr=gr.height,Rr=vr===void 0?Hr:vr,an=gr.mirror,Sn=gr.style,Mn=(0,E.Z)(gr,M);return(0,n.jsx)("svg",H(H({"aria-hidden":"true",focusable:"false",role:"img",viewBox:"0 0 ".concat(Hr," ").concat(Rr),className:(0,I.Z)({"rtl-mirror":an}),style:Sn},Mn),{},{children:typeof or=="string"?(0,n.jsx)("path",{fill:"currentColor",d:or}):or}))},U={width:24,height:24,fill:"none",strokeWidth:2,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},le={width:20,height:20,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},de=(u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("rect",{x:3,y:8,width:18,height:4,rx:1}),(0,n.jsx)("line",{x1:12,y1:8,x2:12,y2:21}),(0,n.jsx)("path",{d:"M19 12v7a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-7"}),(0,n.jsx)("path",{d:"M7.5 8a2.5 2.5 0 0 1 0 -5a4.8 8 0 0 1 4.5 5a4.8 8 0 0 1 4.5 -5a2.5 2.5 0 0 1 0 5"})]}),U),u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),(0,n.jsx)("path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),(0,n.jsx)("line",{x1:"3",y1:"6",x2:"3",y2:"19"}),(0,n.jsx)("line",{x1:"12",y1:"6",x2:"12",y2:"19"}),(0,n.jsx)("line",{x1:"21",y1:"6",x2:"21",y2:"19"})]}),U)),he=u((0,n.jsxs)("svg",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,n.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),U),pe=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,n.jsx)("circle",{cx:"12",cy:"19",r:"1"}),(0,n.jsx)("circle",{cx:"12",cy:"5",r:"1"})]}),U),oe=u((0,n.jsxs)("svg",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M9 4v6l-2 4v2h10v-2l-2 -4v-6"}),(0,n.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"21"}),(0,n.jsx)("line",{x1:"8",y1:"4",x2:"16",y2:"4"})]}),U),P=u((0,n.jsxs)("g",{children:[(0,n.jsx)("path",{d:"M13.542 8.542H6.458a2.5 2.5 0 0 0-2.5 2.5v3.75a2.5 2.5 0 0 0 2.5 2.5h7.084a2.5 2.5 0 0 0 2.5-2.5v-3.75a2.5 2.5 0 0 0-2.5-2.5Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,n.jsx)("path",{d:"M10 13.958a1.042 1.042 0 1 0 0-2.083 1.042 1.042 0 0 0 0 2.083Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,n.jsx)("mask",{id:"UnlockedIcon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:6,y:1,width:9,height:9,children:(0,n.jsx)("path",{stroke:"none",d:"M6.399 9.561V5.175c0-.93.401-1.823 1.116-2.48a3.981 3.981 0 0 1 2.693-1.028c1.01 0 1.98.37 2.694 1.027.715.658 1.116 1.55 1.116 2.481",fill:"#fff"})}),(0,n.jsx)("g",{mask:"url(#UnlockedIcon)",children:(0,n.jsx)("path",{stroke:"none",d:"M5.149 9.561v1.25h2.5v-1.25h-2.5Zm5.06-7.894V.417v1.25Zm2.559 3.508v1.25h2.5v-1.25h-2.5ZM7.648 8.51V5.175h-2.5V8.51h2.5Zm0-3.334c0-.564.243-1.128.713-1.561L6.668 1.775c-.959.883-1.52 2.104-1.52 3.4h2.5Zm.713-1.561a2.732 2.732 0 0 1 1.847-.697v-2.5c-1.31 0-2.585.478-3.54 1.358L8.36 3.614Zm1.847-.697c.71 0 1.374.26 1.847.697l1.694-1.839a5.231 5.231 0 0 0-3.54-1.358v2.5Zm1.847.697c.47.433.713.997.713 1.561h2.5c0-1.296-.56-2.517-1.52-3.4l-1.693 1.839Z",fill:"currentColor"})})]}),le),$=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M13.542 8.542H6.458a2.5 2.5 0 0 0-2.5 2.5v3.75a2.5 2.5 0 0 0 2.5 2.5h7.084a2.5 2.5 0 0 0 2.5-2.5v-3.75a2.5 2.5 0 0 0-2.5-2.5Z"}),(0,n.jsx)("path",{d:"M10 13.958a1.042 1.042 0 1 0 0-2.083 1.042 1.042 0 0 0 0 2.083Z"}),(0,n.jsx)("path",{d:"M6.667 8.333V5.417C6.667 3.806 8.159 2.5 10 2.5c1.841 0 3.333 1.306 3.333 2.917v2.916"})]}),le),b=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M38.5 83.5c-14-2-17.833-10.473-21-22.5C14.333 48.984 12 22 12 12.5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m12.005 10.478 7.905 14.423L6 25.75l6.005-15.273Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M12.005 10.478c1.92 3.495 3.838 7 7.905 14.423m-7.905-14.423c3.11 5.683 6.23 11.368 7.905 14.423m0 0c-3.68.226-7.35.455-13.91.85m13.91-.85c-5.279.33-10.566.647-13.91.85m0 0c1.936-4.931 3.882-9.86 6.005-15.273M6 25.75c2.069-5.257 4.135-10.505 6.005-15.272",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),{width:41,height:94,fill:"none"}),R=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M18.026 1.232c-5.268 13.125-5.548 33.555 3.285 42.311 8.823 8.75 33.31 12.304 42.422 13.523",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m72.181 59.247-13.058-10-2.948 13.62 16.006-3.62Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M72.181 59.247c-3.163-2.429-6.337-4.856-13.058-10m13.058 10c-5.145-3.936-10.292-7.882-13.058-10m0 0c-.78 3.603-1.563 7.196-2.948 13.62m2.948-13.62c-1.126 5.168-2.24 10.346-2.948 13.62m0 0c5.168-1.166 10.334-2.343 16.006-3.62m-16.006 3.62c5.51-1.248 11.01-2.495 16.006-3.62",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),{width:85,height:71,fill:"none"}),_=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M1 77c14-2 31.833-11.973 35-24 3.167-12.016-6-35-9.5-43.5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m24.165 1.093-2.132 16.309 13.27-4.258-11.138-12.05Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M24.165 1.093c-.522 3.953-1.037 7.916-2.132 16.309m2.131-16.309c-.835 6.424-1.68 12.854-2.13 16.308m0 0c3.51-1.125 7.013-2.243 13.27-4.257m-13.27 4.257c5.038-1.608 10.08-3.232 13.27-4.257m0 0c-3.595-3.892-7.197-7.777-11.14-12.05m11.14 12.05c-3.837-4.148-7.667-8.287-11.14-12.05",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),{width:38,height:78,fill:"none"}),g=(u((0,n.jsx)("g",{fill:"currentColor",children:(0,n.jsx)("path",{d:"M39.9 32.889a.326.326 0 0 0-.279-.056c-2.094-3.083-4.774-6-7.343-8.833l-.419-.472a.212.212 0 0 0-.056-.139.586.586 0 0 0-.167-.111l-.084-.083-.056-.056c-.084-.167-.28-.278-.475-.167-.782.39-1.507.973-2.206 1.528-.92.722-1.842 1.445-2.708 2.25a8.405 8.405 0 0 0-.977 1.028c-.14.194-.028.361.14.444-.615.611-1.23 1.223-1.843 1.861a.315.315 0 0 0-.084.223c0 .083.056.166.111.194l1.09.833v.028c1.535 1.528 4.244 3.611 7.12 5.861.418.334.865.667 1.284 1 .195.223.39.473.558.695.084.11.28.139.391.055.056.056.14.111.196.167a.398.398 0 0 0 .167.056.255.255 0 0 0 .224-.111.394.394 0 0 0 .055-.167c.029 0 .028.028.056.028a.318.318 0 0 0 .224-.084l5.082-5.528a.309.309 0 0 0 0-.444Zm-14.63-1.917a.485.485 0 0 0 .111.14c.586.5 1.2 1 1.843 1.555l-2.569-1.945-.251-.166c-.056-.028-.112-.084-.168-.111l-.195-.167.056-.056.055-.055.112-.111c.866-.861 2.346-2.306 3.1-3.028-.81.805-2.43 3.167-2.095 3.944Zm8.767 6.89-2.122-1.612a44.713 44.713 0 0 0-2.625-2.5c1.145.861 2.122 1.611 2.262 1.75 1.117.972 1.06.806 1.815 1.445l.921.666a1.06 1.06 0 0 1-.251.25Zm.558.416-.056-.028c.084-.055.168-.111.252-.194l-.196.222ZM1.089 5.75c.055.361.14.722.195 1.056.335 1.833.67 3.5 1.284 4.75l.252.944c.084.361.223.806.363.917 1.424 1.25 3.602 3.11 5.947 4.889a.295.295 0 0 0 .363 0s0 .027.028.027a.254.254 0 0 0 .196.084.318.318 0 0 0 .223-.084c2.988-3.305 5.221-6.027 6.813-8.305.112-.111.14-.278.14-.417.111-.111.195-.25.307-.333.111-.111.111-.306 0-.39l-.028-.027c0-.055-.028-.139-.084-.167-.698-.666-1.2-1.138-1.731-1.638-.922-.862-1.871-1.75-3.881-3.75l-.028-.028c-.028-.028-.056-.056-.112-.056-.558-.194-1.703-.389-3.127-.639C6.087 2.223 3.21 1.723.614.944c0 0-.168 0-.196.028l-.083.084c-.028.027-.056.055-.224.11h.056-.056c.028.167.028.278.084.473 0 .055.112.5.112.555l.782 3.556Zm15.496 3.278-.335-.334c.084.112.196.195.335.334Zm-3.546 4.666-.056.056c0-.028.028-.056.056-.056Zm-2.038-10c.168.167.866.834 1.033.973-.726-.334-2.54-1.167-3.379-1.445.838.167 1.983.334 2.346.472ZM1.424 2.306c.419.722.754 3.222 1.089 5.666-.196-.778-.335-1.555-.503-2.278-.251-1.277-.503-2.416-.838-3.416.056 0 .14 0 .252.028Zm-.168-.584c-.112 0-.223-.028-.307-.028 0-.027 0-.055-.028-.055.14 0 .223.028.335.083Zm-1.089.222c0-.027 0-.027 0 0ZM39.453 1.333c.028-.11-.558-.61-.363-.639.42-.027.42-.666 0-.666-.558.028-1.144.166-1.675.25-.977.194-1.982.389-2.96.61-2.205.473-4.383.973-6.561 1.557-.67.194-1.424.333-2.066.666-.224.111-.196.333-.084.472-.056.028-.084.028-.14.056-.195.028-.363.056-.558.083-.168.028-.252.167-.224.334 0 .027.028.083.028.11-1.173 1.556-2.485 3.195-3.909 4.945-1.396 1.611-2.876 3.306-4.356 5.056-4.719 5.5-10.052 11.75-15.943 17.25a.268.268 0 0 0 0 .389c.028.027.056.055.084.055-.084.084-.168.14-.252.222-.056.056-.084.111-.084.167a.605.605 0 0 0-.111.139c-.112.111-.112.305.028.389.111.11.307.11.39-.028.029-.028.029-.056.056-.056a.44.44 0 0 1 .615 0c.335.362.67.723.977 1.028l-.698-.583c-.112-.111-.307-.083-.39.028-.113.11-.085.305.027.389l7.427 6.194c.056.056.112.056.196.056s.14-.028.195-.084l.168-.166c.028.027.083.027.111.027.084 0 .14-.027.196-.083 10.052-10.055 18.15-17.639 27.42-24.417.083-.055.111-.166.111-.25.112 0 .196-.083.251-.194 1.704-5.194 2.039-9.806 2.15-12.083v-.028c0-.028.028-.056.028-.083.028-.056.028-.084.028-.084a1.626 1.626 0 0 0-.111-1.028ZM21.472 9.5c.446-.5.893-1.028 1.34-1.5-2.876 3.778-7.65 9.583-14.408 16.5 4.607-5.083 9.242-10.333 13.068-15ZM5.193 35.778h.084-.084Zm3.462 3.194c-.027-.028-.027-.028 0-.028v.028Zm4.16-3.583c.224-.25.448-.472.699-.722 0 0 0 .027.028.027-.252.223-.475.445-.726.695Zm1.146-1.111c.14-.14.279-.334.446-.5l.028-.028c1.648-1.694 3.351-3.389 5.082-5.111l.028-.028c.419-.333.921-.694 1.368-1.028a379.003 379.003 0 0 0-6.952 6.695ZM24.794 6.472c-.921 1.195-1.954 2.778-2.82 4.028-2.736 3.944-11.532 13.583-11.727 13.75a1976.983 1976.983 0 0 1-8.042 7.639l-.167.167c-.14-.167-.14-.417.028-.556C14.49 19.861 22.03 10.167 25.074 5.917c-.084.194-.14.36-.28.555Zm4.83 5.695c-1.116-.64-1.646-1.64-1.34-2.611l.084-.334c.028-.083.084-.194.14-.277.307-.5.754-.917 1.257-1.167.027 0 .055 0 .083-.028-.028-.056-.028-.139-.028-.222.028-.167.14-.278.335-.278.335 0 1.369.306 1.76.639.111.083.223.194.335.305.14.167.363.445.474.667.056.028.112.306.196.445.056.222.111.472.084.694-.028.028 0 .194-.028.194a2.668 2.668 0 0 1-.363 1.028c-.028.028-.028.056-.056.084l-.028.027c-.14.223-.335.417-.53.556-.643.444-1.369.583-2.095.389 0 0-.195-.084-.28-.111Zm8.154-.834a39.098 39.098 0 0 1-.893 3.167c0 .028-.028.083 0 .111-.056 0-.084.028-.14.056-2.206 1.61-4.356 3.305-6.506 5.028 1.843-1.64 3.686-3.306 5.613-4.945.558-.5.949-1.139 1.06-1.861l.28-1.667v-.055c.14-.334.67-.195.586.166Z",fill:"currentColor"})}),{width:40,height:40,fill:"none"}),u((0,n.jsxs)("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M6 6l4.153 11.793a0.365 .365 0 0 0 .331 .207a0.366 .366 0 0 0 .332 -.207l2.184 -4.793l4.787 -1.994a0.355 .355 0 0 0 .213 -.323a0.355 .355 0 0 0 -.213 -.323l-11.787 -4.36z"}),(0,n.jsx)("path",{d:"M13.5 13.5l4.5 4.5"})]}),{fill:"none",width:22,height:22,strokeWidth:1.25})),O=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"})]}),U),s=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M10.5 20.4l-6.9 -6.9c-.781 -.781 -.781 -2.219 0 -3l6.9 -6.9c.781 -.781 2.219 -.781 3 0l6.9 6.9c.781 .781 .781 2.219 0 3l-6.9 6.9c-.781 .781 -2.219 .781 -3 0z"})]}),U),f=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("circle",{cx:"12",cy:"12",r:"9"})]}),U),t=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),(0,n.jsx)("line",{x1:"15",y1:"16",x2:"19",y2:"12"}),(0,n.jsx)("line",{x1:"15",y1:"8",x2:"19",y2:"12"})]}),U),w=u((0,n.jsx)("path",{d:"M4.167 10h11.666",strokeWidth:"1.5"}),le),l=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M20 17v-12c0 -1.121 -.879 -2 -2 -2s-2 .879 -2 2v12l2 2l2 -2z"}),(0,n.jsx)("path",{d:"M16 7h4"}),(0,n.jsx)("path",{d:"M18 19h-13a2 2 0 1 1 0 -4h4a2 2 0 1 0 0 -4h-3"})]}),U),a=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{clipRule:"evenodd",d:"m7.643 15.69 7.774-7.773a2.357 2.357 0 1 0-3.334-3.334L4.31 12.357a3.333 3.333 0 0 0-.977 2.357v1.953h1.953c.884 0 1.732-.352 2.357-.977Z"}),(0,n.jsx)("path",{d:"m11.25 5.417 3.333 3.333"})]}),le),c=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"4",y1:"20",x2:"7",y2:"20"}),(0,n.jsx)("line",{x1:"14",y1:"20",x2:"21",y2:"20"}),(0,n.jsx)("line",{x1:"6.9",y1:"15",x2:"13.8",y2:"15"}),(0,n.jsx)("line",{x1:"10.2",y1:"6.3",x2:"16",y2:"20"}),(0,n.jsx)("polyline",{points:"5 20 11 4 13 4 20 20"})]}),U),m=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M12.5 6.667h.01"}),(0,n.jsx)("path",{d:"M4.91 2.625h10.18a2.284 2.284 0 0 1 2.285 2.284v10.182a2.284 2.284 0 0 1-2.284 2.284H4.909a2.284 2.284 0 0 1-2.284-2.284V4.909a2.284 2.284 0 0 1 2.284-2.284Z"}),(0,n.jsx)("path",{d:"m3.333 12.5 3.334-3.333c.773-.745 1.726-.745 2.5 0l4.166 4.166"}),(0,n.jsx)("path",{d:"m11.667 11.667.833-.834c.774-.744 1.726-.744 2.5 0l1.667 1.667"})]}),le),z=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3"}),(0,n.jsx)("path",{d:"M18 13.3l-6.3 -6.3"})]}),U),j=u((0,n.jsx)("path",{strokeWidth:"1.25",d:"M10 4.167v11.666M4.167 10h11.666"}),le),k=u((0,n.jsx)("path",{d:"M5 10h10",strokeWidth:"1.25"}),le),x=u((0,n.jsx)("path",{strokeWidth:"1.25",d:"M3.333 5.833h13.334M8.333 9.167v5M11.667 9.167v5M4.167 5.833l.833 10c0 .92.746 1.667 1.667 1.667h6.666c.92 0 1.667-.746 1.667-1.667l.833-10M7.5 5.833v-2.5c0-.46.373-.833.833-.833h3.334c.46 0 .833.373.833.833v2.5"}),le),N=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("polyline",{points:"12 16 18 10 12 4"}),(0,n.jsx)("polyline",{points:"8 4 2 10 8 16"})]}),le),G=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M14.375 6.458H8.958a2.5 2.5 0 0 0-2.5 2.5v5.417a2.5 2.5 0 0 0 2.5 2.5h5.417a2.5 2.5 0 0 0 2.5-2.5V8.958a2.5 2.5 0 0 0-2.5-2.5Z"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M11.667 3.125c.517 0 .986.21 1.325.55.34.338.55.807.55 1.325v1.458H8.333c-.485 0-.927.185-1.26.487-.343.312-.57.75-.609 1.24l-.005 5.357H5a1.87 1.87 0 0 1-1.326-.55 1.87 1.87 0 0 1-.549-1.325V5c0-.518.21-.987.55-1.326.338-.34.807-.549 1.325-.549h6.667Z"})]}),le),ie=u((0,n.jsx)("path",{clipRule:"evenodd",d:"M10 2.5h.328a6.25 6.25 0 0 0 6.6 10.372A7.5 7.5 0 1 1 10 2.493V2.5Z",stroke:"currentColor"}),le),V=u((0,n.jsx)("g",{stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("path",{d:"M10 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM10 4.167V2.5M14.167 5.833l1.166-1.166M15.833 10H17.5M14.167 14.167l1.166 1.166M10 15.833V17.5M5.833 14.167l-1.166 1.166M5 10H3.333M5.833 5.833 4.667 4.667"})}),le),ce=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"4",y1:"6",x2:"20",y2:"6"}),(0,n.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12"}),(0,n.jsx)("line",{x1:"4",y1:"18",x2:"20",y2:"18"})]}),U),te=u((0,n.jsx)("path",{strokeWidth:"1.25",d:"M3.333 14.167v1.666c0 .92.747 1.667 1.667 1.667h10c.92 0 1.667-.746 1.667-1.667v-1.666M5.833 9.167 10 13.333l4.167-4.166M10 3.333v10"}),le),L=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,n.jsx)("line",{x1:"12",y1:"17",x2:"12",y2:"17.01"}),(0,n.jsx)("path",{d:"M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4"})]}),U),re=u((0,n.jsx)("path",{strokeWidth:"1.25",d:"M9.167 5.833H5.833c-1.254 0-2.5 1.282-2.5 2.5v5.834c0 1.283 1.252 2.5 2.5 2.5h5.834c1.251 0 2.5-1.25 2.5-2.5v-3.334M8.333 11.667l8.334-8.334M12.5 3.333h4.167V7.5"}),le),me=u((0,n.jsx)("path",{d:"M7.5 15.833c-3.583 1.167-3.583-2.083-5-2.5m10 4.167v-2.917c0-.833.083-1.166-.417-1.666 2.334-.25 4.584-1.167 4.584-5a3.833 3.833 0 0 0-1.084-2.667 3.5 3.5 0 0 0-.083-2.667s-.917-.25-2.917 1.084a10.25 10.25 0 0 0-5.166 0C5.417 2.333 4.5 2.583 4.5 2.583a3.5 3.5 0 0 0-.083 2.667 3.833 3.833 0 0 0-1.084 2.667c0 3.833 2.25 4.75 4.584 5-.5.5-.5 1-.417 1.666V17.5",strokeWidth:"1.25"}),le),Ce=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M7.5 10.833a.833.833 0 1 0 0-1.666.833.833 0 0 0 0 1.666ZM12.5 10.833a.833.833 0 1 0 0-1.666.833.833 0 0 0 0 1.666ZM6.25 6.25c2.917-.833 4.583-.833 7.5 0M5.833 13.75c2.917.833 5.417.833 8.334 0"}),(0,n.jsx)("path",{d:"M12.917 14.167c0 .833 1.25 2.5 1.666 2.5 1.25 0 2.361-1.39 2.917-2.5.556-1.39.417-4.861-1.25-9.584-1.214-.846-2.5-1.116-3.75-1.25l-.833 2.084M7.083 14.167c0 .833-1.13 2.5-1.526 2.5-1.191 0-2.249-1.39-2.778-2.5-.529-1.39-.397-4.861 1.19-9.584 1.157-.846 2.318-1.116 3.531-1.25l.833 2.084"})]}),le),We=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c-.002 -.249 1.51 -2.772 1.818 -4.013z"})]}),U),Te=u((0,n.jsx)("polyline",{fill:"none",stroke:"currentColor",points:"20 6 9 17 4 12"}),{width:24,height:24}),we=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M8.333 11.667a2.917 2.917 0 0 0 4.167 0l3.333-3.334a2.946 2.946 0 1 0-4.166-4.166l-.417.416"}),(0,n.jsx)("path",{d:"M11.667 8.333a2.917 2.917 0 0 0-4.167 0l-3.333 3.334a2.946 2.946 0 0 0 4.166 4.166l.417-.416"})]}),le),xe=u("M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z",{width:448,height:512}),_e=u("M252 54L203 8a28 27 0 00-20-8H28C12 0 0 12 0 27v195c0 15 12 26 28 26h204c15 0 28-11 28-26V73a28 27 0 00-8-19zM130 213c-21 0-37-16-37-36 0-19 16-35 37-35 20 0 37 16 37 35 0 20-17 36-37 36zm56-169v56c0 4-4 6-7 6H44c-4 0-7-2-7-6V42c0-4 3-7 7-7h133l4 2 3 2a7 7 0 012 5z M296 201l87 95-188 205-78 9c-10 1-19-8-18-20l9-84zm141-14l-41-44a31 31 0 00-46 0l-38 41 87 95 38-42c13-14 13-36 0-50z",{width:448,height:512}),Oe=u((0,n.jsx)("path",{d:"m9.257 6.351.183.183H15.819c.34 0 .727.182 1.051.506.323.323.505.708.505 1.05v5.819c0 .316-.183.7-.52 1.035-.337.338-.723.522-1.037.522H4.182c-.352 0-.74-.181-1.058-.5-.318-.318-.499-.705-.499-1.057V5.182c0-.351.181-.736.5-1.054.32-.321.71-.503 1.057-.503H6.53l2.726 2.726Z",strokeWidth:"1.25"}),le),J=(u("M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z",{width:384,height:512}),u("M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z")),ke=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M15 8h.01"}),(0,n.jsx)("path",{d:"M12 20h-5a3 3 0 0 1 -3 -3v-10a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v5"}),(0,n.jsx)("path",{d:"M4 15l4 -4c.928 -.893 2.072 -.893 3 0l4 4"}),(0,n.jsx)("path",{d:"M14 14l1 -1c.617 -.593 1.328 -.793 2.009 -.598"}),(0,n.jsx)("path",{d:"M19 16v6"}),(0,n.jsx)("path",{d:"M22 19l-3 3l-3 -3"})]}),U),q=u("M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z",{width:512,height:512}),o=(u("M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z",{width:448,height:512}),u("M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z",{width:448,height:512}),u("M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z")),i=(u("M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"),u((0,n.jsx)("path",{d:"M7.5 10.833 4.167 7.5 7.5 4.167M4.167 7.5h9.166a3.333 3.333 0 0 1 0 6.667H12.5",strokeWidth:"1.25"}),le)),p=u((0,n.jsx)("path",{d:"M12.5 10.833 15.833 7.5 12.5 4.167M15.833 7.5H6.667a3.333 3.333 0 1 0 0 6.667H7.5",strokeWidth:"1.25"}),le),B=u("M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z",{mirror:!0}),A=(u((0,n.jsx)("path",{d:"M5 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM15 7.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM15 17.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM7.25 8.917l5.5-2.834M7.25 11.083l5.5 2.834",strokeWidth:"1.5"}),le),u("M16 5l-1.42 1.42-1.59-1.59V16h-1.98V4.83L9.42 6.42 8 5l4-4 4 4zm4 5v11c0 1.1-.9 2-2 2H6c-1.11 0-2-.9-2-2V10c0-1.11.89-2 2-2h3v2H6v11h12V10h-3V8h3c1.1 0 2 .89 2 2z",{width:24,height:24}),u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{fill:"currentColor",d:"M40 5.6v6.1l-4.1.7c-8.9 1.4-16.5 6.9-20.6 15C13 32 10.9 43 12.4 43c.4 0 2.4-1.3 4.4-3 5-3.9 12.1-7 18.2-7.7l5-.6v12.8l11.2-11.3L62.5 22 51.2 10.8 40-.5v6.1zm10.2 22.6L44 34.5v-6.8l-6.9.6c-3.9.3-9.8 1.7-13.2 3.1-3.5 1.4-6.5 2.4-6.7 2.2-.9-1 3-7.5 6.4-10.8C28 18.6 34.4 16 40.1 16c3.7 0 3.9-.1 3.9-3.2V9.5l6.2 6.3 6.3 6.2-6.3 6.2z"}),(0,n.jsx)("path",{stroke:"currentColor",fill:"currentColor",d:"M0 36v20h48v-6.2c0-6 0-6.1-2-4.3-1.1 1-2 2.9-2 4.2V52H4V34c0-17.3-.1-18-2-18s-2 .7-2 20z"})]}),{width:64,height:64}),u((0,n.jsx)("path",{stroke:"currentColor",strokeWidth:"40",fill:"currentColor",d:"M148 560a318 318 0 0 0 522 110 316 316 0 0 0 0-450 316 316 0 0 0-450 0c-11 11-21 22-30 34v4h47c25 0 46 21 46 46s-21 45-46 45H90c-13 0-25-6-33-14-9-9-14-20-14-33V156c0-25 20-45 45-45s45 20 45 45v32l1 1a401 401 0 0 1 623 509l212 212a42 42 0 0 1-59 59L698 757A401 401 0 0 1 65 570a42 42 0 0 1 83-10z"}),{width:1024}),u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{d:"M13.889 4.167H8.333c-.767 0-1.389.622-1.389 1.389v5.555c0 .767.622 1.389 1.39 1.389h5.555c.767 0 1.389-.622 1.389-1.389V5.556c0-.767-.622-1.39-1.39-1.39Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M12.5 12.5v1.389a1.389 1.389 0 0 1-1.389 1.389H5.556a1.389 1.389 0 0 1-1.39-1.39V8.334a1.389 1.389 0 0 1 1.39-1.389h1.388"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le)),X=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.944 12.5H12.5v1.389a1.389 1.389 0 0 1-1.389 1.389H5.556a1.389 1.389 0 0 1-1.39-1.39V8.334a1.389 1.389 0 0 1 1.39-1.389h1.388",fill:"currentColor"}),(0,n.jsx)("path",{d:"M13.889 4.167H8.333c-.767 0-1.389.621-1.389 1.389v5.555c0 .767.622 1.389 1.39 1.389h5.555c.767 0 1.389-.622 1.389-1.389V5.556c0-.768-.622-1.39-1.39-1.39Z"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),Y=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M8.775 6.458h2.45a2.316 2.316 0 0 1 2.317 2.316v2.452a2.316 2.316 0 0 1-2.316 2.316H8.774a2.316 2.316 0 0 1-2.317-2.316V8.774a2.316 2.316 0 0 1 2.317-2.316Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M5.441 9.792h2.451a2.316 2.316 0 0 1 2.316 2.316v2.45a2.316 2.316 0 0 1-2.316 2.317h-2.45a2.316 2.316 0 0 1-2.317-2.316v-2.451a2.316 2.316 0 0 1 2.316-2.316ZM12.108 3.125h2.45a2.316 2.316 0 0 1 2.317 2.316v2.451a2.316 2.316 0 0 1-2.316 2.316h-2.451a2.316 2.316 0 0 1-2.316-2.316v-2.45a2.316 2.316 0 0 1 2.316-2.317Z"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),ee=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",children:[(0,n.jsx)("path",{d:"M5.441 9.792h2.451a2.316 2.316 0 0 1 2.316 2.316v2.45a2.316 2.316 0 0 1-2.316 2.317h-2.45a2.316 2.316 0 0 1-2.317-2.316v-2.451a2.316 2.316 0 0 1 2.316-2.316Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,n.jsx)("path",{d:"M5.441 9.792h2.451a2.316 2.316 0 0 1 2.316 2.316v2.45a2.316 2.316 0 0 1-2.316 2.317h-2.45a2.316 2.316 0 0 1-2.317-2.316v-2.451a2.316 2.316 0 0 1 2.316-2.316Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,n.jsx)("mask",{id:"SendToBackIcon",fill:"#fff",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.167 5.833v2.06a2.941 2.941 0 0 0 2.94 2.94h2.06v.393a2.941 2.941 0 0 1-2.941 2.94h-.393v-2.058a2.941 2.941 0 0 0-2.94-2.941h-2.06v-.393a2.941 2.941 0 0 1 2.942-2.94h.392Z"})}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.167 5.833v2.06a2.941 2.941 0 0 0 2.94 2.94h2.06v.393a2.941 2.941 0 0 1-2.941 2.94h-.393v-2.058a2.941 2.941 0 0 0-2.94-2.941h-2.06v-.393a2.941 2.941 0 0 1 2.942-2.94h.392Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M9.167 5.833h1.25v-1.25h-1.25v1.25Zm5 5h1.25v-1.25h-1.25v1.25Zm-3.334 3.334h-1.25v1.25h1.25v-1.25Zm-5-5h-1.25v1.25h1.25v-1.25Zm2.084-3.334v2.06h2.5v-2.06h-2.5Zm0 2.06a4.191 4.191 0 0 0 4.19 4.19v-2.5a1.691 1.691 0 0 1-1.69-1.69h-2.5Zm4.19 4.19h2.06v-2.5h-2.06v2.5Zm.81-1.25v.393h2.5v-.393h-2.5Zm0 .393c0 .933-.758 1.69-1.691 1.69v2.5a4.191 4.191 0 0 0 4.19-4.19h-2.5Zm-1.691 1.69h-.393v2.5h.393v-2.5Zm.857 1.25v-2.058h-2.5v2.059h2.5Zm0-2.058a4.191 4.191 0 0 0-4.19-4.191v2.5c.933 0 1.69.757 1.69 1.69h2.5Zm-4.19-4.191h-2.06v2.5h2.06v-2.5Zm-.81 1.25v-.393h-2.5v.393h2.5Zm0-.393c0-.934.758-1.69 1.692-1.69v-2.5a4.191 4.191 0 0 0-4.192 4.19h2.5Zm1.692-1.69h.392v-2.5h-.392v2.5Z",fill:"currentColor",mask:"url(#SendToBackIcon)"}),(0,n.jsx)("path",{d:"M12.108 3.125h2.45a2.316 2.316 0 0 1 2.317 2.316v2.451a2.316 2.316 0 0 1-2.316 2.316h-2.451a2.316 2.316 0 0 1-2.316-2.316v-2.45a2.316 2.316 0 0 1 2.316-2.317Z",stroke:"currentColor",strokeWidth:"1.25"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),ge=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M3.333 3.333h13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M13.542 6.458h-.417c-.92 0-1.667.747-1.667 1.667v7.083c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667V8.125c0-.92-.746-1.667-1.666-1.667ZM6.875 6.458h-.417c-.92 0-1.666.747-1.666 1.667v3.75c0 .92.746 1.667 1.666 1.667h.417c.92 0 1.667-.746 1.667-1.667v-3.75c0-.92-.747-1.667-1.667-1.667Z"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),be=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M3.333 16.667h13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M6.875 3.125h-.417c-.92 0-1.666.746-1.666 1.667v7.083c0 .92.746 1.667 1.666 1.667h.417c.92 0 1.667-.746 1.667-1.667V4.792c0-.92-.747-1.667-1.667-1.667ZM13.542 5.817h-.417c-.92 0-1.667.747-1.667 1.667v4.391c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667V7.484c0-.92-.746-1.667-1.666-1.667Z"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),Re=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M3.333 3.333v13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M15.208 4.792H8.125c-.92 0-1.667.746-1.667 1.666v.417c0 .92.747 1.667 1.667 1.667h7.083c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666ZM12.516 11.458H8.125c-.92 0-1.667.746-1.667 1.667v.417c0 .92.747 1.666 1.667 1.666h4.391c.92 0 1.667-.746 1.667-1.666v-.417c0-.92-.746-1.667-1.667-1.667Z"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),Ze=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M16.667 3.333v13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M11.875 4.792H4.792c-.92 0-1.667.746-1.667 1.666v.417c0 .92.746 1.667 1.667 1.667h7.083c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666ZM11.683 11.458H7.292c-.92 0-1.667.746-1.667 1.667v.417c0 .92.746 1.666 1.667 1.666h4.39c.921 0 1.667-.746 1.667-1.666v-.417c0-.92-.746-1.667-1.666-1.667Z"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),Be=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M16.667 3.333v13.334M3.333 3.333v13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M14.375 10.208v-.416c0-.92-.746-1.667-1.667-1.667H7.292c-.92 0-1.667.746-1.667 1.667v.416c0 .92.746 1.667 1.667 1.667h5.416c.92 0 1.667-.746 1.667-1.667Z"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),Ie=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M3.333 3.333h13.334M3.333 16.667h13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M10.208 5.625h-.416c-.92 0-1.667.746-1.667 1.667v5.416c0 .92.746 1.667 1.667 1.667h.416c.92 0 1.667-.746 1.667-1.667V7.292c0-.92-.746-1.667-1.667-1.667Z"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),Ke=u((0,n.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M1.667 10h2.916",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M8.333 10h3.334",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M15.417 10h2.916",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M6.875 4.792h-.417c-.92 0-1.666.746-1.666 1.666v7.084c0 .92.746 1.666 1.666 1.666h.417c.92 0 1.667-.746 1.667-1.666V6.458c0-.92-.747-1.666-1.667-1.666ZM13.542 6.458h-.417c-.92 0-1.667.747-1.667 1.667v3.75c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667v-3.75c0-.92-.746-1.667-1.666-1.667Z"})]}),le),Ye=u((0,n.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M10 18.333v-2.916",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M10 11.667V8.333",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M10 4.583V1.667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M4.792 13.125v.417c0 .92.746 1.666 1.666 1.666h7.084c.92 0 1.666-.746 1.666-1.666v-.417c0-.92-.746-1.667-1.666-1.667H6.458c-.92 0-1.666.746-1.666 1.667ZM6.458 6.458v.417c0 .92.747 1.667 1.667 1.667h3.75c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666h-3.75c-.92 0-1.667.746-1.667 1.666Z"})]}),le),tt=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("circle",{cx:"9",cy:"7",r:"4"}),(0,n.jsx)("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),(0,n.jsx)("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),(0,n.jsx)("path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"})]}),U),ue=(u("M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z"),u("M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm96 328c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16v160z"),u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("path",{d:"M15 5 5 15M5 5l10 10"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le)),ve=u("M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z",{width:320,height:512,style:{marginLeft:"-0.2rem"},mirror:!0}),De=(u("M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z",{mirror:!0}),u("M11.553 22.894a.998.998 0 00.894 0s3.037-1.516 5.465-4.097C19.616 16.987 21 14.663 21 12V5a1 1 0 00-.649-.936l-8-3a.998.998 0 00-.702 0l-8 3A1 1 0 003 5v7c0 2.663 1.384 4.987 3.088 6.797 2.428 2.581 5.465 4.097 5.465 4.097zm-1.303-8.481l6.644-6.644a.856.856 0 111.212 1.212l-7.25 7.25a.856.856 0 01-1.212 0l-3.75-3.75a.856.856 0 111.212-1.212l3.144 3.144z",{width:24}),u("M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm32-48h224V288l-23.5-23.5c-4.7-4.7-12.3-4.7-17 0L176 352l-39.5-39.5c-4.7-4.7-12.3-4.7-17 0L80 352v64zm48-240c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z",{width:384,height:512}),h().memo(function(or){var lr=or.theme;return u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M25 26H111V111H25",fill:"var(--icon-fill-color)"}),(0,n.jsx)("path",{d:"M25 111C25 80.2068 25 49.4135 25 26M25 26C48.6174 26 72.2348 26 111 26H25ZM25 26C53.3671 26 81.7343 26 111 26H25ZM111 26C111 52.303 111 78.606 111 111V26ZM111 26C111 51.2947 111 76.5893 111 111V26ZM111 111C87.0792 111 63.1585 111 25 111H111ZM111 111C87.4646 111 63.9293 111 25 111H111ZM25 111C25 81.1514 25 51.3028 25 26V111Z",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,n.jsx)("path",{d:"M100 100H160V160H100",fill:"var(--icon-fill-color)"}),(0,n.jsx)("path",{d:"M100 160C100 144.106 100 128.211 100 100M100 100C117.706 100 135.412 100 160 100H100ZM100 100C114.214 100 128.428 100 160 100H100ZM160 100C160 120.184 160 140.369 160 160V100ZM160 100C160 113.219 160 126.437 160 160V100ZM160 160C145.534 160 131.068 160 100 160H160ZM160 160C143.467 160 126.934 160 100 160H160ZM100 160C100 143.661 100 127.321 100 100V160Z",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,n.jsxs)("g",{fill:W(lr),stroke:"var(--icon-fill-color)",strokeWidth:"6",children:[(0,n.jsx)("rect",{x:"2.5",y:"2.5",width:"30",height:"30"}),(0,n.jsx)("rect",{x:"2.5",y:"149.5",width:"30",height:"30"}),(0,n.jsx)("rect",{x:"147.5",y:"149.5",width:"30",height:"30"}),(0,n.jsx)("rect",{x:"147.5",y:"2.5",width:"30",height:"30"})]})]}),{width:182,height:182,mirror:!0})})),He=h().memo(function(or){var lr=or.theme;return u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M25 26H111V111H25",fill:"var(--icon-fill-color)"}),(0,n.jsx)("path",{d:"M25 111C25 80.2068 25 49.4135 25 26M25 26C48.6174 26 72.2348 26 111 26H25ZM25 26C53.3671 26 81.7343 26 111 26H25ZM111 26C111 52.303 111 78.606 111 111V26ZM111 26C111 51.2947 111 76.5893 111 111V26ZM111 111C87.0792 111 63.1585 111 25 111H111ZM111 111C87.4646 111 63.9293 111 25 111H111ZM25 111C25 81.1514 25 51.3028 25 26V111Z",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,n.jsx)("path",{d:"M100 100H160V160H100",fill:"var(--icon-fill-color)"}),(0,n.jsx)("path",{d:"M100 160C100 144.106 100 128.211 100 100M100 100C117.706 100 135.412 100 160 100H100ZM100 100C114.214 100 128.428 100 160 100H100ZM160 100C160 120.184 160 140.369 160 160V100ZM160 100C160 113.219 160 126.437 160 160V100ZM160 160C145.534 160 131.068 160 100 160H160ZM160 160C143.467 160 126.934 160 100 160H160ZM100 160C100 143.661 100 127.321 100 100V160Z",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,n.jsxs)("g",{fill:W(lr),stroke:"var(--icon-fill-color)",strokeWidth:"6",children:[(0,n.jsx)("rect",{x:"2.5",y:"2.5",width:"30",height:"30"}),(0,n.jsx)("rect",{x:"78.5",y:"149.5",width:"30",height:"30"}),(0,n.jsx)("rect",{x:"147.5",y:"149.5",width:"30",height:"30"}),(0,n.jsx)("rect",{x:"147.5",y:"78.5",width:"30",height:"30"}),(0,n.jsx)("rect",{x:"105.5",y:"2.5",width:"30",height:"30"}),(0,n.jsx)("rect",{x:"2.5",y:"102.5",width:"30",height:"30"})]})]}),{width:182,height:182,mirror:!0})}),Je=u((0,n.jsx)("g",{strokeWidth:1.25,children:(0,n.jsx)("path",{d:"M5.879 2.625h8.242a3.27 3.27 0 0 1 3.254 3.254v8.242a3.27 3.27 0 0 1-3.254 3.254H5.88a3.27 3.27 0 0 1-3.254-3.254V5.88A3.27 3.27 0 0 1 5.88 2.626l-.001-.001ZM4.518 16.118l7.608-12.83m.198 13.934 5.051-9.897M2.778 9.675l9.348-6.387m-7.608 12.83 12.857-8.793"})}),le),qe=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,n.jsx)("mask",{id:"FillHachureIcon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:2,y:2,width:16,height:16,children:(0,n.jsx)("path",{d:"M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.25"})}),(0,n.jsx)("g",{mask:"url(#FillHachureIcon)",children:(0,n.jsx)("path",{d:"M2.258 15.156 15.156 2.258M7.324 20.222 20.222 7.325m-20.444 5.35L12.675-.222m-8.157 18.34L17.416 5.22",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})})]}),le),st=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",children:[(0,n.jsx)("path",{d:"M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,n.jsx)("mask",{id:"FillCrossHatchIcon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:-1,y:-1,width:22,height:22,children:(0,n.jsx)("path",{d:"M2.426 15.044 15.044 2.426M7.383 20 20 7.383M0 12.617 12.617 0m-7.98 17.941L17.256 5.324m-2.211 12.25L2.426 4.956M20 12.617 7.383 0m5.234 20L0 7.383m17.941 7.98L5.324 2.745",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,n.jsx)("g",{mask:"url(#FillCrossHatchIcon)",children:(0,n.jsx)("path",{d:"M14.121 2H5.88A3.879 3.879 0 0 0 2 5.879v8.242A3.879 3.879 0 0 0 5.879 18h8.242A3.879 3.879 0 0 0 18 14.121V5.88A3.879 3.879 0 0 0 14.121 2Z",fill:"currentColor"})})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),ht=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("g",{clipPath:"url(#a)",children:(0,n.jsx)("path",{d:"M4.91 2.625h10.18a2.284 2.284 0 0 1 2.285 2.284v10.182a2.284 2.284 0 0 1-2.284 2.284H4.909a2.284 2.284 0 0 1-2.284-2.284V4.909a2.284 2.284 0 0 1 2.284-2.284Z",stroke:"currentColor",strokeWidth:"1.25"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),H(H({},le),{},{fill:"currentColor"})),et=u((0,n.jsx)(n.Fragment,{children:(0,n.jsx)("path",{d:"M4.167 10h11.666",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),le),wt=u((0,n.jsx)("path",{d:"M5 10h10",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),le),Lt=u((0,n.jsx)("path",{d:"M5 10h10",stroke:"currentColor",strokeWidth:"3.75",strokeLinecap:"round",strokeLinejoin:"round"}),le),St=u((0,n.jsxs)("g",{strokeWidth:"2",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M5 12h2"}),(0,n.jsx)("path",{d:"M17 12h2"}),(0,n.jsx)("path",{d:"M11 12h2"})]}),U),yt=u((0,n.jsxs)("g",{strokeWidth:"2",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M4 12v.01"}),(0,n.jsx)("path",{d:"M8 12v.01"}),(0,n.jsx)("path",{d:"M12 12v.01"}),(0,n.jsx)("path",{d:"M16 12v.01"}),(0,n.jsx)("path",{d:"M20 12v.01"})]}),U),Wt=u((0,n.jsx)("path",{d:"M2.5 12.038c1.655-.885 5.9-3.292 8.568-4.354 2.668-1.063.101 2.821 1.32 3.104 1.218.283 5.112-1.814 5.112-1.814",strokeWidth:"1.25"}),le),Ft=u((0,n.jsx)("path",{d:"M2.5 12.563c1.655-.886 5.9-3.293 8.568-4.355 2.668-1.062.101 2.822 1.32 3.105 1.218.283 5.112-1.814 5.112-1.814m-13.469 2.23c2.963-1.586 6.13-5.62 7.468-4.998 1.338.623-1.153 4.11-.132 5.595 1.02 1.487 6.133-1.43 6.133-1.43",strokeWidth:"1.25"}),le),Ve=u((0,n.jsx)("path",{d:"M2.5 11.936c1.737-.879 8.627-5.346 10.42-5.268 1.795.078-.418 5.138.345 5.736.763.598 3.53-1.789 4.235-2.147M2.929 9.788c1.164-.519 5.47-3.28 6.987-3.114 1.519.165 1 3.827 2.121 4.109 1.122.281 3.839-2.016 4.606-2.42",strokeWidth:"1.25"}),le),bt=u((0,n.jsxs)("svg",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{d:"M3.33334 9.99998V6.66665C3.33334 6.04326 3.33403 4.9332 3.33539 3.33646C4.95233 3.33436 6.06276 3.33331 6.66668 3.33331H10"}),(0,n.jsx)("path",{d:"M13.3333 3.33331V3.34331"}),(0,n.jsx)("path",{d:"M16.6667 3.33331V3.34331"}),(0,n.jsx)("path",{d:"M16.6667 6.66669V6.67669"}),(0,n.jsx)("path",{d:"M16.6667 10V10.01"}),(0,n.jsx)("path",{d:"M3.33334 13.3333V13.3433"}),(0,n.jsx)("path",{d:"M16.6667 13.3333V13.3433"}),(0,n.jsx)("path",{d:"M3.33334 16.6667V16.6767"}),(0,n.jsx)("path",{d:"M6.66666 16.6667V16.6767"}),(0,n.jsx)("path",{d:"M10 16.6667V16.6767"}),(0,n.jsx)("path",{d:"M13.3333 16.6667V16.6767"}),(0,n.jsx)("path",{d:"M16.6667 16.6667V16.6767"})]}),le),at=u((0,n.jsxs)("g",{strokeWidth:"1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M4 12v-4a4 4 0 0 1 4 -4h4"}),(0,n.jsx)("line",{x1:"16",y1:"4",x2:"16",y2:"4.01"}),(0,n.jsx)("line",{x1:"20",y1:"4",x2:"20",y2:"4.01"}),(0,n.jsx)("line",{x1:"20",y1:"8",x2:"20",y2:"8.01"}),(0,n.jsx)("line",{x1:"20",y1:"12",x2:"20",y2:"12.01"}),(0,n.jsx)("line",{x1:"4",y1:"16",x2:"4",y2:"16.01"}),(0,n.jsx)("line",{x1:"20",y1:"16",x2:"20",y2:"16.01"}),(0,n.jsx)("line",{x1:"4",y1:"20",x2:"4",y2:"20.01"}),(0,n.jsx)("line",{x1:"8",y1:"20",x2:"8",y2:"20.01"}),(0,n.jsx)("line",{x1:"12",y1:"20",x2:"12",y2:"20.01"}),(0,n.jsx)("line",{x1:"16",y1:"20",x2:"16",y2:"20.01"}),(0,n.jsx)("line",{x1:"20",y1:"20",x2:"20",y2:"20.01"})]}),U),mt=u((0,n.jsx)("path",{d:"M6 10H34",stroke:"currentColor",strokeWidth:2,fill:"none"}),{width:40,height:20}),ut=h().memo(function(or){var lr=or.flip,gr=lr!==void 0&&lr;return u((0,n.jsxs)("g",{transform:gr?"translate(40, 0) scale(-1, 1)":"",stroke:"currentColor",strokeWidth:2,fill:"none",children:[(0,n.jsx)("path",{d:"M34 10H6M34 10L27 5M34 10L27 15"}),(0,n.jsx)("path",{d:"M27.5 5L34.5 10L27.5 15"})]}),{width:40,height:20})}),Ot=h().memo(function(or){var lr=or.flip,gr=lr!==void 0&&lr;return u((0,n.jsxs)("g",{stroke:"currentColor",fill:"currentColor",transform:gr?"translate(40, 0) scale(-1, 1)":"",children:[(0,n.jsx)("path",{d:"M32 10L6 10",strokeWidth:2}),(0,n.jsx)("circle",{r:"4",transform:"matrix(-1 0 0 1 30 10)"})]}),{width:40,height:20})}),Pt=h().memo(function(or){var lr=or.flip,gr=lr!==void 0&&lr;return u((0,n.jsx)("g",{transform:gr?"translate(40, 0) scale(-1, 1)":"",children:(0,n.jsx)("path",{d:"M34 10H5.99996M34 10L34 5M34 10L34 15",stroke:"currentColor",strokeWidth:2,fill:"none"})}),{width:40,height:20})}),Gt=h().memo(function(or){var lr=or.flip,gr=lr!==void 0&&lr;return u((0,n.jsxs)("g",{stroke:"currentColor",fill:"currentColor",transform:gr?"translate(40, 0) scale(-1, 1)":"",children:[(0,n.jsx)("path",{d:"M32 10L6 10",strokeWidth:2}),(0,n.jsx)("path",{d:"M27.5 5.5L34.5 10L27.5 14.5L27.5 5.5"})]}),{width:40,height:20})}),Ct=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("g",{clipPath:"url(#a)",children:(0,n.jsx)("path",{d:"M14.167 6.667a3.333 3.333 0 0 0-3.334-3.334H9.167a3.333 3.333 0 0 0 0 6.667h1.666a3.333 3.333 0 0 1 0 6.667H9.167a3.333 3.333 0 0 1-3.334-3.334",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),ur=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("g",{clipPath:"url(#a)",children:(0,n.jsx)("path",{d:"M5 16.667V3.333L10 15l5-11.667v13.334",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),rr=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("g",{clipPath:"url(#a)",children:(0,n.jsx)("path",{d:"M5.833 3.333v13.334h8.334",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),Tr=u((0,n.jsx)(n.Fragment,{children:(0,n.jsx)("path",{d:"m1.667 3.333 6.666 13.334M8.333 3.333 1.667 16.667M11.667 3.333v13.334h6.666",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),le),ot=u((0,n.jsx)(n.Fragment,{children:(0,n.jsx)("g",{stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("path",{d:"M5.833 16.667v-10a3.333 3.333 0 0 1 3.334-3.334h1.666a3.333 3.333 0 0 1 3.334 3.334v10M5.833 10.833h8.334"})})}),le),Rt=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("path",{d:"M5.833 6.667 2.5 10l3.333 3.333M14.167 6.667 17.5 10l-3.333 3.333M11.667 3.333 8.333 16.667"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),_t=u((0,n.jsxs)("g",{stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"4",y1:"8",x2:"20",y2:"8"}),(0,n.jsx)("line",{x1:"4",y1:"12",x2:"12",y2:"12"}),(0,n.jsx)("line",{x1:"4",y1:"16",x2:"16",y2:"16"})]}),U),At=u((0,n.jsxs)("g",{stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"4",y1:"8",x2:"20",y2:"8"}),(0,n.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12"}),(0,n.jsx)("line",{x1:"6",y1:"16",x2:"18",y2:"16"})]}),U),br=u((0,n.jsxs)("g",{stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"4",y1:"8",x2:"20",y2:"8"}),(0,n.jsx)("line",{x1:"10",y1:"12",x2:"20",y2:"12"}),(0,n.jsx)("line",{x1:"8",y1:"16",x2:"20",y2:"16"})]}),U),xr=h().memo(function(or){return or.theme,u((0,n.jsxs)("g",{strokeWidth:"1.5",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"4",y1:"4",x2:"20",y2:"4"}),(0,n.jsx)("rect",{x:"9",y:"8",width:"6",height:"12",rx:"2"})]}),U)}),jr=h().memo(function(or){return or.theme,u((0,n.jsxs)("g",{strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"20"}),(0,n.jsx)("rect",{x:"9",y:"4",width:"6",height:"12",rx:"2"})]}),U)}),Ar=h().memo(function(or){return or.theme,u((0,n.jsxs)("g",{strokeWidth:"1.5",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"4",y1:"12",x2:"9",y2:"12"}),(0,n.jsx)("line",{x1:"15",y1:"12",x2:"20",y2:"12"}),(0,n.jsx)("rect",{x:"9",y:"6",width:"6",height:"12",rx:"2"})]}),U)}),fr=u((0,n.jsx)("path",{d:"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z",fill:"currentColor"}),{width:640,height:512}),dt=(u((0,n.jsx)("path",{d:"M480 416C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H150.6C133.7 480 117.4 473.3 105.4 461.3L25.37 381.3C.3786 356.3 .3786 315.7 25.37 290.7L258.7 57.37C283.7 32.38 324.3 32.38 349.3 57.37L486.6 194.7C511.6 219.7 511.6 260.3 486.6 285.3L355.9 416H480zM265.4 416L332.7 348.7L195.3 211.3L70.63 336L150.6 416L265.4 416z"})),u((0,n.jsxs)("g",{strokeWidth:1.25,children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),(0,n.jsx)("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),(0,n.jsx)("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),(0,n.jsx)("path",{d:"M17 7.5a1.5 1.5 0 0 1 3 0v8.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47"})]}),U)),ft=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"}),(0,n.jsx)("path",{d:"M7 11l5 5l5 -5"}),(0,n.jsx)("path",{d:"M12 4l0 12"})]}),U),vt=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M8 8m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z"}),(0,n.jsx)("path",{d:"M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"})]}),U),Et=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),(0,n.jsx)("path",{d:"M12 17l0 .01"}),(0,n.jsx)("path",{d:"M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4"})]}),U),tr=(u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M7 4v16l13 -8z"})]}),U),u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M17 4h-10a3 3 0 0 0 -3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3 -3v-10a3 3 0 0 0 -3 -3z",strokeWidth:"0",fill:"currentColor"})]}),U),u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M5 12l5 5l10 -10"})]}),U),u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M10.24 3.957l-8.422 14.06a1.989 1.989 0 0 0 1.7 2.983h16.845a1.989 1.989 0 0 0 1.7 -2.983l-8.423 -14.06a1.989 1.989 0 0 0 -3.4 0z"}),(0,n.jsx)("path",{d:"M12 9v4"}),(0,n.jsx)("path",{d:"M12 17h.01"})]}),U)),ir=u((0,n.jsxs)("g",{strokeWidth:1.25,children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M11 7l6 6"}),(0,n.jsx)("path",{d:"M4 16l11.7 -11.7a1 1 0 0 1 1.4 0l2.6 2.6a1 1 0 0 1 0 1.4l-11.7 11.7h-4v-4z"})]}),U),Qt=u((0,n.jsxs)("g",{strokeWidth:1.5,children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M12 3l-4 7h8z"}),(0,n.jsx)("path",{d:"M17 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),(0,n.jsx)("path",{d:"M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"})]}),U),_r=u((0,n.jsxs)("g",{strokeWidth:1.5,children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M4 7l16 0"}),(0,n.jsx)("path",{d:"M4 17l16 0"}),(0,n.jsx)("path",{d:"M7 4l0 16"}),(0,n.jsx)("path",{d:"M17 4l0 16"})]}),U),sr=u((0,n.jsx)("path",{fill:"currentColor",d:"M407.48,111.18C335.587,108.103 269.573,152.338 245.08,220C220.587,152.338 154.573,108.103 82.68,111.18C80.285,168.229 107.577,222.632 154.74,254.82C178.908,271.419 193.35,298.951 193.27,328.27L193.27,379.13L296.9,379.13L296.9,328.27C296.816,298.953 311.255,271.42 335.42,254.82C382.596,222.644 409.892,168.233 407.48,111.18Z"})),mr=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M4.16602 10H15.8327"}),(0,n.jsx)("path",{d:"M12.5 13.3333L15.8333 10"}),(0,n.jsx)("path",{d:"M12.5 6.66666L15.8333 9.99999"})]}),le),Zr=u((0,n.jsxs)("g",{fill:"none",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",transform:"rotate(90 10 10)",children:[(0,n.jsx)("path",{clipRule:"evenodd",d:"m9.644 13.69 7.774-7.773a2.357 2.357 0 0 0-3.334-3.334l-7.773 7.774L8 12l1.643 1.69Z"}),(0,n.jsx)("path",{d:"m13.25 3.417 3.333 3.333M10 10l2-2M5 15l3-3M2.156 17.894l1-1M5.453 19.029l-.144-1.407M2.377 11.887l.866 1.118M8.354 17.273l-1.194-.758M.953 14.652l1.408.13"})]}),20)},7021:function(Se,Q,e){e.d(Q,{Z:function(){return We}});var D={};e.r(D),e.d(D,{ChangeCanvasBackground:function(){return ie},ClearCanvas:function(){return N},Export:function(){return V},Help:function(){return x},LiveCollaborationTrigger:function(){return te},LoadScene:function(){return z},SaveAsImage:function(){return k},SaveToActiveFile:function(){return j},Socials:function(){return ce},ToggleTheme:function(){return G}});var E=e(8242),y=e(7104),h=e(8950),S=e(2975),I=e.n(S),v=e(2529),n=e(8227),M=e(8935),Z=e(5735),H=e(3858),W=e(5463),u=e(3379),U=e.n(u),le=e(7795),de=e.n(le),he=e(569),pe=e.n(he),oe=e(3565),P=e.n(oe),$=e(9216),b=e.n($),R=e(4589),_=e.n(R),g=e(4343),O={};O.styleTagTransform=_(),O.setAttributes=P(),O.insert=pe().bind(null,"head"),O.domAPI=de(),O.insertStyleElement=b(),U()(g.Z,O),g.Z&&g.Z.locals&&g.Z.locals;var s=e(45),f=e(3607),t=e(8973),w=e(453),l=e(100),a=e(7827),c=e(9247),m=e(1020),z=function(){var Te=(0,n.QT)().t,we=(0,E.eh)(),xe=(0,E.bd)();if(!we.isActionEnabled(W._d))return null;var _e=function(){var Oe=(0,h.Z)(I().mark(function J(){return I().wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(ke.t0=!xe.length,ke.t0){ke.next=5;break}return ke.next=4,(0,a._)({title:Te("overwriteConfirm.modal.loadFromFile.title"),actionLabel:Te("overwriteConfirm.modal.loadFromFile.button"),color:"warning",description:(0,m.jsx)(c.Z,{i18nKey:"overwriteConfirm.modal.loadFromFile.description",bold:function(q){return(0,m.jsx)("strong",{children:q})},br:function(){return(0,m.jsx)("br",{})}})});case 4:ke.t0=ke.sent;case 5:if(!ke.t0){ke.next=7;break}we.executeAction(W._d);case 7:case"end":return ke.stop()}},J)}));return function(){return Oe.apply(this,arguments)}}();return(0,m.jsx)(Z.Z,{icon:M.Tl,onSelect:_e,"data-testid":"load-button",shortcut:(0,v.C)("loadScene"),"aria-label":Te("buttons.load"),children:Te("buttons.load")})};z.displayName="LoadScene";var j=function(){var Te=(0,n.QT)().t,we=(0,E.eh)();return we.isActionEnabled(W.ns)?(0,m.jsx)(Z.Z,{shortcut:(0,v.C)("saveScene"),"data-testid":"save-button",onSelect:function(){return we.executeAction(W.ns)},icon:M.a1,"aria-label":"".concat(Te("buttons.save")),children:"".concat(Te("buttons.save"))}):null};j.displayName="SaveToActiveFile";var k=function(){var Te=(0,E.n9)(),we=(0,n.QT)().t;return(0,m.jsx)(Z.Z,{icon:M.J8,"data-testid":"image-export-button",onSelect:function(){return Te({openDialog:"imageExport"})},shortcut:(0,v.C)("imageExport"),"aria-label":we("buttons.exportImage"),children:we("buttons.exportImage")})};k.displayName="SaveAsImage";var x=function(){var Te=(0,n.QT)().t,we=(0,E.eh)();return(0,m.jsx)(Z.Z,{"data-testid":"help-menu-item",icon:M.by,onSelect:function(){return we.executeAction(W.jY)},shortcut:"?","aria-label":Te("helpDialog.title"),children:Te("helpDialog.title")})};x.displayName="Help";var N=function(){var Te=(0,n.QT)().t,we=(0,f.b9)(t.w,w.yE);return(0,E.eh)().isActionEnabled(W.mo)?(0,m.jsx)(Z.Z,{icon:M.XH,onSelect:function(){return we("clearCanvas")},"data-testid":"clear-canvas-button","aria-label":Te("buttons.clearReset"),children:Te("buttons.clearReset")}):null};N.displayName="ClearCanvas";var G=function(){var Te=(0,n.QT)().t,we=(0,l.I)(),xe=(0,E.eh)();return xe.isActionEnabled(W.Zp)?(0,m.jsx)(Z.Z,{onSelect:function(_e){return _e.preventDefault(),xe.executeAction(W.Zp)},icon:we.theme==="dark"?M.NW:M.kL,"data-testid":"toggle-dark-mode",shortcut:(0,v.C)("toggleTheme"),"aria-label":we.theme==="dark"?Te("buttons.lightMode"):Te("buttons.darkMode"),children:we.theme==="dark"?Te("buttons.lightMode"):Te("buttons.darkMode")}):null};G.displayName="ToggleTheme";var ie=function(){var Te=(0,n.QT)().t,we=(0,l.I)(),xe=(0,E.eh)(),_e=(0,E.hY)();return we.viewModeEnabled||!_e.UIOptions.canvasActions.changeViewBackgroundColor?null:(0,m.jsxs)("div",{style:{marginTop:"0.5rem"},children:[(0,m.jsx)("div",{"data-testid":"canvas-background-label",style:{fontSize:".75rem",marginBottom:".5rem"},children:Te("labels.canvasBackground")}),(0,m.jsx)("div",{style:{padding:"0 0.625rem"},children:xe.renderAction("changeViewBackgroundColor")})]})};ie.displayName="ChangeCanvasBackground";var V=function(){var Te=(0,n.QT)().t,we=(0,E.n9)();return(0,m.jsx)(Z.Z,{icon:M.Hy,onSelect:function(){we({openDialog:"jsonExport"})},"data-testid":"json-export-button","aria-label":Te("buttons.export"),children:Te("buttons.export")})};V.displayName="Export";var ce=function(){return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(H.Z,{icon:M.ET,href:"https://github.com/excalidraw/excalidraw","aria-label":"GitHub",children:"GitHub"}),(0,m.jsx)(H.Z,{icon:M.D7,href:"https://discord.gg/UexuTaE","aria-label":"Discord",children:"Discord"}),(0,m.jsx)(H.Z,{icon:M.Zm,href:"https://twitter.com/excalidraw","aria-label":"Twitter",children:"Twitter"})]})};ce.displayName="Socials";var te=function(Te){var we=Te.onSelect,xe=Te.isCollaborating,_e=(0,n.QT)().t;return(0,m.jsx)(Z.Z,{"data-testid":"collab-button",icon:M.jn,className:(0,s.Z)({"active-collab":xe}),onSelect:we,children:_e("labels.liveCollaboration")})};te.displayName="LiveCollaborationTrigger";var L=e(4704),re=e(6922),me=e(9827),Ce=e(4572),We=Object.assign((0,re.$)("MainMenu",function(Te){var we=Te.children,xe=Te.onSelect,_e=(0,Ce.R6)().MainMenuTunnel,Oe=(0,E.Fy)(),J=(0,l.I)(),ke=(0,E.n9)(),q=Oe.editor.isMobile?void 0:function(){return ke({openMenu:null})};return(0,m.jsx)(_e.In,{children:(0,m.jsxs)(y.Z,{open:J.openMenu==="canvas",children:[(0,m.jsx)(y.Z.Trigger,{onToggle:function(){ke({openMenu:J.openMenu==="canvas"?null:"canvas"})},"data-testid":"main-menu-trigger",className:"main-menu-trigger",children:M.RY}),(0,m.jsxs)(y.Z.Content,{onClickOutside:q,onSelect:(0,me.Mj)(xe,function(){ke({openMenu:null})}),children:[we,Oe.editor.isMobile&&J.collaborators.size>0&&(0,m.jsxs)("fieldset",{className:"UserList-Wrapper",children:[(0,m.jsx)("legend",{children:(0,n.t)("labels.collaborators")}),(0,m.jsx)(L.Z,{mobile:!0,collaborators:J.collaborators})]})]})]})})}),{Trigger:y.Z.Trigger,Item:y.Z.Item,ItemLink:y.Z.ItemLink,ItemCustom:y.Z.ItemCustom,Group:y.Z.Group,Separator:y.Z.Separator,DefaultItems:D})},9937:function(Se,Q,e){e.d(Q,{wL:function(){return Te},iC:function(){return O},vL:function(){return qe},bY:function(){return Je},gK:function(){return He},$C:function(){return x},oc:function(){return c},_9:function(){return Lt},HN:function(){return Ve},qy:function(){return Ye},rk:function(){return L},n5:function(){return te},h6:function(){return tt},Rx:function(){return wt},Cc:function(){return at},Hg:function(){return re},cW:function(){return ee},hs:function(){return me},f:function(){return s},xY:function(){return et},Iw:function(){return t},$e:function(){return w},Vi:function(){return k},Ks:function(){return oe},r8:function(){return _e},I_:function(){return xe},ZB:function(){return Ke},pb:function(){return Oe},ut:function(){return N},iG:function(){return ie},k:function(){return Ce},sA:function(){return B},KL:function(){return We},LL:function(){return J},PR:function(){return mt},tf:function(){return bt},EE:function(){return Be},qx:function(){return f},$n:function(){return ue},zK:function(){return Ie},LO:function(){return we},CP:function(){return ce},Zj:function(){return p},Yx:function(){return Re},sS:function(){return be},kV:function(){return ge},sk:function(){return Ze},Oh:function(){return m},XI:function(){return z},WR:function(){return yt},$h:function(){return Wt},a6:function(){return St},HM:function(){return o},ay:function(){return a},dg:function(){return Ft},hR:function(){return ve},Gj:function(){return ke},I8:function(){return ht},wZ:function(){return l},C6:function(){return G},ZF:function(){return A},nM:function(){return q},ah:function(){return Y},UO:function(){return X},Kr:function(){return De},oX:function(){return st},_D:function(){return V},vf:function(){return j},V4:function(){return i},Dt:function(){return b},jP:function(){return g},Um:function(){return P},vU:function(){return R},G6:function(){return _},ED:function(){return $}});var D=e(7169),E=e(3379),y=e.n(E),h=e(7795),S=e.n(h),I=e(569),v=e.n(I),n=e(3565),M=e.n(n),Z=e(9216),H=e.n(Z),W=e(4589),u=e.n(W),U=e(6464),le={};le.styleTagTransform=u(),le.setAttributes=M(),le.insert=v().bind(null,"head"),le.domAPI=S(),le.insertStyleElement=H(),y()(U.Z,le);var de=U.Z&&U.Z.locals?U.Z.locals:void 0,he=e(9240);function pe(ut,Ot){var Pt=Object.keys(ut);if(Object.getOwnPropertySymbols){var Gt=Object.getOwnPropertySymbols(ut);Ot&&(Gt=Gt.filter(function(Ct){return Object.getOwnPropertyDescriptor(ut,Ct).enumerable})),Pt.push.apply(Pt,Gt)}return Pt}var oe,P=/Mac|iPod|iPhone|iPad/.test(navigator.platform),$=/^Win/.test(navigator.platform),b=/\b(android)\b/i.test(navigator.userAgent),R="netscape"in window&&navigator.userAgent.indexOf("rv:")>1&&navigator.userAgent.indexOf("Gecko")>1,_=navigator.userAgent.indexOf("Chrome")===-1&&navigator.userAgent.indexOf("Safari")!==-1,g=function(){var ut,Ot;return((ut=navigator.brave)===null||ut===void 0||(Ot=ut.isBrave)===null||Ot===void 0?void 0:Ot.name)==="isBrave"},O="Excalidraw",s=10,f=8,t=5,w=1,l=30,a=Math.PI/12,c={TEXT:"text",CROSSHAIR:"crosshair",GRABBING:"grabbing",GRAB:"grab",POINTER:"pointer",MOVE:"move",AUTO:""},m={MAIN:0,WHEEL:1,SECONDARY:2,TOUCH:-1},z={enabled:"all",disabled:"none",inheritFromUI:"var(--ui-pointerEvents)"};(function(ut){ut.COPY="copy",ut.PASTE="paste",ut.CUT="cut",ut.KEYDOWN="keydown",ut.KEYUP="keyup",ut.MOUSE_MOVE="mousemove",ut.RESIZE="resize",ut.UNLOAD="unload",ut.FOCUS="focus",ut.BLUR="blur",ut.DRAG_OVER="dragover",ut.DROP="drop",ut.GESTURE_END="gestureend",ut.BEFORE_UNLOAD="beforeunload",ut.GESTURE_START="gesturestart",ut.GESTURE_CHANGE="gesturechange",ut.POINTER_MOVE="pointermove",ut.POINTER_DOWN="pointerdown",ut.POINTER_UP="pointerup",ut.STATE_CHANGE="statechange",ut.WHEEL="wheel",ut.TOUCH_START="touchstart",ut.TOUCH_END="touchend",ut.HASHCHANGE="hashchange",ut.VISIBILITY_CHANGE="visibilitychange",ut.SCROLL="scroll",ut.EXCALIDRAW_LINK="excalidraw-link",ut.MENU_ITEM_SELECT="menu.itemSelect",ut.MESSAGE="message"})(oe||(oe={}));var j={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5},k={TEST:"test",DEVELOPMENT:"development"},x={SHAPE_ACTIONS_MENU:"App-menu__left"},N={Virgil:1,Helvetica:2,Cascadia:3,Assistant:4},G={LIGHT:"light",DARK:"dark"},ie={strokeColor:"#bbb",strokeWidth:2,strokeStyle:"solid",fillStyle:"solid",roughness:0,roundness:null,backgroundColor:"transparent",radius:8,nameOffsetY:3,nameColorLightTheme:"#999999",nameColorDarkTheme:"#7a7a7a",nameFontSize:14,nameLineHeight:1.25},V="Segoe UI Emoji",ce=1,te=20,L=N.Virgil,re="left",me="top",Ce=20,We={svg:"image/svg+xml",png:"image/png",jpg:"image/jpeg",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",ico:"image/x-icon",avif:"image/avif",jfif:"image/jfif"},Te=["text/plain","text/html"],we=function(ut){for(var Ot=1;Ot<arguments.length;Ot++){var Pt=arguments[Ot]!=null?arguments[Ot]:{};Ot%2?pe(Object(Pt),!0).forEach(function(Gt){(0,D.Z)(ut,Gt,Pt[Gt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ut,Object.getOwnPropertyDescriptors(Pt)):pe(Object(Pt)).forEach(function(Gt){Object.defineProperty(ut,Gt,Object.getOwnPropertyDescriptor(Pt,Gt))})}return ut}({json:"application/json",excalidraw:"application/vnd.excalidraw+json",excalidrawlib:"application/vnd.excalidrawlib+json","excalidraw.svg":"image/svg+xml","excalidraw.png":"image/png",binary:"application/octet-stream"},We),xe={png:"png",svg:"svg",clipboard:"clipboard"},_e={excalidraw:"excalidraw",excalidrawClipboard:"excalidraw/clipboard",excalidrawLibrary:"excalidrawlib",excalidrawClipboardWithAPI:"excalidraw-api/clipboard"},Oe=window.EXCALIDRAW_EXPORT_SOURCE||window.location.origin,J=500,ke=300,q=500,o=100,i=.1,p=.1,B=300,A=de.themeFilter,X={addLibrary:"addLibrary"},Y={addLibrary:"addLibrary"},ee={canvasActions:{changeViewBackgroundColor:!0,clearCanvas:!0,export:{saveFileToDisk:!0},loadScene:!0,saveToActiveFile:!0,toggleTheme:null,saveAsImage:!0},tools:{image:!0}},ge=730,be=1e3,Re=500,Ze=1229,Be=parseInt(de.rightSidebarWidth),Ie=2,Ke=[1,2,3],Ye=10,tt=1440,ue=2097152,ve="http://www.w3.org/2000/svg",De={excalidraw:2,excalidrawLibrary:2},He=5,Je=.7,qe=11,st={TOP:"top",MIDDLE:"middle",BOTTOM:"bottom"},ht={LEFT:"left",CENTER:"center",RIGHT:"right"},et=20,wt=.25,Lt=32,St={LEGACY:1,PROPORTIONAL_RADIUS:2,ADAPTIVE_RADIUS:3},yt="__precedingElement__",Wt={architect:0,artist:1,cartoonist:2},Ft={thin:1,bold:2,extraBold:4},Ve={strokeColor:he.HO.black,backgroundColor:he.HO.transparent,fillStyle:"solid",strokeWidth:2,strokeStyle:"solid",roughness:Wt.artist,opacity:100,locked:!1},bt="library",at={name:"default",defaultTab:bt},mt=new Set(["embeddable","image"])},4572:function(Se,Q,e){e.d(Q,{A3:function(){return u},ZC:function(){return le},R6:function(){return U}});var D=e(9787),E=e.n(D);const y=de=>{let he;const pe=new Set,oe=(b,R)=>{const _=typeof b=="function"?b(he):b;if(!Object.is(_,he)){const g=he;he=R??typeof _!="object"?_:Object.assign({},he,_),pe.forEach(O=>O(he,g))}},P=()=>he,$={setState:oe,getState:P,subscribe:b=>(pe.add(b),()=>pe.delete(b)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),pe.clear()}};return he=de(oe,P,$),$},h=de=>de?y(de):y;var S=e(5668);const{useSyncExternalStoreWithSelector:I}=S,v=de=>{typeof de!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const he=typeof de=="function"?h(de):de,pe=(oe,P)=>function($,b=$.getState,R){const _=I($.subscribe,$.getState,$.getServerState||$.getState,b,R);return(0,D.useDebugValue)(_),_}(he,oe,P);return Object.assign(pe,he),pe},n=de=>de?v(de):v;var M,Z;const H=typeof window<"u"&&((M=window.document)!=null&&M.createElement||((Z=window.navigator)==null?void 0:Z.product)==="ReactNative")?E().useLayoutEffect:E().useEffect;function W(){const de=n(he=>({current:new Array,version:0,set:he}));return{In:({children:he})=>{const pe=de(P=>P.set),oe=de(P=>P.version);return H(()=>{pe(P=>({version:P.version+1}))},[]),H(()=>(pe(({current:P})=>({current:[...P,he]})),()=>pe(({current:P})=>({current:P.filter($=>$!==he)}))),[he,oe]),null},Out:()=>{const he=de(pe=>pe.current);return E().createElement(E().Fragment,null,he)}}}var u=E().createContext(null),U=function(){return E().useContext(u)},le=function(){return E().useMemo(function(){return{MainMenuTunnel:W(),WelcomeScreenMenuHintTunnel:W(),WelcomeScreenToolbarHintTunnel:W(),WelcomeScreenHelpHintTunnel:W(),WelcomeScreenCenterTunnel:W(),FooterCenterTunnel:W(),DefaultSidebarTriggerTunnel:W(),DefaultSidebarTabTriggersTunnel:W(),OverwriteConfirmDialogTunnel:W(),jotaiScope:Symbol()}},[])}},100:function(Se,Q,e){e.d(Q,{I:function(){return h},k:function(){return y}});var D=e(9787),E=e.n(D),y=E().createContext(null),h=function(){return E().useContext(y)}},7652:function(Se,Q,e){e.d(Q,{KJ:function(){return H},OF:function(){return W},Uk:function(){return u},z8:function(){return Z}});var D,E,y=e(9937),h=e(5284),S=e(6853),I='<svg viewBox="0 0 24 24" stroke-width="1" width="28" height="28" xmlns="http://www.w3.org/2000/svg">',v='<path stroke="#1b1b1f" fill="#fff" d="m7.868 11.113 7.773 7.774a2.359 2.359 0 0 0 1.667.691 2.368 2.368 0 0 0 2.357-2.358c0-.625-.248-1.225-.69-1.667L11.201 7.78 9.558 9.469l-1.69 1.643v.001Zm10.273 3.606-3.333 3.333m-3.25-6.583 2 2m-7-7 3 3M3.664 3.625l1 1M2.529 6.922l1.407-.144m5.735-2.932-1.118.866M4.285 9.823l.758-1.194m1.863-6.207-.13 1.408"/>',n="data:".concat(y.LO.svg,",").concat(encodeURIComponent("".concat(I).concat(v,"</svg>"))),M="data:".concat(y.LO.svg,",").concat(encodeURIComponent("".concat(I).concat('<path d="M6.164 11.755a5.314 5.314 0 0 1-4.932-5.298 5.314 5.314 0 0 1 5.311-5.311 5.314 5.314 0 0 1 5.307 5.113l8.773 8.773a3.322 3.322 0 0 1 0 4.696l-.895.895a3.322 3.322 0 0 1-4.696 0l-8.868-8.868Z" style="fill:#fff"/>').concat(v,"</svg>"))),Z=function(U){U&&(U.style.cursor="")},H=function(U,le){U&&(U.style.cursor=le)},W=function(U,le){D&&D.theme===le||function(){var de=le===y.C6.DARK;(D=document.createElement("canvas")).theme=le,D.height=20,D.width=20;var he=D.getContext("2d");he.lineWidth=1,he.beginPath(),he.arc(D.width/2,D.height/2,5,0,2*Math.PI),he.fillStyle=de?h.black:h.white,he.fill(),he.strokeStyle=de?h.white:h.black,he.stroke(),E=D.toDataURL(y.LO.svg)}(),H(U,"url(".concat(E,") ").concat(10," ").concat(10,", auto"))},u=function(U,le){if(U)if(le.activeTool.type==="selection")Z(U);else if((0,S.l$)(le))U.style.cursor=y.oc.GRAB;else if((0,S.EN)(le))W(U,le.theme);else if(le.activeTool.type==="laser"){var de=le.theme===y.C6.LIGHT?n:M;U.style.cursor="url(".concat(de,"), auto")}else["image","custom"].includes(le.activeTool.type)?le.activeTool.type!=="image"&&(U.style.cursor=y.oc.AUTO):U.style.cursor=y.oc.CROSSHAIR}},5796:function(Se,Q,e){e.d(Q,{DQ:function(){return b},KG:function(){return a},Pn:function(){return m},Qk:function(){return $},Sf:function(){return l},Tu:function(){return c},Wr:function(){return _},ZY:function(){return g},_c:function(){return t},_p:function(){return z},bv:function(){return j},cT:function(){return O},g8:function(){return R},gY:function(){return G},lV:function(){return f},tW:function(){return w},vZ:function(){return ie},wf:function(){return s}});var D=e(1930),E=e(2577),y=e(7169),h=e(8950),S=e(2975),I=e.n(S),v=e(5605),n=e(6853),M=e(9937),Z=e(7651),H=e(3506),W=e(8227),u=e(4105),U=e(9827),le=e(6548),de=e(4419),he=e(7994);function pe(V,ce){var te=Object.keys(V);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(V);ce&&(L=L.filter(function(re){return Object.getOwnPropertyDescriptor(V,re).enumerable})),te.push.apply(te,L)}return te}function oe(V){for(var ce=1;ce<arguments.length;ce++){var te=arguments[ce]!=null?arguments[ce]:{};ce%2?pe(Object(te),!0).forEach(function(L){(0,y.Z)(V,L,te[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(te)):pe(Object(te)).forEach(function(L){Object.defineProperty(V,L,Object.getOwnPropertyDescriptor(te,L))})}return V}var P=function(){var V=(0,h.Z)(I().mark(function ce(te){var L;return I().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:if(te.type!==M.LO.png){re.next=18;break}return re.prev=1,re.next=4,Promise.resolve().then(e.bind(e,250));case 4:return re.next=6,re.sent.decodePngMetadata(te);case 6:return re.abrupt("return",re.sent);case 9:if(re.prev=9,re.t0=re.catch(1),re.t0.message!=="INVALID"){re.next=15;break}throw new H.jk((0,W.t)("alerts.imageDoesNotContainScene"),"IMAGE_NOT_CONTAINS_SCENE_DATA");case 15:throw new H.jk((0,W.t)("alerts.cannotRestoreFromImage"));case 16:re.next=43;break;case 18:if(!("text"in Blob)){re.next=24;break}return re.next=21,te.text();case 21:L=re.sent,re.next=27;break;case 24:return re.next=26,new Promise(function(me){var Ce=new FileReader;Ce.readAsText(te,"utf8"),Ce.onloadend=function(){Ce.readyState===FileReader.DONE&&me(Ce.result)}});case 26:L=re.sent;case 27:if(te.type!==M.LO.svg){re.next=43;break}return re.prev=28,re.next=31,Promise.resolve().then(e.bind(e,250));case 31:return re.next=33,re.sent.decodeSvgMetadata({svg:L});case 33:return re.abrupt("return",re.sent);case 36:if(re.prev=36,re.t1=re.catch(28),re.t1.message!=="INVALID"){re.next=42;break}throw new H.jk((0,W.t)("alerts.imageDoesNotContainScene"),"IMAGE_NOT_CONTAINS_SCENE_DATA");case 42:throw new H.jk((0,W.t)("alerts.cannotRestoreFromImage"));case 43:return re.abrupt("return",L);case 44:case"end":return re.stop()}},ce,null,[[1,9],[28,36]])}));return function(ce){return V.apply(this,arguments)}}(),$=function(V){var ce;return V&&((ce=V.name.match(/\.(json|excalidraw|png|svg)$/))===null||ce===void 0?void 0:ce[1])||null},b=function(V){return V==="png"||V==="svg"},R=function(V){var ce=$(V);return ce==="png"||ce==="svg"},_=function(V){var ce=(V||{}).type;return!!ce&&Object.values(M.KL).includes(ce)},g=function(){var V=(0,h.Z)(I().mark(function ce(te,L,re,me){var Ce,We;return I().wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return Te.next=2,P(te);case 2:Ce=Te.sent,Te.prev=3,Te.prev=4,We=JSON.parse(Ce),Te.next=13;break;case 8:if(Te.prev=8,Te.t0=Te.catch(4),!_(te)){Te.next=12;break}throw new H.jk((0,W.t)("alerts.imageDoesNotContainScene"),"IMAGE_NOT_CONTAINS_SCENE_DATA");case 12:throw Te.t0;case 13:if(!(0,de.dS)(We)){Te.next=17;break}return Te.abrupt("return",{type:M.LO.excalidraw,data:(0,he.nu)({elements:(0,Z._M)(We.elements||[]),appState:oe(oe({theme:L?.theme,fileHandle:me||te.handle||null},(0,n.s)(We.appState||{})),L?(0,u.W)(We.elements||[],L):{}),files:We.files},L,re,{repairBindings:!0,refreshDimensions:!1})});case 17:if(!(0,de.HT)(We)){Te.next=19;break}return Te.abrupt("return",{type:M.LO.excalidrawlib,data:We});case 19:case 26:throw new Error((0,W.t)("alerts.couldNotLoadInvalidFile"));case 22:if(Te.prev=22,Te.t1=Te.catch(3),!(Te.t1 instanceof H.jk)){Te.next=26;break}throw Te.t1;case 27:case"end":return Te.stop()}},ce,null,[[3,22],[4,8]])}));return function(ce,te,L,re){return V.apply(this,arguments)}}(),O=function(){var V=(0,h.Z)(I().mark(function ce(te,L,re,me){var Ce;return I().wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.next=2,g(te,L,re,me);case 2:if((Ce=We.sent).type===M.LO.excalidraw){We.next=5;break}throw new Error((0,W.t)("alerts.couldNotLoadInvalidFile"));case 5:return We.abrupt("return",Ce.data);case 6:case"end":return We.stop()}},ce)}));return function(ce,te,L,re){return V.apply(this,arguments)}}(),s=function(V){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"unpublished",te=JSON.parse(V);if(!(0,de.HT)(te))throw new Error("Invalid library");var L=te.libraryItems||te.library;return(0,he.wJ)(L,ce)},f=function(){var V=(0,h.Z)(I().mark(function ce(te){var L,re=arguments;return I().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return L=re.length>1&&re[1]!==void 0?re[1]:"unpublished",me.t0=s,me.next=4,P(te);case 4:return me.t1=me.sent,me.t2=L,me.abrupt("return",(0,me.t0)(me.t1,me.t2));case 7:case"end":return me.stop()}},ce)}));return function(ce){return V.apply(this,arguments)}}(),t=function(){var V=(0,h.Z)(I().mark(function ce(te){return I().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",new Promise(function(){var re=(0,h.Z)(I().mark(function me(Ce,We){return I().wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:if(Te.prev=0,!(0,U.y8)(te)){Te.next=5;break}return Te.next=4,te;case 4:te=Te.sent;case 5:te.toBlob(function(we){if(!we)return We(new H.lp((0,W.t)("canvasError.canvasTooBig"),"CANVAS_POSSIBLY_TOO_BIG"));Ce(we)}),Te.next=11;break;case 8:Te.prev=8,Te.t0=Te.catch(0),We(Te.t0);case 11:case"end":return Te.stop()}},me,null,[[0,8]])}));return function(me,Ce){return re.apply(this,arguments)}}()));case 1:case"end":return L.stop()}},ce)}));return function(ce){return V.apply(this,arguments)}}(),w=function(){var V=(0,h.Z)(I().mark(function ce(te){var L;return I().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return re.prev=0,re.t0=window.crypto.subtle,re.next=4,ie(te);case 4:return re.t1=re.sent,re.next=7,re.t0.digest.call(re.t0,"SHA-1",re.t1);case 7:return L=re.sent,re.abrupt("return",(0,U.G3)(new Uint8Array(L)));case 11:return re.prev=11,re.t2=re.catch(0),console.error(re.t2),re.abrupt("return",(0,v.x0)(40));case 15:case"end":return re.stop()}},ce,null,[[0,11]])}));return function(ce){return V.apply(this,arguments)}}(),l=function(){var V=(0,h.Z)(I().mark(function ce(te){return I().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",new Promise(function(re,me){var Ce=new FileReader;Ce.onload=function(){var We=Ce.result;re(We)},Ce.onerror=function(We){return me(We)},Ce.readAsDataURL(te)}));case 1:case"end":return L.stop()}},ce)}));return function(ce){return V.apply(this,arguments)}}(),a=function(V){for(var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",te=V.indexOf(","),L=atob(V.slice(te+1)),re=V.slice(0,te).split(":")[1].split(";")[0],me=new ArrayBuffer(L.length),Ce=new Uint8Array(me),We=0;We<L.length;We++)Ce[We]=L.charCodeAt(We);return new File([me],ce,{type:re})},c=function(){var V=(0,h.Z)(I().mark(function ce(te,L){var re,me,Ce,We,Te,we;return I().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(te.type!==M.LO.svg){xe.next=2;break}return xe.abrupt("return",te);case 2:return xe.next=4,Promise.all([e.e(4736).then(e.t.bind(e,4881,23)).then(function(_e){return _e.default}),e.e(4736).then(e.bind(e,5446)).then(function(_e){return _e.default})]);case 4:if(re=xe.sent,me=(0,E.Z)(re,2),Ce=me[0],We=me[1],Te=We({pica:Ce({features:["js","wasm"]})}),L.outputType&&(we=L.outputType,Te._create_blob=function(_e){return this.pica.toBlob(_e.out_canvas,we,.8).then(function(Oe){return _e.out_blob=Oe,_e})}),_(te)){xe.next=12;break}throw new Error((0,W.t)("errors.unsupportedFileType"));case 12:return xe.t0=File,xe.next=15,Te.toBlob(te,{max:L.maxWidthOrHeight});case 15:return xe.t1=xe.sent,xe.t2=[xe.t1],xe.t3=te.name,xe.t4={type:L.outputType||te.type},xe.abrupt("return",new xe.t0(xe.t2,xe.t3,xe.t4));case 20:case"end":return xe.stop()}},ce)}));return function(ce,te){return V.apply(this,arguments)}}(),m=function(V){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new File([new TextEncoder().encode(V)],ce,{type:M.LO.svg})},z=function(){var V=(0,h.Z)(I().mark(function ce(te){var L,re,me,Ce,We=arguments;return I().wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return L=We.length>1&&We[1]!==void 0?We[1]:"",Te.prev=1,Te.next=4,fetch(te);case 4:re=Te.sent,Te.next=10;break;case 7:throw Te.prev=7,Te.t0=Te.catch(1),new Error((0,W.t)("errors.failedToFetchImage"));case 10:if(re.ok){Te.next=12;break}throw new Error((0,W.t)("errors.failedToFetchImage"));case 12:return Te.next=14,re.blob();case 14:if(!(me=Te.sent).type||!_(me)){Te.next=18;break}return Ce=L||me.name||"",Te.abrupt("return",new File([me],Ce,{type:me.type}));case 18:throw new Error((0,W.t)("errors.unsupportedFileType"));case 19:case"end":return Te.stop()}},ce,null,[[1,7]])}));return function(ce){return V.apply(this,arguments)}}(),j=function(){var V=(0,h.Z)(I().mark(function ce(te){var L,re;return I().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return L=te.dataTransfer.files.item(0),me.next=3,k(te);case 3:if(re=me.sent,!L){me.next=10;break}return me.next=7,G(L);case 7:me.t0=me.sent,me.next=11;break;case 10:me.t0=null;case 11:return me.t1=me.t0,me.t2=re,me.abrupt("return",{file:me.t1,fileHandle:me.t2});case 14:case"end":return me.stop()}},ce)}));return function(ce){return V.apply(this,arguments)}}(),k=function(){var V=(0,h.Z)(I().mark(function ce(te){var L,re;return I().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(!le.kr){me.next=16;break}return me.prev=1,L=te.dataTransfer.items[0],me.next=5,L.getAsFileSystemHandle();case 5:if(me.t0=me.sent,me.t0){me.next=8;break}me.t0=null;case 8:return re=me.t0,me.abrupt("return",re);case 12:return me.prev=12,me.t1=me.catch(1),console.warn(me.t1.name,me.t1.message),me.abrupt("return",null);case 16:return me.abrupt("return",null);case 17:case"end":return me.stop()}},ce,null,[[1,12]])}));return function(ce){return V.apply(this,arguments)}}(),x=function(V){var ce=null,te="".concat((0,D.Z)(new Uint8Array(V).slice(0,8)).join(" ")," "),L="255 216 255 ",re="71 73 70 56 57 97 ";return te==="137 80 78 71 13 10 26 10 "?ce=M.LO.png:te.startsWith(L)?ce=M.LO.jpg:te.startsWith(re)&&(ce=M.LO.gif),ce},N=function(V,ce,te){return new File([V],te||"",{type:ce})},G=function(){var V=(0,h.Z)(I().mark(function ce(te){var L,re,me,Ce,We,Te,we,xe;return I().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(te.type){_e.next=28;break}if((L=te)===null||L===void 0||(re=L.name)===null||re===void 0||!re.endsWith(".excalidrawlib")){_e.next=11;break}return _e.t0=N,_e.next=5,ie(te);case 5:_e.t1=_e.sent,_e.t2=M.LO.excalidrawlib,_e.t3=te.name,te=(0,_e.t0)(_e.t1,_e.t2,_e.t3),_e.next=26;break;case 11:if((me=te)===null||me===void 0||(Ce=me.name)===null||Ce===void 0||!Ce.endsWith(".excalidraw")){_e.next=21;break}return _e.t4=N,_e.next=15,ie(te);case 15:_e.t5=_e.sent,_e.t6=M.LO.excalidraw,_e.t7=te.name,te=(0,_e.t4)(_e.t5,_e.t6,_e.t7),_e.next=26;break;case 21:return _e.next=23,ie(te);case 23:We=_e.sent,(Te=x(We))&&(te=N(We,Te,te.name));case 26:_e.next=34;break;case 28:if(!_(te)){_e.next=34;break}return _e.next=31,ie(te);case 31:we=_e.sent,(xe=x(we))&&xe!==te.type&&(te=N(we,xe,te.name));case 34:return _e.abrupt("return",te);case 35:case"end":return _e.stop()}},ce)}));return function(ce){return V.apply(this,arguments)}}(),ie=function(V){return"arrayBuffer"in V?V.arrayBuffer():new Promise(function(ce,te){var L=new FileReader;L.onload=function(re){var me;if((me=re.target)===null||me===void 0||!me.result)return te(new Error("Couldn't convert blob to ArrayBuffer"));ce(re.target.result)},L.readAsArrayBuffer(V)})}},6548:function(Se,Q,e){e.d(Q,{I$:function(){return W},NL:function(){return u},kr:function(){return h}});var D=e(1930),E=e(8950),y=e(2975),h=function(){if(typeof self>"u")return!1;if("top"in self&&self!==top)try{}catch{return!1}else if("showOpenFilePicker"in self)return"showOpenFilePicker";return!1}(),S=h?e.e(4736).then(e.bind(e,7464)):e.e(4736).then(e.bind(e,3948));function I(){return I=(0,E.Z)(y.mark(function U(){var le,de=arguments;return y.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,S;case 2:return he.abrupt("return",(le=he.sent).default.apply(le,de));case 3:case"end":return he.stop()}},U)})),I.apply(this,arguments)}h?e.e(4736).then(e.bind(e,4036)):e.e(4736).then(e.bind(e,7693));var v=h?e.e(4736).then(e.bind(e,357)):e.e(4736).then(e.bind(e,341));function n(){return n=(0,E.Z)(y.mark(function U(){var le,de=arguments;return y.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,v;case 2:return he.abrupt("return",(le=he.sent).default.apply(le,de));case 3:case"end":return he.stop()}},U)})),n.apply(this,arguments)}var M=e(9937),Z=e(3506),H=e(9827),W=function(U){var le,de,he,pe=(le=U.extensions)===null||le===void 0?void 0:le.reduce(function(P,$){return P.push(M.LO[$]),P},[]),oe=(de=U.extensions)===null||de===void 0?void 0:de.reduce(function(P,$){return $==="jpg"?P.concat(".jpg",".jpeg"):P.concat(".".concat($))},[]);return function(){return I.apply(this,arguments)}({description:U.description,extensions:oe,mimeTypes:pe,multiple:(he=U.multiple)!==null&&he!==void 0&&he,legacySetup:function(P,$,b){var R=(0,H.Ds)($,500),_=function(){g(),document.addEventListener(M.Ks.KEYUP,R),document.addEventListener(M.Ks.POINTER_UP,R),R()},g=function(){var s;if((s=b.files)!==null&&s!==void 0&&s.length){var f=U.multiple?(0,D.Z)(b.files):b.files[0];P(f)}};requestAnimationFrame(function(){window.addEventListener(M.Ks.FOCUS,_)});var O=window.setInterval(function(){g()},500);return function(s){clearInterval(O),R.cancel(),window.removeEventListener(M.Ks.FOCUS,_),document.removeEventListener(M.Ks.KEYUP,R),document.removeEventListener(M.Ks.POINTER_UP,R),s&&(console.warn("Opening the file was canceled (legacy-fs)."),s(new Z._L))}}})},u=function(U,le){return function(){return n.apply(this,arguments)}(U,{fileName:"".concat(le.name,".").concat(le.extension),description:le.description,extensions:[".".concat(le.extension)]},le.fileHandle)}},250:function(Se,Q,e){e.r(Q),e.d(Q,{decodePngMetadata:function(){return $},decodeSvgMetadata:function(){return R},encodePngMetadata:function(){return P},encodeSvgMetadata:function(){return b},getTEXtChunk:function(){return oe}});var D=e(8950),E=e(2975),y=e.n(E),h=e(2983),S=e.n(h),I=e(1194),v=e(3434),n=e.n(v),M=e(2744),Z=e(9937),H=e(5796),W=function(_){return new Promise(function(g,O){var s=typeof _=="string"?new Blob([new TextEncoder().encode(_)]):new Blob([_ instanceof Uint8Array?_:new Uint8Array(_)]),f=new FileReader;f.onload=function(t){if(!t.target||typeof t.target.result!="string")return O(new Error("couldn't convert to byte string"));g(t.target.result)},f.readAsBinaryString(s)})},u=function(_){for(var g=new ArrayBuffer(_.length),O=new Uint8Array(g),s=0,f=_.length;s<f;s++)O[s]=_.charCodeAt(s);return g},U=function(_){return new TextDecoder("utf-8").decode(u(_))},le=function(){var _=(0,D.Z)(y().mark(function g(O){var s=arguments;return y().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(!(s.length>1&&s[1]!==void 0&&s[1])){f.next=5;break}f.t0=window.btoa(O),f.next=10;break;case 5:return f.t1=window,f.next=8,W(O);case 8:f.t2=f.sent,f.t0=f.t1.btoa.call(f.t1,f.t2);case 10:return f.abrupt("return",f.t0);case 11:case"end":return f.stop()}},g)}));return function(g){return _.apply(this,arguments)}}(),de=function(){var _=(0,D.Z)(y().mark(function g(O){var s,f=arguments;return y().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return s=f.length>1&&f[1]!==void 0&&f[1],t.abrupt("return",s?window.atob(O):U(window.atob(O)));case 2:case"end":return t.stop()}},g)}));return function(g){return _.apply(this,arguments)}}(),he=function(){var _=(0,D.Z)(y().mark(function g(O){var s,f;return y().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(s=O.text,O.compress===!1){t.next=11;break}return t.prev=2,t.next=5,W((0,M.deflate)(s));case 5:f=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t.catch(2),console.error("encode: cannot deflate",t.t0);case 11:if(t.t1=!!f,t.t2=f,t.t2){t.next=17;break}return t.next=16,W(s);case 16:t.t2=t.sent;case 17:return t.t3=t.t2,t.abrupt("return",{version:"1",encoding:"bstring",compressed:t.t1,encoded:t.t3});case 19:case"end":return t.stop()}},g,null,[[2,8]])}));return function(g){return _.apply(this,arguments)}}(),pe=function(){var _=(0,D.Z)(y().mark(function g(O){var s;return y().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:f.t0=O.encoding,f.next=f.t0==="bstring"?3:12;break;case 3:if(!O.compressed){f.next=7;break}f.t1=O.encoded,f.next=10;break;case 7:return f.next=9,U(O.encoded);case 9:f.t1=f.sent;case 10:return s=f.t1,f.abrupt("break",13);case 12:throw new Error('decode: unknown encoding "'.concat(O.encoding,'"'));case 13:if(!O.compressed){f.next=15;break}return f.abrupt("return",(0,M.inflate)(new Uint8Array(u(s)),{to:"string"}));case 15:return f.abrupt("return",s);case 16:case"end":return f.stop()}},g)}));return function(g){return _.apply(this,arguments)}}(),oe=function(){var _=(0,D.Z)(y().mark(function g(O){var s,f;return y().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=S(),t.t1=Uint8Array,t.next=4,(0,H.vZ)(O);case 4:if(t.t2=t.sent,t.t3=new t.t1(t.t2),s=(0,t.t0)(t.t3),!(f=s.find(function(w){return w.name==="tEXt"}))){t.next=10;break}return t.abrupt("return",I.decode(f.data));case 10:return t.abrupt("return",null);case 11:case"end":return t.stop()}},g)}));return function(g){return _.apply(this,arguments)}}(),P=function(){var _=(0,D.Z)(y().mark(function g(O){var s,f,t,w;return y().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return s=O.blob,f=O.metadata,l.t0=S(),l.t1=Uint8Array,l.next=5,(0,H.vZ)(s);case 5:return l.t2=l.sent,l.t3=new l.t1(l.t2),t=(0,l.t0)(l.t3),l.t4=I,l.t5=Z.LO.excalidraw,l.t6=JSON,l.next=13,he({text:f,compress:!0});case 13:return l.t7=l.sent,l.t8=l.t6.stringify.call(l.t6,l.t7),w=l.t4.encode.call(l.t4,l.t5,l.t8),t.splice(-1,0,w),l.abrupt("return",new Blob([n()(t)],{type:Z.LO.png}));case 18:case"end":return l.stop()}},g)}));return function(g){return _.apply(this,arguments)}}(),$=function(){var _=(0,D.Z)(y().mark(function g(O){var s,f;return y().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,oe(O);case 2:if(((s=t.sent)==null?void 0:s.keyword)!==Z.LO.excalidraw){t.next=19;break}if(t.prev=4,"encoded"in(f=JSON.parse(s.text))){t.next=10;break}if(!("type"in f)||f.type!==Z.r8.excalidraw){t.next=9;break}return t.abrupt("return",s.text);case 9:throw new Error("FAILED");case 10:return t.next=12,pe(f);case 12:return t.abrupt("return",t.sent);case 15:throw t.prev=15,t.t0=t.catch(4),console.error(t.t0),new Error("FAILED");case 19:throw new Error("INVALID");case 20:case"end":return t.stop()}},g,null,[[4,15]])}));return function(g){return _.apply(this,arguments)}}(),b=function(){var _=(0,D.Z)(y().mark(function g(O){var s,f,t;return y().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return s=O.text,w.t0=le,w.t1=JSON,w.next=5,he({text:s});case 5:return w.t2=w.sent,w.t3=w.t1.stringify.call(w.t1,w.t2),w.next=9,(0,w.t0)(w.t3,!0);case 9:return f=w.sent,t="",t+="<!-- payload-type:".concat(Z.LO.excalidraw," -->"),t+="<!-- payload-version:2 -->",t+="<!-- payload-start -->",t+=f,t+="<!-- payload-end -->",w.abrupt("return",t);case 17:case"end":return w.stop()}},g)}));return function(g){return _.apply(this,arguments)}}(),R=function(){var _=(0,D.Z)(y().mark(function g(O){var s,f,t,w,l,a,c;return y().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!(s=O.svg).includes("payload-type:".concat(Z.LO.excalidraw))){m.next=26;break}if(f=s.match(/<!-- payload-start -->\s*(.+?)\s*<!-- payload-end -->/)){m.next=5;break}throw new Error("INVALID");case 5:return t=s.match(/<!-- payload-version:(\d+) -->/),w=t?.[1]||"1",l=w!=="1",m.prev=8,m.next=11,de(f[1],l);case 11:if(a=m.sent,"encoded"in(c=JSON.parse(a))){m.next=17;break}if(!("type"in c)||c.type!==Z.r8.excalidraw){m.next=16;break}return m.abrupt("return",a);case 16:throw new Error("FAILED");case 17:return m.next=19,pe(c);case 19:return m.abrupt("return",m.sent);case 22:throw m.prev=22,m.t0=m.catch(8),console.error(m.t0),new Error("FAILED");case 26:throw new Error("INVALID");case 27:case"end":return m.stop()}},g,null,[[8,22]])}));return function(g){return _.apply(this,arguments)}}()},2435:function(Se,Q,e){e.d(Q,{HD:function(){return le},Um:function(){return U.Um},cT:function(){return W.cT},n8:function(){return U.n8},p1:function(){return de}});var D=e(8950),E=e(2975),y=e.n(E),h=e(4694),S=e(9937),I=e(7651),v=e(8227),n=e(6013),M=e(4105),Z=e(3668),H=e(9827),W=e(5796),u=e(6548),U=e(4419),le=function(he,pe,oe){var P=pe.selectedElementIds;he=(0,I.Lm)(he);var $=oe&&(0,M.N)(he,{selectedElementIds:P}),b=null,R=$?(0,M.eD)(he,{selectedElementIds:P},{includeBoundTextElement:!0}):he;return $&&(R.length===1&&(0,I.He)(R[0])?(b=R[0],R=(0,n.Xs)({elements:he,bounds:b,type:"overlap"})):R.length>1&&(R=(0,M.eD)(he,{selectedElementIds:P},{includeBoundTextElement:!0,includeElementsInFrames:!0}))),{exportingFrame:b,exportedElements:(0,H.xU)(R)}},de=function(){var he=(0,D.Z)(y().mark(function pe(oe,P,$,b,R){var _,g,O,s,f,t,w,l,a,c,m,z,j;return y().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(_=R.exportBackground,g=R.exportPadding,O=g===void 0?S.qy:g,s=R.viewBackgroundColor,f=R.name,t=R.fileHandle,w=t===void 0?null:t,l=R.exportingFrame,a=l===void 0?null:l,P.length!==0){k.next=3;break}throw new Error((0,v.t)("alerts.cannotExportEmptyCanvas"));case 3:if(oe!=="svg"&&oe!=="clipboard-svg"){k.next=17;break}return k.next=6,(0,Z.$D)(P,{exportBackground:_,exportWithDarkMode:$.exportWithDarkMode,viewBackgroundColor:s,exportPadding:O,exportScale:$.exportScale,exportEmbedScene:$.exportEmbedScene&&oe==="svg"},b,{exportingFrame:a});case 6:if(c=k.sent,oe!=="svg"){k.next=13;break}return k.next=10,(0,u.NL)(new Blob([c.outerHTML],{type:S.LO.svg}),{description:"Export to SVG",name:f,extension:$.exportEmbedScene?"excalidraw.svg":"svg",fileHandle:w});case 10:return k.abrupt("return",k.sent);case 13:if(oe!=="clipboard-svg"){k.next=17;break}return k.next=16,(0,h.dd)(c.outerHTML);case 16:return k.abrupt("return");case 17:if(m=(0,Z.NL)(P,$,b,{exportBackground:_,viewBackgroundColor:s,exportPadding:O,exportingFrame:a}),oe!=="png"){k.next=33;break}return k.next=21,(0,W._c)(m);case 21:if(z=k.sent,!$.exportEmbedScene){k.next=28;break}return k.next=25,Promise.resolve().then(e.bind(e,250));case 25:return k.next=27,k.sent.encodePngMetadata({blob:z,metadata:(0,U.I_)(P,$,b,"local")});case 27:z=k.sent;case 28:return k.next=30,(0,u.NL)(z,{description:"Export to PNG",name:f,extension:"png",fileHandle:w});case 30:return k.abrupt("return",k.sent);case 33:if(oe!=="clipboard"){k.next=52;break}return k.prev=34,j=(0,W._c)(m),k.next=38,(0,h.uR)(j);case 38:k.next=50;break;case 40:if(k.prev=40,k.t0=k.catch(34),console.warn(k.t0),k.t0.name!=="CANVAS_POSSIBLY_TOO_BIG"){k.next=45;break}throw k.t0;case 45:if(!S.vU||k.t0.name!=="TypeError"){k.next=49;break}throw new Error("".concat((0,v.t)("alerts.couldNotCopyToClipboard"),` + +`).concat((0,v.t)("hints.firefox_clipboard_write")));case 49:throw new Error((0,v.t)("alerts.couldNotCopyToClipboard"));case 50:k.next=53;break;case 52:throw new Error("Unsupported export type");case 53:case"end":return k.stop()}},pe,null,[[34,40]])}));return function(pe,oe,P,$,b){return he.apply(this,arguments)}}()},4419:function(Se,Q,e){e.d(Q,{HT:function(){return he},I_:function(){return u},NI:function(){return pe},Um:function(){return U},dS:function(){return de},n8:function(){return le},t1:function(){return oe}});var D=e(6655),E=e(8950),y=e(2975),h=e.n(y),S=e(6548),I=e(6853),v=e(9937),n=e(7651),M=e(5796);function Z(P,$){var b=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!b){if(Array.isArray(P)||(b=function(f,t){if(f){if(typeof f=="string")return H(f,t);var w=Object.prototype.toString.call(f).slice(8,-1);if(w==="Object"&&f.constructor&&(w=f.constructor.name),w==="Map"||w==="Set")return Array.from(f);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return H(f,t)}}(P))||$&&P&&typeof P.length=="number"){b&&(P=b);var R=0,_=function(){};return{s:_,n:function(){return R>=P.length?{done:!0}:{done:!1,value:P[R++]}},e:function(f){throw f},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g,O=!0,s=!1;return{s:function(){b=b.call(P)},n:function(){var f=b.next();return O=f.done,f},e:function(f){s=!0,g=f},f:function(){try{O||b.return==null||b.return()}finally{if(s)throw g}}}}function H(P,$){($==null||$>P.length)&&($=P.length);for(var b=0,R=new Array($);b<$;b++)R[b]=P[b];return R}var W=function(P,$){var b,R={},_=Z(P);try{for(_.s();!(b=_.n()).done;){var g=b.value;!g.isDeleted&&"fileId"in g&&g.fileId&&$[g.fileId]&&(R[g.fileId]=$[g.fileId])}}catch(O){_.e(O)}finally{_.f()}return R},u=function(P,$,b,R){var _={type:v.r8.excalidraw,version:v.Kr.excalidraw,source:v.pb,elements:R==="local"?(0,n._M)(P):(0,n.BQ)(P),appState:R==="local"?(0,I.s)($):(0,I.eS)($),files:R==="local"?W(P,b):void 0};return JSON.stringify(_,null,2)},U=function(){var P=(0,E.Z)(h().mark(function $(b,R,_){var g,O,s;return h().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return g=u(b,R,_,"local"),O=new Blob([g],{type:v.LO.excalidraw}),f.next=4,(0,S.NL)(O,{name:R.name,extension:"excalidraw",description:"Excalidraw file",fileHandle:(0,M.g8)(R.fileHandle)?null:R.fileHandle});case 4:return s=f.sent,f.abrupt("return",{fileHandle:s});case 6:case"end":return f.stop()}},$)}));return function($,b,R){return P.apply(this,arguments)}}(),le=function(){var P=(0,E.Z)(h().mark(function $(b,R){var _;return h().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,(0,S.I$)({description:"Excalidraw files"});case 2:return _=g.sent,g.t0=M.cT,g.next=6,(0,M.gY)(_);case 6:return g.t1=g.sent,g.t2=b,g.t3=R,g.t4=_.handle,g.abrupt("return",(0,g.t0)(g.t1,g.t2,g.t3,g.t4));case 11:case"end":return g.stop()}},$)}));return function($,b){return P.apply(this,arguments)}}(),de=function(P){return P?.type===v.r8.excalidraw&&(!P.elements||Array.isArray(P.elements)&&(!P.appState||(0,D.Z)(P.appState)==="object"))},he=function(P){return(0,D.Z)(P)==="object"&&P&&P.type===v.r8.excalidrawLibrary&&(P.version===1||P.version===2)},pe=function(P){var $={type:v.r8.excalidrawLibrary,version:v.Kr.excalidrawLibrary,source:v.pb,libraryItems:P};return JSON.stringify($,null,2)},oe=function(){var P=(0,E.Z)(h().mark(function $(b){var R;return h().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return R=pe(b),_.next=3,(0,S.NL)(new Blob([R],{type:v.LO.excalidrawlib}),{name:"library",extension:"excalidrawlib",description:"Excalidraw library file"});case 3:case"end":return _.stop()}},$)}));return function($){return P.apply(this,arguments)}}()},9326:function(Se,Q,e){e.d(Q,{Di:function(){return t},WV:function(){return f},rF:function(){return R},xS:function(){return w},zh:function(){return O}});var D=e(7169),E=e(8950),y=e(5169),h=e(8821),S=e(1930),I=e(2975),v=e.n(I),n=e(5796),M=e(7994),Z=e(3607),H=e(453),W=e(4949),u=e(3506),U=e(8227),le=e(9787),de=e(9937),he=e(5832),pe=e(9827);function oe(l,a){var c=Object.keys(l);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(l);a&&(m=m.filter(function(z){return Object.getOwnPropertyDescriptor(l,z).enumerable})),c.push.apply(c,m)}return c}function P(l){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?arguments[a]:{};a%2?oe(Object(c),!0).forEach(function(m){(0,D.Z)(l,m,c[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):oe(Object(c)).forEach(function(m){Object.defineProperty(l,m,Object.getOwnPropertyDescriptor(c,m))})}return l}function $(l,a){var c=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!c){if(Array.isArray(l)||(c=function(N,G){if(N){if(typeof N=="string")return b(N,G);var ie=Object.prototype.toString.call(N).slice(8,-1);if(ie==="Object"&&N.constructor&&(ie=N.constructor.name),ie==="Map"||ie==="Set")return Array.from(N);if(ie==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie))return b(N,G)}}(l))||a&&l&&typeof l.length=="number"){c&&(l=c);var m=0,z=function(){};return{s:z,n:function(){return m>=l.length?{done:!0}:{done:!1,value:l[m++]}},e:function(N){throw N},f:z}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j,k=!0,x=!1;return{s:function(){c=c.call(l)},n:function(){var N=c.next();return k=N.done,N},e:function(N){x=!0,j=N},f:function(){try{k||c.return==null||c.return()}finally{if(x)throw j}}}}function b(l,a){(a==null||a>l.length)&&(a=l.length);for(var c=0,m=new Array(a);c<a;c++)m[c]=l[c];return m}var R=(0,Z.cn)({status:"loaded",isInitialized:!0,libraryItems:[]}),_=function(l){return(0,pe.xU)(l)},g=function(l,a){return!l.find(function(c){return c.elements.length===a.elements.length&&c.elements.every(function(m,z){return m.id===a.elements[z].id&&m.versionNonce===a.elements[z].versionNonce})})},O=function(l,a){var c,m=[],z=$(a);try{for(z.s();!(c=z.n()).done;){var j=c.value;g(l,j)&&m.push(j)}}catch(k){z.e(k)}finally{z.f()}return[].concat(m,(0,S.Z)(l))},s=(0,y.Z)(function l(a){var c=this;(0,h.Z)(this,l),this.lastLibraryItems=[],this.isInitialized=!1,this.updateQueue=[],this.getLastUpdateTask=function(){return c.updateQueue[c.updateQueue.length-1]},this.notifyListeners=function(){if(c.updateQueue.length>0)H.e_.set(R,{status:"loading",libraryItems:c.lastLibraryItems,isInitialized:c.isInitialized});else{c.isInitialized=!0,H.e_.set(R,{status:"loaded",libraryItems:c.lastLibraryItems,isInitialized:c.isInitialized});try{var m,z;(m=(z=c.app.props).onLibraryChange)===null||m===void 0||m.call(z,_(c.lastLibraryItems))}catch(j){console.error(j)}}},this.destroy=function(){c.isInitialized=!1,c.updateQueue=[],c.lastLibraryItems=[],H.e_.set(he.YX,new Map)},this.resetLibrary=function(){return c.setLibrary([])},this.getLatestLibrary=function(){return new Promise(function(){var m=(0,E.Z)(v().mark(function z(j){var k;return v().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.prev=0,x.next=3,c.getLastUpdateTask()||c.lastLibraryItems;case 3:k=x.sent,c.updateQueue.length>0?j(c.getLatestLibrary()):j(_(k)),x.next=10;break;case 7:return x.prev=7,x.t0=x.catch(0),x.abrupt("return",j(c.lastLibraryItems));case 10:case"end":return x.stop()}},z,null,[[0,7]])}));return function(z){return m.apply(this,arguments)}}())},this.updateLibrary=function(){var m=(0,E.Z)(v().mark(function z(j){var k,x,N,G,ie,V,ce,te,L;return v().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return k=j.libraryItems,x=j.prompt,N=x!==void 0&&x,G=j.merge,ie=G!==void 0&&G,V=j.openLibraryMenu,ce=V!==void 0&&V,te=j.defaultStatus,L=te===void 0?"unpublished":te,ce&&c.app.setState({openSidebar:{name:de.Cc.name,tab:de.tf}}),re.abrupt("return",c.setLibrary(function(){return new Promise(function(){var me=(0,E.Z)(v().mark(function Ce(We,Te){var we,xe;return v().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return _e.prev=0,_e.next=3,typeof k!="function"||k instanceof Blob?k:k(c.lastLibraryItems);case 3:if(!((we=_e.sent)instanceof Blob)){_e.next=10;break}return _e.next=7,(0,n.lV)(we,L);case 7:xe=_e.sent,_e.next=11;break;case 10:xe=(0,M.wJ)(we,L);case 11:!N||window.confirm((0,U.t)("alerts.confirmAddLibrary",{numShapes:xe.length}))?(N&&c.app.focusContainer(),We(ie?O(c.lastLibraryItems,xe):xe)):Te(new u._L),_e.next=17;break;case 14:_e.prev=14,_e.t0=_e.catch(0),Te(_e.t0);case 17:case"end":return _e.stop()}},Ce,null,[[0,14]])}));return function(Ce,We){return me.apply(this,arguments)}}())}));case 3:case"end":return re.stop()}},z)}));return function(z){return m.apply(this,arguments)}}(),this.setLibrary=function(m){var z=new Promise(function(){var j=(0,E.Z)(v().mark(function k(x,N){return v().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.prev=0,G.next=3,c.getLastUpdateTask();case 3:return typeof m=="function"&&(m=m(c.lastLibraryItems)),G.t0=_,G.next=7,m;case 7:G.t1=G.sent,c.lastLibraryItems=(0,G.t0)(G.t1),x(c.lastLibraryItems),G.next=15;break;case 12:G.prev=12,G.t2=G.catch(0),N(G.t2);case 15:case"end":return G.stop()}},k,null,[[0,12]])}));return function(k,x){return j.apply(this,arguments)}}()).catch(function(j){if(j.name==="AbortError")return console.warn("Library update aborted by user"),c.lastLibraryItems;throw j}).finally(function(){c.updateQueue=c.updateQueue.filter(function(j){return j!==z}),c.notifyListeners()});return c.updateQueue.push(z),c.notifyListeners(),z},this.app=a});Q.ZP=s;var f=function(l){var a,c=Math.ceil(Math.sqrt(l.length)),m=[],z=0,j=0,k=0,x=0,N=0,G=0,ie=0,V=$(l);try{var ce=function(){var te=a.value;N&&N%c==0&&(j+=k+50,z=0,G=0,ie++),G===0&&(k=function(xe){return l.slice(xe*c,xe*c+c).reduce(function(_e,Oe){var J=(0,W.v2)(Oe.elements).height;return Math.max(_e,J)},0)}(ie)),x=function(xe){var _e,Oe=0,J=0,ke=0,q=$(l);try{for(q.s();!(_e=q.n()).done;){var o=_e.value;if(Oe%c==0&&(J=0),J===xe){var i=(0,W.v2)(o.elements).width;ke=Math.max(ke,i)}Oe++,J++}}catch(p){q.e(p)}finally{q.f()}return ke}(G);var L=(0,W.v2)(te.elements),re=L.minX,me=L.minY,Ce=L.width,We=L.height,Te=(x-Ce)/2,we=(k-We)/2;m.push.apply(m,(0,S.Z)(te.elements.map(function(xe){return P(P({},xe),{},{x:xe.x+z+Te-re,y:xe.y+j+we-me})}))),z+=x+50,N++,G++};for(V.s();!(a=V.n()).done;)ce()}catch(te){V.e(te)}finally{V.f()}return m},t=function(){var l=new URLSearchParams(window.location.hash.slice(1)).get(de.ah.addLibrary)||new URLSearchParams(window.location.search).get(de.UO.addLibrary),a=l?new URLSearchParams(window.location.hash.slice(1)).get("token"):null;return l?{libraryUrl:l,idToken:a}:null},w=function(l){var a=l.excalidrawAPI,c=l.getInitialLibraryItems,m=(0,le.useRef)(c);(0,le.useEffect)(function(){if(a){var z=function(){var x=(0,E.Z)(v().mark(function N(G){var ie,V,ce,te,L,re;return v().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ie=G.libraryUrl,V=G.idToken,ce=new Promise(function(){var Ce=(0,E.Z)(v().mark(function We(Te,we){var xe,_e;return v().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Oe.prev=0,Oe.next=3,fetch(decodeURIComponent(ie));case 3:return xe=Oe.sent,Oe.next=6,xe.blob();case 6:_e=Oe.sent,Te(_e),Oe.next=13;break;case 10:Oe.prev=10,Oe.t0=Oe.catch(0),we(Oe.t0);case 13:case"end":return Oe.stop()}},We,null,[[0,10]])}));return function(We,Te){return Ce.apply(this,arguments)}}()),te=V!==a.id,me.next=5,te&&document.hidden?new Promise(function(Ce){window.addEventListener("focus",function(){return Ce()},{once:!0})}):null;case 5:return me.prev=5,me.next=8,a.updateLibrary({libraryItems:ce,prompt:te,merge:!0,defaultStatus:"published",openLibraryMenu:!0});case 8:me.next=13;break;case 10:throw me.prev=10,me.t0=me.catch(5),me.t0;case 13:return me.prev=13,window.location.hash.includes(de.ah.addLibrary)?((L=new URLSearchParams(window.location.hash.slice(1))).delete(de.ah.addLibrary),window.history.replaceState({},de.iC,"#".concat(L.toString()))):window.location.search.includes(de.UO.addLibrary)&&((re=new URLSearchParams(window.location.search)).delete(de.UO.addLibrary),window.history.replaceState({},de.iC,"?".concat(re.toString()))),me.finish(13);case 16:case"end":return me.stop()}},N,null,[[5,10,13,16]])}));return function(N){return x.apply(this,arguments)}}(),j=function(x){x.preventDefault();var N=t();N&&(x.stopImmediatePropagation(),window.history.replaceState({},"",x.oldURL),z(N))};m.current&&a.updateLibrary({libraryItems:m.current()});var k=t();return k&&z(k),window.addEventListener(de.Ks.HASHCHANGE,j),function(){window.removeEventListener(de.Ks.HASHCHANGE,j)}}},[a])}},7994:function(Se,Q,e){e.d(Q,{ET:function(){return _},lY:function(){return s},nu:function(){return f},wJ:function(){return w}});var D=e(2577),E=e(7169),y=e(7651),h=e(4183),S=e(4643),I=e(9937),v=e(6853),n=e(7422),M=e(583),Z=e(9827),H=e(4761),W=e(8020);function u(l,a){var c=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!c){if(Array.isArray(l)||(c=function(N,G){if(N){if(typeof N=="string")return U(N,G);var ie=Object.prototype.toString.call(N).slice(8,-1);if(ie==="Object"&&N.constructor&&(ie=N.constructor.name),ie==="Map"||ie==="Set")return Array.from(N);if(ie==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie))return U(N,G)}}(l))||a&&l&&typeof l.length=="number"){c&&(l=c);var m=0,z=function(){};return{s:z,n:function(){return m>=l.length?{done:!0}:{done:!1,value:l[m++]}},e:function(N){throw N},f:z}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j,k=!0,x=!1;return{s:function(){c=c.call(l)},n:function(){var N=c.next();return k=N.done,N},e:function(N){x=!0,j=N},f:function(){try{k||c.return==null||c.return()}finally{if(x)throw j}}}}function U(l,a){(a==null||a>l.length)&&(a=l.length);for(var c=0,m=new Array(a);c<a;c++)m[c]=l[c];return m}function le(l,a){var c=Object.keys(l);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(l);a&&(m=m.filter(function(z){return Object.getOwnPropertyDescriptor(l,z).enumerable})),c.push.apply(c,m)}return c}function de(l){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?arguments[a]:{};a%2?le(Object(c),!0).forEach(function(m){(0,E.Z)(l,m,c[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):le(Object(c)).forEach(function(m){Object.defineProperty(l,m,Object.getOwnPropertyDescriptor(c,m))})}return l}var he={selection:!0,text:!0,rectangle:!0,diamond:!0,ellipse:!0,line:!0,image:!0,arrow:!0,freedraw:!0,eraser:!1,custom:!0,frame:!0,embeddable:!0,hand:!0,laser:!1},pe=function(l){return Object.keys(I.ut).includes(l)?I.ut[l]:I.rk},oe=function(l){return l?de(de({},l),{},{focus:l.focus||0}):null},P=function(l,a){var c,m,z,j,k,x,N,G,ie,V,ce,te,L,re,me={type:a.type||l.type,version:l.version||1,versionNonce:(c=l.versionNonce)!==null&&c!==void 0?c:0,isDeleted:(m=l.isDeleted)!==null&&m!==void 0&&m,id:l.id||(0,S.kb)(),fillStyle:l.fillStyle||I.HN.fillStyle,strokeWidth:l.strokeWidth||I.HN.strokeWidth,strokeStyle:(z=l.strokeStyle)!==null&&z!==void 0?z:I.HN.strokeStyle,roughness:(j=l.roughness)!==null&&j!==void 0?j:I.HN.roughness,opacity:l.opacity==null?I.HN.opacity:l.opacity,angle:l.angle||0,x:(k=(x=a.x)!==null&&x!==void 0?x:l.x)!==null&&k!==void 0?k:0,y:(N=(G=a.y)!==null&&G!==void 0?G:l.y)!==null&&N!==void 0?N:0,strokeColor:l.strokeColor||I.HN.strokeColor,backgroundColor:l.backgroundColor||I.HN.backgroundColor,width:l.width||0,height:l.height||0,seed:(ie=l.seed)!==null&&ie!==void 0?ie:1,groupIds:(V=l.groupIds)!==null&&V!==void 0?V:[],frameId:(ce=l.frameId)!==null&&ce!==void 0?ce:null,roundness:l.roundness?l.roundness:l.strokeSharpness==="round"?{type:(0,h.QI)(l.type)?I.a6.LEGACY:I.a6.PROPORTIONAL_RADIUS}:null,boundElements:l.boundElementIds?l.boundElementIds.map(function(Ce){return{type:"arrow",id:Ce}}):(te=l.boundElements)!==null&&te!==void 0?te:[],updated:(L=l.updated)!==null&&L!==void 0?L:(0,Z.C3)(),link:l.link?(0,W.$u)(l.link):null,locked:(re=l.locked)!==null&&re!==void 0&&re};return"customData"in l&&(me.customData=l.customData),I.WR in l&&(me[I.WR]=l[I.WR]),de(de(de({},me),(0,y.Qp)(me)),a)},$=function(l,a){if(l.boundElements){var c=l.boundElements.slice(),m=new Set;l.boundElements=c.reduce(function(z,j){var k=a.get(j.id);if(k&&!m.has(j.id)){if(m.add(j.id),k.isDeleted)return z;z.push(j),(0,h.iB)(k)&&!k.containerId&&(k.containerId=l.id)}return z},[])}},b=function(l,a){var c=l.containerId?a.get(l.containerId):null;if(c){if(!l.isDeleted&&c.boundElements&&!c.boundElements.find(function(z){return z.id===l.id})){var m=(c.boundElements||(c.boundElements=[])).slice();m.push({type:"text",id:l.id}),c.boundElements=m}}else l.containerId=null},R=function(l,a){l.frameId&&(a.get(l.frameId)||(l.frameId=null))},_=function(l,a,c){var m=new Set,z=a?(0,Z.xn)(a):null,j=(l||[]).reduce(function(ie,V){if(V.type!=="selection"&&!(0,y.QD)(V)){var ce=function(L){var re,me,Ce=arguments.length>1&&arguments[1]!==void 0&&arguments[1];switch(L.type){case"text":var We=L.fontSize,Te=L.fontFamily;if("font"in L){var we=L.font.split(" "),xe=(0,D.Z)(we,2),_e=xe[0],Oe=xe[1];We=parseFloat(_e),Te=pe(Oe)}var J=typeof L.text=="string"&&L.text||"",ke=L.lineHeight||(L.height?(0,H.$2)(L):(0,H.PT)(L.fontFamily)),q=(0,H.R8)(L.text,(0,Z.mO)(L),ke);return L=P(L,{fontSize:We,fontFamily:Te,text:J,textAlign:L.textAlign||I.Hg,verticalAlign:L.verticalAlign||I.hs,containerId:(re=L.containerId)!==null&&re!==void 0?re:null,originalText:L.originalText||J,lineHeight:ke,baseline:q}),J||L.isDeleted||(L=de(de({},L),{},{originalText:J,isDeleted:!0}),L=(0,M.ZP)(L)),Ce&&(L=de(de({},L),(0,y.JZ)(L))),L;case"freedraw":return P(L,{points:L.points,lastCommittedPoint:null,simulatePressure:L.simulatePressure,pressures:L.pressures});case"image":return P(L,{status:L.status||"pending",fileId:L.fileId,scale:L.scale||[1,1]});case"line":case"draw":case"arrow":var o=L,i=o.startArrowhead,p=i===void 0?null:i,B=o.endArrowhead,A=B===void 0?L.type==="arrow"?"arrow":null:B,X=L.x,Y=L.y,ee=!Array.isArray(L.points)||L.points.length<2?[[0,0],[L.width,L.height]]:L.points;if(ee[0][0]!==0||ee[0][1]!==0){var ge=n._.getNormalizedPoints(L);ee=ge.points,X=ge.x,Y=ge.y}return P(L,{type:L.type==="draw"?"line":L.type,startBinding:oe(L.startBinding),endBinding:oe(L.endBinding),lastCommittedPoint:null,startArrowhead:p,endArrowhead:A,points:ee,x:X,y:Y});case"ellipse":case"rectangle":case"diamond":return P(L,{});case"embeddable":return P(L,{validated:null});case"frame":return P(L,{name:(me=L.name)!==null&&me!==void 0?me:null})}return null}(V,c?.refreshDimensions);if(ce){var te=z?.get(V.id);te&&te.version>ce.version&&(ce=(0,M.ZP)(ce,te.version)),m.has(ce.id)&&(ce=de(de({},ce),{},{id:(0,S.kb)()})),m.add(ce.id),ie.push(ce)}}return ie},[]);if(c==null||!c.repairBindings)return j;var k,x=(0,Z.xn)(j),N=u(j);try{for(N.s();!(k=N.n()).done;){var G=k.value;G.frameId&&R(G,x),(0,h.iB)(G)&&G.containerId?b(G,x):G.boundElements&&$(G,x)}}catch(ie){N.e(ie)}finally{N.f()}return j},g=function(l,a,c){var m=a[l];return m!==void 0?m:c[l]},O={isSidebarDocked:function(l,a){var c;return["defaultSidebarDockedPreference",(c=l.isSidebarDocked)!==null&&c!==void 0?c:g("defaultSidebarDockedPreference",l,a)]}},s=function(l,a){var c,m,z,j;l=l||{};for(var k=(0,v.im)(),x={},N=0,G=Object.keys(O);N<G.length;N++){var ie=G[N];if(ie in l){var V=O[ie](l,k),ce=(0,D.Z)(V,2),te=ce[0],L=ce[1];x[te]=L}}for(var re=0,me=Object.entries(k);re<me.length;re++){var Ce=(0,D.Z)(me[re],2),We=Ce[0],Te=Ce[1],we=l[We],xe=a?a[We]:void 0;x[We]=we!==void 0?we:xe!==void 0?xe:Te}return de(de({},x),{},{cursorButton:a?.cursorButton||"up",penDetected:(c=a?.penDetected)!==null&&c!==void 0?c:!!l.penMode&&(m=l.penDetected)!==null&&m!==void 0&&m,activeTool:de(de({},(0,Z.Om)(k,x.activeTool.type&&he[x.activeTool.type]?x.activeTool:{type:"selection"})),{},{lastActiveTool:null,locked:(z=x.activeTool.locked)!==null&&z!==void 0&&z}),zoom:typeof l.zoom=="number"?{value:l.zoom}:(j=l.zoom)!==null&&j!==void 0&&j.value?l.zoom:k.zoom,openSidebar:typeof l.openSidebar=="string"?{name:I.Cc.name}:x.openSidebar})},f=function(l,a,c,m){return{elements:_(l?.elements,c,m),appState:s(l?.appState,a||null),files:l?.files||{}}},t=function(l){var a=_((0,y.Lm)(l.elements),null);return a.length?de(de({},l),{},{elements:a}):null},w=function(){var l,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1?arguments[1]:void 0,m=[],z=u(a);try{for(z.s();!(l=z.n()).done;){var j=l.value;if(Array.isArray(j)){var k=t({status:c,elements:j,id:(0,S.kb)(),created:Date.now()});k&&m.push(k)}else{var x=j,N=t(de(de({},x),{},{id:x.id||(0,S.kb)(),status:x.status||c,created:x.created||Date.now()}));N&&m.push(N)}}}catch(G){z.e(G)}finally{z.f()}return m}},6199:function(Se,Q,e){e.d(Q,{w:function(){return R}});var D=e(2577),E=e(5169),y=e(8821),h=e(7169),S=e(9937),I=e(7651),v=e(9645),n=e(5742),M=e(4761),Z=e(9827),H=e(5999),W=e(4643);function u(_,g){var O=typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(!O){if(Array.isArray(_)||(O=function(a,c){if(a){if(typeof a=="string")return U(a,c);var m=Object.prototype.toString.call(a).slice(8,-1);if(m==="Object"&&a.constructor&&(m=a.constructor.name),m==="Map"||m==="Set")return Array.from(a);if(m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return U(a,c)}}(_))||g&&_&&typeof _.length=="number"){O&&(_=O);var s=0,f=function(){};return{s:f,n:function(){return s>=_.length?{done:!0}:{done:!1,value:_[s++]}},e:function(a){throw a},f}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var t,w=!0,l=!1;return{s:function(){O=O.call(_)},n:function(){var a=O.next();return w=a.done,a},e:function(a){l=!0,t=a},f:function(){try{w||O.return==null||O.return()}finally{if(l)throw t}}}}function U(_,g){(g==null||g>_.length)&&(g=_.length);for(var O=0,s=new Array(g);O<g;O++)s[O]=_[O];return s}function le(_,g){var O=Object.keys(_);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(_);g&&(s=s.filter(function(f){return Object.getOwnPropertyDescriptor(_,f).enumerable})),O.push.apply(O,s)}return O}function de(_){for(var g=1;g<arguments.length;g++){var O=arguments[g]!=null?arguments[g]:{};g%2?le(Object(O),!0).forEach(function(s){(0,h.Z)(_,s,O[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(O)):le(Object(O)).forEach(function(s){Object.defineProperty(_,s,Object.getOwnPropertyDescriptor(O,s))})}return _}var he=100,pe=0,oe=100,P=function(_,g){var O=(0,n.VL)(de(de({x:0,y:0,textAlign:S.I8.CENTER,verticalAlign:S.oX.MIDDLE},g),{},{containerId:_.id,strokeColor:g.strokeColor||_.strokeColor}));return Object.assign(_,{boundElements:(_.boundElements||[]).concat({type:"text",id:O.id})}),(0,I.oN)(O,_),[_,O]},$=function(_,g,O,s){var f,t;if(Object.assign(_,{startBinding:_?.startBinding||null,endBinding:_.endBinding||null}),g){var w,l,a,c=(w=g?.width)!==null&&w!==void 0?w:oe,m=(l=g?.height)!==null&&l!==void 0?l:oe;g.id&&((a=s.getElement(g.id))||console.error("No element for start binding with id ".concat(g.id," found")));var z=g.x||_.x-c,j=g.y||_.y-m/2,k=a?a.type:g.type;if(k){if(k==="text"){var x="";a&&a.type==="text"?x=a.text:g.type==="text"&&(x=g.text),x||console.error("No text found for start binding text element for ".concat(_.id)),f=(0,n.VL)(de(de(de({x:z,y:j,type:"text"},a),g),{},{text:x})),Object.assign(f,{x:g.x||_.x-f.width,y:g.y||_.y-f.height/2})}else switch(k){case"rectangle":case"ellipse":case"diamond":f=(0,I.Up)(de(de(de({x:z,y:j,width:c,height:m},a),g),{},{type:k}));break;default:(0,Z.vE)(_,'Unhandled element start type "'.concat(g.type,'"'),!0)}(0,v.UZ)(_,f,"start")}}if(O){var N,G,ie,V=(N=O?.height)!==null&&N!==void 0?N:oe,ce=(G=O?.width)!==null&&G!==void 0?G:oe;O.id&&((ie=s.getElement(O.id))||console.error("No element for end binding with id ".concat(O.id," found")));var te=O.x||_.x+_.width,L=O.y||_.y-V/2,re=ie?ie.type:O.type;if(re){if(re==="text"){var me="";ie&&ie.type==="text"?me=ie.text:O.type==="text"&&(me=O.text),me||console.error("No text found for end binding text element for ".concat(_.id)),t=(0,n.VL)(de(de(de({x:te,y:L,type:"text"},ie),O),{},{text:me})),Object.assign(t,{y:O.y||_.y-t.height/2})}else switch(re){case"rectangle":case"ellipse":case"diamond":t=(0,I.Up)(de(de(de({x:te,y:L,width:ce,height:V},ie),O),{},{type:re}));break;default:(0,Z.vE)(_,'Unhandled element end type "'.concat(re,'"'),!0)}(0,v.UZ)(_,t,"end")}}var Ce=_.points.length-1,We=.5,Te=(0,Z.xU)(_.points);return _.points[Ce][0]>_.points[Ce-1][0]&&(Te[0][0]=We,Te[Ce][0]-=We),_.points[Ce][0]<_.points[Ce-1][0]&&(Te[0][0]=-.5,Te[Ce][0]+=We),_.points[Ce][1]>_.points[Ce-1][1]&&(Te[0][1]=We,Te[Ce][1]-=We),_.points[Ce][1]<_.points[Ce-1][1]&&(Te[0][1]=-.5,Te[Ce][1]+=We),Object.assign(_,{points:Te}),{linearElement:_,startBoundElement:f,endBoundElement:t}},b=(0,E.Z)(function _(){var g=this;(0,y.Z)(this,_),this.excalidrawElements=new Map,this.add=function(O){O&&g.excalidrawElements.set(O.id,O)},this.getElements=function(){return Array.from(g.excalidrawElements.values())},this.getElement=function(O){return g.excalidrawElements.get(O)}}),R=function(_,g){if(!_)return[];var O,s=(0,Z.xU)(_),f=new b,t=new Map,w=new Map,l=u(s);try{for(l.s();!(O=l.n()).done;){var a=O.value,c=void 0,m=a.id;switch(g?.regenerateIds!==!1&&Object.assign(a,{id:(0,W.kb)()}),a.type){case"rectangle":case"ellipse":case"diamond":var z,j,k=a!=null&&(z=a.label)!==null&&z!==void 0&&z.text&&a.width===void 0?0:a?.width||oe,x=a!=null&&(j=a.label)!==null&&j!==void 0&&j.text&&a.height===void 0?0:a?.height||oe;c=(0,I.Up)(de(de({},a),{},{width:k,height:x}));break;case"line":var N=a.width||he,G=a.height||pe;c=(0,I.y8)(de({width:N,height:G,points:[[0,0],[N,G]]},a));break;case"arrow":var ie=a.width||he,V=a.height||pe;c=(0,I.y8)(de({width:ie,height:V,endArrowhead:"arrow",points:[[0,0],[ie,V]]},a)),Object.assign(c,(0,H.k)(c.points));break;case"text":var ce,te=a?.fontFamily||S.rk,L=a?.fontSize||S.n5,re=a?.lineHeight||(0,M.PT)(te),me=(ce=a.text)!==null&&ce!==void 0?ce:"",Ce=(0,M.bG)(me),We=(0,M.X1)(Ce,(0,Z.mO)({fontFamily:te,fontSize:L}),re);c=(0,n.VL)(de({width:We.width,height:We.height,fontFamily:te,fontSize:L},a));break;case"image":c=(0,n.vw)(de({width:a?.width||oe,height:a?.height||oe},a));break;case"frame":c=(0,n.M3)(de({x:0,y:0},a));break;case"freedraw":case"embeddable":c=a;break;default:c=a,(0,Z.vE)(a,'Unhandled element type "'.concat(a.type,'"'),!0)}f.getElement(c.id)?console.error("Duplicate id found for ".concat(c.id)):(f.add(c),t.set(c.id,a),m&&w.set(m,c.id))}}catch(qe){l.e(qe)}finally{l.f()}var Te,we=u(t);try{for(we.s();!(Te=we.n()).done;){var xe=(0,D.Z)(Te.value,2),_e=xe[0],Oe=xe[1],J=f.getElement(_e);switch(Oe.type){case"rectangle":case"ellipse":case"diamond":case"arrow":var ke;if((ke=Oe.label)!==null&&ke!==void 0&&ke.text){var q=P(J,Oe?.label),o=(0,D.Z)(q,2),i=o[0],p=o[1];if(f.add(i),f.add(p),i.type==="arrow"){var B=Oe.type==="arrow"?Oe?.start:void 0,A=Oe.type==="arrow"?Oe?.end:void 0;if(B&&B.id){var X=w.get(B.id);X&&Object.assign(B,{id:X})}if(A&&A.id){var Y=w.get(A.id);Y&&Object.assign(A,{id:Y})}var ee=$(i,B,A,f),ge=ee.linearElement,be=ee.startBoundElement,Re=ee.endBoundElement;i=ge,f.add(ge),f.add(be),f.add(Re)}}else if(Oe.type==="arrow"){var Ze=Oe.start,Be=Oe.end;if(Ze&&Ze.id){var Ie=w.get(Ze.id);Object.assign(Ze,{id:Ie})}if(Be&&Be.id){var Ke=w.get(Be.id);Object.assign(Be,{id:Ke})}var Ye=$(J,Ze,Be,f),tt=Ye.linearElement,ue=Ye.startBoundElement,ve=Ye.endBoundElement;f.add(tt),f.add(ue),f.add(ve)}}}}catch(qe){we.e(qe)}finally{we.f()}var De,He=u(t);try{var Je=function(){var qe=(0,D.Z)(De.value,2),st=qe[0],ht=qe[1];if(ht.type!=="frame")return"continue";var et=f.getElement(st);if(!et)throw new Error("Excalidraw element with id ".concat(st," doesn't exist"));var wt=[];ht.children.forEach(function(mt){var ut,Ot=w.get(mt);if(!Ot)throw new Error("Element with ".concat(mt," wasn't mapped correctly"));var Pt=f.getElement(Ot);if(!Pt)throw new Error("Frame element with id ".concat(Ot," doesn't exist"));Object.assign(Pt,{frameId:et.id}),Pt==null||(ut=Pt.boundElements)===null||ut===void 0||ut.forEach(function(Gt){var Ct=f.getElement(Gt.id);if(!Ct)throw new Error("Bound element with id ".concat(Gt.id," doesn't exist"));Object.assign(Ct,{frameId:et.id}),wt.push(Ct)}),wt.push(Pt)});var Lt=(0,I.KP)(wt),St=(0,D.Z)(Lt,4),yt=St[0],Wt=St[1],Ft=St[2],Ve=St[3];yt-=10,Wt-=10,Ft+=10,Ve+=10;var bt=Math.max(et?.width,Ft-yt),at=Math.max(et?.height,Ve-Wt);Object.assign(et,{x:yt,y:Wt,width:bt,height:at})};for(He.s();!(De=He.n()).done;)Je()}catch(qe){He.e(qe)}finally{He.f()}return f.getElements()}},8020:function(Se,Q,e){e.d(Q,{$u:function(){return E},q$:function(){return y},ye:function(){return h}});var D=e(5779),E=function(S){return(S=S.trim())?(0,D.N)(S):S},y=function(S){return!!(S!=null&&S.includes(location.origin)||S!=null&&S.startsWith("/"))},h=function(S){if((S=E(S)).startsWith("/"))return"".concat(location.origin).concat(S);try{new URL(S)}catch{return"about:blank"}return S}},5992:function(Se,Q,e){e.d(Q,{rj:function(){return V},nW:function(){return L},nz:function(){return me},sw:function(){return We},lV:function(){return J},Ni:function(){return we},wq:function(){return Te},Pp:function(){return _e}});var D=e(7169),E=e(2577),y=e(9827),h=e(761),S=e(583),I=e(2767),v=e(1512),n=e(8935),M=e(8227),Z=e(9787),H=e(45),W=e(5491),u=e(9660),U=e(2361),le=e(9937),de=e(8925),he=e(4105),pe=e(3528),oe=e(7651),P=e(8020),$=e(3379),b=e.n($),R=e(7795),_=e.n(R),g=e(569),O=e.n(g),s=e(3565),f=e.n(s),t=e(9216),w=e.n(t),l=e(4589),a=e.n(l),c=e(5260),m={};m.styleTagTransform=a(),m.setAttributes=f(),m.insert=O().bind(null,"head"),m.domAPI=_(),m.insertStyleElement=w(),b()(c.Z,m),c.Z&&c.Z.locals&&c.Z.locals;var z=e(3646),j=e(8242),k=e(4183),x=e(2921),N=e(1020);function G(q,o){var i=Object.keys(q);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(q);o&&(p=p.filter(function(B){return Object.getOwnPropertyDescriptor(q,B).enumerable})),i.push.apply(i,p)}return i}function ie(q){for(var o=1;o<arguments.length;o++){var i=arguments[o]!=null?arguments[o]:{};o%2?G(Object(i),!0).forEach(function(p){(0,D.Z)(q,p,i[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(i)):G(Object(i)).forEach(function(p){Object.defineProperty(q,p,Object.getOwnPropertyDescriptor(i,p))})}return q}var V=document.createElement("img");V.src="data:".concat(le.LO.svg,", ").concat(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#1971c2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-external-link"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>'));var ce=!1,te=new Map,L=function(q){var o=q.element,i=q.setAppState,p=q.onLinkOpen,B=q.setToast,A=(0,j.gF)(),X=(0,j.hY)(),Y=o.link||"",ee=(0,Z.useState)(Y),ge=(0,E.Z)(ee,2),be=ge[0],Re=ge[1],Ze=(0,Z.useRef)(null),Be=A.showHyperlinkPopup==="editor",Ie=(0,Z.useCallback)(function(){if(Ze.current){var ve=(0,P.$u)(Ze.current.value)||null;if(!o.link&&ve&&(0,z.L)("hyperlink","create"),(0,k.gs)(o)){var De;if(((De=A.activeEmbeddable)===null||De===void 0?void 0:De.element)===o&&i({activeEmbeddable:null}),!ve)return void(0,S.DR)(o,{validated:!1,link:null});if((0,h.xm)(ve,X.validateEmbeddable)){var He=o.width,Je=o.height,qe=(0,h.LM)(ve);qe!=null&&qe.warning&&B({message:qe.warning,closable:!0});var st=qe?qe.aspectRatio.w/qe.aspectRatio.h:1,ht=te.get(o.id)!==o.link;(0,S.DR)(o,ie(ie({},ht?{width:qe?.type==="video"?He>Je?He:Je*st:He,height:qe?.type==="video"&&He>Je?He/st:Je}:{}),{},{validated:!0,link:ve})),x.R.delete(o),te.has(o.id)&&te.delete(o.id)}else ve&&B({message:(0,M.t)("toast.unableToEmbed"),closable:!0}),o.link&&te.set(o.id,o.link),(0,S.DR)(o,{validated:!1,link:ve}),x.R.delete(o)}else(0,S.DR)(o,{link:ve})}},[o,B,X.validateEmbeddable,A.activeEmbeddable,i]);(0,Z.useLayoutEffect)(function(){return function(){Ie()}},[Ie]),(0,Z.useEffect)(function(){var ve=null,De=function(He){Be||(ve&&clearTimeout(ve),ke(o,A,[He.clientX,He.clientY])&&(ve=window.setTimeout(function(){i({showHyperlinkPopup:!1})},500)))};return window.addEventListener(le.Ks.POINTER_MOVE,De,!1),function(){window.removeEventListener(le.Ks.POINTER_MOVE,De,!1),ve&&clearTimeout(ve)}},[A,o,Be,i]);var Ke=(0,Z.useCallback)(function(){(0,z.L)("hyperlink","delete"),(0,S.DR)(o,{link:null}),Be&&(Ze.current.value=""),i({showHyperlinkPopup:!1})},[i,o,Be]),Ye=re(o,A),tt=Ye.x,ue=Ye.y;return A.draggingElement||A.resizingElement||A.isRotating||A.openMenu||A.viewModeEnabled?null:(0,N.jsxs)("div",{className:"excalidraw-hyperlinkContainer",style:{top:"".concat(ue,"px"),left:"".concat(tt,"px"),width:320,padding:5},onClick:function(){o.link||Be||i({showHyperlinkPopup:"editor"})},children:[Be?(0,N.jsx)("input",{className:(0,H.Z)("excalidraw-hyperlinkContainer-input"),placeholder:"Type or paste your link here",ref:Ze,value:be,onChange:function(ve){return Re(ve.target.value)},autoFocus:!0,onKeyDown:function(ve){ve.stopPropagation(),ve[W.tW.CTRL_OR_CMD]&&ve.key===W.tW.K&&ve.preventDefault(),ve.key!==W.tW.ENTER&&ve.key!==W.tW.ESCAPE||(Ie(),i({showHyperlinkPopup:"info"}))}}):o.link?(0,N.jsx)("a",{href:(0,P.$u)(o.link||""),className:"excalidraw-hyperlinkContainer-link",target:(0,P.q$)(o.link)?"_self":"_blank",onClick:function(ve){if(o.link&&p){var De=(0,y.ag)(le.Ks.EXCALIDRAW_LINK,ve.nativeEvent);p(ie(ie({},o),{},{link:(0,P.$u)(o.link)}),De),De.defaultPrevented&&ve.preventDefault()}},rel:"noopener noreferrer",children:o.link}):(0,N.jsx)("div",{className:"excalidraw-hyperlinkContainer-link",children:(0,M.t)("labels.link.empty")}),(0,N.jsxs)("div",{className:"excalidraw-hyperlinkContainer__buttons",children:[!Be&&(0,N.jsx)(v.V,{type:"button",title:(0,M.t)("buttons.edit"),"aria-label":(0,M.t)("buttons.edit"),label:(0,M.t)("buttons.edit"),onClick:function(){(0,z.L)("hyperlink","edit","popup-ui"),i({showHyperlinkPopup:"editor"})},className:"excalidraw-hyperlinkContainer--edit",icon:n.Pm}),Y&&!(0,k.gs)(o)&&(0,N.jsx)(v.V,{type:"button",title:(0,M.t)("buttons.remove"),"aria-label":(0,M.t)("buttons.remove"),label:(0,M.t)("buttons.remove"),onClick:Ke,className:"excalidraw-hyperlinkContainer--remove",icon:n.XH})]})]})},re=function(q,o){var i=(0,oe.qf)(q),p=(0,E.Z)(i,2),B=p[0],A=p[1],X=(0,y._i)({sceneX:B+q.width/2,sceneY:A},o),Y=X.x,ee=X.y;return{x:Y-o.offsetLeft-160,y:ee-o.offsetTop-85}},me=(0,I.z)({name:"hyperlink",perform:function(q,o){return o.showHyperlinkPopup!=="editor"&&{elements:q,appState:ie(ie({},o),{},{showHyperlinkPopup:"editor",openMenu:null}),commitToHistory:!0}},trackEvent:{category:"hyperlink",action:"click"},keyTest:function(q){return q[W.tW.CTRL_OR_CMD]&&q.key===W.tW.K},contextItemLabel:function(q,o){return Ce(q,o)},predicate:function(q,o){return(0,he.eD)(q,o).length===1},PanelComponent:function(q){var o=q.elements,i=q.appState,p=q.updateData,B=(0,he.eD)(o,i);return(0,N.jsx)(v.V,{type:"button",icon:n.xP,"aria-label":(0,M.t)(Ce(o,i)),title:"".concat((0,k.gs)(o[0])?(0,M.t)("labels.link.labelEmbed"):(0,M.t)("labels.link.label")," - ").concat((0,y.uY)("CtrlOrCmd+K")),onClick:function(){return p(null)},selected:B.length===1&&!!B[0].link})}}),Ce=function(q,o){var i=(0,he.eD)(q,o);return i[0].link?(0,k.gs)(i[0])?"labels.link.editEmbed":"labels.link.edit":(0,k.gs)(i[0])?"labels.link.createEmbed":"labels.link.create"},We=function(q,o,i){var p=(0,E.Z)(q,4),B=p[0],A=p[1],X=p[2],Y=p[3],ee=u.Dn,ge=ee/i.zoom.value,be=ee/i.zoom.value,Re=ee/i.zoom.value,Ze=(B+X)/2,Be=(A+Y)/2,Ie=(ee-8)/(2*i.zoom.value),Ke=4/i.zoom.value,Ye=X+Ke-Ie,tt=A-Ke-Re+Ie,ue=(0,U.U1)(Ye+ge/2,tt+be/2,Ze,Be,o),ve=(0,E.Z)(ue,2);return[ve[0]-ge/2,ve[1]-be/2,ge,be]},Te=function(q,o,i){var p=(0,E.Z)(i,2),B=p[0],A=p[1],X=4/o.zoom.value,Y=(0,oe.qf)(q),ee=(0,E.Z)(Y,4),ge=ee[0],be=ee[1],Re=ee[2],Ze=ee[3],Be=We([ge,be,Re,Ze],q.angle,o),Ie=(0,E.Z)(Be,4),Ke=Ie[0],Ye=Ie[1],tt=Ie[2],ue=Ie[3];return B>Ke-X&&B<Ke+X+tt&&A>Ye-X&&A<Ye+ue+X},we=function(q,o,i,p){var B=(0,E.Z)(i,2),A=B[0],X=B[1];if(!q.link||o.selectedElementIds[q.id])return!1;var Y=4/o.zoom.value;return!(p||!o.viewModeEnabled||!(0,pe.pX)(q,[A,X],Y,null))||Te(q,o,[A,X])},xe=null,_e=function(q,o){xe&&clearTimeout(xe),xe=window.setTimeout(function(){return Oe(q,o)},le.sA)},Oe=function(q,o){if(q.link){var i=(0,de.bK)();i.classList.add("excalidraw-tooltip--visible"),i.style.maxWidth="20rem",i.textContent=q.link;var p=(0,oe.qf)(q),B=(0,E.Z)(p,4),A=B[0],X=B[1],Y=B[2],ee=B[3],ge=We([A,X,Y,ee],q.angle,o),be=(0,E.Z)(ge,4),Re=be[0],Ze=be[1],Be=be[2],Ie=be[3],Ke=(0,y._i)({sceneX:Re,sceneY:Ze},o);(0,de.Js)(i,{left:Ke.x,top:Ke.y,width:Be,height:Ie},"top"),(0,z.L)("hyperlink","tooltip","link-icon"),ce=!0}},J=function(){xe&&clearTimeout(xe),ce&&(ce=!1,(0,de.bK)().classList.remove("excalidraw-tooltip--visible"))},ke=function(q,o,i){var p=(0,E.Z)(i,2),B=p[0],A=p[1],X=(0,y.dE)({clientX:B,clientY:A},o),Y=X.x,ee=X.y,ge=15/o.zoom.value;if((0,pe.pX)(q,[Y,ee],ge,null))return!1;var be=(0,oe.qf)(q),Re=(0,E.Z)(be,3),Ze=Re[0],Be=Re[1],Ie=Re[2];if(Y>=Ze&&Y<=Ie&&ee>=Be-85&&ee<=Be)return!1;var Ke=re(q,o),Ye=Ke.x,tt=Ke.y;return!(B>=Ye-ge&&B<=Ye+320+10+ge&&A>=tt-ge&&A<=tt+ge+10+42)}},9645:function(Se,Q,e){e.d(Q,{$q:function(){return ie},DK:function(){return R},H:function(){return _},HG:function(){return de},N1:function(){return U},R:function(){return P},UZ:function(){return $},Ww:function(){return f},Y9:function(){return O},ZB:function(){return c},cz:function(){return u},ek:function(){return N},el:function(){return pe}});var D=e(7169),E=e(2577),y=e(4105),h=e(4183),S=e(3528),I=e(583),v=e(457),n=e(7422),M=e(9827),Z=e(5491),H=e(4761);function W(te,L){var re=Object.keys(te);if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(te);L&&(me=me.filter(function(Ce){return Object.getOwnPropertyDescriptor(te,Ce).enumerable})),re.push.apply(re,me)}return re}var u=function(te){return!te[Z.tW.CTRL_OR_CMD]},U=function(te){return te.isBindingEnabled},le=function(te,L){var re=[];return L.forEach(function(me){var Ce=te.getNonDeletedElement(me);Ce!=null&&re.push(Ce)}),re},de=function(te,L,re){var me=new Set,Ce=new Set;he(te,L,re,"start",me,Ce),he(te,re,L,"end",me,Ce);var We=Array.from(Ce).filter(function(Te){return!me.has(Te)});le(v.Z.getScene(te),We).forEach(function(Te){var we;(0,I.DR)(Te,{boundElements:(we=Te.boundElements)===null||we===void 0?void 0:we.filter(function(xe){return xe.type!=="arrow"||xe.id!==te.id})})})},he=function(te,L,re,me,Ce,We){if(L!=="keep")if(L!=null)re!=null&&(re==="keep"?b(te,L,me):me!=="start"&&re.id===L.id)||($(te,L,me),Ce.add(L.id));else{var Te=g(te,me);Te!=null&&We.add(Te)}},pe=function(te){te.forEach(function(L){(0,h.Mn)(L)?de(L,z(L,"start"),z(L,"end")):(0,h.f0)(L)&&oe(L)})},oe=function(te){k(te).forEach(function(L){var re=(0,E.Z)(L,2),me=re[0],Ce=re[1];return de(me,Ce==="end"?"keep":te,Ce==="start"?"keep":te)})},P=function(te,L,re,me){L.startBoundElement!=null&&$(te,L.startBoundElement,"start");var Ce=O(me,re);Ce==null||b(te,Ce,"end")||$(te,Ce,"end")},$=function(te,L,re){(0,I.DR)(te,(0,D.Z)({},re==="start"?"startBinding":"endBinding",function(me){for(var Ce=1;Ce<arguments.length;Ce++){var We=arguments[Ce]!=null?arguments[Ce]:{};Ce%2?W(Object(We),!0).forEach(function(Te){(0,D.Z)(me,Te,We[Te])}):Object.getOwnPropertyDescriptors?Object.defineProperties(me,Object.getOwnPropertyDescriptors(We)):W(Object(We)).forEach(function(Te){Object.defineProperty(me,Te,Object.getOwnPropertyDescriptor(We,Te))})}return me}({elementId:L.id},s(te,L,re)))),(0,M.xn)(L.boundElements||[]).has(te.id)||(0,I.DR)(L,{boundElements:(L.boundElements||[]).concat({id:te.id,type:"arrow"})})},b=function(te,L,re){var me=te[re==="start"?"endBinding":"startBinding"];return R(te,me?.elementId,L)},R=function(te,L,re){return L===re.id&&te.points.length<3},_=function(te){te.forEach(function(L){(0,h.Mn)(L)&&de(L,null,null)})},g=function(te,L){var re=L==="start"?"startBinding":"endBinding",me=te[re];return me==null?null:((0,I.DR)(te,(0,D.Z)({},re,null)),me.elementId)},O=function(te,L){return(0,y.QG)(L.getNonDeletedElements(),function(re){return(0,h.f0)(re,!1)&&(0,S.uu)(re,te)})},s=function(te,L,re){var me=re==="start"?-1:1,Ce=me===-1?0:te.points.length-1,We=Ce-me,Te=n._.getPointAtIndexGlobalCoordinates(te,Ce),we=n._.getPointAtIndexGlobalCoordinates(te,We);return{focus:(0,S.T_)(L,we,Te),gap:Math.max(1,(0,S.oT)(L,Te))}},f=function(te,L){var re,me=((re=te.boundElements)!==null&&re!==void 0?re:[]).filter(function(xe){return xe.type==="arrow"});if(me.length!==0){var Ce=L??{},We=Ce.newSize,Te=Ce.simultaneouslyUpdated,we=w(Te);le(v.Z.getScene(te),me.map(function(xe){return xe.id})).forEach(function(xe){if((0,h.bt)(xe)){var _e=te;if(t(xe,_e)){var Oe=a(_e,xe.startBinding,We),J=a(_e,xe.endBinding,We);we.has(xe.id)?(0,I.DR)(xe,{startBinding:Oe,endBinding:J}):(l(xe,"start",Oe,te),l(xe,"end",J,te),(0,H.WJ)(xe)&&(0,H.RB)(xe,!1))}}})}},t=function(te,L){var re,me;return((re=te.startBinding)===null||re===void 0?void 0:re.elementId)===L.id||((me=te.endBinding)===null||me===void 0?void 0:me.elementId)===L.id},w=function(te){return new Set((te||[]).map(function(L){return L.id}))},l=function(te,L,re,me){if(!(re==null||re.elementId!==me.id&&te.points.length>2)){var Ce=v.Z.getScene(te).getElement(re.elementId);if(Ce!=null){var We,Te=L==="start"?-1:1,we=Te===-1?0:te.points.length-1,xe=we-Te,_e=n._.getPointAtIndexGlobalCoordinates(te,xe),Oe=(0,S.j_)(Ce,re.focus,_e);if(re.gap===0)We=Oe;else{var J=(0,S.MZ)(Ce,_e,Oe,re.gap);We=J.length===0?Oe:J[0]}n._.movePoints(te,[{index:we,point:n._.pointFromAbsoluteCoords(te,We)}],(0,D.Z)({},L==="start"?"startBinding":"endBinding",re))}}},a=function(te,L,re){if(L==null||re==null)return L;var me=L.gap,Ce=L.focus,We=L.elementId,Te=re.width,we=re.height,xe=te.width,_e=te.height;return{elementId:We,gap:Math.max(1,Math.min((0,S.fb)(te,Te,we),me*(Te<we?Te/xe:we/_e))),focus:Ce}},c=function(te){var L=new Set(te.map(function(re){return re.id}));return te.flatMap(function(re){return(0,h.Mn)(re,!1)?m(re).filter(function(me){return!L.has(me.id)}):(0,h.f0)(re,!1)?k(re).filter(function(me){return!L.has(me[0].id)}):[]})},m=function(te){return[z(te,"start"),z(te,"end")].filter(function(L){return L!=null})},z=function(te,L){return O(j(te,L),v.Z.getScene(te))},j=function(te,L){var re=L==="start"?0:-1;return(0,M.AK)(n._.getPointAtIndexGlobalCoordinates(te,re))},k=function(te){return v.Z.getScene(te).getNonDeletedElements().map(function(L){if(!(0,h.Mn)(L,!1))return null;var re=x(L,"start",te),me=x(L,"end",te);return re||me?[L,re&&me?"both":re?"start":"end",te]:null}).filter(function(L){return L!=null})},x=function(te,L,re){return te[L==="start"?"startBinding":"endBinding"]==null&&!b(te,re,L)&&(0,S.uu)(re,j(te,L))},N=function(te,L,re,me){var Ce=new Set,We=new Set,Te=me==="duplicatesServeAsOld";L.forEach(function(we){var xe=we.boundElements;if(xe!=null&&xe.length>0&&(xe.forEach(function(J){Te&&!re.has(J.id)&&Ce.add(J.id)}),We.add(re.get(we.id))),(0,h.Mn)(we)){if(we.startBinding!=null){var _e=we.startBinding.elementId;Te&&!re.has(_e)&&We.add(_e)}if(we.endBinding!=null){var Oe=we.endBinding.elementId;Te&&!re.has(Oe)&&We.add(Oe)}we.startBinding==null&&we.endBinding==null||Ce.add(re.get(we.id))}}),te.filter(function(we){var xe=we.id;return Ce.has(xe)}).forEach(function(we){var xe=we.startBinding,_e=we.endBinding;(0,I.DR)(we,{startBinding:G(xe,re),endBinding:G(_e,re)})}),te.filter(function(we){var xe=we.id;return We.has(xe)}).forEach(function(we){var xe=we.boundElements;xe!=null&&xe.length>0&&(0,I.DR)(we,{boundElements:xe.map(function(_e){return re.has(_e.id)?{id:re.get(_e.id),type:_e.type}:_e})})})},G=function(te,L){var re;if(te==null)return null;var me=te.elementId;return{focus:te.focus,gap:te.gap,elementId:(re=L.get(me))!==null&&re!==void 0?re:me}},ie=function(te,L){var re=new Set(L.map(function(Ce){return Ce.id})),me=new Set;L.forEach(function(Ce){var We;(0,h.f0)(Ce)?(We=Ce.boundElements)===null||We===void 0||We.forEach(function(Te){re.has(Te.id)||me.add(Te.id)}):(0,h.Mn)(Ce)&&(Ce.startBinding&&me.add(Ce.startBinding.elementId),Ce.endBinding&&me.add(Ce.endBinding.elementId))}),te.filter(function(Ce){var We=Ce.id;return me.has(We)}).forEach(function(Ce){(0,h.f0)(Ce)?(0,I.DR)(Ce,{boundElements:ce(Ce.boundElements,re)}):(0,h.Mn)(Ce)&&(0,I.DR)(Ce,{startBinding:V(Ce.startBinding,re),endBinding:V(Ce.endBinding,re)})})},V=function(te,L){return te==null||L.has(te.elementId)?null:te},ce=function(te,L){return te?te.filter(function(re){return!L.has(re.id)}):null}},4949:function(Se,Q,e){e.d(Q,{CM:function(){return $},GJ:function(){return pe},IX:function(){return _},KP:function(){return w},M$:function(){return oe},Pi:function(){return t},UC:function(){return P},Ut:function(){return c},Y5:function(){return s},hC:function(){return l},os:function(){return m},qf:function(){return he},v2:function(){return z},wC:function(){return a}});var D=e(1930),E=e(2577),y=e(8821),h=e(5169),S=e(2361),I=e(9845),v=e(6049),n=e(4183),M=e(5999),Z=e(4761),H=e(7422),W=e(2921),u=e(457);function U(j,k){var x=typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(!x){if(Array.isArray(j)||(x=function(te,L){if(te){if(typeof te=="string")return le(te,L);var re=Object.prototype.toString.call(te).slice(8,-1);if(re==="Object"&&te.constructor&&(re=te.constructor.name),re==="Map"||re==="Set")return Array.from(te);if(re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re))return le(te,L)}}(j))||k&&j&&typeof j.length=="number"){x&&(j=x);var N=0,G=function(){};return{s:G,n:function(){return N>=j.length?{done:!0}:{done:!1,value:j[N++]}},e:function(te){throw te},f:G}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ie,V=!0,ce=!1;return{s:function(){x=x.call(j)},n:function(){var te=x.next();return V=te.done,te},e:function(te){ce=!0,ie=te},f:function(){try{V||x.return==null||x.return()}finally{if(ce)throw ie}}}}function le(j,k){(k==null||k>j.length)&&(k=j.length);for(var x=0,N=new Array(k);x<k;x++)N[x]=j[x];return N}var de=function(){function j(){(0,y.Z)(this,j)}return(0,h.Z)(j,null,[{key:"getBounds",value:function(k){var x=j.boundsCache.get(k);if(x!=null&&x.version&&x.version===k.version&&!(0,n.Xh)(k))return x.bounds;var N=j.calculateBounds(k);return u.Z.getScene(k)&&j.boundsCache.set(k,{version:k.version,bounds:N}),N}},{key:"calculateBounds",value:function(k){var x,N=he(k),G=(0,E.Z)(N,6),ie=G[0],V=G[1],ce=G[2],te=G[3],L=G[4],re=G[5];if((0,n.F9)(k)){var me=g(k.points.map(function(bt){var at=(0,E.Z)(bt,2),mt=at[0],ut=at[1];return(0,S.U1)(mt,ut,L-k.x,re-k.y,k.angle)})),Ce=(0,E.Z)(me,4),We=Ce[0],Te=Ce[1],we=Ce[2],xe=Ce[3];return[We+k.x,Te+k.y,we+k.x,xe+k.y]}if((0,n.bt)(k))x=f(k,L,re);else if(k.type==="diamond"){var _e=(0,S.U1)(L,V,L,re,k.angle),Oe=(0,E.Z)(_e,2),J=Oe[0],ke=Oe[1],q=(0,S.U1)(L,te,L,re,k.angle),o=(0,E.Z)(q,2),i=o[0],p=o[1],B=(0,S.U1)(ie,re,L,re,k.angle),A=(0,E.Z)(B,2),X=A[0],Y=A[1],ee=(0,S.U1)(ce,re,L,re,k.angle),ge=(0,E.Z)(ee,2),be=ge[0],Re=ge[1];x=[Math.min(J,i,X,be),Math.min(ke,p,Y,Re),Math.max(J,i,X,be),Math.max(ke,p,Y,Re)]}else if(k.type==="ellipse"){var Ze=(ce-ie)/2,Be=(te-V)/2,Ie=Math.cos(k.angle),Ke=Math.sin(k.angle),Ye=Math.hypot(Ze*Ie,Be*Ke),tt=Math.hypot(Be*Ie,Ze*Ke);x=[L-Ye,re-tt,L+Ye,re+tt]}else{var ue=(0,S.U1)(ie,V,L,re,k.angle),ve=(0,E.Z)(ue,2),De=ve[0],He=ve[1],Je=(0,S.U1)(ie,te,L,re,k.angle),qe=(0,E.Z)(Je,2),st=qe[0],ht=qe[1],et=(0,S.U1)(ce,te,L,re,k.angle),wt=(0,E.Z)(et,2),Lt=wt[0],St=wt[1],yt=(0,S.U1)(ce,V,L,re,k.angle),Wt=(0,E.Z)(yt,2),Ft=Wt[0],Ve=Wt[1];x=[Math.min(De,st,Lt,Ft),Math.min(He,ht,St,Ve),Math.max(De,st,Lt,Ft),Math.max(He,ht,St,Ve)]}return x}}]),j}();de.boundsCache=new WeakMap;var he=function(j){var k=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if((0,n.F9)(j))return O(j);if((0,n.bt)(j))return H._.getElementAbsoluteCoords(j,k);if((0,n.iB)(j)){var x=(0,Z.tl)(j);if((0,n.Yv)(x)){var N=H._.getBoundTextElementPosition(x,j);return[N.x,N.y,N.x+j.width,N.y+j.height,N.x+j.width/2,N.y+j.height/2]}}return[j.x,j.y,j.x+j.width,j.y+j.height,j.x+j.width/2,j.y+j.height/2]},pe=function(j){var k=he(j),x=(0,E.Z)(k,6),N=x[0],G=x[1],ie=x[2],V=x[3],ce=x[4],te=x[5],L=[ce,te];if((0,n.bt)(j)||(0,n.F9)(j)){for(var re=[],me=0;me<j.points.length-1;)re.push([(0,S.xj)([j.points[me][0]+j.x,j.points[me][1]+j.y],L,j.angle),(0,S.xj)([j.points[me+1][0]+j.x,j.points[me+1][1]+j.y],L,j.angle)]),me++;return re}var Ce=[[N,G],[ie,G],[N,V],[ie,V],[ce,G],[ce,V],[N,te],[ie,te]].map(function(o){return(0,S.xj)(o,L,j.angle)}),We=(0,E.Z)(Ce,8),Te=We[0],we=We[1],xe=We[2],_e=We[3],Oe=We[4],J=We[5],ke=We[6],q=We[7];return j.type==="diamond"?[[Oe,ke],[Oe,q],[J,ke],[J,q]]:j.type==="ellipse"?[[Oe,ke],[Oe,q],[J,ke],[J,q],[Oe,ke],[Oe,q],[J,ke],[J,q]]:[[Te,we],[xe,_e],[Te,xe],[we,_e],[Te,q],[xe,q],[we,ke],[_e,ke]]},oe=function(j){return[j.x,j.y,j.x+j.width,j.y+j.height,j.x+j.width/2,j.y+j.height/2]},P=function(j){var k=Math.floor(j.width/2)+1,x=j.width,N=Math.floor(j.height/2)+1;return[k,0,x,N,k,j.height,0,N]},$=function(j){var k,x=U(j.sets);try{for(x.s();!(k=x.n()).done;){var N=k.value;if(N.type==="path")return N.ops}}catch(G){x.e(G)}finally{x.f()}return j.sets[0].ops},b=function(j,k,x,N,G){var ie=1-j;return Math.pow(ie,3)*k+3*Math.pow(ie,2)*j*x+3*ie*Math.pow(j,2)*N+Math.pow(j,3)*G},R=function(j,k,x,N){var G=k-j,ie=x-k,V=3*G-6*ie+3*(N-x),ce=6*ie-6*G,te=3*G,L=ce*ce-4*V*te;if(!(L>=0))return!1;var re=null,me=null,Ce=1/0,We=1/0;return V===0?Ce=We=-te/ce:(Ce=(-ce+Math.sqrt(L))/(2*V),We=(-ce-Math.sqrt(L))/(2*V)),Ce>=0&&Ce<=1&&(re=b(Ce,j,k,x,N)),We>=0&&We<=1&&(me=b(We,j,k,x,N)),[re,me]},_=function(j,k){var x=[0,0],N=j.reduce(function(G,ie){var V=ie.op,ce=ie.data;if(V==="move")x=ce;else if(V==="bcurveTo"){var te=[ce[0],ce[1]],L=[ce[2],ce[3]],re=[ce[4],ce[5]],me=k?k.apply(void 0,te):te,Ce=k?k.apply(void 0,L):L,We=k?k.apply(void 0,re):re,Te=k?k.apply(void 0,(0,D.Z)(x)):x;x=re;var we=function(q,o,i,p){var B=R(q[0],o[0],i[0],p[0]),A=R(q[1],o[1],i[1],p[1]),X=Math.min(q[0],p[0]),Y=Math.max(q[0],p[0]);if(B){var ee=B.filter(function(Ze){return Ze!==null});X=Math.min.apply(Math,[X].concat((0,D.Z)(ee))),Y=Math.max.apply(Math,[Y].concat((0,D.Z)(ee)))}var ge=Math.min(q[1],p[1]),be=Math.max(q[1],p[1]);if(A){var Re=A.filter(function(Ze){return Ze!==null});ge=Math.min.apply(Math,[ge].concat((0,D.Z)(Re))),be=Math.max.apply(Math,[be].concat((0,D.Z)(Re)))}return[X,ge,Y,be]}(Te,me,Ce,We),xe=(0,E.Z)(we,4),_e=xe[0],Oe=xe[1],J=xe[2],ke=xe[3];G.minX=Math.min(G.minX,_e),G.minY=Math.min(G.minY,Oe),G.maxX=Math.max(G.maxX,J),G.maxY=Math.max(G.maxY,ke)}return G},{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0});return[N.minX,N.minY,N.maxX,N.maxY]},g=function(j){var k,x=1/0,N=1/0,G=-1/0,ie=-1/0,V=U(j);try{for(V.s();!(k=V.n()).done;){var ce=(0,E.Z)(k.value,2),te=ce[0],L=ce[1];x=Math.min(x,te),N=Math.min(N,L),G=Math.max(G,te),ie=Math.max(ie,L)}}catch(re){V.e(re)}finally{V.f()}return[x,N,G,ie]},O=function(j){var k=g(j.points),x=(0,E.Z)(k,4),N=x[0],G=x[1],ie=x[2],V=x[3],ce=N+j.x,te=G+j.y,L=ie+j.x,re=V+j.y;return[ce,te,L,re,(ce+L)/2,(te+re)/2]},s=function(j,k,x,N){var G=$(k[0]);if(G.length<1)return null;var ie=x==="start"?1:G.length-1,V=G[ie].data,ce=[V[4],V[5]],te=[V[2],V[3]],L=[V[0],V[1]],re=G[ie-1],me=[0,0];re.op==="move"?me=re.data:re.op==="bcurveTo"&&(me=[re.data[4],re.data[5]]);var Ce=function(St,yt){return Math.pow(1-St,3)*ce[yt]+3*St*Math.pow(1-St,2)*te[yt]+3*Math.pow(St,2)*(1-St)*L[yt]+me[yt]*Math.pow(St,3)},We=x==="start"?me:ce,Te=(0,E.Z)(We,2),we=Te[0],xe=Te[1],_e=[Ce(.3,0),Ce(.3,1)],Oe=_e[0],J=_e[1],ke=Math.hypot(we-Oe,xe-J),q=(we-Oe)/ke,o=(xe-J)/ke,i={arrow:30,bar:15,dot:15,triangle:15}[N],p=0;if(N==="arrow"){var B=(0,E.Z)(j.points[j.points.length-1],2),A=B[0],X=B[1],Y=j.points.length>1?j.points[j.points.length-2]:[0,0],ee=(0,E.Z)(Y,2),ge=ee[0],be=ee[1];p=Math.hypot(A-ge,X-be)}else for(var Re=0;Re<j.points.length;Re++){var Ze=j.points[Re-1]||[0,0],Be=(0,E.Z)(Ze,2),Ie=Be[0],Ke=Be[1],Ye=(0,E.Z)(j.points[Re],2),tt=Ye[0],ue=Ye[1];p+=Math.hypot(tt-Ie,ue-Ke)}var ve=Math.min(i,p/2),De=we-q*ve,He=xe-o*ve;if(N==="dot")return[we,xe,Math.hypot(He-xe,De-we)+j.strokeWidth];var Je={arrow:20,bar:90,triangle:25}[N],qe=(0,S.U1)(De,He,we,xe,-Je*Math.PI/180),st=(0,E.Z)(qe,2),ht=st[0],et=st[1],wt=(0,S.U1)(De,He,we,xe,Je*Math.PI/180),Lt=(0,E.Z)(wt,2);return[we,xe,ht,et,Lt[0],Lt[1]]},f=function(j,k,x){var N;if(j.points.length<2){var G=(0,E.Z)(j.points[0],2),ie=G[0],V=G[1],ce=(0,S.U1)(j.x+ie,j.y+V,k,x,j.angle),te=(0,E.Z)(ce,2),L=te[0],re=te[1],me=[L,re,L,re],Ce=(0,Z.WJ)(j);if(Ce){var We=H._.getMinMaxXYWithBoundText(j,[L,re,L,re],Ce);me=[We[0],We[1],We[2],We[3]]}return me}var Te=(N=W.R.get(j))===null||N===void 0?void 0:N[0],we=Te??function(q){var o=I.Z.generator(),i=(0,v.Z)(q);return o[q.roundness?"curve":i.fill?"polygon":"linearPath"](q.points,i)}(j),xe=$(we),_e=_(xe,function(q,o){return(0,S.U1)(j.x+q,j.y+o,k,x,j.angle)}),Oe=[_e[0],_e[1],_e[2],_e[3]],J=(0,Z.WJ)(j);if(J){var ke=H._.getMinMaxXYWithBoundText(j,Oe,J);Oe=[ke[0],ke[1],ke[2],ke[3]]}return Oe},t=function(j){return de.getBounds(j)},w=function(j){if(!j.length)return[0,0,0,0];var k=1/0,x=-1/0,N=1/0,G=-1/0;return j.forEach(function(ie){var V=t(ie),ce=(0,E.Z)(V,4),te=ce[0],L=ce[1],re=ce[2],me=ce[3];k=Math.min(k,te),N=Math.min(N,L),x=Math.max(x,re),G=Math.max(G,me)}),[k,N,x,G]},l=function(j,k){var x=w(j),N=(0,E.Z)(x,4),G=N[0],ie=N[1],V=N[2],ce=N[3];return[G+k.x,ie+k.y,V+k.x,ce+k.y]},a=function(j,k,x,N){if(!(0,n.bt)(j)&&!(0,n.F9)(j))return[j.x,j.y,j.x+k,j.y+x];var G,ie=(0,M.z)(0,k,(0,M.z)(1,x,j.points,N),N);if((0,n.F9)(j))G=g(ie);else{var V=I.Z.generator(),ce=j.roundness?V.curve(ie,(0,v.Z)(j)):V.linearPath(ie,(0,v.Z)(j)),te=$(ce);G=_(te)}var L=G,re=(0,E.Z)(L,4),me=re[0],Ce=re[1],We=re[2],Te=re[3];return[me+j.x,Ce+j.y,We+j.x,Te+j.y]},c=function(j,k){var x=I.Z.generator(),N=j.roundness==null?x.linearPath(k,(0,v.Z)(j)):x.curve(k,(0,v.Z)(j)),G=$(N),ie=_(G),V=(0,E.Z)(ie,4),ce=V[0],te=V[1],L=V[2],re=V[3];return[ce+j.x,te+j.y,L+j.x,re+j.y]},m=function(j,k){if(!j.length)return[0,0,0,0];var x=1/0,N=j[0];return j.forEach(function(G){var ie=t(G),V=(0,E.Z)(ie,4),ce=V[0],te=V[1],L=V[2],re=V[3],me=(0,S.LW)((ce+L)/2,(te+re)/2,k.x,k.y);me<x&&(x=me,N=G)}),t(N)},z=function(j){var k=w(j),x=(0,E.Z)(k,4),N=x[0],G=x[1],ie=x[2],V=x[3];return{minX:N,minY:G,maxX:ie,maxY:V,width:ie-N,height:V-G,midX:(N+ie)/2,midY:(G+V)/2}}},3528:function(Se,Q,e){e.d(Q,{uu:function(){return ce},T_:function(){return A},j_:function(){return X},oT:function(){return re},wX:function(){return x},MZ:function(){return Y},wB:function(){return N},Qu:function(){return G},pX:function(){return V},fb:function(){return te}});var D=e(2577),E=function(ue,ve){return[0,0,0,0,ve,ue,1,0]},y=function(ue,ve){return[0,0,0,0,ve,ue,0,0]},h=function(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,De=[0,0,0,0,0,0,0,0];if(ve<0||ve>7)throw new Error("Expected `index` between 0 and 7, got `".concat(ve,"`"));return ue!==0&&(De[ve]=ue),De},S=function(ue){return[ue[0],ue[1],ue[2],ue[3],-ue[4],-ue[5],-ue[6],-ue[7]]},I=function(ue,ve){return U(ve)?[ue[0]-ve,ue[1],ue[2],ue[3],ue[4],ue[5],ue[6],ue[7]]:[ue[0]-ve[0],ue[1]-ve[1],ue[2]-ve[2],ue[3]-ve[3],ue[4]-ve[4],ue[5]-ve[5],ue[6]-ve[6],ue[7]-ve[7]]},v=function(ue,ve){return U(ve)?[ue[0]*ve,ue[1]*ve,ue[2]*ve,ue[3]*ve,ue[4]*ve,ue[5]*ve,ue[6]*ve,ue[7]*ve]:[n(ue,ve),ve[1]*ue[0]+ve[0]*ue[1]-ve[4]*ue[2]+ve[5]*ue[3]+ve[2]*ue[4]-ve[3]*ue[5]-ve[7]*ue[6]-ve[6]*ue[7],ve[2]*ue[0]+ve[0]*ue[2]-ve[6]*ue[3]+ve[3]*ue[6],ve[3]*ue[0]+ve[6]*ue[2]+ve[0]*ue[3]-ve[2]*ue[6],ve[4]*ue[0]+ve[2]*ue[1]-ve[1]*ue[2]+ve[7]*ue[3]+ve[0]*ue[4]+ve[6]*ue[5]-ve[5]*ue[6]+ve[3]*ue[7],ve[5]*ue[0]-ve[3]*ue[1]+ve[7]*ue[2]+ve[1]*ue[3]-ve[6]*ue[4]+ve[0]*ue[5]+ve[4]*ue[6]+ve[2]*ue[7],ve[6]*ue[0]+ve[3]*ue[2]-ve[2]*ue[3]+ve[0]*ue[6],ve[7]*ue[0]+ve[6]*ue[1]+ve[5]*ue[2]+ve[4]*ue[3]+ve[3]*ue[4]+ve[2]*ue[5]+ve[1]*ue[6]+ve[0]*ue[7]]},n=function(ue,ve){return ve[0]*ue[0]+ve[2]*ue[2]+ve[3]*ue[3]-ve[6]*ue[6]},M=function(ue,ve){return[Z(ue,ve),ue[1]*ve[7]+ue[4]*ve[5]-ue[5]*ve[4]+ue[7]*ve[1],ue[2]*ve[7]-ue[4]*ve[6]+ue[6]*ve[4]+ue[7]*ve[2],ue[3]*ve[7]+ue[5]*ve[6]-ue[6]*ve[5]+ue[7]*ve[3],ue[4]*ve[7]+ue[7]*ve[4],ue[5]*ve[7]+ue[7]*ve[5],ue[6]*ve[7]+ue[7]*ve[6],ue[7]*ve[7]]},Z=function(ue,ve){return ue[0]*ve[7]+ue[1]*ve[6]+ue[2]*ve[5]+ue[3]*ve[4]+ue[4]*ve[3]+ue[5]*ve[2]+ue[6]*ve[1]+ue[7]*ve[0]},H=function(ue){return Math.sqrt(Math.abs(ue[0]*ue[0]-ue[2]*ue[2]-ue[3]*ue[3]+ue[6]*ue[6]))},W=function(ue){var ve=H(ue);if(ve===0||ve===1)return ue;var De=ue[6]<0?-1:1;return v(ue,De/ve)},u=function(ue){var ve=function(De){return Math.sqrt(Math.abs(De[7]*De[7]-De[5]*De[5]-De[4]*De[4]+De[1]*De[1]))}(ue);return ve===0||ve===1?ue:v(ue,1/ve)},U=function(ue){return typeof ue=="number"},le=(h(1,1),h(1,2),h(1,3),h(1,4),h(1,5),h(1,6),h(1,7),function(ue,ve,De){return W([0,De,ue,ve,0,0,0,0])}),de=function(ue,ve){return W(M(ve,ue))},he=function(ue,ve){return De=ue,[(He=ve)[0]*De[0]+He[2]*De[2]+He[3]*De[3]-He[6]*De[6],He[1]*De[0]+He[0]*De[1]-He[4]*De[2]+He[5]*De[3]+He[2]*De[4]-He[3]*De[5]-He[7]*De[6]-He[6]*De[7],He[2]*De[0]+He[0]*De[2]-He[6]*De[3]+He[3]*De[6],He[3]*De[0]+He[6]*De[2]+He[0]*De[3]-He[2]*De[6],He[4]*De[0]+He[7]*De[3]+He[0]*De[4]+He[3]*De[7],He[5]*De[0]+He[7]*De[2]+He[0]*De[5]+He[2]*De[7],He[6]*De[0]+He[0]*De[6],He[7]*De[0]+He[0]*De[7]];var De,He},pe=function(ue){var ve=(0,D.Z)(ue,2),De=ve[0];return[0,0,0,0,ve[1],De,1,0]},oe=function(ue){return[ue[5],ue[4]]},P=function(ue){return[0,0,0,0,Math.abs(ue[4]),Math.abs(ue[5]),1,0]},$=function(ue,ve){return W((De=ue,[(He=ve)[0]*De[0],He[1]*De[0]+He[0]*De[1],He[2]*De[0]+He[0]*De[2],He[3]*De[0]+He[0]*De[3],He[4]*De[0]+He[2]*De[1]-He[1]*De[2]+He[0]*De[4],He[5]*De[0]-He[3]*De[1]+He[1]*De[3]+He[0]*De[5],He[6]*De[0]+He[3]*De[2]-He[2]*De[3]+He[0]*De[6],He[7]*De[0]+He[6]*De[1]+He[5]*De[2]+He[4]*De[3]+He[3]*De[4]+He[2]*De[5]+He[1]*De[6]]));var De,He},b=function(ue,ve){return H(M(ue,ve))},R=function(ue,ve){return Z(ue,ve)},_=function(ue){return[0,0,0,0,ue[4],ue[5],0,0]},g=function(ue,ve){return De=v(ue,Math.sin(ve/2)),He=Math.cos(ve/2),U(He)?[De[0]+He,De[1],De[2],De[3],De[4],De[5],De[6],De[7]]:[De[0]+He[0],De[1]+He[1],De[2]+He[2],De[3]+He[3],De[4]+He[4],De[5]+He[5],De[6]+He[6],De[7]+He[7]];var De,He},O=function(ue,ve){return W(v(v(ue,ve),S(ue)))},s=e(2361),f=e(1493),t=e(4949),w=e(4183),l=e(7651),a=e(9827),c=e(4048),m=e(4761),z=e(2921);function j(ue,ve){var De=typeof Symbol<"u"&&ue[Symbol.iterator]||ue["@@iterator"];if(!De){if(Array.isArray(ue)||(De=function(et,wt){if(et){if(typeof et=="string")return k(et,wt);var Lt=Object.prototype.toString.call(et).slice(8,-1);if(Lt==="Object"&&et.constructor&&(Lt=et.constructor.name),Lt==="Map"||Lt==="Set")return Array.from(et);if(Lt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Lt))return k(et,wt)}}(ue))||ve&&ue&&typeof ue.length=="number"){De&&(ue=De);var He=0,Je=function(){};return{s:Je,n:function(){return He>=ue.length?{done:!0}:{done:!1,value:ue[He++]}},e:function(et){throw et},f:Je}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var qe,st=!0,ht=!1;return{s:function(){De=De.call(ue)},n:function(){var et=De.next();return st=et.done,et},e:function(et){ht=!0,qe=et},f:function(){try{st||De.return==null||De.return()}finally{if(ht)throw qe}}}}function k(ue,ve){(ve==null||ve>ue.length)&&(ve=ue.length);for(var De=0,He=new Array(ve);De<ve;De++)He[De]=ue[De];return He}var x=function ue(ve,De,He,Je,qe){var st=10/De.zoom.value,ht=[Je,qe];if(ie(De,ve)&&(0,c.oY)([ve],De))return V(ve,ht,st,He);var et=(0,m.WJ)(ve);return et&&ue(et,De,He,Je,qe)?!0:G(ve,De,He,ht)},N=function(ue,ve,De,He,Je){var qe=10/ve.zoom.value,st=(0,m.WJ)(ue);return(!st||!x(st,ve,De,He,Je))&&!G(ue,ve,De,[He,Je])&&V(ue,[He,Je],qe,De)},G=function(ue,ve,De,He){var Je=10/ve.zoom.value,qe=(0,l.iB)(ue)?me:function(st){if(st.type==="arrow")return!1;if(st.type==="freedraw")return!0;var ht=!(0,a.Qm)(st.backgroundColor)||(0,w.Xo)(st)||(0,w.gs)(st);return st.type==="line"?ht&&(0,s.g6)(st.points):ht||(0,w.pC)(st)}(ue)?Ce:We;return L({element:ue,point:He,threshold:Je,check:qe,frameNameBoundsCache:De})},ie=function(ue,ve){return ue.selectedElementIds[ve.id]},V=function(ue,ve,De,He){var Je=(0,D.Z)(ve,2),qe=Je[0],st=Je[1];if(ue.type==="frame")return L({element:ue,point:[qe,st],threshold:De,check:Ce,frameNameBoundsCache:He});var ht=(0,t.qf)(ue),et=(0,D.Z)(ht,4),wt=et[0],Lt=et[1],St=et[2],yt=et[3],Wt=(wt+St)/2,Ft=(Lt+yt)/2,Ve=(0,s.U1)(qe,st,Wt,Ft,-ue.angle),bt=(0,D.Z)(Ve,2),at=bt[0],mt=bt[1];return at>wt-De&&at<St+De&&mt>Lt-De&&mt<yt+De},ce=function(ue,ve){var De=ve.x,He=ve.y,Je=te(ue,ue.width,ue.height);return L({element:ue,point:[De,He],threshold:Je,check:Te,frameNameBoundsCache:null})},te=function(ue,ve,De){var He=(ue.type==="diamond"?1/Math.sqrt(2):1)*Math.min(ve,De);return Math.max(16,Math.min(.25*He,32))},L=function(ue){switch(ue.element.type){case"rectangle":case"embeddable":case"image":case"text":case"diamond":case"ellipse":var ve=re(ue.element,ue.point);return ue.check(ve,ue.threshold);case"freedraw":return!!ue.check(we(ue.element,ue.point),ue.threshold)&&ke(ue.element,ue.point,ue.threshold);case"arrow":case"line":return q(ue);case"selection":return console.warn("This should not happen, we need to investigate why it does."),!1;case"frame":var De;if(ue.check(re(ue.element,ue.point),ue.threshold))return!0;var He=(De=ue.frameNameBoundsCache)===null||De===void 0?void 0:De.get(ue.element);return!!He&&ue.check(xe(He,ue.point),ue.threshold)}},re=function(ue,ve){switch(ue.type){case"rectangle":case"image":case"text":case"embeddable":case"frame":return we(ue,ve);case"diamond":return _e(ue,ve);case"ellipse":return Oe(ue,ve)}},me=function(ue,ve){return ue<0},Ce=function(ue,ve){return ue<ve},We=function(ue,ve){return Math.abs(ue)<ve},Te=function(ue,ve){return 0<=ue&&ue<ve},we=function(ue,ve){var De=o(ue,ve),He=(0,D.Z)(De,4),Je=He[1],qe=He[2],st=He[3];return Math.max(R(Je,le(0,1,-st)),R(Je,le(1,0,-qe)))},xe=function(ue,ve){var De=i(ve,ue),He=(0,D.Z)(De,4),Je=He[1],qe=He[2],st=He[3];return Math.max(R(Je,le(0,1,-st)),R(Je,le(1,0,-qe)))},_e=function(ue,ve){var De=o(ue,ve),He=(0,D.Z)(De,4),Je=He[1],qe=He[2],st=He[3],ht=le(st,qe,-st*qe);return R(Je,ht)},Oe=function(ue,ve){var De,He=J(ue,ve),Je=(0,D.Z)(He,2),qe=Je[0],st=Je[1];return De=st,-Math.sign(De[1])*R(qe,st)},J=function(ue,ve){var De=o(ue,ve),He=(0,D.Z)(De,4),Je=He[1],qe=He[2],st=He[3],ht=oe(Je),et=(0,D.Z)(ht,2),wt=et[0],Lt=et[1],St=.707,yt=.707,Wt=qe,Ft=st;[0,1,2,3].forEach(function(at){var mt=Wt*St,ut=Ft*yt,Ot=(Wt*Wt-Ft*Ft)*Math.pow(St,3)/Wt,Pt=(Ft*Ft-Wt*Wt)*Math.pow(yt,3)/Ft,Gt=mt-Ot,Ct=ut-Pt,ur=wt-Ot,rr=Lt-Pt,Tr=Math.hypot(Ct,Gt),ot=Math.hypot(rr,ur);St=Math.min(1,Math.max(0,(ur*Tr/ot+Ot)/Wt)),yt=Math.min(1,Math.max(0,(rr*Tr/ot+Pt)/Ft));var Rt=Math.hypot(yt,St);St/=Rt,yt/=Rt});var Ve,bt=E(Wt*St,Ft*yt);return[Je,he(de(Je,Ve=bt),Ve)]},ke=function(ue,ve,De){var He,Je;if(ue.angle===0)He=ve[0]-ue.x,Je=ve[1]-ue.y;else{var qe=(0,t.qf)(ue),st=(0,D.Z)(qe,4),ht=st[0],et=st[1],wt=st[2],Lt=st[3],St=(0,s.xj)(ve,[ht+(wt-ht)/2,et+(Lt-et)/2],-ue.angle);He=St[0]-ue.x,Je=St[1]-ue.y}var yt,Wt=(0,D.Z)(ue.points,2),Ft=Wt[0],Ve=Wt[1];if((0,s.LW)(Ft[0],Ft[1],He,Je)<De||(0,s.LW)(Ve[0],Ve[1],He,Je)<De)return!0;for(var bt=0;bt<ue.points.length;bt++){var at=[Ve[0]-Ft[0],Ve[1]-Ft[1]],mt=Math.hypot(at[1],at[0]),ut=[at[0]/mt,at[1]/mt],Ot=[He-Ft[0],Je-Ft[1]],Pt=(Ot[0]*ut[0]+Ot[1]*ut[1])/Math.hypot(ut[1],ut[0]);yt=[Ft[0]+ut[0]*Pt,Ft[1]+ut[1]*Pt];var Gt=(0,s.LW)(yt[0],yt[1],Ft[0],Ft[1]),Ct=(0,s.LW)(yt[0],yt[1],Ve[0],Ve[1]);if(yt=Ct<Gt&&Gt>mt?Ve:Gt<Ct&&Ct>mt?Ft:yt,Math.hypot(Je-yt[1],He-yt[0])<De)return!0;Ft=Ve,Ve=ue.points[bt+1]}var ur=z.R.get(ue);return!(!ur||!ur.sets.length)&&(ue.fillStyle==="solid"?Ye(ur,He,Je,"round"):tt(ur,He,Je,De))},q=function(ue){var ve=ue.element,De=ue.threshold;if(!z.R.get(ve))return!1;var He=o(ue.element,ue.point),Je=(0,D.Z)(He,4),qe=Je[0],st=Je[1],ht=Je[2],et=Je[3],wt=le(0,1,-et),Lt=le(1,0,-ht);if(!Ce(R(st,wt),De)||!Ce(R(st,Lt),De))return!1;var St=oe(qe),yt=(0,D.Z)(St,2),Wt=yt[0],Ft=yt[1],Ve=z.R.get(ve);return Ve?ue.check===Ce&&Ve.some(function(bt){return Ye(bt,Wt,Ft,ve.roundness?"round":"sharp")})?!0:Ve.some(function(bt){return tt(bt,Wt,Ft,De)}):!1},o=function(ue,ve){var De=pe(ve),He=(0,t.qf)(ue),Je=(0,D.Z)(He,4),qe=Je[0],st=Je[1],ht=Je[2],et=Je[3],wt=B(qe,st,ht,et),Lt=g(wt,ue.angle),St=O(Lt,De),yt=I(St,_(wt)),Wt=P(yt),Ft=y(ue.x,ue.y);return[I(St,Ft),Wt,(ht-qe)/2,(et-st)/2]},i=function(ue,ve){var De=pe(ue),He=(0,t.M$)(ve),Je=(0,D.Z)(He,4),qe=Je[0],st=Je[1],ht=Je[2],et=Je[3],wt=B(qe,st,ht,et),Lt=g(wt,ve.angle),St=O(Lt,De),yt=I(St,_(wt)),Wt=P(yt),Ft=y(ve.x,ve.y);return[I(St,Ft),Wt,(ht-qe)/2,(et-st)/2]},p=function(ue){var ve=(0,t.qf)(ue),De=(0,D.Z)(ve,4),He=De[0],Je=De[1],qe=De[2],st=De[3],ht=B(He,Je,qe,st),et=g(ht,ue.angle),wt=S(function(Lt){return[1,0,0,0,-.5*Lt[5],.5*Lt[4],0,0]}(_(ht)));return v(wt,et)},B=function(ue,ve,De,He){return E((ue+De)/2,(ve+He)/2)},A=function(ue,ve,De){var He,Je=p(ue),qe=O(Je,pe(ve)),st=O(Je,pe(De)),ht=de(qe,st),et=ue.height/ue.width,wt=ue.width/2,Lt=ue.height/2,St=ht[2],yt=ht[3],Wt=ht[1],Ft=Math.abs(yt),Ve=Math.abs(St);switch(ue.type){case"rectangle":case"image":case"text":case"embeddable":case"frame":He=Wt/(wt*(Ve+et*Ft));break;case"diamond":He=Ft<Ve?Wt/(Ve*wt):Wt/(Ft*Lt);break;case"ellipse":He=Wt/(wt*Math.sqrt(Math.pow(St,2)+Math.pow(et,2)*Math.pow(yt,2)))}return He||0},X=function(ue,ve,De){if(ve===0){var He=(0,t.qf)(ue),Je=(0,D.Z)(He,4),qe=Je[0],st=Je[1],ht=Je[2],et=Je[3],wt=B(qe,st,ht,et);return oe(wt)}var Lt,St=p(ue),yt=O(St,pe(De)),Wt=S(St);switch(ue.type){case"rectangle":case"image":case"text":case"diamond":case"embeddable":case"frame":Lt=Ke(ue,ve,yt);break;case"ellipse":Lt=Ie(ue,ve,yt)}return oe(O(Wt,Lt))},Y=function(ue,ve,De){var He=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,Je=p(ue),qe=O(Je,pe(ve)),st=O(Je,pe(De)),ht=de(qe,st),et=S(Je),wt=ee(ue,ht,qe,He);return wt.map(function(Lt){return oe(O(et,Lt))})},ee=function(ue,ve,De){var He,Je=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;switch(ue.type){case"rectangle":case"image":case"text":case"diamond":case"embeddable":case"frame":var qe=ge(ue);He=qe.flatMap(function(ht,et){var wt=[ht,qe[(et+1)%4]];return be(ve,Re(wt,Je))}).concat(qe.flatMap(function(ht){return Be(ht,Je,ve)}));break;case"ellipse":He=Ze(ue,Je,ve)}if(He.length<2)return[];var st=He.sort(function(ht,et){return b(ht,De)-b(et,De)});return[st[0],st[st.length-1]]},ge=function(ue){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,De=ve*ue.width/2,He=ve*ue.height/2;switch(ue.type){case"rectangle":case"image":case"text":case"embeddable":case"frame":return[E(De,He),E(De,-He),E(-De,-He),E(-De,He)];case"diamond":return[E(0,He),E(De,0),E(0,-He),E(-De,0)]}},be=function(ue,ve){var De=(0,D.Z)(ve,2),He=De[0],Je=De[1];return R(He,ue)*R(Je,ue)>=0?[]:[$(ue,de(He,Je))]},Re=function(ue,ve){var De=(0,D.Z)(ue,2),He=De[0],Je=De[1],qe=function(st,ht){var et=.5*ht;return[1,0,0,0,et*st[4],et*st[5],0,0]}(function(st,ht){return u([0,0,0,0,ht[4]-st[4],ht[5]-st[5],0,0])}(He,Je),ve);return[O(qe,He),O(qe,Je)]},Ze=function(ue,ve,De){var He=ue.width/2+ve,Je=ue.height/2+ve,qe=De[2],st=De[3],ht=De[1],et=He*He*qe*qe+Je*Je*st*st,wt=et-ht*ht;if(et===0||wt<=0)return[];var Lt=Math.sqrt(wt),St=-He*He*qe*ht,yt=-Je*Je*st*ht;return[E((St+He*Je*st*Lt)/et,(yt-He*Je*qe*Lt)/et),E((St-He*Je*st*Lt)/et,(yt+He*Je*qe*Lt)/et)]},Be=function(ue,ve,De){if(ve===0)return R(De,ue)===0?[ue]:[];var He=De[2],Je=De[3],qe=De[1],st=oe(ue),ht=(0,D.Z)(st,2),et=ht[0],wt=ht[1],Lt=He*He+Je*Je,St=ve*ve*Lt-Math.pow(He*et+Je*wt+qe,2);if(Lt===0||St<=0)return[];var yt=Math.sqrt(St),Wt=et*Je*Je-wt*He*Je-He*qe,Ft=wt*He*He-et*He*Je-Je*qe;return[E((Wt+Je*yt)/Lt,(Ft-He*yt)/Lt),E((Wt-Je*yt)/Lt,(Ft+He*yt)/Lt)]},Ie=function(ue,ve,De){var He=Math.abs(ve),Je=ue.width*He/2,qe=ue.height*He/2,st=Math.sign(ve),ht=oe(De),et=(0,D.Z)(ht,2),wt=et[0],Lt=et[1],St=Lt===0?1e-4:Lt,yt=Math.pow(wt,2)*Math.pow(qe,2)+Math.pow(St,2)*Math.pow(Je,2),Wt=(-wt*Math.pow(qe,2)+st*St*Math.sqrt(Math.max(0,yt-Math.pow(Je,2)*Math.pow(qe,2))))/yt,Ft=(-Wt*wt-1)/St;Ft===0&&(Ft=.01*(Object.is(Ft,-0)?-1:1));var Ve=-Math.pow(Je,2)*Wt/(Math.pow(Ft,2)*Math.pow(qe,2)+Math.pow(Wt,2)*Math.pow(Je,2));return E(Ve,(-Wt*Ve-1)/Ft)},Ke=function(ue,ve,De){var He=Math.abs(ve),Je=Math.sign(ve),qe=ge(ue,He),st=0,ht=null;return qe.forEach(function(et){var wt=Je*de(De,et)[1];wt>st&&(st=wt,ht=et)}),ht},Ye=function(ue,ve,De,He){var Je,qe=[],st=!1,ht=j((0,t.CM)(ue));try{for(ht.s();!(Je=ht.n()).done;){var et=Je.value;et.op==="move"?(st=!st)&&qe.push([et.data[0],et.data[1]]):et.op==="bcurveTo"?st&&(qe.push([et.data[0],et.data[1]]),qe.push([et.data[2],et.data[3]]),qe.push([et.data[4],et.data[5]])):et.op==="lineTo"&&st&&qe.push([et.data[0],et.data[1]])}}catch(Lt){ht.e(Lt)}finally{ht.f()}if(qe.length>=4){if(He==="sharp")return(0,s.c9)(qe,ve,De);var wt=(0,f.sU)(qe,10,5);return(0,s.c9)(wt,ve,De)}return!1},tt=function(ue,ve,De,He){var Je=(0,t.CM)(ue),qe=[0,0];return Je.some(function(st,ht){var et=st.op,wt=st.data;if(et==="move")qe=wt;else{if(et==="bcurveTo"){var Lt=[wt[0],wt[1]],St=[wt[2],wt[3]],yt=[wt[4],wt[5]],Wt=qe;qe=yt;var Ft=function(Ve,bt,at,mt,ut,Ot){for(var Pt=(0,D.Z)(ut,2),Gt=Pt[0],Ct=Pt[1],ur=function(Rt,_t){return Math.pow(1-Rt,3)*mt[_t]+3*Rt*Math.pow(1-Rt,2)*at[_t]+3*Math.pow(Rt,2)*(1-Rt)*bt[_t]+Ve[_t]*Math.pow(Rt,3)},rr=0;rr<=1;){var Tr=ur(rr,0),ot=ur(rr,1);if(Math.sqrt(Math.pow(Tr-Gt,2)+Math.pow(ot-Ct,2))<Ot)return!0;rr+=.01}return!1}(Wt,Lt,St,yt,[ve,De],He);return Ft}if(et==="lineTo")return Ye(ue,ve,De,"sharp");et==="qcurveTo"&&console.warn("qcurveTo is not implemented yet")}return!1})}},761:function(Se,Q,e){e.d(Q,{LM:function(){return s},eX:function(){return l},g0:function(){return t},uU:function(){return f},xm:function(){return a}});var D=e(7169),E=e(2767),y=e(9937),h=e(8227),S=e(9827),I=e(7652),v=e(5742),n=e(4761),M=e(4183);function Z(c,m){var z=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!z){if(Array.isArray(c)||(z=function(ie,V){if(ie){if(typeof ie=="string")return H(ie,V);var ce=Object.prototype.toString.call(ie).slice(8,-1);if(ce==="Object"&&ie.constructor&&(ce=ie.constructor.name),ce==="Map"||ce==="Set")return Array.from(ie);if(ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ce))return H(ie,V)}}(c))||m&&c&&typeof c.length=="number"){z&&(c=z);var j=0,k=function(){};return{s:k,n:function(){return j>=c.length?{done:!0}:{done:!1,value:c[j++]}},e:function(ie){throw ie},f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x,N=!0,G=!1;return{s:function(){z=z.call(c)},n:function(){var ie=z.next();return N=ie.done,ie},e:function(ie){G=!0,x=ie},f:function(){try{N||z.return==null||z.return()}finally{if(G)throw x}}}}function H(c,m){(m==null||m>c.length)&&(m=c.length);for(var z=0,j=new Array(m);z<m;z++)j[z]=c[z];return j}function W(c,m){var z=Object.keys(c);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(c);m&&(j=j.filter(function(k){return Object.getOwnPropertyDescriptor(c,k).enumerable})),z.push.apply(z,j)}return z}function u(c){for(var m=1;m<arguments.length;m++){var z=arguments[m]!=null?arguments[m]:{};m%2?W(Object(z),!0).forEach(function(j){(0,D.Z)(c,j,z[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(z)):W(Object(z)).forEach(function(j){Object.defineProperty(c,j,Object.getOwnPropertyDescriptor(z,j))})}return c}var U=new Map,le=/^(?:http(?:s)?:\/\/)?(?:www\.)?youtu(?:be\.com|\.be)\/(embed\/|watch\?v=|shorts\/|playlist\?list=|embed\/videoseries\?list=)?([a-zA-Z0-9_-]+)(?:\?t=|&t=|\?start=|&start=)?([a-zA-Z0-9_-]+)?[^\s]*$/,de=/^(?:http(?:s)?:\/\/)?(?:(?:w){3}.)?(?:player\.)?vimeo\.com\/(?:video\/)?([^?\s]+)(?:\?.*)?$/,he=/^https:\/\/(?:www\.)?figma\.com/,pe=/^https:\/\/gist\.github\.com/,oe=/^<script[\s\S]*?\ssrc=["'](https:\/\/gist.github.com\/.*?)\.js["']/i,P=/(?:http(?:s)?:\/\/)?(?:(?:w){3}.)?twitter.com/,$=/^<blockquote[\s\S]*?\shref=["'](https:\/\/twitter.com\/[^"']*)/i,b=/^https:\/\/(?:www\.)?val.town\/(v|embed)\/[a-zA-Z_$][0-9a-zA-Z_$]+\.[a-zA-Z_$][0-9a-zA-Z_$]+/,R=/^<(?:iframe|blockquote)[\s\S]*?\s(?:src|href)=["']([^"']*)["'][\s\S]*?>$/i,_=/giphy.com\/(?:clips|embed|gifs)\/[a-zA-Z0-9]*?-?([a-zA-Z0-9]+)(?:[^a-zA-Z0-9]|$)/,g=new Set(["youtube.com","youtu.be","vimeo.com","player.vimeo.com","figma.com","link.excalidraw.com","gist.github.com","twitter.com","*.simplepdf.eu","stackblitz.com","val.town","giphy.com","dddice.com"]),O=function(c){return"<html><body>".concat(c,"</body></html>")},s=function(c){if(!c)return null;if(U.has(c))return U.get(c);var m=c,z="generic",j={w:560,h:840},k=c.match(le);if(k!=null&&k[2]){var x=k[3]?"&start=".concat(k[3]):"",N=c.includes("shorts");switch(z="video",k[1]){case"embed/":case"watch?v=":case"shorts/":default:c="https://www.youtube.com/embed/".concat(k[2],"?enablejsapi=1").concat(x);break;case"playlist?list=":case"embed/videoseries?list=":c="https://www.youtube.com/embed/videoseries?list=".concat(k[2],"&enablejsapi=1").concat(x)}return j=N?{w:315,h:560}:{w:560,h:315},U.set(m,{link:c,aspectRatio:j,type:z}),{link:c,aspectRatio:j,type:z}}var G=c.match(de);if(G!=null&&G[1]){var ie=G?.[1],V=/^\d+$/.test(ie)?void 0:(0,h.t)("toast.unrecognizedLinkFormat");return z="video",c="https://player.vimeo.com/video/".concat(ie,"?api=1"),j={w:560,h:315},U.set(m,{link:c,aspectRatio:j,type:z}),{link:c,aspectRatio:j,type:z,warning:V}}if(c.match(he))return z="generic",c="https://www.figma.com/embed?embed_host=share&url=".concat(encodeURIComponent(c)),j={w:550,h:550},U.set(m,{link:c,aspectRatio:j,type:z}),{link:c,aspectRatio:j,type:z};var ce=c.match(b);if(ce)return c=ce[1]==="embed"?ce[0]:ce[0].replace("/v","/embed"),U.set(m,{link:c,aspectRatio:j,type:z}),{link:c,aspectRatio:j,type:z};if(P.test(c)){var te;if(/<blockquote/.test(c)){var L=O(c);te={type:"document",srcdoc:function(){return L},aspectRatio:{w:480,h:480}}}else te={type:"document",srcdoc:function(Ce){return O('<blockquote class="twitter-tweet" data-dnt="true" data-theme="'.concat(Ce,'"><a href="').concat(c,'"></a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"><\/script>'))},aspectRatio:{w:480,h:480}};return U.set(m,te),te}if(pe.test(c)){var re;if(/<script>/.test(c)){var me=O(c);re={type:"document",srcdoc:function(){return me},aspectRatio:{w:550,h:720}}}else re={type:"document",srcdoc:function(){return O(` + <script src="`.concat(c,`.js"><\/script> + <style type="text/css"> + * { margin: 0px; } + table, .gist { height: 100%; } + .gist .gist-file { height: calc(100vh - 2px); padding: 0px; display: grid; grid-template-rows: 1fr auto; } + </style> + `))},aspectRatio:{w:550,h:720}};return U.set(c,re),re}return U.set(c,{link:c,aspectRatio:j,type:z}),{link:c,aspectRatio:j,type:z}},f=function(c){if((0,M.gs)(c))return!0;if(c.type==="text"){var m=(0,n.tl)(c);if(m&&(0,M.gs)(m))return!0}return!1},t=function(c){var m,z=c.link&&c?.link!==""?c.link:"Empty Web-Embed",j=Math.max(Math.min(c.width/2,c.width/z.length),c.width/30),k=y.ut.Helvetica,x=(0,S.mO)({fontSize:j,fontFamily:k});return(0,v.VL)({x:c.x+c.width/2,y:c.y+c.height/2,strokeColor:c.strokeColor!=="transparent"?c.strokeColor:"black",backgroundColor:"transparent",fontFamily:k,fontSize:j,text:(0,n.lD)(z,x,c.width-20),textAlign:"center",verticalAlign:y.oX.MIDDLE,angle:(m=c.angle)!==null&&m!==void 0?m:0})},w=((0,E.z)({name:"setEmbeddableAsActiveTool",trackEvent:{category:"toolbar"},perform:function(c,m,z,j){var k=(0,S.Om)(m,{type:"embeddable"});return(0,I.Uk)(j.canvas,u(u({},m),{},{activeTool:k})),{elements:c,appState:u(u({},m),{},{activeTool:(0,S.Om)(m,{type:"embeddable"})}),commitToHistory:!1}}}),function(c,m){try{var z=new URL(c).hostname.replace(/^www\./,""),j=z.replace(/^([^.]+)/,"*");if(m instanceof Set)return g.has(z)||g.has(j);if(z===m.replace(/^www\./,""))return!0}catch{}return!1}),l=function(c){var m=c.match($);if(m&&m.length===2)return m[1];var z=c.match(oe);if(z&&z.length===2)return z[1];if(_.test(c))return"https://giphy.com/embed/".concat(_.exec(c)[1]);var j=c.match(R);return j&&j.length===2?j[1]:c},a=function(c,m){if(!c)return!1;if(m!=null)if(typeof m=="function"){var z=m(c);if(typeof z=="boolean")return z}else{if(typeof m=="boolean")return m;if(m instanceof RegExp)return m.test(c);if(Array.isArray(m)){var j,k=Z(m);try{for(k.s();!(j=k.n()).done;){var x=j.value;if(x instanceof RegExp){if(c.match(x))return!0}else if(w(c,x))return!0}}catch(N){k.e(N)}finally{k.f()}return!1}}return w(c,g)}},4178:function(Se,Q,e){e.d(Q,{PK:function(){return H},Xx:function(){return W},bp:function(){return U},oA:function(){return u}});var D=e(2577),E=e(7169),y=e(8950),h=e(2975),S=e.n(h),I=e(9937),v=e(8227),n=e(4183);function M(le,de){var he=Object.keys(le);if(Object.getOwnPropertySymbols){var pe=Object.getOwnPropertySymbols(le);de&&(pe=pe.filter(function(oe){return Object.getOwnPropertyDescriptor(le,oe).enumerable})),he.push.apply(he,pe)}return he}function Z(le){for(var de=1;de<arguments.length;de++){var he=arguments[de]!=null?arguments[de]:{};de%2?M(Object(he),!0).forEach(function(pe){(0,E.Z)(le,pe,he[pe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(le,Object.getOwnPropertyDescriptors(he)):M(Object(he)).forEach(function(pe){Object.defineProperty(le,pe,Object.getOwnPropertyDescriptor(he,pe))})}return le}var H=function(le){return new Promise(function(de,he){var pe=new Image;pe.onload=function(){de(pe)},pe.onerror=function(oe){he(oe)},pe.src=le})},W=function(){var le=(0,y.Z)(S().mark(function de(he){var pe,oe,P,$,b;return S().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return pe=he.fileIds,oe=he.files,P=he.imageCache,$=new Map,b=new Map,R.next=5,Promise.all(pe.reduce(function(_,g){var O=oe[g];return O&&!$.has(g)?($.set(g,!0),_.concat((0,y.Z)(S().mark(function s(){var f,t,w;return S().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(l.prev=0,O.mimeType!==I.LO.binary){l.next=3;break}throw new Error("Only images can be added to ImageCache");case 3:return f=H(O.dataURL),t={image:f,mimeType:O.mimeType},P.set(g,t),l.next=8,f;case 8:w=l.sent,P.set(g,Z(Z({},t),{},{image:w})),l.next=15;break;case 12:l.prev=12,l.t0=l.catch(0),b.set(g,!0);case 15:case"end":return l.stop()}},s,null,[[0,12]])}))())):_},[]));case 5:return R.abrupt("return",{imageCache:P,updatedFiles:$,erroredFiles:b});case 6:case"end":return R.stop()}},de)}));return function(de){return le.apply(this,arguments)}}(),u=function(le){return le.filter(function(de){return(0,n.wi)(de)})},U=function(){var le=(0,y.Z)(S().mark(function de(he){var pe,oe,P,$,b,R,_;return S().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(pe=new DOMParser().parseFromString(he,I.LO.svg),oe=pe.querySelector("svg"),!pe.querySelector("parsererror")&&((O=oe)==null?void 0:O.nodeName.toLowerCase())==="svg"){g.next=7;break}throw new Error((0,v.t)("errors.invalidSVGString"));case 7:return oe.hasAttribute("xmlns")||oe.setAttribute("xmlns",I.hR),oe.hasAttribute("width")&&oe.hasAttribute("height")||(P=oe.getAttribute("viewBox"),$=oe.getAttribute("width")||"50",b=oe.getAttribute("height")||"50",P&&(R=P.match(/\d+ +\d+ +(\d+) +(\d+)/))&&(_=(0,D.Z)(R,3),$=_[1],b=_[2]),oe.setAttribute("width",$),oe.setAttribute("height",b)),g.abrupt("return",oe.outerHTML);case 10:case"end":return g.stop()}var O},de)}));return function(de){return le.apply(this,arguments)}}()},7651:function(Se,Q,e){e.d(Q,{ox:function(){return I.ox},BQ:function(){return x},_M:function(){return N},EJ:function(){return O},o8:function(){return b},Sy:function(){return h.Sy},Y5:function(){return S.Y5},os:function(){return S.os},KP:function(){return S.KP},Un:function(){return le},UC:function(){return S.UC},$V:function(){return g},qf:function(){return S.qf},Pi:function(){return S.Pi},jt:function(){return W},o4:function(){return E.o4},Lm:function(){return m},Xf:function(){return z},Qp:function(){return E.Qp},T:function(){return de.T},xx:function(){return de.xx},Uo:function(){return a},n2:function(){return u},PC:function(){return I.PC},kK:function(){return I.kK},n_:function(){return c},wX:function(){return v.wX},r2:function(){return y.r2},He:function(){return y.He},wB:function(){return v.wB},QD:function(){return E.QD},qP:function(){return j},iB:function(){return y.iB},Up:function(){return h.Up},vw:function(){return h.vw},y8:function(){return h.y8},VL:function(){return h.VL},oN:function(){return oe.oN},JZ:function(){return h.JZ},RT:function(){return t},b_:function(){return s.b_},vY:function(){return de.vY},N_:function(){return h.N_}});var D=e(7169),E=e(7935),y=e(4183),h=e(5742),S=e(4949),I=e(4048),v=e(3528),n=e(2577),M=e(2726),Z=["rotation"],H=function(G,ie,V){return ie>=G[0]&&ie<=G[0]+G[2]&&V>=G[1]&&V<=G[1]+G[3]},W=function(G,ie,V,ce,te,L){return G.reduce(function(re,me){if(re)return re;var Ce=function(We,Te,we,xe,_e,Oe){if(!Te.selectedElementIds[We.id])return!1;var J=(0,I.PC)(We,_e,Oe),ke=J.rotation,q=(0,M.Z)(J,Z);if(ke&&H(ke,we,xe))return"rotation";var o=Object.keys(q).filter(function(i){var p=q[i];return!!p&&H(p,we,xe)});return o.length>0&&o[0]}(me,ie,V,ce,te,L);return Ce?{element:me,transformHandleType:Ce}:null},null)},u=function(G,ie,V,ce,te){var L=(0,n.Z)(G,4),re=L[0],me=L[1],Ce=L[2],We=L[3],Te=(0,I.kK)([re,me,Ce,We,(re+Ce)/2,(me+We)/2],0,ce,te,I.ox);return Object.keys(Te).find(function(we){var xe=Te[we];return xe&&H(xe,ie,V)})||!1},U=["ns","nesw","ew","nwse"],le=function(G){var ie=G.element,V=G.transformHandleType,ce=ie&&Math.sign(ie.height)*Math.sign(ie.width)==-1,te=null;switch(V){case"n":case"s":te="ns";break;case"w":case"e":te="ew";break;case"nw":case"se":te=ce?"nesw":"nwse";break;case"ne":case"sw":te=ce?"nwse":"nesw";break;case"rotation":return"grab"}return te&&ie&&(te=function(L,re){var me=U.indexOf(L);if(me>=0){var Ce=Math.round(re/(Math.PI/4));L=U[(me+Ce)%U.length]}return L}(te,ie.angle)),te?"".concat(te,"-resize"):""},de=e(4381),he=e(9645),pe=e(583),oe=e(4761),P=e(9215),$=e(2361),b=function(G,ie,V,ce,te,L,re){var me=new Set(ie),Ce=ie.filter(function(we){return(0,y.He)(we)}).map(function(we){return we.id});Ce.length>0&&te.getNonDeletedElements().filter(function(we){return!(0,y.Xh)(we)}).filter(function(we){return we.frameId!==null}).filter(function(we){return Ce.includes(we.frameId)}).forEach(function(we){return me.add(we)});var We=(0,S.KP)(Array.from(me).map(function(we){var xe;return(xe=G.originalElements.get(we.id))!==null&&xe!==void 0?xe:we})),Te=R(We,V,L,re);me.forEach(function(we){if(_(G,we,Te),!(0,y.Yv)(we)&&(!we.groupIds.length||ce.editingGroupId&&!(0,P.zq)(ce,we))){var xe=(0,oe.WJ)(we);xe&&_(G,xe,Te)}(0,he.Ww)(we,{simultaneouslyUpdated:Array.from(me)})})},R=function(G,ie,V,ce){var te=(0,n.Z)(G,2),L=te[0],re=te[1],me=L+ie.x+V.x,Ce=re+ie.y+V.y;if(V.x===0||V.y===0){var We=(0,$.wC)(L+ie.x,re+ie.y,ce),Te=(0,n.Z)(We,2),we=Te[0],xe=Te[1];V.x===0&&(me=we),V.y===0&&(Ce=xe)}return{x:me-L,y:Ce-re}},_=function(G,ie,V){var ce,te=(ce=G.originalElements.get(ie.id))!==null&&ce!==void 0?ce:ie,L=te.x+V.x,re=te.y+V.y;(0,pe.DR)(ie,{x:L,y:re})},g=function(G,ie,V){var ce=(0,S.KP)(G),te=(0,n.Z)(ce,2);return[ie-te[0],V-te[1]]},O=function(G,ie,V,ce,te,L,re,me,Ce,We,Te){var we=arguments.length>11&&arguments[11]!==void 0?arguments[11]:null;if(Ce&&G.type!=="selection")if(Te)me=re/Te;else{if(Math.abs(L-ce)>Math.abs(te-V)){var xe=(0,E.uK)(ie,me,te<V?-re:re);re=xe.width,me=xe.height}else{var _e=(0,E.uK)(ie,re,L<ce?-me:me);re=_e.width,me=_e.height}me<0&&(me=-me)}var Oe,J,ke=te<V?V-re:V,q=L<ce?ce-me:ce;We&&(ke=V-(re+=re)/2,q=ce-(me+=me)/2),re!==0&&me!==0&&(0,pe.DR)(G,{x:ke+((Oe=we?.x)!==null&&Oe!==void 0?Oe:0),y:q+((J=we?.y)!==null&&J!==void 0?J:0),width:re,height:me})},s=e(3474),f=e(4105),t=function(G,ie){return!!(!G.viewModeEnabled&&(G.activeTool.type!=="custom"&&(G.editingElement||G.activeTool.type!=="selection"&&G.activeTool.type!=="eraser"&&G.activeTool.type!=="hand"&&G.activeTool.type!=="laser")||(0,f.eD)(ie,G).length))};function w(G,ie){var V=Object.keys(G);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);ie&&(ce=ce.filter(function(te){return Object.getOwnPropertyDescriptor(G,te).enumerable})),V.push.apply(V,ce)}return V}function l(G){for(var ie=1;ie<arguments.length;ie++){var V=arguments[ie]!=null?arguments[ie]:{};ie%2?w(Object(V),!0).forEach(function(ce){(0,D.Z)(G,ce,V[ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(V)):w(Object(V)).forEach(function(ce){Object.defineProperty(G,ce,Object.getOwnPropertyDescriptor(V,ce))})}return G}var a=function(G){return G.reduce(function(ie,V){return ie+V.version},0)},c=function(G){return G.filter(function(ie){return!ie.isDeleted&&!(0,E.QD)(ie)})},m=function(G){return G.filter(function(ie){return!ie.isDeleted})},z=function(G){return G.filter(function(ie){return!ie.isDeleted})},j=function(G){return!G.isDeleted},k=function(G){return m(G).map(function(ie){return(0,y.dt)(ie.type)?l(l({},ie),{},{lastCommittedPoint:null}):ie})},x=function(G){return k(G)},N=function(G){return k(G)}},7422:function(Se,Q,e){e.d(Q,{_:function(){return R}});var D=e(1930),E=e(7169),y=e(2577),h=e(8821),S=e(5169),I=e(2361),v=e(7651),n=e(4949),M=e(583),Z=e(457),H=e(9645),W=e(9827),u=e(4183),U=e(5491),le=e(4761),de=e(9937),he=e(2921);function pe(g,O){var s=typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(!s){if(Array.isArray(g)||(s=function(c,m){if(c){if(typeof c=="string")return oe(c,m);var z=Object.prototype.toString.call(c).slice(8,-1);if(z==="Object"&&c.constructor&&(z=c.constructor.name),z==="Map"||z==="Set")return Array.from(c);if(z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return oe(c,m)}}(g))||O&&g&&typeof g.length=="number"){s&&(g=s);var f=0,t=function(){};return{s:t,n:function(){return f>=g.length?{done:!0}:{done:!1,value:g[f++]}},e:function(c){throw c},f:t}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w,l=!0,a=!1;return{s:function(){s=s.call(g)},n:function(){var c=s.next();return l=c.done,c},e:function(c){a=!0,w=c},f:function(){try{l||s.return==null||s.return()}finally{if(a)throw w}}}}function oe(g,O){(O==null||O>g.length)&&(O=g.length);for(var s=0,f=new Array(O);s<O;s++)f[s]=g[s];return f}function P(g,O){var s=Object.keys(g);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(g);O&&(f=f.filter(function(t){return Object.getOwnPropertyDescriptor(g,t).enumerable})),s.push.apply(s,f)}return s}function $(g){for(var O=1;O<arguments.length;O++){var s=arguments[O]!=null?arguments[O]:{};O%2?P(Object(s),!0).forEach(function(f){(0,E.Z)(g,f,s[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(s)):P(Object(s)).forEach(function(f){Object.defineProperty(g,f,Object.getOwnPropertyDescriptor(s,f))})}return g}var b={version:null,points:[],zoom:null},R=function(){function g(O,s){(0,h.Z)(this,g),this.elementId=O.id,Z.Z.mapElementToScene(this.elementId,s),g.normalizePoints(O),this.selectedPointsIndices=null,this.lastUncommittedPoint=null,this.isDragging=!1,this.pointerOffset={x:0,y:0},this.startBindingElement="keep",this.endBindingElement="keep",this.pointerDownState={prevSelectedPointsIndices:null,lastClickedPoint:-1,origin:null,segmentMidpoint:{value:null,index:null,added:!1}},this.hoverPointIndex=-1,this.segmentMidPointHoveredCoords=null}return(0,S.Z)(g,null,[{key:"getElement",value:function(O){var s,f=(s=Z.Z.getScene(O))===null||s===void 0?void 0:s.getNonDeletedElement(O);return f||null}},{key:"handleBoxSelection",value:function(O,s,f){var t;if(!s.editingLinearElement||((t=s.draggingElement)===null||t===void 0?void 0:t.type)!=="selection")return!1;var w=s.editingLinearElement,l=w.selectedPointsIndices,a=w.elementId,c=g.getElement(a);if(!c)return!1;var m=(0,v.qf)(s.draggingElement),z=(0,y.Z)(m,4),j=z[0],k=z[1],x=z[2],N=z[3],G=g.getPointsGlobalCoordinates(c).reduce(function(ie,V,ce){return(V[0]>=j&&V[0]<=x&&V[1]>=k&&V[1]<=N||O.shiftKey&&l!=null&&l.includes(ce))&&ie.push(ce),ie},[]);f({editingLinearElement:$($({},w),{},{selectedPointsIndices:G.length?G:null})})}},{key:"handlePointDragging",value:function(O,s,f,t,w,l){if(!l)return!1;var a=l.selectedPointsIndices,c=l.elementId,m=g.getElement(c);if(!m)return!1;var z=m.points[l.pointerDownState.lastClickedPoint];if(a&&z){if((0,U.Ge)(O)&&a.length===1&&m.points.length>1){var j=a[0],k=m.points[j===0?1:j-1],x=g._getShiftLockedDelta(m,k,[f,t],O[U.tW.CTRL_OR_CMD]?null:s.gridSize),N=(0,y.Z)(x,2),G=N[0],ie=N[1];g.movePoints(m,[{index:j,point:[G+k[0],ie+k[1]],isDragging:j===l.pointerDownState.lastClickedPoint}])}else{var V=g.createPointAt(m,f-l.pointerOffset.x,t-l.pointerOffset.y,O[U.tW.CTRL_OR_CMD]?null:s.gridSize),ce=V[0]-z[0],te=V[1]-z[1];g.movePoints(m,a.map(function(me){return{index:me,point:me===l.pointerDownState.lastClickedPoint?g.createPointAt(m,f-l.pointerOffset.x,t-l.pointerOffset.y,O[U.tW.CTRL_OR_CMD]?null:s.gridSize):[m.points[me][0]+ce,m.points[me][1]+te],isDragging:me===l.pointerDownState.lastClickedPoint}}))}if((0,le.WJ)(m)&&(0,le.RB)(m,!1),(0,u.Mn)(m,!1)){var L=[];a[0]===0&&L.push((0,W.AK)(g.getPointGlobalCoordinates(m,m.points[0])));var re=a[a.length-1];re===m.points.length-1&&L.push((0,W.AK)(g.getPointGlobalCoordinates(m,m.points[re]))),L.length&&w(m,L)}return!0}return!1}},{key:"handlePointerUp",value:function(O,s,f){var t,w=s.elementId,l=s.selectedPointsIndices,a=s.isDragging,c=s.pointerDownState,m=g.getElement(w);if(!m)return s;var z={};if(a&&l){var j,k=pe(l);try{for(k.s();!(j=k.n()).done;){var x=j.value;if(x===0||x===m.points.length-1){(0,I.g6)(m.points,f.zoom.value)&&g.movePoints(m,[{index:x,point:x===0?m.points[m.points.length-1]:m.points[0]}]);var N=(0,H.N1)(f)?(0,H.Y9)((0,W.AK)(g.getPointAtIndexGlobalCoordinates(m,x)),Z.Z.getScene(m)):null;z[x===0?"startBindingElement":"endBindingElement"]=N}}}catch(G){k.e(G)}finally{k.f()}}return $($($({},s),z),{},{selectedPointsIndices:a||O.shiftKey?!a&&O.shiftKey&&(t=c.prevSelectedPointsIndices)!==null&&t!==void 0&&t.includes(c.lastClickedPoint)?l&&l.filter(function(G){return G!==c.lastClickedPoint}):l:l!=null&&l.includes(c.lastClickedPoint)?[c.lastClickedPoint]:l,isDragging:!1,pointerOffset:{x:0,y:0}})}},{key:"isSegmentTooShort",value:function(O,s,f,t){var w=(0,I.LW)(s[0],s[1],f[0],f[1]);return O.points.length>2&&O.roundness&&(w=(0,I.eH)(O,f)),w*t.value<4*g.POINT_HANDLE_SIZE}},{key:"getSegmentMidPoint",value:function(O,s,f,t){var w=(0,I.H5)(s,f);if(O.points.length>2&&O.roundness){var l=(0,I.yB)(O,O.points[t]);if(l){var a=(0,I.lk)(O,O.points[t],.5),c=(0,I.N_)(l[0],l[1],l[2],l[3],a),m=(0,y.Z)(c,2),z=m[0],j=m[1];w=g.getPointGlobalCoordinates(O,[z,j])}}return w}},{key:"getSegmentMidPointIndex",value:function(O,s,f){var t=g.getElement(O.elementId);if(!t)return-1;for(var w=g.getEditorMidPoints(t,s),l=0;l<w.length;){if(g.arePointsEqual(f,w[l]))return l+1;l++}return-1}},{key:"handlePointerDown",value:function(O,s,f,t,w){var l,a={didAddPoint:!1,hitElement:null,linearElementEditor:null};if(!w)return a;var c=w.elementId,m=g.getElement(c);if(!m)return a;var z=g.getSegmentMidpointHitCoords(w,t,s),j=null;if(z&&(j=g.getSegmentMidPointIndex(w,s,z)),O.altKey&&s.editingLinearElement)return w.lastUncommittedPoint==null&&((0,M.DR)(m,{points:[].concat((0,D.Z)(m.points),[g.createPointAt(m,t.x,t.y,O[U.tW.CTRL_OR_CMD]?null:s.gridSize)])}),a.didAddPoint=!0),f.resumeRecording(),a.linearElementEditor=$($({},w),{},{pointerDownState:{prevSelectedPointsIndices:w.selectedPointsIndices,lastClickedPoint:-1,origin:{x:t.x,y:t.y},segmentMidpoint:{value:z,index:j,added:!1}},selectedPointsIndices:[m.points.length-1],lastUncommittedPoint:null,endBindingElement:(0,H.Y9)(t,Z.Z.getScene(m))}),a.didAddPoint=!0,a;var k=g.getPointIndexUnderCursor(m,s.zoom,t.x,t.y);if(k>=0||z)a.hitElement=m;else{var x=w.startBindingElement,N=w.endBindingElement;(0,H.N1)(s)&&(0,u.Mn)(m)&&(0,H.HG)(m,x,N)}var G=(0,v.qf)(m),ie=(0,y.Z)(G,4),V=ie[0],ce=ie[1],te=(V+ie[2])/2,L=(ce+ie[3])/2,re=k>-1&&(0,I.U1)(m.x+m.points[k][0],m.y+m.points[k][1],te,L,m.angle),me=k>-1||O.shiftKey?O.shiftKey||(l=w.selectedPointsIndices)!==null&&l!==void 0&&l.includes(k)?_([].concat((0,D.Z)(w.selectedPointsIndices||[]),[k])):[k]:null;return a.linearElementEditor=$($({},w),{},{pointerDownState:{prevSelectedPointsIndices:w.selectedPointsIndices,lastClickedPoint:k,origin:{x:t.x,y:t.y},segmentMidpoint:{value:z,index:j,added:!1}},selectedPointsIndices:me,pointerOffset:re?{x:t.x-re[0],y:t.y-re[1]}:{x:0,y:0}}),a}},{key:"arePointsEqual",value:function(O,s){return!O&&!s||!(!O||!s)&&(0,I.Jj)(O,s)}},{key:"handlePointerMove",value:function(O,s,f,t){if(!t.editingLinearElement)return null;var w=t.editingLinearElement,l=w.elementId,a=w.lastUncommittedPoint,c=g.getElement(l);if(!c)return t.editingLinearElement;var m,z=c.points,j=z[z.length-1];if(!O.altKey)return j===a&&g.deletePoints(c,[z.length-1]),$($({},t.editingLinearElement),{},{lastUncommittedPoint:null});if((0,U.Ge)(O)&&z.length>=2){var k=z[z.length-2],x=g._getShiftLockedDelta(c,k,[s,f],O[U.tW.CTRL_OR_CMD]?null:t.gridSize),N=(0,y.Z)(x,2),G=N[0],ie=N[1];m=[G+k[0],ie+k[1]]}else m=g.createPointAt(c,s-t.editingLinearElement.pointerOffset.x,f-t.editingLinearElement.pointerOffset.y,O[U.tW.CTRL_OR_CMD]?null:t.gridSize);return j===a?g.movePoints(c,[{index:c.points.length-1,point:m}]):g.addPoints(c,t,[{point:m}]),$($({},t.editingLinearElement),{},{lastUncommittedPoint:c.points[c.points.length-1]})}},{key:"getPointGlobalCoordinates",value:function(O,s){var f=(0,v.qf)(O),t=(0,y.Z)(f,4),w=t[0],l=t[1],a=(w+t[2])/2,c=(l+t[3])/2,m=O.x,z=O.y,j=(0,I.U1)(m+s[0],z+s[1],a,c,O.angle),k=(0,y.Z)(j,2);return[m=k[0],z=k[1]]}},{key:"getPointsGlobalCoordinates",value:function(O){var s=(0,v.qf)(O),f=(0,y.Z)(s,4),t=f[0],w=f[1],l=f[2],a=f[3],c=(t+l)/2,m=(w+a)/2;return O.points.map(function(z){var j=O.x,k=O.y,x=(0,I.U1)(j+z[0],k+z[1],c,m,O.angle),N=(0,y.Z)(x,2);return[j=N[0],k=N[1]]})}},{key:"getPointAtIndexGlobalCoordinates",value:function(O,s){var f=s<0?O.points.length+s:s,t=(0,v.qf)(O),w=(0,y.Z)(t,4),l=w[0],a=w[1],c=(l+w[2])/2,m=(a+w[3])/2,z=O.points[f],j=O.x,k=O.y;return z?(0,I.U1)(j+z[0],k+z[1],c,m,O.angle):(0,I.U1)(j,k,c,m,O.angle)}},{key:"pointFromAbsoluteCoords",value:function(O,s){var f=(0,v.qf)(O),t=(0,y.Z)(f,4),w=t[0],l=t[1],a=(w+t[2])/2,c=(l+t[3])/2,m=(0,I.U1)(s[0],s[1],a,c,-O.angle),z=(0,y.Z)(m,2),j=z[0],k=z[1];return[j-O.x,k-O.y]}},{key:"getPointIndexUnderCursor",value:function(O,s,f,t){for(var w=g.getPointsGlobalCoordinates(O),l=w.length;--l>-1;){var a=w[l];if((0,I.LW)(f,t,a[0],a[1])*s.value<g.POINT_HANDLE_SIZE+1)return l}return-1}},{key:"createPointAt",value:function(O,s,f,t){var w=(0,I.wC)(s,f,t),l=(0,v.qf)(O),a=(0,y.Z)(l,4),c=a[0],m=a[1],z=(c+a[2])/2,j=(m+a[3])/2,k=(0,I.U1)(w[0],w[1],z,j,-O.angle),x=(0,y.Z)(k,2),N=x[0],G=x[1];return[N-O.x,G-O.y]}},{key:"getNormalizedPoints",value:function(O){var s=O.points,f=s[0][0],t=s[0][1];return{points:s.map(function(w,l){return[w[0]-f,w[1]-t]}),x:O.x+f,y:O.y+t}}},{key:"normalizePoints",value:function(O){(0,M.DR)(O,g.getNormalizedPoints(O))}},{key:"duplicateSelectedPoints",value:function(O){if(!O.editingLinearElement)return!1;var s=O.editingLinearElement,f=s.selectedPointsIndices,t=s.elementId,w=g.getElement(t);if(!w||f===null)return!1;var l=w.points,a=[],c=!1,m=-1,z=l.reduce(function(k,x,N){if(++m,k.push(x),f.includes(N)){var G=l[N+1];G||(c=!0),k.push(G?[(x[0]+G[0])/2,(x[1]+G[1])/2]:[x[0],x[1]]),a.push(m+1),++m}return k},[]);if((0,M.DR)(w,{points:z}),c){var j=w.points[w.points.length-1];g.movePoints(w,[{index:w.points.length-1,point:[j[0]+30,j[1]+30]}])}return{appState:$($({},O),{},{editingLinearElement:$($({},O.editingLinearElement),{},{selectedPointsIndices:a})})}}},{key:"deletePoints",value:function(O,s){var f=0,t=0;if(s.includes(0)){var w=O.points.find(function(a,c){return!s.includes(c)});w&&(f=w[0],t=w[1])}var l=O.points.reduce(function(a,c,m){return s.includes(m)||a.push(a.length?[c[0]-f,c[1]-t]:[0,0]),a},[]);g._updatePoints(O,l,f,t)}},{key:"addPoints",value:function(O,s,f){var t=[].concat((0,D.Z)(O.points),(0,D.Z)(f.map(function(w){return w.point})));g._updatePoints(O,t,0,0)}},{key:"movePoints",value:function(O,s,f){var t=O.points,w=0,l=0,a=s.find(function(m){return m.index===0});a&&(w=a.point[0]+t[a.index][0],l=a.point[1]+t[a.index][1]);var c=t.map(function(m,z){var j=s.find(function(N){return N.index===z});if(j){if(a)return m;var k=j.point[0]-t[j.index][0],x=j.point[1]-t[j.index][1];return[m[0]+k,m[1]+x]}return w||l?[m[0]-w,m[1]-l]:m});g._updatePoints(O,c,w,l,f)}},{key:"shouldAddMidpoint",value:function(O,s,f){if(!g.getElement(O.elementId))return!1;var t=O.pointerDownState.segmentMidpoint;if(t.added||t.value===null||t.index===null||O.pointerDownState.origin===null)return!1;var w=O.pointerDownState.origin,l=(0,I.LW)(w.x,w.y,s.x,s.y);return!(!f.editingLinearElement&&l<de.f/f.zoom.value)}},{key:"addMidpoint",value:function(O,s,f,t){var w=g.getElement(O.elementId);if(w){var l=O.pointerDownState.segmentMidpoint,a={pointerDownState:O.pointerDownState,selectedPointsIndices:O.selectedPointsIndices},c=g.createPointAt(w,s.x,s.y,t?f.gridSize:null),m=[].concat((0,D.Z)(w.points.slice(0,l.index)),[c],(0,D.Z)(w.points.slice(l.index)));return(0,M.DR)(w,{points:m}),a.pointerDownState=$($({},O.pointerDownState),{},{segmentMidpoint:$($({},O.pointerDownState.segmentMidpoint),{},{added:!0}),lastClickedPoint:l.index}),a.selectedPointsIndices=[l.index],a}}},{key:"_updatePoints",value:function(O,s,f,t,w){var l=(0,n.Ut)(O,s),a=(0,n.Ut)(O,O.points),c=(l[0]+l[2])/2,m=(l[1]+l[3])/2,z=(a[0]+a[2])/2-c,j=(a[1]+a[3])/2-m,k=(0,I.U1)(f,t,z,j,O.angle);(0,M.DR)(O,$($({},w),{},{points:s,x:O.x+k[0],y:O.y+k[1]}))}},{key:"_getShiftLockedDelta",value:function(O,s,f,t){var w=g.getPointGlobalCoordinates(O,s),l=(0,I.wC)(f[0],f[1],t),a=(0,y.Z)(l,2),c=a[0],m=a[1],z=(0,v.o4)(w[0],w[1],c,m),j=z.width,k=z.height;return(0,I.xj)([j,k],[0,0],-O.angle)}}]),g}();R.POINT_HANDLE_SIZE=10,R.getEditorMidPoints=function(g,O){var s=(0,le.WJ)(g);return!O.editingLinearElement&&g.points.length>2&&!s?[]:(b.version===g.version&&b.zoom===O.zoom.value||R.updateEditorMidPointsCache(g,O),b.points)},R.updateEditorMidPointsCache=function(g,O){for(var s=R.getPointsGlobalCoordinates(g),f=0,t=[];f<s.length-1;)if(R.isSegmentTooShort(g,g.points[f],g.points[f+1],O.zoom))t.push(null),f++;else{var w=R.getSegmentMidPoint(g,s[f],s[f+1],f+1);t.push(w),f++}b.points=t,b.version=g.version,b.zoom=O.zoom.value},R.getSegmentMidpointHitCoords=function(g,O,s){var f=g.elementId,t=R.getElement(f);if(!t||R.getPointIndexUnderCursor(t,s.zoom,O.x,O.y)>=0||R.getPointsGlobalCoordinates(t).length>=3&&!s.editingLinearElement)return null;var w=R.POINT_HANDLE_SIZE/s.zoom.value,l=g.segmentMidPointHoveredCoords;if(l&&(0,I.LW)(l[0],l[1],O.x,O.y)<=w)return l;for(var a=0,c=R.getEditorMidPoints(t,s);a<c.length;){if(c[a]!==null&&(0,I.LW)(c[a][0],c[a][1],O.x,O.y)<=w)return c[a];a++}return null},R.getBoundTextElementPosition=function(g,O){var s=R.getPointsGlobalCoordinates(g);s.length<2&&(0,M.DR)(O,{isDeleted:!0});var f=0,t=0;if(g.points.length%2==1){var w=Math.floor(g.points.length/2),l=R.getPointGlobalCoordinates(g,g.points[w]);f=l[0]-O.width/2,t=l[1]-O.height/2}else{var a=g.points.length/2-1,c=b.points[a];g.points.length===2&&(c=(0,I.H5)(s[0],s[1])),c&&b.version===g.version||(c=R.getSegmentMidPoint(g,s[a],s[a+1],a+1)),f=c[0]-O.width/2,t=c[1]-O.height/2}return{x:f,y:t}},R.getMinMaxXYWithBoundText=function(g,O,s){var f=(0,y.Z)(O,4),t=f[0],w=f[1],l=f[2],a=f[3],c=(t+l)/2,m=(w+a)/2,z=R.getBoundTextElementPosition(g,s),j=z.x,k=z.y,x=j+s.width,N=k+s.height,G=(0,I.xj)([t,w],[c,m],g.angle),ie=(0,I.xj)([l,w],[c,m],g.angle),V=(0,I.xj)([j,k],[c,m],-g.angle),ce=(0,I.xj)([x,k],[c,m],-g.angle),te=(0,I.xj)([j,N],[c,m],-g.angle),L=(0,I.xj)([x,N],[c,m],-g.angle);return G[0]<ie[0]&&G[1]>=ie[1]?(t=Math.min(t,te[0]),l=Math.max(l,Math.max(ce[0],L[0])),w=Math.min(w,V[1]),a=Math.max(a,L[1])):G[0]>=ie[0]&&G[1]>ie[1]?(t=Math.min(t,L[0]),l=Math.max(l,Math.max(V[0],ce[0])),w=Math.min(w,te[1]),a=Math.max(a,ce[1])):G[0]>=ie[0]?(t=Math.min(t,ce[0]),l=Math.max(l,te[0]),w=Math.min(w,L[1]),a=Math.max(a,V[1])):G[1]<=ie[1]&&(t=Math.min(t,Math.min(ce[0],V[0])),l=Math.max(l,L[0]),w=Math.min(w,ce[1]),a=Math.max(a,te[1])),[t,w,l,a,c,m]},R.getElementAbsoluteCoords=function(g){var O,s,f,t,w,l=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(g.points.length<2||!he.R.get(g)){var a=g.points.reduce(function(Ce,We){var Te=(0,y.Z)(We,2),we=Te[0],xe=Te[1];return Ce.minY=Math.min(Ce.minY,xe),Ce.minX=Math.min(Ce.minX,we),Ce.maxX=Math.max(Ce.maxX,we),Ce.maxY=Math.max(Ce.maxY,xe),Ce},{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}),c=a.minX,m=a.minY,z=a.maxX,j=a.maxY;s=c+g.x,f=m+g.y,t=z+g.x,w=j+g.y}else{var k=he.R.generateElementShape(g),x=(0,n.CM)(k[0]),N=(0,n.IX)(x),G=(0,y.Z)(N,4),ie=G[0],V=G[1],ce=G[2],te=G[3];s=ie+g.x,f=V+g.y,t=ce+g.x,w=te+g.y}var L=(s+t)/2,re=(f+w)/2;if(O=[s,f,t,w,L,re],!l)return O;var me=(0,le.WJ)(g);return me&&(O=R.getMinMaxXYWithBoundText(g,[s,f,t,w],me)),O};var _=function(g){var O=(0,D.Z)(new Set(g.filter(function(s){return s!==null&&s!==-1})));return(O=O.sort(function(s,f){return s-f})).length?O:null}},583:function(Se,Q,e){e.d(Q,{BE:function(){return H},DR:function(){return Z},ZP:function(){return W}});var D=e(6655),E=e(7169),y=e(457),h=e(5999),S=e(4643),I=e(9827),v=e(2921);function n(u,U){var le=Object.keys(u);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(u);U&&(de=de.filter(function(he){return Object.getOwnPropertyDescriptor(u,he).enumerable})),le.push.apply(le,de)}return le}function M(u){for(var U=1;U<arguments.length;U++){var le=arguments[U]!=null?arguments[U]:{};U%2?n(Object(le),!0).forEach(function(de){(0,E.Z)(u,de,le[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(le)):n(Object(le)).forEach(function(de){Object.defineProperty(u,de,Object.getOwnPropertyDescriptor(le,de))})}return u}var Z=function(u,U){var le,de=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],he=!1,pe=U,oe=pe.points,P=pe.fileId;for(var $ in oe!==void 0&&(U=M(M({},(0,h.k)(oe)),U)),U){var b=U[$];if(b!==void 0){if(u[$]===b&&((0,D.Z)(b)!=="object"||b===null||$==="groupIds"||$==="scale"))continue;if($==="scale"){var R=u[$],_=b;if(R[0]===_[0]&&R[1]===_[1])continue}else if($==="points"){var g=u[$],O=b;if(g.length===O.length){for(var s=!1,f=g.length;--f;){var t=g[f],w=O[f];if(t[0]!==w[0]||t[1]!==w[1]){s=!0;break}}if(!s)continue}}u[$]=b,he=!0}}return he&&(U.height===void 0&&U.width===void 0&&P===void 0&&oe===void 0||v.R.delete(u),u.version++,u.versionNonce=(0,S.LU)(),u.updated=(0,I.C3)(),de&&((le=y.Z.getScene(u))===null||le===void 0||le.informMutation())),u},H=function(u,U){var le=!1;for(var de in U){var he=U[de];if(he!==void 0){if(u[de]===he&&((0,D.Z)(he)!=="object"||he===null))continue;le=!0}}return le?M(M(M({},u),U),{},{updated:(0,I.C3)(),version:u.version+1,versionNonce:(0,S.LU)()}):u},W=function(u,U){return u.version=(U??u.version)+1,u.versionNonce=(0,S.LU)(),u.updated=(0,I.C3)(),u}},5742:function(Se,Q,e){e.d(Q,{JZ:function(){return O},KE:function(){return f},M:function(){return $},M3:function(){return b},N_:function(){return s},OL:function(){return a},Sy:function(){return m},Up:function(){return P},VL:function(){return _},_N:function(){return z},vw:function(){return w},y8:function(){return t}});var D=e(6655),E=e(2577),y=e(7169),h=e(2726),S=e(9827),I=e(4643),v=e(583),n=e(9215),M=e(7651),Z=e(2361),H=e(4949),W=e(4761),u=e(9937),U=["x","y","strokeColor","backgroundColor","fillStyle","strokeWidth","strokeStyle","roughness","opacity","width","height","angle","groupIds","frameId","roundness","boundElements","link","locked"];function le(j,k){var x=typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(!x){if(Array.isArray(j)||(x=function(te,L){if(te){if(typeof te=="string")return de(te,L);var re=Object.prototype.toString.call(te).slice(8,-1);if(re==="Object"&&te.constructor&&(re=te.constructor.name),re==="Map"||re==="Set")return Array.from(te);if(re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re))return de(te,L)}}(j))||k&&j&&typeof j.length=="number"){x&&(j=x);var N=0,G=function(){};return{s:G,n:function(){return N>=j.length?{done:!0}:{done:!1,value:j[N++]}},e:function(te){throw te},f:G}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ie,V=!0,ce=!1;return{s:function(){x=x.call(j)},n:function(){var te=x.next();return V=te.done,te},e:function(te){ce=!0,ie=te},f:function(){try{V||x.return==null||x.return()}finally{if(ce)throw ie}}}}function de(j,k){(k==null||k>j.length)&&(k=j.length);for(var x=0,N=new Array(k);x<k;x++)N[x]=j[x];return N}function he(j,k){var x=Object.keys(j);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(j);k&&(N=N.filter(function(G){return Object.getOwnPropertyDescriptor(j,G).enumerable})),x.push.apply(x,N)}return x}function pe(j){for(var k=1;k<arguments.length;k++){var x=arguments[k]!=null?arguments[k]:{};k%2?he(Object(x),!0).forEach(function(N){(0,y.Z)(j,N,x[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(x)):he(Object(x)).forEach(function(N){Object.defineProperty(j,N,Object.getOwnPropertyDescriptor(x,N))})}return j}var oe=function(j,k){var x,N,G=k.x,ie=k.y,V=k.strokeColor,ce=V===void 0?u.HN.strokeColor:V,te=k.backgroundColor,L=te===void 0?u.HN.backgroundColor:te,re=k.fillStyle,me=re===void 0?u.HN.fillStyle:re,Ce=k.strokeWidth,We=Ce===void 0?u.HN.strokeWidth:Ce,Te=k.strokeStyle,we=Te===void 0?u.HN.strokeStyle:Te,xe=k.roughness,_e=xe===void 0?u.HN.roughness:xe,Oe=k.opacity,J=Oe===void 0?u.HN.opacity:Oe,ke=k.width,q=ke===void 0?0:ke,o=k.height,i=o===void 0?0:o,p=k.angle,B=p===void 0?0:p,A=k.groupIds,X=A===void 0?[]:A,Y=k.frameId,ee=Y===void 0?null:Y,ge=k.roundness,be=ge===void 0?null:ge,Re=k.boundElements,Ze=Re===void 0?null:Re,Be=k.link,Ie=Be===void 0?null:Be,Ke=k.locked,Ye=Ke===void 0?u.HN.locked:Ke,tt=(0,h.Z)(k,U);return{id:tt.id||(0,I.kb)(),type:j,x:G,y:ie,width:q,height:i,angle:B,strokeColor:ce,backgroundColor:L,fillStyle:me,strokeWidth:We,strokeStyle:we,roughness:_e,opacity:J,groupIds:X,frameId:ee,roundness:be,seed:(x=tt.seed)!==null&&x!==void 0?x:(0,I.LU)(),version:tt.version||1,versionNonce:(N=tt.versionNonce)!==null&&N!==void 0?N:0,isDeleted:!1,boundElements:Ze,updated:(0,S.C3)(),link:Ie,locked:Ye}},P=function(j){return oe(j.type,j)},$=function(j){return pe(pe({},oe("embeddable",j)),{},{validated:j.validated})},b=function(j){return(0,v.BE)(pe(pe({},oe("frame",j)),{},{type:"frame",name:j?.name||null}),{})},R=function(j,k){return{x:j.textAlign==="center"?k.width/2:j.textAlign==="right"?k.width:0,y:j.verticalAlign==="middle"?k.height/2:0}},_=function(j){var k=j.fontFamily||u.rk,x=j.fontSize||u.n5,N=j.lineHeight||(0,W.PT)(k),G=(0,W.bG)(j.text),ie=(0,W.X1)(G,(0,S.mO)({fontFamily:k,fontSize:x}),N),V=j.textAlign||u.Hg,ce=j.verticalAlign||u.hs,te=R({textAlign:V,verticalAlign:ce},ie);return(0,v.BE)(pe(pe({},oe("text",j)),{},{text:G,fontSize:x,fontFamily:k,textAlign:V,verticalAlign:ce,x:j.x-te.x,y:j.y-te.y,width:ie.width,height:ie.height,baseline:ie.baseline,containerId:j.containerId||null,originalText:G,lineHeight:N}),{})},g=function(j,k){var x,N,G=(0,W.X1)(k,(0,S.mO)(j),j.lineHeight),ie=G.width,V=G.height,ce=G.baseline,te=j.textAlign,L=j.verticalAlign;if(te!=="center"||L!==u.oX.MIDDLE||j.containerId){var re=(0,M.qf)(j),me=(0,E.Z)(re,4),Ce=me[0],We=me[1],Te=me[2],we=me[3],xe=(0,H.wC)(j,ie,V,!1),_e=(0,E.Z)(xe,4),Oe=(Ce-_e[0])/2,J=(We-_e[1])/2,ke=(Te-_e[2])/2,q=(we-_e[3])/2,o=(0,Z.yq)({s:!0,e:te==="center"||te==="left",w:te==="center"||te==="right"},j.x,j.y,j.angle,Oe,J,ke,q),i=(0,E.Z)(o,2);x=i[0],N=i[1]}else{var p=(0,W.X1)(j.text,(0,S.mO)(j),j.lineHeight),B=R(j,{width:ie-p.width,height:V-p.height});x=j.x-B.x,N=j.y-B.y}return{width:ie,height:V,baseline:ce,x:Number.isFinite(x)?x:j.x,y:Number.isFinite(N)?N:j.y}},O=function(j){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j.text;if(!j.isDeleted){var x=(0,W.tl)(j);x&&(k=(0,W.lD)(k,(0,S.mO)(j),(0,W.iZ)(x)));var N=g(j,k);return pe({text:k},N)}},s=function(j,k){k.text;var x=k.isDeleted,N=k.originalText;return(0,v.BE)(j,pe({originalText:N,isDeleted:x??j.isDeleted},O(j,N)))},f=function(j){return pe(pe({},oe(j.type,j)),{},{points:j.points||[],pressures:[],simulatePressure:j.simulatePressure,lastCommittedPoint:null})},t=function(j){return pe(pe({},oe(j.type,j)),{},{points:j.points||[],lastCommittedPoint:null,startBinding:null,endBinding:null,startArrowhead:j.startArrowhead||null,endArrowhead:j.endArrowhead||null})},w=function(j){var k,x,N;return pe(pe({},oe("image",j)),{},{strokeColor:"transparent",status:(k=j.status)!==null&&k!==void 0?k:"pending",fileId:(x=j.fileId)!==null&&x!==void 0?x:null,scale:(N=j.scale)!==null&&N!==void 0?N:[1,1]})},l=function j(k){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(k==null||(0,D.Z)(k)!=="object")return k;var N=Object.prototype.toString.call(k);if(N==="[object Object]"){var G=typeof k.constructor=="function"?Object.create(Object.getPrototypeOf(k)):{};for(var ie in k)if(k.hasOwnProperty(ie)){if(x===0&&(ie==="shape"||ie==="canvas"))continue;G[ie]=j(k[ie],x+1)}return G}if(Array.isArray(k)){for(var V=k.length,ce=new Array(V);V--;)ce[V]=j(k[V],x+1);return ce}return k},a=function(j){return l(j)},c=function(j){if((0,S.h2)()&&j){var k,x,N="".concat(j,"_copy");return(k=window.h)!==null&&k!==void 0&&(x=k.app)!==null&&x!==void 0&&x.getSceneElementsIncludingDeleted().find(function(G){return G.id===N})&&(N+="_copy"),N}return(0,I.kb)()},m=function(j,k,x,N){var G=a(x);return G.id=c(G.id),G.boundElements=null,G.updated=(0,S.C3)(),G.seed=(0,I.LU)(),G.groupIds=(0,n.Qy)(G.groupIds,j,function(ie){return k.has(ie)||k.set(ie,c(ie)),k.get(ie)}),N&&(G=Object.assign(G,N)),G},z=function(j,k){var x,N=[],G=(0,S.xn)(j),ie=new Map,V=function(Te){if(ie.has(Te))return ie.get(Te);if(G.has(Te)){var we=c(Te);return ie.set(Te,we),we}return null},ce=new Map,te=le(j);try{for(te.s();!(x=te.n()).done;){var L=x.value,re=l(L);if(re.id=V(L.id),k!=null&&k.randomizeSeed&&(re.seed=(0,I.LU)(),(0,v.ZP)(re)),re.groupIds&&(re.groupIds=re.groupIds.map(function(Te){return ce.has(Te)||ce.set(Te,c(Te)),ce.get(Te)})),"containerId"in re&&re.containerId){var me=V(re.containerId);re.containerId=me}if("boundElements"in re&&re.boundElements&&(re.boundElements=re.boundElements.reduce(function(Te,we){var xe=V(we.id);return xe&&Te.push(pe(pe({},we),{},{id:xe})),Te},[])),"endBinding"in re&&re.endBinding){var Ce=V(re.endBinding.elementId);re.endBinding=Ce?pe(pe({},re.endBinding),{},{elementId:Ce}):null}if("startBinding"in re&&re.startBinding){var We=V(re.startBinding.elementId);re.startBinding=We?pe(pe({},re.startBinding),{},{elementId:We}):null}re.frameId&&(re.frameId=V(re.frameId)),N.push(re)}}catch(Te){te.e(Te)}finally{te.f()}return N}},4381:function(Se,Q,e){e.d(Q,{LM:function(){return f},T:function(){return l},vY:function(){return b},xx:function(){return w}});var D=e(2726),E=e(1930),y=e(7169),h=e(2577),S=e(9937),I=e(5999),v=e(2361),n=e(4949),M=e(4183),Z=e(583),H=e(9827),W=e(9645),u=e(457),U=e(4761),le=e(7422),de=["boundTextFontSize"];function he(a,c){var m=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!m){if(Array.isArray(a)||(m=function(G,ie){if(G){if(typeof G=="string")return pe(G,ie);var V=Object.prototype.toString.call(G).slice(8,-1);if(V==="Object"&&G.constructor&&(V=G.constructor.name),V==="Map"||V==="Set")return Array.from(G);if(V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return pe(G,ie)}}(a))||c&&a&&typeof a.length=="number"){m&&(a=m);var z=0,j=function(){};return{s:j,n:function(){return z>=a.length?{done:!0}:{done:!1,value:a[z++]}},e:function(G){throw G},f:j}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k,x=!0,N=!1;return{s:function(){m=m.call(a)},n:function(){var G=m.next();return x=G.done,G},e:function(G){N=!0,k=G},f:function(){try{x||m.return==null||m.return()}finally{if(N)throw k}}}}function pe(a,c){(c==null||c>a.length)&&(c=a.length);for(var m=0,z=new Array(c);m<c;m++)z[m]=a[m];return z}function oe(a,c){var m=Object.keys(a);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(a);c&&(z=z.filter(function(j){return Object.getOwnPropertyDescriptor(a,j).enumerable})),m.push.apply(m,z)}return m}function P(a){for(var c=1;c<arguments.length;c++){var m=arguments[c]!=null?arguments[c]:{};c%2?oe(Object(m),!0).forEach(function(z){(0,y.Z)(a,z,m[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(m)):oe(Object(m)).forEach(function(z){Object.defineProperty(a,z,Object.getOwnPropertyDescriptor(m,z))})}return a}var $=function(a){return a<0?a+2*Math.PI:a>=2*Math.PI?a-2*Math.PI:a},b=function(a,c,m,z,j,k,x,N,G,ie,V,ce){if(m.length===1){var te=(0,h.Z)(m,1)[0];return c==="rotation"?(R(te,N,G,j,a.originalElements),(0,W.Ww)(te)):!(0,M.iB)(te)||c!=="nw"&&c!=="ne"&&c!=="sw"&&c!=="se"?c&&s(a.originalElements,x,te,c,k,N,G):(O(te,c,k,N,G),(0,W.Ww)(te)),!0}if(m.length>1){if(c==="rotation")return t(a,m,N,G,j,ie,V),!0;if(c==="nw"||c==="ne"||c==="sw"||c==="se")return f(a,m,c,k,N,G),!0}return!1},R=function(a,c,m,z,j){var k,x=(0,n.qf)(a),N=(0,h.Z)(x,4),G=N[0],ie=N[1],V=(G+N[2])/2,ce=(ie+N[3])/2;(0,M.He)(a)?k=0:(k=5*Math.PI/2+Math.atan2(m-ce,c-V),z&&(k+=S.ay/2,k-=k%S.ay),k=$(k));var te=(0,U.xB)(a);if((0,Z.DR)(a,{angle:k}),te){var L,re=(L=u.Z.getScene(a))===null||L===void 0?void 0:L.getElement(te);re&&!(0,M.Yv)(a)&&(0,Z.DR)(re,{angle:k})}},_=function(a,c,m,z){return(0,M.bt)(a)||(0,M.F9)(a)?{points:(0,I.z)(0,c,(0,I.z)(1,m,a.points,z),z)}:{}},g=function(a,c,m){var z=a.width;if((0,M.Xh)(a)){var j=(0,U.tl)(a);j&&(z=(0,U.iZ)(j))}var k=a.fontSize*(c/z);if(k<S.CP)return null;var x=(0,U.X1)(a.text,(0,H.mO)({fontSize:k,fontFamily:a.fontFamily}),a.lineHeight);return{size:k,baseline:x.baseline+(m-x.height)}},O=function(a,c,m,z,j){var k,x=(0,n.qf)(a),N=(0,h.Z)(x,4),G=N[0],ie=N[1],V=N[2],ce=N[3],te=(G+V)/2,L=(ie+ce)/2,re=(0,v.U1)(z,j,te,L,-a.angle),me=(0,h.Z)(re,2),Ce=me[0],We=me[1];switch(c){case"se":k=Math.max((Ce-G)/(V-G),(We-ie)/(ce-ie));break;case"nw":k=Math.max((V-Ce)/(V-G),(ce-We)/(ce-ie));break;case"ne":k=Math.max((Ce-G)/(V-G),(ce-We)/(ce-ie));break;case"sw":k=Math.max((V-Ce)/(V-G),(We-ie)/(ce-ie))}if(k>0){var Te=a.width*k,we=a.height*k,xe=g(a,Te,we);if(xe===null)return;var _e=(0,n.wC)(a,Te,we,!1),Oe=(0,h.Z)(_e,4),J=(G-Oe[0])/2,ke=(ie-Oe[1])/2,q=(V-Oe[2])/2,o=(ce-Oe[3])/2,i=(0,v.yq)(function(X,Y){return{n:/^(n|ne|nw)$/.test(X)||Y&&/^(s|se|sw)$/.test(X),s:/^(s|se|sw)$/.test(X)||Y&&/^(n|ne|nw)$/.test(X),w:/^(w|nw|sw)$/.test(X)||Y&&/^(e|ne|se)$/.test(X),e:/^(e|ne|se)$/.test(X)||Y&&/^(w|nw|sw)$/.test(X)}}(c,m),a.x,a.y,a.angle,J,ke,q,o),p=(0,h.Z)(i,2),B=p[0],A=p[1];(0,Z.DR)(a,{fontSize:xe.size,width:Te,height:we,baseline:xe.baseline,x:B,y:A})}},s=function(a,c,m,z,j,k,x){var N=a.get(m.id),G=(0,n.wC)(N,N.width,N.height,!0),ie=(0,h.Z)(G,4),V=[ie[0],ie[1]],ce=[ie[2],ie[3]],te=(0,v.H5)(V,ce),L=(0,v.xj)([k,x],te,-N.angle),re=(0,n.wC)(m,m.width,m.height,!0),me=(0,h.Z)(re,4),Ce=me[0],We=me[1],Te=me[2]-Ce,we=me[3]-We,xe=(ce[0]-V[0])/Te,_e=(ce[1]-V[1])/we,Oe={},J=(0,U.WJ)(m);z.includes("e")&&(xe=(L[0]-V[0])/Te),z.includes("s")&&(_e=(L[1]-V[1])/we),z.includes("w")&&(xe=(ce[0]-L[0])/Te),z.includes("n")&&(_e=(ce[1]-L[1])/we);var ke=N.width,q=N.height,o=m.width*xe,i=m.height*_e;if(j&&(o=2*o-ke,i=2*i-q),c){var p=Math.abs(o)/ke,B=Math.abs(i)/q;if(z.length===1&&(i*=p,o*=B),z.length===2){var A=Math.max(p,B);o=ke*A*Math.sign(o),i=q*A*Math.sign(i)}}if(J){var X=a.get(J.id);if(X&&(Oe={fontSize:X.fontSize,baseline:X.baseline}),c){var Y=P(P({},m),{},{width:o,height:i}),ee=g(J,(0,U.iZ)(Y),(0,U.D9)(Y,J));if(ee===null)return;Oe={fontSize:ee.size,baseline:ee.baseline}}else{var ge=(0,U.AT)((0,H.mO)(J),J.lineHeight),be=(0,U.w_)(J.fontSize,J.lineHeight);o=Math.max(o,ge),i=Math.max(i,be)}}var Re=(0,n.wC)(N,o,i,!0),Ze=(0,h.Z)(Re,4),Be=Ze[0],Ie=Ze[1],Ke=Ze[2],Ye=Ze[3],tt=Ke-Be,ue=Ye-Ie,ve=[].concat(V);if(["n","w","nw"].includes(z)&&(ve=[ce[0]-Math.abs(tt),ce[1]-Math.abs(ue)]),z==="ne"){var De=[V[0],ce[1]];ve=[De[0],De[1]-Math.abs(ue)]}if(z==="sw"){var He=[ce[0],V[1]];ve=[He[0]-Math.abs(tt),He[1]]}c&&(["s","n"].includes(z)&&(ve[0]=te[0]-tt/2),["e","w"].includes(z)&&(ve[1]=te[1]-ue/2));var Je=i<0;o<0&&(z.includes("e")&&(ve[0]-=Math.abs(tt)),z.includes("w")&&(ve[0]+=Math.abs(tt))),Je&&(z.includes("s")&&(ve[1]-=Math.abs(ue)),z.includes("n")&&(ve[1]+=Math.abs(ue))),j&&(ve[0]=te[0]-Math.abs(tt)/2,ve[1]=te[1]-Math.abs(ue)/2);var qe=N.angle,st=(0,v.xj)(ve,te,qe),ht=[ve[0]+Math.abs(tt)/2,ve[1]+Math.abs(ue)/2],et=(0,v.xj)(ht,te,qe);ve=(0,v.xj)(st,et,-qe);var wt=(0,E.Z)(ve),Lt=N.x-Be,St=N.y-Ie;wt[0]+=Lt,wt[1]+=St;var yt,Wt,Ft=wt[0],Ve=wt[1];((0,M.bt)(m)||(0,M.F9)(m))&&(yt=(0,I.z)(1,i,N.points,!0),Wt=(0,I.z)(0,o,yt,!0));var bt={width:Math.abs(o),height:Math.abs(i),x:Ft,y:Ve,points:Wt};if("scale"in m&&"scale"in N&&(0,Z.DR)(m,{scale:[(Math.sign(Ke-N.x)||N.scale[0])*N.scale[0],(Math.sign(Ye-N.y)||N.scale[1])*N.scale[1]]}),(0,M.Yv)(m)&&J&&c){var at=bt.width/m.width*J.fontSize;if(at<S.CP)return;Oe.fontSize=at}bt.width!==0&&bt.height!==0&&Number.isFinite(bt.x)&&Number.isFinite(bt.y)&&((0,Z.DR)(m,bt),(0,W.Ww)(m,{newSize:{width:bt.width,height:bt.height}}),J&&Oe!=null&&(0,Z.DR)(J,{fontSize:Oe.fontSize,baseline:Oe.baseline}),(0,U.RB)(m,z,c))},f=function(a,c,m,z,j,k){var x,N=c.reduce(function(at,mt){var ut=a.originalElements.get(mt.id);return ut&&at.push({orig:ut,latest:mt}),at},[]),G=N.reduce(function(at,mt){var ut,Ot=mt.orig;if(!(0,M.bt)(Ot))return at;var Pt=(0,U.xB)(Ot);if(!Pt)return at;var Gt=(ut=a.originalElements.get(Pt))!==null&&ut!==void 0?ut:null;if(!(0,M.Xh)(Gt))return at;var Ct=le._.getBoundTextElementPosition(Ot,Gt);return[].concat((0,E.Z)(at),[P(P({},Gt),Ct)])},[]),ie=(0,n.v2)(N.map(function(at){return at.orig}).concat(G)),V=ie.minX,ce=ie.minY,te=ie.maxX,L=ie.maxY,re=ie.midX,me=ie.midY,Ce=m,We=z?[re,me]:{ne:[V,L],se:[V,ce],sw:[te,ce],nw:[te,L]}[Ce],Te=(0,h.Z)(We,2),we=Te[0],xe=Te[1],_e=Math.max(Math.abs(j-we)/(te-V)||0,Math.abs(k-xe)/(L-ce)||0)*(z?2:1);if(_e!==0){var Oe,J={ne:[j>=we,k<=xe],se:[j>=we,k>=xe],sw:[j<=we,k>=xe],nw:[j<=we,k<=xe]}[Ce].map(function(at){return at?1:-1}),ke=(0,h.Z)(J,2),q=ke[0],o=ke[1],i=q<0,p=o<0,B=[],A=he(N);try{for(A.s();!(Oe=A.n()).done;){var X,Y=Oe.value,ee=Y.orig,ge=Y.latest;if(!(0,M.iB)(ee)||!(0,M.Xh)(ee)){var be=ee.width*_e,Re=ee.height*_e,Ze=$(ee.angle*q*o),Be=(0,M.bt)(ee)||(0,M.F9)(ee),Ie=ee.x-we,Ke=ee.y-xe,Ye=we+q*(Ie*_e+(i&&!Be?be:0)),tt=xe+o*(Ke*_e+(p&&!Be?Re:0)),ue=_(ee,be*q,Re*o,!1),ve=P({x:Ye,y:tt,width:be,height:Re,angle:Ze},ue);if((0,M.pC)(ee)&&N.length===1&&(ve.scale=[ee.scale[0]*q,ee.scale[1]*o]),(0,M.bt)(ee)&&(i||p)&&function(){var at=(0,n.Ut)(ee,ee.points),mt=(0,n.Ut)(P(P({},ee),{},{x:Ye,y:tt}),ue.points),ut=[ee.x,ee.y],Ot=[Ye,tt],Pt=function(Gt){var Ct=Gt==="x"?0:1;return(mt[Ct+2]-Ot[Ct]-(ut[Ct]-at[Ct])*_e+(at[Ct+2]-ut[Ct])*_e-(Ot[Ct]-mt[Ct]))/2};i&&(ve.x-=Pt("x")),p&&(ve.y-=Pt("y"))}(),(0,M.iB)(ee)){var De=g(ee,be,Re);if(!De)return;ve.fontSize=De.size,ve.baseline=De.baseline}var He=a.originalElements.get((X=(0,U.xB)(ee))!==null&&X!==void 0?X:"");if(He){var Je=He.fontSize*_e;if(Je<S.CP)return;ve.boundTextFontSize=Je}B.push({element:ge,update:ve})}}}catch(at){A.e(at)}finally{A.f()}for(var qe=B.map(function(at){return at.element}),st=0,ht=B;st<ht.length;st++){var et=ht[st],wt=et.element,Lt=et.update,St=Lt.boundTextFontSize,yt=(0,D.Z)(Lt,de),Wt=yt.width,Ft=yt.height,Ve=yt.angle;(0,Z.DR)(wt,yt,!1),(0,W.Ww)(wt,{simultaneouslyUpdated:qe,newSize:{width:Wt,height:Ft}});var bt=(0,U.WJ)(wt);bt&&St&&((0,Z.DR)(bt,{fontSize:St,angle:(0,M.bt)(wt)?void 0:Ve},!1),(0,U.RB)(wt,m,!0))}(x=u.Z.getScene(B[0].element))===null||x===void 0||x.informMutation()}},t=function(a,c,m,z,j,k,x){var N,G=5*Math.PI/2+Math.atan2(z-x,m-k);j&&(G+=S.ay/2,G-=G%S.ay),c.filter(function(ie){return ie.type!=="frame"}).forEach(function(ie){var V,ce,te=(0,n.qf)(ie),L=(0,h.Z)(te,4),re=L[0],me=L[1],Ce=(re+L[2])/2,We=(me+L[3])/2,Te=(V=(ce=a.originalElements.get(ie.id))===null||ce===void 0?void 0:ce.angle)!==null&&V!==void 0?V:ie.angle,we=(0,v.U1)(Ce,We,k,x,G+Te-ie.angle),xe=(0,h.Z)(we,2),_e=xe[0],Oe=xe[1];(0,Z.DR)(ie,{x:ie.x+(_e-Ce),y:ie.y+(Oe-We),angle:$(G+Te)},!1),(0,W.Ww)(ie,{simultaneouslyUpdated:c});var J=(0,U.WJ)(ie);J&&!(0,M.Yv)(ie)&&(0,Z.DR)(J,{x:J.x+(_e-Ce),y:J.y+(Oe-We),angle:$(G+Te)},!1)}),(N=u.Z.getScene(c[0]))===null||N===void 0||N.informMutation()},w=function(a,c,m,z){var j=c.length===1?(0,n.qf)(c[0]):(0,n.KP)(c),k=(0,h.Z)(j,4),x=k[0],N=k[1],G=k[2],ie=k[3],V=(x+G)/2,ce=(N+ie)/2,te=c.length===1?c[0].angle:0,L=(0,v.U1)(m,z,V,ce,-te),re=(0,h.Z)(L,2);switch(m=re[0],z=re[1],a){case"n":return(0,v.U1)(m-(x+G)/2,z-N,0,0,te);case"s":return(0,v.U1)(m-(x+G)/2,z-ie,0,0,te);case"w":return(0,v.U1)(m-x,z-(N+ie)/2,0,0,te);case"e":return(0,v.U1)(m-G,z-(N+ie)/2,0,0,te);case"nw":return(0,v.U1)(m-x,z-N,0,0,te);case"ne":return(0,v.U1)(m-G,z-N,0,0,te);case"sw":return(0,v.U1)(m-x,z-ie,0,0,te);case"se":return(0,v.U1)(m-G,z-ie,0,0,te);default:return[0,0]}},l=function(a,c){var m=(0,h.Z)(c.points,2),z=(0,h.Z)(m[1],2),j=z[0],k=z[1];return a==="nw"&&(j<0||k<0)||a==="ne"&&j>=0||a==="sw"&&j<=0||a==="se"&&(j>0||k>0)?"end":"origin"}},7935:function(Se,Q,e){e.d(Q,{PZ:function(){return v},QD:function(){return I},Qp:function(){return Z},o4:function(){return M},uK:function(){return n}});var D=e(2577),E=(e(583),e(4183)),y=e(9937),h=e(4949),S=e(9827),I=function(H){return(0,E.bt)(H)||(0,E.F9)(H)?H.points.length<2:H.width===0&&H.height===0},v=function(H,W,u,U){var le=(0,h.Pi)(H),de=(0,D.Z)(le,4),he=de[0],pe=de[1],oe=de[2],P=de[3],$=(0,S.dE)({clientX:U.offsetLeft,clientY:U.offsetTop},U),b=(0,S.dE)({clientX:U.offsetLeft+W,clientY:U.offsetTop+u},U);return $.x<=oe&&$.y<=P&&b.x>=he&&b.y>=pe},n=function(H,W,u){var U=Math.abs(W),le=Math.abs(u);if(H==="line"||H==="arrow"||H==="freedraw"){var de=Math.round(Math.atan(le/U)/y.ay)*y.ay;de===0?u=0:de===Math.PI/2?W=0:u=U*Math.tan(de)*Math.sign(u)||u}else H!=="selection"&&(u=U*Math.sign(u));return{width:W,height:u}},M=function(H,W,u,U){var le=u-H,de=U-W,he=Math.round(Math.atan(de/le)/y.ay)*y.ay;if(he===0)de=0;else if(he===Math.PI/2)le=0;else{var pe=Math.tan(he),oe=W-pe*H,P=-1/pe,$=U-P*u;le=(-1*$- -1*oe)/(-1*pe- -1*P)-H,de=(oe*P-$*pe)/(-1*pe- -1*P)-W}return{width:le,height:de}},Z=function(H){var W={width:H.width,height:H.height,x:H.x,y:H.y};if(H.width<0){var u=Math.abs(H.width);W.width=u,W.x=H.x-u}if(H.height<0){var U=Math.abs(H.height);W.height=U,W.y=H.y-U}return W}},4761:function(Se,Q,e){e.d(Q,{$2:function(){return s},AT:function(){return j},D9:function(){return we},FE:function(){return _},H_:function(){return ce},NS:function(){return We},OW:function(){return re},P7:function(){return b},PT:function(){return Oe},R8:function(){return O},RB:function(){return R},Rg:function(){return f},TP:function(){return ie},WJ:function(){return N},X1:function(){return g},Zr:function(){return Ce},aV:function(){return L},bG:function(){return oe},cn:function(){return te},cw:function(){return V},eB:function(){return xe},iZ:function(){return Te},lD:function(){return c},mY:function(){return l},oN:function(){return $},tl:function(){return G},w_:function(){return t},xB:function(){return x}});var D,E=e(2577),y=e(1930),h=e(7169),S=e(9827),I=e(583),v=e(9937),n=e(457),M=e(7651),Z=e(4183),H=e(7422),W=e(4105),u=e(3528),U=e(3474);function le(J,ke){var q=Object.keys(J);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(J);ke&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(J,i).enumerable})),q.push.apply(q,o)}return q}function de(J){for(var ke=1;ke<arguments.length;ke++){var q=arguments[ke]!=null?arguments[ke]:{};ke%2?le(Object(q),!0).forEach(function(o){(0,h.Z)(J,o,q[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(J,Object.getOwnPropertyDescriptors(q)):le(Object(q)).forEach(function(o){Object.defineProperty(J,o,Object.getOwnPropertyDescriptor(q,o))})}return J}var he,pe,oe=function(J){return J.replace(/\t/g," ").replace(/\r?\n|\r/g,` +`)},P=function(J){return oe(J).split(` +`)},$=function(J,ke){var q=void 0,o={x:J.x,y:J.y,text:J.text,width:J.width,height:J.height,baseline:J.baseline};o.text=J.text,ke&&(q=Te(ke,J),o.text=c(J.originalText,(0,S.mO)(J),q));var i=g(o.text,(0,S.mO)(J),J.lineHeight);if(o.width=i.width,o.height=i.height,o.baseline=i.baseline,ke){var p=we(ke,J),B=Te(ke);if(!(0,Z.Yv)(ke)&&i.height>p){var A=We(i.height,ke.type);(0,I.DR)(ke,{height:A}),(0,U.h_)(ke.id,A)}if(i.width>B){var X=We(i.width,ke.type);(0,I.DR)(ke,{width:X})}var Y=de(de({},J),o),ee=_(ke,Y),ge=ee.x,be=ee.y;o.x=ge,o.y=be}(0,I.DR)(J,o)},b=function(J,ke,q){var o=(0,S.xn)(J);ke.forEach(function(i){var p=q.get(i.id),B=x(i);if(B){var A=q.get(B);if(A){var X=o.get(p);X&&(0,I.DR)(X,{boundElements:(i.boundElements||[]).filter(function(ee){return ee.id!==A&&ee.id!==B}).concat({type:"text",id:A})});var Y=o.get(A);Y&&(0,M.iB)(Y)&&(0,I.DR)(Y,{containerId:X?p:null})}}})},R=function(J,ke){var q=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=x(J);if(o){(0,U.kT)(J.id);var i=n.Z.getScene(J).getElement(o);if(i&&i.text){if(!J)return;var p=(i=n.Z.getScene(J).getElement(o)).text,B=i.height,A=i.width,X=Te(J),Y=we(J,i),ee=J.height,ge=i.baseline;if(q||ke!=="n"&&ke!=="s"){p&&(p=c(i.originalText,(0,S.mO)(i),X));var be=g(p,(0,S.mO)(i),i.lineHeight);B=be.height,A=be.width,ge=be.baseline}if(B>Y){var Re=(ee=We(B,J.type))-J.height,Ze=(0,Z.Yv)(J)||ke!=="ne"&&ke!=="nw"&&ke!=="n"?J.y:J.y-Re;(0,I.DR)(J,{height:ee,y:Ze})}(0,I.DR)(i,{text:p,width:A,height:B,baseline:ge}),(0,Z.Yv)(J)||(0,I.DR)(i,_(J,i))}}},_=function(J,ke){if((0,Z.Yv)(J))return H._.getBoundTextElementPosition(J,ke);var q,o=V(J),i=we(J,ke),p=Te(J);return q=ke.verticalAlign===v.oX.TOP?o.y:ke.verticalAlign===v.oX.BOTTOM?o.y+(i-ke.height):o.y+(i/2-ke.height/2),{x:ke.textAlign===v.I8.LEFT?o.x:ke.textAlign===v.I8.RIGHT?o.x+(p-ke.width):o.x+(p/2-ke.width/2),y:q}},g=function(J,ke,q){J=J.split(` +`).map(function(p){return p||" "}).join(` +`);var o=parseFloat(ke),i=a(J,o,q);return{width:l(J,ke),height:i,baseline:O(J,ke,q)}},O=function(J,ke,q,o){var i=document.createElement("div");i.style.position="absolute",i.style.whiteSpace="pre",i.style.font=ke,i.style.minHeight="1em",o&&(i.style.overflow="hidden",i.style.wordBreak="break-word",i.style.whiteSpace="pre-wrap"),i.style.lineHeight=String(q),i.innerText=J,document.body.appendChild(i);var p=document.createElement("span");p.style.display="inline-block",p.style.overflow="hidden",p.style.width="1px",p.style.height="1px",i.appendChild(p);var B=p.offsetTop+p.offsetHeight,A=i.offsetHeight;if(v.G6){var X=a(J,parseFloat(ke),q),Y=parseFloat(ke),ee=a(J,Math.round(Y),q);X>A&&(B+=X-ee),A>X&&(B-=ee-X)}return document.body.removeChild(i),B},s=function(J){var ke=P(J.text).length;return J.height/ke/J.fontSize},f=function(J,ke){return J*ke},t=function(J,ke){return f(J,ke)+2*v.gK},w=function(J,ke){he||(he=document.createElement("canvas"));var q=he.getContext("2d");q.font=ke;var o=q.measureText(J).width;return(0,S.h2)()?10*o:o},l=function(J,ke){var q=P(J),o=0;return q.forEach(function(i){o=Math.max(o,w(i,ke))}),o},a=function(J,ke,q){var o=P(J).length;return f(ke,q)*o},c=function(J,ke,q){if(!Number.isFinite(q)||q<0)return J;var o=[],i=J.split(` +`),p=w(" ",ke),B="",A=0,X=function(ee){ee.trim()&&o.push(ee)},Y=function(){B="",A=0};return i.forEach(function(ee){if(l(ee,ke)<=q)o.push(ee);else{var ge=function(Ye){var tt=Ye.split("-");return tt.length>1&&tt.forEach(function(ue,ve){ve!==tt.length-1&&(tt[ve]=ue+="-")}),tt.join(" ").split(" ")}(ee);Y();for(var be=0;be<ge.length;){var Re=w(ge[be],ke);if(Re===q)X(ge[be]),be++;else if(Re>q){for(X(B),Y();ge[be].length>0;){var Ze=String.fromCodePoint(ge[be].codePointAt(0)),Be=m.calculate(Ze,ke);A+=Be,ge[be]=ge[be].slice(Ze.length),A>=q?(X(B),B=Ze,A=Be):B+=Ze}A+p>=q?(X(B),Y()):B.endsWith("-")||(B+=" ",A+=p),be++}else for(;A<q&&be<ge.length;){var Ie=ge[be];if((A=w(B+Ie,ke))>q){X(B),Y();break}be++;var Ke=!Ie.endsWith("-");if(B+=Ie,Ke&&(B+=" "),A+p>=q){Ke?o.push(B.slice(0,-1)):o.push(B),Y();break}}}B.slice(-1)===" "&&(B=B.slice(0,-1),X(B))}}),o.join(` +`)},m=(pe={},{calculate:function(J,ke){var q=J.charCodeAt(0);if(pe[ke]||(pe[ke]=[]),!pe[ke][q]){var o=w(J,ke);pe[ke][q]=o}return pe[ke][q]},getCache:function(J){return pe[J]}}),z="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".toLocaleUpperCase(),j=function(J,ke){var q=k(J);return q===0?g(z.split("").join(` +`),J,ke).width+2*v.gK:q+2*v.gK},k=function(J){var ke=m.getCache(J);if(!ke)return 0;var q=ke.filter(function(o){return o!==void 0});return Math.max.apply(Math,(0,y.Z)(q))},x=function(J){var ke,q,o;return J!=null&&(ke=J.boundElements)!==null&&ke!==void 0&&ke.length&&(J==null||(q=J.boundElements)===null||q===void 0||(o=q.filter(function(i){return i.type==="text"})[0])===null||o===void 0?void 0:o.id)||null},N=function(J){if(!J)return null;var ke,q=x(J);return q&&((ke=n.Z.getScene(J))===null||ke===void 0?void 0:ke.getElement(q))||null},G=function(J){return J&&J.containerId&&((ke=n.Z.getScene(J))===null||ke===void 0?void 0:ke.getElement(J.containerId))||null;var ke},ie=function(J,ke){if(!(0,Z.Yv)(J))return{x:J.x+J.width/2,y:J.y+J.height/2};var q=H._.getPointsGlobalCoordinates(J);if(q.length%2==1){var o=Math.floor(J.points.length/2),i=H._.getPointGlobalCoordinates(J,J.points[o]);return{x:i[0],y:i[1]}}var p=J.points.length/2-1,B=H._.getEditorMidPoints(J,ke)[p];return B||(B=H._.getSegmentMidPoint(J,q[p],q[p+1],p+1)),{x:B[0],y:B[1]}},V=function(J){var ke=v.gK,q=v.gK;return J.type==="ellipse"&&(ke+=J.width/2*(1-Math.sqrt(2)/2),q+=J.height/2*(1-Math.sqrt(2)/2)),J.type==="diamond"&&(ke+=J.width/4,q+=J.height/4),{x:J.x+ke,y:J.y+q}},ce=function(J){var ke=G(J);return!ke||(0,Z.Yv)(ke)?J.angle:ke.angle},te=function(J){return J.some(function(ke){if((0,Z.Xh)(ke)){var q=G(ke);return!(0,M.iB)(ke)||!(0,Z.Yv)(q)}return!1})},L=function(J){return J.some(function(ke){if((0,Z.Xh)(ke)){var q=G(ke);return!(0,M.iB)(ke)||!(0,Z.Yv)(q)}return(0,M.iB)(ke)})},re=function(J,ke,q,o){var i=(0,W.eD)(J,ke);if(i.length===1)return(0,Z.mG)(i[0],!1)?i[0]:null;for(var p=null,B=J.length-1;B>=0;--B)if(!J[B].isDeleted){var A=(0,M.qf)(J[B]),X=(0,E.Z)(A,4),Y=X[0],ee=X[1],ge=X[2],be=X[3];if((0,Z.Yv)(J[B])&&(0,u.Qu)(J[B],ke,null,[q,o])){p=J[B];break}if(Y<q&&q<ge&&ee<o&&o<be){p=J[B];break}}return(0,Z.mG)(p,!1)?p:null},me=new Set(["rectangle","ellipse","diamond","arrow"]),Ce=function(J){return me.has(J.type)},We=function(J,ke){J=Math.ceil(J);var q=2*v.gK;return ke==="ellipse"?Math.round((J+q)/Math.sqrt(2)*2):ke==="arrow"?J+8*q:ke==="diamond"?2*(J+q):J+q},Te=function(J){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N(J),q=J.width;if((0,Z.Yv)(J)){var o,i=((o=ke?.fontSize)!==null&&o!==void 0?o:v.n5)*v.vL;return Math.max(v.bY*q,i)}return J.type==="ellipse"?Math.round(q/2*Math.sqrt(2))-2*v.gK:J.type==="diamond"?Math.round(q/2)-2*v.gK:q-2*v.gK},we=function(J,ke){var q=J.height;return(0,Z.Yv)(J)?q-8*v.gK*2<=0?ke.height:q:J.type==="ellipse"?Math.round(q/2*Math.sqrt(2))-2*v.gK:J.type==="diamond"?Math.round(q/2)-2*v.gK:q-2*v.gK},xe=function(){return l(z,(0,S.mO)({fontSize:v.n5,fontFamily:v.rk}))>0},_e=(D={},(0,h.Z)(D,v.ut.Virgil,1.25),(0,h.Z)(D,v.ut.Helvetica,1.15),(0,h.Z)(D,v.ut.Cascadia,1.2),D),Oe=function(J){return J in _e?_e[J]:_e[v.rk]}},3474:function(Se,Q,e){e.d(Q,{b_:function(){return _},eR:function(){return R},h_:function(){return $},kT:function(){return b}});var D=e(8950),E=e(7169),y=e(2577),h=e(2975),S=e.n(h),I=e(5491),v=e(9827),n=e(457),M=e(4183),Z=e(9937),H=e(583),W=e(4761),u=e(3361),U=e(6006),le=e(7422),de=e(4694);function he(g,O){var s=Object.keys(g);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(g);O&&(f=f.filter(function(t){return Object.getOwnPropertyDescriptor(g,t).enumerable})),s.push.apply(s,f)}return s}function pe(g){for(var O=1;O<arguments.length;O++){var s=arguments[O]!=null?arguments[O]:{};O%2?he(Object(s),!0).forEach(function(f){(0,E.Z)(g,f,s[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(s)):he(Object(s)).forEach(function(f){Object.defineProperty(g,f,Object.getOwnPropertyDescriptor(s,f))})}return g}var oe=function(g,O,s,f,t,w){var l=f.zoom,a=180*s/Math.PI,c=g*(l.value-1)/2,m=O*(l.value-1)/2;return g>t&&l.value!==1&&(c=t*(l.value-1)/2),O>w&&l.value!==1&&(m=w*(l.value-1)/2),"translate(".concat(c,"px, ").concat(m,"px) scale(").concat(l.value,") rotate(").concat(a,"deg)")},P={},$=function(g,O){var s=P[g]||(P[g]={height:O});return s.height=O,s},b=function(g){P[g]&&delete P[g]},R=function(g){var O,s;return(O=(s=P[g])===null||s===void 0?void 0:s.height)!==null&&O!==void 0?O:null},_=function(g){var O=g.id,s=g.onChange,f=g.onSubmit,t=g.getViewportCoords,w=g.element,l=g.canvas,a=g.excalidrawContainer,c=g.app,m=function(){var xe,_e=c.state,Oe=(xe=n.Z.getScene(w))===null||xe===void 0?void 0:xe.getElement(O);if(Oe){var J=Oe.textAlign,ke=Oe.verticalAlign;if(Oe&&(0,M.iB)(Oe)){var q=Oe.x,o=Oe.y,i=(0,W.tl)(Oe),p=Oe.width,B=Oe.height,A=Oe.width,X=Oe.height;if(i&&Oe.containerId){if((0,M.Yv)(i)){var Y=le._.getBoundTextElementPosition(i,Oe);q=Y.x,o=Y.y}var ee,ge=function(Je,qe){if(!qe.style.fontFamily||!qe.style.fontSize)return!1;var st=qe.style.fontFamily.replace(/"/g,"");return(0,v.$g)({fontFamily:Je.fontFamily})!==st||"".concat(Je.fontSize,"px")!==qe.style.fontSize}(Oe,z);if(ge?ee=$(i.id,i.height):(ee=P[i.id])||(ee=$(i.id,i.height)),p=(0,W.iZ)(i),B=(0,W.D9)(i,Oe),!(0,M.Yv)(i)&&X>B){var be=(0,W.NS)(X,i.type);return void(0,H.DR)(i,{height:be})}if(!(0,M.Yv)(i)&&i.height>ee.height&&X<B){var Re=(0,W.NS)(X,i.type);(0,H.DR)(i,{height:Re})}else o=(0,W.FE)(i,Oe).y}var Ze=t(q,o),Be=(0,y.Z)(Ze,2),Ie=Be[0],Ke=Be[1],Ye=z.selectionStart,tt=z.selectionEnd,ue=z.value.length;if(Ye===tt&&tt!==ue){var ve=ue-tt;z.selectionStart=z.value.length-ve,z.selectionEnd=z.value.length-ve}i?A+=.5:(p=(_e.width-8-Ie)/_e.zoom.value,A=Math.min(A,p));var De=Oe.lineHeight;Z.G6&&(De=(0,W.$2)(pe(pe({},Oe),{},{fontSize:Math.round(Oe.fontSize)})));var He=(_e.height-Ke)/_e.zoom.value;Object.assign(z.style,{font:(0,v.mO)(Oe),lineHeight:De,width:"".concat(A,"px"),height:"".concat(X,"px"),left:"".concat(Ie,"px"),top:"".concat(Ke,"px"),transform:oe(A,X,(0,W.H_)(Oe),_e,p,He),textAlign:J,verticalAlign:ke,color:Oe.strokeColor,opacity:Oe.opacity/100,filter:"var(--theme-filter)",maxHeight:"".concat(He,"px")}),z.scrollTop=0,(0,v.h2)()&&(z.style.fontFamily=(0,v.$g)(Oe)),(0,H.DR)(Oe,{x:q,y:o})}}},z=document.createElement("textarea");z.dir="auto",z.tabIndex=0,z.dataset.type="wysiwyg",z.wrap="off",z.classList.add("excalidraw-wysiwyg");var j="pre",k="normal";(0,M.Xh)(w)&&(j="pre-wrap",k="break-word"),Object.assign(z.style,{position:"absolute",display:"inline-block",minHeight:"1em",backfaceVisibility:"hidden",margin:0,padding:0,border:0,outline:0,resize:"none",background:"transparent",overflow:"hidden",zIndex:"var(--zIndex-wysiwyg)",wordBreak:k,whiteSpace:j,overflowWrap:"break-word",boxSizing:"content-box"}),z.value=w.originalText,m(),s&&(z.onpaste=function(){var xe=(0,D.Z)(S().mark(function _e(Oe){var J,ke,q,o,i,p;return S().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,(0,de.mQ)(Oe,!0);case 2:if((J=B.sent).text){B.next=5;break}return B.abrupt("return");case 5:if(ke=(0,W.bG)(J.text)){B.next=8;break}return B.abrupt("return");case 8:q=(0,W.tl)(w),o=(0,v.mO)({fontSize:c.state.currentItemFontSize,fontFamily:c.state.currentItemFontFamily}),q&&(i=(0,W.lD)("".concat(z.value).concat(ke),o,(0,W.iZ)(q)),p=(0,W.mY)(i,o),z.style.width="".concat(p,"px"));case 11:case"end":return B.stop()}},_e)}));return function(_e){return xe.apply(this,arguments)}}(),z.oninput=function(){s((0,W.bG)(z.value))}),z.onkeydown=function(xe){if(!xe.shiftKey&&U.Lo.keyTest(xe))xe.preventDefault(),c.actionManager.executeAction(U.Lo),m();else if(!xe.shiftKey&&U.CZ.keyTest(xe))xe.preventDefault(),c.actionManager.executeAction(U.CZ),m();else if(u.Tu.keyTest(xe))c.actionManager.executeAction(u.Tu);else if(u.Zq.keyTest(xe))c.actionManager.executeAction(u.Zq);else if(xe.key===I.tW.ESCAPE)xe.preventDefault(),te=!0,L();else if(xe.key===I.tW.ENTER&&xe[I.tW.CTRL_OR_CMD]){if(xe.preventDefault(),xe.isComposing||xe.keyCode===229)return;te=!0,L()}else if(xe.key===I.tW.TAB||xe[I.tW.CTRL_OR_CMD]&&(xe.code===I.aU.BRACKET_LEFT||xe.code===I.aU.BRACKET_RIGHT)){if(xe.preventDefault(),xe.isComposing)return;xe.shiftKey||xe.code===I.aU.BRACKET_LEFT?ie():G(),z.dispatchEvent(new Event("input"))}};var x=" ".repeat(4),N=new RegExp("^ {1,".concat(4,"}")),G=function(){var xe=z.selectionStart,_e=z.selectionEnd,Oe=V(),J=z.value;Oe.forEach(function(ke){var q=J.slice(0,ke),o=J.slice(ke);J="".concat(q).concat(x).concat(o)}),z.value=J,z.selectionStart=xe+4,z.selectionEnd=_e+4*Oe.length},ie=function(){var xe=z.selectionStart,_e=z.selectionEnd,Oe=V(),J=[],ke=z.value;Oe.forEach(function(q){var o=ke.slice(q,q+4).match(N);if(o){var i=ke.slice(0,q),p=ke.slice(q+o[0].length);ke="".concat(i).concat(p),J.push(q)}}),z.value=ke,J.length&&(xe>J[J.length-1]?z.selectionStart=Math.max(xe-4,J[J.length-1]):z.selectionStart=xe,z.selectionEnd=Math.max(z.selectionStart,_e-4*J.length))},V=function(){var xe=z.selectionStart,_e=z.selectionEnd,Oe=z.value,J=Oe.slice(0,xe).match(/[^\n]*$/)[0].length;return xe-=J,Oe.slice(xe,_e).split(` +`).reduce(function(ke,q,o,i){return ke.concat(o?ke[o-1]+i[o-1].length+1:xe)},[]).reverse()},ce=function(xe){xe.preventDefault(),xe.stopPropagation()},te=!1,L=function(){var xe;re();var _e=(xe=n.Z.getScene(w))===null||xe===void 0?void 0:xe.getElement(w.id);if(_e){var Oe=z.value,J=(0,W.tl)(_e);if(J){if(Oe=_e.text,z.value.trim()){var ke=(0,W.xB)(J);ke&&ke===w.id?(0,M.Yv)(J)&&(0,H.ZP)(J):(0,H.DR)(J,{boundElements:(J.boundElements||[]).concat({type:"text",id:w.id})})}else{var q;(0,H.DR)(J,{boundElements:(q=J.boundElements)===null||q===void 0?void 0:q.filter(function(o){return!(0,M.iB)(o)})})}(0,W.oN)(_e,J)}f({text:Oe,viaKeyboard:te,originalText:z.value})}},re=function(){Te||(Te=!0,z.onblur=null,z.oninput=null,z.onkeydown=null,we&&we.disconnect(),window.removeEventListener("resize",m),window.removeEventListener("wheel",ce,!0),window.removeEventListener("pointerdown",Ce),window.removeEventListener("pointerup",me),window.removeEventListener("blur",L),window.removeEventListener("beforeunload",L),We(),z.remove())},me=function xe(_e){window.removeEventListener("pointerup",xe);var Oe=_e?.target,J=Oe instanceof HTMLElement&&Oe.classList.contains("active-color");setTimeout(function(){if(z.onblur=L,J){var ke=new MutationObserver(function(q,o){q.find(function(i){var p;return i.removedNodes.length>0&&((p=i.removedNodes[0].dataset)===null||p===void 0?void 0:p.radixPopperContentWrapper)!==void 0})&&(setTimeout(function(){z.focus()}),o.disconnect())});ke.observe(document.querySelector(".excalidraw-container"),{childList:!0})}J||z.focus()})},Ce=function(xe){var _e=xe.target instanceof HTMLElement&&xe.target.classList.contains("active-color");((xe.target instanceof HTMLElement||xe.target instanceof SVGElement)&&xe.target.closest(".".concat(Z.$C.SHAPE_ACTIONS_MENU))&&!(0,v.s)(xe.target)||_e)&&(z.onblur=null,window.addEventListener("pointerup",me),window.addEventListener("blur",L))},We=n.Z.getScene(w).addCallback(function(){var xe;m(),!((xe=document.activeElement)===null||xe===void 0||!xe.closest(".color-picker-content"))||z.focus()}),Te=!1;z.select(),me();var we=null;l&&"ResizeObserver"in window?(we=new window.ResizeObserver(function(){m()})).observe(l):window.addEventListener("resize",m),window.addEventListener("pointerdown",Ce),window.addEventListener("wheel",ce,{passive:!1,capture:!0}),window.addEventListener("beforeunload",L),a?.querySelector(".excalidraw-textEditorContainer").appendChild(z)}},4048:function(Se,Q,e){e.d(Q,{Fn:function(){return M},PC:function(){return le},kK:function(){return U},oY:function(){return de},ox:function(){return n}});var D=e(2577),E=e(4949),y=e(2361),h=e(7651),S=e(4183),I=e(7766),v={mouse:8,pen:16,touch:28},n={e:!0,s:!0,n:!0,w:!0},M={e:!0,s:!0,n:!0,w:!0,rotation:!0},Z={e:!0,s:!0,n:!0,w:!0},H={e:!0,s:!0,n:!0,w:!0,nw:!0,se:!0},W={e:!0,s:!0,n:!0,w:!0},u=function(he,pe,oe,P,$,b,R){var _=(0,y.U1)(he+oe/2,pe+P/2,$,b,R),g=(0,D.Z)(_,2);return[g[0]-oe/2,g[1]-P/2,oe,P]},U=function(he,pe,oe,P){var $=(0,D.Z)(he,6),b=$[0],R=$[1],_=$[2],g=$[3],O=$[4],s=$[5],f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},t=arguments.length>5&&arguments[5]!==void 0?arguments[5]:4,w=v[P],l=w/oe.value,a=w/oe.value,c=w/oe.value,m=w/oe.value,z=_-b,j=g-R,k=t/oe.value,x=(w-2*I.Lu)/(2*oe.value),N={nw:f.nw?void 0:u(b-k-c+x,R-k-m+x,l,a,O,s,pe),ne:f.ne?void 0:u(_+k-x,R-k-m+x,l,a,O,s,pe),sw:f.sw?void 0:u(b-k-c+x,g+k-x,l,a,O,s,pe),se:f.se?void 0:u(_+k-x,g+k-x,l,a,O,s,pe),rotation:f.rotation?void 0:u(b+z/2-l/2,R-k-m+x-16/oe.value,l,a,O,s,pe)},G=5*v.mouse/oe.value;return Math.abs(z)>G&&(f.n||(N.n=u(b+z/2-l/2,R-k-m+x,l,a,O,s,pe)),f.s||(N.s=u(b+z/2-l/2,g+k-x,l,a,O,s,pe))),Math.abs(j)>G&&(f.w||(N.w=u(b-k-c+x,R+j/2-a/2,l,a,O,s,pe)),f.e||(N.e=u(_+k-x,R+j/2-a/2,l,a,O,s,pe))),N},le=function(he,pe){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"mouse";if(he.locked)return{};var P={};if(he.type==="freedraw"||(0,S.bt)(he)){if(he.points.length===2){var $=(0,D.Z)(he.points,2),b=$[1];b[0]===0||b[1]===0?P=W:b[0]>0&&b[1]<0?P=H:b[0]>0&&b[1]>0?P=W:b[0]<0&&b[1]>0?P=H:b[0]<0&&b[1]<0&&(P=W)}}else(0,h.iB)(he)?P=Z:(0,S.He)(he)&&(P={rotation:!0});var R=(0,S.bt)(he)?I.Lu+8:I.Lu;return U((0,E.qf)(he,!0),he.angle,pe,oe,P,R)},de=function(he,pe){if(pe.editingLinearElement)return!1;if(he.length>1)return!0;var oe=he[0];return!(0,S.bt)(oe)||oe.points.length>2}},4183:function(Se,Q,e){e.d(Q,{F9:function(){return n},He:function(){return v},Lx:function(){return U},Mn:function(){return u},QI:function(){return P},UQ:function(){return R},Xh:function(){return oe},Xo:function(){return pe},Yv:function(){return H},bt:function(){return Z},dt:function(){return W},eK:function(){return b},f0:function(){return le},gs:function(){return S},iB:function(){return I},mG:function(){return de},pC:function(){return h},r2:function(){return he},wi:function(){return y}});var D=e(9937),E=e(9827),y=function(_){return!!_&&_.type==="image"&&!!_.fileId},h=function(_){return!!_&&_.type==="image"},S=function(_){return!!_&&_.type==="embeddable"},I=function(_){return _!=null&&_.type==="text"},v=function(_){return _!=null&&_.type==="frame"},n=function(_){return _!=null&&M(_.type)},M=function(_){return _==="freedraw"},Z=function(_){return _!=null&&W(_.type)},H=function(_){return _!=null&&_.type==="arrow"},W=function(_){return _==="arrow"||_==="line"},u=function(_){var g=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return _!=null&&(!_.locked||g===!0)&&U(_.type)},U=function(_){return _==="arrow"},le=function(_){var g=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return!(_==null||_.locked&&g!==!0||_.type!=="rectangle"&&_.type!=="diamond"&&_.type!=="ellipse"&&_.type!=="image"&&_.type!=="embeddable"&&_.type!=="frame"&&(_.type!=="text"||_.containerId))},de=function(_){var g=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return _!=null&&(!_.locked||g===!0)&&(_.type==="rectangle"||_.type==="diamond"||_.type==="ellipse"||H(_))},he=function(_){var g=_?.type;if(!g)return!1;switch(g){case"text":case"diamond":case"rectangle":case"embeddable":case"ellipse":case"arrow":case"freedraw":case"line":case"frame":case"image":case"selection":return!0;default:return(0,E.vE)(g,null),!1}},pe=function(_){var g;return de(_)&&!((g=_.boundElements)===null||g===void 0||!g.some(function(O){return O.type==="text"}))},oe=function(_){return _!==null&&"containerId"in _&&_.containerId!==null&&I(_)},P=function(_){return _==="rectangle"||_==="embeddable"},$=function(_){return _==="line"||_==="arrow"||_==="diamond"},b=function(_,g){return!(_!==D.a6.ADAPTIVE_RADIUS&&_!==D.a6.LEGACY||!P(g.type))||!(_!==D.a6.PROPORTIONAL_RADIUS||!$(g.type))},R=function(_){return $(_.type)?{type:D.a6.PROPORTIONAL_RADIUS}:P(_.type)?{type:D.a6.ADAPTIVE_RADIUS}:null}},3506:function(Se,Q,e){e.d(Q,{_L:function(){return W},lp:function(){return H},jk:function(){return u}});var D=e(5169),E=e(8821),y=e(2248),h=e(7245),S=e(2312),I=e(5901);function v(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function n(U,le,de){return n=v()?Reflect.construct.bind():function(he,pe,oe){var P=[null];P.push.apply(P,pe);var $=new(Function.bind.apply(he,P));return oe&&(0,I.Z)($,oe.prototype),$},n.apply(null,arguments)}function M(U){var le=typeof Map=="function"?new Map:void 0;return M=function(de){if(de===null||(he=de,Function.toString.call(he).indexOf("[native code]")===-1))return de;var he;if(typeof de!="function")throw new TypeError("Super expression must either be null or a function");if(le!==void 0){if(le.has(de))return le.get(de);le.set(de,pe)}function pe(){return n(de,arguments,(0,S.Z)(this).constructor)}return pe.prototype=Object.create(de.prototype,{constructor:{value:pe,enumerable:!1,writable:!0,configurable:!0}}),(0,I.Z)(pe,de)},M(U)}function Z(U){var le=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var de,he=(0,S.Z)(U);if(le){var pe=(0,S.Z)(this).constructor;de=Reflect.construct(he,arguments,pe)}else de=he.apply(this,arguments);return(0,h.Z)(this,de)}}var H=function(U){(0,y.Z)(de,U);var le=Z(de);function de(){var he,pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Couldn't export canvas.",oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"CANVAS_ERROR";return(0,E.Z)(this,de),(he=le.call(this)).name=oe,he.message=pe,he}return(0,D.Z)(de)}(M(Error)),W=function(U){(0,y.Z)(de,U);var le=Z(de);function de(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Request Aborted";return(0,E.Z)(this,de),le.call(this,he,"AbortError")}return(0,D.Z)(de)}(M(DOMException)),u=function(U){(0,y.Z)(de,U);var le=Z(de);function de(){var he,pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Image Scene Data Error",oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"IMAGE_SCENE_DATA_ERROR";return(0,E.Z)(this,de),(he=le.call(this,pe)).name="EncodingError",he.code=oe,he}return(0,D.Z)(de)}(M(Error))},4682:function(Se,Q,e){e.d(Q,{$Z:function(){return f},A_:function(){return t},Dn:function(){return $},Qs:function(){return j},SH:function(){return b},Tq:function(){return c},_h:function(){return g},cH:function(){return z},cO:function(){return P},fj:function(){return s},lz:function(){return w},ni:function(){return O},pr:function(){return a},wO:function(){return _},xr:function(){return le},yZ:function(){return l},zD:function(){return R}});var D=e(1930),E=e(2577),y=e(7651),h=e(2361),S=e(4761),I=e(9827),v=e(583),n=e(4105),M=e(9215),Z=e(457),H=e(4949),W=e(507);function u(k,x){var N=typeof Symbol<"u"&&k[Symbol.iterator]||k["@@iterator"];if(!N){if(Array.isArray(k)||(N=function(L,re){if(L){if(typeof L=="string")return U(L,re);var me=Object.prototype.toString.call(L).slice(8,-1);if(me==="Object"&&L.constructor&&(me=L.constructor.name),me==="Map"||me==="Set")return Array.from(L);if(me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(me))return U(L,re)}}(k))||x&&k&&typeof k.length=="number"){N&&(k=N);var G=0,ie=function(){};return{s:ie,n:function(){return G>=k.length?{done:!0}:{done:!1,value:k[G++]}},e:function(L){throw L},f:ie}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var V,ce=!0,te=!1;return{s:function(){N=N.call(k)},n:function(){var L=N.next();return ce=L.done,L},e:function(L){te=!0,V=L},f:function(){try{ce||N.return==null||N.return()}finally{if(te)throw V}}}}function U(k,x){(x==null||x>k.length)&&(x=k.length);for(var N=0,G=new Array(x);N<x;N++)G[N]=k[N];return G}var le=function(k,x,N){var G,ie=(0,I.xn)(k),V=u(x);try{for(V.s();!(G=V.n()).done;){var ce=G.value;if(ce.frameId){var te=N.get(ce.id),L=N.get(ce.frameId);if(te){var re=ie.get(te);re&&(0,v.DR)(re,{frameId:L??ce.frameId},!1)}}}}catch(me){V.e(me)}finally{V.f()}};function de(k,x){var N=(0,H.GJ)(x),G=(0,H.GJ)(k);return N.some(function(ie){return G.some(function(V){return(0,W.y8)(ie,V)})})}var he=function(k,x){return m((0,n.Yp)(k,x,!1)).filter(function(N){return N.type!=="frame"&&!N.frameId||N.frameId===x.id})},pe=function(k,x,N){return(0,n.Yp)(k,x).some(function(G){return G.id===N.id})},oe=function(k,x){var N=(0,y.qf)(x),G=(0,E.Z)(N,4),ie=G[0],V=G[1],ce=G[2],te=G[3],L=(0,y.KP)(k),re=(0,E.Z)(L,4),me=re[0],Ce=re[1],We=re[2],Te=re[3];return ie<=me&&V<=Ce&&ce>=We&&te>=Te},P=function(k,x){return oe([k],x)||de(k,x)||pe([x],k,x)},$=function(k,x){var N=(0,y.qf)(x),G=(0,E.Z)(N,4),ie=G[0],V=G[1],ce=G[2],te=G[3];return(0,h.Ni)([ie,V],[k.x,k.y],[ce,te])},b=function(k){var x,N=new Map,G=u(k);try{for(G.s();!(x=G.n()).done;){var ie=x.value,V=(0,y.He)(ie)?ie.id:ie.frameId;V&&!N.has(V)&&N.set(V,R(k,V))}}catch(ce){G.e(ce)}finally{G.f()}return N},R=function(k,x){return k.filter(function(N){return N.frameId===x})},_=function(k){return k.filter(function(x){return(0,y.He)(x)})},g=function(k){var x=(0,I.xn)(_(k));return k.filter(function(N){return x.has(N.id)||!N.frameId||!x.has(N.frameId)})},O=function(k,x,N){var G,ie=R(k,x.id),V=new Set(ie),ce=new Set([].concat((0,D.Z)(he(k,x)),(0,D.Z)(ie.filter(function(Ke){return pe(k,Ke,x)})))),te=ie.filter(function(Ke){return!ce.has(Ke)}),L=new Set(Array.from(ce).flatMap(function(Ke){return Ke.groupIds})),re=u(te);try{for(re.s();!(G=re.n()).done;){var me=G.value;if(de(me,x)){if(me.groupIds.length>0){var Ce,We=u(me.groupIds);try{for(We.s();!(Ce=We.n()).done;){var Te=Ce.value;L.add(Te)}}catch(Ke){We.e(Ke)}finally{We.f()}}}else me.groupIds.length===0&&V.delete(me)}}catch(Ke){re.e(Ke)}finally{re.f()}var we,xe=u(te);try{for(xe.s();!(we=xe.n()).done;){var _e=we.value;if(_e.groupIds.length>0){var Oe,J=!0,ke=u(_e.groupIds);try{for(ke.s();!(Oe=ke.n()).done;){var q=Oe.value;L.has(q)&&(J=!1)}}catch(Ke){ke.e(Ke)}finally{ke.f()}J&&V.delete(_e)}}}catch(Ke){xe.e(Ke)}finally{xe.f()}var o,i=Array.from(ce).filter(function(Ke){return Ke.groupIds.length===0}),p=u(i);try{for(p.s();!(o=p.n()).done;){var B=o.value;V.add(B)}}catch(Ke){p.e(Ke)}finally{p.f()}for(var A=Array.from(ce).filter(function(Ke){return Ke.groupIds.length>0}),X=(0,M.yR)(A,N),Y=0,ee=Object.entries(X);Y<ee.length;Y++){var ge=(0,E.Z)(ee[Y],2),be=ge[0];if(ge[1]){var Re=(0,M.Fb)(k,be);if(oe(Re,x)){var Ze,Be=u(Re);try{for(Be.s();!(Ze=Be.n()).done;){var Ie=Ze.value;V.add(Ie)}}catch(Ke){Be.e(Ke)}finally{Be.f()}}}}return(0,D.Z)(V).filter(function(Ke){return!((0,y.iB)(Ke)&&Ke.containerId)})},s=function(k,x){return m(k,he(k,x))},f=function(k,x){var N;return k.frameId?x?x.get(k.frameId)||null:((N=Z.Z.getScene(k))===null||N===void 0?void 0:N.getElement(k.frameId))||null:null},t=function(k,x,N){var G,ie=k.reduce(function(we,xe,_e){return xe.frameId===N.id&&we.currTargetFrameChildrenMap.set(xe.id,!0),we},{currTargetFrameChildrenMap:new Map}),V=ie.currTargetFrameChildrenMap,ce=new Set(x.map(function(we){return we.id})),te=[],L=u(m(k,x));try{for(L.s();!(G=L.n()).done;){var re=G.value;V.has(re.id)||te.push(re);var me=(0,S.WJ)(re);!me||ce.has(me.id)||V.has(me.id)||te.push(me)}}catch(we){L.e(we)}finally{L.f()}for(var Ce=0,We=te;Ce<We.length;Ce++){var Te=We[Ce];(0,v.DR)(Te,{frameId:N.id},!1)}return k.slice()},w=function(k,x,N){var G,ie=new Map,V=new Map,ce=u(x);try{for(ce.s();!(G=ce.n()).done;){var te=G.value;if(te.frameId){ie.set(te.id,te);var L=V.get(te.frameId)||[];L.push(te);var re=(0,S.WJ)(te);re&&(ie.set(re.id,re),L.push(re)),V.set(te.frameId,L)}}}catch(Te){ce.e(Te)}finally{ce.f()}var me,Ce=u(ie);try{for(Ce.s();!(me=Ce.n()).done;){var We=(0,E.Z)(me.value,2)[1];(0,v.DR)(We,{frameId:null},!1)}}catch(Te){Ce.e(Te)}finally{Ce.f()}return k.slice()},l=function(k,x,N){var G=R(k,x.id);return w(k,G)},a=function(k,x,N,G){return t(l(k,N),x,N)},c=function(k,x,N){var G=N.scene.getSelectedElements({selectedElementIds:x.selectedElementIds,elements:k}),ie=new Set(G);if(x.editingGroupId){var V,ce=u(G);try{for(ce.s();!(V=ce.n()).done;){var te=V.value;te.groupIds.length===0?ie.add(te):te.groupIds.flatMap(function(re){return(0,M.Fb)(k,re)}).forEach(function(re){return ie.add(re)})}}catch(re){ce.e(re)}finally{ce.f()}}var L=new Set;return ie.forEach(function(re){!re.frameId||(0,y.He)(re)||j(re,k,x)||L.add(re)}),L.size>0?w(k,(0,D.Z)(L)):k},m=function(k,x){var N,G=new Set,ie=u(x||k);try{for(ie.s();!(N=ie.n()).done;){var V=N.value,ce=V.groupIds[V.groupIds.length-1];ce&&G.add(ce)}}catch(Ce){ie.e(Ce)}finally{ie.f()}var te,L=new Set,re=u(G);try{for(re.s();!(te=re.n()).done;){var me=te.value;(0,M.Fb)(k,me).some(function(Ce){return(0,y.He)(Ce)})&&L.add(me)}}catch(Ce){re.e(Ce)}finally{re.f()}return(x||k).filter(function(Ce){return!L.has(Ce.groupIds[Ce.groupIds.length-1])})},z=function(k,x){var N=(0,y.iB)(k)&&(0,S.tl)(k)||k;return x.selectedElementIds[N.id]&&x.selectedElementsAreBeingDragged?x.frameToHighlight:f(N)},j=function(k,x,N){var G=z(k,N),ie=(0,y.iB)(k)&&(0,S.tl)(k)||k;if(G){if(!N.selectedElementIds[k.id]||!N.selectedElementsAreBeingDragged)return!0;if(ie.groupIds.length===0)return P(ie,G);var V=new Set(ie.groupIds.flatMap(function(Te){return(0,M.Fb)(x,Te)}));if(N.editingGroupId&&N.selectedElementsAreBeingDragged){var ce=new Set((0,n.eD)(x,N));if(N.frameToHighlight!==null)return!0;ce.forEach(function(Te){V.delete(Te)})}var te,L=u(V);try{for(L.s();!(te=L.n()).done;){var re=te.value;if((0,y.He)(re))return!1}}catch(Te){L.e(Te)}finally{L.f()}var me,Ce=u(V);try{for(Ce.s();!(me=Ce.n()).done;){var We=me.value;if(P(We,G))return!0}}catch(Te){Ce.e(Te)}finally{Ce.f()}}return!1}},9215:function(Se,Q,e){e.d(Q,{AI:function(){return _},F$:function(){return H},Fb:function(){return oe},Nd:function(){return pe},Qy:function(){return $},S_:function(){return b},YS:function(){return P},bO:function(){return W},h6:function(){return R},iE:function(){return he},iJ:function(){return le},yO:function(){return U},yR:function(){return de},zq:function(){return u}});var D=e(1930),E=e(2577),y=e(7169),h=e(4105),S=e(4761),I=e(6264);function v(g,O){var s=typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(!s){if(Array.isArray(g)||(s=function(c,m){if(c){if(typeof c=="string")return n(c,m);var z=Object.prototype.toString.call(c).slice(8,-1);if(z==="Object"&&c.constructor&&(z=c.constructor.name),z==="Map"||z==="Set")return Array.from(c);if(z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return n(c,m)}}(g))||O&&g&&typeof g.length=="number"){s&&(g=s);var f=0,t=function(){};return{s:t,n:function(){return f>=g.length?{done:!0}:{done:!1,value:g[f++]}},e:function(c){throw c},f:t}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w,l=!0,a=!1;return{s:function(){s=s.call(g)},n:function(){var c=s.next();return l=c.done,c},e:function(c){a=!0,w=c},f:function(){try{l||s.return==null||s.return()}finally{if(a)throw w}}}}function n(g,O){(O==null||O>g.length)&&(O=g.length);for(var s=0,f=new Array(O);s<O;s++)f[s]=g[s];return f}function M(g,O){var s=Object.keys(g);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(g);O&&(f=f.filter(function(t){return Object.getOwnPropertyDescriptor(g,t).enumerable})),s.push.apply(s,f)}return s}function Z(g){for(var O=1;O<arguments.length;O++){var s=arguments[O]!=null?arguments[O]:{};O%2?M(Object(s),!0).forEach(function(f){(0,y.Z)(g,f,s[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(s)):M(Object(s)).forEach(function(f){Object.defineProperty(g,f,Object.getOwnPropertyDescriptor(s,f))})}return g}var H=function(g,O,s){var f=s.reduce(function(t,w){return w.groupIds.includes(g)&&(t[w.id]=!0),t},{});return Object.keys(f).length<2?O.selectedGroupIds[g]||O.editingGroupId===g?{selectedElementIds:O.selectedElementIds,selectedGroupIds:Z(Z({},O.selectedGroupIds),{},(0,y.Z)({},g,!1)),editingGroupId:null}:O:{editingGroupId:O.editingGroupId,selectedGroupIds:Z(Z({},O.selectedGroupIds),{},(0,y.Z)({},g,!0)),selectedElementIds:Z(Z({},O.selectedElementIds),f)}},W=function(){var g=null,O=null,s=null,f=function(t,w,l,a){var c=a?a.scene.getSelectedElements({selectedElementIds:t.selectedElementIds,elements:w}):(0,h.eD)(w,t);return c.length?function(m,z,j,k){var x;if(s!==void 0&&z===O&&m===g&&j.editingGroupId===((x=s)===null||x===void 0?void 0:x.editingGroupId))return s;var N,G={},ie=v(m);try{for(ie.s();!(N=ie.n()).done;){var V=N.value.groupIds;if(j.editingGroupId){var ce=V.indexOf(j.editingGroupId);ce>-1&&(V=V.slice(0,ce))}if(V.length>0){var te=V[V.length-1];G[te]=!0}}}catch(Te){ie.e(Te)}finally{ie.f()}for(var L={},re=z.reduce(function(Te,we){var xe=we.groupIds.find(function(_e){return G[_e]});return xe&&(Te[we.id]=!0,Array.isArray(L[xe])?L[xe].push(we.id):L[xe]=[we.id]),Te},{}),me=0,Ce=Object.keys(L);me<Ce.length;me++){var We=Ce[me];L[We].length<2&&G[We]&&(G[We]=!1)}return O=z,g=m,s={editingGroupId:j.editingGroupId,selectedGroupIds:G,selectedElementIds:(0,I.Oh)(Z(Z({},j.selectedElementIds),re),k)}}(c,w,t,l):{selectedGroupIds:{},editingGroupId:null,selectedElementIds:(0,I.Oh)(t.selectedElementIds,l)}};return f.clearCache=function(){O=null,g=null,s=null},f}(),u=function(g,O){return U(g,O)!=null},U=function(g,O){return O.groupIds.filter(function(s){return s!==g.editingGroupId}).find(function(s){return g.selectedGroupIds[s]})},le=function(g){return Object.entries(g.selectedGroupIds).filter(function(O){var s=(0,E.Z)(O,2);return s[0],s[1]}).map(function(O){var s=(0,E.Z)(O,2),f=s[0];return s[1],f})},de=function(g,O){var s,f=Z(Z({},O),{},{selectedGroupIds:{}}),t=v(g);try{for(t.s();!(s=t.n()).done;){var w=s.value.groupIds;if(O.editingGroupId){var l=w.indexOf(O.editingGroupId);l>-1&&(w=w.slice(0,l))}if(w.length>0){var a=w[w.length-1];f=Z(Z({},f),H(a,f,g))}}}catch(c){t.e(c)}finally{t.f()}return f.selectedGroupIds},he=function(g,O){return Z(Z({},g),{},{editingGroupId:O.groupIds.length?O.groupIds[0]:null,selectedGroupIds:{},selectedElementIds:(0,y.Z)({},O.id,!0)})},pe=function(g,O){return g.groupIds.includes(O)},oe=function(g,O){return g.filter(function(s){return pe(s,O)})},P=function(g,O){return g.groupIds.find(function(s){return O[s]})},$=function(g,O,s){for(var f=(0,D.Z)(g),t=O?g.indexOf(O):-1,w=t>-1?t:g.length,l=0;l<w;l++)f[l]=s(f[l]);return f},b=function(g,O,s){var f=(0,D.Z)(g),t=s?f.indexOf(s):-1,w=t>-1?t:f.length;return f.splice(w,0,O),f},R=function(g,O){return g.filter(function(s){return!O[s]})},_=function(g){var O=new Map;return g.forEach(function(s){var f=s.groupIds.length===0?s.id:s.groupIds[s.groupIds.length-1],t=O.get(f)||[],w=(0,S.WJ)(s);w&&t.push(w),O.set(f,[].concat((0,D.Z)(t),[s]))}),Array.from(O.values())}},334:function(Se,Q,e){e.d(Q,{F:function(){return I}});var D=e(1930),E=e(2577),y=e(9787),h=e(8242),S=e(100),I=function(v){var n=(0,y.useState)(null),M=(0,E.Z)(n,2),Z=M[0],H=M[1],W=(0,h.Fy)(),u=(0,S.I)().theme,U=(0,h.J0)().container;return(0,y.useLayoutEffect)(function(){var le,de;Z&&(Z.className="",(le=Z.classList).add.apply(le,["excalidraw"].concat((0,D.Z)((v==null||(de=v.className)===null||de===void 0?void 0:de.split(/\s+/))||[]))),Z.classList.toggle("excalidraw--mobile",W.editor.isMobile),Z.classList.toggle("theme--dark",u==="dark"))},[Z,u,W.editor.isMobile,v?.className]),(0,y.useLayoutEffect)(function(){var le=v!=null&&v.parentSelector?U?.querySelector(v.parentSelector):document.body;if(le){var de=document.createElement("div");return le.appendChild(de),H(de),function(){le.removeChild(de)}}},[U,v?.parentSelector]),Z}},5832:function(Se,Q,e){e.d(Q,{YX:function(){return Z},mF:function(){return W},yT:function(){return u}});var D=e(2577),E=e(8950),y=e(2975),h=e.n(y),S=e(3607),I=e(9787),v=e(9240),n=e(453),M=e(507),Z=(0,S.cn)(new Map),H=function(){var U=(0,E.Z)(h().mark(function le(de){return h().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,(0,M.$D)({elements:de,appState:{exportBackground:!1,viewBackgroundColor:v.HO.white},files:null,renderEmbeddables:!1});case 2:return he.abrupt("return",he.sent);case 3:case"end":return he.stop()}},le)}));return function(le){return U.apply(this,arguments)}}(),W=function(U,le,de){var he=(0,I.useState)(),pe=(0,D.Z)(he,2),oe=pe[0],P=pe[1];return(0,I.useEffect)(function(){if(le)if(U){var $=de.get(U);$?P($):(0,E.Z)(h().mark(function b(){var R,_;return h().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,H(le);case 2:_=g.sent,(R=_.querySelector(".style-fonts"))===null||R===void 0||R.remove(),_&&(de.set(U,_),P(_));case 5:case"end":return g.stop()}},b)}))()}else(0,E.Z)(h().mark(function b(){var R;return h().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,H(le);case 2:R=_.sent,P(R);case 4:case"end":return _.stop()}},b)}))()},[U,le,de,P]),oe},u=function(){var U=(0,S.KO)(Z,n.yE),le=(0,D.Z)(U,1)[0];return{clearLibraryCache:function(){return le.clear()},deleteItemsFromLibraryCache:function(de){de.forEach(function(he){return le.delete(he)})},svgCache:le}}},1901:function(Se,Q,e){e.d(Q,{O:function(){return y}});var D=e(9787),E=e(9937);function y(h,S,I){(0,D.useEffect)(function(){function v(n){var M=n;if(h.current){var Z=I?.(M,h.current);if(Z!==!0){if(Z===!1)return S(M);!h.current.contains(M.target)&&document.documentElement.contains(M.target)&&(M.target.closest("[data-radix-portal]")||M.target===document.documentElement&&document.body.style.pointerEvents==="none"||M.target.closest("[data-prevent-outside-click]")||S(M))}}}return document.addEventListener(E.Ks.POINTER_DOWN,v),document.addEventListener(E.Ks.TOUCH_START,v),function(){document.removeEventListener(E.Ks.POINTER_DOWN,v),document.removeEventListener(E.Ks.TOUCH_START,v)}},[h,S,I])}},8227:function(Se,Q,e){e.d(Q,{Fp:function(){return M},G3:function(){return le},Mj:function(){return Z},QT:function(){return oe},m0:function(){return U},t:function(){return he}});var D=e(8950),E=e(1930),y=e(2975),h=e.n(y),S=e(1463),I=e(4451),v=e(453),n=e(3607),M={code:"en",label:"English"},Z=[M].concat((0,E.Z)([{code:"ar-SA",label:"العربية",rtl:!0},{code:"bg-BG",label:"Български"},{code:"ca-ES",label:"Català"},{code:"cs-CZ",label:"Česky"},{code:"de-DE",label:"Deutsch"},{code:"el-GR",label:"Ελληνικά"},{code:"es-ES",label:"Español"},{code:"eu-ES",label:"Euskara"},{code:"fa-IR",label:"فارسی",rtl:!0},{code:"fi-FI",label:"Suomi"},{code:"fr-FR",label:"Français"},{code:"gl-ES",label:"Galego"},{code:"he-IL",label:"עברית",rtl:!0},{code:"hi-IN",label:"हिन्दी"},{code:"hu-HU",label:"Magyar"},{code:"id-ID",label:"Bahasa Indonesia"},{code:"it-IT",label:"Italiano"},{code:"ja-JP",label:"日本語"},{code:"kab-KAB",label:"Taqbaylit"},{code:"kk-KZ",label:"Қазақ тілі"},{code:"ko-KR",label:"한국어"},{code:"ku-TR",label:"Kurdî"},{code:"lt-LT",label:"Lietuvių"},{code:"lv-LV",label:"Latviešu"},{code:"my-MM",label:"Burmese"},{code:"nb-NO",label:"Norsk bokmål"},{code:"nl-NL",label:"Nederlands"},{code:"nn-NO",label:"Norsk nynorsk"},{code:"oc-FR",label:"Occitan"},{code:"pa-IN",label:"ਪੰਜਾਬੀ"},{code:"pl-PL",label:"Polski"},{code:"pt-BR",label:"Português Brasileiro"},{code:"pt-PT",label:"Português"},{code:"ro-RO",label:"Română"},{code:"ru-RU",label:"Русский"},{code:"sk-SK",label:"Slovenčina"},{code:"sv-SE",label:"Svenska"},{code:"sl-SI",label:"Slovenščina"},{code:"tr-TR",label:"Türkçe"},{code:"uk-UA",label:"Українська"},{code:"zh-CN",label:"简体中文"},{code:"zh-TW",label:"繁體中文"},{code:"vi-VN",label:"Tiếng Việt"},{code:"mr-IN",label:"मराठी"}].filter(function(P){return I[P.code]>=85}).sort(function(P,$){return P.label>$.label?1:-1}))),H="__test__",W=M,u={},U=function(){var P=(0,D.Z)(h().mark(function $(b){return h().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(W=b,document.documentElement.dir=W.rtl?"rtl":"ltr",document.documentElement.lang=W.code,!b.code.startsWith(H)){R.next=7;break}u={},R.next=17;break;case 7:return R.prev=7,R.next=10,e(940)("./".concat(W.code,".json"));case 10:u=R.sent,R.next=17;break;case 13:R.prev=13,R.t0=R.catch(7),console.error("Failed to load language ".concat(b.code,":"),R.t0.message),u=S;case 17:v.e_.set(pe,b.code);case 18:case"end":return R.stop()}},$,null,[[7,13]])}));return function($){return P.apply(this,arguments)}}(),le=function(){return W},de=function(P,$){for(var b=0;b<$.length;++b){var R=$[b];if(P[R]===void 0)return;P=P[R]}if(typeof P=="string")return P},he=function(P,$,b){if(W.code.startsWith(H)){var R=$?"".concat(P,"(").concat(JSON.stringify($).slice(1,-1),")"):P;return"‪[[".concat(R,"]]‬")}var _=P.split("."),g=de(u,_)||de(S,_)||b;if(g===void 0){var O="Can't find translation for ".concat(P);return console.warn(O),""}if($)for(var s in $)g=g.replace("{{".concat(s,"}}"),String($[s]));return g},pe=(0,n.cn)(M.code),oe=function(){var P=(0,n.Dv)(pe,v.yE);return{t:he,langCode:P}}},453:function(Se,Q,e){e.d(Q,{e_:function(){return y},yE:function(){return E}});var D=e(3607),E=(e(9787),Symbol()),y=(0,D.Vv)()},5491:function(Se,Q,e){e.d(Q,{E0:function(){return I},Ge:function(){return v},OA:function(){return S},Wl:function(){return h},aU:function(){return E},tW:function(){return y}});var D=e(9937),E={EQUAL:"Equal",MINUS:"Minus",NUM_ADD:"NumpadAdd",NUM_SUBTRACT:"NumpadSubtract",NUM_ZERO:"Numpad0",BRACKET_RIGHT:"BracketRight",BRACKET_LEFT:"BracketLeft",ONE:"Digit1",TWO:"Digit2",THREE:"Digit3",NINE:"Digit9",QUOTE:"Quote",ZERO:"Digit0",SLASH:"Slash",C:"KeyC",D:"KeyD",H:"KeyH",V:"KeyV",Z:"KeyZ",R:"KeyR",S:"KeyS"},y={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",BACKSPACE:"Backspace",ALT:"Alt",CTRL_OR_CMD:D.Um?"metaKey":"ctrlKey",DELETE:"Delete",ENTER:"Enter",ESCAPE:"Escape",QUESTION_MARK:"?",SPACE:" ",TAB:"Tab",CHEVRON_LEFT:"<",CHEVRON_RIGHT:">",PERIOD:".",COMMA:",",SUBTRACT:"-",A:"a",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",L:"l",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",V:"v",X:"x",Y:"y",Z:"z",K:"k",W:"w",0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9"},h=function(n){return n===y.ARROW_LEFT||n===y.ARROW_RIGHT||n===y.ARROW_DOWN||n===y.ARROW_UP},S=function(n){return n.altKey},I=function(n){return n.shiftKey},v=function(n){return n.shiftKey}},2361:function(Se,Q,e){e.d(Q,{EK:function(){return R},H5:function(){return M},Jj:function(){return b},LW:function(){return n},N_:function(){return pe},Ni:function(){return W},U1:function(){return S},Xt:function(){return O},c9:function(){return H},eH:function(){return P},ep:function(){return _},g6:function(){return Z},lk:function(){return $},mW:function(){return g},wC:function(){return le},xj:function(){return I},yB:function(){return he},yW:function(){return de},yq:function(){return v}});var D=e(2577),E=e(9937),y=e(4949),h=e(2921),S=function(s,f,t,w,l){return[(s-t)*Math.cos(l)-(f-w)*Math.sin(l)+t,(s-t)*Math.sin(l)+(f-w)*Math.cos(l)+w]},I=function(s,f,t){return S(s[0],s[1],f[0],f[1],t)},v=function(s,f,t,w,l,a,c,m){var z=Math.cos(w),j=Math.sin(w);return s.e&&s.w?f+=l+c:s.e?(f+=l*(1+z),t+=l*j,f+=c*(1-z),t+=c*-j):s.w&&(f+=l*(1-z),t+=l*-j,f+=c*(1+z),t+=c*j),s.n&&s.s?t+=a+m:s.n?(f+=a*j,t+=a*(1-z),f+=m*-j,t+=m*(1+z)):s.s&&(f+=a*-j,t+=a*(1+z),f+=m*j,t+=m*(1-z)),[f,t]},n=function(s,f,t,w){var l=t-s,a=w-f;return Math.hypot(l,a)},M=function(s,f){return[(s[0]+f[0])/2,(s[1]+f[1])/2]},Z=function(s){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(s.length>=3){var t=[s[0],s[s.length-1]],w=t[0],l=t[1],a=n(w[0],w[1],l[0],l[1]);return a<=E.qx/f}return!1},H=function(s,f,t){var w=s.length;if(w<3)return!1;for(var l=[Number.MAX_SAFE_INTEGER,t],a=[f,t],c=0,m=0;m<w;m++){var z=s[m],j=s[(m+1)%w];if(U(z,j,a,l)){if(u(z,a,j)===0)return W(z,a,j);c++}}return c%2==1},W=function(s,f,t){return f[0]<=Math.max(s[0],t[0])&&f[0]>=Math.min(s[0],t[0])&&f[1]<=Math.max(s[1],t[1])&&f[1]>=Math.min(s[1],t[1])},u=function(s,f,t){var w=(f[1]-s[1])*(t[0]-f[0])-(f[0]-s[0])*(t[1]-f[1]);return w===0?0:w>0?1:2},U=function(s,f,t,w){var l=u(s,f,t),a=u(s,f,w),c=u(t,w,s),m=u(t,w,f);return l!==a&&c!==m||!(l!==0||!W(s,t,f))||!(a!==0||!W(s,w,f))||!(c!==0||!W(t,s,w))||!(m!==0||!W(t,f,w))},le=function(s,f,t){return t?[Math.round(s/t)*t,Math.round(f/t)*t]:[s,f]},de=function(s,f){var t,w,l;if(((t=f.roundness)===null||t===void 0?void 0:t.type)===E.a6.PROPORTIONAL_RADIUS||((w=f.roundness)===null||w===void 0?void 0:w.type)===E.a6.LEGACY)return s*E.Rx;if(((l=f.roundness)===null||l===void 0?void 0:l.type)===E.a6.ADAPTIVE_RADIUS){var a,c,m=(a=(c=f.roundness)===null||c===void 0?void 0:c.value)!==null&&a!==void 0?a:E._9;return s<=m/E.Rx?s*E.Rx:m}return 0},he=function(s,f){var t=h.R.generateElementShape(s);if(!t)return null;for(var w=(0,y.CM)(t[0]),l=[0,0],a=0,c=1/0,m=null;a<w.length;){var z=w[a],j=z.op,k=z.data;if(j==="move"&&(l=k),j==="bcurveTo"){var x=l,N=[k[0],k[1]],G=[k[2],k[3]],ie=[k[4],k[5]],V=n(ie[0],ie[1],f[0],f[1]);V<c&&(c=V,m=[x,N,G,ie]),l=ie}a++}return m},pe=function(s,f,t,w,l){var a=function(c,m){return Math.pow(1-c,3)*w[m]+3*c*Math.pow(1-c,2)*t[m]+3*Math.pow(c,2)*(1-c)*f[m]+s[m]*Math.pow(c,3)};return[a(l,0),a(l,1)]},oe=function(s,f){var t=[];t[0]=0;for(var w=function(c,m){var z=he(c,m);if(!z)return[];for(var j=[],k=1;k>0;){var x=pe(z[0],z[1],z[2],z[3],k);j.push([x[0],x[1]]),k-=.05}return j.length&&b(j.at(-1),m)&&j.push([m[0],m[1]]),j}(s,f),l=0,a=0;l<w.length-1;)a+=n(w[l][0],w[l][1],w[l+1][0],w[l+1][1]),t.push(a),l++;return t},P=function(s,f){return oe(s,f).at(-1)},$=function(s,f,t){for(var w=oe(s,f),l=w.length-1,a=t*w.at(-1),c=0,m=l,z=0;c<m;)w[z=Math.floor(c+(m-c)/2)]<a?c=z+1:m=z;return w[z]>a&&z--,w[z]===a?z/l:1-(z+(a-w[z])/(w[z+1]-w[z]))/l},b=function(s,f){return s[0]===f[0]&&s[1]===f[1]},R=function(s){return Math.round(s/Math.PI*1e4)%5e3==0},_=function(s,f){var t=(0,D.Z)(s,2),w=t[0],l=t[1],a=(0,D.Z)(f,2),c=a[0],m=a[1];return w<=c?l>=c:w>=c&&m>=w},g=function(s,f){var t=Math.max(s[0],f[0]),w=Math.min(s[1],f[1]);return t<=w?[t,w]:null},O=function(s,f,t){return s>=f&&s<=t}},4864:function(Se,Q,e){e.d(Q,{zx:function(){return ue.z},Or:function(){return Ve.O},Eb:function(){return Tr},ut:function(){return c.ut},$_:function(){return V},vO:function(){return ht},LO:function(){return c.LO},lb:function(){return ce.Z},YE:function(){return Ft.YE},C6:function(){return c.C6},B4:function(){return tt},ZP:function(){return yt.ZP},wc:function(){return at.w},Fp:function(){return W.Fp},sQ:function(){return ut.sQ},Xs:function(){return ut.Xs},Fl:function(){return Lt.Fl},NL:function(){return Lt.NL},i1:function(){return Lt.i1},$D:function(){return Lt.$D},KP:function(){return mt.KP},N7:function(){return Lt.N7},Lm:function(){return et.Lm},Uo:function(){return et.Uo},Ne:function(){return ut.Ne},QD:function(){return et.QD},bt:function(){return St.bt},Mj:function(){return W.Mj},cT:function(){return Lt.cT},lV:function(){return Lt.lV},ZY:function(){return Lt.ZY},zh:function(){return Lt.zh},DR:function(){return yt.DR},BE:function(){return yt.BE},$u:function(){return bt.$u},Di:function(){return Wt.Di},nu:function(){return wt.nu},lY:function(){return wt.lY},ET:function(){return wt.ET},wJ:function(){return wt.wJ},_i:function(){return de._i},I_:function(){return Lt.I_},NI:function(){return Lt.NI},Fy:function(){return le.Fy},xS:function(){return Wt.xS},QT:function(){return W.QT},dE:function(){return de.dE}});var D=e(6479),E=e.n(D),y=e(9713),h=e.n(y),S=e(9787),I=e.n(S),v=e(8950),n=e(2577),M=e(2975),Z=e.n(M),H=e(7165),W=e(8227),u=e(1020),U=function(ot){var Rt=(0,S.useState)(!0),_t=(0,n.Z)(Rt,2),At=_t[0],br=_t[1];return(0,S.useEffect)(function(){var xr=function(){var Ar=(0,v.Z)(Z().mark(function fr(){return Z().wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return dt.next=2,(0,W.m0)(jr);case 2:br(!1);case 3:case"end":return dt.stop()}},fr)}));return function(){return Ar.apply(this,arguments)}}(),jr=W.Mj.find(function(Ar){return Ar.code===ot.langCode})||W.Fp;xr()},[ot.langCode]),At?(0,u.jsx)(H.z,{theme:ot.theme}):ot.children},le=e(8242),de=e(9827),he=e(3379),pe=e.n(he),oe=e(7795),P=e.n(oe),$=e(569),b=e.n($),R=e(3565),_=e.n(R),g=e(9216),O=e.n(g),s=e(4589),f=e.n(s),t=e(9915),w={};w.styleTagTransform=f(),w.setAttributes=_(),w.insert=b().bind(null,"head"),w.domAPI=P(),w.insertStyleElement=O(),pe()(t.Z,w),t.Z&&t.Z.locals&&t.Z.locals;var l=e(9310),a={};a.styleTagTransform=f(),a.setAttributes=_(),a.insert=b().bind(null,"head"),a.domAPI=P(),a.insertStyleElement=O(),pe()(l.Z,a),l.Z&&l.Z.locals&&l.Z.locals;var c=e(9937),m=e(3607),z=e(453),j=e(45),k=e(4572),x=e(8793),N={};N.styleTagTransform=f(),N.setAttributes=_(),N.insert=b().bind(null,"head"),N.domAPI=P(),N.insertStyleElement=O(),pe()(x.Z,N),x.Z&&x.Z.locals&&x.Z.locals;var G=e(100),ie=function(ot){var Rt=ot.children,_t=(0,k.R6)().FooterCenterTunnel,At=(0,G.I)();return(0,u.jsx)(_t.In,{children:(0,u.jsx)("div",{className:(0,j.Z)("footer-center zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-bottom":At.zenModeEnabled}),children:Rt})})},V=ie;ie.displayName="FooterCenter";var ce=e(7021),te=e(7169),L=e(2726),re=e(5463),me=e(2529),Ce=e(8935),We=e(5744),Te={};Te.styleTagTransform=f(),Te.setAttributes=_(),Te.insert=b().bind(null,"head"),Te.domAPI=P(),Te.insertStyleElement=O(),pe()(We.Z,Te),We.Z&&We.Z.locals&&We.Z.locals;var we=function(){return(0,u.jsx)("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ExcalidrawLogo-icon",children:(0,u.jsx)("path",{d:"M39.9 32.889a.326.326 0 0 0-.279-.056c-2.094-3.083-4.774-6-7.343-8.833l-.419-.472a.212.212 0 0 0-.056-.139.586.586 0 0 0-.167-.111l-.084-.083-.056-.056c-.084-.167-.28-.278-.475-.167-.782.39-1.507.973-2.206 1.528-.92.722-1.842 1.445-2.708 2.25a8.405 8.405 0 0 0-.977 1.028c-.14.194-.028.361.14.444-.615.611-1.23 1.223-1.843 1.861a.315.315 0 0 0-.084.223c0 .083.056.166.111.194l1.09.833v.028c1.535 1.528 4.244 3.611 7.12 5.861.418.334.865.667 1.284 1 .195.223.39.473.558.695.084.11.28.139.391.055.056.056.14.111.196.167a.398.398 0 0 0 .167.056.255.255 0 0 0 .224-.111.394.394 0 0 0 .055-.167c.029 0 .028.028.056.028a.318.318 0 0 0 .224-.084l5.082-5.528a.309.309 0 0 0 0-.444Zm-14.63-1.917a.485.485 0 0 0 .111.14c.586.5 1.2 1 1.843 1.555l-2.569-1.945-.251-.166c-.056-.028-.112-.084-.168-.111l-.195-.167.056-.056.055-.055.112-.111c.866-.861 2.346-2.306 3.1-3.028-.81.805-2.43 3.167-2.095 3.944Zm8.767 6.89-2.122-1.612a44.713 44.713 0 0 0-2.625-2.5c1.145.861 2.122 1.611 2.262 1.75 1.117.972 1.06.806 1.815 1.445l.921.666a1.06 1.06 0 0 1-.251.25Zm.558.416-.056-.028c.084-.055.168-.111.252-.194l-.196.222ZM1.089 5.75c.055.361.14.722.195 1.056.335 1.833.67 3.5 1.284 4.75l.252.944c.084.361.223.806.363.917 1.424 1.25 3.602 3.11 5.947 4.889a.295.295 0 0 0 .363 0s0 .027.028.027a.254.254 0 0 0 .196.084.318.318 0 0 0 .223-.084c2.988-3.305 5.221-6.027 6.813-8.305.112-.111.14-.278.14-.417.111-.111.195-.25.307-.333.111-.111.111-.306 0-.39l-.028-.027c0-.055-.028-.139-.084-.167-.698-.666-1.2-1.138-1.731-1.638-.922-.862-1.871-1.75-3.881-3.75l-.028-.028c-.028-.028-.056-.056-.112-.056-.558-.194-1.703-.389-3.127-.639C6.087 2.223 3.21 1.723.614.944c0 0-.168 0-.196.028l-.083.084c-.028.027-.056.055-.224.11h.056-.056c.028.167.028.278.084.473 0 .055.112.5.112.555l.782 3.556Zm15.496 3.278-.335-.334c.084.112.196.195.335.334Zm-3.546 4.666-.056.056c0-.028.028-.056.056-.056Zm-2.038-10c.168.167.866.834 1.033.973-.726-.334-2.54-1.167-3.379-1.445.838.167 1.983.334 2.346.472ZM1.424 2.306c.419.722.754 3.222 1.089 5.666-.196-.778-.335-1.555-.503-2.278-.251-1.277-.503-2.416-.838-3.416.056 0 .14 0 .252.028Zm-.168-.584c-.112 0-.223-.028-.307-.028 0-.027 0-.055-.028-.055.14 0 .223.028.335.083Zm-1.089.222c0-.027 0-.027 0 0ZM39.453 1.333c.028-.11-.558-.61-.363-.639.42-.027.42-.666 0-.666-.558.028-1.144.166-1.675.25-.977.194-1.982.389-2.96.61-2.205.473-4.383.973-6.561 1.557-.67.194-1.424.333-2.066.666-.224.111-.196.333-.084.472-.056.028-.084.028-.14.056-.195.028-.363.056-.558.083-.168.028-.252.167-.224.334 0 .027.028.083.028.11-1.173 1.556-2.485 3.195-3.909 4.945-1.396 1.611-2.876 3.306-4.356 5.056-4.719 5.5-10.052 11.75-15.943 17.25a.268.268 0 0 0 0 .389c.028.027.056.055.084.055-.084.084-.168.14-.252.222-.056.056-.084.111-.084.167a.605.605 0 0 0-.111.139c-.112.111-.112.305.028.389.111.11.307.11.39-.028.029-.028.029-.056.056-.056a.44.44 0 0 1 .615 0c.335.362.67.723.977 1.028l-.698-.583c-.112-.111-.307-.083-.39.028-.113.11-.085.305.027.389l7.427 6.194c.056.056.112.056.196.056s.14-.028.195-.084l.168-.166c.028.027.083.027.111.027.084 0 .14-.027.196-.083 10.052-10.055 18.15-17.639 27.42-24.417.083-.055.111-.166.111-.25.112 0 .196-.083.251-.194 1.704-5.194 2.039-9.806 2.15-12.083v-.028c0-.028.028-.056.028-.083.028-.056.028-.084.028-.084a1.626 1.626 0 0 0-.111-1.028ZM21.472 9.5c.446-.5.893-1.028 1.34-1.5-2.876 3.778-7.65 9.583-14.408 16.5 4.607-5.083 9.242-10.333 13.068-15ZM5.193 35.778h.084-.084Zm3.462 3.194c-.027-.028-.027-.028 0-.028v.028Zm4.16-3.583c.224-.25.448-.472.699-.722 0 0 0 .027.028.027-.252.223-.475.445-.726.695Zm1.146-1.111c.14-.14.279-.334.446-.5l.028-.028c1.648-1.694 3.351-3.389 5.082-5.111l.028-.028c.419-.333.921-.694 1.368-1.028a379.003 379.003 0 0 0-6.952 6.695ZM24.794 6.472c-.921 1.195-1.954 2.778-2.82 4.028-2.736 3.944-11.532 13.583-11.727 13.75a1976.983 1976.983 0 0 1-8.042 7.639l-.167.167c-.14-.167-.14-.417.028-.556C14.49 19.861 22.03 10.167 25.074 5.917c-.084.194-.14.36-.28.555Zm4.83 5.695c-1.116-.64-1.646-1.64-1.34-2.611l.084-.334c.028-.083.084-.194.14-.277.307-.5.754-.917 1.257-1.167.027 0 .055 0 .083-.028-.028-.056-.028-.139-.028-.222.028-.167.14-.278.335-.278.335 0 1.369.306 1.76.639.111.083.223.194.335.305.14.167.363.445.474.667.056.028.112.306.196.445.056.222.111.472.084.694-.028.028 0 .194-.028.194a2.668 2.668 0 0 1-.363 1.028c-.028.028-.028.056-.056.084l-.028.027c-.14.223-.335.417-.53.556-.643.444-1.369.583-2.095.389 0 0-.195-.084-.28-.111Zm8.154-.834a39.098 39.098 0 0 1-.893 3.167c0 .028-.028.083 0 .111-.056 0-.084.028-.14.056-2.206 1.61-4.356 3.305-6.506 5.028 1.843-1.64 3.686-3.306 5.613-4.945.558-.5.949-1.139 1.06-1.861l.28-1.667v-.055c.14-.334.67-.195.586.166Z",fill:"currentColor"})})},xe=function(){return(0,u.jsxs)("svg",{viewBox:"0 0 450 55",xmlns:"http://www.w3.org/2000/svg",fill:"none",className:"ExcalidrawLogo-text",children:[(0,u.jsx)("path",{d:"M429.27 96.74c2.47-1.39 4.78-3.02 6.83-4.95 1.43-1.35 2.73-2.86 3.81-4.51-.66.9-1.4 1.77-2.23 2.59-2.91 2.84-5.72 5.09-8.42 6.87h.01ZM343.6 69.36c.33 3.13.58 6.27.79 9.4.09 1.37.18 2.75.25 4.12-.12-4.46-.27-8.93-.5-13.39-.11-2.08-.24-4.16-.4-6.24-.06 1.79-.11 3.85-.13 6.11h-.01ZM378.47 98.34c.01-.37.07-1.13.01-6.51-.11 1.9-.22 3.81-.31 5.71-.07 1.42-.22 2.91-.16 4.35.39.03.78.07 1.17.1-.92-.85-.76-2.01-.72-3.66l.01.01ZM344.09 86.12c-.09-2.41-.22-4.83-.39-7.24v12.21c.15-.05.32-.09.47-.14.05-1.61-.03-3.23-.09-4.83h.01ZM440.69 66.79c-.22-.34-.45-.67-.69-.99-3.71-4.87-9.91-7.14-15.65-8.55-1.05-.26-2.12-.49-3.18-.71 2.29.59 4.48 1.26 6.64 2.02 7.19 2.54 10.57 5.41 12.88 8.23ZM305.09 72.46l1.2 3.6c.84 2.53 1.67 5.06 2.46 7.61.24.78.5 1.57.73 2.36.22-.04.44-.08.67-.12a776.9 776.9 0 0 1-5.01-13.57c-.02.04-.03.09-.05.13v-.01ZM345.49 90.25v.31c1.48-.42 3.05-.83 4.66-1.2-1.56.25-3.12.52-4.66.89ZM371.02 90.22c0-.57-.04-1.14-.11-1.71-.06-.02-.12-.04-.19-.05-.21-.05-.43-.08-.65-.11.42.16.74.88.95 1.87ZM398.93 54.23c-.13 0-.27-.01-.4-.02l.03.4c.11-.15.23-.27.37-.38ZM401.57 62.28v-.15c-1.22-.24-2.86-.61-3.23-1.25-.09-.15-.18-.51-.27-.98-.09.37-.2.73-.33 1.09 1.24.56 2.52.98 3.83 1.29ZM421.73 88.68c-2.97 1.65-6.28 3.12-9.69 3.68v.18c4.72-.14 11.63-3.85 16.33-8.38-2.04 1.75-4.33 3.24-6.63 4.53l-.01-.01ZM411.28 80.92c-.05-1.2-.09-2.4-.15-3.6-.21 5.66-.46 11.38-.47 14.51.24-.02.48-.04.71-.07.15-3.61.05-7.23-.09-10.83v-.01Z",transform:"translate(-144.023 -51.76)"}),(0,u.jsx)("path",{d:"M425.38 67.41c-3.5-1.45-7.19-2.57-14.06-3.62.09 1.97.06 4.88-.03 8.12.03.04.06.09.06.15.19 1.36.28 2.73.37 4.1.25 3.77.39 7.55.41 11.33 0 1.38-.01 2.76-.07 4.13 1.4-.25 2.78-.65 4.12-1.15 4.07-1.5 7.94-3.78 11.28-6.54 2.33-1.92 5.13-4.49 5.88-7.58.63-3.53-2.45-6.68-7.97-8.96l.01.02ZM411.35 92.53v-.06l-.34.03c.11.01.22.03.34.03ZM314.26 64.06c-.23-.59-.47-1.17-.7-1.75.57 1.62 1.11 3.25 1.6 4.9l.15.54 2.35 6.05c.32.82.66 1.64.98 2.46-1.38-4.1-2.83-8.17-4.39-12.2h.01ZM156.82 103.07c-.18.13-.38.23-.58.33 1.32-.03 2.66-.2 3.93-.34.86-.09 1.72-.22 2.58-.33-2.12.1-4.12.17-5.94.34h.01ZM210.14 68.88s.03.04.05.07c.18-.31.39-.64.58-.96-.21.3-.42.6-.64.89h.01ZM201.65 82.8c-.5.77-1.02 1.56-1.49 2.37 1.11-1.55 2.21-3.1 3.2-4.59-.23.23-.49.51-.75.79-.32.47-.65.95-.96 1.43ZM194.03 98.66c-.33-.4-.65-.84-1.05-1.17-.24-.2-.07-.49.17-.56-.23-.26-.42-.5-.63-.75 1.51-2.55 3.93-5.87 6.4-9.28-.17-.08-.29-.28-.2-.49.04-.09.09-.17.13-.26-1.21 1.78-2.42 3.55-3.61 5.33-.87 1.31-1.74 2.64-2.54 4-.29.5-.63 1.04-.87 1.61.81.65 1.63 1.27 2.47 1.88-.09-.11-.18-.21-.27-.32v.01ZM307.79 82.93c-1-3.17-2.05-6.32-3.1-9.48-1.62 4.08-3.69 9.17-6.16 15.19 3.32-1.04 6.77-1.87 10.27-2.5-.32-1.08-.67-2.15-1.01-3.21ZM149.5 80.7c.05-1.71.04-3.43 0-5.14-.1 2.26-.16 4.51-.22 6.77-.02.73-.03 1.46-.04 2.19.14-1.27.2-2.55.24-3.82h.02ZM228.98 98.3c.39 1.25.91 3.03.94 3.91.06-.03.12-.07.17-.1.08-1.29-.55-2.65-1.11-3.81ZM307.72 53.36c.81.5 1.53 1.04 2.07 1.49-.38-.8-.78-1.58-1.21-2.35-.17.03-.34.06-.51.11-.43.12-.86.26-1.29.41.35-.01.53.1.94.34ZM283.69 96.14c3.91-7.25 6.89-13.35 8.88-18.15l1.1-2.66c-1.27 2.64-2.56 5.27-3.83 7.9-1.53 3.15-3.06 6.31-4.58 9.47-.87 1.81-1.76 3.62-2.54 5.47.04.02.07.04.11.07.05.05.1.09.15.14.05-.73.27-1.48.71-2.24ZM289.92 103.23s-.04.01-.05.03c0-.02.04-.03.05-.04.05-.05.11-.1.16-.15l.21-.21c-.55 0-1.5-.27-2.55-.72.4.26.8.51 1.22.74.24.13.48.26.73.37.05.02.1.03.14.05a.27.27 0 0 1 .08-.07h.01ZM269.23 68.49c-.39-.19-.82-.48-1.33-.87-3.06-1.56-6.31-2.78-9.36-2.35-3.5.49-5.7 1.11-7.74 2.44 5.71-2.6 12.82-2.07 18.44.79l-.01-.01ZM177.87 53.69l1.06.03c-.96-.22-2-.25-2.89-.3-4.95-.26-9.99.33-14.86 1.19-2.44.43-4.88.95-7.28 1.59 9.09-1.76 15.69-2.77 23.97-2.51ZM219.85 55.51c-.18.12-.36.27-.56.45-.45.53-.86 1.11-1.26 1.66-1.91 2.61-3.71 5.31-5.57 7.95l-.12.18 8.05-10.11c-.18-.05-.36-.1-.55-.13h.01ZM510.71 54.1c.12-.15.29-.3.53-.45.69-.4 3.72-.63 5.87-.74-.36-.02-.73-.04-1.09-.05-1.84-.03-3.67.09-5.49.35.05.3.12.59.18.88v.01ZM510.76 86.02c1.37-3.07 2.49-6.27 3.57-9.46.55-1.64 1.12-3.3 1.6-4.97-1.59 4.01-3.67 9.14-6.2 15.3.24-.08.5-.14.74-.22.1-.22.19-.44.29-.65ZM566.95 75.76c.11-.02.23.03.31.11-.05-.13-.09-.26-.14-.39-.05.09-.11.18-.17.28ZM511.33 86.41c3.08-.89 6.24-1.62 9.46-2.14-1.51-3.98-2.98-7.96-4.39-11.87-.05.15-.09.31-.14.46-1.02 3.32-2.15 6.61-3.39 9.85-.48 1.25-.98 2.49-1.53 3.7h-.01ZM578.24 74.45c.11-.44.23-.87.35-1.31-.31.7-.64 1.39-.97 2.08.09.21.19.4.28.61.12-.46.23-.92.35-1.38h-.01ZM520.62 53.11c-.09 0-.18-.01-.28-.02.38.34.29 1.08.93 2.53l6.65 17.15c2.2 5.68 4.69 11.36 7.41 16.87l1.06 2.17c-2.95-7.05-5.92-14.08-8.87-21.13-1.58-3.79-3.16-7.59-4.7-11.4-.78-1.92-1.73-3.89-2.25-5.91-.03-.1 0-.19.04-.26h.01ZM578.78 77.87c1.45-5.77 3.07-10.43 3.58-13.36.05-.34.16-.88.31-1.55-.67 1.79-1.37 3.56-2.08 5.33-.12.43-.23.86-.35 1.29-.65 2.43-1.29 4.86-1.9 7.3.14.33.29.65.43 1l.01-.01ZM545.3 94.66c.02-.44.03-.83.05-1.12.02-1.01.05-2.02.11-3.02.03-6.66-.46-14.33-1.46-22.8-.13-.42-.27-1.24-.56-2.89 0-.02 0-.04-.01-.06.62 6.61.95 13.25 1.32 19.87.17 3.08.33 6.16.52 9.23.02.25.03.52.04.78l-.01.01ZM580.77 102.81c.13.2.27.38.37.49.27-.11.53-.22.8-.32-.43.09-.82.05-1.17-.16v-.01ZM530.48 104.07h.33c-.36-.13-.71-.32-1.04-.56.14.24.3.47.45.7.06-.08.14-.13.26-.13v-.01ZM542.63 58.82c.06.23.11.47.15.71.14-.33.36-.62.7-.86-.28.05-.57.11-.85.15ZM583.81 57.87c.15-.7.29-1.41.42-2.11-.14.45-.28.9-.42 1.34-.46 1.44-.89 2.89-1.31 4.34.44-1.19.88-2.37 1.31-3.57ZM523.62 91.48c-4.66 1.17-9.05 2.89-14.02 5.27 4.65-1.84 9.48-3.29 14.28-4.63-.09-.22-.17-.41-.26-.64ZM460.64 78.3c-.04-2.9-.11-5.81-.28-8.71-.1-1.68-.17-3.43-.5-5.09-.07.02-.14.03-.2.05.3 6.54.45 12.17.51 17.12.17-.07.34-.14.51-.2 0-1.06-.01-2.11-.03-3.17h-.01ZM470.63 63.24c-3.38-.26-6.81.32-10.1 1.1.41 2.01.47 4.14.57 6.18.18 3.55.25 7.11.27 10.67 3.31-1.38 6.5-3.12 9.3-5.35 1.96-1.56 3.86-3.41 5.02-5.66.73-1.41 1.19-3.22.26-4.65-1.09-1.7-3.46-2.14-5.32-2.29ZM460.29 63.68c1-.24 2.01-.46 3.04-.65-1.15.16-2.37.38-3.71.69v.13c.07-.02.15-.04.22-.05.11-.13.3-.18.45-.11v-.01ZM457.24 100.96c.43-.03.86-.07 1.29-.11.14-.49.27-.99.38-1.49-.44.7-1 1.23-1.67 1.6ZM482.88 104.98c-.18.23-.36.38-.55.47.14.09.27.19.4.28a70.76 70.76 0 0 0 4.37-4.63c.76-.89 1.52-1.81 2.19-2.77-.3-.27-.61-.53-.92-.79-.07 1.94-4.62 6.32-5.49 7.45v-.01Z",transform:"translate(-144.023 -51.76)"}),(0,u.jsx)("path",{d:"M474.36 63.31c-.4-.16-.84-.27-1.29-.37 1.56.42 3.08 1.22 3.76 2.74.62 1.4.32 2.95-.28 4.32.7-1.22.94-2.34.74-3.47-.24-1.33-1.19-2.54-2.93-3.21v-.01ZM477.34 89.18c-1.2-.81-2.4-1.62-3.6-2.42-.14.1-.26.19-.4.29 1.4.67 2.73 1.39 4 2.13ZM465.88 93.85c.37.25.74.5 1.1.75.46.32.92.65 1.38.97-1.57-1.2-2.01-1.61-2.49-1.72h.01ZM574.92 90.06c-2.28-5.21-4.93-11.13-5.67-12.26-.1-.15-1.57-3.01-1.63-3.08 0 0-.01.02-.02.02.4 1.37 1.09 2.69 1.65 3.99 2.14 4.95 4.36 9.86 6.67 14.73.6 1.26 1.21 2.52 1.83 3.78-.75-2.01-1.64-4.45-2.83-7.18ZM448.73 65.29c.1.2.22.38.34.57.22-.02.43-.06.65-.08v-.08c-.14-.05-.25 0-.99-.41ZM460.16 94.81c-.02.31-.06.59-.1.89-.03 1.71-.33 3.43-.79 5.07.15-.02.3-.03.45-.05.01-.04.02-.08.03-.11.09-.34.15-.69.2-1.03.17-1.07.25-2.16.33-3.24.05-.69.08-1.39.12-2.08-.27.1-.27.26-.24.57v-.02Z",transform:"translate(-144.023 -51.76)"}),(0,u.jsx)("path",{d:"m328.67 98.12-3.22-6.58c-1.29-2.63-2.53-5.29-3.72-7.97-.25-.85-.52-1.69-.79-2.53-.81-2.57-1.67-5.12-2.55-7.67-1.92-5.53-3.9-11.08-6.32-16.41-.72-1.58-1.46-3.44-2.63-4.79-.03-.17-.16-.29-.34-.36a.282.282 0 0 0-.23-.04c-.06-.01-.12 0-.18.01-.74.06-1.5.38-2.19.61-2.22.77-4.4 1.64-6.63 2.38-.03-.08-.06-.16-.09-.25-.15-.42-.82-.24-.67.19.03.09.07.19.1.28l-.18.06c-.36.11-.28.6 0 .68.18 1.18.63 2.36.98 3.49.03.09.06.17.08.26-.08.23-.17.46-.24.64-.37.98-.79 1.94-1.21 2.9-1.27 2.89-2.62 5.75-3.98 8.6-3.18 6.67-6.44 13.31-9.64 19.97-1.08 2.25-2.2 4.5-3.15 6.81-.13.32.24.5.5.37 1.34 1.33 2.84 2.5 4.4 3.57.65.44 1.31.87 2.01 1.24.4.22.86.48 1.33.5.24.01.35-.19.33-.37.11-.1.21-.21.28-.28.41-.41.81-.84 1.2-1.26.85-.92 1.69-1.87 2.5-2.84 6.31-2.34 12.6-4.31 18.71-5.84 2.14 5.3 3.43 8.43 3.97 9.58.55 1.05 1.15 1.88 1.82 2.52 1.32.56 6.96-.03 9.23-1.96.87-1.28 1.19-2.67.93-4.15-.09-.5-.22-.95-.4-1.33l-.01-.03Zm-20.09-45.61c.43.77.83 1.56 1.21 2.35-.54-.45-1.27-.99-2.07-1.49-.42-.24-.6-.35-.94-.34.43-.15.85-.29 1.29-.41.17-.05.34-.08.51-.11Zm-25.86 45.66c.78-1.85 1.67-3.66 2.54-5.47 1.51-3.16 3.05-6.31 4.58-9.47 1.28-2.63 2.56-5.26 3.83-7.9l-1.1 2.66c-1.99 4.79-4.97 10.9-8.88 18.15-.43.76-.66 1.51-.71 2.24-.05-.05-.1-.09-.15-.14a.259.259 0 0 0-.11-.07Zm6.24 4.71c-.42-.23-.82-.48-1.22-.74 1.05.45 2 .72 2.55.72l-.21.21c-.05.05-.11.1-.16.15-.01.01-.04.03-.05.04 0-.02.03-.02.05-.03a.27.27 0 0 0-.08.07c-.05-.02-.1-.03-.14-.05-.25-.1-.49-.24-.73-.37h-.01Zm15.73-29.43c1.05 3.15 2.1 6.31 3.1 9.48.34 1.06.69 2.13 1.01 3.21-3.5.63-6.95 1.46-10.27 2.5 2.48-6.03 4.54-11.11 6.16-15.19Zm4.79 12.57c-.23-.79-.49-1.58-.73-2.36-.79-2.54-1.63-5.08-2.46-7.61l-1.2-3.6c.02-.04.04-.09.05-.13 1.6 4.45 3.28 9 5.01 13.57l-.67.12v.01Zm5.83-18.27-.15-.54c-.49-1.64-1.03-3.28-1.6-4.9.23.58.47 1.17.7 1.75 1.56 4.03 3.01 8.1 4.39 12.2-.33-.82-.67-1.64-.98-2.46l-2.35-6.05h-.01ZM390.43 79.37c-.13-10.43-.22-17.5-.24-19.97-.24-1.6.21-2.88-.65-3.65-.14-.13-.32-.23-.52-.32h.03c.45 0 .45-.69 0-.7-1.75-.03-3.5-.04-5.25-.14-1.38-.08-2.76-.21-4.15-.31-.07 0-.12.01-.17.04-.21-.07-.47.03-.45.31l.03.45c-.11.14-.19.3-.22.5-.21 1.26-.32 13.67-.36 23.59-.32 5.79-.67 11.57-.97 17.36-.09 1.73-.29 3.54-.21 5.3-.39.02-.38.64.04.69v.12c.05.44.74.45.7 0v-.06c1.1.09 2.2.21 3.3.3 1.14.19 2.44.2 3.29.17 1.73-.05 2.92-.05 3.8-.37.45-.05.9-.11 1.35-.17.44-.06.25-.73-.19-.67h-.01c.24-.32.45-.72.62-1.25.66-1.84.41-6.36.34-11.33l-.13-9.9.02.01Zm-12.26 18.17c.09-1.91.2-3.81.31-5.71.06 5.38 0 6.14-.01 6.51-.05 1.65-.21 2.81.72 3.66-.39-.04-.78-.07-1.17-.1-.06-1.44.09-2.93.16-4.35l-.01-.01ZM588.97 53.85c-2.06-.25-3.17-.51-3.76-.6a.3.3 0 0 1 .04-.08c.22-.39-.39-.75-.6-.35-.56 1.02-.9 2.19-1.26 3.29-.61 1.88-1.17 3.78-1.72 5.68-.63 2.19-1.24 4.39-1.83 6.59-.81 2.03-1.67 4.05-2.61 6.03-1.7-3.64-3.11-6.04-4.03-7.57-2.26-3.74-2.85-5.48-3.57-6.08l.31-.09c.43-.12.25-.8-.19-.67-1.06.3-2.12.6-3.17.95-.93.32-1.85.69-2.76 1.07-.13.05-.19.16-.22.27-.04.02-.08.05-.11.07-.04-.06-.07-.12-.11-.18a.354.354 0 0 0-.48-.12c-.16.09-.22.32-.13.48l.33.54c0 .09.02.18.06.28.51 1.16.78 1.38.72 1.47-2.42 3.44-5.41 7.86-6.2 9.1-1.27 1.97-2.01 3.14-2.45 3.84l-.91-6.56-.43-4.1c-.19-1.85-.37-3.23-.53-4.13-.19-1.1-.3-2.15-.45-3.16-.2-1.36-.29-2.06-.47-2.42h.04c.45.02.45-.68 0-.7-3.43-.16-6.81.94-10.17 1.48-.24-.22-.73-.04-.58.32.24.59.33 1.25.43 1.87.17 1.06.29 2.13.4 3.2.32 3.09.53 6.2.74 9.3.44 6.75.77 13.51 1.17 20.26.11 1.95.13 3.96.46 5.89.05.3.37.31.55.14.74 1.71 2.87 1.27 6.13 1.27 1.34 0 2.39.04 2.99-.11.02.32.48.53.63.18 3.61-8.26 7.41-16.46 12.05-24.2.03-.05.04-.1.05-.15.3.73.64 1.45.94 2.16.97 2.26 1.97 4.52 2.98 6.76 2.26 5.03 4.54 10.07 7.09 14.96.47.9.94 1.79 1.47 2.65.2.32.4.67.66.96-.18.25 0 .68.34.54.91-.38 1.82-.75 2.76-1.07 1.04-.35 2.11-.65 3.17-.95.39-.11.28-.66-.07-.68.62-.4.95-.96.87-1.91-.3-3.34.72-7.47.86-8.52l2.14-11.43c1.75-10.74 3.13-17.51 3.23-20.86.02-.49.08-2.84.13-3.24.17-1.25.48-1-4.96-1.65l.03-.02Zm-46.19 5.67c-.04-.24-.09-.48-.15-.71l.85-.15c-.34.24-.56.53-.7.86Zm1.95 25.12c-.36-6.63-.7-13.26-1.32-19.87 0 .02 0 .04.01.06.29 1.65.44 2.47.56 2.89 1 8.46 1.5 16.14 1.46 22.8-.06.99-.1 2-.11 3.02-.01.29-.03.68-.05 1.12-.01-.26-.03-.53-.04-.78-.19-3.08-.35-6.16-.52-9.23l.01-.01Zm36.4 18.66c-.11-.11-.24-.29-.37-.49.35.21.74.26 1.17.16-.27.11-.53.22-.8.32v.01Zm-.89-33.72c.12-.43.23-.86.35-1.29.71-1.77 1.41-3.55 2.08-5.33-.15.68-.26 1.22-.31 1.55-.5 2.94-2.13 7.59-3.58 13.36-.15-.35-.29-.66-.43-1 .61-2.44 1.25-4.87 1.9-7.3l-.01.01Zm3.56-12.48c.14-.44.28-.89.42-1.34-.13.7-.27 1.41-.42 2.11-.43 1.19-.86 2.38-1.31 3.57.42-1.45.85-2.9 1.31-4.34Zm-5.22 16.05c-.11.44-.23.87-.35 1.31-.12.46-.23.92-.35 1.38-.1-.22-.19-.4-.28-.61.34-.69.66-1.38.97-2.08h.01Zm-11.64 2.62c.06-.1.12-.19.17-.28.05.13.09.26.14.39a.398.398 0 0 0-.31-.11Zm2.3 2.98c-.56-1.3-1.25-2.63-1.65-3.99 0 0 .01-.02.02-.02.06.08 1.52 2.93 1.63 3.08.73 1.13 3.38 7.04 5.67 12.26 1.2 2.73 2.08 5.17 2.83 7.18-.62-1.25-1.23-2.51-1.83-3.78-2.31-4.87-4.53-9.78-6.67-14.73ZM275.92 87.03c-1.06-2.18-1.13-3.45-2.44-2.93-1.52.57-2.94 1.3-4.5 2.1-1.4.72-2.68 1.44-3.92 2.12.01-.25-.24-.5-.51-.34-4.8 2.93-12.41 4.7-17.28 1.31-1.98-1.77-3.32-4.15-3.97-5.78-.29-.95-.49-1.94-.63-2.93-.14-3.34 1.58-6.53 3.9-9.12.8-.79 1.68-1.51 2.66-2.12 3.7-2.3 8.22-3.07 12.51-2.51 2.71.35 5.32 1.24 7.71 2.55.39.22.75-.39.35-.6-.18-.1-.37-.18-.55-.27.56.27 1.03.33 1.51.19l-.48.39c-.15.11-.23.3-.13.48.09.15.33.24.48.13 1.3-.97 2.46-2.09 3.45-3.37.37-.29.64-.6.65-.97v-.02c.08-.33-.03-.7-.21-1.08-.31-.87-.98-2.01-2.19-3.26-2.43-2.52-3.79-3.45-5.68-4.26-1.14-.49-3.12-1.06-4.42-1.23-3.28-.42-10.64-1.21-18.18 4.11-7.74 5.46-11.94 12.3-12.23 20.61-.08 2.06.04 3.98.34 5.71.74 4.18 2.57 8 5.44 11.34 4.26 4.99 9.76 7.52 16.34 7.52 4.85 0 9.69-1.77 14.89-4.62.23-.12.45-.23.68-.35 2.19-1.1 4.37-2.23 6.46-3.5.49-.3 1.03-.61 1.5-.98 1.47-.87 1.11-1.12.49-2.95-.39-1.14-.76-2.7-2.06-5.36l.02-.01Zm-17.38-21.76c3.05-.42 6.31.79 9.36 2.35.51.39.94.68 1.33.87-5.61-2.86-12.72-3.39-18.44-.79 2.05-1.33 4.24-1.95 7.74-2.44l.01.01ZM443.67 72.67c-.4-2.2-1.15-4.33-2.37-6.22-1.49-2.32-3.58-4.19-5.91-5.64-6.17-3.81-13.75-5.11-20.83-6.01-3.23-.41-6.47-.69-9.72-.92l-1.39-.12c-.85-.07-1.52-.1-2.05-.1-1.08-.06-2.17-.12-3.25-.17-.08 0-.14.02-.19.05-.1.05-.18.14-.16.3.27 2.55-.01 5.12-.92 7.52-.15.38.4.56.62.28 1.32.59 2.68 1.05 4.08 1.37 0 2.78-.14 7.58-.33 12.91 0 0 0 .02-.01.03-.61 3.66-.79 7.42-1 11.12-.23 4.01-.43 8.03-.44 12.05 0 .64 0 1.28.03 1.93.02.31 0 .68.15.96.06.11.14.16.24.17-.2.17-.21.54.11.59 3.83.67 7.78.71 11.68.25 2.3-.19 4.87-.65 7.65-1.56 1.85-.54 3.67-1.18 5.43-1.91 7.2-3.02 14.31-8.07 17.35-15.53.76-1.86 1.17-3.8 1.31-5.75.3-1.93.28-3.82-.09-5.58l.01-.02Zm-19.32-15.42c5.74 1.41 11.94 3.68 15.65 8.55.25.32.47.65.69.99-2.3-2.82-5.68-5.69-12.88-8.23-2.16-.76-4.35-1.43-6.64-2.02 1.06.21 2.13.45 3.18.71Zm-25.82-3.04c.13 0 .27.01.4.02-.14.1-.26.23-.37.38 0-.13-.02-.26-.03-.4Zm34.82 22.17c-.75 3.09-3.55 5.66-5.88 7.58-3.35 2.76-7.21 5.03-11.28 6.54-1.33.49-2.71.9-4.12 1.15.06-1.38.08-2.76.07-4.13-.02-3.78-.16-7.56-.41-11.33-.09-1.37-.18-2.74-.37-4.1 0-.06-.03-.11-.06-.15.09-3.25.12-6.16.03-8.12 6.86 1.05 10.56 2.17 14.06 3.62 5.52 2.28 8.59 5.44 7.97 8.96l-.01-.02Zm-22 16.15c-.12 0-.23-.02-.34-.03l.34-.03v.06Zm-.69-.7c0-3.13.26-8.84.47-14.51.06 1.2.11 2.41.15 3.6.15 3.6.25 7.23.09 10.83-.24.03-.48.05-.71.07v.01Zm-12.33-30.94c.37.63 2.01 1.01 3.23 1.25v.15c-1.31-.31-2.59-.73-3.83-1.29.12-.36.23-.72.33-1.09.08.48.18.84.27.98Zm13.7 31.65v-.18c3.41-.56 6.71-2.02 9.69-3.68 2.31-1.28 4.59-2.78 6.63-4.53-4.69 4.53-11.61 8.24-16.33 8.38l.01.01Zm24.07-.75c-2.05 1.93-4.37 3.56-6.83 4.95 2.7-1.78 5.52-4.03 8.42-6.87.82-.82 1.56-1.69 2.23-2.59-1.08 1.65-2.38 3.16-3.81 4.51h-.01ZM187.16 92.14c-.79-2.47-2.1-7.12-3.1-6.87-.19-.01-2.09.77-4.08 1.54-3.06 1.18-5.91 2.13-10.09 2.82-2.74.42-5.87 1.01-10.61 1.06.04-3.34.05-6.01.05-7.99 7.97-.65 12.33-2.11 16.37-3.55 1.11-.39 2.69-1.01 2.63-1.8-.08-.35-.55-1.39-1.17-2.61-.47-1.16-.98-2.31-1.61-3.38-.42-.71-1.04-1.69-1.86-2.06-.11-.08-.22-.13-.29-.12-.02 0-.04 0-.07.01-.19-.04-.39-.05-.6-.01-.17.03-.24.15-.25.28-.04.02-.09.04-.14.05-4.33 1.48-8.85 2.33-13.24 3.61a499.1 499.1 0 0 0-.31-8.19c4.51-.99 8.88-1.38 13.11-1.82 3.68-.38 6.28.12 7.47.34.59.11.9.16 1.16.18h.1c-.1.37.44.66.62.28.02-.04.03-.08.05-.13.15.2.53.22.62-.1.17-.58.19-1.21.21-1.81v-.36c.03-.15.05-.3.07-.45.52-2.47.33-5.09-.64-7.44-.11-.27-.44-.28-.6-.14-.08-.21-.15-.42-.24-.62-.19-.41-.79-.05-.6.35.03.07.05.15.09.22-.98-.42-2.15-.54-3.17-.63-2.17-.19-4.37-.14-6.54 0-5.7.35-11.4 1.3-16.91 2.79-2.08.56-4.13 1.22-6.14 2-4.54 1.05-3.79 1.51-2.17 6.07.18.51.46 1.68.54 1.94.82 2.47 1.08 2.13 3.1 2.13s0 .05 0 .08h.52c-.48 2.66-.51 5.45-.62 8.13-.15 3.48-.22 6.96-.28 10.45 0 .41-.01.82-.02 1.23-.16.29-.33.57-.51.85-.05.38-.09.77-.14 1.18-.42 3.52-.59 6.48-.52 8.8v.34c.02.47.05.76.06.87.16 1.57-.26 3.47 1.35 3.79 1.61.32 3.5.55 4.85.55.11 0 .22-.02.33-.02 1.79.24 3.67.05 5.45-.12 2.85-.28 5.69-.7 8.51-1.19 3.03-.53 6.05-1.14 9.04-1.86 2.4-.58 4.82-1.19 7.13-2.06.51-.19 1.73-.57 2.46-1.14 1.81-.68 2.18-1 1.57-2.67-.23-.62-.48-1.49-.91-2.78l-.03-.02Zm-11.12-38.71c.89.05 1.93.08 2.89.3-.33 0-.68-.02-1.06-.03-8.28-.26-14.88.75-23.97 2.51 2.41-.64 4.85-1.16 7.28-1.59 4.87-.86 9.91-1.45 14.86-1.19Zm-26.53 22.13c.03 1.71.04 3.43 0 5.14-.04 1.27-.11 2.55-.24 3.82 0-.73.02-1.46.04-2.19.05-2.26.12-4.51.22-6.77h-.02Zm6.73 27.85c.2-.1.4-.21.58-.33 1.82-.17 3.82-.24 5.94-.34-.86.11-1.72.24-2.58.33-1.27.14-2.61.31-3.93.34h-.01ZM534.48 85.44c-3.52-8.38-7.07-16.75-10.5-25.17-.63-1.54-1.25-3.09-1.86-4.65-.31-.8-.65-1.6-.87-2.43-.04-.17-.17-.24-.31-.25.1-.2 0-.51-.29-.53-1.59-.08-3.18-.22-4.78-.25-1.96-.03-3.91.13-5.84.42-.31.05-.31.38-.13.56-.03.06-.05.14-.04.22.23 1.54.63 3.06 1.16 4.53.13.35.27.7.41 1.06l-2.68 6.18c-.11.03-.2.09-.25.22-.67 1.9-1.52 3.73-2.34 5.56a536.85 536.85 0 0 1-3.9 8.45c-2.64 5.64-5.34 11.25-7.91 16.93-.44.97-.88 1.94-1.29 2.93-.2.48-.47 1-.55 1.52v.05c-.02.12.02.26.16.34 1.19.73 2.41 1.41 3.66 2.05 1.2.62 2.45 1.25 3.76 1.61.43.12.62-.55.19-.67-1.13-.31-2.2-.83-3.24-1.36 1.09.36 2.1.69 2.75.93 2.82 1.01 2.38 1.1 4.3-3.75 2.1-1.09 4.34-1.96 6.53-2.79 4.35-1.64 8.8-3.03 13.27-4.29.82 2.01 1.77 3.97 2.72 5.92.35.83.62 1.45.79 1.82.22.42.45.8.69 1.15.17.33.33.67.5 1 .42.8.84 1.63 1.4 2.35.23.29.6 0 .55-.31 1.53-.02 3.06-.07 4.58-.27.92-.12 1.82-.32 2.71-.54 1.39-.27 3.85-1.11 3.74-1.42-.67-1.96-1.55-3.87-2.34-5.78-1.57-3.78-3.16-7.56-4.75-11.33v-.01Zm-11.65-26.16c1.54 3.81 3.12 7.6 4.7 11.4 2.94 7.05 5.91 14.09 8.87 21.13l-1.06-2.17c-2.71-5.51-5.2-11.19-7.41-16.87l-6.65-17.15c-.65-1.45-.55-2.19-.93-2.53.09 0 .18.01.28.02a.29.29 0 0 0-.04.26c.52 2.02 1.47 3.98 2.25 5.91h-.01Zm-6.58 13.58c.05-.15.09-.31.14-.46 1.41 3.92 2.88 7.9 4.39 11.87-3.22.52-6.38 1.25-9.46 2.14.55-1.22 1.05-2.46 1.53-3.7 1.24-3.24 2.37-6.53 3.39-9.85h.01Zm-.23-20c.36 0 .73.03 1.09.05-2.15.1-5.18.33-5.87.74-.24.15-.41.3-.53.45-.06-.29-.13-.58-.18-.88 1.82-.26 3.65-.39 5.49-.35v-.01Zm-.09 18.72c-.49 1.67-1.05 3.33-1.6 4.97-1.07 3.19-2.19 6.38-3.57 9.46-.09.21-.19.43-.29.65-.25.07-.5.14-.74.22 2.53-6.16 4.61-11.29 6.2-15.3Zm-6.34 25.16c4.97-2.38 9.37-4.1 14.02-5.27l.26.64c-4.8 1.35-9.63 2.8-14.28 4.63Zm20.17 6.76c.33.23.68.42 1.04.56h-.33c-.12 0-.21.06-.26.13-.15-.23-.31-.45-.45-.7v.01ZM226.57 91.75c-3.55-4.74-6.68-9.11-9.31-12.99 9.2-15.25 10.05-17.81 10.35-18.38.17-.34 1.09-2.27.64-2.53-1.13-.65-1.03-.65-2.97-1.71-1.19-.65-3.04-1.61-4.53-2.12-1.71-.59-1.24-.36-3 2.77-.06.1-.11.2-.17.3-.75 1.02-1.48 2.05-2.2 3.09-1.88 2.71-3.73 5.45-5.69 8.1-3.68-4.91-6.88-8.76-9.51-11.43-.15-.15-.3-.29-.46-.42-1.27-1.28-7.24 3.53-7.93 5.58-.09.09-.19.16-.28.25-.27.26.03.64.33.58.19.65.5 1.29.94 1.91 3.85 5.06 7.19 9.76 9.94 14-1.23 2.61-3.06 5-4.67 7.38l-2.28 3.33c-.5.66-.93 1.23-1.29 1.69-.67.93-2.09 2.61-2.3 3.87-.51.85-1.16 1.84-1.29 2.83-.06.44.61.63.67.19.01-.08.04-.15.06-.22 1.36 1.08 2.76 2.11 4.19 3.11 1.3.91 2.62 1.85 4.04 2.56.21.1.4 0 .48-.17.24.07.48.14.72.2.44.1.62-.57.19-.67-2.02-.48-3.77-1.57-5.23-3.02-.47-.46-.9-.96-1.32-1.46 1.74 1.35 4.2 2.89 5.89 4.14 1.39 1.03 2.85-2.27 4.22-4.2 1.86-2.64 3.96-5.86 5.52-8.29l10.39 14.51c.67.81 1.14 1.21 1.57 1.36-.05.24.12.51.41.4 1.53-.58 3.05-1.19 4.54-1.87 1.52-.69 3.06-1.45 4.36-2.5a.28.28 0 0 0 .12-.23c1.66-1.1.81-1.74-1.41-4.91-1.13-1.58-1.71-2.36-3.7-5.01l-.03-.02Zm2.41 6.54c.56 1.15 1.19 2.52 1.11 3.81-.06.04-.12.07-.17.1-.03-.88-.55-2.66-.94-3.91Zm-16.51-32.73c1.86-2.65 3.65-5.35 5.57-7.95.4-.55.81-1.13 1.26-1.66.19-.18.38-.33.56-.45.18.03.36.08.55.13l-8.05 10.11.12-.18h-.01ZM192.7 95.48c.79-1.37 1.66-2.69 2.54-4 1.19-1.79 2.4-3.56 3.61-5.33-.04.09-.09.17-.13.26-.1.22.03.41.2.49-2.47 3.42-4.89 6.73-6.4 9.28.21.24.4.48.63.75-.24.07-.4.36-.17.56.4.33.72.77 1.05 1.17.09.11.18.21.27.32-.84-.61-1.66-1.24-2.47-1.88.24-.57.58-1.11.87-1.61v-.01Zm7.46-10.32c.47-.81.98-1.59 1.49-2.37.31-.48.64-.95.96-1.43.26-.29.52-.56.75-.79-.99 1.48-2.09 3.03-3.2 4.59Zm10.03-16.22s-.03-.05-.05-.07c.22-.29.43-.59.64-.89-.2.32-.4.65-.58.96h-.01ZM371.54 87.96c-.01-.08-.01-.16-.03-.23-.06-.38-.58-.29-.66.03-.3-.05-.6-.08-.81-.11-1.14-.15-2.29-.19-3.44-.2 1.04-.09 2.09-.18 3.14-.23.45-.02.45-.72 0-.7-6.57.35-13.14 1.23-19.65 2.11-1.53.21-3.05.42-4.57.68-.01 0-.02.01-.04.01-.04-3.33-.13-6.66-.24-9.99-.19-5.7-.4-11.41-.88-17.1-.13-1.51-.23-3.07-.49-4.58 0-.25 0-.48-.02-.68-.06-1.19-.04-2.61-.68-2.78-.16-.07-.72-.16-1.5-.24.22-.17.16-.62-.2-.63-1.19-.04-2.39.09-3.57.23-1.2.14-2.41.32-3.59.6-.16-.1-.41-.06-.5.12-.06.02-.13.03-.19.05-.35.1-.29.55-.03.66-.26.6-.19 2.27-.21 3-.02.66-.66 33.73-.9 40.3-.03.65.06 1.12.04 1.45-.16 3.05.87 4.96 6.34 3.93 1.09-.08 2.75-.77 5.36-1.43 4.13-1.04 5.78-1.52 6.2-1.65 6.43-1.69 6.78-1.97 11.72-2.43.55-.05 4.8-.38 6.03-.3.64.04 1.19.07 1.65.1.09 0 .16-.03.24-.05.1.27.56.33.66-.02.39-1.32.61-2.71.78-4.08.2-1.61.29-3.24.15-4.86.24.03.52-.23.38-.53-.09-.2-.27-.33-.49-.43v-.02Zm-.63.56c.07.57.11 1.14.11 1.71-.21-.99-.53-1.71-.95-1.87.22.03.44.06.65.11.06.01.12.04.19.05Zm-25.41 1.73c1.54-.36 3.1-.64 4.66-.89-1.61.37-3.18.77-4.66 1.2v-.31Zm-.86-7.37c-.07-1.37-.16-2.75-.25-4.12-.21-3.13-.45-6.27-.79-9.4.02-2.25.08-4.31.13-6.11.16 2.08.29 4.16.4 6.24.23 4.46.38 8.93.5 13.39h.01Zm-.94-4c.16 2.41.29 4.83.39 7.24.06 1.6.14 3.22.09 4.83-.15.05-.32.09-.47.14V78.88h-.01ZM483.72 92.83c-3.05-2.28-6.22-4.4-9.38-6.51 8.86-6.49 13.49-12.95 13.73-19.23.04-.76 0-1.5-.13-2.2-.67-3.82-3.5-6.68-8.39-8.48.13.04.27.08.4.13 3.92 1.39 7.74 4.23 8.5 8.56.34 1.95-.05 3.96-.98 5.69-.21.4.39.75.6.35 1.86-3.46 1.46-7.55-.97-10.63-3.53-4.47-9.76-5.88-15.16-6.16-2.32-.12-4.64-.04-6.95.19-6 .32-12.71 1.68-17.63 3.21-.37.11-.67.23-.92.35-.2-.17-.62.02-.57.37v.03c-.64.68-.18 1.64.48 3.21.38.91.67 1.89 1.15 2.58.32.76.68 1.51 1.13 2.19.14.21.38.19.53.07.19-.02.38-.05.57-.08v1.57c-.06.06-.1.13-.11.23-.27 4.18-.34 8.38-.48 12.57l-.3 9.03c-.24 3.91-.44 6.77-.46 7.26-.05.88-.11 1.95.07 2.81-.01.22-.02.43-.04.65 0 .11-.02.23-.03.35 0 .05-.03.27-.01.16-.05.4.5.59.64.28.05.04.12.08.2.08 1.75.13 3.5.28 5.25.3 1.69.02 3.38-.12 5.06-.32.08.23.36.39.55.15.06-.08.11-.17.16-.26.18-.09.24-.32.18-.48.05-.2.1-.4.13-.6.16-.86.25-1.74.33-2.62.11-1.17.17-2.34.23-3.51.15-.01.32-.03.52-.04.36-.03 1.73-.15 2.06-.15.39 0 .7-.02.95-.04 1.76 1.11 3.45 2.35 5.14 3.55 2.83 2.01 5.64 4.04 8.47 6.04 1.42 1 2.85 2 4.29 2.97.1.06.19.07.27.04.08 0 .17-.02.25-.1 1.61-1.56 3.15-3.18 4.6-4.88.75-.88 1.49-1.78 2.15-2.73.01.01.03.02.04.03.34.3.83-.2.49-.49-2.16-1.9-4.34-3.76-6.64-5.48l.03-.01Zm-6.38-3.65a55.72 55.72 0 0 0-4-2.13c.14-.1.26-.19.4-.29 1.2.81 2.4 1.61 3.6 2.42Zm-20.1 11.78c.67-.37 1.23-.91 1.67-1.6-.11.5-.24 1-.38 1.49-.43.04-.86.08-1.29.11Zm2.38-37.24c1.34-.31 2.56-.52 3.71-.69-1.03.19-2.04.41-3.04.65-.14-.07-.34-.02-.45.11-.07.02-.15.04-.22.05v-.13.01Zm.04.84c.07-.02.14-.03.2-.05.34 1.66.41 3.41.5 5.09.17 2.9.24 5.81.28 8.71l.03 3.17c-.17.07-.34.14-.51.2-.06-4.96-.21-10.58-.51-17.12h.01Zm16.04 5.62c-1.16 2.25-3.06 4.1-5.02 5.66-2.8 2.23-5.99 3.97-9.3 5.35-.01-3.56-.09-7.12-.27-10.67-.1-2.04-.16-4.16-.57-6.18 3.3-.78 6.72-1.36 10.1-1.1 1.85.14 4.23.59 5.32 2.29.92 1.43.46 3.24-.26 4.65Zm.85-.18c.6-1.37.9-2.92.28-4.32-.67-1.52-2.2-2.32-3.76-2.74.46.1.89.21 1.29.37 1.74.67 2.69 1.88 2.93 3.21.2 1.13-.05 2.25-.74 3.47V70Zm-27.47-4.14c-.12-.19-.23-.38-.34-.57.74.42.85.36.99.41v.08c-.22.03-.43.06-.65.08Zm11.21 30.46c-.08 1.08-.16 2.17-.33 3.24-.05.35-.11.69-.2 1.03 0 .04-.02.07-.03.11-.15.02-.3.04-.45.05.45-1.64.76-3.36.79-5.07.03-.29.08-.57.1-.89-.03-.31-.03-.47.24-.57-.04.69-.07 1.39-.12 2.08v.02Zm5.6-2.47c.48.11.92.52 2.49 1.72-.46-.32-.92-.65-1.38-.97-.37-.25-.73-.5-1.1-.75h-.01Zm21.23 7.24a70.76 70.76 0 0 1-4.37 4.63c-.14-.09-.27-.19-.4-.28.19-.09.37-.24.55-.47.87-1.14 5.43-5.51 5.49-7.45.31.26.62.53.92.79-.67.97-1.42 1.88-2.19 2.77v.01Z",fill:"currentColor",transform:"translate(-144.023 -51.76)"})]})},_e=function(ot){var Rt=ot.style,_t=ot.size,At=_t===void 0?"small":_t,br=ot.withText;return(0,u.jsxs)("div",{className:"ExcalidrawLogo is-".concat(At),style:Rt,children:[(0,u.jsx)(we,{}),br&&(0,u.jsx)(xe,{})]})},Oe=["onSelect","children","icon","shortcut","className"],J=["children","href","icon","shortcut","className"];function ke(ot,Rt){var _t=Object.keys(ot);if(Object.getOwnPropertySymbols){var At=Object.getOwnPropertySymbols(ot);Rt&&(At=At.filter(function(br){return Object.getOwnPropertyDescriptor(ot,br).enumerable})),_t.push.apply(_t,At)}return _t}function q(ot){for(var Rt=1;Rt<arguments.length;Rt++){var _t=arguments[Rt]!=null?arguments[Rt]:{};Rt%2?ke(Object(_t),!0).forEach(function(At){(0,te.Z)(ot,At,_t[At])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ot,Object.getOwnPropertyDescriptors(_t)):ke(Object(_t)).forEach(function(At){Object.defineProperty(ot,At,Object.getOwnPropertyDescriptor(_t,At))})}return ot}var o=function(ot){var Rt=ot.icon,_t=ot.shortcut,At=ot.children,br=(0,le.Fy)();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"welcome-screen-menu-item__icon",children:Rt}),(0,u.jsx)("div",{className:"welcome-screen-menu-item__text",children:At}),_t&&!br.editor.isMobile&&(0,u.jsx)("div",{className:"welcome-screen-menu-item__shortcut",children:_t})]})};o.displayName="WelcomeScreenMenuItemContent";var i=function(ot){var Rt=ot.onSelect,_t=ot.children,At=ot.icon,br=ot.shortcut,xr=ot.className,jr=xr===void 0?"":xr,Ar=(0,L.Z)(ot,Oe);return(0,u.jsx)("button",q(q({},Ar),{},{type:"button",className:"welcome-screen-menu-item ".concat(jr),onClick:Rt,children:(0,u.jsx)(o,{icon:At,shortcut:br,children:_t})}))};i.displayName="WelcomeScreenMenuItem";var p=function(ot){var Rt=ot.children,_t=ot.href,At=ot.icon,br=ot.shortcut,xr=ot.className,jr=xr===void 0?"":xr,Ar=(0,L.Z)(ot,J);return(0,u.jsx)("a",q(q({},Ar),{},{className:"welcome-screen-menu-item ".concat(jr),href:_t,target:"_blank",rel:"noreferrer",children:(0,u.jsx)(o,{icon:At,shortcut:br,children:Rt})}))};p.displayName="WelcomeScreenMenuItemLink";var B=function(ot){var Rt=ot.children,_t=(0,k.R6)().WelcomeScreenCenterTunnel;return(0,u.jsx)(_t.In,{children:(0,u.jsx)("div",{className:"welcome-screen-center",children:Rt||(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(A,{}),(0,u.jsx)(X,{children:(0,W.t)("welcomeScreen.defaults.center_heading")}),(0,u.jsxs)(Y,{children:[(0,u.jsx)(ge,{}),(0,u.jsx)(ee,{})]})]})})})};B.displayName="Center";var A=function(ot){var Rt=ot.children;return(0,u.jsx)("div",{className:"welcome-screen-center__logo virgil welcome-screen-decor",children:Rt||(0,u.jsx)(_e,{withText:!0})})};A.displayName="Logo";var X=function(ot){var Rt=ot.children;return(0,u.jsx)("div",{className:"welcome-screen-center__heading welcome-screen-decor virgil",children:Rt})};X.displayName="Heading";var Y=function(ot){var Rt=ot.children;return(0,u.jsx)("div",{className:"welcome-screen-menu",children:Rt})};Y.displayName="Menu";var ee=function(){var ot=(0,le.eh)();return(0,u.jsx)(i,{onSelect:function(){return ot.executeAction(re.jY)},shortcut:"?",icon:Ce.by,children:(0,W.t)("helpDialog.title")})};ee.displayName="MenuItemHelp";var ge=function(){var ot=(0,G.I)(),Rt=(0,le.eh)();return ot.viewModeEnabled?null:(0,u.jsx)(i,{onSelect:function(){return Rt.executeAction(re._d)},shortcut:(0,me.C)("loadScene"),icon:Ce.Tl,children:(0,W.t)("buttons.load")})};ge.displayName="MenuItemLoadScene";var be=function(ot){var Rt=ot.onSelect,_t=(0,W.QT)().t;return(0,u.jsx)(i,{shortcut:null,onSelect:Rt,icon:Ce.jn,children:_t("labels.liveCollaboration")})};be.displayName="MenuItemLiveCollaborationTrigger",B.Logo=A,B.Heading=X,B.Menu=Y,B.MenuItem=i,B.MenuItemLink=p,B.MenuItemHelp=ee,B.MenuItemLoadScene=ge,B.MenuItemLiveCollaborationTrigger=be;var Re=function(ot){var Rt=ot.children,_t=(0,k.R6)().WelcomeScreenMenuHintTunnel;return(0,u.jsx)(_t.In,{children:(0,u.jsxs)("div",{className:"virgil welcome-screen-decor welcome-screen-decor-hint welcome-screen-decor-hint--menu",children:[Ce.oQ,(0,u.jsx)("div",{className:"welcome-screen-decor-hint__label",children:Rt||(0,W.t)("welcomeScreen.defaults.menuHint")})]})})};Re.displayName="MenuHint";var Ze=function(ot){var Rt=ot.children,_t=(0,k.R6)().WelcomeScreenToolbarHintTunnel;return(0,u.jsx)(_t.In,{children:(0,u.jsxs)("div",{className:"virgil welcome-screen-decor welcome-screen-decor-hint welcome-screen-decor-hint--toolbar",children:[(0,u.jsx)("div",{className:"welcome-screen-decor-hint__label",children:Rt||(0,W.t)("welcomeScreen.defaults.toolbarHint")}),Ce.DJ]})})};Ze.displayName="ToolbarHint";var Be=function(ot){var Rt=ot.children,_t=(0,k.R6)().WelcomeScreenHelpHintTunnel;return(0,u.jsx)(_t.In,{children:(0,u.jsxs)("div",{className:"virgil welcome-screen-decor welcome-screen-decor-hint welcome-screen-decor-hint--help",children:[(0,u.jsx)("div",{children:Rt||(0,W.t)("welcomeScreen.defaults.helpHint")}),Ce._U]})})};Be.displayName="HelpHint";var Ie=e(1569),Ke={};Ke.styleTagTransform=f(),Ke.setAttributes=_(),Ke.insert=b().bind(null,"head"),Ke.domAPI=P(),Ke.insertStyleElement=O(),pe()(Ie.Z,Ke),Ie.Z&&Ie.Z.locals&&Ie.Z.locals;var Ye=function(ot){return(0,u.jsx)(u.Fragment,{children:ot.children||(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(B,{}),(0,u.jsx)(Re,{}),(0,u.jsx)(Ze,{}),(0,u.jsx)(Be,{})]})})};Ye.displayName="WelcomeScreen",Ye.Center=B,Ye.Hints={MenuHint:Re,ToolbarHint:Ze,HelpHint:Be};var tt=Ye,ue=e(8806),ve=e(3397),De={};De.styleTagTransform=f(),De.setAttributes=_(),De.insert=b().bind(null,"head"),De.domAPI=P(),De.insertStyleElement=O(),pe()(ve.Z,De),ve.Z&&ve.Z.locals&&ve.Z.locals;var He=["isCollaborating","onSelect"];function Je(ot,Rt){var _t=Object.keys(ot);if(Object.getOwnPropertySymbols){var At=Object.getOwnPropertySymbols(ot);Rt&&(At=At.filter(function(br){return Object.getOwnPropertyDescriptor(ot,br).enumerable})),_t.push.apply(_t,At)}return _t}function qe(ot){for(var Rt=1;Rt<arguments.length;Rt++){var _t=arguments[Rt]!=null?arguments[Rt]:{};Rt%2?Je(Object(_t),!0).forEach(function(At){(0,te.Z)(ot,At,_t[At])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ot,Object.getOwnPropertyDescriptors(_t)):Je(Object(_t)).forEach(function(At){Object.defineProperty(ot,At,Object.getOwnPropertyDescriptor(_t,At))})}return ot}var st=function(ot){var Rt=ot.isCollaborating,_t=ot.onSelect,At=(0,L.Z)(ot,He),br=(0,G.I)();return(0,u.jsxs)(ue.z,qe(qe({},At),{},{className:(0,j.Z)("collab-button",{active:Rt}),type:"button",onSelect:_t,style:{position:"relative"},title:(0,W.t)("labels.liveCollaboration"),children:[Ce.jn,br.collaborators.size>0&&(0,u.jsx)("div",{className:"CollabButton-collaborators",children:br.collaborators.size})]}))},ht=st;st.displayName="LiveCollaborationTrigger";var et=e(7651),wt=e(7994),Lt=e(507),St=e(4183),yt=e(583),Wt=e(9326),Ft=e(5902),Ve=e(1925),bt=e(8020),at=e(6199),mt=e(4949),ut=e(6013),Ot=["initialData","UIOptions"],Pt=["initialData","UIOptions"];function Gt(ot,Rt){var _t=Object.keys(ot);if(Object.getOwnPropertySymbols){var At=Object.getOwnPropertySymbols(ot);Rt&&(At=At.filter(function(br){return Object.getOwnPropertyDescriptor(ot,br).enumerable})),_t.push.apply(_t,At)}return _t}function Ct(ot){for(var Rt=1;Rt<arguments.length;Rt++){var _t=arguments[Rt]!=null?arguments[Rt]:{};Rt%2?Gt(Object(_t),!0).forEach(function(At){h()(ot,At,_t[At])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ot,Object.getOwnPropertyDescriptors(_t)):Gt(Object(_t)).forEach(function(At){Object.defineProperty(ot,At,Object.getOwnPropertyDescriptor(_t,At))})}return ot}var ur=function(ot){var Rt,_t,At,br,xr,jr,Ar=ot.onChange,fr=ot.initialData,dt=ot.excalidrawAPI,ft=ot.isCollaborating,vt=ft!==void 0&&ft,Et=ot.onPointerUpdate,tr=ot.renderTopRightUI,ir=ot.langCode,Qt=ir===void 0?W.Fp.code:ir,_r=ot.viewModeEnabled,sr=ot.zenModeEnabled,mr=ot.gridModeEnabled,Zr=ot.libraryReturnUrl,or=ot.theme,lr=ot.name,gr=ot.renderCustomStats,cr=ot.onPaste,Hr=ot.detectScroll,vr=Hr===void 0||Hr,Rr=ot.handleKeyboardGlobally,an=Rr!==void 0&&Rr,Sn=ot.onLibraryChange,Mn=ot.autoFocus,Zn=Mn!==void 0&&Mn,Rn=ot.generateIdForFile,bn=ot.onLinkOpen,yn=ot.onPointerDown,Un=ot.onScrollChange,ne=ot.children,Ee=ot.validateEmbeddable,Pe=ot.renderEmbeddable,ze=(Rt=ot.UIOptions)===null||Rt===void 0?void 0:Rt.canvasActions,pt=Ct(Ct({},ot.UIOptions),{},{canvasActions:Ct(Ct({},c.cW.canvasActions),ze),tools:{image:(_t=(At=ot.UIOptions)===null||At===void 0||(br=At.tools)===null||br===void 0?void 0:br.image)===null||_t===void 0||_t}});return ze!=null&&ze.export&&(pt.canvasActions.export.saveFileToDisk=(xr=(jr=ze.export)===null||jr===void 0?void 0:jr.saveFileToDisk)!==null&&xr!==void 0?xr:c.cW.canvasActions.export.saveFileToDisk),pt.canvasActions.toggleTheme===null&&or===void 0&&(pt.canvasActions.toggleTheme=!0),(0,S.useEffect)(function(){var Ut=function(zt){typeof zt.scale=="number"&&zt.scale!==1&&zt.preventDefault()};return document.addEventListener("touchmove",Ut,{passive:!1}),function(){document.removeEventListener("touchmove",Ut)}},[]),(0,u.jsx)(m.zt,{unstable_createStore:function(){return z.e_},scope:z.yE,children:(0,u.jsx)(U,{langCode:Qt,theme:or,children:(0,u.jsx)(le.ZP,{onChange:Ar,initialData:fr,excalidrawAPI:dt,isCollaborating:vt,onPointerUpdate:Et,renderTopRightUI:tr,langCode:Qt,viewModeEnabled:_r,zenModeEnabled:sr,gridModeEnabled:mr,libraryReturnUrl:Zr,theme:or,name:lr,renderCustomStats:gr,UIOptions:pt,onPaste:cr,detectScroll:vr,handleKeyboardGlobally:an,onLibraryChange:Sn,autoFocus:Zn,generateIdForFile:Rn,onLinkOpen:bn,onPointerDown:yn,onScrollChange:Un,validateEmbeddable:Ee,renderEmbeddable:Pe,children:ne})})})},rr=function(ot,Rt){if(ot.children!==Rt.children)return!1;ot.initialData;var _t=ot.UIOptions,At=_t===void 0?{}:_t,br=E()(ot,Ot),xr=(Rt.initialData,Rt.UIOptions),jr=xr===void 0?{}:xr,Ar=E()(Rt,Pt),fr=Object.keys(At),dt=Object.keys(jr);return fr.length===dt.length&&fr.every(function(ft){return ft==="canvasActions"?Object.keys(At.canvasActions).every(function(vt){var Et,tr,ir,Qt;return vt==="export"&&At!=null&&(Et=At.canvasActions)!==null&&Et!==void 0&&Et.export&&jr!=null&&(tr=jr.canvasActions)!==null&&tr!==void 0&&tr.export?At.canvasActions.export.saveFileToDisk===jr.canvasActions.export.saveFileToDisk:(At==null||(ir=At.canvasActions)===null||ir===void 0?void 0:ir[vt])===(jr==null||(Qt=jr.canvasActions)===null||Qt===void 0?void 0:Qt[vt])}):At[ft]===jr[ft]})&&(0,de.w8)(br,Ar)},Tr=I().memo(ur,rr);Tr.displayName="Excalidraw"},507:function(Se,Q,e){e.d(Q,{y8:function(){return pe},Fl:function(){return g},NL:function(){return _},i1:function(){return s},$D:function(){return O},N7:function(){return P.N7},cT:function(){return oe.cT},lV:function(){return oe.lV},ZY:function(){return oe.ZY},zh:function(){return $.zh},I_:function(){return Z.I_},NI:function(){return Z.NI}});var D=e(8950),E=e(7169),y=e(2975),h=e.n(y),S=e(3668),I=e(6853),v=e(7994),n=e(9937),M=e(250),Z=e(4419),H=e(4694);function W(f){return[Math.min(f[0][0],f[1][0]),Math.min(f[0][1],f[1][1]),Math.max(f[0][0],f[1][0]),Math.max(f[0][1],f[1][1])]}function u(f,t){return f[0]*t[1]-t[0]*f[1]}function U(f,t){return[f[0]-t[0],f[1]-t[1]]}function le(f,t){var w=u(U(f[1],f[0]),U(t,f[0]));return Math.abs(w)<1e-6}function de(f,t){return u(U(f[1],f[0]),U(t,f[0]))<0}function he(f,t){return le(f,t[0])||le(f,t[1])||(de(f,t[0])?!de(f,t[1]):de(f,t[1]))}function pe(f,t){return function(w,l){return w[0]<=l[2]&&w[2]>=l[0]&&w[1]<=l[3]&&w[3]>=l[1]}(W(f),W(t))&&he(f,t)&&he(t,f)}e(6013);var oe=e(5796),P=e(9660),$=e(9326);function b(f,t){var w=Object.keys(f);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(f);t&&(l=l.filter(function(a){return Object.getOwnPropertyDescriptor(f,a).enumerable})),w.push.apply(w,l)}return w}function R(f){for(var t=1;t<arguments.length;t++){var w=arguments[t]!=null?arguments[t]:{};t%2?b(Object(w),!0).forEach(function(l){(0,E.Z)(f,l,w[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(w)):b(Object(w)).forEach(function(l){Object.defineProperty(f,l,Object.getOwnPropertyDescriptor(w,l))})}return f}var _=function(f){var t=f.elements,w=f.appState,l=f.files,a=f.maxWidthOrHeight,c=f.getDimensions,m=f.exportPadding,z=f.exportingFrame,j=(0,v.nu)({elements:t,appState:w},null,null),k=j.elements,x=j.appState,N=x.exportBackground,G=x.viewBackgroundColor;return(0,S.NL)(k,R(R({},x),{},{offsetTop:0,offsetLeft:0,width:0,height:0}),l||{},{exportBackground:N,exportPadding:m,viewBackgroundColor:G,exportingFrame:z},function(ie,V){var ce,te=document.createElement("canvas");if(a){var L;typeof c=="function"&&console.warn("`getDimensions()` is ignored when `maxWidthOrHeight` is supplied.");var re=Math.max(ie,V),me=a<re?a/re:(L=w?.exportScale)!==null&&L!==void 0?L:1;return te.width=ie*me,te.height=V*me,{canvas:te,scale:me}}var Ce=c?.(ie,V)||{width:ie,height:V};return te.width=Ce.width,te.height=Ce.height,{canvas:te,scale:(ce=Ce.scale)!==null&&ce!==void 0?ce:1}})},g=function(){var f=(0,D.Z)(h().mark(function t(w){var l,a,c,m,z,j;return h().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return c=(a=w).mimeType,m=c===void 0?n.LO.png:c,z=a.quality,m===n.LO.png&&typeof z=="number"&&console.warn('"quality" will be ignored for "'.concat(n.LO.png,'" mimeType')),m==="image/jpg"&&(m=n.LO.jpg),m!==n.LO.jpg||(l=w.appState)!==null&&l!==void 0&&l.exportBackground||(console.warn('Defaulting "exportBackground" to "true" for "'.concat(n.LO.jpg,'" mimeType')),w=R(R({},w),{},{appState:R(R({},w.appState),{},{exportBackground:!0})})),k.next=6,_(w);case 6:return j=k.sent,z=z||(/image\/jpe?g/.test(m)?.92:.8),k.abrupt("return",new Promise(function(x,N){j.toBlob(function(){var G=(0,D.Z)(h().mark(function ie(V){var ce;return h().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(V){te.next=2;break}return te.abrupt("return",N(new Error("couldn't export to blob")));case 2:if(!V||m!==n.LO.png||(ce=w.appState)===null||ce===void 0||!ce.exportEmbedScene){te.next=6;break}return te.next=5,(0,M.encodePngMetadata)({blob:V,metadata:(0,Z.I_)(w.elements,w.appState,w.files||{},"local")});case 5:V=te.sent;case 6:x(V);case 7:case"end":return te.stop()}},ie)}));return function(ie){return G.apply(this,arguments)}}(),m,z)}));case 9:case"end":return k.stop()}},t)}));return function(t){return f.apply(this,arguments)}}(),O=function(){var f=(0,D.Z)(h().mark(function t(w){var l,a,c,m,z,j,k,x,N,G,ie,V;return h().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return l=w.elements,a=w.appState,c=a===void 0?(0,I.im)():a,m=w.files,z=m===void 0?{}:m,j=w.exportPadding,k=w.renderEmbeddables,x=w.exportingFrame,N=(0,v.nu)({elements:l,appState:c},null,null),G=N.elements,ie=N.appState,V=R(R({},ie),{},{exportPadding:j}),ce.abrupt("return",(0,S.$D)(G,V,z,{exportingFrame:x,renderEmbeddables:k}));case 4:case"end":return ce.stop()}},t)}));return function(t){return f.apply(this,arguments)}}(),s=function(){var f=(0,D.Z)(h().mark(function t(w){var l;return h().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(w.type!=="svg"){a.next=8;break}return a.next=3,O(w);case 3:return l=a.sent,a.next=6,(0,H.dd)(l.outerHTML);case 6:case 11:case 16:a.next=19;break;case 8:if(w.type!=="png"){a.next=13;break}return a.next=11,(0,H.uR)(g(w));case 13:if(w.type!=="json"){a.next=18;break}return a.next=16,(0,H.vQ)(w.elements,w.files);case 18:throw new Error("Invalid export type");case 19:case"end":return a.stop()}},t)}));return function(t){return f.apply(this,arguments)}}()},6013:function(Se,Q,e){e.d(Q,{Ne:function(){return M},Xs:function(){return H},sQ:function(){return Z}});var D=e(2577),E=e(4183),y=e(2361),h=e(4949);function S(W,u){var U=typeof Symbol<"u"&&W[Symbol.iterator]||W["@@iterator"];if(!U){if(Array.isArray(W)||(U=function(P,$){if(P){if(typeof P=="string")return I(P,$);var b=Object.prototype.toString.call(P).slice(8,-1);if(b==="Object"&&P.constructor&&(b=P.constructor.name),b==="Map"||b==="Set")return Array.from(P);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return I(P,$)}}(W))||u&&W&&typeof W.length=="number"){U&&(W=U);var le=0,de=function(){};return{s:de,n:function(){return le>=W.length?{done:!0}:{done:!1,value:W[le++]}},e:function(P){throw P},f:de}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var he,pe=!0,oe=!1;return{s:function(){U=U.call(W)},n:function(){var P=U.next();return pe=P.done,P},e:function(P){oe=!0,he=P},f:function(){try{pe||U.return==null||U.return()}finally{if(oe)throw he}}}}function I(W,u){(u==null||u>W.length)&&(u=W.length);for(var U=0,le=new Array(u);U<u;U++)le[U]=W[U];return le}var v=function(W){var u=W.reduce(function(U,le){var de=(0,D.Z)(le,2),he=de[0],pe=de[1];return U.minY=Math.min(U.minY,pe),U.minX=Math.min(U.minX,he),U.maxX=Math.max(U.maxX,he),U.maxY=Math.max(U.maxY,pe),U},{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0,cx:0,cy:0});return u.cx=(u.maxX+u.minX)/2,u.cy=(u.maxY+u.minY)/2,u},n=function(W){var u=function(b){return(0,E.bt)(b)||(0,E.F9)(b)?b.points:function(R){return R.type==="diamond"?[[R.width/2,0],[R.width,R.height/2],[R.width/2,R.height],[0,R.height/2]]:[[0,0],[0+R.width,0],[0+R.width,R.height],[0,R.height]]}(b)}(W),U=v(u),le=[U.cx,U.cy],de=u.map(function(b){return(0,y.xj)([b[0],b[1]],le,W.angle)}),he=v(de),pe=he.minX,oe=he.minY,P=he.maxX,$=he.maxY;return[pe+W.x,oe+W.y,P+W.x,$+W.y]},M=function(W,u){var U=arguments.length>2&&arguments[2]!==void 0&&arguments[2],le=n(W),de=u[0]<=le[0]&&u[2]>=le[2]&&u[1]<=le[1]&&u[3]>=le[3];return U?!!de||le[0]<=u[0]&&le[2]>=u[2]&&le[1]<=u[1]&&le[3]>=u[3]:de},Z=function(W,u){var U=n(W);return((0,y.Xt)(U[0],u[0],u[2])||(0,y.Xt)(u[0],U[0],U[2]))&&((0,y.Xt)(U[1],u[1],u[3])||(0,y.Xt)(u[1],U[1],U[3]))},H=function(W){var u=W.elements,U=W.bounds,le=W.type,de=W.errorMargin,he=de===void 0?0:de;(0,E.r2)(U)&&(U=(0,h.Pi)(U));var pe,oe=[U[0]-he,U[1]-he,U[2]+he,U[3]+he],P=new Set,$=S(u);try{for($.s();!(pe=$.n()).done;){var b=pe.value;if(!P.has(b.id)&&(le==="overlap"?Z(b,oe):le==="inside"?M(b,oe):M(b,oe,!0))){if(P.add(b.id),b.boundElements){var R,_=S(b.boundElements);try{for(_.s();!(R=_.n()).done;){var g=R.value;P.add(g.id)}}catch(s){_.e(s)}finally{_.f()}}var O;(0,E.iB)(b)&&b.containerId&&P.add(b.containerId),(0,E.Yv)(b)&&(b.startBinding&&P.add(b.startBinding.elementId),b.endBinding&&P.add((O=b.endBinding)===null||O===void 0?void 0:O.elementId))}}}catch(s){$.e(s)}finally{$.f()}return u.filter(function(s){return P.has(s.id)})}},5999:function(Se,Q,e){e.d(Q,{k:function(){return E},z:function(){return y}});var D=e(1930),E=function(h){var S=h.map(function(v){return v[0]}),I=h.map(function(v){return v[1]});return{width:Math.max.apply(Math,(0,D.Z)(S))-Math.min.apply(Math,(0,D.Z)(S)),height:Math.max.apply(Math,(0,D.Z)(I))-Math.min.apply(Math,(0,D.Z)(I))}},y=function(h,S,I,v){var n=I.map(function(de){return de[h]}),M=Math.max.apply(Math,(0,D.Z)(n)),Z=Math.min.apply(Math,(0,D.Z)(n)),H=M-Z,W=H===0?1:S/H,u=1/0,U=I.map(function(de){var he=de[h]*W,pe=(0,D.Z)(de);return pe[h]=he,he<u&&(u=he),pe});if(!v||U.length===2)return U;var le=Z-u;return U.map(function(de){return de.map(function(he,pe){return pe===h?he+le:he})})}},4643:function(Se,Q,e){e.d(Q,{LU:function(){return I},kb:function(){return v}});var D=e(8152),E=e(5605),y=e(9827),h=new D.k(Date.now()),S=0,I=function(){return Math.floor(h.next()*Math.pow(2,31))},v=function(){return(0,y.h2)()?"id".concat(S++):(0,E.x0)()}},9660:function(Se,Q,e){e.d(Q,{Dn:function(){return ie},Xx:function(){return L},Lc:function(){return Oe},N7:function(){return J},lw:function(){return We},Rg:function(){return xe},uI:function(){return Ce}});var D=e(7169),E=e(2577),y=e(4183),h=e(4949),S=e(9827),I=e(2361),v=e(9845),n=e(6853),M=e(9937);function Z(o,i,p,B=A=>A){return o*B(.5-i*(.5-p))}function H(o,i){return[o[0]+i[0],o[1]+i[1]]}function W(o,i){return[o[0]-i[0],o[1]-i[1]]}function u(o,i){return[o[0]*i,o[1]*i]}function U(o){return[o[1],-o[0]]}function le(o,i){return o[0]*i[0]+o[1]*i[1]}function de(o,i){return o[0]===i[0]&&o[1]===i[1]}function he(o,i){return function(p){return p[0]*p[0]+p[1]*p[1]}(W(o,i))}function pe(o){return function(i,p){return[i[0]/p,i[1]/p]}(o,function(i){return Math.hypot(i[0],i[1])}(o))}function oe(o,i){return Math.hypot(o[1]-i[1],o[0]-i[0])}function P(o,i,p){let B=Math.sin(p),A=Math.cos(p),X=o[0]-i[0],Y=o[1]-i[1],ee=X*B+Y*A;return[X*A-Y*B+i[0],ee+i[1]]}function $(o,i,p){return H(o,u(W(i,o),p))}function b(o,i,p){return H(o,u(i,p))}var{min:R,PI:_}=Math,g=_+1e-4;function O(o,i={}){return function(p,B={}){let{size:A=16,smoothing:X=.5,thinning:Y=.5,simulatePressure:ee=!0,easing:ge=mt=>mt,start:be={},end:Re={},last:Ze=!1}=B,{cap:Be=!0,easing:Ie=mt=>mt*(2-mt)}=be,{cap:Ke=!0,easing:Ye=mt=>--mt*mt*mt+1}=Re;if(p.length===0||A<=0)return[];let tt,ue=p[p.length-1].runningLength,ve=be.taper===!1?0:be.taper===!0?Math.max(A,ue):be.taper,De=Re.taper===!1?0:Re.taper===!0?Math.max(A,ue):Re.taper,He=Math.pow(A*X,2),Je=[],qe=[],st=p.slice(0,10).reduce((mt,ut)=>{let Ot=ut.pressure;if(ee){let Pt=R(1,ut.distance/A),Gt=R(1,1-Pt);Ot=R(1,mt+.275*Pt*(Gt-mt))}return(mt+Ot)/2},p[0].pressure),ht=Z(A,Y,p[p.length-1].pressure,ge),et=p[0].vector,wt=p[0].point,Lt=wt,St=wt,yt=Lt,Wt=!1;for(let mt=0;mt<p.length;mt++){let{pressure:ut}=p[mt],{point:Ot,vector:Pt,distance:Gt,runningLength:Ct}=p[mt];if(mt<p.length-1&&ue-Ct<3)continue;if(Y){if(ee){let At=R(1,Gt/A),br=R(1,1-At);ut=R(1,st+.275*At*(br-st))}ht=Z(A,Y,ut,ge)}else ht=A/2;tt===void 0&&(tt=ht);let ur=Ct<ve?Ie(Ct/ve):1,rr=ue-Ct<De?Ye((ue-Ct)/De):1;ht=Math.max(.01,ht*Math.min(ur,rr));let Tr=(mt<p.length-1?p[mt+1]:p[mt]).vector,ot=mt<p.length-1?le(Pt,Tr):1,Rt=ot!==null&&ot<0;if(le(Pt,et)<0&&!Wt||Rt){let At=u(U(et),ht);for(let br=.07692307692307693,xr=0;xr<=1;xr+=br)St=P(W(Ot,At),Ot,g*xr),Je.push(St),yt=P(H(Ot,At),Ot,g*-xr),qe.push(yt);wt=St,Lt=yt,Rt&&(Wt=!0);continue}if(Wt=!1,mt===p.length-1){let At=u(U(Pt),ht);Je.push(W(Ot,At)),qe.push(H(Ot,At));continue}let _t=u(U($(Tr,Pt,ot)),ht);St=W(Ot,_t),(mt<=1||he(wt,St)>He)&&(Je.push(St),wt=St),yt=H(Ot,_t),(mt<=1||he(Lt,yt)>He)&&(qe.push(yt),Lt=yt),st=ut,et=Pt}let Ft=p[0].point.slice(0,2),Ve=p.length>1?p[p.length-1].point.slice(0,2):H(p[0].point,[1,1]),bt=[],at=[];if(p.length===1){if(!ve&&!De||Ze){let mt=b(Ft,pe(U(W(Ft,Ve))),-(tt||ht)),ut=[];for(let Ot=.07692307692307693,Pt=Ot;Pt<=1;Pt+=Ot)ut.push(P(mt,Ft,2*g*Pt));return ut}}else{if(!(ve||De&&p.length===1))if(Be)for(let ut=.07692307692307693,Ot=ut;Ot<=1;Ot+=ut){let Pt=P(qe[0],Ft,g*Ot);bt.push(Pt)}else{let ut=W(Je[0],qe[0]),Ot=u(ut,.5),Pt=u(ut,.51);bt.push(W(Ft,Ot),W(Ft,Pt),H(Ft,Pt),H(Ft,Ot))}let mt=U(function(ut){return[-ut[0],-ut[1]]}(p[p.length-1].vector));if(De||ve&&p.length===1)at.push(Ve);else if(Ke){let ut=b(Ve,mt,ht);for(let Ot=.034482758620689655,Pt=Ot;Pt<1;Pt+=Ot)at.push(P(ut,Ve,3*g*Pt))}else at.push(H(Ve,u(mt,ht)),H(Ve,u(mt,.99*ht)),W(Ve,u(mt,.99*ht)),W(Ve,u(mt,ht)))}return Je.concat(at,qe.reverse(),bt)}(function(p,B={}){var A;let{streamline:X=.5,size:Y=16,last:ee=!1}=B;if(p.length===0)return[];let ge=.15+.85*(1-X),be=Array.isArray(p[0])?p:p.map(({x:Ye,y:tt,pressure:ue=.5})=>[Ye,tt,ue]);if(be.length===2){let Ye=be[1];be=be.slice(0,-1);for(let tt=1;tt<5;tt++)be.push($(be[0],Ye,tt/4))}be.length===1&&(be=[...be,[...H(be[0],[1,1]),...be[0].slice(2)]]);let Re=[{point:[be[0][0],be[0][1]],pressure:be[0][2]>=0?be[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],Ze=!1,Be=0,Ie=Re[0],Ke=be.length-1;for(let Ye=1;Ye<be.length;Ye++){let tt=ee&&Ye===Ke?be[Ye].slice(0,2):$(Ie.point,be[Ye],ge);if(de(Ie.point,tt))continue;let ue=oe(tt,Ie.point);if(Be+=ue,Ye<Ke&&!Ze){if(Be<Y)continue;Ze=!0}Ie={point:tt,pressure:be[Ye][2]>=0?be[Ye][2]:.5,vector:pe(W(Ie.point,tt)),distance:ue,runningLength:Be},Re.push(Ie)}return Re[0].vector=((A=Re[1])==null?void 0:A.vector)||[0,0],Re}(o,i),i)}var s=e(4761),f=e(7422),t=e(761),w=e(4682),l=e(8020),a=e(2921);function c(o,i){var p=Object.keys(o);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(o);i&&(B=B.filter(function(A){return Object.getOwnPropertyDescriptor(o,A).enumerable})),p.push.apply(p,B)}return p}function m(o){for(var i=1;i<arguments.length;i++){var p=arguments[i]!=null?arguments[i]:{};i%2?c(Object(p),!0).forEach(function(B){(0,D.Z)(o,B,p[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(p)):c(Object(p)).forEach(function(B){Object.defineProperty(o,B,Object.getOwnPropertyDescriptor(p,B))})}return o}var z="invert(100%) hue-rotate(180deg) saturate(1.25)",j=(0,n.im)(),k=function(o,i){return(0,y.wi)(o)&&!i.imageCache.has(o.fileId)},x=function(o,i,p){var B;return p.theme==="dark"&&(0,y.wi)(o)&&!k(o,i)&&((B=i.imageCache.get(o.fileId))===null||B===void 0?void 0:B.mimeType)!==M.LO.svg},N=function(o){return o.type==="freedraw"?12*o.strokeWidth:20},G=function(o,i,p,B){var A,X,Y=document.createElement("canvas"),ee=Y.getContext("2d"),ge=N(o),be=function(He,Je){var qe=16777216,st=32767,ht=N(He),et=(0,h.qf)(He),wt=(0,E.Z)(et,4),Lt=wt[0],St=wt[1],yt=wt[2],Wt=wt[3],Ft=(0,y.bt)(He)||(0,y.F9)(He)?(0,S.TE)(Lt,yt):He.width,Ve=(0,y.bt)(He)||(0,y.F9)(He)?(0,S.TE)(St,Wt):He.height,bt=Ft*window.devicePixelRatio+2*ht,at=Ve*window.devicePixelRatio+2*ht,mt=Je.value;return(bt*mt>st||at*mt>st)&&(mt=Math.min(st/bt,st/at)),bt*at*mt*mt>qe&&(mt=Math.sqrt(qe/(bt*at))),{width:bt=Math.floor(bt*mt),height:at=Math.floor(at*mt),scale:mt}}(o,i),Re=be.width,Ze=be.height,Be=be.scale;Y.width=Re,Y.height=Ze;var Ie=0,Ke=0;if((0,y.bt)(o)||(0,y.F9)(o)){var Ye=(0,h.qf)(o),tt=(0,E.Z)(Ye,2),ue=tt[0],ve=tt[1];Ie=o.x>ue?(0,S.TE)(o.x,ue)*window.devicePixelRatio*Be:0,Ke=o.y>ve?(0,S.TE)(o.y,ve)*window.devicePixelRatio*Be:0,ee.translate(Ie,Ke)}ee.save(),ee.translate(ge*Be,ge*Be),ee.scale(window.devicePixelRatio*Be,window.devicePixelRatio*Be);var De=v.Z.canvas(Y);return x(o,p,B)&&(ee.filter=z),te(o,De,ee,p,B),ee.restore(),{element:o,canvas:Y,theme:B.theme,scale:Be,zoomValue:i.value,canvasOffsetX:Ie,canvasOffsetY:Ke,boundTextElementVersion:((A=(0,s.WJ)(o))===null||A===void 0?void 0:A.version)||null,containingFrameOpacity:((X=(0,w.$Z)(o))===null||X===void 0?void 0:X.opacity)||100}},ie=14,V=document.createElement("img");V.src="data:".concat(M.LO.svg,",").concat(encodeURIComponent('<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="image" class="svg-inline--fa fa-image fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#888" d="M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"></path></svg>'));var ce=document.createElement("img");ce.src="data:".concat(M.LO.svg,",").concat(encodeURIComponent('<svg viewBox="0 0 668 668" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2"><path d="M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48ZM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56ZM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48Z" style="fill:#888;fill-rule:nonzero" transform="matrix(.81709 0 0 .81709 124.825 145.825)"/><path d="M256 8C119.034 8 8 119.033 8 256c0 136.967 111.034 248 248 248s248-111.034 248-248S392.967 8 256 8Zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676ZM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676Z" style="fill:#888;fill-rule:nonzero" transform="matrix(.30366 0 0 .30366 506.822 60.065)"/></svg>'));var te=function(o,i,p,B,A){var X,Y;switch(p.globalAlpha=((X=(Y=(0,w.$Z)(o))===null||Y===void 0?void 0:Y.opacity)!==null&&X!==void 0?X:100)*o.opacity/1e4,o.type){case"rectangle":case"embeddable":case"diamond":case"ellipse":p.lineJoin="round",p.lineCap="round",i.draw(a.R.get(o));break;case"arrow":case"line":p.lineJoin="round",p.lineCap="round",a.R.get(o).forEach(function(ve){i.draw(ve)});break;case"freedraw":p.save(),p.fillStyle=o.strokeColor;var ee=function(ve){return _e.get(ve)}(o),ge=a.R.get(o);ge&&i.draw(ge),p.fillStyle=o.strokeColor,p.fill(ee),p.restore();break;case"image":var be,Re=(0,y.wi)(o)?(be=B.imageCache.get(o.fileId))===null||be===void 0?void 0:be.image:void 0;Re==null||Re instanceof Promise?function(ve,De,He){De.fillStyle="#E7E7E7",De.fillRect(0,0,ve.width,ve.height);var Je=Math.min(ve.width,ve.height),qe=Math.min(Je,Math.min(.4*Je,100));De.drawImage(ve.status==="error"?ce:V,ve.width/2-qe/2,ve.height/2-qe/2,qe,qe)}(o,p,A.zoom.value):p.drawImage(Re,0,0,o.width,o.height);break;default:if(!(0,y.iB)(o))throw new Error("Unimplemented type ".concat(o.type));var Ze=(0,S.dZ)(o.text),Be=Ze&&!p.canvas.isConnected;Be&&document.body.appendChild(p.canvas),p.canvas.setAttribute("dir",Ze?"rtl":"ltr"),p.save(),p.font=(0,S.mO)(o),p.fillStyle=o.strokeColor,p.textAlign=o.textAlign;for(var Ie=o.text.replace(/\r\n?/g,` +`).split(` +`),Ke=o.textAlign==="center"?o.width/2:o.textAlign==="right"?o.width:0,Ye=(0,s.Rg)(o.fontSize,o.lineHeight),tt=o.height-o.baseline,ue=0;ue<Ie.length;ue++)p.fillText(Ie[ue],Ke,(ue+1)*Ye-tt);p.restore(),Be&&p.canvas.remove()}p.globalAlpha=1},L=new WeakMap,re=function(o,i,p){var B,A,X=i?p.zoom:j.zoom,Y=L.get(o),ee=Y&&Y.zoomValue!==X.value&&!(p!=null&&p.shouldCacheIgnoreZoom),ge=((B=(0,s.WJ)(o))===null||B===void 0?void 0:B.version)||null,be=((A=(0,w.$Z)(o))===null||A===void 0?void 0:A.opacity)||100;if(!Y||ee||Y.theme!==p.theme||Y.boundTextElementVersion!==ge||Y.containingFrameOpacity!==be){var Re=G(o,X,i,p);return L.set(o,Re),Re}return Y},me=function(o,i,p,B){var A=o.element,X=N(A),Y=o.scale,ee=(0,h.qf)(A),ge=(0,E.Z)(ee,4),be=ge[0],Re=ge[1],Ze=ge[2],Be=ge[3];(0,y.F9)(A)&&(be=Math.floor(be),Ze=Math.ceil(Ze),Re=Math.floor(Re),Be=Math.ceil(Be));var Ie=((be+Ze)/2+B.scrollX)*window.devicePixelRatio,Ke=((Re+Be)/2+B.scrollY)*window.devicePixelRatio;i.save(),i.scale(1/window.devicePixelRatio,1/window.devicePixelRatio);var Ye=(0,s.WJ)(A);if((0,y.Yv)(A)&&Ye){var tt=document.createElement("canvas"),ue=tt.getContext("2d"),ve=Math.max((0,S.TE)(be,Ze),(0,S.TE)(Re,Be));tt.width=ve*window.devicePixelRatio*Y+X*o.scale*10,tt.height=ve*window.devicePixelRatio*Y+X*o.scale*10;var De=(tt.width-o.canvas.width)/2,He=(tt.height-o.canvas.height)/2;ue.translate(tt.width/2,tt.height/2),ue.rotate(A.angle),ue.drawImage(o.canvas,-o.canvas.width/2,-o.canvas.height/2,o.canvas.width,o.canvas.height);var Je=(0,h.qf)(Ye),qe=(0,E.Z)(Je,6),st=qe[4],ht=qe[5];ue.rotate(-A.angle);var et=tt.width/2-(st-be)*window.devicePixelRatio*Y-De-X*Y,wt=tt.height/2-(ht-Re)*window.devicePixelRatio*Y-He-X*Y;ue.translate(-et,-wt),ue.clearRect(-(Ye.width/2+M.gK)*window.devicePixelRatio*Y,-(Ye.height/2+M.gK)*window.devicePixelRatio*Y,(Ye.width+2*M.gK)*window.devicePixelRatio*Y,(Ye.height+2*M.gK)*window.devicePixelRatio*Y),i.translate(Ie,Ke),i.drawImage(tt,-(Ze-be)/2*window.devicePixelRatio-De/Y-X,-(Be-Re)/2*window.devicePixelRatio-He/Y-X,tt.width/Y,tt.height/Y)}else if(i.translate(Ie,Ke),i.rotate(A.angle),"scale"in o.element&&!k(A,p)&&i.scale(o.element.scale[0],o.element.scale[1]),i.translate(-Ie,-Ke),i.drawImage(o.canvas,(be+B.scrollX)*window.devicePixelRatio-X*o.scale/o.scale,(Re+B.scrollY)*window.devicePixelRatio-X*o.scale/o.scale,o.canvas.width/o.scale,o.canvas.height/o.scale),{VITE_APP_BACKEND_V2_GET_URL:"https://json.excalidraw.com/api/v2/",VITE_APP_BACKEND_V2_POST_URL:"https://json.excalidraw.com/api/v2/post/",VITE_APP_LIBRARY_URL:"https://libraries.excalidraw.com",VITE_APP_LIBRARY_BACKEND:"https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries",VITE_APP_PORTAL_URL:"https://portal.excalidraw.com",VITE_APP_PLUS_LP:"https://plus.excalidraw.com",VITE_APP_PLUS_APP:"https://app.excalidraw.com",VITE_APP_WS_SERVER_URL:"",VITE_APP_FIREBASE_CONFIG:'{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}',VITE_APP_DISABLE_TRACKING:"",VITE_PKG_NAME:"@excalidraw/excalidraw",VITE_PKG_VERSION:"0.17.0",VITE_IS_EXCALIDRAW_NPM_PACKAGE:!0}.VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX==="true"&&(0,y.Xo)(A)){var Lt=(0,s.WJ)(A),St=(0,s.cw)(A);i.strokeStyle="#c92a2a",i.lineWidth=3,i.strokeRect((St.x+B.scrollX)*window.devicePixelRatio,(St.y+B.scrollY)*window.devicePixelRatio,(0,s.iZ)(A)*window.devicePixelRatio,(0,s.D9)(A,Lt)*window.devicePixelRatio)}i.restore()},Ce=function(o,i,p){i.save(),i.translate(o.x+p.scrollX,o.y+p.scrollY),i.fillStyle="rgba(0, 0, 200, 0.04)";var B=.5/p.zoom.value;i.fillRect(B,B,o.width,o.height),i.lineWidth=1/p.zoom.value,i.strokeStyle=" rgb(105, 101, 219)",i.strokeRect(B,B,o.width,o.height),i.restore()},We=function(o,i,p,B,A){switch(o.type){case"frame":A.frameRendering.enabled&&A.frameRendering.outline&&(p.save(),p.translate(o.x+A.scrollX,o.y+A.scrollY),p.fillStyle="rgba(0, 0, 200, 0.04)",p.lineWidth=M.iG.strokeWidth/A.zoom.value,p.strokeStyle=M.iG.strokeColor,M.iG.radius&&p.roundRect?(p.beginPath(),p.roundRect(0,0,o.width,o.height,M.iG.radius/A.zoom.value),p.stroke(),p.closePath()):p.strokeRect(0,0,o.width,o.height),p.restore());break;case"freedraw":if(a.R.generateElementShape(o),B.isExporting){var X=(0,h.qf)(o),Y=(0,E.Z)(X,4),ee=Y[0],ge=Y[1],be=Y[2],Re=Y[3],Ze=(ee+be)/2+A.scrollX,Be=(ge+Re)/2+A.scrollY,Ie=(be-ee)/2-(o.x-ee),Ke=(Re-ge)/2-(o.y-ge);p.save(),p.translate(Ze,Be),p.rotate(o.angle),p.translate(-Ie,-Ke),te(o,i,p,B,A),p.restore()}else{var Ye=re(o,B,A);me(Ye,p,B,A)}break;case"rectangle":case"diamond":case"ellipse":case"line":case"arrow":case"image":case"text":case"embeddable":if(a.R.generateElementShape(o,B.isExporting),B.isExporting){var tt=(0,h.qf)(o),ue=(0,E.Z)(tt,4),ve=ue[0],De=ue[1],He=ue[2],Je=ue[3],qe=(ve+He)/2+A.scrollX,st=(De+Je)/2+A.scrollY,ht=(He-ve)/2-(o.x-ve),et=(Je-De)/2-(o.y-De);if((0,y.iB)(o)){var wt=(0,s.tl)(o);if((0,y.Yv)(wt)){var Lt=f._.getBoundTextElementPosition(wt,o);ht=(He-ve)/2-(Lt.x-ve),et=(Je-De)/2-(Lt.y-De)}}p.save(),p.translate(qe,st),x(o,B,A)&&(p.filter="none");var St=(0,s.WJ)(o);if((0,y.Yv)(o)&&St){var yt=document.createElement("canvas"),Wt=yt.getContext("2d"),Ft=Math.max((0,S.TE)(ve,He),(0,S.TE)(De,Je)),Ve=N(o);yt.width=Ft*A.exportScale+10*Ve*A.exportScale,yt.height=Ft*A.exportScale+10*Ve*A.exportScale,Wt.translate(yt.width/2,yt.height/2),Wt.scale(A.exportScale,A.exportScale),ht=o.width/2-(o.x-ve),et=o.height/2-(o.y-De),Wt.rotate(o.angle);var bt=v.Z.canvas(yt);Wt.translate(-ht,-et),te(o,bt,Wt,B,A),Wt.translate(ht,et),Wt.rotate(-o.angle);var at=(0,h.qf)(St),mt=(0,E.Z)(at,6),ut=(ve+He)/2-mt[4],Ot=(De+Je)/2-mt[5];Wt.translate(-ut,-Ot),Wt.clearRect(-St.width/2,-St.height/2,St.width,St.height),p.scale(1/A.exportScale,1/A.exportScale),p.drawImage(yt,-yt.width/2,-yt.height/2,yt.width,yt.height)}else p.rotate(o.angle),o.type==="image"&&p.scale(o.scale[0],o.scale[1]),p.translate(-ht,-et),te(o,i,p,B,A);p.restore()}else{var Pt=re(o,B,A),Gt=p.imageSmoothingEnabled;A!=null&&A.shouldCacheIgnoreZoom||o.angle&&!(0,I.EK)(o.angle)||(p.imageSmoothingEnabled=!1),me(Pt,p,B,A),p.imageSmoothingEnabled=Gt}break;default:throw new Error("Unimplemented type ".concat(o.type))}},Te=function(o,i,p){if(p===void 0)return o.draw(i);var B={sets:i.sets,shape:i.shape,options:m(m({},i.options),{},{fixedDecimalPlaceDigits:p})};return o.draw(B)},we=function(o,i,p,B){if(!B.enabled||!B.clip)return null;var A=(0,w.$Z)(o);if(A){var X=i.ownerDocument.createElementNS(M.hR,"g");return X.setAttributeNS(M.hR,"clip-path","url(#".concat(A.id,")")),p.forEach(function(Y){return X.appendChild(Y)}),X}return null},xe=function o(i,p,B,A,X,Y,ee){var ge,be,Re=X,Ze=Y,Be=(0,h.qf)(i),Ie=(0,E.Z)(Be,4),Ke=Ie[0],Ye=Ie[1],tt=Ie[2],ue=Ie[3],ve=(tt-Ke)/2-(i.x-Ke),De=(ue-Ye)/2-(i.y-Ye);if((0,y.iB)(i)){var He=(0,s.tl)(i);if((0,y.Yv)(He)){var Je=(0,h.qf)(He),qe=(0,E.Z)(Je,4),st=qe[0],ht=qe[1],et=qe[2],wt=qe[3],Lt=f._.getBoundTextElementPosition(He,i);ve=(et-st)/2-(Lt.x-st),De=(wt-ht)/2-(Lt.y-ht),X=X+Lt.x-i.x,Y=Y+Lt.y-i.y}}var St=180*i.angle/Math.PI,yt=B;if(i.link){var Wt=B.ownerDocument.createElementNS(M.hR,"a");Wt.setAttribute("href",(0,l.$u)(i.link)),yt.appendChild(Wt),yt=Wt}var Ft=function(Un,ne){(0,S.h2)()&&Un.setAttribute("data-id",ne.id),yt.appendChild(Un)},Ve=((ge=(be=(0,w.$Z)(i))===null||be===void 0?void 0:be.opacity)!==null&&ge!==void 0?ge:100)*i.opacity/1e4;switch(i.type){case"selection":throw new Error("Selection rendering is not supported for SVG");case"rectangle":case"diamond":case"ellipse":var bt=a.R.generateElementShape(i),at=Te(p,bt,M.zK);Ve!==1&&(at.setAttribute("stroke-opacity","".concat(Ve)),at.setAttribute("fill-opacity","".concat(Ve))),at.setAttribute("stroke-linecap","round"),at.setAttribute("transform","translate(".concat(X||0," ").concat(Y||0,") rotate(").concat(St," ").concat(ve," ").concat(De,")")),Ft(we(i,yt,[at],ee.frameRendering)||at,i);break;case"embeddable":var mt=a.R.generateElementShape(i,!0),ut=Te(p,mt,M.zK),Ot=i.opacity/100;Ot!==1&&(ut.setAttribute("stroke-opacity","".concat(Ot)),ut.setAttribute("fill-opacity","".concat(Ot))),ut.setAttribute("stroke-linecap","round"),ut.setAttribute("transform","translate(".concat(X||0," ").concat(Y||0,") rotate(").concat(St," ").concat(ve," ").concat(De,")")),Ft(ut,i);var Pt=(0,t.g0)(i);o(Pt,p,yt,A,Pt.x+Re-i.x,Pt.y+Ze-i.y,ee);var Gt=Te(p,mt,M.zK);for(Gt.setAttribute("stroke-linecap","round"),Gt.setAttribute("transform","translate(".concat(X||0," ").concat(Y||0,") rotate(").concat(St," ").concat(ve," ").concat(De,")"));Gt.firstChild;)Gt.removeChild(Gt.firstChild);var Ct=(0,I.yW)(Math.min(i.width,i.height),i),ur=(0,t.LM)((0,l.ye)(i.link||""));if(ee.renderEmbeddables===!1||ur?.type==="document"){var rr=B.ownerDocument.createElementNS(M.hR,"a");rr.setAttribute("href",(0,l.$u)(i.link||"")),rr.setAttribute("target","_blank"),rr.setAttribute("rel","noopener noreferrer"),rr.style.borderRadius="".concat(Ct,"px"),Gt.appendChild(rr)}else{var Tr,ot=B.ownerDocument.createElementNS(M.hR,"foreignObject");ot.style.width="".concat(i.width,"px"),ot.style.height="".concat(i.height,"px"),ot.style.border="none";var Rt=ot.ownerDocument.createElementNS(M.hR,"div");Rt.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),Rt.style.width="100%",Rt.style.height="100%";var _t=Rt.ownerDocument.createElement("iframe");_t.src=(Tr=ur?.link)!==null&&Tr!==void 0?Tr:"",_t.style.width="100%",_t.style.height="100%",_t.style.border="none",_t.style.borderRadius="".concat(Ct,"px"),_t.style.top="0",_t.style.left="0",_t.allowFullscreen=!0,Rt.appendChild(_t),ot.appendChild(Rt),Gt.appendChild(ot)}Ft(Gt,i);break;case"line":case"arrow":var At=(0,s.WJ)(i),br=B.ownerDocument.createElementNS(M.hR,"mask");if(At){br.setAttribute("id","mask-".concat(i.id));var xr=B.ownerDocument.createElementNS(M.hR,"rect");X=X||0,Y=Y||0,xr.setAttribute("x","0"),xr.setAttribute("y","0"),xr.setAttribute("fill","#fff"),xr.setAttribute("width","".concat(i.width+100+X)),xr.setAttribute("height","".concat(i.height+100+Y)),br.appendChild(xr);var jr=B.ownerDocument.createElementNS(M.hR,"rect"),Ar=f._.getBoundTextElementPosition(i,At),fr=X+Ar.x-i.x,dt=Y+Ar.y-i.y;jr.setAttribute("x",fr.toString()),jr.setAttribute("y",dt.toString()),jr.setAttribute("fill","#000"),jr.setAttribute("width","".concat(At.width)),jr.setAttribute("height","".concat(At.height)),jr.setAttribute("opacity","1"),br.appendChild(jr)}var ft=B.ownerDocument.createElementNS(M.hR,"g");At&&ft.setAttribute("mask","url(#mask-".concat(i.id,")")),ft.setAttribute("stroke-linecap","round"),a.R.generateElementShape(i).forEach(function(Un){var ne=Te(p,Un,M.zK);Ve!==1&&(ne.setAttribute("stroke-opacity","".concat(Ve)),ne.setAttribute("fill-opacity","".concat(Ve))),ne.setAttribute("transform","translate(".concat(X||0," ").concat(Y||0,") rotate(").concat(St," ").concat(ve," ").concat(De,")")),i.type==="line"&&(0,I.g6)(i.points)&&i.backgroundColor!=="transparent"&&ne.setAttribute("fill-rule","evenodd"),ft.appendChild(ne)});var vt=we(i,yt,[ft,br],ee.frameRendering);vt?(Ft(vt,i),yt.appendChild(vt)):(Ft(ft,i),yt.append(br));break;case"freedraw":var Et=a.R.generateElementShape(i),tr=Et?Te(p,Et,M.zK):B.ownerDocument.createElementNS(M.hR,"g");Ve!==1&&(tr.setAttribute("stroke-opacity","".concat(Ve)),tr.setAttribute("fill-opacity","".concat(Ve))),tr.setAttribute("transform","translate(".concat(X||0," ").concat(Y||0,") rotate(").concat(St," ").concat(ve," ").concat(De,")")),tr.setAttribute("stroke","none");var ir=B.ownerDocument.createElementNS(M.hR,"path");ir.setAttribute("fill",i.strokeColor),ir.setAttribute("d",J(i)),tr.appendChild(ir),Ft(we(i,yt,[tr],ee.frameRendering)||tr,i);break;case"image":var Qt=Math.round(i.width),_r=Math.round(i.height),sr=(0,y.wi)(i)&&A[i.fileId];if(sr){var mr="image-".concat(sr.id),Zr=B.querySelector("#".concat(mr));if(!Zr){(Zr=B.ownerDocument.createElementNS(M.hR,"symbol")).id=mr;var or=B.ownerDocument.createElementNS(M.hR,"image");or.setAttribute("width","100%"),or.setAttribute("height","100%"),or.setAttribute("href",sr.dataURL),Zr.appendChild(or),yt.prepend(Zr)}var lr=B.ownerDocument.createElementNS(M.hR,"use");if(lr.setAttribute("href","#".concat(mr)),ee.exportWithDarkMode&&sr.mimeType!==M.LO.svg&&lr.setAttribute("filter",z),lr.setAttribute("width","".concat(Qt)),lr.setAttribute("height","".concat(_r)),lr.setAttribute("opacity","".concat(Ve)),i.scale[0]!==1||i.scale[1]!==1){var gr=i.scale[0]!==1?-Qt:0,cr=i.scale[1]!==1?-_r:0;lr.setAttribute("transform","scale(".concat(i.scale[0],", ").concat(i.scale[1],") translate(").concat(gr," ").concat(cr,")"))}var Hr=B.ownerDocument.createElementNS(M.hR,"g");Hr.appendChild(lr),Hr.setAttribute("transform","translate(".concat(X||0," ").concat(Y||0,") rotate(").concat(St," ").concat(ve," ").concat(De,")")),Ft(we(i,yt,[Hr],ee.frameRendering)||Hr,i)}break;case"frame":if(ee.frameRendering.enabled&&ee.frameRendering.outline){var vr=document.createElementNS(M.hR,"rect");vr.setAttribute("transform","translate(".concat(X||0," ").concat(Y||0,") rotate(").concat(St," ").concat(ve," ").concat(De,")")),vr.setAttribute("width","".concat(i.width,"px")),vr.setAttribute("height","".concat(i.height,"px")),vr.setAttribute("rx",M.iG.radius.toString()),vr.setAttribute("ry",M.iG.radius.toString()),vr.setAttribute("fill","none"),vr.setAttribute("stroke",M.iG.strokeColor),vr.setAttribute("stroke-width",M.iG.strokeWidth.toString()),Ft(vr,i)}break;default:if(!(0,y.iB)(i))throw new Error("Unimplemented type ".concat(i.type));var Rr=B.ownerDocument.createElementNS(M.hR,"g");Ve!==1&&(Rr.setAttribute("stroke-opacity","".concat(Ve)),Rr.setAttribute("fill-opacity","".concat(Ve))),Rr.setAttribute("transform","translate(".concat(X||0," ").concat(Y||0,") rotate(").concat(St," ").concat(ve," ").concat(De,")"));for(var an=i.text.replace(/\r\n?/g,` +`).split(` +`),Sn=(0,s.Rg)(i.fontSize,i.lineHeight),Mn=i.textAlign==="center"?i.width/2:i.textAlign==="right"?i.width:0,Zn=(0,S.dZ)(i.text)?"rtl":"ltr",Rn=i.textAlign==="center"?"middle":i.textAlign==="right"||Zn==="rtl"?"end":"start",bn=0;bn<an.length;bn++){var yn=B.ownerDocument.createElementNS(M.hR,"text");yn.textContent=an[bn],yn.setAttribute("x","".concat(Mn)),yn.setAttribute("y","".concat(bn*Sn)),yn.setAttribute("font-family",(0,S.$g)(i)),yn.setAttribute("font-size","".concat(i.fontSize,"px")),yn.setAttribute("fill",i.strokeColor),yn.setAttribute("text-anchor",Rn),yn.setAttribute("style","white-space: pre;"),yn.setAttribute("direction",Zn),yn.setAttribute("dominant-baseline","text-before-edge"),Rr.appendChild(yn)}Ft(we(i,yt,[Rr],ee.frameRendering)||Rr,i)}},_e=new WeakMap([]);function Oe(o){var i=J(o),p=new Path2D(i);return _e.set(o,p),p}function J(o){return function(i){if(!i.length)return"";var p=i.length-1;return i.reduce(function(B,A,X,Y){return X===p?B.push(A,ke(A,Y[0]),"L",Y[0],"Z"):B.push(A,ke(A,Y[X+1])),B},["M",i[0],"Q"]).join(" ").replace(q,"$1")}(O(o.simulatePressure?o.points:o.points.length?o.points.map(function(i,p){var B=(0,E.Z)(i,2);return[B[0],B[1],o.pressures[p]]}):[[0,0,.5]],{simulatePressure:o.simulatePressure,size:4.25*o.strokeWidth,thinning:.6,smoothing:.5,streamline:.5,easing:function(i){return Math.sin(i*Math.PI/2)},last:!!o.lastCommittedPoint}))}function ke(o,i){return[(o[0]+i[0])/2,(o[1]+i[1])/2]}var q=/(\s?[A-Z]?,?-?[0-9]*\.[0-9]{0,2})(([0-9]|e|-)*)/g},7766:function(Se,Q,e){e.d(Q,{Lu:function(){return c},n_:function(){return Ce},tp:function(){return L},M_:function(){return q},AW:function(){return me}});var D,E=e(1930),y=e(2577),h=e(5284),S=e(7651),I=function(o,i,p,B,A,X,Y){o.beginPath(),o.moveTo(i+X,p),o.lineTo(i+B-X,p),o.quadraticCurveTo(i+B,p,i+B,p+X),o.lineTo(i+B,p+A-X),o.quadraticCurveTo(i+B,p+A,i+B-X,p+A),o.lineTo(i+X,p+A),o.quadraticCurveTo(i,p+A,i,p+A-X),o.lineTo(i,p+X),o.quadraticCurveTo(i,p,i+X,p),o.closePath(),o.fill(),Y&&(o.strokeStyle=Y),o.stroke()},v=e(4726),n=e(9660),M=e(957),Z=e(7422),H=e(9215),W=e(3528),u=e(4048),U=e(9827);(function(o){o.ACTIVE="active",o.AWAY="away",o.IDLE="idle"})(D||(D={}));var le=e(9937),de=e(5992);function he(o,i){var p=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!p){if(Array.isArray(o)||(p=function(ge,be){if(ge){if(typeof ge=="string")return pe(ge,be);var Re=Object.prototype.toString.call(ge).slice(8,-1);if(Re==="Object"&&ge.constructor&&(Re=ge.constructor.name),Re==="Map"||Re==="Set")return Array.from(ge);if(Re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Re))return pe(ge,be)}}(o))||i&&o&&typeof o.length=="number"){p&&(o=p);var B=0,A=function(){};return{s:A,n:function(){return B>=o.length?{done:!0}:{done:!1,value:o[B++]}},e:function(ge){throw ge},f:A}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var X,Y=!0,ee=!1;return{s:function(){p=p.call(o)},n:function(){var ge=p.next();return Y=ge.done,ge},e:function(ge){ee=!0,X=ge},f:function(){try{Y||p.return==null||p.return()}finally{if(ee)throw X}}}}function pe(o,i){(i==null||i>o.length)&&(i=o.length);for(var p=0,B=new Array(i);p<i;p++)B[p]=o[p];return B}var oe=function(o,i,p){if(!p.zenModeEnabled){var B=o.points[0],A=o.points[o.points.length-1];b(B,A,i)}var X,Y=he(o.points);try{for(Y.s();!(X=Y.n()).done;){var ee=X.value;$(ee,p,i)}}catch(ge){Y.e(ge)}finally{Y.f()}},P=function(o,i,p){$(o.points[0],p,i),p.zenModeEnabled||b(o.points[0],o.points[1],i)},$=function(o,i,p){var B=(0,y.Z)(o,2),A=B[0],X=B[1];p.save();var Y=(i.zenModeEnabled?3:2)/i.zoom.value;p.beginPath(),p.moveTo(A-Y,X-Y),p.lineTo(A+Y,X+Y),p.moveTo(A+Y,X-Y),p.lineTo(A-Y,X+Y),p.stroke(),p.restore()},b=function(o,i,p){p.beginPath(),p.lineTo.apply(p,(0,E.Z)(o)),p.lineTo.apply(p,(0,E.Z)(i)),p.stroke()},R=function(o,i,p,B,A){var X=8/B.zoom.value,Y=X/2,ee=X/4;if(p==="horizontal"){var ge=[(o[0]+i[0])/2,o[1]];B.zenModeEnabled||b([o[0],o[1]-X],[o[0],o[1]+X],A),b([ge[0]-ee,ge[1]-Y],[ge[0]-ee,ge[1]+Y],A),b([ge[0]+ee,ge[1]-Y],[ge[0]+ee,ge[1]+Y],A),B.zenModeEnabled||(b([i[0],i[1]-X],[i[0],i[1]+X],A),b(o,i,A))}else{var be=[o[0],(o[1]+i[1])/2];B.zenModeEnabled||b([o[0]-X,o[1]],[o[0]+X,o[1]],A),b([be[0]-Y,be[1]-ee],[be[0]+Y,be[1]-ee],A),b([be[0]-Y,be[1]+ee],[be[0]+Y,be[1]+ee],A),B.zenModeEnabled||(b([i[0]-X,i[1]],[i[0]+X,i[1]],A),b(o,i,A))}},_=e(4183),g=e(761),O=e(4682),s=e(6655);function f(o,i){var p=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!p){if(Array.isArray(o)||(p=function(ge,be){if(ge){if(typeof ge=="string")return t(ge,be);var Re=Object.prototype.toString.call(ge).slice(8,-1);if(Re==="Object"&&ge.constructor&&(Re=ge.constructor.name),Re==="Map"||Re==="Set")return Array.from(ge);if(Re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Re))return t(ge,be)}}(o))||i&&o&&typeof o.length=="number"){p&&(o=p);var B=0,A=function(){};return{s:A,n:function(){return B>=o.length?{done:!0}:{done:!1,value:o[B++]}},e:function(ge){throw ge},f:A}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var X,Y=!0,ee=!1;return{s:function(){p=p.call(o)},n:function(){var ge=p.next();return Y=ge.done,ge},e:function(ge){ee=!0,X=ge},f:function(){try{Y||p.return==null||p.return()}finally{if(ee)throw X}}}}function t(o,i){(i==null||i>o.length)&&(i=o.length);for(var p=0,B=new Array(i);p<i;p++)B[p]=o[p];return B}function w(o,i){var p=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!p){if(Array.isArray(o)||(p=function(ge,be){if(ge){if(typeof ge=="string")return l(ge,be);var Re=Object.prototype.toString.call(ge).slice(8,-1);if(Re==="Object"&&ge.constructor&&(Re=ge.constructor.name),Re==="Map"||Re==="Set")return Array.from(ge);if(Re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Re))return l(ge,be)}}(o))||i&&o&&typeof o.length=="number"){p&&(o=p);var B=0,A=function(){};return{s:A,n:function(){return B>=o.length?{done:!0}:{done:!1,value:o[B++]}},e:function(ge){throw ge},f:A}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var X,Y=!0,ee=!1;return{s:function(){p=p.call(o)},n:function(){var ge=p.next();return Y=ge.done,ge},e:function(ge){ee=!0,X=ge},f:function(){try{Y||p.return==null||p.return()}finally{if(ee)throw X}}}}function l(o,i){(i==null||i>o.length)&&(i=o.length);for(var p=0,B=new Array(i);p<i;p++)B[p]=o[p];return B}(function(){var o,i,p,B,A,X;(i=(o=Path2D.prototype).roundRect)!==null&&i!==void 0||(o.roundRect=Y),globalThis.CanvasRenderingContext2D&&((B=(p=globalThis.CanvasRenderingContext2D.prototype).roundRect)!==null&&B!==void 0||(p.roundRect=Y)),globalThis.OffscreenCanvasRenderingContext2D&&((X=(A=globalThis.OffscreenCanvasRenderingContext2D.prototype).roundRect)!==null&&X!==void 0||(A.roundRect=Y));function Y(ge,be,Re,Ze,Be){if([ge,be,Re,Ze].every(function(qe){return Number.isFinite(qe)})){var Ie,Ke,Ye,tt;if((Be=function(qe){var st=(0,s.Z)(qe);return st==="undefined"||qe===null?[0]:st==="function"?[NaN]:st==="object"?typeof qe[Symbol.iterator]=="function"?(0,E.Z)(qe).map(function(ht){var et=(0,s.Z)(ht);return et==="undefined"||ht===null?0:et==="function"?NaN:et==="object"?De(ht):He(ht)}):[De(qe)]:[He(qe)]}(Be)).length===4)Ie=Je(Be[0]),Ke=Je(Be[1]),Ye=Je(Be[2]),tt=Je(Be[3]);else if(Be.length===3)Ie=Je(Be[0]),Ke=Je(Be[1]),tt=Je(Be[1]),Ye=Je(Be[2]);else if(Be.length===2)Ie=Je(Be[0]),Ye=Je(Be[0]),Ke=Je(Be[1]),tt=Je(Be[1]);else{if(Be.length!==1)throw new RangeError("".concat(ee(this)," ").concat(Be.length," is not a valid size for radii sequence."));Ie=Je(Be[0]),Ke=Je(Be[0]),Ye=Je(Be[0]),tt=Je(Be[0])}var ue=[Ie,Ke,Ye,tt],ve=ue.find(function(qe){var st=qe.x,ht=qe.y;return st<0||ht<0});if(ve?.x<0?ve.x:ve?.y,!ue.some(function(qe){var st=qe.x,ht=qe.y;return!Number.isFinite(st)||!Number.isFinite(ht)})){if(ve)throw new RangeError("".concat(ee(this)," Radius value ").concat(ve," is negative."));(function(qe){var st=(0,y.Z)(qe,4),ht=st[0],et=st[1],wt=st[2],Lt=st[3],St=[Math.abs(Re)/(ht.x+et.x),Math.abs(Ze)/(et.y+wt.y),Math.abs(Re)/(wt.x+Lt.x),Math.abs(Ze)/(ht.y+Lt.y)],yt=Math.min.apply(Math,St);if(yt<=1){var Wt,Ft=f(qe);try{for(Ft.s();!(Wt=Ft.n()).done;){var Ve=Wt.value;Ve.x*=yt,Ve.y*=yt}}catch(bt){Ft.e(bt)}finally{Ft.f()}}})(ue),Re<0&&Ze<0?(this.moveTo(ge-Ie.x,be),this.ellipse(ge+Re+Ke.x,be-Ke.y,Ke.x,Ke.y,0,1.5*-Math.PI,-Math.PI),this.ellipse(ge+Re+Ye.x,be+Ze+Ye.y,Ye.x,Ye.y,0,-Math.PI,-Math.PI/2),this.ellipse(ge-tt.x,be+Ze+tt.y,tt.x,tt.y,0,-Math.PI/2,0),this.ellipse(ge-Ie.x,be-Ie.y,Ie.x,Ie.y,0,0,-Math.PI/2)):Re<0?(this.moveTo(ge-Ie.x,be),this.ellipse(ge+Re+Ke.x,be+Ke.y,Ke.x,Ke.y,0,-Math.PI/2,-Math.PI,1),this.ellipse(ge+Re+Ye.x,be+Ze-Ye.y,Ye.x,Ye.y,0,-Math.PI,1.5*-Math.PI,1),this.ellipse(ge-tt.x,be+Ze-tt.y,tt.x,tt.y,0,Math.PI/2,0,1),this.ellipse(ge-Ie.x,be+Ie.y,Ie.x,Ie.y,0,0,-Math.PI/2,1)):Ze<0?(this.moveTo(ge+Ie.x,be),this.ellipse(ge+Re-Ke.x,be-Ke.y,Ke.x,Ke.y,0,Math.PI/2,0,1),this.ellipse(ge+Re-Ye.x,be+Ze+Ye.y,Ye.x,Ye.y,0,0,-Math.PI/2,1),this.ellipse(ge+tt.x,be+Ze+tt.y,tt.x,tt.y,0,-Math.PI/2,-Math.PI,1),this.ellipse(ge+Ie.x,be-Ie.y,Ie.x,Ie.y,0,-Math.PI,1.5*-Math.PI,1)):(this.moveTo(ge+Ie.x,be),this.ellipse(ge+Re-Ke.x,be+Ke.y,Ke.x,Ke.y,0,-Math.PI/2,0),this.ellipse(ge+Re-Ye.x,be+Ze-Ye.y,Ye.x,Ye.y,0,0,Math.PI/2),this.ellipse(ge+tt.x,be+Ze-tt.y,tt.x,tt.y,0,Math.PI/2,Math.PI),this.ellipse(ge+Ie.x,be+Ie.y,Ie.x,Ie.y,0,Math.PI,1.5*Math.PI)),this.closePath(),this.moveTo(ge,be)}}function De(qe){return{x:qe.x,y:qe.y,z:qe.z,w:qe.w}}function He(qe){return+qe}function Je(qe){var st,ht,et=He(qe);return Number.isFinite(et)?{x:et,y:et}:Object(qe)===qe?{x:He((st=qe.x)!==null&&st!==void 0?st:0),y:He((ht=qe.y)!==null&&ht!==void 0?ht:0)}:{x:NaN,y:NaN}}}function ee(ge){return"Failed to execute 'roundRect' on '".concat(function(be){return Object(be)===be&&be instanceof Path2D?"Path2D":be instanceof globalThis?.CanvasRenderingContext2D?"CanvasRenderingContext2D":be instanceof globalThis?.OffscreenCanvasRenderingContext2D?"OffscreenCanvasRenderingContext2D":be?.constructor.name||be}(ge),"':")}})();var a,c=2,m=function(o,i,p,B,A,X,Y,ee){var ge=arguments.length>8&&arguments[8]!==void 0&&arguments[8],be=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0;o.save(),o.translate(X,Y),o.rotate(ee),ge&&o.fillRect(i-X,p-Y,B,A),be&&o.roundRect?(o.beginPath(),o.roundRect(i-X,p-Y,B,A,be),o.stroke(),o.closePath()):o.strokeRect(i-X,p-Y,B,A),o.restore()},z=function(o,i,p,B){var A=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4];o.beginPath(),o.arc(i,p,B,0,2*Math.PI),o.fill(),A&&o.stroke()},j=function(o,i,p,B,A){var X=arguments.length>5&&arguments[5]!==void 0&&arguments[5];o.strokeStyle="#5e5ad8",o.setLineDash([]),o.fillStyle="rgba(255, 255, 255, 0.9)",A?o.fillStyle="rgba(134, 131, 226, 0.9)":X&&(o.fillStyle="rgba(177, 151, 252, 0.7)"),z(o,p[0],p[1],B/i.zoom.value,!X)},k=function(o,i,p){if(i.selectedLinearElement){o.save(),o.translate(i.scrollX,i.scrollY),o.lineWidth=1/i.zoom.value;var B=Z._.getPointsGlobalCoordinates(p),A=Z._.POINT_HANDLE_SIZE,X=i.editingLinearElement?A:A/2;B.forEach(function(Y,ee){var ge,be,Re=!((ge=i.editingLinearElement)===null||ge===void 0||(be=ge.selectedPointsIndices)===null||be===void 0||!be.includes(ee));j(o,i,Y,X,Re)}),Z._.getEditorMidPoints(p,i).filter(function(Y){return Y!==null}).forEach(function(Y){var ee;i!=null&&(ee=i.selectedLinearElement)!==null&&ee!==void 0&&ee.segmentMidPointHoveredCoords&&Z._.arePointsEqual(Y,i.selectedLinearElement.segmentMidPointHoveredCoords)?i.editingLinearElement?(j(o,i,Y,X,!1),x(Y,o,i)):(x(Y,o,i),j(o,i,Y,X,!1)):(i.editingLinearElement||B.length===2)&&j(o,i,Y,A/2,!1,!0)}),o.restore()}},x=function(o,i,p){i.fillStyle="rgba(105, 101, 219, 0.4)",z(i,o[0],o[1],Z._.POINT_HANDLE_SIZE/p.zoom.value,!1)},N=function(o,i,p,B){i.translate(o.x+B.scrollX,o.y+B.scrollY),i.beginPath(),i.roundRect?i.roundRect(0,0,o.width,o.height,le.iG.radius/B.zoom.value):i.rect(0,0,o.width,o.height),i.clip(),i.translate(-(o.x+B.scrollX),-(o.y+B.scrollY))},G=function(o,i){return[o.width/i,o.height/i]},ie=function(o){var i=o.canvas,p=o.scale,B=o.normalizedWidth,A=o.normalizedHeight,X=o.theme,Y=o.isExporting,ee=o.viewBackgroundColor,ge=i.getContext("2d");return ge.setTransform(1,0,0,1,0,0),ge.scale(p,p),Y&&X==="dark"&&(ge.filter=le.ZF),typeof ee=="string"?((ee==="transparent"||ee.length===5||ee.length===9||/(hsla|rgba)\(/.test(ee))&&ge.clearRect(0,0,B,A),ge.save(),ge.fillStyle=ee,ge.fillRect(0,0,B,A),ge.restore()):ge.clearRect(0,0,B,A),ge},V=function(o){var i,p=o.canvas,B=o.elements,A=o.visibleElements,X=o.selectedElements,Y=o.scale,ee=o.appState,ge=o.renderConfig;if(p===null)return{atLeastOneVisibleElement:!1,elements:B};var be=G(p,Y),Re=(0,y.Z)(be,2),Ze=Re[0],Be=Re[1],Ie=ie({canvas:p,scale:Y,normalizedWidth:Ze,normalizedHeight:Be});Ie.save(),Ie.scale(ee.zoom.value,ee.zoom.value);var Ke=void 0;if(A.forEach(function(ft){var vt;((vt=ee.editingLinearElement)===null||vt===void 0?void 0:vt.elementId)===ft.id&&ft&&(Ke=ft)}),Ke&&k(Ie,ee,Ke),ee.selectionElement)try{(0,n.uI)(ee.selectionElement,Ie,ee)}catch(ft){console.error(ft)}ee.isBindingEnabled&&ee.suggestedBindings.filter(function(ft){return ft!=null}).forEach(function(ft){we(Ie,ee,ft)}),ee.frameToHighlight&&_e(Ie,ee,ee.frameToHighlight),ee.elementsToHighlight&&Oe(Ie,ee,ee.elementsToHighlight);var Ye,tt=X.some(function(ft){return(0,_.He)(ft)});if(X.length===1&&((i=ee.editingLinearElement)===null||i===void 0?void 0:i.elementId)===X[0].id&&k(Ie,ee,X[0]),ee.selectedLinearElement&&ee.selectedLinearElement.hoverPointIndex>=0&&function(ft,vt){var Et,tr,ir=vt.selectedLinearElement,Qt=ir.elementId,_r=ir.hoverPointIndex;if((Et=vt.editingLinearElement)===null||Et===void 0||(tr=Et.selectedPointsIndices)===null||tr===void 0||!tr.includes(_r)){var sr=Z._.getElement(Qt);if(sr){var mr=Z._.getPointAtIndexGlobalCoordinates(sr,_r);ft.save(),ft.translate(vt.scrollX,vt.scrollY),x(mr,ft,vt),ft.restore()}}}(Ie,ee),!ee.multiElement&&!ee.editingLinearElement){var ue,ve=(0,u.oY)(X,ee);X.length===1&&(0,_.bt)(X[0])&&((ue=ee.selectedLinearElement)===null||ue===void 0?void 0:ue.elementId)===X[0].id&&!X[0].locked&&k(Ie,ee,X[0]);var De=ge.selectionColor||h.black;if(ve){var He,Je=X.reduce(function(ft,vt){return ft[vt.id]=!0,ft},{}),qe=B.reduce(function(ft,vt){var Et=[];if(Je[vt.id]&&!(0,H.zq)(ee,vt)&&Et.push(De),ge.remoteSelectedElementIds[vt.id]&&Et.push.apply(Et,(0,E.Z)(ge.remoteSelectedElementIds[vt.id].map(function(gr){return(0,M.G)(gr)}))),Et.length){var tr,ir=(0,S.qf)(vt,!0),Qt=(0,y.Z)(ir,6),_r=Qt[0],sr=Qt[1],mr=Qt[2],Zr=Qt[3],or=Qt[4],lr=Qt[5];ft.push({angle:vt.angle,elementX1:_r,elementY1:sr,elementX2:mr,elementY2:Zr,selectionColors:Et,dashed:!!ge.remoteSelectedElementIds[vt.id],cx:or,cy:lr,activeEmbeddable:((tr=ee.activeEmbeddable)===null||tr===void 0?void 0:tr.element)===vt&&ee.activeEmbeddable.state==="active"})}return ft},[]),st=function(ft){var vt=(0,H.Fb)(B,ft),Et=(0,S.KP)(vt),tr=(0,y.Z)(Et,4),ir=tr[0],Qt=tr[1],_r=tr[2],sr=tr[3];qe.push({angle:0,elementX1:ir,elementX2:_r,elementY1:Qt,elementY2:sr,selectionColors:[h.black],dashed:!0,cx:ir+(_r-ir)/2,cy:Qt+(sr-Qt)/2,activeEmbeddable:!1})},ht=w((0,H.iJ)(ee));try{for(ht.s();!(He=ht.n()).done;)st(He.value)}catch(ft){ht.e(ft)}finally{ht.f()}ee.editingGroupId&&st(ee.editingGroupId),qe.forEach(function(ft){return Te(Ie,ee,ft)})}if(Ie.save(),Ie.translate(ee.scrollX,ee.scrollY),X.length===1){Ie.fillStyle=h.white;var et=(0,S.PC)(X[0],ee.zoom,"mouse");!ee.viewModeEnabled&&ve&&We(Ie,ge,ee,et,X[0].angle)}else if(X.length>1&&!ee.isRotating){var wt=2*c/ee.zoom.value;Ie.fillStyle=h.white;var Lt=(0,S.KP)(X),St=(0,y.Z)(Lt,4),yt=St[0],Wt=St[1],Ft=St[2],Ve=St[3],bt=Ie.getLineDash();Ie.setLineDash([2/ee.zoom.value]);var at=Ie.lineWidth;Ie.lineWidth=1/ee.zoom.value,Ie.strokeStyle=De,m(Ie,yt-wt,Wt-wt,Ft-yt+2*wt,Ve-Wt+2*wt,(yt+Ft)/2,(Wt+Ve)/2,0),Ie.lineWidth=at,Ie.setLineDash(bt);var mt=(0,S.kK)([yt,Wt,Ft,Ve,(yt+Ft)/2,(Wt+Ve)/2],0,ee.zoom,"mouse",tt?u.Fn:S.ox);X.some(function(ft){return!ft.locked})&&We(Ie,ge,ee,mt,0)}Ie.restore()}for(var ut in function(ft,vt){if(vt.snapLines.length){var Et=vt.theme==="light"||vt.zenModeEnabled?"#ff6b6b":"#ff0000",tr=(vt.zenModeEnabled?1.5:1)/vt.zoom.value;ft.save(),ft.translate(vt.scrollX,vt.scrollY);var ir,Qt=he(vt.snapLines);try{for(Qt.s();!(ir=Qt.n()).done;){var _r=ir.value;_r.type==="pointer"?(ft.lineWidth=tr,ft.strokeStyle=Et,P(_r,ft,vt)):_r.type==="gap"?(ft.lineWidth=tr,ft.strokeStyle=Et,R(_r.points[0],_r.points[1],_r.direction,vt,ft)):_r.type==="points"&&(ft.lineWidth=tr,ft.strokeStyle=Et,oe(_r,ft,vt))}}catch(sr){Qt.e(sr)}finally{Qt.f()}ft.restore()}}(Ie,ee),Ie.restore(),ge.remotePointerViewportCoords){var Ot=ge.remotePointerViewportCoords[ut],Pt=Ot.x,Gt=Ot.y;Pt-=ee.offsetLeft,Gt-=ee.offsetTop;var Ct=Pt<0||Pt>Ze-11||Gt<0||Gt>Be-14;Pt=Math.max(Pt,0),Pt=Math.min(Pt,Ze-11),Gt=Math.max(Gt,0),Gt=Math.min(Gt,Be-14);var ur=(0,M.G)(ut);Ie.save(),Ie.strokeStyle=ur,Ie.fillStyle=ur;var rr=ge.remotePointerUserStates[ut],Tr=Ct||rr===D.IDLE||rr===D.AWAY;Tr&&(Ie.globalAlpha=.3),ge.remotePointerButton&&ge.remotePointerButton[ut]==="down"&&(Ie.beginPath(),Ie.arc(Pt,Gt,15,0,2*Math.PI,!1),Ie.lineWidth=3,Ie.strokeStyle="#ffffff88",Ie.stroke(),Ie.closePath(),Ie.beginPath(),Ie.arc(Pt,Gt,15,0,2*Math.PI,!1),Ie.lineWidth=1,Ie.strokeStyle=ur,Ie.stroke(),Ie.closePath()),Ie.fillStyle=h.white,Ie.strokeStyle=h.white,Ie.lineWidth=6,Ie.lineJoin="round",Ie.beginPath(),Ie.moveTo(Pt,Gt),Ie.lineTo(Pt+0,Gt+14),Ie.lineTo(Pt+4,Gt+9),Ie.lineTo(Pt+11,Gt+8),Ie.closePath(),Ie.stroke(),Ie.fill(),Ie.fillStyle=ur,Ie.strokeStyle=ur,Ie.lineWidth=2,Ie.lineJoin="round",Ie.beginPath(),Tr?(Ie.moveTo(Pt-1,Gt-1),Ie.lineTo(Pt-1,Gt+15),Ie.lineTo(Pt+5,Gt+10),Ie.lineTo(Pt+12,Gt+9),Ie.closePath(),Ie.fill()):(Ie.moveTo(Pt,Gt),Ie.lineTo(Pt+0,Gt+14),Ie.lineTo(Pt+4,Gt+9),Ie.lineTo(Pt+11,Gt+8),Ie.closePath(),Ie.fill(),Ie.stroke());var ot=ge.remotePointerUsernames[ut]||"";if(!Ct&&ot){Ie.font="600 12px sans-serif";var Rt=Pt+5.5,_t=Gt+14+2,At=Ie.measureText(ot),br=At.actualBoundingBoxDescent+At.actualBoundingBoxAscent,xr=Math.max(br,12),jr=Rt-1,Ar=_t-1,fr=At.width+2+10+2,dt=xr+2+6+2;Ie.roundRect?(Ie.beginPath(),Ie.roundRect(jr,Ar,fr,dt,8),Ie.fillStyle=ur,Ie.fill(),Ie.strokeStyle=h.white,Ie.stroke()):I(Ie,jr,Ar,fr,dt,8,h.white),Ie.fillStyle=h.black,Ie.fillText(ot,Rt+5+1,_t+3+At.actualBoundingBoxAscent+Math.floor((xr-br)/2)+2)}Ie.restore(),Ie.closePath()}return ge.renderScrollbars&&(Ye=(0,v.tJ)(B,Ze,Be,ee),Ie.save(),Ie.fillStyle=v.w1,Ie.strokeStyle="rgba(255,255,255,0.8)",[Ye.horizontal,Ye.vertical].forEach(function(ft){ft&&I(Ie,ft.x,ft.y,ft.width,ft.height,v.nn/2)}),Ie.restore()),{scrollBars:Ye,atLeastOneVisibleElement:A.length>0,elements:B}},ce=function(o){var i=o.canvas,p=o.rc,B=o.elements,A=o.visibleElements,X=o.scale,Y=o.appState,ee=o.renderConfig;if(i!==null){var ge=ee.renderGrid,be=ge===void 0||ge,Re=ee.isExporting,Ze=G(i,X),Be=(0,y.Z)(Ze,2),Ie=Be[0],Ke=Be[1],Ye=ie({canvas:i,scale:X,normalizedWidth:Ie,normalizedHeight:Ke,theme:Y.theme,isExporting:Re,viewBackgroundColor:Y.viewBackgroundColor});Ye.scale(Y.zoom.value,Y.zoom.value),be&&Y.gridSize&&function(ue,ve,De,He,Je,qe,st){var ht;(function(at){at.Bold="#cccccc",at.Regular="#e5e5e5"})(ht||(ht={}));var et=-Math.round(Je.value/ve)*ve+De%ve,wt=-Math.round(Je.value/ve)*ve+He%ve,Lt=Math.min(1/Je.value,1),St=1/Je.value,yt=[3*Lt,St+(Lt+St)];ue.save(),ue.lineWidth=Lt;for(var Wt=et;Wt<et+qe+2*ve;Wt+=ve){var Ft=Math.round(Wt-De)%(5*ve)==0;ue.beginPath(),ue.setLineDash(Ft?[]:yt),ue.strokeStyle=Ft?ht.Bold:ht.Regular,ue.moveTo(Wt,wt-ve),ue.lineTo(Wt,wt+st+2*ve),ue.stroke()}for(var Ve=wt;Ve<wt+st+2*ve;Ve+=ve){var bt=Math.round(Ve-He)%(5*ve)==0;ue.beginPath(),ue.setLineDash(bt?[]:yt),ue.strokeStyle=bt?ht.Bold:ht.Regular,ue.moveTo(et-ve,Ve),ue.lineTo(et+qe+2*ve,Ve),ue.stroke()}ue.restore()}(Ye,Y.gridSize,Y.scrollX,Y.scrollY,Y.zoom,Ie/Y.zoom.value,Ke/Y.zoom.value);var tt=new Set;A.forEach(function(ue){ue.groupIds.length>0&&Y.frameToHighlight&&Y.selectedElementIds[ue.id]&&((0,O.cO)(ue,Y.frameToHighlight)||ue.groupIds.find(function(ve){return tt.has(ve)}))&&ue.groupIds.forEach(function(ve){return tt.add(ve)})}),A.filter(function(ue){return!(0,g.uU)(ue)}).forEach(function(ue){try{var ve;if((ue.frameId||!((ve=Y.frameToHighlight)===null||ve===void 0)&&ve.id)&&Y.frameRendering.enabled&&Y.frameRendering.clip){Ye.save();var De=(0,O.cH)(ue,Y);De&&(0,O.Qs)(ue,B,Y)&&N(De,Ye,0,Y),(0,n.lw)(ue,p,Ye,ee,Y),Ye.restore()}else(0,n.lw)(ue,p,Ye,ee,Y);Re||ke(ue,Ye,Y)}catch(He){console.error(He)}}),A.filter(function(ue){return(0,g.uU)(ue)}).forEach(function(ue){try{var ve,De=function(){if((0,n.lw)(ue,p,Ye,ee,Y),(0,_.gs)(ue)&&(Re||!ue.validated)&&ue.width&&ue.height){var Je=(0,g.g0)(ue);(0,n.lw)(Je,p,Ye,ee,Y)}Re||ke(ue,Ye,Y)};if((ue.frameId||!((ve=Y.frameToHighlight)===null||ve===void 0)&&ve.id)&&Y.frameRendering.enabled&&Y.frameRendering.clip){Ye.save();var He=(0,O.cH)(ue,Y);He&&(0,O.Qs)(ue,B,Y)&&N(He,Ye,0,Y),De(),Ye.restore()}else De()}catch(Je){console.error(Je)}})}},te=(0,U.hR)(function(o){var i,p=V(o);(i=o.callback)===null||i===void 0||i.call(o,p)},{trailing:!0}),L=function(o,i){if(!i){var p=V(o);return o.callback(p),p}te(o)},re=(0,U.hR)(function(o){ce(o)},{trailing:!0}),me=function(o,i){i?re(o):ce(o)},Ce=function(){te.cancel(),re.cancel()},We=function(o,i,p,B,A){Object.keys(B).forEach(function(X){var Y=B[X];if(Y!==void 0){var ee=(0,y.Z)(Y,4),ge=ee[0],be=ee[1],Re=ee[2],Ze=ee[3];o.save(),o.lineWidth=1/p.zoom.value,i.selectionColor&&(o.strokeStyle=i.selectionColor),X==="rotation"?z(o,ge+Re/2,be+Ze/2,Re/2):o.roundRect?(o.beginPath(),o.roundRect(ge,be,Re,Ze,2/p.zoom.value),o.fill(),o.stroke()):m(o,ge,be,Re,Ze,ge+Re/2,be+Ze/2,A,!0),o.restore()}})},Te=function(o,i,p){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2*c,A=p.angle,X=p.elementX1,Y=p.elementY1,ee=p.elementX2,ge=p.elementY2,be=p.selectionColors,Re=p.cx,Ze=p.cy,Be=p.dashed,Ie=p.activeEmbeddable,Ke=ee-X,Ye=ge-Y,tt=B/i.zoom.value,ue=8/i.zoom.value,ve=4/i.zoom.value;o.save(),o.translate(i.scrollX,i.scrollY),o.lineWidth=(Ie?4:1)/i.zoom.value;for(var De=be.length,He=0;He<De;++He)o.strokeStyle=be[He],Be&&o.setLineDash([ue,ve+(ue+ve)*(De-1)]),o.lineDashOffset=(ue+ve)*He,m(o,X-tt,Y-tt,Ke+2*tt,Ye+2*tt,Re,Ze,A);o.restore()},we=function(o,i,p){var B=Array.isArray(p)?J:xe;o.save(),o.translate(i.scrollX,i.scrollY),B(o,p),o.restore()},xe=function(o,i){var p=(0,S.qf)(i),B=(0,y.Z)(p,4),A=B[0],X=B[1],Y=B[2]-A,ee=B[3]-X,ge=(0,W.fb)(i,Y,ee);o.strokeStyle="rgba(0,0,0,.05)",o.lineWidth=ge-4;var be=2+ge/2;switch(i.type){case"rectangle":case"text":case"image":case"embeddable":case"frame":m(o,A-be,X-be,Y+2*be,ee+2*be,A+Y/2,X+ee/2,i.angle);break;case"diamond":var Re=Math.hypot(Y,ee);(function(Ze,Be,Ie,Ke,Ye,tt){Ze.save(),Ze.translate(Ke,Ye),Ze.rotate(tt),Ze.beginPath(),Ze.moveTo(0,Ie/2),Ze.lineTo(Be/2,0),Ze.lineTo(0,-Ie/2),Ze.lineTo(-Be/2,0),Ze.closePath(),Ze.stroke(),Ze.restore()})(o,Y+2*(be*Re/ee),ee+2*(be*Re/Y),A+Y/2,X+ee/2,i.angle);break;case"ellipse":(function(Ze,Be,Ie,Ke,Ye,tt){Ze.beginPath(),Ze.ellipse(Ke,Ye,Be/2,Ie/2,tt,0,2*Math.PI),Ze.stroke()})(o,Y+2*be,ee+2*be,A+Y/2,X+ee/2,i.angle)}},_e=function(o,i,p){var B=(0,S.qf)(p),A=(0,y.Z)(B,4),X=A[0],Y=A[1],ee=A[2]-X,ge=A[3]-Y;o.strokeStyle="rgb(0,118,255)",o.lineWidth=le.iG.strokeWidth/i.zoom.value,o.save(),o.translate(i.scrollX,i.scrollY),m(o,X,Y,ee,ge,X+ee/2,Y+ge/2,p.angle,!1,le.iG.radius/i.zoom.value),o.restore()},Oe=function(o,i,p){var B=p.filter(function(Y){return Y.groupIds.length===0}),A=p.filter(function(Y){return Y.groupIds.length>0}),X=function(Y){var ee=(0,S.KP)(Y),ge=(0,y.Z)(ee,4),be=ge[0],Re=ge[1],Ze=ge[2],Be=ge[3];return{angle:0,elementX1:be,elementX2:Ze,elementY1:Re,elementY2:Be,selectionColors:["rgb(0,118,255)"],dashed:!1,cx:be+(Ze-be)/2,cy:Re+(Be-Re)/2,activeEmbeddable:!1}};Object.entries((0,H.yR)(A,i)).filter(function(Y){var ee=(0,y.Z)(Y,2);return ee[0],ee[1]}).map(function(Y){var ee=(0,y.Z)(Y,2),ge=ee[0];return ee[1],ge}).map(function(Y){return function(ee){var ge=(0,H.Fb)(p,ee);return X(ge)}(Y)}).concat(B.map(function(Y){return X([Y])})).forEach(function(Y){return Te(o,i,Y)})},J=function(o,i){var p=(0,y.Z)(i,3),B=p[0],A=p[1],X=p[2],Y=(0,W.fb)(X,X.width,X.height);o.strokeStyle="rgba(0,0,0,0)",o.fillStyle="rgba(0,0,0,.05)",(A==="both"?[0,-1]:A==="start"?[0]:[-1]).forEach(function(ee){var ge=Z._.getPointAtIndexGlobalCoordinates(B,ee),be=(0,y.Z)(ge,2),Re=be[0],Ze=be[1];z(o,Re,Ze,Y)})},ke=function(o,i,p){if(o.link&&!p.selectedElementIds[o.id]){var B=(0,S.qf)(o),A=(0,y.Z)(B,4),X=A[0],Y=A[1],ee=A[2],ge=A[3],be=(0,de.sw)([X,Y,ee,ge],o.angle,p),Re=(0,y.Z)(be,4),Ze=Re[0],Be=Re[1],Ie=Re[2],Ke=Re[3],Ye=Ze+Ie/2,tt=Be+Ke/2;if(i.save(),i.translate(p.scrollX+Ye,p.scrollY+tt),i.rotate(o.angle),a&&a.zoom===p.zoom.value)i.drawImage(a,Ze-Ye,Be-tt,Ie,Ke);else{(a=document.createElement("canvas")).zoom=p.zoom.value,a.width=Ie*window.devicePixelRatio*p.zoom.value,a.height=Ke*window.devicePixelRatio*p.zoom.value;var ue=a.getContext("2d");ue.scale(window.devicePixelRatio*p.zoom.value,window.devicePixelRatio*p.zoom.value),ue.fillStyle="#fff",ue.fillRect(0,0,Ie,Ke),ue.drawImage(de.rj,0,0,Ie,Ke),ue.restore(),i.drawImage(a,Ze-Ye,Be-tt,Ie,Ke)}i.restore()}},q=function(o,i,p,B,A){var X=A.offsetX,Y=X===void 0?0:X,ee=A.offsetY,ge=ee===void 0?0:ee,be=A.exportWithDarkMode,Re=A.renderEmbeddables,Ze=A.frameRendering;if(p){var Be={exportWithDarkMode:be,renderEmbeddables:Re,frameRendering:Ze};o.filter(function(Ie){return!(0,g.uU)(Ie)}).forEach(function(Ie){if(!Ie.isDeleted)try{(0,n.Rg)(Ie,i,p,B,Ie.x+Y,Ie.y+ge,Be)}catch(Ke){console.error(Ke)}}),o.filter(function(Ie){return(0,_.gs)(Ie)}).forEach(function(Ie){if(!Ie.isDeleted)try{(0,n.Rg)(Ie,i,p,B,Ie.x+Y,Ie.y+ge,Be)}catch(Ke){console.error(Ke)}})}}},457:function(Se,Q,e){var D=e(1930),E=e(8821),y=e(5169),h=e(7651),S=e(4183),I=e(6264),v=e(4643),n=function(Z){return typeof Z=="string"},M=function(){function Z(){var H=this;(0,E.Z)(this,Z),this.callbacks=new Set,this.nonDeletedElements=[],this.elements=[],this.nonDeletedFrames=[],this.frames=[],this.elementsMap=new Map,this.selectedElementsCache={selectedElementIds:null,elements:null,cache:new Map},this.addNewElement=function(W){W.frameId?H.insertElementAtIndex(W,H.getElementIndex(W.frameId)):H.replaceAllElements([].concat((0,D.Z)(H.elements),[W]))}}return(0,y.Z)(Z,[{key:"getElementsIncludingDeleted",value:function(){return this.elements}},{key:"getNonDeletedElements",value:function(){return this.nonDeletedElements}},{key:"getFramesIncludingDeleted",value:function(){return this.frames}},{key:"getSelectedElements",value:function(H){var W=function(de){for(var he="",pe=0,oe=["includeBoundTextElement","includeElementsInFrames"];pe<oe.length;pe++){var P=oe[pe];he+="".concat(P,":").concat(de[P]?"1":"0")}return he}(H),u=H?.elements||this.nonDeletedElements;if(this.selectedElementsCache.elements===u&&this.selectedElementsCache.selectedElementIds===H.selectedElementIds){var U=this.selectedElementsCache.cache.get(W);if(U)return U}else H?.elements==null&&this.selectedElementsCache.cache.clear();var le=(0,I.eD)(u,{selectedElementIds:H.selectedElementIds},H);return H?.elements==null&&(this.selectedElementsCache.selectedElementIds=H.selectedElementIds,this.selectedElementsCache.elements=this.nonDeletedElements,this.selectedElementsCache.cache.set(W,le)),le}},{key:"getNonDeletedFrames",value:function(){return this.nonDeletedFrames}},{key:"getElement",value:function(H){return this.elementsMap.get(H)||null}},{key:"getVersionNonce",value:function(){return this.versionNonce}},{key:"getNonDeletedElement",value:function(H){var W=this.getElement(H);return W&&(0,h.qP)(W)?W:null}},{key:"mapElements",value:function(H){var W=!1,u=this.elements.map(function(U){var le=H(U);return le!==U&&(W=!0),le});return W&&this.replaceAllElements(u),W}},{key:"replaceAllElements",value:function(H){var W=this;this.elements=H;var u=[];this.elementsMap.clear(),H.forEach(function(U){(0,S.He)(U)&&u.push(U),W.elementsMap.set(U.id,U),Z.mapElementToScene(U,W)}),this.nonDeletedElements=(0,h.Lm)(this.elements),this.frames=u,this.nonDeletedFrames=(0,h.Xf)(this.frames),this.informMutation()}},{key:"informMutation",value:function(){this.versionNonce=(0,v.LU)();for(var H=0,W=Array.from(this.callbacks);H<W.length;H++)(0,W[H])()}},{key:"addCallback",value:function(H){var W=this;if(this.callbacks.has(H))throw new Error;return this.callbacks.add(H),function(){if(!W.callbacks.has(H))throw new Error;W.callbacks.delete(H)}}},{key:"destroy",value:function(){var H=this;this.nonDeletedElements=[],this.elements=[],this.nonDeletedFrames=[],this.frames=[],this.elementsMap.clear(),this.selectedElementsCache.selectedElementIds=null,this.selectedElementsCache.elements=null,this.selectedElementsCache.cache.clear(),Z.sceneMapById.forEach(function(W,u){W===H&&Z.sceneMapById.delete(u)}),this.callbacks.clear()}},{key:"insertElementAtIndex",value:function(H,W){if(!Number.isFinite(W)||W<0)throw new Error("insertElementAtIndex can only be called with index >= 0");var u=[].concat((0,D.Z)(this.elements.slice(0,W)),[H],(0,D.Z)(this.elements.slice(W)));this.replaceAllElements(u)}},{key:"insertElementsAtIndex",value:function(H,W){if(!Number.isFinite(W)||W<0)throw new Error("insertElementAtIndex can only be called with index >= 0");var u=[].concat((0,D.Z)(this.elements.slice(0,W)),(0,D.Z)(H),(0,D.Z)(this.elements.slice(W)));this.replaceAllElements(u)}},{key:"getElementIndex",value:function(H){return this.elements.findIndex(function(W){return W.id===H})}}],[{key:"mapElementToScene",value:function(H,W){var u=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];if(n(H)){if(!u)return;this.sceneMapById.set(H,W)}else this.sceneMapByElement.set(H,W),u||this.sceneMapById.set(H.id,W)}},{key:"getScene",value:function(H){return n(H)?this.sceneMapById.get(H)||null:this.sceneMapByElement.get(H)||null}}]),Z}();M.sceneMapByElement=new WeakMap,M.sceneMapById=new Map,Q.Z=M},6049:function(Se,Q,e){e.d(Q,{Z:function(){return he},i:function(){return oe}});var D=e(1930),E=e(2577),y=e(7169),h=e(7651),S=e(2361),I=e(9660),v=e(9827),n=e(1493),M=e(9937),Z=e(4183),H=e(1648);function W(P,$){var b=Object.keys(P);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(P);$&&(R=R.filter(function(_){return Object.getOwnPropertyDescriptor(P,_).enumerable})),b.push.apply(b,R)}return b}function u(P){for(var $=1;$<arguments.length;$++){var b=arguments[$]!=null?arguments[$]:{};$%2?W(Object(b),!0).forEach(function(R){(0,y.Z)(P,R,b[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(b)):W(Object(b)).forEach(function(R){Object.defineProperty(P,R,Object.getOwnPropertyDescriptor(b,R))})}return P}var U=function(P){return[8,8+P]},le=function(P){return[1.5,6+P]};function de(P){var $=P.roughness,b=Math.max(P.width,P.height),R=Math.min(P.width,P.height);return R>=20&&b>=50||R>=15&&P.roundness&&(0,H.sh)(P.type)||(0,Z.bt)(P)&&b>=50?$:Math.min($/(b<10?3:2),2.5)}var he=function(P){var $=arguments.length>1&&arguments[1]!==void 0&&arguments[1],b={seed:P.seed,strokeLineDash:P.strokeStyle==="dashed"?U(P.strokeWidth):P.strokeStyle==="dotted"?le(P.strokeWidth):void 0,disableMultiStroke:P.strokeStyle!=="solid",strokeWidth:P.strokeStyle!=="solid"?P.strokeWidth+.5:P.strokeWidth,fillWeight:P.strokeWidth/2,hachureGap:4*P.strokeWidth,roughness:de(P),stroke:P.strokeColor,preserveVertices:$||P.roughness<M.$h.cartoonist};switch(P.type){case"rectangle":case"embeddable":case"diamond":case"ellipse":return b.fillStyle=P.fillStyle,b.fill=(0,v.Qm)(P.backgroundColor)?void 0:P.backgroundColor,P.type==="ellipse"&&(b.curveFitting=1),b;case"line":case"freedraw":return(0,S.g6)(P.points)&&(b.fillStyle=P.fillStyle,b.fill=P.backgroundColor==="transparent"?void 0:P.backgroundColor),b;case"arrow":return b;default:throw new Error("Unimplemented type ".concat(P.type))}},pe=function(P,$){return P.type==="embeddable"&&($||!P.validated)&&(0,v.Qm)(P.backgroundColor)&&(0,v.Qm)(P.strokeColor)?u(u({},P),{},{roughness:0,backgroundColor:"#d3d3d3",fillStyle:"solid"}):P},oe=function(P,$){var b=arguments.length>2&&arguments[2]!==void 0&&arguments[2];switch(P.type){case"rectangle":case"embeddable":var R;if(P.roundness){var _=P.width,g=P.height,O=(0,S.yW)(Math.min(_,g),P);R=$.path("M ".concat(O," 0 L ").concat(_-O," 0 Q ").concat(_," 0, ").concat(_," ").concat(O," L ").concat(_," ").concat(g-O," Q ").concat(_," ").concat(g,", ").concat(_-O," ").concat(g," L ").concat(O," ").concat(g," Q 0 ").concat(g,", 0 ").concat(g-O," L 0 ").concat(O," Q 0 0, ").concat(O," 0"),he(pe(P,b),!0))}else R=$.rectangle(0,0,P.width,P.height,he(pe(P,b),!1));return R;case"diamond":var s,f=(0,h.UC)(P),t=(0,E.Z)(f,8),w=t[0],l=t[1],a=t[2],c=t[3],m=t[4],z=t[5],j=t[6],k=t[7];if(P.roundness){var x=(0,S.yW)(Math.abs(w-j),P),N=(0,S.yW)(Math.abs(c-l),P);s=$.path("M ".concat(w+x," ").concat(l+N," L ").concat(a-x," ").concat(c-N,` + C `).concat(a," ").concat(c,", ").concat(a," ").concat(c,", ").concat(a-x," ").concat(c+N,` + L `).concat(m+x," ").concat(z-N,` + C `).concat(m," ").concat(z,", ").concat(m," ").concat(z,", ").concat(m-x," ").concat(z-N,` + L `).concat(j+x," ").concat(k+N,` + C `).concat(j," ").concat(k,", ").concat(j," ").concat(k,", ").concat(j+x," ").concat(k-N,` + L `).concat(w-x," ").concat(l+N,` + C `).concat(w," ").concat(l,", ").concat(w," ").concat(l,", ").concat(w+x," ").concat(l+N),he(P,!0))}else s=$.polygon([[w,l],[a,c],[m,z],[j,k]],he(P));return s;case"ellipse":var G=$.ellipse(P.width/2,P.height/2,P.width,P.height,he(P));return G;case"line":case"arrow":var ie,V=he(P),ce=P.points.length?P.points:[[0,0]];if(ie=P.roundness?[$.curve(ce,V)]:V.fill?[$.polygon(ce,V)]:[$.linearPath(ce,V)],P.type==="arrow"){var te=P.startArrowhead,L=te===void 0?null:te,re=P.endArrowhead,me=re===void 0?"arrow":re,Ce=function(ke,q,o,i){var p=(0,h.Y5)(ke,q,o,i);if(p===null)return[];if(i==="dot"){var B=(0,E.Z)(p,3),A=B[0],X=B[1],Y=B[2];return[$.circle(A,X,Y,u(u({},V),{},{fill:ke.strokeColor,fillStyle:"solid",stroke:"none"}))]}if(i==="triangle"){var ee=(0,E.Z)(p,6),ge=ee[0],be=ee[1],Re=ee[2],Ze=ee[3],Be=ee[4],Ie=ee[5];return delete V.strokeLineDash,[$.polygon([[ge,be],[Re,Ze],[Be,Ie],[ge,be]],u(u({},V),{},{fill:ke.strokeColor,fillStyle:"solid"}))]}var Ke=(0,E.Z)(p,6),Ye=Ke[0],tt=Ke[1],ue=Ke[2],ve=Ke[3],De=Ke[4],He=Ke[5];if(ke.strokeStyle==="dotted"){var Je=le(ke.strokeWidth-1);V.strokeLineDash=[Je[0],Je[1]-1]}else delete V.strokeLineDash;return[$.line(ue,ve,Ye,tt,V),$.line(De,He,Ye,tt,V)]};if(L!==null){var We,Te=Ce(P,ie,"start",L);(We=ie).push.apply(We,(0,D.Z)(Te))}if(me!==null){var we,xe=Ce(P,ie,"end",me);(we=ie).push.apply(we,(0,D.Z)(xe))}}return ie;case"freedraw":var _e;if((0,I.Lc)(P),(0,S.g6)(P.points)){var Oe=(0,n.og)(P.points,.75);_e=$.curve(Oe,u(u({},he(P)),{},{stroke:"none"}))}else _e=null;return _e;case"frame":case"text":case"image":var J=null;return J;default:return(0,v.vE)(P,"generateElementShape(): Unimplemented type ".concat(P?.type)),null}}},2921:function(Se,Q,e){e.d(Q,{R:function(){return I}});var D=e(5169),E=e(8821),y=e(8128),h=e(9660),S=e(6049),I=(0,D.Z)(function v(){(0,E.Z)(this,v)});I.rg=new y.V,I.cache=new WeakMap,I.get=function(v){return I.cache.get(v)},I.set=function(v,n){return I.cache.set(v,n)},I.delete=function(v){return I.cache.delete(v)},I.destroy=function(){I.cache=new WeakMap},I.generateElementShape=function(v){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1],M=n?void 0:I.get(v);if(M!==void 0)return M;h.Xx.delete(v);var Z=(0,S.i)(v,I.rg,n);return I.cache.set(v,Z),Z}},1648:function(Se,Q,e){e.d(Q,{$b:function(){return E},CJ:function(){return M},M9:function(){return S},PD:function(){return y},QG:function(){return n},Un:function(){return v},Zd:function(){return h},sh:function(){return I}});var D=e(4183),E=function(Z){return Z==="rectangle"||Z==="embeddable"||Z==="ellipse"||Z==="diamond"||Z==="line"||Z==="freedraw"},y=function(Z){return Z!=="image"&&Z!=="frame"},h=function(Z){return Z==="rectangle"||Z==="embeddable"||Z==="ellipse"||Z==="diamond"||Z==="freedraw"||Z==="arrow"||Z==="line"},S=function(Z){return Z==="rectangle"||Z==="embeddable"||Z==="ellipse"||Z==="diamond"||Z==="arrow"||Z==="line"},I=function(Z){return Z==="rectangle"||Z==="embeddable"||Z==="arrow"||Z==="line"||Z==="diamond"},v=function(Z){return Z==="arrow"},n=function(Z,H){for(var W=null,u=Z.length-1;u>=0;--u){var U=Z[u];if(!U.isDeleted&&H(U)){W=U;break}}return W},M=function(Z,H){var W=[];return Z.filter(function(u){return!(u.isDeleted||!H(u))&&(!(0,D.gs)(u)||(W.push(u),!1))}).concat(W)}},3668:function(Se,Q,e){e.d(Q,{$D:function(){return f},Cg:function(){return w},NL:function(){return s}});var D=e(7169),E=e(2577),y=e(8950),h=e(2975),S=e.n(h),I=e(9845),v=e(4949),n=e(7766),M=e(9827),Z=e(9937),H=e(6853),W=e(4419),u=e(4178),U=e(6013),le=e(4682),de=e(7651),he=e(583),pe=e(457);function oe(l,a){var c=Object.keys(l);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(l);a&&(m=m.filter(function(z){return Object.getOwnPropertyDescriptor(l,z).enumerable})),c.push.apply(c,m)}return c}function P(l){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?arguments[a]:{};a%2?oe(Object(c),!0).forEach(function(m){(0,D.Z)(l,m,c[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):oe(Object(c)).forEach(function(m){Object.defineProperty(l,m,Object.getOwnPropertyDescriptor(c,m))})}return l}function $(l,a){var c=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!c){if(Array.isArray(l)||(c=function(N,G){if(N){if(typeof N=="string")return b(N,G);var ie=Object.prototype.toString.call(N).slice(8,-1);if(ie==="Object"&&N.constructor&&(ie=N.constructor.name),ie==="Map"||ie==="Set")return Array.from(N);if(ie==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie))return b(N,G)}}(l))||a&&l&&typeof l.length=="number"){c&&(l=c);var m=0,z=function(){};return{s:z,n:function(){return m>=l.length?{done:!0}:{done:!1,value:l[m++]}},e:function(N){throw N},f:z}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j,k=!0,x=!1;return{s:function(){c=c.call(l)},n:function(){var N=c.next();return k=N.done,N},e:function(N){x=!0,j=N},f:function(){try{k||c.return==null||c.return()}finally{if(x)throw j}}}}function b(l,a){(a==null||a>l.length)&&(a=l.length);for(var c=0,m=new Array(a);c<a;c++)m[c]=l[c];return m}var R=function(l){var a=new pe.Z;return a.replaceAllElements((0,M.xU)(l),!1),a},_=function(l,a){if(l.width<=a)return l;var c=document.createElement("canvas").getContext("2d");c.font=(0,M.mO)({fontFamily:l.fontFamily,fontSize:l.fontSize});var m=l.text;if(c.measureText(m).width>a)for(var z=m.length;z>0;z--){var j="".concat(m.slice(0,z),"...");if(c.measureText(j).width<=a){m=j;break}}return(0,he.BE)(l,{text:m,width:a})},g=function(l,a){return a=a||(0,H.im)().frameRendering,{enabled:!!l||a.enabled,outline:!l&&a.outline,name:!l&&a.name,clip:!!l||a.clip}},O=function(l){var a=l.elements,c=l.exportingFrame,m=l.frameRendering,z=l.exportWithDarkMode;return c?(0,U.Xs)({elements:a,bounds:c,type:"overlap"}):m.enabled&&m.name?function(j,k){var x,N=[],G=0,ie=$(j);try{for(ie.s();!(x=ie.n()).done;){var V=x.value;if((0,de.He)(V)){G++;var ce=(0,de.VL)({x:V.x,y:V.y-Z.iG.nameOffsetY,fontFamily:Z.ut.Assistant,fontSize:Z.iG.nameFontSize,lineHeight:Z.iG.nameLineHeight,strokeColor:k.exportWithDarkMode?Z.iG.nameColorDarkTheme:Z.iG.nameColorLightTheme,text:V.name||"Frame ".concat(G)});ce.y-=ce.height,ce=_(ce,V.width),N.push(ce)}N.push(V)}}catch(te){ie.e(te)}finally{ie.f()}return N}(a,{exportWithDarkMode:z}):a},s=function(){var l=(0,y.Z)(S().mark(function a(c,m,z,j){var k,x,N,G,ie,V,ce,te,L,re,me,Ce,We,Te,we,xe,_e,Oe,J,ke,q,o,i,p=arguments;return S().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return x=j.exportBackground,N=j.exportPadding,G=N===void 0?Z.qy:N,ie=j.viewBackgroundColor,V=j.exportingFrame,ce=p.length>4&&p[4]!==void 0?p[4]:function(A,X){var Y=document.createElement("canvas");return Y.width=A*m.exportScale,Y.height=X*m.exportScale,{canvas:Y,scale:m.exportScale}},te=R(c),c=te.getNonDeletedElements(),L=g(V??null,(k=m.frameRendering)!==null&&k!==void 0?k:null),re=O({elements:c,exportingFrame:V,exportWithDarkMode:m.exportWithDarkMode,frameRendering:L}),V&&(G=0),me=t(V?[V]:(0,le._h)(re),G),Ce=(0,E.Z)(me,4),We=Ce[0],Te=Ce[1],we=Ce[2],xe=Ce[3],_e=ce(we,xe),Oe=_e.canvas,J=_e.scale,ke=J===void 0?1:J,q=(0,H.im)(),B.next=12,(0,u.Xx)({imageCache:new Map,fileIds:(0,u.oA)(re).map(function(A){return A.fileId}),files:z});case 12:return o=B.sent,i=o.imageCache,(0,n.AW)({canvas:Oe,rc:I.Z.canvas(Oe),elements:re,visibleElements:re,scale:ke,appState:P(P({},m),{},{frameRendering:L,viewBackgroundColor:x?ie:null,scrollX:-We+G,scrollY:-Te+G,zoom:q.zoom,shouldCacheIgnoreZoom:!1,theme:m.exportWithDarkMode?"dark":"light"}),renderConfig:{imageCache:i,renderGrid:!1,isExporting:!0}}),te.destroy(),B.abrupt("return",Oe);case 17:case"end":return B.stop()}},a)}));return function(a,c,m,z){return l.apply(this,arguments)}}(),f=function(){var l=(0,y.Z)(S().mark(function a(c,m,z,j){var k,x,N,G,ie,V,ce,te,L,re,me,Ce,We,Te,we,xe,_e,Oe,J,ke,q,o,i,p,B,A,X,Y,ee,ge,be,Re,Ze,Be,Ie,Ke,Ye,tt,ue,ve,De,He,Je;return S().wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:if(G=R(c),c=G.getNonDeletedElements(),ie=g((k=j?.exportingFrame)!==null&&k!==void 0?k:null,(x=m.frameRendering)!==null&&x!==void 0?x:null),V=m.exportPadding,ce=V===void 0?Z.qy:V,te=m.exportWithDarkMode,L=te!==void 0&&te,re=m.viewBackgroundColor,me=m.exportScale,Ce=me===void 0?1:me,We=m.exportEmbedScene,Te=(j||{}).exportingFrame,xe=O({elements:c,exportingFrame:we=Te===void 0?null:Te,exportWithDarkMode:L,frameRendering:ie}),we&&(ce=0),_e="",!We){qe.next=20;break}return qe.prev=9,qe.next=12,Promise.resolve().then(e.bind(e,250));case 12:return qe.next=14,qe.sent.encodeSvgMetadata({text:(0,W.I_)(c,m,z||{},"local")});case 14:_e=qe.sent,qe.next=20;break;case 17:qe.prev=17,qe.t0=qe.catch(9),console.error(qe.t0);case 20:Oe=t(we?[we]:(0,le._h)(xe),ce),J=(0,E.Z)(Oe,4),ke=J[0],q=J[1],o=J[2],i=J[3],(p=document.createElementNS(Z.hR,"svg")).setAttribute("version","1.1"),p.setAttribute("xmlns",Z.hR),p.setAttribute("viewBox","0 0 ".concat(o," ").concat(i)),p.setAttribute("width","".concat(o*Ce)),p.setAttribute("height","".concat(i*Ce)),L&&p.setAttribute("filter",Z.ZF),B="https://excalidraw.com/",B=window.EXCALIDRAW_ASSET_PATH||"https://unpkg.com/".concat("@excalidraw/excalidraw","@").concat({VITE_APP_BACKEND_V2_GET_URL:"https://json.excalidraw.com/api/v2/",VITE_APP_BACKEND_V2_POST_URL:"https://json.excalidraw.com/api/v2/post/",VITE_APP_LIBRARY_URL:"https://libraries.excalidraw.com",VITE_APP_LIBRARY_BACKEND:"https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries",VITE_APP_PORTAL_URL:"https://portal.excalidraw.com",VITE_APP_PLUS_LP:"https://plus.excalidraw.com",VITE_APP_PLUS_APP:"https://app.excalidraw.com",VITE_APP_WS_SERVER_URL:"",VITE_APP_FIREBASE_CONFIG:'{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}',VITE_APP_DISABLE_TRACKING:"",VITE_PKG_NAME:"@excalidraw/excalidraw",VITE_PKG_VERSION:"0.17.0",VITE_IS_EXCALIDRAW_NPM_PACKAGE:!0}.PKG_VERSION),(A=B)!==null&&A!==void 0&&A.startsWith("/")&&(B=B.replace("/","".concat(window.location.origin,"/"))),B="".concat(B,"/dist/excalidraw-assets/"),X=-ke+ce,Y=-q+ce,ee=(0,le.wO)(c),ge="",be=$(ee);try{for(be.s();!(Re=be.n()).done;)Ze=Re.value,Be=(0,v.qf)(Ze),Ie=(0,E.Z)(Be,4),Ke=Ie[0],Ye=Ie[1],tt=Ie[2],ue=Ie[3],ve=(tt-Ke)/2-(Ze.x-Ke),De=(ue-Ye)/2-(Ze.y-Ye),ge+="<clipPath id=".concat(Ze.id,`> + <rect transform="translate(`).concat(Ze.x+X," ").concat(Ze.y+Y,") rotate(").concat(Ze.angle," ").concat(ve," ").concat(De,`)" + width="`).concat(Ze.width,`" + height="`).concat(Ze.height,`" + > + </rect> + </clipPath>`)}catch(st){be.e(st)}finally{be.f()}return p.innerHTML=` + `.concat("<!-- svg-source:excalidraw -->",` + `).concat(_e,` + <defs> + <style class="style-fonts"> + @font-face { + font-family: "Virgil"; + src: url("`).concat(B,`Virgil.woff2"); + } + @font-face { + font-family: "Cascadia"; + src: url("`).concat(B,`Cascadia.woff2"); + } + @font-face { + font-family: "Assistant"; + src: url("`).concat(B,`Assistant-Regular.woff2"); + } + </style> + `).concat(ge,` + </defs> + `),m.exportBackground&&re&&((He=p.ownerDocument.createElementNS(Z.hR,"rect")).setAttribute("x","0"),He.setAttribute("y","0"),He.setAttribute("width","".concat(o)),He.setAttribute("height","".concat(i)),He.setAttribute("fill",re),p.appendChild(He)),Je=I.Z.svg(p),(0,n.M_)(xe,Je,p,z||{},{offsetX:X,offsetY:Y,exportWithDarkMode:L,renderEmbeddables:(N=j?.renderEmbeddables)!==null&&N!==void 0&&N,frameRendering:ie}),G.destroy(),qe.abrupt("return",p);case 42:case"end":return qe.stop()}},a,null,[[9,17]])}));return function(a,c,m,z){return l.apply(this,arguments)}}(),t=function(l,a){var c=(0,v.KP)(l),m=(0,E.Z)(c,4),z=m[0],j=m[1],k=m[2],x=m[3];return[z,j,(0,M.TE)(z,k)+2*a,(0,M.TE)(j,x)+2*a]},w=function(l,a,c){var m=t(l,a).map(function(j){return Math.trunc(j*c)}),z=(0,E.Z)(m,4);return[z[2],z[3]]}},4105:function(Se,Q,e){e.d(Q,{$b:function(){return h.$b},CJ:function(){return h.CJ},M9:function(){return h.M9},N:function(){return E.N},PR:function(){return E.PR},QG:function(){return h.QG},Un:function(){return h.Un},W:function(){return y.W},Yp:function(){return E.Yp},Zd:function(){return h.Zd},Zs:function(){return E.Zs},_4:function(){return D._4},eD:function(){return E.eD},j:function(){return S.j},sh:function(){return h.sh}});var D=e(4726),E=e(6264),y=e(2382),h=e(1648),S=e(4116)},2382:function(Se,Q,e){e.d(Q,{W:function(){return S},s:function(){return h}});var D=e(2577),E=e(7651),y=e(9827),h=function(I){var v=I.scenePoint,n=I.viewportDimensions,M=I.zoom;return{scrollX:n.width/2/M.value-v.x,scrollY:n.height/2/M.value-v.y}},S=function(I,v){if(!(I=(0,E.n_)(I)).length)return{scrollX:0,scrollY:0};var n=(0,E.KP)(I),M=(0,D.Z)(n,4),Z=M[0],H=M[1],W=M[2],u=M[3];if(function(de,he){var pe=(0,D.Z)(he,4),oe=pe[0],P=pe[1],$=pe[2],b=pe[3],R=(0,y._i)({sceneX:oe,sceneY:P},de),_=R.x,g=R.y,O=(0,y._i)({sceneX:$,sceneY:b},de),s=O.x,f=O.y;return s-_>de.width||f-g>de.height}(v,[Z,H,W,u])){var U=(0,E.os)(I,(0,y.dE)({clientX:v.scrollX,clientY:v.scrollY},v)),le=(0,D.Z)(U,4);Z=le[0],H=le[1],W=le[2],u=le[3]}return h({scenePoint:{x:(Z+W)/2,y:(H+u)/2},viewportDimensions:{width:v.width,height:v.height},zoom:v.zoom})}},4726:function(Se,Q,e){e.d(Q,{WM:function(){return S},_4:function(){return M},nn:function(){return I},tJ:function(){return n},w1:function(){return v}});var D=e(2577),E=e(7651),y=e(9827),h=e(8227),S=4,I=6,v="rgba(0,0,0,0.3)",n=function(Z,H,W,u){if(Z.length===0)return{horizontal:null,vertical:null};var U=(0,E.KP)(Z),le=(0,D.Z)(U,4),de=le[0],he=le[1],pe=le[2],oe=le[3],P=H/u.zoom.value,$=W/u.zoom.value,b=H-P,R=W-$,_={top:parseInt((0,y.IH)("sat"))||0,bottom:parseInt((0,y.IH)("sab"))||0,left:parseInt((0,y.IH)("sal"))||0,right:parseInt((0,y.IH)("sar"))||0},g=(0,h.G3)().rtl,O=-u.scrollX+b/2+_.left,s=-u.scrollY+R/2+_.top,f=O+P-_.right,t=s+$-_.bottom,w=Math.min(de,O),l=Math.min(he,s),a=Math.max(pe,f),c=Math.max(oe,t);return{horizontal:O===w&&f===a?null:{x:Math.max(_.left,S)+(O-w)/(a-w)*H,y:W-I-Math.max(S,_.bottom),width:(f-O)/(a-w)*H-Math.max(2*S,_.left+_.right),height:I},vertical:s===l&&t===c?null:{x:g?Math.max(_.left,S):H-I-Math.max(_.right,S),y:(s-l)/(c-l)*W+Math.max(_.top,S),width:I,height:(t-s)/(c-l)*W-Math.max(2*S,_.top+_.bottom)}}},M=function(Z,H,W){var u=[Z.horizontal,Z.vertical].map(function(he){return he!=null&&he.x<=H&&H<=he.x+he.width&&he.y<=W&&W<=he.y+he.height}),U=(0,D.Z)(u,2),le=U[0],de=U[1];return{isOverEither:le||de,isOverHorizontal:le,isOverVertical:de}}},6264:function(Se,Q,e){e.d(Q,{CF:function(){return u},N:function(){return U},Oh:function(){return pe},PR:function(){return le},Yp:function(){return W},Zs:function(){return he},aI:function(){return H},eD:function(){return de}});var D,E,y,h,S=e(2577),I=e(7651),v=e(4183),n=e(4682),M=e(9827),Z=e(7935),H=function(oe){var P=new Set;return oe.forEach(function($){$.type==="frame"&&P.add($.id)}),oe.filter(function($){return!$.frameId||!P.has($.frameId)})},W=function(oe,P){var $=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],b=(0,I.qf)(P),R=(0,S.Z)(b,4),_=R[0],g=R[1],O=R[2],s=R[3],f=oe.filter(function(t){var w=(0,I.Pi)(t),l=(0,S.Z)(w,4),a=l[0],c=l[1],m=l[2],z=l[3],j=(0,n.$Z)(t);if(j){var k=(0,I.Pi)(j),x=(0,S.Z)(k,4),N=x[0],G=x[1],ie=x[2],V=x[3];a=Math.max(N,a),c=Math.max(G,c),m=Math.min(ie,m),z=Math.min(V,z)}return t.locked===!1&&t.type!=="selection"&&!(0,v.Xh)(t)&&_<=a&&g<=c&&O>=m&&s>=z});return f=(f=$?H(f):f).filter(function(t){var w=(0,n.$Z)(t);return!w||(0,n.cO)(t,w)})},u=function(oe,P,$){var b=new Set(P.map(function(R){return R.id}));return oe.filter(function(R){var _=(0,Z.PZ)(R,$.width,$.height,$);return!b.has(R.id)&&_})},U=(D=null,E=null,y=null,(h=function(oe,P){return y!=null&&oe===D&&P.selectedElementIds===E||(y=oe.some(function($){return P.selectedElementIds[$.id]}),D=oe,E=P.selectedElementIds),y}).clearCache=function(){D=null,E=null,y=null},h),le=function(oe,P,$){var b=Array.from(new Set(de(oe,P).map(function(R){return $(R)})));return b.length===1?b[0]:null},de=function(oe,P,$){var b=oe.filter(function(_){return P.selectedElementIds[_.id]||$!=null&&$.includeBoundTextElement&&(0,v.Xh)(_)&&P.selectedElementIds[_?.containerId]?_:null});if($!=null&&$.includeElementsInFrames){var R=[];return b.forEach(function(_){_.type==="frame"&&(0,n.zD)(oe,_.id).forEach(function(g){return R.push(g)}),R.push(_)}),R}return b},he=function(oe,P){return P.editingElement?[P.editingElement]:de(oe,P,{includeBoundTextElement:!0})},pe=function(oe,P){return(0,M.w8)(P.selectedElementIds,oe)?P.selectedElementIds:oe}},4116:function(Se,Q,e){e.d(Q,{E:function(){return y},j:function(){return E}});var D=e(9937),E=function(h){return Math.max(D.Zj,Math.min(h,30))},y=function(h,S){var I=h.viewportX,v=h.viewportY,n=h.nextZoom,M=I-S.offsetLeft,Z=v-S.offsetTop,H=S.zoom.value;return{scrollX:S.scrollX+(M-M/H)+-(M-M/n),scrollY:S.scrollY+(Z-Z/H)+-(Z-Z/n),zoom:{value:n}}}},9827:function(Se,Q,e){e.d(Q,{$9:function(){return V},$g:function(){return P},$h:function(){return xe},AK:function(){return j},B4:function(){return O},C3:function(){return re},Ds:function(){return b},FG:function(){return k},Fc:function(){return U},G3:function(){return L},G9:function(){return i},HP:function(){return o},I4:function(){return Ce},IH:function(){return c},Ip:function(){return ce},Mj:function(){return ke},Om:function(){return t},Oo:function(){return le},Qm:function(){return G},TE:function(){return f},Vv:function(){return _},XF:function(){return p},_Z:function(){return he},_i:function(){return a},ag:function(){return Te},cx:function(){return x},dE:function(){return l},dZ:function(){return z},h2:function(){return We},hR:function(){return R},mO:function(){return $},qr:function(){return N},qz:function(){return te},s:function(){return oe},tH:function(){return ie},uY:function(){return w},v4:function(){return we},vE:function(){return q},w8:function(){return J},wO:function(){return de},xU:function(){return B},xn:function(){return me},xp:function(){return Oe},y1:function(){return pe},y8:function(){return _e},yo:function(){return s}});var D=e(6655),E=e(7169),y=e(1930),h=e(2577),S=e(9240),I=e(9937),v=e(5156),n=e(9787),M=e.n(n);function Z(A,X){var Y=typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(!Y){if(Array.isArray(A)||(Y=function(Be,Ie){if(Be){if(typeof Be=="string")return H(Be,Ie);var Ke=Object.prototype.toString.call(Be).slice(8,-1);if(Ke==="Object"&&Be.constructor&&(Ke=Be.constructor.name),Ke==="Map"||Ke==="Set")return Array.from(Be);if(Ke==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ke))return H(Be,Ie)}}(A))||X&&A&&typeof A.length=="number"){Y&&(A=Y);var ee=0,ge=function(){};return{s:ge,n:function(){return ee>=A.length?{done:!0}:{done:!1,value:A[ee++]}},e:function(Be){throw Be},f:ge}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var be,Re=!0,Ze=!1;return{s:function(){Y=Y.call(A)},n:function(){var Be=Y.next();return Re=Be.done,Be},e:function(Be){Ze=!0,be=Be},f:function(){try{Re||Y.return==null||Y.return()}finally{if(Ze)throw be}}}}function H(A,X){(X==null||X>A.length)&&(X=A.length);for(var Y=0,ee=new Array(X);Y<X;Y++)ee[Y]=A[Y];return ee}function W(A,X){var Y=Object.keys(A);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(A);X&&(ee=ee.filter(function(ge){return Object.getOwnPropertyDescriptor(A,ge).enumerable})),Y.push.apply(Y,ee)}return Y}function u(A){for(var X=1;X<arguments.length;X++){var Y=arguments[X]!=null?arguments[X]:{};X%2?W(Object(Y),!0).forEach(function(ee){(0,E.Z)(A,ee,Y[ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(Y)):W(Object(Y)).forEach(function(ee){Object.defineProperty(A,ee,Object.getOwnPropertyDescriptor(Y,ee))})}return A}var U=function(){var A=new Date,X=A.getFullYear(),Y="".concat(A.getMonth()+1).padStart(2,"0"),ee="".concat(A.getDate()).padStart(2,"0"),ge="".concat(A.getHours()).padStart(2,"0"),be="".concat(A.getMinutes()).padStart(2,"0");return"".concat(X,"-").concat(Y,"-").concat(ee,"-").concat(ge).concat(be)},le=function(A){return A.charAt(0).toUpperCase()+A.slice(1)},de=function(A){return A instanceof HTMLElement&&A.className.includes("ToolIcon")},he=function(A){return A instanceof HTMLElement&&A.dataset.type==="wysiwyg"||A instanceof HTMLBRElement||A instanceof HTMLInputElement||A instanceof HTMLTextAreaElement||A instanceof HTMLSelectElement},pe=function(A){return he(A)||A instanceof Element&&!!A.closest("label, button")},oe=function(A){return A instanceof HTMLElement&&A.dataset.type==="wysiwyg"||A instanceof HTMLBRElement||A instanceof HTMLTextAreaElement||A instanceof HTMLInputElement&&(A.type==="text"||A.type==="number")},P=function(A){for(var X=A.fontFamily,Y=0,ee=Object.entries(I.ut);Y<ee.length;Y++){var ge=(0,h.Z)(ee[Y],2),be=ge[0];if(ge[1]===X)return"".concat(be,", ").concat(I._D)}return I._D},$=function(A){var X=A.fontSize,Y=A.fontFamily;return"".concat(X,"px ").concat(P({fontFamily:Y}))},b=function(A,X){var Y=0,ee=null,ge=function(){for(var be=arguments.length,Re=new Array(be),Ze=0;Ze<be;Ze++)Re[Ze]=arguments[Ze];ee=Re,clearTimeout(Y),Y=window.setTimeout(function(){ee=null,A.apply(void 0,Re)},X)};return ge.flush=function(){if(clearTimeout(Y),ee){var be=ee;ee=null,A.apply(void 0,(0,y.Z)(be))}},ge.cancel=function(){ee=null,clearTimeout(Y)},ge},R=function(A,X){var Y=null,ee=null,ge=null,be=function Ze(Be){Y=window.requestAnimationFrame(function(){Y=null,A.apply(void 0,(0,y.Z)(Be)),ee=null,ge&&(ee=ge,ge=null,Ze(ee))})},Re=function(){for(var Ze=arguments.length,Be=new Array(Ze),Ie=0;Ie<Ze;Ie++)Be[Ie]=arguments[Ie];ee=Be,Y===null?be(ee):X!=null&&X.trailing&&(ge=Be)};return Re.flush=function(){Y!==null&&(cancelAnimationFrame(Y),Y=null),ee&&(A.apply(void 0,(0,y.Z)(ge||ee)),ee=ge=null)},Re.cancel=function(){ee=ge=null,Y!==null&&(cancelAnimationFrame(Y),Y=null)},Re},_=function(A){return 1-Math.pow(1-A,4)},g=function(A,X,Y){return(X-A)*_(Y)+A},O=function(A){var X,Y=A.fromValues,ee=A.toValues,ge=A.onStep,be=A.duration,Re=be===void 0?250:be,Ze=A.interpolateValue,Be=A.onStart,Ie=A.onEnd,Ke=A.onCancel,Ye=!1,tt=0;return tt=window.requestAnimationFrame(function ue(ve){if(!Ye){X===void 0&&(X=ve,Be?.());var De=Math.min(ve-X,Re),He=_(De/Re),Je={};if(Object.keys(Y).forEach(function(ht){var et=ht,wt=(ee[et]-Y[et])*He+Y[et];Je[et]=wt}),ge(Je),De<Re){var qe=De/Re,st={};Object.keys(Y).forEach(function(ht){var et,wt=ht,Lt=Y[wt],St=ee[wt];(et=Ze?Ze(Lt,St,qe,wt):g(Lt,St,qe))==null&&(et=g(Lt,St,qe)),st[wt]=et}),ge(st),tt=window.requestAnimationFrame(ue)}else ge(ee),Ie?.()}}),function(){Ke?.(),Ye=!0,window.cancelAnimationFrame(tt)}},s=function(A,X){if(!A.length||X<1)return[];for(var Y=0,ee=0,ge=Array(Math.ceil(A.length/X));Y<A.length;)ge[ee++]=A.slice(Y,Y+=X);return ge},f=function(A,X){return Math.abs(A-X)},t=function(A,X){var Y,ee;return X.type==="custom"?u(u({},A.activeTool),{},{type:"custom",customType:X.customType,locked:(ee=X.locked)!==null&&ee!==void 0?ee:A.activeTool.locked}):u(u({},A.activeTool),{},{lastActiveTool:X.lastActiveToolBeforeEraser===void 0?A.activeTool.lastActiveTool:X.lastActiveToolBeforeEraser,type:X.type,customType:null,locked:(Y=X.locked)!==null&&Y!==void 0?Y:A.activeTool.locked})},w=function(A){return A=A.replace(/\bAlt\b/i,"Alt").replace(/\bShift\b/i,"Shift").replace(/\b(Enter|Return)\b/i,"Enter"),I.Um?A.replace(/\bCtrlOrCmd\b/gi,"Cmd").replace(/\bAlt\b/i,"Option"):A.replace(/\bCtrlOrCmd\b/gi,"Ctrl")},l=function(A,X){var Y=A.clientX,ee=A.clientY,ge=X.zoom,be=X.offsetLeft,Re=X.offsetTop,Ze=X.scrollX,Be=X.scrollY;return{x:(Y-be)/ge.value-Ze,y:(ee-Re)/ge.value-Be}},a=function(A,X){var Y=A.sceneX,ee=A.sceneY,ge=X.zoom,be=X.offsetLeft,Re=X.offsetTop,Ze=X.scrollX,Be=X.scrollY;return{x:(Y+Ze)*ge.value+be,y:(ee+Be)*ge.value+Re}},c=function(A){return getComputedStyle(document.documentElement).getPropertyValue("--".concat(A))},m=new RegExp("^[^".concat("A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿Ⰰ-﬜﷾-﹯﻽-￿","]*[").concat("֑-߿יִ-﷽ﹰ-ﻼ","]")),z=function(A){return m.test(A)},j=function(A){var X=(0,h.Z)(A,2);return{x:X[0],y:X[1]}},k=function(A){if(A?.name!=="AbortError")throw A;console.warn(A)},x=function(A,X){var Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Y<0&&(Y=A.length+Y);for(var ee=(Y=Math.min(A.length,Math.max(Y,0)))-1;++ee<A.length;)if(X(A[ee],ee,A))return ee;return-1},N=function(A,X){var Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:A.length-1;Y<0&&(Y=A.length+Y);for(var ee=(Y=Math.min(A.length-1,Math.max(Y,0)))+1;--ee>-1;)if(X(A[ee],ee,A))return ee;return-1},G=function(A){var X=A.length===5&&A.substr(4,1)==="0",Y=A.length===9&&A.substr(7,2)==="00";return X||Y||A===S.HO.transparent},ie=function(A){return function(X){(0,v.unstable_batchedUpdates)(A,X)}},V=function(A){return R(function(X){(0,v.unstable_batchedUpdates)(A,X)})},ce=function(A){for(var X=A.parentElement;X;){if(X===document.body)return document;var Y=window.getComputedStyle(X).overflowY;if(X.scrollHeight>X.clientHeight&&(Y==="auto"||Y==="scroll"||Y==="overlay"))return X;X=X.parentElement}return document},te=function(A){for(var X=A.parentElement;X;){if(X.tabIndex>-1)return void X.focus();X=X.parentElement}},L=function(A){return Array.from(A).map(function(X){return"0".concat(X.toString(16)).slice(-2)}).join("")},re=function(){return We()?1:Date.now()},me=function(A){return A.reduce(function(X,Y){return X.set(typeof Y=="string"?Y:Y.id,Y),X},new Map)},Ce=function(A){return A.reduce(function(X,Y,ee){return X.set(Y.id,[Y,ee]),X},new Map)},We=function(){return!1},Te=function(A,X){return new CustomEvent(A,{detail:{nativeEvent:X},cancelable:!0})},we=function(A,X){var Y=!1;for(var ee in X){var ge=X[ee];if(ge!==void 0){if(A[ee]===ge&&((0,D.Z)(ge)!=="object"||ge===null))continue;Y=!0}}return Y?u(u({},A),X):A},xe=function(){try{return window.self===window.top?"top":"iframe"}catch{return"iframe"}},_e=function(A){return!!A&&(0,D.Z)(A)==="object"&&"then"in A&&"catch"in A&&"finally"in A},Oe=function(A){var X=A?.querySelectorAll("button, a, input, select, textarea, div[tabindex], label[tabindex]");return X?Array.from(X).filter(function(Y){return Y.tabIndex>-1&&!Y.disabled}):[]},J=function(A,X,Y){var ee=arguments.length>3&&arguments[3]!==void 0&&arguments[3],ge=Object.keys(A),be=Object.keys(X);return ge.length===be.length&&ge.every(function(Re){var Ze=Y?.[Re],Be=Ze?Ze(A[Re],X[Re]):A[Re]===X[Re];return!Be&&ee&&console.info("%cisShallowEqual: ".concat(Re," not equal ->"),"color: #8B4000",A[Re],X[Re]),Be})},ke=function(A,X){var Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=Y.checkForDefaultPrevented,ge=ee===void 0||ee;return function(be){if(A?.(be),!ge||!be.defaultPrevented)return X?.(be)}},q=function(A,X,Y){if(!X)return A;if(Y)return console.error(X),A;throw new Error(X)},o=function(A){var X,Y,ee=function(ge){var be=Object.entries(ge);if(X){var Re,Ze=!0,Be=Z(be);try{for(Be.s();!(Re=Be.n()).done;){var Ie=(0,h.Z)(Re.value,2),Ke=Ie[0],Ye=Ie[1];if(X.get(Ke)!==Ye){Ze=!1;break}}}catch(ue){Be.e(ue)}finally{Be.f()}if(Ze)return Y}var tt=A(ge);return X=new Map(be),Y=tt,tt};return ee.clear=function(){X=void 0,Y=void 0},ee},i=function(){var A;try{var X=M().version.split(".");A=Number(X[0])>17}catch{A=!1}var Y=!1;return function(){return window.EXCALIDRAW_THROTTLE_RENDER===!0&&(!!A||(Y||(Y=!0,console.warn("Excalidraw: render throttling is disabled on React versions < 18.")),!1))}}(),p=function(A,X){return A instanceof Set||A instanceof Map?A.has(X):"includes"in A?A.includes(X):A.hasOwnProperty(X)},B=function(A){return JSON.parse(JSON.stringify(A))}},3041:function(Se,Q,e){var D=e(3379),E=e.n(D),y=e(7795),h=e.n(y),S=e(569),I=e.n(S),v=e(3565),n=e.n(v),M=e(9216),Z=e.n(M),H=e(4589),W=e.n(H),u=e(2044),U={};U.styleTagTransform=W(),U.setAttributes=n(),U.insert=I().bind(null,"head"),U.domAPI=h(),U.insertStyleElement=Z(),E()(u.Z,U),u.Z&&u.Z.locals&&u.Z.locals},3379:function(Se){var Q=[];function e(y){for(var h=-1,S=0;S<Q.length;S++)if(Q[S].identifier===y){h=S;break}return h}function D(y,h){for(var S={},I=[],v=0;v<y.length;v++){var n=y[v],M=h.base?n[0]+h.base:n[0],Z=S[M]||0,H="".concat(M," ").concat(Z);S[M]=Z+1;var W=e(H),u={css:n[1],media:n[2],sourceMap:n[3],supports:n[4],layer:n[5]};if(W!==-1)Q[W].references++,Q[W].updater(u);else{var U=E(u,h);h.byIndex=v,Q.splice(v,0,{identifier:H,updater:U,references:1})}I.push(H)}return I}function E(y,h){var S=h.domAPI(h);return S.update(y),function(I){if(I){if(I.css===y.css&&I.media===y.media&&I.sourceMap===y.sourceMap&&I.supports===y.supports&&I.layer===y.layer)return;S.update(y=I)}else S.remove()}}Se.exports=function(y,h){var S=D(y=y||[],h=h||{});return function(I){I=I||[];for(var v=0;v<S.length;v++){var n=e(S[v]);Q[n].references--}for(var M=D(I,h),Z=0;Z<S.length;Z++){var H=e(S[Z]);Q[H].references===0&&(Q[H].updater(),Q.splice(H,1))}S=M}}},569:function(Se){var Q={};Se.exports=function(e,D){var E=function(y){if(Q[y]===void 0){var h=document.querySelector(y);if(window.HTMLIFrameElement&&h instanceof window.HTMLIFrameElement)try{h=h.contentDocument.head}catch{h=null}Q[y]=h}return Q[y]}(e);if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(D)}},9216:function(Se){Se.exports=function(Q){var e=document.createElement("style");return Q.setAttributes(e,Q.attributes),Q.insert(e,Q.options),e}},3565:function(Se,Q,e){Se.exports=function(D){var E=e.nc;E&&D.setAttribute("nonce",E)}},7795:function(Se){Se.exports=function(Q){if(typeof document>"u")return{update:function(){},remove:function(){}};var e=Q.insertStyleElement(Q);return{update:function(D){(function(E,y,h){var S="";h.supports&&(S+="@supports (".concat(h.supports,") {")),h.media&&(S+="@media ".concat(h.media," {"));var I=h.layer!==void 0;I&&(S+="@layer".concat(h.layer.length>0?" ".concat(h.layer):""," {")),S+=h.css,I&&(S+="}"),h.media&&(S+="}"),h.supports&&(S+="}");var v=h.sourceMap;v&&typeof btoa<"u"&&(S+=` +/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(v))))," */")),y.styleTagTransform(S,E,y.options)})(e,Q,D)},remove:function(){(function(D){if(D.parentNode===null)return!1;D.parentNode.removeChild(D)})(e)}}}},4589:function(Se){Se.exports=function(Q,e){if(e.styleSheet)e.styleSheet.cssText=Q;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(Q))}}},9669:function(Se){Se.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg=="},7984:function(Se){Se.exports='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" viewBox="0 0 292 292"><path d="M287 197L159 69c-4-3-8-5-13-5s-9 2-13 5L5 197c-3 4-5 8-5 13s2 9 5 13c4 4 8 5 13 5h256c5 0 9-1 13-5s5-8 5-13-1-9-5-13z"/></svg>'},1639:function(Se){Se.exports='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" viewBox="0 0 292 292"><path fill="%23ced4da" d="M287 197L159 69c-4-3-8-5-13-5s-9 2-13 5L5 197c-3 4-5 8-5 13s2 9 5 13c4 4 8 5 13 5h256c5 0 9-1 13-5s5-8 5-13-1-9-5-13z"/></svg>'},9729:function(Se,Q,e){Se.exports=e.p+"excalidraw-assets/Assistant-Bold.woff2"},1273:function(Se,Q,e){Se.exports=e.p+"excalidraw-assets/Assistant-Medium.woff2"},8303:function(Se,Q,e){Se.exports=e.p+"excalidraw-assets/Assistant-Regular.woff2"},9577:function(Se,Q,e){Se.exports=e.p+"excalidraw-assets/Assistant-SemiBold.woff2"},3147:function(Se,Q,e){Se.exports=e.p+"excalidraw-assets/Cascadia.woff2"},3940:function(Se,Q,e){Se.exports=e.p+"excalidraw-assets/Virgil.woff2"},9787:function(Se){Se.exports=Oa},5156:function(Se){Se.exports=Ca},1020:function(Se){Se.exports=qo},9649:function(Se,Q,e){var D=e(8114).default;function E(){Se.exports=E=function(){return y},Se.exports.__esModule=!0,Se.exports.default=Se.exports;var y={},h=Object.prototype,S=h.hasOwnProperty,I=Object.defineProperty||function(l,a,c){l[a]=c.value},v=typeof Symbol=="function"?Symbol:{},n=v.iterator||"@@iterator",M=v.asyncIterator||"@@asyncIterator",Z=v.toStringTag||"@@toStringTag";function H(l,a,c){return Object.defineProperty(l,a,{value:c,enumerable:!0,configurable:!0,writable:!0}),l[a]}try{H({},"")}catch{H=function(a,c,m){return a[c]=m}}function W(l,a,c,m){var z=a&&a.prototype instanceof le?a:le,j=Object.create(z.prototype),k=new f(m||[]);return I(j,"_invoke",{value:_(l,c,k)}),j}function u(l,a,c){try{return{type:"normal",arg:l.call(a,c)}}catch(m){return{type:"throw",arg:m}}}y.wrap=W;var U={};function le(){}function de(){}function he(){}var pe={};H(pe,n,function(){return this});var oe=Object.getPrototypeOf,P=oe&&oe(oe(t([])));P&&P!==h&&S.call(P,n)&&(pe=P);var $=he.prototype=le.prototype=Object.create(pe);function b(l){["next","throw","return"].forEach(function(a){H(l,a,function(c){return this._invoke(a,c)})})}function R(l,a){function c(z,j,k,x){var N=u(l[z],l,j);if(N.type!=="throw"){var G=N.arg,ie=G.value;return ie&&D(ie)=="object"&&S.call(ie,"__await")?a.resolve(ie.__await).then(function(V){c("next",V,k,x)},function(V){c("throw",V,k,x)}):a.resolve(ie).then(function(V){G.value=V,k(G)},function(V){return c("throw",V,k,x)})}x(N.arg)}var m;I(this,"_invoke",{value:function(z,j){function k(){return new a(function(x,N){c(z,j,x,N)})}return m=m?m.then(k,k):k()}})}function _(l,a,c){var m="suspendedStart";return function(z,j){if(m==="executing")throw new Error("Generator is already running");if(m==="completed"){if(z==="throw")throw j;return w()}for(c.method=z,c.arg=j;;){var k=c.delegate;if(k){var x=g(k,c);if(x){if(x===U)continue;return x}}if(c.method==="next")c.sent=c._sent=c.arg;else if(c.method==="throw"){if(m==="suspendedStart")throw m="completed",c.arg;c.dispatchException(c.arg)}else c.method==="return"&&c.abrupt("return",c.arg);m="executing";var N=u(l,a,c);if(N.type==="normal"){if(m=c.done?"completed":"suspendedYield",N.arg===U)continue;return{value:N.arg,done:c.done}}N.type==="throw"&&(m="completed",c.method="throw",c.arg=N.arg)}}}function g(l,a){var c=a.method,m=l.iterator[c];if(m===void 0)return a.delegate=null,c==="throw"&&l.iterator.return&&(a.method="return",a.arg=void 0,g(l,a),a.method==="throw")||c!=="return"&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+c+"' method")),U;var z=u(m,l.iterator,a.arg);if(z.type==="throw")return a.method="throw",a.arg=z.arg,a.delegate=null,U;var j=z.arg;return j?j.done?(a[l.resultName]=j.value,a.next=l.nextLoc,a.method!=="return"&&(a.method="next",a.arg=void 0),a.delegate=null,U):j:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,U)}function O(l){var a={tryLoc:l[0]};1 in l&&(a.catchLoc=l[1]),2 in l&&(a.finallyLoc=l[2],a.afterLoc=l[3]),this.tryEntries.push(a)}function s(l){var a=l.completion||{};a.type="normal",delete a.arg,l.completion=a}function f(l){this.tryEntries=[{tryLoc:"root"}],l.forEach(O,this),this.reset(!0)}function t(l){if(l){var a=l[n];if(a)return a.call(l);if(typeof l.next=="function")return l;if(!isNaN(l.length)){var c=-1,m=function z(){for(;++c<l.length;)if(S.call(l,c))return z.value=l[c],z.done=!1,z;return z.value=void 0,z.done=!0,z};return m.next=m}}return{next:w}}function w(){return{value:void 0,done:!0}}return de.prototype=he,I($,"constructor",{value:he,configurable:!0}),I(he,"constructor",{value:de,configurable:!0}),de.displayName=H(he,Z,"GeneratorFunction"),y.isGeneratorFunction=function(l){var a=typeof l=="function"&&l.constructor;return!!a&&(a===de||(a.displayName||a.name)==="GeneratorFunction")},y.mark=function(l){return Object.setPrototypeOf?Object.setPrototypeOf(l,he):(l.__proto__=he,H(l,Z,"GeneratorFunction")),l.prototype=Object.create($),l},y.awrap=function(l){return{__await:l}},b(R.prototype),H(R.prototype,M,function(){return this}),y.AsyncIterator=R,y.async=function(l,a,c,m,z){z===void 0&&(z=Promise);var j=new R(W(l,a,c,m),z);return y.isGeneratorFunction(a)?j:j.next().then(function(k){return k.done?k.value:j.next()})},b($),H($,Z,"Generator"),H($,n,function(){return this}),H($,"toString",function(){return"[object Generator]"}),y.keys=function(l){var a=Object(l),c=[];for(var m in a)c.push(m);return c.reverse(),function z(){for(;c.length;){var j=c.pop();if(j in a)return z.value=j,z.done=!1,z}return z.done=!0,z}},y.values=t,f.prototype={constructor:f,reset:function(l){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(s),!l)for(var a in this)a.charAt(0)==="t"&&S.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=void 0)},stop:function(){this.done=!0;var l=this.tryEntries[0].completion;if(l.type==="throw")throw l.arg;return this.rval},dispatchException:function(l){if(this.done)throw l;var a=this;function c(N,G){return j.type="throw",j.arg=l,a.next=N,G&&(a.method="next",a.arg=void 0),!!G}for(var m=this.tryEntries.length-1;m>=0;--m){var z=this.tryEntries[m],j=z.completion;if(z.tryLoc==="root")return c("end");if(z.tryLoc<=this.prev){var k=S.call(z,"catchLoc"),x=S.call(z,"finallyLoc");if(k&&x){if(this.prev<z.catchLoc)return c(z.catchLoc,!0);if(this.prev<z.finallyLoc)return c(z.finallyLoc)}else if(k){if(this.prev<z.catchLoc)return c(z.catchLoc,!0)}else{if(!x)throw new Error("try statement without catch or finally");if(this.prev<z.finallyLoc)return c(z.finallyLoc)}}}},abrupt:function(l,a){for(var c=this.tryEntries.length-1;c>=0;--c){var m=this.tryEntries[c];if(m.tryLoc<=this.prev&&S.call(m,"finallyLoc")&&this.prev<m.finallyLoc){var z=m;break}}z&&(l==="break"||l==="continue")&&z.tryLoc<=a&&a<=z.finallyLoc&&(z=null);var j=z?z.completion:{};return j.type=l,j.arg=a,z?(this.method="next",this.next=z.finallyLoc,U):this.complete(j)},complete:function(l,a){if(l.type==="throw")throw l.arg;return l.type==="break"||l.type==="continue"?this.next=l.arg:l.type==="return"?(this.rval=this.arg=l.arg,this.method="return",this.next="end"):l.type==="normal"&&a&&(this.next=a),U},finish:function(l){for(var a=this.tryEntries.length-1;a>=0;--a){var c=this.tryEntries[a];if(c.finallyLoc===l)return this.complete(c.completion,c.afterLoc),s(c),U}},catch:function(l){for(var a=this.tryEntries.length-1;a>=0;--a){var c=this.tryEntries[a];if(c.tryLoc===l){var m=c.completion;if(m.type==="throw"){var z=m.arg;s(c)}return z}}throw new Error("illegal catch attempt")},delegateYield:function(l,a,c){return this.delegate={iterator:t(l),resultName:a,nextLoc:c},this.method==="next"&&(this.arg=void 0),U}},y}Se.exports=E,Se.exports.__esModule=!0,Se.exports.default=Se.exports},8114:function(Se){function Q(e){return Se.exports=Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},Se.exports.__esModule=!0,Se.exports.default=Se.exports,Q(e)}Se.exports=Q,Se.exports.__esModule=!0,Se.exports.default=Se.exports},2975:function(Se,Q,e){var D=e(9649)();Se.exports=D;try{regeneratorRuntime=D}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=D:Function("r","regeneratorRuntime = r")(D)}},7017:function(Se,Q,e){function D(E,y){(y==null||y>E.length)&&(y=E.length);for(var h=0,S=new Array(y);h<y;h++)S[h]=E[h];return S}e.d(Q,{Z:function(){return D}})},3173:function(Se,Q,e){function D(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}e.d(Q,{Z:function(){return D}})},8950:function(Se,Q,e){function D(y,h,S,I,v,n,M){try{var Z=y[n](M),H=Z.value}catch(W){return void S(W)}Z.done?h(H):Promise.resolve(H).then(I,v)}function E(y){return function(){var h=this,S=arguments;return new Promise(function(I,v){var n=y.apply(h,S);function M(H){D(n,I,v,M,Z,"next",H)}function Z(H){D(n,I,v,M,Z,"throw",H)}M(void 0)})}}e.d(Q,{Z:function(){return E}})},8821:function(Se,Q,e){function D(E,y){if(!(E instanceof y))throw new TypeError("Cannot call a class as a function")}e.d(Q,{Z:function(){return D}})},5169:function(Se,Q,e){e.d(Q,{Z:function(){return y}});var D=e(3525);function E(h,S){for(var I=0;I<S.length;I++){var v=S[I];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(h,(0,D.Z)(v.key),v)}}function y(h,S,I){return S&&E(h.prototype,S),I&&E(h,I),Object.defineProperty(h,"prototype",{writable:!1}),h}},7169:function(Se,Q,e){e.d(Q,{Z:function(){return E}});var D=e(3525);function E(y,h,S){return(h=(0,D.Z)(h))in y?Object.defineProperty(y,h,{value:S,enumerable:!0,configurable:!0,writable:!0}):y[h]=S,y}},11:function(Se,Q,e){function D(){return D=Object.assign?Object.assign.bind():function(E){for(var y=1;y<arguments.length;y++){var h=arguments[y];for(var S in h)Object.prototype.hasOwnProperty.call(h,S)&&(E[S]=h[S])}return E},D.apply(this,arguments)}e.d(Q,{Z:function(){return D}})},2312:function(Se,Q,e){function D(E){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},D(E)}e.d(Q,{Z:function(){return D}})},2248:function(Se,Q,e){e.d(Q,{Z:function(){return E}});var D=e(5901);function E(y,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(h&&h.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),h&&(0,D.Z)(y,h)}},2726:function(Se,Q,e){function D(E,y){if(E==null)return{};var h,S,I=function(n,M){if(n==null)return{};var Z,H,W={},u=Object.keys(n);for(H=0;H<u.length;H++)Z=u[H],M.indexOf(Z)>=0||(W[Z]=n[Z]);return W}(E,y);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(E);for(S=0;S<v.length;S++)h=v[S],y.indexOf(h)>=0||Object.prototype.propertyIsEnumerable.call(E,h)&&(I[h]=E[h])}return I}e.d(Q,{Z:function(){return D}})},7245:function(Se,Q,e){e.d(Q,{Z:function(){return y}});var D=e(6655),E=e(3173);function y(h,S){if(S&&((0,D.Z)(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(0,E.Z)(h)}},5901:function(Se,Q,e){function D(E,y){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,S){return h.__proto__=S,h},D(E,y)}e.d(Q,{Z:function(){return D}})},2577:function(Se,Q,e){e.d(Q,{Z:function(){return E}});var D=e(9139);function E(y,h){return function(S){if(Array.isArray(S))return S}(y)||function(S,I){var v=S==null?null:typeof Symbol<"u"&&S[Symbol.iterator]||S["@@iterator"];if(v!=null){var n,M,Z,H,W=[],u=!0,U=!1;try{if(Z=(v=v.call(S)).next,I===0){if(Object(v)!==v)return;u=!1}else for(;!(u=(n=Z.call(v)).done)&&(W.push(n.value),W.length!==I);u=!0);}catch(le){U=!0,M=le}finally{try{if(!u&&v.return!=null&&(H=v.return(),Object(H)!==H))return}finally{if(U)throw M}}return W}}(y,h)||(0,D.Z)(y,h)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}},1930:function(Se,Q,e){e.d(Q,{Z:function(){return y}});var D=e(7017),E=e(9139);function y(h){return function(S){if(Array.isArray(S))return(0,D.Z)(S)}(h)||function(S){if(typeof Symbol<"u"&&S[Symbol.iterator]!=null||S["@@iterator"]!=null)return Array.from(S)}(h)||(0,E.Z)(h)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}},3525:function(Se,Q,e){e.d(Q,{Z:function(){return E}});var D=e(6655);function E(y){var h=function(S,I){if((0,D.Z)(S)!=="object"||S===null)return S;var v=S[Symbol.toPrimitive];if(v!==void 0){var n=v.call(S,I||"default");if((0,D.Z)(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(I==="string"?String:Number)(S)}(y,"string");return(0,D.Z)(h)==="symbol"?h:String(h)}},6655:function(Se,Q,e){function D(E){return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},D(E)}e.d(Q,{Z:function(){return D}})},9139:function(Se,Q,e){e.d(Q,{Z:function(){return E}});var D=e(7017);function E(y,h){if(y){if(typeof y=="string")return(0,D.Z)(y,h);var S=Object.prototype.toString.call(y).slice(8,-1);return S==="Object"&&y.constructor&&(S=y.constructor.name),S==="Map"||S==="Set"?Array.from(y):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?(0,D.Z)(y,h):void 0}}},3607:function(Se,Q,e){e.d(Q,{zt:function(){return P},cn:function(){return $},Vv:function(){return de},KO:function(){return _},Dv:function(){return b},b9:function(){return R}});var D=e(9787);let E=0;const y=Symbol(),h=g=>!!g[y],S=g=>!g[y].c,I=g=>{var O;const{b:s,c:f}=g[y];f&&(f(),(O=M.get(s))==null||O())},v=(g,O)=>{const s=g[y].o,f=O[y].o;return s===f||g===f||h(s)&&v(s,O)},n=(g,O)=>{const s={b:g,o:O,c:null},f=new Promise(t=>{s.c=()=>{s.c=null,t()},O.finally(s.c)});return f[y]=s,f},M=new WeakMap,Z=g=>"init"in g,H="r",W="w",u="c",U="s",le=g=>{const O=new WeakMap,s=new WeakMap,f=new Map;let t,w;if(t=new Set,w=new Set,g)for(const[Oe,J]of g){const ke={v:J,r:0,y:!0,d:new Map};Object.freeze(ke),Z(Oe)||console.warn("Found initial value for derived atom which can cause unexpected behavior",Oe),O.set(Oe,ke)}const l=new WeakMap,a=new WeakMap,c=Oe=>{let J=a.get(Oe);return J||(J=new Map,a.set(Oe,J)),J},m=(Oe,J)=>{if(Oe){const ke=c(Oe);let q=ke.get(J);return q||(q=m(Oe.p,J),q&&"p"in q&&S(q.p)&&(q=void 0),q&&ke.set(J,q)),q}return O.get(J)},z=(Oe,J,ke)=>{if(Object.freeze(ke),Oe)c(Oe).set(J,ke);else{const q=O.get(J);O.set(J,ke),f.has(J)||f.set(J,q)}},j=(Oe,J=new Map,ke)=>{if(!ke)return J;const q=new Map;let o=!1;return ke.forEach(i=>{var p;const B=((p=m(Oe,i))==null?void 0:p.r)||0;q.set(i,B),J.get(i)!==B&&(o=!0)}),J.size!==q.size||o?q:J},k=(Oe,J,ke,q,o)=>{const i=m(Oe,J);if(i){if(o&&(!("p"in i)||!v(i.p,o)))return i;"p"in i&&I(i.p)}const p={v:ke,r:i?.r||0,y:!0,d:j(Oe,i?.d,q)};let B=!i?.y;return i&&"v"in i&&Object.is(i.v,ke)?p.d===i.d||p.d.size===i.d.size&&Array.from(p.d.keys()).every(A=>i.d.has(A))||(B=!0,Promise.resolve().then(()=>{Te(Oe)})):(B=!0,++p.r,p.d.has(J)&&(p.d=new Map(p.d).set(J,p.r))),i&&!B?i:(z(Oe,J,p),p)},x=(Oe,J,ke,q,o)=>{const i=m(Oe,J);if(i){if(o&&(!("p"in i)||!v(i.p,o)))return i;"p"in i&&I(i.p)}const p={e:ke,r:(i?.r||0)+1,y:!0,d:j(Oe,i?.d,q)};return z(Oe,J,p),p},N=(Oe,J,ke,q)=>{const o=m(Oe,J);if(o&&"p"in o){if(v(o.p,ke)&&!S(o.p))return o.y?o:{...o,y:!0};I(o.p)}((p,B,A)=>{let X=l.get(B);X||(X=new Map,l.set(B,X)),A.then(()=>{X.get(p)===A&&(X.delete(p),X.size||l.delete(B))}),X.set(p,A)})(Oe,J,ke);const i={p:ke,r:(o?.r||0)+1,y:!0,d:j(Oe,o?.d,q)};return z(Oe,J,i),i},G=(Oe,J,ke,q)=>{if(ke instanceof Promise){const o=n(ke,ke.then(i=>{k(Oe,J,i,q,o)}).catch(i=>{if(i instanceof Promise)return h(i)?i.then(()=>{ie(Oe,J,!0)}):i;x(Oe,J,i,q,o)}));return N(Oe,J,o,q)}return k(Oe,J,ke,q)},ie=(Oe,J,ke)=>{if(!ke){const o=m(Oe,J);if(o){if(o.y&&"p"in o&&!S(o.p))return o;if(o.d.forEach((i,p)=>{if(p!==J)if(s.has(p)){const B=m(Oe,p);B&&!B.y&&ie(Oe,p)}else ie(Oe,p)}),Array.from(o.d).every(([i,p])=>{const B=m(Oe,i);return B&&!("p"in B)&&B.r===p}))return o.y?o:{...o,y:!0}}}const q=new Set;try{const o=J.read(i=>{q.add(i);const p=i===J?m(Oe,i):ie(Oe,i);if(p){if("e"in p)throw p.e;if("p"in p)throw p.p;return p.v}if(Z(i))return i.init;throw new Error("no atom init")});return G(Oe,J,o,q)}catch(o){if(o instanceof Promise){const i=h(o)&&S(o)?(p=>n(p[y].b,p[y].o))(o):n(o,o);return N(Oe,J,i,q)}return x(Oe,J,o,q)}},V=(Oe,J)=>ie(J,Oe),ce=(Oe,J)=>!J.l.size&&(!J.t.size||J.t.size===1&&J.t.has(Oe)),te=(Oe,J)=>{const ke=s.get(J);ke?.t.forEach(q=>{q!==J&&(((o,i)=>{const p=m(o,i);if(p){const B={...p,y:!1};z(o,i,B)}else console.warn("[Bug] could not invalidate non existing atom",i)})(Oe,q),te(Oe,q))})},L=(Oe,J,ke)=>{let q=!0;const o=(p,B)=>{const A=ie(Oe,p);if("e"in A)throw A.e;if("p"in A){if(B?.unstable_promise)return A.p.then(()=>{const X=m(Oe,p);return X&&"p"in X&&X.p===A.p?new Promise(Y=>setTimeout(Y)).then(()=>o(p,B)):o(p,B)});throw console.info("Reading pending atom state in write operation. We throw a promise for now.",p),A.p}if("v"in A)return A.v;throw console.warn("[Bug] no value found while reading atom in write operation. This is probably a bug.",p),new Error("no value found")},i=J.write(o,(p,B)=>{let A;if(p===J){if(!Z(p))throw new Error("atom not writable");(Y=>{const ee=new Set,ge=l.get(Y);return ge&&(l.delete(Y),ge.forEach((be,Re)=>{I(be),ee.add(Re)})),ee})(p).forEach(Y=>{Y!==Oe&&G(Y,p,B)}),m(Oe,p)!==G(Oe,p,B)&&te(Oe,p)}else A=L(Oe,p,B);return q||Te(Oe),A},ke);return q=!1,i},re=(Oe,J,ke)=>{const q=L(ke,Oe,J);return Te(ke),q},me=(Oe,J,ke)=>{const q={t:new Set(ke&&[ke]),l:new Set};if(s.set(J,q),w.add(J),ie(void 0,J).d.forEach((o,i)=>{const p=s.get(i);p?p.t.add(J):i!==J&&me(Oe,i,J)}),(o=>!!o.write)(J)&&J.onMount){const o=p=>re(J,p,Oe),i=J.onMount(o);Oe=void 0,i&&(q.u=i)}return q},Ce=(Oe,J)=>{var ke;const q=(ke=s.get(J))==null?void 0:ke.u;q&&q(),s.delete(J),w.delete(J);const o=m(Oe,J);o?("p"in o&&I(o.p),o.d.forEach((i,p)=>{if(p!==J){const B=s.get(p);B&&(B.t.delete(J),ce(p,B)&&Ce(Oe,p))}})):console.warn("[Bug] could not find atom state to unmount",J)},We=(Oe,J,ke,q)=>{const o=new Set(ke.d.keys());q?.forEach((i,p)=>{if(o.has(p))return void o.delete(p);const B=s.get(p);B&&(B.t.delete(J),ce(p,B)&&Ce(Oe,p))}),o.forEach(i=>{const p=s.get(i);p?p.t.add(J):s.has(J)&&me(Oe,i,J)})},Te=Oe=>{if(Oe)c(Oe).forEach((J,ke)=>{if(J!==O.get(ke)){const q=s.get(ke);q?.l.forEach(o=>o(Oe))}});else{for(;f.size;){const J=Array.from(f);f.clear(),J.forEach(([ke,q])=>{const o=m(void 0,ke);if(o&&o.d!==q?.d&&We(void 0,ke,o,q?.d),q&&!q.y&&o?.y)return;const i=s.get(ke);i?.l.forEach(p=>p())})}t.forEach(J=>J())}},we=(Oe,J)=>{J&&(ke=>{c(ke).forEach((q,o)=>{const i=O.get(o);(!i||q.r>i.r||q.y!==i.y||q.r===i.r&&q.d!==i.d)&&(O.set(o,q),q.d!==i?.d&&We(ke,o,q,i?.d))})})(J),Te(void 0)},xe=(Oe,J,ke)=>{const q=((i,p)=>{let B=s.get(p);return B||(B=me(i,p)),B})(ke,Oe),o=q.l;return o.add(J),()=>{o.delete(J),((i,p)=>{const B=s.get(p);B&&ce(p,B)&&Ce(i,p)})(ke,Oe)}},_e=(Oe,J)=>{for(const[ke,q]of Oe)Z(ke)&&(G(J,ke,q),te(J,ke));Te(J)};return{[H]:V,[W]:re,[u]:we,[U]:xe,h:_e,n:Oe=>(t.add(Oe),()=>{t.delete(Oe)}),l:()=>w.values(),a:Oe=>O.get(Oe),m:Oe=>s.get(Oe)}},de=g=>{const O=le(g),s=f=>new Promise((t,w)=>{const l=O.r(f);"e"in l?w(l.e):t("p"in l?l.p.then(()=>s(f)):l.v)});return{get:f=>{const t=O.r(f);if("e"in t)throw t.e;if(!("p"in t))return t.v},asyncGet:s,set:(f,t)=>O.w(f,t),sub:(f,t)=>O.s(f,t),SECRET_INTERNAL_store:O}},he=(g,O)=>({s:O?O(g).SECRET_INTERNAL_store:le(g)}),pe=new Map,oe=g=>(pe.has(g)||pe.set(g,(0,D.createContext)(he())),pe.get(g)),P=({children:g,initialValues:O,scope:s,unstable_createStore:f,unstable_enableVersionedWrite:t})=>{const[w,l]=(0,D.useState)({});(0,D.useEffect)(()=>{const m=a.current;m.w&&(m.s.c(null,w),delete w.p,m.v=w)},[w]);const a=(0,D.useRef)();if(!a.current){const m=he(O,f);if(t){let z=0;m.w=j=>{l(k=>{const x=z?k:{p:k};return j(x),x})},m.v=w,m.r=j=>{++z,j(),--z}}a.current=m}const c=oe(s);return(0,D.createElement)(c.Provider,{value:a.current},g)};function $(g,O){return function(s,f){const t="atom"+ ++E,w={toString:()=>t};return typeof s=="function"?w.read=s:(w.init=s,w.read=l=>l(w),w.write=(l,a,c)=>a(w,typeof c=="function"?c(l(w)):c)),f&&(w.write=f),w}(g,O)}function b(g,O){const s=oe(O),f=(0,D.useContext)(s),{s:t,v:w}=f,l=k=>{const x=t.r(g,k);if(!x.y)throw new Error("should not be invalidated");if("e"in x)throw x.e;if("p"in x)throw x.p;if("v"in x)return x.v;throw new Error("no atom value")},[[a,c,m],z]=(0,D.useReducer)((k,x)=>{const N=l(x);return Object.is(k[1],N)&&k[2]===g?k:[x,N,g]},w,k=>[k,l(k),g]);let j=c;return m!==g&&(z(a),j=l(a)),(0,D.useEffect)(()=>{const{v:k}=f;k&&t.c(g,k);const x=t.s(g,z,k);return z(k),x},[t,g,f]),(0,D.useEffect)(()=>{t.c(g,a)}),(0,D.useDebugValue)(j),j}function R(g,O){const s=oe(O),{s:f,w:t}=(0,D.useContext)(s);return(0,D.useCallback)(w=>{if(!("write"in g))throw new Error("not writable atom");const l=a=>f.w(g,w,a);return t?t(l):l()},[f,t,g])}function _(g,O){return"scope"in g&&(console.warn("atom.scope is deprecated. Please do useAtom(atom, scope) instead."),O=g.scope),[b(g,O),R(g,O)]}},5605:function(Se,Q,e){e.d(Q,{x0:function(){return D}});let D=(E=21)=>crypto.getRandomValues(new Uint8Array(E)).reduce((y,h)=>y+=(h&=63)<36?h.toString(36):h<62?(h-26).toString(36).toUpperCase():h>62?"-":"_","")},5284:function(Se){Se.exports=JSON.parse('{"white":"#ffffff","black":"#000000","gray":["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],"red":["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],"pink":["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],"grape":["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],"violet":["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],"indigo":["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],"blue":["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],"cyan":["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],"teal":["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],"green":["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],"lime":["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],"yellow":["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],"orange":["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]}')},1463:function(Se){Se.exports=JSON.parse(`{"labels":{"paste":"Paste","pasteAsPlaintext":"Paste as plaintext","pasteCharts":"Paste charts","selectAll":"Select all","multiSelect":"Add element to selection","moveCanvas":"Move canvas","cut":"Cut","copy":"Copy","copyAsPng":"Copy to clipboard as PNG","copyAsSvg":"Copy to clipboard as SVG","copyText":"Copy to clipboard as text","bringForward":"Bring forward","sendToBack":"Send to back","bringToFront":"Bring to front","sendBackward":"Send backward","delete":"Delete","copyStyles":"Copy styles","pasteStyles":"Paste styles","stroke":"Stroke","background":"Background","fill":"Fill","strokeWidth":"Stroke width","strokeStyle":"Stroke style","strokeStyle_solid":"Solid","strokeStyle_dashed":"Dashed","strokeStyle_dotted":"Dotted","sloppiness":"Sloppiness","opacity":"Opacity","textAlign":"Text align","edges":"Edges","sharp":"Sharp","round":"Round","arrowheads":"Arrowheads","arrowhead_none":"None","arrowhead_arrow":"Arrow","arrowhead_bar":"Bar","arrowhead_dot":"Dot","arrowhead_triangle":"Triangle","fontSize":"Font size","fontFamily":"Font family","addWatermark":"Add \\"Made with Excalidraw\\"","handDrawn":"Hand-drawn","normal":"Normal","code":"Code","small":"Small","medium":"Medium","large":"Large","veryLarge":"Very large","solid":"Solid","hachure":"Hachure","zigzag":"Zigzag","crossHatch":"Cross-hatch","thin":"Thin","bold":"Bold","left":"Left","center":"Center","right":"Right","extraBold":"Extra bold","architect":"Architect","artist":"Artist","cartoonist":"Cartoonist","fileTitle":"File name","colorPicker":"Color picker","canvasColors":"Used on canvas","canvasBackground":"Canvas background","drawingCanvas":"Drawing canvas","layers":"Layers","actions":"Actions","language":"Language","liveCollaboration":"Live collaboration...","duplicateSelection":"Duplicate","untitled":"Untitled","name":"Name","yourName":"Your name","madeWithExcalidraw":"Made with Excalidraw","group":"Group selection","ungroup":"Ungroup selection","collaborators":"Collaborators","showGrid":"Show grid","addToLibrary":"Add to library","removeFromLibrary":"Remove from library","libraryLoadingMessage":"Loading library…","libraries":"Browse libraries","loadingScene":"Loading scene…","align":"Align","alignTop":"Align top","alignBottom":"Align bottom","alignLeft":"Align left","alignRight":"Align right","centerVertically":"Center vertically","centerHorizontally":"Center horizontally","distributeHorizontally":"Distribute horizontally","distributeVertically":"Distribute vertically","flipHorizontal":"Flip horizontal","flipVertical":"Flip vertical","viewMode":"View mode","share":"Share","showStroke":"Show stroke color picker","showBackground":"Show background color picker","toggleTheme":"Toggle theme","personalLib":"Personal Library","excalidrawLib":"Excalidraw Library","decreaseFontSize":"Decrease font size","increaseFontSize":"Increase font size","unbindText":"Unbind text","bindText":"Bind text to the container","createContainerFromText":"Wrap text in a container","link":{"edit":"Edit link","editEmbed":"Edit link & embed","create":"Create link","createEmbed":"Create link & embed","label":"Link","labelEmbed":"Link & embed","empty":"No link is set"},"lineEditor":{"edit":"Edit line","exit":"Exit line editor"},"elementLock":{"lock":"Lock","unlock":"Unlock","lockAll":"Lock all","unlockAll":"Unlock all"},"statusPublished":"Published","sidebarLock":"Keep sidebar open","selectAllElementsInFrame":"Select all elements in frame","removeAllElementsFromFrame":"Remove all elements from frame","eyeDropper":"Pick color from canvas"},"library":{"noItems":"No items added yet...","hint_emptyLibrary":"Select an item on canvas to add it here, or install a library from the public repository, below.","hint_emptyPrivateLibrary":"Select an item on canvas to add it here."},"buttons":{"clearReset":"Reset the canvas","exportJSON":"Export to file","exportImage":"Export image...","export":"Save to...","copyToClipboard":"Copy to clipboard","save":"Save to current file","saveAs":"Save as","load":"Open","getShareableLink":"Get shareable link","close":"Close","selectLanguage":"Select language","scrollBackToContent":"Scroll back to content","zoomIn":"Zoom in","zoomOut":"Zoom out","resetZoom":"Reset zoom","menu":"Menu","done":"Done","edit":"Edit","undo":"Undo","redo":"Redo","resetLibrary":"Reset library","createNewRoom":"Create new room","fullScreen":"Full screen","darkMode":"Dark mode","lightMode":"Light mode","zenMode":"Zen mode","objectsSnapMode":"Snap to objects","exitZenMode":"Exit zen mode","cancel":"Cancel","clear":"Clear","remove":"Remove","embed":"Toggle embedding","publishLibrary":"Publish","submit":"Submit","confirm":"Confirm","embeddableInteractionButton":"Click to interact"},"alerts":{"clearReset":"This will clear the whole canvas. Are you sure?","couldNotCreateShareableLink":"Couldn't create shareable link.","couldNotCreateShareableLinkTooBig":"Couldn't create shareable link: the scene is too big","couldNotLoadInvalidFile":"Couldn't load invalid file","importBackendFailed":"Importing from backend failed.","cannotExportEmptyCanvas":"Cannot export empty canvas.","couldNotCopyToClipboard":"Couldn't copy to clipboard.","decryptFailed":"Couldn't decrypt data.","uploadedSecurly":"The upload has been secured with end-to-end encryption, which means that Excalidraw server and third parties can't read the content.","loadSceneOverridePrompt":"Loading external drawing will replace your existing content. Do you wish to continue?","collabStopOverridePrompt":"Stopping the session will overwrite your previous, locally stored drawing. Are you sure?\\n\\n(If you want to keep your local drawing, simply close the browser tab instead.)","errorAddingToLibrary":"Couldn't add item to the library","errorRemovingFromLibrary":"Couldn't remove item from the library","confirmAddLibrary":"This will add {{numShapes}} shape(s) to your library. Are you sure?","imageDoesNotContainScene":"This image does not seem to contain any scene data. Have you enabled scene embedding during export?","cannotRestoreFromImage":"Scene couldn't be restored from this image file","invalidSceneUrl":"Couldn't import scene from the supplied URL. It's either malformed, or doesn't contain valid Excalidraw JSON data.","resetLibrary":"This will clear your library. Are you sure?","removeItemsFromsLibrary":"Delete {{count}} item(s) from library?","invalidEncryptionKey":"Encryption key must be of 22 characters. Live collaboration is disabled.","collabOfflineWarning":"No internet connection available.\\nYour changes will not be saved!"},"errors":{"unsupportedFileType":"Unsupported file type.","imageInsertError":"Couldn't insert image. Try again later...","fileTooBig":"File is too big. Maximum allowed size is {{maxSize}}.","svgImageInsertError":"Couldn't insert SVG image. The SVG markup looks invalid.","failedToFetchImage":"Failed to fetch image.","invalidSVGString":"Invalid SVG.","cannotResolveCollabServer":"Couldn't connect to the collab server. Please reload the page and try again.","importLibraryError":"Couldn't load library","collabSaveFailed":"Couldn't save to the backend database. If problems persist, you should save your file locally to ensure you don't lose your work.","collabSaveFailed_sizeExceeded":"Couldn't save to the backend database, the canvas seems to be too big. You should save the file locally to ensure you don't lose your work.","imageToolNotSupported":"Images are disabled.","brave_measure_text_error":{"line1":"Looks like you are using Brave browser with the <bold>Aggressively Block Fingerprinting</bold> setting enabled.","line2":"This could result in breaking the <bold>Text Elements</bold> in your drawings.","line3":"We strongly recommend disabling this setting. You can follow <link>these steps</link> on how to do so.","line4":"If disabling this setting doesn't fix the display of text elements, please open an <issueLink>issue</issueLink> on our GitHub, or write us on <discordLink>Discord</discordLink>"},"libraryElementTypeError":{"embeddable":"Embeddable elements cannot be added to the library.","image":"Support for adding images to the library coming soon!"},"asyncPasteFailedOnRead":"Couldn't paste (couldn't read from system clipboard).","asyncPasteFailedOnParse":"Couldn't paste.","copyToSystemClipboardFailed":"Couldn't copy to clipboard."},"toolBar":{"selection":"Selection","image":"Insert image","rectangle":"Rectangle","diamond":"Diamond","ellipse":"Ellipse","arrow":"Arrow","line":"Line","freedraw":"Draw","text":"Text","library":"Library","lock":"Keep selected tool active after drawing","penMode":"Pen mode - prevent touch","link":"Add/ Update link for a selected shape","eraser":"Eraser","frame":"Frame tool","embeddable":"Web Embed","laser":"Laser pointer","hand":"Hand (panning tool)","extraTools":"More tools","mermaidToExcalidraw":"Mermaid to Excalidraw"},"headings":{"canvasActions":"Canvas actions","selectedShapeActions":"Selected shape actions","shapes":"Shapes"},"hints":{"canvasPanning":"To move canvas, hold mouse wheel or spacebar while dragging, or use the hand tool","linearElement":"Click to start multiple points, drag for single line","freeDraw":"Click and drag, release when you're finished","text":"Tip: you can also add text by double-clicking anywhere with the selection tool","embeddable":"Click-drag to create a website embed","text_selected":"Double-click or press ENTER to edit text","text_editing":"Press Escape or CtrlOrCmd+ENTER to finish editing","linearElementMulti":"Click on last point or press Escape or Enter to finish","lockAngle":"You can constrain angle by holding SHIFT","resize":"You can constrain proportions by holding SHIFT while resizing,\\nhold ALT to resize from the center","resizeImage":"You can resize freely by holding SHIFT,\\nhold ALT to resize from the center","rotate":"You can constrain angles by holding SHIFT while rotating","lineEditor_info":"Hold CtrlOrCmd and Double-click or press CtrlOrCmd + Enter to edit points","lineEditor_pointSelected":"Press Delete to remove point(s),\\nCtrlOrCmd+D to duplicate, or drag to move","lineEditor_nothingSelected":"Select a point to edit (hold SHIFT to select multiple),\\nor hold Alt and click to add new points","placeImage":"Click to place the image, or click and drag to set its size manually","publishLibrary":"Publish your own library","bindTextToElement":"Press enter to add text","deepBoxSelect":"Hold CtrlOrCmd to deep select, and to prevent dragging","eraserRevert":"Hold Alt to revert the elements marked for deletion","firefox_clipboard_write":"This feature can likely be enabled by setting the \\"dom.events.asyncClipboard.clipboardItem\\" flag to \\"true\\". To change the browser flags in Firefox, visit the \\"about:config\\" page.","disableSnapping":"Hold CtrlOrCmd to disable snapping"},"canvasError":{"cannotShowPreview":"Cannot show preview","canvasTooBig":"The canvas may be too big.","canvasTooBigTip":"Tip: try moving the farthest elements a bit closer together."},"errorSplash":{"headingMain":"Encountered an error. Try <button>reloading the page</button>.","clearCanvasMessage":"If reloading doesn't work, try <button>clearing the canvas</button>.","clearCanvasCaveat":" This will result in loss of work ","trackedToSentry":"The error with identifier {{eventId}} was tracked on our system.","openIssueMessage":"We were very cautious not to include your scene information on the error. If your scene is not private, please consider following up on our <button>bug tracker</button>. Please include information below by copying and pasting into the GitHub issue.","sceneContent":"Scene content:"},"roomDialog":{"desc_intro":"You can invite people to your current scene to collaborate with you.","desc_privacy":"Don't worry, the session uses end-to-end encryption, so whatever you draw will stay private. Not even our server will be able to see what you come up with.","button_startSession":"Start session","button_stopSession":"Stop session","desc_inProgressIntro":"Live-collaboration session is now in progress.","desc_shareLink":"Share this link with anyone you want to collaborate with:","desc_exitSession":"Stopping the session will disconnect you from the room, but you'll be able to continue working with the scene, locally. Note that this won't affect other people, and they'll still be able to collaborate on their version.","shareTitle":"Join a live collaboration session on Excalidraw"},"errorDialog":{"title":"Error"},"exportDialog":{"disk_title":"Save to disk","disk_details":"Export the scene data to a file from which you can import later.","disk_button":"Save to file","link_title":"Shareable link","link_details":"Export as a read-only link.","link_button":"Export to Link","excalidrawplus_description":"Save the scene to your Excalidraw+ workspace.","excalidrawplus_button":"Export","excalidrawplus_exportError":"Couldn't export to Excalidraw+ at this moment..."},"helpDialog":{"blog":"Read our blog","click":"click","deepSelect":"Deep select","deepBoxSelect":"Deep select within box, and prevent dragging","curvedArrow":"Curved arrow","curvedLine":"Curved line","documentation":"Documentation","doubleClick":"double-click","drag":"drag","editor":"Editor","editLineArrowPoints":"Edit line/arrow points","editText":"Edit text / add label","github":"Found an issue? Submit","howto":"Follow our guides","or":"or","preventBinding":"Prevent arrow binding","tools":"Tools","shortcuts":"Keyboard shortcuts","textFinish":"Finish editing (text editor)","textNewLine":"Add new line (text editor)","title":"Help","view":"View","zoomToFit":"Zoom to fit all elements","zoomToSelection":"Zoom to selection","toggleElementLock":"Lock/unlock selection","movePageUpDown":"Move page up/down","movePageLeftRight":"Move page left/right"},"clearCanvasDialog":{"title":"Clear canvas"},"publishDialog":{"title":"Publish library","itemName":"Item name","authorName":"Author name","githubUsername":"GitHub username","twitterUsername":"Twitter username","libraryName":"Library name","libraryDesc":"Library description","website":"Website","placeholder":{"authorName":"Your name or username","libraryName":"Name of your library","libraryDesc":"Description of your library to help people understand its usage","githubHandle":"GitHub handle (optional), so you can edit the library once submitted for review","twitterHandle":"Twitter username (optional), so we know who to credit when promoting over Twitter","website":"Link to your personal website or elsewhere (optional)"},"errors":{"required":"Required","website":"Enter a valid URL"},"noteDescription":"Submit your library to be included in the <link>public library repository</link> for other people to use in their drawings.","noteGuidelines":"The library needs to be manually approved first. Please read the <link>guidelines</link> before submitting. You will need a GitHub account to communicate and make changes if requested, but it is not strictly required.","noteLicense":"By submitting, you agree the library will be published under the <link>MIT License</link>, which in short means anyone can use them without restrictions.","noteItems":"Each library item must have its own name so it's filterable. The following library items will be included:","atleastOneLibItem":"Please select at least one library item to get started","republishWarning":"Note: some of the selected items are marked as already published/submitted. You should only resubmit items when updating an existing library or submission."},"publishSuccessDialog":{"title":"Library submitted","content":"Thank you {{authorName}}. Your library has been submitted for review. You can track the status <link>here</link>"},"confirmDialog":{"resetLibrary":"Reset library","removeItemsFromLib":"Remove selected items from library"},"imageExportDialog":{"header":"Export image","label":{"withBackground":"Background","onlySelected":"Only selected","darkMode":"Dark mode","embedScene":"Embed scene","scale":"Scale","padding":"Padding"},"tooltip":{"embedScene":"Scene data will be saved into the exported PNG/SVG file so that the scene can be restored from it.\\nWill increase exported file size."},"title":{"exportToPng":"Export to PNG","exportToSvg":"Export to SVG","copyPngToClipboard":"Copy PNG to clipboard"},"button":{"exportToPng":"PNG","exportToSvg":"SVG","copyPngToClipboard":"Copy to clipboard"}},"encrypted":{"tooltip":"Your drawings are end-to-end encrypted so Excalidraw's servers will never see them.","link":"Blog post on end-to-end encryption in Excalidraw"},"stats":{"angle":"Angle","element":"Element","elements":"Elements","height":"Height","scene":"Scene","selected":"Selected","storage":"Storage","title":"Stats for nerds","total":"Total","version":"Version","versionCopy":"Click to copy","versionNotAvailable":"Version not available","width":"Width"},"toast":{"addedToLibrary":"Added to library","copyStyles":"Copied styles.","copyToClipboard":"Copied to clipboard.","copyToClipboardAsPng":"Copied {{exportSelection}} to clipboard as PNG\\n({{exportColorScheme}})","fileSaved":"File saved.","fileSavedToFilename":"Saved to {filename}","canvas":"canvas","selection":"selection","pasteAsSingleElement":"Use {{shortcut}} to paste as a single element,\\nor paste into an existing text editor","unableToEmbed":"Embedding this url is currently not allowed. Raise an issue on GitHub to request the url whitelisted","unrecognizedLinkFormat":"The link you embedded does not match the expected format. Please try to paste the 'embed' string provided by the source site"},"colors":{"transparent":"Transparent","black":"Black","white":"White","red":"Red","pink":"Pink","grape":"Grape","violet":"Violet","gray":"Gray","blue":"Blue","cyan":"Cyan","teal":"Teal","green":"Green","yellow":"Yellow","orange":"Orange","bronze":"Bronze"},"welcomeScreen":{"app":{"center_heading":"All your data is saved locally in your browser.","center_heading_plus":"Did you want to go to the Excalidraw+ instead?","menuHint":"Export, preferences, languages, ..."},"defaults":{"menuHint":"Export, preferences, and more...","center_heading":"Diagrams. Made. Simple.","toolbarHint":"Pick a tool & Start drawing!","helpHint":"Shortcuts & help"}},"colorPicker":{"mostUsedCustomColors":"Most used custom colors","colors":"Colors","shades":"Shades","hexCode":"Hex code","noShades":"No shades available for this color"},"overwriteConfirm":{"action":{"exportToImage":{"title":"Export as image","button":"Export as image","description":"Export the scene data as an image from which you can import later."},"saveToDisk":{"title":"Save to disk","button":"Save to disk","description":"Export the scene data to a file from which you can import later."},"excalidrawPlus":{"title":"Excalidraw+","button":"Export to Excalidraw+","description":"Save the scene to your Excalidraw+ workspace."}},"modal":{"loadFromFile":{"title":"Load from file","button":"Load from file","description":"Loading from a file will <bold>replace your existing content</bold>.<br></br>You can back up your drawing first using one of the options below."},"shareableLink":{"title":"Load from link","button":"Replace my content","description":"Loading external drawing will <bold>replace your existing content</bold>.<br></br>You can back up your drawing first by using one of the options below."}}},"mermaid":{"title":"Mermaid to Excalidraw","button":"Insert","description":"Currently only <flowchartLink>Flowcharts</flowchartLink> and <sequenceLink>Sequence Diagrams</sequenceLink> are supported. The other types will be rendered as image in Excalidraw.","syntax":"Mermaid Syntax","preview":"Preview"}}`)},4451:function(Se){Se.exports=JSON.parse('{"ar-SA":99,"az-AZ":18,"bg-BG":75,"bn-BD":55,"ca-ES":81,"cs-CZ":91,"da-DK":31,"de-DE":100,"el-GR":85,"en":100,"es-ES":96,"eu-ES":99,"fa-IR":87,"fi-FI":81,"fr-FR":98,"gl-ES":90,"he-IL":81,"hi-IN":75,"hu-HU":70,"id-ID":96,"it-IT":99,"ja-JP":95,"kaa":34,"kab-KAB":80,"kk-KZ":20,"km-KH":87,"ko-KR":100,"ku-TR":92,"lt-LT":51,"lv-LV":82,"mr-IN":92,"my-MM":37,"nb-NO":99,"nl-NL":79,"nn-NO":71,"oc-FR":79,"pa-IN":82,"pl-PL":100,"pt-BR":96,"pt-PT":88,"ro-RO":98,"ru-RU":94,"si-LK":8,"sk-SK":99,"sl-SI":100,"sv-SE":100,"ta-IN":85,"th-TH":46,"tr-TR":91,"uk-UA":99,"vi-VN":51,"zh-CN":99,"zh-HK":24,"zh-TW":100}')}},Ui={};function Wr(Se){var Q=Ui[Se];if(Q!==void 0)return Q.exports;var e=Ui[Se]={id:Se,exports:{}};return Fi[Se].call(e.exports,e,e.exports,Wr),e.exports}Wr.m=Fi,Wr.n=function(Se){var Q=Se&&Se.__esModule?function(){return Se.default}:function(){return Se};return Wr.d(Q,{a:Q}),Q},$o=Object.getPrototypeOf?function(Se){return Object.getPrototypeOf(Se)}:function(Se){return Se.__proto__},Wr.t=function(Se,Q){if(1&Q&&(Se=this(Se)),8&Q||typeof Se=="object"&&Se&&(4&Q&&Se.__esModule||16&Q&&typeof Se.then=="function"))return Se;var e=Object.create(null);Wr.r(e);var D={};ha=ha||[null,$o({}),$o([]),$o($o)];for(var E=2&Q&&Se;typeof E=="object"&&!~ha.indexOf(E);E=$o(E))Object.getOwnPropertyNames(E).forEach(function(y){D[y]=function(){return Se[y]}});return D.default=function(){return Se},Wr.d(e,D),e},Wr.d=function(Se,Q){for(var e in Q)Wr.o(Q,e)&&!Wr.o(Se,e)&&Object.defineProperty(Se,e,{enumerable:!0,get:Q[e]})},Wr.f={},Wr.e=function(Se){return Promise.all(Object.keys(Wr.f).reduce(function(Q,e){return Wr.f[e](Se,Q),Q},[]))},Wr.u=function(Se){return"excalidraw-assets/"+{22:"locales/kk-KZ-json",537:"locales/th-TH-json",663:"locales/kaa-json",1204:"locales/ja-JP-json",1302:"locales/si-LK-json",1477:"locales/my-MM-json",1513:"locales/el-GR-json",1628:"locales/bg-BG-json",1690:"locales/oc-FR-json",1790:"locales/da-DK-json",2091:"locales/ar-SA-json",2312:"locales/he-IL-json",2359:"locales/nb-NO-json",2404:"locales/ta-IN-json",2943:"locales/gl-ES-json",3024:"locales/nl-NL-json",3031:"locales/ku-TR-json",3082:"locales/de-DE-json",3162:"locales/pa-IN-json",3397:"locales/mr-IN-json",3421:"locales/zh-TW-json",3512:"locales/fi-FI-json",3674:"locales/pl-PL-json",3682:"locales/fr-FR-json",3721:"locales/pt-BR-json",3808:"locales/id-ID-json",3885:"locales/nn-NO-json",4e3:"locales/vi-VN-json",4568:"locales/az-AZ-json",4680:"locales/zh-CN-json",4736:"vendor",4977:"locales/tr-TR-json",5089:"locales/ro-RO-json",5130:"locales/ca-ES-json",5330:"locales/fa-IR-json",5395:"locales/pt-PT-json",6071:"locales/sl-SI-json",6239:"locales/it-IT-json",6265:"locales/cs-CZ-json",6566:"locales/km-KH-json",6768:"locales/lv-LV-json",6844:"locales/ko-KR-json",7368:"locales/hu-HU-json",7429:"locales/bn-BD-json",7759:"locales/uk-UA-json",7920:"locales/zh-HK-json",8081:"locales/eu-ES-json",8124:"locales/ru-RU-json",8340:"locales/lt-LT-json",8534:"locales/sv-SE-json",8750:"locales/sk-SK-json",8759:"locales/es-ES-json",9551:"locales/kab-KAB-json",9828:"locales/hi-IN-json"}[Se]+"-"+{22:"2224f237cc93465f126f",537:"9a390d3cc7a7a6226b63",663:"4d0a4868835d0334a549",1204:"2cb067da0fb518e73564",1302:"4921d4298abfa256fe6f",1477:"3ba296b6fcf2a2197a7c",1513:"4cbc2dbda5a5df636ee1",1628:"42fb0378311f3ade2627",1690:"644a5eaa1311f70cb697",1790:"a94944ac6fa9756d2fac",2091:"db7c644ccbeb85d54a47",2312:"a7bc2a673875b2e655e1",2359:"798d785698d467e76fcf",2404:"2fa1854af68381c61913",2943:"d11c7966c3c2f95756e0",3024:"2cf913fe2f491c5d7075",3031:"bafa8865ed7002bb249e",3082:"d82053ab52357510811b",3162:"165c5c2760688033b2cc",3397:"ad1359c30c334d05eee0",3421:"5a3fa7cacfa83c411d89",3512:"64c8902f10425e1b2e81",3674:"35c1f168f53af24b657a",3682:"d16a471290ba26a6c66a",3721:"370215dc506c58ee3217",3808:"6542dd92ab54a2c1c48e",3885:"aa607835ad9408789c5f",4e3:"9c1c2a9fa9d6b5a58223",4568:"08a6de50238dbb21926c",4680:"069c304b5011429be615",4736:"677e88ca78c86bddf13d",4977:"fc9b16e9dc2be2660439",5089:"3c32b962880e225d3416",5130:"a6b2c18f7e85cfd11599",5330:"76b039039b043cc4280c",5395:"6f3d80656622a222b4e2",6071:"efb839ef0456f5c72e6e",6239:"ab410570df07304cb0ca",6265:"ea03835d73f9b921f7c4",6566:"cbe8e2e8d26d30a3175c",6768:"f7f9363e42ee2e3a7c67",6844:"c2387972637d47f15765",7368:"0419027d32efac73d518",7429:"9ad9e5ae95c4c66297b1",7759:"82753e98dced302ac187",7920:"d9bf1e4e2d1f8650c680",8081:"671a4afcfce7b0a7660b",8124:"e1f4ed9d2d074f778304",8340:"9b7e91a51b90ee551cad",8534:"cfab3adbd37dd273c61e",8750:"27b59d7e026675f929c4",8759:"7afb66536ee40d852fa2",9551:"0d400ba2836cc0752cd6",9828:"4947c9dace32cc3c6eef"}[Se]+".js"},Wr.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),Wr.o=function(Se,Q){return Object.prototype.hasOwnProperty.call(Se,Q)},Jo={},oi="ExcalidrawLib:",Wr.l=function(Se,Q,e,D){if(Jo[Se])Jo[Se].push(Q);else{var E,y;if(e!==void 0)for(var h=document.getElementsByTagName("script"),S=0;S<h.length;S++){var I=h[S];if(I.getAttribute("src")==Se||I.getAttribute("data-webpack")==oi+e){E=I;break}}E||(y=!0,(E=document.createElement("script")).charset="utf-8",E.timeout=120,Wr.nc&&E.setAttribute("nonce",Wr.nc),E.setAttribute("data-webpack",oi+e),E.src=Se),Jo[Se]=[Q];var v=function(M,Z){E.onerror=E.onload=null,clearTimeout(n);var H=Jo[Se];if(delete Jo[Se],E.parentNode&&E.parentNode.removeChild(E),H&&H.forEach(function(W){return W(Z)}),M)return M(Z)},n=setTimeout(v.bind(null,void 0,{type:"timeout",target:E}),12e4);E.onerror=v.bind(null,E.onerror),E.onload=v.bind(null,E.onload),y&&document.head.appendChild(E)}},Wr.r=function(Se){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(Se,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Se,"__esModule",{value:!0})},Wr.p="",function(){Wr.b=document.baseURI||self.location.href;var Se={1388:0,2848:0};Wr.f.j=function(D,E){var y=Wr.o(Se,D)?Se[D]:void 0;if(y!==0)if(y)E.push(y[2]);else{var h=new Promise(function(v,n){y=Se[D]=[v,n]});E.push(y[2]=h);var S=Wr.p+Wr.u(D),I=new Error;Wr.l(S,function(v){if(Wr.o(Se,D)&&((y=Se[D])!==0&&(Se[D]=void 0),y)){var n=v&&(v.type==="load"?"missing":v.type),M=v&&v.target&&v.target.src;I.message="Loading chunk "+D+` failed. +(`+n+": "+M+")",I.name="ChunkLoadError",I.type=n,I.request=M,y[1](I)}},"chunk-"+D,D)}};var Q=function(D,E){var y,h,S=E[0],I=E[1],v=E[2],n=0;if(S.some(function(M){return Se[M]!==0})){for(y in I)Wr.o(I,y)&&(Wr.m[y]=I[y]);v&&v(Wr)}for(D&&D(E);n<S.length;n++)h=S[n],Wr.o(Se,h)&&Se[h]&&Se[h][0](),Se[h]=0},e=self.webpackChunkExcalidrawLib=self.webpackChunkExcalidrawLib||[];e.forEach(Q.bind(null,0)),e.push=Q.bind(null,e.push.bind(e))}(),Wr.nc=void 0;var ai={};return function(){Wr.r(ai),Wr.d(ai,{Button:function(){return u.zx},DefaultSidebar:function(){return u.Or},Excalidraw:function(){return u.Eb},FONT_FAMILY:function(){return u.ut},Footer:function(){return u.$_},LiveCollaborationTrigger:function(){return u.vO},MIME_TYPES:function(){return u.LO},MainMenu:function(){return u.lb},Sidebar:function(){return u.YE},THEME:function(){return u.C6},WelcomeScreen:function(){return u.B4},bumpVersion:function(){return u.ZP},convertToExcalidrawElements:function(){return u.wc},defaultLang:function(){return u.Fp},elementPartiallyOverlapsWithOrContainsBBox:function(){return u.sQ},elementsOverlappingBBox:function(){return u.Xs},exportToBlob:function(){return u.Fl},exportToCanvas:function(){return u.NL},exportToClipboard:function(){return u.i1},exportToSvg:function(){return u.$D},getCommonBounds:function(){return u.KP},getFreeDrawSvgPath:function(){return u.N7},getNonDeletedElements:function(){return u.Lm},getSceneVersion:function(){return u.Uo},isElementInsideBBox:function(){return u.Ne},isInvisiblySmallElement:function(){return u.QD},isLinearElement:function(){return u.bt},languages:function(){return u.Mj},loadFromBlob:function(){return u.cT},loadLibraryFromBlob:function(){return u.lV},loadSceneOrLibraryFromBlob:function(){return u.ZY},mergeLibraryItems:function(){return u.zh},mutateElement:function(){return u.DR},newElementWith:function(){return u.BE},normalizeLink:function(){return u.$u},parseLibraryTokensFromUrl:function(){return u.Di},restore:function(){return u.nu},restoreAppState:function(){return u.lY},restoreElements:function(){return u.ET},restoreLibraryItems:function(){return u.wJ},sceneCoordsToViewportCoords:function(){return u._i},serializeAsJSON:function(){return u.I_},serializeLibraryAsJSON:function(){return u.NI},useDevice:function(){return u.Fy},useHandleLibrary:function(){return u.xS},useI18n:function(){return u.QT},viewportCoordsToSceneCoords:function(){return u.dE}}),Wr(9937).Vi.TEST!=="production"&&(Wr.p=window.EXCALIDRAW_ASSET_PATH||"https://unpkg.com/".concat("@excalidraw/excalidraw","@").concat("0.17.0","/dist/"));var Se=function(){Array.prototype.at||Object.defineProperty(Array.prototype,"at",{value:function(U){if((U=Math.trunc(U)||0)<0&&(U+=this.length),!(U<0||U>=this.length))return this[U]},writable:!0,enumerable:!1,configurable:!0}),Element.prototype.replaceChildren||(Element.prototype.replaceChildren=function(){this.innerHTML="",this.append.apply(this,arguments)})},Q=Wr(3379),e=Wr.n(Q),D=Wr(7795),E=Wr.n(D),y=Wr(569),h=Wr.n(y),S=Wr(3565),I=Wr.n(S),v=Wr(9216),n=Wr.n(v),M=Wr(4589),Z=Wr.n(M),H=Wr(4295),W={};W.styleTagTransform=Z(),W.setAttributes=I(),W.insert=h().bind(null,"head"),W.domAPI=E(),W.insertStyleElement=n(),e()(H.Z,W),H.Z&&H.Z.locals&&H.Z.locals;var u=Wr(4864);Se()}(),ai}()})}(ll)),ll.exports}var cl={exports:{}};/*! For license information please see excalidraw-with-preact.production.min.js.LICENSE.txt */var dl;function yl(){return dl||(dl=1,function(ni,el){(function(Oa,qo){ni.exports=qo(fl,pl,hl)})(self,function(Oa,qo,Ca){return function(){var ha,$o,Jo,oi,Fi={5779:function(Se,Q){Q.N=void 0;var e=/^([^\w]*)(javascript|data|vbscript)/im,D=/&#(\w+)(^\w|;)?/g,E=/&(newline|tab);/gi,y=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,h=/^.+(:|:)/gim,S=[".","/"];Q.N=function(I){var v,n=(v=I||"",v.replace(D,function(H,W){return String.fromCharCode(W)})).replace(E,"").replace(y,"").trim();if(!n)return"about:blank";if(function(H){return S.indexOf(H[0])>-1}(n))return n;var M=n.match(h);if(!M)return n;var Z=M[0];return e.test(Z)?"about:blank":n}},7217:function(Se,Q,e){function D(E,y,{checkForDefaultPrevented:h=!0}={}){return function(S){if(E?.(S),h===!1||!S.defaultPrevented)return y?.(S)}}e.d(Q,{M:function(){return D}})},9335:function(Se,Q,e){e.d(Q,{F:function(){return E},e:function(){return y}});var D=e(9787);function E(...h){return S=>h.forEach(I=>function(v,n){typeof v=="function"?v(n):v!=null&&(v.current=n)}(I,S))}function y(...h){return(0,D.useCallback)(E(...h),h)}},1267:function(Se,Q,e){e.d(Q,{b:function(){return E}});var D=e(9787);function E(h,S=[]){let I=[];const v=()=>{const n=I.map(M=>(0,D.createContext)(M));return function(M){const Z=M?.[h]||n;return(0,D.useMemo)(()=>({[`__scope${h}`]:{...M,[h]:Z}}),[M,Z])}};return v.scopeName=h,[function(n,M){const Z=(0,D.createContext)(M),H=I.length;function W(u){const{scope:U,children:le,...de}=u,he=U?.[h][H]||Z,pe=(0,D.useMemo)(()=>de,Object.values(de));return(0,D.createElement)(he.Provider,{value:pe},le)}return I=[...I,M],W.displayName=n+"Provider",[W,function(u,U){const le=U?.[h][H]||Z,de=(0,D.useContext)(le);if(de)return de;if(M!==void 0)return M;throw new Error(`\`${u}\` must be used within \`${n}\``)}]},y(v,...S)]}function y(...h){const S=h[0];if(h.length===1)return S;const I=()=>{const v=h.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(n){const M=v.reduce((Z,{useScope:H,scopeName:W})=>({...Z,...H(n)[`__scope${W}`]}),{});return(0,D.useMemo)(()=>({[`__scope${S.scopeName}`]:M}),[M])}};return I.scopeName=S.scopeName,I}},5622:function(Se,Q,e){e.d(Q,{M:function(){return S}});var D=e(9787),E=e(3348);const y=D.useId||(()=>{});let h=0;function S(I){const[v,n]=D.useState(y());return(0,E.b)(()=>{I||n(M=>M??String(h++))},[I]),I||(v?`radix-${v}`:"")}},1483:function(Se,Q,e){e.d(Q,{z:function(){return S}});var D=e(9787),E=e(5156),y=e(9335),h=e(3348);const S=v=>{const{present:n,children:M}=v,Z=function(u){const[U,le]=(0,D.useState)(),de=(0,D.useRef)({}),he=(0,D.useRef)(u),pe=(0,D.useRef)("none"),oe=u?"mounted":"unmounted",[P,$]=function(b,R){return(0,D.useReducer)((_,g)=>{const O=R[_][g];return O??_},b)}(oe,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,D.useEffect)(()=>{const b=I(de.current);pe.current=P==="mounted"?b:"none"},[P]),(0,h.b)(()=>{const b=de.current,R=he.current;if(R!==u){const _=pe.current,g=I(b);u?$("MOUNT"):g==="none"||b?.display==="none"?$("UNMOUNT"):$(R&&_!==g?"ANIMATION_OUT":"UNMOUNT"),he.current=u}},[u,$]),(0,h.b)(()=>{if(U){const b=_=>{const g=I(de.current).includes(_.animationName);_.target===U&&g&&(0,E.flushSync)(()=>$("ANIMATION_END"))},R=_=>{_.target===U&&(pe.current=I(de.current))};return U.addEventListener("animationstart",R),U.addEventListener("animationcancel",b),U.addEventListener("animationend",b),()=>{U.removeEventListener("animationstart",R),U.removeEventListener("animationcancel",b),U.removeEventListener("animationend",b)}}$("ANIMATION_END")},[U,$]),{isPresent:["mounted","unmountSuspended"].includes(P),ref:(0,D.useCallback)(b=>{b&&(de.current=getComputedStyle(b)),le(b)},[])}}(n),H=typeof M=="function"?M({present:Z.isPresent}):D.Children.only(M),W=(0,y.e)(Z.ref,H.ref);return typeof M=="function"||Z.isPresent?(0,D.cloneElement)(H,{ref:W}):null};function I(v){return v?.animationName||"none"}S.displayName="Presence"},3119:function(Se,Q,e){e.d(Q,{WV:function(){return S},jH:function(){return I}});var D=e(11),E=e(9787),y=e(5156),h=e(4801);const S=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((v,n)=>{const M=(0,E.forwardRef)((Z,H)=>{const{asChild:W,...u}=Z,U=W?h.g7:n;return(0,E.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,E.createElement)(U,(0,D.Z)({},u,{ref:H}))});return M.displayName=`Primitive.${n}`,{...v,[n]:M}},{});function I(v,n){v&&(0,y.flushSync)(()=>v.dispatchEvent(n))}},4801:function(Se,Q,e){e.d(Q,{g7:function(){return h}});var D=e(11),E=e(9787),y=e(9335);const h=(0,E.forwardRef)((M,Z)=>{const{children:H,...W}=M,u=E.Children.toArray(H),U=u.find(v);if(U){const le=U.props.children,de=u.map(he=>he===U?E.Children.count(le)>1?E.Children.only(null):(0,E.isValidElement)(le)?le.props.children:null:he);return(0,E.createElement)(S,(0,D.Z)({},W,{ref:Z}),(0,E.isValidElement)(le)?(0,E.cloneElement)(le,void 0,de):null)}return(0,E.createElement)(S,(0,D.Z)({},W,{ref:Z}),H)});h.displayName="Slot";const S=(0,E.forwardRef)((M,Z)=>{const{children:H,...W}=M;return(0,E.isValidElement)(H)?(0,E.cloneElement)(H,{...n(W,H.props),ref:(0,y.F)(Z,H.ref)}):E.Children.count(H)>1?E.Children.only(null):null});S.displayName="SlotClone";const I=({children:M})=>(0,E.createElement)(E.Fragment,null,M);function v(M){return(0,E.isValidElement)(M)&&M.type===I}function n(M,Z){const H={...Z};for(const W in Z){const u=M[W],U=Z[W];/^on[A-Z]/.test(W)?u&&U?H[W]=(...le)=>{U(...le),u(...le)}:u&&(H[W]=u):W==="style"?H[W]={...u,...U}:W==="className"&&(H[W]=[u,U].filter(Boolean).join(" "))}return{...M,...H}}},3060:function(Se,Q,e){e.d(Q,{W:function(){return E}});var D=e(9787);function E(y){const h=(0,D.useRef)(y);return(0,D.useEffect)(()=>{h.current=y}),(0,D.useMemo)(()=>(...S)=>{var I;return(I=h.current)===null||I===void 0?void 0:I.call(h,...S)},[])}},2673:function(Se,Q,e){e.d(Q,{T:function(){return y}});var D=e(9787),E=e(3060);function y({prop:h,defaultProp:S,onChange:I=()=>{}}){const[v,n]=function({defaultProp:W,onChange:u}){const U=(0,D.useState)(W),[le]=U,de=(0,D.useRef)(le),he=(0,E.W)(u);return(0,D.useEffect)(()=>{de.current!==le&&(he(le),de.current=le)},[le,de,he]),U}({defaultProp:S,onChange:I}),M=h!==void 0,Z=M?h:v,H=(0,E.W)(I);return[Z,(0,D.useCallback)(W=>{if(M){const u=W,U=typeof W=="function"?u(h):W;U!==h&&H(U)}else n(W)},[M,h,n,H])]}},3348:function(Se,Q,e){e.d(Q,{b:function(){return E}});var D=e(9787);const E=globalThis?.document?D.useLayoutEffect:()=>{}},45:function(Se,Q,e){function D(y){var h,S,I="";if(typeof y=="string"||typeof y=="number")I+=y;else if(typeof y=="object")if(Array.isArray(y))for(h=0;h<y.length;h++)y[h]&&(S=D(y[h]))&&(I&&(I+=" "),I+=S);else for(h in y)y[h]&&(I&&(I+=" "),I+=h);return I}function E(){for(var y,h,S=0,I="";S<arguments.length;)(y=arguments[S++])&&(h=D(y))&&(I&&(I+=" "),I+=h);return I}e.d(Q,{Z:function(){return E}})},6233:function(Se,Q){var e;e=function(D){D.version="0.3.0";var E=function(){for(var S=0,I=new Array(256),v=0;v!=256;++v)S=1&(S=1&(S=1&(S=1&(S=1&(S=1&(S=1&(S=1&(S=v)?-306674912^S>>>1:S>>>1)?-306674912^S>>>1:S>>>1)?-306674912^S>>>1:S>>>1)?-306674912^S>>>1:S>>>1)?-306674912^S>>>1:S>>>1)?-306674912^S>>>1:S>>>1)?-306674912^S>>>1:S>>>1)?-306674912^S>>>1:S>>>1,I[v]=S;return typeof Int32Array<"u"?new Int32Array(I):I}(),y=typeof Buffer<"u";function h(S){for(var I=-1,v=0,n=S.length-7;v<n;)I=(I=(I=(I=(I=(I=(I=(I=I>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])];for(;v<n+7;)I=I>>>8^E[255&(I^S[v++])];return-1^I}D.table=E,D.bstr=function(S){if(S.length>32768&&y)return h(new Buffer(S));for(var I=-1,v=S.length-1,n=0;n<v;)I=E[255&(I^S.charCodeAt(n++))]^I>>>8,I=E[255&(I^S.charCodeAt(n++))]^I>>>8;return n===v&&(I=I>>>8^E[255&(I^S.charCodeAt(n))]),-1^I},D.buf=function(S){if(S.length>1e4)return h(S);for(var I=-1,v=0,n=S.length-3;v<n;)I=(I=(I=(I=I>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])])>>>8^E[255&(I^S[v++])];for(;v<n+3;)I=I>>>8^E[255&(I^S[v++])];return-1^I},D.str=function(S){for(var I,v,n=-1,M=0,Z=S.length;M<Z;)(I=S.charCodeAt(M++))<128?n=n>>>8^E[255&(n^I)]:I<2048?n=(n=n>>>8^E[255&(n^(192|I>>6&31))])>>>8^E[255&(n^(128|63&I))]:I>=55296&&I<57344?(I=64+(1023&I),v=1023&S.charCodeAt(M++),n=(n=(n=(n=n>>>8^E[255&(n^(240|I>>8&7))])>>>8^E[255&(n^(128|I>>2&63))])>>>8^E[255&(n^(128|v>>6&15|3&I))])>>>8^E[255&(n^(128|63&v))]):n=(n=(n=n>>>8^E[255&(n^(224|I>>12&15))])>>>8^E[255&(n^(128|I>>6&63))])>>>8^E[255&(n^(128|63&I))];return-1^n}},e(typeof DO_NOT_EXPORT_CRC>"u"?Q:{})},200:function(Se,Q,e){var D="Expected a function",E=/^\s+|\s+$/g,y=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,S=/^0o[0-7]+$/i,I=parseInt,v=typeof e.g=="object"&&e.g&&e.g.Object===Object&&e.g,n=typeof self=="object"&&self&&self.Object===Object&&self,M=v||n||Function("return this")(),Z=Object.prototype.toString,H=Math.max,W=Math.min,u=function(){return M.Date.now()};function U(he,pe,oe){var P,$,b,R,_,g,O=0,s=!1,f=!1,t=!0;if(typeof he!="function")throw new TypeError(D);function w(j){var k=P,x=$;return P=$=void 0,O=j,R=he.apply(x,k)}function l(j){return O=j,_=setTimeout(c,pe),s?w(j):R}function a(j){var k=j-g;return g===void 0||k>=pe||k<0||f&&j-O>=b}function c(){var j=u();if(a(j))return m(j);_=setTimeout(c,function(k){var x=pe-(k-g);return f?W(x,b-(k-O)):x}(j))}function m(j){return _=void 0,t&&P?w(j):(P=$=void 0,R)}function z(){var j=u(),k=a(j);if(P=arguments,$=this,g=j,k){if(_===void 0)return l(g);if(f)return _=setTimeout(c,pe),w(g)}return _===void 0&&(_=setTimeout(c,pe)),R}return pe=de(pe)||0,le(oe)&&(s=!!oe.leading,b=(f="maxWait"in oe)?H(de(oe.maxWait)||0,pe):b,t="trailing"in oe?!!oe.trailing:t),z.cancel=function(){_!==void 0&&clearTimeout(_),O=0,P=g=$=_=void 0},z.flush=function(){return _===void 0?R:m(u())},z}function le(he){var pe=typeof he;return!!he&&(pe=="object"||pe=="function")}function de(he){if(typeof he=="number")return he;if(function(P){return typeof P=="symbol"||function($){return!!$&&typeof $=="object"}(P)&&Z.call(P)=="[object Symbol]"}(he))return NaN;if(le(he)){var pe=typeof he.valueOf=="function"?he.valueOf():he;he=le(pe)?pe+"":pe}if(typeof he!="string")return he===0?he:+he;he=he.replace(E,"");var oe=h.test(he);return oe||S.test(he)?I(he.slice(2),oe?2:8):y.test(he)?NaN:+he}Se.exports=function(he,pe,oe){var P=!0,$=!0;if(typeof he!="function")throw new TypeError(D);return le(oe)&&(P="leading"in oe?!!oe.leading:P,$="trailing"in oe?!!oe.trailing:$),U(he,pe,{leading:P,maxWait:pe,trailing:$})}},2744:function(Se,Q,e){var D={};(0,e(9187).assign)(D,e(4395),e(578),e(2684)),Se.exports=D},4395:function(Se,Q,e){var D=e(6193),E=e(9187),y=e(8592),h=e(5604),S=e(249),I=Object.prototype.toString;function v(M){if(!(this instanceof v))return new v(M);this.options=E.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},M||{});var Z=this.options;Z.raw&&Z.windowBits>0?Z.windowBits=-Z.windowBits:Z.gzip&&Z.windowBits>0&&Z.windowBits<16&&(Z.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new S,this.strm.avail_out=0;var H=D.deflateInit2(this.strm,Z.level,Z.method,Z.windowBits,Z.memLevel,Z.strategy);if(H!==0)throw new Error(h[H]);if(Z.header&&D.deflateSetHeader(this.strm,Z.header),Z.dictionary){var W;if(W=typeof Z.dictionary=="string"?y.string2buf(Z.dictionary):I.call(Z.dictionary)==="[object ArrayBuffer]"?new Uint8Array(Z.dictionary):Z.dictionary,(H=D.deflateSetDictionary(this.strm,W))!==0)throw new Error(h[H]);this._dict_set=!0}}function n(M,Z){var H=new v(Z);if(H.push(M,!0),H.err)throw H.msg||h[H.err];return H.result}v.prototype.push=function(M,Z){var H,W,u=this.strm,U=this.options.chunkSize;if(this.ended)return!1;W=Z===~~Z?Z:Z===!0?4:0,typeof M=="string"?u.input=y.string2buf(M):I.call(M)==="[object ArrayBuffer]"?u.input=new Uint8Array(M):u.input=M,u.next_in=0,u.avail_in=u.input.length;do{if(u.avail_out===0&&(u.output=new E.Buf8(U),u.next_out=0,u.avail_out=U),(H=D.deflate(u,W))!==1&&H!==0)return this.onEnd(H),this.ended=!0,!1;u.avail_out!==0&&(u.avail_in!==0||W!==4&&W!==2)||(this.options.to==="string"?this.onData(y.buf2binstring(E.shrinkBuf(u.output,u.next_out))):this.onData(E.shrinkBuf(u.output,u.next_out)))}while((u.avail_in>0||u.avail_out===0)&&H!==1);return W===4?(H=D.deflateEnd(this.strm),this.onEnd(H),this.ended=!0,H===0):W!==2||(this.onEnd(0),u.avail_out=0,!0)},v.prototype.onData=function(M){this.chunks.push(M)},v.prototype.onEnd=function(M){M===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=E.flattenChunks(this.chunks)),this.chunks=[],this.err=M,this.msg=this.strm.msg},Q.Deflate=v,Q.deflate=n,Q.deflateRaw=function(M,Z){return(Z=Z||{}).raw=!0,n(M,Z)},Q.gzip=function(M,Z){return(Z=Z||{}).gzip=!0,n(M,Z)}},578:function(Se,Q,e){var D=e(7823),E=e(9187),y=e(8592),h=e(2684),S=e(5604),I=e(249),v=e(9968),n=Object.prototype.toString;function M(H){if(!(this instanceof M))return new M(H);this.options=E.assign({chunkSize:16384,windowBits:0,to:""},H||{});var W=this.options;W.raw&&W.windowBits>=0&&W.windowBits<16&&(W.windowBits=-W.windowBits,W.windowBits===0&&(W.windowBits=-15)),!(W.windowBits>=0&&W.windowBits<16)||H&&H.windowBits||(W.windowBits+=32),W.windowBits>15&&W.windowBits<48&&!(15&W.windowBits)&&(W.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new I,this.strm.avail_out=0;var u=D.inflateInit2(this.strm,W.windowBits);if(u!==h.Z_OK)throw new Error(S[u]);if(this.header=new v,D.inflateGetHeader(this.strm,this.header),W.dictionary&&(typeof W.dictionary=="string"?W.dictionary=y.string2buf(W.dictionary):n.call(W.dictionary)==="[object ArrayBuffer]"&&(W.dictionary=new Uint8Array(W.dictionary)),W.raw&&(u=D.inflateSetDictionary(this.strm,W.dictionary))!==h.Z_OK))throw new Error(S[u])}function Z(H,W){var u=new M(W);if(u.push(H,!0),u.err)throw u.msg||S[u.err];return u.result}M.prototype.push=function(H,W){var u,U,le,de,he,pe=this.strm,oe=this.options.chunkSize,P=this.options.dictionary,$=!1;if(this.ended)return!1;U=W===~~W?W:W===!0?h.Z_FINISH:h.Z_NO_FLUSH,typeof H=="string"?pe.input=y.binstring2buf(H):n.call(H)==="[object ArrayBuffer]"?pe.input=new Uint8Array(H):pe.input=H,pe.next_in=0,pe.avail_in=pe.input.length;do{if(pe.avail_out===0&&(pe.output=new E.Buf8(oe),pe.next_out=0,pe.avail_out=oe),(u=D.inflate(pe,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&P&&(u=D.inflateSetDictionary(this.strm,P)),u===h.Z_BUF_ERROR&&$===!0&&(u=h.Z_OK,$=!1),u!==h.Z_STREAM_END&&u!==h.Z_OK)return this.onEnd(u),this.ended=!0,!1;pe.next_out&&(pe.avail_out!==0&&u!==h.Z_STREAM_END&&(pe.avail_in!==0||U!==h.Z_FINISH&&U!==h.Z_SYNC_FLUSH)||(this.options.to==="string"?(le=y.utf8border(pe.output,pe.next_out),de=pe.next_out-le,he=y.buf2string(pe.output,le),pe.next_out=de,pe.avail_out=oe-de,de&&E.arraySet(pe.output,pe.output,le,de,0),this.onData(he)):this.onData(E.shrinkBuf(pe.output,pe.next_out)))),pe.avail_in===0&&pe.avail_out===0&&($=!0)}while((pe.avail_in>0||pe.avail_out===0)&&u!==h.Z_STREAM_END);return u===h.Z_STREAM_END&&(U=h.Z_FINISH),U===h.Z_FINISH?(u=D.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,u===h.Z_OK):U!==h.Z_SYNC_FLUSH||(this.onEnd(h.Z_OK),pe.avail_out=0,!0)},M.prototype.onData=function(H){this.chunks.push(H)},M.prototype.onEnd=function(H){H===h.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=E.flattenChunks(this.chunks)),this.chunks=[],this.err=H,this.msg=this.strm.msg},Q.Inflate=M,Q.inflate=Z,Q.inflateRaw=function(H,W){return(W=W||{}).raw=!0,Z(H,W)},Q.ungzip=Z},9187:function(Se,Q){var e=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function D(h,S){return Object.prototype.hasOwnProperty.call(h,S)}Q.assign=function(h){for(var S=Array.prototype.slice.call(arguments,1);S.length;){var I=S.shift();if(I){if(typeof I!="object")throw new TypeError(I+"must be non-object");for(var v in I)D(I,v)&&(h[v]=I[v])}}return h},Q.shrinkBuf=function(h,S){return h.length===S?h:h.subarray?h.subarray(0,S):(h.length=S,h)};var E={arraySet:function(h,S,I,v,n){if(S.subarray&&h.subarray)h.set(S.subarray(I,I+v),n);else for(var M=0;M<v;M++)h[n+M]=S[I+M]},flattenChunks:function(h){var S,I,v,n,M,Z;for(v=0,S=0,I=h.length;S<I;S++)v+=h[S].length;for(Z=new Uint8Array(v),n=0,S=0,I=h.length;S<I;S++)M=h[S],Z.set(M,n),n+=M.length;return Z}},y={arraySet:function(h,S,I,v,n){for(var M=0;M<v;M++)h[n+M]=S[I+M]},flattenChunks:function(h){return[].concat.apply([],h)}};Q.setTyped=function(h){h?(Q.Buf8=Uint8Array,Q.Buf16=Uint16Array,Q.Buf32=Int32Array,Q.assign(Q,E)):(Q.Buf8=Array,Q.Buf16=Array,Q.Buf32=Array,Q.assign(Q,y))},Q.setTyped(e)},8592:function(Se,Q,e){var D=e(9187),E=!0,y=!0;try{String.fromCharCode.apply(null,[0])}catch{E=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{y=!1}for(var h=new D.Buf8(256),S=0;S<256;S++)h[S]=S>=252?6:S>=248?5:S>=240?4:S>=224?3:S>=192?2:1;function I(v,n){if(n<65534&&(v.subarray&&y||!v.subarray&&E))return String.fromCharCode.apply(null,D.shrinkBuf(v,n));for(var M="",Z=0;Z<n;Z++)M+=String.fromCharCode(v[Z]);return M}h[254]=h[254]=1,Q.string2buf=function(v){var n,M,Z,H,W,u=v.length,U=0;for(H=0;H<u;H++)(64512&(M=v.charCodeAt(H)))==55296&&H+1<u&&(64512&(Z=v.charCodeAt(H+1)))==56320&&(M=65536+(M-55296<<10)+(Z-56320),H++),U+=M<128?1:M<2048?2:M<65536?3:4;for(n=new D.Buf8(U),W=0,H=0;W<U;H++)(64512&(M=v.charCodeAt(H)))==55296&&H+1<u&&(64512&(Z=v.charCodeAt(H+1)))==56320&&(M=65536+(M-55296<<10)+(Z-56320),H++),M<128?n[W++]=M:M<2048?(n[W++]=192|M>>>6,n[W++]=128|63&M):M<65536?(n[W++]=224|M>>>12,n[W++]=128|M>>>6&63,n[W++]=128|63&M):(n[W++]=240|M>>>18,n[W++]=128|M>>>12&63,n[W++]=128|M>>>6&63,n[W++]=128|63&M);return n},Q.buf2binstring=function(v){return I(v,v.length)},Q.binstring2buf=function(v){for(var n=new D.Buf8(v.length),M=0,Z=n.length;M<Z;M++)n[M]=v.charCodeAt(M);return n},Q.buf2string=function(v,n){var M,Z,H,W,u=n||v.length,U=new Array(2*u);for(Z=0,M=0;M<u;)if((H=v[M++])<128)U[Z++]=H;else if((W=h[H])>4)U[Z++]=65533,M+=W-1;else{for(H&=W===2?31:W===3?15:7;W>1&&M<u;)H=H<<6|63&v[M++],W--;W>1?U[Z++]=65533:H<65536?U[Z++]=H:(H-=65536,U[Z++]=55296|H>>10&1023,U[Z++]=56320|1023&H)}return I(U,Z)},Q.utf8border=function(v,n){var M;for((n=n||v.length)>v.length&&(n=v.length),M=n-1;M>=0&&(192&v[M])==128;)M--;return M<0||M===0?n:M+h[v[M]]>n?M:n}},3693:function(Se){Se.exports=function(Q,e,D,E){for(var y=65535&Q|0,h=Q>>>16&65535|0,S=0;D!==0;){D-=S=D>2e3?2e3:D;do h=h+(y=y+e[E++]|0)|0;while(--S);y%=65521,h%=65521}return y|h<<16|0}},2684:function(Se){Se.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},8464:function(Se){var Q=function(){for(var e,D=[],E=0;E<256;E++){e=E;for(var y=0;y<8;y++)e=1&e?3988292384^e>>>1:e>>>1;D[E]=e}return D}();Se.exports=function(e,D,E,y){var h=Q,S=y+E;e^=-1;for(var I=y;I<S;I++)e=e>>>8^h[255&(e^D[I])];return-1^e}},6193:function(Se,Q,e){var D,E=e(9187),y=e(8676),h=e(3693),S=e(8464),I=e(5604),v=-2,n=258,M=262,Z=103,H=113,W=666;function u(t,w){return t.msg=I[w],w}function U(t){return(t<<1)-(t>4?9:0)}function le(t){for(var w=t.length;--w>=0;)t[w]=0}function de(t){var w=t.state,l=w.pending;l>t.avail_out&&(l=t.avail_out),l!==0&&(E.arraySet(t.output,w.pending_buf,w.pending_out,l,t.next_out),t.next_out+=l,w.pending_out+=l,t.total_out+=l,t.avail_out-=l,w.pending-=l,w.pending===0&&(w.pending_out=0))}function he(t,w){y._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,w),t.block_start=t.strstart,de(t.strm)}function pe(t,w){t.pending_buf[t.pending++]=w}function oe(t,w){t.pending_buf[t.pending++]=w>>>8&255,t.pending_buf[t.pending++]=255&w}function P(t,w){var l,a,c=t.max_chain_length,m=t.strstart,z=t.prev_length,j=t.nice_match,k=t.strstart>t.w_size-M?t.strstart-(t.w_size-M):0,x=t.window,N=t.w_mask,G=t.prev,ie=t.strstart+n,V=x[m+z-1],ce=x[m+z];t.prev_length>=t.good_match&&(c>>=2),j>t.lookahead&&(j=t.lookahead);do if(x[(l=w)+z]===ce&&x[l+z-1]===V&&x[l]===x[m]&&x[++l]===x[m+1]){m+=2,l++;do;while(x[++m]===x[++l]&&x[++m]===x[++l]&&x[++m]===x[++l]&&x[++m]===x[++l]&&x[++m]===x[++l]&&x[++m]===x[++l]&&x[++m]===x[++l]&&x[++m]===x[++l]&&m<ie);if(a=n-(ie-m),m=ie-n,a>z){if(t.match_start=w,z=a,a>=j)break;V=x[m+z-1],ce=x[m+z]}}while((w=G[w&N])>k&&--c!=0);return z<=t.lookahead?z:t.lookahead}function $(t){var w,l,a,c,m,z,j,k,x,N,G=t.w_size;do{if(c=t.window_size-t.lookahead-t.strstart,t.strstart>=G+(G-M)){E.arraySet(t.window,t.window,G,G,0),t.match_start-=G,t.strstart-=G,t.block_start-=G,w=l=t.hash_size;do a=t.head[--w],t.head[w]=a>=G?a-G:0;while(--l);w=l=G;do a=t.prev[--w],t.prev[w]=a>=G?a-G:0;while(--l);c+=G}if(t.strm.avail_in===0)break;if(z=t.strm,j=t.window,k=t.strstart+t.lookahead,x=c,N=void 0,(N=z.avail_in)>x&&(N=x),l=N===0?0:(z.avail_in-=N,E.arraySet(j,z.input,z.next_in,N,k),z.state.wrap===1?z.adler=h(z.adler,j,N,k):z.state.wrap===2&&(z.adler=S(z.adler,j,N,k)),z.next_in+=N,z.total_in+=N,N),t.lookahead+=l,t.lookahead+t.insert>=3)for(m=t.strstart-t.insert,t.ins_h=t.window[m],t.ins_h=(t.ins_h<<t.hash_shift^t.window[m+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[m+3-1])&t.hash_mask,t.prev[m&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=m,m++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<M&&t.strm.avail_in!==0)}function b(t,w){for(var l,a;;){if(t.lookahead<M){if($(t),t.lookahead<M&&w===0)return 1;if(t.lookahead===0)break}if(l=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,l=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),l!==0&&t.strstart-l<=t.w_size-M&&(t.match_length=P(t,l)),t.match_length>=3)if(a=y._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,l=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!=0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else a=y._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(a&&(he(t,!1),t.strm.avail_out===0))return 1}return t.insert=t.strstart<2?t.strstart:2,w===4?(he(t,!0),t.strm.avail_out===0?3:4):t.last_lit&&(he(t,!1),t.strm.avail_out===0)?1:2}function R(t,w){for(var l,a,c;;){if(t.lookahead<M){if($(t),t.lookahead<M&&w===0)return 1;if(t.lookahead===0)break}if(l=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,l=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,l!==0&&t.prev_length<t.max_lazy_match&&t.strstart-l<=t.w_size-M&&(t.match_length=P(t,l),t.match_length<=5&&(t.strategy===1||t.match_length===3&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){c=t.strstart+t.lookahead-3,a=y._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=c&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,l=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!=0);if(t.match_available=0,t.match_length=2,t.strstart++,a&&(he(t,!1),t.strm.avail_out===0))return 1}else if(t.match_available){if((a=y._tr_tally(t,0,t.window[t.strstart-1]))&&he(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(a=y._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,w===4?(he(t,!0),t.strm.avail_out===0?3:4):t.last_lit&&(he(t,!1),t.strm.avail_out===0)?1:2}function _(t,w,l,a,c){this.good_length=t,this.max_lazy=w,this.nice_length=l,this.max_chain=a,this.func=c}function g(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new E.Buf16(1146),this.dyn_dtree=new E.Buf16(122),this.bl_tree=new E.Buf16(78),le(this.dyn_ltree),le(this.dyn_dtree),le(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new E.Buf16(16),this.heap=new E.Buf16(573),le(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new E.Buf16(573),le(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function O(t){var w;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(w=t.state).pending=0,w.pending_out=0,w.wrap<0&&(w.wrap=-w.wrap),w.status=w.wrap?42:H,t.adler=w.wrap===2?0:1,w.last_flush=0,y._tr_init(w),0):u(t,v)}function s(t){var w,l=O(t);return l===0&&((w=t.state).window_size=2*w.w_size,le(w.head),w.max_lazy_match=D[w.level].max_lazy,w.good_match=D[w.level].good_length,w.nice_match=D[w.level].nice_length,w.max_chain_length=D[w.level].max_chain,w.strstart=0,w.block_start=0,w.lookahead=0,w.insert=0,w.match_length=w.prev_length=2,w.match_available=0,w.ins_h=0),l}function f(t,w,l,a,c,m){if(!t)return v;var z=1;if(w===-1&&(w=6),a<0?(z=0,a=-a):a>15&&(z=2,a-=16),c<1||c>9||l!==8||a<8||a>15||w<0||w>9||m<0||m>4)return u(t,v);a===8&&(a=9);var j=new g;return t.state=j,j.strm=t,j.wrap=z,j.gzhead=null,j.w_bits=a,j.w_size=1<<j.w_bits,j.w_mask=j.w_size-1,j.hash_bits=c+7,j.hash_size=1<<j.hash_bits,j.hash_mask=j.hash_size-1,j.hash_shift=~~((j.hash_bits+3-1)/3),j.window=new E.Buf8(2*j.w_size),j.head=new E.Buf16(j.hash_size),j.prev=new E.Buf16(j.w_size),j.lit_bufsize=1<<c+6,j.pending_buf_size=4*j.lit_bufsize,j.pending_buf=new E.Buf8(j.pending_buf_size),j.d_buf=1*j.lit_bufsize,j.l_buf=3*j.lit_bufsize,j.level=w,j.strategy=m,j.method=l,s(t)}D=[new _(0,0,0,0,function(t,w){var l=65535;for(l>t.pending_buf_size-5&&(l=t.pending_buf_size-5);;){if(t.lookahead<=1){if($(t),t.lookahead===0&&w===0)return 1;if(t.lookahead===0)break}t.strstart+=t.lookahead,t.lookahead=0;var a=t.block_start+l;if((t.strstart===0||t.strstart>=a)&&(t.lookahead=t.strstart-a,t.strstart=a,he(t,!1),t.strm.avail_out===0)||t.strstart-t.block_start>=t.w_size-M&&(he(t,!1),t.strm.avail_out===0))return 1}return t.insert=0,w===4?(he(t,!0),t.strm.avail_out===0?3:4):(t.strstart>t.block_start&&(he(t,!1),t.strm.avail_out),1)}),new _(4,4,8,4,b),new _(4,5,16,8,b),new _(4,6,32,32,b),new _(4,4,16,16,R),new _(8,16,32,32,R),new _(8,16,128,128,R),new _(8,32,128,256,R),new _(32,128,258,1024,R),new _(32,258,258,4096,R)],Q.deflateInit=function(t,w){return f(t,w,8,15,8,0)},Q.deflateInit2=f,Q.deflateReset=s,Q.deflateResetKeep=O,Q.deflateSetHeader=function(t,w){return t&&t.state?t.state.wrap!==2?v:(t.state.gzhead=w,0):v},Q.deflate=function(t,w){var l,a,c,m;if(!t||!t.state||w>5||w<0)return t?u(t,v):v;if(a=t.state,!t.output||!t.input&&t.avail_in!==0||a.status===W&&w!==4)return u(t,t.avail_out===0?-5:v);if(a.strm=t,l=a.last_flush,a.last_flush=w,a.status===42)if(a.wrap===2)t.adler=0,pe(a,31),pe(a,139),pe(a,8),a.gzhead?(pe(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),pe(a,255&a.gzhead.time),pe(a,a.gzhead.time>>8&255),pe(a,a.gzhead.time>>16&255),pe(a,a.gzhead.time>>24&255),pe(a,a.level===9?2:a.strategy>=2||a.level<2?4:0),pe(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(pe(a,255&a.gzhead.extra.length),pe(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=S(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69):(pe(a,0),pe(a,0),pe(a,0),pe(a,0),pe(a,0),pe(a,a.level===9?2:a.strategy>=2||a.level<2?4:0),pe(a,3),a.status=H);else{var z=8+(a.w_bits-8<<4)<<8;z|=(a.strategy>=2||a.level<2?0:a.level<6?1:a.level===6?2:3)<<6,a.strstart!==0&&(z|=32),z+=31-z%31,a.status=H,oe(a,z),a.strstart!==0&&(oe(a,t.adler>>>16),oe(a,65535&t.adler)),t.adler=1}if(a.status===69)if(a.gzhead.extra){for(c=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>c&&(t.adler=S(t.adler,a.pending_buf,a.pending-c,c)),de(t),c=a.pending,a.pending!==a.pending_buf_size));)pe(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>c&&(t.adler=S(t.adler,a.pending_buf,a.pending-c,c)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=73)}else a.status=73;if(a.status===73)if(a.gzhead.name){c=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>c&&(t.adler=S(t.adler,a.pending_buf,a.pending-c,c)),de(t),c=a.pending,a.pending===a.pending_buf_size)){m=1;break}m=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,pe(a,m)}while(m!==0);a.gzhead.hcrc&&a.pending>c&&(t.adler=S(t.adler,a.pending_buf,a.pending-c,c)),m===0&&(a.gzindex=0,a.status=91)}else a.status=91;if(a.status===91)if(a.gzhead.comment){c=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>c&&(t.adler=S(t.adler,a.pending_buf,a.pending-c,c)),de(t),c=a.pending,a.pending===a.pending_buf_size)){m=1;break}m=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,pe(a,m)}while(m!==0);a.gzhead.hcrc&&a.pending>c&&(t.adler=S(t.adler,a.pending_buf,a.pending-c,c)),m===0&&(a.status=Z)}else a.status=Z;if(a.status===Z&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&de(t),a.pending+2<=a.pending_buf_size&&(pe(a,255&t.adler),pe(a,t.adler>>8&255),t.adler=0,a.status=H)):a.status=H),a.pending!==0){if(de(t),t.avail_out===0)return a.last_flush=-1,0}else if(t.avail_in===0&&U(w)<=U(l)&&w!==4)return u(t,-5);if(a.status===W&&t.avail_in!==0)return u(t,-5);if(t.avail_in!==0||a.lookahead!==0||w!==0&&a.status!==W){var j=a.strategy===2?function(k,x){for(var N;;){if(k.lookahead===0&&($(k),k.lookahead===0)){if(x===0)return 1;break}if(k.match_length=0,N=y._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++,N&&(he(k,!1),k.strm.avail_out===0))return 1}return k.insert=0,x===4?(he(k,!0),k.strm.avail_out===0?3:4):k.last_lit&&(he(k,!1),k.strm.avail_out===0)?1:2}(a,w):a.strategy===3?function(k,x){for(var N,G,ie,V,ce=k.window;;){if(k.lookahead<=n){if($(k),k.lookahead<=n&&x===0)return 1;if(k.lookahead===0)break}if(k.match_length=0,k.lookahead>=3&&k.strstart>0&&(G=ce[ie=k.strstart-1])===ce[++ie]&&G===ce[++ie]&&G===ce[++ie]){V=k.strstart+n;do;while(G===ce[++ie]&&G===ce[++ie]&&G===ce[++ie]&&G===ce[++ie]&&G===ce[++ie]&&G===ce[++ie]&&G===ce[++ie]&&G===ce[++ie]&&ie<V);k.match_length=n-(V-ie),k.match_length>k.lookahead&&(k.match_length=k.lookahead)}if(k.match_length>=3?(N=y._tr_tally(k,1,k.match_length-3),k.lookahead-=k.match_length,k.strstart+=k.match_length,k.match_length=0):(N=y._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++),N&&(he(k,!1),k.strm.avail_out===0))return 1}return k.insert=0,x===4?(he(k,!0),k.strm.avail_out===0?3:4):k.last_lit&&(he(k,!1),k.strm.avail_out===0)?1:2}(a,w):D[a.level].func(a,w);if(j!==3&&j!==4||(a.status=W),j===1||j===3)return t.avail_out===0&&(a.last_flush=-1),0;if(j===2&&(w===1?y._tr_align(a):w!==5&&(y._tr_stored_block(a,0,0,!1),w===3&&(le(a.head),a.lookahead===0&&(a.strstart=0,a.block_start=0,a.insert=0))),de(t),t.avail_out===0))return a.last_flush=-1,0}return w!==4?0:a.wrap<=0?1:(a.wrap===2?(pe(a,255&t.adler),pe(a,t.adler>>8&255),pe(a,t.adler>>16&255),pe(a,t.adler>>24&255),pe(a,255&t.total_in),pe(a,t.total_in>>8&255),pe(a,t.total_in>>16&255),pe(a,t.total_in>>24&255)):(oe(a,t.adler>>>16),oe(a,65535&t.adler)),de(t),a.wrap>0&&(a.wrap=-a.wrap),a.pending!==0?0:1)},Q.deflateEnd=function(t){var w;return t&&t.state?(w=t.state.status)!==42&&w!==69&&w!==73&&w!==91&&w!==Z&&w!==H&&w!==W?u(t,v):(t.state=null,w===H?u(t,-3):0):v},Q.deflateSetDictionary=function(t,w){var l,a,c,m,z,j,k,x,N=w.length;if(!t||!t.state||(m=(l=t.state).wrap)===2||m===1&&l.status!==42||l.lookahead)return v;for(m===1&&(t.adler=h(t.adler,w,N,0)),l.wrap=0,N>=l.w_size&&(m===0&&(le(l.head),l.strstart=0,l.block_start=0,l.insert=0),x=new E.Buf8(l.w_size),E.arraySet(x,w,N-l.w_size,l.w_size,0),w=x,N=l.w_size),z=t.avail_in,j=t.next_in,k=t.input,t.avail_in=N,t.next_in=0,t.input=w,$(l);l.lookahead>=3;){a=l.strstart,c=l.lookahead-2;do l.ins_h=(l.ins_h<<l.hash_shift^l.window[a+3-1])&l.hash_mask,l.prev[a&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=a,a++;while(--c);l.strstart=a,l.lookahead=2,$(l)}return l.strstart+=l.lookahead,l.block_start=l.strstart,l.insert=l.lookahead,l.lookahead=0,l.match_length=l.prev_length=2,l.match_available=0,t.next_in=j,t.input=k,t.avail_in=z,l.wrap=m,0},Q.deflateInfo="pako deflate (from Nodeca project)"},9968:function(Se){Se.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},9365:function(Se){Se.exports=function(Q,e){var D,E,y,h,S,I,v,n,M,Z,H,W,u,U,le,de,he,pe,oe,P,$,b,R,_,g;D=Q.state,E=Q.next_in,_=Q.input,y=E+(Q.avail_in-5),h=Q.next_out,g=Q.output,S=h-(e-Q.avail_out),I=h+(Q.avail_out-257),v=D.dmax,n=D.wsize,M=D.whave,Z=D.wnext,H=D.window,W=D.hold,u=D.bits,U=D.lencode,le=D.distcode,de=(1<<D.lenbits)-1,he=(1<<D.distbits)-1;e:do{u<15&&(W+=_[E++]<<u,u+=8,W+=_[E++]<<u,u+=8),pe=U[W&de];t:for(;;){if(W>>>=oe=pe>>>24,u-=oe,(oe=pe>>>16&255)===0)g[h++]=65535&pe;else{if(!(16&oe)){if(!(64&oe)){pe=U[(65535&pe)+(W&(1<<oe)-1)];continue t}if(32&oe){D.mode=12;break e}Q.msg="invalid literal/length code",D.mode=30;break e}P=65535&pe,(oe&=15)&&(u<oe&&(W+=_[E++]<<u,u+=8),P+=W&(1<<oe)-1,W>>>=oe,u-=oe),u<15&&(W+=_[E++]<<u,u+=8,W+=_[E++]<<u,u+=8),pe=le[W&he];r:for(;;){if(W>>>=oe=pe>>>24,u-=oe,!(16&(oe=pe>>>16&255))){if(!(64&oe)){pe=le[(65535&pe)+(W&(1<<oe)-1)];continue r}Q.msg="invalid distance code",D.mode=30;break e}if($=65535&pe,u<(oe&=15)&&(W+=_[E++]<<u,(u+=8)<oe&&(W+=_[E++]<<u,u+=8)),($+=W&(1<<oe)-1)>v){Q.msg="invalid distance too far back",D.mode=30;break e}if(W>>>=oe,u-=oe,$>(oe=h-S)){if((oe=$-oe)>M&&D.sane){Q.msg="invalid distance too far back",D.mode=30;break e}if(b=0,R=H,Z===0){if(b+=n-oe,oe<P){P-=oe;do g[h++]=H[b++];while(--oe);b=h-$,R=g}}else if(Z<oe){if(b+=n+Z-oe,(oe-=Z)<P){P-=oe;do g[h++]=H[b++];while(--oe);if(b=0,Z<P){P-=oe=Z;do g[h++]=H[b++];while(--oe);b=h-$,R=g}}}else if(b+=Z-oe,oe<P){P-=oe;do g[h++]=H[b++];while(--oe);b=h-$,R=g}for(;P>2;)g[h++]=R[b++],g[h++]=R[b++],g[h++]=R[b++],P-=3;P&&(g[h++]=R[b++],P>1&&(g[h++]=R[b++]))}else{b=h-$;do g[h++]=g[b++],g[h++]=g[b++],g[h++]=g[b++],P-=3;while(P>2);P&&(g[h++]=g[b++],P>1&&(g[h++]=g[b++]))}break}}break}}while(E<y&&h<I);E-=P=u>>3,W&=(1<<(u-=P<<3))-1,Q.next_in=E,Q.next_out=h,Q.avail_in=E<y?y-E+5:5-(E-y),Q.avail_out=h<I?I-h+257:257-(h-I),D.hold=W,D.bits=u}},7823:function(Se,Q,e){var D=e(9187),E=e(3693),y=e(8464),h=e(9365),S=e(6446),I=-2,v=12,n=30;function M(P){return(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<24)}function Z(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new D.Buf16(320),this.work=new D.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function H(P){var $;return P&&P.state?($=P.state,P.total_in=P.total_out=$.total=0,P.msg="",$.wrap&&(P.adler=1&$.wrap),$.mode=1,$.last=0,$.havedict=0,$.dmax=32768,$.head=null,$.hold=0,$.bits=0,$.lencode=$.lendyn=new D.Buf32(852),$.distcode=$.distdyn=new D.Buf32(592),$.sane=1,$.back=-1,0):I}function W(P){var $;return P&&P.state?(($=P.state).wsize=0,$.whave=0,$.wnext=0,H(P)):I}function u(P,$){var b,R;return P&&P.state?(R=P.state,$<0?(b=0,$=-$):(b=1+($>>4),$<48&&($&=15)),$&&($<8||$>15)?I:(R.window!==null&&R.wbits!==$&&(R.window=null),R.wrap=b,R.wbits=$,W(P))):I}function U(P,$){var b,R;return P?(R=new Z,P.state=R,R.window=null,(b=u(P,$))!==0&&(P.state=null),b):I}var le,de,he=!0;function pe(P){if(he){var $;for(le=new D.Buf32(512),de=new D.Buf32(32),$=0;$<144;)P.lens[$++]=8;for(;$<256;)P.lens[$++]=9;for(;$<280;)P.lens[$++]=7;for(;$<288;)P.lens[$++]=8;for(S(1,P.lens,0,288,le,0,P.work,{bits:9}),$=0;$<32;)P.lens[$++]=5;S(2,P.lens,0,32,de,0,P.work,{bits:5}),he=!1}P.lencode=le,P.lenbits=9,P.distcode=de,P.distbits=5}function oe(P,$,b,R){var _,g=P.state;return g.window===null&&(g.wsize=1<<g.wbits,g.wnext=0,g.whave=0,g.window=new D.Buf8(g.wsize)),R>=g.wsize?(D.arraySet(g.window,$,b-g.wsize,g.wsize,0),g.wnext=0,g.whave=g.wsize):((_=g.wsize-g.wnext)>R&&(_=R),D.arraySet(g.window,$,b-R,_,g.wnext),(R-=_)?(D.arraySet(g.window,$,b-R,R,0),g.wnext=R,g.whave=g.wsize):(g.wnext+=_,g.wnext===g.wsize&&(g.wnext=0),g.whave<g.wsize&&(g.whave+=_))),0}Q.inflateReset=W,Q.inflateReset2=u,Q.inflateResetKeep=H,Q.inflateInit=function(P){return U(P,15)},Q.inflateInit2=U,Q.inflate=function(P,$){var b,R,_,g,O,s,f,t,w,l,a,c,m,z,j,k,x,N,G,ie,V,ce,te,L,re=0,me=new D.Buf8(4),Ce=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!P||!P.state||!P.output||!P.input&&P.avail_in!==0)return I;(b=P.state).mode===v&&(b.mode=13),O=P.next_out,_=P.output,f=P.avail_out,g=P.next_in,R=P.input,s=P.avail_in,t=b.hold,w=b.bits,l=s,a=f,ce=0;e:for(;;)switch(b.mode){case 1:if(b.wrap===0){b.mode=13;break}for(;w<16;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if(2&b.wrap&&t===35615){b.check=0,me[0]=255&t,me[1]=t>>>8&255,b.check=y(b.check,me,2,0),t=0,w=0,b.mode=2;break}if(b.flags=0,b.head&&(b.head.done=!1),!(1&b.wrap)||(((255&t)<<8)+(t>>8))%31){P.msg="incorrect header check",b.mode=n;break}if((15&t)!=8){P.msg="unknown compression method",b.mode=n;break}if(w-=4,V=8+(15&(t>>>=4)),b.wbits===0)b.wbits=V;else if(V>b.wbits){P.msg="invalid window size",b.mode=n;break}b.dmax=1<<V,P.adler=b.check=1,b.mode=512&t?10:v,t=0,w=0;break;case 2:for(;w<16;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if(b.flags=t,(255&b.flags)!=8){P.msg="unknown compression method",b.mode=n;break}if(57344&b.flags){P.msg="unknown header flags set",b.mode=n;break}b.head&&(b.head.text=t>>8&1),512&b.flags&&(me[0]=255&t,me[1]=t>>>8&255,b.check=y(b.check,me,2,0)),t=0,w=0,b.mode=3;case 3:for(;w<32;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}b.head&&(b.head.time=t),512&b.flags&&(me[0]=255&t,me[1]=t>>>8&255,me[2]=t>>>16&255,me[3]=t>>>24&255,b.check=y(b.check,me,4,0)),t=0,w=0,b.mode=4;case 4:for(;w<16;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}b.head&&(b.head.xflags=255&t,b.head.os=t>>8),512&b.flags&&(me[0]=255&t,me[1]=t>>>8&255,b.check=y(b.check,me,2,0)),t=0,w=0,b.mode=5;case 5:if(1024&b.flags){for(;w<16;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}b.length=t,b.head&&(b.head.extra_len=t),512&b.flags&&(me[0]=255&t,me[1]=t>>>8&255,b.check=y(b.check,me,2,0)),t=0,w=0}else b.head&&(b.head.extra=null);b.mode=6;case 6:if(1024&b.flags&&((c=b.length)>s&&(c=s),c&&(b.head&&(V=b.head.extra_len-b.length,b.head.extra||(b.head.extra=new Array(b.head.extra_len)),D.arraySet(b.head.extra,R,g,c,V)),512&b.flags&&(b.check=y(b.check,R,c,g)),s-=c,g+=c,b.length-=c),b.length))break e;b.length=0,b.mode=7;case 7:if(2048&b.flags){if(s===0)break e;c=0;do V=R[g+c++],b.head&&V&&b.length<65536&&(b.head.name+=String.fromCharCode(V));while(V&&c<s);if(512&b.flags&&(b.check=y(b.check,R,c,g)),s-=c,g+=c,V)break e}else b.head&&(b.head.name=null);b.length=0,b.mode=8;case 8:if(4096&b.flags){if(s===0)break e;c=0;do V=R[g+c++],b.head&&V&&b.length<65536&&(b.head.comment+=String.fromCharCode(V));while(V&&c<s);if(512&b.flags&&(b.check=y(b.check,R,c,g)),s-=c,g+=c,V)break e}else b.head&&(b.head.comment=null);b.mode=9;case 9:if(512&b.flags){for(;w<16;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if(t!==(65535&b.check)){P.msg="header crc mismatch",b.mode=n;break}t=0,w=0}b.head&&(b.head.hcrc=b.flags>>9&1,b.head.done=!0),P.adler=b.check=0,b.mode=v;break;case 10:for(;w<32;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}P.adler=b.check=M(t),t=0,w=0,b.mode=11;case 11:if(b.havedict===0)return P.next_out=O,P.avail_out=f,P.next_in=g,P.avail_in=s,b.hold=t,b.bits=w,2;P.adler=b.check=1,b.mode=v;case v:if($===5||$===6)break e;case 13:if(b.last){t>>>=7&w,w-=7&w,b.mode=27;break}for(;w<3;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}switch(b.last=1&t,w-=1,3&(t>>>=1)){case 0:b.mode=14;break;case 1:if(pe(b),b.mode=20,$===6){t>>>=2,w-=2;break e}break;case 2:b.mode=17;break;case 3:P.msg="invalid block type",b.mode=n}t>>>=2,w-=2;break;case 14:for(t>>>=7&w,w-=7&w;w<32;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if((65535&t)!=(t>>>16^65535)){P.msg="invalid stored block lengths",b.mode=n;break}if(b.length=65535&t,t=0,w=0,b.mode=15,$===6)break e;case 15:b.mode=16;case 16:if(c=b.length){if(c>s&&(c=s),c>f&&(c=f),c===0)break e;D.arraySet(_,R,g,c,O),s-=c,g+=c,f-=c,O+=c,b.length-=c;break}b.mode=v;break;case 17:for(;w<14;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if(b.nlen=257+(31&t),t>>>=5,w-=5,b.ndist=1+(31&t),t>>>=5,w-=5,b.ncode=4+(15&t),t>>>=4,w-=4,b.nlen>286||b.ndist>30){P.msg="too many length or distance symbols",b.mode=n;break}b.have=0,b.mode=18;case 18:for(;b.have<b.ncode;){for(;w<3;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}b.lens[Ce[b.have++]]=7&t,t>>>=3,w-=3}for(;b.have<19;)b.lens[Ce[b.have++]]=0;if(b.lencode=b.lendyn,b.lenbits=7,te={bits:b.lenbits},ce=S(0,b.lens,0,19,b.lencode,0,b.work,te),b.lenbits=te.bits,ce){P.msg="invalid code lengths set",b.mode=n;break}b.have=0,b.mode=19;case 19:for(;b.have<b.nlen+b.ndist;){for(;k=(re=b.lencode[t&(1<<b.lenbits)-1])>>>16&255,x=65535&re,!((j=re>>>24)<=w);){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if(x<16)t>>>=j,w-=j,b.lens[b.have++]=x;else{if(x===16){for(L=j+2;w<L;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if(t>>>=j,w-=j,b.have===0){P.msg="invalid bit length repeat",b.mode=n;break}V=b.lens[b.have-1],c=3+(3&t),t>>>=2,w-=2}else if(x===17){for(L=j+3;w<L;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}w-=j,V=0,c=3+(7&(t>>>=j)),t>>>=3,w-=3}else{for(L=j+7;w<L;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}w-=j,V=0,c=11+(127&(t>>>=j)),t>>>=7,w-=7}if(b.have+c>b.nlen+b.ndist){P.msg="invalid bit length repeat",b.mode=n;break}for(;c--;)b.lens[b.have++]=V}}if(b.mode===n)break;if(b.lens[256]===0){P.msg="invalid code -- missing end-of-block",b.mode=n;break}if(b.lenbits=9,te={bits:b.lenbits},ce=S(1,b.lens,0,b.nlen,b.lencode,0,b.work,te),b.lenbits=te.bits,ce){P.msg="invalid literal/lengths set",b.mode=n;break}if(b.distbits=6,b.distcode=b.distdyn,te={bits:b.distbits},ce=S(2,b.lens,b.nlen,b.ndist,b.distcode,0,b.work,te),b.distbits=te.bits,ce){P.msg="invalid distances set",b.mode=n;break}if(b.mode=20,$===6)break e;case 20:b.mode=21;case 21:if(s>=6&&f>=258){P.next_out=O,P.avail_out=f,P.next_in=g,P.avail_in=s,b.hold=t,b.bits=w,h(P,a),O=P.next_out,_=P.output,f=P.avail_out,g=P.next_in,R=P.input,s=P.avail_in,t=b.hold,w=b.bits,b.mode===v&&(b.back=-1);break}for(b.back=0;k=(re=b.lencode[t&(1<<b.lenbits)-1])>>>16&255,x=65535&re,!((j=re>>>24)<=w);){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if(k&&!(240&k)){for(N=j,G=k,ie=x;k=(re=b.lencode[ie+((t&(1<<N+G)-1)>>N)])>>>16&255,x=65535&re,!(N+(j=re>>>24)<=w);){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}t>>>=N,w-=N,b.back+=N}if(t>>>=j,w-=j,b.back+=j,b.length=x,k===0){b.mode=26;break}if(32&k){b.back=-1,b.mode=v;break}if(64&k){P.msg="invalid literal/length code",b.mode=n;break}b.extra=15&k,b.mode=22;case 22:if(b.extra){for(L=b.extra;w<L;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}b.length+=t&(1<<b.extra)-1,t>>>=b.extra,w-=b.extra,b.back+=b.extra}b.was=b.length,b.mode=23;case 23:for(;k=(re=b.distcode[t&(1<<b.distbits)-1])>>>16&255,x=65535&re,!((j=re>>>24)<=w);){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if(!(240&k)){for(N=j,G=k,ie=x;k=(re=b.distcode[ie+((t&(1<<N+G)-1)>>N)])>>>16&255,x=65535&re,!(N+(j=re>>>24)<=w);){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}t>>>=N,w-=N,b.back+=N}if(t>>>=j,w-=j,b.back+=j,64&k){P.msg="invalid distance code",b.mode=n;break}b.offset=x,b.extra=15&k,b.mode=24;case 24:if(b.extra){for(L=b.extra;w<L;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}b.offset+=t&(1<<b.extra)-1,t>>>=b.extra,w-=b.extra,b.back+=b.extra}if(b.offset>b.dmax){P.msg="invalid distance too far back",b.mode=n;break}b.mode=25;case 25:if(f===0)break e;if(c=a-f,b.offset>c){if((c=b.offset-c)>b.whave&&b.sane){P.msg="invalid distance too far back",b.mode=n;break}c>b.wnext?(c-=b.wnext,m=b.wsize-c):m=b.wnext-c,c>b.length&&(c=b.length),z=b.window}else z=_,m=O-b.offset,c=b.length;c>f&&(c=f),f-=c,b.length-=c;do _[O++]=z[m++];while(--c);b.length===0&&(b.mode=21);break;case 26:if(f===0)break e;_[O++]=b.length,f--,b.mode=21;break;case 27:if(b.wrap){for(;w<32;){if(s===0)break e;s--,t|=R[g++]<<w,w+=8}if(a-=f,P.total_out+=a,b.total+=a,a&&(P.adler=b.check=b.flags?y(b.check,_,a,O-a):E(b.check,_,a,O-a)),a=f,(b.flags?t:M(t))!==b.check){P.msg="incorrect data check",b.mode=n;break}t=0,w=0}b.mode=28;case 28:if(b.wrap&&b.flags){for(;w<32;){if(s===0)break e;s--,t+=R[g++]<<w,w+=8}if(t!==(4294967295&b.total)){P.msg="incorrect length check",b.mode=n;break}t=0,w=0}b.mode=29;case 29:ce=1;break e;case n:ce=-3;break e;case 31:return-4;default:return I}return P.next_out=O,P.avail_out=f,P.next_in=g,P.avail_in=s,b.hold=t,b.bits=w,(b.wsize||a!==P.avail_out&&b.mode<n&&(b.mode<27||$!==4))&&oe(P,P.output,P.next_out,a-P.avail_out)?(b.mode=31,-4):(l-=P.avail_in,a-=P.avail_out,P.total_in+=l,P.total_out+=a,b.total+=a,b.wrap&&a&&(P.adler=b.check=b.flags?y(b.check,_,a,P.next_out-a):E(b.check,_,a,P.next_out-a)),P.data_type=b.bits+(b.last?64:0)+(b.mode===v?128:0)+(b.mode===20||b.mode===15?256:0),(l===0&&a===0||$===4)&&ce===0&&(ce=-5),ce)},Q.inflateEnd=function(P){if(!P||!P.state)return I;var $=P.state;return $.window&&($.window=null),P.state=null,0},Q.inflateGetHeader=function(P,$){var b;return P&&P.state&&2&(b=P.state).wrap?(b.head=$,$.done=!1,0):I},Q.inflateSetDictionary=function(P,$){var b,R=$.length;return P&&P.state?(b=P.state).wrap!==0&&b.mode!==11?I:b.mode===11&&E(1,$,R,0)!==b.check?-3:oe(P,$,R,R)?(b.mode=31,-4):(b.havedict=1,0):I},Q.inflateInfo="pako inflate (from Nodeca project)"},6446:function(Se,Q,e){var D=e(9187),E=15,y=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],h=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],S=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],I=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Se.exports=function(v,n,M,Z,H,W,u,U){var le,de,he,pe,oe,P,$,b,R,_=U.bits,g=0,O=0,s=0,f=0,t=0,w=0,l=0,a=0,c=0,m=0,z=null,j=0,k=new D.Buf16(16),x=new D.Buf16(16),N=null,G=0;for(g=0;g<=E;g++)k[g]=0;for(O=0;O<Z;O++)k[n[M+O]]++;for(t=_,f=E;f>=1&&k[f]===0;f--);if(t>f&&(t=f),f===0)return H[W++]=20971520,H[W++]=20971520,U.bits=1,0;for(s=1;s<f&&k[s]===0;s++);for(t<s&&(t=s),a=1,g=1;g<=E;g++)if(a<<=1,(a-=k[g])<0)return-1;if(a>0&&(v===0||f!==1))return-1;for(x[1]=0,g=1;g<E;g++)x[g+1]=x[g]+k[g];for(O=0;O<Z;O++)n[M+O]!==0&&(u[x[n[M+O]]++]=O);if(v===0?(z=N=u,P=19):v===1?(z=y,j-=257,N=h,G-=257,P=256):(z=S,N=I,P=-1),m=0,O=0,g=s,oe=W,w=t,l=0,he=-1,pe=(c=1<<t)-1,v===1&&c>852||v===2&&c>592)return 1;for(;;){$=g-l,u[O]<P?(b=0,R=u[O]):u[O]>P?(b=N[G+u[O]],R=z[j+u[O]]):(b=96,R=0),le=1<<g-l,s=de=1<<w;do H[oe+(m>>l)+(de-=le)]=$<<24|b<<16|R|0;while(de!==0);for(le=1<<g-1;m≤)le>>=1;if(le!==0?(m&=le-1,m+=le):m=0,O++,--k[g]==0){if(g===f)break;g=n[M+u[O]]}if(g>t&&(m&pe)!==he){for(l===0&&(l=t),oe+=s,a=1<<(w=g-l);w+l<f&&!((a-=k[w+l])<=0);)w++,a<<=1;if(c+=1<<w,v===1&&c>852||v===2&&c>592)return 1;H[he=m&pe]=t<<24|w<<16|oe-W|0}}return m!==0&&(H[oe+m]=g-l<<24|4194304|0),U.bits=t,0}},5604:function(Se){Se.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},8676:function(Se,Q,e){var D=e(9187);function E(x){for(var N=x.length;--N>=0;)x[N]=0}var y=256,h=286,S=30,I=15,v=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],n=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],M=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=new Array(576);E(H);var W=new Array(60);E(W);var u=new Array(512);E(u);var U=new Array(256);E(U);var le=new Array(29);E(le);var de,he,pe,oe=new Array(S);function P(x,N,G,ie,V){this.static_tree=x,this.extra_bits=N,this.extra_base=G,this.elems=ie,this.max_length=V,this.has_stree=x&&x.length}function $(x,N){this.dyn_tree=x,this.max_code=0,this.stat_desc=N}function b(x){return x<256?u[x]:u[256+(x>>>7)]}function R(x,N){x.pending_buf[x.pending++]=255&N,x.pending_buf[x.pending++]=N>>>8&255}function _(x,N,G){x.bi_valid>16-G?(x.bi_buf|=N<<x.bi_valid&65535,R(x,x.bi_buf),x.bi_buf=N>>16-x.bi_valid,x.bi_valid+=G-16):(x.bi_buf|=N<<x.bi_valid&65535,x.bi_valid+=G)}function g(x,N,G){_(x,G[2*N],G[2*N+1])}function O(x,N){var G=0;do G|=1&x,x>>>=1,G<<=1;while(--N>0);return G>>>1}function s(x,N,G){var ie,V,ce=new Array(16),te=0;for(ie=1;ie<=I;ie++)ce[ie]=te=te+G[ie-1]<<1;for(V=0;V<=N;V++){var L=x[2*V+1];L!==0&&(x[2*V]=O(ce[L]++,L))}}function f(x){var N;for(N=0;N<h;N++)x.dyn_ltree[2*N]=0;for(N=0;N<S;N++)x.dyn_dtree[2*N]=0;for(N=0;N<19;N++)x.bl_tree[2*N]=0;x.dyn_ltree[512]=1,x.opt_len=x.static_len=0,x.last_lit=x.matches=0}function t(x){x.bi_valid>8?R(x,x.bi_buf):x.bi_valid>0&&(x.pending_buf[x.pending++]=x.bi_buf),x.bi_buf=0,x.bi_valid=0}function w(x,N,G,ie){var V=2*N,ce=2*G;return x[V]<x[ce]||x[V]===x[ce]&&ie[N]<=ie[G]}function l(x,N,G){for(var ie=x.heap[G],V=G<<1;V<=x.heap_len&&(V<x.heap_len&&w(N,x.heap[V+1],x.heap[V],x.depth)&&V++,!w(N,ie,x.heap[V],x.depth));)x.heap[G]=x.heap[V],G=V,V<<=1;x.heap[G]=ie}function a(x,N,G){var ie,V,ce,te,L=0;if(x.last_lit!==0)do ie=x.pending_buf[x.d_buf+2*L]<<8|x.pending_buf[x.d_buf+2*L+1],V=x.pending_buf[x.l_buf+L],L++,ie===0?g(x,V,N):(g(x,(ce=U[V])+y+1,N),(te=v[ce])!==0&&_(x,V-=le[ce],te),g(x,ce=b(--ie),G),(te=n[ce])!==0&&_(x,ie-=oe[ce],te));while(L<x.last_lit);g(x,256,N)}function c(x,N){var G,ie,V,ce=N.dyn_tree,te=N.stat_desc.static_tree,L=N.stat_desc.has_stree,re=N.stat_desc.elems,me=-1;for(x.heap_len=0,x.heap_max=573,G=0;G<re;G++)ce[2*G]!==0?(x.heap[++x.heap_len]=me=G,x.depth[G]=0):ce[2*G+1]=0;for(;x.heap_len<2;)ce[2*(V=x.heap[++x.heap_len]=me<2?++me:0)]=1,x.depth[V]=0,x.opt_len--,L&&(x.static_len-=te[2*V+1]);for(N.max_code=me,G=x.heap_len>>1;G>=1;G--)l(x,ce,G);V=re;do G=x.heap[1],x.heap[1]=x.heap[x.heap_len--],l(x,ce,1),ie=x.heap[1],x.heap[--x.heap_max]=G,x.heap[--x.heap_max]=ie,ce[2*V]=ce[2*G]+ce[2*ie],x.depth[V]=(x.depth[G]>=x.depth[ie]?x.depth[G]:x.depth[ie])+1,ce[2*G+1]=ce[2*ie+1]=V,x.heap[1]=V++,l(x,ce,1);while(x.heap_len>=2);x.heap[--x.heap_max]=x.heap[1],function(Ce,We){var Te,we,xe,_e,Oe,J,ke=We.dyn_tree,q=We.max_code,o=We.stat_desc.static_tree,i=We.stat_desc.has_stree,p=We.stat_desc.extra_bits,B=We.stat_desc.extra_base,A=We.stat_desc.max_length,X=0;for(_e=0;_e<=I;_e++)Ce.bl_count[_e]=0;for(ke[2*Ce.heap[Ce.heap_max]+1]=0,Te=Ce.heap_max+1;Te<573;Te++)(_e=ke[2*ke[2*(we=Ce.heap[Te])+1]+1]+1)>A&&(_e=A,X++),ke[2*we+1]=_e,we>q||(Ce.bl_count[_e]++,Oe=0,we>=B&&(Oe=p[we-B]),J=ke[2*we],Ce.opt_len+=J*(_e+Oe),i&&(Ce.static_len+=J*(o[2*we+1]+Oe)));if(X!==0){do{for(_e=A-1;Ce.bl_count[_e]===0;)_e--;Ce.bl_count[_e]--,Ce.bl_count[_e+1]+=2,Ce.bl_count[A]--,X-=2}while(X>0);for(_e=A;_e!==0;_e--)for(we=Ce.bl_count[_e];we!==0;)(xe=Ce.heap[--Te])>q||(ke[2*xe+1]!==_e&&(Ce.opt_len+=(_e-ke[2*xe+1])*ke[2*xe],ke[2*xe+1]=_e),we--)}}(x,N),s(ce,me,x.bl_count)}function m(x,N,G){var ie,V,ce=-1,te=N[1],L=0,re=7,me=4;for(te===0&&(re=138,me=3),N[2*(G+1)+1]=65535,ie=0;ie<=G;ie++)V=te,te=N[2*(ie+1)+1],++L<re&&V===te||(L<me?x.bl_tree[2*V]+=L:V!==0?(V!==ce&&x.bl_tree[2*V]++,x.bl_tree[32]++):L<=10?x.bl_tree[34]++:x.bl_tree[36]++,L=0,ce=V,te===0?(re=138,me=3):V===te?(re=6,me=3):(re=7,me=4))}function z(x,N,G){var ie,V,ce=-1,te=N[1],L=0,re=7,me=4;for(te===0&&(re=138,me=3),ie=0;ie<=G;ie++)if(V=te,te=N[2*(ie+1)+1],!(++L<re&&V===te)){if(L<me)do g(x,V,x.bl_tree);while(--L!=0);else V!==0?(V!==ce&&(g(x,V,x.bl_tree),L--),g(x,16,x.bl_tree),_(x,L-3,2)):L<=10?(g(x,17,x.bl_tree),_(x,L-3,3)):(g(x,18,x.bl_tree),_(x,L-11,7));L=0,ce=V,te===0?(re=138,me=3):V===te?(re=6,me=3):(re=7,me=4)}}E(oe);var j=!1;function k(x,N,G,ie){_(x,0+(ie?1:0),3),function(V,ce,te,L){t(V),L&&(R(V,te),R(V,~te)),D.arraySet(V.pending_buf,V.window,ce,te,V.pending),V.pending+=te}(x,N,G,!0)}Q._tr_init=function(x){j||(function(){var N,G,ie,V,ce,te=new Array(16);for(ie=0,V=0;V<28;V++)for(le[V]=ie,N=0;N<1<<v[V];N++)U[ie++]=V;for(U[ie-1]=V,ce=0,V=0;V<16;V++)for(oe[V]=ce,N=0;N<1<<n[V];N++)u[ce++]=V;for(ce>>=7;V<S;V++)for(oe[V]=ce<<7,N=0;N<1<<n[V]-7;N++)u[256+ce++]=V;for(G=0;G<=I;G++)te[G]=0;for(N=0;N<=143;)H[2*N+1]=8,N++,te[8]++;for(;N<=255;)H[2*N+1]=9,N++,te[9]++;for(;N<=279;)H[2*N+1]=7,N++,te[7]++;for(;N<=287;)H[2*N+1]=8,N++,te[8]++;for(s(H,287,te),N=0;N<S;N++)W[2*N+1]=5,W[2*N]=O(N,5);de=new P(H,v,257,h,I),he=new P(W,n,0,S,I),pe=new P(new Array(0),M,0,19,7)}(),j=!0),x.l_desc=new $(x.dyn_ltree,de),x.d_desc=new $(x.dyn_dtree,he),x.bl_desc=new $(x.bl_tree,pe),x.bi_buf=0,x.bi_valid=0,f(x)},Q._tr_stored_block=k,Q._tr_flush_block=function(x,N,G,ie){var V,ce,te=0;x.level>0?(x.strm.data_type===2&&(x.strm.data_type=function(L){var re,me=4093624447;for(re=0;re<=31;re++,me>>>=1)if(1&me&&L.dyn_ltree[2*re]!==0)return 0;if(L.dyn_ltree[18]!==0||L.dyn_ltree[20]!==0||L.dyn_ltree[26]!==0)return 1;for(re=32;re<y;re++)if(L.dyn_ltree[2*re]!==0)return 1;return 0}(x)),c(x,x.l_desc),c(x,x.d_desc),te=function(L){var re;for(m(L,L.dyn_ltree,L.l_desc.max_code),m(L,L.dyn_dtree,L.d_desc.max_code),c(L,L.bl_desc),re=18;re>=3&&L.bl_tree[2*Z[re]+1]===0;re--);return L.opt_len+=3*(re+1)+5+5+4,re}(x),V=x.opt_len+3+7>>>3,(ce=x.static_len+3+7>>>3)<=V&&(V=ce)):V=ce=G+5,G+4<=V&&N!==-1?k(x,N,G,ie):x.strategy===4||ce===V?(_(x,2+(ie?1:0),3),a(x,H,W)):(_(x,4+(ie?1:0),3),function(L,re,me,Ce){var We;for(_(L,re-257,5),_(L,me-1,5),_(L,Ce-4,4),We=0;We<Ce;We++)_(L,L.bl_tree[2*Z[We]+1],3);z(L,L.dyn_ltree,re-1),z(L,L.dyn_dtree,me-1)}(x,x.l_desc.max_code+1,x.d_desc.max_code+1,te+1),a(x,x.dyn_ltree,x.dyn_dtree)),f(x),ie&&t(x)},Q._tr_tally=function(x,N,G){return x.pending_buf[x.d_buf+2*x.last_lit]=N>>>8&255,x.pending_buf[x.d_buf+2*x.last_lit+1]=255&N,x.pending_buf[x.l_buf+x.last_lit]=255&G,x.last_lit++,N===0?x.dyn_ltree[2*G]++:(x.matches++,N--,x.dyn_ltree[2*(U[G]+y+1)]++,x.dyn_dtree[2*b(N)]++),x.last_lit===x.lit_bufsize-1},Q._tr_align=function(x){_(x,2,3),g(x,256,H),function(N){N.bi_valid===16?(R(N,N.bi_buf),N.bi_buf=0,N.bi_valid=0):N.bi_valid>=8&&(N.pending_buf[N.pending++]=255&N.bi_buf,N.bi_buf>>=8,N.bi_valid-=8)}(x)}},249:function(Se){Se.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},9066:function(Se){Se.exports=function(Q){Q.data&&Q.name&&(Q=Q.data);for(var e=!0,D="",E="",y=0;y<Q.length;y++){var h=Q[y];if(e)h?E+=String.fromCharCode(h):e=!1;else{if(!h)throw new Error("Invalid NULL character found. 0x00 character is not permitted in tEXt content");D+=String.fromCharCode(h)}}return{keyword:E,text:D}}},9686:function(Se){Se.exports=function(Q,e){if(Q=String(Q),e=String(e),!/^[\x00-\xFF]+$/.test(Q)||!/^[\x00-\xFF]+$/.test(e))throw new Error("Only Latin-1 characters are permitted in PNG tEXt chunks. You might want to consider base64 encoding and/or zEXt compression");if(Q.length>=80)throw new Error('Keyword "'+Q+'" is longer than the 79-character limit imposed by the PNG specification');for(var D,E=Q.length+e.length+1,y=new Uint8Array(E),h=0,S=0;S<Q.length;S++){if(!(D=Q.charCodeAt(S)))throw new Error("0x00 character is not permitted in tEXt keywords");y[h++]=D}y[h++]=0;for(var I=0;I<e.length;I++){if(!(D=e.charCodeAt(I)))throw new Error("0x00 character is not permitted in tEXt content");y[h++]=D}return{name:"tEXt",data:y}}},1194:function(Se,Q,e){Q.encode=e(9686),Q.decode=e(9066)},3434:function(Se,Q,e){var D=e(5714),E=e(6233);Se.exports=function(I){var v,n=8,M=n;for(v=0;v<I.length;v++)n+=I[v].data.length,n+=12;var Z=new Uint8Array(n);for(Z[0]=137,Z[1]=80,Z[2]=78,Z[3]=71,Z[4]=13,Z[5]=10,Z[6]=26,Z[7]=10,v=0;v<I.length;v++){var H=I[v],W=H.name,u=H.data,U=u.length,le=[W.charCodeAt(0),W.charCodeAt(1),W.charCodeAt(2),W.charCodeAt(3)];S[0]=U,Z[M++]=y[3],Z[M++]=y[2],Z[M++]=y[1],Z[M++]=y[0],Z[M++]=le[0],Z[M++]=le[1],Z[M++]=le[2],Z[M++]=le[3];for(var de=0;de<U;)Z[M++]=u[de++];var he=le.concat(D(u)),pe=E.buf(he);h[0]=pe,Z[M++]=y[3],Z[M++]=y[2],Z[M++]=y[1],Z[M++]=y[0]}return Z};var y=new Uint8Array(4),h=new Int32Array(y.buffer),S=new Uint32Array(y.buffer)},2983:function(Se,Q,e){var D=e(6233);Se.exports=function(S){if(S[0]!==137)throw new Error("Invalid .png file header");if(S[1]!==80)throw new Error("Invalid .png file header");if(S[2]!==78)throw new Error("Invalid .png file header");if(S[3]!==71)throw new Error("Invalid .png file header");if(S[4]!==13)throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(S[5]!==10)throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(S[6]!==26)throw new Error("Invalid .png file header");if(S[7]!==10)throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");for(var I=!1,v=[],n=8;n<S.length;){E[3]=S[n++],E[2]=S[n++],E[1]=S[n++],E[0]=S[n++];var M=h[0]+4,Z=new Uint8Array(M);Z[0]=S[n++],Z[1]=S[n++],Z[2]=S[n++],Z[3]=S[n++];var H=String.fromCharCode(Z[0])+String.fromCharCode(Z[1])+String.fromCharCode(Z[2])+String.fromCharCode(Z[3]);if(!v.length&&H!=="IHDR")throw new Error("IHDR header missing");if(H==="IEND"){I=!0,v.push({name:H,data:new Uint8Array(0)});break}for(var W=4;W<M;W++)Z[W]=S[n++];E[3]=S[n++],E[2]=S[n++],E[1]=S[n++],E[0]=S[n++];var u=y[0];if(D.buf(Z)!==u)throw new Error("CRC values for "+H+" header do not match, PNG file is likely corrupted");var U=new Uint8Array(Z.buffer.slice(4));v.push({name:H,data:U})}if(!I)throw new Error(".png file ended prematurely: no IEND header was found");return v};var E=new Uint8Array(4),y=new Int32Array(E.buffer),h=new Uint32Array(E.buffer)},1493:function(Se,Q,e){function D(n,M){return Math.pow(n[0]-M[0],2)+Math.pow(n[1]-M[1],2)}function E(n,M,Z){const H=D(M,Z);if(H===0)return D(n,M);let W=((n[0]-M[0])*(Z[0]-M[0])+(n[1]-M[1])*(Z[1]-M[1]))/H;return W=Math.max(0,Math.min(1,W)),D(n,y(M,Z,W))}function y(n,M,Z){return[n[0]+(M[0]-n[0])*Z,n[1]+(M[1]-n[1])*Z]}function h(n,M,Z,H){const W=H||[];if(function(le,de){const he=le[de+0],pe=le[de+1],oe=le[de+2],P=le[de+3];let $=3*pe[0]-2*he[0]-P[0];$*=$;let b=3*pe[1]-2*he[1]-P[1];b*=b;let R=3*oe[0]-2*P[0]-he[0];R*=R;let _=3*oe[1]-2*P[1]-he[1];return _*=_,$<R&&($=R),b<_&&(b=_),$+b}(n,M)<Z){const le=n[M+0];W.length?(u=W[W.length-1],U=le,Math.sqrt(D(u,U))>1&&W.push(le)):W.push(le),W.push(n[M+3])}else{const de=n[M+0],he=n[M+1],pe=n[M+2],oe=n[M+3],P=y(de,he,.5),$=y(he,pe,.5),b=y(pe,oe,.5),R=y(P,$,.5),_=y($,b,.5),g=y(R,_,.5);h([de,P,R,g],0,Z,W),h([g,_,b,oe],0,Z,W)}var u,U;return W}function S(n,M){return I(n,0,n.length,M)}function I(n,M,Z,H,W){const u=W||[],U=n[M],le=n[Z-1];let de=0,he=1;for(let pe=M+1;pe<Z-1;++pe){const oe=E(n[pe],U,le);oe>de&&(de=oe,he=pe)}return Math.sqrt(de)>H?(I(n,M,he+1,H,u),I(n,he,Z,H,u)):(u.length||u.push(U),u.push(le)),u}function v(n,M=.15,Z){const H=[],W=(n.length-1)/3;for(let u=0;u<W;u++)h(n,3*u,M,H);return Z&&Z>0?I(H,0,H.length,Z):H}e.d(Q,{og:function(){return S},sU:function(){return v}})},8128:function(Se,Q,e){function D(q,o,i){if(q&&q.length){const[p,B]=o,A=Math.PI/180*i,X=Math.cos(A),Y=Math.sin(A);for(const ee of q){const[ge,be]=ee;ee[0]=(ge-p)*X-(be-B)*Y+p,ee[1]=(ge-p)*Y+(be-B)*X+B}}}function E(q,o){return q[0]===o[0]&&q[1]===o[1]}function y(q,o,i,p=1){const B=i,A=Math.max(o,.1),X=q[0]&&q[0][0]&&typeof q[0][0]=="number"?[q]:q,Y=[0,0];if(B)for(const ge of X)D(ge,Y,B);const ee=function(ge,be,Re){const Ze=[];for(const ue of ge){const ve=[...ue];E(ve[0],ve[ve.length-1])||ve.push([ve[0][0],ve[0][1]]),ve.length>2&&Ze.push(ve)}const Be=[];be=Math.max(be,.1);const Ie=[];for(const ue of Ze)for(let ve=0;ve<ue.length-1;ve++){const De=ue[ve],He=ue[ve+1];if(De[1]!==He[1]){const Je=Math.min(De[1],He[1]);Ie.push({ymin:Je,ymax:Math.max(De[1],He[1]),x:Je===De[1]?De[0]:He[0],islope:(He[0]-De[0])/(He[1]-De[1])})}}if(Ie.sort((ue,ve)=>ue.ymin<ve.ymin?-1:ue.ymin>ve.ymin?1:ue.x<ve.x?-1:ue.x>ve.x?1:ue.ymax===ve.ymax?0:(ue.ymax-ve.ymax)/Math.abs(ue.ymax-ve.ymax)),!Ie.length)return Be;let Ke=[],Ye=Ie[0].ymin,tt=0;for(;Ke.length||Ie.length;){if(Ie.length){let ue=-1;for(let ve=0;ve<Ie.length&&!(Ie[ve].ymin>Ye);ve++)ue=ve;Ie.splice(0,ue+1).forEach(ve=>{Ke.push({s:Ye,edge:ve})})}if(Ke=Ke.filter(ue=>!(ue.edge.ymax<=Ye)),Ke.sort((ue,ve)=>ue.edge.x===ve.edge.x?0:(ue.edge.x-ve.edge.x)/Math.abs(ue.edge.x-ve.edge.x)),(Re!==1||tt%be==0)&&Ke.length>1)for(let ue=0;ue<Ke.length;ue+=2){const ve=ue+1;if(ve>=Ke.length)break;const De=Ke[ue].edge,He=Ke[ve].edge;Be.push([[Math.round(De.x),Ye],[Math.round(He.x),Ye]])}Ye+=Re,Ke.forEach(ue=>{ue.edge.x=ue.edge.x+Re*ue.edge.islope}),tt++}return Be}(X,A,p);if(B){for(const ge of X)D(ge,Y,-B);(function(ge,be,Re){const Ze=[];ge.forEach(Be=>Ze.push(...Be)),D(Ze,be,Re)})(ee,Y,-B)}return ee}function h(q,o){var i;const p=o.hachureAngle+90;let B=o.hachureGap;B<0&&(B=4*o.strokeWidth),B=Math.max(B,.1);let A=1;return o.roughness>=1&&(((i=o.randomizer)===null||i===void 0?void 0:i.next())||Math.random())>.7&&(A=B),y(q,B,p,A||1)}e.d(Q,{V:function(){return ke}});class S{constructor(o){this.helper=o}fillPolygons(o,i){return this._fillPolygons(o,i)}_fillPolygons(o,i){const p=h(o,i);return{type:"fillSketch",ops:this.renderLines(p,i)}}renderLines(o,i){const p=[];for(const B of o)p.push(...this.helper.doubleLineOps(B[0][0],B[0][1],B[1][0],B[1][1],i));return p}}function I(q){const o=q[0],i=q[1];return Math.sqrt(Math.pow(o[0]-i[0],2)+Math.pow(o[1]-i[1],2))}class v extends S{fillPolygons(o,i){let p=i.hachureGap;p<0&&(p=4*i.strokeWidth),p=Math.max(p,.1);const B=h(o,Object.assign({},i,{hachureGap:p})),A=Math.PI/180*i.hachureAngle,X=[],Y=.5*p*Math.cos(A),ee=.5*p*Math.sin(A);for(const[ge,be]of B)I([ge,be])&&X.push([[ge[0]-Y,ge[1]+ee],[...be]],[[ge[0]+Y,ge[1]-ee],[...be]]);return{type:"fillSketch",ops:this.renderLines(X,i)}}}class n extends S{fillPolygons(o,i){const p=this._fillPolygons(o,i),B=Object.assign({},i,{hachureAngle:i.hachureAngle+90}),A=this._fillPolygons(o,B);return p.ops=p.ops.concat(A.ops),p}}class M{constructor(o){this.helper=o}fillPolygons(o,i){const p=h(o,i=Object.assign({},i,{hachureAngle:0}));return this.dotsOnLines(p,i)}dotsOnLines(o,i){const p=[];let B=i.hachureGap;B<0&&(B=4*i.strokeWidth),B=Math.max(B,.1);let A=i.fillWeight;A<0&&(A=i.strokeWidth/2);const X=B/4;for(const Y of o){const ee=I(Y),ge=ee/B,be=Math.ceil(ge)-1,Re=ee-be*B,Ze=(Y[0][0]+Y[1][0])/2-B/4,Be=Math.min(Y[0][1],Y[1][1]);for(let Ie=0;Ie<be;Ie++){const Ke=Be+Re+Ie*B,Ye=Ze-X+2*Math.random()*X,tt=Ke-X+2*Math.random()*X,ue=this.helper.ellipse(Ye,tt,A,A,i);p.push(...ue.ops)}}return{type:"fillSketch",ops:p}}}class Z{constructor(o){this.helper=o}fillPolygons(o,i){const p=h(o,i);return{type:"fillSketch",ops:this.dashedLine(p,i)}}dashedLine(o,i){const p=i.dashOffset<0?i.hachureGap<0?4*i.strokeWidth:i.hachureGap:i.dashOffset,B=i.dashGap<0?i.hachureGap<0?4*i.strokeWidth:i.hachureGap:i.dashGap,A=[];return o.forEach(X=>{const Y=I(X),ee=Math.floor(Y/(p+B)),ge=(Y+B-ee*(p+B))/2;let be=X[0],Re=X[1];be[0]>Re[0]&&(be=X[1],Re=X[0]);const Ze=Math.atan((Re[1]-be[1])/(Re[0]-be[0]));for(let Be=0;Be<ee;Be++){const Ie=Be*(p+B),Ke=Ie+p,Ye=[be[0]+Ie*Math.cos(Ze)+ge*Math.cos(Ze),be[1]+Ie*Math.sin(Ze)+ge*Math.sin(Ze)],tt=[be[0]+Ke*Math.cos(Ze)+ge*Math.cos(Ze),be[1]+Ke*Math.sin(Ze)+ge*Math.sin(Ze)];A.push(...this.helper.doubleLineOps(Ye[0],Ye[1],tt[0],tt[1],i))}}),A}}class H{constructor(o){this.helper=o}fillPolygons(o,i){const p=i.hachureGap<0?4*i.strokeWidth:i.hachureGap,B=i.zigzagOffset<0?p:i.zigzagOffset,A=h(o,i=Object.assign({},i,{hachureGap:p+B}));return{type:"fillSketch",ops:this.zigzagLines(A,B,i)}}zigzagLines(o,i,p){const B=[];return o.forEach(A=>{const X=I(A),Y=Math.round(X/(2*i));let ee=A[0],ge=A[1];ee[0]>ge[0]&&(ee=A[1],ge=A[0]);const be=Math.atan((ge[1]-ee[1])/(ge[0]-ee[0]));for(let Re=0;Re<Y;Re++){const Ze=2*Re*i,Be=2*(Re+1)*i,Ie=Math.sqrt(2*Math.pow(i,2)),Ke=[ee[0]+Ze*Math.cos(be),ee[1]+Ze*Math.sin(be)],Ye=[ee[0]+Be*Math.cos(be),ee[1]+Be*Math.sin(be)],tt=[Ke[0]+Ie*Math.cos(be+Math.PI/4),Ke[1]+Ie*Math.sin(be+Math.PI/4)];B.push(...this.helper.doubleLineOps(Ke[0],Ke[1],tt[0],tt[1],p),...this.helper.doubleLineOps(tt[0],tt[1],Ye[0],Ye[1],p))}}),B}}const W={};var u=e(8152);const U={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function le(q,o){return q.type===o}function de(q){const o=[],i=function(X){const Y=new Array;for(;X!=="";)if(X.match(/^([ \t\r\n,]+)/))X=X.substr(RegExp.$1.length);else if(X.match(/^([aAcChHlLmMqQsStTvVzZ])/))Y[Y.length]={type:0,text:RegExp.$1},X=X.substr(RegExp.$1.length);else{if(!X.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];Y[Y.length]={type:1,text:`${parseFloat(RegExp.$1)}`},X=X.substr(RegExp.$1.length)}return Y[Y.length]={type:2,text:""},Y}(q);let p="BOD",B=0,A=i[B];for(;!le(A,2);){let X=0;const Y=[];if(p==="BOD"){if(A.text!=="M"&&A.text!=="m")return de("M0,0"+q);B++,X=U[A.text],p=A.text}else le(A,1)?X=U[p]:(B++,X=U[A.text],p=A.text);if(!(B+X<i.length))throw new Error("Path data ended short");for(let ee=B;ee<B+X;ee++){const ge=i[ee];if(!le(ge,1))throw new Error("Param not a number: "+p+","+ge.text);Y[Y.length]=+ge.text}if(typeof U[p]!="number")throw new Error("Bad segment: "+p);{const ee={key:p,data:Y};o.push(ee),B+=X,A=i[B],p==="M"&&(p="L"),p==="m"&&(p="l")}}return o}function he(q){let o=0,i=0,p=0,B=0;const A=[];for(const{key:X,data:Y}of q)switch(X){case"M":A.push({key:"M",data:[...Y]}),[o,i]=Y,[p,B]=Y;break;case"m":o+=Y[0],i+=Y[1],A.push({key:"M",data:[o,i]}),p=o,B=i;break;case"L":A.push({key:"L",data:[...Y]}),[o,i]=Y;break;case"l":o+=Y[0],i+=Y[1],A.push({key:"L",data:[o,i]});break;case"C":A.push({key:"C",data:[...Y]}),o=Y[4],i=Y[5];break;case"c":{const ee=Y.map((ge,be)=>be%2?ge+i:ge+o);A.push({key:"C",data:ee}),o=ee[4],i=ee[5];break}case"Q":A.push({key:"Q",data:[...Y]}),o=Y[2],i=Y[3];break;case"q":{const ee=Y.map((ge,be)=>be%2?ge+i:ge+o);A.push({key:"Q",data:ee}),o=ee[2],i=ee[3];break}case"A":A.push({key:"A",data:[...Y]}),o=Y[5],i=Y[6];break;case"a":o+=Y[5],i+=Y[6],A.push({key:"A",data:[Y[0],Y[1],Y[2],Y[3],Y[4],o,i]});break;case"H":A.push({key:"H",data:[...Y]}),o=Y[0];break;case"h":o+=Y[0],A.push({key:"H",data:[o]});break;case"V":A.push({key:"V",data:[...Y]}),i=Y[0];break;case"v":i+=Y[0],A.push({key:"V",data:[i]});break;case"S":A.push({key:"S",data:[...Y]}),o=Y[2],i=Y[3];break;case"s":{const ee=Y.map((ge,be)=>be%2?ge+i:ge+o);A.push({key:"S",data:ee}),o=ee[2],i=ee[3];break}case"T":A.push({key:"T",data:[...Y]}),o=Y[0],i=Y[1];break;case"t":o+=Y[0],i+=Y[1],A.push({key:"T",data:[o,i]});break;case"Z":case"z":A.push({key:"Z",data:[]}),o=p,i=B}return A}function pe(q){const o=[];let i="",p=0,B=0,A=0,X=0,Y=0,ee=0;for(const{key:ge,data:be}of q){switch(ge){case"M":o.push({key:"M",data:[...be]}),[p,B]=be,[A,X]=be;break;case"C":o.push({key:"C",data:[...be]}),p=be[4],B=be[5],Y=be[2],ee=be[3];break;case"L":o.push({key:"L",data:[...be]}),[p,B]=be;break;case"H":p=be[0],o.push({key:"L",data:[p,B]});break;case"V":B=be[0],o.push({key:"L",data:[p,B]});break;case"S":{let Re=0,Ze=0;i==="C"||i==="S"?(Re=p+(p-Y),Ze=B+(B-ee)):(Re=p,Ze=B),o.push({key:"C",data:[Re,Ze,...be]}),Y=be[0],ee=be[1],p=be[2],B=be[3];break}case"T":{const[Re,Ze]=be;let Be=0,Ie=0;i==="Q"||i==="T"?(Be=p+(p-Y),Ie=B+(B-ee)):(Be=p,Ie=B);const Ke=p+2*(Be-p)/3,Ye=B+2*(Ie-B)/3,tt=Re+2*(Be-Re)/3,ue=Ze+2*(Ie-Ze)/3;o.push({key:"C",data:[Ke,Ye,tt,ue,Re,Ze]}),Y=Be,ee=Ie,p=Re,B=Ze;break}case"Q":{const[Re,Ze,Be,Ie]=be,Ke=p+2*(Re-p)/3,Ye=B+2*(Ze-B)/3,tt=Be+2*(Re-Be)/3,ue=Ie+2*(Ze-Ie)/3;o.push({key:"C",data:[Ke,Ye,tt,ue,Be,Ie]}),Y=Re,ee=Ze,p=Be,B=Ie;break}case"A":{const Re=Math.abs(be[0]),Ze=Math.abs(be[1]),Be=be[2],Ie=be[3],Ke=be[4],Ye=be[5],tt=be[6];Re===0||Ze===0?(o.push({key:"C",data:[p,B,Ye,tt,Ye,tt]}),p=Ye,B=tt):(p!==Ye||B!==tt)&&(P(p,B,Ye,tt,Re,Ze,Be,Ie,Ke).forEach(function(ue){o.push({key:"C",data:ue})}),p=Ye,B=tt);break}case"Z":o.push({key:"Z",data:[]}),p=A,B=X}i=ge}return o}function oe(q,o,i){return[q*Math.cos(i)-o*Math.sin(i),q*Math.sin(i)+o*Math.cos(i)]}function P(q,o,i,p,B,A,X,Y,ee,ge){const be=(Re=X,Math.PI*Re/180);var Re;let Ze=[],Be=0,Ie=0,Ke=0,Ye=0;if(ge)[Be,Ie,Ke,Ye]=ge;else{[q,o]=oe(q,o,-be),[i,p]=oe(i,p,-be);const St=(q-i)/2,yt=(o-p)/2;let Wt=St*St/(B*B)+yt*yt/(A*A);Wt>1&&(Wt=Math.sqrt(Wt),B*=Wt,A*=Wt);const Ft=B*B,Ve=A*A,bt=Ft*Ve-Ft*yt*yt-Ve*St*St,at=Ft*yt*yt+Ve*St*St,mt=(Y===ee?-1:1)*Math.sqrt(Math.abs(bt/at));Ke=mt*B*yt/A+(q+i)/2,Ye=mt*-A*St/B+(o+p)/2,Be=Math.asin(parseFloat(((o-Ye)/A).toFixed(9))),Ie=Math.asin(parseFloat(((p-Ye)/A).toFixed(9))),q<Ke&&(Be=Math.PI-Be),i<Ke&&(Ie=Math.PI-Ie),Be<0&&(Be=2*Math.PI+Be),Ie<0&&(Ie=2*Math.PI+Ie),ee&&Be>Ie&&(Be-=2*Math.PI),!ee&&Ie>Be&&(Ie-=2*Math.PI)}let tt=Ie-Be;if(Math.abs(tt)>120*Math.PI/180){const St=Ie,yt=i,Wt=p;Ie=ee&&Ie>Be?Be+120*Math.PI/180*1:Be+120*Math.PI/180*-1,Ze=P(i=Ke+B*Math.cos(Ie),p=Ye+A*Math.sin(Ie),yt,Wt,B,A,X,0,ee,[Ie,St,Ke,Ye])}tt=Ie-Be;const ue=Math.cos(Be),ve=Math.sin(Be),De=Math.cos(Ie),He=Math.sin(Ie),Je=Math.tan(tt/4),qe=4/3*B*Je,st=4/3*A*Je,ht=[q,o],et=[q+qe*ve,o-st*ue],wt=[i+qe*He,p-st*De],Lt=[i,p];if(et[0]=2*ht[0]-et[0],et[1]=2*ht[1]-et[1],ge)return[et,wt,Lt].concat(Ze);{Ze=[et,wt,Lt].concat(Ze);const St=[];for(let yt=0;yt<Ze.length;yt+=3){const Wt=oe(Ze[yt][0],Ze[yt][1],be),Ft=oe(Ze[yt+1][0],Ze[yt+1][1],be),Ve=oe(Ze[yt+2][0],Ze[yt+2][1],be);St.push([Wt[0],Wt[1],Ft[0],Ft[1],Ve[0],Ve[1]])}return St}}const $={randOffset:function(q,o){return m(q,o)},randOffsetWithRange:function(q,o,i){return c(q,o,i)},ellipse:function(q,o,i,p,B){const A=O(i,p,B);return s(q,o,B,A).opset},doubleLineOps:function(q,o,i,p,B){return z(q,o,i,p,B,!0)}};function b(q,o,i,p,B){return{type:"path",ops:z(q,o,i,p,B)}}function R(q,o,i){const p=(q||[]).length;if(p>2){const B=[];for(let A=0;A<p-1;A++)B.push(...z(q[A][0],q[A][1],q[A+1][0],q[A+1][1],i));return o&&B.push(...z(q[p-1][0],q[p-1][1],q[0][0],q[0][1],i)),{type:"path",ops:B}}return p===2?b(q[0][0],q[0][1],q[1][0],q[1][1],i):{type:"path",ops:[]}}function _(q,o,i,p,B){return function(A,X){return R(A,!0,X)}([[q,o],[q+i,o],[q+i,o+p],[q,o+p]],B)}function g(q,o){let i=k(q,1*(1+.2*o.roughness),o);if(!o.disableMultiStroke){const p=k(q,1.5*(1+.22*o.roughness),function(B){const A=Object.assign({},B);return A.randomizer=void 0,B.seed&&(A.seed=B.seed+1),A}(o));i=i.concat(p)}return{type:"path",ops:i}}function O(q,o,i){const p=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(q/2,2)+Math.pow(o/2,2))/2)),B=Math.ceil(Math.max(i.curveStepCount,i.curveStepCount/Math.sqrt(200)*p)),A=2*Math.PI/B;let X=Math.abs(q/2),Y=Math.abs(o/2);const ee=1-i.curveFitting;return X+=m(X*ee,i),Y+=m(Y*ee,i),{increment:A,rx:X,ry:Y}}function s(q,o,i,p){const[B,A]=N(p.increment,q,o,p.rx,p.ry,1,p.increment*c(.1,c(.4,1,i),i),i);let X=x(B,null,i);if(!i.disableMultiStroke&&i.roughness!==0){const[Y]=N(p.increment,q,o,p.rx,p.ry,1.5,0,i),ee=x(Y,null,i);X=X.concat(ee)}return{estimatedPoints:A,opset:{type:"path",ops:X}}}function f(q,o,i,p,B,A,X,Y,ee){const ge=q,be=o;let Re=Math.abs(i/2),Ze=Math.abs(p/2);Re+=m(.01*Re,ee),Ze+=m(.01*Ze,ee);let Be=B,Ie=A;for(;Be<0;)Be+=2*Math.PI,Ie+=2*Math.PI;Ie-Be>2*Math.PI&&(Be=0,Ie=2*Math.PI);const Ke=2*Math.PI/ee.curveStepCount,Ye=Math.min(Ke/2,(Ie-Be)/2),tt=G(Ye,ge,be,Re,Ze,Be,Ie,1,ee);if(!ee.disableMultiStroke){const ue=G(Ye,ge,be,Re,Ze,Be,Ie,1.5,ee);tt.push(...ue)}return X&&(Y?tt.push(...z(ge,be,ge+Re*Math.cos(Be),be+Ze*Math.sin(Be),ee),...z(ge,be,ge+Re*Math.cos(Ie),be+Ze*Math.sin(Ie),ee)):tt.push({op:"lineTo",data:[ge,be]},{op:"lineTo",data:[ge+Re*Math.cos(Be),be+Ze*Math.sin(Be)]})),{type:"path",ops:tt}}function t(q,o){const i=pe(he(de(q))),p=[];let B=[0,0],A=[0,0];for(const{key:X,data:Y}of i)switch(X){case"M":A=[Y[0],Y[1]],B=[Y[0],Y[1]];break;case"L":p.push(...z(A[0],A[1],Y[0],Y[1],o)),A=[Y[0],Y[1]];break;case"C":{const[ee,ge,be,Re,Ze,Be]=Y;p.push(...ie(ee,ge,be,Re,Ze,Be,A,o)),A=[Ze,Be];break}case"Z":p.push(...z(A[0],A[1],B[0],B[1],o)),A=[B[0],B[1]]}return{type:"path",ops:p}}function w(q,o){const i=[];for(const p of q)if(p.length){const B=o.maxRandomnessOffset||0,A=p.length;if(A>2){i.push({op:"move",data:[p[0][0]+m(B,o),p[0][1]+m(B,o)]});for(let X=1;X<A;X++)i.push({op:"lineTo",data:[p[X][0]+m(B,o),p[X][1]+m(B,o)]})}}return{type:"fillPath",ops:i}}function l(q,o){return function(i,p){let B=i.fillStyle||"hachure";if(!W[B])switch(B){case"zigzag":W[B]||(W[B]=new v(p));break;case"cross-hatch":W[B]||(W[B]=new n(p));break;case"dots":W[B]||(W[B]=new M(p));break;case"dashed":W[B]||(W[B]=new Z(p));break;case"zigzag-line":W[B]||(W[B]=new H(p));break;default:B="hachure",W[B]||(W[B]=new S(p))}return W[B]}(o,$).fillPolygons(q,o)}function a(q){return q.randomizer||(q.randomizer=new u.k(q.seed||0)),q.randomizer.next()}function c(q,o,i,p=1){return i.roughness*p*(a(i)*(o-q)+q)}function m(q,o,i=1){return c(-q,q,o,i)}function z(q,o,i,p,B,A=!1){const X=A?B.disableMultiStrokeFill:B.disableMultiStroke,Y=j(q,o,i,p,B,!0,!1);if(X)return Y;const ee=j(q,o,i,p,B,!0,!0);return Y.concat(ee)}function j(q,o,i,p,B,A,X){const Y=Math.pow(q-i,2)+Math.pow(o-p,2),ee=Math.sqrt(Y);let ge=1;ge=ee<200?1:ee>500?.4:-.0016668*ee+1.233334;let be=B.maxRandomnessOffset||0;be*be*100>Y&&(be=ee/10);const Re=be/2,Ze=.2+.2*a(B);let Be=B.bowing*B.maxRandomnessOffset*(p-o)/200,Ie=B.bowing*B.maxRandomnessOffset*(q-i)/200;Be=m(Be,B,ge),Ie=m(Ie,B,ge);const Ke=[],Ye=()=>m(Re,B,ge),tt=()=>m(be,B,ge),ue=B.preserveVertices;return A&&(X?Ke.push({op:"move",data:[q+(ue?0:Ye()),o+(ue?0:Ye())]}):Ke.push({op:"move",data:[q+(ue?0:m(be,B,ge)),o+(ue?0:m(be,B,ge))]})),X?Ke.push({op:"bcurveTo",data:[Be+q+(i-q)*Ze+Ye(),Ie+o+(p-o)*Ze+Ye(),Be+q+2*(i-q)*Ze+Ye(),Ie+o+2*(p-o)*Ze+Ye(),i+(ue?0:Ye()),p+(ue?0:Ye())]}):Ke.push({op:"bcurveTo",data:[Be+q+(i-q)*Ze+tt(),Ie+o+(p-o)*Ze+tt(),Be+q+2*(i-q)*Ze+tt(),Ie+o+2*(p-o)*Ze+tt(),i+(ue?0:tt()),p+(ue?0:tt())]}),Ke}function k(q,o,i){const p=[];p.push([q[0][0]+m(o,i),q[0][1]+m(o,i)]),p.push([q[0][0]+m(o,i),q[0][1]+m(o,i)]);for(let B=1;B<q.length;B++)p.push([q[B][0]+m(o,i),q[B][1]+m(o,i)]),B===q.length-1&&p.push([q[B][0]+m(o,i),q[B][1]+m(o,i)]);return x(p,null,i)}function x(q,o,i){const p=q.length,B=[];if(p>3){const A=[],X=1-i.curveTightness;B.push({op:"move",data:[q[1][0],q[1][1]]});for(let Y=1;Y+2<p;Y++){const ee=q[Y];A[0]=[ee[0],ee[1]],A[1]=[ee[0]+(X*q[Y+1][0]-X*q[Y-1][0])/6,ee[1]+(X*q[Y+1][1]-X*q[Y-1][1])/6],A[2]=[q[Y+1][0]+(X*q[Y][0]-X*q[Y+2][0])/6,q[Y+1][1]+(X*q[Y][1]-X*q[Y+2][1])/6],A[3]=[q[Y+1][0],q[Y+1][1]],B.push({op:"bcurveTo",data:[A[1][0],A[1][1],A[2][0],A[2][1],A[3][0],A[3][1]]})}if(o&&o.length===2){const Y=i.maxRandomnessOffset;B.push({op:"lineTo",data:[o[0]+m(Y,i),o[1]+m(Y,i)]})}}else p===3?(B.push({op:"move",data:[q[1][0],q[1][1]]}),B.push({op:"bcurveTo",data:[q[1][0],q[1][1],q[2][0],q[2][1],q[2][0],q[2][1]]})):p===2&&B.push(...z(q[0][0],q[0][1],q[1][0],q[1][1],i));return B}function N(q,o,i,p,B,A,X,Y){const ee=[],ge=[];if(Y.roughness===0){q/=4,ge.push([o+p*Math.cos(-q),i+B*Math.sin(-q)]);for(let be=0;be<=2*Math.PI;be+=q){const Re=[o+p*Math.cos(be),i+B*Math.sin(be)];ee.push(Re),ge.push(Re)}ge.push([o+p*Math.cos(0),i+B*Math.sin(0)]),ge.push([o+p*Math.cos(q),i+B*Math.sin(q)])}else{const be=m(.5,Y)-Math.PI/2;ge.push([m(A,Y)+o+.9*p*Math.cos(be-q),m(A,Y)+i+.9*B*Math.sin(be-q)]);const Re=2*Math.PI+be-.01;for(let Ze=be;Ze<Re;Ze+=q){const Be=[m(A,Y)+o+p*Math.cos(Ze),m(A,Y)+i+B*Math.sin(Ze)];ee.push(Be),ge.push(Be)}ge.push([m(A,Y)+o+p*Math.cos(be+2*Math.PI+.5*X),m(A,Y)+i+B*Math.sin(be+2*Math.PI+.5*X)]),ge.push([m(A,Y)+o+.98*p*Math.cos(be+X),m(A,Y)+i+.98*B*Math.sin(be+X)]),ge.push([m(A,Y)+o+.9*p*Math.cos(be+.5*X),m(A,Y)+i+.9*B*Math.sin(be+.5*X)])}return[ge,ee]}function G(q,o,i,p,B,A,X,Y,ee){const ge=A+m(.1,ee),be=[];be.push([m(Y,ee)+o+.9*p*Math.cos(ge-q),m(Y,ee)+i+.9*B*Math.sin(ge-q)]);for(let Re=ge;Re<=X;Re+=q)be.push([m(Y,ee)+o+p*Math.cos(Re),m(Y,ee)+i+B*Math.sin(Re)]);return be.push([o+p*Math.cos(X),i+B*Math.sin(X)]),be.push([o+p*Math.cos(X),i+B*Math.sin(X)]),x(be,null,ee)}function ie(q,o,i,p,B,A,X,Y){const ee=[],ge=[Y.maxRandomnessOffset||1,(Y.maxRandomnessOffset||1)+.3];let be=[0,0];const Re=Y.disableMultiStroke?1:2,Ze=Y.preserveVertices;for(let Be=0;Be<Re;Be++)Be===0?ee.push({op:"move",data:[X[0],X[1]]}):ee.push({op:"move",data:[X[0]+(Ze?0:m(ge[0],Y)),X[1]+(Ze?0:m(ge[0],Y))]}),be=Ze?[B,A]:[B+m(ge[Be],Y),A+m(ge[Be],Y)],ee.push({op:"bcurveTo",data:[q+m(ge[Be],Y),o+m(ge[Be],Y),i+m(ge[Be],Y),p+m(ge[Be],Y),be[0],be[1]]});return ee}function V(q){return[...q]}function ce(q,o){return Math.pow(q[0]-o[0],2)+Math.pow(q[1]-o[1],2)}function te(q,o,i){const p=ce(o,i);if(p===0)return ce(q,o);let B=((q[0]-o[0])*(i[0]-o[0])+(q[1]-o[1])*(i[1]-o[1]))/p;return B=Math.max(0,Math.min(1,B)),ce(q,L(o,i,B))}function L(q,o,i){return[q[0]+(o[0]-q[0])*i,q[1]+(o[1]-q[1])*i]}function re(q,o,i,p){const B=p||[];if(function(Y,ee){const ge=Y[ee+0],be=Y[ee+1],Re=Y[ee+2],Ze=Y[ee+3];let Be=3*be[0]-2*ge[0]-Ze[0];Be*=Be;let Ie=3*be[1]-2*ge[1]-Ze[1];Ie*=Ie;let Ke=3*Re[0]-2*Ze[0]-ge[0];Ke*=Ke;let Ye=3*Re[1]-2*Ze[1]-ge[1];return Ye*=Ye,Be<Ke&&(Be=Ke),Ie<Ye&&(Ie=Ye),Be+Ie}(q,o)<i){const Y=q[o+0];B.length?(A=B[B.length-1],X=Y,Math.sqrt(ce(A,X))>1&&B.push(Y)):B.push(Y),B.push(q[o+3])}else{const ee=q[o+0],ge=q[o+1],be=q[o+2],Re=q[o+3],Ze=L(ee,ge,.5),Be=L(ge,be,.5),Ie=L(be,Re,.5),Ke=L(Ze,Be,.5),Ye=L(Be,Ie,.5),tt=L(Ke,Ye,.5);re([ee,Ze,Ke,tt],0,i,B),re([tt,Ye,Ie,Re],0,i,B)}var A,X;return B}function me(q,o,i,p,B){const A=B||[],X=q[o],Y=q[i-1];let ee=0,ge=1;for(let be=o+1;be<i-1;++be){const Re=te(q[be],X,Y);Re>ee&&(ee=Re,ge=be)}return Math.sqrt(ee)>p?(me(q,o,ge+1,p,A),me(q,ge,i,p,A)):(A.length||A.push(X),A.push(Y)),A}function Ce(q,o){return Math.pow(q[0]-o[0],2)+Math.pow(q[1]-o[1],2)}function We(q,o,i){const p=Ce(o,i);if(p===0)return Ce(q,o);let B=((q[0]-o[0])*(i[0]-o[0])+(q[1]-o[1])*(i[1]-o[1]))/p;return B=Math.max(0,Math.min(1,B)),Ce(q,Te(o,i,B))}function Te(q,o,i){return[q[0]+(o[0]-q[0])*i,q[1]+(o[1]-q[1])*i]}function we(q,o,i,p){const B=p||[];if(function(Y,ee){const ge=Y[ee+0],be=Y[ee+1],Re=Y[ee+2],Ze=Y[ee+3];let Be=3*be[0]-2*ge[0]-Ze[0];Be*=Be;let Ie=3*be[1]-2*ge[1]-Ze[1];Ie*=Ie;let Ke=3*Re[0]-2*Ze[0]-ge[0];Ke*=Ke;let Ye=3*Re[1]-2*Ze[1]-ge[1];return Ye*=Ye,Be<Ke&&(Be=Ke),Ie<Ye&&(Ie=Ye),Be+Ie}(q,o)<i){const Y=q[o+0];B.length?(A=B[B.length-1],X=Y,Math.sqrt(Ce(A,X))>1&&B.push(Y)):B.push(Y),B.push(q[o+3])}else{const ee=q[o+0],ge=q[o+1],be=q[o+2],Re=q[o+3],Ze=Te(ee,ge,.5),Be=Te(ge,be,.5),Ie=Te(be,Re,.5),Ke=Te(Ze,Be,.5),Ye=Te(Be,Ie,.5),tt=Te(Ke,Ye,.5);we([ee,Ze,Ke,tt],0,i,B),we([tt,Ye,Ie,Re],0,i,B)}var A,X;return B}function xe(q,o){return _e(q,0,q.length,o)}function _e(q,o,i,p,B){const A=B||[],X=q[o],Y=q[i-1];let ee=0,ge=1;for(let be=o+1;be<i-1;++be){const Re=We(q[be],X,Y);Re>ee&&(ee=Re,ge=be)}return Math.sqrt(ee)>p?(_e(q,o,ge+1,p,A),_e(q,ge,i,p,A)):(A.length||A.push(X),A.push(Y)),A}function Oe(q,o,i){const p=pe(he(de(q))),B=[];let A=[],X=[0,0],Y=[];const ee=()=>{Y.length>=4&&A.push(...function(Re,Ze=.15,Be){const Ie=[],Ke=(Re.length-1)/3;for(let Ye=0;Ye<Ke;Ye++)we(Re,3*Ye,Ze,Ie);return Be&&Be>0?_e(Ie,0,Ie.length,Be):Ie}(Y,o)),Y=[]},ge=()=>{ee(),A.length&&(B.push(A),A=[])};for(const{key:Re,data:Ze}of p)switch(Re){case"M":ge(),X=[Ze[0],Ze[1]],A.push(X);break;case"L":ee(),A.push([Ze[0],Ze[1]]);break;case"C":if(!Y.length){const Be=A.length?A[A.length-1]:X;Y.push([Be[0],Be[1]])}Y.push([Ze[0],Ze[1]]),Y.push([Ze[2],Ze[3]]),Y.push([Ze[4],Ze[5]]);break;case"Z":ee(),A.push([X[0],X[1]])}if(ge(),!i)return B;const be=[];for(const Re of B){const Ze=xe(Re,i);Ze.length&&be.push(Ze)}return be}const J="none";class ke{constructor(o){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=o||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return(0,u.W)()}_o(o){return o?Object.assign({},this.defaultOptions,o):this.defaultOptions}_d(o,i,p){return{shape:o,sets:i||[],options:p||this.defaultOptions}}line(o,i,p,B,A){const X=this._o(A);return this._d("line",[b(o,i,p,B,X)],X)}rectangle(o,i,p,B,A){const X=this._o(A),Y=[],ee=_(o,i,p,B,X);if(X.fill){const ge=[[o,i],[o+p,i],[o+p,i+B],[o,i+B]];X.fillStyle==="solid"?Y.push(w([ge],X)):Y.push(l([ge],X))}return X.stroke!==J&&Y.push(ee),this._d("rectangle",Y,X)}ellipse(o,i,p,B,A){const X=this._o(A),Y=[],ee=O(p,B,X),ge=s(o,i,X,ee);if(X.fill)if(X.fillStyle==="solid"){const be=s(o,i,X,ee).opset;be.type="fillPath",Y.push(be)}else Y.push(l([ge.estimatedPoints],X));return X.stroke!==J&&Y.push(ge.opset),this._d("ellipse",Y,X)}circle(o,i,p,B){const A=this.ellipse(o,i,p,p,B);return A.shape="circle",A}linearPath(o,i){const p=this._o(i);return this._d("linearPath",[R(o,!1,p)],p)}arc(o,i,p,B,A,X,Y=!1,ee){const ge=this._o(ee),be=[],Re=f(o,i,p,B,A,X,Y,!0,ge);if(Y&&ge.fill)if(ge.fillStyle==="solid"){const Ze=Object.assign({},ge);Ze.disableMultiStroke=!0;const Be=f(o,i,p,B,A,X,!0,!1,Ze);Be.type="fillPath",be.push(Be)}else be.push(function(Ze,Be,Ie,Ke,Ye,tt,ue){const ve=Ze,De=Be;let He=Math.abs(Ie/2),Je=Math.abs(Ke/2);He+=m(.01*He,ue),Je+=m(.01*Je,ue);let qe=Ye,st=tt;for(;qe<0;)qe+=2*Math.PI,st+=2*Math.PI;st-qe>2*Math.PI&&(qe=0,st=2*Math.PI);const ht=(st-qe)/ue.curveStepCount,et=[];for(let wt=qe;wt<=st;wt+=ht)et.push([ve+He*Math.cos(wt),De+Je*Math.sin(wt)]);return et.push([ve+He*Math.cos(st),De+Je*Math.sin(st)]),et.push([ve,De]),l([et],ue)}(o,i,p,B,A,X,ge));return ge.stroke!==J&&be.push(Re),this._d("arc",be,ge)}curve(o,i){const p=this._o(i),B=[],A=g(o,p);if(p.fill&&p.fill!==J&&o.length>=3)if(p.fillStyle==="solid"){const X=g(o,Object.assign(Object.assign({},p),{disableMultiStroke:!0,roughness:p.roughness?p.roughness+p.fillShapeRoughnessGain:0}));B.push({type:"fillPath",ops:this._mergedShape(X.ops)})}else{const X=function(ee,ge=0){const be=ee.length;if(be<3)throw new Error("A curve must have at least three points.");const Re=[];if(be===3)Re.push(V(ee[0]),V(ee[1]),V(ee[2]),V(ee[2]));else{const Ze=[];Ze.push(ee[0],ee[0]);for(let Ke=1;Ke<ee.length;Ke++)Ze.push(ee[Ke]),Ke===ee.length-1&&Ze.push(ee[Ke]);const Be=[],Ie=1-ge;Re.push(V(Ze[0]));for(let Ke=1;Ke+2<Ze.length;Ke++){const Ye=Ze[Ke];Be[0]=[Ye[0],Ye[1]],Be[1]=[Ye[0]+(Ie*Ze[Ke+1][0]-Ie*Ze[Ke-1][0])/6,Ye[1]+(Ie*Ze[Ke+1][1]-Ie*Ze[Ke-1][1])/6],Be[2]=[Ze[Ke+1][0]+(Ie*Ze[Ke][0]-Ie*Ze[Ke+2][0])/6,Ze[Ke+1][1]+(Ie*Ze[Ke][1]-Ie*Ze[Ke+2][1])/6],Be[3]=[Ze[Ke+1][0],Ze[Ke+1][1]],Re.push(Be[1],Be[2],Be[3])}}return Re}(o),Y=function(ee,ge=.15,be){const Re=[],Ze=(ee.length-1)/3;for(let Be=0;Be<Ze;Be++)re(ee,3*Be,ge,Re);return be&&be>0?me(Re,0,Re.length,be):Re}(X,10,(1+p.roughness)/2);B.push(l([Y],p))}return p.stroke!==J&&B.push(A),this._d("curve",B,p)}polygon(o,i){const p=this._o(i),B=[],A=R(o,!0,p);return p.fill&&(p.fillStyle==="solid"?B.push(w([o],p)):B.push(l([o],p))),p.stroke!==J&&B.push(A),this._d("polygon",B,p)}path(o,i){const p=this._o(i),B=[];if(!o)return this._d("path",B,p);o=(o||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const A=p.fill&&p.fill!=="transparent"&&p.fill!==J,X=p.stroke!==J,Y=!!(p.simplification&&p.simplification<1),ee=Oe(o,1,Y?4-4*(p.simplification||1):(1+p.roughness)/2),ge=t(o,p);if(A)if(p.fillStyle==="solid")if(ee.length===1){const be=t(o,Object.assign(Object.assign({},p),{disableMultiStroke:!0,roughness:p.roughness?p.roughness+p.fillShapeRoughnessGain:0}));B.push({type:"fillPath",ops:this._mergedShape(be.ops)})}else B.push(w(ee,p));else B.push(l(ee,p));return X&&(Y?ee.forEach(be=>{B.push(R(be,!1,p))}):B.push(ge)),this._d("path",B,p)}opsToPath(o,i){let p="";for(const B of o.ops){const A=typeof i=="number"&&i>=0?B.data.map(X=>+X.toFixed(i)):B.data;switch(B.op){case"move":p+=`M${A[0]} ${A[1]} `;break;case"bcurveTo":p+=`C${A[0]} ${A[1]}, ${A[2]} ${A[3]}, ${A[4]} ${A[5]} `;break;case"lineTo":p+=`L${A[0]} ${A[1]} `}}return p.trim()}toPaths(o){const i=o.sets||[],p=o.options||this.defaultOptions,B=[];for(const A of i){let X=null;switch(A.type){case"path":X={d:this.opsToPath(A),stroke:p.stroke,strokeWidth:p.strokeWidth,fill:J};break;case"fillPath":X={d:this.opsToPath(A),stroke:J,strokeWidth:0,fill:p.fill||J};break;case"fillSketch":X=this.fillSketch(A,p)}X&&B.push(X)}return B}fillSketch(o,i){let p=i.fillWeight;return p<0&&(p=i.strokeWidth/2),{d:this.opsToPath(o),stroke:i.fill||J,strokeWidth:p,fill:J}}_mergedShape(o){return o.filter((i,p)=>p===0||i.op!=="move")}}},8152:function(Se,Q,e){function D(){return Math.floor(Math.random()*2147483648)}e.d(Q,{W:function(){return D},k:function(){return E}});class E{constructor(h){this.seed=h}next(){return this.seed?(2147483647&(this.seed=Math.imul(48271,this.seed)))/2147483648:Math.random()}}},9845:function(Se,Q,e){e.d(Q,{Z:function(){return S}});var D=e(8128);class E{constructor(v,n){this.canvas=v,this.ctx=this.canvas.getContext("2d"),this.gen=new D.V(n)}draw(v){const n=v.sets||[],M=v.options||this.getDefaultOptions(),Z=this.ctx,H=v.options.fixedDecimalPlaceDigits;for(const W of n)switch(W.type){case"path":Z.save(),Z.strokeStyle=M.stroke==="none"?"transparent":M.stroke,Z.lineWidth=M.strokeWidth,M.strokeLineDash&&Z.setLineDash(M.strokeLineDash),M.strokeLineDashOffset&&(Z.lineDashOffset=M.strokeLineDashOffset),this._drawToContext(Z,W,H),Z.restore();break;case"fillPath":{Z.save(),Z.fillStyle=M.fill||"";const u=v.shape==="curve"||v.shape==="polygon"||v.shape==="path"?"evenodd":"nonzero";this._drawToContext(Z,W,H,u),Z.restore();break}case"fillSketch":this.fillSketch(Z,W,M)}}fillSketch(v,n,M){let Z=M.fillWeight;Z<0&&(Z=M.strokeWidth/2),v.save(),M.fillLineDash&&v.setLineDash(M.fillLineDash),M.fillLineDashOffset&&(v.lineDashOffset=M.fillLineDashOffset),v.strokeStyle=M.fill||"",v.lineWidth=Z,this._drawToContext(v,n,M.fixedDecimalPlaceDigits),v.restore()}_drawToContext(v,n,M,Z="nonzero"){v.beginPath();for(const H of n.ops){const W=typeof M=="number"&&M>=0?H.data.map(u=>+u.toFixed(M)):H.data;switch(H.op){case"move":v.moveTo(W[0],W[1]);break;case"bcurveTo":v.bezierCurveTo(W[0],W[1],W[2],W[3],W[4],W[5]);break;case"lineTo":v.lineTo(W[0],W[1])}}n.type==="fillPath"?v.fill(Z):v.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(v,n,M,Z,H){const W=this.gen.line(v,n,M,Z,H);return this.draw(W),W}rectangle(v,n,M,Z,H){const W=this.gen.rectangle(v,n,M,Z,H);return this.draw(W),W}ellipse(v,n,M,Z,H){const W=this.gen.ellipse(v,n,M,Z,H);return this.draw(W),W}circle(v,n,M,Z){const H=this.gen.circle(v,n,M,Z);return this.draw(H),H}linearPath(v,n){const M=this.gen.linearPath(v,n);return this.draw(M),M}polygon(v,n){const M=this.gen.polygon(v,n);return this.draw(M),M}arc(v,n,M,Z,H,W,u=!1,U){const le=this.gen.arc(v,n,M,Z,H,W,u,U);return this.draw(le),le}curve(v,n){const M=this.gen.curve(v,n);return this.draw(M),M}path(v,n){const M=this.gen.path(v,n);return this.draw(M),M}}const y="http://www.w3.org/2000/svg";class h{constructor(v,n){this.svg=v,this.gen=new D.V(n)}draw(v){const n=v.sets||[],M=v.options||this.getDefaultOptions(),Z=this.svg.ownerDocument||window.document,H=Z.createElementNS(y,"g"),W=v.options.fixedDecimalPlaceDigits;for(const u of n){let U=null;switch(u.type){case"path":U=Z.createElementNS(y,"path"),U.setAttribute("d",this.opsToPath(u,W)),U.setAttribute("stroke",M.stroke),U.setAttribute("stroke-width",M.strokeWidth+""),U.setAttribute("fill","none"),M.strokeLineDash&&U.setAttribute("stroke-dasharray",M.strokeLineDash.join(" ").trim()),M.strokeLineDashOffset&&U.setAttribute("stroke-dashoffset",`${M.strokeLineDashOffset}`);break;case"fillPath":U=Z.createElementNS(y,"path"),U.setAttribute("d",this.opsToPath(u,W)),U.setAttribute("stroke","none"),U.setAttribute("stroke-width","0"),U.setAttribute("fill",M.fill||""),v.shape!=="curve"&&v.shape!=="polygon"||U.setAttribute("fill-rule","evenodd");break;case"fillSketch":U=this.fillSketch(Z,u,M)}U&&H.appendChild(U)}return H}fillSketch(v,n,M){let Z=M.fillWeight;Z<0&&(Z=M.strokeWidth/2);const H=v.createElementNS(y,"path");return H.setAttribute("d",this.opsToPath(n,M.fixedDecimalPlaceDigits)),H.setAttribute("stroke",M.fill||""),H.setAttribute("stroke-width",Z+""),H.setAttribute("fill","none"),M.fillLineDash&&H.setAttribute("stroke-dasharray",M.fillLineDash.join(" ").trim()),M.fillLineDashOffset&&H.setAttribute("stroke-dashoffset",`${M.fillLineDashOffset}`),H}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(v,n){return this.gen.opsToPath(v,n)}line(v,n,M,Z,H){const W=this.gen.line(v,n,M,Z,H);return this.draw(W)}rectangle(v,n,M,Z,H){const W=this.gen.rectangle(v,n,M,Z,H);return this.draw(W)}ellipse(v,n,M,Z,H){const W=this.gen.ellipse(v,n,M,Z,H);return this.draw(W)}circle(v,n,M,Z){const H=this.gen.circle(v,n,M,Z);return this.draw(H)}linearPath(v,n){const M=this.gen.linearPath(v,n);return this.draw(M)}polygon(v,n){const M=this.gen.polygon(v,n);return this.draw(M)}arc(v,n,M,Z,H,W,u=!1,U){const le=this.gen.arc(v,n,M,Z,H,W,u,U);return this.draw(le)}curve(v,n){const M=this.gen.curve(v,n);return this.draw(M)}path(v,n){const M=this.gen.path(v,n);return this.draw(M)}}var S={canvas:(I,v)=>new E(I,v),svg:(I,v)=>new h(I,v),generator:I=>new D.V(I),newSeed:()=>D.V.newSeed()}},5714:function(Se){Se.exports=function(Q,e,D){var E=[],y=Q.length;if(y===0)return E;var h=e<0?Math.max(0,e+y):e||0;for(D!==void 0&&(y=D<0?D+y:D);y-- >h;)E[y-h]=Q[y];return E}},2173:function(Se,Q,e){var D=e(9787),E=typeof Object.is=="function"?Object.is:function(M,Z){return M===Z&&(M!==0||1/M==1/Z)||M!=M&&Z!=Z},y=D.useState,h=D.useEffect,S=D.useLayoutEffect,I=D.useDebugValue;function v(M){var Z=M.getSnapshot;M=M.value;try{var H=Z();return!E(M,H)}catch{return!0}}var n=typeof window>"u"||window.document===void 0||window.document.createElement===void 0?function(M,Z){return Z()}:function(M,Z){var H=Z(),W=y({inst:{value:H,getSnapshot:Z}}),u=W[0].inst,U=W[1];return S(function(){u.value=H,u.getSnapshot=Z,v(u)&&U({inst:u})},[M,H,Z]),h(function(){return v(u)&&U({inst:u}),M(function(){v(u)&&U({inst:u})})},[M]),I(H),H};Q.useSyncExternalStore=D.useSyncExternalStore!==void 0?D.useSyncExternalStore:n},5917:function(Se,Q,e){var D=e(9787),E=e(1374),y=typeof Object.is=="function"?Object.is:function(M,Z){return M===Z&&(M!==0||1/M==1/Z)||M!=M&&Z!=Z},h=E.useSyncExternalStore,S=D.useRef,I=D.useEffect,v=D.useMemo,n=D.useDebugValue;Q.useSyncExternalStoreWithSelector=function(M,Z,H,W,u){var U=S(null);if(U.current===null){var le={hasValue:!1,value:null};U.current=le}else le=U.current;U=v(function(){function he(b){if(!P){if(P=!0,pe=b,b=W(b),u!==void 0&&le.hasValue){var R=le.value;if(u(R,b))return oe=R}return oe=b}if(R=oe,y(pe,b))return R;var _=W(b);return u!==void 0&&u(R,_)?R:(pe=b,oe=_)}var pe,oe,P=!1,$=H===void 0?null:H;return[function(){return he(Z())},$===null?void 0:function(){return he($())}]},[Z,H,W,u]);var de=h(M,U[0],U[1]);return I(function(){le.hasValue=!0,le.value=de},[de]),n(de),de}},1374:function(Se,Q,e){Se.exports=e(2173)},5668:function(Se,Q,e){Se.exports=e(5917)},940:function(Se,Q,e){var D={"./ar-SA.json":[7822,2091],"./az-AZ.json":[9753,4568],"./bg-BG.json":[1203,1628],"./bn-BD.json":[8525,7429],"./ca-ES.json":[510,5130],"./cs-CZ.json":[7605,6265],"./da-DK.json":[2392,1790],"./de-DE.json":[2853,3082],"./el-GR.json":[9876,1513],"./en.json":[1463],"./es-ES.json":[2264,8759],"./eu-ES.json":[5658,8081],"./fa-IR.json":[3747,5330],"./fi-FI.json":[9490,3512],"./fr-FR.json":[7830,3682],"./gl-ES.json":[5199,2943],"./he-IL.json":[1994,2312],"./hi-IN.json":[4646,9828],"./hu-HU.json":[6373,7368],"./id-ID.json":[3247,3808],"./it-IT.json":[3257,6239],"./ja-JP.json":[198,1204],"./kaa.json":[7941,663],"./kab-KAB.json":[228,9551],"./kk-KZ.json":[8972,22],"./km-KH.json":[5845,6566],"./ko-KR.json":[7596,6844],"./ku-TR.json":[2508,3031],"./lt-LT.json":[3755,8340],"./lv-LV.json":[2327,6768],"./mr-IN.json":[5297,3397],"./my-MM.json":[7704,1477],"./nb-NO.json":[1167,2359],"./nl-NL.json":[290,3024],"./nn-NO.json":[4481,3885],"./oc-FR.json":[2284,1690],"./pa-IN.json":[6773,3162],"./percentages.json":[4451],"./pl-PL.json":[3661,3674],"./pt-BR.json":[8881,3721],"./pt-PT.json":[125,5395],"./ro-RO.json":[2013,5089],"./ru-RU.json":[2253,8124],"./si-LK.json":[5497,1302],"./sk-SK.json":[4570,8750],"./sl-SI.json":[1984,6071],"./sv-SE.json":[976,8534],"./ta-IN.json":[3952,2404],"./th-TH.json":[2596,537],"./tr-TR.json":[7315,4977],"./uk-UA.json":[3458,7759],"./vi-VN.json":[456,4e3],"./zh-CN.json":[1037,4680],"./zh-HK.json":[5334,7920],"./zh-TW.json":[931,3421]};function E(y){if(!e.o(D,y))return Promise.resolve().then(function(){var I=new Error("Cannot find module '"+y+"'");throw I.code="MODULE_NOT_FOUND",I});var h=D[y],S=h[0];return Promise.all(h.slice(1).map(e.e)).then(function(){return e.t(S,19)})}E.keys=function(){return Object.keys(D)},E.id=940,Se.exports=E},9713:function(Se){Se.exports=function(Q,e,D){return e in Q?Object.defineProperty(Q,e,{value:D,enumerable:!0,configurable:!0,writable:!0}):Q[e]=D,Q}},6479:function(Se,Q,e){var D=e(7316);Se.exports=function(E,y){if(E==null)return{};var h,S,I=D(E,y);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(E);for(S=0;S<v.length;S++)h=v[S],y.indexOf(h)>=0||Object.prototype.propertyIsEnumerable.call(E,h)&&(I[h]=E[h])}return I}},7316:function(Se){Se.exports=function(Q,e){if(Q==null)return{};var D,E,y={},h=Object.keys(Q);for(E=0;E<h.length;E++)D=h[E],e.indexOf(D)>=0||(y[D]=Q[D]);return y}},4295:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y),S=e(1667),I=e.n(S),v=new URL(e(3940),e.b),n=new URL(e(3147),e.b),M=new URL(e(8303),e.b),Z=new URL(e(1273),e.b),H=new URL(e(9577),e.b),W=new URL(e(9729),e.b),u=h()(E()),U=I()(v),le=I()(n),de=I()(M),he=I()(Z),pe=I()(H),oe=I()(W);u.push([Se.id,'@font-face{font-family:"Virgil";src:url('+U+');font-display:swap}@font-face{font-family:"Cascadia";src:url('+le+');font-display:swap}@font-face{font-family:"Assistant";src:url('+de+');font-display:swap;font-weight:400}@font-face{font-family:"Assistant";src:url('+he+');font-display:swap;font-weight:500}@font-face{font-family:"Assistant";src:url('+pe+');font-display:swap;font-weight:600}@font-face{font-family:"Assistant";src:url('+oe+");font-display:swap;font-weight:700}",""]),Q.Z=u},6086:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".zoom-actions,.undo-redo-buttons{background-color:var(--island-bg-color);border-radius:var(--border-radius-lg);box-shadow:0 0 0 1px var(--color-surface-lowest)}.zoom-button,.undo-redo-buttons button{border-radius:0 !important;background-color:var(--color-surface-low) !important;font-size:.875rem !important;width:var(--lg-button-size);height:var(--lg-button-size)}.zoom-button svg,.undo-redo-buttons button svg{width:var(--lg-icon-size) !important;height:var(--lg-icon-size) !important}.zoom-button .ToolIcon__icon,.undo-redo-buttons button .ToolIcon__icon{width:100%;height:100%}.reset-zoom-button{border-left:0 !important;border-right:0 !important;padding:0 .625rem !important;width:3.75rem !important;justify-content:center;color:var(--text-primary-color)}.zoom-out-button{border-top-left-radius:var(--border-radius-lg) !important;border-bottom-left-radius:var(--border-radius-lg) !important}:root[dir=rtl] .zoom-out-button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.zoom-out-button .ToolIcon__icon{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.zoom-in-button{border-top-right-radius:var(--border-radius-lg) !important;border-bottom-right-radius:var(--border-radius-lg) !important}:root[dir=rtl] .zoom-in-button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.zoom-in-button .ToolIcon__icon{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}.undo-redo-buttons .undo-button-container button{border-top-left-radius:var(--border-radius-lg) !important;border-bottom-left-radius:var(--border-radius-lg) !important;border-right:0 !important}:root[dir=rtl] .undo-redo-buttons .undo-button-container button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.undo-redo-buttons .undo-button-container button .ToolIcon__icon{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.undo-redo-buttons .redo-button-container button{border-top-right-radius:var(--border-radius-lg) !important;border-bottom-right-radius:var(--border-radius-lg) !important}:root[dir=rtl] .undo-redo-buttons .redo-button-container button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.undo-redo-buttons .redo-button-container button .ToolIcon__icon{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}",""]),Q.Z=h},3729:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Avatar{width:1.25rem;height:1.25rem;position:relative;border-radius:100%;outline-offset:2px;display:flex;justify-content:center;align-items:center;cursor:pointer;font-size:.75rem;font-weight:800;line-height:1}.excalidraw .Avatar-img{width:100%;height:100%;border-radius:100%}.excalidraw .Avatar::before{content:"";position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;border:1px solid var(--avatar-border-color);border-radius:100%}',""]),Q.Z=h},3137:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y),S=e(1667),I=e.n(S),v=new URL(e(7984),e.b),n=new URL(e(1639),e.b),M=h()(E()),Z=I()(v),H=I()(n);M.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--theme-filter: none;--button-destructive-bg-color: #ffe3e3;--button-destructive-color: #c92a2a;--button-gray-1: #e9ecef;--button-gray-2: #ced4da;--button-gray-3: #adb5bd;--button-special-active-bg-color: #ebfbee;--dialog-border-color: var(--color-gray-20);--dropdown-icon: url("+Z+");--focus-highlight-color: #a5d8ff;--icon-fill-color: var(--color-on-surface);--icon-green-fill-color: #2b8a3e;--default-bg-color: #ffffff;--input-bg-color: #ffffff;--input-border-color: #ced4da;--input-hover-bg-color: #f1f3f5;--input-label-color: #495057;--island-bg-color: #ffffff;--keybinding-color: var(--color-gray-40);--link-color: #1c7ed6;--overlay-bg-color: rgba(255, 255, 255, 0.88);--popup-bg-color: var(--island-bg-color);--popup-secondary-bg-color: #f1f3f5;--popup-text-color: #000000;--popup-text-inverted-color: #ffffff;--select-highlight-color: #339af0;--shadow-island: 0px 0px 0.9310142993927002px 0px rgba(0, 0, 0, 0.17), 0px 0px 3.1270833015441895px 0px rgba(0, 0, 0, 0.08), 0px 7px 14px 0px rgba(0, 0, 0, 0.05);--button-hover-bg: var(--color-surface-high);--button-active-bg: var(--color-surface-high);--button-active-border: var(--color-brand-active);--default-border-color: var(--color-surface-high);--default-button-size: 2rem;--default-icon-size: 1rem;--lg-button-size: 2.25rem;--lg-icon-size: 1rem;--editor-container-padding: 1rem;--scrollbar-thumb: var(--button-gray-2);--scrollbar-thumb-hover: var(--button-gray-3);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-20);--sidebar-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--sidebar-border-color: var(--color-surface-high);--sidebar-bg-color: var(--island-bg-color);--library-dropdown-shadow: 0px 15px 6px rgba(0, 0, 0, 0.01), 0px 8px 5px rgba(0, 0, 0, 0.05), 0px 4px 4px rgba(0, 0, 0, 0.09), 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1);--space-factor: 0.25rem;--text-primary-color: var(--color-on-surface);--color-selection: #6965db;--color-icon-white: #ffffff;--color-primary: #6965db;--color-primary-darker: #5b57d1;--color-primary-darkest: #4a47b1;--color-primary-light: #e3e2fe;--color-primary-light-darker: #d7d5ff;--color-gray-10: #f5f5f5;--color-gray-20: #ebebeb;--color-gray-30: #d6d6d6;--color-gray-40: #b8b8b8;--color-gray-50: #999999;--color-gray-60: #7a7a7a;--color-gray-70: #5c5c5c;--color-gray-80: #3d3d3d;--color-gray-85: #242424;--color-gray-90: #1e1e1e;--color-gray-100: #121212;--color-warning: #fceeca;--color-warning-dark: #f5c354;--color-warning-darker: #f3ab2c;--color-warning-darkest: #ec8b14;--color-text-warning: var(--text-primary-color);--color-danger: #db6965;--color-danger-dark: #db6965;--color-danger-darker: #d65550;--color-danger-darkest: #d1413c;--color-danger-text: black;--color-danger-background: #fff0f0;--color-danger-icon-background: #ffdad6;--color-danger-color: #700000;--color-danger-icon-color: #700000;--color-warning-background: var(--color-warning);--color-warning-icon-background: var(--color-warning-dark);--color-warning-color: var(--text-primary-color);--color-warning-icon-color: var(--text-primary-color);--color-muted: var(--color-gray-30);--color-muted-darker: var(--color-gray-60);--color-muted-darkest: var(--color-gray-100);--color-muted-background: var(--color-gray-80);--color-muted-background-darker: var(--color-gray-100);--color-promo: #e70078;--color-success: #268029;--color-success-lighter: #cafccc;--color-logo-icon: var(--color-primary);--color-logo-text: #190064;--border-radius-md: 0.375rem;--border-radius-lg: 0.5rem;--color-surface-high: hsl(244, 100%, 97%);--color-surface-mid: hsl(240 25% 96%);--color-surface-low: hsl(240 25% 94%);--color-surface-lowest: #ffffff;--color-on-surface: #1b1b1f;--color-brand-hover: #5753d0;--color-on-primary-container: #030064;--color-surface-primary-container: #e0dfff;--color-brand-active: #4440bf;--color-border-outline: #767680;--color-border-outline-variant: #c5c5d0;--color-surface-primary-container: #e0dfff}@media screen and (min-device-width: 1921px){.excalidraw{--lg-button-size: 2.5rem;--lg-icon-size: 1.25rem;--default-button-size: 2.25rem;--default-icon-size: 1.25rem}}.excalidraw.theme--dark.theme--dark-background-none{background:none}.excalidraw.theme--dark{--theme-filter: invert(93%) hue-rotate(180deg);--button-destructive-bg-color: #5a0000;--button-destructive-color: #ffa8a8;--button-gray-1: #363636;--button-gray-2: #272727;--button-gray-3: #222;--button-special-active-bg-color: #204624;--dialog-border-color: var(--color-gray-80);--dropdown-icon: url("+H+");--focus-highlight-color: #228be6;--icon-green-fill-color: #69db7c;--default-bg-color: #121212;--input-bg-color: #121212;--input-border-color: #2e2e2e;--input-hover-bg-color: #181818;--input-label-color: #e9ecef;--island-bg-color: #232329;--keybinding-color: var(--color-gray-60);--link-color: #4dabf7;--overlay-bg-color: rgba(52, 58, 64, 0.12);--popup-secondary-bg-color: #222;--popup-text-color: #ced4da;--popup-text-inverted-color: #2c2c2c;--select-highlight-color: #4dabf7;--shadow-island: 0px 0px 0.9310142993927002px 0px rgba(0, 0, 0, 0.17), 0px 0px 3.1270833015441895px 0px rgba(0, 0, 0, 0.08), 0px 7px 14px 0px rgba(0, 0, 0, 0.05);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-85);--scrollbar-thumb: #343a40;--scrollbar-thumb-hover: #495057;--color-selection: #3530c4;--color-icon-white: var(--color-gray-90);--color-primary: #a8a5ff;--color-primary-darker: #b2aeff;--color-primary-darkest: #beb9ff;--color-primary-light: #4f4d6f;--color-primary-light-darker: #43415e;--color-text-warning: var(--color-gray-80);--color-danger: #ffa8a5;--color-danger-dark: #672120;--color-danger-darker: #8f2625;--color-danger-darkest: #ac2b29;--color-danger-text: #fbcbcc;--color-danger-background: #fbcbcc;--color-danger-icon-background: #672120;--color-danger-color: #261919;--color-danger-icon-color: #fbcbcc;--color-warning-background: var(--color-warning);--color-warning-icon-background: var(--color-warning-dark);--color-warning-color: var(--color-gray-80);--color-warning-icon-color: var(--color-gray-80);--color-muted: var(--color-gray-80);--color-muted-darker: var(--color-gray-60);--color-muted-darkest: var(--color-gray-20);--color-muted-background: var(--color-gray-40);--color-muted-background-darker: var(--color-gray-20);--color-promo: #d297ff;--color-logo-text: #e2dfff;--color-surface-high: hsl(245, 10%, 21%);--color-surface-low: hsl(240, 8%, 15%);--color-surface-mid: hsl(240 6% 10%);--color-surface-lowest: hsl(0, 0%, 7%);--color-on-surface: #e3e3e8;--color-brand-hover: #bbb8ff;--color-on-primary-container: #e0dfff;--color-surface-primary-container: #403e6a;--color-brand-active: #d0ccff;--color-border-outline: #8e8d9c;--color-border-outline-variant: #46464f;--color-surface-primary-container: #403e6a}.excalidraw .excalidraw-button{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface))}.excalidraw .excalidraw-button svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .excalidraw-button:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .excalidraw-button:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .excalidraw-button.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .excalidraw-button.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .excalidraw-button.active svg{color:var(--button-color, var(--color-on-primary-container))}",""]),Q.Z=M},4241:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Card{display:flex;flex-direction:column;align-items:center;max-width:290px;margin:1em;text-align:center}.excalidraw .Card .Card-icon{font-size:2.6em;display:flex;flex:0 0 auto;padding:1.4rem;border-radius:50%;background:var(--card-color);color:#fff}.excalidraw .Card .Card-icon svg{width:2.8rem;height:2.8rem}.excalidraw .Card .Card-details{font-size:.96em;min-height:90px;padding:0 1em;margin-bottom:auto}.excalidraw .Card .Card-button.ToolIcon_type_button{height:2.5rem;margin-top:1em;margin-bottom:.3em;background-color:var(--card-color)}.excalidraw .Card .Card-button.ToolIcon_type_button:hover{background-color:var(--card-color-darker)}.excalidraw .Card .Card-button.ToolIcon_type_button:active{background-color:var(--card-color-darkest)}.excalidraw .Card .Card-button.ToolIcon_type_button .ToolIcon__label{color:#fff}.excalidraw .Card .Card-button.ToolIcon_type_button .Spinner{--spinner-color: #fff}",""]),Q.Z=h},6029:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Checkbox{margin:4px .3em;display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.excalidraw .Checkbox:hover:not(.is-checked) .Checkbox-box:not(:focus){box-shadow:0 0 0 2px #4dabf7}.excalidraw .Checkbox:hover:not(.is-checked) .Checkbox-box:not(:focus) svg{display:block;opacity:.3}.excalidraw .Checkbox:active .Checkbox-box{box-shadow:0 0 2px 1px inset #1c7ed6 !important}.excalidraw .Checkbox:hover .Checkbox-box{background-color:rgba(208,235,255,.2)}.excalidraw .Checkbox.is-checked .Checkbox-box{background-color:#d0ebff}.excalidraw .Checkbox.is-checked .Checkbox-box svg{display:block}.excalidraw .Checkbox.is-checked:hover .Checkbox-box{background-color:#a5d8ff}.excalidraw .Checkbox .Checkbox-box{width:22px;height:22px;padding:0;flex:0 0 auto;margin:0 1em;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px #1c7ed6;background-color:rgba(0,0,0,0);border-radius:4px;color:#1c7ed6;border:0}.excalidraw .Checkbox .Checkbox-box:focus{box-shadow:0 0 0 3px #1c7ed6}.excalidraw .Checkbox .Checkbox-box svg{display:none;width:16px;height:16px;stroke-width:3px}.excalidraw .Checkbox .Checkbox-label{display:flex;align-items:center}.excalidraw .Checkbox .excalidraw-tooltip-icon{width:1em;height:1em}",""]),Q.Z=h},4269:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y),S=e(1667),I=e.n(S),v=new URL(e(9669),e.b),n=h()(E()),M=I()(v);n.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .focus-visible-none:focus-visible{outline:none !important}.excalidraw .color-picker__heading{padding:0 .5rem;font-size:.75rem;text-align:left}.excalidraw .color-picker-container{display:grid;grid-template-columns:1fr 20px 1.625rem;padding:.25rem 0px;align-items:center}.excalidraw--mobile.excalidraw .color-picker-container{max-width:175px}.excalidraw .color-picker__top-picks{display:flex;justify-content:space-between}.excalidraw .color-picker__button{--radius: 0.25rem;padding:0;margin:0;width:1.35rem;height:1.35rem;border:1px solid var(--color-gray-30);border-radius:var(--radius);-webkit-filter:var(--theme-filter);filter:var(--theme-filter);background-color:var(--swatch-color);background-position:left center;position:relative;font-family:inherit;box-sizing:border-box}.excalidraw .color-picker__button:hover::after{content:"";position:absolute;top:-2px;left:-2px;right:-2px;bottom:-2px;box-shadow:0 0 0 1px var(--color-gray-30);border-radius:calc(var(--radius) + 1px);-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .color-picker__button.active .color-picker__button-outline{position:absolute;top:-2px;left:-2px;right:-2px;bottom:-2px;box-shadow:0 0 0 1px var(--color-primary-darkest);z-index:1;border-radius:calc(var(--radius) + 1px);-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .color-picker__button:focus-visible{outline:none}.excalidraw .color-picker__button:focus-visible::after{content:"";position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border:3px solid var(--focus-highlight-color);border-radius:calc(var(--radius) + 1px)}.excalidraw .color-picker__button:focus-visible.active .color-picker__button-outline{display:none}.excalidraw .color-picker__button--large{--radius: 0.5rem;width:1.875rem;height:1.875rem}.excalidraw .color-picker__button.is-transparent{background-image:url('+M+")}.excalidraw .color-picker__button--no-focus-visible{border:0}.excalidraw .color-picker__button--no-focus-visible::after{display:none}.excalidraw .color-picker__button--no-focus-visible:focus-visible{outline:none !important}.excalidraw .color-picker__button.active-color{border-radius:calc(var(--radius) + 1px);width:1.625rem;height:1.625rem}.excalidraw .color-picker__button__hotkey-label{position:absolute;right:4px;bottom:4px;-webkit-filter:none;filter:none;font-size:11px}.excalidraw .color-picker{background:var(--popup-bg-color);border:0 solid rgba(255,255,255,.25);box-shadow:rgba(0,0,0,.25) 0 1px 4px;border-radius:4px;position:absolute}:root[dir=ltr] .excalidraw .color-picker{left:-5.5px}:root[dir=rtl] .excalidraw .color-picker{right:-5.5px}.excalidraw .color-picker-control-container{display:grid;grid-template-columns:auto 1fr;align-items:center;-webkit-column-gap:.5rem;column-gap:.5rem}.excalidraw .color-picker-control-container+.popover{position:static}.excalidraw .color-picker-popover-container{margin-top:-0.25rem}:root[dir=ltr] .excalidraw .color-picker-popover-container{margin-left:.5rem}:root[dir=rtl] .excalidraw .color-picker-popover-container{margin-left:-3rem}.excalidraw .color-picker-triangle{width:0;height:0;border-style:solid;border-width:0 9px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) var(--popup-bg-color);position:absolute;top:10px}:root[dir=ltr] .excalidraw .color-picker-triangle{-webkit-transform:rotate(270deg);transform:rotate(270deg);left:-14px}:root[dir=rtl] .excalidraw .color-picker-triangle{-webkit-transform:rotate(90deg);transform:rotate(90deg);right:-14px}.excalidraw .color-picker-triangle-shadow{border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,.1)}:root[dir=ltr] .excalidraw .color-picker-triangle-shadow{left:-14px}:root[dir=rtl] .excalidraw .color-picker-triangle-shadow{right:-16px}.excalidraw .color-picker-content{display:flex;flex-direction:column;gap:.75rem;outline:none}.excalidraw .color-picker-content--default{padding:.5rem;display:grid;grid-template-columns:repeat(5, 1.875rem);grid-gap:.25rem;border-radius:4px}.excalidraw .color-picker-content--default:focus{outline:none;box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .color-picker-content--canvas{display:flex;flex-direction:column;padding:.25rem}.excalidraw .color-picker-content--canvas-title{color:#868e96;font-size:12px;padding:0 .25rem}.excalidraw .color-picker-content--canvas-colors{padding:.5rem 0}.excalidraw .color-picker-content--canvas-colors .color-picker-swatch{margin:0 .25rem}.excalidraw .color-picker-content .color-input-container{grid-column:1/span 5}.excalidraw .color-picker-swatch{position:relative;height:1.875rem;width:1.875rem;cursor:pointer;border-radius:4px;margin:0;box-sizing:border-box;border:1px solid #ddd;background-color:currentColor !important;-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .color-picker-swatch:focus{box-shadow:0 0 4px 1px currentColor;border-color:var(--select-highlight-color)}.excalidraw .color-picker-transparent{border-radius:4px;box-shadow:rgba(0,0,0,.1) 0 0 0 1px inset;position:absolute;top:0;right:0;bottom:0;left:0}.excalidraw .color-picker-transparent,.excalidraw .color-picker-label-swatch{background:url("+M+') left center}.excalidraw .color-picker-hash{height:var(--default-button-size);flex-shrink:0;padding:.5rem .5rem .5rem .75rem;border:1px solid var(--default-border-color);border-right:0;box-sizing:border-box;color:var(--input-label-color);display:flex;align-items:center;justify-content:center;position:relative}:root[dir=ltr] .excalidraw .color-picker-hash{border-radius:var(--border-radius-lg) 0 0 var(--border-radius-lg)}:root[dir=rtl] .excalidraw .color-picker-hash{border-radius:0 var(--border-radius-lg) var(--border-radius-lg) 0;border-right:1px solid var(--default-border-color);border-left:0}.excalidraw .color-input-container{display:flex}.excalidraw .color-input-container:focus-within{box-shadow:0 0 0 1px var(--color-primary-darkest);border-radius:var(--border-radius-lg)}.excalidraw .color-picker__input-label{display:grid;grid-template-columns:auto 1fr auto auto;gap:8px;align-items:center;border:1px solid var(--default-border-color);border-radius:8px;padding:0 12px;margin:8px;box-sizing:border-box}.excalidraw .color-picker__input-label:focus-within{box-shadow:0 0 0 1px var(--color-primary-darkest);border-radius:var(--border-radius-lg)}.excalidraw .color-picker__input-hash{padding:0 .25rem}.excalidraw .color-picker-input{box-sizing:border-box;width:100%;margin:0;font-size:.875rem;font-family:inherit;background-color:rgba(0,0,0,0);color:var(--text-primary-color);border:0;outline:none;height:var(--default-button-size);border:1px solid var(--default-border-color);border-left:0;letter-spacing:.4px;padding:.5rem;padding-left:.25rem;-webkit-appearance:none;appearance:none}:root[dir=ltr] .excalidraw .color-picker-input{border-radius:0 var(--border-radius-lg) var(--border-radius-lg) 0}:root[dir=rtl] .excalidraw .color-picker-input{border-radius:var(--border-radius-lg) 0 0 var(--border-radius-lg);border-left:1px solid var(--default-border-color);border-right:0}.excalidraw .color-picker-input:focus-visible{box-shadow:none}.excalidraw .color-picker-label-swatch-container{border:1px solid var(--default-border-color);border-radius:var(--border-radius-lg);width:var(--default-button-size);height:var(--default-button-size);box-sizing:border-box;overflow:hidden}.excalidraw .color-picker-label-swatch{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));background-color:var(--swatch-color) !important;overflow:hidden;position:relative;-webkit-filter:var(--theme-filter);filter:var(--theme-filter);border:0 !important}.excalidraw .color-picker-label-swatch svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .color-picker-label-swatch:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .color-picker-label-swatch:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .color-picker-label-swatch.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .color-picker-label-swatch.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .color-picker-label-swatch.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw .color-picker-label-swatch:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--swatch-color)}.excalidraw .color-picker-keybinding{position:absolute;bottom:2px;font-size:.7em}:root[dir=ltr] .excalidraw .color-picker-keybinding{right:2px}:root[dir=rtl] .excalidraw .color-picker-keybinding{left:2px}.excalidraw--mobile.excalidraw .color-picker-keybinding{display:none}.excalidraw .color-picker-type-canvasBackground .color-picker-keybinding{color:#aaa}.excalidraw .color-picker-type-elementBackground .color-picker-keybinding{color:#fff}.excalidraw .color-picker-swatch[aria-label=transparent] .color-picker-keybinding{color:#aaa}.excalidraw .color-picker-type-elementStroke .color-picker-keybinding{color:#d4d4d4}.excalidraw.theme--dark .color-picker-type-elementBackground .color-picker-keybinding{color:#000}.excalidraw.theme--dark .color-picker-swatch[aria-label=transparent] .color-picker-keybinding{color:#000}',""]),Q.Z=n},9393:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .confirm-dialog-buttons{display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;justify-content:flex-end}",""]),Q.Z=h},6578:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .context-menu{position:relative;border-radius:4px;box-shadow:0 3px 10px rgba(0,0,0,.2);padding:0;list-style:none;-webkit-user-select:none;user-select:none;margin:-0.25rem 0 0 .125rem;padding:.5rem 0;background-color:var(--popup-secondary-bg-color);border:1px solid var(--button-gray-3);cursor:default}.excalidraw .context-menu button{color:var(--popup-text-color)}.excalidraw .context-menu-item{position:relative;width:100%;min-width:9.5rem;margin:0;padding:.25rem 1rem .25rem 1.25rem;text-align:start;border-radius:0;background-color:rgba(0,0,0,0);border:none;white-space:nowrap;font-family:inherit;display:grid;grid-template-columns:1fr .2fr;align-items:center}.excalidraw .context-menu-item.checkmark::before{position:absolute;left:6px;margin-bottom:1px;content:"✓"}.excalidraw .context-menu-item.dangerous .context-menu-item__label{color:#f03e3e}.excalidraw .context-menu-item .context-menu-item__label{justify-self:start;-webkit-margin-end:20px;margin-inline-end:20px}.excalidraw .context-menu-item .context-menu-item__shortcut{justify-self:end;opacity:.6;font-family:inherit;font-size:.7rem}.excalidraw .context-menu-item:hover{color:var(--popup-bg-color);background-color:var(--select-highlight-color)}.excalidraw .context-menu-item:hover.dangerous{background-color:#fa5252}.excalidraw .context-menu-item:hover.dangerous .context-menu-item__label{color:var(--popup-bg-color)}.excalidraw .context-menu-item:focus{z-index:1}.excalidraw--mobile.excalidraw .context-menu-item{display:block}.excalidraw--mobile.excalidraw .context-menu-item .context-menu-item__label{-webkit-margin-end:0;margin-inline-end:0}.excalidraw--mobile.excalidraw .context-menu-item .context-menu-item__shortcut{display:none}.excalidraw .context-menu-item-separator{border:none;border-top:1px solid #adb5bd}',""]),Q.Z=h},9482:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Dialog{-webkit-user-select:text;user-select:text;cursor:auto}.excalidraw .Dialog__title{margin:0;text-align:left;font-size:1.25rem;border-bottom:1px solid var(--dialog-border-color);padding:0 0 .75rem;margin-bottom:1.5rem}.excalidraw .Dialog__close{color:var(--color-gray-40);margin:0;position:absolute;top:.75rem;right:.5rem;border:0;background-color:rgba(0,0,0,0);line-height:0;cursor:pointer}.excalidraw .Dialog__close:hover{color:var(--color-gray-60)}.excalidraw .Dialog__close:active{color:var(--color-gray-40)}.excalidraw .Dialog__close svg{width:1.5rem;height:1.5rem}.excalidraw .Dialog--fullscreen .Dialog__close{top:1.25rem;right:1.25rem}",""]),Q.Z=h},6148:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .Dialog__action-button{position:relative;display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;align-items:center;padding:.5rem 1.5rem;border:1px solid var(--default-border-color);background-color:rgba(0,0,0,0);height:3rem;border-radius:var(--border-radius-lg);letter-spacing:.4px;color:inherit;font-family:inherit;font-size:.875rem;font-weight:600;-webkit-user-select:none;user-select:none}.excalidraw .Dialog__action-button svg{display:block;width:1rem;height:1rem}.excalidraw .Dialog__action-button--danger{background-color:var(--color-danger);border-color:var(--color-danger);color:#fff}.excalidraw .Dialog__action-button--primary{background-color:var(--color-primary);border-color:var(--color-primary);color:#fff}.excalidraw.theme--dark .Dialog__action-button--danger{color:var(--color-gray-100)}.excalidraw.theme--dark .Dialog__action-button--primary{color:var(--color-gray-100)}",""]),Q.Z=h},5744:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .ExcalidrawLogo{--logo-icon--xs: 2rem;--logo-text--xs: 1.5rem;--logo-icon--small: 2.5rem;--logo-text--small: 1.75rem;--logo-icon--normal: 3rem;--logo-text--normal: 2.2rem;--logo-icon--large: 90px;--logo-text--large: 65px;display:flex;align-items:center}.excalidraw .ExcalidrawLogo svg{flex:0 0 auto}.excalidraw .ExcalidrawLogo .ExcalidrawLogo-icon{width:auto;color:var(--color-logo-icon)}.excalidraw .ExcalidrawLogo .ExcalidrawLogo-text{margin-left:.75rem;width:auto;color:var(--color-logo-text)}.excalidraw .ExcalidrawLogo.is-xs .ExcalidrawLogo-icon{height:var(--logo-icon--xs)}.excalidraw .ExcalidrawLogo.is-xs .ExcalidrawLogo-text{height:var(--logo-text--xs)}.excalidraw .ExcalidrawLogo.is-small .ExcalidrawLogo-icon{height:var(--logo-icon--small)}.excalidraw .ExcalidrawLogo.is-small .ExcalidrawLogo-text{height:var(--logo-text--small)}.excalidraw .ExcalidrawLogo.is-normal .ExcalidrawLogo-icon{height:var(--logo-icon--normal)}.excalidraw .ExcalidrawLogo.is-normal .ExcalidrawLogo-text{height:var(--logo-text--normal)}.excalidraw .ExcalidrawLogo.is-large .ExcalidrawLogo-icon{height:var(--logo-icon--large)}.excalidraw .ExcalidrawLogo.is-large .ExcalidrawLogo-text{height:var(--logo-text--large)}",""]),Q.Z=h},7955:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y),S=e(1667),I=e.n(S),v=new URL(e(9669),e.b),n=h()(E()),M=I()(v);n.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .ExportDialog__preview{--preview-padding: calc(var(--space-factor) * 4);background:url("+M+") left center;text-align:center;padding:var(--preview-padding);margin-bottom:calc(var(--space-factor)*3);display:flex;justify-content:center;align-items:center}.excalidraw .ExportDialog__preview canvas{max-width:calc(100% - var(--preview-padding)*2);max-height:25rem}.excalidraw.theme--dark .ExportDialog__preview canvas{-webkit-filter:none;filter:none}.excalidraw .ExportDialog__actions{width:100%;display:flex;grid-gap:calc(var(--space-factor)*2);align-items:top;justify-content:space-between}.excalidraw--mobile.excalidraw .ExportDialog{display:flex;flex-direction:column}.excalidraw--mobile.excalidraw .ExportDialog__actions{flex-direction:column;align-items:center}.excalidraw--mobile.excalidraw .ExportDialog__actions>*{margin-bottom:calc(var(--space-factor)*3)}.excalidraw--mobile.excalidraw .ExportDialog__preview canvas{max-height:30vh}.excalidraw--mobile.excalidraw .ExportDialog__dialog,.excalidraw--mobile.excalidraw .ExportDialog__dialog .Island{height:100%;box-sizing:border-box}.excalidraw--mobile.excalidraw .ExportDialog__dialog .Island{overflow-y:auto}.excalidraw .ExportDialog--json .ExportDialog-cards{display:grid;grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));justify-items:center;row-gap:2em}@media(max-width: 460px){.excalidraw .ExportDialog--json .ExportDialog-cards{grid-template-columns:repeat(auto-fit, minmax(240px, 1fr))}.excalidraw .ExportDialog--json .ExportDialog-cards .Card-details{min-height:40px}}.excalidraw .ExportDialog--json .ExportDialog-cards .ProjectName{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:1em auto;align-items:flex-start;flex-direction:column}.excalidraw .ExportDialog--json .ExportDialog-cards .ProjectName .TextInput{width:auto}.excalidraw .ExportDialog--json .ExportDialog-cards .ProjectName-label{margin:.625em 0;font-weight:bold}.excalidraw button.ExportDialog-imageExportButton{border:0;width:5rem;height:5rem;margin:0 .2em;padding:0;display:flex;align-items:center;justify-content:center;border-radius:1rem;background-color:var(--button-color);box-shadow:0 3px 5px -1px rgba(0,0,0,.28),0 6px 10px 0 rgba(0,0,0,.14);font-family:Cascadia;font-size:1.8em;color:#fff}.excalidraw button.ExportDialog-imageExportButton:hover{background-color:var(--button-color-darker)}.excalidraw button.ExportDialog-imageExportButton:active{background-color:var(--button-color-darkest);box-shadow:none}.excalidraw button.ExportDialog-imageExportButton svg{width:.9em}",""]),Q.Z=n},7522:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .excalidraw-eye-dropper-container,.excalidraw .excalidraw-eye-dropper-backdrop{position:absolute;width:100%;height:100%;z-index:var(--zIndex-eyeDropperBackdrop);touch-action:none}.excalidraw .excalidraw-eye-dropper-container{pointer-events:none}.excalidraw .excalidraw-eye-dropper-backdrop{pointer-events:all}.excalidraw .excalidraw-eye-dropper-preview{pointer-events:none;width:3rem;height:3rem;position:fixed;z-index:var(--zIndex-eyeDropperPreview);border-radius:1rem;border:1px solid var(--default-border-color);-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .excalidraw-eye-dropper-trigger{width:1.25rem;height:1.25rem;cursor:pointer;padding:4px;margin-right:-4px;margin-left:-2px;border-radius:.5rem;color:var(--icon-fill-color)}.excalidraw .excalidraw-eye-dropper-trigger:hover{background:var(--button-hover-bg)}.excalidraw .excalidraw-eye-dropper-trigger.selected{color:var(--color-primary);background:var(--color-primary-light)}",""]),Q.Z=h},8960:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .ExcButton{--text-color: transparent;--border-color: transparent;--back-color: transparent;color:var(--text-color);background-color:var(--back-color);border-color:var(--border-color);display:flex;justify-content:center;align-items:center;flex-shrink:0;flex-wrap:nowrap;border-radius:.5rem;border-width:1px;border-style:solid;font-family:"Assistant";-webkit-user-select:none;user-select:none;transition:all 150ms ease-out}.excalidraw .ExcButton--color-primary.ExcButton--variant-filled{--text-color: var(--color-surface-lowest);--back-color: var(--color-primary)}.excalidraw .ExcButton--color-primary.ExcButton--variant-filled:hover{--back-color: var(--color-brand-hover)}.excalidraw .ExcButton--color-primary.ExcButton--variant-filled:active{--back-color: var(--color-brand-active)}.excalidraw .ExcButton--color-primary.ExcButton--variant-outlined,.excalidraw .ExcButton--color-primary.ExcButton--variant-icon{--text-color: var(--color-primary);--border-color: var(--color-border-outline);--back-color: transparent}.excalidraw .ExcButton--color-primary.ExcButton--variant-outlined:hover,.excalidraw .ExcButton--color-primary.ExcButton--variant-icon:hover{--text-color: var(--color-brand-hover);--border-color: var(--color-brand-hover)}.excalidraw .ExcButton--color-primary.ExcButton--variant-outlined:active,.excalidraw .ExcButton--color-primary.ExcButton--variant-icon:active{--text-color: var(--color-brand-active);--border-color: var(--color-brand-active)}.excalidraw .ExcButton--color-danger.ExcButton--variant-filled{--text-color: var(--color-danger-text);--back-color: var(--color-danger-dark)}.excalidraw .ExcButton--color-danger.ExcButton--variant-filled:hover{--back-color: var(--color-danger-darker)}.excalidraw .ExcButton--color-danger.ExcButton--variant-filled:active{--back-color: var(--color-danger-darkest)}.excalidraw .ExcButton--color-danger.ExcButton--variant-outlined,.excalidraw .ExcButton--color-danger.ExcButton--variant-icon{--text-color: var(--color-danger);--border-color: var(--color-danger);--back-color: transparent}.excalidraw .ExcButton--color-danger.ExcButton--variant-outlined:hover,.excalidraw .ExcButton--color-danger.ExcButton--variant-icon:hover{--text-color: var(--color-danger-darkest);--border-color: var(--color-danger-darkest)}.excalidraw .ExcButton--color-danger.ExcButton--variant-outlined:active,.excalidraw .ExcButton--color-danger.ExcButton--variant-icon:active{--text-color: var(--color-danger-darker);--border-color: var(--color-danger-darker)}.excalidraw .ExcButton--color-muted.ExcButton--variant-filled{--text-color: var(--island-bg-color);--back-color: var(--color-gray-50)}.excalidraw .ExcButton--color-muted.ExcButton--variant-filled:hover{--back-color: var(--color-gray-60)}.excalidraw .ExcButton--color-muted.ExcButton--variant-filled:active{--back-color: var(--color-gray-80)}.excalidraw .ExcButton--color-muted.ExcButton--variant-outlined,.excalidraw .ExcButton--color-muted.ExcButton--variant-icon{--text-color: var(--color-muted-background);--border-color: var(--color-muted);--back-color: var(--island-bg-color)}.excalidraw .ExcButton--color-muted.ExcButton--variant-outlined:hover,.excalidraw .ExcButton--color-muted.ExcButton--variant-icon:hover{--text-color: var(--color-muted-background-darker);--border-color: var(--color-muted-darker)}.excalidraw .ExcButton--color-muted.ExcButton--variant-outlined:active,.excalidraw .ExcButton--color-muted.ExcButton--variant-icon:active{--text-color: var(--color-muted-background-darker);--border-color: var(--color-muted-darkest)}.excalidraw .ExcButton--color-warning.ExcButton--variant-filled{--text-color: black;--back-color: var(--color-warning-dark)}.excalidraw .ExcButton--color-warning.ExcButton--variant-filled:hover{--back-color: var(--color-warning-darker)}.excalidraw .ExcButton--color-warning.ExcButton--variant-filled:active{--back-color: var(--color-warning-darkest)}.excalidraw .ExcButton--color-warning.ExcButton--variant-outlined,.excalidraw .ExcButton--color-warning.ExcButton--variant-icon{--text-color: var(--color-warning-dark);--border-color: var(--color-warning-dark);--back-color: var(--input-bg-color)}.excalidraw .ExcButton--color-warning.ExcButton--variant-outlined:hover,.excalidraw .ExcButton--color-warning.ExcButton--variant-icon:hover{--text-color: var(--color-warning-darker);--border-color: var(--color-warning-darker)}.excalidraw .ExcButton--color-warning.ExcButton--variant-outlined:active,.excalidraw .ExcButton--color-warning.ExcButton--variant-icon:active{--text-color: var(--color-warning-darkest);--border-color: var(--color-warning-darkest)}.excalidraw .ExcButton--size-large{font-weight:600;font-size:.875rem;min-height:3rem;padding:.5rem 1.5rem;gap:.75rem;letter-spacing:.4px}.excalidraw .ExcButton--size-medium{font-weight:600;font-size:.75rem;min-height:2.5rem;padding:.5rem 1rem;gap:.5rem;letter-spacing:normal}.excalidraw .ExcButton--variant-icon{padding:.5rem .75rem;width:3rem}.excalidraw .ExcButton--fullWidth{width:100%}.excalidraw .ExcButton__icon{width:1.25rem;height:1.25rem}',""]),Q.Z=h},3195:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .FixedSideContainer{position:absolute;pointer-events:none}.excalidraw .FixedSideContainer>*{pointer-events:var(--ui-pointerEvents)}.excalidraw .FixedSideContainer_side_top{left:var(--editor-container-padding);top:var(--editor-container-padding);right:var(--editor-container-padding);bottom:var(--editor-container-padding);z-index:2}.excalidraw .FixedSideContainer_side_top.zen-mode{right:42px}",""]),Q.Z=h},2978:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .HelpDialog .Modal__content{max-width:960px}.excalidraw .HelpDialog h3{margin:1.5rem 0;font-weight:bold;font-size:1.125rem}.excalidraw .HelpDialog__header{display:flex;flex-wrap:wrap;gap:.75rem}.excalidraw .HelpDialog__btn{--background: var(--color-surface-mid);display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;align-items:center;background-color:var(--background);padding:.625rem 1rem;border:1px solid var(--background);border-radius:var(--border-radius-lg);color:var(--text-primary-color);font-weight:600;font-size:.75rem;letter-spacing:.4px}.excalidraw.theme--dark.excalidraw .HelpDialog__btn{--background: var(--color-surface-high)}.excalidraw.theme--dark.excalidraw .HelpDialog__btn:hover{--background: #363541}.excalidraw .HelpDialog__btn:hover{--background: var(--color-surface-high);text-decoration:none}.excalidraw .HelpDialog__btn:active{border-color:var(--color-primary)}.excalidraw .HelpDialog__link-icon{line-height:0}.excalidraw .HelpDialog__link-icon svg{width:1rem;height:1rem}.excalidraw .HelpDialog__islands-container{display:grid;grid-column-gap:1.5rem;grid-row-gap:2rem}@media screen and (min-width: 1024px){.excalidraw .HelpDialog__islands-container{grid-template-columns:1fr 1fr}}@media screen and (min-width: 1024px){.excalidraw .HelpDialog__island--tools{grid-area:1/1/2/2}.excalidraw .HelpDialog__island--view{grid-area:2/1/3/2}.excalidraw .HelpDialog__island--editor{grid-area:1/2/3/3}}.excalidraw .HelpDialog__island h4{font-size:1rem;font-weight:bold;margin:0;margin-bottom:.625rem}.excalidraw .HelpDialog__island-content{border:1px solid var(--dialog-border-color);border-radius:var(--border-radius-lg)}.excalidraw .HelpDialog__shortcut{border-bottom:1px solid var(--dialog-border-color);padding:.375rem .75rem;display:flex;justify-content:space-between;align-items:center;font-size:.875rem;-webkit-column-gap:.5rem;column-gap:.5rem}.excalidraw .HelpDialog__shortcut:last-child{border-bottom:none}.excalidraw .HelpDialog__key-container{display:flex;align-items:center;-webkit-column-gap:.25rem;column-gap:.25rem;flex-shrink:0}.excalidraw .HelpDialog__key{display:flex;box-sizing:border-box;font-size:.625rem;background-color:var(--color-primary-light);border-radius:var(--border-radius-md);padding:.5rem;word-break:keep-all;align-items:center;font-family:inherit;line-height:1}",""]),Q.Z=h},1587:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .HintViewer{pointer-events:none;box-sizing:border-box;position:absolute;display:flex;justify-content:center;left:0;top:100%;max-width:100%;width:100%;margin-top:.5rem;text-align:center;color:var(--color-gray-40);font-size:.75rem}.excalidraw--mobile.excalidraw .HintViewer{position:static;padding-right:2rem}.excalidraw .HintViewer>span{padding:.25rem}.excalidraw.theme--dark .HintViewer{color:var(--color-gray-60)}",""]),Q.Z=h},9478:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .picker-container{display:inline-block;box-sizing:border-box;margin-right:.25rem}.excalidraw .picker{background:var(--popup-bg-color);border:0 solid rgba(255,255,255,.25);box-shadow:rgba(0,0,0,.25) 2px 2px 4px 2px;border-radius:4px;position:absolute}.excalidraw .picker-container button,.excalidraw .picker button{position:relative;display:flex;align-items:center;justify-content:center}.excalidraw .picker-container button:focus-visible,.excalidraw .picker button:focus-visible{outline:rgba(0,0,0,0);background-color:var(--button-gray-2)}.excalidraw .picker-container button:focus-visible svg,.excalidraw .picker button:focus-visible svg{opacity:1}.excalidraw .picker-container button:hover,.excalidraw .picker button:hover{background-color:var(--button-gray-2)}.excalidraw .picker-container button:active,.excalidraw .picker button:active{background-color:var(--button-gray-3)}.excalidraw .picker-container button:disabled,.excalidraw .picker button:disabled{cursor:not-allowed}.excalidraw .picker-container button svg,.excalidraw .picker button svg{margin:0;width:36px;height:18px;pointer-events:none}.excalidraw .picker button{padding:.25rem .28rem .35rem .25rem}.excalidraw .picker-triangle{width:0;height:0;position:relative;top:-10px;z-index:10}:root[dir=ltr] .excalidraw .picker-triangle{left:12px}:root[dir=rtl] .excalidraw .picker-triangle{right:12px}.excalidraw .picker-triangle:before{content:"";position:absolute;border-style:solid;border-width:0 9px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,.1);top:-1px}.excalidraw .picker-triangle:after{content:"";position:absolute;border-style:solid;border-width:0 9px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) var(--popup-bg-color)}.excalidraw .picker-content{padding:.5rem;display:grid;grid-template-columns:repeat(3, auto);grid-gap:.5rem;border-radius:4px}:root[dir=rtl] .excalidraw .picker-content{padding:.4rem}.excalidraw .picker-keybinding{position:absolute;bottom:2px;font-size:.7em;color:var(--keybinding-color)}:root[dir=ltr] .excalidraw .picker-keybinding{right:2px}:root[dir=rtl] .excalidraw .picker-keybinding{left:2px}.excalidraw--mobile.excalidraw .picker-keybinding{display:none}.excalidraw .picker-type-canvasBackground .picker-keybinding{color:#aaa}.excalidraw .picker-type-elementBackground .picker-keybinding{color:#fff}.excalidraw .picker-swatch[aria-label=transparent] .picker-keybinding{color:#aaa}.excalidraw .picker-type-elementStroke .picker-keybinding{color:#d4d4d4}.excalidraw.theme--dark .picker-type-elementBackground .picker-keybinding{color:#000}.excalidraw.theme--dark .picker-swatch[aria-label=transparent] .picker-keybinding{color:#000}',""]),Q.Z=h},9706:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y),S=e(1667),I=e.n(S),v=new URL(e(9669),e.b),n=h()(E()),M=I()(v);n.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--ImageExportModal-preview-border: #d6d6d6}.excalidraw.theme--dark{--ImageExportModal-preview-border: #5c5c5c}.excalidraw .ImageExportModal{display:flex;flex-direction:row;justify-content:space-between}.excalidraw .ImageExportModal h3{font-family:"Assistant";font-style:normal;font-weight:700;font-size:1.313rem;line-height:130%;padding:0;margin:0}.excalidraw--mobile.excalidraw .ImageExportModal h3{display:none}.excalidraw .ImageExportModal>h3{display:none}.excalidraw--mobile.excalidraw .ImageExportModal>h3{display:block}.excalidraw--mobile.excalidraw .ImageExportModal{flex-direction:column;height:calc(100vh - 5rem)}.excalidraw .ImageExportModal__preview{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;height:360px;width:55%;margin-right:1.5rem}.excalidraw--mobile.excalidraw .ImageExportModal__preview{max-width:unset;margin-right:unset;width:100%;height:unset;flex-grow:1}.excalidraw .ImageExportModal__preview__filename>input{margin-top:1rem}.excalidraw .ImageExportModal__preview__canvas{box-sizing:border-box;width:100%;height:100%;display:flex;flex-grow:1;justify-content:center;align-items:center;background:url('+M+') left center;border:1px solid var(--ImageExportModal-preview-border);border-radius:12px;overflow:hidden;padding:1rem}.excalidraw .ImageExportModal__preview__canvas>canvas{max-width:calc(100% - 2rem);max-height:calc(100% - 2rem);-webkit-filter:none !important;filter:none !important}.excalidraw--mobile.excalidraw .ImageExportModal__preview__canvas>canvas{max-height:100%}.excalidraw--mobile.excalidraw .ImageExportModal__preview__canvas{margin-top:24px;max-width:unset}.excalidraw .ImageExportModal__settings{display:flex;flex-direction:column;flex-wrap:wrap;gap:18px}.excalidraw--mobile.excalidraw .ImageExportModal__settings{margin-left:unset;margin-top:1rem;flex-direction:row;gap:6px 34px;align-content:flex-start}.excalidraw .ImageExportModal__settings__setting{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.excalidraw--mobile.excalidraw .ImageExportModal__settings__setting{flex-direction:column;align-items:start;justify-content:unset;height:52px}.excalidraw .ImageExportModal__settings__setting__label{display:flex;flex-direction:row;align-items:center;font-family:"Assistant";font-weight:600;font-size:1rem;line-height:150%}.excalidraw .ImageExportModal__settings__setting__label svg{width:20px;height:20px;margin-left:10px}.excalidraw .ImageExportModal__settings__setting__content{display:flex;height:100%;align-items:center}.excalidraw .ImageExportModal__settings__buttons{flex-grow:1;flex-wrap:wrap;display:flex;flex-direction:row;gap:11px;align-items:flex-end;align-content:flex-end}.excalidraw--mobile.excalidraw .ImageExportModal__settings__buttons{padding-top:32px;flex-basis:100%;justify-content:center}',""]),Q.Z=n},7369:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .Island{--padding: 0;box-sizing:border-box;background-color:var(--island-bg-color);box-shadow:var(--shadow-island);border-radius:var(--border-radius-lg);padding:calc(var(--padding)*var(--space-factor));position:relative;transition:box-shadow .5s ease-in-out}.excalidraw .Island.zen-mode{box-shadow:none}",""]),Q.Z=h},7930:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .LaserToolOverlay{pointer-events:none;width:100vw;height:100vh;position:fixed;top:0;left:0;z-index:2}.excalidraw .LaserToolOverlay .LaserToolOverlayCanvas{image-rendering:auto;overflow:visible;position:absolute;top:0;left:0}",""]),Q.Z=h},1434:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .layer-ui__wrapper.animate{transition:width .1s ease-in-out}.excalidraw .layer-ui__wrapper{position:absolute;width:100%;height:100%;pointer-events:none;z-index:var(--zIndex-layerUI)}.excalidraw .layer-ui__wrapper__top-right{display:flex;gap:.75rem}.excalidraw .layer-ui__wrapper__footer{width:100%}.excalidraw .layer-ui__wrapper__footer-right{z-index:100;display:flex}.excalidraw .layer-ui__wrapper .zen-mode-transition{transition:-webkit-transform .5s ease-in-out;transition:transform .5s ease-in-out;transition:transform .5s ease-in-out, -webkit-transform .5s ease-in-out}:root[dir=ltr] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left{-webkit-transform:translate(-999px, 0);transform:translate(-999px, 0)}:root[dir=ltr] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right{-webkit-transform:translate(999px, 0);transform:translate(999px, 0)}:root[dir=rtl] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left{-webkit-transform:translate(999px, 0);transform:translate(999px, 0)}:root[dir=rtl] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right{-webkit-transform:translate(-999px, 0);transform:translate(-999px, 0)}.excalidraw .layer-ui__wrapper .zen-mode-transition.layer-ui__wrapper__footer-left--transition-bottom{-webkit-transform:translate(0, 92px);transform:translate(0, 92px)}.excalidraw .layer-ui__wrapper .disable-zen-mode{padding:10px;position:absolute;bottom:0;opacity:0;visibility:hidden;transition:visibility 0s linear 0s,opacity .5s;font-family:var(--ui-font);font-size:.75rem;font-weight:500;line-height:1;border-radius:var(--border-radius-lg);border:1px solid var(--default-border-color);background-color:var(--island-bg-color);color:var(--text-primary-color)}[dir=ltr] .excalidraw .layer-ui__wrapper .disable-zen-mode{right:1rem}[dir=rtl] .excalidraw .layer-ui__wrapper .disable-zen-mode{left:1rem}.excalidraw .layer-ui__wrapper .disable-zen-mode:hover{background-color:var(--button-hover-bg)}.excalidraw .layer-ui__wrapper .disable-zen-mode:active{border-color:var(--color-primary)}.excalidraw .layer-ui__wrapper .disable-zen-mode--visible{opacity:1;visibility:visible;transition:visibility 0s linear 300ms,opacity .5s;transition-delay:.8s;pointer-events:var(--ui-pointerEvents)}.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-left>*,.excalidraw .layer-ui__wrapper .footer-center>*,.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-right>*{pointer-events:var(--ui-pointerEvents)}.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-right{margin-top:auto;margin-bottom:auto}",""]),Q.Z=h},8923:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,'.excalidraw .layer-ui__library{display:flex;flex-direction:column;flex:1 1 auto}.excalidraw .library-actions-counter{background-color:var(--color-primary);color:var(--color-primary-light);font-weight:bold;display:flex;align-items:center;justify-content:center;border-radius:50%;width:1rem;height:1rem;position:absolute;bottom:-0.25rem;right:-0.25rem;font-size:.625rem;pointer-events:none}.excalidraw .layer-ui__library-message{padding:2rem;min-width:200px;display:flex;flex-direction:column;align-items:center;flex-grow:1;justify-content:center}.excalidraw .layer-ui__library-message span{font-size:.8em}.excalidraw .publish-library-success .Dialog__content{display:flex;flex-direction:column}.excalidraw .publish-library-success-close.ToolIcon_type_button{background-color:#228be6;align-self:flex-end}.excalidraw .publish-library-success-close.ToolIcon_type_button:hover{background-color:#1971c2}.excalidraw .publish-library-success-close.ToolIcon_type_button .ToolIcon__icon{width:auto;font-size:1rem;color:#fff;padding:0 .5rem}.excalidraw .library-menu-control-buttons{display:flex;align-items:center;justify-content:center;gap:.625rem;position:relative}.excalidraw .library-menu-control-buttons--at-bottom::before{content:"";width:calc(100% - 1.5rem);height:1px;position:absolute;top:-1px;background:var(--sidebar-border-color)}.excalidraw .library-menu-browse-button{flex:1;height:var(--lg-button-size);display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;border-radius:var(--border-radius-lg);background-color:var(--color-primary);color:#fff;text-align:center;white-space:nowrap;text-decoration:none !important;font-weight:600;font-size:.75rem}.excalidraw .library-menu-browse-button:hover{background-color:var(--color-brand-hover)}.excalidraw .library-menu-browse-button:active{background-color:var(--color-brand-active)}.excalidraw.theme--dark .library-menu-browse-button{color:var(--color-gray-100)}.excalidraw.excalidraw--mobile .library-menu-browse-button{height:var(--default-button-size)}.excalidraw .layer-ui__library .dropdown-menu{width:auto;top:initial;right:0;left:initial;bottom:100%;margin-bottom:.625rem}.excalidraw .layer-ui__library .dropdown-menu .dropdown-menu-container{width:196px;box-shadow:var(--library-dropdown-shadow);border-radius:var(--border-radius-lg);padding:.25rem .5rem}.excalidraw .layer-ui__library .library-menu-dropdown-container{position:relative}.excalidraw .layer-ui__library .library-menu-dropdown-container--in-heading{padding:0;position:absolute;top:1rem;right:.75rem;z-index:1}.excalidraw .layer-ui__library .library-menu-dropdown-container--in-heading .dropdown-menu{top:100%}',""]),Q.Z=h},6440:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw{--container-padding-y: 1.5rem;--container-padding-x: 0.75rem}.excalidraw .library-menu-items__no-items{text-align:center;color:var(--color-gray-70);line-height:1.5;font-size:.875rem;width:100%}.excalidraw .library-menu-items__no-items__label{color:var(--color-primary);font-weight:bold;font-size:1.125rem;margin-bottom:.75rem}.excalidraw.theme--dark .library-menu-items__no-items{color:var(--color-gray-40)}.excalidraw .library-menu-items-container{width:100%;display:flex;flex-grow:1;flex-shrink:1;flex-basis:0;overflow-y:auto;flex-direction:column;height:100%;justify-content:center;margin:0;position:relative}.excalidraw .library-menu-items-container>div{padding-left:.75rem;padding-right:.75rem}.excalidraw .library-menu-items-container__row{display:grid;grid-template-columns:repeat(4, 1fr);gap:1rem}.excalidraw .library-menu-items-container__items{row-gap:.5rem;padding:var(--container-padding-y) 0;flex:1;overflow-y:auto;overflow-x:hidden;margin-bottom:1rem}.excalidraw .library-menu-items-container__header{color:var(--color-primary);font-size:1.125rem;font-weight:bold;margin-bottom:.75rem;width:100%;padding-right:4rem;box-sizing:border-box}.excalidraw .library-menu-items-container__header--excal{margin-top:2rem}.excalidraw .library-menu-items-container__grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:1rem}.excalidraw .library-menu-items-container .separator{width:100%;display:flex;align-items:center;font-weight:500;font-size:.9rem;margin:.6em .2em;color:var(--text-primary-color)}.excalidraw .library-menu-items-private-library-container{min-height:3.75rem;width:100%}",""]),Q.Z=h},5644:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .library-unit{align-items:center;border:1px solid rgba(0,0,0,0);display:flex;justify-content:center;position:relative;width:55px;height:55px;box-sizing:border-box;border-radius:var(--border-radius-lg)}.excalidraw .library-unit svg{pointer-events:none}.excalidraw .library-unit--hover{border-color:var(--color-primary)}.excalidraw .library-unit--selected{border-color:var(--color-primary);border-width:1px}.excalidraw .library-unit--skeleton{opacity:.5;background:linear-gradient(-45deg, var(--color-gray-10), var(--color-gray-20), var(--color-gray-10));background-size:200% 200%;-webkit-animation:library-unit__skeleton-opacity-animation .2s linear;animation:library-unit__skeleton-opacity-animation .2s linear}.excalidraw.theme--dark .library-unit--skeleton{background-image:linear-gradient(-45deg, var(--color-gray-100), var(--color-gray-80), var(--color-gray-100))}.excalidraw .library-unit__dragger{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.excalidraw .library-unit__dragger>svg{-webkit-filter:var(--theme-filter);filter:var(--theme-filter);flex-grow:1;max-height:100%;max-width:100%}.excalidraw .library-unit__checkbox-container,.excalidraw .library-unit__checkbox-container:hover,.excalidraw .library-unit__checkbox-container:active{align-items:center;background:none;border:none;color:var(--icon-fill-color);display:flex;justify-content:center;margin:0;padding:.5rem;position:absolute;left:2rem;bottom:2rem;cursor:pointer}.excalidraw .library-unit__checkbox-container input,.excalidraw .library-unit__checkbox-container:hover input,.excalidraw .library-unit__checkbox-container:active input{cursor:pointer}.excalidraw .library-unit__checkbox{position:absolute;top:.125rem;right:.125rem;margin:0}.excalidraw .library-unit__checkbox .Checkbox-box{margin:0;width:1rem;height:1rem;border-radius:4px;background-color:var(--color-primary-light);border:1px solid var(--color-primary);box-shadow:none !important;padding:2px}.excalidraw .library-unit__checkbox.Checkbox:hover .Checkbox-box{background-color:var(--color-primary-light)}.excalidraw .library-unit__checkbox.is-checked .Checkbox-box{background-color:var(--color-primary) !important}.excalidraw .library-unit__checkbox.is-checked .Checkbox-box svg{color:var(--color-primary-light)}.excalidraw .library-unit__removeFromLibrary>svg{height:16px;width:16px}.excalidraw .library-unit__adder{-webkit-transform:scale(1);transform:scale(1);-webkit-animation:library-unit__adder-animation 1s ease-in infinite;animation:library-unit__adder-animation 1s ease-in infinite;position:absolute;width:1.5rem;height:1.5rem;background-color:var(--color-primary);border-radius:var(--border-radius-md);display:flex;justify-content:center;align-items:center;pointer-events:none}.excalidraw .library-unit__adder svg{color:var(--color-primary-light);width:1rem;height:1rem}.excalidraw .library-unit:active .library-unit__adder{-webkit-animation:none;animation:none;-webkit-transform:scale(0.8);transform:scale(0.8)}.excalidraw .library-unit__active{cursor:pointer}@-webkit-keyframes library-unit__adder-animation{0%{-webkit-transform:scale(0.85);transform:scale(0.85)}50%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(0.85);transform:scale(0.85)}}@keyframes library-unit__adder-animation{0%{-webkit-transform:scale(0.85);transform:scale(0.85)}50%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(0.85);transform:scale(0.85)}}@-webkit-keyframes library-unit__skeleton-opacity-animation{0%{opacity:0}75%{opacity:0}100%{opacity:.5}}@keyframes library-unit__skeleton-opacity-animation{0%{opacity:0}75%{opacity:0}100%{opacity:.5}}",""]),Q.Z=h},5830:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y),S=e(1667),I=e.n(S),v=new URL(e(9669),e.b),n=h()(E()),M=I()(v);n.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .dialog-mermaid-title{margin-bottom:5px;margin-top:2px}.excalidraw .dialog-mermaid-desc{font-size:15px;font-style:italic;font-weight:500}.excalidraw .dialog-mermaid .Modal__content .Island{box-shadow:none}.excalidraw:not(.excalidraw--mobile).excalidraw .dialog-mermaid{padding:1.25rem}.excalidraw:not(.excalidraw--mobile).excalidraw .dialog-mermaid .Modal__content{height:100%;max-height:750px}@media screen and (max-width: 860px){.excalidraw:not(.excalidraw--mobile).excalidraw .dialog-mermaid .Modal__content{height:auto;max-height:100%}}.excalidraw:not(.excalidraw--mobile).excalidraw .dialog-mermaid .Modal__content .Island{height:100%;display:flex;flex-direction:column;flex:1 1 auto}.excalidraw:not(.excalidraw--mobile).excalidraw .dialog-mermaid .Modal__content .Island .Dialog__content{display:flex;flex:1 1 auto}.excalidraw .dialog-mermaid-body{width:100%;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr auto;height:100%;-webkit-column-gap:4rem;column-gap:4rem}@media screen and (max-width: 860px){.excalidraw .dialog-mermaid-body{flex-direction:column;display:flex;gap:1rem}}.excalidraw .dialog-mermaid-panels{display:grid;width:100%;grid-template-columns:1fr 1fr;justify-content:space-between;gap:4rem;grid-row:1;grid-column:1/3}@media screen and (max-width: 860px){.excalidraw .dialog-mermaid-panels{flex-direction:column;display:flex;gap:1rem}}.excalidraw .dialog-mermaid-panels label{font-size:14px;font-style:normal;font-weight:600;margin-bottom:4px;margin-left:4px}@media screen and (max-width: 860px){.excalidraw .dialog-mermaid-panels label{margin-top:4px}}.excalidraw .dialog-mermaid-panels-text{display:flex;flex-direction:column}.excalidraw .dialog-mermaid-panels-text textarea{width:20rem;height:100%;resize:none;border-radius:var(--border-radius-lg);border:1px solid var(--dialog-border-color);white-space:pre-wrap;padding:.85rem;box-sizing:border-box;width:100%;font-family:monospace}@media screen and (max-width: 860px){.excalidraw .dialog-mermaid-panels-text textarea{width:auto;height:10rem}}.excalidraw .dialog-mermaid-panels-preview-wrapper{display:flex;align-items:center;justify-content:center;padding:.85rem;box-sizing:border-box;width:100%;height:200px;flex-grow:1;position:relative;background:url("+M+') left center;border-radius:var(--border-radius-lg);border:1px solid var(--dialog-border-color)}@media screen and (max-width: 860px){.excalidraw .dialog-mermaid-panels-preview-wrapper{height:400px;width:auto}}.excalidraw .dialog-mermaid-panels-preview-wrapper canvas{max-width:100%;max-height:100%}.excalidraw .dialog-mermaid-panels-preview-canvas-container{display:flex;width:100%;height:100%;align-items:center;justify-content:center;flex-grow:1}.excalidraw .dialog-mermaid-panels-preview{display:flex;flex-direction:column}.excalidraw .dialog-mermaid-panels .mermaid-error{color:red;font-weight:800;font-size:30px;word-break:break-word;overflow:auto;max-height:100%;height:100%;width:100%;text-align:center;position:absolute;z-index:10}.excalidraw .dialog-mermaid-panels .mermaid-error p{font-weight:500;font-family:Cascadia;text-align:left;white-space:pre-wrap;font-size:.875rem;padding:0 10px}.excalidraw .dialog-mermaid-buttons{grid-column:2}.excalidraw .dialog-mermaid-buttons .dialog-mermaid-insert.excalidraw-button{font-family:"Assistant";font-weight:600;height:2.5rem;margin-top:1em;margin-bottom:.3em;width:7.5rem;font-size:12px;color:#fff;background-color:var(--color-primary)}.excalidraw .dialog-mermaid-buttons .dialog-mermaid-insert.excalidraw-button:hover{background-color:var(--color-primary-darker)}.excalidraw .dialog-mermaid-buttons .dialog-mermaid-insert.excalidraw-button:active{background-color:var(--color-primary-darkest)}@media screen and (max-width: 860px){.excalidraw .dialog-mermaid-buttons .dialog-mermaid-insert.excalidraw-button{width:100%}}.excalidraw.theme--dark.excalidraw .dialog-mermaid-buttons .dialog-mermaid-insert.excalidraw-button{color:var(--color-gray-100)}.excalidraw .dialog-mermaid-buttons .dialog-mermaid-insert span{padding-left:.5rem;display:flex}',""]),Q.Z=n},6843:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw.excalidraw-modal-container{position:absolute;z-index:var(--zIndex-modal)}.excalidraw .Modal{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;overflow:auto;padding:calc(var(--space-factor)*10)}.excalidraw .Modal .Island{padding:2.5rem !important}.excalidraw .Modal__background{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1;background-color:rgba(18,18,18,.2);-webkit-animation:Modal__background__fade-in .125s linear forwards;animation:Modal__background__fade-in .125s linear forwards}.excalidraw .Modal__content{position:relative;z-index:2;width:100%;max-width:var(--max-width);max-height:100%;opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px);-webkit-animation:Modal__content_fade-in .1s ease-out .05s forwards;animation:Modal__content_fade-in .1s ease-out .05s forwards;position:relative;overflow-y:auto;background:var(--island-bg-color);border:1px solid var(--dialog-border-color);box-shadow:var(--modal-shadow);border-radius:6px;box-sizing:border-box}.excalidraw .Modal__content:focus{outline:none}@-webkit-keyframes Modal__background__fade-in{from{opacity:0}to{opacity:1}}@keyframes Modal__background__fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes Modal__content_fade-in{from{opacity:0;-webkit-transform:scale(0.9);transform:scale(0.9)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes Modal__content_fade-in{from{opacity:0;-webkit-transform:scale(0.9);transform:scale(0.9)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.excalidraw .Modal__close{color:var(--icon-fill-color);margin:0;padding:.375rem;position:absolute;top:1rem;right:1rem;border:0;background-color:rgba(0,0,0,0);line-height:0;cursor:pointer}.excalidraw .Modal__close svg{width:1.5rem;height:1.5rem}.excalidraw .Dialog--fullscreen .Modal{padding:0}.excalidraw .Dialog--fullscreen .Modal__content{position:absolute;top:0;left:0;right:0;bottom:0;max-width:100%;border:0;border-radius:0}",""]),Q.Z=h},9439:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .OverwriteConfirm{display:flex;flex-direction:column;align-items:center;gap:.75rem;isolation:isolate}.excalidraw .OverwriteConfirm h3{margin:0;font-weight:700;font-size:1.3125rem;line-height:130%;align-self:flex-start;color:var(--text-primary-color)}.excalidraw .OverwriteConfirm__Description{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;width:100%;gap:1rem;padding:2.5rem;background:var(--color-danger-background);border-radius:.5rem;font-family:"Assistant";font-style:normal;font-weight:400;font-size:1rem;line-height:150%;color:var(--color-danger-color)}.excalidraw--mobile.excalidraw .OverwriteConfirm__Description{flex-direction:column;text-align:center}.excalidraw .OverwriteConfirm__Description__spacer{flex-grow:1}.excalidraw .OverwriteConfirm__Description__icon{box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-radius:2.5rem;background:var(--color-danger-icon-background);width:3.5rem;height:3.5rem;padding:.75rem}.excalidraw .OverwriteConfirm__Description__icon svg{color:var(--color-danger-icon-color);width:1.5rem;height:1.5rem}.excalidraw .OverwriteConfirm__Description.OverwriteConfirm__Description--color-warning{background:var(--color-warning-background);color:var(--color-warning-color)}.excalidraw .OverwriteConfirm__Description.OverwriteConfirm__Description--color-warning .OverwriteConfirm__Description__icon{background:var(--color-warning-icon-background);flex:0 0 auto}.excalidraw .OverwriteConfirm__Description.OverwriteConfirm__Description--color-warning .OverwriteConfirm__Description__icon svg{color:var(--color-warning-icon-color)}.excalidraw .OverwriteConfirm__Actions{display:flex;flex-direction:row;align-items:stretch;justify-items:stretch;justify-content:center;gap:1.5rem}.excalidraw--mobile.excalidraw .OverwriteConfirm__Actions{flex-direction:column}.excalidraw .OverwriteConfirm__Actions__Action{display:flex;flex-direction:column;align-items:center;padding:1.5rem;gap:.75rem;flex-basis:50%;flex-grow:0}.excalidraw .OverwriteConfirm__Actions__Action__content{height:100%;font-size:.875rem;text-align:center}.excalidraw .OverwriteConfirm__Actions__Action h4{font-weight:700;font-size:1.125rem;line-height:130%;margin:0;color:var(--text-primary-color)}',""]),Q.Z=h},8461:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw--mobile.excalidraw .PasteChartDialog .Island{display:flex;flex-direction:column}.excalidraw .PasteChartDialog .container{display:flex;align-items:center;justify-content:space-around;flex-wrap:wrap}.excalidraw--mobile.excalidraw .PasteChartDialog .container{flex-direction:column;justify-content:center}.excalidraw .PasteChartDialog .ChartPreview{margin:8px;text-align:center;width:192px;height:128px;border-radius:2px;padding:1px;border:1px solid #ced4da;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0)}.excalidraw .PasteChartDialog .ChartPreview div{display:inline-block}.excalidraw .PasteChartDialog .ChartPreview svg{max-height:120px;max-width:186px}.excalidraw .PasteChartDialog .ChartPreview:hover{padding:0;border:2px solid #339af0}",""]),Q.Z=h},9935:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .popover{position:absolute;z-index:10;padding:5px 0 5px;outline:none}",""]),Q.Z=h},532:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".ProjectName{margin:auto;display:flex;align-items:center}.ProjectName .TextInput{height:calc(1rem - 3px);width:200px;overflow:hidden;text-align:center;margin-left:8px;text-overflow:ellipsis}.ProjectName .TextInput--readonly{background:none;border:none;width:auto;max-width:200px;padding-left:2px}.ProjectName .TextInput--readonly:hover{background:none}",""]),Q.Z=h},7589:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .publish-library__fields{display:flex;flex-direction:column}.excalidraw .publish-library__fields label{padding:1em 0;display:flex;justify-content:space-between;align-items:center}.excalidraw .publish-library__fields label span{font-weight:500;font-size:1rem;color:#868e96}.excalidraw .publish-library__fields label input,.excalidraw .publish-library__fields label textarea{width:70%;padding:.6em;font-family:var(--ui-font)}.excalidraw .publish-library__fields label .required{color:#e03131;margin:.2rem}.excalidraw .publish-library__buttons{display:flex;padding:.2rem 0;justify-content:flex-end;gap:.5rem}.excalidraw .publish-library__buttons .ToolIcon__icon{min-width:2.5rem;width:auto;font-size:1rem}.excalidraw .publish-library__buttons .ToolIcon_type_button{margin-left:1rem;padding:0 .5rem}.excalidraw .publish-library__buttons--confirm.ToolIcon_type_button{background-color:#228be6}.excalidraw .publish-library__buttons--confirm.ToolIcon_type_button:hover{background-color:#1971c2}.excalidraw .publish-library__buttons--cancel.ToolIcon_type_button{background-color:#adb5bd}.excalidraw .publish-library__buttons--cancel.ToolIcon_type_button:hover{background-color:#868e96}.excalidraw .publish-library__buttons .ToolIcon__icon{color:#fff}.excalidraw .publish-library__buttons .ToolIcon__icon .Spinner{--spinner-color: #fff}.excalidraw .publish-library__buttons .ToolIcon__icon .Spinner svg{padding:.5rem}.excalidraw .publish-library .selected-library-items{display:flex;flex-wrap:wrap}.excalidraw .publish-library .selected-library-items .single-library-item-wrapper{width:9rem}.excalidraw .publish-library-warning{color:#fa5252}.excalidraw .publish-library-note{padding:1em 0;font-style:italic;font-size:14px;display:block}.excalidraw .single-library-item{position:relative}.excalidraw .single-library-item-status{position:absolute;top:.3rem;left:.3rem;font-size:.7rem;color:#f03e3e;background:rgba(255,255,255,.9);padding:.1rem .2rem;border-radius:.2rem}.excalidraw .single-library-item__svg{background-color:#fff;padding:.3rem;width:7.5rem;height:7.5rem;border:1px solid var(--button-gray-2)}.excalidraw .single-library-item__svg svg{width:100%;height:100%}.excalidraw .single-library-item .ToolIcon__icon{background-color:#fff;width:auto;height:auto;margin:0 .5rem}.excalidraw .single-library-item .ToolIcon,.excalidraw .single-library-item .ToolIcon_type_button:hover{background-color:#fff}.excalidraw .single-library-item .required,.excalidraw .single-library-item .error{color:#e03131;font-weight:bold;font-size:1rem;margin:.2rem}.excalidraw .single-library-item .error{font-weight:500;margin:0;padding:.3em 0}.excalidraw .single-library-item--remove{position:absolute;top:.2rem;right:1rem}.excalidraw .single-library-item--remove .ToolIcon__icon{margin:0}.excalidraw .single-library-item--remove .ToolIcon__icon{background-color:#fa5252}.excalidraw .single-library-item--remove .ToolIcon__icon:hover{background-color:#f03e3e}.excalidraw .single-library-item--remove .ToolIcon__icon:active{background-color:#e03131}.excalidraw .single-library-item--remove svg{color:#fff;padding:.26rem;border-radius:.3em;width:1rem;height:1rem}",""]),Q.Z=h},6217:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--RadioGroup-background: var(--island-bg-color);--RadioGroup-border: var(--color-surface-high);--RadioGroup-choice-color-off: var(--color-primary);--RadioGroup-choice-color-off-hover: var(--color-brand-hover);--RadioGroup-choice-background-off: var(--island-bg-color);--RadioGroup-choice-background-off-active: var(--color-surface-high);--RadioGroup-choice-color-on: var(--color-surface-lowest);--RadioGroup-choice-background-on: var(--color-primary);--RadioGroup-choice-background-on-hover: var(--color-brand-hover);--RadioGroup-choice-background-on-active: var(--color-brand-active)}.excalidraw .RadioGroup{box-sizing:border-box;display:flex;flex-direction:row;align-items:flex-start;padding:3px;border-radius:10px;background:var(--RadioGroup-background);border:1px solid var(--RadioGroup-border)}.excalidraw .RadioGroup__choice{position:relative;display:flex;align-items:center;justify-content:center;width:32px;height:24px;color:var(--RadioGroup-choice-color-off);background:var(--RadioGroup-choice-background-off);border-radius:8px;font-family:"Assistant";font-style:normal;font-weight:600;font-size:.75rem;line-height:100%;-webkit-user-select:none;user-select:none;letter-spacing:.4px;transition:all 75ms ease-out}.excalidraw .RadioGroup__choice:hover{color:var(--RadioGroup-choice-color-off-hover)}.excalidraw .RadioGroup__choice:active{background:var(--RadioGroup-choice-background-off-active)}.excalidraw .RadioGroup__choice.active{color:var(--RadioGroup-choice-color-on);background:var(--RadioGroup-choice-background-on)}.excalidraw .RadioGroup__choice.active:hover{background:var(--RadioGroup-choice-background-on-hover)}.excalidraw .RadioGroup__choice.active:active{background:var(--RadioGroup-choice-background-on-active)}.excalidraw .RadioGroup__choice input{z-index:1;position:absolute;width:100%;height:100%;margin:0;padding:0;border-radius:8px;-webkit-appearance:none;appearance:none;cursor:pointer}',""]),Q.Z=h},8208:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .sidebar{display:flex;flex-direction:column;position:absolute;top:0;bottom:0;right:0;z-index:5;margin:0;padding:0;box-sizing:border-box;background-color:var(--sidebar-bg-color);box-shadow:var(--sidebar-shadow);pointer-events:var(--ui-pointerEvents);overflow:hidden;border-radius:0;width:calc(302px - var(--space-factor) * 2);border-left:1px solid var(--sidebar-border-color)}:root[dir=rtl] .excalidraw .sidebar{left:0;right:auto}.excalidraw .sidebar--docked{box-shadow:none}:root[dir=rtl] .excalidraw .sidebar{border-right:1px solid var(--sidebar-border-color);border-left:0}.excalidraw .sidebar__header{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;width:100%;padding:1rem .75rem;position:relative}.excalidraw .sidebar__header::after{content:"";width:calc(100% - 1.5rem);height:1px;background:var(--sidebar-border-color);position:absolute;bottom:-1px}.excalidraw .sidebar__header__buttons{gap:0;display:flex;align-items:center;margin-left:auto}.excalidraw .sidebar__header__buttons button{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));--button-bg: transparent;border:0 !important;width:var(--lg-button-size);height:var(--lg-button-size);padding:0}.excalidraw .sidebar__header__buttons button svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .sidebar__header__buttons button:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .sidebar__header__buttons button:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .sidebar__header__buttons button.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .sidebar__header__buttons button.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .sidebar__header__buttons button.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw .sidebar__header__buttons button svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .sidebar__header__buttons button:hover{background:var(--button-hover-bg, var(--island-bg-color))}.excalidraw .sidebar__header__buttons .sidebar__dock.selected svg{stroke:var(--color-primary);fill:var(--color-primary)}.excalidraw .sidebar-tabs-root{display:flex;flex-direction:column;flex:1 1 auto;padding:1rem 0}.excalidraw .sidebar-tabs-root [role=tabpanel]{flex:1;outline:none;flex:1 1 auto;display:flex;flex-direction:column;outline:none}.excalidraw .sidebar-tabs-root [role=tabpanel][data-state=inactive]{display:none !important}.excalidraw .sidebar-tabs-root [role=tablist]{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit, minmax(0, 1fr))}.excalidraw .sidebar-tabs-root>.sidebar__header{padding-top:0;padding-bottom:1rem}.excalidraw .sidebar-tab-trigger{--button-width: auto;--button-bg: transparent;--button-hover-bg: transparent;--button-active-bg: var(--color-primary);--button-hover-color: var(--color-primary);--button-hover-border: var(--color-primary)}.excalidraw .sidebar-tab-trigger[data-state=active]{--button-bg: var(--color-primary);--button-hover-bg: var(--color-primary-darker);--button-hover-color: var(--color-icon-white);--button-border: var(--color-primary);color:var(--color-icon-white)}.excalidraw .default-sidebar{display:flex;flex-direction:column}.excalidraw .default-sidebar .sidebar-triggers{display:flex;gap:0;padding:2px;margin-top:-3px;margin-bottom:-3px;border:1px solid var(--sidebar-border-color);background:var(--default-bg-color);border-radius:.625rem}.excalidraw .default-sidebar .sidebar-triggers .sidebar-tab-trigger{height:var(--lg-button-size);width:var(--lg-button-size);border:none}',""]),Q.Z=h},7051:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .sidebar-trigger{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));border:none;box-shadow:0 0 0 1px var(--color-surface-lowest);background-color:var(--color-surface-low);width:auto;height:var(--lg-button-size);display:flex;align-items:center;gap:.5rem;line-height:0;font-size:.75rem;letter-spacing:.4px}.excalidraw .sidebar-trigger svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .sidebar-trigger:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .sidebar-trigger:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .sidebar-trigger.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .sidebar-trigger.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .sidebar-trigger.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw .sidebar-trigger:active{box-shadow:0 0 0 1px var(--color-brand-active)}.excalidraw .sidebar-trigger svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .default-sidebar-trigger .sidebar-trigger__label{display:block}.excalidraw.excalidraw--mobile .default-sidebar-trigger .sidebar-trigger__label{display:none}",""]),Q.Z=h},5892:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .Spinner{display:flex;align-items:center;justify-content:center;height:100%;margin-left:auto;margin-right:auto;--spinner-color: var(--icon-fill-color)}.excalidraw .Spinner svg{-webkit-animation:rotate 1.6s linear infinite;animation:rotate 1.6s linear infinite;-webkit-animation-delay:var(--spinner-delay);animation-delay:var(--spinner-delay);-webkit-transform-origin:center center;transform-origin:center center}.excalidraw .Spinner circle{stroke:var(--spinner-color);-webkit-animation:dash 1.6s linear 0s infinite;animation:dash 1.6s linear 0s infinite;stroke-linecap:round}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,300;stroke-dashoffset:0}50%{stroke-dasharray:150,300;stroke-dashoffset:-200}100%{stroke-dasharray:1,300;stroke-dashoffset:-280}}@keyframes dash{0%{stroke-dasharray:1,300;stroke-dashoffset:0}50%{stroke-dasharray:150,300;stroke-dashoffset:-200}100%{stroke-dasharray:1,300;stroke-dashoffset:-280}}",""]),Q.Z=h},3874:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .Stack{--gap: 0;display:grid;gap:calc(var(--space-factor)*var(--gap))}.excalidraw .Stack_vertical{grid-template-columns:auto;grid-auto-flow:row;grid-auto-rows:-webkit-min-content;grid-auto-rows:min-content}.excalidraw .Stack_horizontal{grid-template-rows:auto;grid-auto-flow:column;grid-auto-columns:-webkit-min-content;grid-auto-columns:min-content}",""]),Q.Z=h},2681:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Stats{position:absolute;top:64px;right:12px;font-size:12px;z-index:10;pointer-events:var(--ui-pointerEvents)}.excalidraw .Stats h3{margin:0 24px 8px 0;white-space:nowrap}.excalidraw .Stats .close{float:right;height:16px;width:16px;cursor:pointer}.excalidraw .Stats .close svg{width:100%;height:100%}.excalidraw .Stats table{width:100%}.excalidraw .Stats table th{border-bottom:1px solid var(--input-border-color);padding:4px}.excalidraw .Stats table tr td:nth-child(2){min-width:24px;text-align:right}:root[dir=rtl] .excalidraw .Stats{left:12px;right:initial}:root[dir=rtl] .excalidraw .Stats h3{margin:0 0 8px 24px}:root[dir=rtl] .excalidraw .Stats .close{float:left}",""]),Q.Z=h},7802:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--Switch-disabled-color: var(--color-border-outline);--Switch-disabled-toggled-background: var(--color-border-outline-variant);--Switch-disabled-border: var(--color-border-outline-variant);--Switch-track-background: var(--island-bg-color);--Switch-thumb-background: var(--color-on-surface);--Switch-hover-background: var(--color-brand-hover);--Switch-active-background: var(--color-brand-active)}.excalidraw .Switch{position:relative;box-sizing:border-box;width:40px;height:20px;border-radius:12px;transition-property:background,border;transition-duration:150ms;transition-timing-function:ease-out;background:var(--Switch-track-background);border:1px solid var(--Switch-disabled-color)}.excalidraw .Switch:hover{background:var(--Switch-track-background);border:1px solid var(--Switch-hover-background)}.excalidraw .Switch:active{border:1px solid var(--Switch-active-background)}.excalidraw .Switch.toggled{background:var(--color-primary);border:1px solid var(--color-primary)}.excalidraw .Switch.toggled:hover{background:var(--color-primary-darker);border:1px solid var(--color-primary-darker)}.excalidraw .Switch.disabled{background:var(--Switch-track-background);border:1px solid var(--Switch-disabled-border)}.excalidraw .Switch.disabled.toggled{background:var(--Switch-disabled-toggled-background);border:1px solid var(--Switch-disabled-toggled-background)}.excalidraw .Switch:before{content:"";box-sizing:border-box;display:block;pointer-events:none;position:absolute;border-radius:100%;transition:all 150ms ease-out;width:10px;height:10px;top:4px;left:4px;background:var(--Switch-thumb-background)}.excalidraw .Switch:active:before{width:12px}.excalidraw .Switch.toggled:before{width:14px;height:14px;left:22px;top:2px;background:var(--Switch-track-background)}.excalidraw .Switch.toggled:active:before{width:16px;left:20px}.excalidraw .Switch.disabled:before{background:var(--Switch-disabled-color)}.excalidraw .Switch.disabled.toggled:before{background:var(--Switch-disabled-color)}.excalidraw .Switch input{width:100%;height:100%;margin:0;border-radius:12px;-webkit-appearance:none;appearance:none;cursor:pointer}.excalidraw .Switch input:disabled{cursor:unset}',""]),Q.Z=h},6759:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .TextInput{display:inline-block}",""]),Q.Z=h},9650:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Toast{-webkit-animation:fade-in .5s;animation:fade-in .5s;background-color:var(--button-gray-1);border-radius:4px;bottom:10px;box-sizing:border-box;cursor:default;left:50%;margin-left:-150px;padding:4px 0;position:absolute;text-align:center;width:300px;z-index:999999}.excalidraw .Toast .Toast__message{padding:0 1.6rem;color:var(--popup-text-color);white-space:pre-wrap}.excalidraw .Toast .close{position:absolute;top:0;right:0;padding:.4rem}.excalidraw .Toast .close .ToolIcon__icon{width:1.2rem;height:1.2rem}@-webkit-keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes fade-in{from{opacity:0}to{opacity:1}}",""]),Q.Z=h},2044:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .ToolIcon{border-radius:var(--border-radius-lg);display:inline-flex;align-items:center;position:relative;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;user-select:none}.excalidraw .ToolIcon__hidden{display:none !important}.excalidraw .ToolIcon.fillable .ToolIcon_type_radio:checked+.ToolIcon__icon,.excalidraw .ToolIcon.fillable .ToolIcon_type_checkbox:checked+.ToolIcon__icon{--icon-fill-color: var(--color-on-primary-container)}.excalidraw .ToolIcon.fillable .ToolIcon_type_radio:checked+.ToolIcon__icon svg,.excalidraw .ToolIcon.fillable .ToolIcon_type_checkbox:checked+.ToolIcon__icon svg{fill:var(--icon-fill-color)}.excalidraw .ToolIcon .ToolIcon_type_radio:checked+.ToolIcon__icon,.excalidraw .ToolIcon .ToolIcon_type_checkbox:checked+.ToolIcon__icon{background:var(--color-surface-primary-container);--keybinding-color: var(--color-on-primary-container)}.excalidraw .ToolIcon .ToolIcon_type_radio:checked+.ToolIcon__icon svg,.excalidraw .ToolIcon .ToolIcon_type_checkbox:checked+.ToolIcon__icon svg{color:var(--color-on-primary-container)}.excalidraw .ToolIcon .ToolIcon__keybinding{bottom:4px;right:4px}.excalidraw .ToolIcon .ToolIcon__icon:hover{background:var(--button-hover-bg)}.excalidraw .ToolIcon .ToolIcon__icon:active{background:var(--button-hover-bg);border:1px solid var(--button-active-border)}.excalidraw .ToolIcon .ToolIcon__icon:active svg{color:var(--color-on-primary-container)}.excalidraw .ToolIcon--plain{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon--plain .ToolIcon__icon{width:2rem;height:2rem}.excalidraw .ToolIcon_type_radio,.excalidraw .ToolIcon_type_checkbox{position:absolute;opacity:0;pointer-events:none}.excalidraw .ToolIcon__icon{box-sizing:border-box;width:var(--default-button-size);height:var(--default-button-size);color:var(--icon-fill-color);display:flex;justify-content:center;align-items:center;border-radius:var(--border-radius-lg)}.excalidraw .ToolIcon__icon+.ToolIcon__label{-webkit-margin-start:0;margin-inline-start:0}.excalidraw .ToolIcon__icon svg{position:relative;width:var(--default-icon-size);height:var(--default-icon-size);color:var(--icon-fill-color)}.excalidraw .ToolIcon__label{display:flex;align-items:center;color:var(--icon-fill-color);font-family:var(--ui-font);margin:0 .8em;text-overflow:ellipsis}.excalidraw .ToolIcon__label .Spinner{margin-left:.6em}.excalidraw .ToolIcon_size_small .ToolIcon__icon{width:2rem;height:2rem;font-size:.8em}.excalidraw .ToolIcon_type_button,.excalidraw .Modal .ToolIcon_type_button,.excalidraw .ToolIcon_type_button{padding:0;border:none;margin:0;font-size:inherit;background-color:initial}.excalidraw .ToolIcon_type_button:focus-visible,.excalidraw .Modal .ToolIcon_type_button:focus-visible,.excalidraw .ToolIcon_type_button:focus-visible{box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .ToolIcon_type_button.ToolIcon--selected,.excalidraw .Modal .ToolIcon_type_button.ToolIcon--selected,.excalidraw .ToolIcon_type_button.ToolIcon--selected{background-color:var(--button-gray-2)}.excalidraw .ToolIcon_type_button.ToolIcon--selected:active,.excalidraw .Modal .ToolIcon_type_button.ToolIcon--selected:active,.excalidraw .ToolIcon_type_button.ToolIcon--selected:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon_type_button:active,.excalidraw .Modal .ToolIcon_type_button:active,.excalidraw .ToolIcon_type_button:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon_type_button--show,.excalidraw .Modal .ToolIcon_type_button--show,.excalidraw .ToolIcon_type_button--show{visibility:visible}.excalidraw .ToolIcon_type_button--hide,.excalidraw .Modal .ToolIcon_type_button--hide,.excalidraw .ToolIcon_type_button--hide{display:none !important}.excalidraw .ToolIcon_type_floating{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon_type_floating:hover{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon_type_floating:active{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon_type_floating .ToolIcon__icon{background-color:var(--button-gray-1);width:2rem;height:2rem}.excalidraw .ToolIcon_type_floating .ToolIcon__icon:hover{background-color:var(--button-gray-2)}.excalidraw .ToolIcon_type_floating .ToolIcon__icon:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon__keybinding{position:absolute;bottom:2px;right:3px;font-size:.625rem;color:var(--keybinding-color);font-family:var(--ui-font);-webkit-user-select:none;user-select:none}:root[dir=ltr] .excalidraw .unlocked-icon{left:2px}:root[dir=rtl] .excalidraw .unlocked-icon{right:2px}.excalidraw .App-toolbar-container .ToolIcon__icon{width:var(--lg-button-size);height:var(--lg-button-size)}@media screen and (max-width: 450px){.excalidraw .App-toolbar-container .ToolIcon__icon{width:1.8rem;height:1.8rem}}@media screen and (max-width: 379px){.excalidraw .App-toolbar-container .ToolIcon__icon{width:1.5rem;height:1.5rem}}.excalidraw .App-toolbar-container .ToolIcon__icon svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .App-toolbar-container .ToolIcon__LaserPointer .ToolIcon__icon{width:var(--default-button-size);height:var(--default-button-size)}",""]),Q.Z=h},9144:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .App-toolbar.zen-mode .ToolIcon__keybinding,.excalidraw .App-toolbar.zen-mode .HintViewer{display:none}.excalidraw .App-toolbar__divider{width:1px;height:1.5rem;align-self:center;background-color:var(--default-border-color);margin:0 .25rem}.excalidraw--mobile.excalidraw .App-toolbar__divider{margin:0}.excalidraw .App-toolbar__extra-tools-trigger{box-shadow:none;border:0;background-color:rgba(0,0,0,0)}.excalidraw .App-toolbar__extra-tools-trigger:active{background-color:var(--button-hover-bg);box-shadow:0 0 0 1px var(--button-active-border, var(--color-primary-darkest)) inset}.excalidraw .App-toolbar__extra-tools-trigger--selected,.excalidraw .App-toolbar__extra-tools-trigger--selected:hover{background:var(--color-primary-light);color:var(--color-primary)}.excalidraw .App-toolbar__extra-tools-dropdown{margin-top:.375rem;right:0;min-width:11.875rem;z-index:1}",""]),Q.Z=h},6626:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw-tooltip{--ui-font: Assistant, system-ui, BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;font-family:var(--ui-font);position:fixed;z-index:var(--zIndex-popup);padding:8px;border-radius:6px;box-sizing:border-box;pointer-events:none;word-wrap:break-word;background:#000;line-height:1.5;text-align:center;font-size:13px;font-weight:500;color:#fff;display:none}.excalidraw-tooltip.excalidraw-tooltip--visible{display:block}.excalidraw-tooltip-wrapper{display:flex}.excalidraw-tooltip-icon{width:.9em;height:.9em;margin-left:5px;margin-top:1px;display:flex}.excalidraw--mobile.excalidraw-tooltip-icon{display:none}",""]),Q.Z=h},6359:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .UserList{pointer-events:none;padding:var(--space-factor) var(--space-factor) var(--space-factor) var(--space-factor);display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.625rem;max-height:140px;max-width:290px;overflow:hidden}.excalidraw .UserList:empty{display:none}.excalidraw .UserList>*{pointer-events:var(--ui-pointerEvents)}.excalidraw .UserList_mobile{padding:0;justify-content:normal;margin:.5rem 0}",""]),Q.Z=h},7399:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .dropdown-menu{position:absolute;top:100%;margin-top:.25rem}.excalidraw .dropdown-menu--mobile{left:0;width:100%;row-gap:.75rem}.excalidraw .dropdown-menu--mobile .dropdown-menu-container{padding:8px 8px;box-sizing:border-box;box-shadow:var(--shadow-island);border-radius:var(--border-radius-lg);position:relative;transition:box-shadow .5s ease-in-out}.excalidraw .dropdown-menu--mobile .dropdown-menu-container.zen-mode{box-shadow:none}.excalidraw .dropdown-menu .dropdown-menu-container{background-color:var(--island-bg-color);max-height:calc(100vh - 150px);overflow-y:auto;--gap: 2}.excalidraw .dropdown-menu .dropdown-menu-item-base{display:flex;padding:0 .625rem;-webkit-column-gap:.625rem;column-gap:.625rem;font-size:.875rem;color:var(--color-on-surface);width:100%;box-sizing:border-box;font-weight:normal;font-family:inherit}.excalidraw .dropdown-menu .dropdown-menu-item{background-color:rgba(0,0,0,0);border:1px solid rgba(0,0,0,0);align-items:center;height:2rem;cursor:pointer;border-radius:var(--border-radius-md)}@media screen and (min-width: 1921px){.excalidraw .dropdown-menu .dropdown-menu-item{height:2.25rem}}.excalidraw .dropdown-menu .dropdown-menu-item--selected{background:var(--color-primary-light);--icon-fill-color: var(--color-primary-darker)}.excalidraw .dropdown-menu .dropdown-menu-item__text{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.excalidraw .dropdown-menu .dropdown-menu-item__shortcut{-webkit-margin-start:auto;margin-inline-start:auto;opacity:.5}.excalidraw .dropdown-menu .dropdown-menu-item:hover{background-color:var(--button-hover-bg);text-decoration:none}.excalidraw .dropdown-menu .dropdown-menu-item:active{background-color:var(--button-hover-bg);border-color:var(--color-brand-active)}.excalidraw .dropdown-menu .dropdown-menu-item svg{width:1rem;height:1rem;display:block}.excalidraw .dropdown-menu .dropdown-menu-item-custom{margin-top:.5rem}.excalidraw .dropdown-menu .dropdown-menu-group-title{font-size:14px;text-align:left;margin:10px 0;font-weight:500}.excalidraw .dropdown-menu-button{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));width:var(--lg-button-size);height:var(--lg-button-size);--background: var(--color-surface-mid);background-color:var(--background)}.excalidraw .dropdown-menu-button svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .dropdown-menu-button:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .dropdown-menu-button:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .dropdown-menu-button.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .dropdown-menu-button.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .dropdown-menu-button.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw.theme--dark.excalidraw .dropdown-menu-button{--background: var(--color-surface-high)}.excalidraw.theme--dark.excalidraw .dropdown-menu-button:hover{--background: #363541}.excalidraw .dropdown-menu-button:hover{--background: var(--color-surface-high);background-color:var(--background);text-decoration:none}.excalidraw .dropdown-menu-button:active{border-color:var(--color-primary)}.excalidraw .dropdown-menu-button svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .dropdown-menu-button--mobile{border:none;margin:0;padding:0;width:var(--default-button-size);height:var(--default-button-size)}",""]),Q.Z=h},8793:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".footer-center{pointer-events:none;display:flex;width:100%;justify-content:flex-start;-webkit-margin-end:.6rem;margin-inline-end:.6rem}.footer-center>*{pointer-events:var(--ui-pointerEvents)}",""]),Q.Z=h},3397:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .collab-button{--button-bg: var(--color-primary);--button-color: white;--button-border: var(--color-primary);--button-width: var(--lg-button-size);--button-height: var(--lg-button-size);--button-hover-bg: var(--color-primary-darker);--button-hover-border: var(--color-primary-darker);--button-active-bg: var(--color-primary-darker);box-shadow:0 0 0 1px var(--color-surface-lowest);flex-shrink:0}.excalidraw .collab-button.active.active{background-color:#0fb884;border-color:#0fb884}.excalidraw .collab-button.active.active svg{color:#fff}.excalidraw .collab-button.active.active:hover,.excalidraw .collab-button.active.active:active{background-color:#0fb884;border-color:#0fb884}.excalidraw.theme--dark .collab-button{color:var(--color-gray-90)}.excalidraw .CollabButton.is-collaborating{background-color:var(--button-special-active-bg-color)}.excalidraw .CollabButton.is-collaborating .ToolIcon__icon svg,.excalidraw .CollabButton.is-collaborating .ToolIcon__label{color:var(--icon-green-fill-color)}.excalidraw .CollabButton-collaborators{min-width:1em;min-height:1em;line-height:1;position:absolute;bottom:-5px;padding:3px;border-radius:50%;background-color:#b2f2bb;color:#2b8a3e;font-size:.6rem;font-family:"Cascadia"}:root[dir=ltr] .excalidraw .CollabButton-collaborators{right:-5px}:root[dir=rtl] .excalidraw .CollabButton-collaborators{left:-5px}',""]),Q.Z=h},4343:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".excalidraw .ActiveFile .ActiveFile__fileName{display:flex;align-items:center}.excalidraw .ActiveFile .ActiveFile__fileName span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:9.3em}.excalidraw .ActiveFile .ActiveFile__fileName svg{width:1.15em;-webkit-margin-end:.3em;margin-inline-end:.3em;-webkit-transform:scaleY(0.9);transform:scaleY(0.9)}",""]),Q.Z=h},1569:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,'.excalidraw .virgil{font-family:"Virgil"}.excalidraw .welcome-screen-decor{pointer-events:none;color:var(--color-gray-40)}.excalidraw .welcome-screen-decor a{--color: var(--color-primary);color:var(--color);text-decoration:none;margin-bottom:-6px}.excalidraw.theme--dark .welcome-screen-decor{color:var(--color-gray-60)}@media(max-height: 599px){.excalidraw .welcome-screen-decor-hint{display:none !important}}@media(max-width: 1024px),(max-width: 800px){.excalidraw .welcome-screen-decor-hint .welcome-screen-decor--help,.excalidraw .welcome-screen-decor-hint .welcome-screen-decor--menu{display:none}}.excalidraw .welcome-screen-decor-hint--help{display:flex;position:absolute;right:0;bottom:100%}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--help{left:0;right:auto}.excalidraw .welcome-screen-decor-hint--help svg{margin-top:.5rem;width:85px;height:71px;-webkit-transform:scaleX(-1) rotate(80deg);transform:scaleX(-1) rotate(80deg)}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--help svg{-webkit-transform:rotate(80deg);transform:rotate(80deg)}.excalidraw .welcome-screen-decor-hint--toolbar{position:absolute;top:100%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);margin-top:2.5rem;display:flex;align-items:baseline}.excalidraw .welcome-screen-decor-hint--toolbar .welcome-screen-decor-hint__label{width:120px;position:relative;top:-0.5rem}.excalidraw .welcome-screen-decor-hint--toolbar svg{width:38px;height:78px}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--toolbar svg{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.excalidraw .welcome-screen-decor-hint--menu{position:absolute;width:320px;font-size:1rem;top:100%;margin-top:.25rem;-webkit-margin-start:.6rem;margin-inline-start:.6rem;display:flex;align-items:flex-end;gap:.5rem}.excalidraw .welcome-screen-decor-hint--menu svg{width:41px;height:94px}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--menu svg{-webkit-transform:scaleX(-1);transform:scaleX(-1)}@media(max-width: 860px){.excalidraw .welcome-screen-decor-hint--menu .welcome-screen-decor-hint__label{max-width:160px}}.excalidraw .welcome-screen-center{display:flex;flex-direction:column;gap:2rem;justify-content:center;align-items:center;position:absolute;pointer-events:none;left:1rem;top:1rem;right:1rem;bottom:1rem}.excalidraw .welcome-screen-center__logo{display:flex;align-items:center;-webkit-column-gap:.75rem;column-gap:.75rem;font-size:2.25rem}.excalidraw .welcome-screen-center__heading{font-size:1.125rem;text-align:center}.excalidraw .welcome-screen-menu{display:flex;flex-direction:column;gap:2px;justify-content:center;align-items:center}.excalidraw .welcome-screen-menu-item{box-sizing:border-box;pointer-events:var(--ui-pointerEvents);color:var(--color-gray-50);font-size:.875rem;width:100%;min-width:300px;max-width:400px;display:grid;align-items:center;justify-content:space-between;background:none;border:1px solid rgba(0,0,0,0);padding:.75rem;border-radius:var(--border-radius-md);grid-template-columns:calc(var(--default-icon-size) + .5rem) 1fr 3rem}.excalidraw .welcome-screen-menu-item__text{display:flex;align-items:center;margin-right:auto;text-align:left;-webkit-column-gap:.5rem;column-gap:.5rem}.excalidraw .welcome-screen-menu-item__icon{width:var(--default-icon-size);height:var(--default-icon-size)}.excalidraw .welcome-screen-menu-item__shortcut{margin-left:auto;color:var(--color-gray-40);font-size:.75rem}.excalidraw .welcome-screen-menu-item:hover{text-decoration:none;background:var(--button-hover-bg)}.excalidraw .welcome-screen-menu-item:hover .welcome-screen-menu-item__shortcut{color:var(--color-gray-50)}.excalidraw .welcome-screen-menu-item:hover .welcome-screen-menu-item__text{color:var(--color-gray-100)}.excalidraw .welcome-screen-menu-item:active{background:var(--button-hover-bg);border-color:var(--color-brand-active)}.excalidraw .welcome-screen-menu-item:active .welcome-screen-menu-item__shortcut{color:var(--color-gray-50)}.excalidraw .welcome-screen-menu-item:active .welcome-screen-menu-item__text{color:var(--color-gray-100)}.excalidraw .welcome-screen-menu-item:active--promo{color:var(--color-promo) !important}.excalidraw .welcome-screen-menu-item:active--promo:hover .welcome-screen-menu-item__text{color:var(--color-promo) !important}.excalidraw.theme--dark .welcome-screen-menu-item{color:var(--color-gray-60)}.excalidraw.theme--dark .welcome-screen-menu-item__shortcut{color:var(--color-gray-60)}.excalidraw.theme--dark .welcome-screen-menu-item:hover{background-color:var(--color-surface-low)}.excalidraw.theme--dark .welcome-screen-menu-item:hover .welcome-screen-menu-item__shortcut{color:var(--color-gray-50)}.excalidraw.theme--dark .welcome-screen-menu-item:hover .welcome-screen-menu-item__text{color:var(--color-gray-10)}.excalidraw.theme--dark .welcome-screen-menu-item:active .welcome-screen-menu-item__text{color:var(--color-gray-10)}@media(max-height: 599px){.excalidraw .welcome-screen-center{margin-top:4rem}}@media(min-height: 600px)and (max-height: 900px){.excalidraw .welcome-screen-center{margin-top:8rem}}@media(max-height: 500px),(max-width: 320px){.excalidraw .welcome-screen-center{display:none}}',""]),Q.Z=h},9915:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,".visually-hidden{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);white-space:nowrap;-webkit-user-select:none;user-select:none}.LoadingMessage{position:absolute;top:0;right:0;bottom:0;left:0;z-index:999;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.LoadingMessage .Spinner{font-size:2.8em}.LoadingMessage .LoadingMessage-text{margin-top:1em;font-size:.8em}.LoadingMessage--dark{background-color:#121212;color:#ced4da}",""]),Q.Z=h},9310:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y),S=e(1667),I=e.n(S),v=new URL(e(7984),e.b),n=new URL(e(1639),e.b),M=h()(E()),Z=I()(v),H=I()(n);M.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}:export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--theme-filter: none;--button-destructive-bg-color: #ffe3e3;--button-destructive-color: #c92a2a;--button-gray-1: #e9ecef;--button-gray-2: #ced4da;--button-gray-3: #adb5bd;--button-special-active-bg-color: #ebfbee;--dialog-border-color: var(--color-gray-20);--dropdown-icon: url("+Z+");--focus-highlight-color: #a5d8ff;--icon-fill-color: var(--color-on-surface);--icon-green-fill-color: #2b8a3e;--default-bg-color: #ffffff;--input-bg-color: #ffffff;--input-border-color: #ced4da;--input-hover-bg-color: #f1f3f5;--input-label-color: #495057;--island-bg-color: #ffffff;--keybinding-color: var(--color-gray-40);--link-color: #1c7ed6;--overlay-bg-color: rgba(255, 255, 255, 0.88);--popup-bg-color: var(--island-bg-color);--popup-secondary-bg-color: #f1f3f5;--popup-text-color: #000000;--popup-text-inverted-color: #ffffff;--select-highlight-color: #339af0;--shadow-island: 0px 0px 0.9310142993927002px 0px rgba(0, 0, 0, 0.17), 0px 0px 3.1270833015441895px 0px rgba(0, 0, 0, 0.08), 0px 7px 14px 0px rgba(0, 0, 0, 0.05);--button-hover-bg: var(--color-surface-high);--button-active-bg: var(--color-surface-high);--button-active-border: var(--color-brand-active);--default-border-color: var(--color-surface-high);--default-button-size: 2rem;--default-icon-size: 1rem;--lg-button-size: 2.25rem;--lg-icon-size: 1rem;--editor-container-padding: 1rem;--scrollbar-thumb: var(--button-gray-2);--scrollbar-thumb-hover: var(--button-gray-3);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-20);--sidebar-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--sidebar-border-color: var(--color-surface-high);--sidebar-bg-color: var(--island-bg-color);--library-dropdown-shadow: 0px 15px 6px rgba(0, 0, 0, 0.01), 0px 8px 5px rgba(0, 0, 0, 0.05), 0px 4px 4px rgba(0, 0, 0, 0.09), 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1);--space-factor: 0.25rem;--text-primary-color: var(--color-on-surface);--color-selection: #6965db;--color-icon-white: #ffffff;--color-primary: #6965db;--color-primary-darker: #5b57d1;--color-primary-darkest: #4a47b1;--color-primary-light: #e3e2fe;--color-primary-light-darker: #d7d5ff;--color-gray-10: #f5f5f5;--color-gray-20: #ebebeb;--color-gray-30: #d6d6d6;--color-gray-40: #b8b8b8;--color-gray-50: #999999;--color-gray-60: #7a7a7a;--color-gray-70: #5c5c5c;--color-gray-80: #3d3d3d;--color-gray-85: #242424;--color-gray-90: #1e1e1e;--color-gray-100: #121212;--color-warning: #fceeca;--color-warning-dark: #f5c354;--color-warning-darker: #f3ab2c;--color-warning-darkest: #ec8b14;--color-text-warning: var(--text-primary-color);--color-danger: #db6965;--color-danger-dark: #db6965;--color-danger-darker: #d65550;--color-danger-darkest: #d1413c;--color-danger-text: black;--color-danger-background: #fff0f0;--color-danger-icon-background: #ffdad6;--color-danger-color: #700000;--color-danger-icon-color: #700000;--color-warning-background: var(--color-warning);--color-warning-icon-background: var(--color-warning-dark);--color-warning-color: var(--text-primary-color);--color-warning-icon-color: var(--text-primary-color);--color-muted: var(--color-gray-30);--color-muted-darker: var(--color-gray-60);--color-muted-darkest: var(--color-gray-100);--color-muted-background: var(--color-gray-80);--color-muted-background-darker: var(--color-gray-100);--color-promo: #e70078;--color-success: #268029;--color-success-lighter: #cafccc;--color-logo-icon: var(--color-primary);--color-logo-text: #190064;--border-radius-md: 0.375rem;--border-radius-lg: 0.5rem;--color-surface-high: hsl(244, 100%, 97%);--color-surface-mid: hsl(240 25% 96%);--color-surface-low: hsl(240 25% 94%);--color-surface-lowest: #ffffff;--color-on-surface: #1b1b1f;--color-brand-hover: #5753d0;--color-on-primary-container: #030064;--color-surface-primary-container: #e0dfff;--color-brand-active: #4440bf;--color-border-outline: #767680;--color-border-outline-variant: #c5c5d0;--color-surface-primary-container: #e0dfff}@media screen and (min-device-width: 1921px){.excalidraw{--lg-button-size: 2.5rem;--lg-icon-size: 1.25rem;--default-button-size: 2.25rem;--default-icon-size: 1.25rem}}.excalidraw.theme--dark.theme--dark-background-none{background:none}.excalidraw.theme--dark{--theme-filter: invert(93%) hue-rotate(180deg);--button-destructive-bg-color: #5a0000;--button-destructive-color: #ffa8a8;--button-gray-1: #363636;--button-gray-2: #272727;--button-gray-3: #222;--button-special-active-bg-color: #204624;--dialog-border-color: var(--color-gray-80);--dropdown-icon: url("+H+');--focus-highlight-color: #228be6;--icon-green-fill-color: #69db7c;--default-bg-color: #121212;--input-bg-color: #121212;--input-border-color: #2e2e2e;--input-hover-bg-color: #181818;--input-label-color: #e9ecef;--island-bg-color: #232329;--keybinding-color: var(--color-gray-60);--link-color: #4dabf7;--overlay-bg-color: rgba(52, 58, 64, 0.12);--popup-secondary-bg-color: #222;--popup-text-color: #ced4da;--popup-text-inverted-color: #2c2c2c;--select-highlight-color: #4dabf7;--shadow-island: 0px 0px 0.9310142993927002px 0px rgba(0, 0, 0, 0.17), 0px 0px 3.1270833015441895px 0px rgba(0, 0, 0, 0.08), 0px 7px 14px 0px rgba(0, 0, 0, 0.05);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-85);--scrollbar-thumb: #343a40;--scrollbar-thumb-hover: #495057;--color-selection: #3530c4;--color-icon-white: var(--color-gray-90);--color-primary: #a8a5ff;--color-primary-darker: #b2aeff;--color-primary-darkest: #beb9ff;--color-primary-light: #4f4d6f;--color-primary-light-darker: #43415e;--color-text-warning: var(--color-gray-80);--color-danger: #ffa8a5;--color-danger-dark: #672120;--color-danger-darker: #8f2625;--color-danger-darkest: #ac2b29;--color-danger-text: #fbcbcc;--color-danger-background: #fbcbcc;--color-danger-icon-background: #672120;--color-danger-color: #261919;--color-danger-icon-color: #fbcbcc;--color-warning-background: var(--color-warning);--color-warning-icon-background: var(--color-warning-dark);--color-warning-color: var(--color-gray-80);--color-warning-icon-color: var(--color-gray-80);--color-muted: var(--color-gray-80);--color-muted-darker: var(--color-gray-60);--color-muted-darkest: var(--color-gray-20);--color-muted-background: var(--color-gray-40);--color-muted-background-darker: var(--color-gray-20);--color-promo: #d297ff;--color-logo-text: #e2dfff;--color-surface-high: hsl(245, 10%, 21%);--color-surface-low: hsl(240, 8%, 15%);--color-surface-mid: hsl(240 6% 10%);--color-surface-lowest: hsl(0, 0%, 7%);--color-on-surface: #e3e3e8;--color-brand-hover: #bbb8ff;--color-on-primary-container: #e0dfff;--color-surface-primary-container: #403e6a;--color-brand-active: #d0ccff;--color-border-outline: #8e8d9c;--color-border-outline-variant: #46464f;--color-surface-primary-container: #403e6a}:root{--zIndex-canvas: 1;--zIndex-interactiveCanvas: 2;--zIndex-wysiwyg: 3;--zIndex-layerUI: 4;--zIndex-eyeDropperBackdrop: 5;--zIndex-eyeDropperPreview: 6;--zIndex-modal: 1000;--zIndex-popup: 1001;--zIndex-toast: 999999;--sab: env(safe-area-inset-bottom);--sal: env(safe-area-inset-left);--sar: env(safe-area-inset-right);--sat: env(safe-area-inset-top)}.excalidraw{--ui-font: Assistant, system-ui, BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;font-family:var(--ui-font);position:relative;overflow:hidden;color:var(--text-primary-color);display:flex;top:0;bottom:0;left:0;right:0;height:100%;width:100%;-webkit-user-select:none;user-select:none}.excalidraw button{cursor:pointer}.excalidraw:focus{outline:none}.excalidraw a{font-weight:500;text-decoration:none;color:var(--link-color)}.excalidraw a:hover{text-decoration:underline}.excalidraw canvas{touch-action:none;image-rendering:pixelated;image-rendering:-moz-crisp-edges;z-index:var(--zIndex-canvas)}.excalidraw canvas.interactive{z-index:var(--zIndex-interactiveCanvas)}.excalidraw__canvas-wrapper,.excalidraw__canvas.static{pointer-events:none}.excalidraw__canvas{position:absolute}.excalidraw__embeddable{width:100%;height:100%;border:0}.excalidraw__embeddable-container{position:absolute;z-index:2;-webkit-transform-origin:top left;transform-origin:top left;pointer-events:none}.excalidraw.theme--dark canvas{-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .FixedSideContainer{padding-top:var(--sat, 0);padding-right:var(--sar, 0);padding-bottom:var(--sab, 0);padding-left:var(--sal, 0)}.excalidraw .panelRow{display:flex;justify-content:space-between}.excalidraw .panelColumn{display:flex;flex-direction:column;row-gap:.75rem}.excalidraw .panelColumn h3,.excalidraw .panelColumn legend,.excalidraw .panelColumn .control-label{margin:0;margin-bottom:.25rem;font-size:.75rem;color:var(--text-primary-color);font-weight:normal;display:block}.excalidraw .panelColumn .control-label input{display:block;width:100%}.excalidraw .panelColumn legend{padding:0}.excalidraw .panelColumn .iconSelectList{flex-wrap:wrap;position:relative}.excalidraw .panelColumn .buttonList{flex-wrap:wrap;display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem}.excalidraw .panelColumn .buttonList label{font-size:.75rem}.excalidraw .panelColumn .buttonList input[type=radio],.excalidraw .panelColumn .buttonList input[type=button]{opacity:0;position:absolute;pointer-events:none}.excalidraw .panelColumn .buttonList .iconRow{margin-top:8px}.excalidraw .panelColumn fieldset{margin:0;padding:0;border:none}.excalidraw .divider{width:1px;background-color:#e9ecef;margin:1px}.excalidraw .welcome-screen-menu-item:focus-visible,.excalidraw .dropdown-menu-item:focus-visible,.excalidraw button:focus-visible,.excalidraw .buttonList label:focus-within,.excalidraw input:focus-visible{outline:rgba(0,0,0,0);box-shadow:0 0 0 1px var(--color-brand-hover)}.excalidraw .buttonList .ToolIcon__icon{all:unset !important;display:flex !important}.excalidraw .buttonList button{background-color:rgba(0,0,0,0)}.excalidraw .buttonList label,.excalidraw .buttonList button,.excalidraw .buttonList .zIndexButton{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));padding:0}.excalidraw .buttonList label svg,.excalidraw .buttonList button svg,.excalidraw .buttonList .zIndexButton svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .buttonList label:hover,.excalidraw .buttonList button:hover,.excalidraw .buttonList .zIndexButton:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .buttonList label:active,.excalidraw .buttonList button:active,.excalidraw .buttonList .zIndexButton:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .buttonList label.active,.excalidraw .buttonList button.active,.excalidraw .buttonList .zIndexButton.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .buttonList label.active:hover,.excalidraw .buttonList button.active:hover,.excalidraw .buttonList .zIndexButton.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .buttonList label.active svg,.excalidraw .buttonList button.active svg,.excalidraw .buttonList .zIndexButton.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw .buttonList label svg,.excalidraw .buttonList button svg,.excalidraw .buttonList .zIndexButton svg{width:var(--default-icon-size);height:var(--default-icon-size)}.excalidraw .App-top-bar{z-index:var(--zIndex-layerUI);display:flex;flex-direction:column;align-items:center}.excalidraw .App-bottom-bar{position:absolute;top:0;bottom:0;left:0;right:0;--bar-padding: calc(4 * var(--space-factor));padding-top:max(var(--bar-padding), var(--sat,0));padding-right:var(--sar, 0);padding-bottom:var(--sab, 0);padding-left:var(--sal, 0);z-index:4;display:flex;align-items:flex-end;pointer-events:none}.excalidraw .App-bottom-bar>.Island{width:100%;max-width:100%;min-width:100%;box-sizing:border-box;max-height:100%;display:flex;flex-direction:column;pointer-events:var(--ui-pointerEvents)}.excalidraw .App-bottom-bar>.Island .panelColumn{padding:8px 8px 0 8px}.excalidraw .App-toolbar{width:100%}.excalidraw .App-toolbar .eraser.ToolIcon:hover{--icon-fill-color: #fff;--keybinding-color: #fff}.excalidraw .App-toolbar .eraser.active{background-color:var(--color-primary)}.excalidraw .App-toolbar-content{display:flex;align-items:center;justify-content:space-between;padding:8px}.excalidraw .App-toolbar-content .dropdown-menu--mobile{bottom:55px;top:auto}.excalidraw .App-mobile-menu{width:100%;overflow-x:visible;overflow-y:auto;box-sizing:border-box;margin-bottom:var(--bar-padding)}.excalidraw .App-menu{display:grid;color:var(--icon-fill-color)}.excalidraw .shapes-section{display:flex;justify-content:center;pointer-events:none !important}.excalidraw .shapes-section>*{pointer-events:var(--ui-pointerEvents)}.excalidraw .App-menu_top{grid-template-columns:1fr 2fr 1fr;grid-gap:2rem;align-items:flex-start;cursor:default;pointer-events:none !important}.excalidraw .App-menu_top>*{pointer-events:var(--ui-pointerEvents)}@media(min-width: 1536px){.excalidraw .App-menu_top{grid-template-columns:1fr 1fr 1fr;grid-gap:3rem}}.excalidraw .App-menu_top>*:first-child{justify-self:flex-start}.excalidraw .App-menu_top>*:last-child{justify-self:flex-end}.excalidraw .App-menu_bottom{position:absolute;bottom:1rem;display:flex;justify-content:space-between;align-items:flex-start;cursor:default;pointer-events:none !important;box-sizing:border-box;padding:0 1rem}.excalidraw .App-menu_bottom--transition-left section{width:185px}.excalidraw .App-menu_bottom section{display:flex}.excalidraw .App-menu_bottom>*:first-child{justify-self:flex-start}.excalidraw .App-menu_bottom>*:last-child{justify-self:flex-end}.excalidraw .App-menu_left{grid-template-rows:1fr auto 1fr;height:100%}.excalidraw .App-menu_right{grid-template-rows:1fr;height:100%}.excalidraw .App-menu__left{overflow-y:auto;padding:.75rem;width:202px;box-sizing:border-box;position:absolute}.excalidraw .dropdown-select{height:1.5rem;padding:0;-webkit-padding-start:.5rem;padding-inline-start:.5rem;-webkit-padding-end:1.5rem;padding-inline-end:1.5rem;color:var(--icon-fill-color);background-color:var(--button-gray-1);border-radius:var(--space-factor);border:1px solid var(--button-gray-2);font-size:.8rem;font-family:inherit;outline:none;-webkit-appearance:none;appearance:none;background-image:var(--dropdown-icon);background-repeat:no-repeat;background-position:right .7rem top 50%,0 0;background-size:.65em auto,100%}:root[dir=rtl] .excalidraw .dropdown-select{background-position:left .7rem top 50%,0 0}.excalidraw .dropdown-select:focus{box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .dropdown-select:hover{background-color:var(--button-gray-2)}.excalidraw .dropdown-select:active{background-color:var(--button-gray-2)}.excalidraw .dropdown-select__language{height:2rem;background-color:var(--island-bg-color);border-color:var(--default-border-color) !important;cursor:pointer}.excalidraw .dropdown-select__language:hover{background-color:var(--island-bg-color)}.excalidraw .scroll-back-to-content{border-radius:var(--border-radius-lg);background-color:var(--island-bg-color);color:var(--icon-fill-color);border:1px solid var(--default-border-color);padding:10px 20px;position:absolute;left:50%;bottom:30px;-webkit-transform:translateX(-50%);transform:translateX(-50%);pointer-events:var(--ui-pointerEvents);font-family:inherit}.excalidraw .scroll-back-to-content:hover{background-color:var(--button-hover-bg)}.excalidraw .scroll-back-to-content:active{border:1px solid var(--button-active-border)}.excalidraw .help-icon{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));border:none;box-shadow:0 0 0 1px var(--color-surface-lowest);background-color:var(--color-surface-low);width:var(--lg-button-size);height:var(--lg-button-size)}.excalidraw .help-icon svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .help-icon:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .help-icon:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .help-icon.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .help-icon.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .help-icon.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw .help-icon:active{box-shadow:0 0 0 1px var(--color-brand-active)}.excalidraw .help-icon svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .reset-zoom-button{font-family:var(--ui-font)}.excalidraw .finalize-button{display:grid;grid-auto-flow:column;gap:.4em;margin-top:auto;margin-bottom:auto;-webkit-margin-start:.6em;margin-inline-start:.6em}.excalidraw .undo-redo-buttons,.excalidraw .eraser-buttons{display:grid;grid-auto-flow:column;margin-top:auto;margin-bottom:auto;-webkit-margin-start:.6em;margin-inline-start:.6em}.excalidraw--mobile.excalidraw aside{display:none}.excalidraw--mobile.excalidraw .scroll-back-to-content{bottom:calc(80px + var(--sab, 0));z-index:-1}:root[dir=rtl] .excalidraw .rtl-mirror{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.excalidraw .zen-mode-visibility{visibility:visible;opacity:1;height:auto;width:auto;transition:opacity .5s}.excalidraw .zen-mode-visibility.zen-mode-visibility--hidden{visibility:hidden;opacity:0;height:0;width:0;transition:opacity .5s}.excalidraw .disable-pointerEvents{pointer-events:none !important}.excalidraw.excalidraw--view-mode .App-menu{display:flex;justify-content:space-between}.excalidraw input[type=text],.excalidraw textarea:not(.excalidraw-wysiwyg){color:var(--text-primary-color);border:1.5px solid var(--input-border-color);padding:.75rem;white-space:nowrap;border-radius:var(--space-factor);background-color:var(--input-bg-color)}.excalidraw input[type=text]:not(:focus):hover,.excalidraw textarea:not(.excalidraw-wysiwyg):not(:focus):hover{border-color:var(--color-brand-hover)}.excalidraw input[type=text]:focus,.excalidraw textarea:not(.excalidraw-wysiwyg):focus{outline:none;border-color:var(--color-brand-hover)}@media print{.excalidraw .App-bottom-bar,.excalidraw .FixedSideContainer,.excalidraw .layer-ui__wrapper{display:none}}.excalidraw ::-webkit-scrollbar{width:3px;height:3px}.excalidraw select::-webkit-scrollbar{width:10px}.excalidraw ::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:10px}.excalidraw ::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}.excalidraw ::-webkit-scrollbar-thumb:active{background:var(--scrollbar-thumb)}.excalidraw .mobile-misc-tools-container{position:absolute;top:calc(5rem - var(--editor-container-padding));right:calc(var(--editor-container-padding)*-1);display:flex;flex-direction:column;border:1px solid var(--sidebar-border-color);border-top-left-radius:var(--border-radius-lg);border-bottom-left-radius:var(--border-radius-lg);border-right:0;overflow:hidden;background-color:var(--island-bg-color)}.excalidraw .mobile-misc-tools-container .ToolIcon__icon{width:2rem;height:2rem;border-radius:0}.excalidraw .mobile-misc-tools-container .default-sidebar-trigger{border:0}.excalidraw .App-toolbar--mobile{overflow:visible;max-width:98vw}.excalidraw .App-toolbar--mobile .ToolIcon__keybinding{display:none}.excalidraw .UserList-Wrapper{margin:0;padding:0;border:none;text-align:left}.excalidraw .UserList-Wrapper legend{display:block;font-size:.75rem;font-weight:400;margin:0 0 .25rem;padding:0}.excalidraw .main-menu-trigger{border:none;box-shadow:0 0 0 1px var(--color-surface-lowest);background-color:var(--color-surface-low)}.excalidraw .main-menu-trigger:active{box-shadow:0 0 0 1px var(--color-brand-active)}.excalidraw .App-menu__left{--button-border: transparent;--button-bg: var(--color-surface-mid)}.excalidraw.theme--dark.excalidraw .App-menu__left{--button-hover-bg: #363541;--button-bg: var(--color-surface-high)}.ErrorSplash.excalidraw{min-height:100vh;padding:20px 0;overflow:auto;display:flex;align-items:center;justify-content:center;-webkit-user-select:text;user-select:text}.ErrorSplash.excalidraw .ErrorSplash-messageContainer{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;background-color:#ffe3e3;border:3px solid #c92a2a}.ErrorSplash.excalidraw .ErrorSplash-paragraph{margin:15px 0;max-width:600px}.ErrorSplash.excalidraw .ErrorSplash-paragraph.align-center{text-align:center}.ErrorSplash.excalidraw .bigger,.ErrorSplash.excalidraw .bigger button{font-size:1.1em}.ErrorSplash.excalidraw .smaller,.ErrorSplash.excalidraw .smaller button{font-size:.9em}.ErrorSplash.excalidraw .ErrorSplash-details{display:flex;flex-direction:column;align-items:flex-start}.ErrorSplash.excalidraw .ErrorSplash-details textarea{width:100%;margin:10px 0;font-family:"Cascadia";font-size:.8em}.excalidraw__embeddable-container .excalidraw__embeddable-container__inner{overflow:hidden;display:flex;align-items:center;justify-content:center;border-radius:var(--embeddable-radius)}.excalidraw__embeddable-container .excalidraw__embeddable__outer{width:100%;height:100%}.excalidraw__embeddable-container .excalidraw__embeddable__outer>*{border-radius:var(--embeddable-radius)}.excalidraw__embeddable-container .excalidraw__embeddable-hint{position:absolute;z-index:1;background:rgba(0,0,0,.5);padding:1rem 1.6rem;border-radius:12px;color:#fff;font-weight:bold;letter-spacing:.6px;font-family:"Assistant"}',""]),Q.Z=M},6464:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,"",""]),h.locals={themeFilter:"invert(93%) hue-rotate(180deg)",rightSidebarWidth:"302px"},Q.Z=h},5260:function(Se,Q,e){var D=e(8081),E=e.n(D),y=e(3645),h=e.n(y)()(E());h.push([Se.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw-hyperlinkContainer{display:flex;align-items:center;justify-content:space-between;position:absolute;box-shadow:0px 2px 4px 0 rgba(0,0,0,.3);z-index:100;background:var(--island-bg-color);border-radius:var(--border-radius-md);box-sizing:border-box;min-height:42px}.excalidraw-hyperlinkContainer-input,.excalidraw-hyperlinkContainer button{z-index:100}.excalidraw-hyperlinkContainer-input,.excalidraw-hyperlinkContainer-link{height:24px;padding:0 8px;line-height:24px;font-size:.9rem;font-weight:500;font-family:var(--ui-font)}.excalidraw-hyperlinkContainer-input{width:18rem;border:none;background-color:rgba(0,0,0,0);color:var(--text-primary-color);outline:none;border:none;box-shadow:none !important}.excalidraw-hyperlinkContainer-link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:15rem}.excalidraw-hyperlinkContainer button{color:#228be6;background-color:rgba(0,0,0,0) !important;font-weight:500}.excalidraw-hyperlinkContainer button.excalidraw-hyperlinkContainer--remove{color:#c92a2a}.excalidraw-hyperlinkContainer--remove .ToolIcon__icon svg{color:#fa5252}.excalidraw-hyperlinkContainer .ToolIcon__icon{width:2rem;height:2rem}.excalidraw-hyperlinkContainer__buttons{flex:0 0 auto}",""]),Q.Z=h},3645:function(Se){Se.exports=function(Q){var e=[];return e.toString=function(){return this.map(function(D){var E="",y=D[5]!==void 0;return D[4]&&(E+="@supports (".concat(D[4],") {")),D[2]&&(E+="@media ".concat(D[2]," {")),y&&(E+="@layer".concat(D[5].length>0?" ".concat(D[5]):""," {")),E+=Q(D),y&&(E+="}"),D[2]&&(E+="}"),D[4]&&(E+="}"),E}).join("")},e.i=function(D,E,y,h,S){typeof D=="string"&&(D=[[null,D,void 0]]);var I={};if(y)for(var v=0;v<this.length;v++){var n=this[v][0];n!=null&&(I[n]=!0)}for(var M=0;M<D.length;M++){var Z=[].concat(D[M]);y&&I[Z[0]]||(S!==void 0&&(Z[5]===void 0||(Z[1]="@layer".concat(Z[5].length>0?" ".concat(Z[5]):""," {").concat(Z[1],"}")),Z[5]=S),E&&(Z[2]&&(Z[1]="@media ".concat(Z[2]," {").concat(Z[1],"}")),Z[2]=E),h&&(Z[4]?(Z[1]="@supports (".concat(Z[4],") {").concat(Z[1],"}"),Z[4]=h):Z[4]="".concat(h)),e.push(Z))}},e}},1667:function(Se){Se.exports=function(Q,e){return e||(e={}),Q&&(Q=String(Q.__esModule?Q.default:Q),/^['"].*['"]$/.test(Q)&&(Q=Q.slice(1,-1)),e.hash&&(Q+=e.hash),/["'() \t\n]|(%20)/.test(Q)||e.needQuotes?'"'.concat(Q.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):Q)}},8081:function(Se){Se.exports=function(Q){return Q[1]}},7392:function(Se,Q,e){e.d(Q,{JQ:function(){return pe},vD:function(){return de},y7:function(){return le}});var D=e(1930),E=e(7169),y=e(9937),h=e(7651),S=e(583),I=e(4761),v=e(3474),n=e(4183),M=e(9827),Z=e(2767);function H(oe,P){var $=typeof Symbol<"u"&&oe[Symbol.iterator]||oe["@@iterator"];if(!$){if(Array.isArray(oe)||($=function(s,f){if(s){if(typeof s=="string")return W(s,f);var t=Object.prototype.toString.call(s).slice(8,-1);if(t==="Object"&&s.constructor&&(t=s.constructor.name),t==="Map"||t==="Set")return Array.from(s);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return W(s,f)}}(oe))||P&&oe&&typeof oe.length=="number"){$&&(oe=$);var b=0,R=function(){};return{s:R,n:function(){return b>=oe.length?{done:!0}:{done:!1,value:oe[b++]}},e:function(s){throw s},f:R}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _,g=!0,O=!1;return{s:function(){$=$.call(oe)},n:function(){var s=$.next();return g=s.done,s},e:function(s){O=!0,_=s},f:function(){try{g||$.return==null||$.return()}finally{if(O)throw _}}}}function W(oe,P){(P==null||P>oe.length)&&(P=oe.length);for(var $=0,b=new Array(P);$<P;$++)b[$]=oe[$];return b}function u(oe,P){var $=Object.keys(oe);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(oe);P&&(b=b.filter(function(R){return Object.getOwnPropertyDescriptor(oe,R).enumerable})),$.push.apply($,b)}return $}function U(oe){for(var P=1;P<arguments.length;P++){var $=arguments[P]!=null?arguments[P]:{};P%2?u(Object($),!0).forEach(function(b){(0,E.Z)(oe,b,$[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(oe,Object.getOwnPropertyDescriptors($)):u(Object($)).forEach(function(b){Object.defineProperty(oe,b,Object.getOwnPropertyDescriptor($,b))})}return oe}var le=(0,Z.z)({name:"unbindText",contextItemLabel:"labels.unbindText",trackEvent:{category:"element"},predicate:function(oe,P,$,b){return b.scene.getSelectedElements(P).some(function(R){return(0,n.Xo)(R)})},perform:function(oe,P,$,b){return b.scene.getSelectedElements(P).forEach(function(R){var _=(0,I.WJ)(R);if(_){var g,O=(0,I.X1)(_.originalText,(0,M.mO)(_),_.lineHeight),s=O.width,f=O.height,t=O.baseline,w=(0,v.eR)(R.id);(0,v.kT)(R.id);var l=(0,I.FE)(R,_),a=l.x,c=l.y;(0,S.DR)(_,{containerId:null,width:s,height:f,baseline:t,text:_.originalText,x:a,y:c}),(0,S.DR)(R,{boundElements:(g=R.boundElements)===null||g===void 0?void 0:g.filter(function(m){return m.id!==_.id}),height:w||R.height})}}),{elements:oe,appState:P,commitToHistory:!0}}}),de=(0,Z.z)({name:"bindText",contextItemLabel:"labels.bindText",trackEvent:{category:"element"},predicate:function(oe,P,$,b){var R=b.scene.getSelectedElements(P);if(R.length===2){var _,g=(0,h.iB)(R[0])||(0,h.iB)(R[1]);if((0,n.mG)(R[0])?_=R[0]:(0,n.mG)(R[1])&&(_=R[1]),g&&_&&(0,I.WJ)(_)===null)return!0}return!1},perform:function(oe,P,$,b){var R,_,g=b.scene.getSelectedElements(P);(0,h.iB)(g[0])&&(0,n.mG)(g[1])?(R=g[0],_=g[1]):(R=g[1],_=g[0]),(0,S.DR)(R,{containerId:_.id,verticalAlign:y.oX.MIDDLE,textAlign:y.I8.CENTER}),(0,S.DR)(_,{boundElements:(_.boundElements||[]).concat({type:"text",id:R.id})});var O=_.height;return(0,I.oN)(R,_),(0,v.h_)(_.id,O),{elements:he(oe,_,R),appState:U(U({},P),{},{selectedElementIds:(0,E.Z)({},_.id,!0)}),commitToHistory:!0}}}),he=function(oe,P,$){var b=oe.slice(),R=b.findIndex(function(g){return g.id===$.id});b.splice(R,1);var _=b.findIndex(function(g){return g.id===P.id});return b.splice(_+1,0,$),b},pe=(0,Z.z)({name:"wrapTextInContainer",contextItemLabel:"labels.createContainerFromText",trackEvent:{category:"element"},predicate:function(oe,P,$,b){var R=b.scene.getSelectedElements(P),_=R.every(function(g){return(0,h.iB)(g)});return R.length>0&&_},perform:function(oe,P,$,b){var R,_=b.scene.getSelectedElements(P),g=oe.slice(),O={},s=H(_);try{var f=function(){var t=R.value;if((0,h.iB)(t)){var w,l=(0,h.Up)({type:"rectangle",backgroundColor:P.currentItemBackgroundColor,boundElements:[].concat((0,D.Z)(t.boundElements||[]),[{id:t.id,type:"text"}]),angle:t.angle,fillStyle:P.currentItemFillStyle,strokeColor:P.currentItemStrokeColor,roughness:P.currentItemRoughness,strokeWidth:P.currentItemStrokeWidth,strokeStyle:P.currentItemStrokeStyle,roundness:P.currentItemRoundness==="round"?{type:(0,n.QI)("rectangle")?y.a6.ADAPTIVE_RADIUS:y.a6.PROPORTIONAL_RADIUS}:null,opacity:100,locked:!1,x:t.x-y.gK,y:t.y-y.gK,width:(0,I.NS)(t.width,"rectangle"),height:(0,I.NS)(t.height,"rectangle"),groupIds:t.groupIds,frameId:t.frameId});if((w=t.boundElements)!==null&&w!==void 0&&w.length){var a=t.boundElements.filter(function(c){return c.type==="arrow"}).map(function(c){return c.id});g.filter(function(c){return a.includes(c.id)}).forEach(function(c){var m,z,j=c.startBinding,k=c.endBinding;((m=j)===null||m===void 0?void 0:m.elementId)===t.id&&(j=U(U({},j),{},{elementId:l.id})),((z=k)===null||z===void 0?void 0:z.elementId)===t.id&&(k=U(U({},k),{},{elementId:l.id})),(j||k)&&(0,S.DR)(c,{startBinding:j,endBinding:k},!1)})}(0,S.DR)(t,{containerId:l.id,verticalAlign:y.oX.MIDDLE,boundElements:null,textAlign:y.I8.CENTER},!1),(0,I.oN)(t,l),g=function(c,m,z){var j=c.slice(),k=j.findIndex(function(N){return N.id===m.id});j.splice(k,1);var x=j.findIndex(function(N){return N.id===z.id});return j.splice(x,0,m),j}([].concat((0,D.Z)(g),[l]),l,t),O[l.id]=!0}};for(s.s();!(R=s.n()).done;)f()}catch(t){s.e(t)}finally{s.f()}return{elements:g,appState:U(U({},P),{},{selectedElementIds:O}),commitToHistory:!0}}})},6006:function(Se,Q,e){e.d(Q,{CZ:function(){return g},JB:function(){return O},Lo:function(){return _},Zp:function(){return s},eF:function(){return f},mo:function(){return R}});var D=e(2577),E=e(7169),y=e(193),h=e(8935),S=e(1512),I=e(9937),v=e(7651),n=e(8227),M=e(5491),Z=e(4105),H=e(2382),W=e(4116),u=e(9827),U=e(2767),le=e(8925),de=e(583),he=e(6853),pe=e(9240),oe=e(7652),P=e(1020);function $(t,w){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);w&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),l.push.apply(l,a)}return l}function b(t){for(var w=1;w<arguments.length;w++){var l=arguments[w]!=null?arguments[w]:{};w%2?$(Object(l),!0).forEach(function(a){(0,E.Z)(t,a,l[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):$(Object(l)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(l,a))})}return t}(0,U.z)({name:"changeViewBackgroundColor",trackEvent:!1,predicate:function(t,w,l,a){return!!a.props.UIOptions.canvasActions.changeViewBackgroundColor&&!w.viewModeEnabled},perform:function(t,w,l){return{appState:b(b({},w),l),commitToHistory:!!l.viewBackgroundColor}},PanelComponent:function(t){var w=t.elements,l=t.appState,a=t.updateData;return t.appProps,(0,P.jsx)(y.z,{palette:null,topPicks:pe.ay,label:(0,n.t)("labels.canvasBackground"),type:"canvasBackground",color:l.viewBackgroundColor,onChange:function(c){return a({viewBackgroundColor:c})},"data-testid":"canvas-background-picker",elements:w,appState:l,updateData:a})}});var R=(0,U.z)({name:"clearCanvas",trackEvent:{category:"canvas"},predicate:function(t,w,l,a){return!!a.props.UIOptions.canvasActions.clearCanvas&&!w.viewModeEnabled},perform:function(t,w,l,a){return a.imageCache.clear(),{elements:t.map(function(c){return(0,de.BE)(c,{isDeleted:!0})}),appState:b(b({},(0,he.im)()),{},{files:{},theme:w.theme,penMode:w.penMode,penDetected:w.penDetected,exportBackground:w.exportBackground,exportEmbedScene:w.exportEmbedScene,gridSize:w.gridSize,showStats:w.showStats,pasteDialog:w.pasteDialog,activeTool:w.activeTool.type==="image"?b(b({},w.activeTool),{},{type:"selection"}):w.activeTool}),commitToHistory:!0}}}),_=(0,U.z)({name:"zoomIn",viewMode:!0,trackEvent:{category:"canvas"},perform:function(t,w,l,a){return{appState:b(b({},w),(0,W.E)({viewportX:w.width/2+w.offsetLeft,viewportY:w.height/2+w.offsetTop,nextZoom:(0,Z.j)(w.zoom.value+I.V4)},w)),commitToHistory:!1}},PanelComponent:function(t){var w=t.updateData;return(0,P.jsx)(S.V,{type:"button",className:"zoom-in-button zoom-button",icon:h.Sd,title:"".concat((0,n.t)("buttons.zoomIn")," — ").concat((0,u.uY)("CtrlOrCmd++")),"aria-label":(0,n.t)("buttons.zoomIn"),onClick:function(){w(null)}})},keyTest:function(t){return(t.code===M.aU.EQUAL||t.code===M.aU.NUM_ADD)&&(t[M.tW.CTRL_OR_CMD]||t.shiftKey)}}),g=(0,U.z)({name:"zoomOut",viewMode:!0,trackEvent:{category:"canvas"},perform:function(t,w,l,a){return{appState:b(b({},w),(0,W.E)({viewportX:w.width/2+w.offsetLeft,viewportY:w.height/2+w.offsetTop,nextZoom:(0,Z.j)(w.zoom.value-I.V4)},w)),commitToHistory:!1}},PanelComponent:function(t){var w=t.updateData;return(0,P.jsx)(S.V,{type:"button",className:"zoom-out-button zoom-button",icon:h.xL,title:"".concat((0,n.t)("buttons.zoomOut")," — ").concat((0,u.uY)("CtrlOrCmd+-")),"aria-label":(0,n.t)("buttons.zoomOut"),onClick:function(){w(null)}})},keyTest:function(t){return(t.code===M.aU.MINUS||t.code===M.aU.NUM_SUBTRACT)&&(t[M.tW.CTRL_OR_CMD]||t.shiftKey)}}),O=((0,U.z)({name:"resetZoom",viewMode:!0,trackEvent:{category:"canvas"},perform:function(t,w,l,a){return{appState:b(b({},w),(0,W.E)({viewportX:w.width/2+w.offsetLeft,viewportY:w.height/2+w.offsetTop,nextZoom:(0,Z.j)(1)},w)),commitToHistory:!1}},PanelComponent:function(t){var w=t.updateData,l=t.appState;return(0,P.jsx)(le.u,{label:(0,n.t)("buttons.resetZoom"),style:{height:"100%"},children:(0,P.jsxs)(S.V,{type:"button",className:"reset-zoom-button zoom-button",title:(0,n.t)("buttons.resetZoom"),"aria-label":(0,n.t)("buttons.resetZoom"),onClick:function(){w(null)},children:[(100*l.zoom.value).toFixed(0),"%"]})})},keyTest:function(t){return(t.code===M.aU.ZERO||t.code===M.aU.NUM_ZERO)&&(t[M.tW.CTRL_OR_CMD]||t.shiftKey)}}),function(t){var w,l,a,c=t.targetElements,m=t.appState,z=t.fitToViewport,j=z!==void 0&&z,k=t.viewportZoomFactor,x=k===void 0?.7:k,N=(0,v.KP)((0,v.Lm)(c)),G=(0,D.Z)(N,4),ie=G[0],V=G[1],ce=G[2],te=G[3],L=(ie+ce)/2,re=(V+te)/2;if(j){var me=ce-ie,Ce=te-V;w=Math.min(m.width/me,m.height/Ce)*Math.min(1,Math.max(x,.1)),w=Math.min(Math.max(w,.1),30),l=m.width/2*(1/w)-L,a=m.height/2*(1/w)-re}else{w=function(Te,we){var xe=(0,D.Z)(Te,4),_e=xe[0],Oe=xe[1],J=xe[2],ke=xe[3],q=J-_e,o=we.width/q,i=ke-Oe,p=we.height/i,B=Math.min(o,p),A=Math.floor(B/I.V4)*I.V4;return Math.min(Math.max(A,I.Zj),1)}(N,{width:m.width,height:m.height});var We=(0,H.s)({scenePoint:{x:L,y:re},viewportDimensions:{width:m.width,height:m.height},zoom:{value:w}});l=We.scrollX,a=We.scrollY}return{appState:b(b({},m),{},{scrollX:l,scrollY:a,zoom:{value:w}}),commitToHistory:!1}}),s=((0,U.z)({name:"zoomToFitSelectionInViewport",trackEvent:{category:"canvas"},perform:function(t,w,l,a){var c=a.scene.getSelectedElements(w);return O({targetElements:c.length?c:t,appState:w,fitToViewport:!1})},keyTest:function(t){return t.code===M.aU.TWO&&t.shiftKey&&!t.altKey&&!t[M.tW.CTRL_OR_CMD]}}),(0,U.z)({name:"zoomToFitSelection",trackEvent:{category:"canvas"},perform:function(t,w,l,a){var c=a.scene.getSelectedElements(w);return O({targetElements:c.length?c:t,appState:w,fitToViewport:!0})},keyTest:function(t){return t.code===M.aU.THREE&&t.shiftKey&&!t.altKey&&!t[M.tW.CTRL_OR_CMD]}}),(0,U.z)({name:"zoomToFit",viewMode:!0,trackEvent:{category:"canvas"},perform:function(t,w){return O({targetElements:t,appState:w,fitToViewport:!1})},keyTest:function(t){return t.code===M.aU.ONE&&t.shiftKey&&!t.altKey&&!t[M.tW.CTRL_OR_CMD]}}),(0,U.z)({name:"toggleTheme",viewMode:!0,trackEvent:{category:"canvas"},perform:function(t,w,l){return{appState:b(b({},w),{},{theme:l||(w.theme===I.C6.LIGHT?I.C6.DARK:I.C6.LIGHT)}),commitToHistory:!1}},keyTest:function(t){return t.altKey&&t.shiftKey&&t.code===M.aU.D},predicate:function(t,w,l,a){return!!a.props.UIOptions.canvasActions.toggleTheme}})),f=((0,U.z)({name:"toggleEraserTool",trackEvent:{category:"toolbar"},perform:function(t,w){var l;return l=(0,he.EN)(w)?(0,u.Om)(w,b(b({},w.activeTool.lastActiveTool||{type:"selection"}),{},{lastActiveToolBeforeEraser:null})):(0,u.Om)(w,{type:"eraser",lastActiveToolBeforeEraser:w.activeTool}),{appState:b(b({},w),{},{selectedElementIds:{},selectedGroupIds:{},activeEmbeddable:null,activeTool:l}),commitToHistory:!0}},keyTest:function(t){return t.key===M.tW.E}}),(0,U.z)({name:"toggleHandTool",trackEvent:{category:"toolbar"},perform:function(t,w,l,a){var c;return(0,he.l$)(w)?c=(0,u.Om)(w,b(b({},w.activeTool.lastActiveTool||{type:"selection"}),{},{lastActiveToolBeforeEraser:null})):(c=(0,u.Om)(w,{type:"hand",lastActiveToolBeforeEraser:w.activeTool}),(0,oe.KJ)(a.interactiveCanvas,I.oc.GRAB)),{appState:b(b({},w),{},{selectedElementIds:{},selectedGroupIds:{},activeEmbeddable:null,activeTool:c}),commitToHistory:!0}},keyTest:function(t){return!t.altKey&&!t[M.tW.CTRL_OR_CMD]&&t.key===M.tW.H}}))},5047:function(Se,Q,e){e.d(Q,{FA:function(){return b},ZM:function(){return $},jK:function(){return R},uN:function(){return oe},yQ:function(){return P},zp:function(){return _}});var D=e(7169),E=e(8950),y=e(2975),h=e.n(y),S=e(5491),I=e(2767),v=e(4694),n=e(2448),M=e(2435),Z=e(7651),H=e(8227),W=e(9937);function u(g,O){var s=Object.keys(g);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(g);O&&(f=f.filter(function(t){return Object.getOwnPropertyDescriptor(g,t).enumerable})),s.push.apply(s,f)}return s}function U(g){for(var O=1;O<arguments.length;O++){var s=arguments[O]!=null?arguments[O]:{};O%2?u(Object(s),!0).forEach(function(f){(0,D.Z)(g,f,s[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(s)):u(Object(s)).forEach(function(f){Object.defineProperty(g,f,Object.getOwnPropertyDescriptor(s,f))})}return g}var le,de,he,pe,oe=(0,I.z)({name:"copy",trackEvent:{category:"element"},perform:(le=(0,E.Z)(h().mark(function g(O,s,f,t){var w;return h().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return w=t.scene.getSelectedElements({selectedElementIds:s.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0}),l.prev=1,l.next=4,(0,v.vQ)(w,t.files,f);case 4:l.next=9;break;case 6:return l.prev=6,l.t0=l.catch(1),l.abrupt("return",{commitToHistory:!1,appState:U(U({},s),{},{errorMessage:l.t0.message})});case 9:return l.abrupt("return",{commitToHistory:!1});case 10:case"end":return l.stop()}},g,null,[[1,6]])})),function(g,O,s,f){return le.apply(this,arguments)}),contextItemLabel:"labels.copy",keyTest:void 0}),P=(0,I.z)({name:"paste",trackEvent:{category:"element"},perform:(de=(0,E.Z)(h().mark(function g(O,s,f,t){var w;return h().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,(0,v.Se)();case 3:w=l.sent,l.next=14;break;case 6:if(l.prev=6,l.t0=l.catch(0),l.t0.name!=="AbortError"&&l.t0.name!=="NotAllowedError"){l.next=10;break}return l.abrupt("return",!1);case 10:if(console.error("actionPaste ".concat(l.t0.name,": ").concat(l.t0.message)),!W.vU){l.next=13;break}return l.abrupt("return",{commitToHistory:!1,appState:U(U({},s),{},{errorMessage:(0,H.t)("hints.firefox_clipboard_write")})});case 13:return l.abrupt("return",{commitToHistory:!1,appState:U(U({},s),{},{errorMessage:(0,H.t)("errors.asyncPasteFailedOnRead")})});case 14:l.prev=14,t.pasteFromClipboard((0,v.OO)({types:w})),l.next=22;break;case 18:return l.prev=18,l.t1=l.catch(14),console.error(l.t1),l.abrupt("return",{commitToHistory:!1,appState:U(U({},s),{},{errorMessage:(0,H.t)("errors.asyncPasteFailedOnParse")})});case 22:return l.abrupt("return",{commitToHistory:!1});case 23:case"end":return l.stop()}},g,null,[[0,6],[14,18]])})),function(g,O,s,f){return de.apply(this,arguments)}),contextItemLabel:"labels.paste",keyTest:void 0}),$=(0,I.z)({name:"cut",trackEvent:{category:"element"},perform:function(g,O,s,f){return oe.perform(g,O,s,f),n.X.perform(g,O)},contextItemLabel:"labels.cut",keyTest:function(g){return g[S.tW.CTRL_OR_CMD]&&g.key===S.tW.X}}),b=(0,I.z)({name:"copyAsSvg",trackEvent:{category:"element"},perform:(he=(0,E.Z)(h().mark(function g(O,s,f,t){var w,l,a;return h().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(t.canvas){c.next=2;break}return c.abrupt("return",{commitToHistory:!1});case 2:return w=(0,M.HD)(O,s,!0),l=w.exportedElements,a=w.exportingFrame,c.prev=3,c.next=6,(0,M.p1)("clipboard-svg",l,s,t.files,U(U({},s),{},{exportingFrame:a}));case 6:return c.abrupt("return",{commitToHistory:!1});case 9:return c.prev=9,c.t0=c.catch(3),console.error(c.t0),c.abrupt("return",{appState:U(U({},s),{},{errorMessage:c.t0.message}),commitToHistory:!1});case 13:case"end":return c.stop()}},g,null,[[3,9]])})),function(g,O,s,f){return he.apply(this,arguments)}),predicate:function(g){return v.wx&&g.length>0},contextItemLabel:"labels.copyAsSvg"}),R=(0,I.z)({name:"copyAsPng",trackEvent:{category:"element"},perform:(pe=(0,E.Z)(h().mark(function g(O,s,f,t){var w,l,a,c;return h().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(t.canvas){m.next=2;break}return m.abrupt("return",{commitToHistory:!1});case 2:return w=t.scene.getSelectedElements({selectedElementIds:s.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0}),l=(0,M.HD)(O,s,!0),a=l.exportedElements,c=l.exportingFrame,m.prev=4,m.next=7,(0,M.p1)("clipboard",a,s,t.files,U(U({},s),{},{exportingFrame:c}));case 7:return m.abrupt("return",{appState:U(U({},s),{},{toast:{message:(0,H.t)("toast.copyToClipboardAsPng",{exportSelection:w.length?(0,H.t)("toast.selection"):(0,H.t)("toast.canvas"),exportColorScheme:s.exportWithDarkMode?(0,H.t)("buttons.darkMode"):(0,H.t)("buttons.lightMode")})}}),commitToHistory:!1});case 10:return m.prev=10,m.t0=m.catch(4),console.error(m.t0),m.abrupt("return",{appState:U(U({},s),{},{errorMessage:m.t0.message}),commitToHistory:!1});case 14:case"end":return m.stop()}},g,null,[[4,10]])})),function(g,O,s,f){return pe.apply(this,arguments)}),predicate:function(g){return v.vt&&g.length>0},contextItemLabel:"labels.copyAsPng",keyTest:function(g){return g.code===S.aU.C&&g.altKey&&g.shiftKey}}),_=(0,I.z)({name:"copyText",trackEvent:{category:"element"},perform:function(g,O,s,f){var t=f.scene.getSelectedElements({selectedElementIds:O.selectedElementIds,includeBoundTextElement:!0}).reduce(function(w,l){return(0,Z.iB)(l)&&w.push(l.text),w},[]).join(` + +`);return(0,v.dd)(t),{commitToHistory:!1}},predicate:function(g,O,s,f){return v.wx&&f.scene.getSelectedElements({selectedElementIds:O.selectedElementIds,includeBoundTextElement:!0}).some(Z.iB)},contextItemLabel:"labels.copyText"})},2448:function(Se,Q,e){e.d(Q,{X:function(){return oe}});var D=e(7169),E=e(4105),y=e(5491),h=e(1512),S=e(8227),I=e(2767),v=e(7651),n=e(583),M=e(9215),Z=e(7422),H=e(9645),W=e(4183),u=e(9827),U=e(8935),le=e(1020);function de(P,$){var b=Object.keys(P);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(P);$&&(R=R.filter(function(_){return Object.getOwnPropertyDescriptor(P,_).enumerable})),b.push.apply(b,R)}return b}function he(P){for(var $=1;$<arguments.length;$++){var b=arguments[$]!=null?arguments[$]:{};$%2?de(Object(b),!0).forEach(function(R){(0,D.Z)(P,R,b[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(b)):de(Object(b)).forEach(function(R){Object.defineProperty(P,R,Object.getOwnPropertyDescriptor(b,R))})}return P}var pe=function(P,$){if(P.editingGroupId){var b=(0,M.Fb)((0,v.Lm)($),P.editingGroupId);if(b.length)return he(he({},P),{},{selectedElementIds:(0,D.Z)({},b[0].id,!0)})}return P},oe=(0,I.z)({name:"deleteSelectedElements",trackEvent:{category:"element",action:"delete"},perform:function(P,$){if($.editingLinearElement){var b=$.editingLinearElement,R=b.elementId,_=b.selectedPointsIndices,g=b.startBindingElement,O=b.endBindingElement,s=Z._.getElement(R);if(!s||_==null)return!1;if(s.points.length<2){var f=P.map(function(c){return c.id===s.id?(0,n.BE)(c,{isDeleted:!0}):c});return{elements:f,appState:he(he({},pe($,f)),{},{editingLinearElement:null}),commitToHistory:!1}}var t={startBindingElement:_!=null&&_.includes(0)?null:g,endBindingElement:_!=null&&_.includes(s.points.length-1)?null:O};return Z._.deletePoints(s,_),{elements:P,appState:he(he({},$),{},{editingLinearElement:he(he(he({},$.editingLinearElement),t),{},{selectedPointsIndices:_?.[0]>0?[_[0]-1]:[0]})}),commitToHistory:!0}}var w=function(c,m){var z=new Set((0,E.eD)(c.filter(function(j){return j.type==="frame"}),m).map(function(j){return j.id}));return{elements:c.map(function(j){return m.selectedElementIds[j.id]||j.frameId&&z.has(j.frameId)||(0,W.Xh)(j)&&m.selectedElementIds[j.containerId]?(0,n.BE)(j,{isDeleted:!0}):j}),appState:he(he({},m),{},{selectedElementIds:{},selectedGroupIds:{}})}}(P,$),l=w.elements,a=w.appState;return(0,H.$q)(l,P.filter(function(c){var m=c.id;return $.selectedElementIds[m]})),{elements:l,appState:he(he({},a=pe(a,l)),{},{activeTool:(0,u.Om)($,{type:"selection"}),multiElement:null,activeEmbeddable:null}),commitToHistory:(0,E.N)((0,v.Lm)(P),$)}},contextItemLabel:"labels.delete",keyTest:function(P,$,b){return(P.key===y.tW.BACKSPACE||P.key===y.tW.DELETE)&&!P[y.tW.CTRL_OR_CMD]},PanelComponent:function(P){var $=P.elements,b=P.appState,R=P.updateData;return(0,le.jsx)(h.V,{type:"button",icon:U.XH,title:(0,S.t)("labels.delete"),"aria-label":(0,S.t)("labels.delete"),onClick:function(){return R(null)},visible:(0,E.N)((0,v.Lm)($),b)})}})},9672:function(Se,Q,e){e.d(Q,{$:function(){return M},U:function(){return Z}});var D=e(7169),E=e(583),y=e(5491),h=e(9827),S=e(2767);function I(H,W){var u=Object.keys(H);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(H);W&&(U=U.filter(function(le){return Object.getOwnPropertyDescriptor(H,le).enumerable})),u.push.apply(u,U)}return u}function v(H){for(var W=1;W<arguments.length;W++){var u=arguments[W]!=null?arguments[W]:{};W%2?I(Object(u),!0).forEach(function(U){(0,D.Z)(H,U,u[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(u)):I(Object(u)).forEach(function(U){Object.defineProperty(H,U,Object.getOwnPropertyDescriptor(u,U))})}return H}var n=function(H){return H.every(function(W){return!W.locked})},M=(0,S.z)({name:"toggleElementLock",trackEvent:{category:"element"},predicate:function(H,W,u,U){return!U.scene.getSelectedElements(W).some(function(le){return le.locked&&le.frameId})},perform:function(H,W,u,U){var le=U.scene.getSelectedElements({selectedElementIds:W.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0});if(!le.length)return!1;var de=n(le),he=(0,h.xn)(le);return{elements:H.map(function(pe){return he.has(pe.id)?(0,E.BE)(pe,{locked:de}):pe}),appState:v(v({},W),{},{selectedLinearElement:de?null:W.selectedLinearElement}),commitToHistory:!0}},contextItemLabel:function(H,W,u){var U=u.scene.getSelectedElements({selectedElementIds:W.selectedElementIds,includeBoundTextElement:!1});return U.length===1&&U[0].type!=="frame"?U[0].locked?"labels.elementLock.unlock":"labels.elementLock.lock":n(U)?"labels.elementLock.lockAll":"labels.elementLock.unlockAll"},keyTest:function(H,W,u,U){return H.key.toLocaleLowerCase()===y.tW.L&&H[y.tW.CTRL_OR_CMD]&&H.shiftKey&&U.scene.getSelectedElements({selectedElementIds:W.selectedElementIds,includeBoundTextElement:!1}).length>0}}),Z=(0,S.z)({name:"unlockAllElements",trackEvent:{category:"canvas"},viewMode:!1,predicate:function(H){return H.some(function(W){return W.locked})},perform:function(H,W){var u=H.filter(function(U){return U.locked});return{elements:H.map(function(U){return U.locked?(0,E.BE)(U,{locked:!1}):U}),appState:v(v({},W),{},{selectedElementIds:Object.fromEntries(u.map(function(U){return[U.id,!0]}))}),commitToHistory:!0}},contextItemLabel:"labels.elementLock.unlockAll"})},4406:function(Se,Q,e){e.d(Q,{XA:function(){return _e},Du:function(){return Oe},sK:function(){return xe},zX:function(){return we},bJ:function(){return o},_d:function(){return q},mM:function(){return ke},ns:function(){return J}});var D=e(8950),E=e(2577),y=e(7169),h=e(2975),S=e.n(h),I=e(8935),v=e(3379),n=e.n(v),M=e(7795),Z=e.n(M),H=e(569),W=e.n(H),u=e(3565),U=e.n(u),le=e(9216),de=e.n(le),he=e(4589),pe=e.n(he),oe=e(6759),P={};P.styleTagTransform=pe(),P.setAttributes=U(),P.insert=W().bind(null,"head"),P.domAPI=Z(),P.insertStyleElement=de(),n()(oe.Z,P),oe.Z&&oe.Z.locals&&oe.Z.locals;var $=e(9787),b=e(9827),R=e(532),_={};_.styleTagTransform=pe(),_.setAttributes=U(),_.insert=W().bind(null,"head"),_.domAPI=Z(),_.insertStyleElement=de(),n()(R.Z,_),R.Z&&R.Z.locals&&R.Z.locals;var g=e(8242),O=e(5491),s=e(1020),f=function(i){var p=(0,g.J0)().id,B=(0,$.useState)(i.value),A=(0,E.Z)(B,2),X=A[0],Y=A[1];return(0,s.jsxs)("div",{className:"ProjectName",children:[(0,s.jsx)("label",{className:"ProjectName-label",htmlFor:"filename",children:"".concat(i.label).concat(i.isNameEditable?"":":")}),i.isNameEditable?(0,s.jsx)("input",{type:"text",className:"TextInput",onBlur:function(ee){i.ignoreFocus||(0,b.qz)(ee.target);var ge=ee.target.value;ge!==i.value&&i.onChange(ge)},onKeyDown:function(ee){if(ee.key===O.tW.ENTER){if(ee.preventDefault(),ee.nativeEvent.isComposing||ee.keyCode===229)return;ee.currentTarget.blur()}},id:"".concat(p,"-filename"),value:X,onChange:function(ee){return Y(ee.target.value)}}):(0,s.jsx)("span",{className:"TextInput TextInput--readonly",id:"".concat(p,"-filename"),children:i.value})]})},t=e(1512),w=e(8925),l=(e(3041),e(8227)),a=e(9937),c=function(i){var p=i.title||(i.value==="dark"?(0,l.t)("buttons.lightMode"):(0,l.t)("buttons.darkMode"));return(0,s.jsx)(t.V,{type:"icon",icon:i.value===a.C6.LIGHT?m.MOON:m.SUN,title:p,"aria-label":p,onClick:function(){return i.onChange(i.value===a.C6.DARK?a.C6.LIGHT:a.C6.DARK)},"data-testid":"toggle-dark-mode"})},m={SUN:(0,s.jsx)("svg",{width:"512",height:"512",className:"rtl-mirror",viewBox:"0 0 512 512",children:(0,s.jsx)("path",{fill:"currentColor",d:"M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z"})}),MOON:(0,s.jsx)("svg",{width:"512",height:"512",className:"rtl-mirror",viewBox:"0 0 512 512",children:(0,s.jsx)("path",{fill:"currentColor",d:"M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"})})},z=e(2435),j=e(5796);function k(i,p){var B=Object.keys(i);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(i);p&&(A=A.filter(function(X){return Object.getOwnPropertyDescriptor(i,X).enumerable})),B.push.apply(B,A)}return B}function x(i){for(var p=1;p<arguments.length;p++){var B=arguments[p]!=null?arguments[p]:{};p%2?k(Object(B),!0).forEach(function(A){(0,y.Z)(i,A,B[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(B)):k(Object(B)).forEach(function(A){Object.defineProperty(i,A,Object.getOwnPropertyDescriptor(B,A))})}return i}var N=function(){var i=(0,D.Z)(S().mark(function p(B,A,X){var Y,ee,ge,be,Re,Ze,Be,Ie,Ke;return S().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(ee=(Y=A).exportBackground,ge=Y.viewBackgroundColor,be=Y.name,Re=Y.fileHandle,Ze=(0,j.Qk)(Re),Re&&(0,j.DQ)(Ze)){Ye.next=4;break}throw new Error("fileHandle should exist and should be of type svg or png when resaving");case 4:return A=x(x({},A),{},{exportEmbedScene:!0}),Be=(0,z.HD)(B,A,!1),Ie=Be.exportedElements,Ke=Be.exportingFrame,Ye.next=8,(0,z.p1)(Ze,Ie,A,X,{exportBackground:ee,viewBackgroundColor:ge,name:be,fileHandle:Re,exportingFrame:Ke});case 8:return Ye.abrupt("return",{fileHandle:Re});case 9:case"end":return Ye.stop()}},p)}));return function(p,B,A){return i.apply(this,arguments)}}(),G=e(2767),ie=e(6238),V=e(3668),ce=e(4105),te=e(7651),L=e(6548);function re(i,p){var B=Object.keys(i);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(i);p&&(A=A.filter(function(X){return Object.getOwnPropertyDescriptor(i,X).enumerable})),B.push.apply(B,A)}return B}function me(i){for(var p=1;p<arguments.length;p++){var B=arguments[p]!=null?arguments[p]:{};p%2?re(Object(B),!0).forEach(function(A){(0,y.Z)(i,A,B[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(B)):re(Object(B)).forEach(function(A){Object.defineProperty(i,A,Object.getOwnPropertyDescriptor(B,A))})}return i}var Ce,We,Te,we=(0,G.z)({name:"changeProjectName",trackEvent:!1,perform:function(i,p,B){return{appState:me(me({},p),{},{name:B}),commitToHistory:!1}},PanelComponent:function(i){var p,B=i.appState,A=i.updateData,X=i.appProps,Y=i.data;return(0,s.jsx)(f,{label:(0,l.t)("labels.fileTitle"),value:B.name||"Unnamed",onChange:function(ee){return A(ee)},isNameEditable:X.name===void 0&&!B.viewModeEnabled,ignoreFocus:(p=Y?.ignoreFocus)!==null&&p!==void 0&&p})}}),xe=(0,G.z)({name:"changeExportScale",trackEvent:{category:"export",action:"scale"},perform:function(i,p,B){return{appState:me(me({},p),{},{exportScale:B}),commitToHistory:!1}},PanelComponent:function(i){var p=i.elements,B=i.appState,A=i.updateData,X=(0,te.Lm)(p),Y=(0,ce.N)(X,B)?(0,ce.eD)(X,B):X;return(0,s.jsx)(s.Fragment,{children:a.ZB.map(function(ee){var ge=(0,V.Cg)(Y,a.qy,ee),be=(0,E.Z)(ge,2),Re=be[0],Ze=be[1],Be="".concat((0,l.t)("imageExportDialog.label.scale")," ").concat(ee,"x (").concat(Re,"x").concat(Ze,")");return(0,s.jsx)(t.V,{size:"small",type:"radio",icon:"".concat(ee,"x"),name:"export-canvas-scale",title:Be,"aria-label":Be,id:"export-canvas-scale",checked:ee===B.exportScale,onChange:function(){return A(ee)}},ee)})})}}),_e=(0,G.z)({name:"changeExportBackground",trackEvent:{category:"export",action:"toggleBackground"},perform:function(i,p,B){return{appState:me(me({},p),{},{exportBackground:B}),commitToHistory:!1}},PanelComponent:function(i){var p=i.appState,B=i.updateData;return(0,s.jsx)(ie.o,{checked:p.exportBackground,onChange:function(A){return B(A)},children:(0,l.t)("imageExportDialog.label.withBackground")})}}),Oe=(0,G.z)({name:"changeExportEmbedScene",trackEvent:{category:"export",action:"embedScene"},perform:function(i,p,B){return{appState:me(me({},p),{},{exportEmbedScene:B}),commitToHistory:!1}},PanelComponent:function(i){var p=i.appState,B=i.updateData;return(0,s.jsxs)(ie.o,{checked:p.exportEmbedScene,onChange:function(A){return B(A)},children:[(0,l.t)("imageExportDialog.label.embedScene"),(0,s.jsx)(w.u,{label:(0,l.t)("imageExportDialog.tooltip.embedScene"),long:!0,children:(0,s.jsx)("div",{className:"excalidraw-tooltip-icon",children:I.Vl})})]})}}),J=(0,G.z)({name:"saveToActiveFile",trackEvent:{category:"export"},predicate:function(i,p,B,A){return!!A.props.UIOptions.canvasActions.saveToActiveFile&&!!p.fileHandle&&!p.viewModeEnabled},perform:(Ce=(0,D.Z)(S().mark(function i(p,B,A,X){var Y,ee,ge;return S().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(Y=!!B.fileHandle,be.prev=1,!(0,j.g8)(B.fileHandle)){be.next=8;break}return be.next=5,N(p,B,X.files);case 5:be.t0=be.sent,be.next=11;break;case 8:return be.next=10,(0,z.Um)(p,B,X.files);case 10:be.t0=be.sent;case 11:return ee=be.t0,ge=ee.fileHandle,be.abrupt("return",{commitToHistory:!1,appState:me(me({},B),{},{fileHandle:ge,toast:Y?{message:ge!=null&&ge.name?(0,l.t)("toast.fileSavedToFilename").replace("{filename}",'"'.concat(ge.name,'"')):(0,l.t)("toast.fileSaved")}:null})});case 16:return be.prev=16,be.t1=be.catch(1),(be.t1===null||be.t1===void 0?void 0:be.t1.name)!=="AbortError"?console.error(be.t1):console.warn(be.t1),be.abrupt("return",{commitToHistory:!1});case 20:case"end":return be.stop()}},i,null,[[1,16]])})),function(i,p,B,A){return Ce.apply(this,arguments)}),keyTest:function(i){return i.key===O.tW.S&&i[O.tW.CTRL_OR_CMD]&&!i.shiftKey}}),ke=(0,G.z)({name:"saveFileToDisk",viewMode:!0,trackEvent:{category:"export"},perform:(We=(0,D.Z)(S().mark(function i(p,B,A,X){var Y,ee;return S().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ge.prev=0,ge.next=3,(0,z.Um)(p,me(me({},B),{},{fileHandle:null}),X.files);case 3:return Y=ge.sent,ee=Y.fileHandle,ge.abrupt("return",{commitToHistory:!1,appState:me(me({},B),{},{openDialog:null,fileHandle:ee,toast:{message:(0,l.t)("toast.fileSaved")}})});case 8:return ge.prev=8,ge.t0=ge.catch(0),(ge.t0===null||ge.t0===void 0?void 0:ge.t0.name)!=="AbortError"?console.error(ge.t0):console.warn(ge.t0),ge.abrupt("return",{commitToHistory:!1});case 12:case"end":return ge.stop()}},i,null,[[0,8]])})),function(i,p,B,A){return We.apply(this,arguments)}),keyTest:function(i){return i.key===O.tW.S&&i.shiftKey&&i[O.tW.CTRL_OR_CMD]},PanelComponent:function(i){var p=i.updateData;return(0,s.jsx)(t.V,{type:"button",icon:I.po,title:(0,l.t)("buttons.saveAs"),"aria-label":(0,l.t)("buttons.saveAs"),showAriaLabel:(0,g.Fy)().editor.isMobile,hidden:!L.kr,onClick:function(){return p(null)},"data-testid":"save-as-button"})}}),q=(0,G.z)({name:"loadScene",trackEvent:{category:"export"},predicate:function(i,p,B,A){return!!A.props.UIOptions.canvasActions.loadScene&&!p.viewModeEnabled},perform:(Te=(0,D.Z)(S().mark(function i(p,B,A,X){var Y,ee,ge,be;return S().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.prev=0,Re.next=3,(0,z.n8)(B,p);case 3:return Y=Re.sent,ee=Y.elements,ge=Y.appState,be=Y.files,Re.abrupt("return",{elements:ee,appState:ge,files:be,commitToHistory:!0});case 10:if(Re.prev=10,Re.t0=Re.catch(0),(Re.t0===null||Re.t0===void 0?void 0:Re.t0.name)!=="AbortError"){Re.next=15;break}return console.warn(Re.t0),Re.abrupt("return",!1);case 15:return Re.abrupt("return",{elements:p,appState:me(me({},B),{},{errorMessage:Re.t0.message}),files:X.files,commitToHistory:!1});case 16:case"end":return Re.stop()}},i,null,[[0,10]])})),function(i,p,B,A){return Te.apply(this,arguments)}),keyTest:function(i){return i[O.tW.CTRL_OR_CMD]&&i.key===O.tW.O}}),o=(0,G.z)({name:"exportWithDarkMode",trackEvent:{category:"export",action:"toggleTheme"},perform:function(i,p,B){return{appState:me(me({},p),{},{exportWithDarkMode:B}),commitToHistory:!1}},PanelComponent:function(i){var p=i.appState,B=i.updateData;return(0,s.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"-45px",marginBottom:"10px"},children:(0,s.jsx)(c,{value:p.exportWithDarkMode?a.C6.DARK:a.C6.LIGHT,onChange:function(A){B(A===a.C6.DARK)},title:(0,l.t)("imageExportDialog.label.darkMode")})})}})},3361:function(Se,Q,e){e.d(Q,{Tu:function(){return We},Zq:function(){return Te}});var D=e(1930),E=e(7169),y=e(9240),h=e(3646),S=e(45),I=e(1020),v=function(we){return(0,I.jsx)("div",{className:"buttonList buttonListIcon",children:we.options.map(function(xe){var _e;return we.type==="button"?(0,I.jsx)("button",{onClick:function(Oe){return we.onClick(xe.value,Oe)},className:(0,S.Z)({active:(_e=xe.active)!==null&&_e!==void 0?_e:we.value===xe.value}),"data-testid":xe.testId,title:xe.text,children:xe.icon},xe.text):(0,I.jsxs)("label",{className:(0,S.Z)({active:we.value===xe.value}),title:xe.text,children:[(0,I.jsx)("input",{type:"radio",name:we.group,onChange:function(){return we.onChange(xe.value)},checked:we.value===xe.value,"data-testid":xe.testId}),xe.icon]},xe.text)})})},n=e(193),M=e(2577),Z=e(9787),H=e.n(Z),W=e(3204),u=e(3379),U=e.n(u),le=e(7795),de=e.n(le),he=e(569),pe=e.n(he),oe=e(3565),P=e.n(oe),$=e(9216),b=e.n($),R=e(4589),_=e.n(R),g=e(9478),O={};O.styleTagTransform=_(),O.setAttributes=P(),O.insert=pe().bind(null,"head"),O.domAPI=de(),O.insertStyleElement=b(),U()(g.Z,O),g.Z&&g.Z.locals&&g.Z.locals;var s=e(5491),f=e(8227);function t(we,xe){var _e=Object.keys(we);if(Object.getOwnPropertySymbols){var Oe=Object.getOwnPropertySymbols(we);xe&&(Oe=Oe.filter(function(J){return Object.getOwnPropertyDescriptor(we,J).enumerable})),_e.push.apply(_e,Oe)}return _e}function w(we){for(var xe=1;xe<arguments.length;xe++){var _e=arguments[xe]!=null?arguments[xe]:{};xe%2?t(Object(_e),!0).forEach(function(Oe){(0,E.Z)(we,Oe,_e[Oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(we,Object.getOwnPropertyDescriptors(_e)):t(Object(_e)).forEach(function(Oe){Object.defineProperty(we,Oe,Object.getOwnPropertyDescriptor(_e,Oe))})}return we}function l(we){var xe=we.options,_e=we.value,Oe=we.label,J=we.onChange,ke=we.onClose,q=H().useRef(),o=H().useRef(),i=H().useRef(null);return H().useEffect(function(){o.current?o.current.focus():i.current&&i.current.focus()},[]),(0,I.jsx)("div",{className:"picker",role:"dialog","aria-modal":"true","aria-label":Oe,onKeyDown:function(p){var B=xe.find(function(Re){return Re.keyBinding===p.key.toLowerCase()});if(p.metaKey||p.altKey||p.ctrlKey||!B)if(p.key===s.tW.TAB)setTimeout(function(){o.current!==document.activeElement&&ke()},0);else if((0,s.Wl)(p.key)){var A=document.activeElement,X=(0,f.G3)().rtl,Y=Array.prototype.indexOf.call(i.current.children,A);if(Y!==-1){var ee=xe.length,ge=Y;switch(p.key){case(X?s.tW.ARROW_LEFT:s.tW.ARROW_RIGHT):case s.tW.ARROW_DOWN:ge=(Y+1)%ee;break;case(X?s.tW.ARROW_RIGHT:s.tW.ARROW_LEFT):case s.tW.ARROW_UP:ge=(ee+Y-1)%ee}i.current.children[ge].focus()}p.preventDefault()}else p.key!==s.tW.ESCAPE&&p.key!==s.tW.ENTER||(p.preventDefault(),ke());else{var be=xe.indexOf(B);i.current.children[be].focus(),p.preventDefault()}p.nativeEvent.stopImmediatePropagation(),p.stopPropagation()},children:(0,I.jsx)("div",{className:"picker-content",ref:i,children:xe.map(function(p,B){return(0,I.jsxs)("button",{className:(0,S.Z)("picker-option",{active:_e===p.value}),onClick:function(A){A.currentTarget.focus(),J(p.value)},title:"".concat(p.text," — ").concat(p.keyBinding.toUpperCase()),"aria-label":p.text||"none","aria-keyshortcuts":p.keyBinding,ref:function(A){A&&B===0&&(q.current=A),A&&p.value===_e&&(o.current=A)},onFocus:function(){J(p.value)},children:[p.icon,(0,I.jsx)("span",{className:"picker-keybinding",children:p.keyBinding})]},p.text)})})})}function a(we){var xe,_e=we.value,Oe=we.label,J=we.options,ke=we.onChange,q=we.group,o=q===void 0?"":q,i=H().useState(!1),p=(0,M.Z)(i,2),B=p[0],A=p[1],X=H().useRef(null),Y=(0,f.G3)().rtl;return(0,I.jsxs)("div",{children:[(0,I.jsx)("button",{name:o,className:B?"active":"","aria-label":Oe,onClick:function(){return A(!B)},ref:X,children:(xe=J.find(function(ee){return ee.value===_e}))===null||xe===void 0?void 0:xe.icon}),(0,I.jsx)(H().Suspense,{fallback:"",children:B?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(W.J,w(w({onCloseRequest:function(ee){return ee.target!==X.current&&A(!1)}},Y?{right:5.5}:{left:-5.5}),{},{children:(0,I.jsx)(l,{options:J,value:_e,label:Oe,onChange:ke,onClose:function(){var ee;A(!1),(ee=X.current)===null||ee===void 0||ee.focus()}})})),(0,I.jsx)("div",{className:"picker-triangle"})]}):null})]})}var c=e(8935),m=e(9937),z=e(7651),j=e(583),k=e(4761),x=e(4183),N=e(4643),G=e(4105),ie=e(1648),V=e(9827),ce=e(2767);function te(we,xe){var _e=Object.keys(we);if(Object.getOwnPropertySymbols){var Oe=Object.getOwnPropertySymbols(we);xe&&(Oe=Oe.filter(function(J){return Object.getOwnPropertyDescriptor(we,J).enumerable})),_e.push.apply(_e,Oe)}return _e}function L(we){for(var xe=1;xe<arguments.length;xe++){var _e=arguments[xe]!=null?arguments[xe]:{};xe%2?te(Object(_e),!0).forEach(function(Oe){(0,E.Z)(we,Oe,_e[Oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(we,Object.getOwnPropertyDescriptors(_e)):te(Object(_e)).forEach(function(Oe){Object.defineProperty(we,Oe,Object.getOwnPropertyDescriptor(_e,Oe))})}return we}var re=function(we,xe,_e){var Oe=arguments.length>3&&arguments[3]!==void 0&&arguments[3],J=(0,V.xn)((0,G.eD)(we,xe,{includeBoundTextElement:Oe}));return we.map(function(ke){var q;return J.get(ke.id)||ke.id===((q=xe.editingElement)===null||q===void 0?void 0:q.id)?_e(ke):ke})},me=function(we,xe,_e,Oe,J){var ke,q=xe.editingElement,o=(0,z.Lm)(we),i=null;return q&&(i=_e(q)),i||(i=(0,G.N)(o,xe)?(ke=(0,G.PR)(Oe===!0?o:o.filter(function(p){return Oe(p)}),xe,_e))!==null&&ke!==void 0?ke:typeof J=="function"?J(!0):J:typeof J=="function"?J(!1):J),i},Ce=function(we,xe,_e,Oe){var J=new Set;return{elements:re(we,xe,function(ke){if((0,z.iB)(ke)){var q=_e(ke);J.add(q);var o=(0,j.BE)(ke,{fontSize:q});return(0,z.oN)(o,(0,k.tl)(ke)),i=ke,p=o,o=(0,x.Xh)(p)?p:(0,j.DR)(p,{x:i.textAlign==="left"?i.x:i.x+(i.width-p.width)/(i.textAlign==="center"?2:1),y:i.y+(i.height-p.height)/2},!1)}var i,p;return ke},!0),appState:L(L({},xe),{},{currentItemFontSize:J.size===1?(0,D.Z)(J)[0]:Oe??xe.currentItemFontSize}),commitToHistory:!0}},We=((0,ce.z)({name:"changeStrokeColor",trackEvent:!1,perform:function(we,xe,_e){return L(L({},_e.currentItemStrokeColor&&{elements:re(we,xe,function(Oe){return(0,ie.PD)(Oe.type)?(0,j.BE)(Oe,{strokeColor:_e.currentItemStrokeColor}):Oe},!0)}),{},{appState:L(L({},xe),_e),commitToHistory:!!_e.currentItemStrokeColor})},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData;return we.appProps,(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("h3",{"aria-hidden":"true",children:(0,f.t)("labels.stroke")}),(0,I.jsx)(n.z,{topPicks:y.fY,palette:y.Wk,type:"elementStroke",label:(0,f.t)("labels.stroke"),color:me(xe,_e,function(J){return J.strokeColor},!0,_e.currentItemStrokeColor),onChange:function(J){return Oe({currentItemStrokeColor:J})},elements:xe,appState:_e,updateData:Oe})]})}}),(0,ce.z)({name:"changeBackgroundColor",trackEvent:!1,perform:function(we,xe,_e){return L(L({},_e.currentItemBackgroundColor&&{elements:re(we,xe,function(Oe){return(0,j.BE)(Oe,{backgroundColor:_e.currentItemBackgroundColor})})}),{},{appState:L(L({},xe),_e),commitToHistory:!!_e.currentItemBackgroundColor})},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData;return we.appProps,(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("h3",{"aria-hidden":"true",children:(0,f.t)("labels.background")}),(0,I.jsx)(n.z,{topPicks:y.eq,palette:y.SF,type:"elementBackground",label:(0,f.t)("labels.background"),color:me(xe,_e,function(J){return J.backgroundColor},!0,_e.currentItemBackgroundColor),onChange:function(J){return Oe({currentItemBackgroundColor:J})},elements:xe,appState:_e,updateData:Oe})]})}}),(0,ce.z)({name:"changeFillStyle",trackEvent:!1,perform:function(we,xe,_e,Oe){return(0,h.L)("element","changeFillStyle","".concat(_e," (").concat(Oe.device.editor.isMobile?"mobile":"desktop",")")),{elements:re(we,xe,function(J){return(0,j.BE)(J,{fillStyle:_e})}),appState:L(L({},xe),{},{currentItemFillStyle:_e}),commitToHistory:!0}},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData,J=(0,G.eD)(xe,_e),ke=J.length>0&&J.every(function(q){return q.fillStyle==="zigzag"});return(0,I.jsxs)("fieldset",{children:[(0,I.jsx)("legend",{children:(0,f.t)("labels.fill")}),(0,I.jsx)(v,{type:"button",options:[{value:"hachure",text:"".concat(ke?(0,f.t)("labels.zigzag"):(0,f.t)("labels.hachure")," (").concat((0,V.uY)("Alt-Click"),")"),icon:ke?c.lF:c.a0,active:!!ke||void 0,testId:"fill-hachure"},{value:"cross-hatch",text:(0,f.t)("labels.crossHatch"),icon:c.np,testId:"fill-cross-hatch"},{value:"solid",text:(0,f.t)("labels.solid"),icon:c.X7,testId:"fill-solid"}],value:me(xe,_e,function(q){return q.fillStyle},function(q){return q.hasOwnProperty("fillStyle")},function(q){return q?null:_e.currentItemFillStyle}),onClick:function(q,o){var i=o.altKey&&q==="hachure"&&J.every(function(p){return p.fillStyle==="hachure"})?"zigzag":q;Oe(i)}})]})}}),(0,ce.z)({name:"changeStrokeWidth",trackEvent:!1,perform:function(we,xe,_e){return{elements:re(we,xe,function(Oe){return(0,j.BE)(Oe,{strokeWidth:_e})}),appState:L(L({},xe),{},{currentItemStrokeWidth:_e}),commitToHistory:!0}},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData;return(0,I.jsxs)("fieldset",{children:[(0,I.jsx)("legend",{children:(0,f.t)("labels.strokeWidth")}),(0,I.jsx)(v,{group:"stroke-width",options:[{value:m.dg.thin,text:(0,f.t)("labels.thin"),icon:c.ZA,testId:"strokeWidth-thin"},{value:m.dg.bold,text:(0,f.t)("labels.bold"),icon:c.Wl,testId:"strokeWidth-bold"},{value:m.dg.extraBold,text:(0,f.t)("labels.extraBold"),icon:c.m9,testId:"strokeWidth-extraBold"}],value:me(xe,_e,function(J){return J.strokeWidth},function(J){return J.hasOwnProperty("strokeWidth")},function(J){return J?null:_e.currentItemStrokeWidth}),onChange:function(J){return Oe(J)}})]})}}),(0,ce.z)({name:"changeSloppiness",trackEvent:!1,perform:function(we,xe,_e){return{elements:re(we,xe,function(Oe){return(0,j.BE)(Oe,{seed:(0,N.LU)(),roughness:_e})}),appState:L(L({},xe),{},{currentItemRoughness:_e}),commitToHistory:!0}},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData;return(0,I.jsxs)("fieldset",{children:[(0,I.jsx)("legend",{children:(0,f.t)("labels.sloppiness")}),(0,I.jsx)(v,{group:"sloppiness",options:[{value:0,text:(0,f.t)("labels.architect"),icon:c.bf},{value:1,text:(0,f.t)("labels.artist"),icon:c.kM},{value:2,text:(0,f.t)("labels.cartoonist"),icon:c.W2}],value:me(xe,_e,function(J){return J.roughness},function(J){return J.hasOwnProperty("roughness")},function(J){return J?null:_e.currentItemRoughness}),onChange:function(J){return Oe(J)}})]})}}),(0,ce.z)({name:"changeStrokeStyle",trackEvent:!1,perform:function(we,xe,_e){return{elements:re(we,xe,function(Oe){return(0,j.BE)(Oe,{strokeStyle:_e})}),appState:L(L({},xe),{},{currentItemStrokeStyle:_e}),commitToHistory:!0}},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData;return(0,I.jsxs)("fieldset",{children:[(0,I.jsx)("legend",{children:(0,f.t)("labels.strokeStyle")}),(0,I.jsx)(v,{group:"strokeStyle",options:[{value:"solid",text:(0,f.t)("labels.strokeStyle_solid"),icon:c.ZA},{value:"dashed",text:(0,f.t)("labels.strokeStyle_dashed"),icon:c.a5},{value:"dotted",text:(0,f.t)("labels.strokeStyle_dotted"),icon:c.aT}],value:me(xe,_e,function(J){return J.strokeStyle},function(J){return J.hasOwnProperty("strokeStyle")},function(J){return J?null:_e.currentItemStrokeStyle}),onChange:function(J){return Oe(J)}})]})}}),(0,ce.z)({name:"changeOpacity",trackEvent:!1,perform:function(we,xe,_e){return{elements:re(we,xe,function(Oe){return(0,j.BE)(Oe,{opacity:_e})},!0),appState:L(L({},xe),{},{currentItemOpacity:_e}),commitToHistory:!0}},PanelComponent:function(we){var xe,_e=we.elements,Oe=we.appState,J=we.updateData;return(0,I.jsxs)("label",{className:"control-label",children:[(0,f.t)("labels.opacity"),(0,I.jsx)("input",{type:"range",min:"0",max:"100",step:"10",onChange:function(ke){return J(+ke.target.value)},value:(xe=me(_e,Oe,function(ke){return ke.opacity},!0,Oe.currentItemOpacity))!==null&&xe!==void 0?xe:void 0})]})}}),(0,ce.z)({name:"changeFontSize",trackEvent:!1,perform:function(we,xe,_e){return Ce(we,xe,function(){return _e},_e)},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData;return(0,I.jsxs)("fieldset",{children:[(0,I.jsx)("legend",{children:(0,f.t)("labels.fontSize")}),(0,I.jsx)(v,{group:"font-size",options:[{value:16,text:(0,f.t)("labels.small"),icon:c.q0,testId:"fontSize-small"},{value:20,text:(0,f.t)("labels.medium"),icon:c.nq,testId:"fontSize-medium"},{value:28,text:(0,f.t)("labels.large"),icon:c.tW,testId:"fontSize-large"},{value:36,text:(0,f.t)("labels.veryLarge"),icon:c.OA,testId:"fontSize-veryLarge"}],value:me(xe,_e,function(J){if((0,z.iB)(J))return J.fontSize;var ke=(0,k.WJ)(J);return ke?ke.fontSize:null},function(J){return(0,z.iB)(J)||(0,k.WJ)(J)!==null},function(J){return J?null:_e.currentItemFontSize||m.n5}),onChange:function(J){return Oe(J)}})]})}}),(0,ce.z)({name:"decreaseFontSize",trackEvent:!1,perform:function(we,xe,_e){return Ce(we,xe,function(Oe){return Math.round(1/1.1*Oe.fontSize)})},keyTest:function(we){return we[s.tW.CTRL_OR_CMD]&&we.shiftKey&&(we.key===s.tW.CHEVRON_LEFT||we.key===s.tW.COMMA)}})),Te=(0,ce.z)({name:"increaseFontSize",trackEvent:!1,perform:function(we,xe,_e){return Ce(we,xe,function(Oe){return Math.round(1.1*Oe.fontSize)})},keyTest:function(we){return we[s.tW.CTRL_OR_CMD]&&we.shiftKey&&(we.key===s.tW.CHEVRON_RIGHT||we.key===s.tW.PERIOD)}});(0,ce.z)({name:"changeFontFamily",trackEvent:!1,perform:function(we,xe,_e){return{elements:re(we,xe,function(Oe){if((0,z.iB)(Oe)){var J=(0,j.BE)(Oe,{fontFamily:_e,lineHeight:(0,k.PT)(_e)});return(0,z.oN)(J,(0,k.tl)(Oe)),J}return Oe},!0),appState:L(L({},xe),{},{currentItemFontFamily:_e}),commitToHistory:!0}},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData,J=[{value:m.ut.Virgil,text:(0,f.t)("labels.handDrawn"),icon:c.Pm,testId:"font-family-virgil"},{value:m.ut.Helvetica,text:(0,f.t)("labels.normal"),icon:c.vo,testId:"font-family-normal"},{value:m.ut.Cascadia,text:(0,f.t)("labels.code"),icon:c.z6,testId:"font-family-code"}];return(0,I.jsxs)("fieldset",{children:[(0,I.jsx)("legend",{children:(0,f.t)("labels.fontFamily")}),(0,I.jsx)(v,{group:"font-family",options:J,value:me(xe,_e,function(ke){if((0,z.iB)(ke))return ke.fontFamily;var q=(0,k.WJ)(ke);return q?q.fontFamily:null},function(ke){return(0,z.iB)(ke)||(0,k.WJ)(ke)!==null},function(ke){return ke?null:_e.currentItemFontFamily||m.rk}),onChange:function(ke){return Oe(ke)}})]})}}),(0,ce.z)({name:"changeTextAlign",trackEvent:!1,perform:function(we,xe,_e){return{elements:re(we,xe,function(Oe){if((0,z.iB)(Oe)){var J=(0,j.BE)(Oe,{textAlign:_e});return(0,z.oN)(J,(0,k.tl)(Oe)),J}return Oe},!0),appState:L(L({},xe),{},{currentItemTextAlign:_e}),commitToHistory:!0}},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData;return(0,I.jsxs)("fieldset",{children:[(0,I.jsx)("legend",{children:(0,f.t)("labels.textAlign")}),(0,I.jsx)(v,{group:"text-align",options:[{value:"left",text:(0,f.t)("labels.left"),icon:c.rr,testId:"align-left"},{value:"center",text:(0,f.t)("labels.center"),icon:c.o3,testId:"align-horizontal-center"},{value:"right",text:(0,f.t)("labels.right"),icon:c.oT,testId:"align-right"}],value:me(xe,_e,function(J){if((0,z.iB)(J))return J.textAlign;var ke=(0,k.WJ)(J);return ke?ke.textAlign:null},function(J){return(0,z.iB)(J)||(0,k.WJ)(J)!==null},function(J){return J?null:_e.currentItemTextAlign}),onChange:function(J){return Oe(J)}})]})}}),(0,ce.z)({name:"changeVerticalAlign",trackEvent:{category:"element"},perform:function(we,xe,_e){return{elements:re(we,xe,function(Oe){if((0,z.iB)(Oe)){var J=(0,j.BE)(Oe,{verticalAlign:_e});return(0,z.oN)(J,(0,k.tl)(Oe)),J}return Oe},!0),appState:L({},xe),commitToHistory:!0}},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData;return(0,I.jsx)("fieldset",{children:(0,I.jsx)(v,{group:"text-align",options:[{value:m.oX.TOP,text:(0,f.t)("labels.alignTop"),icon:(0,I.jsx)(c.EO,{theme:_e.theme}),testId:"align-top"},{value:m.oX.MIDDLE,text:(0,f.t)("labels.centerVertically"),icon:(0,I.jsx)(c.P7,{theme:_e.theme}),testId:"align-middle"},{value:m.oX.BOTTOM,text:(0,f.t)("labels.alignBottom"),icon:(0,I.jsx)(c.aA,{theme:_e.theme}),testId:"align-bottom"}],value:me(xe,_e,function(J){if((0,z.iB)(J)&&J.containerId)return J.verticalAlign;var ke=(0,k.WJ)(J);return ke?ke.verticalAlign:null},function(J){return(0,z.iB)(J)||(0,k.WJ)(J)!==null},function(J){return J?null:m.oX.MIDDLE}),onChange:function(J){return Oe(J)}})})}}),(0,ce.z)({name:"changeRoundness",trackEvent:!1,perform:function(we,xe,_e){return{elements:re(we,xe,function(Oe){return(0,j.BE)(Oe,{roundness:_e==="round"?{type:(0,x.QI)(Oe.type)?m.a6.ADAPTIVE_RADIUS:m.a6.PROPORTIONAL_RADIUS}:null})}),appState:L(L({},xe),{},{currentItemRoundness:_e}),commitToHistory:!0}},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData,J=(0,G.Zs)((0,z.Lm)(xe),_e).some(function(ke){var q;return((q=ke.roundness)===null||q===void 0?void 0:q.type)===m.a6.LEGACY});return(0,I.jsxs)("fieldset",{children:[(0,I.jsx)("legend",{children:(0,f.t)("labels.edges")}),(0,I.jsx)(v,{group:"edges",options:[{value:"sharp",text:(0,f.t)("labels.sharp"),icon:c.wr},{value:"round",text:(0,f.t)("labels.round"),icon:c.DS}],value:me(xe,_e,function(ke){return J?null:ke.roundness?"round":"sharp"},function(ke){return ke.hasOwnProperty("roundness")},function(ke){return ke?null:_e.currentItemRoundness}),onChange:function(ke){return Oe(ke)}})]})}}),(0,ce.z)({name:"changeArrowhead",trackEvent:!1,perform:function(we,xe,_e){return{elements:re(we,xe,function(Oe){if((0,x.bt)(Oe)){var J=_e.position,ke=_e.type;if(J==="start")return(0,j.BE)(Oe,{startArrowhead:ke});if(J==="end")return(0,j.BE)(Oe,{endArrowhead:ke})}return Oe}),appState:L(L({},xe),{},(0,E.Z)({},_e.position==="start"?"currentItemStartArrowhead":"currentItemEndArrowhead",_e.type)),commitToHistory:!0}},PanelComponent:function(we){var xe=we.elements,_e=we.appState,Oe=we.updateData,J=(0,f.G3)().rtl;return(0,I.jsxs)("fieldset",{children:[(0,I.jsx)("legend",{children:(0,f.t)("labels.arrowheads")}),(0,I.jsxs)("div",{className:"iconSelectList buttonList",children:[(0,I.jsx)(a,{label:"arrowhead_start",options:[{value:null,text:(0,f.t)("labels.arrowhead_none"),icon:c.fr,keyBinding:"q"},{value:"arrow",text:(0,f.t)("labels.arrowhead_arrow"),icon:(0,I.jsx)(c.il,{flip:!J}),keyBinding:"w"},{value:"bar",text:(0,f.t)("labels.arrowhead_bar"),icon:(0,I.jsx)(c.m,{flip:!J}),keyBinding:"e"},{value:"dot",text:(0,f.t)("labels.arrowhead_dot"),icon:(0,I.jsx)(c.tn,{flip:!J}),keyBinding:"r"},{value:"triangle",text:(0,f.t)("labels.arrowhead_triangle"),icon:(0,I.jsx)(c.j8,{flip:!J}),keyBinding:"t"}],value:me(xe,_e,function(ke){return(0,x.bt)(ke)&&(0,G.Un)(ke.type)?ke.startArrowhead:_e.currentItemStartArrowhead},!0,_e.currentItemStartArrowhead),onChange:function(ke){return Oe({position:"start",type:ke})}}),(0,I.jsx)(a,{label:"arrowhead_end",group:"arrowheads",options:[{value:null,text:(0,f.t)("labels.arrowhead_none"),keyBinding:"q",icon:c.fr},{value:"arrow",text:(0,f.t)("labels.arrowhead_arrow"),keyBinding:"w",icon:(0,I.jsx)(c.il,{flip:J})},{value:"bar",text:(0,f.t)("labels.arrowhead_bar"),keyBinding:"e",icon:(0,I.jsx)(c.m,{flip:J})},{value:"dot",text:(0,f.t)("labels.arrowhead_dot"),keyBinding:"r",icon:(0,I.jsx)(c.tn,{flip:J})},{value:"triangle",text:(0,f.t)("labels.arrowhead_triangle"),icon:(0,I.jsx)(c.j8,{flip:J}),keyBinding:"t"}],value:me(xe,_e,function(ke){return(0,x.bt)(ke)&&(0,G.Un)(ke.type)?ke.endArrowhead:_e.currentItemEndArrowhead},!0,_e.currentItemEndArrowhead),onChange:function(ke){return Oe({position:"end",type:ke})}})]})]})}})},7080:function(Se,Q,e){e.d(Q,{u:function(){return I}});var D=e(7169),E=e(2767),y=e(5491);function h(v,n){var M=Object.keys(v);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(v);n&&(Z=Z.filter(function(H){return Object.getOwnPropertyDescriptor(v,H).enumerable})),M.push.apply(M,Z)}return M}function S(v){for(var n=1;n<arguments.length;n++){var M=arguments[n]!=null?arguments[n]:{};n%2?h(Object(M),!0).forEach(function(Z){(0,D.Z)(v,Z,M[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(M)):h(Object(M)).forEach(function(Z){Object.defineProperty(v,Z,Object.getOwnPropertyDescriptor(M,Z))})}return v}var I=(0,E.z)({name:"stats",viewMode:!0,trackEvent:{category:"menu"},perform:function(v,n){return{appState:S(S({},n),{},{showStats:!this.checked(n)}),commitToHistory:!1}},checked:function(v){return v.showStats},contextItemLabel:"stats.title",keyTest:function(v){return!v[y.tW.CTRL_OR_CMD]&&v.altKey&&v.code===y.aU.SLASH}})},5463:function(Se,Q,e){e.d(Q,{FL:function(){return _t},vD:function(){return Mn.vD},yA:function(){return l},BZ:function(){return c},mo:function(){return J.mo},uN:function(){return mr.uN},jK:function(){return mr.jK},FA:function(){return mr.FA},pw:function(){return ee},ZM:function(){return mr.ZM},X9:function(){return D.X},xF:function(){return _e},pL:function(){return p},jl:function(){return ir},kt:function(){return Qt},EQ:function(){return De},nz:function(){return Zn.nz},_d:function(){return B._d},W3:function(){return ge},mM:function(){return B.mM},ns:function(){return B.ns},Yy:function(){return G},V:function(){return w},zi:function(){return a},jY:function(){return Ze},$h:function(){return Rn.$},Pb:function(){return lr},Qs:function(){return Un},pm:function(){return an},u0:function(){return Sn.u},Zp:function(){return J.Zp},JN:function(){return Hr},y7:function(){return Mn.y7},s:function(){return He},zp:function(){return mr.zp}});var D=e(2448),E=e(2577),y=e(1930),h=e(583),S=e(4183),I=e(9215),v=e(4105),n=e(457),M=e(9827);function Z(ne,Ee){var Pe=typeof Symbol<"u"&&ne[Symbol.iterator]||ne["@@iterator"];if(!Pe){if(Array.isArray(ne)||(Pe=function(gt,Xt){if(gt){if(typeof gt=="string")return H(gt,Xt);var $t=Object.prototype.toString.call(gt).slice(8,-1);if($t==="Object"&>.constructor&&($t=gt.constructor.name),$t==="Map"||$t==="Set")return Array.from(gt);if($t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($t))return H(gt,Xt)}}(ne))||Ee&&ne&&typeof ne.length=="number"){Pe&&(ne=Pe);var ze=0,pt=function(){};return{s:pt,n:function(){return ze>=ne.length?{done:!0}:{done:!1,value:ne[ze++]}},e:function(gt){throw gt},f:pt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ut,zt=!0,qt=!1;return{s:function(){Pe=Pe.call(ne)},n:function(){var gt=Pe.next();return zt=gt.done,gt},e:function(gt){qt=!0,Ut=gt},f:function(){try{zt||Pe.return==null||Pe.return()}finally{if(qt)throw Ut}}}}function H(ne,Ee){(Ee==null||Ee>ne.length)&&(Ee=ne.length);for(var Pe=0,ze=new Array(Ee);Pe<Ee;Pe++)ze[Pe]=ne[Pe];return ze}var W=function(ne,Ee){return ne.frameId===Ee||ne.id===Ee},u=function(ne,Ee,Pe){for(var ze=[],pt=[],Ut=null,zt=-1,qt=(0,M.xn)(Pe||(0,v.eD)(ne,Ee,{includeBoundTextElement:!0,includeElementsInFrames:!0}));++zt<ne.length;){var gt=ne[zt];qt.get(gt.id)?(pt.length&&(ze=ze.concat(pt),pt=[]),ze.push(zt),Ut=zt+1):gt.isDeleted&&Ut===zt?(Ut=zt+1,pt.push(zt)):pt=[]}return ze},U=function(ne,Ee,Pe){if("containerId"in ne&&ne.containerId){if(Pe!=="left")return Ee.indexOf(ne);var ze=n.Z.getScene(ne).getElement(ne.containerId);if(ze)return Ee.indexOf(ze)}else{var pt,Ut,zt=(pt=ne.boundElements)===null||pt===void 0||(Ut=pt.find(function(gt){return gt.type!=="arrow"}))===null||Ut===void 0?void 0:Ut.id;if(zt){if(Pe==="left")return Ee.indexOf(ne);var qt=n.Z.getScene(ne).getElement(zt);if(qt)return Ee.indexOf(qt)}}},le=function(ne,Ee,Pe,ze,pt){var Ut,zt,qt,gt,Xt,$t=Ee[Pe],Er=function(rn){return!rn.isDeleted&&(pt?rn.frameId===pt:!ne.editingGroupId||rn.groupIds.includes(ne.editingGroupId))},Or=ze==="left"?(0,M.qr)(Ee,function(rn){return Er(rn)},Math.max(0,Pe-1)):(0,M.cx)(Ee,function(rn){return Er(rn)},Pe+1),Cr=Ee[Or];if(!Cr)return-1;if(ne.editingGroupId){var Fr;if($t?.groupIds.join("")===Cr?.groupIds.join(""))return(Fr=U(Cr,Ee,ze))!==null&&Fr!==void 0?Fr:Or;if(Cr==null||!Cr.groupIds.includes(ne.editingGroupId))return-1}if(!pt&&(Cr.frameId||Cr.type==="frame")){var zr=(Ut=Ee,zt=Cr.frameId||Cr.id,qt=-1,gt=-1,Ut.forEach(function(rn,Ln){W(rn,zt)&&(qt===-1&&(qt=Ln),gt=Ln)}),qt===-1?[]:Ut.slice(qt,gt+1));return ze==="left"?Ee.indexOf(zr[0]):Ee.indexOf(zr[zr.length-1])}if(!Cr.groupIds.length)return(Xt=U(Cr,Ee,ze))!==null&&Xt!==void 0?Xt:Or;var Sr=ne.editingGroupId?Cr.groupIds[Cr.groupIds.indexOf(ne.editingGroupId)-1]:Cr.groupIds[Cr.groupIds.length-1],qr=(0,I.Fb)(Ee,Sr);return qr.length?ze==="left"?Ee.indexOf(qr[0]):Ee.indexOf(qr[qr.length-1]):Or},de=function(ne,Ee){return Ee.reduce(function(Pe,ze){var pt=ne[ze];return Pe[pt.id]=pt,Pe},{})},he=function(ne,Ee,Pe){var ze=u(ne,Ee),pt=de(ne,ze),Ut=function(qt){var gt=0;return qt.reduce(function(Xt,$t,Er){return Er>0&&qt[Er-1]!==$t-1&&(gt=++gt),(Xt[gt]||(Xt[gt]=[])).push($t),Xt},[])}(ze);Pe==="right"&&(Ut=Ut.reverse());var zt=new Set(ze.filter(function(qt){return ne[qt].type==="frame"}).map(function(qt){return ne[qt].id}));return Ut.forEach(function(qt,gt){var Xt,$t=qt[0],Er=qt[qt.length-1],Or=Pe==="left"?$t:Er,Cr=qt.some(function(Ln){var Bn=ne[Ln];return Bn.frameId&&zt.has(Bn.frameId)})?null:(Xt=ne[Or])===null||Xt===void 0?void 0:Xt.frameId,Fr=le(Ee,ne,Or,Pe,Cr);if(Fr!==-1&&Or!==Fr){var zr=Pe==="left"?ne.slice(0,Fr):ne.slice(0,$t),Sr=ne.slice($t,Er+1),qr=Pe==="left"?ne.slice(Fr,$t):ne.slice(Er+1,Fr+1),rn=Pe==="left"?ne.slice(Er+1):ne.slice(Fr+1);ne=Pe==="left"?[].concat((0,y.Z)(zr),(0,y.Z)(Sr),(0,y.Z)(qr),(0,y.Z)(rn)):[].concat((0,y.Z)(zr),(0,y.Z)(qr),(0,y.Z)(Sr),(0,y.Z)(rn))}}),ne.map(function(qt){return pt[qt.id]?(0,h.ZP)(qt):qt})},pe=function(ne,Ee,Pe,ze,pt){var Ut,zt,qt=u(ne,Ee,pt),gt=de(ne,qt),Xt=[];if(Pe==="left"){if(ze)Ut=(0,M.cx)(ne,function(Sr){return W(Sr,ze)});else if(Ee.editingGroupId){var $t=(0,I.Fb)(ne,Ee.editingGroupId);if(!$t.length)return ne;Ut=ne.indexOf($t[0])}else Ut=0;zt=qt[qt.length-1]}else{if(ze)zt=(0,M.qr)(ne,function(Sr){return W(Sr,ze)});else if(Ee.editingGroupId){var Er=(0,I.Fb)(ne,Ee.editingGroupId);if(!Er.length)return ne;zt=ne.indexOf(Er[Er.length-1])}else zt=ne.length-1;Ut=qt[0]}Ut===-1&&(Ut=0);for(var Or=Ut;Or<zt+1;Or++)qt.includes(Or)||Xt.push(ne[Or]);var Cr=Object.values(gt).map(function(Sr){return(0,h.ZP)(Sr)}),Fr=ne.slice(0,Ut),zr=ne.slice(zt+1);return Pe==="left"?[].concat((0,y.Z)(Fr),(0,y.Z)(Cr),Xt,(0,y.Z)(zr)):[].concat((0,y.Z)(Fr),Xt,(0,y.Z)(Cr),(0,y.Z)(zr))};function oe(ne,Ee,Pe,ze){var pt,Ut=(0,M.xn)((0,v.eD)(ne,Ee,{includeBoundTextElement:!0,includeElementsInFrames:!0})),zt={regularElements:[],frameChildren:new Map},qt=new Set,gt=Z(ne);try{for(gt.s();!(pt=gt.n()).done;){var Xt=pt.value;Ut.has(Xt.id)&&(0,S.He)(Xt)&&qt.add(Xt.id)}}catch(rn){gt.e(rn)}finally{gt.f()}var $t,Er=Z(ne);try{for(Er.s();!($t=Er.n()).done;){var Or=$t.value;if(Ut.has(Or.id))if((0,S.He)(Or)||Or.frameId&&qt.has(Or.frameId))zt.regularElements.push(Or);else if(Or.frameId){var Cr=zt.frameChildren.get(Or.frameId)||[];Cr.push(Or),zt.frameChildren.set(Or.frameId,Cr)}else zt.regularElements.push(Or)}}catch(rn){Er.e(rn)}finally{Er.f()}for(var Fr=ne,zr=0,Sr=Array.from(zt.frameChildren.entries());zr<Sr.length;zr++){var qr=(0,E.Z)(Sr[zr],2);Fr=ze(ne,Ee,Pe,qr[0],qr[1])}return ze(Fr,Ee,Pe,null,zt.regularElements)}var P=function(ne,Ee){return he(ne,Ee,"left")},$=function(ne,Ee){return he(ne,Ee,"right")},b=function(ne,Ee){return oe(ne,Ee,"left",pe)},R=function(ne,Ee){return oe(ne,Ee,"right",pe)},_=e(5491),g=e(8227),O=e(2767),s=e(8935),f=e(9937),t=e(1020),w=(0,O.z)({name:"sendBackward",trackEvent:{category:"element"},perform:function(ne,Ee){return{elements:P(ne,Ee),appState:Ee,commitToHistory:!0}},contextItemLabel:"labels.sendBackward",keyPriority:40,keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&!ne.shiftKey&&ne.code===_.aU.BRACKET_LEFT},PanelComponent:function(ne){var Ee=ne.updateData;return ne.appState,(0,t.jsx)("button",{type:"button",className:"zIndexButton",onClick:function(){return Ee(null)},title:"".concat((0,g.t)("labels.sendBackward")," — ").concat((0,M.uY)("CtrlOrCmd+[")),children:s.Gc})}}),l=(0,O.z)({name:"bringForward",trackEvent:{category:"element"},perform:function(ne,Ee){return{elements:$(ne,Ee),appState:Ee,commitToHistory:!0}},contextItemLabel:"labels.bringForward",keyPriority:40,keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&!ne.shiftKey&&ne.code===_.aU.BRACKET_RIGHT},PanelComponent:function(ne){var Ee=ne.updateData;return ne.appState,(0,t.jsx)("button",{type:"button",className:"zIndexButton",onClick:function(){return Ee(null)},title:"".concat((0,g.t)("labels.bringForward")," — ").concat((0,M.uY)("CtrlOrCmd+]")),children:s.t5})}}),a=(0,O.z)({name:"sendToBack",trackEvent:{category:"element"},perform:function(ne,Ee){return{elements:b(ne,Ee),appState:Ee,commitToHistory:!0}},contextItemLabel:"labels.sendToBack",keyTest:function(ne){return f.Um?ne[_.tW.CTRL_OR_CMD]&&ne.altKey&&ne.code===_.aU.BRACKET_LEFT:ne[_.tW.CTRL_OR_CMD]&&ne.shiftKey&&ne.code===_.aU.BRACKET_LEFT},PanelComponent:function(ne){var Ee=ne.updateData;return ne.appState,(0,t.jsx)("button",{type:"button",className:"zIndexButton",onClick:function(){return Ee(null)},title:"".concat((0,g.t)("labels.sendToBack")," — ").concat(f.Um?(0,M.uY)("CtrlOrCmd+Alt+["):(0,M.uY)("CtrlOrCmd+Shift+[")),children:s.pw})}}),c=(0,O.z)({name:"bringToFront",trackEvent:{category:"element"},perform:function(ne,Ee){return{elements:R(ne,Ee),appState:Ee,commitToHistory:!0}},contextItemLabel:"labels.bringToFront",keyTest:function(ne){return f.Um?ne[_.tW.CTRL_OR_CMD]&&ne.altKey&&ne.code===_.aU.BRACKET_RIGHT:ne[_.tW.CTRL_OR_CMD]&&ne.shiftKey&&ne.code===_.aU.BRACKET_RIGHT},PanelComponent:function(ne){var Ee=ne.updateData;return ne.appState,(0,t.jsx)("button",{type:"button",className:"zIndexButton",onClick:function(Pe){return Ee(null)},title:"".concat((0,g.t)("labels.bringToFront")," — ").concat(f.Um?(0,M.uY)("CtrlOrCmd+Alt+]"):(0,M.uY)("CtrlOrCmd+Shift+]")),children:s.IN})}}),m=e(7169),z=e(7651),j=e(7422),k=e(6264);function x(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function N(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?x(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):x(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}var G=(0,O.z)({name:"selectAll",trackEvent:{category:"canvas"},perform:function(ne,Ee,Pe,ze){if(Ee.editingLinearElement)return!1;var pt=(0,k.aI)(ne.filter(function(Ut){return!(Ut.isDeleted||(0,z.iB)(Ut)&&Ut.containerId||Ut.locked)})).reduce(function(Ut,zt){return Ut[zt.id]=!0,Ut},{});return{appState:N(N(N({},Ee),(0,I.bO)({editingGroupId:null,selectedElementIds:pt},(0,z.Lm)(ne),Ee,ze)),{},{selectedLinearElement:Object.keys(pt).length===1&&(0,S.bt)(ne[0])?new j._(ne[0],ze.scene):null}),commitToHistory:!0}},contextItemLabel:"labels.selectAll",keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&ne.key===_.tW.A}}),ie=e(1512),V=e(9645),ce=e(4761);function te(ne,Ee){var Pe=typeof Symbol<"u"&&ne[Symbol.iterator]||ne["@@iterator"];if(!Pe){if(Array.isArray(ne)||(Pe=function(gt,Xt){if(gt){if(typeof gt=="string")return L(gt,Xt);var $t=Object.prototype.toString.call(gt).slice(8,-1);if($t==="Object"&>.constructor&&($t=gt.constructor.name),$t==="Map"||$t==="Set")return Array.from(gt);if($t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($t))return L(gt,Xt)}}(ne))||Ee&&ne&&typeof ne.length=="number"){Pe&&(ne=Pe);var ze=0,pt=function(){};return{s:pt,n:function(){return ze>=ne.length?{done:!0}:{done:!1,value:ne[ze++]}},e:function(gt){throw gt},f:pt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ut,zt=!0,qt=!1;return{s:function(){Pe=Pe.call(ne)},n:function(){var gt=Pe.next();return zt=gt.done,gt},e:function(gt){qt=!0,Ut=gt},f:function(){try{zt||Pe.return==null||Pe.return()}finally{if(qt)throw Ut}}}}function L(ne,Ee){(Ee==null||Ee>ne.length)&&(Ee=ne.length);for(var Pe=0,ze=new Array(Ee);Pe<Ee;Pe++)ze[Pe]=ne[Pe];return ze}var re=function(ne){var Ee=ne.slice(),Pe=new Set,ze=function Ut(zt){var qt,gt,Xt,$t=(qt=zt[0])===null||qt===void 0||(gt=qt.groupIds)===null||gt===void 0?void 0:gt.join(""),Er=[zt[0]],Or=[],Cr=te(zt.slice(1));try{for(Cr.s();!(Xt=Cr.n()).done;){var Fr,zr=Xt.value;((Fr=zr.groupIds)===null||Fr===void 0?void 0:Fr.join(""))===$t?Er.push(zr):Or.push(zr)}}catch(Sr){Cr.e(Sr)}finally{Cr.f()}return Or.length?[].concat(Er,(0,y.Z)(Ut(Or))):Er},pt=new Map;return Ee.forEach(function(Ut,zt){var qt;if(!pt.has(Ut.id))if((qt=Ut.groupIds)!==null&&qt!==void 0&&qt.length){var gt,Xt=Ut.groupIds[Ut.groupIds.length-1],$t=Ee.slice(zt).filter(function(Cr){var Fr,zr=Cr==null||(Fr=Cr.groupIds)===null||Fr===void 0?void 0:Fr.some(function(Sr){return Sr===Xt});return zr&&pt.set(Cr.id,!0),zr}),Er=te(ze($t));try{for(Er.s();!(gt=Er.n()).done;){var Or=gt.value;Pe.add(Or)}}catch(Cr){Er.e(Cr)}finally{Er.f()}}else Pe.add(Ut)}),Pe.size!==ne.length?(console.error("normalizeGroupElementOrder: lost some elements... bailing!"),ne):(0,y.Z)(Pe)},me=function(ne){var Ee=function(Pe){var ze=(0,M.I4)(Pe),pt=Pe.slice(),Ut=new Set;return pt.forEach(function(zt,qt){var gt;if(zt)if((gt=zt.boundElements)!==null&>!==void 0&>.length)Ut.add(zt),pt[qt]=null,zt.boundElements.forEach(function(Er){var Or=ze.get(Er.id);Or&&Er.type==="text"&&(Ut.add(Or[0]),pt[Or[1]]=null)});else if(zt.type==="text"&&zt.containerId){var Xt,$t=ze.get(zt.containerId);$t!=null&&(Xt=$t[0].boundElements)!==null&&Xt!==void 0&&Xt.find(function(Er){return Er.id===zt.id})||(Ut.add(zt),pt[qt]=null)}else Ut.add(zt),pt[qt]=null}),Ut.size!==Pe.length?(console.error("normalizeBoundElementsOrder: lost some elements... bailing!"),Pe):(0,y.Z)(Ut)}(re(ne));return Ee},Ce=e(4682);function We(ne,Ee){var Pe=typeof Symbol<"u"&&ne[Symbol.iterator]||ne["@@iterator"];if(!Pe){if(Array.isArray(ne)||(Pe=function(gt,Xt){if(gt){if(typeof gt=="string")return Te(gt,Xt);var $t=Object.prototype.toString.call(gt).slice(8,-1);if($t==="Object"&>.constructor&&($t=gt.constructor.name),$t==="Map"||$t==="Set")return Array.from(gt);if($t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($t))return Te(gt,Xt)}}(ne))||Ee&&ne&&typeof ne.length=="number"){Pe&&(ne=Pe);var ze=0,pt=function(){};return{s:pt,n:function(){return ze>=ne.length?{done:!0}:{done:!1,value:ne[ze++]}},e:function(gt){throw gt},f:pt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ut,zt=!0,qt=!1;return{s:function(){Pe=Pe.call(ne)},n:function(){var gt=Pe.next();return zt=gt.done,gt},e:function(gt){qt=!0,Ut=gt},f:function(){try{zt||Pe.return==null||Pe.return()}finally{if(qt)throw Ut}}}}function Te(ne,Ee){(Ee==null||Ee>ne.length)&&(Ee=ne.length);for(var Pe=0,ze=new Array(Ee);Pe<Ee;Pe++)ze[Pe]=ne[Pe];return ze}function we(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function xe(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?we(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):we(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}var _e=(0,O.z)({name:"duplicateSelection",trackEvent:{category:"element"},perform:function(ne,Ee){if(Ee.editingLinearElement){var Pe=j._.duplicateSelectedPoints(Ee);return!!Pe&&{elements:ne,appState:Pe.appState,commitToHistory:!0}}return xe(xe({},Oe(ne,Ee)),{},{commitToHistory:!0})},contextItemLabel:"labels.duplicateSelection",keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&ne.key===_.tW.D},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData;return(0,t.jsx)(ie.V,{type:"button",icon:s.NA,title:"".concat((0,g.t)("labels.duplicateSelection")," — ").concat((0,M.uY)("CtrlOrCmd+D")),"aria-label":(0,g.t)("labels.duplicateSelection"),onClick:function(){return ze(null)},visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),Oe=function(ne,Ee){for(var Pe=me(ne),ze=new Map,pt=[],Ut=[],zt=new Map,qt=function(nn){var mn=(0,z.Sy)(Ee.editingGroupId,ze,nn,{x:nn.x+f.k/2,y:nn.y+f.k/2});return zt.set(nn.id,mn.id),Ut.push(nn),pt.push(mn),mn},gt=(0,M.xn)((0,k.eD)(Pe,Ee,{includeBoundTextElement:!0,includeElementsInFrames:!0})),Xt=new Map,$t=function(nn){var mn,On=We(nn);try{for(On.s();!(mn=On.n()).done;){var Kn=mn.value;Xt.set(Kn.id,!0)}}catch(Jn){On.e(Jn)}finally{On.f()}return nn},Er=[],Or=-1;++Or<Pe.length;){var Cr=Pe[Or];if(!Xt.get(Cr.id)){var Fr=(0,ce.WJ)(Cr),zr=(0,S.He)(Cr);if(gt.get(Cr.id)){if(Cr.groupIds.length||Fr||zr){var Sr=(0,I.yO)(Ee,Cr);if(Sr){var qr=(0,I.Fb)(Pe,Sr).flatMap(function(nn){return(0,S.He)(nn)?[].concat((0,y.Z)((0,Ce.zD)(ne,nn.id)),[nn]):[nn]});Er.push.apply(Er,(0,y.Z)($t([].concat((0,y.Z)(qr),(0,y.Z)(qr.map(function(nn){return qt(nn)}))))));continue}if(Fr){Er.push.apply(Er,(0,y.Z)($t([Cr,Fr,qt(Cr),qt(Fr)])));continue}if(zr){var rn=(0,Ce.zD)(Pe,Cr.id);Er.push.apply(Er,(0,y.Z)($t([].concat((0,y.Z)(rn),[Cr],(0,y.Z)(rn.map(function(nn){return qt(nn)})),[qt(Cr)]))));continue}}Cr.frameId&>.has(Cr.frameId)||Er.push.apply(Er,(0,y.Z)($t([Cr,qt(Cr)])))}else Er.push.apply(Er,(0,y.Z)($t([Cr])))}}var Ln=[],Bn=new Map;for(Or=Er.length;--Or>=0;){var $n=Er[Or];Bn.get($n.id)||(Bn.set($n.id,!0),Ln.push($n))}var uo=Ln.reverse();(0,ce.P7)(Er,Ut,zt),(0,V.ek)(Er,Ut,zt),(0,Ce.xr)(uo,Ut,zt);var wr=(0,k.aI)(pt);return{elements:uo,appState:xe(xe({},Ee),(0,I.bO)({editingGroupId:Ee.editingGroupId,selectedElementIds:wr.reduce(function(nn,mn){return(0,S.Xh)(mn)||(nn[mn.id]=!0),nn},{})},(0,z.Lm)(uo),Ee,null))}},J=(e(3361),e(6006)),ke=e(2361),q=e(7652);function o(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function i(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?o(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):o(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}var p=(0,O.z)({name:"finalize",trackEvent:!1,perform:function(ne,Ee,Pe,ze){var pt,Ut=ze.interactiveCanvas,zt=ze.focusContainer,qt=ze.scene;if(Ee.editingLinearElement){var gt=Ee.editingLinearElement,Xt=gt.elementId,$t=gt.startBindingElement,Er=gt.endBindingElement,Or=j._.getElement(Xt);if(Or)return(0,S.Mn)(Or)&&(0,V.HG)(Or,$t,Er),{elements:Or.points.length<2||(0,z.QD)(Or)?ne.filter(function(On){return On.id!==Or.id}):void 0,appState:i(i({},Ee),{},{cursorButton:"up",editingLinearElement:null}),commitToHistory:!0}}var Cr=ne,Fr=Ee.pendingImageElementId&&qt.getElement(Ee.pendingImageElementId);Fr&&(0,h.DR)(Fr,{isDeleted:!0},!1),window.document.activeElement instanceof HTMLElement&&zt();var zr,Sr=Ee.multiElement?Ee.multiElement:((pt=Ee.editingElement)===null||pt===void 0?void 0:pt.type)==="freedraw"?Ee.editingElement:null;if(Sr){if(Sr.type!=="freedraw"&&Ee.lastPointerDownWith!=="touch"){var qr=Sr.points,rn=Sr.lastCommittedPoint;rn&&qr[qr.length-1]===rn||(0,h.DR)(Sr,{points:Sr.points.slice(0,-1)})}(0,z.QD)(Sr)&&(Cr=Cr.filter(function(On){return On.id!==Sr.id}));var Ln=(0,ke.g6)(Sr.points,Ee.zoom.value);if((Sr.type==="line"||Sr.type==="freedraw")&&Ln){var Bn=Sr.points,$n=Bn[0];(0,h.DR)(Sr,{points:Bn.map(function(On,Kn){return Kn===Bn.length-1?[$n[0],$n[1]]:On})})}if((0,S.Mn)(Sr)&&!Ln&&Sr.points.length>1){var uo=j._.getPointAtIndexGlobalCoordinates(Sr,-1),wr=(0,E.Z)(uo,2),nn=wr[0],mn=wr[1];(0,V.R)(Sr,Ee,n.Z.getScene(Sr),{x:nn,y:mn})}}return(Ee.activeTool.locked||Ee.activeTool.type==="freedraw")&&Sr||(0,q.z8)(Ut),zr=Ee.activeTool.type==="eraser"?(0,M.Om)(Ee,i(i({},Ee.activeTool.lastActiveTool||{type:"selection"}),{},{lastActiveToolBeforeEraser:null})):(0,M.Om)(Ee,{type:"selection"}),{elements:Cr,appState:i(i({},Ee),{},{cursorButton:"up",activeTool:(Ee.activeTool.locked||Ee.activeTool.type==="freedraw")&&Sr?Ee.activeTool:zr,activeEmbeddable:null,draggingElement:null,multiElement:null,editingElement:null,startBoundElement:null,suggestedBindings:[],selectedElementIds:Sr&&!Ee.activeTool.locked&&Ee.activeTool.type!=="freedraw"?i(i({},Ee.selectedElementIds),{},(0,m.Z)({},Sr.id,!0)):Ee.selectedElementIds,selectedLinearElement:Sr&&(0,S.bt)(Sr)?new j._(Sr,qt):Ee.selectedLinearElement,pendingImageElementId:null}),commitToHistory:Ee.activeTool.type==="freedraw"}},keyTest:function(ne,Ee){return ne.key===_.tW.ESCAPE&&(Ee.editingLinearElement!==null||!Ee.draggingElement&&Ee.multiElement===null)||(ne.key===_.tW.ESCAPE||ne.key===_.tW.ENTER)&&Ee.multiElement!==null},PanelComponent:function(ne){var Ee=ne.appState,Pe=ne.updateData,ze=ne.data;return(0,t.jsx)(ie.V,{type:"button",icon:s.$c,title:(0,g.t)("buttons.done"),"aria-label":(0,g.t)("buttons.done"),onClick:Pe,visible:Ee.multiElement!=null,size:ze?.size||"medium"})}}),B=e(4406);function A(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function X(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?A(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):A(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}var Y="{}",ee=(0,O.z)({name:"copyStyles",trackEvent:{category:"element"},perform:function(ne,Ee){var Pe=[],ze=ne.find(function(Ut){return Ee.selectedElementIds[Ut.id]});if(Pe.push(ze),ze&&(0,S.Xo)(ze)){var pt=(0,ce.WJ)(ze);Pe.push(pt)}return ze&&(Y=JSON.stringify(Pe)),{appState:X(X({},Ee),{},{toast:{message:(0,g.t)("toast.copyStyles")}}),commitToHistory:!1}},contextItemLabel:"labels.copyStyles",keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&ne.altKey&&ne.code===_.aU.C}}),ge=(0,O.z)({name:"pasteStyles",trackEvent:{category:"element"},perform:function(ne,Ee){var Pe=JSON.parse(Y),ze=Pe[0],pt=Pe[1];if(!(0,z.r2)(ze))return{elements:ne,commitToHistory:!1};var Ut=(0,v.eD)(ne,Ee,{includeBoundTextElement:!0}),zt=Ut.map(function(qt){return qt.id});return{elements:ne.map(function(qt){if(zt.includes(qt.id)){var gt,Xt,$t,Er,Or,Cr,Fr,zr=ze;if((0,z.iB)(qt)&&qt.containerId&&(zr=pt),!zr)return qt;var Sr=(0,h.BE)(qt,{backgroundColor:(gt=zr)===null||gt===void 0?void 0:gt.backgroundColor,strokeWidth:(Xt=zr)===null||Xt===void 0?void 0:Xt.strokeWidth,strokeColor:($t=zr)===null||$t===void 0?void 0:$t.strokeColor,strokeStyle:(Er=zr)===null||Er===void 0?void 0:Er.strokeStyle,fillStyle:(Or=zr)===null||Or===void 0?void 0:Or.fillStyle,opacity:(Cr=zr)===null||Cr===void 0?void 0:Cr.opacity,roughness:(Fr=zr)===null||Fr===void 0?void 0:Fr.roughness,roundness:zr.roundness?(0,S.eK)(zr.roundness.type,qt)?zr.roundness:(0,S.UQ)(qt):null});if((0,z.iB)(Sr)){var qr=zr.fontSize||f.n5,rn=zr.fontFamily||f.rk,Ln=null;(Sr=(0,h.BE)(Sr,{fontSize:qr,fontFamily:rn,textAlign:zr.textAlign||f.Hg,lineHeight:zr.lineHeight||(0,ce.PT)(rn)})).containerId&&(Ln=Ut.find(function(Bn){return(0,z.iB)(Sr)&&Bn.id===Sr.containerId})||null),(0,z.oN)(Sr,Ln)}return Sr.type==="arrow"&&(0,S.Yv)(zr)&&(Sr=(0,h.BE)(Sr,{startArrowhead:zr.startArrowhead,endArrowhead:zr.endArrowhead})),(0,S.He)(qt)&&(Sr=(0,h.BE)(Sr,{roundness:null,backgroundColor:"transparent"})),Sr}return qt}),commitToHistory:!0}},contextItemLabel:"labels.pasteStyles",keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&ne.altKey&&ne.code===_.aU.V}});function be(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function Re(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?be(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):be(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}(0,O.z)({name:"toggleCanvasMenu",trackEvent:{category:"menu"},perform:function(ne,Ee){return{appState:Re(Re({},Ee),{},{openMenu:Ee.openMenu==="canvas"?null:"canvas"}),commitToHistory:!1}},PanelComponent:function(ne){var Ee=ne.appState,Pe=ne.updateData;return(0,t.jsx)(ie.V,{type:"button",icon:s.RY,"aria-label":(0,g.t)("buttons.menu"),onClick:Pe,selected:Ee.openMenu==="canvas"})}}),(0,O.z)({name:"toggleEditMenu",trackEvent:{category:"menu"},perform:function(ne,Ee){return{appState:Re(Re({},Ee),{},{openMenu:Ee.openMenu==="shape"?null:"shape"}),commitToHistory:!1}},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData;return(0,t.jsx)(ie.V,{visible:(0,z.RT)(Pe,(0,z.Lm)(Ee)),type:"button",icon:s.DG,"aria-label":(0,g.t)("buttons.edit"),onClick:ze,selected:Pe.openMenu==="shape"})}});var Ze=(0,O.z)({name:"toggleShortcuts",viewMode:!0,trackEvent:{category:"menu",action:"toggleHelpDialog"},perform:function(ne,Ee,Pe,ze){var pt=ze.focusContainer;return Ee.openDialog==="help"&&pt(),{appState:Re(Re({},Ee),{},{openDialog:Ee.openDialog==="help"?null:"help"}),commitToHistory:!1}},keyTest:function(ne){return ne.key===_.tW.QUESTION_MARK}}),Be=e(6655),Ie=e(4643);function Ke(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function Ye(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?Ke(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):Ke(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}function tt(ne,Ee){var Pe=typeof Symbol<"u"&&ne[Symbol.iterator]||ne["@@iterator"];if(!Pe){if(Array.isArray(ne)||(Pe=function(gt,Xt){if(gt){if(typeof gt=="string")return ue(gt,Xt);var $t=Object.prototype.toString.call(gt).slice(8,-1);if($t==="Object"&>.constructor&&($t=gt.constructor.name),$t==="Map"||$t==="Set")return Array.from(gt);if($t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($t))return ue(gt,Xt)}}(ne))||Ee&&ne&&typeof ne.length=="number"){Pe&&(ne=Pe);var ze=0,pt=function(){};return{s:pt,n:function(){return ze>=ne.length?{done:!0}:{done:!1,value:ne[ze++]}},e:function(gt){throw gt},f:pt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ut,zt=!0,qt=!1;return{s:function(){Pe=Pe.call(ne)},n:function(){var gt=Pe.next();return zt=gt.done,gt},e:function(gt){qt=!0,Ut=gt},f:function(){try{zt||Pe.return==null||Pe.return()}finally{if(qt)throw Ut}}}}function ue(ne,Ee){(Ee==null||Ee>ne.length)&&(Ee=ne.length);for(var Pe=0,ze=new Array(Ee);Pe<Ee;Pe++)ze[Pe]=ne[Pe];return ze}var ve=function(ne,Ee,Pe){var ze=Pe.scene.getSelectedElements({selectedElementIds:Ee.selectedElementIds,includeBoundTextElement:!0});return ze.length>=2&&!function(pt){if(pt.length>=2){var Ut,zt=tt(pt[0].groupIds);try{var qt=function(){var Xt=Ut.value;if(pt.reduce(function($t,Er){return $t&&(0,I.Nd)(Er,Xt)},!0))return{v:!0}};for(zt.s();!(Ut=zt.n()).done;){var gt=qt();if((0,Be.Z)(gt)==="object")return gt.v}}catch(Xt){zt.e(Xt)}finally{zt.f()}}return!1}(ze)},De=(0,O.z)({name:"group",trackEvent:{category:"element"},perform:function(ne,Ee,Pe,ze){var pt=ze.scene.getSelectedElements({selectedElementIds:Ee.selectedElementIds,includeBoundTextElement:!0});if(pt.length<2)return{appState:Ee,elements:ne,commitToHistory:!1};var Ut=(0,I.iJ)(Ee);if(Ut.length===1){var zt=Ut[0],qt=new Set((0,I.Fb)(ne,zt).map(function(qr){return qr.id})),gt=new Set(pt.map(function(qr){return qr.id}));if(new Set([].concat((0,y.Z)(Array.from(qt)),(0,y.Z)(Array.from(gt)))).size===qt.size)return{appState:Ee,elements:ne,commitToHistory:!1}}var Xt=(0,y.Z)(ne);new Set(pt.map(function(qr){return qr.frameId})).size>1&&(0,Ce.SH)(pt).forEach(function(qr,rn){Xt=(0,Ce.lz)(Xt,qr,Ee)});var $t=(0,Ie.kb)(),Er=(0,M.xn)(pt);Xt=Xt.map(function(qr){return Er.get(qr.id)?(0,h.BE)(qr,{groupIds:(0,I.S_)(qr.groupIds,$t,Ee.editingGroupId)}):qr});var Or=(0,I.Fb)(Xt,$t),Cr=Or[Or.length-1],Fr=Xt.lastIndexOf(Cr),zr=Xt.slice(Fr+1),Sr=Xt.slice(0,Fr).filter(function(qr){return!(0,I.Nd)(qr,$t)});return Xt=[].concat((0,y.Z)(Sr),(0,y.Z)(Or),(0,y.Z)(zr)),{appState:Ye(Ye({},Ee),(0,I.F$)($t,Ye(Ye({},Ee),{},{selectedGroupIds:{}}),(0,z.Lm)(Xt))),elements:Xt,commitToHistory:!0}},contextItemLabel:"labels.group",predicate:function(ne,Ee,Pe,ze){return ve(0,Ee,ze)},keyTest:function(ne){return!ne.shiftKey&&ne[_.tW.CTRL_OR_CMD]&&ne.key===_.tW.G},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData,pt=ne.app;return(0,t.jsx)(ie.V,{hidden:!ve(0,Pe,pt),type:"button",icon:(0,t.jsx)(s.BF,{theme:Pe.theme}),onClick:function(){return ze(null)},title:"".concat((0,g.t)("labels.group")," — ").concat((0,M.uY)("CtrlOrCmd+G")),"aria-label":(0,g.t)("labels.group"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),He=(0,O.z)({name:"ungroup",trackEvent:{category:"element"},perform:function(ne,Ee,Pe,ze){if((0,I.iJ)(Ee).length===0)return{appState:Ee,elements:ne,commitToHistory:!1};var pt=(0,y.Z)(ne),Ut=[];pt=pt.map(function(Xt){(0,S.Xh)(Xt)&&Ut.push(Xt.id);var $t=(0,I.h6)(Xt.groupIds,Ee.selectedGroupIds);return $t.length===Xt.groupIds.length?Xt:(0,h.BE)(Xt,{groupIds:$t})});var zt=(0,I.bO)(Ee,(0,z.Lm)(pt),Ee,null),qt=ze.scene.getSelectedElements(Ee),gt=new Set(qt.filter(function(Xt){return Xt.frameId}).map(function(Xt){return Xt.frameId}));return(0,Ce.wO)(ne).filter(function(Xt){return gt.has(Xt.id)}).forEach(function(Xt){Xt&&(pt=(0,Ce.pr)(pt,(0,Ce.ni)(pt,Xt,Ee),Xt,Ee))}),zt.selectedElementIds=Object.entries(zt.selectedElementIds).reduce(function(Xt,$t){var Er=(0,E.Z)($t,2),Or=Er[0];return Er[1]&&!Ut.includes(Or)&&(Xt[Or]=!0),Xt},{}),{appState:Ye(Ye({},Ee),zt),elements:pt,commitToHistory:!0}},keyTest:function(ne){return ne.shiftKey&&ne[_.tW.CTRL_OR_CMD]&&ne.key===_.tW.G.toUpperCase()},contextItemLabel:"labels.ungroup",predicate:function(ne,Ee){return(0,I.iJ)(Ee).length>0},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData;return(0,t.jsx)(ie.V,{type:"button",hidden:(0,I.iJ)(Pe).length===0,icon:(0,t.jsx)(s.RJ,{theme:Pe.theme}),onClick:function(){return ze(null)},title:"".concat((0,g.t)("labels.ungroup")," — ").concat((0,M.uY)("CtrlOrCmd+Shift+G")),"aria-label":(0,g.t)("labels.ungroup"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),Je=e(957),qe=e(3379),st=e.n(qe),ht=e(7795),et=e.n(ht),wt=e(569),Lt=e.n(wt),St=e(3565),yt=e.n(St),Wt=e(9216),Ft=e.n(Wt),Ve=e(4589),bt=e.n(Ve),at=e(3729),mt={};mt.styleTagTransform=bt(),mt.setAttributes=yt(),mt.insert=Lt().bind(null,"head"),mt.domAPI=et(),mt.insertStyleElement=Ft(),st()(at.Z,mt),at.Z&&at.Z.locals&&at.Z.locals;var ut=e(9787),Ot=function(ne){var Ee=ne.color,Pe=ne.onClick,ze=ne.name,pt=ne.src,Ut=(0,Je.l)(ze),zt=(0,ut.useState)(!1),qt=(0,E.Z)(zt,2),gt=qt[0],Xt=qt[1],$t=!gt&&pt,Er=$t?void 0:{background:Ee};return(0,t.jsx)("div",{className:"Avatar",style:Er,onClick:Pe,children:$t?(0,t.jsx)("img",{className:"Avatar-img",src:pt,alt:Ut,referrerPolicy:"no-referrer",onError:function(){return Xt(!0)}}):Ut})},Pt=e(2382);function Gt(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function Ct(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?Gt(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):Gt(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}(0,O.z)({name:"goToCollaborator",viewMode:!0,trackEvent:{category:"collab"},perform:function(ne,Ee,Pe){var ze=Pe;return ze?{appState:Ct(Ct(Ct({},Ee),(0,Pt.s)({scenePoint:ze,viewportDimensions:{width:Ee.width,height:Ee.height},zoom:Ee.zoom})),{},{openMenu:Ee.openMenu==="canvas"?null:Ee.openMenu}),commitToHistory:!1}:{appState:Ee,commitToHistory:!1}},PanelComponent:function(ne){var Ee=ne.updateData,Pe=ne.data,ze=(0,E.Z)(Pe,2),pt=ze[0],Ut=ze[1],zt=(0,Je.G)(pt);return(0,t.jsx)(Ot,{color:zt,onClick:function(){return Ee(Ut.pointer)},name:Ut.username||"",src:Ut.avatarUrl})}});var ur=e(5742);function rr(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function Tr(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?rr(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):rr(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}function ot(ne,Ee){var Pe=typeof Symbol<"u"&&ne[Symbol.iterator]||ne["@@iterator"];if(!Pe){if(Array.isArray(ne)||(Pe=function(gt,Xt){if(gt){if(typeof gt=="string")return Rt(gt,Xt);var $t=Object.prototype.toString.call(gt).slice(8,-1);if($t==="Object"&>.constructor&&($t=gt.constructor.name),$t==="Map"||$t==="Set")return Array.from(gt);if($t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($t))return Rt(gt,Xt)}}(ne))||Ee&&ne&&typeof ne.length=="number"){Pe&&(ne=Pe);var ze=0,pt=function(){};return{s:pt,n:function(){return ze>=ne.length?{done:!0}:{done:!1,value:ne[ze++]}},e:function(gt){throw gt},f:pt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ut,zt=!0,qt=!1;return{s:function(){Pe=Pe.call(ne)},n:function(){var gt=Pe.next();return zt=gt.done,gt},e:function(gt){qt=!0,Ut=gt},f:function(){try{zt||Pe.return==null||Pe.return()}finally{if(qt)throw Ut}}}}function Rt(ne,Ee){(Ee==null||Ee>ne.length)&&(Ee=ne.length);for(var Pe=0,ze=new Array(Ee);Pe<Ee;Pe++)ze[Pe]=ne[Pe];return ze}var _t=(0,O.z)({name:"addToLibrary",trackEvent:{category:"element"},perform:function(ne,Ee,Pe,ze){var pt,Ut=ze.scene.getSelectedElements({selectedElementIds:Ee.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0}),zt=ot(f.PR);try{var qt=function(){var Xt=pt.value;if(Ut.some(function($t){return $t.type===Xt}))return{v:{commitToHistory:!1,appState:Tr(Tr({},Ee),{},{errorMessage:(0,g.t)("errors.libraryElementTypeError.".concat(Xt))})}}};for(zt.s();!(pt=zt.n()).done;){var gt=qt();if((0,Be.Z)(gt)==="object")return gt.v}}catch(Xt){zt.e(Xt)}finally{zt.f()}return ze.library.getLatestLibrary().then(function(Xt){return ze.library.setLibrary([{id:(0,Ie.kb)(),status:"unpublished",elements:Ut.map(ur.OL),created:Date.now()}].concat((0,y.Z)(Xt)))}).then(function(){return{commitToHistory:!1,appState:Tr(Tr({},Ee),{},{toast:{message:(0,g.t)("toast.addedToLibrary")}})}}).catch(function(Xt){return{commitToHistory:!1,appState:Tr(Tr({},Ee),{},{errorMessage:Xt.message})}})},contextItemLabel:"labels.addToLibrary"}),At=e(4949);function br(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function xr(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?br(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):br(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}var jr=function(ne,Ee,Pe){var ze=Pe.axis,pt=Pe.position,Ut=(0,At.v2)(ne),zt=ze==="x"?["minX","maxX"]:["minY","maxY"],qt=(0,E.Z)(zt,2),gt=qt[0],Xt=qt[1],$t={x:0,y:0};return xr(xr({},$t),{},pt==="start"?(0,m.Z)({},ze,Ee[gt]-Ut[gt]):pt==="end"?(0,m.Z)({},ze,Ee[Xt]-Ut[Xt]):(0,m.Z)({},ze,(Ee[gt]+Ee[Xt])/2-(Ut[gt]+Ut[Xt])/2))},Ar=function(ne,Ee,Pe,ze){var pt=ze.scene.getSelectedElements(Ee);return pt.length>1&&!pt.some(function(Ut){return Ut.type==="frame"})},fr=function(ne,Ee,Pe,ze){var pt=function(zt,qt){var gt=(0,I.AI)(zt),Xt=(0,At.v2)(zt);return gt.flatMap(function($t){var Er=jr($t,Xt,qt);return $t.map(function(Or){return(0,h.BE)(Or,{x:Or.x+Er.x,y:Or.y+Er.y})})})}(Pe.scene.getSelectedElements(Ee),ze),Ut=(0,M.xn)(pt);return(0,Ce.Tq)(ne.map(function(zt){return Ut.get(zt.id)||zt}),Ee,Pe)};(0,O.z)({name:"alignTop",trackEvent:{category:"element"},predicate:Ar,perform:function(ne,Ee,Pe,ze){return{appState:Ee,elements:fr(ne,Ee,ze,{position:"start",axis:"y"}),commitToHistory:!0}},keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&ne.shiftKey&&ne.key===_.tW.ARROW_UP},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData,pt=ne.app;return(0,t.jsx)(ie.V,{hidden:!Ar(0,Pe,0,pt),type:"button",icon:s.Ct,onClick:function(){return ze(null)},title:"".concat((0,g.t)("labels.alignTop")," — ").concat((0,M.uY)("CtrlOrCmd+Shift+Up")),"aria-label":(0,g.t)("labels.alignTop"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),(0,O.z)({name:"alignBottom",trackEvent:{category:"element"},predicate:Ar,perform:function(ne,Ee,Pe,ze){return{appState:Ee,elements:fr(ne,Ee,ze,{position:"end",axis:"y"}),commitToHistory:!0}},keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&ne.shiftKey&&ne.key===_.tW.ARROW_DOWN},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData,pt=ne.app;return(0,t.jsx)(ie.V,{hidden:!Ar(0,Pe,0,pt),type:"button",icon:s.HL,onClick:function(){return ze(null)},title:"".concat((0,g.t)("labels.alignBottom")," — ").concat((0,M.uY)("CtrlOrCmd+Shift+Down")),"aria-label":(0,g.t)("labels.alignBottom"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),(0,O.z)({name:"alignLeft",trackEvent:{category:"element"},predicate:Ar,perform:function(ne,Ee,Pe,ze){return{appState:Ee,elements:fr(ne,Ee,ze,{position:"start",axis:"x"}),commitToHistory:!0}},keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&ne.shiftKey&&ne.key===_.tW.ARROW_LEFT},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData,pt=ne.app;return(0,t.jsx)(ie.V,{hidden:!Ar(0,Pe,0,pt),type:"button",icon:s.xs,onClick:function(){return ze(null)},title:"".concat((0,g.t)("labels.alignLeft")," — ").concat((0,M.uY)("CtrlOrCmd+Shift+Left")),"aria-label":(0,g.t)("labels.alignLeft"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),(0,O.z)({name:"alignRight",trackEvent:{category:"element"},predicate:Ar,perform:function(ne,Ee,Pe,ze){return{appState:Ee,elements:fr(ne,Ee,ze,{position:"end",axis:"x"}),commitToHistory:!0}},keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&ne.shiftKey&&ne.key===_.tW.ARROW_RIGHT},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData,pt=ne.app;return(0,t.jsx)(ie.V,{hidden:!Ar(0,Pe,0,pt),type:"button",icon:s.mh,onClick:function(){return ze(null)},title:"".concat((0,g.t)("labels.alignRight")," — ").concat((0,M.uY)("CtrlOrCmd+Shift+Right")),"aria-label":(0,g.t)("labels.alignRight"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),(0,O.z)({name:"alignVerticallyCentered",trackEvent:{category:"element"},predicate:Ar,perform:function(ne,Ee,Pe,ze){return{appState:Ee,elements:fr(ne,Ee,ze,{position:"center",axis:"y"}),commitToHistory:!0}},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData,pt=ne.app;return(0,t.jsx)(ie.V,{hidden:!Ar(0,Pe,0,pt),type:"button",icon:s.ST,onClick:function(){return ze(null)},title:(0,g.t)("labels.centerVertically"),"aria-label":(0,g.t)("labels.centerVertically"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),(0,O.z)({name:"alignHorizontallyCentered",trackEvent:{category:"element"},predicate:Ar,perform:function(ne,Ee,Pe,ze){return{appState:Ee,elements:fr(ne,Ee,ze,{position:"center",axis:"x"}),commitToHistory:!0}},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData,pt=ne.app;return(0,t.jsx)(ie.V,{hidden:!Ar(0,Pe,0,pt),type:"button",icon:s.gK,onClick:function(){return ze(null)},title:(0,g.t)("labels.centerHorizontally"),"aria-label":(0,g.t)("labels.centerHorizontally"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}});function dt(ne,Ee){var Pe=typeof Symbol<"u"&&ne[Symbol.iterator]||ne["@@iterator"];if(!Pe){if(Array.isArray(ne)||(Pe=function(gt,Xt){if(gt){if(typeof gt=="string")return ft(gt,Xt);var $t=Object.prototype.toString.call(gt).slice(8,-1);if($t==="Object"&>.constructor&&($t=gt.constructor.name),$t==="Map"||$t==="Set")return Array.from(gt);if($t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($t))return ft(gt,Xt)}}(ne))||Ee&&ne&&typeof ne.length=="number"){Pe&&(ne=Pe);var ze=0,pt=function(){};return{s:pt,n:function(){return ze>=ne.length?{done:!0}:{done:!1,value:ne[ze++]}},e:function(gt){throw gt},f:pt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ut,zt=!0,qt=!1;return{s:function(){Pe=Pe.call(ne)},n:function(){var gt=Pe.next();return zt=gt.done,gt},e:function(gt){qt=!0,Ut=gt},f:function(){try{zt||Pe.return==null||Pe.return()}finally{if(qt)throw Ut}}}}function ft(ne,Ee){(Ee==null||Ee>ne.length)&&(Ee=ne.length);for(var Pe=0,ze=new Array(Ee);Pe<Ee;Pe++)ze[Pe]=ne[Pe];return ze}var vt=function(ne,Ee){var Pe=Ee.scene.getSelectedElements(ne);return Pe.length>1&&!Pe.some(function(ze){return ze.type==="frame"})},Et=function(ne,Ee,Pe,ze){var pt=function(zt,qt){var gt,Xt=qt.axis==="x"?["minX","midX","maxX","width"]:["minY","midY","maxY","height"],$t=(0,E.Z)(Xt,4),Er=$t[0],Or=$t[1],Cr=$t[2],Fr=$t[3],zr=(0,At.v2)(zt),Sr=(0,I.AI)(zt).map(function(mn){return[mn,(0,At.v2)(mn)]}).sort(function(mn,On){return mn[1][Or]-On[1][Or]}),qr=0,rn=dt(Sr);try{for(rn.s();!(gt=rn.n()).done;)qr+=gt.value[1][Fr]}catch(mn){rn.e(mn)}finally{rn.f()}var Ln=(zr[Fr]-qr)/(Sr.length-1);if(Ln<0){var Bn=Sr.findIndex(function(mn){return mn[1][Er]===zr[Er]}),$n=Sr.findIndex(function(mn){return mn[1][Cr]===zr[Cr]}),uo=(Sr[$n][1][Or]-Sr[Bn][1][Or])/(Sr.length-1),wr=Sr[Bn][1][Or];return Sr.flatMap(function(mn,On){var Kn=(0,E.Z)(mn,2),Jn=Kn[0],wo=Kn[1],to={x:0,y:0};return On!==Bn&&On!==$n&&(wr+=uo,to[qt.axis]=wr-wo[Or]),Jn.map(function(no){return(0,h.BE)(no,{x:no.x+to.x,y:no.y+to.y})})})}var nn=zr[Er];return Sr.flatMap(function(mn){var On=(0,E.Z)(mn,2),Kn=On[0],Jn=On[1],wo={x:0,y:0};return wo[qt.axis]=nn-Jn[Er],nn+=Ln,nn+=Jn[Fr],Kn.map(function(to){return(0,h.BE)(to,{x:to.x+wo.x,y:to.y+wo.y})})})}(Pe.scene.getSelectedElements(Ee),ze),Ut=(0,M.xn)(pt);return(0,Ce.Tq)(ne.map(function(zt){return Ut.get(zt.id)||zt}),Ee,Pe)},tr=((0,O.z)({name:"distributeHorizontally",trackEvent:{category:"element"},perform:function(ne,Ee,Pe,ze){return{appState:Ee,elements:Et(ne,Ee,ze,{space:"between",axis:"x"}),commitToHistory:!0}},keyTest:function(ne){return!ne[_.tW.CTRL_OR_CMD]&&ne.altKey&&ne.code===_.aU.H},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData,pt=ne.app;return(0,t.jsx)(ie.V,{hidden:!vt(Pe,pt),type:"button",icon:s.uD,onClick:function(){return ze(null)},title:"".concat((0,g.t)("labels.distributeHorizontally")," — ").concat((0,M.uY)("Alt+H")),"aria-label":(0,g.t)("labels.distributeHorizontally"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),(0,O.z)({name:"distributeVertically",trackEvent:{category:"element"},perform:function(ne,Ee,Pe,ze){return{appState:Ee,elements:Et(ne,Ee,ze,{space:"between",axis:"y"}),commitToHistory:!0}},keyTest:function(ne){return!ne[_.tW.CTRL_OR_CMD]&&ne.altKey&&ne.code===_.aU.V},PanelComponent:function(ne){var Ee=ne.elements,Pe=ne.appState,ze=ne.updateData,pt=ne.app;return(0,t.jsx)(ie.V,{hidden:!vt(Pe,pt),type:"button",icon:s.W5,onClick:function(){return ze(null)},title:"".concat((0,g.t)("labels.distributeVertically")," — ").concat((0,M.uY)("Alt+V")),"aria-label":(0,g.t)("labels.distributeVertically"),visible:(0,v.N)((0,z.Lm)(Ee),Pe)})}}),e(4381)),ir=(0,O.z)({name:"flipHorizontal",trackEvent:{category:"element"},perform:function(ne,Ee,Pe,ze){return{elements:(0,Ce.Tq)(_r(ne,Ee,"horizontal"),Ee,ze),appState:Ee,commitToHistory:!0}},keyTest:function(ne){return ne.shiftKey&&ne.code===_.aU.H},contextItemLabel:"labels.flipHorizontal"}),Qt=(0,O.z)({name:"flipVertical",trackEvent:{category:"element"},perform:function(ne,Ee,Pe,ze){return{elements:(0,Ce.Tq)(_r(ne,Ee,"vertical"),Ee,ze),appState:Ee,commitToHistory:!0}},keyTest:function(ne){return ne.shiftKey&&ne.code===_.aU.V&&!ne[_.tW.CTRL_OR_CMD]},contextItemLabel:"labels.flipVertical"}),_r=function(ne,Ee,Pe){var ze=(0,v.eD)((0,z.Lm)(ne),Ee,{includeBoundTextElement:!0,includeElementsInFrames:!0}),pt=sr(ze,Ee,Pe),Ut=(0,M.xn)(pt);return ne.map(function(zt){return Ut.get(zt.id)||zt})},sr=function(ne,Ee,Pe){var ze=(0,At.v2)(ne),pt=ze.minX,Ut=ze.minY,zt=ze.maxX,qt=ze.maxY;return(0,tr.LM)({originalElements:(0,M.xn)(ne)},ne,"nw",!0,Pe==="horizontal"?zt:pt,Pe==="horizontal"?Ut:qt),((0,V.N1)(Ee)?V.el:V.H)(ne),ne},mr=e(5047);function Zr(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function or(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?Zr(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):Zr(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}var lr=(0,O.z)({name:"gridMode",viewMode:!0,trackEvent:{category:"canvas",predicate:function(ne){return!ne.gridSize}},perform:function(ne,Ee){return{appState:or(or({},Ee),{},{gridSize:this.checked(Ee)?null:f.k,objectsSnapModeEnabled:!1}),commitToHistory:!1}},checked:function(ne){return ne.gridSize!==null},predicate:function(ne,Ee,Pe){return Pe.gridModeEnabled===void 0},contextItemLabel:"labels.showGrid",keyTest:function(ne){return ne[_.tW.CTRL_OR_CMD]&&ne.code===_.aU.QUOTE}});function gr(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function cr(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?gr(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):gr(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}var Hr=(0,O.z)({name:"zenMode",viewMode:!0,trackEvent:{category:"canvas",predicate:function(ne){return!ne.zenModeEnabled}},perform:function(ne,Ee){return{appState:cr(cr({},Ee),{},{zenModeEnabled:!this.checked(Ee)}),commitToHistory:!1}},checked:function(ne){return ne.zenModeEnabled},predicate:function(ne,Ee,Pe){return Pe.zenModeEnabled===void 0},contextItemLabel:"buttons.zenMode",keyTest:function(ne){return!ne[_.tW.CTRL_OR_CMD]&&ne.altKey&&ne.code===_.aU.Z}});function vr(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function Rr(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?vr(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):vr(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}var an=(0,O.z)({name:"objectsSnapMode",viewMode:!0,trackEvent:{category:"canvas",predicate:function(ne){return!ne.objectsSnapModeEnabled}},perform:function(ne,Ee){return{appState:Rr(Rr({},Ee),{},{objectsSnapModeEnabled:!this.checked(Ee),gridSize:null}),commitToHistory:!1}},checked:function(ne){return ne.objectsSnapModeEnabled},predicate:function(ne,Ee,Pe){return Pe.objectsSnapModeEnabled===void 0},contextItemLabel:"buttons.objectsSnapMode",keyTest:function(ne){return!ne[_.tW.CTRL_OR_CMD]&&ne.altKey&&ne.code===_.aU.S}}),Sn=e(7080),Mn=e(7392),Zn=e(5992),Rn=e(9672);function bn(ne,Ee){var Pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);Ee&&(ze=ze.filter(function(pt){return Object.getOwnPropertyDescriptor(ne,pt).enumerable})),Pe.push.apply(Pe,ze)}return Pe}function yn(ne){for(var Ee=1;Ee<arguments.length;Ee++){var Pe=arguments[Ee]!=null?arguments[Ee]:{};Ee%2?bn(Object(Pe),!0).forEach(function(ze){(0,m.Z)(ne,ze,Pe[ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(Pe)):bn(Object(Pe)).forEach(function(ze){Object.defineProperty(ne,ze,Object.getOwnPropertyDescriptor(Pe,ze))})}return ne}var Un=(0,O.z)({name:"toggleLinearEditor",trackEvent:{category:"element"},predicate:function(ne,Ee,Pe,ze){var pt=ze.scene.getSelectedElements(Ee);return!(pt.length!==1||!(0,S.bt)(pt[0]))},perform:function(ne,Ee,Pe,ze){var pt,Ut=ze.scene.getSelectedElements({selectedElementIds:Ee.selectedElementIds,includeBoundTextElement:!0})[0],zt=((pt=Ee.editingLinearElement)===null||pt===void 0?void 0:pt.elementId)===Ut.id?null:new j._(Ut,ze.scene);return{appState:yn(yn({},Ee),{},{editingLinearElement:zt}),commitToHistory:!1}},contextItemLabel:function(ne,Ee,Pe){var ze,pt=Pe.scene.getSelectedElements({selectedElementIds:Ee.selectedElementIds,includeBoundTextElement:!0})[0];return((ze=Ee.editingLinearElement)===null||ze===void 0?void 0:ze.elementId)===pt.id?"labels.lineEditor.exit":"labels.lineEditor.edit"}})},2767:function(Se,Q,e){e.d(Q,{N:function(){return D},z:function(){return E}});var D=[],E=function(y){return D=D.concat(y),y}},2529:function(Se,Q,e){e.d(Q,{C:function(){return S}});var D=e(9937),E=e(8227),y=e(9827),h={toggleTheme:[(0,y.uY)("Shift+Alt+D")],saveScene:[(0,y.uY)("CtrlOrCmd+S")],loadScene:[(0,y.uY)("CtrlOrCmd+O")],clearCanvas:[(0,y.uY)("CtrlOrCmd+Delete")],imageExport:[(0,y.uY)("CtrlOrCmd+Shift+E")],cut:[(0,y.uY)("CtrlOrCmd+X")],copy:[(0,y.uY)("CtrlOrCmd+C")],paste:[(0,y.uY)("CtrlOrCmd+V")],copyStyles:[(0,y.uY)("CtrlOrCmd+Alt+C")],pasteStyles:[(0,y.uY)("CtrlOrCmd+Alt+V")],selectAll:[(0,y.uY)("CtrlOrCmd+A")],deleteSelectedElements:[(0,y.uY)("Delete")],duplicateSelection:[(0,y.uY)("CtrlOrCmd+D"),(0,y.uY)("Alt+".concat((0,E.t)("helpDialog.drag")))],sendBackward:[(0,y.uY)("CtrlOrCmd+[")],bringForward:[(0,y.uY)("CtrlOrCmd+]")],sendToBack:[D.Um?(0,y.uY)("CtrlOrCmd+Alt+["):(0,y.uY)("CtrlOrCmd+Shift+[")],bringToFront:[D.Um?(0,y.uY)("CtrlOrCmd+Alt+]"):(0,y.uY)("CtrlOrCmd+Shift+]")],copyAsPng:[(0,y.uY)("Shift+Alt+C")],copyAsSvg:[],group:[(0,y.uY)("CtrlOrCmd+G")],ungroup:[(0,y.uY)("CtrlOrCmd+Shift+G")],gridMode:[(0,y.uY)("CtrlOrCmd+'")],zenMode:[(0,y.uY)("Alt+Z")],objectsSnapMode:[(0,y.uY)("Alt+S")],stats:[(0,y.uY)("Alt+/")],addToLibrary:[],flipHorizontal:[(0,y.uY)("Shift+H")],flipVertical:[(0,y.uY)("Shift+V")],viewMode:[(0,y.uY)("Alt+R")],hyperlink:[(0,y.uY)("CtrlOrCmd+K")],toggleElementLock:[(0,y.uY)("CtrlOrCmd+Shift+L")]},S=function(I){var v=h[I];return v&&v.length>0?v[0]:""}},3646:function(Se,Q,e){e.d(Q,{L:function(){return D}});var D=function(E,y,h,S){try{if(typeof window>"u"||{VITE_APP_BACKEND_V2_GET_URL:"https://json.excalidraw.com/api/v2/",VITE_APP_BACKEND_V2_POST_URL:"https://json.excalidraw.com/api/v2/post/",VITE_APP_LIBRARY_URL:"https://libraries.excalidraw.com",VITE_APP_LIBRARY_BACKEND:"https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries",VITE_APP_PORTAL_URL:"https://portal.excalidraw.com",VITE_APP_PLUS_LP:"https://plus.excalidraw.com",VITE_APP_PLUS_APP:"https://app.excalidraw.com",VITE_APP_WS_SERVER_URL:"",VITE_APP_FIREBASE_CONFIG:'{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}',VITE_APP_DISABLE_TRACKING:"",VITE_PKG_NAME:"@excalidraw/excalidraw",VITE_PKG_VERSION:"0.17.0",VITE_IS_EXCALIDRAW_NPM_PACKAGE:!0}.VITE_WORKER_ID||![].includes(E))return;window.sa_event&&window.sa_event(y,{category:E,label:h,value:S})}catch(I){console.error("error during analytics",I)}}},6853:function(Se,Q,e){e.d(Q,{EN:function(){return H},eS:function(){return Z},im:function(){return I},l$:function(){return W},s:function(){return M}});var D=e(9240),E=e(9937),y=e(8227),h=e(9827),S=E.ZB.includes(devicePixelRatio)?devicePixelRatio:1,I=function(){return{showWelcomeScreen:!1,theme:E.C6.LIGHT,collaborators:new Map,currentChartType:"bar",currentItemBackgroundColor:E.HN.backgroundColor,currentItemEndArrowhead:"arrow",currentItemFillStyle:E.HN.fillStyle,currentItemFontFamily:E.rk,currentItemFontSize:E.n5,currentItemOpacity:E.HN.opacity,currentItemRoughness:E.HN.roughness,currentItemStartArrowhead:null,currentItemStrokeColor:E.HN.strokeColor,currentItemRoundness:"round",currentItemStrokeStyle:E.HN.strokeStyle,currentItemStrokeWidth:E.HN.strokeWidth,currentItemTextAlign:E.Hg,cursorButton:"up",activeEmbeddable:null,draggingElement:null,editingElement:null,editingGroupId:null,editingLinearElement:null,activeTool:{type:"selection",customType:null,locked:E.HN.locked,lastActiveTool:null},penMode:!1,penDetected:!1,errorMessage:null,exportBackground:!0,exportScale:S,exportEmbedScene:!1,exportWithDarkMode:!1,fileHandle:null,gridSize:null,isBindingEnabled:!0,defaultSidebarDockedPreference:!1,isLoading:!1,isResizing:!1,isRotating:!1,lastPointerDownWith:"mouse",multiElement:null,name:"".concat((0,y.t)("labels.untitled"),"-").concat((0,h.Fc)()),contextMenu:null,openMenu:null,openPopup:null,openSidebar:null,openDialog:null,pasteDialog:{shown:!1,data:null},previousSelectedElementIds:{},resizingElement:null,scrolledOutside:!1,scrollX:0,scrollY:0,selectedElementIds:{},selectedGroupIds:{},selectedElementsAreBeingDragged:!1,selectionElement:null,shouldCacheIgnoreZoom:!1,showStats:!1,startBoundElement:null,suggestedBindings:[],frameRendering:{enabled:!0,clip:!0,name:!0,outline:!0},frameToHighlight:null,editingFrame:null,elementsToHighlight:null,toast:null,viewBackgroundColor:D.HO.white,zenModeEnabled:!1,zoom:{value:1},viewModeEnabled:!1,pendingImageElementId:null,showHyperlinkPopup:!1,selectedLinearElement:null,snapLines:[],originSnapOffset:{x:0,y:0},objectsSnapModeEnabled:!1}},v={showWelcomeScreen:{browser:!0,export:!1,server:!1},theme:{browser:!0,export:!1,server:!1},collaborators:{browser:!1,export:!1,server:!1},currentChartType:{browser:!0,export:!1,server:!1},currentItemBackgroundColor:{browser:!0,export:!1,server:!1},currentItemEndArrowhead:{browser:!0,export:!1,server:!1},currentItemFillStyle:{browser:!0,export:!1,server:!1},currentItemFontFamily:{browser:!0,export:!1,server:!1},currentItemFontSize:{browser:!0,export:!1,server:!1},currentItemRoundness:{browser:!0,export:!1,server:!1},currentItemOpacity:{browser:!0,export:!1,server:!1},currentItemRoughness:{browser:!0,export:!1,server:!1},currentItemStartArrowhead:{browser:!0,export:!1,server:!1},currentItemStrokeColor:{browser:!0,export:!1,server:!1},currentItemStrokeStyle:{browser:!0,export:!1,server:!1},currentItemStrokeWidth:{browser:!0,export:!1,server:!1},currentItemTextAlign:{browser:!0,export:!1,server:!1},cursorButton:{browser:!0,export:!1,server:!1},activeEmbeddable:{browser:!1,export:!1,server:!1},draggingElement:{browser:!1,export:!1,server:!1},editingElement:{browser:!1,export:!1,server:!1},editingGroupId:{browser:!0,export:!1,server:!1},editingLinearElement:{browser:!1,export:!1,server:!1},activeTool:{browser:!0,export:!1,server:!1},penMode:{browser:!0,export:!1,server:!1},penDetected:{browser:!0,export:!1,server:!1},errorMessage:{browser:!1,export:!1,server:!1},exportBackground:{browser:!0,export:!1,server:!1},exportEmbedScene:{browser:!0,export:!1,server:!1},exportScale:{browser:!0,export:!1,server:!1},exportWithDarkMode:{browser:!0,export:!1,server:!1},fileHandle:{browser:!1,export:!1,server:!1},gridSize:{browser:!0,export:!0,server:!0},height:{browser:!1,export:!1,server:!1},isBindingEnabled:{browser:!1,export:!1,server:!1},defaultSidebarDockedPreference:{browser:!0,export:!1,server:!1},isLoading:{browser:!1,export:!1,server:!1},isResizing:{browser:!1,export:!1,server:!1},isRotating:{browser:!1,export:!1,server:!1},lastPointerDownWith:{browser:!0,export:!1,server:!1},multiElement:{browser:!1,export:!1,server:!1},name:{browser:!0,export:!1,server:!1},offsetLeft:{browser:!1,export:!1,server:!1},offsetTop:{browser:!1,export:!1,server:!1},contextMenu:{browser:!1,export:!1,server:!1},openMenu:{browser:!0,export:!1,server:!1},openPopup:{browser:!1,export:!1,server:!1},openSidebar:{browser:!0,export:!1,server:!1},openDialog:{browser:!1,export:!1,server:!1},pasteDialog:{browser:!1,export:!1,server:!1},previousSelectedElementIds:{browser:!0,export:!1,server:!1},resizingElement:{browser:!1,export:!1,server:!1},scrolledOutside:{browser:!0,export:!1,server:!1},scrollX:{browser:!0,export:!1,server:!1},scrollY:{browser:!0,export:!1,server:!1},selectedElementIds:{browser:!0,export:!1,server:!1},selectedGroupIds:{browser:!0,export:!1,server:!1},selectedElementsAreBeingDragged:{browser:!1,export:!1,server:!1},selectionElement:{browser:!1,export:!1,server:!1},shouldCacheIgnoreZoom:{browser:!0,export:!1,server:!1},showStats:{browser:!0,export:!1,server:!1},startBoundElement:{browser:!1,export:!1,server:!1},suggestedBindings:{browser:!1,export:!1,server:!1},frameRendering:{browser:!1,export:!1,server:!1},frameToHighlight:{browser:!1,export:!1,server:!1},editingFrame:{browser:!1,export:!1,server:!1},elementsToHighlight:{browser:!1,export:!1,server:!1},toast:{browser:!1,export:!1,server:!1},viewBackgroundColor:{browser:!0,export:!0,server:!0},width:{browser:!1,export:!1,server:!1},zenModeEnabled:{browser:!0,export:!1,server:!1},zoom:{browser:!0,export:!1,server:!1},viewModeEnabled:{browser:!1,export:!1,server:!1},pendingImageElementId:{browser:!1,export:!1,server:!1},showHyperlinkPopup:{browser:!1,export:!1,server:!1},selectedLinearElement:{browser:!0,export:!1,server:!1},snapLines:{browser:!1,export:!1,server:!1},originSnapOffset:{browser:!1,export:!1,server:!1},objectsSnapModeEnabled:{browser:!0,export:!1,server:!1}},n=function(u,U){for(var le={},de=0,he=Object.keys(u);de<he.length;de++){var pe=he[de],oe=v[pe];if(oe!=null&&oe[U]){var P=u[pe];le[pe]=P}}return le},M=function(u){return n(u,"export")},Z=function(u){return n(u,"server")},H=function(u){return u.activeTool.type==="eraser"},W=function(u){return u.activeTool.type==="hand"}},901:function(Se,Q,e){e.d(Q,{dz:function(){return P},i$:function(){return de},ps:function(){return g}});var D=e(1930),E=e(7169),y=e(2577),h=e(9240),S=e(9937),I=e(7651),v=e(4643);function n(O,s){var f=typeof Symbol<"u"&&O[Symbol.iterator]||O["@@iterator"];if(!f){if(Array.isArray(O)||(f=function(m,z){if(m){if(typeof m=="string")return M(m,z);var j=Object.prototype.toString.call(m).slice(8,-1);if(j==="Object"&&m.constructor&&(j=m.constructor.name),j==="Map"||j==="Set")return Array.from(m);if(j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return M(m,z)}}(O))||s&&O&&typeof O.length=="number"){f&&(O=f);var t=0,w=function(){};return{s:w,n:function(){return t>=O.length?{done:!0}:{done:!1,value:O[t++]}},e:function(m){throw m},f:w}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,a=!0,c=!1;return{s:function(){f=f.call(O)},n:function(){var m=f.next();return a=m.done,m},e:function(m){c=!0,l=m},f:function(){try{a||f.return==null||f.return()}finally{if(c)throw l}}}}function M(O,s){(s==null||s>O.length)&&(s=O.length);for(var f=0,t=new Array(s);f<s;f++)t[f]=O[f];return t}function Z(O,s){var f=Object.keys(O);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(O);s&&(t=t.filter(function(w){return Object.getOwnPropertyDescriptor(O,w).enumerable})),f.push.apply(f,t)}return f}function H(O){for(var s=1;s<arguments.length;s++){var f=arguments[s]!=null?arguments[s]:{};s%2?Z(Object(f),!0).forEach(function(t){(0,E.Z)(O,t,f[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(f)):Z(Object(f)).forEach(function(t){Object.defineProperty(O,t,Object.getOwnPropertyDescriptor(f,t))})}return O}var W=32,u=12,U=256,le="NOT_SPREADSHEET",de="VALID_SPREADSHEET",he=function(O){var s=/^([-+]?)[$€£¥₩]?([-+]?)([\d.,]+)[%]?$/.exec(O);return s?parseFloat("".concat((s[1]||s[2])+s[3]).replace(/,/g,"")):null},pe=function(O,s){return O.slice(1).every(function(f){return he(f[s])!==null})},oe=function(O){var s=O[0].length;if(s>2)return{type:le,reason:"More than 2 columns"};if(s===1){if(!pe(O,0))return{type:le,reason:"Value is not numeric"};var f=he(O[0][0])===null,t=(f?O.slice(1):O).map(function(x){return he(x[0])});return t.length<2?{type:le,reason:"Less than two rows"}:{type:de,spreadsheet:{title:f?O[0][0]:null,labels:null,values:t}}}var w=pe(O,0),l=pe(O,1);if(!w&&!l)return{type:le,reason:"Value is not numeric"};var a=l?[0,1]:[1,0],c=(0,y.Z)(a,2),m=c[0],z=c[1],j=he(O[0][z])===null,k=j?O.slice(1):O;return k.length<2?{type:le,reason:"Less than 2 rows"}:{type:de,spreadsheet:{title:j?O[0][z]:null,labels:k.map(function(x){return x[m]}),values:k.map(function(x){return he(x[z])})}}},P=function(O){var s=O.trim().split(` +`).map(function(l){return l.trim().split(" ")});if(s.length&&s[0].length!==2&&(s=O.trim().split(` +`).map(function(l){return l.trim().split(",")})),s.length===0)return{type:le,reason:"No values"};var f=s[0].length;if(!s.every(function(l){return l.length===f}))return{type:le,reason:"All rows don't have same number of columns"};var t=oe(s);if(t.type!==de){var w=oe(function(l){for(var a=[],c=0;c<l[0].length;c++){for(var m=[],z=0;z<l.length;z++)m.push(l[z][c]);a.push(m)}return a}(s));if(w.type===de)return w}return t},$=(0,h.sF)(h.C2),b={fillStyle:"hachure",fontFamily:S.rk,fontSize:S.n5,opacity:100,roughness:1,strokeColor:h.HO.black,roundness:null,strokeStyle:"solid",strokeWidth:1,verticalAlign:S.oX.MIDDLE,locked:!1},R=function(O){return{chartWidth:44*O.values.length+u,chartHeight:280}},_=function(O,s,f,t,w,l){var a=R(O),c=a.chartWidth,m=a.chartHeight,z=O.title?(0,I.VL)(H(H({backgroundColor:w,groupIds:[t]},b),{},{text:O.title,x:s+c/2,y:f-U-24-S.n5,roundness:null,textAlign:"center"})):null,j=l?(0,I.Up)(H(H({backgroundColor:w,groupIds:[t]},b),{},{type:"rectangle",x:s,y:f-m,width:c,height:m,strokeColor:h.HO.black,fillStyle:"solid",opacity:6})):null;return[].concat((0,D.Z)(j?[j]:[]),(0,D.Z)(z?[z]:[]),(0,D.Z)(function(k,x,N,G,ie){var V;return((V=k.labels)===null||V===void 0?void 0:V.map(function(ce,te){return(0,I.VL)(H(H({groupIds:[G],backgroundColor:ie},b),{},{text:ce.length>8?"".concat(ce.slice(0,5),"..."):ce,x:x+44*te+24,y:N+6,width:W,angle:5.87,fontSize:16,textAlign:"center",verticalAlign:"top"}))}))||[]}(O,s,f,t,w)),(0,D.Z)(function(k,x,N,G,ie){var V=(0,I.VL)(H(H({groupIds:[G],backgroundColor:ie},b),{},{x:x-u,y:N-u,text:"0",textAlign:"right"}));return[V,(0,I.VL)(H(H({groupIds:[G],backgroundColor:ie},b),{},{x:x-u,y:N-U-V.height/2,text:Math.max.apply(Math,(0,D.Z)(k.values)).toLocaleString(),textAlign:"right"}))]}(O,s,f,t,w)),(0,D.Z)(function(k,x,N,G,ie){var V=R(k),ce=V.chartWidth,te=V.chartHeight;return[(0,I.y8)(H(H({backgroundColor:ie,groupIds:[G]},b),{},{type:"line",x,y:N,startArrowhead:null,endArrowhead:null,width:ce,points:[[0,0],[ce,0]]})),(0,I.y8)(H(H({backgroundColor:ie,groupIds:[G]},b),{},{type:"line",x,y:N,startArrowhead:null,endArrowhead:null,height:te,points:[[0,0],[0,-te]]})),(0,I.y8)(H(H({backgroundColor:ie,groupIds:[G]},b),{},{type:"line",x,y:N-U-u,startArrowhead:null,endArrowhead:null,strokeStyle:"dotted",width:ce,opacity:50,points:[[0,0],[ce,0]]}))]}(O,s,f,t,w)))},g=function(O,s,f,t){return O==="line"?function(w,l,a){var c,m=Math.max.apply(Math,(0,D.Z)(w.values)),z=(0,v.kb)(),j=$[Math.floor(Math.random()*$.length)],k=0,x=[],N=n(w.values);try{for(N.s();!(c=N.n()).done;){var G=c.value,ie=44*k,V=-G/m*U;x.push([ie,V]),k++}}catch(Te){N.e(Te)}finally{N.f()}var ce=Math.max.apply(Math,(0,D.Z)(x.map(function(Te){return Te[0]}))),te=Math.max.apply(Math,(0,D.Z)(x.map(function(Te){return Te[1]}))),L=Math.min.apply(Math,(0,D.Z)(x.map(function(Te){return Te[0]}))),re=Math.min.apply(Math,(0,D.Z)(x.map(function(Te){return Te[1]}))),me=(0,I.y8)(H(H({backgroundColor:j,groupIds:[z]},b),{},{type:"line",x:l+u+16,y:a-u,startArrowhead:null,endArrowhead:null,height:te-re,width:ce-L,strokeWidth:2,points:x})),Ce=w.values.map(function(Te,we){var xe=44*we+6,_e=-Te/m*U+6;return(0,I.Up)(H(H({backgroundColor:j,groupIds:[z]},b),{},{fillStyle:"solid",strokeWidth:2,type:"ellipse",x:l+xe+16,y:a+_e-24,width:u,height:u}))}),We=w.values.map(function(Te,we){var xe=44*we+6,_e=Te/m*U+6+u;return(0,I.y8)(H(H({backgroundColor:j,groupIds:[z]},b),{},{type:"line",x:l+xe+16+6,y:a-_e,startArrowhead:null,endArrowhead:null,height:_e,strokeStyle:"dotted",opacity:50,points:[[0,0],[0,_e]]}))});return[].concat((0,D.Z)(_(w,l,a,z,j,!1)),[me],(0,D.Z)(We),(0,D.Z)(Ce))}(s,f,t):function(w,l,a){var c=Math.max.apply(Math,(0,D.Z)(w.values)),m=(0,v.kb)(),z=$[Math.floor(Math.random()*$.length)],j=w.values.map(function(k,x){var N=k/c*U;return(0,I.Up)(H(H({backgroundColor:z,groupIds:[m]},b),{},{type:"rectangle",x:l+44*x+u,y:a-N-u,width:W,height:N}))});return[].concat((0,D.Z)(j),(0,D.Z)(_(w,l,a,m,z,!1)))}(s,f,t)}},957:function(Se,Q,e){e.d(Q,{G:function(){return D},l:function(){return E}});var D=function(y){var h=Math.abs(function(S){var I=0;if(S.length===0)return I;for(var v=0;v<S.length;v++)I=(I<<5)-I+S.charCodeAt(v);return I}(y));return"hsl(".concat(h%37*10,", ").concat(100,"%, ").concat(83,"%)")},E=function(y){var h,S=y==null||(h=y.trim())===null||h===void 0?void 0:h.codePointAt(0);return(S?String.fromCodePoint(S):"?").toUpperCase()}},4694:function(Se,Q,e){e.d(Q,{OO:function(){return oe},Se:function(){return g},dd:function(){return t},mQ:function(){return s},uR:function(){return f},vQ:function(){return $},vt:function(){return he},wx:function(){return de}});var D=e(7169),E=e(8950),y=e(2577),h=e(2975),S=e.n(h),I=e(901),v=e(9937),n=e(4183),M=e(5742),Z=e(583),H=e(4682),W=e(9827),u=e(8227);function U(l,a){var c=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!c){if(Array.isArray(l)||(c=function(N,G){if(N){if(typeof N=="string")return le(N,G);var ie=Object.prototype.toString.call(N).slice(8,-1);if(ie==="Object"&&N.constructor&&(ie=N.constructor.name),ie==="Map"||ie==="Set")return Array.from(N);if(ie==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie))return le(N,G)}}(l))||a&&l&&typeof l.length=="number"){c&&(l=c);var m=0,z=function(){};return{s:z,n:function(){return m>=l.length?{done:!0}:{done:!1,value:l[m++]}},e:function(N){throw N},f:z}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j,k=!0,x=!1;return{s:function(){c=c.call(l)},n:function(){var N=c.next();return k=N.done,N},e:function(N){x=!0,j=N},f:function(){try{k||c.return==null||c.return()}finally{if(x)throw j}}}}function le(l,a){(a==null||a>l.length)&&(a=l.length);for(var c=0,m=new Array(a);c<a;c++)m[c]=l[c];return m}var de="clipboard"in navigator&&"writeText"in navigator.clipboard,he="clipboard"in navigator&&"write"in navigator.clipboard&&"ClipboardItem"in window&&"toBlob"in HTMLCanvasElement.prototype,pe=function(l){return!(![v.r8.excalidraw,v.r8.excalidrawClipboard,v.r8.excalidrawClipboardWithAPI].includes(l?.type)||!Array.isArray(l.elements))},oe=function(l){var a=l.types,c=l.files;a||c||console.warn("createPasteEvent: no types or files provided");var m=new ClipboardEvent("paste",{clipboardData:new DataTransfer});if(a)for(var z=0,j=Object.entries(a);z<j.length;z++){var k=(0,y.Z)(j[z],2),x=k[0],N=k[1];try{var G,ie;if((G=m.clipboardData)===null||G===void 0||G.setData(x,N),((ie=m.clipboardData)===null||ie===void 0?void 0:ie.getData(x))!==N)throw new Error('Failed to set "'.concat(x,'" as clipboardData item'))}catch(Ce){throw new Error(Ce.message)}}if(c){var V,ce=-1,te=U(c);try{for(te.s();!(V=te.n()).done;){var L=V.value;ce++;try{var re,me;if((re=m.clipboardData)===null||re===void 0||re.items.add(L),((me=m.clipboardData)===null||me===void 0?void 0:me.files[ce])!==L)throw new Error('Failed to set file "'.concat(L.name,'" as clipboardData item'))}catch(Ce){throw new Error(Ce.message)}}}catch(Ce){te.e(Ce)}finally{te.f()}}return m},P=function(l){var a=l.elements,c=l.files,m=new Set(a.filter(function(x){return x.type==="frame"})),z=!1,j=a.reduce(function(x,N){return(0,n.wi)(N)&&(z=!0,c&&c[N.fileId]&&(x[N.fileId]=c[N.fileId])),x},{});z&&!c&&console.warn("copyToClipboard: attempting to file element(s) without providing associated `files` object.");var k={type:v.r8.excalidrawClipboard,elements:a.map(function(x){if((0,H.$Z)(x)&&!m.has((0,H.$Z)(x))){var N=(0,M.OL)(x);return(0,Z.DR)(N,{frameId:null}),N}return x}),files:c?j:void 0};return JSON.stringify(k)},$=function(){var l=(0,E.Z)(S().mark(function a(c,m,z){return S().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,t(P({elements:c,files:m}),z);case 2:case"end":return j.stop()}},a)}));return function(a,c,m){return l.apply(this,arguments)}}(),b=function(l){var a=(0,I.dz)(l);return a.type===I.i$?{spreadsheet:a.spreadsheet}:null};function R(l){var a,c=[],m=U(l.childNodes);try{for(m.s();!(a=m.n()).done;){var z=a.value;if(z.nodeType===3){var j,k=(j=z.textContent)===null||j===void 0?void 0:j.trim();k&&c.push({type:"text",value:k})}else if(z instanceof HTMLImageElement){var x=z.getAttribute("src");x&&x.startsWith("http")&&c.push({type:"imageUrl",value:x})}else c=c.concat(R(z))}}catch(N){m.e(N)}finally{m.f()}return c}var _=function(l){var a,c=(a=l.clipboardData)===null||a===void 0?void 0:a.getData("text/html");if(!c)return null;try{var m=R(new DOMParser().parseFromString(c,"text/html").body);if(m.length)return{type:"mixedContent",value:m}}catch(z){console.error("error in parseHTMLFromPaste: ".concat(z.message))}return null},g=function(){var l=(0,E.Z)(S().mark(function a(){var c,m,z,j,k,x,N,G,ie,V,ce,te;return S().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(c={},L.prev=1,(m=navigator.clipboard)===null||m===void 0||!m.readText){L.next=7;break}return L.next=5,(z=navigator.clipboard)===null||z===void 0?void 0:z.readText();case 5:return L.t0=L.sent,L.abrupt("return",{"text/plain":L.t0});case 7:L.next=16;break;case 9:if(L.prev=9,L.t1=L.catch(1),(j=navigator.clipboard)===null||j===void 0||!j.read){L.next=15;break}console.warn("navigator.clipboard.readText() failed (".concat(L.t1.message,"). Failling back to navigator.clipboard.read()")),L.next=16;break;case 15:throw L.t1;case 16:return L.prev=16,L.next=19,(x=navigator.clipboard)===null||x===void 0?void 0:x.read();case 19:k=L.sent,L.next=28;break;case 22:if(L.prev=22,L.t2=L.catch(16),L.t2.name!=="DataError"){L.next=27;break}return console.warn("navigator.clipboard.read() error, clipboard is probably empty: ".concat(L.t2.message)),L.abrupt("return",c);case 27:throw L.t2;case 28:N=U(k),L.prev=29,N.s();case 31:if((G=N.n()).done){L.next=63;break}ie=G.value,V=U(ie.types),L.prev=34,V.s();case 36:if((ce=V.n()).done){L.next=53;break}if(te=ce.value,(0,W.XF)(v.wL,te)){L.next=40;break}return L.abrupt("continue",51);case 40:return L.prev=40,L.next=43,ie.getType(te);case 43:return L.next=45,L.sent.text();case 45:c[te]=L.sent,L.next=51;break;case 48:L.prev=48,L.t3=L.catch(40),console.warn("Cannot retrieve ".concat(te," from clipboardItem: ").concat(L.t3.message));case 51:L.next=36;break;case 53:L.next=58;break;case 55:L.prev=55,L.t4=L.catch(34),V.e(L.t4);case 58:return L.prev=58,V.f(),L.finish(58);case 61:L.next=31;break;case 63:L.next=68;break;case 65:L.prev=65,L.t5=L.catch(29),N.e(L.t5);case 68:return L.prev=68,N.f(),L.finish(68);case 71:if(Object.keys(c).length!==0){L.next=74;break}return console.warn("No clipboard data found from clipboard.read()."),L.abrupt("return",c);case 74:return L.abrupt("return",c);case 75:case"end":return L.stop()}},a,null,[[1,9],[16,22],[29,65,68,71],[34,55,58,61],[40,48]])}));return function(){return l.apply(this,arguments)}}(),O=function(){var l=(0,E.Z)(S().mark(function a(c){var m,z,j,k,x,N=arguments;return S().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(m=N.length>1&&N[1]!==void 0&&N[1],G.prev=1,!(j=!m&&c&&_(c))){G.next=7;break}if(!j.value.every(function(ie){return ie.type==="text"})){G.next=6;break}return G.abrupt("return",{type:"text",value:((k=c.clipboardData)===null||k===void 0?void 0:k.getData("text/plain"))||j.value.map(function(ie){return ie.value}).join(` +`).trim()});case 6:return G.abrupt("return",j);case 7:return x=(z=c.clipboardData)===null||z===void 0?void 0:z.getData("text/plain"),G.abrupt("return",{type:"text",value:(x||"").trim()});case 11:return G.prev=11,G.t0=G.catch(1),G.abrupt("return",{type:"text",value:""});case 14:case"end":return G.stop()}},a,null,[[1,11]])}));return function(a){return l.apply(this,arguments)}}(),s=function(){var l=(0,E.Z)(S().mark(function a(c){var m,z,j,k,x,N=arguments;return S().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return m=N.length>1&&N[1]!==void 0&&N[1],G.next=3,O(c,m);case 3:if((z=G.sent).type!=="mixedContent"){G.next=6;break}return G.abrupt("return",{mixedContent:z.value});case 6:if(G.prev=6,!(j=!m&&b(z.value))){G.next=10;break}return G.abrupt("return",j);case 10:G.next=15;break;case 12:G.prev=12,G.t0=G.catch(6),console.error(G.t0);case 15:if(G.prev=15,k=JSON.parse(z.value),x=k.type===v.r8.excalidrawClipboardWithAPI,!pe(k)){G.next=20;break}return G.abrupt("return",{elements:k.elements,files:k.files,text:m?JSON.stringify(k.elements,null,2):void 0,programmaticAPI:x});case 20:G.next=24;break;case 22:G.prev=22,G.t1=G.catch(15);case 24:return G.abrupt("return",{text:z.value});case 25:case"end":return G.stop()}},a,null,[[6,12],[15,22]])}));return function(a){return l.apply(this,arguments)}}(),f=function(){var l=(0,E.Z)(S().mark(function a(c){return S().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.prev=0,m.next=3,navigator.clipboard.write([new window.ClipboardItem((0,D.Z)({},v.LO.png,c))]);case 3:case 21:m.next=24;break;case 5:if(m.prev=5,m.t0=m.catch(0),!(0,W.y8)(c)){m.next=23;break}return m.t1=navigator.clipboard,m.t2=window.ClipboardItem,m.t3=D.Z,m.t4={},m.t5=v.LO.png,m.next=15,c;case 15:return m.t6=m.sent,m.t7=(0,m.t3)(m.t4,m.t5,m.t6),m.t8=new m.t2(m.t7),m.t9=[m.t8],m.next=21,m.t1.write.call(m.t1,m.t9);case 23:throw m.t0;case 24:case"end":return m.stop()}},a,null,[[0,5]])}));return function(a){return l.apply(this,arguments)}}(),t=function(){var l=(0,E.Z)(S().mark(function a(c,m){var z,j;return S().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(!de){k.next=10;break}return k.prev=1,k.next=4,navigator.clipboard.writeText(c||"");case 4:return k.abrupt("return");case 7:k.prev=7,k.t0=k.catch(1),console.error(k.t0);case 10:if(k.prev=10,!m){k.next=16;break}if((z=m.clipboardData)===null||z===void 0||z.setData("text/plain",c||""),((j=m.clipboardData)===null||j===void 0?void 0:j.getData("text/plain"))===c){k.next=15;break}throw new Error("Failed to setData on clipboardEvent");case 15:return k.abrupt("return");case 16:k.next=21;break;case 18:k.prev=18,k.t1=k.catch(10),console.error(k.t1);case 21:if(w(c)){k.next=23;break}throw new Error((0,u.t)("errors.copyToSystemClipboardFailed"));case 23:case"end":return k.stop()}},a,null,[[1,7],[10,18]])}));return function(a,c){return l.apply(this,arguments)}}(),w=function(l){l||(l=" ");var a=document.documentElement.getAttribute("dir")==="rtl",c=document.createElement("textarea");c.style.border="0",c.style.padding="0",c.style.margin="0",c.style.position="absolute",c.style[a?"right":"left"]="-9999px";var m=window.pageYOffset||document.documentElement.scrollTop;c.style.top="".concat(m,"px"),c.style.fontSize="12pt",c.setAttribute("readonly",""),c.value=l,document.body.appendChild(c);var z=!1;try{c.select(),c.setSelectionRange(0,c.value.length),z=document.execCommand("copy")}catch(j){console.error(j)}return c.remove(),z}},9240:function(Se,Q,e){e.d(Q,{C2:function(){return n},HO:function(){return u},Lx:function(){return I},SF:function(){return oe},Wk:function(){return pe},_T:function(){return Z},ay:function(){return he},dC:function(){return v},eq:function(){return de},fY:function(){return le},sF:function(){return P},vq:function(){return $},z8:function(){return M}});var D=e(7169),E=e(5284);function y(b,R){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(b);R&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(b,O).enumerable})),_.push.apply(_,g)}return _}function h(b){for(var R=1;R<arguments.length;R++){var _=arguments[R]!=null?arguments[R]:{};R%2?y(Object(_),!0).forEach(function(g){(0,D.Z)(b,g,_[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(_)):y(Object(_)).forEach(function(g){Object.defineProperty(b,g,Object.getOwnPropertyDescriptor(_,g))})}return b}var S,I=5,v=5,n=4,M=4,Z=1,H=[0,2,4,6,8],W=function(b,R){return R.map(function(_){return E[b][_]})},u={transparent:"transparent",black:"#1e1e1e",white:"#ffffff",gray:W("gray",H),red:W("red",H),pink:W("pink",H),grape:W("grape",H),violet:W("violet",H),blue:W("blue",H),cyan:W("cyan",H),teal:W("teal",H),green:W("green",H),yellow:W("yellow",H),orange:W("orange",H),bronze:["#f8f1ee","#eaddd7","#d2bab0","#a18072","#846358"]},U=(S=u,["cyan","blue","violet","grape","pink","green","teal","yellow","orange","red"].reduce(function(b,R){return R in S&&(b[R]=S[R]),b},{})),le=[u.black,u.red[M],u.green[M],u.blue[M],u.yellow[M]],de=[u.transparent,u.red[Z],u.green[Z],u.blue[Z],u.yellow[Z]],he=[u.white,"#f8f9fa","#f5faff","#fffce8","#fdf8f6"],pe=h({transparent:u.transparent,white:u.white,gray:u.gray,black:u.black,bronze:u.bronze},U),oe=h({transparent:u.transparent,white:u.white,gray:u.gray,black:u.black,bronze:u.bronze},U),P=function(b){return[u.cyan[b],u.blue[b],u.violet[b],u.grape[b],u.pink[b],u.green[b],u.teal[b],u.yellow[b],u.orange[b],u.red[b]]},$=function(b,R,_){return"#".concat(((1<<24)+(b<<16)+(R<<8)+_).toString(16).slice(1))}},8973:function(Se,Q,e){e.d(Q,{o:function(){return Z},w:function(){return M}});var D=e(2577),E=e(3607),y=e(5463),h=e(8227),S=e(453),I=e(8242),v=e(6887),n=e(1020),M=(0,E.cn)(null),Z=function(){var H=(0,E.KO)(M,S.yE),W=(0,D.Z)(H,2),u=W[0],U=W[1],le=(0,I.eh)();return u&&u==="clearCanvas"?(0,n.jsx)(v.Z,{onConfirm:function(){le.executeAction(y.mo),U(null)},onCancel:function(){return U(null)},title:(0,h.t)("clearCanvasDialog.title"),children:(0,n.jsxs)("p",{className:"clear-canvas__content",children:[" ",(0,h.t)("alerts.clearReset")]})}):null}},8242:function(Se,Q,e){e.d(Q,{ZP:function(){return rl},qD:function(){return Ci},hY:function(){return Gi},Fy:function(){return ri},eh:function(){return Mi},gF:function(){return Vi},J0:function(){return Ii},bd:function(){return Yi},n9:function(){return Xi}});var D=e(6655),E=e(2577),y=e(1930),h=e(8950),S=e(8821),I=e(5169),v=e(3173),n=e(2248),M=e(7245),Z=e(2312),H=e(7169),W=e(2975),u=e.n(W),U=e(9787),le=e.n(U),de=e(5156),he=e(9845),pe=e(45),oe=e(5605),P=e(5463),$=e(8935),b=e(1512),R=e(8227),_=e(5491),g=e(583),O=e(9645),s=e(9827),f=e(9937),t=e(1020);function w(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function l(r){for(var d=1;d<arguments.length;d++){var C=arguments[d]!=null?arguments[d]:{};d%2?w(Object(C),!0).forEach(function(K){(0,H.Z)(r,K,C[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(C)):w(Object(C)).forEach(function(K){Object.defineProperty(r,K,Object.getOwnPropertyDescriptor(C,K))})}return r}var a=function(r,d,C){var K=!1;if(!(d.multiElement||d.resizingElement||d.editingElement||d.draggingElement)){var ae=C();if(ae===null)return{commitToHistory:K};var ye=(0,s.xn)(r),F=ae.elements,T=(0,s.xn)(F),fe=r.filter(function(je){return!T.has(je.id)}),Me=F.map(function(je){return(0,g.BE)(ye.get(je.id)||je,je)}).concat(fe.map(function(je){return(0,g.BE)(je,{isDeleted:!0})}));return(0,O.$q)(Me,fe),{elements:Me,appState:l(l({},d),ae.appState),commitToHistory:K,syncHistory:!0}}return{commitToHistory:K}},c=e(3646),m=function(r,d,C,K,ae,ye){if(r.trackEvent)try{(0,D.Z)(r.trackEvent)==="object"&&(!r.trackEvent.predicate||r.trackEvent.predicate(C,K,ye))&&(0,c.L)(r.trackEvent.category,r.trackEvent.action||r.name,"".concat(d," (").concat(ae.device.editor.isMobile?"mobile":"desktop",")"))}catch(F){console.error("error while logging action:",F)}},z=function(){function r(d,C,K,ae){var ye=this;(0,S.Z)(this,r),this.actions={},this.renderAction=function(F,T){var fe=ye.app.props.UIOptions.canvasActions;if(ye.actions[F]&&"PanelComponent"in ye.actions[F]&&(!(F in fe)||fe[F])){var Me=ye.actions[F],je=Me.PanelComponent;je.displayName="PanelComponent";var Fe=ye.getElementsIncludingDeleted(),Ue=ye.getAppState();return(0,t.jsx)(je,{elements:ye.getElementsIncludingDeleted(),appState:ye.getAppState(),updateData:function(Ge){m(Me,"ui",Ue,Fe,ye.app,Ge),ye.updater(Me.perform(ye.getElementsIncludingDeleted(),ye.getAppState(),Ge,ye.app))},appProps:ye.app.props,app:ye.app,data:T})}return null},this.isActionEnabled=function(F){var T=ye.getElementsIncludingDeleted(),fe=ye.getAppState();return!F.predicate||F.predicate(T,fe,ye.app.props,ye.app)},this.updater=function(F){if(!F||!("then"in F))return d(F);F.then(function(T){return d(T)})},this.getAppState=C,this.getElementsIncludingDeleted=K,this.app=ae}return(0,I.Z)(r,[{key:"registerAction",value:function(d){this.actions[d.name]=d}},{key:"registerAll",value:function(d){var C=this;d.forEach(function(K){return C.registerAction(K)})}},{key:"handleKeyDown",value:function(d){var C=this,K=this.app.props.UIOptions.canvasActions,ae=Object.values(this.actions).sort(function(fe,Me){return(Me.keyPriority||0)-(fe.keyPriority||0)}).filter(function(fe){return(!(fe.name in K)||K[fe.name])&&fe.keyTest&&fe.keyTest(d,C.getAppState(),C.getElementsIncludingDeleted(),C.app)});if(ae.length!==1)return ae.length>1&&console.warn("Canceling as multiple actions match this shortcut",ae),!1;var ye=ae[0];if(this.getAppState().viewModeEnabled&&ye.viewMode!==!0)return!1;var F=this.getElementsIncludingDeleted(),T=this.getAppState();return m(ye,"keyboard",T,F,this.app,null),d.preventDefault(),d.stopPropagation(),this.updater(ae[0].perform(F,T,null,this.app)),!0}},{key:"executeAction",value:function(d){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"api",K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ae=this.getElementsIncludingDeleted(),ye=this.getAppState();m(d,C,ye,ae,this.app,K),this.updater(d.perform(ae,ye,K,this.app))}}]),r}(),j=e(2767),k=e(6853),x=e(4694),N=e(2435),G=e(9326),ie=e(7994),V=e(7651),ce=e(7422),te=e(5742),L=e(4183),re=function(r){var d=Array.from(r.values());return{x:Ce(d,function(C){return C.x})/d.length,y:Ce(d,function(C){return C.y})/d.length}},me=function(r){var d=(0,E.Z)(r,2),C=d[0],K=d[1];return Math.hypot(C.x-K.x,C.y-K.y)},Ce=function(r,d){return r.reduce(function(C,K){return C+d(K)},0)},We=e(9215);function Te(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function we(r){for(var d=1;d<arguments.length;d++){var C=arguments[d]!=null?arguments[d]:{};d%2?Te(Object(C),!0).forEach(function(K){(0,H.Z)(r,K,C[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(C)):Te(Object(C)).forEach(function(K){Object.defineProperty(r,K,Object.getOwnPropertyDescriptor(C,K))})}return r}var xe=function(r){return{selectedElementIds:r.selectedElementIds,selectedGroupIds:r.selectedGroupIds,viewBackgroundColor:r.viewBackgroundColor,editingLinearElement:r.editingLinearElement,editingGroupId:r.editingGroupId,name:r.name}},_e=function(){function r(){var d=this;(0,S.Z)(this,r),this.elementCache=new Map,this.recording=!0,this.stateHistory=[],this.redoStack=[],this.lastEntry=null,this.generateEntry=function(C,K){return d.dehydrateHistoryEntry({appState:xe(C),elements:K.reduce(function(ae,ye){if((0,L.bt)(ye)&&C.multiElement&&C.multiElement.id===ye.id){if(C.multiElement&&C.multiElement.id===ye.id&&ye.points.length<2)return ae;ae.push(we(we({},ye),{},{points:ye.lastCommittedPoint!==ye.points[ye.points.length-1]?ye.points.slice(0,-1):ye.points}))}else ae.push(ye);return ae},[])})}}return(0,I.Z)(r,[{key:"hydrateHistoryEntry",value:function(d){var C=this,K=d.appState,ae=d.elements;return{appState:JSON.parse(K),elements:ae.map(function(ye){var F,T=(F=C.elementCache.get(ye.id))===null||F===void 0?void 0:F.get(ye.versionNonce);if(!T)throw new Error("Element not found: ".concat(ye.id,":").concat(ye.versionNonce));return T})}}},{key:"dehydrateHistoryEntry",value:function(d){var C=this,K=d.appState,ae=d.elements;return{appState:JSON.stringify(K),elements:ae.map(function(ye){C.elementCache.has(ye.id)||C.elementCache.set(ye.id,new Map);var F=C.elementCache.get(ye.id);return F.has(ye.versionNonce)||F.set(ye.versionNonce,(0,te.OL)(ye)),{id:ye.id,versionNonce:ye.versionNonce}})}}},{key:"getSnapshotForTest",value:function(){var d=this;return{recording:this.recording,stateHistory:this.stateHistory.map(function(C){return d.hydrateHistoryEntry(C)}),redoStack:this.redoStack.map(function(C){return d.hydrateHistoryEntry(C)})}}},{key:"clear",value:function(){this.stateHistory.length=0,this.redoStack.length=0,this.lastEntry=null,this.elementCache.clear()}},{key:"shouldCreateEntry",value:function(d){var C,K=this.lastEntry;if(!K||d.elements.length!==K.elements.length)return!0;for(var ae=d.elements.length-1;ae>-1;ae--){var ye=d.elements[ae],F=K.elements[ae];if(!ye||!F||ye.id!==F.id||ye.versionNonce!==F.versionNonce)return!0}for(C in d.appState){var T,fe;if(!(C==="editingLinearElement"&&((T=d.appState[C])===null||T===void 0?void 0:T.elementId)===((fe=K.appState[C])===null||fe===void 0?void 0:fe.elementId))&&C!=="selectedElementIds"&&C!=="selectedGroupIds"&&d.appState[C]!==K.appState[C])return!0}return!1}},{key:"pushEntry",value:function(d,C){var K=this.generateEntry(d,C),ae=this.hydrateHistoryEntry(K);if(ae){if(!this.shouldCreateEntry(ae))return;this.stateHistory.push(K),this.lastEntry=ae,this.clearRedoStack()}}},{key:"clearRedoStack",value:function(){this.redoStack.splice(0,this.redoStack.length)}},{key:"redoOnce",value:function(){if(this.redoStack.length===0)return null;var d=this.redoStack.pop();return d!==void 0?(this.stateHistory.push(d),this.hydrateHistoryEntry(d)):null}},{key:"undoOnce",value:function(){if(this.stateHistory.length===1)return null;var d=this.stateHistory.pop(),C=this.stateHistory[this.stateHistory.length-1];return d!==void 0?(this.redoStack.push(d),this.hydrateHistoryEntry(C)):null}},{key:"setCurrentState",value:function(d,C){this.lastEntry=this.hydrateHistoryEntry(this.generateEntry(d,C))}},{key:"resumeRecording",value:function(){this.recording=!0}},{key:"record",value:function(d,C){this.recording&&(this.pushEntry(d,C),this.recording=!1)}}]),r}(),Oe=e(7935),J=e(2361),ke=e(4105),q=e(457),o=e(4116),i=[{icon:$.zu,value:"selection",key:_.tW.V,numericKey:_.tW[1],fillable:!0},{icon:$.OW,value:"rectangle",key:_.tW.R,numericKey:_.tW[2],fillable:!0},{icon:$.nb,value:"diamond",key:_.tW.D,numericKey:_.tW[3],fillable:!0},{icon:$.Re,value:"ellipse",key:_.tW.O,numericKey:_.tW[4],fillable:!0},{icon:$.e0,value:"arrow",key:_.tW.A,numericKey:_.tW[5],fillable:!0},{icon:$.zb,value:"line",key:_.tW.L,numericKey:_.tW[6],fillable:!0},{icon:$.Pm,value:"freedraw",key:[_.tW.P,_.tW.X],numericKey:_.tW[7],fillable:!1},{icon:$.VL,value:"text",key:_.tW.T,numericKey:_.tW[8],fillable:!1},{icon:$.XB,value:"image",key:null,numericKey:_.tW[9],fillable:!1},{icon:$.$q,value:"eraser",key:_.tW.E,numericKey:_.tW[0],fillable:!1}],p=e(761),B=e(3204),A=e(3379),X=e.n(A),Y=e(7795),ee=e.n(Y),ge=e(569),be=e.n(ge),Re=e(3565),Ze=e.n(Re),Be=e(9216),Ie=e.n(Be),Ke=e(4589),Ye=e.n(Ke),tt=e(6578),ue={};ue.styleTagTransform=Ye(),ue.setAttributes=Ze(),ue.insert=be().bind(null,"head"),ue.domAPI=ee(),ue.insertStyleElement=Ie(),X()(tt.Z,ue),tt.Z&&tt.Z.locals&&tt.Z.locals;var ve=e(2529),De="separator",He=le().memo(function(r){var d=r.actionManager,C=r.items,K=r.top,ae=r.left,ye=r.onClose,F=Vi(),T=Yi(),fe=C.reduce(function(Me,je){return!je||je!==De&&je.predicate&&!je.predicate(T,F,d.app.props,d.app)||Me.push(je),Me},[]);return(0,t.jsx)(B.J,{onCloseRequest:function(){ye()},top:K,left:ae,fitInViewport:!0,offsetLeft:F.offsetLeft,offsetTop:F.offsetTop,viewportWidth:F.width,viewportHeight:F.height,children:(0,t.jsx)("ul",{className:"context-menu",onContextMenu:function(Me){return Me.preventDefault()},children:fe.map(function(Me,je){var Fe;if(Me===De)return fe[je-1]&&fe[je-1]!==De?(0,t.jsx)("hr",{className:"context-menu-item-separator"},je):null;var Ue=Me.name,Ge="";return Me.contextItemLabel&&(Ge=typeof Me.contextItemLabel=="function"?(0,R.t)(Me.contextItemLabel(T,F,d.app)):(0,R.t)(Me.contextItemLabel)),(0,t.jsx)("li",{"data-testid":Ue,onClick:function(){ye(function(){d.executeAction(Me,"contextMenu")})},children:(0,t.jsxs)("button",{className:(0,pe.Z)("context-menu-item",{dangerous:Ue==="deleteSelectedElements",checkmark:(Fe=Me.checked)===null||Fe===void 0?void 0:Fe.call(Me,F)}),children:[(0,t.jsx)("div",{className:"context-menu-item__label",children:Ge}),(0,t.jsx)("kbd",{className:"context-menu-item__shortcut",children:Ue?(0,ve.C)(Ue):""})]})},je)})})})}),Je=e(2726),qe=e(2540),st=e(1648),ht=e(8925),et=e(4761),wt=e(6086),Lt={};Lt.styleTagTransform=Ye(),Lt.setAttributes=Ze(),Lt.insert=be().bind(null,"head"),Lt.domAPI=ee(),Lt.insertStyleElement=Ie(),X()(wt.Z,Lt),wt.Z&&wt.Z.locals&&wt.Z.locals;var St=e(7104);function yt(r,d){var C=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!C){if(Array.isArray(r)||(C=function(fe,Me){if(fe){if(typeof fe=="string")return Wt(fe,Me);var je=Object.prototype.toString.call(fe).slice(8,-1);if(je==="Object"&&fe.constructor&&(je=fe.constructor.name),je==="Map"||je==="Set")return Array.from(fe);if(je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je))return Wt(fe,Me)}}(r))||d&&r&&typeof r.length=="number"){C&&(r=C);var K=0,ae=function(){};return{s:ae,n:function(){return K>=r.length?{done:!0}:{done:!1,value:r[K++]}},e:function(fe){throw fe},f:ae}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ye,F=!0,T=!1;return{s:function(){C=C.call(r)},n:function(){var fe=C.next();return F=fe.done,fe},e:function(fe){T=!0,ye=fe},f:function(){try{F||C.return==null||C.return()}finally{if(T)throw ye}}}}function Wt(r,d){(d==null||d>r.length)&&(d=r.length);for(var C=0,K=new Array(d);C<d;C++)K[C]=r[C];return K}var Ft=function(r){var d,C=r.appState,K=r.elements,ae=r.renderAction,ye=(0,ke.Zs)((0,V.Lm)(K),C),F=!1;ye.length===2&&((0,L.Xo)(ye[0])||(0,L.Xo)(ye[1]))&&(F=!0);var T,fe=!!C.editingElement,Me=ri(),je=document.documentElement.getAttribute("dir")==="rtl",Fe=(0,ke.$b)(C.activeTool.type)&&!(0,s.Qm)(C.currentItemBackgroundColor)||ye.some(function(lt){return(0,ke.$b)(lt.type)&&!(0,s.Qm)(lt.backgroundColor)}),Ue=(0,ke.$b)(C.activeTool.type)||ye.some(function(lt){return(0,ke.$b)(lt.type)}),Ge=ye.length===1||F,rt=((d=ye[0])===null||d===void 0?void 0:d.type)||null,it=yt(ye);try{for(it.s();!(T=it.n()).done;)if(T.value.type!==rt){rt=null;break}}catch(lt){it.e(lt)}finally{it.f()}return(0,t.jsxs)("div",{className:"panelColumn",children:[(0,t.jsx)("div",{children:((0,st.PD)(C.activeTool.type)&&C.activeTool.type!=="image"&&rt!=="image"&&rt!=="frame"||ye.some(function(lt){return(0,st.PD)(lt.type)}))&&ae("changeStrokeColor")}),Ue&&(0,t.jsx)("div",{children:ae("changeBackgroundColor")}),Fe&&ae("changeFillStyle"),((0,ke.Zd)(C.activeTool.type)||ye.some(function(lt){return(0,ke.Zd)(lt.type)}))&&ae("changeStrokeWidth"),(C.activeTool.type==="freedraw"||ye.some(function(lt){return lt.type==="freedraw"}))&&ae("changeStrokeShape"),((0,ke.M9)(C.activeTool.type)||ye.some(function(lt){return(0,ke.M9)(lt.type)}))&&(0,t.jsxs)(t.Fragment,{children:[ae("changeStrokeStyle"),ae("changeSloppiness")]}),((0,ke.sh)(C.activeTool.type)||ye.some(function(lt){return(0,ke.sh)(lt.type)}))&&(0,t.jsx)(t.Fragment,{children:ae("changeRoundness")}),(C.activeTool.type==="text"||ye.some(L.iB))&&(0,t.jsxs)(t.Fragment,{children:[ae("changeFontSize"),ae("changeFontFamily"),(C.activeTool.type==="text"||(0,et.aV)(ye))&&ae("changeTextAlign")]}),(0,et.cn)(ye)&&ae("changeVerticalAlign"),((0,ke.Un)(C.activeTool.type)||ye.some(function(lt){return(0,ke.Un)(lt.type)}))&&(0,t.jsx)(t.Fragment,{children:ae("changeArrowhead")}),ae("changeOpacity"),(0,t.jsxs)("fieldset",{children:[(0,t.jsx)("legend",{children:(0,R.t)("labels.layers")}),(0,t.jsxs)("div",{className:"buttonList",children:[ae("sendToBack"),ae("sendBackward"),ae("bringToFront"),ae("bringForward")]})]}),ye.length>1&&!F&&(0,t.jsxs)("fieldset",{children:[(0,t.jsx)("legend",{children:(0,R.t)("labels.align")}),(0,t.jsxs)("div",{className:"buttonList",children:[je?(0,t.jsxs)(t.Fragment,{children:[ae("alignRight"),ae("alignHorizontallyCentered"),ae("alignLeft")]}):(0,t.jsxs)(t.Fragment,{children:[ae("alignLeft"),ae("alignHorizontallyCentered"),ae("alignRight")]}),ye.length>2&&ae("distributeHorizontally"),(0,t.jsx)("div",{style:{flexBasis:"100%",height:0}}),(0,t.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:".5rem",marginTop:"-0.5rem"},children:[ae("alignTop"),ae("alignVerticallyCentered"),ae("alignBottom"),ye.length>2&&ae("distributeVertically")]})]})]}),!fe&&ye.length>0&&(0,t.jsxs)("fieldset",{children:[(0,t.jsx)("legend",{children:(0,R.t)("labels.actions")}),(0,t.jsxs)("div",{className:"buttonList",children:[!Me.editor.isMobile&&ae("duplicateSelection"),!Me.editor.isMobile&&ae("deleteSelectedElements"),ae("group"),ae("ungroup"),Ge&&ae("hyperlink")]})]})]})},Ve=function(r){var d=r.activeTool,C=r.appState,K=r.app,ae=r.UIOptions,ye=(0,U.useState)(!1),F=(0,E.Z)(ye,2),T=F[0],fe=F[1],Me=d.type==="frame",je=d.type==="laser",Fe=d.type==="embeddable";return(0,t.jsxs)(t.Fragment,{children:[i.map(function(Ue,Ge){var rt,it=Ue.value,lt=Ue.icon,Yt=Ue.key,jt=Ue.numericKey,ct=Ue.fillable;if(((rt=ae.tools)===null||rt===void 0?void 0:rt[it])===!1)return null;var xt=(0,R.t)("toolBar.".concat(it)),Mt=Yt&&(0,s.Oo)(typeof Yt=="string"?Yt:Yt[0]),Vt=Mt?"".concat(Mt," ").concat((0,R.t)("helpDialog.or")," ").concat(jt):"".concat(jt);return(0,t.jsx)(b.V,{className:(0,pe.Z)("Shape",{fillable:ct}),type:"radio",icon:lt,checked:d.type===it,name:"editor-current-shape",title:"".concat((0,s.Oo)(xt)," — ").concat(Vt),keyBindingLabel:jt||Mt,"aria-label":(0,s.Oo)(xt),"aria-keyshortcuts":Vt,"data-testid":"toolbar-".concat(it),onPointerDown:function(Ht){var Tt=Ht.pointerType;C.penDetected||Tt!=="pen"||K.togglePenMode(!0)},onChange:function(Ht){var Tt=Ht.pointerType;C.activeTool.type!==it&&(0,c.L)("toolbar",it,"ui"),it==="image"?K.setActiveTool({type:it,insertOnCanvasDirectly:Tt!=="mouse"}):K.setActiveTool({type:it})}},it)}),(0,t.jsx)("div",{className:"App-toolbar__divider"}),(0,t.jsxs)(St.Z,{open:T,children:[(0,t.jsx)(St.Z.Trigger,{className:(0,pe.Z)("App-toolbar__extra-tools-trigger",{"App-toolbar__extra-tools-trigger--selected":Me||Fe||je&&!K.props.isCollaborating}),onToggle:function(){return fe(!T)},title:(0,R.t)("toolBar.extraTools"),children:$.dg}),(0,t.jsxs)(St.Z.Content,{onClickOutside:function(){return fe(!1)},onSelect:function(){return fe(!1)},className:"App-toolbar__extra-tools-dropdown",children:[(0,t.jsx)(St.Z.Item,{onSelect:function(){return K.setActiveTool({type:"frame"})},icon:$.zl,shortcut:_.tW.F.toLocaleUpperCase(),"data-testid":"toolbar-frame",selected:Me,children:(0,R.t)("toolBar.frame")}),(0,t.jsx)(St.Z.Item,{onSelect:function(){return K.setActiveTool({type:"embeddable"})},icon:$.FL,"data-testid":"toolbar-embeddable",selected:Fe,children:(0,R.t)("toolBar.embeddable")}),(0,t.jsx)(St.Z.Item,{onSelect:function(){return K.setActiveTool({type:"laser"})},icon:$.d,"data-testid":"toolbar-laser",selected:je,shortcut:_.tW.K.toLocaleUpperCase(),children:(0,R.t)("toolBar.laser")}),(0,t.jsx)(St.Z.Item,{onSelect:function(){return K.setOpenDialog("mermaid")},icon:$.II,"data-testid":"toolbar-embeddable",children:(0,R.t)("toolBar.mermaidToExcalidraw")})]})]})]})},bt=function(r){var d=r.renderAction;return r.zoom,(0,t.jsx)(qe.Z.Col,{gap:1,className:"zoom-actions",children:(0,t.jsxs)(qe.Z.Row,{align:"center",children:[d("zoomOut"),d("resetZoom"),d("zoomIn")]})})},at=function(r){var d=r.renderAction,C=r.className;return(0,t.jsxs)("div",{className:"undo-redo-buttons ".concat(C),children:[(0,t.jsx)("div",{className:"undo-button-container",children:(0,t.jsx)(ht.u,{label:(0,R.t)("buttons.undo"),children:d("undo")})}),(0,t.jsx)("div",{className:"redo-button-container",children:(0,t.jsxs)(ht.u,{label:(0,R.t)("buttons.redo"),children:[" ",d("redo")]})})]})},mt=function(r){var d=r.actionManager,C=r.showExitZenModeBtn;return(0,t.jsx)("button",{className:(0,pe.Z)("disable-zen-mode",{"disable-zen-mode--visible":C}),onClick:function(){return d.executeAction(P.JN)},children:(0,R.t)("buttons.exitZenMode")})},ut=function(r){var d=r.renderAction,C=r.className;return(0,t.jsx)("div",{className:"finalize-button ".concat(C),children:d("finalize",{size:"small"})})},Ot=e(1300),Pt=function(r){var d=r.children,C=r.onClose,K=(0,U.useState)(!!d),ae=(0,E.Z)(K,2),ye=ae[0],F=ae[1],T=Ii().container,fe=le().useCallback(function(){F(!1),C&&C(),T?.focus()},[C,T]);return(0,t.jsx)(t.Fragment,{children:ye&&(0,t.jsx)(Ot.V,{size:"small",onCloseRequest:fe,title:(0,R.t)("errorDialog.title"),children:(0,t.jsx)("div",{style:{whiteSpace:"pre-wrap"},children:d})})})},Gt=e(4406),Ct=e(5796),ur=e(6548),rr=e(507),Tr=e(6217),ot={};ot.styleTagTransform=Ye(),ot.setAttributes=Ze(),ot.insert=be().bind(null,"head"),ot.domAPI=ee(),ot.insertStyleElement=Ie(),X()(Tr.Z,ot),Tr.Z&&Tr.Z.locals&&Tr.Z.locals;var Rt=function(r){var d=r.onChange,C=r.value,K=r.choices,ae=r.name;return(0,t.jsx)("div",{className:"RadioGroup",children:K.map(function(ye){return(0,t.jsxs)("div",{className:(0,pe.Z)("RadioGroup__choice",{active:ye.value===C}),children:[(0,t.jsx)("input",{name:ae,type:"radio",checked:ye.value===C,onChange:function(){return d(ye.value)}}),ye.label]},ye.label)})})},_t=e(7802),At={};At.styleTagTransform=Ye(),At.setAttributes=Ze(),At.insert=be().bind(null,"head"),At.domAPI=ee(),At.insertStyleElement=Ie(),X()(_t.Z,At),_t.Z&&_t.Z.locals&&_t.Z.locals;var br=function(r){var d=r.title,C=r.name,K=r.checked,ae=r.onChange,ye=r.disabled,F=ye!==void 0&&ye;return(0,t.jsx)("div",{className:(0,pe.Z)("Switch",{toggled:K,disabled:F}),children:(0,t.jsx)("input",{name:C,id:C,title:d,type:"checkbox",checked:K,disabled:F,onChange:function(){return ae(!K)},onKeyDown:function(T){T.key===" "&&ae(!K)}})})},xr=e(9706),jr={};jr.styleTagTransform=Ye(),jr.setAttributes=Ze(),jr.insert=be().bind(null,"head"),jr.domAPI=ee(),jr.insertStyleElement=Ie(),X()(xr.Z,jr),xr.Z&&xr.Z.locals&&xr.Z.locals;var Ar=e(8960),fr={};fr.styleTagTransform=Ye(),fr.setAttributes=Ze(),fr.insert=be().bind(null,"head"),fr.domAPI=ee(),fr.insertStyleElement=Ie(),X()(Ar.Z,fr),Ar.Z&&Ar.Z.locals&&Ar.Z.locals;var dt=(0,U.forwardRef)(function(r,d){var C=r.children,K=r.startIcon,ae=r.onClick,ye=r.label,F=r.variant,T=F===void 0?"filled":F,fe=r.color,Me=fe===void 0?"primary":fe,je=r.size,Fe=je===void 0?"medium":je,Ue=r.fullWidth,Ge=r.className;return(0,t.jsxs)("button",{className:(0,pe.Z)("ExcButton","ExcButton--color-".concat(Me),"ExcButton--variant-".concat(T),"ExcButton--size-".concat(Fe),{"ExcButton--fullWidth":Ue},Ge),onClick:ae,type:"button","aria-label":ye,ref:d,children:[K&&(0,t.jsx)("div",{className:"ExcButton__icon","aria-hidden":!0,children:K}),T!=="icon"&&(C??ye)]})});function ft(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function vt(r){for(var d=1;d<arguments.length;d++){var C=arguments[d]!=null?arguments[d]:{};d%2?ft(Object(C),!0).forEach(function(K){(0,H.Z)(r,K,C[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(C)):ft(Object(C)).forEach(function(K){Object.defineProperty(r,K,Object.getOwnPropertyDescriptor(C,K))})}return r}var Et="filter"in document.createElement("canvas").getContext("2d"),tr=function(){return(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{children:(0,R.t)("canvasError.cannotShowPreview")}),(0,t.jsx)("p",{children:(0,t.jsx)("span",{children:(0,R.t)("canvasError.canvasTooBig")})}),(0,t.jsxs)("em",{children:["(",(0,R.t)("canvasError.canvasTooBigTip"),")"]})]})},ir=function(r){var d=r.appStateSnapshot,C=r.elementsSnapshot,K=r.files,ae=r.actionManager,ye=r.onExportImage,F=(0,ke.N)(C,d),T=Gi(),fe=(0,U.useState)(d.name),Me=(0,E.Z)(fe,2),je=Me[0],Fe=Me[1],Ue=(0,U.useState)(F),Ge=(0,E.Z)(Ue,2),rt=Ge[0],it=Ge[1],lt=(0,U.useState)(d.exportBackground),Yt=(0,E.Z)(lt,2),jt=Yt[0],ct=Yt[1],xt=(0,U.useState)(d.exportWithDarkMode),Mt=(0,E.Z)(xt,2),Vt=Mt[0],Ht=Mt[1],Tt=(0,U.useState)(d.exportEmbedScene),Kt=(0,E.Z)(Tt,2),hr=Kt[0],Mr=Kt[1],Nr=(0,U.useState)(d.exportScale),Kr=(0,E.Z)(Nr,2),tn=Kr[0],Qr=Kr[1],Pr=(0,U.useRef)(null),on=(0,U.useState)(null),Br=(0,E.Z)(on,2),en=Br[0],gn=Br[1],xn=(0,N.HD)(C,d,rt),pn=xn.exportedElements,Tn=xn.exportingFrame;return(0,U.useEffect)(function(){var Xr=Pr.current;if(Xr){var cn=Xr.offsetWidth,Wn=Xr.offsetHeight;cn&&(0,rr.NL)({elements:pn,appState:vt(vt({},d),{},{name:je,exportBackground:jt,exportWithDarkMode:Vt,exportScale:tn,exportEmbedScene:hr}),files:K,exportPadding:f.qy,maxWidthOrHeight:Math.max(cn,Wn),exportingFrame:Tn}).then(function(In){return gn(null),(0,Ct._c)(In).then(function(){Xr.replaceChildren(In)})}).catch(function(In){console.error(In),gn(In)})}},[d,K,pn,Tn,je,jt,Vt,tn,hr]),(0,t.jsxs)("div",{className:"ImageExportModal",children:[(0,t.jsx)("h3",{children:(0,R.t)("imageExportDialog.header")}),(0,t.jsxs)("div",{className:"ImageExportModal__preview",children:[(0,t.jsx)("div",{className:"ImageExportModal__preview__canvas",ref:Pr,children:en&&(0,t.jsx)(tr,{})}),(0,t.jsx)("div",{className:"ImageExportModal__preview__filename",children:!ur.kr&&(0,t.jsx)("input",{type:"text",className:"TextInput",value:je,style:{width:"30ch"},disabled:T.name!==void 0||d.viewModeEnabled,onChange:function(Xr){Fe(Xr.target.value),ae.executeAction(Gt.zX,"ui",Xr.target.value)}})})]}),(0,t.jsxs)("div",{className:"ImageExportModal__settings",children:[(0,t.jsx)("h3",{children:(0,R.t)("imageExportDialog.header")}),F&&(0,t.jsx)(Qt,{label:(0,R.t)("imageExportDialog.label.onlySelected"),name:"exportOnlySelected",children:(0,t.jsx)(br,{name:"exportOnlySelected",checked:rt,onChange:function(Xr){it(Xr)}})}),(0,t.jsx)(Qt,{label:(0,R.t)("imageExportDialog.label.withBackground"),name:"exportBackgroundSwitch",children:(0,t.jsx)(br,{name:"exportBackgroundSwitch",checked:jt,onChange:function(Xr){ct(Xr),ae.executeAction(Gt.XA,"ui",Xr)}})}),Et&&(0,t.jsx)(Qt,{label:(0,R.t)("imageExportDialog.label.darkMode"),name:"exportDarkModeSwitch",children:(0,t.jsx)(br,{name:"exportDarkModeSwitch",checked:Vt,onChange:function(Xr){Ht(Xr),ae.executeAction(Gt.bJ,"ui",Xr)}})}),(0,t.jsx)(Qt,{label:(0,R.t)("imageExportDialog.label.embedScene"),tooltip:(0,R.t)("imageExportDialog.tooltip.embedScene"),name:"exportEmbedSwitch",children:(0,t.jsx)(br,{name:"exportEmbedSwitch",checked:hr,onChange:function(Xr){Mr(Xr),ae.executeAction(Gt.Du,"ui",Xr)}})}),(0,t.jsx)(Qt,{label:(0,R.t)("imageExportDialog.label.scale"),name:"exportScale",children:(0,t.jsx)(Rt,{name:"exportScale",value:tn,onChange:function(Xr){Qr(Xr),ae.executeAction(Gt.sK,"ui",Xr)},choices:f.ZB.map(function(Xr){return{value:Xr,label:"".concat(Xr,"×")}})})}),(0,t.jsxs)("div",{className:"ImageExportModal__settings__buttons",children:[(0,t.jsx)(dt,{className:"ImageExportModal__settings__buttons__button",label:(0,R.t)("imageExportDialog.title.exportToPng"),onClick:function(){return ye(f.I_.png,pn,{exportingFrame:Tn})},startIcon:$.aL,children:(0,R.t)("imageExportDialog.button.exportToPng")}),(0,t.jsx)(dt,{className:"ImageExportModal__settings__buttons__button",label:(0,R.t)("imageExportDialog.title.exportToSvg"),onClick:function(){return ye(f.I_.svg,pn,{exportingFrame:Tn})},startIcon:$.aL,children:(0,R.t)("imageExportDialog.button.exportToSvg")}),(x.vt||f.vU)&&(0,t.jsx)(dt,{className:"ImageExportModal__settings__buttons__button",label:(0,R.t)("imageExportDialog.title.copyPngToClipboard"),onClick:function(){return ye(f.I_.clipboard,pn,{exportingFrame:Tn})},startIcon:$.UI,children:(0,R.t)("imageExportDialog.button.copyPngToClipboard")})]})]})]})},Qt=function(r){var d=r.label,C=r.children,K=r.tooltip,ae=r.name;return(0,t.jsxs)("div",{className:"ImageExportModal__settings__setting",title:d,children:[(0,t.jsxs)("label",{htmlFor:ae,className:"ImageExportModal__settings__setting__label",children:[d,K&&(0,t.jsx)(ht.u,{label:K,long:!0,children:$.mv})]}),(0,t.jsx)("div",{className:"ImageExportModal__settings__setting__content",children:C})]})},_r=function(r){var d=r.elements,C=r.appState,K=r.files,ae=r.actionManager,ye=r.onExportImage,F=r.onCloseRequest,T=(0,U.useState)(function(){return{appStateSnapshot:(0,s.xU)(C),elementsSnapshot:(0,s.xU)(d)}}),fe=(0,E.Z)(T,1)[0],Me=fe.appStateSnapshot,je=fe.elementsSnapshot;return(0,t.jsx)(Ot.V,{onCloseRequest:F,size:"wide",title:!1,children:(0,t.jsx)(ir,{elementsSnapshot:je,appStateSnapshot:Me,files:K,actionManager:ae,onExportImage:ye})})},sr=e(3195),mr={};mr.styleTagTransform=Ye(),mr.setAttributes=Ze(),mr.insert=be().bind(null,"head"),mr.domAPI=ee(),mr.insertStyleElement=Ie(),X()(sr.Z,mr),sr.Z&&sr.Z.locals&&sr.Z.locals;var Zr=function(r){var d=r.children,C=r.side,K=r.className;return(0,t.jsx)("div",{className:(0,pe.Z)("FixedSideContainer","FixedSideContainer_side_".concat(C),K),children:d})},or=e(1587),lr={};lr.styleTagTransform=Ye(),lr.setAttributes=Ze(),lr.insert=be().bind(null,"head"),lr.domAPI=ee(),lr.insertStyleElement=Ie(),X()(or.Z,lr),or.Z&&or.Z.locals&&or.Z.locals;var gr=function(r){var d=function(C){var K=C.appState,ae=C.isMobile,ye=C.device,F=C.app,T=K.activeTool,fe=K.isResizing,Me=K.isRotating,je=K.lastPointerDownWith,Fe=K.multiElement!==null;if(K.openSidebar&&!ye.editor.canFitSidebar)return null;if((0,k.EN)(K))return(0,R.t)("hints.eraserRevert");if(T.type==="arrow"||T.type==="line")return Fe?(0,R.t)("hints.linearElementMulti"):(0,R.t)("hints.linearElement");if(T.type==="freedraw")return(0,R.t)("hints.freeDraw");if(T.type==="text")return(0,R.t)("hints.text");if(T.type==="embeddable")return(0,R.t)("hints.embeddable");if(K.activeTool.type==="image"&&K.pendingImageElementId)return(0,R.t)("hints.placeImage");var Ue=F.scene.getSelectedElements(K);if(fe&&je==="mouse"&&Ue.length===1){var Ge=Ue[0];return(0,L.bt)(Ge)&&Ge.points.length===2?(0,R.t)("hints.lockAngle"):(0,L.pC)(Ge)?(0,R.t)("hints.resizeImage"):(0,R.t)("hints.resize")}if(Me&&je==="mouse")return(0,R.t)("hints.rotate");if(Ue.length===1&&(0,L.iB)(Ue[0]))return(0,R.t)("hints.text_selected");if(K.editingElement&&(0,L.iB)(K.editingElement))return(0,R.t)("hints.text_editing");if(T.type==="selection"){var rt;if(((rt=K.draggingElement)===null||rt===void 0?void 0:rt.type)==="selection"&&!Ue.length&&!K.editingElement&&!K.editingLinearElement)return(0,R.t)("hints.deepBoxSelect");if(K.gridSize&&K.draggingElement)return(0,R.t)("hints.disableSnapping");if(!Ue.length&&!ae)return(0,R.t)("hints.canvasPanning");if(Ue.length===1){if((0,L.bt)(Ue[0]))return K.editingLinearElement?K.editingLinearElement.selectedPointsIndices?(0,R.t)("hints.lineEditor_pointSelected"):(0,R.t)("hints.lineEditor_nothingSelected"):(0,R.t)("hints.lineEditor_info");if(!K.draggingElement&&(0,L.mG)(Ue[0]))return(0,R.t)("hints.bindTextToElement")}}return null}({appState:r.appState,isMobile:r.isMobile,device:r.device,app:r.app});return d?(d=(0,s.uY)(d),(0,t.jsx)("div",{className:"HintViewer",children:(0,t.jsx)("span",{children:d})})):null},cr=e(1404),Hr=e(7165),vr=(e(3041),{CHECKED:$.FC,UNCHECKED:$._C}),Rr=function(r){return(0,t.jsxs)("label",{className:(0,pe.Z)("ToolIcon ToolIcon__lock","ToolIcon_size_".concat("medium"),{"is-mobile":r.isMobile}),title:"".concat(r.title," — Q"),children:[(0,t.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",name:r.name,onChange:r.onChange,checked:r.checked,"aria-label":r.title,"data-testid":"toolbar-lock"}),(0,t.jsx)("div",{className:"ToolIcon__icon",children:r.checked?vr.CHECKED:vr.UNCHECKED})]})},an=["heading","children"];function Sn(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function Mn(r){for(var d=1;d<arguments.length;d++){var C=arguments[d]!=null?arguments[d]:{};d%2?Sn(Object(C),!0).forEach(function(K){(0,H.Z)(r,K,C[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(C)):Sn(Object(C)).forEach(function(K){Object.defineProperty(r,K,Object.getOwnPropertyDescriptor(C,K))})}return r}var Zn=function(r){var d=r.heading,C=r.children,K=(0,Je.Z)(r,an),ae=Ii().id,ye=(0,t.jsx)("h2",{className:"visually-hidden",id:"".concat(ae,"-").concat(d,"-title"),children:(0,R.t)("headings.".concat(d))});return(0,t.jsx)("section",Mn(Mn({},K),{},{"aria-labelledby":"".concat(ae,"-").concat(d,"-title"),children:typeof C=="function"?C(ye):(0,t.jsxs)(t.Fragment,{children:[ye,C]})}))},Rn=e(4726),bn=function(r){return r.penDetected?(0,t.jsxs)("label",{className:(0,pe.Z)("ToolIcon ToolIcon__penMode","ToolIcon_size_".concat("medium"),{"is-mobile":r.isMobile}),title:"".concat(r.title),children:[(0,t.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",name:r.name,onChange:r.onChange,checked:r.checked,"aria-label":r.title}),(0,t.jsx)("div",{className:"ToolIcon__icon",children:$.tb})]}):null},yn=e(4949),Un=e(2681),ne={};ne.styleTagTransform=Ye(),ne.setAttributes=Ze(),ne.insert=be().bind(null,"head"),ne.domAPI=ee(),ne.insertStyleElement=Ie(),X()(Un.Z,ne),Un.Z&&Un.Z.locals&&Un.Z.locals;var Ee=function(r){var d,C=(0,yn.KP)(r.elements),K=(0,ke.Zs)(r.elements,r.appState),ae=(0,yn.KP)(K);return(0,t.jsx)("div",{className:"Stats",children:(0,t.jsxs)(cr.W,{padding:2,children:[(0,t.jsx)("div",{className:"close",onClick:r.onClose,children:$.Tw}),(0,t.jsx)("h3",{children:(0,R.t)("stats.title")}),(0,t.jsx)("table",{children:(0,t.jsxs)("tbody",{children:[(0,t.jsx)("tr",{children:(0,t.jsx)("th",{colSpan:2,children:(0,R.t)("stats.scene")})}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,R.t)("stats.elements")}),(0,t.jsx)("td",{children:r.elements.length})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,R.t)("stats.width")}),(0,t.jsx)("td",{children:Math.round(C[2])-Math.round(C[0])})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,R.t)("stats.height")}),(0,t.jsx)("td",{children:Math.round(C[3])-Math.round(C[1])})]}),K.length===1&&(0,t.jsx)("tr",{children:(0,t.jsx)("th",{colSpan:2,children:(0,R.t)("stats.element")})}),K.length>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("tr",{children:(0,t.jsx)("th",{colSpan:2,children:(0,R.t)("stats.selected")})}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,R.t)("stats.elements")}),(0,t.jsx)("td",{children:K.length})]})]}),K.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:"x"}),(0,t.jsx)("td",{children:Math.round(ae[0])})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:"y"}),(0,t.jsx)("td",{children:Math.round(ae[1])})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,R.t)("stats.width")}),(0,t.jsx)("td",{children:Math.round(ae[2]-ae[0])})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,R.t)("stats.height")}),(0,t.jsx)("td",{children:Math.round(ae[3]-ae[1])})]})]}),K.length===1&&(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,R.t)("stats.angle")}),(0,t.jsx)("td",{children:"".concat(Math.round(180*K[0].angle/Math.PI),"°")})]}),(d=r.renderCustomStats)===null||d===void 0?void 0:d.call(r,r.elements,r.appState)]})})]})})},Pe=function(r){return(0,t.jsx)(b.V,{className:(0,pe.Z)("Shape",{fillable:!1}),type:"radio",icon:$.Hk,name:"editor-current-shape",checked:r.checked,title:"".concat(r.title," — H"),keyBindingLabel:r.isMobile?void 0:_.tW.H.toLocaleUpperCase(),"aria-label":"".concat(r.title," — H"),"aria-keyshortcuts":_.tW.H,"data-testid":"toolbar-hand",onChange:function(){var d;return(d=r.onChange)===null||d===void 0?void 0:d.call(r)}})},ze=e(4572);function pt(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}var Ut=function(r){var d=r.appState,C=r.elements,K=r.actionManager,ae=r.setAppState,ye=r.onLockToggle,F=r.onHandToolToggle,T=r.onPenModeToggle,fe=r.renderTopRightUI,Me=r.renderCustomStats,je=r.renderSidebars,Fe=r.device,Ue=r.renderWelcomeScreen,Ge=r.UIOptions,rt=r.app,it=(0,ze.R6)(),lt=it.WelcomeScreenCenterTunnel,Yt=it.MainMenuTunnel,jt=it.DefaultSidebarTriggerTunnel;return(0,t.jsxs)(t.Fragment,{children:[je(),!d.viewModeEnabled&&(0,t.jsxs)(Zr,{side:"top",className:"App-top-bar",children:[Ue&&(0,t.jsx)(lt.Out,{}),(0,t.jsx)(Zn,{heading:"shapes",children:function(ct){return(0,t.jsx)(qe.Z.Col,{gap:4,align:"center",children:(0,t.jsxs)(qe.Z.Row,{gap:1,className:"App-toolbar-container",children:[(0,t.jsxs)(cr.W,{padding:1,className:"App-toolbar App-toolbar--mobile",children:[ct,(0,t.jsx)(qe.Z.Row,{gap:1,children:(0,t.jsx)(Ve,{appState:d,activeTool:d.activeTool,UIOptions:Ge,app:rt})})]}),fe&&fe(!0,d),(0,t.jsxs)("div",{className:"mobile-misc-tools-container",children:[!d.viewModeEnabled&&(0,t.jsx)(jt.Out,{}),(0,t.jsx)(bn,{checked:d.penMode,onChange:function(){return T(null)},title:(0,R.t)("toolBar.penMode"),isMobile:!0,penDetected:d.penDetected}),(0,t.jsx)(Rr,{checked:d.activeTool.locked,onChange:ye,title:(0,R.t)("toolBar.lock"),isMobile:!0}),(0,t.jsx)(Pe,{checked:(0,k.l$)(d),onChange:function(){return F()},title:(0,R.t)("toolBar.hand"),isMobile:!0})]})]})})}}),(0,t.jsx)(gr,{appState:d,isMobile:!0,device:Fe,app:rt})]}),!d.openMenu&&d.showStats&&(0,t.jsx)(Ee,{appState:d,setAppState:ae,elements:C,onClose:function(){K.executeAction(P.u0)},renderCustomStats:Me}),(0,t.jsx)("div",{className:"App-bottom-bar",style:{marginBottom:Rn.nn+2*Rn.WM,marginLeft:Rn.nn+2*Rn.WM,marginRight:Rn.nn+2*Rn.WM},children:(0,t.jsxs)(cr.W,{padding:0,children:[d.openMenu==="shape"&&!d.viewModeEnabled&&(0,V.RT)(d,C)?(0,t.jsx)(Zn,{className:"App-mobile-menu",heading:"selectedShapeActions",children:(0,t.jsx)(Ft,{appState:d,elements:C,renderAction:K.renderAction})}):null,(0,t.jsxs)("footer",{className:"App-toolbar",children:[d.viewModeEnabled?(0,t.jsx)("div",{className:"App-toolbar-content",children:(0,t.jsx)(Yt.Out,{})}):(0,t.jsxs)("div",{className:"App-toolbar-content",children:[(0,t.jsx)(Yt.Out,{}),K.renderAction("toggleEditMenu"),K.renderAction("undo"),K.renderAction("redo"),K.renderAction(d.multiElement?"finalize":"duplicateSelection"),K.renderAction("deleteSelectedElements")]}),d.scrolledOutside&&!d.openMenu&&!d.openSidebar&&(0,t.jsx)("button",{className:"scroll-back-to-content",onClick:function(){ae(function(ct){return function(xt){for(var Mt=1;Mt<arguments.length;Mt++){var Vt=arguments[Mt]!=null?arguments[Mt]:{};Mt%2?pt(Object(Vt),!0).forEach(function(Ht){(0,H.Z)(xt,Ht,Vt[Ht])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xt,Object.getOwnPropertyDescriptors(Vt)):pt(Object(Vt)).forEach(function(Ht){Object.defineProperty(xt,Ht,Object.getOwnPropertyDescriptor(Vt,Ht))})}return xt}({},(0,ke.W)(C,ct))})},children:(0,R.t)("buttons.scrollBackToContent")})]})]})})]})},zt=e(5284),qt=e(901),gt=e(3668),Xt=e(8461),$t={};$t.styleTagTransform=Ye(),$t.setAttributes=Ze(),$t.insert=be().bind(null,"head"),$t.domAPI=ee(),$t.insertStyleElement=Ie(),X()(Xt.Z,$t),Xt.Z&&Xt.Z.locals&&Xt.Z.locals;var Er=function(r){var d=(0,U.useRef)(null),C=(0,U.useState)(null),K=(0,E.Z)(C,2),ae=K[0],ye=K[1];return(0,U.useLayoutEffect)(function(){if(r.spreadsheet){var F,T=(0,qt.ps)(r.chartType,r.spreadsheet,0,0);ye(T);var fe=d.current;return(0,h.Z)(u().mark(function Me(){var je;return u().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,(0,gt.$D)(T,{exportBackground:!1,viewBackgroundColor:zt.white},null);case 2:F=Fe.sent,(je=F.querySelector(".style-fonts"))===null||je===void 0||je.remove(),fe.replaceChildren(),fe.appendChild(F),r.selected&&fe.parentNode.focus();case 7:case"end":return Fe.stop()}},Me)}))(),function(){fe.replaceChildren()}}},[r.spreadsheet,r.chartType,r.selected]),(0,t.jsx)("button",{className:"ChartPreview",onClick:function(){ae&&r.onClick(r.chartType,ae)},children:(0,t.jsx)("div",{ref:d})})},Or=function(r){var d=r.setAppState,C=r.appState,K=r.onClose,ae=Ci().onInsertElements,ye=le().useCallback(function(){K&&K()},[K]),F=function(T,fe){ae(fe),(0,c.L)("magic","chart",T),d({currentChartType:T,pasteDialog:{shown:!1,data:null}})};return(0,t.jsx)(Ot.V,{size:"small",onCloseRequest:ye,title:(0,R.t)("labels.pasteCharts"),className:"PasteChartDialog",autofocus:!1,children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsx)(Er,{chartType:"bar",spreadsheet:C.pasteDialog.data,selected:C.currentChartType==="bar",onClick:F}),(0,t.jsx)(Er,{chartType:"line",spreadsheet:C.pasteDialog.data,selected:C.currentChartType==="line",onClick:F})]})})},Cr=e(2978),Fr={};Fr.styleTagTransform=Ye(),Fr.setAttributes=Ze(),Fr.insert=be().bind(null,"head"),Fr.domAPI=ee(),Fr.insertStyleElement=Ie(),X()(Cr.Z,Fr),Cr.Z&&Cr.Z.locals&&Cr.Z.locals;function zr(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}var Sr=u().mark(uo);function qr(r,d){var C=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!C){if(Array.isArray(r)||(C=function(fe,Me){if(fe){if(typeof fe=="string")return rn(fe,Me);var je=Object.prototype.toString.call(fe).slice(8,-1);if(je==="Object"&&fe.constructor&&(je=fe.constructor.name),je==="Map"||je==="Set")return Array.from(fe);if(je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je))return rn(fe,Me)}}(r))||d&&r&&typeof r.length=="number"){C&&(r=C);var K=0,ae=function(){};return{s:ae,n:function(){return K>=r.length?{done:!0}:{done:!1,value:r[K++]}},e:function(fe){throw fe},f:ae}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ye,F=!0,T=!1;return{s:function(){C=C.call(r)},n:function(){var fe=C.next();return F=fe.done,fe},e:function(fe){T=!0,ye=fe},f:function(){try{F||C.return==null||C.return()}finally{if(T)throw ye}}}}function rn(r,d){(d==null||d>r.length)&&(d=r.length);for(var C=0,K=new Array(d);C<d;C++)K[C]=r[C];return K}var Ln=function(){return(0,t.jsxs)("div",{className:"HelpDialog__header",children:[(0,t.jsxs)("a",{className:"HelpDialog__btn",href:"https://docs.excalidraw.com",target:"_blank",rel:"noopener noreferrer",children:[(0,R.t)("helpDialog.documentation"),(0,t.jsx)("div",{className:"HelpDialog__link-icon",children:$.h0})]}),(0,t.jsxs)("a",{className:"HelpDialog__btn",href:"https://blog.excalidraw.com",target:"_blank",rel:"noopener noreferrer",children:[(0,R.t)("helpDialog.blog"),(0,t.jsx)("div",{className:"HelpDialog__link-icon",children:$.h0})]}),(0,t.jsxs)("a",{className:"HelpDialog__btn",href:"https://github.com/excalidraw/excalidraw/issues",target:"_blank",rel:"noopener noreferrer",children:[(0,R.t)("helpDialog.github"),(0,t.jsx)("div",{className:"HelpDialog__link-icon",children:$.h0})]})]})},Bn=function(r){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{children:r.title}),(0,t.jsx)("div",{className:"HelpDialog__islands-container",children:r.children})]})},$n=function(r){return(0,t.jsxs)("div",{className:"HelpDialog__island ".concat(r.className),children:[(0,t.jsx)("h4",{className:"HelpDialog__island-title",children:r.caption}),(0,t.jsx)("div",{className:"HelpDialog__island-content",children:r.children})]})};function uo(r,d){var C,K,ae,ye;return u().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:C=!0,K=qr(r),F.prev=2,K.s();case 4:if((ae=K.n()).done){F.next=14;break}if(ye=ae.value,C){F.next=9;break}return F.next=9,d;case 9:return C=!1,F.next=12,ye;case 12:F.next=4;break;case 14:F.next=19;break;case 16:F.prev=16,F.t0=F.catch(2),K.e(F.t0);case 19:return F.prev=19,K.f(),F.finish(19);case 22:case"end":return F.stop()}},Sr,null,[[2,16,19,22]])}var wr=function(r){var d=r.label,C=r.shortcuts,K=r.isOr,ae=K===void 0||K,ye=C.map(function(F){return(F.endsWith("++")?[].concat((0,y.Z)(F.slice(0,-2).split("+")),["+"]):F.split("+")).map(function(T){return(0,t.jsx)(nn,{children:(fe=T,fe.replace(/\b[a-z]\b/,function(Me){return Me.toUpperCase()}))},T);var fe})});return(0,t.jsxs)("div",{className:"HelpDialog__shortcut",children:[(0,t.jsx)("div",{children:d}),(0,t.jsx)("div",{className:"HelpDialog__key-container",children:(0,y.Z)(uo(ye,ae?(0,R.t)("helpDialog.or"):null))})]})},nn=function(r){return(0,t.jsx)("kbd",function(d){for(var C=1;C<arguments.length;C++){var K=arguments[C]!=null?arguments[C]:{};C%2?zr(Object(K),!0).forEach(function(ae){(0,H.Z)(d,ae,K[ae])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(K)):zr(Object(K)).forEach(function(ae){Object.defineProperty(d,ae,Object.getOwnPropertyDescriptor(K,ae))})}return d}({className:"HelpDialog__key"},r))},mn=function(r){var d=r.onClose,C=le().useCallback(function(){d&&d()},[d]);return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(Ot.V,{onCloseRequest:C,title:(0,R.t)("helpDialog.title"),className:"HelpDialog",children:[(0,t.jsx)(Ln,{}),(0,t.jsxs)(Bn,{title:(0,R.t)("helpDialog.shortcuts"),children:[(0,t.jsxs)($n,{className:"HelpDialog__island--tools",caption:(0,R.t)("helpDialog.tools"),children:[(0,t.jsx)(wr,{label:(0,R.t)("toolBar.hand"),shortcuts:[_.tW.H]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.selection"),shortcuts:[_.tW.V,_.tW[1]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.rectangle"),shortcuts:[_.tW.R,_.tW[2]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.diamond"),shortcuts:[_.tW.D,_.tW[3]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.ellipse"),shortcuts:[_.tW.O,_.tW[4]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.arrow"),shortcuts:[_.tW.A,_.tW[5]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.line"),shortcuts:[_.tW.L,_.tW[6]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.freedraw"),shortcuts:[_.tW.P,_.tW[7]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.text"),shortcuts:[_.tW.T,_.tW[8]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.image"),shortcuts:[_.tW[9]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.eraser"),shortcuts:[_.tW.E,_.tW[0]]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.frame"),shortcuts:[_.tW.F]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.laser"),shortcuts:[_.tW.K]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.eyeDropper"),shortcuts:[_.tW.I,"Shift+S","Shift+G"]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.editLineArrowPoints"),shortcuts:[(0,s.uY)("CtrlOrCmd+Enter")]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.editText"),shortcuts:[(0,s.uY)("Enter")]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.textNewLine"),shortcuts:[(0,s.uY)("Enter"),(0,s.uY)("Shift+Enter")]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.textFinish"),shortcuts:[(0,s.uY)("Esc"),(0,s.uY)("CtrlOrCmd+Enter")]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.curvedArrow"),shortcuts:["A",(0,R.t)("helpDialog.click"),(0,R.t)("helpDialog.click"),(0,R.t)("helpDialog.click")],isOr:!1}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.curvedLine"),shortcuts:["L",(0,R.t)("helpDialog.click"),(0,R.t)("helpDialog.click"),(0,R.t)("helpDialog.click")],isOr:!1}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.lock"),shortcuts:[_.tW.Q]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.preventBinding"),shortcuts:[(0,s.uY)("CtrlOrCmd")]}),(0,t.jsx)(wr,{label:(0,R.t)("toolBar.link"),shortcuts:[(0,s.uY)("CtrlOrCmd+K")]})]}),(0,t.jsxs)($n,{className:"HelpDialog__island--view",caption:(0,R.t)("helpDialog.view"),children:[(0,t.jsx)(wr,{label:(0,R.t)("buttons.zoomIn"),shortcuts:[(0,s.uY)("CtrlOrCmd++")]}),(0,t.jsx)(wr,{label:(0,R.t)("buttons.zoomOut"),shortcuts:[(0,s.uY)("CtrlOrCmd+-")]}),(0,t.jsx)(wr,{label:(0,R.t)("buttons.resetZoom"),shortcuts:[(0,s.uY)("CtrlOrCmd+0")]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.zoomToFit"),shortcuts:["Shift+1"]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.zoomToSelection"),shortcuts:["Shift+2"]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.movePageUpDown"),shortcuts:["PgUp/PgDn"]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.movePageLeftRight"),shortcuts:["Shift+PgUp/PgDn"]}),(0,t.jsx)(wr,{label:(0,R.t)("buttons.zenMode"),shortcuts:[(0,s.uY)("Alt+Z")]}),(0,t.jsx)(wr,{label:(0,R.t)("buttons.objectsSnapMode"),shortcuts:[(0,s.uY)("Alt+S")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.showGrid"),shortcuts:[(0,s.uY)("CtrlOrCmd+'")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.viewMode"),shortcuts:[(0,s.uY)("Alt+R")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.toggleTheme"),shortcuts:[(0,s.uY)("Alt+Shift+D")]}),(0,t.jsx)(wr,{label:(0,R.t)("stats.title"),shortcuts:[(0,s.uY)("Alt+/")]})]}),(0,t.jsxs)($n,{className:"HelpDialog__island--editor",caption:(0,R.t)("helpDialog.editor"),children:[(0,t.jsx)(wr,{label:(0,R.t)("labels.moveCanvas"),shortcuts:[(0,s.uY)("Space+".concat((0,R.t)("helpDialog.drag"))),(0,s.uY)("Wheel+".concat((0,R.t)("helpDialog.drag")))],isOr:!0}),(0,t.jsx)(wr,{label:(0,R.t)("buttons.clearReset"),shortcuts:[(0,s.uY)("CtrlOrCmd+Delete")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.delete"),shortcuts:[(0,s.uY)("Delete")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.cut"),shortcuts:[(0,s.uY)("CtrlOrCmd+X")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.copy"),shortcuts:[(0,s.uY)("CtrlOrCmd+C")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.paste"),shortcuts:[(0,s.uY)("CtrlOrCmd+V")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.pasteAsPlaintext"),shortcuts:[(0,s.uY)("CtrlOrCmd+Shift+V")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.selectAll"),shortcuts:[(0,s.uY)("CtrlOrCmd+A")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.multiSelect"),shortcuts:[(0,s.uY)("Shift+".concat((0,R.t)("helpDialog.click")))]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.deepSelect"),shortcuts:[(0,s.uY)("CtrlOrCmd+".concat((0,R.t)("helpDialog.click")))]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.deepBoxSelect"),shortcuts:[(0,s.uY)("CtrlOrCmd+".concat((0,R.t)("helpDialog.drag")))]}),(x.vt||f.vU)&&(0,t.jsx)(wr,{label:(0,R.t)("labels.copyAsPng"),shortcuts:[(0,s.uY)("Shift+Alt+C")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.copyStyles"),shortcuts:[(0,s.uY)("CtrlOrCmd+Alt+C")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.pasteStyles"),shortcuts:[(0,s.uY)("CtrlOrCmd+Alt+V")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.sendToBack"),shortcuts:[f.Um?(0,s.uY)("CtrlOrCmd+Alt+["):(0,s.uY)("CtrlOrCmd+Shift+[")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.bringToFront"),shortcuts:[f.Um?(0,s.uY)("CtrlOrCmd+Alt+]"):(0,s.uY)("CtrlOrCmd+Shift+]")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.sendBackward"),shortcuts:[(0,s.uY)("CtrlOrCmd+[")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.bringForward"),shortcuts:[(0,s.uY)("CtrlOrCmd+]")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.alignTop"),shortcuts:[(0,s.uY)("CtrlOrCmd+Shift+Up")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.alignBottom"),shortcuts:[(0,s.uY)("CtrlOrCmd+Shift+Down")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.alignLeft"),shortcuts:[(0,s.uY)("CtrlOrCmd+Shift+Left")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.alignRight"),shortcuts:[(0,s.uY)("CtrlOrCmd+Shift+Right")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.duplicateSelection"),shortcuts:[(0,s.uY)("CtrlOrCmd+D"),(0,s.uY)("Alt+".concat((0,R.t)("helpDialog.drag")))]}),(0,t.jsx)(wr,{label:(0,R.t)("helpDialog.toggleElementLock"),shortcuts:[(0,s.uY)("CtrlOrCmd+Shift+L")]}),(0,t.jsx)(wr,{label:(0,R.t)("buttons.undo"),shortcuts:[(0,s.uY)("CtrlOrCmd+Z")]}),(0,t.jsx)(wr,{label:(0,R.t)("buttons.redo"),shortcuts:f.ED?[(0,s.uY)("CtrlOrCmd+Y"),(0,s.uY)("CtrlOrCmd+Shift+Z")]:[(0,s.uY)("CtrlOrCmd+Shift+Z")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.group"),shortcuts:[(0,s.uY)("CtrlOrCmd+G")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.ungroup"),shortcuts:[(0,s.uY)("CtrlOrCmd+Shift+G")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.flipHorizontal"),shortcuts:[(0,s.uY)("Shift+H")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.flipVertical"),shortcuts:[(0,s.uY)("Shift+V")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.showStroke"),shortcuts:[(0,s.uY)("S")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.showBackground"),shortcuts:[(0,s.uY)("G")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.decreaseFontSize"),shortcuts:[(0,s.uY)("CtrlOrCmd+Shift+<")]}),(0,t.jsx)(wr,{label:(0,R.t)("labels.increaseFontSize"),shortcuts:[(0,s.uY)("CtrlOrCmd+Shift+>")]})]})]})]})})},On=e(4704),Kn=e(4241),Jn={};Jn.styleTagTransform=Ye(),Jn.setAttributes=Ze(),Jn.insert=be().bind(null,"head"),Jn.domAPI=ee(),Jn.insertStyleElement=Ie(),X()(Kn.Z,Jn),Kn.Z&&Kn.Z.locals&&Kn.Z.locals;var wo=function(r){var d,C=r.children,K=r.color;return(0,t.jsx)("div",{className:"Card",style:(d={},(0,H.Z)(d,"--card-color",K==="primary"?"var(--color-primary)":zt[K][7]),(0,H.Z)(d,"--card-color-darker",K==="primary"?"var(--color-primary-darker)":zt[K][8]),(0,H.Z)(d,"--card-color-darkest",K==="primary"?"var(--color-primary-darkest)":zt[K][9]),d),children:C})},to=e(7955),no={};no.styleTagTransform=Ye(),no.setAttributes=Ze(),no.insert=be().bind(null,"head"),no.domAPI=ee(),no.insertStyleElement=Ie(),X()(to.Z,no),to.Z&&to.Z.locals&&to.Z.locals;var ma=function(r){var d=r.elements,C=r.appState,K=r.setAppState,ae=r.files,ye=r.actionManager,F=r.exportOpts,T=r.canvas,fe=r.onCloseRequest,Me=F.onExportToBackend;return(0,t.jsx)("div",{className:"ExportDialog ExportDialog--json",children:(0,t.jsxs)("div",{className:"ExportDialog-cards",children:[F.saveFileToDisk&&(0,t.jsxs)(wo,{color:"lime",children:[(0,t.jsx)("div",{className:"Card-icon",children:$.TP}),(0,t.jsx)("h2",{children:(0,R.t)("exportDialog.disk_title")}),(0,t.jsxs)("div",{className:"Card-details",children:[(0,R.t)("exportDialog.disk_details"),!ur.kr&&ye.renderAction("changeProjectName")]}),(0,t.jsx)(b.V,{className:"Card-button",type:"button",title:(0,R.t)("exportDialog.disk_button"),"aria-label":(0,R.t)("exportDialog.disk_button"),showAriaLabel:!0,onClick:function(){ye.executeAction(Gt.mM,"ui")}})]}),Me&&(0,t.jsxs)(wo,{color:"pink",children:[(0,t.jsx)("div",{className:"Card-icon",children:$.xP}),(0,t.jsx)("h2",{children:(0,R.t)("exportDialog.link_title")}),(0,t.jsx)("div",{className:"Card-details",children:(0,R.t)("exportDialog.link_details")}),(0,t.jsx)(b.V,{className:"Card-button",type:"button",title:(0,R.t)("exportDialog.link_button"),"aria-label":(0,R.t)("exportDialog.link_button"),showAriaLabel:!0,onClick:(0,h.Z)(u().mark(function je(){return u().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.prev=0,(0,c.L)("export","link","ui (".concat((0,s.$h)(),")")),Fe.next=4,Me(d,C,ae,T);case 4:fe(),Fe.next=10;break;case 7:Fe.prev=7,Fe.t0=Fe.catch(0),K({errorMessage:Fe.t0.message});case 10:case"end":return Fe.stop()}},je,null,[[0,7]])}))})]}),F.renderCustomUI&&F.renderCustomUI(d,C,ae,T)]})})},Qo=function(r){var d=r.elements,C=r.appState,K=r.files,ae=r.actionManager,ye=r.exportOpts,F=r.canvas,T=r.setAppState,fe=le().useCallback(function(){T({openDialog:null})},[T]);return(0,t.jsx)(t.Fragment,{children:C.openDialog==="jsonExport"&&(0,t.jsx)(Ot.V,{onCloseRequest:fe,title:(0,R.t)("buttons.export"),children:(0,t.jsx)(ma,{elements:d,appState:C,setAppState:T,files:K,actionManager:ae,onCloseRequest:fe,exportOpts:ye,canvas:F})})})},Ia=e(7080),ii=function(r){return(0,t.jsx)("button",{className:"help-icon",onClick:r.onClick,type:"button",title:"".concat((0,R.t)("helpDialog.title")," — ?"),"aria-label":(0,R.t)("helpDialog.title"),children:$.by})},Ma=function(r){var d=r.appState,C=r.actionManager,K=r.showExitZenModeBtn,ae=r.renderWelcomeScreen,ye=(0,ze.R6)(),F=ye.FooterCenterTunnel,T=ye.WelcomeScreenHelpHintTunnel,fe=ri(),Me=!d.viewModeEnabled&&d.multiElement&&fe.isTouchScreen;return(0,t.jsxs)("footer",{role:"contentinfo",className:"layer-ui__wrapper__footer App-menu App-menu_bottom",children:[(0,t.jsx)("div",{className:(0,pe.Z)("layer-ui__wrapper__footer-left zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-left":d.zenModeEnabled}),children:(0,t.jsx)(qe.Z.Col,{gap:2,children:(0,t.jsxs)(Zn,{heading:"canvasActions",children:[(0,t.jsx)(bt,{renderAction:C.renderAction,zoom:d.zoom}),!d.viewModeEnabled&&(0,t.jsx)(at,{renderAction:C.renderAction,className:(0,pe.Z)("zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-bottom":d.zenModeEnabled})}),Me&&(0,t.jsx)(ut,{renderAction:C.renderAction,className:(0,pe.Z)("zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-left":d.zenModeEnabled})})]})})}),(0,t.jsx)(F.Out,{}),(0,t.jsx)("div",{className:(0,pe.Z)("layer-ui__wrapper__footer-right zen-mode-transition",{"transition-right":d.zenModeEnabled}),children:(0,t.jsxs)("div",{style:{position:"relative"},children:[ae&&(0,t.jsx)(T.Out,{}),(0,t.jsx)(ii,{onClick:function(){return C.executeAction(P.jY)}})]})}),(0,t.jsx)(mt,{actionManager:C,showExitZenModeBtn:K})]})},Pa=Ma;Ma.displayName="Footer";var Ta=e(5902),ko=e(453),ea=e(3607),Qn=e(7021),Da=e(8973),li=e(6922),ga=e(7827),To=function(r){var d=r.title,C=r.children,K=r.actionLabel,ae=r.onClick;return(0,t.jsxs)("div",{className:"OverwriteConfirm__Actions__Action",children:[(0,t.jsx)("h4",{children:d}),(0,t.jsx)("div",{className:"OverwriteConfirm__Actions__Action__content",children:C}),(0,t.jsx)(dt,{variant:"outlined",color:"muted",label:K,size:"large",fullWidth:!0,onClick:ae})]})},_o=Object.assign(function(r){var d=r.children;return(0,t.jsx)("div",{className:"OverwriteConfirm__Actions",children:d})},{ExportToImage:function(){var r=(0,R.QT)().t,d=Mi(),C=Xi();return(0,t.jsx)(To,{title:r("overwriteConfirm.action.exportToImage.title"),actionLabel:r("overwriteConfirm.action.exportToImage.button"),onClick:function(){d.executeAction(Gt.Du,"ui",!0),C({openDialog:"imageExport"})},children:r("overwriteConfirm.action.exportToImage.description")})},SaveToDisk:function(){var r=(0,R.QT)().t,d=Mi();return(0,t.jsx)(To,{title:r("overwriteConfirm.action.saveToDisk.title"),actionLabel:r("overwriteConfirm.action.saveToDisk.button"),onClick:function(){d.executeAction(P.mM,"ui")},children:r("overwriteConfirm.action.saveToDisk.description")})}}),Ho=e(9439),Oo={};Oo.styleTagTransform=Ye(),Oo.setAttributes=Ze(),Oo.insert=be().bind(null,"head"),Oo.domAPI=ee(),Oo.insertStyleElement=Ie(),X()(Ho.Z,Oo),Ho.Z&&Ho.Z.locals&&Ho.Z.locals;function va(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function Wo(r){for(var d=1;d<arguments.length;d++){var C=arguments[d]!=null?arguments[d]:{};d%2?va(Object(C),!0).forEach(function(K){(0,H.Z)(r,K,C[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(C)):va(Object(C)).forEach(function(K){Object.defineProperty(r,K,Object.getOwnPropertyDescriptor(C,K))})}return r}var Do=Object.assign((0,li.$)("OverwriteConfirmDialog",function(r){var d=r.children,C=(0,ze.R6)().OverwriteConfirmDialogTunnel,K=(0,ea.KO)(ga.K,ko.yE),ae=(0,E.Z)(K,2),ye=ae[0],F=ae[1];return ye.active?(0,t.jsx)(C.In,{children:(0,t.jsx)(Ot.V,{onCloseRequest:function(){ye.onClose(),F(function(T){return Wo(Wo({},T),{},{active:!1})})},title:!1,size:916,children:(0,t.jsxs)("div",{className:"OverwriteConfirm",children:[(0,t.jsx)("h3",{children:ye.title}),(0,t.jsxs)("div",{className:"OverwriteConfirm__Description OverwriteConfirm__Description--color-".concat(ye.color),children:[(0,t.jsx)("div",{className:"OverwriteConfirm__Description__icon",children:$.UT}),(0,t.jsx)("div",{children:ye.description}),(0,t.jsx)("div",{className:"OverwriteConfirm__Description__spacer"}),(0,t.jsx)(dt,{color:ye.color,size:"large",label:ye.actionLabel,onClick:function(){ye.onConfirm(),F(function(T){return Wo(Wo({},T),{},{active:!1})})}})]}),(0,t.jsx)(_o,{children:d})]})})}):null}),{Actions:_o,Action:To}),Aa=e(100),ba=e(1925),ya=e(8924),ta=e(1434),oo={};oo.styleTagTransform=Ye(),oo.setAttributes=Ze(),oo.insert=be().bind(null,"head"),oo.domAPI=ee(),oo.insertStyleElement=Ie(),X()(ta.Z,oo),ta.Z&&ta.Z.locals&&ta.Z.locals;var Fo=e(9144),Ao={};Ao.styleTagTransform=Ye(),Ao.setAttributes=Ze(),Ao.insert=be().bind(null,"head"),Ao.domAPI=ee(),Ao.insertStyleElement=Ie(),X()(Fo.Z,Ao),Fo.Z&&Fo.Z.locals&&Fo.Z.locals;var Eo=e(2921),ci=function(r){return(0,t.jsxs)("label",{className:(0,pe.Z)("ToolIcon ToolIcon__LaserPointer","ToolIcon_size_".concat("small"),{"is-mobile":r.isMobile}),title:"".concat(r.title),children:[(0,t.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",name:r.name,onChange:r.onChange,checked:r.checked,"aria-label":r.title,"data-testid":"toolbar-LaserPointer"}),(0,t.jsx)("div",{className:"ToolIcon__icon",children:$.d})]})},La=["suggestedBindings","startBoundElement","cursorButton","scrollX","scrollY"],Za=["canvas","appState"],Ki=["canvas","appState"];function Uo(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function si(r,d){var C=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!C){if(Array.isArray(r)||(C=function(fe,Me){if(fe){if(typeof fe=="string")return Co(fe,Me);var je=Object.prototype.toString.call(fe).slice(8,-1);if(je==="Object"&&fe.constructor&&(je=fe.constructor.name),je==="Map"||je==="Set")return Array.from(fe);if(je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je))return Co(fe,Me)}}(r))||d&&r&&typeof r.length=="number"){C&&(r=C);var K=0,ae=function(){};return{s:ae,n:function(){return K>=r.length?{done:!0}:{done:!1,value:r[K++]}},e:function(fe){throw fe},f:ae}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ye,F=!0,T=!1;return{s:function(){C=C.call(r)},n:function(){var fe=C.next();return F=fe.done,fe},e:function(fe){T=!0,ye=fe},f:function(){try{F||C.return==null||C.return()}finally{if(T)throw ye}}}}function Co(r,d){(d==null||d>r.length)&&(d=r.length);for(var C=0,K=new Array(d);C<d;C++)K[C]=r[C];return K}var ui=function(r){var d=r.UIOptions;return(0,t.jsxs)(Qn.Z,{__fallback:!0,children:[(0,t.jsx)(Qn.Z.DefaultItems.LoadScene,{}),(0,t.jsx)(Qn.Z.DefaultItems.SaveToActiveFile,{}),d.canvasActions.export&&(0,t.jsx)(Qn.Z.DefaultItems.Export,{}),d.canvasActions.saveAsImage&&(0,t.jsx)(Qn.Z.DefaultItems.SaveAsImage,{}),(0,t.jsx)(Qn.Z.DefaultItems.Help,{}),(0,t.jsx)(Qn.Z.DefaultItems.ClearCanvas,{}),(0,t.jsx)(Qn.Z.Separator,{}),(0,t.jsx)(Qn.Z.Group,{title:"Excalidraw links",children:(0,t.jsx)(Qn.Z.DefaultItems.Socials,{})}),(0,t.jsx)(Qn.Z.Separator,{}),(0,t.jsx)(Qn.Z.DefaultItems.ToggleTheme,{}),(0,t.jsx)(Qn.Z.DefaultItems.ChangeCanvasBackground,{})]})},di=function(){return(0,t.jsxs)(Do,{__fallback:!0,children:[(0,t.jsx)(Do.Actions.SaveToDisk,{}),(0,t.jsx)(Do.Actions.ExportToImage,{})]})},fi=function(r){var d,C,K=r.actionManager,ae=r.appState,ye=r.files,F=r.setAppState,T=r.elements,fe=r.canvas,Me=r.onLockToggle,je=r.onHandToolToggle,Fe=r.onPenModeToggle,Ue=r.showExitZenModeBtn,Ge=r.renderTopRightUI,rt=r.renderCustomStats,it=r.UIOptions,lt=r.onExportImage,Yt=r.renderWelcomeScreen,jt=r.children,ct=r.app,xt=r.isCollaborating,Mt=ri(),Vt=(0,ze.ZC)(),Ht=(0,ea.KO)(ya.$,ko.yE),Tt=(0,E.Z)(Ht,2),Kt=Tt[0],hr=Tt[1],Mr=function(){return it.canvasActions.export?(0,t.jsx)(Qo,{elements:T,appState:ae,files:ye,actionManager:K,exportOpts:it.canvasActions.export,canvas:fe,setAppState:F}):null},Nr=function(){return it.canvasActions.saveAsImage&&ae.openDialog==="imageExport"?(0,t.jsx)(_r,{elements:T,appState:ae,files:ye,actionManager:K,onExportImage:lt,onCloseRequest:function(){return F({openDialog:null})}}):null},Kr=function(){return(0,t.jsx)(ba.O,{__fallback:!0,onDock:function(Pr){(0,c.L)("sidebar","toggleDock (".concat(Pr?"dock":"undock",")"),"(".concat(Mt.editor.isMobile?"mobile":"desktop",")"))}})},tn=(0,ea.Dv)(Ta.t6,ko.yE),Qr=(0,t.jsxs)(t.Fragment,{children:[jt,(0,t.jsx)(ui,{UIOptions:it}),(0,t.jsx)(ba.O.Trigger,{__fallback:!0,icon:$.Vq,title:(0,s.Oo)((0,R.t)("toolBar.library")),onToggle:function(Pr){Pr&&(0,c.L)("sidebar","".concat(f.Cc.name," (open)"),"button (".concat(Mt.editor.isMobile?"mobile":"desktop",")"))},tab:f.Cc.defaultTab,children:(0,R.t)("toolBar.library")}),(0,t.jsx)(di,{}),ae.isLoading&&(0,t.jsx)(Hr.z,{delay:250}),ae.errorMessage&&(0,t.jsx)(Pt,{onClose:function(){return F({errorMessage:null})},children:ae.errorMessage}),Kt&&!Mt.editor.isMobile&&(0,t.jsx)(ya.p,{colorPickerType:Kt.colorPickerType,onCancel:function(){hr(null)},onChange:function(Pr,on,Br,en){var gn=en.altKey;if(Pr==="elementBackground"||Pr==="elementStroke")if(Br.length){var xn,pn,Tn=si(Br);try{for(Tn.s();!(pn=Tn.n()).done;){var Xr=pn.value;(0,g.DR)(Xr,(0,H.Z)({},gn&&Kt.swapPreviewOnAlt?Pr==="elementBackground"?"strokeColor":"backgroundColor":Pr==="elementBackground"?"backgroundColor":"strokeColor",on),!1),Eo.R.delete(Xr)}}catch(cn){Tn.e(cn)}finally{Tn.f()}(xn=q.Z.getScene(Br[0]))===null||xn===void 0||xn.informMutation()}else F(Pr==="elementBackground"?{currentItemBackgroundColor:on}:{currentItemStrokeColor:on})},onSelect:function(Pr,on){var Br;hr(function(en){return en!=null&&en.keepOpenOnAlt&&on.altKey?en:null}),Kt==null||(Br=Kt.onSelect)===null||Br===void 0||Br.call(Kt,Pr,on)}}),ae.openDialog==="help"&&(0,t.jsx)(mn,{onClose:function(){F({openDialog:null})}}),(0,t.jsx)(Da.o,{}),(0,t.jsx)(Vt.OverwriteConfirmDialogTunnel.Out,{}),Nr(),Mr(),ae.pasteDialog.shown&&(0,t.jsx)(Or,{setAppState:F,appState:ae,onClose:function(){return F({pasteDialog:{shown:!1,data:null}})}}),Mt.editor.isMobile&&(0,t.jsx)(Ut,{app:ct,appState:ae,elements:T,actionManager:K,renderJSONExportDialog:Mr,renderImageExportDialog:Nr,setAppState:F,onLockToggle:Me,onHandToolToggle:je,onPenModeToggle:Fe,renderTopRightUI:Ge,renderCustomStats:rt,renderSidebars:Kr,device:Mt,renderWelcomeScreen:Yt,UIOptions:it}),!Mt.editor.isMobile&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"layer-ui__wrapper",style:ae.openSidebar&&tn&&Mt.editor.canFitSidebar?{width:"calc(100% - ".concat(f.EE,"px)")}:{},children:[Yt&&(0,t.jsx)(Vt.WelcomeScreenCenterTunnel.Out,{}),(C=(0,V.RT)(ae,T),(0,t.jsx)(Zr,{side:"top",children:(0,t.jsxs)("div",{className:"App-menu App-menu_top",children:[(0,t.jsxs)(qe.Z.Col,{gap:6,className:(0,pe.Z)("App-menu_top__left"),children:[(0,t.jsxs)("div",{style:{position:"relative"},children:[(0,t.jsx)(Vt.MainMenuTunnel.Out,{}),Yt&&(0,t.jsx)(Vt.WelcomeScreenMenuHintTunnel.Out,{})]}),C&&(0,t.jsx)(Zn,{heading:"selectedShapeActions",className:(0,pe.Z)("selected-shape-actions zen-mode-transition",{"transition-left":ae.zenModeEnabled}),children:(0,t.jsx)(cr.W,{className:f.$C.SHAPE_ACTIONS_MENU,padding:2,style:{maxHeight:"".concat(ae.height-166,"px")},children:(0,t.jsx)(Ft,{appState:ae,elements:T,renderAction:K.renderAction})})})]}),!ae.viewModeEnabled&&(0,t.jsx)(Zn,{heading:"shapes",className:"shapes-section",children:function(Pr){return(0,t.jsxs)("div",{style:{position:"relative"},children:[Yt&&(0,t.jsx)(Vt.WelcomeScreenToolbarHintTunnel.Out,{}),(0,t.jsx)(qe.Z.Col,{gap:4,align:"start",children:(0,t.jsxs)(qe.Z.Row,{gap:1,className:(0,pe.Z)("App-toolbar-container",{"zen-mode":ae.zenModeEnabled}),children:[(0,t.jsxs)(cr.W,{padding:1,className:(0,pe.Z)("App-toolbar",{"zen-mode":ae.zenModeEnabled}),children:[(0,t.jsx)(gr,{appState:ae,isMobile:Mt.editor.isMobile,device:Mt,app:ct}),Pr,(0,t.jsxs)(qe.Z.Row,{gap:1,children:[(0,t.jsx)(bn,{zenModeEnabled:ae.zenModeEnabled,checked:ae.penMode,onChange:function(){return Fe(null)},title:(0,R.t)("toolBar.penMode"),penDetected:ae.penDetected}),(0,t.jsx)(Rr,{checked:ae.activeTool.locked,onChange:Me,title:(0,R.t)("toolBar.lock")}),(0,t.jsx)("div",{className:"App-toolbar__divider"}),(0,t.jsx)(Pe,{checked:(0,k.l$)(ae),onChange:function(){return je()},title:(0,R.t)("toolBar.hand"),isMobile:!0}),(0,t.jsx)(Ve,{appState:ae,activeTool:ae.activeTool,UIOptions:it,app:ct})]})]}),xt&&(0,t.jsx)(cr.W,{style:{marginLeft:8,alignSelf:"center",height:"fit-content"},children:(0,t.jsx)(ci,{title:(0,R.t)("toolBar.laser"),checked:ae.activeTool.type==="laser",onChange:function(){return ct.setActiveTool({type:"laser"})},isMobile:!0})})]})})]})}}),(0,t.jsxs)("div",{className:(0,pe.Z)("layer-ui__wrapper__top-right zen-mode-transition",{"transition-right":ae.zenModeEnabled}),children:[(0,t.jsx)(On.Z,{collaborators:ae.collaborators}),Ge?.(Mt.editor.isMobile,ae),!ae.viewModeEnabled&&(!tn||((d=ae.openSidebar)===null||d===void 0?void 0:d.name)!==f.Cc.name)&&(0,t.jsx)(Vt.DefaultSidebarTriggerTunnel.Out,{})]})]})})),(0,t.jsx)(Pa,{appState:ae,actionManager:K,showExitZenModeBtn:Ue,renderWelcomeScreen:Yt}),ae.showStats&&(0,t.jsx)(Ee,{appState:ae,setAppState:F,elements:T,onClose:function(){K.executeAction(Ia.u)},renderCustomStats:rt}),ae.scrolledOutside&&(0,t.jsx)("button",{className:"scroll-back-to-content",onClick:function(){F(function(Pr){return function(on){for(var Br=1;Br<arguments.length;Br++){var en=arguments[Br]!=null?arguments[Br]:{};Br%2?Uo(Object(en),!0).forEach(function(gn){(0,H.Z)(on,gn,en[gn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(on,Object.getOwnPropertyDescriptors(en)):Uo(Object(en)).forEach(function(gn){Object.defineProperty(on,gn,Object.getOwnPropertyDescriptor(en,gn))})}return on}({},(0,ke.W)(T,Pr))})},children:(0,R.t)("buttons.scrollBackToContent")})]}),Kr()]})]});return(0,t.jsx)(Aa.k.Provider,{value:ae,children:(0,t.jsx)(ea.zt,{scope:Vt.jotaiScope,children:(0,t.jsx)(ze.A3.Provider,{value:Vt,children:Qr})})})},xa=function(r){return r.suggestedBindings,r.startBoundElement,r.cursorButton,r.scrollX,r.scrollY,(0,Je.Z)(r,La)},pi=function(r,d){if(r.children!==d.children)return!1;r.canvas;var C=r.appState,K=(0,Je.Z)(r,Za),ae=(d.canvas,d.appState),ye=(0,Je.Z)(d,Ki);return(0,s.w8)(xa(C),xa(ae),{selectedElementIds:s.w8,selectedGroupIds:s.w8})&&(0,s.w8)(K,ye)},hi=le().memo(fi,pi),ra=e(9650),fo={};fo.styleTagTransform=Ye(),fo.setAttributes=Ze(),fo.insert=be().bind(null,"head"),fo.domAPI=ee(),fo.insertStyleElement=Ie(),X()(ra.Z,fo),ra.Z&&ra.Z.locals&&ra.Z.locals;var mi=function(r){var d=r.message,C=r.onClose,K=r.closable,ae=K!==void 0&&K,ye=r.duration,F=ye===void 0?5e3:ye,T=(0,U.useRef)(0),fe=F!==1/0,Me=(0,U.useCallback)(function(){fe&&(T.current=window.setTimeout(function(){return C()},F))},[C,F,fe]);(0,U.useEffect)(function(){if(fe)return Me(),function(){return clearTimeout(T.current)}},[Me,d,F,fe]);var je=fe?function(){return clearTimeout(T?.current)}:void 0,Fe=fe?Me:void 0;return(0,t.jsxs)("div",{className:"Toast",onMouseEnter:je,onMouseLeave:Fe,children:[(0,t.jsx)("p",{className:"Toast__message",children:d}),ae&&(0,t.jsx)(b.V,{icon:$.Tw,"aria-label":"close",type:"icon",onClick:C,className:"close"})]})};function Ra(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function za(r){for(var d=1;d<arguments.length;d++){var C=arguments[d]!=null?arguments[d]:{};d%2?Ra(Object(C),!0).forEach(function(K){(0,H.Z)(r,K,C[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(C)):Ra(Object(C)).forEach(function(K){Object.defineProperty(r,K,Object.getOwnPropertyDescriptor(C,K))})}return r}var wa=(0,j.z)({name:"viewMode",viewMode:!0,trackEvent:{category:"canvas",predicate:function(r){return!r.viewModeEnabled}},perform:function(r,d){return{appState:za(za({},d),{},{viewModeEnabled:!this.checked(d)}),commitToHistory:!1}},checked:function(r){return r.viewModeEnabled},predicate:function(r,d,C){return C.viewModeEnabled===void 0},contextItemLabel:"labels.viewMode",keyTest:function(r){return!r[_.tW.CTRL_OR_CMD]&&r.altKey&&r.code===_.aU.R}}),na=e(4178),Na=e(200),gi=e.n(Na),Ba=e(3528),Io=e(5992),Ko=e(8020),vi=e(4048),ka=e(9672);function Ea(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}var Ha=(0,I.Z)(function r(d){var C=this,K=d.scene,ae=d.onSceneUpdated;(0,S.Z)(this,r),this.onFontsLoaded=function(ye){if(ye.every(function(T){var fe="".concat(T.family,"-").concat(T.style,"-").concat(T.weight);return!!r.loadedFontFaces.has(fe)||(r.loadedFontFaces.add(fe),!1)}))return!1;var F=!1;C.scene.mapElements(function(T){return(0,V.iB)(T)&&!(0,L.Xh)(T)?(Eo.R.delete(T),F=!0,(0,g.BE)(T,function(fe){for(var Me=1;Me<arguments.length;Me++){var je=arguments[Me]!=null?arguments[Me]:{};Me%2?Ea(Object(je),!0).forEach(function(Fe){(0,H.Z)(fe,Fe,je[Fe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(fe,Object.getOwnPropertyDescriptors(je)):Ea(Object(je)).forEach(function(Fe){Object.defineProperty(fe,Fe,Object.getOwnPropertyDescriptor(je,Fe))})}return fe}({},(0,V.JZ)(T)))):T}),F&&C.onSceneUpdated()},this.loadFontsForElements=function(){var ye=(0,h.Z)(u().mark(function F(T){var fe;return u().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Me.next=2,Promise.all((0,y.Z)(new Set(T.filter(function(je){return(0,V.iB)(je)}).map(function(je){return je.fontFamily}))).map(function(je){var Fe,Ue,Ge,rt,it=(0,s.mO)({fontFamily:je,fontSize:16});if((Fe=document.fonts)===null||Fe===void 0||(Ue=Fe.check)===null||Ue===void 0||!Ue.call(Fe,it))return(Ge=document.fonts)===null||Ge===void 0||(rt=Ge.load)===null||rt===void 0?void 0:rt.call(Ge,it)}));case 2:fe=Me.sent,C.onFontsLoaded(fe.flat().filter(Boolean));case 4:case"end":return Me.stop()}},F)}));return function(F){return ye.apply(this,arguments)}}(),this.scene=K,this.onSceneUpdated=ae});Ha.loadedFontFaces=new Set;var _n=e(4682),un=e(6264),Wa=e(5047),Gr=e(7652);function Fa(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function ro(r){for(var d=1;d<arguments.length;d++){var C=arguments[d]!=null?arguments[d]:{};d%2?Fa(Object(C),!0).forEach(function(K){(0,H.Z)(r,K,C[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(C)):Fa(Object(C)).forEach(function(K){Object.defineProperty(r,K,Object.getOwnPropertyDescriptor(C,K))})}return r}var Ua=function(r,d){var C=d.scene.getSelectedElements(r);return C.length===1&&C[0].type==="frame"},bi=(0,j.z)({name:"selectAllElementsInFrame",trackEvent:{category:"canvas"},perform:function(r,d,C,K){var ae=K.scene.getSelectedElements(d)[0];if(ae&&ae.type==="frame"){var ye=(0,_n.zD)((0,V.Lm)(r),ae.id).filter(function(F){return!(F.type==="text"&&F.containerId)});return{elements:r,appState:ro(ro({},d),{},{selectedElementIds:ye.reduce(function(F,T){return F[T.id]=!0,F},{})}),commitToHistory:!1}}return{elements:r,appState:d,commitToHistory:!1}},contextItemLabel:"labels.selectAllElementsInFrame",predicate:function(r,d,C,K){return Ua(d,K)}}),yi=(0,j.z)({name:"removeAllElementsFromFrame",trackEvent:{category:"history"},perform:function(r,d,C,K){var ae=K.scene.getSelectedElements(d)[0];return ae&&ae.type==="frame"?{elements:(0,_n.yZ)(r,ae,d),appState:ro(ro({},d),{},{selectedElementIds:(0,H.Z)({},ae.id,!0)}),commitToHistory:!0}:{elements:r,appState:d,commitToHistory:!1}},contextItemLabel:"labels.removeAllElementsFromFrame",predicate:function(r,d,C,K){return Ua(d,K)}}),Ka=((0,j.z)({name:"updateFrameRendering",viewMode:!0,trackEvent:{category:"canvas"},perform:function(r,d){return{elements:r,appState:ro(ro({},d),{},{frameRendering:ro(ro({},d.frameRendering),{},{enabled:!d.frameRendering.enabled})}),commitToHistory:!1}},contextItemLabel:"labels.updateFrameRendering",checked:function(r){return r.frameRendering.enabled}}),(0,j.z)({name:"setFrameAsActiveTool",trackEvent:{category:"toolbar"},perform:function(r,d,C,K){var ae=(0,s.Om)(d,{type:"frame"});return(0,Gr.Uk)(K.interactiveCanvas,ro(ro({},d),{},{activeTool:ae})),{elements:r,appState:ro(ro({},d),{},{activeTool:(0,s.Om)(d,{type:"frame"})}),commitToHistory:!1}},keyTest:function(r){return!r[_.tW.CTRL_OR_CMD]&&!r.shiftKey&&!r.altKey&&r.key.toLocaleLowerCase()===_.tW.F}}),e(6006)),xi=e(3506);function Ga(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function Ya(r){for(var d=1;d<arguments.length;d++){var C=arguments[d]!=null?arguments[d]:{};d%2?Ga(Object(C),!0).forEach(function(K){(0,H.Z)(r,K,C[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(C)):Ga(Object(C)).forEach(function(K){Object.defineProperty(r,K,Object.getOwnPropertyDescriptor(C,K))})}return r}function ao(r,d){var C=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!C){if(Array.isArray(r)||(C=function(fe,Me){if(fe){if(typeof fe=="string")return Go(fe,Me);var je=Object.prototype.toString.call(fe).slice(8,-1);if(je==="Object"&&fe.constructor&&(je=fe.constructor.name),je==="Map"||je==="Set")return Array.from(fe);if(je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je))return Go(fe,Me)}}(r))||d&&r&&typeof r.length=="number"){C&&(r=C);var K=0,ae=function(){};return{s:ae,n:function(){return K>=r.length?{done:!0}:{done:!1,value:r[K++]}},e:function(fe){throw fe},f:ae}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ye,F=!0,T=!1;return{s:function(){C=C.call(r)},n:function(){var fe=C.next();return F=fe.done,fe},e:function(fe){T=!0,ye=fe},f:function(){try{F||C.return==null||C.return()}finally{if(T)throw ye}}}}function Go(r,d){(d==null||d>r.length)&&(d=r.length);for(var C=0,K=new Array(d);C<d;C++)K[C]=r[C];return K}var go=function(r){return 8/r},Cn=(0,I.Z)(function r(){(0,S.Z)(this,r)});Cn.referenceSnapPoints=null,Cn.visibleGaps=null,Cn.setReferenceSnapPoints=function(r){Cn.referenceSnapPoints=r},Cn.getReferenceSnapPoints=function(){return Cn.referenceSnapPoints},Cn.setVisibleGaps=function(r){Cn.visibleGaps=r},Cn.getVisibleGaps=function(){return Cn.visibleGaps},Cn.destroy=function(){Cn.referenceSnapPoints=null,Cn.visibleGaps=null};var vo=function(r){var d=r.event,C=r.appState,K=r.selectedElements;return d?C.objectsSnapModeEnabled&&!d[_.tW.CTRL_OR_CMD]||!C.objectsSnapModeEnabled&&d[_.tW.CTRL_OR_CMD]&&C.gridSize===null:(K.length!==1||K[0].type!=="arrow")&&C.objectsSnapModeEnabled},Yo=function(r){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{omitCenter:!1,boundingBoxCorners:!1},C=d.omitCenter,K=d.boundingBoxCorners,ae=d.dragOffset,ye=[];if(r.length===1){var F=r[0],T=(0,yn.qf)(F),fe=(0,E.Z)(T,6),Me=fe[0],je=fe[1],Fe=fe[2],Ue=fe[3],Ge=fe[4],rt=fe[5];ae&&(Me+=ae.x,Fe+=ae.x,Ge+=ae.x,je+=ae.y,Ue+=ae.y,rt+=ae.y);var it=(Fe-Me)/2,lt=(Ue-je)/2;if(F.type!=="diamond"&&F.type!=="ellipse"||K){var Yt=(0,J.xj)([Me,je],[Ge,rt],F.angle),jt=(0,J.xj)([Fe,je],[Ge,rt],F.angle),ct=(0,J.xj)([Me,Ue],[Ge,rt],F.angle),xt=(0,J.xj)([Fe,Ue],[Ge,rt],F.angle),Mt=[Ge,rt];ye=C?[Yt,jt,ct,xt]:[Yt,jt,ct,xt,Mt]}else{var Vt=(0,J.xj)([Me,je+lt],[Ge,rt],F.angle),Ht=(0,J.xj)([Me+it,je],[Ge,rt],F.angle),Tt=(0,J.xj)([Fe,je+lt],[Ge,rt],F.angle),Kt=(0,J.xj)([Me+it,Ue],[Ge,rt],F.angle),hr=[Ge,rt];ye=C?[Vt,Ht,Tt,Kt]:[Vt,Ht,Tt,Kt,hr]}}else if(r.length>1){var Mr=(0,yn.hC)(r,ae??{x:0,y:0}),Nr=(0,E.Z)(Mr,4),Kr=Nr[0],tn=Nr[1],Qr=Nr[2],Pr=Nr[3],on=Qr-Kr,Br=Pr-tn,en=[Kr,tn],gn=[Qr,tn],xn=[Kr,Pr],pn=[Qr,Pr],Tn=[Kr+on/2,tn+Br/2];ye=C?[en,gn,xn,pn]:[en,gn,xn,pn,Tn]}return ye.map(function(Xr){return[Ne(Xr[0]),Ne(Xr[1])]})},Va=function(r,d,C){var K=d.filter(function(ae){return(0,L.He)(ae)}).map(function(ae){return ae.id});return(0,un.CF)(r,d,C).filter(function(ae){return!(ae.frameId&&K.includes(ae.frameId))})},wi=function(r,d,C){var K=Va(r,d,C),ae=(0,We.AI)(K).filter(function(Br){return!(Br.length===1&&(0,L.Xh)(Br[0]))}).map(function(Br){return(0,yn.KP)(Br).map(function(en){return Ne(en)})}),ye=ae.sort(function(Br,en){return Br[0]-en[0]}),F=[],T=0;e:for(var fe=0;fe<ye.length;fe++)for(var Me=ye[fe],je=fe+1;je<ye.length;je++){if(++T>99999)break e;var Fe=ye[je],Ue=(0,E.Z)(Me,4),Ge=Ue[1],rt=Ue[2],it=Ue[3],lt=(0,E.Z)(Fe,4),Yt=lt[0],jt=lt[1],ct=lt[3];rt<Yt&&(0,J.ep)([Ge,it],[jt,ct])&&F.push({startBounds:Me,endBounds:Fe,startSide:[[rt,Ge],[rt,it]],endSide:[[Yt,jt],[Yt,ct]],length:Yt-rt,overlap:(0,J.mW)([Ge,it],[jt,ct])})}var xt=ae.sort(function(Br,en){return Br[1]-en[1]}),Mt=[];T=0;e:for(var Vt=0;Vt<xt.length;Vt++)for(var Ht=xt[Vt],Tt=Vt+1;Tt<xt.length;Tt++){if(++T>99999)break e;var Kt=xt[Tt],hr=(0,E.Z)(Ht,4),Mr=hr[0],Nr=hr[2],Kr=hr[3],tn=(0,E.Z)(Kt,3),Qr=tn[0],Pr=tn[1],on=tn[2];Kr<Pr&&(0,J.ep)([Mr,Nr],[Qr,on])&&Mt.push({startBounds:Ht,endBounds:Kt,startSide:[[Mr,Kr],[Nr,Kr]],endSide:[[Qr,Pr],[on,Pr]],length:Pr-Kr,overlap:(0,J.mW)([Mr,Nr],[Qr,on])})}return{horizontalGaps:F,verticalGaps:Mt}},se=function(r,d,C,K,ae,ye,F){if(!vo({appState:C,event:K,selectedElements:r}))return[];if(r.length===0)return[];var T=Cn.getVisibleGaps();if(T){var fe,Me=T.horizontalGaps,je=T.verticalGaps,Fe=(0,yn.hC)(r,d).map(function(In){return Ne(In)}),Ue=(0,E.Z)(Fe,4),Ge=Ue[0],rt=Ue[1],it=Ue[2],lt=Ue[3],Yt=(Ge+it)/2,jt=(rt+lt)/2,ct=ao(Me);try{for(ct.s();!(fe=ct.n()).done;){var xt=fe.value;if((0,J.ep)([rt,lt],xt.overlap)){var Mt=xt.startSide[0][0]+xt.length/2,Vt=Ne(Mt-Yt);if(xt.length>it-Ge&&Math.abs(Vt)<=F.x){Math.abs(Vt)<F.x&&(ae.length=0),F.x=Math.abs(Vt);var Ht={type:"gap",direction:"center_horizontal",gap:xt,offset:Vt};ae.push(Ht)}else{var Tt=Ge-(0,E.Z)(xt.endBounds,3)[2],Kt=Ne(xt.length-Tt);if(Math.abs(Kt)<=F.x){Math.abs(Kt)<F.x&&(ae.length=0),F.x=Math.abs(Kt);var hr={type:"gap",direction:"side_right",gap:xt,offset:Kt};ae.push(hr)}else{var Mr=(0,E.Z)(xt.startBounds,3)[0],Nr=Ne(Mr-it-xt.length);if(Math.abs(Nr)<=F.x){Math.abs(Nr)<F.x&&(ae.length=0),F.x=Math.abs(Nr);var Kr={type:"gap",direction:"side_left",gap:xt,offset:Nr};ae.push(Kr)}}}}}}catch(In){ct.e(In)}finally{ct.f()}var tn,Qr=ao(je);try{for(Qr.s();!(tn=Qr.n()).done;){var Pr=tn.value;if((0,J.ep)([Ge,it],Pr.overlap)){var on=Pr.startSide[0][1]+Pr.length/2,Br=Ne(on-jt);if(Pr.length>lt-rt&&Math.abs(Br)<=F.y){Math.abs(Br)<F.y&&(ye.length=0),F.y=Math.abs(Br);var en={type:"gap",direction:"center_vertical",gap:Pr,offset:Br};ye.push(en)}else{var gn=(0,E.Z)(Pr.startBounds,3)[1],xn=Ne(gn-lt-Pr.length);if(Math.abs(xn)<=F.y){Math.abs(xn)<F.y&&(ye.length=0),F.y=Math.abs(xn);var pn={type:"gap",direction:"side_top",gap:Pr,offset:xn};ye.push(pn)}else{var Tn=(0,E.Z)(Pr.endBounds,4)[3],Xr=Ne(rt-Tn),cn=Pr.length-Xr;if(Math.abs(cn)<=F.y){Math.abs(cn)<F.y&&(ye.length=0),F.y=Math.abs(cn);var Wn={type:"gap",direction:"side_bottom",gap:Pr,offset:cn};ye.push(Wn)}}}}}}catch(In){Qr.e(In)}finally{Qr.f()}}},Ae=function(r,d,C){var K=Va(r,d,C);return(0,We.AI)(K).filter(function(ae){return!(ae.length===1&&(0,L.Xh)(ae[0]))}).flatMap(function(ae){return Yo(ae)})},Le=function(r,d,C,K,ae,ye,F){if(!vo({appState:C,event:K,selectedElements:r})||r.length===0&&d.length===0)return[];var T=Cn.getReferenceSnapPoints();if(T){var fe,Me=ao(d);try{for(Me.s();!(fe=Me.n()).done;){var je,Fe=fe.value,Ue=ao(T);try{for(Ue.s();!(je=Ue.n()).done;){var Ge=je.value,rt=Ge[0]-Fe[0],it=Ge[1]-Fe[1];Math.abs(rt)<=F.x&&(Math.abs(rt)<F.x&&(ae.length=0),ae.push({type:"point",points:[Fe,Ge],offset:rt}),F.x=Math.abs(rt)),Math.abs(it)<=F.y&&(Math.abs(it)<F.y&&(ye.length=0),ye.push({type:"point",points:[Fe,Ge],offset:it}),F.y=Math.abs(it))}}catch(lt){Ue.e(lt)}finally{Ue.f()}}}catch(lt){Me.e(lt)}finally{Me.f()}}},Ne=function(r){return Math.round(r*Math.pow(10,6))/Math.pow(10,6)},Xe=function(r){var d,C=new Map,K=ao(r);try{for(K.s();!(d=K.n()).done;){var ae=d.value,ye=ae.join(",");C.has(ye)||C.set(ye,ae)}}catch(F){K.e(F)}finally{K.f()}return Array.from(C.values())},Qe=function(r,d){var C={},K={};if(r.length>0){var ae,ye=ao(r);try{for(ye.s();!(ae=ye.n()).done;){var F=ae.value;if(F.type==="point"){var T,fe=Ne(F.points[0][0]);C[fe]||(C[fe]=[]),(T=C[fe]).push.apply(T,(0,y.Z)(F.points.map(function(rt){return[Ne(rt[0]),Ne(rt[1])]})))}}}catch(rt){ye.e(rt)}finally{ye.f()}}if(d.length>0){var Me,je=ao(d);try{for(je.s();!(Me=je.n()).done;){var Fe=Me.value;if(Fe.type==="point"){var Ue,Ge=Ne(Fe.points[0][1]);K[Ge]||(K[Ge]=[]),(Ue=K[Ge]).push.apply(Ue,(0,y.Z)(Fe.points.map(function(rt){return[Ne(rt[0]),Ne(rt[1])]})))}}}catch(rt){je.e(rt)}finally{je.f()}}return Object.entries(C).map(function(rt){var it=(0,E.Z)(rt,2),lt=it[0],Yt=it[1];return{type:"points",points:Xe(Yt.map(function(jt){return[Number(lt),jt[1]]}).sort(function(jt,ct){return jt[1]-ct[1]}))}}).concat(Object.entries(K).map(function(rt){var it=(0,E.Z)(rt,2),lt=it[0],Yt=it[1];return{type:"points",points:Xe(Yt.map(function(jt){return[jt[0],Number(lt)]}).sort(function(jt,ct){return jt[0]-ct[0]}))}}))},nt=function(r,d,C){var K,ae=(0,yn.hC)(r,d),ye=(0,E.Z)(ae,4),F=ye[0],T=ye[1],fe=ye[2],Me=ye[3],je=[],Fe=ao(C);try{for(Fe.s();!(K=Fe.n()).done;){var Ue=K.value,Ge=(0,E.Z)(Ue.gap.startBounds,4),rt=Ge[0],it=Ge[1],lt=Ge[2],Yt=Ge[3],jt=(0,E.Z)(Ue.gap.endBounds,4),ct=jt[0],xt=jt[1],Mt=jt[2],Vt=jt[3],Ht=(0,J.mW)([T,Me],Ue.gap.overlap),Tt=(0,J.mW)([F,fe],Ue.gap.overlap);switch(Ue.direction){case"center_horizontal":if(Ht){var Kt=(Ht[0]+Ht[1])/2;je.push({type:"gap",direction:"horizontal",points:[[Ue.gap.startSide[0][0],Kt],[F,Kt]]},{type:"gap",direction:"horizontal",points:[[fe,Kt],[Ue.gap.endSide[0][0],Kt]]})}break;case"center_vertical":if(Tt){var hr=(Tt[0]+Tt[1])/2;je.push({type:"gap",direction:"vertical",points:[[hr,Ue.gap.startSide[0][1]],[hr,T]]},{type:"gap",direction:"vertical",points:[[hr,Me],[hr,Ue.gap.endSide[0][1]]]})}break;case"side_right":if(Ht){var Mr=(Ht[0]+Ht[1])/2;je.push({type:"gap",direction:"horizontal",points:[[lt,Mr],[ct,Mr]]},{type:"gap",direction:"horizontal",points:[[Mt,Mr],[F,Mr]]})}break;case"side_left":if(Ht){var Nr=(Ht[0]+Ht[1])/2;je.push({type:"gap",direction:"horizontal",points:[[fe,Nr],[rt,Nr]]},{type:"gap",direction:"horizontal",points:[[lt,Nr],[ct,Nr]]})}break;case"side_top":if(Tt){var Kr=(Tt[0]+Tt[1])/2;je.push({type:"gap",direction:"vertical",points:[[Kr,Me],[Kr,it]]},{type:"gap",direction:"vertical",points:[[Kr,Yt],[Kr,xt]]})}break;case"side_bottom":if(Tt){var tn=(Tt[0]+Tt[1])/2;je.push({type:"gap",direction:"vertical",points:[[tn,Yt],[tn,xt]]},{type:"gap",direction:"vertical",points:[[tn,Vt],[tn,T]]})}}}}catch(Qr){Fe.e(Qr)}finally{Fe.f()}return function(Qr){var Pr,on=new Map,Br=ao(Qr);try{for(Br.s();!(Pr=Br.n()).done;){var en=Pr.value,gn=en.points.flat().map(function(xn){return[Ne(xn)]}).join(",");on.has(gn)||on.set(gn,en)}}catch(xn){Br.e(xn)}finally{Br.f()}return Array.from(on.values())}(je.map(function(Qr){return Ya(Ya({},Qr),{},{points:Qr.points.map(function(Pr){return[Ne(Pr[0]),Ne(Pr[1])]})})}))},$e=function(r,d,C,K,ae,ye){var F,T,fe,Me;if(!vo({event:K,selectedElements:r,appState:C})||r.length===0||r.length===1&&!function(Nr,Kr){var tn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.01;return Math.abs(Nr-Kr)<=tn}(r[0].angle,0))return{snapOffset:{x:0,y:0},snapLines:[]};var je=(0,yn.KP)(d),Fe=(0,E.Z)(je,4),Ue=Fe[0],Ge=Fe[1],rt=Fe[2],it=Fe[3];ye&&(ye.includes("e")?rt+=ae.x:ye.includes("w")&&(Ue+=ae.x),ye.includes("n")?Ge+=ae.y:ye.includes("s")&&(it+=ae.y));var lt=[];if(ye)switch(ye){case"e":lt.push([rt,Ge],[rt,it]);break;case"w":lt.push([Ue,Ge],[Ue,it]);break;case"n":lt.push([Ue,Ge],[rt,Ge]);break;case"s":lt.push([Ue,it],[rt,it]);break;case"ne":lt.push([rt,Ge]);break;case"nw":lt.push([Ue,Ge]);break;case"se":lt.push([rt,it]);break;case"sw":lt.push([Ue,it])}var Yt=go(C.zoom.value),jt={x:Yt,y:Yt},ct=[],xt=[];Le(d,lt,C,K,ct,xt,jt);var Mt={x:(F=(T=ct[0])===null||T===void 0?void 0:T.offset)!==null&&F!==void 0?F:0,y:(fe=(Me=xt[0])===null||Me===void 0?void 0:Me.offset)!==null&&fe!==void 0?fe:0};jt.x=0,jt.y=0,ct.length=0,xt.length=0;var Vt=(0,yn.KP)(r).map(function(Nr){return Ne(Nr)}),Ht=(0,E.Z)(Vt,4),Tt=Ht[0],Kt=Ht[1],hr=Ht[2],Mr=Ht[3];return Le(r,[[Tt,Kt],[Tt,Mr],[hr,Kt],[hr,Mr]],C,K,ct,xt,jt),{snapOffset:Mt,snapLines:Qe(ct,xt)}},It=e(7392),Jt=e(9247),Nt=function(){return(0,t.jsxs)("div",{"data-testid":"brave-measure-text-error",children:[(0,t.jsx)("p",{children:(0,t.jsx)(Jt.Z,{i18nKey:"errors.brave_measure_text_error.line1",bold:function(r){return(0,t.jsx)("span",{style:{fontWeight:600},children:r})}})}),(0,t.jsx)("p",{children:(0,t.jsx)(Jt.Z,{i18nKey:"errors.brave_measure_text_error.line2",bold:function(r){return(0,t.jsx)("span",{style:{fontWeight:600},children:r})}})}),(0,t.jsx)("p",{children:(0,t.jsx)(Jt.Z,{i18nKey:"errors.brave_measure_text_error.line3",link:function(r){return(0,t.jsx)("a",{href:"http://docs.excalidraw.com/docs/@excalidraw/excalidraw/faq#turning-off-aggresive-block-fingerprinting-in-brave-browser",children:r})}})}),(0,t.jsx)("p",{children:(0,t.jsx)(Jt.Z,{i18nKey:"errors.brave_measure_text_error.line4",issueLink:function(r){return(0,t.jsx)("a",{href:"https://github.com/excalidraw/excalidraw/issues/new",children:r})},discordLink:function(r){return(0,t.jsxs)("a",{href:"https://discord.gg/UexuTaE",children:[r,"."]})}})})]})},kt=e(6199),nr=e(7766),Bt=function(r){var d=(0,U.useRef)(!1);return(0,U.useEffect)(function(){var C;if(d.current){var K={},ae={},ye={},F={},T={};r.appState.collaborators.forEach(function(Me,je){if(Me.selectedElementIds)for(var Fe=0,Ue=Object.keys(Me.selectedElementIds);Fe<Ue.length;Fe++){var Ge=Ue[Fe];Ge in ye||(ye[Ge]=[]),ye[Ge].push(je)}Me.pointer&&(Me.username&&(F[je]=Me.username),Me.userState&&(T[je]=Me.userState),ae[je]=(0,s._i)({sceneX:Me.pointer.x,sceneY:Me.pointer.y},r.appState),K[je]=Me.button)});var fe=((C=r.containerRef)===null||C===void 0?void 0:C.current)&&getComputedStyle(r.containerRef.current).getPropertyValue("--color-selection")||"#6965db";(0,nr.tp)({canvas:r.canvas,elements:r.elements,visibleElements:r.visibleElements,selectedElements:r.selectedElements,scale:window.devicePixelRatio,appState:r.appState,renderConfig:{remotePointerViewportCoords:ae,remotePointerButton:K,remoteSelectedElementIds:ye,remotePointerUsernames:F,remotePointerUserStates:T,selectionColor:fe,renderScrollbars:!1},callback:r.renderInteractiveSceneCallback},(0,s.G9)())}else d.current=!0}),(0,t.jsx)("canvas",{className:"excalidraw__canvas interactive",style:{width:r.appState.width,height:r.appState.height,cursor:r.appState.viewModeEnabled?f.oc.GRAB:f.oc.AUTO},width:r.appState.width*r.scale,height:r.appState.height*r.scale,ref:r.handleCanvasRef,onContextMenu:r.onContextMenu,onPointerMove:r.onPointerMove,onPointerUp:r.onPointerUp,onPointerCancel:r.onPointerCancel,onTouchMove:r.onTouchMove,onPointerDown:r.onPointerDown,onDoubleClick:r.appState.viewModeEnabled?void 0:r.onDoubleClick,children:(0,R.t)("labels.drawingCanvas")})},ar=function(r){return{zoom:r.zoom,scrollX:r.scrollX,scrollY:r.scrollY,width:r.width,height:r.height,viewModeEnabled:r.viewModeEnabled,editingGroupId:r.editingGroupId,editingLinearElement:r.editingLinearElement,selectedElementIds:r.selectedElementIds,frameToHighlight:r.frameToHighlight,offsetLeft:r.offsetLeft,offsetTop:r.offsetTop,theme:r.theme,pendingImageElementId:r.pendingImageElementId,selectionElement:r.selectionElement,selectedGroupIds:r.selectedGroupIds,selectedLinearElement:r.selectedLinearElement,multiElement:r.multiElement,isBindingEnabled:r.isBindingEnabled,suggestedBindings:r.suggestedBindings,isRotating:r.isRotating,elementsToHighlight:r.elementsToHighlight,openSidebar:r.openSidebar,showHyperlinkPopup:r.showHyperlinkPopup,collaborators:r.collaborators,activeEmbeddable:r.activeEmbeddable,snapLines:r.snapLines,zenModeEnabled:r.zenModeEnabled}},Dt=function(r,d){return r.selectionNonce===d.selectionNonce&&r.versionNonce===d.versionNonce&&r.scale===d.scale&&r.elements===d.elements&&r.visibleElements===d.visibleElements&&r.selectedElements===d.selectedElements&&(0,s.w8)(ar(r.appState),ar(d.appState))},er=le().memo(Bt,Dt),pr=function(r){var d=(0,U.useRef)(null),C=(0,U.useRef)(!1);return(0,U.useEffect)(function(){var K=d.current;if(K){var ae=r.canvas;C.current||(C.current=!0,K.replaceChildren(ae),ae.classList.add("excalidraw__canvas","static"));var ye="".concat(r.appState.width,"px"),F="".concat(r.appState.height,"px");ae.style.width!==ye&&(ae.style.width=ye),ae.style.height!==F&&(ae.style.height=F);var T=r.appState.width*r.scale,fe=r.appState.height*r.scale;ae.width!==T&&(ae.width=T),ae.height!==fe&&(ae.height=fe),(0,nr.AW)({canvas:ae,rc:r.rc,scale:r.scale,elements:r.elements,visibleElements:r.visibleElements,appState:r.appState,renderConfig:r.renderConfig},(0,s.G9)())}}),(0,t.jsx)("div",{className:"excalidraw__canvas-wrapper",ref:d})},yr=function(r){return{zoom:r.zoom,scrollX:r.scrollX,scrollY:r.scrollY,width:r.width,height:r.height,viewModeEnabled:r.viewModeEnabled,offsetLeft:r.offsetLeft,offsetTop:r.offsetTop,theme:r.theme,pendingImageElementId:r.pendingImageElementId,shouldCacheIgnoreZoom:r.shouldCacheIgnoreZoom,viewBackgroundColor:r.viewBackgroundColor,exportScale:r.exportScale,selectedElementsAreBeingDragged:r.selectedElementsAreBeingDragged,gridSize:r.gridSize,frameRendering:r.frameRendering,selectedElementIds:r.selectedElementIds,frameToHighlight:r.frameToHighlight,editingGroupId:r.editingGroupId}},kr=function(r,d){return r.versionNonce===d.versionNonce&&r.scale===d.scale&&r.elements===d.elements&&r.visibleElements===d.visibleElements&&(0,s.w8)(yr(r.appState),yr(d.appState))&&(0,s.w8)(r.renderConfig,d.renderConfig)},dr=le().memo(pr,kr),Dr=function(){function r(d){var C=this;(0,S.Z)(this,r),this.getRenderableElements=(0,s.HP)(function(K){var ae=K.zoom,ye=K.offsetLeft,F=K.offsetTop,T=K.scrollX,fe=K.scrollY,Me=K.height,je=K.width,Fe=K.editingElement,Ue=K.pendingImageElementId,Ge=(K.versionNonce,function(it){var lt=it.editingElement,Yt=it.elements,jt=it.pendingImageElementId;return Yt.filter(function(ct){return!((0,L.pC)(ct)&&jt===ct.id||lt&<.type==="text"&&ct.id===lt.id)})}({elements:C.scene.getNonDeletedElements(),editingElement:Fe,pendingImageElementId:Ue})),rt=function(it){var lt=it.elements,Yt=it.zoom,jt=it.offsetLeft,ct=it.offsetTop,xt=it.scrollX,Mt=it.scrollY,Vt=it.height,Ht=it.width;return lt.filter(function(Tt){return(0,Oe.PZ)(Tt,Ht,Vt,{zoom:Yt,offsetLeft:jt,offsetTop:ct,scrollX:xt,scrollY:Mt})})}({elements:Ge,zoom:ae,offsetLeft:ye,offsetTop:F,scrollX:T,scrollY:fe,height:Me,width:je});return{canvasElements:Ge,visibleElements:rt}}),this.scene=d}return(0,I.Z)(r,[{key:"destroy",value:function(){(0,nr.n_)(),this.getRenderableElements.clear()}}]),r}(),Yr=e(8806),$r=e(4864),Ir=e(8531),Ur=e(5830),Vr={};Vr.styleTagTransform=Ye(),Vr.setAttributes=Ze(),Vr.insert=be().bind(null,"head"),Vr.domAPI=ee(),Vr.insertStyleElement=Ie(),X()(Ur.Z,Vr),Ur.Z&&Ur.Z.locals&&Ur.Z.locals;var Jr="mermaid-to-excalidraw",hn=function(r){var d=r.error;return(0,t.jsxs)("div",{"data-testid":"mermaid-error",className:"mermaid-error",children:["Error! ",(0,t.jsx)("p",{children:d})]})},ln=function(){var r=(0,U.useState)({loaded:!1,api:null}),d=(0,E.Z)(r,2),C=d[0],K=d[1],ae=(0,U.useState)(""),ye=(0,E.Z)(ae,2),F=ye[0],T=ye[1],fe=(0,U.useDeferredValue)(F.trim()),Me=(0,U.useState)(null),je=(0,E.Z)(Me,2),Fe=je[0],Ue=je[1],Ge=(0,U.useRef)(null),rt=(0,U.useRef)({elements:[],files:null}),it=Ci(),lt=function(){var jt=Ge.current;if(jt){var ct=jt.parentElement;ct&&(ct.style.background="",Ue(null),jt.replaceChildren())}};(0,U.useEffect)(function(){var jt=function(){var ct=(0,h.Z)(u().mark(function xt(){var Mt;return u().wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return Vt.next=2,e.e(4736).then(e.bind(e,1049));case 2:Mt=Vt.sent,K({loaded:!0,api:Mt});case 4:case"end":return Vt.stop()}},xt)}));return function(){return ct.apply(this,arguments)}}();jt()},[]),(0,U.useEffect)(function(){var jt=function(){try{var ct=localStorage.getItem(Jr);if(ct)return ct}catch(xt){console.error(xt)}return null}()||`flowchart TD + A[Christmas] -->|Get money| B(Go shopping) + B --> C{Let me think} + C -->|One| D[Laptop] + C -->|Two| E[iPhone] + C -->|Three| F[Car]`;T(jt)},[]),(0,U.useEffect)(function(){var jt=function(){var ct=(0,h.Z)(u().mark(function xt(){var Mt,Vt,Ht,Tt,Kt,hr;return u().wrap(function(Mr){for(;;)switch(Mr.prev=Mr.next){case 0:if(Mt=Ge.current,Vt=Mt?.parentElement,C.loaded&&Mt&&Vt&&C.api){Mr.next=4;break}return Mr.abrupt("return");case 4:if(fe){Mr.next=7;break}return lt(),Mr.abrupt("return");case 7:return Mr.prev=7,Mr.next=10,C.api.parseMermaidToExcalidraw(fe,{fontSize:f.n5});case 10:return Ht=Mr.sent,Tt=Ht.elements,Kt=Ht.files,Ue(null),rt.current={elements:(0,$r.wc)(Tt,{regenerateIds:!0}),files:Kt},Mr.next=17,(0,$r.NL)({elements:rt.current.elements,files:rt.current.files,exportPadding:f.qy,maxWidthOrHeight:Math.max(Vt.offsetWidth,Vt.offsetHeight)*window.devicePixelRatio});case 17:return hr=Mr.sent,Mr.next=20,(0,Ct._c)(hr);case 20:Vt.style.background="var(--default-bg-color)",Mt.replaceChildren(hr),Mr.next=28;break;case 24:Mr.prev=24,Mr.t0=Mr.catch(7),Vt.style.background="var(--default-bg-color)",fe&&Ue(Mr.t0.message);case 28:case"end":return Mr.stop()}},xt,null,[[7,24]])}));return function(){return ct.apply(this,arguments)}}();jt()},[fe,C]);var Yt=function(){it.setOpenDialog(null),function(jt){try{localStorage.setItem(Jr,jt)}catch(ct){console.error(ct)}}(F)};return(0,t.jsx)(Ot.V,{className:"dialog-mermaid",onCloseRequest:Yt,size:1200,title:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"dialog-mermaid-title",children:(0,R.t)("mermaid.title")}),(0,t.jsxs)("span",{className:"dialog-mermaid-desc",children:[(0,t.jsx)(Jt.Z,{i18nKey:"mermaid.description",flowchartLink:function(jt){return(0,t.jsx)("a",{href:"https://mermaid.js.org/syntax/flowchart.html",children:jt})},sequenceLink:function(jt){return(0,t.jsx)("a",{href:"https://mermaid.js.org/syntax/sequenceDiagram.html",children:jt})}}),(0,t.jsx)("br",{})]})]}),children:(0,t.jsxs)("div",{className:"dialog-mermaid-body",children:[(0,t.jsxs)("div",{className:"dialog-mermaid-panels",children:[(0,t.jsxs)("div",{className:"dialog-mermaid-panels-text",children:[(0,t.jsx)("label",{children:(0,R.t)("mermaid.syntax")}),(0,t.jsx)("textarea",{onChange:function(jt){return T(jt.target.value)},value:F})]}),(0,t.jsxs)("div",{className:"dialog-mermaid-panels-preview",children:[(0,t.jsx)("label",{children:(0,R.t)("mermaid.preview")}),(0,t.jsxs)("div",{className:"dialog-mermaid-panels-preview-wrapper",children:[Fe&&(0,t.jsx)(hn,{error:Fe}),C.loaded?(0,t.jsx)("div",{ref:Ge,style:{opacity:Fe?"0.15":1},className:"dialog-mermaid-panels-preview-canvas-container"}):(0,t.jsx)(Ir.Z,{size:"2rem"})]})]})]}),(0,t.jsx)("div",{className:"dialog-mermaid-buttons",children:(0,t.jsxs)(Yr.z,{className:"dialog-mermaid-insert",onSelect:function(){var jt=rt.current,ct=jt.elements,xt=jt.files;it.addElementsFromPasteOrLibrary({elements:ct,files:xt,position:"center",fitToContent:!0}),Yt()},children:[(0,R.t)("mermaid.button"),(0,t.jsx)("span",{children:$.LZ})]})})]})})},kn=e(7930),En={};En.styleTagTransform=Ye(),En.setAttributes=Ze(),En.insert=be().bind(null,"head"),En.domAPI=ee(),En.insertStyleElement=Ie(),X()(kn.Z,En),kn.Z&&kn.Z.locals&&kn.Z.locals;var io=function(r){var d=r.manager,C=(0,U.useRef)(null);return(0,U.useEffect)(function(){return C.current&&d.start(C.current),function(){d.stop()}},[d]),(0,t.jsx)("div",{className:"LaserToolOverlay",children:(0,t.jsx)("svg",{ref:C,className:"LaserToolOverlayCanvas"})})},Gn,So,Mo,po;function jn([r,d,C],[K,ae,ye]){return[r+K,d+ae,C+ye]}function bo([r,d,C],[K,ae,ye]){return[r-K,d-ae,C-ye]}function Pn([r,d,C],K){return[r*K,d*K,C*K]}function lo([r,d,C]){return[r/Math.sqrt(r**2+d**2),d/Math.sqrt(r**2+d**2),C]}function zn([r,d,C],K){return[Math.cos(K)*r-Math.sin(K)*d,Math.sin(K)*r+Math.cos(K)*d,C]}function oa(r,d,C){return Math.atan2(C[1]-r[1],C[0]-r[0])-Math.atan2(d[1]-r[1],d[0]-r[0])}function yo(r){return Math.atan2(Math.sin(r),Math.cos(r))}function aa([r,d]){return Math.sqrt(r**2+d**2)}function co([r,d],[C,K]){return Math.sqrt((C-r)**2+(K-d)**2)}Gn={},So="LaserPointer",Mo=()=>ho,Object.defineProperty(Gn,So,{get:Mo,set:po,enumerable:!0,configurable:!0});function Xa(r,d,C){const K=co(d,C);if(K===0)return co(r,d);const ae=((ye,F,T)=>Math.max(F,Math.min(T,ye)))(((r[0]-d[0])*(C[0]-d[0])+(r[1]-d[1])*(C[1]-d[1]))/K**2,0,1);return co([d[0]+ae*(C[0]-d[0]),d[1]+ae*(C[1]-d[1]),r[2]],r)}function ia(r,d){if(d===0||r.length<=2)return r;const C=r[0],K=r[r.length-1],[ae,ye]=r.reduce(([F,T],fe,Me)=>{const je=Xa(fe,C,K);return je>F?[je,Me]:[F,T]},[0,-1]);if(ae>=d){const F=r[ye];return[...ia([C,...r.slice(1,ye),F],d).slice(0,-1),F,...ia([F,...r.slice(ye,-1),K],d).slice(1)]}return[C,K]}class ho{static#e=(()=>{this.defaults={size:2,streamline:.45,simplify:.1,simplifyPhase:"output",sizeMapping:()=>1}})();static#t=(()=>{this.constants={cornerDetectionMaxAngle:120,cornerDetectionVariance:d=>d>35?.5:1,maxTailLength:50}})();constructor(d){this.originalPoints=[],this.stablePoints=[],this.tailPoints=[],this.isFresh=!0,this.options=Object.assign({},ho.defaults,d)}get lastPoint(){return this.tailPoints[this.tailPoints.length-1]??this.stablePoints[this.stablePoints.length-1]}addPoint(d){const C=this.originalPoints[this.originalPoints.length-1];if(!C||C[0]!==d[0]||C[1]!==d[1]){if(this.originalPoints.push(d),this.isFresh)return this.isFresh=!1,void this.stablePoints.push(d);var K,ae,ye;this.options.streamline>0&&(K=this.lastPoint,ae=d,ye=1-this.options.streamline,d=jn(K,Pn(bo(ae,K),ye))),this.tailPoints.push(d),function(F){if(F.length<2)return 0;let T=0;for(let fe=1;fe<=F.length-1;fe++)T+=co(F[fe-1],F[fe]);return T+=co(F[F.length-2],F[F.length-1]),T}(this.tailPoints)>ho.constants.maxTailLength&&this.stabilizeTail()}}close(){this.stabilizeTail()}stabilizeTail(){if(this.options.simplify>0&&this.options.simplifyPhase=="tail")throw new Error("Not implemented yet");this.stablePoints.push(...this.tailPoints),this.tailPoints=[]}getSize(d,C,K,ae,ye){return(d??this.options.size)*this.options.sizeMapping({pressure:C,runningLength:ye,currentIndex:K,totalLength:ae})}getStrokeOutline(d){if(this.isFresh)return[];let C=[...this.stablePoints,...this.tailPoints];this.options.simplify>0&&this.options.simplifyPhase==="input"&&(C=ia(C,this.options.simplify));const K=C.length;if(K===0)return[];if(K===1){const Ht=C[0],Tt=[];for(let Kt=0;Kt<=2*Math.PI;Kt+=Math.PI/16)Tt.push(jn(Ht,Pn(zn([1,0,0],Kt),this.getSize(d,Ht[2],0,K,0))));return Tt.push(jn(Ht,Pn([1,0,0],this.getSize(d,Ht[2],0,K,0)))),Tt}if(K===2){const Ht=C[0],Tt=C[1],Kt=[],hr=oa(Ht,[Ht[0],Ht[1]-100,Ht[2]],Tt);for(let Mr=hr;Mr<=Math.PI+hr;Mr+=Math.PI/16)Kt.push(jn(Ht,Pn(zn([1,0,0],Mr),this.getSize(d,Ht[2],0,K,0))));for(let Mr=Math.PI+hr;Mr<=2*Math.PI+hr;Mr+=Math.PI/16)Kt.push(jn(Tt,Pn(zn([1,0,0],Mr),this.getSize(d,Tt[2],0,K,0))));return Kt.push(Kt[0]),Kt}const ae=[],ye=[];let F=0,T=0,fe=0,Me=0;for(let Ht=1;Ht<K-1;Ht++){const Tt=C[Ht-1],Kt=C[Ht],hr=C[Ht+1];let Mr=Kt[2];const Nr=co(Tt,Kt);Me+=Nr,F=T+.2*(Nr-T);const Kr=this.getSize(d,Mr,Ht,K,Me);if(Kr===0){fe=Ht+1;continue}const tn=lo(bo(Tt,Kt)),Qr=lo(bo(hr,Kt)),Pr=zn(tn,Math.PI/2),on=zn(tn,-Math.PI/2),Br=zn(Qr,Math.PI/2),en=zn(Qr,-Math.PI/2),gn=jn(Kt,Pn(Pr,Kr)),xn=jn(Kt,Pn(on,Kr)),pn=jn(Kt,Pn(Br,Kr)),Tn=jn(Kt,Pn(en,Kr)),Xr=jn(Pr,en),cn=jn(on,Br),Wn=jn(Kt,Pn(aa(Xr)===0?tn:lo(Xr),Kr)),In=jn(Kt,Pn(aa(cn)===0?Qr:lo(cn),Kr)),Fn=yo(oa(Kt,Tt,hr)),vn=ho.constants.cornerDetectionMaxAngle/180*Math.PI*ho.constants.cornerDetectionVariance(F);if(Math.abs(Fn)<vn){const Nn=Math.abs(yo(Math.PI-Fn));if(Nn===0)continue;if(Fn<0){ye.push(xn,In);for(let Dn=0;Dn<=Nn;Dn+=Nn/4)ae.push(jn(Kt,zn(Pn(Pr,Kr),Dn)));for(let Dn=Nn;Dn>=0;Dn-=Nn/4)ye.push(jn(Kt,zn(Pn(Pr,Kr),Dn)));ye.push(In,pn)}else{ae.push(gn,Wn);for(let Dn=0;Dn<=Nn;Dn+=Nn/4)ye.push(jn(Kt,zn(Pn(Pr,-Kr),-Dn)));for(let Dn=Nn;Dn>=0;Dn-=Nn/4)ae.push(jn(Kt,zn(Pn(Pr,-Kr),-Dn)));ae.push(Wn,Tn)}}else ae.push(Wn),ye.push(In);T=F}const je=C[fe],Fe=C[fe+1],Ue=C[K-2],Ge=C[K-1];if(fe>=K-2)return[];const rt=lo(bo(Fe,je)),it=lo(bo(Ue,Ge)),lt=zn(rt,-Math.PI/2),Yt=zn(it,Math.PI/2),jt=this.getSize(d,je[2],0,K,0),ct=[],xt=this.getSize(d,Ue[2],K-2,K,Me),Mt=[];for(let Ht=0;Ht<=Math.PI;Ht+=Math.PI/16)ct.unshift(jn(je,zn(Pn(lt,jt),-Ht)));ct.unshift(jn(je,Pn(lt,-jt)));for(let Ht=0;Ht<=Math.PI;Ht+=Math.PI/16)Mt.push(jn(Ge,zn(Pn(Yt,-xt),-Ht)));const Vt=[...ct,...ae,...Mt.reverse(),...ye.reverse()];return ct.length>0&&Vt.push(ct[0]),this.options.simplify>0&&this.options.simplifyPhase==="output"?ia(Vt,this.options.simplify):Vt}}var ki=e(957);function qa(r,d){var C=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!C){if(Array.isArray(r)||(C=function(fe,Me){if(fe){if(typeof fe=="string")return $a(fe,Me);var je=Object.prototype.toString.call(fe).slice(8,-1);if(je==="Object"&&fe.constructor&&(je=fe.constructor.name),je==="Map"||je==="Set")return Array.from(fe);if(je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je))return $a(fe,Me)}}(r))||d&&r&&typeof r.length=="number"){C&&(r=C);var K=0,ae=function(){};return{s:ae,n:function(){return K>=r.length?{done:!0}:{done:!1,value:r[K++]}},e:function(fe){throw fe},f:ae}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ye,F=!0,T=!1;return{s:function(){C=C.call(r)},n:function(){var fe=C.next();return F=fe.done,fe},e:function(fe){T=!0,ye=fe},f:function(){try{F||C.return==null||C.return()}finally{if(T)throw ye}}}}function $a(r,d){(d==null||d>r.length)&&(d=r.length);for(var C=0,K=new Array(d);C<d;C++)K[C]=r[C];return K}var Ja=1e3,la=function(r,d){return(r+d)/2};function Qa(r){return 1-Math.pow(1-r,3)}function jo(){return{currentPath:void 0,finishedPaths:[],lastPoint:[-1e4,-1e4],svg:document.createElementNS("http://www.w3.org/2000/svg","path")}}function Lo(){return ho.constants.cornerDetectionMaxAngle=70,new ho({simplify:0,streamline:.4,sizeMapping:function(r){var d=Math.max(0,1-(performance.now()-r.pressure)/1e3),C=(50-Math.min(50,r.totalLength-r.currentIndex))/50;return Math.min(Qa(C),Qa(d))}})}var ei=function(){function r(d){(0,S.Z)(this,r),this.app=d,this.collaboratorsState=new Map,this.isDrawing=!1,this.isRunning=!1,this.ownState=jo()}return(0,I.Z)(r,[{key:"destroy",value:function(){this.stop(),this.isDrawing=!1,this.ownState=jo(),this.collaboratorsState=new Map}},{key:"startPath",value:function(d,C){this.ownState.currentPath=Lo(),this.ownState.currentPath.addPoint([d,C,performance.now()]),this.updatePath(this.ownState)}},{key:"addPointToPath",value:function(d,C){var K;this.ownState.currentPath&&((K=this.ownState.currentPath)===null||K===void 0||K.addPoint([d,C,performance.now()]),this.updatePath(this.ownState))}},{key:"endPath",value:function(){this.ownState.currentPath&&(this.ownState.currentPath.close(),this.ownState.finishedPaths.push(this.ownState.currentPath),this.updatePath(this.ownState))}},{key:"updatePath",value:function(d){this.isDrawing=!0,this.isRunning||this.start()}},{key:"start",value:function(d){d&&(this.container=d,this.container.appendChild(this.ownState.svg)),this.stop(),this.isRunning=!0,this.loop()}},{key:"stop",value:function(){this.isRunning=!1,this.rafId&&cancelAnimationFrame(this.rafId),this.rafId=void 0}},{key:"loop",value:function(){this.rafId=requestAnimationFrame(this.loop.bind(this)),this.updateCollabolatorsState(),this.isDrawing?this.update():this.isRunning=!1}},{key:"draw",value:function(d){var C=this;return function(K){var ae=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],ye=K.length;if(ye<4)return"";for(var F=K[0],T=K[1],fe=K[2],Me="M".concat(F[0].toFixed(2),",").concat(F[1].toFixed(2)," Q").concat(T[0].toFixed(2),",").concat(T[1].toFixed(2)," ").concat(la(T[0],fe[0]).toFixed(2),",").concat(la(T[1],fe[1]).toFixed(2)," T"),je=2,Fe=ye-1;je<Fe;je++)F=K[je],T=K[je+1],Me+="".concat(la(F[0],T[0]).toFixed(2),",").concat(la(F[1],T[1]).toFixed(2)," ");return ae&&(Me+="Z"),Me}(d.getStrokeOutline(d.options.size/this.app.state.zoom.value).map(function(K){var ae=(0,E.Z)(K,2),ye=ae[0],F=ae[1],T=(0,s._i)({sceneX:ye,sceneY:F},C.app.state);return[T.x,T.y]}),!0)}},{key:"updateCollabolatorsState",value:function(){if(this.container&&this.app.state.collaborators.size){var d,C=qa(this.app.state.collaborators.entries());try{for(C.s();!(d=C.n()).done;){var K=(0,E.Z)(d.value,2),ae=K[0],ye=K[1];if(!this.collaboratorsState.has(ae)){var F=jo();this.container.appendChild(F.svg),this.collaboratorsState.set(ae,F),this.updatePath(F)}var T=this.collaboratorsState.get(ae);ye.pointer&&ye.pointer.tool==="laser"&&(ye.button==="down"&&T.currentPath===void 0&&(T.lastPoint=[ye.pointer.x,ye.pointer.y],T.currentPath=Lo(),T.currentPath.addPoint([ye.pointer.x,ye.pointer.y,performance.now()]),this.updatePath(T)),ye.button==="down"&&T.currentPath!==void 0&&(ye.pointer.x===T.lastPoint[0]&&ye.pointer.y===T.lastPoint[1]||(T.lastPoint=[ye.pointer.x,ye.pointer.y],T.currentPath.addPoint([ye.pointer.x,ye.pointer.y,performance.now()]),this.updatePath(T))),ye.button==="up"&&T.currentPath!==void 0&&(T.lastPoint=[ye.pointer.x,ye.pointer.y],T.currentPath.addPoint([ye.pointer.x,ye.pointer.y,performance.now()]),T.currentPath.close(),T.finishedPaths.push(T.currentPath),T.currentPath=void 0,this.updatePath(T)))}}catch(fe){C.e(fe)}finally{C.f()}}}},{key:"update",value:function(){var d=this;if(this.container){var C,K=!1,ae=qa(this.collaboratorsState.entries());try{for(ae.s();!(C=ae.n()).done;){var ye=(0,E.Z)(C.value,2),F=ye[0],T=ye[1];if(this.app.state.collaborators.has(F)){T.finishedPaths=T.finishedPaths.filter(function(je){var Fe=je.originalPoints[je.originalPoints.length-1];return!(Fe&&Fe[2]<performance.now()-Ja)});var fe=T.finishedPaths.map(function(je){return d.draw(je)}).join(" ");T.currentPath&&(fe+=" ".concat(this.draw(T.currentPath))),fe.trim()&&(K=!0),T.svg.setAttribute("d",fe),T.svg.setAttribute("fill",(0,ki.G)(F))}else T.svg.remove(),this.collaboratorsState.delete(F)}}catch(je){ae.e(je)}finally{ae.f()}this.ownState.finishedPaths=this.ownState.finishedPaths.filter(function(je){var Fe=je.originalPoints[je.originalPoints.length-1];return!(Fe&&Fe[2]<performance.now()-Ja)});var Me=this.ownState.finishedPaths.map(function(je){return d.draw(je)}).join(" ");this.ownState.currentPath&&(Me+=" ".concat(this.draw(this.ownState.currentPath))),(Me=Me.trim())&&(K=!0),this.ownState.svg.setAttribute("d",Me),this.ownState.svg.setAttribute("fill","red"),K||(this.isDrawing=!1)}}}]),r}(),Hn=function(){function r(d){var C;(0,S.Z)(this,r),this.subscribers=[],this.updateOnChangeOnly=(C=d?.updateOnChangeOnly)!==null&&C!==void 0&&C,this.value=d?.initialState}return(0,I.Z)(r,[{key:"on",value:function(){for(var d,C=this,K=arguments.length,ae=new Array(K),ye=0;ye<K;ye++)ae[ye]=arguments[ye];var F=ae.flat().filter(function(T){return typeof T=="function"});return(d=this.subscribers).push.apply(d,(0,y.Z)(F)),function(){return C.off(F)}}},{key:"off",value:function(){for(var d=arguments.length,C=new Array(d),K=0;K<d;K++)C[K]=arguments[K];var ae=C.flat();this.subscribers=this.subscribers.filter(function(ye){return!ae.includes(ye)})}},{key:"trigger",value:function(){for(var d=arguments.length,C=new Array(d),K=0;K<d;K++)C[K]=arguments[K];return this.updateOnChangeOnly&&this.value===C?[]:(this.value=C,this.subscribers.map(function(ae){return ae.apply(void 0,C)}))}},{key:"destroy",value:function(){this.subscribers=[],this.value=void 0}}]),r}();function xo(r,d){var C=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!C){if(Array.isArray(r)||(C=function(fe,Me){if(fe){if(typeof fe=="string")return Zo(fe,Me);var je=Object.prototype.toString.call(fe).slice(8,-1);if(je==="Object"&&fe.constructor&&(je=fe.constructor.name),je==="Map"||je==="Set")return Array.from(fe);if(je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je))return Zo(fe,Me)}}(r))||d&&r&&typeof r.length=="number"){C&&(r=C);var K=0,ae=function(){};return{s:ae,n:function(){return K>=r.length?{done:!0}:{done:!1,value:r[K++]}},e:function(fe){throw fe},f:ae}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ye,F=!0,T=!1;return{s:function(){C=C.call(r)},n:function(){var fe=C.next();return F=fe.done,fe},e:function(fe){T=!0,ye=fe},f:function(){try{F||C.return==null||C.return()}finally{if(T)throw ye}}}}function Zo(r,d){(d==null||d>r.length)&&(d=r.length);for(var C=0,K=new Array(d);C<d;C++)K[C]=r[C];return K}function ti(r){var d=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var C,K=(0,Z.Z)(r);if(d){var ae=(0,Z.Z)(this).constructor;C=Reflect.construct(K,arguments,ae)}else C=K.apply(this,arguments);return(0,M.Z)(this,C)}}function ca(r,d){var C=Object.keys(r);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(r);d&&(K=K.filter(function(ae){return Object.getOwnPropertyDescriptor(r,ae).enumerable})),C.push.apply(C,K)}return C}function Zt(r){for(var d=1;d<arguments.length;d++){var C=arguments[d]!=null?arguments[d]:{};d%2?ca(Object(C),!0).forEach(function(K){(0,H.Z)(r,K,C[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(C)):ca(Object(C)).forEach(function(K){Object.defineProperty(r,K,Object.getOwnPropertyDescriptor(C,K))})}return r}var sa=le().createContext(null),ua=le().createContext(null),da={viewport:{isMobile:!1,isLandscape:!1},editor:{isMobile:!1,canFitSidebar:!1},isTouchScreen:!1},fa=le().createContext(da);fa.displayName="DeviceContext";var Ei=le().createContext({container:null,id:null});Ei.displayName="ExcalidrawContainerContext";var Si=le().createContext([]);Si.displayName="ExcalidrawElementsContext";var ji=le().createContext(Zt(Zt({},(0,k.im)()),{},{width:0,height:0,offsetLeft:0,offsetTop:0}));ji.displayName="ExcalidrawAppStateContext";var _i=le().createContext(function(){console.warn("unitialized ExcalidrawSetAppStateContext context!")});_i.displayName="ExcalidrawSetAppStateContext";var Oi=le().createContext(null);Oi.displayName="ExcalidrawActionManagerContext";var Ci=function(){return(0,U.useContext)(sa)},Gi=function(){return(0,U.useContext)(ua)},ri=function(){return(0,U.useContext)(fa)},Ii=function(){return(0,U.useContext)(Ei)},Yi=function(){return(0,U.useContext)(Si)},Vi=function(){return(0,U.useContext)(ji)},Xi=function(){return(0,U.useContext)(_i)},Mi=function(){return(0,U.useContext)(Oi)},qi=typeof window<"u"&&"ResizeObserver"in window,Sa=!1,Pi=0,Vo=!1,ja=!1,Ti=!1,Di={horizontal:null,vertical:null},Ro=0,_a=!1,Ai=new Map,Li=!1,$i=0,Ji=!1,zo=null,fn={pointers:new Map,lastCenter:null,initialDistance:null,initialScale:null},Zi=function(r){(0,n.Z)(ye,r);var d,C,K,ae=ti(ye);function ye(F){var T;(0,S.Z)(this,ye),T=ae.call(this,F),tl.call((0,v.Z)(T));var fe,Me=(0,k.im)(),je=F.excalidrawAPI,Fe=F.viewModeEnabled,Ue=Fe!==void 0&&Fe,Ge=F.zenModeEnabled,rt=Ge!==void 0&&Ge,it=F.gridModeEnabled,lt=it!==void 0&&it,Yt=F.objectsSnapModeEnabled,jt=Yt!==void 0&&Yt,ct=F.theme,xt=ct===void 0?Me.theme:ct,Mt=F.name,Vt=Mt===void 0?Me.name:Mt;if(T.state=Zt(Zt(Zt({},Me),{},{theme:xt,isLoading:!0},T.getCanvasOffsets()),{},{viewModeEnabled:Ue,zenModeEnabled:rt,objectsSnapModeEnabled:jt,gridSize:lt?f.k:null,name:Vt,width:window.innerWidth,height:window.innerHeight}),T.id=(0,oe.x0)(),T.library=new G.ZP((0,v.Z)(T)),T.scene=new q.Z,T.canvas=document.createElement("canvas"),T.rc=he.Z.canvas(T.canvas),T.renderer=new Dr(T.scene),je){var Ht={updateScene:T.updateScene,updateLibrary:T.library.updateLibrary,addFiles:T.addFiles,resetScene:T.resetScene,getSceneElementsIncludingDeleted:T.getSceneElementsIncludingDeleted,history:{clear:T.resetHistory},scrollToContent:T.scrollToContent,getSceneElements:T.getSceneElements,getAppState:function(){return T.state},getFiles:function(){return T.files},refresh:T.refresh,setToast:T.setToast,id:T.id,setActiveTool:T.setActiveTool,setCursor:T.setCursor,resetCursor:T.resetCursor,updateFrameRendering:T.updateFrameRendering,toggleSidebar:T.toggleSidebar,onChange:function(Tt){return T.onChangeEmitter.on(Tt)},onPointerDown:function(Tt){return T.onPointerDownEmitter.on(Tt)},onPointerUp:function(Tt){return T.onPointerUpEmitter.on(Tt)}};typeof je=="function"?je(Ht):console.error("excalidrawAPI should be a function!")}return T.excalidrawContainerValue={container:T.excalidrawContainerRef.current,id:T.id},T.fonts=new Ha({scene:T.scene,onSceneUpdated:T.onSceneUpdated}),T.history=new _e,T.actionManager=new z(T.syncActionResult,function(){return T.state},function(){return T.scene.getElementsIncludingDeleted()},(0,v.Z)(T)),T.actionManager.registerAll(j.N),T.actionManager.registerAction((fe=T.history,{name:"undo",trackEvent:{category:"history"},perform:function(Tt,Kt){return a(Tt,Kt,function(){return fe.undoOnce()})},keyTest:function(Tt){return Tt[_.tW.CTRL_OR_CMD]&&Tt.key.toLowerCase()===_.tW.Z&&!Tt.shiftKey},PanelComponent:function(Tt){var Kt=Tt.updateData,hr=Tt.data;return(0,t.jsx)(b.V,{type:"button",icon:$.UE,"aria-label":(0,R.t)("buttons.undo"),onClick:Kt,size:hr?.size||"medium"})},commitToHistory:function(){return!1}})),T.actionManager.registerAction(function(Tt){return{name:"redo",trackEvent:{category:"history"},perform:function(Kt,hr){return a(Kt,hr,function(){return Tt.redoOnce()})},keyTest:function(Kt){return Kt[_.tW.CTRL_OR_CMD]&&Kt.shiftKey&&Kt.key.toLowerCase()===_.tW.Z||f.ED&&Kt.ctrlKey&&!Kt.shiftKey&&Kt.key===_.tW.Y},PanelComponent:function(Kt){var hr=Kt.updateData,Mr=Kt.data;return(0,t.jsx)(b.V,{type:"button",icon:$.zG,"aria-label":(0,R.t)("buttons.redo"),onClick:hr,size:Mr?.size||"medium"})},commitToHistory:function(){return!1}}}(T.history)),T}return(0,I.Z)(ye,[{key:"onWindowMessage",value:function(F){if(F.origin==="https://player.vimeo.com"||F.origin==="https://www.youtube.com"){var T=null;try{T=JSON.parse(F.data)}catch{}if(T)switch(F.origin){case"https://player.vimeo.com":if(T.method==="paused"){var fe,Me=null,je=document.body.querySelectorAll("iframe.excalidraw__embeddable");if(!je)break;var Fe,Ue=xo(je);try{for(Ue.s();!(Fe=Ue.n()).done;){var Ge=Fe.value;Ge.contentWindow===F.source&&(Me=Ge.contentWindow)}}catch(lt){Ue.e(lt)}finally{Ue.f()}(fe=Me)===null||fe===void 0||fe.postMessage(JSON.stringify({method:T.value?"play":"pause",value:!0}),"*")}break;case"https://www.youtube.com":if(T.event==="infoDelivery"&&T.info&&T.id&&typeof T.info.playerState=="number"){var rt=T.id,it=T.info.playerState;Object.values(f.vf).includes(it)&&Ai.set(rt,it)}}}}},{key:"updateEmbeddableRef",value:function(F,T){T&&this.iFrameRefs.set(F,T)}},{key:"getHTMLIFrameElement",value:function(F){return this.iFrameRefs.get(F)}},{key:"handleEmbeddableCenterClick",value:function(F){var T,fe,Me,je,Fe=this;if(((T=this.state.activeEmbeddable)===null||T===void 0?void 0:T.element)!==F||((fe=this.state.activeEmbeddable)===null||fe===void 0?void 0:fe.state)!=="active"){setTimeout(function(){Fe.setState({activeEmbeddable:{element:F,state:"active"},selectedElementIds:(0,H.Z)({},F.id,!0),draggingElement:null,selectionElement:null})},100);var Ue=this.getHTMLIFrameElement(F.id);if(Ue!=null&&Ue.contentWindow){if(Ue.src.includes("youtube")){var Ge=Ai.get(F.id);switch(Ge||(Ai.set(F.id,f.vf.UNSTARTED),Ue.contentWindow.postMessage(JSON.stringify({event:"listening",id:F.id}),"*")),Ge){case f.vf.PLAYING:case f.vf.BUFFERING:(Me=Ue.contentWindow)===null||Me===void 0||Me.postMessage(JSON.stringify({event:"command",func:"pauseVideo",args:""}),"*");break;default:(je=Ue.contentWindow)===null||je===void 0||je.postMessage(JSON.stringify({event:"command",func:"playVideo",args:""}),"*")}}Ue.src.includes("player.vimeo.com")&&Ue.contentWindow.postMessage(JSON.stringify({method:"paused"}),"*")}}}},{key:"isEmbeddableCenter",value:function(F,T,fe,Me){var je,Fe;return F&&!T.altKey&&!T.shiftKey&&!T.metaKey&&!T.ctrlKey&&(((je=this.state.activeEmbeddable)===null||je===void 0?void 0:je.element)!==F||((Fe=this.state.activeEmbeddable)===null||Fe===void 0?void 0:Fe.state)==="hover"||!this.state.activeEmbeddable)&&fe>=F.x+F.width/3&&fe<=F.x+2*F.width/3&&Me>=F.y+F.height/3&&Me<=F.y+2*F.height/3}},{key:"renderEmbeddables",value:function(){var F=this,T=this.state.zoom.value,fe=this.state.width,Me=this.state.height,je=this.scene.getNonDeletedElements().filter(function(Fe){return(0,L.gs)(Fe)&&!!Fe.validated});return(0,t.jsx)(t.Fragment,{children:je.map(function(Fe){var Ue,Ge,rt,it,lt,Yt,jt,ct,xt=(0,s._i)({sceneX:Fe.x,sceneY:Fe.y},F.state),Mt=xt.x,Vt=xt.y,Ht=(0,p.LM)((0,Ko.ye)(Fe.link||"")),Tt=(0,Oe.PZ)(Fe,fe,Me,F.state),Kt=((Ue=F.state.activeEmbeddable)===null||Ue===void 0?void 0:Ue.element)===Fe&&((Ge=F.state.activeEmbeddable)===null||Ge===void 0?void 0:Ge.state)==="active",hr=((rt=F.state.activeEmbeddable)===null||rt===void 0?void 0:rt.element)===Fe&&((it=F.state.activeEmbeddable)===null||it===void 0?void 0:it.state)==="hover";return(0,t.jsx)("div",{className:(0,pe.Z)("excalidraw__embeddable-container",{"is-hovered":hr}),style:(0,H.Z)({transform:Tt?"translate(".concat(Mt-F.state.offsetLeft,"px, ").concat(Vt-F.state.offsetTop,"px) scale(").concat(T,")"):"none",display:Tt?"block":"none",opacity:Fe.opacity/100},"--embeddable-radius","".concat((0,J.yW)(Math.min(Fe.width,Fe.height),Fe),"px")),children:(0,t.jsxs)("div",{className:"excalidraw__embeddable-container__inner",style:{width:Tt?"".concat(Fe.width,"px"):0,height:Tt?"".concat(Fe.height,"px"):0,transform:Tt?"rotate(".concat(Fe.angle,"rad)"):"none",pointerEvents:Kt?f.XI.enabled:f.XI.disabled},children:[hr&&(0,t.jsx)("div",{className:"excalidraw__embeddable-hint",children:(0,R.t)("buttons.embeddableInteractionButton")}),(0,t.jsx)("div",{className:"excalidraw__embeddable__outer",style:{padding:"".concat(Fe.strokeWidth,"px")},children:(lt=(Yt=(jt=F.props).renderEmbeddable)===null||Yt===void 0?void 0:Yt.call(jt,Fe,F.state))!==null&<!==void 0?lt:(0,t.jsx)("iframe",{ref:function(Mr){return F.updateEmbeddableRef(Fe.id,Mr)},className:"excalidraw__embeddable",srcDoc:Ht?.type==="document"?Ht.srcdoc(F.state.theme):void 0,src:Ht?.type!=="document"?(ct=Ht?.link)!==null&&ct!==void 0?ct:"":void 0,scrolling:"no",referrerPolicy:"no-referrer-when-downgrade",title:"Excalidraw Embedded Content",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,sandbox:"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-presentation allow-downloads"})})]})},Fe.id)})})}},{key:"render",value:function(){var F,T,fe,Me=this,je=this.scene.getSelectedElements(this.state),Fe=this.props,Ue=Fe.renderTopRightUI,Ge=Fe.renderCustomStats,rt=this.scene.getVersionNonce(),it=this.renderer.getRenderableElements({versionNonce:rt,zoom:this.state.zoom,offsetLeft:this.state.offsetLeft,offsetTop:this.state.offsetTop,scrollX:this.state.scrollX,scrollY:this.state.scrollY,height:this.state.height,width:this.state.width,editingElement:this.state.editingElement,pendingImageElementId:this.state.pendingImageElementId}),lt=it.canvasElements,Yt=it.visibleElements,jt=!(this.state.editingElement&&(0,L.bt)(this.state.editingElement))&&(this.state.selectionElement||this.state.draggingElement||this.state.resizingElement||this.state.activeTool.type==="laser"&&this.state.cursorButton==="down"||this.state.editingElement&&!(0,V.iB)(this.state.editingElement));return(0,t.jsx)("div",{className:(0,pe.Z)("excalidraw excalidraw-container",{"excalidraw--view-mode":this.state.viewModeEnabled,"excalidraw--mobile":this.device.editor.isMobile}),style:(0,H.Z)({},"--ui-pointerEvents",jt?f.XI.disabled:f.XI.enabled),ref:this.excalidrawContainerRef,onDrop:this.handleAppOnDrop,tabIndex:0,onKeyDown:this.props.handleKeyboardGlobally?void 0:this.onKeyDown,children:(0,t.jsx)(sa.Provider,{value:this,children:(0,t.jsx)(ua.Provider,{value:this.props,children:(0,t.jsx)(Ei.Provider,{value:this.excalidrawContainerValue,children:(0,t.jsx)(fa.Provider,{value:this.device,children:(0,t.jsx)(_i.Provider,{value:this.setAppState,children:(0,t.jsx)(ji.Provider,{value:this.state,children:(0,t.jsxs)(Si.Provider,{value:this.scene.getNonDeletedElements(),children:[(0,t.jsxs)(Oi.Provider,{value:this.actionManager,children:[(0,t.jsxs)(hi,{canvas:this.canvas,appState:this.state,files:this.files,setAppState:this.setAppState,actionManager:this.actionManager,elements:this.scene.getNonDeletedElements(),onLockToggle:this.toggleLock,onPenModeToggle:this.togglePenMode,onHandToolToggle:this.onHandToolToggle,langCode:(0,R.G3)().code,renderTopRightUI:Ue,renderCustomStats:Ge,showExitZenModeBtn:((F=this.props)===null||F===void 0?void 0:F.zenModeEnabled)===void 0&&this.state.zenModeEnabled,UIOptions:this.props.UIOptions,onExportImage:this.onExportImage,renderWelcomeScreen:!this.state.isLoading&&this.state.showWelcomeScreen&&this.state.activeTool.type==="selection"&&!this.state.zenModeEnabled&&!this.scene.getElementsIncludingDeleted().length,app:this,isCollaborating:this.props.isCollaborating,children:[this.props.children,this.state.openDialog==="mermaid"&&(0,t.jsx)(ln,{})]}),(0,t.jsx)("div",{className:"excalidraw-textEditorContainer"}),(0,t.jsx)("div",{className:"excalidraw-contextMenuContainer"}),(0,t.jsx)("div",{className:"excalidraw-eye-dropper-container"}),(0,t.jsx)(io,{manager:this.laserPathManager}),je.length===1&&!this.state.contextMenu&&this.state.showHyperlinkPopup&&(0,t.jsx)(Io.nW,{element:je[0],setAppState:this.setAppState,onLinkOpen:this.props.onLinkOpen,setToast:this.setToast},je[0].id),this.state.toast!==null&&(0,t.jsx)(mi,{message:this.state.toast.message,onClose:function(){return Me.setToast(null)},duration:this.state.toast.duration,closable:this.state.toast.closable}),this.state.contextMenu&&(0,t.jsx)(He,{items:this.state.contextMenu.items,top:this.state.contextMenu.top,left:this.state.contextMenu.left,actionManager:this.actionManager,onClose:function(ct){Me.setState({contextMenu:null},function(){Me.focusContainer(),ct?.()})}}),(0,t.jsx)(dr,{canvas:this.canvas,rc:this.rc,elements:lt,visibleElements:Yt,versionNonce:rt,selectionNonce:(T=this.state.selectionElement)===null||T===void 0?void 0:T.versionNonce,scale:window.devicePixelRatio,appState:this.state,renderConfig:{imageCache:this.imageCache,isExporting:!1,renderGrid:!0}}),(0,t.jsx)(er,{containerRef:this.excalidrawContainerRef,canvas:this.interactiveCanvas,elements:lt,visibleElements:Yt,selectedElements:je,versionNonce:rt,selectionNonce:(fe=this.state.selectionElement)===null||fe===void 0?void 0:fe.versionNonce,scale:window.devicePixelRatio,appState:this.state,renderInteractiveSceneCallback:this.renderInteractiveSceneCallback,handleCanvasRef:this.handleInteractiveCanvasRef,onContextMenu:this.handleCanvasContextMenu,onPointerMove:this.handleCanvasPointerMove,onPointerUp:this.handleCanvasPointerUp,onPointerCancel:this.removePointer,onTouchMove:this.handleTouchMove,onPointerDown:this.handleCanvasPointerDown,onDoubleClick:this.handleCanvasDoubleClick}),this.renderFrameNames()]}),this.renderEmbeddables()]})})})})})})})})}},{key:"componentDidMount",value:(K=(0,h.Z)(u().mark(function F(){var T,fe=this;return u().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:this.unmounted=!1,this.excalidrawContainerValue.container=this.excalidrawContainerRef.current,f.Vi.TEST==="production"&&(this.setState.bind(this),Object.defineProperties(window.h,{state:{configurable:!0,get:function(){return fe.state}},setState:{configurable:!0,value:function(){return fe.setState.apply(fe,arguments)}},app:{configurable:!0,value:this},history:{configurable:!0,value:this.history}})),this.scene.addCallback(this.onSceneUpdated),this.addEventListeners(),this.props.autoFocus&&this.excalidrawContainerRef.current&&this.focusContainer(),(0,s.h2)()||(this.refreshViewportBreakpoints(),this.refreshEditorBreakpoints()),qi&&this.excalidrawContainerRef.current&&(this.resizeObserver=new ResizeObserver(function(){fe.refreshEditorBreakpoints(),fe.updateDOMRect()}),(T=this.resizeObserver)===null||T===void 0||T.observe(this.excalidrawContainerRef.current)),new URLSearchParams(window.location.search.slice(1)).has("web-share-target")?this.restoreFileFromShare():this.updateDOMRect(this.initializeScene),(0,f.jP)()&&!(0,et.eB)()&&this.setState({errorMessage:(0,t.jsx)(Nt,{})});case 11:case"end":return Me.stop()}},F,this)})),function(){return K.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){var F;this.renderer.destroy(),this.scene=new q.Z,this.renderer=new Dr(this.scene),this.files={},this.imageCache.clear(),(F=this.resizeObserver)===null||F===void 0||F.disconnect(),this.unmounted=!0,this.removeEventListeners(),this.scene.destroy(),this.library.destroy(),this.laserPathManager.destroy(),this.onChangeEmitter.destroy(),Eo.R.destroy(),Cn.destroy(),clearTimeout(Ro),ke.N.clearCache(),We.bO.clearCache(),Ro=0}},{key:"removeEventListeners",value:function(){var F,T,fe,Me;document.removeEventListener(f.Ks.POINTER_UP,this.removePointer),document.removeEventListener(f.Ks.COPY,this.onCopy),document.removeEventListener(f.Ks.PASTE,this.pasteFromClipboard),document.removeEventListener(f.Ks.CUT,this.onCut),(F=this.excalidrawContainerRef.current)===null||F===void 0||F.removeEventListener(f.Ks.WHEEL,this.onWheel),(T=this.nearestScrollableContainer)===null||T===void 0||T.removeEventListener(f.Ks.SCROLL,this.onScroll),document.removeEventListener(f.Ks.KEYDOWN,this.onKeyDown,!1),document.removeEventListener(f.Ks.MOUSE_MOVE,this.updateCurrentCursorPosition,!1),document.removeEventListener(f.Ks.KEYUP,this.onKeyUp),window.removeEventListener(f.Ks.RESIZE,this.onResize,!1),window.removeEventListener(f.Ks.UNLOAD,this.onUnload,!1),window.removeEventListener(f.Ks.BLUR,this.onBlur,!1),(fe=this.excalidrawContainerRef.current)===null||fe===void 0||fe.removeEventListener(f.Ks.DRAG_OVER,this.disableEvent,!1),(Me=this.excalidrawContainerRef.current)===null||Me===void 0||Me.removeEventListener(f.Ks.DROP,this.disableEvent,!1),document.removeEventListener(f.Ks.GESTURE_START,this.onGestureStart,!1),document.removeEventListener(f.Ks.GESTURE_CHANGE,this.onGestureChange,!1),document.removeEventListener(f.Ks.GESTURE_END,this.onGestureEnd,!1),window.removeEventListener(f.Ks.MESSAGE,this.onWindowMessage,!1)}},{key:"addEventListeners",value:function(){var F,T,fe,Me,je,Fe=this;this.removeEventListeners(),window.addEventListener(f.Ks.MESSAGE,this.onWindowMessage,!1),document.addEventListener(f.Ks.POINTER_UP,this.removePointer),document.addEventListener(f.Ks.COPY,this.onCopy),(F=this.excalidrawContainerRef.current)===null||F===void 0||F.addEventListener(f.Ks.WHEEL,this.onWheel,{passive:!1}),this.props.handleKeyboardGlobally&&document.addEventListener(f.Ks.KEYDOWN,this.onKeyDown,!1),document.addEventListener(f.Ks.KEYUP,this.onKeyUp,{passive:!0}),document.addEventListener(f.Ks.MOUSE_MOVE,this.updateCurrentCursorPosition),(T=document.fonts)===null||T===void 0||(fe=T.addEventListener)===null||fe===void 0||fe.call(T,"loadingdone",function(Ue){var Ge=Ue.fontfaces;Fe.fonts.onFontsLoaded(Ge)}),document.addEventListener(f.Ks.GESTURE_START,this.onGestureStart,!1),document.addEventListener(f.Ks.GESTURE_CHANGE,this.onGestureChange,!1),document.addEventListener(f.Ks.GESTURE_END,this.onGestureEnd,!1),this.state.viewModeEnabled||(document.addEventListener(f.Ks.PASTE,this.pasteFromClipboard),document.addEventListener(f.Ks.CUT,this.onCut),this.props.detectScroll&&(this.nearestScrollableContainer=(0,s.Ip)(this.excalidrawContainerRef.current),this.nearestScrollableContainer.addEventListener(f.Ks.SCROLL,this.onScroll)),window.addEventListener(f.Ks.RESIZE,this.onResize,!1),window.addEventListener(f.Ks.UNLOAD,this.onUnload,!1),window.addEventListener(f.Ks.BLUR,this.onBlur,!1),(Me=this.excalidrawContainerRef.current)===null||Me===void 0||Me.addEventListener(f.Ks.DRAG_OVER,this.disableEvent,!1),(je=this.excalidrawContainerRef.current)===null||je===void 0||je.addEventListener(f.Ks.DROP,this.disableEvent,!1))}},{key:"componentDidUpdate",value:function(F,T){var fe,Me,je,Fe,Ue=this;this.updateEmbeddables(),this.state.showWelcomeScreen||this.scene.getElementsIncludingDeleted().length||this.setState({showWelcomeScreen:!0}),F.UIOptions.dockedSidebarBreakpoint!==this.props.UIOptions.dockedSidebarBreakpoint&&this.refreshEditorBreakpoints(),(T.scrollX!==this.state.scrollX||T.scrollY!==this.state.scrollY)&&((je=this.props)===null||je===void 0||(Fe=je.onScrollChange)===null||Fe===void 0||Fe.call(je,this.state.scrollX,this.state.scrollY)),Object.keys(this.state.selectedElementIds).length&&(0,k.EN)(this.state)&&this.setState({activeTool:(0,s.Om)(this.state,{type:"selection"})}),this.state.activeTool.type==="eraser"&&T.theme!==this.state.theme&&(0,Gr.OF)(this.interactiveCanvas,this.state.theme),T.activeTool.type==="selection"&&this.state.activeTool.type!=="selection"&&this.state.showHyperlinkPopup&&this.setState({showHyperlinkPopup:!1}),F.langCode!==this.props.langCode&&this.updateLanguage(),F.viewModeEnabled!==this.props.viewModeEnabled&&this.setState({viewModeEnabled:!!this.props.viewModeEnabled}),T.viewModeEnabled!==this.state.viewModeEnabled&&(this.addEventListeners(),this.deselectElements()),F.zenModeEnabled!==this.props.zenModeEnabled&&this.setState({zenModeEnabled:!!this.props.zenModeEnabled}),F.theme!==this.props.theme&&this.props.theme&&this.setState({theme:this.props.theme}),F.gridModeEnabled!==this.props.gridModeEnabled&&this.setState({gridSize:this.props.gridModeEnabled?f.k:null}),this.props.name&&F.name!==this.props.name&&this.setState({name:this.props.name}),(fe=this.excalidrawContainerRef.current)===null||fe===void 0||fe.classList.toggle("theme--dark",this.state.theme==="dark"),this.state.editingLinearElement&&!this.state.selectedElementIds[this.state.editingLinearElement.elementId]&&setTimeout(function(){Ue.state.editingLinearElement&&Ue.actionManager.executeAction(P.pL)}),(Me=this.state.editingElement)!==null&&Me!==void 0&&Me.isDeleted&&this.setState({editingElement:null}),this.state.selectedLinearElement&&!this.state.selectedElementIds[this.state.selectedLinearElement.elementId]&&this.setState({selectedLinearElement:null});var Ge,rt,it=T.multiElement;T.activeTool!==this.state.activeTool&&it!=null&&(0,O.N1)(this.state)&&(0,L.Mn)(it,!1)&&(0,O.R)(it,this.state,this.scene,(0,s.AK)(ce._.getPointAtIndexGlobalCoordinates(it,-1))),this.history.record(this.state,this.scene.getElementsIncludingDeleted()),this.state.isLoading||((Ge=(rt=this.props).onChange)===null||Ge===void 0||Ge.call(rt,this.scene.getElementsIncludingDeleted(),this.state,this.files),this.onChangeEmitter.trigger(this.scene.getElementsIncludingDeleted(),this.state,this.files))}},{key:"addElementsFromMixedContentPaste",value:(C=(0,h.Z)(u().mark(function F(T,fe){var Me,je,Fe,Ue,Ge,rt,it,lt,Yt,jt,ct,xt,Mt,Vt,Ht;return u().wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:if(Me=fe.isPlainPaste,je=fe.sceneX,Fe=fe.sceneY,Me||!T.some(function(Kt){return Kt.type==="imageUrl"})||!this.isToolSupported("image")){Tt.next=35;break}return Ue=T.filter(function(Kt){return Kt.type==="imageUrl"}).map(function(Kt){return Kt.value}),Tt.next=5,Promise.all(Ue.map(function(){var Kt=(0,h.Z)(u().mark(function hr(Mr){return u().wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:return Nr.prev=0,Nr.next=3,(0,Ct._p)(Mr);case 3:return Nr.t0=Nr.sent,Nr.abrupt("return",{file:Nr.t0});case 7:return Nr.prev=7,Nr.t1=Nr.catch(0),Nr.abrupt("return",{errorMessage:Nr.t1.message});case 10:case"end":return Nr.stop()}},hr,null,[[0,7]])}));return function(hr){return Kt.apply(this,arguments)}}()));case 5:Ge=Tt.sent,rt=Fe,it=!1,lt={},Yt=xo(Ge),Tt.prev=10,Yt.s();case 12:if((jt=Yt.n()).done){Tt.next=22;break}if(!(ct=jt.value).file){Tt.next=20;break}return xt=this.createImageElement({sceneX:je,sceneY:rt}),Tt.next=18,this.insertImageElement(xt,ct.file);case 18:(Mt=Tt.sent)&&(it||(it=!0,rt-=Mt.height/2),(0,g.DR)(Mt,{y:rt},!1),rt=xt.y+xt.height+25,lt[xt.id]=!0);case 20:Tt.next=12;break;case 22:Tt.next=27;break;case 24:Tt.prev=24,Tt.t0=Tt.catch(10),Yt.e(Tt.t0);case 27:return Tt.prev=27,Yt.f(),Tt.finish(27);case 30:this.setState({selectedElementIds:(0,un.Oh)(lt,this.state)}),Vt=Ge.find(function(Kt){return!!Kt.errorMessage}),Vt&&Vt.errorMessage&&this.setState({errorMessage:Vt.errorMessage}),Tt.next=37;break;case 35:(Ht=T.filter(function(Kt){return Kt.type==="text"})).length&&this.addTextFromPaste(Ht.map(function(Kt){return Kt.value}).join(` + +`),Me);case 37:case"end":return Tt.stop()}},F,this,[[10,24,27,30]])})),function(F,T){return C.apply(this,arguments)})},{key:"addTextFromPaste",value:function(F){var T=this,fe=arguments.length>1&&arguments[1]!==void 0&&arguments[1],Me=(0,s.dE)({clientX:this.lastViewportPosition.x,clientY:this.lastViewportPosition.y},this.state),je=Me.x,Fe=Me.y,Ue={x:je,y:Fe,strokeColor:this.state.currentItemStrokeColor,backgroundColor:this.state.currentItemBackgroundColor,fillStyle:this.state.currentItemFillStyle,strokeWidth:this.state.currentItemStrokeWidth,strokeStyle:this.state.currentItemStrokeStyle,roundness:null,roughness:this.state.currentItemRoughness,opacity:this.state.currentItemOpacity,text:F,fontSize:this.state.currentItemFontSize,fontFamily:this.state.currentItemFontFamily,textAlign:this.state.currentItemTextAlign,verticalAlign:f.hs,locked:!1},Ge=10,rt=Fe,it=fe?[F]:F.split(` +`),lt=it.reduce(function(jt,ct,xt){var Mt=ct.trim(),Vt=(0,et.PT)(Ue.fontFamily);if(Mt.length){var Ht=T.getTopLayerFrameAtSceneCoords({x:je,y:rt}),Tt=(0,V.VL)(Zt(Zt({},Ue),{},{x:je,y:rt,text:Mt,lineHeight:Vt,frameId:Ht?Ht.id:null}));jt.push(Tt),rt+=Tt.height+Ge}else{var Kt;!((Kt=it[xt-1])===null||Kt===void 0)&&Kt.trim()&&(rt+=(0,et.Rg)(Ue.fontSize,Vt)+Ge)}return jt},[]);if(lt.length!==0){var Yt=lt[0].frameId;Yt?this.scene.insertElementsAtIndex(lt,this.scene.getElementIndex(Yt)):this.scene.replaceAllElements([].concat((0,y.Z)(this.scene.getElementsIncludingDeleted()),(0,y.Z)(lt))),this.setState({selectedElementIds:(0,un.Oh)(Object.fromEntries(lt.map(function(jt){return[jt.id,!0]})),this.state)}),!fe&<.length>1&&Ji===!1&&!this.device.editor.isMobile&&(this.setToast({message:(0,R.t)("toast.pasteAsSingleElement",{shortcut:(0,s.uY)("CtrlOrCmd+Shift+V")}),duration:5e3}),Ji=!0),this.history.resumeRecording()}}},{key:"handleTextWysiwyg",value:function(F,T){var fe=this,Me=T.isExistingElement,je=Me!==void 0&&Me,Fe=function(Ue,Ge,rt){fe.scene.replaceAllElements((0,y.Z)(fe.scene.getElementsIncludingDeleted().map(function(it){return it.id===F.id&&(0,V.iB)(it)?(0,V.N_)(it,{text:Ue,isDeleted:rt,originalText:Ge}):it})))};(0,V.b_)({id:F.id,canvas:this.canvas,getViewportCoords:function(Ue,Ge){var rt=(0,s._i)({sceneX:Ue,sceneY:Ge},fe.state),it=rt.x,lt=rt.y;return[it-fe.state.offsetLeft,lt-fe.state.offsetTop]},onChange:(0,s.tH)(function(Ue){Fe(Ue,Ue,!1),(0,V.qP)(F)&&(0,O.Ww)(F)}),onSubmit:(0,s.tH)(function(Ue){var Ge=Ue.text,rt=Ue.viaKeyboard,it=Ue.originalText,lt=!Ge.trim();if(Fe(Ge,it,lt),!lt&&rt){var Yt=F.containerId?F.containerId:F.id;fe.setState(function(jt){return{selectedElementIds:(0,un.Oh)(Zt(Zt({},jt.selectedElementIds),{},(0,H.Z)({},Yt,!0)),jt)}})}lt&&(0,O.$q)(fe.scene.getNonDeletedElements(),[F]),lt&&!je||fe.history.resumeRecording(),fe.setState({draggingElement:null,editingElement:null}),fe.state.activeTool.locked&&(0,Gr.Uk)(fe.interactiveCanvas,fe.state),fe.focusContainer()}),element:F,excalidrawContainer:this.excalidrawContainerRef.current,app:this}),this.deselectElements(),Fe(F.text,F.originalText,!1)}},{key:"deselectElements",value:function(){this.setState({selectedElementIds:(0,un.Oh)({},this.state),selectedGroupIds:{},editingGroupId:null,activeEmbeddable:null})}},{key:"getTextElementAtPosition",value:function(F,T){var fe=this.getElementAtPosition(F,T,{includeBoundTextElement:!0});return fe&&(0,V.iB)(fe)&&!fe.isDeleted?fe:null}},{key:"getElementAtPosition",value:function(F,T,fe){var Me=this.getElementsAtPosition(F,T,fe?.includeBoundTextElement,fe?.includeLockedElements);if(Me.length>1){if(fe!=null&&fe.preferSelected){for(var je=Me.length-1;je>-1;je--)if(this.state.selectedElementIds[Me[je].id])return Me[je]}var Fe=Me[Me.length-1];return(0,V.wB)(Fe,this.state,this.frameNameBoundsCache,F,T)?Me[Me.length-2]:Fe}return Me.length===1?Me[0]:null}},{key:"getElementsAtPosition",value:function(F,T){var fe=this,Me=arguments.length>2&&arguments[2]!==void 0&&arguments[2],je=arguments.length>3&&arguments[3]!==void 0&&arguments[3],Fe=Me&&je?this.scene.getNonDeletedElements():this.scene.getNonDeletedElements().filter(function(Ue){return(je||!Ue.locked)&&(Me||!((0,V.iB)(Ue)&&Ue.containerId))});return(0,ke.CJ)(Fe,function(Ue){return(0,V.wX)(Ue,fe.state,fe.frameNameBoundsCache,F,T)}).filter(function(Ue){var Ge=(0,_n.$Z)(Ue);return!(Ge&&fe.state.frameRendering.enabled&&fe.state.frameRendering.clip)||(0,_n.Dn)({x:F,y:T},Ge)})}},{key:"handleHoverSelectedLinearElement",value:function(F,T,fe){var Me=ce._.getElement(F.elementId),je=(0,et.WJ)(Me);if(Me)if(this.state.selectedLinearElement){var Fe=-1,Ue=null;(0,Ba.Qu)(Me,this.state,this.frameNameBoundsCache,[T,fe])?(Fe=ce._.getPointIndexUnderCursor(Me,this.state.zoom,T,fe),Ue=ce._.getSegmentMidpointHitCoords(F,{x:T,y:fe},this.state),Fe>=0||Ue?(0,Gr.KJ)(this.interactiveCanvas,f.oc.POINTER):(0,Gr.KJ)(this.interactiveCanvas,f.oc.MOVE)):((0,vi.oY)([Me],this.state)&&(0,V.wB)(Me,this.state,this.frameNameBoundsCache,T,fe)||je&&(0,V.wX)(je,this.state,this.frameNameBoundsCache,T,fe))&&(0,Gr.KJ)(this.interactiveCanvas,f.oc.MOVE),this.state.selectedLinearElement.hoverPointIndex!==Fe&&this.setState({selectedLinearElement:Zt(Zt({},this.state.selectedLinearElement),{},{hoverPointIndex:Fe})}),ce._.arePointsEqual(this.state.selectedLinearElement.segmentMidPointHoveredCoords,Ue)||this.setState({selectedLinearElement:Zt(Zt({},this.state.selectedLinearElement),{},{segmentMidPointHoveredCoords:Ue})})}else(0,Gr.KJ)(this.interactiveCanvas,f.oc.AUTO)}},{key:"maybeCleanupAfterMissingPointerUp",value:function(F){zo!==null&&zo(F)}},{key:"updateGestureOnPointerDown",value:function(F){fn.pointers.set(F.pointerId,{x:F.clientX,y:F.clientY}),fn.pointers.size===2&&(fn.lastCenter=re(fn.pointers),fn.initialScale=this.state.zoom.value,fn.initialDistance=me(Array.from(fn.pointers.values())))}},{key:"initialPointerDownState",value:function(F){var T=(0,s.dE)(F,this.state),fe=this.scene.getSelectedElements(this.state),Me=(0,V.KP)(fe),je=(0,E.Z)(Me,4),Fe=je[0],Ue=je[1],Ge=je[2],rt=je[3];return{origin:T,withCmdOrCtrl:F[_.tW.CTRL_OR_CMD],originInGrid:(0,s.AK)((0,J.wC)(T.x,T.y,F[_.tW.CTRL_OR_CMD]?null:this.state.gridSize)),scrollbars:(0,ke._4)(Di,F.clientX-this.state.offsetLeft,F.clientY-this.state.offsetTop),lastCoords:Zt({},T),originalElements:this.scene.getNonDeletedElements().reduce(function(it,lt){return it.set(lt.id,(0,te.OL)(lt)),it},new Map),resize:{handleType:!1,isResizing:!1,offset:{x:0,y:0},arrowDirection:"origin",center:{x:(Ge+Fe)/2,y:(rt+Ue)/2}},hit:{element:null,allHitElements:[],wasAddedToSelection:!1,hasBeenDuplicated:!1,hasHitCommonBoundingBoxOfSelectedElements:this.isHittingCommonBoundingBoxOfSelectedElements(T,fe)},drag:{hasOccurred:!1,offset:null},eventListeners:{onMove:null,onUp:null,onKeyUp:null,onKeyDown:null},boxSelection:{hasOccurred:!1},elementIdsToErase:{}}}},{key:"handleDraggingScrollBar",value:function(F,T){var fe=this;if(!T.scrollbars.isOverEither||this.state.multiElement)return!1;Ti=!0,T.lastCoords.x=F.clientX,T.lastCoords.y=F.clientY;var Me=(0,s.$9)(function(Fe){Fe.target instanceof HTMLElement&&fe.handlePointerMoveOverScrollbars(Fe,T)}),je=(0,s.tH)(function(){Ti=!1,(0,Gr.Uk)(fe.interactiveCanvas,fe.state),zo=null,fe.setState({cursorButton:"up"}),fe.savePointer(F.clientX,F.clientY,"up"),window.removeEventListener(f.Ks.POINTER_MOVE,Me),window.removeEventListener(f.Ks.POINTER_UP,je),Me.flush()});return zo=je,window.addEventListener(f.Ks.POINTER_MOVE,Me),window.addEventListener(f.Ks.POINTER_UP,je),!0}},{key:"isASelectedElement",value:function(F){return F!=null&&this.state.selectedElementIds[F.id]}},{key:"isHittingCommonBoundingBoxOfSelectedElements",value:function(F,T){if(T.length<2)return!1;var fe=10/this.state.zoom.value,Me=(0,V.KP)(T),je=(0,E.Z)(Me,4),Fe=je[0],Ue=je[1],Ge=je[2],rt=je[3];return F.x>Fe-fe&&F.x<Ge+fe&&F.y>Ue-fe&&F.y<rt+fe}},{key:"getCurrentItemRoundness",value:function(F){return this.state.currentItemRoundness==="round"?{type:(0,L.QI)(F)?f.a6.ADAPTIVE_RADIUS:f.a6.PROPORTIONAL_RADIUS}:null}},{key:"maybeCacheReferenceSnapPoints",value:function(F,T){var fe=arguments.length>2&&arguments[2]!==void 0&&arguments[2];!vo({event:F,appState:this.state,selectedElements:T})||!fe&&Cn.getReferenceSnapPoints()||Cn.setReferenceSnapPoints(Ae(this.scene.getNonDeletedElements(),T,this.state))}},{key:"maybeCacheVisibleGaps",value:function(F,T){var fe=arguments.length>2&&arguments[2]!==void 0&&arguments[2];!vo({event:F,appState:this.state,selectedElements:T})||!fe&&Cn.getVisibleGaps()||Cn.setVisibleGaps(wi(this.scene.getNonDeletedElements(),T,this.state))}},{key:"onKeyDownFromPointerDownHandler",value:function(F){var T=this;return(0,s.tH)(function(fe){T.maybeHandleResize(F,fe)||T.maybeDragNewGenericElement(F,fe)})}},{key:"onKeyUpFromPointerDownHandler",value:function(F){var T=this;return(0,s.tH)(function(fe){fe.key===_.tW.ALT&&fe.preventDefault(),T.maybeHandleResize(F,fe)||T.maybeDragNewGenericElement(F,fe)})}},{key:"onPointerMoveFromPointerDownHandler",value:function(F){var T=this;return(0,s.$9)(function(fe){var Me;if(F.drag.offset===null&&(F.drag.offset=(0,s.AK)((0,V.$V)(T.scene.getSelectedElements(T.state),F.origin.x,F.origin.y))),fe.target instanceof HTMLElement&&!T.handlePointerMoveOverScrollbars(fe,F)){var je=(0,s.dE)(fe,T.state);if((0,k.EN)(T.state))T.handleEraser(fe,F,je);else{T.state.activeTool.type==="laser"&&T.laserPathManager.addPointToPath(je.x,je.y);var Fe=(0,J.wC)(je.x,je.y,fe[_.tW.CTRL_OR_CMD]?null:T.state.gridSize),Ue=(0,E.Z)(Fe,2),Ge=Ue[0],rt=Ue[1];if(F.drag.hasOccurred||T.state.activeTool.type!=="arrow"&&T.state.activeTool.type!=="line"||!((0,J.LW)(je.x,je.y,F.origin.x,F.origin.y)<f.f)){if(F.resize.isResizing&&(F.lastCoords.x=je.x,F.lastCoords.y=je.y,T.maybeHandleResize(F,fe)))return!0;if(T.state.selectedLinearElement){var it=T.state.editingLinearElement||T.state.selectedLinearElement;if(ce._.shouldAddMidpoint(T.state.selectedLinearElement,je,T.state)){var lt=ce._.addMidpoint(T.state.selectedLinearElement,je,T.state,!fe[_.tW.CTRL_OR_CMD]);return lt?void(0,de.flushSync)(function(){T.state.selectedLinearElement&&T.setState({selectedLinearElement:Zt(Zt({},T.state.selectedLinearElement),{},{pointerDownState:lt.pointerDownState,selectedPointsIndices:lt.selectedPointsIndices})}),T.state.editingLinearElement&&T.setState({editingLinearElement:Zt(Zt({},T.state.editingLinearElement),{},{pointerDownState:lt.pointerDownState,selectedPointsIndices:lt.selectedPointsIndices})})}):void 0}if(it.pointerDownState.segmentMidpoint.value!==null&&!it.pointerDownState.segmentMidpoint.added)return;var Yt=ce._.handlePointDragging(fe,T.state,je.x,je.y,function(sn,Xn){T.maybeSuggestBindingsForLinearElementAtCoords(sn,Xn)},it);if(Yt)return F.lastCoords.x=je.x,F.lastCoords.y=je.y,F.drag.hasOccurred=!0,T.state.editingLinearElement&&!T.state.editingLinearElement.isDragging&&T.setState({editingLinearElement:Zt(Zt({},T.state.editingLinearElement),{},{isDragging:!0})}),void(T.state.selectedLinearElement.isDragging||T.setState({selectedLinearElement:Zt(Zt({},T.state.selectedLinearElement),{},{isDragging:!0})}))}var jt=F.hit.allHitElements.some(function(sn){return T.isASelectedElement(sn)}),ct=T.state.editingLinearElement&&fe.shiftKey&&T.state.editingLinearElement.elementId===((Me=F.hit.element)===null||Me===void 0?void 0:Me.id);if((jt||F.hit.hasHitCommonBoundingBoxOfSelectedElements)&&!ct){var xt,Mt=T.scene.getSelectedElements(T.state);if(Mt.every(function(sn){return sn.locked}))return;var Vt=Mt.find(function(sn){return(0,L.He)(sn)}),Ht=T.getTopLayerFrameAtSceneCoords(je);if(T.setState({frameToHighlight:Ht&&!Vt?Ht:null}),F.drag.hasOccurred=!0,T.setState({selectedElementsAreBeingDragged:!0}),Mt.length>0&&!F.withCmdOrCtrl&&!T.state.editingElement&&((xt=T.state.activeEmbeddable)===null||xt===void 0?void 0:xt.state)!=="active"){var Tt={x:je.x-F.origin.x,y:je.y-F.origin.y},Kt=(0,y.Z)(F.originalElements.values()),hr=fe.shiftKey;if(hr){var Mr=Math.abs(Tt.x),Nr=Math.abs(Tt.y),Kr=hr&&Mr>Nr;hr&&Mr<Nr&&(Tt.x=0),Kr&&(Tt.y=0)}T.maybeCacheVisibleGaps(fe,Mt),T.maybeCacheReferenceSnapPoints(fe,Mt);var tn=function(sn,Xn,so,Xo){var Ri,zi,Ni,Bi;if(!vo({appState:so,event:Xo,selectedElements:sn})||sn.length===0)return{snapOffset:{x:0,y:0},snapLines:[]};Xn.x=Ne(Xn.x),Xn.y=Ne(Xn.y);var No=[],Bo=[],Qi=go(so.zoom.value),pa={x:Qi,y:Qi},nl=Yo(sn,{dragOffset:Xn});Le(sn,nl,so,Xo,No,Bo,pa),se(sn,Xn,so,Xo,No,Bo,pa);var Hi={x:(Ri=(zi=No[0])===null||zi===void 0?void 0:zi.offset)!==null&&Ri!==void 0?Ri:0,y:(Ni=(Bi=Bo[0])===null||Bi===void 0?void 0:Bi.offset)!==null&&Ni!==void 0?Ni:0};pa.x=0,pa.y=0,No.length=0,Bo.length=0;var Wi={x:Ne(Xn.x+Hi.x),y:Ne(Xn.y+Hi.y)};Le(sn,Yo(sn,{dragOffset:Wi}),so,Xo,No,Bo,pa),se(sn,Wi,so,Xo,No,Bo,pa);var ol=Qe(No,Bo),al=nt(sn,Wi,[].concat(No,Bo).filter(function(il){return il.type==="gap"}));return{snapOffset:Hi,snapLines:[].concat(ol,al)}}((0,ke.eD)(Kt,T.state),Tt,T.state,fe),Qr=tn.snapOffset,Pr=tn.snapLines;if(T.setState({snapLines:Pr}),!T.state.editingFrame&&(0,V.o8)(F,Mt,Tt,T.state,T.scene,Qr,fe[_.tW.CTRL_OR_CMD]?null:T.state.gridSize),T.maybeSuggestBindingForAll(Mt),fe.altKey&&!F.hit.hasBeenDuplicated){F.hit.hasBeenDuplicated=!0;var on,Br=[],en=[],gn=new Map,xn=new Map,pn=F.hit.element,Tn=new Set(T.scene.getSelectedElements({selectedElementIds:T.state.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0}).map(function(sn){return sn.id})),Xr=xo(T.scene.getElementsIncludingDeleted());try{for(Xr.s();!(on=Xr.n()).done;){var cn=on.value;if(Tn.has(cn.id)||cn.id===pn?.id&&F.hit.wasAddedToSelection){var Wn=(0,V.Sy)(T.state.editingGroupId,gn,cn),In=F.originalElements.get(cn.id);(0,g.DR)(Wn,{x:In.x,y:In.y}),F.originalElements.set(Wn.id,Wn),Br.push(Wn),en.push(cn),xn.set(cn.id,Wn.id)}else Br.push(cn)}}catch(sn){Xr.e(sn)}finally{Xr.f()}var Fn=[].concat(Br,en);(0,et.P7)(Br,en,xn),(0,O.ek)(Fn,en,xn,"duplicatesServeAsOld"),(0,_n.xr)(Fn,en,xn),T.scene.replaceAllElements(Fn),T.maybeCacheVisibleGaps(fe,Mt,!0),T.maybeCacheReferenceSnapPoints(fe,Mt,!0)}return}}var vn=T.state.draggingElement;if(vn){if(vn.type==="freedraw"){var Nn=vn.points,Dn=je.x-vn.x,dn=je.y-vn.y,Po=Nn.length>0&&Nn[Nn.length-1];if(!(Po&&Po[0]===Dn&&Po[1]===dn)){var mo=vn.simulatePressure?vn.pressures:[].concat((0,y.Z)(vn.pressures),[fe.pressure]);(0,g.DR)(vn,{points:[].concat((0,y.Z)(Nn),[[Dn,dn]]),pressures:mo})}}else if((0,L.bt)(vn)){F.drag.hasOccurred=!0,T.setState({selectedElementsAreBeingDragged:!0});var Lr=vn.points,wn=Ge-vn.x,An=rt-vn.y;if((0,_.Ge)(fe)&&Lr.length===2){var Yn=(0,V.o4)(vn.x,vn.y,je.x,je.y);wn=Yn.width,An=Yn.height}Lr.length===1?(0,g.DR)(vn,{points:[].concat((0,y.Z)(Lr),[[wn,An]])}):Lr.length===2&&(0,g.DR)(vn,{points:[].concat((0,y.Z)(Lr.slice(0,-1)),[[wn,An]])}),(0,L.Mn)(vn,!1)&&T.maybeSuggestBindingsForLinearElementAtCoords(vn,[je],T.state.startBoundElement)}else F.lastCoords.x=je.x,F.lastCoords.y=je.y,T.maybeDragNewGenericElement(F,fe);if(T.state.activeTool.type==="selection"){F.boxSelection.hasOccurred=!0;var Vn=T.scene.getNonDeletedElements();if(T.state.editingLinearElement)ce._.handleBoxSelection(fe,T.state,T.setState.bind(T));else{var qn=!0;!fe.shiftKey&&(0,ke.N)(Vn,T.state)&&(F.withCmdOrCtrl&&F.hit.element?T.setState(function(sn){return(0,We.bO)(Zt(Zt({},sn),{},{selectedElementIds:(0,H.Z)({},F.hit.element.id,!0)}),T.scene.getNonDeletedElements(),sn,T)}):qn=!1);var eo=(0,ke.Yp)(Vn,vn);T.setState(function(sn){var Xn=Zt(Zt({},qn&&sn.selectedElementIds),eo.reduce(function(so,Xo){return so[Xo.id]=!0,so},{}));return F.hit.element&&(eo.length?delete Xn[F.hit.element.id]:Xn[F.hit.element.id]=!0),sn=qn?sn:Zt(Zt({},sn),{},{selectedGroupIds:{},editingGroupId:null}),Zt(Zt({},(0,We.bO)({editingGroupId:sn.editingGroupId,selectedElementIds:Xn},T.scene.getNonDeletedElements(),sn,T)),{},{selectedLinearElement:eo.length===1&&(0,L.bt)(eo[0])?new ce._(eo[0],T.scene):null,showHyperlinkPopup:!(eo.length!==1||!eo[0].link&&!(0,L.gs)(eo[0]))&&"info"})})}}}}}}})}},{key:"handlePointerMoveOverScrollbars",value:function(F,T){if(T.scrollbars.isOverHorizontal){var fe=F.clientX,Me=fe-T.lastCoords.x;return this.translateCanvas({scrollX:this.state.scrollX-Me/this.state.zoom.value}),T.lastCoords.x=fe,!0}if(T.scrollbars.isOverVertical){var je=F.clientY,Fe=je-T.lastCoords.y;return this.translateCanvas({scrollY:this.state.scrollY-Fe/this.state.zoom.value}),T.lastCoords.y=je,!0}return!1}},{key:"onPointerUpFromPointerDownHandler",value:function(F){var T=this;return(0,s.tH)(function(fe){var Me;F.eventListeners.onMove&&F.eventListeners.onMove.flush();var je,Fe,Ue=T.state,Ge=Ue.draggingElement,rt=Ue.resizingElement,it=Ue.multiElement,lt=Ue.activeTool,Yt=Ue.isResizing,jt=Ue.isRotating;if(T.setState({isResizing:!1,isRotating:!1,resizingElement:null,selectionElement:null,frameToHighlight:null,elementsToHighlight:null,cursorButton:"up",editingElement:it||(0,V.iB)(T.state.editingElement)?T.state.editingElement:null,snapLines:[],originSnapOffset:null}),Cn.setReferenceSnapPoints(null),Cn.setVisibleGaps(null),T.savePointer(fe.clientX,fe.clientY,"up"),T.setState({selectedElementsAreBeingDragged:!1}),T.state.editingLinearElement)if(F.boxSelection.hasOccurred||((je=F.hit)===null||je===void 0||(Fe=je.element)===null||Fe===void 0?void 0:Fe.id)===T.state.editingLinearElement.elementId){var ct=ce._.handlePointerUp(fe,T.state.editingLinearElement,T.state);ct!==T.state.editingLinearElement&&T.setState({editingLinearElement:ct,suggestedBindings:[]})}else T.actionManager.executeAction(P.pL);else if(T.state.selectedLinearElement){var xt,Mt;if(((xt=F.hit)===null||xt===void 0||(Mt=xt.element)===null||Mt===void 0?void 0:Mt.id)!==T.state.selectedLinearElement.elementId)T.scene.getSelectedElements(T.state).length>1&&T.setState({selectedLinearElement:null});else{var Vt=ce._.handlePointerUp(fe,T.state.selectedLinearElement,T.state),Ht=Vt.startBindingElement,Tt=Vt.endBindingElement,Kt=T.scene.getElement(Vt.elementId);(0,L.Mn)(Kt)&&(0,O.HG)(Kt,Ht,Tt),Vt!==T.state.selectedLinearElement&&T.setState({selectedLinearElement:Zt(Zt({},Vt),{},{selectedPointsIndices:null}),suggestedBindings:[]})}}if(zo=null,window.removeEventListener(f.Ks.POINTER_MOVE,F.eventListeners.onMove),window.removeEventListener(f.Ks.POINTER_UP,F.eventListeners.onUp),window.removeEventListener(f.Ks.KEYDOWN,F.eventListeners.onKeyDown),window.removeEventListener(f.Ks.KEYUP,F.eventListeners.onKeyUp),T.state.pendingImageElementId&&T.setState({pendingImageElementId:null}),T.onPointerUpEmitter.trigger(T.state.activeTool,F,fe),Ge?.type==="freedraw"){var hr=(0,s.dE)(fe,T.state),Mr=Ge.points,Nr=hr.x-Ge.x,Kr=hr.y-Ge.y;Nr===Mr[0][0]&&Kr===Mr[0][1]&&(Kr+=1e-4,Nr+=1e-4);var tn=Ge.simulatePressure?[]:[].concat((0,y.Z)(Ge.pressures),[fe.pressure]);return(0,g.DR)(Ge,{points:[].concat((0,y.Z)(Mr),[[Nr,Kr]]),pressures:tn,lastCommittedPoint:[Nr,Kr]}),void T.actionManager.executeAction(P.pL)}if((0,L.pC)(Ge)){var Qr=Ge;try{T.initializeImageDimensions(Qr),T.setState({selectedElementIds:(0,un.Oh)((0,H.Z)({},Qr.id,!0),T.state)},function(){T.actionManager.executeAction(P.pL)})}catch(Lr){console.error(Lr),T.scene.replaceAllElements(T.scene.getElementsIncludingDeleted().filter(function(wn){return wn.id!==Qr.id})),T.actionManager.executeAction(P.pL)}}else if((0,L.bt)(Ge)){Ge.points.length>1&&T.history.resumeRecording();var Pr=(0,s.dE)(fe,T.state);F.drag.hasOccurred||!Ge||it?F.drag.hasOccurred&&!it&&((0,O.N1)(T.state)&&(0,L.Mn)(Ge,!1)&&(0,O.R)(Ge,T.state,T.scene,Pr),T.setState({suggestedBindings:[],startBoundElement:null}),lt.locked?T.setState(function(Lr){return{draggingElement:null}}):((0,Gr.z8)(T.interactiveCanvas),T.setState(function(Lr){return{draggingElement:null,activeTool:(0,s.Om)(T.state,{type:"selection"}),selectedElementIds:(0,un.Oh)(Zt(Zt({},Lr.selectedElementIds),{},(0,H.Z)({},Ge.id,!0)),Lr),selectedLinearElement:new ce._(Ge,T.scene)}}))):((0,g.DR)(Ge,{points:[].concat((0,y.Z)(Ge.points),[[Pr.x-Ge.x,Pr.y-Ge.y]])}),T.setState({multiElement:Ge,editingElement:T.state.draggingElement}))}else{if(lt.type!=="selection"&&Ge&&(0,V.QD)(Ge))return T.scene.replaceAllElements(T.scene.getElementsIncludingDeleted().filter(function(Lr){return Lr.id!==Ge.id})),void T.setState({draggingElement:null});if(Ge){if(F.drag.hasOccurred){var on=(0,s.dE)(fe,T.state);if(T.state.selectedLinearElement&&T.state.selectedLinearElement.isDragging){var Br=T.scene.getElement(T.state.selectedLinearElement.elementId);if(Br!=null&&Br.frameId){var en=(0,_n.$Z)(Br);en&&Br&&((0,_n.cO)(Br,en)||((0,g.DR)(Br,{groupIds:[]}),T.scene.replaceAllElements((0,_n.lz)(T.scene.getElementsIncludingDeleted(),[Br],T.state))))}}else{var gn=T.getTopLayerFrameAtSceneCoords(on),xn=T.scene.getSelectedElements(T.state),pn=T.scene.getElementsIncludingDeleted(),Tn=function(Lr){if(Lr.length>0){var wn,An=xo(Lr);try{for(An.s();!(wn=An.n()).done;){var Yn=wn.value,Vn=Yn.groupIds.indexOf(T.state.editingGroupId);(0,g.DR)(Yn,{groupIds:Yn.groupIds.slice(0,Vn)},!1)}}catch(qn){An.e(qn)}finally{An.f()}pn.forEach(function(qn){qn.groupIds.length&&(0,We.Fb)(pn,qn.groupIds[qn.groupIds.length-1]).length<2&&(0,g.DR)(qn,{groupIds:[]},!1)}),T.setState({editingGroupId:null})}};if(gn&&!T.state.selectedElementIds[gn.id]){var Xr=xn.filter(function(Lr){return Lr.frameId!==gn.id&&(0,_n.Qs)(Lr,pn,T.state)});T.state.editingGroupId&&Tn(Xr),pn=(0,_n.A_)(pn,Xr,gn)}else if(!gn&&T.state.editingGroupId){var cn=xn.filter(function(Lr){return Lr.frameId&&!(0,_n.Qs)(Lr,pn,T.state)});Tn(cn)}pn=(0,_n.Tq)(pn,T.state,T),T.scene.replaceAllElements(pn)}}if(Ge.type==="frame"){var Wn=(0,_n.fj)(T.scene.getElementsIncludingDeleted(),Ge);T.scene.replaceAllElements((0,_n.A_)(T.scene.getElementsIncludingDeleted(),Wn,Ge))}(0,g.DR)(Ge,(0,V.Qp)(Ge))}if(rt&&T.history.resumeRecording(),rt&&(0,V.QD)(rt)&&T.scene.replaceAllElements(T.scene.getElementsIncludingDeleted().filter(function(Lr){return Lr.id!==rt.id})),F.resize.isResizing){var In,Fn=(0,_n.Tq)(T.scene.getElementsIncludingDeleted(),T.state,T),vn=T.scene.getSelectedElements(T.state).filter(function(Lr){return Lr.type==="frame"}),Nn=xo(vn);try{for(Nn.s();!(In=Nn.n()).done;){var Dn=In.value;Fn=(0,_n.pr)(Fn,(0,_n.ni)(T.scene.getElementsIncludingDeleted(),Dn,T.state),Dn,T.state)}}catch(Lr){Nn.e(Lr)}finally{Nn.f()}T.scene.replaceAllElements(Fn)}var dn=F.hit.element;if(((Me=T.state.selectedLinearElement)===null||Me===void 0?void 0:Me.elementId)!==dn?.id&&(0,L.bt)(dn)&&T.scene.getSelectedElements(T.state).length===1&&T.setState({selectedLinearElement:new ce._(dn,T.scene)}),(0,k.EN)(T.state)){if((0,J.LW)(T.lastPointerDownEvent.clientX,T.lastPointerDownEvent.clientY,T.lastPointerUpEvent.clientX,T.lastPointerUpEvent.clientY)===0){var Po=(0,s.dE)({clientX:T.lastPointerUpEvent.clientX,clientY:T.lastPointerUpEvent.clientY},T.state);T.getElementsAtPosition(Po.x,Po.y).forEach(function(Lr){return F.elementIdsToErase[Lr.id]={erase:!0,opacity:Lr.opacity}})}T.eraseElements(F)}else{var mo;Object.keys(F.elementIdsToErase).length&&T.restoreReadyToEraseElements(F),dn&&!F.drag.hasOccurred&&!F.hit.wasAddedToSelection&&(!T.state.editingLinearElement||!F.boxSelection.hasOccurred)&&(fe.shiftKey&&!T.state.editingLinearElement?T.state.selectedElementIds[dn.id]?(0,We.zq)(T.state,dn)?T.setState(function(Lr){var wn,An=Zt({},Lr.selectedElementIds),Yn=xo(dn.groupIds.flatMap(function(Vn){return(0,We.Fb)(T.scene.getNonDeletedElements(),Vn)}));try{for(Yn.s();!(wn=Yn.n()).done;)delete An[wn.value.id]}catch(Vn){Yn.e(Vn)}finally{Yn.f()}return{selectedGroupIds:Zt(Zt({},Lr.selectedElementIds),dn.groupIds.map(function(Vn){return(0,H.Z)({},Vn,!1)}).reduce(function(Vn,qn){return Zt(Zt({},Vn),qn)},{})),selectedElementIds:(0,un.Oh)(An,Lr)}}):(mo=T.state.selectedLinearElement)!==null&&mo!==void 0&&mo.isDragging||T.setState(function(Lr){var wn=Zt({},Lr.selectedElementIds);delete wn[dn.id];var An=(0,ke.eD)(T.scene.getNonDeletedElements(),{selectedElementIds:wn});return Zt(Zt({},(0,We.bO)({editingGroupId:Lr.editingGroupId,selectedElementIds:wn},T.scene.getNonDeletedElements(),Lr,T)),{},{selectedLinearElement:An.length===1&&(0,L.bt)(An[0])?new ce._(An[0],T.scene):Lr.selectedLinearElement})}):dn.frameId&&T.state.selectedElementIds[dn.frameId]?T.setState(function(Lr){var wn,An,Yn=Zt(Zt({},Lr.selectedElementIds),{},(0,H.Z)({},dn.id,!0));return delete Yn[dn.frameId],((wn=(An=T.scene.getElement(dn.frameId))===null||An===void 0?void 0:An.groupIds)!==null&&wn!==void 0?wn:[]).flatMap(function(Vn){return(0,We.Fb)(T.scene.getNonDeletedElements(),Vn)}).forEach(function(Vn){delete Yn[Vn.id]}),Zt(Zt({},(0,We.bO)({editingGroupId:Lr.editingGroupId,selectedElementIds:Yn},T.scene.getNonDeletedElements(),Lr,T)),{},{showHyperlinkPopup:!(!dn.link&&!(0,L.gs)(dn))&&"info"})}):T.setState(function(Lr){return{selectedElementIds:(0,un.Oh)(Zt(Zt({},Lr.selectedElementIds),{},(0,H.Z)({},dn.id,!0)),Lr)}}):T.setState(function(Lr){var wn;return Zt(Zt({},(0,We.bO)({editingGroupId:Lr.editingGroupId,selectedElementIds:(0,H.Z)({},dn.id,!0)},T.scene.getNonDeletedElements(),Lr,T)),{},{selectedLinearElement:(0,L.bt)(dn)&&((wn=Lr.selectedLinearElement)===null||wn===void 0?void 0:wn.elementId)!==dn.id?new ce._(dn,T.scene):Lr.selectedLinearElement})})),F.drag.hasOccurred||T.state.isResizing||!(dn&&(0,V.wB)(dn,T.state,T.frameNameBoundsCache,F.origin.x,F.origin.y)||!dn&&F.hit.hasHitCommonBoundingBoxOfSelectedElements)?(!lt.locked&<.type!=="freedraw"&&Ge&&Ge.type!=="selection"&&T.setState(function(Lr){return{selectedElementIds:(0,un.Oh)(Zt(Zt({},Lr.selectedElementIds),{},(0,H.Z)({},Ge.id,!0)),Lr),showHyperlinkPopup:(0,L.gs)(Ge)&&!Ge.link?"editor":Lr.showHyperlinkPopup}}),(lt.type!=="selection"||(0,ke.N)(T.scene.getNonDeletedElements(),T.state))&&T.history.resumeRecording(),(F.drag.hasOccurred||Yt||jt)&&((0,O.N1)(T.state)?O.el:O.H)(T.scene.getSelectedElements(T.state)),lt.type!=="laser"?(lt.locked||lt.type==="freedraw"?T.setState({draggingElement:null,suggestedBindings:[]}):((0,Gr.z8)(T.interactiveCanvas),T.setState({draggingElement:null,suggestedBindings:[],activeTool:(0,s.Om)(T.state,{type:"selection"})})),dn&&T.lastPointerUpEvent&&T.lastPointerDownEvent&&T.lastPointerUpEvent.timeStamp-T.lastPointerDownEvent.timeStamp<300&&fn.pointers.size<=1&&(0,L.gs)(dn)&&T.isEmbeddableCenter(dn,T.lastPointerUpEvent,F.origin.x,F.origin.y)&&T.handleEmbeddableCenterClick(dn)):T.laserPathManager.endPath()):T.state.editingLinearElement?T.setState({editingLinearElement:null}):T.setState({selectedElementIds:(0,un.Oh)({},T.state),selectedGroupIds:{},editingGroupId:null,activeEmbeddable:null})}}})}},{key:"maybeSuggestBindingForAll",value:function(F){if(!(F.length>50)){var T=(0,O.ZB)(F);this.setState({suggestedBindings:T})}}},{key:"clearSelection",value:function(F){this.setState(function(T){return{selectedElementIds:(0,un.Oh)({},T),activeEmbeddable:null,selectedGroupIds:{},editingGroupId:T.editingGroupId&&F!=null&&(0,We.Nd)(F,T.editingGroupId)?T.editingGroupId:null}}),this.setState({selectedElementIds:(0,un.Oh)({},this.state),activeEmbeddable:null,previousSelectedElementIds:this.state.selectedElementIds})}},{key:"getTextWysiwygSnappedToCenterPosition",value:function(F,T,fe,Me){if(Me){var je=Me.x+Me.width/2,Fe=Me.y+Me.height/2,Ue=(0,et.TP)(Me,fe);if(Ue&&(je=Ue.x,Fe=Ue.y),Math.hypot(F-je,T-Fe)<f.wZ){var Ge=(0,s._i)({sceneX:je,sceneY:Fe},fe);return{viewportX:Ge.x,viewportY:Ge.y,elementCenterX:je,elementCenterY:Fe}}}}},{key:"getCanvasOffsets",value:function(){var F;if((F=this.excalidrawContainerRef)!==null&&F!==void 0&&F.current){var T=this.excalidrawContainerRef.current.getBoundingClientRect();return{offsetLeft:T.left,offsetTop:T.top}}return{offsetLeft:0,offsetTop:0}}},{key:"updateLanguage",value:(d=(0,h.Z)(u().mark(function F(){var T,fe=this;return u().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return T=R.Mj.find(function(je){return je.code===fe.props.langCode})||R.Fp,Me.next=3,(0,R.m0)(T);case 3:this.setAppState({});case 4:case"end":return Me.stop()}},F,this)})),function(){return d.apply(this,arguments)})}],[{key:"resetTapTwice",value:function(){Sa=!1}}]),ye}(le().Component);Zi.defaultProps={UIOptions:f.cW};var tl=function(){var r=this;this.interactiveCanvas=null,this.unmounted=!1,this.device=da,this.excalidrawContainerRef=le().createRef(),this.files={},this.imageCache=new Map,this.iFrameRefs=new Map,this.lastPointerDownEvent=null,this.lastPointerUpEvent=null,this.lastViewportPosition={x:0,y:0},this.laserPathManager=new ei(this),this.onChangeEmitter=new Hn,this.onPointerDownEmitter=new Hn,this.onPointerUpEmitter=new Hn,this.updateEmbeddables=function(){var d=new Map,C=!1;r.scene.getNonDeletedElements().filter(function(K){if((0,L.gs)(K)&&(d.set(K.id,!0),K.validated==null)){C=!0;var ae=(0,p.xm)(K.link,r.props.validateEmbeddable);(0,g.DR)(K,{validated:ae},!1),Eo.R.delete(K)}return!1}),C&&r.scene.informMutation(),r.iFrameRefs.forEach(function(K,ae){d.has(ae)||r.iFrameRefs.delete(ae)})},this.getFrameNameDOMId=function(d){return"".concat(r.id,"-frame-name-").concat(d.id)},this.frameNameBoundsCache={get:function(d){var C=r.frameNameBoundsCache._cache.get(d.id);if(!C||C.zoom!==r.state.zoom.value||C.versionNonce!==d.versionNonce){var K=document.getElementById(r.getFrameNameDOMId(d));if(K){var ae=K.getBoundingClientRect(),ye=(0,s.dE)({clientX:ae.x,clientY:ae.y},r.state),F=(0,s.dE)({clientX:ae.right,clientY:ae.bottom},r.state);return C={x:ye.x,y:ye.y,width:F.x-ye.x,height:F.y-ye.y,angle:0,zoom:r.state.zoom.value,versionNonce:d.versionNonce},r.frameNameBoundsCache._cache.set(d.id,C),C}return null}return C},_cache:new Map},this.renderFrameNames=function(){if(!r.state.frameRendering.enabled||!r.state.frameRendering.name)return null;var d=r.state.theme==="dark";return r.scene.getNonDeletedFrames().map(function(C,K){if(!(0,Oe.PZ)(C,r.canvas.width/window.devicePixelRatio,r.canvas.height/window.devicePixelRatio,{offsetLeft:r.state.offsetLeft,offsetTop:r.state.offsetTop,scrollX:r.state.scrollX,scrollY:r.state.scrollY,zoom:r.state.zoom}))return null;var ae,ye=(0,s._i)({sceneX:C.x,sceneY:C.y},r.state),F=ye.x,T=ye.y,fe=function(){var je;((je=C.name)===null||je===void 0?void 0:je.trim())===""&&(0,g.DR)(C,{name:null}),r.setState({editingFrame:null})};if(C.id===r.state.editingFrame){var Me=C.name==null?"Frame ".concat(K+1):C.name;ae=(0,t.jsx)("input",{autoFocus:!0,value:Me,onChange:function(je){(0,g.DR)(C,{name:je.target.value})},onBlur:function(){return fe()},onKeyDown:function(je){je.key!==_.tW.ESCAPE&&je.key!==_.tW.ENTER||fe()},style:{background:r.state.viewBackgroundColor,filter:d?f.ZF:"none",zIndex:2,border:"none",display:"block",padding:"".concat(6,"px"),borderRadius:4,boxShadow:"inset 0 0 0 1px var(--color-primary)",fontFamily:"Assistant",fontSize:"14px",transform:"translate(-".concat(6,"px, ").concat(6,"px)"),color:"var(--color-gray-80)",overflow:"hidden",maxWidth:"".concat(document.body.clientWidth-F-6,"px")},size:Me.length+1||1,dir:"auto",autoComplete:"off",autoCapitalize:"off",autoCorrect:"off"})}else ae=C.name==null||C.name.trim()===""?"Frame ".concat(K+1):C.name.trim();return(0,t.jsx)("div",{id:r.getFrameNameDOMId(C),style:{position:"absolute",bottom:"".concat(r.state.height+f.iG.nameOffsetY-T+r.state.offsetTop,"px"),left:"".concat(F-r.state.offsetLeft,"px"),zIndex:2,fontSize:f.iG.nameFontSize,color:d?f.iG.nameColorDarkTheme:f.iG.nameColorLightTheme,lineHeight:f.iG.nameLineHeight,width:"max-content",maxWidth:"".concat(C.width,"px"),overflow:C.id===r.state.editingFrame?"visible":"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",cursor:f.oc.MOVE,pointerEvents:r.state.viewModeEnabled?f.XI.disabled:f.XI.enabled},onPointerDown:function(je){return r.handleCanvasPointerDown(je)},onWheel:function(je){return r.handleWheel(je)},onContextMenu:r.handleCanvasContextMenu,onDoubleClick:function(){r.setState({editingFrame:C.id})},children:ae},C.id)})},this.focusContainer=function(){var d;(d=r.excalidrawContainerRef.current)===null||d===void 0||d.focus()},this.getSceneElementsIncludingDeleted=function(){return r.scene.getElementsIncludingDeleted()},this.getSceneElements=function(){return r.scene.getNonDeletedElements()},this.onInsertElements=function(d){r.addElementsFromPasteOrLibrary({elements:d,position:"center",files:null})},this.onExportImage=function(){var d=(0,h.Z)(u().mark(function C(K,ae,ye){var F;return u().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return(0,c.L)("export",K,"ui"),T.next=3,(0,N.p1)(K,ae,r.state,r.files,{exportBackground:r.state.exportBackground,name:r.state.name,viewBackgroundColor:r.state.viewBackgroundColor,exportingFrame:ye.exportingFrame}).catch(s.FG).catch(function(fe){console.error(fe),r.setState({errorMessage:fe.message})});case 3:F=T.sent,r.state.exportEmbedScene&&F&&(0,Ct.g8)(F)&&r.setState({fileHandle:F});case 5:case"end":return T.stop()}},C)}));return function(C,K,ae){return d.apply(this,arguments)}}(),this.openEyeDropper=function(d){var C=d.type;ko.e_.set(ya.$,{swapPreviewOnAlt:!0,colorPickerType:C==="stroke"?"elementStroke":"elementBackground",onSelect:function(K,ae){var ye=C==="background"&&ae.altKey||C==="stroke"&&!ae.altKey;r.scene.getSelectedElements(r.state).length&&r.state.activeTool.type==="selection"?r.updateScene({elements:r.scene.getElementsIncludingDeleted().map(function(F){return r.state.selectedElementIds[F.id]?(0,g.BE)(F,(0,H.Z)({},ye?"strokeColor":"backgroundColor",K)):F})}):ye?r.syncActionResult({appState:Zt(Zt({},r.state),{},{currentItemStrokeColor:K}),commitToHistory:!0}):r.syncActionResult({appState:Zt(Zt({},r.state),{},{currentItemBackgroundColor:K}),commitToHistory:!0})},keepOpenOnAlt:!1})},this.syncActionResult=(0,s.tH)(function(d){if(!r.unmounted&&d!==!1){var C=null;if(d.elements&&(d.elements.forEach(function(ct){var xt;((xt=r.state.editingElement)===null||xt===void 0?void 0:xt.id)===ct.id&&r.state.editingElement!==ct&&(0,V.qP)(ct)&&(C=ct)}),r.scene.replaceAllElements(d.elements),d.commitToHistory&&r.history.resumeRecording()),d.files&&(r.files=d.replaceFiles?d.files:Zt(Zt({},r.files),d.files),r.addNewImagesToImageCache()),d.appState||C||r.state.contextMenu){var K,ae,ye,F,T,fe,Me,je,Fe,Ue;d.commitToHistory&&r.history.resumeRecording();var Ge=(d==null||(K=d.appState)===null||K===void 0?void 0:K.viewModeEnabled)||!1,rt=(d==null||(ae=d.appState)===null||ae===void 0?void 0:ae.zenModeEnabled)||!1,it=(d==null||(ye=d.appState)===null||ye===void 0?void 0:ye.gridSize)||null,lt=(d==null||(F=d.appState)===null||F===void 0?void 0:F.theme)||r.props.theme||f.C6.LIGHT,Yt=(T=d==null||(fe=d.appState)===null||fe===void 0?void 0:fe.name)!==null&&T!==void 0?T:r.state.name,jt=(Me=d==null||(je=d.appState)===null||je===void 0?void 0:je.errorMessage)!==null&&Me!==void 0?Me:r.state.errorMessage;r.props.viewModeEnabled!==void 0&&(Ge=r.props.viewModeEnabled),r.props.zenModeEnabled!==void 0&&(rt=r.props.zenModeEnabled),r.props.gridModeEnabled!==void 0&&(it=r.props.gridModeEnabled?f.k:null),r.props.name!==void 0&&(Yt=r.props.name),(Ue=C=C||((Fe=d.appState)===null||Fe===void 0?void 0:Fe.editingElement)||null)!==null&&Ue!==void 0&&Ue.isDeleted&&(C=null),r.setState(function(ct){return Object.assign(d.appState||{},{contextMenu:null,editingElement:C,viewModeEnabled:Ge,zenModeEnabled:rt,gridSize:it,theme:lt,name:Yt,errorMessage:jt})},function(){d.syncHistory&&r.history.setCurrentState(r.state,r.scene.getElementsIncludingDeleted())})}}}),this.onBlur=(0,s.tH)(function(){Vo=!1,r.setState({isBindingEnabled:!0})}),this.onUnload=function(){r.onBlur()},this.disableEvent=function(d){d.preventDefault()},this.resetHistory=function(){r.history.clear()},this.resetScene=(0,s.tH)(function(d){r.scene.replaceAllElements([]),r.setState(function(C){return Zt(Zt({},(0,k.im)()),{},{isLoading:(d==null||!d.resetLoadingState)&&C.isLoading,theme:r.state.theme})}),r.resetHistory()}),this.initializeScene=(0,h.Z)(u().mark(function d(){var C,K,ae,ye,F;return u().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return"launchQueue"in window&&"LaunchParams"in window&&window.launchQueue.setConsumer(function(){var fe=(0,h.Z)(u().mark(function Me(je){var Fe,Ue;return u().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:if(je.files.length){Ge.next=2;break}return Ge.abrupt("return");case 2:return Fe=je.files[0],Ge.next=5,Fe.getFile();case 5:Ue=Ge.sent,r.loadFileToCanvas(new File([Ue],Ue.name||"",{type:Ue.type}),Fe);case 7:case"end":return Ge.stop()}},Me)}));return function(Me){return fe.apply(this,arguments)}}()),r.props.theme&&r.setState({theme:r.props.theme}),r.state.isLoading||r.setState({isLoading:!0}),ae=null,T.prev=4,T.next=7,r.props.initialData;case 7:if(T.t0=T.sent,T.t0){T.next=10;break}T.t0=null;case 10:ae=T.t0,(ye=ae)!==null&&ye!==void 0&&ye.libraryItems&&r.library.updateLibrary({libraryItems:ae.libraryItems,merge:!0}).catch(function(fe){console.error(fe)}),T.next=18;break;case 14:T.prev=14,T.t1=T.catch(4),console.error(T.t1),ae={appState:{errorMessage:T.t1.message||"Encountered an error during importing or restoring scene data"}};case 18:(F=(0,ie.nu)(ae,null,null,{repairBindings:!0})).appState=Zt(Zt({},F.appState),{},{theme:r.props.theme||F.appState.theme,openSidebar:((C=F.appState)===null||C===void 0?void 0:C.openSidebar)||r.state.openSidebar,activeTool:F.appState.activeTool.type==="image"?Zt(Zt({},F.appState.activeTool),{},{type:"selection"}):F.appState.activeTool,isLoading:!1,toast:r.state.toast}),(K=ae)!==null&&K!==void 0&&K.scrollToContent&&(F.appState=Zt(Zt({},F.appState),(0,ke.W)(F.elements,Zt(Zt({},F.appState),{},{width:r.state.width,height:r.state.height,offsetTop:r.state.offsetTop,offsetLeft:r.state.offsetLeft})))),r.fonts.loadFontsForElements(F.elements),r.resetHistory(),r.syncActionResult(Zt(Zt({},F),{},{commitToHistory:!0}));case 24:case"end":return T.stop()}},d,null,[[4,14]])})),this.isMobileBreakpoint=function(d,C){return d<f.kV||C<f.Yx&&d<f.sS},this.refreshViewportBreakpoints=function(){if(r.excalidrawContainerRef.current){var d=document.body,C=d.clientWidth,K=d.clientHeight,ae=r.device.viewport,ye=(0,s.v4)(ae,{isLandscape:C>K,isMobile:r.isMobileBreakpoint(C,K)});return ae!==ye&&(r.device=Zt(Zt({},r.device),{},{viewport:ye}),!0)}},this.refreshEditorBreakpoints=function(){var d=r.excalidrawContainerRef.current;if(d){var C=d.getBoundingClientRect(),K=C.width,ae=C.height,ye=r.props.UIOptions.dockedSidebarBreakpoint!=null?r.props.UIOptions.dockedSidebarBreakpoint:f.sk,F=r.device.editor,T=(0,s.v4)(F,{isMobile:r.isMobileBreakpoint(K,ae),canFitSidebar:K>ye});return F!==T&&(r.device=Zt(Zt({},r.device),{},{editor:T}),!0)}},this.onResize=(0,s.tH)(function(){r.scene.getElementsIncludingDeleted().forEach(function(d){return Eo.R.delete(d)}),r.refreshViewportBreakpoints(),r.updateDOMRect(),qi||r.refreshEditorBreakpoints(),r.setState({})}),this.renderInteractiveSceneCallback=function(d){var C=d.atLeastOneVisibleElement,K=d.scrollBars,ae=d.elements;K&&(Di=K);var ye=!(0,V.iB)(r.state.editingElement)&&!C&&ae.length>0;r.state.scrolledOutside!==ye&&r.setState({scrolledOutside:ye}),r.scheduleImageRefresh()},this.onScroll=(0,s.Ds)(function(){var d=r.getCanvasOffsets(),C=d.offsetTop,K=d.offsetLeft;r.setState(function(ae){return ae.offsetLeft===K&&ae.offsetTop===C?null:{offsetTop:C,offsetLeft:K}})},f.HM),this.onCut=(0,s.tH)(function(d){var C;!((C=r.excalidrawContainerRef.current)===null||C===void 0)&&C.contains(document.activeElement)&&!(0,s.s)(d.target)&&(r.actionManager.executeAction(P.ZM,"keyboard",d),d.preventDefault(),d.stopPropagation())}),this.onCopy=(0,s.tH)(function(d){var C;!((C=r.excalidrawContainerRef.current)===null||C===void 0)&&C.contains(document.activeElement)&&!(0,s.s)(d.target)&&(r.actionManager.executeAction(P.uN,"keyboard",d),d.preventDefault(),d.stopPropagation())}),this.onTouchStart=function(d){if(f.Dt||d.preventDefault(),!Sa)return Sa=!0,clearTimeout(Pi),void(Pi=window.setTimeout(Zi.resetTapTwice,f.Gj));if(Sa&&d.touches.length===1){var C=d.touches[0];r.handleCanvasDoubleClick({clientX:C.clientX,clientY:C.clientY}),Sa=!1,clearTimeout(Pi)}f.Dt&&d.preventDefault(),d.touches.length===2&&r.setState({selectedElementIds:(0,un.Oh)({},r.state),activeEmbeddable:null})},this.onTouchEnd=function(d){r.resetContextMenuTimer(),d.touches.length>0?r.setState({previousSelectedElementIds:{},selectedElementIds:(0,un.Oh)(r.state.previousSelectedElementIds,r.state)}):fn.pointers.clear()},this.pasteFromClipboard=(0,s.tH)(function(){var d=(0,h.Z)(u().mark(function C(K){var ae,ye,F,T,fe,Me,je,Fe,Ue,Ge,rt,it,lt,Yt,jt,ct,xt;return u().wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:if(F=!!Li,T=document.activeElement,fe=(ae=r.excalidrawContainerRef.current)===null||ae===void 0?void 0:ae.contains(T),!K||fe){Mt.next=5;break}return Mt.abrupt("return");case 5:if(Me=document.elementFromPoint(r.lastViewportPosition.x,r.lastViewportPosition.y),!K||Me instanceof HTMLCanvasElement&&!(0,s.s)(T)){Mt.next=8;break}return Mt.abrupt("return");case 8:return je=(0,s.dE)({clientX:r.lastViewportPosition.x,clientY:r.lastViewportPosition.y},r.state),Fe=je.x,Ue=je.y,Ge=K==null||(ye=K.clipboardData)===null||ye===void 0?void 0:ye.files[0],Mt.next=12,(0,x.mQ)(K,F);case 12:if(rt=Mt.sent,Ge||F){Mt.next=19;break}if(!rt.mixedContent){Mt.next=18;break}return Mt.abrupt("return",r.addElementsFromMixedContentPaste(rt.mixedContent,{isPlainPaste:F,sceneX:Fe,sceneY:Ue}));case 18:rt.text&&(it=rt.text.trim()).startsWith("<svg")&&it.endsWith("</svg>")&&(Ge=(0,Ct.Pn)(it));case 19:if(!(0,Ct.Wr)(Ge)||rt.spreadsheet){Mt.next=28;break}if(r.isToolSupported("image")){Mt.next=23;break}return r.setState({errorMessage:(0,R.t)("errors.imageToolNotSupported")}),Mt.abrupt("return");case 23:return lt=r.createImageElement({sceneX:Fe,sceneY:Ue}),r.insertImageElement(lt,Ge),r.initializeImageDimensions(lt),r.setState({selectedElementIds:(0,un.Oh)((0,H.Z)({},lt.id,!0),r.state)}),Mt.abrupt("return");case 28:if(!r.props.onPaste){Mt.next=40;break}return Mt.prev=29,Mt.next=32,r.props.onPaste(rt,K);case 32:if(Mt.t0=Mt.sent,Mt.t0!==!1){Mt.next=35;break}return Mt.abrupt("return");case 35:Mt.next=40;break;case 37:Mt.prev=37,Mt.t1=Mt.catch(29),console.error(Mt.t1);case 40:if(!rt.errorMessage){Mt.next=44;break}r.setState({errorMessage:rt.errorMessage}),Mt.next=60;break;case 44:if(!rt.spreadsheet||F){Mt.next=48;break}r.setState({pasteDialog:{data:rt.spreadsheet,shown:!0}}),Mt.next=60;break;case 48:if(!rt.elements){Mt.next=53;break}Yt=rt.programmaticAPI?(0,kt.w)(rt.elements):rt.elements,r.addElementsFromPasteOrLibrary({elements:Yt,files:rt.files||null,position:"cursor",retainSeed:F}),Mt.next=60;break;case 53:if(!rt.text){Mt.next=60;break}if(ct=(0,p.eX)(rt.text),F||!(0,p.xm)(ct,r.props.validateEmbeddable)||!/^(http|https):\/\/[^\s/$.?#].[^\s]*$/.test(ct)&&((jt=(0,p.LM)(ct))===null||jt===void 0?void 0:jt.type)!=="video"){Mt.next=59;break}return(xt=r.insertEmbeddableElement({sceneX:Fe,sceneY:Ue,link:(0,Ko.$u)(ct)}))&&r.setState({selectedElementIds:(0,H.Z)({},xt.id,!0)}),Mt.abrupt("return");case 59:r.addTextFromPaste(rt.text,F);case 60:r.setActiveTool({type:"selection"}),K?.preventDefault();case 62:case"end":return Mt.stop()}},C,null,[[29,37]])}));return function(C){return d.apply(this,arguments)}}()),this.addElementsFromPasteOrLibrary=function(d){var C=(0,ie.ET)(d.elements,null,void 0),K=(0,V.KP)(C),ae=(0,E.Z)(K,4),ye=ae[0],F=ae[1],T=ae[2],fe=ae[3],Me=(0,s.TE)(ye,T)/2,je=(0,s.TE)(F,fe)/2,Fe=(0,D.Z)(d.position)==="object"?d.position.clientX:d.position==="cursor"?r.lastViewportPosition.x:r.state.width/2+r.state.offsetLeft,Ue=(0,D.Z)(d.position)==="object"?d.position.clientY:d.position==="cursor"?r.lastViewportPosition.y:r.state.height/2+r.state.offsetTop,Ge=(0,s.dE)({clientX:Fe,clientY:Ue},r.state),rt=Ge.x-Me,it=Ge.y-je,lt=(0,J.wC)(rt,it,r.state.gridSize),Yt=(0,E.Z)(lt,2),jt=Yt[0],ct=Yt[1],xt=(0,te._N)(C.map(function(Ht){return(0,g.BE)(Ht,{x:Ht.x+jt-ye,y:Ht.y+ct-F})}),{randomizeSeed:!d.retainSeed}),Mt=[].concat((0,y.Z)(r.scene.getElementsIncludingDeleted()),(0,y.Z)(xt));r.scene.replaceAllElements(Mt),xt.forEach(function(Ht){if((0,V.iB)(Ht)&&(0,L.Xh)(Ht)){var Tt=(0,et.tl)(Ht);(0,V.oN)(Ht,Tt)}}),d.files&&(r.files=Zt(Zt({},r.files),d.files)),r.history.resumeRecording();var Vt=(0,un.aI)(xt);r.setState(Zt(Zt({},r.state),{},{openSidebar:r.state.openSidebar&&r.device.editor.canFitSidebar&&ko.e_.get(Ta.t6)?r.state.openSidebar:null},(0,We.bO)({editingGroupId:null,selectedElementIds:Vt.reduce(function(Ht,Tt){return(0,L.Xh)(Tt)||(Ht[Tt.id]=!0),Ht},{})},r.scene.getNonDeletedElements(),r.state,r)),function(){d.files&&r.addNewImagesToImageCache()}),r.setActiveTool({type:"selection"}),d.fitToContent&&r.scrollToContent(xt,{fitToContent:!0})},this.setAppState=function(d,C){r.setState(d,C)},this.removePointer=function(d){Ro&&r.resetContextMenuTimer(),fn.pointers.delete(d.pointerId)},this.toggleLock=function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ui";r.state.activeTool.locked||(0,c.L)("toolbar","toggleLock","".concat(d," (").concat(r.device.editor.isMobile?"mobile":"desktop",")")),r.setState(function(C){return{activeTool:Zt(Zt(Zt({},C.activeTool),(0,s.Om)(r.state,C.activeTool.locked?{type:"selection"}:C.activeTool)),{},{locked:!C.activeTool.locked})}})},this.updateFrameRendering=function(d){r.setState(function(C){var K,ae,ye,F,T=typeof d=="function"?d(C.frameRendering):d;return{frameRendering:{enabled:(K=T?.enabled)!==null&&K!==void 0?K:C.frameRendering.enabled,clip:(ae=T?.clip)!==null&&ae!==void 0?ae:C.frameRendering.clip,name:(ye=T?.name)!==null&&ye!==void 0?ye:C.frameRendering.name,outline:(F=T?.outline)!==null&&F!==void 0?F:C.frameRendering.outline}}})},this.togglePenMode=function(d){r.setState(function(C){return{penMode:d??!C.penMode,penDetected:!0}})},this.onHandToolToggle=function(){r.actionManager.executeAction(Ka.eF)},this.zoomCanvas=function(d){r.setState(Zt({},(0,o.E)({viewportX:r.state.width/2+r.state.offsetLeft,viewportY:r.state.height/2+r.state.offsetTop,nextZoom:(0,ke.j)(d)},r.state)))},this.cancelInProgresAnimation=null,this.scrollToContent=function(){var d,C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:r.scene.getNonDeletedElements(),K=arguments.length>1?arguments[1]:void 0;(d=r.cancelInProgresAnimation)===null||d===void 0||d.call(r);var ae=Array.isArray(C)?C:[C],ye=r.state.zoom,F=r.state.scrollX,T=r.state.scrollY;if(K!=null&&K.fitToContent||K!=null&&K.fitToViewport){var fe=(0,Ka.JB)({targetElements:ae,appState:r.state,fitToViewport:!(K==null||!K.fitToViewport),viewportZoomFactor:K?.viewportZoomFactor}),Me=fe.appState;ye=Me.zoom,F=Me.scrollX,T=Me.scrollY}else{var je=(0,ke.W)(ae,r.state);F=je.scrollX,T=je.scrollY}if(K!=null&&K.animate){var Fe,Ue=r.state.scrollX,Ge=r.state.scrollY,rt=r.state.zoom.value,it=(0,s.B4)({fromValues:{scrollX:Ue,scrollY:Ge,zoom:rt},toValues:{scrollX:F,scrollY:T,zoom:ye.value},interpolateValue:function(lt,Yt,jt,ct){if(ct==="zoom")return lt*Math.pow(Yt/lt,(0,s.Vv)(jt))},onStep:function(lt){var Yt=lt.scrollX,jt=lt.scrollY,ct=lt.zoom;r.setState({scrollX:Yt,scrollY:jt,zoom:{value:ct}})},onStart:function(){r.setState({shouldCacheIgnoreZoom:!0})},onEnd:function(){r.setState({shouldCacheIgnoreZoom:!1})},onCancel:function(){r.setState({shouldCacheIgnoreZoom:!1})},duration:(Fe=K?.duration)!==null&&Fe!==void 0?Fe:500});r.cancelInProgresAnimation=function(){it(),r.cancelInProgresAnimation=null}}else r.setState({scrollX:F,scrollY:T,zoom:ye})},this.translateCanvas=function(d){var C;(C=r.cancelInProgresAnimation)===null||C===void 0||C.call(r),r.setState(d)},this.setToast=function(d){r.setState({toast:d})},this.restoreFileFromShare=(0,h.Z)(u().mark(function d(){var C,K,ae,ye;return u().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.prev=0,F.next=3,caches.open("web-share-target");case 3:return C=F.sent,F.next=6,C.match("shared-file");case 6:if(!(K=F.sent)){F.next=16;break}return F.next=10,K.blob();case 10:return ae=F.sent,ye=new File([ae],ae.name||"",{type:ae.type}),r.loadFileToCanvas(ye,null),F.next=15,C.delete("shared-file");case 15:window.history.replaceState(null,f.iC,window.location.pathname);case 16:F.next=21;break;case 18:F.prev=18,F.t0=F.catch(0),r.setState({errorMessage:F.t0.message});case 21:case"end":return F.stop()}},d,null,[[0,18]])})),this.addFiles=(0,s.tH)(function(d){var C=d.reduce(function(K,ae){return K.set(ae.id,ae),K},new Map);r.files=Zt(Zt({},r.files),Object.fromEntries(C)),r.scene.getNonDeletedElements().forEach(function(K){(0,L.wi)(K)&&C.has(K.fileId)&&(r.imageCache.delete(K.fileId),Eo.R.delete(K))}),r.scene.informMutation(),r.addNewImagesToImageCache()}),this.updateScene=(0,s.tH)(function(d){d.commitToHistory&&r.history.resumeRecording(),d.appState&&r.setState(d.appState),d.elements&&r.scene.replaceAllElements(d.elements),d.collaborators&&r.setState({collaborators:d.collaborators})}),this.onSceneUpdated=function(){r.setState({})},this.toggleSidebar=function(d){var C,K,ae=d.name,ye=d.tab,F=d.force;return F===void 0?C=((K=r.state.openSidebar)===null||K===void 0?void 0:K.name)===ae?null:ae:C=F?ae:null,r.setState({openSidebar:C?{name:C,tab:ye}:null}),!!C},this.updateCurrentCursorPosition=(0,s.tH)(function(d){r.lastViewportPosition.x=d.clientX,r.lastViewportPosition.y=d.clientY}),this.onKeyDown=(0,s.tH)(function(d){if("Proxy"in window&&(!d.shiftKey&&/^[A-Z]$/.test(d.key)||d.shiftKey&&/^[a-z]$/.test(d.key))&&(d=new Proxy(d,{get:function(jt,ct){var xt=jt[ct];return typeof xt=="function"?xt.bind(jt):ct==="key"?d.shiftKey?jt.key.toUpperCase():jt.key.toLowerCase():xt}})),d[_.tW.CTRL_OR_CMD]&&d.key.toLowerCase()===_.tW.V&&(Li=d.shiftKey,clearTimeout($i),$i=window.setTimeout(function(){Li=!1},100)),!d[_.tW.CTRL_OR_CMD]||!(0,s.s)(d.target)||d.code!==_.aU.MINUS&&d.code!==_.aU.EQUAL){if(!((0,s.s)(d.target)&&d.key!==_.tW.ESCAPE||(0,_.Wl)(d.key)&&(0,s._Z)(d.target)))if(d.key!==_.tW.QUESTION_MARK){if(d.key.toLowerCase()===_.tW.E&&d.shiftKey&&d[_.tW.CTRL_OR_CMD])return d.preventDefault(),void r.setState({openDialog:"imageExport"});if(d.key===_.tW.PAGE_UP||d.key===_.tW.PAGE_DOWN){var C=(d.shiftKey?r.state.width:r.state.height)/r.state.zoom.value;d.key===_.tW.PAGE_DOWN&&(C=-C),d.shiftKey?r.translateCanvas(function(jt){return{scrollX:jt.scrollX+C}}):r.translateCanvas(function(jt){return{scrollY:jt.scrollY+C}})}if(!r.actionManager.handleKeyDown(d)&&!r.state.viewModeEnabled){if(d[_.tW.CTRL_OR_CMD]&&r.state.isBindingEnabled&&r.setState({isBindingEnabled:!1}),(0,_.Wl)(d.key)){var K=r.state.gridSize&&(d.shiftKey?f.$e:r.state.gridSize)||(d.shiftKey?f.Iw:f.$e),ae=0,ye=0;d.key===_.tW.ARROW_LEFT?ae=-K:d.key===_.tW.ARROW_RIGHT?ae=K:d.key===_.tW.ARROW_UP?ye=-K:d.key===_.tW.ARROW_DOWN&&(ye=K);var F=r.scene.getSelectedElements({selectedElementIds:r.state.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0});F.forEach(function(jt){(0,g.DR)(jt,{x:jt.x+ae,y:jt.y+ye}),(0,O.Ww)(jt,{simultaneouslyUpdated:F})}),r.maybeSuggestBindingForAll(F),d.preventDefault()}else if(d.key===_.tW.ENTER){var T=r.scene.getSelectedElements(r.state);if(T.length===1){var fe=T[0];if(d[_.tW.CTRL_OR_CMD])(0,L.bt)(fe)&&(r.state.editingLinearElement&&r.state.editingLinearElement.elementId===T[0].id||(r.history.resumeRecording(),r.setState({editingLinearElement:new ce._(fe,r.scene)})));else{if((0,V.iB)(fe)||(0,et.Zr)(fe)){var Me;(0,V.iB)(fe)||(Me=fe);var je=(0,et.TP)(fe,r.state),Fe=je.x,Ue=je.y;return r.startTextEditing({sceneX:Fe,sceneY:Ue,container:Me}),void d.preventDefault()}(0,L.He)(fe)&&r.setState({editingFrame:fe.id})}}}else if(!d.ctrlKey&&!d.altKey&&!d.metaKey&&r.state.draggingElement===null){var Ge=function(jt){var ct=i.find(function(xt,Mt){return xt.numericKey!=null&&jt===xt.numericKey.toString()||xt.key&&(typeof xt.key=="string"?xt.key===jt:xt.key.includes(jt))});return ct?.value||null}(d.key);Ge?(r.state.activeTool.type!==Ge&&(0,c.L)("toolbar",Ge,"keyboard (".concat(r.device.editor.isMobile?"mobile":"desktop",")")),r.setActiveTool({type:Ge}),d.stopPropagation()):d.key===_.tW.Q&&(r.toggleLock("keyboard"),d.stopPropagation())}if(d.key===_.tW.SPACE&&fn.pointers.size===0&&(Vo=!0,(0,Gr.KJ)(r.interactiveCanvas,f.oc.GRAB),d.preventDefault()),!(d.key!==_.tW.G&&d.key!==_.tW.S||d.altKey||d[_.tW.CTRL_OR_CMD])){var rt=r.scene.getSelectedElements(r.state);if(r.state.activeTool.type==="selection"&&!rt.length)return;d.key===_.tW.G&&((0,ke.$b)(r.state.activeTool.type)||rt.some(function(jt){return(0,ke.$b)(jt.type)}))&&(r.setState({openPopup:"elementBackground"}),d.stopPropagation()),d.key===_.tW.S&&(r.setState({openPopup:"elementStroke"}),d.stopPropagation())}if(d.key!==_.tW.K||d.altKey||d[_.tW.CTRL_OR_CMD]){!d[_.tW.CTRL_OR_CMD]||d.key!==_.tW.BACKSPACE&&d.key!==_.tW.DELETE||ko.e_.set(Da.w,"clearCanvas");var it=d.key.toLocaleLowerCase(),lt=it===_.tW.S&&d.shiftKey,Yt=d.key===_.tW.I||it===_.tW.G&&d.shiftKey;(lt||Yt)&&r.openEyeDropper({type:lt?"stroke":"background"})}else r.state.activeTool.type==="laser"?r.setActiveTool({type:"selection"}):r.setActiveTool({type:"laser"})}}else r.setState({openDialog:"help"})}else d.preventDefault()}),this.onWheel=(0,s.tH)(function(d){d.target instanceof HTMLCanvasElement||!d.ctrlKey||d.preventDefault()}),this.onKeyUp=(0,s.tH)(function(d){if(d.key===_.tW.SPACE&&(r.state.viewModeEnabled?(0,Gr.KJ)(r.interactiveCanvas,f.oc.GRAB):r.state.activeTool.type==="selection"?(0,Gr.z8)(r.interactiveCanvas):((0,Gr.Uk)(r.interactiveCanvas,r.state),r.setState({selectedElementIds:(0,un.Oh)({},r.state),selectedGroupIds:{},editingGroupId:null,activeEmbeddable:null})),Vo=!1),d[_.tW.CTRL_OR_CMD]||r.state.isBindingEnabled||r.setState({isBindingEnabled:!0}),(0,_.Wl)(d.key)){var C=r.scene.getSelectedElements(r.state);(0,O.N1)(r.state)?(0,O.el)(C):(0,O.H)(C),r.setState({suggestedBindings:[]})}}),this.isToolSupported=function(d){var C;return((C=r.props.UIOptions.tools)===null||C===void 0?void 0:C[d])!==!1},this.setActiveTool=function(d){if(r.isToolSupported(d.type)){var C,K=(0,s.Om)(r.state,d);K.type==="hand"?(0,Gr.KJ)(r.interactiveCanvas,f.oc.GRAB):Vo||(0,Gr.Uk)(r.interactiveCanvas,r.state),(0,s.wO)(document.activeElement)&&r.focusContainer(),(0,L.dt)(K.type)||r.setState({suggestedBindings:[]}),K.type==="image"&&r.onImageAction({insertOnCanvasDirectly:(C=d.type==="image"&&d.insertOnCanvasDirectly)!==null&&C!==void 0&&C}),r.setState(function(ae){var ye={snapLines:ae.snapLines.length?[]:ae.snapLines,originSnapOffset:null,activeEmbeddable:null};return K.type!=="selection"?Zt(Zt({},ae),{},{activeTool:K,selectedElementIds:(0,un.Oh)({},ae),selectedGroupIds:(0,un.Oh)({},ae),editingGroupId:null,multiElement:null},ye):Zt(Zt({},ae),{},{activeTool:K},ye)})}else console.warn('"'.concat(d.type,'" tool is disabled via "UIOptions.canvasActions.tools.').concat(d.type,'"'))},this.setOpenDialog=function(d){r.setState({openDialog:d})},this.setCursor=function(d){(0,Gr.KJ)(r.interactiveCanvas,d)},this.resetCursor=function(){(0,Gr.z8)(r.interactiveCanvas)},this.isTouchScreenMultiTouchGesture=function(){return fn.pointers.size>=2},this.onGestureStart=(0,s.tH)(function(d){d.preventDefault(),r.isTouchScreenMultiTouchGesture()&&r.setState({selectedElementIds:(0,un.Oh)({},r.state),activeEmbeddable:null}),fn.initialScale=r.state.zoom.value}),this.onGestureChange=(0,s.tH)(function(d){if(d.preventDefault(),!r.isTouchScreenMultiTouchGesture()){var C=fn.initialScale;C&&r.setState(function(K){return Zt({},(0,o.E)({viewportX:r.lastViewportPosition.x,viewportY:r.lastViewportPosition.y,nextZoom:(0,ke.j)(C*d.scale)},K))})}}),this.onGestureEnd=(0,s.tH)(function(d){d.preventDefault(),r.isTouchScreenMultiTouchGesture()&&r.setState({previousSelectedElementIds:{},selectedElementIds:(0,un.Oh)(r.state.previousSelectedElementIds,r.state)}),fn.initialScale=null}),this.startTextEditing=function(d){var C,K,ae,ye,F=d.sceneX,T=d.sceneY,fe=d.insertAtParentCenter,Me=fe===void 0||fe,je=d.container,Fe=!1,Ue=Me&&r.getTextWysiwygSnappedToCenterPosition(F,T,r.state,je);je&&Ue&&((0,et.WJ)(je)||(Fe=!0));var Ge=null,rt=r.scene.getSelectedElements(r.state),it=((C=Ge=rt.length===1?(0,V.iB)(rt[0])?rt[0]:je?(0,et.WJ)(rt[0]):r.getTextElementAtPosition(F,T):r.getTextElementAtPosition(F,T))===null||C===void 0?void 0:C.fontFamily)||r.state.currentItemFontFamily,lt=((K=Ge)===null||K===void 0?void 0:K.lineHeight)||(0,et.PT)(it),Yt=r.state.currentItemFontSize;if(!Ge&&Fe&&je&&!(0,L.Yv)(je)){var jt={fontSize:Yt,fontFamily:it},ct=(0,et.AT)((0,s.mO)(jt),lt),xt=(0,et.w_)(Yt,lt),Mt=Math.max(je.height,xt),Vt=Math.max(je.width,ct);(0,g.DR)(je,{height:Mt,width:Vt}),F=je.x+Vt/2,T=je.y+Mt/2,Ue&&(Ue=r.getTextWysiwygSnappedToCenterPosition(F,T,r.state,je))}var Ht=r.getTopLayerFrameAtSceneCoords({x:F,y:T}),Tt=Ge||(0,V.VL)({x:Ue?Ue.elementCenterX:F,y:Ue?Ue.elementCenterY:T,strokeColor:r.state.currentItemStrokeColor,backgroundColor:r.state.currentItemBackgroundColor,fillStyle:r.state.currentItemFillStyle,strokeWidth:r.state.currentItemStrokeWidth,strokeStyle:r.state.currentItemStrokeStyle,roughness:r.state.currentItemRoughness,opacity:r.state.currentItemOpacity,text:"",fontSize:Yt,fontFamily:it,textAlign:Ue?"center":r.state.currentItemTextAlign,verticalAlign:Ue?f.oX.MIDDLE:f.hs,containerId:Fe?je?.id:void 0,groupIds:(ae=je?.groupIds)!==null&&ae!==void 0?ae:[],lineHeight:lt,angle:(ye=je?.angle)!==null&&ye!==void 0?ye:0,frameId:Ht?Ht.id:null});if(!Ge&&Fe&&je&&(0,g.DR)(je,{boundElements:(je.boundElements||[]).concat({type:"text",id:Tt.id})}),r.setState({editingElement:Tt}),!Ge)if(je&&Fe){var Kt=r.scene.getElementIndex(je.id);r.scene.insertElementAtIndex(Tt,Kt+1)}else r.scene.addNewElement(Tt);r.setState({editingElement:Tt}),r.handleTextWysiwyg(Tt,{isExistingElement:!!Ge})},this.handleCanvasDoubleClick=function(d){if(!r.state.multiElement&&r.state.activeTool.type==="selection"){var C=r.scene.getSelectedElements(r.state);if(C.length===1&&(0,L.bt)(C[0])){if(d[_.tW.CTRL_OR_CMD]&&(!r.state.editingLinearElement||r.state.editingLinearElement.elementId!==C[0].id))return r.history.resumeRecording(),void r.setState({editingLinearElement:new ce._(C[0],r.scene)});if(r.state.editingLinearElement&&r.state.editingLinearElement.elementId===C[0].id)return}(0,Gr.z8)(r.interactiveCanvas);var K=(0,s.dE)(d,r.state),ae=K.x,ye=K.y;if((0,We.iJ)(r.state).length>0){var F=r.getElementAtPosition(ae,ye),T=F&&(0,We.YS)(F,r.state.selectedGroupIds);if(T)return void r.setState(function(Fe){return Zt(Zt({},Fe),(0,We.bO)({editingGroupId:T,selectedElementIds:(0,H.Z)({},F.id,!0)},r.scene.getNonDeletedElements(),Fe,r))})}if((0,Gr.z8)(r.interactiveCanvas),!d[_.tW.CTRL_OR_CMD]&&!r.state.viewModeEnabled){var fe=r.getElementAtPosition(ae,ye);if((0,L.gs)(fe))return void r.setState({activeEmbeddable:{element:fe,state:"active"}});var Me=(0,et.OW)(r.scene.getNonDeletedElements(),r.state,ae,ye);if(Me&&((0,L.Xo)(Me)||!(0,s.Qm)(Me.backgroundColor)||(0,Ba.Qu)(Me,r.state,r.frameNameBoundsCache,[ae,ye]))){var je=(0,et.TP)(Me,r.state);ae=je.x,ye=je.y}r.startTextEditing({sceneX:ae,sceneY:ye,insertAtParentCenter:!d.altKey,container:Me})}}},this.getElementLinkAtPosition=function(d,C){var K=r.scene.getNonDeletedElements().slice().reverse(),ae=1/0;return K.find(function(ye,F){return C&&ye.id===C.id&&(ae=F),ye.link&&F<=ae&&(0,Io.Ni)(ye,r.state,[d.x,d.y],r.device.editor.isMobile)})},this.redirectToLink=function(d,C){var K=(0,J.LW)(r.lastPointerDownEvent.clientX,r.lastPointerDownEvent.clientY,r.lastPointerUpEvent.clientX,r.lastPointerUpEvent.clientY);if(!(!r.hitLinkElement||C&&K>f.f||!C&&K!==0)){var ae=(0,s.dE)(r.lastPointerDownEvent,r.state),ye=(0,Io.Ni)(r.hitLinkElement,r.state,[ae.x,ae.y],r.device.editor.isMobile),F=(0,s.dE)(r.lastPointerUpEvent,r.state),T=(0,Io.Ni)(r.hitLinkElement,r.state,[F.x,F.y],r.device.editor.isMobile);if(ye&&T){var fe,Me,je=r.hitLinkElement.link;if(je&&(je=(0,Ko.$u)(je),r.props.onLinkOpen&&(Me=(0,s.ag)(f.Ks.EXCALIDRAW_LINK,d.nativeEvent),r.props.onLinkOpen(Zt(Zt({},r.hitLinkElement),{},{link:je}),Me)),(fe=Me)===null||fe===void 0||!fe.defaultPrevented)){var Fe=(0,Ko.q$)(je)?"_self":"_blank",Ue=window.open(void 0,Fe);Ue&&(Ue.opener=null,Ue.location=je)}}}},this.getTopLayerFrameAtSceneCoords=function(d){var C=r.scene.getNonDeletedFrames().filter(function(K){return(0,_n.Dn)(d,K)});return C.length?C[C.length-1]:null},this.handleCanvasPointerMove=function(d){r.savePointer(d.clientX,d.clientY,r.state.cursorButton),fn.pointers.has(d.pointerId)&&fn.pointers.set(d.pointerId,{x:d.clientX,y:d.clientY});var C=fn.initialScale;if(fn.pointers.size===2&&fn.lastCenter&&C&&fn.initialDistance){var K=re(fn.pointers),ae=K.x-fn.lastCenter.x,ye=K.y-fn.lastCenter.y;fn.lastCenter=K;var F=me(Array.from(fn.pointers.values())),T=r.state.activeTool.type==="freedraw"&&r.state.penMode?1:F/fn.initialDistance,fe=T?(0,ke.j)(C*T):r.state.zoom.value;r.setState(function(In){var Fn=(0,o.E)({viewportX:K.x,viewportY:K.y,nextZoom:fe},In);r.translateCanvas({zoom:Fn.zoom,scrollX:Fn.scrollX+ae/fe,scrollY:Fn.scrollY+ye/fe,shouldCacheIgnoreZoom:!0})}),r.resetShouldCacheIgnoreZoomDebounced()}else fn.lastCenter=fn.initialDistance=fn.initialScale=null;if(!(Vo||ja||Ti||(0,k.l$)(r.state))){var Me=(0,ke._4)(Di,d.clientX-r.state.offsetLeft,d.clientY-r.state.offsetTop).isOverEither;r.state.draggingElement||r.state.multiElement||(Me?(0,Gr.z8)(r.interactiveCanvas):(0,Gr.Uk)(r.interactiveCanvas,r.state));var je,Fe=(0,s.dE)(d,r.state),Ue=Fe.x,Ge=Fe.y;if(r.state.draggingElement||(je=r.state.activeTool.type)!=="rectangle"&&je!=="ellipse"&&je!=="diamond"&&je!=="frame"&&je!=="image")r.state.draggingElement||r.setState({snapLines:[]});else{var rt=function(In,Fn,vn,Nn){if(!vo({event:Nn,selectedElements:[],appState:Fn}))return{originOffset:{x:0,y:0},snapLines:[]};var Dn,dn=(0,un.CF)(In,[],Fn),Po=go(Fn.zoom.value),mo={x:Po,y:Po},Lr=[],wn=[],An=ao(dn);try{for(An.s();!(Dn=An.n()).done;){var Yn,Vn=Dn.value,qn=ao(Yo([Vn]));try{for(qn.s();!(Yn=qn.n()).done;){var eo=Yn.value,sn=eo[0]-vn.x;Math.abs(sn)<=Math.abs(mo.x)&&(Math.abs(sn)<Math.abs(mo.x)&&(wn.length=0),wn.push({type:"pointer",points:[eo,[eo[0],vn.y]],direction:"vertical"}),mo.x=sn);var Xn=eo[1]-vn.y;Math.abs(Xn)<=Math.abs(mo.y)&&(Math.abs(Xn)<Math.abs(mo.y)&&(Lr.length=0),Lr.push({type:"pointer",points:[eo,[vn.x,eo[1]]],direction:"horizontal"}),mo.y=Xn)}}catch(so){qn.e(so)}finally{qn.f()}}}catch(so){An.e(so)}finally{An.f()}return{originOffset:{x:wn.length>0?wn[0].points[0][0]-vn.x:0,y:Lr.length>0?Lr[0].points[0][1]-vn.y:0},snapLines:[].concat(wn,Lr)}}(r.scene.getNonDeletedElements(),r.state,{x:Ue,y:Ge},d),it=rt.originOffset,lt=rt.snapLines;r.setState({snapLines:lt,originSnapOffset:it})}if(r.state.editingLinearElement&&!r.state.editingLinearElement.isDragging){var Yt=ce._.handlePointerMove(d,Ue,Ge,r.state);Yt&&Yt!==r.state.editingLinearElement&&(0,de.flushSync)(function(){r.setState({editingLinearElement:Yt})}),Yt?.lastUncommittedPoint!=null?r.maybeSuggestBindingAtCursor(Fe):(0,de.flushSync)(function(){r.setState({suggestedBindings:[]})})}if((0,L.Lx)(r.state.activeTool.type)){var jt=r.state.draggingElement;(0,L.Mn)(jt,!1)?r.maybeSuggestBindingsForLinearElementAtCoords(jt,[Fe],r.state.startBoundElement):r.maybeSuggestBindingAtCursor(Fe)}if(r.state.multiElement){var ct=r.state.multiElement,xt=ct.x,Mt=ct.y,Vt=ct.points,Ht=ct.lastCommittedPoint,Tt=Vt[Vt.length-1];if((0,Gr.Uk)(r.interactiveCanvas,r.state),Tt===Ht)(0,J.LW)(Ue-xt,Ge-Mt,Tt[0],Tt[1])>=f.qx?(0,g.DR)(ct,{points:[].concat((0,y.Z)(Vt),[[Ue-xt,Ge-Mt]])}):(0,Gr.KJ)(r.interactiveCanvas,f.oc.POINTER);else if(Vt.length>2&&Ht&&(0,J.LW)(Ue-xt,Ge-Mt,Ht[0],Ht[1])<f.qx)(0,Gr.KJ)(r.interactiveCanvas,f.oc.POINTER),(0,g.DR)(ct,{points:Vt.slice(0,-1)});else{var Kt,hr=(0,J.wC)(Ue,Ge,d[_.tW.CTRL_OR_CMD]?null:r.state.gridSize),Mr=(0,E.Z)(hr,2),Nr=Mr[0],Kr=Mr[1],tn=(Kt=ct?.lastCommittedPoint)!==null&&Kt!==void 0?Kt:[0,0],Qr=(0,E.Z)(tn,2),Pr=Qr[0],on=Qr[1],Br=Nr-xt-Pr,en=Kr-Mt-on;if((0,_.Ge)(d)){var gn=(0,V.o4)(Pr+xt,on+Mt,Nr,Kr);Br=gn.width,en=gn.height}(0,J.g6)(Vt,r.state.zoom.value)&&(0,Gr.KJ)(r.interactiveCanvas,f.oc.POINTER),(0,g.DR)(ct,{points:[].concat((0,y.Z)(Vt.slice(0,-1)),[[Pr+Br,on+en]])})}}else if(!(d.buttons||r.state.activeTool.type!=="selection"&&r.state.activeTool.type!=="text"&&r.state.activeTool.type!=="eraser")){var xn=r.scene.getNonDeletedElements(),pn=r.scene.getSelectedElements(r.state);if(pn.length!==1||Me||r.state.editingLinearElement){if(pn.length>1&&!Me){var Tn=(0,V.n2)((0,V.KP)(pn),Ue,Ge,r.state.zoom,d.pointerType);if(Tn)return void(0,Gr.KJ)(r.interactiveCanvas,(0,V.Un)({transformHandleType:Tn}))}}else{var Xr=(0,V.jt)(xn,r.state,Ue,Ge,r.state.zoom,d.pointerType);if(Xr&&Xr.transformHandleType)return void(0,Gr.KJ)(r.interactiveCanvas,(0,V.Un)(Xr))}var cn=r.getElementAtPosition(Fe.x,Fe.y);if(r.hitLinkElement=r.getElementLinkAtPosition(Fe,cn),!(0,k.EN)(r.state))if(r.hitLinkElement&&!r.state.selectedElementIds[r.hitLinkElement.id])(0,Gr.KJ)(r.interactiveCanvas,f.oc.POINTER),(0,Io.Pp)(r.hitLinkElement,r.state);else if((0,Io.lV)(),cn&&(cn.link||(0,L.gs)(cn))&&r.state.selectedElementIds[cn.id]&&!r.state.contextMenu&&!r.state.showHyperlinkPopup)r.setState({showHyperlinkPopup:"info"});else if(r.state.activeTool.type==="text")(0,Gr.KJ)(r.interactiveCanvas,(0,V.iB)(cn)?f.oc.TEXT:f.oc.CROSSHAIR);else if(r.state.viewModeEnabled)(0,Gr.KJ)(r.interactiveCanvas,f.oc.GRAB);else if(Me)(0,Gr.KJ)(r.interactiveCanvas,f.oc.AUTO);else if(r.state.selectedLinearElement)r.handleHoverSelectedLinearElement(r.state.selectedLinearElement,Ue,Ge);else if(d[_.tW.CTRL_OR_CMD])(0,Gr.KJ)(r.interactiveCanvas,f.oc.AUTO);else{var Wn;(cn||r.isHittingCommonBoundingBoxOfSelectedElements(Fe,pn))&&(cn==null||!cn.locked)&&(cn&&(0,L.gs)(cn)&&r.isEmbeddableCenter(cn,d,Ue,Ge)?((0,Gr.KJ)(r.interactiveCanvas,f.oc.POINTER),r.setState({activeEmbeddable:{element:cn,state:"hover"}})):((0,Gr.KJ)(r.interactiveCanvas,f.oc.MOVE),((Wn=r.state.activeEmbeddable)===null||Wn===void 0?void 0:Wn.state)==="hover"&&r.setState({activeEmbeddable:null})))}}}},this.handleEraser=function(d,C,K){for(var ae=function(rt){rt.forEach(function(it){it.locked||(ye.push(it.id),d.altKey?C.elementIdsToErase[it.id]&&C.elementIdsToErase[it.id].erase&&(C.elementIdsToErase[it.id].erase=!1):C.elementIdsToErase[it.id]||(C.elementIdsToErase[it.id]={erase:!0,opacity:it.opacity}))})},ye=[],F=(0,J.LW)(C.lastCoords.x,C.lastCoords.y,K.x,K.y),T=10/r.state.zoom.value,fe=Zt({},C.lastCoords),Me=0;Me<=F&&(ae(r.getElementsAtPosition(fe.x,fe.y)),Me!==F);){var je=(Me=Math.min(Me+T,F))/F,Fe=(1-je)*fe.x+je*K.x,Ue=(1-je)*fe.y+je*K.y;fe.x=Fe,fe.y=Ue}var Ge=r.scene.getElementsIncludingDeleted().map(function(rt){var it=(0,L.Xh)(rt)&&ye.includes(rt.containerId)?rt.containerId:rt.id;if(ye.includes(it)){if(!d.altKey)return(0,g.BE)(rt,{opacity:f.xY});if(C.elementIdsToErase[it]&&C.elementIdsToErase[it].erase===!1)return(0,g.BE)(rt,{opacity:C.elementIdsToErase[it].opacity})}return rt});r.scene.replaceAllElements(Ge),C.lastCoords.x=K.x,C.lastCoords.y=K.y},this.handleTouchMove=function(d){_a=!0},this.handleCanvasPointerDown=function(d){var C,K;if(r.state.contextMenu&&r.setState({contextMenu:null}),r.state.snapLines&&r.setAppState({snapLines:[]}),r.updateGestureOnPointerDown(d),d.pointerType==="touch"&&r.state.draggingElement&&r.state.draggingElement.type==="freedraw"){var ae=r.state.draggingElement;r.updateScene(Zt(Zt({},ae.points.length<10?{elements:r.scene.getElementsIncludingDeleted().filter(function(lt){return lt.id!==ae.id})}:{}),{},{appState:{draggingElement:null,editingElement:null,startBoundElement:null,suggestedBindings:[],selectedElementIds:(0,un.Oh)(Object.keys(r.state.selectedElementIds).filter(function(lt){return lt!==ae.id}).reduce(function(lt,Yt){return lt[Yt]=r.state.selectedElementIds[Yt],lt},{}),r.state)}}))}else{var ye=document.getSelection();if(ye!=null&&ye.anchorNode&&ye.removeAllRanges(),r.maybeOpenContextMenuAfterPointerDownOnTouchDevices(d),r.maybeCleanupAfterMissingPointerUp(d),r.state.penDetected||d.pointerType!=="pen"||r.setState(function(lt){return{penMode:!0,penDetected:!0}}),!r.device.isTouchScreen&&["pen","touch"].includes(d.pointerType)&&(r.device=(0,s.v4)(r.device,{isTouchScreen:!0})),!(ja||(r.lastPointerDownEvent=d,r.handleCanvasPanUsingWheelOrSpaceDrag(d)||(r.setState({lastPointerDownWith:d.pointerType,cursorButton:"down"}),r.savePointer(d.clientX,d.clientY,"down"),d.button!==f.Oh.MAIN&&d.button!==f.Oh.TOUCH||fn.pointers.size>1)))){var F=r.initialPointerDownState(d);if(r.setState({selectedElementsAreBeingDragged:!1}),!r.handleDraggingScrollBar(d,F)&&(r.clearSelectionIfNotUsingSelection(),r.updateBindingEnabledOnPointerMove(d),!r.handleSelectionOnPointerDown(d,F)&&(!r.state.penMode||d.pointerType!=="touch"||r.state.activeTool.type==="selection"||r.state.activeTool.type==="text"||r.state.activeTool.type==="image")))if(r.state.activeTool.type!=="text"){if(r.state.activeTool.type==="arrow"||r.state.activeTool.type==="line")r.handleLinearElementOnPointerDown(d,r.state.activeTool.type,F);else if(r.state.activeTool.type==="image"){(0,Gr.KJ)(r.interactiveCanvas,f.oc.CROSSHAIR);var T=r.state.pendingImageElementId&&r.scene.getElement(r.state.pendingImageElementId);if(!T)return;r.setState({draggingElement:T,editingElement:T,pendingImageElementId:null,multiElement:null});var fe=(0,s.dE)(d,r.state),Me=fe.x,je=fe.y,Fe=r.getTopLayerFrameAtSceneCoords({x:Me,y:je});(0,g.DR)(T,{x:Me,y:je,frameId:Fe?Fe.id:null})}else r.state.activeTool.type==="freedraw"?r.handleFreeDrawElementOnPointerDown(d,r.state.activeTool.type,F):r.state.activeTool.type==="custom"?(0,Gr.Uk)(r.interactiveCanvas,r.state):r.state.activeTool.type==="frame"?r.createFrameElementOnPointerDown(F):r.state.activeTool.type==="laser"?r.laserPathManager.startPath(F.lastCoords.x,F.lastCoords.y):r.state.activeTool.type!=="eraser"&&r.state.activeTool.type!=="hand"&&r.createGenericElementOnPointerDown(r.state.activeTool.type,F);(C=r.props)===null||C===void 0||(K=C.onPointerDown)===null||K===void 0||K.call(C,r.state.activeTool,F),r.onPointerDownEmitter.trigger(r.state.activeTool,F,d);var Ue=r.onPointerMoveFromPointerDownHandler(F),Ge=r.onPointerUpFromPointerDownHandler(F),rt=r.onKeyDownFromPointerDownHandler(F),it=r.onKeyUpFromPointerDownHandler(F);zo=Ge,r.state.viewModeEnabled&&r.state.activeTool.type!=="laser"||(window.addEventListener(f.Ks.POINTER_MOVE,Ue),window.addEventListener(f.Ks.POINTER_UP,Ge),window.addEventListener(f.Ks.KEYDOWN,rt),window.addEventListener(f.Ks.KEYUP,it),F.eventListeners.onMove=Ue,F.eventListeners.onUp=Ge,F.eventListeners.onKeyUp=it,F.eventListeners.onKeyDown=rt)}else r.handleTextOnPointerDown(d,F)}}},this.handleCanvasPointerUp=function(d){var C,K;r.removePointer(d),r.lastPointerUpEvent=d;var ae=(0,s.dE)({clientX:d.clientX,clientY:d.clientY},r.state),ye=d.timeStamp-((C=(K=r.lastPointerDownEvent)===null||K===void 0?void 0:K.timeStamp)!==null&&C!==void 0?C:0);if(r.device.editor.isMobile&&ye<300){var F=r.getElementAtPosition(ae.x,ae.y);if((0,L.gs)(F)&&r.isEmbeddableCenter(F,d,ae.x,ae.y))return void r.handleEmbeddableCenterClick(F)}if(r.device.isTouchScreen){var T=r.getElementAtPosition(ae.x,ae.y);r.hitLinkElement=r.getElementLinkAtPosition(ae,T)}r.hitLinkElement&&!r.state.selectedElementIds[r.hitLinkElement.id]?ye<300&&r.hitLinkElement.type==="embeddable"&&!(0,Io.wq)(r.hitLinkElement,r.state,[ae.x,ae.y])?r.handleEmbeddableCenterClick(r.hitLinkElement):r.redirectToLink(d,r.device.isTouchScreen):r.state.viewModeEnabled&&r.setState({activeEmbeddable:null,selectedElementIds:{}})},this.maybeOpenContextMenuAfterPointerDownOnTouchDevices=function(d){d.pointerType==="touch"&&(_a=!1,Ro?_a=!0:Ro=window.setTimeout(function(){Ro=0,_a||r.handleCanvasContextMenu(d)},f.nM))},this.resetContextMenuTimer=function(){clearTimeout(Ro),Ro=0,_a=!1},this.handleCanvasPanUsingWheelOrSpaceDrag=function(d){if(!(fn.pointers.size<=1&&(d.button===f.Oh.WHEEL||d.button===f.Oh.MAIN&&Vo||(0,k.l$)(r.state)||r.state.viewModeEnabled))||(0,V.iB)(r.state.editingElement))return!1;ja=!0,d.preventDefault();var C=!1,K=/Linux/.test(window.navigator.platform);(0,Gr.KJ)(r.interactiveCanvas,f.oc.GRABBING);var ae=d.clientX,ye=d.clientY,F=(0,s.$9)(function(fe){var Me=ae-fe.clientX,je=ye-fe.clientY;if(ae=fe.clientX,ye=fe.clientY,K&&!C&&(Math.abs(Me)>1||Math.abs(je)>1)){C=!0;var Fe=function Ue(Ge){document.body.removeEventListener(f.Ks.PASTE,Ue),Ge.stopPropagation()};document.body.addEventListener(f.Ks.PASTE,Fe),window.addEventListener(f.Ks.POINTER_UP,function Ue(){setTimeout(function(){document.body.removeEventListener(f.Ks.PASTE,Fe),window.removeEventListener(f.Ks.POINTER_UP,Ue)},100)})}r.translateCanvas({scrollX:r.state.scrollX-Me/r.state.zoom.value,scrollY:r.state.scrollY-je/r.state.zoom.value})}),T=(0,s.tH)(zo=function(){zo=null,ja=!1,Vo||(r.state.viewModeEnabled?(0,Gr.KJ)(r.interactiveCanvas,f.oc.GRAB):(0,Gr.Uk)(r.interactiveCanvas,r.state)),r.setState({cursorButton:"up"}),r.savePointer(d.clientX,d.clientY,"up"),window.removeEventListener(f.Ks.POINTER_MOVE,F),window.removeEventListener(f.Ks.POINTER_UP,T),window.removeEventListener(f.Ks.BLUR,T),F.flush()});return window.addEventListener(f.Ks.BLUR,T),window.addEventListener(f.Ks.POINTER_MOVE,F,{passive:!0}),window.addEventListener(f.Ks.POINTER_UP,T),!0},this.clearSelectionIfNotUsingSelection=function(){r.state.activeTool.type!=="selection"&&r.setState({selectedElementIds:(0,un.Oh)({},r.state),selectedGroupIds:{},editingGroupId:null,activeEmbeddable:null})},this.handleSelectionOnPointerDown=function(d,C){if(r.state.activeTool.type==="selection"){var K=r.scene.getNonDeletedElements(),ae=r.scene.getSelectedElements(r.state);if(ae.length!==1||r.state.editingLinearElement)ae.length>1&&(C.resize.handleType=(0,V.n2)((0,V.KP)(ae),C.origin.x,C.origin.y,r.state.zoom,d.pointerType));else{var ye=(0,V.jt)(K,r.state,C.origin.x,C.origin.y,r.state.zoom,d.pointerType);ye!=null&&(r.setState({resizingElement:ye.element}),C.resize.handleType=ye.transformHandleType)}if(C.resize.handleType)C.resize.isResizing=!0,C.resize.offset=(0,s.AK)((0,V.xx)(C.resize.handleType,ae,C.origin.x,C.origin.y)),ae.length===1&&(0,L.bt)(ae[0])&&ae[0].points.length===2&&(C.resize.arrowDirection=(0,V.T)(C.resize.handleType,ae[0]));else{var F;if(r.state.selectedLinearElement){var T=r.state.editingLinearElement||r.state.selectedLinearElement,fe=ce._.handlePointerDown(d,r.state,r.history,C.origin,T);if(fe.hitElement&&(C.hit.element=fe.hitElement),fe.linearElementEditor&&(r.setState({selectedLinearElement:fe.linearElementEditor}),r.state.editingLinearElement&&r.setState({editingLinearElement:fe.linearElementEditor})),fe.didAddPoint)return!0}if(C.hit.element=(F=C.hit.element)!==null&&F!==void 0?F:r.getElementAtPosition(C.origin.x,C.origin.y),C.hit.element&&r.getElementLinkAtPosition({x:C.origin.x,y:C.origin.y},C.hit.element))return!1;C.hit.allHitElements=r.getElementsAtPosition(C.origin.x,C.origin.y);var Me=C.hit.element,je=C.hit.allHitElements.some(function(Fe){return r.isASelectedElement(Fe)});if(Me!==null&&je||d.shiftKey||C.hit.hasHitCommonBoundingBoxOfSelectedElements||r.clearSelection(Me),r.state.editingLinearElement)r.setState({selectedElementIds:(0,un.Oh)((0,H.Z)({},r.state.editingLinearElement.elementId,!0),r.state)});else if(Me!=null){if(d[_.tW.CTRL_OR_CMD])return r.state.selectedElementIds[Me.id]||(C.hit.wasAddedToSelection=!0),r.setState(function(Fe){return Zt(Zt({},(0,We.iE)(Fe,Me)),{},{previousSelectedElementIds:r.state.selectedElementIds})}),!1;r.state.selectedElementIds[Me.id]||(r.state.editingGroupId&&!(0,We.Nd)(Me,r.state.editingGroupId)&&r.setState({selectedElementIds:(0,un.Oh)({},r.state),selectedGroupIds:{},editingGroupId:null,activeEmbeddable:null}),je||C.hit.hasHitCommonBoundingBoxOfSelectedElements||(r.setState(function(Fe){var Ue=Zt(Zt({},Fe.selectedElementIds),{},(0,H.Z)({},Me.id,!0)),Ge=[];if(Object.keys(Fe.selectedElementIds).forEach(function(lt){var Yt=r.scene.getElement(lt);Yt&&Ge.push(Yt)}),Me.type==="frame")(0,_n.zD)(Ge,Me.id).forEach(function(lt){delete Ue[lt.id]});else if(Me.frameId)Ue[Me.frameId]&&delete Ue[Me.id];else{var rt=Me.groupIds,it=new Set(rt.flatMap(function(lt){return(0,We.Fb)(r.scene.getNonDeletedElements(),lt)}).filter(function(lt){return lt.type==="frame"}).map(function(lt){return lt.id}));it.size>0&&Ge.forEach(function(lt){lt.frameId&&it.has(lt.frameId)&&(delete Ue[lt.id],lt.groupIds.flatMap(function(Yt){return(0,We.Fb)(r.scene.getNonDeletedElements(),Yt)}).forEach(function(Yt){delete Ue[Yt.id]}))})}return Zt(Zt({},(0,We.bO)({editingGroupId:Fe.editingGroupId,selectedElementIds:Ue},r.scene.getNonDeletedElements(),Fe,r)),{},{showHyperlinkPopup:!(!Me.link&&!(0,L.gs)(Me))&&"info"})}),C.hit.wasAddedToSelection=!0))}r.setState({previousSelectedElementIds:r.state.selectedElementIds})}}return!1},this.handleTextOnPointerDown=function(d,C){if(!(0,V.iB)(r.state.editingElement)){var K=C.origin.x,ae=C.origin.y,ye=r.getElementAtPosition(K,ae,{includeBoundTextElement:!0}),F=(0,et.OW)(r.scene.getNonDeletedElements(),r.state,K,ae);(0,L.Xo)(ye)&&(F=ye,K=ye.x+ye.width/2,ae=ye.y+ye.height/2),r.startTextEditing({sceneX:K,sceneY:ae,insertAtParentCenter:!d.altKey,container:F}),(0,Gr.z8)(r.interactiveCanvas),r.state.activeTool.locked||r.setState({activeTool:(0,s.Om)(r.state,{type:"selection"})})}},this.handleFreeDrawElementOnPointerDown=function(d,C,K){var ae=(0,J.wC)(K.origin.x,K.origin.y,null),ye=(0,E.Z)(ae,2),F=ye[0],T=ye[1],fe=r.getTopLayerFrameAtSceneCoords({x:F,y:T}),Me=(0,te.KE)({type:C,x:F,y:T,strokeColor:r.state.currentItemStrokeColor,backgroundColor:r.state.currentItemBackgroundColor,fillStyle:r.state.currentItemFillStyle,strokeWidth:r.state.currentItemStrokeWidth,strokeStyle:r.state.currentItemStrokeStyle,roughness:r.state.currentItemRoughness,opacity:r.state.currentItemOpacity,roundness:null,simulatePressure:d.pressure===.5,locked:!1,frameId:fe?fe.id:null});r.setState(function(Ue){var Ge=Zt({},Ue.selectedElementIds);return delete Ge[Me.id],{selectedElementIds:(0,un.Oh)(Ge,Ue)}});var je=Me.simulatePressure?Me.pressures:[].concat((0,y.Z)(Me.pressures),[d.pressure]);(0,g.DR)(Me,{points:[[0,0]],pressures:je});var Fe=(0,O.Y9)(K.origin,r.scene);r.scene.addNewElement(Me),r.setState({draggingElement:Me,editingElement:Me,startBoundElement:Fe,suggestedBindings:[]})},this.insertEmbeddableElement=function(d){var C,K=d.sceneX,ae=d.sceneY,ye=d.link,F=(0,J.wC)(K,ae,(C=r.lastPointerDownEvent)!==null&&C!==void 0&&C[_.tW.CTRL_OR_CMD]?null:r.state.gridSize),T=(0,E.Z)(F,2),fe=T[0],Me=T[1],je=(0,p.LM)(ye);if(je){je.warning&&r.setToast({message:je.warning,closable:!0});var Fe=(0,te.M)({type:"embeddable",x:fe,y:Me,strokeColor:"transparent",backgroundColor:"transparent",fillStyle:r.state.currentItemFillStyle,strokeWidth:r.state.currentItemStrokeWidth,strokeStyle:r.state.currentItemStrokeStyle,roughness:r.state.currentItemRoughness,roundness:r.getCurrentItemRoundness("embeddable"),opacity:r.state.currentItemOpacity,locked:!1,width:je.aspectRatio.w,height:je.aspectRatio.h,link:ye,validated:null});return r.scene.replaceAllElements([].concat((0,y.Z)(r.scene.getElementsIncludingDeleted()),[Fe])),Fe}},this.createImageElement=function(d){var C,K=d.sceneX,ae=d.sceneY,ye=d.addToFrameUnderCursor,F=ye===void 0||ye,T=(0,J.wC)(K,ae,(C=r.lastPointerDownEvent)!==null&&C!==void 0&&C[_.tW.CTRL_OR_CMD]?null:r.state.gridSize),fe=(0,E.Z)(T,2),Me=fe[0],je=fe[1],Fe=F?r.getTopLayerFrameAtSceneCoords({x:Me,y:je}):null;return(0,V.vw)({type:"image",x:Me,y:je,strokeColor:r.state.currentItemStrokeColor,backgroundColor:r.state.currentItemBackgroundColor,fillStyle:r.state.currentItemFillStyle,strokeWidth:r.state.currentItemStrokeWidth,strokeStyle:r.state.currentItemStrokeStyle,roughness:r.state.currentItemRoughness,roundness:null,opacity:r.state.currentItemOpacity,locked:!1,frameId:Fe?Fe.id:null})},this.handleLinearElementOnPointerDown=function(d,C,K){if(r.state.multiElement){var ae=r.state.multiElement;if(ae.type==="line"&&(0,J.g6)(ae.points,r.state.zoom.value))return(0,g.DR)(ae,{lastCommittedPoint:ae.points[ae.points.length-1]}),void r.actionManager.executeAction(P.pL);var ye=ae.x,F=ae.y,T=ae.lastCommittedPoint;if(ae.points.length>1&&T&&(0,J.LW)(K.origin.x-ye,K.origin.y-F,T[0],T[1])<f.qx)return void r.actionManager.executeAction(P.pL);r.setState(function(Vt){return{selectedElementIds:(0,un.Oh)(Zt(Zt({},Vt.selectedElementIds),{},(0,H.Z)({},ae.id,!0)),Vt)}}),(0,g.DR)(ae,{lastCommittedPoint:ae.points[ae.points.length-1]}),(0,Gr.KJ)(r.interactiveCanvas,f.oc.POINTER)}else{var fe=(0,J.wC)(K.origin.x,K.origin.y,d[_.tW.CTRL_OR_CMD]?null:r.state.gridSize),Me=(0,E.Z)(fe,2),je=Me[0],Fe=Me[1],Ue=r.getTopLayerFrameAtSceneCoords({x:je,y:Fe}),Ge=r.state,rt=Ge.currentItemStartArrowhead,it=Ge.currentItemEndArrowhead,lt=C==="arrow"?[rt,it]:[null,null],Yt=(0,E.Z)(lt,2),jt=Yt[0],ct=Yt[1],xt=(0,V.y8)({type:C,x:je,y:Fe,strokeColor:r.state.currentItemStrokeColor,backgroundColor:r.state.currentItemBackgroundColor,fillStyle:r.state.currentItemFillStyle,strokeWidth:r.state.currentItemStrokeWidth,strokeStyle:r.state.currentItemStrokeStyle,roughness:r.state.currentItemRoughness,opacity:r.state.currentItemOpacity,roundness:r.state.currentItemRoundness==="round"?{type:f.a6.PROPORTIONAL_RADIUS}:null,startArrowhead:jt,endArrowhead:ct,locked:!1,frameId:Ue?Ue.id:null});r.setState(function(Vt){var Ht=Zt({},Vt.selectedElementIds);return delete Ht[xt.id],{selectedElementIds:(0,un.Oh)(Ht,Vt)}}),(0,g.DR)(xt,{points:[].concat((0,y.Z)(xt.points),[[0,0]])});var Mt=(0,O.Y9)(K.origin,r.scene);r.scene.addNewElement(xt),r.setState({draggingElement:xt,editingElement:xt,startBoundElement:Mt,suggestedBindings:[]})}},this.createGenericElementOnPointerDown=function(d,C){var K,ae,ye=(0,J.wC)(C.origin.x,C.origin.y,(K=r.lastPointerDownEvent)!==null&&K!==void 0&&K[_.tW.CTRL_OR_CMD]?null:r.state.gridSize),F=(0,E.Z)(ye,2),T=F[0],fe=F[1],Me=r.getTopLayerFrameAtSceneCoords({x:T,y:fe}),je={x:T,y:fe,strokeColor:r.state.currentItemStrokeColor,backgroundColor:r.state.currentItemBackgroundColor,fillStyle:r.state.currentItemFillStyle,strokeWidth:r.state.currentItemStrokeWidth,strokeStyle:r.state.currentItemStrokeStyle,roughness:r.state.currentItemRoughness,opacity:r.state.currentItemOpacity,roundness:r.getCurrentItemRoundness(d),locked:!1,frameId:Me?Me.id:null};(ae=d==="embeddable"?(0,te.M)(Zt({type:"embeddable",validated:null},je)):(0,V.Up)(Zt({type:d},je))).type==="selection"?r.setState({selectionElement:ae,draggingElement:ae}):(r.scene.addNewElement(ae),r.setState({multiElement:null,draggingElement:ae,editingElement:ae}))},this.createFrameElementOnPointerDown=function(d){var C,K=(0,J.wC)(d.origin.x,d.origin.y,(C=r.lastPointerDownEvent)!==null&&C!==void 0&&C[_.tW.CTRL_OR_CMD]?null:r.state.gridSize),ae=(0,E.Z)(K,2),ye=ae[0],F=ae[1],T=(0,te.M3)(Zt({x:ye,y:F,opacity:r.state.currentItemOpacity,locked:!1},f.iG));r.scene.replaceAllElements([].concat((0,y.Z)(r.scene.getElementsIncludingDeleted()),[T])),r.setState({multiElement:null,draggingElement:T,editingElement:T})},this.restoreReadyToEraseElements=function(d){var C=r.scene.getElementsIncludingDeleted().map(function(K){return d.elementIdsToErase[K.id]&&d.elementIdsToErase[K.id].erase?(0,g.BE)(K,{opacity:d.elementIdsToErase[K.id].opacity}):(0,L.Xh)(K)&&d.elementIdsToErase[K.containerId]&&d.elementIdsToErase[K.containerId].erase?(0,g.BE)(K,{opacity:d.elementIdsToErase[K.containerId].opacity}):K.frameId&&d.elementIdsToErase[K.frameId]&&d.elementIdsToErase[K.frameId].erase?(0,g.BE)(K,{opacity:d.elementIdsToErase[K.frameId].opacity}):K});r.scene.replaceAllElements(C)},this.eraseElements=function(d){var C=r.scene.getElementsIncludingDeleted().map(function(K){return d.elementIdsToErase[K.id]&&d.elementIdsToErase[K.id].erase||(0,L.Xh)(K)&&d.elementIdsToErase[K.containerId]&&d.elementIdsToErase[K.containerId].erase||K.frameId&&d.elementIdsToErase[K.frameId]&&d.elementIdsToErase[K.frameId].erase?(0,g.BE)(K,{isDeleted:!0}):K});r.history.resumeRecording(),r.scene.replaceAllElements(C)},this.initializeImage=function(){var d=(0,h.Z)(u().mark(function C(K){var ae,ye,F,T,fe,Me,je,Fe,Ue,Ge,rt,it,lt,Yt,jt;return u().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:if(T=K.imageFile,fe=K.imageElement,Me=K.showCursorImagePreview,je=Me!==void 0&&Me,(0,Ct.Wr)(T)){ct.next=3;break}throw new Error((0,R.t)("errors.unsupportedFileType"));case 3:if(Fe=T.type,(0,Gr.KJ)(r.interactiveCanvas,"wait"),Fe!==f.LO.svg){ct.next=23;break}return ct.prev=6,ct.t0=Ct.Pn,ct.t1=na.bp,ct.next=11,T.text();case 11:return ct.t2=ct.sent,ct.next=14,(0,ct.t1)(ct.t2);case 14:ct.t3=ct.sent,ct.t4=T.name,T=(0,ct.t0)(ct.t3,ct.t4),ct.next=23;break;case 19:throw ct.prev=19,ct.t5=ct.catch(6),console.warn(ct.t5),new Error((0,R.t)("errors.svgImageInsertError"));case 23:return ct.next=25,((ae=(ye=r.props).generateIdForFile)===null||ae===void 0?void 0:ae.call(ye,T))||(0,Ct.tW)(T);case 25:if(Ue=ct.sent){ct.next=29;break}throw console.warn("Couldn't generate file id or the supplied `generateIdForFile` didn't resolve to one."),new Error((0,R.t)("errors.imageInsertError"));case 29:if((Ge=r.files[Ue])!=null&&Ge.dataURL){ct.next=42;break}return ct.prev=31,ct.next=34,(0,Ct.Tu)(T,{maxWidthOrHeight:f.h6});case 34:T=ct.sent,ct.next=40;break;case 37:ct.prev=37,ct.t6=ct.catch(31),console.error("error trying to resing image file on insertion",ct.t6);case 40:if(!(T.size>f.$n)){ct.next=42;break}throw new Error((0,R.t)("errors.fileTooBig",{maxSize:"".concat(Math.trunc(f.$n/1024/1024),"MB")}));case 42:if(je&&(it=(rt=r.files[Ue])===null||rt===void 0?void 0:rt.dataURL,lt=it&&(0,Ct.KG)(it),r.setImagePreviewCursor(lt||T)),ct.t7=(F=r.files[Ue])===null||F===void 0?void 0:F.dataURL,ct.t7){ct.next=48;break}return ct.next=47,(0,Ct.Sf)(T);case 47:ct.t7=ct.sent;case 48:return Yt=ct.t7,jt=(0,g.DR)(fe,{fileId:Ue},!1),ct.abrupt("return",new Promise(function(){var xt=(0,h.Z)(u().mark(function Mt(Vt,Ht){var Tt,Kt;return u().wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:if(hr.prev=0,r.files=Zt(Zt({},r.files),{},(0,H.Z)({},Ue,{mimeType:Fe,id:Ue,dataURL:Yt,created:Date.now(),lastRetrieved:Date.now()})),Kt=r.imageCache.get(Ue)){hr.next=7;break}return r.addNewImagesToImageCache(),hr.next=7,r.updateImageCache([jt]);case 7:if(!(Kt?.image instanceof Promise)){hr.next=10;break}return hr.next=10,Kt.image;case 10:r.state.pendingImageElementId!==jt.id&&((Tt=r.state.draggingElement)===null||Tt===void 0?void 0:Tt.id)!==jt.id&&r.initializeImageDimensions(jt,!0),Vt(jt),hr.next=18;break;case 14:hr.prev=14,hr.t0=hr.catch(0),console.error(hr.t0),Ht(new Error((0,R.t)("errors.imageInsertError")));case 18:return hr.prev=18,je||(0,Gr.z8)(r.interactiveCanvas),hr.finish(18);case 21:case"end":return hr.stop()}},Mt,null,[[0,14,18,21]])}));return function(Mt,Vt){return xt.apply(this,arguments)}}()));case 51:case"end":return ct.stop()}},C,null,[[6,19],[31,37]])}));return function(C){return d.apply(this,arguments)}}(),this.insertImageElement=function(){var d=(0,h.Z)(u().mark(function C(K,ae,ye){return u().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(r.isToolSupported("image")){F.next=3;break}return r.setState({errorMessage:(0,R.t)("errors.imageToolNotSupported")}),F.abrupt("return");case 3:return r.scene.addNewElement(K),F.prev=4,F.next=7,r.initializeImage({imageFile:ae,imageElement:K,showCursorImagePreview:ye});case 7:return F.abrupt("return",F.sent);case 10:return F.prev=10,F.t0=F.catch(4),(0,g.DR)(K,{isDeleted:!0}),r.actionManager.executeAction(P.pL),r.setState({errorMessage:F.t0.message||(0,R.t)("errors.imageInsertError")}),F.abrupt("return",null);case 16:case"end":return F.stop()}},C,null,[[4,10]])}));return function(C,K,ae){return d.apply(this,arguments)}}(),this.setImagePreviewCursor=function(){var d=(0,h.Z)(u().mark(function C(K){var ae,ye,F,T,fe,Me,je;return u().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return ae=96,Fe.next=3,(0,Ct.Tu)(K,{maxWidthOrHeight:ae});case 3:return ye=Fe.sent,Fe.next=6,(0,Ct.Sf)(ye);case 6:if(F=Fe.sent,K.type!==f.LO.svg){Fe.next=20;break}return Fe.next=10,(0,na.PK)(F);case 10:T=Fe.sent,fe=Math.min(T.height,ae),(Me=fe*(T.width/T.height))>ae&&(fe=(Me=ae)*(T.height/T.width)),(je=document.createElement("canvas")).height=fe,je.width=Me,je.getContext("2d").drawImage(T,0,0,Me,fe),F=je.toDataURL(f.LO.svg);case 20:r.state.pendingImageElementId&&(0,Gr.KJ)(r.interactiveCanvas,"url(".concat(F,") 4 4, auto"));case 21:case"end":return Fe.stop()}},C)}));return function(C){return d.apply(this,arguments)}}(),this.onImageAction=function(){var d=(0,h.Z)(u().mark(function C(K){var ae,ye,F,T,fe,Me,je,Fe;return u().wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return ae=K.insertOnCanvasDirectly,Ue.prev=1,ye=r.state.width/2+r.state.offsetLeft,F=r.state.height/2+r.state.offsetTop,T=(0,s.dE)({clientX:ye,clientY:F},r.state),fe=T.x,Me=T.y,Ue.next=7,(0,ur.I$)({description:"Image",extensions:Object.keys(f.KL)});case 7:je=Ue.sent,Fe=r.createImageElement({sceneX:fe,sceneY:Me,addToFrameUnderCursor:!1}),ae?(r.insertImageElement(Fe,je),r.initializeImageDimensions(Fe),r.setState({selectedElementIds:(0,un.Oh)((0,H.Z)({},Fe.id,!0),r.state)},function(){r.actionManager.executeAction(P.pL)})):r.setState({pendingImageElementId:Fe.id},function(){r.insertImageElement(Fe,je,!0)}),Ue.next=16;break;case 12:Ue.prev=12,Ue.t0=Ue.catch(1),Ue.t0.name!=="AbortError"?console.error(Ue.t0):console.warn(Ue.t0),r.setState({pendingImageElementId:null,editingElement:null,activeTool:(0,s.Om)(r.state,{type:"selection"})},function(){r.actionManager.executeAction(P.pL)});case 16:case"end":return Ue.stop()}},C,null,[[1,12]])}));return function(C){return d.apply(this,arguments)}}(),this.initializeImageDimensions=function(d){var C,K=arguments.length>1&&arguments[1]!==void 0&&arguments[1],ae=(0,L.wi)(d)&&((C=r.imageCache.get(d.fileId))===null||C===void 0?void 0:C.image);if(!ae||ae instanceof Promise){if(d.width<f.f/r.state.zoom.value&&d.height<f.f/r.state.zoom.value){var ye=100/r.state.zoom.value;(0,g.DR)(d,{x:d.x-ye/2,y:d.y-ye/2,width:ye,height:ye})}}else if(K||d.width<f.f/r.state.zoom.value&&d.height<f.f/r.state.zoom.value){var F=Math.max(r.state.height-120,160),T=Math.min(F,Math.floor(.5*r.state.height)/r.state.zoom.value),fe=Math.min(ae.naturalHeight,T),Me=fe*(ae.naturalWidth/ae.naturalHeight),je=d.x+d.width/2-Me/2,Fe=d.y+d.height/2-fe/2;(0,g.DR)(d,{x:je,y:Fe,width:Me,height:fe})}},this.updateImageCache=function(){var d=(0,h.Z)(u().mark(function C(K){var ae,ye,F,T,fe,Me,je,Fe=arguments;return u().wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return ae=Fe.length>1&&Fe[1]!==void 0?Fe[1]:r.files,Ue.next=3,(0,na.Xx)({imageCache:r.imageCache,fileIds:K.map(function(Ge){return Ge.fileId}),files:ae});case 3:if(ye=Ue.sent,F=ye.updatedFiles,T=ye.erroredFiles,F.size||T.size){fe=xo(K);try{for(fe.s();!(Me=fe.n()).done;)je=Me.value,F.has(je.fileId)&&Eo.R.delete(je)}catch(Ge){fe.e(Ge)}finally{fe.f()}}return T.size&&r.scene.replaceAllElements(r.scene.getElementsIncludingDeleted().map(function(Ge){return(0,L.wi)(Ge)&&T.has(Ge.fileId)?(0,g.BE)(Ge,{status:"error"}):Ge})),Ue.abrupt("return",{updatedFiles:F,erroredFiles:T});case 9:case"end":return Ue.stop()}},C)}));return function(C){return d.apply(this,arguments)}}(),this.addNewImagesToImageCache=(0,h.Z)(u().mark(function d(){var C,K,ae,ye,F=arguments;return u().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(C=F.length>0&&F[0]!==void 0?F[0]:(0,na.oA)(r.scene.getNonDeletedElements()),K=F.length>1&&F[1]!==void 0?F[1]:r.files,!(ae=C.filter(function(fe){return!fe.isDeleted&&!r.imageCache.has(fe.fileId)})).length){T.next=9;break}return T.next=6,r.updateImageCache(ae,K);case 6:ye=T.sent,ye.updatedFiles.size&&r.scene.informMutation();case 9:case"end":return T.stop()}},d)})),this.scheduleImageRefresh=gi()(function(){r.addNewImagesToImageCache()},f.LL),this.updateBindingEnabledOnPointerMove=function(d){var C=(0,O.cz)(d);r.state.isBindingEnabled!==C&&r.setState({isBindingEnabled:C})},this.maybeSuggestBindingAtCursor=function(d){var C=(0,O.Y9)(d,r.scene);r.setState({suggestedBindings:C!=null?[C]:[]})},this.maybeSuggestBindingsForLinearElementAtCoords=function(d,C,K){if(C.length){var ae=C.reduce(function(ye,F){var T=(0,O.Y9)(F,r.scene);return T==null||(0,O.DK)(d,K?.id,T)||ye.push(T),ye},[]);r.setState({suggestedBindings:ae})}},this.handleInteractiveCanvasRef=function(d){var C,K,ae;d!==null?(r.interactiveCanvas=d,r.interactiveCanvas.addEventListener(f.Ks.WHEEL,r.handleWheel),r.interactiveCanvas.addEventListener(f.Ks.TOUCH_START,r.onTouchStart),r.interactiveCanvas.addEventListener(f.Ks.TOUCH_END,r.onTouchEnd)):((C=r.interactiveCanvas)===null||C===void 0||C.removeEventListener(f.Ks.WHEEL,r.handleWheel),(K=r.interactiveCanvas)===null||K===void 0||K.removeEventListener(f.Ks.TOUCH_START,r.onTouchStart),(ae=r.interactiveCanvas)===null||ae===void 0||ae.removeEventListener(f.Ks.TOUCH_END,r.onTouchEnd))},this.handleAppOnDrop=function(){var d=(0,h.Z)(u().mark(function C(K){var ae,ye,F,T,fe,Me,je,Fe,Ue,Ge,rt,it,lt,Yt,jt,ct;return u().wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:return xt.next=2,(0,Ct.bv)(K);case 2:if(F=xt.sent,T=F.file,fe=F.fileHandle,Me=(0,s.dE)(K,r.state),je=Me.x,Fe=Me.y,xt.prev=6,!(0,Ct.Wr)(T)||!r.isToolSupported("image")){xt.next=26;break}if(T?.type!==f.LO.png&&T?.type!==f.LO.svg){xt.next=21;break}return xt.prev=9,xt.next=12,(0,N.cT)(T,r.state,r.scene.getElementsIncludingDeleted(),fe);case 12:return Ue=xt.sent,r.syncActionResult(Zt(Zt({},Ue),{},{appState:Zt(Zt({},Ue.appState||r.state),{},{isLoading:!1}),replaceFiles:!0,commitToHistory:!0})),xt.abrupt("return");case 17:if(xt.prev=17,xt.t0=xt.catch(9),xt.t0.name==="EncodingError"){xt.next=21;break}throw xt.t0;case 21:return Ge=r.createImageElement({sceneX:je,sceneY:Fe}),r.insertImageElement(Ge,T),r.initializeImageDimensions(Ge),r.setState({selectedElementIds:(0,un.Oh)((0,H.Z)({},Ge.id,!0),r.state)}),xt.abrupt("return");case 26:xt.next=31;break;case 28:return xt.prev=28,xt.t1=xt.catch(6),xt.abrupt("return",r.setState({isLoading:!1,errorMessage:xt.t1.message}));case 31:if(!(rt=K.dataTransfer.getData(f.LO.excalidrawlib))||typeof rt!="string"){xt.next=35;break}try{it=(0,Ct.wf)(rt),r.addElementsFromPasteOrLibrary({elements:(0,G.WV)(it),position:K,files:null})}catch(Mt){r.setState({errorMessage:Mt.message})}return xt.abrupt("return");case 35:if(!T){xt.next=38;break}return xt.next=38,r.loadFileToCanvas(T,fe);case 38:(ae=K.dataTransfer)!==null&&ae!==void 0&&(ye=ae.types)!==null&&ye!==void 0&&ye.includes("text/plain")&&(jt=(lt=K.dataTransfer)===null||lt===void 0?void 0:lt.getData("text"))&&(0,p.xm)(jt,r.props.validateEmbeddable)&&(/^(http|https):\/\/[^\s/$.?#].[^\s]*$/.test(jt)||((Yt=(0,p.LM)(jt))===null||Yt===void 0?void 0:Yt.type)==="video")&&(ct=r.insertEmbeddableElement({sceneX:je,sceneY:Fe,link:(0,Ko.$u)(jt)}))&&r.setState({selectedElementIds:(0,H.Z)({},ct.id,!0)});case 39:case"end":return xt.stop()}},C,null,[[6,28],[9,17]])}));return function(C){return d.apply(this,arguments)}}(),this.loadFileToCanvas=function(){var d=(0,h.Z)(u().mark(function C(K,ae){var ye;return u().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,(0,Ct.gY)(K);case 2:return K=F.sent,F.prev=3,F.next=6,(0,Ct.ZY)(K,r.state,r.scene.getElementsIncludingDeleted(),ae);case 6:if((ye=F.sent).type!==f.LO.excalidraw){F.next=12;break}r.setState({isLoading:!0}),r.syncActionResult(Zt(Zt({},ye.data),{},{appState:Zt(Zt({},ye.data.appState||r.state),{},{isLoading:!1}),replaceFiles:!0,commitToHistory:!0})),F.next=15;break;case 12:if(ye.type!==f.LO.excalidrawlib){F.next=15;break}return F.next=15,r.library.updateLibrary({libraryItems:K,merge:!0,openLibraryMenu:!0}).catch(function(T){console.error(T),r.setState({errorMessage:(0,R.t)("errors.importLibraryError")})});case 15:F.next=23;break;case 17:if(F.prev=17,F.t0=F.catch(3),!(F.t0 instanceof xi.jk&&F.t0.code==="IMAGE_NOT_CONTAINS_SCENE_DATA")||r.isToolSupported("image")){F.next=22;break}return r.setState({isLoading:!1,errorMessage:(0,R.t)("errors.imageToolNotSupported")}),F.abrupt("return");case 22:r.setState({isLoading:!1,errorMessage:F.t0.message});case 23:case"end":return F.stop()}},C,null,[[3,17]])}));return function(C,K){return d.apply(this,arguments)}}(),this.handleCanvasContextMenu=function(d){if(d.preventDefault(),!("pointerType"in d.nativeEvent&&d.nativeEvent.pointerType==="touch"||"pointerType"in d.nativeEvent&&d.nativeEvent.pointerType==="pen"&&d.button!==f.Oh.SECONDARY)||r.state.activeTool.type==="selection"){var C=(0,s.dE)(d,r.state),K=C.x,ae=C.y,ye=r.getElementAtPosition(K,ae,{preferSelected:!0,includeLockedElements:!0}),F=r.scene.getSelectedElements(r.state),T=r.isHittingCommonBoundingBoxOfSelectedElements({x:K,y:ae},F),fe=ye||T?"element":"canvas",Me=r.excalidrawContainerRef.current.getBoundingClientRect(),je=Me.top,Fe=Me.left,Ue=d.clientX-Fe,Ge=d.clientY-je;(0,c.L)("contextMenu","openContextMenu",fe),r.setState(Zt(Zt({},ye&&!r.state.selectedElementIds[ye.id]?Zt(Zt(Zt({},r.state),(0,We.bO)({editingGroupId:r.state.editingGroupId,selectedElementIds:(0,H.Z)({},ye.id,!0)},r.scene.getNonDeletedElements(),r.state,r)),{},{selectedLinearElement:(0,L.bt)(ye)?new ce._(ye,r.scene):null}):r.state),{},{showHyperlinkPopup:!1}),function(){r.setState({contextMenu:{top:Ge,left:Ue,items:r.getContextMenuItems(fe)}})})}},this.maybeDragNewGenericElement=function(d,C){var K=r.state.draggingElement,ae=d.lastCoords;if(K)if(K.type==="selection"&&r.state.activeTool.type!=="eraser")(0,V.EJ)(K,r.state.activeTool.type,d.origin.x,d.origin.y,ae.x,ae.y,(0,s.TE)(d.origin.x,ae.x),(0,s.TE)(d.origin.y,ae.y),(0,_.E0)(C),(0,_.OA)(C));else{var ye,F,T,fe,Me,je=(0,J.wC)(ae.x,ae.y,C[_.tW.CTRL_OR_CMD]?null:r.state.gridSize),Fe=(0,E.Z)(je,2),Ue=Fe[0],Ge=Fe[1],rt=(0,L.wi)(K)&&((ye=r.imageCache.get(K.fileId))===null||ye===void 0?void 0:ye.image),it=!rt||rt instanceof Promise?null:rt.width/rt.height;r.maybeCacheReferenceSnapPoints(C,[K]);var lt=function(ct,xt,Mt,Vt,Ht){var Tt,Kt,hr,Mr;if(!vo({event:Mt,selectedElements:[ct],appState:xt}))return{snapOffset:{x:0,y:0},snapLines:[]};var Nr=[[Vt.x+Ht.x,Vt.y+Ht.y]],Kr=go(xt.zoom.value),tn={x:Kr,y:Kr},Qr=[],Pr=[];Le([ct],Nr,xt,Mt,Qr,Pr,tn);var on={x:(Tt=(Kt=Qr[0])===null||Kt===void 0?void 0:Kt.offset)!==null&&Tt!==void 0?Tt:0,y:(hr=(Mr=Pr[0])===null||Mr===void 0?void 0:Mr.offset)!==null&&hr!==void 0?hr:0};tn.x=0,tn.y=0,Qr.length=0,Pr.length=0;var Br=Yo([ct],{boundingBoxCorners:!0,omitCenter:!0});return Le([ct],Br,xt,Mt,Qr,Pr,tn),{snapOffset:on,snapLines:Qe(Qr,Pr)}}(K,r.state,C,{x:d.originInGrid.x+((F=(T=r.state.originSnapOffset)===null||T===void 0?void 0:T.x)!==null&&F!==void 0?F:0),y:d.originInGrid.y+((fe=(Me=r.state.originSnapOffset)===null||Me===void 0?void 0:Me.y)!==null&&fe!==void 0?fe:0)},{x:Ue-d.originInGrid.x,y:Ge-d.originInGrid.y}),Yt=lt.snapOffset,jt=lt.snapLines;Ue+=Yt.x,Ge+=Yt.y,r.setState({snapLines:jt}),(0,V.EJ)(K,r.state.activeTool.type,d.originInGrid.x,d.originInGrid.y,Ue,Ge,(0,s.TE)(d.originInGrid.x,Ue),(0,s.TE)(d.originInGrid.y,Ge),(0,L.pC)(K)?!(0,_.E0)(C):(0,_.E0)(C),(0,_.OA)(C),it,r.state.originSnapOffset),r.maybeSuggestBindingForAll([K]),r.state.activeTool.type==="frame"&&r.setState({elementsToHighlight:(0,_n.ni)(r.scene.getNonDeletedElements(),K,r.state)})}},this.maybeHandleResize=function(d,C){var K=r.scene.getSelectedElements(r.state),ae=K.filter(function(Vt){return Vt.type==="frame"}),ye=d.resize.handleType;if(ae.length>0&&ye==="rotation")return!1;r.setState({isResizing:ye&&ye!=="rotation",isRotating:ye==="rotation",activeEmbeddable:null});var F=d.lastCoords,T=(0,J.wC)(F.x-d.resize.offset.x,F.y-d.resize.offset.y,C[_.tW.CTRL_OR_CMD]?null:r.state.gridSize),fe=(0,E.Z)(T,2),Me=fe[0],je=fe[1],Fe=new Map;if(ae.forEach(function(Vt){(0,_n.zD)(r.scene.getNonDeletedElements(),Vt.id).forEach(function(Ht){Fe.set(Vt.id+Ht.id,{x:Ht.x-Vt.x,y:Ht.y-Vt.y})})}),!r.state.selectedElementsAreBeingDragged){var Ue=(0,J.wC)(F.x,F.y,C[_.tW.CTRL_OR_CMD]?null:r.state.gridSize),Ge=(0,E.Z)(Ue,2),rt=Ge[0],it=Ge[1],lt={x:rt-d.originInGrid.x,y:it-d.originInGrid.y},Yt=(0,y.Z)(d.originalElements.values());r.maybeCacheReferenceSnapPoints(C,K);var jt=$e(K,(0,ke.eD)(Yt,r.state),r.state,C,lt,ye),ct=jt.snapOffset,xt=jt.snapLines;Me+=ct.x,je+=ct.y,r.setState({snapLines:xt})}if((0,V.vY)(d,ye,K,d.resize.arrowDirection,(0,_.Ge)(C),(0,_.OA)(C),K.length===1&&(0,L.pC)(K[0])?!(0,_.E0)(C):(0,_.E0)(C),Me,je,d.resize.center.x,d.resize.center.y,r.state)){r.maybeSuggestBindingForAll(K);var Mt=new Set;return ae.forEach(function(Vt){var Ht=(0,_n.zD)(r.scene.getNonDeletedElements(),Vt.id);ye&&(ye.includes("w")&&Ht.forEach(function(Tt){var Kt,hr;(0,g.DR)(Tt,{x:Vt.x+(((Kt=Fe.get(Vt.id+Tt.id))===null||Kt===void 0?void 0:Kt.x)||0),y:Vt.y+(((hr=Fe.get(Vt.id+Tt.id))===null||hr===void 0?void 0:hr.y)||0)})}),ye.includes("n")&&Ht.forEach(function(Tt){var Kt,hr;(0,g.DR)(Tt,{x:Vt.x+(((Kt=Fe.get(Vt.id+Tt.id))===null||Kt===void 0?void 0:Kt.x)||0),y:Vt.y+(((hr=Fe.get(Vt.id+Tt.id))===null||hr===void 0?void 0:hr.y)||0)})})),(0,_n.ni)(r.scene.getNonDeletedElements(),Vt,r.state).forEach(function(Tt){return Mt.add(Tt)})}),r.setState({elementsToHighlight:(0,y.Z)(Mt)}),!0}return!1},this.getContextMenuItems=function(d){var C=[];return C.push(P.jK,P.FA),d==="canvas"?r.state.viewModeEnabled?[].concat(C,[P.Pb,P.JN,wa,P.u0]):[Wa.yQ,De,P.jK,P.FA,P.zp,De,P.Yy,ka.U,De,P.Pb,P.pm,P.JN,wa,P.u0]:(C.push(P.zp),r.state.viewModeEnabled?[P.uN].concat(C):[P.ZM,P.uN,Wa.yQ,bi,yi,De].concat(C,[De,P.pw,P.W3,De,P.EQ,P.y7,P.vD,It.JQ,P.s,De,P.FL,De,P.V,P.yA,P.zi,P.BZ,De,P.jl,P.kt,De,P.Qs,P.nz,P.xF,P.$h,De,P.X9]))},this.handleWheel=(0,s.tH)(function(d){if(d.preventDefault(),!ja){var C=d.deltaX,K=d.deltaY;if(d.metaKey||d.ctrlKey){var ae=Math.sign(K),ye=100*f.V4,F=Math.abs(K),T=K;F>ye&&(T=ye*ae);var fe=r.state.zoom.value-T/100;return fe+=Math.log10(Math.max(1,r.state.zoom.value))*-ae*Math.min(1,F/20),r.translateCanvas(function(Me){return Zt(Zt({},(0,o.E)({viewportX:r.lastViewportPosition.x,viewportY:r.lastViewportPosition.y,nextZoom:(0,ke.j)(fe)},Me)),{},{shouldCacheIgnoreZoom:!0})}),void r.resetShouldCacheIgnoreZoomDebounced()}d.shiftKey?r.translateCanvas(function(Me){var je=Me.zoom;return{scrollX:Me.scrollX-(K||C)/je.value}}):r.translateCanvas(function(Me){var je=Me.zoom,Fe=Me.scrollX,Ue=Me.scrollY;return{scrollX:Fe-C/je.value,scrollY:Ue-K/je.value}})}}),this.savePointer=function(d,C,K){var ae,ye;if(d&&C){var F=(0,s.dE)({clientX:d,clientY:C},r.state),T=F.x,fe=F.y,Me={x:T,y:fe,tool:r.state.activeTool.type==="laser"?"laser":"pointer"};(ae=(ye=r.props).onPointerUpdate)===null||ae===void 0||ae.call(ye,{pointer:Me,button:K,pointersMap:fn.pointers})}},this.resetShouldCacheIgnoreZoomDebounced=(0,s.Ds)(function(){r.unmounted||r.setState({shouldCacheIgnoreZoom:!1})},300),this.updateDOMRect=function(d){var C;if((C=r.excalidrawContainerRef)!==null&&C!==void 0&&C.current){var K=r.excalidrawContainerRef.current.getBoundingClientRect(),ae=K.width,ye=K.height,F=K.left,T=K.top,fe=r.state,Me=fe.width,je=fe.height,Fe=fe.offsetTop,Ue=fe.offsetLeft;if(ae===Me&&ye===je&&F===Ue&&T===Fe)return void(d&&d());r.setState({width:ae,height:ye,offsetLeft:F,offsetTop:T},function(){d&&d()})}},this.refresh=function(){r.setState(Zt({},r.getCanvasOffsets()))}};f.Vi.TEST==="production"&&(window.h=window.h||{},Object.defineProperties(window.h,{elements:{configurable:!0,get:function(){var r;return(r=this.app)===null||r===void 0?void 0:r.scene.getElementsIncludingDeleted()},set:function(r){var d;return(d=this.app)===null||d===void 0?void 0:d.scene.replaceAllElements(r)}}}));var rl=Zi},8806:function(Se,Q,e){e.d(Q,{z:function(){return R}});var D=e(7169),E=e(2726),y=e(45),h=e(9827),S=e(3379),I=e.n(S),v=e(7795),n=e.n(v),M=e(569),Z=e.n(M),H=e(3565),W=e.n(H),u=e(9216),U=e.n(u),le=e(4589),de=e.n(le),he=e(3137),pe={};pe.styleTagTransform=de(),pe.setAttributes=W(),pe.insert=Z().bind(null,"head"),pe.domAPI=n(),pe.insertStyleElement=U(),I()(he.Z,pe),he.Z&&he.Z.locals&&he.Z.locals;var oe=e(1020),P=["type","onSelect","selected","children","className"];function $(_,g){var O=Object.keys(_);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(_);g&&(s=s.filter(function(f){return Object.getOwnPropertyDescriptor(_,f).enumerable})),O.push.apply(O,s)}return O}function b(_){for(var g=1;g<arguments.length;g++){var O=arguments[g]!=null?arguments[g]:{};g%2?$(Object(O),!0).forEach(function(s){(0,D.Z)(_,s,O[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(O)):$(Object(O)).forEach(function(s){Object.defineProperty(_,s,Object.getOwnPropertyDescriptor(O,s))})}return _}var R=function(_){var g=_.type,O=g===void 0?"button":g,s=_.onSelect,f=_.selected,t=_.children,w=_.className,l=w===void 0?"":w,a=(0,E.Z)(_,P);return(0,oe.jsx)("button",b(b({onClick:(0,h.Mj)(a.onClick,function(c){s()}),type:O,className:(0,y.Z)("excalidraw-button",l,{selected:f})},a),{},{children:t}))}},6238:function(Se,Q,e){e.d(Q,{o:function(){return pe}});var D=e(45),E=e(8935),y=e(3379),h=e.n(y),S=e(7795),I=e.n(S),v=e(569),n=e.n(v),M=e(3565),Z=e.n(M),H=e(9216),W=e.n(H),u=e(4589),U=e.n(u),le=e(6029),de={};de.styleTagTransform=U(),de.setAttributes=Z(),de.insert=n().bind(null,"head"),de.domAPI=I(),de.insertStyleElement=W(),h()(le.Z,de),le.Z&&le.Z.locals&&le.Z.locals;var he=e(1020),pe=function(oe){var P=oe.children,$=oe.checked,b=oe.onChange,R=oe.className;return(0,he.jsxs)("div",{className:(0,D.Z)("Checkbox",R,{"is-checked":$}),onClick:function(_){b(!$,_),_.currentTarget.querySelector(".Checkbox-box").focus()},children:[(0,he.jsx)("button",{className:"Checkbox-box",role:"checkbox","aria-checked":$,children:E.eQ}),(0,he.jsx)("div",{className:"Checkbox-label",children:P})]})}},193:function(Se,Q,e){e.d(Q,{z:function(){return wi},L:function(){return vo}});var D=e(2577),E=e(9827),y=e(45),h=e(9240),S=e(1020),I=function(se){var Ae,Le=se.onChange,Ne=se.type,Xe=se.activeColor,Qe=se.topPicks;return Ne==="elementStroke"&&(Ae=h.fY),Ne==="elementBackground"&&(Ae=h.eq),Ne==="canvasBackground"&&(Ae=h.ay),Qe&&(Ae=Qe),Ae?(0,S.jsx)("div",{className:"color-picker__top-picks",children:Ae.map(function(nt){return(0,S.jsx)("button",{className:(0,y.Z)("color-picker__button",{active:nt===Xe,"is-transparent":nt==="transparent"||!nt}),style:{"--swatch-color":nt},type:"button",title:nt,onClick:function(){return Le(nt)},"data-testid":"color-top-pick-".concat(nt),children:(0,S.jsx)("div",{className:"color-picker__button-outline"})},nt)})}):(console.error("Invalid type for TopPicks"),null)},v=e(9787),n=e.n(v),M=e(8227),Z=e(3607),H=e(1930),W=function(se){for(var Ae=se.palette,Le=se.color,Ne=0,Xe=Object.entries(Ae);Ne<Xe.length;Ne++){var Qe=(0,D.Z)(Xe[Ne],2),nt=Qe[0],$e=Qe[1];if(Array.isArray($e)){var It=$e.indexOf(Le);if(It>-1)return{colorName:nt,shade:It}}else if($e===Le)return{colorName:nt,shade:null}}return null},u=[["q","w","e","r","t"],["a","s","d","f","g"],["z","x","c","v","b"]].flat(),U=function(se){var Ae=se.color,Le=se.palette;return!Object.values(Le).flat().includes(Ae)},le=(0,Z.cn)(null),de=function(se,Ae,Le){return(299*se+587*Ae+114*Le)/1e3>=160?"black":"white"},he=function(se,Ae){if(Ae){var Le=new Option().style;if(Le.color=se,Le.color){var Ne=Le.color.replace(/^(rgb|rgba)\(/,"").replace(/\)$/,"").replace(/\s/g,"").split(","),Xe=parseInt(Ne[0]),Qe=parseInt(Ne[1]),nt=parseInt(Ne[2]);return de(Xe,Qe,nt)}}if(se==="transparent")return"black";var $e=parseInt(se.substring(1,3),16),It=parseInt(se.substring(3,5),16),Jt=parseInt(se.substring(5,7),16);return de($e,It,Jt)},pe=function(se){var Ae=se.color,Le=se.keyLabel,Ne=se.isCustomColor,Xe=Ne!==void 0&&Ne,Qe=se.isShade,nt=Qe!==void 0&&Qe;return(0,S.jsxs)("div",{className:"color-picker__button__hotkey-label",style:{color:he(Ae,Xe)},children:[nt&&"⇧",Le]})},oe=function(se){var Ae=se.hex,Le=se.onChange,Ne=se.palette,Xe=W({color:Ae||"transparent",palette:Ne}),Qe=(0,Z.KO)(le),nt=(0,D.Z)(Qe,2),$e=nt[0],It=nt[1],Jt=(0,v.useRef)(null);if((0,v.useEffect)(function(){Jt.current&&$e==="shades"&&Jt.current.focus()},[Xe,$e]),Xe){var Nt=Xe.colorName,kt=Xe.shade,nr=Ne[Nt];if(Array.isArray(nr))return(0,S.jsx)("div",{className:"color-picker-content--default shades",children:nr.map(function(Bt,ar){return(0,S.jsxs)("button",{ref:ar===kt&&$e==="shades"?Jt:void 0,tabIndex:-1,type:"button",className:(0,y.Z)("color-picker__button color-picker__button--large",{active:ar===kt}),"aria-label":"Shade",title:"".concat(Nt," - ").concat(ar+1),style:Bt?{"--swatch-color":Bt}:void 0,onClick:function(){Le(Bt),It("shades")},children:[(0,S.jsx)("div",{className:"color-picker__button-outline"}),(0,S.jsx)(pe,{color:Bt,keyLabel:ar+1,isShade:!0})]},ar)})})}return(0,S.jsxs)("div",{className:"color-picker-content--default",style:{position:"relative"},tabIndex:-1,children:[(0,S.jsx)("button",{type:"button",tabIndex:-1,className:"color-picker__button color-picker__button--large color-picker__button--no-focus-visible"}),(0,S.jsx)("div",{tabIndex:-1,style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",fontSize:"0.75rem"},children:(0,M.t)("colorPicker.noShades")})]})},P=function(se){var Ae=se.palette,Le=se.color,Ne=se.onChange,Xe=(se.label,se.activeShade),Qe=W({color:Le||"transparent",palette:Ae}),nt=(0,Z.KO)(le),$e=(0,D.Z)(nt,2),It=$e[0],Jt=$e[1],Nt=(0,v.useRef)(null);return(0,v.useEffect)(function(){Nt.current&&It==="baseColors"&&Nt.current.focus()},[Qe?.colorName,It]),(0,S.jsx)("div",{className:"color-picker-content--default",children:Object.entries(Ae).map(function(kt,nr){var Bt=(0,D.Z)(kt,2),ar=Bt[0],Dt=Bt[1],er=(Array.isArray(Dt)?Dt[Xe]:Dt)||"transparent",pr=u[nr],yr=(0,M.t)("colors.".concat(ar.replace(/\d+/,"")),null,"");return(0,S.jsxs)("button",{ref:Qe?.colorName===ar?Nt:void 0,tabIndex:-1,type:"button",className:(0,y.Z)("color-picker__button color-picker__button--large",{active:Qe?.colorName===ar,"is-transparent":er==="transparent"||!er}),onClick:function(){Ne(er),Jt("baseColors")},title:"".concat(yr).concat(er.startsWith("#")?" ".concat(er):""," — ").concat(pr),"aria-label":"".concat(yr," — ").concat(pr),style:er?{"--swatch-color":er}:void 0,"data-testid":"color-".concat(ar),children:[(0,S.jsx)("div",{className:"color-picker__button-outline"}),(0,S.jsx)(pe,{color:er,keyLabel:pr})]},ar)})})},$=function(se){var Ae=se.colors,Le=se.color,Ne=se.onChange,Xe=se.label,Qe=(0,Z.KO)(le),nt=(0,D.Z)(Qe,2),$e=nt[0],It=nt[1],Jt=(0,v.useRef)(null);return(0,v.useEffect)(function(){Jt.current&&Jt.current.focus()},[Le,$e]),(0,S.jsx)("div",{className:"color-picker-content--default",children:Ae.map(function(Nt,kt){return(0,S.jsxs)("button",{ref:Le===Nt?Jt:void 0,tabIndex:-1,type:"button",className:(0,y.Z)("color-picker__button color-picker__button--large",{active:Le===Nt,"is-transparent":Nt==="transparent"||!Nt}),onClick:function(){Ne(Nt),It("custom")},title:Nt,"aria-label":Xe,style:{"--swatch-color":Nt},children:[(0,S.jsx)("div",{className:"color-picker__button-outline"}),(0,S.jsx)(pe,{color:Nt,keyLabel:kt+1,isCustomColor:!0})]},kt)})})},b=e(5491),R=function(se,Ae,Le){var Ne,Xe=Math.ceil(Le/h.dC);switch(Ae=(Ne=Ae)!==null&&Ne!==void 0?Ne:-1,se){case"ArrowLeft":var Qe=Ae-1;return Qe<0?Le-1:Qe;case"ArrowRight":return(Ae+1)%Le;case"ArrowDown":var nt=Ae+h.dC;return nt>=Le?Ae%h.dC:nt;case"ArrowUp":var $e=Ae-h.dC,It=$e<0?h.dC*Xe+$e:$e;return It>=Le?void 0:It}},_=function(se){var Ae=se.event,Le=se.activeColorPickerSection,Ne=se.palette,Xe=se.color,Qe=se.onChange,nt=se.customColors,$e=se.setActiveColorPickerSection,It=(se.updateData,se.activeShade),Jt=se.onEyeDropperToggle,Nt=se.onEscape;if(Ae[b.tW.CTRL_OR_CMD])return!1;if(Ae.key===b.tW.ESCAPE)return Nt(Ae),!0;if(Ae.key===b.tW.ALT)return Jt(!0),!0;if(Ae.key===b.tW.I)return Jt(),!0;var kt=W({color:Xe,palette:Ne});if(Ae.key===b.tW.TAB){var nr={custom:!!nt.length,baseColors:!0,shades:kt?.shade!=null,hex:!0},Bt=Object.entries(nr).reduce(function(Vr,Jr){var hn=(0,D.Z)(Jr,2),ln=hn[0];return hn[1]&&Vr.push(ln),Vr},[]),ar=Bt.indexOf(Le),Dt=Ae.shiftKey?-1:1,er=Bt[ar+Dt>Bt.length-1?0:ar+Dt<0?Bt.length-1:ar+Dt];return er&&$e(er),er==="custom"?Qe(nt[0]):er==="baseColors"&&(Object.entries(Ne).find(function(Vr){var Jr=(0,D.Z)(Vr,2),hn=Jr[0],ln=Jr[1];return Array.isArray(ln)?ln.includes(Xe):ln===Xe?hn:null})||Qe(h.HO.black)),Ae.preventDefault(),Ae.stopPropagation(),!0}if(function(Vr){var Jr=Vr.e,hn=Vr.colorObj,ln=Vr.onChange,kn=Vr.palette,En=Vr.customColors,io=Vr.setActiveColorPickerSection,Gn=Vr.activeShade;if(hn?.shade!=null&&["Digit1","Digit2","Digit3","Digit4","Digit5"].includes(Jr.code)&&Jr.shiftKey){var So=Number(Jr.code.slice(-1))-1;return ln(kn[hn.colorName][So]),io("shades"),!0}if(["1","2","3","4","5"].includes(Jr.key)&&En[Number(Jr.key)-1])return ln(En[Number(Jr.key)-1]),io("custom"),!0;if(u.includes(Jr.key)){var Mo=u.indexOf(Jr.key),po=kn[Object.keys(kn)[Mo]];return ln(Array.isArray(po)?po[Gn]:po),io("baseColors"),!0}return!1}({e:Ae,colorObj:kt,onChange:Qe,palette:Ne,customColors:nt,setActiveColorPickerSection:$e,activeShade:It}))return!0;if(Le==="shades"&&kt){var pr=kt.shade,yr=R(Ae.key,pr,h.dC);if(yr!==void 0)return Qe(Ne[kt.colorName][yr]),!0}if(Le==="baseColors"&&kt){var kr=kt.colorName,dr=Object.keys(Ne),Dr=dr.indexOf(kr),Yr=R(Ae.key,Dr,dr.length);if(Yr!==void 0){var $r=Ne[dr[Yr]];return Qe(Array.isArray($r)?$r[It]:$r),!0}}if(Le==="custom"){var Ir=nt.indexOf(Xe),Ur=R(Ae.key,Ir,nt.length);if(Ur!==void 0)return Qe(nt[Ur]),!0}return!1},g=function(se){var Ae=se.children;return(0,S.jsx)("div",{className:"color-picker__heading",children:Ae})},O=e(9937),s=function(se){var Ae,Le=se.color,Ne=se.onChange,Xe=se.label,Qe=se.type,nt=se.elements,$e=se.palette,It=se.updateData,Jt=se.children,Nt=se.onEyeDropperToggle,kt=se.onEscape,nr=n().useState(function(){return Qe==="canvasBackground"?[]:function(Ir,Ur,Vr){var Jr={elementBackground:"backgroundColor",elementStroke:"strokeColor"},hn=Ir.filter(function(kn){if(kn.isDeleted)return!1;var En=kn[Jr[Ur]];return U({color:En,palette:Vr})}),ln=new Map;return hn.forEach(function(kn){var En=kn[Jr[Ur]];ln.has(En)?ln.set(En,ln.get(En)+1):ln.set(En,1)}),(0,H.Z)(ln.entries()).sort(function(kn,En){return En[1]-kn[1]}).map(function(kn){return kn[0]}).slice(0,h.Lx)}(nt,Qe,$e)}),Bt=(0,D.Z)(nr,1)[0],ar=(0,Z.KO)(le),Dt=(0,D.Z)(ar,2),er=Dt[0],pr=Dt[1],yr=W({color:Le,palette:$e});(0,v.useEffect)(function(){if(!er){var Ir=U({color:Le,palette:$e}),Ur=Ir&&!Bt.includes(Le);pr(Ur?"hex":Ir?"custom":yr?.shade!=null?"shades":"baseColors")}},[er,Le,$e,pr,yr,Bt]);var kr=(0,v.useState)((Ae=yr?.shade)!==null&&Ae!==void 0?Ae:Qe==="elementBackground"?h._T:h.z8),dr=(0,D.Z)(kr,2),Dr=dr[0],Yr=dr[1];(0,v.useEffect)(function(){yr?.shade!=null&&Yr(yr.shade);var Ir=function(Ur){Ur.key===b.tW.ALT&&Nt(!1)};return document.addEventListener(O.Ks.KEYUP,Ir,{capture:!0}),function(){document.removeEventListener(O.Ks.KEYUP,Ir,{capture:!0})}},[yr,Nt]);var $r=n().useRef(null);return(0,S.jsx)("div",{role:"dialog","aria-modal":"true","aria-label":(0,M.t)("labels.colorPicker"),children:(0,S.jsxs)("div",{ref:$r,onKeyDown:function(Ir){_({event:Ir,activeColorPickerSection:er,palette:$e,color:Le,onChange:Ne,onEyeDropperToggle:Nt,customColors:Bt,setActiveColorPickerSection:pr,updateData:It,activeShade:Dr,onEscape:kt})&&(Ir.preventDefault(),Ir.stopPropagation())},className:"color-picker-content",tabIndex:-1,children:[!!Bt.length&&(0,S.jsxs)("div",{children:[(0,S.jsx)(g,{children:(0,M.t)("colorPicker.mostUsedCustomColors")}),(0,S.jsx)($,{colors:Bt,color:Le,label:(0,M.t)("colorPicker.mostUsedCustomColors"),onChange:Ne})]}),(0,S.jsxs)("div",{children:[(0,S.jsx)(g,{children:(0,M.t)("colorPicker.colors")}),(0,S.jsx)(P,{color:Le,label:Xe,palette:$e,onChange:Ne,activeShade:Dr})]}),(0,S.jsxs)("div",{children:[(0,S.jsx)(g,{children:(0,M.t)("colorPicker.shades")}),(0,S.jsx)(oe,{hex:Le,onChange:Ne,palette:$e})]}),Jt]})})},f=e(11),t=e(7217),w=e(9335),l=e(1267),a=e(3119),c=e(3060);const m="dismissableLayer.update",z="dismissableLayer.pointerDownOutside",j="dismissableLayer.focusOutside";let k;const x=(0,v.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),N=(0,v.forwardRef)((se,Ae)=>{var Le;const{disableOutsidePointerEvents:Ne=!1,onEscapeKeyDown:Xe,onPointerDownOutside:Qe,onFocusOutside:nt,onInteractOutside:$e,onDismiss:It,...Jt}=se,Nt=(0,v.useContext)(x),[kt,nr]=(0,v.useState)(null),Bt=(Le=kt?.ownerDocument)!==null&&Le!==void 0?Le:globalThis?.document,[,ar]=(0,v.useState)({}),Dt=(0,w.e)(Ae,Ir=>nr(Ir)),er=Array.from(Nt.layers),[pr]=[...Nt.layersWithOutsidePointerEventsDisabled].slice(-1),yr=er.indexOf(pr),kr=kt?er.indexOf(kt):-1,dr=Nt.layersWithOutsidePointerEventsDisabled.size>0,Dr=kr>=yr,Yr=function(Ir,Ur=globalThis?.document){const Vr=(0,c.W)(Ir),Jr=(0,v.useRef)(!1),hn=(0,v.useRef)(()=>{});return(0,v.useEffect)(()=>{const ln=En=>{if(En.target&&!Jr.current){let Gn=function(){ie(z,Vr,io,{discrete:!0})};const io={originalEvent:En};En.pointerType==="touch"?(Ur.removeEventListener("click",hn.current),hn.current=Gn,Ur.addEventListener("click",hn.current,{once:!0})):Gn()}Jr.current=!1},kn=window.setTimeout(()=>{Ur.addEventListener("pointerdown",ln)},0);return()=>{window.clearTimeout(kn),Ur.removeEventListener("pointerdown",ln),Ur.removeEventListener("click",hn.current)}},[Ur,Vr]),{onPointerDownCapture:()=>Jr.current=!0}}(Ir=>{const Ur=Ir.target,Vr=[...Nt.branches].some(Jr=>Jr.contains(Ur));Dr&&!Vr&&(Qe?.(Ir),$e?.(Ir),Ir.defaultPrevented||It==null||It())},Bt),$r=function(Ir,Ur=globalThis?.document){const Vr=(0,c.W)(Ir),Jr=(0,v.useRef)(!1);return(0,v.useEffect)(()=>{const hn=ln=>{ln.target&&!Jr.current&&ie(j,Vr,{originalEvent:ln},{discrete:!1})};return Ur.addEventListener("focusin",hn),()=>Ur.removeEventListener("focusin",hn)},[Ur,Vr]),{onFocusCapture:()=>Jr.current=!0,onBlurCapture:()=>Jr.current=!1}}(Ir=>{const Ur=Ir.target;[...Nt.branches].some(Vr=>Vr.contains(Ur))||(nt?.(Ir),$e?.(Ir),Ir.defaultPrevented||It==null||It())},Bt);return function(Ir,Ur=globalThis?.document){const Vr=(0,c.W)(Ir);(0,v.useEffect)(()=>{const Jr=hn=>{hn.key==="Escape"&&Vr(hn)};return Ur.addEventListener("keydown",Jr),()=>Ur.removeEventListener("keydown",Jr)},[Vr,Ur])}(Ir=>{kr===Nt.layers.size-1&&(Xe?.(Ir),!Ir.defaultPrevented&&It&&(Ir.preventDefault(),It()))},Bt),(0,v.useEffect)(()=>{if(kt)return Ne&&(Nt.layersWithOutsidePointerEventsDisabled.size===0&&(k=Bt.body.style.pointerEvents,Bt.body.style.pointerEvents="none"),Nt.layersWithOutsidePointerEventsDisabled.add(kt)),Nt.layers.add(kt),G(),()=>{Ne&&Nt.layersWithOutsidePointerEventsDisabled.size===1&&(Bt.body.style.pointerEvents=k)}},[kt,Bt,Ne,Nt]),(0,v.useEffect)(()=>()=>{kt&&(Nt.layers.delete(kt),Nt.layersWithOutsidePointerEventsDisabled.delete(kt),G())},[kt,Nt]),(0,v.useEffect)(()=>{const Ir=()=>ar({});return document.addEventListener(m,Ir),()=>document.removeEventListener(m,Ir)},[]),(0,v.createElement)(a.WV.div,(0,f.Z)({},Jt,{ref:Dt,style:{pointerEvents:dr?Dr?"auto":"none":void 0,...se.style},onFocusCapture:(0,t.M)(se.onFocusCapture,$r.onFocusCapture),onBlurCapture:(0,t.M)(se.onBlurCapture,$r.onBlurCapture),onPointerDownCapture:(0,t.M)(se.onPointerDownCapture,Yr.onPointerDownCapture)}))});function G(){const se=new CustomEvent(m);document.dispatchEvent(se)}function ie(se,Ae,Le,{discrete:Ne}){const Xe=Le.originalEvent.target,Qe=new CustomEvent(se,{bubbles:!1,cancelable:!0,detail:Le});Ae&&Xe.addEventListener(se,Ae,{once:!0}),Ne?(0,a.jH)(Xe,Qe):Xe.dispatchEvent(Qe)}let V=0;function ce(){(0,v.useEffect)(()=>{var se,Ae;const Le=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(se=Le[0])!==null&&se!==void 0?se:te()),document.body.insertAdjacentElement("beforeend",(Ae=Le[1])!==null&&Ae!==void 0?Ae:te()),V++,()=>{V===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(Ne=>Ne.remove()),V--}},[])}function te(){const se=document.createElement("span");return se.setAttribute("data-radix-focus-guard",""),se.tabIndex=0,se.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",se}const L="focusScope.autoFocusOnMount",re="focusScope.autoFocusOnUnmount",me={bubbles:!1,cancelable:!0},Ce=(0,v.forwardRef)((se,Ae)=>{const{loop:Le=!1,trapped:Ne=!1,onMountAutoFocus:Xe,onUnmountAutoFocus:Qe,...nt}=se,[$e,It]=(0,v.useState)(null),Jt=(0,c.W)(Xe),Nt=(0,c.W)(Qe),kt=(0,v.useRef)(null),nr=(0,w.e)(Ae,Dt=>It(Dt)),Bt=(0,v.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,v.useEffect)(()=>{if(Ne){let Dt=function(pr){if(Bt.paused||!$e)return;const yr=pr.target;$e.contains(yr)?kt.current=yr:xe(kt.current,{select:!0})},er=function(pr){!Bt.paused&&$e&&($e.contains(pr.relatedTarget)||xe(kt.current,{select:!0}))};return document.addEventListener("focusin",Dt),document.addEventListener("focusout",er),()=>{document.removeEventListener("focusin",Dt),document.removeEventListener("focusout",er)}}},[Ne,$e,Bt.paused]),(0,v.useEffect)(()=>{if($e){_e.add(Bt);const er=document.activeElement;if(!$e.contains(er)){const pr=new CustomEvent(L,me);$e.addEventListener(L,Jt),$e.dispatchEvent(pr),pr.defaultPrevented||(function(yr,{select:kr=!1}={}){const dr=document.activeElement;for(const Dr of yr)if(xe(Dr,{select:kr}),document.activeElement!==dr)return}((Dt=We($e),Dt.filter(yr=>yr.tagName!=="A")),{select:!0}),document.activeElement===er&&xe($e))}return()=>{$e.removeEventListener(L,Jt),setTimeout(()=>{const pr=new CustomEvent(re,me);$e.addEventListener(re,Nt),$e.dispatchEvent(pr),pr.defaultPrevented||xe(er??document.body,{select:!0}),$e.removeEventListener(re,Nt),_e.remove(Bt)},0)}}var Dt},[$e,Jt,Nt,Bt]);const ar=(0,v.useCallback)(Dt=>{if(!Le&&!Ne||Bt.paused)return;const er=Dt.key==="Tab"&&!Dt.altKey&&!Dt.ctrlKey&&!Dt.metaKey,pr=document.activeElement;if(er&&pr){const yr=Dt.currentTarget,[kr,dr]=function(Dr){const Yr=We(Dr),$r=Te(Yr,Dr),Ir=Te(Yr.reverse(),Dr);return[$r,Ir]}(yr);kr&&dr?Dt.shiftKey||pr!==dr?Dt.shiftKey&&pr===kr&&(Dt.preventDefault(),Le&&xe(dr,{select:!0})):(Dt.preventDefault(),Le&&xe(kr,{select:!0})):pr===yr&&Dt.preventDefault()}},[Le,Ne,Bt.paused]);return(0,v.createElement)(a.WV.div,(0,f.Z)({tabIndex:-1},nt,{ref:nr,onKeyDown:ar}))});function We(se){const Ae=[],Le=document.createTreeWalker(se,NodeFilter.SHOW_ELEMENT,{acceptNode:Ne=>{const Xe=Ne.tagName==="INPUT"&&Ne.type==="hidden";return Ne.disabled||Ne.hidden||Xe?NodeFilter.FILTER_SKIP:Ne.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;Le.nextNode();)Ae.push(Le.currentNode);return Ae}function Te(se,Ae){for(const Le of se)if(!we(Le,{upTo:Ae}))return Le}function we(se,{upTo:Ae}){if(getComputedStyle(se).visibility==="hidden")return!0;for(;se;){if(Ae!==void 0&&se===Ae)return!1;if(getComputedStyle(se).display==="none")return!0;se=se.parentElement}return!1}function xe(se,{select:Ae=!1}={}){if(se&&se.focus){const Le=document.activeElement;se.focus({preventScroll:!0}),se!==Le&&function(Ne){return Ne instanceof HTMLInputElement&&"select"in Ne}(se)&&Ae&&se.select()}}const _e=function(){let se=[];return{add(Ae){const Le=se[0];Ae!==Le&&Le?.pause(),se=Oe(se,Ae),se.unshift(Ae)},remove(Ae){var Le;se=Oe(se,Ae),(Le=se[0])===null||Le===void 0||Le.resume()}}}();function Oe(se,Ae){const Le=[...se],Ne=Le.indexOf(Ae);return Ne!==-1&&Le.splice(Ne,1),Le}var J=e(5622);function ke(se){return se.split("-")[0]}function q(se){return se.split("-")[1]}function o(se){return["top","bottom"].includes(ke(se))?"x":"y"}function i(se){return se==="y"?"height":"width"}function p(se,Ae,Le){let{reference:Ne,floating:Xe}=se;const Qe=Ne.x+Ne.width/2-Xe.width/2,nt=Ne.y+Ne.height/2-Xe.height/2,$e=o(Ae),It=i($e),Jt=Ne[It]/2-Xe[It]/2,Nt=$e==="x";let kt;switch(ke(Ae)){case"top":kt={x:Qe,y:Ne.y-Xe.height};break;case"bottom":kt={x:Qe,y:Ne.y+Ne.height};break;case"right":kt={x:Ne.x+Ne.width,y:nt};break;case"left":kt={x:Ne.x-Xe.width,y:nt};break;default:kt={x:Ne.x,y:Ne.y}}switch(q(Ae)){case"start":kt[$e]-=Jt*(Le&&Nt?-1:1);break;case"end":kt[$e]+=Jt*(Le&&Nt?-1:1)}return kt}function B(se){return typeof se!="number"?function(Ae){return{top:0,right:0,bottom:0,left:0,...Ae}}(se):{top:se,right:se,bottom:se,left:se}}function A(se){return{...se,top:se.y,left:se.x,right:se.x+se.width,bottom:se.y+se.height}}async function X(se,Ae){var Le;Ae===void 0&&(Ae={});const{x:Ne,y:Xe,platform:Qe,rects:nt,elements:$e,strategy:It}=se,{boundary:Jt="clippingAncestors",rootBoundary:Nt="viewport",elementContext:kt="floating",altBoundary:nr=!1,padding:Bt=0}=Ae,ar=B(Bt),Dt=$e[nr?kt==="floating"?"reference":"floating":kt],er=A(await Qe.getClippingRect({element:(Le=await(Qe.isElement==null?void 0:Qe.isElement(Dt)))==null||Le?Dt:Dt.contextElement||await(Qe.getDocumentElement==null?void 0:Qe.getDocumentElement($e.floating)),boundary:Jt,rootBoundary:Nt,strategy:It})),pr=A(Qe.convertOffsetParentRelativeRectToViewportRelativeRect?await Qe.convertOffsetParentRelativeRectToViewportRelativeRect({rect:kt==="floating"?{...nt.floating,x:Ne,y:Xe}:nt.reference,offsetParent:await(Qe.getOffsetParent==null?void 0:Qe.getOffsetParent($e.floating)),strategy:It}):nt[kt]);return{top:er.top-pr.top+ar.top,bottom:pr.bottom-er.bottom+ar.bottom,left:er.left-pr.left+ar.left,right:pr.right-er.right+ar.right}}const Y=Math.min,ee=Math.max;function ge(se,Ae,Le){return ee(se,Y(Ae,Le))}const be=se=>({name:"arrow",options:se,async fn(Ae){const{element:Le,padding:Ne=0}=se??{},{x:Xe,y:Qe,placement:nt,rects:$e,platform:It}=Ae;if(Le==null)return{};const Jt=B(Ne),Nt={x:Xe,y:Qe},kt=o(nt),nr=q(nt),Bt=i(kt),ar=await It.getDimensions(Le),Dt=kt==="y"?"top":"left",er=kt==="y"?"bottom":"right",pr=$e.reference[Bt]+$e.reference[kt]-Nt[kt]-$e.floating[Bt],yr=Nt[kt]-$e.reference[kt],kr=await(It.getOffsetParent==null?void 0:It.getOffsetParent(Le));let dr=kr?kt==="y"?kr.clientHeight||0:kr.clientWidth||0:0;dr===0&&(dr=$e.floating[Bt]);const Dr=pr/2-yr/2,Yr=Jt[Dt],$r=dr-ar[Bt]-Jt[er],Ir=dr/2-ar[Bt]/2+Dr,Ur=ge(Yr,Ir,$r),Vr=(nr==="start"?Jt[Dt]:Jt[er])>0&&Ir!==Ur&&$e.reference[Bt]<=$e.floating[Bt];return{[kt]:Nt[kt]-(Vr?Ir<Yr?Yr-Ir:$r-Ir:0),data:{[kt]:Ur,centerOffset:Ir-Ur}}}}),Re={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(se){return se.replace(/left|right|bottom|top/g,Ae=>Re[Ae])}function Be(se,Ae,Le){Le===void 0&&(Le=!1);const Ne=q(se),Xe=o(se),Qe=i(Xe);let nt=Xe==="x"?Ne===(Le?"end":"start")?"right":"left":Ne==="start"?"bottom":"top";return Ae.reference[Qe]>Ae.floating[Qe]&&(nt=Ze(nt)),{main:nt,cross:Ze(nt)}}const Ie={start:"end",end:"start"};function Ke(se){return se.replace(/start|end/g,Ae=>Ie[Ae])}const Ye=["top","right","bottom","left"],tt=(Ye.reduce((se,Ae)=>se.concat(Ae,Ae+"-start",Ae+"-end"),[]),function(se){return se===void 0&&(se={}),{name:"flip",options:se,async fn(Ae){var Le;const{placement:Ne,middlewareData:Xe,rects:Qe,initialPlacement:nt,platform:$e,elements:It}=Ae,{mainAxis:Jt=!0,crossAxis:Nt=!0,fallbackPlacements:kt,fallbackStrategy:nr="bestFit",flipAlignment:Bt=!0,...ar}=se,Dt=ke(Ne),er=kt||(Dt!==nt&&Bt?function(Ir){const Ur=Ze(Ir);return[Ke(Ir),Ur,Ke(Ur)]}(nt):[Ze(nt)]),pr=[nt,...er],yr=await X(Ae,ar),kr=[];let dr=((Le=Xe.flip)==null?void 0:Le.overflows)||[];if(Jt&&kr.push(yr[Dt]),Nt){const{main:Ir,cross:Ur}=Be(Ne,Qe,await($e.isRTL==null?void 0:$e.isRTL(It.floating)));kr.push(yr[Ir],yr[Ur])}if(dr=[...dr,{placement:Ne,overflows:kr}],!kr.every(Ir=>Ir<=0)){var Dr,Yr;const Ir=((Dr=(Yr=Xe.flip)==null?void 0:Yr.index)!=null?Dr:0)+1,Ur=pr[Ir];if(Ur)return{data:{index:Ir,overflows:dr},reset:{placement:Ur}};let Vr="bottom";switch(nr){case"bestFit":{var $r;const Jr=($r=dr.map(hn=>[hn,hn.overflows.filter(ln=>ln>0).reduce((ln,kn)=>ln+kn,0)]).sort((hn,ln)=>hn[1]-ln[1])[0])==null?void 0:$r[0].placement;Jr&&(Vr=Jr);break}case"initialPlacement":Vr=nt}if(Ne!==Vr)return{reset:{placement:Vr}}}return{}}}});function ue(se,Ae){return{top:se.top-Ae.height,right:se.right-Ae.width,bottom:se.bottom-Ae.height,left:se.left-Ae.width}}function ve(se){return Ye.some(Ae=>se[Ae]>=0)}const De=function(se){let{strategy:Ae="referenceHidden",...Le}=se===void 0?{}:se;return{name:"hide",async fn(Ne){const{rects:Xe}=Ne;switch(Ae){case"referenceHidden":{const Qe=ue(await X(Ne,{...Le,elementContext:"reference"}),Xe.reference);return{data:{referenceHiddenOffsets:Qe,referenceHidden:ve(Qe)}}}case"escaped":{const Qe=ue(await X(Ne,{...Le,altBoundary:!0}),Xe.floating);return{data:{escapedOffsets:Qe,escaped:ve(Qe)}}}default:return{}}}}},He=function(se){return se===void 0&&(se=0),{name:"offset",options:se,async fn(Ae){const{x:Le,y:Ne}=Ae,Xe=await async function(Qe,nt){const{placement:$e,platform:It,elements:Jt}=Qe,Nt=await(It.isRTL==null?void 0:It.isRTL(Jt.floating)),kt=ke($e),nr=q($e),Bt=o($e)==="x",ar=["left","top"].includes(kt)?-1:1,Dt=Nt&&Bt?-1:1,er=typeof nt=="function"?nt(Qe):nt;let{mainAxis:pr,crossAxis:yr,alignmentAxis:kr}=typeof er=="number"?{mainAxis:er,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...er};return nr&&typeof kr=="number"&&(yr=nr==="end"?-1*kr:kr),Bt?{x:yr*Dt,y:pr*ar}:{x:pr*ar,y:yr*Dt}}(Ae,se);return{x:Le+Xe.x,y:Ne+Xe.y,data:Xe}}}};function Je(se){return se==="x"?"y":"x"}const qe=function(se){return se===void 0&&(se={}),{name:"shift",options:se,async fn(Ae){const{x:Le,y:Ne,placement:Xe}=Ae,{mainAxis:Qe=!0,crossAxis:nt=!1,limiter:$e={fn:er=>{let{x:pr,y:yr}=er;return{x:pr,y:yr}}},...It}=se,Jt={x:Le,y:Ne},Nt=await X(Ae,It),kt=o(ke(Xe)),nr=Je(kt);let Bt=Jt[kt],ar=Jt[nr];if(Qe){const er=kt==="y"?"bottom":"right";Bt=ge(Bt+Nt[kt==="y"?"top":"left"],Bt,Bt-Nt[er])}if(nt){const er=nr==="y"?"bottom":"right";ar=ge(ar+Nt[nr==="y"?"top":"left"],ar,ar-Nt[er])}const Dt=$e.fn({...Ae,[kt]:Bt,[nr]:ar});return{...Dt,data:{x:Dt.x-Le,y:Dt.y-Ne}}}}},st=function(se){return se===void 0&&(se={}),{options:se,fn(Ae){const{x:Le,y:Ne,placement:Xe,rects:Qe,middlewareData:nt}=Ae,{offset:$e=0,mainAxis:It=!0,crossAxis:Jt=!0}=se,Nt={x:Le,y:Ne},kt=o(Xe),nr=Je(kt);let Bt=Nt[kt],ar=Nt[nr];const Dt=typeof $e=="function"?$e({...Qe,placement:Xe}):$e,er=typeof Dt=="number"?{mainAxis:Dt,crossAxis:0}:{mainAxis:0,crossAxis:0,...Dt};if(It){const Dr=kt==="y"?"height":"width",Yr=Qe.reference[kt]-Qe.floating[Dr]+er.mainAxis,$r=Qe.reference[kt]+Qe.reference[Dr]-er.mainAxis;Bt<Yr?Bt=Yr:Bt>$r&&(Bt=$r)}if(Jt){var pr,yr,kr,dr;const Dr=kt==="y"?"width":"height",Yr=["top","left"].includes(ke(Xe)),$r=Qe.reference[nr]-Qe.floating[Dr]+(Yr&&(pr=(yr=nt.offset)==null?void 0:yr[nr])!=null?pr:0)+(Yr?0:er.crossAxis),Ir=Qe.reference[nr]+Qe.reference[Dr]+(Yr?0:(kr=(dr=nt.offset)==null?void 0:dr[nr])!=null?kr:0)-(Yr?er.crossAxis:0);ar<$r?ar=$r:ar>Ir&&(ar=Ir)}return{[kt]:Bt,[nr]:ar}}}},ht=function(se){return se===void 0&&(se={}),{name:"size",options:se,async fn(Ae){const{placement:Le,rects:Ne,platform:Xe,elements:Qe}=Ae,{apply:nt,...$e}=se,It=await X(Ae,$e),Jt=ke(Le),Nt=q(Le);let kt,nr;Jt==="top"||Jt==="bottom"?(kt=Jt,nr=Nt===(await(Xe.isRTL==null?void 0:Xe.isRTL(Qe.floating))?"start":"end")?"left":"right"):(nr=Jt,kt=Nt==="end"?"top":"bottom");const Bt=ee(It.left,0),ar=ee(It.right,0),Dt=ee(It.top,0),er=ee(It.bottom,0),pr={availableHeight:Ne.floating.height-(["left","right"].includes(Le)?2*(Dt!==0||er!==0?Dt+er:ee(It.top,It.bottom)):It[kt]),availableWidth:Ne.floating.width-(["top","bottom"].includes(Le)?2*(Bt!==0||ar!==0?Bt+ar:ee(It.left,It.right)):It[nr])},yr=await Xe.getDimensions(Qe.floating);nt?.({...Ae,...pr});const kr=await Xe.getDimensions(Qe.floating);return yr.width!==kr.width||yr.height!==kr.height?{reset:{rects:!0}}:{}}}};function et(se){return se&&se.document&&se.location&&se.alert&&se.setInterval}function wt(se){if(se==null)return window;if(!et(se)){const Ae=se.ownerDocument;return Ae&&Ae.defaultView||window}return se}function Lt(se){return wt(se).getComputedStyle(se)}function St(se){return et(se)?"":se?(se.nodeName||"").toLowerCase():""}function yt(){const se=navigator.userAgentData;return se!=null&&se.brands?se.brands.map(Ae=>Ae.brand+"/"+Ae.version).join(" "):navigator.userAgent}function Wt(se){return se instanceof wt(se).HTMLElement}function Ft(se){return se instanceof wt(se).Element}function Ve(se){return typeof ShadowRoot<"u"&&(se instanceof wt(se).ShadowRoot||se instanceof ShadowRoot)}function bt(se){const{overflow:Ae,overflowX:Le,overflowY:Ne}=Lt(se);return/auto|scroll|overlay|hidden/.test(Ae+Ne+Le)}function at(se){return["table","td","th"].includes(St(se))}function mt(se){const Ae=/firefox/i.test(yt()),Le=Lt(se);return Le.transform!=="none"||Le.perspective!=="none"||Le.contain==="paint"||["transform","perspective"].includes(Le.willChange)||Ae&&Le.willChange==="filter"||Ae&&!!Le.filter&&Le.filter!=="none"}function ut(){return!/^((?!chrome|android).)*safari/i.test(yt())}const Ot=Math.min,Pt=Math.max,Gt=Math.round;function Ct(se,Ae,Le){var Ne,Xe,Qe,nt;Ae===void 0&&(Ae=!1),Le===void 0&&(Le=!1);const $e=se.getBoundingClientRect();let It=1,Jt=1;Ae&&Wt(se)&&(It=se.offsetWidth>0&&Gt($e.width)/se.offsetWidth||1,Jt=se.offsetHeight>0&&Gt($e.height)/se.offsetHeight||1);const Nt=Ft(se)?wt(se):window,kt=!ut()&&Le,nr=($e.left+(kt&&(Ne=(Xe=Nt.visualViewport)==null?void 0:Xe.offsetLeft)!=null?Ne:0))/It,Bt=($e.top+(kt&&(Qe=(nt=Nt.visualViewport)==null?void 0:nt.offsetTop)!=null?Qe:0))/Jt,ar=$e.width/It,Dt=$e.height/Jt;return{width:ar,height:Dt,top:Bt,right:nr+ar,bottom:Bt+Dt,left:nr,x:nr,y:Bt}}function ur(se){return(Ae=se,(Ae instanceof wt(Ae).Node?se.ownerDocument:se.document)||window.document).documentElement;var Ae}function rr(se){return Ft(se)?{scrollLeft:se.scrollLeft,scrollTop:se.scrollTop}:{scrollLeft:se.pageXOffset,scrollTop:se.pageYOffset}}function Tr(se){return Ct(ur(se)).left+rr(se).scrollLeft}function ot(se,Ae,Le){const Ne=Wt(Ae),Xe=ur(Ae),Qe=Ct(se,Ne&&function(It){const Jt=Ct(It);return Gt(Jt.width)!==It.offsetWidth||Gt(Jt.height)!==It.offsetHeight}(Ae),Le==="fixed");let nt={scrollLeft:0,scrollTop:0};const $e={x:0,y:0};if(Ne||!Ne&&Le!=="fixed")if((St(Ae)!=="body"||bt(Xe))&&(nt=rr(Ae)),Wt(Ae)){const It=Ct(Ae,!0);$e.x=It.x+Ae.clientLeft,$e.y=It.y+Ae.clientTop}else Xe&&($e.x=Tr(Xe));return{x:Qe.left+nt.scrollLeft-$e.x,y:Qe.top+nt.scrollTop-$e.y,width:Qe.width,height:Qe.height}}function Rt(se){return St(se)==="html"?se:se.assignedSlot||se.parentNode||(Ve(se)?se.host:null)||ur(se)}function _t(se){return Wt(se)&&getComputedStyle(se).position!=="fixed"?se.offsetParent:null}function At(se){const Ae=wt(se);let Le=_t(se);for(;Le&&at(Le)&&getComputedStyle(Le).position==="static";)Le=_t(Le);return Le&&(St(Le)==="html"||St(Le)==="body"&&getComputedStyle(Le).position==="static"&&!mt(Le))?Ae:Le||function(Ne){let Xe=Rt(Ne);for(Ve(Xe)&&(Xe=Xe.host);Wt(Xe)&&!["html","body"].includes(St(Xe));){if(mt(Xe))return Xe;Xe=Xe.parentNode}return null}(se)||Ae}function br(se){if(Wt(se))return{width:se.offsetWidth,height:se.offsetHeight};const Ae=Ct(se);return{width:Ae.width,height:Ae.height}}function xr(se){const Ae=Rt(se);return["html","body","#document"].includes(St(Ae))?se.ownerDocument.body:Wt(Ae)&&bt(Ae)?Ae:xr(Ae)}function jr(se,Ae){var Le;Ae===void 0&&(Ae=[]);const Ne=xr(se),Xe=Ne===((Le=se.ownerDocument)==null?void 0:Le.body),Qe=wt(Ne),nt=Xe?[Qe].concat(Qe.visualViewport||[],bt(Ne)?Ne:[]):Ne,$e=Ae.concat(nt);return Xe?$e:$e.concat(jr(nt))}function Ar(se,Ae,Le){return Ae==="viewport"?A(function(Ne,Xe){const Qe=wt(Ne),nt=ur(Ne),$e=Qe.visualViewport;let It=nt.clientWidth,Jt=nt.clientHeight,Nt=0,kt=0;if($e){It=$e.width,Jt=$e.height;const nr=ut();(nr||!nr&&Xe==="fixed")&&(Nt=$e.offsetLeft,kt=$e.offsetTop)}return{width:It,height:Jt,x:Nt,y:kt}}(se,Le)):Ft(Ae)?function(Ne,Xe){const Qe=Ct(Ne,!1,Xe==="fixed"),nt=Qe.top+Ne.clientTop,$e=Qe.left+Ne.clientLeft;return{top:nt,left:$e,x:$e,y:nt,right:$e+Ne.clientWidth,bottom:nt+Ne.clientHeight,width:Ne.clientWidth,height:Ne.clientHeight}}(Ae,Le):A(function(Ne){var Xe;const Qe=ur(Ne),nt=rr(Ne),$e=(Xe=Ne.ownerDocument)==null?void 0:Xe.body,It=Pt(Qe.scrollWidth,Qe.clientWidth,$e?$e.scrollWidth:0,$e?$e.clientWidth:0),Jt=Pt(Qe.scrollHeight,Qe.clientHeight,$e?$e.scrollHeight:0,$e?$e.clientHeight:0);let Nt=-nt.scrollLeft+Tr(Ne);const kt=-nt.scrollTop;return Lt($e||Qe).direction==="rtl"&&(Nt+=Pt(Qe.clientWidth,$e?$e.clientWidth:0)-It),{width:It,height:Jt,x:Nt,y:kt}}(ur(se)))}function fr(se){const Ae=jr(se),Le=["absolute","fixed"].includes(Lt(se).position)&&Wt(se)?At(se):se;return Ft(Le)?Ae.filter(Ne=>Ft(Ne)&&function(Xe,Qe){const nt=Qe.getRootNode==null?void 0:Qe.getRootNode();if(Xe.contains(Qe))return!0;if(nt&&Ve(nt)){let $e=Qe;do{if($e&&Xe===$e)return!0;$e=$e.parentNode||$e.host}while($e)}return!1}(Ne,Le)&&St(Ne)!=="body"):[]}const dt={getClippingRect:function(se){let{element:Ae,boundary:Le,rootBoundary:Ne,strategy:Xe}=se;const Qe=[...Le==="clippingAncestors"?fr(Ae):[].concat(Le),Ne],nt=Qe[0],$e=Qe.reduce((It,Jt)=>{const Nt=Ar(Ae,Jt,Xe);return It.top=Pt(Nt.top,It.top),It.right=Ot(Nt.right,It.right),It.bottom=Ot(Nt.bottom,It.bottom),It.left=Pt(Nt.left,It.left),It},Ar(Ae,nt,Xe));return{width:$e.right-$e.left,height:$e.bottom-$e.top,x:$e.left,y:$e.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(se){let{rect:Ae,offsetParent:Le,strategy:Ne}=se;const Xe=Wt(Le),Qe=ur(Le);if(Le===Qe)return Ae;let nt={scrollLeft:0,scrollTop:0};const $e={x:0,y:0};if((Xe||!Xe&&Ne!=="fixed")&&((St(Le)!=="body"||bt(Qe))&&(nt=rr(Le)),Wt(Le))){const It=Ct(Le,!0);$e.x=It.x+Le.clientLeft,$e.y=It.y+Le.clientTop}return{...Ae,x:Ae.x-nt.scrollLeft+$e.x,y:Ae.y-nt.scrollTop+$e.y}},isElement:Ft,getDimensions:br,getOffsetParent:At,getDocumentElement:ur,getElementRects:se=>{let{reference:Ae,floating:Le,strategy:Ne}=se;return{reference:ot(Ae,At(Le),Ne),floating:{...br(Le),x:0,y:0}}},getClientRects:se=>Array.from(se.getClientRects()),isRTL:se=>Lt(se).direction==="rtl"};function ft(se,Ae,Le,Ne){Ne===void 0&&(Ne={});const{ancestorScroll:Xe=!0,ancestorResize:Qe=!0,elementResize:nt=!0,animationFrame:$e=!1}=Ne,It=Xe&&!$e,Jt=Qe&&!$e,Nt=It||Jt?[...Ft(se)?jr(se):[],...jr(Ae)]:[];Nt.forEach(ar=>{It&&ar.addEventListener("scroll",Le,{passive:!0}),Jt&&ar.addEventListener("resize",Le)});let kt,nr=null;if(nt){let ar=!0;nr=new ResizeObserver(()=>{ar||Le(),ar=!1}),Ft(se)&&!$e&&nr.observe(se),nr.observe(Ae)}let Bt=$e?Ct(se):null;return $e&&function ar(){const Dt=Ct(se);!Bt||Dt.x===Bt.x&&Dt.y===Bt.y&&Dt.width===Bt.width&&Dt.height===Bt.height||Le(),Bt=Dt,kt=requestAnimationFrame(ar)}(),Le(),()=>{var ar;Nt.forEach(Dt=>{It&&Dt.removeEventListener("scroll",Le),Jt&&Dt.removeEventListener("resize",Le)}),(ar=nr)==null||ar.disconnect(),nr=null,$e&&cancelAnimationFrame(kt)}}const vt=(se,Ae,Le)=>(async(Ne,Xe,Qe)=>{const{placement:nt="bottom",strategy:$e="absolute",middleware:It=[],platform:Jt}=Qe,Nt=await(Jt.isRTL==null?void 0:Jt.isRTL(Xe));let kt=await Jt.getElementRects({reference:Ne,floating:Xe,strategy:$e}),{x:nr,y:Bt}=p(kt,nt,Nt),ar=nt,Dt={},er=0;for(let pr=0;pr<It.length;pr++){const{name:yr,fn:kr}=It[pr],{x:dr,y:Dr,data:Yr,reset:$r}=await kr({x:nr,y:Bt,initialPlacement:nt,placement:ar,strategy:$e,middlewareData:Dt,rects:kt,platform:Jt,elements:{reference:Ne,floating:Xe}});nr=dr??nr,Bt=Dr??Bt,Dt={...Dt,[yr]:{...Dt[yr],...Yr}},$r&&er<=50&&(er++,typeof $r=="object"&&($r.placement&&(ar=$r.placement),$r.rects&&(kt=$r.rects===!0?await Jt.getElementRects({reference:Ne,floating:Xe,strategy:$e}):$r.rects),{x:nr,y:Bt}=p(kt,ar,Nt)),pr=-1)}return{x:nr,y:Bt,placement:ar,strategy:$e,middlewareData:Dt}})(se,Ae,{platform:dt,...Le});var Et=e(5156),tr=e.n(Et),ir=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Qt(se,Ae){if(se===Ae)return!0;if(typeof se!=typeof Ae)return!1;if(typeof se=="function"&&se.toString()===Ae.toString())return!0;let Le,Ne,Xe;if(se&&Ae&&typeof se=="object"){if(Array.isArray(se)){if(Le=se.length,Le!=Ae.length)return!1;for(Ne=Le;Ne--!=0;)if(!Qt(se[Ne],Ae[Ne]))return!1;return!0}if(Xe=Object.keys(se),Le=Xe.length,Le!==Object.keys(Ae).length)return!1;for(Ne=Le;Ne--!=0;)if(!Object.prototype.hasOwnProperty.call(Ae,Xe[Ne]))return!1;for(Ne=Le;Ne--!=0;){const Qe=Xe[Ne];if((Qe!=="_owner"||!se.$$typeof)&&!Qt(se[Qe],Ae[Qe]))return!1}return!0}return se!=se&&Ae!=Ae}function _r(se){let{middleware:Ae,placement:Le="bottom",strategy:Ne="absolute",whileElementsMounted:Xe}=se===void 0?{}:se;const Qe=v.useRef(null),nt=v.useRef(null),$e=function(kr){const dr=v.useRef(kr);return ir(()=>{dr.current=kr}),dr}(Xe),It=v.useRef(null),[Jt,Nt]=v.useState({x:null,y:null,strategy:Ne,placement:Le,middlewareData:{}}),[kt,nr]=v.useState(Ae);Qt(kt?.map(kr=>{let{options:dr}=kr;return dr}),Ae?.map(kr=>{let{options:dr}=kr;return dr}))||nr(Ae);const Bt=v.useCallback(()=>{Qe.current&&nt.current&&vt(Qe.current,nt.current,{middleware:kt,placement:Le,strategy:Ne}).then(kr=>{ar.current&&Et.flushSync(()=>{Nt(kr)})})},[kt,Le,Ne]);ir(()=>{ar.current&&Bt()},[Bt]);const ar=v.useRef(!1);ir(()=>(ar.current=!0,()=>{ar.current=!1}),[]);const Dt=v.useCallback(()=>{if(typeof It.current=="function"&&(It.current(),It.current=null),Qe.current&&nt.current)if($e.current){const kr=$e.current(Qe.current,nt.current,Bt);It.current=kr}else Bt()},[Bt,$e]),er=v.useCallback(kr=>{Qe.current=kr,Dt()},[Dt]),pr=v.useCallback(kr=>{nt.current=kr,Dt()},[Dt]),yr=v.useMemo(()=>({reference:Qe,floating:nt}),[]);return v.useMemo(()=>({...Jt,update:Bt,refs:yr,reference:er,floating:pr}),[Jt,Bt,yr,er,pr])}const sr=se=>{const{element:Ae,padding:Le}=se;return{name:"arrow",options:se,fn(Ne){return Xe=Ae,Object.prototype.hasOwnProperty.call(Xe,"current")?Ae.current!=null?be({element:Ae.current,padding:Le}).fn(Ne):{}:Ae?be({element:Ae,padding:Le}).fn(Ne):{};var Xe}}},mr=(0,v.forwardRef)((se,Ae)=>{const{children:Le,width:Ne=10,height:Xe=5,...Qe}=se;return(0,v.createElement)(a.WV.svg,(0,f.Z)({},Qe,{ref:Ae,width:Ne,height:Xe,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),se.asChild?Le:(0,v.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),Zr=mr;var or=e(3348);const lr="Popper",[gr,cr]=(0,l.b)(lr),[Hr,vr]=gr(lr),Rr=se=>{const{__scopePopper:Ae,children:Le}=se,[Ne,Xe]=(0,v.useState)(null);return(0,v.createElement)(Hr,{scope:Ae,anchor:Ne,onAnchorChange:Xe},Le)},an="PopperAnchor",Sn=(0,v.forwardRef)((se,Ae)=>{const{__scopePopper:Le,virtualRef:Ne,...Xe}=se,Qe=vr(an,Le),nt=(0,v.useRef)(null),$e=(0,w.e)(Ae,nt);return(0,v.useEffect)(()=>{Qe.onAnchorChange(Ne?.current||nt.current)}),Ne?null:(0,v.createElement)(a.WV.div,(0,f.Z)({},Xe,{ref:$e}))}),Mn="PopperContent",[Zn,Rn]=gr(Mn),[bn,yn]=gr(Mn,{hasParent:!1,positionUpdateFns:new Set}),Un=(0,v.forwardRef)((se,Ae)=>{var Le,Ne,Xe,Qe,nt,$e,It,Jt;const{__scopePopper:Nt,side:kt="bottom",sideOffset:nr=0,align:Bt="center",alignOffset:ar=0,arrowPadding:Dt=0,collisionBoundary:er=[],collisionPadding:pr=0,sticky:yr="partial",hideWhenDetached:kr=!1,avoidCollisions:dr=!0,onPlaced:Dr,...Yr}=se,$r=vr(Mn,Nt),[Ir,Ur]=(0,v.useState)(null),Vr=(0,w.e)(Ae,Hn=>Ur(Hn)),[Jr,hn]=(0,v.useState)(null),ln=function(Hn){const[xo,Zo]=(0,v.useState)(void 0);return(0,or.b)(()=>{if(Hn){Zo({width:Hn.offsetWidth,height:Hn.offsetHeight});const ti=new ResizeObserver(ca=>{if(!Array.isArray(ca)||!ca.length)return;const Zt=ca[0];let sa,ua;if("borderBoxSize"in Zt){const da=Zt.borderBoxSize,fa=Array.isArray(da)?da[0]:da;sa=fa.inlineSize,ua=fa.blockSize}else sa=Hn.offsetWidth,ua=Hn.offsetHeight;Zo({width:sa,height:ua})});return ti.observe(Hn,{box:"border-box"}),()=>ti.unobserve(Hn)}Zo(void 0)},[Hn]),xo}(Jr),kn=(Le=ln?.width)!==null&&Le!==void 0?Le:0,En=(Ne=ln?.height)!==null&&Ne!==void 0?Ne:0,io=kt+(Bt!=="center"?"-"+Bt:""),Gn=typeof pr=="number"?pr:{top:0,right:0,bottom:0,left:0,...pr},So=Array.isArray(er)?er:[er],Mo=So.length>0,po={padding:Gn,boundary:So.filter(pt),altBoundary:Mo},{reference:jn,floating:bo,strategy:Pn,x:lo,y:zn,placement:oa,middlewareData:yo,update:aa}=_r({strategy:"fixed",placement:io,whileElementsMounted:ft,middleware:[Ut(),He({mainAxis:nr+En,alignmentAxis:ar}),dr?qe({mainAxis:!0,crossAxis:!1,limiter:yr==="partial"?st():void 0,...po}):void 0,Jr?sr({element:Jr,padding:Dt}):void 0,dr?tt({...po}):void 0,ht({...po,apply:({elements:Hn,availableWidth:xo,availableHeight:Zo})=>{Hn.floating.style.setProperty("--radix-popper-available-width",`${xo}px`),Hn.floating.style.setProperty("--radix-popper-available-height",`${Zo}px`)}}),zt({arrowWidth:kn,arrowHeight:En}),kr?De({strategy:"referenceHidden"}):void 0].filter(ze)});(0,or.b)(()=>{jn($r.anchor)},[jn,$r.anchor]);const co=lo!==null&&zn!==null,[Xa,ia]=qt(oa),ho=(0,c.W)(Dr);(0,or.b)(()=>{co&&ho?.()},[co,ho]);const ki=(Xe=yo.arrow)===null||Xe===void 0?void 0:Xe.x,qa=(Qe=yo.arrow)===null||Qe===void 0?void 0:Qe.y,$a=((nt=yo.arrow)===null||nt===void 0?void 0:nt.centerOffset)!==0,[Ja,la]=(0,v.useState)();(0,or.b)(()=>{Ir&&la(window.getComputedStyle(Ir).zIndex)},[Ir]);const{hasParent:Qa,positionUpdateFns:jo}=yn(Mn,Nt),Lo=!Qa;(0,v.useLayoutEffect)(()=>{if(!Lo)return jo.add(aa),()=>{jo.delete(aa)}},[Lo,jo,aa]),(0,or.b)(()=>{Lo&&co&&Array.from(jo).reverse().forEach(Hn=>requestAnimationFrame(Hn))},[Lo,co,jo]);const ei={"data-side":Xa,"data-align":ia,...Yr,ref:Vr,style:{...Yr.style,animation:co?void 0:"none",opacity:($e=yo.hide)!==null&&$e!==void 0&&$e.referenceHidden?0:void 0}};return(0,v.createElement)("div",{ref:bo,"data-radix-popper-content-wrapper":"",style:{position:Pn,left:0,top:0,transform:co?`translate3d(${Math.round(lo)}px, ${Math.round(zn)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Ja,"--radix-popper-transform-origin":[(It=yo.transformOrigin)===null||It===void 0?void 0:It.x,(Jt=yo.transformOrigin)===null||Jt===void 0?void 0:Jt.y].join(" ")},dir:se.dir},(0,v.createElement)(Zn,{scope:Nt,placedSide:Xa,onArrowChange:hn,arrowX:ki,arrowY:qa,shouldHideArrow:$a},Lo?(0,v.createElement)(bn,{scope:Nt,hasParent:!0,positionUpdateFns:jo},(0,v.createElement)(a.WV.div,ei)):(0,v.createElement)(a.WV.div,ei)))}),ne="PopperArrow",Ee={top:"bottom",right:"left",bottom:"top",left:"right"},Pe=(0,v.forwardRef)(function(se,Ae){const{__scopePopper:Le,...Ne}=se,Xe=Rn(ne,Le),Qe=Ee[Xe.placedSide];return(0,v.createElement)("span",{ref:Xe.onArrowChange,style:{position:"absolute",left:Xe.arrowX,top:Xe.arrowY,[Qe]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[Xe.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[Xe.placedSide],visibility:Xe.shouldHideArrow?"hidden":void 0}},(0,v.createElement)(Zr,(0,f.Z)({},Ne,{ref:Ae,style:{...Ne.style,display:"block"}})))});function ze(se){return se!==void 0}function pt(se){return se!==null}const Ut=()=>({name:"anchorCssProperties",fn(se){const{rects:Ae,elements:Le}=se,{width:Ne,height:Xe}=Ae.reference;return Le.floating.style.setProperty("--radix-popper-anchor-width",`${Ne}px`),Le.floating.style.setProperty("--radix-popper-anchor-height",`${Xe}px`),{}}}),zt=se=>({name:"transformOrigin",options:se,fn(Ae){var Le,Ne,Xe,Qe,nt;const{placement:$e,rects:It,middlewareData:Jt}=Ae,Nt=((Le=Jt.arrow)===null||Le===void 0?void 0:Le.centerOffset)!==0,kt=Nt?0:se.arrowWidth,nr=Nt?0:se.arrowHeight,[Bt,ar]=qt($e),Dt={start:"0%",center:"50%",end:"100%"}[ar],er=((Ne=(Xe=Jt.arrow)===null||Xe===void 0?void 0:Xe.x)!==null&&Ne!==void 0?Ne:0)+kt/2,pr=((Qe=(nt=Jt.arrow)===null||nt===void 0?void 0:nt.y)!==null&&Qe!==void 0?Qe:0)+nr/2;let yr="",kr="";return Bt==="bottom"?(yr=Nt?Dt:`${er}px`,kr=-nr+"px"):Bt==="top"?(yr=Nt?Dt:`${er}px`,kr=`${It.floating.height+nr}px`):Bt==="right"?(yr=-nr+"px",kr=Nt?Dt:`${pr}px`):Bt==="left"&&(yr=`${It.floating.width+nr}px`,kr=Nt?Dt:`${pr}px`),{data:{x:yr,y:kr}}}});function qt(se){const[Ae,Le="center"]=se.split("-");return[Ae,Le]}const gt=Rr,Xt=Sn,$t=Un,Er=Pe,Or=(0,v.forwardRef)((se,Ae)=>{var Le;const{container:Ne=globalThis==null||(Le=globalThis.document)===null||Le===void 0?void 0:Le.body,...Xe}=se;return Ne?tr().createPortal((0,v.createElement)(a.WV.div,(0,f.Z)({},Xe,{ref:Ae})),Ne):null});var Cr=e(1483),Fr=e(4801),zr=e(2673),Sr=function(se){return typeof document>"u"?null:(Array.isArray(se)?se[0]:se).ownerDocument.body},qr=new WeakMap,rn=new WeakMap,Ln={},Bn=0,$n=function(se){return se&&(se.host||$n(se.parentNode))},uo=function(se,Ae,Le,Ne){var Xe=function(kt,nr){return nr.map(function(Bt){if(kt.contains(Bt))return Bt;var ar=$n(Bt);return ar&&kt.contains(ar)?ar:(console.error("aria-hidden",Bt,"in not contained inside",kt,". Doing nothing"),null)}).filter(function(Bt){return!!Bt})}(Ae,Array.isArray(se)?se:[se]);Ln[Le]||(Ln[Le]=new WeakMap);var Qe=Ln[Le],nt=[],$e=new Set,It=new Set(Xe),Jt=function(kt){kt&&!$e.has(kt)&&($e.add(kt),Jt(kt.parentNode))};Xe.forEach(Jt);var Nt=function(kt){kt&&!It.has(kt)&&Array.prototype.forEach.call(kt.children,function(nr){if($e.has(nr))Nt(nr);else{var Bt=nr.getAttribute(Ne),ar=Bt!==null&&Bt!=="false",Dt=(qr.get(nr)||0)+1,er=(Qe.get(nr)||0)+1;qr.set(nr,Dt),Qe.set(nr,er),nt.push(nr),Dt===1&&ar&&rn.set(nr,!0),er===1&&nr.setAttribute(Le,"true"),ar||nr.setAttribute(Ne,"true")}})};return Nt(Ae),$e.clear(),Bn++,function(){nt.forEach(function(kt){var nr=qr.get(kt)-1,Bt=Qe.get(kt)-1;qr.set(kt,nr),Qe.set(kt,Bt),nr||(rn.has(kt)||kt.removeAttribute(Ne),rn.delete(kt)),Bt||kt.removeAttribute(Le)}),--Bn||(qr=new WeakMap,qr=new WeakMap,rn=new WeakMap,Ln={})}},wr=function(se,Ae,Le){Le===void 0&&(Le="data-aria-hidden");var Ne=Array.from(Array.isArray(se)?se:[se]),Xe=Ae||Sr(se);return Xe?(Ne.push.apply(Ne,Array.from(Xe.querySelectorAll("[aria-live]"))),uo(Ne,Xe,Le,"aria-hidden")):function(){return null}},nn=function(){return nn=Object.assign||function(se){for(var Ae,Le=1,Ne=arguments.length;Le<Ne;Le++)for(var Xe in Ae=arguments[Le])Object.prototype.hasOwnProperty.call(Ae,Xe)&&(se[Xe]=Ae[Xe]);return se},nn.apply(this,arguments)};function mn(se,Ae){var Le={};for(var Ne in se)Object.prototype.hasOwnProperty.call(se,Ne)&&Ae.indexOf(Ne)<0&&(Le[Ne]=se[Ne]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function"){var Xe=0;for(Ne=Object.getOwnPropertySymbols(se);Xe<Ne.length;Xe++)Ae.indexOf(Ne[Xe])<0&&Object.prototype.propertyIsEnumerable.call(se,Ne[Xe])&&(Le[Ne[Xe]]=se[Ne[Xe]])}return Le}var On="right-scroll-bar-position",Kn="width-before-scroll-bar";function Jn(se,Ae){return Le=Ae||null,Ne=function(Qe){return se.forEach(function(nt){return function($e,It){return typeof $e=="function"?$e(It):$e&&($e.current=It),$e}(nt,Qe)})},(Xe=(0,v.useState)(function(){return{value:Le,callback:Ne,facade:{get current(){return Xe.value},set current(Qe){var nt=Xe.value;nt!==Qe&&(Xe.value=Qe,Xe.callback(Qe,nt))}}}})[0]).callback=Ne,Xe.facade;var Le,Ne,Xe}function wo(se){return se}function to(se,Ae){Ae===void 0&&(Ae=wo);var Le=[],Ne=!1,Xe={read:function(){if(Ne)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return Le.length?Le[Le.length-1]:se},useMedium:function(Qe){var nt=Ae(Qe,Ne);return Le.push(nt),function(){Le=Le.filter(function($e){return $e!==nt})}},assignSyncMedium:function(Qe){for(Ne=!0;Le.length;){var nt=Le;Le=[],nt.forEach(Qe)}Le={push:function($e){return Qe($e)},filter:function(){return Le}}},assignMedium:function(Qe){Ne=!0;var nt=[];if(Le.length){var $e=Le;Le=[],$e.forEach(Qe),nt=Le}var It=function(){var Nt=nt;nt=[],Nt.forEach(Qe)},Jt=function(){return Promise.resolve().then(It)};Jt(),Le={push:function(Nt){nt.push(Nt),Jt()},filter:function(Nt){return nt=nt.filter(Nt),Le}}}};return Xe}var no=function(se){se===void 0&&(se={});var Ae=to(null);return Ae.options=nn({async:!0,ssr:!1},se),Ae}(),ma=function(){},Qo=v.forwardRef(function(se,Ae){var Le=v.useRef(null),Ne=v.useState({onScrollCapture:ma,onWheelCapture:ma,onTouchMoveCapture:ma}),Xe=Ne[0],Qe=Ne[1],nt=se.forwardProps,$e=se.children,It=se.className,Jt=se.removeScrollBar,Nt=se.enabled,kt=se.shards,nr=se.sideCar,Bt=se.noIsolation,ar=se.inert,Dt=se.allowPinchZoom,er=se.as,pr=er===void 0?"div":er,yr=mn(se,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),kr=nr,dr=Jn([Le,Ae]),Dr=nn(nn({},yr),Xe);return v.createElement(v.Fragment,null,Nt&&v.createElement(kr,{sideCar:no,removeScrollBar:Jt,shards:kt,noIsolation:Bt,inert:ar,setCallbacks:Qe,allowPinchZoom:!!Dt,lockRef:Le}),nt?v.cloneElement(v.Children.only($e),nn(nn({},Dr),{ref:dr})):v.createElement(pr,nn({},Dr,{className:It,ref:dr}),$e))});Qo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Qo.classNames={fullWidth:Kn,zeroRight:On};var Ia=function(se){var Ae=se.sideCar,Le=mn(se,["sideCar"]);if(!Ae)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var Ne=Ae.read();if(!Ne)throw new Error("Sidecar medium not found");return v.createElement(Ne,nn({},Le))};Ia.isSideCarExport=!0;function ii(){if(!document)return null;var se=document.createElement("style");se.type="text/css";var Ae=e.nc;return Ae&&se.setAttribute("nonce",Ae),se}var Ma=function(){var se=0,Ae=null;return{add:function(Le){var Ne,Xe;se==0&&(Ae=ii())&&(Xe=Le,(Ne=Ae).styleSheet?Ne.styleSheet.cssText=Xe:Ne.appendChild(document.createTextNode(Xe)),function(Qe){(document.head||document.getElementsByTagName("head")[0]).appendChild(Qe)}(Ae)),se++},remove:function(){!--se&&Ae&&(Ae.parentNode&&Ae.parentNode.removeChild(Ae),Ae=null)}}},Pa=function(){var se,Ae=(se=Ma(),function(Le,Ne){v.useEffect(function(){return se.add(Le),function(){se.remove()}},[Le&&Ne])});return function(Le){var Ne=Le.styles,Xe=Le.dynamic;return Ae(Ne,Xe),null}},Ta={left:0,top:0,right:0,gap:0},ko=function(se){return parseInt(se||"",10)||0},ea=function(se){if(se===void 0&&(se="margin"),typeof window>"u")return Ta;var Ae=function(Xe){var Qe=window.getComputedStyle(document.body),nt=Qe[Xe==="padding"?"paddingLeft":"marginLeft"],$e=Qe[Xe==="padding"?"paddingTop":"marginTop"],It=Qe[Xe==="padding"?"paddingRight":"marginRight"];return[ko(nt),ko($e),ko(It)]}(se),Le=document.documentElement.clientWidth,Ne=window.innerWidth;return{left:Ae[0],top:Ae[1],right:Ae[2],gap:Math.max(0,Ne-Le+Ae[2]-Ae[0])}},Qn=Pa(),Da=function(se,Ae,Le,Ne){var Xe=se.left,Qe=se.top,nt=se.right,$e=se.gap;return Le===void 0&&(Le="margin"),` + .`.concat("with-scroll-bars-hidden",` { + overflow: hidden `).concat(Ne,`; + padding-right: `).concat($e,"px ").concat(Ne,`; + } + body { + overflow: hidden `).concat(Ne,`; + overscroll-behavior: contain; + `).concat([Ae&&"position: relative ".concat(Ne,";"),Le==="margin"&&` + padding-left: `.concat(Xe,`px; + padding-top: `).concat(Qe,`px; + padding-right: `).concat(nt,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat($e,"px ").concat(Ne,`; + `),Le==="padding"&&"padding-right: ".concat($e,"px ").concat(Ne,";")].filter(Boolean).join(""),` + } + + .`).concat(On,` { + right: `).concat($e,"px ").concat(Ne,`; + } + + .`).concat(Kn,` { + margin-right: `).concat($e,"px ").concat(Ne,`; + } + + .`).concat(On," .").concat(On,` { + right: 0 `).concat(Ne,`; + } + + .`).concat(Kn," .").concat(Kn,` { + margin-right: 0 `).concat(Ne,`; + } + + body { + `).concat("--removed-body-scroll-bar-size",": ").concat($e,`px; + } +`)},li=function(se){var Ae=se.noRelative,Le=se.noImportant,Ne=se.gapMode,Xe=Ne===void 0?"margin":Ne,Qe=v.useMemo(function(){return ea(Xe)},[Xe]);return v.createElement(Qn,{styles:Da(Qe,!Ae,Xe,Le?"":"!important")})},ga=!1;if(typeof window<"u")try{var To=Object.defineProperty({},"passive",{get:function(){return ga=!0,!0}});window.addEventListener("test",To,To),window.removeEventListener("test",To,To)}catch{ga=!1}var _o=!!ga&&{passive:!1},Ho=function(se,Ae){var Le=window.getComputedStyle(se);return Le[Ae]!=="hidden"&&!(Le.overflowY===Le.overflowX&&!function(Ne){return Ne.tagName==="TEXTAREA"}(se)&&Le[Ae]==="visible")},Oo=function(se,Ae){var Le=Ae;do{if(typeof ShadowRoot<"u"&&Le instanceof ShadowRoot&&(Le=Le.host),va(se,Le)){var Ne=Wo(se,Le);if(Ne[1]>Ne[2])return!0}Le=Le.parentNode}while(Le&&Le!==document.body);return!1},va=function(se,Ae){return se==="v"?function(Le){return Ho(Le,"overflowY")}(Ae):function(Le){return Ho(Le,"overflowX")}(Ae)},Wo=function(se,Ae){return se==="v"?[(Le=Ae).scrollTop,Le.scrollHeight,Le.clientHeight]:function(Ne){return[Ne.scrollLeft,Ne.scrollWidth,Ne.clientWidth]}(Ae);var Le},Do=function(se){return"changedTouches"in se?[se.changedTouches[0].clientX,se.changedTouches[0].clientY]:[0,0]},Aa=function(se){return[se.deltaX,se.deltaY]},ba=function(se){return se&&"current"in se?se.current:se},ya=function(se){return` + .block-interactivity-`.concat(se,` {pointer-events: none;} + .allow-interactivity-`).concat(se,` {pointer-events: all;} +`)},ta=0,oo=[],Fo,Ao=(Fo=function(se){var Ae=v.useRef([]),Le=v.useRef([0,0]),Ne=v.useRef(),Xe=v.useState(ta++)[0],Qe=v.useState(function(){return Pa()})[0],nt=v.useRef(se);v.useEffect(function(){nt.current=se},[se]),v.useEffect(function(){if(se.inert){document.body.classList.add("block-interactivity-".concat(Xe));var Dt=function(er,pr,yr){if(yr||arguments.length===2)for(var kr,dr=0,Dr=pr.length;dr<Dr;dr++)!kr&&dr in pr||(kr||(kr=Array.prototype.slice.call(pr,0,dr)),kr[dr]=pr[dr]);return er.concat(kr||Array.prototype.slice.call(pr))}([se.lockRef.current],(se.shards||[]).map(ba),!0).filter(Boolean);return Dt.forEach(function(er){return er.classList.add("allow-interactivity-".concat(Xe))}),function(){document.body.classList.remove("block-interactivity-".concat(Xe)),Dt.forEach(function(er){return er.classList.remove("allow-interactivity-".concat(Xe))})}}},[se.inert,se.lockRef.current,se.shards]);var $e=v.useCallback(function(Dt,er){if("touches"in Dt&&Dt.touches.length===2)return!nt.current.allowPinchZoom;var pr,yr=Do(Dt),kr=Le.current,dr="deltaX"in Dt?Dt.deltaX:kr[0]-yr[0],Dr="deltaY"in Dt?Dt.deltaY:kr[1]-yr[1],Yr=Dt.target,$r=Math.abs(dr)>Math.abs(Dr)?"h":"v";if("touches"in Dt&&$r==="h"&&Yr.type==="range")return!1;var Ir=Oo($r,Yr);if(!Ir)return!0;if(Ir?pr=$r:(pr=$r==="v"?"h":"v",Ir=Oo($r,Yr)),!Ir)return!1;if(!Ne.current&&"changedTouches"in Dt&&(dr||Dr)&&(Ne.current=pr),!pr)return!0;var Ur=Ne.current||pr;return function(Vr,Jr,hn,ln,kn){var En=function(oa,yo){return oa==="h"&&yo==="rtl"?-1:1}(Vr,window.getComputedStyle(Jr).direction),io=En*ln,Gn=hn.target,So=Jr.contains(Gn),Mo=!1,po=io>0,jn=0,bo=0;do{var Pn=Wo(Vr,Gn),lo=Pn[0],zn=Pn[1]-Pn[2]-En*lo;(lo||zn)&&va(Vr,Gn)&&(jn+=zn,bo+=lo),Gn=Gn.parentNode}while(!So&&Gn!==document.body||So&&(Jr.contains(Gn)||Jr===Gn));return(po&&(kn&&jn===0||!kn&&io>jn)||!po&&(kn&&bo===0||!kn&&-io>bo))&&(Mo=!0),Mo}(Ur,er,Dt,Ur==="h"?dr:Dr,!0)},[]),It=v.useCallback(function(Dt){var er=Dt;if(oo.length&&oo[oo.length-1]===Qe){var pr="deltaY"in er?Aa(er):Do(er),yr=Ae.current.filter(function(dr){return dr.name===er.type&&dr.target===er.target&&function(Dr,Yr){return Dr[0]===Yr[0]&&Dr[1]===Yr[1]}(dr.delta,pr)})[0];if(yr&&yr.should)er.cancelable&&er.preventDefault();else if(!yr){var kr=(nt.current.shards||[]).map(ba).filter(Boolean).filter(function(dr){return dr.contains(er.target)});(kr.length>0?$e(er,kr[0]):!nt.current.noIsolation)&&er.cancelable&&er.preventDefault()}}},[]),Jt=v.useCallback(function(Dt,er,pr,yr){var kr={name:Dt,delta:er,target:pr,should:yr};Ae.current.push(kr),setTimeout(function(){Ae.current=Ae.current.filter(function(dr){return dr!==kr})},1)},[]),Nt=v.useCallback(function(Dt){Le.current=Do(Dt),Ne.current=void 0},[]),kt=v.useCallback(function(Dt){Jt(Dt.type,Aa(Dt),Dt.target,$e(Dt,se.lockRef.current))},[]),nr=v.useCallback(function(Dt){Jt(Dt.type,Do(Dt),Dt.target,$e(Dt,se.lockRef.current))},[]);v.useEffect(function(){return oo.push(Qe),se.setCallbacks({onScrollCapture:kt,onWheelCapture:kt,onTouchMoveCapture:nr}),document.addEventListener("wheel",It,_o),document.addEventListener("touchmove",It,_o),document.addEventListener("touchstart",Nt,_o),function(){oo=oo.filter(function(Dt){return Dt!==Qe}),document.removeEventListener("wheel",It,_o),document.removeEventListener("touchmove",It,_o),document.removeEventListener("touchstart",Nt,_o)}},[]);var Bt=se.removeScrollBar,ar=se.inert;return v.createElement(v.Fragment,null,ar?v.createElement(Qe,{styles:ya(Xe)}):null,Bt?v.createElement(li,{gapMode:"margin"}):null)},no.useMedium(Fo),Ia),Eo=v.forwardRef(function(se,Ae){return v.createElement(Qo,nn({},se,{ref:Ae,sideCar:Ao}))});Eo.classNames=Qo.classNames;var ci=Eo;const La="Popover",[Za,Ki]=(0,l.b)(La,[cr]),Uo=cr(),[si,Co]=Za(La),ui=se=>{const{__scopePopover:Ae,children:Le,open:Ne,defaultOpen:Xe,onOpenChange:Qe,modal:nt=!1}=se,$e=Uo(Ae),It=(0,v.useRef)(null),[Jt,Nt]=(0,v.useState)(!1),[kt=!1,nr]=(0,zr.T)({prop:Ne,defaultProp:Xe,onChange:Qe});return(0,v.createElement)(gt,$e,(0,v.createElement)(si,{scope:Ae,contentId:(0,J.M)(),triggerRef:It,open:kt,onOpenChange:nr,onOpenToggle:(0,v.useCallback)(()=>nr(Bt=>!Bt),[nr]),hasCustomAnchor:Jt,onCustomAnchorAdd:(0,v.useCallback)(()=>Nt(!0),[]),onCustomAnchorRemove:(0,v.useCallback)(()=>Nt(!1),[]),modal:nt},Le))},di="PopoverTrigger",fi=(0,v.forwardRef)((se,Ae)=>{const{__scopePopover:Le,...Ne}=se,Xe=Co(di,Le),Qe=Uo(Le),nt=(0,w.e)(Ae,Xe.triggerRef),$e=(0,v.createElement)(a.WV.button,(0,f.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":Xe.open,"aria-controls":Xe.contentId,"data-state":Na(Xe.open)},Ne,{ref:nt,onClick:(0,t.M)(se.onClick,Xe.onOpenToggle)}));return Xe.hasCustomAnchor?$e:(0,v.createElement)(Xt,(0,f.Z)({asChild:!0},Qe),$e)}),xa="PopoverPortal",[pi,hi]=Za(xa,{forceMount:void 0}),ra=se=>{const{__scopePopover:Ae,forceMount:Le,children:Ne,container:Xe}=se,Qe=Co(xa,Ae);return(0,v.createElement)(pi,{scope:Ae,forceMount:Le},(0,v.createElement)(Cr.z,{present:Le||Qe.open},(0,v.createElement)(Or,{asChild:!0,container:Xe},Ne)))},fo="PopoverContent",mi=(0,v.forwardRef)((se,Ae)=>{const Le=hi(fo,se.__scopePopover),{forceMount:Ne=Le.forceMount,...Xe}=se,Qe=Co(fo,se.__scopePopover);return(0,v.createElement)(Cr.z,{present:Ne||Qe.open},Qe.modal?(0,v.createElement)(Ra,(0,f.Z)({},Xe,{ref:Ae})):(0,v.createElement)(za,(0,f.Z)({},Xe,{ref:Ae})))}),Ra=(0,v.forwardRef)((se,Ae)=>{const Le=Co(fo,se.__scopePopover),Ne=(0,v.useRef)(null),Xe=(0,w.e)(Ae,Ne),Qe=(0,v.useRef)(!1);return(0,v.useEffect)(()=>{const nt=Ne.current;if(nt)return wr(nt)},[]),(0,v.createElement)(ci,{as:Fr.g7,allowPinchZoom:!0},(0,v.createElement)(wa,(0,f.Z)({},se,{ref:Xe,trapFocus:Le.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,t.M)(se.onCloseAutoFocus,nt=>{var $e;nt.preventDefault(),Qe.current||($e=Le.triggerRef.current)===null||$e===void 0||$e.focus()}),onPointerDownOutside:(0,t.M)(se.onPointerDownOutside,nt=>{const $e=nt.detail.originalEvent,It=$e.button===0&&$e.ctrlKey===!0,Jt=$e.button===2||It;Qe.current=Jt},{checkForDefaultPrevented:!1}),onFocusOutside:(0,t.M)(se.onFocusOutside,nt=>nt.preventDefault(),{checkForDefaultPrevented:!1})})))}),za=(0,v.forwardRef)((se,Ae)=>{const Le=Co(fo,se.__scopePopover),Ne=(0,v.useRef)(!1);return(0,v.createElement)(wa,(0,f.Z)({},se,{ref:Ae,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:Xe=>{var Qe,nt;(Qe=se.onCloseAutoFocus)===null||Qe===void 0||Qe.call(se,Xe),Xe.defaultPrevented||(Ne.current||(nt=Le.triggerRef.current)===null||nt===void 0||nt.focus(),Xe.preventDefault()),Ne.current=!1},onInteractOutside:Xe=>{var Qe,nt;(Qe=se.onInteractOutside)===null||Qe===void 0||Qe.call(se,Xe),Xe.defaultPrevented||(Ne.current=!0);const $e=Xe.target;!((nt=Le.triggerRef.current)===null||nt===void 0)&&nt.contains($e)&&Xe.preventDefault()}}))}),wa=(0,v.forwardRef)((se,Ae)=>{const{__scopePopover:Le,trapFocus:Ne,onOpenAutoFocus:Xe,onCloseAutoFocus:Qe,disableOutsidePointerEvents:nt,onEscapeKeyDown:$e,onPointerDownOutside:It,onFocusOutside:Jt,onInteractOutside:Nt,...kt}=se,nr=Co(fo,Le),Bt=Uo(Le);return ce(),(0,v.createElement)(Ce,{asChild:!0,loop:!0,trapped:Ne,onMountAutoFocus:Xe,onUnmountAutoFocus:Qe},(0,v.createElement)(N,{asChild:!0,disableOutsidePointerEvents:nt,onInteractOutside:Nt,onEscapeKeyDown:$e,onPointerDownOutside:It,onFocusOutside:Jt,onDismiss:()=>nr.onOpenChange(!1)},(0,v.createElement)($t,(0,f.Z)({"data-state":Na(nr.open),role:"dialog",id:nr.contentId},Bt,kt,{ref:Ae,style:{...kt.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}),na=(0,v.forwardRef)((se,Ae)=>{const{__scopePopover:Le,...Ne}=se,Xe=Uo(Le);return(0,v.createElement)(Er,(0,f.Z)({},Xe,Ne,{ref:Ae}))});function Na(se){return se?"open":"closed"}const gi=ui,Ba=fi,Io=ra,Ko=mi,vi=na;var ka=e(8242),Ea=e(453),Ha=e(8935),_n=e(8924),un=function(se){var Ae=se.color,Le=se.onChange,Ne=se.label,Xe=se.colorPickerType,Qe=(0,ka.Fy)(),nt=(0,v.useState)(Ae),$e=(0,D.Z)(nt,2),It=$e[0],Jt=$e[1],Nt=(0,Z.KO)(le),kt=(0,D.Z)(Nt,2),nr=kt[0],Bt=kt[1];(0,v.useEffect)(function(){Jt(Ae)},[Ae]);var ar=(0,v.useCallback)(function(Dr){var Yr=Dr.toLowerCase(),$r=vo(Yr);$r&&Le($r),Jt(Yr)},[Le]),Dt=(0,v.useRef)(null),er=(0,v.useRef)(null);(0,v.useEffect)(function(){Dt.current&&Dt.current.focus()},[nr]);var pr=(0,Z.KO)(_n.$,Ea.yE),yr=(0,D.Z)(pr,2),kr=yr[0],dr=yr[1];return(0,v.useEffect)(function(){return function(){dr(null)}},[dr]),(0,S.jsxs)("div",{className:"color-picker__input-label",children:[(0,S.jsx)("div",{className:"color-picker__input-hash",children:"#"}),(0,S.jsx)("input",{ref:nr==="hex"?Dt:void 0,style:{border:0,padding:0},spellCheck:!1,className:"color-picker-input","aria-label":Ne,onChange:function(Dr){ar(Dr.target.value)},value:(It||"").replace(/^#/,""),onBlur:function(){Jt(Ae)},tabIndex:-1,onFocus:function(){return Bt("hex")},onKeyDown:function(Dr){var Yr;Dr.key!==b.tW.TAB&&(Dr.key===b.tW.ESCAPE&&((Yr=er.current)===null||Yr===void 0||Yr.focus()),Dr.stopPropagation())}}),!Qe.editor.isMobile&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{style:{width:"1px",height:"1.25rem",backgroundColor:"var(--default-border-color)"}}),(0,S.jsx)("div",{ref:er,className:(0,y.Z)("excalidraw-eye-dropper-trigger",{selected:kr}),onClick:function(){return dr(function(Dr){return Dr?null:{keepOpenOnAlt:!1,onSelect:function(Yr){return Le(Yr)},colorPickerType:Xe}})},title:"".concat((0,M.t)("labels.eyeDropper")," — ").concat(b.tW.I.toLocaleUpperCase()," or ").concat((0,E.uY)("Alt")," "),children:Ha.$W})]})]})},Wa=e(3379),Gr=e.n(Wa),Fa=e(7795),ro=e.n(Fa),Ua=e(569),bi=e.n(Ua),yi=e(3565),Ka=e.n(yi),xi=e(9216),Ga=e.n(xi),Ya=e(4589),ao=e.n(Ya),Go=e(4269),go={};go.styleTagTransform=ao(),go.setAttributes=Ka(),go.insert=bi().bind(null,"head"),go.domAPI=ro(),go.insertStyleElement=Ga(),Gr()(Go.Z,go),Go.Z&&Go.Z.locals&&Go.Z.locals;var Cn=function(se){var Ae=new Option().style;return Ae.color=se,!!Ae.color},vo=function(se){return(0,E.Qm)(se)?se:Cn("#".concat(se))?"#".concat(se):Cn(se)?se:null},Yo=function(se){var Ae=se.type,Le=se.color,Ne=se.onChange,Xe=se.label,Qe=se.elements,nt=se.palette,$e=nt===void 0?h.HO:nt,It=se.updateData,Jt=(0,Z.KO)(le),Nt=(0,D.Z)(Jt,2)[1],kt=(0,Z.KO)(_n.$,Ea.yE),nr=(0,D.Z)(kt,2),Bt=nr[0],ar=nr[1],Dt=(0,ka.J0)().container,er=(0,ka.Fy)(),pr=(0,S.jsxs)("div",{children:[(0,S.jsx)(g,{children:(0,M.t)("colorPicker.hexCode")}),(0,S.jsx)(un,{color:Le,label:Xe,onChange:function(dr){Ne(dr)},colorPickerType:Ae})]}),yr=(0,v.useRef)(null),kr=function(){var dr,Dr;(dr=yr.current)===null||dr===void 0||(Dr=dr.querySelector(".color-picker-content"))===null||Dr===void 0||Dr.focus()};return(0,S.jsx)(Io,{container:Dt,children:(0,S.jsxs)(Ko,{ref:yr,className:"focus-visible-none","data-prevent-outside-click":!0,onFocusOutside:function(dr){kr(),dr.preventDefault()},onPointerDownOutside:function(dr){Bt&&dr.preventDefault()},onCloseAutoFocus:function(dr){dr.stopPropagation(),dr.preventDefault(),Dt&&!(0,E.y1)(document.activeElement)&&Dt.focus(),It({openPopup:null}),Nt(null)},side:er.editor.isMobile&&!er.viewport.isLandscape?"bottom":"right",align:er.editor.isMobile&&!er.viewport.isLandscape?"center":"start",alignOffset:-16,sideOffset:20,style:{zIndex:"var(--zIndex-layerUI)",backgroundColor:"var(--popup-bg-color)",maxWidth:"208px",maxHeight:window.innerHeight,padding:"12px",borderRadius:"8px",boxSizing:"border-box",overflowY:"auto",boxShadow:"0px 7px 14px rgba(0, 0, 0, 0.05), 0px 0px 3.12708px rgba(0, 0, 0, 0.0798), 0px 0px 0.931014px rgba(0, 0, 0, 0.1702)"},children:[$e?(0,S.jsx)(s,{palette:$e,color:Le,onChange:function(dr){Ne(dr)},onEyeDropperToggle:function(dr){ar(function(Dr){return dr?((Dr=Dr||{keepOpenOnAlt:!0,onSelect:Ne,colorPickerType:Ae}).keepOpenOnAlt=!0,Dr):dr===!1||Dr?null:{keepOpenOnAlt:!1,onSelect:Ne,colorPickerType:Ae}})},onEscape:function(dr){Bt?ar(null):(0,E.s)(dr.target)?kr():It({openPopup:null})},label:Xe,type:Ae,elements:Qe,updateData:It,children:pr}):pr,(0,S.jsx)(vi,{width:20,height:10,style:{fill:"var(--popup-bg-color)",filter:"drop-shadow(rgba(0, 0, 0, 0.05) 0px 3px 2px)"}})]})})},Va=function(se){var Ae=se.label,Le=se.color,Ne=se.type;return(0,S.jsx)(Ba,{type:"button",className:(0,y.Z)("color-picker__button active-color",{"is-transparent":Le==="transparent"||!Le}),"aria-label":Ae,style:Le?{"--swatch-color":Le}:void 0,title:Ne==="elementStroke"?(0,M.t)("labels.showStroke"):(0,M.t)("labels.showBackground"),children:(0,S.jsx)("div",{className:"color-picker__button-outline"})})},wi=function(se){var Ae=se.type,Le=se.color,Ne=se.onChange,Xe=se.label,Qe=se.elements,nt=se.palette,$e=nt===void 0?h.HO:nt,It=se.topPicks,Jt=se.updateData,Nt=se.appState;return(0,S.jsx)("div",{children:(0,S.jsxs)("div",{role:"dialog","aria-modal":"true",className:"color-picker-container",children:[(0,S.jsx)(I,{activeColor:Le,onChange:Ne,type:Ae,topPicks:It}),(0,S.jsx)("div",{style:{width:1,height:"100%",backgroundColor:"var(--default-border-color)",margin:"0 auto"}}),(0,S.jsxs)(gi,{open:Nt.openPopup===Ae,onOpenChange:function(kt){Jt({openPopup:kt?Ae:null})},children:[(0,S.jsx)(Va,{color:Le,label:Xe,type:Ae}),Nt.openPopup===Ae&&(0,S.jsx)(Yo,{type:Ae,color:Le,onChange:Ne,label:Xe,elements:Qe,palette:$e,updateData:Jt})]})]})})}},6887:function(Se,Q,e){e.d(Q,{Z:function(){return f}});var D=e(7169),E=e(2726),y=e(8227),h=e(1300),S=e(3379),I=e.n(S),v=e(7795),n=e.n(v),M=e(569),Z=e.n(M),H=e(3565),W=e.n(H),u=e(9216),U=e.n(u),le=e(4589),de=e.n(le),he=e(9393),pe={};pe.styleTagTransform=de(),pe.setAttributes=W(),pe.insert=Z().bind(null,"head"),pe.domAPI=n(),pe.insertStyleElement=U(),I()(he.Z,pe),he.Z&&he.Z.locals&&he.Z.locals;var oe=e(4932),P=e(3607),$=e(3116),b=e(8242),R=e(453),_=e(1020),g=["onConfirm","onCancel","children","confirmText","cancelText","className"];function O(t,w){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);w&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),l.push.apply(l,a)}return l}function s(t){for(var w=1;w<arguments.length;w++){var l=arguments[w]!=null?arguments[w]:{};w%2?O(Object(l),!0).forEach(function(a){(0,D.Z)(t,a,l[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):O(Object(l)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(l,a))})}return t}var f=function(t){var w=t.onConfirm,l=t.onCancel,a=t.children,c=t.confirmText,m=c===void 0?(0,y.t)("buttons.confirm"):c,z=t.cancelText,j=z===void 0?(0,y.t)("buttons.cancel"):z,k=t.className,x=k===void 0?"":k,N=(0,E.Z)(t,g),G=(0,b.n9)(),ie=(0,P.b9)($.uh,R.yE),V=(0,b.J0)().container;return(0,_.jsxs)(h.V,s(s({onCloseRequest:l,size:"small"},N),{},{className:"confirm-dialog ".concat(x),children:[a,(0,_.jsxs)("div",{className:"confirm-dialog-buttons",children:[(0,_.jsx)(oe.Z,{label:j,onClick:function(){G({openMenu:null}),ie(!1),l(),V?.focus()}}),(0,_.jsx)(oe.Z,{label:m,onClick:function(){G({openMenu:null}),ie(!1),w(),V?.focus()},actionType:"danger"})]})]}))}},1925:function(Se,Q,e){e.d(Q,{O:function(){return $}});var D=e(2726),E=e(7169),y=e(45),h=e(9937),S=e(4572),I=e(100),v=e(8227),n=e(9827),M=e(8242),Z=e(6922),H=e(3116),W=e(5902),u=e(1020),U=e(9787),le=["children"],de=["children","className","onDock","docked"];function he(b,R){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(b);R&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(b,O).enumerable})),_.push.apply(_,g)}return _}function pe(b){for(var R=1;R<arguments.length;R++){var _=arguments[R]!=null?arguments[R]:{};R%2?he(Object(_),!0).forEach(function(g){(0,E.Z)(b,g,_[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(_)):he(Object(_)).forEach(function(g){Object.defineProperty(b,g,Object.getOwnPropertyDescriptor(_,g))})}return b}var oe=(0,Z.$)("DefaultSidebarTrigger",function(b){var R=(0,S.R6)().DefaultSidebarTriggerTunnel;return(0,u.jsx)(R.In,{children:(0,u.jsx)(W.YE.Trigger,pe(pe({},b),{},{className:"default-sidebar-trigger",name:h.Cc.name}))})});oe.displayName="DefaultSidebarTrigger";var P=function(b){var R=b.children,_=(0,D.Z)(b,le),g=(0,S.R6)().DefaultSidebarTabTriggersTunnel;return(0,u.jsx)(g.In,{children:(0,u.jsx)(W.YE.TabTriggers,pe(pe({},_),{},{children:R}))})};P.displayName="DefaultTabTriggers";var $=Object.assign((0,Z.$)("DefaultSidebar",function(b){var R=b.children,_=b.className,g=b.onDock,O=b.docked,s=(0,D.Z)(b,de),f=(0,I.I)(),t=(0,M.n9)(),w=(0,S.R6)().DefaultSidebarTabTriggersTunnel;return(0,U.createElement)(W.YE,pe(pe({},s),{},{name:"default",key:"default",className:(0,y.Z)("default-sidebar",_),docked:O??f.defaultSidebarDockedPreference,onDock:g===!1||!g&&O!=null?void 0:(0,n.Mj)(g,function(l){t({defaultSidebarDockedPreference:l})})}),(0,u.jsxs)(W.YE.Tabs,{children:[(0,u.jsxs)(W.YE.Header,{children:[s.__fallback&&(0,u.jsx)("div",{style:{color:"var(--color-primary)",fontSize:"1.2em",fontWeight:"bold",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",paddingRight:"1em"},children:(0,v.t)("toolBar.library")}),(0,u.jsx)(w.Out,{})]}),(0,u.jsx)(W.YE.Tab,{tab:h.tf,children:(0,u.jsx)(H.rY,{})}),R]}))}),{Trigger:oe,TabTriggers:P})},1300:function(Se,Q,e){e.d(Q,{V:function(){return m}});var D=e(2577),E=e(45),y=e(9787),h=e(8227),S=e(8242),I=e(5491),v=e(3379),n=e.n(v),M=e(7795),Z=e.n(M),H=e(569),W=e.n(H),u=e(3565),U=e.n(u),le=e(9216),de=e.n(le),he=e(4589),pe=e.n(he),oe=e(9482),P={};P.styleTagTransform=pe(),P.setAttributes=U(),P.insert=W().bind(null,"head"),P.domAPI=Z(),P.insertStyleElement=de(),n()(oe.Z,P),oe.Z&&oe.Z.locals&&oe.Z.locals;var $=e(8935),b=e(1404),R=e(6843),_={};_.styleTagTransform=pe(),_.setAttributes=U(),_.insert=W().bind(null,"head"),_.domAPI=Z(),_.insertStyleElement=de(),n()(R.Z,_),R.Z&&R.Z.locals&&R.Z.locals;var g=e(5156),O=e(334),s=e(1020),f=function(z){var j=z.closeOnClickOutside,k=j===void 0||j,x=(0,O.F)({className:"excalidraw-modal-container"});return x?(0,g.createPortal)((0,s.jsxs)("div",{className:(0,E.Z)("Modal",z.className),role:"dialog","aria-modal":"true",onKeyDown:function(N){N.key===I.tW.ESCAPE&&(N.nativeEvent.stopImmediatePropagation(),N.stopPropagation(),z.onCloseRequest())},"aria-labelledby":z.labelledBy,"data-prevent-outside-click":!0,children:[(0,s.jsx)("div",{className:"Modal__background",onClick:k?z.onCloseRequest:void 0}),(0,s.jsx)("div",{className:"Modal__content",style:{"--max-width":"".concat(z.maxWidth,"px")},tabIndex:0,children:z.children})]}),x):null},t=e(9827),w=e(3607),l=e(3116),a=e(453);function c(z){if(z&&typeof z=="number")return z;switch(z){case"small":return 550;case"wide":return 1024;default:return 800}}var m=function(z){var j=function(){var me=(0,y.useState)(null),Ce=(0,D.Z)(me,2),We=Ce[0],Te=Ce[1];return[We,(0,y.useCallback)(function(we){return Te(we)},[])]}(),k=(0,D.Z)(j,2),x=k[0],N=k[1],G=(0,y.useState)(document.activeElement),ie=(0,D.Z)(G,1)[0],V=(0,S.J0)().id,ce=(0,S.Fy)().viewport.isMobile;(0,y.useEffect)(function(){if(x){var me=(0,t.xp)(x);me.length>0&&z.autofocus!==!1&&(me[1]||me[0]).focus();var Ce=function(We){if(We.key===I.tW.TAB){var Te=(0,t.xp)(x),we=document.activeElement,xe=Te.findIndex(function(_e){return _e===we});xe===0&&We.shiftKey?(Te[Te.length-1].focus(),We.preventDefault()):xe!==Te.length-1||We.shiftKey||(Te[0].focus(),We.preventDefault())}};return x.addEventListener("keydown",Ce),function(){return x.removeEventListener("keydown",Ce)}}},[x,z.autofocus]);var te=(0,S.n9)(),L=(0,w.b9)(l.uh,a.yE),re=function(){te({openMenu:null}),L(!1),ie.focus(),z.onCloseRequest()};return(0,s.jsx)(f,{className:(0,E.Z)("Dialog",z.className,{"Dialog--fullscreen":ce}),labelledBy:"dialog-title",maxWidth:c(z.size),onCloseRequest:re,closeOnClickOutside:z.closeOnClickOutside,children:(0,s.jsxs)(b.W,{ref:N,children:[z.title&&(0,s.jsx)("h2",{id:"".concat(V,"-dialog-title"),className:"Dialog__title",children:(0,s.jsx)("span",{className:"Dialog__titleContent",children:z.title})}),(0,s.jsx)("button",{className:"Dialog__close",onClick:re,title:(0,h.t)("buttons.close"),"aria-label":(0,h.t)("buttons.close"),children:ce?$.op:$.Tw}),(0,s.jsx)("div",{className:"Dialog__content",children:z.children})]})})}},4932:function(Se,Q,e){e.d(Q,{Z:function(){return R}});var D=e(7169),E=e(2726),y=e(45),h=e(3379),S=e.n(h),I=e(7795),v=e.n(I),n=e(569),M=e.n(n),Z=e(3565),H=e.n(Z),W=e(9216),u=e.n(W),U=e(4589),le=e.n(U),de=e(6148),he={};he.styleTagTransform=le(),he.setAttributes=H(),he.insert=M().bind(null,"head"),he.domAPI=v(),he.insertStyleElement=u(),S()(de.Z,he),de.Z&&de.Z.locals&&de.Z.locals;var pe=e(8531),oe=e(1020),P=["label","onClick","className","children","actionType","type","isLoading"];function $(_,g){var O=Object.keys(_);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(_);g&&(s=s.filter(function(f){return Object.getOwnPropertyDescriptor(_,f).enumerable})),O.push.apply(O,s)}return O}function b(_){for(var g=1;g<arguments.length;g++){var O=arguments[g]!=null?arguments[g]:{};g%2?$(Object(O),!0).forEach(function(s){(0,D.Z)(_,s,O[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(O)):$(Object(O)).forEach(function(s){Object.defineProperty(_,s,Object.getOwnPropertyDescriptor(O,s))})}return _}var R=function(_){var g=_.label,O=_.onClick,s=_.className,f=_.children,t=_.actionType,w=_.type,l=w===void 0?"button":w,a=_.isLoading,c=(0,E.Z)(_,P),m=t?"Dialog__action-button--".concat(t):"";return(0,oe.jsxs)("button",b(b({className:(0,y.Z)("Dialog__action-button",m,s),type:l,"aria-label":g,onClick:O},c),{},{children:[f&&(0,oe.jsx)("div",{style:a?{visibility:"hidden"}:{},children:f}),(0,oe.jsx)("div",{style:a?{visibility:"hidden"}:{},children:g}),a&&(0,oe.jsx)("div",{style:{position:"absolute",inset:0},children:(0,oe.jsx)(pe.Z,{})})]}))}},8924:function(Se,Q,e){e.d(Q,{p:function(){return f},$:function(){return s}});var D=e(3607),E=e(9787),y=e(5156),h=e(9240),S=e(9937),I=e(100),v=e(334),n=e(1901),M=e(5491),Z=e(4105),H=e(8242),W=e(3379),u=e.n(W),U=e(7795),le=e.n(U),de=e(569),he=e.n(de),pe=e(3565),oe=e.n(pe),P=e(9216),$=e.n(P),b=e(4589),R=e.n(b),_=e(7522),g={};g.styleTagTransform=R(),g.setAttributes=oe(),g.insert=he().bind(null,"head"),g.domAPI=le(),g.insertStyleElement=$(),u()(_.Z,g),_.Z&&_.Z.locals&&_.Z.locals;var O=e(1020),s=(0,D.cn)(null),f=function(t){var w=t.onCancel,l=t.onChange,a=t.onSelect,c=t.colorPickerType,m=(0,v.F)({className:"excalidraw-eye-dropper-backdrop",parentSelector:".excalidraw-eye-dropper-container"}),z=(0,I.I)(),j=(0,H.bd)(),k=(0,H.qD)(),x=(0,Z.eD)(j,z),N=function(V){var ce=(0,E.useRef)(V);return Object.assign(ce.current,V),ce.current}({app:k,onCancel:w,onChange:l,onSelect:a,selectedElements:x}),G=(0,H.J0)().container;(0,E.useEffect)(function(){var V=ie.current;if(V&&k.canvas&&m){var ce=!1,te=k.canvas.getContext("2d"),L=function(we){var xe=we.clientX,_e=we.clientY,Oe=te.getImageData((xe-z.offsetLeft)*window.devicePixelRatio,(_e-z.offsetTop)*window.devicePixelRatio,1,1).data;return(0,h.vq)(Oe[0],Oe[1],Oe[2])},re=function(we){var xe=we.clientX,_e=we.clientY,Oe=we.altKey;V.style.top="".concat(_e+20,"px"),V.style.left="".concat(xe+20,"px");var J=L({clientX:xe,clientY:_e});ce&&N.onChange(c,J,N.selectedElements,{altKey:Oe}),V.style.background=J},me=function(){N.onCancel()},Ce=function(we){ce=!0,we.stopImmediatePropagation()},We=function(we){ce=!1,G?.focus(),we.stopImmediatePropagation(),we.preventDefault(),function(xe,_e){N.onSelect(xe,_e)}(L(we),we)},Te=function(we){we.key===M.tW.ESCAPE&&(we.preventDefault(),we.stopImmediatePropagation(),me())};return m.tabIndex=-1,m.focus(),re({clientX:N.app.lastViewportPosition.x,clientY:N.app.lastViewportPosition.y,altKey:!1}),m.addEventListener(S.Ks.KEYDOWN,Te),m.addEventListener(S.Ks.POINTER_DOWN,Ce),m.addEventListener(S.Ks.POINTER_UP,We),window.addEventListener("pointermove",re,{passive:!0}),window.addEventListener(S.Ks.BLUR,me),function(){ce=!1,m.removeEventListener(S.Ks.KEYDOWN,Te),m.removeEventListener(S.Ks.POINTER_DOWN,Ce),m.removeEventListener(S.Ks.POINTER_UP,We),window.removeEventListener("pointermove",re),window.removeEventListener(S.Ks.BLUR,me)}}},[N,k.canvas,m,c,G,z.offsetLeft,z.offsetTop]);var ie=(0,E.useRef)(null);return(0,n.O)(ie,function(){w()},function(V){return!!V.target.closest(".excalidraw-eye-dropper-trigger, .excalidraw-eye-dropper-backdrop")}),m?(0,y.createPortal)((0,O.jsx)("div",{ref:ie,className:"excalidraw-eye-dropper-preview"}),m):null}},1404:function(Se,Q,e){e.d(Q,{W:function(){return b}});var D=e(7169),E=e(3379),y=e.n(E),h=e(7795),S=e.n(h),I=e(569),v=e.n(I),n=e(3565),M=e.n(n),Z=e(9216),H=e.n(Z),W=e(4589),u=e.n(W),U=e(7369),le={};le.styleTagTransform=u(),le.setAttributes=M(),le.insert=v().bind(null,"head"),le.domAPI=S(),le.insertStyleElement=H(),y()(U.Z,le),U.Z&&U.Z.locals&&U.Z.locals;var de=e(9787),he=e.n(de),pe=e(45),oe=e(1020);function P(R,_){var g=Object.keys(R);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(R);_&&(O=O.filter(function(s){return Object.getOwnPropertyDescriptor(R,s).enumerable})),g.push.apply(g,O)}return g}function $(R){for(var _=1;_<arguments.length;_++){var g=arguments[_]!=null?arguments[_]:{};_%2?P(Object(g),!0).forEach(function(O){(0,D.Z)(R,O,g[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(g)):P(Object(g)).forEach(function(O){Object.defineProperty(R,O,Object.getOwnPropertyDescriptor(g,O))})}return R}var b=he().forwardRef(function(R,_){var g=R.children,O=R.padding,s=R.className,f=R.style;return(0,oe.jsx)("div",{className:(0,pe.Z)("Island",s),style:$({"--padding":O},f),ref:_,children:g})})},3116:function(Se,Q,e){e.d(Q,{rY:function(){return Ft},uh:function(){return St}});var D=e(6655),E=e(1930),y=e(8950),h=e(2577),S=e(2975),I=e.n(S),v=e(9787),n=e.n(v),M=e(9326),Z=e(8227),H=e(4643),W=e(7169),u=e(4419),U=e(9827),le=e(2540),de=e(9937),he=e(8531),pe=e(5742),oe=e(1020),P=function(Ve){var bt=Ve.theme,at=Ve.id,mt=Ve.libraryReturnUrl||window.location.origin+window.location.pathname;return(0,oe.jsx)("a",{className:"library-menu-browse-button",href:"".concat("https://libraries.excalidraw.com","?target=").concat(window.name||"_blank","&referrer=").concat(mt,"&useHash=true&token=").concat(at,"&theme=").concat(bt,"&version=").concat(de.Kr.excalidrawLibrary),target:"_excalidraw_libraries",children:(0,Z.t)("labels.libraries")})},$=e(45),b=function(Ve){var bt=Ve.libraryReturnUrl,at=Ve.theme,mt=Ve.id,ut=Ve.style,Ot=Ve.children,Pt=Ve.className;return(0,oe.jsxs)("div",{className:(0,$.Z)("library-menu-control-buttons",Pt),style:ut,children:[(0,oe.jsx)(P,{id:mt,libraryReturnUrl:bt,theme:at}),Ot]})},R=e(9247),_=e(453),g=e(8242),O=e(8935),s=e(1512),f=e(6548),t=e(3607),w=e(6887),l=e(5284),a=e(1300),c=e(507),m=e(5796),z=e(4932),j=e(3379),k=e.n(j),x=e(7795),N=e.n(x),G=e(569),ie=e.n(G),V=e(3565),ce=e.n(V),te=e(9216),L=e.n(te),re=e(4589),me=e.n(re),Ce=e(7589),We={};We.styleTagTransform=me(),We.setAttributes=ce(),We.insert=ie().bind(null,"head"),We.domAPI=N(),We.insertStyleElement=L(),k()(Ce.Z,We),Ce.Z&&Ce.Z.locals&&Ce.Z.locals;function Te(Ve,bt){var at=Object.keys(Ve);if(Object.getOwnPropertySymbols){var mt=Object.getOwnPropertySymbols(Ve);bt&&(mt=mt.filter(function(ut){return Object.getOwnPropertyDescriptor(Ve,ut).enumerable})),at.push.apply(at,mt)}return at}function we(Ve){for(var bt=1;bt<arguments.length;bt++){var at=arguments[bt]!=null?arguments[bt]:{};bt%2?Te(Object(at),!0).forEach(function(mt){(0,W.Z)(Ve,mt,at[mt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ve,Object.getOwnPropertyDescriptors(at)):Te(Object(at)).forEach(function(mt){Object.defineProperty(Ve,mt,Object.getOwnPropertyDescriptor(at,mt))})}return Ve}function xe(Ve,bt){var at=typeof Symbol<"u"&&Ve[Symbol.iterator]||Ve["@@iterator"];if(!at){if(Array.isArray(Ve)||(at=function(Ct,ur){if(Ct){if(typeof Ct=="string")return _e(Ct,ur);var rr=Object.prototype.toString.call(Ct).slice(8,-1);if(rr==="Object"&&Ct.constructor&&(rr=Ct.constructor.name),rr==="Map"||rr==="Set")return Array.from(Ct);if(rr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rr))return _e(Ct,ur)}}(Ve))||bt&&Ve&&typeof Ve.length=="number"){at&&(Ve=at);var mt=0,ut=function(){};return{s:ut,n:function(){return mt>=Ve.length?{done:!0}:{done:!1,value:Ve[mt++]}},e:function(Ct){throw Ct},f:ut}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ot,Pt=!0,Gt=!1;return{s:function(){at=at.call(Ve)},n:function(){var Ct=at.next();return Pt=Ct.done,Ct},e:function(Ct){Gt=!0,Ot=Ct},f:function(){try{Pt||at.return==null||at.return()}finally{if(Gt)throw Ot}}}}function _e(Ve,bt){(bt==null||bt>Ve.length)&&(bt=Ve.length);for(var at=0,mt=new Array(bt);at<bt;at++)mt[at]=Ve[at];return mt}var Oe="publish-library-data",J=function(){var Ve=(0,y.Z)(I().mark(function bt(at){var mt,ut,Ot,Pt,Gt,Ct,ur,rr,Tr,ot,Rt,_t,At,br,xr,jr,Ar;return I().wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:mt=6,ut=128,Ot=Math.round(ut/16),Pt=Math.max(Math.round(ut/64),2),Gt=(0,U.yo)(at,mt),(Ct=document.createElement("canvas")).width=Gt[0].length*ut+(Gt[0].length+1)*(2*Ot)-2*Ot,Ct.height=Gt.length*ut+(Gt.length+1)*(2*Ot)-2*Ot,(ur=Ct.getContext("2d")).fillStyle=l.white,ur.fillRect(0,0,Ct.width,Ct.height),rr=xe(at.entries()),fr.prev=12,rr.s();case 14:if((Tr=rr.n()).done){fr.next=28;break}return ot=(0,h.Z)(Tr.value,2),Rt=ot[0],_t=ot[1],fr.next=18,(0,c.NL)({elements:_t.elements,files:null,maxWidthOrHeight:ut});case 18:At=fr.sent,br=At.width,xr=At.height,jr=Math.floor(Rt/mt)*(ut+2*Ot),Ar=Rt%mt*(ut+2*Ot),ur.drawImage(At,Ar+(ut-br)/2+Ot,jr+(ut-xr)/2+Ot),ur.lineWidth=Pt,ur.strokeStyle=l.gray[4],ur.strokeRect(Ar+Ot/2,jr+Ot/2,ut+Ot,ut+Ot);case 26:fr.next=14;break;case 28:fr.next=33;break;case 30:fr.prev=30,fr.t0=fr.catch(12),rr.e(fr.t0);case 33:return fr.prev=33,rr.f(),fr.finish(33);case 36:return fr.t1=m.Tu,fr.t2=File,fr.next=40,(0,m._c)(Ct);case 40:return fr.t3=fr.sent,fr.t4=[fr.t3],fr.t5={type:de.LO.png},fr.t6=new fr.t2(fr.t4,"preview",fr.t5),fr.t7={outputType:de.LO.jpg,maxWidthOrHeight:5e3},fr.next=47,(0,fr.t1)(fr.t6,fr.t7);case 47:return fr.abrupt("return",fr.sent);case 48:case"end":return fr.stop()}},bt,null,[[12,30,33,36]])}));return function(bt){return Ve.apply(this,arguments)}}(),ke=function(Ve){var bt=Ve.libItem,at=Ve.appState,mt=Ve.index,ut=Ve.onChange,Ot=Ve.onRemove,Pt=(0,v.useRef)(null),Gt=(0,v.useRef)(null);return(0,v.useEffect)(function(){var Ct=Pt.current;Ct&&(0,y.Z)(I().mark(function ur(){var rr;return I().wrap(function(Tr){for(;;)switch(Tr.prev=Tr.next){case 0:return Tr.next=2,(0,c.$D)({elements:bt.elements,appState:we(we({},at),{},{viewBackgroundColor:l.white,exportBackground:!0}),files:null});case 2:rr=Tr.sent,Ct.innerHTML=rr.outerHTML;case 4:case"end":return Tr.stop()}},ur)}))()},[bt.elements,at]),(0,oe.jsxs)("div",{className:"single-library-item",children:[bt.status==="published"&&(0,oe.jsx)("span",{className:"single-library-item-status",children:(0,Z.t)("labels.statusPublished")}),(0,oe.jsx)("div",{ref:Pt,className:"single-library-item__svg"}),(0,oe.jsx)(s.V,{"aria-label":(0,Z.t)("buttons.remove"),type:"button",icon:O.Tw,className:"single-library-item--remove",onClick:Ot.bind(null,bt.id),title:(0,Z.t)("buttons.remove")}),(0,oe.jsxs)("div",{style:{display:"flex",margin:"0.8rem 0",width:"100%",fontSize:"14px",fontWeight:500,flexDirection:"column"},children:[(0,oe.jsxs)("label",{style:{display:"flex",justifyContent:"space-between",flexDirection:"column"},children:[(0,oe.jsxs)("div",{style:{padding:"0.5em 0"},children:[(0,oe.jsx)("span",{style:{fontWeight:500,color:l.gray[6]},children:(0,Z.t)("publishDialog.itemName")}),(0,oe.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,oe.jsx)("input",{type:"text",ref:Gt,style:{width:"80%",padding:"0.2rem"},defaultValue:bt.name,placeholder:"Item name",onChange:function(Ct){ut(Ct.target.value,mt)}})]}),(0,oe.jsx)("span",{className:"error",children:bt.error})]})]})},q=function(Ve){var bt=Ve.onClose,at=Ve.libraryItems,mt=Ve.appState,ut=Ve.onSuccess,Ot=Ve.onError,Pt=Ve.updateItemsInStorage,Gt=Ve.onRemove,Ct=(0,v.useState)({authorName:"",githubHandle:"",name:"",description:"",twitterHandle:"",website:""}),ur=(0,h.Z)(Ct,2),rr=ur[0],Tr=ur[1],ot=(0,v.useState)(!1),Rt=(0,h.Z)(ot,2),_t=Rt[0],At=Rt[1];(0,v.useEffect)(function(){var ir=function(){try{var Qt=localStorage.getItem(Oe);if(Qt)return JSON.parse(Qt)}catch(_r){console.error(_r)}return null}();ir&&Tr(ir)},[]);var br=(0,v.useState)(at.slice()),xr=(0,h.Z)(br,2),jr=xr[0],Ar=xr[1];(0,v.useEffect)(function(){Ar(at.slice())},[at]);var fr,dt=function(ir){Tr(we(we({},rr),{},(0,W.Z)({},ir.target.name,ir.target.value)))},ft=function(){var ir=(0,y.Z)(I().mark(function Qt(_r){var sr,mr,Zr,or,lr,gr,cr;return I().wrap(function(Hr){for(;;)switch(Hr.prev=Hr.next){case 0:if(_r.preventDefault(),At(!0),sr=[],mr=!1,jr.forEach(function(vr){var Rr="";vr.name||(Rr=(0,Z.t)("publishDialog.errors.required"),mr=!0),sr.push(we(we({},vr),{},{error:Rr}))}),!mr){Hr.next=9;break}return Ar(sr),At(!1),Hr.abrupt("return");case 9:return Hr.next=11,J(jr);case 11:Zr=Hr.sent,or={type:de.r8.excalidrawLibrary,version:de.Kr.excalidrawLibrary,source:de.pb,libraryItems:jr},lr=JSON.stringify(or,null,2),gr=new Blob([lr],{type:"application/json"}),(cr=new FormData).append("excalidrawLib",gr),cr.append("previewImage",Zr),cr.append("previewImageType",Zr.type),cr.append("title",rr.name),cr.append("authorName",rr.authorName),cr.append("githubHandle",rr.githubHandle),cr.append("name",rr.name),cr.append("description",rr.description),cr.append("twitterHandle",rr.twitterHandle),cr.append("website",rr.website),fetch("".concat("https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries","/submit"),{method:"post",body:cr}).then(function(vr){return vr.ok?vr.json().then(function(Rr){var an=Rr.url;localStorage.removeItem(Oe),ut({url:an,authorName:rr.authorName,items:jr})}):vr.json().catch(function(){throw new Error(vr.statusText||"something went wrong")}).then(function(Rr){throw new Error(Rr.message||vr.statusText||"something went wrong")})},function(vr){console.error(vr),Ot(vr),At(!1)}).catch(function(vr){console.error(vr),Ot(vr),At(!1)});case 27:case"end":return Hr.stop()}},Qt)}));return function(Qt){return ir.apply(this,arguments)}}(),vt=(0,v.useCallback)(function(){Pt(jr),function(ir){try{localStorage.setItem(Oe,JSON.stringify(ir))}catch(Qt){console.error(Qt)}}(rr),bt()},[jr,bt,Pt,rr]),Et=!!at.length,tr=at.some(function(ir){return ir.status==="published"});return(0,oe.jsx)(a.V,{onCloseRequest:vt,title:(0,Z.t)("publishDialog.title"),className:"publish-library",children:Et?(0,oe.jsxs)("form",{onSubmit:ft,children:[(0,oe.jsx)("div",{className:"publish-library-note",children:(0,oe.jsx)(R.Z,{i18nKey:"publishDialog.noteDescription",link:function(ir){return(0,oe.jsx)("a",{href:"https://libraries.excalidraw.com",target:"_blank",rel:"noopener noreferrer",children:ir})}})}),(0,oe.jsx)("span",{className:"publish-library-note",children:(0,oe.jsx)(R.Z,{i18nKey:"publishDialog.noteGuidelines",link:function(ir){return(0,oe.jsx)("a",{href:"https://github.com/excalidraw/excalidraw-libraries#guidelines",target:"_blank",rel:"noopener noreferrer",children:ir})}})}),(0,oe.jsx)("div",{className:"publish-library-note",children:(0,Z.t)("publishDialog.noteItems")}),tr&&(0,oe.jsx)("span",{className:"publish-library-note publish-library-warning",children:(0,Z.t)("publishDialog.republishWarning")}),(fr=[],jr.forEach(function(ir,Qt){fr.push((0,oe.jsx)("div",{className:"single-library-item-wrapper",children:(0,oe.jsx)(ke,{libItem:ir,appState:mt,index:Qt,onChange:function(_r,sr){var mr=jr.slice();mr[sr].name=_r,Ar(mr)},onRemove:Gt})},Qt))}),(0,oe.jsx)("div",{className:"selected-library-items",children:fr})),(0,oe.jsxs)("div",{className:"publish-library__fields",children:[(0,oe.jsxs)("label",{children:[(0,oe.jsxs)("div",{children:[(0,oe.jsx)("span",{children:(0,Z.t)("publishDialog.libraryName")}),(0,oe.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,oe.jsx)("input",{type:"text",name:"name",required:!0,value:rr.name,onChange:dt,placeholder:(0,Z.t)("publishDialog.placeholder.libraryName")})]}),(0,oe.jsxs)("label",{style:{alignItems:"flex-start"},children:[(0,oe.jsxs)("div",{children:[(0,oe.jsx)("span",{children:(0,Z.t)("publishDialog.libraryDesc")}),(0,oe.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,oe.jsx)("textarea",{name:"description",rows:4,required:!0,value:rr.description,onChange:dt,placeholder:(0,Z.t)("publishDialog.placeholder.libraryDesc")})]}),(0,oe.jsxs)("label",{children:[(0,oe.jsxs)("div",{children:[(0,oe.jsx)("span",{children:(0,Z.t)("publishDialog.authorName")}),(0,oe.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,oe.jsx)("input",{type:"text",name:"authorName",required:!0,value:rr.authorName,onChange:dt,placeholder:(0,Z.t)("publishDialog.placeholder.authorName")})]}),(0,oe.jsxs)("label",{children:[(0,oe.jsx)("span",{children:(0,Z.t)("publishDialog.githubUsername")}),(0,oe.jsx)("input",{type:"text",name:"githubHandle",value:rr.githubHandle,onChange:dt,placeholder:(0,Z.t)("publishDialog.placeholder.githubHandle")})]}),(0,oe.jsxs)("label",{children:[(0,oe.jsx)("span",{children:(0,Z.t)("publishDialog.twitterUsername")}),(0,oe.jsx)("input",{type:"text",name:"twitterHandle",value:rr.twitterHandle,onChange:dt,placeholder:(0,Z.t)("publishDialog.placeholder.twitterHandle")})]}),(0,oe.jsxs)("label",{children:[(0,oe.jsx)("span",{children:(0,Z.t)("publishDialog.website")}),(0,oe.jsx)("input",{type:"text",name:"website",pattern:"https?://.+",title:(0,Z.t)("publishDialog.errors.website"),value:rr.website,onChange:dt,placeholder:(0,Z.t)("publishDialog.placeholder.website")})]}),(0,oe.jsx)("span",{className:"publish-library-note",children:(0,oe.jsx)(R.Z,{i18nKey:"publishDialog.noteLicense",link:function(ir){return(0,oe.jsx)("a",{href:"https://github.com/excalidraw/excalidraw-libraries/blob/main/LICENSE",target:"_blank",rel:"noopener noreferrer",children:ir})}})})]}),(0,oe.jsxs)("div",{className:"publish-library__buttons",children:[(0,oe.jsx)(z.Z,{label:(0,Z.t)("buttons.cancel"),onClick:vt,"data-testid":"cancel-clear-canvas-button"}),(0,oe.jsx)(z.Z,{type:"submit",label:(0,Z.t)("buttons.submit"),actionType:"primary",isLoading:_t})]})]}):(0,oe.jsx)("p",{style:{padding:"1em",textAlign:"center",fontWeight:500},children:(0,Z.t)("publishDialog.atleastOneLibItem")})})},o=e(7104),i=e(100),p=e(5832),B=function(Ve,bt){return Ve.filter(function(at){return bt.includes(at.id)})},A=function(Ve){var bt,at,mt=Ve.setAppState,ut=Ve.selectedItems,Ot=Ve.library,Pt=Ve.onRemoveFromLibrary,Gt=Ve.resetLibrary,Ct=Ve.onSelectItems,ur=Ve.appState,rr=Ve.className,Tr=(0,t.KO)(M.rF,_.yE),ot=(0,h.Z)(Tr,1)[0],Rt=(0,t.KO)(St,_.yE),_t=(0,h.Z)(Rt,2),At=_t[0],br=_t[1],xr=(0,v.useState)(!1),jr=(0,h.Z)(xr,2),Ar=jr[0],fr=jr[1],dt=!!ut.length,ft=dt?ot.libraryItems.filter(function(cr){return ut.includes(cr.id)}):ot.libraryItems,vt=dt?(0,Z.t)("buttons.remove"):(0,Z.t)("buttons.resetLibrary"),Et=(0,v.useState)(!1),tr=(0,h.Z)(Et,2),ir=tr[0],Qt=tr[1],_r=(0,v.useState)(null),sr=(0,h.Z)(_r,2),mr=sr[0],Zr=sr[1],or=(0,v.useCallback)(function(){return(0,oe.jsxs)(a.V,{onCloseRequest:function(){return Zr(null)},title:(0,Z.t)("publishSuccessDialog.title"),className:"publish-library-success",size:"small",children:[(0,oe.jsx)("p",{children:(0,oe.jsx)(R.Z,{i18nKey:"publishSuccessDialog.content",authorName:mr.authorName,link:function(cr){return(0,oe.jsx)("a",{href:mr?.url,target:"_blank",rel:"noopener noreferrer",children:cr})}})}),(0,oe.jsx)(s.V,{type:"button",title:(0,Z.t)("buttons.close"),"aria-label":(0,Z.t)("buttons.close"),label:(0,Z.t)("buttons.close"),onClick:function(){return Zr(null)},"data-testid":"publish-library-success-close",className:"publish-library-success-close"})]})},[Zr,mr]),lr=function(){var cr=(0,y.Z)(I().mark(function Hr(){return I().wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return vr.prev=0,vr.next=3,Ot.updateLibrary({libraryItems:(0,f.I$)({description:"Excalidraw library files"}),merge:!0,openLibraryMenu:!0});case 3:vr.next=11;break;case 5:if(vr.prev=5,vr.t0=vr.catch(0),(vr.t0===null||vr.t0===void 0?void 0:vr.t0.name)!=="AbortError"){vr.next=10;break}return console.warn(vr.t0),vr.abrupt("return");case 10:mt({errorMessage:(0,Z.t)("errors.importLibraryError")});case 11:case"end":return vr.stop()}},Hr,null,[[0,5]])}));return function(){return cr.apply(this,arguments)}}(),gr=function(){var cr=(0,y.Z)(I().mark(function Hr(){var vr;return I().wrap(function(Rr){for(;;)switch(Rr.prev=Rr.next){case 0:if(!dt){Rr.next=4;break}Rr.t0=ft,Rr.next=7;break;case 4:return Rr.next=6,Ot.getLatestLibrary();case 6:Rr.t0=Rr.sent;case 7:vr=Rr.t0,(0,u.t1)(vr).catch(U.FG).catch(function(an){mt({errorMessage:an.message})});case 9:case"end":return Rr.stop()}},Hr)}));return function(){return cr.apply(this,arguments)}}();return(0,oe.jsxs)("div",{className:(0,$.Z)("library-menu-dropdown-container",rr),children:[(0,oe.jsxs)(o.Z,{open:At,children:[(0,oe.jsx)(o.Z.Trigger,{onToggle:function(){return br(!At)},children:O.YA}),(0,oe.jsxs)(o.Z.Content,{onClickOutside:function(){return br(!1)},onSelect:function(){return br(!1)},className:"library-menu",children:[!dt&&(0,oe.jsx)(o.Z.Item,{onSelect:lr,icon:O.Tl,"data-testid":"lib-dropdown--load",children:(0,Z.t)("buttons.load")}),!!ft.length&&(0,oe.jsx)(o.Z.Item,{onSelect:gr,icon:O.Hy,"data-testid":"lib-dropdown--export",children:(0,Z.t)("buttons.export")}),!!ft.length&&(0,oe.jsx)(o.Z.Item,{onSelect:function(){return fr(!0)},icon:O.XH,children:vt}),dt&&(0,oe.jsx)(o.Z.Item,{icon:O.Nw,onSelect:function(){return Qt(!0)},"data-testid":"lib-dropdown--remove",children:(0,Z.t)("buttons.publishLibrary")})]})]}),ut.length>0&&(0,oe.jsx)("div",{className:"library-actions-counter",children:ut.length}),Ar&&(bt=ut.length?(0,Z.t)("alerts.removeItemsFromsLibrary",{count:ut.length}):(0,Z.t)("alerts.resetLibrary"),at=ut.length?(0,Z.t)("confirmDialog.removeItemsFromLib"):(0,Z.t)("confirmDialog.resetLibrary"),(0,oe.jsx)(w.Z,{onConfirm:function(){ut.length?Pt():Gt(),fr(!1)},onCancel:function(){fr(!1)},title:at,children:(0,oe.jsx)("p",{children:bt})})),ir&&(0,oe.jsx)(q,{onClose:function(){return Qt(!1)},libraryItems:B(ot.libraryItems,ut),appState:ur,onSuccess:function(cr){return function(Hr,vr){Qt(!1),Zr({url:Hr.url,authorName:Hr.authorName});var Rr=vr.slice();Rr.forEach(function(an){ut.includes(an.id)&&(an.status="published")}),Ot.setLibrary(Rr)}(cr,ot.libraryItems)},onError:function(cr){return window.alert(cr)},updateItemsInStorage:function(){return Ot.setLibrary(ot.libraryItems)},onRemove:function(cr){return Ct(ut.filter(function(Hr){return Hr!==cr}))}}),mr&&or()]})},X=function(Ve){var bt=Ve.selectedItems,at=Ve.onSelectItems,mt=Ve.className,ut=(0,g.qD)().library,Ot=(0,p.yT)(),Pt=Ot.clearLibraryCache,Gt=Ot.deleteItemsFromLibraryCache,Ct=(0,i.I)(),ur=(0,g.n9)(),rr=(0,t.KO)(M.rF,_.yE),Tr=(0,h.Z)(rr,1)[0],ot=function(){var Rt=(0,y.Z)(I().mark(function _t(At){var br;return I().wrap(function(xr){for(;;)switch(xr.prev=xr.next){case 0:br=At.filter(function(jr){return!bt.includes(jr.id)}),ut.setLibrary(br).catch(function(){ur({errorMessage:(0,Z.t)("alerts.errorRemovingFromLibrary")})}),Gt(bt),at([]);case 4:case"end":return xr.stop()}},_t)}));return function(_t){return Rt.apply(this,arguments)}}();return(0,oe.jsx)(A,{appState:Ct,setAppState:ur,selectedItems:bt,onSelectItems:at,library:ut,onRemoveFromLibrary:function(){return ot(Tr.libraryItems)},resetLibrary:function(){ut.resetLibrary(),Pt()},className:mt})},Y=e(5644),ee={};ee.styleTagTransform=me(),ee.setAttributes=ce(),ee.insert=ie().bind(null,"head"),ee.domAPI=N(),ee.insertStyleElement=L(),k()(Y.Z,ee),Y.Z&&Y.Z.locals&&Y.Z.locals;var ge=e(6238),be=(0,v.memo)(function(Ve){var bt=Ve.id,at=Ve.elements,mt=Ve.isPending,ut=Ve.onClick,Ot=Ve.selected,Pt=Ve.onToggle,Gt=Ve.onDrag,Ct=Ve.svgCache,ur=(0,v.useRef)(null),rr=(0,p.mF)(bt,at,Ct);(0,v.useEffect)(function(){var xr=ur.current;if(xr)return rr&&(xr.innerHTML=rr.outerHTML),function(){xr.innerHTML=""}},[rr]);var Tr=(0,v.useState)(!1),ot=(0,h.Z)(Tr,2),Rt=ot[0],_t=ot[1],At=(0,g.Fy)().editor.isMobile,br=mt&&(0,oe.jsx)("div",{className:"library-unit__adder",children:O.pO});return(0,oe.jsxs)("div",{className:(0,$.Z)("library-unit",{"library-unit__active":at,"library-unit--hover":at&&Rt,"library-unit--selected":Ot,"library-unit--skeleton":!rr}),onMouseEnter:function(){return _t(!0)},onMouseLeave:function(){return _t(!1)},children:[(0,oe.jsx)("div",{className:(0,$.Z)("library-unit__dragger",{"library-unit__pulse":!!mt}),ref:ur,draggable:!!at,onClick:at||mt?function(xr){bt&&xr.shiftKey?Pt(bt,xr):ut(bt)}:void 0,onDragStart:function(xr){bt?(_t(!1),Gt(bt,xr)):xr.preventDefault()}}),br,bt&&at&&(Rt||At||Ot)&&(0,oe.jsx)(ge.o,{checked:Ot,onChange:function(xr,jr){return Pt(bt,jr)},className:"library-unit__checkbox"})]})}),Re=function(){return(0,oe.jsx)("div",{className:"library-unit library-unit--skeleton"})},Ze=n().useTransition||function(){return[!1,(0,v.useCallback)(function(Ve){return Ve()},[])]},Be=function(Ve){var bt=Ve.children;return(0,oe.jsx)("div",{className:"library-menu-items-container__grid",children:bt})},Ie=(0,v.memo)(function(Ve){var bt=Ve.items,at=Ve.onItemSelectToggle,mt=Ve.onItemDrag,ut=Ve.isItemSelected,Ot=Ve.onClick,Pt=Ve.svgCache,Gt=Ve.itemsRenderedPerBatch,Ct=Ze(),ur=(0,h.Z)(Ct,2)[1],rr=(0,v.useState)(0),Tr=(0,h.Z)(rr,2),ot=Tr[0],Rt=Tr[1];return(0,v.useEffect)(function(){ot<bt.length&&ur(function(){Rt(ot+Gt)})},[ot,bt.length,ur,Gt]),(0,oe.jsx)(oe.Fragment,{children:bt.map(function(_t,At){var br;return At<ot?(0,oe.jsx)(be,{elements:_t?.elements,isPending:!(_t!=null&&_t.id||_t==null||!_t.elements),onClick:Ot,svgCache:Pt,id:_t?.id,selected:ut(_t.id),onToggle:at,onDrag:mt},(br=_t?.id)!==null&&br!==void 0?br:At):(0,oe.jsx)(Re,{},At)})})}),Ke=e(200),Ye=e.n(Ke),tt=(0,t.cn)(0),ue=e(6440),ve={};ve.styleTagTransform=me(),ve.setAttributes=ce(),ve.insert=ie().bind(null,"head"),ve.domAPI=N(),ve.insertStyleElement=L(),k()(ue.Z,ve),ue.Z&&ue.Z.locals&&ue.Z.locals;function De(Ve,bt){var at=Object.keys(Ve);if(Object.getOwnPropertySymbols){var mt=Object.getOwnPropertySymbols(Ve);bt&&(mt=mt.filter(function(ut){return Object.getOwnPropertyDescriptor(Ve,ut).enumerable})),at.push.apply(at,mt)}return at}function He(Ve){for(var bt=1;bt<arguments.length;bt++){var at=arguments[bt]!=null?arguments[bt]:{};bt%2?De(Object(at),!0).forEach(function(mt){(0,W.Z)(Ve,mt,at[mt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ve,Object.getOwnPropertyDescriptors(at)):De(Object(at)).forEach(function(mt){Object.defineProperty(Ve,mt,Object.getOwnPropertyDescriptor(at,mt))})}return Ve}function Je(Ve){var bt=Ve.isLoading,at=Ve.libraryItems,mt=Ve.onAddToLibrary,ut=Ve.onInsertLibraryItems,Ot=Ve.pendingElements,Pt=Ve.theme,Gt=Ve.id,Ct=Ve.libraryReturnUrl,ur=Ve.onSelectItems,rr=Ve.selectedItems,Tr=(0,v.useRef)(null),ot=function(sr){var mr=(0,t.KO)(tt),Zr=(0,h.Z)(mr,2),or=Zr[0],lr=Zr[1];return(0,v.useEffect)(function(){var gr=sr.current;if(gr){var cr=Ye()(function(){var Hr=gr.scrollTop;lr(Hr)},200);return gr.addEventListener("scroll",cr),function(){cr.cancel(),gr.removeEventListener("scroll",cr)}}},[sr,lr]),or}(Tr);(0,v.useEffect)(function(){var sr;ot>0&&((sr=Tr.current)===null||sr===void 0||sr.scrollTo(0,ot))},[]);var Rt=(0,p.yT)().svgCache,_t=(0,v.useMemo)(function(){return at.filter(function(sr){return sr.status!=="published"})},[at]),At=(0,v.useMemo)(function(){return at.filter(function(sr){return sr.status==="published"})},[at]),br=!at.length&&!Ot.length,xr=!Ot.length&&!_t.length&&!At.length,jr=(0,v.useState)(null),Ar=(0,h.Z)(jr,2),fr=Ar[0],dt=Ar[1],ft=(0,v.useCallback)(function(sr,mr){var Zr=!rr.includes(sr),or=[].concat((0,E.Z)(_t),(0,E.Z)(At));if(Zr){if(mr.shiftKey&&fr){var lr=or.findIndex(function(vr){return vr.id===fr}),gr=or.findIndex(function(vr){return vr.id===sr});if(lr===-1||gr===-1)return void ur([].concat((0,E.Z)(rr),[sr]));var cr=(0,U.xn)(rr),Hr=or.reduce(function(vr,Rr,an){return(an>=lr&&an<=gr||cr.has(Rr.id))&&vr.push(Rr.id),vr},[]);ur(Hr)}else ur([].concat((0,E.Z)(rr),[sr]));dt(sr)}else dt(null),ur(rr.filter(function(vr){return vr!==sr}))},[fr,ur,At,rr,_t]),vt=(0,v.useCallback)(function(sr){return(rr.includes(sr)?at.filter(function(mr){return rr.includes(mr.id)}):at.filter(function(mr){return mr.id===sr})).map(function(mr){return He(He({},mr),{},{elements:(0,pe._N)(mr.elements,{randomizeSeed:!0})})})},[at,rr]),Et=(0,v.useCallback)(function(sr,mr){mr.dataTransfer.setData(de.LO.excalidrawlib,(0,u.NI)(vt(sr)))},[vt]),tr=(0,v.useCallback)(function(sr){return!!sr&&rr.includes(sr)},[rr]),ir=(0,v.useCallback)(function(){mt(Ot)},[Ot,mt]),Qt=(0,v.useCallback)(function(sr){sr&&ut(vt(sr))},[vt,ut]),_r=Rt.size>=at.length?64:17;return(0,oe.jsxs)("div",{className:"library-menu-items-container",style:Ot.length||_t.length||At.length?{justifyContent:"flex-start"}:{borderBottom:0},children:[!xr&&(0,oe.jsx)(X,{selectedItems:rr,onSelectItems:ur,className:"library-menu-dropdown-container--in-heading"}),(0,oe.jsxs)(le.Z.Col,{className:"library-menu-items-container__items",align:"start",gap:1,style:{flex:At.length>0?1:"0 1 auto",marginBottom:0},ref:Tr,children:[(0,oe.jsxs)(oe.Fragment,{children:[!xr&&(0,oe.jsx)("div",{className:"library-menu-items-container__header",children:(0,Z.t)("labels.personalLib")}),bt&&(0,oe.jsx)("div",{style:{position:"absolute",top:"var(--container-padding-y)",right:"var(--container-padding-x)",transform:"translateY(50%)"},children:(0,oe.jsx)(he.Z,{})}),Ot.length||_t.length?(0,oe.jsxs)(Be,{children:[Ot.length>0&&(0,oe.jsx)(Ie,{itemsRenderedPerBatch:_r,items:[{id:null,elements:Ot}],onItemSelectToggle:ft,onItemDrag:Et,onClick:ir,isItemSelected:tr,svgCache:Rt}),(0,oe.jsx)(Ie,{itemsRenderedPerBatch:_r,items:_t,onItemSelectToggle:ft,onItemDrag:Et,onClick:Qt,isItemSelected:tr,svgCache:Rt})]}):(0,oe.jsxs)("div",{className:"library-menu-items__no-items",children:[(0,oe.jsx)("div",{className:"library-menu-items__no-items__label",children:(0,Z.t)("library.noItems")}),(0,oe.jsx)("div",{className:"library-menu-items__no-items__hint",children:At.length>0?(0,Z.t)("library.hint_emptyPrivateLibrary"):(0,Z.t)("library.hint_emptyLibrary")})]})]}),(0,oe.jsxs)(oe.Fragment,{children:[(At.length>0||Ot.length>0||_t.length>0)&&(0,oe.jsx)("div",{className:"library-menu-items-container__header library-menu-items-container__header--excal",children:(0,Z.t)("labels.excalidrawLib")}),At.length>0?(0,oe.jsx)(Be,{children:(0,oe.jsx)(Ie,{itemsRenderedPerBatch:_r,items:At,onItemSelectToggle:ft,onItemDrag:Et,onClick:Qt,isItemSelected:tr,svgCache:Rt})}):_t.length>0?(0,oe.jsx)("div",{style:{margin:"1rem 0",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",fontSize:".9rem"},children:(0,Z.t)("library.noItems")}):null]}),br&&(0,oe.jsx)(b,{style:{padding:"16px 0",width:"100%"},id:Gt,libraryReturnUrl:Ct,theme:Pt,children:(0,oe.jsx)(X,{selectedItems:rr,onSelectItems:ur})})]})]})}var qe=e(3646),st=e(4105),ht=e(8923),et={};et.styleTagTransform=me(),et.setAttributes=ce(),et.insert=ie().bind(null,"head"),et.domAPI=N(),et.insertStyleElement=L(),k()(ht.Z,et),ht.Z&&ht.Z.locals&&ht.Z.locals;function wt(Ve,bt){var at=typeof Symbol<"u"&&Ve[Symbol.iterator]||Ve["@@iterator"];if(!at){if(Array.isArray(Ve)||(at=function(Ct,ur){if(Ct){if(typeof Ct=="string")return Lt(Ct,ur);var rr=Object.prototype.toString.call(Ct).slice(8,-1);if(rr==="Object"&&Ct.constructor&&(rr=Ct.constructor.name),rr==="Map"||rr==="Set")return Array.from(Ct);if(rr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rr))return Lt(Ct,ur)}}(Ve))||bt&&Ve&&typeof Ve.length=="number"){at&&(Ve=at);var mt=0,ut=function(){};return{s:ut,n:function(){return mt>=Ve.length?{done:!0}:{done:!1,value:Ve[mt++]}},e:function(Ct){throw Ct},f:ut}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ot,Pt=!0,Gt=!1;return{s:function(){at=at.call(Ve)},n:function(){var Ct=at.next();return Pt=Ct.done,Ct},e:function(Ct){Gt=!0,Ot=Ct},f:function(){try{Pt||at.return==null||at.return()}finally{if(Gt)throw Ot}}}}function Lt(Ve,bt){(bt==null||bt>Ve.length)&&(bt=Ve.length);for(var at=0,mt=new Array(bt);at<bt;at++)mt[at]=Ve[at];return mt}var St=(0,t.cn)(!1),yt=function(Ve){var bt=Ve.children;return(0,oe.jsx)("div",{className:"layer-ui__library",children:bt})},Wt=function(Ve){var bt=Ve.onInsertLibraryItems,at=Ve.pendingElements,mt=Ve.onAddToLibrary,ut=Ve.setAppState,Ot=Ve.libraryReturnUrl,Pt=Ve.library,Gt=Ve.id,Ct=Ve.theme,ur=Ve.selectedItems,rr=Ve.onSelectItems,Tr=(0,t.KO)(M.rF,_.yE),ot=(0,h.Z)(Tr,1)[0],Rt=(0,v.useCallback)(function(br){var xr=function(){var jr=(0,y.Z)(I().mark(function Ar(fr,dt){var ft,vt,Et,tr,ir;return I().wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:(0,qe.L)("element","addToLibrary","ui"),ft=wt(de.PR),Qt.prev=2,Et=function(){var _r=vt.value;if(fr.some(function(sr){return sr.type===_r}))return{v:ut({errorMessage:(0,Z.t)("errors.libraryElementTypeError.".concat(_r))})}},ft.s();case 5:if((vt=ft.n()).done){Qt.next=11;break}if(tr=Et(),(0,D.Z)(tr)!=="object"){Qt.next=9;break}return Qt.abrupt("return",tr.v);case 9:Qt.next=5;break;case 11:Qt.next=16;break;case 13:Qt.prev=13,Qt.t0=Qt.catch(2),ft.e(Qt.t0);case 16:return Qt.prev=16,ft.f(),Qt.finish(16);case 19:ir=[{status:"unpublished",elements:fr,id:(0,H.kb)(),created:Date.now()}].concat((0,E.Z)(dt)),mt(),Pt.setLibrary(ir).catch(function(){ut({errorMessage:(0,Z.t)("alerts.errorAddingToLibrary")})});case 22:case"end":return Qt.stop()}},Ar,null,[[2,13,16,19]])}));return function(Ar,fr){return jr.apply(this,arguments)}}();xr(br,ot.libraryItems)},[mt,Pt,ut,ot.libraryItems]),_t=(0,v.useMemo)(function(){return ot.libraryItems},[ot]);if(ot.status==="loading"&&!ot.isInitialized)return(0,oe.jsx)(yt,{children:(0,oe.jsx)("div",{className:"layer-ui__library-message",children:(0,oe.jsxs)("div",{children:[(0,oe.jsx)(he.Z,{size:"2em"}),(0,oe.jsx)("span",{children:(0,Z.t)("labels.libraryLoadingMessage")})]})})});var At=ot.libraryItems.length>0||at.length>0;return(0,oe.jsxs)(yt,{children:[(0,oe.jsx)(Je,{isLoading:ot.status==="loading",libraryItems:_t,onAddToLibrary:Rt,onInsertLibraryItems:bt,pendingElements:at,id:Gt,libraryReturnUrl:Ot,theme:Ct,onSelectItems:rr,selectedItems:ur}),At&&(0,oe.jsx)(b,{className:"library-menu-control-buttons--at-bottom",style:{padding:"16px 12px 0 12px"},id:Gt,libraryReturnUrl:Ot,theme:Ct})]})},Ft=function(){var Ve=(0,g.qD)(),bt=Ve.library,at=Ve.id,mt=Ve.onInsertElements,ut=(0,g.hY)(),Ot=(0,i.I)(),Pt=(0,g.n9)(),Gt=(0,g.bd)(),Ct=(0,v.useState)([]),ur=(0,h.Z)(Ct,2),rr=ur[0],Tr=ur[1],ot=(0,v.useMemo)(function(){return bt},[bt]),Rt=function(br,xr){var jr=function(){return(0,st.eD)(xr,br,{includeBoundTextElement:!0,includeElementsInFrames:!0})},Ar=(0,v.useRef)(jr()),fr=(0,v.useRef)(br),dt=(0,v.useRef)(xr);return(0,U.w8)(br.selectedElementIds,fr.current.selectedElementIds)&&(0,U.w8)(xr,dt.current)||(Ar.current=jr(),fr.current=br,dt.current=xr),Ar.current}(Ot,Gt),_t=(0,v.useCallback)(function(br){mt((0,M.WV)(br))},[mt]),At=(0,v.useCallback)(function(){Pt({selectedElementIds:{},selectedGroupIds:{},activeEmbeddable:null})},[Pt]);return(0,oe.jsx)(Wt,{pendingElements:Rt,onInsertLibraryItems:_t,onAddToLibrary:At,setAppState:Pt,libraryReturnUrl:ut.libraryReturnUrl,library:ot,id:at,theme:Ot.theme,selectedItems:rr,onSelectItems:Tr})}},7165:function(Se,Q,e){e.d(Q,{z:function(){return n}});var D=e(2577),E=e(8227),y=e(9787),h=e(8531),S=e(45),I=e(9937),v=e(1020),n=function(M){var Z=M.delay,H=M.theme,W=(0,y.useState)(!!Z),u=(0,D.Z)(W,2),U=u[0],le=u[1];return(0,y.useEffect)(function(){if(Z){var de=setTimeout(function(){le(!1)},Z);return function(){return clearTimeout(de)}}},[Z]),U?null:(0,v.jsxs)("div",{className:(0,S.Z)("LoadingMessage",{"LoadingMessage--dark":H===I.C6.DARK}),children:[(0,v.jsx)("div",{children:(0,v.jsx)(h.Z,{})}),(0,v.jsx)("div",{className:"LoadingMessage-text",children:(0,E.t)("labels.loadingScene")})]})}},7827:function(Se,Q,e){e.d(Q,{K:function(){return I},_:function(){return v}});var D=e(8950),E=e(2975),y=e.n(E),h=e(3607),S=e(453),I=(0,h.cn)({active:!1});function v(M){return n.apply(this,arguments)}function n(){return(n=(0,D.Z)(y().mark(function M(Z){var H,W,u,U;return y().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return H=Z.title,W=Z.description,u=Z.actionLabel,U=Z.color,le.abrupt("return",new Promise(function(de){S.e_.set(I,{active:!0,onConfirm:function(){return de(!0)},onClose:function(){return de(!1)},onReject:function(){return de(!1)},title:H,description:W,actionLabel:u,color:U})}));case 2:case"end":return le.stop()}},M)}))).apply(this,arguments)}},3204:function(Se,Q,e){e.d(Q,{J:function(){return P}});var D=e(9787),E=e(3379),y=e.n(E),h=e(7795),S=e.n(h),I=e(569),v=e.n(I),n=e(3565),M=e.n(n),Z=e(9216),H=e.n(Z),W=e(4589),u=e.n(W),U=e(9935),le={};le.styleTagTransform=u(),le.setAttributes=M(),le.insert=v().bind(null,"head"),le.domAPI=S(),le.insertStyleElement=H(),y()(U.Z,le),U.Z&&U.Z.locals&&U.Z.locals;var de=e(5156),he=e(9827),pe=e(5491),oe=e(1020),P=function($){var b=$.children,R=$.left,_=$.top,g=$.onCloseRequest,O=$.fitInViewport,s=O!==void 0&&O,f=$.offsetLeft,t=f===void 0?0:f,w=$.offsetTop,l=w===void 0?0:w,a=$.viewportWidth,c=a===void 0?window.innerWidth:a,m=$.viewportHeight,z=m===void 0?window.innerHeight:m,j=(0,D.useRef)(null);(0,D.useEffect)(function(){var x=j.current;if(x){x.contains(document.activeElement)||x.focus();var N=function(G){if(G.key===pe.tW.TAB){var ie=(0,he.xp)(x),V=document.activeElement,ce=ie.findIndex(function(me){return me===V});if(V===x){var te;G.shiftKey?(te=ie[ie.length-1])===null||te===void 0||te.focus():ie[0].focus(),G.preventDefault(),G.stopImmediatePropagation()}else if(ce===0&&G.shiftKey){var L;(L=ie[ie.length-1])===null||L===void 0||L.focus(),G.preventDefault(),G.stopImmediatePropagation()}else if(ce===ie.length-1&&!G.shiftKey){var re;(re=ie[0])===null||re===void 0||re.focus(),G.preventDefault(),G.stopImmediatePropagation()}}};return x.addEventListener("keydown",N),function(){return x.removeEventListener("keydown",N)}}},[]);var k=(0,D.useRef)(null);return(0,D.useLayoutEffect)(function(){if(s&&j.current&&_!=null&&R!=null){var x,N,G=j.current,ie=G.getBoundingClientRect(),V=ie.width,ce=ie.height;if(((x=k.current)===null||x===void 0?void 0:x.top)===_&&((N=k.current)===null||N===void 0?void 0:N.left)===R)return;k.current={top:_,left:R},V>=c?(G.style.width="".concat(c,"px"),G.style.left="0px",G.style.overflowX="scroll"):G.style.left="".concat(R+V-t>c?c-V-10:R,"px"),ce>=z?(G.style.height="".concat(z-20,"px"),G.style.top="10px",G.style.overflowY="scroll"):G.style.top="".concat(_+ce-l>z?z-ce:_,"px")}},[_,R,s,c,z,t,l]),(0,D.useEffect)(function(){if(g){var x=function(N){var G;(G=j.current)!==null&&G!==void 0&&G.contains(N.target)||(0,de.unstable_batchedUpdates)(function(){return g(N)})};return document.addEventListener("pointerdown",x,!1),function(){return document.removeEventListener("pointerdown",x,!1)}}},[g]),(0,oe.jsx)("div",{className:"popover",ref:j,tabIndex:-1,children:b})}},5902:function(Se,Q,e){e.d(Q,{YE:function(){return fr},t6:function(){return jr}});var D=e(2577),E=e(7169),y=e(2726),h=e(9787),S=e.n(h),I=e(1404),v=e(3607),n=e(453),M=S().createContext({}),Z=e(45),H=e(8227),W=e(8242),u=e(8935),U=e(8925),le=e(8806),de=e(1020),he=function(dt){var ft=dt.children,vt=dt.className,Et=(0,W.Fy)(),tr=(0,h.useContext)(M),ir=!(!Et.editor.canFitSidebar||!tr.shouldRenderDockButton);return(0,de.jsxs)("div",{className:(0,Z.Z)("sidebar__header",vt),"data-testid":"sidebar-header",children:[ft,(0,de.jsxs)("div",{className:"sidebar__header__buttons",children:[ir&&(0,de.jsx)(U.u,{label:(0,H.t)("labels.sidebarLock"),children:(0,de.jsx)(le.z,{onSelect:function(){var Qt;return(Qt=tr.onDock)===null||Qt===void 0?void 0:Qt.call(tr,!tr.docked)},selected:!!tr.docked,className:"sidebar__dock","data-testid":"sidebar-dock","aria-label":(0,H.t)("labels.sidebarLock"),children:u.qQ})}),(0,de.jsx)(le.z,{"data-testid":"sidebar-close",className:"sidebar__close",onSelect:tr.onCloseRequest,"aria-label":(0,H.t)("buttons.close"),children:u.Tw})]})]})};he.displayName="SidebarHeader";var pe=e(9827),oe=e(5491),P=e(9937),$=e(100),b=e(3379),R=e.n(b),_=e(7795),g=e.n(_),O=e(569),s=e.n(O),f=e(3565),t=e.n(f),w=e(9216),l=e.n(w),a=e(4589),c=e.n(a),m=e(7051),z={};z.styleTagTransform=c(),z.setAttributes=t(),z.insert=s().bind(null,"head"),z.domAPI=g(),z.insertStyleElement=l(),R()(m.Z,z),m.Z&&m.Z.locals&&m.Z.locals;var j=function(dt){var ft,vt=dt.name,Et=dt.tab,tr=dt.icon,ir=dt.title,Qt=dt.children,_r=dt.onToggle,sr=dt.className,mr=dt.style,Zr=(0,W.n9)(),or=(0,$.I)();return(0,de.jsxs)("label",{title:ir,children:[(0,de.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",onChange:function(lr){var gr;(gr=document.querySelector(".layer-ui__wrapper"))===null||gr===void 0||gr.classList.remove("animate");var cr=lr.target.checked;Zr({openSidebar:cr?{name:vt,tab:Et}:null}),_r?.(cr)},checked:((ft=or.openSidebar)===null||ft===void 0?void 0:ft.name)===vt,"aria-label":ir,"aria-keyshortcuts":"0"}),(0,de.jsxs)("div",{className:(0,Z.Z)("sidebar-trigger",sr),style:mr,children:[tr&&(0,de.jsx)("div",{children:tr}),Qt&&(0,de.jsx)("div",{className:"sidebar-trigger__label",children:Qt})]})]})};j.displayName="SidebarTrigger";var k=e(11),x=e(7217),N=e(1267),G=e(9335),ie=e(4801),V=e(5622),ce=e(3119),te=e(3060),L=e(2673);const re=(0,h.createContext)(void 0);function me(dt){const ft=(0,h.useContext)(re);return dt||ft||"ltr"}const Ce="rovingFocusGroup.onEntryFocus",We={bubbles:!1,cancelable:!0},Te="RovingFocusGroup",[we,xe,_e]=function(dt){const ft=dt+"CollectionProvider",[vt,Et]=(0,N.b)(ft),[tr,ir]=vt(ft,{collectionRef:{current:null},itemMap:new Map}),Qt=lr=>{const{scope:gr,children:cr}=lr,Hr=S().useRef(null),vr=S().useRef(new Map).current;return S().createElement(tr,{scope:gr,itemMap:vr,collectionRef:Hr},cr)},_r=dt+"CollectionSlot",sr=S().forwardRef((lr,gr)=>{const{scope:cr,children:Hr}=lr,vr=ir(_r,cr),Rr=(0,G.e)(gr,vr.collectionRef);return S().createElement(ie.g7,{ref:Rr},Hr)}),mr=dt+"CollectionItemSlot",Zr="data-radix-collection-item",or=S().forwardRef((lr,gr)=>{const{scope:cr,children:Hr,...vr}=lr,Rr=S().useRef(null),an=(0,G.e)(gr,Rr),Sn=ir(mr,cr);return S().useEffect(()=>(Sn.itemMap.set(Rr,{ref:Rr,...vr}),()=>{Sn.itemMap.delete(Rr)})),S().createElement(ie.g7,{[Zr]:"",ref:an},Hr)});return[{Provider:Qt,Slot:sr,ItemSlot:or},function(lr){const gr=ir(dt+"CollectionConsumer",lr);return S().useCallback(()=>{const cr=gr.collectionRef.current;if(!cr)return[];const Hr=Array.from(cr.querySelectorAll(`[${Zr}]`));return Array.from(gr.itemMap.values()).sort((vr,Rr)=>Hr.indexOf(vr.ref.current)-Hr.indexOf(Rr.ref.current))},[gr.collectionRef,gr.itemMap])},Et]}(Te),[Oe,J]=(0,N.b)(Te,[_e]),[ke,q]=Oe(Te),o=(0,h.forwardRef)((dt,ft)=>(0,h.createElement)(we.Provider,{scope:dt.__scopeRovingFocusGroup},(0,h.createElement)(we.Slot,{scope:dt.__scopeRovingFocusGroup},(0,h.createElement)(i,(0,k.Z)({},dt,{ref:ft}))))),i=(0,h.forwardRef)((dt,ft)=>{const{__scopeRovingFocusGroup:vt,orientation:Et,loop:tr=!1,dir:ir,currentTabStopId:Qt,defaultCurrentTabStopId:_r,onCurrentTabStopIdChange:sr,onEntryFocus:mr,...Zr}=dt,or=(0,h.useRef)(null),lr=(0,G.e)(ft,or),gr=me(ir),[cr=null,Hr]=(0,L.T)({prop:Qt,defaultProp:_r,onChange:sr}),[vr,Rr]=(0,h.useState)(!1),an=(0,te.W)(mr),Sn=xe(vt),Mn=(0,h.useRef)(!1),[Zn,Rn]=(0,h.useState)(0);return(0,h.useEffect)(()=>{const bn=or.current;if(bn)return bn.addEventListener(Ce,an),()=>bn.removeEventListener(Ce,an)},[an]),(0,h.createElement)(ke,{scope:vt,orientation:Et,dir:gr,loop:tr,currentTabStopId:cr,onItemFocus:(0,h.useCallback)(bn=>Hr(bn),[Hr]),onItemShiftTab:(0,h.useCallback)(()=>Rr(!0),[]),onFocusableItemAdd:(0,h.useCallback)(()=>Rn(bn=>bn+1),[]),onFocusableItemRemove:(0,h.useCallback)(()=>Rn(bn=>bn-1),[])},(0,h.createElement)(ce.WV.div,(0,k.Z)({tabIndex:vr||Zn===0?-1:0,"data-orientation":Et},Zr,{ref:lr,style:{outline:"none",...dt.style},onMouseDown:(0,x.M)(dt.onMouseDown,()=>{Mn.current=!0}),onFocus:(0,x.M)(dt.onFocus,bn=>{const yn=!Mn.current;if(bn.target===bn.currentTarget&&yn&&!vr){const Un=new CustomEvent(Ce,We);if(bn.currentTarget.dispatchEvent(Un),!Un.defaultPrevented){const ne=Sn().filter(Ee=>Ee.focusable);X([ne.find(Ee=>Ee.active),ne.find(Ee=>Ee.id===cr),...ne].filter(Boolean).map(Ee=>Ee.ref.current))}}Mn.current=!1}),onBlur:(0,x.M)(dt.onBlur,()=>Rr(!1))})))}),p="RovingFocusGroupItem",B=(0,h.forwardRef)((dt,ft)=>{const{__scopeRovingFocusGroup:vt,focusable:Et=!0,active:tr=!1,tabStopId:ir,...Qt}=dt,_r=(0,V.M)(),sr=ir||_r,mr=q(p,vt),Zr=mr.currentTabStopId===sr,or=xe(vt),{onFocusableItemAdd:lr,onFocusableItemRemove:gr}=mr;return(0,h.useEffect)(()=>{if(Et)return lr(),()=>gr()},[Et,lr,gr]),(0,h.createElement)(we.ItemSlot,{scope:vt,id:sr,focusable:Et,active:tr},(0,h.createElement)(ce.WV.span,(0,k.Z)({tabIndex:Zr?0:-1,"data-orientation":mr.orientation},Qt,{ref:ft,onMouseDown:(0,x.M)(dt.onMouseDown,cr=>{Et?mr.onItemFocus(sr):cr.preventDefault()}),onFocus:(0,x.M)(dt.onFocus,()=>mr.onItemFocus(sr)),onKeyDown:(0,x.M)(dt.onKeyDown,cr=>{if(cr.key==="Tab"&&cr.shiftKey)return void mr.onItemShiftTab();if(cr.target!==cr.currentTarget)return;const Hr=function(an,Sn,Mn){const Zn=function(Rn,bn){return bn!=="rtl"?Rn:Rn==="ArrowLeft"?"ArrowRight":Rn==="ArrowRight"?"ArrowLeft":Rn}(an.key,Mn);return Sn==="vertical"&&["ArrowLeft","ArrowRight"].includes(Zn)||Sn==="horizontal"&&["ArrowUp","ArrowDown"].includes(Zn)?void 0:A[Zn]}(cr,mr.orientation,mr.dir);if(Hr!==void 0){cr.preventDefault();let an=or().filter(Sn=>Sn.focusable).map(Sn=>Sn.ref.current);if(Hr==="last")an.reverse();else if(Hr==="prev"||Hr==="next"){Hr==="prev"&&an.reverse();const Sn=an.indexOf(cr.currentTarget);an=mr.loop?(Rr=Sn+1,(vr=an).map((Mn,Zn)=>vr[(Rr+Zn)%vr.length])):an.slice(Sn+1)}setTimeout(()=>X(an))}var vr,Rr})})))}),A={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function X(dt){const ft=document.activeElement;for(const vt of dt)if(vt===ft||(vt.focus(),document.activeElement!==ft))return}const Y=o,ee=B;var ge=e(1483);const be="Tabs",[Re,Ze]=(0,N.b)(be,[J]),Be=J(),[Ie,Ke]=Re(be),Ye=(0,h.forwardRef)((dt,ft)=>{const{__scopeTabs:vt,value:Et,onValueChange:tr,defaultValue:ir,orientation:Qt="horizontal",dir:_r,activationMode:sr="automatic",...mr}=dt,Zr=me(_r),[or,lr]=(0,L.T)({prop:Et,onChange:tr,defaultProp:ir});return(0,h.createElement)(Ie,{scope:vt,baseId:(0,V.M)(),value:or,onValueChange:lr,orientation:Qt,dir:Zr,activationMode:sr},(0,h.createElement)(ce.WV.div,(0,k.Z)({dir:Zr,"data-orientation":Qt},mr,{ref:ft})))}),tt="TabsList",ue=(0,h.forwardRef)((dt,ft)=>{const{__scopeTabs:vt,loop:Et=!0,...tr}=dt,ir=Ke(tt,vt),Qt=Be(vt);return(0,h.createElement)(Y,(0,k.Z)({asChild:!0},Qt,{orientation:ir.orientation,dir:ir.dir,loop:Et}),(0,h.createElement)(ce.WV.div,(0,k.Z)({role:"tablist","aria-orientation":ir.orientation},tr,{ref:ft})))}),ve="TabsTrigger",De=(0,h.forwardRef)((dt,ft)=>{const{__scopeTabs:vt,value:Et,disabled:tr=!1,...ir}=dt,Qt=Ke(ve,vt),_r=Be(vt),sr=qe(Qt.baseId,Et),mr=st(Qt.baseId,Et),Zr=Et===Qt.value;return(0,h.createElement)(ee,(0,k.Z)({asChild:!0},_r,{focusable:!tr,active:Zr}),(0,h.createElement)(ce.WV.button,(0,k.Z)({type:"button",role:"tab","aria-selected":Zr,"aria-controls":mr,"data-state":Zr?"active":"inactive","data-disabled":tr?"":void 0,disabled:tr,id:sr},ir,{ref:ft,onMouseDown:(0,x.M)(dt.onMouseDown,or=>{tr||or.button!==0||or.ctrlKey!==!1?or.preventDefault():Qt.onValueChange(Et)}),onKeyDown:(0,x.M)(dt.onKeyDown,or=>{[" ","Enter"].includes(or.key)&&Qt.onValueChange(Et)}),onFocus:(0,x.M)(dt.onFocus,()=>{const or=Qt.activationMode!=="manual";Zr||tr||!or||Qt.onValueChange(Et)})})))}),He="TabsContent",Je=(0,h.forwardRef)((dt,ft)=>{const{__scopeTabs:vt,value:Et,forceMount:tr,children:ir,...Qt}=dt,_r=Ke(He,vt),sr=qe(_r.baseId,Et),mr=st(_r.baseId,Et),Zr=Et===_r.value,or=(0,h.useRef)(Zr);return(0,h.useEffect)(()=>{const lr=requestAnimationFrame(()=>or.current=!1);return()=>cancelAnimationFrame(lr)},[]),(0,h.createElement)(ge.z,{present:tr||Zr},({present:lr})=>(0,h.createElement)(ce.WV.div,(0,k.Z)({"data-state":Zr?"active":"inactive","data-orientation":_r.orientation,role:"tabpanel","aria-labelledby":sr,hidden:!lr,id:mr,tabIndex:0},Qt,{ref:ft,style:{...dt.style,animationDuration:or.current?"0s":void 0}}),lr&&ir))});function qe(dt,ft){return`${dt}-trigger-${ft}`}function st(dt,ft){return`${dt}-content-${ft}`}const ht=Ye,et=ue,wt=De,Lt=Je;var St=["children"];function yt(dt,ft){var vt=Object.keys(dt);if(Object.getOwnPropertySymbols){var Et=Object.getOwnPropertySymbols(dt);ft&&(Et=Et.filter(function(tr){return Object.getOwnPropertyDescriptor(dt,tr).enumerable})),vt.push.apply(vt,Et)}return vt}function Wt(dt){for(var ft=1;ft<arguments.length;ft++){var vt=arguments[ft]!=null?arguments[ft]:{};ft%2?yt(Object(vt),!0).forEach(function(Et){(0,E.Z)(dt,Et,vt[Et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(dt,Object.getOwnPropertyDescriptors(vt)):yt(Object(vt)).forEach(function(Et){Object.defineProperty(dt,Et,Object.getOwnPropertyDescriptor(vt,Et))})}return dt}var Ft=function(dt){var ft=dt.children,vt=(0,y.Z)(dt,St);return(0,de.jsx)(et,Wt(Wt({className:"sidebar-triggers"},vt),{},{children:ft}))};Ft.displayName="SidebarTabTriggers";var Ve=["children","tab","onSelect"];function bt(dt,ft){var vt=Object.keys(dt);if(Object.getOwnPropertySymbols){var Et=Object.getOwnPropertySymbols(dt);ft&&(Et=Et.filter(function(tr){return Object.getOwnPropertyDescriptor(dt,tr).enumerable})),vt.push.apply(vt,Et)}return vt}function at(dt){for(var ft=1;ft<arguments.length;ft++){var vt=arguments[ft]!=null?arguments[ft]:{};ft%2?bt(Object(vt),!0).forEach(function(Et){(0,E.Z)(dt,Et,vt[Et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(dt,Object.getOwnPropertyDescriptors(vt)):bt(Object(vt)).forEach(function(Et){Object.defineProperty(dt,Et,Object.getOwnPropertyDescriptor(vt,Et))})}return dt}var mt=function(dt){var ft=dt.children,vt=dt.tab,Et=dt.onSelect,tr=(0,y.Z)(dt,Ve);return(0,de.jsx)(wt,{value:vt,asChild:!0,onSelect:Et,children:(0,de.jsx)("button",at(at({type:"button",className:"excalidraw-button sidebar-tab-trigger"},tr),{},{children:ft}))})};mt.displayName="SidebarTabTrigger";var ut=["children"];function Ot(dt,ft){var vt=Object.keys(dt);if(Object.getOwnPropertySymbols){var Et=Object.getOwnPropertySymbols(dt);ft&&(Et=Et.filter(function(tr){return Object.getOwnPropertyDescriptor(dt,tr).enumerable})),vt.push.apply(vt,Et)}return vt}function Pt(dt){for(var ft=1;ft<arguments.length;ft++){var vt=arguments[ft]!=null?arguments[ft]:{};ft%2?Ot(Object(vt),!0).forEach(function(Et){(0,E.Z)(dt,Et,vt[Et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(dt,Object.getOwnPropertyDescriptors(vt)):Ot(Object(vt)).forEach(function(Et){Object.defineProperty(dt,Et,Object.getOwnPropertyDescriptor(vt,Et))})}return dt}var Gt=function(dt){var ft=dt.children,vt=(0,y.Z)(dt,ut),Et=(0,$.I)(),tr=(0,W.n9)();if(!Et.openSidebar)return null;var ir=Et.openSidebar.name;return(0,de.jsx)(ht,Pt(Pt({className:"sidebar-tabs-root",value:Et.openSidebar.tab,onValueChange:function(Qt){return tr(function(_r){return Pt(Pt({},_r),{},{openSidebar:Pt(Pt({},_r.openSidebar),{},{name:ir,tab:Qt})})})}},vt),{},{children:ft}))};Gt.displayName="SidebarTabs";var Ct=["tab","children"];function ur(dt,ft){var vt=Object.keys(dt);if(Object.getOwnPropertySymbols){var Et=Object.getOwnPropertySymbols(dt);ft&&(Et=Et.filter(function(tr){return Object.getOwnPropertyDescriptor(dt,tr).enumerable})),vt.push.apply(vt,Et)}return vt}function rr(dt){for(var ft=1;ft<arguments.length;ft++){var vt=arguments[ft]!=null?arguments[ft]:{};ft%2?ur(Object(vt),!0).forEach(function(Et){(0,E.Z)(dt,Et,vt[Et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(dt,Object.getOwnPropertyDescriptors(vt)):ur(Object(vt)).forEach(function(Et){Object.defineProperty(dt,Et,Object.getOwnPropertyDescriptor(vt,Et))})}return dt}var Tr=function(dt){var ft=dt.tab,vt=dt.children,Et=(0,y.Z)(dt,Ct);return(0,de.jsx)(Lt,rr(rr({},Et),{},{value:ft,children:vt}))};Tr.displayName="SidebarTab";var ot=e(1901),Rt=e(8208),_t={};_t.styleTagTransform=c(),_t.setAttributes=t(),_t.insert=s().bind(null,"head"),_t.domAPI=g(),_t.insertStyleElement=l(),R()(Rt.Z,_t),Rt.Z&&Rt.Z.locals&&Rt.Z.locals;var At=["name","children","onDock","docked","className"];function br(dt,ft){var vt=Object.keys(dt);if(Object.getOwnPropertySymbols){var Et=Object.getOwnPropertySymbols(dt);ft&&(Et=Et.filter(function(tr){return Object.getOwnPropertyDescriptor(dt,tr).enumerable})),vt.push.apply(vt,Et)}return vt}function xr(dt){for(var ft=1;ft<arguments.length;ft++){var vt=arguments[ft]!=null?arguments[ft]:{};ft%2?br(Object(vt),!0).forEach(function(Et){(0,E.Z)(dt,Et,vt[Et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(dt,Object.getOwnPropertyDescriptors(vt)):br(Object(vt)).forEach(function(Et){Object.defineProperty(dt,Et,Object.getOwnPropertyDescriptor(vt,Et))})}return dt}var jr=(0,v.cn)(!1),Ar=(0,h.forwardRef)(function(dt,ft){dt.name;var vt=dt.children,Et=dt.onDock,tr=dt.docked,ir=dt.className,Qt=(0,y.Z)(dt,At),_r=(0,W.n9)(),sr=(0,v.b9)(jr,n.yE);(0,h.useLayoutEffect)(function(){return sr(!!tr),function(){sr(!1)}},[sr,tr]);var mr=(0,h.useRef)({});mr.current.onCloseRequest=function(){_r({openSidebar:null})},mr.current.onDock=function(gr){return Et?.(gr)},mr.current=(0,pe.v4)(mr.current,{docked:tr,shouldRenderDockButton:!!Et&&tr!=null});var Zr=(0,h.useRef)(null);(0,h.useImperativeHandle)(ft,function(){return Zr.current});var or=(0,W.Fy)(),lr=(0,h.useCallback)(function(){document.querySelector(".Dialog")||_r({openSidebar:null})},[_r]);return(0,ot.O)(Zr,(0,h.useCallback)(function(gr){gr.target.closest(".sidebar-trigger")||tr&&or.editor.canFitSidebar||lr()},[lr,tr,or.editor.canFitSidebar])),(0,h.useEffect)(function(){var gr=function(cr){cr.key!==oe.tW.ESCAPE||tr&&or.editor.canFitSidebar||lr()};return document.addEventListener(P.Ks.KEYDOWN,gr),function(){document.removeEventListener(P.Ks.KEYDOWN,gr)}},[lr,tr,or.editor.canFitSidebar]),(0,de.jsx)(I.W,xr(xr({},Qt),{},{className:(0,Z.Z)("sidebar",{"sidebar--docked":tr},ir),ref:Zr,children:(0,de.jsx)(M.Provider,{value:mr.current,children:vt})}))});Ar.displayName="SidebarInner";var fr=Object.assign((0,h.forwardRef)(function(dt,ft){var vt,Et=(0,$.I)(),tr=dt.onStateChange,ir=(0,h.useRef)(Et.openSidebar);(0,h.useEffect)(function(){var Zr,or,lr,gr,cr;(!Et.openSidebar&&(ir==null||(Zr=ir.current)===null||Zr===void 0?void 0:Zr.name)===dt.name||((or=Et.openSidebar)===null||or===void 0?void 0:or.name)===dt.name&&(ir==null||(lr=ir.current)===null||lr===void 0?void 0:lr.name)!==dt.name||((gr=ir.current)===null||gr===void 0?void 0:gr.name)===dt.name)&&Et.openSidebar!==ir.current&&tr?.(((cr=Et.openSidebar)===null||cr===void 0?void 0:cr.name)!==dt.name?null:Et.openSidebar),ir.current=Et.openSidebar},[Et.openSidebar,tr,dt.name]);var Qt=(0,h.useState)(!1),_r=(0,D.Z)(Qt,2),sr=_r[0],mr=_r[1];return(0,h.useLayoutEffect)(function(){return mr(!0),function(){return mr(!1)}},[]),sr&&((vt=Et.openSidebar)===null||vt===void 0?void 0:vt.name)===dt.name?(0,h.createElement)(Ar,xr(xr({},dt),{},{ref:ft,key:dt.name})):null}),{Header:he,TabTriggers:Ft,TabTrigger:mt,Tabs:Gt,Tab:Tr,Trigger:j});fr.displayName="Sidebar"},8531:function(Se,Q,e){e.d(Q,{Z:function(){return oe}});var D=e(7169),E=e(9787),y=e.n(E),h=e(3379),S=e.n(h),I=e(7795),v=e.n(I),n=e(569),M=e.n(n),Z=e(3565),H=e.n(Z),W=e(9216),u=e.n(W),U=e(4589),le=e.n(U),de=e(5892),he={};he.styleTagTransform=le(),he.setAttributes=H(),he.insert=M().bind(null,"head"),he.domAPI=v(),he.insertStyleElement=u(),S()(de.Z,he),de.Z&&de.Z.locals&&de.Z.locals;var pe=e(1020),oe=function(P){var $=P.size,b=$===void 0?"1em":$,R=P.circleWidth,_=R===void 0?8:R,g=P.synchronized,O=g!==void 0&&g,s=-y().useRef(Date.now()).current%1600;return(0,pe.jsx)("div",{className:"Spinner",children:(0,pe.jsx)("svg",{viewBox:"0 0 100 100",style:(0,D.Z)({width:b,height:b},"--spinner-delay",O?"".concat(s,"ms"):0),children:(0,pe.jsx)("circle",{cx:"50",cy:"50",r:50-_/2,strokeWidth:_,fill:"none",strokeMiterlimit:"10"})})})}},2540:function(Se,Q,e){e.d(Q,{Z:function(){return $}});var D=e(7169),E=e(3379),y=e.n(E),h=e(7795),S=e.n(h),I=e(569),v=e.n(I),n=e(3565),M=e.n(n),Z=e(9216),H=e.n(Z),W=e(4589),u=e.n(W),U=e(3874),le={};le.styleTagTransform=u(),le.setAttributes=M(),le.insert=v().bind(null,"head"),le.domAPI=S(),le.insertStyleElement=H(),y()(U.Z,le),U.Z&&U.Z.locals&&U.Z.locals;var de=e(9787),he=e(45),pe=e(1020);function oe(b,R){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(b);R&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(b,O).enumerable})),_.push.apply(_,g)}return _}function P(b){for(var R=1;R<arguments.length;R++){var _=arguments[R]!=null?arguments[R]:{};R%2?oe(Object(_),!0).forEach(function(g){(0,D.Z)(b,g,_[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(_)):oe(Object(_)).forEach(function(g){Object.defineProperty(b,g,Object.getOwnPropertyDescriptor(_,g))})}return b}var $={Row:(0,de.forwardRef)(function(b,R){var _=b.children,g=b.gap,O=b.align,s=b.justifyContent,f=b.className,t=b.style;return(0,pe.jsx)("div",{className:(0,he.Z)("Stack Stack_horizontal",f),style:P({"--gap":g,alignItems:O,justifyContent:s},t),ref:R,children:_})}),Col:(0,de.forwardRef)(function(b,R){var _=b.children,g=b.gap,O=b.align,s=b.justifyContent,f=b.className,t=b.style;return(0,pe.jsx)("div",{className:(0,he.Z)("Stack Stack_vertical",f),style:P({"--gap":g,justifyItems:O,justifyContent:s},t),ref:R,children:_})})}},1512:function(Se,Q,e){e.d(Q,{V:function(){return W}});var D=e(8950),E=e(2577),y=e(2975),h=e.n(y),S=(e(3041),e(9787)),I=e.n(S),v=e(45),n=e(8242),M=e(3506),Z=e(8531),H=e(1020),W=I().forwardRef(function(u,U){var le=(0,n.J0)().id,de=I().useRef(null);I().useImperativeHandle(U,function(){return de.current});var he="ToolIcon_size_".concat(u.size),pe=(0,S.useState)(!1),oe=(0,E.Z)(pe,2),P=oe[0],$=oe[1],b=(0,S.useRef)(!0),R=function(){var O=(0,D.Z)(h().mark(function s(f){var t,w;return h().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!(w="onClick"in u&&((t=u.onClick)===null||t===void 0?void 0:t.call(u,f)))||!("then"in w)){l.next=18;break}return l.prev=2,$(!0),l.next=6,w;case 6:l.next=15;break;case 8:if(l.prev=8,l.t0=l.catch(2),l.t0 instanceof M._L){l.next=14;break}throw l.t0;case 14:console.warn(l.t0);case 15:return l.prev=15,b.current&&$(!1),l.finish(15);case 18:case"end":return l.stop()}},s,null,[[2,8,15,18]])}));return function(s){return O.apply(this,arguments)}}();(0,S.useEffect)(function(){return b.current=!0,function(){b.current=!1}},[]);var _=(0,S.useRef)(null);if(u.type==="button"||u.type==="icon"||u.type==="submit"){var g=u.type==="icon"?"button":u.type;return(0,H.jsxs)("button",{className:(0,v.Z)("ToolIcon_type_button",he,u.className,u.visible&&!u.hidden?"ToolIcon_type_button--show":"ToolIcon_type_button--hide",{ToolIcon:!u.hidden,"ToolIcon--selected":u.selected,"ToolIcon--plain":u.type==="icon"}),style:u.style,"data-testid":u["data-testid"],hidden:u.hidden,title:u.title,"aria-label":u["aria-label"],type:g,onClick:R,ref:de,disabled:P||u.isLoading,children:[(u.icon||u.label)&&(0,H.jsxs)("div",{className:"ToolIcon__icon","aria-hidden":"true",children:[u.icon||u.label,u.keyBindingLabel&&(0,H.jsx)("span",{className:"ToolIcon__keybinding",children:u.keyBindingLabel}),u.isLoading&&(0,H.jsx)(Z.Z,{})]}),u.showAriaLabel&&(0,H.jsxs)("div",{className:"ToolIcon__label",children:[u["aria-label"]," ",P&&(0,H.jsx)(Z.Z,{})]}),u.children]})}return(0,H.jsxs)("label",{className:(0,v.Z)("ToolIcon",u.className),title:u.title,onPointerDown:function(O){var s;_.current=O.pointerType||null,(s=u.onPointerDown)===null||s===void 0||s.call(u,{pointerType:O.pointerType||null})},onPointerUp:function(){requestAnimationFrame(function(){_.current=null})},children:[(0,H.jsx)("input",{className:"ToolIcon_type_radio ".concat(he),type:"radio",name:u.name,"aria-label":u["aria-label"],"aria-keyshortcuts":u["aria-keyshortcuts"],"data-testid":u["data-testid"],id:"".concat(le,"-").concat(u.id),onChange:function(){var O;(O=u.onChange)===null||O===void 0||O.call(u,{pointerType:_.current})},checked:u.checked,ref:de}),(0,H.jsxs)("div",{className:"ToolIcon__icon",children:[u.icon,u.keyBindingLabel&&(0,H.jsx)("span",{className:"ToolIcon__keybinding",children:u.keyBindingLabel})]})]})});W.defaultProps={visible:!0,className:"",size:"medium"},W.displayName="ToolButton"},8925:function(Se,Q,e){e.d(Q,{u:function(){return oe},bK:function(){return he},Js:function(){return pe}});var D=e(3379),E=e.n(D),y=e(7795),h=e.n(y),S=e(569),I=e.n(S),v=e(3565),n=e.n(v),M=e(9216),Z=e.n(M),H=e(4589),W=e.n(H),u=e(6626),U={};U.styleTagTransform=W(),U.setAttributes=n(),U.insert=I().bind(null,"head"),U.domAPI=h(),U.insertStyleElement=Z(),E()(u.Z,U),u.Z&&u.Z.locals&&u.Z.locals;var le=e(9787),de=e(1020),he=function(){var P=document.querySelector(".excalidraw-tooltip");if(P)return P;var $=document.createElement("div");return document.body.appendChild($),$.classList.add("excalidraw-tooltip"),$},pe=function(P,$){var b,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"bottom",_=P.getBoundingClientRect(),g=window.innerWidth,O=window.innerHeight,s=5,f=$.left+$.width/2-_.width/2;f<0?f=s:f+_.width>=g&&(f=g-_.width-s),R==="bottom"?(b=$.top+$.height+s)+_.height>=O&&(b=$.top-_.height-s):(b=$.top-_.height-s)<0&&(b=$.top+$.height+s),Object.assign(P.style,{top:"".concat(b,"px"),left:"".concat(f,"px")})},oe=function(P){var $=P.children,b=P.label,R=P.long,_=R!==void 0&&R,g=P.style;return(0,le.useEffect)(function(){return function(){return he().classList.remove("excalidraw-tooltip--visible")}},[]),(0,de.jsx)("div",{className:"excalidraw-tooltip-wrapper",onPointerEnter:function(O){return function(s,f,t,w){f.classList.add("excalidraw-tooltip--visible"),f.style.minWidth=w?"50ch":"10ch",f.style.maxWidth=w?"50ch":"15ch",f.textContent=t;var l=s.getBoundingClientRect();pe(f,l)}(O.currentTarget,he(),b,_)},onPointerLeave:function(){return he().classList.remove("excalidraw-tooltip--visible")},style:g,children:$})}},9247:function(Se,Q,e){var D=e(2726),E=e(1930),y=e(9787),h=e.n(y),S=e(8227),I=["i18nKey","children"],v=/({{[\w-]+}})|(<[\w-]+>)|(<\/[\w-]+>)/g,n=/{{([\w-]+)}}/,M=/<([\w-]+)>/,Z=/<\/([\w-]+)>/;Q.Z=function(H){var W=H.i18nKey,u=(H.children,(0,D.Z)(H,I)),U=(0,S.QT)().t;return h().createElement.apply(h(),[h().Fragment,{}].concat((0,E.Z)(function(le,de){var he=[{name:"",children:[]}];return le.split(v).filter(Boolean).forEach(function(pe){var oe=pe.match(M),P=pe.match(Z),$=pe.match(n);if(oe!==null){var b=oe[1];de.hasOwnProperty(b)?he.push({name:b,children:[]}):console.warn("Trans: missed to pass in prop ".concat(b," for interpolating ").concat(le))}else if(P!==null)if(P[1]===he[he.length-1].name){var R=he.pop(),_=h().createElement.apply(h(),[h().Fragment,{}].concat((0,E.Z)(R.children))),g=de[R.name];typeof g=="function"&&he[he.length-1].children.push(g(_))}else console.warn("Trans: unexpected end tag ".concat(pe," for interpolating ").concat(le));else if($!==null){var O=$[1];de.hasOwnProperty(O)?he[he.length-1].children.push(de[O]):console.warn("Trans: key ".concat(O," not in props for interpolating ").concat(le))}else he[he.length-1].children.push(pe)}),he.length!==1&&console.warn("Trans: stack not empty for interpolating ".concat(le)),he[0].children}(U(W),u))))}},4704:function(Se,Q,e){e.d(Q,{Z:function(){return b}});var D=e(2577),E=e(3379),y=e.n(E),h=e(7795),S=e.n(h),I=e(569),v=e.n(I),n=e(3565),M=e.n(n),Z=e(9216),H=e.n(Z),W=e(4589),u=e.n(W),U=e(6359),le={};le.styleTagTransform=u(),le.setAttributes=M(),le.insert=v().bind(null,"head"),le.domAPI=S(),le.insertStyleElement=H(),y()(U.Z,le),U.Z&&U.Z.locals&&U.Z.locals;var de=e(9787),he=e.n(de),pe=e(45),oe=e(8925),P=e(8242),$=e(1020),b=function(R){var _=R.className,g=R.mobile,O=R.collaborators,s=(0,P.eh)(),f=new Map;O.forEach(function(w,l){f.set(w.id||l,w)});var t=f.size>0&&Array.from(f).filter(function(w){var l=(0,D.Z)(w,2),a=(l[0],l[1]);return Object.keys(a).length!==0}).map(function(w){var l=(0,D.Z)(w,2),a=l[0],c=l[1],m=s.renderAction("goToCollaborator",[a,c]);return g?(0,$.jsx)(oe.u,{label:c.username||"Unknown user",children:m},a):(0,$.jsx)(he().Fragment,{children:m},a)});return(0,$.jsx)("div",{className:(0,pe.Z)("UserList",_,{UserList_mobile:g}),children:t})}},7104:function(Se,Q,e){e.d(Q,{Z:function(){return te}});var D=e(7169),E=e(2726),y=e(45),h=e(8242),S=e(1020),I=["className","children","onToggle","title"];function v(L,re){var me=Object.keys(L);if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(L);re&&(Ce=Ce.filter(function(We){return Object.getOwnPropertyDescriptor(L,We).enumerable})),me.push.apply(me,Ce)}return me}function n(L){for(var re=1;re<arguments.length;re++){var me=arguments[re]!=null?arguments[re]:{};re%2?v(Object(me),!0).forEach(function(Ce){(0,D.Z)(L,Ce,me[Ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(me)):v(Object(me)).forEach(function(Ce){Object.defineProperty(L,Ce,Object.getOwnPropertyDescriptor(me,Ce))})}return L}var M=function(L){var re=L.className,me=re===void 0?"":re,Ce=L.children,We=L.onToggle,Te=L.title,we=(0,E.Z)(L,I),xe=(0,h.Fy)(),_e=(0,y.Z)("dropdown-menu-button ".concat(me),"zen-mode-transition",{"dropdown-menu-button--mobile":xe.editor.isMobile}).trim();return(0,S.jsx)("button",n(n({"data-prevent-outside-click":!0,className:_e,onClick:We,type:"button","data-testid":"dropdown-menu-button",title:Te},we),{},{children:Ce}))},Z=M;M.displayName="DropdownMenuTrigger";var H=e(5735),W=function(){return(0,S.jsx)("div",{style:{height:"1px",backgroundColor:"var(--default-border-color)",margin:".5rem 0"}})},u=W;W.displayName="DropdownMenuSeparator";var U=function(L){var re=L.children,me=L.className,Ce=me===void 0?"":me,We=L.style,Te=L.title;return(0,S.jsxs)("div",{className:"dropdown-menu-group ".concat(Ce),style:We,children:[Te&&(0,S.jsx)("p",{className:"dropdown-menu-group-title",children:Te}),re]})},le=U;U.displayName="DropdownMenuGroup";var de=e(1404),he=e(2540),pe=e(9787),oe=e.n(pe),P=e(7009),$=e(1901),b=function(L){var re=L.children,me=L.onClickOutside,Ce=L.className,We=Ce===void 0?"":Ce,Te=L.onSelect,we=L.style,xe=(0,h.Fy)(),_e=(0,pe.useRef)(null);(0,$.O)(_e,function(){me?.()});var Oe=(0,y.Z)("dropdown-menu ".concat(We),{"dropdown-menu--mobile":xe.editor.isMobile}).trim();return(0,S.jsx)(P.N7.Provider,{value:{onSelect:Te},children:(0,S.jsx)("div",{ref:_e,className:Oe,style:we,"data-testid":"dropdown-menu",children:xe.editor.isMobile?(0,S.jsx)(he.Z.Col,{className:"dropdown-menu-container",children:re}):(0,S.jsx)(de.W,{className:"dropdown-menu-container",padding:2,style:{zIndex:2},children:re})})})};b.displayName="DropdownMenuContent";var R=b,_=e(3858),g=["children","className","selected"];function O(L,re){var me=Object.keys(L);if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(L);re&&(Ce=Ce.filter(function(We){return Object.getOwnPropertyDescriptor(L,We).enumerable})),me.push.apply(me,Ce)}return me}function s(L){for(var re=1;re<arguments.length;re++){var me=arguments[re]!=null?arguments[re]:{};re%2?O(Object(me),!0).forEach(function(Ce){(0,D.Z)(L,Ce,me[Ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(me)):O(Object(me)).forEach(function(Ce){Object.defineProperty(L,Ce,Object.getOwnPropertyDescriptor(me,Ce))})}return L}var f=function(L){var re=L.children,me=L.className,Ce=me===void 0?"":me,We=L.selected,Te=(0,E.Z)(L,g);return(0,S.jsx)("div",s(s({},Te),{},{className:"dropdown-menu-item-base dropdown-menu-item-custom ".concat(Ce," ").concat(We?"dropdown-menu-item--selected":"").trim(),children:re}))},t=e(3379),w=e.n(t),l=e(7795),a=e.n(l),c=e(569),m=e.n(c),z=e(3565),j=e.n(z),k=e(9216),x=e.n(k),N=e(4589),G=e.n(N),ie=e(7399),V={};V.styleTagTransform=G(),V.setAttributes=j(),V.insert=m().bind(null,"head"),V.domAPI=a(),V.insertStyleElement=x(),w()(ie.Z,V),ie.Z&&ie.Z.locals&&ie.Z.locals;var ce=function(L){var re=L.children,me=L.open,Ce=function(Te){return oe().Children.toArray(Te).find(function(we){return oe().isValidElement(we)&&typeof we.type!="string"&&we?.type.displayName&&we.type.displayName==="DropdownMenuTrigger"})||null}(re),We=function(Te){return oe().Children.toArray(Te).find(function(we){return oe().isValidElement(we)&&typeof we.type!="string"&&we?.type.displayName&&we.type.displayName==="DropdownMenuContent"})||null}(re);return(0,S.jsxs)(S.Fragment,{children:[Ce,me&&We]})};ce.Trigger=Z,ce.Content=R,ce.Item=H.Z,ce.ItemLink=_.Z,ce.ItemCustom=f,ce.Group=le,ce.Separator=u;var te=ce;ce.displayName="DropdownMenu"},5735:function(Se,Q,e){var D=e(7169),E=e(2726),y=e(7009),h=e(6732),S=e(1020),I=["icon","onSelect","children","shortcut","className","selected"];function v(Z,H){var W=Object.keys(Z);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(Z);H&&(u=u.filter(function(U){return Object.getOwnPropertyDescriptor(Z,U).enumerable})),W.push.apply(W,u)}return W}function n(Z){for(var H=1;H<arguments.length;H++){var W=arguments[H]!=null?arguments[H]:{};H%2?v(Object(W),!0).forEach(function(u){(0,D.Z)(Z,u,W[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Z,Object.getOwnPropertyDescriptors(W)):v(Object(W)).forEach(function(u){Object.defineProperty(Z,u,Object.getOwnPropertyDescriptor(W,u))})}return Z}var M=function(Z){var H,W=Z.icon,u=Z.onSelect,U=Z.children,le=Z.shortcut,de=Z.className,he=Z.selected,pe=(0,E.Z)(Z,I),oe=(0,y.qZ)(pe.onClick,u);return(0,S.jsx)("button",n(n({},pe),{},{onClick:oe,type:"button",className:(0,y.n)(de,he),title:(H=pe.title)!==null&&H!==void 0?H:pe["aria-label"],children:(0,S.jsx)(h.Z,{icon:W,shortcut:le,children:U})}))};Q.Z=M,M.displayName="DropdownMenuItem"},6732:function(Se,Q,e){var D=e(8242),E=e(1020);Q.Z=function(y){var h=y.icon,S=y.shortcut,I=y.children,v=(0,D.Fy)();return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"dropdown-menu-item__icon",children:h}),(0,E.jsx)("div",{className:"dropdown-menu-item__text",children:I}),S&&!v.editor.isMobile&&(0,E.jsx)("div",{className:"dropdown-menu-item__shortcut",children:S})]})}},3858:function(Se,Q,e){var D=e(7169),E=e(2726),y=e(6732),h=e(7009),S=e(1020),I=["icon","shortcut","href","children","onSelect","className","selected"];function v(Z,H){var W=Object.keys(Z);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(Z);H&&(u=u.filter(function(U){return Object.getOwnPropertyDescriptor(Z,U).enumerable})),W.push.apply(W,u)}return W}function n(Z){for(var H=1;H<arguments.length;H++){var W=arguments[H]!=null?arguments[H]:{};H%2?v(Object(W),!0).forEach(function(u){(0,D.Z)(Z,u,W[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Z,Object.getOwnPropertyDescriptors(W)):v(Object(W)).forEach(function(u){Object.defineProperty(Z,u,Object.getOwnPropertyDescriptor(W,u))})}return Z}var M=function(Z){var H,W=Z.icon,u=Z.shortcut,U=Z.href,le=Z.children,de=Z.onSelect,he=Z.className,pe=he===void 0?"":he,oe=Z.selected,P=(0,E.Z)(Z,I),$=(0,h.qZ)(P.onClick,de);return(0,S.jsx)("a",n(n({},P),{},{href:U,target:"_blank",rel:"noreferrer",className:(0,h.n)(pe,oe),title:(H=P.title)!==null&&H!==void 0?H:P["aria-label"],onClick:$,children:(0,S.jsx)(y.Z,{icon:W,shortcut:u,children:le})}))};Q.Z=M,M.displayName="DropdownMenuItemLink"},7009:function(Se,Q,e){e.d(Q,{N7:function(){return S},n:function(){return I},qZ:function(){return v}});var D=e(9787),E=e.n(D),y=e(9937),h=e(9827),S=E().createContext({}),I=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return"dropdown-menu-item dropdown-menu-item-base ".concat(n," ").concat(M?"dropdown-menu-item--selected":"").trim()},v=function(n,M){var Z=(0,D.useContext)(S);return(0,h.Mj)(n,function(H){var W,u=new CustomEvent(y.Ks.MENU_ITEM_SELECT,{bubbles:!0,cancelable:!0});M?.(u),u.defaultPrevented||(W=Z.onSelect)===null||W===void 0||W.call(Z,u)})}},6922:function(Se,Q,e){e.d(Q,{$:function(){return n}});var D=e(7169),E=e(2577),y=e(3607),h=e(9787),S=e(4572),I=e(1020);function v(M,Z){var H=Object.keys(M);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(M);Z&&(W=W.filter(function(u){return Object.getOwnPropertyDescriptor(M,u).enumerable})),H.push.apply(H,W)}return H}var n=function(M,Z){var H=(0,y.cn)(0),W=function(u){var U=(0,S.R6)().jotaiScope,le=(0,y.KO)(H,U),de=(0,E.Z)(le,2)[1],he=(0,h.useRef)({preferHost:!1,counter:0});return(0,h.useLayoutEffect)(function(){var pe=he.current;return de(function(oe){var P=oe+1;return pe.counter=P,P}),function(){de(function(oe){var P=oe-1;return pe.counter=P,P||(pe.preferHost=!1),P})}},[de]),u.__fallback||(he.current.preferHost=!0),!he.current.counter&&u.__fallback&&he.current.preferHost||he.current.counter>1&&u.__fallback?null:(0,I.jsx)(Z,function(pe){for(var oe=1;oe<arguments.length;oe++){var P=arguments[oe]!=null?arguments[oe]:{};oe%2?v(Object(P),!0).forEach(function($){(0,D.Z)(pe,$,P[$])}):Object.getOwnPropertyDescriptors?Object.defineProperties(pe,Object.getOwnPropertyDescriptors(P)):v(Object(P)).forEach(function($){Object.defineProperty(pe,$,Object.getOwnPropertyDescriptor(P,$))})}return pe}({},u))};return W.displayName=M,W}},8935:function(Se,Q,e){e.d(Q,{$W:function(){return ir},$c:function(){return o},$q:function(){return z},BF:function(){return De},Ct:function(){return ge},D7:function(){return Ce},DG:function(){return J},DJ:function(){return _},DS:function(){return at},EO:function(){return xr},ET:function(){return me},FC:function(){return $},FL:function(){return N},Gc:function(){return X},HL:function(){return be},Hk:function(){return dt},Hy:function(){return te},II:function(){return sr},IN:function(){return Y},J8:function(){return ke},LZ:function(){return mr},NA:function(){return G},NW:function(){return V},Nw:function(){return fr},OA:function(){return Tr},OW:function(){return O},P7:function(){return Ar},Pm:function(){return a},RJ:function(){return He},RY:function(){return ce},Re:function(){return f},ST:function(){return Ke},Sd:function(){return j},TP:function(){return q},Tl:function(){return Oe},Tw:function(){return ue},UE:function(){return i},UI:function(){return vt},UT:function(){return tr},VL:function(){return c},Vl:function(){return B},Vq:function(){return de},W2:function(){return Ve},W5:function(){return Ie},Wl:function(){return wt},X7:function(){return ht},XB:function(){return m},XH:function(){return x},YA:function(){return pe},ZA:function(){return et},Zm:function(){return We},_C:function(){return P},_U:function(){return R},a0:function(){return qe},a1:function(){return xe},a5:function(){return St},aA:function(){return jr},aL:function(){return ft},aT:function(){return yt},bf:function(){return Wt},by:function(){return L},d:function(){return Zr},dg:function(){return Qt},e0:function(){return t},eQ:function(){return Te},fr:function(){return mt},gK:function(){return Ye},h0:function(){return re},il:function(){return ut},j8:function(){return Gt},jn:function(){return tt},kL:function(){return ie},kM:function(){return Ft},lF:function(){return Je},m:function(){return Pt},m9:function(){return Lt},mh:function(){return Ze},mv:function(){return Et},nb:function(){return s},np:function(){return st},nq:function(){return ur},o3:function(){return At},oQ:function(){return b},oT:function(){return br},op:function(){return ve},pO:function(){return he},po:function(){return _e},pw:function(){return ee},q0:function(){return Ct},qQ:function(){return oe},rr:function(){return _t},t5:function(){return A},tW:function(){return rr},tb:function(){return l},tn:function(){return Ot},uD:function(){return Be},vo:function(){return ot},wr:function(){return bt},xL:function(){return k},xP:function(){return we},xs:function(){return Re},z6:function(){return Rt},zG:function(){return p},zb:function(){return w},zl:function(){return _r},zu:function(){return g}});var D=e(7169),E=e(2726),y=e(9787),h=e.n(y),S=e(5284),I=e(45),v=e(9937),n=e(1020),M=["width","height","mirror","style"];function Z(or,lr){var gr=Object.keys(or);if(Object.getOwnPropertySymbols){var cr=Object.getOwnPropertySymbols(or);lr&&(cr=cr.filter(function(Hr){return Object.getOwnPropertyDescriptor(or,Hr).enumerable})),gr.push.apply(gr,cr)}return gr}function H(or){for(var lr=1;lr<arguments.length;lr++){var gr=arguments[lr]!=null?arguments[lr]:{};lr%2?Z(Object(gr),!0).forEach(function(cr){(0,D.Z)(or,cr,gr[cr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(or,Object.getOwnPropertyDescriptors(gr)):Z(Object(gr)).forEach(function(cr){Object.defineProperty(or,cr,Object.getOwnPropertyDescriptor(gr,cr))})}return or}var W=function(or){return or===v.C6.LIGHT?S.white:"#1e1e1e"},u=function(or){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:512,gr=typeof lr=="number"?{width:lr}:lr,cr=gr.width,Hr=cr===void 0?512:cr,vr=gr.height,Rr=vr===void 0?Hr:vr,an=gr.mirror,Sn=gr.style,Mn=(0,E.Z)(gr,M);return(0,n.jsx)("svg",H(H({"aria-hidden":"true",focusable:"false",role:"img",viewBox:"0 0 ".concat(Hr," ").concat(Rr),className:(0,I.Z)({"rtl-mirror":an}),style:Sn},Mn),{},{children:typeof or=="string"?(0,n.jsx)("path",{fill:"currentColor",d:or}):or}))},U={width:24,height:24,fill:"none",strokeWidth:2,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},le={width:20,height:20,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},de=(u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("rect",{x:3,y:8,width:18,height:4,rx:1}),(0,n.jsx)("line",{x1:12,y1:8,x2:12,y2:21}),(0,n.jsx)("path",{d:"M19 12v7a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-7"}),(0,n.jsx)("path",{d:"M7.5 8a2.5 2.5 0 0 1 0 -5a4.8 8 0 0 1 4.5 5a4.8 8 0 0 1 4.5 -5a2.5 2.5 0 0 1 0 5"})]}),U),u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),(0,n.jsx)("path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),(0,n.jsx)("line",{x1:"3",y1:"6",x2:"3",y2:"19"}),(0,n.jsx)("line",{x1:"12",y1:"6",x2:"12",y2:"19"}),(0,n.jsx)("line",{x1:"21",y1:"6",x2:"21",y2:"19"})]}),U)),he=u((0,n.jsxs)("svg",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,n.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),U),pe=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,n.jsx)("circle",{cx:"12",cy:"19",r:"1"}),(0,n.jsx)("circle",{cx:"12",cy:"5",r:"1"})]}),U),oe=u((0,n.jsxs)("svg",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M9 4v6l-2 4v2h10v-2l-2 -4v-6"}),(0,n.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"21"}),(0,n.jsx)("line",{x1:"8",y1:"4",x2:"16",y2:"4"})]}),U),P=u((0,n.jsxs)("g",{children:[(0,n.jsx)("path",{d:"M13.542 8.542H6.458a2.5 2.5 0 0 0-2.5 2.5v3.75a2.5 2.5 0 0 0 2.5 2.5h7.084a2.5 2.5 0 0 0 2.5-2.5v-3.75a2.5 2.5 0 0 0-2.5-2.5Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,n.jsx)("path",{d:"M10 13.958a1.042 1.042 0 1 0 0-2.083 1.042 1.042 0 0 0 0 2.083Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,n.jsx)("mask",{id:"UnlockedIcon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:6,y:1,width:9,height:9,children:(0,n.jsx)("path",{stroke:"none",d:"M6.399 9.561V5.175c0-.93.401-1.823 1.116-2.48a3.981 3.981 0 0 1 2.693-1.028c1.01 0 1.98.37 2.694 1.027.715.658 1.116 1.55 1.116 2.481",fill:"#fff"})}),(0,n.jsx)("g",{mask:"url(#UnlockedIcon)",children:(0,n.jsx)("path",{stroke:"none",d:"M5.149 9.561v1.25h2.5v-1.25h-2.5Zm5.06-7.894V.417v1.25Zm2.559 3.508v1.25h2.5v-1.25h-2.5ZM7.648 8.51V5.175h-2.5V8.51h2.5Zm0-3.334c0-.564.243-1.128.713-1.561L6.668 1.775c-.959.883-1.52 2.104-1.52 3.4h2.5Zm.713-1.561a2.732 2.732 0 0 1 1.847-.697v-2.5c-1.31 0-2.585.478-3.54 1.358L8.36 3.614Zm1.847-.697c.71 0 1.374.26 1.847.697l1.694-1.839a5.231 5.231 0 0 0-3.54-1.358v2.5Zm1.847.697c.47.433.713.997.713 1.561h2.5c0-1.296-.56-2.517-1.52-3.4l-1.693 1.839Z",fill:"currentColor"})})]}),le),$=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M13.542 8.542H6.458a2.5 2.5 0 0 0-2.5 2.5v3.75a2.5 2.5 0 0 0 2.5 2.5h7.084a2.5 2.5 0 0 0 2.5-2.5v-3.75a2.5 2.5 0 0 0-2.5-2.5Z"}),(0,n.jsx)("path",{d:"M10 13.958a1.042 1.042 0 1 0 0-2.083 1.042 1.042 0 0 0 0 2.083Z"}),(0,n.jsx)("path",{d:"M6.667 8.333V5.417C6.667 3.806 8.159 2.5 10 2.5c1.841 0 3.333 1.306 3.333 2.917v2.916"})]}),le),b=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M38.5 83.5c-14-2-17.833-10.473-21-22.5C14.333 48.984 12 22 12 12.5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m12.005 10.478 7.905 14.423L6 25.75l6.005-15.273Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M12.005 10.478c1.92 3.495 3.838 7 7.905 14.423m-7.905-14.423c3.11 5.683 6.23 11.368 7.905 14.423m0 0c-3.68.226-7.35.455-13.91.85m13.91-.85c-5.279.33-10.566.647-13.91.85m0 0c1.936-4.931 3.882-9.86 6.005-15.273M6 25.75c2.069-5.257 4.135-10.505 6.005-15.272",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),{width:41,height:94,fill:"none"}),R=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M18.026 1.232c-5.268 13.125-5.548 33.555 3.285 42.311 8.823 8.75 33.31 12.304 42.422 13.523",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m72.181 59.247-13.058-10-2.948 13.62 16.006-3.62Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M72.181 59.247c-3.163-2.429-6.337-4.856-13.058-10m13.058 10c-5.145-3.936-10.292-7.882-13.058-10m0 0c-.78 3.603-1.563 7.196-2.948 13.62m2.948-13.62c-1.126 5.168-2.24 10.346-2.948 13.62m0 0c5.168-1.166 10.334-2.343 16.006-3.62m-16.006 3.62c5.51-1.248 11.01-2.495 16.006-3.62",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),{width:85,height:71,fill:"none"}),_=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M1 77c14-2 31.833-11.973 35-24 3.167-12.016-6-35-9.5-43.5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m24.165 1.093-2.132 16.309 13.27-4.258-11.138-12.05Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M24.165 1.093c-.522 3.953-1.037 7.916-2.132 16.309m2.131-16.309c-.835 6.424-1.68 12.854-2.13 16.308m0 0c3.51-1.125 7.013-2.243 13.27-4.257m-13.27 4.257c5.038-1.608 10.08-3.232 13.27-4.257m0 0c-3.595-3.892-7.197-7.777-11.14-12.05m11.14 12.05c-3.837-4.148-7.667-8.287-11.14-12.05",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),{width:38,height:78,fill:"none"}),g=(u((0,n.jsx)("g",{fill:"currentColor",children:(0,n.jsx)("path",{d:"M39.9 32.889a.326.326 0 0 0-.279-.056c-2.094-3.083-4.774-6-7.343-8.833l-.419-.472a.212.212 0 0 0-.056-.139.586.586 0 0 0-.167-.111l-.084-.083-.056-.056c-.084-.167-.28-.278-.475-.167-.782.39-1.507.973-2.206 1.528-.92.722-1.842 1.445-2.708 2.25a8.405 8.405 0 0 0-.977 1.028c-.14.194-.028.361.14.444-.615.611-1.23 1.223-1.843 1.861a.315.315 0 0 0-.084.223c0 .083.056.166.111.194l1.09.833v.028c1.535 1.528 4.244 3.611 7.12 5.861.418.334.865.667 1.284 1 .195.223.39.473.558.695.084.11.28.139.391.055.056.056.14.111.196.167a.398.398 0 0 0 .167.056.255.255 0 0 0 .224-.111.394.394 0 0 0 .055-.167c.029 0 .028.028.056.028a.318.318 0 0 0 .224-.084l5.082-5.528a.309.309 0 0 0 0-.444Zm-14.63-1.917a.485.485 0 0 0 .111.14c.586.5 1.2 1 1.843 1.555l-2.569-1.945-.251-.166c-.056-.028-.112-.084-.168-.111l-.195-.167.056-.056.055-.055.112-.111c.866-.861 2.346-2.306 3.1-3.028-.81.805-2.43 3.167-2.095 3.944Zm8.767 6.89-2.122-1.612a44.713 44.713 0 0 0-2.625-2.5c1.145.861 2.122 1.611 2.262 1.75 1.117.972 1.06.806 1.815 1.445l.921.666a1.06 1.06 0 0 1-.251.25Zm.558.416-.056-.028c.084-.055.168-.111.252-.194l-.196.222ZM1.089 5.75c.055.361.14.722.195 1.056.335 1.833.67 3.5 1.284 4.75l.252.944c.084.361.223.806.363.917 1.424 1.25 3.602 3.11 5.947 4.889a.295.295 0 0 0 .363 0s0 .027.028.027a.254.254 0 0 0 .196.084.318.318 0 0 0 .223-.084c2.988-3.305 5.221-6.027 6.813-8.305.112-.111.14-.278.14-.417.111-.111.195-.25.307-.333.111-.111.111-.306 0-.39l-.028-.027c0-.055-.028-.139-.084-.167-.698-.666-1.2-1.138-1.731-1.638-.922-.862-1.871-1.75-3.881-3.75l-.028-.028c-.028-.028-.056-.056-.112-.056-.558-.194-1.703-.389-3.127-.639C6.087 2.223 3.21 1.723.614.944c0 0-.168 0-.196.028l-.083.084c-.028.027-.056.055-.224.11h.056-.056c.028.167.028.278.084.473 0 .055.112.5.112.555l.782 3.556Zm15.496 3.278-.335-.334c.084.112.196.195.335.334Zm-3.546 4.666-.056.056c0-.028.028-.056.056-.056Zm-2.038-10c.168.167.866.834 1.033.973-.726-.334-2.54-1.167-3.379-1.445.838.167 1.983.334 2.346.472ZM1.424 2.306c.419.722.754 3.222 1.089 5.666-.196-.778-.335-1.555-.503-2.278-.251-1.277-.503-2.416-.838-3.416.056 0 .14 0 .252.028Zm-.168-.584c-.112 0-.223-.028-.307-.028 0-.027 0-.055-.028-.055.14 0 .223.028.335.083Zm-1.089.222c0-.027 0-.027 0 0ZM39.453 1.333c.028-.11-.558-.61-.363-.639.42-.027.42-.666 0-.666-.558.028-1.144.166-1.675.25-.977.194-1.982.389-2.96.61-2.205.473-4.383.973-6.561 1.557-.67.194-1.424.333-2.066.666-.224.111-.196.333-.084.472-.056.028-.084.028-.14.056-.195.028-.363.056-.558.083-.168.028-.252.167-.224.334 0 .027.028.083.028.11-1.173 1.556-2.485 3.195-3.909 4.945-1.396 1.611-2.876 3.306-4.356 5.056-4.719 5.5-10.052 11.75-15.943 17.25a.268.268 0 0 0 0 .389c.028.027.056.055.084.055-.084.084-.168.14-.252.222-.056.056-.084.111-.084.167a.605.605 0 0 0-.111.139c-.112.111-.112.305.028.389.111.11.307.11.39-.028.029-.028.029-.056.056-.056a.44.44 0 0 1 .615 0c.335.362.67.723.977 1.028l-.698-.583c-.112-.111-.307-.083-.39.028-.113.11-.085.305.027.389l7.427 6.194c.056.056.112.056.196.056s.14-.028.195-.084l.168-.166c.028.027.083.027.111.027.084 0 .14-.027.196-.083 10.052-10.055 18.15-17.639 27.42-24.417.083-.055.111-.166.111-.25.112 0 .196-.083.251-.194 1.704-5.194 2.039-9.806 2.15-12.083v-.028c0-.028.028-.056.028-.083.028-.056.028-.084.028-.084a1.626 1.626 0 0 0-.111-1.028ZM21.472 9.5c.446-.5.893-1.028 1.34-1.5-2.876 3.778-7.65 9.583-14.408 16.5 4.607-5.083 9.242-10.333 13.068-15ZM5.193 35.778h.084-.084Zm3.462 3.194c-.027-.028-.027-.028 0-.028v.028Zm4.16-3.583c.224-.25.448-.472.699-.722 0 0 0 .027.028.027-.252.223-.475.445-.726.695Zm1.146-1.111c.14-.14.279-.334.446-.5l.028-.028c1.648-1.694 3.351-3.389 5.082-5.111l.028-.028c.419-.333.921-.694 1.368-1.028a379.003 379.003 0 0 0-6.952 6.695ZM24.794 6.472c-.921 1.195-1.954 2.778-2.82 4.028-2.736 3.944-11.532 13.583-11.727 13.75a1976.983 1976.983 0 0 1-8.042 7.639l-.167.167c-.14-.167-.14-.417.028-.556C14.49 19.861 22.03 10.167 25.074 5.917c-.084.194-.14.36-.28.555Zm4.83 5.695c-1.116-.64-1.646-1.64-1.34-2.611l.084-.334c.028-.083.084-.194.14-.277.307-.5.754-.917 1.257-1.167.027 0 .055 0 .083-.028-.028-.056-.028-.139-.028-.222.028-.167.14-.278.335-.278.335 0 1.369.306 1.76.639.111.083.223.194.335.305.14.167.363.445.474.667.056.028.112.306.196.445.056.222.111.472.084.694-.028.028 0 .194-.028.194a2.668 2.668 0 0 1-.363 1.028c-.028.028-.028.056-.056.084l-.028.027c-.14.223-.335.417-.53.556-.643.444-1.369.583-2.095.389 0 0-.195-.084-.28-.111Zm8.154-.834a39.098 39.098 0 0 1-.893 3.167c0 .028-.028.083 0 .111-.056 0-.084.028-.14.056-2.206 1.61-4.356 3.305-6.506 5.028 1.843-1.64 3.686-3.306 5.613-4.945.558-.5.949-1.139 1.06-1.861l.28-1.667v-.055c.14-.334.67-.195.586.166Z",fill:"currentColor"})}),{width:40,height:40,fill:"none"}),u((0,n.jsxs)("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M6 6l4.153 11.793a0.365 .365 0 0 0 .331 .207a0.366 .366 0 0 0 .332 -.207l2.184 -4.793l4.787 -1.994a0.355 .355 0 0 0 .213 -.323a0.355 .355 0 0 0 -.213 -.323l-11.787 -4.36z"}),(0,n.jsx)("path",{d:"M13.5 13.5l4.5 4.5"})]}),{fill:"none",width:22,height:22,strokeWidth:1.25})),O=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"})]}),U),s=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M10.5 20.4l-6.9 -6.9c-.781 -.781 -.781 -2.219 0 -3l6.9 -6.9c.781 -.781 2.219 -.781 3 0l6.9 6.9c.781 .781 .781 2.219 0 3l-6.9 6.9c-.781 .781 -2.219 .781 -3 0z"})]}),U),f=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("circle",{cx:"12",cy:"12",r:"9"})]}),U),t=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),(0,n.jsx)("line",{x1:"15",y1:"16",x2:"19",y2:"12"}),(0,n.jsx)("line",{x1:"15",y1:"8",x2:"19",y2:"12"})]}),U),w=u((0,n.jsx)("path",{d:"M4.167 10h11.666",strokeWidth:"1.5"}),le),l=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M20 17v-12c0 -1.121 -.879 -2 -2 -2s-2 .879 -2 2v12l2 2l2 -2z"}),(0,n.jsx)("path",{d:"M16 7h4"}),(0,n.jsx)("path",{d:"M18 19h-13a2 2 0 1 1 0 -4h4a2 2 0 1 0 0 -4h-3"})]}),U),a=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{clipRule:"evenodd",d:"m7.643 15.69 7.774-7.773a2.357 2.357 0 1 0-3.334-3.334L4.31 12.357a3.333 3.333 0 0 0-.977 2.357v1.953h1.953c.884 0 1.732-.352 2.357-.977Z"}),(0,n.jsx)("path",{d:"m11.25 5.417 3.333 3.333"})]}),le),c=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"4",y1:"20",x2:"7",y2:"20"}),(0,n.jsx)("line",{x1:"14",y1:"20",x2:"21",y2:"20"}),(0,n.jsx)("line",{x1:"6.9",y1:"15",x2:"13.8",y2:"15"}),(0,n.jsx)("line",{x1:"10.2",y1:"6.3",x2:"16",y2:"20"}),(0,n.jsx)("polyline",{points:"5 20 11 4 13 4 20 20"})]}),U),m=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M12.5 6.667h.01"}),(0,n.jsx)("path",{d:"M4.91 2.625h10.18a2.284 2.284 0 0 1 2.285 2.284v10.182a2.284 2.284 0 0 1-2.284 2.284H4.909a2.284 2.284 0 0 1-2.284-2.284V4.909a2.284 2.284 0 0 1 2.284-2.284Z"}),(0,n.jsx)("path",{d:"m3.333 12.5 3.334-3.333c.773-.745 1.726-.745 2.5 0l4.166 4.166"}),(0,n.jsx)("path",{d:"m11.667 11.667.833-.834c.774-.744 1.726-.744 2.5 0l1.667 1.667"})]}),le),z=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3"}),(0,n.jsx)("path",{d:"M18 13.3l-6.3 -6.3"})]}),U),j=u((0,n.jsx)("path",{strokeWidth:"1.25",d:"M10 4.167v11.666M4.167 10h11.666"}),le),k=u((0,n.jsx)("path",{d:"M5 10h10",strokeWidth:"1.25"}),le),x=u((0,n.jsx)("path",{strokeWidth:"1.25",d:"M3.333 5.833h13.334M8.333 9.167v5M11.667 9.167v5M4.167 5.833l.833 10c0 .92.746 1.667 1.667 1.667h6.666c.92 0 1.667-.746 1.667-1.667l.833-10M7.5 5.833v-2.5c0-.46.373-.833.833-.833h3.334c.46 0 .833.373.833.833v2.5"}),le),N=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("polyline",{points:"12 16 18 10 12 4"}),(0,n.jsx)("polyline",{points:"8 4 2 10 8 16"})]}),le),G=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M14.375 6.458H8.958a2.5 2.5 0 0 0-2.5 2.5v5.417a2.5 2.5 0 0 0 2.5 2.5h5.417a2.5 2.5 0 0 0 2.5-2.5V8.958a2.5 2.5 0 0 0-2.5-2.5Z"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M11.667 3.125c.517 0 .986.21 1.325.55.34.338.55.807.55 1.325v1.458H8.333c-.485 0-.927.185-1.26.487-.343.312-.57.75-.609 1.24l-.005 5.357H5a1.87 1.87 0 0 1-1.326-.55 1.87 1.87 0 0 1-.549-1.325V5c0-.518.21-.987.55-1.326.338-.34.807-.549 1.325-.549h6.667Z"})]}),le),ie=u((0,n.jsx)("path",{clipRule:"evenodd",d:"M10 2.5h.328a6.25 6.25 0 0 0 6.6 10.372A7.5 7.5 0 1 1 10 2.493V2.5Z",stroke:"currentColor"}),le),V=u((0,n.jsx)("g",{stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("path",{d:"M10 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM10 4.167V2.5M14.167 5.833l1.166-1.166M15.833 10H17.5M14.167 14.167l1.166 1.166M10 15.833V17.5M5.833 14.167l-1.166 1.166M5 10H3.333M5.833 5.833 4.667 4.667"})}),le),ce=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"4",y1:"6",x2:"20",y2:"6"}),(0,n.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12"}),(0,n.jsx)("line",{x1:"4",y1:"18",x2:"20",y2:"18"})]}),U),te=u((0,n.jsx)("path",{strokeWidth:"1.25",d:"M3.333 14.167v1.666c0 .92.747 1.667 1.667 1.667h10c.92 0 1.667-.746 1.667-1.667v-1.666M5.833 9.167 10 13.333l4.167-4.166M10 3.333v10"}),le),L=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,n.jsx)("line",{x1:"12",y1:"17",x2:"12",y2:"17.01"}),(0,n.jsx)("path",{d:"M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4"})]}),U),re=u((0,n.jsx)("path",{strokeWidth:"1.25",d:"M9.167 5.833H5.833c-1.254 0-2.5 1.282-2.5 2.5v5.834c0 1.283 1.252 2.5 2.5 2.5h5.834c1.251 0 2.5-1.25 2.5-2.5v-3.334M8.333 11.667l8.334-8.334M12.5 3.333h4.167V7.5"}),le),me=u((0,n.jsx)("path",{d:"M7.5 15.833c-3.583 1.167-3.583-2.083-5-2.5m10 4.167v-2.917c0-.833.083-1.166-.417-1.666 2.334-.25 4.584-1.167 4.584-5a3.833 3.833 0 0 0-1.084-2.667 3.5 3.5 0 0 0-.083-2.667s-.917-.25-2.917 1.084a10.25 10.25 0 0 0-5.166 0C5.417 2.333 4.5 2.583 4.5 2.583a3.5 3.5 0 0 0-.083 2.667 3.833 3.833 0 0 0-1.084 2.667c0 3.833 2.25 4.75 4.584 5-.5.5-.5 1-.417 1.666V17.5",strokeWidth:"1.25"}),le),Ce=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M7.5 10.833a.833.833 0 1 0 0-1.666.833.833 0 0 0 0 1.666ZM12.5 10.833a.833.833 0 1 0 0-1.666.833.833 0 0 0 0 1.666ZM6.25 6.25c2.917-.833 4.583-.833 7.5 0M5.833 13.75c2.917.833 5.417.833 8.334 0"}),(0,n.jsx)("path",{d:"M12.917 14.167c0 .833 1.25 2.5 1.666 2.5 1.25 0 2.361-1.39 2.917-2.5.556-1.39.417-4.861-1.25-9.584-1.214-.846-2.5-1.116-3.75-1.25l-.833 2.084M7.083 14.167c0 .833-1.13 2.5-1.526 2.5-1.191 0-2.249-1.39-2.778-2.5-.529-1.39-.397-4.861 1.19-9.584 1.157-.846 2.318-1.116 3.531-1.25l.833 2.084"})]}),le),We=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c-.002 -.249 1.51 -2.772 1.818 -4.013z"})]}),U),Te=u((0,n.jsx)("polyline",{fill:"none",stroke:"currentColor",points:"20 6 9 17 4 12"}),{width:24,height:24}),we=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M8.333 11.667a2.917 2.917 0 0 0 4.167 0l3.333-3.334a2.946 2.946 0 1 0-4.166-4.166l-.417.416"}),(0,n.jsx)("path",{d:"M11.667 8.333a2.917 2.917 0 0 0-4.167 0l-3.333 3.334a2.946 2.946 0 0 0 4.166 4.166l.417-.416"})]}),le),xe=u("M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z",{width:448,height:512}),_e=u("M252 54L203 8a28 27 0 00-20-8H28C12 0 0 12 0 27v195c0 15 12 26 28 26h204c15 0 28-11 28-26V73a28 27 0 00-8-19zM130 213c-21 0-37-16-37-36 0-19 16-35 37-35 20 0 37 16 37 35 0 20-17 36-37 36zm56-169v56c0 4-4 6-7 6H44c-4 0-7-2-7-6V42c0-4 3-7 7-7h133l4 2 3 2a7 7 0 012 5z M296 201l87 95-188 205-78 9c-10 1-19-8-18-20l9-84zm141-14l-41-44a31 31 0 00-46 0l-38 41 87 95 38-42c13-14 13-36 0-50z",{width:448,height:512}),Oe=u((0,n.jsx)("path",{d:"m9.257 6.351.183.183H15.819c.34 0 .727.182 1.051.506.323.323.505.708.505 1.05v5.819c0 .316-.183.7-.52 1.035-.337.338-.723.522-1.037.522H4.182c-.352 0-.74-.181-1.058-.5-.318-.318-.499-.705-.499-1.057V5.182c0-.351.181-.736.5-1.054.32-.321.71-.503 1.057-.503H6.53l2.726 2.726Z",strokeWidth:"1.25"}),le),J=(u("M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z",{width:384,height:512}),u("M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z")),ke=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M15 8h.01"}),(0,n.jsx)("path",{d:"M12 20h-5a3 3 0 0 1 -3 -3v-10a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v5"}),(0,n.jsx)("path",{d:"M4 15l4 -4c.928 -.893 2.072 -.893 3 0l4 4"}),(0,n.jsx)("path",{d:"M14 14l1 -1c.617 -.593 1.328 -.793 2.009 -.598"}),(0,n.jsx)("path",{d:"M19 16v6"}),(0,n.jsx)("path",{d:"M22 19l-3 3l-3 -3"})]}),U),q=u("M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z",{width:512,height:512}),o=(u("M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z",{width:448,height:512}),u("M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z",{width:448,height:512}),u("M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z")),i=(u("M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"),u((0,n.jsx)("path",{d:"M7.5 10.833 4.167 7.5 7.5 4.167M4.167 7.5h9.166a3.333 3.333 0 0 1 0 6.667H12.5",strokeWidth:"1.25"}),le)),p=u((0,n.jsx)("path",{d:"M12.5 10.833 15.833 7.5 12.5 4.167M15.833 7.5H6.667a3.333 3.333 0 1 0 0 6.667H7.5",strokeWidth:"1.25"}),le),B=u("M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z",{mirror:!0}),A=(u((0,n.jsx)("path",{d:"M5 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM15 7.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM15 17.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM7.25 8.917l5.5-2.834M7.25 11.083l5.5 2.834",strokeWidth:"1.5"}),le),u("M16 5l-1.42 1.42-1.59-1.59V16h-1.98V4.83L9.42 6.42 8 5l4-4 4 4zm4 5v11c0 1.1-.9 2-2 2H6c-1.11 0-2-.9-2-2V10c0-1.11.89-2 2-2h3v2H6v11h12V10h-3V8h3c1.1 0 2 .89 2 2z",{width:24,height:24}),u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{fill:"currentColor",d:"M40 5.6v6.1l-4.1.7c-8.9 1.4-16.5 6.9-20.6 15C13 32 10.9 43 12.4 43c.4 0 2.4-1.3 4.4-3 5-3.9 12.1-7 18.2-7.7l5-.6v12.8l11.2-11.3L62.5 22 51.2 10.8 40-.5v6.1zm10.2 22.6L44 34.5v-6.8l-6.9.6c-3.9.3-9.8 1.7-13.2 3.1-3.5 1.4-6.5 2.4-6.7 2.2-.9-1 3-7.5 6.4-10.8C28 18.6 34.4 16 40.1 16c3.7 0 3.9-.1 3.9-3.2V9.5l6.2 6.3 6.3 6.2-6.3 6.2z"}),(0,n.jsx)("path",{stroke:"currentColor",fill:"currentColor",d:"M0 36v20h48v-6.2c0-6 0-6.1-2-4.3-1.1 1-2 2.9-2 4.2V52H4V34c0-17.3-.1-18-2-18s-2 .7-2 20z"})]}),{width:64,height:64}),u((0,n.jsx)("path",{stroke:"currentColor",strokeWidth:"40",fill:"currentColor",d:"M148 560a318 318 0 0 0 522 110 316 316 0 0 0 0-450 316 316 0 0 0-450 0c-11 11-21 22-30 34v4h47c25 0 46 21 46 46s-21 45-46 45H90c-13 0-25-6-33-14-9-9-14-20-14-33V156c0-25 20-45 45-45s45 20 45 45v32l1 1a401 401 0 0 1 623 509l212 212a42 42 0 0 1-59 59L698 757A401 401 0 0 1 65 570a42 42 0 0 1 83-10z"}),{width:1024}),u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{d:"M13.889 4.167H8.333c-.767 0-1.389.622-1.389 1.389v5.555c0 .767.622 1.389 1.39 1.389h5.555c.767 0 1.389-.622 1.389-1.389V5.556c0-.767-.622-1.39-1.39-1.39Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M12.5 12.5v1.389a1.389 1.389 0 0 1-1.389 1.389H5.556a1.389 1.389 0 0 1-1.39-1.39V8.334a1.389 1.389 0 0 1 1.39-1.389h1.388"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le)),X=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.944 12.5H12.5v1.389a1.389 1.389 0 0 1-1.389 1.389H5.556a1.389 1.389 0 0 1-1.39-1.39V8.334a1.389 1.389 0 0 1 1.39-1.389h1.388",fill:"currentColor"}),(0,n.jsx)("path",{d:"M13.889 4.167H8.333c-.767 0-1.389.621-1.389 1.389v5.555c0 .767.622 1.389 1.39 1.389h5.555c.767 0 1.389-.622 1.389-1.389V5.556c0-.768-.622-1.39-1.39-1.39Z"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),Y=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M8.775 6.458h2.45a2.316 2.316 0 0 1 2.317 2.316v2.452a2.316 2.316 0 0 1-2.316 2.316H8.774a2.316 2.316 0 0 1-2.317-2.316V8.774a2.316 2.316 0 0 1 2.317-2.316Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M5.441 9.792h2.451a2.316 2.316 0 0 1 2.316 2.316v2.45a2.316 2.316 0 0 1-2.316 2.317h-2.45a2.316 2.316 0 0 1-2.317-2.316v-2.451a2.316 2.316 0 0 1 2.316-2.316ZM12.108 3.125h2.45a2.316 2.316 0 0 1 2.317 2.316v2.451a2.316 2.316 0 0 1-2.316 2.316h-2.451a2.316 2.316 0 0 1-2.316-2.316v-2.45a2.316 2.316 0 0 1 2.316-2.317Z"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),ee=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",children:[(0,n.jsx)("path",{d:"M5.441 9.792h2.451a2.316 2.316 0 0 1 2.316 2.316v2.45a2.316 2.316 0 0 1-2.316 2.317h-2.45a2.316 2.316 0 0 1-2.317-2.316v-2.451a2.316 2.316 0 0 1 2.316-2.316Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,n.jsx)("path",{d:"M5.441 9.792h2.451a2.316 2.316 0 0 1 2.316 2.316v2.45a2.316 2.316 0 0 1-2.316 2.317h-2.45a2.316 2.316 0 0 1-2.317-2.316v-2.451a2.316 2.316 0 0 1 2.316-2.316Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,n.jsx)("mask",{id:"SendToBackIcon",fill:"#fff",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.167 5.833v2.06a2.941 2.941 0 0 0 2.94 2.94h2.06v.393a2.941 2.941 0 0 1-2.941 2.94h-.393v-2.058a2.941 2.941 0 0 0-2.94-2.941h-2.06v-.393a2.941 2.941 0 0 1 2.942-2.94h.392Z"})}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.167 5.833v2.06a2.941 2.941 0 0 0 2.94 2.94h2.06v.393a2.941 2.941 0 0 1-2.941 2.94h-.393v-2.058a2.941 2.941 0 0 0-2.94-2.941h-2.06v-.393a2.941 2.941 0 0 1 2.942-2.94h.392Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M9.167 5.833h1.25v-1.25h-1.25v1.25Zm5 5h1.25v-1.25h-1.25v1.25Zm-3.334 3.334h-1.25v1.25h1.25v-1.25Zm-5-5h-1.25v1.25h1.25v-1.25Zm2.084-3.334v2.06h2.5v-2.06h-2.5Zm0 2.06a4.191 4.191 0 0 0 4.19 4.19v-2.5a1.691 1.691 0 0 1-1.69-1.69h-2.5Zm4.19 4.19h2.06v-2.5h-2.06v2.5Zm.81-1.25v.393h2.5v-.393h-2.5Zm0 .393c0 .933-.758 1.69-1.691 1.69v2.5a4.191 4.191 0 0 0 4.19-4.19h-2.5Zm-1.691 1.69h-.393v2.5h.393v-2.5Zm.857 1.25v-2.058h-2.5v2.059h2.5Zm0-2.058a4.191 4.191 0 0 0-4.19-4.191v2.5c.933 0 1.69.757 1.69 1.69h2.5Zm-4.19-4.191h-2.06v2.5h2.06v-2.5Zm-.81 1.25v-.393h-2.5v.393h2.5Zm0-.393c0-.934.758-1.69 1.692-1.69v-2.5a4.191 4.191 0 0 0-4.192 4.19h2.5Zm1.692-1.69h.392v-2.5h-.392v2.5Z",fill:"currentColor",mask:"url(#SendToBackIcon)"}),(0,n.jsx)("path",{d:"M12.108 3.125h2.45a2.316 2.316 0 0 1 2.317 2.316v2.451a2.316 2.316 0 0 1-2.316 2.316h-2.451a2.316 2.316 0 0 1-2.316-2.316v-2.45a2.316 2.316 0 0 1 2.316-2.317Z",stroke:"currentColor",strokeWidth:"1.25"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),ge=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M3.333 3.333h13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M13.542 6.458h-.417c-.92 0-1.667.747-1.667 1.667v7.083c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667V8.125c0-.92-.746-1.667-1.666-1.667ZM6.875 6.458h-.417c-.92 0-1.666.747-1.666 1.667v3.75c0 .92.746 1.667 1.666 1.667h.417c.92 0 1.667-.746 1.667-1.667v-3.75c0-.92-.747-1.667-1.667-1.667Z"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),be=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M3.333 16.667h13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M6.875 3.125h-.417c-.92 0-1.666.746-1.666 1.667v7.083c0 .92.746 1.667 1.666 1.667h.417c.92 0 1.667-.746 1.667-1.667V4.792c0-.92-.747-1.667-1.667-1.667ZM13.542 5.817h-.417c-.92 0-1.667.747-1.667 1.667v4.391c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667V7.484c0-.92-.746-1.667-1.666-1.667Z"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),Re=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M3.333 3.333v13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M15.208 4.792H8.125c-.92 0-1.667.746-1.667 1.666v.417c0 .92.747 1.667 1.667 1.667h7.083c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666ZM12.516 11.458H8.125c-.92 0-1.667.746-1.667 1.667v.417c0 .92.747 1.666 1.667 1.666h4.391c.92 0 1.667-.746 1.667-1.666v-.417c0-.92-.746-1.667-1.667-1.667Z"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),Ze=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M16.667 3.333v13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M11.875 4.792H4.792c-.92 0-1.667.746-1.667 1.666v.417c0 .92.746 1.667 1.667 1.667h7.083c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666ZM11.683 11.458H7.292c-.92 0-1.667.746-1.667 1.667v.417c0 .92.746 1.666 1.667 1.666h4.39c.921 0 1.667-.746 1.667-1.666v-.417c0-.92-.746-1.667-1.666-1.667Z"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),Be=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M16.667 3.333v13.334M3.333 3.333v13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M14.375 10.208v-.416c0-.92-.746-1.667-1.667-1.667H7.292c-.92 0-1.667.746-1.667 1.667v.416c0 .92.746 1.667 1.667 1.667h5.416c.92 0 1.667-.746 1.667-1.667Z"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),Ie=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M3.333 3.333h13.334M3.333 16.667h13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M10.208 5.625h-.416c-.92 0-1.667.746-1.667 1.667v5.416c0 .92.746 1.667 1.667 1.667h.416c.92 0 1.667-.746 1.667-1.667V7.292c0-.92-.746-1.667-1.667-1.667Z"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),Ke=u((0,n.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M1.667 10h2.916",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M8.333 10h3.334",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M15.417 10h2.916",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M6.875 4.792h-.417c-.92 0-1.666.746-1.666 1.666v7.084c0 .92.746 1.666 1.666 1.666h.417c.92 0 1.667-.746 1.667-1.666V6.458c0-.92-.747-1.666-1.667-1.666ZM13.542 6.458h-.417c-.92 0-1.667.747-1.667 1.667v3.75c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667v-3.75c0-.92-.746-1.667-1.666-1.667Z"})]}),le),Ye=u((0,n.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M10 18.333v-2.916",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M10 11.667V8.333",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M10 4.583V1.667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M4.792 13.125v.417c0 .92.746 1.666 1.666 1.666h7.084c.92 0 1.666-.746 1.666-1.666v-.417c0-.92-.746-1.667-1.666-1.667H6.458c-.92 0-1.666.746-1.666 1.667ZM6.458 6.458v.417c0 .92.747 1.667 1.667 1.667h3.75c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666h-3.75c-.92 0-1.667.746-1.667 1.666Z"})]}),le),tt=u((0,n.jsxs)("g",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("circle",{cx:"9",cy:"7",r:"4"}),(0,n.jsx)("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),(0,n.jsx)("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),(0,n.jsx)("path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"})]}),U),ue=(u("M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z"),u("M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm96 328c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16v160z"),u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("path",{d:"M15 5 5 15M5 5l10 10"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le)),ve=u("M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z",{width:320,height:512,style:{marginLeft:"-0.2rem"},mirror:!0}),De=(u("M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z",{mirror:!0}),u("M11.553 22.894a.998.998 0 00.894 0s3.037-1.516 5.465-4.097C19.616 16.987 21 14.663 21 12V5a1 1 0 00-.649-.936l-8-3a.998.998 0 00-.702 0l-8 3A1 1 0 003 5v7c0 2.663 1.384 4.987 3.088 6.797 2.428 2.581 5.465 4.097 5.465 4.097zm-1.303-8.481l6.644-6.644a.856.856 0 111.212 1.212l-7.25 7.25a.856.856 0 01-1.212 0l-3.75-3.75a.856.856 0 111.212-1.212l3.144 3.144z",{width:24}),u("M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm32-48h224V288l-23.5-23.5c-4.7-4.7-12.3-4.7-17 0L176 352l-39.5-39.5c-4.7-4.7-12.3-4.7-17 0L80 352v64zm48-240c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z",{width:384,height:512}),h().memo(function(or){var lr=or.theme;return u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M25 26H111V111H25",fill:"var(--icon-fill-color)"}),(0,n.jsx)("path",{d:"M25 111C25 80.2068 25 49.4135 25 26M25 26C48.6174 26 72.2348 26 111 26H25ZM25 26C53.3671 26 81.7343 26 111 26H25ZM111 26C111 52.303 111 78.606 111 111V26ZM111 26C111 51.2947 111 76.5893 111 111V26ZM111 111C87.0792 111 63.1585 111 25 111H111ZM111 111C87.4646 111 63.9293 111 25 111H111ZM25 111C25 81.1514 25 51.3028 25 26V111Z",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,n.jsx)("path",{d:"M100 100H160V160H100",fill:"var(--icon-fill-color)"}),(0,n.jsx)("path",{d:"M100 160C100 144.106 100 128.211 100 100M100 100C117.706 100 135.412 100 160 100H100ZM100 100C114.214 100 128.428 100 160 100H100ZM160 100C160 120.184 160 140.369 160 160V100ZM160 100C160 113.219 160 126.437 160 160V100ZM160 160C145.534 160 131.068 160 100 160H160ZM160 160C143.467 160 126.934 160 100 160H160ZM100 160C100 143.661 100 127.321 100 100V160Z",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,n.jsxs)("g",{fill:W(lr),stroke:"var(--icon-fill-color)",strokeWidth:"6",children:[(0,n.jsx)("rect",{x:"2.5",y:"2.5",width:"30",height:"30"}),(0,n.jsx)("rect",{x:"2.5",y:"149.5",width:"30",height:"30"}),(0,n.jsx)("rect",{x:"147.5",y:"149.5",width:"30",height:"30"}),(0,n.jsx)("rect",{x:"147.5",y:"2.5",width:"30",height:"30"})]})]}),{width:182,height:182,mirror:!0})})),He=h().memo(function(or){var lr=or.theme;return u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M25 26H111V111H25",fill:"var(--icon-fill-color)"}),(0,n.jsx)("path",{d:"M25 111C25 80.2068 25 49.4135 25 26M25 26C48.6174 26 72.2348 26 111 26H25ZM25 26C53.3671 26 81.7343 26 111 26H25ZM111 26C111 52.303 111 78.606 111 111V26ZM111 26C111 51.2947 111 76.5893 111 111V26ZM111 111C87.0792 111 63.1585 111 25 111H111ZM111 111C87.4646 111 63.9293 111 25 111H111ZM25 111C25 81.1514 25 51.3028 25 26V111Z",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,n.jsx)("path",{d:"M100 100H160V160H100",fill:"var(--icon-fill-color)"}),(0,n.jsx)("path",{d:"M100 160C100 144.106 100 128.211 100 100M100 100C117.706 100 135.412 100 160 100H100ZM100 100C114.214 100 128.428 100 160 100H100ZM160 100C160 120.184 160 140.369 160 160V100ZM160 100C160 113.219 160 126.437 160 160V100ZM160 160C145.534 160 131.068 160 100 160H160ZM160 160C143.467 160 126.934 160 100 160H160ZM100 160C100 143.661 100 127.321 100 100V160Z",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,n.jsxs)("g",{fill:W(lr),stroke:"var(--icon-fill-color)",strokeWidth:"6",children:[(0,n.jsx)("rect",{x:"2.5",y:"2.5",width:"30",height:"30"}),(0,n.jsx)("rect",{x:"78.5",y:"149.5",width:"30",height:"30"}),(0,n.jsx)("rect",{x:"147.5",y:"149.5",width:"30",height:"30"}),(0,n.jsx)("rect",{x:"147.5",y:"78.5",width:"30",height:"30"}),(0,n.jsx)("rect",{x:"105.5",y:"2.5",width:"30",height:"30"}),(0,n.jsx)("rect",{x:"2.5",y:"102.5",width:"30",height:"30"})]})]}),{width:182,height:182,mirror:!0})}),Je=u((0,n.jsx)("g",{strokeWidth:1.25,children:(0,n.jsx)("path",{d:"M5.879 2.625h8.242a3.27 3.27 0 0 1 3.254 3.254v8.242a3.27 3.27 0 0 1-3.254 3.254H5.88a3.27 3.27 0 0 1-3.254-3.254V5.88A3.27 3.27 0 0 1 5.88 2.626l-.001-.001ZM4.518 16.118l7.608-12.83m.198 13.934 5.051-9.897M2.778 9.675l9.348-6.387m-7.608 12.83 12.857-8.793"})}),le),qe=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,n.jsx)("mask",{id:"FillHachureIcon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:2,y:2,width:16,height:16,children:(0,n.jsx)("path",{d:"M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.25"})}),(0,n.jsx)("g",{mask:"url(#FillHachureIcon)",children:(0,n.jsx)("path",{d:"M2.258 15.156 15.156 2.258M7.324 20.222 20.222 7.325m-20.444 5.35L12.675-.222m-8.157 18.34L17.416 5.22",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})})]}),le),st=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("g",{clipPath:"url(#a)",children:[(0,n.jsx)("path",{d:"M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,n.jsx)("mask",{id:"FillCrossHatchIcon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:-1,y:-1,width:22,height:22,children:(0,n.jsx)("path",{d:"M2.426 15.044 15.044 2.426M7.383 20 20 7.383M0 12.617 12.617 0m-7.98 17.941L17.256 5.324m-2.211 12.25L2.426 4.956M20 12.617 7.383 0m5.234 20L0 7.383m17.941 7.98L5.324 2.745",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,n.jsx)("g",{mask:"url(#FillCrossHatchIcon)",children:(0,n.jsx)("path",{d:"M14.121 2H5.88A3.879 3.879 0 0 0 2 5.879v8.242A3.879 3.879 0 0 0 5.879 18h8.242A3.879 3.879 0 0 0 18 14.121V5.88A3.879 3.879 0 0 0 14.121 2Z",fill:"currentColor"})})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),ht=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("g",{clipPath:"url(#a)",children:(0,n.jsx)("path",{d:"M4.91 2.625h10.18a2.284 2.284 0 0 1 2.285 2.284v10.182a2.284 2.284 0 0 1-2.284 2.284H4.909a2.284 2.284 0 0 1-2.284-2.284V4.909a2.284 2.284 0 0 1 2.284-2.284Z",stroke:"currentColor",strokeWidth:"1.25"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),H(H({},le),{},{fill:"currentColor"})),et=u((0,n.jsx)(n.Fragment,{children:(0,n.jsx)("path",{d:"M4.167 10h11.666",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),le),wt=u((0,n.jsx)("path",{d:"M5 10h10",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),le),Lt=u((0,n.jsx)("path",{d:"M5 10h10",stroke:"currentColor",strokeWidth:"3.75",strokeLinecap:"round",strokeLinejoin:"round"}),le),St=u((0,n.jsxs)("g",{strokeWidth:"2",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M5 12h2"}),(0,n.jsx)("path",{d:"M17 12h2"}),(0,n.jsx)("path",{d:"M11 12h2"})]}),U),yt=u((0,n.jsxs)("g",{strokeWidth:"2",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M4 12v.01"}),(0,n.jsx)("path",{d:"M8 12v.01"}),(0,n.jsx)("path",{d:"M12 12v.01"}),(0,n.jsx)("path",{d:"M16 12v.01"}),(0,n.jsx)("path",{d:"M20 12v.01"})]}),U),Wt=u((0,n.jsx)("path",{d:"M2.5 12.038c1.655-.885 5.9-3.292 8.568-4.354 2.668-1.063.101 2.821 1.32 3.104 1.218.283 5.112-1.814 5.112-1.814",strokeWidth:"1.25"}),le),Ft=u((0,n.jsx)("path",{d:"M2.5 12.563c1.655-.886 5.9-3.293 8.568-4.355 2.668-1.062.101 2.822 1.32 3.105 1.218.283 5.112-1.814 5.112-1.814m-13.469 2.23c2.963-1.586 6.13-5.62 7.468-4.998 1.338.623-1.153 4.11-.132 5.595 1.02 1.487 6.133-1.43 6.133-1.43",strokeWidth:"1.25"}),le),Ve=u((0,n.jsx)("path",{d:"M2.5 11.936c1.737-.879 8.627-5.346 10.42-5.268 1.795.078-.418 5.138.345 5.736.763.598 3.53-1.789 4.235-2.147M2.929 9.788c1.164-.519 5.47-3.28 6.987-3.114 1.519.165 1 3.827 2.121 4.109 1.122.281 3.839-2.016 4.606-2.42",strokeWidth:"1.25"}),le),bt=u((0,n.jsxs)("svg",{strokeWidth:"1.5",children:[(0,n.jsx)("path",{d:"M3.33334 9.99998V6.66665C3.33334 6.04326 3.33403 4.9332 3.33539 3.33646C4.95233 3.33436 6.06276 3.33331 6.66668 3.33331H10"}),(0,n.jsx)("path",{d:"M13.3333 3.33331V3.34331"}),(0,n.jsx)("path",{d:"M16.6667 3.33331V3.34331"}),(0,n.jsx)("path",{d:"M16.6667 6.66669V6.67669"}),(0,n.jsx)("path",{d:"M16.6667 10V10.01"}),(0,n.jsx)("path",{d:"M3.33334 13.3333V13.3433"}),(0,n.jsx)("path",{d:"M16.6667 13.3333V13.3433"}),(0,n.jsx)("path",{d:"M3.33334 16.6667V16.6767"}),(0,n.jsx)("path",{d:"M6.66666 16.6667V16.6767"}),(0,n.jsx)("path",{d:"M10 16.6667V16.6767"}),(0,n.jsx)("path",{d:"M13.3333 16.6667V16.6767"}),(0,n.jsx)("path",{d:"M16.6667 16.6667V16.6767"})]}),le),at=u((0,n.jsxs)("g",{strokeWidth:"1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M4 12v-4a4 4 0 0 1 4 -4h4"}),(0,n.jsx)("line",{x1:"16",y1:"4",x2:"16",y2:"4.01"}),(0,n.jsx)("line",{x1:"20",y1:"4",x2:"20",y2:"4.01"}),(0,n.jsx)("line",{x1:"20",y1:"8",x2:"20",y2:"8.01"}),(0,n.jsx)("line",{x1:"20",y1:"12",x2:"20",y2:"12.01"}),(0,n.jsx)("line",{x1:"4",y1:"16",x2:"4",y2:"16.01"}),(0,n.jsx)("line",{x1:"20",y1:"16",x2:"20",y2:"16.01"}),(0,n.jsx)("line",{x1:"4",y1:"20",x2:"4",y2:"20.01"}),(0,n.jsx)("line",{x1:"8",y1:"20",x2:"8",y2:"20.01"}),(0,n.jsx)("line",{x1:"12",y1:"20",x2:"12",y2:"20.01"}),(0,n.jsx)("line",{x1:"16",y1:"20",x2:"16",y2:"20.01"}),(0,n.jsx)("line",{x1:"20",y1:"20",x2:"20",y2:"20.01"})]}),U),mt=u((0,n.jsx)("path",{d:"M6 10H34",stroke:"currentColor",strokeWidth:2,fill:"none"}),{width:40,height:20}),ut=h().memo(function(or){var lr=or.flip,gr=lr!==void 0&&lr;return u((0,n.jsxs)("g",{transform:gr?"translate(40, 0) scale(-1, 1)":"",stroke:"currentColor",strokeWidth:2,fill:"none",children:[(0,n.jsx)("path",{d:"M34 10H6M34 10L27 5M34 10L27 15"}),(0,n.jsx)("path",{d:"M27.5 5L34.5 10L27.5 15"})]}),{width:40,height:20})}),Ot=h().memo(function(or){var lr=or.flip,gr=lr!==void 0&&lr;return u((0,n.jsxs)("g",{stroke:"currentColor",fill:"currentColor",transform:gr?"translate(40, 0) scale(-1, 1)":"",children:[(0,n.jsx)("path",{d:"M32 10L6 10",strokeWidth:2}),(0,n.jsx)("circle",{r:"4",transform:"matrix(-1 0 0 1 30 10)"})]}),{width:40,height:20})}),Pt=h().memo(function(or){var lr=or.flip,gr=lr!==void 0&&lr;return u((0,n.jsx)("g",{transform:gr?"translate(40, 0) scale(-1, 1)":"",children:(0,n.jsx)("path",{d:"M34 10H5.99996M34 10L34 5M34 10L34 15",stroke:"currentColor",strokeWidth:2,fill:"none"})}),{width:40,height:20})}),Gt=h().memo(function(or){var lr=or.flip,gr=lr!==void 0&&lr;return u((0,n.jsxs)("g",{stroke:"currentColor",fill:"currentColor",transform:gr?"translate(40, 0) scale(-1, 1)":"",children:[(0,n.jsx)("path",{d:"M32 10L6 10",strokeWidth:2}),(0,n.jsx)("path",{d:"M27.5 5.5L34.5 10L27.5 14.5L27.5 5.5"})]}),{width:40,height:20})}),Ct=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("g",{clipPath:"url(#a)",children:(0,n.jsx)("path",{d:"M14.167 6.667a3.333 3.333 0 0 0-3.334-3.334H9.167a3.333 3.333 0 0 0 0 6.667h1.666a3.333 3.333 0 0 1 0 6.667H9.167a3.333 3.333 0 0 1-3.334-3.334",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),ur=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("g",{clipPath:"url(#a)",children:(0,n.jsx)("path",{d:"M5 16.667V3.333L10 15l5-11.667v13.334",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),rr=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("g",{clipPath:"url(#a)",children:(0,n.jsx)("path",{d:"M5.833 3.333v13.334h8.334",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),Tr=u((0,n.jsx)(n.Fragment,{children:(0,n.jsx)("path",{d:"m1.667 3.333 6.666 13.334M8.333 3.333 1.667 16.667M11.667 3.333v13.334h6.666",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),le),ot=u((0,n.jsx)(n.Fragment,{children:(0,n.jsx)("g",{stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("path",{d:"M5.833 16.667v-10a3.333 3.333 0 0 1 3.334-3.334h1.666a3.333 3.333 0 0 1 3.334 3.334v10M5.833 10.833h8.334"})})}),le),Rt=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("path",{d:"M5.833 6.667 2.5 10l3.333 3.333M14.167 6.667 17.5 10l-3.333 3.333M11.667 3.333 8.333 16.667"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"a",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),le),_t=u((0,n.jsxs)("g",{stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"4",y1:"8",x2:"20",y2:"8"}),(0,n.jsx)("line",{x1:"4",y1:"12",x2:"12",y2:"12"}),(0,n.jsx)("line",{x1:"4",y1:"16",x2:"16",y2:"16"})]}),U),At=u((0,n.jsxs)("g",{stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"4",y1:"8",x2:"20",y2:"8"}),(0,n.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12"}),(0,n.jsx)("line",{x1:"6",y1:"16",x2:"18",y2:"16"})]}),U),br=u((0,n.jsxs)("g",{stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"4",y1:"8",x2:"20",y2:"8"}),(0,n.jsx)("line",{x1:"10",y1:"12",x2:"20",y2:"12"}),(0,n.jsx)("line",{x1:"8",y1:"16",x2:"20",y2:"16"})]}),U),xr=h().memo(function(or){return or.theme,u((0,n.jsxs)("g",{strokeWidth:"1.5",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"4",y1:"4",x2:"20",y2:"4"}),(0,n.jsx)("rect",{x:"9",y:"8",width:"6",height:"12",rx:"2"})]}),U)}),jr=h().memo(function(or){return or.theme,u((0,n.jsxs)("g",{strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"20"}),(0,n.jsx)("rect",{x:"9",y:"4",width:"6",height:"12",rx:"2"})]}),U)}),Ar=h().memo(function(or){return or.theme,u((0,n.jsxs)("g",{strokeWidth:"1.5",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("line",{x1:"4",y1:"12",x2:"9",y2:"12"}),(0,n.jsx)("line",{x1:"15",y1:"12",x2:"20",y2:"12"}),(0,n.jsx)("rect",{x:"9",y:"6",width:"6",height:"12",rx:"2"})]}),U)}),fr=u((0,n.jsx)("path",{d:"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z",fill:"currentColor"}),{width:640,height:512}),dt=(u((0,n.jsx)("path",{d:"M480 416C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H150.6C133.7 480 117.4 473.3 105.4 461.3L25.37 381.3C.3786 356.3 .3786 315.7 25.37 290.7L258.7 57.37C283.7 32.38 324.3 32.38 349.3 57.37L486.6 194.7C511.6 219.7 511.6 260.3 486.6 285.3L355.9 416H480zM265.4 416L332.7 348.7L195.3 211.3L70.63 336L150.6 416L265.4 416z"})),u((0,n.jsxs)("g",{strokeWidth:1.25,children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),(0,n.jsx)("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),(0,n.jsx)("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),(0,n.jsx)("path",{d:"M17 7.5a1.5 1.5 0 0 1 3 0v8.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47"})]}),U)),ft=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"}),(0,n.jsx)("path",{d:"M7 11l5 5l5 -5"}),(0,n.jsx)("path",{d:"M12 4l0 12"})]}),U),vt=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M8 8m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z"}),(0,n.jsx)("path",{d:"M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"})]}),U),Et=u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),(0,n.jsx)("path",{d:"M12 17l0 .01"}),(0,n.jsx)("path",{d:"M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4"})]}),U),tr=(u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M7 4v16l13 -8z"})]}),U),u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M17 4h-10a3 3 0 0 0 -3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3 -3v-10a3 3 0 0 0 -3 -3z",strokeWidth:"0",fill:"currentColor"})]}),U),u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M5 12l5 5l10 -10"})]}),U),u((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M10.24 3.957l-8.422 14.06a1.989 1.989 0 0 0 1.7 2.983h16.845a1.989 1.989 0 0 0 1.7 -2.983l-8.423 -14.06a1.989 1.989 0 0 0 -3.4 0z"}),(0,n.jsx)("path",{d:"M12 9v4"}),(0,n.jsx)("path",{d:"M12 17h.01"})]}),U)),ir=u((0,n.jsxs)("g",{strokeWidth:1.25,children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M11 7l6 6"}),(0,n.jsx)("path",{d:"M4 16l11.7 -11.7a1 1 0 0 1 1.4 0l2.6 2.6a1 1 0 0 1 0 1.4l-11.7 11.7h-4v-4z"})]}),U),Qt=u((0,n.jsxs)("g",{strokeWidth:1.5,children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M12 3l-4 7h8z"}),(0,n.jsx)("path",{d:"M17 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),(0,n.jsx)("path",{d:"M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"})]}),U),_r=u((0,n.jsxs)("g",{strokeWidth:1.5,children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("path",{d:"M4 7l16 0"}),(0,n.jsx)("path",{d:"M4 17l16 0"}),(0,n.jsx)("path",{d:"M7 4l0 16"}),(0,n.jsx)("path",{d:"M17 4l0 16"})]}),U),sr=u((0,n.jsx)("path",{fill:"currentColor",d:"M407.48,111.18C335.587,108.103 269.573,152.338 245.08,220C220.587,152.338 154.573,108.103 82.68,111.18C80.285,168.229 107.577,222.632 154.74,254.82C178.908,271.419 193.35,298.951 193.27,328.27L193.27,379.13L296.9,379.13L296.9,328.27C296.816,298.953 311.255,271.42 335.42,254.82C382.596,222.644 409.892,168.233 407.48,111.18Z"})),mr=u((0,n.jsxs)("g",{strokeWidth:"1.25",children:[(0,n.jsx)("path",{d:"M4.16602 10H15.8327"}),(0,n.jsx)("path",{d:"M12.5 13.3333L15.8333 10"}),(0,n.jsx)("path",{d:"M12.5 6.66666L15.8333 9.99999"})]}),le),Zr=u((0,n.jsxs)("g",{fill:"none",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",transform:"rotate(90 10 10)",children:[(0,n.jsx)("path",{clipRule:"evenodd",d:"m9.644 13.69 7.774-7.773a2.357 2.357 0 0 0-3.334-3.334l-7.773 7.774L8 12l1.643 1.69Z"}),(0,n.jsx)("path",{d:"m13.25 3.417 3.333 3.333M10 10l2-2M5 15l3-3M2.156 17.894l1-1M5.453 19.029l-.144-1.407M2.377 11.887l.866 1.118M8.354 17.273l-1.194-.758M.953 14.652l1.408.13"})]}),20)},7021:function(Se,Q,e){e.d(Q,{Z:function(){return We}});var D={};e.r(D),e.d(D,{ChangeCanvasBackground:function(){return ie},ClearCanvas:function(){return N},Export:function(){return V},Help:function(){return x},LiveCollaborationTrigger:function(){return te},LoadScene:function(){return z},SaveAsImage:function(){return k},SaveToActiveFile:function(){return j},Socials:function(){return ce},ToggleTheme:function(){return G}});var E=e(8242),y=e(7104),h=e(8950),S=e(2975),I=e.n(S),v=e(2529),n=e(8227),M=e(8935),Z=e(5735),H=e(3858),W=e(5463),u=e(3379),U=e.n(u),le=e(7795),de=e.n(le),he=e(569),pe=e.n(he),oe=e(3565),P=e.n(oe),$=e(9216),b=e.n($),R=e(4589),_=e.n(R),g=e(4343),O={};O.styleTagTransform=_(),O.setAttributes=P(),O.insert=pe().bind(null,"head"),O.domAPI=de(),O.insertStyleElement=b(),U()(g.Z,O),g.Z&&g.Z.locals&&g.Z.locals;var s=e(45),f=e(3607),t=e(8973),w=e(453),l=e(100),a=e(7827),c=e(9247),m=e(1020),z=function(){var Te=(0,n.QT)().t,we=(0,E.eh)(),xe=(0,E.bd)();if(!we.isActionEnabled(W._d))return null;var _e=function(){var Oe=(0,h.Z)(I().mark(function J(){return I().wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(ke.t0=!xe.length,ke.t0){ke.next=5;break}return ke.next=4,(0,a._)({title:Te("overwriteConfirm.modal.loadFromFile.title"),actionLabel:Te("overwriteConfirm.modal.loadFromFile.button"),color:"warning",description:(0,m.jsx)(c.Z,{i18nKey:"overwriteConfirm.modal.loadFromFile.description",bold:function(q){return(0,m.jsx)("strong",{children:q})},br:function(){return(0,m.jsx)("br",{})}})});case 4:ke.t0=ke.sent;case 5:if(!ke.t0){ke.next=7;break}we.executeAction(W._d);case 7:case"end":return ke.stop()}},J)}));return function(){return Oe.apply(this,arguments)}}();return(0,m.jsx)(Z.Z,{icon:M.Tl,onSelect:_e,"data-testid":"load-button",shortcut:(0,v.C)("loadScene"),"aria-label":Te("buttons.load"),children:Te("buttons.load")})};z.displayName="LoadScene";var j=function(){var Te=(0,n.QT)().t,we=(0,E.eh)();return we.isActionEnabled(W.ns)?(0,m.jsx)(Z.Z,{shortcut:(0,v.C)("saveScene"),"data-testid":"save-button",onSelect:function(){return we.executeAction(W.ns)},icon:M.a1,"aria-label":"".concat(Te("buttons.save")),children:"".concat(Te("buttons.save"))}):null};j.displayName="SaveToActiveFile";var k=function(){var Te=(0,E.n9)(),we=(0,n.QT)().t;return(0,m.jsx)(Z.Z,{icon:M.J8,"data-testid":"image-export-button",onSelect:function(){return Te({openDialog:"imageExport"})},shortcut:(0,v.C)("imageExport"),"aria-label":we("buttons.exportImage"),children:we("buttons.exportImage")})};k.displayName="SaveAsImage";var x=function(){var Te=(0,n.QT)().t,we=(0,E.eh)();return(0,m.jsx)(Z.Z,{"data-testid":"help-menu-item",icon:M.by,onSelect:function(){return we.executeAction(W.jY)},shortcut:"?","aria-label":Te("helpDialog.title"),children:Te("helpDialog.title")})};x.displayName="Help";var N=function(){var Te=(0,n.QT)().t,we=(0,f.b9)(t.w,w.yE);return(0,E.eh)().isActionEnabled(W.mo)?(0,m.jsx)(Z.Z,{icon:M.XH,onSelect:function(){return we("clearCanvas")},"data-testid":"clear-canvas-button","aria-label":Te("buttons.clearReset"),children:Te("buttons.clearReset")}):null};N.displayName="ClearCanvas";var G=function(){var Te=(0,n.QT)().t,we=(0,l.I)(),xe=(0,E.eh)();return xe.isActionEnabled(W.Zp)?(0,m.jsx)(Z.Z,{onSelect:function(_e){return _e.preventDefault(),xe.executeAction(W.Zp)},icon:we.theme==="dark"?M.NW:M.kL,"data-testid":"toggle-dark-mode",shortcut:(0,v.C)("toggleTheme"),"aria-label":we.theme==="dark"?Te("buttons.lightMode"):Te("buttons.darkMode"),children:we.theme==="dark"?Te("buttons.lightMode"):Te("buttons.darkMode")}):null};G.displayName="ToggleTheme";var ie=function(){var Te=(0,n.QT)().t,we=(0,l.I)(),xe=(0,E.eh)(),_e=(0,E.hY)();return we.viewModeEnabled||!_e.UIOptions.canvasActions.changeViewBackgroundColor?null:(0,m.jsxs)("div",{style:{marginTop:"0.5rem"},children:[(0,m.jsx)("div",{"data-testid":"canvas-background-label",style:{fontSize:".75rem",marginBottom:".5rem"},children:Te("labels.canvasBackground")}),(0,m.jsx)("div",{style:{padding:"0 0.625rem"},children:xe.renderAction("changeViewBackgroundColor")})]})};ie.displayName="ChangeCanvasBackground";var V=function(){var Te=(0,n.QT)().t,we=(0,E.n9)();return(0,m.jsx)(Z.Z,{icon:M.Hy,onSelect:function(){we({openDialog:"jsonExport"})},"data-testid":"json-export-button","aria-label":Te("buttons.export"),children:Te("buttons.export")})};V.displayName="Export";var ce=function(){return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(H.Z,{icon:M.ET,href:"https://github.com/excalidraw/excalidraw","aria-label":"GitHub",children:"GitHub"}),(0,m.jsx)(H.Z,{icon:M.D7,href:"https://discord.gg/UexuTaE","aria-label":"Discord",children:"Discord"}),(0,m.jsx)(H.Z,{icon:M.Zm,href:"https://twitter.com/excalidraw","aria-label":"Twitter",children:"Twitter"})]})};ce.displayName="Socials";var te=function(Te){var we=Te.onSelect,xe=Te.isCollaborating,_e=(0,n.QT)().t;return(0,m.jsx)(Z.Z,{"data-testid":"collab-button",icon:M.jn,className:(0,s.Z)({"active-collab":xe}),onSelect:we,children:_e("labels.liveCollaboration")})};te.displayName="LiveCollaborationTrigger";var L=e(4704),re=e(6922),me=e(9827),Ce=e(4572),We=Object.assign((0,re.$)("MainMenu",function(Te){var we=Te.children,xe=Te.onSelect,_e=(0,Ce.R6)().MainMenuTunnel,Oe=(0,E.Fy)(),J=(0,l.I)(),ke=(0,E.n9)(),q=Oe.editor.isMobile?void 0:function(){return ke({openMenu:null})};return(0,m.jsx)(_e.In,{children:(0,m.jsxs)(y.Z,{open:J.openMenu==="canvas",children:[(0,m.jsx)(y.Z.Trigger,{onToggle:function(){ke({openMenu:J.openMenu==="canvas"?null:"canvas"})},"data-testid":"main-menu-trigger",className:"main-menu-trigger",children:M.RY}),(0,m.jsxs)(y.Z.Content,{onClickOutside:q,onSelect:(0,me.Mj)(xe,function(){ke({openMenu:null})}),children:[we,Oe.editor.isMobile&&J.collaborators.size>0&&(0,m.jsxs)("fieldset",{className:"UserList-Wrapper",children:[(0,m.jsx)("legend",{children:(0,n.t)("labels.collaborators")}),(0,m.jsx)(L.Z,{mobile:!0,collaborators:J.collaborators})]})]})]})})}),{Trigger:y.Z.Trigger,Item:y.Z.Item,ItemLink:y.Z.ItemLink,ItemCustom:y.Z.ItemCustom,Group:y.Z.Group,Separator:y.Z.Separator,DefaultItems:D})},9937:function(Se,Q,e){e.d(Q,{wL:function(){return Te},iC:function(){return O},vL:function(){return qe},bY:function(){return Je},gK:function(){return He},$C:function(){return x},oc:function(){return c},_9:function(){return Lt},HN:function(){return Ve},qy:function(){return Ye},rk:function(){return L},n5:function(){return te},h6:function(){return tt},Rx:function(){return wt},Cc:function(){return at},Hg:function(){return re},cW:function(){return ee},hs:function(){return me},f:function(){return s},xY:function(){return et},Iw:function(){return t},$e:function(){return w},Vi:function(){return k},Ks:function(){return oe},r8:function(){return _e},I_:function(){return xe},ZB:function(){return Ke},pb:function(){return Oe},ut:function(){return N},iG:function(){return ie},k:function(){return Ce},sA:function(){return B},KL:function(){return We},LL:function(){return J},PR:function(){return mt},tf:function(){return bt},EE:function(){return Be},qx:function(){return f},$n:function(){return ue},zK:function(){return Ie},LO:function(){return we},CP:function(){return ce},Zj:function(){return p},Yx:function(){return Re},sS:function(){return be},kV:function(){return ge},sk:function(){return Ze},Oh:function(){return m},XI:function(){return z},WR:function(){return yt},$h:function(){return Wt},a6:function(){return St},HM:function(){return o},ay:function(){return a},dg:function(){return Ft},hR:function(){return ve},Gj:function(){return ke},I8:function(){return ht},wZ:function(){return l},C6:function(){return G},ZF:function(){return A},nM:function(){return q},ah:function(){return Y},UO:function(){return X},Kr:function(){return De},oX:function(){return st},_D:function(){return V},vf:function(){return j},V4:function(){return i},Dt:function(){return b},jP:function(){return g},Um:function(){return P},vU:function(){return R},G6:function(){return _},ED:function(){return $}});var D=e(7169),E=e(3379),y=e.n(E),h=e(7795),S=e.n(h),I=e(569),v=e.n(I),n=e(3565),M=e.n(n),Z=e(9216),H=e.n(Z),W=e(4589),u=e.n(W),U=e(6464),le={};le.styleTagTransform=u(),le.setAttributes=M(),le.insert=v().bind(null,"head"),le.domAPI=S(),le.insertStyleElement=H(),y()(U.Z,le);var de=U.Z&&U.Z.locals?U.Z.locals:void 0,he=e(9240);function pe(ut,Ot){var Pt=Object.keys(ut);if(Object.getOwnPropertySymbols){var Gt=Object.getOwnPropertySymbols(ut);Ot&&(Gt=Gt.filter(function(Ct){return Object.getOwnPropertyDescriptor(ut,Ct).enumerable})),Pt.push.apply(Pt,Gt)}return Pt}var oe,P=/Mac|iPod|iPhone|iPad/.test(navigator.platform),$=/^Win/.test(navigator.platform),b=/\b(android)\b/i.test(navigator.userAgent),R="netscape"in window&&navigator.userAgent.indexOf("rv:")>1&&navigator.userAgent.indexOf("Gecko")>1,_=navigator.userAgent.indexOf("Chrome")===-1&&navigator.userAgent.indexOf("Safari")!==-1,g=function(){var ut,Ot;return((ut=navigator.brave)===null||ut===void 0||(Ot=ut.isBrave)===null||Ot===void 0?void 0:Ot.name)==="isBrave"},O="Excalidraw",s=10,f=8,t=5,w=1,l=30,a=Math.PI/12,c={TEXT:"text",CROSSHAIR:"crosshair",GRABBING:"grabbing",GRAB:"grab",POINTER:"pointer",MOVE:"move",AUTO:""},m={MAIN:0,WHEEL:1,SECONDARY:2,TOUCH:-1},z={enabled:"all",disabled:"none",inheritFromUI:"var(--ui-pointerEvents)"};(function(ut){ut.COPY="copy",ut.PASTE="paste",ut.CUT="cut",ut.KEYDOWN="keydown",ut.KEYUP="keyup",ut.MOUSE_MOVE="mousemove",ut.RESIZE="resize",ut.UNLOAD="unload",ut.FOCUS="focus",ut.BLUR="blur",ut.DRAG_OVER="dragover",ut.DROP="drop",ut.GESTURE_END="gestureend",ut.BEFORE_UNLOAD="beforeunload",ut.GESTURE_START="gesturestart",ut.GESTURE_CHANGE="gesturechange",ut.POINTER_MOVE="pointermove",ut.POINTER_DOWN="pointerdown",ut.POINTER_UP="pointerup",ut.STATE_CHANGE="statechange",ut.WHEEL="wheel",ut.TOUCH_START="touchstart",ut.TOUCH_END="touchend",ut.HASHCHANGE="hashchange",ut.VISIBILITY_CHANGE="visibilitychange",ut.SCROLL="scroll",ut.EXCALIDRAW_LINK="excalidraw-link",ut.MENU_ITEM_SELECT="menu.itemSelect",ut.MESSAGE="message"})(oe||(oe={}));var j={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5},k={TEST:"test",DEVELOPMENT:"development"},x={SHAPE_ACTIONS_MENU:"App-menu__left"},N={Virgil:1,Helvetica:2,Cascadia:3,Assistant:4},G={LIGHT:"light",DARK:"dark"},ie={strokeColor:"#bbb",strokeWidth:2,strokeStyle:"solid",fillStyle:"solid",roughness:0,roundness:null,backgroundColor:"transparent",radius:8,nameOffsetY:3,nameColorLightTheme:"#999999",nameColorDarkTheme:"#7a7a7a",nameFontSize:14,nameLineHeight:1.25},V="Segoe UI Emoji",ce=1,te=20,L=N.Virgil,re="left",me="top",Ce=20,We={svg:"image/svg+xml",png:"image/png",jpg:"image/jpeg",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",ico:"image/x-icon",avif:"image/avif",jfif:"image/jfif"},Te=["text/plain","text/html"],we=function(ut){for(var Ot=1;Ot<arguments.length;Ot++){var Pt=arguments[Ot]!=null?arguments[Ot]:{};Ot%2?pe(Object(Pt),!0).forEach(function(Gt){(0,D.Z)(ut,Gt,Pt[Gt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ut,Object.getOwnPropertyDescriptors(Pt)):pe(Object(Pt)).forEach(function(Gt){Object.defineProperty(ut,Gt,Object.getOwnPropertyDescriptor(Pt,Gt))})}return ut}({json:"application/json",excalidraw:"application/vnd.excalidraw+json",excalidrawlib:"application/vnd.excalidrawlib+json","excalidraw.svg":"image/svg+xml","excalidraw.png":"image/png",binary:"application/octet-stream"},We),xe={png:"png",svg:"svg",clipboard:"clipboard"},_e={excalidraw:"excalidraw",excalidrawClipboard:"excalidraw/clipboard",excalidrawLibrary:"excalidrawlib",excalidrawClipboardWithAPI:"excalidraw-api/clipboard"},Oe=window.EXCALIDRAW_EXPORT_SOURCE||window.location.origin,J=500,ke=300,q=500,o=100,i=.1,p=.1,B=300,A=de.themeFilter,X={addLibrary:"addLibrary"},Y={addLibrary:"addLibrary"},ee={canvasActions:{changeViewBackgroundColor:!0,clearCanvas:!0,export:{saveFileToDisk:!0},loadScene:!0,saveToActiveFile:!0,toggleTheme:null,saveAsImage:!0},tools:{image:!0}},ge=730,be=1e3,Re=500,Ze=1229,Be=parseInt(de.rightSidebarWidth),Ie=2,Ke=[1,2,3],Ye=10,tt=1440,ue=2097152,ve="http://www.w3.org/2000/svg",De={excalidraw:2,excalidrawLibrary:2},He=5,Je=.7,qe=11,st={TOP:"top",MIDDLE:"middle",BOTTOM:"bottom"},ht={LEFT:"left",CENTER:"center",RIGHT:"right"},et=20,wt=.25,Lt=32,St={LEGACY:1,PROPORTIONAL_RADIUS:2,ADAPTIVE_RADIUS:3},yt="__precedingElement__",Wt={architect:0,artist:1,cartoonist:2},Ft={thin:1,bold:2,extraBold:4},Ve={strokeColor:he.HO.black,backgroundColor:he.HO.transparent,fillStyle:"solid",strokeWidth:2,strokeStyle:"solid",roughness:Wt.artist,opacity:100,locked:!1},bt="library",at={name:"default",defaultTab:bt},mt=new Set(["embeddable","image"])},4572:function(Se,Q,e){e.d(Q,{A3:function(){return u},ZC:function(){return le},R6:function(){return U}});var D=e(9787),E=e.n(D);const y=de=>{let he;const pe=new Set,oe=(b,R)=>{const _=typeof b=="function"?b(he):b;if(!Object.is(_,he)){const g=he;he=R??typeof _!="object"?_:Object.assign({},he,_),pe.forEach(O=>O(he,g))}},P=()=>he,$={setState:oe,getState:P,subscribe:b=>(pe.add(b),()=>pe.delete(b)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),pe.clear()}};return he=de(oe,P,$),$},h=de=>de?y(de):y;var S=e(5668);const{useSyncExternalStoreWithSelector:I}=S,v=de=>{typeof de!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const he=typeof de=="function"?h(de):de,pe=(oe,P)=>function($,b=$.getState,R){const _=I($.subscribe,$.getState,$.getServerState||$.getState,b,R);return(0,D.useDebugValue)(_),_}(he,oe,P);return Object.assign(pe,he),pe},n=de=>de?v(de):v;var M,Z;const H=typeof window<"u"&&((M=window.document)!=null&&M.createElement||((Z=window.navigator)==null?void 0:Z.product)==="ReactNative")?E().useLayoutEffect:E().useEffect;function W(){const de=n(he=>({current:new Array,version:0,set:he}));return{In:({children:he})=>{const pe=de(P=>P.set),oe=de(P=>P.version);return H(()=>{pe(P=>({version:P.version+1}))},[]),H(()=>(pe(({current:P})=>({current:[...P,he]})),()=>pe(({current:P})=>({current:P.filter($=>$!==he)}))),[he,oe]),null},Out:()=>{const he=de(pe=>pe.current);return E().createElement(E().Fragment,null,he)}}}var u=E().createContext(null),U=function(){return E().useContext(u)},le=function(){return E().useMemo(function(){return{MainMenuTunnel:W(),WelcomeScreenMenuHintTunnel:W(),WelcomeScreenToolbarHintTunnel:W(),WelcomeScreenHelpHintTunnel:W(),WelcomeScreenCenterTunnel:W(),FooterCenterTunnel:W(),DefaultSidebarTriggerTunnel:W(),DefaultSidebarTabTriggersTunnel:W(),OverwriteConfirmDialogTunnel:W(),jotaiScope:Symbol()}},[])}},100:function(Se,Q,e){e.d(Q,{I:function(){return h},k:function(){return y}});var D=e(9787),E=e.n(D),y=E().createContext(null),h=function(){return E().useContext(y)}},7652:function(Se,Q,e){e.d(Q,{KJ:function(){return H},OF:function(){return W},Uk:function(){return u},z8:function(){return Z}});var D,E,y=e(9937),h=e(5284),S=e(6853),I='<svg viewBox="0 0 24 24" stroke-width="1" width="28" height="28" xmlns="http://www.w3.org/2000/svg">',v='<path stroke="#1b1b1f" fill="#fff" d="m7.868 11.113 7.773 7.774a2.359 2.359 0 0 0 1.667.691 2.368 2.368 0 0 0 2.357-2.358c0-.625-.248-1.225-.69-1.667L11.201 7.78 9.558 9.469l-1.69 1.643v.001Zm10.273 3.606-3.333 3.333m-3.25-6.583 2 2m-7-7 3 3M3.664 3.625l1 1M2.529 6.922l1.407-.144m5.735-2.932-1.118.866M4.285 9.823l.758-1.194m1.863-6.207-.13 1.408"/>',n="data:".concat(y.LO.svg,",").concat(encodeURIComponent("".concat(I).concat(v,"</svg>"))),M="data:".concat(y.LO.svg,",").concat(encodeURIComponent("".concat(I).concat('<path d="M6.164 11.755a5.314 5.314 0 0 1-4.932-5.298 5.314 5.314 0 0 1 5.311-5.311 5.314 5.314 0 0 1 5.307 5.113l8.773 8.773a3.322 3.322 0 0 1 0 4.696l-.895.895a3.322 3.322 0 0 1-4.696 0l-8.868-8.868Z" style="fill:#fff"/>').concat(v,"</svg>"))),Z=function(U){U&&(U.style.cursor="")},H=function(U,le){U&&(U.style.cursor=le)},W=function(U,le){D&&D.theme===le||function(){var de=le===y.C6.DARK;(D=document.createElement("canvas")).theme=le,D.height=20,D.width=20;var he=D.getContext("2d");he.lineWidth=1,he.beginPath(),he.arc(D.width/2,D.height/2,5,0,2*Math.PI),he.fillStyle=de?h.black:h.white,he.fill(),he.strokeStyle=de?h.white:h.black,he.stroke(),E=D.toDataURL(y.LO.svg)}(),H(U,"url(".concat(E,") ").concat(10," ").concat(10,", auto"))},u=function(U,le){if(U)if(le.activeTool.type==="selection")Z(U);else if((0,S.l$)(le))U.style.cursor=y.oc.GRAB;else if((0,S.EN)(le))W(U,le.theme);else if(le.activeTool.type==="laser"){var de=le.theme===y.C6.LIGHT?n:M;U.style.cursor="url(".concat(de,"), auto")}else["image","custom"].includes(le.activeTool.type)?le.activeTool.type!=="image"&&(U.style.cursor=y.oc.AUTO):U.style.cursor=y.oc.CROSSHAIR}},5796:function(Se,Q,e){e.d(Q,{DQ:function(){return b},KG:function(){return a},Pn:function(){return m},Qk:function(){return $},Sf:function(){return l},Tu:function(){return c},Wr:function(){return _},ZY:function(){return g},_c:function(){return t},_p:function(){return z},bv:function(){return j},cT:function(){return O},g8:function(){return R},gY:function(){return G},lV:function(){return f},tW:function(){return w},vZ:function(){return ie},wf:function(){return s}});var D=e(1930),E=e(2577),y=e(7169),h=e(8950),S=e(2975),I=e.n(S),v=e(5605),n=e(6853),M=e(9937),Z=e(7651),H=e(3506),W=e(8227),u=e(4105),U=e(9827),le=e(6548),de=e(4419),he=e(7994);function pe(V,ce){var te=Object.keys(V);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(V);ce&&(L=L.filter(function(re){return Object.getOwnPropertyDescriptor(V,re).enumerable})),te.push.apply(te,L)}return te}function oe(V){for(var ce=1;ce<arguments.length;ce++){var te=arguments[ce]!=null?arguments[ce]:{};ce%2?pe(Object(te),!0).forEach(function(L){(0,y.Z)(V,L,te[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(te)):pe(Object(te)).forEach(function(L){Object.defineProperty(V,L,Object.getOwnPropertyDescriptor(te,L))})}return V}var P=function(){var V=(0,h.Z)(I().mark(function ce(te){var L;return I().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:if(te.type!==M.LO.png){re.next=18;break}return re.prev=1,re.next=4,Promise.resolve().then(e.bind(e,250));case 4:return re.next=6,re.sent.decodePngMetadata(te);case 6:return re.abrupt("return",re.sent);case 9:if(re.prev=9,re.t0=re.catch(1),re.t0.message!=="INVALID"){re.next=15;break}throw new H.jk((0,W.t)("alerts.imageDoesNotContainScene"),"IMAGE_NOT_CONTAINS_SCENE_DATA");case 15:throw new H.jk((0,W.t)("alerts.cannotRestoreFromImage"));case 16:re.next=43;break;case 18:if(!("text"in Blob)){re.next=24;break}return re.next=21,te.text();case 21:L=re.sent,re.next=27;break;case 24:return re.next=26,new Promise(function(me){var Ce=new FileReader;Ce.readAsText(te,"utf8"),Ce.onloadend=function(){Ce.readyState===FileReader.DONE&&me(Ce.result)}});case 26:L=re.sent;case 27:if(te.type!==M.LO.svg){re.next=43;break}return re.prev=28,re.next=31,Promise.resolve().then(e.bind(e,250));case 31:return re.next=33,re.sent.decodeSvgMetadata({svg:L});case 33:return re.abrupt("return",re.sent);case 36:if(re.prev=36,re.t1=re.catch(28),re.t1.message!=="INVALID"){re.next=42;break}throw new H.jk((0,W.t)("alerts.imageDoesNotContainScene"),"IMAGE_NOT_CONTAINS_SCENE_DATA");case 42:throw new H.jk((0,W.t)("alerts.cannotRestoreFromImage"));case 43:return re.abrupt("return",L);case 44:case"end":return re.stop()}},ce,null,[[1,9],[28,36]])}));return function(ce){return V.apply(this,arguments)}}(),$=function(V){var ce;return V&&((ce=V.name.match(/\.(json|excalidraw|png|svg)$/))===null||ce===void 0?void 0:ce[1])||null},b=function(V){return V==="png"||V==="svg"},R=function(V){var ce=$(V);return ce==="png"||ce==="svg"},_=function(V){var ce=(V||{}).type;return!!ce&&Object.values(M.KL).includes(ce)},g=function(){var V=(0,h.Z)(I().mark(function ce(te,L,re,me){var Ce,We;return I().wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return Te.next=2,P(te);case 2:Ce=Te.sent,Te.prev=3,Te.prev=4,We=JSON.parse(Ce),Te.next=13;break;case 8:if(Te.prev=8,Te.t0=Te.catch(4),!_(te)){Te.next=12;break}throw new H.jk((0,W.t)("alerts.imageDoesNotContainScene"),"IMAGE_NOT_CONTAINS_SCENE_DATA");case 12:throw Te.t0;case 13:if(!(0,de.dS)(We)){Te.next=17;break}return Te.abrupt("return",{type:M.LO.excalidraw,data:(0,he.nu)({elements:(0,Z._M)(We.elements||[]),appState:oe(oe({theme:L?.theme,fileHandle:me||te.handle||null},(0,n.s)(We.appState||{})),L?(0,u.W)(We.elements||[],L):{}),files:We.files},L,re,{repairBindings:!0,refreshDimensions:!1})});case 17:if(!(0,de.HT)(We)){Te.next=19;break}return Te.abrupt("return",{type:M.LO.excalidrawlib,data:We});case 19:case 26:throw new Error((0,W.t)("alerts.couldNotLoadInvalidFile"));case 22:if(Te.prev=22,Te.t1=Te.catch(3),!(Te.t1 instanceof H.jk)){Te.next=26;break}throw Te.t1;case 27:case"end":return Te.stop()}},ce,null,[[3,22],[4,8]])}));return function(ce,te,L,re){return V.apply(this,arguments)}}(),O=function(){var V=(0,h.Z)(I().mark(function ce(te,L,re,me){var Ce;return I().wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.next=2,g(te,L,re,me);case 2:if((Ce=We.sent).type===M.LO.excalidraw){We.next=5;break}throw new Error((0,W.t)("alerts.couldNotLoadInvalidFile"));case 5:return We.abrupt("return",Ce.data);case 6:case"end":return We.stop()}},ce)}));return function(ce,te,L,re){return V.apply(this,arguments)}}(),s=function(V){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"unpublished",te=JSON.parse(V);if(!(0,de.HT)(te))throw new Error("Invalid library");var L=te.libraryItems||te.library;return(0,he.wJ)(L,ce)},f=function(){var V=(0,h.Z)(I().mark(function ce(te){var L,re=arguments;return I().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return L=re.length>1&&re[1]!==void 0?re[1]:"unpublished",me.t0=s,me.next=4,P(te);case 4:return me.t1=me.sent,me.t2=L,me.abrupt("return",(0,me.t0)(me.t1,me.t2));case 7:case"end":return me.stop()}},ce)}));return function(ce){return V.apply(this,arguments)}}(),t=function(){var V=(0,h.Z)(I().mark(function ce(te){return I().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",new Promise(function(){var re=(0,h.Z)(I().mark(function me(Ce,We){return I().wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:if(Te.prev=0,!(0,U.y8)(te)){Te.next=5;break}return Te.next=4,te;case 4:te=Te.sent;case 5:te.toBlob(function(we){if(!we)return We(new H.lp((0,W.t)("canvasError.canvasTooBig"),"CANVAS_POSSIBLY_TOO_BIG"));Ce(we)}),Te.next=11;break;case 8:Te.prev=8,Te.t0=Te.catch(0),We(Te.t0);case 11:case"end":return Te.stop()}},me,null,[[0,8]])}));return function(me,Ce){return re.apply(this,arguments)}}()));case 1:case"end":return L.stop()}},ce)}));return function(ce){return V.apply(this,arguments)}}(),w=function(){var V=(0,h.Z)(I().mark(function ce(te){var L;return I().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return re.prev=0,re.t0=window.crypto.subtle,re.next=4,ie(te);case 4:return re.t1=re.sent,re.next=7,re.t0.digest.call(re.t0,"SHA-1",re.t1);case 7:return L=re.sent,re.abrupt("return",(0,U.G3)(new Uint8Array(L)));case 11:return re.prev=11,re.t2=re.catch(0),console.error(re.t2),re.abrupt("return",(0,v.x0)(40));case 15:case"end":return re.stop()}},ce,null,[[0,11]])}));return function(ce){return V.apply(this,arguments)}}(),l=function(){var V=(0,h.Z)(I().mark(function ce(te){return I().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",new Promise(function(re,me){var Ce=new FileReader;Ce.onload=function(){var We=Ce.result;re(We)},Ce.onerror=function(We){return me(We)},Ce.readAsDataURL(te)}));case 1:case"end":return L.stop()}},ce)}));return function(ce){return V.apply(this,arguments)}}(),a=function(V){for(var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",te=V.indexOf(","),L=atob(V.slice(te+1)),re=V.slice(0,te).split(":")[1].split(";")[0],me=new ArrayBuffer(L.length),Ce=new Uint8Array(me),We=0;We<L.length;We++)Ce[We]=L.charCodeAt(We);return new File([me],ce,{type:re})},c=function(){var V=(0,h.Z)(I().mark(function ce(te,L){var re,me,Ce,We,Te,we;return I().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(te.type!==M.LO.svg){xe.next=2;break}return xe.abrupt("return",te);case 2:return xe.next=4,Promise.all([e.e(4736).then(e.t.bind(e,4881,23)).then(function(_e){return _e.default}),e.e(4736).then(e.bind(e,5446)).then(function(_e){return _e.default})]);case 4:if(re=xe.sent,me=(0,E.Z)(re,2),Ce=me[0],We=me[1],Te=We({pica:Ce({features:["js","wasm"]})}),L.outputType&&(we=L.outputType,Te._create_blob=function(_e){return this.pica.toBlob(_e.out_canvas,we,.8).then(function(Oe){return _e.out_blob=Oe,_e})}),_(te)){xe.next=12;break}throw new Error((0,W.t)("errors.unsupportedFileType"));case 12:return xe.t0=File,xe.next=15,Te.toBlob(te,{max:L.maxWidthOrHeight});case 15:return xe.t1=xe.sent,xe.t2=[xe.t1],xe.t3=te.name,xe.t4={type:L.outputType||te.type},xe.abrupt("return",new xe.t0(xe.t2,xe.t3,xe.t4));case 20:case"end":return xe.stop()}},ce)}));return function(ce,te){return V.apply(this,arguments)}}(),m=function(V){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new File([new TextEncoder().encode(V)],ce,{type:M.LO.svg})},z=function(){var V=(0,h.Z)(I().mark(function ce(te){var L,re,me,Ce,We=arguments;return I().wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return L=We.length>1&&We[1]!==void 0?We[1]:"",Te.prev=1,Te.next=4,fetch(te);case 4:re=Te.sent,Te.next=10;break;case 7:throw Te.prev=7,Te.t0=Te.catch(1),new Error((0,W.t)("errors.failedToFetchImage"));case 10:if(re.ok){Te.next=12;break}throw new Error((0,W.t)("errors.failedToFetchImage"));case 12:return Te.next=14,re.blob();case 14:if(!(me=Te.sent).type||!_(me)){Te.next=18;break}return Ce=L||me.name||"",Te.abrupt("return",new File([me],Ce,{type:me.type}));case 18:throw new Error((0,W.t)("errors.unsupportedFileType"));case 19:case"end":return Te.stop()}},ce,null,[[1,7]])}));return function(ce){return V.apply(this,arguments)}}(),j=function(){var V=(0,h.Z)(I().mark(function ce(te){var L,re;return I().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return L=te.dataTransfer.files.item(0),me.next=3,k(te);case 3:if(re=me.sent,!L){me.next=10;break}return me.next=7,G(L);case 7:me.t0=me.sent,me.next=11;break;case 10:me.t0=null;case 11:return me.t1=me.t0,me.t2=re,me.abrupt("return",{file:me.t1,fileHandle:me.t2});case 14:case"end":return me.stop()}},ce)}));return function(ce){return V.apply(this,arguments)}}(),k=function(){var V=(0,h.Z)(I().mark(function ce(te){var L,re;return I().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(!le.kr){me.next=16;break}return me.prev=1,L=te.dataTransfer.items[0],me.next=5,L.getAsFileSystemHandle();case 5:if(me.t0=me.sent,me.t0){me.next=8;break}me.t0=null;case 8:return re=me.t0,me.abrupt("return",re);case 12:return me.prev=12,me.t1=me.catch(1),console.warn(me.t1.name,me.t1.message),me.abrupt("return",null);case 16:return me.abrupt("return",null);case 17:case"end":return me.stop()}},ce,null,[[1,12]])}));return function(ce){return V.apply(this,arguments)}}(),x=function(V){var ce=null,te="".concat((0,D.Z)(new Uint8Array(V).slice(0,8)).join(" ")," "),L="255 216 255 ",re="71 73 70 56 57 97 ";return te==="137 80 78 71 13 10 26 10 "?ce=M.LO.png:te.startsWith(L)?ce=M.LO.jpg:te.startsWith(re)&&(ce=M.LO.gif),ce},N=function(V,ce,te){return new File([V],te||"",{type:ce})},G=function(){var V=(0,h.Z)(I().mark(function ce(te){var L,re,me,Ce,We,Te,we,xe;return I().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(te.type){_e.next=28;break}if((L=te)===null||L===void 0||(re=L.name)===null||re===void 0||!re.endsWith(".excalidrawlib")){_e.next=11;break}return _e.t0=N,_e.next=5,ie(te);case 5:_e.t1=_e.sent,_e.t2=M.LO.excalidrawlib,_e.t3=te.name,te=(0,_e.t0)(_e.t1,_e.t2,_e.t3),_e.next=26;break;case 11:if((me=te)===null||me===void 0||(Ce=me.name)===null||Ce===void 0||!Ce.endsWith(".excalidraw")){_e.next=21;break}return _e.t4=N,_e.next=15,ie(te);case 15:_e.t5=_e.sent,_e.t6=M.LO.excalidraw,_e.t7=te.name,te=(0,_e.t4)(_e.t5,_e.t6,_e.t7),_e.next=26;break;case 21:return _e.next=23,ie(te);case 23:We=_e.sent,(Te=x(We))&&(te=N(We,Te,te.name));case 26:_e.next=34;break;case 28:if(!_(te)){_e.next=34;break}return _e.next=31,ie(te);case 31:we=_e.sent,(xe=x(we))&&xe!==te.type&&(te=N(we,xe,te.name));case 34:return _e.abrupt("return",te);case 35:case"end":return _e.stop()}},ce)}));return function(ce){return V.apply(this,arguments)}}(),ie=function(V){return"arrayBuffer"in V?V.arrayBuffer():new Promise(function(ce,te){var L=new FileReader;L.onload=function(re){var me;if((me=re.target)===null||me===void 0||!me.result)return te(new Error("Couldn't convert blob to ArrayBuffer"));ce(re.target.result)},L.readAsArrayBuffer(V)})}},6548:function(Se,Q,e){e.d(Q,{I$:function(){return W},NL:function(){return u},kr:function(){return h}});var D=e(1930),E=e(8950),y=e(2975),h=function(){if(typeof self>"u")return!1;if("top"in self&&self!==top)try{}catch{return!1}else if("showOpenFilePicker"in self)return"showOpenFilePicker";return!1}(),S=h?e.e(4736).then(e.bind(e,7464)):e.e(4736).then(e.bind(e,3948));function I(){return I=(0,E.Z)(y.mark(function U(){var le,de=arguments;return y.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,S;case 2:return he.abrupt("return",(le=he.sent).default.apply(le,de));case 3:case"end":return he.stop()}},U)})),I.apply(this,arguments)}h?e.e(4736).then(e.bind(e,4036)):e.e(4736).then(e.bind(e,7693));var v=h?e.e(4736).then(e.bind(e,357)):e.e(4736).then(e.bind(e,341));function n(){return n=(0,E.Z)(y.mark(function U(){var le,de=arguments;return y.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,v;case 2:return he.abrupt("return",(le=he.sent).default.apply(le,de));case 3:case"end":return he.stop()}},U)})),n.apply(this,arguments)}var M=e(9937),Z=e(3506),H=e(9827),W=function(U){var le,de,he,pe=(le=U.extensions)===null||le===void 0?void 0:le.reduce(function(P,$){return P.push(M.LO[$]),P},[]),oe=(de=U.extensions)===null||de===void 0?void 0:de.reduce(function(P,$){return $==="jpg"?P.concat(".jpg",".jpeg"):P.concat(".".concat($))},[]);return function(){return I.apply(this,arguments)}({description:U.description,extensions:oe,mimeTypes:pe,multiple:(he=U.multiple)!==null&&he!==void 0&&he,legacySetup:function(P,$,b){var R=(0,H.Ds)($,500),_=function(){g(),document.addEventListener(M.Ks.KEYUP,R),document.addEventListener(M.Ks.POINTER_UP,R),R()},g=function(){var s;if((s=b.files)!==null&&s!==void 0&&s.length){var f=U.multiple?(0,D.Z)(b.files):b.files[0];P(f)}};requestAnimationFrame(function(){window.addEventListener(M.Ks.FOCUS,_)});var O=window.setInterval(function(){g()},500);return function(s){clearInterval(O),R.cancel(),window.removeEventListener(M.Ks.FOCUS,_),document.removeEventListener(M.Ks.KEYUP,R),document.removeEventListener(M.Ks.POINTER_UP,R),s&&(console.warn("Opening the file was canceled (legacy-fs)."),s(new Z._L))}}})},u=function(U,le){return function(){return n.apply(this,arguments)}(U,{fileName:"".concat(le.name,".").concat(le.extension),description:le.description,extensions:[".".concat(le.extension)]},le.fileHandle)}},250:function(Se,Q,e){e.r(Q),e.d(Q,{decodePngMetadata:function(){return $},decodeSvgMetadata:function(){return R},encodePngMetadata:function(){return P},encodeSvgMetadata:function(){return b},getTEXtChunk:function(){return oe}});var D=e(8950),E=e(2975),y=e.n(E),h=e(2983),S=e.n(h),I=e(1194),v=e(3434),n=e.n(v),M=e(2744),Z=e(9937),H=e(5796),W=function(_){return new Promise(function(g,O){var s=typeof _=="string"?new Blob([new TextEncoder().encode(_)]):new Blob([_ instanceof Uint8Array?_:new Uint8Array(_)]),f=new FileReader;f.onload=function(t){if(!t.target||typeof t.target.result!="string")return O(new Error("couldn't convert to byte string"));g(t.target.result)},f.readAsBinaryString(s)})},u=function(_){for(var g=new ArrayBuffer(_.length),O=new Uint8Array(g),s=0,f=_.length;s<f;s++)O[s]=_.charCodeAt(s);return g},U=function(_){return new TextDecoder("utf-8").decode(u(_))},le=function(){var _=(0,D.Z)(y().mark(function g(O){var s=arguments;return y().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(!(s.length>1&&s[1]!==void 0&&s[1])){f.next=5;break}f.t0=window.btoa(O),f.next=10;break;case 5:return f.t1=window,f.next=8,W(O);case 8:f.t2=f.sent,f.t0=f.t1.btoa.call(f.t1,f.t2);case 10:return f.abrupt("return",f.t0);case 11:case"end":return f.stop()}},g)}));return function(g){return _.apply(this,arguments)}}(),de=function(){var _=(0,D.Z)(y().mark(function g(O){var s,f=arguments;return y().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return s=f.length>1&&f[1]!==void 0&&f[1],t.abrupt("return",s?window.atob(O):U(window.atob(O)));case 2:case"end":return t.stop()}},g)}));return function(g){return _.apply(this,arguments)}}(),he=function(){var _=(0,D.Z)(y().mark(function g(O){var s,f;return y().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(s=O.text,O.compress===!1){t.next=11;break}return t.prev=2,t.next=5,W((0,M.deflate)(s));case 5:f=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t.catch(2),console.error("encode: cannot deflate",t.t0);case 11:if(t.t1=!!f,t.t2=f,t.t2){t.next=17;break}return t.next=16,W(s);case 16:t.t2=t.sent;case 17:return t.t3=t.t2,t.abrupt("return",{version:"1",encoding:"bstring",compressed:t.t1,encoded:t.t3});case 19:case"end":return t.stop()}},g,null,[[2,8]])}));return function(g){return _.apply(this,arguments)}}(),pe=function(){var _=(0,D.Z)(y().mark(function g(O){var s;return y().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:f.t0=O.encoding,f.next=f.t0==="bstring"?3:12;break;case 3:if(!O.compressed){f.next=7;break}f.t1=O.encoded,f.next=10;break;case 7:return f.next=9,U(O.encoded);case 9:f.t1=f.sent;case 10:return s=f.t1,f.abrupt("break",13);case 12:throw new Error('decode: unknown encoding "'.concat(O.encoding,'"'));case 13:if(!O.compressed){f.next=15;break}return f.abrupt("return",(0,M.inflate)(new Uint8Array(u(s)),{to:"string"}));case 15:return f.abrupt("return",s);case 16:case"end":return f.stop()}},g)}));return function(g){return _.apply(this,arguments)}}(),oe=function(){var _=(0,D.Z)(y().mark(function g(O){var s,f;return y().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=S(),t.t1=Uint8Array,t.next=4,(0,H.vZ)(O);case 4:if(t.t2=t.sent,t.t3=new t.t1(t.t2),s=(0,t.t0)(t.t3),!(f=s.find(function(w){return w.name==="tEXt"}))){t.next=10;break}return t.abrupt("return",I.decode(f.data));case 10:return t.abrupt("return",null);case 11:case"end":return t.stop()}},g)}));return function(g){return _.apply(this,arguments)}}(),P=function(){var _=(0,D.Z)(y().mark(function g(O){var s,f,t,w;return y().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return s=O.blob,f=O.metadata,l.t0=S(),l.t1=Uint8Array,l.next=5,(0,H.vZ)(s);case 5:return l.t2=l.sent,l.t3=new l.t1(l.t2),t=(0,l.t0)(l.t3),l.t4=I,l.t5=Z.LO.excalidraw,l.t6=JSON,l.next=13,he({text:f,compress:!0});case 13:return l.t7=l.sent,l.t8=l.t6.stringify.call(l.t6,l.t7),w=l.t4.encode.call(l.t4,l.t5,l.t8),t.splice(-1,0,w),l.abrupt("return",new Blob([n()(t)],{type:Z.LO.png}));case 18:case"end":return l.stop()}},g)}));return function(g){return _.apply(this,arguments)}}(),$=function(){var _=(0,D.Z)(y().mark(function g(O){var s,f;return y().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,oe(O);case 2:if(((s=t.sent)==null?void 0:s.keyword)!==Z.LO.excalidraw){t.next=19;break}if(t.prev=4,"encoded"in(f=JSON.parse(s.text))){t.next=10;break}if(!("type"in f)||f.type!==Z.r8.excalidraw){t.next=9;break}return t.abrupt("return",s.text);case 9:throw new Error("FAILED");case 10:return t.next=12,pe(f);case 12:return t.abrupt("return",t.sent);case 15:throw t.prev=15,t.t0=t.catch(4),console.error(t.t0),new Error("FAILED");case 19:throw new Error("INVALID");case 20:case"end":return t.stop()}},g,null,[[4,15]])}));return function(g){return _.apply(this,arguments)}}(),b=function(){var _=(0,D.Z)(y().mark(function g(O){var s,f,t;return y().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return s=O.text,w.t0=le,w.t1=JSON,w.next=5,he({text:s});case 5:return w.t2=w.sent,w.t3=w.t1.stringify.call(w.t1,w.t2),w.next=9,(0,w.t0)(w.t3,!0);case 9:return f=w.sent,t="",t+="<!-- payload-type:".concat(Z.LO.excalidraw," -->"),t+="<!-- payload-version:2 -->",t+="<!-- payload-start -->",t+=f,t+="<!-- payload-end -->",w.abrupt("return",t);case 17:case"end":return w.stop()}},g)}));return function(g){return _.apply(this,arguments)}}(),R=function(){var _=(0,D.Z)(y().mark(function g(O){var s,f,t,w,l,a,c;return y().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!(s=O.svg).includes("payload-type:".concat(Z.LO.excalidraw))){m.next=26;break}if(f=s.match(/<!-- payload-start -->\s*(.+?)\s*<!-- payload-end -->/)){m.next=5;break}throw new Error("INVALID");case 5:return t=s.match(/<!-- payload-version:(\d+) -->/),w=t?.[1]||"1",l=w!=="1",m.prev=8,m.next=11,de(f[1],l);case 11:if(a=m.sent,"encoded"in(c=JSON.parse(a))){m.next=17;break}if(!("type"in c)||c.type!==Z.r8.excalidraw){m.next=16;break}return m.abrupt("return",a);case 16:throw new Error("FAILED");case 17:return m.next=19,pe(c);case 19:return m.abrupt("return",m.sent);case 22:throw m.prev=22,m.t0=m.catch(8),console.error(m.t0),new Error("FAILED");case 26:throw new Error("INVALID");case 27:case"end":return m.stop()}},g,null,[[8,22]])}));return function(g){return _.apply(this,arguments)}}()},2435:function(Se,Q,e){e.d(Q,{HD:function(){return le},Um:function(){return U.Um},cT:function(){return W.cT},n8:function(){return U.n8},p1:function(){return de}});var D=e(8950),E=e(2975),y=e.n(E),h=e(4694),S=e(9937),I=e(7651),v=e(8227),n=e(6013),M=e(4105),Z=e(3668),H=e(9827),W=e(5796),u=e(6548),U=e(4419),le=function(he,pe,oe){var P=pe.selectedElementIds;he=(0,I.Lm)(he);var $=oe&&(0,M.N)(he,{selectedElementIds:P}),b=null,R=$?(0,M.eD)(he,{selectedElementIds:P},{includeBoundTextElement:!0}):he;return $&&(R.length===1&&(0,I.He)(R[0])?(b=R[0],R=(0,n.Xs)({elements:he,bounds:b,type:"overlap"})):R.length>1&&(R=(0,M.eD)(he,{selectedElementIds:P},{includeBoundTextElement:!0,includeElementsInFrames:!0}))),{exportingFrame:b,exportedElements:(0,H.xU)(R)}},de=function(){var he=(0,D.Z)(y().mark(function pe(oe,P,$,b,R){var _,g,O,s,f,t,w,l,a,c,m,z,j;return y().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(_=R.exportBackground,g=R.exportPadding,O=g===void 0?S.qy:g,s=R.viewBackgroundColor,f=R.name,t=R.fileHandle,w=t===void 0?null:t,l=R.exportingFrame,a=l===void 0?null:l,P.length!==0){k.next=3;break}throw new Error((0,v.t)("alerts.cannotExportEmptyCanvas"));case 3:if(oe!=="svg"&&oe!=="clipboard-svg"){k.next=17;break}return k.next=6,(0,Z.$D)(P,{exportBackground:_,exportWithDarkMode:$.exportWithDarkMode,viewBackgroundColor:s,exportPadding:O,exportScale:$.exportScale,exportEmbedScene:$.exportEmbedScene&&oe==="svg"},b,{exportingFrame:a});case 6:if(c=k.sent,oe!=="svg"){k.next=13;break}return k.next=10,(0,u.NL)(new Blob([c.outerHTML],{type:S.LO.svg}),{description:"Export to SVG",name:f,extension:$.exportEmbedScene?"excalidraw.svg":"svg",fileHandle:w});case 10:return k.abrupt("return",k.sent);case 13:if(oe!=="clipboard-svg"){k.next=17;break}return k.next=16,(0,h.dd)(c.outerHTML);case 16:return k.abrupt("return");case 17:if(m=(0,Z.NL)(P,$,b,{exportBackground:_,viewBackgroundColor:s,exportPadding:O,exportingFrame:a}),oe!=="png"){k.next=33;break}return k.next=21,(0,W._c)(m);case 21:if(z=k.sent,!$.exportEmbedScene){k.next=28;break}return k.next=25,Promise.resolve().then(e.bind(e,250));case 25:return k.next=27,k.sent.encodePngMetadata({blob:z,metadata:(0,U.I_)(P,$,b,"local")});case 27:z=k.sent;case 28:return k.next=30,(0,u.NL)(z,{description:"Export to PNG",name:f,extension:"png",fileHandle:w});case 30:return k.abrupt("return",k.sent);case 33:if(oe!=="clipboard"){k.next=52;break}return k.prev=34,j=(0,W._c)(m),k.next=38,(0,h.uR)(j);case 38:k.next=50;break;case 40:if(k.prev=40,k.t0=k.catch(34),console.warn(k.t0),k.t0.name!=="CANVAS_POSSIBLY_TOO_BIG"){k.next=45;break}throw k.t0;case 45:if(!S.vU||k.t0.name!=="TypeError"){k.next=49;break}throw new Error("".concat((0,v.t)("alerts.couldNotCopyToClipboard"),` + +`).concat((0,v.t)("hints.firefox_clipboard_write")));case 49:throw new Error((0,v.t)("alerts.couldNotCopyToClipboard"));case 50:k.next=53;break;case 52:throw new Error("Unsupported export type");case 53:case"end":return k.stop()}},pe,null,[[34,40]])}));return function(pe,oe,P,$,b){return he.apply(this,arguments)}}()},4419:function(Se,Q,e){e.d(Q,{HT:function(){return he},I_:function(){return u},NI:function(){return pe},Um:function(){return U},dS:function(){return de},n8:function(){return le},t1:function(){return oe}});var D=e(6655),E=e(8950),y=e(2975),h=e.n(y),S=e(6548),I=e(6853),v=e(9937),n=e(7651),M=e(5796);function Z(P,$){var b=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!b){if(Array.isArray(P)||(b=function(f,t){if(f){if(typeof f=="string")return H(f,t);var w=Object.prototype.toString.call(f).slice(8,-1);if(w==="Object"&&f.constructor&&(w=f.constructor.name),w==="Map"||w==="Set")return Array.from(f);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return H(f,t)}}(P))||$&&P&&typeof P.length=="number"){b&&(P=b);var R=0,_=function(){};return{s:_,n:function(){return R>=P.length?{done:!0}:{done:!1,value:P[R++]}},e:function(f){throw f},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g,O=!0,s=!1;return{s:function(){b=b.call(P)},n:function(){var f=b.next();return O=f.done,f},e:function(f){s=!0,g=f},f:function(){try{O||b.return==null||b.return()}finally{if(s)throw g}}}}function H(P,$){($==null||$>P.length)&&($=P.length);for(var b=0,R=new Array($);b<$;b++)R[b]=P[b];return R}var W=function(P,$){var b,R={},_=Z(P);try{for(_.s();!(b=_.n()).done;){var g=b.value;!g.isDeleted&&"fileId"in g&&g.fileId&&$[g.fileId]&&(R[g.fileId]=$[g.fileId])}}catch(O){_.e(O)}finally{_.f()}return R},u=function(P,$,b,R){var _={type:v.r8.excalidraw,version:v.Kr.excalidraw,source:v.pb,elements:R==="local"?(0,n._M)(P):(0,n.BQ)(P),appState:R==="local"?(0,I.s)($):(0,I.eS)($),files:R==="local"?W(P,b):void 0};return JSON.stringify(_,null,2)},U=function(){var P=(0,E.Z)(h().mark(function $(b,R,_){var g,O,s;return h().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return g=u(b,R,_,"local"),O=new Blob([g],{type:v.LO.excalidraw}),f.next=4,(0,S.NL)(O,{name:R.name,extension:"excalidraw",description:"Excalidraw file",fileHandle:(0,M.g8)(R.fileHandle)?null:R.fileHandle});case 4:return s=f.sent,f.abrupt("return",{fileHandle:s});case 6:case"end":return f.stop()}},$)}));return function($,b,R){return P.apply(this,arguments)}}(),le=function(){var P=(0,E.Z)(h().mark(function $(b,R){var _;return h().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,(0,S.I$)({description:"Excalidraw files"});case 2:return _=g.sent,g.t0=M.cT,g.next=6,(0,M.gY)(_);case 6:return g.t1=g.sent,g.t2=b,g.t3=R,g.t4=_.handle,g.abrupt("return",(0,g.t0)(g.t1,g.t2,g.t3,g.t4));case 11:case"end":return g.stop()}},$)}));return function($,b){return P.apply(this,arguments)}}(),de=function(P){return P?.type===v.r8.excalidraw&&(!P.elements||Array.isArray(P.elements)&&(!P.appState||(0,D.Z)(P.appState)==="object"))},he=function(P){return(0,D.Z)(P)==="object"&&P&&P.type===v.r8.excalidrawLibrary&&(P.version===1||P.version===2)},pe=function(P){var $={type:v.r8.excalidrawLibrary,version:v.Kr.excalidrawLibrary,source:v.pb,libraryItems:P};return JSON.stringify($,null,2)},oe=function(){var P=(0,E.Z)(h().mark(function $(b){var R;return h().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return R=pe(b),_.next=3,(0,S.NL)(new Blob([R],{type:v.LO.excalidrawlib}),{name:"library",extension:"excalidrawlib",description:"Excalidraw library file"});case 3:case"end":return _.stop()}},$)}));return function($){return P.apply(this,arguments)}}()},9326:function(Se,Q,e){e.d(Q,{Di:function(){return t},WV:function(){return f},rF:function(){return R},xS:function(){return w},zh:function(){return O}});var D=e(7169),E=e(8950),y=e(5169),h=e(8821),S=e(1930),I=e(2975),v=e.n(I),n=e(5796),M=e(7994),Z=e(3607),H=e(453),W=e(4949),u=e(3506),U=e(8227),le=e(9787),de=e(9937),he=e(5832),pe=e(9827);function oe(l,a){var c=Object.keys(l);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(l);a&&(m=m.filter(function(z){return Object.getOwnPropertyDescriptor(l,z).enumerable})),c.push.apply(c,m)}return c}function P(l){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?arguments[a]:{};a%2?oe(Object(c),!0).forEach(function(m){(0,D.Z)(l,m,c[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):oe(Object(c)).forEach(function(m){Object.defineProperty(l,m,Object.getOwnPropertyDescriptor(c,m))})}return l}function $(l,a){var c=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!c){if(Array.isArray(l)||(c=function(N,G){if(N){if(typeof N=="string")return b(N,G);var ie=Object.prototype.toString.call(N).slice(8,-1);if(ie==="Object"&&N.constructor&&(ie=N.constructor.name),ie==="Map"||ie==="Set")return Array.from(N);if(ie==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie))return b(N,G)}}(l))||a&&l&&typeof l.length=="number"){c&&(l=c);var m=0,z=function(){};return{s:z,n:function(){return m>=l.length?{done:!0}:{done:!1,value:l[m++]}},e:function(N){throw N},f:z}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j,k=!0,x=!1;return{s:function(){c=c.call(l)},n:function(){var N=c.next();return k=N.done,N},e:function(N){x=!0,j=N},f:function(){try{k||c.return==null||c.return()}finally{if(x)throw j}}}}function b(l,a){(a==null||a>l.length)&&(a=l.length);for(var c=0,m=new Array(a);c<a;c++)m[c]=l[c];return m}var R=(0,Z.cn)({status:"loaded",isInitialized:!0,libraryItems:[]}),_=function(l){return(0,pe.xU)(l)},g=function(l,a){return!l.find(function(c){return c.elements.length===a.elements.length&&c.elements.every(function(m,z){return m.id===a.elements[z].id&&m.versionNonce===a.elements[z].versionNonce})})},O=function(l,a){var c,m=[],z=$(a);try{for(z.s();!(c=z.n()).done;){var j=c.value;g(l,j)&&m.push(j)}}catch(k){z.e(k)}finally{z.f()}return[].concat(m,(0,S.Z)(l))},s=(0,y.Z)(function l(a){var c=this;(0,h.Z)(this,l),this.lastLibraryItems=[],this.isInitialized=!1,this.updateQueue=[],this.getLastUpdateTask=function(){return c.updateQueue[c.updateQueue.length-1]},this.notifyListeners=function(){if(c.updateQueue.length>0)H.e_.set(R,{status:"loading",libraryItems:c.lastLibraryItems,isInitialized:c.isInitialized});else{c.isInitialized=!0,H.e_.set(R,{status:"loaded",libraryItems:c.lastLibraryItems,isInitialized:c.isInitialized});try{var m,z;(m=(z=c.app.props).onLibraryChange)===null||m===void 0||m.call(z,_(c.lastLibraryItems))}catch(j){console.error(j)}}},this.destroy=function(){c.isInitialized=!1,c.updateQueue=[],c.lastLibraryItems=[],H.e_.set(he.YX,new Map)},this.resetLibrary=function(){return c.setLibrary([])},this.getLatestLibrary=function(){return new Promise(function(){var m=(0,E.Z)(v().mark(function z(j){var k;return v().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.prev=0,x.next=3,c.getLastUpdateTask()||c.lastLibraryItems;case 3:k=x.sent,c.updateQueue.length>0?j(c.getLatestLibrary()):j(_(k)),x.next=10;break;case 7:return x.prev=7,x.t0=x.catch(0),x.abrupt("return",j(c.lastLibraryItems));case 10:case"end":return x.stop()}},z,null,[[0,7]])}));return function(z){return m.apply(this,arguments)}}())},this.updateLibrary=function(){var m=(0,E.Z)(v().mark(function z(j){var k,x,N,G,ie,V,ce,te,L;return v().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return k=j.libraryItems,x=j.prompt,N=x!==void 0&&x,G=j.merge,ie=G!==void 0&&G,V=j.openLibraryMenu,ce=V!==void 0&&V,te=j.defaultStatus,L=te===void 0?"unpublished":te,ce&&c.app.setState({openSidebar:{name:de.Cc.name,tab:de.tf}}),re.abrupt("return",c.setLibrary(function(){return new Promise(function(){var me=(0,E.Z)(v().mark(function Ce(We,Te){var we,xe;return v().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return _e.prev=0,_e.next=3,typeof k!="function"||k instanceof Blob?k:k(c.lastLibraryItems);case 3:if(!((we=_e.sent)instanceof Blob)){_e.next=10;break}return _e.next=7,(0,n.lV)(we,L);case 7:xe=_e.sent,_e.next=11;break;case 10:xe=(0,M.wJ)(we,L);case 11:!N||window.confirm((0,U.t)("alerts.confirmAddLibrary",{numShapes:xe.length}))?(N&&c.app.focusContainer(),We(ie?O(c.lastLibraryItems,xe):xe)):Te(new u._L),_e.next=17;break;case 14:_e.prev=14,_e.t0=_e.catch(0),Te(_e.t0);case 17:case"end":return _e.stop()}},Ce,null,[[0,14]])}));return function(Ce,We){return me.apply(this,arguments)}}())}));case 3:case"end":return re.stop()}},z)}));return function(z){return m.apply(this,arguments)}}(),this.setLibrary=function(m){var z=new Promise(function(){var j=(0,E.Z)(v().mark(function k(x,N){return v().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.prev=0,G.next=3,c.getLastUpdateTask();case 3:return typeof m=="function"&&(m=m(c.lastLibraryItems)),G.t0=_,G.next=7,m;case 7:G.t1=G.sent,c.lastLibraryItems=(0,G.t0)(G.t1),x(c.lastLibraryItems),G.next=15;break;case 12:G.prev=12,G.t2=G.catch(0),N(G.t2);case 15:case"end":return G.stop()}},k,null,[[0,12]])}));return function(k,x){return j.apply(this,arguments)}}()).catch(function(j){if(j.name==="AbortError")return console.warn("Library update aborted by user"),c.lastLibraryItems;throw j}).finally(function(){c.updateQueue=c.updateQueue.filter(function(j){return j!==z}),c.notifyListeners()});return c.updateQueue.push(z),c.notifyListeners(),z},this.app=a});Q.ZP=s;var f=function(l){var a,c=Math.ceil(Math.sqrt(l.length)),m=[],z=0,j=0,k=0,x=0,N=0,G=0,ie=0,V=$(l);try{var ce=function(){var te=a.value;N&&N%c==0&&(j+=k+50,z=0,G=0,ie++),G===0&&(k=function(xe){return l.slice(xe*c,xe*c+c).reduce(function(_e,Oe){var J=(0,W.v2)(Oe.elements).height;return Math.max(_e,J)},0)}(ie)),x=function(xe){var _e,Oe=0,J=0,ke=0,q=$(l);try{for(q.s();!(_e=q.n()).done;){var o=_e.value;if(Oe%c==0&&(J=0),J===xe){var i=(0,W.v2)(o.elements).width;ke=Math.max(ke,i)}Oe++,J++}}catch(p){q.e(p)}finally{q.f()}return ke}(G);var L=(0,W.v2)(te.elements),re=L.minX,me=L.minY,Ce=L.width,We=L.height,Te=(x-Ce)/2,we=(k-We)/2;m.push.apply(m,(0,S.Z)(te.elements.map(function(xe){return P(P({},xe),{},{x:xe.x+z+Te-re,y:xe.y+j+we-me})}))),z+=x+50,N++,G++};for(V.s();!(a=V.n()).done;)ce()}catch(te){V.e(te)}finally{V.f()}return m},t=function(){var l=new URLSearchParams(window.location.hash.slice(1)).get(de.ah.addLibrary)||new URLSearchParams(window.location.search).get(de.UO.addLibrary),a=l?new URLSearchParams(window.location.hash.slice(1)).get("token"):null;return l?{libraryUrl:l,idToken:a}:null},w=function(l){var a=l.excalidrawAPI,c=l.getInitialLibraryItems,m=(0,le.useRef)(c);(0,le.useEffect)(function(){if(a){var z=function(){var x=(0,E.Z)(v().mark(function N(G){var ie,V,ce,te,L,re;return v().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ie=G.libraryUrl,V=G.idToken,ce=new Promise(function(){var Ce=(0,E.Z)(v().mark(function We(Te,we){var xe,_e;return v().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Oe.prev=0,Oe.next=3,fetch(decodeURIComponent(ie));case 3:return xe=Oe.sent,Oe.next=6,xe.blob();case 6:_e=Oe.sent,Te(_e),Oe.next=13;break;case 10:Oe.prev=10,Oe.t0=Oe.catch(0),we(Oe.t0);case 13:case"end":return Oe.stop()}},We,null,[[0,10]])}));return function(We,Te){return Ce.apply(this,arguments)}}()),te=V!==a.id,me.next=5,te&&document.hidden?new Promise(function(Ce){window.addEventListener("focus",function(){return Ce()},{once:!0})}):null;case 5:return me.prev=5,me.next=8,a.updateLibrary({libraryItems:ce,prompt:te,merge:!0,defaultStatus:"published",openLibraryMenu:!0});case 8:me.next=13;break;case 10:throw me.prev=10,me.t0=me.catch(5),me.t0;case 13:return me.prev=13,window.location.hash.includes(de.ah.addLibrary)?((L=new URLSearchParams(window.location.hash.slice(1))).delete(de.ah.addLibrary),window.history.replaceState({},de.iC,"#".concat(L.toString()))):window.location.search.includes(de.UO.addLibrary)&&((re=new URLSearchParams(window.location.search)).delete(de.UO.addLibrary),window.history.replaceState({},de.iC,"?".concat(re.toString()))),me.finish(13);case 16:case"end":return me.stop()}},N,null,[[5,10,13,16]])}));return function(N){return x.apply(this,arguments)}}(),j=function(x){x.preventDefault();var N=t();N&&(x.stopImmediatePropagation(),window.history.replaceState({},"",x.oldURL),z(N))};m.current&&a.updateLibrary({libraryItems:m.current()});var k=t();return k&&z(k),window.addEventListener(de.Ks.HASHCHANGE,j),function(){window.removeEventListener(de.Ks.HASHCHANGE,j)}}},[a])}},7994:function(Se,Q,e){e.d(Q,{ET:function(){return _},lY:function(){return s},nu:function(){return f},wJ:function(){return w}});var D=e(2577),E=e(7169),y=e(7651),h=e(4183),S=e(4643),I=e(9937),v=e(6853),n=e(7422),M=e(583),Z=e(9827),H=e(4761),W=e(8020);function u(l,a){var c=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!c){if(Array.isArray(l)||(c=function(N,G){if(N){if(typeof N=="string")return U(N,G);var ie=Object.prototype.toString.call(N).slice(8,-1);if(ie==="Object"&&N.constructor&&(ie=N.constructor.name),ie==="Map"||ie==="Set")return Array.from(N);if(ie==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie))return U(N,G)}}(l))||a&&l&&typeof l.length=="number"){c&&(l=c);var m=0,z=function(){};return{s:z,n:function(){return m>=l.length?{done:!0}:{done:!1,value:l[m++]}},e:function(N){throw N},f:z}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j,k=!0,x=!1;return{s:function(){c=c.call(l)},n:function(){var N=c.next();return k=N.done,N},e:function(N){x=!0,j=N},f:function(){try{k||c.return==null||c.return()}finally{if(x)throw j}}}}function U(l,a){(a==null||a>l.length)&&(a=l.length);for(var c=0,m=new Array(a);c<a;c++)m[c]=l[c];return m}function le(l,a){var c=Object.keys(l);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(l);a&&(m=m.filter(function(z){return Object.getOwnPropertyDescriptor(l,z).enumerable})),c.push.apply(c,m)}return c}function de(l){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?arguments[a]:{};a%2?le(Object(c),!0).forEach(function(m){(0,E.Z)(l,m,c[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):le(Object(c)).forEach(function(m){Object.defineProperty(l,m,Object.getOwnPropertyDescriptor(c,m))})}return l}var he={selection:!0,text:!0,rectangle:!0,diamond:!0,ellipse:!0,line:!0,image:!0,arrow:!0,freedraw:!0,eraser:!1,custom:!0,frame:!0,embeddable:!0,hand:!0,laser:!1},pe=function(l){return Object.keys(I.ut).includes(l)?I.ut[l]:I.rk},oe=function(l){return l?de(de({},l),{},{focus:l.focus||0}):null},P=function(l,a){var c,m,z,j,k,x,N,G,ie,V,ce,te,L,re,me={type:a.type||l.type,version:l.version||1,versionNonce:(c=l.versionNonce)!==null&&c!==void 0?c:0,isDeleted:(m=l.isDeleted)!==null&&m!==void 0&&m,id:l.id||(0,S.kb)(),fillStyle:l.fillStyle||I.HN.fillStyle,strokeWidth:l.strokeWidth||I.HN.strokeWidth,strokeStyle:(z=l.strokeStyle)!==null&&z!==void 0?z:I.HN.strokeStyle,roughness:(j=l.roughness)!==null&&j!==void 0?j:I.HN.roughness,opacity:l.opacity==null?I.HN.opacity:l.opacity,angle:l.angle||0,x:(k=(x=a.x)!==null&&x!==void 0?x:l.x)!==null&&k!==void 0?k:0,y:(N=(G=a.y)!==null&&G!==void 0?G:l.y)!==null&&N!==void 0?N:0,strokeColor:l.strokeColor||I.HN.strokeColor,backgroundColor:l.backgroundColor||I.HN.backgroundColor,width:l.width||0,height:l.height||0,seed:(ie=l.seed)!==null&&ie!==void 0?ie:1,groupIds:(V=l.groupIds)!==null&&V!==void 0?V:[],frameId:(ce=l.frameId)!==null&&ce!==void 0?ce:null,roundness:l.roundness?l.roundness:l.strokeSharpness==="round"?{type:(0,h.QI)(l.type)?I.a6.LEGACY:I.a6.PROPORTIONAL_RADIUS}:null,boundElements:l.boundElementIds?l.boundElementIds.map(function(Ce){return{type:"arrow",id:Ce}}):(te=l.boundElements)!==null&&te!==void 0?te:[],updated:(L=l.updated)!==null&&L!==void 0?L:(0,Z.C3)(),link:l.link?(0,W.$u)(l.link):null,locked:(re=l.locked)!==null&&re!==void 0&&re};return"customData"in l&&(me.customData=l.customData),I.WR in l&&(me[I.WR]=l[I.WR]),de(de(de({},me),(0,y.Qp)(me)),a)},$=function(l,a){if(l.boundElements){var c=l.boundElements.slice(),m=new Set;l.boundElements=c.reduce(function(z,j){var k=a.get(j.id);if(k&&!m.has(j.id)){if(m.add(j.id),k.isDeleted)return z;z.push(j),(0,h.iB)(k)&&!k.containerId&&(k.containerId=l.id)}return z},[])}},b=function(l,a){var c=l.containerId?a.get(l.containerId):null;if(c){if(!l.isDeleted&&c.boundElements&&!c.boundElements.find(function(z){return z.id===l.id})){var m=(c.boundElements||(c.boundElements=[])).slice();m.push({type:"text",id:l.id}),c.boundElements=m}}else l.containerId=null},R=function(l,a){l.frameId&&(a.get(l.frameId)||(l.frameId=null))},_=function(l,a,c){var m=new Set,z=a?(0,Z.xn)(a):null,j=(l||[]).reduce(function(ie,V){if(V.type!=="selection"&&!(0,y.QD)(V)){var ce=function(L){var re,me,Ce=arguments.length>1&&arguments[1]!==void 0&&arguments[1];switch(L.type){case"text":var We=L.fontSize,Te=L.fontFamily;if("font"in L){var we=L.font.split(" "),xe=(0,D.Z)(we,2),_e=xe[0],Oe=xe[1];We=parseFloat(_e),Te=pe(Oe)}var J=typeof L.text=="string"&&L.text||"",ke=L.lineHeight||(L.height?(0,H.$2)(L):(0,H.PT)(L.fontFamily)),q=(0,H.R8)(L.text,(0,Z.mO)(L),ke);return L=P(L,{fontSize:We,fontFamily:Te,text:J,textAlign:L.textAlign||I.Hg,verticalAlign:L.verticalAlign||I.hs,containerId:(re=L.containerId)!==null&&re!==void 0?re:null,originalText:L.originalText||J,lineHeight:ke,baseline:q}),J||L.isDeleted||(L=de(de({},L),{},{originalText:J,isDeleted:!0}),L=(0,M.ZP)(L)),Ce&&(L=de(de({},L),(0,y.JZ)(L))),L;case"freedraw":return P(L,{points:L.points,lastCommittedPoint:null,simulatePressure:L.simulatePressure,pressures:L.pressures});case"image":return P(L,{status:L.status||"pending",fileId:L.fileId,scale:L.scale||[1,1]});case"line":case"draw":case"arrow":var o=L,i=o.startArrowhead,p=i===void 0?null:i,B=o.endArrowhead,A=B===void 0?L.type==="arrow"?"arrow":null:B,X=L.x,Y=L.y,ee=!Array.isArray(L.points)||L.points.length<2?[[0,0],[L.width,L.height]]:L.points;if(ee[0][0]!==0||ee[0][1]!==0){var ge=n._.getNormalizedPoints(L);ee=ge.points,X=ge.x,Y=ge.y}return P(L,{type:L.type==="draw"?"line":L.type,startBinding:oe(L.startBinding),endBinding:oe(L.endBinding),lastCommittedPoint:null,startArrowhead:p,endArrowhead:A,points:ee,x:X,y:Y});case"ellipse":case"rectangle":case"diamond":return P(L,{});case"embeddable":return P(L,{validated:null});case"frame":return P(L,{name:(me=L.name)!==null&&me!==void 0?me:null})}return null}(V,c?.refreshDimensions);if(ce){var te=z?.get(V.id);te&&te.version>ce.version&&(ce=(0,M.ZP)(ce,te.version)),m.has(ce.id)&&(ce=de(de({},ce),{},{id:(0,S.kb)()})),m.add(ce.id),ie.push(ce)}}return ie},[]);if(c==null||!c.repairBindings)return j;var k,x=(0,Z.xn)(j),N=u(j);try{for(N.s();!(k=N.n()).done;){var G=k.value;G.frameId&&R(G,x),(0,h.iB)(G)&&G.containerId?b(G,x):G.boundElements&&$(G,x)}}catch(ie){N.e(ie)}finally{N.f()}return j},g=function(l,a,c){var m=a[l];return m!==void 0?m:c[l]},O={isSidebarDocked:function(l,a){var c;return["defaultSidebarDockedPreference",(c=l.isSidebarDocked)!==null&&c!==void 0?c:g("defaultSidebarDockedPreference",l,a)]}},s=function(l,a){var c,m,z,j;l=l||{};for(var k=(0,v.im)(),x={},N=0,G=Object.keys(O);N<G.length;N++){var ie=G[N];if(ie in l){var V=O[ie](l,k),ce=(0,D.Z)(V,2),te=ce[0],L=ce[1];x[te]=L}}for(var re=0,me=Object.entries(k);re<me.length;re++){var Ce=(0,D.Z)(me[re],2),We=Ce[0],Te=Ce[1],we=l[We],xe=a?a[We]:void 0;x[We]=we!==void 0?we:xe!==void 0?xe:Te}return de(de({},x),{},{cursorButton:a?.cursorButton||"up",penDetected:(c=a?.penDetected)!==null&&c!==void 0?c:!!l.penMode&&(m=l.penDetected)!==null&&m!==void 0&&m,activeTool:de(de({},(0,Z.Om)(k,x.activeTool.type&&he[x.activeTool.type]?x.activeTool:{type:"selection"})),{},{lastActiveTool:null,locked:(z=x.activeTool.locked)!==null&&z!==void 0&&z}),zoom:typeof l.zoom=="number"?{value:l.zoom}:(j=l.zoom)!==null&&j!==void 0&&j.value?l.zoom:k.zoom,openSidebar:typeof l.openSidebar=="string"?{name:I.Cc.name}:x.openSidebar})},f=function(l,a,c,m){return{elements:_(l?.elements,c,m),appState:s(l?.appState,a||null),files:l?.files||{}}},t=function(l){var a=_((0,y.Lm)(l.elements),null);return a.length?de(de({},l),{},{elements:a}):null},w=function(){var l,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1?arguments[1]:void 0,m=[],z=u(a);try{for(z.s();!(l=z.n()).done;){var j=l.value;if(Array.isArray(j)){var k=t({status:c,elements:j,id:(0,S.kb)(),created:Date.now()});k&&m.push(k)}else{var x=j,N=t(de(de({},x),{},{id:x.id||(0,S.kb)(),status:x.status||c,created:x.created||Date.now()}));N&&m.push(N)}}}catch(G){z.e(G)}finally{z.f()}return m}},6199:function(Se,Q,e){e.d(Q,{w:function(){return R}});var D=e(2577),E=e(5169),y=e(8821),h=e(7169),S=e(9937),I=e(7651),v=e(9645),n=e(5742),M=e(4761),Z=e(9827),H=e(5999),W=e(4643);function u(_,g){var O=typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(!O){if(Array.isArray(_)||(O=function(a,c){if(a){if(typeof a=="string")return U(a,c);var m=Object.prototype.toString.call(a).slice(8,-1);if(m==="Object"&&a.constructor&&(m=a.constructor.name),m==="Map"||m==="Set")return Array.from(a);if(m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return U(a,c)}}(_))||g&&_&&typeof _.length=="number"){O&&(_=O);var s=0,f=function(){};return{s:f,n:function(){return s>=_.length?{done:!0}:{done:!1,value:_[s++]}},e:function(a){throw a},f}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var t,w=!0,l=!1;return{s:function(){O=O.call(_)},n:function(){var a=O.next();return w=a.done,a},e:function(a){l=!0,t=a},f:function(){try{w||O.return==null||O.return()}finally{if(l)throw t}}}}function U(_,g){(g==null||g>_.length)&&(g=_.length);for(var O=0,s=new Array(g);O<g;O++)s[O]=_[O];return s}function le(_,g){var O=Object.keys(_);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(_);g&&(s=s.filter(function(f){return Object.getOwnPropertyDescriptor(_,f).enumerable})),O.push.apply(O,s)}return O}function de(_){for(var g=1;g<arguments.length;g++){var O=arguments[g]!=null?arguments[g]:{};g%2?le(Object(O),!0).forEach(function(s){(0,h.Z)(_,s,O[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(O)):le(Object(O)).forEach(function(s){Object.defineProperty(_,s,Object.getOwnPropertyDescriptor(O,s))})}return _}var he=100,pe=0,oe=100,P=function(_,g){var O=(0,n.VL)(de(de({x:0,y:0,textAlign:S.I8.CENTER,verticalAlign:S.oX.MIDDLE},g),{},{containerId:_.id,strokeColor:g.strokeColor||_.strokeColor}));return Object.assign(_,{boundElements:(_.boundElements||[]).concat({type:"text",id:O.id})}),(0,I.oN)(O,_),[_,O]},$=function(_,g,O,s){var f,t;if(Object.assign(_,{startBinding:_?.startBinding||null,endBinding:_.endBinding||null}),g){var w,l,a,c=(w=g?.width)!==null&&w!==void 0?w:oe,m=(l=g?.height)!==null&&l!==void 0?l:oe;g.id&&((a=s.getElement(g.id))||console.error("No element for start binding with id ".concat(g.id," found")));var z=g.x||_.x-c,j=g.y||_.y-m/2,k=a?a.type:g.type;if(k){if(k==="text"){var x="";a&&a.type==="text"?x=a.text:g.type==="text"&&(x=g.text),x||console.error("No text found for start binding text element for ".concat(_.id)),f=(0,n.VL)(de(de(de({x:z,y:j,type:"text"},a),g),{},{text:x})),Object.assign(f,{x:g.x||_.x-f.width,y:g.y||_.y-f.height/2})}else switch(k){case"rectangle":case"ellipse":case"diamond":f=(0,I.Up)(de(de(de({x:z,y:j,width:c,height:m},a),g),{},{type:k}));break;default:(0,Z.vE)(_,'Unhandled element start type "'.concat(g.type,'"'),!0)}(0,v.UZ)(_,f,"start")}}if(O){var N,G,ie,V=(N=O?.height)!==null&&N!==void 0?N:oe,ce=(G=O?.width)!==null&&G!==void 0?G:oe;O.id&&((ie=s.getElement(O.id))||console.error("No element for end binding with id ".concat(O.id," found")));var te=O.x||_.x+_.width,L=O.y||_.y-V/2,re=ie?ie.type:O.type;if(re){if(re==="text"){var me="";ie&&ie.type==="text"?me=ie.text:O.type==="text"&&(me=O.text),me||console.error("No text found for end binding text element for ".concat(_.id)),t=(0,n.VL)(de(de(de({x:te,y:L,type:"text"},ie),O),{},{text:me})),Object.assign(t,{y:O.y||_.y-t.height/2})}else switch(re){case"rectangle":case"ellipse":case"diamond":t=(0,I.Up)(de(de(de({x:te,y:L,width:ce,height:V},ie),O),{},{type:re}));break;default:(0,Z.vE)(_,'Unhandled element end type "'.concat(re,'"'),!0)}(0,v.UZ)(_,t,"end")}}var Ce=_.points.length-1,We=.5,Te=(0,Z.xU)(_.points);return _.points[Ce][0]>_.points[Ce-1][0]&&(Te[0][0]=We,Te[Ce][0]-=We),_.points[Ce][0]<_.points[Ce-1][0]&&(Te[0][0]=-.5,Te[Ce][0]+=We),_.points[Ce][1]>_.points[Ce-1][1]&&(Te[0][1]=We,Te[Ce][1]-=We),_.points[Ce][1]<_.points[Ce-1][1]&&(Te[0][1]=-.5,Te[Ce][1]+=We),Object.assign(_,{points:Te}),{linearElement:_,startBoundElement:f,endBoundElement:t}},b=(0,E.Z)(function _(){var g=this;(0,y.Z)(this,_),this.excalidrawElements=new Map,this.add=function(O){O&&g.excalidrawElements.set(O.id,O)},this.getElements=function(){return Array.from(g.excalidrawElements.values())},this.getElement=function(O){return g.excalidrawElements.get(O)}}),R=function(_,g){if(!_)return[];var O,s=(0,Z.xU)(_),f=new b,t=new Map,w=new Map,l=u(s);try{for(l.s();!(O=l.n()).done;){var a=O.value,c=void 0,m=a.id;switch(g?.regenerateIds!==!1&&Object.assign(a,{id:(0,W.kb)()}),a.type){case"rectangle":case"ellipse":case"diamond":var z,j,k=a!=null&&(z=a.label)!==null&&z!==void 0&&z.text&&a.width===void 0?0:a?.width||oe,x=a!=null&&(j=a.label)!==null&&j!==void 0&&j.text&&a.height===void 0?0:a?.height||oe;c=(0,I.Up)(de(de({},a),{},{width:k,height:x}));break;case"line":var N=a.width||he,G=a.height||pe;c=(0,I.y8)(de({width:N,height:G,points:[[0,0],[N,G]]},a));break;case"arrow":var ie=a.width||he,V=a.height||pe;c=(0,I.y8)(de({width:ie,height:V,endArrowhead:"arrow",points:[[0,0],[ie,V]]},a)),Object.assign(c,(0,H.k)(c.points));break;case"text":var ce,te=a?.fontFamily||S.rk,L=a?.fontSize||S.n5,re=a?.lineHeight||(0,M.PT)(te),me=(ce=a.text)!==null&&ce!==void 0?ce:"",Ce=(0,M.bG)(me),We=(0,M.X1)(Ce,(0,Z.mO)({fontFamily:te,fontSize:L}),re);c=(0,n.VL)(de({width:We.width,height:We.height,fontFamily:te,fontSize:L},a));break;case"image":c=(0,n.vw)(de({width:a?.width||oe,height:a?.height||oe},a));break;case"frame":c=(0,n.M3)(de({x:0,y:0},a));break;case"freedraw":case"embeddable":c=a;break;default:c=a,(0,Z.vE)(a,'Unhandled element type "'.concat(a.type,'"'),!0)}f.getElement(c.id)?console.error("Duplicate id found for ".concat(c.id)):(f.add(c),t.set(c.id,a),m&&w.set(m,c.id))}}catch(qe){l.e(qe)}finally{l.f()}var Te,we=u(t);try{for(we.s();!(Te=we.n()).done;){var xe=(0,D.Z)(Te.value,2),_e=xe[0],Oe=xe[1],J=f.getElement(_e);switch(Oe.type){case"rectangle":case"ellipse":case"diamond":case"arrow":var ke;if((ke=Oe.label)!==null&&ke!==void 0&&ke.text){var q=P(J,Oe?.label),o=(0,D.Z)(q,2),i=o[0],p=o[1];if(f.add(i),f.add(p),i.type==="arrow"){var B=Oe.type==="arrow"?Oe?.start:void 0,A=Oe.type==="arrow"?Oe?.end:void 0;if(B&&B.id){var X=w.get(B.id);X&&Object.assign(B,{id:X})}if(A&&A.id){var Y=w.get(A.id);Y&&Object.assign(A,{id:Y})}var ee=$(i,B,A,f),ge=ee.linearElement,be=ee.startBoundElement,Re=ee.endBoundElement;i=ge,f.add(ge),f.add(be),f.add(Re)}}else if(Oe.type==="arrow"){var Ze=Oe.start,Be=Oe.end;if(Ze&&Ze.id){var Ie=w.get(Ze.id);Object.assign(Ze,{id:Ie})}if(Be&&Be.id){var Ke=w.get(Be.id);Object.assign(Be,{id:Ke})}var Ye=$(J,Ze,Be,f),tt=Ye.linearElement,ue=Ye.startBoundElement,ve=Ye.endBoundElement;f.add(tt),f.add(ue),f.add(ve)}}}}catch(qe){we.e(qe)}finally{we.f()}var De,He=u(t);try{var Je=function(){var qe=(0,D.Z)(De.value,2),st=qe[0],ht=qe[1];if(ht.type!=="frame")return"continue";var et=f.getElement(st);if(!et)throw new Error("Excalidraw element with id ".concat(st," doesn't exist"));var wt=[];ht.children.forEach(function(mt){var ut,Ot=w.get(mt);if(!Ot)throw new Error("Element with ".concat(mt," wasn't mapped correctly"));var Pt=f.getElement(Ot);if(!Pt)throw new Error("Frame element with id ".concat(Ot," doesn't exist"));Object.assign(Pt,{frameId:et.id}),Pt==null||(ut=Pt.boundElements)===null||ut===void 0||ut.forEach(function(Gt){var Ct=f.getElement(Gt.id);if(!Ct)throw new Error("Bound element with id ".concat(Gt.id," doesn't exist"));Object.assign(Ct,{frameId:et.id}),wt.push(Ct)}),wt.push(Pt)});var Lt=(0,I.KP)(wt),St=(0,D.Z)(Lt,4),yt=St[0],Wt=St[1],Ft=St[2],Ve=St[3];yt-=10,Wt-=10,Ft+=10,Ve+=10;var bt=Math.max(et?.width,Ft-yt),at=Math.max(et?.height,Ve-Wt);Object.assign(et,{x:yt,y:Wt,width:bt,height:at})};for(He.s();!(De=He.n()).done;)Je()}catch(qe){He.e(qe)}finally{He.f()}return f.getElements()}},8020:function(Se,Q,e){e.d(Q,{$u:function(){return E},q$:function(){return y},ye:function(){return h}});var D=e(5779),E=function(S){return(S=S.trim())?(0,D.N)(S):S},y=function(S){return!!(S!=null&&S.includes(location.origin)||S!=null&&S.startsWith("/"))},h=function(S){if((S=E(S)).startsWith("/"))return"".concat(location.origin).concat(S);try{new URL(S)}catch{return"about:blank"}return S}},5992:function(Se,Q,e){e.d(Q,{rj:function(){return V},nW:function(){return L},nz:function(){return me},sw:function(){return We},lV:function(){return J},Ni:function(){return we},wq:function(){return Te},Pp:function(){return _e}});var D=e(7169),E=e(2577),y=e(9827),h=e(761),S=e(583),I=e(2767),v=e(1512),n=e(8935),M=e(8227),Z=e(9787),H=e(45),W=e(5491),u=e(9660),U=e(2361),le=e(9937),de=e(8925),he=e(4105),pe=e(3528),oe=e(7651),P=e(8020),$=e(3379),b=e.n($),R=e(7795),_=e.n(R),g=e(569),O=e.n(g),s=e(3565),f=e.n(s),t=e(9216),w=e.n(t),l=e(4589),a=e.n(l),c=e(5260),m={};m.styleTagTransform=a(),m.setAttributes=f(),m.insert=O().bind(null,"head"),m.domAPI=_(),m.insertStyleElement=w(),b()(c.Z,m),c.Z&&c.Z.locals&&c.Z.locals;var z=e(3646),j=e(8242),k=e(4183),x=e(2921),N=e(1020);function G(q,o){var i=Object.keys(q);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(q);o&&(p=p.filter(function(B){return Object.getOwnPropertyDescriptor(q,B).enumerable})),i.push.apply(i,p)}return i}function ie(q){for(var o=1;o<arguments.length;o++){var i=arguments[o]!=null?arguments[o]:{};o%2?G(Object(i),!0).forEach(function(p){(0,D.Z)(q,p,i[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(i)):G(Object(i)).forEach(function(p){Object.defineProperty(q,p,Object.getOwnPropertyDescriptor(i,p))})}return q}var V=document.createElement("img");V.src="data:".concat(le.LO.svg,", ").concat(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#1971c2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-external-link"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>'));var ce=!1,te=new Map,L=function(q){var o=q.element,i=q.setAppState,p=q.onLinkOpen,B=q.setToast,A=(0,j.gF)(),X=(0,j.hY)(),Y=o.link||"",ee=(0,Z.useState)(Y),ge=(0,E.Z)(ee,2),be=ge[0],Re=ge[1],Ze=(0,Z.useRef)(null),Be=A.showHyperlinkPopup==="editor",Ie=(0,Z.useCallback)(function(){if(Ze.current){var ve=(0,P.$u)(Ze.current.value)||null;if(!o.link&&ve&&(0,z.L)("hyperlink","create"),(0,k.gs)(o)){var De;if(((De=A.activeEmbeddable)===null||De===void 0?void 0:De.element)===o&&i({activeEmbeddable:null}),!ve)return void(0,S.DR)(o,{validated:!1,link:null});if((0,h.xm)(ve,X.validateEmbeddable)){var He=o.width,Je=o.height,qe=(0,h.LM)(ve);qe!=null&&qe.warning&&B({message:qe.warning,closable:!0});var st=qe?qe.aspectRatio.w/qe.aspectRatio.h:1,ht=te.get(o.id)!==o.link;(0,S.DR)(o,ie(ie({},ht?{width:qe?.type==="video"?He>Je?He:Je*st:He,height:qe?.type==="video"&&He>Je?He/st:Je}:{}),{},{validated:!0,link:ve})),x.R.delete(o),te.has(o.id)&&te.delete(o.id)}else ve&&B({message:(0,M.t)("toast.unableToEmbed"),closable:!0}),o.link&&te.set(o.id,o.link),(0,S.DR)(o,{validated:!1,link:ve}),x.R.delete(o)}else(0,S.DR)(o,{link:ve})}},[o,B,X.validateEmbeddable,A.activeEmbeddable,i]);(0,Z.useLayoutEffect)(function(){return function(){Ie()}},[Ie]),(0,Z.useEffect)(function(){var ve=null,De=function(He){Be||(ve&&clearTimeout(ve),ke(o,A,[He.clientX,He.clientY])&&(ve=window.setTimeout(function(){i({showHyperlinkPopup:!1})},500)))};return window.addEventListener(le.Ks.POINTER_MOVE,De,!1),function(){window.removeEventListener(le.Ks.POINTER_MOVE,De,!1),ve&&clearTimeout(ve)}},[A,o,Be,i]);var Ke=(0,Z.useCallback)(function(){(0,z.L)("hyperlink","delete"),(0,S.DR)(o,{link:null}),Be&&(Ze.current.value=""),i({showHyperlinkPopup:!1})},[i,o,Be]),Ye=re(o,A),tt=Ye.x,ue=Ye.y;return A.draggingElement||A.resizingElement||A.isRotating||A.openMenu||A.viewModeEnabled?null:(0,N.jsxs)("div",{className:"excalidraw-hyperlinkContainer",style:{top:"".concat(ue,"px"),left:"".concat(tt,"px"),width:320,padding:5},onClick:function(){o.link||Be||i({showHyperlinkPopup:"editor"})},children:[Be?(0,N.jsx)("input",{className:(0,H.Z)("excalidraw-hyperlinkContainer-input"),placeholder:"Type or paste your link here",ref:Ze,value:be,onChange:function(ve){return Re(ve.target.value)},autoFocus:!0,onKeyDown:function(ve){ve.stopPropagation(),ve[W.tW.CTRL_OR_CMD]&&ve.key===W.tW.K&&ve.preventDefault(),ve.key!==W.tW.ENTER&&ve.key!==W.tW.ESCAPE||(Ie(),i({showHyperlinkPopup:"info"}))}}):o.link?(0,N.jsx)("a",{href:(0,P.$u)(o.link||""),className:"excalidraw-hyperlinkContainer-link",target:(0,P.q$)(o.link)?"_self":"_blank",onClick:function(ve){if(o.link&&p){var De=(0,y.ag)(le.Ks.EXCALIDRAW_LINK,ve.nativeEvent);p(ie(ie({},o),{},{link:(0,P.$u)(o.link)}),De),De.defaultPrevented&&ve.preventDefault()}},rel:"noopener noreferrer",children:o.link}):(0,N.jsx)("div",{className:"excalidraw-hyperlinkContainer-link",children:(0,M.t)("labels.link.empty")}),(0,N.jsxs)("div",{className:"excalidraw-hyperlinkContainer__buttons",children:[!Be&&(0,N.jsx)(v.V,{type:"button",title:(0,M.t)("buttons.edit"),"aria-label":(0,M.t)("buttons.edit"),label:(0,M.t)("buttons.edit"),onClick:function(){(0,z.L)("hyperlink","edit","popup-ui"),i({showHyperlinkPopup:"editor"})},className:"excalidraw-hyperlinkContainer--edit",icon:n.Pm}),Y&&!(0,k.gs)(o)&&(0,N.jsx)(v.V,{type:"button",title:(0,M.t)("buttons.remove"),"aria-label":(0,M.t)("buttons.remove"),label:(0,M.t)("buttons.remove"),onClick:Ke,className:"excalidraw-hyperlinkContainer--remove",icon:n.XH})]})]})},re=function(q,o){var i=(0,oe.qf)(q),p=(0,E.Z)(i,2),B=p[0],A=p[1],X=(0,y._i)({sceneX:B+q.width/2,sceneY:A},o),Y=X.x,ee=X.y;return{x:Y-o.offsetLeft-160,y:ee-o.offsetTop-85}},me=(0,I.z)({name:"hyperlink",perform:function(q,o){return o.showHyperlinkPopup!=="editor"&&{elements:q,appState:ie(ie({},o),{},{showHyperlinkPopup:"editor",openMenu:null}),commitToHistory:!0}},trackEvent:{category:"hyperlink",action:"click"},keyTest:function(q){return q[W.tW.CTRL_OR_CMD]&&q.key===W.tW.K},contextItemLabel:function(q,o){return Ce(q,o)},predicate:function(q,o){return(0,he.eD)(q,o).length===1},PanelComponent:function(q){var o=q.elements,i=q.appState,p=q.updateData,B=(0,he.eD)(o,i);return(0,N.jsx)(v.V,{type:"button",icon:n.xP,"aria-label":(0,M.t)(Ce(o,i)),title:"".concat((0,k.gs)(o[0])?(0,M.t)("labels.link.labelEmbed"):(0,M.t)("labels.link.label")," - ").concat((0,y.uY)("CtrlOrCmd+K")),onClick:function(){return p(null)},selected:B.length===1&&!!B[0].link})}}),Ce=function(q,o){var i=(0,he.eD)(q,o);return i[0].link?(0,k.gs)(i[0])?"labels.link.editEmbed":"labels.link.edit":(0,k.gs)(i[0])?"labels.link.createEmbed":"labels.link.create"},We=function(q,o,i){var p=(0,E.Z)(q,4),B=p[0],A=p[1],X=p[2],Y=p[3],ee=u.Dn,ge=ee/i.zoom.value,be=ee/i.zoom.value,Re=ee/i.zoom.value,Ze=(B+X)/2,Be=(A+Y)/2,Ie=(ee-8)/(2*i.zoom.value),Ke=4/i.zoom.value,Ye=X+Ke-Ie,tt=A-Ke-Re+Ie,ue=(0,U.U1)(Ye+ge/2,tt+be/2,Ze,Be,o),ve=(0,E.Z)(ue,2);return[ve[0]-ge/2,ve[1]-be/2,ge,be]},Te=function(q,o,i){var p=(0,E.Z)(i,2),B=p[0],A=p[1],X=4/o.zoom.value,Y=(0,oe.qf)(q),ee=(0,E.Z)(Y,4),ge=ee[0],be=ee[1],Re=ee[2],Ze=ee[3],Be=We([ge,be,Re,Ze],q.angle,o),Ie=(0,E.Z)(Be,4),Ke=Ie[0],Ye=Ie[1],tt=Ie[2],ue=Ie[3];return B>Ke-X&&B<Ke+X+tt&&A>Ye-X&&A<Ye+ue+X},we=function(q,o,i,p){var B=(0,E.Z)(i,2),A=B[0],X=B[1];if(!q.link||o.selectedElementIds[q.id])return!1;var Y=4/o.zoom.value;return!(p||!o.viewModeEnabled||!(0,pe.pX)(q,[A,X],Y,null))||Te(q,o,[A,X])},xe=null,_e=function(q,o){xe&&clearTimeout(xe),xe=window.setTimeout(function(){return Oe(q,o)},le.sA)},Oe=function(q,o){if(q.link){var i=(0,de.bK)();i.classList.add("excalidraw-tooltip--visible"),i.style.maxWidth="20rem",i.textContent=q.link;var p=(0,oe.qf)(q),B=(0,E.Z)(p,4),A=B[0],X=B[1],Y=B[2],ee=B[3],ge=We([A,X,Y,ee],q.angle,o),be=(0,E.Z)(ge,4),Re=be[0],Ze=be[1],Be=be[2],Ie=be[3],Ke=(0,y._i)({sceneX:Re,sceneY:Ze},o);(0,de.Js)(i,{left:Ke.x,top:Ke.y,width:Be,height:Ie},"top"),(0,z.L)("hyperlink","tooltip","link-icon"),ce=!0}},J=function(){xe&&clearTimeout(xe),ce&&(ce=!1,(0,de.bK)().classList.remove("excalidraw-tooltip--visible"))},ke=function(q,o,i){var p=(0,E.Z)(i,2),B=p[0],A=p[1],X=(0,y.dE)({clientX:B,clientY:A},o),Y=X.x,ee=X.y,ge=15/o.zoom.value;if((0,pe.pX)(q,[Y,ee],ge,null))return!1;var be=(0,oe.qf)(q),Re=(0,E.Z)(be,3),Ze=Re[0],Be=Re[1],Ie=Re[2];if(Y>=Ze&&Y<=Ie&&ee>=Be-85&&ee<=Be)return!1;var Ke=re(q,o),Ye=Ke.x,tt=Ke.y;return!(B>=Ye-ge&&B<=Ye+320+10+ge&&A>=tt-ge&&A<=tt+ge+10+42)}},9645:function(Se,Q,e){e.d(Q,{$q:function(){return ie},DK:function(){return R},H:function(){return _},HG:function(){return de},N1:function(){return U},R:function(){return P},UZ:function(){return $},Ww:function(){return f},Y9:function(){return O},ZB:function(){return c},cz:function(){return u},ek:function(){return N},el:function(){return pe}});var D=e(7169),E=e(2577),y=e(4105),h=e(4183),S=e(3528),I=e(583),v=e(457),n=e(7422),M=e(9827),Z=e(5491),H=e(4761);function W(te,L){var re=Object.keys(te);if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(te);L&&(me=me.filter(function(Ce){return Object.getOwnPropertyDescriptor(te,Ce).enumerable})),re.push.apply(re,me)}return re}var u=function(te){return!te[Z.tW.CTRL_OR_CMD]},U=function(te){return te.isBindingEnabled},le=function(te,L){var re=[];return L.forEach(function(me){var Ce=te.getNonDeletedElement(me);Ce!=null&&re.push(Ce)}),re},de=function(te,L,re){var me=new Set,Ce=new Set;he(te,L,re,"start",me,Ce),he(te,re,L,"end",me,Ce);var We=Array.from(Ce).filter(function(Te){return!me.has(Te)});le(v.Z.getScene(te),We).forEach(function(Te){var we;(0,I.DR)(Te,{boundElements:(we=Te.boundElements)===null||we===void 0?void 0:we.filter(function(xe){return xe.type!=="arrow"||xe.id!==te.id})})})},he=function(te,L,re,me,Ce,We){if(L!=="keep")if(L!=null)re!=null&&(re==="keep"?b(te,L,me):me!=="start"&&re.id===L.id)||($(te,L,me),Ce.add(L.id));else{var Te=g(te,me);Te!=null&&We.add(Te)}},pe=function(te){te.forEach(function(L){(0,h.Mn)(L)?de(L,z(L,"start"),z(L,"end")):(0,h.f0)(L)&&oe(L)})},oe=function(te){k(te).forEach(function(L){var re=(0,E.Z)(L,2),me=re[0],Ce=re[1];return de(me,Ce==="end"?"keep":te,Ce==="start"?"keep":te)})},P=function(te,L,re,me){L.startBoundElement!=null&&$(te,L.startBoundElement,"start");var Ce=O(me,re);Ce==null||b(te,Ce,"end")||$(te,Ce,"end")},$=function(te,L,re){(0,I.DR)(te,(0,D.Z)({},re==="start"?"startBinding":"endBinding",function(me){for(var Ce=1;Ce<arguments.length;Ce++){var We=arguments[Ce]!=null?arguments[Ce]:{};Ce%2?W(Object(We),!0).forEach(function(Te){(0,D.Z)(me,Te,We[Te])}):Object.getOwnPropertyDescriptors?Object.defineProperties(me,Object.getOwnPropertyDescriptors(We)):W(Object(We)).forEach(function(Te){Object.defineProperty(me,Te,Object.getOwnPropertyDescriptor(We,Te))})}return me}({elementId:L.id},s(te,L,re)))),(0,M.xn)(L.boundElements||[]).has(te.id)||(0,I.DR)(L,{boundElements:(L.boundElements||[]).concat({id:te.id,type:"arrow"})})},b=function(te,L,re){var me=te[re==="start"?"endBinding":"startBinding"];return R(te,me?.elementId,L)},R=function(te,L,re){return L===re.id&&te.points.length<3},_=function(te){te.forEach(function(L){(0,h.Mn)(L)&&de(L,null,null)})},g=function(te,L){var re=L==="start"?"startBinding":"endBinding",me=te[re];return me==null?null:((0,I.DR)(te,(0,D.Z)({},re,null)),me.elementId)},O=function(te,L){return(0,y.QG)(L.getNonDeletedElements(),function(re){return(0,h.f0)(re,!1)&&(0,S.uu)(re,te)})},s=function(te,L,re){var me=re==="start"?-1:1,Ce=me===-1?0:te.points.length-1,We=Ce-me,Te=n._.getPointAtIndexGlobalCoordinates(te,Ce),we=n._.getPointAtIndexGlobalCoordinates(te,We);return{focus:(0,S.T_)(L,we,Te),gap:Math.max(1,(0,S.oT)(L,Te))}},f=function(te,L){var re,me=((re=te.boundElements)!==null&&re!==void 0?re:[]).filter(function(xe){return xe.type==="arrow"});if(me.length!==0){var Ce=L??{},We=Ce.newSize,Te=Ce.simultaneouslyUpdated,we=w(Te);le(v.Z.getScene(te),me.map(function(xe){return xe.id})).forEach(function(xe){if((0,h.bt)(xe)){var _e=te;if(t(xe,_e)){var Oe=a(_e,xe.startBinding,We),J=a(_e,xe.endBinding,We);we.has(xe.id)?(0,I.DR)(xe,{startBinding:Oe,endBinding:J}):(l(xe,"start",Oe,te),l(xe,"end",J,te),(0,H.WJ)(xe)&&(0,H.RB)(xe,!1))}}})}},t=function(te,L){var re,me;return((re=te.startBinding)===null||re===void 0?void 0:re.elementId)===L.id||((me=te.endBinding)===null||me===void 0?void 0:me.elementId)===L.id},w=function(te){return new Set((te||[]).map(function(L){return L.id}))},l=function(te,L,re,me){if(!(re==null||re.elementId!==me.id&&te.points.length>2)){var Ce=v.Z.getScene(te).getElement(re.elementId);if(Ce!=null){var We,Te=L==="start"?-1:1,we=Te===-1?0:te.points.length-1,xe=we-Te,_e=n._.getPointAtIndexGlobalCoordinates(te,xe),Oe=(0,S.j_)(Ce,re.focus,_e);if(re.gap===0)We=Oe;else{var J=(0,S.MZ)(Ce,_e,Oe,re.gap);We=J.length===0?Oe:J[0]}n._.movePoints(te,[{index:we,point:n._.pointFromAbsoluteCoords(te,We)}],(0,D.Z)({},L==="start"?"startBinding":"endBinding",re))}}},a=function(te,L,re){if(L==null||re==null)return L;var me=L.gap,Ce=L.focus,We=L.elementId,Te=re.width,we=re.height,xe=te.width,_e=te.height;return{elementId:We,gap:Math.max(1,Math.min((0,S.fb)(te,Te,we),me*(Te<we?Te/xe:we/_e))),focus:Ce}},c=function(te){var L=new Set(te.map(function(re){return re.id}));return te.flatMap(function(re){return(0,h.Mn)(re,!1)?m(re).filter(function(me){return!L.has(me.id)}):(0,h.f0)(re,!1)?k(re).filter(function(me){return!L.has(me[0].id)}):[]})},m=function(te){return[z(te,"start"),z(te,"end")].filter(function(L){return L!=null})},z=function(te,L){return O(j(te,L),v.Z.getScene(te))},j=function(te,L){var re=L==="start"?0:-1;return(0,M.AK)(n._.getPointAtIndexGlobalCoordinates(te,re))},k=function(te){return v.Z.getScene(te).getNonDeletedElements().map(function(L){if(!(0,h.Mn)(L,!1))return null;var re=x(L,"start",te),me=x(L,"end",te);return re||me?[L,re&&me?"both":re?"start":"end",te]:null}).filter(function(L){return L!=null})},x=function(te,L,re){return te[L==="start"?"startBinding":"endBinding"]==null&&!b(te,re,L)&&(0,S.uu)(re,j(te,L))},N=function(te,L,re,me){var Ce=new Set,We=new Set,Te=me==="duplicatesServeAsOld";L.forEach(function(we){var xe=we.boundElements;if(xe!=null&&xe.length>0&&(xe.forEach(function(J){Te&&!re.has(J.id)&&Ce.add(J.id)}),We.add(re.get(we.id))),(0,h.Mn)(we)){if(we.startBinding!=null){var _e=we.startBinding.elementId;Te&&!re.has(_e)&&We.add(_e)}if(we.endBinding!=null){var Oe=we.endBinding.elementId;Te&&!re.has(Oe)&&We.add(Oe)}we.startBinding==null&&we.endBinding==null||Ce.add(re.get(we.id))}}),te.filter(function(we){var xe=we.id;return Ce.has(xe)}).forEach(function(we){var xe=we.startBinding,_e=we.endBinding;(0,I.DR)(we,{startBinding:G(xe,re),endBinding:G(_e,re)})}),te.filter(function(we){var xe=we.id;return We.has(xe)}).forEach(function(we){var xe=we.boundElements;xe!=null&&xe.length>0&&(0,I.DR)(we,{boundElements:xe.map(function(_e){return re.has(_e.id)?{id:re.get(_e.id),type:_e.type}:_e})})})},G=function(te,L){var re;if(te==null)return null;var me=te.elementId;return{focus:te.focus,gap:te.gap,elementId:(re=L.get(me))!==null&&re!==void 0?re:me}},ie=function(te,L){var re=new Set(L.map(function(Ce){return Ce.id})),me=new Set;L.forEach(function(Ce){var We;(0,h.f0)(Ce)?(We=Ce.boundElements)===null||We===void 0||We.forEach(function(Te){re.has(Te.id)||me.add(Te.id)}):(0,h.Mn)(Ce)&&(Ce.startBinding&&me.add(Ce.startBinding.elementId),Ce.endBinding&&me.add(Ce.endBinding.elementId))}),te.filter(function(Ce){var We=Ce.id;return me.has(We)}).forEach(function(Ce){(0,h.f0)(Ce)?(0,I.DR)(Ce,{boundElements:ce(Ce.boundElements,re)}):(0,h.Mn)(Ce)&&(0,I.DR)(Ce,{startBinding:V(Ce.startBinding,re),endBinding:V(Ce.endBinding,re)})})},V=function(te,L){return te==null||L.has(te.elementId)?null:te},ce=function(te,L){return te?te.filter(function(re){return!L.has(re.id)}):null}},4949:function(Se,Q,e){e.d(Q,{CM:function(){return $},GJ:function(){return pe},IX:function(){return _},KP:function(){return w},M$:function(){return oe},Pi:function(){return t},UC:function(){return P},Ut:function(){return c},Y5:function(){return s},hC:function(){return l},os:function(){return m},qf:function(){return he},v2:function(){return z},wC:function(){return a}});var D=e(1930),E=e(2577),y=e(8821),h=e(5169),S=e(2361),I=e(9845),v=e(6049),n=e(4183),M=e(5999),Z=e(4761),H=e(7422),W=e(2921),u=e(457);function U(j,k){var x=typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(!x){if(Array.isArray(j)||(x=function(te,L){if(te){if(typeof te=="string")return le(te,L);var re=Object.prototype.toString.call(te).slice(8,-1);if(re==="Object"&&te.constructor&&(re=te.constructor.name),re==="Map"||re==="Set")return Array.from(te);if(re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re))return le(te,L)}}(j))||k&&j&&typeof j.length=="number"){x&&(j=x);var N=0,G=function(){};return{s:G,n:function(){return N>=j.length?{done:!0}:{done:!1,value:j[N++]}},e:function(te){throw te},f:G}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ie,V=!0,ce=!1;return{s:function(){x=x.call(j)},n:function(){var te=x.next();return V=te.done,te},e:function(te){ce=!0,ie=te},f:function(){try{V||x.return==null||x.return()}finally{if(ce)throw ie}}}}function le(j,k){(k==null||k>j.length)&&(k=j.length);for(var x=0,N=new Array(k);x<k;x++)N[x]=j[x];return N}var de=function(){function j(){(0,y.Z)(this,j)}return(0,h.Z)(j,null,[{key:"getBounds",value:function(k){var x=j.boundsCache.get(k);if(x!=null&&x.version&&x.version===k.version&&!(0,n.Xh)(k))return x.bounds;var N=j.calculateBounds(k);return u.Z.getScene(k)&&j.boundsCache.set(k,{version:k.version,bounds:N}),N}},{key:"calculateBounds",value:function(k){var x,N=he(k),G=(0,E.Z)(N,6),ie=G[0],V=G[1],ce=G[2],te=G[3],L=G[4],re=G[5];if((0,n.F9)(k)){var me=g(k.points.map(function(bt){var at=(0,E.Z)(bt,2),mt=at[0],ut=at[1];return(0,S.U1)(mt,ut,L-k.x,re-k.y,k.angle)})),Ce=(0,E.Z)(me,4),We=Ce[0],Te=Ce[1],we=Ce[2],xe=Ce[3];return[We+k.x,Te+k.y,we+k.x,xe+k.y]}if((0,n.bt)(k))x=f(k,L,re);else if(k.type==="diamond"){var _e=(0,S.U1)(L,V,L,re,k.angle),Oe=(0,E.Z)(_e,2),J=Oe[0],ke=Oe[1],q=(0,S.U1)(L,te,L,re,k.angle),o=(0,E.Z)(q,2),i=o[0],p=o[1],B=(0,S.U1)(ie,re,L,re,k.angle),A=(0,E.Z)(B,2),X=A[0],Y=A[1],ee=(0,S.U1)(ce,re,L,re,k.angle),ge=(0,E.Z)(ee,2),be=ge[0],Re=ge[1];x=[Math.min(J,i,X,be),Math.min(ke,p,Y,Re),Math.max(J,i,X,be),Math.max(ke,p,Y,Re)]}else if(k.type==="ellipse"){var Ze=(ce-ie)/2,Be=(te-V)/2,Ie=Math.cos(k.angle),Ke=Math.sin(k.angle),Ye=Math.hypot(Ze*Ie,Be*Ke),tt=Math.hypot(Be*Ie,Ze*Ke);x=[L-Ye,re-tt,L+Ye,re+tt]}else{var ue=(0,S.U1)(ie,V,L,re,k.angle),ve=(0,E.Z)(ue,2),De=ve[0],He=ve[1],Je=(0,S.U1)(ie,te,L,re,k.angle),qe=(0,E.Z)(Je,2),st=qe[0],ht=qe[1],et=(0,S.U1)(ce,te,L,re,k.angle),wt=(0,E.Z)(et,2),Lt=wt[0],St=wt[1],yt=(0,S.U1)(ce,V,L,re,k.angle),Wt=(0,E.Z)(yt,2),Ft=Wt[0],Ve=Wt[1];x=[Math.min(De,st,Lt,Ft),Math.min(He,ht,St,Ve),Math.max(De,st,Lt,Ft),Math.max(He,ht,St,Ve)]}return x}}]),j}();de.boundsCache=new WeakMap;var he=function(j){var k=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if((0,n.F9)(j))return O(j);if((0,n.bt)(j))return H._.getElementAbsoluteCoords(j,k);if((0,n.iB)(j)){var x=(0,Z.tl)(j);if((0,n.Yv)(x)){var N=H._.getBoundTextElementPosition(x,j);return[N.x,N.y,N.x+j.width,N.y+j.height,N.x+j.width/2,N.y+j.height/2]}}return[j.x,j.y,j.x+j.width,j.y+j.height,j.x+j.width/2,j.y+j.height/2]},pe=function(j){var k=he(j),x=(0,E.Z)(k,6),N=x[0],G=x[1],ie=x[2],V=x[3],ce=x[4],te=x[5],L=[ce,te];if((0,n.bt)(j)||(0,n.F9)(j)){for(var re=[],me=0;me<j.points.length-1;)re.push([(0,S.xj)([j.points[me][0]+j.x,j.points[me][1]+j.y],L,j.angle),(0,S.xj)([j.points[me+1][0]+j.x,j.points[me+1][1]+j.y],L,j.angle)]),me++;return re}var Ce=[[N,G],[ie,G],[N,V],[ie,V],[ce,G],[ce,V],[N,te],[ie,te]].map(function(o){return(0,S.xj)(o,L,j.angle)}),We=(0,E.Z)(Ce,8),Te=We[0],we=We[1],xe=We[2],_e=We[3],Oe=We[4],J=We[5],ke=We[6],q=We[7];return j.type==="diamond"?[[Oe,ke],[Oe,q],[J,ke],[J,q]]:j.type==="ellipse"?[[Oe,ke],[Oe,q],[J,ke],[J,q],[Oe,ke],[Oe,q],[J,ke],[J,q]]:[[Te,we],[xe,_e],[Te,xe],[we,_e],[Te,q],[xe,q],[we,ke],[_e,ke]]},oe=function(j){return[j.x,j.y,j.x+j.width,j.y+j.height,j.x+j.width/2,j.y+j.height/2]},P=function(j){var k=Math.floor(j.width/2)+1,x=j.width,N=Math.floor(j.height/2)+1;return[k,0,x,N,k,j.height,0,N]},$=function(j){var k,x=U(j.sets);try{for(x.s();!(k=x.n()).done;){var N=k.value;if(N.type==="path")return N.ops}}catch(G){x.e(G)}finally{x.f()}return j.sets[0].ops},b=function(j,k,x,N,G){var ie=1-j;return Math.pow(ie,3)*k+3*Math.pow(ie,2)*j*x+3*ie*Math.pow(j,2)*N+Math.pow(j,3)*G},R=function(j,k,x,N){var G=k-j,ie=x-k,V=3*G-6*ie+3*(N-x),ce=6*ie-6*G,te=3*G,L=ce*ce-4*V*te;if(!(L>=0))return!1;var re=null,me=null,Ce=1/0,We=1/0;return V===0?Ce=We=-te/ce:(Ce=(-ce+Math.sqrt(L))/(2*V),We=(-ce-Math.sqrt(L))/(2*V)),Ce>=0&&Ce<=1&&(re=b(Ce,j,k,x,N)),We>=0&&We<=1&&(me=b(We,j,k,x,N)),[re,me]},_=function(j,k){var x=[0,0],N=j.reduce(function(G,ie){var V=ie.op,ce=ie.data;if(V==="move")x=ce;else if(V==="bcurveTo"){var te=[ce[0],ce[1]],L=[ce[2],ce[3]],re=[ce[4],ce[5]],me=k?k.apply(void 0,te):te,Ce=k?k.apply(void 0,L):L,We=k?k.apply(void 0,re):re,Te=k?k.apply(void 0,(0,D.Z)(x)):x;x=re;var we=function(q,o,i,p){var B=R(q[0],o[0],i[0],p[0]),A=R(q[1],o[1],i[1],p[1]),X=Math.min(q[0],p[0]),Y=Math.max(q[0],p[0]);if(B){var ee=B.filter(function(Ze){return Ze!==null});X=Math.min.apply(Math,[X].concat((0,D.Z)(ee))),Y=Math.max.apply(Math,[Y].concat((0,D.Z)(ee)))}var ge=Math.min(q[1],p[1]),be=Math.max(q[1],p[1]);if(A){var Re=A.filter(function(Ze){return Ze!==null});ge=Math.min.apply(Math,[ge].concat((0,D.Z)(Re))),be=Math.max.apply(Math,[be].concat((0,D.Z)(Re)))}return[X,ge,Y,be]}(Te,me,Ce,We),xe=(0,E.Z)(we,4),_e=xe[0],Oe=xe[1],J=xe[2],ke=xe[3];G.minX=Math.min(G.minX,_e),G.minY=Math.min(G.minY,Oe),G.maxX=Math.max(G.maxX,J),G.maxY=Math.max(G.maxY,ke)}return G},{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0});return[N.minX,N.minY,N.maxX,N.maxY]},g=function(j){var k,x=1/0,N=1/0,G=-1/0,ie=-1/0,V=U(j);try{for(V.s();!(k=V.n()).done;){var ce=(0,E.Z)(k.value,2),te=ce[0],L=ce[1];x=Math.min(x,te),N=Math.min(N,L),G=Math.max(G,te),ie=Math.max(ie,L)}}catch(re){V.e(re)}finally{V.f()}return[x,N,G,ie]},O=function(j){var k=g(j.points),x=(0,E.Z)(k,4),N=x[0],G=x[1],ie=x[2],V=x[3],ce=N+j.x,te=G+j.y,L=ie+j.x,re=V+j.y;return[ce,te,L,re,(ce+L)/2,(te+re)/2]},s=function(j,k,x,N){var G=$(k[0]);if(G.length<1)return null;var ie=x==="start"?1:G.length-1,V=G[ie].data,ce=[V[4],V[5]],te=[V[2],V[3]],L=[V[0],V[1]],re=G[ie-1],me=[0,0];re.op==="move"?me=re.data:re.op==="bcurveTo"&&(me=[re.data[4],re.data[5]]);var Ce=function(St,yt){return Math.pow(1-St,3)*ce[yt]+3*St*Math.pow(1-St,2)*te[yt]+3*Math.pow(St,2)*(1-St)*L[yt]+me[yt]*Math.pow(St,3)},We=x==="start"?me:ce,Te=(0,E.Z)(We,2),we=Te[0],xe=Te[1],_e=[Ce(.3,0),Ce(.3,1)],Oe=_e[0],J=_e[1],ke=Math.hypot(we-Oe,xe-J),q=(we-Oe)/ke,o=(xe-J)/ke,i={arrow:30,bar:15,dot:15,triangle:15}[N],p=0;if(N==="arrow"){var B=(0,E.Z)(j.points[j.points.length-1],2),A=B[0],X=B[1],Y=j.points.length>1?j.points[j.points.length-2]:[0,0],ee=(0,E.Z)(Y,2),ge=ee[0],be=ee[1];p=Math.hypot(A-ge,X-be)}else for(var Re=0;Re<j.points.length;Re++){var Ze=j.points[Re-1]||[0,0],Be=(0,E.Z)(Ze,2),Ie=Be[0],Ke=Be[1],Ye=(0,E.Z)(j.points[Re],2),tt=Ye[0],ue=Ye[1];p+=Math.hypot(tt-Ie,ue-Ke)}var ve=Math.min(i,p/2),De=we-q*ve,He=xe-o*ve;if(N==="dot")return[we,xe,Math.hypot(He-xe,De-we)+j.strokeWidth];var Je={arrow:20,bar:90,triangle:25}[N],qe=(0,S.U1)(De,He,we,xe,-Je*Math.PI/180),st=(0,E.Z)(qe,2),ht=st[0],et=st[1],wt=(0,S.U1)(De,He,we,xe,Je*Math.PI/180),Lt=(0,E.Z)(wt,2);return[we,xe,ht,et,Lt[0],Lt[1]]},f=function(j,k,x){var N;if(j.points.length<2){var G=(0,E.Z)(j.points[0],2),ie=G[0],V=G[1],ce=(0,S.U1)(j.x+ie,j.y+V,k,x,j.angle),te=(0,E.Z)(ce,2),L=te[0],re=te[1],me=[L,re,L,re],Ce=(0,Z.WJ)(j);if(Ce){var We=H._.getMinMaxXYWithBoundText(j,[L,re,L,re],Ce);me=[We[0],We[1],We[2],We[3]]}return me}var Te=(N=W.R.get(j))===null||N===void 0?void 0:N[0],we=Te??function(q){var o=I.Z.generator(),i=(0,v.Z)(q);return o[q.roundness?"curve":i.fill?"polygon":"linearPath"](q.points,i)}(j),xe=$(we),_e=_(xe,function(q,o){return(0,S.U1)(j.x+q,j.y+o,k,x,j.angle)}),Oe=[_e[0],_e[1],_e[2],_e[3]],J=(0,Z.WJ)(j);if(J){var ke=H._.getMinMaxXYWithBoundText(j,Oe,J);Oe=[ke[0],ke[1],ke[2],ke[3]]}return Oe},t=function(j){return de.getBounds(j)},w=function(j){if(!j.length)return[0,0,0,0];var k=1/0,x=-1/0,N=1/0,G=-1/0;return j.forEach(function(ie){var V=t(ie),ce=(0,E.Z)(V,4),te=ce[0],L=ce[1],re=ce[2],me=ce[3];k=Math.min(k,te),N=Math.min(N,L),x=Math.max(x,re),G=Math.max(G,me)}),[k,N,x,G]},l=function(j,k){var x=w(j),N=(0,E.Z)(x,4),G=N[0],ie=N[1],V=N[2],ce=N[3];return[G+k.x,ie+k.y,V+k.x,ce+k.y]},a=function(j,k,x,N){if(!(0,n.bt)(j)&&!(0,n.F9)(j))return[j.x,j.y,j.x+k,j.y+x];var G,ie=(0,M.z)(0,k,(0,M.z)(1,x,j.points,N),N);if((0,n.F9)(j))G=g(ie);else{var V=I.Z.generator(),ce=j.roundness?V.curve(ie,(0,v.Z)(j)):V.linearPath(ie,(0,v.Z)(j)),te=$(ce);G=_(te)}var L=G,re=(0,E.Z)(L,4),me=re[0],Ce=re[1],We=re[2],Te=re[3];return[me+j.x,Ce+j.y,We+j.x,Te+j.y]},c=function(j,k){var x=I.Z.generator(),N=j.roundness==null?x.linearPath(k,(0,v.Z)(j)):x.curve(k,(0,v.Z)(j)),G=$(N),ie=_(G),V=(0,E.Z)(ie,4),ce=V[0],te=V[1],L=V[2],re=V[3];return[ce+j.x,te+j.y,L+j.x,re+j.y]},m=function(j,k){if(!j.length)return[0,0,0,0];var x=1/0,N=j[0];return j.forEach(function(G){var ie=t(G),V=(0,E.Z)(ie,4),ce=V[0],te=V[1],L=V[2],re=V[3],me=(0,S.LW)((ce+L)/2,(te+re)/2,k.x,k.y);me<x&&(x=me,N=G)}),t(N)},z=function(j){var k=w(j),x=(0,E.Z)(k,4),N=x[0],G=x[1],ie=x[2],V=x[3];return{minX:N,minY:G,maxX:ie,maxY:V,width:ie-N,height:V-G,midX:(N+ie)/2,midY:(G+V)/2}}},3528:function(Se,Q,e){e.d(Q,{uu:function(){return ce},T_:function(){return A},j_:function(){return X},oT:function(){return re},wX:function(){return x},MZ:function(){return Y},wB:function(){return N},Qu:function(){return G},pX:function(){return V},fb:function(){return te}});var D=e(2577),E=function(ue,ve){return[0,0,0,0,ve,ue,1,0]},y=function(ue,ve){return[0,0,0,0,ve,ue,0,0]},h=function(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,De=[0,0,0,0,0,0,0,0];if(ve<0||ve>7)throw new Error("Expected `index` between 0 and 7, got `".concat(ve,"`"));return ue!==0&&(De[ve]=ue),De},S=function(ue){return[ue[0],ue[1],ue[2],ue[3],-ue[4],-ue[5],-ue[6],-ue[7]]},I=function(ue,ve){return U(ve)?[ue[0]-ve,ue[1],ue[2],ue[3],ue[4],ue[5],ue[6],ue[7]]:[ue[0]-ve[0],ue[1]-ve[1],ue[2]-ve[2],ue[3]-ve[3],ue[4]-ve[4],ue[5]-ve[5],ue[6]-ve[6],ue[7]-ve[7]]},v=function(ue,ve){return U(ve)?[ue[0]*ve,ue[1]*ve,ue[2]*ve,ue[3]*ve,ue[4]*ve,ue[5]*ve,ue[6]*ve,ue[7]*ve]:[n(ue,ve),ve[1]*ue[0]+ve[0]*ue[1]-ve[4]*ue[2]+ve[5]*ue[3]+ve[2]*ue[4]-ve[3]*ue[5]-ve[7]*ue[6]-ve[6]*ue[7],ve[2]*ue[0]+ve[0]*ue[2]-ve[6]*ue[3]+ve[3]*ue[6],ve[3]*ue[0]+ve[6]*ue[2]+ve[0]*ue[3]-ve[2]*ue[6],ve[4]*ue[0]+ve[2]*ue[1]-ve[1]*ue[2]+ve[7]*ue[3]+ve[0]*ue[4]+ve[6]*ue[5]-ve[5]*ue[6]+ve[3]*ue[7],ve[5]*ue[0]-ve[3]*ue[1]+ve[7]*ue[2]+ve[1]*ue[3]-ve[6]*ue[4]+ve[0]*ue[5]+ve[4]*ue[6]+ve[2]*ue[7],ve[6]*ue[0]+ve[3]*ue[2]-ve[2]*ue[3]+ve[0]*ue[6],ve[7]*ue[0]+ve[6]*ue[1]+ve[5]*ue[2]+ve[4]*ue[3]+ve[3]*ue[4]+ve[2]*ue[5]+ve[1]*ue[6]+ve[0]*ue[7]]},n=function(ue,ve){return ve[0]*ue[0]+ve[2]*ue[2]+ve[3]*ue[3]-ve[6]*ue[6]},M=function(ue,ve){return[Z(ue,ve),ue[1]*ve[7]+ue[4]*ve[5]-ue[5]*ve[4]+ue[7]*ve[1],ue[2]*ve[7]-ue[4]*ve[6]+ue[6]*ve[4]+ue[7]*ve[2],ue[3]*ve[7]+ue[5]*ve[6]-ue[6]*ve[5]+ue[7]*ve[3],ue[4]*ve[7]+ue[7]*ve[4],ue[5]*ve[7]+ue[7]*ve[5],ue[6]*ve[7]+ue[7]*ve[6],ue[7]*ve[7]]},Z=function(ue,ve){return ue[0]*ve[7]+ue[1]*ve[6]+ue[2]*ve[5]+ue[3]*ve[4]+ue[4]*ve[3]+ue[5]*ve[2]+ue[6]*ve[1]+ue[7]*ve[0]},H=function(ue){return Math.sqrt(Math.abs(ue[0]*ue[0]-ue[2]*ue[2]-ue[3]*ue[3]+ue[6]*ue[6]))},W=function(ue){var ve=H(ue);if(ve===0||ve===1)return ue;var De=ue[6]<0?-1:1;return v(ue,De/ve)},u=function(ue){var ve=function(De){return Math.sqrt(Math.abs(De[7]*De[7]-De[5]*De[5]-De[4]*De[4]+De[1]*De[1]))}(ue);return ve===0||ve===1?ue:v(ue,1/ve)},U=function(ue){return typeof ue=="number"},le=(h(1,1),h(1,2),h(1,3),h(1,4),h(1,5),h(1,6),h(1,7),function(ue,ve,De){return W([0,De,ue,ve,0,0,0,0])}),de=function(ue,ve){return W(M(ve,ue))},he=function(ue,ve){return De=ue,[(He=ve)[0]*De[0]+He[2]*De[2]+He[3]*De[3]-He[6]*De[6],He[1]*De[0]+He[0]*De[1]-He[4]*De[2]+He[5]*De[3]+He[2]*De[4]-He[3]*De[5]-He[7]*De[6]-He[6]*De[7],He[2]*De[0]+He[0]*De[2]-He[6]*De[3]+He[3]*De[6],He[3]*De[0]+He[6]*De[2]+He[0]*De[3]-He[2]*De[6],He[4]*De[0]+He[7]*De[3]+He[0]*De[4]+He[3]*De[7],He[5]*De[0]+He[7]*De[2]+He[0]*De[5]+He[2]*De[7],He[6]*De[0]+He[0]*De[6],He[7]*De[0]+He[0]*De[7]];var De,He},pe=function(ue){var ve=(0,D.Z)(ue,2),De=ve[0];return[0,0,0,0,ve[1],De,1,0]},oe=function(ue){return[ue[5],ue[4]]},P=function(ue){return[0,0,0,0,Math.abs(ue[4]),Math.abs(ue[5]),1,0]},$=function(ue,ve){return W((De=ue,[(He=ve)[0]*De[0],He[1]*De[0]+He[0]*De[1],He[2]*De[0]+He[0]*De[2],He[3]*De[0]+He[0]*De[3],He[4]*De[0]+He[2]*De[1]-He[1]*De[2]+He[0]*De[4],He[5]*De[0]-He[3]*De[1]+He[1]*De[3]+He[0]*De[5],He[6]*De[0]+He[3]*De[2]-He[2]*De[3]+He[0]*De[6],He[7]*De[0]+He[6]*De[1]+He[5]*De[2]+He[4]*De[3]+He[3]*De[4]+He[2]*De[5]+He[1]*De[6]]));var De,He},b=function(ue,ve){return H(M(ue,ve))},R=function(ue,ve){return Z(ue,ve)},_=function(ue){return[0,0,0,0,ue[4],ue[5],0,0]},g=function(ue,ve){return De=v(ue,Math.sin(ve/2)),He=Math.cos(ve/2),U(He)?[De[0]+He,De[1],De[2],De[3],De[4],De[5],De[6],De[7]]:[De[0]+He[0],De[1]+He[1],De[2]+He[2],De[3]+He[3],De[4]+He[4],De[5]+He[5],De[6]+He[6],De[7]+He[7]];var De,He},O=function(ue,ve){return W(v(v(ue,ve),S(ue)))},s=e(2361),f=e(1493),t=e(4949),w=e(4183),l=e(7651),a=e(9827),c=e(4048),m=e(4761),z=e(2921);function j(ue,ve){var De=typeof Symbol<"u"&&ue[Symbol.iterator]||ue["@@iterator"];if(!De){if(Array.isArray(ue)||(De=function(et,wt){if(et){if(typeof et=="string")return k(et,wt);var Lt=Object.prototype.toString.call(et).slice(8,-1);if(Lt==="Object"&&et.constructor&&(Lt=et.constructor.name),Lt==="Map"||Lt==="Set")return Array.from(et);if(Lt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Lt))return k(et,wt)}}(ue))||ve&&ue&&typeof ue.length=="number"){De&&(ue=De);var He=0,Je=function(){};return{s:Je,n:function(){return He>=ue.length?{done:!0}:{done:!1,value:ue[He++]}},e:function(et){throw et},f:Je}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var qe,st=!0,ht=!1;return{s:function(){De=De.call(ue)},n:function(){var et=De.next();return st=et.done,et},e:function(et){ht=!0,qe=et},f:function(){try{st||De.return==null||De.return()}finally{if(ht)throw qe}}}}function k(ue,ve){(ve==null||ve>ue.length)&&(ve=ue.length);for(var De=0,He=new Array(ve);De<ve;De++)He[De]=ue[De];return He}var x=function ue(ve,De,He,Je,qe){var st=10/De.zoom.value,ht=[Je,qe];if(ie(De,ve)&&(0,c.oY)([ve],De))return V(ve,ht,st,He);var et=(0,m.WJ)(ve);return et&&ue(et,De,He,Je,qe)?!0:G(ve,De,He,ht)},N=function(ue,ve,De,He,Je){var qe=10/ve.zoom.value,st=(0,m.WJ)(ue);return(!st||!x(st,ve,De,He,Je))&&!G(ue,ve,De,[He,Je])&&V(ue,[He,Je],qe,De)},G=function(ue,ve,De,He){var Je=10/ve.zoom.value,qe=(0,l.iB)(ue)?me:function(st){if(st.type==="arrow")return!1;if(st.type==="freedraw")return!0;var ht=!(0,a.Qm)(st.backgroundColor)||(0,w.Xo)(st)||(0,w.gs)(st);return st.type==="line"?ht&&(0,s.g6)(st.points):ht||(0,w.pC)(st)}(ue)?Ce:We;return L({element:ue,point:He,threshold:Je,check:qe,frameNameBoundsCache:De})},ie=function(ue,ve){return ue.selectedElementIds[ve.id]},V=function(ue,ve,De,He){var Je=(0,D.Z)(ve,2),qe=Je[0],st=Je[1];if(ue.type==="frame")return L({element:ue,point:[qe,st],threshold:De,check:Ce,frameNameBoundsCache:He});var ht=(0,t.qf)(ue),et=(0,D.Z)(ht,4),wt=et[0],Lt=et[1],St=et[2],yt=et[3],Wt=(wt+St)/2,Ft=(Lt+yt)/2,Ve=(0,s.U1)(qe,st,Wt,Ft,-ue.angle),bt=(0,D.Z)(Ve,2),at=bt[0],mt=bt[1];return at>wt-De&&at<St+De&&mt>Lt-De&&mt<yt+De},ce=function(ue,ve){var De=ve.x,He=ve.y,Je=te(ue,ue.width,ue.height);return L({element:ue,point:[De,He],threshold:Je,check:Te,frameNameBoundsCache:null})},te=function(ue,ve,De){var He=(ue.type==="diamond"?1/Math.sqrt(2):1)*Math.min(ve,De);return Math.max(16,Math.min(.25*He,32))},L=function(ue){switch(ue.element.type){case"rectangle":case"embeddable":case"image":case"text":case"diamond":case"ellipse":var ve=re(ue.element,ue.point);return ue.check(ve,ue.threshold);case"freedraw":return!!ue.check(we(ue.element,ue.point),ue.threshold)&&ke(ue.element,ue.point,ue.threshold);case"arrow":case"line":return q(ue);case"selection":return console.warn("This should not happen, we need to investigate why it does."),!1;case"frame":var De;if(ue.check(re(ue.element,ue.point),ue.threshold))return!0;var He=(De=ue.frameNameBoundsCache)===null||De===void 0?void 0:De.get(ue.element);return!!He&&ue.check(xe(He,ue.point),ue.threshold)}},re=function(ue,ve){switch(ue.type){case"rectangle":case"image":case"text":case"embeddable":case"frame":return we(ue,ve);case"diamond":return _e(ue,ve);case"ellipse":return Oe(ue,ve)}},me=function(ue,ve){return ue<0},Ce=function(ue,ve){return ue<ve},We=function(ue,ve){return Math.abs(ue)<ve},Te=function(ue,ve){return 0<=ue&&ue<ve},we=function(ue,ve){var De=o(ue,ve),He=(0,D.Z)(De,4),Je=He[1],qe=He[2],st=He[3];return Math.max(R(Je,le(0,1,-st)),R(Je,le(1,0,-qe)))},xe=function(ue,ve){var De=i(ve,ue),He=(0,D.Z)(De,4),Je=He[1],qe=He[2],st=He[3];return Math.max(R(Je,le(0,1,-st)),R(Je,le(1,0,-qe)))},_e=function(ue,ve){var De=o(ue,ve),He=(0,D.Z)(De,4),Je=He[1],qe=He[2],st=He[3],ht=le(st,qe,-st*qe);return R(Je,ht)},Oe=function(ue,ve){var De,He=J(ue,ve),Je=(0,D.Z)(He,2),qe=Je[0],st=Je[1];return De=st,-Math.sign(De[1])*R(qe,st)},J=function(ue,ve){var De=o(ue,ve),He=(0,D.Z)(De,4),Je=He[1],qe=He[2],st=He[3],ht=oe(Je),et=(0,D.Z)(ht,2),wt=et[0],Lt=et[1],St=.707,yt=.707,Wt=qe,Ft=st;[0,1,2,3].forEach(function(at){var mt=Wt*St,ut=Ft*yt,Ot=(Wt*Wt-Ft*Ft)*Math.pow(St,3)/Wt,Pt=(Ft*Ft-Wt*Wt)*Math.pow(yt,3)/Ft,Gt=mt-Ot,Ct=ut-Pt,ur=wt-Ot,rr=Lt-Pt,Tr=Math.hypot(Ct,Gt),ot=Math.hypot(rr,ur);St=Math.min(1,Math.max(0,(ur*Tr/ot+Ot)/Wt)),yt=Math.min(1,Math.max(0,(rr*Tr/ot+Pt)/Ft));var Rt=Math.hypot(yt,St);St/=Rt,yt/=Rt});var Ve,bt=E(Wt*St,Ft*yt);return[Je,he(de(Je,Ve=bt),Ve)]},ke=function(ue,ve,De){var He,Je;if(ue.angle===0)He=ve[0]-ue.x,Je=ve[1]-ue.y;else{var qe=(0,t.qf)(ue),st=(0,D.Z)(qe,4),ht=st[0],et=st[1],wt=st[2],Lt=st[3],St=(0,s.xj)(ve,[ht+(wt-ht)/2,et+(Lt-et)/2],-ue.angle);He=St[0]-ue.x,Je=St[1]-ue.y}var yt,Wt=(0,D.Z)(ue.points,2),Ft=Wt[0],Ve=Wt[1];if((0,s.LW)(Ft[0],Ft[1],He,Je)<De||(0,s.LW)(Ve[0],Ve[1],He,Je)<De)return!0;for(var bt=0;bt<ue.points.length;bt++){var at=[Ve[0]-Ft[0],Ve[1]-Ft[1]],mt=Math.hypot(at[1],at[0]),ut=[at[0]/mt,at[1]/mt],Ot=[He-Ft[0],Je-Ft[1]],Pt=(Ot[0]*ut[0]+Ot[1]*ut[1])/Math.hypot(ut[1],ut[0]);yt=[Ft[0]+ut[0]*Pt,Ft[1]+ut[1]*Pt];var Gt=(0,s.LW)(yt[0],yt[1],Ft[0],Ft[1]),Ct=(0,s.LW)(yt[0],yt[1],Ve[0],Ve[1]);if(yt=Ct<Gt&&Gt>mt?Ve:Gt<Ct&&Ct>mt?Ft:yt,Math.hypot(Je-yt[1],He-yt[0])<De)return!0;Ft=Ve,Ve=ue.points[bt+1]}var ur=z.R.get(ue);return!(!ur||!ur.sets.length)&&(ue.fillStyle==="solid"?Ye(ur,He,Je,"round"):tt(ur,He,Je,De))},q=function(ue){var ve=ue.element,De=ue.threshold;if(!z.R.get(ve))return!1;var He=o(ue.element,ue.point),Je=(0,D.Z)(He,4),qe=Je[0],st=Je[1],ht=Je[2],et=Je[3],wt=le(0,1,-et),Lt=le(1,0,-ht);if(!Ce(R(st,wt),De)||!Ce(R(st,Lt),De))return!1;var St=oe(qe),yt=(0,D.Z)(St,2),Wt=yt[0],Ft=yt[1],Ve=z.R.get(ve);return Ve?ue.check===Ce&&Ve.some(function(bt){return Ye(bt,Wt,Ft,ve.roundness?"round":"sharp")})?!0:Ve.some(function(bt){return tt(bt,Wt,Ft,De)}):!1},o=function(ue,ve){var De=pe(ve),He=(0,t.qf)(ue),Je=(0,D.Z)(He,4),qe=Je[0],st=Je[1],ht=Je[2],et=Je[3],wt=B(qe,st,ht,et),Lt=g(wt,ue.angle),St=O(Lt,De),yt=I(St,_(wt)),Wt=P(yt),Ft=y(ue.x,ue.y);return[I(St,Ft),Wt,(ht-qe)/2,(et-st)/2]},i=function(ue,ve){var De=pe(ue),He=(0,t.M$)(ve),Je=(0,D.Z)(He,4),qe=Je[0],st=Je[1],ht=Je[2],et=Je[3],wt=B(qe,st,ht,et),Lt=g(wt,ve.angle),St=O(Lt,De),yt=I(St,_(wt)),Wt=P(yt),Ft=y(ve.x,ve.y);return[I(St,Ft),Wt,(ht-qe)/2,(et-st)/2]},p=function(ue){var ve=(0,t.qf)(ue),De=(0,D.Z)(ve,4),He=De[0],Je=De[1],qe=De[2],st=De[3],ht=B(He,Je,qe,st),et=g(ht,ue.angle),wt=S(function(Lt){return[1,0,0,0,-.5*Lt[5],.5*Lt[4],0,0]}(_(ht)));return v(wt,et)},B=function(ue,ve,De,He){return E((ue+De)/2,(ve+He)/2)},A=function(ue,ve,De){var He,Je=p(ue),qe=O(Je,pe(ve)),st=O(Je,pe(De)),ht=de(qe,st),et=ue.height/ue.width,wt=ue.width/2,Lt=ue.height/2,St=ht[2],yt=ht[3],Wt=ht[1],Ft=Math.abs(yt),Ve=Math.abs(St);switch(ue.type){case"rectangle":case"image":case"text":case"embeddable":case"frame":He=Wt/(wt*(Ve+et*Ft));break;case"diamond":He=Ft<Ve?Wt/(Ve*wt):Wt/(Ft*Lt);break;case"ellipse":He=Wt/(wt*Math.sqrt(Math.pow(St,2)+Math.pow(et,2)*Math.pow(yt,2)))}return He||0},X=function(ue,ve,De){if(ve===0){var He=(0,t.qf)(ue),Je=(0,D.Z)(He,4),qe=Je[0],st=Je[1],ht=Je[2],et=Je[3],wt=B(qe,st,ht,et);return oe(wt)}var Lt,St=p(ue),yt=O(St,pe(De)),Wt=S(St);switch(ue.type){case"rectangle":case"image":case"text":case"diamond":case"embeddable":case"frame":Lt=Ke(ue,ve,yt);break;case"ellipse":Lt=Ie(ue,ve,yt)}return oe(O(Wt,Lt))},Y=function(ue,ve,De){var He=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,Je=p(ue),qe=O(Je,pe(ve)),st=O(Je,pe(De)),ht=de(qe,st),et=S(Je),wt=ee(ue,ht,qe,He);return wt.map(function(Lt){return oe(O(et,Lt))})},ee=function(ue,ve,De){var He,Je=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;switch(ue.type){case"rectangle":case"image":case"text":case"diamond":case"embeddable":case"frame":var qe=ge(ue);He=qe.flatMap(function(ht,et){var wt=[ht,qe[(et+1)%4]];return be(ve,Re(wt,Je))}).concat(qe.flatMap(function(ht){return Be(ht,Je,ve)}));break;case"ellipse":He=Ze(ue,Je,ve)}if(He.length<2)return[];var st=He.sort(function(ht,et){return b(ht,De)-b(et,De)});return[st[0],st[st.length-1]]},ge=function(ue){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,De=ve*ue.width/2,He=ve*ue.height/2;switch(ue.type){case"rectangle":case"image":case"text":case"embeddable":case"frame":return[E(De,He),E(De,-He),E(-De,-He),E(-De,He)];case"diamond":return[E(0,He),E(De,0),E(0,-He),E(-De,0)]}},be=function(ue,ve){var De=(0,D.Z)(ve,2),He=De[0],Je=De[1];return R(He,ue)*R(Je,ue)>=0?[]:[$(ue,de(He,Je))]},Re=function(ue,ve){var De=(0,D.Z)(ue,2),He=De[0],Je=De[1],qe=function(st,ht){var et=.5*ht;return[1,0,0,0,et*st[4],et*st[5],0,0]}(function(st,ht){return u([0,0,0,0,ht[4]-st[4],ht[5]-st[5],0,0])}(He,Je),ve);return[O(qe,He),O(qe,Je)]},Ze=function(ue,ve,De){var He=ue.width/2+ve,Je=ue.height/2+ve,qe=De[2],st=De[3],ht=De[1],et=He*He*qe*qe+Je*Je*st*st,wt=et-ht*ht;if(et===0||wt<=0)return[];var Lt=Math.sqrt(wt),St=-He*He*qe*ht,yt=-Je*Je*st*ht;return[E((St+He*Je*st*Lt)/et,(yt-He*Je*qe*Lt)/et),E((St-He*Je*st*Lt)/et,(yt+He*Je*qe*Lt)/et)]},Be=function(ue,ve,De){if(ve===0)return R(De,ue)===0?[ue]:[];var He=De[2],Je=De[3],qe=De[1],st=oe(ue),ht=(0,D.Z)(st,2),et=ht[0],wt=ht[1],Lt=He*He+Je*Je,St=ve*ve*Lt-Math.pow(He*et+Je*wt+qe,2);if(Lt===0||St<=0)return[];var yt=Math.sqrt(St),Wt=et*Je*Je-wt*He*Je-He*qe,Ft=wt*He*He-et*He*Je-Je*qe;return[E((Wt+Je*yt)/Lt,(Ft-He*yt)/Lt),E((Wt-Je*yt)/Lt,(Ft+He*yt)/Lt)]},Ie=function(ue,ve,De){var He=Math.abs(ve),Je=ue.width*He/2,qe=ue.height*He/2,st=Math.sign(ve),ht=oe(De),et=(0,D.Z)(ht,2),wt=et[0],Lt=et[1],St=Lt===0?1e-4:Lt,yt=Math.pow(wt,2)*Math.pow(qe,2)+Math.pow(St,2)*Math.pow(Je,2),Wt=(-wt*Math.pow(qe,2)+st*St*Math.sqrt(Math.max(0,yt-Math.pow(Je,2)*Math.pow(qe,2))))/yt,Ft=(-Wt*wt-1)/St;Ft===0&&(Ft=.01*(Object.is(Ft,-0)?-1:1));var Ve=-Math.pow(Je,2)*Wt/(Math.pow(Ft,2)*Math.pow(qe,2)+Math.pow(Wt,2)*Math.pow(Je,2));return E(Ve,(-Wt*Ve-1)/Ft)},Ke=function(ue,ve,De){var He=Math.abs(ve),Je=Math.sign(ve),qe=ge(ue,He),st=0,ht=null;return qe.forEach(function(et){var wt=Je*de(De,et)[1];wt>st&&(st=wt,ht=et)}),ht},Ye=function(ue,ve,De,He){var Je,qe=[],st=!1,ht=j((0,t.CM)(ue));try{for(ht.s();!(Je=ht.n()).done;){var et=Je.value;et.op==="move"?(st=!st)&&qe.push([et.data[0],et.data[1]]):et.op==="bcurveTo"?st&&(qe.push([et.data[0],et.data[1]]),qe.push([et.data[2],et.data[3]]),qe.push([et.data[4],et.data[5]])):et.op==="lineTo"&&st&&qe.push([et.data[0],et.data[1]])}}catch(Lt){ht.e(Lt)}finally{ht.f()}if(qe.length>=4){if(He==="sharp")return(0,s.c9)(qe,ve,De);var wt=(0,f.sU)(qe,10,5);return(0,s.c9)(wt,ve,De)}return!1},tt=function(ue,ve,De,He){var Je=(0,t.CM)(ue),qe=[0,0];return Je.some(function(st,ht){var et=st.op,wt=st.data;if(et==="move")qe=wt;else{if(et==="bcurveTo"){var Lt=[wt[0],wt[1]],St=[wt[2],wt[3]],yt=[wt[4],wt[5]],Wt=qe;qe=yt;var Ft=function(Ve,bt,at,mt,ut,Ot){for(var Pt=(0,D.Z)(ut,2),Gt=Pt[0],Ct=Pt[1],ur=function(Rt,_t){return Math.pow(1-Rt,3)*mt[_t]+3*Rt*Math.pow(1-Rt,2)*at[_t]+3*Math.pow(Rt,2)*(1-Rt)*bt[_t]+Ve[_t]*Math.pow(Rt,3)},rr=0;rr<=1;){var Tr=ur(rr,0),ot=ur(rr,1);if(Math.sqrt(Math.pow(Tr-Gt,2)+Math.pow(ot-Ct,2))<Ot)return!0;rr+=.01}return!1}(Wt,Lt,St,yt,[ve,De],He);return Ft}if(et==="lineTo")return Ye(ue,ve,De,"sharp");et==="qcurveTo"&&console.warn("qcurveTo is not implemented yet")}return!1})}},761:function(Se,Q,e){e.d(Q,{LM:function(){return s},eX:function(){return l},g0:function(){return t},uU:function(){return f},xm:function(){return a}});var D=e(7169),E=e(2767),y=e(9937),h=e(8227),S=e(9827),I=e(7652),v=e(5742),n=e(4761),M=e(4183);function Z(c,m){var z=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!z){if(Array.isArray(c)||(z=function(ie,V){if(ie){if(typeof ie=="string")return H(ie,V);var ce=Object.prototype.toString.call(ie).slice(8,-1);if(ce==="Object"&&ie.constructor&&(ce=ie.constructor.name),ce==="Map"||ce==="Set")return Array.from(ie);if(ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ce))return H(ie,V)}}(c))||m&&c&&typeof c.length=="number"){z&&(c=z);var j=0,k=function(){};return{s:k,n:function(){return j>=c.length?{done:!0}:{done:!1,value:c[j++]}},e:function(ie){throw ie},f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x,N=!0,G=!1;return{s:function(){z=z.call(c)},n:function(){var ie=z.next();return N=ie.done,ie},e:function(ie){G=!0,x=ie},f:function(){try{N||z.return==null||z.return()}finally{if(G)throw x}}}}function H(c,m){(m==null||m>c.length)&&(m=c.length);for(var z=0,j=new Array(m);z<m;z++)j[z]=c[z];return j}function W(c,m){var z=Object.keys(c);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(c);m&&(j=j.filter(function(k){return Object.getOwnPropertyDescriptor(c,k).enumerable})),z.push.apply(z,j)}return z}function u(c){for(var m=1;m<arguments.length;m++){var z=arguments[m]!=null?arguments[m]:{};m%2?W(Object(z),!0).forEach(function(j){(0,D.Z)(c,j,z[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(z)):W(Object(z)).forEach(function(j){Object.defineProperty(c,j,Object.getOwnPropertyDescriptor(z,j))})}return c}var U=new Map,le=/^(?:http(?:s)?:\/\/)?(?:www\.)?youtu(?:be\.com|\.be)\/(embed\/|watch\?v=|shorts\/|playlist\?list=|embed\/videoseries\?list=)?([a-zA-Z0-9_-]+)(?:\?t=|&t=|\?start=|&start=)?([a-zA-Z0-9_-]+)?[^\s]*$/,de=/^(?:http(?:s)?:\/\/)?(?:(?:w){3}.)?(?:player\.)?vimeo\.com\/(?:video\/)?([^?\s]+)(?:\?.*)?$/,he=/^https:\/\/(?:www\.)?figma\.com/,pe=/^https:\/\/gist\.github\.com/,oe=/^<script[\s\S]*?\ssrc=["'](https:\/\/gist.github.com\/.*?)\.js["']/i,P=/(?:http(?:s)?:\/\/)?(?:(?:w){3}.)?twitter.com/,$=/^<blockquote[\s\S]*?\shref=["'](https:\/\/twitter.com\/[^"']*)/i,b=/^https:\/\/(?:www\.)?val.town\/(v|embed)\/[a-zA-Z_$][0-9a-zA-Z_$]+\.[a-zA-Z_$][0-9a-zA-Z_$]+/,R=/^<(?:iframe|blockquote)[\s\S]*?\s(?:src|href)=["']([^"']*)["'][\s\S]*?>$/i,_=/giphy.com\/(?:clips|embed|gifs)\/[a-zA-Z0-9]*?-?([a-zA-Z0-9]+)(?:[^a-zA-Z0-9]|$)/,g=new Set(["youtube.com","youtu.be","vimeo.com","player.vimeo.com","figma.com","link.excalidraw.com","gist.github.com","twitter.com","*.simplepdf.eu","stackblitz.com","val.town","giphy.com","dddice.com"]),O=function(c){return"<html><body>".concat(c,"</body></html>")},s=function(c){if(!c)return null;if(U.has(c))return U.get(c);var m=c,z="generic",j={w:560,h:840},k=c.match(le);if(k!=null&&k[2]){var x=k[3]?"&start=".concat(k[3]):"",N=c.includes("shorts");switch(z="video",k[1]){case"embed/":case"watch?v=":case"shorts/":default:c="https://www.youtube.com/embed/".concat(k[2],"?enablejsapi=1").concat(x);break;case"playlist?list=":case"embed/videoseries?list=":c="https://www.youtube.com/embed/videoseries?list=".concat(k[2],"&enablejsapi=1").concat(x)}return j=N?{w:315,h:560}:{w:560,h:315},U.set(m,{link:c,aspectRatio:j,type:z}),{link:c,aspectRatio:j,type:z}}var G=c.match(de);if(G!=null&&G[1]){var ie=G?.[1],V=/^\d+$/.test(ie)?void 0:(0,h.t)("toast.unrecognizedLinkFormat");return z="video",c="https://player.vimeo.com/video/".concat(ie,"?api=1"),j={w:560,h:315},U.set(m,{link:c,aspectRatio:j,type:z}),{link:c,aspectRatio:j,type:z,warning:V}}if(c.match(he))return z="generic",c="https://www.figma.com/embed?embed_host=share&url=".concat(encodeURIComponent(c)),j={w:550,h:550},U.set(m,{link:c,aspectRatio:j,type:z}),{link:c,aspectRatio:j,type:z};var ce=c.match(b);if(ce)return c=ce[1]==="embed"?ce[0]:ce[0].replace("/v","/embed"),U.set(m,{link:c,aspectRatio:j,type:z}),{link:c,aspectRatio:j,type:z};if(P.test(c)){var te;if(/<blockquote/.test(c)){var L=O(c);te={type:"document",srcdoc:function(){return L},aspectRatio:{w:480,h:480}}}else te={type:"document",srcdoc:function(Ce){return O('<blockquote class="twitter-tweet" data-dnt="true" data-theme="'.concat(Ce,'"><a href="').concat(c,'"></a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"><\/script>'))},aspectRatio:{w:480,h:480}};return U.set(m,te),te}if(pe.test(c)){var re;if(/<script>/.test(c)){var me=O(c);re={type:"document",srcdoc:function(){return me},aspectRatio:{w:550,h:720}}}else re={type:"document",srcdoc:function(){return O(` + <script src="`.concat(c,`.js"><\/script> + <style type="text/css"> + * { margin: 0px; } + table, .gist { height: 100%; } + .gist .gist-file { height: calc(100vh - 2px); padding: 0px; display: grid; grid-template-rows: 1fr auto; } + </style> + `))},aspectRatio:{w:550,h:720}};return U.set(c,re),re}return U.set(c,{link:c,aspectRatio:j,type:z}),{link:c,aspectRatio:j,type:z}},f=function(c){if((0,M.gs)(c))return!0;if(c.type==="text"){var m=(0,n.tl)(c);if(m&&(0,M.gs)(m))return!0}return!1},t=function(c){var m,z=c.link&&c?.link!==""?c.link:"Empty Web-Embed",j=Math.max(Math.min(c.width/2,c.width/z.length),c.width/30),k=y.ut.Helvetica,x=(0,S.mO)({fontSize:j,fontFamily:k});return(0,v.VL)({x:c.x+c.width/2,y:c.y+c.height/2,strokeColor:c.strokeColor!=="transparent"?c.strokeColor:"black",backgroundColor:"transparent",fontFamily:k,fontSize:j,text:(0,n.lD)(z,x,c.width-20),textAlign:"center",verticalAlign:y.oX.MIDDLE,angle:(m=c.angle)!==null&&m!==void 0?m:0})},w=((0,E.z)({name:"setEmbeddableAsActiveTool",trackEvent:{category:"toolbar"},perform:function(c,m,z,j){var k=(0,S.Om)(m,{type:"embeddable"});return(0,I.Uk)(j.canvas,u(u({},m),{},{activeTool:k})),{elements:c,appState:u(u({},m),{},{activeTool:(0,S.Om)(m,{type:"embeddable"})}),commitToHistory:!1}}}),function(c,m){try{var z=new URL(c).hostname.replace(/^www\./,""),j=z.replace(/^([^.]+)/,"*");if(m instanceof Set)return g.has(z)||g.has(j);if(z===m.replace(/^www\./,""))return!0}catch{}return!1}),l=function(c){var m=c.match($);if(m&&m.length===2)return m[1];var z=c.match(oe);if(z&&z.length===2)return z[1];if(_.test(c))return"https://giphy.com/embed/".concat(_.exec(c)[1]);var j=c.match(R);return j&&j.length===2?j[1]:c},a=function(c,m){if(!c)return!1;if(m!=null)if(typeof m=="function"){var z=m(c);if(typeof z=="boolean")return z}else{if(typeof m=="boolean")return m;if(m instanceof RegExp)return m.test(c);if(Array.isArray(m)){var j,k=Z(m);try{for(k.s();!(j=k.n()).done;){var x=j.value;if(x instanceof RegExp){if(c.match(x))return!0}else if(w(c,x))return!0}}catch(N){k.e(N)}finally{k.f()}return!1}}return w(c,g)}},4178:function(Se,Q,e){e.d(Q,{PK:function(){return H},Xx:function(){return W},bp:function(){return U},oA:function(){return u}});var D=e(2577),E=e(7169),y=e(8950),h=e(2975),S=e.n(h),I=e(9937),v=e(8227),n=e(4183);function M(le,de){var he=Object.keys(le);if(Object.getOwnPropertySymbols){var pe=Object.getOwnPropertySymbols(le);de&&(pe=pe.filter(function(oe){return Object.getOwnPropertyDescriptor(le,oe).enumerable})),he.push.apply(he,pe)}return he}function Z(le){for(var de=1;de<arguments.length;de++){var he=arguments[de]!=null?arguments[de]:{};de%2?M(Object(he),!0).forEach(function(pe){(0,E.Z)(le,pe,he[pe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(le,Object.getOwnPropertyDescriptors(he)):M(Object(he)).forEach(function(pe){Object.defineProperty(le,pe,Object.getOwnPropertyDescriptor(he,pe))})}return le}var H=function(le){return new Promise(function(de,he){var pe=new Image;pe.onload=function(){de(pe)},pe.onerror=function(oe){he(oe)},pe.src=le})},W=function(){var le=(0,y.Z)(S().mark(function de(he){var pe,oe,P,$,b;return S().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return pe=he.fileIds,oe=he.files,P=he.imageCache,$=new Map,b=new Map,R.next=5,Promise.all(pe.reduce(function(_,g){var O=oe[g];return O&&!$.has(g)?($.set(g,!0),_.concat((0,y.Z)(S().mark(function s(){var f,t,w;return S().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(l.prev=0,O.mimeType!==I.LO.binary){l.next=3;break}throw new Error("Only images can be added to ImageCache");case 3:return f=H(O.dataURL),t={image:f,mimeType:O.mimeType},P.set(g,t),l.next=8,f;case 8:w=l.sent,P.set(g,Z(Z({},t),{},{image:w})),l.next=15;break;case 12:l.prev=12,l.t0=l.catch(0),b.set(g,!0);case 15:case"end":return l.stop()}},s,null,[[0,12]])}))())):_},[]));case 5:return R.abrupt("return",{imageCache:P,updatedFiles:$,erroredFiles:b});case 6:case"end":return R.stop()}},de)}));return function(de){return le.apply(this,arguments)}}(),u=function(le){return le.filter(function(de){return(0,n.wi)(de)})},U=function(){var le=(0,y.Z)(S().mark(function de(he){var pe,oe,P,$,b,R,_;return S().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(pe=new DOMParser().parseFromString(he,I.LO.svg),oe=pe.querySelector("svg"),!pe.querySelector("parsererror")&&((O=oe)==null?void 0:O.nodeName.toLowerCase())==="svg"){g.next=7;break}throw new Error((0,v.t)("errors.invalidSVGString"));case 7:return oe.hasAttribute("xmlns")||oe.setAttribute("xmlns",I.hR),oe.hasAttribute("width")&&oe.hasAttribute("height")||(P=oe.getAttribute("viewBox"),$=oe.getAttribute("width")||"50",b=oe.getAttribute("height")||"50",P&&(R=P.match(/\d+ +\d+ +(\d+) +(\d+)/))&&(_=(0,D.Z)(R,3),$=_[1],b=_[2]),oe.setAttribute("width",$),oe.setAttribute("height",b)),g.abrupt("return",oe.outerHTML);case 10:case"end":return g.stop()}var O},de)}));return function(de){return le.apply(this,arguments)}}()},7651:function(Se,Q,e){e.d(Q,{ox:function(){return I.ox},BQ:function(){return x},_M:function(){return N},EJ:function(){return O},o8:function(){return b},Sy:function(){return h.Sy},Y5:function(){return S.Y5},os:function(){return S.os},KP:function(){return S.KP},Un:function(){return le},UC:function(){return S.UC},$V:function(){return g},qf:function(){return S.qf},Pi:function(){return S.Pi},jt:function(){return W},o4:function(){return E.o4},Lm:function(){return m},Xf:function(){return z},Qp:function(){return E.Qp},T:function(){return de.T},xx:function(){return de.xx},Uo:function(){return a},n2:function(){return u},PC:function(){return I.PC},kK:function(){return I.kK},n_:function(){return c},wX:function(){return v.wX},r2:function(){return y.r2},He:function(){return y.He},wB:function(){return v.wB},QD:function(){return E.QD},qP:function(){return j},iB:function(){return y.iB},Up:function(){return h.Up},vw:function(){return h.vw},y8:function(){return h.y8},VL:function(){return h.VL},oN:function(){return oe.oN},JZ:function(){return h.JZ},RT:function(){return t},b_:function(){return s.b_},vY:function(){return de.vY},N_:function(){return h.N_}});var D=e(7169),E=e(7935),y=e(4183),h=e(5742),S=e(4949),I=e(4048),v=e(3528),n=e(2577),M=e(2726),Z=["rotation"],H=function(G,ie,V){return ie>=G[0]&&ie<=G[0]+G[2]&&V>=G[1]&&V<=G[1]+G[3]},W=function(G,ie,V,ce,te,L){return G.reduce(function(re,me){if(re)return re;var Ce=function(We,Te,we,xe,_e,Oe){if(!Te.selectedElementIds[We.id])return!1;var J=(0,I.PC)(We,_e,Oe),ke=J.rotation,q=(0,M.Z)(J,Z);if(ke&&H(ke,we,xe))return"rotation";var o=Object.keys(q).filter(function(i){var p=q[i];return!!p&&H(p,we,xe)});return o.length>0&&o[0]}(me,ie,V,ce,te,L);return Ce?{element:me,transformHandleType:Ce}:null},null)},u=function(G,ie,V,ce,te){var L=(0,n.Z)(G,4),re=L[0],me=L[1],Ce=L[2],We=L[3],Te=(0,I.kK)([re,me,Ce,We,(re+Ce)/2,(me+We)/2],0,ce,te,I.ox);return Object.keys(Te).find(function(we){var xe=Te[we];return xe&&H(xe,ie,V)})||!1},U=["ns","nesw","ew","nwse"],le=function(G){var ie=G.element,V=G.transformHandleType,ce=ie&&Math.sign(ie.height)*Math.sign(ie.width)==-1,te=null;switch(V){case"n":case"s":te="ns";break;case"w":case"e":te="ew";break;case"nw":case"se":te=ce?"nesw":"nwse";break;case"ne":case"sw":te=ce?"nwse":"nesw";break;case"rotation":return"grab"}return te&&ie&&(te=function(L,re){var me=U.indexOf(L);if(me>=0){var Ce=Math.round(re/(Math.PI/4));L=U[(me+Ce)%U.length]}return L}(te,ie.angle)),te?"".concat(te,"-resize"):""},de=e(4381),he=e(9645),pe=e(583),oe=e(4761),P=e(9215),$=e(2361),b=function(G,ie,V,ce,te,L,re){var me=new Set(ie),Ce=ie.filter(function(we){return(0,y.He)(we)}).map(function(we){return we.id});Ce.length>0&&te.getNonDeletedElements().filter(function(we){return!(0,y.Xh)(we)}).filter(function(we){return we.frameId!==null}).filter(function(we){return Ce.includes(we.frameId)}).forEach(function(we){return me.add(we)});var We=(0,S.KP)(Array.from(me).map(function(we){var xe;return(xe=G.originalElements.get(we.id))!==null&&xe!==void 0?xe:we})),Te=R(We,V,L,re);me.forEach(function(we){if(_(G,we,Te),!(0,y.Yv)(we)&&(!we.groupIds.length||ce.editingGroupId&&!(0,P.zq)(ce,we))){var xe=(0,oe.WJ)(we);xe&&_(G,xe,Te)}(0,he.Ww)(we,{simultaneouslyUpdated:Array.from(me)})})},R=function(G,ie,V,ce){var te=(0,n.Z)(G,2),L=te[0],re=te[1],me=L+ie.x+V.x,Ce=re+ie.y+V.y;if(V.x===0||V.y===0){var We=(0,$.wC)(L+ie.x,re+ie.y,ce),Te=(0,n.Z)(We,2),we=Te[0],xe=Te[1];V.x===0&&(me=we),V.y===0&&(Ce=xe)}return{x:me-L,y:Ce-re}},_=function(G,ie,V){var ce,te=(ce=G.originalElements.get(ie.id))!==null&&ce!==void 0?ce:ie,L=te.x+V.x,re=te.y+V.y;(0,pe.DR)(ie,{x:L,y:re})},g=function(G,ie,V){var ce=(0,S.KP)(G),te=(0,n.Z)(ce,2);return[ie-te[0],V-te[1]]},O=function(G,ie,V,ce,te,L,re,me,Ce,We,Te){var we=arguments.length>11&&arguments[11]!==void 0?arguments[11]:null;if(Ce&&G.type!=="selection")if(Te)me=re/Te;else{if(Math.abs(L-ce)>Math.abs(te-V)){var xe=(0,E.uK)(ie,me,te<V?-re:re);re=xe.width,me=xe.height}else{var _e=(0,E.uK)(ie,re,L<ce?-me:me);re=_e.width,me=_e.height}me<0&&(me=-me)}var Oe,J,ke=te<V?V-re:V,q=L<ce?ce-me:ce;We&&(ke=V-(re+=re)/2,q=ce-(me+=me)/2),re!==0&&me!==0&&(0,pe.DR)(G,{x:ke+((Oe=we?.x)!==null&&Oe!==void 0?Oe:0),y:q+((J=we?.y)!==null&&J!==void 0?J:0),width:re,height:me})},s=e(3474),f=e(4105),t=function(G,ie){return!!(!G.viewModeEnabled&&(G.activeTool.type!=="custom"&&(G.editingElement||G.activeTool.type!=="selection"&&G.activeTool.type!=="eraser"&&G.activeTool.type!=="hand"&&G.activeTool.type!=="laser")||(0,f.eD)(ie,G).length))};function w(G,ie){var V=Object.keys(G);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);ie&&(ce=ce.filter(function(te){return Object.getOwnPropertyDescriptor(G,te).enumerable})),V.push.apply(V,ce)}return V}function l(G){for(var ie=1;ie<arguments.length;ie++){var V=arguments[ie]!=null?arguments[ie]:{};ie%2?w(Object(V),!0).forEach(function(ce){(0,D.Z)(G,ce,V[ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(V)):w(Object(V)).forEach(function(ce){Object.defineProperty(G,ce,Object.getOwnPropertyDescriptor(V,ce))})}return G}var a=function(G){return G.reduce(function(ie,V){return ie+V.version},0)},c=function(G){return G.filter(function(ie){return!ie.isDeleted&&!(0,E.QD)(ie)})},m=function(G){return G.filter(function(ie){return!ie.isDeleted})},z=function(G){return G.filter(function(ie){return!ie.isDeleted})},j=function(G){return!G.isDeleted},k=function(G){return m(G).map(function(ie){return(0,y.dt)(ie.type)?l(l({},ie),{},{lastCommittedPoint:null}):ie})},x=function(G){return k(G)},N=function(G){return k(G)}},7422:function(Se,Q,e){e.d(Q,{_:function(){return R}});var D=e(1930),E=e(7169),y=e(2577),h=e(8821),S=e(5169),I=e(2361),v=e(7651),n=e(4949),M=e(583),Z=e(457),H=e(9645),W=e(9827),u=e(4183),U=e(5491),le=e(4761),de=e(9937),he=e(2921);function pe(g,O){var s=typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(!s){if(Array.isArray(g)||(s=function(c,m){if(c){if(typeof c=="string")return oe(c,m);var z=Object.prototype.toString.call(c).slice(8,-1);if(z==="Object"&&c.constructor&&(z=c.constructor.name),z==="Map"||z==="Set")return Array.from(c);if(z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return oe(c,m)}}(g))||O&&g&&typeof g.length=="number"){s&&(g=s);var f=0,t=function(){};return{s:t,n:function(){return f>=g.length?{done:!0}:{done:!1,value:g[f++]}},e:function(c){throw c},f:t}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w,l=!0,a=!1;return{s:function(){s=s.call(g)},n:function(){var c=s.next();return l=c.done,c},e:function(c){a=!0,w=c},f:function(){try{l||s.return==null||s.return()}finally{if(a)throw w}}}}function oe(g,O){(O==null||O>g.length)&&(O=g.length);for(var s=0,f=new Array(O);s<O;s++)f[s]=g[s];return f}function P(g,O){var s=Object.keys(g);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(g);O&&(f=f.filter(function(t){return Object.getOwnPropertyDescriptor(g,t).enumerable})),s.push.apply(s,f)}return s}function $(g){for(var O=1;O<arguments.length;O++){var s=arguments[O]!=null?arguments[O]:{};O%2?P(Object(s),!0).forEach(function(f){(0,E.Z)(g,f,s[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(s)):P(Object(s)).forEach(function(f){Object.defineProperty(g,f,Object.getOwnPropertyDescriptor(s,f))})}return g}var b={version:null,points:[],zoom:null},R=function(){function g(O,s){(0,h.Z)(this,g),this.elementId=O.id,Z.Z.mapElementToScene(this.elementId,s),g.normalizePoints(O),this.selectedPointsIndices=null,this.lastUncommittedPoint=null,this.isDragging=!1,this.pointerOffset={x:0,y:0},this.startBindingElement="keep",this.endBindingElement="keep",this.pointerDownState={prevSelectedPointsIndices:null,lastClickedPoint:-1,origin:null,segmentMidpoint:{value:null,index:null,added:!1}},this.hoverPointIndex=-1,this.segmentMidPointHoveredCoords=null}return(0,S.Z)(g,null,[{key:"getElement",value:function(O){var s,f=(s=Z.Z.getScene(O))===null||s===void 0?void 0:s.getNonDeletedElement(O);return f||null}},{key:"handleBoxSelection",value:function(O,s,f){var t;if(!s.editingLinearElement||((t=s.draggingElement)===null||t===void 0?void 0:t.type)!=="selection")return!1;var w=s.editingLinearElement,l=w.selectedPointsIndices,a=w.elementId,c=g.getElement(a);if(!c)return!1;var m=(0,v.qf)(s.draggingElement),z=(0,y.Z)(m,4),j=z[0],k=z[1],x=z[2],N=z[3],G=g.getPointsGlobalCoordinates(c).reduce(function(ie,V,ce){return(V[0]>=j&&V[0]<=x&&V[1]>=k&&V[1]<=N||O.shiftKey&&l!=null&&l.includes(ce))&&ie.push(ce),ie},[]);f({editingLinearElement:$($({},w),{},{selectedPointsIndices:G.length?G:null})})}},{key:"handlePointDragging",value:function(O,s,f,t,w,l){if(!l)return!1;var a=l.selectedPointsIndices,c=l.elementId,m=g.getElement(c);if(!m)return!1;var z=m.points[l.pointerDownState.lastClickedPoint];if(a&&z){if((0,U.Ge)(O)&&a.length===1&&m.points.length>1){var j=a[0],k=m.points[j===0?1:j-1],x=g._getShiftLockedDelta(m,k,[f,t],O[U.tW.CTRL_OR_CMD]?null:s.gridSize),N=(0,y.Z)(x,2),G=N[0],ie=N[1];g.movePoints(m,[{index:j,point:[G+k[0],ie+k[1]],isDragging:j===l.pointerDownState.lastClickedPoint}])}else{var V=g.createPointAt(m,f-l.pointerOffset.x,t-l.pointerOffset.y,O[U.tW.CTRL_OR_CMD]?null:s.gridSize),ce=V[0]-z[0],te=V[1]-z[1];g.movePoints(m,a.map(function(me){return{index:me,point:me===l.pointerDownState.lastClickedPoint?g.createPointAt(m,f-l.pointerOffset.x,t-l.pointerOffset.y,O[U.tW.CTRL_OR_CMD]?null:s.gridSize):[m.points[me][0]+ce,m.points[me][1]+te],isDragging:me===l.pointerDownState.lastClickedPoint}}))}if((0,le.WJ)(m)&&(0,le.RB)(m,!1),(0,u.Mn)(m,!1)){var L=[];a[0]===0&&L.push((0,W.AK)(g.getPointGlobalCoordinates(m,m.points[0])));var re=a[a.length-1];re===m.points.length-1&&L.push((0,W.AK)(g.getPointGlobalCoordinates(m,m.points[re]))),L.length&&w(m,L)}return!0}return!1}},{key:"handlePointerUp",value:function(O,s,f){var t,w=s.elementId,l=s.selectedPointsIndices,a=s.isDragging,c=s.pointerDownState,m=g.getElement(w);if(!m)return s;var z={};if(a&&l){var j,k=pe(l);try{for(k.s();!(j=k.n()).done;){var x=j.value;if(x===0||x===m.points.length-1){(0,I.g6)(m.points,f.zoom.value)&&g.movePoints(m,[{index:x,point:x===0?m.points[m.points.length-1]:m.points[0]}]);var N=(0,H.N1)(f)?(0,H.Y9)((0,W.AK)(g.getPointAtIndexGlobalCoordinates(m,x)),Z.Z.getScene(m)):null;z[x===0?"startBindingElement":"endBindingElement"]=N}}}catch(G){k.e(G)}finally{k.f()}}return $($($({},s),z),{},{selectedPointsIndices:a||O.shiftKey?!a&&O.shiftKey&&(t=c.prevSelectedPointsIndices)!==null&&t!==void 0&&t.includes(c.lastClickedPoint)?l&&l.filter(function(G){return G!==c.lastClickedPoint}):l:l!=null&&l.includes(c.lastClickedPoint)?[c.lastClickedPoint]:l,isDragging:!1,pointerOffset:{x:0,y:0}})}},{key:"isSegmentTooShort",value:function(O,s,f,t){var w=(0,I.LW)(s[0],s[1],f[0],f[1]);return O.points.length>2&&O.roundness&&(w=(0,I.eH)(O,f)),w*t.value<4*g.POINT_HANDLE_SIZE}},{key:"getSegmentMidPoint",value:function(O,s,f,t){var w=(0,I.H5)(s,f);if(O.points.length>2&&O.roundness){var l=(0,I.yB)(O,O.points[t]);if(l){var a=(0,I.lk)(O,O.points[t],.5),c=(0,I.N_)(l[0],l[1],l[2],l[3],a),m=(0,y.Z)(c,2),z=m[0],j=m[1];w=g.getPointGlobalCoordinates(O,[z,j])}}return w}},{key:"getSegmentMidPointIndex",value:function(O,s,f){var t=g.getElement(O.elementId);if(!t)return-1;for(var w=g.getEditorMidPoints(t,s),l=0;l<w.length;){if(g.arePointsEqual(f,w[l]))return l+1;l++}return-1}},{key:"handlePointerDown",value:function(O,s,f,t,w){var l,a={didAddPoint:!1,hitElement:null,linearElementEditor:null};if(!w)return a;var c=w.elementId,m=g.getElement(c);if(!m)return a;var z=g.getSegmentMidpointHitCoords(w,t,s),j=null;if(z&&(j=g.getSegmentMidPointIndex(w,s,z)),O.altKey&&s.editingLinearElement)return w.lastUncommittedPoint==null&&((0,M.DR)(m,{points:[].concat((0,D.Z)(m.points),[g.createPointAt(m,t.x,t.y,O[U.tW.CTRL_OR_CMD]?null:s.gridSize)])}),a.didAddPoint=!0),f.resumeRecording(),a.linearElementEditor=$($({},w),{},{pointerDownState:{prevSelectedPointsIndices:w.selectedPointsIndices,lastClickedPoint:-1,origin:{x:t.x,y:t.y},segmentMidpoint:{value:z,index:j,added:!1}},selectedPointsIndices:[m.points.length-1],lastUncommittedPoint:null,endBindingElement:(0,H.Y9)(t,Z.Z.getScene(m))}),a.didAddPoint=!0,a;var k=g.getPointIndexUnderCursor(m,s.zoom,t.x,t.y);if(k>=0||z)a.hitElement=m;else{var x=w.startBindingElement,N=w.endBindingElement;(0,H.N1)(s)&&(0,u.Mn)(m)&&(0,H.HG)(m,x,N)}var G=(0,v.qf)(m),ie=(0,y.Z)(G,4),V=ie[0],ce=ie[1],te=(V+ie[2])/2,L=(ce+ie[3])/2,re=k>-1&&(0,I.U1)(m.x+m.points[k][0],m.y+m.points[k][1],te,L,m.angle),me=k>-1||O.shiftKey?O.shiftKey||(l=w.selectedPointsIndices)!==null&&l!==void 0&&l.includes(k)?_([].concat((0,D.Z)(w.selectedPointsIndices||[]),[k])):[k]:null;return a.linearElementEditor=$($({},w),{},{pointerDownState:{prevSelectedPointsIndices:w.selectedPointsIndices,lastClickedPoint:k,origin:{x:t.x,y:t.y},segmentMidpoint:{value:z,index:j,added:!1}},selectedPointsIndices:me,pointerOffset:re?{x:t.x-re[0],y:t.y-re[1]}:{x:0,y:0}}),a}},{key:"arePointsEqual",value:function(O,s){return!O&&!s||!(!O||!s)&&(0,I.Jj)(O,s)}},{key:"handlePointerMove",value:function(O,s,f,t){if(!t.editingLinearElement)return null;var w=t.editingLinearElement,l=w.elementId,a=w.lastUncommittedPoint,c=g.getElement(l);if(!c)return t.editingLinearElement;var m,z=c.points,j=z[z.length-1];if(!O.altKey)return j===a&&g.deletePoints(c,[z.length-1]),$($({},t.editingLinearElement),{},{lastUncommittedPoint:null});if((0,U.Ge)(O)&&z.length>=2){var k=z[z.length-2],x=g._getShiftLockedDelta(c,k,[s,f],O[U.tW.CTRL_OR_CMD]?null:t.gridSize),N=(0,y.Z)(x,2),G=N[0],ie=N[1];m=[G+k[0],ie+k[1]]}else m=g.createPointAt(c,s-t.editingLinearElement.pointerOffset.x,f-t.editingLinearElement.pointerOffset.y,O[U.tW.CTRL_OR_CMD]?null:t.gridSize);return j===a?g.movePoints(c,[{index:c.points.length-1,point:m}]):g.addPoints(c,t,[{point:m}]),$($({},t.editingLinearElement),{},{lastUncommittedPoint:c.points[c.points.length-1]})}},{key:"getPointGlobalCoordinates",value:function(O,s){var f=(0,v.qf)(O),t=(0,y.Z)(f,4),w=t[0],l=t[1],a=(w+t[2])/2,c=(l+t[3])/2,m=O.x,z=O.y,j=(0,I.U1)(m+s[0],z+s[1],a,c,O.angle),k=(0,y.Z)(j,2);return[m=k[0],z=k[1]]}},{key:"getPointsGlobalCoordinates",value:function(O){var s=(0,v.qf)(O),f=(0,y.Z)(s,4),t=f[0],w=f[1],l=f[2],a=f[3],c=(t+l)/2,m=(w+a)/2;return O.points.map(function(z){var j=O.x,k=O.y,x=(0,I.U1)(j+z[0],k+z[1],c,m,O.angle),N=(0,y.Z)(x,2);return[j=N[0],k=N[1]]})}},{key:"getPointAtIndexGlobalCoordinates",value:function(O,s){var f=s<0?O.points.length+s:s,t=(0,v.qf)(O),w=(0,y.Z)(t,4),l=w[0],a=w[1],c=(l+w[2])/2,m=(a+w[3])/2,z=O.points[f],j=O.x,k=O.y;return z?(0,I.U1)(j+z[0],k+z[1],c,m,O.angle):(0,I.U1)(j,k,c,m,O.angle)}},{key:"pointFromAbsoluteCoords",value:function(O,s){var f=(0,v.qf)(O),t=(0,y.Z)(f,4),w=t[0],l=t[1],a=(w+t[2])/2,c=(l+t[3])/2,m=(0,I.U1)(s[0],s[1],a,c,-O.angle),z=(0,y.Z)(m,2),j=z[0],k=z[1];return[j-O.x,k-O.y]}},{key:"getPointIndexUnderCursor",value:function(O,s,f,t){for(var w=g.getPointsGlobalCoordinates(O),l=w.length;--l>-1;){var a=w[l];if((0,I.LW)(f,t,a[0],a[1])*s.value<g.POINT_HANDLE_SIZE+1)return l}return-1}},{key:"createPointAt",value:function(O,s,f,t){var w=(0,I.wC)(s,f,t),l=(0,v.qf)(O),a=(0,y.Z)(l,4),c=a[0],m=a[1],z=(c+a[2])/2,j=(m+a[3])/2,k=(0,I.U1)(w[0],w[1],z,j,-O.angle),x=(0,y.Z)(k,2),N=x[0],G=x[1];return[N-O.x,G-O.y]}},{key:"getNormalizedPoints",value:function(O){var s=O.points,f=s[0][0],t=s[0][1];return{points:s.map(function(w,l){return[w[0]-f,w[1]-t]}),x:O.x+f,y:O.y+t}}},{key:"normalizePoints",value:function(O){(0,M.DR)(O,g.getNormalizedPoints(O))}},{key:"duplicateSelectedPoints",value:function(O){if(!O.editingLinearElement)return!1;var s=O.editingLinearElement,f=s.selectedPointsIndices,t=s.elementId,w=g.getElement(t);if(!w||f===null)return!1;var l=w.points,a=[],c=!1,m=-1,z=l.reduce(function(k,x,N){if(++m,k.push(x),f.includes(N)){var G=l[N+1];G||(c=!0),k.push(G?[(x[0]+G[0])/2,(x[1]+G[1])/2]:[x[0],x[1]]),a.push(m+1),++m}return k},[]);if((0,M.DR)(w,{points:z}),c){var j=w.points[w.points.length-1];g.movePoints(w,[{index:w.points.length-1,point:[j[0]+30,j[1]+30]}])}return{appState:$($({},O),{},{editingLinearElement:$($({},O.editingLinearElement),{},{selectedPointsIndices:a})})}}},{key:"deletePoints",value:function(O,s){var f=0,t=0;if(s.includes(0)){var w=O.points.find(function(a,c){return!s.includes(c)});w&&(f=w[0],t=w[1])}var l=O.points.reduce(function(a,c,m){return s.includes(m)||a.push(a.length?[c[0]-f,c[1]-t]:[0,0]),a},[]);g._updatePoints(O,l,f,t)}},{key:"addPoints",value:function(O,s,f){var t=[].concat((0,D.Z)(O.points),(0,D.Z)(f.map(function(w){return w.point})));g._updatePoints(O,t,0,0)}},{key:"movePoints",value:function(O,s,f){var t=O.points,w=0,l=0,a=s.find(function(m){return m.index===0});a&&(w=a.point[0]+t[a.index][0],l=a.point[1]+t[a.index][1]);var c=t.map(function(m,z){var j=s.find(function(N){return N.index===z});if(j){if(a)return m;var k=j.point[0]-t[j.index][0],x=j.point[1]-t[j.index][1];return[m[0]+k,m[1]+x]}return w||l?[m[0]-w,m[1]-l]:m});g._updatePoints(O,c,w,l,f)}},{key:"shouldAddMidpoint",value:function(O,s,f){if(!g.getElement(O.elementId))return!1;var t=O.pointerDownState.segmentMidpoint;if(t.added||t.value===null||t.index===null||O.pointerDownState.origin===null)return!1;var w=O.pointerDownState.origin,l=(0,I.LW)(w.x,w.y,s.x,s.y);return!(!f.editingLinearElement&&l<de.f/f.zoom.value)}},{key:"addMidpoint",value:function(O,s,f,t){var w=g.getElement(O.elementId);if(w){var l=O.pointerDownState.segmentMidpoint,a={pointerDownState:O.pointerDownState,selectedPointsIndices:O.selectedPointsIndices},c=g.createPointAt(w,s.x,s.y,t?f.gridSize:null),m=[].concat((0,D.Z)(w.points.slice(0,l.index)),[c],(0,D.Z)(w.points.slice(l.index)));return(0,M.DR)(w,{points:m}),a.pointerDownState=$($({},O.pointerDownState),{},{segmentMidpoint:$($({},O.pointerDownState.segmentMidpoint),{},{added:!0}),lastClickedPoint:l.index}),a.selectedPointsIndices=[l.index],a}}},{key:"_updatePoints",value:function(O,s,f,t,w){var l=(0,n.Ut)(O,s),a=(0,n.Ut)(O,O.points),c=(l[0]+l[2])/2,m=(l[1]+l[3])/2,z=(a[0]+a[2])/2-c,j=(a[1]+a[3])/2-m,k=(0,I.U1)(f,t,z,j,O.angle);(0,M.DR)(O,$($({},w),{},{points:s,x:O.x+k[0],y:O.y+k[1]}))}},{key:"_getShiftLockedDelta",value:function(O,s,f,t){var w=g.getPointGlobalCoordinates(O,s),l=(0,I.wC)(f[0],f[1],t),a=(0,y.Z)(l,2),c=a[0],m=a[1],z=(0,v.o4)(w[0],w[1],c,m),j=z.width,k=z.height;return(0,I.xj)([j,k],[0,0],-O.angle)}}]),g}();R.POINT_HANDLE_SIZE=10,R.getEditorMidPoints=function(g,O){var s=(0,le.WJ)(g);return!O.editingLinearElement&&g.points.length>2&&!s?[]:(b.version===g.version&&b.zoom===O.zoom.value||R.updateEditorMidPointsCache(g,O),b.points)},R.updateEditorMidPointsCache=function(g,O){for(var s=R.getPointsGlobalCoordinates(g),f=0,t=[];f<s.length-1;)if(R.isSegmentTooShort(g,g.points[f],g.points[f+1],O.zoom))t.push(null),f++;else{var w=R.getSegmentMidPoint(g,s[f],s[f+1],f+1);t.push(w),f++}b.points=t,b.version=g.version,b.zoom=O.zoom.value},R.getSegmentMidpointHitCoords=function(g,O,s){var f=g.elementId,t=R.getElement(f);if(!t||R.getPointIndexUnderCursor(t,s.zoom,O.x,O.y)>=0||R.getPointsGlobalCoordinates(t).length>=3&&!s.editingLinearElement)return null;var w=R.POINT_HANDLE_SIZE/s.zoom.value,l=g.segmentMidPointHoveredCoords;if(l&&(0,I.LW)(l[0],l[1],O.x,O.y)<=w)return l;for(var a=0,c=R.getEditorMidPoints(t,s);a<c.length;){if(c[a]!==null&&(0,I.LW)(c[a][0],c[a][1],O.x,O.y)<=w)return c[a];a++}return null},R.getBoundTextElementPosition=function(g,O){var s=R.getPointsGlobalCoordinates(g);s.length<2&&(0,M.DR)(O,{isDeleted:!0});var f=0,t=0;if(g.points.length%2==1){var w=Math.floor(g.points.length/2),l=R.getPointGlobalCoordinates(g,g.points[w]);f=l[0]-O.width/2,t=l[1]-O.height/2}else{var a=g.points.length/2-1,c=b.points[a];g.points.length===2&&(c=(0,I.H5)(s[0],s[1])),c&&b.version===g.version||(c=R.getSegmentMidPoint(g,s[a],s[a+1],a+1)),f=c[0]-O.width/2,t=c[1]-O.height/2}return{x:f,y:t}},R.getMinMaxXYWithBoundText=function(g,O,s){var f=(0,y.Z)(O,4),t=f[0],w=f[1],l=f[2],a=f[3],c=(t+l)/2,m=(w+a)/2,z=R.getBoundTextElementPosition(g,s),j=z.x,k=z.y,x=j+s.width,N=k+s.height,G=(0,I.xj)([t,w],[c,m],g.angle),ie=(0,I.xj)([l,w],[c,m],g.angle),V=(0,I.xj)([j,k],[c,m],-g.angle),ce=(0,I.xj)([x,k],[c,m],-g.angle),te=(0,I.xj)([j,N],[c,m],-g.angle),L=(0,I.xj)([x,N],[c,m],-g.angle);return G[0]<ie[0]&&G[1]>=ie[1]?(t=Math.min(t,te[0]),l=Math.max(l,Math.max(ce[0],L[0])),w=Math.min(w,V[1]),a=Math.max(a,L[1])):G[0]>=ie[0]&&G[1]>ie[1]?(t=Math.min(t,L[0]),l=Math.max(l,Math.max(V[0],ce[0])),w=Math.min(w,te[1]),a=Math.max(a,ce[1])):G[0]>=ie[0]?(t=Math.min(t,ce[0]),l=Math.max(l,te[0]),w=Math.min(w,L[1]),a=Math.max(a,V[1])):G[1]<=ie[1]&&(t=Math.min(t,Math.min(ce[0],V[0])),l=Math.max(l,L[0]),w=Math.min(w,ce[1]),a=Math.max(a,te[1])),[t,w,l,a,c,m]},R.getElementAbsoluteCoords=function(g){var O,s,f,t,w,l=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(g.points.length<2||!he.R.get(g)){var a=g.points.reduce(function(Ce,We){var Te=(0,y.Z)(We,2),we=Te[0],xe=Te[1];return Ce.minY=Math.min(Ce.minY,xe),Ce.minX=Math.min(Ce.minX,we),Ce.maxX=Math.max(Ce.maxX,we),Ce.maxY=Math.max(Ce.maxY,xe),Ce},{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}),c=a.minX,m=a.minY,z=a.maxX,j=a.maxY;s=c+g.x,f=m+g.y,t=z+g.x,w=j+g.y}else{var k=he.R.generateElementShape(g),x=(0,n.CM)(k[0]),N=(0,n.IX)(x),G=(0,y.Z)(N,4),ie=G[0],V=G[1],ce=G[2],te=G[3];s=ie+g.x,f=V+g.y,t=ce+g.x,w=te+g.y}var L=(s+t)/2,re=(f+w)/2;if(O=[s,f,t,w,L,re],!l)return O;var me=(0,le.WJ)(g);return me&&(O=R.getMinMaxXYWithBoundText(g,[s,f,t,w],me)),O};var _=function(g){var O=(0,D.Z)(new Set(g.filter(function(s){return s!==null&&s!==-1})));return(O=O.sort(function(s,f){return s-f})).length?O:null}},583:function(Se,Q,e){e.d(Q,{BE:function(){return H},DR:function(){return Z},ZP:function(){return W}});var D=e(6655),E=e(7169),y=e(457),h=e(5999),S=e(4643),I=e(9827),v=e(2921);function n(u,U){var le=Object.keys(u);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(u);U&&(de=de.filter(function(he){return Object.getOwnPropertyDescriptor(u,he).enumerable})),le.push.apply(le,de)}return le}function M(u){for(var U=1;U<arguments.length;U++){var le=arguments[U]!=null?arguments[U]:{};U%2?n(Object(le),!0).forEach(function(de){(0,E.Z)(u,de,le[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(le)):n(Object(le)).forEach(function(de){Object.defineProperty(u,de,Object.getOwnPropertyDescriptor(le,de))})}return u}var Z=function(u,U){var le,de=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],he=!1,pe=U,oe=pe.points,P=pe.fileId;for(var $ in oe!==void 0&&(U=M(M({},(0,h.k)(oe)),U)),U){var b=U[$];if(b!==void 0){if(u[$]===b&&((0,D.Z)(b)!=="object"||b===null||$==="groupIds"||$==="scale"))continue;if($==="scale"){var R=u[$],_=b;if(R[0]===_[0]&&R[1]===_[1])continue}else if($==="points"){var g=u[$],O=b;if(g.length===O.length){for(var s=!1,f=g.length;--f;){var t=g[f],w=O[f];if(t[0]!==w[0]||t[1]!==w[1]){s=!0;break}}if(!s)continue}}u[$]=b,he=!0}}return he&&(U.height===void 0&&U.width===void 0&&P===void 0&&oe===void 0||v.R.delete(u),u.version++,u.versionNonce=(0,S.LU)(),u.updated=(0,I.C3)(),de&&((le=y.Z.getScene(u))===null||le===void 0||le.informMutation())),u},H=function(u,U){var le=!1;for(var de in U){var he=U[de];if(he!==void 0){if(u[de]===he&&((0,D.Z)(he)!=="object"||he===null))continue;le=!0}}return le?M(M(M({},u),U),{},{updated:(0,I.C3)(),version:u.version+1,versionNonce:(0,S.LU)()}):u},W=function(u,U){return u.version=(U??u.version)+1,u.versionNonce=(0,S.LU)(),u.updated=(0,I.C3)(),u}},5742:function(Se,Q,e){e.d(Q,{JZ:function(){return O},KE:function(){return f},M:function(){return $},M3:function(){return b},N_:function(){return s},OL:function(){return a},Sy:function(){return m},Up:function(){return P},VL:function(){return _},_N:function(){return z},vw:function(){return w},y8:function(){return t}});var D=e(6655),E=e(2577),y=e(7169),h=e(2726),S=e(9827),I=e(4643),v=e(583),n=e(9215),M=e(7651),Z=e(2361),H=e(4949),W=e(4761),u=e(9937),U=["x","y","strokeColor","backgroundColor","fillStyle","strokeWidth","strokeStyle","roughness","opacity","width","height","angle","groupIds","frameId","roundness","boundElements","link","locked"];function le(j,k){var x=typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(!x){if(Array.isArray(j)||(x=function(te,L){if(te){if(typeof te=="string")return de(te,L);var re=Object.prototype.toString.call(te).slice(8,-1);if(re==="Object"&&te.constructor&&(re=te.constructor.name),re==="Map"||re==="Set")return Array.from(te);if(re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re))return de(te,L)}}(j))||k&&j&&typeof j.length=="number"){x&&(j=x);var N=0,G=function(){};return{s:G,n:function(){return N>=j.length?{done:!0}:{done:!1,value:j[N++]}},e:function(te){throw te},f:G}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ie,V=!0,ce=!1;return{s:function(){x=x.call(j)},n:function(){var te=x.next();return V=te.done,te},e:function(te){ce=!0,ie=te},f:function(){try{V||x.return==null||x.return()}finally{if(ce)throw ie}}}}function de(j,k){(k==null||k>j.length)&&(k=j.length);for(var x=0,N=new Array(k);x<k;x++)N[x]=j[x];return N}function he(j,k){var x=Object.keys(j);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(j);k&&(N=N.filter(function(G){return Object.getOwnPropertyDescriptor(j,G).enumerable})),x.push.apply(x,N)}return x}function pe(j){for(var k=1;k<arguments.length;k++){var x=arguments[k]!=null?arguments[k]:{};k%2?he(Object(x),!0).forEach(function(N){(0,y.Z)(j,N,x[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(x)):he(Object(x)).forEach(function(N){Object.defineProperty(j,N,Object.getOwnPropertyDescriptor(x,N))})}return j}var oe=function(j,k){var x,N,G=k.x,ie=k.y,V=k.strokeColor,ce=V===void 0?u.HN.strokeColor:V,te=k.backgroundColor,L=te===void 0?u.HN.backgroundColor:te,re=k.fillStyle,me=re===void 0?u.HN.fillStyle:re,Ce=k.strokeWidth,We=Ce===void 0?u.HN.strokeWidth:Ce,Te=k.strokeStyle,we=Te===void 0?u.HN.strokeStyle:Te,xe=k.roughness,_e=xe===void 0?u.HN.roughness:xe,Oe=k.opacity,J=Oe===void 0?u.HN.opacity:Oe,ke=k.width,q=ke===void 0?0:ke,o=k.height,i=o===void 0?0:o,p=k.angle,B=p===void 0?0:p,A=k.groupIds,X=A===void 0?[]:A,Y=k.frameId,ee=Y===void 0?null:Y,ge=k.roundness,be=ge===void 0?null:ge,Re=k.boundElements,Ze=Re===void 0?null:Re,Be=k.link,Ie=Be===void 0?null:Be,Ke=k.locked,Ye=Ke===void 0?u.HN.locked:Ke,tt=(0,h.Z)(k,U);return{id:tt.id||(0,I.kb)(),type:j,x:G,y:ie,width:q,height:i,angle:B,strokeColor:ce,backgroundColor:L,fillStyle:me,strokeWidth:We,strokeStyle:we,roughness:_e,opacity:J,groupIds:X,frameId:ee,roundness:be,seed:(x=tt.seed)!==null&&x!==void 0?x:(0,I.LU)(),version:tt.version||1,versionNonce:(N=tt.versionNonce)!==null&&N!==void 0?N:0,isDeleted:!1,boundElements:Ze,updated:(0,S.C3)(),link:Ie,locked:Ye}},P=function(j){return oe(j.type,j)},$=function(j){return pe(pe({},oe("embeddable",j)),{},{validated:j.validated})},b=function(j){return(0,v.BE)(pe(pe({},oe("frame",j)),{},{type:"frame",name:j?.name||null}),{})},R=function(j,k){return{x:j.textAlign==="center"?k.width/2:j.textAlign==="right"?k.width:0,y:j.verticalAlign==="middle"?k.height/2:0}},_=function(j){var k=j.fontFamily||u.rk,x=j.fontSize||u.n5,N=j.lineHeight||(0,W.PT)(k),G=(0,W.bG)(j.text),ie=(0,W.X1)(G,(0,S.mO)({fontFamily:k,fontSize:x}),N),V=j.textAlign||u.Hg,ce=j.verticalAlign||u.hs,te=R({textAlign:V,verticalAlign:ce},ie);return(0,v.BE)(pe(pe({},oe("text",j)),{},{text:G,fontSize:x,fontFamily:k,textAlign:V,verticalAlign:ce,x:j.x-te.x,y:j.y-te.y,width:ie.width,height:ie.height,baseline:ie.baseline,containerId:j.containerId||null,originalText:G,lineHeight:N}),{})},g=function(j,k){var x,N,G=(0,W.X1)(k,(0,S.mO)(j),j.lineHeight),ie=G.width,V=G.height,ce=G.baseline,te=j.textAlign,L=j.verticalAlign;if(te!=="center"||L!==u.oX.MIDDLE||j.containerId){var re=(0,M.qf)(j),me=(0,E.Z)(re,4),Ce=me[0],We=me[1],Te=me[2],we=me[3],xe=(0,H.wC)(j,ie,V,!1),_e=(0,E.Z)(xe,4),Oe=(Ce-_e[0])/2,J=(We-_e[1])/2,ke=(Te-_e[2])/2,q=(we-_e[3])/2,o=(0,Z.yq)({s:!0,e:te==="center"||te==="left",w:te==="center"||te==="right"},j.x,j.y,j.angle,Oe,J,ke,q),i=(0,E.Z)(o,2);x=i[0],N=i[1]}else{var p=(0,W.X1)(j.text,(0,S.mO)(j),j.lineHeight),B=R(j,{width:ie-p.width,height:V-p.height});x=j.x-B.x,N=j.y-B.y}return{width:ie,height:V,baseline:ce,x:Number.isFinite(x)?x:j.x,y:Number.isFinite(N)?N:j.y}},O=function(j){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j.text;if(!j.isDeleted){var x=(0,W.tl)(j);x&&(k=(0,W.lD)(k,(0,S.mO)(j),(0,W.iZ)(x)));var N=g(j,k);return pe({text:k},N)}},s=function(j,k){k.text;var x=k.isDeleted,N=k.originalText;return(0,v.BE)(j,pe({originalText:N,isDeleted:x??j.isDeleted},O(j,N)))},f=function(j){return pe(pe({},oe(j.type,j)),{},{points:j.points||[],pressures:[],simulatePressure:j.simulatePressure,lastCommittedPoint:null})},t=function(j){return pe(pe({},oe(j.type,j)),{},{points:j.points||[],lastCommittedPoint:null,startBinding:null,endBinding:null,startArrowhead:j.startArrowhead||null,endArrowhead:j.endArrowhead||null})},w=function(j){var k,x,N;return pe(pe({},oe("image",j)),{},{strokeColor:"transparent",status:(k=j.status)!==null&&k!==void 0?k:"pending",fileId:(x=j.fileId)!==null&&x!==void 0?x:null,scale:(N=j.scale)!==null&&N!==void 0?N:[1,1]})},l=function j(k){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(k==null||(0,D.Z)(k)!=="object")return k;var N=Object.prototype.toString.call(k);if(N==="[object Object]"){var G=typeof k.constructor=="function"?Object.create(Object.getPrototypeOf(k)):{};for(var ie in k)if(k.hasOwnProperty(ie)){if(x===0&&(ie==="shape"||ie==="canvas"))continue;G[ie]=j(k[ie],x+1)}return G}if(Array.isArray(k)){for(var V=k.length,ce=new Array(V);V--;)ce[V]=j(k[V],x+1);return ce}return k},a=function(j){return l(j)},c=function(j){if((0,S.h2)()&&j){var k,x,N="".concat(j,"_copy");return(k=window.h)!==null&&k!==void 0&&(x=k.app)!==null&&x!==void 0&&x.getSceneElementsIncludingDeleted().find(function(G){return G.id===N})&&(N+="_copy"),N}return(0,I.kb)()},m=function(j,k,x,N){var G=a(x);return G.id=c(G.id),G.boundElements=null,G.updated=(0,S.C3)(),G.seed=(0,I.LU)(),G.groupIds=(0,n.Qy)(G.groupIds,j,function(ie){return k.has(ie)||k.set(ie,c(ie)),k.get(ie)}),N&&(G=Object.assign(G,N)),G},z=function(j,k){var x,N=[],G=(0,S.xn)(j),ie=new Map,V=function(Te){if(ie.has(Te))return ie.get(Te);if(G.has(Te)){var we=c(Te);return ie.set(Te,we),we}return null},ce=new Map,te=le(j);try{for(te.s();!(x=te.n()).done;){var L=x.value,re=l(L);if(re.id=V(L.id),k!=null&&k.randomizeSeed&&(re.seed=(0,I.LU)(),(0,v.ZP)(re)),re.groupIds&&(re.groupIds=re.groupIds.map(function(Te){return ce.has(Te)||ce.set(Te,c(Te)),ce.get(Te)})),"containerId"in re&&re.containerId){var me=V(re.containerId);re.containerId=me}if("boundElements"in re&&re.boundElements&&(re.boundElements=re.boundElements.reduce(function(Te,we){var xe=V(we.id);return xe&&Te.push(pe(pe({},we),{},{id:xe})),Te},[])),"endBinding"in re&&re.endBinding){var Ce=V(re.endBinding.elementId);re.endBinding=Ce?pe(pe({},re.endBinding),{},{elementId:Ce}):null}if("startBinding"in re&&re.startBinding){var We=V(re.startBinding.elementId);re.startBinding=We?pe(pe({},re.startBinding),{},{elementId:We}):null}re.frameId&&(re.frameId=V(re.frameId)),N.push(re)}}catch(Te){te.e(Te)}finally{te.f()}return N}},4381:function(Se,Q,e){e.d(Q,{LM:function(){return f},T:function(){return l},vY:function(){return b},xx:function(){return w}});var D=e(2726),E=e(1930),y=e(7169),h=e(2577),S=e(9937),I=e(5999),v=e(2361),n=e(4949),M=e(4183),Z=e(583),H=e(9827),W=e(9645),u=e(457),U=e(4761),le=e(7422),de=["boundTextFontSize"];function he(a,c){var m=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!m){if(Array.isArray(a)||(m=function(G,ie){if(G){if(typeof G=="string")return pe(G,ie);var V=Object.prototype.toString.call(G).slice(8,-1);if(V==="Object"&&G.constructor&&(V=G.constructor.name),V==="Map"||V==="Set")return Array.from(G);if(V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return pe(G,ie)}}(a))||c&&a&&typeof a.length=="number"){m&&(a=m);var z=0,j=function(){};return{s:j,n:function(){return z>=a.length?{done:!0}:{done:!1,value:a[z++]}},e:function(G){throw G},f:j}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k,x=!0,N=!1;return{s:function(){m=m.call(a)},n:function(){var G=m.next();return x=G.done,G},e:function(G){N=!0,k=G},f:function(){try{x||m.return==null||m.return()}finally{if(N)throw k}}}}function pe(a,c){(c==null||c>a.length)&&(c=a.length);for(var m=0,z=new Array(c);m<c;m++)z[m]=a[m];return z}function oe(a,c){var m=Object.keys(a);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(a);c&&(z=z.filter(function(j){return Object.getOwnPropertyDescriptor(a,j).enumerable})),m.push.apply(m,z)}return m}function P(a){for(var c=1;c<arguments.length;c++){var m=arguments[c]!=null?arguments[c]:{};c%2?oe(Object(m),!0).forEach(function(z){(0,y.Z)(a,z,m[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(m)):oe(Object(m)).forEach(function(z){Object.defineProperty(a,z,Object.getOwnPropertyDescriptor(m,z))})}return a}var $=function(a){return a<0?a+2*Math.PI:a>=2*Math.PI?a-2*Math.PI:a},b=function(a,c,m,z,j,k,x,N,G,ie,V,ce){if(m.length===1){var te=(0,h.Z)(m,1)[0];return c==="rotation"?(R(te,N,G,j,a.originalElements),(0,W.Ww)(te)):!(0,M.iB)(te)||c!=="nw"&&c!=="ne"&&c!=="sw"&&c!=="se"?c&&s(a.originalElements,x,te,c,k,N,G):(O(te,c,k,N,G),(0,W.Ww)(te)),!0}if(m.length>1){if(c==="rotation")return t(a,m,N,G,j,ie,V),!0;if(c==="nw"||c==="ne"||c==="sw"||c==="se")return f(a,m,c,k,N,G),!0}return!1},R=function(a,c,m,z,j){var k,x=(0,n.qf)(a),N=(0,h.Z)(x,4),G=N[0],ie=N[1],V=(G+N[2])/2,ce=(ie+N[3])/2;(0,M.He)(a)?k=0:(k=5*Math.PI/2+Math.atan2(m-ce,c-V),z&&(k+=S.ay/2,k-=k%S.ay),k=$(k));var te=(0,U.xB)(a);if((0,Z.DR)(a,{angle:k}),te){var L,re=(L=u.Z.getScene(a))===null||L===void 0?void 0:L.getElement(te);re&&!(0,M.Yv)(a)&&(0,Z.DR)(re,{angle:k})}},_=function(a,c,m,z){return(0,M.bt)(a)||(0,M.F9)(a)?{points:(0,I.z)(0,c,(0,I.z)(1,m,a.points,z),z)}:{}},g=function(a,c,m){var z=a.width;if((0,M.Xh)(a)){var j=(0,U.tl)(a);j&&(z=(0,U.iZ)(j))}var k=a.fontSize*(c/z);if(k<S.CP)return null;var x=(0,U.X1)(a.text,(0,H.mO)({fontSize:k,fontFamily:a.fontFamily}),a.lineHeight);return{size:k,baseline:x.baseline+(m-x.height)}},O=function(a,c,m,z,j){var k,x=(0,n.qf)(a),N=(0,h.Z)(x,4),G=N[0],ie=N[1],V=N[2],ce=N[3],te=(G+V)/2,L=(ie+ce)/2,re=(0,v.U1)(z,j,te,L,-a.angle),me=(0,h.Z)(re,2),Ce=me[0],We=me[1];switch(c){case"se":k=Math.max((Ce-G)/(V-G),(We-ie)/(ce-ie));break;case"nw":k=Math.max((V-Ce)/(V-G),(ce-We)/(ce-ie));break;case"ne":k=Math.max((Ce-G)/(V-G),(ce-We)/(ce-ie));break;case"sw":k=Math.max((V-Ce)/(V-G),(We-ie)/(ce-ie))}if(k>0){var Te=a.width*k,we=a.height*k,xe=g(a,Te,we);if(xe===null)return;var _e=(0,n.wC)(a,Te,we,!1),Oe=(0,h.Z)(_e,4),J=(G-Oe[0])/2,ke=(ie-Oe[1])/2,q=(V-Oe[2])/2,o=(ce-Oe[3])/2,i=(0,v.yq)(function(X,Y){return{n:/^(n|ne|nw)$/.test(X)||Y&&/^(s|se|sw)$/.test(X),s:/^(s|se|sw)$/.test(X)||Y&&/^(n|ne|nw)$/.test(X),w:/^(w|nw|sw)$/.test(X)||Y&&/^(e|ne|se)$/.test(X),e:/^(e|ne|se)$/.test(X)||Y&&/^(w|nw|sw)$/.test(X)}}(c,m),a.x,a.y,a.angle,J,ke,q,o),p=(0,h.Z)(i,2),B=p[0],A=p[1];(0,Z.DR)(a,{fontSize:xe.size,width:Te,height:we,baseline:xe.baseline,x:B,y:A})}},s=function(a,c,m,z,j,k,x){var N=a.get(m.id),G=(0,n.wC)(N,N.width,N.height,!0),ie=(0,h.Z)(G,4),V=[ie[0],ie[1]],ce=[ie[2],ie[3]],te=(0,v.H5)(V,ce),L=(0,v.xj)([k,x],te,-N.angle),re=(0,n.wC)(m,m.width,m.height,!0),me=(0,h.Z)(re,4),Ce=me[0],We=me[1],Te=me[2]-Ce,we=me[3]-We,xe=(ce[0]-V[0])/Te,_e=(ce[1]-V[1])/we,Oe={},J=(0,U.WJ)(m);z.includes("e")&&(xe=(L[0]-V[0])/Te),z.includes("s")&&(_e=(L[1]-V[1])/we),z.includes("w")&&(xe=(ce[0]-L[0])/Te),z.includes("n")&&(_e=(ce[1]-L[1])/we);var ke=N.width,q=N.height,o=m.width*xe,i=m.height*_e;if(j&&(o=2*o-ke,i=2*i-q),c){var p=Math.abs(o)/ke,B=Math.abs(i)/q;if(z.length===1&&(i*=p,o*=B),z.length===2){var A=Math.max(p,B);o=ke*A*Math.sign(o),i=q*A*Math.sign(i)}}if(J){var X=a.get(J.id);if(X&&(Oe={fontSize:X.fontSize,baseline:X.baseline}),c){var Y=P(P({},m),{},{width:o,height:i}),ee=g(J,(0,U.iZ)(Y),(0,U.D9)(Y,J));if(ee===null)return;Oe={fontSize:ee.size,baseline:ee.baseline}}else{var ge=(0,U.AT)((0,H.mO)(J),J.lineHeight),be=(0,U.w_)(J.fontSize,J.lineHeight);o=Math.max(o,ge),i=Math.max(i,be)}}var Re=(0,n.wC)(N,o,i,!0),Ze=(0,h.Z)(Re,4),Be=Ze[0],Ie=Ze[1],Ke=Ze[2],Ye=Ze[3],tt=Ke-Be,ue=Ye-Ie,ve=[].concat(V);if(["n","w","nw"].includes(z)&&(ve=[ce[0]-Math.abs(tt),ce[1]-Math.abs(ue)]),z==="ne"){var De=[V[0],ce[1]];ve=[De[0],De[1]-Math.abs(ue)]}if(z==="sw"){var He=[ce[0],V[1]];ve=[He[0]-Math.abs(tt),He[1]]}c&&(["s","n"].includes(z)&&(ve[0]=te[0]-tt/2),["e","w"].includes(z)&&(ve[1]=te[1]-ue/2));var Je=i<0;o<0&&(z.includes("e")&&(ve[0]-=Math.abs(tt)),z.includes("w")&&(ve[0]+=Math.abs(tt))),Je&&(z.includes("s")&&(ve[1]-=Math.abs(ue)),z.includes("n")&&(ve[1]+=Math.abs(ue))),j&&(ve[0]=te[0]-Math.abs(tt)/2,ve[1]=te[1]-Math.abs(ue)/2);var qe=N.angle,st=(0,v.xj)(ve,te,qe),ht=[ve[0]+Math.abs(tt)/2,ve[1]+Math.abs(ue)/2],et=(0,v.xj)(ht,te,qe);ve=(0,v.xj)(st,et,-qe);var wt=(0,E.Z)(ve),Lt=N.x-Be,St=N.y-Ie;wt[0]+=Lt,wt[1]+=St;var yt,Wt,Ft=wt[0],Ve=wt[1];((0,M.bt)(m)||(0,M.F9)(m))&&(yt=(0,I.z)(1,i,N.points,!0),Wt=(0,I.z)(0,o,yt,!0));var bt={width:Math.abs(o),height:Math.abs(i),x:Ft,y:Ve,points:Wt};if("scale"in m&&"scale"in N&&(0,Z.DR)(m,{scale:[(Math.sign(Ke-N.x)||N.scale[0])*N.scale[0],(Math.sign(Ye-N.y)||N.scale[1])*N.scale[1]]}),(0,M.Yv)(m)&&J&&c){var at=bt.width/m.width*J.fontSize;if(at<S.CP)return;Oe.fontSize=at}bt.width!==0&&bt.height!==0&&Number.isFinite(bt.x)&&Number.isFinite(bt.y)&&((0,Z.DR)(m,bt),(0,W.Ww)(m,{newSize:{width:bt.width,height:bt.height}}),J&&Oe!=null&&(0,Z.DR)(J,{fontSize:Oe.fontSize,baseline:Oe.baseline}),(0,U.RB)(m,z,c))},f=function(a,c,m,z,j,k){var x,N=c.reduce(function(at,mt){var ut=a.originalElements.get(mt.id);return ut&&at.push({orig:ut,latest:mt}),at},[]),G=N.reduce(function(at,mt){var ut,Ot=mt.orig;if(!(0,M.bt)(Ot))return at;var Pt=(0,U.xB)(Ot);if(!Pt)return at;var Gt=(ut=a.originalElements.get(Pt))!==null&&ut!==void 0?ut:null;if(!(0,M.Xh)(Gt))return at;var Ct=le._.getBoundTextElementPosition(Ot,Gt);return[].concat((0,E.Z)(at),[P(P({},Gt),Ct)])},[]),ie=(0,n.v2)(N.map(function(at){return at.orig}).concat(G)),V=ie.minX,ce=ie.minY,te=ie.maxX,L=ie.maxY,re=ie.midX,me=ie.midY,Ce=m,We=z?[re,me]:{ne:[V,L],se:[V,ce],sw:[te,ce],nw:[te,L]}[Ce],Te=(0,h.Z)(We,2),we=Te[0],xe=Te[1],_e=Math.max(Math.abs(j-we)/(te-V)||0,Math.abs(k-xe)/(L-ce)||0)*(z?2:1);if(_e!==0){var Oe,J={ne:[j>=we,k<=xe],se:[j>=we,k>=xe],sw:[j<=we,k>=xe],nw:[j<=we,k<=xe]}[Ce].map(function(at){return at?1:-1}),ke=(0,h.Z)(J,2),q=ke[0],o=ke[1],i=q<0,p=o<0,B=[],A=he(N);try{for(A.s();!(Oe=A.n()).done;){var X,Y=Oe.value,ee=Y.orig,ge=Y.latest;if(!(0,M.iB)(ee)||!(0,M.Xh)(ee)){var be=ee.width*_e,Re=ee.height*_e,Ze=$(ee.angle*q*o),Be=(0,M.bt)(ee)||(0,M.F9)(ee),Ie=ee.x-we,Ke=ee.y-xe,Ye=we+q*(Ie*_e+(i&&!Be?be:0)),tt=xe+o*(Ke*_e+(p&&!Be?Re:0)),ue=_(ee,be*q,Re*o,!1),ve=P({x:Ye,y:tt,width:be,height:Re,angle:Ze},ue);if((0,M.pC)(ee)&&N.length===1&&(ve.scale=[ee.scale[0]*q,ee.scale[1]*o]),(0,M.bt)(ee)&&(i||p)&&function(){var at=(0,n.Ut)(ee,ee.points),mt=(0,n.Ut)(P(P({},ee),{},{x:Ye,y:tt}),ue.points),ut=[ee.x,ee.y],Ot=[Ye,tt],Pt=function(Gt){var Ct=Gt==="x"?0:1;return(mt[Ct+2]-Ot[Ct]-(ut[Ct]-at[Ct])*_e+(at[Ct+2]-ut[Ct])*_e-(Ot[Ct]-mt[Ct]))/2};i&&(ve.x-=Pt("x")),p&&(ve.y-=Pt("y"))}(),(0,M.iB)(ee)){var De=g(ee,be,Re);if(!De)return;ve.fontSize=De.size,ve.baseline=De.baseline}var He=a.originalElements.get((X=(0,U.xB)(ee))!==null&&X!==void 0?X:"");if(He){var Je=He.fontSize*_e;if(Je<S.CP)return;ve.boundTextFontSize=Je}B.push({element:ge,update:ve})}}}catch(at){A.e(at)}finally{A.f()}for(var qe=B.map(function(at){return at.element}),st=0,ht=B;st<ht.length;st++){var et=ht[st],wt=et.element,Lt=et.update,St=Lt.boundTextFontSize,yt=(0,D.Z)(Lt,de),Wt=yt.width,Ft=yt.height,Ve=yt.angle;(0,Z.DR)(wt,yt,!1),(0,W.Ww)(wt,{simultaneouslyUpdated:qe,newSize:{width:Wt,height:Ft}});var bt=(0,U.WJ)(wt);bt&&St&&((0,Z.DR)(bt,{fontSize:St,angle:(0,M.bt)(wt)?void 0:Ve},!1),(0,U.RB)(wt,m,!0))}(x=u.Z.getScene(B[0].element))===null||x===void 0||x.informMutation()}},t=function(a,c,m,z,j,k,x){var N,G=5*Math.PI/2+Math.atan2(z-x,m-k);j&&(G+=S.ay/2,G-=G%S.ay),c.filter(function(ie){return ie.type!=="frame"}).forEach(function(ie){var V,ce,te=(0,n.qf)(ie),L=(0,h.Z)(te,4),re=L[0],me=L[1],Ce=(re+L[2])/2,We=(me+L[3])/2,Te=(V=(ce=a.originalElements.get(ie.id))===null||ce===void 0?void 0:ce.angle)!==null&&V!==void 0?V:ie.angle,we=(0,v.U1)(Ce,We,k,x,G+Te-ie.angle),xe=(0,h.Z)(we,2),_e=xe[0],Oe=xe[1];(0,Z.DR)(ie,{x:ie.x+(_e-Ce),y:ie.y+(Oe-We),angle:$(G+Te)},!1),(0,W.Ww)(ie,{simultaneouslyUpdated:c});var J=(0,U.WJ)(ie);J&&!(0,M.Yv)(ie)&&(0,Z.DR)(J,{x:J.x+(_e-Ce),y:J.y+(Oe-We),angle:$(G+Te)},!1)}),(N=u.Z.getScene(c[0]))===null||N===void 0||N.informMutation()},w=function(a,c,m,z){var j=c.length===1?(0,n.qf)(c[0]):(0,n.KP)(c),k=(0,h.Z)(j,4),x=k[0],N=k[1],G=k[2],ie=k[3],V=(x+G)/2,ce=(N+ie)/2,te=c.length===1?c[0].angle:0,L=(0,v.U1)(m,z,V,ce,-te),re=(0,h.Z)(L,2);switch(m=re[0],z=re[1],a){case"n":return(0,v.U1)(m-(x+G)/2,z-N,0,0,te);case"s":return(0,v.U1)(m-(x+G)/2,z-ie,0,0,te);case"w":return(0,v.U1)(m-x,z-(N+ie)/2,0,0,te);case"e":return(0,v.U1)(m-G,z-(N+ie)/2,0,0,te);case"nw":return(0,v.U1)(m-x,z-N,0,0,te);case"ne":return(0,v.U1)(m-G,z-N,0,0,te);case"sw":return(0,v.U1)(m-x,z-ie,0,0,te);case"se":return(0,v.U1)(m-G,z-ie,0,0,te);default:return[0,0]}},l=function(a,c){var m=(0,h.Z)(c.points,2),z=(0,h.Z)(m[1],2),j=z[0],k=z[1];return a==="nw"&&(j<0||k<0)||a==="ne"&&j>=0||a==="sw"&&j<=0||a==="se"&&(j>0||k>0)?"end":"origin"}},7935:function(Se,Q,e){e.d(Q,{PZ:function(){return v},QD:function(){return I},Qp:function(){return Z},o4:function(){return M},uK:function(){return n}});var D=e(2577),E=(e(583),e(4183)),y=e(9937),h=e(4949),S=e(9827),I=function(H){return(0,E.bt)(H)||(0,E.F9)(H)?H.points.length<2:H.width===0&&H.height===0},v=function(H,W,u,U){var le=(0,h.Pi)(H),de=(0,D.Z)(le,4),he=de[0],pe=de[1],oe=de[2],P=de[3],$=(0,S.dE)({clientX:U.offsetLeft,clientY:U.offsetTop},U),b=(0,S.dE)({clientX:U.offsetLeft+W,clientY:U.offsetTop+u},U);return $.x<=oe&&$.y<=P&&b.x>=he&&b.y>=pe},n=function(H,W,u){var U=Math.abs(W),le=Math.abs(u);if(H==="line"||H==="arrow"||H==="freedraw"){var de=Math.round(Math.atan(le/U)/y.ay)*y.ay;de===0?u=0:de===Math.PI/2?W=0:u=U*Math.tan(de)*Math.sign(u)||u}else H!=="selection"&&(u=U*Math.sign(u));return{width:W,height:u}},M=function(H,W,u,U){var le=u-H,de=U-W,he=Math.round(Math.atan(de/le)/y.ay)*y.ay;if(he===0)de=0;else if(he===Math.PI/2)le=0;else{var pe=Math.tan(he),oe=W-pe*H,P=-1/pe,$=U-P*u;le=(-1*$- -1*oe)/(-1*pe- -1*P)-H,de=(oe*P-$*pe)/(-1*pe- -1*P)-W}return{width:le,height:de}},Z=function(H){var W={width:H.width,height:H.height,x:H.x,y:H.y};if(H.width<0){var u=Math.abs(H.width);W.width=u,W.x=H.x-u}if(H.height<0){var U=Math.abs(H.height);W.height=U,W.y=H.y-U}return W}},4761:function(Se,Q,e){e.d(Q,{$2:function(){return s},AT:function(){return j},D9:function(){return we},FE:function(){return _},H_:function(){return ce},NS:function(){return We},OW:function(){return re},P7:function(){return b},PT:function(){return Oe},R8:function(){return O},RB:function(){return R},Rg:function(){return f},TP:function(){return ie},WJ:function(){return N},X1:function(){return g},Zr:function(){return Ce},aV:function(){return L},bG:function(){return oe},cn:function(){return te},cw:function(){return V},eB:function(){return xe},iZ:function(){return Te},lD:function(){return c},mY:function(){return l},oN:function(){return $},tl:function(){return G},w_:function(){return t},xB:function(){return x}});var D,E=e(2577),y=e(1930),h=e(7169),S=e(9827),I=e(583),v=e(9937),n=e(457),M=e(7651),Z=e(4183),H=e(7422),W=e(4105),u=e(3528),U=e(3474);function le(J,ke){var q=Object.keys(J);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(J);ke&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(J,i).enumerable})),q.push.apply(q,o)}return q}function de(J){for(var ke=1;ke<arguments.length;ke++){var q=arguments[ke]!=null?arguments[ke]:{};ke%2?le(Object(q),!0).forEach(function(o){(0,h.Z)(J,o,q[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(J,Object.getOwnPropertyDescriptors(q)):le(Object(q)).forEach(function(o){Object.defineProperty(J,o,Object.getOwnPropertyDescriptor(q,o))})}return J}var he,pe,oe=function(J){return J.replace(/\t/g," ").replace(/\r?\n|\r/g,` +`)},P=function(J){return oe(J).split(` +`)},$=function(J,ke){var q=void 0,o={x:J.x,y:J.y,text:J.text,width:J.width,height:J.height,baseline:J.baseline};o.text=J.text,ke&&(q=Te(ke,J),o.text=c(J.originalText,(0,S.mO)(J),q));var i=g(o.text,(0,S.mO)(J),J.lineHeight);if(o.width=i.width,o.height=i.height,o.baseline=i.baseline,ke){var p=we(ke,J),B=Te(ke);if(!(0,Z.Yv)(ke)&&i.height>p){var A=We(i.height,ke.type);(0,I.DR)(ke,{height:A}),(0,U.h_)(ke.id,A)}if(i.width>B){var X=We(i.width,ke.type);(0,I.DR)(ke,{width:X})}var Y=de(de({},J),o),ee=_(ke,Y),ge=ee.x,be=ee.y;o.x=ge,o.y=be}(0,I.DR)(J,o)},b=function(J,ke,q){var o=(0,S.xn)(J);ke.forEach(function(i){var p=q.get(i.id),B=x(i);if(B){var A=q.get(B);if(A){var X=o.get(p);X&&(0,I.DR)(X,{boundElements:(i.boundElements||[]).filter(function(ee){return ee.id!==A&&ee.id!==B}).concat({type:"text",id:A})});var Y=o.get(A);Y&&(0,M.iB)(Y)&&(0,I.DR)(Y,{containerId:X?p:null})}}})},R=function(J,ke){var q=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=x(J);if(o){(0,U.kT)(J.id);var i=n.Z.getScene(J).getElement(o);if(i&&i.text){if(!J)return;var p=(i=n.Z.getScene(J).getElement(o)).text,B=i.height,A=i.width,X=Te(J),Y=we(J,i),ee=J.height,ge=i.baseline;if(q||ke!=="n"&&ke!=="s"){p&&(p=c(i.originalText,(0,S.mO)(i),X));var be=g(p,(0,S.mO)(i),i.lineHeight);B=be.height,A=be.width,ge=be.baseline}if(B>Y){var Re=(ee=We(B,J.type))-J.height,Ze=(0,Z.Yv)(J)||ke!=="ne"&&ke!=="nw"&&ke!=="n"?J.y:J.y-Re;(0,I.DR)(J,{height:ee,y:Ze})}(0,I.DR)(i,{text:p,width:A,height:B,baseline:ge}),(0,Z.Yv)(J)||(0,I.DR)(i,_(J,i))}}},_=function(J,ke){if((0,Z.Yv)(J))return H._.getBoundTextElementPosition(J,ke);var q,o=V(J),i=we(J,ke),p=Te(J);return q=ke.verticalAlign===v.oX.TOP?o.y:ke.verticalAlign===v.oX.BOTTOM?o.y+(i-ke.height):o.y+(i/2-ke.height/2),{x:ke.textAlign===v.I8.LEFT?o.x:ke.textAlign===v.I8.RIGHT?o.x+(p-ke.width):o.x+(p/2-ke.width/2),y:q}},g=function(J,ke,q){J=J.split(` +`).map(function(p){return p||" "}).join(` +`);var o=parseFloat(ke),i=a(J,o,q);return{width:l(J,ke),height:i,baseline:O(J,ke,q)}},O=function(J,ke,q,o){var i=document.createElement("div");i.style.position="absolute",i.style.whiteSpace="pre",i.style.font=ke,i.style.minHeight="1em",o&&(i.style.overflow="hidden",i.style.wordBreak="break-word",i.style.whiteSpace="pre-wrap"),i.style.lineHeight=String(q),i.innerText=J,document.body.appendChild(i);var p=document.createElement("span");p.style.display="inline-block",p.style.overflow="hidden",p.style.width="1px",p.style.height="1px",i.appendChild(p);var B=p.offsetTop+p.offsetHeight,A=i.offsetHeight;if(v.G6){var X=a(J,parseFloat(ke),q),Y=parseFloat(ke),ee=a(J,Math.round(Y),q);X>A&&(B+=X-ee),A>X&&(B-=ee-X)}return document.body.removeChild(i),B},s=function(J){var ke=P(J.text).length;return J.height/ke/J.fontSize},f=function(J,ke){return J*ke},t=function(J,ke){return f(J,ke)+2*v.gK},w=function(J,ke){he||(he=document.createElement("canvas"));var q=he.getContext("2d");q.font=ke;var o=q.measureText(J).width;return(0,S.h2)()?10*o:o},l=function(J,ke){var q=P(J),o=0;return q.forEach(function(i){o=Math.max(o,w(i,ke))}),o},a=function(J,ke,q){var o=P(J).length;return f(ke,q)*o},c=function(J,ke,q){if(!Number.isFinite(q)||q<0)return J;var o=[],i=J.split(` +`),p=w(" ",ke),B="",A=0,X=function(ee){ee.trim()&&o.push(ee)},Y=function(){B="",A=0};return i.forEach(function(ee){if(l(ee,ke)<=q)o.push(ee);else{var ge=function(Ye){var tt=Ye.split("-");return tt.length>1&&tt.forEach(function(ue,ve){ve!==tt.length-1&&(tt[ve]=ue+="-")}),tt.join(" ").split(" ")}(ee);Y();for(var be=0;be<ge.length;){var Re=w(ge[be],ke);if(Re===q)X(ge[be]),be++;else if(Re>q){for(X(B),Y();ge[be].length>0;){var Ze=String.fromCodePoint(ge[be].codePointAt(0)),Be=m.calculate(Ze,ke);A+=Be,ge[be]=ge[be].slice(Ze.length),A>=q?(X(B),B=Ze,A=Be):B+=Ze}A+p>=q?(X(B),Y()):B.endsWith("-")||(B+=" ",A+=p),be++}else for(;A<q&&be<ge.length;){var Ie=ge[be];if((A=w(B+Ie,ke))>q){X(B),Y();break}be++;var Ke=!Ie.endsWith("-");if(B+=Ie,Ke&&(B+=" "),A+p>=q){Ke?o.push(B.slice(0,-1)):o.push(B),Y();break}}}B.slice(-1)===" "&&(B=B.slice(0,-1),X(B))}}),o.join(` +`)},m=(pe={},{calculate:function(J,ke){var q=J.charCodeAt(0);if(pe[ke]||(pe[ke]=[]),!pe[ke][q]){var o=w(J,ke);pe[ke][q]=o}return pe[ke][q]},getCache:function(J){return pe[J]}}),z="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".toLocaleUpperCase(),j=function(J,ke){var q=k(J);return q===0?g(z.split("").join(` +`),J,ke).width+2*v.gK:q+2*v.gK},k=function(J){var ke=m.getCache(J);if(!ke)return 0;var q=ke.filter(function(o){return o!==void 0});return Math.max.apply(Math,(0,y.Z)(q))},x=function(J){var ke,q,o;return J!=null&&(ke=J.boundElements)!==null&&ke!==void 0&&ke.length&&(J==null||(q=J.boundElements)===null||q===void 0||(o=q.filter(function(i){return i.type==="text"})[0])===null||o===void 0?void 0:o.id)||null},N=function(J){if(!J)return null;var ke,q=x(J);return q&&((ke=n.Z.getScene(J))===null||ke===void 0?void 0:ke.getElement(q))||null},G=function(J){return J&&J.containerId&&((ke=n.Z.getScene(J))===null||ke===void 0?void 0:ke.getElement(J.containerId))||null;var ke},ie=function(J,ke){if(!(0,Z.Yv)(J))return{x:J.x+J.width/2,y:J.y+J.height/2};var q=H._.getPointsGlobalCoordinates(J);if(q.length%2==1){var o=Math.floor(J.points.length/2),i=H._.getPointGlobalCoordinates(J,J.points[o]);return{x:i[0],y:i[1]}}var p=J.points.length/2-1,B=H._.getEditorMidPoints(J,ke)[p];return B||(B=H._.getSegmentMidPoint(J,q[p],q[p+1],p+1)),{x:B[0],y:B[1]}},V=function(J){var ke=v.gK,q=v.gK;return J.type==="ellipse"&&(ke+=J.width/2*(1-Math.sqrt(2)/2),q+=J.height/2*(1-Math.sqrt(2)/2)),J.type==="diamond"&&(ke+=J.width/4,q+=J.height/4),{x:J.x+ke,y:J.y+q}},ce=function(J){var ke=G(J);return!ke||(0,Z.Yv)(ke)?J.angle:ke.angle},te=function(J){return J.some(function(ke){if((0,Z.Xh)(ke)){var q=G(ke);return!(0,M.iB)(ke)||!(0,Z.Yv)(q)}return!1})},L=function(J){return J.some(function(ke){if((0,Z.Xh)(ke)){var q=G(ke);return!(0,M.iB)(ke)||!(0,Z.Yv)(q)}return(0,M.iB)(ke)})},re=function(J,ke,q,o){var i=(0,W.eD)(J,ke);if(i.length===1)return(0,Z.mG)(i[0],!1)?i[0]:null;for(var p=null,B=J.length-1;B>=0;--B)if(!J[B].isDeleted){var A=(0,M.qf)(J[B]),X=(0,E.Z)(A,4),Y=X[0],ee=X[1],ge=X[2],be=X[3];if((0,Z.Yv)(J[B])&&(0,u.Qu)(J[B],ke,null,[q,o])){p=J[B];break}if(Y<q&&q<ge&&ee<o&&o<be){p=J[B];break}}return(0,Z.mG)(p,!1)?p:null},me=new Set(["rectangle","ellipse","diamond","arrow"]),Ce=function(J){return me.has(J.type)},We=function(J,ke){J=Math.ceil(J);var q=2*v.gK;return ke==="ellipse"?Math.round((J+q)/Math.sqrt(2)*2):ke==="arrow"?J+8*q:ke==="diamond"?2*(J+q):J+q},Te=function(J){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N(J),q=J.width;if((0,Z.Yv)(J)){var o,i=((o=ke?.fontSize)!==null&&o!==void 0?o:v.n5)*v.vL;return Math.max(v.bY*q,i)}return J.type==="ellipse"?Math.round(q/2*Math.sqrt(2))-2*v.gK:J.type==="diamond"?Math.round(q/2)-2*v.gK:q-2*v.gK},we=function(J,ke){var q=J.height;return(0,Z.Yv)(J)?q-8*v.gK*2<=0?ke.height:q:J.type==="ellipse"?Math.round(q/2*Math.sqrt(2))-2*v.gK:J.type==="diamond"?Math.round(q/2)-2*v.gK:q-2*v.gK},xe=function(){return l(z,(0,S.mO)({fontSize:v.n5,fontFamily:v.rk}))>0},_e=(D={},(0,h.Z)(D,v.ut.Virgil,1.25),(0,h.Z)(D,v.ut.Helvetica,1.15),(0,h.Z)(D,v.ut.Cascadia,1.2),D),Oe=function(J){return J in _e?_e[J]:_e[v.rk]}},3474:function(Se,Q,e){e.d(Q,{b_:function(){return _},eR:function(){return R},h_:function(){return $},kT:function(){return b}});var D=e(8950),E=e(7169),y=e(2577),h=e(2975),S=e.n(h),I=e(5491),v=e(9827),n=e(457),M=e(4183),Z=e(9937),H=e(583),W=e(4761),u=e(3361),U=e(6006),le=e(7422),de=e(4694);function he(g,O){var s=Object.keys(g);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(g);O&&(f=f.filter(function(t){return Object.getOwnPropertyDescriptor(g,t).enumerable})),s.push.apply(s,f)}return s}function pe(g){for(var O=1;O<arguments.length;O++){var s=arguments[O]!=null?arguments[O]:{};O%2?he(Object(s),!0).forEach(function(f){(0,E.Z)(g,f,s[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(s)):he(Object(s)).forEach(function(f){Object.defineProperty(g,f,Object.getOwnPropertyDescriptor(s,f))})}return g}var oe=function(g,O,s,f,t,w){var l=f.zoom,a=180*s/Math.PI,c=g*(l.value-1)/2,m=O*(l.value-1)/2;return g>t&&l.value!==1&&(c=t*(l.value-1)/2),O>w&&l.value!==1&&(m=w*(l.value-1)/2),"translate(".concat(c,"px, ").concat(m,"px) scale(").concat(l.value,") rotate(").concat(a,"deg)")},P={},$=function(g,O){var s=P[g]||(P[g]={height:O});return s.height=O,s},b=function(g){P[g]&&delete P[g]},R=function(g){var O,s;return(O=(s=P[g])===null||s===void 0?void 0:s.height)!==null&&O!==void 0?O:null},_=function(g){var O=g.id,s=g.onChange,f=g.onSubmit,t=g.getViewportCoords,w=g.element,l=g.canvas,a=g.excalidrawContainer,c=g.app,m=function(){var xe,_e=c.state,Oe=(xe=n.Z.getScene(w))===null||xe===void 0?void 0:xe.getElement(O);if(Oe){var J=Oe.textAlign,ke=Oe.verticalAlign;if(Oe&&(0,M.iB)(Oe)){var q=Oe.x,o=Oe.y,i=(0,W.tl)(Oe),p=Oe.width,B=Oe.height,A=Oe.width,X=Oe.height;if(i&&Oe.containerId){if((0,M.Yv)(i)){var Y=le._.getBoundTextElementPosition(i,Oe);q=Y.x,o=Y.y}var ee,ge=function(Je,qe){if(!qe.style.fontFamily||!qe.style.fontSize)return!1;var st=qe.style.fontFamily.replace(/"/g,"");return(0,v.$g)({fontFamily:Je.fontFamily})!==st||"".concat(Je.fontSize,"px")!==qe.style.fontSize}(Oe,z);if(ge?ee=$(i.id,i.height):(ee=P[i.id])||(ee=$(i.id,i.height)),p=(0,W.iZ)(i),B=(0,W.D9)(i,Oe),!(0,M.Yv)(i)&&X>B){var be=(0,W.NS)(X,i.type);return void(0,H.DR)(i,{height:be})}if(!(0,M.Yv)(i)&&i.height>ee.height&&X<B){var Re=(0,W.NS)(X,i.type);(0,H.DR)(i,{height:Re})}else o=(0,W.FE)(i,Oe).y}var Ze=t(q,o),Be=(0,y.Z)(Ze,2),Ie=Be[0],Ke=Be[1],Ye=z.selectionStart,tt=z.selectionEnd,ue=z.value.length;if(Ye===tt&&tt!==ue){var ve=ue-tt;z.selectionStart=z.value.length-ve,z.selectionEnd=z.value.length-ve}i?A+=.5:(p=(_e.width-8-Ie)/_e.zoom.value,A=Math.min(A,p));var De=Oe.lineHeight;Z.G6&&(De=(0,W.$2)(pe(pe({},Oe),{},{fontSize:Math.round(Oe.fontSize)})));var He=(_e.height-Ke)/_e.zoom.value;Object.assign(z.style,{font:(0,v.mO)(Oe),lineHeight:De,width:"".concat(A,"px"),height:"".concat(X,"px"),left:"".concat(Ie,"px"),top:"".concat(Ke,"px"),transform:oe(A,X,(0,W.H_)(Oe),_e,p,He),textAlign:J,verticalAlign:ke,color:Oe.strokeColor,opacity:Oe.opacity/100,filter:"var(--theme-filter)",maxHeight:"".concat(He,"px")}),z.scrollTop=0,(0,v.h2)()&&(z.style.fontFamily=(0,v.$g)(Oe)),(0,H.DR)(Oe,{x:q,y:o})}}},z=document.createElement("textarea");z.dir="auto",z.tabIndex=0,z.dataset.type="wysiwyg",z.wrap="off",z.classList.add("excalidraw-wysiwyg");var j="pre",k="normal";(0,M.Xh)(w)&&(j="pre-wrap",k="break-word"),Object.assign(z.style,{position:"absolute",display:"inline-block",minHeight:"1em",backfaceVisibility:"hidden",margin:0,padding:0,border:0,outline:0,resize:"none",background:"transparent",overflow:"hidden",zIndex:"var(--zIndex-wysiwyg)",wordBreak:k,whiteSpace:j,overflowWrap:"break-word",boxSizing:"content-box"}),z.value=w.originalText,m(),s&&(z.onpaste=function(){var xe=(0,D.Z)(S().mark(function _e(Oe){var J,ke,q,o,i,p;return S().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,(0,de.mQ)(Oe,!0);case 2:if((J=B.sent).text){B.next=5;break}return B.abrupt("return");case 5:if(ke=(0,W.bG)(J.text)){B.next=8;break}return B.abrupt("return");case 8:q=(0,W.tl)(w),o=(0,v.mO)({fontSize:c.state.currentItemFontSize,fontFamily:c.state.currentItemFontFamily}),q&&(i=(0,W.lD)("".concat(z.value).concat(ke),o,(0,W.iZ)(q)),p=(0,W.mY)(i,o),z.style.width="".concat(p,"px"));case 11:case"end":return B.stop()}},_e)}));return function(_e){return xe.apply(this,arguments)}}(),z.oninput=function(){s((0,W.bG)(z.value))}),z.onkeydown=function(xe){if(!xe.shiftKey&&U.Lo.keyTest(xe))xe.preventDefault(),c.actionManager.executeAction(U.Lo),m();else if(!xe.shiftKey&&U.CZ.keyTest(xe))xe.preventDefault(),c.actionManager.executeAction(U.CZ),m();else if(u.Tu.keyTest(xe))c.actionManager.executeAction(u.Tu);else if(u.Zq.keyTest(xe))c.actionManager.executeAction(u.Zq);else if(xe.key===I.tW.ESCAPE)xe.preventDefault(),te=!0,L();else if(xe.key===I.tW.ENTER&&xe[I.tW.CTRL_OR_CMD]){if(xe.preventDefault(),xe.isComposing||xe.keyCode===229)return;te=!0,L()}else if(xe.key===I.tW.TAB||xe[I.tW.CTRL_OR_CMD]&&(xe.code===I.aU.BRACKET_LEFT||xe.code===I.aU.BRACKET_RIGHT)){if(xe.preventDefault(),xe.isComposing)return;xe.shiftKey||xe.code===I.aU.BRACKET_LEFT?ie():G(),z.dispatchEvent(new Event("input"))}};var x=" ".repeat(4),N=new RegExp("^ {1,".concat(4,"}")),G=function(){var xe=z.selectionStart,_e=z.selectionEnd,Oe=V(),J=z.value;Oe.forEach(function(ke){var q=J.slice(0,ke),o=J.slice(ke);J="".concat(q).concat(x).concat(o)}),z.value=J,z.selectionStart=xe+4,z.selectionEnd=_e+4*Oe.length},ie=function(){var xe=z.selectionStart,_e=z.selectionEnd,Oe=V(),J=[],ke=z.value;Oe.forEach(function(q){var o=ke.slice(q,q+4).match(N);if(o){var i=ke.slice(0,q),p=ke.slice(q+o[0].length);ke="".concat(i).concat(p),J.push(q)}}),z.value=ke,J.length&&(xe>J[J.length-1]?z.selectionStart=Math.max(xe-4,J[J.length-1]):z.selectionStart=xe,z.selectionEnd=Math.max(z.selectionStart,_e-4*J.length))},V=function(){var xe=z.selectionStart,_e=z.selectionEnd,Oe=z.value,J=Oe.slice(0,xe).match(/[^\n]*$/)[0].length;return xe-=J,Oe.slice(xe,_e).split(` +`).reduce(function(ke,q,o,i){return ke.concat(o?ke[o-1]+i[o-1].length+1:xe)},[]).reverse()},ce=function(xe){xe.preventDefault(),xe.stopPropagation()},te=!1,L=function(){var xe;re();var _e=(xe=n.Z.getScene(w))===null||xe===void 0?void 0:xe.getElement(w.id);if(_e){var Oe=z.value,J=(0,W.tl)(_e);if(J){if(Oe=_e.text,z.value.trim()){var ke=(0,W.xB)(J);ke&&ke===w.id?(0,M.Yv)(J)&&(0,H.ZP)(J):(0,H.DR)(J,{boundElements:(J.boundElements||[]).concat({type:"text",id:w.id})})}else{var q;(0,H.DR)(J,{boundElements:(q=J.boundElements)===null||q===void 0?void 0:q.filter(function(o){return!(0,M.iB)(o)})})}(0,W.oN)(_e,J)}f({text:Oe,viaKeyboard:te,originalText:z.value})}},re=function(){Te||(Te=!0,z.onblur=null,z.oninput=null,z.onkeydown=null,we&&we.disconnect(),window.removeEventListener("resize",m),window.removeEventListener("wheel",ce,!0),window.removeEventListener("pointerdown",Ce),window.removeEventListener("pointerup",me),window.removeEventListener("blur",L),window.removeEventListener("beforeunload",L),We(),z.remove())},me=function xe(_e){window.removeEventListener("pointerup",xe);var Oe=_e?.target,J=Oe instanceof HTMLElement&&Oe.classList.contains("active-color");setTimeout(function(){if(z.onblur=L,J){var ke=new MutationObserver(function(q,o){q.find(function(i){var p;return i.removedNodes.length>0&&((p=i.removedNodes[0].dataset)===null||p===void 0?void 0:p.radixPopperContentWrapper)!==void 0})&&(setTimeout(function(){z.focus()}),o.disconnect())});ke.observe(document.querySelector(".excalidraw-container"),{childList:!0})}J||z.focus()})},Ce=function(xe){var _e=xe.target instanceof HTMLElement&&xe.target.classList.contains("active-color");((xe.target instanceof HTMLElement||xe.target instanceof SVGElement)&&xe.target.closest(".".concat(Z.$C.SHAPE_ACTIONS_MENU))&&!(0,v.s)(xe.target)||_e)&&(z.onblur=null,window.addEventListener("pointerup",me),window.addEventListener("blur",L))},We=n.Z.getScene(w).addCallback(function(){var xe;m(),!((xe=document.activeElement)===null||xe===void 0||!xe.closest(".color-picker-content"))||z.focus()}),Te=!1;z.select(),me();var we=null;l&&"ResizeObserver"in window?(we=new window.ResizeObserver(function(){m()})).observe(l):window.addEventListener("resize",m),window.addEventListener("pointerdown",Ce),window.addEventListener("wheel",ce,{passive:!1,capture:!0}),window.addEventListener("beforeunload",L),a?.querySelector(".excalidraw-textEditorContainer").appendChild(z)}},4048:function(Se,Q,e){e.d(Q,{Fn:function(){return M},PC:function(){return le},kK:function(){return U},oY:function(){return de},ox:function(){return n}});var D=e(2577),E=e(4949),y=e(2361),h=e(7651),S=e(4183),I=e(7766),v={mouse:8,pen:16,touch:28},n={e:!0,s:!0,n:!0,w:!0},M={e:!0,s:!0,n:!0,w:!0,rotation:!0},Z={e:!0,s:!0,n:!0,w:!0},H={e:!0,s:!0,n:!0,w:!0,nw:!0,se:!0},W={e:!0,s:!0,n:!0,w:!0},u=function(he,pe,oe,P,$,b,R){var _=(0,y.U1)(he+oe/2,pe+P/2,$,b,R),g=(0,D.Z)(_,2);return[g[0]-oe/2,g[1]-P/2,oe,P]},U=function(he,pe,oe,P){var $=(0,D.Z)(he,6),b=$[0],R=$[1],_=$[2],g=$[3],O=$[4],s=$[5],f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},t=arguments.length>5&&arguments[5]!==void 0?arguments[5]:4,w=v[P],l=w/oe.value,a=w/oe.value,c=w/oe.value,m=w/oe.value,z=_-b,j=g-R,k=t/oe.value,x=(w-2*I.Lu)/(2*oe.value),N={nw:f.nw?void 0:u(b-k-c+x,R-k-m+x,l,a,O,s,pe),ne:f.ne?void 0:u(_+k-x,R-k-m+x,l,a,O,s,pe),sw:f.sw?void 0:u(b-k-c+x,g+k-x,l,a,O,s,pe),se:f.se?void 0:u(_+k-x,g+k-x,l,a,O,s,pe),rotation:f.rotation?void 0:u(b+z/2-l/2,R-k-m+x-16/oe.value,l,a,O,s,pe)},G=5*v.mouse/oe.value;return Math.abs(z)>G&&(f.n||(N.n=u(b+z/2-l/2,R-k-m+x,l,a,O,s,pe)),f.s||(N.s=u(b+z/2-l/2,g+k-x,l,a,O,s,pe))),Math.abs(j)>G&&(f.w||(N.w=u(b-k-c+x,R+j/2-a/2,l,a,O,s,pe)),f.e||(N.e=u(_+k-x,R+j/2-a/2,l,a,O,s,pe))),N},le=function(he,pe){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"mouse";if(he.locked)return{};var P={};if(he.type==="freedraw"||(0,S.bt)(he)){if(he.points.length===2){var $=(0,D.Z)(he.points,2),b=$[1];b[0]===0||b[1]===0?P=W:b[0]>0&&b[1]<0?P=H:b[0]>0&&b[1]>0?P=W:b[0]<0&&b[1]>0?P=H:b[0]<0&&b[1]<0&&(P=W)}}else(0,h.iB)(he)?P=Z:(0,S.He)(he)&&(P={rotation:!0});var R=(0,S.bt)(he)?I.Lu+8:I.Lu;return U((0,E.qf)(he,!0),he.angle,pe,oe,P,R)},de=function(he,pe){if(pe.editingLinearElement)return!1;if(he.length>1)return!0;var oe=he[0];return!(0,S.bt)(oe)||oe.points.length>2}},4183:function(Se,Q,e){e.d(Q,{F9:function(){return n},He:function(){return v},Lx:function(){return U},Mn:function(){return u},QI:function(){return P},UQ:function(){return R},Xh:function(){return oe},Xo:function(){return pe},Yv:function(){return H},bt:function(){return Z},dt:function(){return W},eK:function(){return b},f0:function(){return le},gs:function(){return S},iB:function(){return I},mG:function(){return de},pC:function(){return h},r2:function(){return he},wi:function(){return y}});var D=e(9937),E=e(9827),y=function(_){return!!_&&_.type==="image"&&!!_.fileId},h=function(_){return!!_&&_.type==="image"},S=function(_){return!!_&&_.type==="embeddable"},I=function(_){return _!=null&&_.type==="text"},v=function(_){return _!=null&&_.type==="frame"},n=function(_){return _!=null&&M(_.type)},M=function(_){return _==="freedraw"},Z=function(_){return _!=null&&W(_.type)},H=function(_){return _!=null&&_.type==="arrow"},W=function(_){return _==="arrow"||_==="line"},u=function(_){var g=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return _!=null&&(!_.locked||g===!0)&&U(_.type)},U=function(_){return _==="arrow"},le=function(_){var g=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return!(_==null||_.locked&&g!==!0||_.type!=="rectangle"&&_.type!=="diamond"&&_.type!=="ellipse"&&_.type!=="image"&&_.type!=="embeddable"&&_.type!=="frame"&&(_.type!=="text"||_.containerId))},de=function(_){var g=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return _!=null&&(!_.locked||g===!0)&&(_.type==="rectangle"||_.type==="diamond"||_.type==="ellipse"||H(_))},he=function(_){var g=_?.type;if(!g)return!1;switch(g){case"text":case"diamond":case"rectangle":case"embeddable":case"ellipse":case"arrow":case"freedraw":case"line":case"frame":case"image":case"selection":return!0;default:return(0,E.vE)(g,null),!1}},pe=function(_){var g;return de(_)&&!((g=_.boundElements)===null||g===void 0||!g.some(function(O){return O.type==="text"}))},oe=function(_){return _!==null&&"containerId"in _&&_.containerId!==null&&I(_)},P=function(_){return _==="rectangle"||_==="embeddable"},$=function(_){return _==="line"||_==="arrow"||_==="diamond"},b=function(_,g){return!(_!==D.a6.ADAPTIVE_RADIUS&&_!==D.a6.LEGACY||!P(g.type))||!(_!==D.a6.PROPORTIONAL_RADIUS||!$(g.type))},R=function(_){return $(_.type)?{type:D.a6.PROPORTIONAL_RADIUS}:P(_.type)?{type:D.a6.ADAPTIVE_RADIUS}:null}},3506:function(Se,Q,e){e.d(Q,{_L:function(){return W},lp:function(){return H},jk:function(){return u}});var D=e(5169),E=e(8821),y=e(2248),h=e(7245),S=e(2312),I=e(5901);function v(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function n(U,le,de){return n=v()?Reflect.construct.bind():function(he,pe,oe){var P=[null];P.push.apply(P,pe);var $=new(Function.bind.apply(he,P));return oe&&(0,I.Z)($,oe.prototype),$},n.apply(null,arguments)}function M(U){var le=typeof Map=="function"?new Map:void 0;return M=function(de){if(de===null||(he=de,Function.toString.call(he).indexOf("[native code]")===-1))return de;var he;if(typeof de!="function")throw new TypeError("Super expression must either be null or a function");if(le!==void 0){if(le.has(de))return le.get(de);le.set(de,pe)}function pe(){return n(de,arguments,(0,S.Z)(this).constructor)}return pe.prototype=Object.create(de.prototype,{constructor:{value:pe,enumerable:!1,writable:!0,configurable:!0}}),(0,I.Z)(pe,de)},M(U)}function Z(U){var le=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var de,he=(0,S.Z)(U);if(le){var pe=(0,S.Z)(this).constructor;de=Reflect.construct(he,arguments,pe)}else de=he.apply(this,arguments);return(0,h.Z)(this,de)}}var H=function(U){(0,y.Z)(de,U);var le=Z(de);function de(){var he,pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Couldn't export canvas.",oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"CANVAS_ERROR";return(0,E.Z)(this,de),(he=le.call(this)).name=oe,he.message=pe,he}return(0,D.Z)(de)}(M(Error)),W=function(U){(0,y.Z)(de,U);var le=Z(de);function de(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Request Aborted";return(0,E.Z)(this,de),le.call(this,he,"AbortError")}return(0,D.Z)(de)}(M(DOMException)),u=function(U){(0,y.Z)(de,U);var le=Z(de);function de(){var he,pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Image Scene Data Error",oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"IMAGE_SCENE_DATA_ERROR";return(0,E.Z)(this,de),(he=le.call(this,pe)).name="EncodingError",he.code=oe,he}return(0,D.Z)(de)}(M(Error))},4682:function(Se,Q,e){e.d(Q,{$Z:function(){return f},A_:function(){return t},Dn:function(){return $},Qs:function(){return j},SH:function(){return b},Tq:function(){return c},_h:function(){return g},cH:function(){return z},cO:function(){return P},fj:function(){return s},lz:function(){return w},ni:function(){return O},pr:function(){return a},wO:function(){return _},xr:function(){return le},yZ:function(){return l},zD:function(){return R}});var D=e(1930),E=e(2577),y=e(7651),h=e(2361),S=e(4761),I=e(9827),v=e(583),n=e(4105),M=e(9215),Z=e(457),H=e(4949),W=e(507);function u(k,x){var N=typeof Symbol<"u"&&k[Symbol.iterator]||k["@@iterator"];if(!N){if(Array.isArray(k)||(N=function(L,re){if(L){if(typeof L=="string")return U(L,re);var me=Object.prototype.toString.call(L).slice(8,-1);if(me==="Object"&&L.constructor&&(me=L.constructor.name),me==="Map"||me==="Set")return Array.from(L);if(me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(me))return U(L,re)}}(k))||x&&k&&typeof k.length=="number"){N&&(k=N);var G=0,ie=function(){};return{s:ie,n:function(){return G>=k.length?{done:!0}:{done:!1,value:k[G++]}},e:function(L){throw L},f:ie}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var V,ce=!0,te=!1;return{s:function(){N=N.call(k)},n:function(){var L=N.next();return ce=L.done,L},e:function(L){te=!0,V=L},f:function(){try{ce||N.return==null||N.return()}finally{if(te)throw V}}}}function U(k,x){(x==null||x>k.length)&&(x=k.length);for(var N=0,G=new Array(x);N<x;N++)G[N]=k[N];return G}var le=function(k,x,N){var G,ie=(0,I.xn)(k),V=u(x);try{for(V.s();!(G=V.n()).done;){var ce=G.value;if(ce.frameId){var te=N.get(ce.id),L=N.get(ce.frameId);if(te){var re=ie.get(te);re&&(0,v.DR)(re,{frameId:L??ce.frameId},!1)}}}}catch(me){V.e(me)}finally{V.f()}};function de(k,x){var N=(0,H.GJ)(x),G=(0,H.GJ)(k);return N.some(function(ie){return G.some(function(V){return(0,W.y8)(ie,V)})})}var he=function(k,x){return m((0,n.Yp)(k,x,!1)).filter(function(N){return N.type!=="frame"&&!N.frameId||N.frameId===x.id})},pe=function(k,x,N){return(0,n.Yp)(k,x).some(function(G){return G.id===N.id})},oe=function(k,x){var N=(0,y.qf)(x),G=(0,E.Z)(N,4),ie=G[0],V=G[1],ce=G[2],te=G[3],L=(0,y.KP)(k),re=(0,E.Z)(L,4),me=re[0],Ce=re[1],We=re[2],Te=re[3];return ie<=me&&V<=Ce&&ce>=We&&te>=Te},P=function(k,x){return oe([k],x)||de(k,x)||pe([x],k,x)},$=function(k,x){var N=(0,y.qf)(x),G=(0,E.Z)(N,4),ie=G[0],V=G[1],ce=G[2],te=G[3];return(0,h.Ni)([ie,V],[k.x,k.y],[ce,te])},b=function(k){var x,N=new Map,G=u(k);try{for(G.s();!(x=G.n()).done;){var ie=x.value,V=(0,y.He)(ie)?ie.id:ie.frameId;V&&!N.has(V)&&N.set(V,R(k,V))}}catch(ce){G.e(ce)}finally{G.f()}return N},R=function(k,x){return k.filter(function(N){return N.frameId===x})},_=function(k){return k.filter(function(x){return(0,y.He)(x)})},g=function(k){var x=(0,I.xn)(_(k));return k.filter(function(N){return x.has(N.id)||!N.frameId||!x.has(N.frameId)})},O=function(k,x,N){var G,ie=R(k,x.id),V=new Set(ie),ce=new Set([].concat((0,D.Z)(he(k,x)),(0,D.Z)(ie.filter(function(Ke){return pe(k,Ke,x)})))),te=ie.filter(function(Ke){return!ce.has(Ke)}),L=new Set(Array.from(ce).flatMap(function(Ke){return Ke.groupIds})),re=u(te);try{for(re.s();!(G=re.n()).done;){var me=G.value;if(de(me,x)){if(me.groupIds.length>0){var Ce,We=u(me.groupIds);try{for(We.s();!(Ce=We.n()).done;){var Te=Ce.value;L.add(Te)}}catch(Ke){We.e(Ke)}finally{We.f()}}}else me.groupIds.length===0&&V.delete(me)}}catch(Ke){re.e(Ke)}finally{re.f()}var we,xe=u(te);try{for(xe.s();!(we=xe.n()).done;){var _e=we.value;if(_e.groupIds.length>0){var Oe,J=!0,ke=u(_e.groupIds);try{for(ke.s();!(Oe=ke.n()).done;){var q=Oe.value;L.has(q)&&(J=!1)}}catch(Ke){ke.e(Ke)}finally{ke.f()}J&&V.delete(_e)}}}catch(Ke){xe.e(Ke)}finally{xe.f()}var o,i=Array.from(ce).filter(function(Ke){return Ke.groupIds.length===0}),p=u(i);try{for(p.s();!(o=p.n()).done;){var B=o.value;V.add(B)}}catch(Ke){p.e(Ke)}finally{p.f()}for(var A=Array.from(ce).filter(function(Ke){return Ke.groupIds.length>0}),X=(0,M.yR)(A,N),Y=0,ee=Object.entries(X);Y<ee.length;Y++){var ge=(0,E.Z)(ee[Y],2),be=ge[0];if(ge[1]){var Re=(0,M.Fb)(k,be);if(oe(Re,x)){var Ze,Be=u(Re);try{for(Be.s();!(Ze=Be.n()).done;){var Ie=Ze.value;V.add(Ie)}}catch(Ke){Be.e(Ke)}finally{Be.f()}}}}return(0,D.Z)(V).filter(function(Ke){return!((0,y.iB)(Ke)&&Ke.containerId)})},s=function(k,x){return m(k,he(k,x))},f=function(k,x){var N;return k.frameId?x?x.get(k.frameId)||null:((N=Z.Z.getScene(k))===null||N===void 0?void 0:N.getElement(k.frameId))||null:null},t=function(k,x,N){var G,ie=k.reduce(function(we,xe,_e){return xe.frameId===N.id&&we.currTargetFrameChildrenMap.set(xe.id,!0),we},{currTargetFrameChildrenMap:new Map}),V=ie.currTargetFrameChildrenMap,ce=new Set(x.map(function(we){return we.id})),te=[],L=u(m(k,x));try{for(L.s();!(G=L.n()).done;){var re=G.value;V.has(re.id)||te.push(re);var me=(0,S.WJ)(re);!me||ce.has(me.id)||V.has(me.id)||te.push(me)}}catch(we){L.e(we)}finally{L.f()}for(var Ce=0,We=te;Ce<We.length;Ce++){var Te=We[Ce];(0,v.DR)(Te,{frameId:N.id},!1)}return k.slice()},w=function(k,x,N){var G,ie=new Map,V=new Map,ce=u(x);try{for(ce.s();!(G=ce.n()).done;){var te=G.value;if(te.frameId){ie.set(te.id,te);var L=V.get(te.frameId)||[];L.push(te);var re=(0,S.WJ)(te);re&&(ie.set(re.id,re),L.push(re)),V.set(te.frameId,L)}}}catch(Te){ce.e(Te)}finally{ce.f()}var me,Ce=u(ie);try{for(Ce.s();!(me=Ce.n()).done;){var We=(0,E.Z)(me.value,2)[1];(0,v.DR)(We,{frameId:null},!1)}}catch(Te){Ce.e(Te)}finally{Ce.f()}return k.slice()},l=function(k,x,N){var G=R(k,x.id);return w(k,G)},a=function(k,x,N,G){return t(l(k,N),x,N)},c=function(k,x,N){var G=N.scene.getSelectedElements({selectedElementIds:x.selectedElementIds,elements:k}),ie=new Set(G);if(x.editingGroupId){var V,ce=u(G);try{for(ce.s();!(V=ce.n()).done;){var te=V.value;te.groupIds.length===0?ie.add(te):te.groupIds.flatMap(function(re){return(0,M.Fb)(k,re)}).forEach(function(re){return ie.add(re)})}}catch(re){ce.e(re)}finally{ce.f()}}var L=new Set;return ie.forEach(function(re){!re.frameId||(0,y.He)(re)||j(re,k,x)||L.add(re)}),L.size>0?w(k,(0,D.Z)(L)):k},m=function(k,x){var N,G=new Set,ie=u(x||k);try{for(ie.s();!(N=ie.n()).done;){var V=N.value,ce=V.groupIds[V.groupIds.length-1];ce&&G.add(ce)}}catch(Ce){ie.e(Ce)}finally{ie.f()}var te,L=new Set,re=u(G);try{for(re.s();!(te=re.n()).done;){var me=te.value;(0,M.Fb)(k,me).some(function(Ce){return(0,y.He)(Ce)})&&L.add(me)}}catch(Ce){re.e(Ce)}finally{re.f()}return(x||k).filter(function(Ce){return!L.has(Ce.groupIds[Ce.groupIds.length-1])})},z=function(k,x){var N=(0,y.iB)(k)&&(0,S.tl)(k)||k;return x.selectedElementIds[N.id]&&x.selectedElementsAreBeingDragged?x.frameToHighlight:f(N)},j=function(k,x,N){var G=z(k,N),ie=(0,y.iB)(k)&&(0,S.tl)(k)||k;if(G){if(!N.selectedElementIds[k.id]||!N.selectedElementsAreBeingDragged)return!0;if(ie.groupIds.length===0)return P(ie,G);var V=new Set(ie.groupIds.flatMap(function(Te){return(0,M.Fb)(x,Te)}));if(N.editingGroupId&&N.selectedElementsAreBeingDragged){var ce=new Set((0,n.eD)(x,N));if(N.frameToHighlight!==null)return!0;ce.forEach(function(Te){V.delete(Te)})}var te,L=u(V);try{for(L.s();!(te=L.n()).done;){var re=te.value;if((0,y.He)(re))return!1}}catch(Te){L.e(Te)}finally{L.f()}var me,Ce=u(V);try{for(Ce.s();!(me=Ce.n()).done;){var We=me.value;if(P(We,G))return!0}}catch(Te){Ce.e(Te)}finally{Ce.f()}}return!1}},9215:function(Se,Q,e){e.d(Q,{AI:function(){return _},F$:function(){return H},Fb:function(){return oe},Nd:function(){return pe},Qy:function(){return $},S_:function(){return b},YS:function(){return P},bO:function(){return W},h6:function(){return R},iE:function(){return he},iJ:function(){return le},yO:function(){return U},yR:function(){return de},zq:function(){return u}});var D=e(1930),E=e(2577),y=e(7169),h=e(4105),S=e(4761),I=e(6264);function v(g,O){var s=typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(!s){if(Array.isArray(g)||(s=function(c,m){if(c){if(typeof c=="string")return n(c,m);var z=Object.prototype.toString.call(c).slice(8,-1);if(z==="Object"&&c.constructor&&(z=c.constructor.name),z==="Map"||z==="Set")return Array.from(c);if(z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return n(c,m)}}(g))||O&&g&&typeof g.length=="number"){s&&(g=s);var f=0,t=function(){};return{s:t,n:function(){return f>=g.length?{done:!0}:{done:!1,value:g[f++]}},e:function(c){throw c},f:t}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w,l=!0,a=!1;return{s:function(){s=s.call(g)},n:function(){var c=s.next();return l=c.done,c},e:function(c){a=!0,w=c},f:function(){try{l||s.return==null||s.return()}finally{if(a)throw w}}}}function n(g,O){(O==null||O>g.length)&&(O=g.length);for(var s=0,f=new Array(O);s<O;s++)f[s]=g[s];return f}function M(g,O){var s=Object.keys(g);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(g);O&&(f=f.filter(function(t){return Object.getOwnPropertyDescriptor(g,t).enumerable})),s.push.apply(s,f)}return s}function Z(g){for(var O=1;O<arguments.length;O++){var s=arguments[O]!=null?arguments[O]:{};O%2?M(Object(s),!0).forEach(function(f){(0,y.Z)(g,f,s[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(s)):M(Object(s)).forEach(function(f){Object.defineProperty(g,f,Object.getOwnPropertyDescriptor(s,f))})}return g}var H=function(g,O,s){var f=s.reduce(function(t,w){return w.groupIds.includes(g)&&(t[w.id]=!0),t},{});return Object.keys(f).length<2?O.selectedGroupIds[g]||O.editingGroupId===g?{selectedElementIds:O.selectedElementIds,selectedGroupIds:Z(Z({},O.selectedGroupIds),{},(0,y.Z)({},g,!1)),editingGroupId:null}:O:{editingGroupId:O.editingGroupId,selectedGroupIds:Z(Z({},O.selectedGroupIds),{},(0,y.Z)({},g,!0)),selectedElementIds:Z(Z({},O.selectedElementIds),f)}},W=function(){var g=null,O=null,s=null,f=function(t,w,l,a){var c=a?a.scene.getSelectedElements({selectedElementIds:t.selectedElementIds,elements:w}):(0,h.eD)(w,t);return c.length?function(m,z,j,k){var x;if(s!==void 0&&z===O&&m===g&&j.editingGroupId===((x=s)===null||x===void 0?void 0:x.editingGroupId))return s;var N,G={},ie=v(m);try{for(ie.s();!(N=ie.n()).done;){var V=N.value.groupIds;if(j.editingGroupId){var ce=V.indexOf(j.editingGroupId);ce>-1&&(V=V.slice(0,ce))}if(V.length>0){var te=V[V.length-1];G[te]=!0}}}catch(Te){ie.e(Te)}finally{ie.f()}for(var L={},re=z.reduce(function(Te,we){var xe=we.groupIds.find(function(_e){return G[_e]});return xe&&(Te[we.id]=!0,Array.isArray(L[xe])?L[xe].push(we.id):L[xe]=[we.id]),Te},{}),me=0,Ce=Object.keys(L);me<Ce.length;me++){var We=Ce[me];L[We].length<2&&G[We]&&(G[We]=!1)}return O=z,g=m,s={editingGroupId:j.editingGroupId,selectedGroupIds:G,selectedElementIds:(0,I.Oh)(Z(Z({},j.selectedElementIds),re),k)}}(c,w,t,l):{selectedGroupIds:{},editingGroupId:null,selectedElementIds:(0,I.Oh)(t.selectedElementIds,l)}};return f.clearCache=function(){O=null,g=null,s=null},f}(),u=function(g,O){return U(g,O)!=null},U=function(g,O){return O.groupIds.filter(function(s){return s!==g.editingGroupId}).find(function(s){return g.selectedGroupIds[s]})},le=function(g){return Object.entries(g.selectedGroupIds).filter(function(O){var s=(0,E.Z)(O,2);return s[0],s[1]}).map(function(O){var s=(0,E.Z)(O,2),f=s[0];return s[1],f})},de=function(g,O){var s,f=Z(Z({},O),{},{selectedGroupIds:{}}),t=v(g);try{for(t.s();!(s=t.n()).done;){var w=s.value.groupIds;if(O.editingGroupId){var l=w.indexOf(O.editingGroupId);l>-1&&(w=w.slice(0,l))}if(w.length>0){var a=w[w.length-1];f=Z(Z({},f),H(a,f,g))}}}catch(c){t.e(c)}finally{t.f()}return f.selectedGroupIds},he=function(g,O){return Z(Z({},g),{},{editingGroupId:O.groupIds.length?O.groupIds[0]:null,selectedGroupIds:{},selectedElementIds:(0,y.Z)({},O.id,!0)})},pe=function(g,O){return g.groupIds.includes(O)},oe=function(g,O){return g.filter(function(s){return pe(s,O)})},P=function(g,O){return g.groupIds.find(function(s){return O[s]})},$=function(g,O,s){for(var f=(0,D.Z)(g),t=O?g.indexOf(O):-1,w=t>-1?t:g.length,l=0;l<w;l++)f[l]=s(f[l]);return f},b=function(g,O,s){var f=(0,D.Z)(g),t=s?f.indexOf(s):-1,w=t>-1?t:f.length;return f.splice(w,0,O),f},R=function(g,O){return g.filter(function(s){return!O[s]})},_=function(g){var O=new Map;return g.forEach(function(s){var f=s.groupIds.length===0?s.id:s.groupIds[s.groupIds.length-1],t=O.get(f)||[],w=(0,S.WJ)(s);w&&t.push(w),O.set(f,[].concat((0,D.Z)(t),[s]))}),Array.from(O.values())}},334:function(Se,Q,e){e.d(Q,{F:function(){return I}});var D=e(1930),E=e(2577),y=e(9787),h=e(8242),S=e(100),I=function(v){var n=(0,y.useState)(null),M=(0,E.Z)(n,2),Z=M[0],H=M[1],W=(0,h.Fy)(),u=(0,S.I)().theme,U=(0,h.J0)().container;return(0,y.useLayoutEffect)(function(){var le,de;Z&&(Z.className="",(le=Z.classList).add.apply(le,["excalidraw"].concat((0,D.Z)((v==null||(de=v.className)===null||de===void 0?void 0:de.split(/\s+/))||[]))),Z.classList.toggle("excalidraw--mobile",W.editor.isMobile),Z.classList.toggle("theme--dark",u==="dark"))},[Z,u,W.editor.isMobile,v?.className]),(0,y.useLayoutEffect)(function(){var le=v!=null&&v.parentSelector?U?.querySelector(v.parentSelector):document.body;if(le){var de=document.createElement("div");return le.appendChild(de),H(de),function(){le.removeChild(de)}}},[U,v?.parentSelector]),Z}},5832:function(Se,Q,e){e.d(Q,{YX:function(){return Z},mF:function(){return W},yT:function(){return u}});var D=e(2577),E=e(8950),y=e(2975),h=e.n(y),S=e(3607),I=e(9787),v=e(9240),n=e(453),M=e(507),Z=(0,S.cn)(new Map),H=function(){var U=(0,E.Z)(h().mark(function le(de){return h().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,(0,M.$D)({elements:de,appState:{exportBackground:!1,viewBackgroundColor:v.HO.white},files:null,renderEmbeddables:!1});case 2:return he.abrupt("return",he.sent);case 3:case"end":return he.stop()}},le)}));return function(le){return U.apply(this,arguments)}}(),W=function(U,le,de){var he=(0,I.useState)(),pe=(0,D.Z)(he,2),oe=pe[0],P=pe[1];return(0,I.useEffect)(function(){if(le)if(U){var $=de.get(U);$?P($):(0,E.Z)(h().mark(function b(){var R,_;return h().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,H(le);case 2:_=g.sent,(R=_.querySelector(".style-fonts"))===null||R===void 0||R.remove(),_&&(de.set(U,_),P(_));case 5:case"end":return g.stop()}},b)}))()}else(0,E.Z)(h().mark(function b(){var R;return h().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,H(le);case 2:R=_.sent,P(R);case 4:case"end":return _.stop()}},b)}))()},[U,le,de,P]),oe},u=function(){var U=(0,S.KO)(Z,n.yE),le=(0,D.Z)(U,1)[0];return{clearLibraryCache:function(){return le.clear()},deleteItemsFromLibraryCache:function(de){de.forEach(function(he){return le.delete(he)})},svgCache:le}}},1901:function(Se,Q,e){e.d(Q,{O:function(){return y}});var D=e(9787),E=e(9937);function y(h,S,I){(0,D.useEffect)(function(){function v(n){var M=n;if(h.current){var Z=I?.(M,h.current);if(Z!==!0){if(Z===!1)return S(M);!h.current.contains(M.target)&&document.documentElement.contains(M.target)&&(M.target.closest("[data-radix-portal]")||M.target===document.documentElement&&document.body.style.pointerEvents==="none"||M.target.closest("[data-prevent-outside-click]")||S(M))}}}return document.addEventListener(E.Ks.POINTER_DOWN,v),document.addEventListener(E.Ks.TOUCH_START,v),function(){document.removeEventListener(E.Ks.POINTER_DOWN,v),document.removeEventListener(E.Ks.TOUCH_START,v)}},[h,S,I])}},8227:function(Se,Q,e){e.d(Q,{Fp:function(){return M},G3:function(){return le},Mj:function(){return Z},QT:function(){return oe},m0:function(){return U},t:function(){return he}});var D=e(8950),E=e(1930),y=e(2975),h=e.n(y),S=e(1463),I=e(4451),v=e(453),n=e(3607),M={code:"en",label:"English"},Z=[M].concat((0,E.Z)([{code:"ar-SA",label:"العربية",rtl:!0},{code:"bg-BG",label:"Български"},{code:"ca-ES",label:"Català"},{code:"cs-CZ",label:"Česky"},{code:"de-DE",label:"Deutsch"},{code:"el-GR",label:"Ελληνικά"},{code:"es-ES",label:"Español"},{code:"eu-ES",label:"Euskara"},{code:"fa-IR",label:"فارسی",rtl:!0},{code:"fi-FI",label:"Suomi"},{code:"fr-FR",label:"Français"},{code:"gl-ES",label:"Galego"},{code:"he-IL",label:"עברית",rtl:!0},{code:"hi-IN",label:"हिन्दी"},{code:"hu-HU",label:"Magyar"},{code:"id-ID",label:"Bahasa Indonesia"},{code:"it-IT",label:"Italiano"},{code:"ja-JP",label:"日本語"},{code:"kab-KAB",label:"Taqbaylit"},{code:"kk-KZ",label:"Қазақ тілі"},{code:"ko-KR",label:"한국어"},{code:"ku-TR",label:"Kurdî"},{code:"lt-LT",label:"Lietuvių"},{code:"lv-LV",label:"Latviešu"},{code:"my-MM",label:"Burmese"},{code:"nb-NO",label:"Norsk bokmål"},{code:"nl-NL",label:"Nederlands"},{code:"nn-NO",label:"Norsk nynorsk"},{code:"oc-FR",label:"Occitan"},{code:"pa-IN",label:"ਪੰਜਾਬੀ"},{code:"pl-PL",label:"Polski"},{code:"pt-BR",label:"Português Brasileiro"},{code:"pt-PT",label:"Português"},{code:"ro-RO",label:"Română"},{code:"ru-RU",label:"Русский"},{code:"sk-SK",label:"Slovenčina"},{code:"sv-SE",label:"Svenska"},{code:"sl-SI",label:"Slovenščina"},{code:"tr-TR",label:"Türkçe"},{code:"uk-UA",label:"Українська"},{code:"zh-CN",label:"简体中文"},{code:"zh-TW",label:"繁體中文"},{code:"vi-VN",label:"Tiếng Việt"},{code:"mr-IN",label:"मराठी"}].filter(function(P){return I[P.code]>=85}).sort(function(P,$){return P.label>$.label?1:-1}))),H="__test__",W=M,u={},U=function(){var P=(0,D.Z)(h().mark(function $(b){return h().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(W=b,document.documentElement.dir=W.rtl?"rtl":"ltr",document.documentElement.lang=W.code,!b.code.startsWith(H)){R.next=7;break}u={},R.next=17;break;case 7:return R.prev=7,R.next=10,e(940)("./".concat(W.code,".json"));case 10:u=R.sent,R.next=17;break;case 13:R.prev=13,R.t0=R.catch(7),console.error("Failed to load language ".concat(b.code,":"),R.t0.message),u=S;case 17:v.e_.set(pe,b.code);case 18:case"end":return R.stop()}},$,null,[[7,13]])}));return function($){return P.apply(this,arguments)}}(),le=function(){return W},de=function(P,$){for(var b=0;b<$.length;++b){var R=$[b];if(P[R]===void 0)return;P=P[R]}if(typeof P=="string")return P},he=function(P,$,b){if(W.code.startsWith(H)){var R=$?"".concat(P,"(").concat(JSON.stringify($).slice(1,-1),")"):P;return"‪[[".concat(R,"]]‬")}var _=P.split("."),g=de(u,_)||de(S,_)||b;if(g===void 0){var O="Can't find translation for ".concat(P);return console.warn(O),""}if($)for(var s in $)g=g.replace("{{".concat(s,"}}"),String($[s]));return g},pe=(0,n.cn)(M.code),oe=function(){var P=(0,n.Dv)(pe,v.yE);return{t:he,langCode:P}}},453:function(Se,Q,e){e.d(Q,{e_:function(){return y},yE:function(){return E}});var D=e(3607),E=(e(9787),Symbol()),y=(0,D.Vv)()},5491:function(Se,Q,e){e.d(Q,{E0:function(){return I},Ge:function(){return v},OA:function(){return S},Wl:function(){return h},aU:function(){return E},tW:function(){return y}});var D=e(9937),E={EQUAL:"Equal",MINUS:"Minus",NUM_ADD:"NumpadAdd",NUM_SUBTRACT:"NumpadSubtract",NUM_ZERO:"Numpad0",BRACKET_RIGHT:"BracketRight",BRACKET_LEFT:"BracketLeft",ONE:"Digit1",TWO:"Digit2",THREE:"Digit3",NINE:"Digit9",QUOTE:"Quote",ZERO:"Digit0",SLASH:"Slash",C:"KeyC",D:"KeyD",H:"KeyH",V:"KeyV",Z:"KeyZ",R:"KeyR",S:"KeyS"},y={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",BACKSPACE:"Backspace",ALT:"Alt",CTRL_OR_CMD:D.Um?"metaKey":"ctrlKey",DELETE:"Delete",ENTER:"Enter",ESCAPE:"Escape",QUESTION_MARK:"?",SPACE:" ",TAB:"Tab",CHEVRON_LEFT:"<",CHEVRON_RIGHT:">",PERIOD:".",COMMA:",",SUBTRACT:"-",A:"a",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",L:"l",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",V:"v",X:"x",Y:"y",Z:"z",K:"k",W:"w",0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9"},h=function(n){return n===y.ARROW_LEFT||n===y.ARROW_RIGHT||n===y.ARROW_DOWN||n===y.ARROW_UP},S=function(n){return n.altKey},I=function(n){return n.shiftKey},v=function(n){return n.shiftKey}},2361:function(Se,Q,e){e.d(Q,{EK:function(){return R},H5:function(){return M},Jj:function(){return b},LW:function(){return n},N_:function(){return pe},Ni:function(){return W},U1:function(){return S},Xt:function(){return O},c9:function(){return H},eH:function(){return P},ep:function(){return _},g6:function(){return Z},lk:function(){return $},mW:function(){return g},wC:function(){return le},xj:function(){return I},yB:function(){return he},yW:function(){return de},yq:function(){return v}});var D=e(2577),E=e(9937),y=e(4949),h=e(2921),S=function(s,f,t,w,l){return[(s-t)*Math.cos(l)-(f-w)*Math.sin(l)+t,(s-t)*Math.sin(l)+(f-w)*Math.cos(l)+w]},I=function(s,f,t){return S(s[0],s[1],f[0],f[1],t)},v=function(s,f,t,w,l,a,c,m){var z=Math.cos(w),j=Math.sin(w);return s.e&&s.w?f+=l+c:s.e?(f+=l*(1+z),t+=l*j,f+=c*(1-z),t+=c*-j):s.w&&(f+=l*(1-z),t+=l*-j,f+=c*(1+z),t+=c*j),s.n&&s.s?t+=a+m:s.n?(f+=a*j,t+=a*(1-z),f+=m*-j,t+=m*(1+z)):s.s&&(f+=a*-j,t+=a*(1+z),f+=m*j,t+=m*(1-z)),[f,t]},n=function(s,f,t,w){var l=t-s,a=w-f;return Math.hypot(l,a)},M=function(s,f){return[(s[0]+f[0])/2,(s[1]+f[1])/2]},Z=function(s){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(s.length>=3){var t=[s[0],s[s.length-1]],w=t[0],l=t[1],a=n(w[0],w[1],l[0],l[1]);return a<=E.qx/f}return!1},H=function(s,f,t){var w=s.length;if(w<3)return!1;for(var l=[Number.MAX_SAFE_INTEGER,t],a=[f,t],c=0,m=0;m<w;m++){var z=s[m],j=s[(m+1)%w];if(U(z,j,a,l)){if(u(z,a,j)===0)return W(z,a,j);c++}}return c%2==1},W=function(s,f,t){return f[0]<=Math.max(s[0],t[0])&&f[0]>=Math.min(s[0],t[0])&&f[1]<=Math.max(s[1],t[1])&&f[1]>=Math.min(s[1],t[1])},u=function(s,f,t){var w=(f[1]-s[1])*(t[0]-f[0])-(f[0]-s[0])*(t[1]-f[1]);return w===0?0:w>0?1:2},U=function(s,f,t,w){var l=u(s,f,t),a=u(s,f,w),c=u(t,w,s),m=u(t,w,f);return l!==a&&c!==m||!(l!==0||!W(s,t,f))||!(a!==0||!W(s,w,f))||!(c!==0||!W(t,s,w))||!(m!==0||!W(t,f,w))},le=function(s,f,t){return t?[Math.round(s/t)*t,Math.round(f/t)*t]:[s,f]},de=function(s,f){var t,w,l;if(((t=f.roundness)===null||t===void 0?void 0:t.type)===E.a6.PROPORTIONAL_RADIUS||((w=f.roundness)===null||w===void 0?void 0:w.type)===E.a6.LEGACY)return s*E.Rx;if(((l=f.roundness)===null||l===void 0?void 0:l.type)===E.a6.ADAPTIVE_RADIUS){var a,c,m=(a=(c=f.roundness)===null||c===void 0?void 0:c.value)!==null&&a!==void 0?a:E._9;return s<=m/E.Rx?s*E.Rx:m}return 0},he=function(s,f){var t=h.R.generateElementShape(s);if(!t)return null;for(var w=(0,y.CM)(t[0]),l=[0,0],a=0,c=1/0,m=null;a<w.length;){var z=w[a],j=z.op,k=z.data;if(j==="move"&&(l=k),j==="bcurveTo"){var x=l,N=[k[0],k[1]],G=[k[2],k[3]],ie=[k[4],k[5]],V=n(ie[0],ie[1],f[0],f[1]);V<c&&(c=V,m=[x,N,G,ie]),l=ie}a++}return m},pe=function(s,f,t,w,l){var a=function(c,m){return Math.pow(1-c,3)*w[m]+3*c*Math.pow(1-c,2)*t[m]+3*Math.pow(c,2)*(1-c)*f[m]+s[m]*Math.pow(c,3)};return[a(l,0),a(l,1)]},oe=function(s,f){var t=[];t[0]=0;for(var w=function(c,m){var z=he(c,m);if(!z)return[];for(var j=[],k=1;k>0;){var x=pe(z[0],z[1],z[2],z[3],k);j.push([x[0],x[1]]),k-=.05}return j.length&&b(j.at(-1),m)&&j.push([m[0],m[1]]),j}(s,f),l=0,a=0;l<w.length-1;)a+=n(w[l][0],w[l][1],w[l+1][0],w[l+1][1]),t.push(a),l++;return t},P=function(s,f){return oe(s,f).at(-1)},$=function(s,f,t){for(var w=oe(s,f),l=w.length-1,a=t*w.at(-1),c=0,m=l,z=0;c<m;)w[z=Math.floor(c+(m-c)/2)]<a?c=z+1:m=z;return w[z]>a&&z--,w[z]===a?z/l:1-(z+(a-w[z])/(w[z+1]-w[z]))/l},b=function(s,f){return s[0]===f[0]&&s[1]===f[1]},R=function(s){return Math.round(s/Math.PI*1e4)%5e3==0},_=function(s,f){var t=(0,D.Z)(s,2),w=t[0],l=t[1],a=(0,D.Z)(f,2),c=a[0],m=a[1];return w<=c?l>=c:w>=c&&m>=w},g=function(s,f){var t=Math.max(s[0],f[0]),w=Math.min(s[1],f[1]);return t<=w?[t,w]:null},O=function(s,f,t){return s>=f&&s<=t}},4864:function(Se,Q,e){e.d(Q,{zx:function(){return ue.z},Or:function(){return Ve.O},Eb:function(){return Tr},ut:function(){return c.ut},$_:function(){return V},vO:function(){return ht},LO:function(){return c.LO},lb:function(){return ce.Z},YE:function(){return Ft.YE},C6:function(){return c.C6},B4:function(){return tt},ZP:function(){return yt.ZP},wc:function(){return at.w},Fp:function(){return W.Fp},sQ:function(){return ut.sQ},Xs:function(){return ut.Xs},Fl:function(){return Lt.Fl},NL:function(){return Lt.NL},i1:function(){return Lt.i1},$D:function(){return Lt.$D},KP:function(){return mt.KP},N7:function(){return Lt.N7},Lm:function(){return et.Lm},Uo:function(){return et.Uo},Ne:function(){return ut.Ne},QD:function(){return et.QD},bt:function(){return St.bt},Mj:function(){return W.Mj},cT:function(){return Lt.cT},lV:function(){return Lt.lV},ZY:function(){return Lt.ZY},zh:function(){return Lt.zh},DR:function(){return yt.DR},BE:function(){return yt.BE},$u:function(){return bt.$u},Di:function(){return Wt.Di},nu:function(){return wt.nu},lY:function(){return wt.lY},ET:function(){return wt.ET},wJ:function(){return wt.wJ},_i:function(){return de._i},I_:function(){return Lt.I_},NI:function(){return Lt.NI},Fy:function(){return le.Fy},xS:function(){return Wt.xS},QT:function(){return W.QT},dE:function(){return de.dE}});var D=e(6479),E=e.n(D),y=e(9713),h=e.n(y),S=e(9787),I=e.n(S),v=e(8950),n=e(2577),M=e(2975),Z=e.n(M),H=e(7165),W=e(8227),u=e(1020),U=function(ot){var Rt=(0,S.useState)(!0),_t=(0,n.Z)(Rt,2),At=_t[0],br=_t[1];return(0,S.useEffect)(function(){var xr=function(){var Ar=(0,v.Z)(Z().mark(function fr(){return Z().wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return dt.next=2,(0,W.m0)(jr);case 2:br(!1);case 3:case"end":return dt.stop()}},fr)}));return function(){return Ar.apply(this,arguments)}}(),jr=W.Mj.find(function(Ar){return Ar.code===ot.langCode})||W.Fp;xr()},[ot.langCode]),At?(0,u.jsx)(H.z,{theme:ot.theme}):ot.children},le=e(8242),de=e(9827),he=e(3379),pe=e.n(he),oe=e(7795),P=e.n(oe),$=e(569),b=e.n($),R=e(3565),_=e.n(R),g=e(9216),O=e.n(g),s=e(4589),f=e.n(s),t=e(9915),w={};w.styleTagTransform=f(),w.setAttributes=_(),w.insert=b().bind(null,"head"),w.domAPI=P(),w.insertStyleElement=O(),pe()(t.Z,w),t.Z&&t.Z.locals&&t.Z.locals;var l=e(9310),a={};a.styleTagTransform=f(),a.setAttributes=_(),a.insert=b().bind(null,"head"),a.domAPI=P(),a.insertStyleElement=O(),pe()(l.Z,a),l.Z&&l.Z.locals&&l.Z.locals;var c=e(9937),m=e(3607),z=e(453),j=e(45),k=e(4572),x=e(8793),N={};N.styleTagTransform=f(),N.setAttributes=_(),N.insert=b().bind(null,"head"),N.domAPI=P(),N.insertStyleElement=O(),pe()(x.Z,N),x.Z&&x.Z.locals&&x.Z.locals;var G=e(100),ie=function(ot){var Rt=ot.children,_t=(0,k.R6)().FooterCenterTunnel,At=(0,G.I)();return(0,u.jsx)(_t.In,{children:(0,u.jsx)("div",{className:(0,j.Z)("footer-center zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-bottom":At.zenModeEnabled}),children:Rt})})},V=ie;ie.displayName="FooterCenter";var ce=e(7021),te=e(7169),L=e(2726),re=e(5463),me=e(2529),Ce=e(8935),We=e(5744),Te={};Te.styleTagTransform=f(),Te.setAttributes=_(),Te.insert=b().bind(null,"head"),Te.domAPI=P(),Te.insertStyleElement=O(),pe()(We.Z,Te),We.Z&&We.Z.locals&&We.Z.locals;var we=function(){return(0,u.jsx)("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ExcalidrawLogo-icon",children:(0,u.jsx)("path",{d:"M39.9 32.889a.326.326 0 0 0-.279-.056c-2.094-3.083-4.774-6-7.343-8.833l-.419-.472a.212.212 0 0 0-.056-.139.586.586 0 0 0-.167-.111l-.084-.083-.056-.056c-.084-.167-.28-.278-.475-.167-.782.39-1.507.973-2.206 1.528-.92.722-1.842 1.445-2.708 2.25a8.405 8.405 0 0 0-.977 1.028c-.14.194-.028.361.14.444-.615.611-1.23 1.223-1.843 1.861a.315.315 0 0 0-.084.223c0 .083.056.166.111.194l1.09.833v.028c1.535 1.528 4.244 3.611 7.12 5.861.418.334.865.667 1.284 1 .195.223.39.473.558.695.084.11.28.139.391.055.056.056.14.111.196.167a.398.398 0 0 0 .167.056.255.255 0 0 0 .224-.111.394.394 0 0 0 .055-.167c.029 0 .028.028.056.028a.318.318 0 0 0 .224-.084l5.082-5.528a.309.309 0 0 0 0-.444Zm-14.63-1.917a.485.485 0 0 0 .111.14c.586.5 1.2 1 1.843 1.555l-2.569-1.945-.251-.166c-.056-.028-.112-.084-.168-.111l-.195-.167.056-.056.055-.055.112-.111c.866-.861 2.346-2.306 3.1-3.028-.81.805-2.43 3.167-2.095 3.944Zm8.767 6.89-2.122-1.612a44.713 44.713 0 0 0-2.625-2.5c1.145.861 2.122 1.611 2.262 1.75 1.117.972 1.06.806 1.815 1.445l.921.666a1.06 1.06 0 0 1-.251.25Zm.558.416-.056-.028c.084-.055.168-.111.252-.194l-.196.222ZM1.089 5.75c.055.361.14.722.195 1.056.335 1.833.67 3.5 1.284 4.75l.252.944c.084.361.223.806.363.917 1.424 1.25 3.602 3.11 5.947 4.889a.295.295 0 0 0 .363 0s0 .027.028.027a.254.254 0 0 0 .196.084.318.318 0 0 0 .223-.084c2.988-3.305 5.221-6.027 6.813-8.305.112-.111.14-.278.14-.417.111-.111.195-.25.307-.333.111-.111.111-.306 0-.39l-.028-.027c0-.055-.028-.139-.084-.167-.698-.666-1.2-1.138-1.731-1.638-.922-.862-1.871-1.75-3.881-3.75l-.028-.028c-.028-.028-.056-.056-.112-.056-.558-.194-1.703-.389-3.127-.639C6.087 2.223 3.21 1.723.614.944c0 0-.168 0-.196.028l-.083.084c-.028.027-.056.055-.224.11h.056-.056c.028.167.028.278.084.473 0 .055.112.5.112.555l.782 3.556Zm15.496 3.278-.335-.334c.084.112.196.195.335.334Zm-3.546 4.666-.056.056c0-.028.028-.056.056-.056Zm-2.038-10c.168.167.866.834 1.033.973-.726-.334-2.54-1.167-3.379-1.445.838.167 1.983.334 2.346.472ZM1.424 2.306c.419.722.754 3.222 1.089 5.666-.196-.778-.335-1.555-.503-2.278-.251-1.277-.503-2.416-.838-3.416.056 0 .14 0 .252.028Zm-.168-.584c-.112 0-.223-.028-.307-.028 0-.027 0-.055-.028-.055.14 0 .223.028.335.083Zm-1.089.222c0-.027 0-.027 0 0ZM39.453 1.333c.028-.11-.558-.61-.363-.639.42-.027.42-.666 0-.666-.558.028-1.144.166-1.675.25-.977.194-1.982.389-2.96.61-2.205.473-4.383.973-6.561 1.557-.67.194-1.424.333-2.066.666-.224.111-.196.333-.084.472-.056.028-.084.028-.14.056-.195.028-.363.056-.558.083-.168.028-.252.167-.224.334 0 .027.028.083.028.11-1.173 1.556-2.485 3.195-3.909 4.945-1.396 1.611-2.876 3.306-4.356 5.056-4.719 5.5-10.052 11.75-15.943 17.25a.268.268 0 0 0 0 .389c.028.027.056.055.084.055-.084.084-.168.14-.252.222-.056.056-.084.111-.084.167a.605.605 0 0 0-.111.139c-.112.111-.112.305.028.389.111.11.307.11.39-.028.029-.028.029-.056.056-.056a.44.44 0 0 1 .615 0c.335.362.67.723.977 1.028l-.698-.583c-.112-.111-.307-.083-.39.028-.113.11-.085.305.027.389l7.427 6.194c.056.056.112.056.196.056s.14-.028.195-.084l.168-.166c.028.027.083.027.111.027.084 0 .14-.027.196-.083 10.052-10.055 18.15-17.639 27.42-24.417.083-.055.111-.166.111-.25.112 0 .196-.083.251-.194 1.704-5.194 2.039-9.806 2.15-12.083v-.028c0-.028.028-.056.028-.083.028-.056.028-.084.028-.084a1.626 1.626 0 0 0-.111-1.028ZM21.472 9.5c.446-.5.893-1.028 1.34-1.5-2.876 3.778-7.65 9.583-14.408 16.5 4.607-5.083 9.242-10.333 13.068-15ZM5.193 35.778h.084-.084Zm3.462 3.194c-.027-.028-.027-.028 0-.028v.028Zm4.16-3.583c.224-.25.448-.472.699-.722 0 0 0 .027.028.027-.252.223-.475.445-.726.695Zm1.146-1.111c.14-.14.279-.334.446-.5l.028-.028c1.648-1.694 3.351-3.389 5.082-5.111l.028-.028c.419-.333.921-.694 1.368-1.028a379.003 379.003 0 0 0-6.952 6.695ZM24.794 6.472c-.921 1.195-1.954 2.778-2.82 4.028-2.736 3.944-11.532 13.583-11.727 13.75a1976.983 1976.983 0 0 1-8.042 7.639l-.167.167c-.14-.167-.14-.417.028-.556C14.49 19.861 22.03 10.167 25.074 5.917c-.084.194-.14.36-.28.555Zm4.83 5.695c-1.116-.64-1.646-1.64-1.34-2.611l.084-.334c.028-.083.084-.194.14-.277.307-.5.754-.917 1.257-1.167.027 0 .055 0 .083-.028-.028-.056-.028-.139-.028-.222.028-.167.14-.278.335-.278.335 0 1.369.306 1.76.639.111.083.223.194.335.305.14.167.363.445.474.667.056.028.112.306.196.445.056.222.111.472.084.694-.028.028 0 .194-.028.194a2.668 2.668 0 0 1-.363 1.028c-.028.028-.028.056-.056.084l-.028.027c-.14.223-.335.417-.53.556-.643.444-1.369.583-2.095.389 0 0-.195-.084-.28-.111Zm8.154-.834a39.098 39.098 0 0 1-.893 3.167c0 .028-.028.083 0 .111-.056 0-.084.028-.14.056-2.206 1.61-4.356 3.305-6.506 5.028 1.843-1.64 3.686-3.306 5.613-4.945.558-.5.949-1.139 1.06-1.861l.28-1.667v-.055c.14-.334.67-.195.586.166Z",fill:"currentColor"})})},xe=function(){return(0,u.jsxs)("svg",{viewBox:"0 0 450 55",xmlns:"http://www.w3.org/2000/svg",fill:"none",className:"ExcalidrawLogo-text",children:[(0,u.jsx)("path",{d:"M429.27 96.74c2.47-1.39 4.78-3.02 6.83-4.95 1.43-1.35 2.73-2.86 3.81-4.51-.66.9-1.4 1.77-2.23 2.59-2.91 2.84-5.72 5.09-8.42 6.87h.01ZM343.6 69.36c.33 3.13.58 6.27.79 9.4.09 1.37.18 2.75.25 4.12-.12-4.46-.27-8.93-.5-13.39-.11-2.08-.24-4.16-.4-6.24-.06 1.79-.11 3.85-.13 6.11h-.01ZM378.47 98.34c.01-.37.07-1.13.01-6.51-.11 1.9-.22 3.81-.31 5.71-.07 1.42-.22 2.91-.16 4.35.39.03.78.07 1.17.1-.92-.85-.76-2.01-.72-3.66l.01.01ZM344.09 86.12c-.09-2.41-.22-4.83-.39-7.24v12.21c.15-.05.32-.09.47-.14.05-1.61-.03-3.23-.09-4.83h.01ZM440.69 66.79c-.22-.34-.45-.67-.69-.99-3.71-4.87-9.91-7.14-15.65-8.55-1.05-.26-2.12-.49-3.18-.71 2.29.59 4.48 1.26 6.64 2.02 7.19 2.54 10.57 5.41 12.88 8.23ZM305.09 72.46l1.2 3.6c.84 2.53 1.67 5.06 2.46 7.61.24.78.5 1.57.73 2.36.22-.04.44-.08.67-.12a776.9 776.9 0 0 1-5.01-13.57c-.02.04-.03.09-.05.13v-.01ZM345.49 90.25v.31c1.48-.42 3.05-.83 4.66-1.2-1.56.25-3.12.52-4.66.89ZM371.02 90.22c0-.57-.04-1.14-.11-1.71-.06-.02-.12-.04-.19-.05-.21-.05-.43-.08-.65-.11.42.16.74.88.95 1.87ZM398.93 54.23c-.13 0-.27-.01-.4-.02l.03.4c.11-.15.23-.27.37-.38ZM401.57 62.28v-.15c-1.22-.24-2.86-.61-3.23-1.25-.09-.15-.18-.51-.27-.98-.09.37-.2.73-.33 1.09 1.24.56 2.52.98 3.83 1.29ZM421.73 88.68c-2.97 1.65-6.28 3.12-9.69 3.68v.18c4.72-.14 11.63-3.85 16.33-8.38-2.04 1.75-4.33 3.24-6.63 4.53l-.01-.01ZM411.28 80.92c-.05-1.2-.09-2.4-.15-3.6-.21 5.66-.46 11.38-.47 14.51.24-.02.48-.04.71-.07.15-3.61.05-7.23-.09-10.83v-.01Z",transform:"translate(-144.023 -51.76)"}),(0,u.jsx)("path",{d:"M425.38 67.41c-3.5-1.45-7.19-2.57-14.06-3.62.09 1.97.06 4.88-.03 8.12.03.04.06.09.06.15.19 1.36.28 2.73.37 4.1.25 3.77.39 7.55.41 11.33 0 1.38-.01 2.76-.07 4.13 1.4-.25 2.78-.65 4.12-1.15 4.07-1.5 7.94-3.78 11.28-6.54 2.33-1.92 5.13-4.49 5.88-7.58.63-3.53-2.45-6.68-7.97-8.96l.01.02ZM411.35 92.53v-.06l-.34.03c.11.01.22.03.34.03ZM314.26 64.06c-.23-.59-.47-1.17-.7-1.75.57 1.62 1.11 3.25 1.6 4.9l.15.54 2.35 6.05c.32.82.66 1.64.98 2.46-1.38-4.1-2.83-8.17-4.39-12.2h.01ZM156.82 103.07c-.18.13-.38.23-.58.33 1.32-.03 2.66-.2 3.93-.34.86-.09 1.72-.22 2.58-.33-2.12.1-4.12.17-5.94.34h.01ZM210.14 68.88s.03.04.05.07c.18-.31.39-.64.58-.96-.21.3-.42.6-.64.89h.01ZM201.65 82.8c-.5.77-1.02 1.56-1.49 2.37 1.11-1.55 2.21-3.1 3.2-4.59-.23.23-.49.51-.75.79-.32.47-.65.95-.96 1.43ZM194.03 98.66c-.33-.4-.65-.84-1.05-1.17-.24-.2-.07-.49.17-.56-.23-.26-.42-.5-.63-.75 1.51-2.55 3.93-5.87 6.4-9.28-.17-.08-.29-.28-.2-.49.04-.09.09-.17.13-.26-1.21 1.78-2.42 3.55-3.61 5.33-.87 1.31-1.74 2.64-2.54 4-.29.5-.63 1.04-.87 1.61.81.65 1.63 1.27 2.47 1.88-.09-.11-.18-.21-.27-.32v.01ZM307.79 82.93c-1-3.17-2.05-6.32-3.1-9.48-1.62 4.08-3.69 9.17-6.16 15.19 3.32-1.04 6.77-1.87 10.27-2.5-.32-1.08-.67-2.15-1.01-3.21ZM149.5 80.7c.05-1.71.04-3.43 0-5.14-.1 2.26-.16 4.51-.22 6.77-.02.73-.03 1.46-.04 2.19.14-1.27.2-2.55.24-3.82h.02ZM228.98 98.3c.39 1.25.91 3.03.94 3.91.06-.03.12-.07.17-.1.08-1.29-.55-2.65-1.11-3.81ZM307.72 53.36c.81.5 1.53 1.04 2.07 1.49-.38-.8-.78-1.58-1.21-2.35-.17.03-.34.06-.51.11-.43.12-.86.26-1.29.41.35-.01.53.1.94.34ZM283.69 96.14c3.91-7.25 6.89-13.35 8.88-18.15l1.1-2.66c-1.27 2.64-2.56 5.27-3.83 7.9-1.53 3.15-3.06 6.31-4.58 9.47-.87 1.81-1.76 3.62-2.54 5.47.04.02.07.04.11.07.05.05.1.09.15.14.05-.73.27-1.48.71-2.24ZM289.92 103.23s-.04.01-.05.03c0-.02.04-.03.05-.04.05-.05.11-.1.16-.15l.21-.21c-.55 0-1.5-.27-2.55-.72.4.26.8.51 1.22.74.24.13.48.26.73.37.05.02.1.03.14.05a.27.27 0 0 1 .08-.07h.01ZM269.23 68.49c-.39-.19-.82-.48-1.33-.87-3.06-1.56-6.31-2.78-9.36-2.35-3.5.49-5.7 1.11-7.74 2.44 5.71-2.6 12.82-2.07 18.44.79l-.01-.01ZM177.87 53.69l1.06.03c-.96-.22-2-.25-2.89-.3-4.95-.26-9.99.33-14.86 1.19-2.44.43-4.88.95-7.28 1.59 9.09-1.76 15.69-2.77 23.97-2.51ZM219.85 55.51c-.18.12-.36.27-.56.45-.45.53-.86 1.11-1.26 1.66-1.91 2.61-3.71 5.31-5.57 7.95l-.12.18 8.05-10.11c-.18-.05-.36-.1-.55-.13h.01ZM510.71 54.1c.12-.15.29-.3.53-.45.69-.4 3.72-.63 5.87-.74-.36-.02-.73-.04-1.09-.05-1.84-.03-3.67.09-5.49.35.05.3.12.59.18.88v.01ZM510.76 86.02c1.37-3.07 2.49-6.27 3.57-9.46.55-1.64 1.12-3.3 1.6-4.97-1.59 4.01-3.67 9.14-6.2 15.3.24-.08.5-.14.74-.22.1-.22.19-.44.29-.65ZM566.95 75.76c.11-.02.23.03.31.11-.05-.13-.09-.26-.14-.39-.05.09-.11.18-.17.28ZM511.33 86.41c3.08-.89 6.24-1.62 9.46-2.14-1.51-3.98-2.98-7.96-4.39-11.87-.05.15-.09.31-.14.46-1.02 3.32-2.15 6.61-3.39 9.85-.48 1.25-.98 2.49-1.53 3.7h-.01ZM578.24 74.45c.11-.44.23-.87.35-1.31-.31.7-.64 1.39-.97 2.08.09.21.19.4.28.61.12-.46.23-.92.35-1.38h-.01ZM520.62 53.11c-.09 0-.18-.01-.28-.02.38.34.29 1.08.93 2.53l6.65 17.15c2.2 5.68 4.69 11.36 7.41 16.87l1.06 2.17c-2.95-7.05-5.92-14.08-8.87-21.13-1.58-3.79-3.16-7.59-4.7-11.4-.78-1.92-1.73-3.89-2.25-5.91-.03-.1 0-.19.04-.26h.01ZM578.78 77.87c1.45-5.77 3.07-10.43 3.58-13.36.05-.34.16-.88.31-1.55-.67 1.79-1.37 3.56-2.08 5.33-.12.43-.23.86-.35 1.29-.65 2.43-1.29 4.86-1.9 7.3.14.33.29.65.43 1l.01-.01ZM545.3 94.66c.02-.44.03-.83.05-1.12.02-1.01.05-2.02.11-3.02.03-6.66-.46-14.33-1.46-22.8-.13-.42-.27-1.24-.56-2.89 0-.02 0-.04-.01-.06.62 6.61.95 13.25 1.32 19.87.17 3.08.33 6.16.52 9.23.02.25.03.52.04.78l-.01.01ZM580.77 102.81c.13.2.27.38.37.49.27-.11.53-.22.8-.32-.43.09-.82.05-1.17-.16v-.01ZM530.48 104.07h.33c-.36-.13-.71-.32-1.04-.56.14.24.3.47.45.7.06-.08.14-.13.26-.13v-.01ZM542.63 58.82c.06.23.11.47.15.71.14-.33.36-.62.7-.86-.28.05-.57.11-.85.15ZM583.81 57.87c.15-.7.29-1.41.42-2.11-.14.45-.28.9-.42 1.34-.46 1.44-.89 2.89-1.31 4.34.44-1.19.88-2.37 1.31-3.57ZM523.62 91.48c-4.66 1.17-9.05 2.89-14.02 5.27 4.65-1.84 9.48-3.29 14.28-4.63-.09-.22-.17-.41-.26-.64ZM460.64 78.3c-.04-2.9-.11-5.81-.28-8.71-.1-1.68-.17-3.43-.5-5.09-.07.02-.14.03-.2.05.3 6.54.45 12.17.51 17.12.17-.07.34-.14.51-.2 0-1.06-.01-2.11-.03-3.17h-.01ZM470.63 63.24c-3.38-.26-6.81.32-10.1 1.1.41 2.01.47 4.14.57 6.18.18 3.55.25 7.11.27 10.67 3.31-1.38 6.5-3.12 9.3-5.35 1.96-1.56 3.86-3.41 5.02-5.66.73-1.41 1.19-3.22.26-4.65-1.09-1.7-3.46-2.14-5.32-2.29ZM460.29 63.68c1-.24 2.01-.46 3.04-.65-1.15.16-2.37.38-3.71.69v.13c.07-.02.15-.04.22-.05.11-.13.3-.18.45-.11v-.01ZM457.24 100.96c.43-.03.86-.07 1.29-.11.14-.49.27-.99.38-1.49-.44.7-1 1.23-1.67 1.6ZM482.88 104.98c-.18.23-.36.38-.55.47.14.09.27.19.4.28a70.76 70.76 0 0 0 4.37-4.63c.76-.89 1.52-1.81 2.19-2.77-.3-.27-.61-.53-.92-.79-.07 1.94-4.62 6.32-5.49 7.45v-.01Z",transform:"translate(-144.023 -51.76)"}),(0,u.jsx)("path",{d:"M474.36 63.31c-.4-.16-.84-.27-1.29-.37 1.56.42 3.08 1.22 3.76 2.74.62 1.4.32 2.95-.28 4.32.7-1.22.94-2.34.74-3.47-.24-1.33-1.19-2.54-2.93-3.21v-.01ZM477.34 89.18c-1.2-.81-2.4-1.62-3.6-2.42-.14.1-.26.19-.4.29 1.4.67 2.73 1.39 4 2.13ZM465.88 93.85c.37.25.74.5 1.1.75.46.32.92.65 1.38.97-1.57-1.2-2.01-1.61-2.49-1.72h.01ZM574.92 90.06c-2.28-5.21-4.93-11.13-5.67-12.26-.1-.15-1.57-3.01-1.63-3.08 0 0-.01.02-.02.02.4 1.37 1.09 2.69 1.65 3.99 2.14 4.95 4.36 9.86 6.67 14.73.6 1.26 1.21 2.52 1.83 3.78-.75-2.01-1.64-4.45-2.83-7.18ZM448.73 65.29c.1.2.22.38.34.57.22-.02.43-.06.65-.08v-.08c-.14-.05-.25 0-.99-.41ZM460.16 94.81c-.02.31-.06.59-.1.89-.03 1.71-.33 3.43-.79 5.07.15-.02.3-.03.45-.05.01-.04.02-.08.03-.11.09-.34.15-.69.2-1.03.17-1.07.25-2.16.33-3.24.05-.69.08-1.39.12-2.08-.27.1-.27.26-.24.57v-.02Z",transform:"translate(-144.023 -51.76)"}),(0,u.jsx)("path",{d:"m328.67 98.12-3.22-6.58c-1.29-2.63-2.53-5.29-3.72-7.97-.25-.85-.52-1.69-.79-2.53-.81-2.57-1.67-5.12-2.55-7.67-1.92-5.53-3.9-11.08-6.32-16.41-.72-1.58-1.46-3.44-2.63-4.79-.03-.17-.16-.29-.34-.36a.282.282 0 0 0-.23-.04c-.06-.01-.12 0-.18.01-.74.06-1.5.38-2.19.61-2.22.77-4.4 1.64-6.63 2.38-.03-.08-.06-.16-.09-.25-.15-.42-.82-.24-.67.19.03.09.07.19.1.28l-.18.06c-.36.11-.28.6 0 .68.18 1.18.63 2.36.98 3.49.03.09.06.17.08.26-.08.23-.17.46-.24.64-.37.98-.79 1.94-1.21 2.9-1.27 2.89-2.62 5.75-3.98 8.6-3.18 6.67-6.44 13.31-9.64 19.97-1.08 2.25-2.2 4.5-3.15 6.81-.13.32.24.5.5.37 1.34 1.33 2.84 2.5 4.4 3.57.65.44 1.31.87 2.01 1.24.4.22.86.48 1.33.5.24.01.35-.19.33-.37.11-.1.21-.21.28-.28.41-.41.81-.84 1.2-1.26.85-.92 1.69-1.87 2.5-2.84 6.31-2.34 12.6-4.31 18.71-5.84 2.14 5.3 3.43 8.43 3.97 9.58.55 1.05 1.15 1.88 1.82 2.52 1.32.56 6.96-.03 9.23-1.96.87-1.28 1.19-2.67.93-4.15-.09-.5-.22-.95-.4-1.33l-.01-.03Zm-20.09-45.61c.43.77.83 1.56 1.21 2.35-.54-.45-1.27-.99-2.07-1.49-.42-.24-.6-.35-.94-.34.43-.15.85-.29 1.29-.41.17-.05.34-.08.51-.11Zm-25.86 45.66c.78-1.85 1.67-3.66 2.54-5.47 1.51-3.16 3.05-6.31 4.58-9.47 1.28-2.63 2.56-5.26 3.83-7.9l-1.1 2.66c-1.99 4.79-4.97 10.9-8.88 18.15-.43.76-.66 1.51-.71 2.24-.05-.05-.1-.09-.15-.14a.259.259 0 0 0-.11-.07Zm6.24 4.71c-.42-.23-.82-.48-1.22-.74 1.05.45 2 .72 2.55.72l-.21.21c-.05.05-.11.1-.16.15-.01.01-.04.03-.05.04 0-.02.03-.02.05-.03a.27.27 0 0 0-.08.07c-.05-.02-.1-.03-.14-.05-.25-.1-.49-.24-.73-.37h-.01Zm15.73-29.43c1.05 3.15 2.1 6.31 3.1 9.48.34 1.06.69 2.13 1.01 3.21-3.5.63-6.95 1.46-10.27 2.5 2.48-6.03 4.54-11.11 6.16-15.19Zm4.79 12.57c-.23-.79-.49-1.58-.73-2.36-.79-2.54-1.63-5.08-2.46-7.61l-1.2-3.6c.02-.04.04-.09.05-.13 1.6 4.45 3.28 9 5.01 13.57l-.67.12v.01Zm5.83-18.27-.15-.54c-.49-1.64-1.03-3.28-1.6-4.9.23.58.47 1.17.7 1.75 1.56 4.03 3.01 8.1 4.39 12.2-.33-.82-.67-1.64-.98-2.46l-2.35-6.05h-.01ZM390.43 79.37c-.13-10.43-.22-17.5-.24-19.97-.24-1.6.21-2.88-.65-3.65-.14-.13-.32-.23-.52-.32h.03c.45 0 .45-.69 0-.7-1.75-.03-3.5-.04-5.25-.14-1.38-.08-2.76-.21-4.15-.31-.07 0-.12.01-.17.04-.21-.07-.47.03-.45.31l.03.45c-.11.14-.19.3-.22.5-.21 1.26-.32 13.67-.36 23.59-.32 5.79-.67 11.57-.97 17.36-.09 1.73-.29 3.54-.21 5.3-.39.02-.38.64.04.69v.12c.05.44.74.45.7 0v-.06c1.1.09 2.2.21 3.3.3 1.14.19 2.44.2 3.29.17 1.73-.05 2.92-.05 3.8-.37.45-.05.9-.11 1.35-.17.44-.06.25-.73-.19-.67h-.01c.24-.32.45-.72.62-1.25.66-1.84.41-6.36.34-11.33l-.13-9.9.02.01Zm-12.26 18.17c.09-1.91.2-3.81.31-5.71.06 5.38 0 6.14-.01 6.51-.05 1.65-.21 2.81.72 3.66-.39-.04-.78-.07-1.17-.1-.06-1.44.09-2.93.16-4.35l-.01-.01ZM588.97 53.85c-2.06-.25-3.17-.51-3.76-.6a.3.3 0 0 1 .04-.08c.22-.39-.39-.75-.6-.35-.56 1.02-.9 2.19-1.26 3.29-.61 1.88-1.17 3.78-1.72 5.68-.63 2.19-1.24 4.39-1.83 6.59-.81 2.03-1.67 4.05-2.61 6.03-1.7-3.64-3.11-6.04-4.03-7.57-2.26-3.74-2.85-5.48-3.57-6.08l.31-.09c.43-.12.25-.8-.19-.67-1.06.3-2.12.6-3.17.95-.93.32-1.85.69-2.76 1.07-.13.05-.19.16-.22.27-.04.02-.08.05-.11.07-.04-.06-.07-.12-.11-.18a.354.354 0 0 0-.48-.12c-.16.09-.22.32-.13.48l.33.54c0 .09.02.18.06.28.51 1.16.78 1.38.72 1.47-2.42 3.44-5.41 7.86-6.2 9.1-1.27 1.97-2.01 3.14-2.45 3.84l-.91-6.56-.43-4.1c-.19-1.85-.37-3.23-.53-4.13-.19-1.1-.3-2.15-.45-3.16-.2-1.36-.29-2.06-.47-2.42h.04c.45.02.45-.68 0-.7-3.43-.16-6.81.94-10.17 1.48-.24-.22-.73-.04-.58.32.24.59.33 1.25.43 1.87.17 1.06.29 2.13.4 3.2.32 3.09.53 6.2.74 9.3.44 6.75.77 13.51 1.17 20.26.11 1.95.13 3.96.46 5.89.05.3.37.31.55.14.74 1.71 2.87 1.27 6.13 1.27 1.34 0 2.39.04 2.99-.11.02.32.48.53.63.18 3.61-8.26 7.41-16.46 12.05-24.2.03-.05.04-.1.05-.15.3.73.64 1.45.94 2.16.97 2.26 1.97 4.52 2.98 6.76 2.26 5.03 4.54 10.07 7.09 14.96.47.9.94 1.79 1.47 2.65.2.32.4.67.66.96-.18.25 0 .68.34.54.91-.38 1.82-.75 2.76-1.07 1.04-.35 2.11-.65 3.17-.95.39-.11.28-.66-.07-.68.62-.4.95-.96.87-1.91-.3-3.34.72-7.47.86-8.52l2.14-11.43c1.75-10.74 3.13-17.51 3.23-20.86.02-.49.08-2.84.13-3.24.17-1.25.48-1-4.96-1.65l.03-.02Zm-46.19 5.67c-.04-.24-.09-.48-.15-.71l.85-.15c-.34.24-.56.53-.7.86Zm1.95 25.12c-.36-6.63-.7-13.26-1.32-19.87 0 .02 0 .04.01.06.29 1.65.44 2.47.56 2.89 1 8.46 1.5 16.14 1.46 22.8-.06.99-.1 2-.11 3.02-.01.29-.03.68-.05 1.12-.01-.26-.03-.53-.04-.78-.19-3.08-.35-6.16-.52-9.23l.01-.01Zm36.4 18.66c-.11-.11-.24-.29-.37-.49.35.21.74.26 1.17.16-.27.11-.53.22-.8.32v.01Zm-.89-33.72c.12-.43.23-.86.35-1.29.71-1.77 1.41-3.55 2.08-5.33-.15.68-.26 1.22-.31 1.55-.5 2.94-2.13 7.59-3.58 13.36-.15-.35-.29-.66-.43-1 .61-2.44 1.25-4.87 1.9-7.3l-.01.01Zm3.56-12.48c.14-.44.28-.89.42-1.34-.13.7-.27 1.41-.42 2.11-.43 1.19-.86 2.38-1.31 3.57.42-1.45.85-2.9 1.31-4.34Zm-5.22 16.05c-.11.44-.23.87-.35 1.31-.12.46-.23.92-.35 1.38-.1-.22-.19-.4-.28-.61.34-.69.66-1.38.97-2.08h.01Zm-11.64 2.62c.06-.1.12-.19.17-.28.05.13.09.26.14.39a.398.398 0 0 0-.31-.11Zm2.3 2.98c-.56-1.3-1.25-2.63-1.65-3.99 0 0 .01-.02.02-.02.06.08 1.52 2.93 1.63 3.08.73 1.13 3.38 7.04 5.67 12.26 1.2 2.73 2.08 5.17 2.83 7.18-.62-1.25-1.23-2.51-1.83-3.78-2.31-4.87-4.53-9.78-6.67-14.73ZM275.92 87.03c-1.06-2.18-1.13-3.45-2.44-2.93-1.52.57-2.94 1.3-4.5 2.1-1.4.72-2.68 1.44-3.92 2.12.01-.25-.24-.5-.51-.34-4.8 2.93-12.41 4.7-17.28 1.31-1.98-1.77-3.32-4.15-3.97-5.78-.29-.95-.49-1.94-.63-2.93-.14-3.34 1.58-6.53 3.9-9.12.8-.79 1.68-1.51 2.66-2.12 3.7-2.3 8.22-3.07 12.51-2.51 2.71.35 5.32 1.24 7.71 2.55.39.22.75-.39.35-.6-.18-.1-.37-.18-.55-.27.56.27 1.03.33 1.51.19l-.48.39c-.15.11-.23.3-.13.48.09.15.33.24.48.13 1.3-.97 2.46-2.09 3.45-3.37.37-.29.64-.6.65-.97v-.02c.08-.33-.03-.7-.21-1.08-.31-.87-.98-2.01-2.19-3.26-2.43-2.52-3.79-3.45-5.68-4.26-1.14-.49-3.12-1.06-4.42-1.23-3.28-.42-10.64-1.21-18.18 4.11-7.74 5.46-11.94 12.3-12.23 20.61-.08 2.06.04 3.98.34 5.71.74 4.18 2.57 8 5.44 11.34 4.26 4.99 9.76 7.52 16.34 7.52 4.85 0 9.69-1.77 14.89-4.62.23-.12.45-.23.68-.35 2.19-1.1 4.37-2.23 6.46-3.5.49-.3 1.03-.61 1.5-.98 1.47-.87 1.11-1.12.49-2.95-.39-1.14-.76-2.7-2.06-5.36l.02-.01Zm-17.38-21.76c3.05-.42 6.31.79 9.36 2.35.51.39.94.68 1.33.87-5.61-2.86-12.72-3.39-18.44-.79 2.05-1.33 4.24-1.95 7.74-2.44l.01.01ZM443.67 72.67c-.4-2.2-1.15-4.33-2.37-6.22-1.49-2.32-3.58-4.19-5.91-5.64-6.17-3.81-13.75-5.11-20.83-6.01-3.23-.41-6.47-.69-9.72-.92l-1.39-.12c-.85-.07-1.52-.1-2.05-.1-1.08-.06-2.17-.12-3.25-.17-.08 0-.14.02-.19.05-.1.05-.18.14-.16.3.27 2.55-.01 5.12-.92 7.52-.15.38.4.56.62.28 1.32.59 2.68 1.05 4.08 1.37 0 2.78-.14 7.58-.33 12.91 0 0 0 .02-.01.03-.61 3.66-.79 7.42-1 11.12-.23 4.01-.43 8.03-.44 12.05 0 .64 0 1.28.03 1.93.02.31 0 .68.15.96.06.11.14.16.24.17-.2.17-.21.54.11.59 3.83.67 7.78.71 11.68.25 2.3-.19 4.87-.65 7.65-1.56 1.85-.54 3.67-1.18 5.43-1.91 7.2-3.02 14.31-8.07 17.35-15.53.76-1.86 1.17-3.8 1.31-5.75.3-1.93.28-3.82-.09-5.58l.01-.02Zm-19.32-15.42c5.74 1.41 11.94 3.68 15.65 8.55.25.32.47.65.69.99-2.3-2.82-5.68-5.69-12.88-8.23-2.16-.76-4.35-1.43-6.64-2.02 1.06.21 2.13.45 3.18.71Zm-25.82-3.04c.13 0 .27.01.4.02-.14.1-.26.23-.37.38 0-.13-.02-.26-.03-.4Zm34.82 22.17c-.75 3.09-3.55 5.66-5.88 7.58-3.35 2.76-7.21 5.03-11.28 6.54-1.33.49-2.71.9-4.12 1.15.06-1.38.08-2.76.07-4.13-.02-3.78-.16-7.56-.41-11.33-.09-1.37-.18-2.74-.37-4.1 0-.06-.03-.11-.06-.15.09-3.25.12-6.16.03-8.12 6.86 1.05 10.56 2.17 14.06 3.62 5.52 2.28 8.59 5.44 7.97 8.96l-.01-.02Zm-22 16.15c-.12 0-.23-.02-.34-.03l.34-.03v.06Zm-.69-.7c0-3.13.26-8.84.47-14.51.06 1.2.11 2.41.15 3.6.15 3.6.25 7.23.09 10.83-.24.03-.48.05-.71.07v.01Zm-12.33-30.94c.37.63 2.01 1.01 3.23 1.25v.15c-1.31-.31-2.59-.73-3.83-1.29.12-.36.23-.72.33-1.09.08.48.18.84.27.98Zm13.7 31.65v-.18c3.41-.56 6.71-2.02 9.69-3.68 2.31-1.28 4.59-2.78 6.63-4.53-4.69 4.53-11.61 8.24-16.33 8.38l.01.01Zm24.07-.75c-2.05 1.93-4.37 3.56-6.83 4.95 2.7-1.78 5.52-4.03 8.42-6.87.82-.82 1.56-1.69 2.23-2.59-1.08 1.65-2.38 3.16-3.81 4.51h-.01ZM187.16 92.14c-.79-2.47-2.1-7.12-3.1-6.87-.19-.01-2.09.77-4.08 1.54-3.06 1.18-5.91 2.13-10.09 2.82-2.74.42-5.87 1.01-10.61 1.06.04-3.34.05-6.01.05-7.99 7.97-.65 12.33-2.11 16.37-3.55 1.11-.39 2.69-1.01 2.63-1.8-.08-.35-.55-1.39-1.17-2.61-.47-1.16-.98-2.31-1.61-3.38-.42-.71-1.04-1.69-1.86-2.06-.11-.08-.22-.13-.29-.12-.02 0-.04 0-.07.01-.19-.04-.39-.05-.6-.01-.17.03-.24.15-.25.28-.04.02-.09.04-.14.05-4.33 1.48-8.85 2.33-13.24 3.61a499.1 499.1 0 0 0-.31-8.19c4.51-.99 8.88-1.38 13.11-1.82 3.68-.38 6.28.12 7.47.34.59.11.9.16 1.16.18h.1c-.1.37.44.66.62.28.02-.04.03-.08.05-.13.15.2.53.22.62-.1.17-.58.19-1.21.21-1.81v-.36c.03-.15.05-.3.07-.45.52-2.47.33-5.09-.64-7.44-.11-.27-.44-.28-.6-.14-.08-.21-.15-.42-.24-.62-.19-.41-.79-.05-.6.35.03.07.05.15.09.22-.98-.42-2.15-.54-3.17-.63-2.17-.19-4.37-.14-6.54 0-5.7.35-11.4 1.3-16.91 2.79-2.08.56-4.13 1.22-6.14 2-4.54 1.05-3.79 1.51-2.17 6.07.18.51.46 1.68.54 1.94.82 2.47 1.08 2.13 3.1 2.13s0 .05 0 .08h.52c-.48 2.66-.51 5.45-.62 8.13-.15 3.48-.22 6.96-.28 10.45 0 .41-.01.82-.02 1.23-.16.29-.33.57-.51.85-.05.38-.09.77-.14 1.18-.42 3.52-.59 6.48-.52 8.8v.34c.02.47.05.76.06.87.16 1.57-.26 3.47 1.35 3.79 1.61.32 3.5.55 4.85.55.11 0 .22-.02.33-.02 1.79.24 3.67.05 5.45-.12 2.85-.28 5.69-.7 8.51-1.19 3.03-.53 6.05-1.14 9.04-1.86 2.4-.58 4.82-1.19 7.13-2.06.51-.19 1.73-.57 2.46-1.14 1.81-.68 2.18-1 1.57-2.67-.23-.62-.48-1.49-.91-2.78l-.03-.02Zm-11.12-38.71c.89.05 1.93.08 2.89.3-.33 0-.68-.02-1.06-.03-8.28-.26-14.88.75-23.97 2.51 2.41-.64 4.85-1.16 7.28-1.59 4.87-.86 9.91-1.45 14.86-1.19Zm-26.53 22.13c.03 1.71.04 3.43 0 5.14-.04 1.27-.11 2.55-.24 3.82 0-.73.02-1.46.04-2.19.05-2.26.12-4.51.22-6.77h-.02Zm6.73 27.85c.2-.1.4-.21.58-.33 1.82-.17 3.82-.24 5.94-.34-.86.11-1.72.24-2.58.33-1.27.14-2.61.31-3.93.34h-.01ZM534.48 85.44c-3.52-8.38-7.07-16.75-10.5-25.17-.63-1.54-1.25-3.09-1.86-4.65-.31-.8-.65-1.6-.87-2.43-.04-.17-.17-.24-.31-.25.1-.2 0-.51-.29-.53-1.59-.08-3.18-.22-4.78-.25-1.96-.03-3.91.13-5.84.42-.31.05-.31.38-.13.56-.03.06-.05.14-.04.22.23 1.54.63 3.06 1.16 4.53.13.35.27.7.41 1.06l-2.68 6.18c-.11.03-.2.09-.25.22-.67 1.9-1.52 3.73-2.34 5.56a536.85 536.85 0 0 1-3.9 8.45c-2.64 5.64-5.34 11.25-7.91 16.93-.44.97-.88 1.94-1.29 2.93-.2.48-.47 1-.55 1.52v.05c-.02.12.02.26.16.34 1.19.73 2.41 1.41 3.66 2.05 1.2.62 2.45 1.25 3.76 1.61.43.12.62-.55.19-.67-1.13-.31-2.2-.83-3.24-1.36 1.09.36 2.1.69 2.75.93 2.82 1.01 2.38 1.1 4.3-3.75 2.1-1.09 4.34-1.96 6.53-2.79 4.35-1.64 8.8-3.03 13.27-4.29.82 2.01 1.77 3.97 2.72 5.92.35.83.62 1.45.79 1.82.22.42.45.8.69 1.15.17.33.33.67.5 1 .42.8.84 1.63 1.4 2.35.23.29.6 0 .55-.31 1.53-.02 3.06-.07 4.58-.27.92-.12 1.82-.32 2.71-.54 1.39-.27 3.85-1.11 3.74-1.42-.67-1.96-1.55-3.87-2.34-5.78-1.57-3.78-3.16-7.56-4.75-11.33v-.01Zm-11.65-26.16c1.54 3.81 3.12 7.6 4.7 11.4 2.94 7.05 5.91 14.09 8.87 21.13l-1.06-2.17c-2.71-5.51-5.2-11.19-7.41-16.87l-6.65-17.15c-.65-1.45-.55-2.19-.93-2.53.09 0 .18.01.28.02a.29.29 0 0 0-.04.26c.52 2.02 1.47 3.98 2.25 5.91h-.01Zm-6.58 13.58c.05-.15.09-.31.14-.46 1.41 3.92 2.88 7.9 4.39 11.87-3.22.52-6.38 1.25-9.46 2.14.55-1.22 1.05-2.46 1.53-3.7 1.24-3.24 2.37-6.53 3.39-9.85h.01Zm-.23-20c.36 0 .73.03 1.09.05-2.15.1-5.18.33-5.87.74-.24.15-.41.3-.53.45-.06-.29-.13-.58-.18-.88 1.82-.26 3.65-.39 5.49-.35v-.01Zm-.09 18.72c-.49 1.67-1.05 3.33-1.6 4.97-1.07 3.19-2.19 6.38-3.57 9.46-.09.21-.19.43-.29.65-.25.07-.5.14-.74.22 2.53-6.16 4.61-11.29 6.2-15.3Zm-6.34 25.16c4.97-2.38 9.37-4.1 14.02-5.27l.26.64c-4.8 1.35-9.63 2.8-14.28 4.63Zm20.17 6.76c.33.23.68.42 1.04.56h-.33c-.12 0-.21.06-.26.13-.15-.23-.31-.45-.45-.7v.01ZM226.57 91.75c-3.55-4.74-6.68-9.11-9.31-12.99 9.2-15.25 10.05-17.81 10.35-18.38.17-.34 1.09-2.27.64-2.53-1.13-.65-1.03-.65-2.97-1.71-1.19-.65-3.04-1.61-4.53-2.12-1.71-.59-1.24-.36-3 2.77-.06.1-.11.2-.17.3-.75 1.02-1.48 2.05-2.2 3.09-1.88 2.71-3.73 5.45-5.69 8.1-3.68-4.91-6.88-8.76-9.51-11.43-.15-.15-.3-.29-.46-.42-1.27-1.28-7.24 3.53-7.93 5.58-.09.09-.19.16-.28.25-.27.26.03.64.33.58.19.65.5 1.29.94 1.91 3.85 5.06 7.19 9.76 9.94 14-1.23 2.61-3.06 5-4.67 7.38l-2.28 3.33c-.5.66-.93 1.23-1.29 1.69-.67.93-2.09 2.61-2.3 3.87-.51.85-1.16 1.84-1.29 2.83-.06.44.61.63.67.19.01-.08.04-.15.06-.22 1.36 1.08 2.76 2.11 4.19 3.11 1.3.91 2.62 1.85 4.04 2.56.21.1.4 0 .48-.17.24.07.48.14.72.2.44.1.62-.57.19-.67-2.02-.48-3.77-1.57-5.23-3.02-.47-.46-.9-.96-1.32-1.46 1.74 1.35 4.2 2.89 5.89 4.14 1.39 1.03 2.85-2.27 4.22-4.2 1.86-2.64 3.96-5.86 5.52-8.29l10.39 14.51c.67.81 1.14 1.21 1.57 1.36-.05.24.12.51.41.4 1.53-.58 3.05-1.19 4.54-1.87 1.52-.69 3.06-1.45 4.36-2.5a.28.28 0 0 0 .12-.23c1.66-1.1.81-1.74-1.41-4.91-1.13-1.58-1.71-2.36-3.7-5.01l-.03-.02Zm2.41 6.54c.56 1.15 1.19 2.52 1.11 3.81-.06.04-.12.07-.17.1-.03-.88-.55-2.66-.94-3.91Zm-16.51-32.73c1.86-2.65 3.65-5.35 5.57-7.95.4-.55.81-1.13 1.26-1.66.19-.18.38-.33.56-.45.18.03.36.08.55.13l-8.05 10.11.12-.18h-.01ZM192.7 95.48c.79-1.37 1.66-2.69 2.54-4 1.19-1.79 2.4-3.56 3.61-5.33-.04.09-.09.17-.13.26-.1.22.03.41.2.49-2.47 3.42-4.89 6.73-6.4 9.28.21.24.4.48.63.75-.24.07-.4.36-.17.56.4.33.72.77 1.05 1.17.09.11.18.21.27.32-.84-.61-1.66-1.24-2.47-1.88.24-.57.58-1.11.87-1.61v-.01Zm7.46-10.32c.47-.81.98-1.59 1.49-2.37.31-.48.64-.95.96-1.43.26-.29.52-.56.75-.79-.99 1.48-2.09 3.03-3.2 4.59Zm10.03-16.22s-.03-.05-.05-.07c.22-.29.43-.59.64-.89-.2.32-.4.65-.58.96h-.01ZM371.54 87.96c-.01-.08-.01-.16-.03-.23-.06-.38-.58-.29-.66.03-.3-.05-.6-.08-.81-.11-1.14-.15-2.29-.19-3.44-.2 1.04-.09 2.09-.18 3.14-.23.45-.02.45-.72 0-.7-6.57.35-13.14 1.23-19.65 2.11-1.53.21-3.05.42-4.57.68-.01 0-.02.01-.04.01-.04-3.33-.13-6.66-.24-9.99-.19-5.7-.4-11.41-.88-17.1-.13-1.51-.23-3.07-.49-4.58 0-.25 0-.48-.02-.68-.06-1.19-.04-2.61-.68-2.78-.16-.07-.72-.16-1.5-.24.22-.17.16-.62-.2-.63-1.19-.04-2.39.09-3.57.23-1.2.14-2.41.32-3.59.6-.16-.1-.41-.06-.5.12-.06.02-.13.03-.19.05-.35.1-.29.55-.03.66-.26.6-.19 2.27-.21 3-.02.66-.66 33.73-.9 40.3-.03.65.06 1.12.04 1.45-.16 3.05.87 4.96 6.34 3.93 1.09-.08 2.75-.77 5.36-1.43 4.13-1.04 5.78-1.52 6.2-1.65 6.43-1.69 6.78-1.97 11.72-2.43.55-.05 4.8-.38 6.03-.3.64.04 1.19.07 1.65.1.09 0 .16-.03.24-.05.1.27.56.33.66-.02.39-1.32.61-2.71.78-4.08.2-1.61.29-3.24.15-4.86.24.03.52-.23.38-.53-.09-.2-.27-.33-.49-.43v-.02Zm-.63.56c.07.57.11 1.14.11 1.71-.21-.99-.53-1.71-.95-1.87.22.03.44.06.65.11.06.01.12.04.19.05Zm-25.41 1.73c1.54-.36 3.1-.64 4.66-.89-1.61.37-3.18.77-4.66 1.2v-.31Zm-.86-7.37c-.07-1.37-.16-2.75-.25-4.12-.21-3.13-.45-6.27-.79-9.4.02-2.25.08-4.31.13-6.11.16 2.08.29 4.16.4 6.24.23 4.46.38 8.93.5 13.39h.01Zm-.94-4c.16 2.41.29 4.83.39 7.24.06 1.6.14 3.22.09 4.83-.15.05-.32.09-.47.14V78.88h-.01ZM483.72 92.83c-3.05-2.28-6.22-4.4-9.38-6.51 8.86-6.49 13.49-12.95 13.73-19.23.04-.76 0-1.5-.13-2.2-.67-3.82-3.5-6.68-8.39-8.48.13.04.27.08.4.13 3.92 1.39 7.74 4.23 8.5 8.56.34 1.95-.05 3.96-.98 5.69-.21.4.39.75.6.35 1.86-3.46 1.46-7.55-.97-10.63-3.53-4.47-9.76-5.88-15.16-6.16-2.32-.12-4.64-.04-6.95.19-6 .32-12.71 1.68-17.63 3.21-.37.11-.67.23-.92.35-.2-.17-.62.02-.57.37v.03c-.64.68-.18 1.64.48 3.21.38.91.67 1.89 1.15 2.58.32.76.68 1.51 1.13 2.19.14.21.38.19.53.07.19-.02.38-.05.57-.08v1.57c-.06.06-.1.13-.11.23-.27 4.18-.34 8.38-.48 12.57l-.3 9.03c-.24 3.91-.44 6.77-.46 7.26-.05.88-.11 1.95.07 2.81-.01.22-.02.43-.04.65 0 .11-.02.23-.03.35 0 .05-.03.27-.01.16-.05.4.5.59.64.28.05.04.12.08.2.08 1.75.13 3.5.28 5.25.3 1.69.02 3.38-.12 5.06-.32.08.23.36.39.55.15.06-.08.11-.17.16-.26.18-.09.24-.32.18-.48.05-.2.1-.4.13-.6.16-.86.25-1.74.33-2.62.11-1.17.17-2.34.23-3.51.15-.01.32-.03.52-.04.36-.03 1.73-.15 2.06-.15.39 0 .7-.02.95-.04 1.76 1.11 3.45 2.35 5.14 3.55 2.83 2.01 5.64 4.04 8.47 6.04 1.42 1 2.85 2 4.29 2.97.1.06.19.07.27.04.08 0 .17-.02.25-.1 1.61-1.56 3.15-3.18 4.6-4.88.75-.88 1.49-1.78 2.15-2.73.01.01.03.02.04.03.34.3.83-.2.49-.49-2.16-1.9-4.34-3.76-6.64-5.48l.03-.01Zm-6.38-3.65a55.72 55.72 0 0 0-4-2.13c.14-.1.26-.19.4-.29 1.2.81 2.4 1.61 3.6 2.42Zm-20.1 11.78c.67-.37 1.23-.91 1.67-1.6-.11.5-.24 1-.38 1.49-.43.04-.86.08-1.29.11Zm2.38-37.24c1.34-.31 2.56-.52 3.71-.69-1.03.19-2.04.41-3.04.65-.14-.07-.34-.02-.45.11-.07.02-.15.04-.22.05v-.13.01Zm.04.84c.07-.02.14-.03.2-.05.34 1.66.41 3.41.5 5.09.17 2.9.24 5.81.28 8.71l.03 3.17c-.17.07-.34.14-.51.2-.06-4.96-.21-10.58-.51-17.12h.01Zm16.04 5.62c-1.16 2.25-3.06 4.1-5.02 5.66-2.8 2.23-5.99 3.97-9.3 5.35-.01-3.56-.09-7.12-.27-10.67-.1-2.04-.16-4.16-.57-6.18 3.3-.78 6.72-1.36 10.1-1.1 1.85.14 4.23.59 5.32 2.29.92 1.43.46 3.24-.26 4.65Zm.85-.18c.6-1.37.9-2.92.28-4.32-.67-1.52-2.2-2.32-3.76-2.74.46.1.89.21 1.29.37 1.74.67 2.69 1.88 2.93 3.21.2 1.13-.05 2.25-.74 3.47V70Zm-27.47-4.14c-.12-.19-.23-.38-.34-.57.74.42.85.36.99.41v.08c-.22.03-.43.06-.65.08Zm11.21 30.46c-.08 1.08-.16 2.17-.33 3.24-.05.35-.11.69-.2 1.03 0 .04-.02.07-.03.11-.15.02-.3.04-.45.05.45-1.64.76-3.36.79-5.07.03-.29.08-.57.1-.89-.03-.31-.03-.47.24-.57-.04.69-.07 1.39-.12 2.08v.02Zm5.6-2.47c.48.11.92.52 2.49 1.72-.46-.32-.92-.65-1.38-.97-.37-.25-.73-.5-1.1-.75h-.01Zm21.23 7.24a70.76 70.76 0 0 1-4.37 4.63c-.14-.09-.27-.19-.4-.28.19-.09.37-.24.55-.47.87-1.14 5.43-5.51 5.49-7.45.31.26.62.53.92.79-.67.97-1.42 1.88-2.19 2.77v.01Z",fill:"currentColor",transform:"translate(-144.023 -51.76)"})]})},_e=function(ot){var Rt=ot.style,_t=ot.size,At=_t===void 0?"small":_t,br=ot.withText;return(0,u.jsxs)("div",{className:"ExcalidrawLogo is-".concat(At),style:Rt,children:[(0,u.jsx)(we,{}),br&&(0,u.jsx)(xe,{})]})},Oe=["onSelect","children","icon","shortcut","className"],J=["children","href","icon","shortcut","className"];function ke(ot,Rt){var _t=Object.keys(ot);if(Object.getOwnPropertySymbols){var At=Object.getOwnPropertySymbols(ot);Rt&&(At=At.filter(function(br){return Object.getOwnPropertyDescriptor(ot,br).enumerable})),_t.push.apply(_t,At)}return _t}function q(ot){for(var Rt=1;Rt<arguments.length;Rt++){var _t=arguments[Rt]!=null?arguments[Rt]:{};Rt%2?ke(Object(_t),!0).forEach(function(At){(0,te.Z)(ot,At,_t[At])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ot,Object.getOwnPropertyDescriptors(_t)):ke(Object(_t)).forEach(function(At){Object.defineProperty(ot,At,Object.getOwnPropertyDescriptor(_t,At))})}return ot}var o=function(ot){var Rt=ot.icon,_t=ot.shortcut,At=ot.children,br=(0,le.Fy)();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"welcome-screen-menu-item__icon",children:Rt}),(0,u.jsx)("div",{className:"welcome-screen-menu-item__text",children:At}),_t&&!br.editor.isMobile&&(0,u.jsx)("div",{className:"welcome-screen-menu-item__shortcut",children:_t})]})};o.displayName="WelcomeScreenMenuItemContent";var i=function(ot){var Rt=ot.onSelect,_t=ot.children,At=ot.icon,br=ot.shortcut,xr=ot.className,jr=xr===void 0?"":xr,Ar=(0,L.Z)(ot,Oe);return(0,u.jsx)("button",q(q({},Ar),{},{type:"button",className:"welcome-screen-menu-item ".concat(jr),onClick:Rt,children:(0,u.jsx)(o,{icon:At,shortcut:br,children:_t})}))};i.displayName="WelcomeScreenMenuItem";var p=function(ot){var Rt=ot.children,_t=ot.href,At=ot.icon,br=ot.shortcut,xr=ot.className,jr=xr===void 0?"":xr,Ar=(0,L.Z)(ot,J);return(0,u.jsx)("a",q(q({},Ar),{},{className:"welcome-screen-menu-item ".concat(jr),href:_t,target:"_blank",rel:"noreferrer",children:(0,u.jsx)(o,{icon:At,shortcut:br,children:Rt})}))};p.displayName="WelcomeScreenMenuItemLink";var B=function(ot){var Rt=ot.children,_t=(0,k.R6)().WelcomeScreenCenterTunnel;return(0,u.jsx)(_t.In,{children:(0,u.jsx)("div",{className:"welcome-screen-center",children:Rt||(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(A,{}),(0,u.jsx)(X,{children:(0,W.t)("welcomeScreen.defaults.center_heading")}),(0,u.jsxs)(Y,{children:[(0,u.jsx)(ge,{}),(0,u.jsx)(ee,{})]})]})})})};B.displayName="Center";var A=function(ot){var Rt=ot.children;return(0,u.jsx)("div",{className:"welcome-screen-center__logo virgil welcome-screen-decor",children:Rt||(0,u.jsx)(_e,{withText:!0})})};A.displayName="Logo";var X=function(ot){var Rt=ot.children;return(0,u.jsx)("div",{className:"welcome-screen-center__heading welcome-screen-decor virgil",children:Rt})};X.displayName="Heading";var Y=function(ot){var Rt=ot.children;return(0,u.jsx)("div",{className:"welcome-screen-menu",children:Rt})};Y.displayName="Menu";var ee=function(){var ot=(0,le.eh)();return(0,u.jsx)(i,{onSelect:function(){return ot.executeAction(re.jY)},shortcut:"?",icon:Ce.by,children:(0,W.t)("helpDialog.title")})};ee.displayName="MenuItemHelp";var ge=function(){var ot=(0,G.I)(),Rt=(0,le.eh)();return ot.viewModeEnabled?null:(0,u.jsx)(i,{onSelect:function(){return Rt.executeAction(re._d)},shortcut:(0,me.C)("loadScene"),icon:Ce.Tl,children:(0,W.t)("buttons.load")})};ge.displayName="MenuItemLoadScene";var be=function(ot){var Rt=ot.onSelect,_t=(0,W.QT)().t;return(0,u.jsx)(i,{shortcut:null,onSelect:Rt,icon:Ce.jn,children:_t("labels.liveCollaboration")})};be.displayName="MenuItemLiveCollaborationTrigger",B.Logo=A,B.Heading=X,B.Menu=Y,B.MenuItem=i,B.MenuItemLink=p,B.MenuItemHelp=ee,B.MenuItemLoadScene=ge,B.MenuItemLiveCollaborationTrigger=be;var Re=function(ot){var Rt=ot.children,_t=(0,k.R6)().WelcomeScreenMenuHintTunnel;return(0,u.jsx)(_t.In,{children:(0,u.jsxs)("div",{className:"virgil welcome-screen-decor welcome-screen-decor-hint welcome-screen-decor-hint--menu",children:[Ce.oQ,(0,u.jsx)("div",{className:"welcome-screen-decor-hint__label",children:Rt||(0,W.t)("welcomeScreen.defaults.menuHint")})]})})};Re.displayName="MenuHint";var Ze=function(ot){var Rt=ot.children,_t=(0,k.R6)().WelcomeScreenToolbarHintTunnel;return(0,u.jsx)(_t.In,{children:(0,u.jsxs)("div",{className:"virgil welcome-screen-decor welcome-screen-decor-hint welcome-screen-decor-hint--toolbar",children:[(0,u.jsx)("div",{className:"welcome-screen-decor-hint__label",children:Rt||(0,W.t)("welcomeScreen.defaults.toolbarHint")}),Ce.DJ]})})};Ze.displayName="ToolbarHint";var Be=function(ot){var Rt=ot.children,_t=(0,k.R6)().WelcomeScreenHelpHintTunnel;return(0,u.jsx)(_t.In,{children:(0,u.jsxs)("div",{className:"virgil welcome-screen-decor welcome-screen-decor-hint welcome-screen-decor-hint--help",children:[(0,u.jsx)("div",{children:Rt||(0,W.t)("welcomeScreen.defaults.helpHint")}),Ce._U]})})};Be.displayName="HelpHint";var Ie=e(1569),Ke={};Ke.styleTagTransform=f(),Ke.setAttributes=_(),Ke.insert=b().bind(null,"head"),Ke.domAPI=P(),Ke.insertStyleElement=O(),pe()(Ie.Z,Ke),Ie.Z&&Ie.Z.locals&&Ie.Z.locals;var Ye=function(ot){return(0,u.jsx)(u.Fragment,{children:ot.children||(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(B,{}),(0,u.jsx)(Re,{}),(0,u.jsx)(Ze,{}),(0,u.jsx)(Be,{})]})})};Ye.displayName="WelcomeScreen",Ye.Center=B,Ye.Hints={MenuHint:Re,ToolbarHint:Ze,HelpHint:Be};var tt=Ye,ue=e(8806),ve=e(3397),De={};De.styleTagTransform=f(),De.setAttributes=_(),De.insert=b().bind(null,"head"),De.domAPI=P(),De.insertStyleElement=O(),pe()(ve.Z,De),ve.Z&&ve.Z.locals&&ve.Z.locals;var He=["isCollaborating","onSelect"];function Je(ot,Rt){var _t=Object.keys(ot);if(Object.getOwnPropertySymbols){var At=Object.getOwnPropertySymbols(ot);Rt&&(At=At.filter(function(br){return Object.getOwnPropertyDescriptor(ot,br).enumerable})),_t.push.apply(_t,At)}return _t}function qe(ot){for(var Rt=1;Rt<arguments.length;Rt++){var _t=arguments[Rt]!=null?arguments[Rt]:{};Rt%2?Je(Object(_t),!0).forEach(function(At){(0,te.Z)(ot,At,_t[At])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ot,Object.getOwnPropertyDescriptors(_t)):Je(Object(_t)).forEach(function(At){Object.defineProperty(ot,At,Object.getOwnPropertyDescriptor(_t,At))})}return ot}var st=function(ot){var Rt=ot.isCollaborating,_t=ot.onSelect,At=(0,L.Z)(ot,He),br=(0,G.I)();return(0,u.jsxs)(ue.z,qe(qe({},At),{},{className:(0,j.Z)("collab-button",{active:Rt}),type:"button",onSelect:_t,style:{position:"relative"},title:(0,W.t)("labels.liveCollaboration"),children:[Ce.jn,br.collaborators.size>0&&(0,u.jsx)("div",{className:"CollabButton-collaborators",children:br.collaborators.size})]}))},ht=st;st.displayName="LiveCollaborationTrigger";var et=e(7651),wt=e(7994),Lt=e(507),St=e(4183),yt=e(583),Wt=e(9326),Ft=e(5902),Ve=e(1925),bt=e(8020),at=e(6199),mt=e(4949),ut=e(6013),Ot=["initialData","UIOptions"],Pt=["initialData","UIOptions"];function Gt(ot,Rt){var _t=Object.keys(ot);if(Object.getOwnPropertySymbols){var At=Object.getOwnPropertySymbols(ot);Rt&&(At=At.filter(function(br){return Object.getOwnPropertyDescriptor(ot,br).enumerable})),_t.push.apply(_t,At)}return _t}function Ct(ot){for(var Rt=1;Rt<arguments.length;Rt++){var _t=arguments[Rt]!=null?arguments[Rt]:{};Rt%2?Gt(Object(_t),!0).forEach(function(At){h()(ot,At,_t[At])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ot,Object.getOwnPropertyDescriptors(_t)):Gt(Object(_t)).forEach(function(At){Object.defineProperty(ot,At,Object.getOwnPropertyDescriptor(_t,At))})}return ot}var ur=function(ot){var Rt,_t,At,br,xr,jr,Ar=ot.onChange,fr=ot.initialData,dt=ot.excalidrawAPI,ft=ot.isCollaborating,vt=ft!==void 0&&ft,Et=ot.onPointerUpdate,tr=ot.renderTopRightUI,ir=ot.langCode,Qt=ir===void 0?W.Fp.code:ir,_r=ot.viewModeEnabled,sr=ot.zenModeEnabled,mr=ot.gridModeEnabled,Zr=ot.libraryReturnUrl,or=ot.theme,lr=ot.name,gr=ot.renderCustomStats,cr=ot.onPaste,Hr=ot.detectScroll,vr=Hr===void 0||Hr,Rr=ot.handleKeyboardGlobally,an=Rr!==void 0&&Rr,Sn=ot.onLibraryChange,Mn=ot.autoFocus,Zn=Mn!==void 0&&Mn,Rn=ot.generateIdForFile,bn=ot.onLinkOpen,yn=ot.onPointerDown,Un=ot.onScrollChange,ne=ot.children,Ee=ot.validateEmbeddable,Pe=ot.renderEmbeddable,ze=(Rt=ot.UIOptions)===null||Rt===void 0?void 0:Rt.canvasActions,pt=Ct(Ct({},ot.UIOptions),{},{canvasActions:Ct(Ct({},c.cW.canvasActions),ze),tools:{image:(_t=(At=ot.UIOptions)===null||At===void 0||(br=At.tools)===null||br===void 0?void 0:br.image)===null||_t===void 0||_t}});return ze!=null&&ze.export&&(pt.canvasActions.export.saveFileToDisk=(xr=(jr=ze.export)===null||jr===void 0?void 0:jr.saveFileToDisk)!==null&&xr!==void 0?xr:c.cW.canvasActions.export.saveFileToDisk),pt.canvasActions.toggleTheme===null&&or===void 0&&(pt.canvasActions.toggleTheme=!0),(0,S.useEffect)(function(){var Ut=function(zt){typeof zt.scale=="number"&&zt.scale!==1&&zt.preventDefault()};return document.addEventListener("touchmove",Ut,{passive:!1}),function(){document.removeEventListener("touchmove",Ut)}},[]),(0,u.jsx)(m.zt,{unstable_createStore:function(){return z.e_},scope:z.yE,children:(0,u.jsx)(U,{langCode:Qt,theme:or,children:(0,u.jsx)(le.ZP,{onChange:Ar,initialData:fr,excalidrawAPI:dt,isCollaborating:vt,onPointerUpdate:Et,renderTopRightUI:tr,langCode:Qt,viewModeEnabled:_r,zenModeEnabled:sr,gridModeEnabled:mr,libraryReturnUrl:Zr,theme:or,name:lr,renderCustomStats:gr,UIOptions:pt,onPaste:cr,detectScroll:vr,handleKeyboardGlobally:an,onLibraryChange:Sn,autoFocus:Zn,generateIdForFile:Rn,onLinkOpen:bn,onPointerDown:yn,onScrollChange:Un,validateEmbeddable:Ee,renderEmbeddable:Pe,children:ne})})})},rr=function(ot,Rt){if(ot.children!==Rt.children)return!1;ot.initialData;var _t=ot.UIOptions,At=_t===void 0?{}:_t,br=E()(ot,Ot),xr=(Rt.initialData,Rt.UIOptions),jr=xr===void 0?{}:xr,Ar=E()(Rt,Pt),fr=Object.keys(At),dt=Object.keys(jr);return fr.length===dt.length&&fr.every(function(ft){return ft==="canvasActions"?Object.keys(At.canvasActions).every(function(vt){var Et,tr,ir,Qt;return vt==="export"&&At!=null&&(Et=At.canvasActions)!==null&&Et!==void 0&&Et.export&&jr!=null&&(tr=jr.canvasActions)!==null&&tr!==void 0&&tr.export?At.canvasActions.export.saveFileToDisk===jr.canvasActions.export.saveFileToDisk:(At==null||(ir=At.canvasActions)===null||ir===void 0?void 0:ir[vt])===(jr==null||(Qt=jr.canvasActions)===null||Qt===void 0?void 0:Qt[vt])}):At[ft]===jr[ft]})&&(0,de.w8)(br,Ar)},Tr=I().memo(ur,rr);Tr.displayName="Excalidraw"},507:function(Se,Q,e){e.d(Q,{y8:function(){return pe},Fl:function(){return g},NL:function(){return _},i1:function(){return s},$D:function(){return O},N7:function(){return P.N7},cT:function(){return oe.cT},lV:function(){return oe.lV},ZY:function(){return oe.ZY},zh:function(){return $.zh},I_:function(){return Z.I_},NI:function(){return Z.NI}});var D=e(8950),E=e(7169),y=e(2975),h=e.n(y),S=e(3668),I=e(6853),v=e(7994),n=e(9937),M=e(250),Z=e(4419),H=e(4694);function W(f){return[Math.min(f[0][0],f[1][0]),Math.min(f[0][1],f[1][1]),Math.max(f[0][0],f[1][0]),Math.max(f[0][1],f[1][1])]}function u(f,t){return f[0]*t[1]-t[0]*f[1]}function U(f,t){return[f[0]-t[0],f[1]-t[1]]}function le(f,t){var w=u(U(f[1],f[0]),U(t,f[0]));return Math.abs(w)<1e-6}function de(f,t){return u(U(f[1],f[0]),U(t,f[0]))<0}function he(f,t){return le(f,t[0])||le(f,t[1])||(de(f,t[0])?!de(f,t[1]):de(f,t[1]))}function pe(f,t){return function(w,l){return w[0]<=l[2]&&w[2]>=l[0]&&w[1]<=l[3]&&w[3]>=l[1]}(W(f),W(t))&&he(f,t)&&he(t,f)}e(6013);var oe=e(5796),P=e(9660),$=e(9326);function b(f,t){var w=Object.keys(f);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(f);t&&(l=l.filter(function(a){return Object.getOwnPropertyDescriptor(f,a).enumerable})),w.push.apply(w,l)}return w}function R(f){for(var t=1;t<arguments.length;t++){var w=arguments[t]!=null?arguments[t]:{};t%2?b(Object(w),!0).forEach(function(l){(0,E.Z)(f,l,w[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(w)):b(Object(w)).forEach(function(l){Object.defineProperty(f,l,Object.getOwnPropertyDescriptor(w,l))})}return f}var _=function(f){var t=f.elements,w=f.appState,l=f.files,a=f.maxWidthOrHeight,c=f.getDimensions,m=f.exportPadding,z=f.exportingFrame,j=(0,v.nu)({elements:t,appState:w},null,null),k=j.elements,x=j.appState,N=x.exportBackground,G=x.viewBackgroundColor;return(0,S.NL)(k,R(R({},x),{},{offsetTop:0,offsetLeft:0,width:0,height:0}),l||{},{exportBackground:N,exportPadding:m,viewBackgroundColor:G,exportingFrame:z},function(ie,V){var ce,te=document.createElement("canvas");if(a){var L;typeof c=="function"&&console.warn("`getDimensions()` is ignored when `maxWidthOrHeight` is supplied.");var re=Math.max(ie,V),me=a<re?a/re:(L=w?.exportScale)!==null&&L!==void 0?L:1;return te.width=ie*me,te.height=V*me,{canvas:te,scale:me}}var Ce=c?.(ie,V)||{width:ie,height:V};return te.width=Ce.width,te.height=Ce.height,{canvas:te,scale:(ce=Ce.scale)!==null&&ce!==void 0?ce:1}})},g=function(){var f=(0,D.Z)(h().mark(function t(w){var l,a,c,m,z,j;return h().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return c=(a=w).mimeType,m=c===void 0?n.LO.png:c,z=a.quality,m===n.LO.png&&typeof z=="number"&&console.warn('"quality" will be ignored for "'.concat(n.LO.png,'" mimeType')),m==="image/jpg"&&(m=n.LO.jpg),m!==n.LO.jpg||(l=w.appState)!==null&&l!==void 0&&l.exportBackground||(console.warn('Defaulting "exportBackground" to "true" for "'.concat(n.LO.jpg,'" mimeType')),w=R(R({},w),{},{appState:R(R({},w.appState),{},{exportBackground:!0})})),k.next=6,_(w);case 6:return j=k.sent,z=z||(/image\/jpe?g/.test(m)?.92:.8),k.abrupt("return",new Promise(function(x,N){j.toBlob(function(){var G=(0,D.Z)(h().mark(function ie(V){var ce;return h().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(V){te.next=2;break}return te.abrupt("return",N(new Error("couldn't export to blob")));case 2:if(!V||m!==n.LO.png||(ce=w.appState)===null||ce===void 0||!ce.exportEmbedScene){te.next=6;break}return te.next=5,(0,M.encodePngMetadata)({blob:V,metadata:(0,Z.I_)(w.elements,w.appState,w.files||{},"local")});case 5:V=te.sent;case 6:x(V);case 7:case"end":return te.stop()}},ie)}));return function(ie){return G.apply(this,arguments)}}(),m,z)}));case 9:case"end":return k.stop()}},t)}));return function(t){return f.apply(this,arguments)}}(),O=function(){var f=(0,D.Z)(h().mark(function t(w){var l,a,c,m,z,j,k,x,N,G,ie,V;return h().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return l=w.elements,a=w.appState,c=a===void 0?(0,I.im)():a,m=w.files,z=m===void 0?{}:m,j=w.exportPadding,k=w.renderEmbeddables,x=w.exportingFrame,N=(0,v.nu)({elements:l,appState:c},null,null),G=N.elements,ie=N.appState,V=R(R({},ie),{},{exportPadding:j}),ce.abrupt("return",(0,S.$D)(G,V,z,{exportingFrame:x,renderEmbeddables:k}));case 4:case"end":return ce.stop()}},t)}));return function(t){return f.apply(this,arguments)}}(),s=function(){var f=(0,D.Z)(h().mark(function t(w){var l;return h().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(w.type!=="svg"){a.next=8;break}return a.next=3,O(w);case 3:return l=a.sent,a.next=6,(0,H.dd)(l.outerHTML);case 6:case 11:case 16:a.next=19;break;case 8:if(w.type!=="png"){a.next=13;break}return a.next=11,(0,H.uR)(g(w));case 13:if(w.type!=="json"){a.next=18;break}return a.next=16,(0,H.vQ)(w.elements,w.files);case 18:throw new Error("Invalid export type");case 19:case"end":return a.stop()}},t)}));return function(t){return f.apply(this,arguments)}}()},6013:function(Se,Q,e){e.d(Q,{Ne:function(){return M},Xs:function(){return H},sQ:function(){return Z}});var D=e(2577),E=e(4183),y=e(2361),h=e(4949);function S(W,u){var U=typeof Symbol<"u"&&W[Symbol.iterator]||W["@@iterator"];if(!U){if(Array.isArray(W)||(U=function(P,$){if(P){if(typeof P=="string")return I(P,$);var b=Object.prototype.toString.call(P).slice(8,-1);if(b==="Object"&&P.constructor&&(b=P.constructor.name),b==="Map"||b==="Set")return Array.from(P);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return I(P,$)}}(W))||u&&W&&typeof W.length=="number"){U&&(W=U);var le=0,de=function(){};return{s:de,n:function(){return le>=W.length?{done:!0}:{done:!1,value:W[le++]}},e:function(P){throw P},f:de}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var he,pe=!0,oe=!1;return{s:function(){U=U.call(W)},n:function(){var P=U.next();return pe=P.done,P},e:function(P){oe=!0,he=P},f:function(){try{pe||U.return==null||U.return()}finally{if(oe)throw he}}}}function I(W,u){(u==null||u>W.length)&&(u=W.length);for(var U=0,le=new Array(u);U<u;U++)le[U]=W[U];return le}var v=function(W){var u=W.reduce(function(U,le){var de=(0,D.Z)(le,2),he=de[0],pe=de[1];return U.minY=Math.min(U.minY,pe),U.minX=Math.min(U.minX,he),U.maxX=Math.max(U.maxX,he),U.maxY=Math.max(U.maxY,pe),U},{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0,cx:0,cy:0});return u.cx=(u.maxX+u.minX)/2,u.cy=(u.maxY+u.minY)/2,u},n=function(W){var u=function(b){return(0,E.bt)(b)||(0,E.F9)(b)?b.points:function(R){return R.type==="diamond"?[[R.width/2,0],[R.width,R.height/2],[R.width/2,R.height],[0,R.height/2]]:[[0,0],[0+R.width,0],[0+R.width,R.height],[0,R.height]]}(b)}(W),U=v(u),le=[U.cx,U.cy],de=u.map(function(b){return(0,y.xj)([b[0],b[1]],le,W.angle)}),he=v(de),pe=he.minX,oe=he.minY,P=he.maxX,$=he.maxY;return[pe+W.x,oe+W.y,P+W.x,$+W.y]},M=function(W,u){var U=arguments.length>2&&arguments[2]!==void 0&&arguments[2],le=n(W),de=u[0]<=le[0]&&u[2]>=le[2]&&u[1]<=le[1]&&u[3]>=le[3];return U?!!de||le[0]<=u[0]&&le[2]>=u[2]&&le[1]<=u[1]&&le[3]>=u[3]:de},Z=function(W,u){var U=n(W);return((0,y.Xt)(U[0],u[0],u[2])||(0,y.Xt)(u[0],U[0],U[2]))&&((0,y.Xt)(U[1],u[1],u[3])||(0,y.Xt)(u[1],U[1],U[3]))},H=function(W){var u=W.elements,U=W.bounds,le=W.type,de=W.errorMargin,he=de===void 0?0:de;(0,E.r2)(U)&&(U=(0,h.Pi)(U));var pe,oe=[U[0]-he,U[1]-he,U[2]+he,U[3]+he],P=new Set,$=S(u);try{for($.s();!(pe=$.n()).done;){var b=pe.value;if(!P.has(b.id)&&(le==="overlap"?Z(b,oe):le==="inside"?M(b,oe):M(b,oe,!0))){if(P.add(b.id),b.boundElements){var R,_=S(b.boundElements);try{for(_.s();!(R=_.n()).done;){var g=R.value;P.add(g.id)}}catch(s){_.e(s)}finally{_.f()}}var O;(0,E.iB)(b)&&b.containerId&&P.add(b.containerId),(0,E.Yv)(b)&&(b.startBinding&&P.add(b.startBinding.elementId),b.endBinding&&P.add((O=b.endBinding)===null||O===void 0?void 0:O.elementId))}}}catch(s){$.e(s)}finally{$.f()}return u.filter(function(s){return P.has(s.id)})}},5999:function(Se,Q,e){e.d(Q,{k:function(){return E},z:function(){return y}});var D=e(1930),E=function(h){var S=h.map(function(v){return v[0]}),I=h.map(function(v){return v[1]});return{width:Math.max.apply(Math,(0,D.Z)(S))-Math.min.apply(Math,(0,D.Z)(S)),height:Math.max.apply(Math,(0,D.Z)(I))-Math.min.apply(Math,(0,D.Z)(I))}},y=function(h,S,I,v){var n=I.map(function(de){return de[h]}),M=Math.max.apply(Math,(0,D.Z)(n)),Z=Math.min.apply(Math,(0,D.Z)(n)),H=M-Z,W=H===0?1:S/H,u=1/0,U=I.map(function(de){var he=de[h]*W,pe=(0,D.Z)(de);return pe[h]=he,he<u&&(u=he),pe});if(!v||U.length===2)return U;var le=Z-u;return U.map(function(de){return de.map(function(he,pe){return pe===h?he+le:he})})}},4643:function(Se,Q,e){e.d(Q,{LU:function(){return I},kb:function(){return v}});var D=e(8152),E=e(5605),y=e(9827),h=new D.k(Date.now()),S=0,I=function(){return Math.floor(h.next()*Math.pow(2,31))},v=function(){return(0,y.h2)()?"id".concat(S++):(0,E.x0)()}},9660:function(Se,Q,e){e.d(Q,{Dn:function(){return ie},Xx:function(){return L},Lc:function(){return Oe},N7:function(){return J},lw:function(){return We},Rg:function(){return xe},uI:function(){return Ce}});var D=e(7169),E=e(2577),y=e(4183),h=e(4949),S=e(9827),I=e(2361),v=e(9845),n=e(6853),M=e(9937);function Z(o,i,p,B=A=>A){return o*B(.5-i*(.5-p))}function H(o,i){return[o[0]+i[0],o[1]+i[1]]}function W(o,i){return[o[0]-i[0],o[1]-i[1]]}function u(o,i){return[o[0]*i,o[1]*i]}function U(o){return[o[1],-o[0]]}function le(o,i){return o[0]*i[0]+o[1]*i[1]}function de(o,i){return o[0]===i[0]&&o[1]===i[1]}function he(o,i){return function(p){return p[0]*p[0]+p[1]*p[1]}(W(o,i))}function pe(o){return function(i,p){return[i[0]/p,i[1]/p]}(o,function(i){return Math.hypot(i[0],i[1])}(o))}function oe(o,i){return Math.hypot(o[1]-i[1],o[0]-i[0])}function P(o,i,p){let B=Math.sin(p),A=Math.cos(p),X=o[0]-i[0],Y=o[1]-i[1],ee=X*B+Y*A;return[X*A-Y*B+i[0],ee+i[1]]}function $(o,i,p){return H(o,u(W(i,o),p))}function b(o,i,p){return H(o,u(i,p))}var{min:R,PI:_}=Math,g=_+1e-4;function O(o,i={}){return function(p,B={}){let{size:A=16,smoothing:X=.5,thinning:Y=.5,simulatePressure:ee=!0,easing:ge=mt=>mt,start:be={},end:Re={},last:Ze=!1}=B,{cap:Be=!0,easing:Ie=mt=>mt*(2-mt)}=be,{cap:Ke=!0,easing:Ye=mt=>--mt*mt*mt+1}=Re;if(p.length===0||A<=0)return[];let tt,ue=p[p.length-1].runningLength,ve=be.taper===!1?0:be.taper===!0?Math.max(A,ue):be.taper,De=Re.taper===!1?0:Re.taper===!0?Math.max(A,ue):Re.taper,He=Math.pow(A*X,2),Je=[],qe=[],st=p.slice(0,10).reduce((mt,ut)=>{let Ot=ut.pressure;if(ee){let Pt=R(1,ut.distance/A),Gt=R(1,1-Pt);Ot=R(1,mt+.275*Pt*(Gt-mt))}return(mt+Ot)/2},p[0].pressure),ht=Z(A,Y,p[p.length-1].pressure,ge),et=p[0].vector,wt=p[0].point,Lt=wt,St=wt,yt=Lt,Wt=!1;for(let mt=0;mt<p.length;mt++){let{pressure:ut}=p[mt],{point:Ot,vector:Pt,distance:Gt,runningLength:Ct}=p[mt];if(mt<p.length-1&&ue-Ct<3)continue;if(Y){if(ee){let At=R(1,Gt/A),br=R(1,1-At);ut=R(1,st+.275*At*(br-st))}ht=Z(A,Y,ut,ge)}else ht=A/2;tt===void 0&&(tt=ht);let ur=Ct<ve?Ie(Ct/ve):1,rr=ue-Ct<De?Ye((ue-Ct)/De):1;ht=Math.max(.01,ht*Math.min(ur,rr));let Tr=(mt<p.length-1?p[mt+1]:p[mt]).vector,ot=mt<p.length-1?le(Pt,Tr):1,Rt=ot!==null&&ot<0;if(le(Pt,et)<0&&!Wt||Rt){let At=u(U(et),ht);for(let br=.07692307692307693,xr=0;xr<=1;xr+=br)St=P(W(Ot,At),Ot,g*xr),Je.push(St),yt=P(H(Ot,At),Ot,g*-xr),qe.push(yt);wt=St,Lt=yt,Rt&&(Wt=!0);continue}if(Wt=!1,mt===p.length-1){let At=u(U(Pt),ht);Je.push(W(Ot,At)),qe.push(H(Ot,At));continue}let _t=u(U($(Tr,Pt,ot)),ht);St=W(Ot,_t),(mt<=1||he(wt,St)>He)&&(Je.push(St),wt=St),yt=H(Ot,_t),(mt<=1||he(Lt,yt)>He)&&(qe.push(yt),Lt=yt),st=ut,et=Pt}let Ft=p[0].point.slice(0,2),Ve=p.length>1?p[p.length-1].point.slice(0,2):H(p[0].point,[1,1]),bt=[],at=[];if(p.length===1){if(!ve&&!De||Ze){let mt=b(Ft,pe(U(W(Ft,Ve))),-(tt||ht)),ut=[];for(let Ot=.07692307692307693,Pt=Ot;Pt<=1;Pt+=Ot)ut.push(P(mt,Ft,2*g*Pt));return ut}}else{if(!(ve||De&&p.length===1))if(Be)for(let ut=.07692307692307693,Ot=ut;Ot<=1;Ot+=ut){let Pt=P(qe[0],Ft,g*Ot);bt.push(Pt)}else{let ut=W(Je[0],qe[0]),Ot=u(ut,.5),Pt=u(ut,.51);bt.push(W(Ft,Ot),W(Ft,Pt),H(Ft,Pt),H(Ft,Ot))}let mt=U(function(ut){return[-ut[0],-ut[1]]}(p[p.length-1].vector));if(De||ve&&p.length===1)at.push(Ve);else if(Ke){let ut=b(Ve,mt,ht);for(let Ot=.034482758620689655,Pt=Ot;Pt<1;Pt+=Ot)at.push(P(ut,Ve,3*g*Pt))}else at.push(H(Ve,u(mt,ht)),H(Ve,u(mt,.99*ht)),W(Ve,u(mt,.99*ht)),W(Ve,u(mt,ht)))}return Je.concat(at,qe.reverse(),bt)}(function(p,B={}){var A;let{streamline:X=.5,size:Y=16,last:ee=!1}=B;if(p.length===0)return[];let ge=.15+.85*(1-X),be=Array.isArray(p[0])?p:p.map(({x:Ye,y:tt,pressure:ue=.5})=>[Ye,tt,ue]);if(be.length===2){let Ye=be[1];be=be.slice(0,-1);for(let tt=1;tt<5;tt++)be.push($(be[0],Ye,tt/4))}be.length===1&&(be=[...be,[...H(be[0],[1,1]),...be[0].slice(2)]]);let Re=[{point:[be[0][0],be[0][1]],pressure:be[0][2]>=0?be[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],Ze=!1,Be=0,Ie=Re[0],Ke=be.length-1;for(let Ye=1;Ye<be.length;Ye++){let tt=ee&&Ye===Ke?be[Ye].slice(0,2):$(Ie.point,be[Ye],ge);if(de(Ie.point,tt))continue;let ue=oe(tt,Ie.point);if(Be+=ue,Ye<Ke&&!Ze){if(Be<Y)continue;Ze=!0}Ie={point:tt,pressure:be[Ye][2]>=0?be[Ye][2]:.5,vector:pe(W(Ie.point,tt)),distance:ue,runningLength:Be},Re.push(Ie)}return Re[0].vector=((A=Re[1])==null?void 0:A.vector)||[0,0],Re}(o,i),i)}var s=e(4761),f=e(7422),t=e(761),w=e(4682),l=e(8020),a=e(2921);function c(o,i){var p=Object.keys(o);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(o);i&&(B=B.filter(function(A){return Object.getOwnPropertyDescriptor(o,A).enumerable})),p.push.apply(p,B)}return p}function m(o){for(var i=1;i<arguments.length;i++){var p=arguments[i]!=null?arguments[i]:{};i%2?c(Object(p),!0).forEach(function(B){(0,D.Z)(o,B,p[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(p)):c(Object(p)).forEach(function(B){Object.defineProperty(o,B,Object.getOwnPropertyDescriptor(p,B))})}return o}var z="invert(100%) hue-rotate(180deg) saturate(1.25)",j=(0,n.im)(),k=function(o,i){return(0,y.wi)(o)&&!i.imageCache.has(o.fileId)},x=function(o,i,p){var B;return p.theme==="dark"&&(0,y.wi)(o)&&!k(o,i)&&((B=i.imageCache.get(o.fileId))===null||B===void 0?void 0:B.mimeType)!==M.LO.svg},N=function(o){return o.type==="freedraw"?12*o.strokeWidth:20},G=function(o,i,p,B){var A,X,Y=document.createElement("canvas"),ee=Y.getContext("2d"),ge=N(o),be=function(He,Je){var qe=16777216,st=32767,ht=N(He),et=(0,h.qf)(He),wt=(0,E.Z)(et,4),Lt=wt[0],St=wt[1],yt=wt[2],Wt=wt[3],Ft=(0,y.bt)(He)||(0,y.F9)(He)?(0,S.TE)(Lt,yt):He.width,Ve=(0,y.bt)(He)||(0,y.F9)(He)?(0,S.TE)(St,Wt):He.height,bt=Ft*window.devicePixelRatio+2*ht,at=Ve*window.devicePixelRatio+2*ht,mt=Je.value;return(bt*mt>st||at*mt>st)&&(mt=Math.min(st/bt,st/at)),bt*at*mt*mt>qe&&(mt=Math.sqrt(qe/(bt*at))),{width:bt=Math.floor(bt*mt),height:at=Math.floor(at*mt),scale:mt}}(o,i),Re=be.width,Ze=be.height,Be=be.scale;Y.width=Re,Y.height=Ze;var Ie=0,Ke=0;if((0,y.bt)(o)||(0,y.F9)(o)){var Ye=(0,h.qf)(o),tt=(0,E.Z)(Ye,2),ue=tt[0],ve=tt[1];Ie=o.x>ue?(0,S.TE)(o.x,ue)*window.devicePixelRatio*Be:0,Ke=o.y>ve?(0,S.TE)(o.y,ve)*window.devicePixelRatio*Be:0,ee.translate(Ie,Ke)}ee.save(),ee.translate(ge*Be,ge*Be),ee.scale(window.devicePixelRatio*Be,window.devicePixelRatio*Be);var De=v.Z.canvas(Y);return x(o,p,B)&&(ee.filter=z),te(o,De,ee,p,B),ee.restore(),{element:o,canvas:Y,theme:B.theme,scale:Be,zoomValue:i.value,canvasOffsetX:Ie,canvasOffsetY:Ke,boundTextElementVersion:((A=(0,s.WJ)(o))===null||A===void 0?void 0:A.version)||null,containingFrameOpacity:((X=(0,w.$Z)(o))===null||X===void 0?void 0:X.opacity)||100}},ie=14,V=document.createElement("img");V.src="data:".concat(M.LO.svg,",").concat(encodeURIComponent('<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="image" class="svg-inline--fa fa-image fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#888" d="M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"></path></svg>'));var ce=document.createElement("img");ce.src="data:".concat(M.LO.svg,",").concat(encodeURIComponent('<svg viewBox="0 0 668 668" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2"><path d="M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48ZM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56ZM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48Z" style="fill:#888;fill-rule:nonzero" transform="matrix(.81709 0 0 .81709 124.825 145.825)"/><path d="M256 8C119.034 8 8 119.033 8 256c0 136.967 111.034 248 248 248s248-111.034 248-248S392.967 8 256 8Zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676ZM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676Z" style="fill:#888;fill-rule:nonzero" transform="matrix(.30366 0 0 .30366 506.822 60.065)"/></svg>'));var te=function(o,i,p,B,A){var X,Y;switch(p.globalAlpha=((X=(Y=(0,w.$Z)(o))===null||Y===void 0?void 0:Y.opacity)!==null&&X!==void 0?X:100)*o.opacity/1e4,o.type){case"rectangle":case"embeddable":case"diamond":case"ellipse":p.lineJoin="round",p.lineCap="round",i.draw(a.R.get(o));break;case"arrow":case"line":p.lineJoin="round",p.lineCap="round",a.R.get(o).forEach(function(ve){i.draw(ve)});break;case"freedraw":p.save(),p.fillStyle=o.strokeColor;var ee=function(ve){return _e.get(ve)}(o),ge=a.R.get(o);ge&&i.draw(ge),p.fillStyle=o.strokeColor,p.fill(ee),p.restore();break;case"image":var be,Re=(0,y.wi)(o)?(be=B.imageCache.get(o.fileId))===null||be===void 0?void 0:be.image:void 0;Re==null||Re instanceof Promise?function(ve,De,He){De.fillStyle="#E7E7E7",De.fillRect(0,0,ve.width,ve.height);var Je=Math.min(ve.width,ve.height),qe=Math.min(Je,Math.min(.4*Je,100));De.drawImage(ve.status==="error"?ce:V,ve.width/2-qe/2,ve.height/2-qe/2,qe,qe)}(o,p,A.zoom.value):p.drawImage(Re,0,0,o.width,o.height);break;default:if(!(0,y.iB)(o))throw new Error("Unimplemented type ".concat(o.type));var Ze=(0,S.dZ)(o.text),Be=Ze&&!p.canvas.isConnected;Be&&document.body.appendChild(p.canvas),p.canvas.setAttribute("dir",Ze?"rtl":"ltr"),p.save(),p.font=(0,S.mO)(o),p.fillStyle=o.strokeColor,p.textAlign=o.textAlign;for(var Ie=o.text.replace(/\r\n?/g,` +`).split(` +`),Ke=o.textAlign==="center"?o.width/2:o.textAlign==="right"?o.width:0,Ye=(0,s.Rg)(o.fontSize,o.lineHeight),tt=o.height-o.baseline,ue=0;ue<Ie.length;ue++)p.fillText(Ie[ue],Ke,(ue+1)*Ye-tt);p.restore(),Be&&p.canvas.remove()}p.globalAlpha=1},L=new WeakMap,re=function(o,i,p){var B,A,X=i?p.zoom:j.zoom,Y=L.get(o),ee=Y&&Y.zoomValue!==X.value&&!(p!=null&&p.shouldCacheIgnoreZoom),ge=((B=(0,s.WJ)(o))===null||B===void 0?void 0:B.version)||null,be=((A=(0,w.$Z)(o))===null||A===void 0?void 0:A.opacity)||100;if(!Y||ee||Y.theme!==p.theme||Y.boundTextElementVersion!==ge||Y.containingFrameOpacity!==be){var Re=G(o,X,i,p);return L.set(o,Re),Re}return Y},me=function(o,i,p,B){var A=o.element,X=N(A),Y=o.scale,ee=(0,h.qf)(A),ge=(0,E.Z)(ee,4),be=ge[0],Re=ge[1],Ze=ge[2],Be=ge[3];(0,y.F9)(A)&&(be=Math.floor(be),Ze=Math.ceil(Ze),Re=Math.floor(Re),Be=Math.ceil(Be));var Ie=((be+Ze)/2+B.scrollX)*window.devicePixelRatio,Ke=((Re+Be)/2+B.scrollY)*window.devicePixelRatio;i.save(),i.scale(1/window.devicePixelRatio,1/window.devicePixelRatio);var Ye=(0,s.WJ)(A);if((0,y.Yv)(A)&&Ye){var tt=document.createElement("canvas"),ue=tt.getContext("2d"),ve=Math.max((0,S.TE)(be,Ze),(0,S.TE)(Re,Be));tt.width=ve*window.devicePixelRatio*Y+X*o.scale*10,tt.height=ve*window.devicePixelRatio*Y+X*o.scale*10;var De=(tt.width-o.canvas.width)/2,He=(tt.height-o.canvas.height)/2;ue.translate(tt.width/2,tt.height/2),ue.rotate(A.angle),ue.drawImage(o.canvas,-o.canvas.width/2,-o.canvas.height/2,o.canvas.width,o.canvas.height);var Je=(0,h.qf)(Ye),qe=(0,E.Z)(Je,6),st=qe[4],ht=qe[5];ue.rotate(-A.angle);var et=tt.width/2-(st-be)*window.devicePixelRatio*Y-De-X*Y,wt=tt.height/2-(ht-Re)*window.devicePixelRatio*Y-He-X*Y;ue.translate(-et,-wt),ue.clearRect(-(Ye.width/2+M.gK)*window.devicePixelRatio*Y,-(Ye.height/2+M.gK)*window.devicePixelRatio*Y,(Ye.width+2*M.gK)*window.devicePixelRatio*Y,(Ye.height+2*M.gK)*window.devicePixelRatio*Y),i.translate(Ie,Ke),i.drawImage(tt,-(Ze-be)/2*window.devicePixelRatio-De/Y-X,-(Be-Re)/2*window.devicePixelRatio-He/Y-X,tt.width/Y,tt.height/Y)}else if(i.translate(Ie,Ke),i.rotate(A.angle),"scale"in o.element&&!k(A,p)&&i.scale(o.element.scale[0],o.element.scale[1]),i.translate(-Ie,-Ke),i.drawImage(o.canvas,(be+B.scrollX)*window.devicePixelRatio-X*o.scale/o.scale,(Re+B.scrollY)*window.devicePixelRatio-X*o.scale/o.scale,o.canvas.width/o.scale,o.canvas.height/o.scale),{VITE_APP_BACKEND_V2_GET_URL:"https://json.excalidraw.com/api/v2/",VITE_APP_BACKEND_V2_POST_URL:"https://json.excalidraw.com/api/v2/post/",VITE_APP_LIBRARY_URL:"https://libraries.excalidraw.com",VITE_APP_LIBRARY_BACKEND:"https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries",VITE_APP_PORTAL_URL:"https://portal.excalidraw.com",VITE_APP_PLUS_LP:"https://plus.excalidraw.com",VITE_APP_PLUS_APP:"https://app.excalidraw.com",VITE_APP_WS_SERVER_URL:"",VITE_APP_FIREBASE_CONFIG:'{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}',VITE_APP_DISABLE_TRACKING:"",VITE_PKG_NAME:"@excalidraw/excalidraw",VITE_PKG_VERSION:"0.17.0",VITE_IS_EXCALIDRAW_NPM_PACKAGE:!0}.VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX==="true"&&(0,y.Xo)(A)){var Lt=(0,s.WJ)(A),St=(0,s.cw)(A);i.strokeStyle="#c92a2a",i.lineWidth=3,i.strokeRect((St.x+B.scrollX)*window.devicePixelRatio,(St.y+B.scrollY)*window.devicePixelRatio,(0,s.iZ)(A)*window.devicePixelRatio,(0,s.D9)(A,Lt)*window.devicePixelRatio)}i.restore()},Ce=function(o,i,p){i.save(),i.translate(o.x+p.scrollX,o.y+p.scrollY),i.fillStyle="rgba(0, 0, 200, 0.04)";var B=.5/p.zoom.value;i.fillRect(B,B,o.width,o.height),i.lineWidth=1/p.zoom.value,i.strokeStyle=" rgb(105, 101, 219)",i.strokeRect(B,B,o.width,o.height),i.restore()},We=function(o,i,p,B,A){switch(o.type){case"frame":A.frameRendering.enabled&&A.frameRendering.outline&&(p.save(),p.translate(o.x+A.scrollX,o.y+A.scrollY),p.fillStyle="rgba(0, 0, 200, 0.04)",p.lineWidth=M.iG.strokeWidth/A.zoom.value,p.strokeStyle=M.iG.strokeColor,M.iG.radius&&p.roundRect?(p.beginPath(),p.roundRect(0,0,o.width,o.height,M.iG.radius/A.zoom.value),p.stroke(),p.closePath()):p.strokeRect(0,0,o.width,o.height),p.restore());break;case"freedraw":if(a.R.generateElementShape(o),B.isExporting){var X=(0,h.qf)(o),Y=(0,E.Z)(X,4),ee=Y[0],ge=Y[1],be=Y[2],Re=Y[3],Ze=(ee+be)/2+A.scrollX,Be=(ge+Re)/2+A.scrollY,Ie=(be-ee)/2-(o.x-ee),Ke=(Re-ge)/2-(o.y-ge);p.save(),p.translate(Ze,Be),p.rotate(o.angle),p.translate(-Ie,-Ke),te(o,i,p,B,A),p.restore()}else{var Ye=re(o,B,A);me(Ye,p,B,A)}break;case"rectangle":case"diamond":case"ellipse":case"line":case"arrow":case"image":case"text":case"embeddable":if(a.R.generateElementShape(o,B.isExporting),B.isExporting){var tt=(0,h.qf)(o),ue=(0,E.Z)(tt,4),ve=ue[0],De=ue[1],He=ue[2],Je=ue[3],qe=(ve+He)/2+A.scrollX,st=(De+Je)/2+A.scrollY,ht=(He-ve)/2-(o.x-ve),et=(Je-De)/2-(o.y-De);if((0,y.iB)(o)){var wt=(0,s.tl)(o);if((0,y.Yv)(wt)){var Lt=f._.getBoundTextElementPosition(wt,o);ht=(He-ve)/2-(Lt.x-ve),et=(Je-De)/2-(Lt.y-De)}}p.save(),p.translate(qe,st),x(o,B,A)&&(p.filter="none");var St=(0,s.WJ)(o);if((0,y.Yv)(o)&&St){var yt=document.createElement("canvas"),Wt=yt.getContext("2d"),Ft=Math.max((0,S.TE)(ve,He),(0,S.TE)(De,Je)),Ve=N(o);yt.width=Ft*A.exportScale+10*Ve*A.exportScale,yt.height=Ft*A.exportScale+10*Ve*A.exportScale,Wt.translate(yt.width/2,yt.height/2),Wt.scale(A.exportScale,A.exportScale),ht=o.width/2-(o.x-ve),et=o.height/2-(o.y-De),Wt.rotate(o.angle);var bt=v.Z.canvas(yt);Wt.translate(-ht,-et),te(o,bt,Wt,B,A),Wt.translate(ht,et),Wt.rotate(-o.angle);var at=(0,h.qf)(St),mt=(0,E.Z)(at,6),ut=(ve+He)/2-mt[4],Ot=(De+Je)/2-mt[5];Wt.translate(-ut,-Ot),Wt.clearRect(-St.width/2,-St.height/2,St.width,St.height),p.scale(1/A.exportScale,1/A.exportScale),p.drawImage(yt,-yt.width/2,-yt.height/2,yt.width,yt.height)}else p.rotate(o.angle),o.type==="image"&&p.scale(o.scale[0],o.scale[1]),p.translate(-ht,-et),te(o,i,p,B,A);p.restore()}else{var Pt=re(o,B,A),Gt=p.imageSmoothingEnabled;A!=null&&A.shouldCacheIgnoreZoom||o.angle&&!(0,I.EK)(o.angle)||(p.imageSmoothingEnabled=!1),me(Pt,p,B,A),p.imageSmoothingEnabled=Gt}break;default:throw new Error("Unimplemented type ".concat(o.type))}},Te=function(o,i,p){if(p===void 0)return o.draw(i);var B={sets:i.sets,shape:i.shape,options:m(m({},i.options),{},{fixedDecimalPlaceDigits:p})};return o.draw(B)},we=function(o,i,p,B){if(!B.enabled||!B.clip)return null;var A=(0,w.$Z)(o);if(A){var X=i.ownerDocument.createElementNS(M.hR,"g");return X.setAttributeNS(M.hR,"clip-path","url(#".concat(A.id,")")),p.forEach(function(Y){return X.appendChild(Y)}),X}return null},xe=function o(i,p,B,A,X,Y,ee){var ge,be,Re=X,Ze=Y,Be=(0,h.qf)(i),Ie=(0,E.Z)(Be,4),Ke=Ie[0],Ye=Ie[1],tt=Ie[2],ue=Ie[3],ve=(tt-Ke)/2-(i.x-Ke),De=(ue-Ye)/2-(i.y-Ye);if((0,y.iB)(i)){var He=(0,s.tl)(i);if((0,y.Yv)(He)){var Je=(0,h.qf)(He),qe=(0,E.Z)(Je,4),st=qe[0],ht=qe[1],et=qe[2],wt=qe[3],Lt=f._.getBoundTextElementPosition(He,i);ve=(et-st)/2-(Lt.x-st),De=(wt-ht)/2-(Lt.y-ht),X=X+Lt.x-i.x,Y=Y+Lt.y-i.y}}var St=180*i.angle/Math.PI,yt=B;if(i.link){var Wt=B.ownerDocument.createElementNS(M.hR,"a");Wt.setAttribute("href",(0,l.$u)(i.link)),yt.appendChild(Wt),yt=Wt}var Ft=function(Un,ne){(0,S.h2)()&&Un.setAttribute("data-id",ne.id),yt.appendChild(Un)},Ve=((ge=(be=(0,w.$Z)(i))===null||be===void 0?void 0:be.opacity)!==null&&ge!==void 0?ge:100)*i.opacity/1e4;switch(i.type){case"selection":throw new Error("Selection rendering is not supported for SVG");case"rectangle":case"diamond":case"ellipse":var bt=a.R.generateElementShape(i),at=Te(p,bt,M.zK);Ve!==1&&(at.setAttribute("stroke-opacity","".concat(Ve)),at.setAttribute("fill-opacity","".concat(Ve))),at.setAttribute("stroke-linecap","round"),at.setAttribute("transform","translate(".concat(X||0," ").concat(Y||0,") rotate(").concat(St," ").concat(ve," ").concat(De,")")),Ft(we(i,yt,[at],ee.frameRendering)||at,i);break;case"embeddable":var mt=a.R.generateElementShape(i,!0),ut=Te(p,mt,M.zK),Ot=i.opacity/100;Ot!==1&&(ut.setAttribute("stroke-opacity","".concat(Ot)),ut.setAttribute("fill-opacity","".concat(Ot))),ut.setAttribute("stroke-linecap","round"),ut.setAttribute("transform","translate(".concat(X||0," ").concat(Y||0,") rotate(").concat(St," ").concat(ve," ").concat(De,")")),Ft(ut,i);var Pt=(0,t.g0)(i);o(Pt,p,yt,A,Pt.x+Re-i.x,Pt.y+Ze-i.y,ee);var Gt=Te(p,mt,M.zK);for(Gt.setAttribute("stroke-linecap","round"),Gt.setAttribute("transform","translate(".concat(X||0," ").concat(Y||0,") rotate(").concat(St," ").concat(ve," ").concat(De,")"));Gt.firstChild;)Gt.removeChild(Gt.firstChild);var Ct=(0,I.yW)(Math.min(i.width,i.height),i),ur=(0,t.LM)((0,l.ye)(i.link||""));if(ee.renderEmbeddables===!1||ur?.type==="document"){var rr=B.ownerDocument.createElementNS(M.hR,"a");rr.setAttribute("href",(0,l.$u)(i.link||"")),rr.setAttribute("target","_blank"),rr.setAttribute("rel","noopener noreferrer"),rr.style.borderRadius="".concat(Ct,"px"),Gt.appendChild(rr)}else{var Tr,ot=B.ownerDocument.createElementNS(M.hR,"foreignObject");ot.style.width="".concat(i.width,"px"),ot.style.height="".concat(i.height,"px"),ot.style.border="none";var Rt=ot.ownerDocument.createElementNS(M.hR,"div");Rt.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),Rt.style.width="100%",Rt.style.height="100%";var _t=Rt.ownerDocument.createElement("iframe");_t.src=(Tr=ur?.link)!==null&&Tr!==void 0?Tr:"",_t.style.width="100%",_t.style.height="100%",_t.style.border="none",_t.style.borderRadius="".concat(Ct,"px"),_t.style.top="0",_t.style.left="0",_t.allowFullscreen=!0,Rt.appendChild(_t),ot.appendChild(Rt),Gt.appendChild(ot)}Ft(Gt,i);break;case"line":case"arrow":var At=(0,s.WJ)(i),br=B.ownerDocument.createElementNS(M.hR,"mask");if(At){br.setAttribute("id","mask-".concat(i.id));var xr=B.ownerDocument.createElementNS(M.hR,"rect");X=X||0,Y=Y||0,xr.setAttribute("x","0"),xr.setAttribute("y","0"),xr.setAttribute("fill","#fff"),xr.setAttribute("width","".concat(i.width+100+X)),xr.setAttribute("height","".concat(i.height+100+Y)),br.appendChild(xr);var jr=B.ownerDocument.createElementNS(M.hR,"rect"),Ar=f._.getBoundTextElementPosition(i,At),fr=X+Ar.x-i.x,dt=Y+Ar.y-i.y;jr.setAttribute("x",fr.toString()),jr.setAttribute("y",dt.toString()),jr.setAttribute("fill","#000"),jr.setAttribute("width","".concat(At.width)),jr.setAttribute("height","".concat(At.height)),jr.setAttribute("opacity","1"),br.appendChild(jr)}var ft=B.ownerDocument.createElementNS(M.hR,"g");At&&ft.setAttribute("mask","url(#mask-".concat(i.id,")")),ft.setAttribute("stroke-linecap","round"),a.R.generateElementShape(i).forEach(function(Un){var ne=Te(p,Un,M.zK);Ve!==1&&(ne.setAttribute("stroke-opacity","".concat(Ve)),ne.setAttribute("fill-opacity","".concat(Ve))),ne.setAttribute("transform","translate(".concat(X||0," ").concat(Y||0,") rotate(").concat(St," ").concat(ve," ").concat(De,")")),i.type==="line"&&(0,I.g6)(i.points)&&i.backgroundColor!=="transparent"&&ne.setAttribute("fill-rule","evenodd"),ft.appendChild(ne)});var vt=we(i,yt,[ft,br],ee.frameRendering);vt?(Ft(vt,i),yt.appendChild(vt)):(Ft(ft,i),yt.append(br));break;case"freedraw":var Et=a.R.generateElementShape(i),tr=Et?Te(p,Et,M.zK):B.ownerDocument.createElementNS(M.hR,"g");Ve!==1&&(tr.setAttribute("stroke-opacity","".concat(Ve)),tr.setAttribute("fill-opacity","".concat(Ve))),tr.setAttribute("transform","translate(".concat(X||0," ").concat(Y||0,") rotate(").concat(St," ").concat(ve," ").concat(De,")")),tr.setAttribute("stroke","none");var ir=B.ownerDocument.createElementNS(M.hR,"path");ir.setAttribute("fill",i.strokeColor),ir.setAttribute("d",J(i)),tr.appendChild(ir),Ft(we(i,yt,[tr],ee.frameRendering)||tr,i);break;case"image":var Qt=Math.round(i.width),_r=Math.round(i.height),sr=(0,y.wi)(i)&&A[i.fileId];if(sr){var mr="image-".concat(sr.id),Zr=B.querySelector("#".concat(mr));if(!Zr){(Zr=B.ownerDocument.createElementNS(M.hR,"symbol")).id=mr;var or=B.ownerDocument.createElementNS(M.hR,"image");or.setAttribute("width","100%"),or.setAttribute("height","100%"),or.setAttribute("href",sr.dataURL),Zr.appendChild(or),yt.prepend(Zr)}var lr=B.ownerDocument.createElementNS(M.hR,"use");if(lr.setAttribute("href","#".concat(mr)),ee.exportWithDarkMode&&sr.mimeType!==M.LO.svg&&lr.setAttribute("filter",z),lr.setAttribute("width","".concat(Qt)),lr.setAttribute("height","".concat(_r)),lr.setAttribute("opacity","".concat(Ve)),i.scale[0]!==1||i.scale[1]!==1){var gr=i.scale[0]!==1?-Qt:0,cr=i.scale[1]!==1?-_r:0;lr.setAttribute("transform","scale(".concat(i.scale[0],", ").concat(i.scale[1],") translate(").concat(gr," ").concat(cr,")"))}var Hr=B.ownerDocument.createElementNS(M.hR,"g");Hr.appendChild(lr),Hr.setAttribute("transform","translate(".concat(X||0," ").concat(Y||0,") rotate(").concat(St," ").concat(ve," ").concat(De,")")),Ft(we(i,yt,[Hr],ee.frameRendering)||Hr,i)}break;case"frame":if(ee.frameRendering.enabled&&ee.frameRendering.outline){var vr=document.createElementNS(M.hR,"rect");vr.setAttribute("transform","translate(".concat(X||0," ").concat(Y||0,") rotate(").concat(St," ").concat(ve," ").concat(De,")")),vr.setAttribute("width","".concat(i.width,"px")),vr.setAttribute("height","".concat(i.height,"px")),vr.setAttribute("rx",M.iG.radius.toString()),vr.setAttribute("ry",M.iG.radius.toString()),vr.setAttribute("fill","none"),vr.setAttribute("stroke",M.iG.strokeColor),vr.setAttribute("stroke-width",M.iG.strokeWidth.toString()),Ft(vr,i)}break;default:if(!(0,y.iB)(i))throw new Error("Unimplemented type ".concat(i.type));var Rr=B.ownerDocument.createElementNS(M.hR,"g");Ve!==1&&(Rr.setAttribute("stroke-opacity","".concat(Ve)),Rr.setAttribute("fill-opacity","".concat(Ve))),Rr.setAttribute("transform","translate(".concat(X||0," ").concat(Y||0,") rotate(").concat(St," ").concat(ve," ").concat(De,")"));for(var an=i.text.replace(/\r\n?/g,` +`).split(` +`),Sn=(0,s.Rg)(i.fontSize,i.lineHeight),Mn=i.textAlign==="center"?i.width/2:i.textAlign==="right"?i.width:0,Zn=(0,S.dZ)(i.text)?"rtl":"ltr",Rn=i.textAlign==="center"?"middle":i.textAlign==="right"||Zn==="rtl"?"end":"start",bn=0;bn<an.length;bn++){var yn=B.ownerDocument.createElementNS(M.hR,"text");yn.textContent=an[bn],yn.setAttribute("x","".concat(Mn)),yn.setAttribute("y","".concat(bn*Sn)),yn.setAttribute("font-family",(0,S.$g)(i)),yn.setAttribute("font-size","".concat(i.fontSize,"px")),yn.setAttribute("fill",i.strokeColor),yn.setAttribute("text-anchor",Rn),yn.setAttribute("style","white-space: pre;"),yn.setAttribute("direction",Zn),yn.setAttribute("dominant-baseline","text-before-edge"),Rr.appendChild(yn)}Ft(we(i,yt,[Rr],ee.frameRendering)||Rr,i)}},_e=new WeakMap([]);function Oe(o){var i=J(o),p=new Path2D(i);return _e.set(o,p),p}function J(o){return function(i){if(!i.length)return"";var p=i.length-1;return i.reduce(function(B,A,X,Y){return X===p?B.push(A,ke(A,Y[0]),"L",Y[0],"Z"):B.push(A,ke(A,Y[X+1])),B},["M",i[0],"Q"]).join(" ").replace(q,"$1")}(O(o.simulatePressure?o.points:o.points.length?o.points.map(function(i,p){var B=(0,E.Z)(i,2);return[B[0],B[1],o.pressures[p]]}):[[0,0,.5]],{simulatePressure:o.simulatePressure,size:4.25*o.strokeWidth,thinning:.6,smoothing:.5,streamline:.5,easing:function(i){return Math.sin(i*Math.PI/2)},last:!!o.lastCommittedPoint}))}function ke(o,i){return[(o[0]+i[0])/2,(o[1]+i[1])/2]}var q=/(\s?[A-Z]?,?-?[0-9]*\.[0-9]{0,2})(([0-9]|e|-)*)/g},7766:function(Se,Q,e){e.d(Q,{Lu:function(){return c},n_:function(){return Ce},tp:function(){return L},M_:function(){return q},AW:function(){return me}});var D,E=e(1930),y=e(2577),h=e(5284),S=e(7651),I=function(o,i,p,B,A,X,Y){o.beginPath(),o.moveTo(i+X,p),o.lineTo(i+B-X,p),o.quadraticCurveTo(i+B,p,i+B,p+X),o.lineTo(i+B,p+A-X),o.quadraticCurveTo(i+B,p+A,i+B-X,p+A),o.lineTo(i+X,p+A),o.quadraticCurveTo(i,p+A,i,p+A-X),o.lineTo(i,p+X),o.quadraticCurveTo(i,p,i+X,p),o.closePath(),o.fill(),Y&&(o.strokeStyle=Y),o.stroke()},v=e(4726),n=e(9660),M=e(957),Z=e(7422),H=e(9215),W=e(3528),u=e(4048),U=e(9827);(function(o){o.ACTIVE="active",o.AWAY="away",o.IDLE="idle"})(D||(D={}));var le=e(9937),de=e(5992);function he(o,i){var p=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!p){if(Array.isArray(o)||(p=function(ge,be){if(ge){if(typeof ge=="string")return pe(ge,be);var Re=Object.prototype.toString.call(ge).slice(8,-1);if(Re==="Object"&&ge.constructor&&(Re=ge.constructor.name),Re==="Map"||Re==="Set")return Array.from(ge);if(Re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Re))return pe(ge,be)}}(o))||i&&o&&typeof o.length=="number"){p&&(o=p);var B=0,A=function(){};return{s:A,n:function(){return B>=o.length?{done:!0}:{done:!1,value:o[B++]}},e:function(ge){throw ge},f:A}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var X,Y=!0,ee=!1;return{s:function(){p=p.call(o)},n:function(){var ge=p.next();return Y=ge.done,ge},e:function(ge){ee=!0,X=ge},f:function(){try{Y||p.return==null||p.return()}finally{if(ee)throw X}}}}function pe(o,i){(i==null||i>o.length)&&(i=o.length);for(var p=0,B=new Array(i);p<i;p++)B[p]=o[p];return B}var oe=function(o,i,p){if(!p.zenModeEnabled){var B=o.points[0],A=o.points[o.points.length-1];b(B,A,i)}var X,Y=he(o.points);try{for(Y.s();!(X=Y.n()).done;){var ee=X.value;$(ee,p,i)}}catch(ge){Y.e(ge)}finally{Y.f()}},P=function(o,i,p){$(o.points[0],p,i),p.zenModeEnabled||b(o.points[0],o.points[1],i)},$=function(o,i,p){var B=(0,y.Z)(o,2),A=B[0],X=B[1];p.save();var Y=(i.zenModeEnabled?3:2)/i.zoom.value;p.beginPath(),p.moveTo(A-Y,X-Y),p.lineTo(A+Y,X+Y),p.moveTo(A+Y,X-Y),p.lineTo(A-Y,X+Y),p.stroke(),p.restore()},b=function(o,i,p){p.beginPath(),p.lineTo.apply(p,(0,E.Z)(o)),p.lineTo.apply(p,(0,E.Z)(i)),p.stroke()},R=function(o,i,p,B,A){var X=8/B.zoom.value,Y=X/2,ee=X/4;if(p==="horizontal"){var ge=[(o[0]+i[0])/2,o[1]];B.zenModeEnabled||b([o[0],o[1]-X],[o[0],o[1]+X],A),b([ge[0]-ee,ge[1]-Y],[ge[0]-ee,ge[1]+Y],A),b([ge[0]+ee,ge[1]-Y],[ge[0]+ee,ge[1]+Y],A),B.zenModeEnabled||(b([i[0],i[1]-X],[i[0],i[1]+X],A),b(o,i,A))}else{var be=[o[0],(o[1]+i[1])/2];B.zenModeEnabled||b([o[0]-X,o[1]],[o[0]+X,o[1]],A),b([be[0]-Y,be[1]-ee],[be[0]+Y,be[1]-ee],A),b([be[0]-Y,be[1]+ee],[be[0]+Y,be[1]+ee],A),B.zenModeEnabled||(b([i[0]-X,i[1]],[i[0]+X,i[1]],A),b(o,i,A))}},_=e(4183),g=e(761),O=e(4682),s=e(6655);function f(o,i){var p=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!p){if(Array.isArray(o)||(p=function(ge,be){if(ge){if(typeof ge=="string")return t(ge,be);var Re=Object.prototype.toString.call(ge).slice(8,-1);if(Re==="Object"&&ge.constructor&&(Re=ge.constructor.name),Re==="Map"||Re==="Set")return Array.from(ge);if(Re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Re))return t(ge,be)}}(o))||i&&o&&typeof o.length=="number"){p&&(o=p);var B=0,A=function(){};return{s:A,n:function(){return B>=o.length?{done:!0}:{done:!1,value:o[B++]}},e:function(ge){throw ge},f:A}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var X,Y=!0,ee=!1;return{s:function(){p=p.call(o)},n:function(){var ge=p.next();return Y=ge.done,ge},e:function(ge){ee=!0,X=ge},f:function(){try{Y||p.return==null||p.return()}finally{if(ee)throw X}}}}function t(o,i){(i==null||i>o.length)&&(i=o.length);for(var p=0,B=new Array(i);p<i;p++)B[p]=o[p];return B}function w(o,i){var p=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!p){if(Array.isArray(o)||(p=function(ge,be){if(ge){if(typeof ge=="string")return l(ge,be);var Re=Object.prototype.toString.call(ge).slice(8,-1);if(Re==="Object"&&ge.constructor&&(Re=ge.constructor.name),Re==="Map"||Re==="Set")return Array.from(ge);if(Re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Re))return l(ge,be)}}(o))||i&&o&&typeof o.length=="number"){p&&(o=p);var B=0,A=function(){};return{s:A,n:function(){return B>=o.length?{done:!0}:{done:!1,value:o[B++]}},e:function(ge){throw ge},f:A}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var X,Y=!0,ee=!1;return{s:function(){p=p.call(o)},n:function(){var ge=p.next();return Y=ge.done,ge},e:function(ge){ee=!0,X=ge},f:function(){try{Y||p.return==null||p.return()}finally{if(ee)throw X}}}}function l(o,i){(i==null||i>o.length)&&(i=o.length);for(var p=0,B=new Array(i);p<i;p++)B[p]=o[p];return B}(function(){var o,i,p,B,A,X;(i=(o=Path2D.prototype).roundRect)!==null&&i!==void 0||(o.roundRect=Y),globalThis.CanvasRenderingContext2D&&((B=(p=globalThis.CanvasRenderingContext2D.prototype).roundRect)!==null&&B!==void 0||(p.roundRect=Y)),globalThis.OffscreenCanvasRenderingContext2D&&((X=(A=globalThis.OffscreenCanvasRenderingContext2D.prototype).roundRect)!==null&&X!==void 0||(A.roundRect=Y));function Y(ge,be,Re,Ze,Be){if([ge,be,Re,Ze].every(function(qe){return Number.isFinite(qe)})){var Ie,Ke,Ye,tt;if((Be=function(qe){var st=(0,s.Z)(qe);return st==="undefined"||qe===null?[0]:st==="function"?[NaN]:st==="object"?typeof qe[Symbol.iterator]=="function"?(0,E.Z)(qe).map(function(ht){var et=(0,s.Z)(ht);return et==="undefined"||ht===null?0:et==="function"?NaN:et==="object"?De(ht):He(ht)}):[De(qe)]:[He(qe)]}(Be)).length===4)Ie=Je(Be[0]),Ke=Je(Be[1]),Ye=Je(Be[2]),tt=Je(Be[3]);else if(Be.length===3)Ie=Je(Be[0]),Ke=Je(Be[1]),tt=Je(Be[1]),Ye=Je(Be[2]);else if(Be.length===2)Ie=Je(Be[0]),Ye=Je(Be[0]),Ke=Je(Be[1]),tt=Je(Be[1]);else{if(Be.length!==1)throw new RangeError("".concat(ee(this)," ").concat(Be.length," is not a valid size for radii sequence."));Ie=Je(Be[0]),Ke=Je(Be[0]),Ye=Je(Be[0]),tt=Je(Be[0])}var ue=[Ie,Ke,Ye,tt],ve=ue.find(function(qe){var st=qe.x,ht=qe.y;return st<0||ht<0});if(ve?.x<0?ve.x:ve?.y,!ue.some(function(qe){var st=qe.x,ht=qe.y;return!Number.isFinite(st)||!Number.isFinite(ht)})){if(ve)throw new RangeError("".concat(ee(this)," Radius value ").concat(ve," is negative."));(function(qe){var st=(0,y.Z)(qe,4),ht=st[0],et=st[1],wt=st[2],Lt=st[3],St=[Math.abs(Re)/(ht.x+et.x),Math.abs(Ze)/(et.y+wt.y),Math.abs(Re)/(wt.x+Lt.x),Math.abs(Ze)/(ht.y+Lt.y)],yt=Math.min.apply(Math,St);if(yt<=1){var Wt,Ft=f(qe);try{for(Ft.s();!(Wt=Ft.n()).done;){var Ve=Wt.value;Ve.x*=yt,Ve.y*=yt}}catch(bt){Ft.e(bt)}finally{Ft.f()}}})(ue),Re<0&&Ze<0?(this.moveTo(ge-Ie.x,be),this.ellipse(ge+Re+Ke.x,be-Ke.y,Ke.x,Ke.y,0,1.5*-Math.PI,-Math.PI),this.ellipse(ge+Re+Ye.x,be+Ze+Ye.y,Ye.x,Ye.y,0,-Math.PI,-Math.PI/2),this.ellipse(ge-tt.x,be+Ze+tt.y,tt.x,tt.y,0,-Math.PI/2,0),this.ellipse(ge-Ie.x,be-Ie.y,Ie.x,Ie.y,0,0,-Math.PI/2)):Re<0?(this.moveTo(ge-Ie.x,be),this.ellipse(ge+Re+Ke.x,be+Ke.y,Ke.x,Ke.y,0,-Math.PI/2,-Math.PI,1),this.ellipse(ge+Re+Ye.x,be+Ze-Ye.y,Ye.x,Ye.y,0,-Math.PI,1.5*-Math.PI,1),this.ellipse(ge-tt.x,be+Ze-tt.y,tt.x,tt.y,0,Math.PI/2,0,1),this.ellipse(ge-Ie.x,be+Ie.y,Ie.x,Ie.y,0,0,-Math.PI/2,1)):Ze<0?(this.moveTo(ge+Ie.x,be),this.ellipse(ge+Re-Ke.x,be-Ke.y,Ke.x,Ke.y,0,Math.PI/2,0,1),this.ellipse(ge+Re-Ye.x,be+Ze+Ye.y,Ye.x,Ye.y,0,0,-Math.PI/2,1),this.ellipse(ge+tt.x,be+Ze+tt.y,tt.x,tt.y,0,-Math.PI/2,-Math.PI,1),this.ellipse(ge+Ie.x,be-Ie.y,Ie.x,Ie.y,0,-Math.PI,1.5*-Math.PI,1)):(this.moveTo(ge+Ie.x,be),this.ellipse(ge+Re-Ke.x,be+Ke.y,Ke.x,Ke.y,0,-Math.PI/2,0),this.ellipse(ge+Re-Ye.x,be+Ze-Ye.y,Ye.x,Ye.y,0,0,Math.PI/2),this.ellipse(ge+tt.x,be+Ze-tt.y,tt.x,tt.y,0,Math.PI/2,Math.PI),this.ellipse(ge+Ie.x,be+Ie.y,Ie.x,Ie.y,0,Math.PI,1.5*Math.PI)),this.closePath(),this.moveTo(ge,be)}}function De(qe){return{x:qe.x,y:qe.y,z:qe.z,w:qe.w}}function He(qe){return+qe}function Je(qe){var st,ht,et=He(qe);return Number.isFinite(et)?{x:et,y:et}:Object(qe)===qe?{x:He((st=qe.x)!==null&&st!==void 0?st:0),y:He((ht=qe.y)!==null&&ht!==void 0?ht:0)}:{x:NaN,y:NaN}}}function ee(ge){return"Failed to execute 'roundRect' on '".concat(function(be){return Object(be)===be&&be instanceof Path2D?"Path2D":be instanceof globalThis?.CanvasRenderingContext2D?"CanvasRenderingContext2D":be instanceof globalThis?.OffscreenCanvasRenderingContext2D?"OffscreenCanvasRenderingContext2D":be?.constructor.name||be}(ge),"':")}})();var a,c=2,m=function(o,i,p,B,A,X,Y,ee){var ge=arguments.length>8&&arguments[8]!==void 0&&arguments[8],be=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0;o.save(),o.translate(X,Y),o.rotate(ee),ge&&o.fillRect(i-X,p-Y,B,A),be&&o.roundRect?(o.beginPath(),o.roundRect(i-X,p-Y,B,A,be),o.stroke(),o.closePath()):o.strokeRect(i-X,p-Y,B,A),o.restore()},z=function(o,i,p,B){var A=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4];o.beginPath(),o.arc(i,p,B,0,2*Math.PI),o.fill(),A&&o.stroke()},j=function(o,i,p,B,A){var X=arguments.length>5&&arguments[5]!==void 0&&arguments[5];o.strokeStyle="#5e5ad8",o.setLineDash([]),o.fillStyle="rgba(255, 255, 255, 0.9)",A?o.fillStyle="rgba(134, 131, 226, 0.9)":X&&(o.fillStyle="rgba(177, 151, 252, 0.7)"),z(o,p[0],p[1],B/i.zoom.value,!X)},k=function(o,i,p){if(i.selectedLinearElement){o.save(),o.translate(i.scrollX,i.scrollY),o.lineWidth=1/i.zoom.value;var B=Z._.getPointsGlobalCoordinates(p),A=Z._.POINT_HANDLE_SIZE,X=i.editingLinearElement?A:A/2;B.forEach(function(Y,ee){var ge,be,Re=!((ge=i.editingLinearElement)===null||ge===void 0||(be=ge.selectedPointsIndices)===null||be===void 0||!be.includes(ee));j(o,i,Y,X,Re)}),Z._.getEditorMidPoints(p,i).filter(function(Y){return Y!==null}).forEach(function(Y){var ee;i!=null&&(ee=i.selectedLinearElement)!==null&&ee!==void 0&&ee.segmentMidPointHoveredCoords&&Z._.arePointsEqual(Y,i.selectedLinearElement.segmentMidPointHoveredCoords)?i.editingLinearElement?(j(o,i,Y,X,!1),x(Y,o,i)):(x(Y,o,i),j(o,i,Y,X,!1)):(i.editingLinearElement||B.length===2)&&j(o,i,Y,A/2,!1,!0)}),o.restore()}},x=function(o,i,p){i.fillStyle="rgba(105, 101, 219, 0.4)",z(i,o[0],o[1],Z._.POINT_HANDLE_SIZE/p.zoom.value,!1)},N=function(o,i,p,B){i.translate(o.x+B.scrollX,o.y+B.scrollY),i.beginPath(),i.roundRect?i.roundRect(0,0,o.width,o.height,le.iG.radius/B.zoom.value):i.rect(0,0,o.width,o.height),i.clip(),i.translate(-(o.x+B.scrollX),-(o.y+B.scrollY))},G=function(o,i){return[o.width/i,o.height/i]},ie=function(o){var i=o.canvas,p=o.scale,B=o.normalizedWidth,A=o.normalizedHeight,X=o.theme,Y=o.isExporting,ee=o.viewBackgroundColor,ge=i.getContext("2d");return ge.setTransform(1,0,0,1,0,0),ge.scale(p,p),Y&&X==="dark"&&(ge.filter=le.ZF),typeof ee=="string"?((ee==="transparent"||ee.length===5||ee.length===9||/(hsla|rgba)\(/.test(ee))&&ge.clearRect(0,0,B,A),ge.save(),ge.fillStyle=ee,ge.fillRect(0,0,B,A),ge.restore()):ge.clearRect(0,0,B,A),ge},V=function(o){var i,p=o.canvas,B=o.elements,A=o.visibleElements,X=o.selectedElements,Y=o.scale,ee=o.appState,ge=o.renderConfig;if(p===null)return{atLeastOneVisibleElement:!1,elements:B};var be=G(p,Y),Re=(0,y.Z)(be,2),Ze=Re[0],Be=Re[1],Ie=ie({canvas:p,scale:Y,normalizedWidth:Ze,normalizedHeight:Be});Ie.save(),Ie.scale(ee.zoom.value,ee.zoom.value);var Ke=void 0;if(A.forEach(function(ft){var vt;((vt=ee.editingLinearElement)===null||vt===void 0?void 0:vt.elementId)===ft.id&&ft&&(Ke=ft)}),Ke&&k(Ie,ee,Ke),ee.selectionElement)try{(0,n.uI)(ee.selectionElement,Ie,ee)}catch(ft){console.error(ft)}ee.isBindingEnabled&&ee.suggestedBindings.filter(function(ft){return ft!=null}).forEach(function(ft){we(Ie,ee,ft)}),ee.frameToHighlight&&_e(Ie,ee,ee.frameToHighlight),ee.elementsToHighlight&&Oe(Ie,ee,ee.elementsToHighlight);var Ye,tt=X.some(function(ft){return(0,_.He)(ft)});if(X.length===1&&((i=ee.editingLinearElement)===null||i===void 0?void 0:i.elementId)===X[0].id&&k(Ie,ee,X[0]),ee.selectedLinearElement&&ee.selectedLinearElement.hoverPointIndex>=0&&function(ft,vt){var Et,tr,ir=vt.selectedLinearElement,Qt=ir.elementId,_r=ir.hoverPointIndex;if((Et=vt.editingLinearElement)===null||Et===void 0||(tr=Et.selectedPointsIndices)===null||tr===void 0||!tr.includes(_r)){var sr=Z._.getElement(Qt);if(sr){var mr=Z._.getPointAtIndexGlobalCoordinates(sr,_r);ft.save(),ft.translate(vt.scrollX,vt.scrollY),x(mr,ft,vt),ft.restore()}}}(Ie,ee),!ee.multiElement&&!ee.editingLinearElement){var ue,ve=(0,u.oY)(X,ee);X.length===1&&(0,_.bt)(X[0])&&((ue=ee.selectedLinearElement)===null||ue===void 0?void 0:ue.elementId)===X[0].id&&!X[0].locked&&k(Ie,ee,X[0]);var De=ge.selectionColor||h.black;if(ve){var He,Je=X.reduce(function(ft,vt){return ft[vt.id]=!0,ft},{}),qe=B.reduce(function(ft,vt){var Et=[];if(Je[vt.id]&&!(0,H.zq)(ee,vt)&&Et.push(De),ge.remoteSelectedElementIds[vt.id]&&Et.push.apply(Et,(0,E.Z)(ge.remoteSelectedElementIds[vt.id].map(function(gr){return(0,M.G)(gr)}))),Et.length){var tr,ir=(0,S.qf)(vt,!0),Qt=(0,y.Z)(ir,6),_r=Qt[0],sr=Qt[1],mr=Qt[2],Zr=Qt[3],or=Qt[4],lr=Qt[5];ft.push({angle:vt.angle,elementX1:_r,elementY1:sr,elementX2:mr,elementY2:Zr,selectionColors:Et,dashed:!!ge.remoteSelectedElementIds[vt.id],cx:or,cy:lr,activeEmbeddable:((tr=ee.activeEmbeddable)===null||tr===void 0?void 0:tr.element)===vt&&ee.activeEmbeddable.state==="active"})}return ft},[]),st=function(ft){var vt=(0,H.Fb)(B,ft),Et=(0,S.KP)(vt),tr=(0,y.Z)(Et,4),ir=tr[0],Qt=tr[1],_r=tr[2],sr=tr[3];qe.push({angle:0,elementX1:ir,elementX2:_r,elementY1:Qt,elementY2:sr,selectionColors:[h.black],dashed:!0,cx:ir+(_r-ir)/2,cy:Qt+(sr-Qt)/2,activeEmbeddable:!1})},ht=w((0,H.iJ)(ee));try{for(ht.s();!(He=ht.n()).done;)st(He.value)}catch(ft){ht.e(ft)}finally{ht.f()}ee.editingGroupId&&st(ee.editingGroupId),qe.forEach(function(ft){return Te(Ie,ee,ft)})}if(Ie.save(),Ie.translate(ee.scrollX,ee.scrollY),X.length===1){Ie.fillStyle=h.white;var et=(0,S.PC)(X[0],ee.zoom,"mouse");!ee.viewModeEnabled&&ve&&We(Ie,ge,ee,et,X[0].angle)}else if(X.length>1&&!ee.isRotating){var wt=2*c/ee.zoom.value;Ie.fillStyle=h.white;var Lt=(0,S.KP)(X),St=(0,y.Z)(Lt,4),yt=St[0],Wt=St[1],Ft=St[2],Ve=St[3],bt=Ie.getLineDash();Ie.setLineDash([2/ee.zoom.value]);var at=Ie.lineWidth;Ie.lineWidth=1/ee.zoom.value,Ie.strokeStyle=De,m(Ie,yt-wt,Wt-wt,Ft-yt+2*wt,Ve-Wt+2*wt,(yt+Ft)/2,(Wt+Ve)/2,0),Ie.lineWidth=at,Ie.setLineDash(bt);var mt=(0,S.kK)([yt,Wt,Ft,Ve,(yt+Ft)/2,(Wt+Ve)/2],0,ee.zoom,"mouse",tt?u.Fn:S.ox);X.some(function(ft){return!ft.locked})&&We(Ie,ge,ee,mt,0)}Ie.restore()}for(var ut in function(ft,vt){if(vt.snapLines.length){var Et=vt.theme==="light"||vt.zenModeEnabled?"#ff6b6b":"#ff0000",tr=(vt.zenModeEnabled?1.5:1)/vt.zoom.value;ft.save(),ft.translate(vt.scrollX,vt.scrollY);var ir,Qt=he(vt.snapLines);try{for(Qt.s();!(ir=Qt.n()).done;){var _r=ir.value;_r.type==="pointer"?(ft.lineWidth=tr,ft.strokeStyle=Et,P(_r,ft,vt)):_r.type==="gap"?(ft.lineWidth=tr,ft.strokeStyle=Et,R(_r.points[0],_r.points[1],_r.direction,vt,ft)):_r.type==="points"&&(ft.lineWidth=tr,ft.strokeStyle=Et,oe(_r,ft,vt))}}catch(sr){Qt.e(sr)}finally{Qt.f()}ft.restore()}}(Ie,ee),Ie.restore(),ge.remotePointerViewportCoords){var Ot=ge.remotePointerViewportCoords[ut],Pt=Ot.x,Gt=Ot.y;Pt-=ee.offsetLeft,Gt-=ee.offsetTop;var Ct=Pt<0||Pt>Ze-11||Gt<0||Gt>Be-14;Pt=Math.max(Pt,0),Pt=Math.min(Pt,Ze-11),Gt=Math.max(Gt,0),Gt=Math.min(Gt,Be-14);var ur=(0,M.G)(ut);Ie.save(),Ie.strokeStyle=ur,Ie.fillStyle=ur;var rr=ge.remotePointerUserStates[ut],Tr=Ct||rr===D.IDLE||rr===D.AWAY;Tr&&(Ie.globalAlpha=.3),ge.remotePointerButton&&ge.remotePointerButton[ut]==="down"&&(Ie.beginPath(),Ie.arc(Pt,Gt,15,0,2*Math.PI,!1),Ie.lineWidth=3,Ie.strokeStyle="#ffffff88",Ie.stroke(),Ie.closePath(),Ie.beginPath(),Ie.arc(Pt,Gt,15,0,2*Math.PI,!1),Ie.lineWidth=1,Ie.strokeStyle=ur,Ie.stroke(),Ie.closePath()),Ie.fillStyle=h.white,Ie.strokeStyle=h.white,Ie.lineWidth=6,Ie.lineJoin="round",Ie.beginPath(),Ie.moveTo(Pt,Gt),Ie.lineTo(Pt+0,Gt+14),Ie.lineTo(Pt+4,Gt+9),Ie.lineTo(Pt+11,Gt+8),Ie.closePath(),Ie.stroke(),Ie.fill(),Ie.fillStyle=ur,Ie.strokeStyle=ur,Ie.lineWidth=2,Ie.lineJoin="round",Ie.beginPath(),Tr?(Ie.moveTo(Pt-1,Gt-1),Ie.lineTo(Pt-1,Gt+15),Ie.lineTo(Pt+5,Gt+10),Ie.lineTo(Pt+12,Gt+9),Ie.closePath(),Ie.fill()):(Ie.moveTo(Pt,Gt),Ie.lineTo(Pt+0,Gt+14),Ie.lineTo(Pt+4,Gt+9),Ie.lineTo(Pt+11,Gt+8),Ie.closePath(),Ie.fill(),Ie.stroke());var ot=ge.remotePointerUsernames[ut]||"";if(!Ct&&ot){Ie.font="600 12px sans-serif";var Rt=Pt+5.5,_t=Gt+14+2,At=Ie.measureText(ot),br=At.actualBoundingBoxDescent+At.actualBoundingBoxAscent,xr=Math.max(br,12),jr=Rt-1,Ar=_t-1,fr=At.width+2+10+2,dt=xr+2+6+2;Ie.roundRect?(Ie.beginPath(),Ie.roundRect(jr,Ar,fr,dt,8),Ie.fillStyle=ur,Ie.fill(),Ie.strokeStyle=h.white,Ie.stroke()):I(Ie,jr,Ar,fr,dt,8,h.white),Ie.fillStyle=h.black,Ie.fillText(ot,Rt+5+1,_t+3+At.actualBoundingBoxAscent+Math.floor((xr-br)/2)+2)}Ie.restore(),Ie.closePath()}return ge.renderScrollbars&&(Ye=(0,v.tJ)(B,Ze,Be,ee),Ie.save(),Ie.fillStyle=v.w1,Ie.strokeStyle="rgba(255,255,255,0.8)",[Ye.horizontal,Ye.vertical].forEach(function(ft){ft&&I(Ie,ft.x,ft.y,ft.width,ft.height,v.nn/2)}),Ie.restore()),{scrollBars:Ye,atLeastOneVisibleElement:A.length>0,elements:B}},ce=function(o){var i=o.canvas,p=o.rc,B=o.elements,A=o.visibleElements,X=o.scale,Y=o.appState,ee=o.renderConfig;if(i!==null){var ge=ee.renderGrid,be=ge===void 0||ge,Re=ee.isExporting,Ze=G(i,X),Be=(0,y.Z)(Ze,2),Ie=Be[0],Ke=Be[1],Ye=ie({canvas:i,scale:X,normalizedWidth:Ie,normalizedHeight:Ke,theme:Y.theme,isExporting:Re,viewBackgroundColor:Y.viewBackgroundColor});Ye.scale(Y.zoom.value,Y.zoom.value),be&&Y.gridSize&&function(ue,ve,De,He,Je,qe,st){var ht;(function(at){at.Bold="#cccccc",at.Regular="#e5e5e5"})(ht||(ht={}));var et=-Math.round(Je.value/ve)*ve+De%ve,wt=-Math.round(Je.value/ve)*ve+He%ve,Lt=Math.min(1/Je.value,1),St=1/Je.value,yt=[3*Lt,St+(Lt+St)];ue.save(),ue.lineWidth=Lt;for(var Wt=et;Wt<et+qe+2*ve;Wt+=ve){var Ft=Math.round(Wt-De)%(5*ve)==0;ue.beginPath(),ue.setLineDash(Ft?[]:yt),ue.strokeStyle=Ft?ht.Bold:ht.Regular,ue.moveTo(Wt,wt-ve),ue.lineTo(Wt,wt+st+2*ve),ue.stroke()}for(var Ve=wt;Ve<wt+st+2*ve;Ve+=ve){var bt=Math.round(Ve-He)%(5*ve)==0;ue.beginPath(),ue.setLineDash(bt?[]:yt),ue.strokeStyle=bt?ht.Bold:ht.Regular,ue.moveTo(et-ve,Ve),ue.lineTo(et+qe+2*ve,Ve),ue.stroke()}ue.restore()}(Ye,Y.gridSize,Y.scrollX,Y.scrollY,Y.zoom,Ie/Y.zoom.value,Ke/Y.zoom.value);var tt=new Set;A.forEach(function(ue){ue.groupIds.length>0&&Y.frameToHighlight&&Y.selectedElementIds[ue.id]&&((0,O.cO)(ue,Y.frameToHighlight)||ue.groupIds.find(function(ve){return tt.has(ve)}))&&ue.groupIds.forEach(function(ve){return tt.add(ve)})}),A.filter(function(ue){return!(0,g.uU)(ue)}).forEach(function(ue){try{var ve;if((ue.frameId||!((ve=Y.frameToHighlight)===null||ve===void 0)&&ve.id)&&Y.frameRendering.enabled&&Y.frameRendering.clip){Ye.save();var De=(0,O.cH)(ue,Y);De&&(0,O.Qs)(ue,B,Y)&&N(De,Ye,0,Y),(0,n.lw)(ue,p,Ye,ee,Y),Ye.restore()}else(0,n.lw)(ue,p,Ye,ee,Y);Re||ke(ue,Ye,Y)}catch(He){console.error(He)}}),A.filter(function(ue){return(0,g.uU)(ue)}).forEach(function(ue){try{var ve,De=function(){if((0,n.lw)(ue,p,Ye,ee,Y),(0,_.gs)(ue)&&(Re||!ue.validated)&&ue.width&&ue.height){var Je=(0,g.g0)(ue);(0,n.lw)(Je,p,Ye,ee,Y)}Re||ke(ue,Ye,Y)};if((ue.frameId||!((ve=Y.frameToHighlight)===null||ve===void 0)&&ve.id)&&Y.frameRendering.enabled&&Y.frameRendering.clip){Ye.save();var He=(0,O.cH)(ue,Y);He&&(0,O.Qs)(ue,B,Y)&&N(He,Ye,0,Y),De(),Ye.restore()}else De()}catch(Je){console.error(Je)}})}},te=(0,U.hR)(function(o){var i,p=V(o);(i=o.callback)===null||i===void 0||i.call(o,p)},{trailing:!0}),L=function(o,i){if(!i){var p=V(o);return o.callback(p),p}te(o)},re=(0,U.hR)(function(o){ce(o)},{trailing:!0}),me=function(o,i){i?re(o):ce(o)},Ce=function(){te.cancel(),re.cancel()},We=function(o,i,p,B,A){Object.keys(B).forEach(function(X){var Y=B[X];if(Y!==void 0){var ee=(0,y.Z)(Y,4),ge=ee[0],be=ee[1],Re=ee[2],Ze=ee[3];o.save(),o.lineWidth=1/p.zoom.value,i.selectionColor&&(o.strokeStyle=i.selectionColor),X==="rotation"?z(o,ge+Re/2,be+Ze/2,Re/2):o.roundRect?(o.beginPath(),o.roundRect(ge,be,Re,Ze,2/p.zoom.value),o.fill(),o.stroke()):m(o,ge,be,Re,Ze,ge+Re/2,be+Ze/2,A,!0),o.restore()}})},Te=function(o,i,p){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2*c,A=p.angle,X=p.elementX1,Y=p.elementY1,ee=p.elementX2,ge=p.elementY2,be=p.selectionColors,Re=p.cx,Ze=p.cy,Be=p.dashed,Ie=p.activeEmbeddable,Ke=ee-X,Ye=ge-Y,tt=B/i.zoom.value,ue=8/i.zoom.value,ve=4/i.zoom.value;o.save(),o.translate(i.scrollX,i.scrollY),o.lineWidth=(Ie?4:1)/i.zoom.value;for(var De=be.length,He=0;He<De;++He)o.strokeStyle=be[He],Be&&o.setLineDash([ue,ve+(ue+ve)*(De-1)]),o.lineDashOffset=(ue+ve)*He,m(o,X-tt,Y-tt,Ke+2*tt,Ye+2*tt,Re,Ze,A);o.restore()},we=function(o,i,p){var B=Array.isArray(p)?J:xe;o.save(),o.translate(i.scrollX,i.scrollY),B(o,p),o.restore()},xe=function(o,i){var p=(0,S.qf)(i),B=(0,y.Z)(p,4),A=B[0],X=B[1],Y=B[2]-A,ee=B[3]-X,ge=(0,W.fb)(i,Y,ee);o.strokeStyle="rgba(0,0,0,.05)",o.lineWidth=ge-4;var be=2+ge/2;switch(i.type){case"rectangle":case"text":case"image":case"embeddable":case"frame":m(o,A-be,X-be,Y+2*be,ee+2*be,A+Y/2,X+ee/2,i.angle);break;case"diamond":var Re=Math.hypot(Y,ee);(function(Ze,Be,Ie,Ke,Ye,tt){Ze.save(),Ze.translate(Ke,Ye),Ze.rotate(tt),Ze.beginPath(),Ze.moveTo(0,Ie/2),Ze.lineTo(Be/2,0),Ze.lineTo(0,-Ie/2),Ze.lineTo(-Be/2,0),Ze.closePath(),Ze.stroke(),Ze.restore()})(o,Y+2*(be*Re/ee),ee+2*(be*Re/Y),A+Y/2,X+ee/2,i.angle);break;case"ellipse":(function(Ze,Be,Ie,Ke,Ye,tt){Ze.beginPath(),Ze.ellipse(Ke,Ye,Be/2,Ie/2,tt,0,2*Math.PI),Ze.stroke()})(o,Y+2*be,ee+2*be,A+Y/2,X+ee/2,i.angle)}},_e=function(o,i,p){var B=(0,S.qf)(p),A=(0,y.Z)(B,4),X=A[0],Y=A[1],ee=A[2]-X,ge=A[3]-Y;o.strokeStyle="rgb(0,118,255)",o.lineWidth=le.iG.strokeWidth/i.zoom.value,o.save(),o.translate(i.scrollX,i.scrollY),m(o,X,Y,ee,ge,X+ee/2,Y+ge/2,p.angle,!1,le.iG.radius/i.zoom.value),o.restore()},Oe=function(o,i,p){var B=p.filter(function(Y){return Y.groupIds.length===0}),A=p.filter(function(Y){return Y.groupIds.length>0}),X=function(Y){var ee=(0,S.KP)(Y),ge=(0,y.Z)(ee,4),be=ge[0],Re=ge[1],Ze=ge[2],Be=ge[3];return{angle:0,elementX1:be,elementX2:Ze,elementY1:Re,elementY2:Be,selectionColors:["rgb(0,118,255)"],dashed:!1,cx:be+(Ze-be)/2,cy:Re+(Be-Re)/2,activeEmbeddable:!1}};Object.entries((0,H.yR)(A,i)).filter(function(Y){var ee=(0,y.Z)(Y,2);return ee[0],ee[1]}).map(function(Y){var ee=(0,y.Z)(Y,2),ge=ee[0];return ee[1],ge}).map(function(Y){return function(ee){var ge=(0,H.Fb)(p,ee);return X(ge)}(Y)}).concat(B.map(function(Y){return X([Y])})).forEach(function(Y){return Te(o,i,Y)})},J=function(o,i){var p=(0,y.Z)(i,3),B=p[0],A=p[1],X=p[2],Y=(0,W.fb)(X,X.width,X.height);o.strokeStyle="rgba(0,0,0,0)",o.fillStyle="rgba(0,0,0,.05)",(A==="both"?[0,-1]:A==="start"?[0]:[-1]).forEach(function(ee){var ge=Z._.getPointAtIndexGlobalCoordinates(B,ee),be=(0,y.Z)(ge,2),Re=be[0],Ze=be[1];z(o,Re,Ze,Y)})},ke=function(o,i,p){if(o.link&&!p.selectedElementIds[o.id]){var B=(0,S.qf)(o),A=(0,y.Z)(B,4),X=A[0],Y=A[1],ee=A[2],ge=A[3],be=(0,de.sw)([X,Y,ee,ge],o.angle,p),Re=(0,y.Z)(be,4),Ze=Re[0],Be=Re[1],Ie=Re[2],Ke=Re[3],Ye=Ze+Ie/2,tt=Be+Ke/2;if(i.save(),i.translate(p.scrollX+Ye,p.scrollY+tt),i.rotate(o.angle),a&&a.zoom===p.zoom.value)i.drawImage(a,Ze-Ye,Be-tt,Ie,Ke);else{(a=document.createElement("canvas")).zoom=p.zoom.value,a.width=Ie*window.devicePixelRatio*p.zoom.value,a.height=Ke*window.devicePixelRatio*p.zoom.value;var ue=a.getContext("2d");ue.scale(window.devicePixelRatio*p.zoom.value,window.devicePixelRatio*p.zoom.value),ue.fillStyle="#fff",ue.fillRect(0,0,Ie,Ke),ue.drawImage(de.rj,0,0,Ie,Ke),ue.restore(),i.drawImage(a,Ze-Ye,Be-tt,Ie,Ke)}i.restore()}},q=function(o,i,p,B,A){var X=A.offsetX,Y=X===void 0?0:X,ee=A.offsetY,ge=ee===void 0?0:ee,be=A.exportWithDarkMode,Re=A.renderEmbeddables,Ze=A.frameRendering;if(p){var Be={exportWithDarkMode:be,renderEmbeddables:Re,frameRendering:Ze};o.filter(function(Ie){return!(0,g.uU)(Ie)}).forEach(function(Ie){if(!Ie.isDeleted)try{(0,n.Rg)(Ie,i,p,B,Ie.x+Y,Ie.y+ge,Be)}catch(Ke){console.error(Ke)}}),o.filter(function(Ie){return(0,_.gs)(Ie)}).forEach(function(Ie){if(!Ie.isDeleted)try{(0,n.Rg)(Ie,i,p,B,Ie.x+Y,Ie.y+ge,Be)}catch(Ke){console.error(Ke)}})}}},457:function(Se,Q,e){var D=e(1930),E=e(8821),y=e(5169),h=e(7651),S=e(4183),I=e(6264),v=e(4643),n=function(Z){return typeof Z=="string"},M=function(){function Z(){var H=this;(0,E.Z)(this,Z),this.callbacks=new Set,this.nonDeletedElements=[],this.elements=[],this.nonDeletedFrames=[],this.frames=[],this.elementsMap=new Map,this.selectedElementsCache={selectedElementIds:null,elements:null,cache:new Map},this.addNewElement=function(W){W.frameId?H.insertElementAtIndex(W,H.getElementIndex(W.frameId)):H.replaceAllElements([].concat((0,D.Z)(H.elements),[W]))}}return(0,y.Z)(Z,[{key:"getElementsIncludingDeleted",value:function(){return this.elements}},{key:"getNonDeletedElements",value:function(){return this.nonDeletedElements}},{key:"getFramesIncludingDeleted",value:function(){return this.frames}},{key:"getSelectedElements",value:function(H){var W=function(de){for(var he="",pe=0,oe=["includeBoundTextElement","includeElementsInFrames"];pe<oe.length;pe++){var P=oe[pe];he+="".concat(P,":").concat(de[P]?"1":"0")}return he}(H),u=H?.elements||this.nonDeletedElements;if(this.selectedElementsCache.elements===u&&this.selectedElementsCache.selectedElementIds===H.selectedElementIds){var U=this.selectedElementsCache.cache.get(W);if(U)return U}else H?.elements==null&&this.selectedElementsCache.cache.clear();var le=(0,I.eD)(u,{selectedElementIds:H.selectedElementIds},H);return H?.elements==null&&(this.selectedElementsCache.selectedElementIds=H.selectedElementIds,this.selectedElementsCache.elements=this.nonDeletedElements,this.selectedElementsCache.cache.set(W,le)),le}},{key:"getNonDeletedFrames",value:function(){return this.nonDeletedFrames}},{key:"getElement",value:function(H){return this.elementsMap.get(H)||null}},{key:"getVersionNonce",value:function(){return this.versionNonce}},{key:"getNonDeletedElement",value:function(H){var W=this.getElement(H);return W&&(0,h.qP)(W)?W:null}},{key:"mapElements",value:function(H){var W=!1,u=this.elements.map(function(U){var le=H(U);return le!==U&&(W=!0),le});return W&&this.replaceAllElements(u),W}},{key:"replaceAllElements",value:function(H){var W=this;this.elements=H;var u=[];this.elementsMap.clear(),H.forEach(function(U){(0,S.He)(U)&&u.push(U),W.elementsMap.set(U.id,U),Z.mapElementToScene(U,W)}),this.nonDeletedElements=(0,h.Lm)(this.elements),this.frames=u,this.nonDeletedFrames=(0,h.Xf)(this.frames),this.informMutation()}},{key:"informMutation",value:function(){this.versionNonce=(0,v.LU)();for(var H=0,W=Array.from(this.callbacks);H<W.length;H++)(0,W[H])()}},{key:"addCallback",value:function(H){var W=this;if(this.callbacks.has(H))throw new Error;return this.callbacks.add(H),function(){if(!W.callbacks.has(H))throw new Error;W.callbacks.delete(H)}}},{key:"destroy",value:function(){var H=this;this.nonDeletedElements=[],this.elements=[],this.nonDeletedFrames=[],this.frames=[],this.elementsMap.clear(),this.selectedElementsCache.selectedElementIds=null,this.selectedElementsCache.elements=null,this.selectedElementsCache.cache.clear(),Z.sceneMapById.forEach(function(W,u){W===H&&Z.sceneMapById.delete(u)}),this.callbacks.clear()}},{key:"insertElementAtIndex",value:function(H,W){if(!Number.isFinite(W)||W<0)throw new Error("insertElementAtIndex can only be called with index >= 0");var u=[].concat((0,D.Z)(this.elements.slice(0,W)),[H],(0,D.Z)(this.elements.slice(W)));this.replaceAllElements(u)}},{key:"insertElementsAtIndex",value:function(H,W){if(!Number.isFinite(W)||W<0)throw new Error("insertElementAtIndex can only be called with index >= 0");var u=[].concat((0,D.Z)(this.elements.slice(0,W)),(0,D.Z)(H),(0,D.Z)(this.elements.slice(W)));this.replaceAllElements(u)}},{key:"getElementIndex",value:function(H){return this.elements.findIndex(function(W){return W.id===H})}}],[{key:"mapElementToScene",value:function(H,W){var u=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];if(n(H)){if(!u)return;this.sceneMapById.set(H,W)}else this.sceneMapByElement.set(H,W),u||this.sceneMapById.set(H.id,W)}},{key:"getScene",value:function(H){return n(H)?this.sceneMapById.get(H)||null:this.sceneMapByElement.get(H)||null}}]),Z}();M.sceneMapByElement=new WeakMap,M.sceneMapById=new Map,Q.Z=M},6049:function(Se,Q,e){e.d(Q,{Z:function(){return he},i:function(){return oe}});var D=e(1930),E=e(2577),y=e(7169),h=e(7651),S=e(2361),I=e(9660),v=e(9827),n=e(1493),M=e(9937),Z=e(4183),H=e(1648);function W(P,$){var b=Object.keys(P);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(P);$&&(R=R.filter(function(_){return Object.getOwnPropertyDescriptor(P,_).enumerable})),b.push.apply(b,R)}return b}function u(P){for(var $=1;$<arguments.length;$++){var b=arguments[$]!=null?arguments[$]:{};$%2?W(Object(b),!0).forEach(function(R){(0,y.Z)(P,R,b[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(b)):W(Object(b)).forEach(function(R){Object.defineProperty(P,R,Object.getOwnPropertyDescriptor(b,R))})}return P}var U=function(P){return[8,8+P]},le=function(P){return[1.5,6+P]};function de(P){var $=P.roughness,b=Math.max(P.width,P.height),R=Math.min(P.width,P.height);return R>=20&&b>=50||R>=15&&P.roundness&&(0,H.sh)(P.type)||(0,Z.bt)(P)&&b>=50?$:Math.min($/(b<10?3:2),2.5)}var he=function(P){var $=arguments.length>1&&arguments[1]!==void 0&&arguments[1],b={seed:P.seed,strokeLineDash:P.strokeStyle==="dashed"?U(P.strokeWidth):P.strokeStyle==="dotted"?le(P.strokeWidth):void 0,disableMultiStroke:P.strokeStyle!=="solid",strokeWidth:P.strokeStyle!=="solid"?P.strokeWidth+.5:P.strokeWidth,fillWeight:P.strokeWidth/2,hachureGap:4*P.strokeWidth,roughness:de(P),stroke:P.strokeColor,preserveVertices:$||P.roughness<M.$h.cartoonist};switch(P.type){case"rectangle":case"embeddable":case"diamond":case"ellipse":return b.fillStyle=P.fillStyle,b.fill=(0,v.Qm)(P.backgroundColor)?void 0:P.backgroundColor,P.type==="ellipse"&&(b.curveFitting=1),b;case"line":case"freedraw":return(0,S.g6)(P.points)&&(b.fillStyle=P.fillStyle,b.fill=P.backgroundColor==="transparent"?void 0:P.backgroundColor),b;case"arrow":return b;default:throw new Error("Unimplemented type ".concat(P.type))}},pe=function(P,$){return P.type==="embeddable"&&($||!P.validated)&&(0,v.Qm)(P.backgroundColor)&&(0,v.Qm)(P.strokeColor)?u(u({},P),{},{roughness:0,backgroundColor:"#d3d3d3",fillStyle:"solid"}):P},oe=function(P,$){var b=arguments.length>2&&arguments[2]!==void 0&&arguments[2];switch(P.type){case"rectangle":case"embeddable":var R;if(P.roundness){var _=P.width,g=P.height,O=(0,S.yW)(Math.min(_,g),P);R=$.path("M ".concat(O," 0 L ").concat(_-O," 0 Q ").concat(_," 0, ").concat(_," ").concat(O," L ").concat(_," ").concat(g-O," Q ").concat(_," ").concat(g,", ").concat(_-O," ").concat(g," L ").concat(O," ").concat(g," Q 0 ").concat(g,", 0 ").concat(g-O," L 0 ").concat(O," Q 0 0, ").concat(O," 0"),he(pe(P,b),!0))}else R=$.rectangle(0,0,P.width,P.height,he(pe(P,b),!1));return R;case"diamond":var s,f=(0,h.UC)(P),t=(0,E.Z)(f,8),w=t[0],l=t[1],a=t[2],c=t[3],m=t[4],z=t[5],j=t[6],k=t[7];if(P.roundness){var x=(0,S.yW)(Math.abs(w-j),P),N=(0,S.yW)(Math.abs(c-l),P);s=$.path("M ".concat(w+x," ").concat(l+N," L ").concat(a-x," ").concat(c-N,` + C `).concat(a," ").concat(c,", ").concat(a," ").concat(c,", ").concat(a-x," ").concat(c+N,` + L `).concat(m+x," ").concat(z-N,` + C `).concat(m," ").concat(z,", ").concat(m," ").concat(z,", ").concat(m-x," ").concat(z-N,` + L `).concat(j+x," ").concat(k+N,` + C `).concat(j," ").concat(k,", ").concat(j," ").concat(k,", ").concat(j+x," ").concat(k-N,` + L `).concat(w-x," ").concat(l+N,` + C `).concat(w," ").concat(l,", ").concat(w," ").concat(l,", ").concat(w+x," ").concat(l+N),he(P,!0))}else s=$.polygon([[w,l],[a,c],[m,z],[j,k]],he(P));return s;case"ellipse":var G=$.ellipse(P.width/2,P.height/2,P.width,P.height,he(P));return G;case"line":case"arrow":var ie,V=he(P),ce=P.points.length?P.points:[[0,0]];if(ie=P.roundness?[$.curve(ce,V)]:V.fill?[$.polygon(ce,V)]:[$.linearPath(ce,V)],P.type==="arrow"){var te=P.startArrowhead,L=te===void 0?null:te,re=P.endArrowhead,me=re===void 0?"arrow":re,Ce=function(ke,q,o,i){var p=(0,h.Y5)(ke,q,o,i);if(p===null)return[];if(i==="dot"){var B=(0,E.Z)(p,3),A=B[0],X=B[1],Y=B[2];return[$.circle(A,X,Y,u(u({},V),{},{fill:ke.strokeColor,fillStyle:"solid",stroke:"none"}))]}if(i==="triangle"){var ee=(0,E.Z)(p,6),ge=ee[0],be=ee[1],Re=ee[2],Ze=ee[3],Be=ee[4],Ie=ee[5];return delete V.strokeLineDash,[$.polygon([[ge,be],[Re,Ze],[Be,Ie],[ge,be]],u(u({},V),{},{fill:ke.strokeColor,fillStyle:"solid"}))]}var Ke=(0,E.Z)(p,6),Ye=Ke[0],tt=Ke[1],ue=Ke[2],ve=Ke[3],De=Ke[4],He=Ke[5];if(ke.strokeStyle==="dotted"){var Je=le(ke.strokeWidth-1);V.strokeLineDash=[Je[0],Je[1]-1]}else delete V.strokeLineDash;return[$.line(ue,ve,Ye,tt,V),$.line(De,He,Ye,tt,V)]};if(L!==null){var We,Te=Ce(P,ie,"start",L);(We=ie).push.apply(We,(0,D.Z)(Te))}if(me!==null){var we,xe=Ce(P,ie,"end",me);(we=ie).push.apply(we,(0,D.Z)(xe))}}return ie;case"freedraw":var _e;if((0,I.Lc)(P),(0,S.g6)(P.points)){var Oe=(0,n.og)(P.points,.75);_e=$.curve(Oe,u(u({},he(P)),{},{stroke:"none"}))}else _e=null;return _e;case"frame":case"text":case"image":var J=null;return J;default:return(0,v.vE)(P,"generateElementShape(): Unimplemented type ".concat(P?.type)),null}}},2921:function(Se,Q,e){e.d(Q,{R:function(){return I}});var D=e(5169),E=e(8821),y=e(8128),h=e(9660),S=e(6049),I=(0,D.Z)(function v(){(0,E.Z)(this,v)});I.rg=new y.V,I.cache=new WeakMap,I.get=function(v){return I.cache.get(v)},I.set=function(v,n){return I.cache.set(v,n)},I.delete=function(v){return I.cache.delete(v)},I.destroy=function(){I.cache=new WeakMap},I.generateElementShape=function(v){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1],M=n?void 0:I.get(v);if(M!==void 0)return M;h.Xx.delete(v);var Z=(0,S.i)(v,I.rg,n);return I.cache.set(v,Z),Z}},1648:function(Se,Q,e){e.d(Q,{$b:function(){return E},CJ:function(){return M},M9:function(){return S},PD:function(){return y},QG:function(){return n},Un:function(){return v},Zd:function(){return h},sh:function(){return I}});var D=e(4183),E=function(Z){return Z==="rectangle"||Z==="embeddable"||Z==="ellipse"||Z==="diamond"||Z==="line"||Z==="freedraw"},y=function(Z){return Z!=="image"&&Z!=="frame"},h=function(Z){return Z==="rectangle"||Z==="embeddable"||Z==="ellipse"||Z==="diamond"||Z==="freedraw"||Z==="arrow"||Z==="line"},S=function(Z){return Z==="rectangle"||Z==="embeddable"||Z==="ellipse"||Z==="diamond"||Z==="arrow"||Z==="line"},I=function(Z){return Z==="rectangle"||Z==="embeddable"||Z==="arrow"||Z==="line"||Z==="diamond"},v=function(Z){return Z==="arrow"},n=function(Z,H){for(var W=null,u=Z.length-1;u>=0;--u){var U=Z[u];if(!U.isDeleted&&H(U)){W=U;break}}return W},M=function(Z,H){var W=[];return Z.filter(function(u){return!(u.isDeleted||!H(u))&&(!(0,D.gs)(u)||(W.push(u),!1))}).concat(W)}},3668:function(Se,Q,e){e.d(Q,{$D:function(){return f},Cg:function(){return w},NL:function(){return s}});var D=e(7169),E=e(2577),y=e(8950),h=e(2975),S=e.n(h),I=e(9845),v=e(4949),n=e(7766),M=e(9827),Z=e(9937),H=e(6853),W=e(4419),u=e(4178),U=e(6013),le=e(4682),de=e(7651),he=e(583),pe=e(457);function oe(l,a){var c=Object.keys(l);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(l);a&&(m=m.filter(function(z){return Object.getOwnPropertyDescriptor(l,z).enumerable})),c.push.apply(c,m)}return c}function P(l){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?arguments[a]:{};a%2?oe(Object(c),!0).forEach(function(m){(0,D.Z)(l,m,c[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):oe(Object(c)).forEach(function(m){Object.defineProperty(l,m,Object.getOwnPropertyDescriptor(c,m))})}return l}function $(l,a){var c=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!c){if(Array.isArray(l)||(c=function(N,G){if(N){if(typeof N=="string")return b(N,G);var ie=Object.prototype.toString.call(N).slice(8,-1);if(ie==="Object"&&N.constructor&&(ie=N.constructor.name),ie==="Map"||ie==="Set")return Array.from(N);if(ie==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie))return b(N,G)}}(l))||a&&l&&typeof l.length=="number"){c&&(l=c);var m=0,z=function(){};return{s:z,n:function(){return m>=l.length?{done:!0}:{done:!1,value:l[m++]}},e:function(N){throw N},f:z}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j,k=!0,x=!1;return{s:function(){c=c.call(l)},n:function(){var N=c.next();return k=N.done,N},e:function(N){x=!0,j=N},f:function(){try{k||c.return==null||c.return()}finally{if(x)throw j}}}}function b(l,a){(a==null||a>l.length)&&(a=l.length);for(var c=0,m=new Array(a);c<a;c++)m[c]=l[c];return m}var R=function(l){var a=new pe.Z;return a.replaceAllElements((0,M.xU)(l),!1),a},_=function(l,a){if(l.width<=a)return l;var c=document.createElement("canvas").getContext("2d");c.font=(0,M.mO)({fontFamily:l.fontFamily,fontSize:l.fontSize});var m=l.text;if(c.measureText(m).width>a)for(var z=m.length;z>0;z--){var j="".concat(m.slice(0,z),"...");if(c.measureText(j).width<=a){m=j;break}}return(0,he.BE)(l,{text:m,width:a})},g=function(l,a){return a=a||(0,H.im)().frameRendering,{enabled:!!l||a.enabled,outline:!l&&a.outline,name:!l&&a.name,clip:!!l||a.clip}},O=function(l){var a=l.elements,c=l.exportingFrame,m=l.frameRendering,z=l.exportWithDarkMode;return c?(0,U.Xs)({elements:a,bounds:c,type:"overlap"}):m.enabled&&m.name?function(j,k){var x,N=[],G=0,ie=$(j);try{for(ie.s();!(x=ie.n()).done;){var V=x.value;if((0,de.He)(V)){G++;var ce=(0,de.VL)({x:V.x,y:V.y-Z.iG.nameOffsetY,fontFamily:Z.ut.Assistant,fontSize:Z.iG.nameFontSize,lineHeight:Z.iG.nameLineHeight,strokeColor:k.exportWithDarkMode?Z.iG.nameColorDarkTheme:Z.iG.nameColorLightTheme,text:V.name||"Frame ".concat(G)});ce.y-=ce.height,ce=_(ce,V.width),N.push(ce)}N.push(V)}}catch(te){ie.e(te)}finally{ie.f()}return N}(a,{exportWithDarkMode:z}):a},s=function(){var l=(0,y.Z)(S().mark(function a(c,m,z,j){var k,x,N,G,ie,V,ce,te,L,re,me,Ce,We,Te,we,xe,_e,Oe,J,ke,q,o,i,p=arguments;return S().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return x=j.exportBackground,N=j.exportPadding,G=N===void 0?Z.qy:N,ie=j.viewBackgroundColor,V=j.exportingFrame,ce=p.length>4&&p[4]!==void 0?p[4]:function(A,X){var Y=document.createElement("canvas");return Y.width=A*m.exportScale,Y.height=X*m.exportScale,{canvas:Y,scale:m.exportScale}},te=R(c),c=te.getNonDeletedElements(),L=g(V??null,(k=m.frameRendering)!==null&&k!==void 0?k:null),re=O({elements:c,exportingFrame:V,exportWithDarkMode:m.exportWithDarkMode,frameRendering:L}),V&&(G=0),me=t(V?[V]:(0,le._h)(re),G),Ce=(0,E.Z)(me,4),We=Ce[0],Te=Ce[1],we=Ce[2],xe=Ce[3],_e=ce(we,xe),Oe=_e.canvas,J=_e.scale,ke=J===void 0?1:J,q=(0,H.im)(),B.next=12,(0,u.Xx)({imageCache:new Map,fileIds:(0,u.oA)(re).map(function(A){return A.fileId}),files:z});case 12:return o=B.sent,i=o.imageCache,(0,n.AW)({canvas:Oe,rc:I.Z.canvas(Oe),elements:re,visibleElements:re,scale:ke,appState:P(P({},m),{},{frameRendering:L,viewBackgroundColor:x?ie:null,scrollX:-We+G,scrollY:-Te+G,zoom:q.zoom,shouldCacheIgnoreZoom:!1,theme:m.exportWithDarkMode?"dark":"light"}),renderConfig:{imageCache:i,renderGrid:!1,isExporting:!0}}),te.destroy(),B.abrupt("return",Oe);case 17:case"end":return B.stop()}},a)}));return function(a,c,m,z){return l.apply(this,arguments)}}(),f=function(){var l=(0,y.Z)(S().mark(function a(c,m,z,j){var k,x,N,G,ie,V,ce,te,L,re,me,Ce,We,Te,we,xe,_e,Oe,J,ke,q,o,i,p,B,A,X,Y,ee,ge,be,Re,Ze,Be,Ie,Ke,Ye,tt,ue,ve,De,He,Je;return S().wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:if(G=R(c),c=G.getNonDeletedElements(),ie=g((k=j?.exportingFrame)!==null&&k!==void 0?k:null,(x=m.frameRendering)!==null&&x!==void 0?x:null),V=m.exportPadding,ce=V===void 0?Z.qy:V,te=m.exportWithDarkMode,L=te!==void 0&&te,re=m.viewBackgroundColor,me=m.exportScale,Ce=me===void 0?1:me,We=m.exportEmbedScene,Te=(j||{}).exportingFrame,xe=O({elements:c,exportingFrame:we=Te===void 0?null:Te,exportWithDarkMode:L,frameRendering:ie}),we&&(ce=0),_e="",!We){qe.next=20;break}return qe.prev=9,qe.next=12,Promise.resolve().then(e.bind(e,250));case 12:return qe.next=14,qe.sent.encodeSvgMetadata({text:(0,W.I_)(c,m,z||{},"local")});case 14:_e=qe.sent,qe.next=20;break;case 17:qe.prev=17,qe.t0=qe.catch(9),console.error(qe.t0);case 20:Oe=t(we?[we]:(0,le._h)(xe),ce),J=(0,E.Z)(Oe,4),ke=J[0],q=J[1],o=J[2],i=J[3],(p=document.createElementNS(Z.hR,"svg")).setAttribute("version","1.1"),p.setAttribute("xmlns",Z.hR),p.setAttribute("viewBox","0 0 ".concat(o," ").concat(i)),p.setAttribute("width","".concat(o*Ce)),p.setAttribute("height","".concat(i*Ce)),L&&p.setAttribute("filter",Z.ZF),B="https://excalidraw.com/",B=window.EXCALIDRAW_ASSET_PATH||"https://unpkg.com/".concat("@excalidraw/excalidraw","@").concat({VITE_APP_BACKEND_V2_GET_URL:"https://json.excalidraw.com/api/v2/",VITE_APP_BACKEND_V2_POST_URL:"https://json.excalidraw.com/api/v2/post/",VITE_APP_LIBRARY_URL:"https://libraries.excalidraw.com",VITE_APP_LIBRARY_BACKEND:"https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries",VITE_APP_PORTAL_URL:"https://portal.excalidraw.com",VITE_APP_PLUS_LP:"https://plus.excalidraw.com",VITE_APP_PLUS_APP:"https://app.excalidraw.com",VITE_APP_WS_SERVER_URL:"",VITE_APP_FIREBASE_CONFIG:'{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}',VITE_APP_DISABLE_TRACKING:"",VITE_PKG_NAME:"@excalidraw/excalidraw",VITE_PKG_VERSION:"0.17.0",VITE_IS_EXCALIDRAW_NPM_PACKAGE:!0}.PKG_VERSION),(A=B)!==null&&A!==void 0&&A.startsWith("/")&&(B=B.replace("/","".concat(window.location.origin,"/"))),B="".concat(B,"/dist/excalidraw-assets/"),X=-ke+ce,Y=-q+ce,ee=(0,le.wO)(c),ge="",be=$(ee);try{for(be.s();!(Re=be.n()).done;)Ze=Re.value,Be=(0,v.qf)(Ze),Ie=(0,E.Z)(Be,4),Ke=Ie[0],Ye=Ie[1],tt=Ie[2],ue=Ie[3],ve=(tt-Ke)/2-(Ze.x-Ke),De=(ue-Ye)/2-(Ze.y-Ye),ge+="<clipPath id=".concat(Ze.id,`> + <rect transform="translate(`).concat(Ze.x+X," ").concat(Ze.y+Y,") rotate(").concat(Ze.angle," ").concat(ve," ").concat(De,`)" + width="`).concat(Ze.width,`" + height="`).concat(Ze.height,`" + > + </rect> + </clipPath>`)}catch(st){be.e(st)}finally{be.f()}return p.innerHTML=` + `.concat("<!-- svg-source:excalidraw -->",` + `).concat(_e,` + <defs> + <style class="style-fonts"> + @font-face { + font-family: "Virgil"; + src: url("`).concat(B,`Virgil.woff2"); + } + @font-face { + font-family: "Cascadia"; + src: url("`).concat(B,`Cascadia.woff2"); + } + @font-face { + font-family: "Assistant"; + src: url("`).concat(B,`Assistant-Regular.woff2"); + } + </style> + `).concat(ge,` + </defs> + `),m.exportBackground&&re&&((He=p.ownerDocument.createElementNS(Z.hR,"rect")).setAttribute("x","0"),He.setAttribute("y","0"),He.setAttribute("width","".concat(o)),He.setAttribute("height","".concat(i)),He.setAttribute("fill",re),p.appendChild(He)),Je=I.Z.svg(p),(0,n.M_)(xe,Je,p,z||{},{offsetX:X,offsetY:Y,exportWithDarkMode:L,renderEmbeddables:(N=j?.renderEmbeddables)!==null&&N!==void 0&&N,frameRendering:ie}),G.destroy(),qe.abrupt("return",p);case 42:case"end":return qe.stop()}},a,null,[[9,17]])}));return function(a,c,m,z){return l.apply(this,arguments)}}(),t=function(l,a){var c=(0,v.KP)(l),m=(0,E.Z)(c,4),z=m[0],j=m[1],k=m[2],x=m[3];return[z,j,(0,M.TE)(z,k)+2*a,(0,M.TE)(j,x)+2*a]},w=function(l,a,c){var m=t(l,a).map(function(j){return Math.trunc(j*c)}),z=(0,E.Z)(m,4);return[z[2],z[3]]}},4105:function(Se,Q,e){e.d(Q,{$b:function(){return h.$b},CJ:function(){return h.CJ},M9:function(){return h.M9},N:function(){return E.N},PR:function(){return E.PR},QG:function(){return h.QG},Un:function(){return h.Un},W:function(){return y.W},Yp:function(){return E.Yp},Zd:function(){return h.Zd},Zs:function(){return E.Zs},_4:function(){return D._4},eD:function(){return E.eD},j:function(){return S.j},sh:function(){return h.sh}});var D=e(4726),E=e(6264),y=e(2382),h=e(1648),S=e(4116)},2382:function(Se,Q,e){e.d(Q,{W:function(){return S},s:function(){return h}});var D=e(2577),E=e(7651),y=e(9827),h=function(I){var v=I.scenePoint,n=I.viewportDimensions,M=I.zoom;return{scrollX:n.width/2/M.value-v.x,scrollY:n.height/2/M.value-v.y}},S=function(I,v){if(!(I=(0,E.n_)(I)).length)return{scrollX:0,scrollY:0};var n=(0,E.KP)(I),M=(0,D.Z)(n,4),Z=M[0],H=M[1],W=M[2],u=M[3];if(function(de,he){var pe=(0,D.Z)(he,4),oe=pe[0],P=pe[1],$=pe[2],b=pe[3],R=(0,y._i)({sceneX:oe,sceneY:P},de),_=R.x,g=R.y,O=(0,y._i)({sceneX:$,sceneY:b},de),s=O.x,f=O.y;return s-_>de.width||f-g>de.height}(v,[Z,H,W,u])){var U=(0,E.os)(I,(0,y.dE)({clientX:v.scrollX,clientY:v.scrollY},v)),le=(0,D.Z)(U,4);Z=le[0],H=le[1],W=le[2],u=le[3]}return h({scenePoint:{x:(Z+W)/2,y:(H+u)/2},viewportDimensions:{width:v.width,height:v.height},zoom:v.zoom})}},4726:function(Se,Q,e){e.d(Q,{WM:function(){return S},_4:function(){return M},nn:function(){return I},tJ:function(){return n},w1:function(){return v}});var D=e(2577),E=e(7651),y=e(9827),h=e(8227),S=4,I=6,v="rgba(0,0,0,0.3)",n=function(Z,H,W,u){if(Z.length===0)return{horizontal:null,vertical:null};var U=(0,E.KP)(Z),le=(0,D.Z)(U,4),de=le[0],he=le[1],pe=le[2],oe=le[3],P=H/u.zoom.value,$=W/u.zoom.value,b=H-P,R=W-$,_={top:parseInt((0,y.IH)("sat"))||0,bottom:parseInt((0,y.IH)("sab"))||0,left:parseInt((0,y.IH)("sal"))||0,right:parseInt((0,y.IH)("sar"))||0},g=(0,h.G3)().rtl,O=-u.scrollX+b/2+_.left,s=-u.scrollY+R/2+_.top,f=O+P-_.right,t=s+$-_.bottom,w=Math.min(de,O),l=Math.min(he,s),a=Math.max(pe,f),c=Math.max(oe,t);return{horizontal:O===w&&f===a?null:{x:Math.max(_.left,S)+(O-w)/(a-w)*H,y:W-I-Math.max(S,_.bottom),width:(f-O)/(a-w)*H-Math.max(2*S,_.left+_.right),height:I},vertical:s===l&&t===c?null:{x:g?Math.max(_.left,S):H-I-Math.max(_.right,S),y:(s-l)/(c-l)*W+Math.max(_.top,S),width:I,height:(t-s)/(c-l)*W-Math.max(2*S,_.top+_.bottom)}}},M=function(Z,H,W){var u=[Z.horizontal,Z.vertical].map(function(he){return he!=null&&he.x<=H&&H<=he.x+he.width&&he.y<=W&&W<=he.y+he.height}),U=(0,D.Z)(u,2),le=U[0],de=U[1];return{isOverEither:le||de,isOverHorizontal:le,isOverVertical:de}}},6264:function(Se,Q,e){e.d(Q,{CF:function(){return u},N:function(){return U},Oh:function(){return pe},PR:function(){return le},Yp:function(){return W},Zs:function(){return he},aI:function(){return H},eD:function(){return de}});var D,E,y,h,S=e(2577),I=e(7651),v=e(4183),n=e(4682),M=e(9827),Z=e(7935),H=function(oe){var P=new Set;return oe.forEach(function($){$.type==="frame"&&P.add($.id)}),oe.filter(function($){return!$.frameId||!P.has($.frameId)})},W=function(oe,P){var $=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],b=(0,I.qf)(P),R=(0,S.Z)(b,4),_=R[0],g=R[1],O=R[2],s=R[3],f=oe.filter(function(t){var w=(0,I.Pi)(t),l=(0,S.Z)(w,4),a=l[0],c=l[1],m=l[2],z=l[3],j=(0,n.$Z)(t);if(j){var k=(0,I.Pi)(j),x=(0,S.Z)(k,4),N=x[0],G=x[1],ie=x[2],V=x[3];a=Math.max(N,a),c=Math.max(G,c),m=Math.min(ie,m),z=Math.min(V,z)}return t.locked===!1&&t.type!=="selection"&&!(0,v.Xh)(t)&&_<=a&&g<=c&&O>=m&&s>=z});return f=(f=$?H(f):f).filter(function(t){var w=(0,n.$Z)(t);return!w||(0,n.cO)(t,w)})},u=function(oe,P,$){var b=new Set(P.map(function(R){return R.id}));return oe.filter(function(R){var _=(0,Z.PZ)(R,$.width,$.height,$);return!b.has(R.id)&&_})},U=(D=null,E=null,y=null,(h=function(oe,P){return y!=null&&oe===D&&P.selectedElementIds===E||(y=oe.some(function($){return P.selectedElementIds[$.id]}),D=oe,E=P.selectedElementIds),y}).clearCache=function(){D=null,E=null,y=null},h),le=function(oe,P,$){var b=Array.from(new Set(de(oe,P).map(function(R){return $(R)})));return b.length===1?b[0]:null},de=function(oe,P,$){var b=oe.filter(function(_){return P.selectedElementIds[_.id]||$!=null&&$.includeBoundTextElement&&(0,v.Xh)(_)&&P.selectedElementIds[_?.containerId]?_:null});if($!=null&&$.includeElementsInFrames){var R=[];return b.forEach(function(_){_.type==="frame"&&(0,n.zD)(oe,_.id).forEach(function(g){return R.push(g)}),R.push(_)}),R}return b},he=function(oe,P){return P.editingElement?[P.editingElement]:de(oe,P,{includeBoundTextElement:!0})},pe=function(oe,P){return(0,M.w8)(P.selectedElementIds,oe)?P.selectedElementIds:oe}},4116:function(Se,Q,e){e.d(Q,{E:function(){return y},j:function(){return E}});var D=e(9937),E=function(h){return Math.max(D.Zj,Math.min(h,30))},y=function(h,S){var I=h.viewportX,v=h.viewportY,n=h.nextZoom,M=I-S.offsetLeft,Z=v-S.offsetTop,H=S.zoom.value;return{scrollX:S.scrollX+(M-M/H)+-(M-M/n),scrollY:S.scrollY+(Z-Z/H)+-(Z-Z/n),zoom:{value:n}}}},9827:function(Se,Q,e){e.d(Q,{$9:function(){return V},$g:function(){return P},$h:function(){return xe},AK:function(){return j},B4:function(){return O},C3:function(){return re},Ds:function(){return b},FG:function(){return k},Fc:function(){return U},G3:function(){return L},G9:function(){return i},HP:function(){return o},I4:function(){return Ce},IH:function(){return c},Ip:function(){return ce},Mj:function(){return ke},Om:function(){return t},Oo:function(){return le},Qm:function(){return G},TE:function(){return f},Vv:function(){return _},XF:function(){return p},_Z:function(){return he},_i:function(){return a},ag:function(){return Te},cx:function(){return x},dE:function(){return l},dZ:function(){return z},h2:function(){return We},hR:function(){return R},mO:function(){return $},qr:function(){return N},qz:function(){return te},s:function(){return oe},tH:function(){return ie},uY:function(){return w},v4:function(){return we},vE:function(){return q},w8:function(){return J},wO:function(){return de},xU:function(){return B},xn:function(){return me},xp:function(){return Oe},y1:function(){return pe},y8:function(){return _e},yo:function(){return s}});var D=e(6655),E=e(7169),y=e(1930),h=e(2577),S=e(9240),I=e(9937),v=e(5156),n=e(9787),M=e.n(n);function Z(A,X){var Y=typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(!Y){if(Array.isArray(A)||(Y=function(Be,Ie){if(Be){if(typeof Be=="string")return H(Be,Ie);var Ke=Object.prototype.toString.call(Be).slice(8,-1);if(Ke==="Object"&&Be.constructor&&(Ke=Be.constructor.name),Ke==="Map"||Ke==="Set")return Array.from(Be);if(Ke==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ke))return H(Be,Ie)}}(A))||X&&A&&typeof A.length=="number"){Y&&(A=Y);var ee=0,ge=function(){};return{s:ge,n:function(){return ee>=A.length?{done:!0}:{done:!1,value:A[ee++]}},e:function(Be){throw Be},f:ge}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var be,Re=!0,Ze=!1;return{s:function(){Y=Y.call(A)},n:function(){var Be=Y.next();return Re=Be.done,Be},e:function(Be){Ze=!0,be=Be},f:function(){try{Re||Y.return==null||Y.return()}finally{if(Ze)throw be}}}}function H(A,X){(X==null||X>A.length)&&(X=A.length);for(var Y=0,ee=new Array(X);Y<X;Y++)ee[Y]=A[Y];return ee}function W(A,X){var Y=Object.keys(A);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(A);X&&(ee=ee.filter(function(ge){return Object.getOwnPropertyDescriptor(A,ge).enumerable})),Y.push.apply(Y,ee)}return Y}function u(A){for(var X=1;X<arguments.length;X++){var Y=arguments[X]!=null?arguments[X]:{};X%2?W(Object(Y),!0).forEach(function(ee){(0,E.Z)(A,ee,Y[ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(Y)):W(Object(Y)).forEach(function(ee){Object.defineProperty(A,ee,Object.getOwnPropertyDescriptor(Y,ee))})}return A}var U=function(){var A=new Date,X=A.getFullYear(),Y="".concat(A.getMonth()+1).padStart(2,"0"),ee="".concat(A.getDate()).padStart(2,"0"),ge="".concat(A.getHours()).padStart(2,"0"),be="".concat(A.getMinutes()).padStart(2,"0");return"".concat(X,"-").concat(Y,"-").concat(ee,"-").concat(ge).concat(be)},le=function(A){return A.charAt(0).toUpperCase()+A.slice(1)},de=function(A){return A instanceof HTMLElement&&A.className.includes("ToolIcon")},he=function(A){return A instanceof HTMLElement&&A.dataset.type==="wysiwyg"||A instanceof HTMLBRElement||A instanceof HTMLInputElement||A instanceof HTMLTextAreaElement||A instanceof HTMLSelectElement},pe=function(A){return he(A)||A instanceof Element&&!!A.closest("label, button")},oe=function(A){return A instanceof HTMLElement&&A.dataset.type==="wysiwyg"||A instanceof HTMLBRElement||A instanceof HTMLTextAreaElement||A instanceof HTMLInputElement&&(A.type==="text"||A.type==="number")},P=function(A){for(var X=A.fontFamily,Y=0,ee=Object.entries(I.ut);Y<ee.length;Y++){var ge=(0,h.Z)(ee[Y],2),be=ge[0];if(ge[1]===X)return"".concat(be,", ").concat(I._D)}return I._D},$=function(A){var X=A.fontSize,Y=A.fontFamily;return"".concat(X,"px ").concat(P({fontFamily:Y}))},b=function(A,X){var Y=0,ee=null,ge=function(){for(var be=arguments.length,Re=new Array(be),Ze=0;Ze<be;Ze++)Re[Ze]=arguments[Ze];ee=Re,clearTimeout(Y),Y=window.setTimeout(function(){ee=null,A.apply(void 0,Re)},X)};return ge.flush=function(){if(clearTimeout(Y),ee){var be=ee;ee=null,A.apply(void 0,(0,y.Z)(be))}},ge.cancel=function(){ee=null,clearTimeout(Y)},ge},R=function(A,X){var Y=null,ee=null,ge=null,be=function Ze(Be){Y=window.requestAnimationFrame(function(){Y=null,A.apply(void 0,(0,y.Z)(Be)),ee=null,ge&&(ee=ge,ge=null,Ze(ee))})},Re=function(){for(var Ze=arguments.length,Be=new Array(Ze),Ie=0;Ie<Ze;Ie++)Be[Ie]=arguments[Ie];ee=Be,Y===null?be(ee):X!=null&&X.trailing&&(ge=Be)};return Re.flush=function(){Y!==null&&(cancelAnimationFrame(Y),Y=null),ee&&(A.apply(void 0,(0,y.Z)(ge||ee)),ee=ge=null)},Re.cancel=function(){ee=ge=null,Y!==null&&(cancelAnimationFrame(Y),Y=null)},Re},_=function(A){return 1-Math.pow(1-A,4)},g=function(A,X,Y){return(X-A)*_(Y)+A},O=function(A){var X,Y=A.fromValues,ee=A.toValues,ge=A.onStep,be=A.duration,Re=be===void 0?250:be,Ze=A.interpolateValue,Be=A.onStart,Ie=A.onEnd,Ke=A.onCancel,Ye=!1,tt=0;return tt=window.requestAnimationFrame(function ue(ve){if(!Ye){X===void 0&&(X=ve,Be?.());var De=Math.min(ve-X,Re),He=_(De/Re),Je={};if(Object.keys(Y).forEach(function(ht){var et=ht,wt=(ee[et]-Y[et])*He+Y[et];Je[et]=wt}),ge(Je),De<Re){var qe=De/Re,st={};Object.keys(Y).forEach(function(ht){var et,wt=ht,Lt=Y[wt],St=ee[wt];(et=Ze?Ze(Lt,St,qe,wt):g(Lt,St,qe))==null&&(et=g(Lt,St,qe)),st[wt]=et}),ge(st),tt=window.requestAnimationFrame(ue)}else ge(ee),Ie?.()}}),function(){Ke?.(),Ye=!0,window.cancelAnimationFrame(tt)}},s=function(A,X){if(!A.length||X<1)return[];for(var Y=0,ee=0,ge=Array(Math.ceil(A.length/X));Y<A.length;)ge[ee++]=A.slice(Y,Y+=X);return ge},f=function(A,X){return Math.abs(A-X)},t=function(A,X){var Y,ee;return X.type==="custom"?u(u({},A.activeTool),{},{type:"custom",customType:X.customType,locked:(ee=X.locked)!==null&&ee!==void 0?ee:A.activeTool.locked}):u(u({},A.activeTool),{},{lastActiveTool:X.lastActiveToolBeforeEraser===void 0?A.activeTool.lastActiveTool:X.lastActiveToolBeforeEraser,type:X.type,customType:null,locked:(Y=X.locked)!==null&&Y!==void 0?Y:A.activeTool.locked})},w=function(A){return A=A.replace(/\bAlt\b/i,"Alt").replace(/\bShift\b/i,"Shift").replace(/\b(Enter|Return)\b/i,"Enter"),I.Um?A.replace(/\bCtrlOrCmd\b/gi,"Cmd").replace(/\bAlt\b/i,"Option"):A.replace(/\bCtrlOrCmd\b/gi,"Ctrl")},l=function(A,X){var Y=A.clientX,ee=A.clientY,ge=X.zoom,be=X.offsetLeft,Re=X.offsetTop,Ze=X.scrollX,Be=X.scrollY;return{x:(Y-be)/ge.value-Ze,y:(ee-Re)/ge.value-Be}},a=function(A,X){var Y=A.sceneX,ee=A.sceneY,ge=X.zoom,be=X.offsetLeft,Re=X.offsetTop,Ze=X.scrollX,Be=X.scrollY;return{x:(Y+Ze)*ge.value+be,y:(ee+Be)*ge.value+Re}},c=function(A){return getComputedStyle(document.documentElement).getPropertyValue("--".concat(A))},m=new RegExp("^[^".concat("A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿Ⰰ-﬜﷾-﹯﻽-￿","]*[").concat("֑-߿יִ-﷽ﹰ-ﻼ","]")),z=function(A){return m.test(A)},j=function(A){var X=(0,h.Z)(A,2);return{x:X[0],y:X[1]}},k=function(A){if(A?.name!=="AbortError")throw A;console.warn(A)},x=function(A,X){var Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Y<0&&(Y=A.length+Y);for(var ee=(Y=Math.min(A.length,Math.max(Y,0)))-1;++ee<A.length;)if(X(A[ee],ee,A))return ee;return-1},N=function(A,X){var Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:A.length-1;Y<0&&(Y=A.length+Y);for(var ee=(Y=Math.min(A.length-1,Math.max(Y,0)))+1;--ee>-1;)if(X(A[ee],ee,A))return ee;return-1},G=function(A){var X=A.length===5&&A.substr(4,1)==="0",Y=A.length===9&&A.substr(7,2)==="00";return X||Y||A===S.HO.transparent},ie=function(A){return function(X){(0,v.unstable_batchedUpdates)(A,X)}},V=function(A){return R(function(X){(0,v.unstable_batchedUpdates)(A,X)})},ce=function(A){for(var X=A.parentElement;X;){if(X===document.body)return document;var Y=window.getComputedStyle(X).overflowY;if(X.scrollHeight>X.clientHeight&&(Y==="auto"||Y==="scroll"||Y==="overlay"))return X;X=X.parentElement}return document},te=function(A){for(var X=A.parentElement;X;){if(X.tabIndex>-1)return void X.focus();X=X.parentElement}},L=function(A){return Array.from(A).map(function(X){return"0".concat(X.toString(16)).slice(-2)}).join("")},re=function(){return We()?1:Date.now()},me=function(A){return A.reduce(function(X,Y){return X.set(typeof Y=="string"?Y:Y.id,Y),X},new Map)},Ce=function(A){return A.reduce(function(X,Y,ee){return X.set(Y.id,[Y,ee]),X},new Map)},We=function(){return!1},Te=function(A,X){return new CustomEvent(A,{detail:{nativeEvent:X},cancelable:!0})},we=function(A,X){var Y=!1;for(var ee in X){var ge=X[ee];if(ge!==void 0){if(A[ee]===ge&&((0,D.Z)(ge)!=="object"||ge===null))continue;Y=!0}}return Y?u(u({},A),X):A},xe=function(){try{return window.self===window.top?"top":"iframe"}catch{return"iframe"}},_e=function(A){return!!A&&(0,D.Z)(A)==="object"&&"then"in A&&"catch"in A&&"finally"in A},Oe=function(A){var X=A?.querySelectorAll("button, a, input, select, textarea, div[tabindex], label[tabindex]");return X?Array.from(X).filter(function(Y){return Y.tabIndex>-1&&!Y.disabled}):[]},J=function(A,X,Y){var ee=arguments.length>3&&arguments[3]!==void 0&&arguments[3],ge=Object.keys(A),be=Object.keys(X);return ge.length===be.length&&ge.every(function(Re){var Ze=Y?.[Re],Be=Ze?Ze(A[Re],X[Re]):A[Re]===X[Re];return!Be&&ee&&console.info("%cisShallowEqual: ".concat(Re," not equal ->"),"color: #8B4000",A[Re],X[Re]),Be})},ke=function(A,X){var Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=Y.checkForDefaultPrevented,ge=ee===void 0||ee;return function(be){if(A?.(be),!ge||!be.defaultPrevented)return X?.(be)}},q=function(A,X,Y){if(!X)return A;if(Y)return console.error(X),A;throw new Error(X)},o=function(A){var X,Y,ee=function(ge){var be=Object.entries(ge);if(X){var Re,Ze=!0,Be=Z(be);try{for(Be.s();!(Re=Be.n()).done;){var Ie=(0,h.Z)(Re.value,2),Ke=Ie[0],Ye=Ie[1];if(X.get(Ke)!==Ye){Ze=!1;break}}}catch(ue){Be.e(ue)}finally{Be.f()}if(Ze)return Y}var tt=A(ge);return X=new Map(be),Y=tt,tt};return ee.clear=function(){X=void 0,Y=void 0},ee},i=function(){var A;try{var X=M().version.split(".");A=Number(X[0])>17}catch{A=!1}var Y=!1;return function(){return window.EXCALIDRAW_THROTTLE_RENDER===!0&&(!!A||(Y||(Y=!0,console.warn("Excalidraw: render throttling is disabled on React versions < 18.")),!1))}}(),p=function(A,X){return A instanceof Set||A instanceof Map?A.has(X):"includes"in A?A.includes(X):A.hasOwnProperty(X)},B=function(A){return JSON.parse(JSON.stringify(A))}},3041:function(Se,Q,e){var D=e(3379),E=e.n(D),y=e(7795),h=e.n(y),S=e(569),I=e.n(S),v=e(3565),n=e.n(v),M=e(9216),Z=e.n(M),H=e(4589),W=e.n(H),u=e(2044),U={};U.styleTagTransform=W(),U.setAttributes=n(),U.insert=I().bind(null,"head"),U.domAPI=h(),U.insertStyleElement=Z(),E()(u.Z,U),u.Z&&u.Z.locals&&u.Z.locals},3379:function(Se){var Q=[];function e(y){for(var h=-1,S=0;S<Q.length;S++)if(Q[S].identifier===y){h=S;break}return h}function D(y,h){for(var S={},I=[],v=0;v<y.length;v++){var n=y[v],M=h.base?n[0]+h.base:n[0],Z=S[M]||0,H="".concat(M," ").concat(Z);S[M]=Z+1;var W=e(H),u={css:n[1],media:n[2],sourceMap:n[3],supports:n[4],layer:n[5]};if(W!==-1)Q[W].references++,Q[W].updater(u);else{var U=E(u,h);h.byIndex=v,Q.splice(v,0,{identifier:H,updater:U,references:1})}I.push(H)}return I}function E(y,h){var S=h.domAPI(h);return S.update(y),function(I){if(I){if(I.css===y.css&&I.media===y.media&&I.sourceMap===y.sourceMap&&I.supports===y.supports&&I.layer===y.layer)return;S.update(y=I)}else S.remove()}}Se.exports=function(y,h){var S=D(y=y||[],h=h||{});return function(I){I=I||[];for(var v=0;v<S.length;v++){var n=e(S[v]);Q[n].references--}for(var M=D(I,h),Z=0;Z<S.length;Z++){var H=e(S[Z]);Q[H].references===0&&(Q[H].updater(),Q.splice(H,1))}S=M}}},569:function(Se){var Q={};Se.exports=function(e,D){var E=function(y){if(Q[y]===void 0){var h=document.querySelector(y);if(window.HTMLIFrameElement&&h instanceof window.HTMLIFrameElement)try{h=h.contentDocument.head}catch{h=null}Q[y]=h}return Q[y]}(e);if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(D)}},9216:function(Se){Se.exports=function(Q){var e=document.createElement("style");return Q.setAttributes(e,Q.attributes),Q.insert(e,Q.options),e}},3565:function(Se,Q,e){Se.exports=function(D){var E=e.nc;E&&D.setAttribute("nonce",E)}},7795:function(Se){Se.exports=function(Q){if(typeof document>"u")return{update:function(){},remove:function(){}};var e=Q.insertStyleElement(Q);return{update:function(D){(function(E,y,h){var S="";h.supports&&(S+="@supports (".concat(h.supports,") {")),h.media&&(S+="@media ".concat(h.media," {"));var I=h.layer!==void 0;I&&(S+="@layer".concat(h.layer.length>0?" ".concat(h.layer):""," {")),S+=h.css,I&&(S+="}"),h.media&&(S+="}"),h.supports&&(S+="}");var v=h.sourceMap;v&&typeof btoa<"u"&&(S+=` +/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(v))))," */")),y.styleTagTransform(S,E,y.options)})(e,Q,D)},remove:function(){(function(D){if(D.parentNode===null)return!1;D.parentNode.removeChild(D)})(e)}}}},4589:function(Se){Se.exports=function(Q,e){if(e.styleSheet)e.styleSheet.cssText=Q;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(Q))}}},9669:function(Se){Se.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg=="},7984:function(Se){Se.exports='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" viewBox="0 0 292 292"><path d="M287 197L159 69c-4-3-8-5-13-5s-9 2-13 5L5 197c-3 4-5 8-5 13s2 9 5 13c4 4 8 5 13 5h256c5 0 9-1 13-5s5-8 5-13-1-9-5-13z"/></svg>'},1639:function(Se){Se.exports='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" viewBox="0 0 292 292"><path fill="%23ced4da" d="M287 197L159 69c-4-3-8-5-13-5s-9 2-13 5L5 197c-3 4-5 8-5 13s2 9 5 13c4 4 8 5 13 5h256c5 0 9-1 13-5s5-8 5-13-1-9-5-13z"/></svg>'},9729:function(Se,Q,e){Se.exports=e.p+"excalidraw-assets/Assistant-Bold.woff2"},1273:function(Se,Q,e){Se.exports=e.p+"excalidraw-assets/Assistant-Medium.woff2"},8303:function(Se,Q,e){Se.exports=e.p+"excalidraw-assets/Assistant-Regular.woff2"},9577:function(Se,Q,e){Se.exports=e.p+"excalidraw-assets/Assistant-SemiBold.woff2"},3147:function(Se,Q,e){Se.exports=e.p+"excalidraw-assets/Cascadia.woff2"},3940:function(Se,Q,e){Se.exports=e.p+"excalidraw-assets/Virgil.woff2"},9787:function(Se){Se.exports=Oa},5156:function(Se){Se.exports=Ca},1020:function(Se){Se.exports=qo},9649:function(Se,Q,e){var D=e(8114).default;function E(){Se.exports=E=function(){return y},Se.exports.__esModule=!0,Se.exports.default=Se.exports;var y={},h=Object.prototype,S=h.hasOwnProperty,I=Object.defineProperty||function(l,a,c){l[a]=c.value},v=typeof Symbol=="function"?Symbol:{},n=v.iterator||"@@iterator",M=v.asyncIterator||"@@asyncIterator",Z=v.toStringTag||"@@toStringTag";function H(l,a,c){return Object.defineProperty(l,a,{value:c,enumerable:!0,configurable:!0,writable:!0}),l[a]}try{H({},"")}catch{H=function(a,c,m){return a[c]=m}}function W(l,a,c,m){var z=a&&a.prototype instanceof le?a:le,j=Object.create(z.prototype),k=new f(m||[]);return I(j,"_invoke",{value:_(l,c,k)}),j}function u(l,a,c){try{return{type:"normal",arg:l.call(a,c)}}catch(m){return{type:"throw",arg:m}}}y.wrap=W;var U={};function le(){}function de(){}function he(){}var pe={};H(pe,n,function(){return this});var oe=Object.getPrototypeOf,P=oe&&oe(oe(t([])));P&&P!==h&&S.call(P,n)&&(pe=P);var $=he.prototype=le.prototype=Object.create(pe);function b(l){["next","throw","return"].forEach(function(a){H(l,a,function(c){return this._invoke(a,c)})})}function R(l,a){function c(z,j,k,x){var N=u(l[z],l,j);if(N.type!=="throw"){var G=N.arg,ie=G.value;return ie&&D(ie)=="object"&&S.call(ie,"__await")?a.resolve(ie.__await).then(function(V){c("next",V,k,x)},function(V){c("throw",V,k,x)}):a.resolve(ie).then(function(V){G.value=V,k(G)},function(V){return c("throw",V,k,x)})}x(N.arg)}var m;I(this,"_invoke",{value:function(z,j){function k(){return new a(function(x,N){c(z,j,x,N)})}return m=m?m.then(k,k):k()}})}function _(l,a,c){var m="suspendedStart";return function(z,j){if(m==="executing")throw new Error("Generator is already running");if(m==="completed"){if(z==="throw")throw j;return w()}for(c.method=z,c.arg=j;;){var k=c.delegate;if(k){var x=g(k,c);if(x){if(x===U)continue;return x}}if(c.method==="next")c.sent=c._sent=c.arg;else if(c.method==="throw"){if(m==="suspendedStart")throw m="completed",c.arg;c.dispatchException(c.arg)}else c.method==="return"&&c.abrupt("return",c.arg);m="executing";var N=u(l,a,c);if(N.type==="normal"){if(m=c.done?"completed":"suspendedYield",N.arg===U)continue;return{value:N.arg,done:c.done}}N.type==="throw"&&(m="completed",c.method="throw",c.arg=N.arg)}}}function g(l,a){var c=a.method,m=l.iterator[c];if(m===void 0)return a.delegate=null,c==="throw"&&l.iterator.return&&(a.method="return",a.arg=void 0,g(l,a),a.method==="throw")||c!=="return"&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+c+"' method")),U;var z=u(m,l.iterator,a.arg);if(z.type==="throw")return a.method="throw",a.arg=z.arg,a.delegate=null,U;var j=z.arg;return j?j.done?(a[l.resultName]=j.value,a.next=l.nextLoc,a.method!=="return"&&(a.method="next",a.arg=void 0),a.delegate=null,U):j:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,U)}function O(l){var a={tryLoc:l[0]};1 in l&&(a.catchLoc=l[1]),2 in l&&(a.finallyLoc=l[2],a.afterLoc=l[3]),this.tryEntries.push(a)}function s(l){var a=l.completion||{};a.type="normal",delete a.arg,l.completion=a}function f(l){this.tryEntries=[{tryLoc:"root"}],l.forEach(O,this),this.reset(!0)}function t(l){if(l){var a=l[n];if(a)return a.call(l);if(typeof l.next=="function")return l;if(!isNaN(l.length)){var c=-1,m=function z(){for(;++c<l.length;)if(S.call(l,c))return z.value=l[c],z.done=!1,z;return z.value=void 0,z.done=!0,z};return m.next=m}}return{next:w}}function w(){return{value:void 0,done:!0}}return de.prototype=he,I($,"constructor",{value:he,configurable:!0}),I(he,"constructor",{value:de,configurable:!0}),de.displayName=H(he,Z,"GeneratorFunction"),y.isGeneratorFunction=function(l){var a=typeof l=="function"&&l.constructor;return!!a&&(a===de||(a.displayName||a.name)==="GeneratorFunction")},y.mark=function(l){return Object.setPrototypeOf?Object.setPrototypeOf(l,he):(l.__proto__=he,H(l,Z,"GeneratorFunction")),l.prototype=Object.create($),l},y.awrap=function(l){return{__await:l}},b(R.prototype),H(R.prototype,M,function(){return this}),y.AsyncIterator=R,y.async=function(l,a,c,m,z){z===void 0&&(z=Promise);var j=new R(W(l,a,c,m),z);return y.isGeneratorFunction(a)?j:j.next().then(function(k){return k.done?k.value:j.next()})},b($),H($,Z,"Generator"),H($,n,function(){return this}),H($,"toString",function(){return"[object Generator]"}),y.keys=function(l){var a=Object(l),c=[];for(var m in a)c.push(m);return c.reverse(),function z(){for(;c.length;){var j=c.pop();if(j in a)return z.value=j,z.done=!1,z}return z.done=!0,z}},y.values=t,f.prototype={constructor:f,reset:function(l){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(s),!l)for(var a in this)a.charAt(0)==="t"&&S.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=void 0)},stop:function(){this.done=!0;var l=this.tryEntries[0].completion;if(l.type==="throw")throw l.arg;return this.rval},dispatchException:function(l){if(this.done)throw l;var a=this;function c(N,G){return j.type="throw",j.arg=l,a.next=N,G&&(a.method="next",a.arg=void 0),!!G}for(var m=this.tryEntries.length-1;m>=0;--m){var z=this.tryEntries[m],j=z.completion;if(z.tryLoc==="root")return c("end");if(z.tryLoc<=this.prev){var k=S.call(z,"catchLoc"),x=S.call(z,"finallyLoc");if(k&&x){if(this.prev<z.catchLoc)return c(z.catchLoc,!0);if(this.prev<z.finallyLoc)return c(z.finallyLoc)}else if(k){if(this.prev<z.catchLoc)return c(z.catchLoc,!0)}else{if(!x)throw new Error("try statement without catch or finally");if(this.prev<z.finallyLoc)return c(z.finallyLoc)}}}},abrupt:function(l,a){for(var c=this.tryEntries.length-1;c>=0;--c){var m=this.tryEntries[c];if(m.tryLoc<=this.prev&&S.call(m,"finallyLoc")&&this.prev<m.finallyLoc){var z=m;break}}z&&(l==="break"||l==="continue")&&z.tryLoc<=a&&a<=z.finallyLoc&&(z=null);var j=z?z.completion:{};return j.type=l,j.arg=a,z?(this.method="next",this.next=z.finallyLoc,U):this.complete(j)},complete:function(l,a){if(l.type==="throw")throw l.arg;return l.type==="break"||l.type==="continue"?this.next=l.arg:l.type==="return"?(this.rval=this.arg=l.arg,this.method="return",this.next="end"):l.type==="normal"&&a&&(this.next=a),U},finish:function(l){for(var a=this.tryEntries.length-1;a>=0;--a){var c=this.tryEntries[a];if(c.finallyLoc===l)return this.complete(c.completion,c.afterLoc),s(c),U}},catch:function(l){for(var a=this.tryEntries.length-1;a>=0;--a){var c=this.tryEntries[a];if(c.tryLoc===l){var m=c.completion;if(m.type==="throw"){var z=m.arg;s(c)}return z}}throw new Error("illegal catch attempt")},delegateYield:function(l,a,c){return this.delegate={iterator:t(l),resultName:a,nextLoc:c},this.method==="next"&&(this.arg=void 0),U}},y}Se.exports=E,Se.exports.__esModule=!0,Se.exports.default=Se.exports},8114:function(Se){function Q(e){return Se.exports=Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},Se.exports.__esModule=!0,Se.exports.default=Se.exports,Q(e)}Se.exports=Q,Se.exports.__esModule=!0,Se.exports.default=Se.exports},2975:function(Se,Q,e){var D=e(9649)();Se.exports=D;try{regeneratorRuntime=D}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=D:Function("r","regeneratorRuntime = r")(D)}},7017:function(Se,Q,e){function D(E,y){(y==null||y>E.length)&&(y=E.length);for(var h=0,S=new Array(y);h<y;h++)S[h]=E[h];return S}e.d(Q,{Z:function(){return D}})},3173:function(Se,Q,e){function D(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}e.d(Q,{Z:function(){return D}})},8950:function(Se,Q,e){function D(y,h,S,I,v,n,M){try{var Z=y[n](M),H=Z.value}catch(W){return void S(W)}Z.done?h(H):Promise.resolve(H).then(I,v)}function E(y){return function(){var h=this,S=arguments;return new Promise(function(I,v){var n=y.apply(h,S);function M(H){D(n,I,v,M,Z,"next",H)}function Z(H){D(n,I,v,M,Z,"throw",H)}M(void 0)})}}e.d(Q,{Z:function(){return E}})},8821:function(Se,Q,e){function D(E,y){if(!(E instanceof y))throw new TypeError("Cannot call a class as a function")}e.d(Q,{Z:function(){return D}})},5169:function(Se,Q,e){e.d(Q,{Z:function(){return y}});var D=e(3525);function E(h,S){for(var I=0;I<S.length;I++){var v=S[I];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(h,(0,D.Z)(v.key),v)}}function y(h,S,I){return S&&E(h.prototype,S),I&&E(h,I),Object.defineProperty(h,"prototype",{writable:!1}),h}},7169:function(Se,Q,e){e.d(Q,{Z:function(){return E}});var D=e(3525);function E(y,h,S){return(h=(0,D.Z)(h))in y?Object.defineProperty(y,h,{value:S,enumerable:!0,configurable:!0,writable:!0}):y[h]=S,y}},11:function(Se,Q,e){function D(){return D=Object.assign?Object.assign.bind():function(E){for(var y=1;y<arguments.length;y++){var h=arguments[y];for(var S in h)Object.prototype.hasOwnProperty.call(h,S)&&(E[S]=h[S])}return E},D.apply(this,arguments)}e.d(Q,{Z:function(){return D}})},2312:function(Se,Q,e){function D(E){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},D(E)}e.d(Q,{Z:function(){return D}})},2248:function(Se,Q,e){e.d(Q,{Z:function(){return E}});var D=e(5901);function E(y,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(h&&h.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),h&&(0,D.Z)(y,h)}},2726:function(Se,Q,e){function D(E,y){if(E==null)return{};var h,S,I=function(n,M){if(n==null)return{};var Z,H,W={},u=Object.keys(n);for(H=0;H<u.length;H++)Z=u[H],M.indexOf(Z)>=0||(W[Z]=n[Z]);return W}(E,y);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(E);for(S=0;S<v.length;S++)h=v[S],y.indexOf(h)>=0||Object.prototype.propertyIsEnumerable.call(E,h)&&(I[h]=E[h])}return I}e.d(Q,{Z:function(){return D}})},7245:function(Se,Q,e){e.d(Q,{Z:function(){return y}});var D=e(6655),E=e(3173);function y(h,S){if(S&&((0,D.Z)(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(0,E.Z)(h)}},5901:function(Se,Q,e){function D(E,y){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,S){return h.__proto__=S,h},D(E,y)}e.d(Q,{Z:function(){return D}})},2577:function(Se,Q,e){e.d(Q,{Z:function(){return E}});var D=e(9139);function E(y,h){return function(S){if(Array.isArray(S))return S}(y)||function(S,I){var v=S==null?null:typeof Symbol<"u"&&S[Symbol.iterator]||S["@@iterator"];if(v!=null){var n,M,Z,H,W=[],u=!0,U=!1;try{if(Z=(v=v.call(S)).next,I===0){if(Object(v)!==v)return;u=!1}else for(;!(u=(n=Z.call(v)).done)&&(W.push(n.value),W.length!==I);u=!0);}catch(le){U=!0,M=le}finally{try{if(!u&&v.return!=null&&(H=v.return(),Object(H)!==H))return}finally{if(U)throw M}}return W}}(y,h)||(0,D.Z)(y,h)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}},1930:function(Se,Q,e){e.d(Q,{Z:function(){return y}});var D=e(7017),E=e(9139);function y(h){return function(S){if(Array.isArray(S))return(0,D.Z)(S)}(h)||function(S){if(typeof Symbol<"u"&&S[Symbol.iterator]!=null||S["@@iterator"]!=null)return Array.from(S)}(h)||(0,E.Z)(h)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}},3525:function(Se,Q,e){e.d(Q,{Z:function(){return E}});var D=e(6655);function E(y){var h=function(S,I){if((0,D.Z)(S)!=="object"||S===null)return S;var v=S[Symbol.toPrimitive];if(v!==void 0){var n=v.call(S,I||"default");if((0,D.Z)(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(I==="string"?String:Number)(S)}(y,"string");return(0,D.Z)(h)==="symbol"?h:String(h)}},6655:function(Se,Q,e){function D(E){return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},D(E)}e.d(Q,{Z:function(){return D}})},9139:function(Se,Q,e){e.d(Q,{Z:function(){return E}});var D=e(7017);function E(y,h){if(y){if(typeof y=="string")return(0,D.Z)(y,h);var S=Object.prototype.toString.call(y).slice(8,-1);return S==="Object"&&y.constructor&&(S=y.constructor.name),S==="Map"||S==="Set"?Array.from(y):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?(0,D.Z)(y,h):void 0}}},3607:function(Se,Q,e){e.d(Q,{zt:function(){return P},cn:function(){return $},Vv:function(){return de},KO:function(){return _},Dv:function(){return b},b9:function(){return R}});var D=e(9787);let E=0;const y=Symbol(),h=g=>!!g[y],S=g=>!g[y].c,I=g=>{var O;const{b:s,c:f}=g[y];f&&(f(),(O=M.get(s))==null||O())},v=(g,O)=>{const s=g[y].o,f=O[y].o;return s===f||g===f||h(s)&&v(s,O)},n=(g,O)=>{const s={b:g,o:O,c:null},f=new Promise(t=>{s.c=()=>{s.c=null,t()},O.finally(s.c)});return f[y]=s,f},M=new WeakMap,Z=g=>"init"in g,H="r",W="w",u="c",U="s",le=g=>{const O=new WeakMap,s=new WeakMap,f=new Map;let t,w;if(t=new Set,w=new Set,g)for(const[Oe,J]of g){const ke={v:J,r:0,y:!0,d:new Map};Object.freeze(ke),Z(Oe)||console.warn("Found initial value for derived atom which can cause unexpected behavior",Oe),O.set(Oe,ke)}const l=new WeakMap,a=new WeakMap,c=Oe=>{let J=a.get(Oe);return J||(J=new Map,a.set(Oe,J)),J},m=(Oe,J)=>{if(Oe){const ke=c(Oe);let q=ke.get(J);return q||(q=m(Oe.p,J),q&&"p"in q&&S(q.p)&&(q=void 0),q&&ke.set(J,q)),q}return O.get(J)},z=(Oe,J,ke)=>{if(Object.freeze(ke),Oe)c(Oe).set(J,ke);else{const q=O.get(J);O.set(J,ke),f.has(J)||f.set(J,q)}},j=(Oe,J=new Map,ke)=>{if(!ke)return J;const q=new Map;let o=!1;return ke.forEach(i=>{var p;const B=((p=m(Oe,i))==null?void 0:p.r)||0;q.set(i,B),J.get(i)!==B&&(o=!0)}),J.size!==q.size||o?q:J},k=(Oe,J,ke,q,o)=>{const i=m(Oe,J);if(i){if(o&&(!("p"in i)||!v(i.p,o)))return i;"p"in i&&I(i.p)}const p={v:ke,r:i?.r||0,y:!0,d:j(Oe,i?.d,q)};let B=!i?.y;return i&&"v"in i&&Object.is(i.v,ke)?p.d===i.d||p.d.size===i.d.size&&Array.from(p.d.keys()).every(A=>i.d.has(A))||(B=!0,Promise.resolve().then(()=>{Te(Oe)})):(B=!0,++p.r,p.d.has(J)&&(p.d=new Map(p.d).set(J,p.r))),i&&!B?i:(z(Oe,J,p),p)},x=(Oe,J,ke,q,o)=>{const i=m(Oe,J);if(i){if(o&&(!("p"in i)||!v(i.p,o)))return i;"p"in i&&I(i.p)}const p={e:ke,r:(i?.r||0)+1,y:!0,d:j(Oe,i?.d,q)};return z(Oe,J,p),p},N=(Oe,J,ke,q)=>{const o=m(Oe,J);if(o&&"p"in o){if(v(o.p,ke)&&!S(o.p))return o.y?o:{...o,y:!0};I(o.p)}((p,B,A)=>{let X=l.get(B);X||(X=new Map,l.set(B,X)),A.then(()=>{X.get(p)===A&&(X.delete(p),X.size||l.delete(B))}),X.set(p,A)})(Oe,J,ke);const i={p:ke,r:(o?.r||0)+1,y:!0,d:j(Oe,o?.d,q)};return z(Oe,J,i),i},G=(Oe,J,ke,q)=>{if(ke instanceof Promise){const o=n(ke,ke.then(i=>{k(Oe,J,i,q,o)}).catch(i=>{if(i instanceof Promise)return h(i)?i.then(()=>{ie(Oe,J,!0)}):i;x(Oe,J,i,q,o)}));return N(Oe,J,o,q)}return k(Oe,J,ke,q)},ie=(Oe,J,ke)=>{if(!ke){const o=m(Oe,J);if(o){if(o.y&&"p"in o&&!S(o.p))return o;if(o.d.forEach((i,p)=>{if(p!==J)if(s.has(p)){const B=m(Oe,p);B&&!B.y&&ie(Oe,p)}else ie(Oe,p)}),Array.from(o.d).every(([i,p])=>{const B=m(Oe,i);return B&&!("p"in B)&&B.r===p}))return o.y?o:{...o,y:!0}}}const q=new Set;try{const o=J.read(i=>{q.add(i);const p=i===J?m(Oe,i):ie(Oe,i);if(p){if("e"in p)throw p.e;if("p"in p)throw p.p;return p.v}if(Z(i))return i.init;throw new Error("no atom init")});return G(Oe,J,o,q)}catch(o){if(o instanceof Promise){const i=h(o)&&S(o)?(p=>n(p[y].b,p[y].o))(o):n(o,o);return N(Oe,J,i,q)}return x(Oe,J,o,q)}},V=(Oe,J)=>ie(J,Oe),ce=(Oe,J)=>!J.l.size&&(!J.t.size||J.t.size===1&&J.t.has(Oe)),te=(Oe,J)=>{const ke=s.get(J);ke?.t.forEach(q=>{q!==J&&(((o,i)=>{const p=m(o,i);if(p){const B={...p,y:!1};z(o,i,B)}else console.warn("[Bug] could not invalidate non existing atom",i)})(Oe,q),te(Oe,q))})},L=(Oe,J,ke)=>{let q=!0;const o=(p,B)=>{const A=ie(Oe,p);if("e"in A)throw A.e;if("p"in A){if(B?.unstable_promise)return A.p.then(()=>{const X=m(Oe,p);return X&&"p"in X&&X.p===A.p?new Promise(Y=>setTimeout(Y)).then(()=>o(p,B)):o(p,B)});throw console.info("Reading pending atom state in write operation. We throw a promise for now.",p),A.p}if("v"in A)return A.v;throw console.warn("[Bug] no value found while reading atom in write operation. This is probably a bug.",p),new Error("no value found")},i=J.write(o,(p,B)=>{let A;if(p===J){if(!Z(p))throw new Error("atom not writable");(Y=>{const ee=new Set,ge=l.get(Y);return ge&&(l.delete(Y),ge.forEach((be,Re)=>{I(be),ee.add(Re)})),ee})(p).forEach(Y=>{Y!==Oe&&G(Y,p,B)}),m(Oe,p)!==G(Oe,p,B)&&te(Oe,p)}else A=L(Oe,p,B);return q||Te(Oe),A},ke);return q=!1,i},re=(Oe,J,ke)=>{const q=L(ke,Oe,J);return Te(ke),q},me=(Oe,J,ke)=>{const q={t:new Set(ke&&[ke]),l:new Set};if(s.set(J,q),w.add(J),ie(void 0,J).d.forEach((o,i)=>{const p=s.get(i);p?p.t.add(J):i!==J&&me(Oe,i,J)}),(o=>!!o.write)(J)&&J.onMount){const o=p=>re(J,p,Oe),i=J.onMount(o);Oe=void 0,i&&(q.u=i)}return q},Ce=(Oe,J)=>{var ke;const q=(ke=s.get(J))==null?void 0:ke.u;q&&q(),s.delete(J),w.delete(J);const o=m(Oe,J);o?("p"in o&&I(o.p),o.d.forEach((i,p)=>{if(p!==J){const B=s.get(p);B&&(B.t.delete(J),ce(p,B)&&Ce(Oe,p))}})):console.warn("[Bug] could not find atom state to unmount",J)},We=(Oe,J,ke,q)=>{const o=new Set(ke.d.keys());q?.forEach((i,p)=>{if(o.has(p))return void o.delete(p);const B=s.get(p);B&&(B.t.delete(J),ce(p,B)&&Ce(Oe,p))}),o.forEach(i=>{const p=s.get(i);p?p.t.add(J):s.has(J)&&me(Oe,i,J)})},Te=Oe=>{if(Oe)c(Oe).forEach((J,ke)=>{if(J!==O.get(ke)){const q=s.get(ke);q?.l.forEach(o=>o(Oe))}});else{for(;f.size;){const J=Array.from(f);f.clear(),J.forEach(([ke,q])=>{const o=m(void 0,ke);if(o&&o.d!==q?.d&&We(void 0,ke,o,q?.d),q&&!q.y&&o?.y)return;const i=s.get(ke);i?.l.forEach(p=>p())})}t.forEach(J=>J())}},we=(Oe,J)=>{J&&(ke=>{c(ke).forEach((q,o)=>{const i=O.get(o);(!i||q.r>i.r||q.y!==i.y||q.r===i.r&&q.d!==i.d)&&(O.set(o,q),q.d!==i?.d&&We(ke,o,q,i?.d))})})(J),Te(void 0)},xe=(Oe,J,ke)=>{const q=((i,p)=>{let B=s.get(p);return B||(B=me(i,p)),B})(ke,Oe),o=q.l;return o.add(J),()=>{o.delete(J),((i,p)=>{const B=s.get(p);B&&ce(p,B)&&Ce(i,p)})(ke,Oe)}},_e=(Oe,J)=>{for(const[ke,q]of Oe)Z(ke)&&(G(J,ke,q),te(J,ke));Te(J)};return{[H]:V,[W]:re,[u]:we,[U]:xe,h:_e,n:Oe=>(t.add(Oe),()=>{t.delete(Oe)}),l:()=>w.values(),a:Oe=>O.get(Oe),m:Oe=>s.get(Oe)}},de=g=>{const O=le(g),s=f=>new Promise((t,w)=>{const l=O.r(f);"e"in l?w(l.e):t("p"in l?l.p.then(()=>s(f)):l.v)});return{get:f=>{const t=O.r(f);if("e"in t)throw t.e;if(!("p"in t))return t.v},asyncGet:s,set:(f,t)=>O.w(f,t),sub:(f,t)=>O.s(f,t),SECRET_INTERNAL_store:O}},he=(g,O)=>({s:O?O(g).SECRET_INTERNAL_store:le(g)}),pe=new Map,oe=g=>(pe.has(g)||pe.set(g,(0,D.createContext)(he())),pe.get(g)),P=({children:g,initialValues:O,scope:s,unstable_createStore:f,unstable_enableVersionedWrite:t})=>{const[w,l]=(0,D.useState)({});(0,D.useEffect)(()=>{const m=a.current;m.w&&(m.s.c(null,w),delete w.p,m.v=w)},[w]);const a=(0,D.useRef)();if(!a.current){const m=he(O,f);if(t){let z=0;m.w=j=>{l(k=>{const x=z?k:{p:k};return j(x),x})},m.v=w,m.r=j=>{++z,j(),--z}}a.current=m}const c=oe(s);return(0,D.createElement)(c.Provider,{value:a.current},g)};function $(g,O){return function(s,f){const t="atom"+ ++E,w={toString:()=>t};return typeof s=="function"?w.read=s:(w.init=s,w.read=l=>l(w),w.write=(l,a,c)=>a(w,typeof c=="function"?c(l(w)):c)),f&&(w.write=f),w}(g,O)}function b(g,O){const s=oe(O),f=(0,D.useContext)(s),{s:t,v:w}=f,l=k=>{const x=t.r(g,k);if(!x.y)throw new Error("should not be invalidated");if("e"in x)throw x.e;if("p"in x)throw x.p;if("v"in x)return x.v;throw new Error("no atom value")},[[a,c,m],z]=(0,D.useReducer)((k,x)=>{const N=l(x);return Object.is(k[1],N)&&k[2]===g?k:[x,N,g]},w,k=>[k,l(k),g]);let j=c;return m!==g&&(z(a),j=l(a)),(0,D.useEffect)(()=>{const{v:k}=f;k&&t.c(g,k);const x=t.s(g,z,k);return z(k),x},[t,g,f]),(0,D.useEffect)(()=>{t.c(g,a)}),(0,D.useDebugValue)(j),j}function R(g,O){const s=oe(O),{s:f,w:t}=(0,D.useContext)(s);return(0,D.useCallback)(w=>{if(!("write"in g))throw new Error("not writable atom");const l=a=>f.w(g,w,a);return t?t(l):l()},[f,t,g])}function _(g,O){return"scope"in g&&(console.warn("atom.scope is deprecated. Please do useAtom(atom, scope) instead."),O=g.scope),[b(g,O),R(g,O)]}},5605:function(Se,Q,e){e.d(Q,{x0:function(){return D}});let D=(E=21)=>crypto.getRandomValues(new Uint8Array(E)).reduce((y,h)=>y+=(h&=63)<36?h.toString(36):h<62?(h-26).toString(36).toUpperCase():h>62?"-":"_","")},5284:function(Se){Se.exports=JSON.parse('{"white":"#ffffff","black":"#000000","gray":["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],"red":["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],"pink":["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],"grape":["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],"violet":["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],"indigo":["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],"blue":["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],"cyan":["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],"teal":["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],"green":["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],"lime":["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],"yellow":["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],"orange":["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]}')},1463:function(Se){Se.exports=JSON.parse(`{"labels":{"paste":"Paste","pasteAsPlaintext":"Paste as plaintext","pasteCharts":"Paste charts","selectAll":"Select all","multiSelect":"Add element to selection","moveCanvas":"Move canvas","cut":"Cut","copy":"Copy","copyAsPng":"Copy to clipboard as PNG","copyAsSvg":"Copy to clipboard as SVG","copyText":"Copy to clipboard as text","bringForward":"Bring forward","sendToBack":"Send to back","bringToFront":"Bring to front","sendBackward":"Send backward","delete":"Delete","copyStyles":"Copy styles","pasteStyles":"Paste styles","stroke":"Stroke","background":"Background","fill":"Fill","strokeWidth":"Stroke width","strokeStyle":"Stroke style","strokeStyle_solid":"Solid","strokeStyle_dashed":"Dashed","strokeStyle_dotted":"Dotted","sloppiness":"Sloppiness","opacity":"Opacity","textAlign":"Text align","edges":"Edges","sharp":"Sharp","round":"Round","arrowheads":"Arrowheads","arrowhead_none":"None","arrowhead_arrow":"Arrow","arrowhead_bar":"Bar","arrowhead_dot":"Dot","arrowhead_triangle":"Triangle","fontSize":"Font size","fontFamily":"Font family","addWatermark":"Add \\"Made with Excalidraw\\"","handDrawn":"Hand-drawn","normal":"Normal","code":"Code","small":"Small","medium":"Medium","large":"Large","veryLarge":"Very large","solid":"Solid","hachure":"Hachure","zigzag":"Zigzag","crossHatch":"Cross-hatch","thin":"Thin","bold":"Bold","left":"Left","center":"Center","right":"Right","extraBold":"Extra bold","architect":"Architect","artist":"Artist","cartoonist":"Cartoonist","fileTitle":"File name","colorPicker":"Color picker","canvasColors":"Used on canvas","canvasBackground":"Canvas background","drawingCanvas":"Drawing canvas","layers":"Layers","actions":"Actions","language":"Language","liveCollaboration":"Live collaboration...","duplicateSelection":"Duplicate","untitled":"Untitled","name":"Name","yourName":"Your name","madeWithExcalidraw":"Made with Excalidraw","group":"Group selection","ungroup":"Ungroup selection","collaborators":"Collaborators","showGrid":"Show grid","addToLibrary":"Add to library","removeFromLibrary":"Remove from library","libraryLoadingMessage":"Loading library…","libraries":"Browse libraries","loadingScene":"Loading scene…","align":"Align","alignTop":"Align top","alignBottom":"Align bottom","alignLeft":"Align left","alignRight":"Align right","centerVertically":"Center vertically","centerHorizontally":"Center horizontally","distributeHorizontally":"Distribute horizontally","distributeVertically":"Distribute vertically","flipHorizontal":"Flip horizontal","flipVertical":"Flip vertical","viewMode":"View mode","share":"Share","showStroke":"Show stroke color picker","showBackground":"Show background color picker","toggleTheme":"Toggle theme","personalLib":"Personal Library","excalidrawLib":"Excalidraw Library","decreaseFontSize":"Decrease font size","increaseFontSize":"Increase font size","unbindText":"Unbind text","bindText":"Bind text to the container","createContainerFromText":"Wrap text in a container","link":{"edit":"Edit link","editEmbed":"Edit link & embed","create":"Create link","createEmbed":"Create link & embed","label":"Link","labelEmbed":"Link & embed","empty":"No link is set"},"lineEditor":{"edit":"Edit line","exit":"Exit line editor"},"elementLock":{"lock":"Lock","unlock":"Unlock","lockAll":"Lock all","unlockAll":"Unlock all"},"statusPublished":"Published","sidebarLock":"Keep sidebar open","selectAllElementsInFrame":"Select all elements in frame","removeAllElementsFromFrame":"Remove all elements from frame","eyeDropper":"Pick color from canvas"},"library":{"noItems":"No items added yet...","hint_emptyLibrary":"Select an item on canvas to add it here, or install a library from the public repository, below.","hint_emptyPrivateLibrary":"Select an item on canvas to add it here."},"buttons":{"clearReset":"Reset the canvas","exportJSON":"Export to file","exportImage":"Export image...","export":"Save to...","copyToClipboard":"Copy to clipboard","save":"Save to current file","saveAs":"Save as","load":"Open","getShareableLink":"Get shareable link","close":"Close","selectLanguage":"Select language","scrollBackToContent":"Scroll back to content","zoomIn":"Zoom in","zoomOut":"Zoom out","resetZoom":"Reset zoom","menu":"Menu","done":"Done","edit":"Edit","undo":"Undo","redo":"Redo","resetLibrary":"Reset library","createNewRoom":"Create new room","fullScreen":"Full screen","darkMode":"Dark mode","lightMode":"Light mode","zenMode":"Zen mode","objectsSnapMode":"Snap to objects","exitZenMode":"Exit zen mode","cancel":"Cancel","clear":"Clear","remove":"Remove","embed":"Toggle embedding","publishLibrary":"Publish","submit":"Submit","confirm":"Confirm","embeddableInteractionButton":"Click to interact"},"alerts":{"clearReset":"This will clear the whole canvas. Are you sure?","couldNotCreateShareableLink":"Couldn't create shareable link.","couldNotCreateShareableLinkTooBig":"Couldn't create shareable link: the scene is too big","couldNotLoadInvalidFile":"Couldn't load invalid file","importBackendFailed":"Importing from backend failed.","cannotExportEmptyCanvas":"Cannot export empty canvas.","couldNotCopyToClipboard":"Couldn't copy to clipboard.","decryptFailed":"Couldn't decrypt data.","uploadedSecurly":"The upload has been secured with end-to-end encryption, which means that Excalidraw server and third parties can't read the content.","loadSceneOverridePrompt":"Loading external drawing will replace your existing content. Do you wish to continue?","collabStopOverridePrompt":"Stopping the session will overwrite your previous, locally stored drawing. Are you sure?\\n\\n(If you want to keep your local drawing, simply close the browser tab instead.)","errorAddingToLibrary":"Couldn't add item to the library","errorRemovingFromLibrary":"Couldn't remove item from the library","confirmAddLibrary":"This will add {{numShapes}} shape(s) to your library. Are you sure?","imageDoesNotContainScene":"This image does not seem to contain any scene data. Have you enabled scene embedding during export?","cannotRestoreFromImage":"Scene couldn't be restored from this image file","invalidSceneUrl":"Couldn't import scene from the supplied URL. It's either malformed, or doesn't contain valid Excalidraw JSON data.","resetLibrary":"This will clear your library. Are you sure?","removeItemsFromsLibrary":"Delete {{count}} item(s) from library?","invalidEncryptionKey":"Encryption key must be of 22 characters. Live collaboration is disabled.","collabOfflineWarning":"No internet connection available.\\nYour changes will not be saved!"},"errors":{"unsupportedFileType":"Unsupported file type.","imageInsertError":"Couldn't insert image. Try again later...","fileTooBig":"File is too big. Maximum allowed size is {{maxSize}}.","svgImageInsertError":"Couldn't insert SVG image. The SVG markup looks invalid.","failedToFetchImage":"Failed to fetch image.","invalidSVGString":"Invalid SVG.","cannotResolveCollabServer":"Couldn't connect to the collab server. Please reload the page and try again.","importLibraryError":"Couldn't load library","collabSaveFailed":"Couldn't save to the backend database. If problems persist, you should save your file locally to ensure you don't lose your work.","collabSaveFailed_sizeExceeded":"Couldn't save to the backend database, the canvas seems to be too big. You should save the file locally to ensure you don't lose your work.","imageToolNotSupported":"Images are disabled.","brave_measure_text_error":{"line1":"Looks like you are using Brave browser with the <bold>Aggressively Block Fingerprinting</bold> setting enabled.","line2":"This could result in breaking the <bold>Text Elements</bold> in your drawings.","line3":"We strongly recommend disabling this setting. You can follow <link>these steps</link> on how to do so.","line4":"If disabling this setting doesn't fix the display of text elements, please open an <issueLink>issue</issueLink> on our GitHub, or write us on <discordLink>Discord</discordLink>"},"libraryElementTypeError":{"embeddable":"Embeddable elements cannot be added to the library.","image":"Support for adding images to the library coming soon!"},"asyncPasteFailedOnRead":"Couldn't paste (couldn't read from system clipboard).","asyncPasteFailedOnParse":"Couldn't paste.","copyToSystemClipboardFailed":"Couldn't copy to clipboard."},"toolBar":{"selection":"Selection","image":"Insert image","rectangle":"Rectangle","diamond":"Diamond","ellipse":"Ellipse","arrow":"Arrow","line":"Line","freedraw":"Draw","text":"Text","library":"Library","lock":"Keep selected tool active after drawing","penMode":"Pen mode - prevent touch","link":"Add/ Update link for a selected shape","eraser":"Eraser","frame":"Frame tool","embeddable":"Web Embed","laser":"Laser pointer","hand":"Hand (panning tool)","extraTools":"More tools","mermaidToExcalidraw":"Mermaid to Excalidraw"},"headings":{"canvasActions":"Canvas actions","selectedShapeActions":"Selected shape actions","shapes":"Shapes"},"hints":{"canvasPanning":"To move canvas, hold mouse wheel or spacebar while dragging, or use the hand tool","linearElement":"Click to start multiple points, drag for single line","freeDraw":"Click and drag, release when you're finished","text":"Tip: you can also add text by double-clicking anywhere with the selection tool","embeddable":"Click-drag to create a website embed","text_selected":"Double-click or press ENTER to edit text","text_editing":"Press Escape or CtrlOrCmd+ENTER to finish editing","linearElementMulti":"Click on last point or press Escape or Enter to finish","lockAngle":"You can constrain angle by holding SHIFT","resize":"You can constrain proportions by holding SHIFT while resizing,\\nhold ALT to resize from the center","resizeImage":"You can resize freely by holding SHIFT,\\nhold ALT to resize from the center","rotate":"You can constrain angles by holding SHIFT while rotating","lineEditor_info":"Hold CtrlOrCmd and Double-click or press CtrlOrCmd + Enter to edit points","lineEditor_pointSelected":"Press Delete to remove point(s),\\nCtrlOrCmd+D to duplicate, or drag to move","lineEditor_nothingSelected":"Select a point to edit (hold SHIFT to select multiple),\\nor hold Alt and click to add new points","placeImage":"Click to place the image, or click and drag to set its size manually","publishLibrary":"Publish your own library","bindTextToElement":"Press enter to add text","deepBoxSelect":"Hold CtrlOrCmd to deep select, and to prevent dragging","eraserRevert":"Hold Alt to revert the elements marked for deletion","firefox_clipboard_write":"This feature can likely be enabled by setting the \\"dom.events.asyncClipboard.clipboardItem\\" flag to \\"true\\". To change the browser flags in Firefox, visit the \\"about:config\\" page.","disableSnapping":"Hold CtrlOrCmd to disable snapping"},"canvasError":{"cannotShowPreview":"Cannot show preview","canvasTooBig":"The canvas may be too big.","canvasTooBigTip":"Tip: try moving the farthest elements a bit closer together."},"errorSplash":{"headingMain":"Encountered an error. Try <button>reloading the page</button>.","clearCanvasMessage":"If reloading doesn't work, try <button>clearing the canvas</button>.","clearCanvasCaveat":" This will result in loss of work ","trackedToSentry":"The error with identifier {{eventId}} was tracked on our system.","openIssueMessage":"We were very cautious not to include your scene information on the error. If your scene is not private, please consider following up on our <button>bug tracker</button>. Please include information below by copying and pasting into the GitHub issue.","sceneContent":"Scene content:"},"roomDialog":{"desc_intro":"You can invite people to your current scene to collaborate with you.","desc_privacy":"Don't worry, the session uses end-to-end encryption, so whatever you draw will stay private. Not even our server will be able to see what you come up with.","button_startSession":"Start session","button_stopSession":"Stop session","desc_inProgressIntro":"Live-collaboration session is now in progress.","desc_shareLink":"Share this link with anyone you want to collaborate with:","desc_exitSession":"Stopping the session will disconnect you from the room, but you'll be able to continue working with the scene, locally. Note that this won't affect other people, and they'll still be able to collaborate on their version.","shareTitle":"Join a live collaboration session on Excalidraw"},"errorDialog":{"title":"Error"},"exportDialog":{"disk_title":"Save to disk","disk_details":"Export the scene data to a file from which you can import later.","disk_button":"Save to file","link_title":"Shareable link","link_details":"Export as a read-only link.","link_button":"Export to Link","excalidrawplus_description":"Save the scene to your Excalidraw+ workspace.","excalidrawplus_button":"Export","excalidrawplus_exportError":"Couldn't export to Excalidraw+ at this moment..."},"helpDialog":{"blog":"Read our blog","click":"click","deepSelect":"Deep select","deepBoxSelect":"Deep select within box, and prevent dragging","curvedArrow":"Curved arrow","curvedLine":"Curved line","documentation":"Documentation","doubleClick":"double-click","drag":"drag","editor":"Editor","editLineArrowPoints":"Edit line/arrow points","editText":"Edit text / add label","github":"Found an issue? Submit","howto":"Follow our guides","or":"or","preventBinding":"Prevent arrow binding","tools":"Tools","shortcuts":"Keyboard shortcuts","textFinish":"Finish editing (text editor)","textNewLine":"Add new line (text editor)","title":"Help","view":"View","zoomToFit":"Zoom to fit all elements","zoomToSelection":"Zoom to selection","toggleElementLock":"Lock/unlock selection","movePageUpDown":"Move page up/down","movePageLeftRight":"Move page left/right"},"clearCanvasDialog":{"title":"Clear canvas"},"publishDialog":{"title":"Publish library","itemName":"Item name","authorName":"Author name","githubUsername":"GitHub username","twitterUsername":"Twitter username","libraryName":"Library name","libraryDesc":"Library description","website":"Website","placeholder":{"authorName":"Your name or username","libraryName":"Name of your library","libraryDesc":"Description of your library to help people understand its usage","githubHandle":"GitHub handle (optional), so you can edit the library once submitted for review","twitterHandle":"Twitter username (optional), so we know who to credit when promoting over Twitter","website":"Link to your personal website or elsewhere (optional)"},"errors":{"required":"Required","website":"Enter a valid URL"},"noteDescription":"Submit your library to be included in the <link>public library repository</link> for other people to use in their drawings.","noteGuidelines":"The library needs to be manually approved first. Please read the <link>guidelines</link> before submitting. You will need a GitHub account to communicate and make changes if requested, but it is not strictly required.","noteLicense":"By submitting, you agree the library will be published under the <link>MIT License</link>, which in short means anyone can use them without restrictions.","noteItems":"Each library item must have its own name so it's filterable. The following library items will be included:","atleastOneLibItem":"Please select at least one library item to get started","republishWarning":"Note: some of the selected items are marked as already published/submitted. You should only resubmit items when updating an existing library or submission."},"publishSuccessDialog":{"title":"Library submitted","content":"Thank you {{authorName}}. Your library has been submitted for review. You can track the status <link>here</link>"},"confirmDialog":{"resetLibrary":"Reset library","removeItemsFromLib":"Remove selected items from library"},"imageExportDialog":{"header":"Export image","label":{"withBackground":"Background","onlySelected":"Only selected","darkMode":"Dark mode","embedScene":"Embed scene","scale":"Scale","padding":"Padding"},"tooltip":{"embedScene":"Scene data will be saved into the exported PNG/SVG file so that the scene can be restored from it.\\nWill increase exported file size."},"title":{"exportToPng":"Export to PNG","exportToSvg":"Export to SVG","copyPngToClipboard":"Copy PNG to clipboard"},"button":{"exportToPng":"PNG","exportToSvg":"SVG","copyPngToClipboard":"Copy to clipboard"}},"encrypted":{"tooltip":"Your drawings are end-to-end encrypted so Excalidraw's servers will never see them.","link":"Blog post on end-to-end encryption in Excalidraw"},"stats":{"angle":"Angle","element":"Element","elements":"Elements","height":"Height","scene":"Scene","selected":"Selected","storage":"Storage","title":"Stats for nerds","total":"Total","version":"Version","versionCopy":"Click to copy","versionNotAvailable":"Version not available","width":"Width"},"toast":{"addedToLibrary":"Added to library","copyStyles":"Copied styles.","copyToClipboard":"Copied to clipboard.","copyToClipboardAsPng":"Copied {{exportSelection}} to clipboard as PNG\\n({{exportColorScheme}})","fileSaved":"File saved.","fileSavedToFilename":"Saved to {filename}","canvas":"canvas","selection":"selection","pasteAsSingleElement":"Use {{shortcut}} to paste as a single element,\\nor paste into an existing text editor","unableToEmbed":"Embedding this url is currently not allowed. Raise an issue on GitHub to request the url whitelisted","unrecognizedLinkFormat":"The link you embedded does not match the expected format. Please try to paste the 'embed' string provided by the source site"},"colors":{"transparent":"Transparent","black":"Black","white":"White","red":"Red","pink":"Pink","grape":"Grape","violet":"Violet","gray":"Gray","blue":"Blue","cyan":"Cyan","teal":"Teal","green":"Green","yellow":"Yellow","orange":"Orange","bronze":"Bronze"},"welcomeScreen":{"app":{"center_heading":"All your data is saved locally in your browser.","center_heading_plus":"Did you want to go to the Excalidraw+ instead?","menuHint":"Export, preferences, languages, ..."},"defaults":{"menuHint":"Export, preferences, and more...","center_heading":"Diagrams. Made. Simple.","toolbarHint":"Pick a tool & Start drawing!","helpHint":"Shortcuts & help"}},"colorPicker":{"mostUsedCustomColors":"Most used custom colors","colors":"Colors","shades":"Shades","hexCode":"Hex code","noShades":"No shades available for this color"},"overwriteConfirm":{"action":{"exportToImage":{"title":"Export as image","button":"Export as image","description":"Export the scene data as an image from which you can import later."},"saveToDisk":{"title":"Save to disk","button":"Save to disk","description":"Export the scene data to a file from which you can import later."},"excalidrawPlus":{"title":"Excalidraw+","button":"Export to Excalidraw+","description":"Save the scene to your Excalidraw+ workspace."}},"modal":{"loadFromFile":{"title":"Load from file","button":"Load from file","description":"Loading from a file will <bold>replace your existing content</bold>.<br></br>You can back up your drawing first using one of the options below."},"shareableLink":{"title":"Load from link","button":"Replace my content","description":"Loading external drawing will <bold>replace your existing content</bold>.<br></br>You can back up your drawing first by using one of the options below."}}},"mermaid":{"title":"Mermaid to Excalidraw","button":"Insert","description":"Currently only <flowchartLink>Flowcharts</flowchartLink> and <sequenceLink>Sequence Diagrams</sequenceLink> are supported. The other types will be rendered as image in Excalidraw.","syntax":"Mermaid Syntax","preview":"Preview"}}`)},4451:function(Se){Se.exports=JSON.parse('{"ar-SA":99,"az-AZ":18,"bg-BG":75,"bn-BD":55,"ca-ES":81,"cs-CZ":91,"da-DK":31,"de-DE":100,"el-GR":85,"en":100,"es-ES":96,"eu-ES":99,"fa-IR":87,"fi-FI":81,"fr-FR":98,"gl-ES":90,"he-IL":81,"hi-IN":75,"hu-HU":70,"id-ID":96,"it-IT":99,"ja-JP":95,"kaa":34,"kab-KAB":80,"kk-KZ":20,"km-KH":87,"ko-KR":100,"ku-TR":92,"lt-LT":51,"lv-LV":82,"mr-IN":92,"my-MM":37,"nb-NO":99,"nl-NL":79,"nn-NO":71,"oc-FR":79,"pa-IN":82,"pl-PL":100,"pt-BR":96,"pt-PT":88,"ro-RO":98,"ru-RU":94,"si-LK":8,"sk-SK":99,"sl-SI":100,"sv-SE":100,"ta-IN":85,"th-TH":46,"tr-TR":91,"uk-UA":99,"vi-VN":51,"zh-CN":99,"zh-HK":24,"zh-TW":100}')}},Ui={};function Wr(Se){var Q=Ui[Se];if(Q!==void 0)return Q.exports;var e=Ui[Se]={id:Se,exports:{}};return Fi[Se].call(e.exports,e,e.exports,Wr),e.exports}Wr.m=Fi,Wr.n=function(Se){var Q=Se&&Se.__esModule?function(){return Se.default}:function(){return Se};return Wr.d(Q,{a:Q}),Q},$o=Object.getPrototypeOf?function(Se){return Object.getPrototypeOf(Se)}:function(Se){return Se.__proto__},Wr.t=function(Se,Q){if(1&Q&&(Se=this(Se)),8&Q||typeof Se=="object"&&Se&&(4&Q&&Se.__esModule||16&Q&&typeof Se.then=="function"))return Se;var e=Object.create(null);Wr.r(e);var D={};ha=ha||[null,$o({}),$o([]),$o($o)];for(var E=2&Q&&Se;typeof E=="object"&&!~ha.indexOf(E);E=$o(E))Object.getOwnPropertyNames(E).forEach(function(y){D[y]=function(){return Se[y]}});return D.default=function(){return Se},Wr.d(e,D),e},Wr.d=function(Se,Q){for(var e in Q)Wr.o(Q,e)&&!Wr.o(Se,e)&&Object.defineProperty(Se,e,{enumerable:!0,get:Q[e]})},Wr.f={},Wr.e=function(Se){return Promise.all(Object.keys(Wr.f).reduce(function(Q,e){return Wr.f[e](Se,Q),Q},[]))},Wr.u=function(Se){return"excalidraw-assets/"+{22:"locales/kk-KZ-json",537:"locales/th-TH-json",663:"locales/kaa-json",1204:"locales/ja-JP-json",1302:"locales/si-LK-json",1477:"locales/my-MM-json",1513:"locales/el-GR-json",1628:"locales/bg-BG-json",1690:"locales/oc-FR-json",1790:"locales/da-DK-json",2091:"locales/ar-SA-json",2312:"locales/he-IL-json",2359:"locales/nb-NO-json",2404:"locales/ta-IN-json",2943:"locales/gl-ES-json",3024:"locales/nl-NL-json",3031:"locales/ku-TR-json",3082:"locales/de-DE-json",3162:"locales/pa-IN-json",3397:"locales/mr-IN-json",3421:"locales/zh-TW-json",3512:"locales/fi-FI-json",3674:"locales/pl-PL-json",3682:"locales/fr-FR-json",3721:"locales/pt-BR-json",3808:"locales/id-ID-json",3885:"locales/nn-NO-json",4e3:"locales/vi-VN-json",4568:"locales/az-AZ-json",4680:"locales/zh-CN-json",4736:"vendor",4977:"locales/tr-TR-json",5089:"locales/ro-RO-json",5130:"locales/ca-ES-json",5330:"locales/fa-IR-json",5395:"locales/pt-PT-json",6071:"locales/sl-SI-json",6239:"locales/it-IT-json",6265:"locales/cs-CZ-json",6566:"locales/km-KH-json",6768:"locales/lv-LV-json",6844:"locales/ko-KR-json",7368:"locales/hu-HU-json",7429:"locales/bn-BD-json",7759:"locales/uk-UA-json",7920:"locales/zh-HK-json",8081:"locales/eu-ES-json",8124:"locales/ru-RU-json",8340:"locales/lt-LT-json",8534:"locales/sv-SE-json",8750:"locales/sk-SK-json",8759:"locales/es-ES-json",9551:"locales/kab-KAB-json",9828:"locales/hi-IN-json"}[Se]+"-"+{22:"2224f237cc93465f126f",537:"9a390d3cc7a7a6226b63",663:"4d0a4868835d0334a549",1204:"2cb067da0fb518e73564",1302:"4921d4298abfa256fe6f",1477:"3ba296b6fcf2a2197a7c",1513:"4cbc2dbda5a5df636ee1",1628:"42fb0378311f3ade2627",1690:"644a5eaa1311f70cb697",1790:"a94944ac6fa9756d2fac",2091:"db7c644ccbeb85d54a47",2312:"a7bc2a673875b2e655e1",2359:"798d785698d467e76fcf",2404:"2fa1854af68381c61913",2943:"d11c7966c3c2f95756e0",3024:"2cf913fe2f491c5d7075",3031:"bafa8865ed7002bb249e",3082:"d82053ab52357510811b",3162:"165c5c2760688033b2cc",3397:"ad1359c30c334d05eee0",3421:"5a3fa7cacfa83c411d89",3512:"64c8902f10425e1b2e81",3674:"35c1f168f53af24b657a",3682:"d16a471290ba26a6c66a",3721:"370215dc506c58ee3217",3808:"6542dd92ab54a2c1c48e",3885:"aa607835ad9408789c5f",4e3:"9c1c2a9fa9d6b5a58223",4568:"08a6de50238dbb21926c",4680:"069c304b5011429be615",4736:"677e88ca78c86bddf13d",4977:"fc9b16e9dc2be2660439",5089:"3c32b962880e225d3416",5130:"a6b2c18f7e85cfd11599",5330:"76b039039b043cc4280c",5395:"6f3d80656622a222b4e2",6071:"efb839ef0456f5c72e6e",6239:"ab410570df07304cb0ca",6265:"ea03835d73f9b921f7c4",6566:"cbe8e2e8d26d30a3175c",6768:"f7f9363e42ee2e3a7c67",6844:"c2387972637d47f15765",7368:"0419027d32efac73d518",7429:"9ad9e5ae95c4c66297b1",7759:"82753e98dced302ac187",7920:"d9bf1e4e2d1f8650c680",8081:"671a4afcfce7b0a7660b",8124:"e1f4ed9d2d074f778304",8340:"9b7e91a51b90ee551cad",8534:"cfab3adbd37dd273c61e",8750:"27b59d7e026675f929c4",8759:"7afb66536ee40d852fa2",9551:"0d400ba2836cc0752cd6",9828:"4947c9dace32cc3c6eef"}[Se]+".js"},Wr.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),Wr.o=function(Se,Q){return Object.prototype.hasOwnProperty.call(Se,Q)},Jo={},oi="ExcalidrawLib:",Wr.l=function(Se,Q,e,D){if(Jo[Se])Jo[Se].push(Q);else{var E,y;if(e!==void 0)for(var h=document.getElementsByTagName("script"),S=0;S<h.length;S++){var I=h[S];if(I.getAttribute("src")==Se||I.getAttribute("data-webpack")==oi+e){E=I;break}}E||(y=!0,(E=document.createElement("script")).charset="utf-8",E.timeout=120,Wr.nc&&E.setAttribute("nonce",Wr.nc),E.setAttribute("data-webpack",oi+e),E.src=Se),Jo[Se]=[Q];var v=function(M,Z){E.onerror=E.onload=null,clearTimeout(n);var H=Jo[Se];if(delete Jo[Se],E.parentNode&&E.parentNode.removeChild(E),H&&H.forEach(function(W){return W(Z)}),M)return M(Z)},n=setTimeout(v.bind(null,void 0,{type:"timeout",target:E}),12e4);E.onerror=v.bind(null,E.onerror),E.onload=v.bind(null,E.onload),y&&document.head.appendChild(E)}},Wr.r=function(Se){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(Se,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Se,"__esModule",{value:!0})},Wr.p="",function(){Wr.b=document.baseURI||self.location.href;var Se={2848:0,1388:0};Wr.f.j=function(D,E){var y=Wr.o(Se,D)?Se[D]:void 0;if(y!==0)if(y)E.push(y[2]);else{var h=new Promise(function(v,n){y=Se[D]=[v,n]});E.push(y[2]=h);var S=Wr.p+Wr.u(D),I=new Error;Wr.l(S,function(v){if(Wr.o(Se,D)&&((y=Se[D])!==0&&(Se[D]=void 0),y)){var n=v&&(v.type==="load"?"missing":v.type),M=v&&v.target&&v.target.src;I.message="Loading chunk "+D+` failed. +(`+n+": "+M+")",I.name="ChunkLoadError",I.type=n,I.request=M,y[1](I)}},"chunk-"+D,D)}};var Q=function(D,E){var y,h,S=E[0],I=E[1],v=E[2],n=0;if(S.some(function(M){return Se[M]!==0})){for(y in I)Wr.o(I,y)&&(Wr.m[y]=I[y]);v&&v(Wr)}for(D&&D(E);n<S.length;n++)h=S[n],Wr.o(Se,h)&&Se[h]&&Se[h][0](),Se[h]=0},e=self.webpackChunkExcalidrawLib=self.webpackChunkExcalidrawLib||[];e.forEach(Q.bind(null,0)),e.push=Q.bind(null,e.push.bind(e))}(),Wr.nc=void 0;var ai={};return function(){Wr.r(ai),Wr.d(ai,{Button:function(){return u.zx},DefaultSidebar:function(){return u.Or},Excalidraw:function(){return u.Eb},FONT_FAMILY:function(){return u.ut},Footer:function(){return u.$_},LiveCollaborationTrigger:function(){return u.vO},MIME_TYPES:function(){return u.LO},MainMenu:function(){return u.lb},Sidebar:function(){return u.YE},THEME:function(){return u.C6},WelcomeScreen:function(){return u.B4},bumpVersion:function(){return u.ZP},convertToExcalidrawElements:function(){return u.wc},defaultLang:function(){return u.Fp},elementPartiallyOverlapsWithOrContainsBBox:function(){return u.sQ},elementsOverlappingBBox:function(){return u.Xs},exportToBlob:function(){return u.Fl},exportToCanvas:function(){return u.NL},exportToClipboard:function(){return u.i1},exportToSvg:function(){return u.$D},getCommonBounds:function(){return u.KP},getFreeDrawSvgPath:function(){return u.N7},getNonDeletedElements:function(){return u.Lm},getSceneVersion:function(){return u.Uo},isElementInsideBBox:function(){return u.Ne},isInvisiblySmallElement:function(){return u.QD},isLinearElement:function(){return u.bt},languages:function(){return u.Mj},loadFromBlob:function(){return u.cT},loadLibraryFromBlob:function(){return u.lV},loadSceneOrLibraryFromBlob:function(){return u.ZY},mergeLibraryItems:function(){return u.zh},mutateElement:function(){return u.DR},newElementWith:function(){return u.BE},normalizeLink:function(){return u.$u},parseLibraryTokensFromUrl:function(){return u.Di},restore:function(){return u.nu},restoreAppState:function(){return u.lY},restoreElements:function(){return u.ET},restoreLibraryItems:function(){return u.wJ},sceneCoordsToViewportCoords:function(){return u._i},serializeAsJSON:function(){return u.I_},serializeLibraryAsJSON:function(){return u.NI},useDevice:function(){return u.Fy},useHandleLibrary:function(){return u.xS},useI18n:function(){return u.QT},viewportCoordsToSceneCoords:function(){return u.dE}}),Wr(9937).Vi.TEST!=="production"&&(Wr.p=window.EXCALIDRAW_ASSET_PATH||"https://unpkg.com/".concat("@excalidraw/excalidraw","@").concat("0.17.0","/dist/"));var Se=function(){Array.prototype.at||Object.defineProperty(Array.prototype,"at",{value:function(U){if((U=Math.trunc(U)||0)<0&&(U+=this.length),!(U<0||U>=this.length))return this[U]},writable:!0,enumerable:!1,configurable:!0}),Element.prototype.replaceChildren||(Element.prototype.replaceChildren=function(){this.innerHTML="",this.append.apply(this,arguments)})},Q=Wr(3379),e=Wr.n(Q),D=Wr(7795),E=Wr.n(D),y=Wr(569),h=Wr.n(y),S=Wr(3565),I=Wr.n(S),v=Wr(9216),n=Wr.n(v),M=Wr(4589),Z=Wr.n(M),H=Wr(4295),W={};W.styleTagTransform=Z(),W.setAttributes=I(),W.insert=h().bind(null,"head"),W.domAPI=E(),W.insertStyleElement=n(),e()(H.Z,W),H.Z&&H.Z.locals&&H.Z.locals;var u=Wr(4864);Se()}(),ai}()})}(cl)),cl.exports}var xl={NEXT_PUBLIC_API_URL:"https://innei.ren/api/v2",NEXT_PUBLIC_GATEWAY_URL:"https://api.innei.ren",NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY:"pk_test_aaaaaaaaaaaaaaaaaxxxxxx",CLERK_SECRET_KEY:"sk_test_",NEXT_PUBLIC_CLERK_SIGN_IN_URL:"/sign-in",NEXT_PUBLIC_CLERK_SIGN_UP_URL:"/sign-up",NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL:"/",NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL:"/",OPENAI_API_KEY:"",TMDB_API_KEY:"",S3_ACCESS_KEY:"",S3_SECRET_KEY:""};xl.IS_PREACT==="true"?sl.exports=yl():sl.exports=bl();var ml=sl.exports;const wl=gl(ml),El=vl({__proto__:null,default:wl},[ml]);export{ml as a,El as m}; diff --git a/assets/mindmap-definition-377f8f1f-YpEvNrVg.js b/assets/mindmap-definition-377f8f1f-YpEvNrVg.js new file mode 100644 index 00000000000..39ace13bdc5 --- /dev/null +++ b/assets/mindmap-definition-377f8f1f-YpEvNrVg.js @@ -0,0 +1,109 @@ +import{l as ur,c as Qn,v as _l,C as Ul,y as _a,d as Ua,h as Hl,a0 as Yl,a1 as Xl,a2 as Wl,z as ql}from"./index.demo-_07sssxB.js";import{c as Vt,g as Ys}from"./index-qegmBwH1.js";import{c as Kl}from"./createText-423428c9-gj--wZwo.js";import"./owner-4YVbz2PN.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";function Zl(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var la=Zl,Ql=typeof Vt=="object"&&Vt&&Vt.Object===Object&&Vt,Jl=Ql,jl=Jl,eu=typeof self=="object"&&self&&self.Object===Object&&self,tu=jl||eu||Function("return this")(),tn=tu,ru=tn,au=function(){return ru.Date.now()},nu=au,iu=/\s/;function su(t){for(var e=t.length;e--&&iu.test(t.charAt(e)););return e}var ou=su,lu=ou,uu=/^\s+/;function fu(t){return t&&t.slice(0,lu(t)+1).replace(uu,"")}var hu=fu,vu=tn,cu=vu.Symbol,Jn=cu,Li=Jn,Xs=Object.prototype,du=Xs.hasOwnProperty,gu=Xs.toString,Vr=Li?Li.toStringTag:void 0;function pu(t){var e=du.call(t,Vr),r=t[Vr];try{t[Vr]=void 0;var a=!0}catch{}var n=gu.call(t);return a&&(e?t[Vr]=r:delete t[Vr]),n}var yu=pu,mu=Object.prototype,bu=mu.toString;function Eu(t){return bu.call(t)}var wu=Eu,Ai=Jn,xu=yu,Tu=wu,Cu="[object Null]",Du="[object Undefined]",Oi=Ai?Ai.toStringTag:void 0;function Su(t){return t==null?t===void 0?Du:Cu:Oi&&Oi in Object(t)?xu(t):Tu(t)}var Ws=Su;function Lu(t){return t!=null&&typeof t=="object"}var Au=Lu,Ou=Ws,Nu=Au,Iu="[object Symbol]";function Mu(t){return typeof t=="symbol"||Nu(t)&&Ou(t)==Iu}var ua=Mu,Ru=hu,Ni=la,ku=ua,Ii=NaN,Pu=/^[-+]0x[0-9a-f]+$/i,Bu=/^0b[01]+$/i,Fu=/^0o[0-7]+$/i,Gu=parseInt;function zu(t){if(typeof t=="number")return t;if(ku(t))return Ii;if(Ni(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Ni(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Ru(t);var r=Bu.test(t);return r||Fu.test(t)?Gu(t.slice(2),r?2:8):Pu.test(t)?Ii:+t}var $u=zu,Vu=la,Tn=nu,Mi=$u,_u="Expected a function",Uu=Math.max,Hu=Math.min;function Yu(t,e,r){var a,n,i,s,o,l,u=0,f=!1,h=!1,c=!0;if(typeof t!="function")throw new TypeError(_u);e=Mi(e)||0,Vu(r)&&(f=!!r.leading,h="maxWait"in r,i=h?Uu(Mi(r.maxWait)||0,e):i,c="trailing"in r?!!r.trailing:c);function v(S){var b=a,x=n;return a=n=void 0,u=S,s=t.apply(x,b),s}function d(S){return u=S,o=setTimeout(y,e),f?v(S):s}function g(S){var b=S-l,x=S-u,w=e-b;return h?Hu(w,i-x):w}function p(S){var b=S-l,x=S-u;return l===void 0||b>=e||b<0||h&&x>=i}function y(){var S=Tn();if(p(S))return E(S);o=setTimeout(y,g(S))}function E(S){return o=void 0,c&&a?v(S):(a=n=void 0,s)}function m(){o!==void 0&&clearTimeout(o),u=0,a=l=n=o=void 0}function T(){return o===void 0?s:E(Tn())}function C(){var S=Tn(),b=p(S);if(a=arguments,n=this,l=S,b){if(o===void 0)return d(l);if(h)return clearTimeout(o),o=setTimeout(y,e),v(l)}return o===void 0&&(o=setTimeout(y,e)),s}return C.cancel=m,C.flush=T,C}var Xu=Yu,qs={exports:{}};(function(t,e){(function(){var r,a,n,i,s,o,l,u,f,h,c,v,d,g,p;n=Math.floor,h=Math.min,a=function(y,E){return y<E?-1:y>E?1:0},f=function(y,E,m,T,C){var S;if(m==null&&(m=0),C==null&&(C=a),m<0)throw new Error("lo must be non-negative");for(T==null&&(T=y.length);m<T;)S=n((m+T)/2),C(E,y[S])<0?T=S:m=S+1;return[].splice.apply(y,[m,m-m].concat(E)),E},o=function(y,E,m){return m==null&&(m=a),y.push(E),g(y,0,y.length-1,m)},s=function(y,E){var m,T;return E==null&&(E=a),m=y.pop(),y.length?(T=y[0],y[0]=m,p(y,0,E)):T=m,T},u=function(y,E,m){var T;return m==null&&(m=a),T=y[0],y[0]=E,p(y,0,m),T},l=function(y,E,m){var T;return m==null&&(m=a),y.length&&m(y[0],E)<0&&(T=[y[0],E],E=T[0],y[0]=T[1],p(y,0,m)),E},i=function(y,E){var m,T,C,S,b,x;for(E==null&&(E=a),S=function(){x=[];for(var w=0,D=n(y.length/2);0<=D?w<D:w>D;0<=D?w++:w--)x.push(w);return x}.apply(this).reverse(),b=[],T=0,C=S.length;T<C;T++)m=S[T],b.push(p(y,m,E));return b},d=function(y,E,m){var T;if(m==null&&(m=a),T=y.indexOf(E),T!==-1)return g(y,0,T,m),p(y,T,m)},c=function(y,E,m){var T,C,S,b,x;if(m==null&&(m=a),C=y.slice(0,E),!C.length)return C;for(i(C,m),x=y.slice(E),S=0,b=x.length;S<b;S++)T=x[S],l(C,T,m);return C.sort(m).reverse()},v=function(y,E,m){var T,C,S,b,x,w,D,A,L;if(m==null&&(m=a),E*10<=y.length){if(S=y.slice(0,E).sort(m),!S.length)return S;for(C=S[S.length-1],D=y.slice(E),b=0,w=D.length;b<w;b++)T=D[b],m(T,C)<0&&(f(S,T,0,null,m),S.pop(),C=S[S.length-1]);return S}for(i(y,m),L=[],x=0,A=h(E,y.length);0<=A?x<A:x>A;0<=A?++x:--x)L.push(s(y,m));return L},g=function(y,E,m,T){var C,S,b;for(T==null&&(T=a),C=y[m];m>E;){if(b=m-1>>1,S=y[b],T(C,S)<0){y[m]=S,m=b;continue}break}return y[m]=C},p=function(y,E,m){var T,C,S,b,x;for(m==null&&(m=a),C=y.length,x=E,S=y[E],T=2*E+1;T<C;)b=T+1,b<C&&!(m(y[T],y[b])<0)&&(T=b),y[E]=y[T],E=T,T=2*E+1;return y[E]=S,g(y,x,E,m)},r=function(){y.push=o,y.pop=s,y.replace=u,y.pushpop=l,y.heapify=i,y.updateItem=d,y.nlargest=c,y.nsmallest=v;function y(E){this.cmp=E??a,this.nodes=[]}return y.prototype.push=function(E){return o(this.nodes,E,this.cmp)},y.prototype.pop=function(){return s(this.nodes,this.cmp)},y.prototype.peek=function(){return this.nodes[0]},y.prototype.contains=function(E){return this.nodes.indexOf(E)!==-1},y.prototype.replace=function(E){return u(this.nodes,E,this.cmp)},y.prototype.pushpop=function(E){return l(this.nodes,E,this.cmp)},y.prototype.heapify=function(){return i(this.nodes,this.cmp)},y.prototype.updateItem=function(E){return d(this.nodes,E,this.cmp)},y.prototype.clear=function(){return this.nodes=[]},y.prototype.empty=function(){return this.nodes.length===0},y.prototype.size=function(){return this.nodes.length},y.prototype.clone=function(){var E;return E=new y,E.nodes=this.nodes.slice(0),E},y.prototype.toArray=function(){return this.nodes.slice(0)},y.prototype.insert=y.prototype.push,y.prototype.top=y.prototype.peek,y.prototype.front=y.prototype.peek,y.prototype.has=y.prototype.contains,y.prototype.copy=y.prototype.clone,y}(),function(y,E){return t.exports=E()}(this,function(){return r})}).call(Vt)})(qs);var Wu=qs.exports,qu=Wu,Ku=Array.isArray,rn=Ku,Zu=rn,Qu=ua,Ju=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ju=/^\w*$/;function ef(t,e){if(Zu(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||Qu(t)?!0:ju.test(t)||!Ju.test(t)||e!=null&&t in Object(e)}var tf=ef,rf=Ws,af=la,nf="[object AsyncFunction]",sf="[object Function]",of="[object GeneratorFunction]",lf="[object Proxy]";function uf(t){if(!af(t))return!1;var e=rf(t);return e==sf||e==of||e==nf||e==lf}var ff=uf,hf=tn,vf=hf["__core-js_shared__"],cf=vf,Cn=cf,Ri=function(){var t=/[^.]+$/.exec(Cn&&Cn.keys&&Cn.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function df(t){return!!Ri&&Ri in t}var gf=df,pf=Function.prototype,yf=pf.toString;function mf(t){if(t!=null){try{return yf.call(t)}catch{}try{return t+""}catch{}}return""}var bf=mf,Ef=ff,wf=gf,xf=la,Tf=bf,Cf=/[\\^$.*+?()[\]{}|]/g,Df=/^\[object .+?Constructor\]$/,Sf=Function.prototype,Lf=Object.prototype,Af=Sf.toString,Of=Lf.hasOwnProperty,Nf=RegExp("^"+Af.call(Of).replace(Cf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function If(t){if(!xf(t)||wf(t))return!1;var e=Ef(t)?Nf:Df;return e.test(Tf(t))}var Mf=If;function Rf(t,e){return t?.[e]}var kf=Rf,Pf=Mf,Bf=kf;function Ff(t,e){var r=Bf(t,e);return Pf(r)?r:void 0}var jn=Ff,Gf=jn,zf=Gf(Object,"create"),an=zf,ki=an;function $f(){this.__data__=ki?ki(null):{},this.size=0}var Vf=$f;function _f(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Uf=_f,Hf=an,Yf="__lodash_hash_undefined__",Xf=Object.prototype,Wf=Xf.hasOwnProperty;function qf(t){var e=this.__data__;if(Hf){var r=e[t];return r===Yf?void 0:r}return Wf.call(e,t)?e[t]:void 0}var Kf=qf,Zf=an,Qf=Object.prototype,Jf=Qf.hasOwnProperty;function jf(t){var e=this.__data__;return Zf?e[t]!==void 0:Jf.call(e,t)}var eh=jf,th=an,rh="__lodash_hash_undefined__";function ah(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=th&&e===void 0?rh:e,this}var nh=ah,ih=Vf,sh=Uf,oh=Kf,lh=eh,uh=nh;function Or(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var a=t[e];this.set(a[0],a[1])}}Or.prototype.clear=ih;Or.prototype.delete=sh;Or.prototype.get=oh;Or.prototype.has=lh;Or.prototype.set=uh;var fh=Or;function hh(){this.__data__=[],this.size=0}var vh=hh;function ch(t,e){return t===e||t!==t&&e!==e}var Ks=ch,dh=Ks;function gh(t,e){for(var r=t.length;r--;)if(dh(t[r][0],e))return r;return-1}var nn=gh,ph=nn,yh=Array.prototype,mh=yh.splice;function bh(t){var e=this.__data__,r=ph(e,t);if(r<0)return!1;var a=e.length-1;return r==a?e.pop():mh.call(e,r,1),--this.size,!0}var Eh=bh,wh=nn;function xh(t){var e=this.__data__,r=wh(e,t);return r<0?void 0:e[r][1]}var Th=xh,Ch=nn;function Dh(t){return Ch(this.__data__,t)>-1}var Sh=Dh,Lh=nn;function Ah(t,e){var r=this.__data__,a=Lh(r,t);return a<0?(++this.size,r.push([t,e])):r[a][1]=e,this}var Oh=Ah,Nh=vh,Ih=Eh,Mh=Th,Rh=Sh,kh=Oh;function Nr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var a=t[e];this.set(a[0],a[1])}}Nr.prototype.clear=Nh;Nr.prototype.delete=Ih;Nr.prototype.get=Mh;Nr.prototype.has=Rh;Nr.prototype.set=kh;var Ph=Nr,Bh=jn,Fh=tn,Gh=Bh(Fh,"Map"),zh=Gh,Pi=fh,$h=Ph,Vh=zh;function _h(){this.size=0,this.__data__={hash:new Pi,map:new(Vh||$h),string:new Pi}}var Uh=_h;function Hh(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var Yh=Hh,Xh=Yh;function Wh(t,e){var r=t.__data__;return Xh(e)?r[typeof e=="string"?"string":"hash"]:r.map}var sn=Wh,qh=sn;function Kh(t){var e=qh(this,t).delete(t);return this.size-=e?1:0,e}var Zh=Kh,Qh=sn;function Jh(t){return Qh(this,t).get(t)}var jh=Jh,ev=sn;function tv(t){return ev(this,t).has(t)}var rv=tv,av=sn;function nv(t,e){var r=av(this,t),a=r.size;return r.set(t,e),this.size+=r.size==a?0:1,this}var iv=nv,sv=Uh,ov=Zh,lv=jh,uv=rv,fv=iv;function Ir(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var a=t[e];this.set(a[0],a[1])}}Ir.prototype.clear=sv;Ir.prototype.delete=ov;Ir.prototype.get=lv;Ir.prototype.has=uv;Ir.prototype.set=fv;var hv=Ir,Zs=hv,vv="Expected a function";function ei(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(vv);var r=function(){var a=arguments,n=e?e.apply(this,a):a[0],i=r.cache;if(i.has(n))return i.get(n);var s=t.apply(this,a);return r.cache=i.set(n,s)||i,s};return r.cache=new(ei.Cache||Zs),r}ei.Cache=Zs;var cv=ei,dv=cv,gv=500;function pv(t){var e=dv(t,function(a){return r.size===gv&&r.clear(),a}),r=e.cache;return e}var yv=pv,mv=yv,bv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ev=/\\(\\)?/g,wv=mv(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(bv,function(r,a,n,i){e.push(n?i.replace(Ev,"$1"):a||r)}),e}),Qs=wv;function xv(t,e){for(var r=-1,a=t==null?0:t.length,n=Array(a);++r<a;)n[r]=e(t[r],r,t);return n}var Js=xv,Bi=Jn,Tv=Js,Cv=rn,Dv=ua,Sv=1/0,Fi=Bi?Bi.prototype:void 0,Gi=Fi?Fi.toString:void 0;function js(t){if(typeof t=="string")return t;if(Cv(t))return Tv(t,js)+"";if(Dv(t))return Gi?Gi.call(t):"";var e=t+"";return e=="0"&&1/t==-Sv?"-0":e}var Lv=js,Av=Lv;function Ov(t){return t==null?"":Av(t)}var eo=Ov,Nv=rn,Iv=tf,Mv=Qs,Rv=eo;function kv(t,e){return Nv(t)?t:Iv(t,e)?[t]:Mv(Rv(t))}var to=kv,Pv=ua,Bv=1/0;function Fv(t){if(typeof t=="string"||Pv(t))return t;var e=t+"";return e=="0"&&1/t==-Bv?"-0":e}var ti=Fv,Gv=to,zv=ti;function $v(t,e){e=Gv(e,t);for(var r=0,a=e.length;t!=null&&r<a;)t=t[zv(e[r++])];return r&&r==a?t:void 0}var Vv=$v,_v=Vv;function Uv(t,e,r){var a=t==null?void 0:_v(t,e);return a===void 0?r:a}var Hv=Uv,Yv=jn,Xv=function(){try{var t=Yv(Object,"defineProperty");return t({},"",{}),t}catch{}}(),Wv=Xv,zi=Wv;function qv(t,e,r){e=="__proto__"&&zi?zi(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var Kv=qv,Zv=Kv,Qv=Ks,Jv=Object.prototype,jv=Jv.hasOwnProperty;function ec(t,e,r){var a=t[e];(!(jv.call(t,e)&&Qv(a,r))||r===void 0&&!(e in t))&&Zv(t,e,r)}var tc=ec,rc=9007199254740991,ac=/^(?:0|[1-9]\d*)$/;function nc(t,e){var r=typeof t;return e=e??rc,!!e&&(r=="number"||r!="symbol"&&ac.test(t))&&t>-1&&t%1==0&&t<e}var ic=nc,sc=tc,oc=to,lc=ic,$i=la,uc=ti;function fc(t,e,r,a){if(!$i(t))return t;e=oc(e,t);for(var n=-1,i=e.length,s=i-1,o=t;o!=null&&++n<i;){var l=uc(e[n]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(n!=s){var f=o[l];u=a?a(f,l,o):void 0,u===void 0&&(u=$i(f)?f:lc(e[n+1])?[]:{})}sc(o,l,u),o=o[l]}return t}var hc=fc,vc=hc;function cc(t,e,r){return t==null?t:vc(t,e,r)}var dc=cc;function gc(t,e){var r=-1,a=t.length;for(e||(e=Array(a));++r<a;)e[r]=t[r];return e}var pc=gc,yc=Js,mc=pc,bc=rn,Ec=ua,wc=Qs,xc=ti,Tc=eo;function Cc(t){return bc(t)?yc(t,xc):Ec(t)?[t]:mc(wc(Tc(t)))}var Dc=Cc,Sc=Xu,Lc=qu,Ac=Hv,Oc=dc,Nc=Dc;function fa(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var on=fa(Sc),ha=fa(Lc),Ic=fa(Ac),Mc=fa(Oc),Rc=fa(Nc);function Ue(t){"@babel/helpers - typeof";return Ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(t)}function ri(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vi(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function ai(t,e,r){return e&&Vi(t.prototype,e),r&&Vi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ro(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Et(t,e){return kc(t)||Pc(t,e)||Bc(t,e)||Fc()}function kc(t){if(Array.isArray(t))return t}function Pc(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var a=[],n=!0,i=!1,s,o;try{for(r=r.call(t);!(n=(s=r.next()).done)&&(a.push(s.value),!(e&&a.length===e));n=!0);}catch(l){i=!0,o=l}finally{try{!n&&r.return!=null&&r.return()}finally{if(i)throw o}}return a}}function Bc(t,e){if(t){if(typeof t=="string")return _i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _i(t,e)}}function _i(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function Fc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var $e=typeof window>"u"?null:window,Ui=$e?$e.navigator:null;$e&&$e.document;var Gc=Ue(""),ao=Ue({}),zc=Ue(function(){}),$c=typeof HTMLElement>"u"?"undefined":Ue(HTMLElement),va=function(e){return e&&e.instanceString&&Be(e.instanceString)?e.instanceString():null},ve=function(e){return e!=null&&Ue(e)==Gc},Be=function(e){return e!=null&&Ue(e)===zc},Me=function(e){return!ht(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},De=function(e){return e!=null&&Ue(e)===ao&&!Me(e)&&e.constructor===Object},Vc=function(e){return e!=null&&Ue(e)===ao},ae=function(e){return e!=null&&Ue(e)===Ue(1)&&!isNaN(e)},_c=function(e){return ae(e)&&Math.floor(e)===e},Ha=function(e){if($c!=="undefined")return e!=null&&e instanceof HTMLElement},ht=function(e){return ca(e)||no(e)},ca=function(e){return va(e)==="collection"&&e._private.single},no=function(e){return va(e)==="collection"&&!e._private.single},ni=function(e){return va(e)==="core"},io=function(e){return va(e)==="stylesheet"},Uc=function(e){return va(e)==="event"},Yt=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},Hc=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},Yc=function(e){return De(e)&&ae(e.x1)&&ae(e.x2)&&ae(e.y1)&&ae(e.y2)},Xc=function(e){return Vc(e)&&Be(e.then)},Wc=function(){return Ui&&Ui.userAgent.match(/msie|trident|edge/i)},Jr=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],s=0;s<arguments.length;s++)i.push(arguments[s]);return i.join("$")});var a=function n(){var i=this,s=arguments,o,l=r.apply(i,s),u=n.cache;return(o=u[l])||(o=u[l]=e.apply(i,s)),o};return a.cache={},a},ii=Jr(function(t){return t.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}),ln=Jr(function(t){return t.replace(/(-\w)/g,function(e){return e[1].toUpperCase()})}),so=Jr(function(t,e){return t+e[0].toUpperCase()+e.substring(1)},function(t,e){return t+"$"+e}),Hi=function(e){return Yt(e)?e:e.charAt(0).toUpperCase()+e.substring(1)},_e="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",qc="rgb[a]?\\(("+_e+"[%]?)\\s*,\\s*("+_e+"[%]?)\\s*,\\s*("+_e+"[%]?)(?:\\s*,\\s*("+_e+"))?\\)",Kc="rgb[a]?\\((?:"+_e+"[%]?)\\s*,\\s*(?:"+_e+"[%]?)\\s*,\\s*(?:"+_e+"[%]?)(?:\\s*,\\s*(?:"+_e+"))?\\)",Zc="hsl[a]?\\(("+_e+")\\s*,\\s*("+_e+"[%])\\s*,\\s*("+_e+"[%])(?:\\s*,\\s*("+_e+"))?\\)",Qc="hsl[a]?\\((?:"+_e+")\\s*,\\s*(?:"+_e+"[%])\\s*,\\s*(?:"+_e+"[%])(?:\\s*,\\s*(?:"+_e+"))?\\)",Jc="\\#[0-9a-fA-F]{3}",jc="\\#[0-9a-fA-F]{6}",oo=function(e,r){return e<r?-1:e>r?1:0},ed=function(e,r){return-1*oo(e,r)},de=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r<e.length;r++){var a=e[r];if(a!=null)for(var n=Object.keys(a),i=0;i<n.length;i++){var s=n[i];t[s]=a[s]}}return t},td=function(e){if(!(!(e.length===4||e.length===7)||e[0]!=="#")){var r=e.length===4,a,n,i,s=16;return r?(a=parseInt(e[1]+e[1],s),n=parseInt(e[2]+e[2],s),i=parseInt(e[3]+e[3],s)):(a=parseInt(e[1]+e[2],s),n=parseInt(e[3]+e[4],s),i=parseInt(e[5]+e[6],s)),[a,n,i]}},rd=function(e){var r,a,n,i,s,o,l,u;function f(d,g,p){return p<0&&(p+=1),p>1&&(p-=1),p<1/6?d+(g-d)*6*p:p<1/2?g:p<2/3?d+(g-d)*(2/3-p)*6:d}var h=new RegExp("^"+Zc+"$").exec(e);if(h){if(a=parseInt(h[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(h[2]),n<0||n>100||(n=n/100,i=parseFloat(h[3]),i<0||i>100)||(i=i/100,s=h[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(n===0)o=l=u=Math.round(i*255);else{var c=i<.5?i*(1+n):i+n-i*n,v=2*i-c;o=Math.round(255*f(v,c,a+1/3)),l=Math.round(255*f(v,c,a)),u=Math.round(255*f(v,c,a-1/3))}r=[o,l,u,s]}return r},ad=function(e){var r,a=new RegExp("^"+qc+"$").exec(e);if(a){r=[];for(var n=[],i=1;i<=3;i++){var s=a[i];if(s[s.length-1]==="%"&&(n[i]=!0),s=parseFloat(s),n[i]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var o=n[1]||n[2]||n[3],l=n[1]&&n[2]&&n[3];if(o&&!l)return;var u=a[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;r.push(u)}}return r},nd=function(e){return sd[e.toLowerCase()]},id=function(e){return(Me(e)?e:null)||nd(e)||td(e)||ad(e)||rd(e)},sd={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},lo=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i<n;i++){var s=a[i];if(De(s))throw Error("Tried to set map with object key");i<a.length-1?(r[s]==null&&(r[s]={}),r=r[s]):r[s]=e.value}},uo=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i<n;i++){var s=a[i];if(De(s))throw Error("Tried to get map with object key");if(r=r[s],r==null)return r}return r},Dn=$e?$e.performance:null,fo=Dn&&Dn.now?function(){return Dn.now()}:function(){return Date.now()},od=function(){if($e){if($e.requestAnimationFrame)return function(t){$e.requestAnimationFrame(t)};if($e.mozRequestAnimationFrame)return function(t){$e.mozRequestAnimationFrame(t)};if($e.webkitRequestAnimationFrame)return function(t){$e.webkitRequestAnimationFrame(t)};if($e.msRequestAnimationFrame)return function(t){$e.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(fo())},1e3/60)}}(),Ya=function(e){return od(e)},Mt=fo,br=9261,ho=65599,Xr=5381,vo=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:br,a=r,n;n=e.next(),!n.done;)a=a*ho+n.value|0;return a},jr=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:br;return r*ho+e|0},ea=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xr;return(r<<5)+r+e|0},ld=function(e,r){return e*2097152+r},Gt=function(e){return e[0]*2097152+e[1]},Ta=function(e,r){return[jr(e[0],r[0]),ea(e[1],r[1])]},ud=function(e,r){var a={value:0,done:!1},n=0,i=e.length,s={next:function(){return n<i?a.value=e[n++]:a.done=!0,a}};return vo(s,r)},ar=function(e,r){var a={value:0,done:!1},n=0,i=e.length,s={next:function(){return n<i?a.value=e.charCodeAt(n++):a.done=!0,a}};return vo(s,r)},co=function(){return fd(arguments)},fd=function(e){for(var r,a=0;a<e.length;a++){var n=e[a];a===0?r=ar(n):r=ar(n,r)}return r},Yi=!0,hd=console.warn!=null,vd=console.trace!=null,si=Number.MAX_SAFE_INTEGER||9007199254740991,go=function(){return!0},Xa=function(){return!1},Xi=function(){return 0},oi=function(){},Ge=function(e){throw new Error(e)},po=function(e){if(e!==void 0)Yi=!!e;else return Yi},Ne=function(e){po()&&(hd?console.warn(e):(console.log(e),vd&&console.trace()))},cd=function(e){return de({},e)},St=function(e){return e==null?e:Me(e)?e.slice():De(e)?cd(e):e},dd=function(e){return e.slice()},yo=function(e,r){for(r=e="";e++<36;r+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return r},gd={},mo=function(){return gd},Qe=function(e){var r=Object.keys(e);return function(a){for(var n={},i=0;i<r.length;i++){var s=r[i],o=a?.[s];n[s]=o===void 0?e[s]:o}return n}},Xt=function(e,r,a){for(var n=e.length-1;n>=0&&!(e[n]===r&&(e.splice(n,1),a));n--);},li=function(e){e.splice(0,e.length)},pd=function(e,r){for(var a=0;a<r.length;a++){var n=r[a];e.push(n)}},xt=function(e,r,a){return a&&(r=so(a,r)),e[r]},$t=function(e,r,a,n){a&&(r=so(a,r)),e[r]=n},yd=function(){function t(){ri(this,t),this._obj={}}return ai(t,[{key:"set",value:function(r,a){return this._obj[r]=a,this}},{key:"delete",value:function(r){return this._obj[r]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(r){return this._obj[r]!==void 0}},{key:"get",value:function(r){return this._obj[r]}}]),t}(),Lt=typeof Map<"u"?Map:yd,md="undefined",bd=function(){function t(e){if(ri(this,t),this._obj=Object.create(null),this.size=0,e!=null){var r;e.instanceString!=null&&e.instanceString()===this.instanceString()?r=e.toArray():r=e;for(var a=0;a<r.length;a++)this.add(r[a])}}return ai(t,[{key:"instanceString",value:function(){return"set"}},{key:"add",value:function(r){var a=this._obj;a[r]!==1&&(a[r]=1,this.size++)}},{key:"delete",value:function(r){var a=this._obj;a[r]===1&&(a[r]=0,this.size--)}},{key:"clear",value:function(){this._obj=Object.create(null)}},{key:"has",value:function(r){return this._obj[r]===1}},{key:"toArray",value:function(){var r=this;return Object.keys(this._obj).filter(function(a){return r.has(a)})}},{key:"forEach",value:function(r,a){return this.toArray().forEach(r,a)}}]),t}(),Mr=(typeof Set>"u"?"undefined":Ue(Set))!==md?Set:bd,un=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!ni(e)){Ge("An element must have a core reference and parameters set");return}var n=r.group;if(n==null&&(r.data&&r.data.source!=null&&r.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){Ge("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?n==="edges":!!r.pannable,active:!1,classes:new Mr,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),r.renderedPosition){var s=r.renderedPosition,o=e.pan(),l=e.zoom();i.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];Me(r.classes)?u=r.classes:ve(r.classes)&&(u=r.classes.split(/\s+/));for(var f=0,h=u.length;f<h;f++){var c=u[f];!c||c===""||i.classes.add(c)}this.createEmitter();var v=r.style||r.css;v&&(Ne("Setting a `style` bypass at element creation should be done only when absolutely necessary. Try to use the stylesheet instead."),this.style(v)),(a===void 0||a)&&this.restore()},Wi=function(e){return e={bfs:e.bfs||!e.dfs,dfs:e.dfs||!e.bfs},function(a,n,i){var s;De(a)&&!ht(a)&&(s=a,a=s.roots||s.root,n=s.visit,i=s.directed),i=arguments.length===2&&!Be(n)?n:i,n=Be(n)?n:function(){};for(var o=this._private.cy,l=a=ve(a)?this.filter(a):a,u=[],f=[],h={},c={},v={},d=0,g,p=this.byGroup(),y=p.nodes,E=p.edges,m=0;m<l.length;m++){var T=l[m],C=T.id();T.isNode()&&(u.unshift(T),e.bfs&&(v[C]=!0,f.push(T)),c[C]=0)}for(var S=function(){var I=e.bfs?u.shift():u.pop(),O=I.id();if(e.dfs){if(v[O])return"continue";v[O]=!0,f.push(I)}var P=c[O],R=h[O],M=R!=null?R.source():null,k=R!=null?R.target():null,B=R==null?void 0:I.same(M)?k[0]:M[0],G=void 0;if(G=n(I,R,B,d++,P),G===!0)return g=I,"break";if(G===!1)return"break";for(var F=I.connectedEdges().filter(function(W){return(!i||W.source().same(I))&&E.has(W)}),$=0;$<F.length;$++){var U=F[$],_=U.connectedNodes().filter(function(W){return!W.same(I)&&y.has(W)}),Y=_.id();_.length!==0&&!v[Y]&&(_=_[0],u.push(_),e.bfs&&(v[Y]=!0,f.push(_)),h[Y]=U,c[Y]=c[O]+1)}};u.length!==0;){var b=S();if(b!=="continue"&&b==="break")break}for(var x=o.collection(),w=0;w<f.length;w++){var D=f[w],A=h[D.id()];A!=null&&x.push(A),x.push(D)}return{path:o.collection(x),found:o.collection(g)}}},ta={breadthFirstSearch:Wi({bfs:!0}),depthFirstSearch:Wi({dfs:!0})};ta.bfs=ta.breadthFirstSearch;ta.dfs=ta.depthFirstSearch;var Ed=Qe({root:null,weight:function(e){return 1},directed:!1}),wd={dijkstra:function(e){if(!De(e)){var r=arguments;e={root:r[0],weight:r[1],directed:r[2]}}var a=Ed(e),n=a.root,i=a.weight,s=a.directed,o=this,l=i,u=ve(n)?this.filter(n)[0]:n[0],f={},h={},c={},v=this.byGroup(),d=v.nodes,g=v.edges;g.unmergeBy(function(P){return P.isLoop()});for(var p=function(R){return f[R.id()]},y=function(R,M){f[R.id()]=M,E.updateItem(R)},E=new ha.default(function(P,R){return p(P)-p(R)}),m=0;m<d.length;m++){var T=d[m];f[T.id()]=T.same(u)?0:1/0,E.push(T)}for(var C=function(R,M){for(var k=(s?R.edgesTo(M):R.edgesWith(M)).intersect(g),B=1/0,G,F=0;F<k.length;F++){var $=k[F],U=l($);(U<B||!G)&&(B=U,G=$)}return{edge:G,dist:B}};E.size()>0;){var S=E.pop(),b=p(S),x=S.id();if(c[x]=b,b!==1/0)for(var w=S.neighborhood().intersect(d),D=0;D<w.length;D++){var A=w[D],L=A.id(),I=C(S,A),O=b+I.dist;O<p(A)&&(y(A,O),h[L]={node:S,edge:I.edge})}}return{distanceTo:function(R){var M=ve(R)?d.filter(R)[0]:R[0];return c[M.id()]},pathTo:function(R){var M=ve(R)?d.filter(R)[0]:R[0],k=[],B=M,G=B.id();if(M.length>0)for(k.unshift(M);h[G];){var F=h[G];k.unshift(F.edge),k.unshift(F.node),B=F.node,G=B.id()}return o.spawn(k)}}}},xd={kruskal:function(e){e=e||function(m){return 1};for(var r=this.byGroup(),a=r.nodes,n=r.edges,i=a.length,s=new Array(i),o=a,l=function(T){for(var C=0;C<s.length;C++){var S=s[C];if(S.has(T))return C}},u=0;u<i;u++)s[u]=this.spawn(a[u]);for(var f=n.sort(function(m,T){return e(m)-e(T)}),h=0;h<f.length;h++){var c=f[h],v=c.source()[0],d=c.target()[0],g=l(v),p=l(d),y=s[g],E=s[p];g!==p&&(o.merge(c),y.merge(E),s.splice(p,1))}return o}},Td=Qe({root:null,goal:null,weight:function(e){return 1},heuristic:function(e){return 0},directed:!1}),Cd={aStar:function(e){var r=this.cy(),a=Td(e),n=a.root,i=a.goal,s=a.heuristic,o=a.directed,l=a.weight;n=r.collection(n)[0],i=r.collection(i)[0];var u=n.id(),f=i.id(),h={},c={},v={},d=new ha.default(function(G,F){return c[G.id()]-c[F.id()]}),g=new Mr,p={},y={},E=function(F,$){d.push(F),g.add($)},m,T,C=function(){m=d.pop(),T=m.id(),g.delete(T)},S=function(F){return g.has(F)};E(n,u),h[u]=0,c[u]=s(n);for(var b=0;d.size()>0;){if(C(),b++,T===f){for(var x=[],w=i,D=f,A=y[D];x.unshift(w),A!=null&&x.unshift(A),w=p[D],w!=null;)D=w.id(),A=y[D];return{found:!0,distance:h[T],path:this.spawn(x),steps:b}}v[T]=!0;for(var L=m._private.edges,I=0;I<L.length;I++){var O=L[I];if(this.hasElementWithId(O.id())&&!(o&&O.data("source")!==T)){var P=O.source(),R=O.target(),M=P.id()!==T?P:R,k=M.id();if(this.hasElementWithId(k)&&!v[k]){var B=h[T]+l(O);if(!S(k)){h[k]=B,c[k]=B+s(M),E(M,k),p[k]=m,y[k]=O;continue}B<h[k]&&(h[k]=B,c[k]=B+s(M),p[k]=m,y[k]=O)}}}}return{found:!1,distance:void 0,path:void 0,steps:b}}},Dd=Qe({weight:function(e){return 1},directed:!1}),Sd={floydWarshall:function(e){for(var r=this.cy(),a=Dd(e),n=a.weight,i=a.directed,s=n,o=this.byGroup(),l=o.nodes,u=o.edges,f=l.length,h=f*f,c=function(U){return l.indexOf(U)},v=function(U){return l[U]},d=new Array(h),g=0;g<h;g++){var p=g%f,y=(g-p)/f;y===p?d[g]=0:d[g]=1/0}for(var E=new Array(h),m=new Array(h),T=0;T<u.length;T++){var C=u[T],S=C.source()[0],b=C.target()[0];if(S!==b){var x=c(S),w=c(b),D=x*f+w,A=s(C);if(d[D]>A&&(d[D]=A,E[D]=w,m[D]=C),!i){var L=w*f+x;!i&&d[L]>A&&(d[L]=A,E[L]=x,m[L]=C)}}}for(var I=0;I<f;I++)for(var O=0;O<f;O++)for(var P=O*f+I,R=0;R<f;R++){var M=O*f+R,k=I*f+R;d[P]+d[k]<d[M]&&(d[M]=d[P]+d[k],E[M]=E[P])}var B=function(U){return(ve(U)?r.filter(U):U)[0]},G=function(U){return c(B(U))},F={distance:function(U,_){var Y=G(U),W=G(_);return d[Y*f+W]},path:function(U,_){var Y=G(U),W=G(_),z=v(Y);if(Y===W)return z.collection();if(E[Y*f+W]==null)return r.collection();var K=r.collection(),j=Y,Q;for(K.merge(z);Y!==W;)j=Y,Y=E[Y*f+W],Q=m[j*f+Y],K.merge(Q),K.merge(v(Y));return K}};return F}},Ld=Qe({weight:function(e){return 1},directed:!1,root:null}),Ad={bellmanFord:function(e){var r=this,a=Ld(e),n=a.weight,i=a.directed,s=a.root,o=n,l=this,u=this.cy(),f=this.byGroup(),h=f.edges,c=f.nodes,v=c.length,d=new Lt,g=!1,p=[];s=u.collection(s)[0],h.unmergeBy(function(le){return le.isLoop()});for(var y=h.length,E=function(se){var fe=d.get(se.id());return fe||(fe={},d.set(se.id(),fe)),fe},m=function(se){return(ve(se)?u.$(se):se)[0]},T=function(se){return E(m(se)).dist},C=function(se){for(var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s,xe=m(se),Ee=[],ge=xe;;){if(ge==null)return r.spawn();var we=E(ge),H=we.edge,N=we.pred;if(Ee.unshift(ge[0]),ge.same(fe)&&Ee.length>0)break;H!=null&&Ee.unshift(H),ge=N}return l.spawn(Ee)},S=0;S<v;S++){var b=c[S],x=E(b);b.same(s)?x.dist=0:x.dist=1/0,x.pred=null,x.edge=null}for(var w=!1,D=function(se,fe,xe,Ee,ge,we){var H=Ee.dist+we;H<ge.dist&&!xe.same(Ee.edge)&&(ge.dist=H,ge.pred=se,ge.edge=xe,w=!0)},A=1;A<v;A++){w=!1;for(var L=0;L<y;L++){var I=h[L],O=I.source(),P=I.target(),R=o(I),M=E(O),k=E(P);D(O,P,I,M,k,R),i||D(P,O,I,k,M,R)}if(!w)break}if(w)for(var B=[],G=0;G<y;G++){var F=h[G],$=F.source(),U=F.target(),_=o(F),Y=E($).dist,W=E(U).dist;if(Y+_<W||!i&&W+_<Y)if(g||(Ne("Graph contains a negative weight cycle for Bellman-Ford"),g=!0),e.findNegativeWeightCycles!==!1){var z=[];Y+_<W&&z.push($),!i&&W+_<Y&&z.push(U);for(var K=z.length,j=0;j<K;j++){var Q=z[j],ee=[Q];ee.push(E(Q).edge);for(var ne=E(Q).pred;ee.indexOf(ne)===-1;)ee.push(ne),ee.push(E(ne).edge),ne=E(ne).pred;ee=ee.slice(ee.indexOf(ne));for(var ce=ee[0].id(),te=0,re=2;re<ee.length;re+=2)ee[re].id()<ce&&(ce=ee[re].id(),te=re);ee=ee.slice(te).concat(ee.slice(0,te)),ee.push(ee[0]);var ue=ee.map(function(le){return le.id()}).join(",");B.indexOf(ue)===-1&&(p.push(l.spawn(ee)),B.push(ue))}}else break}return{distanceTo:T,pathTo:C,hasNegativeWeightCycle:g,negativeWeightCycles:p}}},Od=Math.sqrt(2),Nd=function(e,r,a){a.length===0&&Ge("Karger-Stein must be run on a connected (sub)graph");for(var n=a[e],i=n[1],s=n[2],o=r[i],l=r[s],u=a,f=u.length-1;f>=0;f--){var h=u[f],c=h[1],v=h[2];(r[c]===o&&r[v]===l||r[c]===l&&r[v]===o)&&u.splice(f,1)}for(var d=0;d<u.length;d++){var g=u[d];g[1]===l?(u[d]=g.slice(),u[d][1]=o):g[2]===l&&(u[d]=g.slice(),u[d][2]=o)}for(var p=0;p<r.length;p++)r[p]===l&&(r[p]=o);return u},Sn=function(e,r,a,n){for(;a>n;){var i=Math.floor(Math.random()*r.length);r=Nd(i,e,r),a--}return r},Id={kargerStein:function(){var e=this,r=this.byGroup(),a=r.nodes,n=r.edges;n.unmergeBy(function(k){return k.isLoop()});var i=a.length,s=n.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/Od);if(i<2){Ge("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],f=0;f<s;f++){var h=n[f];u.push([f,a.indexOf(h.source()),a.indexOf(h.target())])}for(var c=1/0,v=[],d=new Array(i),g=new Array(i),p=new Array(i),y=function(B,G){for(var F=0;F<i;F++)G[F]=B[F]},E=0;E<=o;E++){for(var m=0;m<i;m++)g[m]=m;var T=Sn(g,u.slice(),i,l),C=T.slice();y(g,p);var S=Sn(g,T,l,2),b=Sn(p,C,l,2);S.length<=b.length&&S.length<c?(c=S.length,v=S,y(g,d)):b.length<=S.length&&b.length<c&&(c=b.length,v=b,y(p,d))}for(var x=this.spawn(v.map(function(k){return n[k[0]]})),w=this.spawn(),D=this.spawn(),A=d[0],L=0;L<d.length;L++){var I=d[L],O=a[L];I===A?w.merge(O):D.merge(O)}var P=function(B){var G=e.spawn();return B.forEach(function(F){G.merge(F),F.connectedEdges().forEach(function($){e.contains($)&&!x.contains($)&&G.merge($)})}),G},R=[P(w),P(D)],M={cut:x,components:R,partition1:w,partition2:D};return M}},Md=function(e){return{x:e.x,y:e.y}},fn=function(e,r,a){return{x:e.x*r+a.x,y:e.y*r+a.y}},bo=function(e,r,a){return{x:(e.x-a.x)/r,y:(e.y-a.y)/r}},Er=function(e){return{x:e[0],y:e[1]}},Rd=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=r;i<a;i++){var s=e[i];isFinite(s)&&(n=Math.min(s,n))}return n},kd=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=r;i<a;i++){var s=e[i];isFinite(s)&&(n=Math.max(s,n))}return n},Pd=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,s=r;s<a;s++){var o=e[s];isFinite(o)&&(n+=o,i++)}return n/i},Bd=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(r,a):(a<e.length&&e.splice(a,e.length-a),r>0&&e.splice(0,r));for(var o=0,l=e.length-1;l>=0;l--){var u=e[l];s?isFinite(u)||(e[l]=-1/0,o++):e.splice(l,1)}i&&e.sort(function(c,v){return c-v});var f=e.length,h=Math.floor(f/2);return f%2!==0?e[h+1+o]:(e[h-1+o]+e[h+o])/2},Fd=function(e){return Math.PI*e/180},Ca=function(e,r){return Math.atan2(r,e)-Math.PI/2},ui=Math.log2||function(t){return Math.log(t)/Math.log(2)},Eo=function(e){return e>0?1:e<0?-1:0},nr=function(e,r){return Math.sqrt(er(e,r))},er=function(e,r){var a=r.x-e.x,n=r.y-e.y;return a*a+n*n},Gd=function(e){for(var r=e.length,a=0,n=0;n<r;n++)a+=e[n];for(var i=0;i<r;i++)e[i]=e[i]/a;return e},Ye=function(e,r,a,n){return(1-n)*(1-n)*e+2*(1-n)*n*r+n*n*a},xr=function(e,r,a,n){return{x:Ye(e.x,r.x,a.x,n),y:Ye(e.y,r.y,a.y,n)}},zd=function(e,r,a,n){var i={x:r.x-e.x,y:r.y-e.y},s=nr(e,r),o={x:i.x/s,y:i.y/s};return a=a??0,n=n??a*s,{x:e.x+o.x*n,y:e.y+o.y*n}},ra=function(e,r,a){return Math.max(e,Math.min(a,r))},ft=function(e){if(e==null)return{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0};if(e.x1!=null&&e.y1!=null){if(e.x2!=null&&e.y2!=null&&e.x2>=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},$d=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Vd=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},_d=function(e,r,a){return{x1:e.x1+r,x2:e.x2+r,y1:e.y1+a,y2:e.y2+a,w:e.w,h:e.h}},wo=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},Ud=function(e,r,a){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},ka=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Pa=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,s;if(r.length===1)a=n=i=s=r[0];else if(r.length===2)a=i=r[0],s=n=r[1];else if(r.length===4){var o=Et(r,4);a=o[0],n=o[1],i=o[2],s=o[3]}return e.x1-=s,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},qi=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},fi=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2<r.x1||r.x2<e.x1||e.y2<r.y1||r.y2<e.y1||e.y1>r.y2||r.y1>e.y2)},Sr=function(e,r,a){return e.x1<=r&&r<=e.x2&&e.y1<=a&&a<=e.y2},Hd=function(e,r){return Sr(e,r.x,r.y)},xo=function(e,r){return Sr(e,r.x1,r.y1)&&Sr(e,r.x2,r.y2)},To=function(e,r,a,n,i,s,o){var l=da(i,s),u=i/2,f=s/2,h;{var c=a-u+l-o,v=n-f-o,d=a+u-l+o,g=v;if(h=_t(e,r,a,n,c,v,d,g,!1),h.length>0)return h}{var p=a+u+o,y=n-f+l-o,E=p,m=n+f-l+o;if(h=_t(e,r,a,n,p,y,E,m,!1),h.length>0)return h}{var T=a-u+l-o,C=n+f+o,S=a+u-l+o,b=C;if(h=_t(e,r,a,n,T,C,S,b,!1),h.length>0)return h}{var x=a-u-o,w=n-f+l-o,D=x,A=n+f-l+o;if(h=_t(e,r,a,n,x,w,D,A,!1),h.length>0)return h}var L;{var I=a-u+l,O=n-f+l;if(L=Wr(e,r,a,n,I,O,l+o),L.length>0&&L[0]<=I&&L[1]<=O)return[L[0],L[1]]}{var P=a+u-l,R=n-f+l;if(L=Wr(e,r,a,n,P,R,l+o),L.length>0&&L[0]>=P&&L[1]<=R)return[L[0],L[1]]}{var M=a+u-l,k=n+f-l;if(L=Wr(e,r,a,n,M,k,l+o),L.length>0&&L[0]>=M&&L[1]>=k)return[L[0],L[1]]}{var B=a-u+l,G=n+f-l;if(L=Wr(e,r,a,n,B,G,l+o),L.length>0&&L[0]<=B&&L[1]>=G)return[L[0],L[1]]}return[]},Yd=function(e,r,a,n,i,s,o){var l=o,u=Math.min(a,i),f=Math.max(a,i),h=Math.min(n,s),c=Math.max(n,s);return u-l<=e&&e<=f+l&&h-l<=r&&r<=c+l},Xd=function(e,r,a,n,i,s,o,l,u){var f={x1:Math.min(a,o,i)-u,x2:Math.max(a,o,i)+u,y1:Math.min(n,l,s)-u,y2:Math.max(n,l,s)+u};return!(e<f.x1||e>f.x2||r<f.y1||r>f.y2)},Wd=function(e,r,a,n){a-=n;var i=r*r-4*e*a;if(i<0)return[];var s=Math.sqrt(i),o=2*e,l=(-r+s)/o,u=(-r-s)/o;return[l,u]},qd=function(e,r,a,n,i){var s=1e-5;e===0&&(e=s),r/=e,a/=e,n/=e;var o,l,u,f,h,c,v,d;if(l=(3*a-r*r)/9,u=-(27*n)+r*(9*a-2*(r*r)),u/=54,o=l*l*l+u*u,i[1]=0,v=r/3,o>0){h=u+Math.sqrt(o),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),c=u-Math.sqrt(o),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),i[0]=-v+h+c,v+=(h+c)/2,i[4]=i[2]=-v,v=Math.sqrt(3)*(-c+h)/2,i[3]=v,i[5]=-v;return}if(i[5]=i[3]=0,o===0){d=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-v+2*d,i[4]=i[2]=-(d+v);return}l=-l,f=l*l*l,f=Math.acos(u/Math.sqrt(f)),d=2*Math.sqrt(l),i[0]=-v+d*Math.cos(f/3),i[2]=-v+d*Math.cos((f+2*Math.PI)/3),i[4]=-v+d*Math.cos((f+4*Math.PI)/3)},Kd=function(e,r,a,n,i,s,o,l){var u=1*a*a-4*a*i+2*a*o+4*i*i-4*i*o+o*o+n*n-4*n*s+2*n*l+4*s*s-4*s*l+l*l,f=1*9*a*i-3*a*a-3*a*o-6*i*i+3*i*o+9*n*s-3*n*n-3*n*l-6*s*s+3*s*l,h=1*3*a*a-6*a*i+a*o-a*e+2*i*i+2*i*e-o*e+3*n*n-6*n*s+n*l-n*r+2*s*s+2*s*r-l*r,c=1*a*i-a*a+a*e-i*e+n*s-n*n+n*r-s*r,v=[];qd(u,f,h,c,v);for(var d=1e-7,g=[],p=0;p<6;p+=2)Math.abs(v[p+1])<d&&v[p]>=0&&v[p]<=1&&g.push(v[p]);g.push(1),g.push(0);for(var y=-1,E,m,T,C=0;C<g.length;C++)E=Math.pow(1-g[C],2)*a+2*(1-g[C])*g[C]*i+g[C]*g[C]*o,m=Math.pow(1-g[C],2)*n+2*(1-g[C])*g[C]*s+g[C]*g[C]*l,T=Math.pow(E-e,2)+Math.pow(m-r,2),y>=0?T<y&&(y=T):y=T;return y},Zd=function(e,r,a,n,i,s){var o=[e-a,r-n],l=[i-a,s-n],u=l[0]*l[0]+l[1]*l[1],f=o[0]*o[0]+o[1]*o[1],h=o[0]*l[0]+o[1]*l[1],c=h*h/u;return h<0?f:c>u?(e-i)*(e-i)+(r-s)*(r-s):f-c},ut=function(e,r,a){for(var n,i,s,o,l,u=0,f=0;f<a.length/2;f++)if(n=a[f*2],i=a[f*2+1],f+1<a.length/2?(s=a[(f+1)*2],o=a[(f+1)*2+1]):(s=a[(f+1-a.length/2)*2],o=a[(f+1-a.length/2)*2+1]),!(n==e&&s==e))if(n>=e&&e>=s||n<=e&&e<=s)l=(e-n)/(s-n)*(o-i)+i,l>r&&u++;else continue;return u%2!==0},Rt=function(e,r,a,n,i,s,o,l,u){var f=new Array(a.length),h;l[0]!=null?(h=Math.atan(l[1]/l[0]),l[0]<0?h=h+Math.PI/2:h=-h-Math.PI/2):h=l;for(var c=Math.cos(-h),v=Math.sin(-h),d=0;d<f.length/2;d++)f[d*2]=s/2*(a[d*2]*c-a[d*2+1]*v),f[d*2+1]=o/2*(a[d*2+1]*c+a[d*2]*v),f[d*2]+=n,f[d*2+1]+=i;var g;if(u>0){var p=qa(f,-u);g=Wa(p)}else g=f;return ut(e,r,g)},Qd=function(e,r,a,n,i,s,o){for(var l=new Array(a.length),u=s/2,f=o/2,h=hi(s,o),c=h*h,v=0;v<a.length/4;v++){var d=void 0,g=void 0;v===0?d=a.length-2:d=v*4-2,g=v*4+2;var p=n+u*a[v*4],y=i+f*a[v*4+1],E=-a[d]*a[g]-a[d+1]*a[g+1],m=h/Math.tan(Math.acos(E)/2),T=p-m*a[d],C=y-m*a[d+1],S=p+m*a[g],b=y+m*a[g+1];l[v*4]=T,l[v*4+1]=C,l[v*4+2]=S,l[v*4+3]=b;var x=a[d+1],w=-a[d],D=x*a[g]+w*a[g+1];D<0&&(x*=-1,w*=-1);var A=T+x*h,L=C+w*h,I=Math.pow(A-e,2)+Math.pow(L-r,2);if(I<=c)return!0}return ut(e,r,l)},Wa=function(e){for(var r=new Array(e.length/2),a,n,i,s,o,l,u,f,h=0;h<e.length/4;h++){a=e[h*4],n=e[h*4+1],i=e[h*4+2],s=e[h*4+3],h<e.length/4-1?(o=e[(h+1)*4],l=e[(h+1)*4+1],u=e[(h+1)*4+2],f=e[(h+1)*4+3]):(o=e[0],l=e[1],u=e[2],f=e[3]);var c=_t(a,n,i,s,o,l,u,f,!0);r[h*2]=c[0],r[h*2+1]=c[1]}return r},qa=function(e,r){for(var a=new Array(e.length*2),n,i,s,o,l=0;l<e.length/2;l++){n=e[l*2],i=e[l*2+1],l<e.length/2-1?(s=e[(l+1)*2],o=e[(l+1)*2+1]):(s=e[0],o=e[1]);var u=o-i,f=-(s-n),h=Math.sqrt(u*u+f*f),c=u/h,v=f/h;a[l*4]=n+c*r,a[l*4+1]=i+v*r,a[l*4+2]=s+c*r,a[l*4+3]=o+v*r}return a},Jd=function(e,r,a,n,i,s){var o=a-e,l=n-r;o/=i,l/=s;var u=Math.sqrt(o*o+l*l),f=u-1;if(f<0)return[];var h=f/u;return[(a-e)*h+e,(n-r)*h+r]},rr=function(e,r,a,n,i,s,o){return e-=i,r-=s,e/=a/2+o,r/=n/2+o,e*e+r*r<=1},Wr=function(e,r,a,n,i,s,o){var l=[a-e,n-r],u=[e-i,r-s],f=l[0]*l[0]+l[1]*l[1],h=2*(u[0]*l[0]+u[1]*l[1]),c=u[0]*u[0]+u[1]*u[1]-o*o,v=h*h-4*f*c;if(v<0)return[];var d=(-h+Math.sqrt(v))/(2*f),g=(-h-Math.sqrt(v))/(2*f),p=Math.min(d,g),y=Math.max(d,g),E=[];if(p>=0&&p<=1&&E.push(p),y>=0&&y<=1&&E.push(y),E.length===0)return[];var m=E[0]*l[0]+e,T=E[0]*l[1]+r;if(E.length>1){if(E[0]==E[1])return[m,T];var C=E[1]*l[0]+e,S=E[1]*l[1]+r;return[m,T,C,S]}else return[m,T]},Ln=function(e,r,a){return r<=e&&e<=a||a<=e&&e<=r?e:e<=r&&r<=a||a<=r&&r<=e?r:a},_t=function(e,r,a,n,i,s,o,l,u){var f=e-i,h=a-e,c=o-i,v=r-s,d=n-r,g=l-s,p=c*v-g*f,y=h*v-d*f,E=g*h-c*d;if(E!==0){var m=p/E,T=y/E,C=.001,S=0-C,b=1+C;return S<=m&&m<=b&&S<=T&&T<=b?[e+m*h,r+m*d]:u?[e+m*h,r+m*d]:[]}else return p===0||y===0?Ln(e,a,o)===o?[o,l]:Ln(e,a,i)===i?[i,s]:Ln(i,o,a)===a?[a,n]:[]:[]},aa=function(e,r,a,n,i,s,o,l){var u=[],f,h=new Array(a.length),c=!0;s==null&&(c=!1);var v;if(c){for(var d=0;d<h.length/2;d++)h[d*2]=a[d*2]*s+n,h[d*2+1]=a[d*2+1]*o+i;if(l>0){var g=qa(h,-l);v=Wa(g)}else v=h}else v=a;for(var p,y,E,m,T=0;T<v.length/2;T++)p=v[T*2],y=v[T*2+1],T<v.length/2-1?(E=v[(T+1)*2],m=v[(T+1)*2+1]):(E=v[0],m=v[1]),f=_t(e,r,n,i,p,y,E,m),f.length!==0&&u.push(f[0],f[1]);return u},jd=function(e,r,a,n,i,s,o,l){for(var u=[],f,h=new Array(a.length),c=s/2,v=o/2,d=hi(s,o),g=0;g<a.length/4;g++){var p=void 0,y=void 0;g===0?p=a.length-2:p=g*4-2,y=g*4+2;var E=n+c*a[g*4],m=i+v*a[g*4+1],T=-a[p]*a[y]-a[p+1]*a[y+1],C=d/Math.tan(Math.acos(T)/2),S=E-C*a[p],b=m-C*a[p+1],x=E+C*a[y],w=m+C*a[y+1];g===0?(h[a.length-2]=S,h[a.length-1]=b):(h[g*4-2]=S,h[g*4-1]=b),h[g*4]=x,h[g*4+1]=w;var D=a[p+1],A=-a[p],L=D*a[y]+A*a[y+1];L<0&&(D*=-1,A*=-1);var I=S+D*d,O=b+A*d;f=Wr(e,r,n,i,I,O,d),f.length!==0&&u.push(f[0],f[1])}for(var P=0;P<h.length/4;P++)f=_t(e,r,n,i,h[P*4],h[P*4+1],h[P*4+2],h[P*4+3],!1),f.length!==0&&u.push(f[0],f[1]);if(u.length>2){for(var R=[u[0],u[1]],M=Math.pow(R[0]-e,2)+Math.pow(R[1]-r,2),k=1;k<u.length/2;k++){var B=Math.pow(u[k*2]-e,2)+Math.pow(u[k*2+1]-r,2);B<=M&&(R[0]=u[k*2],R[1]=u[k*2+1],M=B)}return R}return u},Da=function(e,r,a){var n=[e[0]-r[0],e[1]-r[1]],i=Math.sqrt(n[0]*n[0]+n[1]*n[1]),s=(i-a)/i;return s<0&&(s=1e-5),[r[0]+s*n[0],r[1]+s*n[1]]},st=function(e,r){var a=Gn(e,r);return a=Co(a),a},Co=function(e){for(var r,a,n=e.length/2,i=1/0,s=1/0,o=-1/0,l=-1/0,u=0;u<n;u++)r=e[2*u],a=e[2*u+1],i=Math.min(i,r),o=Math.max(o,r),s=Math.min(s,a),l=Math.max(l,a);for(var f=2/(o-i),h=2/(l-s),c=0;c<n;c++)r=e[2*c]=e[2*c]*f,a=e[2*c+1]=e[2*c+1]*h,i=Math.min(i,r),o=Math.max(o,r),s=Math.min(s,a),l=Math.max(l,a);if(s<-1)for(var v=0;v<n;v++)a=e[2*v+1]=e[2*v+1]+(-1-s);return e},Gn=function(e,r){var a=1/e*2*Math.PI,n=e%2===0?Math.PI/2+a/2:Math.PI/2;n+=r;for(var i=new Array(e*2),s,o=0;o<e;o++)s=o*a+n,i[2*o]=Math.cos(s),i[2*o+1]=Math.sin(-s);return i},da=function(e,r){return Math.min(e/4,r/4,8)},hi=function(e,r){return Math.min(e/10,r/10,8)},Do=function(){return 8},eg=function(e,r,a){return[e-2*r+a,2*(r-e),e]},zn=function(e,r){return{heightOffset:Math.min(15,.05*r),widthOffset:Math.min(100,.25*e),ctrlPtOffsetPct:.05}},tg=Qe({dampingFactor:.8,precision:1e-6,iterations:200,weight:function(e){return 1}}),rg={pageRank:function(e){for(var r=tg(e),a=r.dampingFactor,n=r.precision,i=r.iterations,s=r.weight,o=this._private.cy,l=this.byGroup(),u=l.nodes,f=l.edges,h=u.length,c=h*h,v=f.length,d=new Array(c),g=new Array(h),p=(1-a)/h,y=0;y<h;y++){for(var E=0;E<h;E++){var m=y*h+E;d[m]=0}g[y]=0}for(var T=0;T<v;T++){var C=f[T],S=C.data("source"),b=C.data("target");if(S!==b){var x=u.indexOfId(S),w=u.indexOfId(b),D=s(C),A=w*h+x;d[A]+=D,g[x]+=D}}for(var L=1/h+p,I=0;I<h;I++)if(g[I]===0)for(var O=0;O<h;O++){var P=O*h+I;d[P]=L}else for(var R=0;R<h;R++){var M=R*h+I;d[M]=d[M]/g[I]+p}for(var k=new Array(h),B=new Array(h),G,F=0;F<h;F++)k[F]=1;for(var $=0;$<i;$++){for(var U=0;U<h;U++)B[U]=0;for(var _=0;_<h;_++)for(var Y=0;Y<h;Y++){var W=_*h+Y;B[_]+=d[W]*k[Y]}Gd(B),G=k,k=B,B=G;for(var z=0,K=0;K<h;K++){var j=G[K]-k[K];z+=j*j}if(z<n)break}var Q={rank:function(ne){return ne=o.collection(ne)[0],k[u.indexOf(ne)]}};return Q}},Ki=Qe({root:null,weight:function(e){return 1},directed:!1,alpha:0}),Tr={degreeCentralityNormalized:function(e){e=Ki(e);var r=this.cy(),a=this.nodes(),n=a.length;if(e.directed){for(var f={},h={},c=0,v=0,d=0;d<n;d++){var g=a[d],p=g.id();e.root=g;var y=this.degreeCentrality(e);c<y.indegree&&(c=y.indegree),v<y.outdegree&&(v=y.outdegree),f[p]=y.indegree,h[p]=y.outdegree}return{indegree:function(m){return c==0?0:(ve(m)&&(m=r.filter(m)),f[m.id()]/c)},outdegree:function(m){return v===0?0:(ve(m)&&(m=r.filter(m)),h[m.id()]/v)}}}else{for(var i={},s=0,o=0;o<n;o++){var l=a[o];e.root=l;var u=this.degreeCentrality(e);s<u.degree&&(s=u.degree),i[l.id()]=u.degree}return{degree:function(m){return s===0?0:(ve(m)&&(m=r.filter(m)),i[m.id()]/s)}}}},degreeCentrality:function(e){e=Ki(e);var r=this.cy(),a=this,n=e,i=n.root,s=n.weight,o=n.directed,l=n.alpha;if(i=r.collection(i)[0],o){for(var v=i.connectedEdges(),d=v.filter(function(S){return S.target().same(i)&&a.has(S)}),g=v.filter(function(S){return S.source().same(i)&&a.has(S)}),p=d.length,y=g.length,E=0,m=0,T=0;T<d.length;T++)E+=s(d[T]);for(var C=0;C<g.length;C++)m+=s(g[C]);return{indegree:Math.pow(p,1-l)*Math.pow(E,l),outdegree:Math.pow(y,1-l)*Math.pow(m,l)}}else{for(var u=i.connectedEdges().intersection(a),f=u.length,h=0,c=0;c<u.length;c++)h+=s(u[c]);return{degree:Math.pow(f,1-l)*Math.pow(h,l)}}}};Tr.dc=Tr.degreeCentrality;Tr.dcn=Tr.degreeCentralityNormalised=Tr.degreeCentralityNormalized;var Zi=Qe({harmonic:!0,weight:function(){return 1},directed:!1,root:null}),Cr={closenessCentralityNormalized:function(e){for(var r=Zi(e),a=r.harmonic,n=r.weight,i=r.directed,s=this.cy(),o={},l=0,u=this.nodes(),f=this.floydWarshall({weight:n,directed:i}),h=0;h<u.length;h++){for(var c=0,v=u[h],d=0;d<u.length;d++)if(h!==d){var g=f.distance(v,u[d]);a?c+=1/g:c+=g}a||(c=1/c),l<c&&(l=c),o[v.id()]=c}return{closeness:function(y){return l==0?0:(ve(y)?y=s.filter(y)[0].id():y=y.id(),o[y]/l)}}},closenessCentrality:function(e){var r=Zi(e),a=r.root,n=r.weight,i=r.directed,s=r.harmonic;a=this.filter(a)[0];for(var o=this.dijkstra({root:a,weight:n,directed:i}),l=0,u=this.nodes(),f=0;f<u.length;f++){var h=u[f];if(!h.same(a)){var c=o.distanceTo(h);s?l+=1/c:l+=c}}return s?l:1/l}};Cr.cc=Cr.closenessCentrality;Cr.ccn=Cr.closenessCentralityNormalised=Cr.closenessCentralityNormalized;var ag=Qe({weight:null,directed:!1}),$n={betweennessCentrality:function(e){for(var r=ag(e),a=r.directed,n=r.weight,i=n!=null,s=this.cy(),o=this.nodes(),l={},u={},f=0,h={set:function(m,T){u[m]=T,T>f&&(f=T)},get:function(m){return u[m]}},c=0;c<o.length;c++){var v=o[c],d=v.id();a?l[d]=v.outgoers().nodes():l[d]=v.openNeighborhood().nodes(),h.set(d,0)}for(var g=function(m){for(var T=o[m].id(),C=[],S={},b={},x={},w=new ha.default(function(Y,W){return x[Y]-x[W]}),D=0;D<o.length;D++){var A=o[D].id();S[A]=[],b[A]=0,x[A]=1/0}for(b[T]=1,x[T]=0,w.push(T);!w.empty();){var L=w.pop();if(C.push(L),i)for(var I=0;I<l[L].length;I++){var O=l[L][I],P=s.getElementById(L),R=void 0;P.edgesTo(O).length>0?R=P.edgesTo(O)[0]:R=O.edgesTo(P)[0];var M=n(R);O=O.id(),x[O]>x[L]+M&&(x[O]=x[L]+M,w.nodes.indexOf(O)<0?w.push(O):w.updateItem(O),b[O]=0,S[O]=[]),x[O]==x[L]+M&&(b[O]=b[O]+b[L],S[O].push(L))}else for(var k=0;k<l[L].length;k++){var B=l[L][k].id();x[B]==1/0&&(w.push(B),x[B]=x[L]+1),x[B]==x[L]+1&&(b[B]=b[B]+b[L],S[B].push(L))}}for(var G={},F=0;F<o.length;F++)G[o[F].id()]=0;for(;C.length>0;){for(var $=C.pop(),U=0;U<S[$].length;U++){var _=S[$][U];G[_]=G[_]+b[_]/b[$]*(1+G[$])}$!=o[m].id()&&h.set($,h.get($)+G[$])}},p=0;p<o.length;p++)g(p);var y={betweenness:function(m){var T=s.collection(m).id();return h.get(T)},betweennessNormalized:function(m){if(f==0)return 0;var T=s.collection(m).id();return h.get(T)/f}};return y.betweennessNormalised=y.betweennessNormalized,y}};$n.bc=$n.betweennessCentrality;var ng=Qe({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(t){return 1}]}),ig=function(e){return ng(e)},sg=function(e,r){for(var a=0,n=0;n<r.length;n++)a+=r[n](e);return a},og=function(e,r,a){for(var n=0;n<r;n++)e[n*r+n]=a},So=function(e,r){for(var a,n=0;n<r;n++){a=0;for(var i=0;i<r;i++)a+=e[i*r+n];for(var s=0;s<r;s++)e[s*r+n]=e[s*r+n]/a}},lg=function(e,r,a){for(var n=new Array(a*a),i=0;i<a;i++){for(var s=0;s<a;s++)n[i*a+s]=0;for(var o=0;o<a;o++)for(var l=0;l<a;l++)n[i*a+l]+=e[i*a+o]*r[o*a+l]}return n},ug=function(e,r,a){for(var n=e.slice(0),i=1;i<a;i++)e=lg(e,n,r);return e},fg=function(e,r,a){for(var n=new Array(r*r),i=0;i<r*r;i++)n[i]=Math.pow(e[i],a);return So(n,r),n},hg=function(e,r,a,n){for(var i=0;i<a;i++){var s=Math.round(e[i]*Math.pow(10,n))/Math.pow(10,n),o=Math.round(r[i]*Math.pow(10,n))/Math.pow(10,n);if(s!==o)return!1}return!0},vg=function(e,r,a,n){for(var i=[],s=0;s<r;s++){for(var o=[],l=0;l<r;l++)Math.round(e[s*r+l]*1e3)/1e3>0&&o.push(a[l]);o.length!==0&&i.push(n.collection(o))}return i},cg=function(e,r){for(var a=0;a<e.length;a++)if(!r[a]||e[a].id()!==r[a].id())return!1;return!0},dg=function(e){for(var r=0;r<e.length;r++)for(var a=0;a<e.length;a++)r!=a&&cg(e[r],e[a])&&e.splice(a,1);return e},Qi=function(e){for(var r=this.nodes(),a=this.edges(),n=this.cy(),i=ig(e),s={},o=0;o<r.length;o++)s[r[o].id()]=o;for(var l=r.length,u=l*l,f=new Array(u),h,c=0;c<u;c++)f[c]=0;for(var v=0;v<a.length;v++){var d=a[v],g=s[d.source().id()],p=s[d.target().id()],y=sg(d,i.attributes);f[g*l+p]+=y,f[p*l+g]+=y}og(f,l,i.multFactor),So(f,l);for(var E=!0,m=0;E&&m<i.maxIterations;)E=!1,h=ug(f,l,i.expandFactor),f=fg(h,l,i.inflateFactor),hg(f,h,u,4)||(E=!0),m++;var T=vg(f,l,r,n);return T=dg(T),T},gg={markovClustering:Qi,mcl:Qi},pg=function(e){return e},Lo=function(e,r){return Math.abs(r-e)},Ji=function(e,r,a){return e+Lo(r,a)},ji=function(e,r,a){return e+Math.pow(a-r,2)},yg=function(e){return Math.sqrt(e)},mg=function(e,r,a){return Math.max(e,Lo(r,a))},_r=function(e,r,a,n,i){for(var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:pg,o=n,l,u,f=0;f<e;f++)l=r(f),u=a(f),o=i(o,l,u);return s(o)},Lr={euclidean:function(e,r,a){return e>=2?_r(e,r,a,0,ji,yg):_r(e,r,a,0,Ji)},squaredEuclidean:function(e,r,a){return _r(e,r,a,0,ji)},manhattan:function(e,r,a){return _r(e,r,a,0,Ji)},max:function(e,r,a){return _r(e,r,a,-1/0,mg)}};Lr["squared-euclidean"]=Lr.squaredEuclidean;Lr.squaredeuclidean=Lr.squaredEuclidean;function hn(t,e,r,a,n,i){var s;return Be(t)?s=t:s=Lr[t]||Lr.euclidean,e===0&&Be(t)?s(n,i):s(e,r,a,n,i)}var bg=Qe({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),vi=function(e){return bg(e)},Ka=function(e,r,a,n,i){var s=i!=="kMedoids",o=s?function(h){return a[h]}:function(h){return n[h](a)},l=function(c){return n[c](r)},u=a,f=r;return hn(e,n.length,o,l,u,f)},An=function(e,r,a){for(var n=a.length,i=new Array(n),s=new Array(n),o=new Array(r),l=null,u=0;u<n;u++)i[u]=e.min(a[u]).value,s[u]=e.max(a[u]).value;for(var f=0;f<r;f++){l=[];for(var h=0;h<n;h++)l[h]=Math.random()*(s[h]-i[h])+i[h];o[f]=l}return o},Ao=function(e,r,a,n,i){for(var s=1/0,o=0,l=0;l<r.length;l++){var u=Ka(a,e,r[l],n,i);u<s&&(s=u,o=l)}return o},Oo=function(e,r,a){for(var n=[],i=null,s=0;s<r.length;s++)i=r[s],a[i.id()]===e&&n.push(i);return n},Eg=function(e,r,a){return Math.abs(r-e)<=a},wg=function(e,r,a){for(var n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++){var s=Math.abs(e[n][i]-r[n][i]);if(s>a)return!1}return!0},xg=function(e,r,a){for(var n=0;n<a;n++)if(e===r[n])return!0;return!1},es=function(e,r){var a=new Array(r);if(e.length<50)for(var n=0;n<r;n++){for(var i=e[Math.floor(Math.random()*e.length)];xg(i,a,n);)i=e[Math.floor(Math.random()*e.length)];a[n]=i}else for(var s=0;s<r;s++)a[s]=e[Math.floor(Math.random()*e.length)];return a},ts=function(e,r,a){for(var n=0,i=0;i<r.length;i++)n+=Ka("manhattan",r[i],e,a,"kMedoids");return n},Tg=function(e){var r=this.cy(),a=this.nodes(),n=null,i=vi(e),s=new Array(i.k),o={},l;i.testMode?typeof i.testCentroids=="number"?(i.testCentroids,l=An(a,i.k,i.attributes)):Ue(i.testCentroids)==="object"?l=i.testCentroids:l=An(a,i.k,i.attributes):l=An(a,i.k,i.attributes);for(var u=!0,f=0;u&&f<i.maxIterations;){for(var h=0;h<a.length;h++)n=a[h],o[n.id()]=Ao(n,l,i.distance,i.attributes,"kMeans");u=!1;for(var c=0;c<i.k;c++){var v=Oo(c,a,o);if(v.length!==0){for(var d=i.attributes.length,g=l[c],p=new Array(d),y=new Array(d),E=0;E<d;E++){y[E]=0;for(var m=0;m<v.length;m++)n=v[m],y[E]+=i.attributes[E](n);p[E]=y[E]/v.length,Eg(p[E],g[E],i.sensitivityThreshold)||(u=!0)}l[c]=p,s[c]=r.collection(v)}}f++}return s},Cg=function(e){var r=this.cy(),a=this.nodes(),n=null,i=vi(e),s=new Array(i.k),o,l={},u,f=new Array(i.k);i.testMode?typeof i.testCentroids=="number"||(Ue(i.testCentroids)==="object"?o=i.testCentroids:o=es(a,i.k)):o=es(a,i.k);for(var h=!0,c=0;h&&c<i.maxIterations;){for(var v=0;v<a.length;v++)n=a[v],l[n.id()]=Ao(n,o,i.distance,i.attributes,"kMedoids");h=!1;for(var d=0;d<o.length;d++){var g=Oo(d,a,l);if(g.length!==0){f[d]=ts(o[d],g,i.attributes);for(var p=0;p<g.length;p++)u=ts(g[p],g,i.attributes),u<f[d]&&(f[d]=u,o[d]=g[p],h=!0);s[d]=r.collection(g)}}c++}return s},Dg=function(e,r,a,n,i){for(var s,o,l=0;l<r.length;l++)for(var u=0;u<e.length;u++)n[l][u]=Math.pow(a[l][u],i.m);for(var f=0;f<e.length;f++)for(var h=0;h<i.attributes.length;h++){s=0,o=0;for(var c=0;c<r.length;c++)s+=n[c][f]*i.attributes[h](r[c]),o+=n[c][f];e[f][h]=s/o}},Sg=function(e,r,a,n,i){for(var s=0;s<e.length;s++)r[s]=e[s].slice();for(var o,l,u,f=2/(i.m-1),h=0;h<a.length;h++)for(var c=0;c<n.length;c++){o=0;for(var v=0;v<a.length;v++)l=Ka(i.distance,n[c],a[h],i.attributes,"cmeans"),u=Ka(i.distance,n[c],a[v],i.attributes,"cmeans"),o+=Math.pow(l/u,f);e[c][h]=1/o}},Lg=function(e,r,a,n){for(var i=new Array(a.k),s=0;s<i.length;s++)i[s]=[];for(var o,l,u=0;u<r.length;u++){o=-1/0,l=-1;for(var f=0;f<r[0].length;f++)r[u][f]>o&&(o=r[u][f],l=f);i[l].push(e[u])}for(var h=0;h<i.length;h++)i[h]=n.collection(i[h]);return i},rs=function(e){var r=this.cy(),a=this.nodes(),n=vi(e),i,s,o,l,u;l=new Array(a.length);for(var f=0;f<a.length;f++)l[f]=new Array(n.k);o=new Array(a.length);for(var h=0;h<a.length;h++)o[h]=new Array(n.k);for(var c=0;c<a.length;c++){for(var v=0,d=0;d<n.k;d++)o[c][d]=Math.random(),v+=o[c][d];for(var g=0;g<n.k;g++)o[c][g]=o[c][g]/v}s=new Array(n.k);for(var p=0;p<n.k;p++)s[p]=new Array(n.attributes.length);u=new Array(a.length);for(var y=0;y<a.length;y++)u[y]=new Array(n.k);for(var E=!0,m=0;E&&m<n.maxIterations;)E=!1,Dg(s,a,o,u,n),Sg(o,l,s,a,n),wg(o,l,n.sensitivityThreshold)||(E=!0),m++;return i=Lg(a,o,n,r),{clusters:i,degreeOfMembership:o}},Ag={kMeans:Tg,kMedoids:Cg,fuzzyCMeans:rs,fcm:rs},Og=Qe({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),Ng={single:"min",complete:"max"},Ig=function(e){var r=Og(e),a=Ng[r.linkage];return a!=null&&(r.linkage=a),r},as=function(e,r,a,n,i){for(var s=0,o=1/0,l,u=i.attributes,f=function(w,D){return hn(i.distance,u.length,function(A){return u[A](w)},function(A){return u[A](D)},w,D)},h=0;h<e.length;h++){var c=e[h].key,v=a[c][n[c]];v<o&&(s=c,o=v)}if(i.mode==="threshold"&&o>=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var d=r[s],g=r[n[s]],p;i.mode==="dendrogram"?p={left:d,right:g,key:d.key}:p={value:d.value.concat(g.value),key:d.key},e[d.index]=p,e.splice(g.index,1),r[d.key]=p;for(var y=0;y<e.length;y++){var E=e[y];d.key===E.key?l=1/0:i.linkage==="min"?(l=a[d.key][E.key],a[d.key][E.key]>a[g.key][E.key]&&(l=a[g.key][E.key])):i.linkage==="max"?(l=a[d.key][E.key],a[d.key][E.key]<a[g.key][E.key]&&(l=a[g.key][E.key])):i.linkage==="mean"?l=(a[d.key][E.key]*d.size+a[g.key][E.key]*g.size)/(d.size+g.size):i.mode==="dendrogram"?l=f(E.value,d.value):l=f(E.value[0],d.value[0]),a[d.key][E.key]=a[E.key][d.key]=l}for(var m=0;m<e.length;m++){var T=e[m].key;if(n[T]===d.key||n[T]===g.key){for(var C=T,S=0;S<e.length;S++){var b=e[S].key;a[T][b]<a[T][C]&&(C=b)}n[T]=C}e[m].index=m}return d.key=g.key=d.index=g.index=null,!0},Sa=function t(e,r,a){e&&(e.value?r.push(e.value):(e.left&&t(e.left,r),e.right&&t(e.right,r)))},Mg=function t(e,r){if(!e)return"";if(e.left&&e.right){var a=t(e.left,r),n=t(e.right,r),i=r.add({group:"nodes",data:{id:a+","+n}});return r.add({group:"edges",data:{source:a,target:i.id()}}),r.add({group:"edges",data:{source:n,target:i.id()}}),i.id()}else if(e.value)return e.value.id()},Rg=function t(e,r,a){if(!e)return[];var n=[],i=[],s=[];return r===0?(e.left&&Sa(e.left,n),e.right&&Sa(e.right,i),s=n.concat(i),[a.collection(s)]):r===1?e.value?[a.collection(e.value)]:(e.left&&Sa(e.left,n),e.right&&Sa(e.right,i),[a.collection(n),a.collection(i)]):e.value?[a.collection(e.value)]:(e.left&&(n=t(e.left,r-1,a)),e.right&&(i=t(e.right,r-1,a)),n.concat(i))},ns=function(e){for(var r=this.cy(),a=this.nodes(),n=Ig(e),i=n.attributes,s=function(m,T){return hn(n.distance,i.length,function(C){return i[C](m)},function(C){return i[C](T)},m,T)},o=[],l=[],u=[],f=[],h=0;h<a.length;h++){var c={value:n.mode==="dendrogram"?a[h]:[a[h]],key:h,index:h};o[h]=c,f[h]=c,l[h]=[],u[h]=0}for(var v=0;v<o.length;v++)for(var d=0;d<=v;d++){var g=void 0;n.mode==="dendrogram"?g=v===d?1/0:s(o[v].value,o[d].value):g=v===d?1/0:s(o[v].value[0],o[d].value[0]),l[v][d]=g,l[d][v]=g,g<l[v][u[v]]&&(u[v]=d)}for(var p=as(o,f,l,u,n);p;)p=as(o,f,l,u,n);var y;return n.mode==="dendrogram"?(y=Rg(o[0],n.dendrogramDepth,r),n.addDendrogram&&Mg(o[0],r)):(y=new Array(o.length),o.forEach(function(E,m){E.key=E.index=null,y[m]=r.collection(E.value)})),y},kg={hierarchicalClustering:ns,hca:ns},Pg=Qe({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),Bg=function(e){var r=e.damping,a=e.preference;.5<=r&&r<1||Ge("Damping must range on [0.5, 1). Got: ".concat(r));var n=["median","mean","min","max"];return n.some(function(i){return i===a})||ae(a)||Ge("Preference must be one of [".concat(n.map(function(i){return"'".concat(i,"'")}).join(", "),"] or a number. Got: ").concat(a)),Pg(e)},Fg=function(e,r,a,n){var i=function(o,l){return n[l](o)};return-hn(e,n.length,function(s){return i(r,s)},function(s){return i(a,s)},r,a)},Gg=function(e,r){var a=null;return r==="median"?a=Bd(e):r==="mean"?a=Pd(e):r==="min"?a=Rd(e):r==="max"?a=kd(e):a=r,a},zg=function(e,r,a){for(var n=[],i=0;i<e;i++)r[i*e+i]+a[i*e+i]>0&&n.push(i);return n},is=function(e,r,a){for(var n=[],i=0;i<e;i++){for(var s=-1,o=-1/0,l=0;l<a.length;l++){var u=a[l];r[i*e+u]>o&&(s=u,o=r[i*e+u])}s>0&&n.push(s)}for(var f=0;f<a.length;f++)n[a[f]]=a[f];return n},$g=function(e,r,a){for(var n=is(e,r,a),i=0;i<a.length;i++){for(var s=[],o=0;o<n.length;o++)n[o]===a[i]&&s.push(o);for(var l=-1,u=-1/0,f=0;f<s.length;f++){for(var h=0,c=0;c<s.length;c++)h+=r[s[c]*e+s[f]];h>u&&(l=f,u=h)}a[i]=s[l]}return n=is(e,r,a),n},ss=function(e){for(var r=this.cy(),a=this.nodes(),n=Bg(e),i={},s=0;s<a.length;s++)i[a[s].id()]=s;var o,l,u,f,h,c;o=a.length,l=o*o,u=new Array(l);for(var v=0;v<l;v++)u[v]=-1/0;for(var d=0;d<o;d++)for(var g=0;g<o;g++)d!==g&&(u[d*o+g]=Fg(n.distance,a[d],a[g],n.attributes));f=Gg(u,n.preference);for(var p=0;p<o;p++)u[p*o+p]=f;h=new Array(l);for(var y=0;y<l;y++)h[y]=0;c=new Array(l);for(var E=0;E<l;E++)c[E]=0;for(var m=new Array(o),T=new Array(o),C=new Array(o),S=0;S<o;S++)m[S]=0,T[S]=0,C[S]=0;for(var b=new Array(o*n.minIterations),x=0;x<b.length;x++)b[x]=0;var w;for(w=0;w<n.maxIterations;w++){for(var D=0;D<o;D++){for(var A=-1/0,L=-1/0,I=-1,O=0,P=0;P<o;P++)m[P]=h[D*o+P],O=c[D*o+P]+u[D*o+P],O>=A?(L=A,A=O,I=P):O>L&&(L=O);for(var R=0;R<o;R++)h[D*o+R]=(1-n.damping)*(u[D*o+R]-A)+n.damping*m[R];h[D*o+I]=(1-n.damping)*(u[D*o+I]-L)+n.damping*m[I]}for(var M=0;M<o;M++){for(var k=0,B=0;B<o;B++)m[B]=c[B*o+M],T[B]=Math.max(0,h[B*o+M]),k+=T[B];k-=T[M],T[M]=h[M*o+M],k+=T[M];for(var G=0;G<o;G++)c[G*o+M]=(1-n.damping)*Math.min(0,k-T[G])+n.damping*m[G];c[M*o+M]=(1-n.damping)*(k-T[M])+n.damping*m[M]}for(var F=0,$=0;$<o;$++){var U=c[$*o+$]+h[$*o+$]>0?1:0;b[w%n.minIterations*o+$]=U,F+=U}if(F>0&&(w>=n.minIterations-1||w==n.maxIterations-1)){for(var _=0,Y=0;Y<o;Y++){C[Y]=0;for(var W=0;W<n.minIterations;W++)C[Y]+=b[W*o+Y];(C[Y]===0||C[Y]===n.minIterations)&&_++}if(_===o)break}}for(var z=zg(o,h,c),K=$g(o,u,z),j={},Q=0;Q<z.length;Q++)j[z[Q]]=[];for(var ee=0;ee<a.length;ee++){var ne=i[a[ee].id()],ce=K[ne];ce!=null&&j[ce].push(a[ee])}for(var te=new Array(z.length),re=0;re<z.length;re++)te[re]=r.collection(j[z[re]]);return te},Vg={affinityPropagation:ss,ap:ss},_g=Qe({root:void 0,directed:!1}),Ug={hierholzer:function(e){if(!De(e)){var r=arguments;e={root:r[0],directed:r[1]}}var a=_g(e),n=a.root,i=a.directed,s=this,o=!1,l,u,f;n&&(f=ve(n)?this.filter(n)[0].id():n[0].id());var h={},c={};i?s.forEach(function(E){var m=E.id();if(E.isNode()){var T=E.indegree(!0),C=E.outdegree(!0),S=T-C,b=C-T;S==1?l?o=!0:l=m:b==1?u?o=!0:u=m:(b>1||S>1)&&(o=!0),h[m]=[],E.outgoers().forEach(function(x){x.isEdge()&&h[m].push(x.id())})}else c[m]=[void 0,E.target().id()]}):s.forEach(function(E){var m=E.id();if(E.isNode()){var T=E.degree(!0);T%2&&(l?u?o=!0:u=m:l=m),h[m]=[],E.connectedEdges().forEach(function(C){return h[m].push(C.id())})}else c[m]=[E.source().id(),E.target().id()]});var v={found:!1,trail:void 0};if(o)return v;if(u&&l)if(i){if(f&&u!=f)return v;f=u}else{if(f&&u!=f&&l!=f)return v;f||(f=u)}else f||(f=s[0].id());var d=function(m){for(var T=m,C=[m],S,b,x;h[T].length;)S=h[T].shift(),b=c[S][0],x=c[S][1],T!=x?(h[x]=h[x].filter(function(w){return w!=S}),T=x):!i&&T!=b&&(h[b]=h[b].filter(function(w){return w!=S}),T=b),C.unshift(S),C.unshift(T);return C},g=[],p=[];for(p=d(f);p.length!=1;)h[p[0]].length==0?(g.unshift(s.getElementById(p.shift())),g.unshift(s.getElementById(p.shift()))):p=d(p.shift()).concat(p);g.unshift(s.getElementById(p.shift()));for(var y in h)if(h[y].length)return v;return v.found=!0,v.trail=this.spawn(g,!0),v}},La=function(){var e=this,r={},a=0,n=0,i=[],s=[],o={},l=function(c,v){for(var d=s.length-1,g=[],p=e.spawn();s[d].x!=c||s[d].y!=v;)g.push(s.pop().edge),d--;g.push(s.pop().edge),g.forEach(function(y){var E=y.connectedNodes().intersection(e);p.merge(y),E.forEach(function(m){var T=m.id(),C=m.connectedEdges().intersection(e);p.merge(m),r[T].cutVertex?p.merge(C.filter(function(S){return S.isLoop()})):p.merge(C)})}),i.push(p)},u=function h(c,v,d){c===d&&(n+=1),r[v]={id:a,low:a++,cutVertex:!1};var g=e.getElementById(v).connectedEdges().intersection(e);if(g.size()===0)i.push(e.spawn(e.getElementById(v)));else{var p,y,E,m;g.forEach(function(T){p=T.source().id(),y=T.target().id(),E=p===v?y:p,E!==d&&(m=T.id(),o[m]||(o[m]=!0,s.push({x:v,y:E,edge:T})),E in r?r[v].low=Math.min(r[v].low,r[E].id):(h(c,E,v),r[v].low=Math.min(r[v].low,r[E].low),r[v].id<=r[E].low&&(r[v].cutVertex=!0,l(v,E))))})}};e.forEach(function(h){if(h.isNode()){var c=h.id();c in r||(n=0,u(c,c),r[c].cutVertex=n>1)}});var f=Object.keys(r).filter(function(h){return r[h].cutVertex}).map(function(h){return e.getElementById(h)});return{cut:e.spawn(f),components:i}},Hg={hopcroftTarjanBiconnected:La,htbc:La,htb:La,hopcroftTarjanBiconnectedComponents:La},Aa=function(){var e=this,r={},a=0,n=[],i=[],s=e.spawn(e),o=function l(u){i.push(u),r[u]={index:a,low:a++,explored:!1};var f=e.getElementById(u).connectedEdges().intersection(e);if(f.forEach(function(g){var p=g.target().id();p!==u&&(p in r||l(p),r[p].explored||(r[u].low=Math.min(r[u].low,r[p].low)))}),r[u].index===r[u].low){for(var h=e.spawn();;){var c=i.pop();if(h.merge(e.getElementById(c)),r[c].low=r[u].index,r[c].explored=!0,c===u)break}var v=h.edgesWith(h),d=h.merge(v);n.push(d),s=s.difference(d)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in r||o(u)}}),{cut:s,components:n}},Yg={tarjanStronglyConnected:Aa,tsc:Aa,tscc:Aa,tarjanStronglyConnectedComponents:Aa},No={};[ta,wd,xd,Cd,Sd,Ad,Id,rg,Tr,Cr,$n,gg,Ag,kg,Vg,Ug,Hg,Yg].forEach(function(t){de(No,t)});/*! +Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable +Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) +Licensed under The MIT License (http://opensource.org/licenses/MIT) +*/var Io=0,Mo=1,Ro=2,kt=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=Io,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};kt.prototype={fulfill:function(e){return os(this,Mo,"fulfillValue",e)},reject:function(e){return os(this,Ro,"rejectReason",e)},then:function(e,r){var a=this,n=new kt;return a.onFulfilled.push(us(e,n,"fulfill")),a.onRejected.push(us(r,n,"reject")),ko(a),n.proxy}};var os=function(e,r,a,n){return e.state===Io&&(e.state=r,e[a]=n,ko(e)),e},ko=function(e){e.state===Mo?ls(e,"onFulfilled",e.fulfillValue):e.state===Ro&&ls(e,"onRejected",e.rejectReason)},ls=function(e,r,a){if(e[r].length!==0){var n=e[r];e[r]=[];var i=function(){for(var o=0;o<n.length;o++)n[o](a)};typeof setImmediate=="function"?setImmediate(i):setTimeout(i,0)}},us=function(e,r,a){return function(n){if(typeof e!="function")r[a].call(r,n);else{var i;try{i=e(n)}catch(s){r.reject(s);return}Xg(r,i)}}},Xg=function t(e,r){if(e===r||e.proxy===r){e.reject(new TypeError("cannot resolve promise with itself"));return}var a;if(Ue(r)==="object"&&r!==null||typeof r=="function")try{a=r.then}catch(i){e.reject(i);return}if(typeof a=="function"){var n=!1;try{a.call(r,function(i){n||(n=!0,i===r?e.reject(new TypeError("circular thenable chain")):t(e,i))},function(i){n||(n=!0,e.reject(i))})}catch(i){n||e.reject(i)}return}e.fulfill(r)};kt.all=function(t){return new kt(function(e,r){for(var a=new Array(t.length),n=0,i=function(l,u){a[l]=u,n++,n===t.length&&e(a)},s=0;s<t.length;s++)(function(o){var l=t[o],u=l!=null&&l.then!=null;if(u)l.then(function(h){i(o,h)},function(h){r(h)});else{var f=l;i(o,f)}})(s)})};kt.resolve=function(t){return new kt(function(e,r){e(t)})};kt.reject=function(t){return new kt(function(e,r){r(t)})};var Rr=typeof Promise<"u"?Promise:kt,Vn=function(e,r,a){var n=ni(e),i=!n,s=this._private=de({duration:1e3},r,a);if(s.target=e,s.style=s.style||s.css,s.started=!1,s.playing=!1,s.hooked=!1,s.applying=!1,s.progress=0,s.completes=[],s.frames=[],s.complete&&Be(s.complete)&&s.completes.push(s.complete),i){var o=e.position();s.startPosition=s.startPosition||{x:o.x,y:o.y},s.startStyle=s.startStyle||e.cy().style().getAnimationStartStyle(e,s.style)}if(n){var l=e.pan();s.startPan={x:l.x,y:l.y},s.startZoom=e.zoom()}this.length=1,this[0]=this},ir=Vn.prototype;de(ir,{instanceString:function(){return"animation"},hook:function(){var e=this._private;if(!e.hooked){var r,a=e.target._private.animation;e.queue?r=a.queue:r=a.current,r.push(this),ht(e.target)&&e.target.cy().addToAnimationPool(e.target),e.hooked=!0}return this},play:function(){var e=this._private;return e.progress===1&&(e.progress=0),e.playing=!0,e.started=!1,e.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var e=this._private;return e.applying=!0,e.started=!1,e.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var e=this._private;return e.playing=!1,e.started=!1,this},stop:function(){var e=this._private;return e.playing=!1,e.started=!1,e.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(e){var r=this._private;return e===void 0?r.progress*r.duration:this.progress(e/r.duration)},progress:function(e){var r=this._private,a=r.playing;return e===void 0?r.progress:(a&&this.pause(),r.progress=e,r.started=!1,a&&this.play(),this)},completed:function(){return this._private.progress===1},reverse:function(){var e=this._private,r=e.playing;r&&this.pause(),e.progress=1-e.progress,e.started=!1;var a=function(u,f){var h=e[u];h!=null&&(e[u]=e[f],e[f]=h)};if(a("zoom","startZoom"),a("pan","startPan"),a("position","startPosition"),e.style)for(var n=0;n<e.style.length;n++){var i=e.style[n],s=i.name,o=e.startStyle[s];e.startStyle[s]=i,e.style[n]=o}return r&&this.play(),this},promise:function(e){var r=this._private,a;switch(e){case"frame":a=r.frames;break;default:case"complete":case"completed":a=r.completes}return new Rr(function(n,i){a.push(function(){n()})})}});ir.complete=ir.completed;ir.run=ir.play;ir.running=ir.playing;var Wg={animated:function(){return function(){var r=this,a=r.length!==void 0,n=a?r:[r],i=this._private.cy||this;if(!i.styleEnabled())return!1;var s=n[0];if(s)return s._private.animation.current.length>0}},clearQueue:function(){return function(){var r=this,a=r.length!==void 0,n=a?r:[r],i=this._private.cy||this;if(!i.styleEnabled())return this;for(var s=0;s<n.length;s++){var o=n[s];o._private.animation.queue=[]}return this}},delay:function(){return function(r,a){var n=this._private.cy||this;return n.styleEnabled()?this.animate({delay:r,duration:r,complete:a}):this}},delayAnimation:function(){return function(r,a){var n=this._private.cy||this;return n.styleEnabled()?this.animation({delay:r,duration:r,complete:a}):this}},animation:function(){return function(r,a){var n=this,i=n.length!==void 0,s=i?n:[n],o=this._private.cy||this,l=!i,u=!l;if(!o.styleEnabled())return this;var f=o.style();r=de({},r,a);var h=Object.keys(r).length===0;if(h)return new Vn(s[0],r);switch(r.duration===void 0&&(r.duration=400),r.duration){case"slow":r.duration=600;break;case"fast":r.duration=200;break}if(u&&(r.style=f.getPropsList(r.style||r.css),r.css=void 0),u&&r.renderedPosition!=null){var c=r.renderedPosition,v=o.pan(),d=o.zoom();r.position=bo(c,d,v)}if(l&&r.panBy!=null){var g=r.panBy,p=o.pan();r.pan={x:p.x+g.x,y:p.y+g.y}}var y=r.center||r.centre;if(l&&y!=null){var E=o.getCenterPan(y.eles,r.zoom);E!=null&&(r.pan=E)}if(l&&r.fit!=null){var m=r.fit,T=o.getFitViewport(m.eles||m.boundingBox,m.padding);T!=null&&(r.pan=T.pan,r.zoom=T.zoom)}if(l&&De(r.zoom)){var C=o.getZoomedViewport(r.zoom);C!=null?(C.zoomed&&(r.zoom=C.zoom),C.panned&&(r.pan=C.pan)):r.zoom=null}return new Vn(s[0],r)}},animate:function(){return function(r,a){var n=this,i=n.length!==void 0,s=i?n:[n],o=this._private.cy||this;if(!o.styleEnabled())return this;a&&(r=de({},r,a));for(var l=0;l<s.length;l++){var u=s[l],f=u.animated()&&(r.queue===void 0||r.queue),h=u.animation(r,f?{queue:!0}:void 0);h.play()}return this}},stop:function(){return function(r,a){var n=this,i=n.length!==void 0,s=i?n:[n],o=this._private.cy||this;if(!o.styleEnabled())return this;for(var l=0;l<s.length;l++){for(var u=s[l],f=u._private,h=f.animation.current,c=0;c<h.length;c++){var v=h[c],d=v._private;a&&(d.duration=0)}r&&(f.animation.queue=[]),a||(f.animation.current=[])}return o.notify("draw"),this}}},qg={data:function(e){var r={field:"data",bindingEvent:"data",allowBinding:!1,allowSetting:!1,allowGetting:!1,settingEvent:"data",settingTriggersEvent:!1,triggerFnName:"trigger",immutableKeys:{},updateStyle:!1,beforeGet:function(n){},beforeSet:function(n,i){},onSet:function(n){},canSet:function(n){return!0}};return e=de({},r,e),function(n,i){var s=e,o=this,l=o.length!==void 0,u=l?o:[o],f=l?o[0]:o;if(ve(n)){var h=n.indexOf(".")!==-1,c=h&&Rc.default(n);if(s.allowGetting&&i===void 0){var v;return f&&(s.beforeGet(f),c&&f._private[s.field][n]===void 0?v=Ic.default(f._private[s.field],c):v=f._private[s.field][n]),v}else if(s.allowSetting&&i!==void 0){var d=!s.immutableKeys[n];if(d){var g=ro({},n,i);s.beforeSet(o,g);for(var p=0,y=u.length;p<y;p++){var E=u[p];s.canSet(E)&&(c&&f._private[s.field][n]===void 0?Mc.default(E._private[s.field],c,i):E._private[s.field][n]=i)}s.updateStyle&&o.updateStyle(),s.onSet(o),s.settingTriggersEvent&&o[s.triggerFnName](s.settingEvent)}}}else if(s.allowSetting&&De(n)){var m=n,T,C,S=Object.keys(m);s.beforeSet(o,m);for(var b=0;b<S.length;b++){T=S[b],C=m[T];var x=!s.immutableKeys[T];if(x)for(var w=0;w<u.length;w++){var D=u[w];s.canSet(D)&&(D._private[s.field][T]=C)}}s.updateStyle&&o.updateStyle(),s.onSet(o),s.settingTriggersEvent&&o[s.triggerFnName](s.settingEvent)}else if(s.allowBinding&&Be(n)){var A=n;o.on(s.bindingEvent,A)}else if(s.allowGetting&&n===void 0){var L;return f&&(s.beforeGet(f),L=f._private[s.field]),L}return o}},removeData:function(e){var r={field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!1,immutableKeys:{}};return e=de({},r,e),function(n){var i=e,s=this,o=s.length!==void 0,l=o?s:[s];if(ve(n)){for(var u=n.split(/\s+/),f=u.length,h=0;h<f;h++){var c=u[h];if(!Yt(c)){var v=!i.immutableKeys[c];if(v)for(var d=0,g=l.length;d<g;d++)l[d]._private[i.field][c]=void 0}}i.triggerEvent&&s[i.triggerFnName](i.event)}else if(n===void 0){for(var p=0,y=l.length;p<y;p++)for(var E=l[p]._private[i.field],m=Object.keys(E),T=0;T<m.length;T++){var C=m[T],S=!i.immutableKeys[C];S&&(E[C]=void 0)}i.triggerEvent&&s[i.triggerFnName](i.event)}return s}}},Kg={eventAliasesOn:function(e){var r=e;r.addListener=r.listen=r.bind=r.on,r.unlisten=r.unbind=r.off=r.removeListener,r.trigger=r.emit,r.pon=r.promiseOn=function(a,n){var i=this,s=Array.prototype.slice.call(arguments,0);return new Rr(function(o,l){var u=function(v){i.off.apply(i,h),o(v)},f=s.concat([u]),h=f.concat([]);i.on.apply(i,f)})}}},Oe={};[Wg,qg,Kg].forEach(function(t){de(Oe,t)});var Zg={animate:Oe.animate(),animation:Oe.animation(),animated:Oe.animated(),clearQueue:Oe.clearQueue(),delay:Oe.delay(),delayAnimation:Oe.delayAnimation(),stop:Oe.stop()},Ba={classes:function(e){var r=this;if(e===void 0){var a=[];return r[0]._private.classes.forEach(function(d){return a.push(d)}),a}else Me(e)||(e=(e||"").match(/\S+/g)||[]);for(var n=[],i=new Mr(e),s=0;s<r.length;s++){for(var o=r[s],l=o._private,u=l.classes,f=!1,h=0;h<e.length;h++){var c=e[h],v=u.has(c);if(!v){f=!0;break}}f||(f=u.size!==e.length),f&&(l.classes=i,n.push(o))}return n.length>0&&this.spawn(n).updateStyle().emit("class"),r},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var r=this[0];return r!=null&&r._private.classes.has(e)},toggleClass:function(e,r){Me(e)||(e=e.match(/\S+/g)||[]);for(var a=this,n=r===void 0,i=[],s=0,o=a.length;s<o;s++)for(var l=a[s],u=l._private.classes,f=!1,h=0;h<e.length;h++){var c=e[h],v=u.has(c),d=!1;r||n&&!v?(u.add(c),d=!0):(!r||n&&v)&&(u.delete(c),d=!0),!f&&d&&(i.push(l),f=!0)}return i.length>0&&this.spawn(i).updateStyle().emit("class"),a},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,r){var a=this;if(r==null)r=250;else if(r===0)return a;return a.addClass(e),setTimeout(function(){a.removeClass(e)},r),a}};Ba.className=Ba.classNames=Ba.classes;var Ce={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:_e,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};Ce.variable="(?:[\\w-.]|(?:\\\\"+Ce.metaChar+"))+";Ce.className="(?:[\\w-]|(?:\\\\"+Ce.metaChar+"))+";Ce.value=Ce.string+"|"+Ce.number;Ce.id=Ce.variable;(function(){var t,e,r;for(t=Ce.comparatorOp.split("|"),r=0;r<t.length;r++)e=t[r],Ce.comparatorOp+="|@"+e;for(t=Ce.comparatorOp.split("|"),r=0;r<t.length;r++)e=t[r],!(e.indexOf("!")>=0)&&e!=="="&&(Ce.comparatorOp+="|\\!"+e)})();var Ie=function(){return{checks:[]}},ie={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},_n=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(t,e){return ed(t.selector,e.selector)}),Qg=function(){for(var t={},e,r=0;r<_n.length;r++)e=_n[r],t[e.selector]=e.matches;return t}(),Jg=function(e,r){return Qg[e](r)},jg="("+_n.map(function(t){return t.selector}).join("|")+")",dr=function(e){return e.replace(new RegExp("\\\\("+Ce.metaChar+")","g"),function(r,a){return a})},zt=function(e,r,a){e[e.length-1]=a},Un=[{name:"group",query:!0,regex:"("+Ce.group+")",populate:function(e,r,a){var n=Et(a,1),i=n[0];r.checks.push({type:ie.GROUP,value:i==="*"?i:i+"s"})}},{name:"state",query:!0,regex:jg,populate:function(e,r,a){var n=Et(a,1),i=n[0];r.checks.push({type:ie.STATE,value:i})}},{name:"id",query:!0,regex:"\\#("+Ce.id+")",populate:function(e,r,a){var n=Et(a,1),i=n[0];r.checks.push({type:ie.ID,value:dr(i)})}},{name:"className",query:!0,regex:"\\.("+Ce.className+")",populate:function(e,r,a){var n=Et(a,1),i=n[0];r.checks.push({type:ie.CLASS,value:dr(i)})}},{name:"dataExists",query:!0,regex:"\\[\\s*("+Ce.variable+")\\s*\\]",populate:function(e,r,a){var n=Et(a,1),i=n[0];r.checks.push({type:ie.DATA_EXIST,field:dr(i)})}},{name:"dataCompare",query:!0,regex:"\\[\\s*("+Ce.variable+")\\s*("+Ce.comparatorOp+")\\s*("+Ce.value+")\\s*\\]",populate:function(e,r,a){var n=Et(a,3),i=n[0],s=n[1],o=n[2],l=new RegExp("^"+Ce.string+"$").exec(o)!=null;l?o=o.substring(1,o.length-1):o=parseFloat(o),r.checks.push({type:ie.DATA_COMPARE,field:dr(i),operator:s,value:o})}},{name:"dataBool",query:!0,regex:"\\[\\s*("+Ce.boolOp+")\\s*("+Ce.variable+")\\s*\\]",populate:function(e,r,a){var n=Et(a,2),i=n[0],s=n[1];r.checks.push({type:ie.DATA_BOOL,field:dr(s),operator:i})}},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+Ce.meta+")\\s*("+Ce.comparatorOp+")\\s*("+Ce.number+")\\s*\\]\\]",populate:function(e,r,a){var n=Et(a,3),i=n[0],s=n[1],o=n[2];r.checks.push({type:ie.META_COMPARE,field:dr(i),operator:s,value:parseFloat(o)})}},{name:"nextQuery",separator:!0,regex:Ce.separator,populate:function(e,r){var a=e.currentSubject,n=e.edgeCount,i=e.compoundCount,s=e[e.length-1];a!=null&&(s.subject=a,e.currentSubject=null),s.edgeCount=n,s.compoundCount=i,e.edgeCount=0,e.compoundCount=0;var o=e[e.length++]=Ie();return o}},{name:"directedEdge",separator:!0,regex:Ce.directedEdge,populate:function(e,r){if(e.currentSubject==null){var a=Ie(),n=r,i=Ie();return a.checks.push({type:ie.DIRECTED_EDGE,source:n,target:i}),zt(e,r,a),e.edgeCount++,i}else{var s=Ie(),o=r,l=Ie();return s.checks.push({type:ie.NODE_SOURCE,source:o,target:l}),zt(e,r,s),e.edgeCount++,l}}},{name:"undirectedEdge",separator:!0,regex:Ce.undirectedEdge,populate:function(e,r){if(e.currentSubject==null){var a=Ie(),n=r,i=Ie();return a.checks.push({type:ie.UNDIRECTED_EDGE,nodes:[n,i]}),zt(e,r,a),e.edgeCount++,i}else{var s=Ie(),o=r,l=Ie();return s.checks.push({type:ie.NODE_NEIGHBOR,node:o,neighbor:l}),zt(e,r,s),l}}},{name:"child",separator:!0,regex:Ce.child,populate:function(e,r){if(e.currentSubject==null){var a=Ie(),n=Ie(),i=e[e.length-1];return a.checks.push({type:ie.CHILD,parent:i,child:n}),zt(e,r,a),e.compoundCount++,n}else if(e.currentSubject===r){var s=Ie(),o=e[e.length-1],l=Ie(),u=Ie(),f=Ie(),h=Ie();return s.checks.push({type:ie.COMPOUND_SPLIT,left:o,right:l,subject:u}),u.checks=r.checks,r.checks=[{type:ie.TRUE}],h.checks.push({type:ie.TRUE}),l.checks.push({type:ie.PARENT,parent:h,child:f}),zt(e,o,s),e.currentSubject=u,e.compoundCount++,f}else{var c=Ie(),v=Ie(),d=[{type:ie.PARENT,parent:c,child:v}];return c.checks=r.checks,r.checks=d,e.compoundCount++,v}}},{name:"descendant",separator:!0,regex:Ce.descendant,populate:function(e,r){if(e.currentSubject==null){var a=Ie(),n=Ie(),i=e[e.length-1];return a.checks.push({type:ie.DESCENDANT,ancestor:i,descendant:n}),zt(e,r,a),e.compoundCount++,n}else if(e.currentSubject===r){var s=Ie(),o=e[e.length-1],l=Ie(),u=Ie(),f=Ie(),h=Ie();return s.checks.push({type:ie.COMPOUND_SPLIT,left:o,right:l,subject:u}),u.checks=r.checks,r.checks=[{type:ie.TRUE}],h.checks.push({type:ie.TRUE}),l.checks.push({type:ie.ANCESTOR,ancestor:h,descendant:f}),zt(e,o,s),e.currentSubject=u,e.compoundCount++,f}else{var c=Ie(),v=Ie(),d=[{type:ie.ANCESTOR,ancestor:c,descendant:v}];return c.checks=r.checks,r.checks=d,e.compoundCount++,v}}},{name:"subject",modifier:!0,regex:Ce.subject,populate:function(e,r){if(e.currentSubject!=null&&e.currentSubject!==r)return Ne("Redefinition of subject in selector `"+e.toString()+"`"),!1;e.currentSubject=r;var a=e[e.length-1],n=a.checks[0],i=n==null?null:n.type;i===ie.DIRECTED_EDGE?n.type=ie.NODE_TARGET:i===ie.UNDIRECTED_EDGE&&(n.type=ie.NODE_NEIGHBOR,n.node=n.nodes[1],n.neighbor=n.nodes[0],n.nodes=null)}}];Un.forEach(function(t){return t.regexObj=new RegExp("^"+t.regex)});var ep=function(e){for(var r,a,n,i=0;i<Un.length;i++){var s=Un[i],o=s.name,l=e.match(s.regexObj);if(l!=null){a=l,r=s,n=o;var u=l[0];e=e.substring(u.length);break}}return{expr:r,match:a,name:n,remaining:e}},tp=function(e){var r=e.match(/^\s+/);if(r){var a=r[0];e=e.substring(a.length)}return e},rp=function(e){var r=this,a=r.inputText=e,n=r[0]=Ie();for(r.length=1,a=tp(a);;){var i=ep(a);if(i.expr==null)return Ne("The selector `"+e+"`is invalid"),!1;var s=i.match.slice(1),o=i.expr.populate(r,n,s);if(o===!1)return!1;if(o!=null&&(n=o),a=i.remaining,a.match(/^\s*$/))break}var l=r[r.length-1];r.currentSubject!=null&&(l.subject=r.currentSubject),l.edgeCount=r.edgeCount,l.compoundCount=r.compoundCount;for(var u=0;u<r.length;u++){var f=r[u];if(f.compoundCount>0&&f.edgeCount>0)return Ne("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(f.edgeCount>1)return Ne("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;f.edgeCount===1&&Ne("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},ap=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(f){return f??""},r=function(f){return ve(f)?'"'+f+'"':e(f)},a=function(f){return" "+f+" "},n=function(f,h){var c=f.type,v=f.value;switch(c){case ie.GROUP:{var d=e(v);return d.substring(0,d.length-1)}case ie.DATA_COMPARE:{var g=f.field,p=f.operator;return"["+g+a(e(p))+r(v)+"]"}case ie.DATA_BOOL:{var y=f.operator,E=f.field;return"["+e(y)+E+"]"}case ie.DATA_EXIST:{var m=f.field;return"["+m+"]"}case ie.META_COMPARE:{var T=f.operator,C=f.field;return"[["+C+a(e(T))+r(v)+"]]"}case ie.STATE:return v;case ie.ID:return"#"+v;case ie.CLASS:return"."+v;case ie.PARENT:case ie.CHILD:return i(f.parent,h)+a(">")+i(f.child,h);case ie.ANCESTOR:case ie.DESCENDANT:return i(f.ancestor,h)+" "+i(f.descendant,h);case ie.COMPOUND_SPLIT:{var S=i(f.left,h),b=i(f.subject,h),x=i(f.right,h);return S+(S.length>0?" ":"")+b+x}case ie.TRUE:return""}},i=function(f,h){return f.checks.reduce(function(c,v,d){return c+(h===f&&d===0?"$":"")+n(v,h)},"")},s="",o=0;o<this.length;o++){var l=this[o];s+=i(l,l.subject),this.length>1&&o<this.length-1&&(s+=", ")}return this.toStringCache=s,s},np={parse:rp,toString:ap},Po=function(e,r,a){var n,i=ve(e),s=ae(e),o=ve(a),l,u,f=!1,h=!1,c=!1;switch(r.indexOf("!")>=0&&(r=r.replace("!",""),h=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),f=!0),(i||o||f)&&(l=!i&&!s?"":""+e,u=""+a),f&&(e=l=l.toLowerCase(),a=u=u.toLowerCase()),r){case"*=":n=l.indexOf(u)>=0;break;case"$=":n=l.indexOf(u,l.length-u.length)>=0;break;case"^=":n=l.indexOf(u)===0;break;case"=":n=e===a;break;case">":c=!0,n=e>a;break;case">=":c=!0,n=e>=a;break;case"<":c=!0,n=e<a;break;case"<=":c=!0,n=e<=a;break;default:n=!1;break}return h&&(e!=null||!c)&&(n=!n),n},ip=function(e,r){switch(r){case"?":return!!e;case"!":return!e;case"^":return e===void 0}},sp=function(e){return e!==void 0},ci=function(e,r){return e.data(r)},op=function(e,r){return e[r]()},ze=[],Pe=function(e,r){return e.checks.every(function(a){return ze[a.type](a,r)})};ze[ie.GROUP]=function(t,e){var r=t.value;return r==="*"||r===e.group()};ze[ie.STATE]=function(t,e){var r=t.value;return Jg(r,e)};ze[ie.ID]=function(t,e){var r=t.value;return e.id()===r};ze[ie.CLASS]=function(t,e){var r=t.value;return e.hasClass(r)};ze[ie.META_COMPARE]=function(t,e){var r=t.field,a=t.operator,n=t.value;return Po(op(e,r),a,n)};ze[ie.DATA_COMPARE]=function(t,e){var r=t.field,a=t.operator,n=t.value;return Po(ci(e,r),a,n)};ze[ie.DATA_BOOL]=function(t,e){var r=t.field,a=t.operator;return ip(ci(e,r),a)};ze[ie.DATA_EXIST]=function(t,e){var r=t.field;return t.operator,sp(ci(e,r))};ze[ie.UNDIRECTED_EDGE]=function(t,e){var r=t.nodes[0],a=t.nodes[1],n=e.source(),i=e.target();return Pe(r,n)&&Pe(a,i)||Pe(a,n)&&Pe(r,i)};ze[ie.NODE_NEIGHBOR]=function(t,e){return Pe(t.node,e)&&e.neighborhood().some(function(r){return r.isNode()&&Pe(t.neighbor,r)})};ze[ie.DIRECTED_EDGE]=function(t,e){return Pe(t.source,e.source())&&Pe(t.target,e.target())};ze[ie.NODE_SOURCE]=function(t,e){return Pe(t.source,e)&&e.outgoers().some(function(r){return r.isNode()&&Pe(t.target,r)})};ze[ie.NODE_TARGET]=function(t,e){return Pe(t.target,e)&&e.incomers().some(function(r){return r.isNode()&&Pe(t.source,r)})};ze[ie.CHILD]=function(t,e){return Pe(t.child,e)&&Pe(t.parent,e.parent())};ze[ie.PARENT]=function(t,e){return Pe(t.parent,e)&&e.children().some(function(r){return Pe(t.child,r)})};ze[ie.DESCENDANT]=function(t,e){return Pe(t.descendant,e)&&e.ancestors().some(function(r){return Pe(t.ancestor,r)})};ze[ie.ANCESTOR]=function(t,e){return Pe(t.ancestor,e)&&e.descendants().some(function(r){return Pe(t.descendant,r)})};ze[ie.COMPOUND_SPLIT]=function(t,e){return Pe(t.subject,e)&&Pe(t.left,e)&&Pe(t.right,e)};ze[ie.TRUE]=function(){return!0};ze[ie.COLLECTION]=function(t,e){var r=t.value;return r.has(e)};ze[ie.FILTER]=function(t,e){var r=t.value;return r(e)};var lp=function(e){var r=this;if(r.length===1&&r[0].checks.length===1&&r[0].checks[0].type===ie.ID)return e.getElementById(r[0].checks[0].value).collection();var a=function(i){for(var s=0;s<r.length;s++){var o=r[s];if(Pe(o,i))return!0}return!1};return r.text()==null&&(a=function(){return!0}),e.filter(a)},up=function(e){for(var r=this,a=0;a<r.length;a++){var n=r[a];if(Pe(n,e))return!0}return!1},fp={matches:up,filter:lp},Wt=function(e){this.inputText=e,this.currentSubject=null,this.compoundCount=0,this.edgeCount=0,this.length=0,e==null||ve(e)&&e.match(/^\s*$/)||(ht(e)?this.addQuery({checks:[{type:ie.COLLECTION,value:e.collection()}]}):Be(e)?this.addQuery({checks:[{type:ie.FILTER,value:e}]}):ve(e)?this.parse(e)||(this.invalid=!0):Ge("A selector must be created from a string; found "))},qt=Wt.prototype;[np,fp].forEach(function(t){return de(qt,t)});qt.text=function(){return this.inputText};qt.size=function(){return this.length};qt.eq=function(t){return this[t]};qt.sameText=function(t){return!this.invalid&&!t.invalid&&this.text()===t.text()};qt.addQuery=function(t){this[this.length++]=t};qt.selector=qt.toString;var Ut={allAre:function(e){var r=new Wt(e);return this.every(function(a){return r.matches(a)})},is:function(e){var r=new Wt(e);return this.some(function(a){return r.matches(a)})},some:function(e,r){for(var a=0;a<this.length;a++){var n=r?e.apply(r,[this[a],a,this]):e(this[a],a,this);if(n)return!0}return!1},every:function(e,r){for(var a=0;a<this.length;a++){var n=r?e.apply(r,[this[a],a,this]):e(this[a],a,this);if(!n)return!1}return!0},same:function(e){if(this===e)return!0;e=this.cy().collection(e);var r=this.length,a=e.length;return r!==a?!1:r===1?this[0]===e[0]:this.every(function(n){return e.hasElementWithId(n.id())})},anySame:function(e){return e=this.cy().collection(e),this.some(function(r){return e.hasElementWithId(r.id())})},allAreNeighbors:function(e){e=this.cy().collection(e);var r=this.neighborhood();return e.every(function(a){return r.hasElementWithId(a.id())})},contains:function(e){e=this.cy().collection(e);var r=this;return e.every(function(a){return r.hasElementWithId(a.id())})}};Ut.allAreNeighbours=Ut.allAreNeighbors;Ut.has=Ut.contains;Ut.equal=Ut.equals=Ut.same;var gt=function(e,r){return function(n,i,s,o){var l=n,u=this,f;if(l==null?f="":ht(l)&&l.length===1&&(f=l.id()),u.length===1&&f){var h=u[0]._private,c=h.traversalCache=h.traversalCache||{},v=c[r]=c[r]||[],d=ar(f),g=v[d];return g||(v[d]=e.call(u,n,i,s,o))}else return e.call(u,n,i,s,o)}},Ar={parent:function(e){var r=[];if(this.length===1){var a=this[0]._private.parent;if(a)return a}for(var n=0;n<this.length;n++){var i=this[n],s=i._private.parent;s&&r.push(s)}return this.spawn(r,!0).filter(e)},parents:function(e){for(var r=[],a=this.parent();a.nonempty();){for(var n=0;n<a.length;n++){var i=a[n];r.push(i)}a=a.parent()}return this.spawn(r,!0).filter(e)},commonAncestors:function(e){for(var r,a=0;a<this.length;a++){var n=this[a],i=n.parents();r=r||i,r=r.intersect(i)}return r.filter(e)},orphans:function(e){return this.stdFilter(function(r){return r.isOrphan()}).filter(e)},nonorphans:function(e){return this.stdFilter(function(r){return r.isChild()}).filter(e)},children:gt(function(t){for(var e=[],r=0;r<this.length;r++)for(var a=this[r],n=a._private.children,i=0;i<n.length;i++)e.push(n[i]);return this.spawn(e,!0).filter(t)},"children"),siblings:function(e){return this.parent().children().not(this).filter(e)},isParent:function(){var e=this[0];if(e)return e.isNode()&&e._private.children.length!==0},isChildless:function(){var e=this[0];if(e)return e.isNode()&&e._private.children.length===0},isChild:function(){var e=this[0];if(e)return e.isNode()&&e._private.parent!=null},isOrphan:function(){var e=this[0];if(e)return e.isNode()&&e._private.parent==null},descendants:function(e){var r=[];function a(n){for(var i=0;i<n.length;i++){var s=n[i];r.push(s),s.children().nonempty()&&a(s.children())}}return a(this.children()),this.spawn(r,!0).filter(e)}};function di(t,e,r,a){for(var n=[],i=new Mr,s=t.cy(),o=s.hasCompoundNodes(),l=0;l<t.length;l++){var u=t[l];r?n.push(u):o&&a(n,i,u)}for(;n.length>0;){var f=n.shift();e(f),i.add(f.id()),o&&a(n,i,f)}return t}function Bo(t,e,r){if(r.isParent())for(var a=r._private.children,n=0;n<a.length;n++){var i=a[n];e.has(i.id())||t.push(i)}}Ar.forEachDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return di(this,t,e,Bo)};function Fo(t,e,r){if(r.isChild()){var a=r._private.parent;e.has(a.id())||t.push(a)}}Ar.forEachUp=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return di(this,t,e,Fo)};function hp(t,e,r){Fo(t,e,r),Bo(t,e,r)}Ar.forEachUpAndDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return di(this,t,e,hp)};Ar.ancestors=Ar.parents;var na,Go;na=Go={data:Oe.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:Oe.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Oe.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Oe.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Oe.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Oe.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}};na.attr=na.data;na.removeAttr=na.removeData;var vp=Go,vn={};function On(t){return function(e){var r=this;if(e===void 0&&(e=!0),r.length!==0)if(r.isNode()&&!r.removed()){for(var a=0,n=r[0],i=n._private.edges,s=0;s<i.length;s++){var o=i[s];!e&&o.isLoop()||(a+=t(n,o))}return a}else return}}de(vn,{degree:On(function(t,e){return e.source().same(e.target())?2:1}),indegree:On(function(t,e){return e.target().same(t)?1:0}),outdegree:On(function(t,e){return e.source().same(t)?1:0})});function gr(t,e){return function(r){for(var a,n=this.nodes(),i=0;i<n.length;i++){var s=n[i],o=s[t](r);o!==void 0&&(a===void 0||e(o,a))&&(a=o)}return a}}de(vn,{minDegree:gr("degree",function(t,e){return t<e}),maxDegree:gr("degree",function(t,e){return t>e}),minIndegree:gr("indegree",function(t,e){return t<e}),maxIndegree:gr("indegree",function(t,e){return t>e}),minOutdegree:gr("outdegree",function(t,e){return t<e}),maxOutdegree:gr("outdegree",function(t,e){return t>e})});de(vn,{totalDegree:function(e){for(var r=0,a=this.nodes(),n=0;n<a.length;n++)r+=a[n].degree(e);return r}});var Tt,zo,$o=function(e,r,a){for(var n=0;n<e.length;n++){var i=e[n];if(!i.locked()){var s=i._private.position,o={x:r.x!=null?r.x-s.x:0,y:r.y!=null?r.y-s.y:0};i.isParent()&&!(o.x===0&&o.y===0)&&i.children().shift(o,a),i.dirtyBoundingBoxCache()}}},fs={field:"position",bindingEvent:"position",allowBinding:!0,allowSetting:!0,settingEvent:"position",settingTriggersEvent:!0,triggerFnName:"emitAndNotify",allowGetting:!0,validKeys:["x","y"],beforeGet:function(e){e.updateCompoundBounds()},beforeSet:function(e,r){$o(e,r,!1)},onSet:function(e){e.dirtyCompoundBoundsCache()},canSet:function(e){return!e.locked()}};Tt=zo={position:Oe.data(fs),silentPosition:Oe.data(de({},fs,{allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!1,beforeSet:function(e,r){$o(e,r,!0)},onSet:function(e){e.dirtyCompoundBoundsCache()}})),positions:function(e,r){if(De(e))r?this.silentPosition(e):this.position(e);else if(Be(e)){var a=e,n=this.cy();n.startBatch();for(var i=0;i<this.length;i++){var s=this[i],o=void 0;(o=a(s,i))&&(r?s.silentPosition(o):s.position(o))}n.endBatch()}return this},silentPositions:function(e){return this.positions(e,!0)},shift:function(e,r,a){var n;if(De(e)?(n={x:ae(e.x)?e.x:0,y:ae(e.y)?e.y:0},a=r):ve(e)&&ae(r)&&(n={x:0,y:0},n[e]=r),n!=null){var i=this.cy();i.startBatch();for(var s=0;s<this.length;s++){var o=this[s];if(!(i.hasCompoundNodes()&&o.isChild()&&o.ancestors().anySame(this))){var l=o.position(),u={x:l.x+n.x,y:l.y+n.y};a?o.silentPosition(u):o.position(u)}}i.endBatch()}return this},silentShift:function(e,r){return De(e)?this.shift(e,!0):ve(e)&&ae(r)&&this.shift(e,r,!0),this},renderedPosition:function(e,r){var a=this[0],n=this.cy(),i=n.zoom(),s=n.pan(),o=De(e)?e:void 0,l=o!==void 0||r!==void 0&&ve(e);if(a&&a.isNode())if(l)for(var u=0;u<this.length;u++){var f=this[u];r!==void 0?f.position(e,(r-s[e])/i):o!==void 0&&f.position(bo(o,i,s))}else{var h=a.position();return o=fn(h,i,s),e===void 0?o:o[e]}else if(!l)return;return this},relativePosition:function(e,r){var a=this[0],n=this.cy(),i=De(e)?e:void 0,s=i!==void 0||r!==void 0&&ve(e),o=n.hasCompoundNodes();if(a&&a.isNode())if(s)for(var l=0;l<this.length;l++){var u=this[l],f=o?u.parent():null,h=f&&f.length>0,c=h;h&&(f=f[0]);var v=c?f.position():{x:0,y:0};r!==void 0?u.position(e,r+v[e]):i!==void 0&&u.position({x:i.x+v.x,y:i.y+v.y})}else{var d=a.position(),g=o?a.parent():null,p=g&&g.length>0,y=p;p&&(g=g[0]);var E=y?g.position():{x:0,y:0};return i={x:d.x-E.x,y:d.y-E.y},e===void 0?i:i[e]}else if(!s)return;return this}};Tt.modelPosition=Tt.point=Tt.position;Tt.modelPositions=Tt.points=Tt.positions;Tt.renderedPoint=Tt.renderedPosition;Tt.relativePoint=Tt.relativePosition;var cp=zo,Dr,Zt;Dr=Zt={};Zt.renderedBoundingBox=function(t){var e=this.boundingBox(t),r=this.cy(),a=r.zoom(),n=r.pan(),i=e.x1*a+n.x,s=e.x2*a+n.x,o=e.y1*a+n.y,l=e.y2*a+n.y;return{x1:i,x2:s,y1:o,y2:l,w:s-i,h:l-o}};Zt.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(r){if(r.isParent()){var a=r._private;a.compoundBoundsClean=!1,a.bbCache=null,t||r.emitAndNotify("bounds")}}),this)};Zt.updateCompoundBounds=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function r(s){if(!s.isParent())return;var o=s._private,l=s.children(),u=s.pstyle("compound-sizing-wrt-labels").value==="include",f={width:{val:s.pstyle("min-width").pfValue,left:s.pstyle("min-width-bias-left"),right:s.pstyle("min-width-bias-right")},height:{val:s.pstyle("min-height").pfValue,top:s.pstyle("min-height-bias-top"),bottom:s.pstyle("min-height-bias-bottom")}},h=l.boundingBox({includeLabels:u,includeOverlays:!1,useCache:!1}),c=o.position;(h.w===0||h.h===0)&&(h={w:s.pstyle("width").pfValue,h:s.pstyle("height").pfValue},h.x1=c.x-h.w/2,h.x2=c.x+h.w/2,h.y1=c.y-h.h/2,h.y2=c.y+h.h/2);function v(w,D,A){var L=0,I=0,O=D+A;return w>0&&O>0&&(L=D/O*w,I=A/O*w),{biasDiff:L,biasComplementDiff:I}}function d(w,D,A,L){if(A.units==="%")switch(L){case"width":return w>0?A.pfValue*w:0;case"height":return D>0?A.pfValue*D:0;case"average":return w>0&&D>0?A.pfValue*(w+D)/2:0;case"min":return w>0&&D>0?w>D?A.pfValue*D:A.pfValue*w:0;case"max":return w>0&&D>0?w>D?A.pfValue*w:A.pfValue*D:0;default:return 0}else return A.units==="px"?A.pfValue:0}var g=f.width.left.value;f.width.left.units==="px"&&f.width.val>0&&(g=g*100/f.width.val);var p=f.width.right.value;f.width.right.units==="px"&&f.width.val>0&&(p=p*100/f.width.val);var y=f.height.top.value;f.height.top.units==="px"&&f.height.val>0&&(y=y*100/f.height.val);var E=f.height.bottom.value;f.height.bottom.units==="px"&&f.height.val>0&&(E=E*100/f.height.val);var m=v(f.width.val-h.w,g,p),T=m.biasDiff,C=m.biasComplementDiff,S=v(f.height.val-h.h,y,E),b=S.biasDiff,x=S.biasComplementDiff;o.autoPadding=d(h.w,h.h,s.pstyle("padding"),s.pstyle("padding-relative-to").value),o.autoWidth=Math.max(h.w,f.width.val),c.x=(-T+h.x1+h.x2+C)/2,o.autoHeight=Math.max(h.h,f.height.val),c.y=(-b+h.y1+h.y2+x)/2}for(var a=0;a<this.length;a++){var n=this[a],i=n._private;(!i.compoundBoundsClean||t)&&(r(n),e.batching()||(i.compoundBoundsClean=!0))}return this};var dt=function(e){return e===1/0||e===-1/0?0:e},wt=function(e,r,a,n,i){n-r===0||i-a===0||r==null||a==null||n==null||i==null||(e.x1=r<e.x1?r:e.x1,e.x2=n>e.x2?n:e.x2,e.y1=a<e.y1?a:e.y1,e.y2=i>e.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},tr=function(e,r){return r==null?e:wt(e,r.x1,r.y1,r.x2,r.y2)},Ur=function(e,r,a){return xt(e,r,a)},Oa=function(e,r,a){if(!r.cy().headless()){var n=r._private,i=n.rstyle,s=i.arrowWidth/2,o=r.pstyle(a+"-arrow-shape").value,l,u;if(o!=="none"){a==="source"?(l=i.srcX,u=i.srcY):a==="target"?(l=i.tgtX,u=i.tgtY):(l=i.midX,u=i.midY);var f=n.arrowBounds=n.arrowBounds||{},h=f[a]=f[a]||{};h.x1=l-s,h.y1=u-s,h.x2=l+s,h.y2=u+s,h.w=h.x2-h.x1,h.h=h.y2-h.y1,ka(h,1),wt(e,h.x1,h.y1,h.x2,h.y2)}}},Nn=function(e,r,a){if(!r.cy().headless()){var n;a?n=a+"-":n="";var i=r._private,s=i.rstyle,o=r.pstyle(n+"label").strValue;if(o){var l=r.pstyle("text-halign"),u=r.pstyle("text-valign"),f=Ur(s,"labelWidth",a),h=Ur(s,"labelHeight",a),c=Ur(s,"labelX",a),v=Ur(s,"labelY",a),d=r.pstyle(n+"text-margin-x").pfValue,g=r.pstyle(n+"text-margin-y").pfValue,p=r.isEdge(),y=r.pstyle(n+"text-rotation"),E=r.pstyle("text-outline-width").pfValue,m=r.pstyle("text-border-width").pfValue,T=m/2,C=r.pstyle("text-background-padding").pfValue,S=2,b=h,x=f,w=x/2,D=b/2,A,L,I,O;if(p)A=c-w,L=c+w,I=v-D,O=v+D;else{switch(l.value){case"left":A=c-x,L=c;break;case"center":A=c-w,L=c+w;break;case"right":A=c,L=c+x;break}switch(u.value){case"top":I=v-b,O=v;break;case"center":I=v-D,O=v+D;break;case"bottom":I=v,O=v+b;break}}A+=d-Math.max(E,T)-C-S,L+=d+Math.max(E,T)+C+S,I+=g-Math.max(E,T)-C-S,O+=g+Math.max(E,T)+C+S;var P=a||"main",R=i.labelBounds,M=R[P]=R[P]||{};M.x1=A,M.y1=I,M.x2=L,M.y2=O,M.w=L-A,M.h=O-I;var k=p&&y.strValue==="autorotate",B=y.pfValue!=null&&y.pfValue!==0;if(k||B){var G=k?Ur(i.rstyle,"labelAngle",a):y.pfValue,F=Math.cos(G),$=Math.sin(G),U=(A+L)/2,_=(I+O)/2;if(!p){switch(l.value){case"left":U=L;break;case"right":U=A;break}switch(u.value){case"top":_=O;break;case"bottom":_=I;break}}var Y=function(ce,te){return ce=ce-U,te=te-_,{x:ce*F-te*$+U,y:ce*$+te*F+_}},W=Y(A,I),z=Y(A,O),K=Y(L,I),j=Y(L,O);A=Math.min(W.x,z.x,K.x,j.x),L=Math.max(W.x,z.x,K.x,j.x),I=Math.min(W.y,z.y,K.y,j.y),O=Math.max(W.y,z.y,K.y,j.y)}var Q=P+"Rot",ee=R[Q]=R[Q]||{};ee.x1=A,ee.y1=I,ee.x2=L,ee.y2=O,ee.w=L-A,ee.h=O-I,wt(e,A,I,L,O),wt(i.labelBounds.all,A,I,L,O)}return e}},dp=function(e,r){if(!r.cy().headless()){var a=r.pstyle("outline-opacity").value,n=r.pstyle("outline-width").value;if(a>0&&n>0){var i=r.pstyle("outline-offset").value,s=r.pstyle("shape").value,o=n+i,l=(e.w+o*2)/e.w,u=(e.h+o*2)/e.h,f=0,h=0;["diamond","pentagon","round-triangle"].includes(s)?(l=(e.w+o*2.4)/e.w,h=-o/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(s)?l=(e.w+o*2.4)/e.w:s==="star"?(l=(e.w+o*2.8)/e.w,u=(e.h+o*2.6)/e.h,h=-o/3.8):s==="triangle"?(l=(e.w+o*2.8)/e.w,u=(e.h+o*2.4)/e.h,h=-o/1.4):s==="vee"&&(l=(e.w+o*4.4)/e.w,u=(e.h+o*3.8)/e.h,h=-o*.5);var c=e.h*u-e.h,v=e.w*l-e.w;if(Pa(e,[Math.ceil(c/2),Math.ceil(v/2)]),f!=0||h!==0){var d=_d(e,f,h);wo(e,d)}}}},gp=function(e,r){var a=e._private.cy,n=a.styleEnabled(),i=a.headless(),s=ft(),o=e._private,l=e.isNode(),u=e.isEdge(),f,h,c,v,d,g,p=o.rstyle,y=l&&n?e.pstyle("bounds-expansion").pfValue:[0],E=function(ue){return ue.pstyle("display").value!=="none"},m=!n||E(e)&&(!u||E(e.source())&&E(e.target()));if(m){var T=0,C=0;n&&r.includeOverlays&&(T=e.pstyle("overlay-opacity").value,T!==0&&(C=e.pstyle("overlay-padding").value));var S=0,b=0;n&&r.includeUnderlays&&(S=e.pstyle("underlay-opacity").value,S!==0&&(b=e.pstyle("underlay-padding").value));var x=Math.max(C,b),w=0,D=0;if(n&&(w=e.pstyle("width").pfValue,D=w/2),l&&r.includeNodes){var A=e.position();d=A.x,g=A.y;var L=e.outerWidth(),I=L/2,O=e.outerHeight(),P=O/2;f=d-I,h=d+I,c=g-P,v=g+P,wt(s,f,c,h,v),n&&r.includeOutlines&&dp(s,e)}else if(u&&r.includeEdges)if(n&&!i){var R=e.pstyle("curve-style").strValue;if(f=Math.min(p.srcX,p.midX,p.tgtX),h=Math.max(p.srcX,p.midX,p.tgtX),c=Math.min(p.srcY,p.midY,p.tgtY),v=Math.max(p.srcY,p.midY,p.tgtY),f-=D,h+=D,c-=D,v+=D,wt(s,f,c,h,v),R==="haystack"){var M=p.haystackPts;if(M&&M.length===2){if(f=M[0].x,c=M[0].y,h=M[1].x,v=M[1].y,f>h){var k=f;f=h,h=k}if(c>v){var B=c;c=v,v=B}wt(s,f-D,c-D,h+D,v+D)}}else if(R==="bezier"||R==="unbundled-bezier"||R==="segments"||R==="taxi"){var G;switch(R){case"bezier":case"unbundled-bezier":G=p.bezierPts;break;case"segments":case"taxi":G=p.linePts;break}if(G!=null)for(var F=0;F<G.length;F++){var $=G[F];f=$.x-D,h=$.x+D,c=$.y-D,v=$.y+D,wt(s,f,c,h,v)}}}else{var U=e.source(),_=U.position(),Y=e.target(),W=Y.position();if(f=_.x,h=W.x,c=_.y,v=W.y,f>h){var z=f;f=h,h=z}if(c>v){var K=c;c=v,v=K}f-=D,h+=D,c-=D,v+=D,wt(s,f,c,h,v)}if(n&&r.includeEdges&&u&&(Oa(s,e,"mid-source"),Oa(s,e,"mid-target"),Oa(s,e,"source"),Oa(s,e,"target")),n){var j=e.pstyle("ghost").value==="yes";if(j){var Q=e.pstyle("ghost-offset-x").pfValue,ee=e.pstyle("ghost-offset-y").pfValue;wt(s,s.x1+Q,s.y1+ee,s.x2+Q,s.y2+ee)}}var ne=o.bodyBounds=o.bodyBounds||{};qi(ne,s),Pa(ne,y),ka(ne,1),n&&(f=s.x1,h=s.x2,c=s.y1,v=s.y2,wt(s,f-x,c-x,h+x,v+x));var ce=o.overlayBounds=o.overlayBounds||{};qi(ce,s),Pa(ce,y),ka(ce,1);var te=o.labelBounds=o.labelBounds||{};te.all!=null?Vd(te.all):te.all=ft(),n&&r.includeLabels&&(r.includeMainLabels&&Nn(s,e,null),u&&(r.includeSourceLabels&&Nn(s,e,"source"),r.includeTargetLabels&&Nn(s,e,"target")))}return s.x1=dt(s.x1),s.y1=dt(s.y1),s.x2=dt(s.x2),s.y2=dt(s.y2),s.w=dt(s.x2-s.x1),s.h=dt(s.y2-s.y1),s.w>0&&s.h>0&&m&&(Pa(s,y),ka(s,1)),s},Vo=function(e){var r=0,a=function(s){return(s?1:0)<<r++},n=0;return n+=a(e.incudeNodes),n+=a(e.includeEdges),n+=a(e.includeLabels),n+=a(e.includeMainLabels),n+=a(e.includeSourceLabels),n+=a(e.includeTargetLabels),n+=a(e.includeOverlays),n+=a(e.includeOutlines),n},_o=function(e){if(e.isEdge()){var r=e.source().position(),a=e.target().position(),n=function(s){return Math.round(s)};return ud([n(r.x),n(r.y),n(a.x),n(a.y)])}else return 0},hs=function(e,r){var a=e._private,n,i=e.isEdge(),s=r==null?vs:Vo(r),o=s===vs,l=_o(e),u=a.bbCachePosKey===l,f=r.useCache&&u,h=function(g){return g._private.bbCache==null||g._private.styleDirty},c=!f||h(e)||i&&h(e.source())||h(e.target());if(c?(u||e.recalculateRenderedStyle(f),n=gp(e,ia),a.bbCache=n,a.bbCachePosKey=l):n=a.bbCache,!o){var v=e.isNode();n=ft(),(r.includeNodes&&v||r.includeEdges&&!v)&&(r.includeOverlays?tr(n,a.overlayBounds):tr(n,a.bodyBounds)),r.includeLabels&&(r.includeMainLabels&&(!i||r.includeSourceLabels&&r.includeTargetLabels)?tr(n,a.labelBounds.all):(r.includeMainLabels&&tr(n,a.labelBounds.mainRot),r.includeSourceLabels&&tr(n,a.labelBounds.sourceRot),r.includeTargetLabels&&tr(n,a.labelBounds.targetRot))),n.w=n.x2-n.x1,n.h=n.y2-n.y1}return n},ia={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,includeOutlines:!0,useCache:!0},vs=Vo(ia),cs=Qe(ia);Zt.boundingBox=function(t){var e;if(this.length===1&&this[0]._private.bbCache!=null&&!this[0]._private.styleDirty&&(t===void 0||t.useCache===void 0||t.useCache===!0))t===void 0?t=ia:t=cs(t),e=hs(this[0],t);else{e=ft(),t=t||ia;var r=cs(t),a=this,n=a.cy(),i=n.styleEnabled();if(i)for(var s=0;s<a.length;s++){var o=a[s],l=o._private,u=_o(o),f=l.bbCachePosKey===u,h=r.useCache&&f&&!l.styleDirty;o.recalculateRenderedStyle(h)}this.updateCompoundBounds(!t.useCache);for(var c=0;c<a.length;c++){var v=a[c];tr(e,hs(v,r))}}return e.x1=dt(e.x1),e.y1=dt(e.y1),e.x2=dt(e.x2),e.y2=dt(e.y2),e.w=dt(e.x2-e.x1),e.h=dt(e.y2-e.y1),e};Zt.dirtyBoundingBoxCache=function(){for(var t=0;t<this.length;t++){var e=this[t]._private;e.bbCache=null,e.bbCachePosKey=null,e.bodyBounds=null,e.overlayBounds=null,e.labelBounds.all=null,e.labelBounds.source=null,e.labelBounds.target=null,e.labelBounds.main=null,e.labelBounds.sourceRot=null,e.labelBounds.targetRot=null,e.labelBounds.mainRot=null,e.arrowBounds.source=null,e.arrowBounds.target=null,e.arrowBounds["mid-source"]=null,e.arrowBounds["mid-target"]=null}return this.emitAndNotify("bounds"),this};Zt.boundingBoxAt=function(t){var e=this.nodes(),r=this.cy(),a=r.hasCompoundNodes(),n=r.collection();if(a&&(n=e.filter(function(u){return u.isParent()}),e=e.not(n)),De(t)){var i=t;t=function(){return i}}var s=function(f,h){return f._private.bbAtOldPos=t(f,h)},o=function(f){return f._private.bbAtOldPos};r.startBatch(),e.forEach(s).silentPositions(t),a&&(n.dirtyCompoundBoundsCache(),n.dirtyBoundingBoxCache(),n.updateCompoundBounds(!0));var l=$d(this.boundingBox({useCache:!1}));return e.silentPositions(o),a&&(n.dirtyCompoundBoundsCache(),n.dirtyBoundingBoxCache(),n.updateCompoundBounds(!0)),r.endBatch(),l};Dr.boundingbox=Dr.bb=Dr.boundingBox;Dr.renderedBoundingbox=Dr.renderedBoundingBox;var pp=Zt,qr,ga;qr=ga={};var Uo=function(e){e.uppercaseName=Hi(e.name),e.autoName="auto"+e.uppercaseName,e.labelName="label"+e.uppercaseName,e.outerName="outer"+e.uppercaseName,e.uppercaseOuterName=Hi(e.outerName),qr[e.name]=function(){var a=this[0],n=a._private,i=n.cy,s=i._private.styleEnabled;if(a)if(s){if(a.isParent())return a.updateCompoundBounds(),n[e.autoName]||0;var o=a.pstyle(e.name);switch(o.strValue){case"label":return a.recalculateRenderedStyle(),n.rstyle[e.labelName]||0;default:return o.pfValue}}else return 1},qr["outer"+e.uppercaseName]=function(){var a=this[0],n=a._private,i=n.cy,s=i._private.styleEnabled;if(a)if(s){var o=a[e.name](),l=a.pstyle("border-width").pfValue,u=2*a.padding();return o+l+u}else return 1},qr["rendered"+e.uppercaseName]=function(){var a=this[0];if(a){var n=a[e.name]();return n*this.cy().zoom()}},qr["rendered"+e.uppercaseOuterName]=function(){var a=this[0];if(a){var n=a[e.outerName]();return n*this.cy().zoom()}}};Uo({name:"width"});Uo({name:"height"});ga.padding=function(){var t=this[0],e=t._private;return t.isParent()?(t.updateCompoundBounds(),e.autoPadding!==void 0?e.autoPadding:t.pstyle("padding").pfValue):t.pstyle("padding").pfValue};ga.paddedHeight=function(){var t=this[0];return t.height()+2*t.padding()};ga.paddedWidth=function(){var t=this[0];return t.width()+2*t.padding()};var yp=ga,mp=function(e,r){if(e.isEdge())return r(e)},bp=function(e,r){if(e.isEdge()){var a=e.cy();return fn(r(e),a.zoom(),a.pan())}},Ep=function(e,r){if(e.isEdge()){var a=e.cy(),n=a.pan(),i=a.zoom();return r(e).map(function(s){return fn(s,i,n)})}},wp=function(e){return e.renderer().getControlPoints(e)},xp=function(e){return e.renderer().getSegmentPoints(e)},Tp=function(e){return e.renderer().getSourceEndpoint(e)},Cp=function(e){return e.renderer().getTargetEndpoint(e)},Dp=function(e){return e.renderer().getEdgeMidpoint(e)},ds={controlPoints:{get:wp,mult:!0},segmentPoints:{get:xp,mult:!0},sourceEndpoint:{get:Tp},targetEndpoint:{get:Cp},midpoint:{get:Dp}},Sp=function(e){return"rendered"+e[0].toUpperCase()+e.substr(1)},Lp=Object.keys(ds).reduce(function(t,e){var r=ds[e],a=Sp(e);return t[e]=function(){return mp(this,r.get)},r.mult?t[a]=function(){return Ep(this,r.get)}:t[a]=function(){return bp(this,r.get)},t},{}),Ap=de({},cp,pp,yp,Lp);/*! +Event object based on jQuery events, MIT license + +https://jquery.org/license/ +https://tldrlegal.com/license/mit-license +https://github.com/jquery/jquery/blob/master/src/event.js +*/var Ho=function(e,r){this.recycle(e,r)};function Hr(){return!1}function Na(){return!0}Ho.prototype={instanceString:function(){return"event"},recycle:function(e,r){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=Hr,e!=null&&e.preventDefault?(this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?Na:Hr):e!=null&&e.type?r=e:this.type=e,r!=null&&(this.originalEvent=r.originalEvent,this.type=r.type!=null?r.type:this.type,this.cy=r.cy,this.target=r.target,this.position=r.position,this.renderedPosition=r.renderedPosition,this.namespace=r.namespace,this.layout=r.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var a=this.position,n=this.cy.zoom(),i=this.cy.pan();this.renderedPosition={x:a.x*n+i.x,y:a.y*n+i.y}}this.timeStamp=e&&e.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=Na;var e=this.originalEvent;e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){this.isPropagationStopped=Na;var e=this.originalEvent;e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Na,this.stopPropagation()},isDefaultPrevented:Hr,isPropagationStopped:Hr,isImmediatePropagationStopped:Hr};var Yo=/^([^.]+)(\.(?:[^.]+))?$/,Op=".*",Xo={qualifierCompare:function(e,r){return e===r},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(e){return e},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},gs=Object.keys(Xo),Np={};function cn(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Np,e=arguments.length>1?arguments[1]:void 0,r=0;r<gs.length;r++){var a=gs[r];this[a]=t[a]||Xo[a]}this.context=e||this.context,this.listeners=[],this.emitting=0}var Kt=cn.prototype,Wo=function(e,r,a,n,i,s,o){Be(n)&&(i=n,n=null),o&&(s==null?s=o:s=de({},s,o));for(var l=Me(a)?a:a.split(/\s+/),u=0;u<l.length;u++){var f=l[u];if(!Yt(f)){var h=f.match(Yo);if(h){var c=h[1],v=h[2]?h[2]:null,d=r(e,f,c,v,n,i,s);if(d===!1)break}}}},ps=function(e,r){return e.addEventFields(e.context,r),new Ho(r.type,r)},Ip=function(e,r,a){if(Uc(a)){r(e,a);return}else if(De(a)){r(e,ps(e,a));return}for(var n=Me(a)?a:a.split(/\s+/),i=0;i<n.length;i++){var s=n[i];if(!Yt(s)){var o=s.match(Yo);if(o){var l=o[1],u=o[2]?o[2]:null,f=ps(e,{type:l,namespace:u,target:e.context});r(e,f)}}}};Kt.on=Kt.addListener=function(t,e,r,a,n){return Wo(this,function(i,s,o,l,u,f,h){Be(f)&&i.listeners.push({event:s,callback:f,type:o,namespace:l,qualifier:u,conf:h})},t,e,r,a,n),this};Kt.one=function(t,e,r,a){return this.on(t,e,r,a,{one:!0})};Kt.removeListener=Kt.off=function(t,e,r,a){var n=this;this.emitting!==0&&(this.listeners=dd(this.listeners));for(var i=this.listeners,s=function(u){var f=i[u];Wo(n,function(h,c,v,d,g,p){if((f.type===v||t==="*")&&(!d&&f.namespace!==".*"||f.namespace===d)&&(!g||h.qualifierCompare(f.qualifier,g))&&(!p||f.callback===p))return i.splice(u,1),!1},t,e,r,a)},o=i.length-1;o>=0;o--)s(o);return this};Kt.removeAllListeners=function(){return this.removeListener("*")};Kt.emit=Kt.trigger=function(t,e,r){var a=this.listeners,n=a.length;return this.emitting++,Me(e)||(e=[e]),Ip(this,function(i,s){r!=null&&(a=[{event:s.event,type:s.type,namespace:s.namespace,callback:r}],n=a.length);for(var o=function(f){var h=a[f];if(h.type===s.type&&(!h.namespace||h.namespace===s.namespace||h.namespace===Op)&&i.eventMatches(i.context,h,s)){var c=[s];e!=null&&pd(c,e),i.beforeEmit(i.context,h,s),h.conf&&h.conf.one&&(i.listeners=i.listeners.filter(function(g){return g!==h}));var v=i.callbackContext(i.context,h,s),d=h.callback.apply(v,c);i.afterEmit(i.context,h,s),d===!1&&(s.stopPropagation(),s.preventDefault())}},l=0;l<n;l++)o(l);i.bubble(i.context)&&!s.isPropagationStopped()&&i.parent(i.context).emit(s,e)},t),this.emitting--,this};var Mp={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,a){var n=r.qualifier;return n!=null?e!==a.target&&ca(a.target)&&n.matches(a.target):!0},addEventFields:function(e,r){r.cy=e.cy(),r.target=e},callbackContext:function(e,r,a){return r.qualifier!=null?a.target:e},beforeEmit:function(e,r){r.conf&&r.conf.once&&r.conf.onceCollection.removeListener(r.event,r.qualifier,r.callback)},bubble:function(){return!0},parent:function(e){return e.isChild()?e.parent():e.cy()}},Ia=function(e){return ve(e)?new Wt(e):e},qo={createEmitter:function(){for(var e=0;e<this.length;e++){var r=this[e],a=r._private;a.emitter||(a.emitter=new cn(Mp,r))}return this},emitter:function(){return this._private.emitter},on:function(e,r,a){for(var n=Ia(r),i=0;i<this.length;i++){var s=this[i];s.emitter().on(e,n,a)}return this},removeListener:function(e,r,a){for(var n=Ia(r),i=0;i<this.length;i++){var s=this[i];s.emitter().removeListener(e,n,a)}return this},removeAllListeners:function(){for(var e=0;e<this.length;e++){var r=this[e];r.emitter().removeAllListeners()}return this},one:function(e,r,a){for(var n=Ia(r),i=0;i<this.length;i++){var s=this[i];s.emitter().one(e,n,a)}return this},once:function(e,r,a){for(var n=Ia(r),i=0;i<this.length;i++){var s=this[i];s.emitter().on(e,n,a,{once:!0,onceCollection:this})}},emit:function(e,r){for(var a=0;a<this.length;a++){var n=this[a];n.emitter().emit(e,r)}return this},emitAndNotify:function(e,r){if(this.length!==0)return this.cy().notify(e,this),this.emit(e,r),this}};Oe.eventAliasesOn(qo);var Ko={nodes:function(e){return this.filter(function(r){return r.isNode()}).filter(e)},edges:function(e){return this.filter(function(r){return r.isEdge()}).filter(e)},byGroup:function(){for(var e=this.spawn(),r=this.spawn(),a=0;a<this.length;a++){var n=this[a];n.isNode()?e.push(n):r.push(n)}return{nodes:e,edges:r}},filter:function(e,r){if(e===void 0)return this;if(ve(e)||ht(e))return new Wt(e).filter(this);if(Be(e)){for(var a=this.spawn(),n=this,i=0;i<n.length;i++){var s=n[i],o=r?e.apply(r,[s,i,n]):e(s,i,n);o&&a.push(s)}return a}return this.spawn()},not:function(e){if(e){ve(e)&&(e=this.filter(e));for(var r=this.spawn(),a=0;a<this.length;a++){var n=this[a],i=e.has(n);i||r.push(n)}return r}else return this},absoluteComplement:function(){var e=this.cy();return e.mutableElements().not(this)},intersect:function(e){if(ve(e)){var r=e;return this.filter(r)}for(var a=this.spawn(),n=this,i=e,s=this.length<e.length,o=s?n:i,l=s?i:n,u=0;u<o.length;u++){var f=o[u];l.has(f)&&a.push(f)}return a},xor:function(e){var r=this._private.cy;ve(e)&&(e=r.$(e));var a=this.spawn(),n=this,i=e,s=function(l,u){for(var f=0;f<l.length;f++){var h=l[f],c=h._private.data.id,v=u.hasElementWithId(c);v||a.push(h)}};return s(n,i),s(i,n),a},diff:function(e){var r=this._private.cy;ve(e)&&(e=r.$(e));var a=this.spawn(),n=this.spawn(),i=this.spawn(),s=this,o=e,l=function(f,h,c){for(var v=0;v<f.length;v++){var d=f[v],g=d._private.data.id,p=h.hasElementWithId(g);p?i.merge(d):c.push(d)}};return l(s,o,a),l(o,s,n),{left:a,right:n,both:i}},add:function(e){var r=this._private.cy;if(!e)return this;if(ve(e)){var a=e;e=r.mutableElements().filter(a)}for(var n=this.spawnSelf(),i=0;i<e.length;i++){var s=e[i],o=!this.has(s);o&&n.push(s)}return n},merge:function(e){var r=this._private,a=r.cy;if(!e)return this;if(e&&ve(e)){var n=e;e=a.mutableElements().filter(n)}for(var i=r.map,s=0;s<e.length;s++){var o=e[s],l=o._private.data.id,u=!i.has(l);if(u){var f=this.length++;this[f]=o,i.set(l,{ele:o,index:f})}}return this},unmergeAt:function(e){var r=this[e],a=r.id(),n=this._private,i=n.map;this[e]=void 0,i.delete(a);var s=e===this.length-1;if(this.length>1&&!s){var o=this.length-1,l=this[o],u=l._private.data.id;this[o]=void 0,this[e]=l,i.set(u,{ele:l,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var r=this._private,a=e._private.data.id,n=r.map,i=n.get(a);if(!i)return this;var s=i.index;return this.unmergeAt(s),this},unmerge:function(e){var r=this._private.cy;if(!e)return this;if(e&&ve(e)){var a=e;e=r.mutableElements().filter(a)}for(var n=0;n<e.length;n++)this.unmergeOne(e[n]);return this},unmergeBy:function(e){for(var r=this.length-1;r>=0;r--){var a=this[r];e(a)&&this.unmergeAt(r)}return this},map:function(e,r){for(var a=[],n=this,i=0;i<n.length;i++){var s=n[i],o=r?e.apply(r,[s,i,n]):e(s,i,n);a.push(o)}return a},reduce:function(e,r){for(var a=r,n=this,i=0;i<n.length;i++)a=e(a,n[i],i,n);return a},max:function(e,r){for(var a=-1/0,n,i=this,s=0;s<i.length;s++){var o=i[s],l=r?e.apply(r,[o,s,i]):e(o,s,i);l>a&&(a=l,n=o)}return{value:a,ele:n}},min:function(e,r){for(var a=1/0,n,i=this,s=0;s<i.length;s++){var o=i[s],l=r?e.apply(r,[o,s,i]):e(o,s,i);l<a&&(a=l,n=o)}return{value:a,ele:n}}},Ae=Ko;Ae.u=Ae["|"]=Ae["+"]=Ae.union=Ae.or=Ae.add;Ae["\\"]=Ae["!"]=Ae["-"]=Ae.difference=Ae.relativeComplement=Ae.subtract=Ae.not;Ae.n=Ae["&"]=Ae["."]=Ae.and=Ae.intersection=Ae.intersect;Ae["^"]=Ae["(+)"]=Ae["(-)"]=Ae.symmetricDifference=Ae.symdiff=Ae.xor;Ae.fnFilter=Ae.filterFn=Ae.stdFilter=Ae.filter;Ae.complement=Ae.abscomp=Ae.absoluteComplement;var Rp={isNode:function(){return this.group()==="nodes"},isEdge:function(){return this.group()==="edges"},isLoop:function(){return this.isEdge()&&this.source()[0]===this.target()[0]},isSimple:function(){return this.isEdge()&&this.source()[0]!==this.target()[0]},group:function(){var e=this[0];if(e)return e._private.group}},Zo=function(e,r){var a=e.cy(),n=a.hasCompoundNodes();function i(f){var h=f.pstyle("z-compound-depth");return h.value==="auto"?n?f.zDepth():0:h.value==="bottom"?-1:h.value==="top"?si:0}var s=i(e)-i(r);if(s!==0)return s;function o(f){var h=f.pstyle("z-index-compare");return h.value==="auto"&&f.isNode()?1:0}var l=o(e)-o(r);if(l!==0)return l;var u=e.pstyle("z-index").value-r.pstyle("z-index").value;return u!==0?u:e.poolIndex()-r.poolIndex()},Za={forEach:function(e,r){if(Be(e))for(var a=this.length,n=0;n<a;n++){var i=this[n],s=r?e.apply(r,[i,n,this]):e(i,n,this);if(s===!1)break}return this},toArray:function(){for(var e=[],r=0;r<this.length;r++)e.push(this[r]);return e},slice:function(e,r){var a=[],n=this.length;r==null&&(r=n),e==null&&(e=0),e<0&&(e=n+e),r<0&&(r=n+r);for(var i=e;i>=0&&i<r&&i<n;i++)a.push(this[i]);return this.spawn(a)},size:function(){return this.length},eq:function(e){return this[e]||this.spawn()},first:function(){return this[0]||this.spawn()},last:function(){return this[this.length-1]||this.spawn()},empty:function(){return this.length===0},nonempty:function(){return!this.empty()},sort:function(e){if(!Be(e))return this;var r=this.toArray().sort(e);return this.spawn(r)},sortByZIndex:function(){return this.sort(Zo)},zDepth:function(){var e=this[0];if(e){var r=e._private,a=r.group;if(a==="nodes"){var n=r.data.parent?e.parents().size():0;return e.isParent()?n:si-1}else{var i=r.source,s=r.target,o=i.zDepth(),l=s.zDepth();return Math.max(o,l,0)}}}};Za.each=Za.forEach;var kp=function(){var e="undefined",r=(typeof Symbol>"u"?"undefined":Ue(Symbol))!=e&&Ue(Symbol.iterator)!=e;r&&(Za[Symbol.iterator]=function(){var a=this,n={value:void 0,done:!1},i=0,s=this.length;return ro({next:function(){return i<s?n.value=a[i++]:(n.value=void 0,n.done=!0),n}},Symbol.iterator,function(){return this})})};kp();var Pp=Qe({nodeDimensionsIncludeLabels:!1}),Fa={layoutDimensions:function(e){e=Pp(e);var r;if(!this.takesUpSpace())r={w:0,h:0};else if(e.nodeDimensionsIncludeLabels){var a=this.boundingBox();r={w:a.w,h:a.h}}else r={w:this.outerWidth(),h:this.outerHeight()};return(r.w===0||r.h===0)&&(r.w=r.h=1),r},layoutPositions:function(e,r,a){var n=this.nodes().filter(function(C){return!C.isParent()}),i=this.cy(),s=r.eles,o=function(S){return S.id()},l=Jr(a,o);e.emit({type:"layoutstart",layout:e}),e.animations=[];var u=function(S,b,x){var w={x:b.x1+b.w/2,y:b.y1+b.h/2},D={x:(x.x-w.x)*S,y:(x.y-w.y)*S};return{x:w.x+D.x,y:w.y+D.y}},f=r.spacingFactor&&r.spacingFactor!==1,h=function(){if(!f)return null;for(var S=ft(),b=0;b<n.length;b++){var x=n[b],w=l(x,b);Ud(S,w.x,w.y)}return S},c=h(),v=Jr(function(C,S){var b=l(C,S);if(f){var x=Math.abs(r.spacingFactor);b=u(x,c,b)}return r.transform!=null&&(b=r.transform(C,b)),b},o);if(r.animate){for(var d=0;d<n.length;d++){var g=n[d],p=v(g,d),y=r.animateFilter==null||r.animateFilter(g,d);if(y){var E=g.animation({position:p,duration:r.animationDuration,easing:r.animationEasing});e.animations.push(E)}else g.position(p)}if(r.fit){var m=i.animation({fit:{boundingBox:s.boundingBoxAt(v),padding:r.padding},duration:r.animationDuration,easing:r.animationEasing});e.animations.push(m)}else if(r.zoom!==void 0&&r.pan!==void 0){var T=i.animation({zoom:r.zoom,pan:r.pan,duration:r.animationDuration,easing:r.animationEasing});e.animations.push(T)}e.animations.forEach(function(C){return C.play()}),e.one("layoutready",r.ready),e.emit({type:"layoutready",layout:e}),Rr.all(e.animations.map(function(C){return C.promise()})).then(function(){e.one("layoutstop",r.stop),e.emit({type:"layoutstop",layout:e})})}else n.positions(v),r.fit&&i.fit(r.eles,r.padding),r.zoom!=null&&i.zoom(r.zoom),r.pan&&i.pan(r.pan),e.one("layoutready",r.ready),e.emit({type:"layoutready",layout:e}),e.one("layoutstop",r.stop),e.emit({type:"layoutstop",layout:e});return this},layout:function(e){var r=this.cy();return r.makeLayout(de({},e,{eles:this}))}};Fa.createLayout=Fa.makeLayout=Fa.layout;function Qo(t,e,r){var a=r._private,n=a.styleCache=a.styleCache||[],i;return(i=n[t])!=null||(i=n[t]=e(r)),i}function dn(t,e){return t=ar(t),function(a){return Qo(t,e,a)}}function gn(t,e){t=ar(t);var r=function(n){return e.call(n)};return function(){var n=this[0];if(n)return Qo(t,r,n)}}var Ke={recalculateRenderedStyle:function(e){var r=this.cy(),a=r.renderer(),n=r.styleEnabled();return a&&n&&a.recalculateRenderedStyle(this,e),this},dirtyStyleCache:function(){var e=this.cy(),r=function(i){return i._private.styleCache=null};if(e.hasCompoundNodes()){var a;a=this.spawnSelf().merge(this.descendants()).merge(this.parents()),a.merge(a.connectedEdges()),a.forEach(r)}else this.forEach(function(n){r(n),n.connectedEdges().forEach(r)});return this},updateStyle:function(e){var r=this._private.cy;if(!r.styleEnabled())return this;if(r.batching()){var a=r._private.batchStyleEles;return a.merge(this),this}var n=r.hasCompoundNodes(),i=this;e=!!(e||e===void 0),n&&(i=this.spawnSelf().merge(this.descendants()).merge(this.parents()));var s=i;return e?s.emitAndNotify("style"):s.emit("style"),i.forEach(function(o){return o._private.styleDirty=!0}),this},cleanStyle:function(){var e=this.cy();if(e.styleEnabled())for(var r=0;r<this.length;r++){var a=this[r];a._private.styleDirty&&(a._private.styleDirty=!1,e.style().apply(a))}},parsedStyle:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a=this[0],n=a.cy();if(n.styleEnabled()&&a){this.cleanStyle();var i=a._private.style[e];return i??(r?n.style().getDefaultProperty(e):null)}},numericStyle:function(e){var r=this[0];if(r.cy().styleEnabled()&&r){var a=r.pstyle(e);return a.pfValue!==void 0?a.pfValue:a.value}},numericStyleUnits:function(e){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(e).units},renderedStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var a=this[0];if(a)return r.style().getRenderedStyle(a,e)},style:function(e,r){var a=this.cy();if(!a.styleEnabled())return this;var n=!1,i=a.style();if(De(e)){var s=e;i.applyBypass(this,s,n),this.emitAndNotify("style")}else if(ve(e))if(r===void 0){var o=this[0];return o?i.getStylePropertyValue(o,e):void 0}else i.applyBypass(this,e,r,n),this.emitAndNotify("style");else if(e===void 0){var l=this[0];return l?i.getRawStyle(l):void 0}return this},removeStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var a=!1,n=r.style(),i=this;if(e===void 0)for(var s=0;s<i.length;s++){var o=i[s];n.removeAllBypasses(o,a)}else{e=e.split(/\s+/);for(var l=0;l<i.length;l++){var u=i[l];n.removeBypasses(u,e,a)}}return this.emitAndNotify("style"),this},show:function(){return this.css("display","element"),this},hide:function(){return this.css("display","none"),this},effectiveOpacity:function(){var e=this.cy();if(!e.styleEnabled())return 1;var r=e.hasCompoundNodes(),a=this[0];if(a){var n=a._private,i=a.pstyle("opacity").value;if(!r)return i;var s=n.data.parent?a.parents():null;if(s)for(var o=0;o<s.length;o++){var l=s[o],u=l.pstyle("opacity").value;i=u*i}return i}},transparent:function(){var e=this.cy();if(!e.styleEnabled())return!1;var r=this[0],a=r.cy().hasCompoundNodes();if(r)return a?r.effectiveOpacity()===0:r.pstyle("opacity").value===0},backgrounding:function(){var e=this.cy();if(!e.styleEnabled())return!1;var r=this[0];return!!r._private.backgrounding}};function In(t,e){var r=t._private,a=r.data.parent?t.parents():null;if(a)for(var n=0;n<a.length;n++){var i=a[n];if(!e(i))return!1}return!0}function gi(t){var e=t.ok,r=t.edgeOkViaNode||t.ok,a=t.parentOk||t.ok;return function(){var n=this.cy();if(!n.styleEnabled())return!0;var i=this[0],s=n.hasCompoundNodes();if(i){var o=i._private;if(!e(i))return!1;if(i.isNode())return!s||In(i,a);var l=o.source,u=o.target;return r(l)&&(!s||In(l,r))&&(l===u||r(u)&&(!s||In(u,r)))}}}var kr=dn("eleTakesUpSpace",function(t){return t.pstyle("display").value==="element"&&t.width()!==0&&(t.isNode()?t.height()!==0:!0)});Ke.takesUpSpace=gn("takesUpSpace",gi({ok:kr}));var Bp=dn("eleInteractive",function(t){return t.pstyle("events").value==="yes"&&t.pstyle("visibility").value==="visible"&&kr(t)}),Fp=dn("parentInteractive",function(t){return t.pstyle("visibility").value==="visible"&&kr(t)});Ke.interactive=gn("interactive",gi({ok:Bp,parentOk:Fp,edgeOkViaNode:kr}));Ke.noninteractive=function(){var t=this[0];if(t)return!t.interactive()};var Gp=dn("eleVisible",function(t){return t.pstyle("visibility").value==="visible"&&t.pstyle("opacity").pfValue!==0&&kr(t)}),zp=kr;Ke.visible=gn("visible",gi({ok:Gp,edgeOkViaNode:zp}));Ke.hidden=function(){var t=this[0];if(t)return!t.visible()};Ke.isBundledBezier=gn("isBundledBezier",function(){return this.cy().styleEnabled()?!this.removed()&&this.pstyle("curve-style").value==="bezier"&&this.takesUpSpace():!1});Ke.bypass=Ke.css=Ke.style;Ke.renderedCss=Ke.renderedStyle;Ke.removeBypass=Ke.removeCss=Ke.removeStyle;Ke.pstyle=Ke.parsedStyle;var Ht={};function ys(t){return function(){var e=arguments,r=[];if(e.length===2){var a=e[0],n=e[1];this.on(t.event,a,n)}else if(e.length===1&&Be(e[0])){var i=e[0];this.on(t.event,i)}else if(e.length===0||e.length===1&&Me(e[0])){for(var s=e.length===1?e[0]:null,o=0;o<this.length;o++){var l=this[o],u=!t.ableField||l._private[t.ableField],f=l._private[t.field]!=t.value;if(t.overrideAble){var h=t.overrideAble(l);if(h!==void 0&&(u=h,!h))return this}u&&(l._private[t.field]=t.value,f&&r.push(l))}var c=this.spawn(r);c.updateStyle(),c.emit(t.event),s&&c.emit(s)}return this}}function Pr(t){Ht[t.field]=function(){var e=this[0];if(e){if(t.overrideField){var r=t.overrideField(e);if(r!==void 0)return r}return e._private[t.field]}},Ht[t.on]=ys({event:t.on,field:t.field,ableField:t.ableField,overrideAble:t.overrideAble,value:!0}),Ht[t.off]=ys({event:t.off,field:t.field,ableField:t.ableField,overrideAble:t.overrideAble,value:!1})}Pr({field:"locked",overrideField:function(e){return e.cy().autolock()?!0:void 0},on:"lock",off:"unlock"});Pr({field:"grabbable",overrideField:function(e){return e.cy().autoungrabify()||e.pannable()?!1:void 0},on:"grabify",off:"ungrabify"});Pr({field:"selected",ableField:"selectable",overrideAble:function(e){return e.cy().autounselectify()?!1:void 0},on:"select",off:"unselect"});Pr({field:"selectable",overrideField:function(e){return e.cy().autounselectify()?!1:void 0},on:"selectify",off:"unselectify"});Ht.deselect=Ht.unselect;Ht.grabbed=function(){var t=this[0];if(t)return t._private.grabbed};Pr({field:"active",on:"activate",off:"unactivate"});Pr({field:"pannable",on:"panify",off:"unpanify"});Ht.inactive=function(){var t=this[0];if(t)return!t._private.active};var tt={},ms=function(e){return function(a){for(var n=this,i=[],s=0;s<n.length;s++){var o=n[s];if(o.isNode()){for(var l=!1,u=o.connectedEdges(),f=0;f<u.length;f++){var h=u[f],c=h.source(),v=h.target();if(e.noIncomingEdges&&v===o&&c!==o||e.noOutgoingEdges&&c===o&&v!==o){l=!0;break}}l||i.push(o)}}return this.spawn(i,!0).filter(a)}},bs=function(e){return function(r){for(var a=this,n=[],i=0;i<a.length;i++){var s=a[i];if(s.isNode())for(var o=s.connectedEdges(),l=0;l<o.length;l++){var u=o[l],f=u.source(),h=u.target();e.outgoing&&f===s?(n.push(u),n.push(h)):e.incoming&&h===s&&(n.push(u),n.push(f))}}return this.spawn(n,!0).filter(r)}},Es=function(e){return function(r){for(var a=this,n=[],i={};;){var s=e.outgoing?a.outgoers():a.incomers();if(s.length===0)break;for(var o=!1,l=0;l<s.length;l++){var u=s[l],f=u.id();i[f]||(i[f]=!0,n.push(u),o=!0)}if(!o)break;a=s}return this.spawn(n,!0).filter(r)}};tt.clearTraversalCache=function(){for(var t=0;t<this.length;t++)this[t]._private.traversalCache=null};de(tt,{roots:ms({noIncomingEdges:!0}),leaves:ms({noOutgoingEdges:!0}),outgoers:gt(bs({outgoing:!0}),"outgoers"),successors:Es({outgoing:!0}),incomers:gt(bs({incoming:!0}),"incomers"),predecessors:Es({incoming:!0})});de(tt,{neighborhood:gt(function(t){for(var e=[],r=this.nodes(),a=0;a<r.length;a++)for(var n=r[a],i=n.connectedEdges(),s=0;s<i.length;s++){var o=i[s],l=o.source(),u=o.target(),f=n===l?u:l;f.length>0&&e.push(f[0]),e.push(o[0])}return this.spawn(e,!0).filter(t)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}});tt.neighbourhood=tt.neighborhood;tt.closedNeighbourhood=tt.closedNeighborhood;tt.openNeighbourhood=tt.openNeighborhood;de(tt,{source:gt(function(e){var r=this[0],a;return r&&(a=r._private.source||r.cy().collection()),a&&e?a.filter(e):a},"source"),target:gt(function(e){var r=this[0],a;return r&&(a=r._private.target||r.cy().collection()),a&&e?a.filter(e):a},"target"),sources:ws({attr:"source"}),targets:ws({attr:"target"})});function ws(t){return function(r){for(var a=[],n=0;n<this.length;n++){var i=this[n],s=i._private[t.attr];s&&a.push(s)}return this.spawn(a,!0).filter(r)}}de(tt,{edgesWith:gt(xs(),"edgesWith"),edgesTo:gt(xs({thisIsSrc:!0}),"edgesTo")});function xs(t){return function(r){var a=[],n=this._private.cy,i=t||{};ve(r)&&(r=n.$(r));for(var s=0;s<r.length;s++)for(var o=r[s]._private.edges,l=0;l<o.length;l++){var u=o[l],f=u._private.data,h=this.hasElementWithId(f.source)&&r.hasElementWithId(f.target),c=r.hasElementWithId(f.source)&&this.hasElementWithId(f.target),v=h||c;v&&((i.thisIsSrc||i.thisIsTgt)&&(i.thisIsSrc&&!h||i.thisIsTgt&&!c)||a.push(u))}return this.spawn(a,!0)}}de(tt,{connectedEdges:gt(function(t){for(var e=[],r=this,a=0;a<r.length;a++){var n=r[a];if(n.isNode())for(var i=n._private.edges,s=0;s<i.length;s++){var o=i[s];e.push(o)}}return this.spawn(e,!0).filter(t)},"connectedEdges"),connectedNodes:gt(function(t){for(var e=[],r=this,a=0;a<r.length;a++){var n=r[a];n.isEdge()&&(e.push(n.source()[0]),e.push(n.target()[0]))}return this.spawn(e,!0).filter(t)},"connectedNodes"),parallelEdges:gt(Ts(),"parallelEdges"),codirectedEdges:gt(Ts({codirected:!0}),"codirectedEdges")});function Ts(t){var e={codirected:!1};return t=de({},e,t),function(a){for(var n=[],i=this.edges(),s=t,o=0;o<i.length;o++)for(var l=i[o],u=l._private,f=u.source,h=f._private.data.id,c=u.data.target,v=f._private.edges,d=0;d<v.length;d++){var g=v[d],p=g._private.data,y=p.target,E=p.source,m=y===c&&E===h,T=h===y&&c===E;(s.codirected&&m||!s.codirected&&(m||T))&&n.push(g)}return this.spawn(n,!0).filter(a)}}de(tt,{components:function(e){var r=this,a=r.cy(),n=a.collection(),i=e==null?r.nodes():e.nodes(),s=[];e!=null&&i.empty()&&(i=e.sources());var o=function(f,h){n.merge(f),i.unmerge(f),h.merge(f)};if(i.empty())return r.spawn();var l=function(){var f=a.collection();s.push(f);var h=i[0];o(h,f),r.bfs({directed:!1,roots:h,visit:function(v){return o(v,f)}}),f.forEach(function(c){c.connectedEdges().forEach(function(v){r.has(v)&&f.has(v.source())&&f.has(v.target())&&f.merge(v)})})};do l();while(i.length>0);return s},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}});tt.componentsOf=tt.components;var Ze=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){Ge("A collection must have a reference to the core");return}var i=new Lt,s=!1;if(!r)r=[];else if(r.length>0&&De(r[0])&&!ca(r[0])){s=!0;for(var o=[],l=new Mr,u=0,f=r.length;u<f;u++){var h=r[u];h.data==null&&(h.data={});var c=h.data;if(c.id==null)c.id=yo();else if(e.hasElementWithId(c.id)||l.has(c.id))continue;var v=new un(e,h,!1);o.push(v),l.add(c.id)}r=o}this.length=0;for(var d=0,g=r.length;d<g;d++){var p=r[d][0];if(p!=null){var y=p._private.data.id;(!a||!i.has(y))&&(a&&i.set(y,{index:this.length,ele:p}),this[this.length]=p,this.length++)}}this._private={eles:this,cy:e,get map(){return this.lazyMap==null&&this.rebuildMap(),this.lazyMap},set map(E){this.lazyMap=E},rebuildMap:function(){for(var m=this.lazyMap=new Lt,T=this.eles,C=0;C<T.length;C++){var S=T[C];m.set(S.id(),{index:C,ele:S})}}},a&&(this._private.map=i),s&&!n&&this.restore()},ke=un.prototype=Ze.prototype=Object.create(Array.prototype);ke.instanceString=function(){return"collection"};ke.spawn=function(t,e){return new Ze(this.cy(),t,e)};ke.spawnSelf=function(){return this.spawn(this)};ke.cy=function(){return this._private.cy};ke.renderer=function(){return this._private.cy.renderer()};ke.element=function(){return this[0]};ke.collection=function(){return no(this)?this:new Ze(this._private.cy,[this])};ke.unique=function(){return new Ze(this._private.cy,this,!0)};ke.hasElementWithId=function(t){return t=""+t,this._private.map.has(t)};ke.getElementById=function(t){t=""+t;var e=this._private.cy,r=this._private.map.get(t);return r?r.ele:new Ze(e)};ke.$id=ke.getElementById;ke.poolIndex=function(){var t=this._private.cy,e=t._private.elements,r=this[0]._private.data.id;return e._private.map.get(r).index};ke.indexOf=function(t){var e=t[0]._private.data.id;return this._private.map.get(e).index};ke.indexOfId=function(t){return t=""+t,this._private.map.get(t).index};ke.json=function(t){var e=this.element(),r=this.cy();if(e==null&&t)return this;if(e!=null){var a=e._private;if(De(t)){if(r.startBatch(),t.data){e.data(t.data);var n=a.data;if(e.isEdge()){var i=!1,s={},o=t.data.source,l=t.data.target;o!=null&&o!=n.source&&(s.source=""+o,i=!0),l!=null&&l!=n.target&&(s.target=""+l,i=!0),i&&(e=e.move(s))}else{var u="parent"in t.data,f=t.data.parent;u&&(f!=null||n.parent!=null)&&f!=n.parent&&(f===void 0&&(f=null),f!=null&&(f=""+f),e=e.move({parent:f}))}}t.position&&e.position(t.position);var h=function(g,p,y){var E=t[g];E!=null&&E!==a[g]&&(E?e[p]():e[y]())};return h("removed","remove","restore"),h("selected","select","unselect"),h("selectable","selectify","unselectify"),h("locked","lock","unlock"),h("grabbable","grabify","ungrabify"),h("pannable","panify","unpanify"),t.classes!=null&&e.classes(t.classes),r.endBatch(),this}else if(t===void 0){var c={data:St(a.data),position:St(a.position),group:a.group,removed:a.removed,selected:a.selected,selectable:a.selectable,locked:a.locked,grabbable:a.grabbable,pannable:a.pannable,classes:null};c.classes="";var v=0;return a.classes.forEach(function(d){return c.classes+=v++===0?d:" "+d}),c}}};ke.jsons=function(){for(var t=[],e=0;e<this.length;e++){var r=this[e],a=r.json();t.push(a)}return t};ke.clone=function(){for(var t=this.cy(),e=[],r=0;r<this.length;r++){var a=this[r],n=a.json(),i=new un(t,n,!1);e.push(i)}return new Ze(t,e)};ke.copy=ke.clone;ke.restore=function(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=r.cy(),n=a._private,i=[],s=[],o,l=0,u=r.length;l<u;l++){var f=r[l];e&&!f.removed()||(f.isNode()?i.push(f):s.push(f))}o=i.concat(s);var h,c=function(){o.splice(h,1),h--};for(h=0;h<o.length;h++){var v=o[h],d=v._private,g=d.data;if(v.clearTraversalCache(),!(!e&&!d.removed)){if(g.id===void 0)g.id=yo();else if(ae(g.id))g.id=""+g.id;else if(Yt(g.id)||!ve(g.id)){Ge("Can not create element with invalid string ID `"+g.id+"`"),c();continue}else if(a.hasElementWithId(g.id)){Ge("Can not create second element with ID `"+g.id+"`"),c();continue}}var p=g.id;if(v.isNode()){var y=d.position;y.x==null&&(y.x=0),y.y==null&&(y.y=0)}if(v.isEdge()){for(var E=v,m=["source","target"],T=m.length,C=!1,S=0;S<T;S++){var b=m[S],x=g[b];ae(x)&&(x=g[b]=""+g[b]),x==null||x===""?(Ge("Can not create edge `"+p+"` with unspecified "+b),C=!0):a.hasElementWithId(x)||(Ge("Can not create edge `"+p+"` with nonexistant "+b+" `"+x+"`"),C=!0)}if(C){c();continue}var w=a.getElementById(g.source),D=a.getElementById(g.target);w.same(D)?w._private.edges.push(E):(w._private.edges.push(E),D._private.edges.push(E)),E._private.source=w,E._private.target=D}d.map=new Lt,d.map.set(p,{ele:v,index:0}),d.removed=!1,e&&a.addToPool(v)}for(var A=0;A<i.length;A++){var L=i[A],I=L._private.data;ae(I.parent)&&(I.parent=""+I.parent);var O=I.parent,P=O!=null;if(P||L._private.parent){var R=L._private.parent?a.collection().merge(L._private.parent):a.getElementById(O);if(R.empty())I.parent=void 0;else if(R[0].removed())Ne("Node added with missing parent, reference to parent removed"),I.parent=void 0,L._private.parent=null;else{for(var M=!1,k=R;!k.empty();){if(L.same(k)){M=!0,I.parent=void 0;break}k=k.parent()}M||(R[0]._private.children.push(L),L._private.parent=R[0],n.hasCompoundNodes=!0)}}}if(o.length>0){for(var B=o.length===r.length?r:new Ze(a,o),G=0;G<B.length;G++){var F=B[G];F.isNode()||(F.parallelEdges().clearTraversalCache(),F.source().clearTraversalCache(),F.target().clearTraversalCache())}var $;n.hasCompoundNodes?$=a.collection().merge(B).merge(B.connectedNodes()).merge(B.parent()):$=B,$.dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(t),t?B.emitAndNotify("add"):e&&B.emit("add")}return r};ke.removed=function(){var t=this[0];return t&&t._private.removed};ke.inside=function(){var t=this[0];return t&&!t._private.removed};ke.remove=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=[],n={},i=r._private.cy;function s(O){for(var P=O._private.edges,R=0;R<P.length;R++)l(P[R])}function o(O){for(var P=O._private.children,R=0;R<P.length;R++)l(P[R])}function l(O){var P=n[O.id()];e&&O.removed()||P||(n[O.id()]=!0,O.isNode()?(a.push(O),s(O),o(O)):a.unshift(O))}for(var u=0,f=r.length;u<f;u++){var h=r[u];l(h)}function c(O,P){var R=O._private.edges;Xt(R,P),O.clearTraversalCache()}function v(O){O.clearTraversalCache()}var d=[];d.ids={};function g(O,P){P=P[0],O=O[0];var R=O._private.children,M=O.id();Xt(R,P),P._private.parent=null,d.ids[M]||(d.ids[M]=!0,d.push(O))}r.dirtyCompoundBoundsCache(),e&&i.removeFromPool(a);for(var p=0;p<a.length;p++){var y=a[p];if(y.isEdge()){var E=y.source()[0],m=y.target()[0];c(E,y),c(m,y);for(var T=y.parallelEdges(),C=0;C<T.length;C++){var S=T[C];v(S),S.isBundledBezier()&&S.dirtyBoundingBoxCache()}}else{var b=y.parent();b.length!==0&&g(b,y)}e&&(y._private.removed=!0)}var x=i._private.elements;i._private.hasCompoundNodes=!1;for(var w=0;w<x.length;w++){var D=x[w];if(D.isParent()){i._private.hasCompoundNodes=!0;break}}var A=new Ze(this.cy(),a);A.size()>0&&(t?A.emitAndNotify("remove"):e&&A.emit("remove"));for(var L=0;L<d.length;L++){var I=d[L];(!e||!I.removed())&&I.updateStyle()}return A};ke.move=function(t){var e=this._private.cy,r=this,a=!1,n=!1,i=function(d){return d==null?d:""+d};if(t.source!==void 0||t.target!==void 0){var s=i(t.source),o=i(t.target),l=s!=null&&e.hasElementWithId(s),u=o!=null&&e.hasElementWithId(o);(l||u)&&(e.batch(function(){r.remove(a,n),r.emitAndNotify("moveout");for(var v=0;v<r.length;v++){var d=r[v],g=d._private.data;d.isEdge()&&(l&&(g.source=s),u&&(g.target=o))}r.restore(a,n)}),r.emitAndNotify("move"))}else if(t.parent!==void 0){var f=i(t.parent),h=f===null||e.hasElementWithId(f);if(h){var c=f===null?void 0:f;e.batch(function(){var v=r.remove(a,n);v.emitAndNotify("moveout");for(var d=0;d<r.length;d++){var g=r[d],p=g._private.data;g.isNode()&&(p.parent=c)}v.restore(a,n)}),r.emitAndNotify("move")}}return this};[No,Zg,Ba,Ut,Ar,vp,vn,Ap,qo,Ko,Rp,Za,Fa,Ke,Ht,tt].forEach(function(t){de(ke,t)});var $p={add:function(e){var r,a=this;if(ht(e)){var n=e;if(n._private.cy===a)r=n.restore();else{for(var i=[],s=0;s<n.length;s++){var o=n[s];i.push(o.json())}r=new Ze(a,i)}}else if(Me(e)){var l=e;r=new Ze(a,l)}else if(De(e)&&(Me(e.nodes)||Me(e.edges))){for(var u=e,f=[],h=["nodes","edges"],c=0,v=h.length;c<v;c++){var d=h[c],g=u[d];if(Me(g))for(var p=0,y=g.length;p<y;p++){var E=de({group:d},g[p]);f.push(E)}}r=new Ze(a,f)}else{var m=e;r=new un(a,m).collection()}return r},remove:function(e){if(!ht(e)){if(ve(e)){var r=e;e=this.$(r)}}return e.remove()}};/*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */function Vp(t,e,r,a){var n=4,i=.001,s=1e-7,o=10,l=11,u=1/(l-1),f=typeof Float32Array<"u";if(arguments.length!==4)return!1;for(var h=0;h<4;++h)if(typeof arguments[h]!="number"||isNaN(arguments[h])||!isFinite(arguments[h]))return!1;t=Math.min(t,1),r=Math.min(r,1),t=Math.max(t,0),r=Math.max(r,0);var c=f?new Float32Array(l):new Array(l);function v(D,A){return 1-3*A+3*D}function d(D,A){return 3*A-6*D}function g(D){return 3*D}function p(D,A,L){return((v(A,L)*D+d(A,L))*D+g(A))*D}function y(D,A,L){return 3*v(A,L)*D*D+2*d(A,L)*D+g(A)}function E(D,A){for(var L=0;L<n;++L){var I=y(A,t,r);if(I===0)return A;var O=p(A,t,r)-D;A-=O/I}return A}function m(){for(var D=0;D<l;++D)c[D]=p(D*u,t,r)}function T(D,A,L){var I,O,P=0;do O=A+(L-A)/2,I=p(O,t,r)-D,I>0?L=O:A=O;while(Math.abs(I)>s&&++P<o);return O}function C(D){for(var A=0,L=1,I=l-1;L!==I&&c[L]<=D;++L)A+=u;--L;var O=(D-c[L])/(c[L+1]-c[L]),P=A+O*u,R=y(P,t,r);return R>=i?E(D,P):R===0?P:T(D,A,A+u)}var S=!1;function b(){S=!0,(t!==e||r!==a)&&m()}var x=function(A){return S||b(),t===e&&r===a?A:A===0?0:A===1?1:p(C(A),e,a)};x.getControlPoints=function(){return[{x:t,y:e},{x:r,y:a}]};var w="generateBezier("+[t,e,r,a]+")";return x.toString=function(){return w},x}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var _p=function(){function t(a){return-a.tension*a.x-a.friction*a.v}function e(a,n,i){var s={x:a.x+i.dx*n,v:a.v+i.dv*n,tension:a.tension,friction:a.friction};return{dx:s.v,dv:t(s)}}function r(a,n){var i={dx:a.v,dv:t(a)},s=e(a,n*.5,i),o=e(a,n*.5,s),l=e(a,n,o),u=1/6*(i.dx+2*(s.dx+o.dx)+l.dx),f=1/6*(i.dv+2*(s.dv+o.dv)+l.dv);return a.x=a.x+u*n,a.v=a.v+f*n,a}return function a(n,i,s){var o={x:-1,v:0,tension:null,friction:null},l=[0],u=0,f=1/1e4,h=16/1e3,c,v,d;for(n=parseFloat(n)||500,i=parseFloat(i)||20,s=s||null,o.tension=n,o.friction=i,c=s!==null,c?(u=a(n,i),v=u/s*h):v=h;d=r(d||o,v),l.push(1+d.x),u+=16,Math.abs(d.x)>f&&Math.abs(d.v)>f;);return c?function(g){return l[g*(l.length-1)|0]}:u}}(),Re=function(e,r,a,n){var i=Vp(e,r,a,n);return function(s,o,l){return s+(o-s)*i(l)}},Ga={linear:function(e,r,a){return e+(r-e)*a},ease:Re(.25,.1,.25,1),"ease-in":Re(.42,0,1,1),"ease-out":Re(0,0,.58,1),"ease-in-out":Re(.42,0,.58,1),"ease-in-sine":Re(.47,0,.745,.715),"ease-out-sine":Re(.39,.575,.565,1),"ease-in-out-sine":Re(.445,.05,.55,.95),"ease-in-quad":Re(.55,.085,.68,.53),"ease-out-quad":Re(.25,.46,.45,.94),"ease-in-out-quad":Re(.455,.03,.515,.955),"ease-in-cubic":Re(.55,.055,.675,.19),"ease-out-cubic":Re(.215,.61,.355,1),"ease-in-out-cubic":Re(.645,.045,.355,1),"ease-in-quart":Re(.895,.03,.685,.22),"ease-out-quart":Re(.165,.84,.44,1),"ease-in-out-quart":Re(.77,0,.175,1),"ease-in-quint":Re(.755,.05,.855,.06),"ease-out-quint":Re(.23,1,.32,1),"ease-in-out-quint":Re(.86,0,.07,1),"ease-in-expo":Re(.95,.05,.795,.035),"ease-out-expo":Re(.19,1,.22,1),"ease-in-out-expo":Re(1,0,0,1),"ease-in-circ":Re(.6,.04,.98,.335),"ease-out-circ":Re(.075,.82,.165,1),"ease-in-out-circ":Re(.785,.135,.15,.86),spring:function(e,r,a){if(a===0)return Ga.linear;var n=_p(e,r,a);return function(i,s,o){return i+(s-i)*n(o)}},"cubic-bezier":Re};function Cs(t,e,r,a,n){if(a===1||e===r)return r;var i=n(e,r,a);return t==null||((t.roundValue||t.color)&&(i=Math.round(i)),t.min!==void 0&&(i=Math.max(i,t.min)),t.max!==void 0&&(i=Math.min(i,t.max))),i}function Ds(t,e){return t.pfValue!=null||t.value!=null?t.pfValue!=null&&(e==null||e.type.units!=="%")?t.pfValue:t.value:t}function pr(t,e,r,a,n){var i=n!=null?n.type:null;r<0?r=0:r>1&&(r=1);var s=Ds(t,n),o=Ds(e,n);if(ae(s)&&ae(o))return Cs(i,s,o,r,a);if(Me(s)&&Me(o)){for(var l=[],u=0;u<o.length;u++){var f=s[u],h=o[u];if(f!=null&&h!=null){var c=Cs(i,f,h,r,a);l.push(c)}else l.push(h)}return l}}function Up(t,e,r,a){var n=!a,i=t._private,s=e._private,o=s.easing,l=s.startTime,u=a?t:t.cy(),f=u.style();if(!s.easingImpl)if(o==null)s.easingImpl=Ga.linear;else{var h;if(ve(o)){var c=f.parse("transition-timing-function",o);h=c.value}else h=o;var v,d;ve(h)?(v=h,d=[]):(v=h[1],d=h.slice(2).map(function(B){return+B})),d.length>0?(v==="spring"&&d.push(s.duration),s.easingImpl=Ga[v].apply(null,d)):s.easingImpl=Ga[v]}var g=s.easingImpl,p;if(s.duration===0?p=1:p=(r-l)/s.duration,s.applying&&(p=s.progress),p<0?p=0:p>1&&(p=1),s.delay==null){var y=s.startPosition,E=s.position;if(E&&n&&!t.locked()){var m={};Yr(y.x,E.x)&&(m.x=pr(y.x,E.x,p,g)),Yr(y.y,E.y)&&(m.y=pr(y.y,E.y,p,g)),t.position(m)}var T=s.startPan,C=s.pan,S=i.pan,b=C!=null&&a;b&&(Yr(T.x,C.x)&&(S.x=pr(T.x,C.x,p,g)),Yr(T.y,C.y)&&(S.y=pr(T.y,C.y,p,g)),t.emit("pan"));var x=s.startZoom,w=s.zoom,D=w!=null&&a;D&&(Yr(x,w)&&(i.zoom=ra(i.minZoom,pr(x,w,p,g),i.maxZoom)),t.emit("zoom")),(b||D)&&t.emit("viewport");var A=s.style;if(A&&A.length>0&&n){for(var L=0;L<A.length;L++){var I=A[L],O=I.name,P=I,R=s.startStyle[O],M=f.properties[R.name],k=pr(R,P,p,g,M);f.overrideBypass(t,O,k)}t.emit("style")}}return s.progress=p,p}function Yr(t,e){return t==null||e==null?!1:ae(t)&&ae(e)?!0:!!(t&&e)}function Hp(t,e,r,a){var n=e._private;n.started=!0,n.startTime=r-n.progress*n.duration}function Ss(t,e){var r=e._private.aniEles,a=[];function n(f,h){var c=f._private,v=c.animation.current,d=c.animation.queue,g=!1;if(v.length===0){var p=d.shift();p&&v.push(p)}for(var y=function(S){for(var b=S.length-1;b>=0;b--){var x=S[b];x()}S.splice(0,S.length)},E=v.length-1;E>=0;E--){var m=v[E],T=m._private;if(T.stopped){v.splice(E,1),T.hooked=!1,T.playing=!1,T.started=!1,y(T.frames);continue}!T.playing&&!T.applying||(T.playing&&T.applying&&(T.applying=!1),T.started||Hp(f,m,t),Up(f,m,t,h),T.applying&&(T.applying=!1),y(T.frames),T.step!=null&&T.step(t),m.completed()&&(v.splice(E,1),T.hooked=!1,T.playing=!1,T.started=!1,y(T.completes)),g=!0)}return!h&&v.length===0&&d.length===0&&a.push(f),g}for(var i=!1,s=0;s<r.length;s++){var o=r[s],l=n(o);i=i||l}var u=n(e,!0);(i||u)&&(r.length>0?e.notify("draw",r):e.notify("draw")),r.unmerge(a),e.emit("step")}var Yp={animate:Oe.animate(),animation:Oe.animation(),animated:Oe.animated(),clearQueue:Oe.clearQueue(),delay:Oe.delay(),delayAnimation:Oe.delayAnimation(),stop:Oe.stop(),addToAnimationPool:function(e){var r=this;r.styleEnabled()&&r._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function r(){e._private.animationsRunning&&Ya(function(i){Ss(i,e),r()})}var a=e.renderer();a&&a.beforeRender?a.beforeRender(function(i,s){Ss(s,e)},a.beforeRenderPriorities.animations):r()}},Xp={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,a){var n=r.qualifier;return n!=null?e!==a.target&&ca(a.target)&&n.matches(a.target):!0},addEventFields:function(e,r){r.cy=e,r.target=e},callbackContext:function(e,r,a){return r.qualifier!=null?a.target:e}},Ma=function(e){return ve(e)?new Wt(e):e},Jo={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new cn(Xp,this)),this},emitter:function(){return this._private.emitter},on:function(e,r,a){return this.emitter().on(e,Ma(r),a),this},removeListener:function(e,r,a){return this.emitter().removeListener(e,Ma(r),a),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,r,a){return this.emitter().one(e,Ma(r),a),this},once:function(e,r,a){return this.emitter().one(e,Ma(r),a),this},emit:function(e,r){return this.emitter().emit(e,r),this},emitAndNotify:function(e,r){return this.emit(e),this.notify(e,r),this}};Oe.eventAliasesOn(Jo);var Hn={png:function(e){var r=this._private.renderer;return e=e||{},r.png(e)},jpg:function(e){var r=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",r.jpg(e)}};Hn.jpeg=Hn.jpg;var za={layout:function(e){var r=this;if(e==null){Ge("Layout options must be specified to make a layout");return}if(e.name==null){Ge("A `name` must be specified to make a layout");return}var a=e.name,n=r.extension("layout",a);if(n==null){Ge("No such layout `"+a+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var i;ve(e.eles)?i=r.$(e.eles):i=e.eles!=null?e.eles:r.$();var s=new n(de({},e,{cy:r,eles:i}));return s}};za.createLayout=za.makeLayout=za.layout;var Wp={notify:function(e,r){var a=this._private;if(this.batching()){a.batchNotifications=a.batchNotifications||{};var n=a.batchNotifications[e]=a.batchNotifications[e]||this.collection();r!=null&&n.merge(r);return}if(a.notificationsEnabled){var i=this.renderer();this.destroyed()||!i||i.notify(e,r)}},notifications:function(e){var r=this._private;return e===void 0?r.notificationsEnabled:(r.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(e.batchNotifications).forEach(function(a){var n=e.batchNotifications[a];n.empty()?r.notify(a):r.notify(a,n)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var r=this;return this.batch(function(){for(var a=Object.keys(e),n=0;n<a.length;n++){var i=a[n],s=e[i],o=r.getElementById(i);o.data(s)}})}},qp=Qe({hideEdgesOnViewport:!1,textureOnViewport:!1,motionBlur:!1,motionBlurOpacity:.05,pixelRatio:void 0,desktopTapThreshold:4,touchTapThreshold:8,wheelSensitivity:1,debug:!1,showFps:!1}),Yn={renderTo:function(e,r,a,n){var i=this._private.renderer;return i.renderTo(e,r,a,n),this},renderer:function(){return this._private.renderer},forceRender:function(){return this.notify("draw"),this},resize:function(){return this.invalidateSize(),this.emitAndNotify("resize"),this},initRenderer:function(e){var r=this,a=r.extension("renderer",e.name);if(a==null){Ge("Can not initialise: No such renderer `".concat(e.name,"` found. Did you forget to import it and `cytoscape.use()` it?"));return}e.wheelSensitivity!==void 0&&Ne("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");var n=qp(e);n.cy=r,r._private.renderer=new a(n),this.notify("init")},destroyRenderer:function(){var e=this;e.notify("destroy");var r=e.container();if(r)for(r._cyreg=null;r.childNodes.length>0;)r.removeChild(r.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(a){var n=a._private;n.rscratch={},n.rstyle={},n.animation.current=[],n.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};Yn.invalidateDimensions=Yn.resize;var $a={collection:function(e,r){return ve(e)?this.$(e):ht(e)?e.collection():Me(e)?(r||(r={}),new Ze(this,e,r.unique,r.removed)):new Ze(this)},nodes:function(e){var r=this.$(function(a){return a.isNode()});return e?r.filter(e):r},edges:function(e){var r=this.$(function(a){return a.isEdge()});return e?r.filter(e):r},$:function(e){var r=this._private.elements;return e?r.filter(e):r.spawnSelf()},mutableElements:function(){return this._private.elements}};$a.elements=$a.filter=$a.$;var at={},Zr="t",Kp="f";at.apply=function(t){for(var e=this,r=e._private,a=r.cy,n=a.collection(),i=0;i<t.length;i++){var s=t[i],o=e.getContextMeta(s);if(!o.empty){var l=e.getContextStyle(o),u=e.applyContextStyle(o,l,s);s._private.appliedInitStyle?e.updateTransitions(s,u.diffProps):s._private.appliedInitStyle=!0;var f=e.updateStyleHints(s);f&&n.push(s)}}return n};at.getPropertiesDiff=function(t,e){var r=this,a=r._private.propDiffs=r._private.propDiffs||{},n=t+"-"+e,i=a[n];if(i)return i;for(var s=[],o={},l=0;l<r.length;l++){var u=r[l],f=t[l]===Zr,h=e[l]===Zr,c=f!==h,v=u.mappedProperties.length>0;if(c||h&&v){var d=void 0;c&&v||c?d=u.properties:v&&(d=u.mappedProperties);for(var g=0;g<d.length;g++){for(var p=d[g],y=p.name,E=!1,m=l+1;m<r.length;m++){var T=r[m],C=e[m]===Zr;if(C&&(E=T.properties[p.name]!=null,E))break}!o[y]&&!E&&(o[y]=!0,s.push(y))}}}return a[n]=s,s};at.getContextMeta=function(t){for(var e=this,r="",a,n=t._private.styleCxtKey||"",i=0;i<e.length;i++){var s=e[i],o=s.selector&&s.selector.matches(t);o?r+=Zr:r+=Kp}return a=e.getPropertiesDiff(n,r),t._private.styleCxtKey=r,{key:r,diffPropNames:a,empty:a.length===0}};at.getContextStyle=function(t){var e=t.key,r=this,a=this._private.contextStyles=this._private.contextStyles||{};if(a[e])return a[e];for(var n={_private:{key:e}},i=0;i<r.length;i++){var s=r[i],o=e[i]===Zr;if(o)for(var l=0;l<s.properties.length;l++){var u=s.properties[l];n[u.name]=u}}return a[e]=n,n};at.applyContextStyle=function(t,e,r){for(var a=this,n=t.diffPropNames,i={},s=a.types,o=0;o<n.length;o++){var l=n[o],u=e[l],f=r.pstyle(l);if(!u)if(f)f.bypass?u={name:l,deleteBypassed:!0}:u={name:l,delete:!0};else continue;if(f!==u){if(u.mapped===s.fn&&f!=null&&f.mapping!=null&&f.mapping.value===u.value){var h=f.mapping,c=h.fnValue=u.value(r);if(c===h.prevFnValue)continue}var v=i[l]={prev:f};a.applyParsedProperty(r,u),v.next=r.pstyle(l),v.next&&v.next.bypass&&(v.next=v.next.bypassed)}}return{diffProps:i}};at.updateStyleHints=function(t){var e=t._private,r=this,a=r.propertyGroupNames,n=r.propertyGroupKeys,i=function(ee,ne,ce){return r.getPropertiesHash(ee,ne,ce)},s=e.styleKey;if(t.removed())return!1;var o=e.group==="nodes",l=t._private.style;a=Object.keys(l);for(var u=0;u<n.length;u++){var f=n[u];e.styleKeys[f]=[br,Xr]}for(var h=function(ee,ne){return e.styleKeys[ne][0]=jr(ee,e.styleKeys[ne][0])},c=function(ee,ne){return e.styleKeys[ne][1]=ea(ee,e.styleKeys[ne][1])},v=function(ee,ne){h(ee,ne),c(ee,ne)},d=function(ee,ne){for(var ce=0;ce<ee.length;ce++){var te=ee.charCodeAt(ce);h(te,ne),c(te,ne)}},g=2e9,p=function(ee){return-128<ee&&ee<128&&Math.floor(ee)!==ee?g-(ee*1024|0):ee},y=0;y<a.length;y++){var E=a[y],m=l[E];if(m!=null){var T=this.properties[E],C=T.type,S=T.groupKey,b=void 0;T.hashOverride!=null?b=T.hashOverride(t,m):m.pfValue!=null&&(b=m.pfValue);var x=T.enums==null?m.value:null,w=b!=null,D=x!=null,A=w||D,L=m.units;if(C.number&&A&&!C.multiple){var I=w?b:x;v(p(I),S),!w&&L!=null&&d(L,S)}else d(m.strValue,S)}}for(var O=[br,Xr],P=0;P<n.length;P++){var R=n[P],M=e.styleKeys[R];O[0]=jr(M[0],O[0]),O[1]=ea(M[1],O[1])}e.styleKey=ld(O[0],O[1]);var k=e.styleKeys;e.labelDimsKey=Gt(k.labelDimensions);var B=i(t,["label"],k.labelDimensions);if(e.labelKey=Gt(B),e.labelStyleKey=Gt(Ta(k.commonLabel,B)),!o){var G=i(t,["source-label"],k.labelDimensions);e.sourceLabelKey=Gt(G),e.sourceLabelStyleKey=Gt(Ta(k.commonLabel,G));var F=i(t,["target-label"],k.labelDimensions);e.targetLabelKey=Gt(F),e.targetLabelStyleKey=Gt(Ta(k.commonLabel,F))}if(o){var $=e.styleKeys,U=$.nodeBody,_=$.nodeBorder,Y=$.nodeOutline,W=$.backgroundImage,z=$.compound,K=$.pie,j=[U,_,Y,W,z,K].filter(function(Q){return Q!=null}).reduce(Ta,[br,Xr]);e.nodeKey=Gt(j),e.hasPie=K!=null&&K[0]!==br&&K[1]!==Xr}return s!==e.styleKey};at.clearStyleHints=function(t){var e=t._private;e.styleCxtKey="",e.styleKeys={},e.styleKey=null,e.labelKey=null,e.labelStyleKey=null,e.sourceLabelKey=null,e.sourceLabelStyleKey=null,e.targetLabelKey=null,e.targetLabelStyleKey=null,e.nodeKey=null,e.hasPie=null};at.applyParsedProperty=function(t,e){var r=this,a=e,n=t._private.style,i,s=r.types,o=r.properties[a.name].type,l=a.bypass,u=n[a.name],f=u&&u.bypass,h=t._private,c="mapping",v=function(U){return U==null?null:U.pfValue!=null?U.pfValue:U.value},d=function(){var U=v(u),_=v(a);r.checkTriggers(t,a.name,U,_)};if(e.name==="curve-style"&&t.isEdge()&&(e.value!=="bezier"&&t.isLoop()||e.value==="haystack"&&(t.source().isParent()||t.target().isParent()))&&(a=e=this.parse(e.name,"bezier",l)),a.delete)return n[a.name]=void 0,d(),!0;if(a.deleteBypassed)return u?u.bypass?(u.bypassed=void 0,d(),!0):!1:(d(),!0);if(a.deleteBypass)return u?u.bypass?(n[a.name]=u.bypassed,d(),!0):!1:(d(),!0);var g=function(){Ne("Do not assign mappings to elements without corresponding data (i.e. ele `"+t.id()+"` has no mapping for property `"+a.name+"` with data field `"+a.field+"`); try a `["+a.field+"]` selector to limit scope to elements with `"+a.field+"` defined")};switch(a.mapped){case s.mapData:{for(var p=a.field.split("."),y=h.data,E=0;E<p.length&&y;E++){var m=p[E];y=y[m]}if(y==null)return g(),!1;var T;if(ae(y)){var C=a.fieldMax-a.fieldMin;C===0?T=0:T=(y-a.fieldMin)/C}else return Ne("Do not use continuous mappers without specifying numeric data (i.e. `"+a.field+": "+y+"` for `"+t.id()+"` is non-numeric)"),!1;if(T<0?T=0:T>1&&(T=1),o.color){var S=a.valueMin[0],b=a.valueMax[0],x=a.valueMin[1],w=a.valueMax[1],D=a.valueMin[2],A=a.valueMax[2],L=a.valueMin[3]==null?1:a.valueMin[3],I=a.valueMax[3]==null?1:a.valueMax[3],O=[Math.round(S+(b-S)*T),Math.round(x+(w-x)*T),Math.round(D+(A-D)*T),Math.round(L+(I-L)*T)];i={bypass:a.bypass,name:a.name,value:O,strValue:"rgb("+O[0]+", "+O[1]+", "+O[2]+")"}}else if(o.number){var P=a.valueMin+(a.valueMax-a.valueMin)*T;i=this.parse(a.name,P,a.bypass,c)}else return!1;if(!i)return g(),!1;i.mapping=a,a=i;break}case s.data:{for(var R=a.field.split("."),M=h.data,k=0;k<R.length&&M;k++){var B=R[k];M=M[B]}if(M!=null&&(i=this.parse(a.name,M,a.bypass,c)),!i)return g(),!1;i.mapping=a,a=i;break}case s.fn:{var G=a.value,F=a.fnValue!=null?a.fnValue:G(t);if(a.prevFnValue=F,F==null)return Ne("Custom function mappers may not return null (i.e. `"+a.name+"` for ele `"+t.id()+"` is null)"),!1;if(i=this.parse(a.name,F,a.bypass,c),!i)return Ne("Custom function mappers may not return invalid values for the property type (i.e. `"+a.name+"` for ele `"+t.id()+"` is invalid)"),!1;i.mapping=St(a),a=i;break}case void 0:break;default:return!1}return l?(f?a.bypassed=u.bypassed:a.bypassed=u,n[a.name]=a):f?u.bypassed=a:n[a.name]=a,d(),!0};at.cleanElements=function(t,e){for(var r=0;r<t.length;r++){var a=t[r];if(this.clearStyleHints(a),a.dirtyCompoundBoundsCache(),a.dirtyBoundingBoxCache(),!e)a._private.style={};else for(var n=a._private.style,i=Object.keys(n),s=0;s<i.length;s++){var o=i[s],l=n[o];l!=null&&(l.bypass?l.bypassed=null:n[o]=null)}}};at.update=function(){var t=this._private.cy,e=t.mutableElements();e.updateStyle()};at.updateTransitions=function(t,e){var r=this,a=t._private,n=t.pstyle("transition-property").value,i=t.pstyle("transition-duration").pfValue,s=t.pstyle("transition-delay").pfValue;if(n.length>0&&i>0){for(var o={},l=!1,u=0;u<n.length;u++){var f=n[u],h=t.pstyle(f),c=e[f];if(c){var v=c.prev,d=v,g=c.next!=null?c.next:h,p=!1,y=void 0,E=1e-6;d&&(ae(d.pfValue)&&ae(g.pfValue)?(p=g.pfValue-d.pfValue,y=d.pfValue+E*p):ae(d.value)&&ae(g.value)?(p=g.value-d.value,y=d.value+E*p):Me(d.value)&&Me(g.value)&&(p=d.value[0]!==g.value[0]||d.value[1]!==g.value[1]||d.value[2]!==g.value[2],y=d.strValue),p&&(o[f]=g.strValue,this.applyBypass(t,f,y),l=!0))}}if(!l)return;a.transitioning=!0,new Rr(function(m){s>0?t.delayAnimation(s).play().promise().then(m):m()}).then(function(){return t.animation({style:o,duration:i,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1})}else a.transitioning&&(this.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1)};at.checkTrigger=function(t,e,r,a,n,i){var s=this.properties[e],o=n(s);o!=null&&o(r,a)&&i(s)};at.checkZOrderTrigger=function(t,e,r,a){var n=this;this.checkTrigger(t,e,r,a,function(i){return i.triggersZOrder},function(){n._private.cy.notify("zorder",t)})};at.checkBoundsTrigger=function(t,e,r,a){this.checkTrigger(t,e,r,a,function(n){return n.triggersBounds},function(n){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),n.triggersBoundsOfParallelBeziers&&e==="curve-style"&&(r==="bezier"||a==="bezier")&&t.parallelEdges().forEach(function(i){i.isBundledBezier()&&i.dirtyBoundingBoxCache()}),n.triggersBoundsOfConnectedEdges&&e==="display"&&(r==="none"||a==="none")&&t.connectedEdges().forEach(function(i){i.dirtyBoundingBoxCache()})})};at.checkTriggers=function(t,e,r,a){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,r,a),this.checkBoundsTrigger(t,e,r,a)};var pa={};pa.applyBypass=function(t,e,r,a){var n=this,i=[],s=!0;if(e==="*"||e==="**"){if(r!==void 0)for(var o=0;o<n.properties.length;o++){var l=n.properties[o],u=l.name,f=this.parse(u,r,!0);f&&i.push(f)}}else if(ve(e)){var h=this.parse(e,r,!0);h&&i.push(h)}else if(De(e)){var c=e;a=r;for(var v=Object.keys(c),d=0;d<v.length;d++){var g=v[d],p=c[g];if(p===void 0&&(p=c[ln(g)]),p!==void 0){var y=this.parse(g,p,!0);y&&i.push(y)}}}else return!1;if(i.length===0)return!1;for(var E=!1,m=0;m<t.length;m++){for(var T=t[m],C={},S=void 0,b=0;b<i.length;b++){var x=i[b];if(a){var w=T.pstyle(x.name);S=C[x.name]={prev:w}}E=this.applyParsedProperty(T,St(x))||E,a&&(S.next=T.pstyle(x.name))}E&&this.updateStyleHints(T),a&&this.updateTransitions(T,C,s)}return E};pa.overrideBypass=function(t,e,r){e=ii(e);for(var a=0;a<t.length;a++){var n=t[a],i=n._private.style[e],s=this.properties[e].type,o=s.color,l=s.mutiple,u=i?i.pfValue!=null?i.pfValue:i.value:null;!i||!i.bypass?this.applyBypass(n,e,r):(i.value=r,i.pfValue!=null&&(i.pfValue=r),o?i.strValue="rgb("+r.join(",")+")":l?i.strValue=r.join(" "):i.strValue=""+r,this.updateStyleHints(n)),this.checkTriggers(n,e,u,r)}};pa.removeAllBypasses=function(t,e){return this.removeBypasses(t,this.propertyNames,e)};pa.removeBypasses=function(t,e,r){for(var a=!0,n=0;n<t.length;n++){for(var i=t[n],s={},o=0;o<e.length;o++){var l=e[o],u=this.properties[l],f=i.pstyle(u.name);if(!(!f||!f.bypass)){var h="",c=this.parse(l,h,!0),v=s[u.name]={prev:f};this.applyParsedProperty(i,c),v.next=i.pstyle(u.name)}}this.updateStyleHints(i),r&&this.updateTransitions(i,s,a)}};var pi={};pi.getEmSizeInPixels=function(){var t=this.containerCss("font-size");return t!=null?parseFloat(t):1};pi.containerCss=function(t){var e=this._private.cy,r=e.container(),a=e.window();if(a&&r&&a.getComputedStyle)return a.getComputedStyle(r).getPropertyValue(t)};var At={};At.getRenderedStyle=function(t,e){return e?this.getStylePropertyValue(t,e,!0):this.getRawStyle(t,!0)};At.getRawStyle=function(t,e){var r=this;if(t=t[0],t){for(var a={},n=0;n<r.properties.length;n++){var i=r.properties[n],s=r.getStylePropertyValue(t,i.name,e);s!=null&&(a[i.name]=s,a[ln(i.name)]=s)}return a}};At.getIndexedStyle=function(t,e,r,a){var n=t.pstyle(e)[r][a];return n??t.cy().style().getDefaultProperty(e)[r][0]};At.getStylePropertyValue=function(t,e,r){var a=this;if(t=t[0],t){var n=a.properties[e];n.alias&&(n=n.pointsTo);var i=n.type,s=t.pstyle(n.name);if(s){var o=s.value,l=s.units,u=s.strValue;if(r&&i.number&&o!=null&&ae(o)){var f=t.cy().zoom(),h=function(p){return p*f},c=function(p,y){return h(p)+y},v=Me(o),d=v?l.every(function(g){return g!=null}):l!=null;return d?v?o.map(function(g,p){return c(g,l[p])}).join(" "):c(o,l):v?o.map(function(g){return ve(g)?g:""+h(g)}).join(" "):""+h(o)}else if(u!=null)return u}return null}};At.getAnimationStartStyle=function(t,e){for(var r={},a=0;a<e.length;a++){var n=e[a],i=n.name,s=t.pstyle(i);s!==void 0&&(De(s)?s=this.parse(i,s.strValue):s=this.parse(i,s)),s&&(r[i]=s)}return r};At.getPropsList=function(t){var e=this,r=[],a=t,n=e.properties;if(a)for(var i=Object.keys(a),s=0;s<i.length;s++){var o=i[s],l=a[o],u=n[o]||n[ii(o)],f=this.parse(u.name,l);f&&r.push(f)}return r};At.getNonDefaultPropertiesHash=function(t,e,r){var a=r.slice(),n,i,s,o,l,u;for(l=0;l<e.length;l++)if(n=e[l],i=t.pstyle(n,!1),i!=null)if(i.pfValue!=null)a[0]=jr(o,a[0]),a[1]=ea(o,a[1]);else for(s=i.strValue,u=0;u<s.length;u++)o=s.charCodeAt(u),a[0]=jr(o,a[0]),a[1]=ea(o,a[1]);return a};At.getPropertiesHash=At.getNonDefaultPropertiesHash;var pn={};pn.appendFromJson=function(t){for(var e=this,r=0;r<t.length;r++){var a=t[r],n=a.selector,i=a.style||a.css,s=Object.keys(i);e.selector(n);for(var o=0;o<s.length;o++){var l=s[o],u=i[l];e.css(l,u)}}return e};pn.fromJson=function(t){var e=this;return e.resetToDefault(),e.appendFromJson(t),e};pn.json=function(){for(var t=[],e=this.defaultLength;e<this.length;e++){for(var r=this[e],a=r.selector,n=r.properties,i={},s=0;s<n.length;s++){var o=n[s];i[o.name]=o.strValue}t.push({selector:a?a.toString():"core",style:i})}return t};var yi={};yi.appendFromString=function(t){var e=this,r=this,a=""+t,n,i,s;a=a.replace(/[/][*](\s|.)+?[*][/]/g,"");function o(){a.length>n.length?a=a.substr(n.length):a=""}function l(){i.length>s.length?i=i.substr(s.length):i=""}for(;;){var u=a.match(/^\s*$/);if(u)break;var f=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!f){Ne("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}n=f[0];var h=f[1];if(h!=="core"){var c=new Wt(h);if(c.invalid){Ne("Skipping parsing of block: Invalid selector found in string stylesheet: "+h),o();continue}}var v=f[2],d=!1;i=v;for(var g=[];;){var p=i.match(/^\s*$/);if(p)break;var y=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!y){Ne("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+v),d=!0;break}s=y[0];var E=y[1],m=y[2],T=e.properties[E];if(!T){Ne("Skipping property: Invalid property name in: "+s),l();continue}var C=r.parse(E,m);if(!C){Ne("Skipping property: Invalid property definition in: "+s),l();continue}g.push({name:E,val:m}),l()}if(d){o();break}r.selector(h);for(var S=0;S<g.length;S++){var b=g[S];r.css(b.name,b.val)}o()}return r};yi.fromString=function(t){var e=this;return e.resetToDefault(),e.appendFromString(t),e};var qe={};(function(){var t=_e,e=Kc,r=Qc,a=Jc,n=jc,i=function(j){return"^"+j+"\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"},s=function(j){var Q=t+"|\\w+|"+e+"|"+r+"|"+a+"|"+n;return"^"+j+"\\s*\\(([\\w\\.]+)\\s*\\,\\s*("+t+")\\s*\\,\\s*("+t+")\\s*,\\s*("+Q+")\\s*\\,\\s*("+Q+")\\)$"},o=[`^url\\s*\\(\\s*['"]?(.+?)['"]?\\s*\\)$`,"^(none)$","^(.+)$"];qe.types={time:{number:!0,min:0,units:"s|ms",implicitUnits:"ms"},percent:{number:!0,min:0,max:100,units:"%",implicitUnits:"%"},percentages:{number:!0,min:0,max:100,units:"%",implicitUnits:"%",multiple:!0},zeroOneNumber:{number:!0,min:0,max:1,unitless:!0},zeroOneNumbers:{number:!0,min:0,max:1,unitless:!0,multiple:!0},nOneOneNumber:{number:!0,min:-1,max:1,unitless:!0},nonNegativeInt:{number:!0,min:0,integer:!0,unitless:!0},nonNegativeNumber:{number:!0,min:0,unitless:!0},position:{enums:["parent","origin"]},nodeSize:{number:!0,min:0,enums:["label"]},number:{number:!0,unitless:!0},numbers:{number:!0,unitless:!0,multiple:!0},positiveNumber:{number:!0,unitless:!0,min:0,strictMin:!0},size:{number:!0,min:0},bidirectionalSize:{number:!0},bidirectionalSizeMaybePercent:{number:!0,allowPercent:!0},bidirectionalSizes:{number:!0,multiple:!0},sizeMaybePercent:{number:!0,min:0,allowPercent:!0},axisDirection:{enums:["horizontal","leftward","rightward","vertical","upward","downward","auto"]},paddingRelativeTo:{enums:["width","height","average","min","max"]},bgWH:{number:!0,min:0,allowPercent:!0,enums:["auto"],multiple:!0},bgPos:{number:!0,allowPercent:!0,multiple:!0},bgRelativeTo:{enums:["inner","include-padding"],multiple:!0},bgRepeat:{enums:["repeat","repeat-x","repeat-y","no-repeat"],multiple:!0},bgFit:{enums:["none","contain","cover"],multiple:!0},bgCrossOrigin:{enums:["anonymous","use-credentials","null"],multiple:!0},bgClip:{enums:["none","node"],multiple:!0},bgContainment:{enums:["inside","over"],multiple:!0},color:{color:!0},colors:{color:!0,multiple:!0},fill:{enums:["solid","linear-gradient","radial-gradient"]},bool:{enums:["yes","no"]},bools:{enums:["yes","no"],multiple:!0},lineStyle:{enums:["solid","dotted","dashed"]},lineCap:{enums:["butt","round","square"]},borderStyle:{enums:["solid","dotted","dashed","double"]},curveStyle:{enums:["bezier","unbundled-bezier","haystack","segments","straight","straight-triangle","taxi"]},fontFamily:{regex:'^([\\w- \\"]+(?:\\s*,\\s*[\\w- \\"]+)*)$'},fontStyle:{enums:["italic","normal","oblique"]},fontWeight:{enums:["normal","bold","bolder","lighter","100","200","300","400","500","600","800","900",100,200,300,400,500,600,700,800,900]},textDecoration:{enums:["none","underline","overline","line-through"]},textTransform:{enums:["none","uppercase","lowercase"]},textWrap:{enums:["none","wrap","ellipsis"]},textOverflowWrap:{enums:["whitespace","anywhere"]},textBackgroundShape:{enums:["rectangle","roundrectangle","round-rectangle"]},nodeShape:{enums:["rectangle","roundrectangle","round-rectangle","cutrectangle","cut-rectangle","bottomroundrectangle","bottom-round-rectangle","barrel","ellipse","triangle","round-triangle","square","pentagon","round-pentagon","hexagon","round-hexagon","concavehexagon","concave-hexagon","heptagon","round-heptagon","octagon","round-octagon","tag","round-tag","star","diamond","round-diamond","vee","rhomboid","right-rhomboid","polygon"]},overlayShape:{enums:["roundrectangle","round-rectangle","ellipse"]},compoundIncludeLabels:{enums:["include","exclude"]},arrowShape:{enums:["tee","triangle","triangle-tee","circle-triangle","triangle-cross","triangle-backcurve","vee","square","circle","diamond","chevron","none"]},arrowFill:{enums:["filled","hollow"]},arrowWidth:{number:!0,units:"%|px|em",implicitUnits:"px",enums:["match-line"]},display:{enums:["element","none"]},visibility:{enums:["hidden","visible"]},zCompoundDepth:{enums:["bottom","orphan","auto","top"]},zIndexCompare:{enums:["auto","manual"]},valign:{enums:["top","center","bottom"]},halign:{enums:["left","center","right"]},justification:{enums:["left","center","right","auto"]},text:{string:!0},data:{mapping:!0,regex:i("data")},layoutData:{mapping:!0,regex:i("layoutData")},scratch:{mapping:!0,regex:i("scratch")},mapData:{mapping:!0,regex:s("mapData")},mapLayoutData:{mapping:!0,regex:s("mapLayoutData")},mapScratch:{mapping:!0,regex:s("mapScratch")},fn:{mapping:!0,fn:!0},url:{regexes:o,singleRegexMatchValue:!0},urls:{regexes:o,singleRegexMatchValue:!0,multiple:!0},propList:{propList:!0},angle:{number:!0,units:"deg|rad",implicitUnits:"rad"},textRotation:{number:!0,units:"deg|rad",implicitUnits:"rad",enums:["none","autorotate"]},polygonPointList:{number:!0,multiple:!0,evenMultiple:!0,min:-1,max:1,unitless:!0},edgeDistances:{enums:["intersection","node-position","endpoints"]},edgeEndpoint:{number:!0,multiple:!0,units:"%|px|em|deg|rad",implicitUnits:"px",enums:["inside-to-node","outside-to-node","outside-to-node-or-label","outside-to-line","outside-to-line-or-label"],singleEnum:!0,validate:function(j,Q){switch(j.length){case 2:return Q[0]!=="deg"&&Q[0]!=="rad"&&Q[1]!=="deg"&&Q[1]!=="rad";case 1:return ve(j[0])||Q[0]==="deg"||Q[0]==="rad";default:return!1}}},easing:{regexes:["^(spring)\\s*\\(\\s*("+t+")\\s*,\\s*("+t+")\\s*\\)$","^(cubic-bezier)\\s*\\(\\s*("+t+")\\s*,\\s*("+t+")\\s*,\\s*("+t+")\\s*,\\s*("+t+")\\s*\\)$"],enums:["linear","ease","ease-in","ease-out","ease-in-out","ease-in-sine","ease-out-sine","ease-in-out-sine","ease-in-quad","ease-out-quad","ease-in-out-quad","ease-in-cubic","ease-out-cubic","ease-in-out-cubic","ease-in-quart","ease-out-quart","ease-in-out-quart","ease-in-quint","ease-out-quint","ease-in-out-quint","ease-in-expo","ease-out-expo","ease-in-out-expo","ease-in-circ","ease-out-circ","ease-in-out-circ"]},gradientDirection:{enums:["to-bottom","to-top","to-left","to-right","to-bottom-right","to-bottom-left","to-top-right","to-top-left","to-right-bottom","to-left-bottom","to-right-top","to-left-top"]},boundsExpansion:{number:!0,multiple:!0,min:0,validate:function(j){var Q=j.length;return Q===1||Q===2||Q===4}}};var l={zeroNonZero:function(j,Q){return(j==null||Q==null)&&j!==Q||j==0&&Q!=0?!0:j!=0&&Q==0},any:function(j,Q){return j!=Q},emptyNonEmpty:function(j,Q){var ee=Yt(j),ne=Yt(Q);return ee&&!ne||!ee&&ne}},u=qe.types,f=[{name:"label",type:u.text,triggersBounds:l.any,triggersZOrder:l.emptyNonEmpty},{name:"text-rotation",type:u.textRotation,triggersBounds:l.any},{name:"text-margin-x",type:u.bidirectionalSize,triggersBounds:l.any},{name:"text-margin-y",type:u.bidirectionalSize,triggersBounds:l.any}],h=[{name:"source-label",type:u.text,triggersBounds:l.any},{name:"source-text-rotation",type:u.textRotation,triggersBounds:l.any},{name:"source-text-margin-x",type:u.bidirectionalSize,triggersBounds:l.any},{name:"source-text-margin-y",type:u.bidirectionalSize,triggersBounds:l.any},{name:"source-text-offset",type:u.size,triggersBounds:l.any}],c=[{name:"target-label",type:u.text,triggersBounds:l.any},{name:"target-text-rotation",type:u.textRotation,triggersBounds:l.any},{name:"target-text-margin-x",type:u.bidirectionalSize,triggersBounds:l.any},{name:"target-text-margin-y",type:u.bidirectionalSize,triggersBounds:l.any},{name:"target-text-offset",type:u.size,triggersBounds:l.any}],v=[{name:"font-family",type:u.fontFamily,triggersBounds:l.any},{name:"font-style",type:u.fontStyle,triggersBounds:l.any},{name:"font-weight",type:u.fontWeight,triggersBounds:l.any},{name:"font-size",type:u.size,triggersBounds:l.any},{name:"text-transform",type:u.textTransform,triggersBounds:l.any},{name:"text-wrap",type:u.textWrap,triggersBounds:l.any},{name:"text-overflow-wrap",type:u.textOverflowWrap,triggersBounds:l.any},{name:"text-max-width",type:u.size,triggersBounds:l.any},{name:"text-outline-width",type:u.size,triggersBounds:l.any},{name:"line-height",type:u.positiveNumber,triggersBounds:l.any}],d=[{name:"text-valign",type:u.valign,triggersBounds:l.any},{name:"text-halign",type:u.halign,triggersBounds:l.any},{name:"color",type:u.color},{name:"text-outline-color",type:u.color},{name:"text-outline-opacity",type:u.zeroOneNumber},{name:"text-background-color",type:u.color},{name:"text-background-opacity",type:u.zeroOneNumber},{name:"text-background-padding",type:u.size,triggersBounds:l.any},{name:"text-border-opacity",type:u.zeroOneNumber},{name:"text-border-color",type:u.color},{name:"text-border-width",type:u.size,triggersBounds:l.any},{name:"text-border-style",type:u.borderStyle,triggersBounds:l.any},{name:"text-background-shape",type:u.textBackgroundShape,triggersBounds:l.any},{name:"text-justification",type:u.justification}],g=[{name:"events",type:u.bool,triggersZOrder:l.any},{name:"text-events",type:u.bool,triggersZOrder:l.any}],p=[{name:"display",type:u.display,triggersZOrder:l.any,triggersBounds:l.any,triggersBoundsOfConnectedEdges:!0},{name:"visibility",type:u.visibility,triggersZOrder:l.any},{name:"opacity",type:u.zeroOneNumber,triggersZOrder:l.zeroNonZero},{name:"text-opacity",type:u.zeroOneNumber},{name:"min-zoomed-font-size",type:u.size},{name:"z-compound-depth",type:u.zCompoundDepth,triggersZOrder:l.any},{name:"z-index-compare",type:u.zIndexCompare,triggersZOrder:l.any},{name:"z-index",type:u.number,triggersZOrder:l.any}],y=[{name:"overlay-padding",type:u.size,triggersBounds:l.any},{name:"overlay-color",type:u.color},{name:"overlay-opacity",type:u.zeroOneNumber,triggersBounds:l.zeroNonZero},{name:"overlay-shape",type:u.overlayShape,triggersBounds:l.any}],E=[{name:"underlay-padding",type:u.size,triggersBounds:l.any},{name:"underlay-color",type:u.color},{name:"underlay-opacity",type:u.zeroOneNumber,triggersBounds:l.zeroNonZero},{name:"underlay-shape",type:u.overlayShape,triggersBounds:l.any}],m=[{name:"transition-property",type:u.propList},{name:"transition-duration",type:u.time},{name:"transition-delay",type:u.time},{name:"transition-timing-function",type:u.easing}],T=function(j,Q){return Q.value==="label"?-j.poolIndex():Q.pfValue},C=[{name:"height",type:u.nodeSize,triggersBounds:l.any,hashOverride:T},{name:"width",type:u.nodeSize,triggersBounds:l.any,hashOverride:T},{name:"shape",type:u.nodeShape,triggersBounds:l.any},{name:"shape-polygon-points",type:u.polygonPointList,triggersBounds:l.any},{name:"background-color",type:u.color},{name:"background-fill",type:u.fill},{name:"background-opacity",type:u.zeroOneNumber},{name:"background-blacken",type:u.nOneOneNumber},{name:"background-gradient-stop-colors",type:u.colors},{name:"background-gradient-stop-positions",type:u.percentages},{name:"background-gradient-direction",type:u.gradientDirection},{name:"padding",type:u.sizeMaybePercent,triggersBounds:l.any},{name:"padding-relative-to",type:u.paddingRelativeTo,triggersBounds:l.any},{name:"bounds-expansion",type:u.boundsExpansion,triggersBounds:l.any}],S=[{name:"border-color",type:u.color},{name:"border-opacity",type:u.zeroOneNumber},{name:"border-width",type:u.size,triggersBounds:l.any},{name:"border-style",type:u.borderStyle}],b=[{name:"outline-color",type:u.color},{name:"outline-opacity",type:u.zeroOneNumber},{name:"outline-width",type:u.size,triggersBounds:l.any},{name:"outline-style",type:u.borderStyle},{name:"outline-offset",type:u.size,triggersBounds:l.any}],x=[{name:"background-image",type:u.urls},{name:"background-image-crossorigin",type:u.bgCrossOrigin},{name:"background-image-opacity",type:u.zeroOneNumbers},{name:"background-image-containment",type:u.bgContainment},{name:"background-image-smoothing",type:u.bools},{name:"background-position-x",type:u.bgPos},{name:"background-position-y",type:u.bgPos},{name:"background-width-relative-to",type:u.bgRelativeTo},{name:"background-height-relative-to",type:u.bgRelativeTo},{name:"background-repeat",type:u.bgRepeat},{name:"background-fit",type:u.bgFit},{name:"background-clip",type:u.bgClip},{name:"background-width",type:u.bgWH},{name:"background-height",type:u.bgWH},{name:"background-offset-x",type:u.bgPos},{name:"background-offset-y",type:u.bgPos}],w=[{name:"position",type:u.position,triggersBounds:l.any},{name:"compound-sizing-wrt-labels",type:u.compoundIncludeLabels,triggersBounds:l.any},{name:"min-width",type:u.size,triggersBounds:l.any},{name:"min-width-bias-left",type:u.sizeMaybePercent,triggersBounds:l.any},{name:"min-width-bias-right",type:u.sizeMaybePercent,triggersBounds:l.any},{name:"min-height",type:u.size,triggersBounds:l.any},{name:"min-height-bias-top",type:u.sizeMaybePercent,triggersBounds:l.any},{name:"min-height-bias-bottom",type:u.sizeMaybePercent,triggersBounds:l.any}],D=[{name:"line-style",type:u.lineStyle},{name:"line-color",type:u.color},{name:"line-fill",type:u.fill},{name:"line-cap",type:u.lineCap},{name:"line-opacity",type:u.zeroOneNumber},{name:"line-dash-pattern",type:u.numbers},{name:"line-dash-offset",type:u.number},{name:"line-gradient-stop-colors",type:u.colors},{name:"line-gradient-stop-positions",type:u.percentages},{name:"curve-style",type:u.curveStyle,triggersBounds:l.any,triggersBoundsOfParallelBeziers:!0},{name:"haystack-radius",type:u.zeroOneNumber,triggersBounds:l.any},{name:"source-endpoint",type:u.edgeEndpoint,triggersBounds:l.any},{name:"target-endpoint",type:u.edgeEndpoint,triggersBounds:l.any},{name:"control-point-step-size",type:u.size,triggersBounds:l.any},{name:"control-point-distances",type:u.bidirectionalSizes,triggersBounds:l.any},{name:"control-point-weights",type:u.numbers,triggersBounds:l.any},{name:"segment-distances",type:u.bidirectionalSizes,triggersBounds:l.any},{name:"segment-weights",type:u.numbers,triggersBounds:l.any},{name:"taxi-turn",type:u.bidirectionalSizeMaybePercent,triggersBounds:l.any},{name:"taxi-turn-min-distance",type:u.size,triggersBounds:l.any},{name:"taxi-direction",type:u.axisDirection,triggersBounds:l.any},{name:"edge-distances",type:u.edgeDistances,triggersBounds:l.any},{name:"arrow-scale",type:u.positiveNumber,triggersBounds:l.any},{name:"loop-direction",type:u.angle,triggersBounds:l.any},{name:"loop-sweep",type:u.angle,triggersBounds:l.any},{name:"source-distance-from-node",type:u.size,triggersBounds:l.any},{name:"target-distance-from-node",type:u.size,triggersBounds:l.any}],A=[{name:"ghost",type:u.bool,triggersBounds:l.any},{name:"ghost-offset-x",type:u.bidirectionalSize,triggersBounds:l.any},{name:"ghost-offset-y",type:u.bidirectionalSize,triggersBounds:l.any},{name:"ghost-opacity",type:u.zeroOneNumber}],L=[{name:"selection-box-color",type:u.color},{name:"selection-box-opacity",type:u.zeroOneNumber},{name:"selection-box-border-color",type:u.color},{name:"selection-box-border-width",type:u.size},{name:"active-bg-color",type:u.color},{name:"active-bg-opacity",type:u.zeroOneNumber},{name:"active-bg-size",type:u.size},{name:"outside-texture-bg-color",type:u.color},{name:"outside-texture-bg-opacity",type:u.zeroOneNumber}],I=[];qe.pieBackgroundN=16,I.push({name:"pie-size",type:u.sizeMaybePercent});for(var O=1;O<=qe.pieBackgroundN;O++)I.push({name:"pie-"+O+"-background-color",type:u.color}),I.push({name:"pie-"+O+"-background-size",type:u.percent}),I.push({name:"pie-"+O+"-background-opacity",type:u.zeroOneNumber});var P=[],R=qe.arrowPrefixes=["source","mid-source","target","mid-target"];[{name:"arrow-shape",type:u.arrowShape,triggersBounds:l.any},{name:"arrow-color",type:u.color},{name:"arrow-fill",type:u.arrowFill},{name:"arrow-width",type:u.arrowWidth}].forEach(function(K){R.forEach(function(j){var Q=j+"-"+K.name,ee=K.type,ne=K.triggersBounds;P.push({name:Q,type:ee,triggersBounds:ne})})},{});var M=qe.properties=[].concat(g,m,p,y,E,A,d,v,f,h,c,C,S,b,x,I,w,D,P,L),k=qe.propertyGroups={behavior:g,transition:m,visibility:p,overlay:y,underlay:E,ghost:A,commonLabel:d,labelDimensions:v,mainLabel:f,sourceLabel:h,targetLabel:c,nodeBody:C,nodeBorder:S,nodeOutline:b,backgroundImage:x,pie:I,compound:w,edgeLine:D,edgeArrow:P,core:L},B=qe.propertyGroupNames={},G=qe.propertyGroupKeys=Object.keys(k);G.forEach(function(K){B[K]=k[K].map(function(j){return j.name}),k[K].forEach(function(j){return j.groupKey=K})});var F=qe.aliases=[{name:"content",pointsTo:"label"},{name:"control-point-distance",pointsTo:"control-point-distances"},{name:"control-point-weight",pointsTo:"control-point-weights"},{name:"edge-text-rotation",pointsTo:"text-rotation"},{name:"padding-left",pointsTo:"padding"},{name:"padding-right",pointsTo:"padding"},{name:"padding-top",pointsTo:"padding"},{name:"padding-bottom",pointsTo:"padding"}];qe.propertyNames=M.map(function(K){return K.name});for(var $=0;$<M.length;$++){var U=M[$];M[U.name]=U}for(var _=0;_<F.length;_++){var Y=F[_],W=M[Y.pointsTo],z={name:Y.name,alias:!0,pointsTo:W};M.push(z),M[Y.name]=z}})();qe.getDefaultProperty=function(t){return this.getDefaultProperties()[t]};qe.getDefaultProperties=function(){var t=this._private;if(t.defaultProperties!=null)return t.defaultProperties;for(var e=de({"selection-box-color":"#ddd","selection-box-opacity":.65,"selection-box-border-color":"#aaa","selection-box-border-width":1,"active-bg-color":"black","active-bg-opacity":.15,"active-bg-size":30,"outside-texture-bg-color":"#000","outside-texture-bg-opacity":.125,events:"yes","text-events":"no","text-valign":"top","text-halign":"center","text-justification":"auto","line-height":1,color:"#000","text-outline-color":"#000","text-outline-width":0,"text-outline-opacity":1,"text-opacity":1,"text-decoration":"none","text-transform":"none","text-wrap":"none","text-overflow-wrap":"whitespace","text-max-width":9999,"text-background-color":"#000","text-background-opacity":0,"text-background-shape":"rectangle","text-background-padding":0,"text-border-opacity":0,"text-border-width":0,"text-border-style":"solid","text-border-color":"#000","font-family":"Helvetica Neue, Helvetica, sans-serif","font-style":"normal","font-weight":"normal","font-size":16,"min-zoomed-font-size":0,"text-rotation":"none","source-text-rotation":"none","target-text-rotation":"none",visibility:"visible",display:"element",opacity:1,"z-compound-depth":"auto","z-index-compare":"auto","z-index":0,label:"","text-margin-x":0,"text-margin-y":0,"source-label":"","source-text-offset":0,"source-text-margin-x":0,"source-text-margin-y":0,"target-label":"","target-text-offset":0,"target-text-margin-x":0,"target-text-margin-y":0,"overlay-opacity":0,"overlay-color":"#000","overlay-padding":10,"overlay-shape":"round-rectangle","underlay-opacity":0,"underlay-color":"#000","underlay-padding":10,"underlay-shape":"round-rectangle","transition-property":"none","transition-duration":0,"transition-delay":0,"transition-timing-function":"linear","background-blacken":0,"background-color":"#999","background-fill":"solid","background-opacity":1,"background-image":"none","background-image-crossorigin":"anonymous","background-image-opacity":1,"background-image-containment":"inside","background-image-smoothing":"yes","background-position-x":"50%","background-position-y":"50%","background-offset-x":0,"background-offset-y":0,"background-width-relative-to":"include-padding","background-height-relative-to":"include-padding","background-repeat":"no-repeat","background-fit":"none","background-clip":"node","background-width":"auto","background-height":"auto","border-color":"#000","border-opacity":1,"border-width":0,"border-style":"solid","outline-color":"#999","outline-opacity":1,"outline-width":0,"outline-offset":0,"outline-style":"solid",height:30,width:30,shape:"ellipse","shape-polygon-points":"-1, -1, 1, -1, 1, 1, -1, 1","bounds-expansion":0,"background-gradient-direction":"to-bottom","background-gradient-stop-colors":"#999","background-gradient-stop-positions":"0%",ghost:"no","ghost-offset-y":0,"ghost-offset-x":0,"ghost-opacity":0,padding:0,"padding-relative-to":"width",position:"origin","compound-sizing-wrt-labels":"include","min-width":0,"min-width-bias-left":0,"min-width-bias-right":0,"min-height":0,"min-height-bias-top":0,"min-height-bias-bottom":0},{"pie-size":"100%"},[{name:"pie-{{i}}-background-color",value:"black"},{name:"pie-{{i}}-background-size",value:"0%"},{name:"pie-{{i}}-background-opacity",value:1}].reduce(function(l,u){for(var f=1;f<=qe.pieBackgroundN;f++){var h=u.name.replace("{{i}}",f),c=u.value;l[h]=c}return l},{}),{"line-style":"solid","line-color":"#999","line-fill":"solid","line-cap":"butt","line-opacity":1,"line-gradient-stop-colors":"#999","line-gradient-stop-positions":"0%","control-point-step-size":40,"control-point-weights":.5,"segment-weights":.5,"segment-distances":20,"taxi-turn":"50%","taxi-turn-min-distance":10,"taxi-direction":"auto","edge-distances":"intersection","curve-style":"haystack","haystack-radius":0,"arrow-scale":1,"loop-direction":"-45deg","loop-sweep":"-90deg","source-distance-from-node":0,"target-distance-from-node":0,"source-endpoint":"outside-to-node","target-endpoint":"outside-to-node","line-dash-pattern":[6,3],"line-dash-offset":0},[{name:"arrow-shape",value:"none"},{name:"arrow-color",value:"#999"},{name:"arrow-fill",value:"filled"},{name:"arrow-width",value:1}].reduce(function(l,u){return qe.arrowPrefixes.forEach(function(f){var h=f+"-"+u.name,c=u.value;l[h]=c}),l},{})),r={},a=0;a<this.properties.length;a++){var n=this.properties[a];if(!n.pointsTo){var i=n.name,s=e[i],o=this.parse(i,s);r[i]=o}}return t.defaultProperties=r,t.defaultProperties};qe.addDefaultStylesheet=function(){this.selector(":parent").css({shape:"rectangle",padding:10,"background-color":"#eee","border-color":"#ccc","border-width":1}).selector("edge").css({width:3}).selector(":loop").css({"curve-style":"bezier"}).selector("edge:compound").css({"curve-style":"bezier","source-endpoint":"outside-to-line","target-endpoint":"outside-to-line"}).selector(":selected").css({"background-color":"#0169D9","line-color":"#0169D9","source-arrow-color":"#0169D9","target-arrow-color":"#0169D9","mid-source-arrow-color":"#0169D9","mid-target-arrow-color":"#0169D9"}).selector(":parent:selected").css({"background-color":"#CCE1F9","border-color":"#aec8e5"}).selector(":active").css({"overlay-color":"black","overlay-padding":10,"overlay-opacity":.25}),this.defaultLength=this.length};var yn={};yn.parse=function(t,e,r,a){var n=this;if(Be(e))return n.parseImplWarn(t,e,r,a);var i=a==="mapping"||a===!0||a===!1||a==null?"dontcare":a,s=r?"t":"f",o=""+e,l=co(t,o,s,i),u=n.propCache=n.propCache||[],f;return(f=u[l])||(f=u[l]=n.parseImplWarn(t,e,r,a)),(r||a==="mapping")&&(f=St(f),f&&(f.value=St(f.value))),f};yn.parseImplWarn=function(t,e,r,a){var n=this.parseImpl(t,e,r,a);return!n&&e!=null&&Ne("The style property `".concat(t,": ").concat(e,"` is invalid")),n&&(n.name==="width"||n.name==="height")&&e==="label"&&Ne("The style value of `label` is deprecated for `"+n.name+"`"),n};yn.parseImpl=function(t,e,r,a){var n=this;t=ii(t);var i=n.properties[t],s=e,o=n.types;if(!i||e===void 0)return null;i.alias&&(i=i.pointsTo,t=i.name);var l=ve(e);l&&(e=e.trim());var u=i.type;if(!u)return null;if(r&&(e===""||e===null))return{name:t,value:e,bypass:!0,deleteBypass:!0};if(Be(e))return{name:t,value:e,strValue:"fn",mapped:o.fn,bypass:r};var f,h;if(!(!l||a||e.length<7||e[1]!=="a")){if(e.length>=7&&e[0]==="d"&&(f=new RegExp(o.data.regex).exec(e))){if(r)return!1;var c=o.data;return{name:t,value:f,strValue:""+e,mapped:c,field:f[1],bypass:r}}else if(e.length>=10&&e[0]==="m"&&(h=new RegExp(o.mapData.regex).exec(e))){if(r||u.multiple)return!1;var v=o.mapData;if(!(u.color||u.number))return!1;var d=this.parse(t,h[4]);if(!d||d.mapped)return!1;var g=this.parse(t,h[5]);if(!g||g.mapped)return!1;if(d.pfValue===g.pfValue||d.strValue===g.strValue)return Ne("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+d.strValue+"`"),this.parse(t,d.strValue);if(u.color){var p=d.value,y=g.value,E=p[0]===y[0]&&p[1]===y[1]&&p[2]===y[2]&&(p[3]===y[3]||(p[3]==null||p[3]===1)&&(y[3]==null||y[3]===1));if(E)return!1}return{name:t,value:h,strValue:""+e,mapped:v,field:h[1],fieldMin:parseFloat(h[2]),fieldMax:parseFloat(h[3]),valueMin:d.value,valueMax:g.value,bypass:r}}}if(u.multiple&&a!=="multiple"){var m;if(l?m=e.split(/\s+/):Me(e)?m=e:m=[e],u.evenMultiple&&m.length%2!==0)return null;for(var T=[],C=[],S=[],b="",x=!1,w=0;w<m.length;w++){var D=n.parse(t,m[w],r,"multiple");x=x||ve(D.value),T.push(D.value),S.push(D.pfValue!=null?D.pfValue:D.value),C.push(D.units),b+=(w>0?" ":"")+D.strValue}return u.validate&&!u.validate(T,C)?null:u.singleEnum&&x?T.length===1&&ve(T[0])?{name:t,value:T[0],strValue:T[0],bypass:r}:null:{name:t,value:T,pfValue:S,strValue:b,bypass:r,units:C}}var A=function(){for(var j=0;j<u.enums.length;j++){var Q=u.enums[j];if(Q===e)return{name:t,value:e,strValue:""+e,bypass:r}}return null};if(u.number){var L,I="px";if(u.units&&(L=u.units),u.implicitUnits&&(I=u.implicitUnits),!u.unitless)if(l){var O="px|em"+(u.allowPercent?"|\\%":"");L&&(O=L);var P=e.match("^("+_e+")("+O+")?$");P&&(e=P[1],L=P[2]||I)}else(!L||u.implicitUnits)&&(L=I);if(e=parseFloat(e),isNaN(e)&&u.enums===void 0)return null;if(isNaN(e)&&u.enums!==void 0)return e=s,A();if(u.integer&&!_c(e)||u.min!==void 0&&(e<u.min||u.strictMin&&e===u.min)||u.max!==void 0&&(e>u.max||u.strictMax&&e===u.max))return null;var R={name:t,value:e,strValue:""+e+(L||""),units:L,bypass:r};return u.unitless||L!=="px"&&L!=="em"?R.pfValue=e:R.pfValue=L==="px"||!L?e:this.getEmSizeInPixels()*e,(L==="ms"||L==="s")&&(R.pfValue=L==="ms"?e:1e3*e),(L==="deg"||L==="rad")&&(R.pfValue=L==="rad"?e:Fd(e)),L==="%"&&(R.pfValue=e/100),R}else if(u.propList){var M=[],k=""+e;if(k!=="none"){for(var B=k.split(/\s*,\s*|\s+/),G=0;G<B.length;G++){var F=B[G].trim();n.properties[F]?M.push(F):Ne("`"+F+"` is not a valid property name")}if(M.length===0)return null}return{name:t,value:M,strValue:M.length===0?"none":M.join(" "),bypass:r}}else if(u.color){var $=id(e);return $?{name:t,value:$,pfValue:$,strValue:"rgb("+$[0]+","+$[1]+","+$[2]+")",bypass:r}:null}else if(u.regex||u.regexes){if(u.enums){var U=A();if(U)return U}for(var _=u.regexes?u.regexes:[u.regex],Y=0;Y<_.length;Y++){var W=new RegExp(_[Y]),z=W.exec(e);if(z)return{name:t,value:u.singleRegexMatchValue?z[1]:z,strValue:""+e,bypass:r}}return null}else return u.string?{name:t,value:""+e,strValue:""+e,bypass:r}:u.enums?A():null};var et=function t(e){if(!(this instanceof t))return new t(e);if(!ni(e)){Ge("A style must have a core reference");return}this._private={cy:e,coreStyle:{}},this.length=0,this.resetToDefault()},rt=et.prototype;rt.instanceString=function(){return"style"};rt.clear=function(){for(var t=this._private,e=t.cy,r=e.elements(),a=0;a<this.length;a++)this[a]=void 0;return this.length=0,t.contextStyles={},t.propDiffs={},this.cleanElements(r,!0),r.forEach(function(n){var i=n[0]._private;i.styleDirty=!0,i.appliedInitStyle=!1}),this};rt.resetToDefault=function(){return this.clear(),this.addDefaultStylesheet(),this};rt.core=function(t){return this._private.coreStyle[t]||this.getDefaultProperty(t)};rt.selector=function(t){var e=t==="core"?null:new Wt(t),r=this.length++;return this[r]={selector:e,properties:[],mappedProperties:[],index:r},this};rt.css=function(){var t=this,e=arguments;if(e.length===1)for(var r=e[0],a=0;a<t.properties.length;a++){var n=t.properties[a],i=r[n.name];i===void 0&&(i=r[ln(n.name)]),i!==void 0&&this.cssRule(n.name,i)}else e.length===2&&this.cssRule(e[0],e[1]);return this};rt.style=rt.css;rt.cssRule=function(t,e){var r=this.parse(t,e);if(r){var a=this.length-1;this[a].properties.push(r),this[a].properties[r.name]=r,r.name.match(/pie-(\d+)-background-size/)&&r.value&&(this._private.hasPie=!0),r.mapped&&this[a].mappedProperties.push(r);var n=!this[a].selector;n&&(this._private.coreStyle[r.name]=r)}return this};rt.append=function(t){return io(t)?t.appendToStyle(this):Me(t)?this.appendFromJson(t):ve(t)&&this.appendFromString(t),this};et.fromJson=function(t,e){var r=new et(t);return r.fromJson(e),r};et.fromString=function(t,e){return new et(t).fromString(e)};[at,pa,pi,At,pn,yi,qe,yn].forEach(function(t){de(rt,t)});et.types=rt.types;et.properties=rt.properties;et.propertyGroups=rt.propertyGroups;et.propertyGroupNames=rt.propertyGroupNames;et.propertyGroupKeys=rt.propertyGroupKeys;var Zp={style:function(e){if(e){var r=this.setStyle(e);r.update()}return this._private.style},setStyle:function(e){var r=this._private;return io(e)?r.style=e.generateStyle(this):Me(e)?r.style=et.fromJson(this,e):ve(e)?r.style=et.fromString(this,e):r.style=et(this),r.style},updateStyle:function(){this.mutableElements().updateStyle()}},Qp="single",sr={autolock:function(e){if(e!==void 0)this._private.autolock=!!e;else return this._private.autolock;return this},autoungrabify:function(e){if(e!==void 0)this._private.autoungrabify=!!e;else return this._private.autoungrabify;return this},autounselectify:function(e){if(e!==void 0)this._private.autounselectify=!!e;else return this._private.autounselectify;return this},selectionType:function(e){var r=this._private;if(r.selectionType==null&&(r.selectionType=Qp),e!==void 0)(e==="additive"||e==="single")&&(r.selectionType=e);else return r.selectionType;return this},panningEnabled:function(e){if(e!==void 0)this._private.panningEnabled=!!e;else return this._private.panningEnabled;return this},userPanningEnabled:function(e){if(e!==void 0)this._private.userPanningEnabled=!!e;else return this._private.userPanningEnabled;return this},zoomingEnabled:function(e){if(e!==void 0)this._private.zoomingEnabled=!!e;else return this._private.zoomingEnabled;return this},userZoomingEnabled:function(e){if(e!==void 0)this._private.userZoomingEnabled=!!e;else return this._private.userZoomingEnabled;return this},boxSelectionEnabled:function(e){if(e!==void 0)this._private.boxSelectionEnabled=!!e;else return this._private.boxSelectionEnabled;return this},pan:function(){var e=arguments,r=this._private.pan,a,n,i,s,o;switch(e.length){case 0:return r;case 1:if(ve(e[0]))return a=e[0],r[a];if(De(e[0])){if(!this._private.panningEnabled)return this;i=e[0],s=i.x,o=i.y,ae(s)&&(r.x=s),ae(o)&&(r.y=o),this.emit("pan viewport")}break;case 2:if(!this._private.panningEnabled)return this;a=e[0],n=e[1],(a==="x"||a==="y")&&ae(n)&&(r[a]=n),this.emit("pan viewport");break}return this.notify("viewport"),this},panBy:function(e,r){var a=arguments,n=this._private.pan,i,s,o,l,u;if(!this._private.panningEnabled)return this;switch(a.length){case 1:De(e)&&(o=a[0],l=o.x,u=o.y,ae(l)&&(n.x+=l),ae(u)&&(n.y+=u),this.emit("pan viewport"));break;case 2:i=e,s=r,(i==="x"||i==="y")&&ae(s)&&(n[i]+=s),this.emit("pan viewport");break}return this.notify("viewport"),this},fit:function(e,r){var a=this.getFitViewport(e,r);if(a){var n=this._private;n.zoom=a.zoom,n.pan=a.pan,this.emit("pan zoom viewport"),this.notify("viewport")}return this},getFitViewport:function(e,r){if(ae(e)&&r===void 0&&(r=e,e=void 0),!(!this._private.panningEnabled||!this._private.zoomingEnabled)){var a;if(ve(e)){var n=e;e=this.$(n)}else if(Yc(e)){var i=e;a={x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2},a.w=a.x2-a.x1,a.h=a.y2-a.y1}else ht(e)||(e=this.mutableElements());if(!(ht(e)&&e.empty())){a=a||e.boundingBox();var s=this.width(),o=this.height(),l;if(r=ae(r)?r:0,!isNaN(s)&&!isNaN(o)&&s>0&&o>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0){l=Math.min((s-2*r)/a.w,(o-2*r)/a.h),l=l>this._private.maxZoom?this._private.maxZoom:l,l=l<this._private.minZoom?this._private.minZoom:l;var u={x:(s-l*(a.x1+a.x2))/2,y:(o-l*(a.y1+a.y2))/2};return{zoom:l,pan:u}}}}},zoomRange:function(e,r){var a=this._private;if(r==null){var n=e;e=n.min,r=n.max}return ae(e)&&ae(r)&&e<=r?(a.minZoom=e,a.maxZoom=r):ae(e)&&r===void 0&&e<=a.maxZoom?a.minZoom=e:ae(r)&&e===void 0&&r>=a.minZoom&&(a.maxZoom=r),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var r=this._private,a=r.pan,n=r.zoom,i,s,o=!1;if(r.zoomingEnabled||(o=!0),ae(e)?s=e:De(e)&&(s=e.level,e.position!=null?i=fn(e.position,n,a):e.renderedPosition!=null&&(i=e.renderedPosition),i!=null&&!r.panningEnabled&&(o=!0)),s=s>r.maxZoom?r.maxZoom:s,s=s<r.minZoom?r.minZoom:s,o||!ae(s)||s===n||i!=null&&(!ae(i.x)||!ae(i.y)))return null;if(i!=null){var l=a,u=n,f=s,h={x:-f/u*(i.x-l.x)+i.x,y:-f/u*(i.y-l.y)+i.y};return{zoomed:!0,panned:!0,zoom:f,pan:h}}else return{zoomed:!0,panned:!1,zoom:s,pan:a}},zoom:function(e){if(e===void 0)return this._private.zoom;var r=this.getZoomedViewport(e),a=this._private;return r==null||!r.zoomed?this:(a.zoom=r.zoom,r.panned&&(a.pan.x=r.pan.x,a.pan.y=r.pan.y),this.emit("zoom"+(r.panned?" pan":"")+" viewport"),this.notify("viewport"),this)},viewport:function(e){var r=this._private,a=!0,n=!0,i=[],s=!1,o=!1;if(!e)return this;if(ae(e.zoom)||(a=!1),De(e.pan)||(n=!1),!a&&!n)return this;if(a){var l=e.zoom;l<r.minZoom||l>r.maxZoom||!r.zoomingEnabled?s=!0:(r.zoom=l,i.push("zoom"))}if(n&&(!s||!e.cancelOnFailedZoom)&&r.panningEnabled){var u=e.pan;ae(u.x)&&(r.pan.x=u.x,o=!1),ae(u.y)&&(r.pan.y=u.y,o=!1),o||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(e){var r=this.getCenterPan(e);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,r){if(this._private.panningEnabled){if(ve(e)){var a=e;e=this.mutableElements().filter(a)}else ht(e)||(e=this.mutableElements());if(e.length!==0){var n=e.boundingBox(),i=this.width(),s=this.height();r=r===void 0?this._private.zoom:r;var o={x:(i-r*(n.x1+n.x2))/2,y:(s-r*(n.y1+n.y2))/2};return o}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,r=e.container,a=this;return e.sizeCache=e.sizeCache||(r?function(){var n=a.window().getComputedStyle(r),i=function(o){return parseFloat(n.getPropertyValue(o))};return{width:r.clientWidth-i("padding-left")-i("padding-right"),height:r.clientHeight-i("padding-top")-i("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,r=this._private.zoom,a=this.renderedExtent(),n={x1:(a.x1-e.x)/r,x2:(a.x2-e.x)/r,y1:(a.y1-e.y)/r,y2:(a.y2-e.y)/r};return n.w=n.x2-n.x1,n.h=n.y2-n.y1,n},renderedExtent:function(){var e=this.width(),r=this.height();return{x1:0,y1:0,x2:e,y2:r,w:e,h:r}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};sr.centre=sr.center;sr.autolockNodes=sr.autolock;sr.autoungrabifyNodes=sr.autoungrabify;var sa={data:Oe.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Oe.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Oe.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Oe.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};sa.attr=sa.data;sa.removeAttr=sa.removeData;var oa=function(e){var r=this;e=de({},e);var a=e.container;a&&!Ha(a)&&Ha(a[0])&&(a=a[0]);var n=a?a._cyreg:null;n=n||{},n&&n.cy&&(n.cy.destroy(),n={});var i=n.readies=n.readies||[];a&&(a._cyreg=n),n.cy=r;var s=$e!==void 0&&a!==void 0&&!e.headless,o=e;o.layout=de({name:s?"grid":"null"},o.layout),o.renderer=de({name:s?"canvas":"null"},o.renderer);var l=function(d,g,p){return g!==void 0?g:p!==void 0?p:d},u=this._private={container:a,ready:!1,options:o,elements:new Ze(this),listeners:[],aniEles:new Ze(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:l(!0,o.zoomingEnabled),userZoomingEnabled:l(!0,o.userZoomingEnabled),panningEnabled:l(!0,o.panningEnabled),userPanningEnabled:l(!0,o.userPanningEnabled),boxSelectionEnabled:l(!0,o.boxSelectionEnabled),autolock:l(!1,o.autolock,o.autolockNodes),autoungrabify:l(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:l(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?s:o.styleEnabled,zoom:ae(o.zoom)?o.zoom:1,pan:{x:De(o.pan)&&ae(o.pan.x)?o.pan.x:0,y:De(o.pan)&&ae(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:l(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var f=function(d,g){var p=d.some(Xc);if(p)return Rr.all(d).then(g);g(d)};u.styleEnabled&&r.setStyle([]);var h=de({},o,o.renderer);r.initRenderer(h);var c=function(d,g,p){r.notifications(!1);var y=r.mutableElements();y.length>0&&y.remove(),d!=null&&(De(d)||Me(d))&&r.add(d),r.one("layoutready",function(m){r.notifications(!0),r.emit(m),r.one("load",g),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",p),r.emit("done")});var E=de({},r._private.options.layout);E.eles=r.elements(),r.layout(E).run()};f([o.style,o.elements],function(v){var d=v[0],g=v[1];u.styleEnabled&&r.style().append(d),c(g,function(){r.startAnimationLoop(),u.ready=!0,Be(o.ready)&&r.on("ready",o.ready);for(var p=0;p<i.length;p++){var y=i[p];r.on("ready",y)}n&&(n.readies=[]),r.emit("ready")},o.done)})},Qa=oa.prototype;de(Qa,{instanceString:function(){return"core"},isReady:function(){return this._private.ready},destroyed:function(){return this._private.destroyed},ready:function(e){return this.isReady()?this.emitter().emit("ready",[],e):this.on("ready",e),this},destroy:function(){var e=this;if(!e.destroyed())return e.stopAnimationLoop(),e.destroyRenderer(),this.emit("destroy"),e._private.destroyed=!0,e},hasElementWithId:function(e){return this._private.elements.hasElementWithId(e)},getElementById:function(e){return this._private.elements.getElementById(e)},hasCompoundNodes:function(){return this._private.hasCompoundNodes},headless:function(){return this._private.renderer.isHeadless()},styleEnabled:function(){return this._private.styleEnabled},addToPool:function(e){return this._private.elements.merge(e),this},removeFromPool:function(e){return this._private.elements.unmerge(e),this},container:function(){return this._private.container||null},window:function(){var e=this._private.container;if(e==null)return $e;var r=this._private.container.ownerDocument;return r===void 0||r==null?$e:r.defaultView||$e},mount:function(e){if(e!=null){var r=this,a=r._private,n=a.options;return!Ha(e)&&Ha(e[0])&&(e=e[0]),r.stopAnimationLoop(),r.destroyRenderer(),a.container=e,a.styleEnabled=!0,r.invalidateSize(),r.initRenderer(de({},n,n.renderer,{name:n.renderer.name==="null"?"canvas":n.renderer.name})),r.startAnimationLoop(),r.style(n.style),r.emit("mount"),r}},unmount:function(){var e=this;return e.stopAnimationLoop(),e.destroyRenderer(),e.initRenderer({name:"null"}),e.emit("unmount"),e},options:function(){return St(this._private.options)},json:function(e){var r=this,a=r._private,n=r.mutableElements(),i=function(T){return r.getElementById(T.id())};if(De(e)){if(r.startBatch(),e.elements){var s={},o=function(T,C){for(var S=[],b=[],x=0;x<T.length;x++){var w=T[x];if(!w.data.id){Ne("cy.json() cannot handle elements without an ID attribute");continue}var D=""+w.data.id,A=r.getElementById(D);s[D]=!0,A.length!==0?b.push({ele:A,json:w}):(C&&(w.group=C),S.push(w))}r.add(S);for(var L=0;L<b.length;L++){var I=b[L],O=I.ele,P=I.json;O.json(P)}};if(Me(e.elements))o(e.elements);else for(var l=["nodes","edges"],u=0;u<l.length;u++){var f=l[u],h=e.elements[f];Me(h)&&o(h,f)}var c=r.collection();n.filter(function(m){return!s[m.id()]}).forEach(function(m){m.isParent()?c.merge(m):m.remove()}),c.forEach(function(m){return m.children().move({parent:null})}),c.forEach(function(m){return i(m).remove()})}e.style&&r.style(e.style),e.zoom!=null&&e.zoom!==a.zoom&&r.zoom(e.zoom),e.pan&&(e.pan.x!==a.pan.x||e.pan.y!==a.pan.y)&&r.pan(e.pan),e.data&&r.data(e.data);for(var v=["minZoom","maxZoom","zoomingEnabled","userZoomingEnabled","panningEnabled","userPanningEnabled","boxSelectionEnabled","autolock","autoungrabify","autounselectify","multiClickDebounceTime"],d=0;d<v.length;d++){var g=v[d];e[g]!=null&&r[g](e[g])}return r.endBatch(),this}else{var p=!!e,y={};p?y.elements=this.elements().map(function(m){return m.json()}):(y.elements={},n.forEach(function(m){var T=m.group();y.elements[T]||(y.elements[T]=[]),y.elements[T].push(m.json())})),this._private.styleEnabled&&(y.style=r.style().json()),y.data=St(r.data());var E=a.options;return y.zoomingEnabled=a.zoomingEnabled,y.userZoomingEnabled=a.userZoomingEnabled,y.zoom=a.zoom,y.minZoom=a.minZoom,y.maxZoom=a.maxZoom,y.panningEnabled=a.panningEnabled,y.userPanningEnabled=a.userPanningEnabled,y.pan=St(a.pan),y.boxSelectionEnabled=a.boxSelectionEnabled,y.renderer=St(E.renderer),y.hideEdgesOnViewport=E.hideEdgesOnViewport,y.textureOnViewport=E.textureOnViewport,y.wheelSensitivity=E.wheelSensitivity,y.motionBlur=E.motionBlur,y.multiClickDebounceTime=E.multiClickDebounceTime,y}}});Qa.$id=Qa.getElementById;[$p,Yp,Jo,Hn,za,Wp,Yn,$a,Zp,sr,sa].forEach(function(t){de(Qa,t)});var Jp={fit:!0,directed:!1,padding:30,circle:!1,grid:!1,spacingFactor:1.75,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,roots:void 0,depthSort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}},jp={maximal:!1,acyclic:!1},yr=function(e){return e.scratch("breadthfirst")},Ls=function(e,r){return e.scratch("breadthfirst",r)};function jo(t){this.options=de({},Jp,jp,t)}jo.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=a.nodes().filter(function(te){return!te.isParent()}),i=a,s=e.directed,o=e.acyclic||e.maximal||e.maximalAdjustments>0,l=ft(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),u;if(ht(e.roots))u=e.roots;else if(Me(e.roots)){for(var f=[],h=0;h<e.roots.length;h++){var c=e.roots[h],v=r.getElementById(c);f.push(v)}u=r.collection(f)}else if(ve(e.roots))u=r.$(e.roots);else if(s)u=n.roots();else{var d=a.components();u=r.collection();for(var g=function(re){var ue=d[re],le=ue.maxDegree(!1),se=ue.filter(function(fe){return fe.degree(!1)===le});u=u.add(se)},p=0;p<d.length;p++)g(p)}var y=[],E={},m=function(re,ue){y[ue]==null&&(y[ue]=[]);var le=y[ue].length;y[ue].push(re),Ls(re,{index:le,depth:ue})},T=function(re,ue){var le=yr(re),se=le.depth,fe=le.index;y[se][fe]=null,m(re,ue)};i.bfs({roots:u,directed:e.directed,visit:function(re,ue,le,se,fe){var xe=re[0],Ee=xe.id();m(xe,fe),E[Ee]=!0}});for(var C=[],S=0;S<n.length;S++){var b=n[S];E[b.id()]||C.push(b)}var x=function(re){for(var ue=y[re],le=0;le<ue.length;le++){var se=ue[le];if(se==null){ue.splice(le,1),le--;continue}Ls(se,{depth:re,index:le})}},w=function(){for(var re=0;re<y.length;re++)x(re)},D=function(re,ue){for(var le=yr(re),se=re.incomers().filter(function(N){return N.isNode()&&a.has(N)}),fe=-1,xe=re.id(),Ee=0;Ee<se.length;Ee++){var ge=se[Ee],we=yr(ge);fe=Math.max(fe,we.depth)}if(le.depth<=fe){if(!e.acyclic&&ue[xe])return null;var H=fe+1;return T(re,H),ue[xe]=H,!0}return!1};if(s&&o){var A=[],L={},I=function(re){return A.push(re)},O=function(){return A.shift()};for(n.forEach(function(te){return A.push(te)});A.length>0;){var P=O(),R=D(P,L);if(R)P.outgoers().filter(function(te){return te.isNode()&&a.has(te)}).forEach(I);else if(R===null){Ne("Detected double maximal shift for node `"+P.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}w();var M=0;if(e.avoidOverlap)for(var k=0;k<n.length;k++){var B=n[k],G=B.layoutDimensions(e),F=G.w,$=G.h;M=Math.max(M,F,$)}var U={},_=function(re){if(U[re.id()])return U[re.id()];for(var ue=yr(re).depth,le=re.neighborhood(),se=0,fe=0,xe=0;xe<le.length;xe++){var Ee=le[xe];if(!(Ee.isEdge()||Ee.isParent()||!n.has(Ee))){var ge=yr(Ee);if(ge!=null){var we=ge.index,H=ge.depth;if(!(we==null||H==null)){var N=y[H].length;H<ue&&(se+=we/N,fe++)}}}}return fe=Math.max(1,fe),se=se/fe,fe===0&&(se=0),U[re.id()]=se,se},Y=function(re,ue){var le=_(re),se=_(ue),fe=le-se;return fe===0?oo(re.id(),ue.id()):fe};e.depthSort!==void 0&&(Y=e.depthSort);for(var W=0;W<y.length;W++)y[W].sort(Y),x(W);for(var z=[],K=0;K<C.length;K++)z.push(C[K]);y.unshift(z),w();for(var j=0,Q=0;Q<y.length;Q++)j=Math.max(y[Q].length,j);var ee={x:l.x1+l.w/2,y:l.x1+l.h/2},ne=y.reduce(function(te,re){return Math.max(te,re.length)},0),ce=function(re){var ue=yr(re),le=ue.depth,se=ue.index,fe=y[le].length,xe=Math.max(l.w/((e.grid?ne:fe)+1),M),Ee=Math.max(l.h/(y.length+1),M),ge=Math.min(l.w/2/y.length,l.h/2/y.length);if(ge=Math.max(ge,M),e.circle){var H=ge*le+ge-(y.length>0&&y[0].length<=3?ge/2:0),N=2*Math.PI/y[le].length*se;return le===0&&y[0].length===1&&(H=1),{x:ee.x+H*Math.cos(N),y:ee.y+H*Math.sin(N)}}else{var we={x:ee.x+(se+1-(fe+1)/2)*xe,y:(le+1)*Ee};return we}};return a.nodes().layoutPositions(this,e,ce),this};var ey={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function el(t){this.options=de({},ey,t)}el.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,i=a.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));for(var s=ft(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},l=e.sweep===void 0?2*Math.PI-2*Math.PI/i.length:e.sweep,u=l/Math.max(1,i.length-1),f,h=0,c=0;c<i.length;c++){var v=i[c],d=v.layoutDimensions(e),g=d.w,p=d.h;h=Math.max(h,g,p)}if(ae(e.radius)?f=e.radius:i.length<=1?f=0:f=Math.min(s.h,s.w)/2-h,i.length>1&&e.avoidOverlap){h*=1.75;var y=Math.cos(u)-Math.cos(0),E=Math.sin(u)-Math.sin(0),m=Math.sqrt(h*h/(y*y+E*E));f=Math.max(m,f)}var T=function(S,b){var x=e.startAngle+b*u*(n?1:-1),w=f*Math.cos(x),D=f*Math.sin(x),A={x:o.x+w,y:o.y+D};return A};return a.nodes().layoutPositions(this,e,T),this};var ty={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function tl(t){this.options=de({},ty,t)}tl.prototype.run=function(){for(var t=this.options,e=t,r=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=t.cy,n=e.eles,i=n.nodes().not(":parent"),s=ft(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},l=[],u=0,f=0;f<i.length;f++){var h=i[f],c=void 0;c=e.concentric(h),l.push({value:c,node:h}),h._private.scratch.concentric=c}i.updateStyle();for(var v=0;v<i.length;v++){var d=i[v],g=d.layoutDimensions(e);u=Math.max(u,g.w,g.h)}l.sort(function(te,re){return re.value-te.value});for(var p=e.levelWidth(i),y=[[]],E=y[0],m=0;m<l.length;m++){var T=l[m];if(E.length>0){var C=Math.abs(E[0].value-T.value);C>=p&&(E=[],y.push(E))}E.push(T)}var S=u+e.minNodeSpacing;if(!e.avoidOverlap){var b=y.length>0&&y[0].length>1,x=Math.min(s.w,s.h)/2-S,w=x/(y.length+b?1:0);S=Math.min(S,w)}for(var D=0,A=0;A<y.length;A++){var L=y[A],I=e.sweep===void 0?2*Math.PI-2*Math.PI/L.length:e.sweep,O=L.dTheta=I/Math.max(1,L.length-1);if(L.length>1&&e.avoidOverlap){var P=Math.cos(O)-Math.cos(0),R=Math.sin(O)-Math.sin(0),M=Math.sqrt(S*S/(P*P+R*R));D=Math.max(M,D)}L.r=D,D+=S}if(e.equidistant){for(var k=0,B=0,G=0;G<y.length;G++){var F=y[G],$=F.r-B;k=Math.max(k,$)}B=0;for(var U=0;U<y.length;U++){var _=y[U];U===0&&(B=_.r),_.r=B,B+=k}}for(var Y={},W=0;W<y.length;W++)for(var z=y[W],K=z.dTheta,j=z.r,Q=0;Q<z.length;Q++){var ee=z[Q],ne=e.startAngle+(r?1:-1)*K*Q,ce={x:o.x+j*Math.cos(ne),y:o.y+j*Math.sin(ne)};Y[ee.node.id()]=ce}return n.nodes().layoutPositions(this,e,function(te){var re=te.id();return Y[re]}),this};var Mn,ry={ready:function(){},stop:function(){},animate:!0,animationEasing:void 0,animationDuration:void 0,animateFilter:function(e,r){return!0},animationThreshold:250,refresh:20,fit:!0,padding:30,boundingBox:void 0,nodeDimensionsIncludeLabels:!1,randomize:!1,componentSpacing:40,nodeRepulsion:function(e){return 2048},nodeOverlap:4,idealEdgeLength:function(e){return 32},edgeElasticity:function(e){return 32},nestingFactor:1.2,gravity:1,numIter:1e3,initialTemp:1e3,coolingFactor:.99,minTemp:1};function mn(t){this.options=de({},ry,t),this.options.layout=this;var e=this.options.eles.nodes(),r=this.options.eles.edges(),a=r.filter(function(n){var i=n.source().data("id"),s=n.target().data("id"),o=e.some(function(u){return u.data("id")===i}),l=e.some(function(u){return u.data("id")===s});return!o||!l});this.options.eles=this.options.eles.not(a)}mn.prototype.run=function(){var t=this.options,e=t.cy,r=this;r.stopped=!1,(t.animate===!0||t.animate===!1)&&r.emit({type:"layoutstart",layout:r}),t.debug===!0?Mn=!0:Mn=!1;var a=ay(e,r,t);Mn&&sy(a),t.randomize&&oy(a);var n=Mt(),i=function(){ly(a,e,t),t.fit===!0&&e.fit(t.padding)},s=function(c){return!(r.stopped||c>=t.numIter||(uy(a,t),a.temperature=a.temperature*t.coolingFactor,a.temperature<t.minTemp))},o=function(){if(t.animate===!0||t.animate===!1)i(),r.one("layoutstop",t.stop),r.emit({type:"layoutstop",layout:r});else{var c=t.eles.nodes(),v=rl(a,t,c);c.layoutPositions(r,t,v)}},l=0,u=!0;if(t.animate===!0){var f=function h(){for(var c=0;u&&c<t.refresh;)u=s(l),l++,c++;if(!u)Os(a,t),o();else{var v=Mt();v-n>=t.animationThreshold&&i(),Ya(h)}};f()}else{for(;u;)u=s(l),l++;Os(a,t),o()}return this};mn.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};mn.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var ay=function(e,r,a){for(var n=a.eles.edges(),i=a.eles.nodes(),s=ft(a.boundingBox?a.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:n.size(),temperature:a.initialTemp,clientWidth:s.w,clientHeight:s.h,boundingBox:s},l=a.eles.components(),u={},f=0;f<l.length;f++)for(var h=l[f],c=0;c<h.length;c++){var v=h[c];u[v.id()]=f}for(var f=0;f<o.nodeSize;f++){var d=i[f],g=d.layoutDimensions(a),p={};p.isLocked=d.locked(),p.id=d.data("id"),p.parentId=d.data("parent"),p.cmptId=u[d.id()],p.children=[],p.positionX=d.position("x"),p.positionY=d.position("y"),p.offsetX=0,p.offsetY=0,p.height=g.w,p.width=g.h,p.maxX=p.positionX+p.width/2,p.minX=p.positionX-p.width/2,p.maxY=p.positionY+p.height/2,p.minY=p.positionY-p.height/2,p.padLeft=parseFloat(d.style("padding")),p.padRight=parseFloat(d.style("padding")),p.padTop=parseFloat(d.style("padding")),p.padBottom=parseFloat(d.style("padding")),p.nodeRepulsion=Be(a.nodeRepulsion)?a.nodeRepulsion(d):a.nodeRepulsion,o.layoutNodes.push(p),o.idToIndex[p.id]=f}for(var y=[],E=0,m=-1,T=[],f=0;f<o.nodeSize;f++){var d=o.layoutNodes[f],C=d.parentId;C!=null?o.layoutNodes[o.idToIndex[C]].children.push(d.id):(y[++m]=d.id,T.push(d.id))}for(o.graphSet.push(T);E<=m;){var S=y[E++],b=o.idToIndex[S],v=o.layoutNodes[b],x=v.children;if(x.length>0){o.graphSet.push(x);for(var f=0;f<x.length;f++)y[++m]=x[f]}}for(var f=0;f<o.graphSet.length;f++)for(var w=o.graphSet[f],c=0;c<w.length;c++){var D=o.idToIndex[w[c]];o.indexToGraph[D]=f}for(var f=0;f<o.edgeSize;f++){var A=n[f],L={};L.id=A.data("id"),L.sourceId=A.data("source"),L.targetId=A.data("target");var I=Be(a.idealEdgeLength)?a.idealEdgeLength(A):a.idealEdgeLength,O=Be(a.edgeElasticity)?a.edgeElasticity(A):a.edgeElasticity,P=o.idToIndex[L.sourceId],R=o.idToIndex[L.targetId],M=o.indexToGraph[P],k=o.indexToGraph[R];if(M!=k){for(var B=ny(L.sourceId,L.targetId,o),G=o.graphSet[B],F=0,p=o.layoutNodes[P];G.indexOf(p.id)===-1;)p=o.layoutNodes[o.idToIndex[p.parentId]],F++;for(p=o.layoutNodes[R];G.indexOf(p.id)===-1;)p=o.layoutNodes[o.idToIndex[p.parentId]],F++;I*=F*a.nestingFactor}L.idealLength=I,L.elasticity=O,o.layoutEdges.push(L)}return o},ny=function(e,r,a){var n=iy(e,r,0,a);return 2>n.count?0:n.graph},iy=function t(e,r,a,n){var i=n.graphSet[a];if(-1<i.indexOf(e)&&-1<i.indexOf(r))return{count:2,graph:a};for(var s=0,o=0;o<i.length;o++){var l=i[o],u=n.idToIndex[l],f=n.layoutNodes[u].children;if(f.length!==0){var h=n.indexToGraph[n.idToIndex[f[0]]],c=t(e,r,h,n);if(c.count!==0)if(c.count===1){if(s++,s===2)break}else return c}}return{count:s,graph:a}},sy,oy=function(e,r){for(var a=e.clientWidth,n=e.clientHeight,i=0;i<e.nodeSize;i++){var s=e.layoutNodes[i];s.children.length===0&&!s.isLocked&&(s.positionX=Math.random()*a,s.positionY=Math.random()*n)}},rl=function(e,r,a){var n=e.boundingBox,i={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0};return r.boundingBox&&(a.forEach(function(s){var o=e.layoutNodes[e.idToIndex[s.data("id")]];i.x1=Math.min(i.x1,o.positionX),i.x2=Math.max(i.x2,o.positionX),i.y1=Math.min(i.y1,o.positionY),i.y2=Math.max(i.y2,o.positionY)}),i.w=i.x2-i.x1,i.h=i.y2-i.y1),function(s,o){var l=e.layoutNodes[e.idToIndex[s.data("id")]];if(r.boundingBox){var u=(l.positionX-i.x1)/i.w,f=(l.positionY-i.y1)/i.h;return{x:n.x1+u*n.w,y:n.y1+f*n.h}}else return{x:l.positionX,y:l.positionY}}},ly=function(e,r,a){var n=a.layout,i=a.eles.nodes(),s=rl(e,a,i);i.positions(s),e.ready!==!0&&(e.ready=!0,n.one("layoutready",a.ready),n.emit({type:"layoutready",layout:this}))},uy=function(e,r,a){fy(e,r),cy(e),dy(e,r),gy(e),py(e)},fy=function(e,r){for(var a=0;a<e.graphSet.length;a++)for(var n=e.graphSet[a],i=n.length,s=0;s<i;s++)for(var o=e.layoutNodes[e.idToIndex[n[s]]],l=s+1;l<i;l++){var u=e.layoutNodes[e.idToIndex[n[l]]];hy(o,u,e,r)}},As=function(e){return-e+2*e*Math.random()},hy=function(e,r,a,n){var i=e.cmptId,s=r.cmptId;if(!(i!==s&&!a.isCompound)){var o=r.positionX-e.positionX,l=r.positionY-e.positionY,u=1;o===0&&l===0&&(o=As(u),l=As(u));var f=vy(e,r,o,l);if(f>0)var h=n.nodeOverlap*f,c=Math.sqrt(o*o+l*l),v=h*o/c,d=h*l/c;else var g=Ja(e,o,l),p=Ja(r,-1*o,-1*l),y=p.x-g.x,E=p.y-g.y,m=y*y+E*E,c=Math.sqrt(m),h=(e.nodeRepulsion+r.nodeRepulsion)/m,v=h*y/c,d=h*E/c;e.isLocked||(e.offsetX-=v,e.offsetY-=d),r.isLocked||(r.offsetX+=v,r.offsetY+=d)}},vy=function(e,r,a,n){if(a>0)var i=e.maxX-r.minX;else var i=r.maxX-e.minX;if(n>0)var s=e.maxY-r.minY;else var s=r.maxY-e.minY;return i>=0&&s>=0?Math.sqrt(i*i+s*s):0},Ja=function(e,r,a){var n=e.positionX,i=e.positionY,s=e.height||1,o=e.width||1,l=a/r,u=s/o,f={};return r===0&&0<a||r===0&&0>a?(f.x=n,f.y=i+s/2,f):0<r&&-1*u<=l&&l<=u?(f.x=n+o/2,f.y=i+o*a/2/r,f):0>r&&-1*u<=l&&l<=u?(f.x=n-o/2,f.y=i-o*a/2/r,f):0<a&&(l<=-1*u||l>=u)?(f.x=n+s*r/2/a,f.y=i+s/2,f):(0>a&&(l<=-1*u||l>=u)&&(f.x=n-s*r/2/a,f.y=i-s/2),f)},cy=function(e,r){for(var a=0;a<e.edgeSize;a++){var n=e.layoutEdges[a],i=e.idToIndex[n.sourceId],s=e.layoutNodes[i],o=e.idToIndex[n.targetId],l=e.layoutNodes[o],u=l.positionX-s.positionX,f=l.positionY-s.positionY;if(!(u===0&&f===0)){var h=Ja(s,u,f),c=Ja(l,-1*u,-1*f),v=c.x-h.x,d=c.y-h.y,g=Math.sqrt(v*v+d*d),p=Math.pow(n.idealLength-g,2)/n.elasticity;if(g!==0)var y=p*v/g,E=p*d/g;else var y=0,E=0;s.isLocked||(s.offsetX+=y,s.offsetY+=E),l.isLocked||(l.offsetX-=y,l.offsetY-=E)}}},dy=function(e,r){if(r.gravity!==0)for(var a=1,n=0;n<e.graphSet.length;n++){var i=e.graphSet[n],s=i.length;if(n===0)var o=e.clientHeight/2,l=e.clientWidth/2;else var u=e.layoutNodes[e.idToIndex[i[0]]],f=e.layoutNodes[e.idToIndex[u.parentId]],o=f.positionX,l=f.positionY;for(var h=0;h<s;h++){var c=e.layoutNodes[e.idToIndex[i[h]]];if(!c.isLocked){var v=o-c.positionX,d=l-c.positionY,g=Math.sqrt(v*v+d*d);if(g>a){var p=r.gravity*v/g,y=r.gravity*d/g;c.offsetX+=p,c.offsetY+=y}}}}},gy=function(e,r){var a=[],n=0,i=-1;for(a.push.apply(a,e.graphSet[0]),i+=e.graphSet[0].length;n<=i;){var s=a[n++],o=e.idToIndex[s],l=e.layoutNodes[o],u=l.children;if(0<u.length&&!l.isLocked){for(var f=l.offsetX,h=l.offsetY,c=0;c<u.length;c++){var v=e.layoutNodes[e.idToIndex[u[c]]];v.offsetX+=f,v.offsetY+=h,a[++i]=u[c]}l.offsetX=0,l.offsetY=0}}},py=function(e,r){for(var a=0;a<e.nodeSize;a++){var n=e.layoutNodes[a];0<n.children.length&&(n.maxX=void 0,n.minX=void 0,n.maxY=void 0,n.minY=void 0)}for(var a=0;a<e.nodeSize;a++){var n=e.layoutNodes[a];if(!(0<n.children.length||n.isLocked)){var i=yy(n.offsetX,n.offsetY,e.temperature);n.positionX+=i.x,n.positionY+=i.y,n.offsetX=0,n.offsetY=0,n.minX=n.positionX-n.width,n.maxX=n.positionX+n.width,n.minY=n.positionY-n.height,n.maxY=n.positionY+n.height,my(n,e)}}for(var a=0;a<e.nodeSize;a++){var n=e.layoutNodes[a];0<n.children.length&&!n.isLocked&&(n.positionX=(n.maxX+n.minX)/2,n.positionY=(n.maxY+n.minY)/2,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY)}},yy=function(e,r,a){var n=Math.sqrt(e*e+r*r);if(n>a)var i={x:a*e/n,y:a*r/n};else var i={x:e,y:r};return i},my=function t(e,r){var a=e.parentId;if(a!=null){var n=r.layoutNodes[r.idToIndex[a]],i=!1;if((n.maxX==null||e.maxX+n.padRight>n.maxX)&&(n.maxX=e.maxX+n.padRight,i=!0),(n.minX==null||e.minX-n.padLeft<n.minX)&&(n.minX=e.minX-n.padLeft,i=!0),(n.maxY==null||e.maxY+n.padBottom>n.maxY)&&(n.maxY=e.maxY+n.padBottom,i=!0),(n.minY==null||e.minY-n.padTop<n.minY)&&(n.minY=e.minY-n.padTop,i=!0),i)return t(n,r)}},Os=function(e,r){for(var a=e.layoutNodes,n=[],i=0;i<a.length;i++){var s=a[i],o=s.cmptId,l=n[o]=n[o]||[];l.push(s)}for(var u=0,i=0;i<n.length;i++){var f=n[i];if(f){f.x1=1/0,f.x2=-1/0,f.y1=1/0,f.y2=-1/0;for(var h=0;h<f.length;h++){var c=f[h];f.x1=Math.min(f.x1,c.positionX-c.width/2),f.x2=Math.max(f.x2,c.positionX+c.width/2),f.y1=Math.min(f.y1,c.positionY-c.height/2),f.y2=Math.max(f.y2,c.positionY+c.height/2)}f.w=f.x2-f.x1,f.h=f.y2-f.y1,u+=f.w*f.h}}n.sort(function(E,m){return m.w*m.h-E.w*E.h});for(var v=0,d=0,g=0,p=0,y=Math.sqrt(u)*e.clientWidth/e.clientHeight,i=0;i<n.length;i++){var f=n[i];if(f){for(var h=0;h<f.length;h++){var c=f[h];c.isLocked||(c.positionX+=v-f.x1,c.positionY+=d-f.y1)}v+=f.w+r.componentSpacing,g+=f.w+r.componentSpacing,p=Math.max(p,f.h),g>y&&(d+=p+r.componentSpacing,v=0,g=0,p=0)}}},by={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function al(t){this.options=de({},by,t)}al.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=a.nodes().not(":parent");e.sort&&(n=n.sort(e.sort));var i=ft(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(i.h===0||i.w===0)a.nodes().layoutPositions(this,e,function(U){return{x:i.x1,y:i.y1}});else{var s=n.size(),o=Math.sqrt(s*i.h/i.w),l=Math.round(o),u=Math.round(i.w/i.h*o),f=function(_){if(_==null)return Math.min(l,u);var Y=Math.min(l,u);Y==l?l=_:u=_},h=function(_){if(_==null)return Math.max(l,u);var Y=Math.max(l,u);Y==l?l=_:u=_},c=e.rows,v=e.cols!=null?e.cols:e.columns;if(c!=null&&v!=null)l=c,u=v;else if(c!=null&&v==null)l=c,u=Math.ceil(s/l);else if(c==null&&v!=null)u=v,l=Math.ceil(s/u);else if(u*l>s){var d=f(),g=h();(d-1)*g>=s?f(d-1):(g-1)*d>=s&&h(g-1)}else for(;u*l<s;){var p=f(),y=h();(y+1)*p>=s?h(y+1):f(p+1)}var E=i.w/u,m=i.h/l;if(e.condense&&(E=0,m=0),e.avoidOverlap)for(var T=0;T<n.length;T++){var C=n[T],S=C._private.position;(S.x==null||S.y==null)&&(S.x=0,S.y=0);var b=C.layoutDimensions(e),x=e.avoidOverlapPadding,w=b.w+x,D=b.h+x;E=Math.max(E,w),m=Math.max(m,D)}for(var A={},L=function(_,Y){return!!A["c-"+_+"-"+Y]},I=function(_,Y){A["c-"+_+"-"+Y]=!0},O=0,P=0,R=function(){P++,P>=u&&(P=0,O++)},M={},k=0;k<n.length;k++){var B=n[k],G=e.position(B);if(G&&(G.row!==void 0||G.col!==void 0)){var F={row:G.row,col:G.col};if(F.col===void 0)for(F.col=0;L(F.row,F.col);)F.col++;else if(F.row===void 0)for(F.row=0;L(F.row,F.col);)F.row++;M[B.id()]=F,I(F.row,F.col)}}var $=function(_,Y){var W,z;if(_.locked()||_.isParent())return!1;var K=M[_.id()];if(K)W=K.col*E+E/2+i.x1,z=K.row*m+m/2+i.y1;else{for(;L(O,P);)R();W=P*E+E/2+i.x1,z=O*m+m/2+i.y1,I(O,P),R()}return{x:W,y:z}};n.layoutPositions(this,e,$)}return this};var Ey={ready:function(){},stop:function(){}};function mi(t){this.options=de({},Ey,t)}mi.prototype.run=function(){var t=this.options,e=t.eles,r=this;return t.cy,r.emit("layoutstart"),e.nodes().positions(function(){return{x:0,y:0}}),r.one("layoutready",t.ready),r.emit("layoutready"),r.one("layoutstop",t.stop),r.emit("layoutstop"),this};mi.prototype.stop=function(){return this};var wy={positions:void 0,zoom:void 0,pan:void 0,fit:!0,padding:30,spacingFactor:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function nl(t){this.options=de({},wy,t)}nl.prototype.run=function(){var t=this.options,e=t.eles,r=e.nodes(),a=Be(t.positions);function n(i){if(t.positions==null)return Md(i.position());if(a)return t.positions(i);var s=t.positions[i._private.data.id];return s??null}return r.layoutPositions(this,t,function(i,s){var o=n(i);return i.locked()||o==null?!1:o}),this};var xy={fit:!0,padding:30,boundingBox:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function il(t){this.options=de({},xy,t)}il.prototype.run=function(){var t=this.options,e=t.cy,r=t.eles,a=ft(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),n=function(s,o){return{x:a.x1+Math.round(Math.random()*a.w),y:a.y1+Math.round(Math.random()*a.h)}};return r.nodes().layoutPositions(this,t,n),this};var Ty=[{name:"breadthfirst",impl:jo},{name:"circle",impl:el},{name:"concentric",impl:tl},{name:"cose",impl:mn},{name:"grid",impl:al},{name:"null",impl:mi},{name:"preset",impl:nl},{name:"random",impl:il}];function sl(t){this.options=t,this.notifications=0}var Ns=function(){},Is=function(){throw new Error("A headless instance can not render images")};sl.prototype={recalculateRenderedStyle:Ns,notify:function(){this.notifications++},init:Ns,isHeadless:function(){return!0},png:Is,jpg:Is};var bi={};bi.arrowShapeWidth=.3;bi.registerArrowShapes=function(){var t=this.arrowShapes={},e=this,r=function(u,f,h,c,v,d,g){var p=v.x-h/2-g,y=v.x+h/2+g,E=v.y-h/2-g,m=v.y+h/2+g,T=p<=u&&u<=y&&E<=f&&f<=m;return T},a=function(u,f,h,c,v){var d=u*Math.cos(c)-f*Math.sin(c),g=u*Math.sin(c)+f*Math.cos(c),p=d*h,y=g*h,E=p+v.x,m=y+v.y;return{x:E,y:m}},n=function(u,f,h,c){for(var v=[],d=0;d<u.length;d+=2){var g=u[d],p=u[d+1];v.push(a(g,p,f,h,c))}return v},i=function(u){for(var f=[],h=0;h<u.length;h++){var c=u[h];f.push(c.x,c.y)}return f},s=function(u){return u.pstyle("width").pfValue*u.pstyle("arrow-scale").pfValue*2},o=function(u,f){ve(f)&&(f=t[f]),t[u]=de({name:u,points:[-.15,-.3,.15,-.3,.15,.3,-.15,.3],collide:function(c,v,d,g,p,y){var E=i(n(this.points,d+2*y,g,p)),m=ut(c,v,E);return m},roughCollide:r,draw:function(c,v,d,g){var p=n(this.points,v,d,g);e.arrowShapeImpl("polygon")(c,p)},spacing:function(c){return 0},gap:s},f)};o("none",{collide:Xa,roughCollide:Xa,draw:oi,spacing:Xi,gap:Xi}),o("triangle",{points:[-.15,-.3,0,0,.15,-.3]}),o("arrow","triangle"),o("triangle-backcurve",{points:t.triangle.points,controlPoint:[0,-.15],roughCollide:r,draw:function(u,f,h,c,v){var d=n(this.points,f,h,c),g=this.controlPoint,p=a(g[0],g[1],f,h,c);e.arrowShapeImpl(this.name)(u,d,p)},gap:function(u){return s(u)*.8}}),o("triangle-tee",{points:[0,0,.15,-.3,-.15,-.3,0,0],pointsTee:[-.15,-.4,-.15,-.5,.15,-.5,.15,-.4],collide:function(u,f,h,c,v,d,g){var p=i(n(this.points,h+2*g,c,v)),y=i(n(this.pointsTee,h+2*g,c,v)),E=ut(u,f,p)||ut(u,f,y);return E},draw:function(u,f,h,c,v){var d=n(this.points,f,h,c),g=n(this.pointsTee,f,h,c);e.arrowShapeImpl(this.name)(u,d,g)}}),o("circle-triangle",{radius:.15,pointsTr:[0,-.15,.15,-.45,-.15,-.45,0,-.15],collide:function(u,f,h,c,v,d,g){var p=v,y=Math.pow(p.x-u,2)+Math.pow(p.y-f,2)<=Math.pow((h+2*g)*this.radius,2),E=i(n(this.points,h+2*g,c,v));return ut(u,f,E)||y},draw:function(u,f,h,c,v){var d=n(this.pointsTr,f,h,c);e.arrowShapeImpl(this.name)(u,d,c.x,c.y,this.radius*f)},spacing:function(u){return e.getArrowWidth(u.pstyle("width").pfValue,u.pstyle("arrow-scale").value)*this.radius}}),o("triangle-cross",{points:[0,0,.15,-.3,-.15,-.3,0,0],baseCrossLinePts:[-.15,-.4,-.15,-.4,.15,-.4,.15,-.4],crossLinePts:function(u,f){var h=this.baseCrossLinePts.slice(),c=f/u,v=3,d=5;return h[v]=h[v]-c,h[d]=h[d]-c,h},collide:function(u,f,h,c,v,d,g){var p=i(n(this.points,h+2*g,c,v)),y=i(n(this.crossLinePts(h,d),h+2*g,c,v)),E=ut(u,f,p)||ut(u,f,y);return E},draw:function(u,f,h,c,v){var d=n(this.points,f,h,c),g=n(this.crossLinePts(f,v),f,h,c);e.arrowShapeImpl(this.name)(u,d,g)}}),o("vee",{points:[-.15,-.3,0,0,.15,-.3,0,-.15],gap:function(u){return s(u)*.525}}),o("circle",{radius:.15,collide:function(u,f,h,c,v,d,g){var p=v,y=Math.pow(p.x-u,2)+Math.pow(p.y-f,2)<=Math.pow((h+2*g)*this.radius,2);return y},draw:function(u,f,h,c,v){e.arrowShapeImpl(this.name)(u,c.x,c.y,this.radius*f)},spacing:function(u){return e.getArrowWidth(u.pstyle("width").pfValue,u.pstyle("arrow-scale").value)*this.radius}}),o("tee",{points:[-.15,0,-.15,-.1,.15,-.1,.15,0],spacing:function(u){return 1},gap:function(u){return 1}}),o("square",{points:[-.15,0,.15,0,.15,-.3,-.15,-.3]}),o("diamond",{points:[-.15,-.15,0,-.3,.15,-.15,0,0],gap:function(u){return u.pstyle("width").pfValue*u.pstyle("arrow-scale").value}}),o("chevron",{points:[0,0,-.15,-.15,-.1,-.2,0,-.1,.1,-.2,.15,-.15],gap:function(u){return .95*u.pstyle("width").pfValue*u.pstyle("arrow-scale").value}})};var fr={};fr.projectIntoViewport=function(t,e){var r=this.cy,a=this.findContainerClientCoords(),n=a[0],i=a[1],s=a[4],o=r.pan(),l=r.zoom(),u=((t-n)/s-o.x)/l,f=((e-i)/s-o.y)/l;return[u,f]};fr.findContainerClientCoords=function(){if(this.containerBB)return this.containerBB;var t=this.container,e=t.getBoundingClientRect(),r=this.cy.window().getComputedStyle(t),a=function(y){return parseFloat(r.getPropertyValue(y))},n={left:a("padding-left"),right:a("padding-right"),top:a("padding-top"),bottom:a("padding-bottom")},i={left:a("border-left-width"),right:a("border-right-width"),top:a("border-top-width"),bottom:a("border-bottom-width")},s=t.clientWidth,o=t.clientHeight,l=n.left+n.right,u=n.top+n.bottom,f=i.left+i.right,h=e.width/(s+f),c=s-l,v=o-u,d=e.left+n.left+i.left,g=e.top+n.top+i.top;return this.containerBB=[d,g,c,v,h]};fr.invalidateContainerClientCoordsCache=function(){this.containerBB=null};fr.findNearestElement=function(t,e,r,a){return this.findNearestElements(t,e,r,a)[0]};fr.findNearestElements=function(t,e,r,a){var n=this,i=this,s=i.getCachedZSortedEles(),o=[],l=i.cy.zoom(),u=i.cy.hasCompoundNodes(),f=(a?24:8)/l,h=(a?8:2)/l,c=(a?8:2)/l,v=1/0,d,g;r&&(s=s.interactive);function p(b,x){if(b.isNode()){if(g)return;g=b,o.push(b)}if(b.isEdge()&&(x==null||x<v))if(d){if(d.pstyle("z-compound-depth").value===b.pstyle("z-compound-depth").value&&d.pstyle("z-compound-depth").value===b.pstyle("z-compound-depth").value){for(var w=0;w<o.length;w++)if(o[w].isEdge()){o[w]=b,d=b,v=x??v;break}}}else o.push(b),d=b,v=x??v}function y(b){var x=b.outerWidth()+2*h,w=b.outerHeight()+2*h,D=x/2,A=w/2,L=b.position();if(L.x-D<=t&&t<=L.x+D&&L.y-A<=e&&e<=L.y+A){var I=i.nodeShapes[n.getNodeShape(b)];if(I.checkPoint(t,e,0,x,w,L.x,L.y))return p(b,0),!0}}function E(b){var x=b._private,w=x.rscratch,D=b.pstyle("width").pfValue,A=b.pstyle("arrow-scale").value,L=D/2+f,I=L*L,O=L*2,k=x.source,B=x.target,P;if(w.edgeType==="segments"||w.edgeType==="straight"||w.edgeType==="haystack"){for(var R=w.allpts,M=0;M+3<R.length;M+=2)if(Yd(t,e,R[M],R[M+1],R[M+2],R[M+3],O)&&I>(P=Zd(t,e,R[M],R[M+1],R[M+2],R[M+3])))return p(b,P),!0}else if(w.edgeType==="bezier"||w.edgeType==="multibezier"||w.edgeType==="self"||w.edgeType==="compound"){for(var R=w.allpts,M=0;M+5<w.allpts.length;M+=4)if(Xd(t,e,R[M],R[M+1],R[M+2],R[M+3],R[M+4],R[M+5],O)&&I>(P=Kd(t,e,R[M],R[M+1],R[M+2],R[M+3],R[M+4],R[M+5])))return p(b,P),!0}for(var k=k||x.source,B=B||x.target,G=n.getArrowWidth(D,A),F=[{name:"source",x:w.arrowStartX,y:w.arrowStartY,angle:w.srcArrowAngle},{name:"target",x:w.arrowEndX,y:w.arrowEndY,angle:w.tgtArrowAngle},{name:"mid-source",x:w.midX,y:w.midY,angle:w.midsrcArrowAngle},{name:"mid-target",x:w.midX,y:w.midY,angle:w.midtgtArrowAngle}],M=0;M<F.length;M++){var $=F[M],U=i.arrowShapes[b.pstyle($.name+"-arrow-shape").value],_=b.pstyle("width").pfValue;if(U.roughCollide(t,e,G,$.angle,{x:$.x,y:$.y},_,f)&&U.collide(t,e,G,$.angle,{x:$.x,y:$.y},_,f))return p(b),!0}u&&o.length>0&&(y(k),y(B))}function m(b,x,w){return xt(b,x,w)}function T(b,x){var w=b._private,D=c,A;x?A=x+"-":A="",b.boundingBox();var L=w.labelBounds[x||"main"],I=b.pstyle(A+"label").value,O=b.pstyle("text-events").strValue==="yes";if(!(!O||!I)){var P=m(w.rscratch,"labelX",x),R=m(w.rscratch,"labelY",x),M=m(w.rscratch,"labelAngle",x),k=b.pstyle(A+"text-margin-x").pfValue,B=b.pstyle(A+"text-margin-y").pfValue,G=L.x1-D-k,F=L.x2+D-k,$=L.y1-D-B,U=L.y2+D-B;if(M){var _=Math.cos(M),Y=Math.sin(M),W=function(ce,te){return ce=ce-P,te=te-R,{x:ce*_-te*Y+P,y:ce*Y+te*_+R}},z=W(G,$),K=W(G,U),j=W(F,$),Q=W(F,U),ee=[z.x+k,z.y+B,j.x+k,j.y+B,Q.x+k,Q.y+B,K.x+k,K.y+B];if(ut(t,e,ee))return p(b),!0}else if(Sr(L,t,e))return p(b),!0}}for(var C=s.length-1;C>=0;C--){var S=s[C];S.isNode()?y(S)||T(S):E(S)||T(S)||T(S,"source")||T(S,"target")}return o};fr.getAllInBox=function(t,e,r,a){var n=this.getCachedZSortedEles().interactive,i=[],s=Math.min(t,r),o=Math.max(t,r),l=Math.min(e,a),u=Math.max(e,a);t=s,r=o,e=l,a=u;for(var f=ft({x1:t,y1:e,x2:r,y2:a}),h=0;h<n.length;h++){var c=n[h];if(c.isNode()){var v=c,d=v.boundingBox({includeNodes:!0,includeEdges:!1,includeLabels:!1});fi(f,d)&&!xo(d,f)&&i.push(v)}else{var g=c,p=g._private,y=p.rscratch;if(y.startX!=null&&y.startY!=null&&!Sr(f,y.startX,y.startY)||y.endX!=null&&y.endY!=null&&!Sr(f,y.endX,y.endY))continue;if(y.edgeType==="bezier"||y.edgeType==="multibezier"||y.edgeType==="self"||y.edgeType==="compound"||y.edgeType==="segments"||y.edgeType==="haystack"){for(var E=p.rstyle.bezierPts||p.rstyle.linePts||p.rstyle.haystackPts,m=!0,T=0;T<E.length;T++)if(!Hd(f,E[T])){m=!1;break}m&&i.push(g)}else(y.edgeType==="haystack"||y.edgeType==="straight")&&i.push(g)}}return i};var ja={};ja.calculateArrowAngles=function(t){var e=t._private.rscratch,r=e.edgeType==="haystack",a=e.edgeType==="bezier",n=e.edgeType==="multibezier",i=e.edgeType==="segments",s=e.edgeType==="compound",o=e.edgeType==="self",l,u,f,h,c,v,y,E;if(r?(f=e.haystackPts[0],h=e.haystackPts[1],c=e.haystackPts[2],v=e.haystackPts[3]):(f=e.arrowStartX,h=e.arrowStartY,c=e.arrowEndX,v=e.arrowEndY),y=e.midX,E=e.midY,i)l=f-e.segpts[0],u=h-e.segpts[1];else if(n||s||o||a){var d=e.allpts,g=Ye(d[0],d[2],d[4],.1),p=Ye(d[1],d[3],d[5],.1);l=f-g,u=h-p}else l=f-y,u=h-E;e.srcArrowAngle=Ca(l,u);var y=e.midX,E=e.midY;if(r&&(y=(f+c)/2,E=(h+v)/2),l=c-f,u=v-h,i){var d=e.allpts;if(d.length/2%2===0){var m=d.length/2,T=m-2;l=d[m]-d[T],u=d[m+1]-d[T+1]}else{var m=d.length/2-1,T=m-2,C=m+2;l=d[m]-d[T],u=d[m+1]-d[T+1]}}else if(n||s||o){var d=e.allpts,S=e.ctrlpts,b,x,w,D;if(S.length/2%2===0){var A=d.length/2-1,L=A+2,I=L+2;b=Ye(d[A],d[L],d[I],0),x=Ye(d[A+1],d[L+1],d[I+1],0),w=Ye(d[A],d[L],d[I],1e-4),D=Ye(d[A+1],d[L+1],d[I+1],1e-4)}else{var L=d.length/2-1,A=L-2,I=L+2;b=Ye(d[A],d[L],d[I],.4999),x=Ye(d[A+1],d[L+1],d[I+1],.4999),w=Ye(d[A],d[L],d[I],.5),D=Ye(d[A+1],d[L+1],d[I+1],.5)}l=w-b,u=D-x}if(e.midtgtArrowAngle=Ca(l,u),e.midDispX=l,e.midDispY=u,l*=-1,u*=-1,i){var d=e.allpts;if(d.length/2%2!==0){var m=d.length/2-1,C=m+2;l=-(d[C]-d[m]),u=-(d[C+1]-d[m+1])}}if(e.midsrcArrowAngle=Ca(l,u),i)l=c-e.segpts[e.segpts.length-2],u=v-e.segpts[e.segpts.length-1];else if(n||s||o||a){var d=e.allpts,O=d.length,g=Ye(d[O-6],d[O-4],d[O-2],.9),p=Ye(d[O-5],d[O-3],d[O-1],.9);l=c-g,u=v-p}else l=c-y,u=v-E;e.tgtArrowAngle=Ca(l,u)};ja.getArrowWidth=ja.getArrowHeight=function(t,e){var r=this.arrowWidthCache=this.arrowWidthCache||{},a=r[t+", "+e];return a||(a=Math.max(Math.pow(t*13.37,.9),29)*e,r[t+", "+e]=a,a)};var nt={};nt.findMidptPtsEtc=function(t,e){var r=e.posPts,a=e.intersectionPts,n=e.vectorNormInverse,i,s=t.pstyle("source-endpoint"),o=t.pstyle("target-endpoint"),l=s.units!=null&&o.units!=null,u=function(C,S,b,x){var w=x-S,D=b-C,A=Math.sqrt(D*D+w*w);return{x:-w/A,y:D/A}},f=t.pstyle("edge-distances").value;switch(f){case"node-position":i=r;break;case"intersection":i=a;break;case"endpoints":{if(l){var h=this.manualEndptToPx(t.source()[0],s),c=Et(h,2),v=c[0],d=c[1],g=this.manualEndptToPx(t.target()[0],o),p=Et(g,2),y=p[0],E=p[1],m={x1:v,y1:d,x2:y,y2:E};n=u(v,d,y,E),i=m}else Ne("Edge ".concat(t.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),i=a;break}}return{midptPts:i,vectorNormInverse:n}};nt.findHaystackPoints=function(t){for(var e=0;e<t.length;e++){var r=t[e],a=r._private,n=a.rscratch;if(!n.haystack){var i=Math.random()*2*Math.PI;n.source={x:Math.cos(i),y:Math.sin(i)},i=Math.random()*2*Math.PI,n.target={x:Math.cos(i),y:Math.sin(i)}}var s=a.source,o=a.target,l=s.position(),u=o.position(),f=s.width(),h=o.width(),c=s.height(),v=o.height(),d=r.pstyle("haystack-radius").value,g=d/2;n.haystackPts=n.allpts=[n.source.x*f*g+l.x,n.source.y*c*g+l.y,n.target.x*h*g+u.x,n.target.y*v*g+u.y],n.midX=(n.allpts[0]+n.allpts[2])/2,n.midY=(n.allpts[1]+n.allpts[3])/2,n.edgeType="haystack",n.haystack=!0,this.storeEdgeProjections(r),this.calculateArrowAngles(r),this.recalculateEdgeLabelProjections(r),this.calculateLabelAngles(r)}};nt.findSegmentsPoints=function(t,e){var r=t._private.rscratch,a=t.pstyle("segment-weights"),n=t.pstyle("segment-distances"),i=Math.min(a.pfValue.length,n.pfValue.length);r.edgeType="segments",r.segpts=[];for(var s=0;s<i;s++){var o=a.pfValue[s],l=n.pfValue[s],u=1-o,f=o,h=this.findMidptPtsEtc(t,e),c=h.midptPts,v=h.vectorNormInverse,d={x:c.x1*u+c.x2*f,y:c.y1*u+c.y2*f};r.segpts.push(d.x+v.x*l,d.y+v.y*l)}};nt.findLoopPoints=function(t,e,r,a){var n=t._private.rscratch,i=e.dirCounts,s=e.srcPos,o=t.pstyle("control-point-distances"),l=o?o.pfValue[0]:void 0,u=t.pstyle("loop-direction").pfValue,f=t.pstyle("loop-sweep").pfValue,h=t.pstyle("control-point-step-size").pfValue;n.edgeType="self";var c=r,v=h;a&&(c=0,v=l);var d=u-Math.PI/2,g=d-f/2,p=d+f/2,y=u+"_"+f;c=i[y]===void 0?i[y]=0:++i[y],n.ctrlpts=[s.x+Math.cos(g)*1.4*v*(c/3+1),s.y+Math.sin(g)*1.4*v*(c/3+1),s.x+Math.cos(p)*1.4*v*(c/3+1),s.y+Math.sin(p)*1.4*v*(c/3+1)]};nt.findCompoundLoopPoints=function(t,e,r,a){var n=t._private.rscratch;n.edgeType="compound";var i=e.srcPos,s=e.tgtPos,o=e.srcW,l=e.srcH,u=e.tgtW,f=e.tgtH,h=t.pstyle("control-point-step-size").pfValue,c=t.pstyle("control-point-distances"),v=c?c.pfValue[0]:void 0,d=r,g=h;a&&(d=0,g=v);var p=50,y={x:i.x-o/2,y:i.y-l/2},E={x:s.x-u/2,y:s.y-f/2},m={x:Math.min(y.x,E.x),y:Math.min(y.y,E.y)},T=.5,C=Math.max(T,Math.log(o*.01)),S=Math.max(T,Math.log(u*.01));n.ctrlpts=[m.x,m.y-(1+Math.pow(p,1.12)/100)*g*(d/3+1)*C,m.x-(1+Math.pow(p,1.12)/100)*g*(d/3+1)*S,m.y]};nt.findStraightEdgePoints=function(t){t._private.rscratch.edgeType="straight"};nt.findBezierPoints=function(t,e,r,a,n){var i=t._private.rscratch,s=t.pstyle("control-point-step-size").pfValue,o=t.pstyle("control-point-distances"),l=t.pstyle("control-point-weights"),u=o&&l?Math.min(o.value.length,l.value.length):1,f=o?o.pfValue[0]:void 0,h=l.value[0],c=a;i.edgeType=c?"multibezier":"bezier",i.ctrlpts=[];for(var v=0;v<u;v++){var d=(.5-e.eles.length/2+r)*s*(n?-1:1),g=void 0,p=Eo(d);c&&(f=o?o.pfValue[v]:s,h=l.value[v]),a?g=f:g=f!==void 0?p*f:void 0;var y=g!==void 0?g:d,E=1-h,m=h,T=this.findMidptPtsEtc(t,e),C=T.midptPts,S=T.vectorNormInverse,b={x:C.x1*E+C.x2*m,y:C.y1*E+C.y2*m};i.ctrlpts.push(b.x+S.x*y,b.y+S.y*y)}};nt.findTaxiPoints=function(t,e){var r=t._private.rscratch;r.edgeType="segments";var a="vertical",n="horizontal",i="leftward",s="rightward",o="downward",l="upward",u="auto",f=e.posPts,h=e.srcW,c=e.srcH,v=e.tgtW,d=e.tgtH,g=t.pstyle("edge-distances").value,p=g!=="node-position",y=t.pstyle("taxi-direction").value,E=y,m=t.pstyle("taxi-turn"),T=m.units==="%",C=m.pfValue,S=C<0,b=t.pstyle("taxi-turn-min-distance").pfValue,x=p?(h+v)/2:0,w=p?(c+d)/2:0,D=f.x2-f.x1,A=f.y2-f.y1,L=function(Z,oe){return Z>0?Math.max(Z-oe,0):Math.min(Z+oe,0)},I=L(D,x),O=L(A,w),P=!1;E===u?y=Math.abs(I)>Math.abs(O)?n:a:E===l||E===o?(y=a,P=!0):(E===i||E===s)&&(y=n,P=!0);var R=y===a,M=R?O:I,k=R?A:D,B=Eo(k),G=!1;!(P&&(T||S))&&(E===o&&k<0||E===l&&k>0||E===i&&k>0||E===s&&k<0)&&(B*=-1,M=B*Math.abs(M),G=!0);var F;if(T){var $=C<0?1+C:C;F=$*M}else{var U=C<0?M:0;F=U+C*B}var _=function(Z){return Math.abs(Z)<b||Math.abs(Z)>=Math.abs(M)},Y=_(F),W=_(Math.abs(M)-Math.abs(F)),z=Y||W;if(z&&!G)if(R){var K=Math.abs(k)<=c/2,j=Math.abs(D)<=v/2;if(K){var Q=(f.x1+f.x2)/2,ee=f.y1,ne=f.y2;r.segpts=[Q,ee,Q,ne]}else if(j){var ce=(f.y1+f.y2)/2,te=f.x1,re=f.x2;r.segpts=[te,ce,re,ce]}else r.segpts=[f.x1,f.y2]}else{var ue=Math.abs(k)<=h/2,le=Math.abs(A)<=d/2;if(ue){var se=(f.y1+f.y2)/2,fe=f.x1,xe=f.x2;r.segpts=[fe,se,xe,se]}else if(le){var Ee=(f.x1+f.x2)/2,ge=f.y1,we=f.y2;r.segpts=[Ee,ge,Ee,we]}else r.segpts=[f.x2,f.y1]}else if(R){var H=f.y1+F+(p?c/2*B:0),N=f.x1,V=f.x2;r.segpts=[N,H,V,H]}else{var J=f.x1+F+(p?h/2*B:0),X=f.y1,q=f.y2;r.segpts=[J,X,J,q]}};nt.tryToCorrectInvalidPoints=function(t,e){var r=t._private.rscratch;if(r.edgeType==="bezier"){var a=e.srcPos,n=e.tgtPos,i=e.srcW,s=e.srcH,o=e.tgtW,l=e.tgtH,u=e.srcShape,f=e.tgtShape,h=!ae(r.startX)||!ae(r.startY),c=!ae(r.arrowStartX)||!ae(r.arrowStartY),v=!ae(r.endX)||!ae(r.endY),d=!ae(r.arrowEndX)||!ae(r.arrowEndY),g=3,p=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth,y=g*p,E=nr({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),m=E<y,T=nr({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.endX,y:r.endY}),C=T<y,S=!1;if(h||c||m){S=!0;var b={x:r.ctrlpts[0]-a.x,y:r.ctrlpts[1]-a.y},x=Math.sqrt(b.x*b.x+b.y*b.y),w={x:b.x/x,y:b.y/x},D=Math.max(i,s),A={x:r.ctrlpts[0]+w.x*2*D,y:r.ctrlpts[1]+w.y*2*D},L=u.intersectLine(a.x,a.y,i,s,A.x,A.y,0);m?(r.ctrlpts[0]=r.ctrlpts[0]+w.x*(y-E),r.ctrlpts[1]=r.ctrlpts[1]+w.y*(y-E)):(r.ctrlpts[0]=L[0]+w.x*y,r.ctrlpts[1]=L[1]+w.y*y)}if(v||d||C){S=!0;var I={x:r.ctrlpts[0]-n.x,y:r.ctrlpts[1]-n.y},O=Math.sqrt(I.x*I.x+I.y*I.y),P={x:I.x/O,y:I.y/O},R=Math.max(i,s),M={x:r.ctrlpts[0]+P.x*2*R,y:r.ctrlpts[1]+P.y*2*R},k=f.intersectLine(n.x,n.y,o,l,M.x,M.y,0);C?(r.ctrlpts[0]=r.ctrlpts[0]+P.x*(y-T),r.ctrlpts[1]=r.ctrlpts[1]+P.y*(y-T)):(r.ctrlpts[0]=k[0]+P.x*y,r.ctrlpts[1]=k[1]+P.y*y)}S&&this.findEndpoints(t)}};nt.storeAllpts=function(t){var e=t._private.rscratch;if(e.edgeType==="multibezier"||e.edgeType==="bezier"||e.edgeType==="self"||e.edgeType==="compound"){e.allpts=[],e.allpts.push(e.startX,e.startY);for(var r=0;r+1<e.ctrlpts.length;r+=2)e.allpts.push(e.ctrlpts[r],e.ctrlpts[r+1]),r+3<e.ctrlpts.length&&e.allpts.push((e.ctrlpts[r]+e.ctrlpts[r+2])/2,(e.ctrlpts[r+1]+e.ctrlpts[r+3])/2);e.allpts.push(e.endX,e.endY);var a,n;e.ctrlpts.length/2%2===0?(a=e.allpts.length/2-1,e.midX=e.allpts[a],e.midY=e.allpts[a+1]):(a=e.allpts.length/2-3,n=.5,e.midX=Ye(e.allpts[a],e.allpts[a+2],e.allpts[a+4],n),e.midY=Ye(e.allpts[a+1],e.allpts[a+3],e.allpts[a+5],n))}else if(e.edgeType==="straight")e.allpts=[e.startX,e.startY,e.endX,e.endY],e.midX=(e.startX+e.endX+e.arrowStartX+e.arrowEndX)/4,e.midY=(e.startY+e.endY+e.arrowStartY+e.arrowEndY)/4;else if(e.edgeType==="segments")if(e.allpts=[],e.allpts.push(e.startX,e.startY),e.allpts.push.apply(e.allpts,e.segpts),e.allpts.push(e.endX,e.endY),e.segpts.length%4===0){var i=e.segpts.length/2,s=i-2;e.midX=(e.segpts[s]+e.segpts[i])/2,e.midY=(e.segpts[s+1]+e.segpts[i+1])/2}else{var o=e.segpts.length/2-1;e.midX=e.segpts[o],e.midY=e.segpts[o+1]}};nt.checkForInvalidEdgeWarning=function(t){var e=t[0]._private.rscratch;e.nodesOverlap||ae(e.startX)&&ae(e.startY)&&ae(e.endX)&&ae(e.endY)?e.loggedErr=!1:e.loggedErr||(e.loggedErr=!0,Ne("Edge `"+t.id()+"` has invalid endpoints and so it is impossible to draw. Adjust your edge style (e.g. control points) accordingly or use an alternative edge type. This is expected behaviour when the source node and the target node overlap."))};nt.findEdgeControlPoints=function(t){var e=this;if(!(!t||t.length===0)){for(var r=this,a=r.cy,n=a.hasCompoundNodes(),i={map:new Lt,get:function(b){var x=this.map.get(b[0]);return x!=null?x.get(b[1]):null},set:function(b,x){var w=this.map.get(b[0]);w==null&&(w=new Lt,this.map.set(b[0],w)),w.set(b[1],x)}},s=[],o=[],l=0;l<t.length;l++){var u=t[l],f=u._private,h=u.pstyle("curve-style").value;if(!(u.removed()||!u.takesUpSpace())){if(h==="haystack"){o.push(u);continue}var c=h==="unbundled-bezier"||h==="segments"||h==="straight"||h==="straight-triangle"||h==="taxi",v=h==="unbundled-bezier"||h==="bezier",d=f.source,g=f.target,p=d.poolIndex(),y=g.poolIndex(),E=[p,y].sort(),m=i.get(E);m==null&&(m={eles:[]},i.set(E,m),s.push(E)),m.eles.push(u),c&&(m.hasUnbundled=!0),v&&(m.hasBezier=!0)}}for(var T=function(b){var x=s[b],w=i.get(x),D=void 0;if(!w.hasUnbundled){var A=w.eles[0].parallelEdges().filter(function(we){return we.isBundledBezier()});li(w.eles),A.forEach(function(we){return w.eles.push(we)}),w.eles.sort(function(we,H){return we.poolIndex()-H.poolIndex()})}var L=w.eles[0],I=L.source(),O=L.target();if(I.poolIndex()>O.poolIndex()){var P=I;I=O,O=P}var R=w.srcPos=I.position(),M=w.tgtPos=O.position(),k=w.srcW=I.outerWidth(),B=w.srcH=I.outerHeight(),G=w.tgtW=O.outerWidth(),F=w.tgtH=O.outerHeight(),$=w.srcShape=r.nodeShapes[e.getNodeShape(I)],U=w.tgtShape=r.nodeShapes[e.getNodeShape(O)];w.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var _=0;_<w.eles.length;_++){var Y=w.eles[_],W=Y[0]._private.rscratch,z=Y.pstyle("curve-style").value,K=z==="unbundled-bezier"||z==="segments"||z==="taxi",j=!I.same(Y.source());if(!w.calculatedIntersection&&I!==O&&(w.hasBezier||w.hasUnbundled)){w.calculatedIntersection=!0;var Q=$.intersectLine(R.x,R.y,k,B,M.x,M.y,0),ee=w.srcIntn=Q,ne=U.intersectLine(M.x,M.y,G,F,R.x,R.y,0),ce=w.tgtIntn=ne,te=w.intersectionPts={x1:Q[0],x2:ne[0],y1:Q[1],y2:ne[1]},re=w.posPts={x1:R.x,x2:M.x,y1:R.y,y2:M.y},ue=ne[1]-Q[1],le=ne[0]-Q[0],se=Math.sqrt(le*le+ue*ue),fe=w.vector={x:le,y:ue},xe=w.vectorNorm={x:fe.x/se,y:fe.y/se},Ee={x:-xe.y,y:xe.x};w.nodesOverlap=!ae(se)||U.checkPoint(Q[0],Q[1],0,G,F,M.x,M.y)||$.checkPoint(ne[0],ne[1],0,k,B,R.x,R.y),w.vectorNormInverse=Ee,D={nodesOverlap:w.nodesOverlap,dirCounts:w.dirCounts,calculatedIntersection:!0,hasBezier:w.hasBezier,hasUnbundled:w.hasUnbundled,eles:w.eles,srcPos:M,tgtPos:R,srcW:G,srcH:F,tgtW:k,tgtH:B,srcIntn:ce,tgtIntn:ee,srcShape:U,tgtShape:$,posPts:{x1:re.x2,y1:re.y2,x2:re.x1,y2:re.y1},intersectionPts:{x1:te.x2,y1:te.y2,x2:te.x1,y2:te.y1},vector:{x:-fe.x,y:-fe.y},vectorNorm:{x:-xe.x,y:-xe.y},vectorNormInverse:{x:-Ee.x,y:-Ee.y}}}var ge=j?D:w;W.nodesOverlap=ge.nodesOverlap,W.srcIntn=ge.srcIntn,W.tgtIntn=ge.tgtIntn,n&&(I.isParent()||I.isChild()||O.isParent()||O.isChild())&&(I.parents().anySame(O)||O.parents().anySame(I)||I.same(O)&&I.isParent())?e.findCompoundLoopPoints(Y,ge,_,K):I===O?e.findLoopPoints(Y,ge,_,K):z==="segments"?e.findSegmentsPoints(Y,ge):z==="taxi"?e.findTaxiPoints(Y,ge):z==="straight"||!K&&w.eles.length%2===1&&_===Math.floor(w.eles.length/2)?e.findStraightEdgePoints(Y):e.findBezierPoints(Y,ge,_,K,j),e.findEndpoints(Y),e.tryToCorrectInvalidPoints(Y,ge),e.checkForInvalidEdgeWarning(Y),e.storeAllpts(Y),e.storeEdgeProjections(Y),e.calculateArrowAngles(Y),e.recalculateEdgeLabelProjections(Y),e.calculateLabelAngles(Y)}},C=0;C<s.length;C++)T(C);this.findHaystackPoints(o)}};function ol(t){var e=[];if(t!=null){for(var r=0;r<t.length;r+=2){var a=t[r],n=t[r+1];e.push({x:a,y:n})}return e}}nt.getSegmentPoints=function(t){var e=t[0]._private.rscratch,r=e.edgeType;if(r==="segments")return this.recalculateRenderedStyle(t),ol(e.segpts)};nt.getControlPoints=function(t){var e=t[0]._private.rscratch,r=e.edgeType;if(r==="bezier"||r==="multibezier"||r==="self"||r==="compound")return this.recalculateRenderedStyle(t),ol(e.ctrlpts)};nt.getEdgeMidpoint=function(t){var e=t[0]._private.rscratch;return this.recalculateRenderedStyle(t),{x:e.midX,y:e.midY}};var ya={};ya.manualEndptToPx=function(t,e){var r=this,a=t.position(),n=t.outerWidth(),i=t.outerHeight();if(e.value.length===2){var s=[e.pfValue[0],e.pfValue[1]];return e.units[0]==="%"&&(s[0]=s[0]*n),e.units[1]==="%"&&(s[1]=s[1]*i),s[0]+=a.x,s[1]+=a.y,s}else{var o=e.pfValue[0];o=-Math.PI/2+o;var l=2*Math.max(n,i),u=[a.x+Math.cos(o)*l,a.y+Math.sin(o)*l];return r.nodeShapes[this.getNodeShape(t)].intersectLine(a.x,a.y,n,i,u[0],u[1],0)}};ya.findEndpoints=function(t){var e=this,r,a=t.source()[0],n=t.target()[0],i=a.position(),s=n.position(),o=t.pstyle("target-arrow-shape").value,l=t.pstyle("source-arrow-shape").value,u=t.pstyle("target-distance-from-node").pfValue,f=t.pstyle("source-distance-from-node").pfValue,h=t.pstyle("curve-style").value,c=t._private.rscratch,v=c.edgeType,d=h==="taxi",g=v==="self"||v==="compound",p=v==="bezier"||v==="multibezier"||g,y=v!=="bezier",E=v==="straight"||v==="segments",m=v==="segments",T=p||y||E,C=g||d,S=t.pstyle("source-endpoint"),b=C?"outside-to-node":S.value,x=t.pstyle("target-endpoint"),w=C?"outside-to-node":x.value;c.srcManEndpt=S,c.tgtManEndpt=x;var D,A,L,I;if(p){var O=[c.ctrlpts[0],c.ctrlpts[1]],P=y?[c.ctrlpts[c.ctrlpts.length-2],c.ctrlpts[c.ctrlpts.length-1]]:O;D=P,A=O}else if(E){var R=m?c.segpts.slice(0,2):[s.x,s.y],M=m?c.segpts.slice(c.segpts.length-2):[i.x,i.y];D=M,A=R}if(w==="inside-to-node")r=[s.x,s.y];else if(x.units)r=this.manualEndptToPx(n,x);else if(w==="outside-to-line")r=c.tgtIntn;else if(w==="outside-to-node"||w==="outside-to-node-or-label"?L=D:(w==="outside-to-line"||w==="outside-to-line-or-label")&&(L=[i.x,i.y]),r=e.nodeShapes[this.getNodeShape(n)].intersectLine(s.x,s.y,n.outerWidth(),n.outerHeight(),L[0],L[1],0),w==="outside-to-node-or-label"||w==="outside-to-line-or-label"){var k=n._private.rscratch,B=k.labelWidth,G=k.labelHeight,F=k.labelX,$=k.labelY,U=B/2,_=G/2,Y=n.pstyle("text-valign").value;Y==="top"?$-=_:Y==="bottom"&&($+=_);var W=n.pstyle("text-halign").value;W==="left"?F-=U:W==="right"&&(F+=U);var z=aa(L[0],L[1],[F-U,$-_,F+U,$-_,F+U,$+_,F-U,$+_],s.x,s.y);if(z.length>0){var K=i,j=er(K,Er(r)),Q=er(K,Er(z)),ee=j;if(Q<j&&(r=z,ee=Q),z.length>2){var ne=er(K,{x:z[2],y:z[3]});ne<ee&&(r=[z[2],z[3]])}}}var ce=Da(r,D,e.arrowShapes[o].spacing(t)+u),te=Da(r,D,e.arrowShapes[o].gap(t)+u);if(c.endX=te[0],c.endY=te[1],c.arrowEndX=ce[0],c.arrowEndY=ce[1],b==="inside-to-node")r=[i.x,i.y];else if(S.units)r=this.manualEndptToPx(a,S);else if(b==="outside-to-line")r=c.srcIntn;else if(b==="outside-to-node"||b==="outside-to-node-or-label"?I=A:(b==="outside-to-line"||b==="outside-to-line-or-label")&&(I=[s.x,s.y]),r=e.nodeShapes[this.getNodeShape(a)].intersectLine(i.x,i.y,a.outerWidth(),a.outerHeight(),I[0],I[1],0),b==="outside-to-node-or-label"||b==="outside-to-line-or-label"){var re=a._private.rscratch,ue=re.labelWidth,le=re.labelHeight,se=re.labelX,fe=re.labelY,xe=ue/2,Ee=le/2,ge=a.pstyle("text-valign").value;ge==="top"?fe-=Ee:ge==="bottom"&&(fe+=Ee);var we=a.pstyle("text-halign").value;we==="left"?se-=xe:we==="right"&&(se+=xe);var H=aa(I[0],I[1],[se-xe,fe-Ee,se+xe,fe-Ee,se+xe,fe+Ee,se-xe,fe+Ee],i.x,i.y);if(H.length>0){var N=s,V=er(N,Er(r)),J=er(N,Er(H)),X=V;if(J<V&&(r=[H[0],H[1]],X=J),H.length>2){var q=er(N,{x:H[2],y:H[3]});q<X&&(r=[H[2],H[3]])}}}var he=Da(r,A,e.arrowShapes[l].spacing(t)+f),Z=Da(r,A,e.arrowShapes[l].gap(t)+f);c.startX=Z[0],c.startY=Z[1],c.arrowStartX=he[0],c.arrowStartY=he[1],T&&(!ae(c.startX)||!ae(c.startY)||!ae(c.endX)||!ae(c.endY)?c.badLine=!0:c.badLine=!1)};ya.getSourceEndpoint=function(t){var e=t[0]._private.rscratch;switch(this.recalculateRenderedStyle(t),e.edgeType){case"haystack":return{x:e.haystackPts[0],y:e.haystackPts[1]};default:return{x:e.arrowStartX,y:e.arrowStartY}}};ya.getTargetEndpoint=function(t){var e=t[0]._private.rscratch;switch(this.recalculateRenderedStyle(t),e.edgeType){case"haystack":return{x:e.haystackPts[2],y:e.haystackPts[3]};default:return{x:e.arrowEndX,y:e.arrowEndY}}};var Ei={};function Cy(t,e,r){for(var a=function(u,f,h,c){return Ye(u,f,h,c)},n=e._private,i=n.rstyle.bezierPts,s=0;s<t.bezierProjPcts.length;s++){var o=t.bezierProjPcts[s];i.push({x:a(r[0],r[2],r[4],o),y:a(r[1],r[3],r[5],o)})}}Ei.storeEdgeProjections=function(t){var e=t._private,r=e.rscratch,a=r.edgeType;if(e.rstyle.bezierPts=null,e.rstyle.linePts=null,e.rstyle.haystackPts=null,a==="multibezier"||a==="bezier"||a==="self"||a==="compound"){e.rstyle.bezierPts=[];for(var n=0;n+5<r.allpts.length;n+=4)Cy(this,t,r.allpts.slice(n,n+6))}else if(a==="segments")for(var i=e.rstyle.linePts=[],n=0;n+1<r.allpts.length;n+=2)i.push({x:r.allpts[n],y:r.allpts[n+1]});else if(a==="haystack"){var s=r.haystackPts;e.rstyle.haystackPts=[{x:s[0],y:s[1]},{x:s[2],y:s[3]}]}e.rstyle.arrowWidth=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth};Ei.recalculateEdgeProjections=function(t){this.findEdgeControlPoints(t)};var Ot={};Ot.recalculateNodeLabelProjection=function(t){var e=t.pstyle("label").strValue;if(!Yt(e)){var r,a,n=t._private,i=t.width(),s=t.height(),o=t.padding(),l=t.position(),u=t.pstyle("text-halign").strValue,f=t.pstyle("text-valign").strValue,h=n.rscratch,c=n.rstyle;switch(u){case"left":r=l.x-i/2-o;break;case"right":r=l.x+i/2+o;break;default:r=l.x}switch(f){case"top":a=l.y-s/2-o;break;case"bottom":a=l.y+s/2+o;break;default:a=l.y}h.labelX=r,h.labelY=a,c.labelX=r,c.labelY=a,this.calculateLabelAngles(t),this.applyLabelDimensions(t)}};var ll=function(e,r){var a=Math.atan(r/e);return e===0&&a<0&&(a=a*-1),a},ul=function(e,r){var a=r.x-e.x,n=r.y-e.y;return ll(a,n)},Dy=function(e,r,a,n){var i=ra(0,n-.001,1),s=ra(0,n+.001,1),o=xr(e,r,a,i),l=xr(e,r,a,s);return ul(o,l)};Ot.recalculateEdgeLabelProjections=function(t){var e,r=t._private,a=r.rscratch,n=this,i={mid:t.pstyle("label").strValue,source:t.pstyle("source-label").strValue,target:t.pstyle("target-label").strValue};if(i.mid||i.source||i.target){e={x:a.midX,y:a.midY};var s=function(h,c,v){$t(r.rscratch,h,c,v),$t(r.rstyle,h,c,v)};s("labelX",null,e.x),s("labelY",null,e.y);var o=ll(a.midDispX,a.midDispY);s("labelAutoAngle",null,o);var l=function f(){if(f.cache)return f.cache;for(var h=[],c=0;c+5<a.allpts.length;c+=4){var v={x:a.allpts[c],y:a.allpts[c+1]},d={x:a.allpts[c+2],y:a.allpts[c+3]},g={x:a.allpts[c+4],y:a.allpts[c+5]};h.push({p0:v,p1:d,p2:g,startDist:0,length:0,segments:[]})}var p=r.rstyle.bezierPts,y=n.bezierProjPcts.length;function E(b,x,w,D,A){var L=nr(x,w),I=b.segments[b.segments.length-1],O={p0:x,p1:w,t0:D,t1:A,startDist:I?I.startDist+I.length:0,length:L};b.segments.push(O),b.length+=L}for(var m=0;m<h.length;m++){var T=h[m],C=h[m-1];C&&(T.startDist=C.startDist+C.length),E(T,T.p0,p[m*y],0,n.bezierProjPcts[0]);for(var S=0;S<y-1;S++)E(T,p[m*y+S],p[m*y+S+1],n.bezierProjPcts[S],n.bezierProjPcts[S+1]);E(T,p[m*y+y-1],T.p2,n.bezierProjPcts[y-1],1)}return f.cache=h},u=function(h){var c,v=h==="source";if(i[h]){var d=t.pstyle(h+"-text-offset").pfValue;switch(a.edgeType){case"self":case"compound":case"bezier":case"multibezier":{for(var g=l(),p,y=0,E=0,m=0;m<g.length;m++){for(var T=g[v?m:g.length-1-m],C=0;C<T.segments.length;C++){var S=T.segments[v?C:T.segments.length-1-C],b=m===g.length-1&&C===T.segments.length-1;if(y=E,E+=S.length,E>=d||b){p={cp:T,segment:S};break}}if(p)break}var x=p.cp,w=p.segment,D=(d-y)/w.length,A=w.t1-w.t0,L=v?w.t0+A*D:w.t1-A*D;L=ra(0,L,1),e=xr(x.p0,x.p1,x.p2,L),c=Dy(x.p0,x.p1,x.p2,L);break}case"straight":case"segments":case"haystack":{for(var I=0,O,P,R,M,k=a.allpts.length,B=0;B+3<k&&(v?(R={x:a.allpts[B],y:a.allpts[B+1]},M={x:a.allpts[B+2],y:a.allpts[B+3]}):(R={x:a.allpts[k-2-B],y:a.allpts[k-1-B]},M={x:a.allpts[k-4-B],y:a.allpts[k-3-B]}),O=nr(R,M),P=I,I+=O,!(I>=d));B+=2);var G=d-P,F=G/O;F=ra(0,F,1),e=zd(R,M,F),c=ul(R,M);break}}s("labelX",h,e.x),s("labelY",h,e.y),s("labelAutoAngle",h,c)}};u("source"),u("target"),this.applyLabelDimensions(t)}};Ot.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))};Ot.applyPrefixedLabelDimensions=function(t,e){var r=t._private,a=this.getLabelText(t,e),n=this.calculateLabelDimensions(t,a),i=t.pstyle("line-height").pfValue,s=t.pstyle("text-wrap").strValue,o=xt(r.rscratch,"labelWrapCachedLines",e)||[],l=s!=="wrap"?1:Math.max(o.length,1),u=n.height/l,f=u*i,h=n.width,c=n.height+(l-1)*(i-1)*u;$t(r.rstyle,"labelWidth",e,h),$t(r.rscratch,"labelWidth",e,h),$t(r.rstyle,"labelHeight",e,c),$t(r.rscratch,"labelHeight",e,c),$t(r.rscratch,"labelLineHeight",e,f)};Ot.getLabelText=function(t,e){var r=t._private,a=e?e+"-":"",n=t.pstyle(a+"label").strValue,i=t.pstyle("text-transform").value,s=function(G,F){return F?($t(r.rscratch,G,e,F),F):xt(r.rscratch,G,e)};if(!n)return"";i=="none"||(i=="uppercase"?n=n.toUpperCase():i=="lowercase"&&(n=n.toLowerCase()));var o=t.pstyle("text-wrap").value;if(o==="wrap"){var l=s("labelKey");if(l!=null&&s("labelWrapKey")===l)return s("labelWrapCachedText");for(var u="​",f=n.split(` +`),h=t.pstyle("text-max-width").pfValue,c=t.pstyle("text-overflow-wrap").value,v=c==="anywhere",d=[],g=/[\s\u200b]+/,p=v?"":" ",y=0;y<f.length;y++){var E=f[y],m=this.calculateLabelDimensions(t,E),T=m.width;if(v){var C=E.split("").join(u);E=C}if(T>h){for(var S=E.split(g),b="",x=0;x<S.length;x++){var w=S[x],D=b.length===0?w:b+p+w,A=this.calculateLabelDimensions(t,D),L=A.width;L<=h?b+=w+p:(b&&d.push(b),b=w+p)}b.match(/^[\s\u200b]+$/)||d.push(b)}else d.push(E)}s("labelWrapCachedLines",d),n=s("labelWrapCachedText",d.join(` +`)),s("labelWrapKey",l)}else if(o==="ellipsis"){var I=t.pstyle("text-max-width").pfValue,O="",P="…",R=!1;if(this.calculateLabelDimensions(t,n).width<I)return n;for(var M=0;M<n.length;M++){var k=this.calculateLabelDimensions(t,O+n[M]+P).width;if(k>I)break;O+=n[M],M===n.length-1&&(R=!0)}return R||(O+=P),O}return n};Ot.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,r=t.pstyle("text-halign").strValue;if(e==="auto")if(t.isNode())switch(r){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return e};Ot.calculateLabelDimensions=function(t,e){var r=this,a=ar(e,t._private.labelDimsKey),n=r.labelDimCache||(r.labelDimCache=[]),i=n[a];if(i!=null)return i;var s=0,o=t.pstyle("font-style").strValue,l=t.pstyle("font-size").pfValue,u=t.pstyle("font-family").strValue,f=t.pstyle("font-weight").strValue,h=this.labelCalcCanvas,c=this.labelCalcCanvasContext;if(!h){h=this.labelCalcCanvas=document.createElement("canvas"),c=this.labelCalcCanvasContext=h.getContext("2d");var v=h.style;v.position="absolute",v.left="-9999px",v.top="-9999px",v.zIndex="-1",v.visibility="hidden",v.pointerEvents="none"}c.font="".concat(o," ").concat(f," ").concat(l,"px ").concat(u);for(var d=0,g=0,p=e.split(` +`),y=0;y<p.length;y++){var E=p[y],m=c.measureText(E),T=Math.ceil(m.width),C=l;d=Math.max(T,d),g+=C}return d+=s,g+=s,n[a]={width:d,height:g}};Ot.calculateLabelAngle=function(t,e){var r=t._private,a=r.rscratch,n=t.isEdge(),i=e?e+"-":"",s=t.pstyle(i+"text-rotation"),o=s.strValue;return o==="none"?0:n&&o==="autorotate"?a.labelAutoAngle:o==="autorotate"?0:s.pfValue};Ot.calculateLabelAngles=function(t){var e=this,r=t.isEdge(),a=t._private,n=a.rscratch;n.labelAngle=e.calculateLabelAngle(t),r&&(n.sourceLabelAngle=e.calculateLabelAngle(t,"source"),n.targetLabelAngle=e.calculateLabelAngle(t,"target"))};var fl={},Ms=28,Rs=!1;fl.getNodeShape=function(t){var e=this,r=t.pstyle("shape").value;if(r==="cutrectangle"&&(t.width()<Ms||t.height()<Ms))return Rs||(Ne("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),Rs=!0),"rectangle";if(t.isParent())return r==="rectangle"||r==="roundrectangle"||r==="round-rectangle"||r==="cutrectangle"||r==="cut-rectangle"||r==="barrel"?r:"rectangle";if(r==="polygon"){var a=t.pstyle("shape-polygon-points").value;return e.nodeShapes.makePolygon(a).name}return r};var bn={};bn.registerCalculationListeners=function(){var t=this.cy,e=t.collection(),r=this,a=function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(s),o)for(var l=0;l<s.length;l++){var u=s[l],f=u._private,h=f.rstyle;h.clean=!1,h.cleanConnected=!1}};r.binder(t).on("bounds.* dirty.*",function(s){var o=s.target;a(o)}).on("style.* background.*",function(s){var o=s.target;a(o,!1)});var n=function(s){if(s){var o=r.onUpdateEleCalcsFns;e.cleanStyle();for(var l=0;l<e.length;l++){var u=e[l],f=u._private.rstyle;u.isNode()&&!f.cleanConnected&&(a(u.connectedEdges()),f.cleanConnected=!0)}if(o)for(var h=0;h<o.length;h++){var c=o[h];c(s,e)}r.recalculateRenderedStyle(e),e=t.collection()}};r.flushRenderedStyleQueue=function(){n(!0)},r.beforeRender(n,r.beforeRenderPriorities.eleCalcs)};bn.onUpdateEleCalcs=function(t){var e=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];e.push(t)};bn.recalculateRenderedStyle=function(t,e){var r=function(T){return T._private.rstyle.cleanConnected},a=[],n=[];if(!this.destroyed){e===void 0&&(e=!0);for(var i=0;i<t.length;i++){var s=t[i],o=s._private,l=o.rstyle;s.isEdge()&&(!r(s.source())||!r(s.target()))&&(l.clean=!1),!(e&&l.clean||s.removed())&&s.pstyle("display").value!=="none"&&(o.group==="nodes"?n.push(s):a.push(s),l.clean=!0)}for(var u=0;u<n.length;u++){var f=n[u],h=f._private,c=h.rstyle,v=f.position();this.recalculateNodeLabelProjection(f),c.nodeX=v.x,c.nodeY=v.y,c.nodeW=f.pstyle("width").pfValue,c.nodeH=f.pstyle("height").pfValue}this.recalculateEdgeProjections(a);for(var d=0;d<a.length;d++){var g=a[d],p=g._private,y=p.rstyle,E=p.rscratch;y.srcX=E.arrowStartX,y.srcY=E.arrowStartY,y.tgtX=E.arrowEndX,y.tgtY=E.arrowEndY,y.midX=E.midX,y.midY=E.midY,y.labelAngle=E.labelAngle,y.sourceLabelAngle=E.sourceLabelAngle,y.targetLabelAngle=E.targetLabelAngle}}};var En={};En.updateCachedGrabbedEles=function(){var t=this.cachedZSortedEles;if(t){t.drag=[],t.nondrag=[];for(var e=[],r=0;r<t.length;r++){var a=t[r],n=a._private.rscratch;a.grabbed()&&!a.isParent()?e.push(a):n.inDragLayer?t.drag.push(a):t.nondrag.push(a)}for(var r=0;r<e.length;r++){var a=e[r];t.drag.push(a)}}};En.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null};En.getCachedZSortedEles=function(t){if(t||!this.cachedZSortedEles){var e=this.cy.mutableElements().toArray();e.sort(Zo),e.interactive=e.filter(function(r){return r.interactive()}),this.cachedZSortedEles=e,this.updateCachedGrabbedEles()}else e=this.cachedZSortedEles;return e};var hl={};[fr,ja,nt,ya,Ei,Ot,fl,bn,En].forEach(function(t){de(hl,t)});var vl={};vl.getCachedImage=function(t,e,r){var a=this,n=a.imageCache=a.imageCache||{},i=n[t];if(i)return i.image.complete||i.image.addEventListener("load",r),i.image;i=n[t]=n[t]||{};var s=i.image=new Image;s.addEventListener("load",r),s.addEventListener("error",function(){s.error=!0});var o="data:",l=t.substring(0,o.length).toLowerCase()===o;return l||(e=e==="null"?null:e,s.crossOrigin=e),s.src=t,s};var Br={};Br.registerBinding=function(t,e,r,a){var n=Array.prototype.slice.apply(arguments,[1]),i=this.binder(t);return i.on.apply(i,n)};Br.binder=function(t){var e=this,r=e.cy.window(),a=t===r||t===r.document||t===r.document.body||Hc(t);if(e.supportsPassiveEvents==null){var n=!1;try{var i=Object.defineProperty({},"passive",{get:function(){return n=!0,!0}});r.addEventListener("test",null,i)}catch{}e.supportsPassiveEvents=n}var s=function(l,u,f){var h=Array.prototype.slice.call(arguments);return a&&e.supportsPassiveEvents&&(h[2]={capture:f??!1,passive:!1,once:!1}),e.bindings.push({target:t,args:h}),(t.addEventListener||t.on).apply(t,h),this};return{on:s,addEventListener:s,addListener:s,bind:s}};Br.nodeIsDraggable=function(t){return t&&t.isNode()&&!t.locked()&&t.grabbable()};Br.nodeIsGrabbable=function(t){return this.nodeIsDraggable(t)&&t.interactive()};Br.load=function(){var t=this,e=t.cy.window(),r=function(N){return N.selected()},a=function(N,V,J,X){N==null&&(N=t.cy);for(var q=0;q<V.length;q++){var he=V[q];N.emit({originalEvent:J,type:he,position:X})}},n=function(N){return N.shiftKey||N.metaKey||N.ctrlKey},i=function(N,V){var J=!0;if(t.cy.hasCompoundNodes()&&N&&N.pannable())for(var X=0;V&&X<V.length;X++){var N=V[X];if(N.isNode()&&N.isParent()&&!N.pannable()){J=!1;break}}else J=!0;return J},s=function(N){N[0]._private.grabbed=!0},o=function(N){N[0]._private.grabbed=!1},l=function(N){N[0]._private.rscratch.inDragLayer=!0},u=function(N){N[0]._private.rscratch.inDragLayer=!1},f=function(N){N[0]._private.rscratch.isGrabTarget=!0},h=function(N){N[0]._private.rscratch.isGrabTarget=!1},c=function(N,V){var J=V.addToList,X=J.has(N);!X&&N.grabbable()&&!N.locked()&&(J.merge(N),s(N))},v=function(N,V){if(N.cy().hasCompoundNodes()&&!(V.inDragLayer==null&&V.addToList==null)){var J=N.descendants();V.inDragLayer&&(J.forEach(l),J.connectedEdges().forEach(l)),V.addToList&&c(J,V)}},d=function(N,V){V=V||{};var J=N.cy().hasCompoundNodes();V.inDragLayer&&(N.forEach(l),N.neighborhood().stdFilter(function(X){return!J||X.isEdge()}).forEach(l)),V.addToList&&N.forEach(function(X){c(X,V)}),v(N,V),y(N,{inDragLayer:V.inDragLayer}),t.updateCachedGrabbedEles()},g=d,p=function(N){N&&(t.getCachedZSortedEles().forEach(function(V){o(V),u(V),h(V)}),t.updateCachedGrabbedEles())},y=function(N,V){if(!(V.inDragLayer==null&&V.addToList==null)&&N.cy().hasCompoundNodes()){var J=N.ancestors().orphans();if(!J.same(N)){var X=J.descendants().spawnSelf().merge(J).unmerge(N).unmerge(N.descendants()),q=X.connectedEdges();V.inDragLayer&&(q.forEach(l),X.forEach(l)),V.addToList&&X.forEach(function(he){c(he,V)})}}},E=function(){document.activeElement!=null&&document.activeElement.blur!=null&&document.activeElement.blur()},m=typeof MutationObserver<"u",T=typeof ResizeObserver<"u";m?(t.removeObserver=new MutationObserver(function(H){for(var N=0;N<H.length;N++){var V=H[N],J=V.removedNodes;if(J)for(var X=0;X<J.length;X++){var q=J[X];if(q===t.container){t.destroy();break}}}}),t.container.parentNode&&t.removeObserver.observe(t.container.parentNode,{childList:!0})):t.registerBinding(t.container,"DOMNodeRemoved",function(H){t.destroy()});var C=on.default(function(){t.cy.resize()},100);m&&(t.styleObserver=new MutationObserver(C),t.styleObserver.observe(t.container,{attributes:!0})),t.registerBinding(e,"resize",C),T&&(t.resizeObserver=new ResizeObserver(C),t.resizeObserver.observe(t.container));var S=function(N,V){for(;N!=null;)V(N),N=N.parentNode},b=function(){t.invalidateContainerClientCoordsCache()};S(t.container,function(H){t.registerBinding(H,"transitionend",b),t.registerBinding(H,"animationend",b),t.registerBinding(H,"scroll",b)}),t.registerBinding(t.container,"contextmenu",function(H){H.preventDefault()});var x=function(){return t.selection[4]!==0},w=function(N){for(var V=t.findContainerClientCoords(),J=V[0],X=V[1],q=V[2],he=V[3],Z=N.touches?N.touches:[N],oe=!1,me=0;me<Z.length;me++){var Se=Z[me];if(J<=Se.clientX&&Se.clientX<=J+q&&X<=Se.clientY&&Se.clientY<=X+he){oe=!0;break}}if(!oe)return!1;for(var pe=t.container,Te=N.target,ye=Te.parentNode,be=!1;ye;){if(ye===pe){be=!0;break}ye=ye.parentNode}return!!be};t.registerBinding(t.container,"mousedown",function(N){if(w(N)){N.preventDefault(),E(),t.hoverData.capture=!0,t.hoverData.which=N.which;var V=t.cy,J=[N.clientX,N.clientY],X=t.projectIntoViewport(J[0],J[1]),q=t.selection,he=t.findNearestElements(X[0],X[1],!0,!1),Z=he[0],oe=t.dragData.possibleDragElements;t.hoverData.mdownPos=X,t.hoverData.mdownGPos=J;var me=function(){t.hoverData.tapholdCancelled=!1,clearTimeout(t.hoverData.tapholdTimeout),t.hoverData.tapholdTimeout=setTimeout(function(){if(!t.hoverData.tapholdCancelled){var Fe=t.hoverData.down;Fe?Fe.emit({originalEvent:N,type:"taphold",position:{x:X[0],y:X[1]}}):V.emit({originalEvent:N,type:"taphold",position:{x:X[0],y:X[1]}})}},t.tapholdDuration)};if(N.which==3){t.hoverData.cxtStarted=!0;var Se={originalEvent:N,type:"cxttapstart",position:{x:X[0],y:X[1]}};Z?(Z.activate(),Z.emit(Se),t.hoverData.down=Z):V.emit(Se),t.hoverData.downTime=new Date().getTime(),t.hoverData.cxtDragged=!1}else if(N.which==1){Z&&Z.activate();{if(Z!=null&&t.nodeIsGrabbable(Z)){var pe=function(Fe){return{originalEvent:N,type:Fe,position:{x:X[0],y:X[1]}}},Te=function(Fe){Fe.emit(pe("grab"))};if(f(Z),!Z.selected())oe=t.dragData.possibleDragElements=V.collection(),g(Z,{addToList:oe}),Z.emit(pe("grabon")).emit(pe("grab"));else{oe=t.dragData.possibleDragElements=V.collection();var ye=V.$(function(be){return be.isNode()&&be.selected()&&t.nodeIsGrabbable(be)});d(ye,{addToList:oe}),Z.emit(pe("grabon")),ye.forEach(Te)}t.redrawHint("eles",!0),t.redrawHint("drag",!0)}t.hoverData.down=Z,t.hoverData.downs=he,t.hoverData.downTime=new Date().getTime()}a(Z,["mousedown","tapstart","vmousedown"],N,{x:X[0],y:X[1]}),Z==null?(q[4]=1,t.data.bgActivePosistion={x:X[0],y:X[1]},t.redrawHint("select",!0),t.redraw()):Z.pannable()&&(q[4]=1),me()}q[0]=q[2]=X[0],q[1]=q[3]=X[1]}},!1),t.registerBinding(e,"mousemove",function(N){var V=t.hoverData.capture;if(!(!V&&!w(N))){var J=!1,X=t.cy,q=X.zoom(),he=[N.clientX,N.clientY],Z=t.projectIntoViewport(he[0],he[1]),oe=t.hoverData.mdownPos,me=t.hoverData.mdownGPos,Se=t.selection,pe=null;!t.hoverData.draggingEles&&!t.hoverData.dragging&&!t.hoverData.selecting&&(pe=t.findNearestElement(Z[0],Z[1],!0,!1));var Te=t.hoverData.last,ye=t.hoverData.down,be=[Z[0]-Se[2],Z[1]-Se[3]],Fe=t.dragData.possibleDragElements,Xe;if(me){var pt=he[0]-me[0],yt=pt*pt,We=he[1]-me[1],ct=We*We,it=yt+ct;t.hoverData.isOverThresholdDrag=Xe=it>=t.desktopTapThreshold2}var It=n(N);Xe&&(t.hoverData.tapholdCancelled=!0);var Ft=function(){var Dt=t.hoverData.dragDelta=t.hoverData.dragDelta||[];Dt.length===0?(Dt.push(be[0]),Dt.push(be[1])):(Dt[0]+=be[0],Dt[1]+=be[1])};J=!0,a(pe,["mousemove","vmousemove","tapdrag"],N,{x:Z[0],y:Z[1]});var vr=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||X.emit({originalEvent:N,type:"boxstart",position:{x:Z[0],y:Z[1]}}),Se[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(t.hoverData.which===3){if(Xe){var Jt={originalEvent:N,type:"cxtdrag",position:{x:Z[0],y:Z[1]}};ye?ye.emit(Jt):X.emit(Jt),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||pe!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:N,type:"cxtdragout",position:{x:Z[0],y:Z[1]}}),t.hoverData.cxtOver=pe,pe&&pe.emit({originalEvent:N,type:"cxtdragover",position:{x:Z[0],y:Z[1]}}))}}else if(t.hoverData.dragging){if(J=!0,X.panningEnabled()&&X.userPanningEnabled()){var cr;if(t.hoverData.justStartedPan){var Ea=t.hoverData.mdownPos;cr={x:(Z[0]-Ea[0])*q,y:(Z[1]-Ea[1])*q},t.hoverData.justStartedPan=!1}else cr={x:be[0]*q,y:be[1]*q};X.panBy(cr),X.emit("dragpan"),t.hoverData.dragged=!0}Z=t.projectIntoViewport(N.clientX,N.clientY)}else if(Se[4]==1&&(ye==null||ye.pannable())){if(Xe){if(!t.hoverData.dragging&&X.boxSelectionEnabled()&&(It||!X.panningEnabled()||!X.userPanningEnabled()))vr();else if(!t.hoverData.selecting&&X.panningEnabled()&&X.userPanningEnabled()){var jt=i(ye,t.hoverData.downs);jt&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,Se[4]=0,t.data.bgActivePosistion=Er(oe),t.redrawHint("select",!0),t.redraw())}ye&&ye.pannable()&&ye.active()&&ye.unactivate()}}else{if(ye&&ye.pannable()&&ye.active()&&ye.unactivate(),(!ye||!ye.grabbed())&&pe!=Te&&(Te&&a(Te,["mouseout","tapdragout"],N,{x:Z[0],y:Z[1]}),pe&&a(pe,["mouseover","tapdragover"],N,{x:Z[0],y:Z[1]}),t.hoverData.last=pe),ye)if(Xe){if(X.boxSelectionEnabled()&&It)ye&&ye.grabbed()&&(p(Fe),ye.emit("freeon"),Fe.emit("free"),t.dragData.didDrag&&(ye.emit("dragfreeon"),Fe.emit("dragfree"))),vr();else if(ye&&ye.grabbed()&&t.nodeIsDraggable(ye)){var ot=!t.dragData.didDrag;ot&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||d(Fe,{inDragLayer:!0});var je={x:0,y:0};if(ae(be[0])&&ae(be[1])&&(je.x+=be[0],je.y+=be[1],ot)){var lt=t.hoverData.dragDelta;lt&&ae(lt[0])&&ae(lt[1])&&(je.x+=lt[0],je.y+=lt[1])}t.hoverData.draggingEles=!0,Fe.silentShift(je).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else Ft();J=!0}if(Se[2]=Z[0],Se[3]=Z[1],J)return N.stopPropagation&&N.stopPropagation(),N.preventDefault&&N.preventDefault(),!1}},!1);var D,A,L;t.registerBinding(e,"mouseup",function(N){var V=t.hoverData.capture;if(V){t.hoverData.capture=!1;var J=t.cy,X=t.projectIntoViewport(N.clientX,N.clientY),q=t.selection,he=t.findNearestElement(X[0],X[1],!0,!1),Z=t.dragData.possibleDragElements,oe=t.hoverData.down,me=n(N);if(t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,oe&&oe.unactivate(),t.hoverData.which===3){var Se={originalEvent:N,type:"cxttapend",position:{x:X[0],y:X[1]}};if(oe?oe.emit(Se):J.emit(Se),!t.hoverData.cxtDragged){var pe={originalEvent:N,type:"cxttap",position:{x:X[0],y:X[1]}};oe?oe.emit(pe):J.emit(pe)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(t.hoverData.which===1){if(a(he,["mouseup","tapend","vmouseup"],N,{x:X[0],y:X[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(a(oe,["click","tap","vclick"],N,{x:X[0],y:X[1]}),A=!1,N.timeStamp-L<=J.multiClickDebounceTime()?(D&&clearTimeout(D),A=!0,L=null,a(oe,["dblclick","dbltap","vdblclick"],N,{x:X[0],y:X[1]})):(D=setTimeout(function(){A||a(oe,["oneclick","onetap","voneclick"],N,{x:X[0],y:X[1]})},J.multiClickDebounceTime()),L=N.timeStamp)),oe==null&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!n(N)&&(J.$(r).unselect(["tapunselect"]),Z.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=Z=J.collection()),he==oe&&!t.dragData.didDrag&&!t.hoverData.selecting&&he!=null&&he._private.selectable&&(t.hoverData.dragging||(J.selectionType()==="additive"||me?he.selected()?he.unselect(["tapunselect"]):he.select(["tapselect"]):me||(J.$(r).unmerge(he).unselect(["tapunselect"]),he.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var Te=J.collection(t.getAllInBox(q[0],q[1],q[2],q[3]));t.redrawHint("select",!0),Te.length>0&&t.redrawHint("eles",!0),J.emit({type:"boxend",originalEvent:N,position:{x:X[0],y:X[1]}});var ye=function(Xe){return Xe.selectable()&&!Xe.selected()};J.selectionType()==="additive"||me||J.$(r).unmerge(Te).unselect(),Te.emit("box").stdFilter(ye).select().emit("boxselect"),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!q[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var be=oe&&oe.grabbed();p(Z),be&&(oe.emit("freeon"),Z.emit("free"),t.dragData.didDrag&&(oe.emit("dragfreeon"),Z.emit("dragfree")))}}q[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null}},!1);var I=function(N){if(!t.scrollingPage){var V=t.cy,J=V.zoom(),X=V.pan(),q=t.projectIntoViewport(N.clientX,N.clientY),he=[q[0]*J+X.x,q[1]*J+X.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||x()){N.preventDefault();return}if(V.panningEnabled()&&V.userPanningEnabled()&&V.zoomingEnabled()&&V.userZoomingEnabled()){N.preventDefault(),t.data.wheelZooming=!0,clearTimeout(t.data.wheelTimeout),t.data.wheelTimeout=setTimeout(function(){t.data.wheelZooming=!1,t.redrawHint("eles",!0),t.redraw()},150);var Z;N.deltaY!=null?Z=N.deltaY/-250:N.wheelDeltaY!=null?Z=N.wheelDeltaY/1e3:Z=N.wheelDelta/1e3,Z=Z*t.wheelSensitivity;var oe=N.deltaMode===1;oe&&(Z*=33);var me=V.zoom()*Math.pow(10,Z);N.type==="gesturechange"&&(me=t.gestureStartZoom*N.scale),V.zoom({level:me,renderedPosition:{x:he[0],y:he[1]}}),V.emit(N.type==="gesturechange"?"pinchzoom":"scrollzoom")}}};t.registerBinding(t.container,"wheel",I,!0),t.registerBinding(e,"scroll",function(N){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},!0),t.registerBinding(t.container,"gesturestart",function(N){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||N.preventDefault()},!0),t.registerBinding(t.container,"gesturechange",function(H){t.hasTouchStarted||I(H)},!0),t.registerBinding(t.container,"mouseout",function(N){var V=t.projectIntoViewport(N.clientX,N.clientY);t.cy.emit({originalEvent:N,type:"mouseout",position:{x:V[0],y:V[1]}})},!1),t.registerBinding(t.container,"mouseover",function(N){var V=t.projectIntoViewport(N.clientX,N.clientY);t.cy.emit({originalEvent:N,type:"mouseover",position:{x:V[0],y:V[1]}})},!1);var O,P,R,M,k,B,G,F,$,U,_,Y,W,z=function(N,V,J,X){return Math.sqrt((J-N)*(J-N)+(X-V)*(X-V))},K=function(N,V,J,X){return(J-N)*(J-N)+(X-V)*(X-V)},j;t.registerBinding(t.container,"touchstart",j=function(N){if(t.hasTouchStarted=!0,!!w(N)){E(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var V=t.cy,J=t.touchData.now,X=t.touchData.earlier;if(N.touches[0]){var q=t.projectIntoViewport(N.touches[0].clientX,N.touches[0].clientY);J[0]=q[0],J[1]=q[1]}if(N.touches[1]){var q=t.projectIntoViewport(N.touches[1].clientX,N.touches[1].clientY);J[2]=q[0],J[3]=q[1]}if(N.touches[2]){var q=t.projectIntoViewport(N.touches[2].clientX,N.touches[2].clientY);J[4]=q[0],J[5]=q[1]}if(N.touches[1]){t.touchData.singleTouchMoved=!0,p(t.dragData.touchDragEles);var he=t.findContainerClientCoords();$=he[0],U=he[1],_=he[2],Y=he[3],O=N.touches[0].clientX-$,P=N.touches[0].clientY-U,R=N.touches[1].clientX-$,M=N.touches[1].clientY-U,W=0<=O&&O<=_&&0<=R&&R<=_&&0<=P&&P<=Y&&0<=M&&M<=Y;var Z=V.pan(),oe=V.zoom();k=z(O,P,R,M),B=K(O,P,R,M),G=[(O+R)/2,(P+M)/2],F=[(G[0]-Z.x)/oe,(G[1]-Z.y)/oe];var me=200,Se=me*me;if(B<Se&&!N.touches[2]){var pe=t.findNearestElement(J[0],J[1],!0,!0),Te=t.findNearestElement(J[2],J[3],!0,!0);pe&&pe.isNode()?(pe.activate().emit({originalEvent:N,type:"cxttapstart",position:{x:J[0],y:J[1]}}),t.touchData.start=pe):Te&&Te.isNode()?(Te.activate().emit({originalEvent:N,type:"cxttapstart",position:{x:J[0],y:J[1]}}),t.touchData.start=Te):V.emit({originalEvent:N,type:"cxttapstart",position:{x:J[0],y:J[1]}}),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!0,t.touchData.cxtDragged=!1,t.data.bgActivePosistion=void 0,t.redraw();return}}if(N.touches[2])V.boxSelectionEnabled()&&N.preventDefault();else if(!N.touches[1]){if(N.touches[0]){var ye=t.findNearestElements(J[0],J[1],!0,!0),be=ye[0];if(be!=null&&(be.activate(),t.touchData.start=be,t.touchData.starts=ye,t.nodeIsGrabbable(be))){var Fe=t.dragData.touchDragEles=V.collection(),Xe=null;t.redrawHint("eles",!0),t.redrawHint("drag",!0),be.selected()?(Xe=V.$(function(it){return it.selected()&&t.nodeIsGrabbable(it)}),d(Xe,{addToList:Fe})):g(be,{addToList:Fe}),f(be);var pt=function(It){return{originalEvent:N,type:It,position:{x:J[0],y:J[1]}}};be.emit(pt("grabon")),Xe?Xe.forEach(function(it){it.emit(pt("grab"))}):be.emit(pt("grab"))}a(be,["touchstart","tapstart","vmousedown"],N,{x:J[0],y:J[1]}),be==null&&(t.data.bgActivePosistion={x:q[0],y:q[1]},t.redrawHint("select",!0),t.redraw()),t.touchData.singleTouchMoved=!1,t.touchData.singleTouchStartTime=+new Date,clearTimeout(t.touchData.tapholdTimeout),t.touchData.tapholdTimeout=setTimeout(function(){t.touchData.singleTouchMoved===!1&&!t.pinching&&!t.touchData.selecting&&a(t.touchData.start,["taphold"],N,{x:J[0],y:J[1]})},t.tapholdDuration)}}if(N.touches.length>=1){for(var yt=t.touchData.startPosition=[null,null,null,null,null,null],We=0;We<J.length;We++)yt[We]=X[We]=J[We];var ct=N.touches[0];t.touchData.startGPosition=[ct.clientX,ct.clientY]}}},!1);var Q;t.registerBinding(window,"touchmove",Q=function(N){var V=t.touchData.capture;if(!(!V&&!w(N))){var J=t.selection,X=t.cy,q=t.touchData.now,he=t.touchData.earlier,Z=X.zoom();if(N.touches[0]){var oe=t.projectIntoViewport(N.touches[0].clientX,N.touches[0].clientY);q[0]=oe[0],q[1]=oe[1]}if(N.touches[1]){var oe=t.projectIntoViewport(N.touches[1].clientX,N.touches[1].clientY);q[2]=oe[0],q[3]=oe[1]}if(N.touches[2]){var oe=t.projectIntoViewport(N.touches[2].clientX,N.touches[2].clientY);q[4]=oe[0],q[5]=oe[1]}var me=t.touchData.startGPosition,Se;if(V&&N.touches[0]&&me){for(var pe=[],Te=0;Te<q.length;Te++)pe[Te]=q[Te]-he[Te];var ye=N.touches[0].clientX-me[0],be=ye*ye,Fe=N.touches[0].clientY-me[1],Xe=Fe*Fe,pt=be+Xe;Se=pt>=t.touchTapThreshold2}if(V&&t.touchData.cxt){N.preventDefault();var yt=N.touches[0].clientX-$,We=N.touches[0].clientY-U,ct=N.touches[1].clientX-$,it=N.touches[1].clientY-U,It=K(yt,We,ct,it),Ft=It/B,vr=150,Jt=vr*vr,cr=1.5,Ea=cr*cr;if(Ft>=Ea||It>=Jt){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var jt={originalEvent:N,type:"cxttapend",position:{x:q[0],y:q[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(jt),t.touchData.start=null):X.emit(jt)}}if(V&&t.touchData.cxt){var jt={originalEvent:N,type:"cxtdrag",position:{x:q[0],y:q[1]}};t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(jt):X.emit(jt),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var ot=t.findNearestElement(q[0],q[1],!0,!0);(!t.touchData.cxtOver||ot!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:N,type:"cxtdragout",position:{x:q[0],y:q[1]}}),t.touchData.cxtOver=ot,ot&&ot.emit({originalEvent:N,type:"cxtdragover",position:{x:q[0],y:q[1]}}))}else if(V&&N.touches[2]&&X.boxSelectionEnabled())N.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||X.emit({originalEvent:N,type:"boxstart",position:{x:q[0],y:q[1]}}),t.touchData.selecting=!0,t.touchData.didSelect=!0,J[4]=1,!J||J.length===0||J[0]===void 0?(J[0]=(q[0]+q[2]+q[4])/3,J[1]=(q[1]+q[3]+q[5])/3,J[2]=(q[0]+q[2]+q[4])/3+1,J[3]=(q[1]+q[3]+q[5])/3+1):(J[2]=(q[0]+q[2]+q[4])/3,J[3]=(q[1]+q[3]+q[5])/3),t.redrawHint("select",!0),t.redraw();else if(V&&N.touches[1]&&!t.touchData.didSelect&&X.zoomingEnabled()&&X.panningEnabled()&&X.userZoomingEnabled()&&X.userPanningEnabled()){N.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var je=t.dragData.touchDragEles;if(je){t.redrawHint("drag",!0);for(var lt=0;lt<je.length;lt++){var wa=je[lt]._private;wa.grabbed=!1,wa.rscratch.inDragLayer=!1}}var Dt=t.touchData.start,yt=N.touches[0].clientX-$,We=N.touches[0].clientY-U,ct=N.touches[1].clientX-$,it=N.touches[1].clientY-U,Ti=z(yt,We,ct,it),Rl=Ti/k;if(W){var kl=yt-O,Pl=We-P,Bl=ct-R,Fl=it-M,Gl=(kl+Bl)/2,zl=(Pl+Fl)/2,zr=X.zoom(),wn=zr*Rl,xa=X.pan(),Ci=F[0]*zr+xa.x,Di=F[1]*zr+xa.y,$l={x:-wn/zr*(Ci-xa.x-Gl)+Ci,y:-wn/zr*(Di-xa.y-zl)+Di};if(Dt&&Dt.active()){var je=t.dragData.touchDragEles;p(je),t.redrawHint("drag",!0),t.redrawHint("eles",!0),Dt.unactivate().emit("freeon"),je.emit("free"),t.dragData.didDrag&&(Dt.emit("dragfreeon"),je.emit("dragfree"))}X.viewport({zoom:wn,pan:$l,cancelOnFailedZoom:!0}),X.emit("pinchzoom"),k=Ti,O=yt,P=We,R=ct,M=it,t.pinching=!0}if(N.touches[0]){var oe=t.projectIntoViewport(N.touches[0].clientX,N.touches[0].clientY);q[0]=oe[0],q[1]=oe[1]}if(N.touches[1]){var oe=t.projectIntoViewport(N.touches[1].clientX,N.touches[1].clientY);q[2]=oe[0],q[3]=oe[1]}if(N.touches[2]){var oe=t.projectIntoViewport(N.touches[2].clientX,N.touches[2].clientY);q[4]=oe[0],q[5]=oe[1]}}else if(N.touches[0]&&!t.touchData.didSelect){var mt=t.touchData.start,xn=t.touchData.last,ot;if(!t.hoverData.draggingEles&&!t.swipePanning&&(ot=t.findNearestElement(q[0],q[1],!0,!0)),V&&mt!=null&&N.preventDefault(),V&&mt!=null&&t.nodeIsDraggable(mt))if(Se){var je=t.dragData.touchDragEles,Si=!t.dragData.didDrag;Si&&d(je,{inDragLayer:!0}),t.dragData.didDrag=!0;var $r={x:0,y:0};if(ae(pe[0])&&ae(pe[1])&&($r.x+=pe[0],$r.y+=pe[1],Si)){t.redrawHint("eles",!0);var bt=t.touchData.dragDelta;bt&&ae(bt[0])&&ae(bt[1])&&($r.x+=bt[0],$r.y+=bt[1])}t.hoverData.draggingEles=!0,je.silentShift($r).emit("position drag"),t.redrawHint("drag",!0),t.touchData.startPosition[0]==he[0]&&t.touchData.startPosition[1]==he[1]&&t.redrawHint("eles",!0),t.redraw()}else{var bt=t.touchData.dragDelta=t.touchData.dragDelta||[];bt.length===0?(bt.push(pe[0]),bt.push(pe[1])):(bt[0]+=pe[0],bt[1]+=pe[1])}if(a(mt||ot,["touchmove","tapdrag","vmousemove"],N,{x:q[0],y:q[1]}),(!mt||!mt.grabbed())&&ot!=xn&&(xn&&xn.emit({originalEvent:N,type:"tapdragout",position:{x:q[0],y:q[1]}}),ot&&ot.emit({originalEvent:N,type:"tapdragover",position:{x:q[0],y:q[1]}})),t.touchData.last=ot,V)for(var lt=0;lt<q.length;lt++)q[lt]&&t.touchData.startPosition[lt]&&Se&&(t.touchData.singleTouchMoved=!0);if(V&&(mt==null||mt.pannable())&&X.panningEnabled()&&X.userPanningEnabled()){var Vl=i(mt,t.touchData.starts);Vl&&(N.preventDefault(),t.data.bgActivePosistion||(t.data.bgActivePosistion=Er(t.touchData.startPosition)),t.swipePanning?(X.panBy({x:pe[0]*Z,y:pe[1]*Z}),X.emit("dragpan")):Se&&(t.swipePanning=!0,X.panBy({x:ye*Z,y:Fe*Z}),X.emit("dragpan"),mt&&(mt.unactivate(),t.redrawHint("select",!0),t.touchData.start=null)));var oe=t.projectIntoViewport(N.touches[0].clientX,N.touches[0].clientY);q[0]=oe[0],q[1]=oe[1]}}for(var Te=0;Te<q.length;Te++)he[Te]=q[Te];V&&N.touches.length>0&&!t.hoverData.draggingEles&&!t.swipePanning&&t.data.bgActivePosistion!=null&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1);var ee;t.registerBinding(e,"touchcancel",ee=function(N){var V=t.touchData.start;t.touchData.capture=!1,V&&V.unactivate()});var ne,ce,te,re;if(t.registerBinding(e,"touchend",ne=function(N){var V=t.touchData.start,J=t.touchData.capture;if(J)N.touches.length===0&&(t.touchData.capture=!1),N.preventDefault();else return;var X=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var q=t.cy,he=q.zoom(),Z=t.touchData.now,oe=t.touchData.earlier;if(N.touches[0]){var me=t.projectIntoViewport(N.touches[0].clientX,N.touches[0].clientY);Z[0]=me[0],Z[1]=me[1]}if(N.touches[1]){var me=t.projectIntoViewport(N.touches[1].clientX,N.touches[1].clientY);Z[2]=me[0],Z[3]=me[1]}if(N.touches[2]){var me=t.projectIntoViewport(N.touches[2].clientX,N.touches[2].clientY);Z[4]=me[0],Z[5]=me[1]}V&&V.unactivate();var Se;if(t.touchData.cxt){if(Se={originalEvent:N,type:"cxttapend",position:{x:Z[0],y:Z[1]}},V?V.emit(Se):q.emit(Se),!t.touchData.cxtDragged){var pe={originalEvent:N,type:"cxttap",position:{x:Z[0],y:Z[1]}};V?V.emit(pe):q.emit(pe)}t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,t.redraw();return}if(!N.touches[2]&&q.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var Te=q.collection(t.getAllInBox(X[0],X[1],X[2],X[3]));X[0]=void 0,X[1]=void 0,X[2]=void 0,X[3]=void 0,X[4]=0,t.redrawHint("select",!0),q.emit({type:"boxend",originalEvent:N,position:{x:Z[0],y:Z[1]}});var ye=function(Jt){return Jt.selectable()&&!Jt.selected()};Te.emit("box").stdFilter(ye).select().emit("boxselect"),Te.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(V?.unactivate(),N.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!N.touches[1]){if(!N.touches[0]){if(!N.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var be=t.dragData.touchDragEles;if(V!=null){var Fe=V._private.grabbed;p(be),t.redrawHint("drag",!0),t.redrawHint("eles",!0),Fe&&(V.emit("freeon"),be.emit("free"),t.dragData.didDrag&&(V.emit("dragfreeon"),be.emit("dragfree"))),a(V,["touchend","tapend","vmouseup","tapdragout"],N,{x:Z[0],y:Z[1]}),V.unactivate(),t.touchData.start=null}else{var Xe=t.findNearestElement(Z[0],Z[1],!0,!0);a(Xe,["touchend","tapend","vmouseup","tapdragout"],N,{x:Z[0],y:Z[1]})}var pt=t.touchData.startPosition[0]-Z[0],yt=pt*pt,We=t.touchData.startPosition[1]-Z[1],ct=We*We,it=yt+ct,It=it*he*he;t.touchData.singleTouchMoved||(V||q.$(":selected").unselect(["tapunselect"]),a(V,["tap","vclick"],N,{x:Z[0],y:Z[1]}),ce=!1,N.timeStamp-re<=q.multiClickDebounceTime()?(te&&clearTimeout(te),ce=!0,re=null,a(V,["dbltap","vdblclick"],N,{x:Z[0],y:Z[1]})):(te=setTimeout(function(){ce||a(V,["onetap","voneclick"],N,{x:Z[0],y:Z[1]})},q.multiClickDebounceTime()),re=N.timeStamp)),V!=null&&!t.dragData.didDrag&&V._private.selectable&&It<t.touchTapThreshold2&&!t.pinching&&(q.selectionType()==="single"?(q.$(r).unmerge(V).unselect(["tapunselect"]),V.select(["tapselect"])):V.selected()?V.unselect(["tapunselect"]):V.select(["tapselect"]),t.redrawHint("eles",!0)),t.touchData.singleTouchMoved=!0}}}for(var Ft=0;Ft<Z.length;Ft++)oe[Ft]=Z[Ft];t.dragData.didDrag=!1,N.touches.length===0&&(t.touchData.dragDelta=[],t.touchData.startPosition=[null,null,null,null,null,null],t.touchData.startGPosition=null,t.touchData.didSelect=!1),N.touches.length<2&&(N.touches.length===1&&(t.touchData.startGPosition=[N.touches[0].clientX,N.touches[0].clientY]),t.pinching=!1,t.redrawHint("eles",!0),t.redraw())},!1),typeof TouchEvent>"u"){var ue=[],le=function(N){return{clientX:N.clientX,clientY:N.clientY,force:1,identifier:N.pointerId,pageX:N.pageX,pageY:N.pageY,radiusX:N.width/2,radiusY:N.height/2,screenX:N.screenX,screenY:N.screenY,target:N.target}},se=function(N){return{event:N,touch:le(N)}},fe=function(N){ue.push(se(N))},xe=function(N){for(var V=0;V<ue.length;V++){var J=ue[V];if(J.event.pointerId===N.pointerId){ue.splice(V,1);return}}},Ee=function(N){var V=ue.filter(function(J){return J.event.pointerId===N.pointerId})[0];V.event=N,V.touch=le(N)},ge=function(N){N.touches=ue.map(function(V){return V.touch})},we=function(N){return N.pointerType==="mouse"||N.pointerType===4};t.registerBinding(t.container,"pointerdown",function(H){we(H)||(H.preventDefault(),fe(H),ge(H),j(H))}),t.registerBinding(t.container,"pointerup",function(H){we(H)||(xe(H),ge(H),ne(H))}),t.registerBinding(t.container,"pointercancel",function(H){we(H)||(xe(H),ge(H),ee(H))}),t.registerBinding(t.container,"pointermove",function(H){we(H)||(H.preventDefault(),Ee(H),ge(H),Q(H))})}};var Pt={};Pt.generatePolygon=function(t,e){return this.nodeShapes[t]={renderer:this,name:t,points:e,draw:function(a,n,i,s,o){this.renderer.nodeShapeImpl("polygon",a,n,i,s,o,this.points)},intersectLine:function(a,n,i,s,o,l,u){return aa(o,l,this.points,a,n,i/2,s/2,u)},checkPoint:function(a,n,i,s,o,l,u){return Rt(a,n,this.points,l,u,s,o,[0,-1],i)}}};Pt.generateEllipse=function(){return this.nodeShapes.ellipse={renderer:this,name:"ellipse",draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,s,o){return Jd(i,s,e,r,a/2+o,n/2+o)},checkPoint:function(e,r,a,n,i,s,o){return rr(e,r,n,i,s,o,a)}}};Pt.generateRoundPolygon=function(t,e){for(var r=new Array(e.length*2),a=0;a<e.length/2;a++){var n=a*2,i=void 0;a<e.length/2-1?i=(a+1)*2:i=0,r[a*4]=e[n],r[a*4+1]=e[n+1];var s=e[i]-e[n],o=e[i+1]-e[n+1],l=Math.sqrt(s*s+o*o);r[a*4+2]=s/l,r[a*4+3]=o/l}return this.nodeShapes[t]={renderer:this,name:t,points:r,draw:function(f,h,c,v,d){this.renderer.nodeShapeImpl("round-polygon",f,h,c,v,d,this.points)},intersectLine:function(f,h,c,v,d,g,p){return jd(d,g,this.points,f,h,c,v)},checkPoint:function(f,h,c,v,d,g,p){return Qd(f,h,this.points,g,p,v,d)}}};Pt.generateRoundRectangle=function(){return this.nodeShapes["round-rectangle"]=this.nodeShapes.roundrectangle={renderer:this,name:"round-rectangle",points:st(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,s,o){return To(i,s,e,r,a,n,o)},checkPoint:function(e,r,a,n,i,s,o){var l=da(n,i),u=l*2;return!!(Rt(e,r,this.points,s,o,n,i-u,[0,-1],a)||Rt(e,r,this.points,s,o,n-u,i,[0,-1],a)||rr(e,r,u,u,s-n/2+l,o-i/2+l,a)||rr(e,r,u,u,s+n/2-l,o-i/2+l,a)||rr(e,r,u,u,s+n/2-l,o+i/2-l,a)||rr(e,r,u,u,s-n/2+l,o+i/2-l,a))}}};Pt.generateCutRectangle=function(){return this.nodeShapes["cut-rectangle"]=this.nodeShapes.cutrectangle={renderer:this,name:"cut-rectangle",cornerLength:Do(),points:st(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},generateCutTrianglePts:function(e,r,a,n){var i=this.cornerLength,s=r/2,o=e/2,l=a-o,u=a+o,f=n-s,h=n+s;return{topLeft:[l,f+i,l+i,f,l+i,f+i],topRight:[u-i,f,u,f+i,u-i,f+i],bottomRight:[u,h-i,u-i,h,u-i,h-i],bottomLeft:[l+i,h,l,h-i,l+i,h-i]}},intersectLine:function(e,r,a,n,i,s,o){var l=this.generateCutTrianglePts(a+2*o,n+2*o,e,r),u=[].concat.apply([],[l.topLeft.splice(0,4),l.topRight.splice(0,4),l.bottomRight.splice(0,4),l.bottomLeft.splice(0,4)]);return aa(i,s,u,e,r)},checkPoint:function(e,r,a,n,i,s,o){if(Rt(e,r,this.points,s,o,n,i-2*this.cornerLength,[0,-1],a)||Rt(e,r,this.points,s,o,n-2*this.cornerLength,i,[0,-1],a))return!0;var l=this.generateCutTrianglePts(n,i,s,o);return ut(e,r,l.topLeft)||ut(e,r,l.topRight)||ut(e,r,l.bottomRight)||ut(e,r,l.bottomLeft)}}};Pt.generateBarrel=function(){return this.nodeShapes.barrel={renderer:this,name:"barrel",points:st(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,s,o){var l=.15,u=.5,f=.85,h=this.generateBarrelBezierPts(a+2*o,n+2*o,e,r),c=function(g){var p=xr({x:g[0],y:g[1]},{x:g[2],y:g[3]},{x:g[4],y:g[5]},l),y=xr({x:g[0],y:g[1]},{x:g[2],y:g[3]},{x:g[4],y:g[5]},u),E=xr({x:g[0],y:g[1]},{x:g[2],y:g[3]},{x:g[4],y:g[5]},f);return[g[0],g[1],p.x,p.y,y.x,y.y,E.x,E.y,g[4],g[5]]},v=[].concat(c(h.topLeft),c(h.topRight),c(h.bottomRight),c(h.bottomLeft));return aa(i,s,v,e,r)},generateBarrelBezierPts:function(e,r,a,n){var i=r/2,s=e/2,o=a-s,l=a+s,u=n-i,f=n+i,h=zn(e,r),c=h.heightOffset,v=h.widthOffset,d=h.ctrlPtOffsetPct*e,g={topLeft:[o,u+c,o+d,u,o+v,u],topRight:[l-v,u,l-d,u,l,u+c],bottomRight:[l,f-c,l-d,f,l-v,f],bottomLeft:[o+v,f,o+d,f,o,f-c]};return g.topLeft.isTop=!0,g.topRight.isTop=!0,g.bottomLeft.isBottom=!0,g.bottomRight.isBottom=!0,g},checkPoint:function(e,r,a,n,i,s,o){var l=zn(n,i),u=l.heightOffset,f=l.widthOffset;if(Rt(e,r,this.points,s,o,n,i-2*u,[0,-1],a)||Rt(e,r,this.points,s,o,n-2*f,i,[0,-1],a))return!0;for(var h=this.generateBarrelBezierPts(n,i,s,o),c=function(b,x,w){var D=w[4],A=w[2],L=w[0],I=w[5],O=w[1],P=Math.min(D,L),R=Math.max(D,L),M=Math.min(I,O),k=Math.max(I,O);if(P<=b&&b<=R&&M<=x&&x<=k){var B=eg(D,A,L),G=Wd(B[0],B[1],B[2],b),F=G.filter(function($){return 0<=$&&$<=1});if(F.length>0)return F[0]}return null},v=Object.keys(h),d=0;d<v.length;d++){var g=v[d],p=h[g],y=c(e,r,p);if(y!=null){var E=p[5],m=p[3],T=p[1],C=Ye(E,m,T,y);if(p.isTop&&C<=r||p.isBottom&&r<=C)return!0}}return!1}}};Pt.generateBottomRoundrectangle=function(){return this.nodeShapes["bottom-round-rectangle"]=this.nodeShapes.bottomroundrectangle={renderer:this,name:"bottom-round-rectangle",points:st(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,s,o){var l=e-(a/2+o),u=r-(n/2+o),f=u,h=e+(a/2+o),c=_t(i,s,e,r,l,u,h,f,!1);return c.length>0?c:To(i,s,e,r,a,n,o)},checkPoint:function(e,r,a,n,i,s,o){var l=da(n,i),u=2*l;if(Rt(e,r,this.points,s,o,n,i-u,[0,-1],a)||Rt(e,r,this.points,s,o,n-u,i,[0,-1],a))return!0;var f=n/2+2*a,h=i/2+2*a,c=[s-f,o-h,s-f,o,s+f,o,s+f,o-h];return!!(ut(e,r,c)||rr(e,r,u,u,s+n/2-l,o+i/2-l,a)||rr(e,r,u,u,s-n/2+l,o+i/2-l,a))}}};Pt.registerNodeShapes=function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",st(3,0)),this.generateRoundPolygon("round-triangle",st(3,0)),this.generatePolygon("rectangle",st(4,0)),t.square=t.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r),this.generateRoundPolygon("round-diamond",r)}this.generatePolygon("pentagon",st(5,0)),this.generateRoundPolygon("round-pentagon",st(5,0)),this.generatePolygon("hexagon",st(6,0)),this.generateRoundPolygon("round-hexagon",st(6,0)),this.generatePolygon("heptagon",st(7,0)),this.generateRoundPolygon("round-heptagon",st(7,0)),this.generatePolygon("octagon",st(8,0)),this.generateRoundPolygon("round-octagon",st(8,0));var a=new Array(20);{var n=Gn(5,0),i=Gn(5,Math.PI/5),s=.5*(3-Math.sqrt(5));s*=1.57;for(var o=0;o<i.length/2;o++)i[o*2]*=s,i[o*2+1]*=s;for(var o=0;o<20/4;o++)a[o*4]=n[o*2],a[o*4+1]=n[o*2+1],a[o*4+2]=i[o*2],a[o*4+3]=i[o*2+1]}a=Co(a),this.generatePolygon("star",a),this.generatePolygon("vee",[-1,-1,0,-.333,1,-1,0,1]),this.generatePolygon("rhomboid",[-1,-1,.333,-1,1,1,-.333,1]),this.generatePolygon("right-rhomboid",[-.333,-1,1,-1,.333,1,-1,1]),this.nodeShapes.concavehexagon=this.generatePolygon("concave-hexagon",[-1,-.95,-.75,0,-1,.95,1,.95,.75,0,1,-.95]);{var l=[-1,-1,.25,-1,1,0,.25,1,-1,1];this.generatePolygon("tag",l),this.generateRoundPolygon("round-tag",l)}t.makePolygon=function(u){var f=u.join("$"),h="polygon-"+f,c;return(c=this[h])?c:e.generatePolygon(h,u)}};var ma={};ma.timeToRender=function(){return this.redrawTotalTime/this.redrawCount};ma.redraw=function(t){t=t||mo();var e=this;e.averageRedrawTime===void 0&&(e.averageRedrawTime=0),e.lastRedrawTime===void 0&&(e.lastRedrawTime=0),e.lastDrawTime===void 0&&(e.lastDrawTime=0),e.requestedFrame=!0,e.renderOptions=t};ma.beforeRender=function(t,e){if(!this.destroyed){e==null&&Ge("Priority is not optional for beforeRender");var r=this.beforeRenderCallbacks;r.push({fn:t,priority:e}),r.sort(function(a,n){return n.priority-a.priority})}};var ks=function(e,r,a){for(var n=e.beforeRenderCallbacks,i=0;i<n.length;i++)n[i].fn(r,a)};ma.startRenderLoop=function(){var t=this,e=t.cy;if(!t.renderLoopStarted){t.renderLoopStarted=!0;var r=function a(n){if(!t.destroyed){if(!e.batching())if(t.requestedFrame&&!t.skipFrame){ks(t,!0,n);var i=Mt();t.render(t.renderOptions);var s=t.lastDrawTime=Mt();t.averageRedrawTime===void 0&&(t.averageRedrawTime=s-i),t.redrawCount===void 0&&(t.redrawCount=0),t.redrawCount++,t.redrawTotalTime===void 0&&(t.redrawTotalTime=0);var o=s-i;t.redrawTotalTime+=o,t.lastRedrawTime=o,t.averageRedrawTime=t.averageRedrawTime/2+o/2,t.requestedFrame=!1}else ks(t,!1,n);t.skipFrame=!1,Ya(a)}};Ya(r)}};var Sy=function(e){this.init(e)},cl=Sy,Fr=cl.prototype;Fr.clientFunctions=["redrawHint","render","renderTo","matchCanvasSize","nodeShapeImpl","arrowShapeImpl"];Fr.init=function(t){var e=this;e.options=t,e.cy=t.cy;var r=e.container=t.cy.container(),a=e.cy.window();if(a){var n=a.document,i=n.head,s="__________cytoscape_stylesheet",o="__________cytoscape_container",l=n.getElementById(s)!=null;if(r.className.indexOf(o)<0&&(r.className=(r.className||"")+" "+o),!l){var u=n.createElement("style");u.id=s,u.textContent="."+o+" { position: relative; }",i.insertBefore(u,i.children[0])}var f=a.getComputedStyle(r),h=f.getPropertyValue("position");h==="static"&&Ne("A Cytoscape container has style position:static and so can not use UI extensions properly")}e.selection=[void 0,void 0,void 0,void 0,0],e.bezierProjPcts=[.05,.225,.4,.5,.6,.775,.95],e.hoverData={down:null,last:null,downTime:null,triggerMode:null,dragging:!1,initialPan:[null,null],capture:!1},e.dragData={possibleDragElements:[]},e.touchData={start:null,capture:!1,startPosition:[null,null,null,null,null,null],singleTouchStartTime:null,singleTouchMoved:!0,now:[null,null,null,null,null,null],earlier:[null,null,null,null,null,null]},e.redraws=0,e.showFps=t.showFps,e.debug=t.debug,e.hideEdgesOnViewport=t.hideEdgesOnViewport,e.textureOnViewport=t.textureOnViewport,e.wheelSensitivity=t.wheelSensitivity,e.motionBlurEnabled=t.motionBlur,e.forcedPixelRatio=ae(t.pixelRatio)?t.pixelRatio:null,e.motionBlur=t.motionBlur,e.motionBlurOpacity=t.motionBlurOpacity,e.motionBlurTransparency=1-e.motionBlurOpacity,e.motionBlurPxRatio=1,e.mbPxRBlurry=1,e.minMbLowQualFrames=4,e.fullQualityMb=!1,e.clearedForMotionBlur=[],e.desktopTapThreshold=t.desktopTapThreshold,e.desktopTapThreshold2=t.desktopTapThreshold*t.desktopTapThreshold,e.touchTapThreshold=t.touchTapThreshold,e.touchTapThreshold2=t.touchTapThreshold*t.touchTapThreshold,e.tapholdDuration=500,e.bindings=[],e.beforeRenderCallbacks=[],e.beforeRenderPriorities={animations:400,eleCalcs:300,eleTxrDeq:200,lyrTxrDeq:150,lyrTxrSkip:100},e.registerNodeShapes(),e.registerArrowShapes(),e.registerCalculationListeners()};Fr.notify=function(t,e){var r=this,a=r.cy;if(!this.destroyed){if(t==="init"){r.load();return}if(t==="destroy"){r.destroy();return}(t==="add"||t==="remove"||t==="move"&&a.hasCompoundNodes()||t==="load"||t==="zorder"||t==="mount")&&r.invalidateCachedZSortedEles(),t==="viewport"&&r.redrawHint("select",!0),(t==="load"||t==="resize"||t==="mount")&&(r.invalidateContainerClientCoordsCache(),r.matchCanvasSize(r.container)),r.redrawHint("eles",!0),r.redrawHint("drag",!0),this.startRenderLoop(),this.redraw()}};Fr.destroy=function(){var t=this;t.destroyed=!0,t.cy.stopAnimationLoop();for(var e=0;e<t.bindings.length;e++){var r=t.bindings[e],a=r,n=a.target;(n.off||n.removeEventListener).apply(n,a.args)}if(t.bindings=[],t.beforeRenderCallbacks=[],t.onUpdateEleCalcsFns=[],t.removeObserver&&t.removeObserver.disconnect(),t.styleObserver&&t.styleObserver.disconnect(),t.resizeObserver&&t.resizeObserver.disconnect(),t.labelCalcDiv)try{document.body.removeChild(t.labelCalcDiv)}catch{}};Fr.isHeadless=function(){return!1};[bi,hl,vl,Br,Pt,ma].forEach(function(t){de(Fr,t)});var Rn=1e3/60,dl={setupDequeueing:function(e){return function(){var a=this,n=this.renderer;if(!a.dequeueingSetup){a.dequeueingSetup=!0;var i=on.default(function(){n.redrawHint("eles",!0),n.redrawHint("drag",!0),n.redraw()},e.deqRedrawThreshold),s=function(u,f){var h=Mt(),c=n.averageRedrawTime,v=n.lastRedrawTime,d=[],g=n.cy.extent(),p=n.getPixelRatio();for(u||n.flushRenderedStyleQueue();;){var y=Mt(),E=y-h,m=y-f;if(v<Rn){var T=Rn-(u?c:0);if(m>=e.deqFastCost*T)break}else if(u){if(E>=e.deqCost*v||E>=e.deqAvgCost*c)break}else if(m>=e.deqNoDrawCost*Rn)break;var C=e.deq(a,p,g);if(C.length>0)for(var S=0;S<C.length;S++)d.push(C[S]);else break}d.length>0&&(e.onDeqd(a,d),!u&&e.shouldRedraw(a,d,p,g)&&i())},o=e.priority||oi;n.beforeRender(s,o(a))}}}},Ly=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xa;ri(this,t),this.idsByKey=new Lt,this.keyForId=new Lt,this.cachesByLvl=new Lt,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=r}return ai(t,[{key:"getIdsFor",value:function(r){r==null&&Ge("Can not get id list for null key");var a=this.idsByKey,n=this.idsByKey.get(r);return n||(n=new Mr,a.set(r,n)),n}},{key:"addIdForKey",value:function(r,a){r!=null&&this.getIdsFor(r).add(a)}},{key:"deleteIdForKey",value:function(r,a){r!=null&&this.getIdsFor(r).delete(a)}},{key:"getNumberOfIdsForKey",value:function(r){return r==null?0:this.getIdsFor(r).size}},{key:"updateKeyMappingFor",value:function(r){var a=r.id(),n=this.keyForId.get(a),i=this.getKey(r);this.deleteIdForKey(n,a),this.addIdForKey(i,a),this.keyForId.set(a,i)}},{key:"deleteKeyMappingFor",value:function(r){var a=r.id(),n=this.keyForId.get(a);this.deleteIdForKey(n,a),this.keyForId.delete(a)}},{key:"keyHasChangedFor",value:function(r){var a=r.id(),n=this.keyForId.get(a),i=this.getKey(r);return n!==i}},{key:"isInvalid",value:function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)}},{key:"getCachesAt",value:function(r){var a=this.cachesByLvl,n=this.lvls,i=a.get(r);return i||(i=new Lt,a.set(r,i),n.push(r)),i}},{key:"getCache",value:function(r,a){return this.getCachesAt(a).get(r)}},{key:"get",value:function(r,a){var n=this.getKey(r),i=this.getCache(n,a);return i!=null&&this.updateKeyMappingFor(r),i}},{key:"getForCachedKey",value:function(r,a){var n=this.keyForId.get(r.id()),i=this.getCache(n,a);return i}},{key:"hasCache",value:function(r,a){return this.getCachesAt(a).has(r)}},{key:"has",value:function(r,a){var n=this.getKey(r);return this.hasCache(n,a)}},{key:"setCache",value:function(r,a,n){n.key=r,this.getCachesAt(a).set(r,n)}},{key:"set",value:function(r,a,n){var i=this.getKey(r);this.setCache(i,a,n),this.updateKeyMappingFor(r)}},{key:"deleteCache",value:function(r,a){this.getCachesAt(a).delete(r)}},{key:"delete",value:function(r,a){var n=this.getKey(r);this.deleteCache(n,a)}},{key:"invalidateKey",value:function(r){var a=this;this.lvls.forEach(function(n){return a.deleteCache(r,n)})}},{key:"invalidate",value:function(r){var a=r.id(),n=this.keyForId.get(a);this.deleteKeyMappingFor(r);var i=this.doesEleInvalidateKey(r);return i&&this.invalidateKey(n),i||this.getNumberOfIdsForKey(n)===0}}]),t}(),Ps=25,Ra=50,Va=-4,Xn=3,Ay=7.99,Oy=8,Ny=1024,Iy=1024,My=1024,Ry=.2,ky=.8,Py=10,By=.15,Fy=.1,Gy=.9,zy=.9,$y=100,Vy=1,wr={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},_y=Qe({getKey:null,doesEleInvalidateKey:Xa,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:go,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),Kr=function(e,r){var a=this;a.renderer=e,a.onDequeues=[];var n=_y(r);de(a,n),a.lookup=new Ly(n.getKey,n.doesEleInvalidateKey),a.setupDequeueing()},He=Kr.prototype;He.reasons=wr;He.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]};He.getRetiredTextureQueue=function(t){var e=this,r=e.eleImgCaches.retired=e.eleImgCaches.retired||{},a=r[t]=r[t]||[];return a};He.getElementQueue=function(){var t=this,e=t.eleCacheQueue=t.eleCacheQueue||new ha.default(function(r,a){return a.reqs-r.reqs});return e};He.getElementKeyToQueue=function(){var t=this,e=t.eleKeyToCacheQueue=t.eleKeyToCacheQueue||{};return e};He.getElement=function(t,e,r,a,n){var i=this,s=this.renderer,o=s.cy.zoom(),l=this.lookup;if(!e||e.w===0||e.h===0||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed()||!i.allowEdgeTxrCaching&&t.isEdge()||!i.allowParentTxrCaching&&t.isParent())return null;if(a==null&&(a=Math.ceil(ui(o*r))),a<Va)a=Va;else if(o>=Ay||a>Xn)return null;var u=Math.pow(2,a),f=e.h*u,h=e.w*u,c=s.eleTextBiggerThanMin(t,u);if(!this.isVisible(t,c))return null;var v=l.get(t,a);if(v&&v.invalidated&&(v.invalidated=!1,v.texture.invalidatedWidth-=v.width),v)return v;var d;if(f<=Ps?d=Ps:f<=Ra?d=Ra:d=Math.ceil(f/Ra)*Ra,f>My||h>Iy)return null;var g=i.getTextureQueue(d),p=g[g.length-2],y=function(){return i.recycleTexture(d,h)||i.addTexture(d,h)};p||(p=g[g.length-1]),p||(p=y()),p.width-p.usedWidth<h&&(p=y());for(var E=function(R){return R&&R.scaledLabelShown===c},m=n&&n===wr.dequeue,T=n&&n===wr.highQuality,C=n&&n===wr.downscale,S,b=a+1;b<=Xn;b++){var x=l.get(t,b);if(x){S=x;break}}var w=S&&S.level===a+1?S:null,D=function(){p.context.drawImage(w.texture.canvas,w.x,0,w.width,w.height,p.usedWidth,0,h,f)};if(p.context.setTransform(1,0,0,1,0,0),p.context.clearRect(p.usedWidth,0,h,d),E(w))D();else if(E(S))if(T){for(var A=S.level;A>a;A--)w=i.getElement(t,e,r,A,wr.downscale);D()}else return i.queueElement(t,S.level-1),S;else{var L;if(!m&&!T&&!C)for(var I=a-1;I>=Va;I--){var O=l.get(t,I);if(O){L=O;break}}if(E(L))return i.queueElement(t,a),L;p.context.translate(p.usedWidth,0),p.context.scale(u,u),this.drawElement(p.context,t,e,c,!1),p.context.scale(1/u,1/u),p.context.translate(-p.usedWidth,0)}return v={x:p.usedWidth,texture:p,level:a,scale:u,width:h,height:f,scaledLabelShown:c},p.usedWidth+=Math.ceil(h+Oy),p.eleCaches.push(v),l.set(t,a,v),i.checkTextureFullness(p),v};He.invalidateElements=function(t){for(var e=0;e<t.length;e++)this.invalidateElement(t[e])};He.invalidateElement=function(t){var e=this,r=e.lookup,a=[],n=r.isInvalid(t);if(n){for(var i=Va;i<=Xn;i++){var s=r.getForCachedKey(t,i);s&&a.push(s)}var o=r.invalidate(t);if(o)for(var l=0;l<a.length;l++){var u=a[l],f=u.texture;f.invalidatedWidth+=u.width,u.invalidated=!0,e.checkTextureUtility(f)}e.removeFromQueue(t)}};He.checkTextureUtility=function(t){t.invalidatedWidth>=Ry*t.width&&this.retireTexture(t)};He.checkTextureFullness=function(t){var e=this,r=e.getTextureQueue(t.height);t.usedWidth/t.width>ky&&t.fullnessChecks>=Py?Xt(r,t):t.fullnessChecks++};He.retireTexture=function(t){var e=this,r=t.height,a=e.getTextureQueue(r),n=this.lookup;Xt(a,t),t.retired=!0;for(var i=t.eleCaches,s=0;s<i.length;s++){var o=i[s];n.deleteCache(o.key,o.level)}li(i);var l=e.getRetiredTextureQueue(r);l.push(t)};He.addTexture=function(t,e){var r=this,a=r.getTextureQueue(t),n={};return a.push(n),n.eleCaches=[],n.height=t,n.width=Math.max(Ny,e),n.usedWidth=0,n.invalidatedWidth=0,n.fullnessChecks=0,n.canvas=r.renderer.makeOffscreenCanvas(n.width,n.height),n.context=n.canvas.getContext("2d"),n};He.recycleTexture=function(t,e){for(var r=this,a=r.getTextureQueue(t),n=r.getRetiredTextureQueue(t),i=0;i<n.length;i++){var s=n[i];if(s.width>=e)return s.retired=!1,s.usedWidth=0,s.invalidatedWidth=0,s.fullnessChecks=0,li(s.eleCaches),s.context.setTransform(1,0,0,1,0,0),s.context.clearRect(0,0,s.width,s.height),Xt(n,s),a.push(s),s}};He.queueElement=function(t,e){var r=this,a=r.getElementQueue(),n=r.getElementKeyToQueue(),i=this.getKey(t),s=n[i];if(s)s.level=Math.max(s.level,e),s.eles.merge(t),s.reqs++,a.updateItem(s);else{var o={eles:t.spawn().merge(t),level:e,reqs:1,key:i};a.push(o),n[i]=o}};He.dequeue=function(t){for(var e=this,r=e.getElementQueue(),a=e.getElementKeyToQueue(),n=[],i=e.lookup,s=0;s<Vy&&r.size()>0;s++){var o=r.pop(),l=o.key,u=o.eles[0],f=i.hasCache(u,o.level);if(a[l]=null,f)continue;n.push(o);var h=e.getBoundingBox(u);e.getElement(u,h,t,o.level,wr.dequeue)}return n};He.removeFromQueue=function(t){var e=this,r=e.getElementQueue(),a=e.getElementKeyToQueue(),n=this.getKey(t),i=a[n];i!=null&&(i.eles.length===1?(i.reqs=si,r.updateItem(i),r.pop(),a[n]=null):i.eles.unmerge(t))};He.onDequeue=function(t){this.onDequeues.push(t)};He.offDequeue=function(t){Xt(this.onDequeues,t)};He.setupDequeueing=dl.setupDequeueing({deqRedrawThreshold:$y,deqCost:By,deqAvgCost:Fy,deqNoDrawCost:Gy,deqFastCost:zy,deq:function(e,r,a){return e.dequeue(r,a)},onDeqd:function(e,r){for(var a=0;a<e.onDequeues.length;a++){var n=e.onDequeues[a];n(r)}},shouldRedraw:function(e,r,a,n){for(var i=0;i<r.length;i++)for(var s=r[i].eles,o=0;o<s.length;o++){var l=s[o].boundingBox();if(fi(l,n))return!0}return!1},priority:function(e){return e.renderer.beforeRenderPriorities.eleTxrDeq}});var Uy=1,Qr=-4,en=2,Hy=3.99,Yy=50,Xy=50,Wy=.15,qy=.1,Ky=.9,Zy=.9,Qy=1,Bs=250,Jy=4e3*4e3,jy=!0,gl=function(e){var r=this,a=r.renderer=e,n=a.cy;r.layersByLevel={},r.firstGet=!0,r.lastInvalidationTime=Mt()-2*Bs,r.skipping=!1,r.eleTxrDeqs=n.collection(),r.scheduleElementRefinement=on.default(function(){r.refineElementTextures(r.eleTxrDeqs),r.eleTxrDeqs.unmerge(r.eleTxrDeqs)},Xy),a.beforeRender(function(s,o){o-r.lastInvalidationTime<=Bs?r.skipping=!0:r.skipping=!1},a.beforeRenderPriorities.lyrTxrSkip);var i=function(o,l){return l.reqs-o.reqs};r.layersQueue=new ha.default(i),r.setupDequeueing()},Je=gl.prototype,Fs=0,em=Math.pow(2,53)-1;Je.makeLayer=function(t,e){var r=Math.pow(2,e),a=Math.ceil(t.w*r),n=Math.ceil(t.h*r),i=this.renderer.makeOffscreenCanvas(a,n),s={id:Fs=++Fs%em,bb:t,level:e,width:a,height:n,canvas:i,context:i.getContext("2d"),eles:[],elesQueue:[],reqs:0},o=s.context,l=-s.bb.x1,u=-s.bb.y1;return o.scale(r,r),o.translate(l,u),s};Je.getLayers=function(t,e,r){var a=this,n=a.renderer,i=n.cy,s=i.zoom(),o=a.firstGet;if(a.firstGet=!1,r==null){if(r=Math.ceil(ui(s*e)),r<Qr)r=Qr;else if(s>=Hy||r>en)return null}a.validateLayersElesOrdering(r,t);var l=a.layersByLevel,u=Math.pow(2,r),f=l[r]=l[r]||[],h,c=a.levelIsComplete(r,t),v,d=function(){var D=function(P){if(a.validateLayersElesOrdering(P,t),a.levelIsComplete(P,t))return v=l[P],!0},A=function(P){if(!v)for(var R=r+P;Qr<=R&&R<=en&&!D(R);R+=P);};A(1),A(-1);for(var L=f.length-1;L>=0;L--){var I=f[L];I.invalid&&Xt(f,I)}};if(!c)d();else return f;var g=function(){if(!h){h=ft();for(var D=0;D<t.length;D++)wo(h,t[D].boundingBox())}return h},p=function(D){D=D||{};var A=D.after;g();var L=h.w*u*(h.h*u);if(L>Jy)return null;var I=a.makeLayer(h,r);if(A!=null){var O=f.indexOf(A)+1;f.splice(O,0,I)}else(D.insert===void 0||D.insert)&&f.unshift(I);return I};if(a.skipping&&!o)return null;for(var y=null,E=t.length/Uy,m=!o,T=0;T<t.length;T++){var C=t[T],S=C._private.rscratch,b=S.imgLayerCaches=S.imgLayerCaches||{},x=b[r];if(x){y=x;continue}if((!y||y.eles.length>=E||!xo(y.bb,C.boundingBox()))&&(y=p({insert:!0,after:y}),!y))return null;v||m?a.queueLayer(y,C):a.drawEleInLayer(y,C,r,e),y.eles.push(C),b[r]=y}return v||(m?null:f)};Je.getEleLevelForLayerLevel=function(t,e){return t};Je.drawEleInLayer=function(t,e,r,a){var n=this,i=this.renderer,s=t.context,o=e.boundingBox();o.w===0||o.h===0||!e.visible()||(r=n.getEleLevelForLayerLevel(r,a),i.setImgSmoothing(s,!1),i.drawCachedElement(s,e,null,null,r,jy),i.setImgSmoothing(s,!0))};Je.levelIsComplete=function(t,e){var r=this,a=r.layersByLevel[t];if(!a||a.length===0)return!1;for(var n=0,i=0;i<a.length;i++){var s=a[i];if(s.reqs>0||s.invalid)return!1;n+=s.eles.length}return n===e.length};Je.validateLayersElesOrdering=function(t,e){var r=this.layersByLevel[t];if(r)for(var a=0;a<r.length;a++){for(var n=r[a],i=-1,s=0;s<e.length;s++)if(n.eles[0]===e[s]){i=s;break}if(i<0){this.invalidateLayer(n);continue}for(var o=i,s=0;s<n.eles.length;s++)if(n.eles[s]!==e[o+s]){this.invalidateLayer(n);break}}};Je.updateElementsInLayers=function(t,e){for(var r=this,a=ca(t[0]),n=0;n<t.length;n++)for(var i=a?null:t[n],s=a?t[n]:t[n].ele,o=s._private.rscratch,l=o.imgLayerCaches=o.imgLayerCaches||{},u=Qr;u<=en;u++){var f=l[u];f&&(i&&r.getEleLevelForLayerLevel(f.level)!==i.level||e(f,s,i))}};Je.haveLayers=function(){for(var t=this,e=!1,r=Qr;r<=en;r++){var a=t.layersByLevel[r];if(a&&a.length>0){e=!0;break}}return e};Je.invalidateElements=function(t){var e=this;t.length!==0&&(e.lastInvalidationTime=Mt(),!(t.length===0||!e.haveLayers())&&e.updateElementsInLayers(t,function(a,n,i){e.invalidateLayer(a)}))};Je.invalidateLayer=function(t){if(this.lastInvalidationTime=Mt(),!t.invalid){var e=t.level,r=t.eles,a=this.layersByLevel[e];Xt(a,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var n=0;n<r.length;n++){var i=r[n]._private.rscratch.imgLayerCaches;i&&(i[e]=null)}}};Je.refineElementTextures=function(t){var e=this;e.updateElementsInLayers(t,function(a,n,i){var s=a.replacement;if(s||(s=a.replacement=e.makeLayer(a.bb,a.level),s.replaces=a,s.eles=a.eles),!s.reqs)for(var o=0;o<s.eles.length;o++)e.queueLayer(s,s.eles[o])})};Je.enqueueElementRefinement=function(t){this.eleTxrDeqs.merge(t),this.scheduleElementRefinement()};Je.queueLayer=function(t,e){var r=this,a=r.layersQueue,n=t.elesQueue,i=n.hasId=n.hasId||{};if(!t.replacement){if(e){if(i[e.id()])return;n.push(e),i[e.id()]=!0}t.reqs?(t.reqs++,a.updateItem(t)):(t.reqs=1,a.push(t))}};Je.dequeue=function(t){for(var e=this,r=e.layersQueue,a=[],n=0;n<Qy&&r.size()!==0;){var i=r.peek();if(i.replacement){r.pop();continue}if(i.replaces&&i!==i.replaces.replacement){r.pop();continue}if(i.invalid){r.pop();continue}var s=i.elesQueue.shift();s&&(e.drawEleInLayer(i,s,i.level,t),n++),a.length===0&&a.push(!0),i.elesQueue.length===0&&(r.pop(),i.reqs=0,i.replaces&&e.applyLayerReplacement(i),e.requestRedraw())}return a};Je.applyLayerReplacement=function(t){var e=this,r=e.layersByLevel[t.level],a=t.replaces,n=r.indexOf(a);if(!(n<0||a.invalid)){r[n]=t;for(var i=0;i<t.eles.length;i++){var s=t.eles[i]._private,o=s.imgLayerCaches=s.imgLayerCaches||{};o&&(o[t.level]=t)}e.requestRedraw()}};Je.requestRedraw=on.default(function(){var t=this.renderer;t.redrawHint("eles",!0),t.redrawHint("drag",!0),t.redraw()},100);Je.setupDequeueing=dl.setupDequeueing({deqRedrawThreshold:Yy,deqCost:Wy,deqAvgCost:qy,deqNoDrawCost:Ky,deqFastCost:Zy,deq:function(e,r){return e.dequeue(r)},onDeqd:oi,shouldRedraw:go,priority:function(e){return e.renderer.beforeRenderPriorities.lyrTxrDeq}});var pl={},Gs;function tm(t,e){for(var r=0;r<e.length;r++){var a=e[r];t.lineTo(a.x,a.y)}}function rm(t,e,r){for(var a,n=0;n<e.length;n++){var i=e[n];n===0&&(a=i),t.lineTo(i.x,i.y)}t.quadraticCurveTo(r.x,r.y,a.x,a.y)}function zs(t,e,r){t.beginPath&&t.beginPath();for(var a=e,n=0;n<a.length;n++){var i=a[n];t.lineTo(i.x,i.y)}var s=r,o=r[0];t.moveTo(o.x,o.y);for(var n=1;n<s.length;n++){var i=s[n];t.lineTo(i.x,i.y)}t.closePath&&t.closePath()}function am(t,e,r,a,n){t.beginPath&&t.beginPath(),t.arc(r,a,n,0,Math.PI*2,!1);var i=e,s=i[0];t.moveTo(s.x,s.y);for(var o=0;o<i.length;o++){var l=i[o];t.lineTo(l.x,l.y)}t.closePath&&t.closePath()}function nm(t,e,r,a){t.arc(e,r,a,0,Math.PI*2,!1)}pl.arrowShapeImpl=function(t){return(Gs||(Gs={polygon:tm,"triangle-backcurve":rm,"triangle-tee":zs,"circle-triangle":am,"triangle-cross":zs,circle:nm}))[t]};var Nt={};Nt.drawElement=function(t,e,r,a,n,i){var s=this;e.isNode()?s.drawNode(t,e,r,a,n,i):s.drawEdge(t,e,r,a,n,i)};Nt.drawElementOverlay=function(t,e){var r=this;e.isNode()?r.drawNodeOverlay(t,e):r.drawEdgeOverlay(t,e)};Nt.drawElementUnderlay=function(t,e){var r=this;e.isNode()?r.drawNodeUnderlay(t,e):r.drawEdgeUnderlay(t,e)};Nt.drawCachedElementPortion=function(t,e,r,a,n,i,s,o){var l=this,u=r.getBoundingBox(e);if(!(u.w===0||u.h===0)){var f=r.getElement(e,u,a,n,i);if(f!=null){var h=o(l,e);if(h===0)return;var c=s(l,e),v=u.x1,d=u.y1,g=u.w,p=u.h,y,E,m,T,C;if(c!==0){var S=r.getRotationPoint(e);m=S.x,T=S.y,t.translate(m,T),t.rotate(c),C=l.getImgSmoothing(t),C||l.setImgSmoothing(t,!0);var b=r.getRotationOffset(e);y=b.x,E=b.y}else y=v,E=d;var x;h!==1&&(x=t.globalAlpha,t.globalAlpha=x*h),t.drawImage(f.texture.canvas,f.x,0,f.width,f.height,y,E,g,p),h!==1&&(t.globalAlpha=x),c!==0&&(t.rotate(-c),t.translate(-m,-T),C||l.setImgSmoothing(t,!1))}else r.drawElement(t,e)}};var im=function(){return 0},sm=function(e,r){return e.getTextAngle(r,null)},om=function(e,r){return e.getTextAngle(r,"source")},lm=function(e,r){return e.getTextAngle(r,"target")},um=function(e,r){return r.effectiveOpacity()},kn=function(e,r){return r.pstyle("text-opacity").pfValue*r.effectiveOpacity()};Nt.drawCachedElement=function(t,e,r,a,n,i){var s=this,o=s.data,l=o.eleTxrCache,u=o.lblTxrCache,f=o.slbTxrCache,h=o.tlbTxrCache,c=e.boundingBox(),v=i===!0?l.reasons.highQuality:null;if(!(c.w===0||c.h===0||!e.visible())&&(!a||fi(c,a))){var d=e.isEdge(),g=e.element()._private.rscratch.badLine;s.drawElementUnderlay(t,e),s.drawCachedElementPortion(t,e,l,r,n,v,im,um),(!d||!g)&&s.drawCachedElementPortion(t,e,u,r,n,v,sm,kn),d&&!g&&(s.drawCachedElementPortion(t,e,f,r,n,v,om,kn),s.drawCachedElementPortion(t,e,h,r,n,v,lm,kn)),s.drawElementOverlay(t,e)}};Nt.drawElements=function(t,e){for(var r=this,a=0;a<e.length;a++){var n=e[a];r.drawElement(t,n)}};Nt.drawCachedElements=function(t,e,r,a){for(var n=this,i=0;i<e.length;i++){var s=e[i];n.drawCachedElement(t,s,r,a)}};Nt.drawCachedNodes=function(t,e,r,a){for(var n=this,i=0;i<e.length;i++){var s=e[i];s.isNode()&&n.drawCachedElement(t,s,r,a)}};Nt.drawLayeredElements=function(t,e,r,a){var n=this,i=n.data.lyrTxrCache.getLayers(e,r);if(i)for(var s=0;s<i.length;s++){var o=i[s],l=o.bb;l.w===0||l.h===0||t.drawImage(o.canvas,l.x1,l.y1,l.w,l.h)}else n.drawCachedElements(t,e,r,a)};var Bt={};Bt.drawEdge=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,o=e._private.rscratch;if(!(i&&!e.visible())&&!(o.badLine||o.allpts==null||isNaN(o.allpts[0]))){var l;r&&(l=r,t.translate(-l.x1,-l.y1));var u=i?e.pstyle("opacity").value:1,f=i?e.pstyle("line-opacity").value:1,h=e.pstyle("curve-style").value,c=e.pstyle("line-style").value,v=e.pstyle("width").pfValue,d=e.pstyle("line-cap").value,g=u*f,p=u*f,y=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g;h==="straight-triangle"?(s.eleStrokeStyle(t,e,L),s.drawEdgeTrianglePath(e,t,o.allpts)):(t.lineWidth=v,t.lineCap=d,s.eleStrokeStyle(t,e,L),s.drawEdgePath(e,t,o.allpts,c),t.lineCap="butt")},E=function(){n&&s.drawEdgeOverlay(t,e)},m=function(){n&&s.drawEdgeUnderlay(t,e)},T=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p;s.drawArrowheads(t,e,L)},C=function(){s.drawElementText(t,e,null,a)};t.lineJoin="round";var S=e.pstyle("ghost").value==="yes";if(S){var b=e.pstyle("ghost-offset-x").pfValue,x=e.pstyle("ghost-offset-y").pfValue,w=e.pstyle("ghost-opacity").value,D=g*w;t.translate(b,x),y(D),T(D),t.translate(-b,-x)}m(),y(),T(),E(),C(),r&&t.translate(l.x1,l.y1)}};var yl=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,a){if(a.visible()){var n=a.pstyle("".concat(e,"-opacity")).value;if(n!==0){var i=this,s=i.usePaths(),o=a._private.rscratch,l=a.pstyle("".concat(e,"-padding")).pfValue,u=2*l,f=a.pstyle("".concat(e,"-color")).value;r.lineWidth=u,o.edgeType==="self"&&!s?r.lineCap="butt":r.lineCap="round",i.colorStrokeStyle(r,f[0],f[1],f[2],n),i.drawEdgePath(a,r,o.allpts,"solid")}}}};Bt.drawEdgeOverlay=yl("overlay");Bt.drawEdgeUnderlay=yl("underlay");Bt.drawEdgePath=function(t,e,r,a){var n=t._private.rscratch,i=e,s,o=!1,l=this.usePaths(),u=t.pstyle("line-dash-pattern").pfValue,f=t.pstyle("line-dash-offset").pfValue;if(l){var h=r.join("$"),c=n.pathCacheKey&&n.pathCacheKey===h;c?(s=e=n.pathCache,o=!0):(s=e=new Path2D,n.pathCacheKey=h,n.pathCache=s)}if(i.setLineDash)switch(a){case"dotted":i.setLineDash([1,1]);break;case"dashed":i.setLineDash(u),i.lineDashOffset=f;break;case"solid":i.setLineDash([]);break}if(!o&&!n.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(r[0],r[1]),n.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var v=2;v+3<r.length;v+=4)e.quadraticCurveTo(r[v],r[v+1],r[v+2],r[v+3]);break;case"straight":case"segments":case"haystack":for(var d=2;d+1<r.length;d+=2)e.lineTo(r[d],r[d+1]);break}e=i,l?e.stroke(s):e.stroke(),e.setLineDash&&e.setLineDash([])};Bt.drawEdgeTrianglePath=function(t,e,r){e.fillStyle=e.strokeStyle;for(var a=t.pstyle("width").pfValue,n=0;n+1<r.length;n+=2){var i=[r[n+2]-r[n],r[n+3]-r[n+1]],s=Math.sqrt(i[0]*i[0]+i[1]*i[1]),o=[i[1]/s,-i[0]/s],l=[o[0]*a/2,o[1]*a/2];e.beginPath(),e.moveTo(r[n]-l[0],r[n+1]-l[1]),e.lineTo(r[n]+l[0],r[n+1]+l[1]),e.lineTo(r[n+2],r[n+3]),e.closePath(),e.fill()}};Bt.drawArrowheads=function(t,e,r){var a=e._private.rscratch,n=a.edgeType==="haystack";n||this.drawArrowhead(t,e,"source",a.arrowStartX,a.arrowStartY,a.srcArrowAngle,r),this.drawArrowhead(t,e,"mid-target",a.midX,a.midY,a.midtgtArrowAngle,r),this.drawArrowhead(t,e,"mid-source",a.midX,a.midY,a.midsrcArrowAngle,r),n||this.drawArrowhead(t,e,"target",a.arrowEndX,a.arrowEndY,a.tgtArrowAngle,r)};Bt.drawArrowhead=function(t,e,r,a,n,i,s){if(!(isNaN(a)||a==null||isNaN(n)||n==null||isNaN(i)||i==null)){var o=this,l=e.pstyle(r+"-arrow-shape").value;if(l!=="none"){var u=e.pstyle(r+"-arrow-fill").value==="hollow"?"both":"filled",f=e.pstyle(r+"-arrow-fill").value,h=e.pstyle("width").pfValue,c=e.pstyle(r+"-arrow-width"),v=c.value==="match-line"?h:c.pfValue;c.units==="%"&&(v*=h);var d=e.pstyle("opacity").value;s===void 0&&(s=d);var g=t.globalCompositeOperation;(s!==1||f==="hollow")&&(t.globalCompositeOperation="destination-out",o.colorFillStyle(t,255,255,255,1),o.colorStrokeStyle(t,255,255,255,1),o.drawArrowShape(e,t,u,h,l,v,a,n,i),t.globalCompositeOperation=g);var p=e.pstyle(r+"-arrow-color").value;o.colorFillStyle(t,p[0],p[1],p[2],s),o.colorStrokeStyle(t,p[0],p[1],p[2],s),o.drawArrowShape(e,t,f,h,l,v,a,n,i)}}};Bt.drawArrowShape=function(t,e,r,a,n,i,s,o,l){var u=this,f=this.usePaths()&&n!=="triangle-cross",h=!1,c,v=e,d={x:s,y:o},g=t.pstyle("arrow-scale").value,p=this.getArrowWidth(a,g),y=u.arrowShapes[n];if(f){var E=u.arrowPathCache=u.arrowPathCache||[],m=ar(n),T=E[m];T!=null?(c=e=T,h=!0):(c=e=new Path2D,E[m]=c)}h||(e.beginPath&&e.beginPath(),f?y.draw(e,1,0,{x:0,y:0},1):y.draw(e,p,l,d,a),e.closePath&&e.closePath()),e=v,f&&(e.translate(s,o),e.rotate(l),e.scale(p,p)),(r==="filled"||r==="both")&&(f?e.fill(c):e.fill()),(r==="hollow"||r==="both")&&(e.lineWidth=i/(f?p:1),e.lineJoin="miter",f?e.stroke(c):e.stroke()),f&&(e.scale(1/p,1/p),e.rotate(-l),e.translate(-s,-o))};var wi={};wi.safeDrawImage=function(t,e,r,a,n,i,s,o,l,u){if(!(n<=0||i<=0||l<=0||u<=0))try{t.drawImage(e,r,a,n,i,s,o,l,u)}catch(f){Ne(f)}};wi.drawInscribedImage=function(t,e,r,a,n){var i=this,s=r.position(),o=s.x,l=s.y,u=r.cy().style(),f=u.getIndexedStyle.bind(u),h=f(r,"background-fit","value",a),c=f(r,"background-repeat","value",a),v=r.width(),d=r.height(),g=r.padding()*2,p=v+(f(r,"background-width-relative-to","value",a)==="inner"?0:g),y=d+(f(r,"background-height-relative-to","value",a)==="inner"?0:g),E=r._private.rscratch,m=f(r,"background-clip","value",a),T=m==="node",C=f(r,"background-image-opacity","value",a)*n,S=f(r,"background-image-smoothing","value",a),b=e.width||e.cachedW,x=e.height||e.cachedH;(b==null||x==null)&&(document.body.appendChild(e),b=e.cachedW=e.width||e.offsetWidth,x=e.cachedH=e.height||e.offsetHeight,document.body.removeChild(e));var w=b,D=x;if(f(r,"background-width","value",a)!=="auto"&&(f(r,"background-width","units",a)==="%"?w=f(r,"background-width","pfValue",a)*p:w=f(r,"background-width","pfValue",a)),f(r,"background-height","value",a)!=="auto"&&(f(r,"background-height","units",a)==="%"?D=f(r,"background-height","pfValue",a)*y:D=f(r,"background-height","pfValue",a)),!(w===0||D===0)){if(h==="contain"){var A=Math.min(p/w,y/D);w*=A,D*=A}else if(h==="cover"){var A=Math.max(p/w,y/D);w*=A,D*=A}var L=o-p/2,I=f(r,"background-position-x","units",a),O=f(r,"background-position-x","pfValue",a);I==="%"?L+=(p-w)*O:L+=O;var P=f(r,"background-offset-x","units",a),R=f(r,"background-offset-x","pfValue",a);P==="%"?L+=(p-w)*R:L+=R;var M=l-y/2,k=f(r,"background-position-y","units",a),B=f(r,"background-position-y","pfValue",a);k==="%"?M+=(y-D)*B:M+=B;var G=f(r,"background-offset-y","units",a),F=f(r,"background-offset-y","pfValue",a);G==="%"?M+=(y-D)*F:M+=F,E.pathCache&&(L-=o,M-=l,o=0,l=0);var $=t.globalAlpha;t.globalAlpha=C;var U=i.getImgSmoothing(t),_=!1;if(S==="no"&&U?(i.setImgSmoothing(t,!1),_=!0):S==="yes"&&!U&&(i.setImgSmoothing(t,!0),_=!0),c==="no-repeat")T&&(t.save(),E.pathCache?t.clip(E.pathCache):(i.nodeShapes[i.getNodeShape(r)].draw(t,o,l,p,y),t.clip())),i.safeDrawImage(t,e,0,0,b,x,L,M,w,D),T&&t.restore();else{var Y=t.createPattern(e,c);t.fillStyle=Y,i.nodeShapes[i.getNodeShape(r)].draw(t,o,l,p,y),t.translate(L,M),t.fill(),t.translate(-L,-M)}t.globalAlpha=$,_&&i.setImgSmoothing(t,U)}};var hr={};hr.eleTextBiggerThanMin=function(t,e){if(!e){var r=t.cy().zoom(),a=this.getPixelRatio(),n=Math.ceil(ui(r*a));e=Math.pow(2,n)}var i=t.pstyle("font-size").pfValue*e,s=t.pstyle("min-zoomed-font-size").pfValue;return!(i<s)};hr.drawElementText=function(t,e,r,a,n){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this;if(a==null){if(i&&!s.eleTextBiggerThanMin(e))return}else if(a===!1)return;if(e.isNode()){var o=e.pstyle("label");if(!o||!o.value)return;var l=s.getLabelJustification(e);t.textAlign=l,t.textBaseline="bottom"}else{var u=e.element()._private.rscratch.badLine,f=e.pstyle("label"),h=e.pstyle("source-label"),c=e.pstyle("target-label");if(u||(!f||!f.value)&&(!h||!h.value)&&(!c||!c.value))return;t.textAlign="center",t.textBaseline="bottom"}var v=!r,d;r&&(d=r,t.translate(-d.x1,-d.y1)),n==null?(s.drawText(t,e,null,v,i),e.isEdge()&&(s.drawText(t,e,"source",v,i),s.drawText(t,e,"target",v,i))):s.drawText(t,e,n,v,i),r&&t.translate(d.x1,d.y1)};hr.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var r=0;r<this.fontCaches.length;r++)if(e=this.fontCaches[r],e.context===t)return e;return e={context:t},this.fontCaches.push(e),e};hr.setupTextStyle=function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=e.pstyle("font-style").strValue,n=e.pstyle("font-size").pfValue+"px",i=e.pstyle("font-family").strValue,s=e.pstyle("font-weight").strValue,o=r?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,l=e.pstyle("text-outline-opacity").value*o,u=e.pstyle("color").value,f=e.pstyle("text-outline-color").value;t.font=a+" "+s+" "+n+" "+i,t.lineJoin="round",this.colorFillStyle(t,u[0],u[1],u[2],o),this.colorStrokeStyle(t,f[0],f[1],f[2],l)};function Pn(t,e,r,a,n){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,s=arguments.length>6?arguments[6]:void 0;t.beginPath(),t.moveTo(e+i,r),t.lineTo(e+a-i,r),t.quadraticCurveTo(e+a,r,e+a,r+i),t.lineTo(e+a,r+n-i),t.quadraticCurveTo(e+a,r+n,e+a-i,r+n),t.lineTo(e+i,r+n),t.quadraticCurveTo(e,r+n,e,r+n-i),t.lineTo(e,r+i),t.quadraticCurveTo(e,r,e+i,r),t.closePath(),s?t.stroke():t.fill()}hr.getTextAngle=function(t,e){var r,a=t._private,n=a.rscratch,i=e?e+"-":"",s=t.pstyle(i+"text-rotation"),o=xt(n,"labelAngle",e);return s.strValue==="autorotate"?r=t.isEdge()?o:0:s.strValue==="none"?r=0:r=s.pfValue,r};hr.drawText=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=e._private,s=i.rscratch,o=n?e.effectiveOpacity():1;if(!(n&&(o===0||e.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var l=xt(s,"labelX",r),u=xt(s,"labelY",r),f,h,c=this.getLabelText(e,r);if(c!=null&&c!==""&&!isNaN(l)&&!isNaN(u)){this.setupTextStyle(t,e,n);var v=r?r+"-":"",d=xt(s,"labelWidth",r),g=xt(s,"labelHeight",r),p=e.pstyle(v+"text-margin-x").pfValue,y=e.pstyle(v+"text-margin-y").pfValue,E=e.isEdge(),m=e.pstyle("text-halign").value,T=e.pstyle("text-valign").value;E&&(m="center",T="center"),l+=p,u+=y;var C;switch(a?C=this.getTextAngle(e,r):C=0,C!==0&&(f=l,h=u,t.translate(f,h),t.rotate(C),l=0,u=0),T){case"top":break;case"center":u+=g/2;break;case"bottom":u+=g;break}var S=e.pstyle("text-background-opacity").value,b=e.pstyle("text-border-opacity").value,x=e.pstyle("text-border-width").pfValue,w=e.pstyle("text-background-padding").pfValue,D=e.pstyle("text-background-shape").strValue,A=D.indexOf("round")===0,L=2;if(S>0||x>0&&b>0){var I=l-w;switch(m){case"left":I-=d;break;case"center":I-=d/2;break}var O=u-g-w,P=d+2*w,R=g+2*w;if(S>0){var M=t.fillStyle,k=e.pstyle("text-background-color").value;t.fillStyle="rgba("+k[0]+","+k[1]+","+k[2]+","+S*o+")",A?Pn(t,I,O,P,R,L):t.fillRect(I,O,P,R),t.fillStyle=M}if(x>0&&b>0){var B=t.strokeStyle,G=t.lineWidth,F=e.pstyle("text-border-color").value,$=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+F[0]+","+F[1]+","+F[2]+","+b*o+")",t.lineWidth=x,t.setLineDash)switch($){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=x/4,t.setLineDash([]);break;case"solid":t.setLineDash([]);break}if(A?Pn(t,I,O,P,R,L,"stroke"):t.strokeRect(I,O,P,R),$==="double"){var U=x/2;A?Pn(t,I+U,O+U,P-U*2,R-U*2,L,"stroke"):t.strokeRect(I+U,O+U,P-U*2,R-U*2)}t.setLineDash&&t.setLineDash([]),t.lineWidth=G,t.strokeStyle=B}}var _=2*e.pstyle("text-outline-width").pfValue;if(_>0&&(t.lineWidth=_),e.pstyle("text-wrap").value==="wrap"){var Y=xt(s,"labelWrapCachedLines",r),W=xt(s,"labelLineHeight",r),z=d/2,K=this.getLabelJustification(e);switch(K==="auto"||(m==="left"?K==="left"?l+=-d:K==="center"&&(l+=-z):m==="center"?K==="left"?l+=-z:K==="right"&&(l+=z):m==="right"&&(K==="center"?l+=z:K==="right"&&(l+=d))),T){case"top":u-=(Y.length-1)*W;break;case"center":case"bottom":u-=(Y.length-1)*W;break}for(var j=0;j<Y.length;j++)_>0&&t.strokeText(Y[j],l,u),t.fillText(Y[j],l,u),u+=W}else _>0&&t.strokeText(c,l,u),t.fillText(c,l,u);C!==0&&(t.rotate(-C),t.translate(-f,-h))}}};var Gr={};Gr.drawNode=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,o,l,u=e._private,f=u.rscratch,h=e.position();if(!(!ae(h.x)||!ae(h.y))&&!(i&&!e.visible())){var c=i?e.effectiveOpacity():1,v=s.usePaths(),d,g=!1,p=e.padding();o=e.width()+2*p,l=e.height()+2*p;var y;r&&(y=r,t.translate(-y.x1,-y.y1));for(var E=e.pstyle("background-image"),m=E.value,T=new Array(m.length),C=new Array(m.length),S=0,b=0;b<m.length;b++){var x=m[b],w=T[b]=x!=null&&x!=="none";if(w){var D=e.cy().style().getIndexedStyle(e,"background-image-crossorigin","value",b);S++,C[b]=s.getCachedImage(x,D,function(){u.backgroundTimestamp=Date.now(),e.emitAndNotify("background")})}}var A=e.pstyle("background-blacken").value,L=e.pstyle("border-width").pfValue,I=e.pstyle("background-opacity").value*c,O=e.pstyle("border-color").value,P=e.pstyle("border-style").value,R=e.pstyle("border-opacity").value*c,M=e.pstyle("outline-width").pfValue,k=e.pstyle("outline-color").value,B=e.pstyle("outline-style").value,G=e.pstyle("outline-opacity").value*c,F=e.pstyle("outline-offset").value;t.lineJoin="miter";var $=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I;s.eleFillStyle(t,e,H)},U=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:R;s.colorStrokeStyle(t,O[0],O[1],O[2],H)},_=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:G;s.colorStrokeStyle(t,k[0],k[1],k[2],H)},Y=function(H,N,V,J){var X=s.nodePathCache=s.nodePathCache||[],q=co(V==="polygon"?V+","+J.join(","):V,""+N,""+H),he=X[q],Z,oe=!1;return he!=null?(Z=he,oe=!0,f.pathCache=Z):(Z=new Path2D,X[q]=f.pathCache=Z),{path:Z,cacheHit:oe}},W=e.pstyle("shape").strValue,z=e.pstyle("shape-polygon-points").pfValue;if(v){t.translate(h.x,h.y);var K=Y(o,l,W,z);d=K.path,g=K.cacheHit}var j=function(){if(!g){var H=h;v&&(H={x:0,y:0}),s.nodeShapes[s.getNodeShape(e)].draw(d||t,H.x,H.y,o,l)}v?t.fill(d):t.fill()},Q=function(){for(var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,V=u.backgrounding,J=0,X=0;X<C.length;X++){var q=e.cy().style().getIndexedStyle(e,"background-image-containment","value",X);if(N&&q==="over"||!N&&q==="inside"){J++;continue}T[X]&&C[X].complete&&!C[X].error&&(J++,s.drawInscribedImage(t,C[X],e,X,H))}u.backgrounding=J!==S,V!==u.backgrounding&&e.updateStyle(!1)},ee=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c;s.hasPie(e)&&(s.drawPie(t,e,N),H&&(v||s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,l)))},ne=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,N=(A>0?A:-A)*H,V=A>0?0:255;A!==0&&(s.colorFillStyle(t,V,V,V,N),v?t.fill(d):t.fill())},ce=function(){if(L>0){if(t.lineWidth=L,t.lineCap="butt",t.setLineDash)switch(P){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}if(v?t.stroke(d):t.stroke(),P==="double"){t.lineWidth=L/3;var H=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",v?t.stroke(d):t.stroke(),t.globalCompositeOperation=H}t.setLineDash&&t.setLineDash([])}},te=function(){if(M>0){if(t.lineWidth=M,t.lineCap="butt",t.setLineDash)switch(B){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}var H=h;v&&(H={x:0,y:0});var N=s.getNodeShape(e),V=(o+L+(M+F))/o,J=(l+L+(M+F))/l,X=o*V,q=l*J,he=s.nodeShapes[N].points,Z;if(v){var oe=Y(X,q,N,he);Z=oe.path}if(N==="ellipse")s.drawEllipsePath(Z||t,H.x,H.y,X,q);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(N)){var me=0,Se=0,pe=0;N==="round-diamond"?me=(L+F+M)*1.4:N==="round-heptagon"?(me=(L+F+M)*1.075,pe=-(L/2+F+M)/35):N==="round-hexagon"?me=(L+F+M)*1.12:N==="round-pentagon"?(me=(L+F+M)*1.13,pe=-(L/2+F+M)/15):N==="round-tag"?(me=(L+F+M)*1.12,Se=(L/2+M+F)*.07):N==="round-triangle"&&(me=(L+F+M)*(Math.PI/2),pe=-(L+F/2+M)/Math.PI),me!==0&&(V=(o+me)/o,J=(l+me)/l),s.drawRoundPolygonPath(Z||t,H.x+Se,H.y+pe,o*V,l*J,he)}else if(["roundrectangle","round-rectangle"].includes(N))s.drawRoundRectanglePath(Z||t,H.x,H.y,X,q);else if(["cutrectangle","cut-rectangle"].includes(N))s.drawCutRectanglePath(Z||t,H.x,H.y,X,q);else if(["bottomroundrectangle","bottom-round-rectangle"].includes(N))s.drawBottomRoundRectanglePath(Z||t,H.x,H.y,X,q);else if(N==="barrel")s.drawBarrelPath(Z||t,H.x,H.y,X,q);else if(N.startsWith("polygon")||["rhomboid","right-rhomboid","round-tag","tag","vee"].includes(N)){var Te=(L+M+F)/o;he=Wa(qa(he,Te)),s.drawPolygonPath(Z||t,H.x,H.y,o,l,he)}else{var ye=(L+M+F)/o;he=Wa(qa(he,-ye)),s.drawPolygonPath(Z||t,H.x,H.y,o,l,he)}if(v?t.stroke(Z):t.stroke(),B==="double"){t.lineWidth=L/3;var be=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",v?t.stroke(Z):t.stroke(),t.globalCompositeOperation=be}t.setLineDash&&t.setLineDash([])}},re=function(){n&&s.drawNodeOverlay(t,e,h,o,l)},ue=function(){n&&s.drawNodeUnderlay(t,e,h,o,l)},le=function(){s.drawElementText(t,e,null,a)},se=e.pstyle("ghost").value==="yes";if(se){var fe=e.pstyle("ghost-offset-x").pfValue,xe=e.pstyle("ghost-offset-y").pfValue,Ee=e.pstyle("ghost-opacity").value,ge=Ee*c;t.translate(fe,xe),_(),te(),$(Ee*I),j(),Q(ge,!0),U(Ee*R),ce(),ee(A!==0||L!==0),Q(ge,!1),ne(ge),t.translate(-fe,-xe)}v&&t.translate(-h.x,-h.y),ue(),v&&t.translate(h.x,h.y),_(),te(),$(),j(),Q(c,!0),U(),ce(),ee(A!==0||L!==0),Q(c,!1),ne(),v&&t.translate(-h.x,-h.y),le(),re(),r&&t.translate(y.x1,y.y1)}};var ml=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,a,n,i,s){var o=this;if(a.visible()){var l=a.pstyle("".concat(e,"-padding")).pfValue,u=a.pstyle("".concat(e,"-opacity")).value,f=a.pstyle("".concat(e,"-color")).value,h=a.pstyle("".concat(e,"-shape")).value;if(u>0){if(n=n||a.position(),i==null||s==null){var c=a.padding();i=a.width()+2*c,s=a.height()+2*c}o.colorFillStyle(r,f[0],f[1],f[2],u),o.nodeShapes[h].draw(r,n.x,n.y,i+l*2,s+l*2),r.fill()}}}};Gr.drawNodeOverlay=ml("overlay");Gr.drawNodeUnderlay=ml("underlay");Gr.hasPie=function(t){return t=t[0],t._private.hasPie};Gr.drawPie=function(t,e,r,a){e=e[0],a=a||e.position();var n=e.cy().style(),i=e.pstyle("pie-size"),s=a.x,o=a.y,l=e.width(),u=e.height(),f=Math.min(l,u)/2,h=0,c=this.usePaths();c&&(s=0,o=0),i.units==="%"?f=f*i.pfValue:i.pfValue!==void 0&&(f=i.pfValue/2);for(var v=1;v<=n.pieBackgroundN;v++){var d=e.pstyle("pie-"+v+"-background-size").value,g=e.pstyle("pie-"+v+"-background-color").value,p=e.pstyle("pie-"+v+"-background-opacity").value*r,y=d/100;y+h>1&&(y=1-h);var E=1.5*Math.PI+2*Math.PI*h,m=2*Math.PI*y,T=E+m;d===0||h>=1||h+y>1||(t.beginPath(),t.moveTo(s,o),t.arc(s,o,f,E,T),t.closePath(),this.colorFillStyle(t,g[0],g[1],g[2],p),t.fill(),h+=y)}};var vt={},fm=100;vt.getPixelRatio=function(){var t=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var e=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/e};vt.paintCache=function(t){for(var e=this.paintCaches=this.paintCaches||[],r=!0,a,n=0;n<e.length;n++)if(a=e[n],a.context===t){r=!1;break}return r&&(a={context:t},e.push(a)),a};vt.createGradientStyleFor=function(t,e,r,a,n){var i,s=this.usePaths(),o=r.pstyle(e+"-gradient-stop-colors").value,l=r.pstyle(e+"-gradient-stop-positions").pfValue;if(a==="radial-gradient")if(r.isEdge()){var u=r.sourceEndpoint(),f=r.targetEndpoint(),h=r.midpoint(),c=nr(u,h),v=nr(f,h);i=t.createRadialGradient(h.x,h.y,0,h.x,h.y,Math.max(c,v))}else{var d=s?{x:0,y:0}:r.position(),g=r.paddedWidth(),p=r.paddedHeight();i=t.createRadialGradient(d.x,d.y,0,d.x,d.y,Math.max(g,p))}else if(r.isEdge()){var y=r.sourceEndpoint(),E=r.targetEndpoint();i=t.createLinearGradient(y.x,y.y,E.x,E.y)}else{var m=s?{x:0,y:0}:r.position(),T=r.paddedWidth(),C=r.paddedHeight(),S=T/2,b=C/2,x=r.pstyle("background-gradient-direction").value;switch(x){case"to-bottom":i=t.createLinearGradient(m.x,m.y-b,m.x,m.y+b);break;case"to-top":i=t.createLinearGradient(m.x,m.y+b,m.x,m.y-b);break;case"to-left":i=t.createLinearGradient(m.x+S,m.y,m.x-S,m.y);break;case"to-right":i=t.createLinearGradient(m.x-S,m.y,m.x+S,m.y);break;case"to-bottom-right":case"to-right-bottom":i=t.createLinearGradient(m.x-S,m.y-b,m.x+S,m.y+b);break;case"to-top-right":case"to-right-top":i=t.createLinearGradient(m.x-S,m.y+b,m.x+S,m.y-b);break;case"to-bottom-left":case"to-left-bottom":i=t.createLinearGradient(m.x+S,m.y-b,m.x-S,m.y+b);break;case"to-top-left":case"to-left-top":i=t.createLinearGradient(m.x+S,m.y+b,m.x-S,m.y-b);break}}if(!i)return null;for(var w=l.length===o.length,D=o.length,A=0;A<D;A++)i.addColorStop(w?l[A]:A/(D-1),"rgba("+o[A][0]+","+o[A][1]+","+o[A][2]+","+n+")");return i};vt.gradientFillStyle=function(t,e,r,a){var n=this.createGradientStyleFor(t,"background",e,r,a);if(!n)return null;t.fillStyle=n};vt.colorFillStyle=function(t,e,r,a,n){t.fillStyle="rgba("+e+","+r+","+a+","+n+")"};vt.eleFillStyle=function(t,e,r){var a=e.pstyle("background-fill").value;if(a==="linear-gradient"||a==="radial-gradient")this.gradientFillStyle(t,e,a,r);else{var n=e.pstyle("background-color").value;this.colorFillStyle(t,n[0],n[1],n[2],r)}};vt.gradientStrokeStyle=function(t,e,r,a){var n=this.createGradientStyleFor(t,"line",e,r,a);if(!n)return null;t.strokeStyle=n};vt.colorStrokeStyle=function(t,e,r,a,n){t.strokeStyle="rgba("+e+","+r+","+a+","+n+")"};vt.eleStrokeStyle=function(t,e,r){var a=e.pstyle("line-fill").value;if(a==="linear-gradient"||a==="radial-gradient")this.gradientStrokeStyle(t,e,a,r);else{var n=e.pstyle("line-color").value;this.colorStrokeStyle(t,n[0],n[1],n[2],r)}};vt.matchCanvasSize=function(t){var e=this,r=e.data,a=e.findContainerClientCoords(),n=a[2],i=a[3],s=e.getPixelRatio(),o=e.motionBlurPxRatio;(t===e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE]||t===e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG])&&(s=o);var l=n*s,u=i*s,f;if(!(l===e.canvasWidth&&u===e.canvasHeight)){e.fontCaches=null;var h=r.canvasContainer;h.style.width=n+"px",h.style.height=i+"px";for(var c=0;c<e.CANVAS_LAYERS;c++)f=r.canvases[c],f.width=l,f.height=u,f.style.width=n+"px",f.style.height=i+"px";for(var c=0;c<e.BUFFER_COUNT;c++)f=r.bufferCanvases[c],f.width=l,f.height=u,f.style.width=n+"px",f.style.height=i+"px";e.textureMult=1,s<=1&&(f=r.bufferCanvases[e.TEXTURE_BUFFER],e.textureMult=2,f.width=l*e.textureMult,f.height=u*e.textureMult),e.canvasWidth=l,e.canvasHeight=u}};vt.renderTo=function(t,e,r,a){this.render({forcedContext:t,forcedZoom:e,forcedPan:r,drawAllLayers:!0,forcedPxRatio:a})};vt.render=function(t){t=t||mo();var e=t.forcedContext,r=t.drawAllLayers,a=t.drawOnlyNodeLayer,n=t.forcedZoom,i=t.forcedPan,s=this,o=t.forcedPxRatio===void 0?this.getPixelRatio():t.forcedPxRatio,l=s.cy,u=s.data,f=u.canvasNeedsRedraw,h=s.textureOnViewport&&!e&&(s.pinching||s.hoverData.dragging||s.swipePanning||s.data.wheelZooming),c=t.motionBlur!==void 0?t.motionBlur:s.motionBlur,v=s.motionBlurPxRatio,d=l.hasCompoundNodes(),g=s.hoverData.draggingEles,p=!!(s.hoverData.selecting||s.touchData.selecting);c=c&&!e&&s.motionBlurEnabled&&!p;var y=c;e||(s.prevPxRatio!==o&&(s.invalidateContainerClientCoordsCache(),s.matchCanvasSize(s.container),s.redrawHint("eles",!0),s.redrawHint("drag",!0)),s.prevPxRatio=o),!e&&s.motionBlurTimeout&&clearTimeout(s.motionBlurTimeout),c&&(s.mbFrames==null&&(s.mbFrames=0),s.mbFrames++,s.mbFrames<3&&(y=!1),s.mbFrames>s.minMbLowQualFrames&&(s.motionBlurPxRatio=s.mbPxRBlurry)),s.clearingMotionBlur&&(s.motionBlurPxRatio=1),s.textureDrawLastFrame&&!h&&(f[s.NODE]=!0,f[s.SELECT_BOX]=!0);var E=l.style(),m=l.zoom(),T=n!==void 0?n:m,C=l.pan(),S={x:C.x,y:C.y},b={zoom:m,pan:{x:C.x,y:C.y}},x=s.prevViewport,w=x===void 0||b.zoom!==x.zoom||b.pan.x!==x.pan.x||b.pan.y!==x.pan.y;!w&&!(g&&!d)&&(s.motionBlurPxRatio=1),i&&(S=i),T*=o,S.x*=o,S.y*=o;var D=s.getCachedZSortedEles();function A(te,re,ue,le,se){var fe=te.globalCompositeOperation;te.globalCompositeOperation="destination-out",s.colorFillStyle(te,255,255,255,s.motionBlurTransparency),te.fillRect(re,ue,le,se),te.globalCompositeOperation=fe}function L(te,re){var ue,le,se,fe;!s.clearingMotionBlur&&(te===u.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]||te===u.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG])?(ue={x:C.x*v,y:C.y*v},le=m*v,se=s.canvasWidth*v,fe=s.canvasHeight*v):(ue=S,le=T,se=s.canvasWidth,fe=s.canvasHeight),te.setTransform(1,0,0,1,0,0),re==="motionBlur"?A(te,0,0,se,fe):!e&&(re===void 0||re)&&te.clearRect(0,0,se,fe),r||(te.translate(ue.x,ue.y),te.scale(le,le)),i&&te.translate(i.x,i.y),n&&te.scale(n,n)}if(h||(s.textureDrawLastFrame=!1),h){if(s.textureDrawLastFrame=!0,!s.textureCache){s.textureCache={},s.textureCache.bb=l.mutableElements().boundingBox(),s.textureCache.texture=s.data.bufferCanvases[s.TEXTURE_BUFFER];var I=s.data.bufferContexts[s.TEXTURE_BUFFER];I.setTransform(1,0,0,1,0,0),I.clearRect(0,0,s.canvasWidth*s.textureMult,s.canvasHeight*s.textureMult),s.render({forcedContext:I,drawOnlyNodeLayer:!0,forcedPxRatio:o*s.textureMult});var b=s.textureCache.viewport={zoom:l.zoom(),pan:l.pan(),width:s.canvasWidth,height:s.canvasHeight};b.mpan={x:(0-b.pan.x)/b.zoom,y:(0-b.pan.y)/b.zoom}}f[s.DRAG]=!1,f[s.NODE]=!1;var O=u.contexts[s.NODE],P=s.textureCache.texture,b=s.textureCache.viewport;O.setTransform(1,0,0,1,0,0),c?A(O,0,0,b.width,b.height):O.clearRect(0,0,b.width,b.height);var R=E.core("outside-texture-bg-color").value,M=E.core("outside-texture-bg-opacity").value;s.colorFillStyle(O,R[0],R[1],R[2],M),O.fillRect(0,0,b.width,b.height);var m=l.zoom();L(O,!1),O.clearRect(b.mpan.x,b.mpan.y,b.width/b.zoom/o,b.height/b.zoom/o),O.drawImage(P,b.mpan.x,b.mpan.y,b.width/b.zoom/o,b.height/b.zoom/o)}else s.textureOnViewport&&!e&&(s.textureCache=null);var k=l.extent(),B=s.pinching||s.hoverData.dragging||s.swipePanning||s.data.wheelZooming||s.hoverData.draggingEles||s.cy.animated(),G=s.hideEdgesOnViewport&&B,F=[];if(F[s.NODE]=!f[s.NODE]&&c&&!s.clearedForMotionBlur[s.NODE]||s.clearingMotionBlur,F[s.NODE]&&(s.clearedForMotionBlur[s.NODE]=!0),F[s.DRAG]=!f[s.DRAG]&&c&&!s.clearedForMotionBlur[s.DRAG]||s.clearingMotionBlur,F[s.DRAG]&&(s.clearedForMotionBlur[s.DRAG]=!0),f[s.NODE]||r||a||F[s.NODE]){var $=c&&!F[s.NODE]&&v!==1,O=e||($?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]:u.contexts[s.NODE]),U=c&&!$?"motionBlur":void 0;L(O,U),G?s.drawCachedNodes(O,D.nondrag,o,k):s.drawLayeredElements(O,D.nondrag,o,k),s.debug&&s.drawDebugPoints(O,D.nondrag),!r&&!c&&(f[s.NODE]=!1)}if(!a&&(f[s.DRAG]||r||F[s.DRAG])){var $=c&&!F[s.DRAG]&&v!==1,O=e||($?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG]:u.contexts[s.DRAG]);L(O,c&&!$?"motionBlur":void 0),G?s.drawCachedNodes(O,D.drag,o,k):s.drawCachedElements(O,D.drag,o,k),s.debug&&s.drawDebugPoints(O,D.drag),!r&&!c&&(f[s.DRAG]=!1)}if(s.showFps||!a&&f[s.SELECT_BOX]&&!r){var O=e||u.contexts[s.SELECT_BOX];if(L(O),s.selection[4]==1&&(s.hoverData.selecting||s.touchData.selecting)){var m=s.cy.zoom(),_=E.core("selection-box-border-width").value/m;O.lineWidth=_,O.fillStyle="rgba("+E.core("selection-box-color").value[0]+","+E.core("selection-box-color").value[1]+","+E.core("selection-box-color").value[2]+","+E.core("selection-box-opacity").value+")",O.fillRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]),_>0&&(O.strokeStyle="rgba("+E.core("selection-box-border-color").value[0]+","+E.core("selection-box-border-color").value[1]+","+E.core("selection-box-border-color").value[2]+","+E.core("selection-box-opacity").value+")",O.strokeRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]))}if(u.bgActivePosistion&&!s.hoverData.selecting){var m=s.cy.zoom(),Y=u.bgActivePosistion;O.fillStyle="rgba("+E.core("active-bg-color").value[0]+","+E.core("active-bg-color").value[1]+","+E.core("active-bg-color").value[2]+","+E.core("active-bg-opacity").value+")",O.beginPath(),O.arc(Y.x,Y.y,E.core("active-bg-size").pfValue/m,0,2*Math.PI),O.fill()}var W=s.lastRedrawTime;if(s.showFps&&W){W=Math.round(W);var z=Math.round(1e3/W);O.setTransform(1,0,0,1,0,0),O.fillStyle="rgba(255, 0, 0, 0.75)",O.strokeStyle="rgba(255, 0, 0, 0.75)",O.lineWidth=1,O.fillText("1 frame = "+W+" ms = "+z+" fps",0,20);var K=60;O.strokeRect(0,30,250,20),O.fillRect(0,30,250*Math.min(z/K,1),20)}r||(f[s.SELECT_BOX]=!1)}if(c&&v!==1){var j=u.contexts[s.NODE],Q=s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_NODE],ee=u.contexts[s.DRAG],ne=s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_DRAG],ce=function(re,ue,le){re.setTransform(1,0,0,1,0,0),le||!y?re.clearRect(0,0,s.canvasWidth,s.canvasHeight):A(re,0,0,s.canvasWidth,s.canvasHeight);var se=v;re.drawImage(ue,0,0,s.canvasWidth*se,s.canvasHeight*se,0,0,s.canvasWidth,s.canvasHeight)};(f[s.NODE]||F[s.NODE])&&(ce(j,Q,F[s.NODE]),f[s.NODE]=!1),(f[s.DRAG]||F[s.DRAG])&&(ce(ee,ne,F[s.DRAG]),f[s.DRAG]=!1)}s.prevViewport=b,s.clearingMotionBlur&&(s.clearingMotionBlur=!1,s.motionBlurCleared=!0,s.motionBlur=!0),c&&(s.motionBlurTimeout=setTimeout(function(){s.motionBlurTimeout=null,s.clearedForMotionBlur[s.NODE]=!1,s.clearedForMotionBlur[s.DRAG]=!1,s.motionBlur=!1,s.clearingMotionBlur=!h,s.mbFrames=0,f[s.NODE]=!0,f[s.DRAG]=!0,s.redraw()},fm)),e||l.emit("render")};var Qt={};Qt.drawPolygonPath=function(t,e,r,a,n,i){var s=a/2,o=n/2;t.beginPath&&t.beginPath(),t.moveTo(e+s*i[0],r+o*i[1]);for(var l=1;l<i.length/2;l++)t.lineTo(e+s*i[l*2],r+o*i[l*2+1]);t.closePath()};Qt.drawRoundPolygonPath=function(t,e,r,a,n,i){var s=a/2,o=n/2,l=hi(a,n);t.beginPath&&t.beginPath();for(var u=0;u<i.length/4;u++){var f=void 0,h=void 0;u===0?f=i.length-2:f=u*4-2,h=u*4+2;var c=e+s*i[u*4],v=r+o*i[u*4+1],d=-i[f]*i[h]-i[f+1]*i[h+1],g=l/Math.tan(Math.acos(d)/2),p=c-g*i[f],y=v-g*i[f+1],E=c+g*i[h],m=v+g*i[h+1];u===0?t.moveTo(p,y):t.lineTo(p,y),t.arcTo(c,v,E,m,l)}t.closePath()};Qt.drawRoundRectanglePath=function(t,e,r,a,n){var i=a/2,s=n/2,o=da(a,n);t.beginPath&&t.beginPath(),t.moveTo(e,r-s),t.arcTo(e+i,r-s,e+i,r,o),t.arcTo(e+i,r+s,e,r+s,o),t.arcTo(e-i,r+s,e-i,r,o),t.arcTo(e-i,r-s,e,r-s,o),t.lineTo(e,r-s),t.closePath()};Qt.drawBottomRoundRectanglePath=function(t,e,r,a,n){var i=a/2,s=n/2,o=da(a,n);t.beginPath&&t.beginPath(),t.moveTo(e,r-s),t.lineTo(e+i,r-s),t.lineTo(e+i,r),t.arcTo(e+i,r+s,e,r+s,o),t.arcTo(e-i,r+s,e-i,r,o),t.lineTo(e-i,r-s),t.lineTo(e,r-s),t.closePath()};Qt.drawCutRectanglePath=function(t,e,r,a,n){var i=a/2,s=n/2,o=Do();t.beginPath&&t.beginPath(),t.moveTo(e-i+o,r-s),t.lineTo(e+i-o,r-s),t.lineTo(e+i,r-s+o),t.lineTo(e+i,r+s-o),t.lineTo(e+i-o,r+s),t.lineTo(e-i+o,r+s),t.lineTo(e-i,r+s-o),t.lineTo(e-i,r-s+o),t.closePath()};Qt.drawBarrelPath=function(t,e,r,a,n){var i=a/2,s=n/2,o=e-i,l=e+i,u=r-s,f=r+s,h=zn(a,n),c=h.widthOffset,v=h.heightOffset,d=h.ctrlPtOffsetPct*c;t.beginPath&&t.beginPath(),t.moveTo(o,u+v),t.lineTo(o,f-v),t.quadraticCurveTo(o+d,f,o+c,f),t.lineTo(l-c,f),t.quadraticCurveTo(l-d,f,l,f-v),t.lineTo(l,u+v),t.quadraticCurveTo(l-d,u,l-c,u),t.lineTo(o+c,u),t.quadraticCurveTo(o+d,u,o,u+v),t.closePath()};var $s=Math.sin(0),Vs=Math.cos(0),Wn={},qn={},bl=Math.PI/40;for(var mr=0*Math.PI;mr<2*Math.PI;mr+=bl)Wn[mr]=Math.sin(mr),qn[mr]=Math.cos(mr);Qt.drawEllipsePath=function(t,e,r,a,n){if(t.beginPath&&t.beginPath(),t.ellipse)t.ellipse(e,r,a/2,n/2,0,0,2*Math.PI);else for(var i,s,o=a/2,l=n/2,u=0*Math.PI;u<2*Math.PI;u+=bl)i=e-o*Wn[u]*$s+o*qn[u]*Vs,s=r+l*qn[u]*$s+l*Wn[u]*Vs,u===0?t.moveTo(i,s):t.lineTo(i,s);t.closePath()};var ba={};ba.createBuffer=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,[r,r.getContext("2d")]};ba.bufferCanvasImage=function(t){var e=this.cy,r=e.mutableElements(),a=r.boundingBox(),n=this.findContainerClientCoords(),i=t.full?Math.ceil(a.w):n[2],s=t.full?Math.ceil(a.h):n[3],o=ae(t.maxWidth)||ae(t.maxHeight),l=this.getPixelRatio(),u=1;if(t.scale!==void 0)i*=t.scale,s*=t.scale,u=t.scale;else if(o){var f=1/0,h=1/0;ae(t.maxWidth)&&(f=u*t.maxWidth/i),ae(t.maxHeight)&&(h=u*t.maxHeight/s),u=Math.min(f,h),i*=u,s*=u}o||(i*=l,s*=l,u*=l);var c=document.createElement("canvas");c.width=i,c.height=s,c.style.width=i+"px",c.style.height=s+"px";var v=c.getContext("2d");if(i>0&&s>0){v.clearRect(0,0,i,s),v.globalCompositeOperation="source-over";var d=this.getCachedZSortedEles();if(t.full)v.translate(-a.x1*u,-a.y1*u),v.scale(u,u),this.drawElements(v,d),v.scale(1/u,1/u),v.translate(a.x1*u,a.y1*u);else{var g=e.pan(),p={x:g.x*u,y:g.y*u};u*=e.zoom(),v.translate(p.x,p.y),v.scale(u,u),this.drawElements(v,d),v.scale(1/u,1/u),v.translate(-p.x,-p.y)}t.bg&&(v.globalCompositeOperation="destination-over",v.fillStyle=t.bg,v.rect(0,0,i,s),v.fill())}return c};function hm(t,e){for(var r=atob(t),a=new ArrayBuffer(r.length),n=new Uint8Array(a),i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return new Blob([a],{type:e})}function _s(t){var e=t.indexOf(",");return t.substr(e+1)}function El(t,e,r){var a=function(){return e.toDataURL(r,t.quality)};switch(t.output){case"blob-promise":return new Rr(function(n,i){try{e.toBlob(function(s){s!=null?n(s):i(new Error("`canvas.toBlob()` sent a null value in its callback"))},r,t.quality)}catch(s){i(s)}});case"blob":return hm(_s(a()),r);case"base64":return _s(a());case"base64uri":default:return a()}}ba.png=function(t){return El(t,this.bufferCanvasImage(t),"image/png")};ba.jpg=function(t){return El(t,this.bufferCanvasImage(t),"image/jpeg")};var wl={};wl.nodeShapeImpl=function(t,e,r,a,n,i,s){switch(t){case"ellipse":return this.drawEllipsePath(e,r,a,n,i);case"polygon":return this.drawPolygonPath(e,r,a,n,i,s);case"round-polygon":return this.drawRoundPolygonPath(e,r,a,n,i,s);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(e,r,a,n,i);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(e,r,a,n,i);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(e,r,a,n,i);case"barrel":return this.drawBarrelPath(e,r,a,n,i)}};var vm=xl,Le=xl.prototype;Le.CANVAS_LAYERS=3;Le.SELECT_BOX=0;Le.DRAG=1;Le.NODE=2;Le.BUFFER_COUNT=3;Le.TEXTURE_BUFFER=0;Le.MOTIONBLUR_BUFFER_NODE=1;Le.MOTIONBLUR_BUFFER_DRAG=2;function xl(t){var e=this;e.data={canvases:new Array(Le.CANVAS_LAYERS),contexts:new Array(Le.CANVAS_LAYERS),canvasNeedsRedraw:new Array(Le.CANVAS_LAYERS),bufferCanvases:new Array(Le.BUFFER_COUNT),bufferContexts:new Array(Le.CANVAS_LAYERS)};var r="-webkit-tap-highlight-color",a="rgba(0,0,0,0)";e.data.canvasContainer=document.createElement("div");var n=e.data.canvasContainer.style;e.data.canvasContainer.style[r]=a,n.position="relative",n.zIndex="0",n.overflow="hidden";var i=t.cy.container();i.appendChild(e.data.canvasContainer),i.style[r]=a;var s={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};Wc()&&(s["-ms-touch-action"]="none",s["touch-action"]="none");for(var o=0;o<Le.CANVAS_LAYERS;o++){var l=e.data.canvases[o]=document.createElement("canvas");e.data.contexts[o]=l.getContext("2d"),Object.keys(s).forEach(function(W){l.style[W]=s[W]}),l.style.position="absolute",l.setAttribute("data-id","layer"+o),l.style.zIndex=String(Le.CANVAS_LAYERS-o),e.data.canvasContainer.appendChild(l),e.data.canvasNeedsRedraw[o]=!1}e.data.topCanvas=e.data.canvases[0],e.data.canvases[Le.NODE].setAttribute("data-id","layer"+Le.NODE+"-node"),e.data.canvases[Le.SELECT_BOX].setAttribute("data-id","layer"+Le.SELECT_BOX+"-selectbox"),e.data.canvases[Le.DRAG].setAttribute("data-id","layer"+Le.DRAG+"-drag");for(var o=0;o<Le.BUFFER_COUNT;o++)e.data.bufferCanvases[o]=document.createElement("canvas"),e.data.bufferContexts[o]=e.data.bufferCanvases[o].getContext("2d"),e.data.bufferCanvases[o].style.position="absolute",e.data.bufferCanvases[o].setAttribute("data-id","buffer"+o),e.data.bufferCanvases[o].style.zIndex=String(-o-1),e.data.bufferCanvases[o].style.visibility="hidden";e.pathsEnabled=!0;var u=ft(),f=function(z){return{x:(z.x1+z.x2)/2,y:(z.y1+z.y2)/2}},h=function(z){return{x:-z.w/2,y:-z.h/2}},c=function(z){var K=z[0]._private,j=K.oldBackgroundTimestamp===K.backgroundTimestamp;return!j},v=function(z){return z[0]._private.nodeKey},d=function(z){return z[0]._private.labelStyleKey},g=function(z){return z[0]._private.sourceLabelStyleKey},p=function(z){return z[0]._private.targetLabelStyleKey},y=function(z,K,j,Q,ee){return e.drawElement(z,K,j,!1,!1,ee)},E=function(z,K,j,Q,ee){return e.drawElementText(z,K,j,Q,"main",ee)},m=function(z,K,j,Q,ee){return e.drawElementText(z,K,j,Q,"source",ee)},T=function(z,K,j,Q,ee){return e.drawElementText(z,K,j,Q,"target",ee)},C=function(z){return z.boundingBox(),z[0]._private.bodyBounds},S=function(z){return z.boundingBox(),z[0]._private.labelBounds.main||u},b=function(z){return z.boundingBox(),z[0]._private.labelBounds.source||u},x=function(z){return z.boundingBox(),z[0]._private.labelBounds.target||u},w=function(z,K){return K},D=function(z){return f(C(z))},A=function(z,K,j){var Q=z?z+"-":"";return{x:K.x+j.pstyle(Q+"text-margin-x").pfValue,y:K.y+j.pstyle(Q+"text-margin-y").pfValue}},L=function(z,K,j){var Q=z[0]._private.rscratch;return{x:Q[K],y:Q[j]}},I=function(z){return A("",L(z,"labelX","labelY"),z)},O=function(z){return A("source",L(z,"sourceLabelX","sourceLabelY"),z)},P=function(z){return A("target",L(z,"targetLabelX","targetLabelY"),z)},R=function(z){return h(C(z))},M=function(z){return h(b(z))},k=function(z){return h(x(z))},B=function(z){var K=S(z),j=h(S(z));if(z.isNode()){switch(z.pstyle("text-halign").value){case"left":j.x=-K.w;break;case"right":j.x=0;break}switch(z.pstyle("text-valign").value){case"top":j.y=-K.h;break;case"bottom":j.y=0;break}}return j},G=e.data.eleTxrCache=new Kr(e,{getKey:v,doesEleInvalidateKey:c,drawElement:y,getBoundingBox:C,getRotationPoint:D,getRotationOffset:R,allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),F=e.data.lblTxrCache=new Kr(e,{getKey:d,drawElement:E,getBoundingBox:S,getRotationPoint:I,getRotationOffset:B,isVisible:w}),$=e.data.slbTxrCache=new Kr(e,{getKey:g,drawElement:m,getBoundingBox:b,getRotationPoint:O,getRotationOffset:M,isVisible:w}),U=e.data.tlbTxrCache=new Kr(e,{getKey:p,drawElement:T,getBoundingBox:x,getRotationPoint:P,getRotationOffset:k,isVisible:w}),_=e.data.lyrTxrCache=new gl(e);e.onUpdateEleCalcs(function(z,K){G.invalidateElements(K),F.invalidateElements(K),$.invalidateElements(K),U.invalidateElements(K),_.invalidateElements(K);for(var j=0;j<K.length;j++){var Q=K[j]._private;Q.oldBackgroundTimestamp=Q.backgroundTimestamp}});var Y=function(z){for(var K=0;K<z.length;K++)_.enqueueElementRefinement(z[K].ele)};G.onDequeue(Y),F.onDequeue(Y),$.onDequeue(Y),U.onDequeue(Y)}Le.redrawHint=function(t,e){var r=this;switch(t){case"eles":r.data.canvasNeedsRedraw[Le.NODE]=e;break;case"drag":r.data.canvasNeedsRedraw[Le.DRAG]=e;break;case"select":r.data.canvasNeedsRedraw[Le.SELECT_BOX]=e;break}};var cm=typeof Path2D<"u";Le.path2dEnabled=function(t){if(t===void 0)return this.pathsEnabled;this.pathsEnabled=!!t};Le.usePaths=function(){return cm&&this.pathsEnabled};Le.setImgSmoothing=function(t,e){t.imageSmoothingEnabled!=null?t.imageSmoothingEnabled=e:(t.webkitImageSmoothingEnabled=e,t.mozImageSmoothingEnabled=e,t.msImageSmoothingEnabled=e)};Le.getImgSmoothing=function(t){return t.imageSmoothingEnabled!=null?t.imageSmoothingEnabled:t.webkitImageSmoothingEnabled||t.mozImageSmoothingEnabled||t.msImageSmoothingEnabled};Le.makeOffscreenCanvas=function(t,e){var r;return(typeof OffscreenCanvas>"u"?"undefined":Ue(OffscreenCanvas))!=="undefined"?r=new OffscreenCanvas(t,e):(r=document.createElement("canvas"),r.width=t,r.height=e),r};[pl,Nt,Bt,wi,hr,Gr,vt,Qt,ba,wl].forEach(function(t){de(Le,t)});var dm=[{name:"null",impl:sl},{name:"base",impl:cl},{name:"canvas",impl:vm}],gm=[{type:"layout",extensions:Ty},{type:"renderer",extensions:dm}],Tl={},Cl={};function Dl(t,e,r){var a=r,n=function(x){Ne("Can not register `"+e+"` for `"+t+"` since `"+x+"` already exists in the prototype and can not be overridden")};if(t==="core"){if(oa.prototype[e])return n(e);oa.prototype[e]=r}else if(t==="collection"){if(Ze.prototype[e])return n(e);Ze.prototype[e]=r}else if(t==="layout"){for(var i=function(x){this.options=x,r.call(this,x),De(this._private)||(this._private={}),this._private.cy=x.cy,this._private.listeners=[],this.createEmitter()},s=i.prototype=Object.create(r.prototype),o=[],l=0;l<o.length;l++){var u=o[l];s[u]=s[u]||function(){return this}}s.start&&!s.run?s.run=function(){return this.start(),this}:!s.start&&s.run&&(s.start=function(){return this.run(),this});var f=r.prototype.stop;s.stop=function(){var b=this.options;if(b&&b.animate){var x=this.animations;if(x)for(var w=0;w<x.length;w++)x[w].stop()}return f?f.call(this):this.emit("layoutstop"),this},s.destroy||(s.destroy=function(){return this}),s.cy=function(){return this._private.cy};var h=function(x){return x._private.cy},c={addEventFields:function(x,w){w.layout=x,w.cy=h(x),w.target=x},bubble:function(){return!0},parent:function(x){return h(x)}};de(s,{createEmitter:function(){return this._private.emitter=new cn(c,this),this},emitter:function(){return this._private.emitter},on:function(x,w){return this.emitter().on(x,w),this},one:function(x,w){return this.emitter().one(x,w),this},once:function(x,w){return this.emitter().one(x,w),this},removeListener:function(x,w){return this.emitter().removeListener(x,w),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},emit:function(x,w){return this.emitter().emit(x,w),this}}),Oe.eventAliasesOn(s),a=i}else if(t==="renderer"&&e!=="null"&&e!=="base"){var v=Sl("renderer","base"),d=v.prototype,g=r,p=r.prototype,y=function(){v.apply(this,arguments),g.apply(this,arguments)},E=y.prototype;for(var m in d){var T=d[m],C=p[m]!=null;if(C)return n(m);E[m]=T}for(var S in p)E[S]=p[S];d.clientFunctions.forEach(function(b){E[b]=E[b]||function(){Ge("Renderer does not implement `renderer."+b+"()` on its prototype")}}),a=y}else if(t==="__proto__"||t==="constructor"||t==="prototype")return Ge(t+" is an illegal type to be registered, possibly lead to prototype pollutions");return lo({map:Tl,keys:[t,e],value:a})}function Sl(t,e){return uo({map:Tl,keys:[t,e]})}function pm(t,e,r,a,n){return lo({map:Cl,keys:[t,e,r,a],value:n})}function ym(t,e,r,a){return uo({map:Cl,keys:[t,e,r,a]})}var Kn=function(){if(arguments.length===2)return Sl.apply(null,arguments);if(arguments.length===3)return Dl.apply(null,arguments);if(arguments.length===4)return ym.apply(null,arguments);if(arguments.length===5)return pm.apply(null,arguments);Ge("Invalid extension access syntax")};oa.prototype.extension=Kn;gm.forEach(function(t){t.extensions.forEach(function(e){Dl(t.type,e.name,e.impl)})});var Ll=function t(){if(!(this instanceof t))return new t;this.length=0},or=Ll.prototype;or.instanceString=function(){return"stylesheet"};or.selector=function(t){var e=this.length++;return this[e]={selector:t,properties:[]},this};or.css=function(t,e){var r=this.length-1;if(ve(t))this[r].properties.push({name:t,value:e});else if(De(t))for(var a=t,n=Object.keys(a),i=0;i<n.length;i++){var s=n[i],o=a[s];if(o!=null){var l=et.properties[s]||et.properties[ln(s)];if(l!=null){var u=l.name,f=o;this[r].properties.push({name:u,value:f})}}}return this};or.style=or.css;or.generateStyle=function(t){var e=new et(t);return this.appendToStyle(e)};or.appendToStyle=function(t){for(var e=0;e<this.length;e++){var r=this[e],a=r.selector,n=r.properties;t.selector(a);for(var i=0;i<n.length;i++){var s=n[i];t.css(s.name,s.value)}}return t};var mm="3.28.1",lr=function(e){if(e===void 0&&(e={}),De(e))return new oa(e);if(ve(e))return Kn.apply(Kn,arguments)};lr.use=function(t){var e=Array.prototype.slice.call(arguments,1);return e.unshift(lr),t.apply(null,e),this};lr.warnings=function(t){return po(t)};lr.version=mm;lr.stylesheet=lr.Stylesheet=Ll;var bm=lr;const Al=Ys(bm);var Ol={exports:{}},Bn={exports:{}},Fn={exports:{}},Us;function Em(){return Us||(Us=1,function(t,e){(function(a,n){t.exports=n()})(Vt,function(){return function(r){var a={};function n(i){if(a[i])return a[i].exports;var s=a[i]={i,l:!1,exports:{}};return r[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=r,n.c=a,n.i=function(i){return i},n.d=function(i,s,o){n.o(i,s)||Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:o})},n.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return n.d(s,"a",s),s},n.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},n.p="",n(n.s=26)}([function(r,a,n){function i(){}i.QUALITY=1,i.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,i.DEFAULT_INCREMENTAL=!1,i.DEFAULT_ANIMATION_ON_LAYOUT=!0,i.DEFAULT_ANIMATION_DURING_LAYOUT=!1,i.DEFAULT_ANIMATION_PERIOD=50,i.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,i.DEFAULT_GRAPH_MARGIN=15,i.NODE_DIMENSIONS_INCLUDE_LABELS=!1,i.SIMPLE_NODE_SIZE=40,i.SIMPLE_NODE_HALF_SIZE=i.SIMPLE_NODE_SIZE/2,i.EMPTY_COMPOUND_NODE_SIZE=40,i.MIN_EDGE_LENGTH=1,i.WORLD_BOUNDARY=1e6,i.INITIAL_WORLD_BOUNDARY=i.WORLD_BOUNDARY/1e3,i.WORLD_CENTER_X=1200,i.WORLD_CENTER_Y=900,r.exports=i},function(r,a,n){var i=n(2),s=n(8),o=n(9);function l(f,h,c){i.call(this,c),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=c,this.bendpoints=[],this.source=f,this.target=h}l.prototype=Object.create(i.prototype);for(var u in i)l[u]=i[u];l.prototype.getSource=function(){return this.source},l.prototype.getTarget=function(){return this.target},l.prototype.isInterGraph=function(){return this.isInterGraph},l.prototype.getLength=function(){return this.length},l.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},l.prototype.getBendpoints=function(){return this.bendpoints},l.prototype.getLca=function(){return this.lca},l.prototype.getSourceInLca=function(){return this.sourceInLca},l.prototype.getTargetInLca=function(){return this.targetInLca},l.prototype.getOtherEnd=function(f){if(this.source===f)return this.target;if(this.target===f)return this.source;throw"Node is not incident with this edge"},l.prototype.getOtherEndInGraph=function(f,h){for(var c=this.getOtherEnd(f),v=h.getGraphManager().getRoot();;){if(c.getOwner()==h)return c;if(c.getOwner()==v)break;c=c.getOwner().getParent()}return null},l.prototype.updateLength=function(){var f=new Array(4);this.isOverlapingSourceAndTarget=s.getIntersection(this.target.getRect(),this.source.getRect(),f),this.isOverlapingSourceAndTarget||(this.lengthX=f[0]-f[2],this.lengthY=f[1]-f[3],Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},l.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},r.exports=l},function(r,a,n){function i(s){this.vGraphObject=s}r.exports=i},function(r,a,n){var i=n(2),s=n(10),o=n(13),l=n(0),u=n(16),f=n(4);function h(v,d,g,p){g==null&&p==null&&(p=d),i.call(this,p),v.graphManager!=null&&(v=v.graphManager),this.estimatedSize=s.MIN_VALUE,this.inclusionTreeDepth=s.MAX_VALUE,this.vGraphObject=p,this.edges=[],this.graphManager=v,g!=null&&d!=null?this.rect=new o(d.x,d.y,g.width,g.height):this.rect=new o}h.prototype=Object.create(i.prototype);for(var c in i)h[c]=i[c];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(v){this.rect.width=v},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(v){this.rect.height=v},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new f(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new f(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(v,d){this.rect.x=v.x,this.rect.y=v.y,this.rect.width=d.width,this.rect.height=d.height},h.prototype.setCenter=function(v,d){this.rect.x=v-this.rect.width/2,this.rect.y=d-this.rect.height/2},h.prototype.setLocation=function(v,d){this.rect.x=v,this.rect.y=d},h.prototype.moveBy=function(v,d){this.rect.x+=v,this.rect.y+=d},h.prototype.getEdgeListToNode=function(v){var d=[],g=this;return g.edges.forEach(function(p){if(p.target==v){if(p.source!=g)throw"Incorrect edge source!";d.push(p)}}),d},h.prototype.getEdgesBetween=function(v){var d=[],g=this;return g.edges.forEach(function(p){if(!(p.source==g||p.target==g))throw"Incorrect edge source and/or target";(p.target==v||p.source==v)&&d.push(p)}),d},h.prototype.getNeighborsList=function(){var v=new Set,d=this;return d.edges.forEach(function(g){if(g.source==d)v.add(g.target);else{if(g.target!=d)throw"Incorrect incidency!";v.add(g.source)}}),v},h.prototype.withChildren=function(){var v=new Set,d,g;if(v.add(this),this.child!=null)for(var p=this.child.getNodes(),y=0;y<p.length;y++)d=p[y],g=d.withChildren(),g.forEach(function(E){v.add(E)});return v},h.prototype.getNoOfChildren=function(){var v=0,d;if(this.child==null)v=1;else for(var g=this.child.getNodes(),p=0;p<g.length;p++)d=g[p],v+=d.getNoOfChildren();return v==0&&(v=1),v},h.prototype.getEstimatedSize=function(){if(this.estimatedSize==s.MIN_VALUE)throw"assert failed";return this.estimatedSize},h.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},h.prototype.scatter=function(){var v,d,g=-l.INITIAL_WORLD_BOUNDARY,p=l.INITIAL_WORLD_BOUNDARY;v=l.WORLD_CENTER_X+u.nextDouble()*(p-g)+g;var y=-l.INITIAL_WORLD_BOUNDARY,E=l.INITIAL_WORLD_BOUNDARY;d=l.WORLD_CENTER_Y+u.nextDouble()*(E-y)+y,this.rect.x=v,this.rect.y=d},h.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var v=this.getChild();if(v.updateBounds(!0),this.rect.x=v.getLeft(),this.rect.y=v.getTop(),this.setWidth(v.getRight()-v.getLeft()),this.setHeight(v.getBottom()-v.getTop()),l.NODE_DIMENSIONS_INCLUDE_LABELS){var d=v.getRight()-v.getLeft(),g=v.getBottom()-v.getTop();this.labelWidth>d&&(this.rect.x-=(this.labelWidth-d)/2,this.setWidth(this.labelWidth)),this.labelHeight>g&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-g)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-g),this.setHeight(this.labelHeight))}}},h.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==s.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},h.prototype.transform=function(v){var d=this.rect.x;d>l.WORLD_BOUNDARY?d=l.WORLD_BOUNDARY:d<-l.WORLD_BOUNDARY&&(d=-l.WORLD_BOUNDARY);var g=this.rect.y;g>l.WORLD_BOUNDARY?g=l.WORLD_BOUNDARY:g<-l.WORLD_BOUNDARY&&(g=-l.WORLD_BOUNDARY);var p=new f(d,g),y=v.inverseTransformPoint(p);this.setLocation(y.x,y.y)},h.prototype.getLeft=function(){return this.rect.x},h.prototype.getRight=function(){return this.rect.x+this.rect.width},h.prototype.getTop=function(){return this.rect.y},h.prototype.getBottom=function(){return this.rect.y+this.rect.height},h.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=h},function(r,a,n){function i(s,o){s==null&&o==null?(this.x=0,this.y=0):(this.x=s,this.y=o)}i.prototype.getX=function(){return this.x},i.prototype.getY=function(){return this.y},i.prototype.setX=function(s){this.x=s},i.prototype.setY=function(s){this.y=s},i.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},i.prototype.getCopy=function(){return new i(this.x,this.y)},i.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},r.exports=i},function(r,a,n){var i=n(2),s=n(10),o=n(0),l=n(6),u=n(3),f=n(1),h=n(13),c=n(12),v=n(11);function d(p,y,E){i.call(this,E),this.estimatedSize=s.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=p,y!=null&&y instanceof l?this.graphManager=y:y!=null&&y instanceof Layout&&(this.graphManager=y.graphManager)}d.prototype=Object.create(i.prototype);for(var g in i)d[g]=i[g];d.prototype.getNodes=function(){return this.nodes},d.prototype.getEdges=function(){return this.edges},d.prototype.getGraphManager=function(){return this.graphManager},d.prototype.getParent=function(){return this.parent},d.prototype.getLeft=function(){return this.left},d.prototype.getRight=function(){return this.right},d.prototype.getTop=function(){return this.top},d.prototype.getBottom=function(){return this.bottom},d.prototype.isConnected=function(){return this.isConnected},d.prototype.add=function(p,y,E){if(y==null&&E==null){var m=p;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(m)>-1)throw"Node already in graph!";return m.owner=this,this.getNodes().push(m),m}else{var T=p;if(!(this.getNodes().indexOf(y)>-1&&this.getNodes().indexOf(E)>-1))throw"Source or target not in graph!";if(!(y.owner==E.owner&&y.owner==this))throw"Both owners must be this graph!";return y.owner!=E.owner?null:(T.source=y,T.target=E,T.isInterGraph=!1,this.getEdges().push(T),y.edges.push(T),E!=y&&E.edges.push(T),T)}},d.prototype.remove=function(p){var y=p;if(p instanceof u){if(y==null)throw"Node is null!";if(!(y.owner!=null&&y.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var E=y.edges.slice(),m,T=E.length,C=0;C<T;C++)m=E[C],m.isInterGraph?this.graphManager.remove(m):m.source.owner.remove(m);var S=this.nodes.indexOf(y);if(S==-1)throw"Node not in owner node list!";this.nodes.splice(S,1)}else if(p instanceof f){var m=p;if(m==null)throw"Edge is null!";if(!(m.source!=null&&m.target!=null))throw"Source and/or target is null!";if(!(m.source.owner!=null&&m.target.owner!=null&&m.source.owner==this&&m.target.owner==this))throw"Source and/or target owner is invalid!";var b=m.source.edges.indexOf(m),x=m.target.edges.indexOf(m);if(!(b>-1&&x>-1))throw"Source and/or target doesn't know this edge!";m.source.edges.splice(b,1),m.target!=m.source&&m.target.edges.splice(x,1);var S=m.source.owner.getEdges().indexOf(m);if(S==-1)throw"Not in owner's edge list!";m.source.owner.getEdges().splice(S,1)}},d.prototype.updateLeftTop=function(){for(var p=s.MAX_VALUE,y=s.MAX_VALUE,E,m,T,C=this.getNodes(),S=C.length,b=0;b<S;b++){var x=C[b];E=x.getTop(),m=x.getLeft(),p>E&&(p=E),y>m&&(y=m)}return p==s.MAX_VALUE?null:(C[0].getParent().paddingLeft!=null?T=C[0].getParent().paddingLeft:T=this.margin,this.left=y-T,this.top=p-T,new c(this.left,this.top))},d.prototype.updateBounds=function(p){for(var y=s.MAX_VALUE,E=-s.MAX_VALUE,m=s.MAX_VALUE,T=-s.MAX_VALUE,C,S,b,x,w,D=this.nodes,A=D.length,L=0;L<A;L++){var I=D[L];p&&I.child!=null&&I.updateBounds(),C=I.getLeft(),S=I.getRight(),b=I.getTop(),x=I.getBottom(),y>C&&(y=C),E<S&&(E=S),m>b&&(m=b),T<x&&(T=x)}var O=new h(y,m,E-y,T-m);y==s.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),D[0].getParent().paddingLeft!=null?w=D[0].getParent().paddingLeft:w=this.margin,this.left=O.x-w,this.right=O.x+O.width+w,this.top=O.y-w,this.bottom=O.y+O.height+w},d.calculateBounds=function(p){for(var y=s.MAX_VALUE,E=-s.MAX_VALUE,m=s.MAX_VALUE,T=-s.MAX_VALUE,C,S,b,x,w=p.length,D=0;D<w;D++){var A=p[D];C=A.getLeft(),S=A.getRight(),b=A.getTop(),x=A.getBottom(),y>C&&(y=C),E<S&&(E=S),m>b&&(m=b),T<x&&(T=x)}var L=new h(y,m,E-y,T-m);return L},d.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},d.prototype.getEstimatedSize=function(){if(this.estimatedSize==s.MIN_VALUE)throw"assert failed";return this.estimatedSize},d.prototype.calcEstimatedSize=function(){for(var p=0,y=this.nodes,E=y.length,m=0;m<E;m++){var T=y[m];p+=T.calcEstimatedSize()}return p==0?this.estimatedSize=o.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=p/Math.sqrt(this.nodes.length),this.estimatedSize},d.prototype.updateConnected=function(){var p=this;if(this.nodes.length==0){this.isConnected=!0;return}var y=new v,E=new Set,m=this.nodes[0],T,C,S=m.withChildren();for(S.forEach(function(L){y.push(L),E.add(L)});y.length!==0;){m=y.shift(),T=m.getEdges();for(var b=T.length,x=0;x<b;x++){var w=T[x];if(C=w.getOtherEndInGraph(m,this),C!=null&&!E.has(C)){var D=C.withChildren();D.forEach(function(L){y.push(L),E.add(L)})}}}if(this.isConnected=!1,E.size>=this.nodes.length){var A=0;E.forEach(function(L){L.owner==p&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},r.exports=d},function(r,a,n){var i,s=n(1);function o(l){i=n(5),this.layout=l,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var l=this.layout.newGraph(),u=this.layout.newNode(null),f=this.add(l,u);return this.setRootGraph(f),this.rootGraph},o.prototype.add=function(l,u,f,h,c){if(f==null&&h==null&&c==null){if(l==null)throw"Graph is null!";if(u==null)throw"Parent node is null!";if(this.graphs.indexOf(l)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(l),l.parent!=null)throw"Already has a parent!";if(u.child!=null)throw"Already has a child!";return l.parent=u,u.child=l,l}else{c=f,h=u,f=l;var v=h.getOwner(),d=c.getOwner();if(!(v!=null&&v.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(d!=null&&d.getGraphManager()==this))throw"Target not in this graph mgr!";if(v==d)return f.isInterGraph=!1,v.add(f,h,c);if(f.isInterGraph=!0,f.source=h,f.target=c,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},o.prototype.remove=function(l){if(l instanceof i){var u=l;if(u.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(u==this.rootGraph||u.parent!=null&&u.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(u.getEdges());for(var h,c=f.length,v=0;v<c;v++)h=f[v],u.remove(h);var d=[];d=d.concat(u.getNodes());var g;c=d.length;for(var v=0;v<c;v++)g=d[v],u.remove(g);u==this.rootGraph&&this.setRootGraph(null);var p=this.graphs.indexOf(u);this.graphs.splice(p,1),u.parent=null}else if(l instanceof s){if(h=l,h==null)throw"Edge is null!";if(!h.isInterGraph)throw"Not an inter-graph edge!";if(!(h.source!=null&&h.target!=null))throw"Source and/or target is null!";if(!(h.source.edges.indexOf(h)!=-1&&h.target.edges.indexOf(h)!=-1))throw"Source and/or target doesn't know this edge!";var p=h.source.edges.indexOf(h);if(h.source.edges.splice(p,1),p=h.target.edges.indexOf(h),h.target.edges.splice(p,1),!(h.source.owner!=null&&h.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(h.source.owner.getGraphManager().edges.indexOf(h)==-1)throw"Not in owner graph manager's edge list!";var p=h.source.owner.getGraphManager().edges.indexOf(h);h.source.owner.getGraphManager().edges.splice(p,1)}},o.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},o.prototype.getGraphs=function(){return this.graphs},o.prototype.getAllNodes=function(){if(this.allNodes==null){for(var l=[],u=this.getGraphs(),f=u.length,h=0;h<f;h++)l=l.concat(u[h].getNodes());this.allNodes=l}return this.allNodes},o.prototype.resetAllNodes=function(){this.allNodes=null},o.prototype.resetAllEdges=function(){this.allEdges=null},o.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},o.prototype.getAllEdges=function(){if(this.allEdges==null){var l=[],u=this.getGraphs();u.length;for(var f=0;f<u.length;f++)l=l.concat(u[f].getEdges());l=l.concat(this.edges),this.allEdges=l}return this.allEdges},o.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},o.prototype.setAllNodesToApplyGravitation=function(l){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=l},o.prototype.getRoot=function(){return this.rootGraph},o.prototype.setRootGraph=function(l){if(l.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=l,l.parent==null&&(l.parent=this.layout.newNode("Root node"))},o.prototype.getLayout=function(){return this.layout},o.prototype.isOneAncestorOfOther=function(l,u){if(!(l!=null&&u!=null))throw"assert failed";if(l==u)return!0;var f=l.getOwner(),h;do{if(h=f.getParent(),h==null)break;if(h==u)return!0;if(f=h.getOwner(),f==null)break}while(!0);f=u.getOwner();do{if(h=f.getParent(),h==null)break;if(h==l)return!0;if(f=h.getOwner(),f==null)break}while(!0);return!1},o.prototype.calcLowestCommonAncestors=function(){for(var l,u,f,h,c,v=this.getAllEdges(),d=v.length,g=0;g<d;g++){if(l=v[g],u=l.source,f=l.target,l.lca=null,l.sourceInLca=u,l.targetInLca=f,u==f){l.lca=u.getOwner();continue}for(h=u.getOwner();l.lca==null;){for(l.targetInLca=f,c=f.getOwner();l.lca==null;){if(c==h){l.lca=c;break}if(c==this.rootGraph)break;if(l.lca!=null)throw"assert failed";l.targetInLca=c.getParent(),c=l.targetInLca.getOwner()}if(h==this.rootGraph)break;l.lca==null&&(l.sourceInLca=h.getParent(),h=l.sourceInLca.getOwner())}if(l.lca==null)throw"assert failed"}},o.prototype.calcLowestCommonAncestor=function(l,u){if(l==u)return l.getOwner();var f=l.getOwner();do{if(f==null)break;var h=u.getOwner();do{if(h==null)break;if(h==f)return h;h=h.getParent().getOwner()}while(!0);f=f.getParent().getOwner()}while(!0);return f},o.prototype.calcInclusionTreeDepths=function(l,u){l==null&&u==null&&(l=this.rootGraph,u=1);for(var f,h=l.getNodes(),c=h.length,v=0;v<c;v++)f=h[v],f.inclusionTreeDepth=u,f.child!=null&&this.calcInclusionTreeDepths(f.child,u+1)},o.prototype.includesInvalidEdge=function(){for(var l,u=this.edges.length,f=0;f<u;f++)if(l=this.edges[f],this.isOneAncestorOfOther(l.source,l.target))return!0;return!1},r.exports=o},function(r,a,n){var i=n(0);function s(){}for(var o in i)s[o]=i[o];s.MAX_ITERATIONS=2500,s.DEFAULT_EDGE_LENGTH=50,s.DEFAULT_SPRING_STRENGTH=.45,s.DEFAULT_REPULSION_STRENGTH=4500,s.DEFAULT_GRAVITY_STRENGTH=.4,s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,s.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,s.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,s.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,s.COOLING_ADAPTATION_FACTOR=.33,s.ADAPTATION_LOWER_NODE_LIMIT=1e3,s.ADAPTATION_UPPER_NODE_LIMIT=5e3,s.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,s.MAX_NODE_DISPLACEMENT=s.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,s.MIN_REPULSION_DIST=s.DEFAULT_EDGE_LENGTH/10,s.CONVERGENCE_CHECK_PERIOD=100,s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,s.MIN_EDGE_LENGTH=1,s.GRID_CALCULATION_CHECK_PERIOD=10,r.exports=s},function(r,a,n){var i=n(12);function s(){}s.calcSeparationAmount=function(o,l,u,f){if(!o.intersects(l))throw"assert failed";var h=new Array(2);this.decideDirectionsForOverlappingNodes(o,l,h),u[0]=Math.min(o.getRight(),l.getRight())-Math.max(o.x,l.x),u[1]=Math.min(o.getBottom(),l.getBottom())-Math.max(o.y,l.y),o.getX()<=l.getX()&&o.getRight()>=l.getRight()?u[0]+=Math.min(l.getX()-o.getX(),o.getRight()-l.getRight()):l.getX()<=o.getX()&&l.getRight()>=o.getRight()&&(u[0]+=Math.min(o.getX()-l.getX(),l.getRight()-o.getRight())),o.getY()<=l.getY()&&o.getBottom()>=l.getBottom()?u[1]+=Math.min(l.getY()-o.getY(),o.getBottom()-l.getBottom()):l.getY()<=o.getY()&&l.getBottom()>=o.getBottom()&&(u[1]+=Math.min(o.getY()-l.getY(),l.getBottom()-o.getBottom()));var c=Math.abs((l.getCenterY()-o.getCenterY())/(l.getCenterX()-o.getCenterX()));l.getCenterY()===o.getCenterY()&&l.getCenterX()===o.getCenterX()&&(c=1);var v=c*u[0],d=u[1]/c;u[0]<d?d=u[0]:v=u[1],u[0]=-1*h[0]*(d/2+f),u[1]=-1*h[1]*(v/2+f)},s.decideDirectionsForOverlappingNodes=function(o,l,u){o.getCenterX()<l.getCenterX()?u[0]=-1:u[0]=1,o.getCenterY()<l.getCenterY()?u[1]=-1:u[1]=1},s.getIntersection2=function(o,l,u){var f=o.getCenterX(),h=o.getCenterY(),c=l.getCenterX(),v=l.getCenterY();if(o.intersects(l))return u[0]=f,u[1]=h,u[2]=c,u[3]=v,!0;var d=o.getX(),g=o.getY(),p=o.getRight(),y=o.getX(),E=o.getBottom(),m=o.getRight(),T=o.getWidthHalf(),C=o.getHeightHalf(),S=l.getX(),b=l.getY(),x=l.getRight(),w=l.getX(),D=l.getBottom(),A=l.getRight(),L=l.getWidthHalf(),I=l.getHeightHalf(),O=!1,P=!1;if(f===c){if(h>v)return u[0]=f,u[1]=g,u[2]=c,u[3]=D,!1;if(h<v)return u[0]=f,u[1]=E,u[2]=c,u[3]=b,!1}else if(h===v){if(f>c)return u[0]=d,u[1]=h,u[2]=x,u[3]=v,!1;if(f<c)return u[0]=p,u[1]=h,u[2]=S,u[3]=v,!1}else{var R=o.height/o.width,M=l.height/l.width,k=(v-h)/(c-f),B=void 0,G=void 0,F=void 0,$=void 0,U=void 0,_=void 0;if(-R===k?f>c?(u[0]=y,u[1]=E,O=!0):(u[0]=p,u[1]=g,O=!0):R===k&&(f>c?(u[0]=d,u[1]=g,O=!0):(u[0]=m,u[1]=E,O=!0)),-M===k?c>f?(u[2]=w,u[3]=D,P=!0):(u[2]=x,u[3]=b,P=!0):M===k&&(c>f?(u[2]=S,u[3]=b,P=!0):(u[2]=A,u[3]=D,P=!0)),O&&P)return!1;if(f>c?h>v?(B=this.getCardinalDirection(R,k,4),G=this.getCardinalDirection(M,k,2)):(B=this.getCardinalDirection(-R,k,3),G=this.getCardinalDirection(-M,k,1)):h>v?(B=this.getCardinalDirection(-R,k,1),G=this.getCardinalDirection(-M,k,3)):(B=this.getCardinalDirection(R,k,2),G=this.getCardinalDirection(M,k,4)),!O)switch(B){case 1:$=g,F=f+-C/k,u[0]=F,u[1]=$;break;case 2:F=m,$=h+T*k,u[0]=F,u[1]=$;break;case 3:$=E,F=f+C/k,u[0]=F,u[1]=$;break;case 4:F=y,$=h+-T*k,u[0]=F,u[1]=$;break}if(!P)switch(G){case 1:_=b,U=c+-I/k,u[2]=U,u[3]=_;break;case 2:U=A,_=v+L*k,u[2]=U,u[3]=_;break;case 3:_=D,U=c+I/k,u[2]=U,u[3]=_;break;case 4:U=w,_=v+-L*k,u[2]=U,u[3]=_;break}}return!1},s.getCardinalDirection=function(o,l,u){return o>l?u:1+u%4},s.getIntersection=function(o,l,u,f){if(f==null)return this.getIntersection2(o,l,u);var h=o.x,c=o.y,v=l.x,d=l.y,g=u.x,p=u.y,y=f.x,E=f.y,m=void 0,T=void 0,C=void 0,S=void 0,b=void 0,x=void 0,w=void 0,D=void 0,A=void 0;return C=d-c,b=h-v,w=v*c-h*d,S=E-p,x=g-y,D=y*p-g*E,A=C*x-S*b,A===0?null:(m=(b*D-x*w)/A,T=(S*w-C*D)/A,new i(m,T))},s.angleOfVector=function(o,l,u,f){var h=void 0;return o!==u?(h=Math.atan((f-l)/(u-o)),u<o?h+=Math.PI:f<l&&(h+=this.TWO_PI)):f<l?h=this.ONE_AND_HALF_PI:h=this.HALF_PI,h},s.doIntersect=function(o,l,u,f){var h=o.x,c=o.y,v=l.x,d=l.y,g=u.x,p=u.y,y=f.x,E=f.y,m=(v-h)*(E-p)-(y-g)*(d-c);if(m===0)return!1;var T=((E-p)*(y-h)+(g-y)*(E-c))/m,C=((c-d)*(y-h)+(v-h)*(E-c))/m;return 0<T&&T<1&&0<C&&C<1},s.HALF_PI=.5*Math.PI,s.ONE_AND_HALF_PI=1.5*Math.PI,s.TWO_PI=2*Math.PI,s.THREE_PI=3*Math.PI,r.exports=s},function(r,a,n){function i(){}i.sign=function(s){return s>0?1:s<0?-1:0},i.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},i.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},r.exports=i},function(r,a,n){function i(){}i.MAX_VALUE=2147483647,i.MIN_VALUE=-2147483648,r.exports=i},function(r,a,n){var i=function(){function h(c,v){for(var d=0;d<v.length;d++){var g=v[d];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(c,g.key,g)}}return function(c,v,d){return v&&h(c.prototype,v),d&&h(c,d),c}}();function s(h,c){if(!(h instanceof c))throw new TypeError("Cannot call a class as a function")}var o=function(c){return{value:c,next:null,prev:null}},l=function(c,v,d,g){return c!==null?c.next=v:g.head=v,d!==null?d.prev=v:g.tail=v,v.prev=c,v.next=d,g.length++,v},u=function(c,v){var d=c.prev,g=c.next;return d!==null?d.next=g:v.head=g,g!==null?g.prev=d:v.tail=d,c.prev=c.next=null,v.length--,c},f=function(){function h(c){var v=this;s(this,h),this.length=0,this.head=null,this.tail=null,c?.forEach(function(d){return v.push(d)})}return i(h,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(v,d){return l(d.prev,o(v),d,this)}},{key:"insertAfter",value:function(v,d){return l(d,o(v),d.next,this)}},{key:"insertNodeBefore",value:function(v,d){return l(d.prev,v,d,this)}},{key:"insertNodeAfter",value:function(v,d){return l(d,v,d.next,this)}},{key:"push",value:function(v){return l(this.tail,o(v),null,this)}},{key:"unshift",value:function(v){return l(null,o(v),this.head,this)}},{key:"remove",value:function(v){return u(v,this)}},{key:"pop",value:function(){return u(this.tail,this).value}},{key:"popNode",value:function(){return u(this.tail,this)}},{key:"shift",value:function(){return u(this.head,this).value}},{key:"shiftNode",value:function(){return u(this.head,this)}},{key:"get_object_at",value:function(v){if(v<=this.length()){for(var d=1,g=this.head;d<v;)g=g.next,d++;return g.value}}},{key:"set_object_at",value:function(v,d){if(v<=this.length()){for(var g=1,p=this.head;g<v;)p=p.next,g++;p.value=d}}}]),h}();r.exports=f},function(r,a,n){function i(s,o,l){this.x=null,this.y=null,s==null&&o==null&&l==null?(this.x=0,this.y=0):typeof s=="number"&&typeof o=="number"&&l==null?(this.x=s,this.y=o):s.constructor.name=="Point"&&o==null&&l==null&&(l=s,this.x=l.x,this.y=l.y)}i.prototype.getX=function(){return this.x},i.prototype.getY=function(){return this.y},i.prototype.getLocation=function(){return new i(this.x,this.y)},i.prototype.setLocation=function(s,o,l){s.constructor.name=="Point"&&o==null&&l==null?(l=s,this.setLocation(l.x,l.y)):typeof s=="number"&&typeof o=="number"&&l==null&&(parseInt(s)==s&&parseInt(o)==o?this.move(s,o):(this.x=Math.floor(s+.5),this.y=Math.floor(o+.5)))},i.prototype.move=function(s,o){this.x=s,this.y=o},i.prototype.translate=function(s,o){this.x+=s,this.y+=o},i.prototype.equals=function(s){if(s.constructor.name=="Point"){var o=s;return this.x==o.x&&this.y==o.y}return this==s},i.prototype.toString=function(){return new i().constructor.name+"[x="+this.x+",y="+this.y+"]"},r.exports=i},function(r,a,n){function i(s,o,l,u){this.x=0,this.y=0,this.width=0,this.height=0,s!=null&&o!=null&&l!=null&&u!=null&&(this.x=s,this.y=o,this.width=l,this.height=u)}i.prototype.getX=function(){return this.x},i.prototype.setX=function(s){this.x=s},i.prototype.getY=function(){return this.y},i.prototype.setY=function(s){this.y=s},i.prototype.getWidth=function(){return this.width},i.prototype.setWidth=function(s){this.width=s},i.prototype.getHeight=function(){return this.height},i.prototype.setHeight=function(s){this.height=s},i.prototype.getRight=function(){return this.x+this.width},i.prototype.getBottom=function(){return this.y+this.height},i.prototype.intersects=function(s){return!(this.getRight()<s.x||this.getBottom()<s.y||s.getRight()<this.x||s.getBottom()<this.y)},i.prototype.getCenterX=function(){return this.x+this.width/2},i.prototype.getMinX=function(){return this.getX()},i.prototype.getMaxX=function(){return this.getX()+this.width},i.prototype.getCenterY=function(){return this.y+this.height/2},i.prototype.getMinY=function(){return this.getY()},i.prototype.getMaxY=function(){return this.getY()+this.height},i.prototype.getWidthHalf=function(){return this.width/2},i.prototype.getHeightHalf=function(){return this.height/2},r.exports=i},function(r,a,n){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};function s(){}s.lastID=0,s.createID=function(o){return s.isPrimitive(o)?o:(o.uniqueID!=null||(o.uniqueID=s.getString(),s.lastID++),o.uniqueID)},s.getString=function(o){return o==null&&(o=s.lastID),"Object#"+o},s.isPrimitive=function(o){var l=typeof o>"u"?"undefined":i(o);return o==null||l!="object"&&l!="function"},r.exports=s},function(r,a,n){function i(g){if(Array.isArray(g)){for(var p=0,y=Array(g.length);p<g.length;p++)y[p]=g[p];return y}else return Array.from(g)}var s=n(0),o=n(6),l=n(3),u=n(1),f=n(5),h=n(4),c=n(17),v=n(27);function d(g){v.call(this),this.layoutQuality=s.QUALITY,this.createBendsAsNeeded=s.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=s.DEFAULT_INCREMENTAL,this.animationOnLayout=s.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=s.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=s.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=s.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new o(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,g!=null&&(this.isRemoteUse=g)}d.RANDOM_SEED=1,d.prototype=Object.create(v.prototype),d.prototype.getGraphManager=function(){return this.graphManager},d.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},d.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},d.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},d.prototype.newGraphManager=function(){var g=new o(this);return this.graphManager=g,g},d.prototype.newGraph=function(g){return new f(null,this.graphManager,g)},d.prototype.newNode=function(g){return new l(this.graphManager,g)},d.prototype.newEdge=function(g){return new u(null,null,g)},d.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},d.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var g;return this.checkLayoutSuccess()?g=!1:g=this.layout(),s.ANIMATE==="during"?!1:(g&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,g)},d.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},d.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var g=this.graphManager.getAllEdges(),p=0;p<g.length;p++)g[p];for(var y=this.graphManager.getRoot().getNodes(),p=0;p<y.length;p++)y[p];this.update(this.graphManager.getRoot())}},d.prototype.update=function(g){if(g==null)this.update2();else if(g instanceof l){var p=g;if(p.getChild()!=null)for(var y=p.getChild().getNodes(),E=0;E<y.length;E++)update(y[E]);if(p.vGraphObject!=null){var m=p.vGraphObject;m.update(p)}}else if(g instanceof u){var T=g;if(T.vGraphObject!=null){var C=T.vGraphObject;C.update(T)}}else if(g instanceof f){var S=g;if(S.vGraphObject!=null){var b=S.vGraphObject;b.update(S)}}},d.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=s.QUALITY,this.animationDuringLayout=s.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=s.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=s.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=s.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=s.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=s.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},d.prototype.transform=function(g){if(g==null)this.transform(new h(0,0));else{var p=new c,y=this.graphManager.getRoot().updateLeftTop();if(y!=null){p.setWorldOrgX(g.x),p.setWorldOrgY(g.y),p.setDeviceOrgX(y.x),p.setDeviceOrgY(y.y);for(var E=this.getAllNodes(),m,T=0;T<E.length;T++)m=E[T],m.transform(p)}}},d.prototype.positionNodesRandomly=function(g){if(g==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var p,y,E=g.getNodes(),m=0;m<E.length;m++)p=E[m],y=p.getChild(),y==null||y.getNodes().length==0?p.scatter():(this.positionNodesRandomly(y),p.updateBounds())},d.prototype.getFlatForest=function(){for(var g=[],p=!0,y=this.graphManager.getRoot().getNodes(),E=!0,m=0;m<y.length;m++)y[m].getChild()!=null&&(E=!1);if(!E)return g;var T=new Set,C=[],S=new Map,b=[];for(b=b.concat(y);b.length>0&&p;){for(C.push(b[0]);C.length>0&&p;){var x=C[0];C.splice(0,1),T.add(x);for(var w=x.getEdges(),m=0;m<w.length;m++){var D=w[m].getOtherEnd(x);if(S.get(x)!=D)if(!T.has(D))C.push(D),S.set(D,x);else{p=!1;break}}}if(!p)g=[];else{var A=[].concat(i(T));g.push(A);for(var m=0;m<A.length;m++){var L=A[m],I=b.indexOf(L);I>-1&&b.splice(I,1)}T=new Set,S=new Map}}return g},d.prototype.createDummyNodesForBendpoints=function(g){for(var p=[],y=g.source,E=this.graphManager.calcLowestCommonAncestor(g.source,g.target),m=0;m<g.bendpoints.length;m++){var T=this.newNode(null);T.setRect(new Point(0,0),new Dimension(1,1)),E.add(T);var C=this.newEdge(null);this.graphManager.add(C,y,T),p.add(T),y=T}var C=this.newEdge(null);return this.graphManager.add(C,y,g.target),this.edgeToDummyNodes.set(g,p),g.isInterGraph()?this.graphManager.remove(g):E.remove(g),p},d.prototype.createBendpointsFromDummyNodes=function(){var g=[];g=g.concat(this.graphManager.getAllEdges()),g=[].concat(i(this.edgeToDummyNodes.keys())).concat(g);for(var p=0;p<g.length;p++){var y=g[p];if(y.bendpoints.length>0){for(var E=this.edgeToDummyNodes.get(y),m=0;m<E.length;m++){var T=E[m],C=new h(T.getCenterX(),T.getCenterY()),S=y.bendpoints.get(m);S.x=C.x,S.y=C.y,T.getOwner().remove(T)}this.graphManager.add(y,y.source,y.target)}}},d.transform=function(g,p,y,E){if(y!=null&&E!=null){var m=p;if(g<=50){var T=p/y;m-=(p-T)/50*(50-g)}else{var C=p*E;m+=(C-p)/50*(g-50)}return m}else{var S,b;return g<=50?(S=9*p/500,b=p/10):(S=9*p/50,b=-8*p),S*g+b}},d.findCenterOfTree=function(g){var p=[];p=p.concat(g);var y=[],E=new Map,m=!1,T=null;(p.length==1||p.length==2)&&(m=!0,T=p[0]);for(var C=0;C<p.length;C++){var S=p[C],b=S.getNeighborsList().size;E.set(S,S.getNeighborsList().size),b==1&&y.push(S)}var x=[];for(x=x.concat(y);!m;){var w=[];w=w.concat(x),x=[];for(var C=0;C<p.length;C++){var S=p[C],D=p.indexOf(S);D>=0&&p.splice(D,1);var A=S.getNeighborsList();A.forEach(function(O){if(y.indexOf(O)<0){var P=E.get(O),R=P-1;R==1&&x.push(O),E.set(O,R)}})}y=y.concat(x),(p.length==1||p.length==2)&&(m=!0,T=p[0])}return T},d.prototype.setGraphManager=function(g){this.graphManager=g},r.exports=d},function(r,a,n){function i(){}i.seed=1,i.x=0,i.nextDouble=function(){return i.x=Math.sin(i.seed++)*1e4,i.x-Math.floor(i.x)},r.exports=i},function(r,a,n){var i=n(4);function s(o,l){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}s.prototype.getWorldOrgX=function(){return this.lworldOrgX},s.prototype.setWorldOrgX=function(o){this.lworldOrgX=o},s.prototype.getWorldOrgY=function(){return this.lworldOrgY},s.prototype.setWorldOrgY=function(o){this.lworldOrgY=o},s.prototype.getWorldExtX=function(){return this.lworldExtX},s.prototype.setWorldExtX=function(o){this.lworldExtX=o},s.prototype.getWorldExtY=function(){return this.lworldExtY},s.prototype.setWorldExtY=function(o){this.lworldExtY=o},s.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},s.prototype.setDeviceOrgX=function(o){this.ldeviceOrgX=o},s.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},s.prototype.setDeviceOrgY=function(o){this.ldeviceOrgY=o},s.prototype.getDeviceExtX=function(){return this.ldeviceExtX},s.prototype.setDeviceExtX=function(o){this.ldeviceExtX=o},s.prototype.getDeviceExtY=function(){return this.ldeviceExtY},s.prototype.setDeviceExtY=function(o){this.ldeviceExtY=o},s.prototype.transformX=function(o){var l=0,u=this.lworldExtX;return u!=0&&(l=this.ldeviceOrgX+(o-this.lworldOrgX)*this.ldeviceExtX/u),l},s.prototype.transformY=function(o){var l=0,u=this.lworldExtY;return u!=0&&(l=this.ldeviceOrgY+(o-this.lworldOrgY)*this.ldeviceExtY/u),l},s.prototype.inverseTransformX=function(o){var l=0,u=this.ldeviceExtX;return u!=0&&(l=this.lworldOrgX+(o-this.ldeviceOrgX)*this.lworldExtX/u),l},s.prototype.inverseTransformY=function(o){var l=0,u=this.ldeviceExtY;return u!=0&&(l=this.lworldOrgY+(o-this.ldeviceOrgY)*this.lworldExtY/u),l},s.prototype.inverseTransformPoint=function(o){var l=new i(this.inverseTransformX(o.x),this.inverseTransformY(o.y));return l},r.exports=s},function(r,a,n){function i(v){if(Array.isArray(v)){for(var d=0,g=Array(v.length);d<v.length;d++)g[d]=v[d];return g}else return Array.from(v)}var s=n(15),o=n(7),l=n(0),u=n(8),f=n(9);function h(){s.call(this),this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.springConstant=o.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=o.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=o.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=o.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=o.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*o.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=o.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=o.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=o.MAX_ITERATIONS}h.prototype=Object.create(s.prototype);for(var c in s)h[c]=s[c];h.prototype.initParameters=function(){s.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=o.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},h.prototype.calcIdealEdgeLengths=function(){for(var v,d,g,p,y,E,m=this.getGraphManager().getAllEdges(),T=0;T<m.length;T++)v=m[T],v.idealLength=this.idealEdgeLength,v.isInterGraph&&(g=v.getSource(),p=v.getTarget(),y=v.getSourceInLca().getEstimatedSize(),E=v.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(v.idealLength+=y+E-2*l.SIMPLE_NODE_SIZE),d=v.getLca().getInclusionTreeDepth(),v.idealLength+=o.DEFAULT_EDGE_LENGTH*o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(g.getInclusionTreeDepth()+p.getInclusionTreeDepth()-2*d))},h.prototype.initSpringEmbedder=function(){var v=this.getAllNodes().length;this.incremental?(v>o.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*o.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(v-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-o.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT_INCREMENTAL):(v>o.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(o.COOLING_ADAPTATION_FACTOR,1-(v-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*(1-o.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var v=this.getAllEdges(),d,g=0;g<v.length;g++)d=v[g],this.calcSpringForce(d,d.idealLength)},h.prototype.calcRepulsionForces=function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g,p,y,E,m=this.getAllNodes(),T;if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&v&&this.updateGrid(),T=new Set,g=0;g<m.length;g++)y=m[g],this.calculateRepulsionForceOfANode(y,T,v,d),T.add(y);else for(g=0;g<m.length;g++)for(y=m[g],p=g+1;p<m.length;p++)E=m[p],y.getOwner()==E.getOwner()&&this.calcRepulsionForce(y,E)},h.prototype.calcGravitationalForces=function(){for(var v,d=this.getAllNodesToApplyGravitation(),g=0;g<d.length;g++)v=d[g],this.calcGravitationalForce(v)},h.prototype.moveNodes=function(){for(var v=this.getAllNodes(),d,g=0;g<v.length;g++)d=v[g],d.move()},h.prototype.calcSpringForce=function(v,d){var g=v.getSource(),p=v.getTarget(),y,E,m,T;if(this.uniformLeafNodeSizes&&g.getChild()==null&&p.getChild()==null)v.updateLengthSimple();else if(v.updateLength(),v.isOverlapingSourceAndTarget)return;y=v.getLength(),y!=0&&(E=this.springConstant*(y-d),m=E*(v.lengthX/y),T=E*(v.lengthY/y),g.springForceX+=m,g.springForceY+=T,p.springForceX-=m,p.springForceY-=T)},h.prototype.calcRepulsionForce=function(v,d){var g=v.getRect(),p=d.getRect(),y=new Array(2),E=new Array(4),m,T,C,S,b,x,w;if(g.intersects(p)){u.calcSeparationAmount(g,p,y,o.DEFAULT_EDGE_LENGTH/2),x=2*y[0],w=2*y[1];var D=v.noOfChildren*d.noOfChildren/(v.noOfChildren+d.noOfChildren);v.repulsionForceX-=D*x,v.repulsionForceY-=D*w,d.repulsionForceX+=D*x,d.repulsionForceY+=D*w}else this.uniformLeafNodeSizes&&v.getChild()==null&&d.getChild()==null?(m=p.getCenterX()-g.getCenterX(),T=p.getCenterY()-g.getCenterY()):(u.getIntersection(g,p,E),m=E[2]-E[0],T=E[3]-E[1]),Math.abs(m)<o.MIN_REPULSION_DIST&&(m=f.sign(m)*o.MIN_REPULSION_DIST),Math.abs(T)<o.MIN_REPULSION_DIST&&(T=f.sign(T)*o.MIN_REPULSION_DIST),C=m*m+T*T,S=Math.sqrt(C),b=this.repulsionConstant*v.noOfChildren*d.noOfChildren/C,x=b*m/S,w=b*T/S,v.repulsionForceX-=x,v.repulsionForceY-=w,d.repulsionForceX+=x,d.repulsionForceY+=w},h.prototype.calcGravitationalForce=function(v){var d,g,p,y,E,m,T,C;d=v.getOwner(),g=(d.getRight()+d.getLeft())/2,p=(d.getTop()+d.getBottom())/2,y=v.getCenterX()-g,E=v.getCenterY()-p,m=Math.abs(y)+v.getWidth()/2,T=Math.abs(E)+v.getHeight()/2,v.getOwner()==this.graphManager.getRoot()?(C=d.getEstimatedSize()*this.gravityRangeFactor,(m>C||T>C)&&(v.gravitationForceX=-this.gravityConstant*y,v.gravitationForceY=-this.gravityConstant*E)):(C=d.getEstimatedSize()*this.compoundGravityRangeFactor,(m>C||T>C)&&(v.gravitationForceX=-this.gravityConstant*y*this.compoundGravityConstant,v.gravitationForceY=-this.gravityConstant*E*this.compoundGravityConstant))},h.prototype.isConverged=function(){var v,d=!1;return this.totalIterations>this.maxIterations/3&&(d=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),v=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,v||d},h.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},h.prototype.calcNoOfChildrenForAllNodes=function(){for(var v,d=this.graphManager.getAllNodes(),g=0;g<d.length;g++)v=d[g],v.noOfChildren=v.getNoOfChildren()},h.prototype.calcGrid=function(v){var d=0,g=0;d=parseInt(Math.ceil((v.getRight()-v.getLeft())/this.repulsionRange)),g=parseInt(Math.ceil((v.getBottom()-v.getTop())/this.repulsionRange));for(var p=new Array(d),y=0;y<d;y++)p[y]=new Array(g);for(var y=0;y<d;y++)for(var E=0;E<g;E++)p[y][E]=new Array;return p},h.prototype.addNodeToGrid=function(v,d,g){var p=0,y=0,E=0,m=0;p=parseInt(Math.floor((v.getRect().x-d)/this.repulsionRange)),y=parseInt(Math.floor((v.getRect().width+v.getRect().x-d)/this.repulsionRange)),E=parseInt(Math.floor((v.getRect().y-g)/this.repulsionRange)),m=parseInt(Math.floor((v.getRect().height+v.getRect().y-g)/this.repulsionRange));for(var T=p;T<=y;T++)for(var C=E;C<=m;C++)this.grid[T][C].push(v),v.setGridCoordinates(p,y,E,m)},h.prototype.updateGrid=function(){var v,d,g=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),v=0;v<g.length;v++)d=g[v],this.addNodeToGrid(d,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},h.prototype.calculateRepulsionForceOfANode=function(v,d,g,p){if(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&g||p){var y=new Set;v.surrounding=new Array;for(var E,m=this.grid,T=v.startX-1;T<v.finishX+2;T++)for(var C=v.startY-1;C<v.finishY+2;C++)if(!(T<0||C<0||T>=m.length||C>=m[0].length)){for(var S=0;S<m[T][C].length;S++)if(E=m[T][C][S],!(v.getOwner()!=E.getOwner()||v==E)&&!d.has(E)&&!y.has(E)){var b=Math.abs(v.getCenterX()-E.getCenterX())-(v.getWidth()/2+E.getWidth()/2),x=Math.abs(v.getCenterY()-E.getCenterY())-(v.getHeight()/2+E.getHeight()/2);b<=this.repulsionRange&&x<=this.repulsionRange&&y.add(E)}}v.surrounding=[].concat(i(y))}for(T=0;T<v.surrounding.length;T++)this.calcRepulsionForce(v,v.surrounding[T])},h.prototype.calcRepulsionRange=function(){return 0},r.exports=h},function(r,a,n){var i=n(1),s=n(7);function o(u,f,h){i.call(this,u,f,h),this.idealLength=s.DEFAULT_EDGE_LENGTH}o.prototype=Object.create(i.prototype);for(var l in i)o[l]=i[l];r.exports=o},function(r,a,n){var i=n(3);function s(l,u,f,h){i.call(this,l,u,f,h),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}s.prototype=Object.create(i.prototype);for(var o in i)s[o]=i[o];s.prototype.setGridCoordinates=function(l,u,f,h){this.startX=l,this.finishX=u,this.startY=f,this.finishY=h},r.exports=s},function(r,a,n){function i(s,o){this.width=0,this.height=0,s!==null&&o!==null&&(this.height=o,this.width=s)}i.prototype.getWidth=function(){return this.width},i.prototype.setWidth=function(s){this.width=s},i.prototype.getHeight=function(){return this.height},i.prototype.setHeight=function(s){this.height=s},r.exports=i},function(r,a,n){var i=n(14);function s(){this.map={},this.keys=[]}s.prototype.put=function(o,l){var u=i.createID(o);this.contains(u)||(this.map[u]=l,this.keys.push(o))},s.prototype.contains=function(o){return i.createID(o),this.map[o]!=null},s.prototype.get=function(o){var l=i.createID(o);return this.map[l]},s.prototype.keySet=function(){return this.keys},r.exports=s},function(r,a,n){var i=n(14);function s(){this.set={}}s.prototype.add=function(o){var l=i.createID(o);this.contains(l)||(this.set[l]=o)},s.prototype.remove=function(o){delete this.set[i.createID(o)]},s.prototype.clear=function(){this.set={}},s.prototype.contains=function(o){return this.set[i.createID(o)]==o},s.prototype.isEmpty=function(){return this.size()===0},s.prototype.size=function(){return Object.keys(this.set).length},s.prototype.addAllTo=function(o){for(var l=Object.keys(this.set),u=l.length,f=0;f<u;f++)o.push(this.set[l[f]])},s.prototype.size=function(){return Object.keys(this.set).length},s.prototype.addAll=function(o){for(var l=o.length,u=0;u<l;u++){var f=o[u];this.add(f)}},r.exports=s},function(r,a,n){var i=function(){function u(f,h){for(var c=0;c<h.length;c++){var v=h[c];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(f,v.key,v)}}return function(f,h,c){return h&&u(f.prototype,h),c&&u(f,c),f}}();function s(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}var o=n(11),l=function(){function u(f,h){s(this,u),(h!==null||h!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var c=void 0;f instanceof o?c=f.size():c=f.length,this._quicksort(f,0,c-1)}return i(u,[{key:"_quicksort",value:function(h,c,v){if(c<v){var d=this._partition(h,c,v);this._quicksort(h,c,d),this._quicksort(h,d+1,v)}}},{key:"_partition",value:function(h,c,v){for(var d=this._get(h,c),g=c,p=v;;){for(;this.compareFunction(d,this._get(h,p));)p--;for(;this.compareFunction(this._get(h,g),d);)g++;if(g<p)this._swap(h,g,p),g++,p--;else return p}}},{key:"_get",value:function(h,c){return h instanceof o?h.get_object_at(c):h[c]}},{key:"_set",value:function(h,c,v){h instanceof o?h.set_object_at(c,v):h[c]=v}},{key:"_swap",value:function(h,c,v){var d=this._get(h,c);this._set(h,c,this._get(h,v)),this._set(h,v,d)}},{key:"_defaultCompareFunction",value:function(h,c){return c>h}}]),u}();r.exports=l},function(r,a,n){var i=function(){function l(u,f){for(var h=0;h<f.length;h++){var c=f[h];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,c.key,c)}}return function(u,f,h){return f&&l(u.prototype,f),h&&l(u,h),u}}();function s(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}var o=function(){function l(u,f){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,v=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;s(this,l),this.sequence1=u,this.sequence2=f,this.match_score=h,this.mismatch_penalty=c,this.gap_penalty=v,this.iMax=u.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var d=0;d<this.iMax;d++){this.grid[d]=new Array(this.jMax);for(var g=0;g<this.jMax;g++)this.grid[d][g]=0}this.tracebackGrid=new Array(this.iMax);for(var p=0;p<this.iMax;p++){this.tracebackGrid[p]=new Array(this.jMax);for(var y=0;y<this.jMax;y++)this.tracebackGrid[p][y]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return i(l,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var f=1;f<this.jMax;f++)this.grid[0][f]=this.grid[0][f-1]+this.gap_penalty,this.tracebackGrid[0][f]=[!1,!1,!0];for(var h=1;h<this.iMax;h++)this.grid[h][0]=this.grid[h-1][0]+this.gap_penalty,this.tracebackGrid[h][0]=[!1,!0,!1];for(var c=1;c<this.iMax;c++)for(var v=1;v<this.jMax;v++){var d=void 0;this.sequence1[c-1]===this.sequence2[v-1]?d=this.grid[c-1][v-1]+this.match_score:d=this.grid[c-1][v-1]+this.mismatch_penalty;var g=this.grid[c-1][v]+this.gap_penalty,p=this.grid[c][v-1]+this.gap_penalty,y=[d,g,p],E=this.arrayAllMaxIndexes(y);this.grid[c][v]=y[E[0]],this.tracebackGrid[c][v]=[E.includes(0),E.includes(1),E.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var f=[];for(f.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});f[0];){var h=f[0],c=this.tracebackGrid[h.pos[0]][h.pos[1]];c[0]&&f.push({pos:[h.pos[0]-1,h.pos[1]-1],seq1:this.sequence1[h.pos[0]-1]+h.seq1,seq2:this.sequence2[h.pos[1]-1]+h.seq2}),c[1]&&f.push({pos:[h.pos[0]-1,h.pos[1]],seq1:this.sequence1[h.pos[0]-1]+h.seq1,seq2:"-"+h.seq2}),c[2]&&f.push({pos:[h.pos[0],h.pos[1]-1],seq1:"-"+h.seq1,seq2:this.sequence2[h.pos[1]-1]+h.seq2}),h.pos[0]===0&&h.pos[1]===0&&this.alignments.push({sequence1:h.seq1,sequence2:h.seq2}),f.shift()}return this.alignments}},{key:"getAllIndexes",value:function(f,h){for(var c=[],v=-1;(v=f.indexOf(h,v+1))!==-1;)c.push(v);return c}},{key:"arrayAllMaxIndexes",value:function(f){return this.getAllIndexes(f,Math.max.apply(null,f))}}]),l}();r.exports=o},function(r,a,n){var i=function(){};i.FDLayout=n(18),i.FDLayoutConstants=n(7),i.FDLayoutEdge=n(19),i.FDLayoutNode=n(20),i.DimensionD=n(21),i.HashMap=n(22),i.HashSet=n(23),i.IGeometry=n(8),i.IMath=n(9),i.Integer=n(10),i.Point=n(12),i.PointD=n(4),i.RandomSeed=n(16),i.RectangleD=n(13),i.Transform=n(17),i.UniqueIDGeneretor=n(14),i.Quicksort=n(24),i.LinkedList=n(11),i.LGraphObject=n(2),i.LGraph=n(5),i.LEdge=n(1),i.LGraphManager=n(6),i.LNode=n(3),i.Layout=n(15),i.LayoutConstants=n(0),i.NeedlemanWunsch=n(25),r.exports=i},function(r,a,n){function i(){this.listeners=[]}var s=i.prototype;s.addListener=function(o,l){this.listeners.push({event:o,callback:l})},s.removeListener=function(o,l){for(var u=this.listeners.length;u>=0;u--){var f=this.listeners[u];f.event===o&&f.callback===l&&this.listeners.splice(u,1)}},s.emit=function(o,l){for(var u=0;u<this.listeners.length;u++){var f=this.listeners[u];o===f.event&&f.callback(l)}},r.exports=i}])})}(Fn)),Fn.exports}var Hs;function wm(){return Hs||(Hs=1,function(t,e){(function(a,n){t.exports=n(Em())})(Vt,function(r){return function(a){var n={};function i(s){if(n[s])return n[s].exports;var o=n[s]={i:s,l:!1,exports:{}};return a[s].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=a,i.c=n,i.i=function(s){return s},i.d=function(s,o,l){i.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:l})},i.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(o,"a",o),o},i.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},i.p="",i(i.s=7)}([function(a,n){a.exports=r},function(a,n,i){var s=i(0).FDLayoutConstants;function o(){}for(var l in s)o[l]=s[l];o.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,o.DEFAULT_RADIAL_SEPARATION=s.DEFAULT_EDGE_LENGTH,o.DEFAULT_COMPONENT_SEPERATION=60,o.TILE=!0,o.TILING_PADDING_VERTICAL=10,o.TILING_PADDING_HORIZONTAL=10,o.TREE_REDUCTION_ON_INCREMENTAL=!1,a.exports=o},function(a,n,i){var s=i(0).FDLayoutEdge;function o(u,f,h){s.call(this,u,f,h)}o.prototype=Object.create(s.prototype);for(var l in s)o[l]=s[l];a.exports=o},function(a,n,i){var s=i(0).LGraph;function o(u,f,h){s.call(this,u,f,h)}o.prototype=Object.create(s.prototype);for(var l in s)o[l]=s[l];a.exports=o},function(a,n,i){var s=i(0).LGraphManager;function o(u){s.call(this,u)}o.prototype=Object.create(s.prototype);for(var l in s)o[l]=s[l];a.exports=o},function(a,n,i){var s=i(0).FDLayoutNode,o=i(0).IMath;function l(f,h,c,v){s.call(this,f,h,c,v)}l.prototype=Object.create(s.prototype);for(var u in s)l[u]=s[u];l.prototype.move=function(){var f=this.graphManager.getLayout();this.displacementX=f.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=f.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>f.coolingFactor*f.maxNodeDisplacement&&(this.displacementX=f.coolingFactor*f.maxNodeDisplacement*o.sign(this.displacementX)),Math.abs(this.displacementY)>f.coolingFactor*f.maxNodeDisplacement&&(this.displacementY=f.coolingFactor*f.maxNodeDisplacement*o.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),f.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},l.prototype.propogateDisplacementToChildren=function(f,h){for(var c=this.getChild().getNodes(),v,d=0;d<c.length;d++)v=c[d],v.getChild()==null?(v.moveBy(f,h),v.displacementX+=f,v.displacementY+=h):v.propogateDisplacementToChildren(f,h)},l.prototype.setPred1=function(f){this.pred1=f},l.prototype.getPred1=function(){return pred1},l.prototype.getPred2=function(){return pred2},l.prototype.setNext=function(f){this.next=f},l.prototype.getNext=function(){return next},l.prototype.setProcessed=function(f){this.processed=f},l.prototype.isProcessed=function(){return processed},a.exports=l},function(a,n,i){var s=i(0).FDLayout,o=i(4),l=i(3),u=i(5),f=i(2),h=i(1),c=i(0).FDLayoutConstants,v=i(0).LayoutConstants,d=i(0).Point,g=i(0).PointD,p=i(0).Layout,y=i(0).Integer,E=i(0).IGeometry,m=i(0).LGraph,T=i(0).Transform;function C(){s.call(this),this.toBeTiled={}}C.prototype=Object.create(s.prototype);for(var S in s)C[S]=s[S];C.prototype.newGraphManager=function(){var b=new o(this);return this.graphManager=b,b},C.prototype.newGraph=function(b){return new l(null,this.graphManager,b)},C.prototype.newNode=function(b){return new u(this.graphManager,b)},C.prototype.newEdge=function(b){return new f(null,null,b)},C.prototype.initParameters=function(){s.prototype.initParameters.call(this,arguments),this.isSubLayout||(h.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=h.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=c.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=c.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=c.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=c.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/c.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=c.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},C.prototype.layout=function(){var b=v.DEFAULT_CREATE_BENDS_AS_NEEDED;return b&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},C.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(h.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var x=new Set(this.getAllNodes()),w=this.nodesWithGravity.filter(function(L){return x.has(L)});this.graphManager.setAllNodesToApplyGravitation(w)}}else{var b=this.getFlatForest();if(b.length>0)this.positionNodesRadially(b);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var x=new Set(this.getAllNodes()),w=this.nodesWithGravity.filter(function(D){return x.has(D)});this.graphManager.setAllNodesToApplyGravitation(w),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},C.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%c.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var b=new Set(this.getAllNodes()),x=this.nodesWithGravity.filter(function(A){return b.has(A)});this.graphManager.setAllNodesToApplyGravitation(x),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var w=!this.isTreeGrowing&&!this.isGrowthFinished,D=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(w,D),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},C.prototype.getPositionsData=function(){for(var b=this.graphManager.getAllNodes(),x={},w=0;w<b.length;w++){var D=b[w].rect,A=b[w].id;x[A]={id:A,x:D.getCenterX(),y:D.getCenterY(),w:D.width,h:D.height}}return x},C.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var b=!1;if(c.ANIMATE==="during")this.emit("layoutstarted");else{for(;!b;)b=this.tick();this.graphManager.updateBounds()}},C.prototype.calculateNodesToApplyGravitationTo=function(){var b=[],x,w=this.graphManager.getGraphs(),D=w.length,A;for(A=0;A<D;A++)x=w[A],x.updateConnected(),x.isConnected||(b=b.concat(x.getNodes()));return b},C.prototype.createBendpoints=function(){var b=[];b=b.concat(this.graphManager.getAllEdges());var x=new Set,w;for(w=0;w<b.length;w++){var D=b[w];if(!x.has(D)){var A=D.getSource(),L=D.getTarget();if(A==L)D.getBendpoints().push(new g),D.getBendpoints().push(new g),this.createDummyNodesForBendpoints(D),x.add(D);else{var I=[];if(I=I.concat(A.getEdgeListToNode(L)),I=I.concat(L.getEdgeListToNode(A)),!x.has(I[0])){if(I.length>1){var O;for(O=0;O<I.length;O++){var P=I[O];P.getBendpoints().push(new g),this.createDummyNodesForBendpoints(P)}}I.forEach(function(R){x.add(R)})}}}if(x.size==b.length)break}},C.prototype.positionNodesRadially=function(b){for(var x=new d(0,0),w=Math.ceil(Math.sqrt(b.length)),D=0,A=0,L=0,I=new g(0,0),O=0;O<b.length;O++){O%w==0&&(L=0,A=D,O!=0&&(A+=h.DEFAULT_COMPONENT_SEPERATION),D=0);var P=b[O],R=p.findCenterOfTree(P);x.x=L,x.y=A,I=C.radialLayout(P,R,x),I.y>D&&(D=Math.floor(I.y)),L=Math.floor(I.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new g(v.WORLD_CENTER_X-I.x/2,v.WORLD_CENTER_Y-I.y/2))},C.radialLayout=function(b,x,w){var D=Math.max(this.maxDiagonalInTree(b),h.DEFAULT_RADIAL_SEPARATION);C.branchRadialLayout(x,null,0,359,0,D);var A=m.calculateBounds(b),L=new T;L.setDeviceOrgX(A.getMinX()),L.setDeviceOrgY(A.getMinY()),L.setWorldOrgX(w.x),L.setWorldOrgY(w.y);for(var I=0;I<b.length;I++){var O=b[I];O.transform(L)}var P=new g(A.getMaxX(),A.getMaxY());return L.inverseTransformPoint(P)},C.branchRadialLayout=function(b,x,w,D,A,L){var I=(D-w+1)/2;I<0&&(I+=180);var O=(I+w)%360,P=O*E.TWO_PI/360,R=A*Math.cos(P),M=A*Math.sin(P);b.setCenter(R,M);var k=[];k=k.concat(b.getEdges());var B=k.length;x!=null&&B--;for(var G=0,F=k.length,$,U=b.getEdgesBetween(x);U.length>1;){var _=U[0];U.splice(0,1);var Y=k.indexOf(_);Y>=0&&k.splice(Y,1),F--,B--}x!=null?$=(k.indexOf(U[0])+1)%F:$=0;for(var W=Math.abs(D-w)/B,z=$;G!=B;z=++z%F){var K=k[z].getOtherEnd(b);if(K!=x){var j=(w+G*W)%360,Q=(j+W)%360;C.branchRadialLayout(K,b,j,Q,A+L,L),G++}}},C.maxDiagonalInTree=function(b){for(var x=y.MIN_VALUE,w=0;w<b.length;w++){var D=b[w],A=D.getDiagonal();A>x&&(x=A)}return x},C.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},C.prototype.groupZeroDegreeMembers=function(){var b=this,x={};this.memberGroups={},this.idToDummyNode={};for(var w=[],D=this.graphManager.getAllNodes(),A=0;A<D.length;A++){var L=D[A],I=L.getParent();this.getNodeDegreeWithChildren(L)===0&&(I.id==null||!this.getToBeTiled(I))&&w.push(L)}for(var A=0;A<w.length;A++){var L=w[A],O=L.getParent().id;typeof x[O]>"u"&&(x[O]=[]),x[O]=x[O].concat(L)}Object.keys(x).forEach(function(P){if(x[P].length>1){var R="DummyCompound_"+P;b.memberGroups[R]=x[P];var M=x[P][0].getParent(),k=new u(b.graphManager);k.id=R,k.paddingLeft=M.paddingLeft||0,k.paddingRight=M.paddingRight||0,k.paddingBottom=M.paddingBottom||0,k.paddingTop=M.paddingTop||0,b.idToDummyNode[R]=k;var B=b.getGraphManager().add(b.newGraph(),k),G=M.getChild();G.add(k);for(var F=0;F<x[P].length;F++){var $=x[P][F];G.remove($),B.add($)}}})},C.prototype.clearCompounds=function(){var b={},x={};this.performDFSOnCompounds();for(var w=0;w<this.compoundOrder.length;w++)x[this.compoundOrder[w].id]=this.compoundOrder[w],b[this.compoundOrder[w].id]=[].concat(this.compoundOrder[w].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[w].getChild()),this.compoundOrder[w].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(b,x)},C.prototype.clearZeroDegreeMembers=function(){var b=this,x=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(w){var D=b.idToDummyNode[w];x[w]=b.tileNodes(b.memberGroups[w],D.paddingLeft+D.paddingRight),D.rect.width=x[w].width,D.rect.height=x[w].height})},C.prototype.repopulateCompounds=function(){for(var b=this.compoundOrder.length-1;b>=0;b--){var x=this.compoundOrder[b],w=x.id,D=x.paddingLeft,A=x.paddingTop;this.adjustLocations(this.tiledMemberPack[w],x.rect.x,x.rect.y,D,A)}},C.prototype.repopulateZeroDegreeMembers=function(){var b=this,x=this.tiledZeroDegreePack;Object.keys(x).forEach(function(w){var D=b.idToDummyNode[w],A=D.paddingLeft,L=D.paddingTop;b.adjustLocations(x[w],D.rect.x,D.rect.y,A,L)})},C.prototype.getToBeTiled=function(b){var x=b.id;if(this.toBeTiled[x]!=null)return this.toBeTiled[x];var w=b.getChild();if(w==null)return this.toBeTiled[x]=!1,!1;for(var D=w.getNodes(),A=0;A<D.length;A++){var L=D[A];if(this.getNodeDegree(L)>0)return this.toBeTiled[x]=!1,!1;if(L.getChild()==null){this.toBeTiled[L.id]=!1;continue}if(!this.getToBeTiled(L))return this.toBeTiled[x]=!1,!1}return this.toBeTiled[x]=!0,!0},C.prototype.getNodeDegree=function(b){b.id;for(var x=b.getEdges(),w=0,D=0;D<x.length;D++){var A=x[D];A.getSource().id!==A.getTarget().id&&(w=w+1)}return w},C.prototype.getNodeDegreeWithChildren=function(b){var x=this.getNodeDegree(b);if(b.getChild()==null)return x;for(var w=b.getChild().getNodes(),D=0;D<w.length;D++){var A=w[D];x+=this.getNodeDegreeWithChildren(A)}return x},C.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},C.prototype.fillCompexOrderByDFS=function(b){for(var x=0;x<b.length;x++){var w=b[x];w.getChild()!=null&&this.fillCompexOrderByDFS(w.getChild().getNodes()),this.getToBeTiled(w)&&this.compoundOrder.push(w)}},C.prototype.adjustLocations=function(b,x,w,D,A){x+=D,w+=A;for(var L=x,I=0;I<b.rows.length;I++){var O=b.rows[I];x=L;for(var P=0,R=0;R<O.length;R++){var M=O[R];M.rect.x=x,M.rect.y=w,x+=M.rect.width+b.horizontalPadding,M.rect.height>P&&(P=M.rect.height)}w+=P+b.verticalPadding}},C.prototype.tileCompoundMembers=function(b,x){var w=this;this.tiledMemberPack=[],Object.keys(b).forEach(function(D){var A=x[D];w.tiledMemberPack[D]=w.tileNodes(b[D],A.paddingLeft+A.paddingRight),A.rect.width=w.tiledMemberPack[D].width,A.rect.height=w.tiledMemberPack[D].height})},C.prototype.tileNodes=function(b,x){var w=h.TILING_PADDING_VERTICAL,D=h.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:x,verticalPadding:w,horizontalPadding:D};b.sort(function(O,P){return O.rect.width*O.rect.height>P.rect.width*P.rect.height?-1:O.rect.width*O.rect.height<P.rect.width*P.rect.height?1:0});for(var L=0;L<b.length;L++){var I=b[L];A.rows.length==0?this.insertNodeToRow(A,I,0,x):this.canAddHorizontal(A,I.rect.width,I.rect.height)?this.insertNodeToRow(A,I,this.getShortestRowIndex(A),x):this.insertNodeToRow(A,I,A.rows.length,x),this.shiftToLastRow(A)}return A},C.prototype.insertNodeToRow=function(b,x,w,D){var A=D;if(w==b.rows.length){var L=[];b.rows.push(L),b.rowWidth.push(A),b.rowHeight.push(0)}var I=b.rowWidth[w]+x.rect.width;b.rows[w].length>0&&(I+=b.horizontalPadding),b.rowWidth[w]=I,b.width<I&&(b.width=I);var O=x.rect.height;w>0&&(O+=b.verticalPadding);var P=0;O>b.rowHeight[w]&&(P=b.rowHeight[w],b.rowHeight[w]=O,P=b.rowHeight[w]-P),b.height+=P,b.rows[w].push(x)},C.prototype.getShortestRowIndex=function(b){for(var x=-1,w=Number.MAX_VALUE,D=0;D<b.rows.length;D++)b.rowWidth[D]<w&&(x=D,w=b.rowWidth[D]);return x},C.prototype.getLongestRowIndex=function(b){for(var x=-1,w=Number.MIN_VALUE,D=0;D<b.rows.length;D++)b.rowWidth[D]>w&&(x=D,w=b.rowWidth[D]);return x},C.prototype.canAddHorizontal=function(b,x,w){var D=this.getShortestRowIndex(b);if(D<0)return!0;var A=b.rowWidth[D];if(A+b.horizontalPadding+x<=b.width)return!0;var L=0;b.rowHeight[D]<w&&D>0&&(L=w+b.verticalPadding-b.rowHeight[D]);var I;b.width-A>=x+b.horizontalPadding?I=(b.height+L)/(A+x+b.horizontalPadding):I=(b.height+L)/b.width,L=w+b.verticalPadding;var O;return b.width<x?O=(b.height+L)/x:O=(b.height+L)/b.width,O<1&&(O=1/O),I<1&&(I=1/I),I<O},C.prototype.shiftToLastRow=function(b){var x=this.getLongestRowIndex(b),w=b.rowWidth.length-1,D=b.rows[x],A=D[D.length-1],L=A.width+b.horizontalPadding;if(b.width-b.rowWidth[w]>L&&x!=w){D.splice(-1,1),b.rows[w].push(A),b.rowWidth[x]=b.rowWidth[x]-L,b.rowWidth[w]=b.rowWidth[w]+L,b.width=b.rowWidth[instance.getLongestRowIndex(b)];for(var I=Number.MIN_VALUE,O=0;O<D.length;O++)D[O].height>I&&(I=D[O].height);x>0&&(I+=b.verticalPadding);var P=b.rowHeight[x]+b.rowHeight[w];b.rowHeight[x]=I,b.rowHeight[w]<A.height+b.verticalPadding&&(b.rowHeight[w]=A.height+b.verticalPadding);var R=b.rowHeight[x]+b.rowHeight[w];b.height+=R-P,this.shiftToLastRow(b)}},C.prototype.tilingPreLayout=function(){h.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},C.prototype.tilingPostLayout=function(){h.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},C.prototype.reduceTrees=function(){for(var b=[],x=!0,w;x;){var D=this.graphManager.getAllNodes(),A=[];x=!1;for(var L=0;L<D.length;L++)w=D[L],w.getEdges().length==1&&!w.getEdges()[0].isInterGraph&&w.getChild()==null&&(A.push([w,w.getEdges()[0],w.getOwner()]),x=!0);if(x==!0){for(var I=[],O=0;O<A.length;O++)A[O][0].getEdges().length==1&&(I.push(A[O]),A[O][0].getOwner().remove(A[O][0]));b.push(I),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=b},C.prototype.growTree=function(b){for(var x=b.length,w=b[x-1],D,A=0;A<w.length;A++)D=w[A],this.findPlaceforPrunedNode(D),D[2].add(D[0]),D[2].add(D[1],D[1].source,D[1].target);b.splice(b.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},C.prototype.findPlaceforPrunedNode=function(b){var x,w,D=b[0];D==b[1].source?w=b[1].target:w=b[1].source;var A=w.startX,L=w.finishX,I=w.startY,O=w.finishY,P=0,R=0,M=0,k=0,B=[P,M,R,k];if(I>0)for(var G=A;G<=L;G++)B[0]+=this.grid[G][I-1].length+this.grid[G][I].length-1;if(L<this.grid.length-1)for(var G=I;G<=O;G++)B[1]+=this.grid[L+1][G].length+this.grid[L][G].length-1;if(O<this.grid[0].length-1)for(var G=A;G<=L;G++)B[2]+=this.grid[G][O+1].length+this.grid[G][O].length-1;if(A>0)for(var G=I;G<=O;G++)B[3]+=this.grid[A-1][G].length+this.grid[A][G].length-1;for(var F=y.MAX_VALUE,$,U,_=0;_<B.length;_++)B[_]<F?(F=B[_],$=1,U=_):B[_]==F&&$++;if($==3&&F==0)B[0]==0&&B[1]==0&&B[2]==0?x=1:B[0]==0&&B[1]==0&&B[3]==0?x=0:B[0]==0&&B[2]==0&&B[3]==0?x=3:B[1]==0&&B[2]==0&&B[3]==0&&(x=2);else if($==2&&F==0){var Y=Math.floor(Math.random()*2);B[0]==0&&B[1]==0?Y==0?x=0:x=1:B[0]==0&&B[2]==0?Y==0?x=0:x=2:B[0]==0&&B[3]==0?Y==0?x=0:x=3:B[1]==0&&B[2]==0?Y==0?x=1:x=2:B[1]==0&&B[3]==0?Y==0?x=1:x=3:Y==0?x=2:x=3}else if($==4&&F==0){var Y=Math.floor(Math.random()*4);x=Y}else x=U;x==0?D.setCenter(w.getCenterX(),w.getCenterY()-w.getHeight()/2-c.DEFAULT_EDGE_LENGTH-D.getHeight()/2):x==1?D.setCenter(w.getCenterX()+w.getWidth()/2+c.DEFAULT_EDGE_LENGTH+D.getWidth()/2,w.getCenterY()):x==2?D.setCenter(w.getCenterX(),w.getCenterY()+w.getHeight()/2+c.DEFAULT_EDGE_LENGTH+D.getHeight()/2):D.setCenter(w.getCenterX()-w.getWidth()/2-c.DEFAULT_EDGE_LENGTH-D.getWidth()/2,w.getCenterY())},a.exports=C},function(a,n,i){var s={};s.layoutBase=i(0),s.CoSEConstants=i(1),s.CoSEEdge=i(2),s.CoSEGraph=i(3),s.CoSEGraphManager=i(4),s.CoSELayout=i(6),s.CoSENode=i(5),a.exports=s}])})}(Bn)),Bn.exports}(function(t,e){(function(a,n){t.exports=n(wm())})(Vt,function(r){return function(a){var n={};function i(s){if(n[s])return n[s].exports;var o=n[s]={i:s,l:!1,exports:{}};return a[s].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=a,i.c=n,i.i=function(s){return s},i.d=function(s,o,l){i.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:l})},i.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(o,"a",o),o},i.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},i.p="",i(i.s=1)}([function(a,n){a.exports=r},function(a,n,i){var s=i(0).layoutBase.LayoutConstants,o=i(0).layoutBase.FDLayoutConstants,l=i(0).CoSEConstants,u=i(0).CoSELayout,f=i(0).CoSENode,h=i(0).layoutBase.PointD,c=i(0).layoutBase.DimensionD,v={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function d(E,m){var T={};for(var C in E)T[C]=E[C];for(var C in m)T[C]=m[C];return T}function g(E){this.options=d(v,E),p(this.options)}var p=function(m){m.nodeRepulsion!=null&&(l.DEFAULT_REPULSION_STRENGTH=o.DEFAULT_REPULSION_STRENGTH=m.nodeRepulsion),m.idealEdgeLength!=null&&(l.DEFAULT_EDGE_LENGTH=o.DEFAULT_EDGE_LENGTH=m.idealEdgeLength),m.edgeElasticity!=null&&(l.DEFAULT_SPRING_STRENGTH=o.DEFAULT_SPRING_STRENGTH=m.edgeElasticity),m.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=m.nestingFactor),m.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=o.DEFAULT_GRAVITY_STRENGTH=m.gravity),m.numIter!=null&&(l.MAX_ITERATIONS=o.MAX_ITERATIONS=m.numIter),m.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=o.DEFAULT_GRAVITY_RANGE_FACTOR=m.gravityRange),m.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=m.gravityCompound),m.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=m.gravityRangeCompound),m.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=o.DEFAULT_COOLING_FACTOR_INCREMENTAL=m.initialEnergyOnIncremental),m.quality=="draft"?s.QUALITY=0:m.quality=="proof"?s.QUALITY=2:s.QUALITY=1,l.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=s.NODE_DIMENSIONS_INCLUDE_LABELS=m.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!m.randomize,l.ANIMATE=o.ANIMATE=s.ANIMATE=m.animate,l.TILE=m.tile,l.TILING_PADDING_VERTICAL=typeof m.tilingPaddingVertical=="function"?m.tilingPaddingVertical.call():m.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof m.tilingPaddingHorizontal=="function"?m.tilingPaddingHorizontal.call():m.tilingPaddingHorizontal};g.prototype.run=function(){var E,m,T=this.options;this.idToLNode={};var C=this.layout=new u,S=this;S.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var b=C.newGraphManager();this.gm=b;var x=this.options.eles.nodes(),w=this.options.eles.edges();this.root=b.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(x),C);for(var D=0;D<w.length;D++){var A=w[D],L=this.idToLNode[A.data("source")],I=this.idToLNode[A.data("target")];if(L!==I&&L.getEdgesBetween(I).length==0){var O=b.add(C.newEdge(),L,I);O.id=A.id()}}var P=function(k,B){typeof k=="number"&&(k=B);var G=k.data("id"),F=S.idToLNode[G];return{x:F.getRect().getCenterX(),y:F.getRect().getCenterY()}},R=function M(){for(var k=function(){T.fit&&T.cy.fit(T.eles,T.padding),E||(E=!0,S.cy.one("layoutready",T.ready),S.cy.trigger({type:"layoutready",layout:S}))},B=S.options.refresh,G,F=0;F<B&&!G;F++)G=S.stopped||S.layout.tick();if(G){C.checkLayoutSuccess()&&!C.isSubLayout&&C.doPostLayout(),C.tilingPostLayout&&C.tilingPostLayout(),C.isLayoutFinished=!0,S.options.eles.nodes().positions(P),k(),S.cy.one("layoutstop",S.options.stop),S.cy.trigger({type:"layoutstop",layout:S}),m&&cancelAnimationFrame(m),E=!1;return}var $=S.layout.getPositionsData();T.eles.nodes().positions(function(U,_){if(typeof U=="number"&&(U=_),!U.isParent()){for(var Y=U.id(),W=$[Y],z=U;W==null&&(W=$[z.data("parent")]||$["DummyCompound_"+z.data("parent")],$[Y]=W,z=z.parent()[0],z!=null););return W!=null?{x:W.x,y:W.y}:{x:U.position("x"),y:U.position("y")}}}),k(),m=requestAnimationFrame(M)};return C.addListener("layoutstarted",function(){S.options.animate==="during"&&(m=requestAnimationFrame(R))}),C.runLayout(),this.options.animate!=="during"&&(S.options.eles.nodes().not(":parent").layoutPositions(S,S.options,P),E=!1),this},g.prototype.getTopMostNodes=function(E){for(var m={},T=0;T<E.length;T++)m[E[T].id()]=!0;var C=E.filter(function(S,b){typeof S=="number"&&(S=b);for(var x=S.parent()[0];x!=null;){if(m[x.id()])return!1;x=x.parent()[0]}return!0});return C},g.prototype.processChildrenList=function(E,m,T){for(var C=m.length,S=0;S<C;S++){var b=m[S],x=b.children(),w,D=b.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(b.outerWidth()!=null&&b.outerHeight()!=null?w=E.add(new f(T.graphManager,new h(b.position("x")-D.w/2,b.position("y")-D.h/2),new c(parseFloat(D.w),parseFloat(D.h)))):w=E.add(new f(this.graphManager)),w.id=b.data("id"),w.paddingLeft=parseInt(b.css("padding")),w.paddingTop=parseInt(b.css("padding")),w.paddingRight=parseInt(b.css("padding")),w.paddingBottom=parseInt(b.css("padding")),this.options.nodeDimensionsIncludeLabels&&b.isParent()){var A=b.boundingBox({includeLabels:!0,includeNodes:!1}).w,L=b.boundingBox({includeLabels:!0,includeNodes:!1}).h,I=b.css("text-halign");w.labelWidth=A,w.labelHeight=L,w.labelPos=I}if(this.idToLNode[b.data("id")]=w,isNaN(w.rect.x)&&(w.rect.x=0),isNaN(w.rect.y)&&(w.rect.y=0),x!=null&&x.length>0){var O;O=T.getGraphManager().add(T.newGraph(),w),this.processChildrenList(O,x,T)}}},g.prototype.stop=function(){return this.stopped=!0,this};var y=function(m){m("layout","cose-bilkent",g)};typeof cytoscape<"u"&&y(cytoscape),a.exports=y}])})})(Ol);var xm=Ol.exports;const Tm=Ys(xm);var Zn=function(){var t=function(T,C,S,b){for(S=S||{},b=T.length;b--;S[T[b]]=C);return S},e=[1,4],r=[1,13],a=[1,12],n=[1,15],i=[1,16],s=[1,20],o=[1,19],l=[6,7,8],u=[1,26],f=[1,24],h=[1,25],c=[6,7,11],v=[1,6,13,15,16,19,22],d=[1,33],g=[1,34],p=[1,6,7,11,13,15,16,19,22],y={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(C,S,b,x,w,D,A){var L=D.length-1;switch(w){case 6:case 7:return x;case 8:x.getLogger().trace("Stop NL ");break;case 9:x.getLogger().trace("Stop EOF ");break;case 11:x.getLogger().trace("Stop NL2 ");break;case 12:x.getLogger().trace("Stop EOF2 ");break;case 15:x.getLogger().info("Node: ",D[L].id),x.addNode(D[L-1].length,D[L].id,D[L].descr,D[L].type);break;case 16:x.getLogger().trace("Icon: ",D[L]),x.decorateNode({icon:D[L]});break;case 17:case 21:x.decorateNode({class:D[L]});break;case 18:x.getLogger().trace("SPACELIST");break;case 19:x.getLogger().trace("Node: ",D[L].id),x.addNode(0,D[L].id,D[L].descr,D[L].type);break;case 20:x.decorateNode({icon:D[L]});break;case 25:x.getLogger().trace("node found ..",D[L-2]),this.$={id:D[L-1],descr:D[L-1],type:x.getType(D[L-2],D[L])};break;case 26:this.$={id:D[L],descr:D[L],type:x.nodeType.DEFAULT};break;case 27:x.getLogger().trace("node found ..",D[L-3]),this.$={id:D[L-3],descr:D[L-1],type:x.getType(D[L-2],D[L])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:a,14:14,15:n,16:i,17:17,18:18,19:s,22:o},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:a,14:14,15:n,16:i,17:17,18:18,19:s,22:o},{6:r,9:22,12:11,13:a,14:14,15:n,16:i,17:17,18:18,19:s,22:o},{6:u,7:f,10:23,11:h},t(c,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:o}),t(c,[2,18]),t(c,[2,19]),t(c,[2,20]),t(c,[2,21]),t(c,[2,23]),t(c,[2,24]),t(c,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:f,10:32,11:h},{1:[2,7],6:r,12:21,13:a,14:14,15:n,16:i,17:17,18:18,19:s,22:o},t(v,[2,14],{7:d,11:g}),t(p,[2,8]),t(p,[2,9]),t(p,[2,10]),t(c,[2,15]),t(c,[2,16]),t(c,[2,17]),{20:[1,35]},{21:[1,36]},t(v,[2,13],{7:d,11:g}),t(p,[2,11]),t(p,[2,12]),{21:[1,37]},t(c,[2,25]),t(c,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(C,S){if(S.recoverable)this.trace(C);else{var b=new Error(C);throw b.hash=S,b}},parse:function(C){var S=this,b=[0],x=[],w=[null],D=[],A=this.table,L="",I=0,O=0,P=2,R=1,M=D.slice.call(arguments,1),k=Object.create(this.lexer),B={yy:{}};for(var G in this.yy)Object.prototype.hasOwnProperty.call(this.yy,G)&&(B.yy[G]=this.yy[G]);k.setInput(C,B.yy),B.yy.lexer=k,B.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var F=k.yylloc;D.push(F);var $=k.options&&k.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var te;return te=x.pop()||k.lex()||R,typeof te!="number"&&(te instanceof Array&&(x=te,te=x.pop()),te=S.symbols_[te]||te),te}for(var _,Y,W,z,K={},j,Q,ee,ne;;){if(Y=b[b.length-1],this.defaultActions[Y]?W=this.defaultActions[Y]:((_===null||typeof _>"u")&&(_=U()),W=A[Y]&&A[Y][_]),typeof W>"u"||!W.length||!W[0]){var ce="";ne=[];for(j in A[Y])this.terminals_[j]&&j>P&&ne.push("'"+this.terminals_[j]+"'");k.showPosition?ce="Parse error on line "+(I+1)+`: +`+k.showPosition()+` +Expecting `+ne.join(", ")+", got '"+(this.terminals_[_]||_)+"'":ce="Parse error on line "+(I+1)+": Unexpected "+(_==R?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(ce,{text:k.match,token:this.terminals_[_]||_,line:k.yylineno,loc:F,expected:ne})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Y+", token: "+_);switch(W[0]){case 1:b.push(_),w.push(k.yytext),D.push(k.yylloc),b.push(W[1]),_=null,O=k.yyleng,L=k.yytext,I=k.yylineno,F=k.yylloc;break;case 2:if(Q=this.productions_[W[1]][1],K.$=w[w.length-Q],K._$={first_line:D[D.length-(Q||1)].first_line,last_line:D[D.length-1].last_line,first_column:D[D.length-(Q||1)].first_column,last_column:D[D.length-1].last_column},$&&(K._$.range=[D[D.length-(Q||1)].range[0],D[D.length-1].range[1]]),z=this.performAction.apply(K,[L,O,I,B.yy,W[1],w,D].concat(M)),typeof z<"u")return z;Q&&(b=b.slice(0,-1*Q*2),w=w.slice(0,-1*Q),D=D.slice(0,-1*Q)),b.push(this.productions_[W[1]][0]),w.push(K.$),D.push(K._$),ee=A[b[b.length-2]][b[b.length-1]],b.push(ee);break;case 3:return!0}}return!0}},E=function(){var T={EOF:1,parseError:function(S,b){if(this.yy.parser)this.yy.parser.parseError(S,b);else throw new Error(S)},setInput:function(C,S){return this.yy=S||this.yy||{},this._input=C,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var C=this._input[0];this.yytext+=C,this.yyleng++,this.offset++,this.match+=C,this.matched+=C;var S=C.match(/(?:\r\n?|\n).*/g);return S?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),C},unput:function(C){var S=C.length,b=C.split(/(?:\r\n?|\n)/g);this._input=C+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-S),this.offset-=S;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),b.length-1&&(this.yylineno-=b.length-1);var w=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:b?(b.length===x.length?this.yylloc.first_column:0)+x[x.length-b.length].length-b[0].length:this.yylloc.first_column-S},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-S]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(C){this.unput(this.match.slice(C))},pastInput:function(){var C=this.matched.substr(0,this.matched.length-this.match.length);return(C.length>20?"...":"")+C.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var C=this.match;return C.length<20&&(C+=this._input.substr(0,20-C.length)),(C.substr(0,20)+(C.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var C=this.pastInput(),S=new Array(C.length+1).join("-");return C+this.upcomingInput()+` +`+S+"^"},test_match:function(C,S){var b,x,w;if(this.options.backtrack_lexer&&(w={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(w.yylloc.range=this.yylloc.range.slice(0))),x=C[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+C[0].length},this.yytext+=C[0],this.match+=C[0],this.matches=C,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(C[0].length),this.matched+=C[0],b=this.performAction.call(this,this.yy,this,S,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),b)return b;if(this._backtrack){for(var D in w)this[D]=w[D];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var C,S,b,x;this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),D=0;D<w.length;D++)if(b=this._input.match(this.rules[w[D]]),b&&(!S||b[0].length>S[0].length)){if(S=b,x=D,this.options.backtrack_lexer){if(C=this.test_match(b,w[D]),C!==!1)return C;if(this._backtrack){S=!1;continue}else return!1}else if(!this.options.flex)break}return S?(C=this.test_match(S,w[x]),C!==!1?C:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var S=this.next();return S||this.lex()},begin:function(S){this.conditionStack.push(S)},popState:function(){var S=this.conditionStack.length-1;return S>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(S){return S=this.conditionStack.length-1-Math.abs(S||0),S>=0?this.conditionStack[S]:"INITIAL"},pushState:function(S){this.begin(S)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(S,b,x,w){switch(x){case 0:return S.getLogger().trace("Found comment",b.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:S.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return S.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:S.getLogger().trace("end icon"),this.popState();break;case 10:return S.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return S.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return S.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return S.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:S.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return S.getLogger().trace("description:",b.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),S.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),S.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),S.getLogger().trace("node end ...",b.yytext),"NODE_DEND";case 30:return this.popState(),S.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),S.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),S.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),S.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),S.getLogger().trace("node end (("),"NODE_DEND";case 35:return S.getLogger().trace("Long description:",b.yytext),20;case 36:return S.getLogger().trace("Long description:",b.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return T}();y.lexer=E;function m(){this.yy={}}return m.prototype=y,y.Parser=m,new m}();Zn.parser=Zn;const Cm=Zn;let Ct=[],Nl=0,xi={};const Dm=()=>{Ct=[],Nl=0,xi={}},Sm=function(t){for(let e=Ct.length-1;e>=0;e--)if(Ct[e].level<t)return Ct[e];return null},Lm=()=>Ct.length>0?Ct[0]:null,Am=(t,e,r,a)=>{var n,i;ur.info("addNode",t,e,r,a);const s=Qn();let o=((n=s.mindmap)==null?void 0:n.padding)??_a.mindmap.padding;switch(a){case Ve.ROUNDED_RECT:case Ve.RECT:case Ve.HEXAGON:o*=2}const l={id:Nl++,nodeId:Ua(e,s),level:t,descr:Ua(r,s),type:a,children:[],width:((i=s.mindmap)==null?void 0:i.maxNodeWidth)??_a.mindmap.maxNodeWidth,padding:o},u=Sm(t);if(u)u.children.push(l),Ct.push(l);else if(Ct.length===0)Ct.push(l);else throw new Error('There can be only one root. No parent could be found for ("'+l.descr+'")')},Ve={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Om=(t,e)=>{switch(ur.debug("In get type",t,e),t){case"[":return Ve.RECT;case"(":return e===")"?Ve.ROUNDED_RECT:Ve.CLOUD;case"((":return Ve.CIRCLE;case")":return Ve.CLOUD;case"))":return Ve.BANG;case"{{":return Ve.HEXAGON;default:return Ve.DEFAULT}},Nm=(t,e)=>{xi[t]=e},Im=t=>{if(!t)return;const e=Qn(),r=Ct[Ct.length-1];t.icon&&(r.icon=Ua(t.icon,e)),t.class&&(r.class=Ua(t.class,e))},Mm=t=>{switch(t){case Ve.DEFAULT:return"no-border";case Ve.RECT:return"rect";case Ve.ROUNDED_RECT:return"rounded-rect";case Ve.CIRCLE:return"circle";case Ve.CLOUD:return"cloud";case Ve.BANG:return"bang";case Ve.HEXAGON:return"hexgon";default:return"no-border"}},Rm=()=>ur,km=t=>xi[t],Pm={clear:Dm,addNode:Am,getMindmap:Lm,nodeType:Ve,getType:Om,setElementForId:Nm,decorateNode:Im,type2Str:Mm,getLogger:Rm,getElementById:km},Bm=Pm,Fm=12,Gm=function(t,e,r,a){e.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("d",`M0 ${r.height-5} v${-r.height+2*5} q0,-5 5,-5 h${r.width-2*5} q5,0 5,5 v${r.height-5} H0 Z`),e.append("line").attr("class","node-line-"+a).attr("x1",0).attr("y1",r.height).attr("x2",r.width).attr("y2",r.height)},zm=function(t,e,r){e.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("height",r.height).attr("width",r.width)},$m=function(t,e,r){const a=r.width,n=r.height,i=.15*a,s=.25*a,o=.35*a,l=.2*a;e.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("d",`M0 0 a${i},${i} 0 0,1 ${a*.25},${-1*a*.1} + a${o},${o} 1 0,1 ${a*.4},${-1*a*.1} + a${s},${s} 1 0,1 ${a*.35},${1*a*.2} + + a${i},${i} 1 0,1 ${a*.15},${1*n*.35} + a${l},${l} 1 0,1 ${-1*a*.15},${1*n*.65} + + a${s},${i} 1 0,1 ${-1*a*.25},${a*.15} + a${o},${o} 1 0,1 ${-1*a*.5},0 + a${i},${i} 1 0,1 ${-1*a*.25},${-1*a*.15} + + a${i},${i} 1 0,1 ${-1*a*.1},${-1*n*.35} + a${l},${l} 1 0,1 ${a*.1},${-1*n*.65} + + H0 V0 Z`)},Vm=function(t,e,r){const a=r.width,n=r.height,i=.15*a;e.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("d",`M0 0 a${i},${i} 1 0,0 ${a*.25},${-1*n*.1} + a${i},${i} 1 0,0 ${a*.25},0 + a${i},${i} 1 0,0 ${a*.25},0 + a${i},${i} 1 0,0 ${a*.25},${1*n*.1} + + a${i},${i} 1 0,0 ${a*.15},${1*n*.33} + a${i*.8},${i*.8} 1 0,0 0,${1*n*.34} + a${i},${i} 1 0,0 ${-1*a*.15},${1*n*.33} + + a${i},${i} 1 0,0 ${-1*a*.25},${n*.15} + a${i},${i} 1 0,0 ${-1*a*.25},0 + a${i},${i} 1 0,0 ${-1*a*.25},0 + a${i},${i} 1 0,0 ${-1*a*.25},${-1*n*.15} + + a${i},${i} 1 0,0 ${-1*a*.1},${-1*n*.33} + a${i*.8},${i*.8} 1 0,0 0,${-1*n*.34} + a${i},${i} 1 0,0 ${a*.1},${-1*n*.33} + + H0 V0 Z`)},_m=function(t,e,r){e.append("circle").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("r",r.width/2)};function Um(t,e,r,a,n){return t.insert("polygon",":first-child").attr("points",a.map(function(i){return i.x+","+i.y}).join(" ")).attr("transform","translate("+(n.width-e)/2+", "+r+")")}const Hm=function(t,e,r){const a=r.height,i=a/4,s=r.width-r.padding+2*i,o=[{x:i,y:0},{x:s-i,y:0},{x:s,y:-a/2},{x:s-i,y:-a},{x:i,y:-a},{x:0,y:-a/2}];Um(e,s,a,o,r)},Ym=function(t,e,r){e.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("height",r.height).attr("rx",r.padding).attr("ry",r.padding).attr("width",r.width)},Xm=function(t,e,r,a,n){const i=n.htmlLabels,s=a%(Fm-1),o=e.append("g");r.section=s;let l="section-"+s;s<0&&(l+=" section-root"),o.attr("class",(r.class?r.class+" ":"")+"mindmap-node "+l);const u=o.append("g"),f=o.append("g"),h=r.descr.replace(/(<br\/*>)/g,` +`);Kl(f,h,{useHtmlLabels:i,width:r.width,classes:"mindmap-node-label"}),i||f.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const c=f.node().getBBox(),[v]=ql(n.fontSize);if(r.height=c.height+v*1.1*.5+r.padding,r.width=c.width+2*r.padding,r.icon)if(r.type===t.nodeType.CIRCLE)r.height+=50,r.width+=50,o.append("foreignObject").attr("height","50px").attr("width",r.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+s+" "+r.icon),f.attr("transform","translate("+r.width/2+", "+(r.height/2-1.5*r.padding)+")");else{r.width+=50;const d=r.height;r.height=Math.max(d,60);const g=Math.abs(r.height-d);o.append("foreignObject").attr("width","60px").attr("height",r.height).attr("style","text-align: center;margin-top:"+g/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+s+" "+r.icon),f.attr("transform","translate("+(25+r.width/2)+", "+(g/2+r.padding/2)+")")}else if(i){const d=(r.width-c.width)/2,g=(r.height-c.height)/2;f.attr("transform","translate("+d+", "+g+")")}else{const d=r.width/2,g=r.padding/2;f.attr("transform","translate("+d+", "+g+")")}switch(r.type){case t.nodeType.DEFAULT:Gm(t,u,r,s);break;case t.nodeType.ROUNDED_RECT:Ym(t,u,r);break;case t.nodeType.RECT:zm(t,u,r);break;case t.nodeType.CIRCLE:u.attr("transform","translate("+r.width/2+", "+ +r.height/2+")"),_m(t,u,r);break;case t.nodeType.CLOUD:$m(t,u,r);break;case t.nodeType.BANG:Vm(t,u,r);break;case t.nodeType.HEXAGON:Hm(t,u,r);break}return t.setElementForId(r.id,o),r.height},Wm=function(t,e){const r=t.getElementById(e.id),a=e.x||0,n=e.y||0;r.attr("transform","translate("+a+","+n+")")};Al.use(Tm);function Il(t,e,r,a,n){Xm(t,e,r,a,n),r.children&&r.children.forEach((i,s)=>{Il(t,e,i,a<0?s:a,n)})}function qm(t,e){e.edges().map((r,a)=>{const n=r.data();if(r[0]._private.bodyBounds){const i=r[0]._private.rscratch;ur.trace("Edge: ",a,n),t.insert("path").attr("d",`M ${i.startX},${i.startY} L ${i.midX},${i.midY} L${i.endX},${i.endY} `).attr("class","edge section-edge-"+n.section+" edge-depth-"+n.depth)}})}function Ml(t,e,r,a){e.add({group:"nodes",data:{id:t.id.toString(),labelText:t.descr,height:t.height,width:t.width,level:a,nodeId:t.id,padding:t.padding,type:t.type},position:{x:t.x,y:t.y}}),t.children&&t.children.forEach(n=>{Ml(n,e,r,a+1),e.add({group:"edges",data:{id:`${t.id}_${n.id}`,source:t.id,target:n.id,depth:a,section:n.section}})})}function Km(t,e){return new Promise(r=>{const a=Hl("body").append("div").attr("id","cy").attr("style","display:none"),n=Al({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});a.remove(),Ml(t,n,e,0),n.nodes().forEach(function(i){i.layoutDimensions=()=>{const s=i.data();return{w:s.width,h:s.height}}}),n.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),n.ready(i=>{ur.info("Ready",i),r(n)})})}function Zm(t,e){e.nodes().map((r,a)=>{const n=r.data();n.x=r.position().x,n.y=r.position().y,Wm(t,n);const i=t.getElementById(n.nodeId);ur.info("Id:",a,"Position: (",r.position().x,", ",r.position().y,")",n),i.attr("transform",`translate(${r.position().x-n.width/2}, ${r.position().y-n.height/2})`),i.attr("attr",`apa-${a})`)})}const Qm=async(t,e,r,a)=>{var n,i;ur.debug(`Rendering mindmap diagram +`+t);const s=a.db,o=s.getMindmap();if(!o)return;const l=Qn();l.htmlLabels=!1;const u=_l(e),f=u.append("g");f.attr("class","mindmap-edges");const h=u.append("g");h.attr("class","mindmap-nodes"),Il(s,h,o,-1,l);const c=await Km(o,l);qm(f,c),Zm(s,c),Ul(void 0,u,((n=l.mindmap)==null?void 0:n.padding)??_a.mindmap.padding,((i=l.mindmap)==null?void 0:i.useMaxWidth)??_a.mindmap.useMaxWidth)},Jm={draw:Qm},jm=t=>{let e="";for(let r=0;r<t.THEME_COLOR_LIMIT;r++)t["lineColor"+r]=t["lineColor"+r]||t["cScaleInv"+r],Yl(t["lineColor"+r])?t["lineColor"+r]=Xl(t["lineColor"+r],20):t["lineColor"+r]=Wl(t["lineColor"+r],20);for(let r=0;r<t.THEME_COLOR_LIMIT;r++){const a=""+(17-3*r);e+=` + .section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} polygon, .section-${r-1} path { + fill: ${t["cScale"+r]}; + } + .section-${r-1} text { + fill: ${t["cScaleLabel"+r]}; + } + .node-icon-${r-1} { + font-size: 40px; + color: ${t["cScaleLabel"+r]}; + } + .section-edge-${r-1}{ + stroke: ${t["cScale"+r]}; + } + .edge-depth-${r-1}{ + stroke-width: ${a}; + } + .section-${r-1} line { + stroke: ${t["cScaleInv"+r]} ; + stroke-width: 3; + } + + .disabled, .disabled circle, .disabled text { + fill: lightgray; + } + .disabled text { + fill: #efefef; + } + `}return e},e0=t=>` + .edge { + stroke-width: 3; + } + ${jm(t)} + .section-root rect, .section-root path, .section-root circle, .section-root polygon { + fill: ${t.git0}; + } + .section-root text { + fill: ${t.gitBranchLabel0}; + } + .icon-container { + height:100%; + display: flex; + justify-content: center; + align-items: center; + } + .edge { + fill: none; + } + .mindmap-node-label { + dy: 1em; + alignment-baseline: middle; + text-anchor: middle; + dominant-baseline: middle; + text-align: center; + } +`,t0=e0,F0={db:Bm,renderer:Jm,parser:Cm,styles:t0};export{F0 as diagram}; diff --git a/assets/motion-minimal-gJqnz197.js b/assets/motion-minimal-gJqnz197.js new file mode 100644 index 00000000000..84090ee8f02 --- /dev/null +++ b/assets/motion-minimal-gJqnz197.js @@ -0,0 +1 @@ +import{r as l}from"./index-qegmBwH1.js";const X=l.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),T=l.createContext({}),Y=l.createContext(null),Z=typeof document<"u",ft=Z?l.useLayoutEffect:l.useEffect,N=l.createContext({strict:!1}),U=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),dt="framerAppearId",mt="data-"+U(dt);class H{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function gt(t){let e=new H,n=new H,r=0,s=!1,a=!1;const c=new WeakSet,u={schedule:(g,d=!1,m=!1)=>{const o=m&&s,f=o?e:n;return d&&c.add(g),f.add(g)&&o&&s&&(r=e.order.length),g},cancel:g=>{n.remove(g),c.delete(g)},process:g=>{if(s){a=!0;return}if(s=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let d=0;d<r;d++){const m=e.order[d];c.has(m)&&(u.schedule(m),t()),m(g)}s=!1,a&&(a=!1,u.process(g))}};return u}const v=["prepare","read","update","preRender","render","postRender"],ht=40;function q(t,e){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},a=v.reduce((o,f)=>(o[f]=gt(()=>n=!0),o),{}),c=o=>{a[o].process(s)},u=()=>{const o=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(o-s.timestamp,ht),1),s.timestamp=o,s.isProcessing=!0,v.forEach(c),s.isProcessing=!1,n&&e&&(r=!1,t(u))},g=()=>{n=!0,r=!0,s.isProcessing||t(u)};return{schedule:v.reduce((o,f)=>{const h=a[f];return o[f]=(y,p=!1,W=!1)=>(n||g(),h.schedule(y,p,W)),o},{}),cancel:o=>v.forEach(f=>a[f].cancel(o)),state:s,steps:a}}const{schedule:yt,cancel:he}=q(queueMicrotask,!1);function pt(t,e,n,r){const{visualElement:s}=l.useContext(T),a=l.useContext(N),c=l.useContext(Y),u=l.useContext(X).reducedMotion,g=l.useRef();r=r||a.renderer,!g.current&&r&&(g.current=r(t,{visualState:e,parent:s,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const d=g.current;l.useInsertionEffect(()=>{d&&d.update(n,c)});const m=l.useRef(!!(n[mt]&&!window.HandoffComplete));return ft(()=>{d&&(yt.postRender(d.render),m.current&&d.animationState&&d.animationState.animateChanges())}),l.useEffect(()=>{d&&(d.updateFeatures(),!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(m.current=!1,window.HandoffComplete=!0))}),d}function wt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function xt(t,e,n){return l.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):wt(n)&&(n.current=r))},[e])}function E(t){return typeof t=="string"||Array.isArray(t)}function K(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Ct=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bt=["initial",...Ct];function L(t){return K(t.animate)||bt.some(e=>E(t[e]))}function St(t){return!!(L(t)||t.variants)}function vt(t,e){if(L(t)){const{initial:n,animate:r}=t;return{initial:n===!1||E(n)?n:void 0,animate:E(r)?r:void 0}}return t.inherit!==!1?e:{}}function Pt(t){const{initial:e,animate:n}=vt(t,l.useContext(T));return l.useMemo(()=>({initial:e,animate:n}),[D(e),D(n)])}function D(t){return Array.isArray(t)?t.join(" "):t}const $={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},k={};for(const t in $)k[t]={isEnabled:e=>$[t].some(n=>!!e[n])};function Vt(t){for(const e in t)k[e]={...k[e],...t[e]}}const Tt=l.createContext({}),Mt=l.createContext({}),At=Symbol.for("motionComponentSymbol");function Rt({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:s}){t&&Vt(t);function a(u,g){let d;const m={...l.useContext(X),...u,layoutId:Et(u)},{isStatic:o}=m,f=Pt(u),h=r(u,o);if(!o&&Z){f.visualElement=pt(s,h,m,e);const y=l.useContext(Mt),p=l.useContext(N).strict;f.visualElement&&(d=f.visualElement.loadFeatures(m,p,t,y))}return l.createElement(T.Provider,{value:f},d&&f.visualElement?l.createElement(d,{visualElement:f.visualElement,...m}):null,n(s,u,xt(h,f.visualElement,g),h,o,f.visualElement))}const c=l.forwardRef(a);return c[At]=s,c}function Et({layoutId:t}){const e=l.useContext(Tt).id;return e&&t!==void 0?e+"-"+t:t}function kt(t){function e(r,s={}){return Rt(t(r,s))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,s)=>(n.has(s)||n.set(s,e(s)),n.get(s))})}const Lt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function _(t){return typeof t!="string"||t.includes("-")?!1:!!(Lt.indexOf(t)>-1||/[A-Z]/.test(t))}const Q={};function ye(t){Object.assign(Q,t)}const M=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],J=new Set(M);function tt(t,{layout:e,layoutId:n}){return J.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Q[t]||t==="opacity")}const x=t=>!!(t&&t.getVelocity),Ot={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ft=M.length;function Wt(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,s){let a="";for(let c=0;c<Ft;c++){const u=M[c];if(t[u]!==void 0){const g=Ot[u]||u;a+=`${g}(${t[u]}) `}}return e&&!t.z&&(a+="translateZ(0)"),a=a.trim(),s?a=s(t,r?"":a):n&&r&&(a="none"),a}const et=t=>e=>typeof e=="string"&&e.startsWith(t),Bt=et("--"),pe=et("var(--"),we=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Ht=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Dt=(t,e,n)=>Math.min(Math.max(n,t),e),O={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},A={...O,transform:t=>Dt(0,1,t)},P={...O,default:1},xe=t=>Math.round(t*1e5)/1e5,Ce=/(-)?([\d]*\.?[\d])+/g,be=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Se=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function $t(t){return typeof t=="string"}const S=t=>({test:e=>$t(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),w=S("deg"),R=S("%"),i=S("px"),ve=S("vh"),Pe=S("vw"),I={...R,parse:t=>R.parse(t)/100,transform:t=>R.transform(t*100)},j={...O,transform:Math.round},It={borderWidth:i,borderTopWidth:i,borderRightWidth:i,borderBottomWidth:i,borderLeftWidth:i,borderRadius:i,radius:i,borderTopLeftRadius:i,borderTopRightRadius:i,borderBottomRightRadius:i,borderBottomLeftRadius:i,width:i,maxWidth:i,height:i,maxHeight:i,size:i,top:i,right:i,bottom:i,left:i,padding:i,paddingTop:i,paddingRight:i,paddingBottom:i,paddingLeft:i,margin:i,marginTop:i,marginRight:i,marginBottom:i,marginLeft:i,rotate:w,rotateX:w,rotateY:w,rotateZ:w,scale:P,scaleX:P,scaleY:P,scaleZ:P,skew:w,skewX:w,skewY:w,distance:i,translateX:i,translateY:i,translateZ:i,x:i,y:i,z:i,perspective:i,transformPerspective:i,opacity:A,originX:I,originY:I,originZ:i,zIndex:j,fillOpacity:A,strokeOpacity:A,numOctaves:j};function nt(t,e,n,r){const{style:s,vars:a,transform:c,transformOrigin:u}=t;let g=!1,d=!1,m=!0;for(const o in e){const f=e[o];if(Bt(o)){a[o]=f;continue}const h=It[o],y=Ht(f,h);if(J.has(o)){if(g=!0,c[o]=y,!m)continue;f!==(h.default||0)&&(m=!1)}else o.startsWith("origin")?(d=!0,u[o]=y):s[o]=y}if(e.transform||(g||r?s.transform=Wt(t.transform,n,m,r):s.transform&&(s.transform="none")),d){const{originX:o="50%",originY:f="50%",originZ:h=0}=u;s.transformOrigin=`${o} ${f} ${h}`}}const F=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function st(t,e,n){for(const r in e)!x(e[r])&&!tt(r,n)&&(t[r]=e[r])}function jt({transformTemplate:t},e,n){return l.useMemo(()=>{const r=F();return nt(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function zt(t,e,n){const r=t.style||{},s={};return st(s,r,t),Object.assign(s,jt(t,e,n)),s}function Gt(t,e,n){const r={},s=zt(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=s,r}const Xt=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function V(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Xt.has(t)}let rt=t=>!V(t);function Yt(t){t&&(rt=e=>e.startsWith("on")?!V(e):t(e))}try{Yt(require("@emotion/is-prop-valid").default)}catch{}function Zt(t,e,n){const r={};for(const s in t)s==="values"&&typeof t.values=="object"||(rt(s)||n===!0&&V(s)||!e&&!V(s)||t.draggable&&s.startsWith("onDrag"))&&(r[s]=t[s]);return r}function z(t,e,n){return typeof t=="string"?t:i.transform(e+n*t)}function Nt(t,e,n){const r=z(e,t.x,t.width),s=z(n,t.y,t.height);return`${r} ${s}`}const Ut={offset:"stroke-dashoffset",array:"stroke-dasharray"},qt={offset:"strokeDashoffset",array:"strokeDasharray"};function Kt(t,e,n=1,r=0,s=!0){t.pathLength=1;const a=s?Ut:qt;t[a.offset]=i.transform(-r);const c=i.transform(e),u=i.transform(n);t[a.array]=`${c} ${u}`}function at(t,{attrX:e,attrY:n,attrScale:r,originX:s,originY:a,pathLength:c,pathSpacing:u=1,pathOffset:g=0,...d},m,o,f){if(nt(t,d,m,f),o){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:y,dimensions:p}=t;h.transform&&(p&&(y.transform=h.transform),delete h.transform),p&&(s!==void 0||a!==void 0||y.transform)&&(y.transformOrigin=Nt(p,s!==void 0?s:.5,a!==void 0?a:.5)),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),c!==void 0&&Kt(h,c,u,g,!1)}const ot=()=>({...F(),attrs:{}}),it=t=>typeof t=="string"&&t.toLowerCase()==="svg";function _t(t,e,n,r){const s=l.useMemo(()=>{const a=ot();return at(a,e,{enableHardwareAcceleration:!1},it(r),t.transformTemplate),{...a.attrs,style:{...a.style}}},[e]);if(t.style){const a={};st(a,t.style,t),s.style={...a,...s.style}}return s}function Qt(t=!1){return(n,r,s,{latestValues:a},c)=>{const g=(_(n)?_t:Gt)(r,a,c,n),m={...Zt(r,typeof n=="string",t),...g,ref:s},{children:o}=r,f=l.useMemo(()=>x(o)?o.get():o,[o]);return l.createElement(n,{...m,children:f})}}function Jt(t,{style:e,vars:n},r,s){Object.assign(t.style,e,s&&s.getProjectionStyles(r));for(const a in n)t.style.setProperty(a,n[a])}const te=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ee(t,e,n,r){Jt(t,e,void 0,r);for(const s in e.attrs)t.setAttribute(te.has(s)?s:U(s),e.attrs[s])}function ct(t,e){const{style:n}=t,r={};for(const s in n)(x(n[s])||e.style&&x(e.style[s])||tt(s,t))&&(r[s]=n[s]);return r}function ne(t,e){const n=ct(t,e);for(const r in t)if(x(t[r])||x(e[r])){const s=M.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[s]=t[r]}return n}function se(t,e,n,r={},s={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,s)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,s)),e}function re(t){const e=l.useRef(null);return e.current===null&&(e.current=t()),e.current}const ae=t=>Array.isArray(t),oe=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Ve=t=>ae(t)?t[t.length-1]||0:t;function ie(t){const e=x(t)?t.get():t;return oe(e)?e.toValue():e}function ce({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,s,a){const c={latestValues:ue(r,s,a,t),renderState:e()};return n&&(c.mount=u=>n(r,u,c)),c}const ut=t=>(e,n)=>{const r=l.useContext(T),s=l.useContext(Y),a=()=>ce(t,e,r,s);return n?a():re(a)};function ue(t,e,n,r){const s={},a=r(t,{});for(const f in a)s[f]=ie(a[f]);let{initial:c,animate:u}=t;const g=L(t),d=St(t);e&&d&&!g&&t.inherit!==!1&&(c===void 0&&(c=e.initial),u===void 0&&(u=e.animate));let m=n?n.initial===!1:!1;m=m||c===!1;const o=m?u:c;return o&&typeof o!="boolean"&&!K(o)&&(Array.isArray(o)?o:[o]).forEach(h=>{const y=se(t,h);if(!y)return;const{transitionEnd:p,transition:W,...B}=y;for(const b in B){let C=B[b];if(Array.isArray(C)){const lt=m?C.length-1:0;C=C[lt]}C!==null&&(s[b]=C)}for(const b in p)s[b]=p[b]}),s}const le=t=>t,{schedule:G,cancel:Te,state:Me,steps:Ae}=q(typeof requestAnimationFrame<"u"?requestAnimationFrame:le,!0),fe={useVisualState:ut({scrapeMotionValuesFromProps:ne,createRenderState:ot,onMount:(t,e,{renderState:n,latestValues:r})=>{G.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),G.render(()=>{at(n,r,{enableHardwareAcceleration:!1},it(e.tagName),t.transformTemplate),ee(e,n)})}})},de={useVisualState:ut({scrapeMotionValuesFromProps:ct,createRenderState:F})};function me(t,{forwardMotionProps:e=!1},n,r){return{..._(t)?fe:de,preloadedFeatures:n,useRender:Qt(e),createVisualElement:r,Component:t}}const Re=kt(me);export{be as $,O as A,L as B,St as C,J as D,se as E,k as F,bt as G,Bt as H,nt as I,ct as J,Jt as K,N as L,X as M,te as N,U as O,Y as P,ne as Q,at as R,Mt as S,ee as T,it as U,_ as V,$t as W,Se as X,Ce as Y,xe as Z,A as _,ft as a,we as a0,It as a1,w as a2,Pe as a3,ve as a4,Ve as a5,mt as a6,Tt as b,Te as c,K as d,ae as e,G as f,E as g,Me as h,x as i,Dt as j,wt as k,Vt as l,Re as m,le as n,i as o,R as p,ye as q,yt as r,Ae as s,ie as t,re as u,Ct as v,Q as w,pe as x,M as y,Z as z}; diff --git a/assets/ordinal-wXG5obU4.js b/assets/ordinal-wXG5obU4.js new file mode 100644 index 00000000000..f02fd3b5e38 --- /dev/null +++ b/assets/ordinal-wXG5obU4.js @@ -0,0 +1 @@ +import{i as a}from"./init-Hi12RPRh.js";class o extends Map{constructor(n,t=g){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),n!=null)for(const[r,s]of n)this.set(r,s)}get(n){return super.get(c(this,n))}has(n){return super.has(c(this,n))}set(n,t){return super.set(l(this,n),t)}delete(n){return super.delete(p(this,n))}}function c({_intern:e,_key:n},t){const r=n(t);return e.has(r)?e.get(r):t}function l({_intern:e,_key:n},t){const r=n(t);return e.has(r)?e.get(r):(e.set(r,t),t)}function p({_intern:e,_key:n},t){const r=n(t);return e.has(r)&&(t=e.get(r),e.delete(r)),t}function g(e){return e!==null&&typeof e=="object"?e.valueOf():e}const f=Symbol("implicit");function h(){var e=new o,n=[],t=[],r=f;function s(u){let i=e.get(u);if(i===void 0){if(r!==f)return r;e.set(u,i=n.push(u)-1)}return t[i%t.length]}return s.domain=function(u){if(!arguments.length)return n.slice();n=[],e=new o;for(const i of u)e.has(i)||e.set(i,n.push(i)-1);return s},s.range=function(u){return arguments.length?(t=Array.from(u),s):t.slice()},s.unknown=function(u){return arguments.length?(r=u,s):r},s.copy=function(){return h(n,t).unknown(r)},a.apply(s,arguments),s}export{h as o}; diff --git a/assets/owner-4YVbz2PN.js b/assets/owner-4YVbz2PN.js new file mode 100644 index 00000000000..259d4c901c1 --- /dev/null +++ b/assets/owner-4YVbz2PN.js @@ -0,0 +1,6 @@ +import{r as N,j as wr,c as xr,g as vr}from"./index-qegmBwH1.js";import{i as Er}from"./toast-qMk_Ov--.js";import{a as W,b as le}from"./init-a0893ef4-4662SO8Z.js";import{s as Ze,j as et}from"./store-gmK8mRDy.js";import{a as Sr,i as Mt}from"./env-y9k74Ds6.js";var Se=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Oe=typeof window>"u"||"Deno"in window;function q(){}function Or(e,t){return typeof e=="function"?e(t):e}function Cr(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ar(e,t){return Math.max(e+(t||0)-Date.now(),0)}function mt(e,t){const{type:r="all",exact:s,fetchStatus:n,predicate:i,queryKey:o,stale:a}=e;if(o){if(s){if(t.queryHash!==tt(o,t.options))return!1}else if(!ce(t.queryKey,o))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof n<"u"&&n!==t.state.fetchStatus||i&&!i(t))}function gt(e,t){const{exact:r,status:s,predicate:n,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(ae(t.options.mutationKey)!==ae(i))return!1}else if(!ce(t.options.mutationKey,i))return!1}return!(s&&t.state.status!==s||n&&!n(t))}function tt(e,t){return(t?.queryKeyHashFn||ae)(e)}function ae(e){return JSON.stringify(e,(t,r)=>Be(r)?Object.keys(r).sort().reduce((s,n)=>(s[n]=r[n],s),{}):r)}function ce(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!ce(e[r],t[r])):!1}function Ut(e,t){if(e===t)return e;const r=bt(e)&&bt(t);if(r||Be(e)&&Be(t)){const s=r?e:Object.keys(e),n=s.length,i=r?t:Object.keys(t),o=i.length,a=r?[]:{};let c=0;for(let f=0;f<o;f++){const h=r?f:i[f];!r&&e[h]===void 0&&t[h]===void 0&&s.includes(h)?(a[h]=void 0,c++):(a[h]=Ut(e[h],t[h]),a[h]===e[h]&&e[h]!==void 0&&c++)}return n===o&&c===n?e:a}return t}function Ti(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function bt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Be(e){if(!wt(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!wt(r)||!r.hasOwnProperty("isPrototypeOf"))}function wt(e){return Object.prototype.toString.call(e)==="[object Object]"}function Rr(e){return new Promise(t=>{setTimeout(t,e)})}function Pr(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Ut(e,t):t}function _i(e){return e}function Tr(e,t,r=0){const s=[...e,t];return r&&s.length>r?s.slice(1):s}function _r(e,t,r=0){const s=[t,...e];return r&&s.length>r?s.slice(0,-1):s}var Dr=class extends Se{#e;#r;#t;constructor(){super(),this.#t=e=>{if(!Oe&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#r||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#t=e,this.#r?.(),this.#r=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},qe=new Dr,Fr=class extends Se{#e=!0;#r;#t;constructor(){super(),this.#t=e=>{if(!Oe&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#r||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#t=e,this.#r?.(),this.#r=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#e}},ve=new Fr;function jr(e){return Math.min(1e3*2**e,3e4)}function rt(e){return(e??"online")==="online"?ve.isOnline():!0}var Lt=class{constructor(e){this.revert=e?.revert,this.silent=e?.silent}};function je(e){return e instanceof Lt}function It(e){let t=!1,r=0,s=!1,n,i,o;const a=new Promise((x,C)=>{i=x,o=C}),c=x=>{s||(v(new Lt(x)),e.abort?.())},f=()=>{t=!0},h=()=>{t=!1},l=()=>!qe.isFocused()||e.networkMode!=="always"&&!ve.isOnline(),b=x=>{s||(s=!0,e.onSuccess?.(x),n?.(),i(x))},v=x=>{s||(s=!0,e.onError?.(x),n?.(),o(x))},d=()=>new Promise(x=>{n=C=>{const T=s||!l();return T&&x(C),T},e.onPause?.()}).then(()=>{n=void 0,s||e.onContinue?.()}),p=()=>{if(s)return;let x;try{x=e.fn()}catch(C){x=Promise.reject(C)}Promise.resolve(x).then(b).catch(C=>{if(s)return;const T=e.retry??(Oe?0:3),F=e.retryDelay??jr,z=typeof F=="function"?F(r,C):F,V=T===!0||typeof T=="number"&&r<T||typeof T=="function"&&T(r,C);if(t||!V){v(C);return}r++,e.onFail?.(r,C),Rr(z).then(()=>{if(l())return d()}).then(()=>{t?v(C):p()})})};return rt(e.networkMode)?p():d().then(p),{promise:a,cancel:c,continue:()=>n?.()?a:Promise.resolve(),cancelRetry:f,continueRetry:h}}function kr(){let e=[],t=0,r=b=>{b()},s=b=>{b()},n=b=>setTimeout(b,0);const i=b=>{n=b},o=b=>{let v;t++;try{v=b()}finally{t--,t||f()}return v},a=b=>{t?e.push(b):n(()=>{r(b)})},c=b=>(...v)=>{a(()=>{b(...v)})},f=()=>{const b=e;e=[],b.length&&n(()=>{s(()=>{b.forEach(v=>{r(v)})})})};return{batch:o,batchCalls:c,schedule:a,setNotifyFunction:b=>{r=b},setBatchNotifyFunction:b=>{s=b},setScheduler:i}}var U=kr(),Bt=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Cr(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Oe?1/0:5*60*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},$r=class extends Bt{constructor(e){super(),this.#o=!1,this.#c=e.defaultOptions,this.#u(e.options),this.#n=[],this.#t=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=e.state||Nr(this.options),this.state=this.#e,this.scheduleGc()}#e;#r;#t;#i;#s;#n;#c;#o;get meta(){return this.options.meta}#u(e){this.options={...this.#c,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.#n.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(e,t){const r=Pr(this.state.data,e,this.options);return this.#a({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#i;return this.#s?.cancel(e),t?t.then(q).catch(q):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.#n.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.#n.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Ar(this.state.dataUpdatedAt,e)}onFocus(){this.#n.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.#n.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.#n.includes(e)&&(this.#n=this.#n.filter(t=>t!==e),this.#n.length||(this.#s&&(this.#o?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.#n.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#s?.continueRetry(),this.#i}if(e&&this.#u(e),!this.options.queryFn){const c=this.#n.find(f=>f.options.queryFn);c&&this.#u(c.options)}const r=new AbortController,s={queryKey:this.queryKey,meta:this.meta},n=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#o=!0,r.signal)})};n(s);const i=()=>this.options.queryFn?(this.#o=!1,this.options.persister?this.options.persister(this.options.queryFn,s,this):this.options.queryFn(s)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),o={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};n(o),this.options.behavior?.onFetch(o,this),this.#r=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#a({type:"fetch",meta:o.fetchOptions?.meta});const a=c=>{je(c)&&c.silent||this.#a({type:"error",error:c}),je(c)||(this.#t.config.onError?.(c,this),this.#t.config.onSettled?.(this.state.data,c,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#s=It({fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:c=>{if(typeof c>"u"){a(new Error(`${this.queryHash} data is undefined`));return}this.setData(c),this.#t.config.onSuccess?.(c,this),this.#t.config.onSettled?.(c,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:a,onFail:(c,f)=>{this.#a({type:"failed",failureCount:c,error:f})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode}),this.#i=this.#s.promise,this.#i}#a(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:e.meta??null,fetchStatus:rt(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return je(s)&&s.revert&&this.#r?{...this.#r,fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),U.batch(()=>{this.#n.forEach(r=>{r.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:e})})}};function Nr(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t<"u",s=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Mr=class extends Se{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){const s=t.queryKey,n=t.queryHash??tt(s,t);let i=this.get(n);return i||(i=new $r({cache:this,queryKey:s,queryHash:n,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){U.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>mt(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>mt(e,r)):t}notify(e){U.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){U.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){U.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ur=class extends Bt{constructor(e){super(),this.mutationId=e.mutationId,this.#r=e.defaultOptions,this.#t=e.mutationCache,this.#e=[],this.state=e.state||Lr(),this.setOptions(e.options),this.scheduleGc()}#e;#r;#t;#i;setOptions(e){this.options={...this.#r,...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>(this.#i=It({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(s,n)=>{this.#s({type:"failed",failureCount:s,error:n})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.#i.promise),r=this.state.status==="pending";try{if(!r){this.#s({type:"pending",variables:e}),await this.#t.config.onMutate?.(e,this);const n=await this.options.onMutate?.(e);n!==this.state.context&&this.#s({type:"pending",context:n,variables:e})}const s=await t();return await this.#t.config.onSuccess?.(s,e,this.state.context,this),await this.options.onSuccess?.(s,e,this.state.context),await this.#t.config.onSettled?.(s,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(s,null,e,this.state.context),this.#s({type:"success",data:s}),s}catch(s){try{throw await this.#t.config.onError?.(s,e,this.state.context,this),await this.options.onError?.(s,e,this.state.context),await this.#t.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,s,e,this.state.context),s}finally{this.#s({type:"error",error:s})}}}#s(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!rt(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),U.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function Lr(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ir=class extends Se{constructor(e={}){super(),this.config=e,this.#e=[],this.#r=0}#e;#r;#t;build(e,t,r){const s=new Ur({mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(s),s}add(e){this.#e.push(e),this.notify({type:"added",mutation:e})}remove(e){this.#e=this.#e.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){U.batch(()=>{this.#e.forEach(e=>{this.remove(e)})})}getAll(){return this.#e}find(e){const t={exact:!0,...e};return this.#e.find(r=>gt(t,r))}findAll(e={}){return this.#e.filter(t=>gt(e,t))}notify(e){U.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){return this.#t=(this.#t??Promise.resolve()).then(()=>{const e=this.#e.filter(t=>t.state.isPaused);return U.batch(()=>e.reduce((t,r)=>t.then(()=>r.continue().catch(q)),Promise.resolve()))}).then(()=>{this.#t=void 0}),this.#t}};function Br(e){return{onFetch:(t,r)=>{const s=async()=>{const n=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],a=t.state.data?.pageParams||[],c={pages:[],pageParams:[]};let f=!1;const h=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},l=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),b=async(d,p,x)=>{if(f)return Promise.reject();if(p==null&&d.pages.length)return Promise.resolve(d);const C={queryKey:t.queryKey,pageParam:p,direction:x?"backward":"forward",meta:t.options.meta};h(C);const T=await l(C),{maxPages:F}=t.options,z=x?_r:Tr;return{pages:z(d.pages,T,F),pageParams:z(d.pageParams,p,F)}};let v;if(i&&o.length){const d=i==="backward",p=d?qt:He,x={pages:o,pageParams:a},C=p(n,x);v=await b(x,C,d)}else{v=await b(c,a[0]??n.initialPageParam);const d=e??o.length;for(let p=1;p<d;p++){const x=He(n,v);v=await b(v,x)}}return v};t.options.persister?t.fetchFn=()=>t.options.persister?.(s,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=s}}}function He(e,{pages:t,pageParams:r}){const s=t.length-1;return e.getNextPageParam(t[s],t,r[s],r)}function qt(e,{pages:t,pageParams:r}){return e.getPreviousPageParam?.(t[0],t,r[0],r)}function Di(e,t){return t?He(e,t)!=null:!1}function Fi(e,t){return!t||!e.getPreviousPageParam?!1:qt(e,t)!=null}var qr=class{#e;#r;#t;#i;#s;#n;#c;#o;constructor(e={}){this.#e=e.queryCache||new Mr,this.#r=e.mutationCache||new Ir,this.#t=e.defaultOptions||{},this.#i=new Map,this.#s=new Map,this.#n=0}mount(){this.#n++,this.#n===1&&(this.#c=qe.subscribe(()=>{qe.isFocused()&&(this.resumePausedMutations(),this.#e.onFocus())}),this.#o=ve.subscribe(()=>{ve.isOnline()&&(this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#n--,this.#n===0&&(this.#c?.(),this.#c=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#r.findAll({...e,status:"pending"}).length}getQueryData(e){return this.#e.find({queryKey:e})?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t!==void 0?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:r})=>{const s=r.data;return[t,s]})}setQueryData(e,t,r){const n=this.#e.find({queryKey:e})?.state.data,i=Or(t,n);if(typeof i>"u")return;const o=this.defaultQueryOptions({queryKey:e});return this.#e.build(this,o).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return U.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,r)]))}getQueryState(e){return this.#e.find({queryKey:e})?.state}removeQueries(e){const t=this.#e;U.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#e,s={type:"active",...e};return U.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries(s,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},s=U.batch(()=>this.#e.findAll(e).map(n=>n.cancel(r)));return Promise.all(s).then(q).catch(q)}invalidateQueries(e={},t={}){return U.batch(()=>{if(this.#e.findAll(e).forEach(s=>{s.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:t?.cancelRefetch??!0},s=U.batch(()=>this.#e.findAll(e).filter(n=>!n.isDisabled()).map(n=>{let i=n.fetch(void 0,r);return r.throwOnError||(i=i.catch(q)),n.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(q)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const r=this.#e.build(this,t);return r.isStaleByTime(t.staleTime)?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(q).catch(q)}fetchInfiniteQuery(e){return e.behavior=Br(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(q).catch(q)}resumePausedMutations(){return this.#r.resumePausedMutations()}getQueryCache(){return this.#e}getMutationCache(){return this.#r}getDefaultOptions(){return this.#t}setDefaultOptions(e){this.#t=e}setQueryDefaults(e,t){this.#i.set(ae(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()];let r={};return t.forEach(s=>{ce(e,s.queryKey)&&(r={...r,...s.defaultOptions})}),r}setMutationDefaults(e,t){this.#s.set(ae(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()];let r={};return t.forEach(s=>{ce(e,s.mutationKey)&&(r={...r,...s.defaultOptions})}),r}defaultQueryOptions(e){if(e?._defaulted)return e;const t={...this.#t.queries,...e?.queryKey&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=tt(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#t.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#r.clear()}};function Hr(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.meta&&{meta:e.meta}}}function Qr(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash,...e.meta&&{meta:e.meta}}}function Kr(e){return e.state.isPaused}function zr(e){return e.state.status==="success"}function Gr(e,t={}){const r=t.shouldDehydrateMutation??Kr,s=e.getMutationCache().getAll().flatMap(o=>r(o)?[Hr(o)]:[]),n=t.shouldDehydrateQuery??zr,i=e.getQueryCache().getAll().flatMap(o=>n(o)?[Qr(o)]:[]);return{mutations:s,queries:i}}function Jr(e,t,r){if(typeof t!="object"||t===null)return;const s=e.getMutationCache(),n=e.getQueryCache(),i=t.mutations||[],o=t.queries||[];i.forEach(a=>{s.build(e,{...r?.defaultOptions?.mutations,mutationKey:a.mutationKey,meta:a.meta},a.state)}),o.forEach(({queryKey:a,state:c,queryHash:f,meta:h})=>{const l=n.get(f);if(l){if(l.state.dataUpdatedAt<c.dataUpdatedAt){const{fetchStatus:b,...v}=c;l.setState(v)}return}n.build(e,{...r?.defaultOptions?.queries,queryKey:a,queryHash:f,meta:h},{...c,fetchStatus:"idle"})})}var Ht=N.createContext(void 0),ji=e=>{const t=N.useContext(Ht);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Wr=({client:e,children:t})=>(N.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.createElement(Ht.Provider,{value:e},t)),Qt=N.createContext(!1),ki=()=>N.useContext(Qt),Vr=Qt.Provider,Yr=["added","removed","updated"];function xt(e){return Yr.includes(e)}async function Xr({queryClient:e,persister:t,maxAge:r=1e3*60*60*24,buster:s="",hydrateOptions:n}){try{const i=await t.restoreClient();if(i)if(i.timestamp){const o=Date.now()-i.timestamp>r,a=i.buster!==s;o||a?t.removeClient():Jr(e,i.clientState,n)}else t.removeClient()}catch{t.removeClient()}}async function vt({queryClient:e,persister:t,buster:r="",dehydrateOptions:s}){const n={buster:r,timestamp:Date.now(),clientState:Gr(e,s)};await t.persistClient(n)}function Zr(e){const t=e.queryClient.getQueryCache().subscribe(s=>{xt(s.type)&&vt(e)}),r=e.queryClient.getMutationCache().subscribe(s=>{xt(s.type)&&vt(e)});return()=>{t(),r()}}var es=({client:e,children:t,persistOptions:r,onSuccess:s,...n})=>{const[i,o]=N.useState(!0),a=N.useRef({persistOptions:r,onSuccess:s}),c=N.useRef(!1);return N.useEffect(()=>{a.current={persistOptions:r,onSuccess:s}}),N.useEffect(()=>{const f={...a.current.persistOptions,queryClient:e};return c.current||(c.current=!0,o(!0),Xr(f).then(async()=>{try{await a.current.onSuccess?.()}finally{o(!1)}})),i?void 0:Zr(f)},[e,i]),N.createElement(Wr,{client:e,...n},N.createElement(Vr,{value:i},t))};function Ce(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function Kt(e,t){const r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);const s=Ce(r);return(n,i)=>s.then(o=>i(o.transaction(t,n).objectStore(t)))}let ke;function st(){return ke||(ke=Kt("keyval-store","keyval")),ke}function ts(e,t=st()){return t("readonly",r=>Ce(r.get(e)))}function rs(e,t,r=st()){return r("readwrite",s=>(s.put(t,e),Ce(s.transaction)))}function ss(e,t=st()){return t("readwrite",r=>(r.delete(e),Ce(r.transaction)))}var nt=e=>zt(e)&&Object.prototype.toString.call(e)==="[object Object]"&&Object.getPrototypeOf(e)===Object.prototype,ns=e=>({asc:1,desc:-1})[e]||1,zt=e=>e&&typeof e=="object",is=e=>{if(typeof e!="object"||e===null)return e;const t=e.data;if(nt(t)&&Object.keys(e).length===1){const s=Object.assign({},t);return Qe(e,s),s}return e},Qe=(e,t)=>{!e||!zt(t)||["$raw","$request","$serialized"].forEach(r=>{e[r]&&Object.defineProperty(t,r,{get(){return e[r]},enumerable:!1})})},Ke=e=>Array.isArray(e)?e.map(t=>Ke(t)):nt(e)?Object.keys(e).reduce((t,r)=>(t[os(r)]=Ke(e[r]),t),{}):e;function os(e){return e.replace(/([-_][a-z])/gi,t=>t.toUpperCase().replace("-","").replace("_",""))}var Et=(e,t)=>(t.startsWith("/")||(t=`/${t}`),`${e}${t}`),as=e=>{const t=new Set;do for(const r of Reflect.ownKeys(e))t.add([e,r]);while((e=Reflect.getPrototypeOf(e))&&e!==Object.prototype);return t};function j(e,{include:t,exclude:r}={}){const s=n=>{const i=o=>typeof o=="string"?n===o:o.test(n);return t?t.some(i):r?!r.some(i):!0};for(const[n,i]of as(e.constructor.prototype)){if(i==="constructor"||!s(i))continue;const o=Reflect.getOwnPropertyDescriptor(n,i);o&&typeof o.value=="function"&&(e[i]=e[i].bind(e))}return e}var cs=class{constructor(e){this.client=e,this.base="ack",this.name="ack",j(this)}get proxy(){return this.client.proxy(this.base)}read(e,t){return this.proxy.post({data:{type:"read",payload:{type:e,id:t}}})}},us=class{constructor(e){this.client=e,this.base="activity",this.name="activity",j(this)}get proxy(){return this.client.proxy(this.base)}likeIt(e,t){return this.proxy.like.post({data:{type:e,id:t}})}},ls=class{constructor(e){this.client=e,this.base="aggregate",this.name="aggregate",j(this)}get proxy(){return this.client.proxy(this.base)}getAggregateData(e){return this.proxy.get({params:{theme:e}})}getTop(e=5){return this.proxy.top.get({params:{size:e}})}getTimeline(e){const{sort:t,type:r,year:s}=e||{};return this.proxy.timeline.get({params:{sort:t&&ns(t),type:r,year:s}})}getStat(){return this.proxy.stat.get()}},it=class extends Error{constructor(e,t,r,s){super(e),this.status=t,this.path=r,this.raw=s}},hs=class{constructor(e){this.client=e,this.name="category",this.base="categories",j(this)}get proxy(){return this.client.proxy(this.base)}getAllCategories(){return this.proxy.get({params:{type:0}})}getAllTags(){return this.proxy.get({params:{type:1}})}async getCategoryDetail(e){if(typeof e=="string"){const t=await this.proxy.get({params:{ids:e}}),r=Object.values(t.entries)[0];return Qe(t,r),r}else if(Array.isArray(e)){const t=await this.proxy.get({params:{ids:e.join(",")}}),r=t?.entries;if(!r)throw new it("data structure error",500,t.$request.path,t);const s=new Map(Object.entries(r).map(([n,i])=>[n.toLowerCase(),i]));return Qe(t,s),s}}async getCategoryByIdOrSlug(e){const t=await this.proxy(e).get();return is(t)}async getTagByName(e){return await this.proxy(e).get({params:{tag:1}})}},fs=class{constructor(e){this.client=e,this.base="comments",this.name="comment",j(this)}get proxy(){return this.client.proxy(this.base)}getById(e){return this.proxy(e).get()}getByRefId(e,t={}){const{page:r,size:s}=t;return this.proxy.ref(e).get({params:{page:r||1,size:s||10}})}comment(e,t){return this.proxy(e).post({data:t})}reply(e,t){return this.proxy.reply(e).post({data:t})}},Ae=class{constructor(e){this.client=e,j(this)}get proxy(){return this.client.proxy(this.base)}getById(e){return this.proxy(e).get()}getAll(){return this.proxy.all.get()}getAllPaginated(e,t,r){return this.proxy.get({params:{page:e,size:t,...r}})}},ds=class extends Ae{constructor(e){super(e),this.client=e,this.name=["link","friend"],this.base="links",j(this)}async canApplyLink(){const{can:e}=await this.proxy.audit.get();return e}async applyLink(e){return await this.proxy.audit.post({data:e})}},ps=class{constructor(e){this.client=e,this.base="notes",this.name="note",j(this)}get proxy(){return this.client.proxy(this.base)}getLatest(){return this.proxy.latest.get()}getNoteById(...e){const[t,r=void 0,s=!1]=e;return typeof t=="number"?this.proxy.nid(t.toString()).get({params:{password:r,single:s?"1":void 0}}):this.proxy(t).get()}getList(e=1,t=10,r={}){const{select:s,sortBy:n,sortOrder:i,year:o}=r;return this.proxy.get({params:{page:e,size:t,select:s?.join(" "),sortBy:n,sortOrder:i,year:o}})}getMiddleList(e,t=5){return this.proxy.list(e).get({params:{size:t}})}getNoteByTopicId(e,t=1,r=10,s={}){return this.proxy.topics(e).get({params:{page:t,size:r,...s}})}},ys=class{constructor(e){this.client=e,this.base="pages",this.name="page",j(this)}get proxy(){return this.client.proxy(this.base)}getList(e=1,t=10,r={}){const{select:s,sortBy:n,sortOrder:i}=r;return this.proxy.get({params:{page:e,size:t,select:s?.join(" "),sortBy:n,sortOrder:i}})}getById(e){return this.proxy(e).get()}getBySlug(e){return this.proxy.slug(e).get({})}},ms=class{constructor(e){this.client=e,this.base="posts",this.name="post",j(this)}get proxy(){return this.client.proxy(this.base)}getList(e=1,t=10,r={}){const{select:s,sortBy:n,sortOrder:i,year:o}=r;return this.proxy.get({params:{page:e,size:t,select:s?.join(" "),sortBy:n,sortOrder:i,year:o}})}getPost(e,t){return arguments.length==1?this.proxy(e).get():this.proxy(e)(t).get()}getLatest(){return this.proxy.latest.get()}},gs=class extends Ae{constructor(e){super(e),this.client=e,this.base="projects",this.name="project",j(this)}},bs=class{constructor(e){this.client=e,this.base="recently",this.name=["recently","shorthand"],j(this)}get proxy(){return this.client.proxy(this.base)}getLatestOne(){return this.proxy.latest.get()}getAll(){return this.proxy.all.get()}getList(e,t,r){return this.proxy.get({params:{before:e,after:t,size:r}})}attitude(e,t){return this.proxy.attitude(e).get({params:{attitude:t}})}},ws=class extends Ae{constructor(e){super(e),this.client=e,this.base="says",this.name="say",j(this)}get proxy(){return this.client.proxy(this.base)}getRandom(){return this.proxy.random.get()}},xs=class{constructor(e){this.client=e,this.base="search",this.name="search",j(this)}get proxy(){return this.client.proxy(this.base)}search(e,t,r={}){return this.proxy(e).get({params:{keyword:t,...r}})}searchByAlgolia(e,t){return this.proxy("algolia").get({params:{keyword:e,...t}})}},vs=class{constructor(e){this.client=e,this.base="serverless",this.name="serverless",j(this)}get proxy(){return this.client.proxy(this.base)}getByReferenceAndName(e,t){return this.proxy(e)(t).get()}},Es=class{constructor(e){this.client=e,this.base="snippets",this.name="snippet",j(this)}get proxy(){return this.client.proxy(this.base)}getByReferenceAndName(e,t){return this.proxy(e)(t).get()}},Ss=class{constructor(e){this.client=e,this.base="subscribe",this.name="subscribe",j(this)}get proxy(){return this.client.proxy(this.base)}check(){return this.proxy.status.get()}subscribe(e,t){return this.proxy.post({data:{email:e,types:t}})}unsubscribe(e,t){return this.proxy.unsubscribe.get({params:{email:e,cancelToken:t}})}},Os=class extends Ae{constructor(e){super(e),this.client=e,this.base="topics",this.name="topic",j(this)}get proxy(){return this.client.proxy(this.base)}getTopicBySlug(e){return this.proxy.slug(e).get()}},Cs=class{constructor(e){this.client=e,this.base="master",this.name=["user","master"],j(this)}get proxy(){return this.client.proxy(this.base)}getMasterInfo(){return this.proxy.get()}login(e,t){return this.proxy.login.post({data:{username:e,password:t}})}loginWithToken(e){return this.proxy.login.put({params:e?{token:`bearer ${e.replace(/^Bearer\s/i,"")}`}:void 0})}checkTokenValid(e){return this.proxy.check_logged.get({params:{token:`bearer ${e.replace(/^Bearer\s/i,"")}`}})}},As=[cs,us,ls,hs,fs,ds,ps,ys,ms,gs,bs,Os,ws,xs,Es,vs,Ss,Cs],Rs=["ack","activity","aggregate","category","comment","link","note","page","post","project","topic","recently","say","search","snippet","serverless","subscribe","user","friend","master","shorthand"];function Ps(e){Object.defineProperty(e,"$$get",{value(t,r){const{params:s={},...n}=r,i=Ts(s);return e.instance.get(`${t}${i?`${`?${i}`}`:""}`,n)}}),["put","post","patch","delete"].forEach(t=>{Object.defineProperty(e,`$$${t}`,{value(r,s){return e.instance[t](r,s)}})})}function Ts(e){if(!e&&typeof e!="object")throw new TypeError("params must be object.");if(e instanceof URLSearchParams)return e.toString();const t=new URLSearchParams;return Object.entries(e).forEach(([r,s])=>{typeof s>"u"||Object.prototype.toString.call(s)==="[object Null]"||t.set(r,s)}),t.toString()}var St="_$",_s=class{constructor(e,t,r={}){this._endpoint=e,this._adaptor=t,this.options=r,this._endpoint=e.replace(/\/*$/,"").replace("localhost","127.0.0.1"),this._proxy=this.buildRoute(this)(),r.transformResponse=r.transformResponse||(s=>Ke(s)),this.initGetClient(),Ps(this)}initGetClient(){for(const e of Rs)Object.defineProperty(this,e,{get(){const t=Reflect.get(this,`${St}${e}`);if(!t)throw new ReferenceError(`${e.charAt(0).toUpperCase()+e.slice(1)} Client not inject yet, please inject with client.injectClients(...)`);return t},configurable:!1,enumerable:!1})}injectControllers(e,...t){e=Array.isArray(e)?e:[e,...t];for(const s of e){const n=new s(this);if(Array.isArray(n.name))for(const i of n.name)r.call(this,i,n);else r.call(this,n.name,n)}function r(s,n){Object.defineProperty(this,`${St}${s.toLowerCase()}`,{get(){return n},enumerable:!1,configurable:!1})}}get endpoint(){return this._endpoint}get instance(){return this._adaptor}request(e){return this[`$$${String(e.method||"get").toLowerCase()}`](e.url,e)}get proxy(){return this._proxy}buildRoute(e){const t=()=>{},r=["get","post","delete","patch","put"],s=["toString","valueOf","inspect","constructor",Symbol.toPrimitive],n=this;return()=>{const i=[""],o={get(a,c){return s.includes(c)?f=>{if(f){const h=Et(n.endpoint,i.join("/"));return i.length=0,h}else{const h=i.join("/");return i.length=0,h.startsWith("/")?h:`/${h}`}}:r.includes(c)?async f=>{const h=Et(n.endpoint,i.join("/"));i.length=0;let l;try{l=await e.request({method:c,...f,url:h})}catch(p){let x=p.message,C=p.code||p.status||p.statusCode||p.response?.status||p.response?.statusCode||p.response?.code||500;if(n.options.getCodeMessageFromException){const T=n.options.getCodeMessageFromException(p);x=T.message||x,C=T.code||C}throw n.options.customThrowResponseError?n.options.customThrowResponseError(p):new it(x,C,h,p)}const b=l.data;if(!b)return null;const v=(Array.isArray(b)||nt(b))&&n.options.transformResponse?n.options.transformResponse(b):b;let d=v;return v&&typeof v=="object"&&(d={...v},Object.defineProperty(d,"$raw",{get(){return l},enumerable:!1,configurable:!1}),Object.defineProperty(d,"$request",{get(){return{url:h,method:c,options:f}},enumerable:!1}),Object.defineProperty(d,"$serialized",{get(){return v}})),d}:(i.push(c),new Proxy(t,o))},apply(a,c,f){return i.push(...f.filter(h=>h!==null)),new Proxy(t,o)}};return new Proxy(t,o)}}};function Ds(e){return(t,r)=>{const s=new _s(t,e,r),{controllers:n}=r||{};return n&&s.injectControllers(n),s}}var Fs=()=>{};function js(e,{interval:t=1e3,onError:r=Fs}={}){if(typeof e!="function")throw new Error("argument is not function.");let s=!1,n=0,i,o=null;const a=async()=>{if(o){const f=o;o=null;try{s=!0,await e(...f)}catch(h){r(h)}finally{n=Date.now(),s=!1}}},c=async()=>{clearTimeout(i),i=setTimeout(()=>{s?c():a()},t)};return(...f)=>{o=f;const h=Date.now()-n<t;s||h?c():a()}}var ks=({storage:e,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:r=1e3,serialize:s=JSON.stringify,deserialize:n=JSON.parse,retry:i})=>{if(e){const o=async a=>{try{const c=await s(a);await e.setItem(t,c);return}catch(c){return c}};return{persistClient:js(async a=>{let c=a,f=await o(c),h=0;for(;f&&c;)h++,c=await i?.({persistedClient:c,error:f,errorCount:h}),c&&(f=await o(c))},{interval:r}),restoreClient:async()=>{const a=await e.getItem(t);if(a)return await n(a)},removeClient:()=>e.removeItem(t)}}return{persistClient:Ot,restoreClient:()=>Promise.resolve(void 0),removeClient:Ot}};function Ot(){}const $e=Sr?void 0:Kt("react-query","queries"),$s=ks({storage:{getItem:async e=>await ts(e,$e),setItem:async(e,t)=>{await rs(e,t,$e)},removeItem:async e=>{await ss(e,$e)}}}),Ns=new qr({defaultOptions:{queries:{staleTime:1e3*60*5,refetchOnWindowFocus:!1,refetchIntervalInBackground:!1}}}),Ms={persister:$s,maxAge:1e3*60*60*24*7,dehydrateOptions:{shouldDehydrateQuery:e=>{const t=e.state.status==="success";return e.meta?.persist===!1?!1:t?!(e.state?.data?.pages?.length>1)||!!e.state.data&&!e.state.data.pages:!1}}},$i=({children:e})=>wr.jsx(es,{client:Ns,persistOptions:Ms,children:e}),[,,Ni,,,Mi]=Er(W(0)),Us=W({sm:!1,md:!1,lg:!1,xl:!1,"2xl":!1,h:0,w:0}),Ls=e=>le(Ze(Us,N.useCallback(t=>e(t),[]))),Ui=()=>Ls(N.useCallback(e=>(e.sm||e.md||!e.sm)&&!e.lg,[]));var Gt={exports:{}};(function(e,t){(function(r,s){e.exports=s()})(xr,function(){var r=1e3,s=6e4,n=36e5,i="millisecond",o="second",a="minute",c="hour",f="day",h="week",l="month",b="quarter",v="year",d="date",p="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var g=["th","st","nd","rd"],y=E%100;return"["+E+(g[(y-20)%10]||g[y]||g[0])+"]"}},F=function(E,g,y){var w=String(E);return!w||w.length>=g?E:""+Array(g+1-w.length).join(y)+E},z={s:F,z:function(E){var g=-E.utcOffset(),y=Math.abs(g),w=Math.floor(y/60),m=y%60;return(g<=0?"+":"-")+F(w,2,"0")+":"+F(m,2,"0")},m:function E(g,y){if(g.date()<y.date())return-E(y,g);var w=12*(y.year()-g.year())+(y.month()-g.month()),m=g.clone().add(w,l),S=y-m<0,O=g.clone().add(w+(S?-1:1),l);return+(-(w+(y-m)/(S?m-O:O-m))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:l,y:v,w:h,d:f,D:d,h:c,m:a,s:o,ms:i,Q:b}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},V="en",Y={};Y[V]=T;var pt="$isDayjsObject",Fe=function(E){return E instanceof pe||!(!E||!E[pt])},de=function E(g,y,w){var m;if(!g)return V;if(typeof g=="string"){var S=g.toLowerCase();Y[S]&&(m=S),y&&(Y[S]=y,m=S);var O=g.split("-");if(!m&&O.length>1)return E(O[0])}else{var P=g.name;Y[P]=g,m=P}return!w&&m&&(V=m),m||!w&&V},k=function(E,g){if(Fe(E))return E.clone();var y=typeof g=="object"?g:{};return y.date=E,y.args=arguments,new pe(y)},R=z;R.l=de,R.i=Fe,R.w=function(E,g){return k(E,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var pe=function(){function E(y){this.$L=de(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[pt]=!0}var g=E.prototype;return g.parse=function(y){this.$d=function(w){var m=w.date,S=w.utc;if(m===null)return new Date(NaN);if(R.u(m))return new Date;if(m instanceof Date)return new Date(m);if(typeof m=="string"&&!/Z$/i.test(m)){var O=m.match(x);if(O){var P=O[2]-1||0,_=(O[7]||"0").substring(0,3);return S?new Date(Date.UTC(O[1],P,O[3]||1,O[4]||0,O[5]||0,O[6]||0,_)):new Date(O[1],P,O[3]||1,O[4]||0,O[5]||0,O[6]||0,_)}}return new Date(m)}(y),this.init()},g.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},g.$utils=function(){return R},g.isValid=function(){return this.$d.toString()!==p},g.isSame=function(y,w){var m=k(y);return this.startOf(w)<=m&&m<=this.endOf(w)},g.isAfter=function(y,w){return k(y)<this.startOf(w)},g.isBefore=function(y,w){return this.endOf(w)<k(y)},g.$g=function(y,w,m){return R.u(y)?this[w]:this.set(m,y)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(y,w){var m=this,S=!!R.u(w)||w,O=R.p(y),P=function(Z,L){var G=R.w(m.$u?Date.UTC(m.$y,L,Z):new Date(m.$y,L,Z),m);return S?G:G.endOf(f)},_=function(Z,L){return R.w(m.toDate()[Z].apply(m.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(L)),m)},$=this.$W,M=this.$M,I=this.$D,ee="set"+(this.$u?"UTC":"");switch(O){case v:return S?P(1,0):P(31,11);case l:return S?P(1,M):P(0,M+1);case h:var X=this.$locale().weekStart||0,ne=($<X?$+7:$)-X;return P(S?I-ne:I+(6-ne),M);case f:case d:return _(ee+"Hours",0);case c:return _(ee+"Minutes",1);case a:return _(ee+"Seconds",2);case o:return _(ee+"Milliseconds",3);default:return this.clone()}},g.endOf=function(y){return this.startOf(y,!1)},g.$set=function(y,w){var m,S=R.p(y),O="set"+(this.$u?"UTC":""),P=(m={},m[f]=O+"Date",m[d]=O+"Date",m[l]=O+"Month",m[v]=O+"FullYear",m[c]=O+"Hours",m[a]=O+"Minutes",m[o]=O+"Seconds",m[i]=O+"Milliseconds",m)[S],_=S===f?this.$D+(w-this.$W):w;if(S===l||S===v){var $=this.clone().set(d,1);$.$d[P](_),$.init(),this.$d=$.set(d,Math.min(this.$D,$.daysInMonth())).$d}else P&&this.$d[P](_);return this.init(),this},g.set=function(y,w){return this.clone().$set(y,w)},g.get=function(y){return this[R.p(y)]()},g.add=function(y,w){var m,S=this;y=Number(y);var O=R.p(w),P=function(M){var I=k(S);return R.w(I.date(I.date()+Math.round(M*y)),S)};if(O===l)return this.set(l,this.$M+y);if(O===v)return this.set(v,this.$y+y);if(O===f)return P(1);if(O===h)return P(7);var _=(m={},m[a]=s,m[c]=n,m[o]=r,m)[O]||1,$=this.$d.getTime()+y*_;return R.w($,this)},g.subtract=function(y,w){return this.add(-1*y,w)},g.format=function(y){var w=this,m=this.$locale();if(!this.isValid())return m.invalidDate||p;var S=y||"YYYY-MM-DDTHH:mm:ssZ",O=R.z(this),P=this.$H,_=this.$m,$=this.$M,M=m.weekdays,I=m.months,ee=m.meridiem,X=function(L,G,ie,ye){return L&&(L[G]||L(w,S))||ie[G].slice(0,ye)},ne=function(L){return R.s(P%12||12,L,"0")},Z=ee||function(L,G,ie){var ye=L<12?"AM":"PM";return ie?ye.toLowerCase():ye};return S.replace(C,function(L,G){return G||function(ie){switch(ie){case"YY":return String(w.$y).slice(-2);case"YYYY":return R.s(w.$y,4,"0");case"M":return $+1;case"MM":return R.s($+1,2,"0");case"MMM":return X(m.monthsShort,$,I,3);case"MMMM":return X(I,$);case"D":return w.$D;case"DD":return R.s(w.$D,2,"0");case"d":return String(w.$W);case"dd":return X(m.weekdaysMin,w.$W,M,2);case"ddd":return X(m.weekdaysShort,w.$W,M,3);case"dddd":return M[w.$W];case"H":return String(P);case"HH":return R.s(P,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return Z(P,_,!0);case"A":return Z(P,_,!1);case"m":return String(_);case"mm":return R.s(_,2,"0");case"s":return String(w.$s);case"ss":return R.s(w.$s,2,"0");case"SSS":return R.s(w.$ms,3,"0");case"Z":return O}return null}(L)||O.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(y,w,m){var S,O=this,P=R.p(w),_=k(y),$=(_.utcOffset()-this.utcOffset())*s,M=this-_,I=function(){return R.m(O,_)};switch(P){case v:S=I()/12;break;case l:S=I();break;case b:S=I()/3;break;case h:S=(M-$)/6048e5;break;case f:S=(M-$)/864e5;break;case c:S=M/n;break;case a:S=M/s;break;case o:S=M/r;break;default:S=M}return m?S:R.a(S)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return Y[this.$L]},g.locale=function(y,w){if(!y)return this.$L;var m=this.clone(),S=de(y,w,!0);return S&&(m.$L=S),m},g.clone=function(){return R.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},E}(),yt=pe.prototype;return k.prototype=yt,[["$ms",i],["$s",o],["$m",a],["$H",c],["$W",f],["$M",l],["$y",v],["$D",d]].forEach(function(E){yt[E[1]]=function(g){return this.$g(g,E[0],E[1])}}),k.extend=function(E,g){return E.$i||(E(g,pe,k),E.$i=!0),k},k.locale=de,k.isDayjs=Fe,k.unix=function(E){return k(1e3*E)},k.en=Y[V],k.Ls=Y,k.p={},k})})(Gt);var Is=Gt.exports;const Li=vr(Is);/*! js-cookie v3.0.5 | MIT */function me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)e[s]=r[s]}return e}var Bs={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ze(e,t){function r(n,i,o){if(!(typeof document>"u")){o=me({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in o)o[c]&&(a+="; "+c,o[c]!==!0&&(a+="="+o[c].split(";")[0]));return document.cookie=n+"="+e.write(i,n)+a}}function s(n){if(!(typeof document>"u"||arguments.length&&!n)){for(var i=document.cookie?document.cookie.split("; "):[],o={},a=0;a<i.length;a++){var c=i[a].split("="),f=c.slice(1).join("=");try{var h=decodeURIComponent(c[0]);if(o[h]=e.read(f,h),n===h)break}catch{}}return n?o[n]:o}}return Object.create({set:r,get:s,remove:function(n,i){r(n,"",me({},i,{expires:-1}))},withAttributes:function(n){return ze(this.converter,me({},this.attributes,n))},withConverter:function(n){return ze(me({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ct=ze(Bs,{path:"/"});const qs="mx-token";function Jt(){const e=Ct.get("__session");return Ct.get(qs)||e||null}function Wt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Hs}=Object.prototype,{getPrototypeOf:ot}=Object,Re=(e=>t=>{const r=Hs.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Q=e=>(e=e.toLowerCase(),t=>Re(t)===e),Pe=e=>t=>typeof t===e,{isArray:se}=Array,ue=Pe("undefined");function Qs(e){return e!==null&&!ue(e)&&e.constructor!==null&&!ue(e.constructor)&&B(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vt=Q("ArrayBuffer");function Ks(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Vt(e.buffer),t}const zs=Pe("string"),B=Pe("function"),Yt=Pe("number"),Te=e=>e!==null&&typeof e=="object",Gs=e=>e===!0||e===!1,ge=e=>{if(Re(e)!=="object")return!1;const t=ot(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Js=Q("Date"),Ws=Q("File"),Vs=Q("Blob"),Ys=Q("FileList"),Xs=e=>Te(e)&&B(e.pipe),Zs=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||B(e.append)&&((t=Re(e))==="formdata"||t==="object"&&B(e.toString)&&e.toString()==="[object FormData]"))},en=Q("URLSearchParams"),tn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function he(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let s,n;if(typeof e!="object"&&(e=[e]),se(e))for(s=0,n=e.length;s<n;s++)t.call(null,e[s],s,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(s=0;s<o;s++)a=i[s],t.call(null,e[a],a,e)}}function Xt(e,t){t=t.toLowerCase();const r=Object.keys(e);let s=r.length,n;for(;s-- >0;)if(n=r[s],t===n.toLowerCase())return n;return null}const Zt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,er=e=>!ue(e)&&e!==Zt;function Ge(){const{caseless:e}=er(this)&&this||{},t={},r=(s,n)=>{const i=e&&Xt(t,n)||n;ge(t[i])&&ge(s)?t[i]=Ge(t[i],s):ge(s)?t[i]=Ge({},s):se(s)?t[i]=s.slice():t[i]=s};for(let s=0,n=arguments.length;s<n;s++)arguments[s]&&he(arguments[s],r);return t}const rn=(e,t,r,{allOwnKeys:s}={})=>(he(t,(n,i)=>{r&&B(n)?e[i]=Wt(n,r):e[i]=n},{allOwnKeys:s}),e),sn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),nn=(e,t,r,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},on=(e,t,r,s)=>{let n,i,o;const a={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)o=n[i],(!s||s(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=r!==!1&&ot(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},an=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const s=e.indexOf(t,r);return s!==-1&&s===r},cn=e=>{if(!e)return null;if(se(e))return e;let t=e.length;if(!Yt(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},un=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ot(Uint8Array)),ln=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=s.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},hn=(e,t)=>{let r;const s=[];for(;(r=e.exec(t))!==null;)s.push(r);return s},fn=Q("HTMLFormElement"),dn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,s,n){return s.toUpperCase()+n}),At=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),pn=Q("RegExp"),tr=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),s={};he(r,(n,i)=>{let o;(o=t(n,i,e))!==!1&&(s[i]=o||n)}),Object.defineProperties(e,s)},yn=e=>{tr(e,(t,r)=>{if(B(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const s=e[r];if(B(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},mn=(e,t)=>{const r={},s=n=>{n.forEach(i=>{r[i]=!0})};return se(e)?s(e):s(String(e).split(t)),r},gn=()=>{},bn=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ne="abcdefghijklmnopqrstuvwxyz",Rt="0123456789",rr={DIGIT:Rt,ALPHA:Ne,ALPHA_DIGIT:Ne+Ne.toUpperCase()+Rt},wn=(e=16,t=rr.ALPHA_DIGIT)=>{let r="";const{length:s}=t;for(;e--;)r+=t[Math.random()*s|0];return r};function xn(e){return!!(e&&B(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vn=e=>{const t=new Array(10),r=(s,n)=>{if(Te(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[n]=s;const i=se(s)?[]:{};return he(s,(o,a)=>{const c=r(o,n+1);!ue(c)&&(i[a]=c)}),t[n]=void 0,i}}return s};return r(e,0)},En=Q("AsyncFunction"),Sn=e=>e&&(Te(e)||B(e))&&B(e.then)&&B(e.catch),u={isArray:se,isArrayBuffer:Vt,isBuffer:Qs,isFormData:Zs,isArrayBufferView:Ks,isString:zs,isNumber:Yt,isBoolean:Gs,isObject:Te,isPlainObject:ge,isUndefined:ue,isDate:Js,isFile:Ws,isBlob:Vs,isRegExp:pn,isFunction:B,isStream:Xs,isURLSearchParams:en,isTypedArray:un,isFileList:Ys,forEach:he,merge:Ge,extend:rn,trim:tn,stripBOM:sn,inherits:nn,toFlatObject:on,kindOf:Re,kindOfTest:Q,endsWith:an,toArray:cn,forEachEntry:ln,matchAll:hn,isHTMLForm:fn,hasOwnProperty:At,hasOwnProp:At,reduceDescriptors:tr,freezeMethods:yn,toObjectSet:mn,toCamelCase:dn,noop:gn,toFiniteNumber:bn,findKey:Xt,global:Zt,isContextDefined:er,ALPHABET:rr,generateString:wn,isSpecCompliantForm:xn,toJSONObject:vn,isAsyncFn:En,isThenable:Sn};function A(e,t,r,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),s&&(this.request=s),n&&(this.response=n)}u.inherits(A,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:u.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const sr=A.prototype,nr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{nr[e]={value:e}});Object.defineProperties(A,nr);Object.defineProperty(sr,"isAxiosError",{value:!0});A.from=(e,t,r,s,n,i)=>{const o=Object.create(sr);return u.toFlatObject(e,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),A.call(o,e.message,t,r,s,n),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const On=null;function Je(e){return u.isPlainObject(e)||u.isArray(e)}function ir(e){return u.endsWith(e,"[]")?e.slice(0,-2):e}function Pt(e,t,r){return e?e.concat(t).map(function(n,i){return n=ir(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function Cn(e){return u.isArray(e)&&!e.some(Je)}const An=u.toFlatObject(u,{},null,function(t){return/^is[A-Z]/.test(t)});function _e(e,t,r){if(!u.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=u.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,x){return!u.isUndefined(x[p])});const s=r.metaTokens,n=r.visitor||h,i=r.dots,o=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(t);if(!u.isFunction(n))throw new TypeError("visitor must be a function");function f(d){if(d===null)return"";if(u.isDate(d))return d.toISOString();if(!c&&u.isBlob(d))throw new A("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(d)||u.isTypedArray(d)?c&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function h(d,p,x){let C=d;if(d&&!x&&typeof d=="object"){if(u.endsWith(p,"{}"))p=s?p:p.slice(0,-2),d=JSON.stringify(d);else if(u.isArray(d)&&Cn(d)||(u.isFileList(d)||u.endsWith(p,"[]"))&&(C=u.toArray(d)))return p=ir(p),C.forEach(function(F,z){!(u.isUndefined(F)||F===null)&&t.append(o===!0?Pt([p],z,i):o===null?p:p+"[]",f(F))}),!1}return Je(d)?!0:(t.append(Pt(x,p,i),f(d)),!1)}const l=[],b=Object.assign(An,{defaultVisitor:h,convertValue:f,isVisitable:Je});function v(d,p){if(!u.isUndefined(d)){if(l.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(d),u.forEach(d,function(C,T){(!(u.isUndefined(C)||C===null)&&n.call(t,C,u.isString(T)?T.trim():T,p,b))===!0&&v(C,p?p.concat(T):[T])}),l.pop()}}if(!u.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Tt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function at(e,t){this._pairs=[],e&&_e(e,this,t)}const or=at.prototype;or.append=function(t,r){this._pairs.push([t,r])};or.toString=function(t){const r=t?function(s){return t.call(this,s,Tt)}:Tt;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};function Rn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ar(e,t,r){if(!t)return e;const s=r&&r.encode||Rn,n=r&&r.serialize;let i;if(n?i=n(t,r):i=u.isURLSearchParams(t)?t.toString():new at(t,r).toString(s),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class _t{constructor(){this.handlers=[]}use(t,r,s){return this.handlers.push({fulfilled:t,rejected:r,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){u.forEach(this.handlers,function(s){s!==null&&t(s)})}}const cr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pn=typeof URLSearchParams<"u"?URLSearchParams:at,Tn=typeof FormData<"u"?FormData:null,_n=typeof Blob<"u"?Blob:null,Dn={isBrowser:!0,classes:{URLSearchParams:Pn,FormData:Tn,Blob:_n},protocols:["http","https","file","blob","url","data"]},ur=typeof window<"u"&&typeof document<"u",Fn=(e=>ur&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),jn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",kn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ur,hasStandardBrowserEnv:Fn,hasStandardBrowserWebWorkerEnv:jn},Symbol.toStringTag,{value:"Module"})),H={...kn,...Dn};function $n(e,t){return _e(e,new H.classes.URLSearchParams,Object.assign({visitor:function(r,s,n,i){return H.isNode&&u.isBuffer(r)?(this.append(s,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Nn(e){return u.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Mn(e){const t={},r=Object.keys(e);let s;const n=r.length;let i;for(s=0;s<n;s++)i=r[s],t[i]=e[i];return t}function lr(e){function t(r,s,n,i){let o=r[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=i>=r.length;return o=!o&&u.isArray(n)?n.length:o,c?(u.hasOwnProp(n,o)?n[o]=[n[o],s]:n[o]=s,!a):((!n[o]||!u.isObject(n[o]))&&(n[o]=[]),t(r,s,n[o],i)&&u.isArray(n[o])&&(n[o]=Mn(n[o])),!a)}if(u.isFormData(e)&&u.isFunction(e.entries)){const r={};return u.forEachEntry(e,(s,n)=>{t(Nn(s),n,r,0)}),r}return null}function Un(e,t,r){if(u.isString(e))try{return(t||JSON.parse)(e),u.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(r||JSON.stringify)(e)}const ct={transitional:cr,adapter:["xhr","http"],transformRequest:[function(t,r){const s=r.getContentType()||"",n=s.indexOf("application/json")>-1,i=u.isObject(t);if(i&&u.isHTMLForm(t)&&(t=new FormData(t)),u.isFormData(t))return n?JSON.stringify(lr(t)):t;if(u.isArrayBuffer(t)||u.isBuffer(t)||u.isStream(t)||u.isFile(t)||u.isBlob(t))return t;if(u.isArrayBufferView(t))return t.buffer;if(u.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return $n(t,this.formSerializer).toString();if((a=u.isFileList(t))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return _e(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||n?(r.setContentType("application/json",!1),Un(t)):t}],transformResponse:[function(t){const r=this.transitional||ct.transitional,s=r&&r.forcedJSONParsing,n=this.responseType==="json";if(t&&u.isString(t)&&(s&&!this.responseType||n)){const o=!(r&&r.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?A.from(a,A.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:H.classes.FormData,Blob:H.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch"],e=>{ct.headers[e]={}});const ut=ct,Ln=u.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),In=e=>{const t={};let r,s,n;return e&&e.split(` +`).forEach(function(o){n=o.indexOf(":"),r=o.substring(0,n).trim().toLowerCase(),s=o.substring(n+1).trim(),!(!r||t[r]&&Ln[r])&&(r==="set-cookie"?t[r]?t[r].push(s):t[r]=[s]:t[r]=t[r]?t[r]+", "+s:s)}),t},Dt=Symbol("internals");function oe(e){return e&&String(e).trim().toLowerCase()}function be(e){return e===!1||e==null?e:u.isArray(e)?e.map(be):String(e)}function Bn(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=r.exec(e);)t[s[1]]=s[2];return t}const qn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Me(e,t,r,s,n){if(u.isFunction(s))return s.call(this,t,r);if(n&&(t=r),!!u.isString(t)){if(u.isString(s))return t.indexOf(s)!==-1;if(u.isRegExp(s))return s.test(t)}}function Hn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,s)=>r.toUpperCase()+s)}function Qn(e,t){const r=u.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+r,{value:function(n,i,o){return this[s].call(this,t,n,i,o)},configurable:!0})})}class De{constructor(t){t&&this.set(t)}set(t,r,s){const n=this;function i(a,c,f){const h=oe(c);if(!h)throw new Error("header name must be a non-empty string");const l=u.findKey(n,h);(!l||n[l]===void 0||f===!0||f===void 0&&n[l]!==!1)&&(n[l||c]=be(a))}const o=(a,c)=>u.forEach(a,(f,h)=>i(f,h,c));return u.isPlainObject(t)||t instanceof this.constructor?o(t,r):u.isString(t)&&(t=t.trim())&&!qn(t)?o(In(t),r):t!=null&&i(r,t,s),this}get(t,r){if(t=oe(t),t){const s=u.findKey(this,t);if(s){const n=this[s];if(!r)return n;if(r===!0)return Bn(n);if(u.isFunction(r))return r.call(this,n,s);if(u.isRegExp(r))return r.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=oe(t),t){const s=u.findKey(this,t);return!!(s&&this[s]!==void 0&&(!r||Me(this,this[s],s,r)))}return!1}delete(t,r){const s=this;let n=!1;function i(o){if(o=oe(o),o){const a=u.findKey(s,o);a&&(!r||Me(s,s[a],a,r))&&(delete s[a],n=!0)}}return u.isArray(t)?t.forEach(i):i(t),n}clear(t){const r=Object.keys(this);let s=r.length,n=!1;for(;s--;){const i=r[s];(!t||Me(this,this[i],i,t,!0))&&(delete this[i],n=!0)}return n}normalize(t){const r=this,s={};return u.forEach(this,(n,i)=>{const o=u.findKey(s,i);if(o){r[o]=be(n),delete r[i];return}const a=t?Hn(i):String(i).trim();a!==i&&delete r[i],r[a]=be(n),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return u.forEach(this,(s,n)=>{s!=null&&s!==!1&&(r[n]=t&&u.isArray(s)?s.join(", "):s)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const s=new this(t);return r.forEach(n=>s.set(n)),s}static accessor(t){const s=(this[Dt]=this[Dt]={accessors:{}}).accessors,n=this.prototype;function i(o){const a=oe(o);s[a]||(Qn(n,o),s[a]=!0)}return u.isArray(t)?t.forEach(i):i(t),this}}De.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);u.reduceDescriptors(De.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[r]=s}}});u.freezeMethods(De);const K=De;function Ue(e,t){const r=this||ut,s=t||r,n=K.from(s.headers);let i=s.data;return u.forEach(e,function(a){i=a.call(r,i,n.normalize(),t?t.status:void 0)}),n.normalize(),i}function hr(e){return!!(e&&e.__CANCEL__)}function fe(e,t,r){A.call(this,e??"canceled",A.ERR_CANCELED,t,r),this.name="CanceledError"}u.inherits(fe,A,{__CANCEL__:!0});function Kn(e,t,r){const s=r.config.validateStatus;!r.status||!s||s(r.status)?e(r):t(new A("Request failed with status code "+r.status,[A.ERR_BAD_REQUEST,A.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const zn=H.hasStandardBrowserEnv?{write(e,t,r,s,n,i){const o=[e+"="+encodeURIComponent(t)];u.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),u.isString(s)&&o.push("path="+s),u.isString(n)&&o.push("domain="+n),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Gn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Jn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function fr(e,t){return e&&!Gn(t)?Jn(e,t):t}const Wn=H.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let s;function n(i){let o=i;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return s=n(window.location.href),function(o){const a=u.isString(o)?n(o):o;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function Vn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Yn(e,t){e=e||10;const r=new Array(e),s=new Array(e);let n=0,i=0,o;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),h=s[i];o||(o=f),r[n]=c,s[n]=f;let l=i,b=0;for(;l!==n;)b+=r[l++],l=l%e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),f-o<t)return;const v=h&&f-h;return v?Math.round(b*1e3/v):void 0}}function Ft(e,t){let r=0;const s=Yn(50,250);return n=>{const i=n.loaded,o=n.lengthComputable?n.total:void 0,a=i-r,c=s(a),f=i<=o;r=i;const h={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&f?(o-i)/c:void 0,event:n};h[t?"download":"upload"]=!0,e(h)}}const Xn=typeof XMLHttpRequest<"u",Zn=Xn&&function(e){return new Promise(function(r,s){let n=e.data;const i=K.from(e.headers).normalize();let{responseType:o,withXSRFToken:a}=e,c;function f(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let h;if(u.isFormData(n)){if(H.hasStandardBrowserEnv||H.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((h=i.getContentType())!==!1){const[p,...x]=h?h.split(";").map(C=>C.trim()).filter(Boolean):[];i.setContentType([p||"multipart/form-data",...x].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+x))}const b=fr(e.baseURL,e.url);l.open(e.method.toUpperCase(),ar(b,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function v(){if(!l)return;const p=K.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),C={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:p,config:e,request:l};Kn(function(F){r(F),f()},function(F){s(F),f()},C),l=null}if("onloadend"in l?l.onloadend=v:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(v)},l.onabort=function(){l&&(s(new A("Request aborted",A.ECONNABORTED,e,l)),l=null)},l.onerror=function(){s(new A("Network Error",A.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let x=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const C=e.transitional||cr;e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),s(new A(x,C.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,e,l)),l=null},H.hasStandardBrowserEnv&&(a&&u.isFunction(a)&&(a=a(e)),a||a!==!1&&Wn(b))){const p=e.xsrfHeaderName&&e.xsrfCookieName&&zn.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}n===void 0&&i.setContentType(null),"setRequestHeader"in l&&u.forEach(i.toJSON(),function(x,C){l.setRequestHeader(C,x)}),u.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&o!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",Ft(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Ft(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=p=>{l&&(s(!p||p.type?new fe(null,e,l):p),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const d=Vn(b);if(d&&H.protocols.indexOf(d)===-1){s(new A("Unsupported protocol "+d+":",A.ERR_BAD_REQUEST,e));return}l.send(n||null)})},We={http:On,xhr:Zn};u.forEach(We,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const jt=e=>`- ${e}`,ei=e=>u.isFunction(e)||e===null||e===!1,dr={getAdapter:e=>{e=u.isArray(e)?e:[e];const{length:t}=e;let r,s;const n={};for(let i=0;i<t;i++){r=e[i];let o;if(s=r,!ei(r)&&(s=We[(o=String(r)).toLowerCase()],s===void 0))throw new A(`Unknown adapter '${o}'`);if(s)break;n[o||"#"+i]=s}if(!s){const i=Object.entries(n).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : +`+i.map(jt).join(` +`):" "+jt(i[0]):"as no adapter specified";throw new A("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s},adapters:We};function Le(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fe(null,e)}function kt(e){return Le(e),e.headers=K.from(e.headers),e.data=Ue.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),dr.getAdapter(e.adapter||ut.adapter)(e).then(function(s){return Le(e),s.data=Ue.call(e,e.transformResponse,s),s.headers=K.from(s.headers),s},function(s){return hr(s)||(Le(e),s&&s.response&&(s.response.data=Ue.call(e,e.transformResponse,s.response),s.response.headers=K.from(s.response.headers))),Promise.reject(s)})}const $t=e=>e instanceof K?e.toJSON():e;function re(e,t){t=t||{};const r={};function s(f,h,l){return u.isPlainObject(f)&&u.isPlainObject(h)?u.merge.call({caseless:l},f,h):u.isPlainObject(h)?u.merge({},h):u.isArray(h)?h.slice():h}function n(f,h,l){if(u.isUndefined(h)){if(!u.isUndefined(f))return s(void 0,f,l)}else return s(f,h,l)}function i(f,h){if(!u.isUndefined(h))return s(void 0,h)}function o(f,h){if(u.isUndefined(h)){if(!u.isUndefined(f))return s(void 0,f)}else return s(void 0,h)}function a(f,h,l){if(l in t)return s(f,h);if(l in e)return s(void 0,f)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(f,h)=>n($t(f),$t(h),!0)};return u.forEach(Object.keys(Object.assign({},e,t)),function(h){const l=c[h]||n,b=l(e[h],t[h],h);u.isUndefined(b)&&l!==a||(r[h]=b)}),r}const pr="1.6.7",lt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lt[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Nt={};lt.transitional=function(t,r,s){function n(i,o){return"[Axios v"+pr+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(t===!1)throw new A(n(o," has been removed"+(r?" in "+r:"")),A.ERR_DEPRECATED);return r&&!Nt[o]&&(Nt[o]=!0,console.warn(n(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,a):!0}};function ti(e,t,r){if(typeof e!="object")throw new A("options must be an object",A.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let n=s.length;for(;n-- >0;){const i=s[n],o=t[i];if(o){const a=e[i],c=a===void 0||o(a,i,e);if(c!==!0)throw new A("option "+i+" must be "+c,A.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new A("Unknown option "+i,A.ERR_BAD_OPTION)}}const Ve={assertOptions:ti,validators:lt},J=Ve.validators;class Ee{constructor(t){this.defaults=t,this.interceptors={request:new _t,response:new _t}}async request(t,r){try{return await this._request(t,r)}catch(s){if(s instanceof Error){let n;Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error;const i=n.stack?n.stack.replace(/^.+\n/,""):"";s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=` +`+i):s.stack=i}throw s}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=re(this.defaults,r);const{transitional:s,paramsSerializer:n,headers:i}=r;s!==void 0&&Ve.assertOptions(s,{silentJSONParsing:J.transitional(J.boolean),forcedJSONParsing:J.transitional(J.boolean),clarifyTimeoutError:J.transitional(J.boolean)},!1),n!=null&&(u.isFunction(n)?r.paramsSerializer={serialize:n}:Ve.assertOptions(n,{encode:J.function,serialize:J.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&u.merge(i.common,i[r.method]);i&&u.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),r.headers=K.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const f=[];this.interceptors.response.forEach(function(p){f.push(p.fulfilled,p.rejected)});let h,l=0,b;if(!c){const d=[kt.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,f),b=d.length,h=Promise.resolve(r);l<b;)h=h.then(d[l++],d[l++]);return h}b=a.length;let v=r;for(l=0;l<b;){const d=a[l++],p=a[l++];try{v=d(v)}catch(x){p.call(this,x);break}}try{h=kt.call(this,v)}catch(d){return Promise.reject(d)}for(l=0,b=f.length;l<b;)h=h.then(f[l++],f[l++]);return h}getUri(t){t=re(this.defaults,t);const r=fr(t.baseURL,t.url);return ar(r,t.params,t.paramsSerializer)}}u.forEach(["delete","get","head","options"],function(t){Ee.prototype[t]=function(r,s){return this.request(re(s||{},{method:t,url:r,data:(s||{}).data}))}});u.forEach(["post","put","patch"],function(t){function r(s){return function(i,o,a){return this.request(re(a||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Ee.prototype[t]=r(),Ee.prototype[t+"Form"]=r(!0)});const we=Ee;class ht{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const s=this;this.promise.then(n=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](n);s._listeners=null}),this.promise.then=n=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(n);return o.cancel=function(){s.unsubscribe(i)},o},t(function(i,o,a){s.reason||(s.reason=new fe(i,o,a),r(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new ht(function(n){t=n}),cancel:t}}}const ri=ht;function si(e){return function(r){return e.apply(null,r)}}function ni(e){return u.isObject(e)&&e.isAxiosError===!0}const Ye={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ye).forEach(([e,t])=>{Ye[t]=e});const ii=Ye;function yr(e){const t=new we(e),r=Wt(we.prototype.request,t);return u.extend(r,we.prototype,t,{allOwnKeys:!0}),u.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return yr(re(e,n))},r}const D=yr(ut);D.Axios=we;D.CanceledError=fe;D.CancelToken=ri;D.isCancel=hr;D.VERSION=pr;D.toFormData=_e;D.AxiosError=A;D.Cancel=D.CanceledError;D.all=function(t){return Promise.all(t)};D.spread=si;D.isAxiosError=ni;D.mergeConfig=re;D.AxiosHeaders=K;D.formToJSON=e=>lr(u.isHTMLForm(e)?new FormData(e):e);D.getAdapter=dr.getAdapter;D.HttpStatusCode=ii;D.default=D;var te=D.create({}),mr=Object.preventExtensions({get default(){return te},responseWrapper:{},get(e,t){return te.get(e,t)},post(e,t){const{data:r,...s}=t||{};return te.post(e,r,s)},put(e,t){const{data:r,...s}=t||{};return te.put(e,r,s)},delete(e,t){const{...r}=t||{};return te.delete(e,r)},patch(e,t){const{data:r,...s}=t||{};return te.patch(e,r,s)}}),xe={NEXT_PUBLIC_API_URL:"https://innei.ren/api/v2",NEXT_PUBLIC_GATEWAY_URL:"https://api.innei.ren",NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY:"pk_test_aaaaaaaaaaaaaaaaaxxxxxx",CLERK_SECRET_KEY:"sk_test_",NEXT_PUBLIC_CLERK_SIGN_IN_URL:"/sign-in",NEXT_PUBLIC_CLERK_SIGN_UP_URL:"/sign-up",NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL:"/",NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL:"/",OPENAI_API_KEY:"",TMDB_API_KEY:"",S3_ACCESS_KEY:"",S3_SECRET_KEY:""};const oi=Mt&&xe.NEXT_PUBLIC_CHINA_API_URL?xe.NEXT_PUBLIC_CHINA_API_URL:xe.NEXT_PUBLIC_API_URL,Ii=xe.NEXT_PUBLIC_GATEWAY_URL,ai="Shiro",ci="AGPL-3.0",ui="1.0.0",li={node:">=18"},hi={before:["git pull --rebase","ni"],changelog:!0},fi={prepare:"pnpm exec simple-git-hooks && test -f .env || cp .env.template .env",start:"npm run dev",prebuild:"rimraf .next || exit 0",dev:"cross-env NODE_ENV=development next dev -p 2323","dev:turbo":"cross-env NODE_ENV=development next dev -p 2323 --turbo",analyze:"cross-env NODE_ENV=production ANALYZE=true BUNDLE_ANALYZE=browser next build",build:"cross-env NODE_ENV=production next build","build:ci":"cross-env NODE_ENV=production NODE_OPTIONS=--max_old_space_size=4096 NEXT_TELEMETRY_DISABLED=1 CI=true next build",lint:"eslint --ext .ts,.tsx --ignore-path .gitignore . --fix","prod:pm2":"cross-env NODE_ENV=production pm2 restart ecosystem.config.js","prod:stop":"pm2 stop ecosystem.config.js","prod:reload":"pm2 reload ecosystem.config.js"},di={"@aws-sdk/client-s3":"3.509.0","@clerk/nextjs":"4.29.6","@excalidraw/excalidraw":"0.17.2","@floating-ui/react-dom":"2.0.8","@milkdown/core":"7.3.3","@milkdown/ctx":"7.3.3","@milkdown/plugin-clipboard":"7.3.3","@milkdown/plugin-diagram":"^7.3.3","@milkdown/plugin-history":"7.3.3","@milkdown/plugin-indent":"7.3.3","@milkdown/plugin-listener":"7.3.3","@milkdown/preset-commonmark":"7.3.3","@milkdown/preset-gfm":"7.3.3","@milkdown/prose":"7.3.3","@milkdown/react":"7.3.3","@milkdown/transformer":"7.3.3","@milkdown/utils":"7.3.3","@mx-space/api-client":"1.7.2","@prosemirror-adapter/react":"0.2.6","@radix-ui/react-dialog":"1.0.5","@radix-ui/react-label":"2.0.2","@radix-ui/react-scroll-area":"1.0.5","@radix-ui/react-select":"2.0.0","@radix-ui/react-switch":"1.0.3","@radix-ui/react-tabs":"1.0.4","@tanstack/query-async-storage-persister":"5.18.1","@tanstack/react-query":"5.18.1","@tanstack/react-query-devtools":"5.18.1","@tanstack/react-query-persist-client":"5.18.1","@vercel/analytics":"1.1.3","@vercel/postgres":"0.7.2",axios:"1.6.7","bypass-vue-devtools":"0.0.6",clsx:"2.1.0","colorjs.io":"^0.4.5",crossbell:"1.11.3",daisyui:"4.6.2",dayjs:"1.11.10","emoji-mart":"5.5.2","emoji-picker-react":"4.7.12",foxact:"0.2.31","framer-motion":"^11.0.3","fuse.js":"7.0.0","idb-keyval":"6.2.1",immer:"^10.0.3",jojoo:"0.1.4",jotai:"2.6.4","js-cookie":"3.0.5","js-yaml":"4.1.0",jsondiffpatch:"^0.6.0",kbar:"0.1.0-beta.45","markdown-escape":"2.0.0","markdown-to-jsx":"npm:@innei/markdown-to-jsx@7.2.1-beta.4",marked:"12.0.0","medium-zoom":"1.1.0",mermaid:"10.8.0",next:"14.1.0","next-themes":"0.2.1",openai:"4.26.1","qrcode.react":"3.1.0",react:"18.2.0","react-dom":"18.2.0","react-error-boundary":"4.0.12","react-intersection-observer":"9.7.0","react-responsive-masonry":"2.1.7","react-toastify":"10.0.4","react-tweet":"3.2.0","react-wrap-balancer":"1.1.0","remark-directive":"3.0.0","remark-github-alerts":"^0.0.4","remove-markdown":"0.5.0","server-only":"^0.0.1","socket.io-client":"4.7.4","tailwind-merge":"2.2.1","unidata.js":"0.8.0",unified:"^11.0.4",uniqolor:"1.1.1","unist-util-visit":"5.0.0","use-context-selector":"1.4.1",vaul:"0.9.0",xss:"1.0.14"},pi={"@iconify-json/material-symbols":"1.1.72","@iconify-json/mingcute":"1.1.16","@iconify/tailwind":"0.1.4","@innei/eslint-config-react-ts":"0.12.2","@innei/prettier":"0.12.2","@mx-space/webhook":"0.2.2","@next/bundle-analyzer":"14.1.0","@tailwindcss/container-queries":"0.1.1","@tailwindcss/typography":"0.5.10","@types/js-cookie":"3.0.6","@types/js-yaml":"4.0.9","@types/markdown-escape":"1.1.3","@types/node":"20.11.16","@types/react":"18.2.55","@types/react-dom":"18.2.19","@types/react-responsive-masonry":"2.1.3","@types/remove-markdown":"0.3.4",autoprefixer:"10.4.17","cross-env":"7.0.3",dotenv:"16.4.1",eslint:"8.56.0","lint-staged":"15.2.2",postcss:"8.4.35","postcss-import":"16.0.0","postcss-nested":"6.0.1","postcss-preset-env":"9.3.0","postcss-prune-var":"1.1.1",prettier:"3.2.5",rimraf:"5.0.5","simple-git-hooks":"2.9.0","tailwind-scrollbar":"3.0.5","tailwind-variants":"0.1.20",tailwindcss:"^3.4.1",typescript:"5.3.3",typewind:"^0.1.4",zx:"7.2.3"},yi={budget:358400,budgetPercentIncreaseRed:20,showDetails:!0},mi={overrides:{"array-includes":"npm:@nolyfill/array-includes@latest","array.prototype.findlastindex":"npm:@nolyfill/array.prototype.findlastindex@latest","array.prototype.flat":"npm:@nolyfill/array.prototype.flat@latest","array.prototype.flatmap":"npm:@nolyfill/array.prototype.flatmap@latest","array.prototype.tosorted":"npm:@nolyfill/array.prototype.tosorted@latest",has:"npm:@nolyfill/has@latest","object.assign":"npm:@nolyfill/object.assign@latest","object.entries":"npm:@nolyfill/object.entries@latest","object.fromentries":"npm:@nolyfill/object.fromentries@latest","object.groupby":"npm:@nolyfill/object.groupby@latest","object.hasown":"npm:@nolyfill/object.hasown@latest","object.values":"npm:@nolyfill/object.values@latest","string.prototype.matchall":"npm:@nolyfill/string.prototype.matchall@latest"}},Ie={name:ai,license:ci,private:!1,version:ui,engines:li,bump:hi,"simple-git-hooks":{"pre-commit":"pnpm exec lint-staged"},"lint-staged":{"*.{js,jsx,ts,tsx}":["eslint --cache --fix","prettier --ignore-path ./.gitignore --write "]},scripts:fi,dependencies:di,devDependencies:pi,nextBundleAnalysis:yi,pnpm:mi},Xe="x-uuid",gi=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)}),gr=gi();Mt&&(sessionStorage.getItem(Xe)||sessionStorage.setItem(Xe,gr));const Bi=Ds(mr)(oi,{controllers:As}),ft=mr.default;ft.defaults.timeout=8e3;typeof window>"u"&&(ft.defaults.headers.common["User-Agent"]=`NextJS/v${Ie.dependencies.next} ${Ie.name}/${Ie.version}`);ft.interceptors.request.use(e=>{const t=Jt();return e.headers&&(t&&(e.headers.Authorization=`bearer ${t}`),e.headers["x-session-uuid"]=globalThis?.sessionStorage?.getItem(Xe)??gr),Si()&&(e.params={...e.params,ts:Date.now()}),e});const qi=e=>{if(!(e instanceof it))return e.message;const t=e.raw,r=t.response?.data?.message;return(typeof r=="string"?r:Array.isArray(r)?r[0]:void 0)||t.message},dt=W(null),bi=W(null),wi=(e,t=[])=>le(Ze(dt,N.useCallback(r=>r?e(r):null,t))),Hi=(e,t=[])=>le(Ze(bi,N.useCallback(r=>r?e(r):null,t))),Qi=()=>et.get(dt),xi=W(null),vi=W(null),Ki=()=>et.get(vi),Ei=()=>{const e=wi(r=>r.url);return{adminUrl:le(xi),...e}},zi=()=>{const{adminUrl:e}=Ei();return N.useCallback(t=>{if(!e)return"";const r=new URL(e.replace(/\/$/,"")),s=Jt();return s&&r.searchParams.set("token",s),`${r.protocol}//${r.host}${r.pathname}${t||""}${r.search}`},[e])};W(e=>e(dt)?.user);const br=W(!1),Gi=()=>le(br),Si=()=>et.get(br);export{Qi as A,Mi as B,Us as C,Hi as D,ae as E,Lr as F,Ii as G,qi as H,wi as I,oi as J,qr as Q,$i as R,Se as S,Wr as a,Ui as b,Cr as c,rt as d,U as e,qe as f,ji as g,ki as h,Oe as i,Ke as j,Bi as k,Ki as l,Li as m,q as n,zi as o,_i as p,Br as q,Pr as r,Ti as s,Ar as t,Gi as u,Di as v,Fi as w,Si as x,Is as y,Ns as z}; diff --git a/assets/path-aUcfwwLI.js b/assets/path-aUcfwwLI.js new file mode 100644 index 00000000000..f55758f48c0 --- /dev/null +++ b/assets/path-aUcfwwLI.js @@ -0,0 +1 @@ +const c=Math.PI,x=2*c,u=1e-6,m=x-u;function E(e){this._+=e[0];for(let t=1,h=e.length;t<h;++t)this._+=arguments[t]+e[t]}function A(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return E;const h=10**t;return function(i){this._+=i[0];for(let s=1,n=i.length;s<n;++s)this._+=Math.round(arguments[s]*h)/h+i[s]}}class L{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?E:A(t)}moveTo(t,h){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+h}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,h){this._append`L${this._x1=+t},${this._y1=+h}`}quadraticCurveTo(t,h,i,s){this._append`Q${+t},${+h},${this._x1=+i},${this._y1=+s}`}bezierCurveTo(t,h,i,s,n,$){this._append`C${+t},${+h},${+i},${+s},${this._x1=+n},${this._y1=+$}`}arcTo(t,h,i,s,n){if(t=+t,h=+h,i=+i,s=+s,n=+n,n<0)throw new Error(`negative radius: ${n}`);let $=this._x1,r=this._y1,p=i-t,l=s-h,_=$-t,o=r-h,a=_*_+o*o;if(this._x1===null)this._append`M${this._x1=t},${this._y1=h}`;else if(a>u)if(!(Math.abs(o*p-l*_)>u)||!n)this._append`L${this._x1=t},${this._y1=h}`;else{let d=i-$,f=s-r,y=p*p+l*l,T=d*d+f*f,g=Math.sqrt(y),v=Math.sqrt(a),w=n*Math.tan((c-Math.acos((y+a-T)/(2*g*v)))/2),M=w/v,b=w/g;Math.abs(M-1)>u&&this._append`L${t+M*_},${h+M*o}`,this._append`A${n},${n},0,0,${+(o*d>_*f)},${this._x1=t+b*p},${this._y1=h+b*l}`}}arc(t,h,i,s,n,$){if(t=+t,h=+h,i=+i,$=!!$,i<0)throw new Error(`negative radius: ${i}`);let r=i*Math.cos(s),p=i*Math.sin(s),l=t+r,_=h+p,o=1^$,a=$?s-n:n-s;this._x1===null?this._append`M${l},${_}`:(Math.abs(this._x1-l)>u||Math.abs(this._y1-_)>u)&&this._append`L${l},${_}`,i&&(a<0&&(a=a%x+x),a>m?this._append`A${i},${i},0,1,${o},${t-r},${h-p}A${i},${i},0,1,${o},${this._x1=l},${this._y1=_}`:a>u&&this._append`A${i},${i},0,${+(a>=c)},${o},${this._x1=t+i*Math.cos(n)},${this._y1=h+i*Math.sin(n)}`)}rect(t,h,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+h}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function P(e){return function(){return e}}function q(e){let t=3;return e.digits=function(h){if(!arguments.length)return t;if(h==null)t=null;else{const i=Math.floor(h);if(!(i>=0))throw new RangeError(`invalid digits: ${h}`);t=i}return e},()=>new L(t)}export{P as c,q as w}; diff --git a/assets/pieDiagram-b0208e96-YwXKfy_j.js b/assets/pieDiagram-b0208e96-YwXKfy_j.js new file mode 100644 index 00000000000..424b037b26b --- /dev/null +++ b/assets/pieDiagram-b0208e96-YwXKfy_j.js @@ -0,0 +1,35 @@ +import{R as J,y as at,o as lt,p as ot,s as ct,g as ht,b as ut,a as pt,q as yt,d as ft,c as et,l as it,a5 as gt,v as mt,z as dt,i as _t}from"./index.demo-_07sssxB.js";import"./owner-4YVbz2PN.js";import{a as tt}from"./arc-9wcg-j4M.js";import{o as xt}from"./ordinal-wXG5obU4.js";import{a as kt}from"./array-Nw74a44z.js";import{c as R}from"./path-aUcfwwLI.js";import"./index-qegmBwH1.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";import"./init-Hi12RPRh.js";function vt(e,u){return u<e?-1:u>e?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=vt,$=null,f=R(0),g=R(J),A=R(0);function p(a){var l,m=(a=kt(a)).length,d,I,T=0,_=new Array(m),v=new Array(m),c=+f.apply(this,arguments),E=Math.min(J,Math.max(-J,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs(E)/m,A.apply(this,arguments)),b=w*(E<0?-1:1),t;for(l=0;l<m;++l)(t=v[_[l]=l]=+e(a[l],l,a))>0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(v[i],v[n])}):$!=null&&_.sort(function(i,n){return $(a[i],a[n])}),l=0,I=T?(E-m*b)/T:0;l<m;++l,c=O)d=_[l],t=v[d],O=c+(t>0?t*I:0)+b,v[d]={data:a[d],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return v}return p.value=function(a){return arguments.length?(e=typeof a=="function"?a:R(+a),p):e},p.sortValues=function(a){return arguments.length?(u=a,$=null,p):u},p.sort=function(a){return arguments.length?($=a,u=null,p):$},p.startAngle=function(a){return arguments.length?(f=typeof a=="function"?a:R(+a),p):f},p.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:R(+a),p):g},p.padAngle=function(a){return arguments.length?(A=typeof a=="function"?a:R(+a),p):A},p}var K=function(){var e=function(b,t,i,n){for(i=i||{},n=b.length;n--;i[b[n]]=t);return i},u=[1,3],$=[1,4],f=[1,5],g=[1,6],A=[1,10,12,14,16,18,19,20,21,22],p=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],m=[2,7],d=[1,12],I=[1,13],T=[1,14],_=[1,15],v=[1,16],c=[1,17],E={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,P){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:$,21:f,22:g},{1:[3]},{3:7,4:2,5:u,20:$,21:f,22:g},e(A,p,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,m,{8:10,9:11,1:[2,2],10:d,12:I,14:T,16:_,18:v,19:c}),e(A,p,{6:18}),e(A,[2,5]),{4:19,20:$,21:f,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,m,{8:10,9:11,1:[2,3],10:d,12:I,14:T,16:_,18:v,19:c}),e(A,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],P=this.table,x="",y=0,V=0,z=2,M=1,B=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(N.yy[Y]=this.yy[Y]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var q=h.yylloc;s.push(q);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var k,L,S,Z,F={},j,D,X,W;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),S=P[L]&&P[L][k]),typeof S>"u"||!S.length||!S[0]){var H="";W=[];for(j in P[L])this.terminals_[j]&&j>z&&W.push("'"+this.terminals_[j]+"'");h.showPosition?H="Parse error on line "+(y+1)+`: +`+h.showPosition()+` +Expecting `+W.join(", ")+", got '"+(this.terminals_[k]||k)+"'":H="Parse error on line "+(y+1)+": Unexpected "+(k==M?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(H,{text:h.match,token:this.terminals_[k]||k,line:h.yylineno,loc:q,expected:W})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+k);switch(S[0]){case 1:n.push(k),o.push(h.yytext),s.push(h.yylloc),n.push(S[1]),k=null,V=h.yyleng,x=h.yytext,y=h.yylineno,q=h.yylloc;break;case 2:if(D=this.productions_[S[1]][1],F.$=o[o.length-D],F._$={first_line:s[s.length-(D||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(D||1)].first_column,last_column:s[s.length-1].last_column},st&&(F._$.range=[s[s.length-(D||1)].range[0],s[s.length-1].range[1]]),Z=this.performAction.apply(F,[x,V,y,N.yy,S[1],o,s].concat(B)),typeof Z<"u")return Z;D&&(n=n.slice(0,-1*D*2),o=o.slice(0,-1*D),s=s.slice(0,-1*D)),n.push(this.productions_[S[1]][0]),o.push(F.$),s.push(F._$),X=P[n[n.length-2]][n[n.length-1]],n.push(X);break;case 3:return!0}}return!0}},O=function(){var b={EOF:1,parseError:function(i,n){if(this.yy.parser)this.yy.parser.parseError(i,n);else throw new Error(i)},setInput:function(t,i){return this.yy=i||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var i=t.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var i=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),i=new Array(t.length+1).join("-");return t+this.upcomingInput()+` +`+i+"^"},test_match:function(t,i){var n,r,o;if(this.options.backtrack_lexer&&(o={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(o.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in o)this[s]=o[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,i,n,r;this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),s=0;s<o.length;s++)if(n=this._input.match(this.rules[o[s]]),n&&(!i||n[0].length>i[0].length)){if(i=n,r=s,this.options.backtrack_lexer){if(t=this.test_match(n,o[s]),t!==!1)return t;if(this._backtrack){i=!1;continue}else return!1}else if(!this.options.flex)break}return i?(t=this.test_match(i,o[r]),t!==!1?t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return i||this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},pushState:function(i){this.begin(i)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(i,n,r,o){switch(r){case 0:break;case 1:break;case 2:return 20;case 3:break;case 4:break;case 5:return this.begin("title"),12;case 6:return this.popState(),"title_value";case 7:return this.begin("acc_title"),14;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),16;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"txt";case 17:return 5;case 18:return 7;case 19:return"value";case 20:return 22}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[6],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,7,9,11,14,17,18,19,20],inclusive:!0}}};return b}();E.lexer=O;function w(){this.yy={}}return w.prototype=E,E.Parser=w,new w}();K.parser=K;const $t=K,nt=at.pie,G={sections:{},showData:!1,config:nt};let U=G.sections,Q=G.showData;const At=structuredClone(nt),Et=()=>structuredClone(At),wt=()=>{U=structuredClone(G.sections),Q=G.showData,yt()},Tt=(e,u)=>{e=ft(e,et()),U[e]===void 0&&(U[e]=u,it.debug(`added new section: ${e}, with value: ${u}`))},It=()=>U,Dt=e=>(e.substring(0,1)===":"&&(e=e.substring(1).trim()),Number(e.trim())),Ct=e=>{Q=e},Ot=()=>Q,Pt={getConfig:Et,clear:wt,setDiagramTitle:lt,getDiagramTitle:ot,setAccTitle:ct,getAccTitle:ht,setAccDescription:ut,getAccDescription:pt,addSection:Tt,getSections:It,cleanupValue:Dt,setShowData:Ct,getShowData:Ot},Vt=e=>` + .pieCircle{ + stroke: ${e.pieStrokeColor}; + stroke-width : ${e.pieStrokeWidth}; + opacity : ${e.pieOpacity}; + } + .pieOuterCircle{ + stroke: ${e.pieOuterStrokeColor}; + stroke-width: ${e.pieOuterStrokeWidth}; + fill: none; + } + .pieTitleText { + text-anchor: middle; + font-size: ${e.pieTitleTextSize}; + fill: ${e.pieTitleTextColor}; + font-family: ${e.fontFamily}; + } + .slice { + font-family: ${e.fontFamily}; + fill: ${e.pieSectionTextColor}; + font-size:${e.pieSectionTextSize}; + // fill: white; + } + .legend text { + fill: ${e.pieLegendTextColor}; + font-family: ${e.fontFamily}; + font-size: ${e.pieLegendTextSize}; + } +`,Nt=Vt,Lt=e=>{const u=Object.entries(e).map(f=>({label:f[0],value:f[1]})).sort((f,g)=>g.value-f.value);return St().value(f=>f.value)(u)},Rt=(e,u,$,f)=>{it.debug(`rendering pie chart +`+e);const g=f.db,A=et(),p=gt(g.getConfig(),A.pie),a=40,l=18,m=4,d=450,I=d,T=mt(u),_=T.append("g"),v=g.getSections();_.attr("transform","translate("+I/2+","+d/2+")");const{themeVariables:c}=A;let[E]=dt(c.pieOuterStrokeWidth);E??(E=2);const O=p.textPosition,w=Math.min(I,d)/2-a,b=tt().innerRadius(0).outerRadius(w),t=tt().innerRadius(w*O).outerRadius(w*O);_.append("circle").attr("cx",0).attr("cy",0).attr("r",w+E/2).attr("class","pieOuterCircle");const i=Lt(v),n=[c.pie1,c.pie2,c.pie3,c.pie4,c.pie5,c.pie6,c.pie7,c.pie8,c.pie9,c.pie10,c.pie11,c.pie12],r=xt(n);_.selectAll("mySlices").data(i).enter().append("path").attr("d",b).attr("fill",y=>r(y.data.label)).attr("class","pieCircle");let o=0;Object.keys(v).forEach(y=>{o+=v[y]}),_.selectAll("mySlices").data(i).enter().append("text").text(y=>(y.data.value/o*100).toFixed(0)+"%").attr("transform",y=>"translate("+t.centroid(y)+")").style("text-anchor","middle").attr("class","slice"),_.append("text").text(g.getDiagramTitle()).attr("x",0).attr("y",-(d-50)/2).attr("class","pieTitleText");const s=_.selectAll(".legend").data(r.domain()).enter().append("g").attr("class","legend").attr("transform",(y,V)=>{const z=l+m,M=z*r.domain().length/2,B=12*l,h=V*z-M;return"translate("+B+","+h+")"});s.append("rect").attr("width",l).attr("height",l).style("fill",r).style("stroke",r),s.data(i).append("text").attr("x",l+m).attr("y",l-m).text(y=>{const{label:V,value:z}=y.data;return g.getShowData()?`${V} [${z}]`:V});const P=Math.max(...s.selectAll("text").nodes().map(y=>y?.getBoundingClientRect().width??0)),x=I+a+l+m+P;T.attr("viewBox",`0 0 ${x} ${d}`),_t(T,d,x,p.useMaxWidth)},zt={draw:Rt},$e={parser:$t,db:Pt,renderer:zt,styles:Nt};export{$e as diagram}; diff --git a/assets/provider-jumr72cx.js b/assets/provider-jumr72cx.js new file mode 100644 index 00000000000..bab1260fe84 --- /dev/null +++ b/assets/provider-jumr72cx.js @@ -0,0 +1,42 @@ +import{r as i,$ as Nn,a as Lt,b as Mn,j as S,R as b}from"./index-qegmBwH1.js";import{j as le}from"./store-gmK8mRDy.js";import{a as Ft,c as kn,u as In,b as _n}from"./init-a0893ef4-4662SO8Z.js";import{b as Ln}from"./owner-4YVbz2PN.js";import"./toast-qMk_Ov--.js";import{u as Fn,a as jn,m as jt}from"./motion-minimal-gJqnz197.js";import{u as Wn,D as Un}from"./use-is-unmounted-6i0OwE-p.js";import{m as Bn,A as Hn}from"./spring--xEiX8r3.js";import{u as zn}from"./use-event-callback-nMlqCkS7.js";import{s as je}from"./dom-NuJWIaAq.js";import{c as We}from"./helper-0r91fNX5.js";import{b as Vn,s as Yn}from"./visual-element-YIiczwVf.js";function Xn(e){e.values.forEach(t=>t.stop())}function Kn(){const e=new Set,t={subscribe(n){return e.add(n),()=>void e.delete(n)},start(n,r){const o=[];return e.forEach(a=>{o.push(Vn(a,n,{transitionOverride:r}))}),Promise.all(o)},set(n){return e.forEach(r=>{Yn(r,n)})},stop(){e.forEach(n=>{Xn(n)})},mount(){return()=>{t.stop()}}};return t}function qn(){const e=Fn(Kn);return jn(e.mount,[]),e}const Zn={},Wt=i.createContext(null),ga=()=>i.useContext(Wt),ee=Ft([]),ba=()=>({push(e){location.pathname=e}}),Gn=()=>location.pathname;function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j.apply(this,arguments)}function q(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Qn(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ut(...e){return t=>e.forEach(n=>Qn(n,t))}function ue(...e){return i.useCallback(Ut(...e),e)}function Jn(e,t=[]){let n=[];function r(a,s){const c=i.createContext(s),d=n.length;n=[...n,s];function m(l){const{scope:f,children:v,...x}=l,u=f?.[e][d]||c,y=i.useMemo(()=>x,Object.values(x));return i.createElement(u.Provider,{value:y},v)}function p(l,f){const v=f?.[e][d]||c,x=i.useContext(v);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${l}\` must be used within \`${a}\``)}return m.displayName=a+"Provider",[m,p]}const o=()=>{const a=n.map(s=>i.createContext(s));return function(c){const d=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[r,er(o,...t)]}function er(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((c,{useScope:d,scopeName:m})=>{const l=d(a)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}const Ze=globalThis?.document?i.useLayoutEffect:()=>{},tr=Nn.useId||(()=>{});let nr=0;function Ue(e){const[t,n]=i.useState(tr());return Ze(()=>{e||n(r=>r??String(nr++))},[e]),e||(t?`radix-${t}`:"")}function te(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function rr({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=or({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:r,c=te(n),d=i.useCallback(m=>{if(a){const l=typeof m=="function"?m(e):m;l!==e&&c(l)}else o(m)},[a,e,o,c]);return[s,d]}function or({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),a=te(t);return i.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const ct=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),a=o.find(ir);if(a){const s=a.props.children,c=o.map(d=>d===a?i.Children.count(s)>1?i.Children.only(null):i.isValidElement(s)?s.props.children:null:d);return i.createElement(Ge,j({},r,{ref:t}),i.isValidElement(s)?i.cloneElement(s,void 0,c):null)}return i.createElement(Ge,j({},r,{ref:t}),n)});ct.displayName="Slot";const Ge=i.forwardRef((e,t)=>{const{children:n,...r}=e;return i.isValidElement(n)?i.cloneElement(n,{...cr(r,n.props),ref:t?Ut(t,n.ref):n.ref}):i.Children.count(n)>1?i.Children.only(null):null});Ge.displayName="SlotClone";const ar=({children:e})=>i.createElement(i.Fragment,null,e);function ir(e){return i.isValidElement(e)&&e.type===ar}function cr(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...c)=>{a(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const sr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Z=sr.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:a,...s}=r,c=a?ct:t;return i.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),i.createElement(c,j({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function lr(e,t){e&&Lt.flushSync(()=>e.dispatchEvent(t))}function ur(e,t=globalThis?.document){const n=te(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Qe="dismissableLayer.update",dr="dismissableLayer.pointerDownOutside",fr="dismissableLayer.focusOutside";let yt;const vr=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mr=i.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:c,onDismiss:d,...m}=e,p=i.useContext(vr),[l,f]=i.useState(null),v=(n=l?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,x]=i.useState({}),u=ue(t,P=>f(P)),y=Array.from(p.layers),[h]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),D=y.indexOf(h),w=l?y.indexOf(l):-1,g=p.layersWithOutsidePointerEventsDisabled.size>0,$=w>=D,T=pr(P=>{const _=P.target,W=[...p.branches].some(B=>B.contains(_));!$||W||(a?.(P),c?.(P),P.defaultPrevented||d?.())},v),k=hr(P=>{const _=P.target;[...p.branches].some(B=>B.contains(_))||(s?.(P),c?.(P),P.defaultPrevented||d?.())},v);return ur(P=>{w===p.layers.size-1&&(o?.(P),!P.defaultPrevented&&d&&(P.preventDefault(),d()))},v),i.useEffect(()=>{if(l)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(yt=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(l)),p.layers.add(l),wt(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=yt)}},[l,v,r,p]),i.useEffect(()=>()=>{l&&(p.layers.delete(l),p.layersWithOutsidePointerEventsDisabled.delete(l),wt())},[l,p]),i.useEffect(()=>{const P=()=>x({});return document.addEventListener(Qe,P),()=>document.removeEventListener(Qe,P)},[]),i.createElement(Z.div,j({},m,{ref:u,style:{pointerEvents:g?$?"auto":"none":void 0,...e.style},onFocusCapture:q(e.onFocusCapture,k.onFocusCapture),onBlurCapture:q(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:q(e.onPointerDownCapture,T.onPointerDownCapture)}))});function pr(e,t=globalThis?.document){const n=te(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=c=>{if(c.target&&!r.current){let m=function(){Bt(dr,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function hr(e,t=globalThis?.document){const n=te(e),r=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!r.current&&Bt(fr,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function wt(){const e=new CustomEvent(Qe);document.dispatchEvent(e)}function Bt(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?lr(o,a):o.dispatchEvent(a)}const Be="focusScope.autoFocusOnMount",He="focusScope.autoFocusOnUnmount",Et={bubbles:!1,cancelable:!0},gr=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[c,d]=i.useState(null),m=te(o),p=te(a),l=i.useRef(null),f=ue(t,u=>d(u)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let u=function(w){if(v.paused||!c)return;const g=w.target;c.contains(g)?l.current=g:K(l.current,{select:!0})},y=function(w){if(v.paused||!c)return;const g=w.relatedTarget;g!==null&&(c.contains(g)||K(l.current,{select:!0}))},h=function(w){if(document.activeElement===document.body)for(const $ of w)$.removedNodes.length>0&&K(c)};document.addEventListener("focusin",u),document.addEventListener("focusout",y);const D=new MutationObserver(h);return c&&D.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",y),D.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){Ct.add(v);const u=document.activeElement;if(!c.contains(u)){const h=new CustomEvent(Be,Et);c.addEventListener(Be,m),c.dispatchEvent(h),h.defaultPrevented||(br(xr(Ht(c)),{select:!0}),document.activeElement===u&&K(c))}return()=>{c.removeEventListener(Be,m),setTimeout(()=>{const h=new CustomEvent(He,Et);c.addEventListener(He,p),c.dispatchEvent(h),h.defaultPrevented||K(u??document.body,{select:!0}),c.removeEventListener(He,p),Ct.remove(v)},0)}}},[c,m,p,v]);const x=i.useCallback(u=>{if(!n&&!r||v.paused)return;const y=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,h=document.activeElement;if(y&&h){const D=u.currentTarget,[w,g]=$r(D);w&&g?!u.shiftKey&&h===g?(u.preventDefault(),n&&K(w,{select:!0})):u.shiftKey&&h===w&&(u.preventDefault(),n&&K(g,{select:!0})):h===D&&u.preventDefault()}},[n,r,v.paused]);return i.createElement(Z.div,j({tabIndex:-1},s,{ref:f,onKeyDown:x}))});function br(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(K(r,{select:t}),document.activeElement!==n)return}function $r(e){const t=Ht(e),n=xt(t,e),r=xt(t.reverse(),e);return[n,r]}function Ht(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function xt(e,t){for(const n of e)if(!yr(n,{upTo:t}))return n}function yr(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function wr(e){return e instanceof HTMLInputElement&&"select"in e}function K(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&wr(e)&&t&&e.select()}}const Ct=Er();function Er(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=St(e,t),e.unshift(t)},remove(t){var n;e=St(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function St(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function xr(e){return e.filter(t=>t.tagName!=="A")}const Cr=i.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Mn.createPortal(i.createElement(Z.div,j({},o,{ref:t})),r):null});function Sr(e,t){return i.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Me=e=>{const{present:t,children:n}=e,r=Pr(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),a=ue(r.ref,o.ref);return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:a}):null};Me.displayName="Presence";function Pr(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),a=i.useRef("none"),s=e?"mounted":"unmounted",[c,d]=Sr(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const m=xe(r.current);a.current=c==="mounted"?m:"none"},[c]),Ze(()=>{const m=r.current,p=o.current;if(p!==e){const f=a.current,v=xe(m);e?d("MOUNT"):v==="none"||m?.display==="none"?d("UNMOUNT"):d(p&&f!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Ze(()=>{if(t){const m=l=>{const v=xe(r.current).includes(l.animationName);l.target===t&&v&&Lt.flushSync(()=>d("ANIMATION_END"))},p=l=>{l.target===t&&(a.current=xe(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(m=>{m&&(r.current=getComputedStyle(m)),n(m)},[])}}function xe(e){return e?.animationName||"none"}let ze=0;function Rr(){i.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Pt()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Pt()),ze++,()=>{ze===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),ze--}},[])}function Pt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Y=function(){return Y=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Y.apply(this,arguments)};function zt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Or(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Ae="right-scroll-bar-position",Ne="width-before-scroll-bar",Dr="with-scroll-bars-hidden",Tr="--removed-body-scroll-bar-size";function Ar(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Nr(e,t){var n=i.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function Mr(e,t){return Nr(t||null,function(n){return e.forEach(function(r){return Ar(r,n)})})}function kr(e){return e}function Ir(e,t){t===void 0&&(t=kr);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(c){return a(c)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(a),s=n}var d=function(){var p=s;s=[],p.forEach(a)},m=function(){return Promise.resolve().then(d)};m(),n={push:function(p){s.push(p),m()},filter:function(p){return s=s.filter(p),n}}}};return o}function _r(e){e===void 0&&(e={});var t=Ir(null);return t.options=Y({async:!0,ssr:!1},e),t}var Vt=function(e){var t=e.sideCar,n=zt(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,Y({},n))};Vt.isSideCarExport=!0;function Lr(e,t){return e.useMedium(t),Vt}var Yt=_r(),Ve=function(){},ke=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Ve,onWheelCapture:Ve,onTouchMoveCapture:Ve}),o=r[0],a=r[1],s=e.forwardProps,c=e.children,d=e.className,m=e.removeScrollBar,p=e.enabled,l=e.shards,f=e.sideCar,v=e.noIsolation,x=e.inert,u=e.allowPinchZoom,y=e.as,h=y===void 0?"div":y,D=zt(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=f,g=Mr([n,t]),$=Y(Y({},D),o);return i.createElement(i.Fragment,null,p&&i.createElement(w,{sideCar:Yt,removeScrollBar:m,shards:l,noIsolation:v,inert:x,setCallbacks:a,allowPinchZoom:!!u,lockRef:n}),s?i.cloneElement(i.Children.only(c),Y(Y({},$),{ref:g})):i.createElement(h,Y({},$,{className:d,ref:g}),c))});ke.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ke.classNames={fullWidth:Ne,zeroRight:Ae};var Fr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function jr(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Fr();return t&&e.setAttribute("nonce",t),e}function Wr(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ur(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Br=function(){var e=0,t=null;return{add:function(n){e==0&&(t=jr())&&(Wr(t,n),Ur(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Hr=function(){var e=Br();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Xt=function(){var e=Hr(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},zr={left:0,top:0,right:0,gap:0},Ye=function(e){return parseInt(e||"",10)||0},Vr=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ye(n),Ye(r),Ye(o)]},Yr=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return zr;var t=Vr(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Xr=Xt(),Kr=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),` + .`.concat(Dr,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(c,"px ").concat(r,`; + } + body { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(o,`px; + padding-top: `).concat(a,`px; + padding-right: `).concat(s,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(c,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(Ae,` { + right: `).concat(c,"px ").concat(r,`; + } + + .`).concat(Ne,` { + margin-right: `).concat(c,"px ").concat(r,`; + } + + .`).concat(Ae," .").concat(Ae,` { + right: 0 `).concat(r,`; + } + + .`).concat(Ne," .").concat(Ne,` { + margin-right: 0 `).concat(r,`; + } + + body { + `).concat(Tr,": ").concat(c,`px; + } +`)},qr=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=i.useMemo(function(){return Yr(o)},[o]);return i.createElement(Xr,{styles:Kr(a,!t,o,n?"":"!important")})},Je=!1;if(typeof window<"u")try{var Ce=Object.defineProperty({},"passive",{get:function(){return Je=!0,!0}});window.addEventListener("test",Ce,Ce),window.removeEventListener("test",Ce,Ce)}catch{Je=!1}var ae=Je?{passive:!1}:!1,Zr=function(e){return e.tagName==="TEXTAREA"},Kt=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Zr(e)&&n[t]==="visible")},Gr=function(e){return Kt(e,"overflowY")},Qr=function(e){return Kt(e,"overflowX")},Rt=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=qt(e,n);if(r){var o=Zt(e,n),a=o[1],s=o[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Jr=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},eo=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},qt=function(e,t){return e==="v"?Gr(t):Qr(t)},Zt=function(e,t){return e==="v"?Jr(t):eo(t)},to=function(e,t){return e==="h"&&t==="rtl"?-1:1},no=function(e,t,n,r,o){var a=to(e,window.getComputedStyle(t).direction),s=a*r,c=n.target,d=t.contains(c),m=!1,p=s>0,l=0,f=0;do{var v=Zt(e,c),x=v[0],u=v[1],y=v[2],h=u-y-a*x;(x||h)&&qt(e,c)&&(l+=h,f+=x),c=c.parentNode}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(p&&(o&&l===0||!o&&s>l)||!p&&(o&&f===0||!o&&-s>f))&&(m=!0),m},Se=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ot=function(e){return[e.deltaX,e.deltaY]},Dt=function(e){return e&&"current"in e?e.current:e},ro=function(e,t){return e[0]===t[0]&&e[1]===t[1]},oo=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},ao=0,ie=[];function io(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(ao++)[0],a=i.useState(function(){return Xt()})[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=Or([e.lockRef.current],(e.shards||[]).map(Dt),!0).filter(Boolean);return u.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(u,y){if("touches"in u&&u.touches.length===2)return!s.current.allowPinchZoom;var h=Se(u),D=n.current,w="deltaX"in u?u.deltaX:D[0]-h[0],g="deltaY"in u?u.deltaY:D[1]-h[1],$,T=u.target,k=Math.abs(w)>Math.abs(g)?"h":"v";if("touches"in u&&k==="h"&&T.type==="range")return!1;var P=Rt(k,T);if(!P)return!0;if(P?$=k:($=k==="v"?"h":"v",P=Rt(k,T)),!P)return!1;if(!r.current&&"changedTouches"in u&&(w||g)&&(r.current=$),!$)return!0;var _=r.current||$;return no(_,y,u,_==="h"?w:g,!0)},[]),d=i.useCallback(function(u){var y=u;if(!(!ie.length||ie[ie.length-1]!==a)){var h="deltaY"in y?Ot(y):Se(y),D=t.current.filter(function($){return $.name===y.type&&$.target===y.target&&ro($.delta,h)})[0];if(D&&D.should){y.cancelable&&y.preventDefault();return}if(!D){var w=(s.current.shards||[]).map(Dt).filter(Boolean).filter(function($){return $.contains(y.target)}),g=w.length>0?c(y,w[0]):!s.current.noIsolation;g&&y.cancelable&&y.preventDefault()}}},[]),m=i.useCallback(function(u,y,h,D){var w={name:u,delta:y,target:h,should:D};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(g){return g!==w})},1)},[]),p=i.useCallback(function(u){n.current=Se(u),r.current=void 0},[]),l=i.useCallback(function(u){m(u.type,Ot(u),u.target,c(u,e.lockRef.current))},[]),f=i.useCallback(function(u){m(u.type,Se(u),u.target,c(u,e.lockRef.current))},[]);i.useEffect(function(){return ie.push(a),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:f}),document.addEventListener("wheel",d,ae),document.addEventListener("touchmove",d,ae),document.addEventListener("touchstart",p,ae),function(){ie=ie.filter(function(u){return u!==a}),document.removeEventListener("wheel",d,ae),document.removeEventListener("touchmove",d,ae),document.removeEventListener("touchstart",p,ae)}},[]);var v=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:oo(o)}):null,v?i.createElement(qr,{gapMode:"margin"}):null)}const co=Lr(Yt,io);var Gt=i.forwardRef(function(e,t){return i.createElement(ke,Y({},e,{ref:t,sideCar:co}))});Gt.classNames=ke.classNames;const so=Gt;var lo=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ce=new WeakMap,Pe=new WeakMap,Re={},Xe=0,Qt=function(e){return e&&(e.host||Qt(e.parentNode))},uo=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Qt(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},fo=function(e,t,n,r){var o=uo(t,Array.isArray(e)?e:[e]);Re[n]||(Re[n]=new WeakMap);var a=Re[n],s=[],c=new Set,d=new Set(o),m=function(l){!l||c.has(l)||(c.add(l),m(l.parentNode))};o.forEach(m);var p=function(l){!l||d.has(l)||Array.prototype.forEach.call(l.children,function(f){if(c.has(f))p(f);else{var v=f.getAttribute(r),x=v!==null&&v!=="false",u=(ce.get(f)||0)+1,y=(a.get(f)||0)+1;ce.set(f,u),a.set(f,y),s.push(f),u===1&&x&&Pe.set(f,!0),y===1&&f.setAttribute(n,"true"),x||f.setAttribute(r,"true")}})};return p(t),c.clear(),Xe++,function(){s.forEach(function(l){var f=ce.get(l)-1,v=a.get(l)-1;ce.set(l,f),a.set(l,v),f||(Pe.has(l)||l.removeAttribute(r),Pe.delete(l)),v||l.removeAttribute(n)}),Xe--,Xe||(ce=new WeakMap,ce=new WeakMap,Pe=new WeakMap,Re={})}},vo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||lo(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),fo(r,o,n,"aria-hidden")):function(){return null}};const Jt="Dialog",[en,$a]=Jn(Jt),[mo,z]=en(Jt),po=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,c=i.useRef(null),d=i.useRef(null),[m=!1,p]=rr({prop:r,defaultProp:o,onChange:a});return i.createElement(mo,{scope:t,triggerRef:c,contentRef:d,contentId:Ue(),titleId:Ue(),descriptionId:Ue(),open:m,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(l=>!l),[p]),modal:s},n)},ho="DialogTrigger",go=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=z(ho,n),a=ue(t,o.triggerRef);return i.createElement(Z.button,j({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":st(o.open)},r,{ref:a,onClick:q(e.onClick,o.onOpenToggle)}))}),tn="DialogPortal",[bo,nn]=en(tn,{forceMount:void 0}),$o=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=z(tn,t);return i.createElement(bo,{scope:t,forceMount:n},i.Children.map(r,s=>i.createElement(Me,{present:n||a.open},i.createElement(Cr,{asChild:!0,container:o},s))))},et="DialogOverlay",yo=i.forwardRef((e,t)=>{const n=nn(et,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=z(et,e.__scopeDialog);return a.modal?i.createElement(Me,{present:r||a.open},i.createElement(wo,j({},o,{ref:t}))):null}),wo=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=z(et,n);return i.createElement(so,{as:ct,allowPinchZoom:!0,shards:[o.contentRef]},i.createElement(Z.div,j({"data-state":st(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),he="DialogContent",Eo=i.forwardRef((e,t)=>{const n=nn(he,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=z(he,e.__scopeDialog);return i.createElement(Me,{present:r||a.open},a.modal?i.createElement(xo,j({},o,{ref:t})):i.createElement(Co,j({},o,{ref:t})))}),xo=i.forwardRef((e,t)=>{const n=z(he,e.__scopeDialog),r=i.useRef(null),o=ue(t,n.contentRef,r);return i.useEffect(()=>{const a=r.current;if(a)return vo(a)},[]),i.createElement(rn,j({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0;(s.button===2||c)&&a.preventDefault()}),onFocusOutside:q(e.onFocusOutside,a=>a.preventDefault())}))}),Co=i.forwardRef((e,t)=>{const n=z(he,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return i.createElement(rn,j({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,a),!a.defaultPrevented){var c;r.current||(c=n.triggerRef.current)===null||c===void 0||c.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var s,c;(s=e.onInteractOutside)===null||s===void 0||s.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const d=a.target;((c=n.triggerRef.current)===null||c===void 0?void 0:c.contains(d))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),rn=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,c=z(he,n),d=i.useRef(null),m=ue(t,d);return Rr(),i.createElement(i.Fragment,null,i.createElement(gr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},i.createElement(mr,j({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":st(c.open)},s,{ref:m,onDismiss:()=>c.onOpenChange(!1)}))),!1)}),So="DialogTitle",Po=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=z(So,n);return i.createElement(Z.h2,j({id:o.titleId},r,{ref:t}))}),Ro="DialogDescription",Oo=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=z(Ro,n);return i.createElement(Z.p,j({id:o.descriptionId},r,{ref:t}))}),Do="DialogClose",on=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=z(Do,n);return i.createElement(Z.button,j({type:"button"},r,{ref:t,onClick:q(e.onClick,()=>o.onOpenChange(!1))}))});function st(e){return e?"open":"closed"}const tt=po,To=go,nt=$o,an=yo,rt=Eo,cn=Po,Ao=Oo,No=on,Mo=({className:e})=>S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1.4em",height:"1.4em",viewBox:"0 0 32 32",className:e,children:S.jsx("path",{fill:"currentColor",d:"M24 9.4L22.6 8L16 14.6L9.4 8L8 9.4l6.6 6.6L8 22.6L9.4 24l6.6-6.6l6.6 6.6l1.4-1.4l-6.6-6.6L24 9.4z"})}),Tt=({onClick:e,zIndex:t})=>S.jsx(an,{asChild:!0,children:S.jsx(jt.div,{onClick:e,className:"fixed inset-0 z-[11] bg-slate-50/80 dark:bg-neutral-900/80",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},style:{zIndex:t}})});var sn=b.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{},direction:"bottom"}),lt=()=>b.useContext(sn);function ko(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}ko(`[vaul-drawer]{touch-action:none;transition:transform .5s cubic-bezier(.32,.72,0,1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top],.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left],.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top],[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height, 0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left],[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height, 0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]:after{content:"";position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]:after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]:after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]:after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]:after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay="true"]):not([data-state="closed"]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible="false"]){opacity:1}@keyframes fake-animation{}@media (hover: hover) and (pointer: fine){[vaul-drawer]{user-select:none}} +`);var Io=typeof window<"u"?i.useLayoutEffect:i.useEffect;function ot(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function _o(){return ut(/^Mac/)}function Lo(){return ut(/^iPhone/)}function Fo(){return ut(/^iPad/)||_o()&&navigator.maxTouchPoints>1}function ln(){return Lo()||Fo()}function ut(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Ke=typeof document<"u"&&window.visualViewport;function At(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function un(e){for(At(e)&&(e=e.parentElement);e&&!At(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var jo=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Oe=0,qe;function Wo(e={}){let{isDisabled:t}=e;Io(()=>{if(!t)return Oe++,Oe===1&&(ln()?qe=Bo():qe=Uo()),()=>{Oe--,Oe===0&&qe()}},[t])}function Uo(){return ot(dn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`))}function Bo(){let e,t=0,n=l=>{e=un(l.target),!(e===document.documentElement&&e===document.body)&&(t=l.changedTouches[0].pageY)},r=l=>{if(!e||e===document.documentElement||e===document.body){l.preventDefault();return}let f=l.changedTouches[0].pageY,v=e.scrollTop,x=e.scrollHeight-e.clientHeight;x!==0&&((v<=0&&f>t||v>=x&&f<t)&&l.preventDefault(),t=f)},o=l=>{let f=l.target;at(f)&&f!==document.activeElement&&(l.preventDefault(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""}))},a=l=>{let f=l.target;at(f)&&(f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",Ke&&(Ke.height<window.innerHeight?requestAnimationFrame(()=>{Nt(f)}):Ke.addEventListener("resize",()=>Nt(f),{once:!0}))}))},s=()=>{window.scrollTo(0,0)},c=window.pageXOffset,d=window.pageYOffset,m=ot(dn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let p=ot(pe(document,"touchstart",n,{passive:!1,capture:!0}),pe(document,"touchmove",r,{passive:!1,capture:!0}),pe(document,"touchend",o,{passive:!1,capture:!0}),pe(document,"focus",a,!0),pe(window,"scroll",s));return()=>{m(),p(),window.scrollTo(c,d)}}function dn(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function pe(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Nt(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=un(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom,s=n.getBoundingClientRect().bottom;a>s&&(n.scrollTop+=o-r)}e=n.parentElement}}function at(e){return e instanceof HTMLInputElement&&!jo.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Ho(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function zo(...e){return t=>e.forEach(n=>Ho(n,t))}function fn(...e){return i.useCallback(zo(...e),e)}var X=null;function Vo({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o}){let[a,s]=b.useState(typeof window<"u"?window.location.href:""),c=b.useRef(0),d=b.useCallback(()=>{if(X===null&&e){X={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:p,innerHeight:l}=window;document.body.style.setProperty("position","fixed","important"),document.body.style.top=`${-c.current}px`,document.body.style.left=`${-p}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>requestAnimationFrame(()=>{let f=l-window.innerHeight;f&&c.current>=l&&(document.body.style.top=`${-(c.current+f)}px`)}),300)}},[e]),m=b.useCallback(()=>{if(X!==null){let p=-parseInt(document.body.style.top,10),l=-parseInt(document.body.style.left,10);document.body.style.position=X.position,document.body.style.top=X.top,document.body.style.left=X.left,document.body.style.height=X.height,document.body.style.right="unset",requestAnimationFrame(()=>{if(o&&a!==window.location.href){s(window.location.href);return}window.scrollTo(l,p)}),X=null}},[a]);return b.useEffect(()=>{function p(){c.current=window.scrollY}return p(),window.addEventListener("scroll",p),()=>{window.removeEventListener("scroll",p)}},[]),b.useEffect(()=>{n||!r||(e?(d(),t||setTimeout(()=>{m()},500)):m())},[e,r,a,t,n,d,m]),{restorePositionSetting:m}}var vn=new WeakMap;function M(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&vn.set(e,r)}function De(e,t){if(!e||!(e instanceof HTMLElement))return;let n=vn.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}var F=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Te(e,t){let n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform,o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[F(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[F(t)?5:4]):null)}function Yo(e){return 8*(Math.log(e+1)-2)}var N={DURATION:.5,EASE:[.32,.72,0,1]},mn=.4;function pn(e){let t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Xo({defaultProp:e,onChange:t}){let n=b.useState(e),[r]=n,o=b.useRef(r),a=pn(t);return b.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function Ko({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=Xo({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:r,c=pn(n),d=b.useCallback(m=>{if(a){let p=typeof m=="function"?m(e):m;p!==e&&c(p)}else o(m)},[a,e,o,c]);return[s,d]}function qo({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:s,direction:c="bottom"}){let[d,m]=Ko({prop:e,defaultProp:n?.[0],onChange:t}),p=b.useMemo(()=>d===n?.[n.length-1]||null,[n,d]),l=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===d||!n,f=b.useMemo(()=>n?.findIndex(w=>w===d),[n,d]),v=b.useMemo(()=>{var w;return(w=n?.map(g=>{let $=typeof window<"u",T=typeof g=="string",k=0;if(T&&(k=parseInt(g,10)),F(c)){let _=T?k:$?g*window.innerHeight:0;return $?c==="bottom"?window.innerHeight-_:-window.innerHeight+_:_}let P=T?k:$?g*window.innerWidth:0;return $?c==="right"?window.innerWidth-P:-window.innerWidth+P:P}))!=null?w:[]},[n]),x=b.useMemo(()=>f!==null?v?.[f]:null,[v,f]),u=b.useCallback(w=>{var g;let $=(g=v?.findIndex(T=>T===w))!=null?g:null;s($),M(r.current,{transition:`transform ${N.DURATION}s cubic-bezier(${N.EASE.join(",")})`,transform:F(c)?`translate3d(0, ${w}px, 0)`:`translate3d(${w}px, 0, 0)`}),v&&$!==v.length-1&&$!==a?M(o.current,{transition:`opacity ${N.DURATION}s cubic-bezier(${N.EASE.join(",")})`,opacity:"0"}):M(o.current,{transition:`opacity ${N.DURATION}s cubic-bezier(${N.EASE.join(",")})`,opacity:"1"}),m($!==null?n?.[$]:null)},[r.current,n,v,a,o,m]);b.useEffect(()=>{var w;if(e){let g=(w=n?.findIndex($=>$===e))!=null?w:-1;v&&g!==-1&&typeof v[g]=="number"&&u(v[g])}},[e,n,v,u]);function y({draggedDistance:w,closeDrawer:g,velocity:$,dismissible:T}){if(a===void 0)return;let k=c==="bottom"||c==="right"?(x??0)-w:(x??0)+w,P=f===a-1,_=f===0,W=w>0;if(P&&M(o.current,{transition:`opacity ${N.DURATION}s cubic-bezier(${N.EASE.join(",")})`}),$>2&&!W){T?g():u(v[0]);return}if($>2&&W&&v&&n){u(v[n.length-1]);return}let B=v?.reduce((H,fe)=>typeof H!="number"||typeof fe!="number"?H:Math.abs(fe-k)<Math.abs(H-k)?fe:H),de=F(c)?window.innerHeight:window.innerWidth;if($>mn&&Math.abs(w)<de*.4){let H=W?1:-1;if(H>0&&p){u(v[n.length-1]);return}if(_&&H<0&&T&&g(),f===null)return;u(v[f+H]);return}u(B)}function h({draggedDistance:w}){if(x===null)return;let g=c==="bottom"||c==="right"?x-w:x+w;(c==="bottom"||c==="right")&&g<v[v.length-1]||(c==="top"||c==="left")&&g>v[v.length-1]||M(r.current,{transform:F(c)?`translate3d(0, ${g}px, 0)`:`translate3d(${g}px, 0, 0)`})}function D(w,g){if(!n||typeof f!="number"||!v||a===void 0)return null;let $=f===a-1;if(f>=a&&g)return 0;if($&&!g)return 1;if(!l&&!$)return null;let T=$?f+1:f-1,k=$?v[T]-v[T-1]:v[T+1]-v[T],P=w/Math.abs(k);return $?1-P:P}return{isLastSnapPoint:p,activeSnapPoint:d,shouldFade:l,getPercentageDragged:D,setActiveSnapPoint:m,activeSnapPointIndex:f,onRelease:y,onDrag:h,snapPointsOffset:v}}var Zo=.25,Go=100,Mt=8,J=16,kt=26,It="vaul-dragging";function hn({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:a,snapPoints:s,nested:c=!1,closeThreshold:d=Zo,scrollLockTimeout:m=Go,dismissible:p=!0,fadeFromIndex:l=s&&s.length-1,activeSnapPoint:f,setActiveSnapPoint:v,fixed:x,modal:u=!0,onClose:y,direction:h="bottom",preventScrollRestoration:D=!0}){var w;let[g=!1,$]=b.useState(!1),[T,k]=b.useState(!1),[P,_]=b.useState(!1),[W,B]=b.useState(!1),[de,H]=b.useState(!1),[fe,dt]=b.useState(!1),G=b.useRef(null),ge=b.useRef(null),Ie=b.useRef(null),ft=b.useRef(null),be=b.useRef(null),$e=b.useRef(!1),_e=b.useRef(null),Le=b.useRef(0),ne=b.useRef(!1),vt=b.useRef(0),C=b.useRef(null),mt=b.useRef(((w=C.current)==null?void 0:w.getBoundingClientRect().height)||0),Fe=b.useRef(0),yn=b.useCallback(E=>{s&&E===me.length-1&&(ge.current=new Date)},[]),{activeSnapPoint:wn,activeSnapPointIndex:ve,setActiveSnapPoint:pt,onRelease:En,snapPointsOffset:me,onDrag:xn,shouldFade:ht,getPercentageDragged:Cn}=qo({snapPoints:s,activeSnapPointProp:f,setActiveSnapPointProp:v,drawerRef:C,fadeFromIndex:l,overlayRef:G,onSnapPointChange:yn,direction:h});Wo({isDisabled:!g||de||!u||fe||!T});let{restorePositionSetting:Sn}=Vo({isOpen:g,modal:u,nested:c,hasBeenOpened:T,preventScrollRestoration:D});function re(){return(window.innerWidth-kt)/window.innerWidth}function Pn(E){var R;!p&&!s||C.current&&!C.current.contains(E.target)||(mt.current=((R=C.current)==null?void 0:R.getBoundingClientRect().height)||0,H(!0),Ie.current=new Date,ln()&&window.addEventListener("touchend",()=>$e.current=!1,{once:!0}),E.target.setPointerCapture(E.pointerId),Le.current=F(h)?E.screenY:E.screenX)}function gt(E,R){var A;let O=E,I=(A=window.getSelection())==null?void 0:A.toString(),L=C.current?Te(C.current,h):null,U=new Date;if(O.hasAttribute("data-vaul-no-drag"))return!1;if(h==="right"||h==="left")return!0;if(ge.current&&U.getTime()-ge.current.getTime()<500)return!1;if(L!==null&&(h==="bottom"?L>0:L<0))return!0;if(I&&I.length>0)return!1;if(be.current&&U.getTime()-be.current.getTime()<m&&L===0||R)return be.current=U,!1;for(;O;){if(O.scrollHeight>O.clientHeight){if(O.scrollTop!==0)return be.current=new Date,!1;if(O.getAttribute("role")==="dialog")return!0}O=O.parentNode}return!0}function Rn(E){if(C.current&&de){let R=h==="bottom"||h==="right"?1:-1,A=(Le.current-(F(h)?E.screenY:E.screenX))*R,O=A>0;if(s&&ve===0&&!p||!$e.current&&!gt(E.target,O))return;if(C.current.classList.add(It),$e.current=!0,M(C.current,{transition:"none"}),M(G.current,{transition:"none"}),s&&xn({draggedDistance:A}),O&&!s){let V=Yo(A),Ee=Math.min(V*-1,0)*R;M(C.current,{transform:F(h)?`translate3d(0, ${Ee}px, 0)`:`translate3d(${Ee}px, 0, 0)`});return}let I=Math.abs(A),L=document.querySelector("[vaul-drawer-wrapper]"),U=I/mt.current,we=Cn(I,O);we!==null&&(U=we);let Q=1-U;if((ht||l&&ve===l-1)&&(o?.(E,U),M(G.current,{opacity:`${Q}`,transition:"none"},!0)),L&&G.current&&r){let V=Math.min(re()+U*(1-re()),1),Ee=8-U*8,$t=Math.max(0,14-U*14);M(L,{borderRadius:`${Ee}px`,transform:F(h)?`scale(${V}) translate3d(0, ${$t}px, 0)`:`scale(${V}) translate3d(${$t}px, 0, 0)`,transition:"none"},!0)}if(!s){let V=I*R;M(C.current,{transform:F(h)?`translate3d(0, ${V}px, 0)`:`translate3d(${V}px, 0, 0)`})}}}b.useEffect(()=>()=>{ye(!1),Sn()},[]),b.useEffect(()=>{var E;function R(){var A;if(!C.current)return;let O=document.activeElement;if(at(O)||ne.current){let I=((A=window.visualViewport)==null?void 0:A.height)||0,L=window.innerHeight-I,U=C.current.getBoundingClientRect().height||0;Fe.current||(Fe.current=U);let we=C.current.getBoundingClientRect().top;if(Math.abs(vt.current-L)>60&&(ne.current=!ne.current),s&&s.length>0&&me&&ve){let Q=me[ve]||0;L+=Q}if(vt.current=L,U>I||ne.current){let Q=C.current.getBoundingClientRect().height,V=Q;Q>I&&(V=I-kt),x?C.current.style.height=`${Q-Math.max(L,0)}px`:C.current.style.height=`${Math.max(V,I-we)}px`}else C.current.style.height=`${Fe.current}px`;s&&s.length>0&&!ne.current?C.current.style.bottom="0px":C.current.style.bottom=`${Math.max(L,0)}px`}}return(E=window.visualViewport)==null||E.addEventListener("resize",R),()=>{var A;return(A=window.visualViewport)==null?void 0:A.removeEventListener("resize",R)}},[ve,s,me]);function oe(){C.current&&(y?.(),M(C.current,{transform:F(h)?`translate3d(0, ${h==="bottom"?"100%":"-100%"}, 0)`:`translate3d(${h==="right"?"100%":"-100%"}, 0, 0)`,transition:`transform ${N.DURATION}s cubic-bezier(${N.EASE.join(",")})`}),M(G.current,{opacity:"0",transition:`opacity ${N.DURATION}s cubic-bezier(${N.EASE.join(",")})`}),ye(!1),setTimeout(()=>{_(!1),$(!1)},300),setTimeout(()=>{s&&pt(s[0])},N.DURATION*1e3))}b.useEffect(()=>{if(!g&&r){let E=setTimeout(()=>{De(document.body)},200);return()=>clearTimeout(E)}},[g,r]),b.useEffect(()=>{e?($(!0),k(!0)):oe()},[e]),b.useEffect(()=>{W&&t?.(g)},[g]),b.useEffect(()=>{B(!0)},[]);function bt(){if(!C.current)return;let E=document.querySelector("[vaul-drawer-wrapper]"),R=Te(C.current,h);M(C.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${N.DURATION}s cubic-bezier(${N.EASE.join(",")})`}),M(G.current,{transition:`opacity ${N.DURATION}s cubic-bezier(${N.EASE.join(",")})`,opacity:"1"}),r&&R&&R>0&&g&&M(E,{borderRadius:`${Mt}px`,overflow:"hidden",...F(h)?{transform:`scale(${re()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${re()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${N.DURATION}s`,transitionTimingFunction:`cubic-bezier(${N.EASE.join(",")})`},!0)}function On(E){var R;if(!de||!C.current)return;C.current.classList.remove(It),$e.current=!1,H(!1),ft.current=new Date;let A=Te(C.current,h);if(!gt(E.target,!1)||!A||Number.isNaN(A)||Ie.current===null)return;let O=ft.current.getTime()-Ie.current.getTime(),I=Le.current-(F(h)?E.screenY:E.screenX),L=Math.abs(I)/O;if(L>.05&&(dt(!0),setTimeout(()=>{dt(!1)},200)),s){En({draggedDistance:I*(h==="bottom"||h==="right"?1:-1),closeDrawer:oe,velocity:L,dismissible:p}),a?.(E,!0);return}if(h==="bottom"||h==="right"?I>0:I<0){bt(),a?.(E,!0);return}if(L>mn){oe(),a?.(E,!1);return}let U=Math.min((R=C.current.getBoundingClientRect().height)!=null?R:0,window.innerHeight);if(A>=U*d){oe(),a?.(E,!1);return}a?.(E,!0),bt()}b.useEffect(()=>{g&&(M(document.documentElement,{scrollBehavior:"auto"}),ge.current=new Date,ye(!0))},[g]),b.useEffect(()=>{var E;if(C.current&&P){let R=(E=C?.current)==null?void 0:E.querySelectorAll("*");R?.forEach(A=>{let O=A;(O.scrollHeight>O.clientHeight||O.scrollWidth>O.clientWidth)&&O.classList.add("vaul-scrollable")})}},[P]);function ye(E){let R=document.querySelector("[vaul-drawer-wrapper]");!R||!r||(E?(M(document.body,{background:document.body.style.backgroundColor||document.body.style.background}),M(document.body,{background:"black"},!0),M(R,{borderRadius:`${Mt}px`,overflow:"hidden",...F(h)?{transform:`scale(${re()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${re()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${N.DURATION}s`,transitionTimingFunction:`cubic-bezier(${N.EASE.join(",")})`})):(De(R,"overflow"),De(R,"transform"),De(R,"borderRadius"),M(R,{transitionProperty:"transform, border-radius",transitionDuration:`${N.DURATION}s`,transitionTimingFunction:`cubic-bezier(${N.EASE.join(",")})`})))}function Dn(E){let R=E?(window.innerWidth-J)/window.innerWidth:1,A=E?-J:0;_e.current&&window.clearTimeout(_e.current),M(C.current,{transition:`transform ${N.DURATION}s cubic-bezier(${N.EASE.join(",")})`,transform:`scale(${R}) translate3d(0, ${A}px, 0)`}),!E&&C.current&&(_e.current=setTimeout(()=>{let O=Te(C.current,h);M(C.current,{transition:"none",transform:F(h)?`translate3d(0, ${O}px, 0)`:`translate3d(${O}px, 0, 0)`})},500))}function Tn(E,R){if(R<0)return;let A=F(h)?window.innerHeight:window.innerWidth,O=(A-J)/A,I=O+R*(1-O),L=-J+R*J;M(C.current,{transform:F(h)?`scale(${I}) translate3d(0, ${L}px, 0)`:`scale(${I}) translate3d(${L}px, 0, 0)`,transition:"none"})}function An(E,R){let A=F(h)?window.innerHeight:window.innerWidth,O=R?(A-J)/A:1,I=R?-J:0;R&&M(C.current,{transition:`transform ${N.DURATION}s cubic-bezier(${N.EASE.join(",")})`,transform:F(h)?`scale(${O}) translate3d(0, ${I}px, 0)`:`scale(${O}) translate3d(${I}px, 0, 0)`})}return b.createElement(tt,{modal:u,onOpenChange:E=>{if(e!==void 0){t?.(E);return}E?(k(!0),$(E)):oe()},open:g},b.createElement(sn.Provider,{value:{visible:P,activeSnapPoint:wn,snapPoints:s,setActiveSnapPoint:pt,drawerRef:C,overlayRef:G,scaleBackground:ye,onOpenChange:t,onPress:Pn,setVisible:_,onRelease:On,onDrag:Rn,dismissible:p,isOpen:g,shouldFade:ht,closeDrawer:oe,onNestedDrag:Tn,onNestedOpenChange:Dn,onNestedRelease:An,keyboardIsOpen:ne,openProp:e,modal:u,snapPointsOffset:me,direction:h}},n))}var gn=b.forwardRef(function({children:e,...t},n){let{overlayRef:r,snapPoints:o,onRelease:a,shouldFade:s,isOpen:c,visible:d}=lt(),m=fn(n,r),p=o&&o.length>0;return b.createElement(an,{onMouseUp:a,ref:m,"vaul-drawer-visible":d?"true":"false","vaul-overlay":"","vaul-snap-points":c&&p?"true":"false","vaul-snap-points-overlay":c&&s?"true":"false",...t})});gn.displayName="Drawer.Overlay";var bn=b.forwardRef(function({onOpenAutoFocus:e,onPointerDownOutside:t,onAnimationEnd:n,style:r,...o},a){let{drawerRef:s,onPress:c,onRelease:d,onDrag:m,dismissible:p,keyboardIsOpen:l,snapPointsOffset:f,visible:v,closeDrawer:x,modal:u,openProp:y,onOpenChange:h,setVisible:D,direction:w}=lt(),g=fn(a,s);return b.useEffect(()=>{D(!0)},[]),b.createElement(rt,{onOpenAutoFocus:$=>{var T;e?e($):($.preventDefault(),(T=s.current)==null||T.focus())},onPointerDown:c,onPointerDownOutside:$=>{if(t?.($),!u||$.defaultPrevented){$.preventDefault();return}l.current&&(l.current=!1),$.preventDefault(),h?.(!1),!(!p||y!==void 0)&&x()},onPointerMove:m,onPointerUp:d,ref:g,style:f&&f.length>0?{"--snap-point-height":`${f[0]}px`,...r}:r,...o,"vaul-drawer":"","vaul-drawer-direction":w,"vaul-drawer-visible":v?"true":"false"})});bn.displayName="Drawer.Content";function Qo({onDrag:e,onOpenChange:t,...n}){let{onNestedDrag:r,onNestedOpenChange:o,onNestedRelease:a}=lt();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return b.createElement(hn,{nested:!0,onClose:()=>{o(!1)},onDrag:(s,c)=>{r(s,c),e?.(s,c)},onOpenChange:s=>{s&&o(s),t?.(s)},onRelease:a,...n})}var se={Root:hn,NestedRoot:Qo,Content:bn,Overlay:gn,Trigger:To,Portal:nt,Close:No,Title:cn,Description:Ao};const it=Ft([]),Jo=e=>{const{content:t,children:n,zIndex:r=998,title:o,dismissible:a=!0,defaultOpen:s}=e,[c,d]=i.useState(e.open??s),m=i.useMemo(()=>{const y={onOpenChange:d};return c!==void 0&&(y.open=c),e.onOpenChange!==void 0&&(y.onOpenChange=h=>{d(h),e.onOpenChange?.(h)}),y},[e,c,d]);i.useEffect(()=>{e.open!==void 0&&d(e.open)},[e.open]);const[p,l]=i.useState(),f=kn();i.useEffect(()=>{const y=p;if(y)return f.set(it,h=>h.concat(y)),()=>{f.set(it,h=>h.filter(D=>D!==y))}},[p,f]);const v=se.Root,x=r-1,u=r;return S.jsxs(v,{dismissible:a,...m,children:[S.jsx(se.Trigger,{asChild:!0,children:n}),S.jsxs(se.Portal,{children:[S.jsxs(se.Content,{style:{zIndex:u},className:"fixed bottom-0 left-0 right-0 mt-24 flex max-h-[95vh] flex-col rounded-t-[10px] bg-base-100 p-4",children:[a&&S.jsx("div",{className:"mx-auto mb-8 h-1.5 w-12 flex-shrink-0 rounded-full bg-zinc-300 dark:bg-neutral-800"}),o&&S.jsx(se.Title,{className:"-mt-4 mb-4 flex justify-center text-lg font-medium",children:o}),b.isValidElement(t)?t:typeof t=="function"?b.createElement(t):null,S.jsx("div",{ref:l})]}),S.jsx(se.Overlay,{className:"fixed inset-0 bg-neutral-800/40",style:{zIndex:x}})]})]})},ea={scale:1,opacity:1},_t={scale:.96,opacity:0},ta={...Bn},na=i.memo(function({item:t,index:n,onClose:r,children:o}){const a=In(ee),s=zn(()=>{a(W=>W.filter(B=>B.id!==t.id)),r?.(!1)}),c=i.useCallback(W=>{W||s()},[s]),{CustomModalComponent:d,modalClassName:m,content:p,title:l,clickOutsideToDismiss:f,modalContainerClassName:v,wrapper:x=i.Fragment,max:u}=t,y=i.useMemo(()=>({zIndex:99+n}),[n]),h=i.useCallback(W=>{je(W),s()},[s]),D=Ln(),w=Wn(),g=qn();i.useEffect(()=>{D||g.start(ea)},[g,D]);const $=i.useCallback(()=>{g.start({scale:1.05,transition:{duration:.06}}).then(()=>{w.current||g.start({scale:1})})},[g]),T=i.useRef(null),k=i.useMemo(()=>({dismiss:s}),[s]),P=i.useMemo(()=>({...k,ref:T}),[k]),_=S.jsx(Wt.Provider,{value:P,children:o||i.createElement(p,k)});if(D){const W=le.get(it).length;return S.jsx(x,{children:S.jsx(Jo,{title:l,defaultOpen:!0,zIndex:1e3+W,onOpenChange:B=>{B||setTimeout(()=>{s()},1e3)},content:_})})}return d?S.jsx(x,{children:S.jsx(tt,{open:!0,onOpenChange:c,children:S.jsxs(nt,{children:[S.jsx(Tt,{zIndex:20}),S.jsx(rt,{asChild:!0,children:S.jsx("div",{className:We("fixed inset-0 z-[20] overflow-auto",v),onClick:f?h:void 0,children:S.jsx("div",{className:"contents",onClick:je,children:S.jsx(d,{children:_})})})})]})})}):S.jsx(x,{children:S.jsx(tt,{open:!0,onOpenChange:c,children:S.jsxs(nt,{children:[S.jsx(Tt,{zIndex:20}),S.jsx(rt,{asChild:!0,children:S.jsx("div",{className:We("fixed inset-0 z-[20] flex center",v),onClick:f?h:$,children:S.jsxs(jt.div,{style:y,exit:_t,initial:_t,animate:g,transition:ta,className:We("relative flex flex-col overflow-hidden rounded-lg","bg-slate-50/80 dark:bg-neutral-900/80","p-2 shadow-2xl shadow-stone-300 backdrop-blur-sm dark:shadow-stone-800",u?"h-[90vh] w-[90vw]":"max-h-[70vh] min-w-[300px] max-w-[90vw] lg:max-h-[calc(100vh-20rem)] lg:max-w-[70vw]","border border-slate-200 dark:border-neutral-800",m),onClick:je,children:[S.jsx(cn,{className:"flex-shrink-0 px-4 py-2 text-lg font-medium",children:l}),S.jsx(Un,{className:"my-2 flex-shrink-0 border-slate-200 opacity-80 dark:border-neutral-800"}),S.jsx("div",{className:"min-h-0 flex-shrink flex-grow overflow-auto px-4 py-2",children:_}),S.jsx(on,{onClick:s,className:"absolute right-0 top-0 z-[9] p-5",children:S.jsx(Mo,{})})]})})})]})})})}),ra=()=>{const e=Gn();i.useEffect(()=>{$n.dismissAll()},[e])},ya=e=>{const t=i.useId(),n=i.useRef(0),{wrapper:r}=e||{};return{present:i.useCallback(o=>{const a=`${t}-${n.current++}`;return le.set(ee,s=>{const c={...o,id:o.id??a,wrapper:r};return Zn[c.id]=c,s.concat(c)}),()=>{le.set(ee,s=>s.filter(c=>c.id!==a))}},[t]),...$n}},$n={dismiss(e){le.set(ee,t=>t.filter(n=>n.id!==e))},dismissTop(){le.set(ee,e=>e.slice(0,-1))},dismissAll(){le.set(ee,[])}},wa=({children:e})=>S.jsxs(S.Fragment,{children:[e,S.jsx(oa,{})]}),oa=()=>{const e=_n(ee);return ra(),S.jsx(Hn,{children:e.map((t,n)=>S.jsx(na,{item:t,index:n},t.id))})};export{Z as $,Tt as D,wa as M,j as _,ya as a,ba as b,tt as c,$o as d,Eo as e,ga as f,Gn as g,qn as u}; diff --git a/assets/quadrantDiagram-0332be45-5DdBbv76.js b/assets/quadrantDiagram-0332be45-5DdBbv76.js new file mode 100644 index 00000000000..bdf0508e14a --- /dev/null +++ b/assets/quadrantDiagram-0332be45-5DdBbv76.js @@ -0,0 +1,7 @@ +import{x as vt,c as yt,y as D,l as lt,s as Lt,g as Ct,o as zt,p as bt,a as Et,b as Dt,q as It,h as gt,i as Bt,d as wt}from"./index.demo-_07sssxB.js";import"./owner-4YVbz2PN.js";import{l as _t}from"./linear-aaS3CbNq.js";import"./index-qegmBwH1.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";import"./init-Hi12RPRh.js";var pt=function(){var e=function(K,n,s,o){for(s=s||{},o=K.length;o--;s[K[o]]=n);return s},r=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],q=[1,32],_=[1,33],T=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,s,o,l,m,a,et){var u=a.length-1;switch(m){case 12:this.$=a[u].trim(),l.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),l.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),l.setAccDescription(this.$);break;case 16:l.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:l.addPoint(a[u-3],a[u-1],a[u]);break;case 18:l.setXAxisLeftText(a[u-2]),l.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",l.setXAxisLeftText(a[u-1]);break;case 20:l.setXAxisLeftText(a[u]);break;case 21:l.setYAxisBottomText(a[u-2]),l.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",l.setYAxisBottomText(a[u-1]);break;case 23:l.setYAxisBottomText(a[u]);break;case 24:l.setQuadrant1Text(a[u]);break;case 25:l.setQuadrant2Text(a[u]);break;case 26:l.setQuadrant3Text(a[u]);break;case 27:l.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:r,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:r,6:h,32:x,33:f,34:d},{3:9,4:2,5:r,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:q,41:_,42:T,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,s){if(s.recoverable)this.trace(n);else{var o=new Error(n);throw o.hash=s,o}},parse:function(n){var s=this,o=[0],l=[],m=[null],a=[],et=this.table,u="",rt=0,mt=0,St=2,qt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=l.pop()||E.lex()||qt,typeof j!="number"&&(j instanceof Array&&(l=j,j=l.pop()),j=s.symbols_[j]||j),j}for(var W,J,H,xt,tt={},st,$,Tt,ot;;){if(J=o[o.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";ot=[];for(st in et[J])this.terminals_[st]&&st>St&&ot.push("'"+this.terminals_[st]+"'");E.showPosition?ft="Parse error on line "+(rt+1)+`: +`+E.showPosition()+` +Expecting `+ot.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ft="Parse error on line "+(rt+1)+": Unexpected "+(W==qt?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(ft,{text:E.match,token:this.terminals_[W]||W,line:E.yylineno,loc:ut,expected:ot})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+W);switch(H[0]){case 1:o.push(W),m.push(E.yytext),a.push(E.yylloc),o.push(H[1]),W=null,mt=E.yyleng,u=E.yytext,rt=E.yylineno,ut=E.yylloc;break;case 2:if($=this.productions_[H[1]][1],tt.$=m[m.length-$],tt._$={first_line:a[a.length-($||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-($||1)].first_column,last_column:a[a.length-1].last_column},Ft&&(tt._$.range=[a[a.length-($||1)].range[0],a[a.length-1].range[1]]),xt=this.performAction.apply(tt,[u,mt,rt,Z.yy,H[1],m,a].concat(kt)),typeof xt<"u")return xt;$&&(o=o.slice(0,-1*$*2),m=m.slice(0,-1*$),a=a.slice(0,-1*$)),o.push(this.productions_[H[1]][0]),m.push(tt.$),a.push(tt._$),Tt=et[o[o.length-2]][o[o.length-1]],o.push(Tt);break;case 3:return!0}}return!0}},At=function(){var K={EOF:1,parseError:function(s,o){if(this.yy.parser)this.yy.parser.parseError(s,o);else throw new Error(s)},setInput:function(n,s){return this.yy=s||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var s=n.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var s=n.length,o=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var m=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===l.length?this.yylloc.first_column:0)+l[l.length-o.length].length-o[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),s=new Array(n.length+1).join("-");return n+this.upcomingInput()+` +`+s+"^"},test_match:function(n,s){var o,l,m;if(this.options.backtrack_lexer&&(m={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(m.yylloc.range=this.yylloc.range.slice(0))),l=n[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],o=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var a in m)this[a]=m[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,s,o,l;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),a=0;a<m.length;a++)if(o=this._input.match(this.rules[m[a]]),o&&(!s||o[0].length>s[0].length)){if(s=o,l=a,this.options.backtrack_lexer){if(n=this.test_match(o,m[a]),n!==!1)return n;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(n=this.test_match(s,m[l]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return s||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(s,o,l,m){switch(l){case 0:break;case 1:break;case 2:return 32;case 3:break;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 22:this.popState();break;case 23:this.begin("string");break;case 24:this.popState();break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 28:this.popState();break;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:return 46;case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return K}();ht.lexer=At;function ct(){this.yy={}}return ct.prototype=ht,ht.Parser=ct,new ct}();pt.parser=pt;const Rt=pt,R=vt();class Vt{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var r,h,x,f,d,c,g,i,y,p,B,N,V,I,b,M,X,C;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((r=D.quadrantChart)==null?void 0:r.chartWidth)||500,chartWidth:((h=D.quadrantChart)==null?void 0:h.chartHeight)||500,titlePadding:((x=D.quadrantChart)==null?void 0:x.titlePadding)||10,titleFontSize:((f=D.quadrantChart)==null?void 0:f.titleFontSize)||20,quadrantPadding:((d=D.quadrantChart)==null?void 0:d.quadrantPadding)||5,xAxisLabelPadding:((c=D.quadrantChart)==null?void 0:c.xAxisLabelPadding)||5,yAxisLabelPadding:((g=D.quadrantChart)==null?void 0:g.yAxisLabelPadding)||5,xAxisLabelFontSize:((i=D.quadrantChart)==null?void 0:i.xAxisLabelFontSize)||16,yAxisLabelFontSize:((y=D.quadrantChart)==null?void 0:y.yAxisLabelFontSize)||16,quadrantLabelFontSize:((p=D.quadrantChart)==null?void 0:p.quadrantLabelFontSize)||16,quadrantTextTopPadding:((B=D.quadrantChart)==null?void 0:B.quadrantTextTopPadding)||5,pointTextPadding:((N=D.quadrantChart)==null?void 0:N.pointTextPadding)||5,pointLabelFontSize:((V=D.quadrantChart)==null?void 0:V.pointLabelFontSize)||12,pointRadius:((I=D.quadrantChart)==null?void 0:I.pointRadius)||5,xAxisPosition:((b=D.quadrantChart)==null?void 0:b.xAxisPosition)||"top",yAxisPosition:((M=D.quadrantChart)==null?void 0:M.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((X=D.quadrantChart)==null?void 0:X.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((C=D.quadrantChart)==null?void 0:C.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:R.quadrant1Fill,quadrant2Fill:R.quadrant2Fill,quadrant3Fill:R.quadrant3Fill,quadrant4Fill:R.quadrant4Fill,quadrant1TextFill:R.quadrant1TextFill,quadrant2TextFill:R.quadrant2TextFill,quadrant3TextFill:R.quadrant3TextFill,quadrant4TextFill:R.quadrant4TextFill,quadrantPointFill:R.quadrantPointFill,quadrantPointTextFill:R.quadrantPointTextFill,quadrantXAxisTextFill:R.quadrantXAxisTextFill,quadrantYAxisTextFill:R.quadrantYAxisTextFill,quadrantTitleFill:R.quadrantTitleFill,quadrantInternalBorderStrokeFill:R.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:R.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),lt.info("clear called")}setData(r){this.data={...this.data,...r}}addPoints(r){this.data.points=[...r,...this.data.points]}setConfig(r){lt.trace("setConfig called with: ",r),this.config={...this.config,...r}}setThemeConfig(r){lt.trace("setThemeConfig called with: ",r),this.themeConfig={...this.themeConfig,...r}}calculateSpace(r,h,x,f){const d=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,c={top:r==="top"&&h?d:0,bottom:r==="bottom"&&h?d:0},g=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,i={left:this.config.yAxisPosition==="left"&&x?g:0,right:this.config.yAxisPosition==="right"&&x?g:0},y=this.config.titleFontSize+this.config.titlePadding*2,p={top:f?y:0},B=this.config.quadrantPadding+i.left,N=this.config.quadrantPadding+c.top+p.top,V=this.config.chartWidth-this.config.quadrantPadding*2-i.left-i.right,I=this.config.chartHeight-this.config.quadrantPadding*2-c.top-c.bottom-p.top,b=V/2,M=I/2;return{xAxisSpace:c,yAxisSpace:i,titleSpace:p,quadrantSpace:{quadrantLeft:B,quadrantTop:N,quadrantWidth:V,quadrantHalfWidth:b,quadrantHeight:I,quadrantHalfHeight:M}}}getAxisLabels(r,h,x,f){const{quadrantSpace:d,titleSpace:c}=f,{quadrantHalfHeight:g,quadrantHeight:i,quadrantLeft:y,quadrantHalfWidth:p,quadrantTop:B,quadrantWidth:N}=d,V=!!this.data.xAxisRightText,I=!!this.data.yAxisTopText,b=[];return this.data.xAxisLeftText&&h&&b.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:y+(V?p/2:0),y:r==="top"?this.config.xAxisLabelPadding+c.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:V?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&h&&b.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:y+p+(V?p/2:0),y:r==="top"?this.config.xAxisLabelPadding+c.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:V?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&x&&b.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+y+N+this.config.quadrantPadding,y:B+i-(I?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&x&&b.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+y+N+this.config.quadrantPadding,y:B+g-(I?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),b}getQuadrants(r){const{quadrantSpace:h}=r,{quadrantHalfHeight:x,quadrantLeft:f,quadrantHalfWidth:d,quadrantTop:c}=h,g=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+d,y:c,width:d,height:x,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:c,width:d,height:x,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:c+x,width:d,height:x,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+d,y:c+x,width:d,height:x,fill:this.themeConfig.quadrant4Fill}];for(const i of g)i.text.x=i.x+i.width/2,this.data.points.length===0?(i.text.y=i.y+i.height/2,i.text.horizontalPos="middle"):(i.text.y=i.y+this.config.quadrantTextTopPadding,i.text.horizontalPos="top");return g}getQuadrantPoints(r){const{quadrantSpace:h}=r,{quadrantHeight:x,quadrantLeft:f,quadrantTop:d,quadrantWidth:c}=h,g=_t().domain([0,1]).range([f,c+f]),i=_t().domain([0,1]).range([x+d,d]);return this.data.points.map(p=>({x:g(p.x),y:i(p.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:p.text,fill:this.themeConfig.quadrantPointTextFill,x:g(p.x),y:i(p.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}}))}getBorders(r){const h=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:x}=r,{quadrantHalfHeight:f,quadrantHeight:d,quadrantLeft:c,quadrantHalfWidth:g,quadrantTop:i,quadrantWidth:y}=x;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c-h,y1:i,x2:c+y+h,y2:i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c+y,y1:i+h,x2:c+y,y2:i+d-h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c-h,y1:i+d,x2:c+y+h,y2:i+d},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c,y1:i+h,x2:c,y2:i+d-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:c+g,y1:i+h,x2:c+g,y2:i+d-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:c+h,y1:i+f,x2:c+y-h,y2:i+f}]}getTitle(r){if(r)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const r=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),h=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),x=this.config.showTitle&&!!this.data.titleText,f=this.data.points.length>0?"bottom":this.config.xAxisPosition,d=this.calculateSpace(f,r,h,x);return{points:this.getQuadrantPoints(d),quadrants:this.getQuadrants(d),axisLabels:this.getAxisLabels(f,r,h,d),borderLines:this.getBorders(d),title:this.getTitle(x)}}}const Wt=yt();function G(e){return wt(e.trim(),Wt)}const w=new Vt;function Nt(e){w.setData({quadrant1Text:G(e.text)})}function Ut(e){w.setData({quadrant2Text:G(e.text)})}function Qt(e){w.setData({quadrant3Text:G(e.text)})}function Ht(e){w.setData({quadrant4Text:G(e.text)})}function Mt(e){w.setData({xAxisLeftText:G(e.text)})}function Xt(e){w.setData({xAxisRightText:G(e.text)})}function Ot(e){w.setData({yAxisTopText:G(e.text)})}function Yt(e){w.setData({yAxisBottomText:G(e.text)})}function $t(e,r,h){w.addPoints([{x:r,y:h,text:G(e.text)}])}function jt(e){w.setConfig({chartWidth:e})}function Gt(e){w.setConfig({chartHeight:e})}function Kt(){const e=yt(),{themeVariables:r,quadrantChart:h}=e;return h&&w.setConfig(h),w.setThemeConfig({quadrant1Fill:r.quadrant1Fill,quadrant2Fill:r.quadrant2Fill,quadrant3Fill:r.quadrant3Fill,quadrant4Fill:r.quadrant4Fill,quadrant1TextFill:r.quadrant1TextFill,quadrant2TextFill:r.quadrant2TextFill,quadrant3TextFill:r.quadrant3TextFill,quadrant4TextFill:r.quadrant4TextFill,quadrantPointFill:r.quadrantPointFill,quadrantPointTextFill:r.quadrantPointTextFill,quadrantXAxisTextFill:r.quadrantXAxisTextFill,quadrantYAxisTextFill:r.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:r.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:r.quadrantInternalBorderStrokeFill,quadrantTitleFill:r.quadrantTitleFill}),w.setData({titleText:bt()}),w.build()}const Zt=function(){w.clear(),It()},Jt={setWidth:jt,setHeight:Gt,setQuadrant1Text:Nt,setQuadrant2Text:Ut,setQuadrant3Text:Qt,setQuadrant4Text:Ht,setXAxisLeftText:Mt,setXAxisRightText:Xt,setYAxisTopText:Ot,setYAxisBottomText:Yt,addPoint:$t,getQuadrantData:Kt,clear:Zt,setAccTitle:Lt,getAccTitle:Ct,setDiagramTitle:zt,getDiagramTitle:bt,getAccDescription:Et,setAccDescription:Dt},te=(e,r,h,x)=>{var f,d,c;function g(t){return t==="top"?"hanging":"middle"}function i(t){return t==="left"?"start":"middle"}function y(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}const p=yt();lt.debug(`Rendering quadrant chart +`+e);const B=p.securityLevel;let N;B==="sandbox"&&(N=gt("#i"+r));const I=(B==="sandbox"?gt(N.nodes()[0].contentDocument.body):gt("body")).select(`[id="${r}"]`),b=I.append("g").attr("class","main"),M=((f=p.quadrantChart)==null?void 0:f.chartWidth)||500,X=((d=p.quadrantChart)==null?void 0:d.chartHeight)||500;Bt(I,X,M,((c=p.quadrantChart)==null?void 0:c.useMaxWidth)||!0),I.attr("viewBox","0 0 "+M+" "+X),x.db.setHeight(X),x.db.setWidth(M);const C=x.db.getQuadrantData(),it=b.append("g").attr("class","quadrants"),at=b.append("g").attr("class","border"),nt=b.append("g").attr("class","data-points"),U=b.append("g").attr("class","labels"),Q=b.append("g").attr("class","title");C.title&&Q.append("text").attr("x",0).attr("y",0).attr("fill",C.title.fill).attr("font-size",C.title.fontSize).attr("dominant-baseline",g(C.title.horizontalPos)).attr("text-anchor",i(C.title.verticalPos)).attr("transform",y(C.title)).text(C.title.text),C.borderLines&&at.selectAll("line").data(C.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth);const q=it.selectAll("g.quadrant").data(C.quadrants).enter().append("g").attr("class","quadrant");q.append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),q.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>g(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>y(t.text)).text(t=>t.text.text),U.selectAll("g.label").data(C.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>g(t.horizontalPos)).attr("text-anchor",t=>i(t.verticalPos)).attr("transform",t=>y(t));const T=nt.selectAll("g.data-point").data(C.points).enter().append("g").attr("class","data-point");T.append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill),T.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>g(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>y(t.text))},ee={draw:te},Ve={parser:Rt,db:Jt,renderer:ee,styles:()=>""};export{Ve as diagram}; diff --git a/assets/requirementDiagram-bf7890df-RlMVGrmI.js b/assets/requirementDiagram-bf7890df-RlMVGrmI.js new file mode 100644 index 00000000000..c741b7cf517 --- /dev/null +++ b/assets/requirementDiagram-bf7890df-RlMVGrmI.js @@ -0,0 +1,52 @@ +import{c as Tt,s as Ct,g as Ft,b as Mt,a as Dt,l as Nt,q as Pt,h as ot,i as Yt,j as kt}from"./index.demo-_07sssxB.js";import{G as Ut}from"./graph-4EnB4jqL.js";import{l as Bt}from"./layout-KoXfeBJF.js";import"./owner-4YVbz2PN.js";import{l as Qt}from"./line-abqtiQB-.js";import"./index-qegmBwH1.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";var ct=function(){var t=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},e=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],g=[1,23],m=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],dt=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pt=[1,47],ft=[1,48],yt=[1,49],_t=[1,50],gt=[1,51],Et=[1,52],mt=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],j=[1,69],z=[1,70],X=[1,67],J=[1,68],R=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],it={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:e,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:e,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},t(d,[2,6]),{3:12,4:2,6:e,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:m,34:A,35:T,36:N,44:v,62:k,63:x},t(d,[2,4]),t(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:m,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:m,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:m,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:m,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:m,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},t(F,[2,20]),t(F,[2,21]),t(F,[2,22]),t(F,[2,23]),t(F,[2,24]),t(F,[2,25]),t(dt,[2,49]),t(dt,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pt,56:ft,57:yt,58:_t,59:gt,60:Et,61:mt},{52:54,55:pt,56:ft,57:yt,58:_t,59:gt,60:Et,61:mt},{5:[1,55]},{5:[1,56]},{53:[1,57]},t(O,[2,40]),t(O,[2,41]),t(O,[2,42]),t(O,[2,43]),t(O,[2,44]),t(O,[2,45]),t(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},t(R,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},t(R,[2,19]),t(R,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:z,46:80,47:X,49:J},t(R,[2,37]),t(R,[2,38]),t(R,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},t(R,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},t(R,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:110,47:X,49:J},{5:j,30:z,46:111,47:X,49:J},t(R,[2,14]),t(R,[2,15]),t(R,[2,16]),t(R,[2,17]),t(R,[2,34]),t(R,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,Rt=0,Vt=2,It=1,qt=s.slice.call(arguments,1),E=Object.create(this.lexer),L={yy:{}};for(var nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,nt)&&(L.yy[nt]=this.yy[nt]);E.setInput(i,L.yy),L.yy.lexer=E,L.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var st=E.yylloc;s.push(st);var Ot=E.options&&E.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Lt(){var $;return $=r.pop()||E.lex()||It,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,at,Q={},tt,w,bt,et;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Lt()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var lt="";et=[];for(tt in W[C])this.terminals_[tt]&&tt>Vt&&et.push("'"+this.terminals_[tt]+"'");E.showPosition?lt="Parse error on line "+(Z+1)+`: +`+E.showPosition()+` +Expecting `+et.join(", ")+", got '"+(this.terminals_[I]||I)+"'":lt="Parse error on line "+(Z+1)+": Unexpected "+(I==It?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(lt,{text:E.match,token:this.terminals_[I]||I,line:E.yylineno,loc:st,expected:et})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+I);switch(S[0]){case 1:a.push(I),f.push(E.yytext),s.push(E.yylloc),a.push(S[1]),I=null,Rt=E.yyleng,_=E.yytext,Z=E.yylineno,st=E.yylloc;break;case 2:if(w=this.productions_[S[1]][1],Q.$=f[f.length-w],Q._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},Ot&&(Q._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),at=this.performAction.apply(Q,[_,Rt,Z,L.yy,S[1],f,s].concat(qt)),typeof at<"u")return at;w&&(a=a.slice(0,-1*w*2),f=f.slice(0,-1*w),s=s.slice(0,-1*w)),a.push(this.productions_[S[1]][0]),f.push(Q.$),s.push(Q._$),bt=W[a[a.length-2]][a[a.length-1]],a.push(bt);break;case 3:return!0}}return!0}},$t=function(){var V={EOF:1,parseError:function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},setInput:function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var n=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+` +`+n+"^"},test_match:function(i,n){var a,r,f;if(this.options.backtrack_lexer&&(f={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(f.yylloc.range=this.yylloc.range.slice(0))),r=i[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],a=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var s in f)this[s]=f[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,n,a,r;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),s=0;s<f.length;s++)if(a=this._input.match(this.rules[f[s]]),a&&(!n||a[0].length>n[0].length)){if(n=a,r=s,this.options.backtrack_lexer){if(i=this.test_match(a,f[s]),i!==!1)return i;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(i=this.test_match(n,f[r]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,a,r,f){switch(r){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:return a.yytext=a.yytext.trim(),62}},rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,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,50],inclusive:!0}}};return V}();it.lexer=$t;function rt(){this.yy={}}return rt.prototype=it,it.Parser=rt,new rt}();ct.parser=ct;const Ht=ct;let ut=[],b={},K={},q={},G={};const Wt={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},Kt={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},Gt={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},jt={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},zt=(t,e)=>(K[t]===void 0&&(K[t]={name:t,type:e,id:b.id,text:b.text,risk:b.risk,verifyMethod:b.verifyMethod}),b={},K[t]),Xt=()=>K,Jt=t=>{b!==void 0&&(b.id=t)},Zt=t=>{b!==void 0&&(b.text=t)},te=t=>{b!==void 0&&(b.risk=t)},ee=t=>{b!==void 0&&(b.verifyMethod=t)},ie=t=>(G[t]===void 0&&(G[t]={name:t,type:q.type,docRef:q.docRef},Nt.info("Added new requirement: ",t)),q={},G[t]),re=()=>G,ne=t=>{q!==void 0&&(q.type=t)},se=t=>{q!==void 0&&(q.docRef=t)},ae=(t,e,l)=>{ut.push({type:t,src:e,dst:l})},le=()=>ut,oe=()=>{ut=[],b={},K={},q={},G={},Pt()},ce={RequirementType:Wt,RiskLevel:Kt,VerifyType:Gt,Relationships:jt,getConfig:()=>Tt().req,addRequirement:zt,getRequirements:Xt,setNewReqId:Jt,setNewReqText:Zt,setNewReqRisk:te,setNewReqVerifyMethod:ee,setAccTitle:Ct,getAccTitle:Ft,setAccDescription:Mt,getAccDescription:Dt,addElement:ie,getElements:re,setNewElementType:ne,setNewElementDocRef:se,addRelationship:ae,getRelationships:le,clear:oe},he=t=>` + + marker { + fill: ${t.relationColor}; + stroke: ${t.relationColor}; + } + + marker.cross { + stroke: ${t.lineColor}; + } + + svg { + font-family: ${t.fontFamily}; + font-size: ${t.fontSize}; + } + + .reqBox { + fill: ${t.requirementBackground}; + fill-opacity: 1.0; + stroke: ${t.requirementBorderColor}; + stroke-width: ${t.requirementBorderSize}; + } + + .reqTitle, .reqLabel{ + fill: ${t.requirementTextColor}; + } + .reqLabelBox { + fill: ${t.relationLabelBackground}; + fill-opacity: 1.0; + } + + .req-title-line { + stroke: ${t.requirementBorderColor}; + stroke-width: ${t.requirementBorderSize}; + } + .relationshipLine { + stroke: ${t.relationColor}; + stroke-width: 1; + } + .relationshipLabel { + fill: ${t.relationLabelColor}; + } + +`,ue=he,ht={CONTAINS:"contains",ARROW:"arrow"},de=(t,e)=>{let l=t.append("defs").append("marker").attr("id",ht.CONTAINS+"_line_ending").attr("refX",0).attr("refY",e.line_height/2).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("g");l.append("circle").attr("cx",e.line_height/2).attr("cy",e.line_height/2).attr("r",e.line_height/2).attr("fill","none"),l.append("line").attr("x1",0).attr("x2",e.line_height).attr("y1",e.line_height/2).attr("y2",e.line_height/2).attr("stroke-width",1),l.append("line").attr("y1",0).attr("y2",e.line_height).attr("x1",e.line_height/2).attr("x2",e.line_height/2).attr("stroke-width",1),t.append("defs").append("marker").attr("id",ht.ARROW+"_line_ending").attr("refX",e.line_height).attr("refY",.5*e.line_height).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("path").attr("d",`M0,0 + L${e.line_height},${e.line_height/2} + M${e.line_height},${e.line_height/2} + L0,${e.line_height}`).attr("stroke-width",1)},xt={ReqMarkers:ht,insertLineEndings:de};let y={},St=0;const At=(t,e)=>t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",y.rect_min_width+"px").attr("height",y.rect_min_height+"px"),vt=(t,e,l)=>{let c=y.rect_min_width/2,u=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",c).attr("y",y.rect_padding).attr("dominant-baseline","hanging"),d=0;l.forEach(g=>{d==0?u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",0).text(g):u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",y.line_height*.75).text(g),d++});let p=1.5*y.rect_padding,h=d*y.line_height*.75,o=p+h;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",y.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:u,y:o}},wt=(t,e,l,c)=>{let u=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",y.rect_padding).attr("y",c).attr("dominant-baseline","hanging"),d=0;const p=30;let h=[];return l.forEach(o=>{let g=o.length;for(;g>p&&d<3;){let m=o.substring(0,p);o=o.substring(p,o.length),g=o.length,h[h.length]=m,d++}if(d==3){let m=h[h.length-1];h[h.length-1]=m.substring(0,m.length-4)+"..."}else h[h.length]=o;d=0}),h.forEach(o=>{u.append("tspan").attr("x",y.rect_padding).attr("dy",y.line_height).text(o)}),u},pe=(t,e,l,c)=>{const u=e.node().getTotalLength(),d=e.node().getPointAtLength(u*.5),p="rel"+St;St++;const o=t.append("text").attr("class","req relationshipLabel").attr("id",p).attr("x",d.x).attr("y",d.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(c).node().getBBox();t.insert("rect","#"+p).attr("class","req reqLabelBox").attr("x",d.x-o.width/2).attr("y",d.y-o.height/2).attr("width",o.width).attr("height",o.height).attr("fill","white").attr("fill-opacity","85%")},fe=function(t,e,l,c,u){const d=l.edge(H(e.src),H(e.dst)),p=Qt().x(function(o){return o.x}).y(function(o){return o.y}),h=t.insert("path","#"+c).attr("class","er relationshipLine").attr("d",p(d.points)).attr("fill","none");e.type==u.db.Relationships.CONTAINS?h.attr("marker-start","url("+kt.getUrl(y.arrowMarkerAbsolute)+"#"+e.type+"_line_ending)"):(h.attr("stroke-dasharray","10,7"),h.attr("marker-end","url("+kt.getUrl(y.arrowMarkerAbsolute)+"#"+xt.ReqMarkers.ARROW+"_line_ending)")),pe(t,h,y,`<<${e.type}>>`)},ye=(t,e,l)=>{Object.keys(t).forEach(c=>{let u=t[c];c=H(c),Nt.info("Added new requirement: ",c);const d=l.append("g").attr("id",c),p="req-"+c,h=At(d,p);let o=vt(d,c+"_title",[`<<${u.type}>>`,`${u.name}`]);wt(d,c+"_body",[`Id: ${u.id}`,`Text: ${u.text}`,`Risk: ${u.risk}`,`Verification: ${u.verifyMethod}`],o.y);const g=h.node().getBBox();e.setNode(c,{width:g.width,height:g.height,shape:"rect",id:c})})},_e=(t,e,l)=>{Object.keys(t).forEach(c=>{let u=t[c];const d=H(c),p=l.append("g").attr("id",d),h="element-"+d,o=At(p,h);let g=vt(p,h+"_title",["<<Element>>",`${c}`]);wt(p,h+"_body",[`Type: ${u.type||"Not Specified"}`,`Doc Ref: ${u.docRef||"None"}`],g.y);const m=o.node().getBBox();e.setNode(d,{width:m.width,height:m.height,shape:"rect",id:d})})},ge=(t,e)=>(t.forEach(function(l){let c=H(l.src),u=H(l.dst);e.setEdge(c,u,{relationship:l})}),t),Ee=function(t,e){e.nodes().forEach(function(l){l!==void 0&&e.node(l)!==void 0&&(t.select("#"+l),t.select("#"+l).attr("transform","translate("+(e.node(l).x-e.node(l).width/2)+","+(e.node(l).y-e.node(l).height/2)+" )"))})},H=t=>t.replace(/\s/g,"").replace(/\./g,"_"),me=(t,e,l,c)=>{y=Tt().requirement;const u=y.securityLevel;let d;u==="sandbox"&&(d=ot("#i"+e));const h=(u==="sandbox"?ot(d.nodes()[0].contentDocument.body):ot("body")).select(`[id='${e}']`);xt.insertLineEndings(h,y);const o=new Ut({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:y.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let g=c.db.getRequirements(),m=c.db.getElements(),A=c.db.getRelationships();ye(g,o,h),_e(m,o,h),ge(A,o),Bt(o),Ee(h,o),A.forEach(function(x){fe(h,x,o,e,c)});const T=y.rect_padding,N=h.node().getBBox(),v=N.width+T*2,k=N.height+T*2;Yt(h,k,v,y.useMaxWidth),h.attr("viewBox",`${N.x-T} ${N.y-T} ${v} ${k}`)},Re={draw:me},ai={parser:Ht,db:ce,renderer:Re,styles:ue};export{ai as diagram}; diff --git a/assets/sankeyDiagram-0acdec17-dOKGH0tB.js b/assets/sankeyDiagram-0acdec17-dOKGH0tB.js new file mode 100644 index 00000000000..2e24f632567 --- /dev/null +++ b/assets/sankeyDiagram-0acdec17-dOKGH0tB.js @@ -0,0 +1,8 @@ +import{c as rt,g as mt,s as _t,a as kt,b as xt,p as vt,o as bt,q as wt,j as St,I as Lt,h as G,C as Et}from"./index.demo-_07sssxB.js";import"./owner-4YVbz2PN.js";import{o as At}from"./ordinal-wXG5obU4.js";import{s as Tt}from"./Tableau10-Fgclqpgn.js";import"./index-qegmBwH1.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";import"./init-Hi12RPRh.js";function ot(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s<u||s===void 0&&u>=u)&&(s=u)}return s}function yt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function Mt(t){return t.target.depth}function Nt(t){return t.depth}function Ct(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function Pt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,Mt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return q(t.source,n.source)||t.index-n.index}function at(t,n){return q(t.target,n.target)||t.index-n.index}function q(t,n){return t.y0-n.y0}function J(t){return t.value}function It(t){return t.index}function $t(t){return t.nodes}function Ot(t){return t.links}function ct(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ut({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function jt(){let t=0,n=0,s=1,a=1,u=24,k=8,p,g=It,i=dt,o,c,m=$t,b=Ot,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ut(e),e}x.update=function(e){return ut(e),e},x.nodeId=function(e){return arguments.length?(g=typeof e=="function"?e:Y(e),x):g},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(k=p=+e,x):k},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:Y(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[g(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:_,target:v}=r;typeof _!="object"&&(_=r.source=ct(l,_)),typeof v!="object"&&(v=r.target=ct(l,v)),_.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function L({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function A({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const _ of l){_.depth=r;for(const{target:v}of _.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function N({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const _ of l){_.height=r;for(const{source:v}of _.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function I({nodes:e}){const f=ot(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const _=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=_,r.x0=t+_*l,r.x1=r.x0+u,h[_]?h[_].push(r):h[_]=[r]}if(o)for(const r of h)r.sort(o);return h}function j(e){const f=yt(e,l=>(a-n-(l.length-1)*p)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+p;for(const _ of r.sourceLinks)_.width=_.value*f}h=(a-h+p)/(l.length+1);for(let r=0;r<l.length;++r){const _=l[r];_.y0+=h*(r+1),_.y1+=h*(r+1)}$(l)}}function S(e){const f=I(e);p=Math.min(k,(a-n)/(ot(f,l=>l.length)-1)),j(f);for(let l=0;l<y;++l){const h=Math.pow(.99,l),r=Math.max(1-h,(l+1)/y);O(f,h,r),M(f,h,r)}}function M(e,f,l){for(let h=1,r=e.length;h<r;++h){const _=e[h];for(const v of _){let R=0,z=0;for(const{source:W,value:K}of v.targetLinks){let F=K*(v.layer-W.layer);R+=T(W,v)*F,z+=F}if(!(z>0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&_.sort(q),C(_,l)}}function O(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const _=e[r];for(const v of _){let R=0,z=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);R+=V(v,W)*F,z+=F}if(!(z>0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&_.sort(q),C(_,l)}}function C(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-p,l-1,f),P(e,h.y1+p,l+1,f),d(e,a,e.length-1,f),P(e,n,0,f)}function P(e,f,l,h){for(;l<e.length;++l){const r=e[l],_=(f-r.y0)*h;_>1e-6&&(r.y0+=_,r.y1+=_),f=r.y1+p}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],_=(r.y1-f)*h;_>1e-6&&(r.y0-=_,r.y1-=_),f=r.y0-p}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(at);for(const{target:{targetLinks:l}}of e)l.sort(lt)}}function $(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(at),l.sort(lt)}function T(e,f){let l=e.y0-(e.sourceLinks.length-1)*p/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+p}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function V(e,f){let l=f.y0-(f.targetLinks.length-1)*p/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+p}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var tt=Math.PI,et=2*tt,D=1e-6,zt=et-D;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pt(){return new nt}nt.prototype=pt.prototype={constructor:nt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,k){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+k)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var k=this._x1,p=this._y1,g=s-t,i=a-n,o=k-t,c=p-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>D)if(!(Math.abs(c*g-i*o)>D)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-k,y=a-p,x=g*g+i*i,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(m),N=u*Math.tan((tt-Math.acos((x+m-E)/(2*L*A)))/2),I=N/A,j=N/L;Math.abs(I-1)>D&&(this._+="L"+(t+I*o)+","+(n+I*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+j*g)+","+(this._y1=n+j*i)}},arc:function(t,n,s,a,u,k){t=+t,n=+n,s=+s,k=!!k;var p=s*Math.cos(a),g=s*Math.sin(a),i=t+p,o=n+g,c=1^k,m=k?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>D||Math.abs(this._y1-o)>D)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%et+et),m>zt?this._+="A"+s+","+s+",0,1,"+c+","+(t-p)+","+(n-g)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>D&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ht(t){return function(){return t}}function Dt(t){return t[0]}function Bt(t){return t[1]}var Vt=Array.prototype.slice;function Rt(t){return t.source}function Ut(t){return t.target}function Wt(t){var n=Rt,s=Ut,a=Dt,u=Bt,k=null;function p(){var g,i=Vt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(k||(k=g=pt()),t(k,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),g)return k=null,g+""||null}return p.source=function(g){return arguments.length?(n=g,p):n},p.target=function(g){return arguments.length?(s=g,p):s},p.x=function(g){return arguments.length?(a=typeof g=="function"?g:ht(+g),p):a},p.y=function(g){return arguments.length?(u=typeof g=="function"?g:ht(+g),p):u},p.context=function(g){return arguments.length?(k=g??null,p):k},p}function Ft(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Gt(){return Wt(Ft)}function Yt(t){return[t.source.x1,t.y0]}function qt(t){return[t.target.x0,t.y1]}function Ht(){return Gt().source(Yt).target(qt)}var it=function(){var t=function(g,i,o,c){for(o=o||{},c=g.length;c--;o[g[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,j=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(M.yy[O]=this.yy[O]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var P=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,$,T,V,e={},f,l,h,r;;){if($=c[c.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((w===null||typeof w>"u")&&(w=d()),T=x[$]&&x[$][w]),typeof T>"u"||!T.length||!T[0]){var _="";r=[];for(f in x[$])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?_="Parse error on line "+(L+1)+`: +`+S.showPosition()+` +Expecting `+r.join(", ")+", got '"+(this.terminals_[w]||w)+"'":_="Parse error on line "+(L+1)+": Unexpected "+(w==I?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(_,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:C,expected:r})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+w);switch(T[0]){case 1:c.push(w),b.push(S.yytext),y.push(S.yylloc),c.push(T[1]),w=null,A=S.yyleng,E=S.yytext,L=S.yylineno,C=S.yylloc;break;case 2:if(l=this.productions_[T[1]][1],e.$=b[b.length-l],e._$={first_line:y[y.length-(l||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(l||1)].first_column,last_column:y[y.length-1].last_column},P&&(e._$.range=[y[y.length-(l||1)].range[0],y[y.length-1].range[1]]),V=this.performAction.apply(e,[E,A,L,M.yy,T[1],b,y].concat(j)),typeof V<"u")return V;l&&(c=c.slice(0,-1*l*2),b=b.slice(0,-1*l),y=y.slice(0,-1*l)),c.push(this.productions_[T[1]][0]),b.push(e.$),y.push(e._$),h=x[c[c.length-2]][c[c.length-1]],c.push(h);break;case 3:return!0}}return!0}},k=function(){var g={EOF:1,parseError:function(o,c){if(this.yy.parser)this.yy.parser.parseError(o,c);else throw new Error(o)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===m.length?this.yylloc.first_column:0)+m[m.length-c.length].length-c[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+` +`+o+"^"},test_match:function(i,o){var c,m,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),m=i[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],c=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var y in b)this[y]=b[y];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,o,c,m;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),y=0;y<b.length;y++)if(c=this._input.match(this.rules[b[y]]),c&&(!o||c[0].length>o[0].length)){if(o=c,m=y,this.options.backtrack_lexer){if(i=this.test_match(c,b[y]),i!==!1)return i;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(i=this.test_match(o,b[m]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return o||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{easy_keword_rules:!0},performAction:function(o,c,m,b){switch(m){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/,/^(?:$)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:(\u002C))/,/^(?:(\u0022))/,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/,/^(?:(\u0022)(?!(\u0022)))/,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return g}();u.lexer=k;function p(){this.yy={}}return p.prototype=u,u.Parser=p,new p}();it.parser=it;const H=it;let X=[],Q=[],B={};const Xt=()=>{X=[],Q=[],B={},wt()};class Qt{constructor(n,s,a=0){this.source=n,this.target=s,this.value=a}}const Kt=(t,n,s)=>{X.push(new Qt(t,n,s))};class Zt{constructor(n){this.ID=n}}const Jt=t=>(t=St.sanitizeText(t,rt()),B[t]||(B[t]=new Zt(t),Q.push(B[t])),B[t]),te=()=>Q,ee=()=>X,ne=()=>({nodes:Q.map(t=>({id:t.ID})),links:X.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),ie={nodesMap:B,getConfig:()=>rt().sankey,getNodes:te,getLinks:ee,getGraph:ne,addLink:Kt,findOrCreateNode:Jt,getAccTitle:mt,setAccTitle:_t,getAccDescription:kt,setAccDescription:xt,getDiagramTitle:vt,setDiagramTitle:bt,clear:Xt},gt=class st{static next(n){return new st(n+ ++st.count)}constructor(n){this.id=n,this.href=`#${n}`}toString(){return"url("+this.href+")"}};gt.count=0;let ft=gt;const se={left:Nt,right:Ct,center:Pt,justify:dt},re=function(t,n,s,a){const{securityLevel:u,sankey:k}=rt(),p=Lt.sankey;let g;u==="sandbox"&&(g=G("#i"+n));const i=u==="sandbox"?G(g.nodes()[0].contentDocument.body):G("body"),o=u==="sandbox"?i.select(`[id="${n}"]`):G(`[id="${n}"]`),c=k?.width??p.width,m=k?.height??p.width,b=k?.useMaxWidth??p.useMaxWidth,y=k?.nodeAlignment??p.nodeAlignment,x=k?.prefix??p.prefix,E=k?.suffix??p.suffix,L=k?.showValues??p.showValues,A=a.db.getGraph(),N=se[y];jt().nodeId(d=>d.id).nodeWidth(10).nodePadding(10+(L?15:0)).nodeAlign(N).extent([[0,0],[c,m]])(A);const S=At(Tt);o.append("g").attr("class","nodes").selectAll(".node").data(A.nodes).join("g").attr("class","node").attr("id",d=>(d.uid=ft.next("node-")).id).attr("transform",function(d){return"translate("+d.x0+","+d.y0+")"}).attr("x",d=>d.x0).attr("y",d=>d.y0).append("rect").attr("height",d=>d.y1-d.y0).attr("width",d=>d.x1-d.x0).attr("fill",d=>S(d.id));const M=({id:d,value:w})=>L?`${d} +${x}${Math.round(w*100)/100}${E}`:d;o.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(A.nodes).join("text").attr("x",d=>d.x0<c/2?d.x1+6:d.x0-6).attr("y",d=>(d.y1+d.y0)/2).attr("dy",`${L?"0":"0.35"}em`).attr("text-anchor",d=>d.x0<c/2?"start":"end").text(M);const O=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(A.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),C=k?.linkColor||"gradient";if(C==="gradient"){const d=O.append("linearGradient").attr("id",w=>(w.uid=ft.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",w=>w.source.x1).attr("x2",w=>w.target.x0);d.append("stop").attr("offset","0%").attr("stop-color",w=>S(w.source.id)),d.append("stop").attr("offset","100%").attr("stop-color",w=>S(w.target.id))}let P;switch(C){case"gradient":P=d=>d.uid;break;case"source":P=d=>S(d.source.id);break;case"target":P=d=>S(d.target.id);break;default:P=C}O.append("path").attr("d",Ht()).attr("stroke",P).attr("stroke-width",d=>Math.max(1,d.width)),Et(void 0,o,0,b)},oe={draw:re},le=t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` +`).trim(),ae=H.parse.bind(H);H.parse=t=>ae(le(t));const Ye={parser:H,db:ie,renderer:oe};export{Ye as diagram}; diff --git a/assets/script-SYgWefdU.js b/assets/script-SYgWefdU.js new file mode 100644 index 00000000000..167127d0fc3 --- /dev/null +++ b/assets/script-SYgWefdU.js @@ -0,0 +1 @@ +import{r as z,j as J,a as Q,g as V}from"./index-qegmBwH1.js";var D={exports:{}},U={};U._=U._interop_require_default=Z;function Z(n){return n&&n.__esModule?n:{default:n}}var X={};function F(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,E=new WeakMap;return(F=function(m){return m?E:e})(n)}X._=X._interop_require_wildcard=ee;function ee(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var E=F(e);if(E&&E.has(n))return E.get(n);var m={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in n)if(_!=="default"&&Object.prototype.hasOwnProperty.call(n,_)){var f=M?Object.getOwnPropertyDescriptor(n,_):null;f&&(f.get||f.set)?Object.defineProperty(m,_,f):m[_]=n[_]}return m.default=n,E&&E.set(n,m),m}var B={},Y;function te(){return Y||(Y=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"HeadManagerContext",{enumerable:!0,get:function(){return m}});const m=U._(z).default.createContext({})}(B)),B}var H={exports:{}},G;function ne(){return G||(G=1,function(n,e){var E={NEXT_PUBLIC_API_URL:"https://innei.ren/api/v2",NEXT_PUBLIC_GATEWAY_URL:"https://api.innei.ren",NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY:"pk_test_aaaaaaaaaaaaaaaaaxxxxxx",CLERK_SECRET_KEY:"sk_test_",NEXT_PUBLIC_CLERK_SIGN_IN_URL:"/sign-in",NEXT_PUBLIC_CLERK_SIGN_UP_URL:"/sign-up",NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL:"/",NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL:"/",OPENAI_API_KEY:"",TMDB_API_KEY:"",S3_ACCESS_KEY:"",S3_SECRET_KEY:""};Object.defineProperty(e,"__esModule",{value:!0});function m(p,c){for(var a in c)Object.defineProperty(p,a,{enumerable:!0,get:c[a]})}m(e,{DOMAttributeNames:function(){return M},isEqualNode:function(){return f},default:function(){return K}});const M={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function _(p){let{type:c,props:a}=p;const o=document.createElement(c);for(const d in a){if(!a.hasOwnProperty(d)||d==="children"||d==="dangerouslySetInnerHTML"||a[d]===void 0)continue;const i=M[d]||d.toLowerCase();c==="script"&&(i==="async"||i==="defer"||i==="noModule")?o[i]=!!a[d]:o.setAttribute(i,a[d])}const{children:t,dangerouslySetInnerHTML:y}=a;return y?o.innerHTML=y.__html||"":t&&(o.textContent=typeof t=="string"?t:Array.isArray(t)?t.join(""):""),o}function f(p,c){if(p instanceof HTMLElement&&c instanceof HTMLElement){const a=c.getAttribute("nonce");if(a&&!p.getAttribute("nonce")){const o=c.cloneNode(!0);return o.setAttribute("nonce",""),o.nonce=a,a===p.nonce&&p.isEqualNode(o)}}return p.isEqualNode(c)}let v;E.__NEXT_STRICT_NEXT_HEAD?v=(p,c)=>{const a=document.querySelector("head");if(!a)return;const o=a.querySelectorAll('meta[name="next-head"]')||[],t=[];if(p==="meta"){const i=a.querySelector("meta[charset]");i&&t.push(i)}for(let i=0;i<o.length;i++){var y;const r=o[i].nextSibling;(r==null||(y=r.tagName)==null?void 0:y.toLowerCase())===p&&t.push(r)}const d=c.map(_).filter(i=>{for(let u=0,r=t.length;u<r;u++){const q=t[u];if(f(q,i))return t.splice(u,1),!1}return!0});t.forEach(i=>{var u;const r=i.previousSibling;if(r&&r.getAttribute("name")==="next-head"){var q;(q=i.parentNode)==null||q.removeChild(r)}(u=i.parentNode)==null||u.removeChild(i)}),d.forEach(i=>{var u;const r=document.createElement("meta");r.name="next-head",r.content="1",((u=i.tagName)==null?void 0:u.toLowerCase())==="meta"&&i.getAttribute("charset")||a.appendChild(r),a.appendChild(i)})}:v=(p,c)=>{const a=document.getElementsByTagName("head")[0],o=a.querySelector("meta[name=next-head-count]"),t=Number(o.content),y=[];for(let u=0,r=o.previousElementSibling;u<t;u++,r=r?.previousElementSibling||null){var d;(r==null||(d=r.tagName)==null?void 0:d.toLowerCase())===p&&y.push(r)}const i=c.map(_).filter(u=>{for(let r=0,q=y.length;r<q;r++){const x=y[r];if(f(x,u))return y.splice(r,1),!1}return!0});y.forEach(u=>{var r;return(r=u.parentNode)==null?void 0:r.removeChild(u)}),i.forEach(u=>a.insertBefore(u,o)),o.content=(t-y.length+i.length).toString()};function K(){return{mountedInstances:new Set,updateHead:p=>{const c={};p.forEach(t=>{if(t.type==="link"&&t.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+t.props["data-href"]+'"]'))return;t.props.href=t.props["data-href"],t.props["data-href"]=void 0}const y=c[t.type]||[];y.push(t),c[t.type]=y});const a=c.title?c.title[0]:null;let o="";if(a){const{children:t}=a.props;o=typeof t=="string"?t:Array.isArray(t)?t.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(t=>{v(t,c[t]||[])})}}}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),n.exports=e.default)}(H,H.exports)),H.exports}var j={exports:{}},W;function re(){return W||(W=1,function(n,e){Object.defineProperty(e,"__esModule",{value:!0});function E(_,f){for(var v in f)Object.defineProperty(_,v,{enumerable:!0,get:f[v]})}E(e,{requestIdleCallback:function(){return m},cancelIdleCallback:function(){return M}});const m=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(_){let f=Date.now();return self.setTimeout(function(){_({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-f))}})},1)},M=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(_){return clearTimeout(_)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),n.exports=e.default)}(j,j.exports)),j.exports}(function(n,e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function E(s,l){for(var h in l)Object.defineProperty(s,h,{enumerable:!0,get:l[h]})}E(e,{handleClientScriptLoad:function(){return i},initScriptLoader:function(){return q},default:function(){return $}});const m=U,M=X,_=J,f=m._(Q),v=M._(z),K=te(),p=ne(),c=re(),a=new Map,o=new Set,t=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],y=s=>{if(f.default.preinit){s.forEach(l=>{f.default.preinit(l,{as:"style"})});return}if(typeof window<"u"){let l=document.head;s.forEach(h=>{let I=document.createElement("link");I.type="text/css",I.rel="stylesheet",I.href=h,l.appendChild(I)})}},d=s=>{const{src:l,id:h,onLoad:I=()=>{},onReady:N=null,dangerouslySetInnerHTML:C,children:O="",strategy:w="afterInteractive",onError:g,stylesheets:A}=s,T=h||l;if(T&&o.has(T))return;if(a.has(l)){o.add(T),a.get(l).then(I,g);return}const P=()=>{N&&N(),o.add(T)},b=document.createElement("script"),k=new Promise((L,R)=>{b.addEventListener("load",function(S){L(),I&&I.call(this,S),P()}),b.addEventListener("error",function(S){R(S)})}).catch(function(L){g&&g(L)});C?(b.innerHTML=C.__html||"",P()):O?(b.textContent=typeof O=="string"?O:Array.isArray(O)?O.join(""):"",P()):l&&(b.src=l,a.set(l,k));for(const[L,R]of Object.entries(s)){if(R===void 0||t.includes(L))continue;const S=p.DOMAttributeNames[L]||L.toLowerCase();b.setAttribute(S,R)}w==="worker"&&b.setAttribute("type","text/partytown"),b.setAttribute("data-nscript",w),A&&y(A),document.body.appendChild(b)};function i(s){const{strategy:l="afterInteractive"}=s;l==="lazyOnload"?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>d(s))}):d(s)}function u(s){document.readyState==="complete"?(0,c.requestIdleCallback)(()=>d(s)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>d(s))})}function r(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(l=>{const h=l.id||l.getAttribute("src");o.add(h)})}function q(s){s.forEach(i),r()}function x(s){const{id:l,src:h="",onLoad:I=()=>{},onReady:N=null,strategy:C="afterInteractive",onError:O,stylesheets:w,...g}=s,{updateScripts:A,scripts:T,getIsSsr:P,appDir:b,nonce:k}=(0,v.useContext)(K.HeadManagerContext),L=(0,v.useRef)(!1);(0,v.useEffect)(()=>{const S=l||h;L.current||(N&&S&&o.has(S)&&N(),L.current=!0)},[N,l,h]);const R=(0,v.useRef)(!1);if((0,v.useEffect)(()=>{R.current||(C==="afterInteractive"?d(s):C==="lazyOnload"&&u(s),R.current=!0)},[s,C]),(C==="beforeInteractive"||C==="worker")&&(A?(T[C]=(T[C]||[]).concat([{id:l,src:h,onLoad:I,onReady:N,onError:O,...g}]),A(T)):P&&P()?o.add(l||h):P&&!P()&&d(s)),b){if(w&&w.forEach(S=>{f.default.preinit(S,{as:"style"})}),C==="beforeInteractive")return h?(f.default.preload(h,g.integrity?{as:"script",integrity:g.integrity}:{as:"script"}),(0,_.jsx)("script",{nonce:k,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([h,{...g,id:l}])+")"}})):(g.dangerouslySetInnerHTML&&(g.children=g.dangerouslySetInnerHTML.__html,delete g.dangerouslySetInnerHTML),(0,_.jsx)("script",{nonce:k,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...g,id:l}])+")"}}));C==="afterInteractive"&&h&&f.default.preload(h,g.integrity?{as:"script",integrity:g.integrity}:{as:"script"})}return null}Object.defineProperty(x,"__nextScript",{value:!0});const $=x;(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),n.exports=e.default)})(D,D.exports);var ae=D.exports,ie=ae;const le=V(ie);export{le as S}; diff --git a/assets/sequenceDiagram-c18d009d-j36an92T.js b/assets/sequenceDiagram-c18d009d-j36an92T.js new file mode 100644 index 00000000000..e47f3daf987 --- /dev/null +++ b/assets/sequenceDiagram-c18d009d-j36an92T.js @@ -0,0 +1,122 @@ +import{g as Te,p as ye,o as Ee,c as lt,s as Jt,b as be,a as me,q as we,l as K,d as Pt,j as v,e as ve,h as kt,i as _e,u as B,m as Zt,z as Qt,Z as ke}from"./index.demo-_07sssxB.js";import{d as Pe,a as Le,g as Lt,b as Ie,c as Ae,e as Yt}from"./svgDrawCommon-0ee1b4e9--nQsBbhr.js";import"./owner-4YVbz2PN.js";import"./index-qegmBwH1.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";var Ct=function(){var t=function(ct,w,k,L){for(k=k||{},L=ct.length;L--;k[ct[L]]=w);return k},e=[1,2],o=[1,3],r=[1,4],s=[2,4],a=[1,9],l=[1,11],h=[1,13],p=[1,14],i=[1,16],g=[1,17],E=[1,18],u=[1,24],x=[1,25],m=[1,26],P=[1,27],A=[1,28],D=[1,29],S=[1,30],W=[1,31],M=[1,32],tt=[1,33],q=[1,34],G=[1,35],Z=[1,36],z=[1,37],F=[1,38],O=[1,39],X=[1,41],H=[1,42],J=[1,43],Q=[1,44],j=[1,45],y=[1,46],_=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],I=[4,5,16,50,52,53],ht=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],et=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],N=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],zt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ot=[68,69,70],it=[1,120],At={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,k,L,T,R,c,Et){var d=c.length-1;switch(R){case 3:return T.apply(c[d]),c[d];case 4:case 9:this.$=[];break;case 5:case 10:c[d-1].push(c[d]),this.$=c[d-1];break;case 6:case 7:case 11:case 12:this.$=c[d];break;case 8:case 13:this.$=[];break;case 15:c[d].type="createParticipant",this.$=c[d];break;case 16:c[d-1].unshift({type:"boxStart",boxData:T.parseBoxData(c[d-2])}),c[d-1].push({type:"boxEnd",boxText:c[d-2]}),this.$=c[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(c[d-2]),sequenceIndexStep:Number(c[d-1]),sequenceVisible:!0,signalType:T.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(c[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:T.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:T.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:T.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:T.LINETYPE.ACTIVE_START,actor:c[d-1]};break;case 23:this.$={type:"activeEnd",signalType:T.LINETYPE.ACTIVE_END,actor:c[d-1]};break;case 29:T.setDiagramTitle(c[d].substring(6)),this.$=c[d].substring(6);break;case 30:T.setDiagramTitle(c[d].substring(7)),this.$=c[d].substring(7);break;case 31:this.$=c[d].trim(),T.setAccTitle(this.$);break;case 32:case 33:this.$=c[d].trim(),T.setAccDescription(this.$);break;case 34:c[d-1].unshift({type:"loopStart",loopText:T.parseMessage(c[d-2]),signalType:T.LINETYPE.LOOP_START}),c[d-1].push({type:"loopEnd",loopText:c[d-2],signalType:T.LINETYPE.LOOP_END}),this.$=c[d-1];break;case 35:c[d-1].unshift({type:"rectStart",color:T.parseMessage(c[d-2]),signalType:T.LINETYPE.RECT_START}),c[d-1].push({type:"rectEnd",color:T.parseMessage(c[d-2]),signalType:T.LINETYPE.RECT_END}),this.$=c[d-1];break;case 36:c[d-1].unshift({type:"optStart",optText:T.parseMessage(c[d-2]),signalType:T.LINETYPE.OPT_START}),c[d-1].push({type:"optEnd",optText:T.parseMessage(c[d-2]),signalType:T.LINETYPE.OPT_END}),this.$=c[d-1];break;case 37:c[d-1].unshift({type:"altStart",altText:T.parseMessage(c[d-2]),signalType:T.LINETYPE.ALT_START}),c[d-1].push({type:"altEnd",signalType:T.LINETYPE.ALT_END}),this.$=c[d-1];break;case 38:c[d-1].unshift({type:"parStart",parText:T.parseMessage(c[d-2]),signalType:T.LINETYPE.PAR_START}),c[d-1].push({type:"parEnd",signalType:T.LINETYPE.PAR_END}),this.$=c[d-1];break;case 39:c[d-1].unshift({type:"parStart",parText:T.parseMessage(c[d-2]),signalType:T.LINETYPE.PAR_OVER_START}),c[d-1].push({type:"parEnd",signalType:T.LINETYPE.PAR_END}),this.$=c[d-1];break;case 40:c[d-1].unshift({type:"criticalStart",criticalText:T.parseMessage(c[d-2]),signalType:T.LINETYPE.CRITICAL_START}),c[d-1].push({type:"criticalEnd",signalType:T.LINETYPE.CRITICAL_END}),this.$=c[d-1];break;case 41:c[d-1].unshift({type:"breakStart",breakText:T.parseMessage(c[d-2]),signalType:T.LINETYPE.BREAK_START}),c[d-1].push({type:"breakEnd",optText:T.parseMessage(c[d-2]),signalType:T.LINETYPE.BREAK_END}),this.$=c[d-1];break;case 43:this.$=c[d-3].concat([{type:"option",optionText:T.parseMessage(c[d-1]),signalType:T.LINETYPE.CRITICAL_OPTION},c[d]]);break;case 45:this.$=c[d-3].concat([{type:"and",parText:T.parseMessage(c[d-1]),signalType:T.LINETYPE.PAR_AND},c[d]]);break;case 47:this.$=c[d-3].concat([{type:"else",altText:T.parseMessage(c[d-1]),signalType:T.LINETYPE.ALT_ELSE},c[d]]);break;case 48:c[d-3].draw="participant",c[d-3].type="addParticipant",c[d-3].description=T.parseMessage(c[d-1]),this.$=c[d-3];break;case 49:c[d-1].draw="participant",c[d-1].type="addParticipant",this.$=c[d-1];break;case 50:c[d-3].draw="actor",c[d-3].type="addParticipant",c[d-3].description=T.parseMessage(c[d-1]),this.$=c[d-3];break;case 51:c[d-1].draw="actor",c[d-1].type="addParticipant",this.$=c[d-1];break;case 52:c[d-1].type="destroyParticipant",this.$=c[d-1];break;case 53:this.$=[c[d-1],{type:"addNote",placement:c[d-2],actor:c[d-1].actor,text:c[d]}];break;case 54:c[d-2]=[].concat(c[d-1],c[d-1]).slice(0,2),c[d-2][0]=c[d-2][0].actor,c[d-2][1]=c[d-2][1].actor,this.$=[c[d-1],{type:"addNote",placement:T.PLACEMENT.OVER,actor:c[d-2].slice(0,2),text:c[d]}];break;case 55:this.$=[c[d-1],{type:"addLinks",actor:c[d-1].actor,text:c[d]}];break;case 56:this.$=[c[d-1],{type:"addALink",actor:c[d-1].actor,text:c[d]}];break;case 57:this.$=[c[d-1],{type:"addProperties",actor:c[d-1].actor,text:c[d]}];break;case 58:this.$=[c[d-1],{type:"addDetails",actor:c[d-1].actor,text:c[d]}];break;case 61:this.$=[c[d-2],c[d]];break;case 62:this.$=c[d];break;case 63:this.$=T.PLACEMENT.LEFTOF;break;case 64:this.$=T.PLACEMENT.RIGHTOF;break;case 65:this.$=[c[d-4],c[d-1],{type:"addMessage",from:c[d-4].actor,to:c[d-1].actor,signalType:c[d-3],msg:c[d],activate:!0},{type:"activeStart",signalType:T.LINETYPE.ACTIVE_START,actor:c[d-1]}];break;case 66:this.$=[c[d-4],c[d-1],{type:"addMessage",from:c[d-4].actor,to:c[d-1].actor,signalType:c[d-3],msg:c[d]},{type:"activeEnd",signalType:T.LINETYPE.ACTIVE_END,actor:c[d-4]}];break;case 67:this.$=[c[d-3],c[d-1],{type:"addMessage",from:c[d-3].actor,to:c[d-1].actor,signalType:c[d-2],msg:c[d]}];break;case 68:this.$={type:"addParticipant",actor:c[d]};break;case 69:this.$=T.LINETYPE.SOLID_OPEN;break;case 70:this.$=T.LINETYPE.DOTTED_OPEN;break;case 71:this.$=T.LINETYPE.SOLID;break;case 72:this.$=T.LINETYPE.DOTTED;break;case 73:this.$=T.LINETYPE.SOLID_CROSS;break;case 74:this.$=T.LINETYPE.DOTTED_CROSS;break;case 75:this.$=T.LINETYPE.SOLID_POINT;break;case 76:this.$=T.LINETYPE.DOTTED_POINT;break;case 77:this.$=T.parseMessage(c[d].trim().substring(1));break}},table:[{3:1,4:e,5:o,6:r},{1:[3]},{3:5,4:e,5:o,6:r},{3:6,4:e,5:o,6:r},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:l,8:8,9:10,12:12,13:h,14:p,17:15,18:i,21:g,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:x,31:m,33:P,35:A,36:D,37:S,38:W,39:M,41:tt,43:q,44:G,46:Z,50:z,52:F,53:O,54:X,59:H,60:J,61:Q,62:j,70:y},t(_,[2,5]),{9:47,12:12,13:h,14:p,17:15,18:i,21:g,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:x,31:m,33:P,35:A,36:D,37:S,38:W,39:M,41:tt,43:q,44:G,46:Z,50:z,52:F,53:O,54:X,59:H,60:J,61:Q,62:j,70:y},t(_,[2,7]),t(_,[2,8]),t(_,[2,14]),{12:48,50:z,52:F,53:O},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:y},{22:55,70:y},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(_,[2,29]),t(_,[2,30]),{32:[1,61]},{34:[1,62]},t(_,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:y},{22:72,70:y},{22:73,70:y},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:y},{22:88,70:y},{22:89,70:y},{22:90,70:y},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(_,[2,6]),t(_,[2,15]),t(I,[2,9],{10:91}),t(_,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(_,[2,21]),{5:[1,95]},{5:[1,96]},t(_,[2,24]),t(_,[2,25]),t(_,[2,26]),t(_,[2,27]),t(_,[2,28]),t(_,[2,31]),t(_,[2,32]),t(ht,s,{7:97}),t(ht,s,{7:98}),t(ht,s,{7:99}),t(et,s,{40:100,7:101}),t(N,s,{42:102,7:103}),t(N,s,{7:103,42:104}),t(zt,s,{45:105,7:106}),t(ht,s,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:y},t(ot,[2,69]),t(ot,[2,70]),t(ot,[2,71]),t(ot,[2,72]),t(ot,[2,73]),t(ot,[2,74]),t(ot,[2,75]),t(ot,[2,76]),{22:116,70:y},{22:118,58:117,70:y},{70:[2,63]},{70:[2,64]},{56:119,79:it},{56:121,79:it},{56:122,79:it},{56:123,79:it},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:z,52:F,53:O},{5:[1,129]},t(_,[2,19]),t(_,[2,20]),t(_,[2,22]),t(_,[2,23]),{4:a,5:l,8:8,9:10,12:12,13:h,14:p,16:[1,130],17:15,18:i,21:g,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:x,31:m,33:P,35:A,36:D,37:S,38:W,39:M,41:tt,43:q,44:G,46:Z,50:z,52:F,53:O,54:X,59:H,60:J,61:Q,62:j,70:y},{4:a,5:l,8:8,9:10,12:12,13:h,14:p,16:[1,131],17:15,18:i,21:g,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:x,31:m,33:P,35:A,36:D,37:S,38:W,39:M,41:tt,43:q,44:G,46:Z,50:z,52:F,53:O,54:X,59:H,60:J,61:Q,62:j,70:y},{4:a,5:l,8:8,9:10,12:12,13:h,14:p,16:[1,132],17:15,18:i,21:g,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:x,31:m,33:P,35:A,36:D,37:S,38:W,39:M,41:tt,43:q,44:G,46:Z,50:z,52:F,53:O,54:X,59:H,60:J,61:Q,62:j,70:y},{16:[1,133]},{4:a,5:l,8:8,9:10,12:12,13:h,14:p,16:[2,46],17:15,18:i,21:g,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:x,31:m,33:P,35:A,36:D,37:S,38:W,39:M,41:tt,43:q,44:G,46:Z,49:[1,134],50:z,52:F,53:O,54:X,59:H,60:J,61:Q,62:j,70:y},{16:[1,135]},{4:a,5:l,8:8,9:10,12:12,13:h,14:p,16:[2,44],17:15,18:i,21:g,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:x,31:m,33:P,35:A,36:D,37:S,38:W,39:M,41:tt,43:q,44:G,46:Z,48:[1,136],50:z,52:F,53:O,54:X,59:H,60:J,61:Q,62:j,70:y},{16:[1,137]},{16:[1,138]},{4:a,5:l,8:8,9:10,12:12,13:h,14:p,16:[2,42],17:15,18:i,21:g,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:x,31:m,33:P,35:A,36:D,37:S,38:W,39:M,41:tt,43:q,44:G,46:Z,47:[1,139],50:z,52:F,53:O,54:X,59:H,60:J,61:Q,62:j,70:y},{4:a,5:l,8:8,9:10,12:12,13:h,14:p,16:[1,140],17:15,18:i,21:g,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:x,31:m,33:P,35:A,36:D,37:S,38:W,39:M,41:tt,43:q,44:G,46:Z,50:z,52:F,53:O,54:X,59:H,60:J,61:Q,62:j,70:y},{15:[1,141]},t(_,[2,49]),{15:[1,142]},t(_,[2,51]),t(_,[2,52]),{22:143,70:y},{22:144,70:y},{56:145,79:it},{56:146,79:it},{56:147,79:it},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(_,[2,16]),t(I,[2,10]),{12:149,50:z,52:F,53:O},t(I,[2,12]),t(I,[2,13]),t(_,[2,18]),t(_,[2,34]),t(_,[2,35]),t(_,[2,36]),t(_,[2,37]),{15:[1,150]},t(_,[2,38]),{15:[1,151]},t(_,[2,39]),t(_,[2,40]),{15:[1,152]},t(_,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:it},{56:156,79:it},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:y},t(I,[2,11]),t(et,s,{7:101,40:158}),t(N,s,{7:103,42:159}),t(zt,s,{7:106,45:160}),t(_,[2,48]),t(_,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,k){if(k.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=k,L}},parse:function(w){var k=this,L=[0],T=[],R=[null],c=[],Et=this.table,d="",wt=0,Ht=0,ue=2,Ut=1,fe=c.slice.call(arguments,1),Y=Object.create(this.lexer),dt={yy:{}};for(var St in this.yy)Object.prototype.hasOwnProperty.call(this.yy,St)&&(dt.yy[St]=this.yy[St]);Y.setInput(w,dt.yy),dt.yy.lexer=Y,dt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Mt=Y.yylloc;c.push(Mt);var ge=Y.options&&Y.options.ranges;typeof dt.yy.parseError=="function"?this.parseError=dt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function xe(){var nt;return nt=T.pop()||Y.lex()||Ut,typeof nt!="number"&&(nt instanceof Array&&(T=nt,nt=T.pop()),nt=k.symbols_[nt]||nt),nt}for(var U,pt,$,Rt,xt={},vt,at,Kt,_t;;){if(pt=L[L.length-1],this.defaultActions[pt]?$=this.defaultActions[pt]:((U===null||typeof U>"u")&&(U=xe()),$=Et[pt]&&Et[pt][U]),typeof $>"u"||!$.length||!$[0]){var Dt="";_t=[];for(vt in Et[pt])this.terminals_[vt]&&vt>ue&&_t.push("'"+this.terminals_[vt]+"'");Y.showPosition?Dt="Parse error on line "+(wt+1)+`: +`+Y.showPosition()+` +Expecting `+_t.join(", ")+", got '"+(this.terminals_[U]||U)+"'":Dt="Parse error on line "+(wt+1)+": Unexpected "+(U==Ut?"end of input":"'"+(this.terminals_[U]||U)+"'"),this.parseError(Dt,{text:Y.match,token:this.terminals_[U]||U,line:Y.yylineno,loc:Mt,expected:_t})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pt+", token: "+U);switch($[0]){case 1:L.push(U),R.push(Y.yytext),c.push(Y.yylloc),L.push($[1]),U=null,Ht=Y.yyleng,d=Y.yytext,wt=Y.yylineno,Mt=Y.yylloc;break;case 2:if(at=this.productions_[$[1]][1],xt.$=R[R.length-at],xt._$={first_line:c[c.length-(at||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(at||1)].first_column,last_column:c[c.length-1].last_column},ge&&(xt._$.range=[c[c.length-(at||1)].range[0],c[c.length-1].range[1]]),Rt=this.performAction.apply(xt,[d,Ht,wt,dt.yy,$[1],R,c].concat(fe)),typeof Rt<"u")return Rt;at&&(L=L.slice(0,-1*at*2),R=R.slice(0,-1*at),c=c.slice(0,-1*at)),L.push(this.productions_[$[1]][0]),R.push(xt.$),c.push(xt._$),Kt=Et[L[L.length-2]][L[L.length-1]],L.push(Kt);break;case 3:return!0}}return!0}},pe=function(){var ct={EOF:1,parseError:function(k,L){if(this.yy.parser)this.yy.parser.parseError(k,L);else throw new Error(k)},setInput:function(w,k){return this.yy=k||this.yy||{},this._input=w,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var k=w.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},unput:function(w){var k=w.length,L=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;var T=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),L.length-1&&(this.yylineno-=L.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:L?(L.length===T.length?this.yylloc.first_column:0)+T[T.length-L.length].length-L[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(w){this.unput(this.match.slice(w))},pastInput:function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var w=this.pastInput(),k=new Array(w.length+1).join("-");return w+this.upcomingInput()+` +`+k+"^"},test_match:function(w,k){var L,T,R;if(this.options.backtrack_lexer&&(R={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(R.yylloc.range=this.yylloc.range.slice(0))),T=w[0].match(/(?:\r\n?|\n).*/g),T&&(this.yylineno+=T.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:T?T[T.length-1].length-T[T.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(w[0].length),this.matched+=w[0],L=this.performAction.call(this,this.yy,this,k,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),L)return L;if(this._backtrack){for(var c in R)this[c]=R[c];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var w,k,L,T;this._more||(this.yytext="",this.match="");for(var R=this._currentRules(),c=0;c<R.length;c++)if(L=this._input.match(this.rules[R[c]]),L&&(!k||L[0].length>k[0].length)){if(k=L,T=c,this.options.backtrack_lexer){if(w=this.test_match(L,R[c]),w!==!1)return w;if(this._backtrack){k=!1;continue}else return!1}else if(!this.options.flex)break}return k?(w=this.test_match(k,R[T]),w!==!1?w:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var k=this.next();return k||this.lex()},begin:function(k){this.conditionStack.push(k)},popState:function(){var k=this.conditionStack.length-1;return k>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(k){return k=this.conditionStack.length-1-Math.abs(k||0),k>=0?this.conditionStack[k]:"INITIAL"},pushState:function(k){this.begin(k)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(k,L,T,R){switch(T){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;case 8:return this.begin("ID"),50;case 9:return this.begin("ID"),52;case 10:return 13;case 11:return this.begin("ID"),53;case 12:return L.yytext=L.yytext.trim(),this.begin("ALIAS"),70;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),36;case 16:return this.begin("LINE"),37;case 17:return this.begin("LINE"),38;case 18:return this.begin("LINE"),39;case 19:return this.begin("LINE"),49;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),48;case 23:return this.begin("LINE"),44;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),46;case 26:return this.popState(),15;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;case 37:return this.begin("ID"),23;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;case 41:return this.popState(),"acc_title_value";case 42:return this.begin("acc_descr"),33;case 43:return this.popState(),"acc_descr_value";case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 51:return 5;case 52:return L.yytext=L.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 71;case 56:return 72;case 57:return 75;case 58:return 76;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 68;case 63:return 69;case 64:return 5;case 65:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[45,46],inclusive:!1},acc_descr:{rules:[43],inclusive:!1},acc_title:{rules:[41],inclusive:!1},ID:{rules:[2,3,12],inclusive:!1},ALIAS:{rules:[2,3,13,14],inclusive:!1},LINE:{rules:[2,3,26],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65],inclusive:!0}}};return ct}();At.lexer=pe;function Nt(){this.yy={}}return Nt.prototype=At,At.Parser=Nt,new Nt}();Ct.parser=Ct;const Ne=Ct;class Se{constructor(e){this.init=e,this.records=this.init()}reset(){this.records=this.init()}}const b=new Se(()=>({prevActor:void 0,actors:{},createdActors:{},destroyedActors:{},boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),Me=function(t){b.records.boxes.push({name:t.text,wrap:t.wrap===void 0&&ft()||!!t.wrap,fill:t.color,actorKeys:[]}),b.records.currentBox=b.records.boxes.slice(-1)[0]},Vt=function(t,e,o,r){let s=b.records.currentBox;const a=b.records.actors[t];if(a){if(b.records.currentBox&&a.box&&b.records.currentBox!==a.box)throw new Error("A same participant should only be defined in one Box: "+a.name+" can't be in '"+a.box.name+"' and in '"+b.records.currentBox.name+"' at the same time.");if(s=a.box?a.box:b.records.currentBox,a.box=s,a&&e===a.name&&o==null)return}(o==null||o.text==null)&&(o={text:e,wrap:null,type:r}),(r==null||o.text==null)&&(o={text:e,wrap:null,type:r}),b.records.actors[t]={box:s,name:e,description:o.text,wrap:o.wrap===void 0&&ft()||!!o.wrap,prevActor:b.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r||"participant"},b.records.prevActor&&b.records.actors[b.records.prevActor]&&(b.records.actors[b.records.prevActor].nextActor=t),b.records.currentBox&&b.records.currentBox.actorKeys.push(t),b.records.prevActor=t},Re=t=>{let e,o=0;for(e=0;e<b.records.messages.length;e++)b.records.messages[e].type===bt.ACTIVE_START&&b.records.messages[e].from.actor===t&&o++,b.records.messages[e].type===bt.ACTIVE_END&&b.records.messages[e].from.actor===t&&o--;return o},De=function(t,e,o,r){b.records.messages.push({from:t,to:e,message:o.text,wrap:o.wrap===void 0&&ft()||!!o.wrap,answer:r})},C=function(t,e,o={text:void 0,wrap:void 0},r,s=!1){if(r===bt.ACTIVE_END&&Re(t.actor)<1){let l=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw l.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},l}return b.records.messages.push({from:t,to:e,message:o.text,wrap:o.wrap===void 0&&ft()||!!o.wrap,type:r,activate:s}),!0},Ce=function(){return b.records.boxes.length>0},Ve=function(){return b.records.boxes.some(t=>t.name)},Oe=function(){return b.records.messages},Be=function(){return b.records.boxes},Ye=function(){return b.records.actors},Fe=function(){return b.records.createdActors},We=function(){return b.records.destroyedActors},mt=function(t){return b.records.actors[t]},qe=function(){return Object.keys(b.records.actors)},ze=function(){b.records.sequenceNumbersEnabled=!0},He=function(){b.records.sequenceNumbersEnabled=!1},Ue=()=>b.records.sequenceNumbersEnabled,Ke=function(t){b.records.wrapEnabled=t},ft=()=>b.records.wrapEnabled!==void 0?b.records.wrapEnabled:lt().sequence.wrap,Ge=function(){b.reset(),we()},Xe=function(t){const e=t.trim(),o={text:e.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:e.match(/^:?wrap:/)!==null?!0:e.match(/^:?nowrap:/)!==null?!1:void 0};return K.debug("parseMessage:",o),o},Je=function(t){const e=t.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let o=e!=null&&e[1]?e[1].trim():"transparent",r=e!=null&&e[2]?e[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",o)||(o="transparent",r=t.trim());else{const s=new Option().style;s.color=o,s.color!==o&&(o="transparent",r=t.trim())}return{color:o,text:r!==void 0?Pt(r.replace(/^:?(?:no)?wrap:/,""),lt()):void 0,wrap:r!==void 0?r.match(/^:?wrap:/)!==null?!0:r.match(/^:?nowrap:/)!==null?!1:void 0:void 0}},bt={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32},Ze={FILLED:0,OPEN:1},Qe={LEFTOF:0,RIGHTOF:1,OVER:2},jt=function(t,e,o){const r={actor:t,placement:e,message:o.text,wrap:o.wrap===void 0&&ft()||!!o.wrap},s=[].concat(t,t);b.records.notes.push(r),b.records.messages.push({from:s[0],to:s[1],message:o.text,wrap:o.wrap===void 0&&ft()||!!o.wrap,type:bt.NOTE,placement:e})},$t=function(t,e){const o=mt(t);try{let r=Pt(e.text,lt());r=r.replace(/&/g,"&"),r=r.replace(/=/g,"=");const s=JSON.parse(r);Ft(o,s)}catch(r){K.error("error while parsing actor link text",r)}},je=function(t,e){const o=mt(t);try{const l={};let h=Pt(e.text,lt());var r=h.indexOf("@");h=h.replace(/&/g,"&"),h=h.replace(/=/g,"=");var s=h.slice(0,r-1).trim(),a=h.slice(r+1).trim();l[s]=a,Ft(o,l)}catch(l){K.error("error while parsing actor link text",l)}};function Ft(t,e){if(t.links==null)t.links=e;else for(let o in e)t.links[o]=e[o]}const te=function(t,e){const o=mt(t);try{let r=Pt(e.text,lt());const s=JSON.parse(r);ee(o,s)}catch(r){K.error("error while parsing actor properties text",r)}};function ee(t,e){if(t.properties==null)t.properties=e;else for(let o in e)t.properties[o]=e[o]}function $e(){b.records.currentBox=void 0}const re=function(t,e){const o=mt(t),r=document.getElementById(e.text);try{const s=r.innerHTML,a=JSON.parse(s);a.properties&&ee(o,a.properties),a.links&&Ft(o,a.links)}catch(s){K.error("error while parsing actor details text",s)}},t0=function(t,e){if(t!==void 0&&t.properties!==void 0)return t.properties[e]},se=function(t){if(Array.isArray(t))t.forEach(function(e){se(e)});else switch(t.type){case"sequenceIndex":b.records.messages.push({from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":Vt(t.actor,t.actor,t.description,t.draw);break;case"createParticipant":if(b.records.actors[t.actor])throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");b.records.lastCreated=t.actor,Vt(t.actor,t.actor,t.description,t.draw),b.records.createdActors[t.actor]=b.records.messages.length;break;case"destroyParticipant":b.records.lastDestroyed=t.actor,b.records.destroyedActors[t.actor]=b.records.messages.length;break;case"activeStart":C(t.actor,void 0,void 0,t.signalType);break;case"activeEnd":C(t.actor,void 0,void 0,t.signalType);break;case"addNote":jt(t.actor,t.placement,t.text);break;case"addLinks":$t(t.actor,t.text);break;case"addALink":je(t.actor,t.text);break;case"addProperties":te(t.actor,t.text);break;case"addDetails":re(t.actor,t.text);break;case"addMessage":if(b.records.lastCreated){if(t.to!==b.records.lastCreated)throw new Error("The created participant "+b.records.lastCreated+" does not have an associated creating message after its declaration. Please check the sequence diagram.");b.records.lastCreated=void 0}else if(b.records.lastDestroyed){if(t.to!==b.records.lastDestroyed&&t.from!==b.records.lastDestroyed)throw new Error("The destroyed participant "+b.records.lastDestroyed+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");b.records.lastDestroyed=void 0}C(t.from,t.to,t.msg,t.signalType,t.activate);break;case"boxStart":Me(t.boxData);break;case"boxEnd":$e();break;case"loopStart":C(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":C(void 0,void 0,void 0,t.signalType);break;case"rectStart":C(void 0,void 0,t.color,t.signalType);break;case"rectEnd":C(void 0,void 0,void 0,t.signalType);break;case"optStart":C(void 0,void 0,t.optText,t.signalType);break;case"optEnd":C(void 0,void 0,void 0,t.signalType);break;case"altStart":C(void 0,void 0,t.altText,t.signalType);break;case"else":C(void 0,void 0,t.altText,t.signalType);break;case"altEnd":C(void 0,void 0,void 0,t.signalType);break;case"setAccTitle":Jt(t.text);break;case"parStart":C(void 0,void 0,t.parText,t.signalType);break;case"and":C(void 0,void 0,t.parText,t.signalType);break;case"parEnd":C(void 0,void 0,void 0,t.signalType);break;case"criticalStart":C(void 0,void 0,t.criticalText,t.signalType);break;case"option":C(void 0,void 0,t.optionText,t.signalType);break;case"criticalEnd":C(void 0,void 0,void 0,t.signalType);break;case"breakStart":C(void 0,void 0,t.breakText,t.signalType);break;case"breakEnd":C(void 0,void 0,void 0,t.signalType);break}},Gt={addActor:Vt,addMessage:De,addSignal:C,addLinks:$t,addDetails:re,addProperties:te,autoWrap:ft,setWrap:Ke,enableSequenceNumbers:ze,disableSequenceNumbers:He,showSequenceNumbers:Ue,getMessages:Oe,getActors:Ye,getCreatedActors:Fe,getDestroyedActors:We,getActor:mt,getActorKeys:qe,getActorProperty:t0,getAccTitle:Te,getBoxes:Be,getDiagramTitle:ye,setDiagramTitle:Ee,getConfig:()=>lt().sequence,clear:Ge,parseMessage:Xe,parseBoxData:Je,LINETYPE:bt,ARROWTYPE:Ze,PLACEMENT:Qe,addNote:jt,setAccTitle:Jt,apply:se,setAccDescription:be,getAccDescription:me,hasAtLeastOneBox:Ce,hasAtLeastOneBoxWithTitle:Ve},e0=t=>`.actor { + stroke: ${t.actorBorder}; + fill: ${t.actorBkg}; + } + + text.actor > tspan { + fill: ${t.actorTextColor}; + stroke: none; + } + + .actor-line { + stroke: ${t.actorLineColor}; + } + + .messageLine0 { + stroke-width: 1.5; + stroke-dasharray: none; + stroke: ${t.signalColor}; + } + + .messageLine1 { + stroke-width: 1.5; + stroke-dasharray: 2, 2; + stroke: ${t.signalColor}; + } + + #arrowhead path { + fill: ${t.signalColor}; + stroke: ${t.signalColor}; + } + + .sequenceNumber { + fill: ${t.sequenceNumberColor}; + } + + #sequencenumber { + fill: ${t.signalColor}; + } + + #crosshead path { + fill: ${t.signalColor}; + stroke: ${t.signalColor}; + } + + .messageText { + fill: ${t.signalTextColor}; + stroke: none; + } + + .labelBox { + stroke: ${t.labelBoxBorderColor}; + fill: ${t.labelBoxBkgColor}; + } + + .labelText, .labelText > tspan { + fill: ${t.labelTextColor}; + stroke: none; + } + + .loopText, .loopText > tspan { + fill: ${t.loopTextColor}; + stroke: none; + } + + .loopLine { + stroke-width: 2px; + stroke-dasharray: 2, 2; + stroke: ${t.labelBoxBorderColor}; + fill: ${t.labelBoxBorderColor}; + } + + .note { + //stroke: #decc93; + stroke: ${t.noteBorderColor}; + fill: ${t.noteBkgColor}; + } + + .noteText, .noteText > tspan { + fill: ${t.noteTextColor}; + stroke: none; + } + + .activation0 { + fill: ${t.activationBkgColor}; + stroke: ${t.activationBorderColor}; + } + + .activation1 { + fill: ${t.activationBkgColor}; + stroke: ${t.activationBorderColor}; + } + + .activation2 { + fill: ${t.activationBkgColor}; + stroke: ${t.activationBorderColor}; + } + + .actorPopupMenu { + position: absolute; + } + + .actorPopupMenuPanel { + position: absolute; + fill: ${t.actorBkg}; + box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); + filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4)); +} + .actor-man line { + stroke: ${t.actorBorder}; + fill: ${t.actorBkg}; + } + .actor-man circle, line { + stroke: ${t.actorBorder}; + fill: ${t.actorBkg}; + stroke-width: 2px; + } +`,r0=e0,ut=18*2,ie="actor-top",ae="actor-bottom",Wt=function(t,e){return Pe(t,e)},s0=function(t,e,o,r,s){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};const a=e.links,l=e.actorCnt,h=e.rectData;var p="none";s&&(p="block !important");const i=t.append("g");i.attr("id","actor"+l+"_popup"),i.attr("class","actorPopupMenu"),i.attr("display",p);var g="";h.class!==void 0&&(g=" "+h.class);let E=h.width>o?h.width:o;const u=i.append("rect");if(u.attr("class","actorPopupMenuPanel"+g),u.attr("x",h.x),u.attr("y",h.height),u.attr("fill",h.fill),u.attr("stroke",h.stroke),u.attr("width",E),u.attr("height",h.height),u.attr("rx",h.rx),u.attr("ry",h.ry),a!=null){var x=20;for(let A in a){var m=i.append("a"),P=Zt.sanitizeUrl(a[A]);m.attr("xlink:href",P),m.attr("target","_blank"),b0(r)(A,m,h.x+10,h.height+x,E,20,{class:"actor"},r),x+=30}}return u.attr("height",x),{height:h.height+x,width:E}},i0=function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},yt=function(t,e){let o=0,r=0;const s=e.text.split(v.lineBreakRegex),[a,l]=Qt(e.fontSize);let h=[],p=0,i=()=>e.y;if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":i=()=>Math.round(e.y+e.textMargin);break;case"middle":case"center":i=()=>Math.round(e.y+(o+r+e.textMargin)/2);break;case"bottom":case"end":i=()=>Math.round(e.y+(o+r+2*e.textMargin)-e.textMargin);break}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle";break}for(let[g,E]of s.entries()){e.textMargin!==void 0&&e.textMargin===0&&a!==void 0&&(p=g*a);const u=t.append("text");u.attr("x",e.x),u.attr("y",i()),e.anchor!==void 0&&u.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),e.fontFamily!==void 0&&u.style("font-family",e.fontFamily),l!==void 0&&u.style("font-size",l),e.fontWeight!==void 0&&u.style("font-weight",e.fontWeight),e.fill!==void 0&&u.attr("fill",e.fill),e.class!==void 0&&u.attr("class",e.class),e.dy!==void 0?u.attr("dy",e.dy):p!==0&&u.attr("dy",p);const x=E||ke;if(e.tspan){const m=u.append("tspan");m.attr("x",e.x),e.fill!==void 0&&m.attr("fill",e.fill),m.text(x)}else u.text(x);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(r+=(u._groups||u)[0][0].getBBox().height,o=r),h.push(u)}return h},ne=function(t,e){function o(s,a,l,h,p){return s+","+a+" "+(s+l)+","+a+" "+(s+l)+","+(a+h-p)+" "+(s+l-p*1.2)+","+(a+h)+" "+s+","+(a+h)}const r=t.append("polygon");return r.attr("points",o(e.x,e.y,e.width,e.height,7)),r.attr("class","labelBox"),e.y=e.y+e.height/2,yt(t,e),r};let st=-1;const oe=(t,e,o,r)=>{t.select&&o.forEach(s=>{const a=e[s],l=t.select("#actor"+a.actorCnt);!r.mirrorActors&&a.stopy?l.attr("y2",a.stopy+a.height/2):r.mirrorActors&&l.attr("y2",a.stopy)})},a0=function(t,e,o,r){const s=r?e.stopy:e.starty,a=e.x+e.width/2,l=s+5,h=t.append("g").lower();var p=h;r||(st++,Object.keys(e.links||{}).length&&!o.forceMenus&&p.attr("onclick",i0(`actor${st}_popup`)).attr("cursor","pointer"),p.append("line").attr("id","actor"+st).attr("x1",a).attr("y1",l).attr("x2",a).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),p=h.append("g"),e.actorCnt=st,e.links!=null&&p.attr("id","root-"+st));const i=Lt();var g="actor";e.properties!=null&&e.properties.class?g=e.properties.class:i.fill="#eaeaea",r?g+=` ${ae}`:g+=` ${ie}`,i.x=e.x,i.y=s,i.width=e.width,i.height=e.height,i.class=g,i.rx=3,i.ry=3;const E=Wt(p,i);if(e.rectData=i,e.properties!=null&&e.properties.icon){const x=e.properties.icon.trim();x.charAt(0)==="@"?Ie(p,i.x+i.width-20,i.y+10,x.substr(1)):Ae(p,i.x+i.width-20,i.y+10,x)}qt(o)(e.description,p,i.x,i.y,i.width,i.height,{class:"actor"},o);let u=e.height;if(E.node){const x=E.node().getBBox();e.height=x.height,u=x.height}return u},n0=function(t,e,o,r){const s=r?e.stopy:e.starty,a=e.x+e.width/2,l=s+80;t.lower(),r||(st++,t.append("line").attr("id","actor"+st).attr("x1",a).attr("y1",l).attr("x2",a).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),e.actorCnt=st);const h=t.append("g");let p="actor-man";r?p+=` ${ae}`:p+=` ${ie}`,h.attr("class",p);const i=Lt();i.x=e.x,i.y=s,i.fill="#eaeaea",i.width=e.width,i.height=e.height,i.class="actor",i.rx=3,i.ry=3,h.append("line").attr("id","actor-man-torso"+st).attr("x1",a).attr("y1",s+25).attr("x2",a).attr("y2",s+45),h.append("line").attr("id","actor-man-arms"+st).attr("x1",a-ut/2).attr("y1",s+33).attr("x2",a+ut/2).attr("y2",s+33),h.append("line").attr("x1",a-ut/2).attr("y1",s+60).attr("x2",a).attr("y2",s+45),h.append("line").attr("x1",a).attr("y1",s+45).attr("x2",a+ut/2-2).attr("y2",s+60);const g=h.append("circle");g.attr("cx",e.x+e.width/2),g.attr("cy",s+10),g.attr("r",15),g.attr("width",e.width),g.attr("height",e.height);const E=h.node().getBBox();return e.height=E.height,qt(o)(e.description,h,i.x,i.y+35,i.width,i.height,{class:"actor"},o),e.height},o0=function(t,e,o,r){switch(e.type){case"actor":return n0(t,e,o,r);case"participant":return a0(t,e,o,r)}},c0=function(t,e,o){const s=t.append("g");ce(s,e),e.name&&qt(o)(e.name,s,e.x,e.y+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},o),s.lower()},l0=function(t){return t.append("g")},h0=function(t,e,o,r,s){const a=Lt(),l=e.anchored;a.x=e.startx,a.y=e.starty,a.class="activation"+s%3,a.width=e.stopx-e.startx,a.height=o-e.starty,Wt(l,a)},d0=function(t,e,o,r){const{boxMargin:s,boxTextMargin:a,labelBoxHeight:l,labelBoxWidth:h,messageFontFamily:p,messageFontSize:i,messageFontWeight:g}=r,E=t.append("g"),u=function(P,A,D,S){return E.append("line").attr("x1",P).attr("y1",A).attr("x2",D).attr("y2",S).attr("class","loopLine")};u(e.startx,e.starty,e.stopx,e.starty),u(e.stopx,e.starty,e.stopx,e.stopy),u(e.startx,e.stopy,e.stopx,e.stopy),u(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0&&e.sections.forEach(function(P){u(e.startx,P.y,e.stopx,P.y).style("stroke-dasharray","3, 3")});let x=Yt();x.text=o,x.x=e.startx,x.y=e.starty,x.fontFamily=p,x.fontSize=i,x.fontWeight=g,x.anchor="middle",x.valign="middle",x.tspan=!1,x.width=h||50,x.height=l||20,x.textMargin=a,x.class="labelText",ne(E,x),x=le(),x.text=e.title,x.x=e.startx+h/2+(e.stopx-e.startx)/2,x.y=e.starty+s+a,x.anchor="middle",x.valign="middle",x.textMargin=a,x.class="loopText",x.fontFamily=p,x.fontSize=i,x.fontWeight=g,x.wrap=!0;let m=yt(E,x);return e.sectionTitles!==void 0&&e.sectionTitles.forEach(function(P,A){if(P.message){x.text=P.message,x.x=e.startx+(e.stopx-e.startx)/2,x.y=e.sections[A].y+s+a,x.class="loopText",x.anchor="middle",x.valign="middle",x.tspan=!1,x.fontFamily=p,x.fontSize=i,x.fontWeight=g,x.wrap=e.wrap,m=yt(E,x);let D=Math.round(m.map(S=>(S._groups||S)[0][0].getBBox().height).reduce((S,W)=>S+W));e.sections[A].height+=D-(s+a)}}),e.height=Math.round(e.stopy-e.starty),E},ce=function(t,e){Le(t,e)},p0=function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},u0=function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},f0=function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},g0=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},x0=function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},T0=function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},y0=function(t){t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},le=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},E0=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},qt=function(){function t(s,a,l,h,p,i,g){const E=a.append("text").attr("x",l+p/2).attr("y",h+i/2+5).style("text-anchor","middle").text(s);r(E,g)}function e(s,a,l,h,p,i,g,E){const{actorFontSize:u,actorFontFamily:x,actorFontWeight:m}=E,[P,A]=Qt(u),D=s.split(v.lineBreakRegex);for(let S=0;S<D.length;S++){const W=S*P-P*(D.length-1)/2,M=a.append("text").attr("x",l+p/2).attr("y",h).style("text-anchor","middle").style("font-size",A).style("font-weight",m).style("font-family",x);M.append("tspan").attr("x",l+p/2).attr("dy",W).text(D[S]),M.attr("y",h+i/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(M,g)}}function o(s,a,l,h,p,i,g,E){const u=a.append("switch"),m=u.append("foreignObject").attr("x",l).attr("y",h).attr("width",p).attr("height",i).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");m.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),e(s,u,l,h,p,i,g,E),r(m,g)}function r(s,a){for(const l in a)a.hasOwnProperty(l)&&s.attr(l,a[l])}return function(s){return s.textPlacement==="fo"?o:s.textPlacement==="old"?t:e}}(),b0=function(){function t(s,a,l,h,p,i,g){const E=a.append("text").attr("x",l).attr("y",h).style("text-anchor","start").text(s);r(E,g)}function e(s,a,l,h,p,i,g,E){const{actorFontSize:u,actorFontFamily:x,actorFontWeight:m}=E,P=s.split(v.lineBreakRegex);for(let A=0;A<P.length;A++){const D=A*u-u*(P.length-1)/2,S=a.append("text").attr("x",l).attr("y",h).style("text-anchor","start").style("font-size",u).style("font-weight",m).style("font-family",x);S.append("tspan").attr("x",l).attr("dy",D).text(P[A]),S.attr("y",h+i/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(S,g)}}function o(s,a,l,h,p,i,g,E){const u=a.append("switch"),m=u.append("foreignObject").attr("x",l).attr("y",h).attr("width",p).attr("height",i).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");m.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),e(s,u,l,h,p,i,g,E),r(m,g)}function r(s,a){for(const l in a)a.hasOwnProperty(l)&&s.attr(l,a[l])}return function(s){return s.textPlacement==="fo"?o:s.textPlacement==="old"?t:e}}(),V={drawRect:Wt,drawText:yt,drawLabel:ne,drawActor:o0,drawBox:c0,drawPopup:s0,anchorElement:l0,drawActivation:h0,drawLoop:d0,drawBackgroundRect:ce,insertArrowHead:g0,insertArrowFilledHead:x0,insertSequenceNumber:T0,insertArrowCrossHead:y0,insertDatabaseIcon:p0,insertComputerIcon:u0,insertClockIcon:f0,getTextObj:le,getNoteRect:E0,fixLifeLineHeights:oe,sanitizeUrl:Zt.sanitizeUrl};let n={};const f={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(t=>t.height||0))+(this.loops.length===0?0:this.loops.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.messages.length===0?0:this.messages.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.notes.length===0?0:this.notes.map(t=>t.height||0).reduce((t,e)=>t+e))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(t){this.boxes.push(t)},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,de(lt())},updateVal:function(t,e,o,r){t[e]===void 0?t[e]=o:t[e]=r(o,t[e])},updateBounds:function(t,e,o,r){const s=this;let a=0;function l(h){return function(i){a++;const g=s.sequenceItems.length-a+1;s.updateVal(i,"starty",e-g*n.boxMargin,Math.min),s.updateVal(i,"stopy",r+g*n.boxMargin,Math.max),s.updateVal(f.data,"startx",t-g*n.boxMargin,Math.min),s.updateVal(f.data,"stopx",o+g*n.boxMargin,Math.max),h!=="activation"&&(s.updateVal(i,"startx",t-g*n.boxMargin,Math.min),s.updateVal(i,"stopx",o+g*n.boxMargin,Math.max),s.updateVal(f.data,"starty",e-g*n.boxMargin,Math.min),s.updateVal(f.data,"stopy",r+g*n.boxMargin,Math.max))}}this.sequenceItems.forEach(l()),this.activations.forEach(l("activation"))},insert:function(t,e,o,r){const s=v.getMin(t,o),a=v.getMax(t,o),l=v.getMin(e,r),h=v.getMax(e,r);this.updateVal(f.data,"startx",s,Math.min),this.updateVal(f.data,"starty",l,Math.min),this.updateVal(f.data,"stopx",a,Math.max),this.updateVal(f.data,"stopy",h,Math.max),this.updateBounds(s,l,a,h)},newActivation:function(t,e,o){const r=o[t.from.actor],s=It(t.from.actor).length||0,a=r.x+r.width/2+(s-1)*n.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+n.activationWidth,stopy:void 0,actor:t.from.actor,anchored:V.anchorElement(e)})},endActivation:function(t){const e=this.activations.map(function(o){return o.actor}).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},isLoopOverlap:function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},addSectionToLoop:function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:f.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},saveVerticalPos:function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},resetVerticalPos:function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=v.getMax(this.data.stopy,this.verticalPos)},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},m0=function(t,e){f.bumpVerticalPos(n.boxMargin),e.height=n.boxMargin,e.starty=f.getVerticalPos();const o=Lt();o.x=e.startx,o.y=e.starty,o.width=e.width||n.width,o.class="note";const r=t.append("g"),s=V.drawRect(r,o),a=Yt();a.x=e.startx,a.y=e.starty,a.width=o.width,a.dy="1em",a.text=e.message,a.class="noteText",a.fontFamily=n.noteFontFamily,a.fontSize=n.noteFontSize,a.fontWeight=n.noteFontWeight,a.anchor=n.noteAlign,a.textMargin=n.noteMargin,a.valign="center";const l=yt(r,a),h=Math.round(l.map(p=>(p._groups||p)[0][0].getBBox().height).reduce((p,i)=>p+i));s.attr("height",h+2*n.noteMargin),e.height+=h+2*n.noteMargin,f.bumpVerticalPos(h+2*n.noteMargin),e.stopy=e.starty+h+2*n.noteMargin,e.stopx=e.startx+o.width,f.insert(e.startx,e.starty,e.stopx,e.stopy),f.models.addNote(e)},gt=t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),Tt=t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),Ot=t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight});function w0(t,e){f.bumpVerticalPos(10);const{startx:o,stopx:r,message:s}=e,a=v.splitBreaks(s).length,l=B.calculateTextDimensions(s,gt(n)),h=l.height/a;e.height+=h,f.bumpVerticalPos(h);let p,i=l.height-10;const g=l.width;if(o===r){p=f.getVerticalPos()+i,n.rightAngles||(i+=n.boxMargin,p=f.getVerticalPos()+i),i+=30;const E=v.getMax(g/2,n.width/2);f.insert(o-E,f.getVerticalPos()-10+i,r+E,f.getVerticalPos()+30+i)}else i+=n.boxMargin,p=f.getVerticalPos()+i,f.insert(o,p-10,r,p);return f.bumpVerticalPos(i),e.height+=i,e.stopy=e.starty+e.height,f.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),p}const v0=function(t,e,o,r){const{startx:s,stopx:a,starty:l,message:h,type:p,sequenceIndex:i,sequenceVisible:g}=e,E=B.calculateTextDimensions(h,gt(n)),u=Yt();u.x=s,u.y=l+10,u.width=a-s,u.class="messageText",u.dy="1em",u.text=h,u.fontFamily=n.messageFontFamily,u.fontSize=n.messageFontSize,u.fontWeight=n.messageFontWeight,u.anchor=n.messageAlign,u.valign="center",u.textMargin=n.wrapPadding,u.tspan=!1,yt(t,u);const x=E.width;let m;s===a?n.rightAngles?m=t.append("path").attr("d",`M ${s},${o} H ${s+v.getMax(n.width/2,x/2)} V ${o+25} H ${s}`):m=t.append("path").attr("d","M "+s+","+o+" C "+(s+60)+","+(o-10)+" "+(s+60)+","+(o+30)+" "+s+","+(o+20)):(m=t.append("line"),m.attr("x1",s),m.attr("y1",o),m.attr("x2",a),m.attr("y2",o)),p===r.db.LINETYPE.DOTTED||p===r.db.LINETYPE.DOTTED_CROSS||p===r.db.LINETYPE.DOTTED_POINT||p===r.db.LINETYPE.DOTTED_OPEN?(m.style("stroke-dasharray","3, 3"),m.attr("class","messageLine1")):m.attr("class","messageLine0");let P="";n.arrowMarkerAbsolute&&(P=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,P=P.replace(/\(/g,"\\("),P=P.replace(/\)/g,"\\)")),m.attr("stroke-width",2),m.attr("stroke","none"),m.style("fill","none"),(p===r.db.LINETYPE.SOLID||p===r.db.LINETYPE.DOTTED)&&m.attr("marker-end","url("+P+"#arrowhead)"),(p===r.db.LINETYPE.SOLID_POINT||p===r.db.LINETYPE.DOTTED_POINT)&&m.attr("marker-end","url("+P+"#filled-head)"),(p===r.db.LINETYPE.SOLID_CROSS||p===r.db.LINETYPE.DOTTED_CROSS)&&m.attr("marker-end","url("+P+"#crosshead)"),(g||n.showSequenceNumbers)&&(m.attr("marker-start","url("+P+"#sequencenumber)"),t.append("text").attr("x",s).attr("y",o+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(i))},_0=function(t,e,o,r,s,a,l){let h=0,p=0,i,g=0;for(const E of r){const u=e[E],x=u.box;i&&i!=x&&(l||f.models.addBox(i),p+=n.boxMargin+i.margin),x&&x!=i&&(l||(x.x=h+p,x.y=s),p+=x.margin),u.width=u.width||n.width,u.height=v.getMax(u.height||n.height,n.height),u.margin=u.margin||n.actorMargin,g=v.getMax(g,u.height),o[u.name]&&(p+=u.width/2),u.x=h+p,u.starty=f.getVerticalPos(),f.insert(u.x,s,u.x+u.width,u.height),h+=u.width+p,u.box&&(u.box.width=h+x.margin-u.box.x),p=u.margin,i=u.box,f.models.addActor(u)}i&&!l&&f.models.addBox(i),f.bumpVerticalPos(g)},Bt=function(t,e,o,r){if(r){let s=0;f.bumpVerticalPos(n.boxMargin*2);for(const a of o){const l=e[a];l.stopy||(l.stopy=f.getVerticalPos());const h=V.drawActor(t,l,n,!0);s=v.getMax(s,h)}f.bumpVerticalPos(s+n.boxMargin)}else for(const s of o){const a=e[s];V.drawActor(t,a,n,!1)}},he=function(t,e,o,r){let s=0,a=0;for(const l of o){const h=e[l],p=I0(h),i=V.drawPopup(t,h,p,n,n.forceMenus,r);i.height>s&&(s=i.height),i.width+h.x>a&&(a=i.width+h.x)}return{maxHeight:s,maxWidth:a}},de=function(t){ve(n,t),t.fontFamily&&(n.actorFontFamily=n.noteFontFamily=n.messageFontFamily=t.fontFamily),t.fontSize&&(n.actorFontSize=n.noteFontSize=n.messageFontSize=t.fontSize),t.fontWeight&&(n.actorFontWeight=n.noteFontWeight=n.messageFontWeight=t.fontWeight)},It=function(t){return f.activations.filter(function(e){return e.actor===t})},Xt=function(t,e){const o=e[t],r=It(t),s=r.reduce(function(l,h){return v.getMin(l,h.startx)},o.x+o.width/2-1),a=r.reduce(function(l,h){return v.getMax(l,h.stopx)},o.x+o.width/2+1);return[s,a]};function rt(t,e,o,r,s){f.bumpVerticalPos(o);let a=r;if(e.id&&e.message&&t[e.id]){const l=t[e.id].width,h=gt(n);e.message=B.wrapLabel(`[${e.message}]`,l-2*n.wrapPadding,h),e.width=l,e.wrap=!0;const p=B.calculateTextDimensions(e.message,h),i=v.getMax(p.height,n.labelBoxHeight);a=r+i,K.debug(`${i} - ${e.message}`)}s(e),f.bumpVerticalPos(a)}function k0(t,e,o,r,s,a,l){function h(i,g){i.x<s[t.from].x?(f.insert(e.stopx-g,e.starty,e.startx,e.stopy+i.height/2+n.noteMargin),e.stopx=e.stopx+g):(f.insert(e.startx,e.starty,e.stopx+g,e.stopy+i.height/2+n.noteMargin),e.stopx=e.stopx-g)}function p(i,g){i.x<s[t.to].x?(f.insert(e.startx-g,e.starty,e.stopx,e.stopy+i.height/2+n.noteMargin),e.startx=e.startx+g):(f.insert(e.stopx,e.starty,e.startx+g,e.stopy+i.height/2+n.noteMargin),e.startx=e.startx-g)}if(a[t.to]==r){const i=s[t.to],g=i.type=="actor"?ut/2+3:i.width/2+3;h(i,g),i.starty=o-i.height/2,f.bumpVerticalPos(i.height/2)}else if(l[t.from]==r){const i=s[t.from];if(n.mirrorActors){const g=i.type=="actor"?ut/2:i.width/2;p(i,g)}i.stopy=o-i.height/2,f.bumpVerticalPos(i.height/2)}else if(l[t.to]==r){const i=s[t.to];if(n.mirrorActors){const g=i.type=="actor"?ut/2+3:i.width/2+3;h(i,g)}i.stopy=o-i.height/2,f.bumpVerticalPos(i.height/2)}}const P0=function(t,e,o,r){const{securityLevel:s,sequence:a}=lt();n=a;let l;s==="sandbox"&&(l=kt("#i"+e));const h=s==="sandbox"?kt(l.nodes()[0].contentDocument.body):kt("body"),p=s==="sandbox"?l.nodes()[0].contentDocument:document;f.init(),K.debug(r.db);const i=s==="sandbox"?h.select(`[id="${e}"]`):kt(`[id="${e}"]`),g=r.db.getActors(),E=r.db.getCreatedActors(),u=r.db.getDestroyedActors(),x=r.db.getBoxes();let m=r.db.getActorKeys();const P=r.db.getMessages(),A=r.db.getDiagramTitle(),D=r.db.hasAtLeastOneBox(),S=r.db.hasAtLeastOneBoxWithTitle(),W=L0(g,P,r);if(n.height=A0(g,W,x),V.insertComputerIcon(i),V.insertDatabaseIcon(i),V.insertClockIcon(i),D&&(f.bumpVerticalPos(n.boxMargin),S&&f.bumpVerticalPos(x[0].textMaxHeight)),n.hideUnusedParticipants===!0){const y=new Set;P.forEach(_=>{y.add(_.from),y.add(_.to)}),m=m.filter(_=>y.has(_))}_0(i,g,E,m,0,P,!1);const M=M0(P,g,W,r);V.insertArrowHead(i),V.insertArrowCrossHead(i),V.insertArrowFilledHead(i),V.insertSequenceNumber(i);function tt(y,_){const I=f.endActivation(y);I.starty+18>_&&(I.starty=_-6,_+=12),V.drawActivation(i,I,_,n,It(y.from.actor).length),f.insert(I.startx,_-10,I.stopx,_)}let q=1,G=1;const Z=[],z=[];P.forEach(function(y,_){let I,ht,et;switch(y.type){case r.db.LINETYPE.NOTE:f.resetVerticalPos(),ht=y.noteModel,m0(i,ht);break;case r.db.LINETYPE.ACTIVE_START:f.newActivation(y,i,g);break;case r.db.LINETYPE.ACTIVE_END:tt(y,f.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:rt(M,y,n.boxMargin,n.boxMargin+n.boxTextMargin,N=>f.newLoop(N));break;case r.db.LINETYPE.LOOP_END:I=f.endLoop(),V.drawLoop(i,I,"loop",n),f.bumpVerticalPos(I.stopy-f.getVerticalPos()),f.models.addLoop(I);break;case r.db.LINETYPE.RECT_START:rt(M,y,n.boxMargin,n.boxMargin,N=>f.newLoop(void 0,N.message));break;case r.db.LINETYPE.RECT_END:I=f.endLoop(),z.push(I),f.models.addLoop(I),f.bumpVerticalPos(I.stopy-f.getVerticalPos());break;case r.db.LINETYPE.OPT_START:rt(M,y,n.boxMargin,n.boxMargin+n.boxTextMargin,N=>f.newLoop(N));break;case r.db.LINETYPE.OPT_END:I=f.endLoop(),V.drawLoop(i,I,"opt",n),f.bumpVerticalPos(I.stopy-f.getVerticalPos()),f.models.addLoop(I);break;case r.db.LINETYPE.ALT_START:rt(M,y,n.boxMargin,n.boxMargin+n.boxTextMargin,N=>f.newLoop(N));break;case r.db.LINETYPE.ALT_ELSE:rt(M,y,n.boxMargin+n.boxTextMargin,n.boxMargin,N=>f.addSectionToLoop(N));break;case r.db.LINETYPE.ALT_END:I=f.endLoop(),V.drawLoop(i,I,"alt",n),f.bumpVerticalPos(I.stopy-f.getVerticalPos()),f.models.addLoop(I);break;case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:rt(M,y,n.boxMargin,n.boxMargin+n.boxTextMargin,N=>f.newLoop(N)),f.saveVerticalPos();break;case r.db.LINETYPE.PAR_AND:rt(M,y,n.boxMargin+n.boxTextMargin,n.boxMargin,N=>f.addSectionToLoop(N));break;case r.db.LINETYPE.PAR_END:I=f.endLoop(),V.drawLoop(i,I,"par",n),f.bumpVerticalPos(I.stopy-f.getVerticalPos()),f.models.addLoop(I);break;case r.db.LINETYPE.AUTONUMBER:q=y.message.start||q,G=y.message.step||G,y.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:rt(M,y,n.boxMargin,n.boxMargin+n.boxTextMargin,N=>f.newLoop(N));break;case r.db.LINETYPE.CRITICAL_OPTION:rt(M,y,n.boxMargin+n.boxTextMargin,n.boxMargin,N=>f.addSectionToLoop(N));break;case r.db.LINETYPE.CRITICAL_END:I=f.endLoop(),V.drawLoop(i,I,"critical",n),f.bumpVerticalPos(I.stopy-f.getVerticalPos()),f.models.addLoop(I);break;case r.db.LINETYPE.BREAK_START:rt(M,y,n.boxMargin,n.boxMargin+n.boxTextMargin,N=>f.newLoop(N));break;case r.db.LINETYPE.BREAK_END:I=f.endLoop(),V.drawLoop(i,I,"break",n),f.bumpVerticalPos(I.stopy-f.getVerticalPos()),f.models.addLoop(I);break;default:try{et=y.msgModel,et.starty=f.getVerticalPos(),et.sequenceIndex=q,et.sequenceVisible=r.db.showSequenceNumbers();const N=w0(i,et);k0(y,et,N,_,g,E,u),Z.push({messageModel:et,lineStartY:N}),f.models.addMessage(et)}catch(N){K.error("error while drawing message",N)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT].includes(y.type)&&(q=q+G)}),K.debug("createdActors",E),K.debug("destroyedActors",u),Bt(i,g,m,!1),Z.forEach(y=>v0(i,y.messageModel,y.lineStartY,r)),n.mirrorActors&&Bt(i,g,m,!0),z.forEach(y=>V.drawBackgroundRect(i,y)),oe(i,g,m,n),f.models.boxes.forEach(function(y){y.height=f.getVerticalPos()-y.y,f.insert(y.x,y.y,y.x+y.width,y.height),y.startx=y.x,y.starty=y.y,y.stopx=y.startx+y.width,y.stopy=y.starty+y.height,y.stroke="rgb(0,0,0, 0.5)",V.drawBox(i,y,n)}),D&&f.bumpVerticalPos(n.boxMargin);const F=he(i,g,m,p),{bounds:O}=f.getBounds();let X=O.stopy-O.starty;X<F.maxHeight&&(X=F.maxHeight);let H=X+2*n.diagramMarginY;n.mirrorActors&&(H=H-n.boxMargin+n.bottomMarginAdj);let J=O.stopx-O.startx;J<F.maxWidth&&(J=F.maxWidth);const Q=J+2*n.diagramMarginX;A&&i.append("text").text(A).attr("x",(O.stopx-O.startx)/2-2*n.diagramMarginX).attr("y",-25),_e(i,H,Q,n.useMaxWidth);const j=A?40:0;i.attr("viewBox",O.startx-n.diagramMarginX+" -"+(n.diagramMarginY+j)+" "+Q+" "+(H+j)),K.debug("models:",f.models)};function L0(t,e,o){const r={};return e.forEach(function(s){if(t[s.to]&&t[s.from]){const a=t[s.to];if(s.placement===o.db.PLACEMENT.LEFTOF&&!a.prevActor||s.placement===o.db.PLACEMENT.RIGHTOF&&!a.nextActor)return;const l=s.placement!==void 0,h=!l,p=l?Tt(n):gt(n),i=s.wrap?B.wrapLabel(s.message,n.width-2*n.wrapPadding,p):s.message,E=B.calculateTextDimensions(i,p).width+2*n.wrapPadding;h&&s.from===a.nextActor?r[s.to]=v.getMax(r[s.to]||0,E):h&&s.from===a.prevActor?r[s.from]=v.getMax(r[s.from]||0,E):h&&s.from===s.to?(r[s.from]=v.getMax(r[s.from]||0,E/2),r[s.to]=v.getMax(r[s.to]||0,E/2)):s.placement===o.db.PLACEMENT.RIGHTOF?r[s.from]=v.getMax(r[s.from]||0,E):s.placement===o.db.PLACEMENT.LEFTOF?r[a.prevActor]=v.getMax(r[a.prevActor]||0,E):s.placement===o.db.PLACEMENT.OVER&&(a.prevActor&&(r[a.prevActor]=v.getMax(r[a.prevActor]||0,E/2)),a.nextActor&&(r[s.from]=v.getMax(r[s.from]||0,E/2)))}}),K.debug("maxMessageWidthPerActor:",r),r}const I0=function(t){let e=0;const o=Ot(n);for(const r in t.links){const a=B.calculateTextDimensions(r,o).width+2*n.wrapPadding+2*n.boxMargin;e<a&&(e=a)}return e};function A0(t,e,o){let r=0;Object.keys(t).forEach(a=>{const l=t[a];l.wrap&&(l.description=B.wrapLabel(l.description,n.width-2*n.wrapPadding,Ot(n)));const h=B.calculateTextDimensions(l.description,Ot(n));l.width=l.wrap?n.width:v.getMax(n.width,h.width+2*n.wrapPadding),l.height=l.wrap?v.getMax(h.height,n.height):n.height,r=v.getMax(r,l.height)});for(const a in e){const l=t[a];if(!l)continue;const h=t[l.nextActor];if(!h){const E=e[a]+n.actorMargin-l.width/2;l.margin=v.getMax(E,n.actorMargin);continue}const i=e[a]+n.actorMargin-l.width/2-h.width/2;l.margin=v.getMax(i,n.actorMargin)}let s=0;return o.forEach(a=>{const l=gt(n);let h=a.actorKeys.reduce((g,E)=>g+=t[E].width+(t[E].margin||0),0);h-=2*n.boxTextMargin,a.wrap&&(a.name=B.wrapLabel(a.name,h-2*n.wrapPadding,l));const p=B.calculateTextDimensions(a.name,l);s=v.getMax(p.height,s);const i=v.getMax(h,p.width+2*n.wrapPadding);if(a.margin=n.boxTextMargin,h<i){const g=(i-h)/2;a.margin+=g}}),o.forEach(a=>a.textMaxHeight=s),v.getMax(r,n.height)}const N0=function(t,e,o){const r=e[t.from].x,s=e[t.to].x,a=t.wrap&&t.message;let l=B.calculateTextDimensions(a?B.wrapLabel(t.message,n.width,Tt(n)):t.message,Tt(n));const h={width:a?n.width:v.getMax(n.width,l.width+2*n.noteMargin),height:0,startx:e[t.from].x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===o.db.PLACEMENT.RIGHTOF?(h.width=a?v.getMax(n.width,l.width):v.getMax(e[t.from].width/2+e[t.to].width/2,l.width+2*n.noteMargin),h.startx=r+(e[t.from].width+n.actorMargin)/2):t.placement===o.db.PLACEMENT.LEFTOF?(h.width=a?v.getMax(n.width,l.width+2*n.noteMargin):v.getMax(e[t.from].width/2+e[t.to].width/2,l.width+2*n.noteMargin),h.startx=r-h.width+(e[t.from].width-n.actorMargin)/2):t.to===t.from?(l=B.calculateTextDimensions(a?B.wrapLabel(t.message,v.getMax(n.width,e[t.from].width),Tt(n)):t.message,Tt(n)),h.width=a?v.getMax(n.width,e[t.from].width):v.getMax(e[t.from].width,n.width,l.width+2*n.noteMargin),h.startx=r+(e[t.from].width-h.width)/2):(h.width=Math.abs(r+e[t.from].width/2-(s+e[t.to].width/2))+n.actorMargin,h.startx=r<s?r+e[t.from].width/2-n.actorMargin/2:s+e[t.to].width/2-n.actorMargin/2),a&&(h.message=B.wrapLabel(t.message,h.width-2*n.wrapPadding,Tt(n))),K.debug(`NM:[${h.startx},${h.stopx},${h.starty},${h.stopy}:${h.width},${h.height}=${t.message}]`),h},S0=function(t,e,o){if(![o.db.LINETYPE.SOLID_OPEN,o.db.LINETYPE.DOTTED_OPEN,o.db.LINETYPE.SOLID,o.db.LINETYPE.DOTTED,o.db.LINETYPE.SOLID_CROSS,o.db.LINETYPE.DOTTED_CROSS,o.db.LINETYPE.SOLID_POINT,o.db.LINETYPE.DOTTED_POINT].includes(t.type))return{};const[r,s]=Xt(t.from,e),[a,l]=Xt(t.to,e),h=r<=a,p=h?s:r;let i=h?a:l;const g=Math.abs(a-l)>2,E=P=>h?-P:P;t.from===t.to?i=p:(t.activate&&!g&&(i+=E(n.activationWidth/2-1)),[o.db.LINETYPE.SOLID_OPEN,o.db.LINETYPE.DOTTED_OPEN].includes(t.type)||(i+=E(3)));const u=[r,s,a,l],x=Math.abs(p-i);t.wrap&&t.message&&(t.message=B.wrapLabel(t.message,v.getMax(x+2*n.wrapPadding,n.width),gt(n)));const m=B.calculateTextDimensions(t.message,gt(n));return{width:v.getMax(t.wrap?0:m.width+2*n.wrapPadding,x+2*n.wrapPadding,n.width),height:0,startx:p,stopx:i,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,u),toBounds:Math.max.apply(null,u)}},M0=function(t,e,o,r){const s={},a=[];let l,h,p;return t.forEach(function(i){switch(i.id=B.random({length:10}),i.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:a.push({id:i.id,msg:i.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:i.message&&(l=a.pop(),s[l.id]=l,s[i.id]=l,a.push(l));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:l=a.pop(),s[l.id]=l;break;case r.db.LINETYPE.ACTIVE_START:{const E=e[i.from?i.from.actor:i.to.actor],u=It(i.from?i.from.actor:i.to.actor).length,x=E.x+E.width/2+(u-1)*n.activationWidth/2,m={startx:x,stopx:x+n.activationWidth,actor:i.from.actor,enabled:!0};f.activations.push(m)}break;case r.db.LINETYPE.ACTIVE_END:{const E=f.activations.map(u=>u.actor).lastIndexOf(i.from.actor);delete f.activations.splice(E,1)[0]}break}i.placement!==void 0?(h=N0(i,e,r),i.noteModel=h,a.forEach(E=>{l=E,l.from=v.getMin(l.from,h.startx),l.to=v.getMax(l.to,h.startx+h.width),l.width=v.getMax(l.width,Math.abs(l.from-l.to))-n.labelBoxWidth})):(p=S0(i,e,r),i.msgModel=p,p.startx&&p.stopx&&a.length>0&&a.forEach(E=>{if(l=E,p.startx===p.stopx){const u=e[i.from],x=e[i.to];l.from=v.getMin(u.x-p.width/2,u.x-u.width/2,l.from),l.to=v.getMax(x.x+p.width/2,x.x+u.width/2,l.to),l.width=v.getMax(l.width,Math.abs(l.to-l.from))-n.labelBoxWidth}else l.from=v.getMin(p.startx,l.from),l.to=v.getMax(p.stopx,l.to),l.width=v.getMax(l.width,p.width)-n.labelBoxWidth}))}),f.activations=[],K.debug("Loop type widths:",s),s},R0={bounds:f,drawActors:Bt,drawActorsPopup:he,setConf:de,draw:P0},gr={parser:Ne,db:Gt,renderer:R0,styles:r0,init:({wrap:t})=>{Gt.setWrap(t)}};export{gr as diagram}; diff --git a/assets/spring--xEiX8r3.js b/assets/spring--xEiX8r3.js new file mode 100644 index 00000000000..68ac984a68a --- /dev/null +++ b/assets/spring--xEiX8r3.js @@ -0,0 +1,9 @@ +import{r as e}from"./index-qegmBwH1.js";import{a as v,f as $,u as O,P as U,b as L}from"./motion-minimal-gJqnz197.js";function I(){const n=e.useRef(!1);return v(()=>(n.current=!0,()=>{n.current=!1}),[]),n}function S(){const n=I(),[s,t]=e.useState(0),r=e.useCallback(()=>{n.current&&t(s+1)},[s]);return[e.useCallback(()=>$.postRender(r),[r]),s]}class B extends e.Component{getSnapshotBeforeUpdate(s){const t=this.props.childRef.current;if(t&&s.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function D({children:n,isPresent:s}){const t=e.useId(),r=e.useRef(null),m=e.useRef({width:0,height:0,top:0,left:0});return e.useInsertionEffect(()=>{const{width:d,height:l,top:f,left:h}=m.current;if(s||!r.current||!d||!l)return;r.current.dataset.motionPopId=t;const a=document.createElement("style");return document.head.appendChild(a),a.sheet&&a.sheet.insertRule(` + [data-motion-pop-id="${t}"] { + position: absolute !important; + width: ${d}px !important; + height: ${l}px !important; + top: ${f}px !important; + left: ${h}px !important; + } + `),()=>{document.head.removeChild(a)}},[s]),e.createElement(B,{isPresent:s,childRef:r,sizeRef:m},e.cloneElement(n,{ref:r}))}const w=({children:n,initial:s,isPresent:t,onExitComplete:r,custom:m,presenceAffectsLayout:d,mode:l})=>{const f=O(T),h=e.useId(),a=e.useMemo(()=>({id:h,initial:s,isPresent:t,custom:m,onExitComplete:o=>{f.set(o,!0);for(const c of f.values())if(!c)return;r&&r()},register:o=>(f.set(o,!1),()=>f.delete(o))}),d?void 0:[t]);return e.useMemo(()=>{f.forEach((o,c)=>f.set(c,!1))},[t]),e.useEffect(()=>{!t&&!f.size&&r&&r()},[t]),l==="popLayout"&&(n=e.createElement(D,{isPresent:t},n)),e.createElement(U.Provider,{value:a},n)};function T(){return new Map}function A(n){return e.useEffect(()=>()=>n(),[])}const p=n=>n.key||"";function G(n,s){n.forEach(t=>{const r=p(t);s.set(r,t)})}function H(n){const s=[];return e.Children.forEach(n,t=>{e.isValidElement(t)&&s.push(t)}),s}const _=({children:n,custom:s,initial:t=!0,onExitComplete:r,exitBeforeEnter:m,presenceAffectsLayout:d=!0,mode:l="sync"})=>{const f=e.useContext(L).forceRender||S()[0],h=I(),a=H(n);let o=a;const c=e.useRef(new Map).current,R=e.useRef(o),C=e.useRef(new Map).current,y=e.useRef(!0);if(v(()=>{y.current=!1,G(a,C),R.current=o}),A(()=>{y.current=!0,C.clear(),c.clear()}),y.current)return e.createElement(e.Fragment,null,o.map(i=>e.createElement(w,{key:p(i),isPresent:!0,initial:t?void 0:!1,presenceAffectsLayout:d,mode:l},i)));o=[...o];const x=R.current.map(p),P=a.map(p),F=x.length;for(let i=0;i<F;i++){const u=x[i];P.indexOf(u)===-1&&!c.has(u)&&c.set(u,void 0)}return l==="wait"&&c.size&&(o=[]),c.forEach((i,u)=>{if(P.indexOf(u)!==-1)return;const M=C.get(u);if(!M)return;const b=x.indexOf(u);let g=i;if(!g){const K=()=>{c.delete(u);const z=Array.from(C.keys()).filter(E=>!P.includes(E));if(z.forEach(E=>C.delete(E)),R.current=a.filter(E=>{const k=p(E);return k===u||z.includes(k)}),!c.size){if(h.current===!1)return;f(),r&&r()}};g=e.createElement(w,{key:p(M),isPresent:!1,onExitComplete:K,custom:s,presenceAffectsLayout:d,mode:l},M),c.set(u,g)}o.splice(b,0,g)}),o=o.map(i=>{const u=i.key;return c.has(u)?i:e.createElement(w,{key:p(i),isPresent:!0,presenceAffectsLayout:d,mode:l},i)}),e.createElement(e.Fragment,null,c.size?o:o.map(i=>e.cloneElement(i)))},j={type:"spring",damping:24},q={type:"spring",stiffness:300,damping:20},J={duration:.35,type:"spring",stiffness:120,damping:20};export{_ as A,j as a,q as m,J as s,S as u}; diff --git a/assets/stateDiagram-43596fc0-4oCgWI2B.js b/assets/stateDiagram-43596fc0-4oCgWI2B.js new file mode 100644 index 00000000000..62af53069b6 --- /dev/null +++ b/assets/stateDiagram-43596fc0-4oCgWI2B.js @@ -0,0 +1 @@ +import{p as P,d as N,s as W}from"./styles-b2c874b6-juz_pGZF.js";import{c as t,h as H,l as b,i as R,j as T,A as v,u as U}from"./index.demo-_07sssxB.js";import{G as C}from"./graph-4EnB4jqL.js";import{l as F}from"./layout-KoXfeBJF.js";import"./owner-4YVbz2PN.js";import{l as $}from"./line-abqtiQB-.js";import"./index-qegmBwH1.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,a)=>{const s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(a.id),c=s.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),s},Y=(e,a)=>{const s=function(p,w,y){const E=p.append("tspan").attr("x",2*t().state.padding).text(w);y||E.attr("dy",t().state.textHeight)},r=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(a.descriptions[0]).node().getBBox(),l=r.height,h=e.append("text").attr("x",t().state.padding).attr("y",l+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let i=!0,o=!0;a.descriptions.forEach(function(p){i||(s(h,p,o),o=!1),i=!1});const m=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+l+t().state.dividerMargin/2).attr("y2",t().state.padding+l+t().state.dividerMargin/2).attr("class","descr-divider"),x=h.node().getBBox(),d=Math.max(x.width,r.width);return m.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+l+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,a,s)=>{const c=t().state.padding,r=2*t().state.padding,l=e.node().getBBox(),h=l.width,i=l.x,o=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(a.id),x=o.node().getBBox().width+r;let d=Math.max(x,h);d===h&&(d=d+r);let p;const w=e.node().getBBox();a.doc,p=i-c,x>h&&(p=(h-d)/2+c),Math.abs(i-w.x)<c&&x>h&&(p=i-(x-h)/2);const y=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",p).attr("y",y).attr("class",s?"alt-composit":"composit").attr("width",d).attr("height",w.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),o.attr("x",p+c),x<=h&&o.attr("x",i+(d-r)/2-x/2+c),e.insert("rect",":first-child").attr("x",p).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",p).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",w.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,a)=>{let s=t().state.forkWidth,c=t().state.forkHeight;if(a.parentId){let r=s;s=c,c=r}return e.append("rect").style("stroke","black").style("fill","black").attr("width",s).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,a,s,c)=>{let r=0;const l=c.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let h=e.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");const i=h.split(T.lineBreakRegex);let o=1.25*t().state.noteMargin;for(const m of i){const x=m.trim();if(x.length>0){const d=l.append("tspan");if(d.text(x),o===0){const p=d.node().getBBox();o+=p.height}r+=o,d.attr("x",a+t().state.noteMargin),d.attr("y",s+r+1.25*t().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:r}},j=(e,a)=>{a.attr("class","state-note");const s=a.append("rect").attr("x",0).attr("y",t().state.padding),c=a.append("g"),{textWidth:r,textHeight:l}=Z(e,0,0,c);return s.attr("height",l+2*t().state.noteMargin),s.attr("width",r+t().state.noteMargin*2),s},L=function(e,a){const s=a.id,c={id:s,label:a.id,width:0,height:0},r=e.append("g").attr("id",s).attr("class","stateGroup");a.type==="start"&&O(r),a.type==="end"&&_(r),(a.type==="fork"||a.type==="join")&&q(r,a),a.type==="note"&&j(a.note.text,r),a.type==="divider"&&X(r),a.type==="default"&&a.descriptions.length===0&&J(r,a),a.type==="default"&&a.descriptions.length>0&&Y(r,a);const l=r.node().getBBox();return c.width=l.width+2*t().state.padding,c.height=l.height+2*t().state.padding,c};let A=0;const K=function(e,a,s){const c=function(o){switch(o){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};a.points=a.points.filter(o=>!Number.isNaN(o.y));const r=a.points,l=$().x(function(o){return o.x}).y(function(o){return o.y}).curve(v),h=e.append("path").attr("d",l(r)).attr("id","edge"+A).attr("class","transition");let i="";if(t().state.arrowMarkerAbsolute&&(i=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,i=i.replace(/\(/g,"\\("),i=i.replace(/\)/g,"\\)")),h.attr("marker-end","url("+i+"#"+c(N.relationType.DEPENDENCY)+"End)"),s.title!==void 0){const o=e.append("g").attr("class","stateLabel"),{x:m,y:x}=U.calcLabelPosition(a.points),d=T.getRows(s.title);let p=0;const w=[];let y=0,E=0;for(let u=0;u<=d.length;u++){const g=o.append("text").attr("text-anchor","middle").text(d[u]).attr("x",m).attr("y",x+p),f=g.node().getBBox();y=Math.max(y,f.width),E=Math.min(E,f.x),b.info(f.x,m,x+p),p===0&&(p=g.node().getBBox().height,b.info("Title height",p,x)),w.push(g)}let k=p*d.length;if(d.length>1){const u=(d.length-1)*p*.5;w.forEach((g,f)=>g.attr("y",x+f*p-u)),k=p*d.length}const n=o.node().getBBox();o.insert("rect",":first-child").attr("class","box").attr("x",m-y/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",y+t().state.padding).attr("height",k+t().state.padding),b.info(n)}A++};let B;const z={},Q=function(){},V=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},D=function(e,a,s,c){B=t().state;const r=t().securityLevel;let l;r==="sandbox"&&(l=H("#i"+a));const h=r==="sandbox"?H(l.nodes()[0].contentDocument.body):H("body"),i=r==="sandbox"?l.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const o=h.select(`[id='${a}']`);V(o);const m=c.db.getRootDoc();G(m,o,void 0,!1,h,i,c);const x=B.padding,d=o.node().getBBox(),p=d.width+x*2,w=d.height+x*2,y=p*1.75;R(o,w,y,B.useMaxWidth),o.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+p+" "+w)},tt=e=>e?e.length*B.fontSizeFactor:1,G=(e,a,s,c,r,l,h)=>{const i=new C({compound:!0,multigraph:!0});let o,m=!0;for(o=0;o<e.length;o++)if(e[o].stmt==="relation"){m=!1;break}s?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:m?1:B.edgeLengthFactor,nodeSep:m?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:m?1:B.edgeLengthFactor,nodeSep:m?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}}),h.db.extract(e);const x=h.db.getStates(),d=h.db.getRelations(),p=Object.keys(x);for(const n of p){const u=x[n];s&&(u.parentId=s);let g;if(u.doc){let f=a.append("g").attr("id",u.id).attr("class","stateGroup");g=G(u.doc,f,u.id,!c,r,l,h);{f=I(f,u,c);let S=f.node().getBBox();g.width=S.width,g.height=S.height+B.padding/2,z[u.id]={y:B.compositTitleSize}}}else g=L(a,u);if(u.note){const f={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},S=L(a,f);u.note.position==="left of"?(i.setNode(g.id+"-note",S),i.setNode(g.id,g)):(i.setNode(g.id,g),i.setNode(g.id+"-note",S)),i.setParent(g.id,g.id+"-group"),i.setParent(g.id+"-note",g.id+"-group")}else i.setNode(g.id,g)}b.debug("Count=",i.nodeCount(),i);let w=0;d.forEach(function(n){w++,b.debug("Setting edge",n),i.setEdge(n.id1,n.id2,{relation:n,width:tt(n.title),height:B.labelHeight*T.getRows(n.title).length,labelpos:"c"},"id"+w)}),F(i),b.debug("Graph after layout",i.nodes());const y=a.node();i.nodes().forEach(function(n){n!==void 0&&i.node(n)!==void 0?(b.warn("Node "+n+": "+JSON.stringify(i.node(n))),r.select("#"+y.id+" #"+n).attr("transform","translate("+(i.node(n).x-i.node(n).width/2)+","+(i.node(n).y+(z[n]?z[n].y:0)-i.node(n).height/2)+" )"),r.select("#"+y.id+" #"+n).attr("data-x-shift",i.node(n).x-i.node(n).width/2),l.querySelectorAll("#"+y.id+" #"+n+" .divider").forEach(g=>{const f=g.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),g.setAttribute("x1",0-M+8),g.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(i.node(n)))});let E=y.getBBox();i.edges().forEach(function(n){n!==void 0&&i.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(i.edge(n))),K(a,i.edge(n),i.edge(n).relation))}),E=y.getBBox();const k={id:s||"root",label:s||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,i),k},et={setConf:Q,draw:D},Xt={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{Xt as diagram}; diff --git a/assets/stateDiagram-v2-2ead4f9c-RX6qkuV-.js b/assets/stateDiagram-v2-2ead4f9c-RX6qkuV-.js new file mode 100644 index 00000000000..a145824f851 --- /dev/null +++ b/assets/stateDiagram-v2-2ead4f9c-RX6qkuV-.js @@ -0,0 +1 @@ +import{p as J,d as v,s as Q,D as M,a as X,S as Z,b as F,c as I}from"./styles-b2c874b6-juz_pGZF.js";import{G as tt}from"./graph-4EnB4jqL.js";import{l as p,c as m,h as $,u as et,i as ot,j as R}from"./index.demo-_07sssxB.js";import{r as st}from"./index-8fae9850-Po9R6XSU.js";import"./owner-4YVbz2PN.js";import"./layout-KoXfeBJF.js";import"./index-qegmBwH1.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";import"./clone-LNmcdPHq.js";import"./edges-d417c7a0-uR8Ha2yN.js";import"./createText-423428c9-gj--wZwo.js";import"./line-abqtiQB-.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";const h="rect",x="rectWithTitle",nt="start",it="end",rt="divider",ct="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",pt=`${_}-${dt}`,H="transition",Et="note",St="note-edge",Tt=`${H} ${St}`,_t=`${_}-${Et}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,U="parent",V="note",At="state",G="----",ht=`${G}${V}`,B=`${G}${U}`,Y="fill:none",W="fill: #333",z="c",j="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},mt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function gt(t){return t==null?"":t.classes?t.classes.join(" "):""}function C(t="",n=0,e="",i=G){const r=e!==null&&e.length>0?`${i}${e}`:"";return`${At}-${t}${r}-${n}`}const A=(t,n,e,i,r,c)=>{const o=e.id,u=gt(i[o]);if(o!=="root"){let S=h;e.start===!0&&(S=nt),e.start===!1&&(S=it),e.type!==M&&(S=e.type),y[o]||(y[o]={id:o,shape:S,description:R.sanitizeText(o,m()),classes:`${u} ${pt}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=x,s.description.push(e.description)):s.description.length>0?(s.shape=x,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=R.sanitizeTextOrArray(s.description,m())),s.description.length===1&&s.shape===x&&(s.shape=h),!s.type&&e.doc&&(p.info("Setting cluster for ",o,w(e)),s.type="group",s.dir=w(e),s.shape=e.type===X?rt:ct,s.classes=s.classes+" "+Dt+" "+(c?ft:""));const T={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:C(o,d),type:s.type,padding:15};if(T.centerLabel=!0,e.note){const l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:C(o,d,V),type:s.type,padding:15},a={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+B,domId:C(o,d,U),type:"group",padding:0};d++;const D=o+B;t.setNode(D,a),t.setNode(l.id,l),t.setNode(o,T),t.setParent(o,D),t.setParent(l.id,D);let E=o,b=l.id;e.note.position==="left of"&&(E=l.id,b=o),t.setEdge(E,b,{arrowhead:"none",arrowType:"",style:Y,labelStyle:"",classes:Tt,arrowheadStyle:W,labelpos:z,labelType:j,thickness:q})}else t.setNode(o,T)}n&&n.id!=="root"&&(p.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(p.trace("Adding nodes children "),$t(t,e,e.doc,i,r,!c))},$t=(t,n,e,i,r,c)=>{p.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,i,r,c);break;case M:A(t,n,o,i,r,c);break;case Z:{A(t,n,o.state1,i,r,c),A(t,n,o.state2,i,r,c);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Y,labelStyle:"",label:R.sanitizeText(o.description,m()),arrowheadStyle:W,labelpos:z,labelType:j,thickness:q,classes:H};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},w=(t,n=I)=>{let e=n;if(t.doc)for(let i=0;i<t.doc.length;i++){const r=t.doc[i];r.stmt==="dir"&&(e=r.value)}return e},xt=async function(t,n,e,i){p.info("Drawing state diagram (v2)",n),y={},i.db.getDirection();const{securityLevel:r,state:c}=m(),o=c.nodeSpacing||50,u=c.rankSpacing||50;p.info(i.db.getRootDocV2()),i.db.extract(i.db.getRootDocV2()),p.info(i.db.getRootDocV2());const S=i.db.getStates(),s=new tt({multigraph:!0,compound:!0}).setGraph({rankdir:w(i.db.getRootDocV2()),nodesep:o,ranksep:u,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});A(s,void 0,i.db.getRootDocV2(),S,i.db,!0);let T;r==="sandbox"&&(T=$("#i"+n));const l=r==="sandbox"?$(T.nodes()[0].contentDocument.body):$("body"),a=l.select(`[id="${n}"]`),D=l.select("#"+n+" g");await st(D,s,["barb"],_,n);const E=8;et.insertTitle(a,"statediagramTitleText",c.titleTopMargin,i.db.getDiagramTitle());const b=a.node().getBBox(),N=b.width+E*2,L=b.height+E*2;a.attr("class",_);const P=a.node().getBBox();ot(a,L,N,c.useMaxWidth);const O=`${P.x-E} ${P.y-E} ${N} ${L}`;p.debug(`viewBox ${O}`),a.attr("viewBox",O);const K=document.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(const g of K){const k=g.getBBox(),f=document.createElementNS("http://www.w3.org/2000/svg",h);f.setAttribute("rx",0),f.setAttribute("ry",0),f.setAttribute("width",k.width),f.setAttribute("height",k.height),g.insertBefore(f,g.firstChild)}},Ct={setConf:yt,getClasses:mt,draw:xt},be={parser:J,db:v,renderer:Ct,styles:Q,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,v.clear()}};export{be as diagram}; diff --git a/assets/store-gmK8mRDy.js b/assets/store-gmK8mRDy.js new file mode 100644 index 00000000000..3a48164d9c1 --- /dev/null +++ b/assets/store-gmK8mRDy.js @@ -0,0 +1 @@ +import{a as l,r as w}from"./init-a0893ef4-4662SO8Z.js";var v={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const b=Symbol((v?"production":void 0)!=="production"?"RESET":""),m=(t,r,n)=>(r.has(n)?r:r.set(n,t())).get(n),p=new WeakMap,h=(t,r,n,s)=>{const a=m(()=>new WeakMap,p,r),o=m(()=>new WeakMap,a,n);return m(t,o,s)};function P(t,r,n=Object.is){return h(()=>{const s=Symbol(),a=([i,e])=>{if(e===s)return r(i);const c=r(i,e);return n(e,c)?e:c},o=l(i=>{const e=i(o),c=i(t);return c instanceof Promise||e instanceof Promise?Promise.all([c,e]).then(a):a([c,e])});return o.init=s,o},t,r,n)}const I=t=>typeof t?.then=="function";function E(t=()=>{try{return window.localStorage}catch(n){(v?"production":void 0)!=="production"&&typeof window<"u"&&console.warn(n);return}},r){let n,s;const a={getItem:(o,i)=>{var e,c;const d=f=>{if(f=f||"",n!==f){try{s=JSON.parse(f,r?.reviver)}catch{return i}n=f}return s},u=(c=(e=t())==null?void 0:e.getItem(o))!=null?c:null;return I(u)?u.then(d):d(u)},setItem:(o,i)=>{var e;return(e=t())==null?void 0:e.setItem(o,JSON.stringify(i,r?.replacer))},removeItem:o=>{var i;return(i=t())==null?void 0:i.removeItem(o)}};return typeof window<"u"&&typeof window.addEventListener=="function"&&window.Storage&&(a.subscribe=(o,i,e)=>{if(!(t()instanceof window.Storage))return()=>{};const c=d=>{if(d.storageArea===t()&&d.key===o){let u;try{u=JSON.parse(d.newValue||"")}catch{u=e}i(u)}};return window.addEventListener("storage",c),()=>{window.removeEventListener("storage",c)}}),a}const O=E();function S(t,r,n=O,s){const a=s?.getOnInit,o=l(a?n.getItem(t,r):r);return(v?"production":void 0)!=="production"&&(o.debugPrivate=!0),o.onMount=e=>{a||e(n.getItem(t,r));let c;return n.subscribe&&(c=n.subscribe(t,e,r)),c},l(e=>e(o),(e,c,d)=>{const u=typeof d=="function"?d(e(o)):d;return u===b?(c(o,r),n.removeItem(t)):u instanceof Promise?u.then(f=>(c(o,f),n.setItem(t,f))):(c(o,u),n.setItem(t,u))})}const y=w();export{S as a,y as j,P as s}; diff --git a/assets/styles-6860f46c-1cDOle_6.js b/assets/styles-6860f46c-1cDOle_6.js new file mode 100644 index 00000000000..6aac94342fb --- /dev/null +++ b/assets/styles-6860f46c-1cDOle_6.js @@ -0,0 +1,160 @@ +import{s as ut,g as rt,a as at,b as lt,c as F,o as ct,p as ot,j as v,q as ht,l as At,u as He,h as z,d as pt,B as Re}from"./index.demo-_07sssxB.js";var Ve=function(){var e=function(x,u,a,h){for(a=a||{},h=x.length;h--;a[x[h]]=u);return a},i=[1,17],r=[1,18],l=[1,19],o=[1,39],A=[1,40],g=[1,25],D=[1,23],B=[1,24],_=[1,31],fe=[1,32],de=[1,33],Ee=[1,34],Ce=[1,35],me=[1,36],be=[1,26],ge=[1,27],ke=[1,28],Te=[1,29],d=[1,43],Fe=[1,30],E=[1,42],C=[1,44],m=[1,41],k=[1,45],ye=[1,9],c=[1,8,9],Y=[1,56],j=[1,57],Q=[1,58],X=[1,59],q=[1,60],De=[1,61],Be=[1,62],H=[1,8,9,39],Ge=[1,74],M=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],W=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],J=[13,74,80,95,97,98],G=[13,64,65,74,80,95,97,98],Ue=[13,59,60,61,62,63,74,80,95,97,98],_e=[1,93],Z=[1,110],$=[1,108],ee=[1,102],te=[1,103],se=[1,104],ie=[1,105],ne=[1,106],ue=[1,107],re=[1,109],Se=[1,8,9,37,39,42],ae=[1,8,9,21],ze=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],Ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,f,t,U){var s=t.length-1;switch(f){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ye,[2,5],{8:[1,46]}),{8:[1,47]},e(c,[2,16],{21:[1,48]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),e(c,[2,26]),{32:[1,49]},{34:[1,50]},e(c,[2,29]),e(c,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Y,60:j,61:Q,62:X,63:q,64:De,65:Be}),{37:[1,63]},e(H,[2,36],{37:[1,65],42:[1,64]}),e(c,[2,47]),e(c,[2,48]),{16:66,74:d,80:E,95:C,97:m},{16:37,17:67,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:68,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:69,18:38,74:d,80:E,95:C,97:m,98:k},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:E,95:C,97:m,98:k},{13:Ge,51:73},e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(c,[2,58]),e(M,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:E,95:C,97:m,98:k}),e(M,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:E,95:C,97:m},{16:37,17:80,18:38,74:d,80:E,95:C,97:m,98:k},e(W,[2,112]),e(W,[2,113]),e(W,[2,114]),e(W,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ye,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:l,40:o,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},e(c,[2,17]),e(c,[2,27]),e(c,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:E,95:C,97:m,98:k},{49:85,57:54,58:55,59:Y,60:j,61:Q,62:X,63:q,64:De,65:Be},e(c,[2,46]),{58:86,64:De,65:Be},e(J,[2,62],{57:87,59:Y,60:j,61:Q,62:X,63:q}),e(G,[2,63]),e(G,[2,64]),e(G,[2,65]),e(G,[2,66]),e(G,[2,67]),e(Ue,[2,68]),e(Ue,[2,69]),{8:[1,89],23:90,38:88,41:22,44:A},{16:91,74:d,80:E,95:C,97:m},{43:92,47:_e},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Z,73:$,74:ee,75:99,77:100,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},{74:[1,111]},{13:Ge,51:112},e(c,[2,54]),e(c,[2,117]),e(M,[2,13]),e(M,[2,14]),e(M,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:E,95:C,97:m},e(Se,[2,40],{11:114,12:[1,115]}),e(ye,[2,7]),{9:[1,116]},e(ae,[2,49]),{16:37,17:117,18:38,74:d,80:E,95:C,97:m,98:k},{13:[1,119],16:37,17:118,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,61],{57:120,59:Y,60:j,61:Q,62:X,63:q}),e(J,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:A},{8:[1,123],39:[2,33]},e(H,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:_e},{16:37,17:127,18:38,74:d,80:E,95:C,97:m,98:k},e(c,[2,70],{13:[1,128]}),e(c,[2,72],{13:[1,130],68:[1,129]}),e(c,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(c,[2,84],{78:[1,134]}),e(ze,[2,86],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(c,[2,85]),e(c,[2,53]),{37:[2,10]},e(Se,[2,41]),{13:[1,136]},{1:[2,4]},e(ae,[2,51]),e(ae,[2,50]),{16:37,17:137,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,59]),e(c,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:A},{43:140,47:_e},e(H,[2,38]),{39:[2,44]},e(c,[2,42]),e(c,[2,71]),e(c,[2,73]),e(c,[2,74],{68:[1,141]}),e(c,[2,77]),e(c,[2,78],{13:[1,142]}),e(c,[2,80],{13:[1,144],68:[1,143]}),{21:Z,73:$,74:ee,77:145,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},e(S,[2,89]),{14:[1,146]},e(ae,[2,52]),e(c,[2,31]),{39:[2,35]},{39:[1,147]},e(c,[2,75]),e(c,[2,79]),e(c,[2,81]),e(c,[2,82],{68:[1,148]}),e(ze,[2,87],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(Se,[2,8]),e(H,[2,39]),e(c,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var h=new Error(u);throw h.hash=a,h}},parse:function(u){var a=this,h=[0],n=[],f=[null],t=[],U=this.table,s="",le=0,Ke=0,tt=2,Ye=1,st=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(I.yy[ve]=this.yy[ve]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var xe=b.yylloc;t.push(xe);var it=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var L;return L=n.pop()||b.lex()||Ye,typeof L!="number"&&(L instanceof Array&&(n=L,L=n.pop()),L=a.symbols_[L]||L),L}for(var T,R,y,Oe,P={},ce,N,je,oe;;){if(R=h[h.length-1],this.defaultActions[R]?y=this.defaultActions[R]:((T===null||typeof T>"u")&&(T=nt()),y=U[R]&&U[R][T]),typeof y>"u"||!y.length||!y[0]){var Ie="";oe=[];for(ce in U[R])this.terminals_[ce]&&ce>tt&&oe.push("'"+this.terminals_[ce]+"'");b.showPosition?Ie="Parse error on line "+(le+1)+`: +`+b.showPosition()+` +Expecting `+oe.join(", ")+", got '"+(this.terminals_[T]||T)+"'":Ie="Parse error on line "+(le+1)+": Unexpected "+(T==Ye?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(Ie,{text:b.match,token:this.terminals_[T]||T,line:b.yylineno,loc:xe,expected:oe})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+T);switch(y[0]){case 1:h.push(T),f.push(b.yytext),t.push(b.yylloc),h.push(y[1]),T=null,Ke=b.yyleng,s=b.yytext,le=b.yylineno,xe=b.yylloc;break;case 2:if(N=this.productions_[y[1]][1],P.$=f[f.length-N],P._$={first_line:t[t.length-(N||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(N||1)].first_column,last_column:t[t.length-1].last_column},it&&(P._$.range=[t[t.length-(N||1)].range[0],t[t.length-1].range[1]]),Oe=this.performAction.apply(P,[s,Ke,le,I.yy,y[1],f,t].concat(st)),typeof Oe<"u")return Oe;N&&(h=h.slice(0,-1*N*2),f=f.slice(0,-1*N),t=t.slice(0,-1*N)),h.push(this.productions_[y[1]][0]),f.push(P.$),t.push(P._$),je=U[h[h.length-2]][h[h.length-1]],h.push(je);break;case 3:return!0}}return!0}},et=function(){var x={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput:function(u,a){return this.yy=a||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var a=u.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var a=u.length,h=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===n.length?this.yylloc.first_column:0)+n[n.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),a=new Array(u.length+1).join("-");return u+this.upcomingInput()+` +`+a+"^"},test_match:function(u,a){var h,n,f;if(this.options.backtrack_lexer&&(f={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(f.yylloc.range=this.yylloc.range.slice(0))),n=u[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(u[0].length),this.matched+=u[0],h=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;if(this._backtrack){for(var t in f)this[t]=f[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,a,h,n;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),t=0;t<f.length;t++)if(h=this._input.match(this.rules[f[t]]),h&&(!a||h[0].length>a[0].length)){if(a=h,n=t,this.options.backtrack_lexer){if(u=this.test_match(h,f[t]),u!==!1)return u;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(u=this.test_match(a,f[n]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(a,h,n,f){switch(n){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:break;case 5:break;case 6:return this.begin("acc_title"),31;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),33;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 70;case 22:this.popState();break;case 23:return 71;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 73;case 28:return this.begin("namespace"),40;case 29:return this.popState(),8;case 30:break;case 31:return this.begin("namespace-body"),37;case 32:return this.popState(),39;case 33:return"EOF_IN_STRUCT";case 34:return 8;case 35:break;case 36:return"EDGE_STATE";case 37:return this.begin("class"),44;case 38:return this.popState(),8;case 39:break;case 40:return this.popState(),this.popState(),39;case 41:return this.begin("class-body"),37;case 42:return this.popState(),39;case 43:return"EOF_IN_STRUCT";case 44:return"EDGE_STATE";case 45:return"OPEN_IN_STRUCT";case 46:break;case 47:return"MEMBER";case 48:return 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;case 57:this.popState();break;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 60:this.popState();break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:return 68;case 64:return 68;case 65:return 68;case 66:return 68;case 67:return 60;case 68:return 60;case 69:return 62;case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return"DOT";case 80:return"PLUS";case 81:return 81;case 82:return 78;case 83:return 84;case 84:return 84;case 85:return 85;case 86:return"EQUALS";case 87:return"EQUALS";case 88:return 74;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 80;case 93:return 97;case 94:return 83;case 95:return 83;case 96:return 9}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,32,33,34,35,36,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},namespace:{rules:[26,28,29,30,31,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},"class-body":{rules:[26,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},class:{rules:[26,38,39,40,41,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr:{rules:[9,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_title:{rules:[7,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_args:{rules:[22,23,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_name:{rules:[19,20,21,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},href:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},struct:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},generic:{rules:[26,48,49,50,51,52,53,54,55,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},bqstring:{rules:[26,48,49,50,51,52,53,54,55,56,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},string:{rules:[24,25,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],inclusive:!0}}};return x}();Ne.lexer=et;function Le(){this.yy={}}return Le.prototype=Ne,Ne.Parser=Le,new Le}();Ve.parser=Ve;const zt=Ve,Qe=["#","+","~","-",""];class Xe{constructor(i,r){this.memberType=r,this.visibility="",this.classifier="";const l=pt(i,F());this.parseMember(l)}getDisplayDetails(){let i=this.visibility+Re(this.id);this.memberType==="method"&&(i+=`(${Re(this.parameters.trim())})`,this.returnType&&(i+=" : "+Re(this.returnType))),i=i.trim();const r=this.parseClassifier();return{displayText:i,cssStyle:r}}parseMember(i){let r="";if(this.memberType==="method"){const l=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/,o=i.match(l);if(o){const A=o[1]?o[1].trim():"";if(Qe.includes(A)&&(this.visibility=A),this.id=o[2].trim(),this.parameters=o[3]?o[3].trim():"",r=o[4]?o[4].trim():"",this.returnType=o[5]?o[5].trim():"",r===""){const g=this.returnType.substring(this.returnType.length-1);g.match(/[$*]/)&&(r=g,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const l=i.length,o=i.substring(0,1),A=i.substring(l-1);Qe.includes(o)&&(this.visibility=o),A.match(/[$*]/)&&(r=A),this.id=i.substring(this.visibility===""?0:1,r===""?l:l-1)}this.classifier=r}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}const pe="classId-";let Pe=[],p={},he=[],qe=0,O={},we=0,K=[];const V=e=>v.sanitizeText(e,F()),w=function(e){const i=v.sanitizeText(e,F());let r="",l=i;if(i.indexOf("~")>0){const o=i.split("~");l=V(o[0]),r=V(o[1])}return{className:l,type:r}},ft=function(e,i){const r=v.sanitizeText(e,F());i&&(i=V(i));const{className:l}=w(r);p[l].label=i},Ae=function(e){const i=v.sanitizeText(e,F()),{className:r,type:l}=w(i);if(Object.hasOwn(p,r))return;const o=v.sanitizeText(r,F());p[o]={id:o,type:l,label:o,cssClasses:[],methods:[],members:[],annotations:[],styles:[],domId:pe+o+"-"+qe},qe++},We=function(e){const i=v.sanitizeText(e,F());if(i in p)return p[i].domId;throw new Error("Class not found: "+i)},dt=function(){Pe=[],p={},he=[],K=[],K.push(Ze),O={},we=0,ht()},Et=function(e){return p[e]},Ct=function(){return p},mt=function(){return Pe},bt=function(){return he},gt=function(e){At.debug("Adding relation: "+JSON.stringify(e)),Ae(e.id1),Ae(e.id2),e.id1=w(e.id1).className,e.id2=w(e.id2).className,e.relationTitle1=v.sanitizeText(e.relationTitle1.trim(),F()),e.relationTitle2=v.sanitizeText(e.relationTitle2.trim(),F()),Pe.push(e)},kt=function(e,i){const r=w(e).className;p[r].annotations.push(i)},Je=function(e,i){Ae(e);const r=w(e).className,l=p[r];if(typeof i=="string"){const o=i.trim();o.startsWith("<<")&&o.endsWith(">>")?l.annotations.push(V(o.substring(2,o.length-2))):o.indexOf(")")>0?l.methods.push(new Xe(o,"method")):o&&l.members.push(new Xe(o,"attribute"))}},Tt=function(e,i){Array.isArray(i)&&(i.reverse(),i.forEach(r=>Je(e,r)))},Ft=function(e,i){const r={id:`note${he.length}`,class:i,text:e};he.push(r)},yt=function(e){return e.startsWith(":")&&(e=e.substring(1)),V(e.trim())},Me=function(e,i){e.split(",").forEach(function(r){let l=r;r[0].match(/\d/)&&(l=pe+l),p[l]!==void 0&&p[l].cssClasses.push(i)})},Dt=function(e,i){e.split(",").forEach(function(r){i!==void 0&&(p[r].tooltip=V(i))})},Bt=function(e,i){return i?O[i].classes[e].tooltip:p[e].tooltip},_t=function(e,i,r){const l=F();e.split(",").forEach(function(o){let A=o;o[0].match(/\d/)&&(A=pe+A),p[A]!==void 0&&(p[A].link=He.formatUrl(i,l),l.securityLevel==="sandbox"?p[A].linkTarget="_top":typeof r=="string"?p[A].linkTarget=V(r):p[A].linkTarget="_blank")}),Me(e,"clickable")},St=function(e,i,r){e.split(",").forEach(function(l){Nt(l,i,r),p[l].haveCallback=!0}),Me(e,"clickable")},Nt=function(e,i,r){const l=v.sanitizeText(e,F());if(F().securityLevel!=="loose"||i===void 0)return;const A=l;if(p[A]!==void 0){const g=We(A);let D=[];if(typeof r=="string"){D=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let B=0;B<D.length;B++){let _=D[B].trim();_.charAt(0)==='"'&&_.charAt(_.length-1)==='"'&&(_=_.substr(1,_.length-2)),D[B]=_}}D.length===0&&D.push(g),K.push(function(){const B=document.querySelector(`[id="${g}"]`);B!==null&&B.addEventListener("click",function(){He.runFunc(i,...D)},!1)})}},Lt=function(e){K.forEach(function(i){i(e)})},vt={LINE:0,DOTTED_LINE:1},xt={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},Ze=function(e){let i=z(".mermaidTooltip");(i._groups||i)[0][0]===null&&(i=z("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),z(e).select("svg").selectAll("g.node").on("mouseover",function(){const o=z(this);if(o.attr("title")===null)return;const g=this.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(o.attr("title")).style("left",window.scrollX+g.left+(g.right-g.left)/2+"px").style("top",window.scrollY+g.top-14+document.body.scrollTop+"px"),i.html(i.html().replace(/<br\/>/g,"<br/>")),o.classed("hover",!0)}).on("mouseout",function(){i.transition().duration(500).style("opacity",0),z(this).classed("hover",!1)})};K.push(Ze);let $e="TB";const Ot=()=>$e,It=e=>{$e=e},Rt=function(e){O[e]===void 0&&(O[e]={id:e,classes:{},children:{},domId:pe+e+"-"+we},we++)},Vt=function(e){return O[e]},wt=function(){return O},Pt=function(e,i){if(O[e]!==void 0)for(const r of i){const{className:l}=w(r);p[l].parent=e,O[e].classes[l]=p[l]}},Mt=function(e,i){const r=p[e];if(!(!i||!r))for(const l of i)l.includes(",")?r.styles.push(...l.split(",")):r.styles.push(l)},Kt={setAccTitle:ut,getAccTitle:rt,getAccDescription:at,setAccDescription:lt,getConfig:()=>F().class,addClass:Ae,bindFunctions:Lt,clear:dt,getClass:Et,getClasses:Ct,getNotes:bt,addAnnotation:kt,addNote:Ft,getRelations:mt,addRelation:gt,getDirection:Ot,setDirection:It,addMember:Je,addMembers:Tt,cleanupLabel:yt,lineType:vt,relationType:xt,setClickEvent:St,setCssClass:Me,setLink:_t,getTooltip:Bt,setTooltip:Dt,lookUpDomId:We,setDiagramTitle:ct,getDiagramTitle:ot,setClassLabel:ft,addNamespace:Rt,addClassesToNamespace:Pt,getNamespace:Vt,getNamespaces:wt,setCssStyle:Mt},Gt=e=>`g.classGroup text { + fill: ${e.nodeBorder||e.classText}; + stroke: none; + font-family: ${e.fontFamily}; + font-size: 10px; + + .title { + font-weight: bolder; + } + +} + +.nodeLabel, .edgeLabel { + color: ${e.classText}; +} +.edgeLabel .label rect { + fill: ${e.mainBkg}; +} +.label text { + fill: ${e.classText}; +} +.edgeLabel .label span { + background: ${e.mainBkg}; +} + +.classTitle { + font-weight: bolder; +} +.node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: 1px; + } + + +.divider { + stroke: ${e.nodeBorder}; + stroke-width: 1; +} + +g.clickable { + cursor: pointer; +} + +g.classGroup rect { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; +} + +g.classGroup line { + stroke: ${e.nodeBorder}; + stroke-width: 1; +} + +.classLabel .box { + stroke: none; + stroke-width: 0; + fill: ${e.mainBkg}; + opacity: 0.5; +} + +.classLabel .label { + fill: ${e.nodeBorder}; + font-size: 10px; +} + +.relation { + stroke: ${e.lineColor}; + stroke-width: 1; + fill: none; +} + +.dashed-line{ + stroke-dasharray: 3; +} + +.dotted-line{ + stroke-dasharray: 1 2; +} + +#compositionStart, .composition { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +#compositionEnd, .composition { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +#dependencyStart, .dependency { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +#dependencyStart, .dependency { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +#extensionStart, .extension { + fill: transparent !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +#extensionEnd, .extension { + fill: transparent !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +#aggregationStart, .aggregation { + fill: transparent !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +#aggregationEnd, .aggregation { + fill: transparent !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +#lollipopStart, .lollipop { + fill: ${e.mainBkg} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +#lollipopEnd, .lollipop { + fill: ${e.mainBkg} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +.edgeTerminals { + font-size: 11px; + line-height: initial; +} + +.classTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; +} +`,Yt=Gt;export{Kt as d,zt as p,Yt as s}; diff --git a/assets/styles-7383a064-chn41QdL.js b/assets/styles-7383a064-chn41QdL.js new file mode 100644 index 00000000000..61fef33bfab --- /dev/null +++ b/assets/styles-7383a064-chn41QdL.js @@ -0,0 +1,110 @@ +import{G as q}from"./graph-4EnB4jqL.js";import{a6 as I,a7 as F,a8 as M,a9 as R,aa as j,D as N,l as y,K as U,c as C,j as G,E as $,F as E,h as _,u as H,C as K,a4 as W}from"./index.demo-_07sssxB.js";import{r as X}from"./index-8fae9850-Po9R6XSU.js";import{c as J}from"./channel-d4IHw_DV.js";function Q(e){return typeof e=="string"?new I([document.querySelectorAll(e)],[document.documentElement]):new I([M(e)],F)}function de(e,r){return!!e.children(r).length}function pe(e){return L(e.v)+":"+L(e.w)+":"+L(e.name)}var Y=/:/g;function L(e){return e?String(e).replace(Y,"\\:"):""}function Z(e,r){r&&e.attr("style",r)}function be(e,r,c){r&&e.attr("class",r).attr("class",c+" "+e.attr("class"))}function fe(e,r){var c=r.graph();if(R(c)){var a=c.transition;if(j(a))return a(e)}return e}function O(e,r){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=r.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}Z(a,r.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const z={},ee=function(e){const r=Object.keys(e);for(const c of r)z[c]=e[c]},P=function(e,r,c,a,i,d){const u=a.select(`[id="${c}"]`);Object.keys(e).forEach(function(p){const l=e[p];let g="default";l.classes.length>0&&(g=l.classes.join(" ")),g=g+" flowchart-label";const w=N(l.styles);let t=l.text!==void 0?l.text:l.id,s;if(y.info("vertex",l,l.labelType),l.labelType==="markdown")y.info("vertex",l,l.labelType);else if(U(C().flowchart.htmlLabels)){const m={label:t.replace(/fa[blrs]?:fa-[\w-]+/g,k=>`<i class='${k.replace(":"," ")}'></i>`)};s=O(u,m).node(),s.parentNode.removeChild(s)}else{const m=i.createElementNS("http://www.w3.org/2000/svg","text");m.setAttribute("style",w.labelStyle.replace("color:","fill:"));const k=t.split(G.lineBreakRegex);for(const T of k){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=T,m.appendChild(v)}s=m}let b=0,o="";switch(l.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}r.setNode(l.id,{labelStyle:w.labelStyle,shape:o,labelText:t,labelType:l.labelType,rx:b,ry:b,class:g,style:w.style,id:l.id,link:l.link,linkTarget:l.linkTarget,tooltip:d.db.getTooltip(l.id)||"",domId:d.db.lookUpDomId(l.id),haveCallback:l.haveCallback,width:l.type==="group"?500:void 0,dir:l.dir,type:l.type,props:l.props,padding:C().flowchart.padding}),y.info("setNode",{labelStyle:w.labelStyle,labelType:l.labelType,shape:o,labelText:t,rx:b,ry:b,class:g,style:w.style,id:l.id,domId:d.db.lookUpDomId(l.id),width:l.type==="group"?500:void 0,type:l.type,dir:l.dir,props:l.props,padding:C().flowchart.padding})})},V=function(e,r,c){y.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=N(e.defaultStyle);d=n.style,u=n.labelStyle}e.forEach(function(n){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,y.info("abc78 new entry",p,i[p])):(i[p]++,y.info("abc78 new entry",p,i[p]));let l=p+"-"+i[p];y.info("abc78 new link id to be used is",p,l,i[p]);const g="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=N(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=$(n.interpolate,E):e.defaultInterpolate!==void 0?t.curve=$(e.defaultInterpolate,E):t.curve=$(z.curve,E),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=n.text.replace(G.lineBreakRegex,` +`),n.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=l,t.classes="flowchart-link "+g+" "+w,r.setEdge(n.start,n.end,t,a)})},te=function(e,r){return r.db.getClasses()},le=async function(e,r,c,a){y.info("Drawing flowchart");let i=a.db.getDirection();i===void 0&&(i="TD");const{securityLevel:d,flowchart:u}=C(),n=u.nodeSpacing||50,p=u.rankSpacing||50;let l;d==="sandbox"&&(l=_("#i"+r));const g=d==="sandbox"?_(l.nodes()[0].contentDocument.body):_("body"),w=d==="sandbox"?l.nodes()[0].contentDocument:document,t=new q({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:n,ranksep:p,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let s;const b=a.db.getSubGraphs();y.info("Subgraphs - ",b);for(let f=b.length-1;f>=0;f--)s=b[f],y.info("Subgraph - ",s),a.db.addVertex(s.id,{text:s.title,type:s.labelType},"group",void 0,s.classes,s.dir);const o=a.db.getVertices(),m=a.db.getEdges();y.info("Edges",m);let k=0;for(k=b.length-1;k>=0;k--){s=b[k],Q("cluster").append("text");for(let f=0;f<s.nodes.length;f++)y.info("Setting up subgraphs",s.nodes[f],s.id),t.setParent(s.nodes[f],s.id)}P(o,t,r,g,w,a),V(m,t);const T=g.select(`[id="${r}"]`),v=g.select("#"+r+" g");if(await X(v,t,["point","circle","cross"],"flowchart",r),H.insertTitle(T,"flowchartTitleText",u.titleTopMargin,a.db.getDiagramTitle()),K(t,T,u.diagramPadding,u.useMaxWidth),a.db.indexNodes("subGraph"+k),!u.htmlLabels){const f=w.querySelectorAll('[id="'+r+'"] .edgeLabel .label');for(const x of f){const S=x.getBBox(),h=w.createElementNS("http://www.w3.org/2000/svg","rect");h.setAttribute("rx",0),h.setAttribute("ry",0),h.setAttribute("width",S.width),h.setAttribute("height",S.height),x.insertBefore(h,x.firstChild)}}Object.keys(o).forEach(function(f){const x=o[f];if(x.link){const S=_("#"+r+' [id="'+f+'"]');if(S){const h=w.createElementNS("http://www.w3.org/2000/svg","a");h.setAttributeNS("http://www.w3.org/2000/svg","class",x.classes.join(" ")),h.setAttributeNS("http://www.w3.org/2000/svg","href",x.link),h.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),d==="sandbox"?h.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):x.linkTarget&&h.setAttributeNS("http://www.w3.org/2000/svg","target",x.linkTarget);const A=S.insert(function(){return h},":first-child"),B=S.select(".label-container");B&&A.append(function(){return B.node()});const D=S.select(".label");D&&A.append(function(){return D.node()})}}})},ue={setConf:ee,addVertices:P,addEdges:V,getClasses:te,draw:le},re=(e,r)=>{const c=J,a=c(e,"r"),i=c(e,"g"),d=c(e,"b");return W(a,i,d,r)},ae=e=>`.label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + .cluster-label text { + fill: ${e.titleColor}; + } + .cluster-label span,p { + color: ${e.titleColor}; + } + + .label text,span,p { + fill: ${e.nodeTextColor||e.textColor}; + color: ${e.nodeTextColor||e.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: 1px; + } + .flowchart-label text { + text-anchor: middle; + } + // .flowchart-label .text-outer-tspan { + // text-anchor: middle; + // } + // .flowchart-label .text-inner-tspan { + // text-anchor: start; + // } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${e.arrowheadColor}; + } + + .edgePath .path { + stroke: ${e.lineColor}; + stroke-width: 2.0px; + } + + .flowchart-link { + stroke: ${e.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${e.edgeLabelBackground}; + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } + + /* For html labels only */ + .labelBkg { + background-color: ${re(e.edgeLabelBackground,.5)}; + // background-color: + } + + .cluster rect { + fill: ${e.clusterBkg}; + stroke: ${e.clusterBorder}; + stroke-width: 1px; + } + + .cluster text { + fill: ${e.titleColor}; + } + + .cluster span,p { + color: ${e.titleColor}; + } + /* .cluster div { + color: ${e.titleColor}; + } */ + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${e.fontFamily}; + font-size: 12px; + background: ${e.tertiaryColor}; + border: 1px solid ${e.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; + } +`,we=ae;export{we as a,Z as b,O as c,fe as d,pe as e,ue as f,be as g,de as i,Q as s}; diff --git a/assets/styles-b2c874b6-juz_pGZF.js b/assets/styles-b2c874b6-juz_pGZF.js new file mode 100644 index 00000000000..e77847a3397 --- /dev/null +++ b/assets/styles-b2c874b6-juz_pGZF.js @@ -0,0 +1,207 @@ +import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,o as Xt,p as Kt,l as D,j as ot,q as Wt,G as Jt}from"./index.demo-_07sssxB.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],j=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var v=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");v=st[0],O=[O,st[1]]}this.$={stmt:"state",id:v,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",v=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),A={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(A.yy[dt]=this.yy[dt]);S.setInput(r,A.yy),A.yy.lexer=S,A.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=jt()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(v+1)+`: +`+S.showPosition()+` +Expecting `+rt.join(", ")+", got '"+(this.terminals_[_]||_)+"'":St="Parse error on line "+(v+1)+": Unexpected "+(_==B?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(St,{text:S.match,token:this.terminals_[_]||_,line:S.yylineno,loc:yt,expected:rt})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+_);switch(m[0]){case 1:i.push(_),p.push(S.yytext),e.push(S.yylloc),i.push(m[1]),_=null,O=S.yyleng,l=S.yytext,v=S.yylineno,yt=S.yylloc;break;case 2:if(b=this.productions_[m[1]][1],N.$=p[p.length-b],N._$={first_line:e[e.length-(b||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(b||1)].first_column,last_column:e[e.length-1].last_column},Gt&&(N._$.range=[e[e.length-(b||1)].range[0],e[e.length-1].range[1]]),pt=this.performAction.apply(N,[l,O,v,A.yy,m[1],p,e].concat(ft)),typeof pt<"u")return pt;b&&(i=i.slice(0,-1*b*2),p=p.slice(0,-1*b),e=e.slice(0,-1*b)),i.push(this.productions_[m[1]][0]),p.push(N.$),e.push(N._$),Ct=$[i[i.length-2]][i[i.length-1]],i.push(Ct);break;case 3:return!0}}return!0}},Yt=function(){var C={EOF:1,parseError:function(n,i){if(this.yy.parser)this.yy.parser.parseError(n,i);else throw new Error(n)},setInput:function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var n=r.length,i=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===o.length?this.yylloc.first_column:0)+o[o.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+` +`+n+"^"},test_match:function(r,n){var i,o,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),o=r[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],i=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var e in p)this[e]=p[e];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,n,i,o;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),e=0;e<p.length;e++)if(i=this._input.match(this.rules[p[e]]),i&&(!n||i[0].length>n[0].length)){if(n=i,o=e,this.options.backtrack_lexer){if(r=this.test_match(i,p[e]),r!==!1)return r;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(r=this.test_match(n,p[o]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,i,o,p){switch(o){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),i.yytext=i.yytext.substr(2).trim(),30;case 64:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return i.yytext=i.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}};return C}();ht.lexer=Yt;function ut(){this.yy={}}return ut.prototype=ht,ht.Parser=ut,new ut}();gt.parser=gt;const De=gt,qt="LR",Ce="TB",_t="state",It="relation",Qt="classDef",Zt="applyClass",Et="default",te="divider",bt="[*]",Ot="start",Nt=bt,Rt="end",vt="color",At="fill",ee="bgFill",se=",";function wt(){return{}}let $t=qt,lt=[],P=wt();const Bt=()=>({relations:[],states:{},documents:{}});let ct={root:Bt()},g=ct.root,F=0,Lt=0;const ie={LINE:0,DOTTED_LINE:1},re={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},nt=t=>JSON.parse(JSON.stringify(t)),ne=t=>{D.info("Setting root doc",t),lt=t},ae=()=>lt,at=(t,s,a)=>{if(s.stmt===It)at(t,s.state1,!0),at(t,s.state2,!1);else if(s.stmt===_t&&(s.id==="[*]"?(s.id=a?t.id+"_start":t.id+"_end",s.start=a):s.id=s.id.trim()),s.doc){const h=[];let f=[],d;for(d=0;d<s.doc.length;d++)if(s.doc[d].type===te){const y=nt(s.doc[d]);y.doc=nt(f),h.push(y),f=[]}else f.push(s.doc[d]);if(h.length>0&&f.length>0){const y={stmt:_t,id:Jt(),type:"divider",doc:nt(f)};h.push(nt(y)),s.doc=h}s.doc.forEach(y=>at(s,y,!0))}},le=()=>(at({id:"root"},{id:"root",doc:lt},!0),{id:"root",doc:lt}),ce=t=>{let s;t.doc?s=t.doc:s=t,D.info(s),Pt(!0),D.info("Extract",s),s.forEach(a=>{switch(a.stmt){case _t:I(a.id.trim(),a.type,a.doc,a.description,a.note,a.classes,a.styles,a.textStyles);break;case It:Ft(a.state1,a.state2,a.description);break;case Qt:Vt(a.id.trim(),a.classes);break;case Zt:xt(a.id.trim(),a.styleClass);break}})},I=function(t,s=Et,a=null,h=null,f=null,d=null,y=null,k=null){const u=t?.trim();g.states[u]===void 0?(D.info("Adding state ",u,h),g.states[u]={id:u,descriptions:[],type:s,doc:a,note:f,classes:[],styles:[],textStyles:[]}):(g.states[u].doc||(g.states[u].doc=a),g.states[u].type||(g.states[u].type=s)),h&&(D.info("Setting state description",u,h),typeof h=="string"&&kt(u,h.trim()),typeof h=="object"&&h.forEach(E=>kt(u,E.trim()))),f&&(g.states[u].note=f,g.states[u].note.text=ot.sanitizeText(g.states[u].note.text,Y())),d&&(D.info("Setting state classes",u,d),(typeof d=="string"?[d]:d).forEach(T=>xt(u,T.trim()))),y&&(D.info("Setting state styles",u,y),(typeof y=="string"?[y]:y).forEach(T=>_e(u,T.trim()))),k&&(D.info("Setting state styles",u,y),(typeof k=="string"?[k]:k).forEach(T=>me(u,T.trim())))},Pt=function(t){ct={root:Bt()},g=ct.root,F=0,P=wt(),t||Wt()},V=function(t){return g.states[t]},oe=function(){return g.states},he=function(){D.info("Documents = ",ct)},ue=function(){return g.relations};function mt(t=""){let s=t;return t===bt&&(F++,s=`${Ot}${F}`),s}function Tt(t="",s=Et){return t===bt?Ot:s}function fe(t=""){let s=t;return t===Nt&&(F++,s=`${Rt}${F}`),s}function de(t="",s=Et){return t===Nt?Rt:s}function ye(t,s,a){let h=mt(t.id.trim()),f=Tt(t.id.trim(),t.type),d=mt(s.id.trim()),y=Tt(s.id.trim(),s.type);I(h,f,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),I(d,y,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),g.relations.push({id1:h,id2:d,relationTitle:ot.sanitizeText(a,Y())})}const Ft=function(t,s,a){if(typeof t=="object")ye(t,s,a);else{const h=mt(t.trim()),f=Tt(t),d=fe(s.trim()),y=de(s);I(h,f),I(d,y),g.relations.push({id1:h,id2:d,title:ot.sanitizeText(a,Y())})}},kt=function(t,s){const a=g.states[t],h=s.startsWith(":")?s.replace(":","").trim():s;a.descriptions.push(ot.sanitizeText(h,Y()))},pe=function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},Se=()=>(Lt++,"divider-id-"+Lt),Vt=function(t,s=""){P[t]===void 0&&(P[t]={id:t,styles:[],textStyles:[]});const a=P[t];s?.split(se).forEach(h=>{const f=h.replace(/([^;]*);/,"$1").trim();if(h.match(vt)){const y=f.replace(At,ee).replace(vt,At);a.textStyles.push(y)}a.styles.push(f)})},ge=function(){return P},xt=function(t,s){t.split(",").forEach(function(a){let h=V(a);if(h===void 0){const f=a.trim();I(f),h=V(f)}h.classes.push(s)})},_e=function(t,s){const a=V(t);a!==void 0&&a.textStyles.push(s)},me=function(t,s){const a=V(t);a!==void 0&&a.textStyles.push(s)},Te=()=>$t,ke=t=>{$t=t},Ee=t=>t&&t[0]===":"?t.substr(1).trim():t.trim(),ve={getConfig:()=>Y().state,addState:I,clear:Pt,getState:V,getStates:oe,getRelations:ue,getClasses:ge,getDirection:Te,addRelation:Ft,getDividerId:Se,setDirection:ke,cleanupLabel:pe,lineType:ie,relationType:re,logDocuments:he,getRootDoc:ae,setRootDoc:ne,getRootDocV2:le,extract:ce,trimColon:Ee,getAccTitle:Ut,setAccTitle:zt,getAccDescription:Mt,setAccDescription:Ht,addStyleClass:Vt,setCssClass:xt,addDescription:kt,setDiagramTitle:Xt,getDiagramTitle:Kt},be=t=>` +defs #statediagram-barbEnd { + fill: ${t.transitionColor}; + stroke: ${t.transitionColor}; + } +g.stateGroup text { + fill: ${t.nodeBorder}; + stroke: none; + font-size: 10px; +} +g.stateGroup text { + fill: ${t.textColor}; + stroke: none; + font-size: 10px; + +} +g.stateGroup .state-title { + font-weight: bolder; + fill: ${t.stateLabelColor}; +} + +g.stateGroup rect { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; +} + +g.stateGroup line { + stroke: ${t.lineColor}; + stroke-width: 1; +} + +.transition { + stroke: ${t.transitionColor}; + stroke-width: 1; + fill: none; +} + +.stateGroup .composit { + fill: ${t.background}; + border-bottom: 1px +} + +.stateGroup .alt-composit { + fill: #e0e0e0; + border-bottom: 1px +} + +.state-note { + stroke: ${t.noteBorderColor}; + fill: ${t.noteBkgColor}; + + text { + fill: ${t.noteTextColor}; + stroke: none; + font-size: 10px; + } +} + +.stateLabel .box { + stroke: none; + stroke-width: 0; + fill: ${t.mainBkg}; + opacity: 0.5; +} + +.edgeLabel .label rect { + fill: ${t.labelBackgroundColor}; + opacity: 0.5; +} +.edgeLabel .label text { + fill: ${t.transitionLabelColor||t.tertiaryTextColor}; +} +.label div .edgeLabel { + color: ${t.transitionLabelColor||t.tertiaryTextColor}; +} + +.stateLabel text { + fill: ${t.stateLabelColor}; + font-size: 10px; + font-weight: bold; +} + +.node circle.state-start { + fill: ${t.specialStateColor}; + stroke: ${t.specialStateColor}; +} + +.node .fork-join { + fill: ${t.specialStateColor}; + stroke: ${t.specialStateColor}; +} + +.node circle.state-end { + fill: ${t.innerEndBackground}; + stroke: ${t.background}; + stroke-width: 1.5 +} +.end-state-inner { + fill: ${t.compositeBackground||t.background}; + // stroke: ${t.background}; + stroke-width: 1.5 +} + +.node rect { + fill: ${t.stateBkg||t.mainBkg}; + stroke: ${t.stateBorder||t.nodeBorder}; + stroke-width: 1px; +} +.node polygon { + fill: ${t.mainBkg}; + stroke: ${t.stateBorder||t.nodeBorder};; + stroke-width: 1px; +} +#statediagram-barbEnd { + fill: ${t.lineColor}; +} + +.statediagram-cluster rect { + fill: ${t.compositeTitleBackground}; + stroke: ${t.stateBorder||t.nodeBorder}; + stroke-width: 1px; +} + +.cluster-label, .nodeLabel { + color: ${t.stateLabelColor}; +} + +.statediagram-cluster rect.outer { + rx: 5px; + ry: 5px; +} +.statediagram-state .divider { + stroke: ${t.stateBorder||t.nodeBorder}; +} + +.statediagram-state .title-state { + rx: 5px; + ry: 5px; +} +.statediagram-cluster.statediagram-cluster .inner { + fill: ${t.compositeBackground||t.background}; +} +.statediagram-cluster.statediagram-cluster-alt .inner { + fill: ${t.altBackground?t.altBackground:"#efefef"}; +} + +.statediagram-cluster .inner { + rx:0; + ry:0; +} + +.statediagram-state rect.basic { + rx: 5px; + ry: 5px; +} +.statediagram-state rect.divider { + stroke-dasharray: 10,10; + fill: ${t.altBackground?t.altBackground:"#efefef"}; +} + +.note-edge { + stroke-dasharray: 5; +} + +.statediagram-note rect { + fill: ${t.noteBkgColor}; + stroke: ${t.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} +.statediagram-note rect { + fill: ${t.noteBkgColor}; + stroke: ${t.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} + +.statediagram-note text { + fill: ${t.noteTextColor}; +} + +.statediagram-note .nodeLabel { + color: ${t.noteTextColor}; +} +.statediagram .edgeLabel { + color: red; // ${t.noteTextColor}; +} + +#dependencyStart, #dependencyEnd { + fill: ${t.lineColor}; + stroke: ${t.lineColor}; + stroke-width: 1; +} + +.statediagramTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.textColor}; +} +`,Ae=be;export{Et as D,It as S,te as a,_t as b,Ce as c,ve as d,De as p,Ae as s}; diff --git a/assets/svgDrawCommon-0ee1b4e9--nQsBbhr.js b/assets/svgDrawCommon-0ee1b4e9--nQsBbhr.js new file mode 100644 index 00000000000..8e4cf687496 --- /dev/null +++ b/assets/svgDrawCommon-0ee1b4e9--nQsBbhr.js @@ -0,0 +1 @@ +import{H as o,m as i}from"./index.demo-_07sssxB.js";const c=(s,t)=>{const r=s.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.rx!==void 0&&r.attr("rx",t.rx),t.ry!==void 0&&r.attr("ry",t.ry),t.attrs!==void 0)for(const e in t.attrs)r.attr(e,t.attrs[e]);return t.class!==void 0&&r.attr("class",t.class),r},x=(s,t)=>{const r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};c(s,r).lower()},d=(s,t)=>{const r=t.text.replace(o," "),e=s.append("text");e.attr("x",t.x),e.attr("y",t.y),e.attr("class","legend"),e.style("text-anchor",t.anchor),t.class!==void 0&&e.attr("class",t.class);const n=e.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(r),e},h=(s,t,r,e)=>{const n=s.append("image");n.attr("x",t),n.attr("y",r);const a=i.sanitizeUrl(e);n.attr("xlink:href",a)},y=(s,t,r,e)=>{const n=s.append("use");n.attr("x",t),n.attr("y",r);const a=i.sanitizeUrl(e);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),p=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,y as b,h as c,c as d,p as e,d as f,g}; diff --git a/assets/timeline-definition-d977decf-2sn2zGPn.js b/assets/timeline-definition-d977decf-2sn2zGPn.js new file mode 100644 index 00000000000..e4f4108cd1d --- /dev/null +++ b/assets/timeline-definition-d977decf-2sn2zGPn.js @@ -0,0 +1,61 @@ +import{$ as ft,q as gt,c as mt,l as E,h as G,C as xt,a0 as _t,a1 as bt,a2 as kt}from"./index.demo-_07sssxB.js";import"./owner-4YVbz2PN.js";import{a as D}from"./arc-9wcg-j4M.js";import"./index-qegmBwH1.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";import"./path-aUcfwwLI.js";var K=function(){var n=function(g,s,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=s);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],i=[1,11],h=[1,12],o=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(s,r,c,d,u,l,$){var x=l.length-1;switch(u){case 1:return l[x-1];case 2:this.$=[];break;case 3:l[x-1].push(l[x]),this.$=l[x-1];break;case 4:case 5:this.$=l[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(l[x].substr(6)),this.$=l[x].substr(6);break;case 9:this.$=l[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=l[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(l[x].substr(8)),this.$=l[x].substr(8);break;case 15:d.addTask(l[x],0,""),this.$=l[x];break;case 16:d.addEvent(l[x].substr(2)),this.$=l[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:i,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:i,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var c=new Error(s);throw c.hash=r,c}},parse:function(s){var r=this,c=[0],d=[],u=[null],l=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=l.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(s,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;l.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var b,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((b===null||typeof b>"u")&&(b=z()),S=$[L]&&$[L][b]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`: +`+k.showPosition()+` +Expecting `+j.join(", ")+", got '"+(this.terminals_[b]||b)+"'":J="Parse error on line "+(T+1)+": Unexpected "+(b==A?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(J,{text:k.match,token:this.terminals_[b]||b,line:k.yylineno,loc:I,expected:j})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+b);switch(S[0]){case 1:c.push(b),u.push(k.yytext),l.push(k.yylloc),c.push(S[1]),b=null,W=k.yyleng,x=k.yytext,T=k.yylineno,I=k.yylloc;break;case 2:if(N=this.productions_[S[1]][1],R.$=u[u.length-N],R._$={first_line:l[l.length-(N||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(N||1)].first_column,last_column:l[l.length-1].last_column},P&&(R._$.range=[l[l.length-(N||1)].range[0],l[l.length-1].range[1]]),Z=this.performAction.apply(R,[x,W,T,w.yy,S[1],u,l].concat(B)),typeof Z<"u")return Z;N&&(c=c.slice(0,-1*N*2),u=u.slice(0,-1*N),l=l.slice(0,-1*N)),c.push(this.productions_[S[1]][0]),u.push(R.$),l.push(R._$),Y=$[c[c.length-2]][c[c.length-1]],c.push(Y);break;case 3:return!0}}return!0}},_=function(){var g={EOF:1,parseError:function(r,c){if(this.yy.parser)this.yy.parser.parseError(r,c);else throw new Error(r)},setInput:function(s,r){return this.yy=r||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var r=s.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var r=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),r=new Array(s.length+1).join("-");return s+this.upcomingInput()+` +`+r+"^"},test_match:function(s,r){var c,d,u;if(this.options.backtrack_lexer&&(u={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(u.yylloc.range=this.yylloc.range.slice(0))),d=s[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],c=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var l in u)this[l]=u[l];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,r,c,d;this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),l=0;l<u.length;l++)if(c=this._input.match(this.rules[u[l]]),c&&(!r||c[0].length>r[0].length)){if(r=c,d=l,this.options.backtrack_lexer){if(s=this.test_match(c,u[l]),s!==!1)return s;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(s=this.test_match(r,u[d]),s!==!1?s:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,c,d,u){switch(d){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return g}();f.lexer=_;function m(){this.yy={}}return m.prototype=f,f.Parser=m,new m}();K.parser=K;const vt=K;let F="",it=0;const Q=[],q=[],V=[],st=()=>ft,rt=function(){Q.length=0,q.length=0,F="",V.length=0,gt()},at=function(n){F=n,Q.push(n)},ot=function(){return Q},lt=function(){let n=tt();const t=100;let e=0;for(;!n&&e<t;)n=tt(),e++;return q.push(...V),q},ct=function(n,t,e){const a={id:it++,section:F,type:F,task:n,score:t||0,events:e?[e]:[]};V.push(a)},ht=function(n){V.find(e=>e.id===it-1).events.push(n)},dt=function(n){const t={section:F,type:F,description:n,task:n,classes:[]};q.push(t)},tt=function(){const n=function(e){return V[e].processed};let t=!0;for(const[e,a]of V.entries())n(e),t=t&&a.processed;return t},wt={clear:rt,getCommonDb:st,addSection:at,getSections:ot,getTasks:lt,addTask:ct,addTaskOrg:dt,addEvent:ht},St=Object.freeze(Object.defineProperty({__proto__:null,addEvent:ht,addSection:at,addTask:ct,addTaskOrg:dt,clear:rt,default:wt,getCommonDb:st,getSections:ot,getTasks:lt},Symbol.toStringTag,{value:"Module"})),Et=12,U=function(n,t){const e=n.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),t.class!==void 0&&e.attr("class",t.class),e},Tt=function(n,t){const a=n.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=n.append("g");i.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(y){const f=D().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",f).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}function o(y){const f=D().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",f).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}function p(y){y.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return t.score>3?h(i):t.score<3?o(i):p(i),a},It=function(n,t){const e=n.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),e.class!==void 0&&e.attr("class",e.class),t.title!==void 0&&e.append("title").text(t.title),e},ut=function(n,t){const e=t.text.replace(/<br\s*\/?>/gi," "),a=n.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const i=a.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.text(e),a},$t=function(n,t){function e(i,h,o,p,y){return i+","+h+" "+(i+o)+","+h+" "+(i+o)+","+(h+p-y)+" "+(i+o-y*1.2)+","+(h+p)+" "+i+","+(h+p)}const a=n.append("polygon");a.attr("points",e(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,ut(n,t)},Nt=function(n,t,e){const a=n.append("g"),i=X();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=e.width,i.height=e.height,i.class="journey-section section-type-"+t.num,i.rx=3,i.ry=3,U(a,i),pt(e)(t.text,a,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+t.num},e,t.colour)};let et=-1;const Mt=function(n,t,e){const a=t.x+e.width/2,i=n.append("g");et++;const h=300+5*30;i.append("line").attr("id","task"+et).attr("x1",a).attr("y1",t.y).attr("x2",a).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Tt(i,{cx:a,cy:300+(5-t.score)*30,score:t.score});const o=X();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=e.width,o.height=e.height,o.class="task task-type-"+t.num,o.rx=3,o.ry=3,U(i,o),t.x+14,pt(e)(t.task,i,o.x,o.y,o.width,o.height,{class:"task"},e,t.colour)},Lt=function(n,t){U(n,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},At=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},X=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},pt=function(){function n(i,h,o,p,y,f,_,m){const g=h.append("text").attr("x",o+y/2).attr("y",p+f/2+5).style("font-color",m).style("text-anchor","middle").text(i);a(g,_)}function t(i,h,o,p,y,f,_,m,g){const{taskFontSize:s,taskFontFamily:r}=m,c=i.split(/<br\s*\/?>/gi);for(let d=0;d<c.length;d++){const u=d*s-s*(c.length-1)/2,l=h.append("text").attr("x",o+y/2).attr("y",p).attr("fill",g).style("text-anchor","middle").style("font-size",s).style("font-family",r);l.append("tspan").attr("x",o+y/2).attr("dy",u).text(c[d]),l.attr("y",p+f/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(l,_)}}function e(i,h,o,p,y,f,_,m){const g=h.append("switch"),r=g.append("foreignObject").attr("x",o).attr("y",p).attr("width",y).attr("height",f).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");r.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),t(i,g,o,p,y,f,_,m),a(r,_)}function a(i,h){for(const o in h)o in h&&i.attr(o,h[o])}return function(i){return i.textPlacement==="fo"?e:i.textPlacement==="old"?n:t}}(),Pt=function(n){n.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")};function yt(n,t){n.each(function(){var e=G(this),a=e.text().split(/(\s+|<br>)/).reverse(),i,h=[],o=1.1,p=e.attr("y"),y=parseFloat(e.attr("dy")),f=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("dy",y+"em");for(let _=0;_<a.length;_++)i=a[a.length-1-_],h.push(i),f.text(h.join(" ").trim()),(f.node().getComputedTextLength()>t||i==="<br>")&&(h.pop(),f.text(h.join(" ").trim()),i==="<br>"?h=[""]:h=[i],f=e.append("tspan").attr("x",0).attr("y",p).attr("dy",o+"em").text(i))})}const Ht=function(n,t,e,a){const i=e%Et-1,h=n.append("g");t.section=i,h.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+i));const o=h.append("g"),p=h.append("g"),f=p.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(yt,t.width).node().getBBox(),_=a.fontSize&&a.fontSize.replace?a.fontSize.replace("px",""):a.fontSize;return t.height=f.height+_*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,p.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),zt(o,t,i),t},Ct=function(n,t,e){const a=n.append("g"),h=a.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(yt,t.width).node().getBBox(),o=e.fontSize&&e.fontSize.replace?e.fontSize.replace("px",""):e.fontSize;return a.remove(),h.height+o*1.1*.5+t.padding},zt=function(n,t,e){n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+2*5} q0,-5 5,-5 h${t.width-2*5} q5,0 5,5 v${t.height-5} H0 Z`),n.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},H={drawRect:U,drawCircle:It,drawSection:Nt,drawText:ut,drawLabel:$t,drawTask:Mt,drawBackgroundRect:Lt,getTextObj:At,getNoteRect:X,initGraphics:Pt,drawNode:Ht,getVirtualNodeHeight:Ct},Rt=function(n,t,e,a){var i,h;const o=mt(),p=o.leftMargin??50;E.debug("timeline",a.db);const y=o.securityLevel;let f;y==="sandbox"&&(f=G("#i"+t));const m=(y==="sandbox"?G(f.nodes()[0].contentDocument.body):G("body")).select("#"+t);m.append("g");const g=a.db.getTasks(),s=a.db.getCommonDb().getDiagramTitle();E.debug("task",g),H.initGraphics(m);const r=a.db.getSections();E.debug("sections",r);let c=0,d=0,u=0,l=0,$=50+p,x=50;l=50;let T=0,W=!0;r.forEach(function(w){const v={number:T,descr:w,section:T,width:150,padding:20,maxHeight:c},I=H.getVirtualNodeHeight(m,v,o);E.debug("sectionHeight before draw",I),c=Math.max(c,I+20)});let C=0,A=0;E.debug("tasks.length",g.length);for(const[w,v]of g.entries()){const I={number:w,descr:v,section:v.section,width:150,padding:20,maxHeight:d},P=H.getVirtualNodeHeight(m,I,o);E.debug("taskHeight before draw",P),d=Math.max(d,P+20),C=Math.max(C,v.events.length);let z=0;for(let b=0;b<v.events.length;b++){const S={descr:v.events[b],section:v.section,number:v.section,width:150,padding:20,maxHeight:50};z+=H.getVirtualNodeHeight(m,S,o)}A=Math.max(A,z)}E.debug("maxSectionHeight before draw",c),E.debug("maxTaskHeight before draw",d),r&&r.length>0?r.forEach(w=>{const v=g.filter(b=>b.section===w),I={number:T,descr:w,section:T,width:200*Math.max(v.length,1)-50,padding:20,maxHeight:c};E.debug("sectionNode",I);const P=m.append("g"),z=H.drawNode(P,I,T,o);E.debug("sectionNode output",z),P.attr("transform",`translate(${$}, ${l})`),x+=c+50,v.length>0&&nt(m,v,T,$,x,d,o,C,A,c,!1),$+=200*Math.max(v.length,1),x=l,T++}):(W=!1,nt(m,g,T,$,x,d,o,C,A,c,!0));const B=m.node().getBBox();E.debug("bounds",B),s&&m.append("text").text(s).attr("x",B.width/2-p).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),u=W?c+d+150:d+100,m.append("g").attr("class","lineWrapper").append("line").attr("x1",p).attr("y1",u).attr("x2",B.width+3*p).attr("y2",u).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),xt(void 0,m,((i=o.timeline)==null?void 0:i.padding)??50,((h=o.timeline)==null?void 0:h.useMaxWidth)??!1)},nt=function(n,t,e,a,i,h,o,p,y,f,_){var m;for(const g of t){const s={descr:g.task,section:e,number:e,width:150,padding:20,maxHeight:h};E.debug("taskNode",s);const r=n.append("g").attr("class","taskWrapper"),d=H.drawNode(r,s,e,o).height;if(E.debug("taskHeight after draw",d),r.attr("transform",`translate(${a}, ${i})`),h=Math.max(h,d),g.events){const u=n.append("g").attr("class","lineWrapper");let l=h;i+=100,l=l+Ft(n,g.events,e,a,i,o),i-=100,u.append("line").attr("x1",a+190/2).attr("y1",i+h).attr("x2",a+190/2).attr("y2",i+h+(_?h:f)+y+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}a=a+200,_&&!((m=o.timeline)!=null&&m.disableMulticolor)&&e++}i=i-10},Ft=function(n,t,e,a,i,h){let o=0;const p=i;i=i+100;for(const y of t){const f={descr:y,section:e,number:e,width:150,padding:20,maxHeight:50};E.debug("eventNode",f);const _=n.append("g").attr("class","eventWrapper"),g=H.drawNode(_,f,e,h).height;o=o+g,_.attr("transform",`translate(${a}, ${i})`),i=i+10+g}return i=p,o},Vt={setConf:()=>{},draw:Rt},Wt=n=>{let t="";for(let e=0;e<n.THEME_COLOR_LIMIT;e++)n["lineColor"+e]=n["lineColor"+e]||n["cScaleInv"+e],_t(n["lineColor"+e])?n["lineColor"+e]=bt(n["lineColor"+e],20):n["lineColor"+e]=kt(n["lineColor"+e],20);for(let e=0;e<n.THEME_COLOR_LIMIT;e++){const a=""+(17-3*e);t+=` + .section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} path { + fill: ${n["cScale"+e]}; + } + .section-${e-1} text { + fill: ${n["cScaleLabel"+e]}; + } + .node-icon-${e-1} { + font-size: 40px; + color: ${n["cScaleLabel"+e]}; + } + .section-edge-${e-1}{ + stroke: ${n["cScale"+e]}; + } + .edge-depth-${e-1}{ + stroke-width: ${a}; + } + .section-${e-1} line { + stroke: ${n["cScaleInv"+e]} ; + stroke-width: 3; + } + + .lineWrapper line{ + stroke: ${n["cScaleLabel"+e]} ; + } + + .disabled, .disabled circle, .disabled text { + fill: lightgray; + } + .disabled text { + fill: #efefef; + } + `}return t},Bt=n=>` + .edge { + stroke-width: 3; + } + ${Wt(n)} + .section-root rect, .section-root path, .section-root circle { + fill: ${n.git0}; + } + .section-root text { + fill: ${n.gitBranchLabel0}; + } + .icon-container { + height:100%; + display: flex; + justify-content: center; + align-items: center; + } + .edge { + fill: none; + } + .eventWrapper { + filter: brightness(120%); + } +`,Ot=Bt,Ee={db:St,renderer:Vt,parser:vt,styles:Ot};export{Ee as diagram}; diff --git a/assets/toast-qMk_Ov--.js b/assets/toast-qMk_Ov--.js new file mode 100644 index 00000000000..56e9e18a5b4 --- /dev/null +++ b/assets/toast-qMk_Ov--.js @@ -0,0 +1 @@ +import{r as ut,d as Tt,b as bt,u as It,a as _t}from"./init-a0893ef4-4662SO8Z.js";import{r as T,R as v,j as S}from"./index-qegmBwH1.js";import{a as z}from"./helper-0r91fNX5.js";import{M as Ct}from"./StyledButton-Mj8l6PeD.js";import{m as pt}from"./motion-minimal-gJqnz197.js";let xt=t=>[()=>ut().get(t),e=>ut().set(t,e)],kt=t=>[t,()=>Tt(t),()=>bt(t),()=>It(t),...xt(t)];const[,,Yt,,,Qt]=kt(_t(!1)),K=t=>typeof t=="number"&&!isNaN(t),q=t=>typeof t=="string",w=t=>typeof t=="function",ot=t=>q(t)||w(t)?t:null,lt=t=>T.isValidElement(t)||q(t)||w(t)||K(t);function Lt(t,e,o){o===void 0&&(o=300);const{scrollHeight:r,style:s}=t;requestAnimationFrame(()=>{s.minHeight="initial",s.height=r+"px",s.transition=`all ${o}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(e,o)})})}function at(t){let{enter:e,exit:o,appendPosition:r=!1,collapse:s=!0,collapseDuration:l=300}=t;return function(n){let{children:E,position:m,preventExitTransition:_,done:u,nodeRef:C,isIn:I,playToast:k}=n;const f=r?`${e}--${m}`:e,d=r?`${o}--${m}`:o,b=T.useRef(0);return T.useLayoutEffect(()=>{const p=C.current,c=f.split(" "),a=g=>{g.target===C.current&&(k(),p.removeEventListener("animationend",a),p.removeEventListener("animationcancel",a),b.current===0&&g.type!=="animationcancel"&&p.classList.remove(...c))};p.classList.add(...c),p.addEventListener("animationend",a),p.addEventListener("animationcancel",a)},[]),T.useEffect(()=>{const p=C.current,c=()=>{p.removeEventListener("animationend",c),s?Lt(p,u,l):u()};I||(_?c():(b.current=1,p.className+=` ${d}`,p.addEventListener("animationend",c)))},[I]),v.createElement(v.Fragment,null,E)}}function mt(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const L=new Map;let Z=[];const ct=new Set,Nt=t=>ct.forEach(e=>e(t)),gt=()=>L.size>0;function yt(t,e){var o;if(e)return!((o=L.get(e))==null||!o.isToastActive(t));let r=!1;return L.forEach(s=>{s.isToastActive(t)&&(r=!0)}),r}function vt(t,e){lt(t)&&(gt()||Z.push({content:t,options:e}),L.forEach(o=>{o.buildToast(t,e)}))}function ft(t,e){L.forEach(o=>{e!=null&&e!=null&&e.containerId?e?.containerId===o.id&&o.toggle(t,e?.id):o.toggle(t,e?.id)})}function wt(t){const{subscribe:e,getSnapshot:o,setProps:r}=T.useRef(function(l){const n=l.containerId||1;return{subscribe(E){const m=function(u,C,I){let k=1,f=0,d=[],b=[],p=[],c=C;const a=new Map,g=new Set,M=()=>{p=Array.from(a.values()),g.forEach(i=>i())},O=i=>{b=i==null?[]:b.filter(h=>h!==i),M()},x=i=>{const{toastId:h,onOpen:N,updateId:R,children:j}=i.props,Y=R==null;i.staleId&&a.delete(i.staleId),a.set(h,i),b=[...b,i.props.toastId].filter(H=>H!==i.staleId),M(),I(mt(i,Y?"added":"updated")),Y&&w(N)&&N(T.isValidElement(j)&&j.props)};return{id:u,props:c,observe:i=>(g.add(i),()=>g.delete(i)),toggle:(i,h)=>{a.forEach(N=>{h!=null&&h!==N.props.toastId||w(N.toggle)&&N.toggle(i)})},removeToast:O,toasts:a,clearQueue:()=>{f-=d.length,d=[]},buildToast:(i,h)=>{if((A=>{let{containerId:P,toastId:$,updateId:B}=A;const X=P?P!==u:u!==1,G=a.has($)&&B==null;return X||G})(h))return;const{toastId:N,updateId:R,data:j,staleId:Y,delay:H}=h,Q=()=>{O(N)},tt=R==null;tt&&f++;const D={...c,style:c.toastStyle,key:k++,...Object.fromEntries(Object.entries(h).filter(A=>{let[P,$]=A;return $!=null})),toastId:N,updateId:R,data:j,closeToast:Q,isIn:!1,className:ot(h.className||c.toastClassName),bodyClassName:ot(h.bodyClassName||c.bodyClassName),progressClassName:ot(h.progressClassName||c.progressClassName),autoClose:!h.isLoading&&(F=h.autoClose,W=c.autoClose,F===!1||K(F)&&F>0?F:W),deleteToast(){const A=a.get(N),{onClose:P,children:$}=A.props;w(P)&&P(T.isValidElement($)&&$.props),I(mt(A,"removed")),a.delete(N),f--,f<0&&(f=0),d.length>0?x(d.shift()):M()}};var F,W;D.closeButton=c.closeButton,h.closeButton===!1||lt(h.closeButton)?D.closeButton=h.closeButton:h.closeButton===!0&&(D.closeButton=!lt(c.closeButton)||c.closeButton);let U=i;T.isValidElement(i)&&!q(i.type)?U=T.cloneElement(i,{closeToast:Q,toastProps:D,data:j}):w(i)&&(U=i({closeToast:Q,toastProps:D,data:j}));const V={content:U,props:D,staleId:Y};c.limit&&c.limit>0&&f>c.limit&&tt?d.push(V):K(H)?setTimeout(()=>{x(V)},H):x(V)},setProps(i){c=i},setToggle:(i,h)=>{a.get(i).toggle=h},isToastActive:i=>b.some(h=>h===i),getSnapshot:()=>c.newestOnTop?p.reverse():p}}(n,l,Nt);L.set(n,m);const _=m.observe(E);return Z.forEach(u=>vt(u.content,u.options)),Z=[],()=>{_(),L.delete(n)}},setProps(E){var m;(m=L.get(n))==null||m.setProps(E)},getSnapshot(){var E;return(E=L.get(n))==null?void 0:E.getSnapshot()}}}(t)).current;r(t);const s=T.useSyncExternalStore(e,o,o);return{getToastToRender:function(l){if(!s)return[];const n=new Map;return s.forEach(E=>{const{position:m}=E.props;n.has(m)||n.set(m,[]),n.get(m).push(E)}),Array.from(n,E=>l(E[0],E[1]))},isToastActive:yt,count:s?.length}}function Pt(t){const[e,o]=T.useState(!1),[r,s]=T.useState(!1),l=T.useRef(null),n=T.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:E,pauseOnHover:m,closeToast:_,onClick:u,closeOnClick:C}=t;var I,k;function f(){o(!0)}function d(){o(!1)}function b(a){const g=l.current;n.canDrag&&g&&(n.didMove=!0,e&&d(),n.delta=t.draggableDirection==="x"?a.clientX-n.start:a.clientY-n.start,n.start!==a.clientX&&(n.canCloseOnClick=!1),g.style.transform=`translate3d(${t.draggableDirection==="x"?`${n.delta}px, var(--y)`:`0, calc(${n.delta}px + var(--y))`},0)`,g.style.opacity=""+(1-Math.abs(n.delta/n.removalDistance)))}function p(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",p);const a=l.current;if(n.canDrag&&n.didMove&&a){if(n.canDrag=!1,Math.abs(n.delta)>n.removalDistance)return s(!0),t.closeToast(),void t.collapseAll();a.style.transition="transform 0.2s, opacity 0.2s",a.style.removeProperty("transform"),a.style.removeProperty("opacity")}}(k=L.get((I={id:t.toastId,containerId:t.containerId,fn:o}).containerId||1))==null||k.setToggle(I.id,I.fn),T.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||d(),window.addEventListener("focus",f),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",d)}},[t.pauseOnFocusLoss]);const c={onPointerDown:function(a){if(t.draggable===!0||t.draggable===a.pointerType){n.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",p);const g=l.current;n.canCloseOnClick=!0,n.canDrag=!0,g.style.transition="none",t.draggableDirection==="x"?(n.start=a.clientX,n.removalDistance=g.offsetWidth*(t.draggablePercent/100)):(n.start=a.clientY,n.removalDistance=g.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(a){const{top:g,bottom:M,left:O,right:x}=l.current.getBoundingClientRect();a.nativeEvent.type!=="touchend"&&t.pauseOnHover&&a.clientX>=O&&a.clientX<=x&&a.clientY>=g&&a.clientY<=M?d():f()}};return E&&m&&(c.onMouseEnter=d,t.stacked||(c.onMouseLeave=f)),C&&(c.onClick=a=>{u&&u(a),n.canCloseOnClick&&_()}),{playToast:f,pauseToast:d,isRunning:e,preventExitTransition:r,toastRef:l,eventHandlers:c}}function $t(t){let{delay:e,isRunning:o,closeToast:r,type:s="default",hide:l,className:n,style:E,controlledProgress:m,progress:_,rtl:u,isIn:C,theme:I}=t;const k=l||m&&_===0,f={...E,animationDuration:`${e}ms`,animationPlayState:o?"running":"paused"};m&&(f.transform=`scaleX(${_})`);const d=z("Toastify__progress-bar",m?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${I}`,`Toastify__progress-bar--${s}`,{"Toastify__progress-bar--rtl":u}),b=w(n)?n({rtl:u,type:s,defaultClassName:d}):z(d,n),p={[m&&_>=1?"onTransitionEnd":"onAnimationEnd"]:m&&_<1?null:()=>{C&&r()}};return v.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":k},v.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${I} Toastify__progress-bar--${s}`}),v.createElement("div",{role:"progressbar","aria-hidden":k?"true":"false","aria-label":"notification timer",className:b,style:f,...p}))}let Mt=1;const ht=()=>""+Mt++;function At(t){return t&&(q(t.toastId)||K(t.toastId))?t.toastId:ht()}function J(t,e){return vt(t,e),e.toastId}function st(t,e){return{...e,type:e&&e.type||t,toastId:At(e)}}function et(t){return(e,o)=>J(e,st(t,o))}function y(t,e){return J(t,st("default",e))}y.loading=(t,e)=>J(t,st("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),y.promise=function(t,e,o){let r,{pending:s,error:l,success:n}=e;s&&(r=q(s)?y.loading(s,o):y.loading(s.render,{...o,...s}));const E={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},m=(u,C,I)=>{if(C==null)return void y.dismiss(r);const k={type:u,...E,...o,data:I},f=q(C)?{render:C}:C;return r?y.update(r,{...k,...f}):y(f.render,{...k,...f}),I},_=w(t)?t():t;return _.then(u=>m("success",n,u)).catch(u=>m("error",l,u)),_},y.success=et("success"),y.info=et("info"),y.error=et("error"),y.warning=et("warning"),y.warn=y.warning,y.dark=(t,e)=>J(t,st("default",{theme:"dark",...e})),y.dismiss=function(t){(function(e){var o;if(gt()){if(e==null||q(o=e)||K(o))L.forEach(s=>{s.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){var r;(r=L.get(e.containerId))!=null&&r.removeToast(e.id)||L.forEach(s=>{s.removeToast(e.id)})}}else Z=Z.filter(s=>e!=null&&s.options.toastId!==e)})(t)},y.clearWaitingQueue=function(t){t===void 0&&(t={}),L.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},y.isActive=yt,y.update=function(t,e){e===void 0&&(e={});const o=((r,s)=>{var l;let{containerId:n}=s;return(l=L.get(n||1))==null?void 0:l.toasts.get(r)})(t,e);if(o){const{props:r,content:s}=o,l={delay:100,...r,...e,toastId:e.toastId||t,updateId:ht()};l.toastId!==t&&(l.staleId=t);const n=l.render||s;delete l.render,J(n,l)}},y.done=t=>{y.update(t,{progress:1})},y.onChange=function(t){return ct.add(t),()=>{ct.delete(t)}},y.play=t=>ft(!0,t),y.pause=t=>ft(!1,t);const Bt=typeof window<"u"?T.useLayoutEffect:T.useEffect,nt=t=>{let{theme:e,type:o,isLoading:r,...s}=t;return v.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${o})`,...s})},it={info:function(t){return v.createElement(nt,{...t},v.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return v.createElement(nt,{...t},v.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return v.createElement(nt,{...t},v.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return v.createElement(nt,{...t},v.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return v.createElement("div",{className:"Toastify__spinner"})}},Ot=t=>{const{isRunning:e,preventExitTransition:o,toastRef:r,eventHandlers:s,playToast:l}=Pt(t),{closeButton:n,children:E,autoClose:m,onClick:_,type:u,hideProgressBar:C,closeToast:I,transition:k,position:f,className:d,style:b,bodyClassName:p,bodyStyle:c,progressClassName:a,progressStyle:g,updateId:M,role:O,progress:x,rtl:i,toastId:h,deleteToast:N,isIn:R,isLoading:j,closeOnClick:Y,theme:H}=t,Q=z("Toastify__toast",`Toastify__toast-theme--${H}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":i},{"Toastify__toast--close-on-click":Y}),tt=w(d)?d({rtl:i,position:f,type:u,defaultClassName:Q}):z(Q,d),D=function(V){let{theme:A,type:P,isLoading:$,icon:B}=V,X=null;const G={theme:A,type:P};return B===!1||(w(B)?X=B({...G,isLoading:$}):T.isValidElement(B)?X=T.cloneElement(B,G):$?X=it.spinner():(Et=>Et in it)(P)&&(X=it[P](G))),X}(t),F=!!x||!m,W={closeToast:I,type:u,theme:H};let U=null;return n===!1||(U=w(n)?n(W):T.isValidElement(n)?T.cloneElement(n,W):function(V){let{closeToast:A,theme:P,ariaLabel:$="close"}=V;return v.createElement("button",{className:`Toastify__close-button Toastify__close-button--${P}`,type:"button",onClick:B=>{B.stopPropagation(),A(B)},"aria-label":$},v.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},v.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(W)),v.createElement(k,{isIn:R,done:N,position:f,preventExitTransition:o,nodeRef:r,playToast:l},v.createElement("div",{id:h,onClick:_,"data-in":R,className:tt,...s,style:b,ref:r},v.createElement("div",{...R&&{role:O},className:w(p)?p({type:u}):z("Toastify__toast-body",p),style:c},D!=null&&v.createElement("div",{className:z("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!j})},D),v.createElement("div",null,E)),U,v.createElement($t,{...M&&!F?{key:`pb-${M}`}:{},rtl:i,theme:H,delay:m,isRunning:e,isIn:R,closeToast:I,hide:C,type:u,style:g,className:a,controlledProgress:F,progress:x||0})))},rt=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},Rt=at(rt("bounce",!0));at(rt("slide",!0));at(rt("zoom"));at(rt("flip"));const Dt={position:"top-right",transition:Rt,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Wt(t){let e={...Dt,...t};const o=t.stacked,[r,s]=T.useState(!0),l=T.useRef(null),{getToastToRender:n,isToastActive:E,count:m}=wt(e),{className:_,style:u,rtl:C,containerId:I}=e;function k(d){const b=z("Toastify__toast-container",`Toastify__toast-container--${d}`,{"Toastify__toast-container--rtl":C});return w(_)?_({position:d,rtl:C,defaultClassName:b}):z(b,ot(_))}function f(){o&&(s(!0),y.play())}return Bt(()=>{if(o){var d;const b=l.current.querySelectorAll('[data-in="true"]'),p=12,c=(d=e.position)==null?void 0:d.includes("top");let a=0,g=0;Array.from(b).reverse().forEach((M,O)=>{const x=M;x.classList.add("Toastify__toast--stacked"),O>0&&(x.dataset.collapsed=`${r}`),x.dataset.pos||(x.dataset.pos=c?"top":"bot");const i=a*(r?.2:1)+(r?0:p*O);x.style.setProperty("--y",`${c?i:-1*i}px`),x.style.setProperty("--g",`${p}`),x.style.setProperty("--s",""+(1-(r?g:0))),a+=x.offsetHeight,g+=.025})}},[r,m,o]),v.createElement("div",{ref:l,className:"Toastify",id:I,onMouseEnter:()=>{o&&(s(!1),y.pause())},onMouseLeave:f},n((d,b)=>{const p=b.length?{...u}:{...u,pointerEvents:"none"};return v.createElement("div",{className:k(d),style:p,key:`container-${d}`},b.map(c=>{let{content:a,props:g}=c;return v.createElement(Ot,{...g,stacked:o,collapseAll:f,isIn:E(g.toastId,g.containerId),style:g.style,key:`toast-${g.key}`},a)}))}))}const St={success:S.jsx("i",{className:"icon-[mingcute--check-fill] text-uk-green-light"}),error:S.jsx("i",{className:"icon-[mingcute--close-fill] text-uk-red-light"}),info:S.jsx("i",{className:"icon-[mingcute--information-fill] text-uk-blue-light"}),warning:S.jsx("i",{className:"icon-[mingcute--alert-fill] text-uk-orange-light"}),default:S.jsx("i",{className:"icon-[mingcute--information-fill] text-uk-blue-light"})},zt=t=>{const{iconElement:e,message:o,closeToast:r,onClick:s}=t,l=s?pt.button:pt.div;return S.jsxs(l,{layout:"position",className:z("relative w-full overflow-hidden rounded-xl card-shadow","my-4 mr-4 px-4 py-5 pr-7","bg-slate-50/90 backdrop-blur-sm dark:bg-neutral-900/90","border border-slate-100/80 dark:border-neutral-900/80","space-x-4","flex items-center","select-none","[&>i]:flex-shrink-0","[&>svg]:flex-shrink-0"),onClick:s,children:[e??St[t.toastProps?.type??"default"],S.jsx("span",{className:"text-left",children:o}),S.jsx(Ct,{"aria-label":"Close toast",className:"absolute bottom-0 right-3 top-0 flex items-center text-sm text-base-content/40 duration-200 hover:text-base-content/80",onClick:n=>{n.stopPropagation(),r?.()},children:S.jsx("i",{className:"icon-[mingcute--close-fill] p-2"})})]})},jt={position:"bottom-right",autoClose:3e3,pauseOnHover:!0,hideProgressBar:!0,closeOnClick:!0,closeButton:!1},dt=(t,e,o)=>{const{iconElement:r,onClick:s,...l}=o||{};return y(T.createElement(zt,{message:t,iconElement:r,onClick:s}),{type:e,...jt,...l})};["success","info","warn","error"].forEach(t=>{dt[t]=(e,o)=>dt(e,t,o)});Object.assign(dt,{dismiss:y.dismiss});export{Wt as Q,kt as i,Qt as s,dt as t,Yt as u}; diff --git a/assets/use-event-callback-nMlqCkS7.js b/assets/use-event-callback-nMlqCkS7.js new file mode 100644 index 00000000000..d134b349665 --- /dev/null +++ b/assets/use-event-callback-nMlqCkS7.js @@ -0,0 +1 @@ +import{r as t}from"./index-qegmBwH1.js";const c=r=>{const e=t.useRef(r);return e.current=r,t.useCallback((...s)=>e.current(...s),[])};export{c as u}; diff --git a/assets/use-is-client-IECHC2ux.js b/assets/use-is-client-IECHC2ux.js new file mode 100644 index 00000000000..a54285f1075 --- /dev/null +++ b/assets/use-is-client-IECHC2ux.js @@ -0,0 +1 @@ +import{r as t}from"./index-qegmBwH1.js";const r=()=>{const[s,e]=t.useState(!1);return t.useEffect(()=>{e(!0)},[]),s},i=()=>{const[s,e]=t.useState(!1);return t.useEffect(()=>{t.startTransition(()=>{e(!0)})},[]),s};export{i as a,r as u}; diff --git a/assets/use-is-dark-13kBJDHw.js b/assets/use-is-dark-13kBJDHw.js new file mode 100644 index 00000000000..9dc433142c1 --- /dev/null +++ b/assets/use-is-dark-13kBJDHw.js @@ -0,0 +1 @@ +import{r as a,R as k}from"./index-qegmBwH1.js";const w=["light","dark"],x="(prefers-color-scheme: dark)",K=typeof window>"u",L=a.createContext(void 0),N={setTheme:e=>{},themes:[]},j=()=>{var e;return(e=a.useContext(L))!==null&&e!==void 0?e:N},H=e=>a.useContext(L)?k.createElement(a.Fragment,null,e.children):k.createElement(R,e),J=["light","dark"],R=({forcedTheme:e,disableTransitionOnChange:m=!1,enableSystem:t=!0,enableColorScheme:$=!0,storageKey:d="theme",themes:r=J,defaultTheme:n=t?"system":"light",attribute:f="data-theme",value:h,children:b,nonce:S})=>{const[c,i]=a.useState(()=>M(d,n)),[p,l]=a.useState(()=>M(d)),v=h?Object.values(h):r,C=a.useCallback(s=>{let o=s;if(!o)return;s==="system"&&t&&(o=O());const E=h?h[o]:o,I=m?D():null,T=document.documentElement;if(f==="class"?(T.classList.remove(...v),E&&T.classList.add(E)):E?T.setAttribute(f,E):T.removeAttribute(f),$){const A=w.includes(n)?n:null,_=w.includes(o)?o:A;T.style.colorScheme=_}I?.()},[]),u=a.useCallback(s=>{i(s);try{localStorage.setItem(d,s)}catch{}},[e]),y=a.useCallback(s=>{const o=O(s);l(o),c==="system"&&t&&!e&&C("system")},[c,e]);a.useEffect(()=>{const s=window.matchMedia(x);return s.addListener(y),y(s),()=>s.removeListener(y)},[y]),a.useEffect(()=>{const s=o=>{o.key===d&&u(o.newValue||n)};return window.addEventListener("storage",s),()=>window.removeEventListener("storage",s)},[u]),a.useEffect(()=>{C(e??c)},[e,c]);const g=a.useMemo(()=>({theme:c,setTheme:u,forcedTheme:e,resolvedTheme:c==="system"?p:c,themes:t?[...r,"system"]:r,systemTheme:t?p:void 0}),[c,u,e,p,t,r]);return k.createElement(L.Provider,{value:g},k.createElement(z,{forcedTheme:e,disableTransitionOnChange:m,enableSystem:t,enableColorScheme:$,storageKey:d,themes:r,defaultTheme:n,attribute:f,value:h,children:b,attrs:v,nonce:S}),b)},z=a.memo(({forcedTheme:e,storageKey:m,attribute:t,enableSystem:$,enableColorScheme:d,defaultTheme:r,value:n,attrs:f,nonce:h})=>{const b=r==="system",S=t==="class"?`var d=document.documentElement,c=d.classList;c.remove(${f.map(l=>`'${l}'`).join(",")});`:`var d=document.documentElement,n='${t}',s='setAttribute';`,c=d?w.includes(r)&&r?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${r}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",i=(l,v=!1,C=!0)=>{const u=n?n[l]:l,y=v?l+"|| ''":`'${u}'`;let g="";return d&&C&&!v&&w.includes(l)&&(g+=`d.style.colorScheme = '${l}';`),t==="class"?g+=v||u?`c.add(${y})`:"null":u&&(g+=`d[s](n,${y})`),g},p=e?`!function(){${S}${i(e)}}()`:$?`!function(){try{${S}var e=localStorage.getItem('${m}');if('system'===e||(!e&&${b})){var t='${x}',m=window.matchMedia(t);if(m.media!==t||m.matches){${i("dark")}}else{${i("light")}}}else if(e){${n?`var x=${JSON.stringify(n)};`:""}${i(n?"x[e]":"e",!0)}}${b?"":"else{"+i(r,!1,!1)+"}"}${c}}catch(e){}}()`:`!function(){try{${S}var e=localStorage.getItem('${m}');if(e){${n?`var x=${JSON.stringify(n)};`:""}${i(n?"x[e]":"e",!0)}}else{${i(r,!1,!1)};}${c}}catch(t){}}();`;return k.createElement("script",{nonce:h,dangerouslySetInnerHTML:{__html:p}})},()=>!0),M=(e,m)=>{if(K)return;let t;try{t=localStorage.getItem(e)||void 0}catch{}return t||m},D=()=>{const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},O=e=>(e||(e=window.matchMedia(x)),e.matches?"dark":"light"),P=()=>{const{theme:e,systemTheme:m}=j();return e==="dark"||e==="system"&&m==="dark"};export{H as $,P as u}; diff --git a/assets/use-is-unmounted-6i0OwE-p.js b/assets/use-is-unmounted-6i0OwE-p.js new file mode 100644 index 00000000000..6aa090fce74 --- /dev/null +++ b/assets/use-is-unmounted-6i0OwE-p.js @@ -0,0 +1 @@ +import{j as a,r as t}from"./index-qegmBwH1.js";import{c as n}from"./helper-0r91fNX5.js";const l=e=>{const{className:s,...r}=e;return a.jsx("hr",{className:n("my-4 h-[0.5px] border-0 bg-black !bg-opacity-30 dark:bg-white",s),...r})},u=e=>{const{className:s,...r}=e;return a.jsx("span",{className:n("mx-4 inline-block h-full w-[0.5px] select-none bg-black !bg-opacity-30 text-transparent dark:bg-white",s),...r,children:"w"})},i=()=>{const e=t.useRef(!1);return t.useEffect(()=>(e.current=!1,()=>{e.current=!0}),[]),e};export{l as D,u as a,i as u}; diff --git a/assets/usePeek-N6a5Jy_H.js b/assets/usePeek-N6a5Jy_H.js new file mode 100644 index 00000000000..6b835acc5dc --- /dev/null +++ b/assets/usePeek-N6a5Jy_H.js @@ -0,0 +1,7 @@ +import{r as l,j as t,_ as u}from"./index-qegmBwH1.js";import{m as w}from"./visual-element-YIiczwVf.js";import{u as v,M as j,a as I,c as k,f as C,i as m,m as p}from"./motion-minimal-gJqnz197.js";import{u as P,b as M}from"./owner-4YVbz2PN.js";import"./toast-qMk_Ov--.js";import{a as f}from"./provider-jumr72cx.js";import{L as b}from"./StyledButton-Mj8l6PeD.js";import{u as y}from"./image-sZM8elMx.js";import{m as N}from"./spring--xEiX8r3.js";function _(e){const n=v(()=>w(e)),{isStatic:s}=l.useContext(j);if(s){const[,i]=l.useState(e);l.useEffect(()=>n.on("change",i),[])}return n}function V(e,n){const s=_(n()),i=()=>s.set(n());return i(),I(()=>{const r=()=>C.update(i,!1,!0),o=e.map(a=>a.on("change",r));return()=>{o.forEach(a=>a()),k(i)}}),s}function z(e,...n){const s=e.length;function i(){let r="";for(let o=0;o<s;o++){r+=e[o];const a=n[o];a&&(r+=m(a)?a.get():a)}return r}return V(n.filter(m),i)}var c=(e=>(e.Click="click",e.Interaction="interaction",e.Impression="impression",e))(c||{});const E=e=>{const{shouldTrack:n=!0,...s}=e;return n?t.jsx(x,{...s}):t.jsx(t.Fragment,{children:e.children})},x=l.memo(e=>{const[n,s]=l.useState(!1),i=P(),{ref:r}=y({initialInView:!1,triggerOnce:!0,onChange(o){if(o){if(s(!0),i)return;document.dispatchEvent(new CustomEvent("impression",{detail:{action:e.action??c.Impression,label:e.trackerMessage}})),e.onTrack?.()}}});return t.jsxs(t.Fragment,{children:[e.children,!n&&t.jsx("span",{ref:r})]})});x.displayName="ImpressionView";const d=e=>{const{dismissAll:n,dismissTop:s}=f();return t.jsxs("div",{className:"relative mx-auto mt-[10vh] max-w-full overflow-auto px-2 scrollbar-none lg:max-w-[65rem] lg:p-0",children:[t.jsx(E,{action:c.Impression,trackerMessage:"Peek Modal"}),t.jsx(p.div,{initial:{opacity:.5,y:50},animate:{opacity:1,y:0},exit:{opacity:0,y:50},transition:N,className:"scrollbar-none",children:e.children}),t.jsxs(p.div,{initial:!0,exit:{opacity:0},className:"fixed right-2 top-2 flex items-center gap-4",children:[t.jsxs(b,{className:"flex h-8 w-8 rounded-full p-1 shadow-sm ring-1 ring-zinc-200 center dark:ring-neutral-800",href:e.to,onClick:n,children:[t.jsx("i",{className:"icon-[mingcute--fullscreen-2-line] text-lg"}),t.jsx("span",{className:"sr-only",children:"Go to this link"})]}),t.jsxs("button",{className:"flex h-8 w-8 rounded-full p-1 shadow-sm ring-1 ring-zinc-200 center dark:ring-neutral-800",onClick:s,children:[t.jsx("i",{className:"icon-[mingcute--close-line] text-lg"}),t.jsx("span",{className:"sr-only",children:"Dimiss"})]})]})]})},W=()=>{const e=M(),{present:n}=f();return l.useCallback(s=>{if(e)return;const i={clickOutsideToDismiss:!0,title:"Preview",modalClassName:"relative mx-auto mt-[10vh] scrollbar-none max-w-full overflow-auto px-2 lg:max-w-[65rem] lg:p-0"};return s.startsWith("/notes/")?(requestAnimationFrame(async()=>{const r=await u(()=>import("./NotePreview-EmJiu6Nz.js"),__vite__mapDeps([0,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]),import.meta.url).then(o=>o.NotePreview);n({...i,CustomModalComponent:()=>t.jsx(d,{to:s,children:t.jsx(r,{noteId:parseInt(s.split("/").pop())})}),content:()=>null})}),!0):s.startsWith("/posts/")?(requestAnimationFrame(async()=>{const r=await u(()=>import("./PostPreview-eQezOeHD.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,8,9,10,11,12,44,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,45]),import.meta.url).then(h=>h.PostPreview),o=s.split("/"),a=o.pop(),g=o.pop();n({...i,CustomModalComponent:()=>t.jsx(d,{to:s,children:t.jsx(r,{category:g,slug:a})}),content:()=>null})}),!0):!1},[e,n])};export{c as T,z as a,W as b,_ as u}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["./NotePreview-EmJiu6Nz.js","./index-qegmBwH1.js","./index-SRCubG37.css","./useQuery-44y7CkOR.js","./owner-4YVbz2PN.js","./toast-qMk_Ov--.js","./init-a0893ef4-4662SO8Z.js","./helper-0r91fNX5.js","./StyledButton-Mj8l6PeD.js","./index-5Y6ZmVAf.js","./motion-minimal-gJqnz197.js","./store-gmK8mRDy.js","./env-y9k74Ds6.js","./utils-t32ZRaBl.js","./WrappedElementProvider-5243oAX6.js","./image-sZM8elMx.js","./use-is-unmounted-6i0OwE-p.js","./lodash-Y39_oLIE.js","./WrappedElementProvider-v7JdpuAw.css","./provider-jumr72cx.js","./spring--xEiX8r3.js","./use-event-callback-nMlqCkS7.js","./dom-NuJWIaAq.js","./visual-element-YIiczwVf.js","./Markdown-hVdCypI9.js","./script-SYgWefdU.js","./FloatPopover-1BpKQIdq.js","./use-is-client-IECHC2ux.js","./Gallery-MHeEsxti.js","./Gallery-ktaGTCNz.css","./LinkCard-r30gHz-0.js","./LinkCard-P0Jx4JBj.css","./SocialSourceLink-c8HgVvxv.js","./CodeHighlighter-Sy1nPjje.js","./use-is-dark-13kBJDHw.js","./CodeHighlighter-hcFZa2QO.css","./Collapse-Q-wSwlx_.js","./Markdown-B8lEAZHM.css","./CurrentPostDataProvider-sxwUfZTo.js","./AutoResizeHeight-pHZ_oyCK.js","./customParseFormat-3OBJgCTU.js","./FlexText-sued5-2E.js","./NotePreview-aX_R-inV.css","./PostPreview-eQezOeHD.js","./index-I7weg1Js.js","./PinIconToggle-aUENNNd6.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/assets/useQuery-44y7CkOR.js b/assets/useQuery-44y7CkOR.js new file mode 100644 index 00000000000..02427b74aeb --- /dev/null +++ b/assets/useQuery-44y7CkOR.js @@ -0,0 +1 @@ +import{S as M,s as O,n as x,i as U,c as I,t as A,f as L,d as k,r as w,e as D,g as B,h as j}from"./owner-4YVbz2PN.js";import{r as f}from"./index-qegmBwH1.js";var K=class extends M{constructor(t,e){super(),this.options=e,this.#s=t,this.#i=null,this.bindMethods(),this.setOptions(e)}#s;#t=void 0;#f=void 0;#e=void 0;#n;#u;#i;#p;#c;#l;#a;#h;#r;#d=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),F(this.#t,this.options)?this.#o():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return m(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return m(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#g(),this.#O(),this.#t.removeObserver(this)}setOptions(t,e){const s=this.options,r=this.#t;if(this.options=this.#s.defaultQueryOptions(t),O(s,this.options)||this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.#m();const a=this.hasListeners();a&&T(this.#t,r,this.options,s)&&this.#o(),this.updateResult(e),a&&(this.#t!==r||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.#y();const o=this.#R();a&&(this.#t!==r||this.options.enabled!==s.enabled||o!==this.#r)&&this.#b(o)}getOptimisticResult(t){const e=this.#s.getQueryCache().build(this.#s,t),s=this.createResult(e,t);return W(this,s)&&(this.#e=s,this.#u=this.options,this.#n=this.#t.state),s}getCurrentResult(){return this.#e}trackResult(t){const e={};return Object.keys(t).forEach(s=>{Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:()=>(this.#d.add(s),t[s])})}),e}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#s.defaultQueryOptions(t),s=this.#s.getQueryCache().build(this.#s,e);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,e))}fetch(t){return this.#o({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#e))}#o(t){this.#m();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(x)),e}#y(){if(this.#g(),U||this.#e.isStale||!I(this.options.staleTime))return;const e=A(this.#e.dataUpdatedAt,this.options.staleTime)+1;this.#a=setTimeout(()=>{this.#e.isStale||this.updateResult()},e)}#R(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(t){this.#O(),this.#r=t,!(U||this.options.enabled===!1||!I(this.#r)||this.#r===0)&&(this.#h=setInterval(()=>{(this.options.refetchIntervalInBackground||L.isFocused())&&this.#o()},this.#r))}#v(){this.#y(),this.#b(this.#R())}#g(){this.#a&&(clearTimeout(this.#a),this.#a=void 0)}#O(){this.#h&&(clearInterval(this.#h),this.#h=void 0)}createResult(t,e){const s=this.#t,r=this.options,a=this.#e,o=this.#n,n=this.#u,c=t!==s?t.state:this.#f,{state:i}=t;let{error:p,errorUpdatedAt:S,fetchStatus:y,status:d}=i,E=!1,l;if(e._optimisticResults){const u=this.hasListeners(),g=!u&&F(t,e),P=u&&T(t,s,e,r);(g||P)&&(y=k(t.options.networkMode)?"fetching":"paused",i.dataUpdatedAt||(d="pending")),e._optimisticResults==="isRestoring"&&(y="idle")}if(e.select&&typeof i.data<"u")if(a&&i.data===o?.data&&e.select===this.#p)l=this.#c;else try{this.#p=e.select,l=e.select(i.data),l=w(a?.data,l,e),this.#c=l,this.#i=null}catch(u){this.#i=u}else l=i.data;if(typeof e.placeholderData<"u"&&typeof l>"u"&&d==="pending"){let u;if(a?.isPlaceholderData&&e.placeholderData===n?.placeholderData)u=a.data;else if(u=typeof e.placeholderData=="function"?e.placeholderData(this.#l?.state.data,this.#l):e.placeholderData,e.select&&typeof u<"u")try{u=e.select(u),this.#i=null}catch(g){this.#i=g}typeof u<"u"&&(d="success",l=w(a?.data,u,e),E=!0)}this.#i&&(p=this.#i,l=this.#c,S=Date.now(),d="error");const R=y==="fetching",b=d==="pending",v=d==="error",Q=b&&R;return{status:d,fetchStatus:y,isPending:b,isSuccess:d==="success",isError:v,isInitialLoading:Q,isLoading:Q,data:l,dataUpdatedAt:i.dataUpdatedAt,error:p,errorUpdatedAt:S,failureCount:i.fetchFailureCount,failureReason:i.fetchFailureReason,errorUpdateCount:i.errorUpdateCount,isFetched:i.dataUpdateCount>0||i.errorUpdateCount>0,isFetchedAfterMount:i.dataUpdateCount>c.dataUpdateCount||i.errorUpdateCount>c.errorUpdateCount,isFetching:R,isRefetching:R&&!b,isLoadingError:v&&i.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:E,isRefetchError:v&&i.dataUpdatedAt!==0,isStale:C(t,e),refetch:this.refetch}}updateResult(t){const e=this.#e,s=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#u=this.options,this.#n.data!==void 0&&(this.#l=this.#t),O(s,e))return;this.#e=s;const r={},a=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,n=typeof o=="function"?o():o;if(n==="all"||!n&&!this.#d.size)return!0;const h=new Set(n??this.#d);return this.options.throwOnError&&h.add("error"),Object.keys(this.#e).some(c=>{const i=c;return this.#e[i]!==e[i]&&h.has(i)})};t?.listeners!==!1&&a()&&(r.listeners=!0),this.#C({...r,...t})}#m(){const t=this.#s.getQueryCache().build(this.#s,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#f=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#C(t){D.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#e)}),this.#s.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function V(t,e){return e.enabled!==!1&&!t.state.dataUpdatedAt&&!(t.state.status==="error"&&e.retryOnMount===!1)}function F(t,e){return V(t,e)||t.state.dataUpdatedAt>0&&m(t,e,e.refetchOnMount)}function m(t,e,s){if(e.enabled!==!1){const r=typeof s=="function"?s(t):s;return r==="always"||r!==!1&&C(t,e)}return!1}function T(t,e,s,r){return s.enabled!==!1&&(t!==e||r.enabled===!1)&&(!s.suspense||t.state.status!=="error")&&C(t,s)}function C(t,e){return t.isStaleByTime(e.staleTime)}function W(t,e){return!O(t.getCurrentResult(),e)}function _(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var z=f.createContext(_()),H=()=>f.useContext(z);function N(t,e){return typeof t=="function"?t(...e):!!t}var q=(t,e)=>{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},G=t=>{f.useEffect(()=>{t.clearReset()},[t])},J=({result:t,errorResetBoundary:e,throwOnError:s,query:r})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&N(s,[t.error,r]),X=t=>{t.suspense&&typeof t.staleTime!="number"&&(t.staleTime=1e3)},Y=(t,e)=>t?.suspense&&e.isPending,Z=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function $(t,e,s){const r=B(s),a=j(),o=H(),n=r.defaultQueryOptions(t);n._optimisticResults=a?"isRestoring":"optimistic",X(n),q(n,o),G(o);const[h]=f.useState(()=>new e(r,n)),c=h.getOptimisticResult(n);if(f.useSyncExternalStore(f.useCallback(i=>{const p=a?()=>{}:h.subscribe(D.batchCalls(i));return h.updateResult(),p},[h,a]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),f.useEffect(()=>{h.setOptions(n,{listeners:!1})},[n,h]),Y(n,c))throw Z(n,h,o);if(J({result:c,errorResetBoundary:o,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash)}))throw c.error;return n.notifyOnChangeProps?c:h.trackResult(c)}function it(t,e){return $(t,K,e)}export{K as Q,$ as a,N as s,it as u}; diff --git a/assets/utils-t32ZRaBl.js b/assets/utils-t32ZRaBl.js new file mode 100644 index 00000000000..84fda074b2a --- /dev/null +++ b/assets/utils-t32ZRaBl.js @@ -0,0 +1,7 @@ +import{j as a,r as d,_ as M,c as R,g as H}from"./index-qegmBwH1.js";import{x as F,y as V,m as x,k as h,i as B,z as I,A as O}from"./owner-4YVbz2PN.js";import"./toast-qMk_Ov--.js";import{j as K}from"./store-gmK8mRDy.js";import"./WrappedElementProvider-5243oAX6.js";import{a as u}from"./init-a0893ef4-4662SO8Z.js";import{c as U,d as Q,D as W,e as G}from"./provider-jumr72cx.js";import{A as $,a as X,m as Z}from"./spring--xEiX8r3.js";import{m as A}from"./motion-minimal-gJqnz197.js";import{d as Y}from"./Markdown-hVdCypI9.js";import"./StyledButton-Mj8l6PeD.js";import{r as T,R as C}from"./CurrentPostDataProvider-sxwUfZTo.js";import{c as E}from"./helper-0r91fNX5.js";import"./usePeek-N6a5Jy_H.js";import{d as J}from"./customParseFormat-3OBJgCTU.js";import{u as ee}from"./useQuery-44y7CkOR.js";import{A as P}from"./AutoResizeHeight-pHZ_oyCK.js";function Se(e){return a.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M12 20a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8m0-18a10 10 0 0 1 10 10a10 10 0 0 1-10 10C6.47 22 2 17.5 2 12A10 10 0 0 1 12 2m.5 5v5.25l4.5 2.67l-.75 1.23L11 13V7h1.5Z"})})}const N=u(""),S=u("");u("");u(!0);u(e=>{const r=e(N),t=e(S);return r!==""&&t!==""});u(e=>{const r=e(N),t=e(S);return r!==""&&t!==""});const te=d.createContext(!1),ze=e=>{const[r,t]=d.useState(!1),n=d.useRef(null);return d.useEffect(()=>{if(!n.current)return;const o=n.current;return o.oncopy=l=>{F()||(l.preventDefault(),t(!0))},()=>{o.oncopy=null}},[]),d.useEffect(()=>{if(r){const o=setTimeout(()=>{t(!1)},2e3);return()=>{clearTimeout(o)}}},[r]),a.jsxs(te.Provider,{value:!0,children:[a.jsx("div",{ref:n,children:e.children}),a.jsx(U,{open:!0,children:a.jsx($,{children:r&&a.jsxs(Q,{children:[a.jsx(W,{}),a.jsx(G,{asChild:!0,children:a.jsxs(A.div,{className:"fixed inset-0 z-[11] flex flex-col gap-4 center",exit:{opacity:0},onClick:()=>{t(!1)},children:[a.jsx("div",{className:"pointer-events-none mt-0 text-3xl font-medium text-red-400 dark:text-orange-500",children:"注意:"}),a.jsx("div",{className:"pointer-events-none my-3 text-lg text-neutral-900 text-opacity-80 dark:text-zinc-100",children:a.jsx("p",{children:"本文章为站长原创,保留版权所有,禁止复制。"})})]})})]})})})]})};Y(()=>M(()=>import("./CommentRoot-gt5vN1ZY.js"),__vite__mapDeps([0,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]),import.meta.url).then(e=>e.CommentAreaRoot));Y(()=>M(()=>import("./Comments-P8C4VA5P.js").then(e=>e.q),__vite__mapDeps([14,1,2,15,5,6,7,8,9,10,11,12,13,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]),import.meta.url).then(e=>e.Comments));const qe=Y(()=>M(()=>import("./index-_iJ2szeX.js"),__vite__mapDeps([3,1,2,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]),import.meta.url).then(e=>e.CommentBoxRoot));var re={exports:{}};(function(e,r){(function(t,n){e.exports=n(V)})(R,function(t){function n(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=n(t),l={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(i,s){return s==="W"?i+"周":i+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(i,s){var c=100*i+s;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return o.default.locale(l,null,!0),l})})(re);var z={exports:{}};(function(e,r){(function(t,n){e.exports=n()})(R,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(n,o,l){var i=o.prototype,s=i.format;l.en.formats=t,i.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var f=this.$locale().formats,y=function(g,_){return g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(v,D,p){var L=p&&p.toUpperCase();return D||_[p]||t[p]||_[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,j,q){return j||q.slice(1)})})}(c,f===void 0?{}:f);return s.call(this,y)}}})})(z);var ne=z.exports;const ae=H(ne);x.extend(J);x.extend(ae);x.locale("zh-cn");const oe=(e,r)=>x(e).format(r),w=(e,r=new Date)=>{if(!e)return"";e=new Date(e);const t=60*1e3,n=t*60,o=n*24,l=o*30,i=o*365,s=+r-+e;if(s<t){const c=Math.ceil(s/1e3);return c<=0?"刚刚":`${c} 秒前`}else return s<n?`${Math.round(s/t)} 分钟前`:s<o?`${Math.round(s/n)} 小时前`:s<l?`${Math.round(s/o)} 天前`:s<i?`${Math.round(s/l)} 个月前`:`${Math.round(s/i)} 年前`},b=e=>e,se={root:()=>b({queryKey:["aggregation"],queryFn:async()=>h.aggregate.getAggregateData("shiro").then(e=>e.$serialized),gcTime:1e3*60*10,meta:{forceHydration:!0},staleTime:B?1e3*60*10:void 0})},ie="latest",ce={byNid:(e,r)=>b({queryKey:["note",e],meta:{hydrationRoutePath:T(C.Note,{id:e}),shouldHydration:t=>{const n=t?.data;return!(n?.secret?x(n?.secret).isAfter(new Date):!1)}},queryFn:async({queryKey:t})=>{const[,n]=t;return n===ie?(await h.note.getLatest()).$serialized:{...await h.note.getNoteById(+t[1],r)}}})},le={bySlug:e=>b({queryKey:["page",e],meta:{hydrationRoutePath:T(C.Page,{slug:e})},queryFn:async({queryKey:r})=>{const[,t]=r;return(await h.page.getBySlug(t)).$serialized}})},de={bySlug:(e,r)=>b({queryKey:["post",e,r],meta:{hydrationRoutePath:T(C.Post,{category:e,slug:r})},queryFn:async({queryKey:t})=>{const[,n,o]=t;return(await h.post.getPost(n,o)).$serialized}})},He={aggregation:se,note:ce,post:de,page:le},ue=(e,r)=>{d.useEffect(()=>{I.fetchQuery({queryKey:["ack-read-count",e,r],queryFn:async()=>h.ack.read(e,r)})},[])},Fe=e=>(ue(e.type,e.id),null),Ve=({children:e,className:r,as:t="main"})=>a.jsx(t,{className:E("relative bg-slate-50 dark:bg-zinc-900 md:col-start-1 lg:col-auto","-m-4 p-[2rem_1rem] md:m-0 lg:p-[30px_45px]","rounded-[0_6px_6px_0] border-zinc-200/70 shadow-sm dark:border-neutral-800 dark:shadow-[#333] lg:border","note-layout-main","min-w-0","print:!border-none print:!bg-transparent print:!shadow-none",r),children:e});function me(e,r){const[t,n]=d.useState(e);return d.useEffect(()=>{const o=setTimeout(()=>{n(e)},r);return()=>{clearTimeout(o)}},[e,r]),t}const Be=e=>{const{children:r}=e,t=me(r,300);return a.jsx($,{mode:"popLayout",initial:!1,children:a.jsx(A.span,{initial:{opacity:0,y:-16},animate:{opacity:1,y:0},exit:{opacity:0,y:-16,position:"absolute"},transition:X,children:t},t)})};function fe(e=""){return new URL(e,O()?.url.webUrl)}function pe(e){return m(e.title)&&m(e.slug)&&!m(e.order)}function he(e){return m(e.title)&&m(e.slug)&&m(e.order)}function xe(e){return m(e.title)&&m(e.nid)}function ye(e){return pe(e)?e.category?`/posts/${e.category.slug}/${encodeURIComponent(e.slug)}`:(console.error("PostModel.category is missing!!!!!"),"#"):he(e)?`/${e.slug}`:xe(e)?`/notes/${e.nid}`:"/"}function m(e){return e!=null}fe.build=ye;u({x:0,y:0});u(!1);Y(()=>M(()=>import("./index-RlvYxWmQ.js"),__vite__mapDeps([48,1,2]),import.meta.url).then(e=>e.QRCodeSVG));const ge=u(!1),_e=()=>K.get(ge),Ie=e=>{const{from:r,to:t,initial:n,preset:o}=e,l=d.forwardRef((s,c)=>{const{timeout:f={},duration:y=.5,animation:g={},as:_="div",delay:v=0,lcpOptimization:D=!1,...p}=s,{enter:L=v,exit:k=v}=f,j=A[_];return a.jsx(j,{initial:d.useMemo(()=>D?_e()?n||r:!0:n||r,[]),ref:c,animate:{...t,transition:{duration:y,...o||Z,...g.enter,delay:L/1e3}},exit:{...r,transition:{duration:y,...g.exit,delay:k/1e3}},transition:{duration:y},...p,children:s.children})});l.displayName="forwardRef(TransitionView)";const i=d.memo(l);return i.displayName="MemoedTransitionView",i},Oe=e=>{const[r,t]=d.useState(w(e.date)),{displayAbsoluteTimeAfterDay:n=29}=e;return d.useEffect(()=>{t(w(e.date));let o=setInterval(()=>{t(w(e.date))},1e3);return Math.abs(x(e.date).diff(new Date,"d"))>n&&(o=clearInterval(o),t(oe(e.date,"YY 年 M 月 D 日"))),()=>{o=clearInterval(o)}},[e.date,n]),a.jsx(a.Fragment,{children:r})},Ke=e=>{const{cid:r}=e,{data:t,isLoading:n,error:o}=ee({queryKey:["getSummary",r],queryFn:async({queryKey:i})=>{const[,s]=i,c=await fetch(`/api/xlog/summary?cid=${s}`,{next:{revalidate:60*10}}).then(f=>f.json());if(!c)throw new Error("请求错误");if(!c.data)throw new Error("内容暂时无法获取");return c},enabled:!!r,staleTime:1e3*60*60*24*7,retryDelay:5e3});let l=a.jsxs("div",{className:E("space-y-2 rounded-xl border border-slate-200 p-4 dark:border-neutral-800",e.className),children:[a.jsxs("div",{className:"flex items-center",children:[a.jsx("i",{className:"icon-[mingcute--sparkles-line] mr-2 text-lg"}),"AI 生成的摘要"]}),a.jsxs(P,{duration:.3,children:[a.jsx("div",{className:"!m-0 text-sm leading-loose text-base-content/85",children:n?a.jsxs("div",{className:"space-y-2",children:[a.jsx("span",{className:"block h-5 w-full animate-pulse rounded-xl bg-zinc-200 dark:bg-neutral-800"}),a.jsx("span",{className:"block h-5 w-full animate-pulse rounded-xl bg-zinc-200 dark:bg-neutral-800"}),a.jsx("span",{className:"block h-5 w-full animate-pulse rounded-xl bg-zinc-200 dark:bg-neutral-800"})]}):t?.data}),n&&a.jsxs("p",{className:"border-slate-200 text-right text-sm dark:border-slate-800 ",children:["(此服务由"," ",a.jsx("a",{href:"https://xlog.app",target:"_blank",rel:"noreferrer",children:"xLog"})," ","驱动)"]})]})]});return(!r||o)&&(l=null),a.jsx(P,{duration:.2,className:"mt-4 print:hidden",children:l})},Ue=e=>e?.meta?.xLog?.cid;export{Fe as A,ze as B,qe as C,Se as M,Be as N,Ve as P,Oe as R,Ke as X,Ie as c,Ue as g,oe as p,He as q,fe as u}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["./CommentRoot-gt5vN1ZY.js","./index-qegmBwH1.js","./index-SRCubG37.css","./index-_iJ2szeX.js","./index-wpIVlVRc.js","./owner-4YVbz2PN.js","./toast-qMk_Ov--.js","./init-a0893ef4-4662SO8Z.js","./helper-0r91fNX5.js","./StyledButton-Mj8l6PeD.js","./index-5Y6ZmVAf.js","./motion-minimal-gJqnz197.js","./store-gmK8mRDy.js","./env-y9k74Ds6.js","./Comments-P8C4VA5P.js","./useQuery-44y7CkOR.js","./spring--xEiX8r3.js","./image-sZM8elMx.js","./Markdown-hVdCypI9.js","./script-SYgWefdU.js","./FloatPopover-1BpKQIdq.js","./use-event-callback-nMlqCkS7.js","./use-is-client-IECHC2ux.js","./visual-element-YIiczwVf.js","./Gallery-MHeEsxti.js","./WrappedElementProvider-5243oAX6.js","./use-is-unmounted-6i0OwE-p.js","./lodash-Y39_oLIE.js","./WrappedElementProvider-v7JdpuAw.css","./Gallery-ktaGTCNz.css","./LinkCard-r30gHz-0.js","./usePeek-N6a5Jy_H.js","./provider-jumr72cx.js","./dom-NuJWIaAq.js","./LinkCard-P0Jx4JBj.css","./SocialSourceLink-c8HgVvxv.js","./CodeHighlighter-Sy1nPjje.js","./use-is-dark-13kBJDHw.js","./CodeHighlighter-hcFZa2QO.css","./Collapse-Q-wSwlx_.js","./Markdown-B8lEAZHM.css","./FlexText-sued5-2E.js","./AutoResizeHeight-pHZ_oyCK.js","./PinIconToggle-aUENNNd6.js","./Comments-rnEXEs_g.css","./FormInput-cQs6MTpb.js","./CurrentPostDataProvider-sxwUfZTo.js","./customParseFormat-3OBJgCTU.js","./index-RlvYxWmQ.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/assets/visual-element-YIiczwVf.js b/assets/visual-element-YIiczwVf.js new file mode 100644 index 00000000000..a996e61622d --- /dev/null +++ b/assets/visual-element-YIiczwVf.js @@ -0,0 +1 @@ +import{E as wt,n as F,W as E,X as vt,Y as ee,Z as L,_ as qe,A as be,j,p as fe,$ as Ge,a0 as Ft,h as X,f as te,c as Le,D as Ue,a1 as Pt,i as St,o as Ot,a2 as It,a3 as Rt,a4 as Bt,a5 as Nt,a6 as Kt}from"./motion-minimal-gJqnz197.js";const je={skipAnimations:!1,useManualTiming:!1},zt=(e,t)=>n=>t(e(n)),$e=(...e)=>e.reduce(zt);function Wt(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function qt(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ae(e,t,n){const r=e.getProps();return wt(r,t,n!==void 0?n:r.custom,Wt(e),qt(e))}let _e=F;const N=e=>e*1e3,P=e=>e/1e3,Gt={current:!1},He=e=>Array.isArray(e)&&typeof e[0]=="number";function Ze(e){return!!(!e||typeof e=="string"&&Xe[e]||He(e)||Array.isArray(e)&&e.every(Ze))}const G=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Xe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:G([0,.65,.55,1]),circOut:G([.55,0,1,.45]),backIn:G([.31,.01,.66,-.59]),backOut:G([.33,1.53,.69,.99])};function Je(e){if(e)return He(e)?G(e):Array.isArray(e)?e.map(Je):Xe[e]}function Lt(e,t,n,{delay:r=0,duration:a,repeat:s=0,repeatType:i="loop",ease:c,times:l}={}){const o={[t]:n};l&&(o.offset=l);const u=Je(c);return Array.isArray(u)&&(o.easing=u),e.animate(o,{delay:r,duration:a,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"})}function Ut(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Qe=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,jt=1e-7,$t=12;function _t(e,t,n,r,a){let s,i,c=0;do i=t+(n-t)/2,s=Qe(i,r,a)-e,s>0?n=i:t=i;while(Math.abs(s)>jt&&++c<$t);return i}function $(e,t,n,r){if(e===t&&n===r)return F;const a=s=>_t(s,0,1,e,n);return s=>s===0||s===1?s:Qe(a(s),t,r)}const Ht=$(.42,0,1,1),Zt=$(0,0,.58,1),Ye=$(.42,0,.58,1),Xt=e=>Array.isArray(e)&&typeof e[0]!="number",Ee=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,et=e=>t=>1-e(1-t),Te=e=>1-Math.sin(Math.acos(e)),Jt=et(Te),Qt=Ee(Te),tt=$(.33,1.53,.69,.99),Ve=et(tt),Yt=Ee(Ve),Et=e=>(e*=2)<1?.5*Ve(e):.5*(2-Math.pow(2,-10*(e-1))),en={linear:F,easeIn:Ht,easeInOut:Ye,easeOut:Zt,circIn:Te,circInOut:Qt,circOut:Jt,backIn:Ve,backInOut:Yt,backOut:tt,anticipate:Et},Oe=e=>{if(Array.isArray(e)){_e(e.length===4);const[t,n,r,a]=e;return $(t,n,r,a)}else if(typeof e=="string")return en[e];return e},Me=(e,t)=>n=>!!(E(n)&&vt.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),nt=(e,t,n)=>r=>{if(!E(r))return r;const[a,s,i,c]=r.match(ee);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(i),alpha:c!==void 0?parseFloat(c):1}},tn=e=>j(0,255,e),ie={...be,transform:e=>Math.round(tn(e))},O={test:Me("rgb","red"),parse:nt("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ie.transform(e)+", "+ie.transform(t)+", "+ie.transform(n)+", "+L(qe.transform(r))+")"};function nn(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const de={test:Me("#"),parse:nn,transform:O.transform},B={test:Me("hsl","hue"),parse:nt("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+fe.transform(L(t))+", "+fe.transform(L(n))+", "+L(qe.transform(r))+")"},w={test:e=>O.test(e)||de.test(e)||B.test(e),parse:e=>O.test(e)?O.parse(e):B.test(e)?B.parse(e):de.parse(e),transform:e=>E(e)?e:e.hasOwnProperty("red")?O.transform(e):B.transform(e)},ne=(e,t,n)=>-n*e+n*t+e;function oe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function rn({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,s=0,i=0;if(!t)a=s=i=n;else{const c=n<.5?n*(1+t):n+t-n*t,l=2*n-c;a=oe(l,c,e+1/3),s=oe(l,c,e),i=oe(l,c,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:r}}const ce=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},sn=[de,O,B],an=e=>sn.find(t=>t.test(e));function Ie(e){const t=an(e);let n=t.parse(e);return t===B&&(n=rn(n)),n}const rt=(e,t)=>{const n=Ie(e),r=Ie(t),a={...n};return s=>(a.red=ce(n.red,r.red,s),a.green=ce(n.green,r.green,s),a.blue=ce(n.blue,r.blue,s),a.alpha=ne(n.alpha,r.alpha,s),O.transform(a))};function on(e){var t,n;return isNaN(e)&&E(e)&&(((t=e.match(ee))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ge))===null||n===void 0?void 0:n.length)||0)>0}const st={regex:Ft,countKey:"Vars",token:"${v}",parse:F},at={regex:Ge,countKey:"Colors",token:"${c}",parse:w.parse},it={regex:ee,countKey:"Numbers",token:"${n}",parse:be.parse};function le(e,{regex:t,countKey:n,token:r,parse:a}){const s=e.tokenised.match(t);s&&(e["num"+n]=s.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...s.map(a)))}function J(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&le(n,st),le(n,at),le(n,it),n}function ot(e){return J(e).values}function ct(e){const{values:t,numColors:n,numVars:r,tokenised:a}=J(e),s=t.length;return i=>{let c=a;for(let l=0;l<s;l++)l<r?c=c.replace(st.token,i[l]):l<r+n?c=c.replace(at.token,w.transform(i[l])):c=c.replace(it.token,L(i[l]));return c}}const cn=e=>typeof e=="number"?0:e;function ln(e){const t=ot(e);return ct(e)(t.map(cn))}const K={test:on,parse:ot,createTransformer:ct,getAnimatableNone:ln},lt=(e,t)=>n=>`${n>0?t:e}`;function ut(e,t){return typeof e=="number"?n=>ne(e,t,n):w.test(e)?rt(e,t):e.startsWith("var(")?lt(e,t):dt(e,t)}const ft=(e,t)=>{const n=[...e],r=n.length,a=e.map((s,i)=>ut(s,t[i]));return s=>{for(let i=0;i<r;i++)n[i]=a[i](s);return n}},un=(e,t)=>{const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=ut(e[a],t[a]));return a=>{for(const s in r)n[s]=r[s](a);return n}},dt=(e,t)=>{const n=K.createTransformer(t),r=J(e),a=J(t);return r.numVars===a.numVars&&r.numColors===a.numColors&&r.numNumbers>=a.numNumbers?$e(ft(r.values,a.values),n):lt(e,t)},pt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Re=(e,t)=>n=>ne(e,t,n);function fn(e){return typeof e=="number"?Re:typeof e=="string"?w.test(e)?rt:dt:Array.isArray(e)?ft:typeof e=="object"?un:Re}function dn(e,t,n){const r=[],a=n||fn(e[0]),s=e.length-1;for(let i=0;i<s;i++){let c=a(e[i],e[i+1]);if(t){const l=Array.isArray(t)?t[i]||F:t;c=$e(l,c)}r.push(c)}return r}function ht(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const s=e.length;if(_e(s===t.length),s===1)return()=>t[0];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=dn(t,r,a),c=i.length,l=o=>{let u=0;if(c>1)for(;u<e.length-2&&!(o<e[u+1]);u++);const d=pt(e[u],e[u+1],o);return i[u](d)};return n?o=>l(j(e[0],e[s-1],o)):l}function pn(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=pt(0,t,r);e.push(ne(n,1,a))}}function hn(e){const t=[0];return pn(t,e.length-1),t}function mn(e,t){return e.map(n=>n*t)}function gn(e,t){return e.map(()=>t||Ye).splice(0,e.length-1)}function Q({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=Xt(r)?r.map(Oe):Oe(r),s={done:!1,value:t[0]},i=mn(n&&n.length===t.length?n:hn(t),e),c=ht(i,t,{ease:Array.isArray(a)?a:gn(t,a)});return{calculatedDuration:e,next:l=>(s.value=c(l),s.done=l>=e,s)}}function mt(e,t){return t?e*(1e3/t):0}const yn=5;function gt(e,t,n){const r=Math.max(t-yn,0);return mt(n-e(r),t-r)}const ue=.001,bn=.01,An=10,Tn=.05,Vn=1;function Mn({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let a,s,i=1-t;i=j(Tn,Vn,i),e=j(bn,An,P(e)),i<1?(a=o=>{const u=o*i,d=u*e,g=u-n,f=pe(o,i),h=Math.exp(-d);return ue-g/f*h},s=o=>{const d=o*i*e,g=d*n+n,f=Math.pow(i,2)*Math.pow(o,2)*e,h=Math.exp(-d),m=pe(Math.pow(o,2),i);return(-a(o)+ue>0?-1:1)*((g-f)*h)/m}):(a=o=>{const u=Math.exp(-o*e),d=(o-n)*e+1;return-ue+u*d},s=o=>{const u=Math.exp(-o*e),d=(n-o)*(e*e);return u*d});const c=5/e,l=Cn(a,s,c);if(e=N(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const o=Math.pow(l,2)*r;return{stiffness:o,damping:i*2*Math.sqrt(r*o),duration:e}}}const xn=12;function Cn(e,t,n){let r=n;for(let a=1;a<xn;a++)r=r-e(r)/t(r);return r}function pe(e,t){return e*Math.sqrt(1-t*t)}const Dn=["duration","bounce"],kn=["stiffness","damping","mass"];function Be(e,t){return t.some(n=>e[n]!==void 0)}function wn(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Be(e,kn)&&Be(e,Dn)){const n=Mn(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function yt({keyframes:e,restDelta:t,restSpeed:n,...r}){const a=e[0],s=e[e.length-1],i={done:!1,value:a},{stiffness:c,damping:l,mass:o,duration:u,velocity:d,isResolvedFromDuration:g}=wn({...r,velocity:-P(r.velocity||0)}),f=d||0,h=l/(2*Math.sqrt(c*o)),m=s-a,M=P(Math.sqrt(c/o)),x=Math.abs(m)<5;n||(n=x?.01:2),t||(t=x?.005:.5);let T;if(h<1){const p=pe(M,h);T=b=>{const A=Math.exp(-h*M*b);return s-A*((f+h*M*m)/p*Math.sin(p*b)+m*Math.cos(p*b))}}else if(h===1)T=p=>s-Math.exp(-M*p)*(m+(f+M*m)*p);else{const p=M*Math.sqrt(h*h-1);T=b=>{const A=Math.exp(-h*M*b),k=Math.min(p*b,300);return s-A*((f+h*M*m)*Math.sinh(k)+p*m*Math.cosh(k))/p}}return{calculatedDuration:g&&u||null,next:p=>{const b=T(p);if(g)i.done=p>=u;else{let A=f;p!==0&&(h<1?A=gt(T,p,b):A=0);const k=Math.abs(A)<=n,C=Math.abs(s-b)<=t;i.done=k&&C}return i.value=i.done?s:b,i}}}function Ne({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:i,min:c,max:l,restDelta:o=.5,restSpeed:u}){const d=e[0],g={done:!1,value:d},f=y=>c!==void 0&&y<c||l!==void 0&&y>l,h=y=>c===void 0?l:l===void 0||Math.abs(c-y)<Math.abs(l-y)?c:l;let m=n*t;const M=d+m,x=i===void 0?M:i(M);x!==M&&(m=x-d);const T=y=>-m*Math.exp(-y/r),p=y=>x+T(y),b=y=>{const D=T(y),I=p(y);g.done=Math.abs(D)<=o,g.value=g.done?x:I};let A,k;const C=y=>{f(g.value)&&(A=y,k=yt({keyframes:[g.value,h(g.value)],velocity:gt(p,y,g.value),damping:a,stiffness:s,restDelta:o,restSpeed:u}))};return C(0),{calculatedDuration:null,next:y=>{let D=!1;return!k&&A===void 0&&(D=!0,b(y),C(y)),A!==void 0&&y>A?k.next(y-A):(!D&&b(y),g)}}}let Z;function vn(){Z=void 0}const U={now:()=>(Z===void 0&&U.set(X.isProcessing||je.useManualTiming?X.timestamp:performance.now()),Z),set:e=>{Z=e,queueMicrotask(vn)}},Fn=e=>{const t=({timestamp:n})=>e(n);return{start:()=>te.update(t,!0),stop:()=>Le(t),now:()=>X.isProcessing?X.timestamp:U.now()}},Ke=2e4;function ze(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ke;)t+=n,r=e.next(t);return t>=Ke?1/0:t}const Pn={decay:Ne,inertia:Ne,tween:Q,keyframes:Q,spring:yt};function Y({autoplay:e=!0,delay:t=0,driver:n=Fn,keyframes:r,type:a="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:c="loop",onPlay:l,onStop:o,onComplete:u,onUpdate:d,...g}){let f=1,h=!1,m,M;const x=()=>{M=new Promise(V=>{m=V})};x();let T;const p=Pn[a]||Q;let b;p!==Q&&typeof r[0]!="number"&&(b=ht([0,100],r,{clamp:!1}),r=[0,100]);const A=p({...g,keyframes:r});let k;c==="mirror"&&(k=p({...g,keyframes:[...r].reverse(),velocity:-(g.velocity||0)}));let C="idle",y=null,D=null,I=null;A.calculatedDuration===null&&s&&(A.calculatedDuration=ze(A));const{calculatedDuration:re}=A;let z=1/0,R=1/0;re!==null&&(z=re+i,R=z*(s+1)-i);let v=0;const se=V=>{if(D===null)return;f>0&&(D=Math.min(D,V)),f<0&&(D=Math.min(V-R/f,D)),y!==null?v=y:v=Math.round(V-D)*f;const W=v-t*(f>=0?1:-1),ve=f>=0?W<0:W>R;v=Math.max(W,0),C==="finished"&&y===null&&(v=R);let Fe=v,Pe=A;if(s){const ae=Math.min(v,R)/z;let _=Math.floor(ae),S=ae%1;!S&&ae>=1&&(S=1),S===1&&_--,_=Math.min(_,s+1),!!(_%2)&&(c==="reverse"?(S=1-S,i&&(S-=i/z)):c==="mirror"&&(Pe=k)),Fe=j(0,1,S)*z}const q=ve?{done:!1,value:r[0]}:Pe.next(Fe);b&&(q.value=b(q.value));let{done:Se}=q;!ve&&re!==null&&(Se=f>=0?v>=R:v<=0);const kt=y===null&&(C==="finished"||C==="running"&&Se);return d&&d(q.value),kt&&Dt(),q},Ce=()=>{T&&T.stop(),T=void 0},De=()=>{C="idle",Ce(),m(),x(),D=I=null},Dt=()=>{C="finished",u&&u(),Ce(),m()},ke=()=>{if(h)return;T||(T=n(se));const V=T.now();l&&l(),y!==null?D=V-y:(!D||C==="finished")&&(D=V),C==="finished"&&x(),I=D,y=null,C="running",T.start()};e&&ke();const we={then(V,W){return M.then(V,W)},get time(){return P(v)},set time(V){V=N(V),v=V,y!==null||!T||f===0?y=V:D=T.now()-V/f},get duration(){const V=A.calculatedDuration===null?ze(A):A.calculatedDuration;return P(V)},get speed(){return f},set speed(V){V===f||!T||(f=V,we.time=P(v))},get state(){return C},play:ke,pause:()=>{C="paused",y=v},stop:()=>{h=!0,C!=="idle"&&(C="idle",o&&o(),De())},cancel:()=>{I!==null&&se(I),De()},complete:()=>{C="finished"},sample:V=>(D=0,se(V))};return we}function Sn(e){let t;return()=>(t===void 0&&(t=e()),t)}const On=Sn(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),In=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),H=10,Rn=2e4,Bn=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Ze(t.ease);function Nn(e,t,{onUpdate:n,onComplete:r,...a}){if(!(On()&&In.has(t)&&!a.repeatDelay&&a.repeatType!=="mirror"&&a.damping!==0&&a.type!=="inertia"))return!1;let i=!1,c,l,o=!1;const u=()=>{l=new Promise(p=>{c=p})};u();let{keyframes:d,duration:g=300,ease:f,times:h}=a;if(Bn(t,a)){const p=Y({...a,repeat:0,delay:0});let b={done:!1,value:d[0]};const A=[];let k=0;for(;!b.done&&k<Rn;)b=p.sample(k),A.push(b.value),k+=H;h=void 0,d=A,g=k-H,f="linear"}const m=Lt(e.owner.current,t,d,{...a,duration:g,ease:f,times:h}),M=()=>{o=!1,m.cancel()},x=()=>{o=!0,te.update(M),c(),u()};return m.onfinish=()=>{o||(e.set(Ut(d,a)),r&&r(),x())},{then(p,b){return l.then(p,b)},attachTimeline(p){return m.timeline=p,m.onfinish=null,F},get time(){return P(m.currentTime||0)},set time(p){m.currentTime=N(p)},get speed(){return m.playbackRate},set speed(p){m.playbackRate=p},get duration(){return P(g)},play:()=>{i||(m.play(),Le(M))},pause:()=>m.pause(),stop:()=>{if(i=!0,m.playState==="idle")return;const{currentTime:p}=m;if(p){const b=Y({...a,autoplay:!1});e.setWithVelocity(b.sample(p-H).value,b.sample(p).value,H)}x()},complete:()=>{o||m.finish()},cancel:x}}function Kn({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const a=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:F,pause:F,stop:F,then:s=>(s(),Promise.resolve()),cancel:F,complete:F});return t?Y({keyframes:[0,1],duration:0,delay:t,onComplete:a}):a()}const zn={type:"spring",stiffness:500,damping:25,restSpeed:10},Wn=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),qn={type:"keyframes",duration:.8},Gn={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ln=(e,{keyframes:t})=>t.length>2?qn:Ue.has(e)?e.startsWith("scale")?Wn(t[1]):zn:Gn,he=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(K.test(t)||t==="0")&&!t.startsWith("url(")),Un=new Set(["brightness","contrast","saturate","opacity"]);function jn(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ee)||[];if(!r)return e;const a=n.replace(r,"");let s=Un.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const $n=/([a-z-]*)\(.*?\)/g,me={...K,getAnimatableNone:e=>{const t=e.match($n);return t?t.map(jn).join(" "):e}},_n={...Pt,color:w,backgroundColor:w,outlineColor:w,fill:w,stroke:w,borderColor:w,borderTopColor:w,borderRightColor:w,borderBottomColor:w,borderLeftColor:w,filter:me,WebkitFilter:me},Hn=e=>_n[e];function bt(e,t){let n=Hn(e);return n!==me&&(n=K),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const At=e=>/^0[^.\s]+$/.test(e);function Zn(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||At(e)}function Xn(e,t,n,r){const a=he(t,n);let s;Array.isArray(n)?s=[...n]:s=[null,n];const i=r.from!==void 0?r.from:e.get();let c;const l=[];for(let o=0;o<s.length;o++)s[o]===null&&(s[o]=o===0?i:s[o-1]),Zn(s[o])&&l.push(o),typeof s[o]=="string"&&s[o]!=="none"&&s[o]!=="0"&&(c=s[o]);if(a&&l.length&&c)for(let o=0;o<l.length;o++){const u=l[o];s[u]=bt(t,c)}return s}function Jn({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:s,repeatType:i,repeatDelay:c,from:l,elapsed:o,...u}){return!!Object.keys(u).length}function Tt(e,t){return e[t]||e.default||e}const Qn=(e,t,n,r={})=>a=>{const s=Tt(r,e)||{},i=s.delay||r.delay||0;let{elapsed:c=0}=r;c=c-N(i);const l=Xn(t,e,n,s),o=l[0],u=l[l.length-1],d=he(e,o),g=he(e,u);let f={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...s,delay:-c,onUpdate:h=>{t.set(h),s.onUpdate&&s.onUpdate(h)},onComplete:()=>{a(),s.onComplete&&s.onComplete()}};if(Jn(s)||(f={...f,...Ln(e,f)}),f.duration&&(f.duration=N(f.duration)),f.repeatDelay&&(f.repeatDelay=N(f.repeatDelay)),!d||!g||Gt.current||s.type===!1||je.skipAnimations)return Kn(f);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const h=Nn(t,e,f);if(h)return h}return Y(f)};function Yn(e){return!!(St(e)&&e.add)}const En=e=>/^\-?\d*\.?\d+$/.test(e);function er(e,t){e.indexOf(t)===-1&&e.push(t)}function tr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class nr{constructor(){this.subscriptions=[]}add(t){return er(this.subscriptions,t),()=>tr(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let s=0;s<a;s++){const i=this.subscriptions[s];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const We=30,rr=e=>!isNaN(parseFloat(e));class sr{constructor(t,n={}){this.version="11.0.3",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,a=!0)=>{const s=U.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=rr(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=U.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new nr);const r=this.events[t].add(n);return t==="change"?()=>{r(),te.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=U.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>We)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,We);return mt(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Vt(e,t){return new sr(e,t)}const Mt=e=>t=>t.test(e),ar={test:e=>e==="auto",parse:e=>e},xt=[be,Ot,fe,It,Rt,Bt,ar],gr=e=>xt.find(Mt(e)),ir=[...xt,w,K],or=e=>ir.find(Mt(e));function cr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Vt(n))}function xe(e,t){const n=Ae(e,t);let{transitionEnd:r={},transition:a={},...s}=n?e.makeTargetAnimatable(n,!1):{};s={...s,...r};for(const i in s){const c=Nt(s[i]);cr(e,i,c)}}function ge(e,t){[...t].reverse().forEach(r=>{const a=e.getVariant(r);a&&xe(e,a),e.variantChildren&&e.variantChildren.forEach(s=>{ge(s,t)})})}function yr(e,t){if(Array.isArray(t))return ge(e,t);if(typeof t=="string")return ge(e,[t]);xe(e,t)}function br(e,t,n){var r,a;const s=Object.keys(t).filter(c=>!e.hasValue(c)),i=s.length;if(i)for(let c=0;c<i;c++){const l=s[c],o=t[l];let u=null;Array.isArray(o)&&(u=o[0]),u===null&&(u=(a=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&a!==void 0?a:t[l]),u!=null&&(typeof u=="string"&&(En(u)||At(u))?u=parseFloat(u):!or(u)&&K.test(o)&&(u=bt(l,o)),e.addValue(l,Vt(u,{owner:e})),n[l]===void 0&&(n[l]=u),u!==null&&e.setBaseTarget(l,u))}}function lr(e,t){return t?(t[e]||t.default||t).from:void 0}function Ar(e,t,n){const r={};for(const a in e){const s=lr(a,t);if(s!==void 0)r[a]=s;else{const i=n.getValue(a);i&&(r[a]=i.get())}}return r}function ur({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function fr(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Ct(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:i,...c}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(s=r);const o=[],u=a&&e.animationState&&e.animationState.getState()[a];for(const d in c){const g=e.getValue(d),f=c[d];if(!g||f===void 0||u&&ur(u,d))continue;const h={delay:n,elapsed:0,...Tt(s||{},d)};if(window.HandoffAppearAnimations){const x=e.getProps()[Kt];if(x){const T=window.HandoffAppearAnimations(x,d,g,te);T!==null&&(h.elapsed=T,h.isHandoff=!0)}}let m=!h.isHandoff&&!fr(g,f);if(h.type==="spring"&&(g.getVelocity()||h.velocity)&&(m=!1),g.animation&&(m=!1),m)continue;g.start(Qn(d,g,f,e.shouldReduceMotion&&Ue.has(d)?{type:!1}:h));const M=g.animation;Yn(l)&&(l.add(d),M.then(()=>l.remove(d))),o.push(M)}return i&&Promise.all(o).then(()=>{i&&xe(e,i)}),o}function ye(e,t,n={}){const r=Ae(e,t,n.custom);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const s=r?()=>Promise.all(Ct(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:o=0,staggerChildren:u,staggerDirection:d}=a;return dr(e,t,o+l,u,d,n)}:()=>Promise.resolve(),{when:c}=a;if(c){const[l,o]=c==="beforeChildren"?[s,i]:[i,s];return l().then(()=>o())}else return Promise.all([s(),i(n.delay)])}function dr(e,t,n=0,r=0,a=1,s){const i=[],c=(e.variantChildren.size-1)*r,l=a===1?(o=0)=>o*r:(o=0)=>c-o*r;return Array.from(e.variantChildren).sort(pr).forEach((o,u)=>{o.notify("AnimationStart",t),i.push(ye(o,t,{...s,delay:n+l(u)}).then(()=>o.notify("AnimationComplete",t)))}),Promise.all(i)}function pr(e,t){return e.sortNodePosition(t)}function Tr(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(s=>ye(e,s,n));r=Promise.all(a)}else if(typeof t=="string")r=ye(e,t,n);else{const a=typeof t=="function"?Ae(e,t,n.custom):t;r=Promise.all(Ct(e,a,n))}return r.then(()=>e.notify("AnimationComplete",t))}export{nr as S,Y as a,Tr as b,N as c,P as d,ne as e,pt as f,Qn as g,K as h,Jt as i,er as j,tr as k,Tt as l,Vt as m,En as n,gr as o,$e as p,_e as q,Ae as r,yr as s,U as t,Yn as u,Ar as v,br as w,Hn as x}; diff --git a/assets/xychartDiagram-e50adddc-Pu7PK04q.js b/assets/xychartDiagram-e50adddc-Pu7PK04q.js new file mode 100644 index 00000000000..3c8b18bd5aa --- /dev/null +++ b/assets/xychartDiagram-e50adddc-Pu7PK04q.js @@ -0,0 +1,7 @@ +import{x as zt,a3 as ot,a5 as wt,y as Ft,s as Nt,g as Xt,o as Yt,p as St,a as Ht,b as $t,q as Ut,l as Ct,v as qt,i as jt,d as Gt}from"./index.demo-_07sssxB.js";import{a as Qt}from"./createText-423428c9-gj--wZwo.js";import"./owner-4YVbz2PN.js";import{i as Kt}from"./init-Hi12RPRh.js";import{o as Zt}from"./ordinal-wXG5obU4.js";import{l as dt}from"./linear-aaS3CbNq.js";import{l as ft}from"./line-abqtiQB-.js";import"./index-qegmBwH1.js";import"./index-I7weg1Js.js";import"./use-is-dark-13kBJDHw.js";import"./usePeek-N6a5Jy_H.js";import"./visual-element-YIiczwVf.js";import"./motion-minimal-gJqnz197.js";import"./toast-qMk_Ov--.js";import"./init-a0893ef4-4662SO8Z.js";import"./helper-0r91fNX5.js";import"./StyledButton-Mj8l6PeD.js";import"./index-5Y6ZmVAf.js";import"./provider-jumr72cx.js";import"./store-gmK8mRDy.js";import"./use-is-unmounted-6i0OwE-p.js";import"./spring--xEiX8r3.js";import"./use-event-callback-nMlqCkS7.js";import"./dom-NuJWIaAq.js";import"./image-sZM8elMx.js";import"./WrappedElementProvider-5243oAX6.js";import"./env-y9k74Ds6.js";import"./lodash-Y39_oLIE.js";import"./script-SYgWefdU.js";import"./index-QSj7qAqP.js";import"./CodeEditor-pXHtjbJq.js";import"./CodeHighlighter-Sy1nPjje.js";import"./AutoResizeHeight-pHZ_oyCK.js";import"./FormInput-cQs6MTpb.js";import"./index-D4F-WjWJ.js";import"./BlockLoading-PMBA_Cs1.js";import"./FloatPopover-1BpKQIdq.js";import"./use-is-client-IECHC2ux.js";import"./Mermaid-5Gw5JBOp.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s<n;)o[s]=e+s*i;return o}function st(){var e=Zt().unknown(void 0),t=e.domain,i=e.range,s=0,n=1,o,c,d=!1,p=0,R=0,_=.5;delete e.unknown;function A(){var m=t().length,T=n<s,S=T?n:s,P=T?s:n;o=(P-S)/Math.max(1,m-p+R*2),d&&(o=Math.floor(o)),S+=(P-S-o*(m-p))*_,c=o*(1-p),d&&(S=Math.round(S),c=Math.round(c));var f=Jt(m).map(function(C){return S+o*C});return i(T?f.reverse():f)}return e.domain=function(m){return arguments.length?(t(m),A()):t()},e.range=function(m){return arguments.length?([s,n]=m,s=+s,n=+n,A()):[s,n]},e.rangeRound=function(m){return[s,n]=m,s=+s,n=+n,d=!0,A()},e.bandwidth=function(){return c},e.step=function(){return o},e.round=function(m){return arguments.length?(d=!!m,A()):d},e.padding=function(m){return arguments.length?(p=Math.min(1,R=+m),A()):p},e.paddingInner=function(m){return arguments.length?(p=Math.min(1,m),A()):p},e.paddingOuter=function(m){return arguments.length?(R=+m,A()):R},e.align=function(m){return arguments.length?(_=Math.max(0,Math.min(1,m)),A()):_},e.copy=function(){return st(t(),[s,n]).round(d).paddingInner(p).paddingOuter(R).align(_)},Kt.apply(A(),arguments)}var nt=function(){var e=function(V,r,l,u){for(l=l||{},u=V.length;u--;l[V[u]]=r);return l},t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],o=[1,6],c=[1,7],d=[1,5,10,12,14,16,18,19,21,23,34,35,36],p=[1,25],R=[1,26],_=[1,28],A=[1,29],m=[1,30],T=[1,31],S=[1,32],P=[1,33],f=[1,34],C=[1,35],h=[1,36],L=[1,37],z=[1,43],lt=[1,42],ct=[1,47],$=[1,50],w=[1,10,12,14,16,18,19,21,23,34,35,36],Q=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],v=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],ut=[1,64],K={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(r,l,u,g,b,a,F){var x=a.length-1;switch(b){case 5:g.setOrientation(a[x]);break;case 9:g.setDiagramTitle(a[x].text.trim());break;case 12:g.setLineData({text:"",type:"text"},a[x]);break;case 13:g.setLineData(a[x-1],a[x]);break;case 14:g.setBarData({text:"",type:"text"},a[x]);break;case 15:g.setBarData(a[x-1],a[x]);break;case 16:this.$=a[x].trim(),g.setAccTitle(this.$);break;case 17:case 18:this.$=a[x].trim(),g.setAccDescription(this.$);break;case 19:this.$=a[x-1];break;case 20:this.$=[Number(a[x-2]),...a[x]];break;case 21:this.$=[Number(a[x])];break;case 22:g.setXAxisTitle(a[x]);break;case 23:g.setXAxisTitle(a[x-1]);break;case 24:g.setXAxisTitle({type:"text",text:""});break;case 25:g.setXAxisBand(a[x]);break;case 26:g.setXAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 27:this.$=a[x-1];break;case 28:this.$=[a[x-2],...a[x]];break;case 29:this.$=[a[x]];break;case 30:g.setYAxisTitle(a[x]);break;case 31:g.setYAxisTitle(a[x-1]);break;case 32:g.setYAxisTitle({type:"text",text:""});break;case 33:g.setYAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 37:this.$={text:a[x],type:"text"};break;case 38:this.$={text:a[x],type:"text"};break;case 39:this.$={text:a[x],type:"markdown"};break;case 40:this.$=a[x];break;case 41:this.$=a[x-1]+""+a[x];break}},table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:o,36:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:o,36:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:o,36:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(d,[2,34]),e(d,[2,35]),e(d,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:o,36:c}),{1:[2,3]},e(d,[2,5]),e(t,[2,7],{4:22,34:n,35:o,36:c}),{11:23,37:24,38:p,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:39,13:38,24:z,27:lt,29:40,30:41,37:24,38:p,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:45,15:44,27:ct,33:46,37:24,38:p,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:49,17:48,24:$,37:24,38:p,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:52,17:51,24:$,37:24,38:p,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{20:[1,53]},{22:[1,54]},e(w,[2,18]),{1:[2,2]},e(w,[2,8]),e(w,[2,9]),e(Q,[2,37],{40:55,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L}),e(Q,[2,38]),e(Q,[2,39]),e(v,[2,40]),e(v,[2,42]),e(v,[2,43]),e(v,[2,44]),e(v,[2,45]),e(v,[2,46]),e(v,[2,47]),e(v,[2,48]),e(v,[2,49]),e(v,[2,50]),e(v,[2,51]),e(w,[2,10]),e(w,[2,22],{30:41,29:56,24:z,27:lt}),e(w,[2,24]),e(w,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:p,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},e(w,[2,11]),e(w,[2,30],{33:60,27:ct}),e(w,[2,32]),{31:[1,61]},e(w,[2,12]),{17:62,24:$},{25:63,27:ut},e(w,[2,14]),{17:65,24:$},e(w,[2,16]),e(w,[2,17]),e(v,[2,41]),e(w,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(w,[2,31]),{27:[1,69]},e(w,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(w,[2,15]),e(w,[2,26]),e(w,[2,27]),{11:59,32:72,37:24,38:p,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},e(w,[2,33]),e(w,[2,19]),{25:73,27:ut},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(r,l){if(l.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=l,u}},parse:function(r){var l=this,u=[0],g=[],b=[null],a=[],F=this.table,x="",U=0,gt=0,Vt=2,xt=1,Bt=a.slice.call(arguments,1),k=Object.create(this.lexer),B={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(B.yy[J]=this.yy[J]);k.setInput(r,B.yy),B.yy.lexer=k,B.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Wt=k.options&&k.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,W,E,it,O={},q,M,pt,j;;){if(W=u[u.length-1],this.defaultActions[W]?E=this.defaultActions[W]:((D===null||typeof D>"u")&&(D=Ot()),E=F[W]&&F[W][D]),typeof E>"u"||!E.length||!E[0]){var et="";j=[];for(q in F[W])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`: +`+k.showPosition()+` +Expecting `+j.join(", ")+", got '"+(this.terminals_[D]||D)+"'":et="Parse error on line "+(U+1)+": Unexpected "+(D==xt?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(et,{text:k.match,token:this.terminals_[D]||D,line:k.yylineno,loc:tt,expected:j})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+D);switch(E[0]){case 1:u.push(D),b.push(k.yytext),a.push(k.yylloc),u.push(E[1]),D=null,gt=k.yyleng,x=k.yytext,U=k.yylineno,tt=k.yylloc;break;case 2:if(M=this.productions_[E[1]][1],O.$=b[b.length-M],O._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},Wt&&(O._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),it=this.performAction.apply(O,[x,gt,U,B.yy,E[1],b,a].concat(Bt)),typeof it<"u")return it;M&&(u=u.slice(0,-1*M*2),b=b.slice(0,-1*M),a=a.slice(0,-1*M)),u.push(this.productions_[E[1]][0]),b.push(O.$),a.push(O._$),pt=F[u[u.length-2]][u[u.length-1]],u.push(pt);break;case 3:return!0}}return!0}},It=function(){var V={EOF:1,parseError:function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},setInput:function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var l=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===g.length?this.yylloc.first_column:0)+g[g.length-u.length].length-u[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+` +`+l+"^"},test_match:function(r,l){var u,g,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),g=r[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],u=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var a in b)this[a]=b[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,l,u,g;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),a=0;a<b.length;a++)if(u=this._input.match(this.rules[b[a]]),u&&(!l||u[0].length>l[0].length)){if(l=u,g=a,this.options.backtrack_lexer){if(r=this.test_match(u,b[a]),r!==!1)return r;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(r=this.test_match(l,b[g]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var l=this.next();return l||this.lex()},begin:function(l){this.conditionStack.push(l)},popState:function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},pushState:function(l){this.begin(l)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(l,u,g,b){switch(g){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";case 17:return this.pushState("axis_data"),"Y_AXIS";case 18:return this.pushState("axis_band_data"),24;case 19:return 31;case 20:return this.pushState("data"),16;case 21:return this.pushState("data"),18;case 22:return this.pushState("data_inner"),24;case 23:return 27;case 24:return this.popState(),26;case 25:this.popState();break;case 26:this.pushState("string");break;case 27:this.popState();break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 43:break;case 44:return 35;case 45:return 36}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}};return V}();K.lexer=It;function Z(){this.yy={}}return Z.prototype=K,K.Parser=Z,new Z}();nt.parser=nt;const ti=nt;function mt(e){return e.type==="bar"}function _t(e){return e.type==="band"}function N(e){return e.type==="linear"}class kt{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((o,c)=>Math.max(c.length,o),0)*i,height:i};const s={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const o of t){const c=Qt(n,1,o),d=c?c.width:o.length*i,p=c?c.height:i;s.width=Math.max(s.width,d),s.height=Math.max(s.height,p)}return n.remove(),s}}const yt=.7,bt=.2;class Rt{constructor(t,i,s,n){this.axisConfig=t,this.title=i,this.textDimensionCalculator=s,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){yt*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(yt*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=bt*t.width;this.outerPadding=Math.min(s.width/2,n);const o=s.height+this.axisConfig.labelPadding*2;this.labelTextHeight=s.height,o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=bt*t.height;this.outerPadding=Math.min(s.height/2,n);const o=s.width+this.axisConfig.labelPadding*2;o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${i},${this.getScaleValue(s)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(s)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}}class ii extends Rt{constructor(t,i,s,n,o){super(t,n,o,i),this.categories=s,this.scale=st().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=st().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),Ct.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)||this.getRange()[0]}}class ei extends Rt{constructor(t,i,s,n,o){super(t,n,o,i),this.domain=s,this.scale=dt().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=dt().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}}function At(e,t,i,s){const n=new kt(s);return _t(e)?new ii(t,i,e.categories,e.title,n):new ei(t,i,[e.min,e.max],e.title,n)}class si{constructor(t,i,s,n){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(i.width,t.width),n=i.height+2*this.chartConfig.titlePadding;return i.width<=s&&i.height<=n&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=n,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}}function ni(e,t,i,s){const n=new kt(s);return new si(n,e,t,i)}class ai{constructor(t,i,s,n,o){this.plotData=t,this.xAxis=i,this.yAxis=s,this.orientation=n,this.plotIndex=o}getDrawableElement(){const t=this.plotData.data.map(s=>[this.xAxis.getScaleValue(s[0]),this.yAxis.getScaleValue(s[1])]);let i;return this.orientation==="horizontal"?i=ft().y(s=>s[0]).x(s=>s[1])(t):i=ft().x(s=>s[0]).y(s=>s[1])(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}}class oi{constructor(t,i,s,n,o,c){this.barData=t,this.boundingRect=i,this.xAxis=s,this.yAxis=n,this.orientation=o,this.plotIndex=c}getDrawableElement(){const t=this.barData.data.map(o=>[this.xAxis.getScaleValue(o[0]),this.yAxis.getScaleValue(o[1])]),s=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),n=s/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:this.boundingRect.x,y:o[0]-n,height:s,width:o[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:o[0]-n,y:o[1],width:s,height:this.boundingRect.y+this.boundingRect.height-o[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}}class ri{constructor(t,i,s){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[i,s]of this.chartData.plots.entries())switch(s.type){case"line":{const n=new ai(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break;case"bar":{const n=new oi(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break}return t}}function hi(e,t,i){return new ri(e,t,i)}class li{constructor(t,i,s,n){this.chartConfig=t,this.chartData=i,this.componentStore={title:ni(t,i,s,n),plot:hi(t,i,s),xAxis:At(i.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},n),yAxis:At(i.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},n)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),c=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),d=this.componentStore.plot.calculateSpace({width:o,height:c});t-=d.width,i-=d.height,d=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),n=d.height,i-=d.height,this.componentStore.xAxis.setAxisPosition("bottom"),d=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=d.height,this.componentStore.yAxis.setAxisPosition("left"),d=this.componentStore.yAxis.calculateSpace({width:t,height:i}),s=d.width,t-=d.width,t>0&&(o+=t,t=0),i>0&&(c+=i,i=0),this.componentStore.plot.calculateSpace({width:o,height:c}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.xAxis.setRange([s,s+o]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:n+c}),this.componentStore.yAxis.setRange([n,n+c]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(p=>mt(p))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizonatalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=0,c=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),d=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),p=this.componentStore.plot.calculateSpace({width:c,height:d});t-=p.width,i-=p.height,p=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=p.height,i-=p.height,this.componentStore.xAxis.setAxisPosition("left"),p=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=p.width,n=p.width,this.componentStore.yAxis.setAxisPosition("top"),p=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=p.height,o=s+p.height,t>0&&(c+=t,t=0),i>0&&(d+=i,i=0),this.componentStore.plot.calculateSpace({width:c,height:d}),this.componentStore.plot.setBoundingBoxXY({x:n,y:o}),this.componentStore.yAxis.setRange([n,n+c]),this.componentStore.yAxis.setBoundingBoxXY({x:n,y:s}),this.componentStore.xAxis.setRange([o,o+d]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some(R=>mt(R))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizonatalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}}class ci{static build(t,i,s,n){return new li(t,i,s,n).getDrawableElement()}}let X=0,Tt,Y=Pt(),H=Dt(),y=Lt(),at=H.plotColorPalette.split(",").map(e=>e.trim()),G=!1,rt=!1;function Dt(){const e=zt(),t=ot();return wt(e.xyChart,t.themeVariables.xyChart)}function Pt(){const e=ot();return wt(Ft.xyChart,e.xyChart)}function Lt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function ht(e){const t=ot();return Gt(e.trim(),t)}function ui(e){Tt=e}function gi(e){e==="horizontal"?Y.chartOrientation="horizontal":Y.chartOrientation="vertical"}function xi(e){y.xAxis.title=ht(e.text)}function vt(e,t){y.xAxis={type:"linear",title:y.xAxis.title,min:e,max:t},G=!0}function pi(e){y.xAxis={type:"band",title:y.xAxis.title,categories:e.map(t=>ht(t.text))},G=!0}function di(e){y.yAxis.title=ht(e.text)}function fi(e,t){y.yAxis={type:"linear",title:y.yAxis.title,min:e,max:t},rt=!0}function mi(e){const t=Math.min(...e),i=Math.max(...e),s=N(y.yAxis)?y.yAxis.min:1/0,n=N(y.yAxis)?y.yAxis.max:-1/0;y.yAxis={type:"linear",title:y.yAxis.title,min:Math.min(s,t),max:Math.max(n,i)}}function Et(e){let t=[];if(e.length===0)return t;if(!G){const i=N(y.xAxis)?y.xAxis.min:1/0,s=N(y.xAxis)?y.xAxis.max:-1/0;vt(Math.min(i,1),Math.max(s,e.length))}if(rt||mi(e),_t(y.xAxis)&&(t=y.xAxis.categories.map((i,s)=>[i,e[s]])),N(y.xAxis)){const i=y.xAxis.min,s=y.xAxis.max,n=(s-i+1)/e.length,o=[];for(let c=i;c<=s;c+=n)o.push(`${c}`);t=o.map((c,d)=>[c,e[d]])}return t}function Mt(e){return at[e===0?0:e%at.length]}function yi(e,t){const i=Et(t);y.plots.push({type:"line",strokeFill:Mt(X),strokeWidth:2,data:i}),X++}function bi(e,t){const i=Et(t);y.plots.push({type:"bar",fill:Mt(X),data:i}),X++}function Ai(){if(y.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return y.title=St(),ci.build(Y,y,H,Tt)}function wi(){return H}function Si(){return Y}const Ci=function(){Ut(),X=0,Y=Pt(),y=Lt(),H=Dt(),at=H.plotColorPalette.split(",").map(e=>e.trim()),G=!1,rt=!1},_i={getDrawableElem:Ai,clear:Ci,setAccTitle:Nt,getAccTitle:Xt,setDiagramTitle:Yt,getDiagramTitle:St,getAccDescription:Ht,setAccDescription:$t,setOrientation:gi,setXAxisTitle:xi,setXAxisRangeData:vt,setXAxisBand:pi,setYAxisTitle:di,setYAxisRangeData:fi,setLineData:yi,setBarData:bi,setTmpSVGG:ui,getChartThemeConfig:wi,getChartConfig:Si},ki=(e,t,i,s)=>{const n=s.db,o=n.getChartThemeConfig(),c=n.getChartConfig();function d(f){return f==="top"?"text-before-edge":"middle"}function p(f){return f==="left"?"start":f==="right"?"end":"middle"}function R(f){return`translate(${f.x}, ${f.y}) rotate(${f.rotation||0})`}Ct.debug(`Rendering xychart chart +`+e);const _=qt(t),A=_.append("g").attr("class","main"),m=A.append("rect").attr("width",c.width).attr("height",c.height).attr("class","background");jt(_,c.height,c.width,!0),_.attr("viewBox",`0 0 ${c.width} ${c.height}`),m.attr("fill",o.backgroundColor),n.setTmpSVGG(_.append("g").attr("class","mermaid-tmp-group"));const T=n.getDrawableElem(),S={};function P(f){let C=A,h="";for(const[L]of f.entries()){let z=A;L>0&&S[h]&&(z=S[h]),h+=f[L],C=S[h],C||(C=S[h]=z.append("g").attr("class",f[L]))}return C}for(const f of T){if(f.data.length===0)continue;const C=P(f.groupTexts);switch(f.type){case"rect":C.selectAll("rect").data(f.data).enter().append("rect").attr("x",h=>h.x).attr("y",h=>h.y).attr("width",h=>h.width).attr("height",h=>h.height).attr("fill",h=>h.fill).attr("stroke",h=>h.strokeFill).attr("stroke-width",h=>h.strokeWidth);break;case"text":C.selectAll("text").data(f.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",h=>h.fill).attr("font-size",h=>h.fontSize).attr("dominant-baseline",h=>d(h.verticalPos)).attr("text-anchor",h=>p(h.horizontalPos)).attr("transform",h=>R(h)).text(h=>h.text);break;case"path":C.selectAll("path").data(f.data).enter().append("path").attr("d",h=>h.path).attr("fill",h=>h.fill?h.fill:"none").attr("stroke",h=>h.strokeFill).attr("stroke-width",h=>h.strokeWidth);break}}},Ri={draw:ki},pe={parser:ti,db:_i,renderer:Ri};export{pe as diagram}; diff --git a/index.html b/index.html new file mode 100644 index 00000000000..7f899edbdfc --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <title>React Components + + + + +
    + + diff --git a/scripts/vercel-build-pre.sh b/scripts/vercel-build-pre.sh new file mode 100644 index 00000000000..e69de29bb2d