From 23a7c1fbb46daacea9eed5aa9eea64c775fd8a68 Mon Sep 17 00:00:00 2001 From: ai-business-hql Date: Wed, 26 Feb 2025 11:11:13 +0800 Subject: [PATCH] feat: fix conflict --- dist/copilot_web/App-20LV5x8c.js | 6 + dist/copilot_web/WorkflowOption-D3X28qdQ.js | 1 + dist/copilot_web/assets/input-Bc399EcZ.css | 1 + dist/copilot_web/assets/logo-BTZhX0BN.png | Bin 0 -> 46281 bytes dist/copilot_web/input.js | 2 + .../message-components-Nlko-0DO.js | 128 ++++++++ dist/copilot_web/vendor-markdown-Dek94WS0.js | 302 ++++++++++++++++++ dist/copilot_web/vendor-react-V04_Axys.js | 32 ++ dist/copilot_web/vendor-ui-Dzvx2fKw.js | 1 + dist/copilot_web/workflowChat-Uj9PkyjV.js | 117 +++++++ 10 files changed, 590 insertions(+) create mode 100644 dist/copilot_web/App-20LV5x8c.js create mode 100644 dist/copilot_web/WorkflowOption-D3X28qdQ.js create mode 100644 dist/copilot_web/assets/input-Bc399EcZ.css create mode 100644 dist/copilot_web/assets/logo-BTZhX0BN.png create mode 100644 dist/copilot_web/input.js create mode 100644 dist/copilot_web/message-components-Nlko-0DO.js create mode 100644 dist/copilot_web/vendor-markdown-Dek94WS0.js create mode 100644 dist/copilot_web/vendor-react-V04_Axys.js create mode 100644 dist/copilot_web/vendor-ui-Dzvx2fKw.js create mode 100644 dist/copilot_web/workflowChat-Uj9PkyjV.js diff --git a/dist/copilot_web/App-20LV5x8c.js b/dist/copilot_web/App-20LV5x8c.js new file mode 100644 index 0000000..cb9d890 --- /dev/null +++ b/dist/copilot_web/App-20LV5x8c.js @@ -0,0 +1,6 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["copilot_web/workflowChat-Uj9PkyjV.js","copilot_web/vendor-markdown-Dek94WS0.js","copilot_web/vendor-react-V04_Axys.js","copilot_web/message-components-Nlko-0DO.js","copilot_web/input.js","copilot_web/assets/input-Bc399EcZ.css"].map(path => { + const apiBase = window.comfyAPI?.api?.api?.api_base; + const prefix = apiBase ? `${apiBase.substring(1)}/` : ''; + return `${prefix}${path}`; + }))))=>i.map(i=>d[i]); +import{_ as E}from"./input.js";import{j as s}from"./vendor-markdown-Dek94WS0.js";import{r as t,R as w}from"./vendor-react-V04_Axys.js";import{C as v}from"./message-components-Nlko-0DO.js";const y=9999999,x={EXPLAIN_NODE:"copilot:explain-node"},D="/copilot_web/assets/logo-BTZhX0BN.png";function _(n={}){const[u,l]=t.useState({x:n.initialX??window.innerWidth-160,y:n.initialY??20}),[o,r]=t.useState(!1),[a,m]=t.useState({x:0,y:0}),[d,c]=t.useState(0),[g,b]=t.useState({x:0,y:0}),f=t.useCallback(e=>{if(o){const i=Math.min(Math.max(0,e.clientX-g.x),window.innerWidth-(n.boundaryPadding?.right??100)),h=Math.min(Math.max(0,e.clientY-g.y),window.innerHeight-(n.boundaryPadding?.bottom??40));l({x:i,y:h})}},[o,g,n.boundaryPadding]),p=t.useCallback(e=>{if(o){const i=Math.sqrt(Math.pow(e.clientX-a.x,2)+Math.pow(e.clientY-a.y,2)),h=Date.now()-d;i<5&&h<200&&n.onClick?.()}r(!1)},[o,a,d,n.onClick]);return t.useEffect(()=>(o&&(document.addEventListener("mousemove",f),document.addEventListener("mouseup",p)),()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)}),[o,f,p]),{position:u,isDragging:o,handleMouseDown:e=>{e.preventDefault(),r(!0),c(Date.now()),m({x:e.clientX,y:e.clientY});const i=e.currentTarget.getBoundingClientRect();b({x:e.clientX-i.left,y:e.clientY-i.top})}}}const C=w.lazy(()=>E(()=>import("./workflowChat-Uj9PkyjV.js"),__vite__mapDeps([0,1,2,3,4,5])).then(n=>({default:n.default})));function M(){const n=t.useRef(null),[u,l]=t.useState(!1),[o,r]=t.useState(!1),{position:a,isDragging:m,handleMouseDown:d}=_({boundaryPadding:{right:100,bottom:40},onClick:()=>l(!0)});return t.useEffect(()=>{const c=()=>{l(!0),r(!0)};return window.addEventListener(x.EXPLAIN_NODE,c),()=>window.removeEventListener(x.EXPLAIN_NODE,c)},[]),a?s.jsx(v,{children:s.jsx("div",{ref:n,children:s.jsxs("div",{className:"fixed",style:{zIndex:y,left:a.x,top:a.y,cursor:m?"grabbing":"grab"},children:[s.jsxs("button",{onMouseDown:d,className:"px-2 py-1 border border-gray-300 rounded-md bg-white text-black hover:bg-blue-300 hover:font-bold transition-colors select-none w-40 flex items-center space-x-1",style:{marginLeft:"-40px"},children:[s.jsx("img",{src:D,alt:"ComfyUI-Copilot Logo",className:"h-8 w-8"}),s.jsx("span",{className:"text-[14px] font-medium text-gray-800",children:"ComfyUI-Copilot"})]}),s.jsx(w.Suspense,{fallback:s.jsx("div",{children:"Loading..."}),children:s.jsx(C,{onClose:()=>{l(!1),r(!1)},visible:u,triggerUsage:o,onUsageTriggered:()=>r(!1)})})]})})}):null}const I=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"}));export{I as A,D as l}; diff --git a/dist/copilot_web/WorkflowOption-D3X28qdQ.js b/dist/copilot_web/WorkflowOption-D3X28qdQ.js new file mode 100644 index 0000000..1c54cfa --- /dev/null +++ b/dist/copilot_web/WorkflowOption-D3X28qdQ.js @@ -0,0 +1 @@ +import{j as e}from"./vendor-markdown-Dek94WS0.js";import{W as f,g as h,a as l}from"./message-components-Nlko-0DO.js";import"./vendor-react-V04_Axys.js";function A({content:g,name:k="Assistant",avatar:b,latestInput:x,installedNodes:w,onAddMessage:d}){const c=JSON.parse(g).ext?.find(o=>o.type==="workflow")?.data||[],u=async o=>{if(!o.id){console.error("No workflow id provided");return}try{const t=await f.getOptimizedWorkflow(o.id,x);if(t.workflow){const n=new Set;for(const s of t.workflow.nodes)n.add(s.type);const r=Array.from(n).filter(s=>!w.includes(s));if(console.log("[WorkflowOption] Missing node types:",r),r.length>0)try{console.log("[WorkflowOption] Fetching info for missing nodes");const s=await f.batchGetNodeInfo(r);console.log("[WorkflowOption] Received node infos:",s);const m={text:"",ext:[{type:"node_install_guide",data:s.map(a=>({name:a.name,repository_url:a.github_url}))}]},i={id:h(),role:"ai",content:JSON.stringify(m),format:"markdown",name:"Assistant",metadata:{pendingWorkflow:t.workflow,optimizedParams:t.optimized_params}};d?.(i);return}catch(s){console.error("[WorkflowOption] Error fetching node info:",s),alert("Error checking required nodes. Please try again.");return}v(t.workflow,t.optimized_params)}}catch(t){console.error("Failed to optimize workflow:",t)}},v=(o,t)=>{l.loadGraphData(o);for(const[r,s,m,i,a]of t){const y=l.graph._nodes_by_id[r].widgets;for(const p of y)p.name===i&&(p.value=a)}l.graph.setDirtyCanvas(!1,!0);const n={id:h(),role:"tool",content:JSON.stringify({text:"The workflow has been successfully loaded to the canvas",ext:[]}),format:"markdown",name:"Assistant"};d?.(n)};return e.jsx("div",{className:"space-y-3",children:c.length>0&&e.jsx("div",{className:"flex flex-col space-y-4",children:c.map((o,t)=>e.jsxs("div",{className:"flex items-center gap-4 p-4 rounded-lg border border-gray-200 hover:bg-gray-50",children:[o.image&&e.jsx("img",{src:o.image,alt:o.name,className:"w-14 h-14 object-cover rounded-lg",onError:n=>{const r=n.target;r.onerror=null,r.src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56' fill='none'%3E%3Crect width='56' height='56' fill='%23F3F4F6'/%3E%3Cpath d='M28 28C30.2091 28 32 26.2091 32 24C32 21.7909 30.2091 20 28 20C25.7909 20 24 21.7909 24 24C24 26.2091 25.7909 28 28 28Z' fill='%239CA3AF'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18.7253 37.6307C19.8278 35.1533 22.6897 33.6 26 33.6H30C33.3103 33.6 36.1722 35.1533 37.2747 37.6307C37.6419 38.4561 37.0611 39.2 36.1694 39.2H19.8306C18.9389 39.2 18.3581 38.4561 18.7253 37.6307Z' fill='%239CA3AF'/%3E%3C/svg%3E"}}),e.jsxs("div",{className:"flex-1 break-words flex flex-col h-[4.5rem] justify-between",children:[e.jsx("div",{children:e.jsx("h3",{className:"font-medium text-sm line-clamp-2 h-10 overflow-hidden",children:o.name})}),e.jsxs("div",{className:"flex justify-between items-center mt-1",children:[o.description&&e.jsxs("div",{className:"relative group",children:[e.jsx("div",{className:"w-5 h-5 flex items-center justify-center text-gray-500 cursor-help",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"})})}),e.jsx("div",{className:"absolute bottom-full left-0 mb-2 hidden group-hover:block",children:e.jsx("div",{className:"bg-gray-900 text-white text-xs rounded-md py-2 px-3 min-w-[400px] whitespace-normal break-words",children:o.description})})]}),e.jsx("button",{onClick:()=>u(o),className:"px-3 py-1.5 bg-blue-500 text-white rounded-md hover:bg-blue-600 transition-colors text-xs",children:"Accept"})]})]})]},t))})})}export{A as WorkflowOption}; diff --git a/dist/copilot_web/assets/input-Bc399EcZ.css b/dist/copilot_web/assets/input-Bc399EcZ.css new file mode 100644 index 0000000..4d330eb --- /dev/null +++ b/dist/copilot_web/assets/input-Bc399EcZ.css @@ -0,0 +1 @@ +#comfyui-copilot-plugin{*,: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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@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}}.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-inline-start: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-inline-start: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-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start: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(video):not(:where([class~=not-prose],[class~=not-prose] *)){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-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.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-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start: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;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-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.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(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.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(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-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.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>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p: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-inline-start: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-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end: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}.prose-neutral{--tw-prose-body: #404040;--tw-prose-headings: #171717;--tw-prose-lead: #525252;--tw-prose-links: #171717;--tw-prose-bold: #171717;--tw-prose-counters: #737373;--tw-prose-bullets: #d4d4d4;--tw-prose-hr: #e5e5e5;--tw-prose-quotes: #171717;--tw-prose-quote-borders: #e5e5e5;--tw-prose-captions: #737373;--tw-prose-kbd: #171717;--tw-prose-kbd-shadows: 23 23 23;--tw-prose-code: #171717;--tw-prose-pre-code: #e5e5e5;--tw-prose-pre-bg: #262626;--tw-prose-th-borders: #d4d4d4;--tw-prose-td-borders: #e5e5e5;--tw-prose-invert-body: #d4d4d4;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #a3a3a3;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #a3a3a3;--tw-prose-invert-bullets: #525252;--tw-prose-invert-hr: #404040;--tw-prose-invert-quotes: #f5f5f5;--tw-prose-invert-quote-borders: #404040;--tw-prose-invert-captions: #a3a3a3;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d4d4d4;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #525252;--tw-prose-invert-td-borders: #404040}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.-bottom-1{bottom:-.25rem}.-right-1{right:-.25rem}.-right-2{right:-.5rem}.-top-1{top:-.25rem}.-top-10{top:-2.5rem}.-top-2{top:-.5rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-2{bottom:.5rem}.bottom-3{bottom:.75rem}.bottom-full{bottom:100%}.left-0{left:0}.left-1\/2{left:50%}.left-3{left:.75rem}.right-0{right:0}.right-1\.5{right:.375rem}.right-12{right:3rem}.right-2{right:.5rem}.right-3{right:.75rem}.top-0{top:0}.top-2{top:.5rem}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[9999\]{z-index:9999}.\!my-0\.5{margin-top:.125rem!important;margin-bottom:.125rem!important}.\!my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.mx-auto{margin-left:auto;margin-right:auto}.-ml-2{margin-left:-.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-3{margin-left:.75rem}.mt-1{margin-top:.25rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-\[4\.5rem\]{height:4.5rem}.h-auto{height:auto}.h-full{height:100%}.max-h-\[400px\]{max-height:400px}.min-h-\[80px\]{min-height:80px}.w-1{width:.25rem}.w-1\/2{width:50%}.w-12{width:3rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-64{width:16rem}.w-8{width:2rem}.w-96{width:24rem}.w-\[100\%\]{width:100%}.w-\[480px\]{width:480px}.w-\[500px\]{width:500px}.w-\[calc\(50\%-0\.25rem\)\]{width:calc(50% - .25rem)}.w-full{width:100%}.min-w-\[400px\]{min-width:400px}.flex-1{flex:1 1 0%}.-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-full{--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))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-ew-resize{cursor:ew-resize}.cursor-help{cursor:help}.cursor-ns-resize{cursor:ns-resize}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.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-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))}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.scroll-smooth{scroll-behavior:smooth}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-\[\#979797\]{--tw-border-opacity: 1;border-color:rgb(151 151 151 / var(--tw-border-opacity, 1))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-gray-900{--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-t-blue-500{--tw-border-opacity: 1;border-top-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-t-gray-800{--tw-border-opacity: 1;border-top-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.bg-\[\#E5E7ED\]{--tw-bg-opacity: 1;background-color:rgb(229 231 237 / var(--tw-bg-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-black\/40{background-color:#0006}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-opacity-50{--tw-bg-opacity: .5}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.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}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-10{padding-bottom:2.5rem}.pr-12{padding-right:3rem}.pr-4{padding-right:1rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[14px\]{font-size:14px}.text-\[16px\]{font-size:16px}.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-medium{font-weight:500}.font-semibold{font-weight:600}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-purple-700{--tw-text-opacity: 1;color:rgb(126 34 206 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.opacity-0{opacity:0}.opacity-40{opacity:.4}.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-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-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)}.outline-none{outline:2px solid transparent;outline-offset:2px}.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-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-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}.duration-200{transition-duration:.2s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}}#comfyui-copilot-plugin h1,#comfyui-copilot-plugin h2,#comfyui-copilot-plugin h3,#comfyui-copilot-plugin h4,#comfyui-copilot-plugin h5,#comfyui-copilot-plugin h6,#comfyui-copilot-plugin p,#comfyui-copilot-plugin ul,#comfyui-copilot-plugin ol,#comfyui-copilot-plugin button,#comfyui-copilot-plugin input,#comfyui-copilot-plugin textarea,#comfyui-copilot-plugin select{margin:0;padding:0;font-size:100%;font-weight:400}#comfyui-copilot-plugin *{box-sizing:border-box;border-width:0;border-style:solid}#comfyui-copilot-plugin img,#comfyui-copilot-plugin svg,#comfyui-copilot-plugin video,#comfyui-copilot-plugin canvas,#comfyui-copilot-plugin audio,#comfyui-copilot-plugin iframe,#comfyui-copilot-plugin embed,#comfyui-copilot-plugin object{display:block;vertical-align:middle}#comfyui-copilot-plugin button{background-color:transparent;background-image:none}.hover\:border-blue-500:hover{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.hover\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-300:hover{--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\:bg-green-200:hover{--tw-bg-opacity: 1;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1))}.hover\:bg-purple-200:hover{--tw-bg-opacity: 1;background-color:rgb(233 213 255 / var(--tw-bg-opacity, 1))}.hover\:font-bold:hover{font-weight:700}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-sm:hover{--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)}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.focus\:border-transparent:focus{border-color:transparent}.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\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1))}.focus\:ring-blue-500\/20:focus{--tw-ring-color: rgb(59 130 246 / .2)}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;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))}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:translate-x-1{--tw-translate-x: .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))}.group:hover .group-hover\:opacity-100{opacity:1}.prose-headings\:font-semibold :is(:where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *))){font-weight:600}.prose-h1\:text-base :is(:where(h1):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:1rem;line-height:1.5rem}.prose-h2\:text-sm :is(:where(h2):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.875rem;line-height:1.25rem}.prose-h3\:text-xs :is(:where(h3):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}.prose-h4\:text-xs :is(:where(h4):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}.prose-p\:text-xs :is(:where(p):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}.prose-code\:text-xs :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}.prose-pre\:text-xs :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}.prose-ol\:text-xs :is(:where(ol):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}.prose-ul\:text-xs :is(:where(ul):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}.prose-li\:text-xs :is(:where(li):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}@media (min-width: 640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (prefers-color-scheme: dark){.dark\:border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.dark\:bg-\[\#FFFFFF\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:text-\[\#000000\]{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.dark\:text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.dark\:text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.dark\:text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.dark\:placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.dark\:hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:hover\:text-blue-300:hover{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.dark\:hover\:text-gray-200:hover{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.dark\:focus\:border-blue-400:focus{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.dark\:focus\:ring-blue-400\/20:focus{--tw-ring-color: rgb(96 165 250 / .2)}}.\[\&\>\*\]\:\!my-1>*{margin-top:.25rem!important;margin-bottom:.25rem!important} diff --git a/dist/copilot_web/assets/logo-BTZhX0BN.png b/dist/copilot_web/assets/logo-BTZhX0BN.png new file mode 100644 index 0000000000000000000000000000000000000000..3237ccfa0e36bc926d0eb560d1c8006ce3e157fe GIT binary patch literal 46281 zcmeFZby(C(`#(;HfYJg|0uqwTvUG=Z2m;d5-Q6HaNVgy*2nYzMbfePU-5m-nox9&% zJ)Yxvj^{bg^SOTi{I2WqLVfSdJu~;b?$^BLp4qpCt0+n1+#tJwfPjD_D`xO;9%{Hf^=}PmzKsd|%b4~i zrZxt4hPL0lbT+i*GyoV_SeiN+8rT>*nVYgXxX}D{!fIlQoQm+43igI3rcTt1&Zg$J zrgkpWhIXDV7M6DAoJ@b?-+$8bo2Oj=-cxBOdsjOX*hrGHO3DUm?v{4q)Qo&UUPW=H zU-EdO8Nwbduo4)p3~b?aftBdc0KZKg zR&4$wh6b=e+W%z1^~2&DV&5780N={~O2t3L1CSXbMn9H;u{#S@cl|9zIpmx zBw*7sv~jS2tAGv-_uu#~XK!iuO%OCKT`a`DnZw%sLOtMy-=%}v9cD`X-S)dHzZNXm zxHJ;>wq~B{vIZO+T$~&RYz}tjFh6Kq9c*BW7GD1y-M>N#U)0~+f}8)s8+iQ>A%j_1 zIvW^U7}}Ye!aLQW;Q;cOavJfPa2SG&ILwSpc}+|VO^o1 zniv6jxVeo19DICcrba*$J}zD(ZVp2lJzrm(W-4(61pIBdGP~P5S)19|yTh~@Cb}*L zb}%9tSi;8w0AQnkE3>h*v;L_JZt_jBVM6}R5N7vxTJ2!}&5|3$!N$kI0p#QZ@$&I< z0eM-dK|BC9ARiC};^OAz0qMc|aJKY<%cKq`fP;malZzW(W@ck(4)4Jmj-$O3ObuZl zK(J>x;bD(3%RhD#9dDW+Qu_^jXE?$?Jd;%vla_)Pz-I$%3GjvYZ|~~z+g79l{|H-k z4zPu5`E7pQG)k~RsNr2wo7p>2tI?~%+WmPug1hBzX<}~b;%wk%Xyf`F7(H0=Z{Tpk z41T!quN%y7;J^@J19EV20Js4FASW*X)&#`E!3N^s<>BSy;O6}Az~P1s_z&QGldqrs z5>u1^2^r4+D>8qY-#;P)m#!bk{3rVs%=|aNI03wDTpS#{+(2$F9xiSUJ}wq&ATKu? zCy)cg%>m@#UU2UZ80D~H*tUq(0>;PX;o!)C0NcP zZSXB|`AbCpuKxGf@cieo`L8hhn;`ws$6xcTpF#x}ydO*DU$f!gLID79@v*@`=Y{P9 z01!+xV90XASPu&VA2&A--+wK#a1s7B`hU>=pH&w4f7OydP4n02{R9wP^nL*JQ)&e( z{d;&|;_(e0m@sg|wj91cDaQ9b=Uy=C(R>j}+_{WTXeEyxK01mhk zIosH~7+Bhwn0mlB!v9!Pe!}M;afMIwhZm}*u!Pd(+X?Iks6Zeu8#jz|oO}R|-$(~r z@qa=U_)TVi2r*oEIsYD2SX%H;l>1p<@Bg%Ef&TAs+PT`;{0co-mhGfr*z z*u}}!6y~9Yy_2Pvy`768JmEGov~f1|g#r27e$V$4Vt=e|SON~0@_$I4e}fgasj=|^ z_<%f|AP_GIcIx`a-3`bF;O64y;pF|X^Z}flaEAPHcZ2KxFIDvq0{(HL_-QtO-OXUr z=l(YHA6b|AuZ|o)b@A`y7uFfipE~=VKmXMFUo$w~zYqEEra#F0d%+)Th=rODj?urY zB6uKwOy|eC`_ajd&%gHp%hcdI*k8K&o?HGW8~lGo5g0tbNH+iFfCxJi{v?dwRQ!kk zzdjKCSj>OjK)67EUdw-0NSJ(r`1tsEzLONbvj0uW4qq1kK)Qd7H{YM=@%{Yw6Fq*8 z4vb8I?~3@#bnSOG{6OaSg5N_6{7X>(bA|l{&c6=bPl19<-w$v8srbzvK90D!&)}4lM64GpzrU)_yyo z{ut>`$LilW&B@6LJ4V3{oB%!mFCP~OHfvS@F9?1X;Ns(hfeAkfd<*n%M^7LCMq?o0 z8_|C$p77(`FL8tS@_*$T0PqX4{Wn7NcRScG&#!*~^=nf8&Bey|<@r5$zXwwXmZHO! zHY`o24?xa z0+x`#EAG?4dxBZPI)i=w?gGtEI~2ScW((`^do}zh@yp!@ZU|d@u%GXS@BsfY30TM9 z`~J=2pQ_*`-`#{i!TbMxhHzfOf5XbZ_Y3zIHqf^#IfuVoo&31O)^+9PH002A1#z31 zQnOOSX9Hh@M!#Lf!Zb~XljE;C0OK|r2P~Q8<^^&5$QJ-`!QkQJ;(}|%x8pACAixF$ zaq|KI@I%>ev^Tc5v4>x%(9iyO4^&5Ih(>WDcBtkfQ=gjgdNFY zi6aLP$Om6{92~Hf$-%+L0Xwm9bA!I$(Yu-&{7yHxUedsBR-G;F?O?rdu)+QNe*FTw zpYkxUHFWsln6s&=iNS9-GvCU5$HhhB5D?N4WF^HOc_4mmM9((W)H;D?y7kO%rONIJ z-A$q_%09}$7)E&{dM+#_CM=0cB#@1ilfB8{kL5!>d^Zu{E@2>wxQq;S{}A{e0{=tc ze+c{!f&YIZ5NMGai20%gs<3!Ha9(Y7Je>F5#p7Y5OFdxJO1ggLxl+Y(Rsqr1qURc* zu#eePSMRg#^tK&6;p84rXg~YnVKZBIPyc9W;RIR`LSlVXuQ zpBcm2l`vv5L}<-z?Py-1`e!Z8!e1N59E)#71tph;4ehG9=-{8$idE39k9~2GY^GB8 zXKT~H9}|*jj47joh9FLZ?pwnZ=6BCoR6A(&(e$aS@1R{r;w(>}Vw*N8sxst^{Svz1 z+xzvj>2zhRiy;fQ_*92TJ|$X8vt6qUYd`se_}ip=$V`GANlMyA1Aqs2JU?k{dC8xr zr;7TmNc+#}Gng!Z*?s#J`m994n9G{Do37^~mNgB)_!~O-M-!P!Eh4KzLg*QgOUcEO zn9G;jV$zwoq3m-a8rV^7v0P1gPn$~8o)i;D$$=ya>w}FnPTxpTzMp`SwIbKHlr>l+ zh)`_khlm>FsF~zvApr;ZY|%(ClaP9i9?MwJ7u8PAW`(`%*n7_4djf($F}k5XXkY`40#=Oek>y`Jzo?50w z4)W$g1bP$`Watah=hZEu zev5DUHLnx6dvmBl1a#XrI3uRWaVovo!2e!ce!eu&?`1sIt5+r|B37rP{puGh*%UV( zMIxo+`9hG1XtVLqkh;jL(?h>(Pd*$Qp*H$x*8?2xHd<$1%mare69bIR<} zY;r9i$g}2g&`3kQ9YBoXBE45 zRcJzjnx*D0sl&=kf~7}_oG?=Exa8hMA#xntk=VK8(FhEDCfOp=|19y2QqML0e%ZiP z$F`w#1|@n$$^-iy-6J~OvGf~`t=iL~&AtzjzZOn)Q4}Z@mD#Zava3?&D|%R^B&9hK z?vD+kbM5pXe=;ybbSSbW!TEsw?)EU_A_BO>Uz>pBj+3nWr^L&}u*Jh$w6CL^TJs>` zwY$2#M;8FVa5QsuX;g>r5y-m_I%Ds*bFf{3PM(#+C%_l+fH~&q9x-`D2uHZi_@|}k z@{NHC6Y;6hT~)IfZ&(khS31jD^`tW<4(YebPO?fRRr@0r@R_)g+}mHY+-%+KTu`D= z3vaktyr5Muq8_0nUw-4laSSxkhD_yQL}5wL;!QAljdGPcd+oVM_=Ortv*Ds)JNx8d zQ>lSL>iZj3boY8((2njlVU$&|lrl}aic-A4TFaZp7?cuRbG`YdtC){}CZ{mf z2nAQ)fD2SGxI@BIA@VFUImosI?NB_w=ZiE@oEPeYd(eROIN0gmk+t-Kr-*^sKNs=rxI&*B9;H!a1Jvgx-U~ z5py&d!{iw3S=>13Py1z4E#347YoZJHpc~2?*SD!I=zFVP+8y%lDb)cmo&&^#doSKN z4QA(4ozwyHm_jD>{3X&I*D+`E%yb?Ja|X_dwTQIOiOrqPzCvO1>f;-``<{hZ(W>c` zF6V7lrSMhF%>76;!4LdQadBd?8;UqeyHW^`f+tLc#0Q#lB)^1X@`>iB;^&)r`SPHN zf(wWdQ0g5u&r~H6&*ZVwv=C;IKT}7A@M|p7vRvc3ND+cZgv#aQcLG24;I2iKulsC+8_?lHy%0ESGc)+Q`F!N-^&*e)cxFvcRbNL{?uF{bjGOLmH{WT? zdhdHAE2r+!&2-|xsyY|5jrHZHdp)_##B|B{ykh@CJ7D7%7TUF+>hGn=2!^$VyXRQRLB7rFZ<6Eu{>3R zNtAVai`IElE#;lkgqp4CdM@C2oS&<5*0p0D{ecJ%f;iPMf3Tv-%E(JqgKNKp3fIrKS@s$*tH90!uWYGidF z*qHmw<7i@Xu5OoDJ*=6Z>PunU{`_MH3F`GYzjhfyvALWvdDB_m;quggpIk<_E#RUP z#f=CNdgexCxnLfO=P{A6peh7e4Q=0^iX$Q03$5$SZ7ULZJ5Ug4JUW8Taw8W9V0N#D zIOyO}OM#$@=)^OZxCm9X&nlw0>rmY3&cY-S~9q#o9N7GJv$0a9n{KJ=d-#&CZhhHxa%7}UGgUtCm< zy+SXEoZ2D{>E0ndilo!Nvykd`ulb$?_2CU#^ZMegTX8A01AoGo zq6)r4$`8**L>XxeW0kLSTh^ojVPF!R}6 zA3^3y{{!Z7$&D!*6~;|$%CqIv9h|-Ha+f}Ky(Oc%aO)NOdZ8wHmKnZvLo}A?8H#zK zcqqNey0deEQ-w|y;_pY`69RQ3YBF`_ovZBgoc-jj-x&u{%ka(l+gR$xTJ zLxfJc;aM!KHxZo8virZ|H$BQGnG>YQRl|QU_7v~(3YhXG^zI22+k3i*^_P zPFkPNC0q^;MKh zkd}6vgNw`G*XPZ1oXe(Q5jMUz6|0? zW27v-9@H>eufM5dpe%u}$+toH5L?_YV)fN<#)%FDfrM%>LN4S>hls0^AQV;E7XMPh z{h$!@3ojBR?kjI{v?T*>&Dn&A4h5GGIjz<1p4H+b9xMZ*%p$>ux&3Wg_pK6yh~7~& zwo0=i%Au1zQ z?fnkwmT3{A0&5HxHU`~^)iLiZ!)g34ET@N%Gul%Aw%QJaLFpyDV;i|-dEq8^%1^$CNoZTFf03c_L*%qSLmA7Mq6`JN<~rMv2Xk4^@eI z49f-Dxo8&;v#q{@h+bPEs>q8zzx&K;Jl1uGe zlBW}ANB13ISQ@aUGsQ|4r)4rtfJ;vEHV7ktTT(2w zWzKTo^<;1?`{C>7-e@%YCpr}Lv~&Fw5;veCUmC&jAJg7N(O%-`1MtI<4NL$N+lj>f zPV(k#mMc?Z%JDIM&Zk5c9v+Y8knu*m#KxAd6I16Eo-p9;$5=B2x>lUVw1CR4bStgO zgAMv1UPIPQ5AKoo?kESoLCu7yu~yO`KHR82(W=?j)JyA(*f*DZRAYqDTg(R@&3yS( z;QB7(1rL-;0@Z12qa*KV#r&1tWvV@Dr*&SqNPp+^2mnDQr`VLTVWPNxtf;rd1~Wc(0v#n&a+J&>kb(luck4}xFV3&$avEl2y_lXVx4N!c zy=Q7B%1mHc3a@0c@J$>DNfosr$$hu9_CUxL`G}PE6&O)Mo7huhPESJq$oSL@Ngz-Z zQaytS=9eR=QAU9*Y5D8V9d(x%Uyt{-53Xy;dP!I2)V|1LZ^)f4A^!L(c|sNEgOmtD z*-$Q)DCh~wJ2utBd99hUh-uZMHE>@qsihr1!4Z}ukDwW*tJZ| z$%b);@&Y!34A@|=Km}9p6}*%4+Pa)bY)cH8X17%8>#3<~i`$hHVNa}i9YhXHnpFVr zL{xN#-||Dd$Wn9y3v-RcTyrb8rFwk@SL>fwpUoT2Fo^isfds$}ls!%|3m!6QaSY>6Ei>)q2C3 z_3TdP_B&EdahutVTvl|?sIxS0=LTEr-RakX%v(oqO=qmHJs1J}iKW%4c+?W% zW6U~Mb4%AqLVaJ}dJgaktA9`f?S0|<3tg% zn6Nj8Sr7NHH+M#JVv(;bnANXSaPVY@3S0x++-^*<_#S@fXDV`4j6RgIN^Wkm$JA|VSY3PSnf|%Z!`L9!ax|v^RF&}&C4-nc2+z*ud;Bc?iN3!je?pwZ; zh~v|_QgfN}B;&7{_3gK0r+3ZTQXfrN-ivagvmUl4kgdJ+Kb(_nV8xYf(AiO?@P6=C z#`3ZYyDu@(oA#n%yoQ$cy;WcPTfak!l8YKYANfiraD03sbbZ&2Gw@Qp1+B&R)jEej zdW(0~ampC*mI!NIwO#mpr2hM&k3OALs5v+9IpF&-VOLt*P?rp*Nm%BSm-4;)hVU~6 zjk%P$LtK#D%8_j9%e%uP+!6@ylLro*vX(`32vyI*#SuwkrPa9o4j;^h7^^-H%of^8 zaHfCl<5*>zu;9{<5mq&;c}+00Y~wR=+VaM-N^sZ{0tz1#3QykX<2!LGAo6+~)UC~l zn>>@@ zkXkA^xW{P_)b!y_(C71#XcJ*JnxVE{6UNo96D87kZvwj9F&^Q)sx`}6{;bTeg0VMC ziK%Av&K`yyvktcmISNDFPMO4Zus}gh_Pe7LcQCwG?j%{k2dFo@gzp>->~f0OiJd=e2O=;`6e}s*Z@0F zwZAAJKX{Cx;M35(7CzL%tD)euXZJDt@QKWyB~7ZlxxKXZ#%Al8coyRU+H(~3dz>d* z8a)^v56Ge~OsLP9-5LEHi?3IeG<#6L9%%cP-Z9oRDLSC6u~wrVj!|0?irMk-)EGxy zh7zoUi@*>hQrSWG4%9E>e`` zyROD1r-+PaJ~lbfXkx=r8HMH#vDC|%T}(65ULg9|Bk!5{`8H4lAIP$<7RpXC3LfF0y~lgYuJ1)VSN}sxUv( zby{nl2KnNb&8oesT#2+tDWZGTsvMW4AC9Vgao@6Jq)-p=xEs`(%TknE(Z#L^oejDd zLZZ`=U4Ife%wQIz&%n*T*Irk!ztf9^Gv^iZwlYcC z^7y-!_hGvz<#0%SDFZMMNcB+3r686$+BX?O{y)^Mz&*&=?3v)^6U$TnxMlFunmX7W(o z1DC4V^;zOaDYn`xSUxZK&h4yx-Sg0)$f+$mrGICPF^Mn?w8ld=d47IMsIKOZ$5LS0_t*E|!CRFB-@SQ*B=B$U!K7t1~>;%HSc zmm*{+Fi$gVQFuYabJpIjK#z zMJ{f&rhGD)h!m-txzbJ-A%r^-n!KUDkXoz6l{^ zosccluH(9B&f8711g%`1SQ}97o!yCOUi6reML9e71P0EDFMcq9h`MgJhs71DIu|(f z2@jD^GB8=*@F>JCpJS3?%4Xuy8Z3x^-{Ki8vzM2xE}4d~XD{GD~F+2B!$Dpt`(FKg@c7 z5@#aRI4iJ1osNy3sh+Y{-ztA_pj7efiLOK3C6itqRiO$<@DzD)Q~4P3Bu6skc`b3m z)SGIQOy`a@@JU$~#qCzm^D~I8PF1glvG$<3Mj7}X)y4K@)({!gmXsoLV6o8I2W9K+ z9$M6TFc>q{i1Pj82jQh2eW6*WI{jok!>k6uBZs%4IkRE*jx7nLOhjAKDv3AyWp7)W zc3T+rdbG0VPG~~(!*oJhlMGrP_)K%E`0DC9takg5r}r@goh1R=q-BwpGj;Tfg?Pe; zm@G9KMZCJJwM-Xx7WOZ}B!jcq|~zJhFLcfBG>OHYh0 zta`3`Fcgw`V9EVlwR@FC!u2k@sn~R44B-b1+UR>vFc&1Bii};kvi5j=t$j-UP^EZA zw<9b_7Z_GrkhR{xOWQz4Cy_v6S5VfV8L}cgU8797_^P!{e>-bQ-jz?H8z<`^0dX~i zr-@Uz$${B>SI4R(-59CDsC1UGtvOHIQ!^JL@u}HWi(S}zga|xd=FizgFfrCd_(j;x zeXc4`o9@+~vXWGmA2jkIY5wcMMCEyP%n$oZP9qn?v+<93o+_XSDhsRC6{P0wM3qI> z-ITMbi%;1$K4*>+s&Pi-uG6q%F;;BXTrcz!x+mkty!4FqP=ASRB!OfyZO5~eeVM+` zCMwHGd)VM=BF>B-LruC>jKc6M?T7;Z9q(AKgUkM77B4Sp(K0IkGjx9|u<|lwdJ4q` z;fu|uXlOI;*=)puI)zX@Y^NP4$f!4#NzSUrX*sJzq>I%OphbUu@D|tk-t@PI2 zp!~94eTt=5C>pW&A!4ydugrZ8vR|)N=F1nNe3FG6$0VJ~@RY^12fE{%$ln_HOr1!N zbr#2n?XOrTt1=JDaFNoNQML0F&rG6QXD?{d*Okq|zCT>-t#(NDMrxzP-czSxi`Act zN|EBFJN-K~xE?b-rr3f?F7}yUYahqvg-UKDhd-t}r+Vj7(uxf(Sp51%rI)jjO-o+( z&9WM*liH``b>nBR7E3Z7I(A>^GI2bsB-~8B860r79hQpOBIr5GI8l#XZARxOD_I-! z+-+AeFlO+6p;R?dc09)upTwQnR~Qm(1aH$AKug5PWae6Ak0G2wUu2O$!p{~xU7E4O z-)++PhdpcpDBXRT=I>1FTDcKYg&Rr}c9)ctVysg@4m#^Vv{L+F`I<+c(EfZNrd{!U z{>`||y^)EDCWu~Rzq@*`-F(g|TZPdB=4(fH8apf+d!61S^kbI3zV1v0b{)4J2O@Nm z{kN6oFBa2n_UCy!MRpJ4wqY0SxZrV(o31P{+(40GKqb1Dmt!ePemP4*IKc`~pRumR z6VKw_$YtTdBJU}uY!5Rt(@{qDslXa1Q zDwVzlY9S#ld8MSVCG~Lcy#BOx2fA2Y`vrDkg^73vp&q5&ei+vSk{a`Tob{!ViAK+* z910VQGe`O;4(7vCpXBnh2}3&>M1Ll7!mKkf5u&HVsYv`Fu>vjN7*TKFa(f(Pztxqm zswTYZi-bmahLMuENkD}&9z}SK)i5$n`?kEGS;dVdvl6FjJ1cpcNq$NK;0S;RNZ^d0 zq2)`$)p_5Jw$YA7iwnO;y2EH~S?c|3A;QnYvAbVvT+G&w;$*t!Eq7-|#XSRjK2?}` z(B(bbxECjPAHvz@^h8orxQxy934O@hC=QaZ?bCS~XRVdD+h>{`Pj2Ets~cAKiqW&Y zR2A%JUwEqSDn2Edq5h1FOrKKHhQVmbV#%;Hy-t-)UJ$k&Yc3`al;B-YJ?gqr6;AA6 z_eQB~Rl}|zzsDY!nY0x4YD}Y?@AOOIvz%fuCK2#~OU9ZDkL@IR^_-ix&E&hg5OE};WM!!cRX`DA&qrwTx@##wgr0fs1 zM>Uc&S};8uc{*5ov#?N2#ayi^{mncrHFo^YM8~W&&P_?in0N|M#_1+=@@4vZ&j71c z$LkBji9VZX>)pD0rFCB~Y7WNltb`m_x7CHSzAqF>rFmPYA99yGz9mz}(-e>O4s$4R z$6a~NHcWI%;tnd8$K=(}yN>&v@gy&|JN92&eNp4Ypku>M>p4ZW80A66cV>FrHiS)X zlTXaK8ApsTkML$s7bngW5~k??ka?Var?tcG+^^xdm@3?Q`6j+|bG44Wj#|lPk)?JJ z#3Dc6498nr%cIyaHR+Z41n2_!iFk=X8+p}%^vV7+8Dsar49P=6qLJIYW2A-$h8VG- z!5gx*Aq7{-LAx2D7kw6S=~a^H+FUfgD^Wb{x0@X7eD>nySK4>%!|s$eGwo{EbLVrZ z#A)0JuEt(vanGx5F5bl+U!aP+`_5--n0IwCX!%WUbR=**sS zUD&=pS@gQuYGQuWedZM7>a%illh-<8LHjkf<86r8O?8=?v z-6uq!5ppdyo`O;rsY?xHGOzW8&*PIym%RAd7h!JT^Vm@lYSl8v^P~%;VeEj zy8kk_q{doGK-lZE6gb*GlNQ|km9hXVE!1_p=_+ZPf$}JJ(>|?J z8)TG!0wLr@!37i;Q0yjYi{OfATi`a39|m~aB6NbB?-S`kh8bgD1vuub)P;bCbQ#f5 z+NIcPSs*gH4EcAky6<0wYAvWV`SngEN@bZ3tRV5BYsKGq5CA5B6$IgI=`HLc@|`GdR%dOMVG} zGu$IF?M`2Xo@B6M(V)6m+Vb6xk48kfXGXp#EQPZ?p;PIV!&f83JxV0z_o@weyeRFc zs>8Okd^`8)#DLpT-IL(vyqkx~MenZfdCAY`gxN1RO8J~!IWOx}>l0azc{Zz8ekuWK ze%XiKVfOCOpxrJLd0o#!={bqK%n;-4klu8aJ*h0t`N6fAcrWg*C^NcvOhBwlJ0TsV zD@aB#k?Xjz7*+Io&)Mp7p{DK*)bDc}_~cN8VnV%oFP00sm33`;JZ&)I11)4KVWQS3 zDpb21SSJdT5AI4>2jZR*Bkv^+tBy$bV3~D#hkVJvYYoa*zm@ zNaL-EIjM2BE)^xEQnlh8?lw;Y0d~k*78KOv2tj>ssmmU1vDN2!?K*1_YBzUcm1jjC za{QnzRA{r;13b`7op~}^(0ZWGe0Vy2n`%B_vTR|sz+^}Ffu8MR@>b|uk51roJ>@>g z=f*FG{(Ig~TF3-@vqfluXDE_`i8l!LrRT}^7d?_&r+q0`uCBAKk0X_2u8!jgh=aw* zKVa6fZCX~DQ+iu+CWQfIZum=~9lRX3Ps=W3+Gr8PM)Os@XSG5tC5PO?f$*WsAO*mS z28<`bIoZM9nZ_^qz&##gKkMb%u(x9nb_mk+Q?#ZTKP{Uzg;JfwtQ4;S@C(?4xH3Jv zC6>XVloZ9A(In>S2#4e5#x22qm8vbzQ@*b1dgHKs$w|~^vYT7B^Reqo0{&U8#^IRO6?CjMnJdNw@kd zn3w6Z-k>rIxUfm5;Y@}ln-7PGEN2&H=KGH0kZ7p!RcDSCzk*(i2ow54Z|y}>>AIRK z^t?#hv7a~f91qV^*HonHAoo^ixB!(!ZwT*bS=}Qcz)yY6xy+%!>?%cwTqq-~fupBg zVK(?>!7vl5(wYSsGHA`Zio3i5j$BvHV0`%i6|Db?>ANx~xA@h(@$E%h0ww93KtV2# zW-#J=X%bbsQJ3x*T(G$k*PXr-t|`q56bGry!_c%OM&Cl*c7!Kf{x^i5i;I+4=^@j! zH%nrL8{uk%lF>g1MB7qiyAv%xzCZ|tR4TV=f|MauFCsyX120d2fdc#1P~O66W#eei3NmevoGvrirY%MD^I&l|D}cQY%@Rj zOPGl-gutLMbN_{O>(K>hdt+m)!YFMyCOg9T#xyrx0rvpib6v5ADR}#oBY0rB$EwLz z%6{8)<)INrU!6<$>ptE66yqui6zSV>Avk_?NEz0a(tmAqHNOMp^>b(=GI}~`7r!xA z?mEL8nbJO^JzRd7@0%3C zM1vtlS`iA!hP@@>XBNKb1LDwCJyUNv=*inM01yU=DVC8SKChN1A-$4YVQ?gG*xegbWZ6T@WO4nX zg04>_tsgS9Yr3oe$@Wh*4fq7uib|ig-kj2h$Tw>>9GlgP@rS4#WCRM&&PX}Dc>UUNr-2U*rywM z3@$72TVEtFwrISt7&Fhvy}UQgm7=55{qJWI(*#Jnp;%oG{I=EXYcn$ z3oA*K`a%4SHd#%?kz+0n`Dbh;7I$=da**-ogVvmlhGCe7hSsG?dmluhOuRkt>LcF69_>xawp zb#UWse1ffn(q%XtQ0Z6lK}-*)`;LA`@0FL;A=C2g!*H=qOA?FV3`FY&vdH>z`($W|z>!u@hI{Yn z{-EEOUr%xuhKJ5o??~3`WUMJf1p@U<9CuUSqBYCx4bPn!(Bj^ye&drY7G&a z$X3^6xYCD3(GgT_ACK$0D*FU1Hq3~Gu1k;=cM{I_M98x0uhGHVr;W^PvtAQVVc*o9 ztZyfe^Dx*w=kZxLSQZ3tdKIu@j_|8PfPd^ z)dEcj*-~jGmfVg)2Gyw9Gal52H7b+X!pbe=eDeC%W(C8*QJYGSkK zNk+PP{85x7{%pXq;j^{hiaPjeqmgk}x7t)JLS%qLsJzs5CT&Ms1e%i-Gtmr=;(T%} zFc#BPfauR!X>xR|;}fxdu5zY*@^M=*I=mUgZvg7=D_NkZH%0v4xlv zzjHl-H9ofU_Ge?39T|iK))RRzfE&IZ7IbZbhq9F}rkRT=WIhjlEI8YrmXi2RZb%nY zbUUOHQ(+4~Q~WGig4x?;pFGc66@2iR71h?&RiRIz-8t*Jf%nwfU~Cprm~rry&f45| zZrtJ+i`~<(VJBlRjL)z40tedR??b15ad7*KS{A*xq}lUYZ(4pTsfKk_m3>mTd)^jY9LnW0<)es1|#`pxZyD+ z?_bFeo?J1q^Kn)(+_3^v5pNmt>vZ9h+L36!sdNfNBl(cGntF1k#vIAjOoG|%+`z2} z@r=JluFDK0dN84OHD<)|n*Ja<`SaX6OJBh?%Ym>xpHt58jZ6lJ;G8aK%4?vxN!n(5 zEURftd8Og7$qtMjS&b_Dq=1kS>p(W+joyPrp%{PlSpPoA*lPdBT_S6VQgLZ1$s}9ETkiUuF2;(P*7odF08vjjm#Yq(C^xq7dPn~A@JVK zlgPiIdhz=3-a?p;`_ibeYBhu1hR<@un6mJu7@*NqVtly#0lRBEf;?Vmi8jJ;z=&fP z)>=?>CAo540s-HoB3~Dwl9@$pXfJN3&q(G+f0Cyx!?}~doV!sYv5j~u2|CN*7=KmW zqig0-00(v) ze|YesNI%PBVpJIKHg^aHE*3~}J#-@gSo-SzHqxd$I-rSexpCp#s$nnQUi<3fv2j%j zbeXwW+G=WsuW^Msh4{f4X^8SJ25Z7mXY%j`&BFTexiX2pj`f@Ld%!?II0~X)rUIyi%SOVm8E7HOtLQK-v7Msr>Arr|Ab#2q%f0|8b zo2{H${1}CAQ-N4CkA5}vS^%6{+(fy@2R*bpSpYMiZ{>T>oiMZe*|FdckTx#9!BIX4 zup?SBO}^I$aoH&cRA=neO0t*mnuH&`dOMPhfHExFr%|f^hB&B~^T42=KmRs0dXUw? z1MVWn}USVF@n8~VWzO3=%O zi4~-X+eqC6=gh#nIB2aRLR}de2%OPkS?9zeQD@K|9*C^Z_F+~+eVYMpLn`dOOBm)U z%k%a2Cs(voniPPl`)E4_AKvY4+1l2IG@!g11*=ifonQpMMi7e?Pb9jop|2Fx{ZJUN zZk875sA+Lh7o0hmBG}BIomPy_Jmcu>F5j@_O!eG;K>LbdSLn=Zc!es(`P$r~Fz$?Y zJq?;ddxF|XqQ4rNogn?_;-Qyb_mvFP1Y`H$(O3zRr%;9oO3{>vt3l=_KG~)|%jD?D zLDRxn_r%J;{K-V!u}ixsu08z|r21&sw`_VHUS-WATGE*$5mg@o*hlJ)Y6|D^5eX5e zEKbtOly2UvX z*o!=Gkr?0=GUKsjWl7>QA>Fypk;K_yA1hmdv{+h}-YtC+dsh`|Gqi-Z8sj#l9!u%^ zfOk!8#5R^YBmF&tm)G%batQ(WPV+f`$%eA9HxQ9vk^)8Ua%Z=ue6Mx_&tpGOy1ldY zZSt}d=TQ~^MSQtXs&pP%xP?5)L6Aja-13+rhH$8NU1k!c zk`E*o*Ob)ty$|Sg>^}G!bnr9mO%@=ELAKMYh2q_ByndpaAP^*8$+>$6x*6pNzQs1C z9&;9&&I5NEc9ni}+j~jKz-?BoC^sbefizmc^mX21JSGz_a{ECW2c@Kd^k{slLy&T&LKQF+#U5}d;ZR|qNDS>cLN!=pNU9d zkB?y4a7=o5i@O!W_Gdin8gmGfgw;xvO}7ut1_wfCOfSLOE%4GUc9I*bsr{rnqM1Nc z7Z-5O*(_gHggdmS`TiZDWhkXtN@Hq^(p?yT3!coK()e!1b+poi%N7($6?sTcGqdib zVO_jdp@zsbp*$5qK?0?~ZVS$RnC?qCs6GypFzgl;ZzKuzaJe;qo1@-`QP^imb2(%y z>XH)nEluk!{=>K1uL`pA3;ka{%aro5aF6>)e?^Gl^KM{xa+&w=Cf)@4%1vakOBdxk z0e%ppbZ~OJRupX~J;L(hPz6-s zLh7JrLi}e2Xc9qw-9{?o#0g9>!mhIjPDt3ju7ZhkZjbMrhZ;$ z!C3_GJo~D1-G>z%u{jc17IYvD>3+h9rr%|a{lQFEbn6q-gEXYh4CbKCsOZ)Vo&~bK zs}6T-o6fTnkto>zFqt)hLX3?#fb^I{>-`4(YF~_}W2Hyhy61E6ZnvbX3+WPJRElS@ zt+Z@mVt!UUKEUi4HJ^tOEQrMd_sMO}M9;7sGB zlJNSA7qjmGUSa+^dI+2!NKjjlL|1WA#d0IaIqf@d)uA}yQPpy@BJn9ncqU#$YS}?h zJ85?R9CfkxuAw2~W|9>TLYIa1ybWfn%vkZ@g76ptQ}f)5%wk;1-JcAR~z=M zkf2F0orQL{vYp1a#L0s)6mp@?$Gqcl(u?=#Um%WdmM60V#8e(hvpgN}n=h%&zf;gc z$RzgY@%C-NtEt+wot->!XUCb@@w0B%g&2W#J9;bo)2A)Q172^?tdw>tUAgvhcPck& z5Act!UVqG!v0f<-6DmQ}ouKqT`0No#=y!3sRrgSrqRz9kSSxBx#T};vJ!5F-?1*op z6{mXEiCxvI47M8xybP#EaN}NT6ohP$Uu;@gddnytjSNQwwx-qPS*1+TMM7>zv0Znz zh%VustYa7>=88fd8NcQuWA}{SH+RsRsNBRhGJ8X`(74iGV`xMh=UJbELg}#`4yZO& zYs!mDIdS2#DrbMc>v|+7jLCDyGvQ7_Dyj(v8@}5CFosW4Uw(1Q;>+EIZayqABC!2d zpMN>99Q-QAN1+7q<%WbAwSQ^=<`)elJH*M7v(u}WRJA^)*c+38w8Ue<^N1WbnG*e* zkq`-5RR#{6Gv*DxC$Yv=k0`8Cw-d|;4g5H;S9O+Ywz@w0Uk`=Z&pDXt&NO!!#V_uj zPpnXZgRPE@O2)FyF731}x`|6JI(nn>nX-0Ya*elAv~(G0#ZD!ZpsY%F8C(%HuM!w@ zbwX&aQonLygmw_Op>7zEK+m%_77l}_3*h@8?k`UvrlDc$rFP#W+AtPuOf&&ycxuU zvOVEg*s(}Ko0{UhG`tM&q{=V5U_qG%_s)o&kut7B7l|fMv_VV}BonZbFD~=yuZRAL zGMMcHmOc7S){T>4A_sW=z{bHi4JyCMhn(ke^sPjBrHWBt@6FI(ozbn!PfZww{*V8( z)z#z+GG5f4cI3RJE)Zql{tZ2BGYxJ)_!S)Ya?GKfh0ZX*W8> z^nc%Yd>90lkS%Qnj(2O+Bjv)wEcm}LdrE#d7U!a(O;T|N@FD^J@zBW^G2PE|c-qfp z3`jWNocc!v{Tw*sm&p|M-ud;aOMKD?B*QmTkc z%7(n^2)pQDsH#P3trJm17yJ%z@xuR{p(VvPR+fVqRgF4Qzc}wP1D?A?smffC{GoPw z9^?M!Yzdytc(k15B}R+jV=B5f;P&r0ry``hI+OW<;GIX*cY*NRsUiLJ*RaDuxkWI2 zKd{{v<5R%D&ujQk&vQS&K-k+w(jOm2(e}_!Uai-ziqUY+a?qr(xAfeOEG*`P#JkH3 zdqd5FPdYbya@gDahNnqO=CovFawu;O0xW%=R<0)b{^$w1KjinZE78$_k1#MGrf-h~s?%J^*CkL zjubv4puX;}r@t!6q>~3x1Ka4a4NP`SdGm zLh-U?s0n+!WD#pbLI-O7vu)1&P|44S%dKbU{^#i!XISv|>2G8;%O3=N4e*KThlD=- z@!{DEAcI3TWHKKAlK6@d-$Cr1cK+R-G|g^Ah&ksb`=qL`5Fo!y(kzjAmsb|qc zz#X1H${x^Y)517J&1CLM{yT1dJ22gT)w}mRv6455l`YM*RTvFpjx;o?IW^j7*bnh zW#7^%#USeqhly7fhOg8ptANCafUD?hiLq3kY>(CLDCUS8k})bT`tA?VJ}jkxb;o4$ zDKz#b2Odtp{%eWHxL2ahGqt9tpA=}~0lpZ&nD=WSmpL9P^3 zB?4h1ps=g|Q4_Cc+LZd57RD7ZEO9w+*np5FKq(=5=#06g#p-u6oQt=LfEji!p+Aj7 z2n|j&YRDVs2oX`kxV0Lh&*8Q16W6P4TGQXZ^!=fp3hJ|&?lV^B7frik7Uw^1l>>C9|(e| z`7)jlu&gLEl-fL1wWkG~fTBwXskU)^>62rF&IlRmvtnFDGj&;3`fM&k3uz2O(te2w zT9B6)B|?$&5xMQh3cR%CD|Pny<;o^}4_9aPzQPXBjfM{=udCA+Pr}8y1*s9w5mZP3b$(b_kHlLVb!R-CGH4>SZ*pfu7rG&-NzX3#<7Z-@V`t7|LT^ul|UtvHBnIq+W@; zYqb?A=b*gRf?_3aUKpPlSLg3rJ}9&rL6p3qEz1@RKmXVucqt;>fxjctRKJ$;A@1!- z50-53lIr8?$>y&Lbt_@k1^_!;wt?1!P_@&^_|wC+L>ugAYkGlmTb7lM zuEpf7l0jVxLri?8=JIVCU+K=N-6(s6V5d)(rq}P5szRdYD$SC83^;K*O(kF%b=(uHJvZR70GfMZ31!P-o z5u*)h;QktVqZj<}&ADQeCW+es`tn^3mcf3f@ZSmkS3;aK_L8mn)o1S)%^!NGg%y3_~D-HWV4*6lHc@S*@chz7C@@3c$zT!_~&*Ktj>>!$`5cr z8JXEz@w**m4|aOX!^l%sV@nfYztGzwg_NJohln2zMu)6 zt6A@x*(G``1w_*+)SPsrgE7^x^pey;WSbq3p`Wg%Ik99)C&^19X`jn`)hz!J!moD`X>+Mm78SQ#Y(#mEMT=J79$Vg8 zhGK5qMn+3}P|%@vr&mCLiuF89i>o%M^#NU`lOZEb>gHBNYlme;KsRuzC2b2^i#{SA^vM{!Q;Z_7S^^t+b>V?;_35vjQ}_Yhcq zZlc22$w#m#FXcGxi(PQwe@U$Lza%!DysZ1#_hjE!8^_u8si93(3qQV-h4yJ*bGFOzM9Qz9- ztBhg{&#gg%YC5rW1%~4XPP;G*(e)t(X9WQR!DYErK0Dzhf%RSs|Jz>uS2{85kI`mT zn+Su`9C2<+bX)jCe#fKKPw>TS5)Cpx6JorMIWWkKJmp;EPn{!-Ds$s0T-W+mHxk=Z zVEd3%R>;?i3y^Wzn|Ll}u%60Be{$8)6t(h|*v_)H;%zo^za~vKMiAjk#!+P46?oGw5%vXSlwqle!ysTku|#@nOp-?LT`hx|i8XymukTUE3e}=WpR{BeTbT zad0}?nC#@E<*~(n+O?c$P8+QKk4NyyY`v9Y8`NivCfd#ZttqBJ5bdMIA6)59 z3@(TNuB6XB7i1u0cR$Jar227i}d zqY2H3gt?|7;iFKoKZh#l%gAtdSu#+gAql9_)NK3mK_Y_aLAo+<+Xydl@iDMjv2-RN z;b-oFC1(D8ru1iAUk%@^*Oya1T=L~6iC^3yLZKvS$*qNw>D(wz6s1YBZLosH)VL^HyWh}%yo7yFblWr|3l<=|B|$(^2>ehqd+4X*O>63~myCld(3P?Cr~N_>!L%{4 zD(#in!IxaPAP?@gg4*|PEJad~dkJhrBw$Qd+!N|3KSMyHqb-l@B`A6zQu#=xz4X3# zsRLN@=x&UjXpS${W}%3pIyEb}zAi?SCUw6nV&@`C;7=40m3?OLdP+n~a0V_YPx6?X zun1p_B>^MEi>5po_Yx4~umgfn&9hy!q0=gTrG2MwrhSWMZRI!-tPxe9Y%syM;fuva z;K@rcr(3+bHzm5tnY6vT9$zI-cZ^8|au7|1jx1JbY6S0Y93T7^~CO2Ug9PJv_?=&F9#X+0-zT7wYoT`}%6_b-^q z611>jm|py@ehwr_=)JDMC)CA=8#qBH(j@<<0E3J8ztC6FIPE`rTypMNG!_;o0B7*i z@a80_TZfm05n>4)&Hb2SC4*(;-sD(SO6pi>d{`|hq4^5lPm4RHovyr(h<4$v|8g*o zb6KgYk&|F}NTVpt%e&4-0Wy#~)OW`) z$w|~{;{N42DwEYDtEXoB^SP(pIN^vG#s7k7JVR1YatYii@Z5@6GZg=<%)^YXgYo*S z#)$E;-4OpEaESWVqEfm<1f@Ro{+oaL3Xa43Ej%n)Pv6{+>9aZtexKgrW_3xvwhC;I z-1l_zZvkI#Gq)=jUKE^fe(paf<;i!B)do^lvTkTqo**apF`GQvs7srmjDSBYp$FM9 zKu6d*5FMTk%x@{4nh^3^nQPYR?Sd+<_L6v#Fz#*)x+>qdAhf>m_=JKjCdXIL3#LVl zh-JnNWxXq3X-L4?7AVvLEI?<5aPe?9ePgyYSF(HsUkTC z8uobUZ%3G5&O%yL$tqRiKP(d`&9e#7}&2&Hx~mNW;1d3vQ#nN*pfa{QNvq=$}eN;q7* zulRDt3_7TClnneEZ=KUezFE_?HrZzU_ddV{f0xC2>wMo39dhvOY?Yb+{GtZ?g*k1` zpMiu#;AvCT|LVG+<;@MC#Jv4DW(0NIoR9?ekVHDwHFCfQouVhD-O5%R?7hV9OWX#r z=$SSQrYwII-#e2D@ zALB@kN10FM-CFkJ0HoKt(}?naf!LV=55#r!F!# z>KyF)w}u1Jc40mk8M1$tz4$0-=ESsiEjCwu*wT`AD^&L4^I2n&X0~(4Fz>t*K01M4 z$=5rCLZ5F1wn3@lZ!emG!IJ+b=HM1${{)y8H%a7Nu$b!nmRy<5AY*%z_*&h4!_QjVK{H=t9ai9sALW4aI27TuZtT`wKBplap6!#z`! zuQO?yrqCR!wegAmkB{wH&=q2>D`gmb}9pX z1Lp+<;KRr820Z9LVUXn7!%C;Q|LPqdNFUH0U|w$SbpG^}l1S!^Mvi`=hBQy{-g&a* z;Fsv@%oEb2U0BSQzAtVF2~ z*#_=U(!Jzyt-}k~&3u6^0^60LVIgAV04v;_U*O9e?@vY3Av$)3@u*N6bio@4Lbgki zP<7@6*V$g(VoXmp0M~FfU?%Z#1Dxr3&LVs;-;0?6LXnw-1@eVM9q*JD9*>~?l0?5w z%D-4(qYoTfik8*>QC8!UWYc&lnmTI>X!`-#hfoIrBe+=aH->LA&zuk~x*(m+o`zO4 znSIJcdW%y@c!a-2x6P%3PkxG!31i@yq1k@5bX2GT5+li|!&+&l4<~p5)u?uy;qp#; z&PatK{FGt$vlfY&K|!1IeHHp#^&5Aqz$7#Ly2MZuLn`~Pb|_RIb8NR;gEen4N*`{62B^-{zdBbmStDh_yX3l*}(zVH0_6W zA2q4#_R7=!8%D1g!Ap?Vg*m)__D6-=xJxaFwTJ&h;@U34A@~DD-`J2LSd4@DxsKKqGh}890fR3khRyi zgu@)ofK~d*Re7!}6+fZC`dBgM9||VJI}-|WSNmj=th5r}teOb2tqm?Ly3c-?Q{suk zSFA2>P$sqhqN{+i)Ekp0AOw}8Dx=$%NN8w*veQ1$>t9cS0+eJLA2i1!8U-{3X5eDL%>x!#w{HQt#|Iz_?w*wf< z1#}?#a1SGl1gzdHZo;^YssK;5VLjO3+ym zU->d#dn8@RE#bxYzx0>k5suPE3vNH@FRx8Vkq9Lu{+V&3h~l)Q#{Gj{7A~}>eir3M z`f?5u0$7&|Q67XIjQtET{U>;r78O6;2dg5vf7?~mtN(QtcPjk~pMe7$eLaL6k z-PYkF^fFcKQBh~Lpm+mJm7->C^GOe z2XQ32n;QeRNki7gWB%jK{*dBA*3>WlS^DTow?M^S0z`Q^4nEl9poo?z`vDg>6_Bvi z3uo^$F9BZpu+r<;m;5YMoScmFd`h<8mI;gKA^|oc(A|R)BB01K0>wHc<-RnEmB!ET zZr|diUBuc}T=DHX0aKKt!_ zXwK~3s^vqy_rtLxQd2vfUUDc(rNQVmwh?Gf&lmMo;hudRap3uoBy{=yFxhh(h85vjbrIHXgGTi8 z0$J+v>}CP;D;ruEgFd>95@W=tma?;W`6uf?05^q0-Id*RuQc+bC^iylu}X|^yw~wI z%eDoK4R)G;9By|*G9jeun!__*FTdfQe9)}~&8F02p4AG>t^q zICGSYk}SNqKNvhn1woH8@cmPLM_Q%T7<;_?O4hs(s`LW+CX9PW?83qv`5gQ+h36kh zzBC~E;;?1&Bnu6PIoWVYJ)LoGcX-Ckh+tiM({ zyN1nBk)S4`Ofq0Zen6~^+U?%=_f0s(;4ok{Jau5Kks;Cr zjk)WkQ5lm|n0((i3|Gv@FVw@&k7QX&#vfTYxn5FUj`u&TxM75f5Ga0Tk{y=hEELP> zU~hGT8V6|19ChS3?SVjKM3W3zgyj?|7=Jsw0t&;%&8`~LN@xz&1Lh*3>(aZ^3kyKl zsph~OZSXs;ymd;~?p=`NutS)yFWVjx_ngT_VGZTm5Lj1SyUu23@s|VJuQb8p*GgE} zVKSU=^xB8ULPCW8?U2b~F@WA%qyPx_tkQ981hMs0-7k7AfJgfP$32^r5}7h%WK8SBQ)pwnO!9f7l;x))aO$2|j0 zRNNDR>5kc1G0dca2QBq4-KS9(3FDj4I?4UzeY#n+AQFT`O!xovyTPZwZme6Jq`f)T zj?fgN{|bWvUdrP1&ZR1{eAxJb*pbfyCEvEqe`V!!V&U###pUAC&kO@b&g~Ph)VJm( zf+*>D%N1O+-HeISq!PB4 zu&xg?bpCqAbD}8A<&)I_CG1!Fu)_8cDq9G2`Jw4#(n=;dZ^SvCUp=PL8ExhsY+CvY=d{KE)p=^!r=?Zi$o`1?FpphKn9&ziY?T7^{R(=yeIuF#V~L zHE)ylvO^kd{&-eUuaFk#vQ}rW&y-0`BHHLQE`mj^K#A~O*+BuHZO zqz2PxOQqI)@O<(EVBTo7#3fxHb-SJ|q=^cKaZ~a#Nb*TVswK3AW!w{P!{pn-y3rl{ znaLi@6iOF9s9P{DEeaV~5-=sIsY3-{{63ty<9VtF3BBU+amtvBxYgcEbIO&vvOS4=k2* z4xs$rOS`%|s`=K*RId5uJPy)&p{;PJTJW}Z64|`Kq;w(PJq9B5>WpZ)>xK5({y`l4 zJjW`{in~~_6Kk*P3a`HQ$}z_q9&IraAgUp^+!2{7woHQW(mv9s)EQGAg7!m)h2|e37L6es`QN)v&j1FhRilvw-mcU9&x< zr6oZ5PV`*)HtrT0pPei``DXqRP$e4#rY}^Cn8-G)gy;b^xCnB@c|?Fb0cTUEv%!RS zovx~(`#E)JQZO>By*#|ctHFw9*$MjrX?rmTMLX4&H(u;^o`q4(jV*8Fl)yZissOdUhHP45sFsgUDtuOIPr? zdmCh@utFXY_~pVI5jZNy5z%RoUayUv$Z_jP;4ZI-te#pp7GG8yo^;I=9v!FLRBtKJ zrWxHZ(8_0XuCzXqE6e-5LCKn^H402^L|ibnpPvYcGUtX=CAr6ITF_f>RTs41X{@H2 zi|I&SRz__nq=~T52JK&YJ~}OQ4KEE@j_)7Vj{V*4zfEuG)RgX`9M&Gvc`+FK#!kmf zu7ZTokpC7x08lQ3$dDLJ9Jhw`UXnB1cd=L(F7HJ(KEAo|rfa5*$CE^ckJi&U$TDD8 z<}IKN(uLigTxpW65wz5&rHC%v8r=&o7=^rg(}0n9zv;z>R|hjff0LsIlHOhU?UI@q z18neX7OE;dBr!t8o8}1VnQRQ%EAG=e%fVS`>mT=UvKfZ*jWG<*^X||)#_Cz*J~SLV zzD9xl28Wz^lE$TAF@`W0G!V4Ea4#K+6t?$JH&^_8Yv}vz*zD-T_I9MSXyyWcr$I9( z@xDQA*?>$%L;Hi}QO~vdJqUMR<8#2@9E4bHVR4oM6=;sS+F;5-C^JvcT+*lI78jVQ z)P^4h+(7hV|CJ}?8YunZSEs9Ync`L^O_gU5kziNraRBy=*VLe^U^4Di3C(@XNPR#3 z!D9^IaM1IU&w)F}BC_eT!8;xKigixZK8O&8n#DSD6wfc9cE*SejxMEmDUt*j=gw8N zv^p+lC?D!!8hEnuIApstsIb{9<<=EqW-7_&*$XY978KMw>va*-5Zh1pACS{bo=cOa z*O2lG;BuRkcRtxa)C6Z9PSwP+UFoWS(@E(8dLHqYn+Mk!e2tlW*1s7 zphf8h;-iiE`vOfRMXGx7Pd1eqYROS9ng-BsYcfs3Akrv~As?yo!Sp&`=bd}iULvyI zZP5qLG$;s$t@OH2RZm2FHDVZYou_^FgX8V!&YQ`h+}Sk0R8q3_FC|*3E%af^f(Pxv z-;BXNYZ+HVUJGSBfIY)cU^c%6aD{|+Qh&`aaPA7FUvbbU)7$EUi>!mklH#fJm$z`I z)B7{XrmZFn3$5hC>%DaeHJV%gB9@CC%l>?RYZiAT!z5gDA7G;+&9vdKVe1>NJS{MHbyukE!8)A|M+4?(nE-=_?@ph+?gCBz;8|}H;;Kp)%O`|U%3^Usl zLwdSWkKucsr_E?XAM0}lJmZ>lxWfWYd#$)))rPgB)?i(HG3xqUF(@7pZk8B(4iR?s^Z~TMjty!2^L;H1I?$6inh7XIIdj~#E z-}ic-gBHFKX(UH!N(<;yduHjkQl}Wn7LZcfwucHlgW2_+Ag#q7h3h zI~Z|b0;| z51XGHa3Kv&K`k7w_RNJly54+cJx`7l+{9Z*+!Imscg${r-kf^LwbT|}KZ&}t_s^%) zj|B*#jxZ#dfae*Wj5`q-_sP`<9}kFus4}~OP{LkfR~GcabS+E3uJWs1far)Q4gl`O zGhbn)!pbveGAq+yBdC`sY(g;WucdDB;=-==A`Uz+yNjs}Py;sTb0w{|hR`0qN{W66N23Y5zAAXCji*ssdFjqu)$k_LO*>W`lYfGw@@;))huRW<&-$^;r^`1k_959W zJuE~B)zpYuRS{(DF<*!;*RdSRkNCC(w(xTcM{`>PZj=flyi9WeZTs#@t8KMt!cvZJ zH?|EWc&;YDoaoUzNtgF*8!5imy;Lp7=WjsDhqh#=9-jQ1e`Z1E=qGrV$k}}R`f8+` z74C;06ip3FjKkXoGL`BW$fTn6xl;l-GCtI`aL@=~#RJjU>(r{(%aqLm*H0T9wQ7B%Bu!G+4BlM_5cq%_bJ{#7?% z0PF9PwlN)@>8pIZQwFuiA{()VpgLm;ywm(t zYakmj?c(%ksZ$uBZb}4P6UpxUlN3_DHYJf024SOhf)Lzr!|haCxVDctmW9#`NEs~^?0O?tFGNsa=?nbi)+=y&MX@jvd6}MYB zN>EE(<9E!|)F4581OoyOsp#Lep&GIy`Xu+YQUe@i+G6M^Ind-GhOHXomqMpLy56nr z$CtFQw}T}=-MfwkF5u~u&R-iXyb)h}wEpraB*-5TmCqdhBE5m@Z828;>p>GZ8+ zPPKm9b&kAZLis}}{lv1v*;FNcjn%s+mxFh-`+G|!{gUe&2Kgqt?3uu+%=wsj0`I@v zb5YRlt*xHJ5n}gmnfgoi*%Ztc*%G1W+V#dVHs@#;FmhOw)Q%W@i;n28>N;;t(RiAN zQ#Rc7>Pop`FO6Js>-Or%#@!3O0~Nd2{vTb{&7X0XW2&ee3+O;)T~4a67+BdDulMKE z%ekb)frkY>BW7?Vo(5B&`zrh!@*~oj26>)X^xWJT_PVe=tLky?X%4QnI>CIr=TZy4 ztoSUUU~1{GUdi0n>{UNrjVowKzGWf{dJmHNZZ{sCPrXbG=Xd!oKwiGqVhlwZa$f=P~JWLtka;()p2~4Ci zpgG|$z20R6^PPu7cdkpmBD*+!*JChwnjsoNS|?0S8A%Lz_s{Y1D}nxlwyEe}&G6EG z0rqGq$SB^wTBmBibuzrVggQw^J2GI>jr%HbFKmh~(KiaLK5$L{53*Pws9^Q&7VV0m8}donZo_1F*@5}N1%Eq# zHvQuXl`uCz{+Hy9YogT%TUfx9y>9x%>SvC1Ib3pvT@t*Ubu|xs$54aaL7D8t2`QR? zwG!S`QMzB>?0!>>Vj?Yh!l!|=p+!pJ7XJ~%Rmd9wuQ?_cy^w9^ZGYhX{E$TORu`xfNdj=YOQ88Yv$p%9yRb?KR$`OERP`%fadj zmnz`Y_@s4?_3NjJiQ;$@z!cfvS+m_33(WI01 zsu=w~uTMZ#^?`sNR$!uwW#ed89jd)EX$<^#6FQ(;7|j|IZ!VQ?CChfJ9sRgCxINUI zOfdU7^j2M@i&RtHzkNHKZXGEKsYFcEI=&evTKCs`cNAxg$LJyRwJM=k*p?)Wbo1v< z{u_Qq7;tsp+k%Nn#*Cg)b4Fji;3#Anr&RDpLexy)iypB9PFVnR{i@gy`BueCCSDPB zn5-ga#NNlT7W@5i9KXSWr&6GZH#YFsl)x`-lMXV6(b9nQ31@{5KOOK$L-I|$5;h2= zmd%>N{YUAkm*}=f7YJE4)?!z;uy-BFx z`#HVFNNo-ajvos5D*dX2A8=Lv?ki;Ks;qXEXG-WXB+A&7nIw9tOl4uOCCEY1W1G_> z8yNGT&<4We!1nq-S8{)eb*~!s-lOtw8kTc2uEhw zUy?PK+8Cyyz8jO>j@GdWE0QSV4R;hfx)!T{7z@t6)$Z}Sw5V2J(rOLPzQ&%HK@&Yl zKBx#P2l?W~TE8C7KDLCx41>2}mD6l5%MomX(s^xMXeMp*4qt|C2_V!ux;nK%D> z?vum)9;q+sB^BoqQAh$u2^qms@7iBsr~`@Rp*{4CvgXeF(0sZ3yp88?wCv8;l?J`x zx1-<2D3aXth8#wW7Ew;5JT$^&Ke--?T!83sC8}+B*J^XHBq4JJ2_x`R*FuEo!-cSJ zOqbWdu+qB(=ceRQTVr*Nbp+z-c(T{F&*bWO6{CiC=hQ-Gn7TbJ4j*ch5c;m0mp504 zr`tR#pY4vgU@N-HO!CqD(Z7jl+KHRF&5+}{e|NTAD)wW1?sq~02-Ex_+l>Yec5ZVW zr&-#R1e-fI66MGX%)Li$v$*G%(Xml3_zroKLM`k_|EG)Z2k@#AUHBvaByWaj+1G)L zxw(N%_PF0VTiM9~W0?J|RP>~(!O#V49BsP<2u1zTuCxj+dF@`@u3fc$@BVIwc0d*B ztS)fHoI+fCpx_D81&IHFk=^4lV62EZ)uaOoaQ^tGOY6;aicBO0mKG*Ul@U9KHRAPq z8yU8xOtT`t?b&}7;gj^;#HVNLj^I34mdKAV!%(t;KSRaNYlukUKRchNw=4q(>BJ`GV&(<^NTEhHl((+#`tfW+{~8oK1}EFa zyA)C-*aus^BM5{$yepMLELJ_QMBfnoTtYU7-i5h`{JW>J9`{P&G4KPt9w7-0Pt|VO zW>Ds*8kH1Fvd|Cmjio$-7)sxXqP>oajxTcs6A)t1R{3~xv%DqHvTD(mx|s>cFkZV1 zpU%>%y;YGrzbj%OVf6$dex1URX5q5hcmy(hulm?2{^ch>w&O@A{OA1NRh5xa$v2_n z{}>^jznXI^y+W&HCgj+*l!!Ea`knlX+kiOhm!=o>By*8 z_~6ocq}$}oo!`Yh1ecFSPuFvnS!tK)kZESP3)IW;dG}IdvoUd-ApB+8U0s6uu3F`? z0|Ls@yi&KGik>pV6IJIB=S`bJzI5r4Cr3b-#9J5a6LSo2K)+qJ&LUgnqnEx-mSkc< zWJU_a42YFzZ+_1V32!WaUvEJkQHaR0I8vg>7%~og<9_17LdnMny$(7MPLqT7_;%Ny zXKNcFaxdcE!>zT`Wpo42`q*f`V5|ipO2ZalOJWE2CRRx9C*%EgbtH@~PR4eZG>qvj zEjsi`mjY7ZPQ-SywN*zw#5M3OBcY29?%&Jl9uLHd$A$<{{IsKoKD?~p*Dy`o=zL-t zGM%~*lR49Goao#`fF7^zh4>V&qv%B~KnfN<7R#im?6_y%Gg8Hi#KsKB{`1lZ+lV?~ zLo9*vgA2!h?DsRV=+zWF9j}$VaWF=)%T69T3yhfJgzc|i^{Do?y~^!|oF6UW&;@>Q zo~d57^4HL%alE#lVNPMOZ0lp#qu{)8l;|n`(#mGG%L2{fQG|MP-=qvgpetlGhaWOr zR%u$$&Jp92C1V@mhyt45SN@Vk`!SJvRvi1Ac)IJ23VYx6R5!ZC%N{PZjyHUU-=~Ji z*eD)k%GS#udLm&TKkf9}dtnF=F)m3EbJc7)il-qNbER3;Tbj=E;EGFgVcDqeHfHpkUwg6%#%2g|VPxO}80~ zMq^Ejl0t*V>V2I)o$2F_=r>BY^;;ABpH%kkbZgfON%*S%f@FX!l2!>nv+3C}e3er% zjN;r>U;#k&26jmbv>aZ9F)7V!&Oz}(*^iVg?@?ykR|ZuvS>T5J{;FKI(}oEpNsc4a zsl|#>5d2c)I(PlzH!*A%!`?HD^!+oXDpIc8BLY8M9M`ICA3~pio3wQ8*WdPKiHAd0 z-5{4RH}2IyT`us@f}R<2(VMu40m_7>GGn@|)YDvd{CHjdswtCqC74_Z%C_hUF_6)X{w=zQpz+4pVgx&A+kjfUrrbT>I(1&z{!%uvNm&hFe^wi`JIngEk@ zQ8)R{3iDL=tLF+GH=_J}%0K@&M)bp9)UQEI0os@j+_V0eb~U_bnf7XO204P-g8Ij{ z2xzVyqCK}=QR68$=TQC#8o6*754@M_$A26I_BP$koHQnMD(Wej{!+EB!O@Y+|Bw^z z^kX*LPPULsur{K(mKU6~-60S1Z&DD9G50D|f4Yv@TnWP{AaK!*R>Y)?8R;I|d@eM@ zRLv+&j@*`XH|5#dIe!P1sRGg=FvrhoMHGu#&f=^A{z?EE+TH=j#QZj zX0!RIJ|`0t>g?!owW)m-QODJkk8V}FnE(6vr&}WtFz9A;fXuzU?OuWT!M$_;wRiS- zJye0KV3nN7brL^4<84J7V)Y#({RUcJQpmL=UaMz4s`T{dP^3w0`tJF$fY|v_7Z$ds zUjjDX?bk^>DU5ggP9sVz!eoIe42szTiStKREypZv{V zU6cfwEW;>zn3gO^N&@=%e3RGU>SFlbBKTwrwd!zd6nYn2YU&hny282rcEQ;Gww%nI zG}HTvohvV>iLy!&U0H@aq46An8)Jf4Fh8#V55;Mbqs2%l$UxU&HYFcErAnIjqR7p* zOR%cPY&PdfF)_%87Z)bw!jkG5mjW|p(~(U4L0o-Xqh(Z~^q2qFO55@%&VyPIpNoik zlgLT<8((Z>s0gFz(J%8Uh0Valx;u>s(kR3>-l^mPSh=|H;P@t_@$tChZW2jQxO?;E z1dh@{>nP0~ZS0C-MEP%O?x^vfg3rpcUl+1u(hm~DI>i0GJM3JeGguX-?wIddGOb(3 z$>dU4vyzG}W&q{)7TYSqqT?T+%R8W85w~xQK*(2dXh9m}T@l{Dd~3IC&;1-8haGd3 z()(w@sf_aueUQMzuIxV5IKeonE_F0VujOn0)8rU_d42ej3@^Et+R%B%S;C>kb(_eA zf#!kYf1Ct9d>0SM(zjAPvhSk!IddWDj|da4KFq=SL=985@wG{GH|qOhlP*po4`4AC zR3h3Y&Y92Q_$Phi%BL{?p{fku^#Y-tBLZDW4PEb?nteFN;VN0 zOjifpr!N6o^>ynHOVNCsm@f65qIMcSF_R2RNClTsJ!`UC`Bza_;9$|u#}PB3!5*jN zF4pk2*C(5L*;>XE+Ay1(e^d8yjg92*Rm)b4e)ChU)2H30RzvliAx!hPX6m}2LPn%w^rng z5n=k|8fwT(Sm7!g$J+Cz#X1d;(xXD|6s&tOmN1V=&Zn3(SCjqCb@^^nRo0L%s$=4! zWZDLZBKr4U-0KUop9AWX2W9>tE;;5iG@AsRkC(kipKzp#^%Gh;X>JhA)2mZY?5~T_nHtWw`i5_bmZl8WS^O zw`2DQP3L3X6D49XO1qq0%P_Tg?w8>On`PK8DV z16q~}!2`4~NRx~MoW`8wcTOaPQ2SRq?-ib0r->uzjZ9&w*CA)Hbv3?k8P7&zHicc5 z5WEMp^B~L=wHi>`0<^5Afh~h#d!&ob#lL zliZj5c?yJ#lAXUO!^9RI9R0SPr44=Y#F^gu<_yX-{ZD)6{mq8=|MA3D8lzQPf~wk4 zv$n3#She>kLD6`tRYmREtBtL8?NNJFjS{umQlh9CdlNwreDnD?zNh!xAMX$MJkIOf zbIiTQPq~(7ap!I3v~jIIgbHxlGt4lzUkEEO%7bg?64locT(-lDALXQR z10kV=6v+_>vkmk9%HX1=Iu*cV(>#vj)Kuw*4YpyRakYiOGc*;J3lyKz1 zzAZ(^Lg#M&h**y(`RV#rCx5y_`1GvR8PyrrXt%Nz<#M7r=i(uuU4@TOpl+_+N&)iW~i=bHDkd-^9)`%BV{-K7(xwK*XX|WggGyYmEzv--Eh*t0%EG`DAXI`dNb@zYbU7Yp)bxPErBZyjt2;nj>IuM%!jB%vz2+VwxGI<5 z=_b_8E%!2mo9jR8+~F@TJqO_}C34)1tZS!LVavIVZ;?g#^~AHF>V~^PPm6HRzyjeR zSnOND}JlYYx7}hQt5Q%^1yx`T1|WB2Bv_}<;U8m_^Sib z!TP0opwn;S>P67+y}%9*72G3s!J*rPLXK%Q)`ajZxodp8nYe)t$rgp>tZIgS#g#O- zaA|c7>O-n!X z_N5Tf1+kbD6?CTQOV41Agwppv+`(u+NjQCaThXqtkg9 z-jy8UL_hN)*u(QxzDz&nWXG4|T`dW7h2B=!l-IY(+ z_xXmP%?P(CgS@~F1GU*(kN0C$U1DCCmEN(T2VkNwqFO(4)a^|n4P>^Awgbauw5^YK z(xL>^zK*6yTE(Lg%`c;yJ5N3wT=^{AR7KVnHeKW%MPiZ@-#o>GRPGeRp4dMnVh$yG z9{+-?+)d;lU5x|visV)sN4MZTM5AOye&1OyLk|bv_3l^^?J;~)m%nOoH^q&YWC}8n zxZ29G_+5l3rLmK~HaLItbt4`{H0an+xUQ=8%R!sGjmmN5KB*rUB4E?PJ_}g3Uj@sV zv{bucE*fmAL*AMMtx6qyRVAJ(7-`3}%Y|6Mx>P%?zEAs3cT-pg5Na`=;G-n@!;y>U zW-|Fk8^ymFZ9P&#dJC#T9LQ;DehlHIT*-XiIs?@nF=beCmfu*(_RC}x6I zY$^O{G-SGLE@~-V_~UWHOiX4mScT(8M(49@o|j&;+y$b%K1>&6B@ z>iA@?90u^z%l|og!;w5G>giro+J&CW&!_Z_!5qTXGno&)d_UyX#_U*Vl3sLFCEnTv6)sb?0&ss^)Tkgb3CN8L1q??Y5NRqHEhK zR;hC(Fl)7NU>B!&WP{S-tCb~u${)0!u3|g|N#&vZUs5+^@^ziw1jxQc$wzDDl{kYX z)I$?AA8lZb%%@8eF)b-2e!GkhlF$$Kz(EB7GkqISU+Xr+`OBr;2)CX{{k69#)66#~ znoW)j)@a^cu3r7=mzbqEdx$FKExs&zoHwobUfoM68;P>&C8VnMmeFr6706mS9Cb+F z^ZI*}wT&z)mK{*_>}XRW(L&Z28_R0R4p!d7627Iz9|{R2Z=22A>jogaSI2T$;JQjO zO>qgmMO3spzlU{MgH`JM2i*YO5IR$1Hs}<0o`kvMJynzw;?(wdBYl@Lz%Dd7DJbTH zaRx;R&7fA?@E!4+s%_eBp9OPE(OZe=1aIGL{q-?O66@+=J>qzSV}L8QWO0K%@Xqtq zV%Md!UqQUcfUT{=CUkSBw(ZG{eTG*jYas@o!)V*L2_MQ!RJO zZ(;P`5SyOhw%U(#!__P^06m+-w5_;eg>i5|iWpW*<`?T`fBoiy0&L|}qLA4-^xHNt zm0w4&{IGl{<P6shH0+*kPoVVo%jNCSzH z4U&C~ipOdA0bS{9xW0ri`*ilZITxXbX{A>jmYE?Q8CxhKncEsGJBk!^6e@S4)q&RDV*U z*mVXI1op>`L@IIv76uL`r4kZ*Oc>Bu-miwvK4IYx#DH3?4ye}fh_uf|lEK15fOY=m zP0wQE=sRoEd(PB5qh-h2N!Lz$?x;z7CG6^b0qbGX0!BEx3ZPND9G$ zxiaLpc;lhtlw6(IM|iDR{RLr=9kk(18j`F@V3=!X(mh}H*>=D5@SY3mlZF)%E+d#K=d}hlrd_L~W})=4WLd;js+H)gU!^zCLU#<&d4Fv=^bS=U6IC3IyJoxL7`U|C6i(=! zJ{t4D#QUNnSZz4dEInYBp68D&O`kA1R$j)))2Fj2$9M9hX?1z(a%#!jiga;`sampv-kBjiWD>PFk8i6m(EfPSQ*`*f6* z@7&u^L>)h#q*>~bw*jVCwqn)wt#vJ zuebp+V-W<`24%nM9h84{R44Cngf;DGVEt-05b4O+fKeFv{Y_@-5H48r#H*fHdWt&U z1#&}(3xCK;DHKK=M|5quV>FcX>Qy9;*mK!>tvH>QHZ3N4PuyGh#XGQVE!Z=eTJ?%= zv*~rH(ethEjPlEfPBU(=Z=`4G;CmnTAt-JR$CCN9MdRhc^Xf)Q$MIo($?Jw+Sr? zYT^LcW=@KR5ZUgu{K24=jwZXP_V2j_PeLKXoJ4|(L#I4Gn5Fhj=b~wogS@fJN;f*T zO|mj=5^vi6&YOx2I!R>EZ%jVDkm6ugDO3*_Ghcb>@?3VJa-O+)u9kOqMxM#nIp}bQ zb1Bu^VySvys>LPA`-j!O!+D>WPS6o&xj=;p%zwbN;nwxi.map(i=>d[i]); +import{j as u}from"./vendor-markdown-Dek94WS0.js";import{a as v,R as p}from"./vendor-react-V04_Axys.js";import{w}from"./message-components-Nlko-0DO.js";const R="modulepreload",b=function(e){return"/"+e},m={},P=function(a,s,S){let d=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),t=r?.nonce||r?.getAttribute("nonce");d=Promise.allSettled(s.map(o=>{if(o=b(o),o in m)return;m[o]=!0;const c=o.endsWith(".css"),h=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${h}`))return;const n=document.createElement("link");if(n.rel=c?"stylesheet":R,c||(n.as="script"),n.crossOrigin="",n.href=o,t&&n.setAttribute("nonce",t),document.head.appendChild(n),c)return new Promise((y,E)=>{n.addEventListener("load",y),n.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${o}`)))})}))}function l(r){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=r,window.dispatchEvent(t),!t.defaultPrevented)throw r}return d.then(r=>{for(const t of r||[])t.status==="rejected"&&l(t.reason);return a().catch(l)})};var i={},f=v;i.createRoot=f.createRoot,i.hydrateRoot=f.hydrateRoot;const _=p.lazy(()=>P(async()=>{const{default:e}=await import("./App-20LV5x8c.js").then(a=>a.A);return{default:e}},__vite__mapDeps([0,1,2,3])).then(({default:e})=>({default:e})));function A(){return new Promise(e=>{if(document.body)return e(document.body);document.addEventListener("DOMContentLoaded",()=>{e(document.body)})})}A().then(()=>w()).then(()=>{const e=document.createElement("div");e.id="comfyui-copilot-plugin",document.body.append(e),i.createRoot(e).render(u.jsx(p.StrictMode,{children:u.jsx(_,{})}))});export{P as _}; diff --git a/dist/copilot_web/message-components-Nlko-0DO.js b/dist/copilot_web/message-components-Nlko-0DO.js new file mode 100644 index 0000000..b726a98 --- /dev/null +++ b/dist/copilot_web/message-components-Nlko-0DO.js @@ -0,0 +1,128 @@ +import{r as Xe}from"./vendor-react-V04_Axys.js";import{j as T,M as iT,r as nT,a as aT,b as oT,c as sT}from"./vendor-markdown-Dek94WS0.js";let Ct=null;const Dv=location.pathname.split("/").slice(0,-1).join("/");let lT=null;async function cve(){try{await Promise.all([import(Dv+"/scripts/api.js").then(r=>{lT=r?.api}),import(Dv+"/scripts/app.js").then(r=>{Ct=r?.app})])}catch(r){console.error("waitForApp error",r)}}const X$={messages:[],selectedNode:null,installedNodes:[],loading:!1,sessionId:null,showChat:!1};function uT(r,n){switch(n.type){case"SET_MESSAGES":return{...r,messages:n.payload};case"ADD_MESSAGE":return{...r,messages:[...r.messages,n.payload]};case"UPDATE_MESSAGE":return{...r,messages:r.messages.map(e=>e.id===n.payload.id&&!e.finished?n.payload:e)};case"SET_SELECTED_NODE":return{...r,selectedNode:n.payload};case"SET_INSTALLED_NODES":return{...r,installedNodes:n.payload};case"SET_LOADING":return{...r,loading:n.payload};case"SET_SESSION_ID":return{...r,sessionId:n.payload};case"SET_SHOW_CHAT":return{...r,showChat:n.payload};case"CLEAR_MESSAGES":return{...r,messages:[]};default:return r}}const J$=Xe.createContext({state:X$,dispatch:()=>null});function hve({children:r}){const[n,e]=Xe.useReducer(uT,X$);return T.jsx(J$.Provider,{value:{state:n,dispatch:e},children:r})}function dT(){const r=Xe.useContext(J$);if(!r)throw new Error("useChatContext must be used within a ChatProvider");return r}const cT={apiBaseUrl:"https://comfyui-copilot-server.onrender.com"};function ba(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=Math.random()*16|0;return(r==="x"?n:n&3|8).toString(16)})}const Vo=cT.apiBaseUrl,Go=()=>localStorage.getItem("chatApiKey"),Ko=()=>navigator.language||"zh-CN";var Lc;(r=>{async function*n(a,o,s=[],l=null,u=null,d){try{const c=Go(),h=Ko();if(!c){yield{text:`API key is required. Please set your API key first.⚙ +If you don't have an API key, please email us at ComfyUI-Copilot@service.alibaba.com and we will get back to you as soon as possible.`,finished:!0};return}const f=(s||[]).map($=>new Promise((b,E)=>{const S=new FileReader;S.onloadend=()=>b(S.result),S.onerror=E,S.readAsDataURL($)})),v=await Promise.all(f);let p=u?Array.isArray(u)?u:[u]:[];const g=(await fetch(`${Vo}/api/chat/invoke`,{method:"POST",headers:{"Content-Type":"application/json",accept:"application/json","Access-Control-Allow-Origin":"*",Authorization:`Bearer ${c}`,"trace-id":d||ba(),"Accept-Language":h},body:JSON.stringify({session_id:a,prompt:o,mock:!1,intent:l,ext:p,images:v.map(($,b)=>({filename:s[b].name,data:$}))})})).body.getReader();let m="";for(;;){const{done:$,value:b}=await g.read();if($)break;m+=new TextDecoder().decode(b);const E=m.split(` +`);m=E.pop()||"";for(const S of E)S.trim()&&(yield JSON.parse(S))}m.trim()&&(yield JSON.parse(m))}catch(c){throw console.error("Error in streamInvokeServer:",c),alert(c instanceof Error?c.message:"An error occurred while streaming, please refresh the page and try again."),c}}r.streamInvokeServer=n;async function e(a,o){try{const s=Go(),l=Ko(),d=await(await fetch(`${Vo}/api/chat/get_optimized_workflow`,{method:"POST",headers:{"Content-Type":"application/json",accept:"application/json","Access-Control-Allow-Origin":"*",Authorization:`Bearer ${s}`,"trace-id":ba(),"Accept-Language":l},body:JSON.stringify({workflow_id:a,prompt:o})})).json();if(!d.success){const c=d.message||"Failed to get optimized workflow";throw alert(c),new Error(c)}return d.data}catch(s){throw console.error("Error getting optimized workflow:",s),alert(s instanceof Error?s.message:"Failed to get optimized workflow"),s}}r.getOptimizedWorkflow=e;async function t(a){const o=Go(),s=Ko(),u=await(await fetch(`${Vo}/api/chat/get_node_info_by_types`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`,"trace-id":ba(),"Accept-Language":s},body:JSON.stringify({node_types:a})})).json();if(!u.success){const d=u.message||"Failed to get node info by types";throw alert(d),new Error(d)}return u.data}r.batchGetNodeInfo=t;async function i(a){try{const o=Go(),s=Ko(),u=await(await fetch(`${Vo}/api/chat/get_messages_by_session_id?session_id=${a}`,{method:"GET",headers:{accept:"application/json",Authorization:`Bearer ${o}`,"trace-id":ba(),"Accept-Language":s}})).json();if(!u.success){const d=u.message||"Failed to fetch messages";throw alert(d+", please refresh the page and try again."),new Error(d)}return u.data.map(d=>(console.log("msg.ext",d.ext),{id:d.id.toString(),content:d.role==="ai"?JSON.stringify({session_id:a,text:d.content,finished:d.finished||!1,format:d.format||"markdown",ext:d.ext}):d.content,role:d.role,name:d.role==="ai"?"Assistant":void 0,format:d.format||"markdown",finished:d.finished}))}catch(o){throw console.error("Error fetching messages:",o),alert(o instanceof Error?o.message:"Failed to fetch messages, please refresh the page and try again."),o}}r.fetchMessages=i})(Lc||(Lc={}));function Q$({name:r,isUser:n=!1,children:e}){return T.jsx("div",{className:"flex flex-col w-full items-start gap-2 py-2 animate-fadeIn",children:T.jsx("div",{className:"w-full",children:e})})}function hT({title:r,titleId:n,...e},t){return Xe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},e),r?Xe.createElement("title",{id:n},r):null,Xe.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const fT=Xe.forwardRef(hT);function fve({content:r,trace_id:n}){const[e,t]=Xe.useState(!1),[i,a]=Xe.useState(!1),o=async()=>{n&&(await navigator.clipboard.writeText(n),a(!0),setTimeout(()=>a(!1),2e3))};return T.jsx(Q$,{name:"User",isUser:!0,children:T.jsxs("div",{className:"w-full rounded-lg border border-gray-700 py-4 px-4 text-gray-700 text-sm break-words relative",children:[T.jsx("p",{className:"whitespace-pre-wrap leading-snug",children:r}),n&&T.jsxs("div",{className:"absolute bottom-1 right-1.5 cursor-pointer opacity-40 hover:opacity-100 transition-opacity",onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),onClick:o,children:[T.jsx(fT,{className:"h-3.5 w-3.5 text-gray-500 hover:text-gray-700"}),e&&T.jsx("div",{className:"absolute right-0 -top-6 bg-gray-700 text-white text-[10px] py-0.5 px-1.5 rounded shadow-sm whitespace-nowrap",children:i?"Copied!":"Copy trace ID"})]})]})})}const vT=Xe.memo(iT,(r,n)=>r.children===n.children&&r.className===n.className);function vve({content:r,name:n="Assistant",format:e,onOptionClick:t,extComponent:i}){const a=Xe.useRef(),o=()=>{try{const s=JSON.parse(r),l=s.ext?.find(u=>u.type==="guides")?.data||[];return T.jsxs("div",{className:"space-y-3",children:[e==="markdown"&&s.text?T.jsx("div",{ref:a,children:T.jsx(vT,{rehypePlugins:[[nT,{target:"_blank"}],aT],remarkPlugins:[oT,sT],className:`prose prose-xs prose-neutral prose-a:text-accent-foreground/50 break-words [&>*]:!my-1 leading-relaxed text-xs + prose-headings:font-semibold + prose-h1:text-base + prose-h2:text-sm + prose-h3:text-xs + prose-h4:text-xs + prose-p:text-xs + prose-ul:text-xs + prose-ol:text-xs + prose-li:text-xs + prose-code:text-xs + prose-pre:text-xs`,components:{p:({children:u})=>T.jsx("p",{className:"!my-0.5 leading-relaxed text-xs",children:u}),h1:({children:u})=>T.jsx("h1",{className:"text-base font-semibold !my-1",children:u}),h2:({children:u})=>T.jsx("h2",{className:"text-sm font-semibold !my-1",children:u}),h3:({children:u})=>T.jsx("h3",{className:"text-xs font-semibold !my-1",children:u}),h4:({children:u})=>T.jsx("h4",{className:"text-xs font-semibold !my-1",children:u}),table:({children:u})=>T.jsx("table",{className:"border-solid border border-[#979797] w-[100%] text-xs",children:u}),th:({children:u})=>T.jsx("th",{className:"border-solid bg-[#E5E7ED] dark:bg-[#FFFFFF] dark:text-[#000000] border border-[#979797] text-center pt-2 text-xs",children:u}),td:({children:u})=>{if(Array.isArray(u)&&u?.length>0){const d=[],c=u.length;for(let h=0;h"?d.push(T.jsx("br",{})):d.push(u[h]);u=d}return T.jsx("td",{className:"border-solid border border-[#979797] text-center text-xs",children:u})},code:({children:u})=>T.jsxs("div",{className:"relative group",children:[T.jsx("code",{className:"text-xs bg-gray-100 text-gray-800 rounded px-1",children:u}),T.jsx("button",{onClick:()=>navigator.clipboard.writeText(u),className:"absolute -top-2 -right-2 opacity-0 group-hover:opacity-100 transition-opacity bg-white rounded-full p-1 shadow hover:bg-gray-50",children:T.jsxs("svg",{className:"w-3 h-3",fill:"black",viewBox:"0 0 20 20",children:[T.jsx("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),T.jsx("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"})]})})]}),pre:({children:u})=>T.jsx("pre",{className:"text-xs bg-gray-100 text-gray-800 rounded p-2 overflow-x-auto",children:u}),img:({node:u,...d})=>T.jsx("div",{className:"w-1/2 mx-auto",children:T.jsx("img",{...d,loading:"lazy",className:"w-full h-auto block",onError:c=>{console.warn("Image failed to load:",d.src,"Error:",c),c.currentTarget.style.opacity="0"}})})},children:s.text})}):s.text?T.jsx("p",{className:"whitespace-pre-wrap text-left",children:s.text}):null,l.length>0&&T.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:l.map((u,d)=>T.jsx("button",{className:"px-3 py-1.5 bg-white text-gray-700 rounded-md hover:bg-gray-50 transition-colors text-[12px] w-[calc(50%-0.25rem)]",onClick:()=>t?.(u),children:u},d))}),i]})}catch{return T.jsx("p",{className:"whitespace-pre-wrap text-left",children:r})}};return T.jsx(Q$,{name:n,children:T.jsx("div",{className:"w-full rounded-lg bg-gray-50 p-4 text-gray-700 text-sm break-words overflow-hidden",children:o()})})}const pT=LiteGraph;function Z$(r,n={}){const e=pT.createNode(r,"",n);if(!n.pos){const t=Ct.canvas.canvas.getBoundingClientRect(),i=t.width/2/Ct.canvas.ds.scale+-Ct.canvas.ds.offset[0]/Ct.canvas.ds.scale,a=t.height/2/Ct.canvas.ds.scale+-Ct.canvas.ds.offset[1]/Ct.canvas.ds.scale;e.pos=[i-e.size[0]/2,a-e.size[1]/2]}return Ct.graph.add(e),e}function gT({content:r,name:n="Assistant",avatar:e,installedNodes:t}){const i=JSON.parse(r),[a,o]=Xe.useState(null),s=i.ext?.find(h=>h.type==="node")?.data||[],l=h=>t.some(f=>f===h),u=s.filter(h=>l(h.name)),d=s.filter(h=>!l(h.name)),c=h=>h>=1e4?`${(h/1e4).toFixed(1)}w`:h>=1e3?`${(h/1e3).toFixed(1)}k`:h.toString();return T.jsxs("div",{className:"rounded-lg bg-green-50 p-3 text-gray-700 text-xs break-words overflow-visible",children:[u.length>0&&T.jsxs("div",{className:"space-y-3",children:[T.jsx("p",{className:"text-xs font-medium",children:"Installed nodes:"}),T.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:u.map(h=>T.jsxs("div",{className:`w-full p-3 bg-white rounded-lg border border-gray-200 + hover:shadow-sm transition-all duration-200 relative group`,onMouseEnter:()=>o(h.name),onMouseLeave:()=>o(null),children:[T.jsx("h3",{className:"text-[12px] font-medium text-gray-800 mb-4",children:h.name}),T.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[T.jsxs("div",{className:"flex items-center gap-1 text-gray-600",children:[T.jsx("svg",{className:"w-3.5 h-3.5",fill:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{d:"M12 .25a.75.75 0 0 1 .673.418l3.058 6.197 6.839.994a.75.75 0 0 1 .415 1.279l-4.948 4.823 1.168 6.811a.75.75 0 0 1-1.088.791L12 18.347l-6.117 3.216a.75.75 0 0 1-1.088-.79l1.168-6.812-4.948-4.823a.75.75 0 0 1 .416-1.28l6.838-.993L11.327.668A.75.75 0 0 1 12 .25z"})}),T.jsx("span",{children:c(h.github_stars||0)})]}),T.jsxs("button",{className:`px-2 py-1 bg-blue-500 text-white rounded-md + hover:bg-blue-600 transition-colors text-[10px] flex items-center gap-1`,onClick:()=>{const f=Z$(h.name);f&&f.connect(h.from_index,f,h.to_index)},children:[T.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"Add to Canvas"]})]}),a===h.name&&h.description&&T.jsxs("div",{className:`fixed -translate-y-full z-[9999] w-64 p-2 + bg-gray-800 text-white text-xs rounded-md shadow-lg mb-2`,style:{left:"calc(var(--mouse-x, 0) + 16px)",top:"calc(var(--mouse-y, 0) - 8px)"},children:[h.description,T.jsx("div",{className:`absolute -bottom-1 left-1/2 -translate-x-1/2 + border-4 border-transparent border-t-gray-800`})]})]},h.name))})]}),d.length>0&&T.jsxs("div",{className:`space-y-3 ${u.length>0?"mt-4":""}`,children:[T.jsx("p",{className:"text-xs font-medium",children:"Uninstalled nodes:"}),T.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:d.map(h=>T.jsxs("div",{className:`w-full p-3 bg-white rounded-lg border border-gray-200 + hover:shadow-sm transition-all duration-200 relative group`,onMouseEnter:()=>o(h.name),onMouseLeave:()=>o(null),children:[T.jsx("h3",{className:"text-[12px] font-medium text-gray-800 mb-4",children:h.name}),T.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[T.jsxs("div",{className:"flex items-center gap-1 text-gray-600",children:[T.jsx("svg",{className:"w-3.5 h-3.5",fill:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{d:"M12 .25a.75.75 0 0 1 .673.418l3.058 6.197 6.839.994a.75.75 0 0 1 .415 1.279l-4.948 4.823 1.168 6.811a.75.75 0 0 1-1.088.791L12 18.347l-6.117 3.216a.75.75 0 0 1-1.088-.79l1.168-6.812-4.948-4.823a.75.75 0 0 1 .416-1.28l6.838-.993L11.327.668A.75.75 0 0 1 12 .25z"})}),T.jsx("span",{children:c(h.github_stars||0)})]}),T.jsxs("a",{href:h.github_url,target:"_blank",rel:"noopener noreferrer",className:`px-2 py-1 bg-white text-gray-900 rounded-md + border border-gray-900 hover:bg-gray-100 + transition-colors text-[10px] flex items-center gap-1`,children:[T.jsx("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})}),"Download"]})]}),a===h.name&&h.description&&T.jsxs("div",{className:`fixed -translate-y-full z-[9999] w-64 p-2 + bg-gray-800 text-white text-xs rounded-md shadow-lg mb-2`,style:{left:"calc(var(--mouse-x, 0) + 16px)",top:"calc(var(--mouse-y, 0) - 8px)"},children:[h.description,T.jsx("div",{className:`absolute -bottom-1 left-1/2 -translate-x-1/2 + border-4 border-transparent border-t-gray-800`})]})]},h.name))})]})]})}const pve=Object.freeze(Object.defineProperty({__proto__:null,NodeSearch:gT},Symbol.toStringTag,{value:"Module"}));/** + * vis-data + * http://visjs.org/ + * + * Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data. + * + * @version 7.1.9 + * @date 2023-11-24T17:53:34.179Z + * + * @copyright (c) 2011-2017 Almende B.V, http://almende.com + * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs + * + * @license + * vis.js is dual licensed under both + * + * 1. The Apache 2.0 License + * http://www.apache.org/licenses/LICENSE-2.0 + * + * and + * + * 2. The MIT License + * http://opensource.org/licenses/MIT + * + * vis.js may be distributed under either license. + */function El(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}var Tu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function K(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var e1={exports:{}},qo=function(r){return r&&r.Math===Math&&r},pe=qo(typeof globalThis=="object"&&globalThis)||qo(typeof window=="object"&&window)||qo(typeof self=="object"&&self)||qo(typeof Tu=="object"&&Tu)||function(){return this}()||Tu||Function("return this")(),ae=function(r){try{return!!r()}catch{return!0}},yT=ae,Qa=!yT(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),mT=Qa,t1=Function.prototype,Mv=t1.apply,Nv=t1.call,jn=typeof Reflect=="object"&&Reflect.apply||(mT?Nv.bind(Mv):function(){return Nv.apply(Mv,arguments)}),r1=Qa,i1=Function.prototype,zc=i1.call,bT=r1&&i1.bind.bind(zc,zc),ve=r1?bT:function(r){return function(){return zc.apply(r,arguments)}},n1=ve,$T=n1({}.toString),wT=n1("".slice),ei=function(r){return wT($T(r),8,-1)},_T=ei,ET=ve,a1=function(r){if(_T(r)==="Function")return ET(r)},Hc=typeof document=="object"&&document.all,ST=typeof Hc>"u"&&Hc!==void 0,o1={all:Hc,IS_HTMLDDA:ST},s1=o1,OT=s1.all,we=s1.IS_HTMLDDA?function(r){return typeof r=="function"||r===OT}:function(r){return typeof r=="function"},Mi={},TT=ae,Le=!TT(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),kT=Qa,Yo=Function.prototype.call,ze=kT?Yo.bind(Yo):function(){return Yo.apply(Yo,arguments)},Sl={},l1={}.propertyIsEnumerable,u1=Object.getOwnPropertyDescriptor,IT=u1&&!l1.call({1:2},1);Sl.f=IT?function(n){var e=u1(this,n);return!!e&&e.enumerable}:l1;var Ni=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}},PT=ve,CT=ae,xT=ei,ku=Object,AT=PT("".split),Ol=CT(function(){return!ku("z").propertyIsEnumerable(0)})?function(r){return xT(r)==="String"?AT(r,""):ku(r)}:ku,Ln=function(r){return r==null},RT=Ln,DT=TypeError,tf=function(r){if(RT(r))throw new DT("Can't call method on "+r);return r},MT=Ol,NT=tf,cr=function(r){return MT(NT(r))},Fv=we,d1=o1,FT=d1.all,Qe=d1.IS_HTMLDDA?function(r){return typeof r=="object"?r!==null:Fv(r)||r===FT}:function(r){return typeof r=="object"?r!==null:Fv(r)},ge={},Iu=ge,Pu=pe,BT=we,Bv=function(r){return BT(r)?r:void 0},ct=function(r,n){return arguments.length<2?Bv(Iu[r])||Bv(Pu[r]):Iu[r]&&Iu[r][n]||Pu[r]&&Pu[r][n]},jT=ve,Me=jT({}.isPrototypeOf),ti=typeof navigator<"u"&&String(navigator.userAgent)||"",c1=pe,Cu=ti,jv=c1.process,Lv=c1.Deno,zv=jv&&jv.versions||Lv&&Lv.version,Hv=zv&&zv.v8,Kt,Js;Hv&&(Kt=Hv.split("."),Js=Kt[0]>0&&Kt[0]<4?1:+(Kt[0]+Kt[1]));!Js&&Cu&&(Kt=Cu.match(/Edge\/(\d+)/),(!Kt||Kt[1]>=74)&&(Kt=Cu.match(/Chrome\/(\d+)/),Kt&&(Js=+Kt[1])));var zn=Js,Wv=zn,LT=ae,zT=pe,HT=zT.String,Hn=!!Object.getOwnPropertySymbols&&!LT(function(){var r=Symbol("symbol detection");return!HT(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&Wv&&Wv<41}),WT=Hn,h1=WT&&!Symbol.sham&&typeof Symbol.iterator=="symbol",UT=ct,VT=we,GT=Me,KT=h1,qT=Object,Za=KT?function(r){return typeof r=="symbol"}:function(r){var n=UT("Symbol");return VT(n)&>(n.prototype,qT(r))},YT=String,Wn=function(r){try{return YT(r)}catch{return"Object"}},XT=we,JT=Wn,QT=TypeError,_t=function(r){if(XT(r))return r;throw new QT(JT(r)+" is not a function")},ZT=_t,ek=Ln,rf=function(r,n){var e=r[n];return ek(e)?void 0:ZT(e)},xu=ze,Au=we,Ru=Qe,tk=TypeError,rk=function(r,n){var e,t;if(n==="string"&&Au(e=r.toString)&&!Ru(t=xu(e,r))||Au(e=r.valueOf)&&!Ru(t=xu(e,r))||n!=="string"&&Au(e=r.toString)&&!Ru(t=xu(e,r)))return t;throw new tk("Can't convert object to primitive value")},f1={exports:{}},ik=!0,Uv=pe,nk=Object.defineProperty,ak=function(r,n){try{nk(Uv,r,{value:n,configurable:!0,writable:!0})}catch{Uv[r]=n}return n},ok=pe,sk=ak,Vv="__core-js_shared__",lk=ok[Vv]||sk(Vv,{}),nf=lk,Gv=nf;(f1.exports=function(r,n){return Gv[r]||(Gv[r]=n!==void 0?n:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Un=f1.exports,uk=tf,dk=Object,Et=function(r){return dk(uk(r))},ck=ve,hk=Et,fk=ck({}.hasOwnProperty),Ne=Object.hasOwn||function(n,e){return fk(hk(n),e)},vk=ve,pk=0,gk=Math.random(),yk=vk(1 .toString),Tl=function(r){return"Symbol("+(r===void 0?"":r)+")_"+yk(++pk+gk,36)},mk=pe,bk=Un,Kv=Ne,$k=Tl,wk=Hn,_k=h1,un=mk.Symbol,Du=bk("wks"),Ek=_k?un.for||un:un&&un.withoutSetter||$k,me=function(r){return Kv(Du,r)||(Du[r]=wk&&Kv(un,r)?un[r]:Ek("Symbol."+r)),Du[r]},Sk=ze,qv=Qe,Yv=Za,Ok=rf,Tk=rk,kk=me,Ik=TypeError,Pk=kk("toPrimitive"),Ck=function(r,n){if(!qv(r)||Yv(r))return r;var e=Ok(r,Pk),t;if(e){if(n===void 0&&(n="default"),t=Sk(e,r,n),!qv(t)||Yv(t))return t;throw new Ik("Can't convert object to primitive value")}return n===void 0&&(n="number"),Tk(r,n)},xk=Ck,Ak=Za,kl=function(r){var n=xk(r,"string");return Ak(n)?n:n+""},Rk=pe,Xv=Qe,Wc=Rk.document,Dk=Xv(Wc)&&Xv(Wc.createElement),af=function(r){return Dk?Wc.createElement(r):{}},Mk=Le,Nk=ae,Fk=af,v1=!Mk&&!Nk(function(){return Object.defineProperty(Fk("div"),"a",{get:function(){return 7}}).a!==7}),Bk=Le,jk=ze,Lk=Sl,zk=Ni,Hk=cr,Wk=kl,Uk=Ne,Vk=v1,Jv=Object.getOwnPropertyDescriptor;Mi.f=Bk?Jv:function(n,e){if(n=Hk(n),e=Wk(e),Vk)try{return Jv(n,e)}catch{}if(Uk(n,e))return zk(!jk(Lk.f,n,e),n[e])};var Gk=ae,Kk=we,qk=/#|\.prototype\./,eo=function(r,n){var e=Xk[Yk(r)];return e===Qk?!0:e===Jk?!1:Kk(n)?Gk(n):!!n},Yk=eo.normalize=function(r){return String(r).replace(qk,".").toLowerCase()},Xk=eo.data={},Jk=eo.NATIVE="N",Qk=eo.POLYFILL="P",p1=eo,Qv=a1,Zk=_t,eI=Qa,tI=Qv(Qv.bind),ri=function(r,n){return Zk(r),n===void 0?r:eI?tI(r,n):function(){return r.apply(n,arguments)}},St={},rI=Le,iI=ae,g1=rI&&iI(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),nI=Qe,aI=String,oI=TypeError,Rt=function(r){if(nI(r))return r;throw new oI(aI(r)+" is not an object")},sI=Le,lI=v1,uI=g1,Xo=Rt,Zv=kl,dI=TypeError,Mu=Object.defineProperty,cI=Object.getOwnPropertyDescriptor,Nu="enumerable",Fu="configurable",Bu="writable";St.f=sI?uI?function(n,e,t){if(Xo(n),e=Zv(e),Xo(t),typeof n=="function"&&e==="prototype"&&"value"in t&&Bu in t&&!t[Bu]){var i=cI(n,e);i&&i[Bu]&&(n[e]=t.value,t={configurable:Fu in t?t[Fu]:i[Fu],enumerable:Nu in t?t[Nu]:i[Nu],writable:!1})}return Mu(n,e,t)}:Mu:function(n,e,t){if(Xo(n),e=Zv(e),Xo(t),lI)try{return Mu(n,e,t)}catch{}if("get"in t||"set"in t)throw new dI("Accessors not supported");return"value"in t&&(n[e]=t.value),n};var hI=Le,fI=St,vI=Ni,Cr=hI?function(r,n,e){return fI.f(r,n,vI(1,e))}:function(r,n,e){return r[n]=e,r},Jo=pe,pI=jn,gI=a1,yI=we,mI=Mi.f,bI=p1,Xi=ge,$I=ri,Ji=Cr,ep=Ne,wI=function(r){var n=function(e,t,i){if(this instanceof n){switch(arguments.length){case 0:return new r;case 1:return new r(e);case 2:return new r(e,t)}return new r(e,t,i)}return pI(r,this,arguments)};return n.prototype=r.prototype,n},U=function(r,n){var e=r.target,t=r.global,i=r.stat,a=r.proto,o=t?Jo:i?Jo[e]:(Jo[e]||{}).prototype,s=t?Xi:Xi[e]||Ji(Xi,e,{})[e],l=s.prototype,u,d,c,h,f,v,p,y,g;for(h in n)u=bI(t?h:e+(i?".":"#")+h,r.forced),d=!u&&o&&ep(o,h),v=s[h],d&&(r.dontCallGetSet?(g=mI(o,h),p=g&&g.value):p=o[h]),f=d&&p?p:n[h],!(d&&typeof v==typeof f)&&(r.bind&&d?y=$I(f,Jo):r.wrap&&d?y=wI(f):a&&yI(f)?y=gI(f):y=f,(r.sham||f&&f.sham||v&&v.sham)&&Ji(y,"sham",!0),Ji(s,h,y),a&&(c=e+"Prototype",ep(Xi,c)||Ji(Xi,c,{}),Ji(Xi[c],h,f),r.real&&l&&(u||!l[h])&&Ji(l,h,f)))},_I=U,EI=Le,tp=St.f;_I({target:"Object",stat:!0,forced:Object.defineProperty!==tp,sham:!EI},{defineProperty:tp});var SI=ge,y1=SI.Object,OI=e1.exports=function(n,e,t){return y1.defineProperty(n,e,t)};y1.defineProperty.sham&&(OI.sham=!0);var TI=e1.exports,kI=TI,m1=kI,II=m1,PI=II,CI=PI,xI=CI,b1=xI,Il=K(b1),AI=ei,ii=Array.isArray||function(n){return AI(n)==="Array"},RI=Math.ceil,DI=Math.floor,MI=Math.trunc||function(n){var e=+n;return(e>0?DI:RI)(e)},NI=MI,Pl=function(r){var n=+r;return n!==n||n===0?0:NI(n)},FI=Pl,BI=Math.min,jI=function(r){return r>0?BI(FI(r),9007199254740991):0},LI=jI,Dt=function(r){return LI(r.length)},zI=TypeError,HI=9007199254740991,Cl=function(r){if(r>HI)throw zI("Maximum allowed index exceeded");return r},WI=kl,UI=St,VI=Ni,Vn=function(r,n,e){var t=WI(n);t in r?UI.f(r,t,VI(0,e)):r[t]=e},GI=me,KI=GI("toStringTag"),$1={};$1[KI]="z";var of=String($1)==="[object z]",qI=of,YI=we,Rs=ei,XI=me,JI=XI("toStringTag"),QI=Object,ZI=Rs(function(){return arguments}())==="Arguments",eP=function(r,n){try{return r[n]}catch{}},xr=qI?Rs:function(r){var n,e,t;return r===void 0?"Undefined":r===null?"Null":typeof(e=eP(n=QI(r),JI))=="string"?e:ZI?Rs(n):(t=Rs(n))==="Object"&&YI(n.callee)?"Arguments":t},tP=ve,rP=we,Uc=nf,iP=tP(Function.toString);rP(Uc.inspectSource)||(Uc.inspectSource=function(r){return iP(r)});var w1=Uc.inspectSource,nP=ve,aP=ae,_1=we,oP=xr,sP=ct,lP=w1,E1=function(){},uP=[],S1=sP("Reflect","construct"),sf=/^\s*(?:class|function)\b/,dP=nP(sf.exec),cP=!sf.test(E1),ha=function(n){if(!_1(n))return!1;try{return S1(E1,uP,n),!0}catch{return!1}},O1=function(n){if(!_1(n))return!1;switch(oP(n)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return cP||!!dP(sf,lP(n))}catch{return!0}};O1.sham=!0;var xl=!S1||aP(function(){var r;return ha(ha.call)||!ha(Object)||!ha(function(){r=!0})||r})?O1:ha,rp=ii,hP=xl,fP=Qe,vP=me,pP=vP("species"),ip=Array,gP=function(r){var n;return rp(r)&&(n=r.constructor,hP(n)&&(n===ip||rp(n.prototype))?n=void 0:fP(n)&&(n=n[pP],n===null&&(n=void 0))),n===void 0?ip:n},yP=gP,Al=function(r,n){return new(yP(r))(n===0?0:n)},mP=ae,bP=me,$P=zn,wP=bP("species"),to=function(r){return $P>=51||!mP(function(){var n=[],e=n.constructor={};return e[wP]=function(){return{foo:1}},n[r](Boolean).foo!==1})},_P=U,EP=ae,SP=ii,OP=Qe,TP=Et,kP=Dt,np=Cl,ap=Vn,IP=Al,PP=to,CP=me,xP=zn,T1=CP("isConcatSpreadable"),AP=xP>=51||!EP(function(){var r=[];return r[T1]=!1,r.concat()[0]!==r}),RP=function(r){if(!OP(r))return!1;var n=r[T1];return n!==void 0?!!n:SP(r)},DP=!AP||!PP("concat");_P({target:"Array",proto:!0,arity:1,forced:DP},{concat:function(n){var e=TP(this),t=IP(e,0),i=0,a,o,s,l,u;for(a=-1,s=arguments.length;ao;)if(s=i[o++],s!==s)return!0}else for(;a>o;o++)if((r||o in i)&&i[o]===e)return r||o||0;return!r&&-1}},WP={includes:op(!0),indexOf:op(!1)},ro={},UP=ve,ju=Ne,VP=cr,GP=WP.indexOf,KP=ro,sp=UP([].push),k1=function(r,n){var e=VP(r),t=0,i=[],a;for(a in e)!ju(KP,a)&&ju(e,a)&&sp(i,a);for(;n.length>t;)ju(e,a=n[t++])&&(~GP(i,a)||sp(i,a));return i},lf=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qP=k1,YP=lf,Ml=Object.keys||function(n){return qP(n,YP)},XP=Le,JP=g1,QP=St,ZP=Rt,eC=cr,tC=Ml;Rl.f=XP&&!JP?Object.defineProperties:function(n,e){ZP(n);for(var t=eC(e),i=tC(e),a=i.length,o=0,s;a>o;)QP.f(n,s=i[o++],t[s]);return n};var rC=ct,I1=rC("document","documentElement"),iC=Un,nC=Tl,lp=iC("keys"),Nl=function(r){return lp[r]||(lp[r]=nC(r))},aC=Rt,oC=Rl,up=lf,sC=ro,lC=I1,uC=af,dC=Nl,dp=">",cp="<",Vc="prototype",Gc="script",P1=dC("IE_PROTO"),Lu=function(){},C1=function(r){return cp+Gc+dp+r+cp+"/"+Gc+dp},hp=function(r){r.write(C1("")),r.close();var n=r.parentWindow.Object;return r=null,n},cC=function(){var r=uC("iframe"),n="java"+Gc+":",e;return r.style.display="none",lC.appendChild(r),r.src=String(n),e=r.contentWindow.document,e.open(),e.write(C1("document.F=Object")),e.close(),e.F},Qo,Ds=function(){try{Qo=new ActiveXObject("htmlfile")}catch{}Ds=typeof document<"u"?document.domain&&Qo?hp(Qo):cC():hp(Qo);for(var r=up.length;r--;)delete Ds[Vc][up[r]];return Ds()};sC[P1]=!0;var Bi=Object.create||function(n,e){var t;return n!==null?(Lu[Vc]=aC(n),t=new Lu,Lu[Vc]=null,t[P1]=n):t=Ds(),e===void 0?t:oC.f(t,e)},io={},hC=k1,fC=lf,vC=fC.concat("length","prototype");io.f=Object.getOwnPropertyNames||function(n){return hC(n,vC)};var uf={},fp=Dl,pC=Dt,gC=Vn,yC=Array,mC=Math.max,x1=function(r,n,e){for(var t=pC(r),i=fp(n,t),a=fp(e===void 0?t:e,t),o=yC(mC(a-i,0)),s=0;iy;y++)if((s||y in f)&&($=f[y],b=v($,y,h),r))if(n)m[y]=b;else if(b)switch(r){case 3:return!0;case 5:return $;case 6:return y;case 2:mp(m,$)}else switch(r){case 4:return!1;case 7:mp(m,$)}return a?-1:t||i?i:m}},qn={forEach:Dr(0),map:Dr(1),filter:Dr(2),some:Dr(3),every:Dr(4),find:Dr(5),findIndex:Dr(6),filterReject:Dr(7)},Fl=U,oo=pe,cf=ze,ax=ve,On=Le,Tn=Hn,ox=ae,Be=Ne,sx=Me,qc=Rt,Bl=cr,hf=kl,lx=Fi,Yc=Ni,Na=Bi,N1=Ml,ux=io,F1=uf,dx=no,B1=Mi,j1=St,cx=Rl,L1=Sl,bp=Gn,hx=df,ff=Un,fx=Nl,z1=ro,$p=Tl,vx=me,px=ao,gx=_e,yx=D1,mx=ji,H1=Kn,jl=qn.forEach,gt=fx("hidden"),Ll="Symbol",Fa="prototype",bx=H1.set,wp=H1.getterFor(Ll),Jt=Object[Fa],gi=oo.Symbol,$a=gi&&gi[Fa],$x=oo.RangeError,wx=oo.TypeError,Wu=oo.QObject,W1=B1.f,yi=j1.f,U1=F1.f,_x=L1.f,V1=ax([].push),Tr=ff("symbols"),so=ff("op-symbols"),Ex=ff("wks"),Xc=!Wu||!Wu[Fa]||!Wu[Fa].findChild,G1=function(r,n,e){var t=W1(Jt,n);t&&delete Jt[n],yi(r,n,e),t&&r!==Jt&&yi(Jt,n,t)},Jc=On&&ox(function(){return Na(yi({},"a",{get:function(){return yi(this,"a",{value:7}).a}})).a!==7})?G1:yi,Uu=function(r,n){var e=Tr[r]=Na($a);return bx(e,{type:Ll,tag:r,description:n}),On||(e.description=n),e},zl=function(n,e,t){n===Jt&&zl(so,e,t),qc(n);var i=hf(e);return qc(t),Be(Tr,i)?(t.enumerable?(Be(n,gt)&&n[gt][i]&&(n[gt][i]=!1),t=Na(t,{enumerable:Yc(0,!1)})):(Be(n,gt)||yi(n,gt,Yc(1,{})),n[gt][i]=!0),Jc(n,i,t)):yi(n,i,t)},vf=function(n,e){qc(n);var t=Bl(e),i=N1(t).concat(X1(t));return jl(i,function(a){(!On||cf(K1,t,a))&&zl(n,a,t[a])}),n},Sx=function(n,e){return e===void 0?Na(n):vf(Na(n),e)},K1=function(n){var e=hf(n),t=cf(_x,this,e);return this===Jt&&Be(Tr,e)&&!Be(so,e)?!1:t||!Be(this,e)||!Be(Tr,e)||Be(this,gt)&&this[gt][e]?t:!0},q1=function(n,e){var t=Bl(n),i=hf(e);if(!(t===Jt&&Be(Tr,i)&&!Be(so,i))){var a=W1(t,i);return a&&Be(Tr,i)&&!(Be(t,gt)&&t[gt][i])&&(a.enumerable=!0),a}},Y1=function(n){var e=U1(Bl(n)),t=[];return jl(e,function(i){!Be(Tr,i)&&!Be(z1,i)&&V1(t,i)}),t},X1=function(r){var n=r===Jt,e=U1(n?so:Bl(r)),t=[];return jl(e,function(i){Be(Tr,i)&&(!n||Be(Jt,i))&&V1(t,Tr[i])}),t};Tn||(gi=function(){if(sx($a,this))throw new wx("Symbol is not a constructor");var n=!arguments.length||arguments[0]===void 0?void 0:lx(arguments[0]),e=$p(n),t=function(i){var a=this===void 0?oo:this;a===Jt&&cf(t,so,i),Be(a,gt)&&Be(a[gt],e)&&(a[gt][e]=!1);var o=Yc(1,i);try{Jc(a,e,o)}catch(s){if(!(s instanceof $x))throw s;G1(a,e,o)}};return On&&Xc&&Jc(Jt,e,{configurable:!0,set:t}),Uu(e,n)},$a=gi[Fa],bp($a,"toString",function(){return wp(this).tag}),bp(gi,"withoutSetter",function(r){return Uu($p(r),r)}),L1.f=K1,j1.f=zl,cx.f=vf,B1.f=q1,ux.f=F1.f=Y1,dx.f=X1,px.f=function(r){return Uu(vx(r),r)},On&&hx($a,"description",{configurable:!0,get:function(){return wp(this).description}}));Fl({global:!0,constructor:!0,wrap:!0,forced:!Tn,sham:!Tn},{Symbol:gi});jl(N1(Ex),function(r){gx(r)});Fl({target:Ll,stat:!0,forced:!Tn},{useSetter:function(){Xc=!0},useSimple:function(){Xc=!1}});Fl({target:"Object",stat:!0,forced:!Tn,sham:!On},{create:Sx,defineProperty:zl,defineProperties:vf,getOwnPropertyDescriptor:q1});Fl({target:"Object",stat:!0,forced:!Tn},{getOwnPropertyNames:Y1});yx();mx(gi,Ll);z1[gt]=!0;var Ox=Hn,J1=Ox&&!!Symbol.for&&!!Symbol.keyFor,Tx=U,kx=ct,Ix=Ne,Px=Fi,Q1=Un,Cx=J1,Vu=Q1("string-to-symbol-registry"),xx=Q1("symbol-to-string-registry");Tx({target:"Symbol",stat:!0,forced:!Cx},{for:function(r){var n=Px(r);if(Ix(Vu,n))return Vu[n];var e=kx("Symbol")(n);return Vu[n]=e,xx[e]=n,e}});var Ax=U,Rx=Ne,Dx=Za,Mx=Wn,Nx=Un,Fx=J1,_p=Nx("symbol-to-string-registry");Ax({target:"Symbol",stat:!0,forced:!Fx},{keyFor:function(n){if(!Dx(n))throw new TypeError(Mx(n)+" is not a symbol");if(Rx(_p,n))return _p[n]}});var Bx=ve,lo=Bx([].slice),jx=ve,Ep=ii,Lx=we,Sp=ei,zx=Fi,Op=jx([].push),Hx=function(r){if(Lx(r))return r;if(Ep(r)){for(var n=r.length,e=[],t=0;t=n.length)return r.target=void 0,rs(void 0,!0);switch(r.kind){case"keys":return rs(e,!1);case"values":return rs(n[e],!1)}return rs([e,n[e]],!1)},"values");jp.Arguments=jp.Array;var wR={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},_R=wR,ER=pe,SR=xr,OR=Cr,Lp=Yn,TR=me,zp=TR("toStringTag");for(var Yu in _R){var Hp=ER[Yu],Xu=Hp&&Hp.prototype;Xu&&SR(Xu)!==zp&&OR(Xu,zp,Yu),Lp[Yu]=Lp.Array}var kR=SA,cw=kR,IR=me,PR=St.f,Wp=IR("metadata"),Up=Function.prototype;Up[Wp]===void 0&&PR(Up,Wp,{value:null});var CR=_e;CR("asyncDispose");var xR=_e;xR("dispose");var AR=_e;AR("metadata");var RR=cw,DR=RR,MR=ct,NR=ve,mf=MR("Symbol"),FR=mf.keyFor,BR=NR(mf.prototype.valueOf),hw=mf.isRegisteredSymbol||function(n){try{return FR(BR(n))!==void 0}catch{return!1}},jR=U,LR=hw;jR({target:"Symbol",stat:!0},{isRegisteredSymbol:LR});var zR=Un,fw=ct,HR=ve,WR=Za,UR=me,el=fw("Symbol"),Vp=el.isWellKnownSymbol,vw=fw("Object","getOwnPropertyNames"),VR=HR(el.prototype.valueOf),Gp=zR("wks");for(var Ju=0,Kp=vw(el),GR=Kp.length;Ju=a?r?"":void 0:(o=Yp(t,i),o<55296||o>56319||i+1===a||(s=Yp(t,i+1))<56320||s>57343?r?uD(t,i):o:r?dD(t,i,i+2):(o-55296<<10)+(s-56320)+65536)}},cD={codeAt:Xp(!1),charAt:Xp(!0)},hD=cD.charAt,fD=Fi,gw=Kn,vD=gf,Jp=yf,yw="String Iterator",pD=gw.set,gD=gw.getterFor(yw);vD(String,"String",function(r){pD(this,{type:yw,string:fD(r),index:0})},function(){var n=gD(this),e=n.string,t=n.index,i;return t>=e.length?Jp(void 0,!0):(i=hD(e,t),n.index+=i.length,Jp(i,!1))});var yD=ao,mD=yD.f("iterator"),bD=mD,mw=bD,$D=mw,wD=$D,_D=wD,ED=_D,bw=ED,SD=K(bw);function kn(r){"@babel/helpers - typeof";return kn=typeof dn=="function"&&typeof SD=="symbol"?function(n){return typeof n}:function(n){return n&&typeof dn=="function"&&n.constructor===dn&&n!==dn.prototype?"symbol":typeof n},kn(r)}var OD=ao,TD=OD.f("toPrimitive"),kD=TD,ID=kD,PD=ID,CD=PD,xD=CD,AD=xD,RD=AD,DD=K(RD);function MD(r,n){if(kn(r)!=="object"||r===null)return r;var e=r[DD];if(e!==void 0){var t=e.call(r,n||"default");if(kn(t)!=="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(r)}function $w(r){var n=MD(r,"string");return kn(n)==="symbol"?n:String(n)}function Qp(r,n){for(var e=0;e=0:s>l;l+=u)l in o&&(i=e(i,o[l],l,a));return i}},nM={left:tg(!1),right:tg(!0)},aM=ae,Ul=function(r,n){var e=[][r];return!!e&&aM(function(){e.call(null,n||function(){return 1},1)})},oM=pe,sM=ei,co=sM(oM.process)==="process",lM=U,uM=nM.left,dM=Ul,rg=zn,cM=co,hM=!cM&&rg>79&&rg<83,fM=hM||!dM("reduce");lM({target:"Array",proto:!0,forced:fM},{reduce:function(n){var e=arguments.length;return uM(this,n,e,e>1?arguments[1]:void 0)}});var vM=it,pM=vM("Array","reduce"),gM=Me,yM=pM,ed=Array.prototype,mM=function(r){var n=r.reduce;return r===ed||gM(ed,r)&&n===ed.reduce?yM:n},bM=mM,$M=bM,wM=$M,_M=K(wM),EM=U,SM=qn.filter,OM=to,TM=OM("filter");EM({target:"Array",proto:!0,forced:!TM},{filter:function(n){return SM(this,n,arguments.length>1?arguments[1]:void 0)}});var kM=it,IM=kM("Array","filter"),PM=Me,CM=IM,td=Array.prototype,xM=function(r){var n=r.filter;return r===td||PM(td,r)&&n===td.filter?CM:n},AM=xM,RM=AM,DM=RM,cn=K(DM),MM=U,NM=qn.map,FM=to,BM=FM("map");MM({target:"Array",proto:!0,forced:!BM},{map:function(n){return NM(this,n,arguments.length>1?arguments[1]:void 0)}});var jM=it,LM=jM("Array","map"),zM=Me,HM=LM,rd=Array.prototype,WM=function(r){var n=r.map;return r===rd||zM(rd,r)&&n===rd.map?HM:n},UM=WM,VM=UM,GM=VM,qt=K(GM),KM=ii,qM=Dt,YM=Cl,XM=ri,Tw=function(r,n,e,t,i,a,o,s){for(var l=i,u=0,d=o?XM(o,s):!1,c,h;u0&&KM(c)?(h=qM(c),l=Tw(r,n,c,h,l,a-1)-1):(YM(l+1),r[l]=c),l++),u++;return l},JM=Tw,QM=U,ZM=JM,eN=_t,tN=Et,rN=Dt,iN=Al;QM({target:"Array",proto:!0},{flatMap:function(n){var e=tN(this),t=rN(e),i;return eN(n),i=iN(e,0),i.length=ZM(i,e,e,t,0,1,n,arguments.length>1?arguments[1]:void 0),i}});var nN=it;nN("Array","flatMap");var aN=ze,ig=Rt,oN=rf,kw=function(r,n,e){var t,i;ig(r);try{if(t=oN(r,"return"),!t){if(n==="throw")throw e;return e}t=aN(t,r)}catch(a){i=!0,t=a}if(n==="throw")throw e;if(i)throw t;return ig(t),e},sN=Rt,lN=kw,uN=function(r,n,e,t){try{return t?n(sN(e)[0],e[1]):n(e)}catch(i){lN(r,"throw",i)}},dN=me,cN=Yn,hN=dN("iterator"),fN=Array.prototype,Iw=function(r){return r!==void 0&&(cN.Array===r||fN[hN]===r)},vN=xr,ng=rf,pN=Ln,gN=Yn,yN=me,mN=yN("iterator"),Vl=function(r){if(!pN(r))return ng(r,mN)||ng(r,"@@iterator")||gN[vN(r)]},bN=ze,$N=_t,wN=Rt,_N=Wn,EN=Vl,SN=TypeError,wf=function(r,n){var e=arguments.length<2?EN(r):n;if($N(e))return wN(bN(e,r));throw new SN(_N(r)+" is not iterable")},ON=ri,TN=ze,kN=Et,IN=uN,PN=Iw,CN=xl,xN=Dt,ag=Vn,AN=wf,RN=Vl,og=Array,DN=function(n){var e=kN(n),t=CN(this),i=arguments.length,a=i>1?arguments[1]:void 0,o=a!==void 0;o&&(a=ON(a,i>2?arguments[2]:void 0));var s=RN(e),l=0,u,d,c,h,f,v;if(s&&!(this===og&&PN(s)))for(h=AN(e,s),f=h.next,d=t?new this:[];!(c=TN(f,h)).done;l++)v=o?IN(h,a,[c.value,l],!0):c.value,ag(d,l,v);else for(u=xN(e),d=t?new this(u):og(u);u>l;l++)v=o?a(e[l],l):e[l],ag(d,l,v);return d.length=l,d},MN=me,Pw=MN("iterator"),Cw=!1;try{var NN=0,sg={next:function(){return{done:!!NN++}},return:function(){Cw=!0}};sg[Pw]=function(){return this},Array.from(sg,function(){throw 2})}catch{}var xw=function(r,n){try{if(!n&&!Cw)return!1}catch{return!1}var e=!1;try{var t={};t[Pw]=function(){return{next:function(){return{done:e=!0}}}},r(t)}catch{}return e},FN=U,BN=DN,jN=xw,LN=!jN(function(r){Array.from(r)});FN({target:"Array",stat:!0,forced:LN},{from:BN});var zN=ge,HN=zN.Array.from,WN=HN,Aw=WN,UN=Aw,_f=K(UN),VN=Vl,GN=VN,KN=GN,qN=KN,YN=qN,XN=YN,JN=XN,QN=JN,Rw=QN,Dw=K(Rw),ZN=Rw,Ef=K(ZN),e2=U,t2=ii;e2({target:"Array",stat:!0},{isArray:t2});var r2=ge,i2=r2.Array.isArray,n2=i2,Mw=n2,a2=Mw,o2=a2,s2=o2,l2=s2,u2=l2,Nw=K(u2);function d2(r){if(Nw(r))return r}var c2=Le,h2=ii,f2=TypeError,v2=Object.getOwnPropertyDescriptor,p2=c2&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(r){return r instanceof TypeError}}(),Fw=p2?function(r,n){if(h2(r)&&!v2(r,"length").writable)throw new f2("Cannot set read only .length");return r.length=n}:function(r,n){return r.length=n},g2=U,y2=Et,m2=Dt,b2=Fw,$2=Cl,w2=ae,_2=w2(function(){return[].push.call({length:4294967296},1)!==4294967297}),E2=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(r){return r instanceof TypeError}},S2=_2||!E2();g2({target:"Array",proto:!0,arity:1,forced:S2},{push:function(n){var e=y2(this),t=m2(e),i=arguments.length;$2(t+i);for(var a=0;ar.length)&&(n=r.length);for(var e=0,t=new Array(n);e1?arguments[1]:void 0)},eB=U,dg=ZF;eB({target:"Array",proto:!0,forced:[].forEach!==dg},{forEach:dg});var tB=it,rB=tB("Array","forEach"),iB=rB,nB=iB,aB=xr,oB=Ne,sB=Me,lB=nB,sd=Array.prototype,uB={DOMTokenList:!0,NodeList:!0},Uw=function(r){var n=r.forEach;return r===sd||sB(sd,r)&&n===sd.forEach||oB(uB,aB(r))?lB:n},dB=Uw,Ti=K(dB),cB=U,hB=ve,fB=ii,vB=hB([].reverse),cg=[1,2];cB({target:"Array",proto:!0,forced:String(cg)===String(cg.reverse())},{reverse:function(){return fB(this)&&(this.length=this.length),vB(this)}});var pB=it,gB=pB("Array","reverse"),yB=Me,mB=gB,ld=Array.prototype,bB=function(r){var n=r.reverse;return r===ld||yB(ld,r)&&n===ld.reverse?mB:n},$B=bB,Vw=$B,wB=Vw,_B=K(wB),hg=Wn,EB=TypeError,Gw=function(r,n){if(!delete r[n])throw new EB("Cannot delete property "+hg(n)+" of "+hg(r))},SB=U,OB=Et,TB=Dl,kB=Pl,IB=Dt,PB=Fw,CB=Cl,xB=Al,AB=Vn,ud=Gw,RB=to,DB=RB("splice"),MB=Math.max,NB=Math.min;SB({target:"Array",proto:!0,forced:!DB},{splice:function(n,e){var t=OB(this),i=IB(t),a=TB(n,i),o=arguments.length,s,l,u,d,c,h;for(o===0?s=l=0:o===1?(s=0,l=i-a):(s=o-2,l=NB(MB(kB(e),0),i-a)),CB(i+s-l),u=xB(t,l),d=0;di-l+s;d--)ud(t,d-1)}else if(s>l)for(d=i-l;d>a;d--)c=d+l-1,h=d+s-1,c in t?t[h]=t[c]:ud(t,h);for(d=0;da;)for(var l=JB(arguments[a++]),u=o?QB(cd(l),o(l)):cd(l),d=u.length,c=0,h;d>c;)h=u[c++],(!fg||GB(s,l,h))&&(t[h]=l[h]);return t}:Zi,ej=U,pg=ZB;ej({target:"Object",stat:!0,arity:2,forced:Object.assign!==pg},{assign:pg});var tj=ge,rj=tj.Object.assign,ij=rj,nj=ij,aj=nj,oj=K(aj),sj=U,lj=ae,uj=Et,qw=Hl,dj=aw,cj=lj(function(){qw(1)});sj({target:"Object",stat:!0,forced:cj,sham:!dj},{getPrototypeOf:function(n){return qw(uj(n))}});var hj=ge,fj=hj.Object.getPrototypeOf,vj=fj,pj=vj,gj=U,yj=Le,mj=Bi;gj({target:"Object",stat:!0,sham:!yj},{create:mj});var bj=ge,$j=bj.Object,wj=function(n,e){return $j.create(n,e)},_j=wj,Yw=_j,Ej=Yw,Sj=K(Ej),rh=ge,Oj=jn;rh.JSON||(rh.JSON={stringify:JSON.stringify});var Tj=function(n,e,t){return Oj(rh.JSON.stringify,null,arguments)},kj=Tj,Ij=kj,Pj=Ij,Cj=K(Pj),xj=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",Aj=TypeError,Xw=function(r,n){if(re,o=Dj(t)?t:jj(t),s=a?Fj(arguments,e):[],l=a?function(){Rj(o,this,s)}:o;return n?r(l,i):r(l)}:r},zj=U,Zw=pe,Hj=Qw,gg=Hj(Zw.setInterval,!0);zj({global:!0,bind:!0,forced:Zw.setInterval!==gg},{setInterval:gg});var Wj=U,e0=pe,Uj=Qw,yg=Uj(e0.setTimeout,!0);Wj({global:!0,bind:!0,forced:e0.setTimeout!==yg},{setTimeout:yg});var Vj=ge,Gj=Vj.setTimeout,Kj=Gj,qj=K(Kj),t0={exports:{}};(function(r){function n(t){if(t)return e(t);this._callbacks=new Map}function e(t){return Object.assign(t,n.prototype),t._callbacks=new Map,t}n.prototype.on=function(t,i){const a=this._callbacks.get(t)??[];return a.push(i),this._callbacks.set(t,a),this},n.prototype.once=function(t,i){const a=(...o)=>{this.off(t,a),i.apply(this,o)};return a.fn=i,this.on(t,a),this},n.prototype.off=function(t,i){if(t===void 0&&i===void 0)return this._callbacks.clear(),this;if(i===void 0)return this._callbacks.delete(t),this;const a=this._callbacks.get(t);if(a){for(const[o,s]of a.entries())if(s===i||s.fn===i){a.splice(o,1);break}a.length===0?this._callbacks.delete(t):this._callbacks.set(t,a)}return this},n.prototype.emit=function(t,...i){const a=this._callbacks.get(t);if(a){const o=[...a];for(const s of o)s.apply(this,i)}return this},n.prototype.listeners=function(t){return this._callbacks.get(t)??[]},n.prototype.listenerCount=function(t){if(t)return this.listeners(t).length;let i=0;for(const a of this._callbacks.values())i+=a.length;return i},n.prototype.hasListeners=function(t){return this.listenerCount(t)>0},n.prototype.addEventListener=n.prototype.on,n.prototype.removeListener=n.prototype.off,n.prototype.removeEventListener=n.prototype.off,n.prototype.removeAllListeners=n.prototype.off,r.exports=n})(t0);var Yj=t0.exports,Xj=K(Yj);/*! Hammer.JS - v2.0.17-rc - 2019-12-16 + * http://naver.github.io/egjs + * + * Forked By Naver egjs + * Copyright (c) hammerjs + * Licensed under the MIT license */function Zt(){return Zt=Object.assign||function(r){for(var n=1;n"u"?{style:{}}:document.createElement("div"),Qj="function",hn=Math.round,Ii=Math.abs,Tf=Date.now;function Yl(r,n){for(var e,t,i=n[0].toUpperCase()+n.slice(1),a=0;a"u"?mr={}:mr=window;var r0=Yl(Jj.style,"touchAction"),i0=r0!==void 0;function Zj(){if(!i0)return!1;var r={},n=mr.CSS&&mr.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(e){return r[e]=n?mr.CSS.supports("touch-action",e):!0}),r}var n0="compute",a0="auto",nh="manipulation",mi="none",Ba="pan-x",ja="pan-y",ns=Zj(),eL=/mobile|tablet|ip(ad|hone|od)|android/i,o0="ontouchstart"in mr,tL=Yl(mr,"PointerEvent")!==void 0,rL=o0&&eL.test(navigator.userAgent),ho="touch",iL="pen",kf="mouse",nL="kinect",aL=25,ut=1,Li=2,Ae=4,$t=8,tl=1,fo=2,vo=4,po=8,In=16,lr=fo|vo,bi=po|In,s0=lr|bi,l0=["x","y"],rl=["clientX","clientY"];function br(r,n,e){var t;if(r)if(r.forEach)r.forEach(n,e);else if(r.length!==void 0)for(t=0;t-1}function oL(r){if(fi(r,mi))return mi;var n=fi(r,Ba),e=fi(r,ja);return n&&e?mi:n||e?n?Ba:ja:fi(r,nh)?nh:a0}var u0=function(){function r(e,t){this.manager=e,this.set(t)}var n=r.prototype;return n.set=function(t){t===n0&&(t=this.compute()),i0&&this.manager.element.style&&ns[t]&&(this.manager.element.style[r0]=t),this.actions=t.toLowerCase().trim()},n.update=function(){this.set(this.manager.options.touchAction)},n.compute=function(){var t=[];return br(this.manager.recognizers,function(i){Xl(i.options.enable,[i])&&(t=t.concat(i.getTouchAction()))}),oL(t.join(" "))},n.preventDefaults=function(t){var i=t.srcEvent,a=t.offsetDirection;if(this.manager.session.prevented){i.preventDefault();return}var o=this.actions,s=fi(o,mi)&&!ns[mi],l=fi(o,ja)&&!ns[ja],u=fi(o,Ba)&&!ns[Ba];if(s){var d=t.pointers.length===1,c=t.distance<2,h=t.deltaTime<250;if(d&&c&&h)return}if(!(u&&l)&&(s||l&&a&lr||u&&a&bi))return this.preventSrc(i)},n.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},r}();function If(r,n){for(;r;){if(r===n)return!0;r=r.parentNode}return!1}function d0(r){var n=r.length;if(n===1)return{x:hn(r[0].clientX),y:hn(r[0].clientY)};for(var e=0,t=0,i=0;i=Ii(n)?r<0?fo:vo:n<0?po:In}function sL(r,n){var e=n.center,t=r.offsetDelta||{},i=r.prevDelta||{},a=r.prevInput||{};(n.eventType===ut||a.eventType===Ae)&&(i=r.prevDelta={x:a.deltaX||0,y:a.deltaY||0},t=r.offsetDelta={x:e.x,y:e.y}),n.deltaX=i.x+(e.x-t.x),n.deltaY=i.y+(e.y-t.y)}function h0(r,n,e){return{x:n/r||0,y:e/r||0}}function lL(r,n){return il(n[0],n[1],rl)/il(r[0],r[1],rl)}function uL(r,n){return ah(n[1],n[0],rl)+ah(r[1],r[0],rl)}function dL(r,n){var e=r.lastInterval||n,t=n.timeStamp-e.timeStamp,i,a,o,s;if(n.eventType!==$t&&(t>aL||e.velocity===void 0)){var l=n.deltaX-e.deltaX,u=n.deltaY-e.deltaY,d=h0(t,l,u);a=d.x,o=d.y,i=Ii(d.x)>Ii(d.y)?d.x:d.y,s=c0(l,u),r.lastInterval=n}else i=e.velocity,a=e.velocityX,o=e.velocityY,s=e.direction;n.velocity=i,n.velocityX=a,n.velocityY=o,n.direction=s}function cL(r,n){var e=r.session,t=n.pointers,i=t.length;e.firstInput||(e.firstInput=bg(n)),i>1&&!e.firstMultiple?e.firstMultiple=bg(n):i===1&&(e.firstMultiple=!1);var a=e.firstInput,o=e.firstMultiple,s=o?o.center:a.center,l=n.center=d0(t);n.timeStamp=Tf(),n.deltaTime=n.timeStamp-a.timeStamp,n.angle=ah(s,l),n.distance=il(s,l),sL(e,n),n.offsetDirection=c0(n.deltaX,n.deltaY);var u=h0(n.deltaTime,n.deltaX,n.deltaY);n.overallVelocityX=u.x,n.overallVelocityY=u.y,n.overallVelocity=Ii(u.x)>Ii(u.y)?u.x:u.y,n.scale=o?lL(o.pointers,t):1,n.rotation=o?uL(o.pointers,t):0,n.maxPointers=e.prevInput?n.pointers.length>e.prevInput.maxPointers?n.pointers.length:e.prevInput.maxPointers:n.pointers.length,dL(e,n);var d=r.element,c=n.srcEvent,h;c.composedPath?h=c.composedPath()[0]:c.path?h=c.path[0]:h=c.target,If(h,d)&&(d=h),n.target=d}function hL(r,n,e){var t=e.pointers.length,i=e.changedPointers.length,a=n&ut&&t-i===0,o=n&(Ae|$t)&&t-i===0;e.isFirst=!!a,e.isFinal=!!o,a&&(r.session={}),e.eventType=n,cL(r,e),r.emit("hammer.input",e),r.recognize(e),r.session.prevInput=e}function La(r){return r.trim().split(/\s+/g)}function Sa(r,n,e){br(La(n),function(t){r.addEventListener(t,e,!1)})}function Oa(r,n,e){br(La(n),function(t){r.removeEventListener(t,e,!1)})}function $g(r){var n=r.ownerDocument||r;return n.defaultView||n.parentWindow||window}var Xn=function(){function r(e,t){var i=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(a){Xl(e.options.enable,[e])&&i.handler(a)},this.init()}var n=r.prototype;return n.handler=function(){},n.init=function(){this.evEl&&Sa(this.element,this.evEl,this.domHandler),this.evTarget&&Sa(this.target,this.evTarget,this.domHandler),this.evWin&&Sa($g(this.element),this.evWin,this.domHandler)},n.destroy=function(){this.evEl&&Oa(this.element,this.evEl,this.domHandler),this.evTarget&&Oa(this.target,this.evTarget,this.domHandler),this.evWin&&Oa($g(this.element),this.evWin,this.domHandler)},r}();function Pi(r,n,e){if(r.indexOf&&!e)return r.indexOf(n);for(var t=0;tl[n]}):t=t.sort()),t}var pL={touchstart:ut,touchmove:Li,touchend:Ae,touchcancel:$t},gL="touchstart touchmove touchend touchcancel",Cf=function(r){Wt(n,r);function n(){var t;return n.prototype.evTarget=gL,t=r.apply(this,arguments)||this,t.targetIds={},t}var e=n.prototype;return e.handler=function(i){var a=pL[i.type],o=yL.call(this,i,a);o&&this.callback(this.manager,a,{pointers:o[0],changedPointers:o[1],pointerType:ho,srcEvent:i})},n}(Xn);function yL(r,n){var e=za(r.touches),t=this.targetIds;if(n&(ut|Li)&&e.length===1)return t[e[0].identifier]=!0,[e,e];var i,a,o=za(r.changedTouches),s=[],l=this.target;if(a=e.filter(function(u){return If(u.target,l)}),n===ut)for(i=0;i-1&&i.splice(s,1)};setTimeout(a,wL)}}function _L(r,n){r&ut?(this.primaryTouch=n.changedPointers[0].identifier,_g.call(this,n)):r&(Ae|$t)&&_g.call(this,n)}function EL(r){for(var n=r.srcEvent.clientX,e=r.srcEvent.clientY,t=0;t-1&&this.requireFail.splice(i,1),this},n.hasRequireFailures=function(){return this.requireFail.length>0},n.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},n.emit=function(t){var i=this,a=this.state;function o(s){i.manager.emit(s,t)}a=Vr&&o(i.options.event+Eg(a))},n.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=ar},n.canEmit=function(){for(var t=0;ta.threshold&&l&a.direction},e.attrTest=function(i){return Cn.prototype.attrTest.call(this,i)&&(this.state&zt||!(this.state&zt)&&this.directionTest(i))},e.emit=function(i){this.pX=i.deltaX,this.pY=i.deltaY;var a=y0(i.direction);a&&(i.additionalEvent=this.options.event+a),r.prototype.emit.call(this,i)},n}(Cn),m0=function(r){Wt(n,r);function n(t){return t===void 0&&(t={}),r.call(this,Zt({event:"swipe",threshold:10,velocity:.3,direction:lr|bi,pointers:1},t))||this}var e=n.prototype;return e.getTouchAction=function(){return Af.prototype.getTouchAction.call(this)},e.attrTest=function(i){var a=this.options.direction,o;return a&(lr|bi)?o=i.overallVelocity:a&lr?o=i.overallVelocityX:a&bi&&(o=i.overallVelocityY),r.prototype.attrTest.call(this,i)&&a&i.offsetDirection&&i.distance>this.options.threshold&&i.maxPointers===this.options.pointers&&Ii(o)>this.options.velocity&&i.eventType&Ae},e.emit=function(i){var a=y0(i.offsetDirection);a&&this.manager.emit(this.options.event+a,i),this.manager.emit(this.options.event,i)},n}(Cn),b0=function(r){Wt(n,r);function n(t){return t===void 0&&(t={}),r.call(this,Zt({event:"pinch",threshold:0,pointers:2},t))||this}var e=n.prototype;return e.getTouchAction=function(){return[mi]},e.attrTest=function(i){return r.prototype.attrTest.call(this,i)&&(Math.abs(i.scale-1)>this.options.threshold||this.state&zt)},e.emit=function(i){if(i.scale!==1){var a=i.scale<1?"in":"out";i.additionalEvent=this.options.event+a}r.prototype.emit.call(this,i)},n}(Cn),$0=function(r){Wt(n,r);function n(t){return t===void 0&&(t={}),r.call(this,Zt({event:"rotate",threshold:0,pointers:2},t))||this}var e=n.prototype;return e.getTouchAction=function(){return[mi]},e.attrTest=function(i){return r.prototype.attrTest.call(this,i)&&(Math.abs(i.rotation)>this.options.threshold||this.state&zt)},n}(Cn),w0=function(r){Wt(n,r);function n(t){var i;return t===void 0&&(t={}),i=r.call(this,Zt({event:"press",pointers:1,time:251,threshold:9},t))||this,i._timer=null,i._input=null,i}var e=n.prototype;return e.getTouchAction=function(){return[a0]},e.process=function(i){var a=this,o=this.options,s=i.pointers.length===o.pointers,l=i.distanceo.time;if(this._input=i,!l||!s||i.eventType&(Ae|$t)&&!u)this.reset();else if(i.eventType&ut)this.reset(),this._timer=setTimeout(function(){a.state=$r,a.tryEmit()},o.time);else if(i.eventType&Ae)return $r;return ar},e.reset=function(){clearTimeout(this._timer)},e.emit=function(i){this.state===$r&&(i&&i.eventType&Ae?this.manager.emit(this.options.event+"up",i):(this._input.timeStamp=Tf(),this.manager.emit(this.options.event,this._input)))},n}(go),_0={domEvents:!1,touchAction:n0,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Sg=[[$0,{enable:!1}],[b0,{enable:!1},["rotate"]],[m0,{direction:lr}],[Af,{direction:lr},["swipe"]],[oh],[oh,{event:"doubletap",taps:2},["tap"]],[w0]],kL=1,Og=2;function Tg(r,n){var e=r.element;if(e.style){var t;br(r.options.cssProps,function(i,a){t=Yl(e.style,a),n?(r.oldCssProps[t]=e.style[t],e.style[t]=i):e.style[t]=r.oldCssProps[t]||""}),n||(r.oldCssProps={})}}function IL(r,n){var e=document.createEvent("Event");e.initEvent(r,!0,!0),e.gesture=n,n.target.dispatchEvent(e)}var kg=function(){function r(e,t){var i=this;this.options=ki({},_0,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=SL(this),this.touchAction=new u0(this,this.options.touchAction),Tg(this,!0),br(this.options.recognizers,function(a){var o=i.add(new a[0](a[1]));a[2]&&o.recognizeWith(a[2]),a[3]&&o.requireFailure(a[3])},this)}var n=r.prototype;return n.set=function(t){return ki(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},n.stop=function(t){this.session.stopped=t?Og:kL},n.recognize=function(t){var i=this.session;if(!i.stopped){this.touchAction.preventDefaults(t);var a,o=this.recognizers,s=i.curRecognizer;(!s||s&&s.state&$r)&&(i.curRecognizer=null,s=null);for(var l=0;l\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,t,a),r.apply(this,arguments)}}var S0=E0(function(r,n,e){for(var t=Object.keys(n),i=0;i=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(u){throw u},f:i}}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 a=!0,o=!1,s;return{s:function(){e=e.call(r)},n:function(){var u=e.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function BL(r,n){var e;if(r){if(typeof r=="string")return Pg(r,n);var t=ql(e=Object.prototype.toString.call(r)).call(e,8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return _f(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Pg(r,n)}}function Pg(r,n){(n==null||n>r.length)&&(n=r.length);for(var e=0,t=new Array(n);e1?e-1:0),i=1;i2){var t;return nl.apply(void 0,Kl(t=[k0(n[0],n[1])]).call(t,yt(ql(n).call(n,2))))}var i=n[0],a=n[1];if(i instanceof Date&&a instanceof Date)return i.setTime(a.getTime()),i;var o=O0(jF(a)),s;try{for(o.s();!(s=o.n()).done;){var l=s.value;Object.prototype.propertyIsEnumerable.call(a,l)&&(a[l]===T0?delete i[l]:i[l]!==null&&a[l]!==null&&typeof i[l]=="object"&&typeof a[l]=="object"&&!xt(i[l])&&!xt(a[l])?i[l]=nl(i[l],a[l]):i[l]=I0(a[l]))}}catch(u){o.e(u)}finally{o.f()}return i}function I0(r){return xt(r)?qt(r).call(r,function(n){return I0(n)}):typeof r=="object"&&r!==null?r instanceof Date?new Date(r.getTime()):nl({},r):r}function P0(r){for(var n=0,e=Of(r);no;)l=t(e,s=i[o++]),l!==void 0&&Sz(a,s,l);return a}});var Oz=ge,Tz=Oz.Object.getOwnPropertyDescriptors,kz=Tz,Iz=kz,Pz=Iz,Dg=K(Pz),j0={exports:{}},Cz=U,xz=Le,Mg=Rl.f;Cz({target:"Object",stat:!0,forced:Object.defineProperties!==Mg,sham:!xz},{defineProperties:Mg});var Az=ge,L0=Az.Object,Rz=j0.exports=function(n,e){return L0.defineProperties(n,e)};L0.defineProperties.sham&&(Rz.sham=!0);var Dz=j0.exports,Mz=Dz,Nz=Mz,Fz=Nz,Bz=K(Fz),jz=m1,Lz=K(jz);function z0(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}var zz=Yw,Hz=zz,Wz=Hz,Uz=Wz,H0=Uz,Vz=K(H0),Gz=U,Kz=lw;Gz({target:"Object",stat:!0},{setPrototypeOf:Kz});var qz=ge,Yz=qz.Object.setPrototypeOf,Xz=Yz,Jz=Xz,Qz=Jz,Zz=Qz,e3=Zz,t3=e3,W0=t3,sh=K(W0),r3=Sw,i3=r3,n3=i3,a3=n3,o3=a3,U0=K(o3);function lh(r,n){var e;return lh=sh?U0(e=sh).call(e):function(i,a){return i.__proto__=a,i},lh(r,n)}function s3(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Vz(n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Il(r,"prototype",{writable:!1}),lh(r,n)}function l3(r,n){if(n&&(kn(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return z0(r)}var u3=pj,d3=u3,c3=d3,h3=c3,V0=h3,Ng=K(V0);function al(r){var n;return al=sh?U0(n=Ng).call(n):function(t){return t.__proto__||Ng(t)},al(r)}var G0={exports:{}},K0={exports:{}};(function(r){var n=bf,e=bw;function t(i){"@babel/helpers - typeof";return r.exports=t=typeof n=="function"&&typeof e=="symbol"?function(a){return typeof a}:function(a){return a&&typeof n=="function"&&a.constructor===n&&a!==n.prototype?"symbol":typeof a},r.exports.__esModule=!0,r.exports.default=r.exports,t(i)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports})(K0);var f3=K0.exports,v3=Uw,p3=v3,g3=p3,y3=g3,m3=y3,Fg=Ne,b3=Sf,$3=Mi,w3=St,_3=function(r,n,e){for(var t=b3(n),i=w3.f,a=$3.f,o=0;oc;c++)if(f=g(r[c]),f&&jg(zg,f))return f;return new Fs(!1)}u=U3(r,d)}for(v=a?r.next:u.next;!(p=j3(v,u)).done;){try{f=g(p.value)}catch(m){Lg(u,"throw",m)}if(typeof f=="object"&&f&&jg(zg,f))return f}return new Fs(!1)},K3=Fi,q3=function(r,n){return r===void 0?arguments.length<2?"":n:K3(r)},Y3=U,X3=Me,J3=Hl,ol=lw,Q3=_3,X0=Bi,fd=Cr,vd=Ni,Z3=O3,e5=F3,t5=zi,r5=q3,i5=me,n5=i5("toStringTag"),sl=Error,a5=[].push,xn=function(n,e){var t=X3(pd,this),i;ol?i=ol(new sl,t?J3(this):pd):(i=t?this:X0(pd),fd(i,n5,"Error")),e!==void 0&&fd(i,"message",r5(e)),e5(i,xn,i.stack,1),arguments.length>2&&Z3(i,arguments[2]);var a=[];return t5(n,a5,{that:a}),fd(i,"errors",a),i};ol?ol(xn,sl):Q3(xn,sl,{name:!0});var pd=xn.prototype=X0(sl.prototype,{constructor:vd(1,xn),message:vd(1,""),name:vd(1,"AggregateError")});Y3({global:!0,constructor:!0,arity:2},{AggregateError:xn});var o5=ct,s5=df,l5=me,u5=Le,Hg=l5("species"),J0=function(r){var n=o5(r);u5&&n&&!n[Hg]&&s5(n,Hg,{configurable:!0,get:function(){return this}})},d5=Me,c5=TypeError,Df=function(r,n){if(d5(n,r))return r;throw new c5("Incorrect invocation")},Wg=Rt,h5=C0,f5=Ln,v5=me,p5=v5("species"),Q0=function(r,n){var e=Wg(r).constructor,t;return e===void 0||f5(t=Wg(e)[p5])?n:h5(t)},g5=ti,Z0=/(?:ipad|iphone|ipod).*applewebkit/i.test(g5),At=pe,y5=jn,m5=ri,Ug=we,b5=Ne,e_=ae,Vg=I1,$5=lo,Gg=af,w5=Xw,_5=Z0,E5=co,uh=At.setImmediate,dh=At.clearImmediate,S5=At.process,gd=At.Dispatch,O5=At.Function,Kg=At.MessageChannel,T5=At.String,yd=0,Ta={},qg="onreadystatechange",Wa,di,md,bd;e_(function(){Wa=At.location});var Mf=function(r){if(b5(Ta,r)){var n=Ta[r];delete Ta[r],n()}},$d=function(r){return function(){Mf(r)}},Yg=function(r){Mf(r.data)},Xg=function(r){At.postMessage(T5(r),Wa.protocol+"//"+Wa.host)};(!uh||!dh)&&(uh=function(n){w5(arguments.length,1);var e=Ug(n)?n:O5(n),t=$5(arguments,1);return Ta[++yd]=function(){y5(e,void 0,t)},di(yd),yd},dh=function(n){delete Ta[n]},E5?di=function(r){S5.nextTick($d(r))}:gd&&gd.now?di=function(r){gd.now($d(r))}:Kg&&!_5?(md=new Kg,bd=md.port2,md.port1.onmessage=Yg,di=m5(bd.postMessage,bd)):At.addEventListener&&Ug(At.postMessage)&&!At.importScripts&&Wa&&Wa.protocol!=="file:"&&!e_(Xg)?(di=Xg,At.addEventListener("message",Yg,!1)):qg in Gg("script")?di=function(r){Vg.appendChild(Gg("script"))[qg]=function(){Vg.removeChild(this),Mf(r)}}:di=function(r){setTimeout($d(r),0)});var t_={set:uh,clear:dh},r_=function(){this.head=null,this.tail=null};r_.prototype={add:function(r){var n={item:r,next:null},e=this.tail;e?e.next=n:this.head=n,this.tail=n},get:function(){var r=this.head;if(r){var n=this.head=r.next;return n===null&&(this.tail=null),r.item}}};var i_=r_,k5=ti,I5=/ipad|iphone|ipod/i.test(k5)&&typeof Pebble<"u",P5=ti,C5=/web0s(?!.*chrome)/i.test(P5),Ci=pe,Jg=ri,x5=Mi.f,wd=t_.set,A5=i_,R5=Z0,D5=I5,M5=C5,_d=co,Qg=Ci.MutationObserver||Ci.WebKitMutationObserver,Zg=Ci.document,ey=Ci.process,os=Ci.Promise,ty=x5(Ci,"queueMicrotask"),ch=ty&&ty.value,en,Ed,Sd,ss,ry;if(!ch){var ls=new A5,us=function(){var r,n;for(_d&&(r=ey.domain)&&r.exit();n=ls.get();)try{n()}catch(e){throw ls.head&&en(),e}r&&r.enter()};!R5&&!_d&&!M5&&Qg&&Zg?(Ed=!0,Sd=Zg.createTextNode(""),new Qg(us).observe(Sd,{characterData:!0}),en=function(){Sd.data=Ed=!Ed}):!D5&&os&&os.resolve?(ss=os.resolve(void 0),ss.constructor=os,ry=Jg(ss.then,ss),en=function(){ry(us)}):_d?en=function(){ey.nextTick(us)}:(wd=Jg(wd,Ci),en=function(){wd(us)}),ch=function(r){ls.head||en(),ls.add(r)}}var N5=ch,F5=function(r,n){try{arguments.length===1?console.error(r):console.error(r,n)}catch{}},Jn=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}},B5=pe,Qn=B5.Promise,n_=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",j5=n_,L5=co,z5=!j5&&!L5&&typeof window=="object"&&typeof document=="object",H5=pe,ka=Qn,W5=we,U5=p1,V5=w1,G5=me,K5=z5,q5=n_,Od=zn,iy=ka&&ka.prototype,Y5=G5("species"),hh=!1,a_=W5(H5.PromiseRejectionEvent),X5=U5("Promise",function(){var r=V5(ka),n=r!==String(ka);if(!n&&Od===66||!(iy.catch&&iy.finally))return!0;if(!Od||Od<51||!/native code/.test(r)){var e=new ka(function(a){a(1)}),t=function(a){a(function(){},function(){})},i=e.constructor={};if(i[Y5]=t,hh=e.then(function(){})instanceof t,!hh)return!0}return!n&&(K5||q5)&&!a_}),yo={CONSTRUCTOR:X5,REJECTION_EVENT:a_,SUBCLASSING:hh},hr={},ny=_t,J5=TypeError,Q5=function(r){var n,e;this.promise=new r(function(t,i){if(n!==void 0||e!==void 0)throw new J5("Bad Promise constructor");n=t,e=i}),this.resolve=ny(n),this.reject=ny(e)};hr.f=function(r){return new Q5(r)};var Z5=U,ll=co,Xr=pe,mo=ze,e4=Gn,t4=ji,r4=J0,i4=_t,fh=we,n4=Qe,a4=Df,o4=Q0,o_=t_.set,Nf=N5,s4=F5,l4=Jn,u4=i_,s_=Kn,vh=Qn,l_=yo,u_=hr,Jl="Promise",d_=l_.CONSTRUCTOR,d4=l_.REJECTION_EVENT,Td=s_.getterFor(Jl),c4=s_.set,h4=vh&&vh.prototype,vn=vh,kd=h4,c_=Xr.TypeError,ph=Xr.document,Ff=Xr.process,gh=u_.f,f4=gh,v4=!!(ph&&ph.createEvent&&Xr.dispatchEvent),h_="unhandledrejection",p4="rejectionhandled",ay=0,f_=1,g4=2,Bf=1,v_=2,ds,oy,y4,p_=function(r){var n;return n4(r)&&fh(n=r.then)?n:!1},g_=function(r,n){var e=n.value,t=n.state===f_,i=t?r.ok:r.fail,a=r.resolve,o=r.reject,s=r.domain,l,u,d;try{i?(t||(n.rejection===v_&&b4(n),n.rejection=Bf),i===!0?l=e:(s&&s.enter(),l=i(e),s&&(s.exit(),d=!0)),l===r.promise?o(new c_("Promise-chain cycle")):(u=p_(l))?mo(u,l,a,o):a(l)):o(e)}catch(c){s&&!d&&s.exit(),o(c)}},y_=function(r,n){r.notified||(r.notified=!0,Nf(function(){for(var e=r.reactions,t;t=e.get();)g_(t,r);r.notified=!1,n&&!r.rejection&&m4(r)}))},m_=function(r,n,e){var t,i;v4?(t=ph.createEvent("Event"),t.promise=n,t.reason=e,t.initEvent(r,!1,!0),Xr.dispatchEvent(t)):t={promise:n,reason:e},!d4&&(i=Xr["on"+r])?i(t):r===h_&&s4("Unhandled promise rejection",e)},m4=function(r){mo(o_,Xr,function(){var n=r.facade,e=r.value,t=sy(r),i;if(t&&(i=l4(function(){ll?Ff.emit("unhandledRejection",e,n):m_(h_,n,e)}),r.rejection=ll||sy(r)?v_:Bf,i.error))throw i.value})},sy=function(r){return r.rejection!==Bf&&!r.parent},b4=function(r){mo(o_,Xr,function(){var n=r.facade;ll?Ff.emit("rejectionHandled",n):m_(p4,n,r.value)})},pn=function(r,n,e){return function(t){r(n,t,e)}},wn=function(r,n,e){r.done||(r.done=!0,e&&(r=e),r.value=n,r.state=g4,y_(r,!0))},yh=function(r,n,e){if(!r.done){r.done=!0,e&&(r=e);try{if(r.facade===n)throw new c_("Promise can't be resolved itself");var t=p_(n);t?Nf(function(){var i={done:!1};try{mo(t,n,pn(yh,i,r),pn(wn,i,r))}catch(a){wn(i,a,r)}}):(r.value=n,r.state=f_,y_(r,!1))}catch(i){wn({done:!1},i,r)}}};d_&&(vn=function(n){a4(this,kd),i4(n),mo(ds,this);var e=Td(this);try{n(pn(yh,e),pn(wn,e))}catch(t){wn(e,t)}},kd=vn.prototype,ds=function(n){c4(this,{type:Jl,done:!1,notified:!1,parent:!1,reactions:new u4,rejection:!1,state:ay,value:void 0})},ds.prototype=e4(kd,"then",function(n,e){var t=Td(this),i=gh(o4(this,vn));return t.parent=!0,i.ok=fh(n)?n:!0,i.fail=fh(e)&&e,i.domain=ll?Ff.domain:void 0,t.state===ay?t.reactions.add(i):Nf(function(){g_(i,t)}),i.promise}),oy=function(){var r=new ds,n=Td(r);this.promise=r,this.resolve=pn(yh,n),this.reject=pn(wn,n)},u_.f=gh=function(r){return r===vn||r===y4?new oy(r):f4(r)});Z5({global:!0,constructor:!0,wrap:!0,forced:d_},{Promise:vn});t4(vn,Jl,!1,!0);r4(Jl);var $4=Qn,w4=xw,_4=yo.CONSTRUCTOR,Ql=_4||!w4(function(r){$4.all(r).then(void 0,function(){})}),E4=U,S4=ze,O4=_t,T4=hr,k4=Jn,I4=zi,P4=Ql;E4({target:"Promise",stat:!0,forced:P4},{all:function(n){var e=this,t=T4.f(e),i=t.resolve,a=t.reject,o=k4(function(){var s=O4(e.resolve),l=[],u=0,d=1;I4(n,function(c){var h=u++,f=!1;d++,S4(s,e,c).then(function(v){f||(f=!0,l[h]=v,--d||i(l))},a)}),--d||i(l)});return o.error&&a(o.value),t.promise}});var C4=U,x4=yo.CONSTRUCTOR,ly=Qn;ly&&ly.prototype;C4({target:"Promise",proto:!0,forced:x4,real:!0},{catch:function(r){return this.then(void 0,r)}});var A4=U,R4=ze,D4=_t,M4=hr,N4=Jn,F4=zi,B4=Ql;A4({target:"Promise",stat:!0,forced:B4},{race:function(n){var e=this,t=M4.f(e),i=t.reject,a=N4(function(){var o=D4(e.resolve);F4(n,function(s){R4(o,e,s).then(t.resolve,i)})});return a.error&&i(a.value),t.promise}});var j4=U,L4=ze,z4=hr,H4=yo.CONSTRUCTOR;j4({target:"Promise",stat:!0,forced:H4},{reject:function(n){var e=z4.f(this);return L4(e.reject,void 0,n),e.promise}});var W4=Rt,U4=Qe,V4=hr,b_=function(r,n){if(W4(r),U4(n)&&n.constructor===r)return n;var e=V4.f(r),t=e.resolve;return t(n),e.promise},G4=U,K4=ct,q4=ik,Y4=Qn,X4=yo.CONSTRUCTOR,J4=b_,Q4=K4("Promise"),Z4=!X4;G4({target:"Promise",stat:!0,forced:q4},{resolve:function(n){return J4(Z4&&this===Q4?Y4:this,n)}});var eH=U,tH=ze,rH=_t,iH=hr,nH=Jn,aH=zi,oH=Ql;eH({target:"Promise",stat:!0,forced:oH},{allSettled:function(n){var e=this,t=iH.f(e),i=t.resolve,a=t.reject,o=nH(function(){var s=rH(e.resolve),l=[],u=0,d=1;aH(n,function(c){var h=u++,f=!1;d++,tH(s,e,c).then(function(v){f||(f=!0,l[h]={status:"fulfilled",value:v},--d||i(l))},function(v){f||(f=!0,l[h]={status:"rejected",reason:v},--d||i(l))})}),--d||i(l)});return o.error&&a(o.value),t.promise}});var sH=U,lH=ze,uH=_t,dH=ct,cH=hr,hH=Jn,fH=zi,vH=Ql,uy="No one promise resolved";sH({target:"Promise",stat:!0,forced:vH},{any:function(n){var e=this,t=dH("AggregateError"),i=cH.f(e),a=i.resolve,o=i.reject,s=hH(function(){var l=uH(e.resolve),u=[],d=0,c=1,h=!1;fH(n,function(f){var v=d++,p=!1;c++,lH(l,e,f).then(function(y){p||h||(h=!0,a(y))},function(y){p||h||(p=!0,u[v]=y,--c||o(new t(u,uy)))})}),--c||o(new t(u,uy))});return s.error&&o(s.value),i.promise}});var pH=U,mh=Qn,gH=ae,yH=ct,mH=we,bH=Q0,dy=b_,$H=mh&&mh.prototype,wH=!!mh&&gH(function(){$H.finally.call({then:function(){}},function(){})});pH({target:"Promise",proto:!0,real:!0,forced:wH},{finally:function(r){var n=bH(this,yH("Promise")),e=mH(r);return this.then(e?function(t){return dy(n,r()).then(function(){return t})}:r,e?function(t){return dy(n,r()).then(function(){throw t})}:r)}});var _H=ge,EH=_H.Promise,SH=EH,OH=SH,TH=U,kH=hr;TH({target:"Promise",stat:!0},{withResolvers:function(){var n=kH.f(this);return{promise:n.promise,resolve:n.resolve,reject:n.reject}}});var IH=OH,PH=IH,CH=U,xH=hr,AH=Jn;CH({target:"Promise",stat:!0,forced:!0},{try:function(r){var n=xH.f(this),e=AH(r);return(e.error?n.reject:n.resolve)(e.value),n.promise}});var RH=PH,DH=RH,MH=DH,NH=Vw,FH=NH,BH=FH,jH=BH,LH=jH;(function(r){var n=f3.default,e=b1,t=bf,i=H0,a=V0,o=m3,s=Bw,l=W0,u=MH,d=LH,c=Lw;function h(){r.exports=h=function(){return v},r.exports.__esModule=!0,r.exports.default=r.exports;var f,v={},p=Object.prototype,y=p.hasOwnProperty,g=e||function(N,I,P){N[I]=P.value},m=typeof t=="function"?t:{},$=m.iterator||"@@iterator",b=m.asyncIterator||"@@asyncIterator",E=m.toStringTag||"@@toStringTag";function S(N,I,P){return e(N,I,{value:P,enumerable:!0,configurable:!0,writable:!0}),N[I]}try{S({},"")}catch{S=function(P,H,Y){return P[H]=Y}}function D(N,I,P,H){var Y=I&&I.prototype instanceof ye?I:ye,q=i(Y.prototype),ke=new It(H||[]);return g(q,"_invoke",{value:xe(N,P,ke)}),q}function M(N,I,P){try{return{type:"normal",arg:N.call(I,P)}}catch(H){return{type:"throw",arg:H}}}v.wrap=D;var R="suspendedStart",F="suspendedYield",W="executing",J="completed",X={};function ye(){}function Ke(){}function Ce(){}var Tt={};S(Tt,$,function(){return this});var nt=a,Ze=nt&&nt(nt(rt([])));Ze&&Ze!==p&&y.call(Ze,$)&&(Tt=Ze);var kt=Ce.prototype=ye.prototype=i(Tt);function et(N){var I;o(I=["next","throw","return"]).call(I,function(P){S(N,P,function(H){return this._invoke(P,H)})})}function fe(N,I){function P(Y,q,ke,at){var ht=M(N[Y],N,q);if(ht.type!=="throw"){var li=ht.arg,Rr=li.value;return Rr&&n(Rr)=="object"&&y.call(Rr,"__await")?I.resolve(Rr.__await).then(function(ui){P("next",ui,ke,at)},function(ui){P("throw",ui,ke,at)}):I.resolve(Rr).then(function(ui){li.value=ui,ke(li)},function(ui){return P("throw",ui,ke,at)})}at(ht.arg)}var H;g(this,"_invoke",{value:function(q,ke){function at(){return new I(function(ht,li){P(q,ke,ht,li)})}return H=H?H.then(at,at):at()}})}function xe(N,I,P){var H=R;return function(Y,q){if(H===W)throw new Error("Generator is already running");if(H===J){if(Y==="throw")throw q;return{value:f,done:!0}}for(P.method=Y,P.arg=q;;){var ke=P.delegate;if(ke){var at=Te(ke,P);if(at){if(at===X)continue;return at}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(H===R)throw H=J,P.arg;P.dispatchException(P.arg)}else P.method==="return"&&P.abrupt("return",P.arg);H=W;var ht=M(N,I,P);if(ht.type==="normal"){if(H=P.done?J:F,ht.arg===X)continue;return{value:ht.arg,done:P.done}}ht.type==="throw"&&(H=J,P.method="throw",P.arg=ht.arg)}}}function Te(N,I){var P=I.method,H=N.iterator[P];if(H===f)return I.delegate=null,P==="throw"&&N.iterator.return&&(I.method="return",I.arg=f,Te(N,I),I.method==="throw")||P!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+P+"' method")),X;var Y=M(H,N.iterator,I.arg);if(Y.type==="throw")return I.method="throw",I.arg=Y.arg,I.delegate=null,X;var q=Y.arg;return q?q.done?(I[N.resultName]=q.value,I.next=N.nextLoc,I.method!=="return"&&(I.method="next",I.arg=f),I.delegate=null,X):q:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,X)}function tt(N){var I,P={tryLoc:N[0]};1 in N&&(P.catchLoc=N[1]),2 in N&&(P.finallyLoc=N[2],P.afterLoc=N[3]),s(I=this.tryEntries).call(I,P)}function pr(N){var I=N.completion||{};I.type="normal",delete I.arg,N.completion=I}function It(N){this.tryEntries=[{tryLoc:"root"}],o(N).call(N,tt,this),this.reset(!0)}function rt(N){if(N||N===""){var I=N[$];if(I)return I.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var P=-1,H=function Y(){for(;++P=0;--Y){var q=this.tryEntries[Y],ke=q.completion;if(q.tryLoc==="root")return H("end");if(q.tryLoc<=this.prev){var at=y.call(q,"catchLoc"),ht=y.call(q,"finallyLoc");if(at&&ht){if(this.prev=0;--H){var Y=this.tryEntries[H];if(Y.tryLoc<=this.prev&&y.call(Y,"finallyLoc")&&this.prev=0;--P){var H=this.tryEntries[P];if(H.finallyLoc===I)return this.complete(H.completion,H.afterLoc),pr(H),X}},catch:function(I){for(var P=this.tryEntries.length-1;P>=0;--P){var H=this.tryEntries[P];if(H.tryLoc===I){var Y=H.completion;if(Y.type==="throw"){var q=Y.arg;pr(H)}return q}}throw new Error("illegal catch attempt")},delegateYield:function(I,P,H){return this.delegate={iterator:rt(I),resultName:P,nextLoc:H},this.method==="next"&&(this.arg=f),X}},v}r.exports=h,r.exports.__esModule=!0,r.exports.default=r.exports})(G0);var zH=G0.exports,Bs=zH(),HH=Bs;try{regeneratorRuntime=Bs}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Bs:Function("r","regeneratorRuntime = r")(Bs)}var vt=K(HH),$_={exports:{}},WH=ae,UH=WH(function(){if(typeof ArrayBuffer=="function"){var r=new ArrayBuffer(8);Object.isExtensible(r)&&Object.defineProperty(r,"a",{value:8})}}),VH=ae,GH=Qe,KH=ei,cy=UH,js=Object.isExtensible,qH=VH(function(){js(1)}),YH=qH||cy?function(n){return!GH(n)||cy&&KH(n)==="ArrayBuffer"?!1:js?js(n):!0}:js,XH=ae,JH=!XH(function(){return Object.isExtensible(Object.preventExtensions({}))}),QH=U,ZH=ve,eW=ro,tW=Qe,jf=Ne,rW=St.f,hy=io,iW=uf,Lf=YH,nW=Tl,aW=JH,w_=!1,kr=nW("meta"),oW=0,zf=function(r){rW(r,kr,{value:{objectID:"O"+oW++,weakData:{}}})},sW=function(r,n){if(!tW(r))return typeof r=="symbol"?r:(typeof r=="string"?"S":"P")+r;if(!jf(r,kr)){if(!Lf(r))return"F";if(!n)return"E";zf(r)}return r[kr].objectID},lW=function(r,n){if(!jf(r,kr)){if(!Lf(r))return!0;if(!n)return!1;zf(r)}return r[kr].weakData},uW=function(r){return aW&&w_&&Lf(r)&&!jf(r,kr)&&zf(r),r},dW=function(){cW.enable=function(){},w_=!0;var r=hy.f,n=ZH([].splice),e={};e[kr]=1,r(e).length&&(hy.f=function(t){for(var i=r(t),a=0,o=i.length;a1?arguments[1]:void 0),f;f=f?f.next:c.first;)for(h(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(d){return!!l(this,d)}}),fy(a,e?{get:function(d){var c=l(this,d);return c&&c.value},set:function(d,c){return s(this,d===0?0:d,c)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),fa&&xW(a,"size",{configurable:!0,get:function(){return o(this).size}}),i},setStrong:function(r,n,e){var t=n+" Iterator",i=Id(n),a=Id(t);NW(r,n,function(o,s){py(this,{type:t,target:o,state:i(o),kind:s,last:void 0})},function(){for(var o=a(this),s=o.kind,l=o.last;l&&l.removed;)l=l.previous;return!o.target||!(o.last=l=l?l.next:o.state.first)?(o.target=void 0,cs(void 0,!0)):cs(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},e?"entries":"values",!e,!0),FW(n)}},BW=S_,jW=T_;BW("Map",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},jW);var LW=ge,zW=LW.Map,HW=zW,WW=HW,UW=WW,k_=K(UW),VW=U,GW=qn.some,KW=Ul,qW=KW("some");VW({target:"Array",proto:!0,forced:!qW},{some:function(n){return GW(this,n,arguments.length>1?arguments[1]:void 0)}});var YW=it,XW=YW("Array","some"),JW=Me,QW=XW,Pd=Array.prototype,ZW=function(r){var n=r.some;return r===Pd||JW(Pd,r)&&n===Pd.some?QW:n},e6=ZW,t6=e6,r6=t6,i6=K(r6),n6=it,a6=n6("Array","keys"),o6=a6,s6=o6,l6=xr,u6=Ne,d6=Me,c6=s6,Cd=Array.prototype,h6={DOMTokenList:!0,NodeList:!0},f6=function(r){var n=r.keys;return r===Cd||d6(Cd,r)&&n===Cd.keys||u6(h6,l6(r))?c6:n},v6=f6,tn=K(v6),gy=x1,p6=Math.floor,bh=function(r,n){var e=r.length,t=p6(e/2);return e<8?g6(r,n):y6(r,bh(gy(r,0,t),n),bh(gy(r,t),n),n)},g6=function(r,n){for(var e=r.length,t=1,i,a;t0;)r[a]=r[--a];a!==t++&&(r[a]=i)}return r},y6=function(r,n,e,t){for(var i=n.length,a=e.length,o=0,s=0;o3)){if(x6)return!0;if(Ey)return Ey<603;var r="",n,e,t,i;for(n=65;n<76;n++){switch(e=String.fromCharCode(n),n){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(i=0;i<47;i++)Lr.push({k:e+i,v:t})}for(Lr.sort(function(a,o){return o.v-a.v}),i=0;i$y(e)?1:-1}};O6({target:"Array",proto:!0,forced:N6},{sort:function(n){n!==void 0&&T6(n);var e=k6(this);if(P_)return n===void 0?Sy(e):Sy(e,n);var t=[],i=by(e),a,o;for(o=0;othis.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=qj(function(){e.flush()},this.delay))}},{key:"flush",value:function(){var e,t;Ti(e=Kw(t=this._queue).call(t,0)).call(e,function(i){i.fn.apply(i.context||i.fn,i.args||[])})}}],[{key:"extend",value:function(e,t){var i=new r(t);if(e.flush!==void 0)throw new Error("Target object already has a property flush");e.flush=function(){i.flush()};var a=[{name:"flush",original:void 0}];if(t&&t.replace)for(var o=0;o=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(u){throw u},f:i}}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 a=!0,o=!1,s;return{s:function(){e=e.call(r)},n:function(){var u=e.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function L8(r,n){var e;if(r){if(typeof r=="string")return Iy(r,n);var t=ql(e=Object.prototype.toString.call(r)).call(e,8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return _f(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Iy(r,n)}}function Iy(r,n){(n==null||n>r.length)&&(n=r.length);for(var e=0,t=new Array(n);es&&(s=c,o=d)}return o}},{key:"min",value:function(t){var i=Md(this._pairs),a=i.next();if(a.done)return null;for(var o=a.value[1],s=t(a.value[1],a.value[0]);!(a=i.next()).done;){var l=ft(a.value,2),u=l[0],d=l[1],c=t(d,u);c=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(u){throw u},f:i}}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 a=!0,o=!1,s;return{s:function(){e=e.call(r)},n:function(){var u=e.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function z8(r,n){var e;if(r){if(typeof r=="string")return Ay(r,n);var t=ql(e=Object.prototype.toString.call(r)).call(e,8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return _f(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ay(r,n)}}function Ay(r,n){(n==null||n>r.length)&&(n=r.length);for(var e=0,t=new Array(n);e"u"||!Ns||Ns.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Ns(Boolean,[],function(){})),!0}catch{return!1}}function U8(r,n){return r[n]==null&&(r[n]=$8()),r}var ul=function(r){s3(e,r);var n=H8(e);function e(t,i){var a;return El(this,e),a=n.call(this),Ur(z0(a),"_queue",null),t&&!xt(t)&&(i=t,t=[]),a._options=i||{},a._data=new k_,a.length=0,a._idProp=a._options.fieldId||"id",t&&t.length&&a.add(t),a.setOptions(i),a}return Wl(e,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(i){i&&i.queue!==void 0&&(i.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=w8.extend(this,{replace:["add","update","remove"]})),i.queue&&typeof i.queue=="object"&&this._queue.setOptions(i.queue)))}},{key:"add",value:function(i,a){var o=this,s=[],l;if(xt(i)){var u=qt(i).call(i,function(h){return h[o._idProp]});if(i6(u).call(u,function(h){return o._data.has(h)}))throw new Error("A duplicate id was found in the parameter array.");for(var d=0,c=i.length;dd?1:us)&&(o=d,s=c)}}catch(h){l.e(h)}finally{l.f()}return o||null}},{key:"min",value:function(i){var a,o=null,s=null,l=Nd(Oy(a=this._data).call(a)),u;try{for(l.s();!(u=l.n()).done;){var d=u.value,c=d[i];typeof c=="number"&&(s==null||c"u"&&_h!==void 0,M_={all:_h,IS_HTMLDDA:Z8},N_=M_,eU=N_.all,He=N_.IS_HTMLDDA?function(r){return typeof r=="function"||r===eU}:function(r){return typeof r=="function"},Zn={},tU=te,We=!tU(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),rU=bo,vs=Function.prototype.call,Mt=rU?vs.bind(vs):function(){return vs.apply(vs,arguments)},Zl={},F_={}.propertyIsEnumerable,B_=Object.getOwnPropertyDescriptor,iU=B_&&!F_.call({1:2},1);Zl.f=iU?function(n){var e=B_(this,n);return!!e&&e.enumerable}:F_;var wo=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}},nU=ie,aU=te,oU=Ar,Bd=Object,sU=nU("".split),eu=aU(function(){return!Bd("z").propertyIsEnumerable(0)})?function(r){return oU(r)==="String"?sU(r,""):Bd(r)}:Bd,ea=function(r){return r==null},lU=ea,uU=TypeError,_o=function(r){if(lU(r))throw new uU("Can't call method on "+r);return r},dU=eu,cU=_o,fr=function(r){return dU(cU(r))},My=He,j_=M_,hU=j_.all,Ue=j_.IS_HTMLDDA?function(r){return typeof r=="object"?r!==null:My(r)||r===hU}:function(r){return typeof r=="object"?r!==null:My(r)},re={},jd=re,Ld=Ee,fU=He,Ny=function(r){return fU(r)?r:void 0},Ut=function(r,n){return arguments.length<2?Ny(jd[r])||Ny(Ld[r]):jd[r]&&jd[r][n]||Ld[r]&&Ld[r][n]},vU=ie,Pe=vU({}.isPrototypeOf),Eo=typeof navigator<"u"&&String(navigator.userAgent)||"",L_=Ee,zd=Eo,Fy=L_.process,By=L_.Deno,jy=Fy&&Fy.versions||By&&By.version,Ly=jy&&jy.v8,Yt,dl;Ly&&(Yt=Ly.split("."),dl=Yt[0]>0&&Yt[0]<4?1:+(Yt[0]+Yt[1]));!dl&&zd&&(Yt=zd.match(/Edge\/(\d+)/),(!Yt||Yt[1]>=74)&&(Yt=zd.match(/Chrome\/(\d+)/),Yt&&(dl=+Yt[1])));var So=dl,zy=So,pU=te,gU=Ee,yU=gU.String,ta=!!Object.getOwnPropertySymbols&&!pU(function(){var r=Symbol("symbol detection");return!yU(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&zy&&zy<41}),mU=ta,z_=mU&&!Symbol.sham&&typeof Symbol.iterator=="symbol",bU=Ut,$U=He,wU=Pe,_U=z_,EU=Object,Oo=_U?function(r){return typeof r=="symbol"}:function(r){var n=bU("Symbol");return $U(n)&&wU(n.prototype,EU(r))},SU=String,ra=function(r){try{return SU(r)}catch{return"Object"}},OU=He,TU=ra,kU=TypeError,Hi=function(r){if(OU(r))return r;throw new kU(TU(r)+" is not a function")},IU=Hi,PU=ea,Uf=function(r,n){var e=r[n];return PU(e)?void 0:IU(e)},Hd=Mt,Wd=He,Ud=Ue,CU=TypeError,xU=function(r,n){var e,t;if(n==="string"&&Wd(e=r.toString)&&!Ud(t=Hd(e,r))||Wd(e=r.valueOf)&&!Ud(t=Hd(e,r))||n!=="string"&&Wd(e=r.toString)&&!Ud(t=Hd(e,r)))return t;throw new CU("Can't convert object to primitive value")},H_={exports:{}},Hy=Ee,AU=Object.defineProperty,RU=function(r,n){try{AU(Hy,r,{value:n,configurable:!0,writable:!0})}catch{Hy[r]=n}return n},DU=Ee,MU=RU,Wy="__core-js_shared__",NU=DU[Wy]||MU(Wy,{}),Vf=NU,Uy=Vf;(H_.exports=function(r,n){return Uy[r]||(Uy[r]=n!==void 0?n:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var ia=H_.exports,FU=_o,BU=Object,Ot=function(r){return BU(FU(r))},jU=ie,LU=Ot,zU=jU({}.hasOwnProperty),Ve=Object.hasOwn||function(n,e){return zU(LU(n),e)},HU=ie,WU=0,UU=Math.random(),VU=HU(1 .toString),tu=function(r){return"Symbol("+(r===void 0?"":r)+")_"+VU(++WU+UU,36)},GU=Ee,KU=ia,Vy=Ve,qU=tu,YU=ta,XU=z_,yn=GU.Symbol,Vd=KU("wks"),JU=XU?yn.for||yn:yn&&yn.withoutSetter||qU,Se=function(r){return Vy(Vd,r)||(Vd[r]=YU&&Vy(yn,r)?yn[r]:JU("Symbol."+r)),Vd[r]},QU=Mt,Gy=Ue,Ky=Oo,ZU=Uf,e9=xU,t9=Se,r9=TypeError,i9=t9("toPrimitive"),n9=function(r,n){if(!Gy(r)||Ky(r))return r;var e=ZU(r,i9),t;if(e){if(n===void 0&&(n="default"),t=QU(e,r,n),!Gy(t)||Ky(t))return t;throw new r9("Can't convert object to primitive value")}return n===void 0&&(n="number"),e9(r,n)},a9=n9,o9=Oo,ru=function(r){var n=a9(r,"string");return o9(n)?n:n+""},s9=Ee,qy=Ue,Eh=s9.document,l9=qy(Eh)&&qy(Eh.createElement),W_=function(r){return l9?Eh.createElement(r):{}},u9=We,d9=te,c9=W_,U_=!u9&&!d9(function(){return Object.defineProperty(c9("div"),"a",{get:function(){return 7}}).a!==7}),h9=We,f9=Mt,v9=Zl,p9=wo,g9=fr,y9=ru,m9=Ve,b9=U_,Yy=Object.getOwnPropertyDescriptor;Zn.f=h9?Yy:function(n,e){if(n=g9(n),e=y9(e),b9)try{return Yy(n,e)}catch{}if(m9(n,e))return p9(!f9(v9.f,n,e),n[e])};var $9=te,w9=He,_9=/#|\.prototype\./,To=function(r,n){var e=S9[E9(r)];return e===T9?!0:e===O9?!1:w9(n)?$9(n):!!n},E9=To.normalize=function(r){return String(r).replace(_9,".").toLowerCase()},S9=To.data={},O9=To.NATIVE="N",T9=To.POLYFILL="P",k9=To,Xy=Wf,I9=Hi,P9=bo,C9=Xy(Xy.bind),ko=function(r,n){return I9(r),n===void 0?r:P9?C9(r,n):function(){return r.apply(n,arguments)}},Nt={},x9=We,A9=te,V_=x9&&A9(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),R9=Ue,D9=String,M9=TypeError,Ft=function(r){if(R9(r))return r;throw new M9(D9(r)+" is not an object")},N9=We,F9=U_,B9=V_,ps=Ft,Jy=ru,j9=TypeError,Gd=Object.defineProperty,L9=Object.getOwnPropertyDescriptor,Kd="enumerable",qd="configurable",Yd="writable";Nt.f=N9?B9?function(n,e,t){if(ps(n),e=Jy(e),ps(t),typeof n=="function"&&e==="prototype"&&"value"in t&&Yd in t&&!t[Yd]){var i=L9(n,e);i&&i[Yd]&&(n[e]=t.value,t={configurable:qd in t?t[qd]:i[qd],enumerable:Kd in t?t[Kd]:i[Kd],writable:!1})}return Gd(n,e,t)}:Gd:function(n,e,t){if(ps(n),e=Jy(e),ps(t),F9)try{return Gd(n,e,t)}catch{}if("get"in t||"set"in t)throw new j9("Accessors not supported");return"value"in t&&(n[e]=t.value),n};var z9=We,H9=Nt,W9=wo,na=z9?function(r,n,e){return H9.f(r,n,W9(1,e))}:function(r,n,e){return r[n]=e,r},gs=Ee,U9=$o,V9=Wf,G9=He,K9=Zn.f,q9=k9,rn=re,Y9=ko,nn=na,Qy=Ve,X9=function(r){var n=function(e,t,i){if(this instanceof n){switch(arguments.length){case 0:return new r;case 1:return new r(e);case 2:return new r(e,t)}return new r(e,t,i)}return U9(r,this,arguments)};return n.prototype=r.prototype,n},G=function(r,n){var e=r.target,t=r.global,i=r.stat,a=r.proto,o=t?gs:i?gs[e]:(gs[e]||{}).prototype,s=t?rn:rn[e]||nn(rn,e,{})[e],l=s.prototype,u,d,c,h,f,v,p,y,g;for(h in n)u=q9(t?h:e+(i?".":"#")+h,r.forced),d=!u&&o&&Qy(o,h),v=s[h],d&&(r.dontCallGetSet?(g=K9(o,h),p=g&&g.value):p=o[h]),f=d&&p?p:n[h],!(d&&typeof v==typeof f)&&(r.bind&&d?y=Y9(f,gs):r.wrap&&d?y=X9(f):a&&G9(f)?y=V9(f):y=f,(r.sham||f&&f.sham||v&&v.sham)&&nn(y,"sham",!0),nn(s,h,y),a&&(c=e+"Prototype",Qy(rn,c)||nn(rn,c,{}),nn(rn[c],h,f),r.real&&l&&(u||!l[h])&&nn(l,h,f)))},J9=Math.ceil,Q9=Math.floor,Z9=Math.trunc||function(n){var e=+n;return(e>0?Q9:J9)(e)},eV=Z9,iu=function(r){var n=+r;return n!==n||n===0?0:eV(n)},tV=iu,rV=Math.max,iV=Math.min,Io=function(r,n){var e=tV(r);return e<0?rV(e+n,0):iV(e,n)},nV=iu,aV=Math.min,oV=function(r){return r>0?aV(nV(r),9007199254740991):0},sV=oV,Vt=function(r){return sV(r.length)},lV=fr,uV=Io,dV=Vt,Zy=function(r){return function(n,e,t){var i=lV(n),a=dV(i),o=uV(t,a),s;if(r&&e!==e){for(;a>o;)if(s=i[o++],s!==s)return!0}else for(;a>o;o++)if((r||o in i)&&i[o]===e)return r||o||0;return!r&&-1}},Gf={includes:Zy(!0),indexOf:Zy(!1)},Po={},cV=ie,Xd=Ve,hV=fr,fV=Gf.indexOf,vV=Po,em=cV([].push),G_=function(r,n){var e=hV(r),t=0,i=[],a;for(a in e)!Xd(vV,a)&&Xd(e,a)&&em(i,a);for(;n.length>t;)Xd(e,a=n[t++])&&(~fV(i,a)||em(i,a));return i},Kf=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],pV=G_,gV=Kf,nu=Object.keys||function(n){return pV(n,gV)},Co={};Co.f=Object.getOwnPropertySymbols;var tm=We,yV=ie,mV=Mt,bV=te,Jd=nu,$V=Co,wV=Zl,_V=Ot,EV=eu,an=Object.assign,rm=Object.defineProperty,SV=yV([].concat),OV=!an||bV(function(){if(tm&&an({b:1},an(rm({},"a",{enumerable:!0,get:function(){rm(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var r={},n={},e=Symbol("assign detection"),t="abcdefghijklmnopqrst";return r[e]=7,t.split("").forEach(function(i){n[i]=i}),an({},r)[e]!==7||Jd(an({},n)).join("")!==t})?function(n,e){for(var t=_V(n),i=arguments.length,a=1,o=$V.f,s=wV.f;i>a;)for(var l=EV(arguments[a++]),u=o?SV(Jd(l),o(l)):Jd(l),d=u.length,c=0,h;d>c;)h=u[c++],(!tm||mV(s,l,h))&&(t[h]=l[h]);return t}:an,TV=G,im=OV;TV({target:"Object",stat:!0,arity:2,forced:Object.assign!==im},{assign:im});var kV=re,IV=kV.Object.assign,PV=IV,CV=PV,xV=CV,Re=z(xV),AV=ie,au=AV([].slice),K_=ie,RV=Hi,DV=Ue,MV=Ve,nm=au,NV=bo,q_=Function,FV=K_([].concat),BV=K_([].join),Qd={},jV=function(r,n,e){if(!MV(Qd,n)){for(var t=[],i=0;i=.1;)v=+a[c++%o],v>d&&(v=d),f=Math.sqrt(v*v/(1+u*u)),f=s<0?-f:f,n+=f,e+=u*f,h===!0?r.lineTo(n,e):r.moveTo(n,e),d-=v,h=!h}function e7(r,n,e,t){r.beginPath();var i=6,a=Math.PI*2/i;r.moveTo(n+t,e);for(var o=1;o1?e-1:0),i=1;i=a?r?"":void 0:(o=sm(t,i),o<55296||o>56319||i+1===a||(s=sm(t,i+1))<56320||s>57343?r?y7(t,i):o:r?m7(t,i,i+2):(o-55296<<10)+(s-56320)+65536)}},b7={codeAt:lm(!1),charAt:lm(!0)},$7=Ee,w7=He,um=$7.WeakMap,iE=w7(um)&&/native code/.test(String(um)),_7=ia,E7=tu,dm=_7("keys"),ou=function(r){return dm[r]||(dm[r]=E7(r))},S7=iE,nE=Ee,O7=Ue,T7=na,ec=Ve,tc=Vf,k7=ou,I7=Po,cm="Object already initialized",Oh=nE.TypeError,P7=nE.WeakMap,cl,Ua,hl,C7=function(r){return hl(r)?Ua(r):cl(r,{})},x7=function(r){return function(n){var e;if(!O7(n)||(e=Ua(n)).type!==r)throw new Oh("Incompatible receiver, "+r+" required");return e}};if(S7||tc.state){var ir=tc.state||(tc.state=new P7);ir.get=ir.get,ir.has=ir.has,ir.set=ir.set,cl=function(r,n){if(ir.has(r))throw new Oh(cm);return n.facade=r,ir.set(r,n),n},Ua=function(r){return ir.get(r)||{}},hl=function(r){return ir.has(r)}}else{var on=k7("state");I7[on]=!0,cl=function(r,n){if(ec(r,on))throw new Oh(cm);return n.facade=r,T7(r,on,n),n},Ua=function(r){return ec(r,on)?r[on]:{}},hl=function(r){return ec(r,on)}}var Ui={set:cl,get:Ua,has:hl,enforce:C7,getterFor:x7},Th=We,A7=Ve,aE=Function.prototype,R7=Th&&Object.getOwnPropertyDescriptor,Jf=A7(aE,"name"),D7=Jf&&function(){}.name==="something",M7=Jf&&(!Th||Th&&R7(aE,"name").configurable),N7={EXISTS:Jf,PROPER:D7,CONFIGURABLE:M7},su={},F7=We,B7=V_,j7=Nt,L7=Ft,z7=fr,H7=nu;su.f=F7&&!B7?Object.defineProperties:function(n,e){L7(n);for(var t=z7(e),i=H7(e),a=i.length,o=0,s;a>o;)j7.f(n,s=i[o++],t[s]);return n};var W7=Ut,U7=W7("document","documentElement"),V7=Ft,G7=su,hm=Kf,K7=Po,q7=U7,Y7=W_,X7=ou,fm=">",vm="<",kh="prototype",Ih="script",oE=X7("IE_PROTO"),rc=function(){},sE=function(r){return vm+Ih+fm+r+vm+"/"+Ih+fm},pm=function(r){r.write(sE("")),r.close();var n=r.parentWindow.Object;return r=null,n},J7=function(){var r=Y7("iframe"),n="java"+Ih+":",e;return r.style.display="none",q7.appendChild(r),r.src=String(n),e=r.contentWindow.document,e.open(),e.write(sE("document.F=Object")),e.close(),e.F},ys,zs=function(){try{ys=new ActiveXObject("htmlfile")}catch{}zs=typeof document<"u"?document.domain&&ys?pm(ys):J7():pm(ys);for(var r=hm.length;r--;)delete zs[kh][hm[r]];return zs()};K7[oE]=!0;var aa=Object.create||function(n,e){var t;return n!==null?(rc[kh]=V7(n),t=new rc,rc[kh]=null,t[oE]=n):t=zs(),e===void 0?t:G7.f(t,e)},Q7=te,lE=!Q7(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}),Z7=Ve,eG=He,tG=Ot,rG=ou,iG=lE,gm=rG("IE_PROTO"),Ph=Object,nG=Ph.prototype,lu=iG?Ph.getPrototypeOf:function(r){var n=tG(r);if(Z7(n,gm))return n[gm];var e=n.constructor;return eG(e)&&n instanceof e?e.prototype:n instanceof Ph?nG:null},aG=na,xo=function(r,n,e,t){return t&&t.enumerable?r[n]=e:aG(r,n,e),r},oG=te,sG=He,lG=Ue,uG=aa,ym=lu,dG=xo,cG=Se,Ch=cG("iterator"),uE=!1,wr,ic,nc;[].keys&&(nc=[].keys(),"next"in nc?(ic=ym(ym(nc)),ic!==Object.prototype&&(wr=ic)):uE=!0);var hG=!lG(wr)||oG(function(){var r={};return wr[Ch].call(r)!==r});hG?wr={}:wr=uG(wr);sG(wr[Ch])||dG(wr,Ch,function(){return this});var dE={IteratorPrototype:wr,BUGGY_SAFARI_ITERATORS:uE},fG=Yf,vG=Wi,pG=fG?{}.toString:function(){return"[object "+vG(this)+"]"},gG=Yf,yG=Nt.f,mG=na,bG=Ve,$G=pG,wG=Se,mm=wG("toStringTag"),oa=function(r,n,e,t){if(r){var i=e?r:r.prototype;bG(i,mm)||yG(i,mm,{configurable:!0,value:n}),t&&!gG&&mG(i,"toString",$G)}},sa={},_G=dE.IteratorPrototype,EG=aa,SG=wo,OG=oa,TG=sa,kG=function(){return this},IG=function(r,n,e,t){var i=n+" Iterator";return r.prototype=EG(_G,{next:SG(+!t,e)}),OG(r,i,!1,!0),TG[i]=kG,r},PG=ie,CG=Hi,xG=function(r,n,e){try{return PG(CG(Object.getOwnPropertyDescriptor(r,n)[e]))}catch{}},AG=He,RG=String,DG=TypeError,MG=function(r){if(typeof r=="object"||AG(r))return r;throw new DG("Can't set "+RG(r)+" as a prototype")},NG=xG,FG=Ft,BG=MG,jG=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,n={},e;try{e=NG(Object.prototype,"__proto__","set"),e(n,[]),r=n instanceof Array}catch{}return function(i,a){return FG(i),BG(a),r?e(i,a):i.__proto__=a,i}}():void 0),LG=G,zG=Mt,HG=N7,WG=IG,UG=lu,VG=oa,bm=xo,GG=Se,$m=sa,KG=dE,qG=HG.PROPER,ms=KG.BUGGY_SAFARI_ITERATORS,ac=GG("iterator"),wm="keys",bs="values",_m="entries",YG=function(){return this},Qf=function(r,n,e,t,i,a,o){WG(e,n,t);var s=function(g){if(g===i&&h)return h;if(!ms&&g&&g in d)return d[g];switch(g){case wm:return function(){return new e(this,g)};case bs:return function(){return new e(this,g)};case _m:return function(){return new e(this,g)}}return function(){return new e(this)}},l=n+" Iterator",u=!1,d=r.prototype,c=d[ac]||d["@@iterator"]||i&&d[i],h=!ms&&c||s(i),f=n==="Array"&&d.entries||c,v,p,y;if(f&&(v=UG(f.call(new r)),v!==Object.prototype&&v.next&&(VG(v,l,!0,!0),$m[l]=YG)),qG&&i===bs&&c&&c.name!==bs&&(u=!0,h=function(){return zG(c,this)}),i)if(p={values:s(bs),keys:a?h:s(wm),entries:s(_m)},o)for(y in p)(ms||u||!(y in d))&&bm(d,y,p[y]);else LG({target:n,proto:!0,forced:ms||u},p);return o&&d[ac]!==h&&bm(d,ac,h,{name:i}),$m[n]=h,p},Zf=function(r,n){return{value:r,done:n}},XG=b7.charAt,JG=vr,cE=Ui,QG=Qf,Em=Zf,hE="String Iterator",ZG=cE.set,eK=cE.getterFor(hE);QG(String,"String",function(r){ZG(this,{type:hE,string:JG(r),index:0})},function(){var n=eK(this),e=n.string,t=n.index,i;return t>=e.length?Em(void 0,!0):(i=XG(e,t),n.index+=i.length,Em(i,!1))});var tK=Mt,Sm=Ft,rK=Uf,fE=function(r,n,e){var t,i;Sm(r);try{if(t=rK(r,"return"),!t){if(n==="throw")throw e;return e}t=tK(t,r)}catch(a){i=!0,t=a}if(n==="throw")throw e;if(i)throw t;return Sm(t),e},iK=Ft,nK=fE,aK=function(r,n,e,t){try{return t?n(iK(e)[0],e[1]):n(e)}catch(i){nK(r,"throw",i)}},oK=Se,sK=sa,lK=oK("iterator"),uK=Array.prototype,vE=function(r){return r!==void 0&&(sK.Array===r||uK[lK]===r)},dK=ie,cK=He,xh=Vf,hK=dK(Function.toString);cK(xh.inspectSource)||(xh.inspectSource=function(r){return hK(r)});var fK=xh.inspectSource,vK=ie,pK=te,pE=He,gK=Wi,yK=Ut,mK=fK,gE=function(){},bK=[],yE=yK("Reflect","construct"),ev=/^\s*(?:class|function)\b/,$K=vK(ev.exec),wK=!ev.test(gE),va=function(n){if(!pE(n))return!1;try{return yE(gE,bK,n),!0}catch{return!1}},mE=function(n){if(!pE(n))return!1;switch(gK(n)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return wK||!!$K(ev,mK(n))}catch{return!0}};mE.sham=!0;var uu=!yE||pK(function(){var r;return va(va.call)||!va(Object)||!va(function(){r=!0})||r})?mE:va,_K=ru,EK=Nt,SK=wo,la=function(r,n,e){var t=_K(n);t in r?EK.f(r,t,SK(0,e)):r[t]=e},OK=Wi,Om=Uf,TK=ea,kK=sa,IK=Se,PK=IK("iterator"),du=function(r){if(!TK(r))return Om(r,PK)||Om(r,"@@iterator")||kK[OK(r)]},CK=Mt,xK=Hi,AK=Ft,RK=ra,DK=du,MK=TypeError,bE=function(r,n){var e=arguments.length<2?DK(r):n;if(xK(e))return AK(CK(e,r));throw new MK(RK(r)+" is not iterable")},NK=ko,FK=Mt,BK=Ot,jK=aK,LK=vE,zK=uu,HK=Vt,Tm=la,WK=bE,UK=du,km=Array,VK=function(n){var e=BK(n),t=zK(this),i=arguments.length,a=i>1?arguments[1]:void 0,o=a!==void 0;o&&(a=NK(a,i>2?arguments[2]:void 0));var s=UK(e),l=0,u,d,c,h,f,v;if(s&&!(this===km&&LK(s)))for(h=WK(e,s),f=h.next,d=t?new this:[];!(c=FK(f,h)).done;l++)v=o?jK(h,a,[c.value,l],!0):c.value,Tm(d,l,v);else for(u=HK(e),d=t?new this(u):km(u);u>l;l++)v=o?a(e[l],l):e[l],Tm(d,l,v);return d.length=l,d},GK=Se,$E=GK("iterator"),wE=!1;try{var KK=0,Im={next:function(){return{done:!!KK++}},return:function(){wE=!0}};Im[$E]=function(){return this},Array.from(Im,function(){throw 2})}catch{}var qK=function(r,n){try{if(!n&&!wE)return!1}catch{return!1}var e=!1;try{var t={};t[$E]=function(){return{next:function(){return{done:e=!0}}}},r(t)}catch{}return e},YK=G,XK=VK,JK=qK,QK=!JK(function(r){Array.from(r)});YK({target:"Array",stat:!0,forced:QK},{from:XK});var ZK=re,eq=ZK.Array.from,tq=eq,_E=tq,rq=_E,Vi=z(rq),iq=fr,Pm=sa,EE=Ui;Nt.f;var nq=Qf,$s=Zf,SE="Array Iterator",aq=EE.set,oq=EE.getterFor(SE);nq(Array,"Array",function(r,n){aq(this,{type:SE,target:iq(r),index:0,kind:n})},function(){var r=oq(this),n=r.target,e=r.kind,t=r.index++;if(!n||t>=n.length)return r.target=void 0,$s(void 0,!0);switch(e){case"keys":return $s(t,!1);case"values":return $s(n[t],!1)}return $s([t,n[t]],!1)},"values");Pm.Arguments=Pm.Array;var sq=du,lq=sq,uq={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},dq=uq,cq=Ee,hq=Wi,fq=na,Cm=sa,vq=Se,xm=vq("toStringTag");for(var oc in dq){var Am=cq[oc],sc=Am&&Am.prototype;sc&&hq(sc)!==xm&&fq(sc,xm,oc),Cm[oc]=Cm.Array}var pq=lq,gq=pq,yq=gq,mq=yq,bq=mq,$q=bq,OE=$q,TE=z(OE),wq=OE,Gi=z(wq);function x(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}var kE={exports:{}},_q=G,Eq=We,Rm=Nt.f;_q({target:"Object",stat:!0,forced:Object.defineProperty!==Rm,sham:!Eq},{defineProperty:Rm});var Sq=re,IE=Sq.Object,Oq=kE.exports=function(n,e,t){return IE.defineProperty(n,e,t)};IE.defineProperty.sham&&(Oq.sham=!0);var Tq=kE.exports,kq=Tq,PE=kq,Iq=PE,Pq=Iq,Cq=Pq,xq=Cq,Aq=xq,cu=z(Aq),Rq=Ar,Ki=Array.isArray||function(n){return Rq(n)==="Array"},Dq=TypeError,Mq=9007199254740991,tv=function(r){if(r>Mq)throw Dq("Maximum allowed index exceeded");return r},Dm=Ki,Nq=uu,Fq=Ue,Bq=Se,jq=Bq("species"),Mm=Array,Lq=function(r){var n;return Dm(r)&&(n=r.constructor,Nq(n)&&(n===Mm||Dm(n.prototype))?n=void 0:Fq(n)&&(n=n[jq],n===null&&(n=void 0))),n===void 0?Mm:n},zq=Lq,rv=function(r,n){return new(zq(r))(n===0?0:n)},Hq=te,Wq=Se,Uq=So,Vq=Wq("species"),Ao=function(r){return Uq>=51||!Hq(function(){var n=[],e=n.constructor={};return e[Vq]=function(){return{foo:1}},n[r](Boolean).foo!==1})},Gq=G,Kq=te,qq=Ki,Yq=Ue,Xq=Ot,Jq=Vt,Nm=tv,Fm=la,Qq=rv,Zq=Ao,eY=Se,tY=So,CE=eY("isConcatSpreadable"),rY=tY>=51||!Kq(function(){var r=[];return r[CE]=!1,r.concat()[0]!==r}),iY=function(r){if(!Yq(r))return!1;var n=r[CE];return n!==void 0?!!n:qq(r)},nY=!rY||!Zq("concat");Gq({target:"Array",proto:!0,arity:1,forced:nY},{concat:function(n){var e=Xq(this),t=Qq(e,0),i=0,a,o,s,l,u;for(a=-1,s=arguments.length;ay;y++)if((s||y in f)&&($=f[y],b=v($,y,h),r))if(n)m[y]=b;else if(b)switch(r){case 3:return!0;case 5:return $;case 6:return y;case 2:Lm(m,$)}else switch(r){case 4:return!1;case 7:Lm(m,$)}return a?-1:t||i?i:m}},ni={forEach:Mr(0),map:Mr(1),filter:Mr(2),some:Mr(3),every:Mr(4),find:Mr(5),findIndex:Mr(6),filterReject:Mr(7)},fu=G,vu=Ee,nv=Mt,xY=ie,An=We,Rn=ta,AY=te,je=Ve,RY=Pe,Ah=Ft,pu=fr,av=ru,DY=vr,Rh=wo,Va=aa,ME=nu,MY=Ro,NE=hu,NY=Co,FE=Zn,BE=Nt,FY=su,jE=Zl,zm=xo,BY=iv,ov=ia,jY=ou,LE=Po,Hm=tu,LY=Se,zY=Do,HY=Oe,WY=DE,UY=oa,zE=Ui,gu=ni.forEach,mt=jY("hidden"),yu="Symbol",Ga="prototype",VY=zE.set,Wm=zE.getterFor(yu),Qt=Object[Ga],$i=vu.Symbol,wa=$i&&$i[Ga],GY=vu.RangeError,KY=vu.TypeError,lc=vu.QObject,HE=FE.f,wi=BE.f,WE=NE.f,qY=jE.f,UE=xY([].push),Ir=ov("symbols"),Mo=ov("op-symbols"),YY=ov("wks"),Dh=!lc||!lc[Ga]||!lc[Ga].findChild,VE=function(r,n,e){var t=HE(Qt,n);t&&delete Qt[n],wi(r,n,e),t&&r!==Qt&&wi(Qt,n,t)},Mh=An&&AY(function(){return Va(wi({},"a",{get:function(){return wi(this,"a",{value:7}).a}})).a!==7})?VE:wi,uc=function(r,n){var e=Ir[r]=Va(wa);return VY(e,{type:yu,tag:r,description:n}),An||(e.description=n),e},mu=function(n,e,t){n===Qt&&mu(Mo,e,t),Ah(n);var i=av(e);return Ah(t),je(Ir,i)?(t.enumerable?(je(n,mt)&&n[mt][i]&&(n[mt][i]=!1),t=Va(t,{enumerable:Rh(0,!1)})):(je(n,mt)||wi(n,mt,Rh(1,{})),n[mt][i]=!0),Mh(n,i,t)):wi(n,i,t)},sv=function(n,e){Ah(n);var t=pu(e),i=ME(t).concat(YE(t));return gu(i,function(a){(!An||nv(GE,t,a))&&mu(n,a,t[a])}),n},XY=function(n,e){return e===void 0?Va(n):sv(Va(n),e)},GE=function(n){var e=av(n),t=nv(qY,this,e);return this===Qt&&je(Ir,e)&&!je(Mo,e)?!1:t||!je(this,e)||!je(Ir,e)||je(this,mt)&&this[mt][e]?t:!0},KE=function(n,e){var t=pu(n),i=av(e);if(!(t===Qt&&je(Ir,i)&&!je(Mo,i))){var a=HE(t,i);return a&&je(Ir,i)&&!(je(t,mt)&&t[mt][i])&&(a.enumerable=!0),a}},qE=function(n){var e=WE(pu(n)),t=[];return gu(e,function(i){!je(Ir,i)&&!je(LE,i)&&UE(t,i)}),t},YE=function(r){var n=r===Qt,e=WE(n?Mo:pu(r)),t=[];return gu(e,function(i){je(Ir,i)&&(!n||je(Qt,i))&&UE(t,Ir[i])}),t};Rn||($i=function(){if(RY(wa,this))throw new KY("Symbol is not a constructor");var n=!arguments.length||arguments[0]===void 0?void 0:DY(arguments[0]),e=Hm(n),t=function(i){this===Qt&&nv(t,Mo,i),je(this,mt)&&je(this[mt],e)&&(this[mt][e]=!1);var a=Rh(1,i);try{Mh(this,e,a)}catch(o){if(!(o instanceof GY))throw o;VE(this,e,a)}};return An&&Dh&&Mh(Qt,e,{configurable:!0,set:t}),uc(e,n)},wa=$i[Ga],zm(wa,"toString",function(){return Wm(this).tag}),zm($i,"withoutSetter",function(r){return uc(Hm(r),r)}),jE.f=GE,BE.f=mu,FY.f=sv,FE.f=KE,MY.f=NE.f=qE,NY.f=YE,zY.f=function(r){return uc(LY(r),r)},An&&BY(wa,"description",{configurable:!0,get:function(){return Wm(this).description}}));fu({global:!0,constructor:!0,wrap:!0,forced:!Rn,sham:!Rn},{Symbol:$i});gu(ME(YY),function(r){HY(r)});fu({target:yu,stat:!0,forced:!Rn},{useSetter:function(){Dh=!0},useSimple:function(){Dh=!1}});fu({target:"Object",stat:!0,forced:!Rn,sham:!An},{create:XY,defineProperty:mu,defineProperties:sv,getOwnPropertyDescriptor:KE});fu({target:"Object",stat:!0,forced:!Rn},{getOwnPropertyNames:qE});WY();UY($i,yu);LE[mt]=!0;var JY=ta,XE=JY&&!!Symbol.for&&!!Symbol.keyFor,QY=G,ZY=Ut,eX=Ve,tX=vr,JE=ia,rX=XE,dc=JE("string-to-symbol-registry"),iX=JE("symbol-to-string-registry");QY({target:"Symbol",stat:!0,forced:!rX},{for:function(r){var n=tX(r);if(eX(dc,n))return dc[n];var e=ZY("Symbol")(n);return dc[n]=e,iX[e]=n,e}});var nX=G,aX=Ve,oX=Oo,sX=ra,lX=ia,uX=XE,Um=lX("symbol-to-string-registry");nX({target:"Symbol",stat:!0,forced:!uX},{keyFor:function(n){if(!oX(n))throw new TypeError(sX(n)+" is not a symbol");if(aX(Um,n))return Um[n]}});var dX=ie,Vm=Ki,cX=He,Gm=Ar,hX=vr,Km=dX([].push),fX=function(r){if(cX(r))return r;if(Vm(r)){for(var n=r.length,e=[],t=0;tr.length)&&(n=r.length);for(var e=0,t=new Array(n);e1?arguments[1]:void 0)}});var FZ=Ge,BZ=FZ("Array").map,jZ=Pe,LZ=BZ,gc=Array.prototype,zZ=function(r){var n=r.map;return r===gc||jZ(gc,r)&&n===gc.map?LZ:n},HZ=zZ,WZ=HZ,UZ=WZ,Dn=z(UZ),VZ=G,GZ=Ot,pS=nu,KZ=te,qZ=KZ(function(){pS(1)});VZ({target:"Object",stat:!0,forced:qZ},{keys:function(n){return pS(GZ(n))}});var YZ=re,XZ=YZ.Object.keys,JZ=XZ,QZ=JZ,ZZ=QZ,be=z(ZZ),eee=G,tee=ie,gS=Date,ree=tee(gS.prototype.getTime);eee({target:"Date",stat:!0},{now:function(){return ree(new gS)}});var iee=re,nee=iee.Date.now,aee=nee,oee=aee,see=oee,vl=z(see),lee=te,ua=function(r,n){var e=[][r];return!!e&&lee(function(){e.call(null,n||function(){return 1},1)})},uee=ni.forEach,dee=ua,cee=dee("forEach"),hee=cee?[].forEach:function(n){return uee(this,n,arguments.length>1?arguments[1]:void 0)},fee=G,db=hee;fee({target:"Array",proto:!0,forced:[].forEach!==db},{forEach:db});var vee=Ge,pee=vee("Array").forEach,gee=pee,yee=gee,mee=Wi,bee=Ve,$ee=Pe,wee=yee,yc=Array.prototype,_ee={DOMTokenList:!0,NodeList:!0},Eee=function(r){var n=r.forEach;return r===yc||$ee(yc,r)&&n===yc.forEach||bee(_ee,mee(r))?wee:n},See=Eee,ue=z(See),Oee=G,Tee=ie,kee=Ki,Iee=Tee([].reverse),cb=[1,2];Oee({target:"Array",proto:!0,forced:String(cb)===String(cb.reverse())},{reverse:function(){return kee(this)&&(this.length=this.length),Iee(this)}});var Pee=Ge,Cee=Pee("Array").reverse,xee=Pe,Aee=Cee,mc=Array.prototype,Ree=function(r){var n=r.reverse;return r===mc||xee(mc,r)&&n===mc.reverse?Aee:n},Dee=Ree,Mee=Dee,Nee=Mee,_i=z(Nee),hb=ra,Fee=TypeError,yS=function(r,n){if(!delete r[n])throw new Fee("Cannot delete property "+hb(n)+" of "+hb(r))},Bee=G,jee=Ot,Lee=Io,zee=iu,Hee=Vt,Wee=cS,Uee=tv,Vee=rv,Gee=la,bc=yS,Kee=Ao,qee=Kee("splice"),Yee=Math.max,Xee=Math.min;Bee({target:"Array",proto:!0,forced:!qee},{splice:function(n,e){var t=jee(this),i=Hee(t),a=Lee(n,i),o=arguments.length,s,l,u,d,c,h;for(o===0?s=l=0:o===1?(s=0,l=i-a):(s=o-2,l=Xee(Yee(zee(e),0),i-a)),Uee(i+s-l),u=Vee(t,l),d=0;di-l+s;d--)bc(t,d-1)}else if(s>l)for(d=i-l;d>a;d--)c=d+l-1,h=d+s-1,c in t?t[h]=t[c]:bc(t,h);for(d=0;d1?arguments[1]:void 0)}});var ute=Ge,dte=ute("Array").includes,cte=Ue,hte=Ar,fte=Se,vte=fte("match"),pte=function(r){var n;return cte(r)&&((n=r[vte])!==void 0?!!n:hte(r)==="RegExp")},gte=pte,yte=TypeError,mte=function(r){if(gte(r))throw new yte("The method doesn't accept regular expressions");return r},bte=Se,$te=bte("match"),wte=function(r){var n=/./;try{"/./"[r](n)}catch{try{return n[$te]=!1,"/./"[r](n)}catch{}}return!1},_te=G,Ete=ie,Ste=mte,Ote=_o,fb=vr,Tte=wte,kte=Ete("".indexOf);_te({target:"String",proto:!0,forced:!Tte("includes")},{includes:function(n){return!!~kte(fb(Ote(this)),fb(Ste(n)),arguments.length>1?arguments[1]:void 0)}});var Ite=Ge,Pte=Ite("String").includes,vb=Pe,Cte=dte,xte=Pte,wc=Array.prototype,_c=String.prototype,Ate=function(r){var n=r.includes;return r===wc||vb(wc,r)&&n===wc.includes?Cte:typeof r=="string"||r===_c||vb(_c,r)&&n===_c.includes?xte:n},Rte=Ate,Dte=Rte,Mte=Dte,Kr=z(Mte),Nte=G,Fte=te,Bte=Ot,mS=lu,jte=lE,Lte=Fte(function(){mS(1)});Nte({target:"Object",stat:!0,forced:Lte,sham:!jte},{getPrototypeOf:function(n){return mS(Bte(n))}});var zte=re,Hte=zte.Object.getPrototypeOf,Wte=Hte,bS=Wte,Ute=bS,pb=z(Ute),Vte=G,Gte=ni.filter,Kte=Ao,qte=Kte("filter");Vte({target:"Array",proto:!0,forced:!qte},{filter:function(n){return Gte(this,n,arguments.length>1?arguments[1]:void 0)}});var Yte=Ge,Xte=Yte("Array").filter,Jte=Pe,Qte=Xte,Ec=Array.prototype,Zte=function(r){var n=r.filter;return r===Ec||Jte(Ec,r)&&n===Ec.filter?Qte:n},ere=Zte,tre=ere,rre=tre,bt=z(rre),dv=` +\v\f\r                 \u2028\u2029\uFEFF`,ire=ie,nre=_o,are=vr,Fh=dv,gb=ire("".replace),ore=RegExp("^["+Fh+"]+"),sre=RegExp("(^|[^"+Fh+"])["+Fh+"]+$"),Sc=function(r){return function(n){var e=are(nre(n));return r&1&&(e=gb(e,ore,"")),r&2&&(e=gb(e,sre,"$1")),e}},$S={start:Sc(1),end:Sc(2),trim:Sc(3)},wS=Ee,lre=te,ure=ie,dre=vr,cre=$S.trim,yb=dv,Ia=wS.parseInt,mb=wS.Symbol,bb=mb&&mb.iterator,_S=/^[+-]?0x/i,hre=ure(_S.exec),fre=Ia(yb+"08")!==8||Ia(yb+"0x16")!==22||bb&&!lre(function(){Ia(Object(bb))}),vre=fre?function(n,e){var t=cre(dre(n));return Ia(t,e>>>0||(hre(_S,t)?16:10))}:Ia,pre=G,$b=vre;pre({global:!0,forced:parseInt!==$b},{parseInt:$b});var gre=re,yre=gre.parseInt,mre=yre,bre=mre,$re=bre,Xt=z($re),wre=G,_re=Wf,Ere=Gf.indexOf,Sre=ua,Bh=_re([].indexOf),ES=!!Bh&&1/Bh([1],1,-0)<0,Ore=ES||!Sre("indexOf");wre({target:"Array",proto:!0,forced:Ore},{indexOf:function(n){var e=arguments.length>1?arguments[1]:void 0;return ES?Bh(this,n,e)||0:Ere(this,n,e)}});var Tre=Ge,kre=Tre("Array").indexOf,Ire=Pe,Pre=kre,Oc=Array.prototype,Cre=function(r){var n=r.indexOf;return r===Oc||Ire(Oc,r)&&n===Oc.indexOf?Pre:n},xre=Cre,Are=xre,Rre=Are,ee=z(Rre),Dre=G,Mre=We,Nre=aa;Dre({target:"Object",stat:!0,sham:!Mre},{create:Nre});var Fre=re,Bre=Fre.Object,jre=function(n,e){return Bre.create(n,e)},Lre=jre,SS=Lre,zre=SS,Ei=z(zre),jh=re,Hre=$o;jh.JSON||(jh.JSON={stringify:JSON.stringify});var Wre=function(n,e,t){return Hre(jh.JSON.stringify,null,arguments)},Ure=Wre,Vre=Ure,Gre=Vre,Fo=z(Gre),Kre=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",qre=TypeError,Yre=function(r,n){if(re,o=Jre(t)?t:rie(t),s=a?eie(arguments,e):[],l=a?function(){Xre(o,this,s)}:o;return n?r(l,i):r(l)}:r},nie=G,kS=Ee,aie=TS,wb=aie(kS.setInterval,!0);nie({global:!0,bind:!0,forced:kS.setInterval!==wb},{setInterval:wb});var oie=G,IS=Ee,sie=TS,_b=sie(IS.setTimeout,!0);oie({global:!0,bind:!0,forced:IS.setTimeout!==_b},{setTimeout:_b});var lie=re,uie=lie.setTimeout,die=uie,ur=z(die),cie=Ot,Eb=Io,hie=Vt,fie=function(n){for(var e=cie(this),t=hie(e),i=arguments.length,a=Eb(i>1?arguments[1]:void 0,t),o=i>2?arguments[2]:void 0,s=o===void 0?t:Eb(o,t);s>a;)e[a++]=n;return e},vie=G,pie=fie;vie({target:"Array",proto:!0},{fill:pie});var gie=Ge,yie=gie("Array").fill,mie=Pe,bie=yie,Tc=Array.prototype,$ie=function(r){var n=r.fill;return r===Tc||mie(Tc,r)&&n===Tc.fill?bie:n},wie=$ie,_ie=wie,Eie=_ie,Bo=z(Eie);/*! Hammer.JS - v2.0.17-rc - 2019-12-16 + * http://naver.github.io/egjs + * + * Forked By Naver egjs + * Copyright (c) hammerjs + * Licensed under the MIT license */function er(){return er=Object.assign||function(r){for(var n=1;n"u"?{style:{}}:document.createElement("div"),Oie="function",bn=Math.round,Ai=Math.abs,cv=Date.now;function bu(r,n){for(var e,t,i=n[0].toUpperCase()+n.slice(1),a=0;a"u"?Er={}:Er=window;var PS=bu(Sie.style,"touchAction"),CS=PS!==void 0;function Tie(){if(!CS)return!1;var r={},n=Er.CSS&&Er.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(e){return r[e]=n?Er.CSS.supports("touch-action",e):!0}),r}var xS="compute",AS="auto",zh="manipulation",Si="none",Ka="pan-x",qa="pan-y",Es=Tie(),kie=/mobile|tablet|ip(ad|hone|od)|android/i,RS="ontouchstart"in Er,Iie=bu(Er,"PointerEvent")!==void 0,Pie=RS&&kie.test(navigator.userAgent),jo="touch",Cie="pen",hv="mouse",xie="kinect",Aie=25,dt=1,qi=2,De=4,wt=8,pl=1,Lo=2,zo=4,Ho=8,Mn=16,dr=Lo|zo,Oi=Ho|Mn,DS=dr|Oi,MS=["x","y"],gl=["clientX","clientY"];function Sr(r,n,e){var t;if(r)if(r.forEach)r.forEach(n,e);else if(r.length!==void 0)for(t=0;t-1}function Rie(r){if(vi(r,Si))return Si;var n=vi(r,Ka),e=vi(r,qa);return n&&e?Si:n||e?n?Ka:qa:vi(r,zh)?zh:AS}var NS=function(){function r(e,t){this.manager=e,this.set(t)}var n=r.prototype;return n.set=function(t){t===xS&&(t=this.compute()),CS&&this.manager.element.style&&Es[t]&&(this.manager.element.style[PS]=t),this.actions=t.toLowerCase().trim()},n.update=function(){this.set(this.manager.options.touchAction)},n.compute=function(){var t=[];return Sr(this.manager.recognizers,function(i){$u(i.options.enable,[i])&&(t=t.concat(i.getTouchAction()))}),Rie(t.join(" "))},n.preventDefaults=function(t){var i=t.srcEvent,a=t.offsetDirection;if(this.manager.session.prevented){i.preventDefault();return}var o=this.actions,s=vi(o,Si)&&!Es[Si],l=vi(o,qa)&&!Es[qa],u=vi(o,Ka)&&!Es[Ka];if(s){var d=t.pointers.length===1,c=t.distance<2,h=t.deltaTime<250;if(d&&c&&h)return}if(!(u&&l)&&(s||l&&a&dr||u&&a&Oi))return this.preventSrc(i)},n.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},r}();function fv(r,n){for(;r;){if(r===n)return!0;r=r.parentNode}return!1}function FS(r){var n=r.length;if(n===1)return{x:bn(r[0].clientX),y:bn(r[0].clientY)};for(var e=0,t=0,i=0;i=Ai(n)?r<0?Lo:zo:n<0?Ho:Mn}function Die(r,n){var e=n.center,t=r.offsetDelta||{},i=r.prevDelta||{},a=r.prevInput||{};(n.eventType===dt||a.eventType===De)&&(i=r.prevDelta={x:a.deltaX||0,y:a.deltaY||0},t=r.offsetDelta={x:e.x,y:e.y}),n.deltaX=i.x+(e.x-t.x),n.deltaY=i.y+(e.y-t.y)}function jS(r,n,e){return{x:n/r||0,y:e/r||0}}function Mie(r,n){return yl(n[0],n[1],gl)/yl(r[0],r[1],gl)}function Nie(r,n){return Hh(n[1],n[0],gl)+Hh(r[1],r[0],gl)}function Fie(r,n){var e=r.lastInterval||n,t=n.timeStamp-e.timeStamp,i,a,o,s;if(n.eventType!==wt&&(t>Aie||e.velocity===void 0)){var l=n.deltaX-e.deltaX,u=n.deltaY-e.deltaY,d=jS(t,l,u);a=d.x,o=d.y,i=Ai(d.x)>Ai(d.y)?d.x:d.y,s=BS(l,u),r.lastInterval=n}else i=e.velocity,a=e.velocityX,o=e.velocityY,s=e.direction;n.velocity=i,n.velocityX=a,n.velocityY=o,n.direction=s}function Bie(r,n){var e=r.session,t=n.pointers,i=t.length;e.firstInput||(e.firstInput=Ob(n)),i>1&&!e.firstMultiple?e.firstMultiple=Ob(n):i===1&&(e.firstMultiple=!1);var a=e.firstInput,o=e.firstMultiple,s=o?o.center:a.center,l=n.center=FS(t);n.timeStamp=cv(),n.deltaTime=n.timeStamp-a.timeStamp,n.angle=Hh(s,l),n.distance=yl(s,l),Die(e,n),n.offsetDirection=BS(n.deltaX,n.deltaY);var u=jS(n.deltaTime,n.deltaX,n.deltaY);n.overallVelocityX=u.x,n.overallVelocityY=u.y,n.overallVelocity=Ai(u.x)>Ai(u.y)?u.x:u.y,n.scale=o?Mie(o.pointers,t):1,n.rotation=o?Nie(o.pointers,t):0,n.maxPointers=e.prevInput?n.pointers.length>e.prevInput.maxPointers?n.pointers.length:e.prevInput.maxPointers:n.pointers.length,Fie(e,n);var d=r.element,c=n.srcEvent,h;c.composedPath?h=c.composedPath()[0]:c.path?h=c.path[0]:h=c.target,fv(h,d)&&(d=h),n.target=d}function jie(r,n,e){var t=e.pointers.length,i=e.changedPointers.length,a=n&dt&&t-i===0,o=n&(De|wt)&&t-i===0;e.isFirst=!!a,e.isFinal=!!o,a&&(r.session={}),e.eventType=n,Bie(r,e),r.emit("hammer.input",e),r.recognize(e),r.session.prevInput=e}function Ya(r){return r.trim().split(/\s+/g)}function Pa(r,n,e){Sr(Ya(n),function(t){r.addEventListener(t,e,!1)})}function Ca(r,n,e){Sr(Ya(n),function(t){r.removeEventListener(t,e,!1)})}function Tb(r){var n=r.ownerDocument||r;return n.defaultView||n.parentWindow||window}var da=function(){function r(e,t){var i=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(a){$u(e.options.enable,[e])&&i.handler(a)},this.init()}var n=r.prototype;return n.handler=function(){},n.init=function(){this.evEl&&Pa(this.element,this.evEl,this.domHandler),this.evTarget&&Pa(this.target,this.evTarget,this.domHandler),this.evWin&&Pa(Tb(this.element),this.evWin,this.domHandler)},n.destroy=function(){this.evEl&&Ca(this.element,this.evEl,this.domHandler),this.evTarget&&Ca(this.target,this.evTarget,this.domHandler),this.evWin&&Ca(Tb(this.element),this.evWin,this.domHandler)},r}();function Ri(r,n,e){if(r.indexOf&&!e)return r.indexOf(n);for(var t=0;tl[n]}):t=t.sort()),t}var Hie={touchstart:dt,touchmove:qi,touchend:De,touchcancel:wt},Wie="touchstart touchmove touchend touchcancel",pv=function(r){Gt(n,r);function n(){var t;return n.prototype.evTarget=Wie,t=r.apply(this,arguments)||this,t.targetIds={},t}var e=n.prototype;return e.handler=function(i){var a=Hie[i.type],o=Uie.call(this,i,a);o&&this.callback(this.manager,a,{pointers:o[0],changedPointers:o[1],pointerType:jo,srcEvent:i})},n}(da);function Uie(r,n){var e=Xa(r.touches),t=this.targetIds;if(n&(dt|qi)&&e.length===1)return t[e[0].identifier]=!0,[e,e];var i,a,o=Xa(r.changedTouches),s=[],l=this.target;if(a=e.filter(function(u){return fv(u.target,l)}),n===dt)for(i=0;i-1&&i.splice(s,1)};setTimeout(a,qie)}}function Yie(r,n){r&dt?(this.primaryTouch=n.changedPointers[0].identifier,Ib.call(this,n)):r&(De|wt)&&Ib.call(this,n)}function Xie(r){for(var n=r.srcEvent.clientX,e=r.srcEvent.clientY,t=0;t-1&&this.requireFail.splice(i,1),this},n.hasRequireFailures=function(){return this.requireFail.length>0},n.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},n.emit=function(t){var i=this,a=this.state;function o(s){i.manager.emit(s,t)}a=qr&&o(i.options.event+Pb(a))},n.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=or},n.canEmit=function(){for(var t=0;ta.threshold&&l&a.direction},e.attrTest=function(i){return Fn.prototype.attrTest.call(this,i)&&(this.state&Ht||!(this.state&Ht)&&this.directionTest(i))},e.emit=function(i){this.pX=i.deltaX,this.pY=i.deltaY;var a=US(i.direction);a&&(i.additionalEvent=this.options.event+a),r.prototype.emit.call(this,i)},n}(Fn),VS=function(r){Gt(n,r);function n(t){return t===void 0&&(t={}),r.call(this,er({event:"swipe",threshold:10,velocity:.3,direction:dr|Oi,pointers:1},t))||this}var e=n.prototype;return e.getTouchAction=function(){return yv.prototype.getTouchAction.call(this)},e.attrTest=function(i){var a=this.options.direction,o;return a&(dr|Oi)?o=i.overallVelocity:a&dr?o=i.overallVelocityX:a&Oi&&(o=i.overallVelocityY),r.prototype.attrTest.call(this,i)&&a&i.offsetDirection&&i.distance>this.options.threshold&&i.maxPointers===this.options.pointers&&Ai(o)>this.options.velocity&&i.eventType&De},e.emit=function(i){var a=US(i.offsetDirection);a&&this.manager.emit(this.options.event+a,i),this.manager.emit(this.options.event,i)},n}(Fn),GS=function(r){Gt(n,r);function n(t){return t===void 0&&(t={}),r.call(this,er({event:"pinch",threshold:0,pointers:2},t))||this}var e=n.prototype;return e.getTouchAction=function(){return[Si]},e.attrTest=function(i){return r.prototype.attrTest.call(this,i)&&(Math.abs(i.scale-1)>this.options.threshold||this.state&Ht)},e.emit=function(i){if(i.scale!==1){var a=i.scale<1?"in":"out";i.additionalEvent=this.options.event+a}r.prototype.emit.call(this,i)},n}(Fn),KS=function(r){Gt(n,r);function n(t){return t===void 0&&(t={}),r.call(this,er({event:"rotate",threshold:0,pointers:2},t))||this}var e=n.prototype;return e.getTouchAction=function(){return[Si]},e.attrTest=function(i){return r.prototype.attrTest.call(this,i)&&(Math.abs(i.rotation)>this.options.threshold||this.state&Ht)},n}(Fn),qS=function(r){Gt(n,r);function n(t){var i;return t===void 0&&(t={}),i=r.call(this,er({event:"press",pointers:1,time:251,threshold:9},t))||this,i._timer=null,i._input=null,i}var e=n.prototype;return e.getTouchAction=function(){return[AS]},e.process=function(i){var a=this,o=this.options,s=i.pointers.length===o.pointers,l=i.distanceo.time;if(this._input=i,!l||!s||i.eventType&(De|wt)&&!u)this.reset();else if(i.eventType&dt)this.reset(),this._timer=setTimeout(function(){a.state=Or,a.tryEmit()},o.time);else if(i.eventType&De)return Or;return or},e.reset=function(){clearTimeout(this._timer)},e.emit=function(i){this.state===Or&&(i&&i.eventType&De?this.manager.emit(this.options.event+"up",i):(this._input.timeStamp=cv(),this.manager.emit(this.options.event,this._input)))},n}(Wo),YS={domEvents:!1,touchAction:xS,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Cb=[[KS,{enable:!1}],[GS,{enable:!1},["rotate"]],[VS,{direction:dr}],[yv,{direction:dr},["swipe"]],[Wh],[Wh,{event:"doubletap",taps:2},["tap"]],[qS]],ene=1,xb=2;function Ab(r,n){var e=r.element;if(e.style){var t;Sr(r.options.cssProps,function(i,a){t=bu(e.style,a),n?(r.oldCssProps[t]=e.style[t],e.style[t]=i):e.style[t]=r.oldCssProps[t]||""}),n||(r.oldCssProps={})}}function tne(r,n){var e=document.createEvent("Event");e.initEvent(r,!0,!0),e.gesture=n,n.target.dispatchEvent(e)}var Rb=function(){function r(e,t){var i=this;this.options=xi({},YS,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=Jie(this),this.touchAction=new NS(this,this.options.touchAction),Ab(this,!0),Sr(this.options.recognizers,function(a){var o=i.add(new a[0](a[1]));a[2]&&o.recognizeWith(a[2]),a[3]&&o.requireFailure(a[3])},this)}var n=r.prototype;return n.set=function(t){return xi(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},n.stop=function(t){this.session.stopped=t?xb:ene},n.recognize=function(t){var i=this.session;if(!i.stopped){this.touchAction.preventDefaults(t);var a,o=this.recognizers,s=i.curRecognizer;(!s||s&&s.state&Or)&&(i.curRecognizer=null,s=null);for(var l=0;l\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,t,a),r.apply(this,arguments)}}var JS=XS(function(r,n,e){for(var t=Object.keys(n),i=0;i=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(u){throw u},f:i}}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 a=!0,o=!1,s;return{s:function(){e=e.call(r)},n:function(){var u=e.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function dne(r,n){var e;if(r){if(typeof r=="string")return Mb(r,n);var t=Je(e=Object.prototype.toString.call(r)).call(e,8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Vi(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Mb(r,n)}}function Mb(r,n){(n==null||n>r.length)&&(n=r.length);for(var e=0,t=new Array(n);e>>0,i-=r,i*=r,r=i>>>0,i-=r,r+=i*4294967296}return(r>>>0)*23283064365386963e-26}}function vne(){var r=function(){};return{on:r,off:r,destroy:r,emit:r,get:function(){return{set:r}}}}var mv=typeof window<"u"?window.Hammer||une:function(){return vne()};function sr(r){var n=this,e;this._cleanupQueue=[],this.active=!1,this._dom={container:r,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){n._dom.overlay.parentNode.removeChild(n._dom.overlay)});var t=mv(this._dom.overlay);t.on("tap",k(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(function(){t.destroy()});var i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];ue(i).call(i,function(a){t.on(a,function(o){o.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(a){pne(a.target,r)||n.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",n._onClick)})),this._escListener=function(a){("key"in a?a.key==="Escape":a.keyCode===27)&&n.deactivate()}}tE(sr.prototype);sr.current=null;sr.prototype.destroy=function(){var r,n;this.deactivate();var e=ZS(_i(r=_r(n=this._cleanupQueue).call(n,0)).call(r)),t;try{for(e.s();!(t=e.n()).done;){var i=t.value;i()}}catch(a){e.e(a)}finally{e.f()}};sr.prototype.activate=function(){sr.current&&sr.current.deactivate(),sr.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)};sr.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")};sr.prototype._onTapOverlay=function(r){this.activate(),r.srcEvent.stopPropagation()};function pne(r,n){for(;r;){if(r===n)return!0;r=r.parentNode}return!1}var gne=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,yne=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,mne=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,bne=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function Br(r){if(r)for(;r.hasChildNodes()===!0;){var n=r.firstChild;n&&(Br(n),r.removeChild(n))}}function _n(r){return r instanceof String||typeof r=="string"}function Nb(r){return le(r)==="object"&&r!==null}function Di(r,n,e,t){var i=!1;t===!0&&(i=n[e]===null&&r[e]!==void 0),i?delete r[e]:r[e]=n[e]}function eO(r,n){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(var t in r)if(n[t]!==void 0)if(n[t]===null||le(n[t])!=="object")Di(r,n,t,e);else{var i=r[t],a=n[t];Nb(i)&&Nb(a)&&eO(i,a,e)}}function ca(r,n,e){var t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(oe(e))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0;i3&&arguments[3]!==void 0?arguments[3]:!1;if(oe(e))throw new TypeError("Arrays are not supported by deepExtend");for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&!Kr(r).call(r,i))if(e[i]&&e[i].constructor===Object)n[i]===void 0&&(n[i]={}),n[i].constructor===Object?ce(n[i],e[i]):Di(n,e,i,t);else if(oe(e[i])){n[i]=[];for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:!1,t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)||e===!0)if(le(n[i])==="object"&&n[i]!==null&&pb(n[i])===Object.prototype)r[i]===void 0?r[i]=ce({},n[i],e):le(r[i])==="object"&&r[i]!==null&&pb(r[i])===Object.prototype?ce(r[i],n[i],e):Di(r,n,i,t);else if(oe(n[i])){var a;r[i]=Je(a=n[i]).call(a)}else Di(r,n,i,t);return r}function bl(r,n){var e;return uv(e=[]).call(e,nr(r),[n])}function $ne(r){return Je(r).call(r)}function wne(r){return r.getBoundingClientRect().left}function _ne(r){return r.getBoundingClientRect().top}function Z(r,n){if(oe(r))for(var e=r.length,t=0;t3&&arguments[3]!==void 0?arguments[3]:{},i=function(v){return v!=null},a=function(v){return v!==null&&le(v)==="object"},o=function(v){for(var p in v)if(Object.prototype.hasOwnProperty.call(v,p))return!1;return!0};if(!a(r))throw new Error("Parameter mergeTarget must be an object");if(!a(n))throw new Error("Parameter options must be an object");if(!i(e))throw new Error("Parameter option must have a value");if(!a(t))throw new Error("Parameter globalOptions must be an object");var s=function(v,p,y){a(v[y])||(v[y]={});var g=p[y],m=v[y];for(var $ in g)Object.prototype.hasOwnProperty.call(g,$)&&(m[$]=g[$])},l=n[e],u=a(t)&&!o(t),d=u?t[e]:void 0,c=d?d.enabled:void 0;if(l!==void 0){if(typeof l=="boolean"){a(r[e])||(r[e]={}),r[e].enabled=l;return}if(l===null&&!a(r[e]))if(i(d))r[e]=Ei(d);else return;if(a(l)){var h=!0;l.enabled!==void 0?h=l.enabled:c!==void 0&&(h=d.enabled),s(r,n,e),r[e].enabled=h}}}var One={linear:function(n){return n},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return n*(2-n)},easeInOutQuad:function(n){return n<.5?2*n*n:-1+(4-2*n)*n},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return--n*n*n+1},easeInOutCubic:function(n){return n<.5?4*n*n*n:(n-1)*(2*n-2)*(2*n-2)+1},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1- --n*n*n*n},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-8*--n*n*n*n},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1+--n*n*n*n*n},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1+16*--n*n*n*n*n}};function jr(r,n){var e;oe(n)||(n=[n]);var t=ZS(r),i;try{for(t.s();!(i=t.n()).done;){var a=i.value;if(a){e=a[n[0]];for(var o=1;o0&&arguments[0]!==void 0?arguments[0]:1;x(this,r),this.pixelRatio=n,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return A(r,[{key:"insertTo",value:function(e){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if(typeof e=="function")this.updateCallback=e;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(e){if(typeof e=="function")this.closeCallback=e;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(e){if(typeof e=="string")return Tne[e]}},{key:"setColor",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e!=="none"){var i,a=this._isColorString(e);if(a!==void 0&&(e=a),_n(e)===!0){if(iO(e)===!0){var o=e.substr(4).substr(0,e.length-5).split(",");i={r:o[0],g:o[1],b:o[2],a:1}}else if(Sne(e)===!0){var s=e.substr(5).substr(0,e.length-6).split(",");i={r:s[0],g:s[1],b:s[2],a:s[3]}}else if(rO(e)===!0){var l=bv(e);i={r:l.r,g:l.g,b:l.b,a:1}}}else if(e instanceof Object&&e.r!==void 0&&e.g!==void 0&&e.b!==void 0){var u=e.a!==void 0?e.a:"1.0";i={r:e.r,g:e.g,b:e.b,a:u}}if(i===void 0)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Fo(e));this._setColor(i,t)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;t===!0&&(this.previousColor=Re({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",ur(function(){e.closeCallback!==void 0&&(e.closeCallback(),e.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;t===!0&&(this.initialColor=Re({},e)),this.color=e;var i=_a(e.r,e.g,e.b),a=2*Math.PI,o=this.r*i.s,s=this.centerCoordinates.x+o*Math.sin(a*i.h),l=this.centerCoordinates.y+o*Math.cos(a*i.h);this.colorPickerSelector.style.left=s-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=l-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var t=_a(this.color.r,this.color.g,this.color.b);t.v=e/100;var i=Ws(t.h,t.s,t.v);i.a=this.color.a,this.color=i,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,t=_a(e.r,e.g,e.b),i=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var a=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,a,o),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-t.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Bo(i).call(i),this.brightnessRange.value=100*t.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var e,t,i,a;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var s=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(s.webkitBackingStorePixelRatio||s.mozBackingStorePixelRatio||s.msBackingStorePixelRatio||s.oBackingStorePixelRatio||s.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch{}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var l=this;this.opacityRange.onchange=function(){l._setOpacity(this.value)},this.opacityRange.oninput=function(){l._setOpacity(this.value)},this.brightnessRange.onchange=function(){l._setBrightness(this.value)},this.brightnessRange.oninput=function(){l._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=k(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=k(t=this._apply).call(t,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=k(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=k(a=this._loadLast).call(a,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new mv(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(t){t.isFirst&&e._moveSelector(t)}),this.hammer.on("tap",function(t){e._moveSelector(t)}),this.hammer.on("panstart",function(t){e._moveSelector(t)}),this.hammer.on("panmove",function(t){e._moveSelector(t)}),this.hammer.on("panend",function(t){e._moveSelector(t)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var e=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var t=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,t,i);var a,o,s,l;this.centerCoordinates={x:t*.5,y:i*.5},this.r=.49*t;var u=2*Math.PI/360,d=1/360,c=1/this.r,h;for(s=0;s<360;s++)for(l=0;l3&&arguments[3]!==void 0?arguments[3]:1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};x(this,r),this.parent=n,this.changedOptions=[],this.container=e,this.allowCreation=!1,this.hideOption=a,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Re(this.options,this.defaultOptions),this.configureOptions=t,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new kne(i),this.wrapper=void 0}return A(r,[{key:"setOptions",value:function(e){if(e!==void 0){this.popupHistory={},this._removePopup();var t=!0;if(typeof e=="string")this.options.filter=e;else if(oe(e))this.options.filter=e.join();else if(le(e)==="object"){if(e==null)throw new TypeError("options cannot be null");e.container!==void 0&&(this.options.container=e.container),bt(e)!==void 0&&(this.options.filter=bt(e)),e.showButton!==void 0&&(this.options.showButton=e.showButton),e.enabled!==void 0&&(t=e.enabled)}else typeof e=="boolean"?(this.options.filter=!0,t=e):typeof e=="function"&&(this.options.filter=e,t=!0);bt(this.options)===!1&&(t=!1),this.options.enabled=t}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var e=bt(this.options),t=0,i=!1;for(var a in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,a)&&(this.allowCreation=!1,i=!1,typeof e=="function"?(i=e(a,[]),i=i||this._handleObject(this.configureOptions[a],[a],!0)):(e===!0||ee(e).call(e,a)!==-1)&&(i=!0),i!==!1&&(this.allowCreation=!0,t>0&&this._makeItem([]),this._makeHeader(a),this._handleObject(this.configureOptions[a],[a])),t++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var e=0;e1?i-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:!1,a=document.createElement("div");if(a.className="vis-configuration vis-config-label vis-config-s"+t.length,i===!0){for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(Gh("i","b",e))}else a.innerText=e+":";return a}},{key:"_makeDropdown",value:function(e,t,i){var a=document.createElement("select");a.className="vis-configuration vis-config-select";var o=0;t!==void 0&&ee(e).call(e,t)!==-1&&(o=ee(e).call(e,t));for(var s=0;ss&&s!==1&&(u.max=Math.ceil(t*h),c=u.max,d="range increased"),u.value=t}else u.value=a;var f=document.createElement("input");f.className="vis-configuration vis-config-rangeinput",f.value=u.value;var v=this;u.onchange=function(){f.value=this.value,v._update(Number(this.value),i)},u.oninput=function(){f.value=this.value};var p=this._makeLabel(i[i.length-1],i),y=this._makeItem(i,p,u,f);d!==""&&this.popupHistory[y]!==c&&(this.popupHistory[y]=c,this._setupPopup(d,y))}},{key:"_makeButton",value:function(){var e=this;if(this.options.showButton===!0){var t=document.createElement("div");t.className="vis-configuration vis-config-button",t.innerText="generate options",t.onclick=function(){e._printOptions()},t.onmouseover=function(){t.className="vis-configuration vis-config-button hover"},t.onmouseout=function(){t.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(t)}}},{key:"_setupPopup",value:function(e,t){var i=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=!1,o=bt(this.options),s=!1;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){a=!0;var u=e[l],d=bl(t,l);if(typeof o=="function"&&(a=o(l,t),a===!1&&!oe(u)&&typeof u!="string"&&typeof u!="boolean"&&u instanceof Object&&(this.allowCreation=!1,a=this._handleObject(u,d,!0),this.allowCreation=i===!1)),a!==!1){s=!0;var c=this._getValue(d);if(oe(u))this._handleArray(u,c,d);else if(typeof u=="string")this._makeTextInput(u,c,d);else if(typeof u=="boolean")this._makeCheckbox(u,c,d);else if(u instanceof Object){if(!this.hideOption(t,l,this.moduleOptions))if(u.enabled!==void 0){var h=bl(d,"enabled"),f=this._getValue(h);if(f===!0){var v=this._makeLabel(l,d,!0);this._makeItem(d,v),s=this._handleObject(u,d)||s}else this._makeCheckbox(u,f,d)}else{var p=this._makeLabel(l,d,!0);this._makeItem(d,p),s=this._handleObject(u,d)||s}}else console.error("dont know how to handle",u,l,d)}}return s}},{key:"_handleArray",value:function(e,t,i){typeof e[0]=="string"&&e[0]==="color"?(this._makeColorField(e,t,i),e[1]!==t&&this.changedOptions.push({path:i,value:t})):typeof e[0]=="string"?(this._makeDropdown(e,t,i),e[0]!==t&&this.changedOptions.push({path:i,value:t})):typeof e[0]=="number"&&(this._makeRange(e,t,i),e[0]!==t&&this.changedOptions.push({path:i,value:Number(t)}))}},{key:"_update",value:function(e,t){var i=this._constructOptions(e,t);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}},{key:"_constructOptions",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i;e=e==="true"?!0:e,e=e==="false"?!1:e;for(var o=0;oo-this.padding&&(u=!0),u?s=this.x-i:s=this.x,d?l=this.y-t:l=this.y}else l=this.y-t,l+t+this.padding>a&&(l=a-t-this.padding),lo&&(s=o-i-this.padding),so.distance?u=" in "+r.printLocation(a.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+r.printLocation(o.path,o.closestMatch,""):a.distance<=s?u='. Did you mean "'+a.closestMatch+'"?'+r.printLocation(a.path,e):u=". Did you mean one of these: "+r.print(be(t))+r.printLocation(i,e),console.error('%cUnknown option detected: "'+e+'"'+u,Kh),pa=!0}},{key:"findInOptions",value:function(e,t,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=1e9,s="",l=[],u=e.toLowerCase(),d=void 0;for(var c in t){var h=void 0;if(t[c].__type__!==void 0&&a===!0){var f=r.findInOptions(e,t[c],bl(i,c));o>f.distance&&(s=f.closestMatch,l=f.path,o=f.distance,d=f.indexMatch)}else{var v;ee(v=c.toLowerCase()).call(v,u)!==-1&&(d=c),h=r.levenshteinDistance(e,c),o>h&&(s=c,l=$ne(i),o=h)}}return{closestMatch:s,path:l,distance:o,indexMatch:d}}},{key:"printLocation",value:function(e,t){for(var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at: +`,a=` + +`+i+`options = { +`,o=0;o":!0,"--":!0},zr="",Bn=0,Q="",V="",pt=ot.NULL;function Nne(){Bn=0,Q=zr.charAt(0)}function Fe(){Bn++,Q=zr.charAt(Bn)}function sn(){return zr.charAt(Bn+1)}function jb(r){var n=r.charCodeAt(0);return n<47?n===35||n===46:n<59?n>47:n<91?n>64:n<96?n===95:n<123?n>96:!1}function Jr(r,n){if(r||(r={}),n)for(var e in n)n.hasOwnProperty(e)&&(r[e]=n[e]);return r}function Fne(r,n,e){for(var t=n.split("."),i=r;t.length;){var a=t.shift();t.length?(i[a]||(i[a]={}),i=i[a]):i[a]=e}}function oO(r,n){for(var e,t,i=null,a=[r],o=r;o.parent;)a.push(o.parent),o=o.parent;if(o.nodes){for(e=0,t=o.nodes.length;e=0;e--){var s,l=a[e];l.nodes||(l.nodes=[]),ee(s=l.nodes).call(s,i)===-1&&l.nodes.push(i)}n.attr&&(i.attr=Jr(i.attr,n.attr))}function Bne(r,n){if(r.edges||(r.edges=[]),r.edges.push(n),r.edge){var e=Jr({},r.edge);n.attr=Jr(e,n.attr)}}function sO(r,n,e,t,i){var a={from:n,to:e,type:t};return r.edge&&(a.attr=Jr({},r.edge)),a.attr=Jr(a.attr||{},i),i!=null&&i.hasOwnProperty("arrows")&&i.arrows!=null&&(a.arrows={to:{enabled:!0,type:i.arrows.type}},i.arrows=null),a}function he(){for(pt=ot.NULL,V="";Q===" "||Q===" "||Q===` +`||Q==="\r";)Fe();do{var r=!1;if(Q==="#"){for(var n=Bn-1;zr.charAt(n)===" "||zr.charAt(n)===" ";)n--;if(zr.charAt(n)===` +`||zr.charAt(n)===""){for(;Q!=""&&Q!=` +`;)Fe();r=!0}}if(Q==="/"&&sn()==="/"){for(;Q!=""&&Q!=` +`;)Fe();r=!0}if(Q==="/"&&sn()==="*"){for(;Q!="";)if(Q==="*"&&sn()==="/"){Fe(),Fe();break}else Fe();r=!0}for(;Q===" "||Q===" "||Q===` +`||Q==="\r";)Fe()}while(r);if(Q===""){pt=ot.DELIMITER;return}var e=Q+sn();if(Bb[e]){pt=ot.DELIMITER,V=e,Fe(),Fe();return}if(Bb[Q]){pt=ot.DELIMITER,V=Q,Fe();return}if(jb(Q)||Q==="-"){for(V+=Q,Fe();jb(Q);)V+=Q,Fe();V==="false"?V=!1:V==="true"?V=!0:isNaN(Number(V))||(V=Number(V)),pt=ot.IDENTIFIER;return}if(Q==='"'){for(Fe();Q!=""&&(Q!='"'||Q==='"'&&sn()==='"');)Q==='"'?(V+=Q,Fe()):Q==="\\"&&sn()==="n"?(V+=` +`,Fe()):V+=Q,Fe();if(Q!='"')throw st('End of string " expected');Fe(),pt=ot.IDENTIFIER;return}for(pt=ot.UNKNOWN;Q!="";)V+=Q,Fe();throw new SyntaxError('Syntax error in part "'+cO(V,30)+'"')}function jne(){var r={};if(Nne(),he(),V==="strict"&&(r.strict=!0,he()),(V==="graph"||V==="digraph")&&(r.type=V,he()),pt===ot.IDENTIFIER&&(r.id=V,he()),V!="{")throw st("Angle bracket { expected");if(he(),lO(r),V!="}")throw st("Angle bracket } expected");if(he(),V!=="")throw st("End of file expected");return he(),delete r.node,delete r.edge,delete r.graph,r}function lO(r){for(;V!==""&&V!="}";)Lne(r),V===";"&&he()}function Lne(r){var n=uO(r);if(n){dO(r,n);return}var e=zne(r);if(!e){if(pt!=ot.IDENTIFIER)throw st("Identifier expected");var t=V;if(he(),V==="="){if(he(),pt!=ot.IDENTIFIER)throw st("Identifier expected");r[t]=V,he()}else Hne(r,t)}}function uO(r){var n=null;if(V==="subgraph"&&(n={},n.type="subgraph",he(),pt===ot.IDENTIFIER&&(n.id=V,he())),V==="{"){if(he(),n||(n={}),n.parent=r,n.node=r.node,n.edge=r.edge,n.graph=r.graph,lO(n),V!="}")throw st("Angle bracket } expected");he(),delete n.node,delete n.edge,delete n.graph,delete n.parent,r.subgraphs||(r.subgraphs=[]),r.subgraphs.push(n)}return n}function zne(r){return V==="node"?(he(),r.node=xa(),"node"):V==="edge"?(he(),r.edge=xa(),"edge"):V==="graph"?(he(),r.graph=xa(),"graph"):null}function Hne(r,n){var e={id:n},t=xa();t&&(e.attr=t),oO(r,e),dO(r,n)}function dO(r,n){for(;V==="->"||V==="--";){var e,t=V;he();var i=uO(r);if(i)e=i;else{if(pt!=ot.IDENTIFIER)throw st("Identifier or subgraph expected");e=V,oO(r,{id:e}),he()}var a=xa(),o=sO(r,n,e,t,a);Bne(r,o),n=e}}function xa(){for(var r,n=null,e={dashed:!0,solid:!1,dotted:[1,5]},t={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},i=new Array,a=new Array;V==="[";){for(he(),n={};V!==""&&V!="]";){if(pt!=ot.IDENTIFIER)throw st("Attribute name expected");var o=V;if(he(),V!="=")throw st("Equal sign = expected");if(he(),pt!=ot.IDENTIFIER)throw st("Attribute value expected");var s=V;o==="style"&&(s=e[s]);var l;o==="arrowhead"&&(l=t[s],o="arrows",s={to:{enabled:!0,type:l}}),o==="arrowtail"&&(l=t[s],o="arrows",s={from:{enabled:!0,type:l}}),i.push({attr:n,name:o,value:s}),a.push(o),he(),V==","&&he()}if(V!="]")throw st("Bracket ] expected");he()}if(Kr(a).call(a,"dir")){var u={};for(u.arrows={},r=0;r"&&(l.arrows="to"),l};ue(i=n.edges).call(i,function(o){var s,l;if(o.from instanceof Object?s=o.from.nodes:s={id:o.from},o.to instanceof Object?l=o.to.nodes:l={id:o.to},o.from instanceof Object&&o.from.edges){var u;ue(u=o.from.edges).call(u,function(c){var h=a(c);e.edges.push(h)})}if(Wne(s,l,function(c,h){var f=sO(e,c.id,h.id,o.type,o.attr),v=a(f);e.edges.push(v)}),o.to instanceof Object&&o.to.edges){var d;ue(d=o.to.edges).call(d,function(c){var h=a(c);e.edges.push(h)})}})}return n.attr&&(e.options=n.attr),e}function Vne(r,n){var e,t={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};n!=null&&(n.fixed!=null&&(t.nodes.fixed=n.fixed),n.parseColor!=null&&(t.nodes.parseColor=n.parseColor),n.inheritColor!=null&&(t.edges.inheritColor=n.inheritColor));var i=r.edges,a=Dn(i).call(i,function(s){var l={from:s.source,id:s.id,to:s.target};return s.attributes!=null&&(l.attributes=s.attributes),s.label!=null&&(l.label=s.label),s.attributes!=null&&s.attributes.title!=null&&(l.title=s.attributes.title),s.type==="Directed"&&(l.arrows="to"),s.color&&t.edges.inheritColor===!1&&(l.color=s.color),l}),o=Dn(e=r.nodes).call(e,function(s){var l={id:s.id,fixed:t.nodes.fixed&&s.x!=null&&s.y!=null};return s.attributes!=null&&(l.attributes=s.attributes),s.label!=null&&(l.label=s.label),s.size!=null&&(l.size=s.size),s.attributes!=null&&s.attributes.title!=null&&(l.title=s.attributes.title),s.title!=null&&(l.title=s.title),s.x!=null&&(l.x=s.x),s.y!=null&&(l.y=s.y),s.color!=null&&(t.nodes.parseColor===!0?l.color=s.color:l.color={background:s.color,border:s.color,highlight:{background:s.color,border:s.color},hover:{background:s.color,border:s.color}}),l});return{nodes:o,edges:a}}var Gne={addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},Kne={addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzufügen",addNode:"Knoten hinzufügen",back:"Zurück",close:"Schließen",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",del:"Lösche Auswahl",deleteClusterError:"Cluster können nicht gelöscht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster können nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},qne={addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",addEdge:"Añadir arista",addNode:"Añadir nodo",back:"Atrás",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selección",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},Yne={addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},Xne={addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},Jne={addDescription:"Clique em um espaço em branco para adicionar um novo nó",addEdge:"Adicionar aresta",addNode:"Adicionar nó",back:"Voltar",close:"Fechar",createEdgeError:"Não foi possível linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters não puderam ser removidos.",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",edit:"Editar",editClusterError:"Clusters não puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",editNode:"Editar nó"},Qne={addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},Zne={addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},eae={addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"},tae={addDescription:"Cliquez dans un endroit vide pour placer un nœud.",addEdge:"Ajouter un lien",addNode:"Ajouter un nœud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de créer un lien vers un cluster.",del:"Effacer la sélection",deleteClusterError:"Les clusters ne peuvent pas être effacés.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",edit:"Éditer",editClusterError:"Les clusters ne peuvent pas être édités.",editEdge:"Éditer le lien",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",editNode:"Éditer le nœud"},rae={addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",addEdge:"Přidat hranu",addNode:"Přidat vrchol",back:"Zpět",close:"Zavřít",createEdgeError:"Nelze připojit hranu ke shluku.",del:"Smazat výběr",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",editNode:"Upravit vrchol"},iae=Object.freeze({__proto__:null,cn:Zne,cs:rae,de:Kne,en:Gne,es:qne,fr:tae,it:Yne,nl:Xne,pt:Jne,ru:Qne,uk:eae});function nae(r,n){try{var e=n.split(/[-_ /]/,2),t=$e(e,2),i=t[0],a=t[1],o=i!=null?i.toLowerCase():null,s=a!=null?a.toUpperCase():null;if(o&&s){var l=o+"-"+s;if(Object.prototype.hasOwnProperty.call(r,l))return l;var u;console.warn(uv(u="Unknown variant ".concat(s," of language ")).call(u,o,"."))}if(o){var d=o;if(Object.prototype.hasOwnProperty.call(r,d))return d;console.warn("Unknown language ".concat(o))}return console.warn("Unknown locale ".concat(n,", falling back to English.")),"en"}catch(c){return console.error(c),console.warn("Unexpected error while normalizing locale ".concat(n,", falling back to English.")),"en"}}var aae=function(){function r(){x(this,r),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return A(r,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var e=this.image.width,t=this.image.height;this.width=e,this.height=t;var i=Math.floor(t/2),a=Math.floor(t/4),o=Math.floor(t/8),s=Math.floor(t/16),l=Math.floor(e/2),u=Math.floor(e/4),d=Math.floor(e/8),c=Math.floor(e/16);this.canvas.width=3*u,this.canvas.height=i,this.coordinates=[[0,0,l,i],[l,0,u,a],[l,a,d,o],[5*d,a,c,s]],this._fillMipMap()}}},{key:"initialized",value:function(){return this.coordinates!==void 0}},{key:"_fillMipMap",value:function(){var e=this.canvas.getContext("2d"),t=this.coordinates[0];e.drawImage(this.image,t[0],t[1],t[2],t[3]);for(var i=1;i2){t*=.5;for(var l=0;t>2&&l=this.NUM_ITERATIONS&&(l=this.NUM_ITERATIONS-1);var u=this.coordinates[l];e.drawImage(this.canvas,u[0],u[1],u[2],u[3],i,a,o,s)}else e.drawImage(this.image,i,a,o,s)}}]),r}(),oae=function(){function r(n){x(this,r),this.images={},this.imageBroken={},this.callback=n}return A(r,[{key:"_tryloadBrokenUrl",value:function(e,t,i){if(!(e===void 0||i===void 0)){if(t===void 0){console.warn("No broken url image defined");return}i.image.onerror=function(){console.error("Could not load brokenImage:",t)},i.image.src=t}}},{key:"_redrawWithImage",value:function(e){this.callback&&this.callback(e)}},{key:"load",value:function(e,t){var i=this,a=this.images[e];if(a)return a;var o=new aae;return this.images[e]=o,o.image.onload=function(){i._fixImageCoordinates(o.image),o.init(),i._redrawWithImage(o)},o.image.onerror=function(){console.error("Could not load image:",e),i._tryloadBrokenUrl(e,t,o)},o.image.src=e,o}},{key:"_fixImageCoordinates",value:function(e){e.width===0&&(document.body.appendChild(e),e.width=e.offsetWidth,e.height=e.offsetHeight,document.body.removeChild(e))}}]),r}(),hO={exports:{}},sae=te,lae=sae(function(){if(typeof ArrayBuffer=="function"){var r=new ArrayBuffer(8);Object.isExtensible(r)&&Object.defineProperty(r,"a",{value:8})}}),uae=te,dae=Ue,cae=Ar,zb=lae,Us=Object.isExtensible,hae=uae(function(){Us(1)}),fae=hae||zb?function(n){return!dae(n)||zb&&cae(n)==="ArrayBuffer"?!1:Us?Us(n):!0}:Us,vae=te,fO=!vae(function(){return Object.isExtensible(Object.preventExtensions({}))}),pae=G,gae=ie,yae=Po,mae=Ue,wv=Ve,bae=Nt.f,Hb=Ro,$ae=hu,_v=fae,wae=tu,_ae=fO,vO=!1,Pr=wae("meta"),Eae=0,Ev=function(r){bae(r,Pr,{value:{objectID:"O"+Eae++,weakData:{}}})},Sae=function(r,n){if(!mae(r))return typeof r=="symbol"?r:(typeof r=="string"?"S":"P")+r;if(!wv(r,Pr)){if(!_v(r))return"F";if(!n)return"E";Ev(r)}return r[Pr].objectID},Oae=function(r,n){if(!wv(r,Pr)){if(!_v(r))return!0;if(!n)return!1;Ev(r)}return r[Pr].weakData},Tae=function(r){return _ae&&vO&&_v(r)&&!wv(r,Pr)&&Ev(r),r},kae=function(){Iae.enable=function(){},vO=!0;var r=Hb.f,n=gae([].splice),e={};e[Pr]=1,r(e).length&&(Hb.f=function(t){for(var i=r(t),a=0,o=i.length;ac;c++)if(f=g(r[c]),f&&Wb(Vb,f))return f;return new Vs(!1)}u=Mae(r,d)}for(v=a?r.next:u.next;!(p=Cae(v,u)).done;){try{f=g(p.value)}catch(m){Ub(u,"throw",m)}if(typeof f=="object"&&f&&Wb(Vb,f))return f}return new Vs(!1)},Bae=Pe,jae=TypeError,Ov=function(r,n){if(Bae(n,r))return r;throw new jae("Incorrect invocation")},Lae=G,zae=Ee,Hae=_u,Wae=te,Uae=na,Vae=Sv,Gae=Ov,Kae=He,qae=Ue,Yae=ea,Xae=oa,Jae=Nt.f,Qae=ni.forEach,Zae=We,pO=Ui,eoe=pO.set,toe=pO.getterFor,Tv=function(r,n,e){var t=r.indexOf("Map")!==-1,i=r.indexOf("Weak")!==-1,a=t?"set":"add",o=zae[r],s=o&&o.prototype,l={},u;if(!Zae||!Kae(o)||!(i||s.forEach&&!Wae(function(){new o().entries().next()})))u=e.getConstructor(n,r,t,a),Hae.enable();else{u=n(function(h,f){eoe(Gae(h,d),{type:r,collection:new o}),Yae(f)||Vae(f,h[a],{that:h,AS_ENTRIES:t})});var d=u.prototype,c=toe(r);Qae(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(h){var f=h==="add"||h==="set";h in s&&!(i&&h==="clear")&&Uae(d,h,function(v,p){var y=c(this).collection;if(!f&&i&&!qae(v))return h==="get"?void 0:!1;var g=y[h](v===0?0:v,p);return f?this:g})}),i||Jae(d,"size",{configurable:!0,get:function(){return c(this).collection.size}})}return Xae(u,r,!1,!0),l[r]=u,Lae({global:!0,forced:!0},l),i||e.setStrong(u,r,t),u},roe=xo,kv=function(r,n,e){for(var t in n)e&&e.unsafe&&r[t]?r[t]=n[t]:roe(r,t,n[t],e);return r},ioe=Ut,noe=iv,aoe=Se,ooe=We,Gb=aoe("species"),soe=function(r){var n=ioe(r);ooe&&n&&!n[Gb]&&noe(n,Gb,{configurable:!0,get:function(){return this}})},loe=aa,uoe=iv,Kb=kv,doe=ko,coe=Ov,hoe=ea,foe=Sv,voe=Qf,Os=Zf,poe=soe,ga=We,qb=_u.fastKey,gO=Ui,Yb=gO.set,Ic=gO.getterFor,yO={getConstructor:function(r,n,e,t){var i=r(function(u,d){coe(u,a),Yb(u,{type:n,index:loe(null),first:void 0,last:void 0,size:0}),ga||(u.size=0),hoe(d)||foe(d,u[t],{that:u,AS_ENTRIES:e})}),a=i.prototype,o=Ic(n),s=function(u,d,c){var h=o(u),f=l(u,d),v,p;return f?f.value=c:(h.last=f={index:p=qb(d,!0),key:d,value:c,previous:v=h.last,next:void 0,removed:!1},h.first||(h.first=f),v&&(v.next=f),ga?h.size++:u.size++,p!=="F"&&(h.index[p]=f)),u},l=function(u,d){var c=o(u),h=qb(d),f;if(h!=="F")return c.index[h];for(f=c.first;f;f=f.next)if(f.key===d)return f};return Kb(a,{clear:function(){for(var d=this,c=o(d),h=c.index,f=c.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete h[f.index],f=f.next;c.first=c.last=void 0,ga?c.size=0:d.size=0},delete:function(u){var d=this,c=o(d),h=l(d,u);if(h){var f=h.next,v=h.previous;delete c.index[h.index],h.removed=!0,v&&(v.next=f),f&&(f.previous=v),c.first===h&&(c.first=f),c.last===h&&(c.last=v),ga?c.size--:d.size--}return!!h},forEach:function(d){for(var c=o(this),h=doe(d,arguments.length>1?arguments[1]:void 0),f;f=f?f.next:c.first;)for(h(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(d){return!!l(this,d)}}),Kb(a,e?{get:function(d){var c=l(this,d);return c&&c.value},set:function(d,c){return s(this,d===0?0:d,c)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),ga&&uoe(a,"size",{configurable:!0,get:function(){return o(this).size}}),i},setStrong:function(r,n,e){var t=n+" Iterator",i=Ic(n),a=Ic(t);voe(r,n,function(o,s){Yb(this,{type:t,target:o,state:i(o),kind:s,last:void 0})},function(){for(var o=a(this),s=o.kind,l=o.last;l&&l.removed;)l=l.previous;return!o.target||!(o.last=l=l?l.next:o.state.first)?(o.target=void 0,Os(void 0,!0)):Os(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},e?"entries":"values",!e,!0),poe(n)}},goe=Tv,yoe=yO;goe("Map",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},yoe);var moe=re,boe=moe.Map,$oe=boe,woe=$oe,_oe=woe,mO=z(_oe),Eoe=function(){function r(){x(this,r),this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},Re(this.options,this.defaultOptions)}return A(r,[{key:"setOptions",value:function(e){var t=["useDefaultGroups"];if(e!==void 0){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&ee(t).call(t,i)===-1){var a=e[i];this.add(i,a)}}}},{key:"clear",value:function(){this._groups=new mO,this._groupNames=[]}},{key:"get",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this._groups.get(e);if(i===void 0&&t)if(this.options.useDefaultGroups===!1&&this._groupNames.length>0){var a=this._groupIndex%this._groupNames.length;++this._groupIndex,i={},i.color=this._groups.get(this._groupNames[a]),this._groups.set(e,i)}else{var o=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,i={},i.color=this._defaultGroups[o],this._groups.set(e,i)}return i}},{key:"add",value:function(e,t){return this._groups.has(e)||this._groupNames.push(e),this._groups.set(e,t),t}}]),r}(),Soe=G;Soe({target:"Number",stat:!0},{isNaN:function(n){return n!==n}});var Ooe=re,Toe=Ooe.Number.isNaN,koe=Toe,Ioe=koe,Poe=Ioe,qh=z(Poe),Coe=Ee,xoe=Coe.isFinite,Aoe=Number.isFinite||function(n){return typeof n=="number"&&xoe(n)},Roe=G,Doe=Aoe;Roe({target:"Number",stat:!0},{isFinite:Doe});var Moe=re,Noe=Moe.Number.isFinite,Foe=Noe,Boe=Foe,joe=Boe,pi=z(joe),Loe=G,zoe=ni.some,Hoe=ua,Woe=Hoe("some");Loe({target:"Array",proto:!0,forced:!Woe},{some:function(n){return zoe(this,n,arguments.length>1?arguments[1]:void 0)}});var Uoe=Ge,Voe=Uoe("Array").some,Goe=Pe,Koe=Voe,Pc=Array.prototype,qoe=function(r){var n=r.some;return r===Pc||Goe(Pc,r)&&n===Pc.some?Koe:n},Yoe=qoe,Xoe=Yoe,Joe=Xoe,Qoe=z(Joe),Zoe=re,ese=Zoe.Object.getOwnPropertySymbols,tse=ese,rse=tse,ise=rse,Qr=z(ise),bO={exports:{}},nse=G,ase=te,ose=fr,$O=Zn.f,wO=We,sse=!wO||ase(function(){$O(1)});nse({target:"Object",stat:!0,forced:sse,sham:!wO},{getOwnPropertyDescriptor:function(n,e){return $O(ose(n),e)}});var lse=re,_O=lse.Object,use=bO.exports=function(n,e){return _O.getOwnPropertyDescriptor(n,e)};_O.getOwnPropertyDescriptor.sham&&(use.sham=!0);var dse=bO.exports,cse=dse,EO=cse,hse=EO,oi=z(hse),fse=G,vse=We,pse=xZ,gse=fr,yse=Zn,mse=la;fse({target:"Object",stat:!0,sham:!vse},{getOwnPropertyDescriptors:function(n){for(var e=gse(n),t=yse.f,i=pse(e),a={},o=0,s,l;i.length>o;)l=t(e,s=i[o++]),l!==void 0&&mse(a,s,l);return a}});var bse=re,$se=bse.Object.getOwnPropertyDescriptors,wse=$se,_se=wse,Ese=_se,Zr=z(Ese),SO={exports:{}},Sse=G,Ose=We,Xb=su.f;Sse({target:"Object",stat:!0,forced:Object.defineProperties!==Xb,sham:!Ose},{defineProperties:Xb});var Tse=re,OO=Tse.Object,kse=SO.exports=function(n,e){return OO.defineProperties(n,e)};OO.defineProperties.sham&&(kse.sham=!0);var Ise=SO.exports,Pse=Ise,Cse=Pse,xse=Cse,Eu=z(xse),Ase=PE,Su=z(Ase);function Ou(r,n,e){return n=lS(n),n in r?cu(r,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[n]=e,r}var TO=Ee,Rse=te,Dse=ie,Mse=vr,Nse=$S.trim,Fse=dv,Bse=Dse("".charAt),$l=TO.parseFloat,Jb=TO.Symbol,Qb=Jb&&Jb.iterator,jse=1/$l(Fse+"-0")!==-1/0||Qb&&!Rse(function(){$l(Object(Qb))}),Lse=jse?function(n){var e=Nse(Mse(n)),t=$l(e);return t===0&&Bse(e,0)==="-"?-0:t}:$l,zse=G,Zb=Lse;zse({global:!0,forced:parseFloat!==Zb},{parseFloat:Zb});var Hse=re,Wse=Hse.parseFloat,Use=Wse,Vse=Use,Gse=Vse,kO=z(Gse),Kse=G,qse=te,Yse=hu.f,Xse=qse(function(){return!Object.getOwnPropertyNames(1)});Kse({target:"Object",stat:!0,forced:Xse},{getOwnPropertyNames:Yse});var Jse=re,Qse=Jse.Object,Zse=function(n){return Qse.getOwnPropertyNames(n)},ele=Zse,tle=ele,rle=tle,ile=z(rle);function Iv(r,n){var e=["node","edge","label"],t=!0,i=jr(n,"chosen");if(typeof i=="boolean")t=i;else if(le(i)==="object"){if(ee(e).call(e,r)===-1)throw new Error("choosify: subOption '"+r+"' should be one of '"+e.join("', '")+"'");var a=jr(n,["chosen",r]);(typeof a=="boolean"||typeof a=="function")&&(t=a)}return t}function Yh(r,n,e){if(r.width<=0||r.height<=0)return!1;if(e!==void 0){var t={x:n.x-e.x,y:n.y-e.y};if(e.angle!==0){var i=-e.angle,a={x:Math.cos(i)*t.x-Math.sin(i)*t.y,y:Math.sin(i)*t.x+Math.cos(i)*t.y};n=a}else n=t}var o=r.x+r.width,s=r.y+r.width;return r.leftn.x&&r.topn.y}function wl(r){return typeof r=="string"&&r!==""}function IO(r,n,e,t){var i=t.x,a=t.y;if(typeof t.distanceToBorder=="function"){var o=t.distanceToBorder(r,n),s=Math.sin(n)*o,l=Math.cos(n)*o;l===o?(i+=o,a=t.y):s===o?(i=t.x,a-=o):(i+=l,a-=s)}else t.shape.width>t.shape.height?(i=t.x+t.shape.width*.5,a=t.y-e):(i=t.x+e,a=t.y-t.shape.height*.5);return{x:i,y:a}}var nle=Ge,ale=nle("Array").values,ole=ale,sle=ole,lle=Wi,ule=Ve,dle=Pe,cle=sle,Cc=Array.prototype,hle={DOMTokenList:!0,NodeList:!0},fle=function(r){var n=r.values;return r===Cc||dle(Cc,r)&&n===Cc.values||ule(hle,lle(r))?cle:n},vle=fle,PO=z(vle),ple=function(){function r(n){x(this,r),this.measureText=n,this.current=0,this.width=0,this.height=0,this.lines=[]}return A(r,[{key:"_add",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal";this.lines[e]===void 0&&(this.lines[e]={width:0,height:0,blocks:[]});var a=t;(t===void 0||t==="")&&(a=" ");var o=this.measureText(a,i),s=Re({},PO(o));s.text=t,s.width=o.width,s.mod=i,(t===void 0||t==="")&&(s.width=0),this.lines[e].blocks.push(s),this.lines[e].width+=s.width}},{key:"curWidth",value:function(){var e=this.lines[this.current];return e===void 0?0:e.width}},{key:"append",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,t)}},{key:"newLine",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,t),this.current++}},{key:"determineLineHeights",value:function(){for(var e=0;ee&&(e=a.width),t+=a.height}this.width=e,this.height=t}},{key:"removeEmptyBlocks",value:function(){for(var e=[],t=0;t"://,""://,""://,"":/<\/b>/,"":/<\/i>/,"":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},e$=function(){function r(n){x(this,r),this.text=n,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return A(r,[{key:"mod",value:function(){return this.modStack.length===0?"normal":this.modStack[0]}},{key:"modName",value:function(){if(this.modStack.length===0)return"normal";if(this.modStack[0]==="mono")return"mono";if(this.bold&&this.ital)return"boldital";if(this.bold)return"bold";if(this.ital)return"ital"}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(e){e===" "&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1),e!=" "&&(this.buffer+=e)}},{key:"parseWS",value:function(e){return/[ \t]/.test(e)?(this.mono?this.add(e):this.spacing=!0,!0):!1}},{key:"setTag",value:function(e){this.emitBlock(),this[e]=!0,this.modStack.unshift(e)}},{key:"unsetTag",value:function(e){this.emitBlock(),this[e]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(e,t){return!this.mono&&!this[e]&&this.match(t)?(this.setTag(e),!0):!1}},{key:"match",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this.prepareRegExp(e),a=$e(i,2),o=a[0],s=a[1],l=o.test(this.text.substr(this.position,s));return l&&t&&(this.position+=s-1),l}},{key:"parseEndTag",value:function(e,t,i){var a=this.mod()===e;return e==="mono"?a=a&&this.mono:a=a&&!this.mono,a&&this.match(t)?(i!==void 0?(this.position===this.text.length-1||this.match(i,!1))&&this.unsetTag(e):this.unsetTag(e),!0):!1}},{key:"replace",value:function(e,t){return this.match(e)?(this.add(t),this.position+=length-1,!0):!1}},{key:"prepareRegExp",value:function(e){var t,i;if(e instanceof RegExp)i=e,t=1;else{var a=gle[e];a!==void 0?i=a:i=new RegExp(e),t=e.length}return[i,t]}}]),r}(),yle=function(){function r(n,e,t,i){var a=this;x(this,r),this.ctx=n,this.parent=e,this.selected=t,this.hover=i;var o=function(l,u){if(l===void 0)return 0;var d=a.parent.getFormattingValues(n,t,i,u),c=0;if(l!==""){var h=a.ctx.measureText(l);c=h.width}return{width:c,values:d}};this.lines=new ple(o)}return A(r,[{key:"process",value:function(e){if(!wl(e))return this.lines.finalize();var t=this.parent.fontOptions;e=e.replace(/\r\n/g,` +`),e=e.replace(/\r/g,` +`);var i=String(e).split(` +`),a=i.length;if(t.multi)for(var o=0;o0)for(var l=0;l0)for(var v=0;v")||t.parseStartTag("ital","")||t.parseStartTag("mono","")||t.parseEndTag("bold","")||t.parseEndTag("ital","")||t.parseEndTag("mono",""))||i(a);o||t.add(a),t.position++}return t.emitBlock(),t.blocks}},{key:"splitMarkdownBlocks",value:function(e){for(var t=this,i=new e$(e),a=!0,o=function(d){return/\\/.test(d)?(i.positionthis.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(e){for(var t="",i=0;i1&&arguments[1]!==void 0?arguments[1]:"normal",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.parent.getFormattingValues(this.ctx,this.selected,this.hover,t),e=e.replace(/^( +)/g,"$1\r"),e=e.replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r");for(var a=e.split("\r");a.length>0;){var o=this.getLongestFit(a);if(o===0){var s=a[0],l=this.getLongestFitWord(s);this.lines.newLine(Je(s).call(s,0,l),t),a[0]=Je(s).call(s,l)}else{var u=o;a[o-1]===" "?o--:a[u]===" "&&u++;var d=Je(a).call(a,0,o).join("");o==a.length&&i?this.lines.append(d,t):this.lines.newLine(d,t),a=Je(a).call(a,u)}}}}]),r}(),ya=["bold","ital","boldital","mono"],CO=function(){function r(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;x(this,r),this.body=n,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(e),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=t}return A(r,[{key:"setOptions",value:function(e){if(this.elementOptions=e,this.initFontOptions(e.font),wl(e.label)?this.labelDirty=!0:e.label=void 0,e.font!==void 0&&e.font!==null){if(typeof e.font=="string")this.baseSize=this.fontOptions.size;else if(le(e.font)==="object"){var t=e.font.size;t!==void 0&&(this.baseSize=t)}}}},{key:"initFontOptions",value:function(e){var t=this;if(Z(ya,function(i){t.fontOptions[i]={}}),r.parseFontString(this.fontOptions,e)){this.fontOptions.vadjust=0;return}Z(e,function(i,a){i!=null&&le(i)!=="object"&&(t.fontOptions[a]=i)})}},{key:"constrain",value:function(e){var t={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},i=jr(e,"widthConstraint");if(typeof i=="number")t.maxWdt=Number(i),t.minWdt=Number(i);else if(le(i)==="object"){var a=jr(e,["widthConstraint","maximum"]);typeof a=="number"&&(t.maxWdt=Number(a));var o=jr(e,["widthConstraint","minimum"]);typeof o=="number"&&(t.minWdt=Number(o))}var s=jr(e,"heightConstraint");if(typeof s=="number")t.minHgt=Number(s);else if(le(s)==="object"){var l=jr(e,["heightConstraint","minimum"]);typeof l=="number"&&(t.minHgt=Number(l));var u=jr(e,["heightConstraint","valign"]);typeof u=="string"&&(u==="top"||u==="bottom")&&(t.valign=u)}return t}},{key:"update",value:function(e,t){this.setOptions(e,!0),this.propagateFonts(t),ce(this.fontOptions,this.constrain(t)),this.fontOptions.chooser=Iv("label",t)}},{key:"adjustSizes",value:function(e){var t=e?e.right+e.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=t,this.fontOptions.minWdt-=t);var i=e?e.top+e.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=i)}},{key:"addFontOptionsToPile",value:function(e,t){for(var i=0;i5&&arguments[5]!==void 0?arguments[5]:"middle";if(this.elementOptions.label!==void 0){var l=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&l=this.elementOptions.scaling.label.maxVisible&&(l=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(e,a,o,t,i,s),this._drawBackground(e),this._drawText(e,t,this.size.yLine,s,l))}}},{key:"_drawBackground",value:function(e){if(this.fontOptions.background!==void 0&&this.fontOptions.background!=="none"){e.fillStyle=this.fontOptions.background;var t=this.getSize();e.fillRect(t.left,t.top,t.width,t.height)}}},{key:"_drawText",value:function(e,t,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"middle",o=arguments.length>4?arguments[4]:void 0,s=this._setAlignment(e,t,i,a),l=$e(s,2);t=l[0],i=l[1],e.textAlign="left",t=t-this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&(this.fontOptions.valign==="top"&&(i-=(this.size.height-this.size.labelHeight)/2),this.fontOptions.valign==="bottom"&&(i+=(this.size.height-this.size.labelHeight)/2));for(var u=0;u0&&(e.lineWidth=f.strokeWidth,e.strokeStyle=g,e.lineJoin="round"),e.fillStyle=y,f.strokeWidth>0&&e.strokeText(f.text,t+c,i+f.vadjust),e.fillText(f.text,t+c,i+f.vadjust),c+=f.width}i+=d.height}}}},{key:"_setAlignment",value:function(e,t,i,a){if(this.isEdgeLabel&&this.fontOptions.align!=="horizontal"&&this.pointToSelf===!1){t=0,i=0;var o=2;this.fontOptions.align==="top"?(e.textBaseline="alphabetic",i-=2*o):this.fontOptions.align==="bottom"?(e.textBaseline="hanging",i+=2*o):e.textBaseline="middle"}else e.textBaseline=a;return[t,i]}},{key:"_getColor",value:function(e,t,i){var a=e||"#000000",o=i||"#ffffff";if(t<=this.elementOptions.scaling.label.drawThreshold){var s=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-t)));a=Lt(a,s),o=Lt(o,s)}return[a,o]}},{key:"getTextSize",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this._processLabel(e,t,i),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var e=2,t=this.size.left,i=this.size.top-.5*e;if(this.isEdgeLabel){var a=-this.size.width*.5;switch(this.fontOptions.align){case"middle":t=a,i=-this.size.height*.5;break;case"top":t=a,i=-(this.size.height+e);break;case"bottom":t=a,i=e;break}}var o={left:t,top:i,width:this.size.width,height:this.size.height};return o}},{key:"calculateLabelSize",value:function(e,t,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";this._processLabel(e,t,i),this.size.left=a-this.size.width*.5,this.size.top=o-this.size.height*.5,this.size.yLine=o+(1-this.lineCount)*.5*this.fontOptions.size,s==="hanging"&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(e,t,i,a){var o=function(d,c,h){return c==="normal"?h==="mod"?"":d[h]:d[c][h]!==void 0?d[c][h]:d[h]},s={color:o(this.fontOptions,a,"color"),size:o(this.fontOptions,a,"size"),face:o(this.fontOptions,a,"face"),mod:o(this.fontOptions,a,"mod"),vadjust:o(this.fontOptions,a,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(t||i)&&(a==="normal"&&this.fontOptions.chooser===!0&&this.elementOptions.labelHighlightBold?s.mod="bold":typeof this.fontOptions.chooser=="function"&&this.fontOptions.chooser(s,this.elementOptions.id,t,i));var l="";return s.mod!==void 0&&s.mod!==""&&(l+=s.mod+" "),l+=s.size+"px "+s.face,e.font=l.replace(/"/g,""),s.font=e.font,s.height=s.size,s}},{key:"differentState",value:function(e,t){return e!==this.selectedState||t!==this.hoverState}},{key:"_processLabelText",value:function(e,t,i,a){var o=new yle(e,this,t,i);return o.process(a)}},{key:"_processLabel",value:function(e,t,i){if(!(this.labelDirty===!1&&!this.differentState(t,i))){var a=this._processLabelText(e,t,i,this.elementOptions.label);this.fontOptions.minWdt>0&&a.width0&&a.height0&&(this.enableBorderDashes(e,t),e.stroke(),this.disableBorderDashes(e,t)),e.restore()}},{key:"performFill",value:function(e,t){e.save(),e.fillStyle=t.color,this.enableShadow(e,t),Bo(e).call(e),this.disableShadow(e,t),e.restore(),this.performStroke(e,t)}},{key:"_addBoundingBoxMargin",value:function(e){this.boundingBox.left-=e,this.boundingBox.top-=e,this.boundingBox.bottom+=e,this.boundingBox.right+=e}},{key:"_updateBoundingBox",value:function(e,t,i,a,o){i!==void 0&&this.resize(i,a,o),this.left=e-this.width/2,this.top=t-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(e,t,i,a,o){this._updateBoundingBox(e,t,i,a,o)}},{key:"getDimensionsFromLabel",value:function(e,t,i){this.textSize=this.labelModule.getTextSize(e,t,i);var a=this.textSize.width,o=this.textSize.height,s=14;return a===0&&(a=s,o=s),{width:a,height:o}}}]),r}();function lue(r){var n=uue();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function uue(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var due=function(r){ne(e,r);var n=lue(e);function e(t,i,a){var o;return x(this,e),o=n.call(this,t,i,a),o._setMargins(a),o}return A(e,[{key:"resize",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(a,o)){var s=this.getDimensionsFromLabel(i,a,o);this.width=s.width+this.margin.right+this.margin.left,this.height=s.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(i,a,o,s,l,u){this.resize(i,s,l),this.left=a-this.width/2,this.top=o-this.height/2,this.initContextForDraw(i,u),J_(i,this.left,this.top,this.width,this.height,u.borderRadius),this.performFill(i,u),this.updateBoundingBox(a,o,i,s,l),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l)}},{key:"updateBoundingBox",value:function(i,a,o,s,l){this._updateBoundingBox(i,a,o,s,l);var u=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(u)}},{key:"distanceToBorder",value:function(i,a){i&&this.resize(i);var o=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(a)),Math.abs(this.height/2/Math.sin(a)))+o}}]),e}(Yi);function cue(r){var n=hue();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function hue(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var xv=function(r){ne(e,r);var n=cue(e);function e(t,i,a){var o;return x(this,e),o=n.call(this,t,i,a),o.labelOffset=0,o.selected=!1,o}return A(e,[{key:"setOptions",value:function(i,a,o){this.options=i,a===void 0&&o===void 0||this.setImages(a,o)}},{key:"setImages",value:function(i,a){a&&this.selected?(this.imageObj=a,this.imageObjAlt=i):(this.imageObj=i,this.imageObjAlt=a)}},{key:"switchImages",value:function(i){var a=i&&!this.selected||!i&&this.selected;if(this.selected=i,this.imageObjAlt!==void 0&&a){var o=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=o}}},{key:"_getImagePadding",value:function(){var i={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var a=this.options.imagePadding;le(a)=="object"?(i.top=a.top,i.right=a.right,i.bottom=a.bottom,i.left=a.left):(i.top=a,i.right=a,i.bottom=a,i.left=a)}return i}},{key:"_resizeImage",value:function(){var i,a;if(this.options.shapeProperties.useImageSize===!1){var o=1,s=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?o=this.imageObj.width/this.imageObj.height:s=this.imageObj.height/this.imageObj.width),i=this.options.size*2*o,a=this.options.size*2*s}else{var l=this._getImagePadding();i=this.imageObj.width+l.left+l.right,a=this.imageObj.height+l.top+l.bottom}this.width=i,this.height=a,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(i,a,o,s){this.initContextForDraw(i,s),qf(i,a,o,s.size),this.performFill(i,s)}},{key:"_drawImageAtPosition",value:function(i,a){if(this.imageObj.width!=0){i.globalAlpha=a.opacity!==void 0?a.opacity:1,this.enableShadow(i,a);var o=1;this.options.shapeProperties.interpolation===!0&&(o=this.imageObj.width/this.width/this.body.view.scale);var s=this._getImagePadding(),l=this.left+s.left,u=this.top+s.top,d=this.width-s.left-s.right,c=this.height-s.top-s.bottom;this.imageObj.drawImageAtPosition(i,o,l,u,d,c),this.disableShadow(i,a)}}},{key:"_drawImageLabel",value:function(i,a,o,s,l){var u=0;if(this.height!==void 0){u=this.height*.5;var d=this.labelModule.getTextSize(i,s,l);d.lineCount>=1&&(u+=d.height/2)}var c=o+u;this.options.label&&(this.labelOffset=u),this.labelModule.draw(i,a,c,s,l,"hanging")}}]),e}(Yi);function fue(r){var n=vue();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function vue(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var pue=function(r){ne(e,r);var n=fue(e);function e(t,i,a){var o;return x(this,e),o=n.call(this,t,i,a),o._setMargins(a),o}return A(e,[{key:"resize",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(a,o)){var s=this.getDimensionsFromLabel(i,a,o),l=Math.max(s.width+this.margin.right+this.margin.left,s.height+this.margin.top+this.margin.bottom);this.options.size=l/2,this.width=l,this.height=l,this.radius=this.width/2}}},{key:"draw",value:function(i,a,o,s,l,u){this.resize(i,s,l),this.left=a-this.width/2,this.top=o-this.height/2,this._drawRawCircle(i,a,o,u),this.updateBoundingBox(a,o),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,o,s,l)}},{key:"updateBoundingBox",value:function(i,a){this.boundingBox.top=a-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=a+this.options.size}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.width*.5}}]),e}(xv);function gue(r){var n=yue();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function yue(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var mue=function(r){ne(e,r);var n=gue(e);function e(t,i,a,o,s){var l;return x(this,e),l=n.call(this,t,i,a),l.setImages(o,s),l}return A(e,[{key:"resize",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(s){var l=this.options.size*2;this.width=l,this.height=l,this.radius=.5*this.width;return}this.needsRefresh(a,o)&&this._resizeImage()}},{key:"draw",value:function(i,a,o,s,l,u){this.switchImages(s),this.resize();var d=a,c=o;this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=a,this.top=o,d+=this.width/2,c+=this.height/2):(this.left=a-this.width/2,this.top=o-this.height/2),this._drawRawCircle(i,d,c,u),i.save(),i.clip(),this._drawImageAtPosition(i,u),i.restore(),this._drawImageLabel(i,d,c,s,l),this.updateBoundingBox(a,o)}},{key:"updateBoundingBox",value:function(i,a){this.options.shapeProperties.coordinateOrigin==="top-left"?(this.boundingBox.top=a,this.boundingBox.left=i,this.boundingBox.right=i+this.options.size*2,this.boundingBox.bottom=a+this.options.size*2):(this.boundingBox.top=a-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=a+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.width*.5}}]),e}(xv);function bue(r){var n=$ue();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function $ue(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var si=function(r){ne(e,r);var n=bue(e);function e(t,i,a){return x(this,e),n.call(this,t,i,a)}return A(e,[{key:"resize",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{size:this.options.size};if(this.needsRefresh(a,o)){var l,u;this.labelModule.getTextSize(i,a,o);var d=2*s.size;this.width=(l=this.customSizeWidth)!==null&&l!==void 0?l:d,this.height=(u=this.customSizeHeight)!==null&&u!==void 0?u:d,this.radius=.5*this.width}}},{key:"_drawShape",value:function(i,a,o,s,l,u,d,c){var h=this;return this.resize(i,u,d,c),this.left=s-this.width/2,this.top=l-this.height/2,this.initContextForDraw(i,c),t7(a)(i,s,l,c.size),this.performFill(i,c),this.options.icon!==void 0&&this.options.icon.code!==void 0&&(i.font=(u?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),i.fillStyle=this.options.icon.color||"black",i.textAlign="center",i.textBaseline="middle",i.fillText(this.options.icon.code,s,l)),{drawExternalLabel:function(){if(h.options.label!==void 0){h.labelModule.calculateLabelSize(i,u,d,s,l,"hanging");var v=l+.5*h.height+.5*h.labelModule.size.height;h.labelModule.draw(i,s,v,u,d,"hanging")}h.updateBoundingBox(s,l)}}}},{key:"updateBoundingBox",value:function(i,a){this.boundingBox.top=a-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=a+this.options.size,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),e}(Yi);function a$(r,n){var e=be(r);if(Qr){var t=Qr(r);n&&(t=bt(t).call(t,function(i){return oi(r,i).enumerable})),e.push.apply(e,t)}return e}function wue(r){for(var n=1;n"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var Sue=function(r){ne(e,r);var n=_ue(e);function e(t,i,a,o){var s;return x(this,e),s=n.call(this,t,i,a,o),s.ctxRenderer=o,s}return A(e,[{key:"draw",value:function(i,a,o,s,l,u){this.resize(i,s,l,u),this.left=a-this.width/2,this.top=o-this.height/2,i.save();var d=this.ctxRenderer({ctx:i,id:this.options.id,x:a,y:o,state:{selected:s,hover:l},style:wue({},u),label:this.options.label});if(d.drawNode!=null&&d.drawNode(),i.restore(),d.drawExternalLabel){var c=d.drawExternalLabel;d.drawExternalLabel=function(){i.save(),c(),i.restore()}}return d.nodeDimensions&&(this.customSizeWidth=d.nodeDimensions.width,this.customSizeHeight=d.nodeDimensions.height),d}},{key:"distanceToBorder",value:function(i,a){return this._distanceToBorder(i,a)}}]),e}(si);function Oue(r){var n=Tue();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function Tue(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var kue=function(r){ne(e,r);var n=Oue(e);function e(t,i,a){var o;return x(this,e),o=n.call(this,t,i,a),o._setMargins(a),o}return A(e,[{key:"resize",value:function(i,a,o){if(this.needsRefresh(a,o)){var s=this.getDimensionsFromLabel(i,a,o),l=s.width+this.margin.right+this.margin.left;this.width=l,this.height=l,this.radius=this.width/2}}},{key:"draw",value:function(i,a,o,s,l,u){this.resize(i,s,l),this.left=a-this.width/2,this.top=o-this.height/2,this.initContextForDraw(i,u),Q_(i,a-this.width/2,o-this.height/2,this.width,this.height),this.performFill(i,u),this.updateBoundingBox(a,o,i,s,l),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l)}},{key:"distanceToBorder",value:function(i,a){return this._distanceToBorder(i,a)}}]),e}(Yi);function Iue(r){var n=Pue();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function Pue(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var Cue=function(r){ne(e,r);var n=Iue(e);function e(t,i,a){return x(this,e),n.call(this,t,i,a)}return A(e,[{key:"draw",value:function(i,a,o,s,l,u){return this._drawShape(i,"diamond",4,a,o,s,l,u)}},{key:"distanceToBorder",value:function(i,a){return this._distanceToBorder(i,a)}}]),e}(si);function xue(r){var n=Aue();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function Aue(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var Rue=function(r){ne(e,r);var n=xue(e);function e(t,i,a){return x(this,e),n.call(this,t,i,a)}return A(e,[{key:"draw",value:function(i,a,o,s,l,u){return this._drawShape(i,"circle",2,a,o,s,l,u)}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.options.size}}]),e}(si);function Due(r){var n=Mue();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function Mue(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var o$=function(r){ne(e,r);var n=Due(e);function e(t,i,a){return x(this,e),n.call(this,t,i,a)}return A(e,[{key:"resize",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(a,o)){var s=this.getDimensionsFromLabel(i,a,o);this.height=s.height*2,this.width=s.width+s.height,this.radius=.5*this.width}}},{key:"draw",value:function(i,a,o,s,l,u){this.resize(i,s,l),this.left=a-this.width*.5,this.top=o-this.height*.5,this.initContextForDraw(i,u),Sh(i,this.left,this.top,this.width,this.height),this.performFill(i,u),this.updateBoundingBox(a,o,i,s,l),this.labelModule.draw(i,a,o,s,l)}},{key:"distanceToBorder",value:function(i,a){i&&this.resize(i);var o=this.width*.5,s=this.height*.5,l=Math.sin(a)*o,u=Math.cos(a)*s;return o*s/Math.sqrt(l*l+u*u)}}]),e}(Yi);function Nue(r){var n=Fue();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function Fue(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var Bue=function(r){ne(e,r);var n=Nue(e);function e(t,i,a){var o;return x(this,e),o=n.call(this,t,i,a),o._setMargins(a),o}return A(e,[{key:"resize",value:function(i,a,o){this.needsRefresh(a,o)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(i,a,o,s,l,u){var d=this;return this.resize(i,s,l),this.options.icon.size=this.options.icon.size||50,this.left=a-this.width/2,this.top=o-this.height/2,this._icon(i,a,o,s,l,u),{drawExternalLabel:function(){if(d.options.label!==void 0){var h=5;d.labelModule.draw(i,d.left+d.iconSize.width/2+d.margin.left,o+d.height/2+h,s)}d.updateBoundingBox(a,o)}}}},{key:"updateBoundingBox",value:function(i,a){if(this.boundingBox.top=a-this.options.icon.size*.5,this.boundingBox.left=i-this.options.icon.size*.5,this.boundingBox.right=i+this.options.icon.size*.5,this.boundingBox.bottom=a+this.options.icon.size*.5,this.options.label!==void 0&&this.labelModule.size.width>0){var o=5;this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+o)}}},{key:"_icon",value:function(i,a,o,s,l,u){var d=Number(this.options.icon.size);this.options.icon.code!==void 0?(i.font=[this.options.icon.weight!=null?this.options.icon.weight:s?"bold":"",(this.options.icon.weight!=null&&s?5:0)+d+"px",this.options.icon.face].join(" "),i.fillStyle=this.options.icon.color||"black",i.textAlign="center",i.textBaseline="middle",this.enableShadow(i,u),i.fillText(this.options.icon.code,a,o),this.disableShadow(i,u)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(i,a){return this._distanceToBorder(i,a)}}]),e}(Yi);function jue(r){var n=Lue();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function Lue(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var zue=function(r){ne(e,r);var n=jue(e);function e(t,i,a,o,s){var l;return x(this,e),l=n.call(this,t,i,a),l.setImages(o,s),l}return A(e,[{key:"resize",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(s){var l=this.options.size*2;this.width=l,this.height=l;return}this.needsRefresh(a,o)&&this._resizeImage()}},{key:"draw",value:function(i,a,o,s,l,u){i.save(),this.switchImages(s),this.resize();var d=a,c=o;if(this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=a,this.top=o,d+=this.width/2,c+=this.height/2):(this.left=a-this.width/2,this.top=o-this.height/2),this.options.shapeProperties.useBorderWithImage===!0){var h=this.options.borderWidth,f=this.options.borderWidthSelected||2*this.options.borderWidth,v=(s?f:h)/this.body.view.scale;i.lineWidth=Math.min(this.width,v),i.beginPath();var p=s?this.options.color.highlight.border:l?this.options.color.hover.border:this.options.color.border,y=s?this.options.color.highlight.background:l?this.options.color.hover.background:this.options.color.background;u.opacity!==void 0&&(p=Lt(p,u.opacity),y=Lt(y,u.opacity)),i.strokeStyle=p,i.fillStyle=y,i.rect(this.left-.5*i.lineWidth,this.top-.5*i.lineWidth,this.width+i.lineWidth,this.height+i.lineWidth),Bo(i).call(i),this.performStroke(i,u),i.closePath()}this._drawImageAtPosition(i,u),this._drawImageLabel(i,d,c,s,l),this.updateBoundingBox(a,o),i.restore()}},{key:"updateBoundingBox",value:function(i,a){this.resize(),this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=i,this.top=a):(this.left=i-this.width/2,this.top=a-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(i,a){return this._distanceToBorder(i,a)}}]),e}(xv);function Hue(r){var n=Wue();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function Wue(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var Uue=function(r){ne(e,r);var n=Hue(e);function e(t,i,a){return x(this,e),n.call(this,t,i,a)}return A(e,[{key:"draw",value:function(i,a,o,s,l,u){return this._drawShape(i,"square",2,a,o,s,l,u)}},{key:"distanceToBorder",value:function(i,a){return this._distanceToBorder(i,a)}}]),e}(si);function Vue(r){var n=Gue();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function Gue(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var Kue=function(r){ne(e,r);var n=Vue(e);function e(t,i,a){return x(this,e),n.call(this,t,i,a)}return A(e,[{key:"draw",value:function(i,a,o,s,l,u){return this._drawShape(i,"hexagon",4,a,o,s,l,u)}},{key:"distanceToBorder",value:function(i,a){return this._distanceToBorder(i,a)}}]),e}(si);function que(r){var n=Yue();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function Yue(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var Xue=function(r){ne(e,r);var n=que(e);function e(t,i,a){return x(this,e),n.call(this,t,i,a)}return A(e,[{key:"draw",value:function(i,a,o,s,l,u){return this._drawShape(i,"star",4,a,o,s,l,u)}},{key:"distanceToBorder",value:function(i,a){return this._distanceToBorder(i,a)}}]),e}(si);function Jue(r){var n=Que();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function Que(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var Zue=function(r){ne(e,r);var n=Jue(e);function e(t,i,a){var o;return x(this,e),o=n.call(this,t,i,a),o._setMargins(a),o}return A(e,[{key:"resize",value:function(i,a,o){this.needsRefresh(a,o)&&(this.textSize=this.labelModule.getTextSize(i,a,o),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(i,a,o,s,l,u){this.resize(i,s,l),this.left=a-this.width/2,this.top=o-this.height/2,this.enableShadow(i,u),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l),this.disableShadow(i,u),this.updateBoundingBox(a,o,i,s,l)}},{key:"distanceToBorder",value:function(i,a){return this._distanceToBorder(i,a)}}]),e}(Yi);function ede(r){var n=tde();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function tde(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var rde=function(r){ne(e,r);var n=ede(e);function e(t,i,a){return x(this,e),n.call(this,t,i,a)}return A(e,[{key:"draw",value:function(i,a,o,s,l,u){return this._drawShape(i,"triangle",3,a,o,s,l,u)}},{key:"distanceToBorder",value:function(i,a){return this._distanceToBorder(i,a)}}]),e}(si);function ide(r){var n=nde();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function nde(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var ade=function(r){ne(e,r);var n=ide(e);function e(t,i,a){return x(this,e),n.call(this,t,i,a)}return A(e,[{key:"draw",value:function(i,a,o,s,l,u){return this._drawShape(i,"triangleDown",3,a,o,s,l,u)}},{key:"distanceToBorder",value:function(i,a){return this._distanceToBorder(i,a)}}]),e}(si);function s$(r,n){var e=be(r);if(Qr){var t=Qr(r);n&&(t=bt(t).call(t,function(i){return oi(r,i).enumerable})),e.push.apply(e,t)}return e}function l$(r){for(var n=1;ne.left&&this.shape.tope.top}},{key:"isBoundingBoxOverlappingWith",value:function(e){return this.shape.boundingBox.lefte.left&&this.shape.boundingBox.tope.top}}],[{key:"checkOpacity",value:function(e){return 0<=e&&e<=1}},{key:"checkCoordinateOrigin",value:function(e){return e===void 0||e==="center"||e==="top-left"}},{key:"updateGroupOptions",value:function(e,t,i){var a;if(i!==void 0){var o=e.group;if(t!==void 0&&t.group!==void 0&&o!==t.group)throw new Error("updateGroupOptions: group values in options don't match.");var s=typeof o=="number"||typeof o=="string"&&o!="";if(s){var l=i.get(o);l.opacity!==void 0&&t.opacity===void 0&&(r.checkOpacity(l.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+l.opacity),l.opacity=void 0));var u=bt(a=ile(t)).call(a,function(d){return t[d]!=null});u.push("font"),ml(u,e,l),e.color=Uh(e.color)}}}},{key:"parseOptions",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,s=["color","fixed","shadow"];if(ml(s,e,t,i),r.checkMass(t),e.opacity!==void 0&&(r.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),t.opacity!==void 0&&(r.checkOpacity(t.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+t.opacity),t.opacity=void 0)),t.shapeProperties&&!r.checkCoordinateOrigin(t.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+t.shapeProperties.coordinateOrigin),jt(e,t,"shadow",a),t.color!==void 0&&t.color!==null){var l=Uh(t.color);eO(e.color,l)}else i===!0&&t.color===null&&(e.color=Yr(a.color));t.fixed!==void 0&&t.fixed!==null&&(typeof t.fixed=="boolean"?(e.fixed.x=t.fixed,e.fixed.y=t.fixed):(t.fixed.x!==void 0&&typeof t.fixed.x=="boolean"&&(e.fixed.x=t.fixed.x),t.fixed.y!==void 0&&typeof t.fixed.y=="boolean"&&(e.fixed.y=t.fixed.y))),i===!0&&t.font===null&&(e.font=Yr(a.font)),r.updateGroupOptions(e,t,o),t.scaling!==void 0&&jt(e.scaling,t.scaling,"label",a.scaling)}},{key:"checkMass",value:function(e,t){if(e.mass!==void 0&&e.mass<=0){var i="";t!==void 0&&(i=" in node id: "+t),console.error("%cNegative or zero mass disallowed"+i+", setting mass to 1.",nO),e.mass=1}}}]),r}();function ode(r,n){var e=typeof ai<"u"&&Gi(r)||r["@@iterator"];if(!e){if(oe(r)||(e=sde(r))||n){e&&(r=e);var t=0,i=function(){};return{s:i,n:function(){return t>=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(u){throw u},f:i}}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 a=!0,o=!1,s;return{s:function(){e=e.call(r)},n:function(){var u=e.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function sde(r,n){var e;if(r){if(typeof r=="string")return u$(r,n);var t=Je(e=Object.prototype.toString.call(r)).call(e,8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Vi(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u$(r,n)}}function u$(r,n){(n==null||n>r.length)&&(n=r.length);for(var e=0,t=new Array(n);e1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity):this.options.opacity=e.opacity),e.shape!==void 0)for(var t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&this.body.nodes[t].updateShape();if(typeof e.font<"u"||typeof e.widthConstraint<"u"||typeof e.heightConstraint<"u")for(var i=0,a=be(this.body.nodes);i1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.data.nodes;if(C_("id",e))this.body.data.nodes=e;else if(oe(e))this.body.data.nodes=new ul,this.body.data.nodes.add(e);else if(!e)this.body.data.nodes=new ul;else throw new TypeError("Array or DataSet expected");if(i&&Z(this.nodesListeners,function(s,l){i.off(l,s)}),this.body.nodes={},this.body.data.nodes){var a=this;Z(this.nodesListeners,function(s,l){a.body.data.nodes.on(l,s)});var o=this.body.data.nodes.getIds();this.add(o,!0)}t===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i,a=[],o=0;o1&&arguments[1]!==void 0?arguments[1]:Pt;return new t(e,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Z(this.body.nodes,function(i,a){var o=e.body.data.nodes.get(a);o!==void 0&&(t===!0&&i.setOptions({x:null,y:null}),i.setOptions({fixed:!1}),i.setOptions(o))})}},{key:"getPositions",value:function(e){var t={};if(e!==void 0){if(oe(e)===!0){for(var i=0;i0?(l=s/o,t+=l*l):t+=s;return o===1/0?1/0:o*Mde(t)}});var Fde=re,Bde=Fde.Math.hypot,jde=Bde,Lde=jde,zde=Lde,Hde=z(zde);function MO(r){var n=Wde();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function Wde(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var Ie=function(){function r(){x(this,r)}return A(r,null,[{key:"transform",value:function(e,t){oe(e)||(e=[e]);for(var i=t.point.x,a=t.point.y,o=t.angle,s=t.length,l=0;l4&&arguments[4]!==void 0?arguments[4]:this.getViaNode();e.strokeStyle=this.getColor(e,t),e.lineWidth=t.width,t.dashes!==!1?this._drawDashedLine(e,t,o):this._drawLine(e,t,o)}},{key:"_drawLine",value:function(e,t,i,a,o){if(this.from!=this.to)this._line(e,t,i,a,o);else{var s=this._getCircleData(e),l=$e(s,3),u=l[0],d=l[1],c=l[2];this._circle(e,t,u,d,c)}}},{key:"_drawDashedLine",value:function(e,t,i,a,o){e.lineCap="round";var s=oe(t.dashes)?t.dashes:[5,5];if(e.setLineDash!==void 0){if(e.save(),e.setLineDash(s),e.lineDashOffset=0,this.from!=this.to)this._line(e,t,i);else{var l=this._getCircleData(e),u=$e(l,3),d=u[0],c=u[1],h=u[2];this._circle(e,t,d,c,h)}e.setLineDash([0]),e.lineDashOffset=0,e.restore()}else{if(this.from!=this.to)Z_(e,this.from.x,this.from.y,this.to.x,this.to.y,s);else{var f=this._getCircleData(e),v=$e(f,3),p=v[0],y=v[1],g=v[2];this._circle(e,t,p,y,g)}this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}}},{key:"findBorderPosition",value:function(e,t,i){return this.from!=this.to?this._findBorderPosition(e,t,i):this._findBorderPositionCircle(e,t,i)}},{key:"findBorderPositions",value:function(e){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,e),to:this._findBorderPosition(this.to,e)};var t,i=Je(t=this._getCircleData(e)).call(t,0,2),a=$e(i,2),o=a[0],s=a[1];return{from:this._findBorderPositionCircle(this.from,e,{x:o,y:s,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,e,{x:o,y:s,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(e){var t=this.options.selfReference.size;e!==void 0&&this.from.shape.width===void 0&&this.from.shape.resize(e);var i=IO(e,this.options.selfReference.angle,t,this.from);return[i.x,i.y,t]}},{key:"_pointOnCircle",value:function(e,t,i,a){var o=a*2*Math.PI;return{x:e+i*Math.cos(o),y:t-i*Math.sin(o)}}},{key:"_findBorderPositionCircle",value:function(e,t,i){var a=i.x,o=i.y,s=i.low,l=i.high,u=i.direction,d=10,c=this.options.selfReference.size,h=.05,f,v=(s+l)*.5,p=0;this.options.arrowStrikethrough===!0&&(u===-1?p=this.options.endPointOffset.from:u===1&&(p=this.options.endPointOffset.to));var y=0;do{v=(s+l)*.5,f=this._pointOnCircle(a,o,c,v);var g=Math.atan2(e.y-f.y,e.x-f.x),m=e.distanceToBorder(t,g)+p,$=Math.sqrt(Math.pow(f.x-e.x,2)+Math.pow(f.y-e.y,2)),b=m-$;if(Math.abs(b)0?u>0?s=v:l=v:u>0?l=v:s=v,++y}while(s<=l&&y1?c=1:c<0&&(c=0);var h=e+c*l,f=t+c*u,v=h-o,p=f-s;return Math.sqrt(v*v+p*p)}},{key:"getArrowData",value:function(e,t,i,a,o,s){var l,u,d,c,h,f,v,p=s.width;t==="from"?(d=this.from,c=this.to,h=s.fromArrowScale<0,f=Math.abs(s.fromArrowScale),v=s.fromArrowType):t==="to"?(d=this.to,c=this.from,h=s.toArrowScale<0,f=Math.abs(s.toArrowScale),v=s.toArrowType):(d=this.to,c=this.from,h=s.middleArrowScale<0,f=Math.abs(s.middleArrowScale),v=s.middleArrowType);var y=15*f+3*p;if(d!=c){var g=Hde(d.x-c.x,d.y-c.y),m=y/g;if(t!=="middle")if(this.options.smooth.enabled===!0){var $=this._findBorderPosition(d,e,{via:i}),b=this.getPoint($.t+m*(t==="from"?1:-1),i);l=Math.atan2($.y-b.y,$.x-b.x),u=$}else l=Math.atan2(d.y-c.y,d.x-c.x),u=this._findBorderPosition(d,e);else{var E=(h?-m:m)/2,S=this.getPoint(.5+E,i),D=this.getPoint(.5-E,i);l=Math.atan2(S.y-D.y,S.x-D.x),u=this.getPoint(.5,i)}}else{var M=this._getCircleData(e),R=$e(M,3),F=R[0],W=R[1],J=R[2];if(t==="from"){var X=this.options.selfReference.angle,ye=this.options.selfReference.angle+Math.PI,Ke=this._findBorderPositionCircle(this.from,e,{x:F,y:W,low:X,high:ye,direction:-1});l=Ke.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI,u=Ke}else if(t==="to"){var Ce=this.options.selfReference.angle,Tt=this.options.selfReference.angle+Math.PI,nt=this._findBorderPositionCircle(this.from,e,{x:F,y:W,low:Ce,high:Tt,direction:1});l=nt.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI,u=nt}else{var Ze=this.options.selfReference.angle/(2*Math.PI);u=this._pointOnCircle(F,W,J,Ze),l=Ze*-2*Math.PI+1.5*Math.PI+.1*Math.PI}}var kt=u.x-y*.9*Math.cos(l),et=u.y-y*.9*Math.sin(l),fe={x:kt,y:et};return{point:u,core:fe,angle:l,length:y,type:v}}},{key:"drawArrowHead",value:function(e,t,i,a,o){e.strokeStyle=this.getColor(e,t),e.fillStyle=e.strokeStyle,e.lineWidth=t.width;var s=NO.draw(e,o);s&&(this.enableShadow(e,t),Bo(e).call(e),this.disableShadow(e,t))}},{key:"enableShadow",value:function(e,t){t.shadow===!0&&(e.shadowColor=t.shadowColor,e.shadowBlur=t.shadowSize,e.shadowOffsetX=t.shadowX,e.shadowOffsetY=t.shadowY)}},{key:"disableShadow",value:function(e,t){t.shadow===!0&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}},{key:"drawBackground",value:function(e,t){if(t.background!==!1){var i={strokeStyle:e.strokeStyle,lineWidth:e.lineWidth,dashes:e.dashes};e.strokeStyle=t.backgroundColor,e.lineWidth=t.backgroundSize,this.setStrokeDashed(e,t.backgroundDashes),e.stroke(),e.strokeStyle=i.strokeStyle,e.lineWidth=i.lineWidth,e.dashes=i.dashes,this.setStrokeDashed(e,t.dashes)}}},{key:"setStrokeDashed",value:function(e,t){if(t!==!1)if(e.setLineDash!==void 0){var i=oe(t)?t:[5,5];e.setLineDash(i)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else e.setLineDash!==void 0?e.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}]),r}();function p$(r,n){var e=be(r);if(Qr){var t=Qr(r);n&&(t=bt(t).call(t,function(i){return oi(r,i).enumerable})),e.push.apply(e,t)}return e}function g$(r){for(var n=1;n"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var Av=function(r){ne(e,r);var n=rce(e);function e(t,i,a){return x(this,e),n.call(this,t,i,a)}return A(e,[{key:"_findBorderPositionBezier",value:function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this._getViaCoordinates(),s=10,l=.2,u=!1,d=1,c=0,h=this.to,f,v,p=this.options.endPointOffset?this.options.endPointOffset.to:0;i.id===this.from.id&&(h=this.from,u=!0,p=this.options.endPointOffset?this.options.endPointOffset.from:0),this.options.arrowStrikethrough===!1&&(p=0);var y=0;do{v=(c+d)*.5,f=this.getPoint(v,o);var g=Math.atan2(h.y-f.y,h.x-f.x),m=h.distanceToBorder(a,g)+p,$=Math.sqrt(Math.pow(f.x-h.x,2)+Math.pow(f.y-h.y,2)),b=m-$;if(Math.abs(b)0&&(h=this._getDistanceToLine(g,m,p,y,l,u),c=h"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var y$=function(r){ne(e,r);var n=nce(e);function e(t,i,a){var o;return x(this,e),o=n.call(this,t,i,a),o.via=o.via,o._boundFunction=function(){o.positionBezierNode()},o._body.emitter.on("_repositionBezierNodes",o._boundFunction),o}return A(e,[{key:"setOptions",value:function(i){Gs(B(e.prototype),"setOptions",this).call(this,i);var a=!1;this.options.physics!==i.physics&&(a=!0),this.options=i,this.id=this.options.id,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.setupSupportNode(),this.connect(),a===!0&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}},{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.from===void 0||this.to===void 0||this.options.physics===!1?this.via.setOptions({physics:!1}):this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}},{key:"cleanup",value:function(){return this._body.emitter.off("_repositionBezierNodes",this._boundFunction),this.via!==void 0?(delete this._body.nodes[this.via.id],this.via=void 0,!0):!1}},{key:"setupSupportNode",value:function(){if(this.via===void 0){var i="edgeId:"+this.id,a=this._body.functions.createNode({id:i,shape:"circle",physics:!0,hidden:!0});this._body.nodes[i]=a,this.via=a,this.via.parentEdgeId=this.id,this.positionBezierNode()}}},{key:"positionBezierNode",value:function(){this.via!==void 0&&this.from!==void 0&&this.to!==void 0?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):this.via!==void 0&&(this.via.x=0,this.via.y=0)}},{key:"_line",value:function(i,a,o){this._bezierCurve(i,a,o)}},{key:"_getViaCoordinates",value:function(){return this.via}},{key:"getViaNode",value:function(){return this.via}},{key:"getPoint",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.via;if(this.from===this.to){var o=this._getCircleData(),s=$e(o,3),l=s[0],u=s[1],d=s[2],c=2*Math.PI*(1-i);return{x:l+d*Math.sin(c),y:u+d-d*(1-Math.cos(c))}}else return{x:Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*a.x+Math.pow(i,2)*this.toPoint.x,y:Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*a.y+Math.pow(i,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(i,a){return this._findBorderPositionBezier(i,a,this.via)}},{key:"_getDistanceToEdge",value:function(i,a,o,s,l,u){return this._getDistanceToBezierEdge(i,a,o,s,l,u,this.via)}}]),e}(Av);function oce(r){var n=sce();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function sce(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var m$=function(r){ne(e,r);var n=oce(e);function e(t,i,a){return x(this,e),n.call(this,t,i,a)}return A(e,[{key:"_line",value:function(i,a,o){this._bezierCurve(i,a,o)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var i=this.options.smooth.roundness,a=this.options.smooth.type,o=Math.abs(this.from.x-this.to.x),s=Math.abs(this.from.y-this.to.y);if(a==="discrete"||a==="diagonalCross"){var l,u;o<=s?l=u=i*s:l=u=i*o,this.from.x>this.to.x&&(l=-l),this.from.y>=this.to.y&&(u=-u);var d=this.from.x+l,c=this.from.y+u;return a==="discrete"&&(o<=s?d=othis.to.x&&(M=-M),this.from.y>=this.to.y&&(R=-R);var F=this.from.x+M,W=this.from.y+R;return o<=s?this.from.x<=this.to.x?F=this.to.xF?this.to.x:F:this.from.y>=this.to.y?W=this.to.y>W?this.to.y:W:W=this.to.y2&&arguments[2]!==void 0?arguments[2]:{};return this._findBorderPositionBezier(i,a,o.via)}},{key:"_getDistanceToEdge",value:function(i,a,o,s,l,u){var d=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(i,a,o,s,l,u,d)}},{key:"getPoint",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),o=i,s=Math.pow(1-o,2)*this.fromPoint.x+2*o*(1-o)*a.x+Math.pow(o,2)*this.toPoint.x,l=Math.pow(1-o,2)*this.fromPoint.y+2*o*(1-o)*a.y+Math.pow(o,2)*this.toPoint.y;return{x:s,y:l}}}]),e}(Av);function lce(r){var n=uce();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function uce(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var dce=function(r){ne(e,r);var n=lce(e);function e(t,i,a){return x(this,e),n.call(this,t,i,a)}return A(e,[{key:"_getDistanceToBezierEdge2",value:function(i,a,o,s,l,u,d,c){for(var h=1e9,f=i,v=a,p=[0,0,0,0],y=1;y<10;y++){var g=.1*y;p[0]=Math.pow(1-g,3),p[1]=3*g*Math.pow(1-g,2),p[2]=3*Math.pow(g,2)*(1-g),p[3]=Math.pow(g,3);var m=p[0]*i+p[1]*d.x+p[2]*c.x+p[3]*o,$=p[0]*a+p[1]*d.y+p[2]*c.y+p[3]*s;if(y>0){var b=this._getDistanceToLine(f,v,m,$,l,u);h=b"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var b$=function(r){ne(e,r);var n=cce(e);function e(t,i,a){return x(this,e),n.call(this,t,i,a)}return A(e,[{key:"_line",value:function(i,a,o){var s=o[0],l=o[1];this._bezierCurve(i,a,s,l)}},{key:"_getViaCoordinates",value:function(){var i=this.from.x-this.to.x,a=this.from.y-this.to.y,o,s,l,u,d=this.options.smooth.roundness;return(Math.abs(i)>Math.abs(a)||this.options.smooth.forceDirection===!0||this.options.smooth.forceDirection==="horizontal")&&this.options.smooth.forceDirection!=="vertical"?(s=this.from.y,u=this.to.y,o=this.from.x-d*i,l=this.to.x+d*i):(s=this.from.y-d*a,u=this.to.y+d*a,o=this.from.x,l=this.to.x),[{x:o,y:s},{x:l,y:u}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(i,a){return this._findBorderPositionBezier(i,a)}},{key:"_getDistanceToEdge",value:function(i,a,o,s,l,u){var d=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates(),c=$e(d,2),h=c[0],f=c[1];return this._getDistanceToBezierEdge2(i,a,o,s,l,u,h,f)}},{key:"getPoint",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),o=$e(a,2),s=o[0],l=o[1],u=i,d=[Math.pow(1-u,3),3*u*Math.pow(1-u,2),3*Math.pow(u,2)*(1-u),Math.pow(u,3)],c=d[0]*this.fromPoint.x+d[1]*s.x+d[2]*l.x+d[3]*this.toPoint.x,h=d[0]*this.fromPoint.y+d[1]*s.y+d[2]*l.y+d[3]*this.toPoint.y;return{x:c,y:h}}}]),e}(dce);function fce(r){var n=vce();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function vce(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var $$=function(r){ne(e,r);var n=fce(e);function e(t,i,a){return x(this,e),n.call(this,t,i,a)}return A(e,[{key:"_line",value:function(i,a){i.beginPath(),i.moveTo(this.fromPoint.x,this.fromPoint.y),i.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(i,a),i.stroke(),this.disableShadow(i,a)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(i){return{x:(1-i)*this.fromPoint.x+i*this.toPoint.x,y:(1-i)*this.fromPoint.y+i*this.toPoint.y}}},{key:"_findBorderPosition",value:function(i,a){var o=this.to,s=this.from;i.id===this.from.id&&(o=this.from,s=this.to);var l=Math.atan2(o.y-s.y,o.x-s.x),u=o.x-s.x,d=o.y-s.y,c=Math.sqrt(u*u+d*d),h=i.distanceToBorder(a,l),f=(c-h)/c;return{x:(1-f)*s.x+f*o.x,y:(1-f)*s.y+f*o.y,t:0}}},{key:"_getDistanceToEdge",value:function(i,a,o,s,l,u){return this._getDistanceToLine(i,a,o,s,l,u)}}]),e}(FO),Sn=function(){function r(n,e,t,i,a){if(x(this,r),e===void 0)throw new Error("No body provided");this.options=Yr(i),this.globalOptions=i,this.defaultOptions=a,this.body=e,this.imagelist=t,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new CO(this.body,this.options,!0),this.setOptions(n)}return A(r,[{key:"setOptions",value:function(e){if(e){var t=typeof e.physics<"u"&&this.options.physics!==e.physics||typeof e.hidden<"u"&&(this.options.hidden||!1)!==(e.hidden||!1)||typeof e.from<"u"&&this.options.from!==e.from||typeof e.to<"u"&&this.options.to!==e.to;r.parseOptions(this.options,e,!0,this.globalOptions),e.id!==void 0&&(this.id=e.id),e.from!==void 0&&(this.fromId=e.from),e.to!==void 0&&(this.toId=e.to),e.title!==void 0&&(this.title=e.title),e.value!==void 0&&(e.value=kO(e.value));var i=[e,this.options,this.defaultOptions];return this.chooser=Iv("edge",i),this.updateLabelModule(e),t=this.updateEdgeType()||t,this._setInteractionWidths(),this.connect(),t}}},{key:"getFormattingValues",value:function(){var e=this.options.arrows.to===!0||this.options.arrows.to.enabled===!0,t=this.options.arrows.from===!0||this.options.arrows.from.enabled===!0,i=this.options.arrows.middle===!0||this.options.arrows.middle.enabled===!0,a=this.options.color.inherit,o={toArrow:e,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:i,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:t,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:a?void 0:this.options.color.color,inheritsColor:a,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(this.chooser===!0){if(this.selected){var s=this.options.selectionWidth;typeof s=="function"?o.width=s(o.width):typeof s=="number"&&(o.width+=s),o.width=Math.max(o.width,.3/this.body.view.scale),o.color=this.options.color.highlight,o.shadow=this.options.shadow.enabled}else if(this.hover){var l=this.options.hoverWidth;typeof l=="function"?o.width=l(o.width):typeof l=="number"&&(o.width+=l),o.width=Math.max(o.width,.3/this.body.view.scale),o.color=this.options.color.hover,o.shadow=this.options.shadow.enabled}}else typeof this.chooser=="function"&&(this.chooser(o,this.options.id,this.selected,this.hover),o.color!==void 0&&(o.inheritsColor=!1),o.shadow===!1&&(o.shadowColor!==this.options.shadow.color||o.shadowSize!==this.options.shadow.size||o.shadowX!==this.options.shadow.x||o.shadowY!==this.options.shadow.y)&&(o.shadow=!0));else o.shadow=this.options.shadow.enabled,o.width=Math.max(o.width,.3/this.body.view.scale);return o}},{key:"updateLabelModule",value:function(e){var t=[e,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,t),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var e=this.options.smooth,t=!1,i=!0;return this.edgeType!==void 0&&((this.edgeType instanceof y$&&e.enabled===!0&&e.type==="dynamic"||this.edgeType instanceof b$&&e.enabled===!0&&e.type==="cubicBezier"||this.edgeType instanceof m$&&e.enabled===!0&&e.type!=="dynamic"&&e.type!=="cubicBezier"||this.edgeType instanceof $$&&e.type.enabled===!1)&&(i=!1),i===!0&&(t=this.cleanup())),i===!0?e.enabled===!0?e.type==="dynamic"?(t=!0,this.edgeType=new y$(this.options,this.body,this.labelModule)):e.type==="cubicBezier"?this.edgeType=new b$(this.options,this.body,this.labelModule):this.edgeType=new m$(this.options,this.body,this.labelModule):this.edgeType=new $$(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),t}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=this.from!==void 0&&this.to!==void 0,this.connected===!0?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(e,t,i){if(this.options.value!==void 0){var a=this.options.scaling.customScalingFunction(e,t,i,this.options.value),o=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){var s=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+a*s}this.options.width=this.options.scaling.min+a*o}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){typeof this.options.hoverWidth=="function"?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,typeof this.options.selectionWidth=="function"?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:"draw",value:function(e){var t=this.getFormattingValues();if(!t.hidden){var i=this.edgeType.getViaNode();this.edgeType.drawLine(e,t,this.selected,this.hover,i),this.drawLabel(e,i)}}},{key:"drawArrows",value:function(e){var t=this.getFormattingValues();if(!t.hidden){var i=this.edgeType.getViaNode(),a={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,t.fromArrow&&(a.from=this.edgeType.getArrowData(e,"from",i,this.selected,this.hover,t),t.arrowStrikethrough===!1&&(this.edgeType.fromPoint=a.from.core),t.fromArrowSrc&&(a.from.image=this.imagelist.load(t.fromArrowSrc)),t.fromArrowImageWidth&&(a.from.imageWidth=t.fromArrowImageWidth),t.fromArrowImageHeight&&(a.from.imageHeight=t.fromArrowImageHeight)),t.toArrow&&(a.to=this.edgeType.getArrowData(e,"to",i,this.selected,this.hover,t),t.arrowStrikethrough===!1&&(this.edgeType.toPoint=a.to.core),t.toArrowSrc&&(a.to.image=this.imagelist.load(t.toArrowSrc)),t.toArrowImageWidth&&(a.to.imageWidth=t.toArrowImageWidth),t.toArrowImageHeight&&(a.to.imageHeight=t.toArrowImageHeight)),t.middleArrow&&(a.middle=this.edgeType.getArrowData(e,"middle",i,this.selected,this.hover,t),t.middleArrowSrc&&(a.middle.image=this.imagelist.load(t.middleArrowSrc)),t.middleArrowImageWidth&&(a.middle.imageWidth=t.middleArrowImageWidth),t.middleArrowImageHeight&&(a.middle.imageHeight=t.middleArrowImageHeight)),t.fromArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,a.from),t.middleArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,a.middle),t.toArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,a.to)}}},{key:"drawLabel",value:function(e,t){if(this.options.label!==void 0){var i=this.from,a=this.to;this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(e,this.selected,this.hover);var o;if(i.id!=a.id){this.labelModule.pointToSelf=!1,o=this.edgeType.getPoint(.5,t),e.save();var s=this._getRotation(e);s.angle!=0&&(e.translate(s.x,s.y),e.rotate(s.angle)),this.labelModule.draw(e,o.x,o.y,this.selected,this.hover),e.restore()}else{this.labelModule.pointToSelf=!0;var l=IO(e,this.options.selfReference.angle,this.options.selfReference.size,i);o=this._pointOnCircle(l.x,l.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(e,o.x,o.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(e){var t=[];if(this.labelModule.visible()){var i=this._getRotation();Yh(this.labelModule.getSize(),e,i)&&t.push({edgeId:this.id,labelId:0})}var a={left:e.x,top:e.y};return this.isOverlappingWith(a)&&t.push({edgeId:this.id}),t}},{key:"isOverlappingWith",value:function(e){if(this.connected){var t=10,i=this.from.x,a=this.from.y,o=this.to.x,s=this.to.y,l=e.left,u=e.top,d=this.edgeType.getDistanceToEdge(i,a,o,s,l,u);return d0&&s<0)&&(l+=Math.PI),a.angle=l,a}},{key:"_pointOnCircle",value:function(e,t,i,a){return{x:e+i*Math.cos(a),y:t-i*Math.sin(a)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return this.body.nodes[this.fromId]!==void 0&&this.body.nodes[this.toId]!==void 0}}],[{key:"parseOptions",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"];if(ca(s,e,t,i),t.endPointOffset!==void 0&&t.endPointOffset.from!==void 0&&(pi(t.endPointOffset.from)?e.endPointOffset.from=t.endPointOffset.from:(e.endPointOffset.from=a.endPointOffset.from!==void 0?a.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),t.endPointOffset!==void 0&&t.endPointOffset.to!==void 0&&(pi(t.endPointOffset.to)?e.endPointOffset.to=t.endPointOffset.to:(e.endPointOffset.to=a.endPointOffset.to!==void 0?a.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),wl(t.label)?e.label=t.label:wl(e.label)||(e.label=void 0),jt(e,t,"smooth",a),jt(e,t,"shadow",a),jt(e,t,"background",a),t.dashes!==void 0&&t.dashes!==null?e.dashes=t.dashes:i===!0&&t.dashes===null&&(e.dashes=Ei(a.dashes)),t.scaling!==void 0&&t.scaling!==null?(t.scaling.min!==void 0&&(e.scaling.min=t.scaling.min),t.scaling.max!==void 0&&(e.scaling.max=t.scaling.max),jt(e.scaling,t.scaling,"label",a.scaling)):i===!0&&t.scaling===null&&(e.scaling=Ei(a.scaling)),t.arrows!==void 0&&t.arrows!==null)if(typeof t.arrows=="string"){var l=t.arrows.toLowerCase();e.arrows.to.enabled=ee(l).call(l,"to")!=-1,e.arrows.middle.enabled=ee(l).call(l,"middle")!=-1,e.arrows.from.enabled=ee(l).call(l,"from")!=-1}else if(le(t.arrows)==="object")jt(e.arrows,t.arrows,"to",a.arrows),jt(e.arrows,t.arrows,"middle",a.arrows),jt(e.arrows,t.arrows,"from",a.arrows);else throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+Fo(t.arrows));else i===!0&&t.arrows===null&&(e.arrows=Ei(a.arrows));if(t.color!==void 0&&t.color!==null){var u=_n(t.color)?{color:t.color,highlight:t.color,hover:t.color,inherit:!1,opacity:1}:t.color,d=e.color;if(o)ce(d,a.color,!1,i);else for(var c in d)Object.prototype.hasOwnProperty.call(d,c)&&delete d[c];if(_n(d))d.color=d,d.highlight=d,d.hover=d,d.inherit=!1,u.opacity===void 0&&(d.opacity=1);else{var h=!1;u.color!==void 0&&(d.color=u.color,h=!0),u.highlight!==void 0&&(d.highlight=u.highlight,h=!0),u.hover!==void 0&&(d.hover=u.hover,h=!0),u.inherit!==void 0&&(d.inherit=u.inherit),u.opacity!==void 0&&(d.opacity=Math.min(1,Math.max(0,u.opacity))),h===!0?d.inherit=!1:d.inherit===void 0&&(d.inherit="from")}}else i===!0&&t.color===null&&(e.color=Yr(a.color));i===!0&&t.font===null&&(e.font=Yr(a.font)),Object.prototype.hasOwnProperty.call(t,"selfReferenceSize")&&(console.warn("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),e.selfReference.size=t.selfReferenceSize)}}]),r}(),pce=function(){function r(n,e,t){var i,a=this;x(this,r),this.body=n,this.images=e,this.groups=t,this.body.functions.createEdge=k(i=this.create).call(i,this),this.edgesListeners={add:function(s,l){a.add(l.items)},update:function(s,l){a.update(l.items)},remove:function(s,l){a.remove(l.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(s,l,u,d){if(l===s)return .5;var c=1/(l-s);return Math.max(0,(d-s)*c)}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},ce(this.options,this.defaultOptions),this.bindEventListeners()}return A(r,[{key:"bindEventListeners",value:function(){var e=this,t,i;this.body.emitter.on("_forceDisableDynamicCurves",function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a==="dynamic"&&(a="continuous");var s=!1;for(var l in e.body.edges)if(Object.prototype.hasOwnProperty.call(e.body.edges,l)){var u=e.body.edges[l],d=e.body.data.edges.get(l);if(d!=null){var c=d.smooth;c!==void 0&&c.enabled===!0&&c.type==="dynamic"&&(a===void 0?u.setOptions({smooth:!1}):u.setOptions({smooth:{type:a}}),s=!0)}}o===!0&&s===!0&&e.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",function(){e.reconnectEdges()}),this.body.emitter.on("refreshEdges",k(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",k(i=this.refresh).call(i,this)),this.body.emitter.on("destroy",function(){Z(e.edgesListeners,function(a,o){e.body.data.edges&&e.body.data.edges.off(o,a)}),delete e.body.functions.createEdge,delete e.edgesListeners.add,delete e.edgesListeners.update,delete e.edgesListeners.remove,delete e.edgesListeners})}},{key:"setOptions",value:function(e){if(e!==void 0){Sn.parseOptions(this.options,e,!0,this.defaultOptions,!0);var t=!1;if(e.smooth!==void 0)for(var i in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,i)&&(t=this.body.edges[i].updateEdgeType()||t);if(e.font!==void 0)for(var a in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,a)&&this.body.edges[a].updateLabelModule();(e.hidden!==void 0||e.physics!==void 0||t===!0)&&this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(e){var t=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=this.body.data.edges;if(C_("id",e))this.body.data.edges=e;else if(oe(e))this.body.data.edges=new ul,this.body.data.edges.add(e);else if(!e)this.body.data.edges=new ul;else throw new TypeError("Array or DataSet expected");if(a&&Z(this.edgesListeners,function(s,l){a.off(l,s)}),this.body.edges={},this.body.data.edges){Z(this.edgesListeners,function(s,l){t.body.data.edges.on(l,s)});var o=this.body.data.edges.getIds();this.add(o,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),i===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.edges,a=this.body.data.edges,o=0;o1&&arguments[1]!==void 0?arguments[1]:!0;if(e.length!==0){var i=this.body.edges;Z(e,function(a){var o=i[a];o!==void 0&&o.remove()}),t&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var e=this;Z(this.body.edges,function(t,i){var a=e.body.data.edges.get(i);a!==void 0&&t.setOptions(a)})}},{key:"create",value:function(e){return new Sn(e,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var e,t=this.body.nodes,i=this.body.edges;for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(t[e].edges=[]);for(e in i)if(Object.prototype.hasOwnProperty.call(i,e)){var a=i[e];a.from=null,a.to=null,a.connect()}}},{key:"getConnectedNodes",value:function(e){var t=[];if(this.body.edges[e]!==void 0){var i=this.body.edges[e];i.fromId!==void 0&&t.push(i.fromId),i.toId!==void 0&&t.push(i.toId)}return t}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var e=this,t=[];Z(this.body.edges,function(i,a){var o=e.body.nodes[i.toId],s=e.body.nodes[i.fromId];o!==void 0&&o.isCluster===!0||s!==void 0&&s.isCluster===!0||(o===void 0||s===void 0)&&t.push(a)}),this.remove(t,!1)}},{key:"_addMissingEdges",value:function(){var e=this.body.data.edges;if(e!=null){var t=this.body.edges,i=[];ue(e).call(e,function(a,o){var s=t[o];s===void 0&&i.push(o)}),this.add(i,!0)}}}]),r}(),BO=function(){function r(n,e,t){x(this,r),this.body=n,this.physicsBody=e,this.barnesHutTree,this.setOptions(t),this._rng=wu("BARNES HUT SOLVER")}return A(r,[{key:"setOptions",value:function(e){this.options=e,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"solve",value:function(){if(this.options.gravitationalConstant!==0&&this.physicsBody.physicsNodeIndices.length>0){var e,t=this.body.nodes,i=this.physicsBody.physicsNodeIndices,a=i.length,o=this._formBarnesHutTree(t,i);this.barnesHutTree=o;for(var s=0;s0&&this._getForceContributions(o.root,e)}}},{key:"_getForceContributions",value:function(e,t){this._getForceContribution(e.children.NW,t),this._getForceContribution(e.children.NE,t),this._getForceContribution(e.children.SW,t),this._getForceContribution(e.children.SE,t)}},{key:"_getForceContribution",value:function(e,t){if(e.childrenCount>0){var i=e.centerOfMass.x-t.x,a=e.centerOfMass.y-t.y,o=Math.sqrt(i*i+a*a);o*e.calcSize>this.thetaInversed?this._calculateForces(o,i,a,t,e):e.childrenCount===4?this._getForceContributions(e,t):e.children.data.id!=t.id&&this._calculateForces(o,i,a,t,e)}}},{key:"_calculateForces",value:function(e,t,i,a,o){e===0&&(e=.1,t=e),this.overlapAvoidanceFactor<1&&a.shape.radius&&(e=Math.max(.1+this.overlapAvoidanceFactor*a.shape.radius,e-a.shape.radius));var s=this.options.gravitationalConstant*o.mass*a.options.mass/Math.pow(e,3),l=t*s,u=i*s;this.physicsBody.forces[a.id].x+=l,this.physicsBody.forces[a.id].y+=u}},{key:"_formBarnesHutTree",value:function(e,t){for(var i,a=t.length,o=e[t[0]].x,s=e[t[0]].y,l=e[t[0]].x,u=e[t[0]].y,d=1;d0&&(hl&&(l=h),fu&&(u=f))}var v=Math.abs(l-o)-Math.abs(u-s);v>0?(s-=.5*v,u+=.5*v):(o+=.5*v,l-=.5*v);var p=1e-5,y=Math.max(p,Math.abs(l-o)),g=.5*y,m=.5*(o+l),$=.5*(s+u),b={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:m-g,maxX:m+g,minY:$-g,maxY:$+g},size:y,calcSize:1/y,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(b.root);for(var E=0;E0&&this._placeInTree(b.root,i);return b}},{key:"_updateBranchMass",value:function(e,t){var i=e.centerOfMass,a=e.mass+t.options.mass,o=1/a;i.x=i.x*e.mass+t.x*t.options.mass,i.x*=o,i.y=i.y*e.mass+t.y*t.options.mass,i.y*=o,e.mass=a;var s=Math.max(Math.max(t.height,t.radius),t.width);e.maxWidth=e.maxWidtht.x?a.maxY>t.y?o="NW":o="SW":a.maxY>t.y?o="NE":o="SE",this._placeInRegion(e,t,o)}},{key:"_placeInRegion",value:function(e,t,i){var a=e.children[i];switch(a.childrenCount){case 0:a.children.data=t,a.childrenCount=1,this._updateBranchMass(a,t);break;case 1:a.children.data.x===t.x&&a.children.data.y===t.y?(t.x+=this._rng(),t.y+=this._rng()):(this._splitBranch(a),this._placeInTree(a,t));break;case 4:this._placeInTree(a,t);break}}},{key:"_splitBranch",value:function(e){var t=null;e.childrenCount===1&&(t=e.children.data,e.mass=0,e.centerOfMass.x=0,e.centerOfMass.y=0),e.childrenCount=4,e.children.data=null,this._insertRegion(e,"NW"),this._insertRegion(e,"NE"),this._insertRegion(e,"SW"),this._insertRegion(e,"SE"),t!=null&&this._placeInTree(e,t)}},{key:"_insertRegion",value:function(e,t){var i,a,o,s,l=.5*e.size;switch(t){case"NW":i=e.range.minX,a=e.range.minX+l,o=e.range.minY,s=e.range.minY+l;break;case"NE":i=e.range.minX+l,a=e.range.maxX,o=e.range.minY,s=e.range.minY+l;break;case"SW":i=e.range.minX,a=e.range.minX+l,o=e.range.minY+l,s=e.range.maxY;break;case"SE":i=e.range.minX+l,a=e.range.maxX,o=e.range.minY+l,s=e.range.maxY;break}e.children[t]={centerOfMass:{x:0,y:0},mass:0,range:{minX:i,maxX:a,minY:o,maxY:s},size:.5*e.size,calcSize:2*e.calcSize,children:{data:null},maxWidth:0,level:e.level+1,childrenCount:0}}},{key:"_debug",value:function(e,t){this.barnesHutTree!==void 0&&(e.lineWidth=1,this._drawBranch(this.barnesHutTree.root,e,t))}},{key:"_drawBranch",value:function(e,t,i){i===void 0&&(i="#FF0000"),e.childrenCount===4&&(this._drawBranch(e.children.NW,t),this._drawBranch(e.children.NE,t),this._drawBranch(e.children.SE,t),this._drawBranch(e.children.SW,t)),t.strokeStyle=i,t.beginPath(),t.moveTo(e.range.minX,e.range.minY),t.lineTo(e.range.maxX,e.range.minY),t.stroke(),t.beginPath(),t.moveTo(e.range.maxX,e.range.minY),t.lineTo(e.range.maxX,e.range.maxY),t.stroke(),t.beginPath(),t.moveTo(e.range.maxX,e.range.maxY),t.lineTo(e.range.minX,e.range.maxY),t.stroke(),t.beginPath(),t.moveTo(e.range.minX,e.range.maxY),t.lineTo(e.range.minX,e.range.minY),t.stroke()}}]),r}(),gce=function(){function r(n,e,t){x(this,r),this._rng=wu("REPULSION SOLVER"),this.body=n,this.physicsBody=e,this.setOptions(t)}return A(r,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,t,i,a,o,s,l,u,d=this.body.nodes,c=this.physicsBody.physicsNodeIndices,h=this.physicsBody.forces,f=this.options.nodeDistance,v=-2/3/f,p=4/3,y=0;y"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var wce=function(r){ne(e,r);var n=bce(e);function e(t,i,a){var o;return x(this,e),o=n.call(this,t,i,a),o._rng=wu("FORCE ATLAS 2 BASED REPULSION SOLVER"),o}return A(e,[{key:"_calculateForces",value:function(i,a,o,s,l){i===0&&(i=.1*this._rng(),a=i),this.overlapAvoidanceFactor<1&&s.shape.radius&&(i=Math.max(.1+this.overlapAvoidanceFactor*s.shape.radius,i-s.shape.radius));var u=s.edges.length+1,d=this.options.gravitationalConstant*l.mass*s.options.mass*u/Math.pow(i,2),c=a*d,h=o*d;this.physicsBody.forces[s.id].x+=c,this.physicsBody.forces[s.id].y+=h}}]),e}(BO);function _ce(r){var n=Ece();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function Ece(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var Sce=function(r){ne(e,r);var n=_ce(e);function e(t,i,a){return x(this,e),n.call(this,t,i,a)}return A(e,[{key:"_calculateForces",value:function(i,a,o,s,l){if(i>0){var u=l.edges.length+1,d=this.options.centralGravity*u*l.options.mass;s[l.id].x=a*d,s[l.id].y=o*d}}}]),e}(Ks),Oce=function(){function r(n){x(this,r),this.body=n,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},Re(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return A(r,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("initPhysics",function(){e.initPhysics()}),this.body.emitter.on("_layoutFailed",function(){e.layoutFailed=!0}),this.body.emitter.on("resetPhysics",function(){e.stopSimulation(),e.ready=!1}),this.body.emitter.on("disablePhysics",function(){e.physicsEnabled=!1,e.stopSimulation()}),this.body.emitter.on("restorePhysics",function(){e.setOptions(e.options),e.ready===!0&&e.startSimulation()}),this.body.emitter.on("startSimulation",function(){e.ready===!0&&e.startSimulation()}),this.body.emitter.on("stopSimulation",function(){e.stopSimulation()}),this.body.emitter.on("destroy",function(){e.stopSimulation(!1),e.body.emitter.off()}),this.body.emitter.on("_dataChanged",function(){e.updatePhysicsData()})}},{key:"setOptions",value:function(e){if(e!==void 0)if(e===!1)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(e===!0)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,ml(["stabilization"],this.options,e),jt(this.options,e,"stabilization"),e.enabled===void 0&&(this.options.enabled=!0),this.options.enabled===!1&&(this.physicsEnabled=!1,this.stopSimulation());var t=this.options.wind;t&&((typeof t.x!="number"||qh(t.x))&&(t.x=0),(typeof t.y!="number"||qh(t.y))&&(t.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var e;this.options.solver==="forceAtlas2Based"?(e=this.options.forceAtlas2Based,this.nodesSolver=new wce(this.body,this.physicsBody,e),this.edgesSolver=new Ac(this.body,this.physicsBody,e),this.gravitySolver=new Sce(this.body,this.physicsBody,e)):this.options.solver==="repulsion"?(e=this.options.repulsion,this.nodesSolver=new gce(this.body,this.physicsBody,e),this.edgesSolver=new Ac(this.body,this.physicsBody,e),this.gravitySolver=new Ks(this.body,this.physicsBody,e)):this.options.solver==="hierarchicalRepulsion"?(e=this.options.hierarchicalRepulsion,this.nodesSolver=new yce(this.body,this.physicsBody,e),this.edgesSolver=new mce(this.body,this.physicsBody,e),this.gravitySolver=new Ks(this.body,this.physicsBody,e)):(e=this.options.barnesHut,this.nodesSolver=new BO(this.body,this.physicsBody,e),this.edgesSolver=new Ac(this.body,this.physicsBody,e),this.gravitySolver=new Ks(this.body,this.physicsBody,e)),this.modelOptions=e}},{key:"initPhysics",value:function(){this.physicsEnabled===!0&&this.options.enabled===!0?this.options.stabilization.enabled===!0?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){if(this.physicsEnabled===!0&&this.options.enabled===!0){if(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),this.viewFunction===void 0){var e;this.viewFunction=k(e=this.simulationStep).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}else this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.stabilized=!0,e===!0&&this._emitStabilized(),this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,e===!0&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var e=vl();this.physicsTick();var t=vl()-e;(t<.4*this.simulationInterval||this.runDoubleSpeed===!0)&&this.stabilized===!1&&(this.physicsTick(),this.runDoubleSpeed=!0),this.stabilized===!0&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||this.startedStabilization===!0)&&ur(function(){e.body.emitter.emit("stabilized",{iterations:t}),e.startedStabilization=!1,e.stabilizationIterations=0},0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){var e=1.2;this._evaluateStepQuality()===!0?this.timestep=e*this.timestep:this.timestep/es))return!1;return!0}},{key:"moveNodes",value:function(){for(var e=this.physicsBody.physicsNodeIndices,t=0,i=0,a=5,o=0;os&&(e=e>0?s:-s),e}},{key:"_performStep",value:function(e){var t=this.body.nodes[e],i=this.physicsBody.forces[e];this.options.wind&&(i.x+=this.options.wind.x,i.y+=this.options.wind.y);var a=this.physicsBody.velocities[e];this.previousStates[e]={x:t.x,y:t.y,vx:a.x,vy:a.y},t.options.fixed.x===!1?(a.x=this.calculateComponentVelocity(a.x,i.x,t.options.mass),t.x+=a.x*this.timestep):(i.x=0,a.x=0),t.options.fixed.y===!1?(a.y=this.calculateComponentVelocity(a.y,i.y,t.options.mass),t.y+=a.y*this.timestep):(i.y=0,a.y=0);var o=Math.sqrt(Math.pow(a.x,2)+Math.pow(a.y,2));return o}},{key:"_freezeNodes",value:function(){var e=this.body.nodes;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].x&&e[t].y){var i=e[t].options.fixed;this.freezeCache[t]={x:i.x,y:i.y},i.x=!0,i.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var e=this.body.nodes;for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.freezeCache[t]!==void 0&&(e[t].options.fixed.x=this.freezeCache[t].x,e[t].options.fixed.y=this.freezeCache[t].y);this.freezeCache={}}},{key:"stabilize",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.stabilization.iterations;if(typeof t!="number"&&(t=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",t)),this.physicsBody.physicsNodeIndices.length===0){this.ready=!0;return}this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=t,this.options.stabilization.onlyDynamicEdges===!0&&this._freezeNodes(),this.stabilizationIterations=0,ur(function(){return e._stabilizationBatch()},0)}},{key:"_startStabilizing",value:function(){return this.startedStabilization===!0?!1:(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var e=this,t=function(){return e.stabilized===!1&&e.stabilizationIterations1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,a=-1e9,o=1e9,s=-1e9,l;if(t.length>0)for(var u=0;ul.shape.boundingBox.left&&(o=l.shape.boundingBox.left),sl.shape.boundingBox.top&&(i=l.shape.boundingBox.top),a1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,a=-1e9,o=1e9,s=-1e9,l;if(t.length>0)for(var u=0;ul.x&&(o=l.x),sl.y&&(i=l.y),a"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var Ace=function(r){ne(e,r);var n=Cce(e);function e(t,i,a,o,s,l){var u;return x(this,e),u=n.call(this,t,i,a,o,s,l),u.isCluster=!0,u.containedNodes={},u.containedEdges={},u}return A(e,[{key:"_openChildCluster",value:function(i){var a=this,o=this.body.nodes[i];if(this.containedNodes[i]===void 0)throw new Error("node with id: "+i+" not in current cluster");if(!o.isCluster)throw new Error("node with id: "+i+" is not a cluster");delete this.containedNodes[i],Z(o.edges,function(s){delete a.containedEdges[s.id]}),Z(o.containedNodes,function(s,l){a.containedNodes[l]=s}),o.containedNodes={},Z(o.containedEdges,function(s,l){a.containedEdges[l]=s}),o.containedEdges={},Z(o.edges,function(s){Z(a.edges,function(l){var u,d,c=ee(u=l.clusteringEdgeReplacingIds).call(u,s.id);c!==-1&&(Z(s.clusteringEdgeReplacingIds,function(h){l.clusteringEdgeReplacingIds.push(h),a.body.edges[h].edgeReplacedById=l.id}),_r(d=l.clusteringEdgeReplacingIds).call(d,c,1))})}),o.edges=[]}}]),e}(Pt),Rce=function(){function r(n){var e=this;x(this,r),this.body=n,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},Re(this.options,this.defaultOptions),this.body.emitter.on("_resetData",function(){e.clusteredNodes={},e.clusteredEdges={}})}return A(r,[{key:"clusterByHubsize",value:function(e,t){e===void 0?e=this._getHubSize():le(e)==="object"&&(t=this._checkOptions(e),e=this._getHubSize());for(var i=[],a=0;a=e&&i.push(o.id)}for(var s=0;s0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(t.joinCondition===void 0)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");t=this._checkOptions(t);var a={},o={};Z(this.body.nodes,function(s,l){s.options&&t.joinCondition(s.options)===!0&&(a[l]=s,Z(s.edges,function(u){e.clusteredEdges[u.id]===void 0&&(o[u.id]=u)}))}),this._cluster(a,o,t,i)}},{key:"clusterByEdgeCount",value:function(e,t){var i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;t=this._checkOptions(t);for(var o=[],s={},l,u,d,c=function(){var p={},y={},g=i.body.nodeIndices[h],m=i.body.nodes[g];if(s[g]===void 0){d=0,u=[];for(var $=0;$0&&be(y).length>0&&E===!0){var M=function(){for(var X=0;X1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(1,e,t)}},{key:"clusterBridges",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(2,e,t)}},{key:"clusterByConnection",value:function(e,t){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No nodeId supplied to clusterByConnection!");if(this.body.nodes[e]===void 0)throw new Error("The nodeId given to clusterByConnection does not exist!");var o=this.body.nodes[e];t=this._checkOptions(t,o),t.clusterNodeProperties.x===void 0&&(t.clusterNodeProperties.x=o.x),t.clusterNodeProperties.y===void 0&&(t.clusterNodeProperties.y=o.y),t.clusterNodeProperties.fixed===void 0&&(t.clusterNodeProperties.fixed={},t.clusterNodeProperties.fixed.x=o.options.fixed.x,t.clusterNodeProperties.fixed.y=o.options.fixed.y);var s={},l={},u=o.id,d=lt.cloneOptions(o);s[u]=o;for(var c=0;c-1&&(l[$.id]=$)}this._cluster(s,l,t,a)}},{key:"_createClusterEdges",value:function(e,t,i,a){for(var o,s,l,u,d,c,h=be(e),f=[],v=0;v0&&arguments[0]!==void 0?arguments[0]:{};return e.clusterEdgeProperties===void 0&&(e.clusterEdgeProperties={}),e.clusterNodeProperties===void 0&&(e.clusterNodeProperties={}),e}},{key:"_cluster",value:function(e,t,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o=[];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&this.clusteredNodes[s]!==void 0&&o.push(s);for(var l=0;la?l.x:a,o=l.ys?l.y:s;return{x:.5*(i+a),y:.5*(o+s)}}},{key:"openCluster",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No clusterNodeId supplied to openCluster.");var a=this.body.nodes[e];if(a===void 0)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(a.isCluster!==!0||a.containedNodes===void 0||a.containedEdges===void 0)throw new Error("The node:"+e+" is not a valid cluster.");var o=this.findNode(e),s=ee(o).call(o,e)-1;if(s>=0){var l=o[s],u=this.body.nodes[l];u._openChildCluster(e),delete this.body.nodes[e],i===!0&&this.body.emitter.emit("_dataChanged");return}var d=a.containedNodes,c=a.containedEdges;if(t!==void 0&&t.releaseFunction!==void 0&&typeof t.releaseFunction=="function"){var h={},f={x:a.x,y:a.y};for(var v in d)if(Object.prototype.hasOwnProperty.call(d,v)){var p=this.body.nodes[v];h[v]={x:p.x,y:p.y}}var y=t.releaseFunction(f,h);for(var g in d)if(Object.prototype.hasOwnProperty.call(d,g)){var m=this.body.nodes[g];y[g]!==void 0&&(m.x=y[g].x===void 0?a.x:y[g].x,m.y=y[g].y===void 0?a.y:y[g].y)}}else Z(d,function(nt){nt.options.fixed.x===!1&&(nt.x=a.x),nt.options.fixed.y===!1&&(nt.y=a.y)});for(var $ in d)if(Object.prototype.hasOwnProperty.call(d,$)){var b=this.body.nodes[$];b.vx=a.vx,b.vy=a.vy,b.setOptions({physics:!0}),delete this.clusteredNodes[$]}for(var E=[],S=0;S0&&sa&&(a=s.edges.length),e+=s.edges.length,t+=Math.pow(s.edges.length,2),i+=1}e=e/i,t=t/i;var l=t-Math.pow(e,2),u=Math.sqrt(l),d=Math.floor(e+2*u);return d>a&&(d=a),d}},{key:"_createClusteredEdge",value:function(e,t,i,a,o){var s=lt.cloneOptions(i,"edge");ce(s,a),s.from=e,s.to=t,s.id="clusterEdge:"+Aa(),o!==void 0&&ce(s,o);var l=this.body.functions.createEdge(s);return l.clusteringEdgeReplacingIds=[i.id],l.connect(),this.body.edges[l.id]=l,l}},{key:"_clusterEdges",value:function(e,t,i,a){if(t instanceof Sn){var o=t,s={};s[o.id]=o,t=s}if(e instanceof Pt){var l=e,u={};u[l.id]=l,e=u}if(i==null)throw new Error("_clusterEdges: parameter clusterNode required");a===void 0&&(a=i.clusterEdgeProperties),this._createClusterEdges(e,t,i,a);for(var d in t)if(Object.prototype.hasOwnProperty.call(t,d)&&this.body.edges[d]!==void 0){var c=this.body.edges[d];this._backupEdgeOptions(c),c.setOptions({physics:!1})}for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&(this.clusteredNodes[h]={clusterId:i.id,node:this.body.nodes[h]},this.body.nodes[h].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(e){if(e!==void 0){var t=this.clusteredNodes[e];if(t!==void 0){var i=t.clusterId;if(i!==void 0)return this.body.nodes[i]}}}},{key:"_filter",value:function(e,t){var i=[];return Z(e,function(a){t(a)&&i.push(a)}),i}},{key:"_updateState",value:function(){var e=this,t,i=[],a={},o=function(v){Z(e.body.nodes,function(p){p.isCluster===!0&&v(p)})};for(t in this.clusteredNodes)if(Object.prototype.hasOwnProperty.call(this.clusteredNodes,t)){var s=this.body.nodes[t];s===void 0&&i.push(t)}o(function(f){for(var v=0;v0}(!f.endPointsValid()||!p)&&(a[v]=v)}),o(function(f){Z(a,function(v){delete f.containedEdges[v],Z(f.edges,function(p,y){if(p.id===v){f.edges[y]=null;return}p.clusteringEdgeReplacingIds=e._filter(p.clusteringEdgeReplacingIds,function(g){return!a[g]})}),f.edges=e._filter(f.edges,function(p){return p!==null})})}),Z(a,function(f){delete e.clusteredEdges[f]}),Z(a,function(f){delete e.body.edges[f]});var u=be(this.body.edges);Z(u,function(f){var v=e.body.edges[f],p=e._isClusteredNode(v.fromId)||e._isClusteredNode(v.toId);if(p!==e._isClusteredEdge(v.id))if(p){var y=e._getClusterNodeForNode(v.fromId);y!==void 0&&e._clusterEdges(e.body.nodes[v.fromId],v,y);var g=e._getClusterNodeForNode(v.toId);g!==void 0&&e._clusterEdges(e.body.nodes[v.toId],v,g)}else delete e._clusterEdges[f],e._restoreEdge(v)});for(var d=!1,c=!0,h=function(){var v=[];o(function(y){var g=be(y.containedNodes).length,m=y.options.allowSingleNodeCluster===!0;(m&&g<1||!m&&g<2)&&v.push(y.id)});for(var p=0;p0,d=d||c};c;)h();d&&this._updateState()}},{key:"_isClusteredNode",value:function(e){return this.clusteredNodes[e]!==void 0}},{key:"_isClusteredEdge",value:function(e){return this.clusteredEdges[e]!==void 0}}]),r}();function Dce(){var r;window!==void 0&&(r=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),r===void 0?window.requestAnimationFrame=function(n){n()}:window.requestAnimationFrame=r}var Mce=function(){function r(n,e){x(this,r),Dce(),this.body=n,this.canvas=e,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},Re(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return A(r,[{key:"bindEventListeners",value:function(){var e=this,t;this.body.emitter.on("dragStart",function(){e.dragging=!0}),this.body.emitter.on("dragEnd",function(){e.dragging=!1}),this.body.emitter.on("zoom",function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=ur(function(){var i;e.zooming=!1,k(i=e._requestRedraw).call(i,e)()},250)}),this.body.emitter.on("_resizeNodes",function(){e._resizeNodes()}),this.body.emitter.on("_redraw",function(){e.renderingActive===!1&&e._redraw()}),this.body.emitter.on("_blockRedraw",function(){e.allowRedraw=!1}),this.body.emitter.on("_allowRedraw",function(){e.allowRedraw=!0,e.redrawRequested=!1}),this.body.emitter.on("_requestRedraw",k(t=this._requestRedraw).call(t,this)),this.body.emitter.on("_startRendering",function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()}),this.body.emitter.on("_stopRendering",function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0}),this.body.emitter.on("destroy",function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,e.requiresTimeout===!0?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()})}},{key:"setOptions",value:function(e){if(e!==void 0){var t=["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"];ca(t,this.options,e)}}},{key:"_requestNextFrame",value:function(e,t){if(!(typeof window>"u")){var i,a=window;return this.requiresTimeout===!0?i=ur(e,t):a.requestAnimationFrame&&(i=a.requestAnimationFrame(e)),i}}},{key:"_startRendering",value:function(){if(this.renderingActive===!0&&this.renderTimer===void 0){var e;this.renderTimer=this._requestNextFrame(k(e=this._renderStep).call(e,this),this.simulationInterval)}}},{key:"_renderStep",value:function(){this.renderingActive===!0&&(this.renderTimer=void 0,this.requiresTimeout===!0&&this._startRendering(),this._redraw(),this.requiresTimeout===!1&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var e=this;this.redrawRequested!==!0&&this.renderingActive===!1&&this.allowRedraw===!0&&(this.redrawRequested=!0,this._requestNextFrame(function(){e._redraw(!1)},0))}},{key:"_redraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.allowRedraw===!0){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;var t={drawExternalLabels:null};(this.canvas.frame.canvas.width===0||this.canvas.frame.canvas.height===0)&&this.canvas.setSize(),this.canvas.setTransform();var i=this.canvas.getContext(),a=this.canvas.frame.canvas.clientWidth,o=this.canvas.frame.canvas.clientHeight;if(i.clearRect(0,0,a,o),this.canvas.frame.clientWidth===0)return;if(i.save(),i.translate(this.body.view.translation.x,this.body.view.translation.y),i.scale(this.body.view.scale,this.body.view.scale),i.beginPath(),this.body.emitter.emit("beforeDrawing",i),i.closePath(),e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawEdges(i),this.dragging===!1||this.dragging===!0&&this.options.hideNodesOnDrag===!1){var s=this._drawNodes(i,e),l=s.drawExternalLabels;t.drawExternalLabels=l}e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawArrows(i),t.drawExternalLabels!=null&&t.drawExternalLabels(),e===!1&&this._drawSelectionBox(i),i.beginPath(),this.body.emitter.emit("afterDrawing",i),i.closePath(),i.restore(),e===!0&&i.clearRect(0,0,a,o)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var e=this.canvas.getContext();e.save(),e.translate(this.body.view.translation.x,this.body.view.translation.y),e.scale(this.body.view.scale,this.body.view.scale);var t=this.body.nodes,i;for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(i=t[a],i.resize(e),i.updateBoundingBox(e,i.selected));e.restore()}},{key:"_drawNodes",value:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.nodes,a=this.body.nodeIndices,o,s=[],l=[],u=20,d=this.canvas.DOMtoCanvas({x:-20,y:-20}),c=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+u,y:this.canvas.frame.canvas.clientHeight+u}),h={top:d.y,left:d.x,bottom:c.y,right:c.x},f=[],v=0;v0&&arguments[0]!==void 0?arguments[0]:this.pixelRatio;this.initialized===!0&&(this.cameraState.previousWidth=this.frame.canvas.width/e,this.cameraState.previousHeight=this.frame.canvas.height/e,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/e,y:.5*this.frame.canvas.height/e}))}},{key:"_setCameraState",value:function(){if(this.cameraState.scale!==void 0&&this.frame.canvas.clientWidth!==0&&this.frame.canvas.clientHeight!==0&&this.pixelRatio!==0&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){var e=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,t=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,i=this.cameraState.scale;e!=1&&t!=1?i=this.cameraState.scale*.5*(e+t):e!=1?i=this.cameraState.scale*e:t!=1&&(i=this.cameraState.scale*t),this.body.view.scale=i;var a=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),o={x:a.x-this.cameraState.position.x,y:a.y-this.cameraState.position.y};this.body.view.translation.x+=o.x*this.body.view.scale,this.body.view.translation.y+=o.y*this.body.view.scale}}},{key:"_prepareValue",value:function(e){if(typeof e=="number")return e+"px";if(typeof e=="string"){if(ee(e).call(e,"%")!==-1||ee(e).call(e,"px")!==-1)return e;if(ee(e).call(e,"%")===-1)return e+"px"}throw new Error("Could not use the value supplied for width or height:"+e)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=0,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(e)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var e=this;this.hammer!==void 0&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new En(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:En.DIRECTION_ALL}),_l(this.hammer,function(t){e.body.eventListeners.onTouch(t)}),this.hammer.on("tap",function(t){e.body.eventListeners.onTap(t)}),this.hammer.on("doubletap",function(t){e.body.eventListeners.onDoubleTap(t)}),this.hammer.on("press",function(t){e.body.eventListeners.onHold(t)}),this.hammer.on("panstart",function(t){e.body.eventListeners.onDragStart(t)}),this.hammer.on("panmove",function(t){e.body.eventListeners.onDrag(t)}),this.hammer.on("panend",function(t){e.body.eventListeners.onDragEnd(t)}),this.hammer.on("pinch",function(t){e.body.eventListeners.onPinch(t)}),this.frame.canvas.addEventListener("wheel",function(t){e.body.eventListeners.onMouseWheel(t)}),this.frame.canvas.addEventListener("mousemove",function(t){e.body.eventListeners.onMouseMove(t)}),this.frame.canvas.addEventListener("contextmenu",function(t){e.body.eventListeners.onContext(t)}),this.hammerFrame=new En(this.frame),jO(this.hammerFrame,function(t){e.body.eventListeners.onRelease(t)})}},{key:"setSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.width,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.height;e=this._prepareValue(e),t=this._prepareValue(t);var i=!1,a=this.frame.canvas.width,o=this.frame.canvas.height,s=this.pixelRatio;if(this._setPixelRatio(),e!=this.options.width||t!=this.options.height||this.frame.style.width!=e||this.frame.style.height!=t)this._getCameraState(s),this.frame.style.width=e,this.frame.style.height=t,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=e,this.options.height=t,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},i=!0;else{var l=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),u=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);(this.frame.canvas.width!==l||this.frame.canvas.height!==u)&&this._getCameraState(s),this.frame.canvas.width!==l&&(this.frame.canvas.width=l,i=!0),this.frame.canvas.height!==u&&(this.frame.canvas.height=u,i=!0)}return i===!0&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(a/this.pixelRatio),oldHeight:Math.round(o/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,i}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");var t=1;typeof window<"u"&&(t=window.devicePixelRatio||1);var i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/i}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(e){return{x:this._XconvertCanvasToDOM(e.x),y:this._YconvertCanvasToDOM(e.y)}}},{key:"DOMtoCanvas",value:function(e){return{x:this._XconvertDOMtoCanvas(e.x),y:this._YconvertDOMtoCanvas(e.y)}}}]),r}();function zce(r,n){var e=Re({nodes:n,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},r??{});if(!oe(e.nodes))throw new TypeError("Nodes has to be an array of ids.");if(e.nodes.length===0&&(e.nodes=n),!(typeof e.minZoomLevel=="number"&&e.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!(typeof e.maxZoomLevel=="number"&&e.minZoomLevel<=e.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return e}var Hce=function(){function r(n,e){var t,i=this,a;x(this,r),this.body=n,this.canvas=e,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",k(t=this.fit).call(t,this)),this.body.emitter.on("animationFinished",function(){i.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",k(a=this.releaseNode).call(a,this))}return A(r,[{key:"setOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=e}},{key:"fit",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;e=zce(e,this.body.nodeIndices);var i=this.canvas.frame.canvas.clientWidth,a=this.canvas.frame.canvas.clientHeight,o,s;if(i===0||a===0)s=1,o=lt.getRange(this.body.nodes,e.nodes);else if(t===!0){var l=0;for(var u in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,u)){var d=this.body.nodes[u];d.predefinedPosition===!0&&(l+=1)}if(l>.5*this.body.nodeIndices.length){this.fit(e,!1);return}o=lt.getRange(this.body.nodes,e.nodes);var c=this.body.nodeIndices.length;s=12.662/(c+7.4147)+.0964822;var h=Math.min(i/600,a/600);s*=h}else{this.body.emitter.emit("_resizeNodes"),o=lt.getRange(this.body.nodes,e.nodes);var f=Math.abs(o.maxX-o.minX)*1.1,v=Math.abs(o.maxY-o.minY)*1.1,p=i/f,y=a/v;s=p<=y?p:y}s>e.maxZoomLevel?s=e.maxZoomLevel:s1&&arguments[1]!==void 0?arguments[1]:{};if(this.body.nodes[e]!==void 0){var i={x:this.body.nodes[e].x,y:this.body.nodes[e].y};t.position=i,t.lockedOnNode=e,this.moveTo(t)}else console.error("Node: "+e+" cannot be found.")}},{key:"moveTo",value:function(e){if(e===void 0){e={};return}if(e.offset!=null){if(e.offset.x!=null){if(e.offset.x=+e.offset.x,!pi(e.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else e.offset.x=0;if(e.offset.y!=null){if(e.offset.y=+e.offset.y,!pi(e.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else e.offset.x=0}else e.offset={x:0,y:0};if(e.position!=null){if(e.position.x!=null){if(e.position.x=+e.position.x,!pi(e.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else e.position.x=0;if(e.position.y!=null){if(e.position.y=+e.position.y,!pi(e.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else e.position.x=0}else e.position=this.getViewPosition();if(e.scale!=null){if(e.scale=+e.scale,!(e.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else e.scale=this.body.view.scale;e.animation===void 0&&(e.animation={duration:0}),e.animation===!1&&(e.animation={duration:0}),e.animation===!0&&(e.animation={}),e.animation.duration===void 0&&(e.animation.duration=1e3),e.animation.easingFunction===void 0&&(e.animation.easingFunction="easeInOutQuad"),this.animateView(e)}},{key:"animateView",value:function(e){if(e!==void 0){this.animationEasingFunction=e.animation.easingFunction,this.releaseNode(),e.locked===!0&&(this.lockedOnNodeId=e.lockedOnNode,this.lockedOnNodeOffset=e.offset),this.easingTime!=0&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=e.scale,this.body.view.scale=this.targetScale;var t=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:t.x-e.position.x,y:t.y-e.position.y};if(this.targetTranslation={x:this.sourceTranslation.x+i.x*this.targetScale+e.offset.x,y:this.sourceTranslation.y+i.y*this.targetScale+e.offset.y},e.animation.duration===0)if(this.lockedOnNodeId!=null){var a;this.viewFunction=k(a=this._lockedRedraw).call(a,this),this.body.emitter.on("initRedraw",this.viewFunction)}else this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw");else{var o;this.animationSpeed=1/(60*e.animation.duration*.001)||1/60,this.animationEasingFunction=e.animation.easingFunction,this.viewFunction=k(o=this._transitionRedraw).call(o,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}}},{key:"_lockedRedraw",value:function(){var e={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y},t=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:t.x-e.x,y:t.y-e.y},a=this.body.view.translation,o={x:a.x+i.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:a.y+i.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=o}},{key:"releaseNode",value:function(){this.lockedOnNodeId!==void 0&&this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.easingTime+=this.animationSpeed,this.easingTime=e===!0?1:this.easingTime;var t=One[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*t,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*t,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*t},this.easingTime>=1){if(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,this.lockedOnNodeId!=null){var i;this.viewFunction=k(i=this._lockedRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction)}this.body.emitter.emit("animationFinished")}}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),r}();function _$(r){var n=r&&r.preventDefault||!1,e=r&&r.container||window,t={},i={keydown:{},keyup:{}},a={},o;for(o=97;o<=122;o++)a[String.fromCharCode(o)]={code:65+(o-97),shift:!1};for(o=65;o<=90;o++)a[String.fromCharCode(o)]={code:o,shift:!0};for(o=0;o<=9;o++)a[""+o]={code:48+o,shift:!1};for(o=1;o<=12;o++)a["F"+o]={code:111+o,shift:!1};for(o=0;o<=9;o++)a["num"+o]={code:96+o,shift:!1};a["num*"]={code:106,shift:!1},a["num+"]={code:107,shift:!1},a["num-"]={code:109,shift:!1},a["num/"]={code:111,shift:!1},a["num."]={code:110,shift:!1},a.left={code:37,shift:!1},a.up={code:38,shift:!1},a.right={code:39,shift:!1},a.down={code:40,shift:!1},a.space={code:32,shift:!1},a.enter={code:13,shift:!1},a.shift={code:16,shift:void 0},a.esc={code:27,shift:!1},a.backspace={code:8,shift:!1},a.tab={code:9,shift:!1},a.ctrl={code:17,shift:!1},a.alt={code:18,shift:!1},a.delete={code:46,shift:!1},a.pageup={code:33,shift:!1},a.pagedown={code:34,shift:!1},a["="]={code:187,shift:!1},a["-"]={code:189,shift:!1},a["]"]={code:221,shift:!1},a["["]={code:219,shift:!1};var s=function(d){u(d,"keydown")},l=function(d){u(d,"keyup")},u=function(d,c){if(i[c][d.keyCode]!==void 0){for(var h=i[c][d.keyCode],f=0;f700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=new Date().valueOf())}},{key:"_stopMovement",value:function(){for(var e in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,e)&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var e=this.body.view.scale,t=this.body.view.scale*(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,a=t/e,o=(1-a)*this.canvas.canvasViewCenter.x+i.x*a,s=(1-a)*this.canvas.canvasViewCenter.y+i.y*a;this.body.view.scale=t,this.body.view.translation={x:o,y:s},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var e=this.body.view.scale,t=this.body.view.scale/(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,a=t/e,o=(1-a)*this.canvas.canvasViewCenter.x+i.x*a,s=(1-a)*this.canvas.canvasViewCenter.y+i.y*a;this.body.view.scale=t,this.body.view.translation={x:o,y:s},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var e=this;if(this.keycharm!==void 0&&this.keycharm.destroy(),this.options.keyboard.enabled===!0&&(this.options.keyboard.bindToWindow===!0?this.keycharm=_$({container:window,preventDefault:!0}):this.keycharm=_$({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),this.activated===!0)){var t,i,a,o,s,l,u,d,c,h,f,v,p,y,g,m,$,b,E,S,D,M,R,F;k(t=this.keycharm).call(t,"up",function(){e.bindToRedraw("_moveUp")},"keydown"),k(i=this.keycharm).call(i,"down",function(){e.bindToRedraw("_moveDown")},"keydown"),k(a=this.keycharm).call(a,"left",function(){e.bindToRedraw("_moveLeft")},"keydown"),k(o=this.keycharm).call(o,"right",function(){e.bindToRedraw("_moveRight")},"keydown"),k(s=this.keycharm).call(s,"=",function(){e.bindToRedraw("_zoomIn")},"keydown"),k(l=this.keycharm).call(l,"num+",function(){e.bindToRedraw("_zoomIn")},"keydown"),k(u=this.keycharm).call(u,"num-",function(){e.bindToRedraw("_zoomOut")},"keydown"),k(d=this.keycharm).call(d,"-",function(){e.bindToRedraw("_zoomOut")},"keydown"),k(c=this.keycharm).call(c,"[",function(){e.bindToRedraw("_zoomOut")},"keydown"),k(h=this.keycharm).call(h,"]",function(){e.bindToRedraw("_zoomIn")},"keydown"),k(f=this.keycharm).call(f,"pageup",function(){e.bindToRedraw("_zoomIn")},"keydown"),k(v=this.keycharm).call(v,"pagedown",function(){e.bindToRedraw("_zoomOut")},"keydown"),k(p=this.keycharm).call(p,"up",function(){e.unbindFromRedraw("_moveUp")},"keyup"),k(y=this.keycharm).call(y,"down",function(){e.unbindFromRedraw("_moveDown")},"keyup"),k(g=this.keycharm).call(g,"left",function(){e.unbindFromRedraw("_moveLeft")},"keyup"),k(m=this.keycharm).call(m,"right",function(){e.unbindFromRedraw("_moveRight")},"keyup"),k($=this.keycharm).call($,"=",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),k(b=this.keycharm).call(b,"num+",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),k(E=this.keycharm).call(E,"num-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),k(S=this.keycharm).call(S,"-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),k(D=this.keycharm).call(D,"[",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),k(M=this.keycharm).call(M,"]",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),k(R=this.keycharm).call(R,"pageup",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),k(F=this.keycharm).call(F,"pagedown",function(){e.unbindFromRedraw("_zoomOut")},"keyup")}}}]),r}();function Uce(r,n){var e=typeof ai<"u"&&Gi(r)||r["@@iterator"];if(!e){if(oe(r)||(e=Vce(r))||n){e&&(r=e);var t=0,i=function(){};return{s:i,n:function(){return t>=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(u){throw u},f:i}}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 a=!0,o=!1,s;return{s:function(){e=e.call(r)},n:function(){var u=e.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function Vce(r,n){var e;if(r){if(typeof r=="string")return E$(r,n);var t=Je(e=Object.prototype.toString.call(r)).call(e,8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Vi(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return E$(r,n)}}function E$(r,n){(n==null||n>r.length)&&(n=r.length);for(var e=0,t=new Array(n);e50&&(this.drag.pointer=this.getPointer(e.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=new Date().valueOf())}},{key:"onTap",value:function(e){var t=this.getPointer(e.center),i=this.selectionHandler.options.multiselect&&(e.changedPointers[0].ctrlKey||e.changedPointers[0].metaKey);this.checkSelectionChanges(t,i),this.selectionHandler.commitAndEmit(t,e),this.selectionHandler.generateClickEvent("click",e,t)}},{key:"onDoubleTap",value:function(e){var t=this.getPointer(e.center);this.selectionHandler.generateClickEvent("doubleClick",e,t)}},{key:"onHold",value:function(e){var t=this.getPointer(e.center),i=this.selectionHandler.options.multiselect;this.checkSelectionChanges(t,i),this.selectionHandler.commitAndEmit(t,e),this.selectionHandler.generateClickEvent("click",e,t),this.selectionHandler.generateClickEvent("hold",e,t)}},{key:"onRelease",value:function(e){if(new Date().valueOf()-this.touchTime>10){var t=this.getPointer(e.center);this.selectionHandler.generateClickEvent("release",e,t),this.touchTime=new Date().valueOf()}}},{key:"onContext",value:function(e){var t=this.getPointer({x:e.clientX,y:e.clientY});this.selectionHandler.generateClickEvent("oncontext",e,t)}},{key:"checkSelectionChanges",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;t===!0?this.selectionHandler.selectAdditionalOnPoint(e):this.selectionHandler.selectOnPoint(e)}},{key:"_determineDifference",value:function(e,t){var i=function(o,s){for(var l=[],u=0;u=o.minX&&c.x<=o.maxX&&c.y>=o.minY&&c.y<=o.maxY});ue(s).call(s,function(d){return t.selectionHandler.selectObject(t.body.nodes[d])});var l=this.getPointer(e.center);this.selectionHandler.commitAndEmit(l,e),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{var u=this.drag.selection;u&&u.length?(ue(u).call(u,function(d){d.node.options.fixed.x=d.xFixed,d.node.options.fixed.y=d.yFixed}),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}},{key:"onPinch",value:function(e){var t=this.getPointer(e.center);this.drag.pinched=!0,this.pinch.scale===void 0&&(this.pinch.scale=1);var i=this.pinch.scale*e.scale;this.zoom(i,t)}},{key:"zoom",value:function(e,t){if(this.options.zoomView===!0){var i=this.body.view.scale;e<1e-5&&(e=1e-5),e>10&&(e=10);var a=void 0;this.drag!==void 0&&this.drag.dragging===!0&&(a=this.canvas.DOMtoCanvas(this.drag.pointer));var o=this.body.view.translation,s=e/i,l=(1-s)*t.x+o.x*s,u=(1-s)*t.y+o.y*s;if(this.body.view.scale=e,this.body.view.translation={x:l,y:u},a!=null){var d=this.canvas.canvasToDOM(a);this.drag.pointer.x=d.x,this.drag.pointer.y=d.y}this.body.emitter.emit("_requestRedraw"),i0&&(this.popupObj=d[h[h.length-1]],s=!0)}if(this.popupObj===void 0&&s===!1){for(var v=this.body.edgeIndices,p=this.body.edges,y,g=[],m=0;m0&&(this.popupObj=p[g[g.length-1]],l="edge")}this.popupObj!==void 0?this.popupObj.id!==o&&(this.popup===void 0&&(this.popup=new Rne(this.canvas.frame)),this.popup.popupTargetType=l,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(e.x+3,e.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):this.popup!==void 0&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(e){var t=this.selectionHandler._pointerToPositionObject(e),i=!1;if(this.popup.popupTargetType==="node"){if(this.body.nodes[this.popup.popupTargetId]!==void 0&&(i=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(t),i===!0)){var a=this.selectionHandler.getNodeAt(e);i=a===void 0?!1:a.id===this.popup.popupTargetId}}else this.selectionHandler.getNodeAt(e)===void 0&&this.body.edges[this.popup.popupTargetId]!==void 0&&(i=this.body.edges[this.popup.popupTargetId].isOverlappingWith(t));i===!1&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),r}(),Kce=Tv,qce=yO;Kce("Set",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},qce);var Yce=re,Xce=Yce.Set,Jce=Xce,Qce=Jce,Zce=Qce,hi=z(Zce),ehe=ie,S$=kv,ks=_u.getWeakData,the=Ov,rhe=Ft,ihe=ea,Rc=Ue,nhe=Sv,LO=ni,O$=Ve,zO=Ui,ahe=zO.set,ohe=zO.getterFor,she=LO.find,lhe=LO.findIndex,uhe=ehe([].splice),dhe=0,Is=function(r){return r.frozen||(r.frozen=new HO)},HO=function(){this.entries=[]},Dc=function(r,n){return she(r.entries,function(e){return e[0]===n})};HO.prototype={get:function(r){var n=Dc(this,r);if(n)return n[1]},has:function(r){return!!Dc(this,r)},set:function(r,n){var e=Dc(this,r);e?e[1]=n:this.entries.push([r,n])},delete:function(r){var n=lhe(this.entries,function(e){return e[0]===r});return~n&&uhe(this.entries,n,1),!!~n}};var che={getConstructor:function(r,n,e,t){var i=r(function(l,u){the(l,a),ahe(l,{type:n,id:dhe++,frozen:void 0}),ihe(u)||nhe(u,l[t],{that:l,AS_ENTRIES:e})}),a=i.prototype,o=ohe(n),s=function(l,u,d){var c=o(l),h=ks(rhe(u),!0);return h===!0?Is(c).set(u,d):h[c.id]=d,l};return S$(a,{delete:function(l){var u=o(this);if(!Rc(l))return!1;var d=ks(l);return d===!0?Is(u).delete(l):d&&O$(d,u.id)&&delete d[u.id]},has:function(u){var d=o(this);if(!Rc(u))return!1;var c=ks(u);return c===!0?Is(d).has(u):c&&O$(c,d.id)}}),S$(a,e?{get:function(u){var d=o(this);if(Rc(u)){var c=ks(u);return c===!0?Is(d).get(u):c?c[d.id]:void 0}},set:function(u,d){return s(this,u,d)}}:{add:function(u){return s(this,u,!0)}}),i}},hhe=fO,T$=Ee,qs=ie,k$=kv,fhe=_u,vhe=Tv,WO=che,Ps=Ue,Cs=Ui.enforce,phe=te,ghe=iE,Uo=Object,yhe=Array.isArray,xs=Uo.isExtensible,UO=Uo.isFrozen,mhe=Uo.isSealed,VO=Uo.freeze,bhe=Uo.seal,I$={},P$={},$he=!T$.ActiveXObject&&"ActiveXObject"in T$,ma,GO=function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},KO=vhe("WeakMap",GO,WO),ln=KO.prototype,Ys=qs(ln.set),whe=function(){return hhe&&phe(function(){var r=VO([]);return Ys(new KO,r,1),!UO(r)})};if(ghe)if($he){ma=WO.getConstructor(GO,"WeakMap",!0),fhe.enable();var C$=qs(ln.delete),As=qs(ln.has),x$=qs(ln.get);k$(ln,{delete:function(r){if(Ps(r)&&!xs(r)){var n=Cs(this);return n.frozen||(n.frozen=new ma),C$(this,r)||n.frozen.delete(r)}return C$(this,r)},has:function(n){if(Ps(n)&&!xs(n)){var e=Cs(this);return e.frozen||(e.frozen=new ma),As(this,n)||e.frozen.has(n)}return As(this,n)},get:function(n){if(Ps(n)&&!xs(n)){var e=Cs(this);return e.frozen||(e.frozen=new ma),As(this,n)?x$(this,n):e.frozen.get(n)}return x$(this,n)},set:function(n,e){if(Ps(n)&&!xs(n)){var t=Cs(this);t.frozen||(t.frozen=new ma),As(this,n)?Ys(this,n,e):t.frozen.set(n,e)}else Ys(this,n,e);return this}})}else whe()&&k$(ln,{set:function(n,e){var t;return yhe(n)&&(UO(n)?t=I$:mhe(n)&&(t=P$)),Ys(this,n,e),t===I$&&VO(n),t===P$&&bhe(n),this}});var _he=re,Ehe=_he.WeakMap,She=Ehe,Ohe=She,The=Ohe,Ra=z(The);function de(r,n,e,t){if(e==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?r!==n||!t:!n.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?t:e==="a"?t.call(r):t?t.value:n.get(r)}function Qh(r,n,e,t,i){if(typeof n=="function"?r!==n||!0:!n.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n.set(r,e),e}function Zh(r,n){var e=typeof ai<"u"&&Gi(r)||r["@@iterator"];if(!e){if(oe(r)||(e=khe(r))||n){e&&(r=e);var t=0,i=function(){};return{s:i,n:function(){return t>=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(u){throw u},f:i}}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 a=!0,o=!1,s;return{s:function(){e=e.call(r)},n:function(){var u=e.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function khe(r,n){var e;if(r){if(typeof r=="string")return A$(r,n);var t=Je(e=Object.prototype.toString.call(r)).call(e,8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Vi(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return A$(r,n)}}function A$(r,n){(n==null||n>r.length)&&(n=r.length);for(var e=0,t=new Array(n);e0&&arguments[0]!==void 0?arguments[0]:function(){};x(this,r),Nr.set(this,new D$),Fr.set(this,new D$),Xs.set(this,void 0),Qh(this,Xs,n)}return A(r,[{key:"sizeNodes",get:function(){return de(this,Nr,"f").size}},{key:"sizeEdges",get:function(){return de(this,Fr,"f").size}},{key:"getNodes",value:function(){return de(this,Nr,"f").getSelection()}},{key:"getEdges",value:function(){return de(this,Fr,"f").getSelection()}},{key:"addNodes",value:function(){var e;(e=de(this,Nr,"f")).add.apply(e,arguments)}},{key:"addEdges",value:function(){var e;(e=de(this,Fr,"f")).add.apply(e,arguments)}},{key:"deleteNodes",value:function(e){de(this,Nr,"f").delete(e)}},{key:"deleteEdges",value:function(e){de(this,Fr,"f").delete(e)}},{key:"clear",value:function(){de(this,Nr,"f").clear(),de(this,Fr,"f").clear()}},{key:"commit",value:function(){for(var e,t,i={nodes:de(this,Nr,"f").commit(),edges:de(this,Fr,"f").commit()},a=arguments.length,o=new Array(a),s=0;s=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(u){throw u},f:i}}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 a=!0,o=!1,s;return{s:function(){e=e.call(r)},n:function(){var u=e.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function Phe(r,n){var e;if(r){if(typeof r=="string")return N$(r,n);var t=Je(e=Object.prototype.toString.call(r)).call(e,8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Vi(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return N$(r,n)}}function N$(r,n){(n==null||n>r.length)&&(n=r.length);for(var e=0,t=new Array(n);e4&&arguments[4]!==void 0?arguments[4]:!1,s=this._initBaseEvent(t,i);if(o===!0)s.nodes=[],s.edges=[];else{var l=this.getSelection();s.nodes=l.nodes,s.edges=l.edges}a!==void 0&&(s.previousSelection=a),e=="click"&&(s.items=this.getClickedItems(i)),t.controlEdge!==void 0&&(s.controlEdge=t.controlEdge),this.body.emitter.emit(e,s)}},{key:"selectObject",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.selectConnectedEdges;if(e!==void 0){if(e instanceof Pt){if(t===!0){var i;(i=this._selectionAccumulator).addEdges.apply(i,nr(e.edges))}this._selectionAccumulator.addNodes(e)}else this._selectionAccumulator.addEdges(e);return!0}return!1}},{key:"deselectObject",value:function(e){e.isSelected()===!0&&(e.selected=!1,this._removeFromSelection(e))}},{key:"_getAllNodesOverlappingWith",value:function(e){for(var t=[],i=this.body.nodes,a=0;a1&&arguments[1]!==void 0?arguments[1]:!0,i=this._pointerToPositionObject(e),a=this._getAllNodesOverlappingWith(i);if(a.length>0)return t===!0?this.body.nodes[a[a.length-1]]:a[a.length-1]}},{key:"_getEdgesOverlappingWith",value:function(e,t){for(var i=this.body.edges,a=0;a1&&arguments[1]!==void 0?arguments[1]:!0,i=this.canvas.DOMtoCanvas(e),a=10,o=null,s=this.body.edges,l=0;l0&&(this.generateClickEvent("deselectEdge",t,e,o),i=!0),a.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",t,e,o),i=!0),a.nodes.added.length>0&&(this.generateClickEvent("selectNode",t,e),i=!0),a.edges.added.length>0&&(this.generateClickEvent("selectEdge",t,e),i=!0),i===!0&&this.generateClickEvent("select",t,e)}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}},{key:"getSelectedNodes",value:function(){return this._selectionAccumulator.getNodes()}},{key:"getSelectedEdges",value:function(){return this._selectionAccumulator.getEdges()}},{key:"getSelectedNodeIds",value:function(){var e;return Dn(e=this._selectionAccumulator.getNodes()).call(e,function(t){return t.id})}},{key:"getSelectedEdgeIds",value:function(){var e;return Dn(e=this._selectionAccumulator.getEdges()).call(e,function(t){return t.id})}},{key:"setSelection",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!e||!e.nodes&&!e.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((t.unselectAll||t.unselectAll===void 0)&&this.unselectAll(),e.nodes){var i=M$(e.nodes),a;try{for(i.s();!(a=i.n()).done;){var o=a.value,s=this.body.nodes[o];if(!s)throw new RangeError('Node with id "'+o+'" not found');this.selectObject(s,t.highlightEdges)}}catch(h){i.e(h)}finally{i.f()}}if(e.edges){var l=M$(e.edges),u;try{for(l.s();!(u=l.n()).done;){var d=u.value,c=this.body.edges[d];if(!c)throw new RangeError('Edge with id "'+d+'" not found');this.selectObject(c)}}catch(h){l.e(h)}finally{l.f()}}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}},{key:"selectNodes",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({nodes:e},{highlightEdges:t})}},{key:"selectEdges",value:function(e){if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({edges:e})}},{key:"updateSelection",value:function(){for(var e in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,e.id)||this._selectionAccumulator.deleteNodes(e);for(var t in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,t.id)||this._selectionAccumulator.deleteEdges(t)}},{key:"getClickedItems",value:function(e){for(var t=this.canvas.DOMtoCanvas(e),i=[],a=this.body.nodeIndices,o=this.body.nodes,s=a.length-1;s>=0;s--){var l=o[a[s]],u=l.getItemsOnPoint(t);i.push.apply(i,u)}for(var d=this.body.edgeIndices,c=this.body.edges,h=d.length-1;h>=0;h--){var f=c[d[h]],v=f.getItemsOnPoint(t);i.push.apply(i,v)}return i}}]),r}(),F$=xE,xhe=Math.floor,ef=function(r,n){var e=r.length,t=xhe(e/2);return e<8?Ahe(r,n):Rhe(r,ef(F$(r,0,t),n),ef(F$(r,t),n),n)},Ahe=function(r,n){for(var e=r.length,t=1,i,a;t0;)r[a]=r[--a];a!==t++&&(r[a]=i)}return r},Rhe=function(r,n,e,t){for(var i=n.length,a=e.length,o=0,s=0;o3)){if(Khe)return!0;if(U$)return U$<603;var r="",n,e,t,i;for(n=65;n<76;n++){switch(e=String.fromCharCode(n),n){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(i=0;i<47;i++)Hr.push({k:e+i,v:t})}for(Hr.sort(function(a,o){return o.v-a.v}),i=0;iz$(e)?1:-1}};zhe({target:"Array",proto:!0,forced:Qhe},{sort:function(n){n!==void 0&&Hhe(n);var e=Whe(this);if(YO)return n===void 0?V$(e):V$(e,n);var t=[],i=L$(e),a,o;for(o=0;o=0:s>l;l+=u)l in o&&(i=e(i,o[l],l,a));return i}},ffe={left:G$(!1),right:G$(!0)},vfe=Ee,pfe=Ar,gfe=pfe(vfe.process)==="process",yfe=G,mfe=ffe.left,bfe=ua,K$=So,$fe=gfe,wfe=!$fe&&K$>79&&K$<83,_fe=wfe||!bfe("reduce");yfe({target:"Array",proto:!0,forced:_fe},{reduce:function(n){var e=arguments.length;return mfe(this,n,e,e>1?arguments[1]:void 0)}});var Efe=Ge,Sfe=Efe("Array").reduce,Ofe=Pe,Tfe=Sfe,Nc=Array.prototype,kfe=function(r){var n=r.reduce;return r===Nc||Ofe(Nc,r)&&n===Nc.reduce?Tfe:n},Ife=kfe,Pfe=Ife,Cfe=Pfe,XO=z(Cfe);function JO(r){var n=xfe();return function(){var t=B(r),i;if(n){var a=B(this).constructor;i=_(t,arguments,a)}else i=t.apply(this,arguments);return se(this,i)}}function xfe(){if(typeof Reflect>"u"||!_||_.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_(Boolean,[],function(){})),!0}catch{return!1}}var QO=function(){function r(){x(this,r)}return A(r,[{key:"abstract",value:function(){throw new Error("Can't instantiate abstract class!")}},{key:"fake_use",value:function(){}},{key:"curveType",value:function(){return this.abstract()}},{key:"getPosition",value:function(e){return this.fake_use(e),this.abstract()}},{key:"setPosition",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;this.fake_use(e,t,i),this.abstract()}},{key:"getTreeSize",value:function(e){return this.fake_use(e),this.abstract()}},{key:"sort",value:function(e){this.fake_use(e),this.abstract()}},{key:"fix",value:function(e,t){this.fake_use(e,t),this.abstract()}},{key:"shift",value:function(e,t){this.fake_use(e,t),this.abstract()}}]),r}(),Afe=function(r){ne(e,r);var n=JO(e);function e(t){var i;return x(this,e),i=n.call(this),i.layout=t,i}return A(e,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(i){return i.x}},{key:"setPosition",value:function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;o!==void 0&&this.layout.hierarchical.addToOrdering(i,o),i.x=a}},{key:"getTreeSize",value:function(i){var a=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,i);return{min:a.min_x,max:a.max_x}}},{key:"sort",value:function(i){Da(i).call(i,function(a,o){return a.x-o.x})}},{key:"fix",value:function(i,a){i.y=this.layout.options.hierarchical.levelSeparation*a,i.options.fixed.y=!0}},{key:"shift",value:function(i,a){this.layout.body.nodes[i].x+=a}}]),e}(QO),Rfe=function(r){ne(e,r);var n=JO(e);function e(t){var i;return x(this,e),i=n.call(this),i.layout=t,i}return A(e,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(i){return i.y}},{key:"setPosition",value:function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;o!==void 0&&this.layout.hierarchical.addToOrdering(i,o),i.y=a}},{key:"getTreeSize",value:function(i){var a=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,i);return{min:a.min_y,max:a.max_y}}},{key:"sort",value:function(i){Da(i).call(i,function(a,o){return a.y-o.y})}},{key:"fix",value:function(i,a){i.x=this.layout.options.hierarchical.levelSeparation*a,i.options.fixed.x=!0}},{key:"shift",value:function(i,a){this.layout.body.nodes[i].y+=a}}]),e}(QO),Dfe=G,Mfe=ni.every,Nfe=ua,Ffe=Nfe("every");Dfe({target:"Array",proto:!0,forced:!Ffe},{every:function(n){return Mfe(this,n,arguments.length>1?arguments[1]:void 0)}});var Bfe=Ge,jfe=Bfe("Array").every,Lfe=Pe,zfe=jfe,Fc=Array.prototype,Hfe=function(r){var n=r.every;return r===Fc||Lfe(Fc,r)&&n===Fc.every?zfe:n},Wfe=Hfe,Ufe=Wfe,Vfe=Ufe,ZO=z(Vfe);function Gfe(r,n){var e=typeof ai<"u"&&Gi(r)||r["@@iterator"];if(!e){if(oe(r)||(e=Kfe(r))||n){e&&(r=e);var t=0,i=function(){};return{s:i,n:function(){return t>=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(u){throw u},f:i}}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 a=!0,o=!1,s;return{s:function(){e=e.call(r)},n:function(){var u=e.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function Kfe(r,n){var e;if(r){if(typeof r=="string")return q$(r,n);var t=Je(e=Object.prototype.toString.call(r)).call(e,8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Vi(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return q$(r,n)}}function q$(r,n){(n==null||n>r.length)&&(n=r.length);for(var e=0,t=new Array(n);e=n[a])&&(n[a]=n[i]+1)}),n}function Yfe(r){return eT(function(n){var e,t;return ZO(e=bt(t=n.edges).call(t,function(i){return r.has(i.toId)})).call(e,function(i){return i.to===n})},function(n,e){return e>n},"from",r)}function Xfe(r){return eT(function(n){var e,t;return ZO(e=bt(t=n.edges).call(t,function(i){return r.has(i.toId)})).call(e,function(i){return i.from===n})},function(n,e){return eo)return{v:{v:qfe(t,a)}};++m},E;$=g.pop();)if(E=b(),E!==0&&E)return E.v},h;for(u.s();!(d=u.n()).done;)if(h=c(),h!==0&&h)return h.v}catch(f){u.e(f)}finally{u.f()}return a}var Jfe=function(){function r(){x(this,r),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return A(r,[{key:"addRelation",value:function(e,t){this.childrenReference[e]===void 0&&(this.childrenReference[e]=[]),this.childrenReference[e].push(t),this.parentReference[t]===void 0&&(this.parentReference[t]=[]),this.parentReference[t].push(e)}},{key:"checkIfTree",value:function(){for(var e in this.parentReference)if(this.parentReference[e].length>1){this.isTree=!1;return}this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(e,t){t!==void 0&&this.trees[e.id]===void 0&&(this.trees[e.id]=t,this.treeIndex=Math.max(t,this.treeIndex))}},{key:"ensureLevel",value:function(e){this.levels[e]===void 0&&(this.levels[e]=0)}},{key:"getMaxLevel",value:function(e){var t=this,i={},a=function o(s){if(i[s]!==void 0)return i[s];var l=t.levels[s];if(t.childrenReference[s]){var u=t.childrenReference[s];if(u.length>0)for(var d=0;d0&&(i.levelSeparation*=-1):i.levelSeparation<0&&(i.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(t);if(a===!0)return this.body.emitter.emit("refresh"),ce(t,this.optionsBackup)}return t}},{key:"_resetRNG",value:function(e){this.initialRandomSeed=e,this._rng=wu(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(e){if(this.options.hierarchical.enabled===!0){var t=this.optionsBackup.physics;e.physics===void 0||e.physics===!0?(e.physics={enabled:t.enabled===void 0?!0:t.enabled,solver:"hierarchicalRepulsion"},t.enabled=t.enabled===void 0?!0:t.enabled,t.solver=t.solver||"barnesHut"):le(e.physics)==="object"?(t.enabled=e.physics.enabled===void 0?!0:e.physics.enabled,t.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):e.physics!==!1&&(t.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});var i=this.direction.curveType();if(e.edges===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges={smooth:!1};else if(e.edges.smooth===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges.smooth=!1;else if(typeof e.edges.smooth=="boolean")this.optionsBackup.edges={smooth:e.edges.smooth},e.edges.smooth={enabled:e.edges.smooth,type:i};else{var a=e.edges.smooth;a.type!==void 0&&a.type!=="dynamic"&&(i=a.type),this.optionsBackup.edges={smooth:{enabled:a.enabled===void 0?!0:a.enabled,type:a.type===void 0?"dynamic":a.type,roundness:a.roundness===void 0?.5:a.roundness,forceDirection:a.forceDirection===void 0?!1:a.forceDirection}},e.edges.smooth={enabled:a.enabled===void 0?!0:a.enabled,type:i,roundness:a.roundness===void 0?.5:a.roundness,forceDirection:a.forceDirection===void 0?!1:a.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",i)}return e}},{key:"positionInitially",value:function(e){if(this.options.hierarchical.enabled!==!0){this._resetRNG(this.initialRandomSeed);for(var t=e.length+50,i=0;il){for(var d=e.length;e.length>l&&s<=o;){s+=1;var c=e.length;s%3===0?this.body.modules.clustering.clusterBridges(u):this.body.modules.clustering.clusterOutliers(u);var h=e.length;if(c==h&&s%3!==0){this._declusterAll(),this.body.emitter.emit("_layoutFailed"),console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.");return}}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*d)})}s>o&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(e,this.body.edgeIndices,!0),this._shiftToCenter();for(var f=70,v=0;v0){var e,t,i=!1,a=!1;this.lastNodeOnLevel={},this.hierarchical=new Jfe;for(t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&(e=this.body.nodes[t],e.options.level!==void 0?(i=!0,this.hierarchical.levels[t]=e.options.level):a=!0);if(a===!0&&i===!0)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(a===!0){var o=this.options.hierarchical.sortMethod;o==="hubsize"?this._determineLevelsByHubsize():o==="directed"?this._determineLevelsDirected():o==="custom"&&this._determineLevelsCustomCallback()}for(var s in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,s)&&this.hierarchical.ensureLevel(s);var l=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(l),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var e=this,t=!1,i={},a=function(){for(var $=s(),b=0,E=0;E<$.length-1;E++){var S=$[E].max-$[E+1].min;b+=S+e.options.hierarchical.treeSpacing,o(E+1,b)}},o=function($,b){var E=e.hierarchical.trees;for(var S in E)Object.prototype.hasOwnProperty.call(E,S)&&E[S]===$&&e.direction.shift(S,b)},s=function(){for(var $=[],b=0;b0)for(var S=0;S1&&arguments[1]!==void 0?arguments[1]:1e9,E=1e9,S=1e9,D=1e9,M=-1e9;for(var R in $)if(Object.prototype.hasOwnProperty.call($,R)){var F=e.body.nodes[R],W=e.hierarchical.levels[F.id],J=e.direction.getPosition(F),X=e._getSpaceAroundNode(F,$),ye=$e(X,2),Ke=ye[0],Ce=ye[1];E=Math.min(Ke,E),S=Math.min(Ce,S),W<=b&&(D=Math.min(J,D),M=Math.max(J,M))}return[D,M,E,S]},d=function($,b){var E=e.hierarchical.getMaxLevel($.id),S=e.hierarchical.getMaxLevel(b.id);return Math.min(E,S)},c=function($,b,E){for(var S=e.hierarchical,D=0;D1)for(var F=0;F2&&arguments[2]!==void 0?arguments[2]:!1,S=e.direction.getPosition($),D=e.direction.getPosition(b),M=Math.abs(D-S),R=e.options.hierarchical.nodeSpacing;if(M>R){var F={},W={};l($,F),l(b,W);var J=d($,b),X=u(F,J),ye=u(W,J),Ke=X[1],Ce=ye[0],Tt=ye[2],nt=Math.abs(Ke-Ce);if(nt>R){var Ze=Ke-Ce+R;Ze<-Tt+R&&(Ze=-Tt+R),Ze<0&&(e._shiftBlock(b.id,Ze),t=!0,E===!0&&e._centerParent(b))}}},f=function($,b){for(var E=b.id,S=b.edges,D=e.hierarchical.levels[b.id],M=e.options.hierarchical.levelSeparation*e.options.hierarchical.levelSeparation,R={},F=[],W=0;W0?rt=Math.min(It,pr-e.options.hierarchical.nodeSpacing):It<0&&(rt=-Math.min(-It,tt-e.options.hierarchical.nodeSpacing)),rt!=0&&(e._shiftBlock(b.id,rt),t=!0)},nt=function(et){var fe=e.direction.getPosition(b),xe=e._getSpaceAroundNode(b),Te=$e(xe,2),tt=Te[0],pr=Te[1],It=et-fe,rt=fe;It>0?rt=Math.min(fe+(pr-e.options.hierarchical.nodeSpacing),et):It<0&&(rt=Math.max(fe-(tt-e.options.hierarchical.nodeSpacing),et)),rt!==fe&&(e.direction.setPosition(b,rt),t=!0)},Ze=Ce($,F);Tt(Ze),Ze=Ce($,S),nt(Ze)},v=function($){var b=e.hierarchical.getLevels();b=_i(b).call(b);for(var E=0;E<$;E++){t=!1;for(var S=0;S0&&Math.abs(v)0&&(d=this.direction.getPosition(a[s-1])+u),this.direction.setPosition(l,d,t),this._validatePositionAndContinue(l,t,d),o++}}}}},{key:"_placeBranchNodes",value:function(e,t){var i,a=this.hierarchical.childrenReference[e];if(a!==void 0){for(var o=[],s=0;st&&this.positionedNodes[u.id]===void 0){var c=this.options.hierarchical.nodeSpacing,h=void 0;l===0?h=this.direction.getPosition(this.body.nodes[e]):h=this.direction.getPosition(o[l-1])+c,this.direction.setPosition(u,h,d),this._validatePositionAndContinue(u,d,h)}else return}var f=this._getCenterPosition(o);this.direction.setPosition(this.body.nodes[e],f,t)}}},{key:"_validatePositionAndContinue",value:function(e,t,i){if(this.hierarchical.isTree){if(this.lastNodeOnLevel[t]!==void 0){var a=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[t]]);if(i-ae.hierarchical.levels[a.id]&&e.hierarchical.addRelation(a.id,o.id)};this._crawlNetwork(t),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},i=arguments.length>1?arguments[1]:void 0,a={},o=function h(f,v){if(a[f.id]===void 0){e.hierarchical.setTreeIndex(f,v),a[f.id]=!0;for(var p,y=e._getActiveEdges(f),g=0;g=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(u){throw u},f:i}}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 a=!0,o=!1,s;return{s:function(){e=e.call(r)},n:function(){var u=e.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function eve(r,n){var e;if(r){if(typeof r=="string")return Y$(r,n);var t=Je(e=Object.prototype.toString.call(r)).call(e,8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Vi(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Y$(r,n)}}function Y$(r,n){(n==null||n>r.length)&&(n=r.length);for(var e=0,t=new Array(n);e0&&this.options.deleteNode!==!1?(l===!0&&this._createSeperator(4),this._createDeleteButton(s)):i===0&&this.options.deleteEdge!==!1&&(l===!0&&this._createSeperator(4),this._createDeleteButton(s))),this._bindElementEvents(this.closeDiv,k(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",k(t=this.showManipulatorToolbar).call(t,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var e;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var t,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,k(t=this.toggleEditMode).call(t,this))}this._temporaryBindEvent("click",k(e=this._performAddNode).call(e,this))}},{key:"editNode",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean();var t=this.selectionHandler.getSelectedNodes()[0];if(t!==void 0)if(this.inMode="editNode",typeof this.options.editNode=="function")if(t.isCluster!==!0){var i=ce({},t.options,!1);if(i.x=t.x,i.y=t.y,this.options.editNode.length===2)this.options.editNode(i,function(a){a!=null&&e.inMode==="editNode"&&e.body.data.nodes.getDataSet().update(a),e.showManipulatorToolbar()});else throw new Error("The function for edit does not support two arguments (data, callback)")}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError);else throw new Error("No function has been configured to handle the editing of nodes.");else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){var e,t,i,a,o;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var s,l=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(l),this._createSeperator(),this._createDescription(l.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,k(s=this.toggleEditMode).call(s,this))}this._temporaryBindUI("onTouch",k(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",k(t=this._finishConnect).call(t,this)),this._temporaryBindUI("onDrag",k(i=this._dragControlNode).call(i,this)),this._temporaryBindUI("onRelease",k(a=this._finishConnect).call(a,this)),this._temporaryBindUI("onDragStart",k(o=this._dragStartEdge).call(o,this)),this._temporaryBindUI("onHold",function(){})}},{key:"editEdgeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge",le(this.options.editEdge)==="object"&&typeof this.options.editEdge.editWithoutDrag=="function"&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0)){var e=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(e.from.id,e.to.id);return}if(this.guiEnabled===!0){var t,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,k(t=this.toggleEditMode).call(t,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0){var a,o,s,l,u=this.body.edges[this.edgeBeingEditedId],d=this._getNewTargetNode(u.from.x,u.from.y),c=this._getNewTargetNode(u.to.x,u.to.y);this.temporaryIds.nodes.push(d.id),this.temporaryIds.nodes.push(c.id),this.body.nodes[d.id]=d,this.body.nodeIndices.push(d.id),this.body.nodes[c.id]=c,this.body.nodeIndices.push(c.id),this._temporaryBindUI("onTouch",k(a=this._controlNodeTouch).call(a,this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",k(o=this._controlNodeDragStart).call(o,this)),this._temporaryBindUI("onDrag",k(s=this._controlNodeDrag).call(s,this)),this._temporaryBindUI("onDragEnd",k(l=this._controlNodeDragEnd).call(l,this)),this._temporaryBindUI("onMouseMove",function(){}),this._temporaryBindEvent("beforeDrawing",function(h){var f=u.edgeType.findBorderPositions(h);d.selected===!1&&(d.x=f.from.x,d.y=f.from.y),c.selected===!1&&(c.x=f.to.x,c.y=f.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}},{key:"deleteSelected",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";var t=this.selectionHandler.getSelectedNodeIds(),i=this.selectionHandler.getSelectedEdgeIds(),a=void 0;if(t.length>0){for(var o=0;o0&&typeof this.options.deleteEdge=="function"&&(a=this.options.deleteEdge);if(typeof a=="function"){var s={nodes:t,edges:i};if(a.length===2)a(s,function(l){l!=null&&e.inMode==="delete"?(e.body.data.edges.getDataSet().remove(l.edges),e.body.data.nodes.getDataSet().remove(l.nodes),e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar()):(e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar())});else throw new Error("The function for delete does not support two arguments (data, callback)")}else this.body.data.edges.getDataSet().remove(i),this.body.data.nodes.getDataSet().remove(t),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){this.options.enabled===!0?(this.guiEnabled=!0,this._createWrappers(),this.editMode===!1?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){if(this.manipulationDiv===void 0&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",this.editMode===!0?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),this.editModeDiv===void 0&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",this.editMode===!0?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),this.closeDiv===void 0){var e,t;this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",(e=(t=this.options.locales[this.options.locale])===null||t===void 0?void 0:t.close)!==null&&e!==void 0?e:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv)}}},{key:"_getNewTargetNode",value:function(e,t){var i=ce({},this.options.controlNodeStyle);i.id="targetNode"+Aa(),i.hidden=!1,i.physics=!1,i.x=e,i.y=t;var a=this.body.functions.createNode(i);return a.shape.boundingBox={left:e,right:e,top:t,bottom:t},a}},{key:"_createEditButton",value:function(){var e;this._clean(),this.manipulationDOM={},Br(this.editModeDiv);var t=this.options.locales[this.options.locale],i=this._createButton("editMode","vis-edit vis-edit-mode",t.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(i),this._bindElementEvents(i,k(e=this.toggleEditMode).call(e,this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(Br(this.editModeDiv),Br(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var e,t=Zfe(_r(e=this._domEventListenerCleanupQueue).call(e,0)),i;try{for(t.s();!(i=t.n()).done;){var a=i.value;a()}}catch(o){t.e(o)}finally{t.f()}}},{key:"_removeManipulationDOM",value:function(){this._clean(),Br(this.manipulationDiv),Br(this.editModeDiv),Br(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:"_createSeperator",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+e]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+e].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+e])}},{key:"_createAddNodeButton",value:function(e){var t,i=this._createButton("addNode","vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,k(t=this.addNodeMode).call(t,this))}},{key:"_createAddEdgeButton",value:function(e){var t,i=this._createButton("addEdge","vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,k(t=this.addEdgeMode).call(t,this))}},{key:"_createEditNodeButton",value:function(e){var t,i=this._createButton("editNode","vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,k(t=this.editNode).call(t,this))}},{key:"_createEditEdgeButton",value:function(e){var t,i=this._createButton("editEdge","vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,k(t=this.editEdgeMode).call(t,this))}},{key:"_createDeleteButton",value:function(e){var t,i;this.options.rtl?i="vis-delete-rtl":i="vis-delete";var a=this._createButton("delete",i,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(a),this._bindElementEvents(a,k(t=this.deleteSelected).call(t,this))}},{key:"_createBackButton",value:function(e){var t,i=this._createButton("back","vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,k(t=this.showManipulatorToolbar).call(t,this))}},{key:"_createButton",value:function(e,t,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"vis-label";return this.manipulationDOM[e+"Div"]=document.createElement("button"),this.manipulationDOM[e+"Div"].className="vis-button "+t,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=a,this.manipulationDOM[e+"Label"].innerText=i,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}},{key:"_createDescription",value:function(e){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=e,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}},{key:"_temporaryBindEvent",value:function(e,t){this.temporaryEventFunctions.push({event:e,boundFunction:t}),this.body.emitter.on(e,t)}},{key:"_temporaryBindUI",value:function(e,t){if(this.body.eventListeners[e]!==void 0)this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=t;else throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+Fo(be(this.body.eventListeners)))}},{key:"_unbindTemporaryUIs",value:function(){for(var e in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var e=0;e=0;l--)if(o[l]!==this.selectedControlNode.id){s=this.body.nodes[o[l]];break}if(s!==void 0&&this.selectedControlNode!==void 0)if(s.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var u=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===u.id?this._performEditEdge(s.id,a.to.id):this._performEditEdge(a.from.id,s.id)}else a.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(e){if(new Date().valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Re({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;var t=this.lastTouch,i=this.selectionHandler.getNodeAt(t);if(i!==void 0)if(i.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var a=this._getNewTargetNode(i.x,i.y);this.body.nodes[a.id]=a,this.body.nodeIndices.push(a.id);var o=this.body.functions.createEdge({id:"connectionEdge"+Aa(),from:i.id,to:a.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[o.id]=o,this.body.edgeIndices.push(o.id),this.temporaryIds.nodes.push(a.id),this.temporaryIds.edges.push(o.id)}this.touchTime=new Date().valueOf()}}},{key:"_dragControlNode",value:function(e){var t=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(t),a=void 0;this.temporaryIds.edges[0]!==void 0&&(a=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var o=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=o.length-1;l>=0;l--){var u;if(ee(u=this.temporaryIds.nodes).call(u,o[l])===-1){s=this.body.nodes[o[l]];break}}if(e.controlEdge={from:a,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",e,t),this.temporaryIds.nodes[0]!==void 0){var d=this.body.nodes[this.temporaryIds.nodes[0]];d.x=this.canvas._XconvertDOMtoCanvas(t.x),d.y=this.canvas._YconvertDOMtoCanvas(t.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(e)}},{key:"_finishConnect",value:function(e){var t=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(t),a=void 0;this.temporaryIds.edges[0]!==void 0&&(a=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var o=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=o.length-1;l>=0;l--){var u;if(ee(u=this.temporaryIds.nodes).call(u,o[l])===-1){s=this.body.nodes[o[l]];break}}this._cleanupTemporaryNodesAndEdges(),s!==void 0&&(s.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):this.body.nodes[a]!==void 0&&this.body.nodes[s.id]!==void 0&&this._performAddEdge(a,s.id)),e.controlEdge={from:a,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",e,t),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(e){var t=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",e,t,void 0,!0)}},{key:"_performAddNode",value:function(e){var t=this,i={id:Aa(),x:e.pointer.canvas.x,y:e.pointer.canvas.y,label:"new"};if(typeof this.options.addNode=="function")if(this.options.addNode.length===2)this.options.addNode(i,function(a){a!=null&&t.inMode==="addNode"&&t.body.data.nodes.getDataSet().add(a),t.showManipulatorToolbar()});else throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");else this.body.data.nodes.getDataSet().add(i),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(e,t){var i=this,a={from:e,to:t};if(typeof this.options.addEdge=="function")if(this.options.addEdge.length===2)this.options.addEdge(a,function(o){o!=null&&i.inMode==="addEdge"&&(i.body.data.edges.getDataSet().add(o),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())});else throw new Error("The function for connect does not support two arguments (data,callback)");else this.body.data.edges.getDataSet().add(a),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(e,t){var i=this,a={id:this.edgeBeingEditedId,from:e,to:t,label:this.body.data.edges.get(this.edgeBeingEditedId).label},o=this.options.editEdge;if(le(o)==="object"&&(o=o.editWithoutDrag),typeof o=="function")if(o.length===2)o(a,function(s){s==null||i.inMode!=="editEdge"?(i.body.edges[a.id].updateEdgeType(),i.body.emitter.emit("_redraw"),i.showManipulatorToolbar()):(i.body.data.edges.getDataSet().update(s),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())});else throw new Error("The function for edit does not support two arguments (data, callback)");else this.body.data.edges.getDataSet().update(a),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),r}(),C="string",O="boolean",w="number",Ea="array",L="object",tT="dom",rve="any",Bc=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],jc={borderWidth:{number:w},borderWidthSelected:{number:w,undefined:"undefined"},brokenImage:{string:C,undefined:"undefined"},chosen:{label:{boolean:O,function:"function"},node:{boolean:O,function:"function"},__type__:{object:L,boolean:O}},color:{border:{string:C},background:{string:C},highlight:{border:{string:C},background:{string:C},__type__:{object:L,string:C}},hover:{border:{string:C},background:{string:C},__type__:{object:L,string:C}},__type__:{object:L,string:C}},opacity:{number:w,undefined:"undefined"},fixed:{x:{boolean:O},y:{boolean:O},__type__:{object:L,boolean:O}},font:{align:{string:C},color:{string:C},size:{number:w},face:{string:C},background:{string:C},strokeWidth:{number:w},strokeColor:{string:C},vadjust:{number:w},multi:{boolean:O,string:C},bold:{color:{string:C},size:{number:w},face:{string:C},mod:{string:C},vadjust:{number:w},__type__:{object:L,string:C}},boldital:{color:{string:C},size:{number:w},face:{string:C},mod:{string:C},vadjust:{number:w},__type__:{object:L,string:C}},ital:{color:{string:C},size:{number:w},face:{string:C},mod:{string:C},vadjust:{number:w},__type__:{object:L,string:C}},mono:{color:{string:C},size:{number:w},face:{string:C},mod:{string:C},vadjust:{number:w},__type__:{object:L,string:C}},__type__:{object:L,string:C}},group:{string:C,number:w,undefined:"undefined"},heightConstraint:{minimum:{number:w},valign:{string:C},__type__:{object:L,boolean:O,number:w}},hidden:{boolean:O},icon:{face:{string:C},code:{string:C},size:{number:w},color:{string:C},weight:{string:C,number:w},__type__:{object:L}},id:{string:C,number:w},image:{selected:{string:C,undefined:"undefined"},unselected:{string:C,undefined:"undefined"},__type__:{object:L,string:C}},imagePadding:{top:{number:w},right:{number:w},bottom:{number:w},left:{number:w},__type__:{object:L,number:w}},label:{string:C,undefined:"undefined"},labelHighlightBold:{boolean:O},level:{number:w,undefined:"undefined"},margin:{top:{number:w},right:{number:w},bottom:{number:w},left:{number:w},__type__:{object:L,number:w}},mass:{number:w},physics:{boolean:O},scaling:{min:{number:w},max:{number:w},label:{enabled:{boolean:O},min:{number:w},max:{number:w},maxVisible:{number:w},drawThreshold:{number:w},__type__:{object:L,boolean:O}},customScalingFunction:{function:"function"},__type__:{object:L}},shadow:{enabled:{boolean:O},color:{string:C},size:{number:w},x:{number:w},y:{number:w},__type__:{object:L,boolean:O}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:O,array:Ea},borderRadius:{number:w},interpolation:{boolean:O},useImageSize:{boolean:O},useBorderWithImage:{boolean:O},coordinateOrigin:{string:["center","top-left"]},__type__:{object:L}},size:{number:w},title:{string:C,dom:tT,undefined:"undefined"},value:{number:w,undefined:"undefined"},widthConstraint:{minimum:{number:w},maximum:{number:w},__type__:{object:L,boolean:O,number:w}},x:{number:w},y:{number:w},__type__:{object:L}},ive={configure:{enabled:{boolean:O},filter:{boolean:O,string:C,array:Ea,function:"function"},container:{dom:tT},showButton:{boolean:O},__type__:{object:L,boolean:O,string:C,array:Ea,function:"function"}},edges:{arrows:{to:{enabled:{boolean:O},scaleFactor:{number:w},type:{string:Bc},imageHeight:{number:w},imageWidth:{number:w},src:{string:C},__type__:{object:L,boolean:O}},middle:{enabled:{boolean:O},scaleFactor:{number:w},type:{string:Bc},imageWidth:{number:w},imageHeight:{number:w},src:{string:C},__type__:{object:L,boolean:O}},from:{enabled:{boolean:O},scaleFactor:{number:w},type:{string:Bc},imageWidth:{number:w},imageHeight:{number:w},src:{string:C},__type__:{object:L,boolean:O}},__type__:{string:["from","to","middle"],object:L}},endPointOffset:{from:{number:w},to:{number:w},__type__:{object:L,number:w}},arrowStrikethrough:{boolean:O},background:{enabled:{boolean:O},color:{string:C},size:{number:w},dashes:{boolean:O,array:Ea},__type__:{object:L,boolean:O}},chosen:{label:{boolean:O,function:"function"},edge:{boolean:O,function:"function"},__type__:{object:L,boolean:O}},color:{color:{string:C},highlight:{string:C},hover:{string:C},inherit:{string:["from","to","both"],boolean:O},opacity:{number:w},__type__:{object:L,string:C}},dashes:{boolean:O,array:Ea},font:{color:{string:C},size:{number:w},face:{string:C},background:{string:C},strokeWidth:{number:w},strokeColor:{string:C},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:w},multi:{boolean:O,string:C},bold:{color:{string:C},size:{number:w},face:{string:C},mod:{string:C},vadjust:{number:w},__type__:{object:L,string:C}},boldital:{color:{string:C},size:{number:w},face:{string:C},mod:{string:C},vadjust:{number:w},__type__:{object:L,string:C}},ital:{color:{string:C},size:{number:w},face:{string:C},mod:{string:C},vadjust:{number:w},__type__:{object:L,string:C}},mono:{color:{string:C},size:{number:w},face:{string:C},mod:{string:C},vadjust:{number:w},__type__:{object:L,string:C}},__type__:{object:L,string:C}},hidden:{boolean:O},hoverWidth:{function:"function",number:w},label:{string:C,undefined:"undefined"},labelHighlightBold:{boolean:O},length:{number:w,undefined:"undefined"},physics:{boolean:O},scaling:{min:{number:w},max:{number:w},label:{enabled:{boolean:O},min:{number:w},max:{number:w},maxVisible:{number:w},drawThreshold:{number:w},__type__:{object:L,boolean:O}},customScalingFunction:{function:"function"},__type__:{object:L}},selectionWidth:{function:"function",number:w},selfReferenceSize:{number:w},selfReference:{size:{number:w},angle:{number:w},renderBehindTheNode:{boolean:O},__type__:{object:L}},shadow:{enabled:{boolean:O},color:{string:C},size:{number:w},x:{number:w},y:{number:w},__type__:{object:L,boolean:O}},smooth:{enabled:{boolean:O},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:w},forceDirection:{string:["horizontal","vertical","none"],boolean:O},__type__:{object:L,boolean:O}},title:{string:C,undefined:"undefined"},width:{number:w},widthConstraint:{maximum:{number:w},__type__:{object:L,boolean:O,number:w}},value:{number:w,undefined:"undefined"},__type__:{object:L}},groups:{useDefaultGroups:{boolean:O},__any__:jc,__type__:{object:L}},interaction:{dragNodes:{boolean:O},dragView:{boolean:O},hideEdgesOnDrag:{boolean:O},hideEdgesOnZoom:{boolean:O},hideNodesOnDrag:{boolean:O},hover:{boolean:O},keyboard:{enabled:{boolean:O},speed:{x:{number:w},y:{number:w},zoom:{number:w},__type__:{object:L}},bindToWindow:{boolean:O},autoFocus:{boolean:O},__type__:{object:L,boolean:O}},multiselect:{boolean:O},navigationButtons:{boolean:O},selectable:{boolean:O},selectConnectedEdges:{boolean:O},hoverConnectedEdges:{boolean:O},tooltipDelay:{number:w},zoomView:{boolean:O},zoomSpeed:{number:w},__type__:{object:L}},layout:{randomSeed:{undefined:"undefined",number:w,string:C},improvedLayout:{boolean:O},clusterThreshold:{number:w},hierarchical:{enabled:{boolean:O},levelSeparation:{number:w},nodeSpacing:{number:w},treeSpacing:{number:w},blockShifting:{boolean:O},edgeMinimization:{boolean:O},parentCentralization:{boolean:O},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:L,boolean:O}},__type__:{object:L}},manipulation:{enabled:{boolean:O},initiallyActive:{boolean:O},addNode:{boolean:O,function:"function"},addEdge:{boolean:O,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:L,boolean:O,function:"function"}},deleteNode:{boolean:O,function:"function"},deleteEdge:{boolean:O,function:"function"},controlNodeStyle:jc,__type__:{object:L,boolean:O}},nodes:jc,physics:{enabled:{boolean:O},barnesHut:{theta:{number:w},gravitationalConstant:{number:w},centralGravity:{number:w},springLength:{number:w},springConstant:{number:w},damping:{number:w},avoidOverlap:{number:w},__type__:{object:L}},forceAtlas2Based:{theta:{number:w},gravitationalConstant:{number:w},centralGravity:{number:w},springLength:{number:w},springConstant:{number:w},damping:{number:w},avoidOverlap:{number:w},__type__:{object:L}},repulsion:{centralGravity:{number:w},springLength:{number:w},springConstant:{number:w},nodeDistance:{number:w},damping:{number:w},__type__:{object:L}},hierarchicalRepulsion:{centralGravity:{number:w},springLength:{number:w},springConstant:{number:w},nodeDistance:{number:w},damping:{number:w},avoidOverlap:{number:w},__type__:{object:L}},maxVelocity:{number:w},minVelocity:{number:w},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:O},iterations:{number:w},updateInterval:{number:w},onlyDynamicEdges:{boolean:O},fit:{boolean:O},__type__:{object:L,boolean:O}},timestep:{number:w},adaptiveTimestep:{boolean:O},wind:{x:{number:w},y:{number:w},__type__:{object:L}},__type__:{object:L,boolean:O}},autoResize:{boolean:O},clickToUse:{boolean:O},locale:{string:C},locales:{__any__:{any:rve},__type__:{object:L}},height:{string:C},width:{string:C},__type__:{object:L}},rT={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},nve=function(n,e,t){var i;return!!(Kr(n).call(n,"physics")&&Kr(i=rT.physics.solver).call(i,e)&&t.physics.solver!==e&&e!=="wind")},ave=function(){function r(){x(this,r)}return A(r,[{key:"getDistances",value:function(e,t,i){for(var a={},o=e.edges,s=0;s2&&arguments[2]!==void 0?arguments[2]:!1,a=this.distanceSolver.getDistances(this.body,e,t);this._createL_matrix(a),this._createK_matrix(a),this._createE_matrix();for(var o=.01,s=1,l=0,u=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),d=5,c=1e9,h=0,f=0,v=0,p=0,y=0;c>o&&ls&&yg.type==="downstream_subgraph_search")?.data||[],f=g=>{const m=g.json.nodes.map(b=>({id:b.id,label:b.type,color:{background:"#2B7CE9",border:"#1B5BB1"},font:{size:16,color:"#FFFFFF",face:"arial",bold:!0},margin:12,padding:10,shape:"box",widthConstraint:{minimum:100,maximum:200}})),$=g.json.links.map(b=>({from:b.origin_id,to:b.target_id,arrows:{to:{enabled:!0,scaleFactor:1.2}},color:"#FFFFFF",width:2}));return{nodes:m,edges:$}};Xe.useEffect(()=>()=>{c.current&&(c.current.destroy(),c.current=null)},[]);const v=Xe.useCallback((g,m)=>{c.current&&c.current.destroy();const $=f(m),b=new j(g,$,{nodes:{shape:"box",margin:12,padding:10,font:{size:16,color:"#FFFFFF",face:"arial",bold:!0},borderWidth:2,shadow:{enabled:!0,color:"rgba(0,0,0,0.2)",size:5}},edges:{arrows:"to",color:"#FFFFFF",width:2,smooth:{enabled:!0,type:"straightCross"}},physics:{enabled:!0,solver:"hierarchicalRepulsion",hierarchicalRepulsion:{nodeDistance:200,springLength:200}},layout:{hierarchical:{enabled:!0,direction:"UD",sortMethod:"directed",nodeSpacing:200,levelSeparation:150}},interaction:{dragNodes:!1,zoomView:!1,dragView:!1}});c.current=b},[]),p=async g=>{console.log("[DownstreamSubgraphs] Starting checkAndLoadSubgraph with node:",g);const m=g.json.nodes,$=Object.values(Ct.canvas.selected_nodes)[0];if(!$){console.warn("[DownstreamSubgraphs] No node selected"),alert("Please select a upstream node first before adding a subgraph.");return}const b=m.map(D=>D.type),E=s;console.log("[DownstreamSubgraphs] Required node types:",b),console.log("[DownstreamSubgraphs] Installed node types:",E);const S=b.filter(D=>!E.includes(D));if(console.log("[DownstreamSubgraphs] Missing node types:",S),S.length>0)try{console.log("[DownstreamSubgraphs] Fetching info for missing nodes");const D=await Lc.batchGetNodeInfo(S);console.log("[DownstreamSubgraphs] Received node infos:",D);const M={text:"",ext:[{type:"node_install_guide",data:D.map(F=>({name:F.name,repository_url:F.github_url}))}]};console.log("[DownstreamSubgraphs] Created message content:",M);const R={id:ba(),role:"ai",content:JSON.stringify(M),format:"markdown",name:"Assistant",metadata:{pendingSubgraph:g}};console.log("[DownstreamSubgraphs] Created AI message:",R),t?.(R);return}catch(D){console.error("[DownstreamSubgraphs] Error fetching node info:",D),alert("Error checking required nodes. Please try again.");return}console.log("[DownstreamSubgraphs] All required nodes are installed, proceeding to load subgraph"),y(g,$)},y=(g,m)=>{const $=g.json.nodes,b=g.json.links,E=$.find(M=>M.id===0),S=E?.id;console.log("[DownstreamSubgraphs] Entry node ID:",S);const D={};S!==null&&(D[S]=m),Ct.canvas.emitBeforeChange();try{for(const M of $)if(M.id!==S){const R=E?.pos,F=[m._pos[0],m._pos[1]],W=[M.pos[0]+F[0]-R[0],M.pos[1]+F[1]-R[1]];D[M.id]=Z$(M.type,{pos:W})}for(const M of b){const R=D[M.origin_id],F=D[M.target_id];R&&F&&R.connect(M.origin_slot,F,M.target_slot)}}finally{Ct.canvas.emitAfterChange()}};return Xe.useEffect(()=>{const g=()=>{const m=Ct.canvas.selected_nodes;if(Object.keys(m??{}).length){const $=Object.values(m)[0];a({type:"SET_SELECTED_NODE",payload:$})}else a({type:"SET_SELECTED_NODE",payload:null})};return document.addEventListener("click",g),()=>{document.removeEventListener("click",g)}},[]),T.jsx("div",{className:"rounded-lg bg-green-50 p-3 text-gray-700 text-xs break-words overflow-visible",children:h.length>0&&T.jsx("div",{className:"space-y-3",children:T.jsx("div",{className:"flex flex-wrap gap-2",children:h.map(g=>T.jsxs("div",{className:"relative group",children:[T.jsx("button",{className:`px-3 py-1.5 bg-blue-500 text-white rounded-md + hover:bg-blue-600 transition-colors text-xs`,onClick:()=>p(g),onMouseEnter:()=>d(g.name),onMouseLeave:()=>d(null),children:g.name}),T.jsxs("p",{className:"text-xs ml-3 text-gray-500",children:["[",g.tags.join(", "),"]"]}),u===g.name&&T.jsx("div",{className:`fixed -translate-y-full + z-[9999] w-[500px] p-4 bg-gray-800 text-white text-xs + rounded-md shadow-lg mb-2 border border-gray-700`,style:{left:"calc(var(--mouse-x, 0) + 16px)",top:"calc(var(--mouse-y, 0) - 8px)"},children:T.jsx("div",{style:{width:"100%",height:"300px"},ref:m=>{m&&v(m,g)}})})]},g.name))})})})}const gve=Object.freeze(Object.defineProperty({__proto__:null,DownstreamSubgraphs:sve},Symbol.toStringTag,{value:"Module"}));function lve({content:r,onLoadSubgraph:n}){const t=JSON.parse(r).ext?.find(i=>i.type==="node_install_guide")?.data||[];return T.jsxs("div",{children:[T.jsx("p",{children:"在加载graph到画布前,以下节点有待安装,请跳转到对应的github安装节点:"}),T.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:t.map((i,a)=>T.jsx("div",{className:`w-full p-3 bg-white rounded-lg border border-gray-200 + hover:shadow-sm transition-all duration-200`,children:T.jsxs("div",{className:"flex flex-col",children:[T.jsx("h3",{className:"text-[12px] font-medium text-gray-800 mb-4",children:i.name}),T.jsx("div",{className:"flex justify-end",children:i.repository_url?T.jsxs("a",{href:i.repository_url,target:"_blank",rel:"noopener noreferrer",className:`px-2 py-1 bg-white text-gray-900 rounded-md + border border-gray-900 hover:bg-gray-100 + transition-colors text-[10px] flex items-center gap-1`,children:[T.jsx("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})}),"Download"]}):T.jsxs("a",{href:`https://www.google.com/search?q=${encodeURIComponent(i.name+" comfyui custom node")}`,target:"_blank",rel:"noopener noreferrer",className:`px-2 py-1 bg-gray-100 text-gray-500 rounded-md + border border-gray-300 text-[10px] flex items-center gap-1`,children:[T.jsx("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 21h7a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v11m0 5l4.879-4.879m0 0a3 3 0 104.243-4.242 3 3 0 00-4.243 4.242z"})}),"Search on Google"]})})]})},a))}),T.jsx("p",{className:"mt-4"}),T.jsx("p",{children:"安装完成后,请点击继续加载graph按钮,将graph加载到画布中:"}),T.jsx("div",{className:"mt-4",children:T.jsx("button",{className:`px-3 py-2 bg-blue-500 text-white rounded-md + hover:bg-blue-600 transition-colors text-xs block mx-auto`,onClick:n,children:"继续加载graph"})})]})}const yve=Object.freeze(Object.defineProperty({__proto__:null,NodeInstallGuide:lve},Symbol.toStringTag,{value:"Module"}));export{vve as A,Q$ as B,hve as C,gve as D,pve as N,fve as U,Lc as W,Ct as a,Z$ as b,lT as c,yve as d,ba as g,dT as u,cve as w}; diff --git a/dist/copilot_web/vendor-markdown-Dek94WS0.js b/dist/copilot_web/vendor-markdown-Dek94WS0.js new file mode 100644 index 0000000..e939edf --- /dev/null +++ b/dist/copilot_web/vendor-markdown-Dek94WS0.js @@ -0,0 +1,302 @@ +import{r as so,c as ri,g as oo}from"./vendor-react-V04_Axys.js";var $a={exports:{}},tn={};/** + * @license React + * react-jsx-runtime.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 uo=so,co=Symbol.for("react.element"),ho=Symbol.for("react.fragment"),mo=Object.prototype.hasOwnProperty,fo=uo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,po={key:!0,ref:!0,__self:!0,__source:!0};function Ua(e,t,r){var n,i={},a=null,l=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(l=t.ref);for(n in t)mo.call(t,n)&&!po.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:co,type:e,key:a,ref:l,props:i,_owner:fo.current}}tn.Fragment=ho;tn.jsx=Ua;tn.jsxs=Ua;$a.exports=tn;var vn=$a.exports;function ni(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const l=r.slice(i,n).trim();(l||!a)&&t.push(l),i=n+1,n=r.indexOf(",",i)}return t}function go(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const yo=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vo=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bo={};function ii(e,t){return(bo.jsx?vo:yo).test(e)}const xo=/[ \t\n\f\r]/g;function wo(e){return typeof e=="object"?e.type==="text"?ai(e.value):!1:ai(e)}function ai(e){return e.replace(xo,"")===""}class kr{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}kr.prototype.property={};kr.prototype.normal={};kr.prototype.space=null;function _a(e,t){const r={},n={};let i=-1;for(;++i4&&r.slice(0,4)==="data"&&To.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(si,Eo);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!si.test(a)){let l=a.replace(Mo,Co);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=y0}return new i(n,t)}function Co(e){return"-"+e.toLowerCase()}function Eo(e){return e.charAt(1).toUpperCase()}const Do={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},el=_a([Ya,Wa,Za,Qa,Ao],"html"),rn=_a([Ya,Wa,Za,Qa,zo],"svg");function Kn(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Io(e){return e.join(" ").trim()}var tl={},oi=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,No=/\n/g,Bo=/^\s*/,Fo=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Lo=/^:\s*/,Ro=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Po=/^[;\s]*/,Oo=/^\s+|\s+$/g,qo=` +`,ui="/",ci="*",Ot="",Ho="comment",Vo="declaration",jo=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(v){var x=v.match(No);x&&(r+=x.length);var M=v.lastIndexOf(qo);n=~M?v.length-M:n+v.length}function a(){var v={line:r,column:n};return function(x){return x.position=new l(v),u(),x}}function l(v){this.start=v,this.end={line:r,column:n},this.source=t.source}l.prototype.content=e;function s(v){var x=new Error(t.source+":"+r+":"+n+": "+v);if(x.reason=v,x.filename=t.source,x.line=r,x.column=n,x.source=e,!t.silent)throw x}function o(v){var x=v.exec(e);if(x){var M=x[0];return i(M),e=e.slice(M.length),x}}function u(){o(Bo)}function m(v){var x;for(v=v||[];x=h();)x!==!1&&v.push(x);return v}function h(){var v=a();if(!(ui!=e.charAt(0)||ci!=e.charAt(1))){for(var x=2;Ot!=e.charAt(x)&&(ci!=e.charAt(x)||ui!=e.charAt(x+1));)++x;if(x+=2,Ot===e.charAt(x-1))return s("End of comment missing");var M=e.slice(2,x-2);return n+=2,i(M),e=e.slice(x),n+=2,v({type:Ho,comment:M})}}function g(){var v=a(),x=o(Fo);if(x){if(h(),!o(Lo))return s("property missing ':'");var M=o(Ro),A=v({type:Vo,property:hi(x[0].replace(oi,Ot)),value:M?hi(M[0].replace(oi,Ot)):Ot});return o(Po),A}}function p(){var v=[];m(v);for(var x;x=g();)x!==!1&&(v.push(x),m(v));return v}return u(),p()};function hi(e){return e?e.replace(Oo,Ot):Ot}var $o=ri&&ri.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(tl,"__esModule",{value:!0});var mi=tl.default=_o,Uo=$o(jo);function _o(e,t){var r=null;if(!e||typeof e!="string")return r;var n=(0,Uo.default)(e),i=typeof t=="function";return n.forEach(function(a){if(a.type==="declaration"){var l=a.property,s=a.value;i?t(l,s,a):s&&(r=r||{},r[l]=s)}}),r}const Go=mi.default||mi,rl=nl("end"),v0=nl("start");function nl(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Wo(e){const t=v0(e),r=rl(e);if(t&&r)return{start:t,end:r}}function fr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?fi(e.position):"start"in e||"end"in e?fi(e):"line"in e||"column"in e?Zn(e):""}function Zn(e){return pi(e&&e.line)+":"+pi(e&&e.column)}function fi(e){return Zn(e&&e.start)+"-"+Zn(e&&e.end)}function pi(e){return e&&typeof e=="number"?e:1}class Ee extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},l=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(l=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const o=n.indexOf(":");o===-1?a.ruleId=n:(a.source=n.slice(0,o),a.ruleId=n.slice(o+1))}if(!a.place&&a.ancestors&&a.ancestors){const o=a.ancestors[a.ancestors.length-1];o&&(a.place=o.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=fr(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=l&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ee.prototype.file="";Ee.prototype.name="";Ee.prototype.reason="";Ee.prototype.message="";Ee.prototype.stack="";Ee.prototype.column=void 0;Ee.prototype.line=void 0;Ee.prototype.ancestors=void 0;Ee.prototype.cause=void 0;Ee.prototype.fatal=void 0;Ee.prototype.place=void 0;Ee.prototype.ruleId=void 0;Ee.prototype.source=void 0;const b0={}.hasOwnProperty,Yo=new Map,Xo=/[A-Z]/g,Ko=/-([a-z])/g,Zo=new Set(["table","tbody","thead","tfoot","tr"]),Qo=new Set(["td","th"]),il="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Jo(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=su(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=lu(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?rn:el,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=al(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function al(e,t,r){if(t.type==="element")return eu(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return tu(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return nu(e,t,r);if(t.type==="mdxjsEsm")return ru(e,t);if(t.type==="root")return iu(e,t,r);if(t.type==="text")return au(e,t)}function eu(e,t,r){const n=e.schema;let i=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=rn,e.schema=i),e.ancestors.push(t);const a=sl(e,t.tagName,!1),l=ou(e,t);let s=w0(e,t);return Zo.has(t.tagName)&&(s=s.filter(function(o){return typeof o=="string"?!wo(o):!0})),ll(e,l,a,t),x0(l,s),e.ancestors.pop(),e.schema=n,e.create(t,a,l,r)}function tu(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}vr(e,t.position)}function ru(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);vr(e,t.position)}function nu(e,t,r){const n=e.schema;let i=n;t.name==="svg"&&n.space==="html"&&(i=rn,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:sl(e,t.name,!0),l=uu(e,t),s=w0(e,t);return ll(e,l,a,t),x0(l,s),e.ancestors.pop(),e.schema=n,e.create(t,a,l,r)}function iu(e,t,r){const n={};return x0(n,w0(e,t)),e.create(t,e.Fragment,n,r)}function au(e,t){return t.value}function ll(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function x0(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function lu(e,t,r){return n;function n(i,a,l,s){const u=Array.isArray(l.children)?r:t;return s?u(a,l,s):u(a,l)}}function su(e,t){return r;function r(n,i,a,l){const s=Array.isArray(a.children),o=v0(n);return t(i,a,l,s,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}function ou(e,t){const r={};let n,i;for(i in t.properties)if(i!=="children"&&b0.call(t.properties,i)){const a=cu(e,i,t.properties[i]);if(a){const[l,s]=a;e.tableCellAlignToStyle&&l==="align"&&typeof s=="string"&&Qo.has(t.tagName)?n=s:r[l]=s}}if(n){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function uu(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const a=n.data.estree.body[0];a.type;const l=a.expression;l.type;const s=l.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else vr(e,t.position);else{const i=n.name;let a;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const s=n.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else vr(e,t.position);else a=n.value===null?!0:n.value;r[i]=a}return r}function w0(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Yo;for(;++ni?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)l=Array.from(n),l.unshift(t,r),e.splice(...l);else for(r&&e.splice(t,r);a0?(Ue(e,e.length,0,t),e):t}const yi={}.hasOwnProperty;function ul(e){const t={};let r=-1;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function it(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Be=Dt(/[A-Za-z]/),Ce=Dt(/[\dA-Za-z]/),xu=Dt(/[#-'*+\--9=?A-Z^-~]/);function Gr(e){return e!==null&&(e<32||e===127)}const Qn=Dt(/\d/),wu=Dt(/[\dA-Fa-f]/),ku=Dt(/[!-/:-@[-`{-~]/);function W(e){return e!==null&&e<-2}function ce(e){return e!==null&&(e<0||e===32)}function ae(e){return e===-2||e===-1||e===32}const nn=Dt(/\p{P}|\p{S}/u),Ht=Dt(/\s/);function Dt(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function tr(e){const t=[];let r=-1,n=0,i=0;for(;++r55295&&a<57344){const s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(l=String.fromCharCode(a,s),i=1):l="�"}else l=String.fromCharCode(a);l&&(t.push(e.slice(n,r),encodeURIComponent(l)),n=r+i+1,l=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function ie(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return l;function l(o){return ae(o)?(e.enter(r),s(o)):t(o)}function s(o){return ae(o)&&a++l))return;const $=t.events.length;let Z=$,_,I;for(;Z--;)if(t.events[Z][0]==="exit"&&t.events[Z][1].type==="chunkFlow"){if(_){I=t.events[Z][1].end;break}_=!0}for(A(n),E=$;ED;){const R=r[q];t.containerState=R[1],R[0].exit.call(t,e)}r.length=D}function T(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Mu(e,t,r){return ie(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Qt(e){if(e===null||ce(e)||Ht(e))return 1;if(nn(e))return 2}function an(e,t,r){const n=[];let i=-1;for(;++i1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const h={...e[n][1].end},g={...e[r][1].start};bi(h,-o),bi(g,o),l={type:o>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},s={type:o>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:g},a={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:o>1?"strong":"emphasis",start:{...l.start},end:{...s.end}},e[n][1].end={...l.start},e[r][1].start={...s.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=We(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=We(u,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",a,t]]),u=We(u,an(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=We(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,u=We(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):m=0,Ue(e,n-1,r-n+3,u),r=n+u.length-m-2;break}}for(r=-1;++r0&&ae(E)?ie(e,T,"linePrefix",a+1)(E):T(E)}function T(E){return E===null||W(E)?e.check(xi,x,q)(E):(e.enter("codeFlowValue"),D(E))}function D(E){return E===null||W(E)?(e.exit("codeFlowValue"),T(E)):(e.consume(E),D)}function q(E){return e.exit("codeFenced"),t(E)}function R(E,$,Z){let _=0;return I;function I(J){return E.enter("lineEnding"),E.consume(J),E.exit("lineEnding"),U}function U(J){return E.enter("codeFencedFence"),ae(J)?ie(E,V,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):V(J)}function V(J){return J===s?(E.enter("codeFencedFenceSequence"),le(J)):Z(J)}function le(J){return J===s?(_++,E.consume(J),le):_>=l?(E.exit("codeFencedFenceSequence"),ae(J)?ie(E,ne,"whitespace")(J):ne(J)):Z(J)}function ne(J){return J===null||W(J)?(E.exit("codeFencedFence"),$(J)):Z(J)}}}function qu(e,t,r){const n=this;return i;function i(l){return l===null?r(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a)}function a(l){return n.parser.lazy[n.now().line]?r(l):t(l)}}const wn={name:"codeIndented",tokenize:Vu},Hu={partial:!0,tokenize:ju};function Vu(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),ie(e,a,"linePrefix",5)(u)}function a(u){const m=n.events[n.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?l(u):r(u)}function l(u){return u===null?o(u):W(u)?e.attempt(Hu,l,o)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||W(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),s)}function o(u){return e.exit("codeIndented"),t(u)}}function ju(e,t,r){const n=this;return i;function i(l){return n.parser.lazy[n.now().line]?r(l):W(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):ie(e,a,"linePrefix",5)(l)}function a(l){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(l):W(l)?i(l):r(l)}}const $u={name:"codeText",previous:_u,resolve:Uu,tokenize:Gu};function Uu(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const i=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&ur(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ur(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ur(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(l):e.interrupt(n.parser.constructs.flow,r,t)(l)}}function dl(e,t,r,n,i,a,l,s,o){const u=o||Number.POSITIVE_INFINITY;let m=0;return h;function h(A){return A===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(A),e.exit(a),g):A===null||A===32||A===41||Gr(A)?r(A):(e.enter(n),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),x(A))}function g(A){return A===62?(e.enter(a),e.consume(A),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(A))}function p(A){return A===62?(e.exit("chunkString"),e.exit(s),g(A)):A===null||A===60||W(A)?r(A):(e.consume(A),A===92?v:p)}function v(A){return A===60||A===62||A===92?(e.consume(A),p):p(A)}function x(A){return!m&&(A===null||A===41||ce(A))?(e.exit("chunkString"),e.exit(s),e.exit(l),e.exit(n),t(A)):m999||p===null||p===91||p===93&&!o||p===94&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?r(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(n),t):W(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===null||p===91||p===93||W(p)||s++>999?(e.exit("chunkString"),m(p)):(e.consume(p),o||(o=!ae(p)),p===92?g:h)}function g(p){return p===91||p===92||p===93?(e.consume(p),s++,h):h(p)}}function yl(e,t,r,n,i,a){let l;return s;function s(g){return g===34||g===39||g===40?(e.enter(n),e.enter(i),e.consume(g),e.exit(i),l=g===40?41:g,o):r(g)}function o(g){return g===l?(e.enter(i),e.consume(g),e.exit(i),e.exit(n),t):(e.enter(a),u(g))}function u(g){return g===l?(e.exit(a),o(l)):g===null?r(g):W(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),ie(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(g))}function m(g){return g===l||g===null||W(g)?(e.exit("chunkString"),u(g)):(e.consume(g),g===92?h:m)}function h(g){return g===l||g===92?(e.consume(g),m):m(g)}}function pr(e,t){let r;return n;function n(i){return W(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):ae(i)?ie(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const e1={name:"definition",tokenize:r1},t1={partial:!0,tokenize:n1};function r1(e,t,r){const n=this;let i;return a;function a(p){return e.enter("definition"),l(p)}function l(p){return gl.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=it(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),o):r(p)}function o(p){return ce(p)?pr(e,u)(p):u(p)}function u(p){return dl(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function m(p){return e.attempt(t1,h,h)(p)}function h(p){return ae(p)?ie(e,g,"whitespace")(p):g(p)}function g(p){return p===null||W(p)?(e.exit("definition"),n.parser.defined.push(i),t(p)):r(p)}}function n1(e,t,r){return n;function n(s){return ce(s)?pr(e,i)(s):r(s)}function i(s){return yl(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return ae(s)?ie(e,l,"whitespace")(s):l(s)}function l(s){return s===null||W(s)?t(s):r(s)}}const i1={name:"hardBreakEscape",tokenize:a1};function a1(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return W(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const l1={name:"headingAtx",resolve:s1,tokenize:o1};function s1(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Ue(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function o1(e,t,r){let n=0;return i;function i(m){return e.enter("atxHeading"),a(m)}function a(m){return e.enter("atxHeadingSequence"),l(m)}function l(m){return m===35&&n++<6?(e.consume(m),l):m===null||ce(m)?(e.exit("atxHeadingSequence"),s(m)):r(m)}function s(m){return m===35?(e.enter("atxHeadingSequence"),o(m)):m===null||W(m)?(e.exit("atxHeading"),t(m)):ae(m)?ie(e,s,"whitespace")(m):(e.enter("atxHeadingText"),u(m))}function o(m){return m===35?(e.consume(m),o):(e.exit("atxHeadingSequence"),s(m))}function u(m){return m===null||m===35||ce(m)?(e.exit("atxHeadingText"),s(m)):(e.consume(m),u)}}const u1=["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"],ki=["pre","script","style","textarea"],c1={concrete:!0,name:"htmlFlow",resolveTo:f1,tokenize:p1},h1={partial:!0,tokenize:g1},m1={partial:!0,tokenize:d1};function f1(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function p1(e,t,r){const n=this;let i,a,l,s,o;return u;function u(S){return m(S)}function m(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),h}function h(S){return S===33?(e.consume(S),g):S===47?(e.consume(S),a=!0,x):S===63?(e.consume(S),i=3,n.interrupt?t:k):Be(S)?(e.consume(S),l=String.fromCharCode(S),M):r(S)}function g(S){return S===45?(e.consume(S),i=2,p):S===91?(e.consume(S),i=5,s=0,v):Be(S)?(e.consume(S),i=4,n.interrupt?t:k):r(S)}function p(S){return S===45?(e.consume(S),n.interrupt?t:k):r(S)}function v(S){const De="CDATA[";return S===De.charCodeAt(s++)?(e.consume(S),s===De.length?n.interrupt?t:V:v):r(S)}function x(S){return Be(S)?(e.consume(S),l=String.fromCharCode(S),M):r(S)}function M(S){if(S===null||S===47||S===62||ce(S)){const De=S===47,Re=l.toLowerCase();return!De&&!a&&ki.includes(Re)?(i=1,n.interrupt?t(S):V(S)):u1.includes(l.toLowerCase())?(i=6,De?(e.consume(S),A):n.interrupt?t(S):V(S)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(S):a?T(S):D(S))}return S===45||Ce(S)?(e.consume(S),l+=String.fromCharCode(S),M):r(S)}function A(S){return S===62?(e.consume(S),n.interrupt?t:V):r(S)}function T(S){return ae(S)?(e.consume(S),T):I(S)}function D(S){return S===47?(e.consume(S),I):S===58||S===95||Be(S)?(e.consume(S),q):ae(S)?(e.consume(S),D):I(S)}function q(S){return S===45||S===46||S===58||S===95||Ce(S)?(e.consume(S),q):R(S)}function R(S){return S===61?(e.consume(S),E):ae(S)?(e.consume(S),R):D(S)}function E(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(e.consume(S),o=S,$):ae(S)?(e.consume(S),E):Z(S)}function $(S){return S===o?(e.consume(S),o=null,_):S===null||W(S)?r(S):(e.consume(S),$)}function Z(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||ce(S)?R(S):(e.consume(S),Z)}function _(S){return S===47||S===62||ae(S)?D(S):r(S)}function I(S){return S===62?(e.consume(S),U):r(S)}function U(S){return S===null||W(S)?V(S):ae(S)?(e.consume(S),U):r(S)}function V(S){return S===45&&i===2?(e.consume(S),pe):S===60&&i===1?(e.consume(S),de):S===62&&i===4?(e.consume(S),ke):S===63&&i===3?(e.consume(S),k):S===93&&i===5?(e.consume(S),He):W(S)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(h1,be,le)(S)):S===null||W(S)?(e.exit("htmlFlowData"),le(S)):(e.consume(S),V)}function le(S){return e.check(m1,ne,be)(S)}function ne(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),J}function J(S){return S===null||W(S)?le(S):(e.enter("htmlFlowData"),V(S))}function pe(S){return S===45?(e.consume(S),k):V(S)}function de(S){return S===47?(e.consume(S),l="",Me):V(S)}function Me(S){if(S===62){const De=l.toLowerCase();return ki.includes(De)?(e.consume(S),ke):V(S)}return Be(S)&&l.length<8?(e.consume(S),l+=String.fromCharCode(S),Me):V(S)}function He(S){return S===93?(e.consume(S),k):V(S)}function k(S){return S===62?(e.consume(S),ke):S===45&&i===2?(e.consume(S),k):V(S)}function ke(S){return S===null||W(S)?(e.exit("htmlFlowData"),be(S)):(e.consume(S),ke)}function be(S){return e.exit("htmlFlow"),t(S)}}function d1(e,t,r){const n=this;return i;function i(l){return W(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):r(l)}function a(l){return n.parser.lazy[n.now().line]?r(l):t(l)}}function g1(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Sr,t,r)}}const y1={name:"htmlText",tokenize:v1};function v1(e,t,r){const n=this;let i,a,l;return s;function s(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),o}function o(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),R):k===63?(e.consume(k),D):Be(k)?(e.consume(k),Z):r(k)}function u(k){return k===45?(e.consume(k),m):k===91?(e.consume(k),a=0,v):Be(k)?(e.consume(k),T):r(k)}function m(k){return k===45?(e.consume(k),p):r(k)}function h(k){return k===null?r(k):k===45?(e.consume(k),g):W(k)?(l=h,de(k)):(e.consume(k),h)}function g(k){return k===45?(e.consume(k),p):h(k)}function p(k){return k===62?pe(k):k===45?g(k):h(k)}function v(k){const ke="CDATA[";return k===ke.charCodeAt(a++)?(e.consume(k),a===ke.length?x:v):r(k)}function x(k){return k===null?r(k):k===93?(e.consume(k),M):W(k)?(l=x,de(k)):(e.consume(k),x)}function M(k){return k===93?(e.consume(k),A):x(k)}function A(k){return k===62?pe(k):k===93?(e.consume(k),A):x(k)}function T(k){return k===null||k===62?pe(k):W(k)?(l=T,de(k)):(e.consume(k),T)}function D(k){return k===null?r(k):k===63?(e.consume(k),q):W(k)?(l=D,de(k)):(e.consume(k),D)}function q(k){return k===62?pe(k):D(k)}function R(k){return Be(k)?(e.consume(k),E):r(k)}function E(k){return k===45||Ce(k)?(e.consume(k),E):$(k)}function $(k){return W(k)?(l=$,de(k)):ae(k)?(e.consume(k),$):pe(k)}function Z(k){return k===45||Ce(k)?(e.consume(k),Z):k===47||k===62||ce(k)?_(k):r(k)}function _(k){return k===47?(e.consume(k),pe):k===58||k===95||Be(k)?(e.consume(k),I):W(k)?(l=_,de(k)):ae(k)?(e.consume(k),_):pe(k)}function I(k){return k===45||k===46||k===58||k===95||Ce(k)?(e.consume(k),I):U(k)}function U(k){return k===61?(e.consume(k),V):W(k)?(l=U,de(k)):ae(k)?(e.consume(k),U):_(k)}function V(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(e.consume(k),i=k,le):W(k)?(l=V,de(k)):ae(k)?(e.consume(k),V):(e.consume(k),ne)}function le(k){return k===i?(e.consume(k),i=void 0,J):k===null?r(k):W(k)?(l=le,de(k)):(e.consume(k),le)}function ne(k){return k===null||k===34||k===39||k===60||k===61||k===96?r(k):k===47||k===62||ce(k)?_(k):(e.consume(k),ne)}function J(k){return k===47||k===62||ce(k)?_(k):r(k)}function pe(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):r(k)}function de(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),Me}function Me(k){return ae(k)?ie(e,He,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):He(k)}function He(k){return e.enter("htmlTextData"),l(k)}}const A0={name:"labelEnd",resolveAll:k1,resolveTo:S1,tokenize:A1},b1={tokenize:z1},x1={tokenize:T1},w1={tokenize:M1};function k1(e){let t=-1;const r=[];for(;++t=3&&(u===null||W(u))?(e.exit("thematicBreak"),t(u)):r(u)}function o(u){return u===i?(e.consume(u),n++,o):(e.exit("thematicBreakSequence"),ae(u)?ie(e,s,"whitespace")(u):s(u))}}const Pe={continuation:{tokenize:P1},exit:q1,name:"list",tokenize:R1},F1={partial:!0,tokenize:H1},L1={partial:!0,tokenize:O1};function R1(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return s;function s(p){const v=n.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!n.containerState.marker||p===n.containerState.marker:Qn(p)){if(n.containerState.type||(n.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(jr,r,u)(p):u(p);if(!n.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(p)}return r(p)}function o(p){return Qn(p)&&++l<10?(e.consume(p),o):(!n.interrupt||l<2)&&(n.containerState.marker?p===n.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):r(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||p,e.check(Sr,n.interrupt?r:m,e.attempt(F1,g,h))}function m(p){return n.containerState.initialBlankLine=!0,a++,g(p)}function h(p){return ae(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),g):r(p)}function g(p){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function P1(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(Sr,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ie(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!ae(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,l(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(L1,t,l)(s))}function l(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,ie(e,e.attempt(Pe,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function O1(e,t,r){const n=this;return ie(e,i,"listItemIndent",n.containerState.size+1);function i(a){const l=n.events[n.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===n.containerState.size?t(a):r(a)}}function q1(e){e.exit(this.containerState.type)}function H1(e,t,r){const n=this;return ie(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const l=n.events[n.events.length-1];return!ae(a)&&l&&l[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const Si={name:"setextUnderline",resolveTo:V1,tokenize:j1};function V1(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const l={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",l,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=l,e.push(["exit",l,t]),e}function j1(e,t,r){const n=this;let i;return a;function a(u){let m=n.events.length,h;for(;m--;)if(n.events[m][1].type!=="lineEnding"&&n.events[m][1].type!=="linePrefix"&&n.events[m][1].type!=="content"){h=n.events[m][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||h)?(e.enter("setextHeadingLine"),i=u,l(u)):r(u)}function l(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),ae(u)?ie(e,o,"lineSuffix")(u):o(u))}function o(u){return u===null||W(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const $1={tokenize:U1};function U1(e){const t=this,r=e.attempt(Sr,n,e.attempt(this.parser.constructs.flowInitial,i,ie(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Xu,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const _1={resolveAll:bl()},G1=vl("string"),W1=vl("text");function vl(e){return{resolveAll:bl(e==="text"?Y1:void 0),tokenize:t};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,l,s);return l;function l(m){return u(m)?a(m):s(m)}function s(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),o}function o(m){return u(m)?(r.exit("data"),a(m)):(r.consume(m),o)}function u(m){if(m===null)return!0;const h=i[m];let g=-1;if(h)for(;++g-1){const s=l[0];typeof s=="string"?l[0]=s.slice(n):l.shift()}a>0&&l.push(e[i].slice(0,a))}return l}function sc(e,t){let r=-1;const n=[];let i;for(;++r0){const rt=ee.tokenStack[ee.tokenStack.length-1];(rt[1]||zi).call(ee,void 0,rt[0])}for(H.position={start:St(N.length>0?N[0][1].start:{line:1,column:1,offset:0}),end:St(N.length>0?N[N.length-2][1].end:{line:1,column:1,offset:0})},ue=-1;++ue1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,o);const u={type:"element",tagName:"sup",properties:{},children:[o]};return e.patch(t,u),e.applyData(t,u)}function Ac(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function zc(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function kl(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=n:i.push({type:"text",value:n}),i}function Tc(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return kl(e,t);const i={src:tr(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Mc(e,t){const r={src:tr(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function Cc(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function Ec(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return kl(e,t);const i={href:tr(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Dc(e,t){const r={href:tr(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ic(e,t,r){const n=e.all(t),i=r?Nc(r):Sl(t),a={},l=[];if(typeof t.checked=="boolean"){const m=n[0];let h;m&&m.type==="element"&&m.tagName==="p"?h=m:(h={type:"element",tagName:"p",properties:{},children:[]},n.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function Bc(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=v0(t.children[1]),o=rl(t.children[t.children.length-1]);s&&o&&(l.position={start:s,end:o}),i.push(l)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Oc(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",l=r&&r.type==="table"?r.align:void 0,s=l?l.length:t.children.length;let o=-1;const u=[];for(;++o0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(Ci(t.slice(i),i>0,!1)),a.join("")}function Ci(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===Ti||a===Mi;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===Ti||a===Mi;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Vc(e,t){const r={type:"text",value:Hc(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function jc(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const $c={blockquote:vc,break:bc,code:xc,delete:wc,emphasis:kc,footnoteReference:Sc,heading:Ac,html:zc,imageReference:Tc,image:Mc,inlineCode:Cc,linkReference:Ec,link:Dc,listItem:Ic,list:Bc,paragraph:Fc,root:Lc,strong:Rc,table:Pc,tableCell:qc,tableRow:Oc,text:Vc,thematicBreak:jc,toml:Er,yaml:Er,definition:Er,footnoteDefinition:Er};function Er(){}const Al=-1,ln=0,Wr=1,Yr=2,z0=3,T0=4,M0=5,C0=6,zl=7,Tl=8,Ei=typeof self=="object"?self:globalThis,Uc=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,l]=t[i];switch(a){case ln:case Al:return r(l,i);case Wr:{const s=r([],i);for(const o of l)s.push(n(o));return s}case Yr:{const s=r({},i);for(const[o,u]of l)s[n(o)]=n(u);return s}case z0:return r(new Date(l),i);case T0:{const{source:s,flags:o}=l;return r(new RegExp(s,o),i)}case M0:{const s=r(new Map,i);for(const[o,u]of l)s.set(n(o),n(u));return s}case C0:{const s=r(new Set,i);for(const o of l)s.add(n(o));return s}case zl:{const{name:s,message:o}=l;return r(new Ei[s](o),i)}case Tl:return r(BigInt(l),i);case"BigInt":return r(Object(BigInt(l)),i)}return r(new Ei[a](l),i)};return n},Di=e=>Uc(new Map,e)(0),Wt="",{toString:_c}={},{keys:Gc}=Object,cr=e=>{const t=typeof e;if(t!=="object"||!e)return[ln,t];const r=_c.call(e).slice(8,-1);switch(r){case"Array":return[Wr,Wt];case"Object":return[Yr,Wt];case"Date":return[z0,Wt];case"RegExp":return[T0,Wt];case"Map":return[M0,Wt];case"Set":return[C0,Wt]}return r.includes("Array")?[Wr,r]:r.includes("Error")?[zl,r]:[Yr,r]},Dr=([e,t])=>e===ln&&(t==="function"||t==="symbol"),Wc=(e,t,r,n)=>{const i=(l,s)=>{const o=n.push(l)-1;return r.set(s,o),o},a=l=>{if(r.has(l))return r.get(l);let[s,o]=cr(l);switch(s){case ln:{let m=l;switch(o){case"bigint":s=Tl,m=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);m=null;break;case"undefined":return i([Al],l)}return i([s,m],l)}case Wr:{if(o)return i([o,[...l]],l);const m=[],h=i([s,m],l);for(const g of l)m.push(a(g));return h}case Yr:{if(o)switch(o){case"BigInt":return i([o,l.toString()],l);case"Boolean":case"Number":case"String":return i([o,l.valueOf()],l)}if(t&&"toJSON"in l)return a(l.toJSON());const m=[],h=i([s,m],l);for(const g of Gc(l))(e||!Dr(cr(l[g])))&&m.push([a(g),a(l[g])]);return h}case z0:return i([s,l.toISOString()],l);case T0:{const{source:m,flags:h}=l;return i([s,{source:m,flags:h}],l)}case M0:{const m=[],h=i([s,m],l);for(const[g,p]of l)(e||!(Dr(cr(g))||Dr(cr(p))))&&m.push([a(g),a(p)]);return h}case C0:{const m=[],h=i([s,m],l);for(const g of l)(e||!Dr(cr(g)))&&m.push(a(g));return h}}const{message:u}=l;return i([s,{name:o,message:u}],l)};return a},Ii=(e,{json:t,lossy:r}={})=>{const n=[];return Wc(!(t||r),!!t,new Map,n)(e),n},qt=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Di(Ii(e,t)):structuredClone(e):(e,t)=>Di(Ii(e,t));function Yc(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Xc(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Kc(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Yc,n=e.options.footnoteBackLabel||Xc,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let o=-1;for(;++o0&&v.push({type:"text",value:" "});let T=typeof r=="string"?r:r(o,p);typeof T=="string"&&(T={type:"text",value:T}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+g+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(o,p),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const M=m[m.length-1];if(M&&M.type==="element"&&M.tagName==="p"){const T=M.children[M.children.length-1];T&&T.type==="text"?T.value+=" ":M.children.push({type:"text",value:" "}),M.children.push(...v)}else m.push(...v);const A={type:"element",tagName:"li",properties:{id:t+"fn-"+g},children:e.wrap(m,!0)};e.patch(u,A),s.push(A)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...qt(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` +`}]}}const Ar=function(e){if(e==null)return eh;if(typeof e=="function")return sn(e);if(typeof e=="object")return Array.isArray(e)?Zc(e):Qc(e);if(typeof e=="string")return Jc(e);throw new Error("Expected function, string, or object as test")};function Zc(e){const t=[];let r=-1;for(;++r":""))+")"})}return g;function g(){let p=Ml,v,x,M;if((!t||a(o,u,m[m.length-1]||void 0))&&(p=nh(r(o,m)),p[0]===e0))return p;if("children"in o&&o.children){const A=o;if(A.children&&p[0]!==Cl)for(x=(n?A.children.length:-1)+l,M=m.concat(A);x>-1&&x0&&r.push({type:"text",value:` +`}),r}function Ni(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Bi(e,t){const r=ah(e,t),n=r.one(e,void 0),i=Kc(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` +`},i),a}function ch(e,t){return e&&"run"in e?async function(r,n){const i=Bi(r,{file:n,...t});await e.run(i,n)}:function(r,n){return Bi(r,{file:n,...e||t})}}function Fi(e){if(e)throw e}var $r=Object.prototype.hasOwnProperty,El=Object.prototype.toString,Li=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor,Pi=function(t){return typeof Array.isArray=="function"?Array.isArray(t):El.call(t)==="[object Array]"},Oi=function(t){if(!t||El.call(t)!=="[object Object]")return!1;var r=$r.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&$r.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||$r.call(t,i)},qi=function(t,r){Li&&r.name==="__proto__"?Li(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},Hi=function(t,r){if(r==="__proto__")if($r.call(t,r)){if(Ri)return Ri(t,r).value}else return;return t[r]},hh=function e(){var t,r,n,i,a,l,s=arguments[0],o=1,u=arguments.length,m=!1;for(typeof s=="boolean"&&(m=s,s=arguments[1]||{},o=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});ol.length;let o;s&&l.push(i);try{o=e.apply(this,l)}catch(u){const m=u;if(s&&r)throw m;return i(m)}s||(o&&o.then&&typeof o.then=="function"?o.then(a,i):o instanceof Error?i(o):a(o))}function i(l,...s){r||(r=!0,t(l,...s))}function a(l){i(null,l)}}const at={basename:ph,dirname:dh,extname:gh,join:yh,sep:"/"};function ph(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');zr(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let l=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else l<0&&(a=!0,l=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(n=i):(s=-1,n=l));return r===n?n=l:n<0&&(n=e.length),e.slice(r,n)}function dh(e){if(zr(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function gh(e){zr(e);let t=e.length,r=-1,n=0,i=-1,a=0,l;for(;t--;){const s=e.codePointAt(t);if(s===47){if(l){n=t+1;break}continue}r<0&&(l=!0,r=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function yh(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function bh(e,t){let r="",n=0,i=-1,a=0,l=-1,s,o;for(;++l<=e.length;){if(l2){if(o=r.lastIndexOf("/"),o!==r.length-1){o<0?(r="",n=0):(r=r.slice(0,o),n=r.length-1-r.lastIndexOf("/")),i=l,a=0;continue}}else if(r.length>0){r="",n=0,i=l,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,l):r=e.slice(i+1,l),n=l-i-1;i=l,a=0}else s===46&&a>-1?a++:a=-1}return r}function zr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const xh={cwd:wh};function wh(){return"/"}function n0(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kh(e){if(typeof e=="string")e=new URL(e);else if(!n0(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Sh(e)}function Sh(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r0){let[p,...v]=m;const x=n[g][1];r0(x)&&r0(p)&&(p=Sn(!0,x,p)),n[g]=[u,p,...v]}}}}const Mh=new D0().freeze();function Mn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Cn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function En(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ji(e){if(!r0(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function $i(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ir(e){return Ch(e)?e:new Dl(e)}function Ch(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Eh(e){return typeof e=="string"||Dh(e)}function Dh(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ih="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ui=[],_i={allowDangerousHtml:!0},Nh=/^(https?|ircs?|mailto|xmpp)$/i,Bh=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Lp(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,l=e.disallowedElements,s=e.rehypePlugins||Ui,o=e.remarkPlugins||Ui,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,..._i}:_i,m=e.skipHtml,h=e.unwrapDisallowed,g=e.urlTransform||Fh,p=Mh().use(yc).use(o).use(ch,u).use(s),v=new Dl;typeof n=="string"&&(v.value=n);for(const T of Bh)Object.hasOwn(e,T.from)&&(""+T.from+(T.to?"use `"+T.to+"` instead":"remove it")+Ih+T.id,void 0);const x=p.parse(v);let M=p.runSync(x,v);return i&&(M={type:"element",tagName:"div",properties:{className:i},children:M.type==="root"?M.children:[M]}),on(M,A),Jo(M,{Fragment:vn.Fragment,components:a,ignoreInvalidStyle:!0,jsx:vn.jsx,jsxs:vn.jsxs,passKeys:!0,passNode:!0});function A(T,D,q){if(T.type==="raw"&&q&&typeof D=="number")return m?q.children.splice(D,1):q.children[D]={type:"text",value:T.value},D;if(T.type==="element"){let R;for(R in xn)if(Object.hasOwn(xn,R)&&Object.hasOwn(T.properties,R)){const E=T.properties[R],$=xn[R];($===null||$.includes(T.tagName))&&(T.properties[R]=g(String(E||""),R,T))}}if(T.type==="element"){let R=t?!t.includes(T.tagName):l?l.includes(T.tagName):!1;if(!R&&r&&typeof D=="number"&&(R=!r(T,D,q)),R&&q&&typeof D=="number")return h&&T.children?q.children.splice(D,1,...T.children):q.children.splice(D,1),D}}}function Fh(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||r>-1&&t>r||n>-1&&t>n||Nh.test(e.slice(0,t))?e:""}function Gi(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}function Lh(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Rh(e,t,r){const i=Ar(r.ignore||[]),a=Ph(t);let l=-1;for(;++l0?{type:"text",value:E}:void 0),E===!1?g.lastIndex=q+1:(v!==q&&T.push({type:"text",value:u.value.slice(v,q)}),Array.isArray(E)?T.push(...E):E&&T.push(E),v=q+D[0].length,A=!0),!g.global)break;D=g.exec(u.value)}return A?(v?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=Gi(e,"(");let a=Gi(e,")");for(;n!==-1&&i>a;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),a++;return[e,r]}function Il(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Ht(r)||nn(r))&&(!t||r!==47)}Nl.peek=o4;function Qh(){return{enter:{gfmFootnoteDefinition:e4,gfmFootnoteDefinitionLabelString:t4,gfmFootnoteCall:i4,gfmFootnoteCallString:a4},exit:{gfmFootnoteDefinition:n4,gfmFootnoteDefinitionLabelString:r4,gfmFootnoteCall:s4,gfmFootnoteCallString:l4}}}function Jh(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:u4,footnoteReference:Nl}}}function e4(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function t4(){this.buffer()}function r4(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=it(this.sliceSerialize(e)).toLowerCase()}function n4(e){this.exit(e)}function i4(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function a4(){this.buffer()}function l4(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=it(this.sliceSerialize(e)).toLowerCase()}function s4(e){this.exit(e)}function Nl(e,t,r,n){const i=r.createTracker(n);let a=i.move("[^");const l=r.enter("footnoteReference"),s=r.enter("reference");return a+=i.move(r.safe(r.associationId(e),{...i.current(),before:a,after:"]"})),s(),l(),a+=i.move("]"),a}function o4(){return"["}function u4(e,t,r,n){const i=r.createTracker(n);let a=i.move("[^");const l=r.enter("footnoteDefinition"),s=r.enter("label");return a+=i.move(r.safe(r.associationId(e),{...i.current(),before:a,after:"]"})),s(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(r.indentLines(r.containerFlow(e,i.current()),c4)),l(),a}function c4(e,t,r){return t===0?e:(r?"":" ")+e}const h4=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Bl.peek=g4;function m4(){return{canContainEols:["delete"],enter:{strikethrough:p4},exit:{strikethrough:d4}}}function f4(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:h4}],handlers:{delete:Bl}}}function p4(e){this.enter({type:"delete",children:[]},e)}function d4(e){this.exit(e)}function Bl(e,t,r,n){const i=r.createTracker(n),a=r.enter("strikethrough");let l=i.move("~~");return l+=r.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),a(),l}function g4(){return"~"}function y4(e){return e.length}function v4(e,t){const r=t,n=(r.align||[]).concat(),i=r.stringLength||y4,a=[],l=[],s=[],o=[];let u=0,m=-1;for(;++mu&&(u=e[m].length);++Ao[A])&&(o[A]=D)}x.push(T)}l[m]=x,s[m]=M}let h=-1;if(typeof n=="object"&&"length"in n)for(;++ho[h]&&(o[h]=T),p[h]=T),g[h]=D}l.splice(1,0,g),s.splice(1,0,p),m=-1;const v=[];for(;++m "),a.shift(2);const l=r.indentLines(r.containerFlow(e,a.current()),w4);return i(),l}function w4(e,t,r){return">"+(r?"":" ")+e}function k4(e,t){return Yi(e,t.inConstruct,!0)&&!Yi(e,t.notInConstruct,!1)}function Yi(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++nl&&(l=a):a=1,i=n+t.length,n=r.indexOf(t,i);return l}function S4(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function A4(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function z4(e,t,r,n){const i=A4(r),a=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(S4(e,r)){const h=r.enter("codeIndented"),g=r.indentLines(a,T4);return h(),g}const s=r.createTracker(n),o=i.repeat(Math.max(Fl(a,i)+1,3)),u=r.enter("codeFenced");let m=s.move(o);if(e.lang){const h=r.enter(`codeFencedLang${l}`);m+=s.move(r.safe(e.lang,{before:m,after:" ",encode:["`"],...s.current()})),h()}if(e.lang&&e.meta){const h=r.enter(`codeFencedMeta${l}`);m+=s.move(" "),m+=s.move(r.safe(e.meta,{before:m,after:` +`,encode:["`"],...s.current()})),h()}return m+=s.move(` +`),a&&(m+=s.move(a+` +`)),m+=s.move(o),u(),m}function T4(e,t,r){return(r?"":" ")+e}function I0(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function M4(e,t,r,n){const i=I0(r),a=i==='"'?"Quote":"Apostrophe",l=r.enter("definition");let s=r.enter("label");const o=r.createTracker(n);let u=o.move("[");return u+=o.move(r.safe(r.associationId(e),{before:u,after:"]",...o.current()})),u+=o.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(r.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(s=r.enter("destinationRaw"),u+=o.move(r.safe(e.url,{before:u,after:e.title?" ":` +`,...o.current()}))),s(),e.title&&(s=r.enter(`title${a}`),u+=o.move(" "+i),u+=o.move(r.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),s()),l(),u}function C4(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function br(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Xr(e,t,r){const n=Qt(e),i=Qt(t);return n===void 0?i===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ll.peek=E4;function Ll(e,t,r,n){const i=C4(r),a=r.enter("emphasis"),l=r.createTracker(n),s=l.move(i);let o=l.move(r.containerPhrasing(e,{after:i,before:s,...l.current()}));const u=o.charCodeAt(0),m=Xr(n.before.charCodeAt(n.before.length-1),u,i);m.inside&&(o=br(u)+o.slice(1));const h=o.charCodeAt(o.length-1),g=Xr(n.after.charCodeAt(0),h,i);g.inside&&(o=o.slice(0,-1)+br(h));const p=l.move(i);return a(),r.attentionEncodeSurroundingInfo={after:g.outside,before:m.outside},s+o+p}function E4(e,t,r){return r.options.emphasis||"*"}function D4(e,t){let r=!1;return on(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,e0}),!!((!e.depth||e.depth<3)&&k0(e)&&(t.options.setext||r))}function I4(e,t,r,n){const i=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(n);if(D4(e,r)){const m=r.enter("headingSetext"),h=r.enter("phrasing"),g=r.containerPhrasing(e,{...a.current(),before:` +`,after:` +`});return h(),m(),g+` +`+(i===1?"=":"-").repeat(g.length-(Math.max(g.lastIndexOf("\r"),g.lastIndexOf(` +`))+1))}const l="#".repeat(i),s=r.enter("headingAtx"),o=r.enter("phrasing");a.move(l+" ");let u=r.containerPhrasing(e,{before:"# ",after:` +`,...a.current()});return/^[\t ]/.test(u)&&(u=br(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,r.options.closeAtx&&(u+=" "+l),o(),s(),u}Rl.peek=N4;function Rl(e){return e.value||""}function N4(){return"<"}Pl.peek=B4;function Pl(e,t,r,n){const i=I0(r),a=i==='"'?"Quote":"Apostrophe",l=r.enter("image");let s=r.enter("label");const o=r.createTracker(n);let u=o.move("![");return u+=o.move(r.safe(e.alt,{before:u,after:"]",...o.current()})),u+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(r.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(s=r.enter("destinationRaw"),u+=o.move(r.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=r.enter(`title${a}`),u+=o.move(" "+i),u+=o.move(r.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),s()),u+=o.move(")"),l(),u}function B4(){return"!"}Ol.peek=F4;function Ol(e,t,r,n){const i=e.referenceType,a=r.enter("imageReference");let l=r.enter("label");const s=r.createTracker(n);let o=s.move("![");const u=r.safe(e.alt,{before:o,after:"]",...s.current()});o+=s.move(u+"]["),l();const m=r.stack;r.stack=[],l=r.enter("reference");const h=r.safe(r.associationId(e),{before:o,after:"]",...s.current()});return l(),r.stack=m,a(),i==="full"||!u||u!==h?o+=s.move(h+"]"):i==="shortcut"?o=o.slice(0,-1):o+=s.move("]"),o}function F4(){return"!"}ql.peek=L4;function ql(e,t,r){let n=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++a\u007F]/.test(e.url))}Vl.peek=R4;function Vl(e,t,r,n){const i=I0(r),a=i==='"'?"Quote":"Apostrophe",l=r.createTracker(n);let s,o;if(Hl(e,r)){const m=r.stack;r.stack=[],s=r.enter("autolink");let h=l.move("<");return h+=l.move(r.containerPhrasing(e,{before:h,after:">",...l.current()})),h+=l.move(">"),s(),r.stack=m,h}s=r.enter("link"),o=r.enter("label");let u=l.move("[");return u+=l.move(r.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=r.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(r.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),s(),u}function R4(e,t,r){return Hl(e,r)?"<":"["}jl.peek=P4;function jl(e,t,r,n){const i=e.referenceType,a=r.enter("linkReference");let l=r.enter("label");const s=r.createTracker(n);let o=s.move("[");const u=r.containerPhrasing(e,{before:o,after:"]",...s.current()});o+=s.move(u+"]["),l();const m=r.stack;r.stack=[],l=r.enter("reference");const h=r.safe(r.associationId(e),{before:o,after:"]",...s.current()});return l(),r.stack=m,a(),i==="full"||!u||u!==h?o+=s.move(h+"]"):i==="shortcut"?o=o.slice(0,-1):o+=s.move("]"),o}function P4(){return"["}function N0(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function O4(e){const t=N0(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function q4(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function $l(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function H4(e,t,r,n){const i=r.enter("list"),a=r.bulletCurrent;let l=e.ordered?q4(r):N0(r);const s=e.ordered?l==="."?")":".":O4(r);let o=t&&r.bulletLastUsed?l===r.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&m&&(!m.children||!m.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(o=!0),$l(r)===l&&m){let h=-1;for(;++h-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let l=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const s=r.createTracker(n);s.move(a+" ".repeat(l-a.length)),s.shift(l);const o=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,s.current()),m);return o(),u;function m(h,g,p){return g?(p?"":" ".repeat(l))+h:(p?a:a+" ".repeat(l-a.length))+h}}function $4(e,t,r,n){const i=r.enter("paragraph"),a=r.enter("phrasing"),l=r.containerPhrasing(e,n);return a(),i(),l}const U4=Ar(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function _4(e,t,r,n){return(e.children.some(function(l){return U4(l)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function G4(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Ul.peek=W4;function Ul(e,t,r,n){const i=G4(r),a=r.enter("strong"),l=r.createTracker(n),s=l.move(i+i);let o=l.move(r.containerPhrasing(e,{after:i,before:s,...l.current()}));const u=o.charCodeAt(0),m=Xr(n.before.charCodeAt(n.before.length-1),u,i);m.inside&&(o=br(u)+o.slice(1));const h=o.charCodeAt(o.length-1),g=Xr(n.after.charCodeAt(0),h,i);g.inside&&(o=o.slice(0,-1)+br(h));const p=l.move(i+i);return a(),r.attentionEncodeSurroundingInfo={after:g.outside,before:m.outside},s+o+p}function W4(e,t,r){return r.options.strong||"*"}function Y4(e,t,r,n){return r.safe(e.value,n)}function X4(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function K4(e,t,r){const n=($l(r)+(r.options.ruleSpaces?" ":"")).repeat(X4(r));return r.options.ruleSpaces?n.slice(0,-1):n}const _l={blockquote:x4,break:Xi,code:z4,definition:M4,emphasis:Ll,hardBreak:Xi,heading:I4,html:Rl,image:Pl,imageReference:Ol,inlineCode:ql,link:Vl,linkReference:jl,list:H4,listItem:j4,paragraph:$4,root:_4,strong:Ul,text:Y4,thematicBreak:K4};function Z4(){return{enter:{table:Q4,tableData:Ki,tableHeader:Ki,tableRow:em},exit:{codeText:tm,table:J4,tableData:Bn,tableHeader:Bn,tableRow:Bn}}}function Q4(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function J4(e){this.exit(e),this.data.inTable=void 0}function em(e){this.enter({type:"tableRow",children:[]},e)}function Bn(e){this.exit(e)}function Ki(e){this.enter({type:"tableCell",children:[]},e)}function tm(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,rm));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function rm(e,t){return t==="|"?t:e}function nm(e){const t=e,r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,a=r?" ":"|";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:g,table:l,tableCell:o,tableRow:s}};function l(p,v,x,M){return u(m(p,x,M),p.align)}function s(p,v,x,M){const A=h(p,x,M),T=u([A]);return T.slice(0,T.indexOf(` +`))}function o(p,v,x,M){const A=x.enter("tableCell"),T=x.enter("phrasing"),D=x.containerPhrasing(p,{...M,before:a,after:a});return T(),A(),D}function u(p,v){return v4(p,{align:v,alignDelimiters:n,padding:r,stringLength:i})}function m(p,v,x){const M=p.children;let A=-1;const T=[],D=v.enter("table");for(;++A0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const wm={tokenize:Em,partial:!0};function km(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Tm,continuation:{tokenize:Mm},exit:Cm}},text:{91:{name:"gfmFootnoteCall",tokenize:zm},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Sm,resolveTo:Am}}}}function Sm(e,t,r){const n=this;let i=n.events.length;const a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let l;for(;i--;){const o=n.events[i][1];if(o.type==="labelImage"){l=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return s;function s(o){if(!l||!l._balanced)return r(o);const u=it(n.sliceSerialize({start:l.end,end:n.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?r(o):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o))}}function Am(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",l,t],["exit",l,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...s),e}function zm(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a=0,l;return s;function s(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),o}function o(h){return h!==94?r(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(h){if(a>999||h===93&&!l||h===null||h===91||ce(h))return r(h);if(h===93){e.exit("chunkString");const g=e.exit("gfmFootnoteCallString");return i.includes(it(n.sliceSerialize(g)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(h)}return ce(h)||(l=!0),a++,e.consume(h),h===92?m:u}function m(h){return h===91||h===92||h===93?(e.consume(h),a++,u):u(h)}}function Tm(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,l=0,s;return o;function o(v){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(v){return v===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):r(v)}function m(v){if(l>999||v===93&&!s||v===null||v===91||ce(v))return r(v);if(v===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return a=it(n.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return ce(v)||(s=!0),l++,e.consume(v),v===92?h:m}function h(v){return v===91||v===92||v===93?(e.consume(v),l++,m):m(v)}function g(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),i.includes(a)||i.push(a),ie(e,p,"gfmFootnoteDefinitionWhitespace")):r(v)}function p(v){return t(v)}}function Mm(e,t,r){return e.check(Sr,t,e.attempt(wm,t,r))}function Cm(e){e.exit("gfmFootnoteDefinition")}function Em(e,t,r){const n=this;return ie(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const l=n.events[n.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(a):r(a)}}function Dm(e){let r=e.singleTilde;const n={name:"strikethrough",tokenize:a,resolveAll:i};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(l,s){let o=-1;for(;++o1?o(v):(l.consume(v),h++,p);if(h<2&&!r)return o(v);const M=l.exit("strikethroughSequenceTemporary"),A=Qt(v);return M._open=!A||A===2&&!!x,M._close=!x||x===2&&!!A,s(v)}}}class Im{constructor(){this.map=[]}add(t,r,n){Nm(this,t,r,n)}consume(t){if(this.map.sort(function(a,l){return a[0]-l[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push([...t]),t.length=0;let i=n.pop();for(;i;)t.push(...i),i=n.pop();this.map.length=0}}function Nm(e,t,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i-1;){const ne=n.events[U][1].type;if(ne==="lineEnding"||ne==="linePrefix")U--;else break}const V=U>-1?n.events[U][1].type:null,le=V==="tableHead"||V==="tableRow"?E:o;return le===E&&n.parser.lazy[n.now().line]?r(I):le(I)}function o(I){return e.enter("tableHead"),e.enter("tableRow"),u(I)}function u(I){return I===124||(l=!0,a+=1),m(I)}function m(I){return I===null?r(I):W(I)?a>1?(a=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),p):r(I):ae(I)?ie(e,m,"whitespace")(I):(a+=1,l&&(l=!1,i+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),l=!0,m):(e.enter("data"),h(I)))}function h(I){return I===null||I===124||ce(I)?(e.exit("data"),m(I)):(e.consume(I),I===92?g:h)}function g(I){return I===92||I===124?(e.consume(I),h):h(I)}function p(I){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(I):(e.enter("tableDelimiterRow"),l=!1,ae(I)?ie(e,v,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):v(I))}function v(I){return I===45||I===58?M(I):I===124?(l=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),x):R(I)}function x(I){return ae(I)?ie(e,M,"whitespace")(I):M(I)}function M(I){return I===58?(a+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),A):I===45?(a+=1,A(I)):I===null||W(I)?q(I):R(I)}function A(I){return I===45?(e.enter("tableDelimiterFiller"),T(I)):R(I)}function T(I){return I===45?(e.consume(I),T):I===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),D):(e.exit("tableDelimiterFiller"),D(I))}function D(I){return ae(I)?ie(e,q,"whitespace")(I):q(I)}function q(I){return I===124?v(I):I===null||W(I)?!l||i!==a?R(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):R(I)}function R(I){return r(I)}function E(I){return e.enter("tableRow"),$(I)}function $(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),$):I===null||W(I)?(e.exit("tableRow"),t(I)):ae(I)?ie(e,$,"whitespace")(I):(e.enter("data"),Z(I))}function Z(I){return I===null||I===124||ce(I)?(e.exit("data"),$(I)):(e.consume(I),I===92?_:Z)}function _(I){return I===92||I===124?(e.consume(I),Z):Z(I)}}function Rm(e,t){let r=-1,n=!0,i=0,a=[0,0,0,0],l=[0,0,0,0],s=!1,o=0,u,m,h;const g=new Im;for(;++rr[2]+1){const v=r[2]+1,x=r[3]-r[2]-1;e.add(v,x,[])}}e.add(r[3]+1,0,[["exit",h,t]])}return i!==void 0&&(a.end=Object.assign({},Xt(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Qi(e,t,r,n,i){const a=[],l=Xt(t.events,r);i&&(i.end=Object.assign({},l),a.push(["exit",i,t])),n.end=Object.assign({},l),a.push(["exit",n,t]),e.add(r+1,0,a)}function Xt(e,t){const r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}const Pm={name:"tasklistCheck",tokenize:qm};function Om(){return{text:{91:Pm}}}function qm(e,t,r){const n=this;return i;function i(o){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(o):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),a)}function a(o){return ce(o)?(e.enter("taskListCheckValueUnchecked"),e.consume(o),e.exit("taskListCheckValueUnchecked"),l):o===88||o===120?(e.enter("taskListCheckValueChecked"),e.consume(o),e.exit("taskListCheckValueChecked"),l):r(o)}function l(o){return o===93?(e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):r(o)}function s(o){return W(o)?t(o):ae(o)?e.check({tokenize:Hm},t,r)(o):r(o)}}function Hm(e,t,r){return ie(e,n,"whitespace");function n(i){return i===null?r(i):t(i)}}function Vm(e){return ul([mm(),km(),Dm(e),Fm(),Om()])}const jm={};function Rp(e){const t=this,r=e||jm,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),l=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(Vm(r)),a.push(om()),l.push(um(r))}function $m(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:s,mathText:l,mathTextData:s}};function e(o){const u={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[u]}},o)}function t(){this.buffer()}function r(){const o=this.resume(),u=this.stack[this.stack.length-1];u.type,u.meta=o}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(o){const u=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),m=this.stack[this.stack.length-1];m.type,this.exit(o),m.value=u;const h=m.data.hChildren[0];h.type,h.tagName,h.children.push({type:"text",value:u}),this.data.mathFlowInside=void 0}function a(o){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},o),this.buffer()}function l(o){const u=this.resume(),m=this.stack[this.stack.length-1];m.type,this.exit(o),m.value=u,m.data.hChildren.push({type:"text",value:u})}function s(o){this.config.enter.data.call(this,o),this.config.exit.data.call(this,o)}}function Um(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),n.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` +`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:n}};function r(a,l,s,o){const u=a.value||"",m=s.createTracker(o),h="$".repeat(Math.max(Fl(u,"$")+1,2)),g=s.enter("mathFlow");let p=m.move(h);if(a.meta){const v=s.enter("mathFlowMeta");p+=m.move(s.safe(a.meta,{after:` +`,before:p,encode:["$"],...m.current()})),v()}return p+=m.move(` +`),u&&(p+=m.move(u+` +`)),p+=m.move(h),g(),p}function n(a,l,s){let o=a.value||"",u=1;for(t||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(o);)u++;const m="$".repeat(u);/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^\$|\$$/.test(o))&&(o=" "+o+" ");let h=-1;for(;++h15?u="…"+s.slice(i-15,i):u=s.slice(0,i);var m;a+15":">","<":"<",'"':""","'":"'"},nf=/[&><"']/g;function af(e){return String(e).replace(nf,t=>rf[t])}var es=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},lf=function(t){var r=es(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},sf=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},of=function(t){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},Y={contains:Qm,deflt:Jm,escape:af,hyphenate:tf,getBaseElem:es,isCharacterBox:lf,protocolFromUrl:of},Ur={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function uf(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class F0{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r in Ur)if(Ur.hasOwnProperty(r)){var n=Ur[r];this[r]=t[r]!==void 0?n.processor?n.processor(t[r]):t[r]:uf(n)}}reportNonstrict(t,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new L("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var i=this.strict;if(typeof i=="function")try{i=i(t,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var r=Y.protocolFromUrl(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class At{constructor(t,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=n}sup(){return lt[cf[this.id]]}sub(){return lt[hf[this.id]]}fracNum(){return lt[mf[this.id]]}fracDen(){return lt[ff[this.id]]}cramp(){return lt[pf[this.id]]}text(){return lt[df[this.id]]}isTight(){return this.size>=2}}var L0=0,Kr=1,Zt=2,gt=3,xr=4,Xe=5,Jt=6,Fe=7,lt=[new At(L0,0,!1),new At(Kr,0,!0),new At(Zt,1,!1),new At(gt,1,!0),new At(xr,2,!1),new At(Xe,2,!0),new At(Jt,3,!1),new At(Fe,3,!0)],cf=[xr,Xe,xr,Xe,Jt,Fe,Jt,Fe],hf=[Xe,Xe,Xe,Xe,Fe,Fe,Fe,Fe],mf=[Zt,gt,xr,Xe,Jt,Fe,Jt,Fe],ff=[gt,gt,Xe,Xe,Fe,Fe,Fe,Fe],pf=[Kr,Kr,gt,gt,Xe,Xe,Fe,Fe],df=[L0,Kr,Zt,gt,Zt,gt,Zt,gt],K={DISPLAY:lt[L0],TEXT:lt[Zt],SCRIPT:lt[xr],SCRIPTSCRIPT:lt[Jt]},a0=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function gf(e){for(var t=0;t=i[0]&&e<=i[1])return r.name}return null}var _r=[];a0.forEach(e=>e.blocks.forEach(t=>_r.push(...t)));function ts(e){for(var t=0;t<_r.length;t+=2)if(e>=_r[t]&&e<=_r[t+1])return!0;return!1}var Yt=80,yf=function(t,r){return"M95,"+(622+t+r)+` +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l`+t/2.075+" -"+t+` +c5.3,-9.3,12,-14,20,-14 +H400000v`+(40+t)+`H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},vf=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119 +c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 +c340,-704.7,510.7,-1060.3,512,-1067 +l`+t/2.084+" -"+t+` +c4.7,-7.3,11,-11,19,-11 +H40000v`+(40+t)+`H1012.3 +s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 +c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 +s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 +c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z +M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},bf=function(t,r){return"M983 "+(10+t+r)+` +l`+t/3.13+" -"+t+` +c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` +H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 +s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 +c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 +c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 +c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 +c53.7,-170.3,84.5,-266.8,92.5,-289.5z +M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},xf=function(t,r){return"M424,"+(2398+t+r)+` +c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 +c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 +s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 +s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 +l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 +v`+(40+t)+`H1014.6 +s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 +c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+` +h400000v`+(40+t)+"h-400000z"},wf=function(t,r){return"M473,"+(2713+t+r)+` +c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` +c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 +s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 +c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 +s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, +606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},kf=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},Sf=function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+` +H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 +h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 +c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 +219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},Af=function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=yf(r,Yt);break;case"sqrtSize1":i=vf(r,Yt);break;case"sqrtSize2":i=bf(r,Yt);break;case"sqrtSize3":i=xf(r,Yt);break;case"sqrtSize4":i=wf(r,Yt);break;case"sqrtTall":i=Sf(r,Yt,n)}return i},zf=function(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},ea={doubleleftarrow:`M262 157 +l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 + 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 + 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 +c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 + 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 +-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 +-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z +m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l +-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 + 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 +-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 +-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 +-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 +c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 +-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 + 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 +-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 +c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 + 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 + 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 + l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 +-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 + 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 + 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 + 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 +-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 +H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 + 435 0h399565z`,leftgroupunder:`M400000 262 +H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 + 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 +-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 +-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 +-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 + 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 +-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 +-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z +m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 + 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 + 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 +-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 + 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 +-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 +v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 +-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 +-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 + 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z +M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z +M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 +-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 +c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 + 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z +M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 +c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 +-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 + 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 + 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 +c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 + 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 + 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 +-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 +-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z +m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 +60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 +-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z +m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 +c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 +-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z +m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 +85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 +-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z +m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 +c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 +-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 + 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 + 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 +-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 + 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l +-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 +s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 +c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 + 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 +-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 + 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 + 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 +-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 +-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 + 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 +-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 + 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z +m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 + 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 +-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 +-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 + 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 + 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 +-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z +m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 + 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 +-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 + 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z +M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 + 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 +-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 +-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 + 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 +-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 +-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 +-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 + 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 +c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 + 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 + 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 +-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 + 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 +-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 + 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 + 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 +-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 +-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 + 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 +c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 + 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 +-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 + 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 + 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 + -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 +-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 + 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 + 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 + -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 +3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 +10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 +-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 +-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 +H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 +c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 +c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, +-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 +c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 +c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 +s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 +121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 +s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 +c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z +M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 +-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 +13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 +-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 +-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 +151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 +c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 +c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 +c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z +M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, +1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, +-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z +M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Tf=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84 +H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z +M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z +M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z +MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z +MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z +M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z +M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 +c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, +-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, +949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 +c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, +-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 +l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, +-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, +63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 +c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+` +c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 +c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 +c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 +c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 +l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class Tr{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return Y.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),r=0;rr.toText();return this.children.map(t).join("")}}var st={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Br={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},ta={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Mf(e,t){st[e]=t}function R0(e,t,r){if(!st[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=st[t][n];if(!i&&e[0]in ta&&(n=ta[e[0]].charCodeAt(0),i=st[t][n]),!i&&r==="text"&&ts(n)&&(i=st[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Fn={};function Cf(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Fn[t]){var r=Fn[t]={cssEmPerMu:Br.quad[t]/18};for(var n in Br)Br.hasOwnProperty(n)&&(r[n]=Br[n][t])}return Fn[t]}var Ef=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],ra=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],na=function(t,r){return r.size<2?t:Ef[t-1][r.size-1]};class dt{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||dt.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=ra[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return new dt(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:na(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:ra[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=na(dt.BASESIZE,t);return this.size===r&&this.textSize===dt.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==dt.BASESIZE?["sizing","reset-size"+this.size,"size"+dt.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Cf(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}dt.BASESIZE=6;var l0={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Df={ex:!0,em:!0,mu:!0},rs=function(t){return typeof t!="string"&&(t=t.unit),t in l0||t in Df||t==="ex"},ve=function(t,r){var n;if(t.unit in l0)n=l0[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,t.unit==="ex")n=i.fontMetrics().xHeight;else if(t.unit==="em")n=i.fontMetrics().quad;else throw new L("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},O=function(t){return+t.toFixed(4)+"em"},Mt=function(t){return t.filter(r=>r).join(" ")},ns=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},is=function(t){var r=document.createElement(t);r.className=Mt(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(r.style[n]=this.style[n]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&r.setAttribute(i,this.attributes[i]);for(var a=0;a",r};class Mr{constructor(t,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,ns.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return Y.contains(this.classes,t)}toNode(){return is.call(this,"span")}toMarkup(){return as.call(this,"span")}}class P0{constructor(t,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,ns.call(this,r,i),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return Y.contains(this.classes,t)}toNode(){return is.call(this,"a")}toMarkup(){return as.call(this,"a")}}class If{constructor(t,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.style=n}hasClass(t){return Y.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);return t}toMarkup(){var t=''+Y.escape(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=O(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=Mt(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(r=r||document.createElement("span"),r.style[n]=this.style[n]);return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="0&&(n+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=Y.hyphenate(i)+":"+this.style[i]+";");n&&(t=!0,r+=' style="'+Y.escape(n)+'"');var a=Y.escape(this.text);return t?(r+=">",r+=a,r+="",r):a}}class vt{constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);for(var i=0;i':''}}class s0{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t=" but got "+String(e)+".")}var Ff={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Lf={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},fe={math:{},text:{}};function c(e,t,r,n,i,a){fe[e][i]={font:t,group:r,replace:n},a&&n&&(fe[e][n]=fe[e][i])}var f="math",B="text",d="main",b="ams",ge="accent-token",G="bin",Le="close",rr="inner",X="mathord",ze="op-token",_e="open",un="punct",w="rel",kt="spacing",z="textord";c(f,d,w,"≡","\\equiv",!0);c(f,d,w,"≺","\\prec",!0);c(f,d,w,"≻","\\succ",!0);c(f,d,w,"∼","\\sim",!0);c(f,d,w,"⊥","\\perp");c(f,d,w,"⪯","\\preceq",!0);c(f,d,w,"⪰","\\succeq",!0);c(f,d,w,"≃","\\simeq",!0);c(f,d,w,"∣","\\mid",!0);c(f,d,w,"≪","\\ll",!0);c(f,d,w,"≫","\\gg",!0);c(f,d,w,"≍","\\asymp",!0);c(f,d,w,"∥","\\parallel");c(f,d,w,"⋈","\\bowtie",!0);c(f,d,w,"⌣","\\smile",!0);c(f,d,w,"⊑","\\sqsubseteq",!0);c(f,d,w,"⊒","\\sqsupseteq",!0);c(f,d,w,"≐","\\doteq",!0);c(f,d,w,"⌢","\\frown",!0);c(f,d,w,"∋","\\ni",!0);c(f,d,w,"∝","\\propto",!0);c(f,d,w,"⊢","\\vdash",!0);c(f,d,w,"⊣","\\dashv",!0);c(f,d,w,"∋","\\owns");c(f,d,un,".","\\ldotp");c(f,d,un,"⋅","\\cdotp");c(f,d,z,"#","\\#");c(B,d,z,"#","\\#");c(f,d,z,"&","\\&");c(B,d,z,"&","\\&");c(f,d,z,"ℵ","\\aleph",!0);c(f,d,z,"∀","\\forall",!0);c(f,d,z,"ℏ","\\hbar",!0);c(f,d,z,"∃","\\exists",!0);c(f,d,z,"∇","\\nabla",!0);c(f,d,z,"♭","\\flat",!0);c(f,d,z,"ℓ","\\ell",!0);c(f,d,z,"♮","\\natural",!0);c(f,d,z,"♣","\\clubsuit",!0);c(f,d,z,"℘","\\wp",!0);c(f,d,z,"♯","\\sharp",!0);c(f,d,z,"♢","\\diamondsuit",!0);c(f,d,z,"ℜ","\\Re",!0);c(f,d,z,"♡","\\heartsuit",!0);c(f,d,z,"ℑ","\\Im",!0);c(f,d,z,"♠","\\spadesuit",!0);c(f,d,z,"§","\\S",!0);c(B,d,z,"§","\\S");c(f,d,z,"¶","\\P",!0);c(B,d,z,"¶","\\P");c(f,d,z,"†","\\dag");c(B,d,z,"†","\\dag");c(B,d,z,"†","\\textdagger");c(f,d,z,"‡","\\ddag");c(B,d,z,"‡","\\ddag");c(B,d,z,"‡","\\textdaggerdbl");c(f,d,Le,"⎱","\\rmoustache",!0);c(f,d,_e,"⎰","\\lmoustache",!0);c(f,d,Le,"⟯","\\rgroup",!0);c(f,d,_e,"⟮","\\lgroup",!0);c(f,d,G,"∓","\\mp",!0);c(f,d,G,"⊖","\\ominus",!0);c(f,d,G,"⊎","\\uplus",!0);c(f,d,G,"⊓","\\sqcap",!0);c(f,d,G,"∗","\\ast");c(f,d,G,"⊔","\\sqcup",!0);c(f,d,G,"◯","\\bigcirc",!0);c(f,d,G,"∙","\\bullet",!0);c(f,d,G,"‡","\\ddagger");c(f,d,G,"≀","\\wr",!0);c(f,d,G,"⨿","\\amalg");c(f,d,G,"&","\\And");c(f,d,w,"⟵","\\longleftarrow",!0);c(f,d,w,"⇐","\\Leftarrow",!0);c(f,d,w,"⟸","\\Longleftarrow",!0);c(f,d,w,"⟶","\\longrightarrow",!0);c(f,d,w,"⇒","\\Rightarrow",!0);c(f,d,w,"⟹","\\Longrightarrow",!0);c(f,d,w,"↔","\\leftrightarrow",!0);c(f,d,w,"⟷","\\longleftrightarrow",!0);c(f,d,w,"⇔","\\Leftrightarrow",!0);c(f,d,w,"⟺","\\Longleftrightarrow",!0);c(f,d,w,"↦","\\mapsto",!0);c(f,d,w,"⟼","\\longmapsto",!0);c(f,d,w,"↗","\\nearrow",!0);c(f,d,w,"↩","\\hookleftarrow",!0);c(f,d,w,"↪","\\hookrightarrow",!0);c(f,d,w,"↘","\\searrow",!0);c(f,d,w,"↼","\\leftharpoonup",!0);c(f,d,w,"⇀","\\rightharpoonup",!0);c(f,d,w,"↙","\\swarrow",!0);c(f,d,w,"↽","\\leftharpoondown",!0);c(f,d,w,"⇁","\\rightharpoondown",!0);c(f,d,w,"↖","\\nwarrow",!0);c(f,d,w,"⇌","\\rightleftharpoons",!0);c(f,b,w,"≮","\\nless",!0);c(f,b,w,"","\\@nleqslant");c(f,b,w,"","\\@nleqq");c(f,b,w,"⪇","\\lneq",!0);c(f,b,w,"≨","\\lneqq",!0);c(f,b,w,"","\\@lvertneqq");c(f,b,w,"⋦","\\lnsim",!0);c(f,b,w,"⪉","\\lnapprox",!0);c(f,b,w,"⊀","\\nprec",!0);c(f,b,w,"⋠","\\npreceq",!0);c(f,b,w,"⋨","\\precnsim",!0);c(f,b,w,"⪹","\\precnapprox",!0);c(f,b,w,"≁","\\nsim",!0);c(f,b,w,"","\\@nshortmid");c(f,b,w,"∤","\\nmid",!0);c(f,b,w,"⊬","\\nvdash",!0);c(f,b,w,"⊭","\\nvDash",!0);c(f,b,w,"⋪","\\ntriangleleft");c(f,b,w,"⋬","\\ntrianglelefteq",!0);c(f,b,w,"⊊","\\subsetneq",!0);c(f,b,w,"","\\@varsubsetneq");c(f,b,w,"⫋","\\subsetneqq",!0);c(f,b,w,"","\\@varsubsetneqq");c(f,b,w,"≯","\\ngtr",!0);c(f,b,w,"","\\@ngeqslant");c(f,b,w,"","\\@ngeqq");c(f,b,w,"⪈","\\gneq",!0);c(f,b,w,"≩","\\gneqq",!0);c(f,b,w,"","\\@gvertneqq");c(f,b,w,"⋧","\\gnsim",!0);c(f,b,w,"⪊","\\gnapprox",!0);c(f,b,w,"⊁","\\nsucc",!0);c(f,b,w,"⋡","\\nsucceq",!0);c(f,b,w,"⋩","\\succnsim",!0);c(f,b,w,"⪺","\\succnapprox",!0);c(f,b,w,"≆","\\ncong",!0);c(f,b,w,"","\\@nshortparallel");c(f,b,w,"∦","\\nparallel",!0);c(f,b,w,"⊯","\\nVDash",!0);c(f,b,w,"⋫","\\ntriangleright");c(f,b,w,"⋭","\\ntrianglerighteq",!0);c(f,b,w,"","\\@nsupseteqq");c(f,b,w,"⊋","\\supsetneq",!0);c(f,b,w,"","\\@varsupsetneq");c(f,b,w,"⫌","\\supsetneqq",!0);c(f,b,w,"","\\@varsupsetneqq");c(f,b,w,"⊮","\\nVdash",!0);c(f,b,w,"⪵","\\precneqq",!0);c(f,b,w,"⪶","\\succneqq",!0);c(f,b,w,"","\\@nsubseteqq");c(f,b,G,"⊴","\\unlhd");c(f,b,G,"⊵","\\unrhd");c(f,b,w,"↚","\\nleftarrow",!0);c(f,b,w,"↛","\\nrightarrow",!0);c(f,b,w,"⇍","\\nLeftarrow",!0);c(f,b,w,"⇏","\\nRightarrow",!0);c(f,b,w,"↮","\\nleftrightarrow",!0);c(f,b,w,"⇎","\\nLeftrightarrow",!0);c(f,b,w,"△","\\vartriangle");c(f,b,z,"ℏ","\\hslash");c(f,b,z,"▽","\\triangledown");c(f,b,z,"◊","\\lozenge");c(f,b,z,"Ⓢ","\\circledS");c(f,b,z,"®","\\circledR");c(B,b,z,"®","\\circledR");c(f,b,z,"∡","\\measuredangle",!0);c(f,b,z,"∄","\\nexists");c(f,b,z,"℧","\\mho");c(f,b,z,"Ⅎ","\\Finv",!0);c(f,b,z,"⅁","\\Game",!0);c(f,b,z,"‵","\\backprime");c(f,b,z,"▲","\\blacktriangle");c(f,b,z,"▼","\\blacktriangledown");c(f,b,z,"■","\\blacksquare");c(f,b,z,"⧫","\\blacklozenge");c(f,b,z,"★","\\bigstar");c(f,b,z,"∢","\\sphericalangle",!0);c(f,b,z,"∁","\\complement",!0);c(f,b,z,"ð","\\eth",!0);c(B,d,z,"ð","ð");c(f,b,z,"╱","\\diagup");c(f,b,z,"╲","\\diagdown");c(f,b,z,"□","\\square");c(f,b,z,"□","\\Box");c(f,b,z,"◊","\\Diamond");c(f,b,z,"¥","\\yen",!0);c(B,b,z,"¥","\\yen",!0);c(f,b,z,"✓","\\checkmark",!0);c(B,b,z,"✓","\\checkmark");c(f,b,z,"ℶ","\\beth",!0);c(f,b,z,"ℸ","\\daleth",!0);c(f,b,z,"ℷ","\\gimel",!0);c(f,b,z,"ϝ","\\digamma",!0);c(f,b,z,"ϰ","\\varkappa");c(f,b,_e,"┌","\\@ulcorner",!0);c(f,b,Le,"┐","\\@urcorner",!0);c(f,b,_e,"└","\\@llcorner",!0);c(f,b,Le,"┘","\\@lrcorner",!0);c(f,b,w,"≦","\\leqq",!0);c(f,b,w,"⩽","\\leqslant",!0);c(f,b,w,"⪕","\\eqslantless",!0);c(f,b,w,"≲","\\lesssim",!0);c(f,b,w,"⪅","\\lessapprox",!0);c(f,b,w,"≊","\\approxeq",!0);c(f,b,G,"⋖","\\lessdot");c(f,b,w,"⋘","\\lll",!0);c(f,b,w,"≶","\\lessgtr",!0);c(f,b,w,"⋚","\\lesseqgtr",!0);c(f,b,w,"⪋","\\lesseqqgtr",!0);c(f,b,w,"≑","\\doteqdot");c(f,b,w,"≓","\\risingdotseq",!0);c(f,b,w,"≒","\\fallingdotseq",!0);c(f,b,w,"∽","\\backsim",!0);c(f,b,w,"⋍","\\backsimeq",!0);c(f,b,w,"⫅","\\subseteqq",!0);c(f,b,w,"⋐","\\Subset",!0);c(f,b,w,"⊏","\\sqsubset",!0);c(f,b,w,"≼","\\preccurlyeq",!0);c(f,b,w,"⋞","\\curlyeqprec",!0);c(f,b,w,"≾","\\precsim",!0);c(f,b,w,"⪷","\\precapprox",!0);c(f,b,w,"⊲","\\vartriangleleft");c(f,b,w,"⊴","\\trianglelefteq");c(f,b,w,"⊨","\\vDash",!0);c(f,b,w,"⊪","\\Vvdash",!0);c(f,b,w,"⌣","\\smallsmile");c(f,b,w,"⌢","\\smallfrown");c(f,b,w,"≏","\\bumpeq",!0);c(f,b,w,"≎","\\Bumpeq",!0);c(f,b,w,"≧","\\geqq",!0);c(f,b,w,"⩾","\\geqslant",!0);c(f,b,w,"⪖","\\eqslantgtr",!0);c(f,b,w,"≳","\\gtrsim",!0);c(f,b,w,"⪆","\\gtrapprox",!0);c(f,b,G,"⋗","\\gtrdot");c(f,b,w,"⋙","\\ggg",!0);c(f,b,w,"≷","\\gtrless",!0);c(f,b,w,"⋛","\\gtreqless",!0);c(f,b,w,"⪌","\\gtreqqless",!0);c(f,b,w,"≖","\\eqcirc",!0);c(f,b,w,"≗","\\circeq",!0);c(f,b,w,"≜","\\triangleq",!0);c(f,b,w,"∼","\\thicksim");c(f,b,w,"≈","\\thickapprox");c(f,b,w,"⫆","\\supseteqq",!0);c(f,b,w,"⋑","\\Supset",!0);c(f,b,w,"⊐","\\sqsupset",!0);c(f,b,w,"≽","\\succcurlyeq",!0);c(f,b,w,"⋟","\\curlyeqsucc",!0);c(f,b,w,"≿","\\succsim",!0);c(f,b,w,"⪸","\\succapprox",!0);c(f,b,w,"⊳","\\vartriangleright");c(f,b,w,"⊵","\\trianglerighteq");c(f,b,w,"⊩","\\Vdash",!0);c(f,b,w,"∣","\\shortmid");c(f,b,w,"∥","\\shortparallel");c(f,b,w,"≬","\\between",!0);c(f,b,w,"⋔","\\pitchfork",!0);c(f,b,w,"∝","\\varpropto");c(f,b,w,"◀","\\blacktriangleleft");c(f,b,w,"∴","\\therefore",!0);c(f,b,w,"∍","\\backepsilon");c(f,b,w,"▶","\\blacktriangleright");c(f,b,w,"∵","\\because",!0);c(f,b,w,"⋘","\\llless");c(f,b,w,"⋙","\\gggtr");c(f,b,G,"⊲","\\lhd");c(f,b,G,"⊳","\\rhd");c(f,b,w,"≂","\\eqsim",!0);c(f,d,w,"⋈","\\Join");c(f,b,w,"≑","\\Doteq",!0);c(f,b,G,"∔","\\dotplus",!0);c(f,b,G,"∖","\\smallsetminus");c(f,b,G,"⋒","\\Cap",!0);c(f,b,G,"⋓","\\Cup",!0);c(f,b,G,"⩞","\\doublebarwedge",!0);c(f,b,G,"⊟","\\boxminus",!0);c(f,b,G,"⊞","\\boxplus",!0);c(f,b,G,"⋇","\\divideontimes",!0);c(f,b,G,"⋉","\\ltimes",!0);c(f,b,G,"⋊","\\rtimes",!0);c(f,b,G,"⋋","\\leftthreetimes",!0);c(f,b,G,"⋌","\\rightthreetimes",!0);c(f,b,G,"⋏","\\curlywedge",!0);c(f,b,G,"⋎","\\curlyvee",!0);c(f,b,G,"⊝","\\circleddash",!0);c(f,b,G,"⊛","\\circledast",!0);c(f,b,G,"⋅","\\centerdot");c(f,b,G,"⊺","\\intercal",!0);c(f,b,G,"⋒","\\doublecap");c(f,b,G,"⋓","\\doublecup");c(f,b,G,"⊠","\\boxtimes",!0);c(f,b,w,"⇢","\\dashrightarrow",!0);c(f,b,w,"⇠","\\dashleftarrow",!0);c(f,b,w,"⇇","\\leftleftarrows",!0);c(f,b,w,"⇆","\\leftrightarrows",!0);c(f,b,w,"⇚","\\Lleftarrow",!0);c(f,b,w,"↞","\\twoheadleftarrow",!0);c(f,b,w,"↢","\\leftarrowtail",!0);c(f,b,w,"↫","\\looparrowleft",!0);c(f,b,w,"⇋","\\leftrightharpoons",!0);c(f,b,w,"↶","\\curvearrowleft",!0);c(f,b,w,"↺","\\circlearrowleft",!0);c(f,b,w,"↰","\\Lsh",!0);c(f,b,w,"⇈","\\upuparrows",!0);c(f,b,w,"↿","\\upharpoonleft",!0);c(f,b,w,"⇃","\\downharpoonleft",!0);c(f,d,w,"⊶","\\origof",!0);c(f,d,w,"⊷","\\imageof",!0);c(f,b,w,"⊸","\\multimap",!0);c(f,b,w,"↭","\\leftrightsquigarrow",!0);c(f,b,w,"⇉","\\rightrightarrows",!0);c(f,b,w,"⇄","\\rightleftarrows",!0);c(f,b,w,"↠","\\twoheadrightarrow",!0);c(f,b,w,"↣","\\rightarrowtail",!0);c(f,b,w,"↬","\\looparrowright",!0);c(f,b,w,"↷","\\curvearrowright",!0);c(f,b,w,"↻","\\circlearrowright",!0);c(f,b,w,"↱","\\Rsh",!0);c(f,b,w,"⇊","\\downdownarrows",!0);c(f,b,w,"↾","\\upharpoonright",!0);c(f,b,w,"⇂","\\downharpoonright",!0);c(f,b,w,"⇝","\\rightsquigarrow",!0);c(f,b,w,"⇝","\\leadsto");c(f,b,w,"⇛","\\Rrightarrow",!0);c(f,b,w,"↾","\\restriction");c(f,d,z,"‘","`");c(f,d,z,"$","\\$");c(B,d,z,"$","\\$");c(B,d,z,"$","\\textdollar");c(f,d,z,"%","\\%");c(B,d,z,"%","\\%");c(f,d,z,"_","\\_");c(B,d,z,"_","\\_");c(B,d,z,"_","\\textunderscore");c(f,d,z,"∠","\\angle",!0);c(f,d,z,"∞","\\infty",!0);c(f,d,z,"′","\\prime");c(f,d,z,"△","\\triangle");c(f,d,z,"Γ","\\Gamma",!0);c(f,d,z,"Δ","\\Delta",!0);c(f,d,z,"Θ","\\Theta",!0);c(f,d,z,"Λ","\\Lambda",!0);c(f,d,z,"Ξ","\\Xi",!0);c(f,d,z,"Π","\\Pi",!0);c(f,d,z,"Σ","\\Sigma",!0);c(f,d,z,"Υ","\\Upsilon",!0);c(f,d,z,"Φ","\\Phi",!0);c(f,d,z,"Ψ","\\Psi",!0);c(f,d,z,"Ω","\\Omega",!0);c(f,d,z,"A","Α");c(f,d,z,"B","Β");c(f,d,z,"E","Ε");c(f,d,z,"Z","Ζ");c(f,d,z,"H","Η");c(f,d,z,"I","Ι");c(f,d,z,"K","Κ");c(f,d,z,"M","Μ");c(f,d,z,"N","Ν");c(f,d,z,"O","Ο");c(f,d,z,"P","Ρ");c(f,d,z,"T","Τ");c(f,d,z,"X","Χ");c(f,d,z,"¬","\\neg",!0);c(f,d,z,"¬","\\lnot");c(f,d,z,"⊤","\\top");c(f,d,z,"⊥","\\bot");c(f,d,z,"∅","\\emptyset");c(f,b,z,"∅","\\varnothing");c(f,d,X,"α","\\alpha",!0);c(f,d,X,"β","\\beta",!0);c(f,d,X,"γ","\\gamma",!0);c(f,d,X,"δ","\\delta",!0);c(f,d,X,"ϵ","\\epsilon",!0);c(f,d,X,"ζ","\\zeta",!0);c(f,d,X,"η","\\eta",!0);c(f,d,X,"θ","\\theta",!0);c(f,d,X,"ι","\\iota",!0);c(f,d,X,"κ","\\kappa",!0);c(f,d,X,"λ","\\lambda",!0);c(f,d,X,"μ","\\mu",!0);c(f,d,X,"ν","\\nu",!0);c(f,d,X,"ξ","\\xi",!0);c(f,d,X,"ο","\\omicron",!0);c(f,d,X,"π","\\pi",!0);c(f,d,X,"ρ","\\rho",!0);c(f,d,X,"σ","\\sigma",!0);c(f,d,X,"τ","\\tau",!0);c(f,d,X,"υ","\\upsilon",!0);c(f,d,X,"ϕ","\\phi",!0);c(f,d,X,"χ","\\chi",!0);c(f,d,X,"ψ","\\psi",!0);c(f,d,X,"ω","\\omega",!0);c(f,d,X,"ε","\\varepsilon",!0);c(f,d,X,"ϑ","\\vartheta",!0);c(f,d,X,"ϖ","\\varpi",!0);c(f,d,X,"ϱ","\\varrho",!0);c(f,d,X,"ς","\\varsigma",!0);c(f,d,X,"φ","\\varphi",!0);c(f,d,G,"∗","*",!0);c(f,d,G,"+","+");c(f,d,G,"−","-",!0);c(f,d,G,"⋅","\\cdot",!0);c(f,d,G,"∘","\\circ",!0);c(f,d,G,"÷","\\div",!0);c(f,d,G,"±","\\pm",!0);c(f,d,G,"×","\\times",!0);c(f,d,G,"∩","\\cap",!0);c(f,d,G,"∪","\\cup",!0);c(f,d,G,"∖","\\setminus",!0);c(f,d,G,"∧","\\land");c(f,d,G,"∨","\\lor");c(f,d,G,"∧","\\wedge",!0);c(f,d,G,"∨","\\vee",!0);c(f,d,z,"√","\\surd");c(f,d,_e,"⟨","\\langle",!0);c(f,d,_e,"∣","\\lvert");c(f,d,_e,"∥","\\lVert");c(f,d,Le,"?","?");c(f,d,Le,"!","!");c(f,d,Le,"⟩","\\rangle",!0);c(f,d,Le,"∣","\\rvert");c(f,d,Le,"∥","\\rVert");c(f,d,w,"=","=");c(f,d,w,":",":");c(f,d,w,"≈","\\approx",!0);c(f,d,w,"≅","\\cong",!0);c(f,d,w,"≥","\\ge");c(f,d,w,"≥","\\geq",!0);c(f,d,w,"←","\\gets");c(f,d,w,">","\\gt",!0);c(f,d,w,"∈","\\in",!0);c(f,d,w,"","\\@not");c(f,d,w,"⊂","\\subset",!0);c(f,d,w,"⊃","\\supset",!0);c(f,d,w,"⊆","\\subseteq",!0);c(f,d,w,"⊇","\\supseteq",!0);c(f,b,w,"⊈","\\nsubseteq",!0);c(f,b,w,"⊉","\\nsupseteq",!0);c(f,d,w,"⊨","\\models");c(f,d,w,"←","\\leftarrow",!0);c(f,d,w,"≤","\\le");c(f,d,w,"≤","\\leq",!0);c(f,d,w,"<","\\lt",!0);c(f,d,w,"→","\\rightarrow",!0);c(f,d,w,"→","\\to");c(f,b,w,"≱","\\ngeq",!0);c(f,b,w,"≰","\\nleq",!0);c(f,d,kt," ","\\ ");c(f,d,kt," ","\\space");c(f,d,kt," ","\\nobreakspace");c(B,d,kt," ","\\ ");c(B,d,kt," "," ");c(B,d,kt," ","\\space");c(B,d,kt," ","\\nobreakspace");c(f,d,kt,null,"\\nobreak");c(f,d,kt,null,"\\allowbreak");c(f,d,un,",",",");c(f,d,un,";",";");c(f,b,G,"⊼","\\barwedge",!0);c(f,b,G,"⊻","\\veebar",!0);c(f,d,G,"⊙","\\odot",!0);c(f,d,G,"⊕","\\oplus",!0);c(f,d,G,"⊗","\\otimes",!0);c(f,d,z,"∂","\\partial",!0);c(f,d,G,"⊘","\\oslash",!0);c(f,b,G,"⊚","\\circledcirc",!0);c(f,b,G,"⊡","\\boxdot",!0);c(f,d,G,"△","\\bigtriangleup");c(f,d,G,"▽","\\bigtriangledown");c(f,d,G,"†","\\dagger");c(f,d,G,"⋄","\\diamond");c(f,d,G,"⋆","\\star");c(f,d,G,"◃","\\triangleleft");c(f,d,G,"▹","\\triangleright");c(f,d,_e,"{","\\{");c(B,d,z,"{","\\{");c(B,d,z,"{","\\textbraceleft");c(f,d,Le,"}","\\}");c(B,d,z,"}","\\}");c(B,d,z,"}","\\textbraceright");c(f,d,_e,"{","\\lbrace");c(f,d,Le,"}","\\rbrace");c(f,d,_e,"[","\\lbrack",!0);c(B,d,z,"[","\\lbrack",!0);c(f,d,Le,"]","\\rbrack",!0);c(B,d,z,"]","\\rbrack",!0);c(f,d,_e,"(","\\lparen",!0);c(f,d,Le,")","\\rparen",!0);c(B,d,z,"<","\\textless",!0);c(B,d,z,">","\\textgreater",!0);c(f,d,_e,"⌊","\\lfloor",!0);c(f,d,Le,"⌋","\\rfloor",!0);c(f,d,_e,"⌈","\\lceil",!0);c(f,d,Le,"⌉","\\rceil",!0);c(f,d,z,"\\","\\backslash");c(f,d,z,"∣","|");c(f,d,z,"∣","\\vert");c(B,d,z,"|","\\textbar",!0);c(f,d,z,"∥","\\|");c(f,d,z,"∥","\\Vert");c(B,d,z,"∥","\\textbardbl");c(B,d,z,"~","\\textasciitilde");c(B,d,z,"\\","\\textbackslash");c(B,d,z,"^","\\textasciicircum");c(f,d,w,"↑","\\uparrow",!0);c(f,d,w,"⇑","\\Uparrow",!0);c(f,d,w,"↓","\\downarrow",!0);c(f,d,w,"⇓","\\Downarrow",!0);c(f,d,w,"↕","\\updownarrow",!0);c(f,d,w,"⇕","\\Updownarrow",!0);c(f,d,ze,"∐","\\coprod");c(f,d,ze,"⋁","\\bigvee");c(f,d,ze,"⋀","\\bigwedge");c(f,d,ze,"⨄","\\biguplus");c(f,d,ze,"⋂","\\bigcap");c(f,d,ze,"⋃","\\bigcup");c(f,d,ze,"∫","\\int");c(f,d,ze,"∫","\\intop");c(f,d,ze,"∬","\\iint");c(f,d,ze,"∭","\\iiint");c(f,d,ze,"∏","\\prod");c(f,d,ze,"∑","\\sum");c(f,d,ze,"⨂","\\bigotimes");c(f,d,ze,"⨁","\\bigoplus");c(f,d,ze,"⨀","\\bigodot");c(f,d,ze,"∮","\\oint");c(f,d,ze,"∯","\\oiint");c(f,d,ze,"∰","\\oiiint");c(f,d,ze,"⨆","\\bigsqcup");c(f,d,ze,"∫","\\smallint");c(B,d,rr,"…","\\textellipsis");c(f,d,rr,"…","\\mathellipsis");c(B,d,rr,"…","\\ldots",!0);c(f,d,rr,"…","\\ldots",!0);c(f,d,rr,"⋯","\\@cdots",!0);c(f,d,rr,"⋱","\\ddots",!0);c(f,d,z,"⋮","\\varvdots");c(f,d,ge,"ˊ","\\acute");c(f,d,ge,"ˋ","\\grave");c(f,d,ge,"¨","\\ddot");c(f,d,ge,"~","\\tilde");c(f,d,ge,"ˉ","\\bar");c(f,d,ge,"˘","\\breve");c(f,d,ge,"ˇ","\\check");c(f,d,ge,"^","\\hat");c(f,d,ge,"⃗","\\vec");c(f,d,ge,"˙","\\dot");c(f,d,ge,"˚","\\mathring");c(f,d,X,"","\\@imath");c(f,d,X,"","\\@jmath");c(f,d,z,"ı","ı");c(f,d,z,"ȷ","ȷ");c(B,d,z,"ı","\\i",!0);c(B,d,z,"ȷ","\\j",!0);c(B,d,z,"ß","\\ss",!0);c(B,d,z,"æ","\\ae",!0);c(B,d,z,"œ","\\oe",!0);c(B,d,z,"ø","\\o",!0);c(B,d,z,"Æ","\\AE",!0);c(B,d,z,"Œ","\\OE",!0);c(B,d,z,"Ø","\\O",!0);c(B,d,ge,"ˊ","\\'");c(B,d,ge,"ˋ","\\`");c(B,d,ge,"ˆ","\\^");c(B,d,ge,"˜","\\~");c(B,d,ge,"ˉ","\\=");c(B,d,ge,"˘","\\u");c(B,d,ge,"˙","\\.");c(B,d,ge,"¸","\\c");c(B,d,ge,"˚","\\r");c(B,d,ge,"ˇ","\\v");c(B,d,ge,"¨",'\\"');c(B,d,ge,"˝","\\H");c(B,d,ge,"◯","\\textcircled");var ls={"--":!0,"---":!0,"``":!0,"''":!0};c(B,d,z,"–","--",!0);c(B,d,z,"–","\\textendash");c(B,d,z,"—","---",!0);c(B,d,z,"—","\\textemdash");c(B,d,z,"‘","`",!0);c(B,d,z,"‘","\\textquoteleft");c(B,d,z,"’","'",!0);c(B,d,z,"’","\\textquoteright");c(B,d,z,"“","``",!0);c(B,d,z,"“","\\textquotedblleft");c(B,d,z,"”","''",!0);c(B,d,z,"”","\\textquotedblright");c(f,d,z,"°","\\degree",!0);c(B,d,z,"°","\\degree");c(B,d,z,"°","\\textdegree",!0);c(f,d,z,"£","\\pounds");c(f,d,z,"£","\\mathsterling",!0);c(B,d,z,"£","\\pounds");c(B,d,z,"£","\\textsterling",!0);c(f,b,z,"✠","\\maltese");c(B,b,z,"✠","\\maltese");var aa='0123456789/@."';for(var Ln=0;Ln0)return nt(a,u,i,r,l.concat(m));if(o){var h,g;if(o==="boldsymbol"){var p=Of(a,i,r,l,n);h=p.fontName,g=[p.fontClass]}else s?(h=us[o].fontName,g=[o]):(h=Pr(o,r.fontWeight,r.fontShape),g=[o,r.fontWeight,r.fontShape]);if(cn(a,h,i).metrics)return nt(a,h,i,r,l.concat(g));if(ls.hasOwnProperty(a)&&h.slice(0,10)==="Typewriter"){for(var v=[],x=0;x{if(Mt(e.classes)!==Mt(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},Vf=e=>{for(var t=0;tr&&(r=l.height),l.depth>n&&(n=l.depth),l.maxFontSize>i&&(i=l.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},Oe=function(t,r,n,i){var a=new Mr(t,r,n,i);return O0(a),a},ss=(e,t,r,n)=>new Mr(e,t,r,n),jf=function(t,r,n){var i=Oe([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=O(i.height),i.maxFontSize=1,i},$f=function(t,r,n,i){var a=new P0(t,r,n,i);return O0(a),a},os=function(t){var r=new Tr(t);return O0(r),r},Uf=function(t,r){return t instanceof Tr?Oe([],[t],r):t},_f=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,l=1;l{var r=Oe(["mspace"],[],t),n=ve(e,t);return r.style.marginRight=O(n),r},Pr=function(t,r,n){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},us={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},cs={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Yf=function(t,r){var[n,i,a]=cs[t],l=new Ct(n),s=new vt([l],{width:O(i),height:O(a),style:"width:"+O(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),o=ss(["overlay"],[s],r);return o.height=a,o.style.height=O(a),o.style.width=O(i),o},C={fontMap:us,makeSymbol:nt,mathsym:Pf,makeSpan:Oe,makeSvgSpan:ss,makeLineSpan:jf,makeAnchor:$f,makeFragment:os,wrapFragment:Uf,makeVList:Gf,makeOrd:qf,makeGlue:Wf,staticSvg:Yf,svgData:cs,tryCombineChars:Vf},ye={number:3,unit:"mu"},Pt={number:4,unit:"mu"},pt={number:5,unit:"mu"},Xf={mord:{mop:ye,mbin:Pt,mrel:pt,minner:ye},mop:{mord:ye,mop:ye,mrel:pt,minner:ye},mbin:{mord:Pt,mop:Pt,mopen:Pt,minner:Pt},mrel:{mord:pt,mop:pt,mopen:pt,minner:pt},mopen:{},mclose:{mop:ye,mbin:Pt,mrel:pt,minner:ye},mpunct:{mord:ye,mop:ye,mrel:pt,mopen:ye,mclose:ye,mpunct:ye,minner:ye},minner:{mord:ye,mop:ye,mbin:Pt,mrel:pt,mopen:ye,mpunct:ye,minner:ye}},Kf={mord:{mop:ye},mop:{mord:ye,mop:ye},mbin:{},mrel:{},mopen:{},mclose:{mop:ye},mpunct:{},minner:{mop:ye}},hs={},Qr={},Jr={};function j(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:l}=e,s={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},o=0;o{var M=x.classes[0],A=v.classes[0];M==="mbin"&&Y.contains(Qf,A)?x.classes[0]="mord":A==="mbin"&&Y.contains(Zf,M)&&(v.classes[0]="mord")},{node:h},g,p),ca(a,(v,x)=>{var M=u0(x),A=u0(v),T=M&&A?v.hasClass("mtight")?Kf[M][A]:Xf[M][A]:null;if(T)return C.makeGlue(T,u)},{node:h},g,p),a},ca=function e(t,r,n,i,a){i&&t.push(i);for(var l=0;lg=>{t.splice(h+1,0,g),l++})(l)}i&&t.pop()},ms=function(t){return t instanceof Tr||t instanceof P0||t instanceof Mr&&t.hasClass("enclosing")?t:null},t2=function e(t,r){var n=ms(t);if(n){var i=n.children;if(i.length){if(r==="right")return e(i[i.length-1],"right");if(r==="left")return e(i[0],"left")}}return t},u0=function(t,r){return t?(r&&(t=t2(t,r)),e2[t.classes[0]]||null):null},wr=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return bt(r.concat(n))},oe=function(t,r,n){if(!t)return bt();if(Qr[t.type]){var i=Qr[t.type](t,r);if(n&&r.size!==n.size){i=bt(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new L("Got group of unknown type: '"+t.type+"'")};function Or(e,t){var r=bt(["base"],e,t),n=bt(["strut"]);return n.style.height=O(r.height+r.depth),r.depth&&(n.style.verticalAlign=O(-r.depth)),r.children.unshift(n),r}function c0(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=Te(e,t,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],l=[],s=0;s0&&(a.push(Or(l,t)),l=[]),a.push(n[s]));l.length>0&&a.push(Or(l,t));var u;r?(u=Or(Te(r,t,!0)),u.classes=["tag"],a.push(u)):i&&a.push(i);var m=bt(["katex-html"],a);if(m.setAttribute("aria-hidden","true"),u){var h=u.children[0];h.style.height=O(m.height+m.depth),m.depth&&(h.style.verticalAlign=O(-m.depth))}return m}function fs(e){return new Tr(e)}class Ye{constructor(t,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=Mt(this.classes));for(var n=0;n0&&(t+=' class ="'+Y.escape(Mt(this.classes))+'"'),t+=">";for(var n=0;n",t}toText(){return this.children.map(t=>t.toText()).join("")}}class dr{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Y.escape(this.toText())}toText(){return this.text}}class r2{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",O(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var F={MathNode:Ye,TextNode:dr,SpaceNode:r2,newDocumentFragment:fs},Qe=function(t,r,n){return fe[r][t]&&fe[r][t].replace&&t.charCodeAt(0)!==55349&&!(ls.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=fe[r][t].replace),new F.TextNode(t)},q0=function(t){return t.length===1?t[0]:new F.MathNode("mrow",t)},H0=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=t.text;if(Y.contains(["\\imath","\\jmath"],a))return null;fe[i][a]&&fe[i][a].replace&&(a=fe[i][a].replace);var l=C.fontMap[n].fontName;return R0(a,l,i)?C.fontMap[n].variant:null},qe=function(t,r,n){if(t.length===1){var i=he(t[0],r);return n&&i instanceof Ye&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],l,s=0;s0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),a.pop())}}}a.push(o),l=o}return a},Et=function(t,r,n){return q0(qe(t,r,n))},he=function(t,r){if(!t)return new F.MathNode("mrow");if(Jr[t.type]){var n=Jr[t.type](t,r);return n}else throw new L("Got group of unknown type: '"+t.type+"'")};function ha(e,t,r,n,i){var a=qe(e,r),l;a.length===1&&a[0]instanceof Ye&&Y.contains(["mrow","mtable"],a[0].type)?l=a[0]:l=new F.MathNode("mrow",a);var s=new F.MathNode("annotation",[new F.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var o=new F.MathNode("semantics",[l,s]),u=new F.MathNode("math",[o]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var m=i?"katex":"katex-mathml";return C.makeSpan([m],[u])}var ps=function(t){return new dt({style:t.displayMode?K.DISPLAY:K.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},ds=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=C.makeSpan(n,[t])}return t},n2=function(t,r,n){var i=ps(n),a;if(n.output==="mathml")return ha(t,r,i,n.displayMode,!0);if(n.output==="html"){var l=c0(t,i);a=C.makeSpan(["katex"],[l])}else{var s=ha(t,r,i,n.displayMode,!1),o=c0(t,i);a=C.makeSpan(["katex"],[s,o])}return ds(a,n)},i2=function(t,r,n){var i=ps(n),a=c0(t,i),l=C.makeSpan(["katex"],[a]);return ds(l,n)},a2={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},l2=function(t){var r=new F.MathNode("mo",[new F.TextNode(a2[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},s2={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},o2=function(t){return t.type==="ordgroup"?t.body.length:1},u2=function(t,r){function n(){var s=4e5,o=t.label.slice(1);if(Y.contains(["widehat","widecheck","widetilde","utilde"],o)){var u=t,m=o2(u.base),h,g,p;if(m>5)o==="widehat"||o==="widecheck"?(h=420,s=2364,p=.42,g=o+"4"):(h=312,s=2340,p=.34,g="tilde4");else{var v=[1,1,2,2,3,3][m];o==="widehat"||o==="widecheck"?(s=[0,1062,2364,2364,2364][v],h=[0,239,300,360,420][v],p=[0,.24,.3,.3,.36,.42][v],g=o+v):(s=[0,600,1033,2339,2340][v],h=[0,260,286,306,312][v],p=[0,.26,.286,.3,.306,.34][v],g="tilde"+v)}var x=new Ct(g),M=new vt([x],{width:"100%",height:O(p),viewBox:"0 0 "+s+" "+h,preserveAspectRatio:"none"});return{span:C.makeSvgSpan([],[M],r),minWidth:0,height:p}}else{var A=[],T=s2[o],[D,q,R]=T,E=R/1e3,$=D.length,Z,_;if($===1){var I=T[3];Z=["hide-tail"],_=[I]}else if($===2)Z=["halfarrow-left","halfarrow-right"],_=["xMinYMin","xMaxYMin"];else if($===3)Z=["brace-left","brace-center","brace-right"],_=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+$+" children.");for(var U=0;U<$;U++){var V=new Ct(D[U]),le=new vt([V],{width:"400em",height:O(E),viewBox:"0 0 "+s+" "+R,preserveAspectRatio:_[U]+" slice"}),ne=C.makeSvgSpan([Z[U]],[le],r);if($===1)return{span:ne,minWidth:q,height:E};ne.style.height=O(E),A.push(ne)}return{span:C.makeSpan(["stretchy"],A,r),minWidth:q,height:E}}}var{span:i,minWidth:a,height:l}=n();return i.height=l,i.style.height=O(l),a>0&&(i.style.minWidth=O(a)),i},c2=function(t,r,n,i,a){var l,s=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(l=C.makeSpan(["stretchy",r],[],a),r==="fbox"){var o=a.color&&a.getColor();o&&(l.style.borderColor=o)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new s0({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new s0({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var m=new vt(u,{width:"100%",height:O(s)});l=C.makeSvgSpan([],[m],a)}return l.height=s,l.style.height=O(s),l},xt={encloseSpan:c2,mathMLnode:l2,svgSpan:u2};function re(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function V0(e){var t=hn(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function hn(e){return e&&(e.type==="atom"||Lf.hasOwnProperty(e.type))?e:null}var j0=(e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=re(e.base,"accent"),r=n.base,e.base=r,i=Bf(oe(e,t)),e.base=n):(n=re(e,"accent"),r=n.base);var a=oe(r,t.havingCrampedStyle()),l=n.isShifty&&Y.isCharacterBox(r),s=0;if(l){var o=Y.getBaseElem(r),u=oe(o,t.havingCrampedStyle());s=ia(u).skew}var m=n.label==="\\c",h=m?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),g;if(n.isStretchy)g=xt.svgSpan(n,t),g=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:g,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+O(2*s)+")",marginLeft:O(2*s)}:void 0}]},t);else{var p,v;n.label==="\\vec"?(p=C.staticSvg("vec",t),v=C.svgData.vec[1]):(p=C.makeOrd({mode:n.mode,text:n.label},t,"textord"),p=ia(p),p.italic=0,v=p.width,m&&(h+=p.depth)),g=C.makeSpan(["accent-body"],[p]);var x=n.label==="\\textcircled";x&&(g.classes.push("accent-full"),h=a.height);var M=s;x||(M-=v/2),g.style.left=O(M),n.label==="\\textcircled"&&(g.style.top=".2em"),g=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-h},{type:"elem",elem:g}]},t)}var A=C.makeSpan(["mord","accent"],[g],t);return i?(i.children[0]=A,i.height=Math.max(A.height,i.height),i.classes[0]="mord",i):A},gs=(e,t)=>{var r=e.isStretchy?xt.mathMLnode(e.label):new F.MathNode("mo",[Qe(e.label,e.mode)]),n=new F.MathNode("mover",[he(e.base,t),r]);return n.setAttribute("accent","true"),n},h2=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));j({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=en(t[0]),n=!h2.test(e.funcName),i=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:j0,mathmlBuilder:gs});j({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:j0,mathmlBuilder:gs});j({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(e,t)=>{var r=oe(e.base,t),n=xt.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=C.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]},t);return C.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var r=xt.mathMLnode(e.label),n=new F.MathNode("munder",[he(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var qr=e=>{var t=new F.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};j({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:i}=e;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),i=C.wrapFragment(oe(e.body,n,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var l;e.below&&(n=t.havingStyle(r.sub()),l=C.wrapFragment(oe(e.below,n,t),t),l.classes.push(a+"-arrow-pad"));var s=xt.svgSpan(e,t),o=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(u-=i.depth);var m;if(l){var h=-t.fontMetrics().axisHeight+l.height+.5*s.height+.111;m=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:s,shift:o},{type:"elem",elem:l,shift:h}]},t)}else m=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:s,shift:o}]},t);return m.children[0].children[0].children[1].classes.push("svg-align"),C.makeSpan(["mrel","x-arrow"],[m],t)},mathmlBuilder(e,t){var r=xt.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var i=qr(he(e.body,t));if(e.below){var a=qr(he(e.below,t));n=new F.MathNode("munderover",[r,a,i])}else n=new F.MathNode("mover",[r,i])}else if(e.below){var l=qr(he(e.below,t));n=new F.MathNode("munder",[r,l])}else n=qr(),n=new F.MathNode("mover",[r,n]);return n}});var m2=C.makeSpan;function ys(e,t){var r=Te(e.body,t,!0);return m2([e.mclass],r,t)}function vs(e,t){var r,n=qe(e.body,t);return e.mclass==="minner"?r=new F.MathNode("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new F.MathNode("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new F.MathNode("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}j({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:we(i),isCharacterBox:Y.isCharacterBox(i)}},htmlBuilder:ys,mathmlBuilder:vs});var mn=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};j({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:mn(t[0]),body:we(t[1]),isCharacterBox:Y.isCharacterBox(t[1])}}});j({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,i=t[1],a=t[0],l;n!=="\\stackrel"?l=mn(i):l="mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:we(i)},o={type:"supsub",mode:a.mode,base:s,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:l,body:[o],isCharacterBox:Y.isCharacterBox(o)}},htmlBuilder:ys,mathmlBuilder:vs});j({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:mn(t[0]),body:we(t[0])}},htmlBuilder(e,t){var r=Te(e.body,t,!0),n=C.makeSpan([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=qe(e.body,t),n=new F.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var f2={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},ma=()=>({type:"styling",body:[],mode:"math",style:"display"}),fa=e=>e.type==="textord"&&e.text==="@",p2=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function d2(e,t,r){var n=f2[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},l=r.callFunction("\\Big",[a],[]),s=r.callFunction("\\\\cdright",[t[1]],[]),o={type:"ordgroup",mode:"math",body:[i,l,s]};return r.callFunction("\\\\cdparent",[o],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function g2(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new L("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],a=0;a-1))if("<>AV".indexOf(u)>-1)for(var h=0;h<2;h++){for(var g=!0,p=o+1;pAV=|." after @',l[o]);var v=d2(u,m,e),x={type:"styling",body:[v],mode:"math",style:"display"};n.push(x),s=ma()}a%2===0?n.push(s):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var M=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:M,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}j({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=C.wrapFragment(oe(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=O(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new F.MathNode("mrow",[he(e.label,t)]);return r=new F.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new F.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});j({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=C.wrapFragment(oe(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new F.MathNode("mrow",[he(e.fragment,t)])}});j({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=re(t[0],"ordgroup"),i=n.body,a="",l=0;l=1114111)throw new L("\\@char with invalid code point "+a);return o<=65535?u=String.fromCharCode(o):(o-=65536,u=String.fromCharCode((o>>10)+55296,(o&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var bs=(e,t)=>{var r=Te(e.body,t.withColor(e.color),!1);return C.makeFragment(r)},xs=(e,t)=>{var r=qe(e.body,t.withColor(e.color)),n=new F.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};j({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=re(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:n,body:we(i)}},htmlBuilder:bs,mathmlBuilder:xs});j({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,i=re(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:bs,mathmlBuilder:xs});j({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&re(i,"size").value}},htmlBuilder(e,t){var r=C.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=O(ve(e.size,t)))),r},mathmlBuilder(e,t){var r=new F.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",O(ve(e.size,t)))),r}});var h0={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},ws=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new L("Expected a control sequence",e);return t},y2=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},ks=(e,t,r,n)=>{var i=e.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,i,n)};j({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(h0[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=h0[n.text]),re(t.parseFunction(),"internal");throw new L("Invalid token after macro prefix",n)}});j({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new L("Expected a control sequence",n);for(var a=0,l,s=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){l=t.gullet.future(),s[a].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new L('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new L('Argument number "'+n.text+'" out of order');a++,s.push([])}else{if(n.text==="EOF")throw new L("Expected a macro definition");s[a].push(n.text)}var{tokens:o}=t.gullet.consumeArg();return l&&o.unshift(l),(r==="\\edef"||r==="\\xdef")&&(o=t.gullet.expandTokens(o),o.reverse()),t.gullet.macros.set(i,{tokens:o,numArgs:a,delimiters:s},r===h0[r]),{type:"internal",mode:t.mode}}});j({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=ws(t.gullet.popToken());t.gullet.consumeSpaces();var i=y2(t);return ks(t,n,i,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});j({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=ws(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return ks(t,n,a,r==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var mr=function(t,r,n){var i=fe.math[t]&&fe.math[t].replace,a=R0(i||t,r,n);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return a},$0=function(t,r,n,i){var a=n.havingBaseStyle(r),l=C.makeSpan(i.concat(a.sizingClasses(n)),[t],n),s=a.sizeMultiplier/n.sizeMultiplier;return l.height*=s,l.depth*=s,l.maxFontSize=a.sizeMultiplier,l},Ss=function(t,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=O(a),t.height-=a,t.depth+=a},v2=function(t,r,n,i,a,l){var s=C.makeSymbol(t,"Main-Regular",a,i),o=$0(s,r,i,l);return n&&Ss(o,i,r),o},b2=function(t,r,n,i){return C.makeSymbol(t,"Size"+r+"-Regular",n,i)},As=function(t,r,n,i,a,l){var s=b2(t,r,a,i),o=$0(C.makeSpan(["delimsizing","size"+r],[s],i),K.TEXT,i,l);return n&&Ss(o,i,K.TEXT),o},qn=function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=C.makeSpan(["delimsizinginner",i],[C.makeSpan([],[C.makeSymbol(t,r,n)])]);return{type:"elem",elem:a}},Hn=function(t,r,n){var i=st["Size4-Regular"][t.charCodeAt(0)]?st["Size4-Regular"][t.charCodeAt(0)][4]:st["Size1-Regular"][t.charCodeAt(0)][4],a=new Ct("inner",zf(t,Math.round(1e3*r))),l=new vt([a],{width:O(i),height:O(r),style:"width:"+O(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),s=C.makeSvgSpan([],[l],n);return s.height=r,s.style.height=O(r),s.style.width=O(i),{type:"elem",elem:s}},m0=.008,Hr={type:"kern",size:-1*m0},x2=["|","\\lvert","\\rvert","\\vert"],w2=["\\|","\\lVert","\\rVert","\\Vert"],zs=function(t,r,n,i,a,l){var s,o,u,m,h="",g=0;s=u=m=t,o=null;var p="Size1-Regular";t==="\\uparrow"?u=m="⏐":t==="\\Uparrow"?u=m="‖":t==="\\downarrow"?s=u="⏐":t==="\\Downarrow"?s=u="‖":t==="\\updownarrow"?(s="\\uparrow",u="⏐",m="\\downarrow"):t==="\\Updownarrow"?(s="\\Uparrow",u="‖",m="\\Downarrow"):Y.contains(x2,t)?(u="∣",h="vert",g=333):Y.contains(w2,t)?(u="∥",h="doublevert",g=556):t==="["||t==="\\lbrack"?(s="⎡",u="⎢",m="⎣",p="Size4-Regular",h="lbrack",g=667):t==="]"||t==="\\rbrack"?(s="⎤",u="⎥",m="⎦",p="Size4-Regular",h="rbrack",g=667):t==="\\lfloor"||t==="⌊"?(u=s="⎢",m="⎣",p="Size4-Regular",h="lfloor",g=667):t==="\\lceil"||t==="⌈"?(s="⎡",u=m="⎢",p="Size4-Regular",h="lceil",g=667):t==="\\rfloor"||t==="⌋"?(u=s="⎥",m="⎦",p="Size4-Regular",h="rfloor",g=667):t==="\\rceil"||t==="⌉"?(s="⎤",u=m="⎥",p="Size4-Regular",h="rceil",g=667):t==="("||t==="\\lparen"?(s="⎛",u="⎜",m="⎝",p="Size4-Regular",h="lparen",g=875):t===")"||t==="\\rparen"?(s="⎞",u="⎟",m="⎠",p="Size4-Regular",h="rparen",g=875):t==="\\{"||t==="\\lbrace"?(s="⎧",o="⎨",m="⎩",u="⎪",p="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(s="⎫",o="⎬",m="⎭",u="⎪",p="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(s="⎧",m="⎩",u="⎪",p="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(s="⎫",m="⎭",u="⎪",p="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(s="⎧",m="⎭",u="⎪",p="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(s="⎫",m="⎩",u="⎪",p="Size4-Regular");var v=mr(s,p,a),x=v.height+v.depth,M=mr(u,p,a),A=M.height+M.depth,T=mr(m,p,a),D=T.height+T.depth,q=0,R=1;if(o!==null){var E=mr(o,p,a);q=E.height+E.depth,R=2}var $=x+D+q,Z=Math.max(0,Math.ceil((r-$)/(R*A))),_=$+Z*R*A,I=i.fontMetrics().axisHeight;n&&(I*=i.sizeMultiplier);var U=_/2-I,V=[];if(h.length>0){var le=_-x-D,ne=Math.round(_*1e3),J=Tf(h,Math.round(le*1e3)),pe=new Ct(h,J),de=(g/1e3).toFixed(3)+"em",Me=(ne/1e3).toFixed(3)+"em",He=new vt([pe],{width:de,height:Me,viewBox:"0 0 "+g+" "+ne}),k=C.makeSvgSpan([],[He],i);k.height=ne/1e3,k.style.width=de,k.style.height=Me,V.push({type:"elem",elem:k})}else{if(V.push(qn(m,p,a)),V.push(Hr),o===null){var ke=_-x-D+2*m0;V.push(Hn(u,ke,i))}else{var be=(_-x-D-q)/2+2*m0;V.push(Hn(u,be,i)),V.push(Hr),V.push(qn(o,p,a)),V.push(Hr),V.push(Hn(u,be,i))}V.push(Hr),V.push(qn(s,p,a))}var S=i.havingBaseStyle(K.TEXT),De=C.makeVList({positionType:"bottom",positionData:U,children:V},S);return $0(C.makeSpan(["delimsizing","mult"],[De],S),K.TEXT,i,l)},Vn=80,jn=.08,$n=function(t,r,n,i,a){var l=Af(t,i,n),s=new Ct(t,l),o=new vt([s],{width:"400em",height:O(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return C.makeSvgSpan(["hide-tail"],[o],a)},k2=function(t,r){var n=r.havingBaseSizing(),i=Es("\\surd",t*n.sizeMultiplier,Cs,n),a=n.sizeMultiplier,l=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),s,o=0,u=0,m=0,h;return i.type==="small"?(m=1e3+1e3*l+Vn,t<1?a=1:t<1.4&&(a=.7),o=(1+l+jn)/a,u=(1+l)/a,s=$n("sqrtMain",o,m,l,r),s.style.minWidth="0.853em",h=.833/a):i.type==="large"?(m=(1e3+Vn)*gr[i.size],u=(gr[i.size]+l)/a,o=(gr[i.size]+l+jn)/a,s=$n("sqrtSize"+i.size,o,m,l,r),s.style.minWidth="1.02em",h=1/a):(o=t+l+jn,u=t+l,m=Math.floor(1e3*t+l)+Vn,s=$n("sqrtTall",o,m,l,r),s.style.minWidth="0.742em",h=1.056),s.height=u,s.style.height=O(o),{span:s,advanceWidth:h,ruleWidth:(r.fontMetrics().sqrtRuleThickness+l)*a}},Ts=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],S2=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Ms=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],gr=[0,1.2,1.8,2.4,3],A2=function(t,r,n,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Y.contains(Ts,t)||Y.contains(Ms,t))return As(t,r,!1,n,i,a);if(Y.contains(S2,t))return zs(t,gr[r],!1,n,i,a);throw new L("Illegal delimiter: '"+t+"'")},z2=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],T2=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"stack"}],Cs=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],M2=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},Es=function(t,r,n,i){for(var a=Math.min(2,3-i.style.size),l=a;lr)return n[l]}return n[n.length-1]},Ds=function(t,r,n,i,a,l){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var s;Y.contains(Ms,t)?s=z2:Y.contains(Ts,t)?s=Cs:s=T2;var o=Es(t,r,s,i);return o.type==="small"?v2(t,o.style,n,i,a,l):o.type==="large"?As(t,o.size,n,i,a,l):zs(t,r,n,i,a,l)},C2=function(t,r,n,i,a,l){var s=i.fontMetrics().axisHeight*i.sizeMultiplier,o=901,u=5/i.fontMetrics().ptPerEm,m=Math.max(r-s,n+s),h=Math.max(m/500*o,2*m-u);return Ds(t,h,!0,i,a,l)},yt={sqrtImage:k2,sizedDelim:A2,sizeToMaxHeight:gr,customSizedDelim:Ds,leftRightDelim:C2},pa={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},E2=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function fn(e,t){var r=hn(e);if(r&&Y.contains(E2,r.text))return r;throw r?new L("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new L("Invalid delimiter type '"+e.type+"'",e)}j({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=fn(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:pa[e.funcName].size,mclass:pa[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?C.makeSpan([e.mclass]):yt.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Qe(e.delim,e.mode));var r=new F.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=O(yt.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function da(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}j({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new L("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:fn(t[0],e).text,color:r}}});j({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=fn(t[0],e),n=e.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=re(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{da(e);for(var r=Te(e.body,t,!0,["mopen","mclose"]),n=0,i=0,a=!1,l=0;l{da(e);var r=qe(e.body,t);if(e.left!=="."){var n=new F.MathNode("mo",[Qe(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new F.MathNode("mo",[Qe(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return q0(r)}});j({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=fn(t[0],e);if(!e.parser.leftrightDepth)throw new L("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=wr(t,[]);else{r=yt.sizedDelim(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?Qe("|","text"):Qe(e.delim,e.mode),n=new F.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var U0=(e,t)=>{var r=C.wrapFragment(oe(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,a,l=0,s=Y.isCharacterBox(e.body);if(n==="sout")a=C.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,l=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var o=ve({number:.6,unit:"pt"},t),u=ve({number:.35,unit:"ex"},t),m=t.havingBaseSizing();i=i/m.sizeMultiplier;var h=r.height+r.depth+o+u;r.style.paddingLeft=O(h/2+o);var g=Math.floor(1e3*h*i),p=kf(g),v=new vt([new Ct("phase",p)],{width:"400em",height:O(g/1e3),viewBox:"0 0 400000 "+g,preserveAspectRatio:"xMinYMin slice"});a=C.makeSvgSpan(["hide-tail"],[v],t),a.style.height=O(h),l=r.depth+o+u}else{/cancel/.test(n)?s||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var x=0,M=0,A=0;/box/.test(n)?(A=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),x=t.fontMetrics().fboxsep+(n==="colorbox"?0:A),M=x):n==="angl"?(A=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),x=4*A,M=Math.max(0,.25-r.depth)):(x=s?.2:0,M=x),a=xt.encloseSpan(r,n,x,M,t),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=O(A)):n==="angl"&&A!==.049&&(a.style.borderTopWidth=O(A),a.style.borderRightWidth=O(A)),l=r.depth+M,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var T;if(e.backgroundColor)T=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:l},{type:"elem",elem:r,shift:0}]},t);else{var D=/cancel|phase/.test(n)?["svg-align"]:[];T=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:l,wrapperClasses:D}]},t)}return/cancel/.test(n)&&(T.height=r.height,T.depth=r.depth),/cancel/.test(n)&&!s?C.makeSpan(["mord","cancel-lap"],[T],t):C.makeSpan(["mord"],[T],t)},_0=(e,t)=>{var r=0,n=new F.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[he(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};j({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=re(t[0],"color-token").color,l=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:l}},htmlBuilder:U0,mathmlBuilder:_0});j({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=re(t[0],"color-token").color,l=re(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:l,borderColor:a,body:s}},htmlBuilder:U0,mathmlBuilder:_0});j({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});j({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:U0,mathmlBuilder:_0});j({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var Is={};function ut(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:l}=e,s={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},o=0;o{var t=e.parser.settings;if(!t.displayMode)throw new L("{"+e.envName+"} can be used only in display mode.")};function G0(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function It(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:l,colSeparationType:s,autoTag:o,singleRow:u,emptySingleRow:m,maxNumCols:h,leqno:g}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!l){var p=e.gullet.expandMacroAsText("\\arraystretch");if(p==null)l=1;else if(l=parseFloat(p),!l||l<0)throw new L("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var v=[],x=[v],M=[],A=[],T=o!=null?[]:void 0;function D(){o&&e.gullet.macros.set("\\@eqnsw","1",!0)}function q(){T&&(e.gullet.macros.get("\\df@tag")?(T.push(e.subparse([new Ke("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):T.push(!!o&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(D(),A.push(ga(e));;){var R=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),R={type:"ordgroup",mode:e.mode,body:R},r&&(R={type:"styling",mode:e.mode,style:r,body:[R]}),v.push(R);var E=e.fetch().text;if(E==="&"){if(h&&v.length===h){if(u||s)throw new L("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(E==="\\end"){q(),v.length===1&&R.type==="styling"&&R.body[0].body.length===0&&(x.length>1||!m)&&x.pop(),A.length0&&(D+=.25),u.push({pos:D,isDashed:_t[Bt]})}for(q(l[0]),n=0;n0&&(U+=T,$_t))for(n=0;n=s)){var Ge=void 0;(i>0||t.hskipBeforeAndAfter)&&(Ge=Y.deflt(be.pregap,g),Ge!==0&&(J=C.makeSpan(["arraycolsep"],[]),J.style.width=O(Ge),ne.push(J)));var Ie=[];for(n=0;n0){for(var gn=C.makeLineSpan("hline",r,m),yn=C.makeLineSpan("hdashline",r,m),ir=[{type:"elem",elem:o,shift:0}];u.length>0;){var ar=u.pop(),lr=ar.pos-V;ar.isDashed?ir.push({type:"elem",elem:yn,shift:lr}):ir.push({type:"elem",elem:gn,shift:lr})}o=C.makeVList({positionType:"individualShift",children:ir},r)}if(de.length===0)return C.makeSpan(["mord"],[o],r);var Ut=C.makeVList({positionType:"individualShift",children:de},r);return Ut=C.makeSpan(["tag"],[Ut],r),C.makeFragment([o,Ut])},D2={c:"center ",l:"left ",r:"right "},ht=function(t,r){for(var n=[],i=new F.MathNode("mtd",[],["mtr-glue"]),a=new F.MathNode("mtd",[],["mml-eqn-num"]),l=0;l0){var v=t.cols,x="",M=!1,A=0,T=v.length;v[0].type==="separator"&&(g+="top ",A=1),v[v.length-1].type==="separator"&&(g+="bottom ",T-=1);for(var D=A;D0?"left ":"",g+=Z[Z.length-1].length>0?"right ":"";for(var _=1;_-1?"alignat":"align",a=t.envName==="split",l=It(t.parser,{cols:n,addJot:!0,autoTag:a?void 0:G0(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),s,o=0,u={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var m="",h=0;h0&&p&&(M=1),n[v]={type:"align",align:x,pregap:M,postgap:0}}return l.colSeparationType=p?"align":"alignat",l};ut({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=hn(t[0]),n=r?[t[0]]:re(t[0],"ordgroup").body,i=n.map(function(l){var s=V0(l),o=s.text;if("lcr".indexOf(o)!==-1)return{type:"align",align:o};if(o==="|")return{type:"separator",separator:"|"};if(o===":")return{type:"separator",separator:":"};throw new L("Unknown column alignment: "+o,l)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return It(e.parser,a,W0(e.envName))},htmlBuilder:ct,mathmlBuilder:ht});ut({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,"lcr".indexOf(r)===-1)throw new L("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=It(e.parser,n,W0(e.envName)),l=Math.max(0,...a.body.map(s=>s.length));return a.cols=new Array(l).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:ct,mathmlBuilder:ht});ut({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=It(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:ct,mathmlBuilder:ht});ut({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=hn(t[0]),n=r?[t[0]]:re(t[0],"ordgroup").body,i=n.map(function(l){var s=V0(l),o=s.text;if("lc".indexOf(o)!==-1)return{type:"align",align:o};throw new L("Unknown column alignment: "+o,l)});if(i.length>1)throw new L("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=It(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new L("{subarray} can contain only one column");return a},htmlBuilder:ct,mathmlBuilder:ht});ut({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=It(e.parser,t,W0(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:ct,mathmlBuilder:ht});ut({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Bs,htmlBuilder:ct,mathmlBuilder:ht});ut({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Y.contains(["gather","gather*"],e.envName)&&pn(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:G0(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return It(e.parser,t,"display")},htmlBuilder:ct,mathmlBuilder:ht});ut({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Bs,htmlBuilder:ct,mathmlBuilder:ht});ut({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){pn(e);var t={autoTag:G0(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return It(e.parser,t,"display")},htmlBuilder:ct,mathmlBuilder:ht});ut({type:"array",names:["CD"],props:{numArgs:0},handler(e){return pn(e),g2(e.parser)},htmlBuilder:ct,mathmlBuilder:ht});y("\\nonumber","\\gdef\\@eqnsw{0}");y("\\notag","\\nonumber");j({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new L(e.funcName+" valid only within array environment")}});var ya=Is;j({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if(i.type!=="ordgroup")throw new L("Invalid environment name",i);for(var a="",l=0;l{var r=e.font,n=t.withFont(r);return oe(e.body,n)},Ls=(e,t)=>{var r=e.font,n=t.withFont(r);return he(e.body,n)},va={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};j({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=en(t[0]),a=n;return a in va&&(a=va[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:Fs,mathmlBuilder:Ls});j({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0],i=Y.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:mn(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:i}}});j({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:i}=e,{mode:a}=r,l=r.parseExpression(!0,i),s="math"+n.slice(1);return{type:"font",mode:a,font:s,body:{type:"ordgroup",mode:r.mode,body:l}}},htmlBuilder:Fs,mathmlBuilder:Ls});var Rs=(e,t)=>{var r=t;return e==="display"?r=r.id>=K.SCRIPT.id?r.text():K.DISPLAY:e==="text"&&r.size===K.DISPLAY.size?r=K.TEXT:e==="script"?r=K.SCRIPT:e==="scriptscript"&&(r=K.SCRIPTSCRIPT),r},Y0=(e,t)=>{var r=Rs(e.size,t.style),n=r.fracNum(),i=r.fracDen(),a;a=t.havingStyle(n);var l=oe(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,o=3.5/t.fontMetrics().ptPerEm;l.height=l.height0?v=3*g:v=7*g,x=t.fontMetrics().denom1):(h>0?(p=t.fontMetrics().num2,v=g):(p=t.fontMetrics().num3,v=3*g),x=t.fontMetrics().denom2);var M;if(m){var T=t.fontMetrics().axisHeight;p-l.depth-(T+.5*h){var r=new F.MathNode("mfrac",[he(e.numer,t),he(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=ve(e.barSize,t);r.setAttribute("linethickness",O(n))}var i=Rs(e.size,t.style);if(i.size!==t.style.size){r=new F.MathNode("mstyle",[r]);var a=i.size===K.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",a),r.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var l=[];if(e.leftDelim!=null){var s=new F.MathNode("mo",[new F.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),l.push(s)}if(l.push(r),e.rightDelim!=null){var o=new F.MathNode("mo",[new F.TextNode(e.rightDelim.replace("\\",""))]);o.setAttribute("fence","true"),l.push(o)}return q0(l)}return r};j({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=t[1],l,s=null,o=null,u="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":l=!0;break;case"\\\\atopfrac":l=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":l=!1,s="(",o=")";break;case"\\\\bracefrac":l=!1,s="\\{",o="\\}";break;case"\\\\brackfrac":l=!1,s="[",o="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:i,denom:a,hasBarLine:l,leftDelim:s,rightDelim:o,size:u,barSize:null}},htmlBuilder:Y0,mathmlBuilder:X0});j({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});j({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:n}}});var ba=["display","text","script","scriptscript"],xa=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};j({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],i=t[5],a=en(t[0]),l=a.type==="atom"&&a.family==="open"?xa(a.text):null,s=en(t[1]),o=s.type==="atom"&&s.family==="close"?xa(s.text):null,u=re(t[2],"size"),m,h=null;u.isBlank?m=!0:(h=u.value,m=h.number>0);var g="auto",p=t[3];if(p.type==="ordgroup"){if(p.body.length>0){var v=re(p.body[0],"textord");g=ba[Number(v.text)]}}else p=re(p,"textord"),g=ba[Number(p.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:m,barSize:h,leftDelim:l,rightDelim:o,size:g}},htmlBuilder:Y0,mathmlBuilder:X0});j({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:re(t[0],"size").value,token:i}}});j({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=sf(re(t[1],"infix").size),l=t[2],s=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:l,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Y0,mathmlBuilder:X0});var Ps=(e,t)=>{var r=t.style,n,i;e.type==="supsub"?(n=e.sup?oe(e.sup,t.havingStyle(r.sup()),t):oe(e.sub,t.havingStyle(r.sub()),t),i=re(e.base,"horizBrace")):i=re(e,"horizBrace");var a=oe(i.base,t.havingBaseStyle(K.DISPLAY)),l=xt.svgSpan(i,t),s;if(i.isOver?(s=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:l}]},t),s.children[0].children[0].children[1].classes.push("svg-align")):(s=C.makeVList({positionType:"bottom",positionData:a.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:a}]},t),s.children[0].children[0].children[0].classes.push("svg-align")),n){var o=C.makeSpan(["mord",i.isOver?"mover":"munder"],[s],t);i.isOver?s=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.2},{type:"elem",elem:n}]},t):s=C.makeVList({positionType:"bottom",positionData:o.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:o}]},t)}return C.makeSpan(["mord",i.isOver?"mover":"munder"],[s],t)},I2=(e,t)=>{var r=xt.mathMLnode(e.label);return new F.MathNode(e.isOver?"mover":"munder",[he(e.base,t),r])};j({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:Ps,mathmlBuilder:I2});j({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],i=re(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:we(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Te(e.body,t,!1);return C.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=Et(e.body,t);return r instanceof Ye||(r=new Ye("mrow",[r])),r.setAttribute("href",e.href),r}});j({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=re(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:r,funcName:n,token:i}=e,a=re(t[0],"raw").string,l=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,o={};switch(n){case"\\htmlClass":o.class=a,s={command:"\\htmlClass",class:a};break;case"\\htmlId":o.id=a,s={command:"\\htmlId",id:a};break;case"\\htmlStyle":o.style=a,s={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),m=0;m{var r=Te(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=C.makeSpan(n,r,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>Et(e.body,t)});j({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:we(t[0]),mathml:we(t[1])}},htmlBuilder:(e,t)=>{var r=Te(e.html,t,!1);return C.makeFragment(r)},mathmlBuilder:(e,t)=>Et(e.mathml,t)});var Un=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new L("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!rs(n))throw new L("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};j({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},l={number:0,unit:"em"},s="";if(r[0])for(var o=re(r[0],"raw").string,u=o.split(","),m=0;m{var r=ve(e.height,t),n=0;e.totalheight.number>0&&(n=ve(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=ve(e.width,t));var a={height:O(r+n)};i>0&&(a.width=O(i)),n>0&&(a.verticalAlign=O(-n));var l=new If(e.src,e.alt,a);return l.height=r,l.depth=n,l},mathmlBuilder:(e,t)=>{var r=new F.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=ve(e.height,t),i=0;if(e.totalheight.number>0&&(i=ve(e.totalheight,t)-n,r.setAttribute("valign",O(-i))),r.setAttribute("height",O(n+i)),e.width.number>0){var a=ve(e.width,t);r.setAttribute("width",O(a))}return r.setAttribute("src",e.src),r}});j({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=re(t[0],"size");if(r.settings.strict){var a=n[1]==="m",l=i.value.unit==="mu";a?(l||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):l&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return C.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var r=ve(e.dimension,t);return new F.SpaceNode(r)}});j({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=C.makeSpan([],[oe(e.body,t)]),r=C.makeSpan(["inner"],[r],t)):r=C.makeSpan(["inner"],[oe(e.body,t)]);var n=C.makeSpan(["fix"],[]),i=C.makeSpan([e.alignment],[r,n],t),a=C.makeSpan(["strut"]);return a.style.height=O(i.height+i.depth),i.depth&&(a.style.verticalAlign=O(-i.depth)),i.children.unshift(a),i=C.makeSpan(["thinbox"],[i],t),C.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new F.MathNode("mpadded",[he(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});j({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",l=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:l}}});j({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new L("Mismatched "+e.funcName)}});var wa=(e,t)=>{switch(t.style.size){case K.DISPLAY.size:return e.display;case K.TEXT.size:return e.text;case K.SCRIPT.size:return e.script;case K.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};j({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:we(t[0]),text:we(t[1]),script:we(t[2]),scriptscript:we(t[3])}},htmlBuilder:(e,t)=>{var r=wa(e,t),n=Te(r,t,!1);return C.makeFragment(n)},mathmlBuilder:(e,t)=>{var r=wa(e,t);return Et(r,t)}});var Os=(e,t,r,n,i,a,l)=>{e=C.makeSpan([],[e]);var s=r&&Y.isCharacterBox(r),o,u;if(t){var m=oe(t,n.havingStyle(i.sup()),n);u={elem:m,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-m.depth)}}if(r){var h=oe(r,n.havingStyle(i.sub()),n);o={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-h.height)}}var g;if(u&&o){var p=n.fontMetrics().bigOpSpacing5+o.elem.height+o.elem.depth+o.kern+e.depth+l;g=C.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:o.elem,marginLeft:O(-a)},{type:"kern",size:o.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:O(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(o){var v=e.height-l;g=C.makeVList({positionType:"top",positionData:v,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:o.elem,marginLeft:O(-a)},{type:"kern",size:o.kern},{type:"elem",elem:e}]},n)}else if(u){var x=e.depth+l;g=C.makeVList({positionType:"bottom",positionData:x,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:O(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return e;var M=[g];if(o&&a!==0&&!s){var A=C.makeSpan(["mspace"],[],n);A.style.marginRight=O(a),M.unshift(A)}return C.makeSpan(["mop","op-limits"],M,n)},qs=["\\smallint"],nr=(e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=re(e.base,"op"),i=!0):a=re(e,"op");var l=t.style,s=!1;l.size===K.DISPLAY.size&&a.symbol&&!Y.contains(qs,a.name)&&(s=!0);var o;if(a.symbol){var u=s?"Size2-Regular":"Size1-Regular",m="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(m=a.name.slice(1),a.name=m==="oiint"?"\\iint":"\\iiint"),o=C.makeSymbol(a.name,u,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),m.length>0){var h=o.italic,g=C.staticSvg(m+"Size"+(s?"2":"1"),t);o=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:g,shift:s?.08:0}]},t),a.name="\\"+m,o.classes.unshift("mop"),o.italic=h}}else if(a.body){var p=Te(a.body,t,!0);p.length===1&&p[0]instanceof Ze?(o=p[0],o.classes[0]="mop"):o=C.makeSpan(["mop"],p,t)}else{for(var v=[],x=1;x{var r;if(e.symbol)r=new Ye("mo",[Qe(e.name,e.mode)]),Y.contains(qs,e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Ye("mo",qe(e.body,t));else{r=new Ye("mi",[new dr(e.name.slice(1))]);var n=new Ye("mo",[Qe("⁡","text")]);e.parentIsSupSub?r=new Ye("mrow",[r,n]):r=fs([r,n])}return r},N2={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};j({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=n;return i.length===1&&(i=N2[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:nr,mathmlBuilder:Cr});j({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:we(n)}},htmlBuilder:nr,mathmlBuilder:Cr});var B2={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};j({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:nr,mathmlBuilder:Cr});j({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:nr,mathmlBuilder:Cr});j({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=B2[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:nr,mathmlBuilder:Cr});var Hs=(e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=re(e.base,"operatorname"),i=!0):a=re(e,"operatorname");var l;if(a.body.length>0){for(var s=a.body.map(h=>{var g=h.text;return typeof g=="string"?{type:"textord",mode:h.mode,text:g}:h}),o=Te(s,t.withFont("mathrm"),!0),u=0;u{for(var r=qe(e.body,t.withFont("mathrm")),n=!0,i=0;im.toText()).join("");r=[new F.TextNode(s)]}var o=new F.MathNode("mi",r);o.setAttribute("mathvariant","normal");var u=new F.MathNode("mo",[Qe("⁡","text")]);return e.parentIsSupSub?new F.MathNode("mrow",[o,u]):F.newDocumentFragment([o,u])};j({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:we(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Hs,mathmlBuilder:F2});y("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");jt({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?C.makeFragment(Te(e.body,t,!1)):C.makeSpan(["mord"],Te(e.body,t,!0),t)},mathmlBuilder(e,t){return Et(e.body,t,!0)}});j({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=oe(e.body,t.havingCrampedStyle()),n=C.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]},t);return C.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var r=new F.MathNode("mo",[new F.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new F.MathNode("mover",[he(e.body,t),r]);return n.setAttribute("accent","true"),n}});j({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:we(n)}},htmlBuilder:(e,t)=>{var r=Te(e.body,t.withPhantom(),!1);return C.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=qe(e.body,t);return new F.MathNode("mphantom",r)}});j({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=C.makeSpan([],[oe(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n{var r=qe(we(e.body),t),n=new F.MathNode("mphantom",r),i=new F.MathNode("mpadded",[n]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});j({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=C.makeSpan(["inner"],[oe(e.body,t.withPhantom())]),n=C.makeSpan(["fix"],[]);return C.makeSpan(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=qe(we(e.body),t),n=new F.MathNode("mphantom",r),i=new F.MathNode("mpadded",[n]);return i.setAttribute("width","0px"),i}});j({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=re(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(e,t){var r=oe(e.body,t),n=ve(e.dy,t);return C.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new F.MathNode("mpadded",[he(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});j({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});j({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],a=re(t[0],"size"),l=re(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&re(i,"size").value,width:a.value,height:l.value}},htmlBuilder(e,t){var r=C.makeSpan(["mord","rule"],[],t),n=ve(e.width,t),i=ve(e.height,t),a=e.shift?ve(e.shift,t):0;return r.style.borderRightWidth=O(n),r.style.borderTopWidth=O(i),r.style.bottom=O(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=ve(e.width,t),n=ve(e.height,t),i=e.shift?ve(e.shift,t):0,a=t.color&&t.getColor()||"black",l=new F.MathNode("mspace");l.setAttribute("mathbackground",a),l.setAttribute("width",O(r)),l.setAttribute("height",O(n));var s=new F.MathNode("mpadded",[l]);return i>=0?s.setAttribute("height",O(i)):(s.setAttribute("height",O(i)),s.setAttribute("depth",O(-i))),s.setAttribute("voffset",O(i)),s}});function Vs(e,t,r){for(var n=Te(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,a=0;a{var r=t.havingSize(e.size);return Vs(e.body,r,t)};j({type:"sizing",names:ka,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:ka.indexOf(n)+1,body:a}},htmlBuilder:L2,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=qe(e.body,r),i=new F.MathNode("mstyle",n);return i.setAttribute("mathsize",O(r.sizeMultiplier)),i}});j({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,i=!1,a=!1,l=r[0]&&re(r[0],"ordgroup");if(l)for(var s="",o=0;o{var r=C.makeSpan([],[oe(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var n=0;n{var r=new F.MathNode("mpadded",[he(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});j({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,i=r[0],a=t[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(e,t){var r=oe(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=C.wrapFragment(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,a=i;t.style.idr.height+r.depth+l&&(l=(l+h-r.height-r.depth)/2);var g=o.height-r.height-l-u;r.style.paddingLeft=O(m);var p=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+g)},{type:"elem",elem:o},{type:"kern",size:u}]},t);if(e.index){var v=t.havingStyle(K.SCRIPTSCRIPT),x=oe(e.index,v,t),M=.6*(p.height-p.depth),A=C.makeVList({positionType:"shift",positionData:-M,children:[{type:"elem",elem:x}]},t),T=C.makeSpan(["root"],[A]);return C.makeSpan(["mord","sqrt"],[T,p],t)}else return C.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new F.MathNode("mroot",[he(r,t),he(n,t)]):new F.MathNode("msqrt",[he(r,t)])}});var Sa={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT};j({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!0,r),l=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:l,body:a}},htmlBuilder(e,t){var r=Sa[e.style],n=t.havingStyle(r).withFont("");return Vs(e.body,n,t)},mathmlBuilder(e,t){var r=Sa[e.style],n=t.havingStyle(r),i=qe(e.body,n),a=new F.MathNode("mstyle",i),l={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=l[e.style];return a.setAttribute("scriptlevel",s[0]),a.setAttribute("displaystyle",s[1]),a}});var R2=function(t,r){var n=t.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===K.DISPLAY.size||n.alwaysHandleSupSub);return i?nr:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===K.DISPLAY.size||n.limits);return a?Hs:null}else{if(n.type==="accent")return Y.isCharacterBox(n.base)?j0:null;if(n.type==="horizBrace"){var l=!t.sub;return l===n.isOver?Ps:null}else return null}else return null};jt({type:"supsub",htmlBuilder(e,t){var r=R2(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:a}=e,l=oe(n,t),s,o,u=t.fontMetrics(),m=0,h=0,g=n&&Y.isCharacterBox(n);if(i){var p=t.havingStyle(t.style.sup());s=oe(i,p,t),g||(m=l.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var v=t.havingStyle(t.style.sub());o=oe(a,v,t),g||(h=l.depth+v.fontMetrics().subDrop*v.sizeMultiplier/t.sizeMultiplier)}var x;t.style===K.DISPLAY?x=u.sup1:t.style.cramped?x=u.sup3:x=u.sup2;var M=t.sizeMultiplier,A=O(.5/u.ptPerEm/M),T=null;if(o){var D=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(l instanceof Ze||D)&&(T=O(-l.italic))}var q;if(s&&o){m=Math.max(m,x,s.depth+.25*u.xHeight),h=Math.max(h,u.sub2);var R=u.defaultRuleThickness,E=4*R;if(m-s.depth-(o.height-h)0&&(m+=$,h-=$)}var Z=[{type:"elem",elem:o,shift:h,marginRight:A,marginLeft:T},{type:"elem",elem:s,shift:-m,marginRight:A}];q=C.makeVList({positionType:"individualShift",children:Z},t)}else if(o){h=Math.max(h,u.sub1,o.height-.8*u.xHeight);var _=[{type:"elem",elem:o,marginLeft:T,marginRight:A}];q=C.makeVList({positionType:"shift",positionData:h,children:_},t)}else if(s)m=Math.max(m,x,s.depth+.25*u.xHeight),q=C.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:s,marginRight:A}]},t);else throw new Error("supsub must have either sup or sub.");var I=u0(l,"right")||"mord";return C.makeSpan([I],[l,C.makeSpan(["msupsub"],[q])],t)},mathmlBuilder(e,t){var r=!1,n,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[he(e.base,t)];e.sub&&a.push(he(e.sub,t)),e.sup&&a.push(he(e.sup,t));var l;if(r)l=n?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===K.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===K.DISPLAY||u.limits)?l="munderover":l="msubsup"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===K.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===K.DISPLAY)?l="munder":l="msub"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===K.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===K.DISPLAY)?l="mover":l="msup"}return new F.MathNode(l,a)}});jt({type:"atom",htmlBuilder(e,t){return C.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new F.MathNode("mo",[Qe(e.text,e.mode)]);if(e.family==="bin"){var n=H0(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var js={mi:"italic",mn:"normal",mtext:"normal"};jt({type:"mathord",htmlBuilder(e,t){return C.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new F.MathNode("mi",[Qe(e.text,e.mode,t)]),n=H0(e,t)||"italic";return n!==js[r.type]&&r.setAttribute("mathvariant",n),r}});jt({type:"textord",htmlBuilder(e,t){return C.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=Qe(e.text,e.mode,t),n=H0(e,t)||"normal",i;return e.mode==="text"?i=new F.MathNode("mtext",[r]):/[0-9]/.test(e.text)?i=new F.MathNode("mn",[r]):e.text==="\\prime"?i=new F.MathNode("mo",[r]):i=new F.MathNode("mi",[r]),n!==js[i.type]&&i.setAttribute("mathvariant",n),i}});var _n={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Gn={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};jt({type:"spacing",htmlBuilder(e,t){if(Gn.hasOwnProperty(e.text)){var r=Gn[e.text].className||"";if(e.mode==="text"){var n=C.makeOrd(e,t,"textord");return n.classes.push(r),n}else return C.makeSpan(["mspace",r],[C.mathsym(e.text,e.mode,t)],t)}else{if(_n.hasOwnProperty(e.text))return C.makeSpan(["mspace",_n[e.text]],[],t);throw new L('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(Gn.hasOwnProperty(e.text))r=new F.MathNode("mtext",[new F.TextNode(" ")]);else{if(_n.hasOwnProperty(e.text))return new F.MathNode("mspace");throw new L('Unknown type of space "'+e.text+'"')}return r}});var Aa=()=>{var e=new F.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};jt({type:"tag",mathmlBuilder(e,t){var r=new F.MathNode("mtable",[new F.MathNode("mtr",[Aa(),new F.MathNode("mtd",[Et(e.body,t)]),Aa(),new F.MathNode("mtd",[Et(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var za={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ta={"\\textbf":"textbf","\\textmd":"textmd"},P2={"\\textit":"textit","\\textup":"textup"},Ma=(e,t)=>{var r=e.font;if(r){if(za[r])return t.withTextFontFamily(za[r]);if(Ta[r])return t.withTextFontWeight(Ta[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(P2[r])};j({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"text",mode:r.mode,body:we(i),font:n}},htmlBuilder(e,t){var r=Ma(e,t),n=Te(e.body,r,!0);return C.makeSpan(["mord","text"],n,r)},mathmlBuilder(e,t){var r=Ma(e,t);return Et(e.body,r)}});j({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=oe(e.body,t),n=C.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=C.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]},t);return C.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var r=new F.MathNode("mo",[new F.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new F.MathNode("munder",[he(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});j({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=oe(e.body,t),n=t.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return C.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){return new F.MathNode("mpadded",[he(e.body,t)],["vcenter"])}});j({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new L("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=Ca(e),n=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),Tt=hs,$s=`[ \r + ]`,O2="\\\\[a-zA-Z@]+",q2="\\\\[^\uD800-\uDFFF]",H2="("+O2+")"+$s+"*",V2=`\\\\( +|[ \r ]+ +?)[ \r ]*`,f0="[̀-ͯ]",j2=new RegExp(f0+"+$"),$2="("+$s+"+)|"+(V2+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(f0+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(f0+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+H2)+("|"+q2+")");class Ea{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp($2,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Ke("EOF",new $e(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new L("Unexpected character: '"+t[r]+"'",new Ke(t[r],new $e(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` +`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new Ke(i,new $e(this,r,this.tokenRegex.lastIndex))}}class U2{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new L("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var _2=Ns;y("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});y("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});y("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});y("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});y("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});y("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");y("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Da={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};y("\\char",function(e){var t=e.popToken(),r,n="";if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new L("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=Da[t.text],n==null||n>=r)throw new L("Invalid base-"+r+" digit "+t.text);for(var i;(i=Da[e.future().text])!=null&&i{var n=e.consumeArg().tokens;if(n.length!==1)throw new L("\\newcommand's first argument must be a macro name");var i=n[0].text,a=e.isDefined(i);if(a&&!t)throw new L("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!r)throw new L("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var l=0;if(n=e.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var s="",o=e.expandNextToken();o.text!=="]"&&o.text!=="EOF";)s+=o.text,o=e.expandNextToken();if(!s.match(/^\s*[0-9]+\s*$/))throw new L("Invalid number of arguments: "+s);l=parseInt(s),n=e.consumeArg().tokens}return e.macros.set(i,{tokens:n,numArgs:l}),""};y("\\newcommand",e=>K0(e,!1,!0));y("\\renewcommand",e=>K0(e,!0,!1));y("\\providecommand",e=>K0(e,!0,!0));y("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});y("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});y("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Tt[r],fe.math[r],fe.text[r]),""});y("\\bgroup","{");y("\\egroup","}");y("~","\\nobreakspace");y("\\lq","`");y("\\rq","'");y("\\aa","\\r a");y("\\AA","\\r A");y("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");y("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");y("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");y("ℬ","\\mathscr{B}");y("ℰ","\\mathscr{E}");y("ℱ","\\mathscr{F}");y("ℋ","\\mathscr{H}");y("ℐ","\\mathscr{I}");y("ℒ","\\mathscr{L}");y("ℳ","\\mathscr{M}");y("ℛ","\\mathscr{R}");y("ℭ","\\mathfrak{C}");y("ℌ","\\mathfrak{H}");y("ℨ","\\mathfrak{Z}");y("\\Bbbk","\\Bbb{k}");y("·","\\cdotp");y("\\llap","\\mathllap{\\textrm{#1}}");y("\\rlap","\\mathrlap{\\textrm{#1}}");y("\\clap","\\mathclap{\\textrm{#1}}");y("\\mathstrut","\\vphantom{(}");y("\\underbar","\\underline{\\text{#1}}");y("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');y("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");y("\\ne","\\neq");y("≠","\\neq");y("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");y("∉","\\notin");y("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");y("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");y("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");y("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");y("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");y("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");y("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");y("⟂","\\perp");y("‼","\\mathclose{!\\mkern-0.8mu!}");y("∌","\\notni");y("⌜","\\ulcorner");y("⌝","\\urcorner");y("⌞","\\llcorner");y("⌟","\\lrcorner");y("©","\\copyright");y("®","\\textregistered");y("️","\\textregistered");y("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');y("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');y("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');y("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');y("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");y("⋮","\\vdots");y("\\varGamma","\\mathit{\\Gamma}");y("\\varDelta","\\mathit{\\Delta}");y("\\varTheta","\\mathit{\\Theta}");y("\\varLambda","\\mathit{\\Lambda}");y("\\varXi","\\mathit{\\Xi}");y("\\varPi","\\mathit{\\Pi}");y("\\varSigma","\\mathit{\\Sigma}");y("\\varUpsilon","\\mathit{\\Upsilon}");y("\\varPhi","\\mathit{\\Phi}");y("\\varPsi","\\mathit{\\Psi}");y("\\varOmega","\\mathit{\\Omega}");y("\\substack","\\begin{subarray}{c}#1\\end{subarray}");y("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");y("\\boxed","\\fbox{$\\displaystyle{#1}$}");y("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");y("\\implies","\\DOTSB\\;\\Longrightarrow\\;");y("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Ia={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};y("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Ia?t=Ia[r]:(r.slice(0,4)==="\\not"||r in fe.math&&Y.contains(["bin","rel"],fe.math[r].group))&&(t="\\dotsb"),t});var Z0={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};y("\\dotso",function(e){var t=e.future().text;return t in Z0?"\\ldots\\,":"\\ldots"});y("\\dotsc",function(e){var t=e.future().text;return t in Z0&&t!==","?"\\ldots\\,":"\\ldots"});y("\\cdots",function(e){var t=e.future().text;return t in Z0?"\\@cdots\\,":"\\@cdots"});y("\\dotsb","\\cdots");y("\\dotsm","\\cdots");y("\\dotsi","\\!\\cdots");y("\\dotsx","\\ldots\\,");y("\\DOTSI","\\relax");y("\\DOTSB","\\relax");y("\\DOTSX","\\relax");y("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");y("\\,","\\tmspace+{3mu}{.1667em}");y("\\thinspace","\\,");y("\\>","\\mskip{4mu}");y("\\:","\\tmspace+{4mu}{.2222em}");y("\\medspace","\\:");y("\\;","\\tmspace+{5mu}{.2777em}");y("\\thickspace","\\;");y("\\!","\\tmspace-{3mu}{.1667em}");y("\\negthinspace","\\!");y("\\negmedspace","\\tmspace-{4mu}{.2222em}");y("\\negthickspace","\\tmspace-{5mu}{.277em}");y("\\enspace","\\kern.5em ");y("\\enskip","\\hskip.5em\\relax");y("\\quad","\\hskip1em\\relax");y("\\qquad","\\hskip2em\\relax");y("\\tag","\\@ifstar\\tag@literal\\tag@paren");y("\\tag@paren","\\tag@literal{({#1})}");y("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new L("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});y("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");y("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");y("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");y("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");y("\\newline","\\\\\\relax");y("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Us=O(st["Main-Regular"][84][1]-.7*st["Main-Regular"][65][1]);y("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Us+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");y("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Us+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");y("\\hspace","\\@ifstar\\@hspacer\\@hspace");y("\\@hspace","\\hskip #1\\relax");y("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");y("\\ordinarycolon",":");y("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");y("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');y("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');y("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');y("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');y("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');y("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');y("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');y("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');y("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');y("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');y("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');y("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');y("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');y("∷","\\dblcolon");y("∹","\\eqcolon");y("≔","\\coloneqq");y("≕","\\eqqcolon");y("⩴","\\Coloneqq");y("\\ratio","\\vcentcolon");y("\\coloncolon","\\dblcolon");y("\\colonequals","\\coloneqq");y("\\coloncolonequals","\\Coloneqq");y("\\equalscolon","\\eqqcolon");y("\\equalscoloncolon","\\Eqqcolon");y("\\colonminus","\\coloneq");y("\\coloncolonminus","\\Coloneq");y("\\minuscolon","\\eqcolon");y("\\minuscoloncolon","\\Eqcolon");y("\\coloncolonapprox","\\Colonapprox");y("\\coloncolonsim","\\Colonsim");y("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");y("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");y("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");y("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");y("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");y("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");y("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");y("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");y("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");y("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");y("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");y("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");y("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");y("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");y("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");y("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");y("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");y("\\nleqq","\\html@mathml{\\@nleqq}{≰}");y("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");y("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");y("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");y("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");y("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");y("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");y("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");y("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");y("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");y("\\imath","\\html@mathml{\\@imath}{ı}");y("\\jmath","\\html@mathml{\\@jmath}{ȷ}");y("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");y("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");y("⟦","\\llbracket");y("⟧","\\rrbracket");y("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");y("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");y("⦃","\\lBrace");y("⦄","\\rBrace");y("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");y("⦵","\\minuso");y("\\darr","\\downarrow");y("\\dArr","\\Downarrow");y("\\Darr","\\Downarrow");y("\\lang","\\langle");y("\\rang","\\rangle");y("\\uarr","\\uparrow");y("\\uArr","\\Uparrow");y("\\Uarr","\\Uparrow");y("\\N","\\mathbb{N}");y("\\R","\\mathbb{R}");y("\\Z","\\mathbb{Z}");y("\\alef","\\aleph");y("\\alefsym","\\aleph");y("\\Alpha","\\mathrm{A}");y("\\Beta","\\mathrm{B}");y("\\bull","\\bullet");y("\\Chi","\\mathrm{X}");y("\\clubs","\\clubsuit");y("\\cnums","\\mathbb{C}");y("\\Complex","\\mathbb{C}");y("\\Dagger","\\ddagger");y("\\diamonds","\\diamondsuit");y("\\empty","\\emptyset");y("\\Epsilon","\\mathrm{E}");y("\\Eta","\\mathrm{H}");y("\\exist","\\exists");y("\\harr","\\leftrightarrow");y("\\hArr","\\Leftrightarrow");y("\\Harr","\\Leftrightarrow");y("\\hearts","\\heartsuit");y("\\image","\\Im");y("\\infin","\\infty");y("\\Iota","\\mathrm{I}");y("\\isin","\\in");y("\\Kappa","\\mathrm{K}");y("\\larr","\\leftarrow");y("\\lArr","\\Leftarrow");y("\\Larr","\\Leftarrow");y("\\lrarr","\\leftrightarrow");y("\\lrArr","\\Leftrightarrow");y("\\Lrarr","\\Leftrightarrow");y("\\Mu","\\mathrm{M}");y("\\natnums","\\mathbb{N}");y("\\Nu","\\mathrm{N}");y("\\Omicron","\\mathrm{O}");y("\\plusmn","\\pm");y("\\rarr","\\rightarrow");y("\\rArr","\\Rightarrow");y("\\Rarr","\\Rightarrow");y("\\real","\\Re");y("\\reals","\\mathbb{R}");y("\\Reals","\\mathbb{R}");y("\\Rho","\\mathrm{P}");y("\\sdot","\\cdot");y("\\sect","\\S");y("\\spades","\\spadesuit");y("\\sub","\\subset");y("\\sube","\\subseteq");y("\\supe","\\supseteq");y("\\Tau","\\mathrm{T}");y("\\thetasym","\\vartheta");y("\\weierp","\\wp");y("\\Zeta","\\mathrm{Z}");y("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");y("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");y("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");y("\\bra","\\mathinner{\\langle{#1}|}");y("\\ket","\\mathinner{|{#1}\\rangle}");y("\\braket","\\mathinner{\\langle{#1}\\rangle}");y("\\Bra","\\left\\langle#1\\right|");y("\\Ket","\\left|#1\\right\\rangle");var _s=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,l=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var o=h=>g=>{e&&(g.macros.set("|",l),i.length&&g.macros.set("\\|",s));var p=h;if(!h&&i.length){var v=g.future();v.text==="|"&&(g.popToken(),p=!0)}return{tokens:p?i:n,numArgs:0}};t.macros.set("|",o(!1)),i.length&&t.macros.set("\\|",o(!0));var u=t.consumeArg().tokens,m=t.expandTokens([...a,...u,...r]);return t.macros.endGroup(),{tokens:m.reverse(),numArgs:0}};y("\\bra@ket",_s(!1));y("\\bra@set",_s(!0));y("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");y("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");y("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");y("\\angln","{\\angl n}");y("\\blue","\\textcolor{##6495ed}{#1}");y("\\orange","\\textcolor{##ffa500}{#1}");y("\\pink","\\textcolor{##ff00af}{#1}");y("\\red","\\textcolor{##df0030}{#1}");y("\\green","\\textcolor{##28ae7b}{#1}");y("\\gray","\\textcolor{gray}{#1}");y("\\purple","\\textcolor{##9d38bd}{#1}");y("\\blueA","\\textcolor{##ccfaff}{#1}");y("\\blueB","\\textcolor{##80f6ff}{#1}");y("\\blueC","\\textcolor{##63d9ea}{#1}");y("\\blueD","\\textcolor{##11accd}{#1}");y("\\blueE","\\textcolor{##0c7f99}{#1}");y("\\tealA","\\textcolor{##94fff5}{#1}");y("\\tealB","\\textcolor{##26edd5}{#1}");y("\\tealC","\\textcolor{##01d1c1}{#1}");y("\\tealD","\\textcolor{##01a995}{#1}");y("\\tealE","\\textcolor{##208170}{#1}");y("\\greenA","\\textcolor{##b6ffb0}{#1}");y("\\greenB","\\textcolor{##8af281}{#1}");y("\\greenC","\\textcolor{##74cf70}{#1}");y("\\greenD","\\textcolor{##1fab54}{#1}");y("\\greenE","\\textcolor{##0d923f}{#1}");y("\\goldA","\\textcolor{##ffd0a9}{#1}");y("\\goldB","\\textcolor{##ffbb71}{#1}");y("\\goldC","\\textcolor{##ff9c39}{#1}");y("\\goldD","\\textcolor{##e07d10}{#1}");y("\\goldE","\\textcolor{##a75a05}{#1}");y("\\redA","\\textcolor{##fca9a9}{#1}");y("\\redB","\\textcolor{##ff8482}{#1}");y("\\redC","\\textcolor{##f9685d}{#1}");y("\\redD","\\textcolor{##e84d39}{#1}");y("\\redE","\\textcolor{##bc2612}{#1}");y("\\maroonA","\\textcolor{##ffbde0}{#1}");y("\\maroonB","\\textcolor{##ff92c6}{#1}");y("\\maroonC","\\textcolor{##ed5fa6}{#1}");y("\\maroonD","\\textcolor{##ca337c}{#1}");y("\\maroonE","\\textcolor{##9e034e}{#1}");y("\\purpleA","\\textcolor{##ddd7ff}{#1}");y("\\purpleB","\\textcolor{##c6b9fc}{#1}");y("\\purpleC","\\textcolor{##aa87ff}{#1}");y("\\purpleD","\\textcolor{##7854ab}{#1}");y("\\purpleE","\\textcolor{##543b78}{#1}");y("\\mintA","\\textcolor{##f5f9e8}{#1}");y("\\mintB","\\textcolor{##edf2df}{#1}");y("\\mintC","\\textcolor{##e0e5cc}{#1}");y("\\grayA","\\textcolor{##f6f7f7}{#1}");y("\\grayB","\\textcolor{##f0f1f2}{#1}");y("\\grayC","\\textcolor{##e3e5e6}{#1}");y("\\grayD","\\textcolor{##d6d8da}{#1}");y("\\grayE","\\textcolor{##babec2}{#1}");y("\\grayF","\\textcolor{##888d93}{#1}");y("\\grayG","\\textcolor{##626569}{#1}");y("\\grayH","\\textcolor{##3b3e40}{#1}");y("\\grayI","\\textcolor{##21242c}{#1}");y("\\kaBlue","\\textcolor{##314453}{#1}");y("\\kaGreen","\\textcolor{##71B307}{#1}");var Gs={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class G2{constructor(t,r,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new U2(_2,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new Ea(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new Ke("EOF",n.loc)),this.pushTokens(i),r.range(n,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var i=this.future(),a,l=0,s=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++l;else if(a.text==="}"){if(--l,l===-1)throw new L("Extra }",a)}else if(a.text==="EOF")throw new L("Unexpected end of input in a macro argument, expected '"+(t&&n?t[s]:"}")+"'",a);if(t&&n)if((l===0||l===1&&t[s]==="{")&&a.text===t[s]){if(++s,s===t.length){r.splice(-s,s);break}}else s=0}while(l!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new L("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;ithis.settings.maxExpand)throw new L("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||t&&i.unexpandable){if(t&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new L("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,l=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var s=a.length-1;s>=0;--s){var o=a[s];if(o.text==="#"){if(s===0)throw new L("Incomplete placeholder at end of macro body",o);if(o=a[--s],o.text==="#")a.splice(s+1,1);else if(/^[1-9]$/.test(o.text))a.splice(s,2,...l[+o.text-1]);else throw new L("Not a valid argument number",o)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Ke(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var l=i.replace(/##/g,"");l.indexOf("#"+(a+1))!==-1;)++a;for(var s=new Ea(i,this.settings),o=[],u=s.lex();u.text!=="EOF";)o.push(u),u=s.lex();o.reverse();var m={tokens:o,numArgs:a};return m}return i}isDefined(t){return this.macros.has(t)||Tt.hasOwnProperty(t)||fe.math.hasOwnProperty(t)||fe.text.hasOwnProperty(t)||Gs.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Tt.hasOwnProperty(t)&&!Tt[t].primitive}}var Na=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Vr=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Wn={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Ba={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class dn{constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new G2(t,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new L("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Ke("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(dn.endOfExpression.indexOf(i.text)!==-1||r&&i.text===r||t&&Tt[i.text]&&Tt[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var s=fe[this.mode][r].group,o=$e.range(t),u;if(Ff.hasOwnProperty(s)){var m=s;u={type:"atom",mode:this.mode,family:m,loc:o,text:r}}else u={type:s,mode:this.mode,loc:o,text:r};l=u}else if(r.charCodeAt(0)>=128)this.settings.strict&&(ts(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),l={type:"textord",mode:"text",loc:$e.range(t),text:r};else return null;if(this.consume(),a)for(var h=0;hu&&(u=m):m&&(u!==void 0&&u>-1&&o.push(` +`.repeat(u)||" "),u=-1,o.push(m))}return o.join("")}function Js(e,t,r){return e.type==="element"?xp(e,t,r):e.type==="text"?r.whitespace==="normal"?eo(e,r):wp(e):[]}function xp(e,t,r){const n=to(e,r),i=e.children||[];let a=-1,l=[];if(vp(e))return l;let s,o;for(g0(e)||ja(e)&&Oa(t,e,ja)?o=` +`:yp(e)?(s=2,o=2):Qs(e)&&(s=1,o=1);++a0&&(a.properties.rel=[...g]),p&&(a.properties.target=p),m){const x=hr(t.contentProperties,a)||{};a.children.push({type:"element",tagName:"span",properties:qt(x),children:qt(m)})}}}})}}function hr(e,t){return typeof e=="function"?e(t):e}export{Lp as M,Op as a,Rp as b,Pp as c,vn as j,qp as r}; diff --git a/dist/copilot_web/vendor-react-V04_Axys.js b/dist/copilot_web/vendor-react-V04_Axys.js new file mode 100644 index 0000000..8327c86 --- /dev/null +++ b/dist/copilot_web/vendor-react-V04_Axys.js @@ -0,0 +1,32 @@ +var vd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ja(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uo={exports:{}},T={};/** + * @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 Kt=Symbol.for("react.element"),qa=Symbol.for("react.portal"),ba=Symbol.for("react.fragment"),ef=Symbol.for("react.strict_mode"),nf=Symbol.for("react.profiler"),tf=Symbol.for("react.provider"),rf=Symbol.for("react.context"),lf=Symbol.for("react.forward_ref"),uf=Symbol.for("react.suspense"),of=Symbol.for("react.memo"),sf=Symbol.for("react.lazy"),Ti=Symbol.iterator;function af(e){return e===null||typeof e!="object"?null:(e=Ti&&e[Ti]||e["@@iterator"],typeof e=="function"?e:null)}var $o={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Vo=Object.assign,Ao={};function rt(e,n,t){this.props=e,this.context=n,this.refs=Ao,this.updater=t||$o}rt.prototype.isReactComponent={};rt.prototype.setState=function(e,n){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,n,"setState")};rt.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Bo(){}Bo.prototype=rt.prototype;function Du(e,n,t){this.props=e,this.context=n,this.refs=Ao,this.updater=t||$o}var Iu=Du.prototype=new Bo;Iu.constructor=Du;Vo(Iu,rt.prototype);Iu.isPureReactComponent=!0;var Li=Array.isArray,Ho=Object.prototype.hasOwnProperty,Fu={current:null},Wo={key:!0,ref:!0,__self:!0,__source:!0};function Qo(e,n,t){var r,l={},u=null,i=null;if(n!=null)for(r in n.ref!==void 0&&(i=n.ref),n.key!==void 0&&(u=""+n.key),n)Ho.call(n,r)&&!Wo.hasOwnProperty(r)&&(l[r]=n[r]);var o=arguments.length-2;if(o===1)l.children=t;else if(1>>1,X=C[H];if(0>>1;Hl(hl,z))vnl(qt,hl)?(C[H]=qt,C[vn]=z,H=vn):(C[H]=hl,C[hn]=z,H=hn);else if(vnl(qt,z))C[H]=qt,C[vn]=z,H=vn;else break e}}return N}function l(C,N){var z=C.sortIndex-N.sortIndex;return z!==0?z:C.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var i=Date,o=i.now();e.unstable_now=function(){return i.now()-o}}var s=[],f=[],h=1,m=null,p=3,g=!1,w=!1,k=!1,F=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(C){for(var N=t(f);N!==null;){if(N.callback===null)r(f);else if(N.startTime<=C)r(f),N.sortIndex=N.expirationTime,n(s,N);else break;N=t(f)}}function v(C){if(k=!1,d(C),!w)if(t(s)!==null)w=!0,pl(E);else{var N=t(f);N!==null&&ml(v,N.startTime-C)}}function E(C,N){w=!1,k&&(k=!1,c(P),P=-1),g=!0;var z=p;try{for(d(N),m=t(s);m!==null&&(!(m.expirationTime>N)||C&&!xe());){var H=m.callback;if(typeof H=="function"){m.callback=null,p=m.priorityLevel;var X=H(m.expirationTime<=N);N=e.unstable_now(),typeof X=="function"?m.callback=X:m===t(s)&&r(s),d(N)}else r(s);m=t(s)}if(m!==null)var Jt=!0;else{var hn=t(f);hn!==null&&ml(v,hn.startTime-N),Jt=!1}return Jt}finally{m=null,p=z,g=!1}}var _=!1,x=null,P=-1,B=5,L=-1;function xe(){return!(e.unstable_now()-LC||125H?(C.sortIndex=z,n(f,C),t(s)===null&&C===t(f)&&(k?(c(P),P=-1):k=!0,ml(v,z-H))):(C.sortIndex=X,n(s,C),w||g||(w=!0,pl(E))),C},e.unstable_shouldYield=xe,e.unstable_wrapCallback=function(C){var N=p;return function(){var z=p;p=N;try{return C.apply(this,arguments)}finally{p=z}}}})(Go);Xo.exports=Go;var mf=Xo.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 Zo=Ko,ve=mf;function y(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bl=Object.prototype.hasOwnProperty,hf=/^[: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]*$/,Mi={},Oi={};function vf(e){return Bl.call(Oi,e)?!0:Bl.call(Mi,e)?!1:hf.test(e)?Oi[e]=!0:(Mi[e]=!0,!1)}function yf(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function gf(e,n,t,r){if(n===null||typeof n>"u"||yf(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function oe(e,n,t,r,l,u,i){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=u,this.removeEmptyString=i}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){b[e]=new oe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];b[n]=new oe(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){b[e]=new oe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){b[e]=new oe(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){b[e]=new oe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){b[e]=new oe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){b[e]=new oe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){b[e]=new oe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){b[e]=new oe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Uu=/[\-:]([a-z])/g;function $u(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 n=e.replace(Uu,$u);b[n]=new oe(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Uu,$u);b[n]=new oe(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Uu,$u);b[n]=new oe(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){b[e]=new oe(e,1,!1,e.toLowerCase(),null,!1,!1)});b.xlinkHref=new oe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){b[e]=new oe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vu(e,n,t,r){var l=b.hasOwnProperty(n)?b[n]:null;(l!==null?l.type!==0:r||!(2o||l[i]!==u[o]){var s=` +`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=o);break}}}finally{gl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?vt(e):""}function wf(e){switch(e.tag){case 5:return vt(e.type);case 16:return vt("Lazy");case 13:return vt("Suspense");case 19:return vt("SuspenseList");case 0:case 2:case 15:return e=wl(e.type,!1),e;case 11:return e=wl(e.type.render,!1),e;case 1:return e=wl(e.type,!0),e;default:return""}}function Kl(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 On:return"Fragment";case Mn:return"Portal";case Hl:return"Profiler";case Au:return"StrictMode";case Wl:return"Suspense";case Ql:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bo:return(e.displayName||"Context")+".Consumer";case qo:return(e._context.displayName||"Context")+".Provider";case Bu:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hu:return n=e.displayName||null,n!==null?n:Kl(e.type)||"Memo";case Ge:n=e._payload,e=e._init;try{return Kl(e(n))}catch{}}return null}function kf(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Kl(n);case 8:return n===Au?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function fn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ns(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Sf(e){var n=ns(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,u=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,u.call(this,i)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function nr(e){e._valueTracker||(e._valueTracker=Sf(e))}function ts(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=ns(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function zr(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 Yl(e,n){var t=n.checked;return V({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function Ii(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=fn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function rs(e,n){n=n.checked,n!=null&&Vu(e,"checked",n,!1)}function Xl(e,n){rs(e,n);var t=fn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Gl(e,n.type,t):n.hasOwnProperty("defaultValue")&&Gl(e,n.type,fn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Fi(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function Gl(e,n,t){(n!=="number"||zr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var yt=Array.isArray;function Wn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=tr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Lt(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var kt={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},Ef=["Webkit","ms","Moz","O"];Object.keys(kt).forEach(function(e){Ef.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),kt[n]=kt[e]})});function os(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||kt.hasOwnProperty(e)&&kt[e]?(""+n).trim():n+"px"}function ss(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=os(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Cf=V({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 ql(e,n){if(n){if(Cf[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(y(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(y(61))}if(n.style!=null&&typeof n.style!="object")throw Error(y(62))}}function bl(e,n){if(e.indexOf("-")===-1)return typeof n.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 eu=null;function Wu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nu=null,Qn=null,Kn=null;function $i(e){if(e=Gt(e)){if(typeof nu!="function")throw Error(y(280));var n=e.stateNode;n&&(n=tl(n),nu(e.stateNode,e.type,n))}}function as(e){Qn?Kn?Kn.push(e):Kn=[e]:Qn=e}function fs(){if(Qn){var e=Qn,n=Kn;if(Kn=Qn=null,$i(e),n)for(e=0;e>>=0,e===0?32:31-(Df(e)/If|0)|0}var rr=64,lr=4194304;function gt(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 Mr(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,u=e.pingedLanes,i=t&268435455;if(i!==0){var o=i&~l;o!==0?r=gt(o):(u&=i,u!==0&&(r=gt(u)))}else i=t&~l,i!==0?r=gt(i):u!==0&&(r=gt(u));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,u=n&-n,l>=u||l===16&&(u&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Yt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Le(n),e[n]=t}function $f(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Et),Xi=" ",Gi=!1;function Ls(e,n){switch(e){case"keyup":return pc.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dn=!1;function hc(e,n){switch(e){case"compositionend":return Rs(n);case"keypress":return n.which!==32?null:(Gi=!0,Xi);case"textInput":return e=n.data,e===Xi&&Gi?null:e;default:return null}}function vc(e,n){if(Dn)return e==="compositionend"||!qu&&Ls(e,n)?(e=zs(),wr=Gu=be=null,Dn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=bi(t)}}function Is(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Is(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Fs(){for(var e=window,n=zr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=zr(e.document)}return n}function bu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function xc(e){var n=Fs(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Is(t.ownerDocument.documentElement,t)){if(r!==null&&bu(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,u=Math.min(r.start,l);r=r.end===void 0?u:Math.min(r.end,l),!e.extend&&u>r&&(l=r,r=u,u=l),l=eo(t,u);var i=eo(t,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),u>r?(e.addRange(n),e.extend(i.node,i.offset)):(n.setEnd(i.node,i.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,In=null,ou=null,_t=null,su=!1;function no(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;su||In==null||In!==zr(r)||(r=In,"selectionStart"in r&&bu(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}),_t&&Ft(_t,r)||(_t=r,r=Ir(ou,"onSelect"),0Un||(e.current=mu[Un],mu[Un]=null,Un--)}function O(e,n){Un++,mu[Un]=e.current,e.current=n}var cn={},re=pn(cn),fe=pn(!1),_n=cn;function Jn(e,n){var t=e.type.contextTypes;if(!t)return cn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in t)l[u]=n[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function ce(e){return e=e.childContextTypes,e!=null}function jr(){I(fe),I(re)}function so(e,n,t){if(re.current!==cn)throw Error(y(168));O(re,n),O(fe,t)}function Qs(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(y(108,kf(e)||"Unknown",l));return V({},t,r)}function Ur(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cn,_n=re.current,O(re,e),O(fe,fe.current),!0}function ao(e,n,t){var r=e.stateNode;if(!r)throw Error(y(169));t?(e=Qs(e,n,_n),r.__reactInternalMemoizedMergedChildContext=e,I(fe),I(re),O(re,e)):I(fe),O(fe,t)}var $e=null,rl=!1,Ol=!1;function Ks(e){$e===null?$e=[e]:$e.push(e)}function jc(e){rl=!0,Ks(e)}function mn(){if(!Ol&&$e!==null){Ol=!0;var e=0,n=M;try{var t=$e;for(M=1;e>=i,l-=i,Ve=1<<32-Le(n)+l|t<P?(B=x,x=null):B=x.sibling;var L=p(c,x,d[P],v);if(L===null){x===null&&(x=B);break}e&&x&&L.alternate===null&&n(c,x),a=u(L,a,P),_===null?E=L:_.sibling=L,_=L,x=B}if(P===d.length)return t(c,x),j&&yn(c,P),E;if(x===null){for(;PP?(B=x,x=null):B=x.sibling;var xe=p(c,x,L.value,v);if(xe===null){x===null&&(x=B);break}e&&x&&xe.alternate===null&&n(c,x),a=u(xe,a,P),_===null?E=xe:_.sibling=xe,_=xe,x=B}if(L.done)return t(c,x),j&&yn(c,P),E;if(x===null){for(;!L.done;P++,L=d.next())L=m(c,L.value,v),L!==null&&(a=u(L,a,P),_===null?E=L:_.sibling=L,_=L);return j&&yn(c,P),E}for(x=r(c,x);!L.done;P++,L=d.next())L=g(x,c,P,L.value,v),L!==null&&(e&&L.alternate!==null&&x.delete(L.key===null?P:L.key),a=u(L,a,P),_===null?E=L:_.sibling=L,_=L);return e&&x.forEach(function(it){return n(c,it)}),j&&yn(c,P),E}function F(c,a,d,v){if(typeof d=="object"&&d!==null&&d.type===On&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case er:e:{for(var E=d.key,_=a;_!==null;){if(_.key===E){if(E=d.type,E===On){if(_.tag===7){t(c,_.sibling),a=l(_,d.props.children),a.return=c,c=a;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ge&&yo(E)===_.type){t(c,_.sibling),a=l(_,d.props),a.ref=pt(c,_,d),a.return=c,c=a;break e}t(c,_);break}else n(c,_);_=_.sibling}d.type===On?(a=Cn(d.props.children,c.mode,v,d.key),a.return=c,c=a):(v=Nr(d.type,d.key,d.props,null,c.mode,v),v.ref=pt(c,a,d),v.return=c,c=v)}return i(c);case Mn:e:{for(_=d.key;a!==null;){if(a.key===_)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){t(c,a.sibling),a=l(a,d.children||[]),a.return=c,c=a;break e}else{t(c,a);break}else n(c,a);a=a.sibling}a=Al(d,c.mode,v),a.return=c,c=a}return i(c);case Ge:return _=d._init,F(c,a,_(d._payload),v)}if(yt(d))return w(c,a,d,v);if(st(d))return k(c,a,d,v);cr(c,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(t(c,a.sibling),a=l(a,d),a.return=c,c=a):(t(c,a),a=Vl(d,c.mode,v),a.return=c,c=a),i(c)):t(c,a)}return F}var bn=ea(!0),na=ea(!1),Zt={},je=pn(Zt),Vt=pn(Zt),At=pn(Zt);function Sn(e){if(e===Zt)throw Error(y(174));return e}function si(e,n){switch(O(At,n),O(Vt,e),O(je,Zt),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Jl(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Jl(n,e)}I(je),O(je,n)}function et(){I(je),I(Vt),I(At)}function ta(e){Sn(At.current);var n=Sn(je.current),t=Jl(n,e.type);n!==t&&(O(Vt,e),O(je,t))}function ai(e){Vt.current===e&&(I(je),I(Vt))}var U=pn(0);function Wr(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Dl=[];function fi(){for(var e=0;et?t:4,e(!0);var r=Il.transition;Il.transition={};try{e(!1),n()}finally{M=t,Il.transition=r}}function ga(){return _e().memoizedState}function Ac(e,n,t){var r=sn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},wa(e))ka(n,t);else if(t=Zs(e,n,t,r),t!==null){var l=ue();Re(t,e,r,l),Sa(t,n,r)}}function Bc(e,n,t){var r=sn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(wa(e))ka(n,l);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=n.lastRenderedReducer,u!==null))try{var i=n.lastRenderedState,o=u(i,t);if(l.hasEagerState=!0,l.eagerState=o,Me(o,i)){var s=n.interleaved;s===null?(l.next=l,ii(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=Zs(e,n,l,r),t!==null&&(l=ue(),Re(t,e,r,l),Sa(t,n,r))}}function wa(e){var n=e.alternate;return e===$||n!==null&&n===$}function ka(e,n){xt=Qr=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Sa(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Ku(e,t)}}var Kr={readContext:Ce,useCallback:ee,useContext:ee,useEffect:ee,useImperativeHandle:ee,useInsertionEffect:ee,useLayoutEffect:ee,useMemo:ee,useReducer:ee,useRef:ee,useState:ee,useDebugValue:ee,useDeferredValue:ee,useTransition:ee,useMutableSource:ee,useSyncExternalStore:ee,useId:ee,unstable_isNewReconciler:!1},Hc={readContext:Ce,useCallback:function(e,n){return De().memoizedState=[e,n===void 0?null:n],e},useContext:Ce,useEffect:wo,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,Cr(4194308,4,pa.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Cr(4194308,4,e,n)},useInsertionEffect:function(e,n){return Cr(4,2,e,n)},useMemo:function(e,n){var t=De();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=De();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=Ac.bind(null,$,e),[r.memoizedState,e]},useRef:function(e){var n=De();return e={current:e},n.memoizedState=e},useState:go,useDebugValue:hi,useDeferredValue:function(e){return De().memoizedState=e},useTransition:function(){var e=go(!1),n=e[0];return e=Vc.bind(null,e[1]),De().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=$,l=De();if(j){if(t===void 0)throw Error(y(407));t=t()}else{if(t=n(),Z===null)throw Error(y(349));Pn&30||ua(r,n,t)}l.memoizedState=t;var u={value:t,getSnapshot:n};return l.queue=u,wo(oa.bind(null,r,u,e),[e]),r.flags|=2048,Wt(9,ia.bind(null,r,u,t,n),void 0,null),t},useId:function(){var e=De(),n=Z.identifierPrefix;if(j){var t=Ae,r=Ve;t=(r&~(1<<32-Le(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Bt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(t,{is:r.is}):(e=i.createElement(t),t==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,t),e[Ie]=n,e[$t]=r,La(e,n,!1,!1),n.stateNode=e;e:{switch(i=bl(t,r),t){case"dialog":D("cancel",e),D("close",e),l=r;break;case"iframe":case"object":case"embed":D("load",e),l=r;break;case"video":case"audio":for(l=0;ltt&&(n.flags|=128,r=!0,mt(u,!1),n.lanes=4194304)}else{if(!r)if(e=Wr(i),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),mt(u,!0),u.tail===null&&u.tailMode==="hidden"&&!i.alternate&&!j)return ne(n),null}else 2*W()-u.renderingStartTime>tt&&t!==1073741824&&(n.flags|=128,r=!0,mt(u,!1),n.lanes=4194304);u.isBackwards?(i.sibling=n.child,n.child=i):(t=u.last,t!==null?t.sibling=i:n.child=i,u.last=i)}return u.tail!==null?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=W(),n.sibling=null,t=U.current,O(U,r?t&1|2:t&1),n):(ne(n),null);case 22:case 23:return Si(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?pe&1073741824&&(ne(n),n.subtreeFlags&6&&(n.flags|=8192)):ne(n),null;case 24:return null;case 25:return null}throw Error(y(156,n.tag))}function Jc(e,n){switch(ni(n),n.tag){case 1:return ce(n.type)&&jr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return et(),I(fe),I(re),fi(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return ai(n),null;case 13:if(I(U),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(y(340));qn()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return I(U),null;case 4:return et(),null;case 10:return ui(n.type._context),null;case 22:case 23:return Si(),null;case 24:return null;default:return null}}var pr=!1,te=!1,qc=typeof WeakSet=="function"?WeakSet:Set,S=null;function Bn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){A(e,n,r)}else t.current=null}function Pu(e,n,t){try{t()}catch(r){A(e,n,r)}}var zo=!1;function bc(e,n){if(au=Or,e=Fs(),bu(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{t.nodeType,u.nodeType}catch{t=null;break e}var i=0,o=-1,s=-1,f=0,h=0,m=e,p=null;n:for(;;){for(var g;m!==t||l!==0&&m.nodeType!==3||(o=i+l),m!==u||r!==0&&m.nodeType!==3||(s=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break n;if(p===t&&++f===l&&(o=i),p===u&&++h===r&&(s=i),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}t=o===-1||s===-1?null:{start:o,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(fu={focusedElem:e,selectionRange:t},Or=!1,S=n;S!==null;)if(n=S,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,S=e;else for(;S!==null;){n=S;try{var w=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,F=w.memoizedState,c=n.stateNode,a=c.getSnapshotBeforeUpdate(n.elementType===n.type?k:Ne(n.type,k),F);c.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=n.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(v){A(n,n.return,v)}if(e=n.sibling,e!==null){e.return=n.return,S=e;break}S=n.return}return w=zo,zo=!1,w}function Pt(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var u=l.destroy;l.destroy=void 0,u!==void 0&&Pu(n,t,u)}l=l.next}while(l!==r)}}function il(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Nu(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function Oa(e){var n=e.alternate;n!==null&&(e.alternate=null,Oa(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Ie],delete n[$t],delete n[pu],delete n[Ic],delete n[Fc])),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 Da(e){return e.tag===5||e.tag===3||e.tag===4}function To(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Da(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 zu(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Fr));else if(r!==4&&(e=e.child,e!==null))for(zu(e,n,t),e=e.sibling;e!==null;)zu(e,n,t),e=e.sibling}function Tu(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Tu(e,n,t),e=e.sibling;e!==null;)Tu(e,n,t),e=e.sibling}var J=null,ze=!1;function Xe(e,n,t){for(t=t.child;t!==null;)Ia(e,n,t),t=t.sibling}function Ia(e,n,t){if(Fe&&typeof Fe.onCommitFiberUnmount=="function")try{Fe.onCommitFiberUnmount(qr,t)}catch{}switch(t.tag){case 5:te||Bn(t,n);case 6:var r=J,l=ze;J=null,Xe(e,n,t),J=r,ze=l,J!==null&&(ze?(e=J,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):J.removeChild(t.stateNode));break;case 18:J!==null&&(ze?(e=J,t=t.stateNode,e.nodeType===8?Ml(e.parentNode,t):e.nodeType===1&&Ml(e,t),Dt(e)):Ml(J,t.stateNode));break;case 4:r=J,l=ze,J=t.stateNode.containerInfo,ze=!0,Xe(e,n,t),J=r,ze=l;break;case 0:case 11:case 14:case 15:if(!te&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var u=l,i=u.destroy;u=u.tag,i!==void 0&&(u&2||u&4)&&Pu(t,n,i),l=l.next}while(l!==r)}Xe(e,n,t);break;case 1:if(!te&&(Bn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(o){A(t,n,o)}Xe(e,n,t);break;case 21:Xe(e,n,t);break;case 22:t.mode&1?(te=(r=te)||t.memoizedState!==null,Xe(e,n,t),te=r):Xe(e,n,t);break;default:Xe(e,n,t)}}function Lo(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new qc),n.forEach(function(r){var l=sd.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function Pe(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=i),r&=~u}if(r=l,r=W()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*nd(r/1960))-r,10e?16:e,en===null)var r=!1;else{if(e=en,en=null,Gr=0,R&6)throw Error(y(331));var l=R;for(R|=4,S=e.current;S!==null;){var u=S,i=u.child;if(S.flags&16){var o=u.deletions;if(o!==null){for(var s=0;sW()-wi?En(e,0):gi|=t),de(e,n)}function Ha(e,n){n===0&&(e.mode&1?(n=lr,lr<<=1,!(lr&130023424)&&(lr=4194304)):n=1);var t=ue();e=Qe(e,n),e!==null&&(Yt(e,n,t),de(e,t))}function od(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),Ha(e,t)}function sd(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(n),Ha(e,t)}var Wa;Wa=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||fe.current)ae=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return ae=!1,Gc(e,n,t);ae=!!(e.flags&131072)}else ae=!1,j&&n.flags&1048576&&Ys(n,Vr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;_r(e,n),e=n.pendingProps;var l=Jn(n,re.current);Xn(n,t),l=di(null,n,r,e,l,t);var u=pi();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,ce(r)?(u=!0,Ur(n)):u=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,oi(n),l.updater=ll,n.stateNode=l,l._reactInternals=n,wu(n,r,e,t),n=Eu(null,n,r,!0,u,t)):(n.tag=0,j&&u&&ei(n),le(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(_r(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=fd(r),e=Ne(r,e),l){case 0:n=Su(null,n,r,e,t);break e;case 1:n=xo(null,n,r,e,t);break e;case 11:n=Co(null,n,r,e,t);break e;case 14:n=_o(null,n,r,Ne(r.type,e),t);break e}throw Error(y(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Ne(r,l),Su(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Ne(r,l),xo(e,n,r,l,t);case 3:e:{if(Na(n),e===null)throw Error(y(387));r=n.pendingProps,u=n.memoizedState,l=u.element,Js(e,n),Hr(n,r,null,t);var i=n.memoizedState;if(r=i.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},n.updateQueue.baseState=u,n.memoizedState=u,n.flags&256){l=nt(Error(y(423)),n),n=Po(e,n,r,t,l);break e}else if(r!==l){l=nt(Error(y(424)),n),n=Po(e,n,r,t,l);break e}else for(me=ln(n.stateNode.containerInfo.firstChild),he=n,j=!0,Te=null,t=na(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(qn(),r===l){n=Ke(e,n,t);break e}le(e,n,r,t)}n=n.child}return n;case 5:return ta(n),e===null&&vu(n),r=n.type,l=n.pendingProps,u=e!==null?e.memoizedProps:null,i=l.children,cu(r,l)?i=null:u!==null&&cu(r,u)&&(n.flags|=32),Pa(e,n),le(e,n,i,t),n.child;case 6:return e===null&&vu(n),null;case 13:return za(e,n,t);case 4:return si(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=bn(n,null,r,t):le(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Ne(r,l),Co(e,n,r,l,t);case 7:return le(e,n,n.pendingProps,t),n.child;case 8:return le(e,n,n.pendingProps.children,t),n.child;case 12:return le(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,u=n.memoizedProps,i=l.value,O(Ar,r._currentValue),r._currentValue=i,u!==null)if(Me(u.value,i)){if(u.children===l.children&&!fe.current){n=Ke(e,n,t);break e}}else for(u=n.child,u!==null&&(u.return=n);u!==null;){var o=u.dependencies;if(o!==null){i=u.child;for(var s=o.firstContext;s!==null;){if(s.context===r){if(u.tag===1){s=Be(-1,t&-t),s.tag=2;var f=u.updateQueue;if(f!==null){f=f.shared;var h=f.pending;h===null?s.next=s:(s.next=h.next,h.next=s),f.pending=s}}u.lanes|=t,s=u.alternate,s!==null&&(s.lanes|=t),yu(u.return,t,n),o.lanes|=t;break}s=s.next}}else if(u.tag===10)i=u.type===n.type?null:u.child;else if(u.tag===18){if(i=u.return,i===null)throw Error(y(341));i.lanes|=t,o=i.alternate,o!==null&&(o.lanes|=t),yu(i,t,n),i=u.sibling}else i=u.child;if(i!==null)i.return=u;else for(i=u;i!==null;){if(i===n){i=null;break}if(u=i.sibling,u!==null){u.return=i.return,i=u;break}i=i.return}u=i}le(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Xn(n,t),l=Ce(l),r=r(l),n.flags|=1,le(e,n,r,t),n.child;case 14:return r=n.type,l=Ne(r,n.pendingProps),l=Ne(r.type,l),_o(e,n,r,l,t);case 15:return _a(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Ne(r,l),_r(e,n),n.tag=1,ce(r)?(e=!0,Ur(n)):e=!1,Xn(n,t),bs(n,r,l),wu(n,r,l,t),Eu(null,n,r,!0,e,t);case 19:return Ta(e,n,t);case 22:return xa(e,n,t)}throw Error(y(156,n.tag))};function Qa(e,n){return ys(e,n)}function ad(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,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 Se(e,n,t,r){return new ad(e,n,t,r)}function Ci(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fd(e){if(typeof e=="function")return Ci(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bu)return 11;if(e===Hu)return 14}return 2}function an(e,n){var t=e.alternate;return t===null?(t=Se(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Nr(e,n,t,r,l,u){var i=2;if(r=e,typeof e=="function")Ci(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case On:return Cn(t.children,l,u,n);case Au:i=8,l|=8;break;case Hl:return e=Se(12,t,n,l|2),e.elementType=Hl,e.lanes=u,e;case Wl:return e=Se(13,t,n,l),e.elementType=Wl,e.lanes=u,e;case Ql:return e=Se(19,t,n,l),e.elementType=Ql,e.lanes=u,e;case es:return sl(t,l,u,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qo:i=10;break e;case bo:i=9;break e;case Bu:i=11;break e;case Hu:i=14;break e;case Ge:i=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return n=Se(i,t,n,l),n.elementType=e,n.type=r,n.lanes=u,n}function Cn(e,n,t,r){return e=Se(7,e,r,n),e.lanes=t,e}function sl(e,n,t,r){return e=Se(22,e,r,n),e.elementType=es,e.lanes=t,e.stateNode={isHidden:!1},e}function Vl(e,n,t){return e=Se(6,e,null,n),e.lanes=t,e}function Al(e,n,t){return n=Se(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function cd(e,n,t,r,l){this.tag=n,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=Sl(0),this.expirationTimes=Sl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function _i(e,n,t,r,l,u,i,o,s){return e=new cd(e,n,t,o,s),n===1?(n=1,u===!0&&(n|=8)):n=0,u=Se(3,null,null,n),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},oi(u),e}function dd(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ga)}catch(e){console.error(e)}}Ga(),Yo.exports=ye;var gd=Yo.exports;export{yd as R,gd as a,vd as c,Ja as g,Ko as r}; diff --git a/dist/copilot_web/vendor-ui-Dzvx2fKw.js b/dist/copilot_web/vendor-ui-Dzvx2fKw.js new file mode 100644 index 0000000..e7af5f5 --- /dev/null +++ b/dist/copilot_web/vendor-ui-Dzvx2fKw.js @@ -0,0 +1 @@ +import"./vendor-react-V04_Axys.js"; diff --git a/dist/copilot_web/workflowChat-Uj9PkyjV.js b/dist/copilot_web/workflowChat-Uj9PkyjV.js new file mode 100644 index 0000000..d9384aa --- /dev/null +++ b/dist/copilot_web/workflowChat-Uj9PkyjV.js @@ -0,0 +1,117 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["copilot_web/WorkflowOption-D3X28qdQ.js","copilot_web/vendor-markdown-Dek94WS0.js","copilot_web/vendor-react-V04_Axys.js","copilot_web/message-components-Nlko-0DO.js"])))=>i.map(i=>d[i]); +import{j as v}from"./vendor-markdown-Dek94WS0.js";import{r as D,R as it,c as It}from"./vendor-react-V04_Axys.js";import{a as re,B as vg,U as xg,b as mg,g as xe,A as Xi,c as wg,u as Ts,W as Ji}from"./message-components-Nlko-0DO.js";import{l as yg}from"./App-20LV5x8c.js";import{_ as br}from"./input.js";/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bg=m=>m.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ms=(...m)=>m.filter((C,s,F)=>!!C&&C.trim()!==""&&F.indexOf(C)===s).join(" ").trim();/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Ag={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Eg=D.forwardRef(({color:m="currentColor",size:C=24,strokeWidth:s=2,absoluteStrokeWidth:F,className:j="",children:L,iconNode:T,...Z},y)=>D.createElement("svg",{ref:y,...Ag,width:C,height:C,stroke:m,strokeWidth:F?Number(s)*24/Number(C):s,className:Ms("lucide",j),...Z},[...T.map(([tn,k])=>D.createElement(tn,k)),...Array.isArray(L)?L:[L]]));/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ut=(m,C)=>{const s=D.forwardRef(({className:F,...j},L)=>D.createElement(Eg,{ref:L,iconNode:C,className:Ms(`lucide-${bg(m)}`,F),...j}));return s.displayName=`${m}`,s};/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Sg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Ig=ut("Image",Sg);/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Cg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Rg=ut("Plus",Cg);/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Lg=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Ng=ut("Send",Lg);/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Tg=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Mg=ut("Settings",Tg);/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Og=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],Wg=ut("Trash",Og);/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Dg=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],mr=ut("X",Dg);function Pg({isOpen:m,onClose:C,onSave:s,initialApiKey:F=""}){const[j,L]=D.useState(F),[T,Z]=D.useState(!1);return D.useEffect(()=>{L(F)},[F]),m?v.jsx("div",{className:"fixed inset-0 bg-black/40 backdrop-blur-sm flex items-center justify-center z-50",children:v.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl p-8 w-[480px] shadow-2xl",children:[v.jsx("h2",{className:"text-xl text-gray-900 dark:text-white font-semibold mb-6",children:"Set API Key"}),v.jsxs("div",{className:"relative",children:[v.jsx("input",{type:T?"text":"password",value:j,onChange:y=>L(y.target.value),placeholder:"Enter your API key",className:`w-full px-4 py-3 border border-gray-200 dark:border-gray-600 rounded-lg mb-4 pr-12 + bg-gray-50 dark:bg-gray-700 + text-gray-900 dark:text-white + placeholder-gray-500 dark:placeholder-gray-400 + focus:border-blue-500 dark:focus:border-blue-400 + focus:ring-2 focus:ring-blue-500/20 dark:focus:ring-blue-400/20 + focus:outline-none`}),v.jsx("button",{type:"button",className:`absolute inset-y-0 right-0 pr-4 flex items-center text-gray-500 dark:text-gray-400 + hover:text-gray-700 dark:hover:text-gray-200 transition-colors bg-transparent border-none`,onClick:()=>Z(!T),children:T?v.jsxs("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]}):v.jsx("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})})})]}),v.jsxs("div",{className:"mb-6 text-sm text-gray-600 dark:text-gray-300",children:[v.jsx("span",{children:"Don't have an API key? "}),v.jsx("a",{href:"https://form.typeform.com/to/tkg91K8D",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 font-medium",children:"Click here to request one"})]}),v.jsxs("div",{className:"flex justify-end gap-3",children:[v.jsx("button",{onClick:C,className:`px-5 py-2.5 text-gray-700 bg-white dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 + rounded-lg font-medium transition-colors`,children:"Cancel"}),v.jsx("button",{onClick:()=>{s(j),C()},className:`px-5 py-2.5 bg-blue-600 hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600 + text-white rounded-lg font-medium transition-colors`,children:"Save"})]})]})}):null}function Ug({onClose:m,onClear:C,hasMessages:s,onHeightResize:F}){const[j,L]=D.useState(!1),[T,Z]=D.useState(!1),y=()=>{L(!0)},tn=q=>{localStorage.setItem("chatApiKey",q)},k=q=>{Z(!0),q.preventDefault()};return D.useEffect(()=>{const q=fn=>{if(!T)return;const Sn=fn.movementY;F?.(Sn)},cn=()=>{Z(!1)};return T&&(document.addEventListener("mousemove",q),document.addEventListener("mouseup",cn)),()=>{document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",cn)}},[T,F]),v.jsxs(v.Fragment,{children:[v.jsx("div",{className:`absolute top-0 left-0 right-0 h-2 bg-gray-100 hover:bg-gray-300 + transition-colors duration-200 cursor-ns-resize z-20`,onMouseDown:k,style:{borderBottom:"1px solid #e5e7eb"}}),v.jsxs("div",{className:`flex items-center justify-between border-b px-4 py-3 + bg-white border-gray-200 sticky top-2 z-10`,children:[v.jsxs("div",{className:"flex items-center space-x-2",children:[v.jsx("img",{src:yg,alt:"ComfyUI-Copilot Logo",className:"h-12 w-12 -ml-2"}),v.jsx("h3",{className:"text-[16px] font-medium text-gray-800",children:"ComfyUI-Copilot"}),v.jsx("button",{onClick:y,className:"p-1 bg-white border-none hover:bg-gray-100 rounded text-gray-500",children:v.jsx(Mg,{className:"h-5 w-5"})})]}),v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx("button",{className:`inline-flex bg-white border-none items-center justify-center rounded-md p-2 + text-gray-500 hover:bg-gray-100`,disabled:!s,onClick:C,children:v.jsx(Wg,{className:"h-5 w-5"})}),v.jsx("button",{className:`inline-flex bg-white border-none items-center justify-center rounded-md p-2 + text-gray-500 hover:bg-gray-100`,onClick:m,children:v.jsx(mr,{className:"h-5 w-5"})})]})]}),v.jsx(Pg,{isOpen:j,onClose:()=>L(!1),onSave:tn,initialApiKey:localStorage.getItem("chatApiKey")||""})]})}const Bg=5*1024*1024,Ns=["image/jpeg","image/png","image/gif","image/webp"];function Fg({input:m,loading:C,onChange:s,onSend:F,onKeyPress:j,onUploadImages:L,uploadedImages:T,onRemoveImage:Z,selectedModel:y,onModelChange:tn}){const[k,q]=D.useState(!1),cn=it.useRef(null),fn=D.useRef(null);D.useEffect(()=>{fn.current&&(fn.current.style.height="auto",fn.current.style.height=`${Math.min(fn.current.scrollHeight,400)}px`)},[m]);const Sn=G=>{if(G.target.files){const z=[],gn=[];if(Array.from(G.target.files).forEach(rn=>{Ns.includes(rn.type)?rn.size>Bg?z.push(`${rn.name} (exceeds 5MB)`):gn.push(rn):z.push(`${rn.name} (unsupported format)`)}),z.length>0&&alert(`The following files couldn't be uploaded: +${z.join(` +`)}`),gn.length>0){const rn=new DataTransfer;gn.forEach(pn=>rn.items.add(pn)),L(rn.files)}}};return v.jsxs("div",{className:`relative ${T.length>0?"mt-12":""}`,children:[T.length>0&&v.jsx("div",{className:"absolute -top-10 left-0 flex gap-2",children:T.map(G=>v.jsxs("div",{className:"relative group",children:[v.jsx("img",{src:G.preview,alt:"uploaded",className:"w-8 h-8 rounded object-cover"}),v.jsx("button",{onClick:()=>Z(G.id),className:`absolute -top-1 -right-1 bg-white border-none text-gray-500 rounded-full p-0.5 + opacity-0 group-hover:opacity-100 transition-opacity`,children:v.jsx(mr,{className:"w-3 h-3"})})]},G.id))}),v.jsx("textarea",{ref:fn,onChange:s,onKeyDown:G=>{if(G.key==="Enter"&&!G.shiftKey){if(G.nativeEvent.isComposing)return;G.preventDefault(),F()}j(G)},value:m,placeholder:"Type your message...",className:`w-full min-h-[80px] max-h-[400px] resize-none rounded-md border + border-gray-200 px-3 py-2 pr-12 pb-10 text-[14px] shadow-sm + focus:outline-none focus:ring-2 focus:ring-blue-500 + focus:border-transparent bg-white transition-all + duration-200 text-gray-700 overflow-y-auto`,style:{height:"80px"}}),v.jsxs("div",{className:`absolute bottom-2 left-3 right-12 flex items-center gap-2 + bg-white border-t border-gray-100 pt-1`,children:[v.jsxs("select",{value:y,onChange:G=>tn(G.target.value),className:`px-1.5 py-0.5 text-xs rounded-md + border border-gray-200 bg-white text-gray-700 + focus:outline-none focus:ring-2 focus:ring-blue-500 + focus:border-transparent hover:bg-gray-50 + transition-colors border-0`,children:[v.jsx("option",{value:"gpt-4o-mini",children:"gpt-4o-mini"}),v.jsx("option",{value:"gpt-4o",children:"gpt-4o"}),v.jsx("option",{value:"qwen-plus",children:"qwen-plus"})]}),v.jsx("button",{type:"button",onClick:()=>q(!0),className:`p-1.5 text-gray-500 bg-white border-none + hover:bg-gray-100 hover:text-gray-600 + transition-all duration-200 outline-none`,children:v.jsx(Ig,{className:"h-4 w-4"})})]}),v.jsx("button",{type:"submit",onClick:F,disabled:C,className:`absolute bottom-3 right-3 p-2 rounded-md text-gray-500 bg-white border-none + hover:bg-gray-100 hover:text-gray-600 disabled:opacity-50 + transition-all duration-200 active:scale-95`,children:C?v.jsx("div",{className:`h-5 w-5 animate-spin rounded-full + border-2 border-gray-300 border-t-blue-500`}):v.jsx(Ng,{className:"h-5 w-5 group-hover:translate-x-1"})}),k&&v.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:v.jsxs("div",{className:"bg-white rounded-lg p-6 w-96 relative",children:[v.jsx("button",{onClick:()=>q(!1),className:"absolute top-2 right-2 bg-white border-none text-gray-500 hover:text-gray-700",children:v.jsx(mr,{className:"w-5 h-5"})}),v.jsx("h3",{className:"text-lg text-gray-800 font-medium mb-4",children:"Upload Images"}),v.jsxs("div",{className:`border-2 border-dashed border-gray-300 rounded-lg p-8 + flex flex-col items-center justify-center gap-4 + hover:border-blue-500 transition-colors cursor-pointer`,onClick:()=>cn.current?.click(),children:[v.jsx(Rg,{className:"w-8 h-8 text-gray-400"}),v.jsxs("div",{className:"text-center",children:[v.jsx("p",{className:"text-sm text-gray-500 mb-2",children:"Click to upload images or drag and drop"}),v.jsx("p",{className:"text-xs text-gray-400",children:"Supported formats: JPG, PNG, GIF, WebP"}),v.jsx("p",{className:"text-xs text-gray-400",children:"Max file size: 5MB"})]})]}),v.jsx("input",{ref:cn,type:"file",multiple:!0,accept:Ns.join(","),onChange:Sn,className:"hidden"}),T.length>0&&v.jsx("div",{className:"mt-4 grid grid-cols-3 gap-2",children:T.map(G=>v.jsxs("div",{className:"relative group",children:[v.jsx("img",{src:G.preview,alt:"preview",className:"w-full h-20 object-cover rounded"}),v.jsx("button",{onClick:()=>Z(G.id),className:`absolute -top-1 -right-1 bg-white border-none text-gray-500 + rounded-full p-0.5 opacity-0 group-hover:opacity-100 + transition-opacity`,children:v.jsx(mr,{className:"w-3 h-3"})})]},G.id))}),v.jsx("div",{className:"mt-4 flex justify-end gap-2",children:v.jsx("button",{onClick:()=>q(!1),className:`px-4 py-2 text-sm font-medium text-gray-700 + bg-white border border-gray-300 rounded-md + hover:bg-gray-50`,children:"Close"})})]})})]})}function Gg(){const m=Object.values(re.canvas.selected_nodes)[0],C=new Set;function s(F,j){if(!(!F||j>=1)&&F.inputs)for(const L of Object.values(F.inputs)){const T=L.link;if(T&&re.graph.links[T]){const Z=re.graph.links[T].origin_id,y=re.graph._nodes_by_id[Z];y&&(C.add(y.type),s(y,j+1))}}}return m?(s(m,0),[{type:"upstream_node_types",data:Array.from(C)}]):null}function kg({nodeInfo:m,onSendWithIntent:C,loading:s}){return v.jsx("div",{className:"mb-3 p-3 rounded-md bg-gray-50 border border-gray-200",children:v.jsxs("div",{className:"text-sm text-gray-700",children:[v.jsxs("p",{children:["Selected node: ",m.type]}),v.jsxs("div",{className:"flex gap-2 mt-2",children:[v.jsx("button",{className:`px-3 py-1 text-xs rounded-md bg-blue-50 + text-blue-700 hover:bg-blue-100`,onClick:()=>C("node_explain"),disabled:s,children:"Usage"}),v.jsx("button",{className:`px-3 py-1 text-xs rounded-md bg-green-100 + text-green-700 hover:bg-green-200`,onClick:()=>C("node_params"),disabled:s,children:"Parameters"}),v.jsx("button",{className:`px-3 py-1 text-xs rounded-md bg-purple-100 + text-purple-700 hover:bg-purple-200`,onClick:()=>C("downstream_subgraph_search",Gg()),disabled:s,children:"Downstream Nodes"})]})]})})}function zg(){return v.jsx(vg,{name:"Assistant",children:v.jsxs("div",{className:"flex items-center space-x-2 p-4 bg-gray-50 rounded-lg",children:[v.jsxs("div",{className:"flex space-x-1",children:[v.jsx("div",{className:"w-2 h-2 bg-gray-400 rounded-full animate-bounce",style:{animationDelay:"0ms"}}),v.jsx("div",{className:"w-2 h-2 bg-gray-400 rounded-full animate-bounce",style:{animationDelay:"150ms"}}),v.jsx("div",{className:"w-2 h-2 bg-gray-400 rounded-full animate-bounce",style:{animationDelay:"300ms"}})]}),v.jsx("span",{className:"text-sm text-gray-500",children:"AI is thinking..."})]})})}const Hg=m=>`https://ui-avatars.com/api/?name=${m||"User"}&background=random`,$g=D.lazy(()=>br(()=>import("./WorkflowOption-D3X28qdQ.js"),__vite__mapDeps([0,1,2,3])).then(m=>({default:m.WorkflowOption}))),Kg=D.lazy(()=>br(()=>import("./message-components-Nlko-0DO.js").then(m=>m.N),__vite__mapDeps([3,2,1])).then(m=>({default:m.NodeSearch}))),qg=D.lazy(()=>br(()=>import("./message-components-Nlko-0DO.js").then(m=>m.D),__vite__mapDeps([3,2,1])).then(m=>({default:m.DownstreamSubgraphs}))),jg=D.lazy(()=>br(()=>import("./message-components-Nlko-0DO.js").then(m=>m.d),__vite__mapDeps([3,2,1])).then(m=>({default:m.NodeInstallGuide})));function Zg({messages:m,latestInput:C,onOptionClick:s,installedNodes:F,onAddMessage:j,loading:L}){const T=it.useMemo(()=>y=>{if(y.role==="user")return v.jsx(xg,{content:y.content,trace_id:y.trace_id},y.id);if(y.role==="ai"||y.role==="tool"){const tn=Hg(y.role);try{const k=JSON.parse(y.content),q=k.ext?.find(z=>z.type==="workflow"),cn=k.ext?.find(z=>z.type==="node"),fn=k.ext?.find(z=>z.type==="downstream_subgraph_search"),Sn=k.ext?.find(z=>z.type==="node_install_guide");let G=null;return q?G=v.jsx($g,{content:y.content,name:y.name,latestInput:C,installedNodes:F,onAddMessage:j}):cn?G=v.jsx(Kg,{content:y.content,name:y.name,avatar:tn,installedNodes:F}):fn?G=v.jsx(qg,{content:y.content,name:y.name,avatar:tn,installedNodes:F,onAddMessage:j}):Sn&&(G=v.jsx(jg,{content:y.content,onLoadSubgraph:()=>{if(y.metadata?.pendingSubgraph){const z=Object.values(re.canvas.selected_nodes)[0];if(z){const gn=y.metadata.pendingSubgraph,rn=gn.json.nodes,pn=gn.json.links,In=rn.find(X=>X.id===0),hn=In?.id,yn={};hn&&(yn[hn]=z),re.canvas.emitBeforeChange();try{for(const X of rn)if(X.id!==hn){const Cn=In?.pos,Rn=[z._pos[0],z._pos[1]],Le=[X.pos[0]+Rn[0]-Cn[0],X.pos[1]+Rn[1]-Cn[1]];yn[X.id]=mg(X.type,{pos:Le})}}finally{re.canvas.emitAfterChange()}for(const X of pn){const Cn=yn[X.origin_id],Rn=yn[X.target_id];Cn&&Rn&&Cn.connect(X.origin_slot,Rn,X.target_slot)}}else alert("Please select a upstream node first before adding a subgraph.")}else if(y.metadata?.pendingWorkflow){const z=y.metadata.pendingWorkflow,gn=y.metadata.optimizedParams;re.loadGraphData(z);for(const[pn,In,hn,yn,X]of gn){const Cn=re.graph._nodes_by_id[pn].widgets;for(const Rn of Cn)Rn.name===yn&&(Rn.value=X)}re.graph.setDirtyCanvas(!1,!0);const rn={id:xe(),role:"tool",content:JSON.stringify({text:"The workflow has been successfully loaded to the canvas",ext:[]}),format:"markdown",name:"Assistant"};j?.(rn)}}})),k.text||G?v.jsx(Xi,{content:y.content,name:y.name,format:y.format,onOptionClick:s,extComponent:G},y.id):G||v.jsx(Xi,{content:y.content,name:y.name,format:y.format,onOptionClick:s},y.id)}catch(k){return console.error("[MessageList] Error parsing message content:",k),console.error("解析JSON失败",y.content),v.jsx(Xi,{content:y.content,name:y.name,format:y.format,onOptionClick:s},y.id)}}return null},[]),Z=it.useMemo(()=>m?.map(T),[m,T]);return v.jsxs("div",{className:"flex flex-col gap-4 w-full",children:[Z,L&&v.jsx(zg,{})]})}async function Yg(){try{return await(await wg.fetchApi("/object_info",{method:"GET"})).json()}catch(m){throw console.error("Error fetching object info:",m),m}}async function Xg(){const m=await Yg();return Object.keys(m)}var wr={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */wr.exports;(function(m,C){(function(){var s,F="4.17.21",j=200,L="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",T="Expected a function",Z="Invalid `variable` option passed into `_.template`",y="__lodash_hash_undefined__",tn=500,k="__lodash_placeholder__",q=1,cn=2,fn=4,Sn=1,G=2,z=1,gn=2,rn=4,pn=8,In=16,hn=32,yn=64,X=128,Cn=256,Rn=512,Le=30,Ar="...",Er=800,Ct=16,Ne=1,Sr=2,Rt=3,ze=1/0,me=9007199254740991,Ir=17976931348623157e292,Te=NaN,Gn=4294967295,Lt=Gn-1,Cr=Gn>>>1,Rr=[["ary",X],["bind",z],["bindKey",gn],["curry",pn],["curryRight",In],["flip",Rn],["partial",hn],["partialRight",yn],["rearg",Cn]],I="[object Arguments]",un="[object Array]",xn="[object AsyncFunction]",Xn="[object Boolean]",kn="[object Date]",ie="[object DOMException]",Ln="[object Error]",Me="[object Function]",Qi="[object GeneratorFunction]",Jn="[object Map]",ot="[object Number]",Os="[object Null]",fe="[object Object]",Vi="[object Promise]",Ws="[object Proxy]",st="[object RegExp]",Qn="[object Set]",ft="[object String]",Nt="[object Symbol]",Ds="[object Undefined]",at="[object WeakMap]",Ps="[object WeakSet]",lt="[object ArrayBuffer]",He="[object DataView]",Lr="[object Float32Array]",Nr="[object Float64Array]",Tr="[object Int8Array]",Mr="[object Int16Array]",Or="[object Int32Array]",Wr="[object Uint8Array]",Dr="[object Uint8ClampedArray]",Pr="[object Uint16Array]",Ur="[object Uint32Array]",Us=/\b__p \+= '';/g,Bs=/\b(__p \+=) '' \+/g,Fs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,nu=/&(?:amp|lt|gt|quot|#39);/g,eu=/[&<>"']/g,Gs=RegExp(nu.source),ks=RegExp(eu.source),zs=/<%-([\s\S]+?)%>/g,Hs=/<%([\s\S]+?)%>/g,tu=/<%=([\s\S]+?)%>/g,$s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ks=/^\w*$/,qs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Br=/[\\^$.*+?()[\]{}|]/g,js=RegExp(Br.source),Fr=/^\s+/,Zs=/\s/,Ys=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xs=/\{\n\/\* \[wrapped with (.+)\] \*/,Js=/,? & /,Qs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vs=/[()=,{}\[\]\/\s]/,nf=/\\(\\)?/g,ef=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ru=/\w*$/,tf=/^[-+]0x[0-9a-f]+$/i,rf=/^0b[01]+$/i,uf=/^\[object .+?Constructor\]$/,of=/^0o[0-7]+$/i,sf=/^(?:0|[1-9]\d*)$/,ff=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tt=/($^)/,af=/['\n\r\u2028\u2029\\]/g,Mt="\\ud800-\\udfff",lf="\\u0300-\\u036f",cf="\\ufe20-\\ufe2f",hf="\\u20d0-\\u20ff",iu=lf+cf+hf,uu="\\u2700-\\u27bf",ou="a-z\\xdf-\\xf6\\xf8-\\xff",df="\\xac\\xb1\\xd7\\xf7",gf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pf="\\u2000-\\u206f",_f=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",su="A-Z\\xc0-\\xd6\\xd8-\\xde",fu="\\ufe0e\\ufe0f",au=df+gf+pf+_f,Gr="['’]",vf="["+Mt+"]",lu="["+au+"]",Ot="["+iu+"]",cu="\\d+",xf="["+uu+"]",hu="["+ou+"]",du="[^"+Mt+au+cu+uu+ou+su+"]",kr="\\ud83c[\\udffb-\\udfff]",mf="(?:"+Ot+"|"+kr+")",gu="[^"+Mt+"]",zr="(?:\\ud83c[\\udde6-\\uddff]){2}",Hr="[\\ud800-\\udbff][\\udc00-\\udfff]",$e="["+su+"]",pu="\\u200d",_u="(?:"+hu+"|"+du+")",wf="(?:"+$e+"|"+du+")",vu="(?:"+Gr+"(?:d|ll|m|re|s|t|ve))?",xu="(?:"+Gr+"(?:D|LL|M|RE|S|T|VE))?",mu=mf+"?",wu="["+fu+"]?",yf="(?:"+pu+"(?:"+[gu,zr,Hr].join("|")+")"+wu+mu+")*",bf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Af="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",yu=wu+mu+yf,Ef="(?:"+[xf,zr,Hr].join("|")+")"+yu,Sf="(?:"+[gu+Ot+"?",Ot,zr,Hr,vf].join("|")+")",If=RegExp(Gr,"g"),Cf=RegExp(Ot,"g"),$r=RegExp(kr+"(?="+kr+")|"+Sf+yu,"g"),Rf=RegExp([$e+"?"+hu+"+"+vu+"(?="+[lu,$e,"$"].join("|")+")",wf+"+"+xu+"(?="+[lu,$e+_u,"$"].join("|")+")",$e+"?"+_u+"+"+vu,$e+"+"+xu,Af,bf,cu,Ef].join("|"),"g"),Lf=RegExp("["+pu+Mt+iu+fu+"]"),Nf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Tf=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Mf=-1,Q={};Q[Lr]=Q[Nr]=Q[Tr]=Q[Mr]=Q[Or]=Q[Wr]=Q[Dr]=Q[Pr]=Q[Ur]=!0,Q[I]=Q[un]=Q[lt]=Q[Xn]=Q[He]=Q[kn]=Q[Ln]=Q[Me]=Q[Jn]=Q[ot]=Q[fe]=Q[st]=Q[Qn]=Q[ft]=Q[at]=!1;var J={};J[I]=J[un]=J[lt]=J[He]=J[Xn]=J[kn]=J[Lr]=J[Nr]=J[Tr]=J[Mr]=J[Or]=J[Jn]=J[ot]=J[fe]=J[st]=J[Qn]=J[ft]=J[Nt]=J[Wr]=J[Dr]=J[Pr]=J[Ur]=!0,J[Ln]=J[Me]=J[at]=!1;var Of={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Wf={"&":"&","<":"<",">":">",'"':""","'":"'"},Df={"&":"&","<":"<",">":">",""":'"',"'":"'"},Pf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Uf=parseFloat,Bf=parseInt,bu=typeof It=="object"&&It&&It.Object===Object&&It,Ff=typeof self=="object"&&self&&self.Object===Object&&self,_n=bu||Ff||Function("return this")(),Kr=C&&!C.nodeType&&C,Oe=Kr&&!0&&m&&!m.nodeType&&m,Au=Oe&&Oe.exports===Kr,qr=Au&&bu.process,zn=function(){try{var l=Oe&&Oe.require&&Oe.require("util").types;return l||qr&&qr.binding&&qr.binding("util")}catch{}}(),Eu=zn&&zn.isArrayBuffer,Su=zn&&zn.isDate,Iu=zn&&zn.isMap,Cu=zn&&zn.isRegExp,Ru=zn&&zn.isSet,Lu=zn&&zn.isTypedArray;function Wn(l,d,h){switch(h.length){case 0:return l.call(d);case 1:return l.call(d,h[0]);case 2:return l.call(d,h[0],h[1]);case 3:return l.call(d,h[0],h[1],h[2])}return l.apply(d,h)}function Gf(l,d,h,w){for(var R=-1,H=l==null?0:l.length;++R-1}function jr(l,d,h){for(var w=-1,R=l==null?0:l.length;++w-1;);return h}function Uu(l,d){for(var h=l.length;h--&&Ke(d,l[h],0)>-1;);return h}function Yf(l,d){for(var h=l.length,w=0;h--;)l[h]===d&&++w;return w}var Xf=Jr(Of),Jf=Jr(Wf);function Qf(l){return"\\"+Pf[l]}function Vf(l,d){return l==null?s:l[d]}function qe(l){return Lf.test(l)}function na(l){return Nf.test(l)}function ea(l){for(var d,h=[];!(d=l.next()).done;)h.push(d.value);return h}function ei(l){var d=-1,h=Array(l.size);return l.forEach(function(w,R){h[++d]=[R,w]}),h}function Bu(l,d){return function(h){return l(d(h))}}function be(l,d){for(var h=-1,w=l.length,R=0,H=[];++h-1}function za(n,e){var t=this.__data__,r=Jt(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}ae.prototype.clear=Ba,ae.prototype.delete=Fa,ae.prototype.get=Ga,ae.prototype.has=ka,ae.prototype.set=za;function le(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function qn(n,e,t,r,i,o){var f,a=e&q,c=e&cn,g=e&fn;if(t&&(f=i?t(n,r,i,o):t(n)),f!==s)return f;if(!nn(n))return n;var p=N(n);if(p){if(f=ql(n),!a)return Nn(n,f)}else{var _=wn(n),x=_==Me||_==Qi;if(Re(n))return yo(n,a);if(_==fe||_==I||x&&!i){if(f=c||x?{}:Go(n),!a)return c?Dl(n,il(f,n)):Wl(n,Xu(f,n))}else{if(!J[_])return i?n:{};f=jl(n,_,a)}}o||(o=new ne);var b=o.get(n);if(b)return b;o.set(n,f),ps(n)?n.forEach(function(S){f.add(qn(S,e,t,S,n,o))}):ds(n)&&n.forEach(function(S,P){f.set(P,qn(S,e,t,P,n,o))});var E=g?c?Ci:Ii:c?Mn:dn,O=p?s:E(n);return Hn(O||n,function(S,P){O&&(P=S,S=n[P]),vt(f,P,qn(S,e,t,P,n,o))}),f}function ul(n){var e=dn(n);return function(t){return Ju(t,n,e)}}function Ju(n,e,t){var r=t.length;if(n==null)return!r;for(n=Y(n);r--;){var i=t[r],o=e[i],f=n[i];if(f===s&&!(i in n)||!o(f))return!1}return!0}function Qu(n,e,t){if(typeof n!="function")throw new $n(T);return Et(function(){n.apply(s,t)},e)}function xt(n,e,t,r){var i=-1,o=Wt,f=!0,a=n.length,c=[],g=e.length;if(!a)return c;t&&(e=V(e,Dn(t))),r?(o=jr,f=!1):e.length>=j&&(o=ct,f=!1,e=new Pe(e));n:for(;++ii?0:i+t),r=r===s||r>i?i:M(r),r<0&&(r+=i),r=t>r?0:vs(r);t0&&t(a)?e>1?vn(a,e-1,t,r,i):ye(i,a):r||(i[i.length]=a)}return i}var fi=Co(),eo=Co(!0);function ue(n,e){return n&&fi(n,e,dn)}function ai(n,e){return n&&eo(n,e,dn)}function Vt(n,e){return we(e,function(t){return pe(n[t])})}function Be(n,e){e=Ie(e,n);for(var t=0,r=e.length;n!=null&&te}function fl(n,e){return n!=null&&K.call(n,e)}function al(n,e){return n!=null&&e in Y(n)}function ll(n,e,t){return n>=mn(e,t)&&n=120&&p.length>=120)?new Pe(f&&p):s}p=n[0];var _=-1,x=a[0];n:for(;++_-1;)a!==n&&$t.call(a,c,1),$t.call(n,c,1);return n}function ho(n,e){for(var t=n?e.length:0,r=t-1;t--;){var i=e[t];if(t==r||i!==o){var o=i;ge(i)?$t.call(n,i,1):mi(n,i)}}return n}function _i(n,e){return n+jt(qu()*(e-n+1))}function Al(n,e,t,r){for(var i=-1,o=ln(qt((e-n)/(t||1)),0),f=h(o);o--;)f[r?o:++i]=n,n+=t;return f}function vi(n,e){var t="";if(!n||e<1||e>me)return t;do e%2&&(t+=n),e=jt(e/2),e&&(n+=n);while(e);return t}function W(n,e){return Wi(Ho(n,e,On),n+"")}function El(n){return Yu(rt(n))}function Sl(n,e){var t=rt(n);return lr(t,Ue(e,0,t.length))}function yt(n,e,t,r){if(!nn(n))return n;e=Ie(e,n);for(var i=-1,o=e.length,f=o-1,a=n;a!=null&&++ii?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var o=h(i);++r>>1,f=n[o];f!==null&&!Un(f)&&(t?f<=e:f=j){var g=e?null:Fl(n);if(g)return Pt(g);f=!1,i=ct,c=new Pe}else c=e?[]:a;n:for(;++r=r?n:jn(n,e,t)}var wo=_a||function(n){return _n.clearTimeout(n)};function yo(n,e){if(e)return n.slice();var t=n.length,r=ku?ku(t):new n.constructor(t);return n.copy(r),r}function Ai(n){var e=new n.constructor(n.byteLength);return new zt(e).set(new zt(n)),e}function Nl(n,e){var t=e?Ai(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Tl(n){var e=new n.constructor(n.source,ru.exec(n));return e.lastIndex=n.lastIndex,e}function Ml(n){return _t?Y(_t.call(n)):{}}function bo(n,e){var t=e?Ai(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function Ao(n,e){if(n!==e){var t=n!==s,r=n===null,i=n===n,o=Un(n),f=e!==s,a=e===null,c=e===e,g=Un(e);if(!a&&!g&&!o&&n>e||o&&f&&c&&!a&&!g||r&&f&&c||!t&&c||!i)return 1;if(!r&&!o&&!g&&n=a)return c;var g=t[r];return c*(g=="desc"?-1:1)}}return n.index-e.index}function Eo(n,e,t,r){for(var i=-1,o=n.length,f=t.length,a=-1,c=e.length,g=ln(o-f,0),p=h(c+g),_=!r;++a1?t[i-1]:s,f=i>2?t[2]:s;for(o=n.length>3&&typeof o=="function"?(i--,o):s,f&&An(t[0],t[1],f)&&(o=i<3?s:o,i=1),e=Y(e);++r-1?i[o?e[f]:f]:s}}function No(n){return de(function(e){var t=e.length,r=t,i=Kn.prototype.thru;for(n&&e.reverse();r--;){var o=e[r];if(typeof o!="function")throw new $n(T);if(i&&!f&&fr(o)=="wrapper")var f=new Kn([],!0)}for(r=f?r:t;++r1&&B.reverse(),p&&ca))return!1;var g=o.get(n),p=o.get(e);if(g&&p)return g==e&&p==n;var _=-1,x=!0,b=t&G?new Pe:s;for(o.set(n,e),o.set(e,n);++_1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(Ys,`{ +/* [wrapped with `+e+`] */ +`)}function Yl(n){return N(n)||ke(n)||!!($u&&n&&n[$u])}function ge(n,e){var t=typeof n;return e=e??me,!!e&&(t=="number"||t!="symbol"&&sf.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Er)return arguments[0]}else e=0;return n.apply(s,arguments)}}function lr(n,e){var t=-1,r=n.length,i=r-1;for(e=e===s?r:e;++t1?n[e-1]:s;return t=typeof t=="function"?(n.pop(),t):s,es(n,t)});function ts(n){var e=u(n);return e.__chain__=!0,e}function oh(n,e){return e(n),n}function cr(n,e){return e(n)}var sh=de(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,i=function(o){return si(o,n)};return e>1||this.__actions__.length||!(r instanceof U)||!ge(t)?this.thru(i):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:cr,args:[i],thisArg:s}),new Kn(r,this.__chain__).thru(function(o){return e&&!o.length&&o.push(s),o}))});function fh(){return ts(this)}function ah(){return new Kn(this.value(),this.__chain__)}function lh(){this.__values__===s&&(this.__values__=_s(this.value()));var n=this.__index__>=this.__values__.length,e=n?s:this.__values__[this.__index__++];return{done:n,value:e}}function ch(){return this}function hh(n){for(var e,t=this;t instanceof Xt;){var r=Yo(t);r.__index__=0,r.__values__=s,e?i.__wrapped__=r:e=r;var i=r;t=t.__wrapped__}return i.__wrapped__=n,e}function dh(){var n=this.__wrapped__;if(n instanceof U){var e=n;return this.__actions__.length&&(e=new U(this)),e=e.reverse(),e.__actions__.push({func:cr,args:[Di],thisArg:s}),new Kn(e,this.__chain__)}return this.thru(Di)}function gh(){return xo(this.__wrapped__,this.__actions__)}var ph=rr(function(n,e,t){K.call(n,t)?++n[t]:ce(n,t,1)});function _h(n,e,t){var r=N(n)?Nu:ol;return t&&An(n,e,t)&&(e=s),r(n,A(e,3))}function vh(n,e){var t=N(n)?we:no;return t(n,A(e,3))}var xh=Lo(Xo),mh=Lo(Jo);function wh(n,e){return vn(hr(n,e),1)}function yh(n,e){return vn(hr(n,e),ze)}function bh(n,e,t){return t=t===s?1:M(t),vn(hr(n,e),t)}function rs(n,e){var t=N(n)?Hn:Ee;return t(n,A(e,3))}function is(n,e){var t=N(n)?kf:Vu;return t(n,A(e,3))}var Ah=rr(function(n,e,t){K.call(n,t)?n[t].push(e):ce(n,t,[e])});function Eh(n,e,t,r){n=Tn(n)?n:rt(n),t=t&&!r?M(t):0;var i=n.length;return t<0&&(t=ln(i+t,0)),vr(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&Ke(n,e,t)>-1}var Sh=W(function(n,e,t){var r=-1,i=typeof e=="function",o=Tn(n)?h(n.length):[];return Ee(n,function(f){o[++r]=i?Wn(e,f,t):mt(f,e,t)}),o}),Ih=rr(function(n,e,t){ce(n,t,e)});function hr(n,e){var t=N(n)?V:oo;return t(n,A(e,3))}function Ch(n,e,t,r){return n==null?[]:(N(e)||(e=e==null?[]:[e]),t=r?s:t,N(t)||(t=t==null?[]:[t]),lo(n,e,t))}var Rh=rr(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function Lh(n,e,t){var r=N(n)?Zr:Wu,i=arguments.length<3;return r(n,A(e,4),t,i,Ee)}function Nh(n,e,t){var r=N(n)?zf:Wu,i=arguments.length<3;return r(n,A(e,4),t,i,Vu)}function Th(n,e){var t=N(n)?we:no;return t(n,pr(A(e,3)))}function Mh(n){var e=N(n)?Yu:El;return e(n)}function Oh(n,e,t){(t?An(n,e,t):e===s)?e=1:e=M(e);var r=N(n)?el:Sl;return r(n,e)}function Wh(n){var e=N(n)?tl:Cl;return e(n)}function Dh(n){if(n==null)return 0;if(Tn(n))return vr(n)?je(n):n.length;var e=wn(n);return e==Jn||e==Qn?n.size:di(n).length}function Ph(n,e,t){var r=N(n)?Yr:Rl;return t&&An(n,e,t)&&(e=s),r(n,A(e,3))}var Uh=W(function(n,e){if(n==null)return[];var t=e.length;return t>1&&An(n,e[0],e[1])?e=[]:t>2&&An(e[0],e[1],e[2])&&(e=[e[0]]),lo(n,vn(e,1),[])}),dr=va||function(){return _n.Date.now()};function Bh(n,e){if(typeof e!="function")throw new $n(T);return n=M(n),function(){if(--n<1)return e.apply(this,arguments)}}function us(n,e,t){return e=t?s:e,e=n&&e==null?n.length:e,he(n,X,s,s,s,s,e)}function os(n,e){var t;if(typeof e!="function")throw new $n(T);return n=M(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=s),t}}var Ui=W(function(n,e,t){var r=z;if(t.length){var i=be(t,et(Ui));r|=hn}return he(n,r,e,t,i)}),ss=W(function(n,e,t){var r=z|gn;if(t.length){var i=be(t,et(ss));r|=hn}return he(e,r,n,t,i)});function fs(n,e,t){e=t?s:e;var r=he(n,pn,s,s,s,s,s,e);return r.placeholder=fs.placeholder,r}function as(n,e,t){e=t?s:e;var r=he(n,In,s,s,s,s,s,e);return r.placeholder=as.placeholder,r}function ls(n,e,t){var r,i,o,f,a,c,g=0,p=!1,_=!1,x=!0;if(typeof n!="function")throw new $n(T);e=Yn(e)||0,nn(t)&&(p=!!t.leading,_="maxWait"in t,o=_?ln(Yn(t.maxWait)||0,e):o,x="trailing"in t?!!t.trailing:x);function b(sn){var te=r,ve=i;return r=i=s,g=sn,f=n.apply(ve,te),f}function E(sn){return g=sn,a=Et(P,e),p?b(sn):f}function O(sn){var te=sn-c,ve=sn-g,Ls=e-te;return _?mn(Ls,o-ve):Ls}function S(sn){var te=sn-c,ve=sn-g;return c===s||te>=e||te<0||_&&ve>=o}function P(){var sn=dr();if(S(sn))return B(sn);a=Et(P,O(sn))}function B(sn){return a=s,x&&r?b(sn):(r=i=s,f)}function Bn(){a!==s&&wo(a),g=0,r=c=i=a=s}function En(){return a===s?f:B(dr())}function Fn(){var sn=dr(),te=S(sn);if(r=arguments,i=this,c=sn,te){if(a===s)return E(c);if(_)return wo(a),a=Et(P,e),b(c)}return a===s&&(a=Et(P,e)),f}return Fn.cancel=Bn,Fn.flush=En,Fn}var Fh=W(function(n,e){return Qu(n,1,e)}),Gh=W(function(n,e,t){return Qu(n,Yn(e)||0,t)});function kh(n){return he(n,Rn)}function gr(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new $n(T);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var f=n.apply(this,r);return t.cache=o.set(i,f)||o,f};return t.cache=new(gr.Cache||le),t}gr.Cache=le;function pr(n){if(typeof n!="function")throw new $n(T);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function zh(n){return os(2,n)}var Hh=Ll(function(n,e){e=e.length==1&&N(e[0])?V(e[0],Dn(A())):V(vn(e,1),Dn(A()));var t=e.length;return W(function(r){for(var i=-1,o=mn(r.length,t);++i=e}),ke=ro(function(){return arguments}())?ro:function(n){return en(n)&&K.call(n,"callee")&&!Hu.call(n,"callee")},N=h.isArray,id=Eu?Dn(Eu):hl;function Tn(n){return n!=null&&_r(n.length)&&!pe(n)}function on(n){return en(n)&&Tn(n)}function ud(n){return n===!0||n===!1||en(n)&&bn(n)==Xn}var Re=ma||Yi,od=Su?Dn(Su):dl;function sd(n){return en(n)&&n.nodeType===1&&!St(n)}function fd(n){if(n==null)return!0;if(Tn(n)&&(N(n)||typeof n=="string"||typeof n.splice=="function"||Re(n)||tt(n)||ke(n)))return!n.length;var e=wn(n);if(e==Jn||e==Qn)return!n.size;if(At(n))return!di(n).length;for(var t in n)if(K.call(n,t))return!1;return!0}function ad(n,e){return wt(n,e)}function ld(n,e,t){t=typeof t=="function"?t:s;var r=t?t(n,e):s;return r===s?wt(n,e,s,t):!!r}function Fi(n){if(!en(n))return!1;var e=bn(n);return e==Ln||e==ie||typeof n.message=="string"&&typeof n.name=="string"&&!St(n)}function cd(n){return typeof n=="number"&&Ku(n)}function pe(n){if(!nn(n))return!1;var e=bn(n);return e==Me||e==Qi||e==xn||e==Ws}function hs(n){return typeof n=="number"&&n==M(n)}function _r(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=me}function nn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function en(n){return n!=null&&typeof n=="object"}var ds=Iu?Dn(Iu):pl;function hd(n,e){return n===e||hi(n,e,Li(e))}function dd(n,e,t){return t=typeof t=="function"?t:s,hi(n,e,Li(e),t)}function gd(n){return gs(n)&&n!=+n}function pd(n){if(Ql(n))throw new R(L);return io(n)}function _d(n){return n===null}function vd(n){return n==null}function gs(n){return typeof n=="number"||en(n)&&bn(n)==ot}function St(n){if(!en(n)||bn(n)!=fe)return!1;var e=Ht(n);if(e===null)return!0;var t=K.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Ft.call(t)==da}var Gi=Cu?Dn(Cu):_l;function xd(n){return hs(n)&&n>=-9007199254740991&&n<=me}var ps=Ru?Dn(Ru):vl;function vr(n){return typeof n=="string"||!N(n)&&en(n)&&bn(n)==ft}function Un(n){return typeof n=="symbol"||en(n)&&bn(n)==Nt}var tt=Lu?Dn(Lu):xl;function md(n){return n===s}function wd(n){return en(n)&&wn(n)==at}function yd(n){return en(n)&&bn(n)==Ps}var bd=sr(gi),Ad=sr(function(n,e){return n<=e});function _s(n){if(!n)return[];if(Tn(n))return vr(n)?Vn(n):Nn(n);if(ht&&n[ht])return ea(n[ht]());var e=wn(n),t=e==Jn?ei:e==Qn?Pt:rt;return t(n)}function _e(n){if(!n)return n===0?n:0;if(n=Yn(n),n===ze||n===-1/0){var e=n<0?-1:1;return e*Ir}return n===n?n:0}function M(n){var e=_e(n),t=e%1;return e===e?t?e-t:e:0}function vs(n){return n?Ue(M(n),0,Gn):0}function Yn(n){if(typeof n=="number")return n;if(Un(n))return Te;if(nn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=nn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Du(n);var t=rf.test(n);return t||of.test(n)?Bf(n.slice(2),t?2:8):tf.test(n)?Te:+n}function xs(n){return oe(n,Mn(n))}function Ed(n){return n?Ue(M(n),-9007199254740991,me):n===0?n:0}function $(n){return n==null?"":Pn(n)}var Sd=Ve(function(n,e){if(At(e)||Tn(e)){oe(e,dn(e),n);return}for(var t in e)K.call(e,t)&&vt(n,t,e[t])}),ms=Ve(function(n,e){oe(e,Mn(e),n)}),xr=Ve(function(n,e,t,r){oe(e,Mn(e),n,r)}),Id=Ve(function(n,e,t,r){oe(e,dn(e),n,r)}),Cd=de(si);function Rd(n,e){var t=Qe(n);return e==null?t:Xu(t,e)}var Ld=W(function(n,e){n=Y(n);var t=-1,r=e.length,i=r>2?e[2]:s;for(i&&An(e[0],e[1],i)&&(r=1);++t1),o}),oe(n,Ci(n),t),r&&(t=qn(t,q|cn|fn,Gl));for(var i=e.length;i--;)mi(t,e[i]);return t});function jd(n,e){return ys(n,pr(A(e)))}var Zd=de(function(n,e){return n==null?{}:yl(n,e)});function ys(n,e){if(n==null)return{};var t=V(Ci(n),function(r){return[r]});return e=A(e),co(n,t,function(r,i){return e(r,i[0])})}function Yd(n,e,t){e=Ie(e,n);var r=-1,i=e.length;for(i||(i=1,n=s);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var i=qu();return mn(n+i*(e-n+Uf("1e-"+((i+"").length-1))),e)}return _i(n,e)}var o0=nt(function(n,e,t){return e=e.toLowerCase(),n+(t?Es(e):e)});function Es(n){return Hi($(n).toLowerCase())}function Ss(n){return n=$(n),n&&n.replace(ff,Xf).replace(Cf,"")}function s0(n,e,t){n=$(n),e=Pn(e);var r=n.length;t=t===s?r:Ue(M(t),0,r);var i=t;return t-=e.length,t>=0&&n.slice(t,i)==e}function f0(n){return n=$(n),n&&ks.test(n)?n.replace(eu,Jf):n}function a0(n){return n=$(n),n&&js.test(n)?n.replace(Br,"\\$&"):n}var l0=nt(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),c0=nt(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),h0=Ro("toLowerCase");function d0(n,e,t){n=$(n),e=M(e);var r=e?je(n):0;if(!e||r>=e)return n;var i=(e-r)/2;return or(jt(i),t)+n+or(qt(i),t)}function g0(n,e,t){n=$(n),e=M(e);var r=e?je(n):0;return e&&r>>0,t?(n=$(n),n&&(typeof e=="string"||e!=null&&!Gi(e))&&(e=Pn(e),!e&&qe(n))?Ce(Vn(n),0,t):n.split(e,t)):[]}var y0=nt(function(n,e,t){return n+(t?" ":"")+Hi(e)});function b0(n,e,t){return n=$(n),t=t==null?0:Ue(M(t),0,n.length),e=Pn(e),n.slice(t,t+e.length)==e}function A0(n,e,t){var r=u.templateSettings;t&&An(n,e,t)&&(e=s),n=$(n),e=xr({},e,r,Do);var i=xr({},e.imports,r.imports,Do),o=dn(i),f=ni(i,o),a,c,g=0,p=e.interpolate||Tt,_="__p += '",x=ti((e.escape||Tt).source+"|"+p.source+"|"+(p===tu?ef:Tt).source+"|"+(e.evaluate||Tt).source+"|$","g"),b="//# sourceURL="+(K.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Mf+"]")+` +`;n.replace(x,function(S,P,B,Bn,En,Fn){return B||(B=Bn),_+=n.slice(g,Fn).replace(af,Qf),P&&(a=!0,_+=`' + +__e(`+P+`) + +'`),En&&(c=!0,_+=`'; +`+En+`; +__p += '`),B&&(_+=`' + +((__t = (`+B+`)) == null ? '' : __t) + +'`),g=Fn+S.length,S}),_+=`'; +`;var E=K.call(e,"variable")&&e.variable;if(!E)_=`with (obj) { +`+_+` +} +`;else if(Vs.test(E))throw new R(Z);_=(c?_.replace(Us,""):_).replace(Bs,"$1").replace(Fs,"$1;"),_="function("+(E||"obj")+`) { +`+(E?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(a?", __e = _.escape":"")+(c?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+_+`return __p +}`;var O=Cs(function(){return H(o,b+"return "+_).apply(s,f)});if(O.source=_,Fi(O))throw O;return O}function E0(n){return $(n).toLowerCase()}function S0(n){return $(n).toUpperCase()}function I0(n,e,t){if(n=$(n),n&&(t||e===s))return Du(n);if(!n||!(e=Pn(e)))return n;var r=Vn(n),i=Vn(e),o=Pu(r,i),f=Uu(r,i)+1;return Ce(r,o,f).join("")}function C0(n,e,t){if(n=$(n),n&&(t||e===s))return n.slice(0,Fu(n)+1);if(!n||!(e=Pn(e)))return n;var r=Vn(n),i=Uu(r,Vn(e))+1;return Ce(r,0,i).join("")}function R0(n,e,t){if(n=$(n),n&&(t||e===s))return n.replace(Fr,"");if(!n||!(e=Pn(e)))return n;var r=Vn(n),i=Pu(r,Vn(e));return Ce(r,i).join("")}function L0(n,e){var t=Le,r=Ar;if(nn(e)){var i="separator"in e?e.separator:i;t="length"in e?M(e.length):t,r="omission"in e?Pn(e.omission):r}n=$(n);var o=n.length;if(qe(n)){var f=Vn(n);o=f.length}if(t>=o)return n;var a=t-je(r);if(a<1)return r;var c=f?Ce(f,0,a).join(""):n.slice(0,a);if(i===s)return c+r;if(f&&(a+=c.length-a),Gi(i)){if(n.slice(a).search(i)){var g,p=c;for(i.global||(i=ti(i.source,$(ru.exec(i))+"g")),i.lastIndex=0;g=i.exec(p);)var _=g.index;c=c.slice(0,_===s?a:_)}}else if(n.indexOf(Pn(i),a)!=a){var x=c.lastIndexOf(i);x>-1&&(c=c.slice(0,x))}return c+r}function N0(n){return n=$(n),n&&Gs.test(n)?n.replace(nu,ua):n}var T0=nt(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),Hi=Ro("toUpperCase");function Is(n,e,t){return n=$(n),e=t?s:e,e===s?na(n)?fa(n):Kf(n):n.match(e)||[]}var Cs=W(function(n,e){try{return Wn(n,s,e)}catch(t){return Fi(t)?t:new R(t)}}),M0=de(function(n,e){return Hn(e,function(t){t=se(t),ce(n,t,Ui(n[t],n))}),n});function O0(n){var e=n==null?0:n.length,t=A();return n=e?V(n,function(r){if(typeof r[1]!="function")throw new $n(T);return[t(r[0]),r[1]]}):[],W(function(r){for(var i=-1;++ime)return[];var t=Gn,r=mn(n,Gn);e=A(e),n-=Gn;for(var i=Vr(r,e);++t0||e<0)?new U(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==s&&(e=M(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},U.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},U.prototype.toArray=function(){return this.take(Gn)},ue(U.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=u[r?"take"+(e=="last"?"Right":""):e],o=r||/^find/.test(e);i&&(u.prototype[e]=function(){var f=this.__wrapped__,a=r?[1]:arguments,c=f instanceof U,g=a[0],p=c||N(f),_=function(P){var B=i.apply(u,ye([P],a));return r&&x?B[0]:B};p&&t&&typeof g=="function"&&g.length!=1&&(c=p=!1);var x=this.__chain__,b=!!this.__actions__.length,E=o&&!x,O=c&&!b;if(!o&&p){f=O?f:new U(this);var S=n.apply(f,a);return S.__actions__.push({func:cr,args:[_],thisArg:s}),new Kn(S,x)}return E&&O?n.apply(this,a):(S=this.thru(_),E?r?S.value()[0]:S.value():S)})}),Hn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Ut[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(N(o)?o:[],i)}return this[t](function(f){return e.apply(N(f)?f:[],i)})}}),ue(U.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";K.call(Je,r)||(Je[r]=[]),Je[r].push({name:e,func:t})}}),Je[ir(s,gn).name]=[{name:"wrapper",func:s}],U.prototype.clone=Na,U.prototype.reverse=Ta,U.prototype.value=Ma,u.prototype.at=sh,u.prototype.chain=fh,u.prototype.commit=ah,u.prototype.next=lh,u.prototype.plant=hh,u.prototype.reverse=dh,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=gh,u.prototype.first=u.prototype.head,ht&&(u.prototype[ht]=ch),u},Ze=aa();Oe?((Oe.exports=Ze)._=Ze,Kr._=Ze):_n._=Ze}).call(It)})(wr,wr.exports);var yr=wr.exports;function Jg(m=!0){D.useEffect(()=>{if(!m)return;const C=yr.debounce(s=>{document.documentElement.style.setProperty("--mouse-x",`${s.clientX}px`),document.documentElement.style.setProperty("--mouse-y",`${s.clientY}px`)},16);return document.addEventListener("mousemove",C),()=>{C.cancel(),document.removeEventListener("mousemove",C)}},[m])}function Qg(m={},C=!0){const[s,F]=D.useState(!1),[j,L]=D.useState({width:window.innerWidth/3,height:window.innerHeight,top:0});D.useCallback(yr.debounce(Z=>{s&&L(y=>{const tn=window.innerWidth-Z.clientX,k=Math.min(Math.max(m.minWidth||300,tn),m.maxWidth||window.innerWidth*.8);return{...y,width:k}})},16),[s,m]);const T=D.useCallback(Z=>{L(y=>{const tn=y.height-Z,k=y.top+Z;return{...y,height:Math.min(Math.max(m.minHeight||300,tn),m.maxHeight||window.innerHeight),top:Math.max(0,k)}})},[m]);return D.useEffect(()=>{if(!C||!s)return;const Z=yr.debounce(tn=>{L(k=>{const q=window.innerWidth-tn.clientX,cn=Math.min(Math.max(m.minWidth||300,q),m.maxWidth||window.innerWidth*.8);return{...k,width:cn}})},16),y=()=>F(!1);return document.addEventListener("mousemove",Z),document.addEventListener("mouseup",y),()=>{Z.cancel(),document.removeEventListener("mousemove",Z),document.removeEventListener("mouseup",y)}},[s,m,C]),{isResizing:s,setIsResizing:F,dimensions:j,handleHeightResize:T}}function Vg(m=!0){const{dispatch:C}=Ts();D.useEffect(()=>{if(!m)return;const s=()=>{const F=re.canvas.selected_nodes;if(Object.keys(F??{}).length){const j=Object.values(F)[0];C({type:"SET_SELECTED_NODE",payload:j})}else C({type:"SET_SELECTED_NODE",payload:null})};return document.addEventListener("click",s),()=>{document.removeEventListener("click",s)}},[C,m])}function up({onClose:m,visible:C=!0,triggerUsage:s=!1,onUsageTriggered:F}){const{state:j,dispatch:L}=Ts(),{messages:T,installedNodes:Z,loading:y,sessionId:tn,selectedNode:k}=j,q=D.useRef(null),[cn,fn]=D.useState(""),[Sn,G]=D.useState(""),[z,gn]=D.useState(window.innerWidth/3),[rn,pn]=D.useState(!1),[In,hn]=D.useState([]),[yn,X]=D.useState("gpt-4o-mini");D.useState(window.innerHeight),D.useState(0),Jg(C),Vg(C);const{isResizing:Cn,setIsResizing:Rn,dimensions:Le,handleHeightResize:Ar}=Qg({minWidth:300,maxWidth:window.innerWidth*.8,minHeight:300,maxHeight:window.innerHeight},C);D.useEffect(()=>{q.current&&(q.current.scrollTop=q.current.scrollHeight)},[T]),D.useEffect(()=>{(async()=>{console.log("[WorkflowChat] Fetching installed nodes");const un=await Xg();console.log("[WorkflowChat] Received installed nodes:",un),L({type:"SET_INSTALLED_NODES",payload:un})})()},[]);const Er=async I=>{try{const un=await Ji.fetchMessages(I);L({type:"SET_MESSAGES",payload:un})}catch(un){console.error("Error fetching messages:",un)}};D.useEffect(()=>{let I=localStorage.getItem("sessionId");I?(L({type:"SET_SESSION_ID",payload:I}),Er(I)):(I=xe(),L({type:"SET_SESSION_ID",payload:I}),localStorage.setItem("sessionId",I))},[]);const Ct=it.useCallback(I=>{if(!rn)return;const un=window.innerWidth-I.clientX,xn=Math.min(Math.max(300,un),window.innerWidth*.8);gn(xn)},[rn]),Ne=it.useMemo(()=>yr.debounce(Ct,16),[Ct]);D.useEffect(()=>(rn&&(document.addEventListener("mousemove",Ne),document.addEventListener("mouseup",Lt)),()=>{document.removeEventListener("mousemove",Ne),document.removeEventListener("mouseup",Lt),Ne.cancel()}),[rn,Ne]);const Sr=I=>{fn(I.target.value)},Rt=async()=>{if(L({type:"SET_LOADING",payload:!0}),cn.trim()===""&&!k||!tn)return;G(cn);const I=xe(),un={id:xe(),role:"user",content:cn,trace_id:I};L({type:"ADD_MESSAGE",payload:un}),fn("");try{const xn={type:"model_select",data:[yn]};let Xn=xe(),kn=!0;for await(const ie of Ji.streamInvokeServer(tn,cn,In.map(Ln=>Ln.file),null,xn,I)){const Ln={id:Xn,role:"ai",content:JSON.stringify(ie),type:ie.type,format:ie.format,finished:ie.finished,name:"Assistant"};kn?(L({type:"ADD_MESSAGE",payload:Ln}),kn=!1):L({type:"UPDATE_MESSAGE",payload:Ln}),ie.finished&&L({type:"SET_LOADING",payload:!1})}}catch(xn){console.error("Error sending message:",xn),L({type:"SET_LOADING",payload:!1})}finally{hn([])}},ze=I=>{I.metaKey&&I.key==="Enter"&&Rt()},me=()=>{L({type:"CLEAR_MESSAGES"}),localStorage.removeItem("sessionId");const I=xe();L({type:"SET_SESSION_ID",payload:I}),localStorage.setItem("sessionId",I)},Ir=I=>{fn(I)},Te=async(I,un)=>{if(!tn||!k)return;L({type:"SET_LOADING",payload:!0});const xn=xe(),Xn={id:xe(),role:"user",content:k.comfyClass||k.type,trace_id:xn};L({type:"ADD_MESSAGE",payload:Xn});try{let kn=xe(),ie=!0;for await(const Ln of Ji.streamInvokeServer(tn,k.comfyClass||k.type,[],I,un,xn)){const Me={id:kn,role:"ai",content:JSON.stringify(Ln),format:Ln.format,finished:Ln.finished,name:"Assistant"};ie?(L({type:"ADD_MESSAGE",payload:Me}),ie=!1):L({type:"UPDATE_MESSAGE",payload:Me}),Ln.finished&&L({type:"SET_LOADING",payload:!1})}}catch(kn){console.error("Error sending message:",kn),L({type:"SET_LOADING",payload:!1})}},Gn=I=>{console.log("[WorkflowChat] Adding new message:",I),L({type:"ADD_MESSAGE",payload:I})},Lt=()=>{pn(!1)},Cr=I=>{const un=Array.from(I).map(xn=>({id:Math.random().toString(36).substr(2,9),file:xn,preview:URL.createObjectURL(xn)}));hn(xn=>[...xn,...un])},Rr=I=>{hn(un=>un.filter(Xn=>Xn.id!==I))};return it.useEffect(()=>()=>{In.forEach(I=>URL.revokeObjectURL(I.preview))},[In]),D.useEffect(()=>{s&&F&&(Te("node_explain"),F())},[s]),v.jsxs("div",{className:"fixed right-0 shadow-lg bg-white duration-200 ease-out",style:{display:C?"block":"none",width:`${Le.width}px`,height:`${Le.height}px`,top:`${Le.top}px`},children:[v.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1 cursor-ew-resize hover:bg-gray-300",onMouseDown:I=>{Rn(!0),I.preventDefault()}}),v.jsxs("div",{className:"flex h-full flex-col",children:[v.jsx(Ug,{onClose:m,onClear:me,hasMessages:T.length>0,onHeightResize:Ar}),v.jsx("div",{children:Z.map(I=>v.jsx("div",{children:I.name},I.name))}),v.jsx("div",{className:"flex-1 overflow-y-auto p-4 scroll-smooth",ref:q,children:v.jsx(Zg,{messages:T,latestInput:Sn,onOptionClick:Ir,installedNodes:Z,onAddMessage:Gn,loading:y})}),v.jsxs("div",{className:"border-t px-4 py-3 border-gray-200 bg-white sticky bottom-0",children:[k&&v.jsx(kg,{nodeInfo:k,onSendWithIntent:Te,loading:y}),v.jsx(Fg,{input:cn,loading:y,onChange:Sr,onSend:Rt,onKeyPress:ze,onUploadImages:Cr,uploadedImages:In,onRemoveImage:Rr,selectedModel:yn,onModelChange:X})]})]})]})}export{up as default};